ado-npm-auth 0.8.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,111 +1,112 @@
1
- "use strict";var _F=Object.create;var _a=Object.defineProperty;var RF=Object.getOwnPropertyDescriptor;var FF=Object.getOwnPropertyNames;var DF=Object.getPrototypeOf,LF=Object.prototype.hasOwnProperty;var F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),kF=(e,t)=>{for(var r in t)_a(e,r,{get:t[r],enumerable:!0})},Qm=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of FF(t))!LF.call(e,i)&&i!==r&&_a(e,i,{get:()=>t[i],enumerable:!(n=RF(t,i))||n.enumerable});return e};var jt=(e,t,r)=>(r=e!=null?_F(DF(e)):{},Qm(t||!e||!e.__esModule?_a(r,"default",{value:e,enumerable:!0}):r,e)),TF=e=>Qm(_a({},"__esModule",{value:!0}),e);var ay=F(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.walkUp=void 0;var oy=require("path"),fD=function*(e){for(e=(0,oy.resolve)(e);e;){yield e;let t=(0,oy.dirname)(e);if(t===e)break;e=t}};Qa.walkUp=fD});var Cf=F((t5,fy)=>{var{hasOwnProperty:wf}=Object.prototype,Sf=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let r=t.platform==="win32"?`\r
1
+ "use strict";var VF=Object.create;var Da=Object.defineProperty;var KF=Object.getOwnPropertyDescriptor;var JF=Object.getOwnPropertyNames;var XF=Object.getPrototypeOf,QF=Object.prototype.hasOwnProperty;var F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ZF=(e,t)=>{for(var r in t)Da(e,r,{get:t[r],enumerable:!0})},f0=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of JF(t))!QF.call(e,i)&&i!==r&&Da(e,i,{get:()=>t[i],enumerable:!(n=KF(t,i))||n.enumerable});return e};var jt=(e,t,r)=>(r=e!=null?VF(XF(e)):{},f0(t||!e||!e.__esModule?Da(r,"default",{value:e,enumerable:!0}):r,e)),ek=e=>f0(Da({},"__esModule",{value:!0}),e);var Ey=F(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.walkUp=void 0;var Ay=require("path"),kk=function*(e){for(e=(0,Ay.resolve)(e);e;){yield e;let t=(0,Ay.dirname)(e);if(t===e)break;e=t}};ru.walkUp=kk});var kf=F((W5,Cy)=>{var{hasOwnProperty:Rf}=Object.prototype,Ff=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let r=t.platform==="win32"?`\r
2
2
  `:`
3
- `,n=t.whitespace?" = ":"=",i=[],s=t.sort?Object.keys(e).sort():Object.keys(e),o=0;t.align&&(o=an(s.filter(c=>e[c]===null||Array.isArray(e[c])||typeof e[c]!="object").map(c=>Array.isArray(e[c])?`${c}[]`:c).concat([""]).reduce((c,f)=>an(c).length>=an(f).length?c:f)).length);let a="",u=t.bracketedArray?"[]":"";for(let c of s){let f=e[c];if(f&&Array.isArray(f))for(let l of f)a+=an(`${c}${u}`).padEnd(o," ")+n+an(l)+r;else f&&typeof f=="object"?i.push(c):a+=an(c).padEnd(o," ")+n+an(f)+r}t.section&&a.length&&(a="["+an(t.section)+"]"+(t.newline?r+r:r)+a);for(let c of i){let f=cy(c,".").join("\\."),l=(t.section?t.section+".":"")+f,h=Sf(e[c],{...t,section:l});a.length&&h.length&&(a+=r),a+=h}return a};function cy(e,t){var r=0,n=0,i=0,s=[];do if(i=e.indexOf(t,r),i!==-1){if(r=i+t.length,i>0&&e[i-1]==="\\")continue;s.push(e.slice(n,i)),n=i+t.length}while(i!==-1);return s.push(e.slice(n)),s}var uy=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),n=r,i=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,o=e.split(/[\r\n]+/g),a={};for(let c of o){if(!c||c.match(/^\s*[;#]/)||c.match(/^\s*$/))continue;let f=c.match(s);if(!f)continue;if(f[1]!==void 0){if(i=Za(f[1]),i==="__proto__"){n=Object.create(null);continue}n=r[i]=r[i]||Object.create(null);continue}let l=Za(f[2]),h;t.bracketedArray?h=l.length>2&&l.slice(-2)==="[]":(a[l]=(a?.[l]||0)+1,h=a[l]>1);let d=h&&l.endsWith("[]")?l.slice(0,-2):l;if(d==="__proto__")continue;let p=f[3]?Za(f[4]):!0,y=p==="true"||p==="false"||p==="null"?JSON.parse(p):p;h&&(wf.call(n,d)?Array.isArray(n[d])||(n[d]=[n[d]]):n[d]=[]),Array.isArray(n[d])?n[d].push(y):n[d]=y}let u=[];for(let c of Object.keys(r)){if(!wf.call(r,c)||typeof r[c]!="object"||Array.isArray(r[c]))continue;let f=cy(c,".");n=r;let l=f.pop(),h=l.replace(/\\\./g,".");for(let d of f)d!=="__proto__"&&((!wf.call(n,d)||typeof n[d]!="object")&&(n[d]=Object.create(null)),n=n[d]);n===r&&h===l||(n[h]=r[c],u.push(c))}for(let c of u)delete r[c];return r},ly=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),an=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&ly(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),Za=e=>{if(e=(e||"").trim(),ly(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,r="";for(let n=0,i=e.length;n<i;n++){let s=e.charAt(n);if(t)"\\;#".indexOf(s)!==-1?r+=s:r+="\\"+s,t=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?t=!0:r+=s}}return t&&(r+="\\"),r.trim()}return e};fy.exports={parse:uy,decode:uy,stringify:Sf,encode:Sf,safe:an,unsafe:Za}});var dy=F((r5,hy)=>{hy.exports=hD;function hD(...e){let t=e;e.length===1&&(Array.isArray(e[0])||typeof e[0]=="string")&&(t=[].concat(e[0]));for(let i=0,s=t.length;i<s;i++)t[i]=typeof t[i]=="string"?t[i]:String(t[i]);t=t.sort(dD);let r={},n="";for(let i=0,s=t.length;i<s;i++){let o=t[i],a=t[i+1]||"",u=!0,c=!0;if(o===a)continue;let f=0,l=o.length;for(;f<l;f++){let h=o.charAt(f);if(u=u&&h===a.charAt(f),c=c&&h===n.charAt(f),!u&&!c){f++;break}}if(n=o,f===l){r[o]=o;continue}for(let h=o.slice(0,f);f<=l;f++)r[h]=o,h+=o.charAt(f)}return r}function dD(e,t){return e===t?0:e>t?1:-1}});var xf=F((n5,py)=>{py.exports=process.env.DEBUG_NOPT||process.env.NOPT_DEBUG?(...e)=>console.error(...e):()=>{}});var Pf=F((i5,vy)=>{var gy=require("url"),Of=require("path"),my=require("stream").Stream,pD=require("os"),yy=xf();function gD(e,t,r){e[t]=String(r)}function mD(e,t,r){if(r===!0)return!1;if(r===null)return!0;r=String(r);let i=process.platform==="win32"?/^~(\/|\\)/:/^~\//,s=pD.homedir();return s&&r.match(i)?e[t]=Of.resolve(s,r.slice(2)):e[t]=Of.resolve(r),!0}function yD(e,t,r){if(yy("validate Number %j %j %j",t,r,isNaN(r)),isNaN(r))return!1;e[t]=+r}function vD(e,t,r){let n=Date.parse(r);if(yy("validate Date %j %j %j",t,r,n),isNaN(n))return!1;e[t]=new Date(r)}function AD(e,t,r){typeof r=="string"?isNaN(r)?r==="null"||r==="false"?r=!1:r=!0:r=!!+r:r=!!r,e[t]=r}function ED(e,t,r){if(r=gy.parse(String(r)),!r.host)return!1;e[t]=r.href}function bD(e,t,r){if(!(r instanceof my))return!1;e[t]=r}vy.exports={String:{type:String,validate:gD},Boolean:{type:Boolean,validate:AD},url:{type:gy,validate:ED},Number:{type:Number,validate:yD},path:{type:Of,validate:mD},Stream:{type:my,validate:bD},Date:{type:Date,validate:vD},Array:{type:Array}}});var Oy=F((s5,xy)=>{var eu=dy(),$e=xf(),wD=Pf(),Ey=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),by=(e,{types:t,dynamicTypes:r})=>{let n=Ey(t,e),i=t[e];if(!n&&typeof r=="function"){let s=r(e);s!==void 0&&(i=s,n=!0)}return[n,i]},Xi=(e,t)=>t&&e===t,Wr=(e,t)=>t&&e.indexOf(t)!==-1,SD=(e,t)=>t&&!Wr(e,t);function CD(e,{types:t,shorthands:r,typeDefs:n,invalidHandler:i,unknownHandler:s,abbrevHandler:o,typeDefault:a,dynamicTypes:u}={}){$e(t,r,e,n);let c={},f={remain:[],cooked:e,original:e.slice(0)};return Sy(e,c,f.remain,{typeDefs:n,types:t,dynamicTypes:u,shorthands:r,unknownHandler:s,abbrevHandler:o}),wy(c,{types:t,dynamicTypes:u,typeDefs:n,invalidHandler:i,typeDefault:a}),c.argv=f,Object.defineProperty(c.argv,"toString",{value:function(){return this.original.map(JSON.stringify).join(" ")},enumerable:!1}),c}function wy(e,{types:t={},typeDefs:r={},dynamicTypes:n,invalidHandler:i,typeDefault:s}={}){let o=r.String?.type,a=r.Number?.type,u=r.Array?.type,c=r.Boolean?.type,f=r.Date?.type,l=typeof s<"u";l||(s=[!1,!0,null],o&&s.push(o),u&&s.push(u));let h={};Object.keys(e).forEach(d=>{if(d==="argv")return;let p=e[d];$e("val=%j",p);let y=Array.isArray(p),[m,O]=by(d,{types:t,dynamicTypes:n}),S=O;y||(p=[p]),S||(S=s),Xi(S,u)&&(S=s.concat(u)),Array.isArray(S)||(S=[S]),$e("val=%j",p),$e("types=",S),p=p.map(k=>{if(typeof k=="string"&&($e("string %j",k),k=k.trim(),k==="null"&&~S.indexOf(null)||k==="true"&&(~S.indexOf(!0)||Wr(S,c))||k==="false"&&(~S.indexOf(!1)||Wr(S,c))?(k=JSON.parse(k),$e("jsonable %j",k)):Wr(S,a)&&!isNaN(k)?($e("convert to number",k),k=+k):Wr(S,f)&&!isNaN(Date.parse(k))&&($e("convert to date",k),k=new Date(k))),!m){if(!l)return k;O=s}k===!1&&~S.indexOf(null)&&!(~S.indexOf(!1)||Wr(S,c))&&(k=null);let P={};return P[d]=k,$e("prevalidated val",P,k,O),_f(P,d,k,O,{typeDefs:r})?($e("validated v",P,k,O),P[d]):(i?i(d,k,O,e):i!==!1&&$e("invalid: "+d+"="+k,O),h)}).filter(k=>k!==h),!p.length&&SD(S,u)?($e("VAL HAS NO LENGTH, DELETE IT",p,d,S.indexOf(u)),delete e[d]):y?($e(y,e[d],p),e[d]=p):e[d]=p[0],$e("k=%s val=%j",d,p,e[d])})}function _f(e,t,r,n,{typeDefs:i}={}){let s=i?.Array?.type;if(Array.isArray(n)){for(let u=0,c=n.length;u<c;u++)if(!Xi(n[u],s)&&_f(e,t,r,n[u],{typeDefs:i}))return!0;return delete e[t],!1}if(Xi(n,s))return!0;if(n!==n)return $e("Poison NaN",t,r,n),delete e[t],!1;if(r===n)return $e("Explicitly allowed %j",r),e[t]=r,!0;let o=!1,a=Object.keys(i);for(let u=0,c=a.length;u<c;u++){$e("test type %j %j %j",t,r,a[u]);let f=i[a[u]];if(f&&(n&&n.name&&f.type&&f.type.name?n.name===f.type.name:n===f.type)){let l={};if(o=f.validate(l,t,r)!==!1,r=l[t],o){e[t]=r;break}}}return $e("OK? %j (%j %j %j)",o,t,r,a[a.length-1]),o||delete e[t],o}function Sy(e,t,r,{types:n={},typeDefs:i={},shorthands:s={},dynamicTypes:o,unknownHandler:a,abbrevHandler:u}={}){let c=i.String?.type,f=i.Number?.type,l=i.Array?.type,h=i.Boolean?.type;$e("parse",e,t,r);let d=eu(Object.keys(n));$e("abbrevs=%j",d);let p=eu(Object.keys(s));for(let y=0;y<e.length;y++){let m=e[y];if($e("arg",m),m.match(/^-{2,}$/)){r.push.apply(r,e.slice(y+1)),e[y]="--";break}let O=!1;if(m.charAt(0)==="-"&&m.length>1){let S=m.indexOf("=");if(S>-1){O=!0;let v=m.slice(S+1);m=m.slice(0,S),e.splice(y,1,m,v)}let k=Cy(m,p,d,{shorthands:s,abbrevHandler:u});if($e("arg=%j shRes=%j",m,k),k&&(e.splice.apply(e,[y,1].concat(k)),m!==k[0])){y--;continue}m=m.replace(/^-+/,"");let P=null;for(;m.toLowerCase().indexOf("no-")===0;)P=!P,m=m.slice(3);d[m]&&d[m]!==m&&(u?u(m,d[m]):u!==!1&&$e(`abbrev: ${m} -> ${d[m]}`),m=d[m]);let[b,_]=by(m,{types:n,dynamicTypes:o}),L=Array.isArray(_);L&&_.length===1&&(L=!1,_=_[0]);let D=Xi(_,l)||L&&Wr(_,l);!b&&Ey(t,m)&&(Array.isArray(t[m])||(t[m]=[t[m]]),D=!0);let $,x=e[y+1],g=typeof P=="boolean"||Xi(_,h)||L&&Wr(_,h)||typeof _>"u"&&!O||x==="false"&&(_===null||L&&~_.indexOf(null));if(typeof _>"u"){let v=!O&&x&&!x?.startsWith("-")&&!["true","false"].includes(x);a?v?a(m,x):a(m):a!==!1&&($e(`unknown: ${m}`),v&&$e(`unknown: ${x} parsed as normal opt`))}if(g){$=!P,(x==="true"||x==="false")&&($=JSON.parse(x),x=null,P&&($=!$),y++),L&&x&&(~_.indexOf(x)?($=x,y++):x==="null"&&~_.indexOf(null)?($=null,y++):!x.match(/^-{2,}[^-]/)&&!isNaN(x)&&Wr(_,f)?($=+x,y++):!x.match(/^-[^-]/)&&Wr(_,c)&&($=x,y++)),D?(t[m]=t[m]||[]).push($):t[m]=$;continue}Xi(_,c)&&(x===void 0?x="":x.match(/^-{1,2}[^-]+/)&&(x="",y--)),x&&x.match(/^-{2,}$/)&&(x=void 0,y--),$=x===void 0?!0:x,D?(t[m]=t[m]||[]).push($):t[m]=$,y++;continue}r.push(m)}}var Ay=Symbol("singles"),xD=(e,t)=>{let r=t[Ay];r||(r=Object.keys(t).filter(i=>i.length===1).reduce((i,s)=>(i[s]=!0,i),{}),t[Ay]=r,$e("shorthand singles",r));let n=e.split("").filter(i=>r[i]);return n.join("")===e?n:null};function Cy(e,...t){let{abbrevHandler:r,types:n={},shorthands:i={}}=t.length?t.pop():{},s=t[0]??eu(Object.keys(i)),o=t[1]??eu(Object.keys(n));if(e=e.replace(/^-+/,""),o[e]===e)return null;if(i[e])return i[e]&&!Array.isArray(i[e])&&(i[e]=i[e].split(/\s+/)),i[e];let a=xD(e,i);return a?a.map(u=>i[u]).reduce((u,c)=>u.concat(c),[]):o[e]&&!i[e]?null:(s[e]&&(r?r(e,s[e]):r!==!1&&$e(`abbrev: ${e} -> ${s[e]}`),e=s[e]),i[e]&&!Array.isArray(i[e])&&(i[e]=i[e].split(/\s+/)),i[e])}xy.exports={nopt:CD,clean:wy,parse:Sy,validate:_f,resolveShort:Cy,typeDefs:wD}});var Ff=F((tr,Py)=>{var Rf=Oy(),OD=Pf();Py.exports=tr=PD;tr.clean=_D;tr.typeDefs=OD;tr.lib=Rf;function PD(e,t,r=process.argv,n=2){return Rf.nopt(r.slice(n),{types:e||{},shorthands:t||{},typeDefs:tr.typeDefs,invalidHandler:tr.invalidHandler,unknownHandler:tr.unknownHandler,abbrevHandler:tr.abbrevHandler})}function _D(e,t,r=tr.typeDefs){return Rf.clean(e,{types:t||{},typeDefs:r,invalidHandler:tr.invalidHandler,unknownHandler:tr.unknownHandler,abbrevHandler:tr.abbrevHandler})}});var tu=F((o5,_y)=>{var RD=Symbol("proc-log.meta");_y.exports={META:RD,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function r(){return process.emit("time","end",e)}if(typeof t=="function"){let n=t();return n&&n.finally?n.finally(r):(r(),n)}return r},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let r=e();return r&&r.finally?r.finally(t):(t(),r)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,r,n=new Promise((i,s)=>{t=i,r=s});return process.emit("input","read",t,r,...e),n}}}});var Df=F((a5,Fy)=>{var Ry=e=>{if(typeof e=="string"){if(/^0o?[0-7]+$/.test(e))return parseInt(e.replace(/^0o?/,""),8);if(/^[1-9][0-9]*$/.test(e))return parseInt(e,10);throw new Error(`invalid umask value: ${e}`)}else{if(typeof e!="number")throw new Error(`invalid umask value: ${e}`);if(e=Math.floor(e),e<0||e>511)throw new Error(`invalid umask value: ${e}`);return e}},FD=(e,t,r)=>{try{return e[t]=Ry(r),!0}catch{return!1}};Fy.exports={parse:Ry,validate:FD}});var no=F((u5,Dy)=>{"use strict";var DD=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};Dy.exports=DD});var io=F((c5,Ly)=>{"use strict";var LD="2.0.0",kD=Number.MAX_SAFE_INTEGER||9007199254740991,TD=16,ID=250,ND=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Ly.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:TD,MAX_SAFE_BUILD_LENGTH:ID,MAX_SAFE_INTEGER:kD,RELEASE_TYPES:ND,SEMVER_SPEC_VERSION:LD,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ji=F((qr,ky)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Lf,MAX_SAFE_BUILD_LENGTH:$D,MAX_LENGTH:MD}=io(),jD=no();qr=ky.exports={};var BD=qr.re=[],WD=qr.safeRe=[],oe=qr.src=[],qD=qr.safeSrc=[],ae=qr.t={},GD=0,kf="[a-zA-Z0-9-]",UD=[["\\s",1],["\\d",MD],[kf,$D]],HD=e=>{for(let[t,r]of UD)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Se=(e,t,r)=>{let n=HD(t),i=GD++;jD(e,i,t),ae[e]=i,oe[i]=t,qD[i]=n,BD[i]=new RegExp(t,r?"g":void 0),WD[i]=new RegExp(n,r?"g":void 0)};Se("NUMERICIDENTIFIER","0|[1-9]\\d*");Se("NUMERICIDENTIFIERLOOSE","\\d+");Se("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${kf}*`);Se("MAINVERSION",`(${oe[ae.NUMERICIDENTIFIER]})\\.(${oe[ae.NUMERICIDENTIFIER]})\\.(${oe[ae.NUMERICIDENTIFIER]})`);Se("MAINVERSIONLOOSE",`(${oe[ae.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ae.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ae.NUMERICIDENTIFIERLOOSE]})`);Se("PRERELEASEIDENTIFIER",`(?:${oe[ae.NONNUMERICIDENTIFIER]}|${oe[ae.NUMERICIDENTIFIER]})`);Se("PRERELEASEIDENTIFIERLOOSE",`(?:${oe[ae.NONNUMERICIDENTIFIER]}|${oe[ae.NUMERICIDENTIFIERLOOSE]})`);Se("PRERELEASE",`(?:-(${oe[ae.PRERELEASEIDENTIFIER]}(?:\\.${oe[ae.PRERELEASEIDENTIFIER]})*))`);Se("PRERELEASELOOSE",`(?:-?(${oe[ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${oe[ae.PRERELEASEIDENTIFIERLOOSE]})*))`);Se("BUILDIDENTIFIER",`${kf}+`);Se("BUILD",`(?:\\+(${oe[ae.BUILDIDENTIFIER]}(?:\\.${oe[ae.BUILDIDENTIFIER]})*))`);Se("FULLPLAIN",`v?${oe[ae.MAINVERSION]}${oe[ae.PRERELEASE]}?${oe[ae.BUILD]}?`);Se("FULL",`^${oe[ae.FULLPLAIN]}$`);Se("LOOSEPLAIN",`[v=\\s]*${oe[ae.MAINVERSIONLOOSE]}${oe[ae.PRERELEASELOOSE]}?${oe[ae.BUILD]}?`);Se("LOOSE",`^${oe[ae.LOOSEPLAIN]}$`);Se("GTLT","((?:<|>)?=?)");Se("XRANGEIDENTIFIERLOOSE",`${oe[ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Se("XRANGEIDENTIFIER",`${oe[ae.NUMERICIDENTIFIER]}|x|X|\\*`);Se("XRANGEPLAIN",`[v=\\s]*(${oe[ae.XRANGEIDENTIFIER]})(?:\\.(${oe[ae.XRANGEIDENTIFIER]})(?:\\.(${oe[ae.XRANGEIDENTIFIER]})(?:${oe[ae.PRERELEASE]})?${oe[ae.BUILD]}?)?)?`);Se("XRANGEPLAINLOOSE",`[v=\\s]*(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:${oe[ae.PRERELEASELOOSE]})?${oe[ae.BUILD]}?)?)?`);Se("XRANGE",`^${oe[ae.GTLT]}\\s*${oe[ae.XRANGEPLAIN]}$`);Se("XRANGELOOSE",`^${oe[ae.GTLT]}\\s*${oe[ae.XRANGEPLAINLOOSE]}$`);Se("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Lf}})(?:\\.(\\d{1,${Lf}}))?(?:\\.(\\d{1,${Lf}}))?`);Se("COERCE",`${oe[ae.COERCEPLAIN]}(?:$|[^\\d])`);Se("COERCEFULL",oe[ae.COERCEPLAIN]+`(?:${oe[ae.PRERELEASE]})?(?:${oe[ae.BUILD]})?(?:$|[^\\d])`);Se("COERCERTL",oe[ae.COERCE],!0);Se("COERCERTLFULL",oe[ae.COERCEFULL],!0);Se("LONETILDE","(?:~>?)");Se("TILDETRIM",`(\\s*)${oe[ae.LONETILDE]}\\s+`,!0);qr.tildeTrimReplace="$1~";Se("TILDE",`^${oe[ae.LONETILDE]}${oe[ae.XRANGEPLAIN]}$`);Se("TILDELOOSE",`^${oe[ae.LONETILDE]}${oe[ae.XRANGEPLAINLOOSE]}$`);Se("LONECARET","(?:\\^)");Se("CARETTRIM",`(\\s*)${oe[ae.LONECARET]}\\s+`,!0);qr.caretTrimReplace="$1^";Se("CARET",`^${oe[ae.LONECARET]}${oe[ae.XRANGEPLAIN]}$`);Se("CARETLOOSE",`^${oe[ae.LONECARET]}${oe[ae.XRANGEPLAINLOOSE]}$`);Se("COMPARATORLOOSE",`^${oe[ae.GTLT]}\\s*(${oe[ae.LOOSEPLAIN]})$|^$`);Se("COMPARATOR",`^${oe[ae.GTLT]}\\s*(${oe[ae.FULLPLAIN]})$|^$`);Se("COMPARATORTRIM",`(\\s*)${oe[ae.GTLT]}\\s*(${oe[ae.LOOSEPLAIN]}|${oe[ae.XRANGEPLAIN]})`,!0);qr.comparatorTrimReplace="$1$2$3";Se("HYPHENRANGE",`^\\s*(${oe[ae.XRANGEPLAIN]})\\s+-\\s+(${oe[ae.XRANGEPLAIN]})\\s*$`);Se("HYPHENRANGELOOSE",`^\\s*(${oe[ae.XRANGEPLAINLOOSE]})\\s+-\\s+(${oe[ae.XRANGEPLAINLOOSE]})\\s*$`);Se("STAR","(<|>)?=?\\s*\\*");Se("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Se("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ru=F((l5,Ty)=>{"use strict";var zD=Object.freeze({loose:!0}),YD=Object.freeze({}),VD=e=>e?typeof e!="object"?zD:e:YD;Ty.exports=VD});var Tf=F((f5,$y)=>{"use strict";var Iy=/^[0-9]+$/,Ny=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let r=Iy.test(e),n=Iy.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},KD=(e,t)=>Ny(t,e);$y.exports={compareIdentifiers:Ny,rcompareIdentifiers:KD}});var gt=F((h5,jy)=>{"use strict";var nu=no(),{MAX_LENGTH:My,MAX_SAFE_INTEGER:iu}=io(),{safeRe:su,t:ou}=Ji(),XD=ru(),{compareIdentifiers:If}=Tf(),Nf=class e{constructor(t,r){if(r=XD(r),t instanceof e){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>My)throw new TypeError(`version is longer than ${My} characters`);nu("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?su[ou.LOOSE]:su[ou.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>iu||this.major<0)throw new TypeError("Invalid major version");if(this.minor>iu||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>iu||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<iu)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(nu("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(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{let n=this.prerelease[r],i=t.prerelease[r];if(nu("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 If(n,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(nu("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 If(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){let i=`-${r}`.match(this.options.loose?su[ou.PRERELEASELOOSE]:su[ou.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":{let 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]),If(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}};jy.exports=Nf});var yi=F((d5,Wy)=>{"use strict";var By=gt(),JD=(e,t,r=!1)=>{if(e instanceof By)return e;try{return new By(e,t)}catch(n){if(!r)return null;throw n}};Wy.exports=JD});var au=F((p5,qy)=>{"use strict";var QD=yi(),ZD=(e,t)=>{let r=QD(e,t);return r?r.version:null};qy.exports=ZD});var uu=F((g5,jf)=>{var Dn=Ff(),{validate:eL}=Df(),$f=class{},Mf=class{},tL=au(),rL=(e,t,r)=>{let n=tL(r);if(!n)return!1;e[t]=n},nL=Dn.typeDefs.path.validate,iL=(e,t,r)=>typeof r!="string"?!1:nL(e,t,r);jf.exports={...Dn.typeDefs,semver:{type:Mf,validate:rL,description:"full valid SemVer string"},Umask:{type:$f,validate:eL,description:"octal number in range 0o000..0o777 (0..511)"},url:{...Dn.typeDefs.url,description:'full url with "http://"'},path:{...Dn.typeDefs.path,validate:iL,description:"valid filesystem path"},Number:{...Dn.typeDefs.Number,description:"numeric value"},Boolean:{...Dn.typeDefs.Boolean,description:"boolean value (true or false)"},Date:{...Dn.typeDefs.Date,description:"valid Date string"}};Dn.typeDefs=jf.exports});var Hy=F((m5,Uy)=>{var{URL:Gy}=require("node:url");Uy.exports=e=>{let t=new Gy(e),r=`${t.protocol}//${t.host}${t.pathname}`,n=new Gy(".",r);return`//${n.host}${n.pathname}`}});var Bf=F((y5,zy)=>{var sL=/(?<!\\)(\\*)\$\{([^${}?]+)(\?)?\}/g;zy.exports=(e,t)=>e.replace(sL,(r,n,i,s)=>{let o=s==="?"?"":`\${${i}}`,a=t[i]!==void 0?t[i]:o;return n.length%2?r.slice((n.length+1)/2):n.slice(n.length/2)+a})});var Ky=F((v5,Vy)=>{var Qi=uu(),oL=Bf(),{resolve:Yy}=require("node:path"),{parse:aL}=Df(),Wf=(e,t,r,n=!1)=>{if(typeof e!="string"&&!Array.isArray(e))return e;let{platform:i,types:s,home:o,env:a}=r,u=new Set([].concat(s[t])),c=u.has(Qi.path.type),f=u.has(Qi.Boolean.type),l=c||u.has(Qi.String.type),h=u.has(Qi.Umask.type),d=u.has(Qi.Number.type),p=!n&&u.has(Array),y=u.has(Qi.Date.type);if(Array.isArray(e))return p?e.map(m=>Wf(m,t,r,!0)):e;if(e=e.trim(),p)return Wf(e.split(`
3
+ `,n=t.whitespace?" = ":"=",i=[],s=t.sort?Object.keys(e).sort():Object.keys(e),o=0;t.align&&(o=on(s.filter(c=>e[c]===null||Array.isArray(e[c])||typeof e[c]!="object").map(c=>Array.isArray(e[c])?`${c}[]`:c).concat([""]).reduce((c,f)=>on(c).length>=on(f).length?c:f)).length);let a="",u=t.bracketedArray?"[]":"";for(let c of s){let f=e[c];if(f&&Array.isArray(f))for(let l of f)a+=on(`${c}${u}`).padEnd(o," ")+n+on(l)+r;else f&&typeof f=="object"?i.push(c):a+=on(c).padEnd(o," ")+n+on(f)+r}t.section&&a.length&&(a="["+on(t.section)+"]"+(t.newline?r+r:r)+a);for(let c of i){let f=wy(c,".").join("\\."),l=(t.section?t.section+".":"")+f,h=Ff(e[c],{...t,section:l});a.length&&h.length&&(a+=r),a+=h}return a};function wy(e,t){var r=0,n=0,i=0,s=[];do if(i=e.indexOf(t,r),i!==-1){if(r=i+t.length,i>0&&e[i-1]==="\\")continue;s.push(e.slice(n,i)),n=i+t.length}while(i!==-1);return s.push(e.slice(n)),s}var by=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),n=r,i=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,o=e.split(/[\r\n]+/g),a={};for(let c of o){if(!c||c.match(/^\s*[;#]/)||c.match(/^\s*$/))continue;let f=c.match(s);if(!f)continue;if(f[1]!==void 0){if(i=nu(f[1]),i==="__proto__"){n=Object.create(null);continue}n=r[i]=r[i]||Object.create(null);continue}let l=nu(f[2]),h;t.bracketedArray?h=l.length>2&&l.slice(-2)==="[]":(a[l]=(a?.[l]||0)+1,h=a[l]>1);let d=h&&l.endsWith("[]")?l.slice(0,-2):l;if(d==="__proto__")continue;let p=f[3]?nu(f[4]):!0,y=p==="true"||p==="false"||p==="null"?JSON.parse(p):p;h&&(Rf.call(n,d)?Array.isArray(n[d])||(n[d]=[n[d]]):n[d]=[]),Array.isArray(n[d])?n[d].push(y):n[d]=y}let u=[];for(let c of Object.keys(r)){if(!Rf.call(r,c)||typeof r[c]!="object"||Array.isArray(r[c]))continue;let f=wy(c,".");n=r;let l=f.pop(),h=l.replace(/\\\./g,".");for(let d of f)d!=="__proto__"&&((!Rf.call(n,d)||typeof n[d]!="object")&&(n[d]=Object.create(null)),n=n[d]);n===r&&h===l||(n[h]=r[c],u.push(c))}for(let c of u)delete r[c];return r},Sy=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),on=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Sy(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),nu=e=>{if(e=(e||"").trim(),Sy(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,r="";for(let n=0,i=e.length;n<i;n++){let s=e.charAt(n);if(t)"\\;#".indexOf(s)!==-1?r+=s:r+="\\"+s,t=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?t=!0:r+=s}}return t&&(r+="\\"),r.trim()}return e};Cy.exports={parse:by,decode:by,stringify:Ff,encode:Ff,safe:on,unsafe:nu}});var Py=F((q5,xy)=>{xy.exports=Dk;function Dk(...e){let t=e;e.length===1&&(Array.isArray(e[0])||typeof e[0]=="string")&&(t=[].concat(e[0]));for(let i=0,s=t.length;i<s;i++)t[i]=typeof t[i]=="string"?t[i]:String(t[i]);t=t.sort(Lk);let r={},n="";for(let i=0,s=t.length;i<s;i++){let o=t[i],a=t[i+1]||"",u=!0,c=!0;if(o===a)continue;let f=0,l=o.length;for(;f<l;f++){let h=o.charAt(f);if(u=u&&h===a.charAt(f),c=c&&h===n.charAt(f),!u&&!c){f++;break}}if(n=o,f===l){r[o]=o;continue}for(let h=o.slice(0,f);f<=l;f++)r[h]=o,h+=o.charAt(f)}return r}function Lk(e,t){return e===t?0:e>t?1:-1}});var Df=F((G5,Oy)=>{Oy.exports=process.env.DEBUG_NOPT||process.env.NOPT_DEBUG?(...e)=>console.error(...e):()=>{}});var Tf=F((U5,ky)=>{var _y=require("url"),Lf=require("path"),Ry=require("stream").Stream,Tk=require("os"),Fy=Df();function Ik(e,t,r){e[t]=String(r)}function Nk(e,t,r){if(r===!0)return!1;if(r===null)return!0;r=String(r);let i=process.platform==="win32"?/^~(\/|\\)/:/^~\//,s=Tk.homedir();return s&&r.match(i)?e[t]=Lf.resolve(s,r.slice(2)):e[t]=Lf.resolve(r),!0}function $k(e,t,r){if(Fy("validate Number %j %j %j",t,r,isNaN(r)),isNaN(r))return!1;e[t]=+r}function Mk(e,t,r){let n=Date.parse(r);if(Fy("validate Date %j %j %j",t,r,n),isNaN(n))return!1;e[t]=new Date(r)}function jk(e,t,r){typeof r=="string"?isNaN(r)?r==="null"||r==="false"?r=!1:r=!0:r=!!+r:r=!!r,e[t]=r}function Bk(e,t,r){if(r=_y.parse(String(r)),!r.host)return!1;e[t]=r.href}function Wk(e,t,r){if(!(r instanceof Ry))return!1;e[t]=r}ky.exports={String:{type:String,validate:Ik},Boolean:{type:Boolean,validate:jk},url:{type:_y,validate:Bk},Number:{type:Number,validate:$k},path:{type:Lf,validate:Nk},Stream:{type:Ry,validate:Wk},Date:{type:Date,validate:Mk},Array:{type:Array}}});var jy=F((H5,My)=>{var iu=Py(),$e=Df(),qk=Tf(),Ly=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ty=(e,{types:t,dynamicTypes:r})=>{let n=Ly(t,e),i=t[e];if(!n&&typeof r=="function"){let s=r(e);s!==void 0&&(i=s,n=!0)}return[n,i]},Xi=(e,t)=>t&&e===t,Wr=(e,t)=>t&&e.indexOf(t)!==-1,Gk=(e,t)=>t&&!Wr(e,t);function Uk(e,{types:t,shorthands:r,typeDefs:n,invalidHandler:i,unknownHandler:s,abbrevHandler:o,typeDefault:a,dynamicTypes:u}={}){$e(t,r,e,n);let c={},f={remain:[],cooked:e,original:e.slice(0)};return Ny(e,c,f.remain,{typeDefs:n,types:t,dynamicTypes:u,shorthands:r,unknownHandler:s,abbrevHandler:o}),Iy(c,{types:t,dynamicTypes:u,typeDefs:n,invalidHandler:i,typeDefault:a}),c.argv=f,Object.defineProperty(c.argv,"toString",{value:function(){return this.original.map(JSON.stringify).join(" ")},enumerable:!1}),c}function Iy(e,{types:t={},typeDefs:r={},dynamicTypes:n,invalidHandler:i,typeDefault:s}={}){let o=r.String?.type,a=r.Number?.type,u=r.Array?.type,c=r.Boolean?.type,f=r.Date?.type,l=typeof s<"u";l||(s=[!1,!0,null],o&&s.push(o),u&&s.push(u));let h={};Object.keys(e).forEach(d=>{if(d==="argv")return;let p=e[d];$e("val=%j",p);let y=Array.isArray(p),[m,P]=Ty(d,{types:t,dynamicTypes:n}),S=P;y||(p=[p]),S||(S=s),Xi(S,u)&&(S=s.concat(u)),Array.isArray(S)||(S=[S]),$e("val=%j",p),$e("types=",S),p=p.map(L=>{if(typeof L=="string"&&($e("string %j",L),L=L.trim(),L==="null"&&~S.indexOf(null)||L==="true"&&(~S.indexOf(!0)||Wr(S,c))||L==="false"&&(~S.indexOf(!1)||Wr(S,c))?(L=JSON.parse(L),$e("jsonable %j",L)):Wr(S,a)&&!isNaN(L)?($e("convert to number",L),L=+L):Wr(S,f)&&!isNaN(Date.parse(L))&&($e("convert to date",L),L=new Date(L))),!m){if(!l)return L;P=s}L===!1&&~S.indexOf(null)&&!(~S.indexOf(!1)||Wr(S,c))&&(L=null);let O={};return O[d]=L,$e("prevalidated val",O,L,P),If(O,d,L,P,{typeDefs:r})?($e("validated v",O,L,P),O[d]):(i?i(d,L,P,e):i!==!1&&$e("invalid: "+d+"="+L,P),h)}).filter(L=>L!==h),!p.length&&Gk(S,u)?($e("VAL HAS NO LENGTH, DELETE IT",p,d,S.indexOf(u)),delete e[d]):y?($e(y,e[d],p),e[d]=p):e[d]=p[0],$e("k=%s val=%j",d,p,e[d])})}function If(e,t,r,n,{typeDefs:i}={}){let s=i?.Array?.type;if(Array.isArray(n)){for(let u=0,c=n.length;u<c;u++)if(!Xi(n[u],s)&&If(e,t,r,n[u],{typeDefs:i}))return!0;return delete e[t],!1}if(Xi(n,s))return!0;if(n!==n)return $e("Poison NaN",t,r,n),delete e[t],!1;if(r===n)return $e("Explicitly allowed %j",r),e[t]=r,!0;let o=!1,a=Object.keys(i);for(let u=0,c=a.length;u<c;u++){$e("test type %j %j %j",t,r,a[u]);let f=i[a[u]];if(f&&(n&&n.name&&f.type&&f.type.name?n.name===f.type.name:n===f.type)){let l={};if(o=f.validate(l,t,r)!==!1,r=l[t],o){e[t]=r;break}}}return $e("OK? %j (%j %j %j)",o,t,r,a[a.length-1]),o||delete e[t],o}function Ny(e,t,r,{types:n={},typeDefs:i={},shorthands:s={},dynamicTypes:o,unknownHandler:a,abbrevHandler:u}={}){let c=i.String?.type,f=i.Number?.type,l=i.Array?.type,h=i.Boolean?.type;$e("parse",e,t,r);let d=iu(Object.keys(n));$e("abbrevs=%j",d);let p=iu(Object.keys(s));for(let y=0;y<e.length;y++){let m=e[y];if($e("arg",m),m.match(/^-{2,}$/)){r.push.apply(r,e.slice(y+1)),e[y]="--";break}let P=!1;if(m.charAt(0)==="-"&&m.length>1){let S=m.indexOf("=");if(S>-1){P=!0;let v=m.slice(S+1);m=m.slice(0,S),e.splice(y,1,m,v)}let L=$y(m,p,d,{shorthands:s,abbrevHandler:u});if($e("arg=%j shRes=%j",m,L),L&&(e.splice.apply(e,[y,1].concat(L)),m!==L[0])){y--;continue}m=m.replace(/^-+/,"");let O=null;for(;m.toLowerCase().indexOf("no-")===0;)O=!O,m=m.slice(3);d[m]&&d[m]!==m&&(u?u(m,d[m]):u!==!1&&$e(`abbrev: ${m} -> ${d[m]}`),m=d[m]);let[b,_]=Ty(m,{types:n,dynamicTypes:o}),D=Array.isArray(_);D&&_.length===1&&(D=!1,_=_[0]);let k=Xi(_,l)||D&&Wr(_,l);!b&&Ly(t,m)&&(Array.isArray(t[m])||(t[m]=[t[m]]),k=!0);let $,x=e[y+1],g=typeof O=="boolean"||Xi(_,h)||D&&Wr(_,h)||typeof _>"u"&&!P||x==="false"&&(_===null||D&&~_.indexOf(null));if(typeof _>"u"){let v=!P&&x&&!x?.startsWith("-")&&!["true","false"].includes(x);a?v?a(m,x):a(m):a!==!1&&($e(`unknown: ${m}`),v&&$e(`unknown: ${x} parsed as normal opt`))}if(g){$=!O,(x==="true"||x==="false")&&($=JSON.parse(x),x=null,O&&($=!$),y++),D&&x&&(~_.indexOf(x)?($=x,y++):x==="null"&&~_.indexOf(null)?($=null,y++):!x.match(/^-{2,}[^-]/)&&!isNaN(x)&&Wr(_,f)?($=+x,y++):!x.match(/^-[^-]/)&&Wr(_,c)&&($=x,y++)),k?(t[m]=t[m]||[]).push($):t[m]=$;continue}Xi(_,c)&&(x===void 0?x="":x.match(/^-{1,2}[^-]+/)&&(x="",y--)),x&&x.match(/^-{2,}$/)&&(x=void 0,y--),$=x===void 0?!0:x,k?(t[m]=t[m]||[]).push($):t[m]=$,y++;continue}r.push(m)}}var Dy=Symbol("singles"),Hk=(e,t)=>{let r=t[Dy];r||(r=Object.keys(t).filter(i=>i.length===1).reduce((i,s)=>(i[s]=!0,i),{}),t[Dy]=r,$e("shorthand singles",r));let n=e.split("").filter(i=>r[i]);return n.join("")===e?n:null};function $y(e,...t){let{abbrevHandler:r,types:n={},shorthands:i={}}=t.length?t.pop():{},s=t[0]??iu(Object.keys(i)),o=t[1]??iu(Object.keys(n));if(e=e.replace(/^-+/,""),o[e]===e)return null;if(i[e])return i[e]&&!Array.isArray(i[e])&&(i[e]=i[e].split(/\s+/)),i[e];let a=Hk(e,i);return a?a.map(u=>i[u]).reduce((u,c)=>u.concat(c),[]):o[e]&&!i[e]?null:(s[e]&&(r?r(e,s[e]):r!==!1&&$e(`abbrev: ${e} -> ${s[e]}`),e=s[e]),i[e]&&!Array.isArray(i[e])&&(i[e]=i[e].split(/\s+/)),i[e])}My.exports={nopt:Uk,clean:Iy,parse:Ny,validate:If,resolveShort:$y,typeDefs:qk}});var $f=F((rr,By)=>{var Nf=jy(),zk=Tf();By.exports=rr=Yk;rr.clean=Vk;rr.typeDefs=zk;rr.lib=Nf;function Yk(e,t,r=process.argv,n=2){return Nf.nopt(r.slice(n),{types:e||{},shorthands:t||{},typeDefs:rr.typeDefs,invalidHandler:rr.invalidHandler,unknownHandler:rr.unknownHandler,abbrevHandler:rr.abbrevHandler})}function Vk(e,t,r=rr.typeDefs){return Nf.clean(e,{types:t||{},typeDefs:r,invalidHandler:rr.invalidHandler,unknownHandler:rr.unknownHandler,abbrevHandler:rr.abbrevHandler})}});var su=F((z5,Wy)=>{var Kk=Symbol("proc-log.meta");Wy.exports={META:Kk,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function r(){return process.emit("time","end",e)}if(typeof t=="function"){let n=t();return n&&n.finally?n.finally(r):(r(),n)}return r},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let r=e();return r&&r.finally?r.finally(t):(t(),r)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,r,n=new Promise((i,s)=>{t=i,r=s});return process.emit("input","read",t,r,...e),n}}}});var Mf=F((Y5,Gy)=>{var qy=e=>{if(typeof e=="string"){if(/^0o?[0-7]+$/.test(e))return parseInt(e.replace(/^0o?/,""),8);if(/^[1-9][0-9]*$/.test(e))return parseInt(e,10);throw new Error(`invalid umask value: ${e}`)}else{if(typeof e!="number")throw new Error(`invalid umask value: ${e}`);if(e=Math.floor(e),e<0||e>511)throw new Error(`invalid umask value: ${e}`);return e}},Jk=(e,t,r)=>{try{return e[t]=qy(r),!0}catch{return!1}};Gy.exports={parse:qy,validate:Jk}});var uo=F((V5,Uy)=>{"use strict";var Xk=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};Uy.exports=Xk});var co=F((K5,Hy)=>{"use strict";var Qk="2.0.0",Zk=Number.MAX_SAFE_INTEGER||9007199254740991,eD=16,tD=250,rD=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Hy.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:eD,MAX_SAFE_BUILD_LENGTH:tD,MAX_SAFE_INTEGER:Zk,RELEASE_TYPES:rD,SEMVER_SPEC_VERSION:Qk,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Qi=F((qr,zy)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:jf,MAX_SAFE_BUILD_LENGTH:nD,MAX_LENGTH:iD}=co(),sD=uo();qr=zy.exports={};var oD=qr.re=[],aD=qr.safeRe=[],ae=qr.src=[],uD=qr.safeSrc=[],ue=qr.t={},cD=0,Bf="[a-zA-Z0-9-]",lD=[["\\s",1],["\\d",iD],[Bf,nD]],fD=e=>{for(let[t,r]of lD)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Ce=(e,t,r)=>{let n=fD(t),i=cD++;sD(e,i,t),ue[e]=i,ae[i]=t,uD[i]=n,oD[i]=new RegExp(t,r?"g":void 0),aD[i]=new RegExp(n,r?"g":void 0)};Ce("NUMERICIDENTIFIER","0|[1-9]\\d*");Ce("NUMERICIDENTIFIERLOOSE","\\d+");Ce("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Bf}*`);Ce("MAINVERSION",`(${ae[ue.NUMERICIDENTIFIER]})\\.(${ae[ue.NUMERICIDENTIFIER]})\\.(${ae[ue.NUMERICIDENTIFIER]})`);Ce("MAINVERSIONLOOSE",`(${ae[ue.NUMERICIDENTIFIERLOOSE]})\\.(${ae[ue.NUMERICIDENTIFIERLOOSE]})\\.(${ae[ue.NUMERICIDENTIFIERLOOSE]})`);Ce("PRERELEASEIDENTIFIER",`(?:${ae[ue.NONNUMERICIDENTIFIER]}|${ae[ue.NUMERICIDENTIFIER]})`);Ce("PRERELEASEIDENTIFIERLOOSE",`(?:${ae[ue.NONNUMERICIDENTIFIER]}|${ae[ue.NUMERICIDENTIFIERLOOSE]})`);Ce("PRERELEASE",`(?:-(${ae[ue.PRERELEASEIDENTIFIER]}(?:\\.${ae[ue.PRERELEASEIDENTIFIER]})*))`);Ce("PRERELEASELOOSE",`(?:-?(${ae[ue.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ae[ue.PRERELEASEIDENTIFIERLOOSE]})*))`);Ce("BUILDIDENTIFIER",`${Bf}+`);Ce("BUILD",`(?:\\+(${ae[ue.BUILDIDENTIFIER]}(?:\\.${ae[ue.BUILDIDENTIFIER]})*))`);Ce("FULLPLAIN",`v?${ae[ue.MAINVERSION]}${ae[ue.PRERELEASE]}?${ae[ue.BUILD]}?`);Ce("FULL",`^${ae[ue.FULLPLAIN]}$`);Ce("LOOSEPLAIN",`[v=\\s]*${ae[ue.MAINVERSIONLOOSE]}${ae[ue.PRERELEASELOOSE]}?${ae[ue.BUILD]}?`);Ce("LOOSE",`^${ae[ue.LOOSEPLAIN]}$`);Ce("GTLT","((?:<|>)?=?)");Ce("XRANGEIDENTIFIERLOOSE",`${ae[ue.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ce("XRANGEIDENTIFIER",`${ae[ue.NUMERICIDENTIFIER]}|x|X|\\*`);Ce("XRANGEPLAIN",`[v=\\s]*(${ae[ue.XRANGEIDENTIFIER]})(?:\\.(${ae[ue.XRANGEIDENTIFIER]})(?:\\.(${ae[ue.XRANGEIDENTIFIER]})(?:${ae[ue.PRERELEASE]})?${ae[ue.BUILD]}?)?)?`);Ce("XRANGEPLAINLOOSE",`[v=\\s]*(${ae[ue.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ae[ue.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ae[ue.XRANGEIDENTIFIERLOOSE]})(?:${ae[ue.PRERELEASELOOSE]})?${ae[ue.BUILD]}?)?)?`);Ce("XRANGE",`^${ae[ue.GTLT]}\\s*${ae[ue.XRANGEPLAIN]}$`);Ce("XRANGELOOSE",`^${ae[ue.GTLT]}\\s*${ae[ue.XRANGEPLAINLOOSE]}$`);Ce("COERCEPLAIN",`(^|[^\\d])(\\d{1,${jf}})(?:\\.(\\d{1,${jf}}))?(?:\\.(\\d{1,${jf}}))?`);Ce("COERCE",`${ae[ue.COERCEPLAIN]}(?:$|[^\\d])`);Ce("COERCEFULL",ae[ue.COERCEPLAIN]+`(?:${ae[ue.PRERELEASE]})?(?:${ae[ue.BUILD]})?(?:$|[^\\d])`);Ce("COERCERTL",ae[ue.COERCE],!0);Ce("COERCERTLFULL",ae[ue.COERCEFULL],!0);Ce("LONETILDE","(?:~>?)");Ce("TILDETRIM",`(\\s*)${ae[ue.LONETILDE]}\\s+`,!0);qr.tildeTrimReplace="$1~";Ce("TILDE",`^${ae[ue.LONETILDE]}${ae[ue.XRANGEPLAIN]}$`);Ce("TILDELOOSE",`^${ae[ue.LONETILDE]}${ae[ue.XRANGEPLAINLOOSE]}$`);Ce("LONECARET","(?:\\^)");Ce("CARETTRIM",`(\\s*)${ae[ue.LONECARET]}\\s+`,!0);qr.caretTrimReplace="$1^";Ce("CARET",`^${ae[ue.LONECARET]}${ae[ue.XRANGEPLAIN]}$`);Ce("CARETLOOSE",`^${ae[ue.LONECARET]}${ae[ue.XRANGEPLAINLOOSE]}$`);Ce("COMPARATORLOOSE",`^${ae[ue.GTLT]}\\s*(${ae[ue.LOOSEPLAIN]})$|^$`);Ce("COMPARATOR",`^${ae[ue.GTLT]}\\s*(${ae[ue.FULLPLAIN]})$|^$`);Ce("COMPARATORTRIM",`(\\s*)${ae[ue.GTLT]}\\s*(${ae[ue.LOOSEPLAIN]}|${ae[ue.XRANGEPLAIN]})`,!0);qr.comparatorTrimReplace="$1$2$3";Ce("HYPHENRANGE",`^\\s*(${ae[ue.XRANGEPLAIN]})\\s+-\\s+(${ae[ue.XRANGEPLAIN]})\\s*$`);Ce("HYPHENRANGELOOSE",`^\\s*(${ae[ue.XRANGEPLAINLOOSE]})\\s+-\\s+(${ae[ue.XRANGEPLAINLOOSE]})\\s*$`);Ce("STAR","(<|>)?=?\\s*\\*");Ce("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ce("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ou=F((J5,Yy)=>{"use strict";var hD=Object.freeze({loose:!0}),dD=Object.freeze({}),pD=e=>e?typeof e!="object"?hD:e:dD;Yy.exports=pD});var Wf=F((X5,Jy)=>{"use strict";var Vy=/^[0-9]+$/,Ky=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let r=Vy.test(e),n=Vy.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},gD=(e,t)=>Ky(t,e);Jy.exports={compareIdentifiers:Ky,rcompareIdentifiers:gD}});var yt=F((Q5,Qy)=>{"use strict";var au=uo(),{MAX_LENGTH:Xy,MAX_SAFE_INTEGER:uu}=co(),{safeRe:cu,t:lu}=Qi(),mD=ou(),{compareIdentifiers:qf}=Wf(),Gf=class e{constructor(t,r){if(r=mD(r),t instanceof e){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>Xy)throw new TypeError(`version is longer than ${Xy} characters`);au("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?cu[lu.LOOSE]:cu[lu.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>uu||this.major<0)throw new TypeError("Invalid major version");if(this.minor>uu||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>uu||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<uu)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(au("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(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{let n=this.prerelease[r],i=t.prerelease[r];if(au("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 qf(n,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(au("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 qf(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){let i=`-${r}`.match(this.options.loose?cu[lu.PRERELEASELOOSE]:cu[lu.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":{let 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]),qf(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}};Qy.exports=Gf});var yi=F((Z5,ev)=>{"use strict";var Zy=yt(),yD=(e,t,r=!1)=>{if(e instanceof Zy)return e;try{return new Zy(e,t)}catch(n){if(!r)return null;throw n}};ev.exports=yD});var fu=F((eV,tv)=>{"use strict";var vD=yi(),AD=(e,t)=>{let r=vD(e,t);return r?r.version:null};tv.exports=AD});var hu=F((tV,zf)=>{var Fn=$f(),{validate:ED}=Mf(),Uf=class{},Hf=class{},bD=fu(),wD=(e,t,r)=>{let n=bD(r);if(!n)return!1;e[t]=n},SD=Fn.typeDefs.path.validate,CD=(e,t,r)=>typeof r!="string"?!1:SD(e,t,r);zf.exports={...Fn.typeDefs,semver:{type:Hf,validate:wD,description:"full valid SemVer string"},Umask:{type:Uf,validate:ED,description:"octal number in range 0o000..0o777 (0..511)"},url:{...Fn.typeDefs.url,description:'full url with "http://"'},path:{...Fn.typeDefs.path,validate:CD,description:"valid filesystem path"},Number:{...Fn.typeDefs.Number,description:"numeric value"},Boolean:{...Fn.typeDefs.Boolean,description:"boolean value (true or false)"},Date:{...Fn.typeDefs.Date,description:"valid Date string"}};Fn.typeDefs=zf.exports});var iv=F((rV,nv)=>{var{URL:rv}=require("node:url");nv.exports=e=>{let t=new rv(e),r=`${t.protocol}//${t.host}${t.pathname}`,n=new rv(".",r);return`//${n.host}${n.pathname}`}});var Yf=F((nV,sv)=>{var xD=/(?<!\\)(\\*)\$\{([^${}?]+)(\?)?\}/g;sv.exports=(e,t)=>e.replace(xD,(r,n,i,s)=>{let o=s==="?"?"":`\${${i}}`,a=t[i]!==void 0?t[i]:o;return n.length%2?r.slice((n.length+1)/2):n.slice(n.length/2)+a})});var uv=F((iV,av)=>{var Zi=hu(),PD=Yf(),{resolve:ov}=require("node:path"),{parse:OD}=Mf(),Vf=(e,t,r,n=!1)=>{if(typeof e!="string"&&!Array.isArray(e))return e;let{platform:i,types:s,home:o,env:a}=r,u=new Set([].concat(s[t])),c=u.has(Zi.path.type),f=u.has(Zi.Boolean.type),l=c||u.has(Zi.String.type),h=u.has(Zi.Umask.type),d=u.has(Zi.Number.type),p=!n&&u.has(Array),y=u.has(Zi.Date.type);if(Array.isArray(e))return p?e.map(m=>Vf(m,t,r,!0)):e;if(e=e.trim(),p)return Vf(e.split(`
4
4
 
5
- `),t,r);if(f&&!l&&e==="")return!0;if(!l&&!c&&!d)switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}if(e=oL(e,a),y)return new Date(e);if(c&&((i==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&o?e=Yy(o,e.slice(2)):e=Yy(e)),h)try{return aL(e)}catch{return e}return d&&!isNaN(e)&&(e=+e),e};Vy.exports=Wf});var Zy=F((A5,Qy)=>{var uL=(e,t)=>!/^[/@_]/.test(e)&&typeof qf(t)=="string"&&`npm_config_${e.replace(/-/g,"_").toLowerCase()}`,qf=e=>Array.isArray(e)?e.map(t=>qf(t)).join(`
5
+ `),t,r);if(f&&!l&&e==="")return!0;if(!l&&!c&&!d)switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}if(e=PD(e,a),y)return new Date(e);if(c&&((i==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&o?e=ov(o,e.slice(2)):e=ov(e)),h)try{return OD(e)}catch{return e}return d&&!isNaN(e)&&(e=+e),e};av.exports=Vf});var hv=F((sV,fv)=>{var _D=(e,t)=>!/^[/@_]/.test(e)&&typeof Kf(t)=="string"&&`npm_config_${e.replace(/-/g,"_").toLowerCase()}`,Kf=e=>Array.isArray(e)?e.map(t=>Kf(t)).join(`
6
6
 
7
- `):e==null||e===!1?"":typeof e=="object"?null:String(e),Xy=(e,t)=>!Array.isArray(t)||!Array.isArray(e)?e===t:cL(e,t),cL=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},Jy=(e,t,r)=>{let n=qf(r),i=uL(t,n);i&&n!==null&&(e[i]=n)},lL=e=>{let{env:t,defaults:r,definitions:n,list:[i,s]}=e;t.INIT_CWD=process.cwd();let o=new Set(Object.keys(i)),a=new Set(Object.keys(s));for(let u in i){let{deprecated:c,envExport:f=!0}=n[u]||{};c||f===!1||(Xy(r[u],i[u])?Xy(s[u],i[u])||Jy(t,u,i[u]):a.has(u)&&!o.has(u)||Jy(t,u,i[u]))}t.HOME=e.home,t.npm_config_global_prefix=e.globalPrefix,t.npm_config_local_prefix=e.localPrefix,i.editor&&(t.EDITOR=i.editor),i["node-options"]&&(t.NODE_OPTIONS=i["node-options"]),t.npm_config_node_gyp=i["node-gyp"],t.npm_config_npm_version=i["npm-version"]||"unknown",t.npm_execpath=e.npmBin,t.NODE=t.npm_node_execpath=e.execPath};Qy.exports=lL});var tv=F((E5,ev)=>{"use strict";var Gf=class extends Error{constructor(t){let r="Invalid auth configuration found: ";r+=t.map(n=>{if(n.action==="delete")return`\`${n.key}\` is not allowed in ${n.where} config`;if(n.action==="rename")return`\`${n.from}\` must be renamed to \`${n.to}\` in ${n.where} config`}).join(", "),r+="\nPlease run `npm config fix` to repair your configuration.`",super(r),this.code="ERR_INVALID_AUTH",this.problems=t}};ev.exports={ErrInvalidAuth:Gf}});var iv=F((b5,nv)=>{var fL=uu(),rv=e=>{if(!e||typeof e!="function"&&typeof e!="object")return e;if(Array.isArray(e))return e.map(t=>rv(t));for(let{type:t,description:r}of Object.values(fL))if(t===e)return r||t;return e};nv.exports=e=>[].concat(rv(e)).filter(t=>t!==void 0)});var Hf=F((w5,uv)=>{"use strict";var hL=Symbol.for("indent"),dL=Symbol.for("newline"),pL=`
8
- `,gL=" ",mL=/^\uFEFF/,yL=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,vL=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,sv=/^Unexpected token '?(.)'?(,)? /i,AL=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return`0x${t.length%2?"0":""}${t}`},ov=e=>String(e).replace(mL,""),Uf=(e,t,r=0)=>({message:`${e} while parsing ${t}`,position:r}),EL=(e,t,r=20)=>{let n=e.message;if(!t)return Uf(n,"empty string");let i=n.match(sv),s=n.match(/ position\s+(\d+)/i);i&&(n=n.replace(sv,`Unexpected token ${JSON.stringify(i[1])} (${AL(i[1])})$2 `));let o;if(s?o=+s[1]:n.match(/^Unexpected end of JSON.*/i)&&(o=t.length-1),o==null)return Uf(n,`'${t.slice(0,r*2)}'`);let a=o<=r?0:o-r,u=o+r>=t.length?t.length:o+r,c=`${a?"...":""}${t.slice(a,u)}${u===t.length?"":"..."}`;return Uf(n,`${t===c?"":"near "}${JSON.stringify(c)}`,o)},cu=class extends SyntaxError{constructor(t,r,n,i){let s=EL(t,r,n);super(s.message),Object.assign(this,s),this.code="EJSONPARSE",this.systemError=t,Error.captureStackTrace(this,i||this.constructor)}get name(){return this.constructor.name}set name(t){}get[Symbol.toStringTag](){return this.constructor.name}},av=(e,t)=>{let r=JSON.parse(e,t);if(r&&typeof r=="object"){let n=e.match(vL)||e.match(yL)||[null,"",""];r[dL]=n[1]??pL,r[hL]=n[2]??gL}return r},lu=(e,t,r)=>{let n=ov(e);try{return av(n,t)}catch(i){if(typeof e!="string"&&!Buffer.isBuffer(e)){let s=Array.isArray(e)&&e.length===0?"an empty array":String(e);throw Object.assign(new TypeError(`Cannot parse ${s}`),{code:"EJSONPARSE",systemError:i})}throw new cu(i,n,r,lu)}};uv.exports=lu;lu.JSONParseError=cu;lu.noExceptions=(e,t)=>{try{return av(ov(e),t)}catch{}}});var fv=F((S5,lv)=>{var zf=new Set(["dependencies","optionalDependencies","devDependencies","peerDependencies"]),bL=e=>{for(let t of zf)e&&e[t]&&(e[t]=Object.keys(e[t]).sort((r,n)=>r.localeCompare(n,"en")).reduce((r,n)=>(r[n]=e[t][n],r),{}));return e},cv=({content:e,originalContent:t})=>{let r=bL({...e});if(r.dependencies&&r.optionalDependencies)for(let a of Object.keys(r.optionalDependencies))delete r.dependencies[a];let n={...t};for(let a of zf)r[a]&&(n[a]=r[a]),r[a]&&typeof r=="object"&&Object.keys(r[a]).length===0&&delete n[a];let{dependencies:i,peerDependencies:s}=t||{},{peerDependencies:o}=n;if(i&&s&&o)for(let a of Object.keys(s))i[a]!==void 0&&o[a]!==void 0&&(n.dependencies=n.dependencies||{},n.dependencies[a]=o[a]);return n};cv.knownKeys=zf;lv.exports=cv});var dv=F((C5,hv)=>{var wL=({content:e,originalContent:t={}})=>{let r=e.scripts;if(!r)return t;if(Object.entries(r).some(([i,s])=>typeof i!="string"||typeof s!="string"))throw Object.assign(new TypeError("package.json scripts should be a key-value pair of strings."),{code:"ESCRIPTSINVALID"});return{...t,scripts:{...r}}};hv.exports=wL});var gv=F((x5,pv)=>{var SL=({content:e,originalContent:t={}})=>{let r=e.workspaces;if(!r)return t;let n=()=>r.some(i=>typeof i!="string");if(!r.length||n())throw Object.assign(new TypeError("workspaces should be an array of strings."),{code:"EWORKSPACESINVALID"});return{...t,workspaces:[...r]}};pv.exports=SL});var Yf=F((O5,mv)=>{"use strict";var CL=yi(),xL=(e,t)=>{let r=CL(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};mv.exports=xL});var vv=F((P5,yv)=>{var OL=Symbol("proc-log.meta");yv.exports={META:OL,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function r(){return process.emit("time","end",e)}if(typeof t=="function"){let n=t();return n&&n.finally?n.finally(r):(r(),n)}return r},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let r=e();return r&&r.finally?r.finally(t):(t(),r)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,r,n=new Promise((i,s)=>{t=i,r=s});return process.emit("input","read",t,r,...e),n}}}});var du=F(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.LRUCache=void 0;var PL=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ev=new Set,Vf=typeof process=="object"&&process?process:{},bv=(e,t,r,n)=>{typeof Vf.emitWarning=="function"?Vf.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},fu=globalThis.AbortController,Av=globalThis.AbortSignal;if(typeof fu>"u"){Av=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},fu=class{constructor(){t()}signal=new Av;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let e=Vf.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,bv("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var _L=e=>!Ev.has(e),F5=Symbol("type"),Ln=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),wv=e=>Ln(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Zi:null:null,Zi=class extends Array{constructor(t){super(t),this.fill(0)}},Kf=class e{heap;length;static#e=!1;static create(t){let r=wv(t);if(!r)return[];e.#e=!0;let n=new e(t,r);return e.#e=!1,n}constructor(t,r){if(!e.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Xf=class e{#e;#r;#t;#n;#o;#h;#d;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#p;#f;#c;#i;#m;#b;#E;#y;#_;#v;#S;#O;#A;#w;#P;#g;#s;static unsafeExposeInternals(t){return{starts:t.#O,ttls:t.#A,sizes:t.#S,keyMap:t.#f,keyList:t.#c,valList:t.#i,next:t.#m,prev:t.#b,get head(){return t.#E},get tail(){return t.#y},free:t.#_,isBackgroundFetch:r=>t.#l(r),backgroundFetch:(r,n,i,s)=>t.#G(r,n,i,s),moveToTail:r=>t.#$(r),indexes:r=>t.#F(r),rindexes:r=>t.#L(r),isStale:r=>t.#x(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#p}get size(){return this.#a}get fetchMethod(){return this.#h}get memoMethod(){return this.#d}get dispose(){return this.#t}get onInsert(){return this.#n}get disposeAfter(){return this.#o}constructor(t){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:u,dispose:c,onInsert:f,disposeAfter:l,noDisposeOnSet:h,noUpdateTTL:d,maxSize:p=0,maxEntrySize:y=0,sizeCalculation:m,fetchMethod:O,memoMethod:S,noDeleteOnFetchRejection:k,noDeleteOnStaleGet:P,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:_,ignoreFetchAbort:L,perf:D}=t;if(D!==void 0&&typeof D?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=D??PL,r!==0&&!Ln(r))throw new TypeError("max option must be a nonnegative integer");let $=r?wv(r):Array;if(!$)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=p,this.maxEntrySize=y||this.#r,this.sizeCalculation=m,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(S!==void 0&&typeof S!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#d=S,O!==void 0&&typeof O!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#h=O,this.#P=!!O,this.#f=new Map,this.#c=new Array(r).fill(void 0),this.#i=new Array(r).fill(void 0),this.#m=new $(r),this.#b=new $(r),this.#E=0,this.#y=0,this.#_=Kf.create(r),this.#a=0,this.#p=0,typeof c=="function"&&(this.#t=c),typeof f=="function"&&(this.#n=f),typeof l=="function"?(this.#o=l,this.#v=[]):(this.#o=void 0,this.#v=void 0),this.#w=!!this.#t,this.#s=!!this.#n,this.#g=!!this.#o,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!k,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!_,this.ignoreFetchAbort=!!L,this.maxEntrySize!==0){if(this.#r!==0&&!Ln(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Ln(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#M()}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!P,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Ln(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!Ln(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#k()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let x="LRU_CACHE_UNBOUNDED";_L(x)&&(Ev.add(x),bv("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",x,e))}}getRemainingTTL(t){return this.#f.has(t)?1/0:0}#k(){let t=new Zi(this.#e),r=new Zi(this.#e);this.#A=t,this.#O=r,this.#W=(s,o,a=this.#u.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let u=setTimeout(()=>{this.#x(s)&&this.#D(this.#c[s],"expire")},o+1);u.unref&&u.unref()}},this.#R=s=>{r[s]=t[s]!==0?this.#u.now():0},this.#C=(s,o)=>{if(t[o]){let a=t[o],u=r[o];if(!a||!u)return;s.ttl=a,s.start=u,s.now=n||i();let c=s.now-u;s.remainingTTL=a-c}};let n=0,i=()=>{let s=this.#u.now();if(this.ttlResolution>0){n=s;let o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#f.get(s);if(o===void 0)return 0;let a=t[o],u=r[o];if(!a||!u)return 1/0;let c=(n||i())-u;return a-c},this.#x=s=>{let o=r[s],a=t[s];return!!a&&!!o&&(n||i())-o>a}}#R=()=>{};#C=()=>{};#W=()=>{};#x=()=>!1;#M(){let t=new Zi(this.#e);this.#p=0,this.#S=t,this.#T=r=>{this.#p-=t[r],t[r]=0},this.#I=(r,n,i,s)=>{if(this.#l(n))return 0;if(!Ln(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!Ln(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#j=(r,n,i)=>{if(t[r]=n,this.#r){let s=this.#r-t[r];for(;this.#p>s;)this.#N(!0)}this.#p+=t[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#p)}}#T=t=>{};#j=(t,r,n)=>{};#I=(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#F({allowStale:t=this.allowStale}={}){if(this.#a)for(let r=this.#y;!(!this.#q(r)||((t||!this.#x(r))&&(yield r),r===this.#E));)r=this.#b[r]}*#L({allowStale:t=this.allowStale}={}){if(this.#a)for(let r=this.#E;!(!this.#q(r)||((t||!this.#x(r))&&(yield r),r===this.#y));)r=this.#m[r]}#q(t){return t!==void 0&&this.#f.get(this.#c[t])===t}*entries(){for(let t of this.#F())this.#i[t]!==void 0&&this.#c[t]!==void 0&&!this.#l(this.#i[t])&&(yield[this.#c[t],this.#i[t]])}*rentries(){for(let t of this.#L())this.#i[t]!==void 0&&this.#c[t]!==void 0&&!this.#l(this.#i[t])&&(yield[this.#c[t],this.#i[t]])}*keys(){for(let t of this.#F()){let r=this.#c[t];r!==void 0&&!this.#l(this.#i[t])&&(yield r)}}*rkeys(){for(let t of this.#L()){let r=this.#c[t];r!==void 0&&!this.#l(this.#i[t])&&(yield r)}}*values(){for(let t of this.#F())this.#i[t]!==void 0&&!this.#l(this.#i[t])&&(yield this.#i[t])}*rvalues(){for(let t of this.#L())this.#i[t]!==void 0&&!this.#l(this.#i[t])&&(yield this.#i[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let n of this.#F()){let i=this.#i[n],s=this.#l(i)?i.__staleWhileFetching:i;if(s!==void 0&&t(s,this.#c[n],this))return this.get(this.#c[n],r)}}forEach(t,r=this){for(let n of this.#F()){let i=this.#i[n],s=this.#l(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#c[n],this)}}rforEach(t,r=this){for(let n of this.#L()){let i=this.#i[n],s=this.#l(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#c[n],this)}}purgeStale(){let t=!1;for(let r of this.#L({allowStale:!0}))this.#x(r)&&(this.#D(this.#c[r],"expire"),t=!0);return t}info(t){let r=this.#f.get(t);if(r===void 0)return;let n=this.#i[r],i=this.#l(n)?n.__staleWhileFetching:n;if(i===void 0)return;let s={value:i};if(this.#A&&this.#O){let o=this.#A[r],a=this.#O[r];if(o&&a){let u=o-(this.#u.now()-a);s.ttl=u,s.start=Date.now()}}return this.#S&&(s.size=this.#S[r]),s}dump(){let t=[];for(let r of this.#F({allowStale:!0})){let n=this.#c[r],i=this.#i[r],s=this.#l(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let o={value:s};if(this.#A&&this.#O){o.ttl=this.#A[r];let a=this.#u.now()-this.#O[r];o.start=Math.floor(Date.now()-a)}this.#S&&(o.size=this.#S[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=this.#u.now()-i}this.set(r,n.value,n)}}set(t,r,n={}){if(r===void 0)return this.delete(t),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:u}=n,{noUpdateTTL:c=this.noUpdateTTL}=n,f=this.#I(t,r,n.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.#D(t,"set"),this;let l=this.#a===0?void 0:this.#f.get(t);if(l===void 0)l=this.#a===0?this.#y:this.#_.length!==0?this.#_.pop():this.#a===this.#e?this.#N(!1):this.#a,this.#c[l]=t,this.#i[l]=r,this.#f.set(t,l),this.#m[this.#y]=l,this.#b[l]=this.#y,this.#y=l,this.#a++,this.#j(l,f,u),u&&(u.set="add"),c=!1,this.#s&&this.#n?.(r,t,"add");else{this.#$(l);let h=this.#i[l];if(r!==h){if(this.#P&&this.#l(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=h;d!==void 0&&!o&&(this.#w&&this.#t?.(d,t,"set"),this.#g&&this.#v?.push([d,t,"set"]))}else o||(this.#w&&this.#t?.(h,t,"set"),this.#g&&this.#v?.push([h,t,"set"]));if(this.#T(l),this.#j(l,f,u),this.#i[l]=r,u){u.set="replace";let d=h&&this.#l(h)?h.__staleWhileFetching:h;d!==void 0&&(u.oldValue=d)}}else u&&(u.set="update");this.#s&&this.onInsert?.(r,t,r===h?"update":"replace")}if(i!==0&&!this.#A&&this.#k(),this.#A&&(c||this.#W(l,i,s),u&&this.#C(u,l)),!o&&this.#g&&this.#v){let h=this.#v,d;for(;d=h?.shift();)this.#o?.(...d)}return this}pop(){try{for(;this.#a;){let t=this.#i[this.#E];if(this.#N(!0),this.#l(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#g&&this.#v){let t=this.#v,r;for(;r=t?.shift();)this.#o?.(...r)}}}#N(t){let r=this.#E,n=this.#c[r],i=this.#i[r];return this.#P&&this.#l(i)?i.__abortController.abort(new Error("evicted")):(this.#w||this.#g)&&(this.#w&&this.#t?.(i,n,"evict"),this.#g&&this.#v?.push([i,n,"evict"])),this.#T(r),t&&(this.#c[r]=void 0,this.#i[r]=void 0,this.#_.push(r)),this.#a===1?(this.#E=this.#y=0,this.#_.length=0):this.#E=this.#m[r],this.#f.delete(n),this.#a--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#f.get(t);if(s!==void 0){let o=this.#i[s];if(this.#l(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#x(s))i&&(i.has="stale",this.#C(i,s));else return n&&this.#R(s),i&&(i.has="hit",this.#C(i,s)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=this.#f.get(t);if(i===void 0||!n&&this.#x(i))return;let s=this.#i[i];return this.#l(s)?s.__staleWhileFetching:s}#G(t,r,n,i){let s=r===void 0?void 0:this.#i[r];if(this.#l(s))return s;let o=new fu,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let u={signal:o.signal,options:n,context:i},c=(y,m=!1)=>{let{aborted:O}=o.signal,S=n.ignoreFetchAbort&&y!==void 0;if(n.status&&(O&&!m?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,S&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),O&&!S&&!m)return l(o.signal.reason);let k=d,P=this.#i[r];return(P===d||S&&m&&P===void 0)&&(y===void 0?k.__staleWhileFetching!==void 0?this.#i[r]=k.__staleWhileFetching:this.#D(t,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(t,y,u.options))),y},f=y=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=y),l(y)),l=y=>{let{aborted:m}=o.signal,O=m&&n.allowStaleOnFetchAbort,S=O||n.allowStaleOnFetchRejection,k=S||n.noDeleteOnFetchRejection,P=d;if(this.#i[r]===d&&(!k||P.__staleWhileFetching===void 0?this.#D(t,"fetch"):O||(this.#i[r]=P.__staleWhileFetching)),S)return n.status&&P.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),P.__staleWhileFetching;if(P.__returned===P)throw y},h=(y,m)=>{let O=this.#h?.(t,s,u);O&&O instanceof Promise&&O.then(S=>y(S===void 0?void 0:S),m),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(y(void 0),n.allowStaleOnFetchAbort&&(y=S=>c(S,!0)))})};n.status&&(n.status.fetchDispatched=!0);let d=new Promise(h).then(c,f),p=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(t,p,{...u.options,status:void 0}),r=this.#f.get(t)):this.#i[r]=p,p}#l(t){if(!this.#P)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof fu}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:u=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:y,forceRefresh:m=!1,status:O,signal:S}=r;if(!this.#P)return O&&(O.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:O});let k={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:u,sizeCalculation:c,noUpdateTTL:f,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:O,signal:S},P=this.#f.get(t);if(P===void 0){O&&(O.fetch="miss");let b=this.#G(t,P,k,y);return b.__returned=b}else{let b=this.#i[P];if(this.#l(b)){let x=n&&b.__staleWhileFetching!==void 0;return O&&(O.fetch="inflight",x&&(O.returnedStale=!0)),x?b.__staleWhileFetching:b.__returned=b}let _=this.#x(P);if(!m&&!_)return O&&(O.fetch="hit"),this.#$(P),i&&this.#R(P),O&&this.#C(O,P),b;let L=this.#G(t,P,k,y),$=L.__staleWhileFetching!==void 0&&n;return O&&(O.fetch=_?"stale":"refresh",$&&_&&(O.returnedStale=!0)),$?L.__staleWhileFetching:L.__returned=L}}async forceFetch(t,r={}){let n=await this.fetch(t,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(t,r={}){let n=this.#d;if(!n)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:s,...o}=r,a=this.get(t,o);if(!s&&a!==void 0)return a;let u=n(t,a,{options:o,context:i});return this.set(t,u,o),u}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#f.get(t);if(a!==void 0){let u=this.#i[a],c=this.#l(u);return o&&this.#C(o,a),this.#x(a)?(o&&(o.get="stale"),c?(o&&n&&u.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?u.__staleWhileFetching:void 0):(s||this.#D(t,"expire"),o&&n&&(o.returnedStale=!0),n?u:void 0)):(o&&(o.get="hit"),c?u.__staleWhileFetching:(this.#$(a),i&&this.#R(a),u))}else o&&(o.get="miss")}#U(t,r){this.#b[r]=t,this.#m[t]=r}#$(t){t!==this.#y&&(t===this.#E?this.#E=this.#m[t]:this.#U(this.#b[t],this.#m[t]),this.#U(this.#y,t),this.#y=t)}delete(t){return this.#D(t,"delete")}#D(t,r){let n=!1;if(this.#a!==0){let i=this.#f.get(t);if(i!==void 0)if(n=!0,this.#a===1)this.#B(r);else{this.#T(i);let s=this.#i[i];if(this.#l(s)?s.__abortController.abort(new Error("deleted")):(this.#w||this.#g)&&(this.#w&&this.#t?.(s,t,r),this.#g&&this.#v?.push([s,t,r])),this.#f.delete(t),this.#c[i]=void 0,this.#i[i]=void 0,i===this.#y)this.#y=this.#b[i];else if(i===this.#E)this.#E=this.#m[i];else{let o=this.#b[i];this.#m[o]=this.#m[i];let a=this.#m[i];this.#b[a]=this.#b[i]}this.#a--,this.#_.push(i)}}if(this.#g&&this.#v?.length){let i=this.#v,s;for(;s=i?.shift();)this.#o?.(...s)}return n}clear(){return this.#B("delete")}#B(t){for(let r of this.#L({allowStale:!0})){let n=this.#i[r];if(this.#l(n))n.__abortController.abort(new Error("deleted"));else{let i=this.#c[r];this.#w&&this.#t?.(n,i,t),this.#g&&this.#v?.push([n,i,t])}}if(this.#f.clear(),this.#i.fill(void 0),this.#c.fill(void 0),this.#A&&this.#O&&(this.#A.fill(0),this.#O.fill(0)),this.#S&&this.#S.fill(0),this.#E=0,this.#y=0,this.#_.length=0,this.#p=0,this.#a=0,this.#g&&this.#v){let r=this.#v,n;for(;n=r?.shift();)this.#o?.(...n)}}};hu.LRUCache=Xf});var xv=F((L5,Cv)=>{"use strict";var Le=(...e)=>e.every(t=>t)?e.join(""):"",Ze=e=>e?encodeURIComponent(e):"",Sv=e=>e.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),RL={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${Le("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${Le("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${Le("/",i,"/",Ze(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${Le("/",i,"/",Ze(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${Ze(n||"HEAD")}/${s}${Le("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${Ze(n||"HEAD")}/${s}${Le("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${Le("/",n,"/",Ze(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${Le(e,"@")}${t}/${r}/${n}.git${Le("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${Ze(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${Le("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${Le("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:Sv},kn={};kn.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${Le(e,"@")}raw.githubusercontent.com/${t}/${r}/${Ze(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${Le(e,"@")}${t}/${r}/${n}.git${Le("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${Ze(n||"HEAD")}`,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}}};kn.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,editpath:o})=>`https://${e}/${t}/${r}${Le("/",i,"/",Ze(n||"HEAD"),"/",s,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${Ze(n||"HEAD")}.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)}}};kn.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${Ze(n||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}};kn.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${Le("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${Le("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${Le("/",Ze(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${Le("/",Ze(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${Le("/",Ze(r))}${Le("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${Le("/",Ze(r))}${Le("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${Le("/",Ze(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${Le("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${Le("/",Ze(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${Le("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${Le("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${Le("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${Ze(t||"HEAD")}`,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-"+Sv(e)}};kn.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${Ze(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${Le("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${Ze(n)||"HEAD"}.tar.gz`,bugstemplate:()=>null,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)}}};for(let[e,t]of Object.entries(kn))kn[e]=Object.assign({},RL,t);Cv.exports=kn});var Qf=F((k5,Pv)=>{var FL=require("url"),Jf=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},Ov=e=>{try{return new FL.URL(e)}catch{}},DL=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n)||e.substr(r,3)==="://")return e;let i=e.indexOf("@");return i>-1?i>r?`git+ssh://${e}`:e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},LL=e=>{let t=Jf(e,"@","#"),r=Jf(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),Jf(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};Pv.exports=(e,t)=>{let r=t?DL(e,t):e;return Ov(r)||Ov(LL(r))}});var Rv=F((T5,_v)=>{"use strict";var kL=Qf(),TL=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),a=!s||t>-1&&s.index>t,u=o===-1||t>-1&&o>t,c=i===-1||t>-1&&i>t,f=n===-1||t>-1&&n>t,l=r>0,h=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return a&&l&&h&&d&&u&&c&&f};_v.exports=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=TL(e)?`github:${e}`:e,s=kL(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],u=o||a;if(!u)return;let c=r[o||a],f=null;n[s.protocol]?.auth&&(s.username||s.password)&&(f=`${s.username}${s.password?":"+s.password:""}`);let l=null,h=null,d=null,p=null;try{if(o){let y=s.pathname.startsWith("/")?s.pathname.slice(1):s.pathname,m=y.indexOf("@");m>-1&&(y=y.slice(m+1));let O=y.lastIndexOf("/");O>-1?(h=decodeURIComponent(y.slice(0,O)),h||(h=null),d=decodeURIComponent(y.slice(O+1))):d=decodeURIComponent(y),d.endsWith(".git")&&(d=d.slice(0,-4)),s.hash&&(l=decodeURIComponent(s.hash.slice(1))),p="shortcut"}else{if(!c.protocols.includes(s.protocol))return;let y=c.extract(s);if(!y)return;h=y.user&&decodeURIComponent(y.user),d=decodeURIComponent(y.project),l=decodeURIComponent(y.committish),p=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(y){if(y instanceof URIError)return;throw y}return[u,h,f,d,l,p,t]}});var gu=F((I5,Fv)=>{"use strict";var{LRUCache:IL}=du(),NL=xv(),$L=Rv(),ML=Qf(),Zf=new IL({max:1e3});function jL(e){try{let{protocol:t,hostname:r,pathname:n}=new URL(e);if(!r)return null;let i=/(?:git\+)http:$/.test(t)?"http:":"https:",s=n.replace(/\.git$/,"");return`${i}//${r}${s}`}catch{return null}}var pu=class e{constructor(t,r,n,i,s,o,a={}){Object.assign(this,e.#e[t],{type:t,user:r,auth:n,project:i,committish:s,default:o,opts:a})}static#e={byShortcut:{},byDomain:{}};static#r={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,r){e.#e[t]=r,e.#e.byDomain[r.domain]=t,e.#e.byShortcut[`${t}:`]=t,e.#r[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!Zf.has(n)){let i=$L(t,r,{gitHosts:e.#e,protocols:e.#r});Zf.set(n,i?new e(...i):void 0)}return Zf.get(n)}static fromManifest(t,r={}){if(!t||typeof t!="object")return;let n=t.repository,i=n&&(typeof n=="string"?n:typeof n=="object"&&typeof n.url=="string"?n.url:null);if(!i)throw new Error("no repository");let s=i&&e.fromUrl(i.replace(/^git\+/,""),r)||null;if(s)return s;let o=jL(i);return e.fromUrl(o,r)||o}static parseUrl(t){return ML(t)}#t(t,r){if(typeof t!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#t(this.sshtemplate,t)}sshurl(t){return this.#t(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#t(this.browsetemplate,t):typeof r[0]!="string"?this.#t(this.browsetreetemplate,{...r[0],path:t}):this.#t(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#t(this.browseblobtemplate,{...r[0],path:t}):this.#t(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#t(this.docstemplate,t)}bugs(t){return this.#t(this.bugstemplate,t)}https(t){return this.#t(this.httpstemplate,t)}git(t){return this.#t(this.gittemplate,t)}shortcut(t){return this.#t(this.shortcuttemplate,t)}path(t){return this.#t(this.pathtemplate,t)}tarball(t){return this.#t(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#t(this.filetemplate,{...r,path:t})}edit(t,r){return this.#t(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(NL))pu.addHost(e,t);Fv.exports=pu});var Lv=F(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.range=vi.balanced=void 0;var BL=(e,t,r)=>{let n=e instanceof RegExp?Dv(e,r):e,i=t instanceof RegExp?Dv(t,r):t,s=n!==null&&i!=null&&(0,vi.range)(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}};vi.balanced=BL;var Dv=(e,t)=>{let r=t.match(e);return r?r[0]:null},WL=(e,t,r)=>{let n,i,s,o,a,u=r.indexOf(e),c=r.indexOf(t,u+1),f=u;if(u>=0&&c>0){if(e===t)return[u,c];for(n=[],s=r.length;f>=0&&!a;){if(f===u)n.push(f),u=r.indexOf(e,f+1);else if(n.length===1){let l=n.pop();l!==void 0&&(a=[l,c])}else i=n.pop(),i!==void 0&&i<s&&(s=i,o=c),c=r.indexOf(t,f+1);f=u<c&&u>=0?u:c}n.length&&o!==void 0&&(a=[s,o])}return a};vi.range=WL});var jv=F(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.expand=ek;var kv=Lv(),Tv="\0SLASH"+Math.random()+"\0",Iv="\0OPEN"+Math.random()+"\0",th="\0CLOSE"+Math.random()+"\0",Nv="\0COMMA"+Math.random()+"\0",$v="\0PERIOD"+Math.random()+"\0",qL=new RegExp(Tv,"g"),GL=new RegExp(Iv,"g"),UL=new RegExp(th,"g"),HL=new RegExp(Nv,"g"),zL=new RegExp($v,"g"),YL=/\\\\/g,VL=/\\{/g,KL=/\\}/g,XL=/\\,/g,JL=/\\./g;function eh(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function QL(e){return e.replace(YL,Tv).replace(VL,Iv).replace(KL,th).replace(XL,Nv).replace(JL,$v)}function ZL(e){return e.replace(qL,"\\").replace(GL,"{").replace(UL,"}").replace(HL,",").replace(zL,".")}function Mv(e){if(!e)return[""];let t=[],r=(0,kv.balanced)("{","}",e);if(!r)return e.split(",");let{pre:n,body:i,post:s}=r,o=n.split(",");o[o.length-1]+="{"+i+"}";let a=Mv(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function ek(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),so(QL(e),!0).map(ZL)):[]}function tk(e){return"{"+e+"}"}function rk(e){return/^-?0\d/.test(e)}function nk(e,t){return e<=t}function ik(e,t){return e>=t}function so(e,t){let r=[],n=(0,kv.balanced)("{","}",e);if(!n)return[e];let i=n.pre,s=n.post.length?so(n.post,!1):[""];if(/\$$/.test(n.pre))for(let o=0;o<s.length;o++){let a=i+"{"+n.body+"}"+s[o];r.push(a)}else{let o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),u=o||a,c=n.body.indexOf(",")>=0;if(!u&&!c)return n.post.match(/,(?!,).*\}/)?(e=n.pre+"{"+n.body+th+n.post,so(e)):[e];let f;if(u)f=n.body.split(/\.\./);else if(f=Mv(n.body),f.length===1&&f[0]!==void 0&&(f=so(f[0],!1).map(tk),f.length===1))return s.map(h=>n.pre+f[0]+h);let l;if(u&&f[0]!==void 0&&f[1]!==void 0){let h=eh(f[0]),d=eh(f[1]),p=Math.max(f[0].length,f[1].length),y=f.length===3&&f[2]!==void 0?Math.abs(eh(f[2])):1,m=nk;d<h&&(y*=-1,m=ik);let S=f.some(rk);l=[];for(let k=h;m(k,d);k+=y){let P;if(a)P=String.fromCharCode(k),P==="\\"&&(P="");else if(P=String(k),S){let b=p-P.length;if(b>0){let _=new Array(b+1).join("0");k<0?P="-"+_+P.slice(1):P=_+P}}l.push(P)}}else{l=[];for(let h=0;h<f.length;h++)l.push.apply(l,so(f[h],!1))}for(let h=0;h<l.length;h++)for(let d=0;d<s.length;d++){let p=i+l[h]+s[d];(!t||u||p)&&r.push(p)}}return r}});var Bv=F(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.assertValidPattern=void 0;var sk=1024*64,ok=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>sk)throw new TypeError("pattern is too long")};mu.assertValidPattern=ok});var qv=F(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.parseClass=void 0;var ak={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},oo=e=>e.replace(/[[\]\\-]/g,"\\$&"),uk=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Wv=e=>e.join(""),ck=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,o=!1,a=!1,u=!1,c=!1,f=r,l="";e:for(;s<e.length;){let y=e.charAt(s);if((y==="!"||y==="^")&&s===r+1){c=!0,s++;continue}if(y==="]"&&o&&!u){f=s+1;break}if(o=!0,y==="\\"&&!u){u=!0,s++;continue}if(y==="["&&!u){for(let[m,[O,S,k]]of Object.entries(ak))if(e.startsWith(m,s)){if(l)return["$.",!1,e.length-r,!0];s+=m.length,k?i.push(O):n.push(O),a=a||S;continue e}}if(u=!1,l){y>l?n.push(oo(l)+"-"+oo(y)):y===l&&n.push(oo(y)),l="",s++;continue}if(e.startsWith("-]",s+1)){n.push(oo(y+"-")),s+=2;continue}if(e.startsWith("-",s+1)){l=y,s+=2;continue}n.push(oo(y)),s++}if(f<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!c){let y=n[0].length===2?n[0].slice(-1):n[0];return[uk(y),!1,f-r,!1]}let h="["+(c?"^":"")+Wv(n)+"]",d="["+(c?"":"^")+Wv(i)+"]";return[n.length&&i.length?"("+h+"|"+d+")":n.length?h:d,a,f-r,!0]};yu.parseClass=ck});var Au=F(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.unescape=void 0;var lk=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):t?e.replace(/\[([^\/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1");vu.unescape=lk});var sh=F(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.AST=void 0;var fk=qv(),Eu=Au(),hk=new Set(["!","?","+","*","@"]),Gv=e=>hk.has(e),dk="(?!(?:^|/)\\.\\.?(?:$|/))",bu="(?!\\.)",pk=new Set(["[","."]),gk=new Set(["..","."]),mk=new Set("().*{}+?[]^$\\!"),yk=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),ih="[^/]",Uv=ih+"*?",Hv=ih+"+?",nh=class e{type;#e;#r;#t=!1;#n=[];#o;#h;#d;#u=!1;#a;#p;#f=!1;constructor(t,r,n={}){this.type=t,t&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#a=this.#e===this?n:this.#e.#a,this.#d=this.#e===this?[]:this.#e.#d,t==="!"&&!this.#e.#u&&this.#d.push(this),this.#h=this.#o?this.#o.#n.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let t of this.#n)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#p!==void 0?this.#p:this.type?this.#p=this.type+"("+this.#n.map(t=>String(t)).join("|")+")":this.#p=this.#n.map(t=>String(t)).join("")}#c(){if(this!==this.#e)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let t;for(;t=this.#d.pop();){if(t.type!=="!")continue;let r=t,n=r.#o;for(;n;){for(let i=r.#h+1;!n.type&&i<n.#n.length;i++)for(let s of t.#n){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(n.#n[i])}r=n,n=r.#o}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof e&&r.#o===this))throw new Error("invalid part: "+r);this.#n.push(r)}}toJSON(){let t=this.type===null?this.#n.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#n.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#u&&this.#o?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#h===0)return!0;let t=this.#o;for(let r=0;r<this.#h;r++){let n=t.#n[r];if(!(n instanceof e&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let t=this.#o?this.#o.#n.length:0;return this.#h===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new e(this.type,t);for(let n of this.#n)r.copyIn(n);return r}static#i(t,r,n,i){let s=!1,o=!1,a=-1,u=!1;if(r.type===null){let d=n,p="";for(;d<t.length;){let y=t.charAt(d++);if(s||y==="\\"){s=!s,p+=y;continue}if(o){d===a+1?(y==="^"||y==="!")&&(u=!0):y==="]"&&!(d===a+2&&u)&&(o=!1),p+=y;continue}else if(y==="["){o=!0,a=d,u=!1,p+=y;continue}if(!i.noext&&Gv(y)&&t.charAt(d)==="("){r.push(p),p="";let m=new e(y,r);d=e.#i(t,m,d,i),r.push(m);continue}p+=y}return r.push(p),d}let c=n+1,f=new e(null,r),l=[],h="";for(;c<t.length;){let d=t.charAt(c++);if(s||d==="\\"){s=!s,h+=d;continue}if(o){c===a+1?(d==="^"||d==="!")&&(u=!0):d==="]"&&!(c===a+2&&u)&&(o=!1),h+=d;continue}else if(d==="["){o=!0,a=c,u=!1,h+=d;continue}if(Gv(d)&&t.charAt(c)==="("){f.push(h),h="";let p=new e(d,f);f.push(p),c=e.#i(t,p,c,i);continue}if(d==="|"){f.push(h),h="",l.push(f),f=new e(null,r);continue}if(d===")")return h===""&&r.#n.length===0&&(r.#f=!0),f.push(h),h="",r.push(...l,f),c;h+=d}return r.type=null,r.#r=void 0,r.#n=[t.substring(n-1)],c}static fromGlob(t,r={}){let n=new e(null,void 0,r);return e.#i(t,n,0,r),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let t=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||this.#r||this.#a.nocase&&!this.#a.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;let a=(this.#a.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return this.#a}toRegExpSource(t){let r=t??!!this.#a.dot;if(this.#e===this&&this.#c(),!this.type){let u=this.isStart()&&this.isEnd()&&!this.#n.some(d=>typeof d!="string"),c=this.#n.map(d=>{let[p,y,m,O]=typeof d=="string"?e.#b(d,this.#r,u):d.toRegExpSource(t);return this.#r=this.#r||m,this.#t=this.#t||O,p}).join(""),f="";if(this.isStart()&&typeof this.#n[0]=="string"&&!(this.#n.length===1&&gk.has(this.#n[0]))){let p=pk,y=r&&p.has(c.charAt(0))||c.startsWith("\\.")&&p.has(c.charAt(2))||c.startsWith("\\.\\.")&&p.has(c.charAt(4)),m=!r&&!t&&p.has(c.charAt(0));f=y?dk:m?bu:""}let l="";return this.isEnd()&&this.#e.#u&&this.#o?.type==="!"&&(l="(?:$|\\/)"),[f+c+l,(0,Eu.unescape)(c),this.#r=!!this.#r,this.#t]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#m(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let u=this.toString();return this.#n=[u],this.type=null,this.#r=void 0,[u,(0,Eu.unescape)(this.toString()),!1,!1]}let o=!n||t||r||!bu?"":this.#m(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#f)a=(this.isStart()&&!r?bu:"")+Hv;else{let u=this.type==="!"?"))"+(this.isStart()&&!r&&!t?bu:"")+Uv+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=i+s+u}return[a,(0,Eu.unescape)(s),this.#r=!!this.#r,this.#t]}#m(t){return this.#n.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,o]=r.toRegExpSource(t);return this.#t=this.#t||o,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#b(t,r,n=!1){let i=!1,s="",o=!1;for(let a=0;a<t.length;a++){let u=t.charAt(a);if(i){i=!1,s+=(mk.has(u)?"\\":"")+u;continue}if(u==="\\"){a===t.length-1?s+="\\\\":i=!0;continue}if(u==="["){let[c,f,l,h]=(0,fk.parseClass)(t,a);if(l){s+=c,o=o||f,a+=l-1,r=r||h;continue}}if(u==="*"){s+=n&&t==="*"?Hv:Uv,r=!0;continue}if(u==="?"){s+=ih,r=!0;continue}s+=yk(u)}return[s,(0,Eu.unescape)(t),!!r,o]}};wu.AST=nh});var oh=F(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.escape=void 0;var vk=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");Su.escape=vk});var un=F(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.unescape=de.escape=de.AST=de.Minimatch=de.match=de.makeRe=de.braceExpand=de.defaults=de.filter=de.GLOBSTAR=de.sep=de.minimatch=void 0;var Ak=jv(),Cu=Bv(),Vv=sh(),Ek=oh(),bk=Au(),wk=(e,t,r={})=>((0,Cu.assertValidPattern)(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Ai(t,r).match(e));de.minimatch=wk;var Sk=/^\*+([^+@!?\*\[\(]*)$/,Ck=e=>t=>!t.startsWith(".")&&t.endsWith(e),xk=e=>t=>t.endsWith(e),Ok=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Pk=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),_k=/^\*+\.\*+$/,Rk=e=>!e.startsWith(".")&&e.includes("."),Fk=e=>e!=="."&&e!==".."&&e.includes("."),Dk=/^\.\*+$/,Lk=e=>e!=="."&&e!==".."&&e.startsWith("."),kk=/^\*+$/,Tk=e=>e.length!==0&&!e.startsWith("."),Ik=e=>e.length!==0&&e!=="."&&e!=="..",Nk=/^\?+([^+@!?\*\[\(]*)?$/,$k=([e,t=""])=>{let r=Kv([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},Mk=([e,t=""])=>{let r=Xv([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},jk=([e,t=""])=>{let r=Xv([e]);return t?n=>r(n)&&n.endsWith(t):r},Bk=([e,t=""])=>{let r=Kv([e]);return t?n=>r(n)&&n.endsWith(t):r},Kv=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},Xv=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Jv=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",zv={win32:{sep:"\\"},posix:{sep:"/"}};de.sep=Jv==="win32"?zv.win32.sep:zv.posix.sep;de.minimatch.sep=de.sep;de.GLOBSTAR=Symbol("globstar **");de.minimatch.GLOBSTAR=de.GLOBSTAR;var Wk="[^/]",qk=Wk+"*?",Gk="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Uk="(?:(?!(?:\\/|^)\\.).)*?",Hk=(e,t={})=>r=>(0,de.minimatch)(r,e,t);de.filter=Hk;de.minimatch.filter=de.filter;var hr=(e,t={})=>Object.assign({},e,t),zk=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return de.minimatch;let t=de.minimatch;return Object.assign((n,i,s={})=>t(n,i,hr(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,hr(e,s))}static defaults(i){return t.defaults(hr(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,o={}){super(i,s,hr(e,o))}static fromGlob(i,s={}){return t.AST.fromGlob(i,hr(e,s))}},unescape:(n,i={})=>t.unescape(n,hr(e,i)),escape:(n,i={})=>t.escape(n,hr(e,i)),filter:(n,i={})=>t.filter(n,hr(e,i)),defaults:n=>t.defaults(hr(e,n)),makeRe:(n,i={})=>t.makeRe(n,hr(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,hr(e,i)),match:(n,i,s={})=>t.match(n,i,hr(e,s)),sep:t.sep,GLOBSTAR:de.GLOBSTAR})};de.defaults=zk;de.minimatch.defaults=de.defaults;var Yk=(e,t={})=>((0,Cu.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,Ak.expand)(e));de.braceExpand=Yk;de.minimatch.braceExpand=de.braceExpand;var Vk=(e,t={})=>new Ai(e,t).makeRe();de.makeRe=Vk;de.minimatch.makeRe=de.makeRe;var Kk=(e,t,r={})=>{let n=new Ai(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};de.match=Kk;de.minimatch.match=de.match;var Yv=/[?*]|[+@!]\(.*?\)|\[|\]/,Xk=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ai=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,r={}){(0,Cu.assertValidPattern)(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||Jv,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=s[0]===""&&s[1]===""&&(s[2]==="?"||!Yv.test(s[2]))&&!Yv.test(s[3]),c=/^[a-z]:/i.test(s[0]);if(u)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(c)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(u=>this.parse(u))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let i=0;i<t[n].length;i++)t[n][i]==="**"&&(t[n][i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let s=t[i];i===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){let i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let o=i;for(;n[o+1]==="**";)o++;o>i&&n.splice(i+1,o-i);let a=n[i+1],u=n[i+2],c=n[i+3];if(a!==".."||!u||u==="."||u===".."||!c||c==="."||c==="..")continue;r=!0,n.splice(i,1);let f=n.slice(0);f[i]="**",t.push(f),i--}if(!this.preserveMultipleSlashes){for(let o=1;o<n.length-1;o++){let a=n[o];o===1&&a===""&&n[0]===""||(a==="."||a==="")&&(r=!0,n.splice(o,1),o--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){let o=n[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let u=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...u),n.length===0&&n.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){let i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,s=0,o=[],a="";for(;i<t.length&&s<r.length;)if(t[i]===r[s])o.push(a==="b"?r[s]:t[i]),i++,s++;else if(n&&t[i]==="**"&&r[s]===t[i+1])o.push(t[i]),i++;else if(n&&r[s]==="**"&&t[i]===r[s+1])o.push(r[s]),s++;else if(t[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(t[i]),i++,s++}else if(r[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),i++,s++}else return!1;return t.length===r.length&&o}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=this.options;if(this.isWindows){let y=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),m=!y&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),O=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!O&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),k=m?3:y?0:void 0,P=S?3:O?0:void 0;if(typeof k=="number"&&typeof P=="number"){let[b,_]=[t[k],r[P]];b.toLowerCase()===_.toLowerCase()&&(r[P]=b,P>k?r=r.slice(P):k>P&&(t=t.slice(k)))}}let{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var o=0,a=0,u=t.length,c=r.length;o<u&&a<c;o++,a++){this.debug("matchOne loop");var f=r[a],l=t[o];if(this.debug(r,f,l),f===!1)return!1;if(f===de.GLOBSTAR){this.debug("GLOBSTAR",[r,f,l]);var h=o,d=a+1;if(d===c){for(this.debug("** at the end");o<u;o++)if(t[o]==="."||t[o]===".."||!i.dot&&t[o].charAt(0)===".")return!1;return!0}for(;h<u;){var p=t[h];if(this.debug(`
7
+ `):e==null||e===!1?"":typeof e=="object"?null:String(e),cv=(e,t)=>!Array.isArray(t)||!Array.isArray(e)?e===t:RD(e,t),RD=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},lv=(e,t,r)=>{let n=Kf(r),i=_D(t,n);i&&n!==null&&(e[i]=n)},FD=e=>{let{env:t,defaults:r,definitions:n,list:[i,s]}=e;t.INIT_CWD=process.cwd();let o=new Set(Object.keys(i)),a=new Set(Object.keys(s));for(let u in i){let{deprecated:c,envExport:f=!0}=n[u]||{};c||f===!1||(cv(r[u],i[u])?cv(s[u],i[u])||lv(t,u,i[u]):a.has(u)&&!o.has(u)||lv(t,u,i[u]))}t.HOME=e.home,t.npm_config_global_prefix=e.globalPrefix,t.npm_config_local_prefix=e.localPrefix,i.editor&&(t.EDITOR=i.editor),i["node-options"]&&(t.NODE_OPTIONS=i["node-options"]),t.npm_config_node_gyp=i["node-gyp"],t.npm_config_npm_version=i["npm-version"]||"unknown",t.npm_execpath=e.npmBin,t.NODE=t.npm_node_execpath=e.execPath};fv.exports=FD});var pv=F((oV,dv)=>{"use strict";var Jf=class extends Error{constructor(t){let r="Invalid auth configuration found: ";r+=t.map(n=>{if(n.action==="delete")return`\`${n.key}\` is not allowed in ${n.where} config`;if(n.action==="rename")return`\`${n.from}\` must be renamed to \`${n.to}\` in ${n.where} config`}).join(", "),r+="\nPlease run `npm config fix` to repair your configuration.`",super(r),this.code="ERR_INVALID_AUTH",this.problems=t}};dv.exports={ErrInvalidAuth:Jf}});var yv=F((aV,mv)=>{var kD=hu(),gv=e=>{if(!e||typeof e!="function"&&typeof e!="object")return e;if(Array.isArray(e))return e.map(t=>gv(t));for(let{type:t,description:r}of Object.values(kD))if(t===e)return r||t;return e};mv.exports=e=>[].concat(gv(e)).filter(t=>t!==void 0)});var Qf=F((uV,bv)=>{"use strict";var DD=Symbol.for("indent"),LD=Symbol.for("newline"),TD=`
8
+ `,ID=" ",ND=/^\uFEFF/,$D=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,MD=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,vv=/^Unexpected token '?(.)'?(,)? /i,jD=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return`0x${t.length%2?"0":""}${t}`},Av=e=>String(e).replace(ND,""),Xf=(e,t,r=0)=>({message:`${e} while parsing ${t}`,position:r}),BD=(e,t,r=20)=>{let n=e.message;if(!t)return Xf(n,"empty string");let i=n.match(vv),s=n.match(/ position\s+(\d+)/i);i&&(n=n.replace(vv,`Unexpected token ${JSON.stringify(i[1])} (${jD(i[1])})$2 `));let o;if(s?o=+s[1]:n.match(/^Unexpected end of JSON.*/i)&&(o=t.length-1),o==null)return Xf(n,`'${t.slice(0,r*2)}'`);let a=o<=r?0:o-r,u=o+r>=t.length?t.length:o+r,c=`${a?"...":""}${t.slice(a,u)}${u===t.length?"":"..."}`;return Xf(n,`${t===c?"":"near "}${JSON.stringify(c)}`,o)},du=class extends SyntaxError{constructor(t,r,n,i){let s=BD(t,r,n);super(s.message),Object.assign(this,s),this.code="EJSONPARSE",this.systemError=t,Error.captureStackTrace(this,i||this.constructor)}get name(){return this.constructor.name}set name(t){}get[Symbol.toStringTag](){return this.constructor.name}},Ev=(e,t)=>{let r=JSON.parse(e,t);if(r&&typeof r=="object"){let n=e.match(MD)||e.match($D)||[null,"",""];r[LD]=n[1]??TD,r[DD]=n[2]??ID}return r},pu=(e,t,r)=>{let n=Av(e);try{return Ev(n,t)}catch(i){if(typeof e!="string"&&!Buffer.isBuffer(e)){let s=Array.isArray(e)&&e.length===0?"an empty array":String(e);throw Object.assign(new TypeError(`Cannot parse ${s}`),{code:"EJSONPARSE",systemError:i})}throw new du(i,n,r,pu)}};bv.exports=pu;pu.JSONParseError=du;pu.noExceptions=(e,t)=>{try{return Ev(Av(e),t)}catch{}}});var Cv=F((cV,Sv)=>{var Zf=new Set(["dependencies","optionalDependencies","devDependencies","peerDependencies"]),WD=e=>{for(let t of Zf)e&&e[t]&&(e[t]=Object.keys(e[t]).sort((r,n)=>r.localeCompare(n,"en")).reduce((r,n)=>(r[n]=e[t][n],r),{}));return e},wv=({content:e,originalContent:t})=>{let r=WD({...e});if(r.dependencies&&r.optionalDependencies)for(let a of Object.keys(r.optionalDependencies))delete r.dependencies[a];let n={...t};for(let a of Zf)r[a]&&(n[a]=r[a]),r[a]&&typeof r=="object"&&Object.keys(r[a]).length===0&&delete n[a];let{dependencies:i,peerDependencies:s}=t||{},{peerDependencies:o}=n;if(i&&s&&o)for(let a of Object.keys(s))i[a]!==void 0&&o[a]!==void 0&&(n.dependencies=n.dependencies||{},n.dependencies[a]=o[a]);return n};wv.knownKeys=Zf;Sv.exports=wv});var Pv=F((lV,xv)=>{var qD=({content:e,originalContent:t={}})=>{let r=e.scripts;if(!r)return t;if(Object.entries(r).some(([i,s])=>typeof i!="string"||typeof s!="string"))throw Object.assign(new TypeError("package.json scripts should be a key-value pair of strings."),{code:"ESCRIPTSINVALID"});return{...t,scripts:{...r}}};xv.exports=qD});var _v=F((fV,Ov)=>{var GD=({content:e,originalContent:t={}})=>{let r=e.workspaces;if(!r)return t;let n=()=>r.some(i=>typeof i!="string");if(!r.length||n())throw Object.assign(new TypeError("workspaces should be an array of strings."),{code:"EWORKSPACESINVALID"});return{...t,workspaces:[...r]}};Ov.exports=GD});var eh=F((hV,Rv)=>{"use strict";var UD=yi(),HD=(e,t)=>{let r=UD(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};Rv.exports=HD});var kv=F((dV,Fv)=>{var zD=Symbol("proc-log.meta");Fv.exports={META:zD,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function r(){return process.emit("time","end",e)}if(typeof t=="function"){let n=t();return n&&n.finally?n.finally(r):(r(),n)}return r},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let r=e();return r&&r.finally?r.finally(t):(t(),r)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,r,n=new Promise((i,s)=>{t=i,r=s});return process.emit("input","read",t,r,...e),n}}}});var yu=F(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.LRUCache=void 0;var YD=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Lv=new Set,th=typeof process=="object"&&process?process:{},Tv=(e,t,r,n)=>{typeof th.emitWarning=="function"?th.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},gu=globalThis.AbortController,Dv=globalThis.AbortSignal;if(typeof gu>"u"){Dv=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},gu=class{constructor(){t()}signal=new Dv;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let e=th.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,Tv("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var VD=e=>!Lv.has(e),mV=Symbol("type"),kn=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Iv=e=>kn(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?es:null:null,es=class extends Array{constructor(t){super(t),this.fill(0)}},rh=class e{heap;length;static#e=!1;static create(t){let r=Iv(t);if(!r)return[];e.#e=!0;let n=new e(t,r);return e.#e=!1,n}constructor(t,r){if(!e.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},nh=class e{#e;#r;#t;#n;#o;#h;#d;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#p;#f;#c;#i;#m;#b;#E;#y;#_;#v;#S;#P;#A;#w;#O;#g;#s;static unsafeExposeInternals(t){return{starts:t.#P,ttls:t.#A,sizes:t.#S,keyMap:t.#f,keyList:t.#c,valList:t.#i,next:t.#m,prev:t.#b,get head(){return t.#E},get tail(){return t.#y},free:t.#_,isBackgroundFetch:r=>t.#l(r),backgroundFetch:(r,n,i,s)=>t.#G(r,n,i,s),moveToTail:r=>t.#$(r),indexes:r=>t.#F(r),rindexes:r=>t.#D(r),isStale:r=>t.#x(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#p}get size(){return this.#a}get fetchMethod(){return this.#h}get memoMethod(){return this.#d}get dispose(){return this.#t}get onInsert(){return this.#n}get disposeAfter(){return this.#o}constructor(t){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:u,dispose:c,onInsert:f,disposeAfter:l,noDisposeOnSet:h,noUpdateTTL:d,maxSize:p=0,maxEntrySize:y=0,sizeCalculation:m,fetchMethod:P,memoMethod:S,noDeleteOnFetchRejection:L,noDeleteOnStaleGet:O,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:_,ignoreFetchAbort:D,perf:k}=t;if(k!==void 0&&typeof k?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=k??YD,r!==0&&!kn(r))throw new TypeError("max option must be a nonnegative integer");let $=r?Iv(r):Array;if(!$)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=p,this.maxEntrySize=y||this.#r,this.sizeCalculation=m,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(S!==void 0&&typeof S!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#d=S,P!==void 0&&typeof P!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#h=P,this.#O=!!P,this.#f=new Map,this.#c=new Array(r).fill(void 0),this.#i=new Array(r).fill(void 0),this.#m=new $(r),this.#b=new $(r),this.#E=0,this.#y=0,this.#_=rh.create(r),this.#a=0,this.#p=0,typeof c=="function"&&(this.#t=c),typeof f=="function"&&(this.#n=f),typeof l=="function"?(this.#o=l,this.#v=[]):(this.#o=void 0,this.#v=void 0),this.#w=!!this.#t,this.#s=!!this.#n,this.#g=!!this.#o,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!L,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!_,this.ignoreFetchAbort=!!D,this.maxEntrySize!==0){if(this.#r!==0&&!kn(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!kn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#M()}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!O,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=kn(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!kn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#L()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let x="LRU_CACHE_UNBOUNDED";VD(x)&&(Lv.add(x),Tv("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",x,e))}}getRemainingTTL(t){return this.#f.has(t)?1/0:0}#L(){let t=new es(this.#e),r=new es(this.#e);this.#A=t,this.#P=r,this.#W=(s,o,a=this.#u.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let u=setTimeout(()=>{this.#x(s)&&this.#k(this.#c[s],"expire")},o+1);u.unref&&u.unref()}},this.#R=s=>{r[s]=t[s]!==0?this.#u.now():0},this.#C=(s,o)=>{if(t[o]){let a=t[o],u=r[o];if(!a||!u)return;s.ttl=a,s.start=u,s.now=n||i();let c=s.now-u;s.remainingTTL=a-c}};let n=0,i=()=>{let s=this.#u.now();if(this.ttlResolution>0){n=s;let o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#f.get(s);if(o===void 0)return 0;let a=t[o],u=r[o];if(!a||!u)return 1/0;let c=(n||i())-u;return a-c},this.#x=s=>{let o=r[s],a=t[s];return!!a&&!!o&&(n||i())-o>a}}#R=()=>{};#C=()=>{};#W=()=>{};#x=()=>!1;#M(){let t=new es(this.#e);this.#p=0,this.#S=t,this.#T=r=>{this.#p-=t[r],t[r]=0},this.#I=(r,n,i,s)=>{if(this.#l(n))return 0;if(!kn(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!kn(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#j=(r,n,i)=>{if(t[r]=n,this.#r){let s=this.#r-t[r];for(;this.#p>s;)this.#N(!0)}this.#p+=t[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#p)}}#T=t=>{};#j=(t,r,n)=>{};#I=(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#F({allowStale:t=this.allowStale}={}){if(this.#a)for(let r=this.#y;!(!this.#q(r)||((t||!this.#x(r))&&(yield r),r===this.#E));)r=this.#b[r]}*#D({allowStale:t=this.allowStale}={}){if(this.#a)for(let r=this.#E;!(!this.#q(r)||((t||!this.#x(r))&&(yield r),r===this.#y));)r=this.#m[r]}#q(t){return t!==void 0&&this.#f.get(this.#c[t])===t}*entries(){for(let t of this.#F())this.#i[t]!==void 0&&this.#c[t]!==void 0&&!this.#l(this.#i[t])&&(yield[this.#c[t],this.#i[t]])}*rentries(){for(let t of this.#D())this.#i[t]!==void 0&&this.#c[t]!==void 0&&!this.#l(this.#i[t])&&(yield[this.#c[t],this.#i[t]])}*keys(){for(let t of this.#F()){let r=this.#c[t];r!==void 0&&!this.#l(this.#i[t])&&(yield r)}}*rkeys(){for(let t of this.#D()){let r=this.#c[t];r!==void 0&&!this.#l(this.#i[t])&&(yield r)}}*values(){for(let t of this.#F())this.#i[t]!==void 0&&!this.#l(this.#i[t])&&(yield this.#i[t])}*rvalues(){for(let t of this.#D())this.#i[t]!==void 0&&!this.#l(this.#i[t])&&(yield this.#i[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let n of this.#F()){let i=this.#i[n],s=this.#l(i)?i.__staleWhileFetching:i;if(s!==void 0&&t(s,this.#c[n],this))return this.get(this.#c[n],r)}}forEach(t,r=this){for(let n of this.#F()){let i=this.#i[n],s=this.#l(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#c[n],this)}}rforEach(t,r=this){for(let n of this.#D()){let i=this.#i[n],s=this.#l(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#c[n],this)}}purgeStale(){let t=!1;for(let r of this.#D({allowStale:!0}))this.#x(r)&&(this.#k(this.#c[r],"expire"),t=!0);return t}info(t){let r=this.#f.get(t);if(r===void 0)return;let n=this.#i[r],i=this.#l(n)?n.__staleWhileFetching:n;if(i===void 0)return;let s={value:i};if(this.#A&&this.#P){let o=this.#A[r],a=this.#P[r];if(o&&a){let u=o-(this.#u.now()-a);s.ttl=u,s.start=Date.now()}}return this.#S&&(s.size=this.#S[r]),s}dump(){let t=[];for(let r of this.#F({allowStale:!0})){let n=this.#c[r],i=this.#i[r],s=this.#l(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let o={value:s};if(this.#A&&this.#P){o.ttl=this.#A[r];let a=this.#u.now()-this.#P[r];o.start=Math.floor(Date.now()-a)}this.#S&&(o.size=this.#S[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=this.#u.now()-i}this.set(r,n.value,n)}}set(t,r,n={}){if(r===void 0)return this.delete(t),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:u}=n,{noUpdateTTL:c=this.noUpdateTTL}=n,f=this.#I(t,r,n.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.#k(t,"set"),this;let l=this.#a===0?void 0:this.#f.get(t);if(l===void 0)l=this.#a===0?this.#y:this.#_.length!==0?this.#_.pop():this.#a===this.#e?this.#N(!1):this.#a,this.#c[l]=t,this.#i[l]=r,this.#f.set(t,l),this.#m[this.#y]=l,this.#b[l]=this.#y,this.#y=l,this.#a++,this.#j(l,f,u),u&&(u.set="add"),c=!1,this.#s&&this.#n?.(r,t,"add");else{this.#$(l);let h=this.#i[l];if(r!==h){if(this.#O&&this.#l(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=h;d!==void 0&&!o&&(this.#w&&this.#t?.(d,t,"set"),this.#g&&this.#v?.push([d,t,"set"]))}else o||(this.#w&&this.#t?.(h,t,"set"),this.#g&&this.#v?.push([h,t,"set"]));if(this.#T(l),this.#j(l,f,u),this.#i[l]=r,u){u.set="replace";let d=h&&this.#l(h)?h.__staleWhileFetching:h;d!==void 0&&(u.oldValue=d)}}else u&&(u.set="update");this.#s&&this.onInsert?.(r,t,r===h?"update":"replace")}if(i!==0&&!this.#A&&this.#L(),this.#A&&(c||this.#W(l,i,s),u&&this.#C(u,l)),!o&&this.#g&&this.#v){let h=this.#v,d;for(;d=h?.shift();)this.#o?.(...d)}return this}pop(){try{for(;this.#a;){let t=this.#i[this.#E];if(this.#N(!0),this.#l(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#g&&this.#v){let t=this.#v,r;for(;r=t?.shift();)this.#o?.(...r)}}}#N(t){let r=this.#E,n=this.#c[r],i=this.#i[r];return this.#O&&this.#l(i)?i.__abortController.abort(new Error("evicted")):(this.#w||this.#g)&&(this.#w&&this.#t?.(i,n,"evict"),this.#g&&this.#v?.push([i,n,"evict"])),this.#T(r),t&&(this.#c[r]=void 0,this.#i[r]=void 0,this.#_.push(r)),this.#a===1?(this.#E=this.#y=0,this.#_.length=0):this.#E=this.#m[r],this.#f.delete(n),this.#a--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#f.get(t);if(s!==void 0){let o=this.#i[s];if(this.#l(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#x(s))i&&(i.has="stale",this.#C(i,s));else return n&&this.#R(s),i&&(i.has="hit",this.#C(i,s)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=this.#f.get(t);if(i===void 0||!n&&this.#x(i))return;let s=this.#i[i];return this.#l(s)?s.__staleWhileFetching:s}#G(t,r,n,i){let s=r===void 0?void 0:this.#i[r];if(this.#l(s))return s;let o=new gu,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let u={signal:o.signal,options:n,context:i},c=(y,m=!1)=>{let{aborted:P}=o.signal,S=n.ignoreFetchAbort&&y!==void 0;if(n.status&&(P&&!m?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,S&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),P&&!S&&!m)return l(o.signal.reason);let L=d,O=this.#i[r];return(O===d||S&&m&&O===void 0)&&(y===void 0?L.__staleWhileFetching!==void 0?this.#i[r]=L.__staleWhileFetching:this.#k(t,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(t,y,u.options))),y},f=y=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=y),l(y)),l=y=>{let{aborted:m}=o.signal,P=m&&n.allowStaleOnFetchAbort,S=P||n.allowStaleOnFetchRejection,L=S||n.noDeleteOnFetchRejection,O=d;if(this.#i[r]===d&&(!L||O.__staleWhileFetching===void 0?this.#k(t,"fetch"):P||(this.#i[r]=O.__staleWhileFetching)),S)return n.status&&O.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),O.__staleWhileFetching;if(O.__returned===O)throw y},h=(y,m)=>{let P=this.#h?.(t,s,u);P&&P instanceof Promise&&P.then(S=>y(S===void 0?void 0:S),m),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(y(void 0),n.allowStaleOnFetchAbort&&(y=S=>c(S,!0)))})};n.status&&(n.status.fetchDispatched=!0);let d=new Promise(h).then(c,f),p=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(t,p,{...u.options,status:void 0}),r=this.#f.get(t)):this.#i[r]=p,p}#l(t){if(!this.#O)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof gu}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:u=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:y,forceRefresh:m=!1,status:P,signal:S}=r;if(!this.#O)return P&&(P.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:P});let L={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:u,sizeCalculation:c,noUpdateTTL:f,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:P,signal:S},O=this.#f.get(t);if(O===void 0){P&&(P.fetch="miss");let b=this.#G(t,O,L,y);return b.__returned=b}else{let b=this.#i[O];if(this.#l(b)){let x=n&&b.__staleWhileFetching!==void 0;return P&&(P.fetch="inflight",x&&(P.returnedStale=!0)),x?b.__staleWhileFetching:b.__returned=b}let _=this.#x(O);if(!m&&!_)return P&&(P.fetch="hit"),this.#$(O),i&&this.#R(O),P&&this.#C(P,O),b;let D=this.#G(t,O,L,y),$=D.__staleWhileFetching!==void 0&&n;return P&&(P.fetch=_?"stale":"refresh",$&&_&&(P.returnedStale=!0)),$?D.__staleWhileFetching:D.__returned=D}}async forceFetch(t,r={}){let n=await this.fetch(t,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(t,r={}){let n=this.#d;if(!n)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:s,...o}=r,a=this.get(t,o);if(!s&&a!==void 0)return a;let u=n(t,a,{options:o,context:i});return this.set(t,u,o),u}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#f.get(t);if(a!==void 0){let u=this.#i[a],c=this.#l(u);return o&&this.#C(o,a),this.#x(a)?(o&&(o.get="stale"),c?(o&&n&&u.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?u.__staleWhileFetching:void 0):(s||this.#k(t,"expire"),o&&n&&(o.returnedStale=!0),n?u:void 0)):(o&&(o.get="hit"),c?u.__staleWhileFetching:(this.#$(a),i&&this.#R(a),u))}else o&&(o.get="miss")}#U(t,r){this.#b[r]=t,this.#m[t]=r}#$(t){t!==this.#y&&(t===this.#E?this.#E=this.#m[t]:this.#U(this.#b[t],this.#m[t]),this.#U(this.#y,t),this.#y=t)}delete(t){return this.#k(t,"delete")}#k(t,r){let n=!1;if(this.#a!==0){let i=this.#f.get(t);if(i!==void 0)if(n=!0,this.#a===1)this.#B(r);else{this.#T(i);let s=this.#i[i];if(this.#l(s)?s.__abortController.abort(new Error("deleted")):(this.#w||this.#g)&&(this.#w&&this.#t?.(s,t,r),this.#g&&this.#v?.push([s,t,r])),this.#f.delete(t),this.#c[i]=void 0,this.#i[i]=void 0,i===this.#y)this.#y=this.#b[i];else if(i===this.#E)this.#E=this.#m[i];else{let o=this.#b[i];this.#m[o]=this.#m[i];let a=this.#m[i];this.#b[a]=this.#b[i]}this.#a--,this.#_.push(i)}}if(this.#g&&this.#v?.length){let i=this.#v,s;for(;s=i?.shift();)this.#o?.(...s)}return n}clear(){return this.#B("delete")}#B(t){for(let r of this.#D({allowStale:!0})){let n=this.#i[r];if(this.#l(n))n.__abortController.abort(new Error("deleted"));else{let i=this.#c[r];this.#w&&this.#t?.(n,i,t),this.#g&&this.#v?.push([n,i,t])}}if(this.#f.clear(),this.#i.fill(void 0),this.#c.fill(void 0),this.#A&&this.#P&&(this.#A.fill(0),this.#P.fill(0)),this.#S&&this.#S.fill(0),this.#E=0,this.#y=0,this.#_.length=0,this.#p=0,this.#a=0,this.#g&&this.#v){let r=this.#v,n;for(;n=r?.shift();)this.#o?.(...n)}}};mu.LRUCache=nh});var Mv=F((vV,$v)=>{"use strict";var ke=(...e)=>e.every(t=>t)?e.join(""):"",tt=e=>e?encodeURIComponent(e):"",Nv=e=>e.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),KD={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${ke("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${ke("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${ke("/",i,"/",tt(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${ke("/",i,"/",tt(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${tt(n||"HEAD")}/${s}${ke("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${tt(n||"HEAD")}/${s}${ke("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${ke("/",n,"/",tt(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${ke(e,"@")}${t}/${r}/${n}.git${ke("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${tt(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${ke("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${ke("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:Nv},Dn={};Dn.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${ke(e,"@")}raw.githubusercontent.com/${t}/${r}/${tt(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${ke(e,"@")}${t}/${r}/${n}.git${ke("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${tt(n||"HEAD")}`,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}}};Dn.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,editpath:o})=>`https://${e}/${t}/${r}${ke("/",i,"/",tt(n||"HEAD"),"/",s,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${tt(n||"HEAD")}.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)}}};Dn.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${tt(n||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}};Dn.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${ke("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${ke("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${ke("/",tt(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${ke("/",tt(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${ke("/",tt(r))}${ke("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${ke("/",tt(r))}${ke("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${ke("/",tt(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${ke("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${ke("/",tt(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${ke("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${ke("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${ke("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${tt(t||"HEAD")}`,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-"+Nv(e)}};Dn.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${tt(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${ke("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${tt(n)||"HEAD"}.tar.gz`,bugstemplate:()=>null,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)}}};for(let[e,t]of Object.entries(Dn))Dn[e]=Object.assign({},KD,t);$v.exports=Dn});var sh=F((AV,Bv)=>{var JD=require("url"),ih=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},jv=e=>{try{return new JD.URL(e)}catch{}},XD=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n)||e.substr(r,3)==="://")return e;let i=e.indexOf("@");return i>-1?i>r?`git+ssh://${e}`:e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},QD=e=>{let t=ih(e,"@","#"),r=ih(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),ih(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};Bv.exports=(e,t)=>{let r=t?XD(e,t):e;return jv(r)||jv(QD(r))}});var qv=F((EV,Wv)=>{"use strict";var ZD=sh(),eL=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),a=!s||t>-1&&s.index>t,u=o===-1||t>-1&&o>t,c=i===-1||t>-1&&i>t,f=n===-1||t>-1&&n>t,l=r>0,h=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return a&&l&&h&&d&&u&&c&&f};Wv.exports=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=eL(e)?`github:${e}`:e,s=ZD(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],u=o||a;if(!u)return;let c=r[o||a],f=null;n[s.protocol]?.auth&&(s.username||s.password)&&(f=`${s.username}${s.password?":"+s.password:""}`);let l=null,h=null,d=null,p=null;try{if(o){let y=s.pathname.startsWith("/")?s.pathname.slice(1):s.pathname,m=y.indexOf("@");m>-1&&(y=y.slice(m+1));let P=y.lastIndexOf("/");P>-1?(h=decodeURIComponent(y.slice(0,P)),h||(h=null),d=decodeURIComponent(y.slice(P+1))):d=decodeURIComponent(y),d.endsWith(".git")&&(d=d.slice(0,-4)),s.hash&&(l=decodeURIComponent(s.hash.slice(1))),p="shortcut"}else{if(!c.protocols.includes(s.protocol))return;let y=c.extract(s);if(!y)return;h=y.user&&decodeURIComponent(y.user),d=decodeURIComponent(y.project),l=decodeURIComponent(y.committish),p=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(y){if(y instanceof URIError)return;throw y}return[u,h,f,d,l,p,t]}});var Au=F((bV,Gv)=>{"use strict";var{LRUCache:tL}=yu(),rL=Mv(),nL=qv(),iL=sh(),oh=new tL({max:1e3});function sL(e){try{let{protocol:t,hostname:r,pathname:n}=new URL(e);if(!r)return null;let i=/(?:git\+)http:$/.test(t)?"http:":"https:",s=n.replace(/\.git$/,"");return`${i}//${r}${s}`}catch{return null}}var vu=class e{constructor(t,r,n,i,s,o,a={}){Object.assign(this,e.#e[t],{type:t,user:r,auth:n,project:i,committish:s,default:o,opts:a})}static#e={byShortcut:{},byDomain:{}};static#r={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,r){e.#e[t]=r,e.#e.byDomain[r.domain]=t,e.#e.byShortcut[`${t}:`]=t,e.#r[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!oh.has(n)){let i=nL(t,r,{gitHosts:e.#e,protocols:e.#r});oh.set(n,i?new e(...i):void 0)}return oh.get(n)}static fromManifest(t,r={}){if(!t||typeof t!="object")return;let n=t.repository,i=n&&(typeof n=="string"?n:typeof n=="object"&&typeof n.url=="string"?n.url:null);if(!i)throw new Error("no repository");let s=i&&e.fromUrl(i.replace(/^git\+/,""),r)||null;if(s)return s;let o=sL(i);return e.fromUrl(o,r)||o}static parseUrl(t){return iL(t)}#t(t,r){if(typeof t!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#t(this.sshtemplate,t)}sshurl(t){return this.#t(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#t(this.browsetemplate,t):typeof r[0]!="string"?this.#t(this.browsetreetemplate,{...r[0],path:t}):this.#t(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#t(this.browseblobtemplate,{...r[0],path:t}):this.#t(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#t(this.docstemplate,t)}bugs(t){return this.#t(this.bugstemplate,t)}https(t){return this.#t(this.httpstemplate,t)}git(t){return this.#t(this.gittemplate,t)}shortcut(t){return this.#t(this.shortcuttemplate,t)}path(t){return this.#t(this.pathtemplate,t)}tarball(t){return this.#t(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#t(this.filetemplate,{...r,path:t})}edit(t,r){return this.#t(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(rL))vu.addHost(e,t);Gv.exports=vu});var Hv=F(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.range=vi.balanced=void 0;var oL=(e,t,r)=>{let n=e instanceof RegExp?Uv(e,r):e,i=t instanceof RegExp?Uv(t,r):t,s=n!==null&&i!=null&&(0,vi.range)(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}};vi.balanced=oL;var Uv=(e,t)=>{let r=t.match(e);return r?r[0]:null},aL=(e,t,r)=>{let n,i,s,o,a,u=r.indexOf(e),c=r.indexOf(t,u+1),f=u;if(u>=0&&c>0){if(e===t)return[u,c];for(n=[],s=r.length;f>=0&&!a;){if(f===u)n.push(f),u=r.indexOf(e,f+1);else if(n.length===1){let l=n.pop();l!==void 0&&(a=[l,c])}else i=n.pop(),i!==void 0&&i<s&&(s=i,o=c),c=r.indexOf(t,f+1);f=u<c&&u>=0?u:c}n.length&&o!==void 0&&(a=[s,o])}return a};vi.range=aL});var Qv=F(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.expand=EL;var zv=Hv(),Yv="\0SLASH"+Math.random()+"\0",Vv="\0OPEN"+Math.random()+"\0",uh="\0CLOSE"+Math.random()+"\0",Kv="\0COMMA"+Math.random()+"\0",Jv="\0PERIOD"+Math.random()+"\0",uL=new RegExp(Yv,"g"),cL=new RegExp(Vv,"g"),lL=new RegExp(uh,"g"),fL=new RegExp(Kv,"g"),hL=new RegExp(Jv,"g"),dL=/\\\\/g,pL=/\\{/g,gL=/\\}/g,mL=/\\,/g,yL=/\\./g;function ah(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function vL(e){return e.replace(dL,Yv).replace(pL,Vv).replace(gL,uh).replace(mL,Kv).replace(yL,Jv)}function AL(e){return e.replace(uL,"\\").replace(cL,"{").replace(lL,"}").replace(fL,",").replace(hL,".")}function Xv(e){if(!e)return[""];let t=[],r=(0,zv.balanced)("{","}",e);if(!r)return e.split(",");let{pre:n,body:i,post:s}=r,o=n.split(",");o[o.length-1]+="{"+i+"}";let a=Xv(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function EL(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),lo(vL(e),!0).map(AL)):[]}function bL(e){return"{"+e+"}"}function wL(e){return/^-?0\d/.test(e)}function SL(e,t){return e<=t}function CL(e,t){return e>=t}function lo(e,t){let r=[],n=(0,zv.balanced)("{","}",e);if(!n)return[e];let i=n.pre,s=n.post.length?lo(n.post,!1):[""];if(/\$$/.test(n.pre))for(let o=0;o<s.length;o++){let a=i+"{"+n.body+"}"+s[o];r.push(a)}else{let o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),u=o||a,c=n.body.indexOf(",")>=0;if(!u&&!c)return n.post.match(/,(?!,).*\}/)?(e=n.pre+"{"+n.body+uh+n.post,lo(e)):[e];let f;if(u)f=n.body.split(/\.\./);else if(f=Xv(n.body),f.length===1&&f[0]!==void 0&&(f=lo(f[0],!1).map(bL),f.length===1))return s.map(h=>n.pre+f[0]+h);let l;if(u&&f[0]!==void 0&&f[1]!==void 0){let h=ah(f[0]),d=ah(f[1]),p=Math.max(f[0].length,f[1].length),y=f.length===3&&f[2]!==void 0?Math.abs(ah(f[2])):1,m=SL;d<h&&(y*=-1,m=CL);let S=f.some(wL);l=[];for(let L=h;m(L,d);L+=y){let O;if(a)O=String.fromCharCode(L),O==="\\"&&(O="");else if(O=String(L),S){let b=p-O.length;if(b>0){let _=new Array(b+1).join("0");L<0?O="-"+_+O.slice(1):O=_+O}}l.push(O)}}else{l=[];for(let h=0;h<f.length;h++)l.push.apply(l,lo(f[h],!1))}for(let h=0;h<l.length;h++)for(let d=0;d<s.length;d++){let p=i+l[h]+s[d];(!t||u||p)&&r.push(p)}}return r}});var Zv=F(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.assertValidPattern=void 0;var xL=1024*64,PL=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>xL)throw new TypeError("pattern is too long")};Eu.assertValidPattern=PL});var tA=F(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.parseClass=void 0;var OL={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},fo=e=>e.replace(/[[\]\\-]/g,"\\$&"),_L=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),eA=e=>e.join(""),RL=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,o=!1,a=!1,u=!1,c=!1,f=r,l="";e:for(;s<e.length;){let y=e.charAt(s);if((y==="!"||y==="^")&&s===r+1){c=!0,s++;continue}if(y==="]"&&o&&!u){f=s+1;break}if(o=!0,y==="\\"&&!u){u=!0,s++;continue}if(y==="["&&!u){for(let[m,[P,S,L]]of Object.entries(OL))if(e.startsWith(m,s)){if(l)return["$.",!1,e.length-r,!0];s+=m.length,L?i.push(P):n.push(P),a=a||S;continue e}}if(u=!1,l){y>l?n.push(fo(l)+"-"+fo(y)):y===l&&n.push(fo(y)),l="",s++;continue}if(e.startsWith("-]",s+1)){n.push(fo(y+"-")),s+=2;continue}if(e.startsWith("-",s+1)){l=y,s+=2;continue}n.push(fo(y)),s++}if(f<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!c){let y=n[0].length===2?n[0].slice(-1):n[0];return[_L(y),!1,f-r,!1]}let h="["+(c?"^":"")+eA(n)+"]",d="["+(c?"":"^")+eA(i)+"]";return[n.length&&i.length?"("+h+"|"+d+")":n.length?h:d,a,f-r,!0]};bu.parseClass=RL});var Su=F(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.unescape=void 0;var FL=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):t?e.replace(/\[([^\/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1");wu.unescape=FL});var hh=F(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.AST=void 0;var kL=tA(),Cu=Su(),DL=new Set(["!","?","+","*","@"]),rA=e=>DL.has(e),LL="(?!(?:^|/)\\.\\.?(?:$|/))",xu="(?!\\.)",TL=new Set(["[","."]),IL=new Set(["..","."]),NL=new Set("().*{}+?[]^$\\!"),$L=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),fh="[^/]",nA=fh+"*?",iA=fh+"+?",lh=class e{type;#e;#r;#t=!1;#n=[];#o;#h;#d;#u=!1;#a;#p;#f=!1;constructor(t,r,n={}){this.type=t,t&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#a=this.#e===this?n:this.#e.#a,this.#d=this.#e===this?[]:this.#e.#d,t==="!"&&!this.#e.#u&&this.#d.push(this),this.#h=this.#o?this.#o.#n.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let t of this.#n)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#p!==void 0?this.#p:this.type?this.#p=this.type+"("+this.#n.map(t=>String(t)).join("|")+")":this.#p=this.#n.map(t=>String(t)).join("")}#c(){if(this!==this.#e)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let t;for(;t=this.#d.pop();){if(t.type!=="!")continue;let r=t,n=r.#o;for(;n;){for(let i=r.#h+1;!n.type&&i<n.#n.length;i++)for(let s of t.#n){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(n.#n[i])}r=n,n=r.#o}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof e&&r.#o===this))throw new Error("invalid part: "+r);this.#n.push(r)}}toJSON(){let t=this.type===null?this.#n.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#n.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#u&&this.#o?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#h===0)return!0;let t=this.#o;for(let r=0;r<this.#h;r++){let n=t.#n[r];if(!(n instanceof e&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let t=this.#o?this.#o.#n.length:0;return this.#h===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new e(this.type,t);for(let n of this.#n)r.copyIn(n);return r}static#i(t,r,n,i){let s=!1,o=!1,a=-1,u=!1;if(r.type===null){let d=n,p="";for(;d<t.length;){let y=t.charAt(d++);if(s||y==="\\"){s=!s,p+=y;continue}if(o){d===a+1?(y==="^"||y==="!")&&(u=!0):y==="]"&&!(d===a+2&&u)&&(o=!1),p+=y;continue}else if(y==="["){o=!0,a=d,u=!1,p+=y;continue}if(!i.noext&&rA(y)&&t.charAt(d)==="("){r.push(p),p="";let m=new e(y,r);d=e.#i(t,m,d,i),r.push(m);continue}p+=y}return r.push(p),d}let c=n+1,f=new e(null,r),l=[],h="";for(;c<t.length;){let d=t.charAt(c++);if(s||d==="\\"){s=!s,h+=d;continue}if(o){c===a+1?(d==="^"||d==="!")&&(u=!0):d==="]"&&!(c===a+2&&u)&&(o=!1),h+=d;continue}else if(d==="["){o=!0,a=c,u=!1,h+=d;continue}if(rA(d)&&t.charAt(c)==="("){f.push(h),h="";let p=new e(d,f);f.push(p),c=e.#i(t,p,c,i);continue}if(d==="|"){f.push(h),h="",l.push(f),f=new e(null,r);continue}if(d===")")return h===""&&r.#n.length===0&&(r.#f=!0),f.push(h),h="",r.push(...l,f),c;h+=d}return r.type=null,r.#r=void 0,r.#n=[t.substring(n-1)],c}static fromGlob(t,r={}){let n=new e(null,void 0,r);return e.#i(t,n,0,r),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let t=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||this.#r||this.#a.nocase&&!this.#a.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;let a=(this.#a.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return this.#a}toRegExpSource(t){let r=t??!!this.#a.dot;if(this.#e===this&&this.#c(),!this.type){let u=this.isStart()&&this.isEnd()&&!this.#n.some(d=>typeof d!="string"),c=this.#n.map(d=>{let[p,y,m,P]=typeof d=="string"?e.#b(d,this.#r,u):d.toRegExpSource(t);return this.#r=this.#r||m,this.#t=this.#t||P,p}).join(""),f="";if(this.isStart()&&typeof this.#n[0]=="string"&&!(this.#n.length===1&&IL.has(this.#n[0]))){let p=TL,y=r&&p.has(c.charAt(0))||c.startsWith("\\.")&&p.has(c.charAt(2))||c.startsWith("\\.\\.")&&p.has(c.charAt(4)),m=!r&&!t&&p.has(c.charAt(0));f=y?LL:m?xu:""}let l="";return this.isEnd()&&this.#e.#u&&this.#o?.type==="!"&&(l="(?:$|\\/)"),[f+c+l,(0,Cu.unescape)(c),this.#r=!!this.#r,this.#t]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#m(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let u=this.toString();return this.#n=[u],this.type=null,this.#r=void 0,[u,(0,Cu.unescape)(this.toString()),!1,!1]}let o=!n||t||r||!xu?"":this.#m(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#f)a=(this.isStart()&&!r?xu:"")+iA;else{let u=this.type==="!"?"))"+(this.isStart()&&!r&&!t?xu:"")+nA+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=i+s+u}return[a,(0,Cu.unescape)(s),this.#r=!!this.#r,this.#t]}#m(t){return this.#n.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,o]=r.toRegExpSource(t);return this.#t=this.#t||o,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#b(t,r,n=!1){let i=!1,s="",o=!1;for(let a=0;a<t.length;a++){let u=t.charAt(a);if(i){i=!1,s+=(NL.has(u)?"\\":"")+u;continue}if(u==="\\"){a===t.length-1?s+="\\\\":i=!0;continue}if(u==="["){let[c,f,l,h]=(0,kL.parseClass)(t,a);if(l){s+=c,o=o||f,a+=l-1,r=r||h;continue}}if(u==="*"){s+=n&&t==="*"?iA:nA,r=!0;continue}if(u==="?"){s+=fh,r=!0;continue}s+=$L(u)}return[s,(0,Cu.unescape)(t),!!r,o]}};Pu.AST=lh});var dh=F(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.escape=void 0;var ML=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");Ou.escape=ML});var an=F(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.unescape=pe.escape=pe.AST=pe.Minimatch=pe.match=pe.makeRe=pe.braceExpand=pe.defaults=pe.filter=pe.GLOBSTAR=pe.sep=pe.minimatch=void 0;var jL=Qv(),_u=Zv(),aA=hh(),BL=dh(),WL=Su(),qL=(e,t,r={})=>((0,_u.assertValidPattern)(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Ai(t,r).match(e));pe.minimatch=qL;var GL=/^\*+([^+@!?\*\[\(]*)$/,UL=e=>t=>!t.startsWith(".")&&t.endsWith(e),HL=e=>t=>t.endsWith(e),zL=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),YL=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),VL=/^\*+\.\*+$/,KL=e=>!e.startsWith(".")&&e.includes("."),JL=e=>e!=="."&&e!==".."&&e.includes("."),XL=/^\.\*+$/,QL=e=>e!=="."&&e!==".."&&e.startsWith("."),ZL=/^\*+$/,eT=e=>e.length!==0&&!e.startsWith("."),tT=e=>e.length!==0&&e!=="."&&e!=="..",rT=/^\?+([^+@!?\*\[\(]*)?$/,nT=([e,t=""])=>{let r=uA([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},iT=([e,t=""])=>{let r=cA([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},sT=([e,t=""])=>{let r=cA([e]);return t?n=>r(n)&&n.endsWith(t):r},oT=([e,t=""])=>{let r=uA([e]);return t?n=>r(n)&&n.endsWith(t):r},uA=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},cA=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},lA=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",sA={win32:{sep:"\\"},posix:{sep:"/"}};pe.sep=lA==="win32"?sA.win32.sep:sA.posix.sep;pe.minimatch.sep=pe.sep;pe.GLOBSTAR=Symbol("globstar **");pe.minimatch.GLOBSTAR=pe.GLOBSTAR;var aT="[^/]",uT=aT+"*?",cT="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",lT="(?:(?!(?:\\/|^)\\.).)*?",fT=(e,t={})=>r=>(0,pe.minimatch)(r,e,t);pe.filter=fT;pe.minimatch.filter=pe.filter;var dr=(e,t={})=>Object.assign({},e,t),hT=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return pe.minimatch;let t=pe.minimatch;return Object.assign((n,i,s={})=>t(n,i,dr(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,dr(e,s))}static defaults(i){return t.defaults(dr(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,o={}){super(i,s,dr(e,o))}static fromGlob(i,s={}){return t.AST.fromGlob(i,dr(e,s))}},unescape:(n,i={})=>t.unescape(n,dr(e,i)),escape:(n,i={})=>t.escape(n,dr(e,i)),filter:(n,i={})=>t.filter(n,dr(e,i)),defaults:n=>t.defaults(dr(e,n)),makeRe:(n,i={})=>t.makeRe(n,dr(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,dr(e,i)),match:(n,i,s={})=>t.match(n,i,dr(e,s)),sep:t.sep,GLOBSTAR:pe.GLOBSTAR})};pe.defaults=hT;pe.minimatch.defaults=pe.defaults;var dT=(e,t={})=>((0,_u.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,jL.expand)(e));pe.braceExpand=dT;pe.minimatch.braceExpand=pe.braceExpand;var pT=(e,t={})=>new Ai(e,t).makeRe();pe.makeRe=pT;pe.minimatch.makeRe=pe.makeRe;var gT=(e,t,r={})=>{let n=new Ai(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};pe.match=gT;pe.minimatch.match=pe.match;var oA=/[?*]|[+@!]\(.*?\)|\[|\]/,mT=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ai=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,r={}){(0,_u.assertValidPattern)(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||lA,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=s[0]===""&&s[1]===""&&(s[2]==="?"||!oA.test(s[2]))&&!oA.test(s[3]),c=/^[a-z]:/i.test(s[0]);if(u)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(c)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(u=>this.parse(u))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let i=0;i<t[n].length;i++)t[n][i]==="**"&&(t[n][i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let s=t[i];i===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){let i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let o=i;for(;n[o+1]==="**";)o++;o>i&&n.splice(i+1,o-i);let a=n[i+1],u=n[i+2],c=n[i+3];if(a!==".."||!u||u==="."||u===".."||!c||c==="."||c==="..")continue;r=!0,n.splice(i,1);let f=n.slice(0);f[i]="**",t.push(f),i--}if(!this.preserveMultipleSlashes){for(let o=1;o<n.length-1;o++){let a=n[o];o===1&&a===""&&n[0]===""||(a==="."||a==="")&&(r=!0,n.splice(o,1),o--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){let o=n[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let u=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...u),n.length===0&&n.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){let i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,s=0,o=[],a="";for(;i<t.length&&s<r.length;)if(t[i]===r[s])o.push(a==="b"?r[s]:t[i]),i++,s++;else if(n&&t[i]==="**"&&r[s]===t[i+1])o.push(t[i]),i++;else if(n&&r[s]==="**"&&t[i]===r[s+1])o.push(r[s]),s++;else if(t[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(t[i]),i++,s++}else if(r[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),i++,s++}else return!1;return t.length===r.length&&o}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=this.options;if(this.isWindows){let y=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),m=!y&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),P=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!P&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),L=m?3:y?0:void 0,O=S?3:P?0:void 0;if(typeof L=="number"&&typeof O=="number"){let[b,_]=[t[L],r[O]];b.toLowerCase()===_.toLowerCase()&&(r[O]=b,O>L?r=r.slice(O):L>O&&(t=t.slice(L)))}}let{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var o=0,a=0,u=t.length,c=r.length;o<u&&a<c;o++,a++){this.debug("matchOne loop");var f=r[a],l=t[o];if(this.debug(r,f,l),f===!1)return!1;if(f===pe.GLOBSTAR){this.debug("GLOBSTAR",[r,f,l]);var h=o,d=a+1;if(d===c){for(this.debug("** at the end");o<u;o++)if(t[o]==="."||t[o]===".."||!i.dot&&t[o].charAt(0)===".")return!1;return!0}for(;h<u;){var p=t[h];if(this.debug(`
9
9
  globstar while`,t,h,r,d,p),this.matchOne(t.slice(h),r.slice(d),n))return this.debug("globstar found match!",h,u,p),!0;if(p==="."||p===".."||!i.dot&&p.charAt(0)==="."){this.debug("dot detected!",t,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(n&&(this.debug(`
10
- >>> no match, partial?`,t,h,r,d),h===u))}let y;if(typeof f=="string"?(y=l===f,this.debug("string match",f,l,y)):(y=f.test(l),this.debug("pattern match",f,l,y)),!y)return!1}if(o===u&&a===c)return!0;if(o===u)return n;if(a===c)return o===u-1&&t[o]==="";throw new Error("wtf?")}braceExpand(){return(0,de.braceExpand)(this.pattern,this.options)}parse(t){(0,Cu.assertValidPattern)(t);let r=this.options;if(t==="**")return de.GLOBSTAR;if(t==="")return"";let n,i=null;(n=t.match(kk))?i=r.dot?Ik:Tk:(n=t.match(Sk))?i=(r.nocase?r.dot?Pk:Ok:r.dot?xk:Ck)(n[1]):(n=t.match(Nk))?i=(r.nocase?r.dot?Mk:$k:r.dot?jk:Bk)(n):(n=t.match(_k))?i=r.dot?Fk:Rk:(n=t.match(Dk))&&(i=Lk);let s=Vv.AST.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?qk:r.dot?Gk:Uk,i=new Set(r.nocase?["i"]:[]),s=t.map(u=>{let c=u.map(l=>{if(l instanceof RegExp)for(let h of l.flags.split(""))i.add(h);return typeof l=="string"?Xk(l):l===de.GLOBSTAR?de.GLOBSTAR:l._src});c.forEach((l,h)=>{let d=c[h+1],p=c[h-1];l!==de.GLOBSTAR||p===de.GLOBSTAR||(p===void 0?d!==void 0&&d!==de.GLOBSTAR?c[h+1]="(?:\\/|"+n+"\\/)?"+d:c[h]=n:d===void 0?c[h-1]=p+"(?:\\/|\\/"+n+")?":d!==de.GLOBSTAR&&(c[h-1]=p+"(?:\\/|\\/"+n+"\\/)"+d,c[h+1]=de.GLOBSTAR))});let f=c.filter(l=>l!==de.GLOBSTAR);if(this.partial&&f.length>=1){let l=[];for(let h=1;h<=f.length;h++)l.push(f.slice(0,h).join("/"));return"(?:"+l.join("|")+")"}return f.join("/")}).join("|"),[o,a]=t.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.partial&&(s="^(?:\\/|"+o+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let o=i[i.length-1];if(!o)for(let a=i.length-2;!o&&a>=0;a--)o=i[a];for(let a=0;a<s.length;a++){let u=s[a],c=i;if(n.matchBase&&u.length===1&&(c=[o]),this.matchOne(c,u,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return de.minimatch.defaults(t).Minimatch}};de.Minimatch=Ai;var Jk=sh();Object.defineProperty(de,"AST",{enumerable:!0,get:function(){return Jk.AST}});var Qk=oh();Object.defineProperty(de,"escape",{enumerable:!0,get:function(){return Qk.escape}});var Zk=Au();Object.defineProperty(de,"unescape",{enumerable:!0,get:function(){return Zk.unescape}});de.minimatch.AST=Vv.AST;de.minimatch.Minimatch=Ai;de.minimatch.escape=Ek.escape;de.minimatch.unescape=bk.unescape});var ph=F(kt=>{"use strict";var eT=kt&&kt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kt,"__esModule",{value:!0});kt.Minipass=kt.isWritable=kt.isReadable=kt.isStream=void 0;var Qv=typeof process=="object"&&process?process:{stdout:null,stderr:null},dh=require("node:events"),rA=eT(require("node:stream")),tT=require("node:string_decoder"),rT=e=>!!e&&typeof e=="object"&&(e instanceof Du||e instanceof rA.default||(0,kt.isReadable)(e)||(0,kt.isWritable)(e));kt.isStream=rT;var nT=e=>!!e&&typeof e=="object"&&e instanceof dh.EventEmitter&&typeof e.pipe=="function"&&e.pipe!==rA.default.Writable.prototype.pipe;kt.isReadable=nT;var iT=e=>!!e&&typeof e=="object"&&e instanceof dh.EventEmitter&&typeof e.write=="function"&&typeof e.end=="function";kt.isWritable=iT;var cn=Symbol("EOF"),ln=Symbol("maybeEmitEnd"),Tn=Symbol("emittedEnd"),xu=Symbol("emittingEnd"),ao=Symbol("emittedError"),Ou=Symbol("closed"),Zv=Symbol("read"),Pu=Symbol("flush"),eA=Symbol("flushChunk"),Lr=Symbol("encoding"),es=Symbol("decoder"),at=Symbol("flowing"),uo=Symbol("paused"),ts=Symbol("resume"),ut=Symbol("buffer"),Lt=Symbol("pipes"),ct=Symbol("bufferLength"),ah=Symbol("bufferPush"),_u=Symbol("bufferShift"),mt=Symbol("objectMode"),Xe=Symbol("destroyed"),uh=Symbol("error"),ch=Symbol("emitData"),tA=Symbol("emitEnd"),lh=Symbol("emitEnd2"),Gr=Symbol("async"),fh=Symbol("abort"),Ru=Symbol("aborted"),co=Symbol("signal"),Ei=Symbol("dataListeners"),rr=Symbol("discarded"),lo=e=>Promise.resolve().then(e),sT=e=>e(),oT=e=>e==="end"||e==="finish"||e==="prefinish",aT=e=>e instanceof ArrayBuffer||!!e&&typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,uT=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),Fu=class{src;dest;opts;ondrain;constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[ts](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},hh=class extends Fu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}},cT=e=>!!e.objectMode,lT=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer",Du=class extends dh.EventEmitter{[at]=!1;[uo]=!1;[Lt]=[];[ut]=[];[mt];[Lr];[Gr];[es];[cn]=!1;[Tn]=!1;[xu]=!1;[Ou]=!1;[ao]=null;[ct]=0;[Xe]=!1;[co];[Ru]=!1;[Ei]=0;[rr]=!1;writable=!0;readable=!0;constructor(...t){let r=t[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");cT(r)?(this[mt]=!0,this[Lr]=null):lT(r)?(this[Lr]=r.encoding,this[mt]=!1):(this[mt]=!1,this[Lr]=null),this[Gr]=!!r.async,this[es]=this[Lr]?new tT.StringDecoder(this[Lr]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ut]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Lt]});let{signal:n}=r;n&&(this[co]=n,n.aborted?this[fh]():n.addEventListener("abort",()=>this[fh]()))}get bufferLength(){return this[ct]}get encoding(){return this[Lr]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[mt]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Gr]}set async(t){this[Gr]=this[Gr]||!!t}[fh](){this[Ru]=!0,this.emit("abort",this[co]?.reason),this.destroy(this[co]?.reason)}get aborted(){return this[Ru]}set aborted(t){}write(t,r,n){if(this[Ru])return!1;if(this[cn])throw new Error("write after end");if(this[Xe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Gr]?lo:sT;if(!this[mt]&&!Buffer.isBuffer(t)){if(uT(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(aT(t))t=Buffer.from(t);else if(typeof t!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[mt]?(this[at]&&this[ct]!==0&&this[Pu](!0),this[at]?this.emit("data",t):this[ah](t),this[ct]!==0&&this.emit("readable"),n&&i(n),this[at]):t.length?(typeof t=="string"&&!(r===this[Lr]&&!this[es]?.lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[Lr]&&(t=this[es].write(t)),this[at]&&this[ct]!==0&&this[Pu](!0),this[at]?this.emit("data",t):this[ah](t),this[ct]!==0&&this.emit("readable"),n&&i(n),this[at]):(this[ct]!==0&&this.emit("readable"),n&&i(n),this[at])}read(t){if(this[Xe])return null;if(this[rr]=!1,this[ct]===0||t===0||t&&t>this[ct])return this[ln](),null;this[mt]&&(t=null),this[ut].length>1&&!this[mt]&&(this[ut]=[this[Lr]?this[ut].join(""):Buffer.concat(this[ut],this[ct])]);let r=this[Zv](t||null,this[ut][0]);return this[ln](),r}[Zv](t,r){if(this[mt])this[_u]();else{let n=r;t===n.length||t===null?this[_u]():typeof n=="string"?(this[ut][0]=n.slice(t),r=n.slice(0,t),this[ct]-=t):(this[ut][0]=n.subarray(t),r=n.subarray(0,t),this[ct]-=t)}return this.emit("data",r),!this[ut].length&&!this[cn]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r="utf8"),t!==void 0&&this.write(t,r),n&&this.once("end",n),this[cn]=!0,this.writable=!1,(this[at]||!this[uo])&&this[ln](),this}[ts](){this[Xe]||(!this[Ei]&&!this[Lt].length&&(this[rr]=!0),this[uo]=!1,this[at]=!0,this.emit("resume"),this[ut].length?this[Pu]():this[cn]?this[ln]():this.emit("drain"))}resume(){return this[ts]()}pause(){this[at]=!1,this[uo]=!0,this[rr]=!1}get destroyed(){return this[Xe]}get flowing(){return this[at]}get paused(){return this[uo]}[ah](t){this[mt]?this[ct]+=1:this[ct]+=t.length,this[ut].push(t)}[_u](){return this[mt]?this[ct]-=1:this[ct]-=this[ut][0].length,this[ut].shift()}[Pu](t=!1){do;while(this[eA](this[_u]())&&this[ut].length);!t&&!this[ut].length&&!this[cn]&&this.emit("drain")}[eA](t){return this.emit("data",t),this[at]}pipe(t,r){if(this[Xe])return t;this[rr]=!1;let n=this[Tn];return r=r||{},t===Qv.stdout||t===Qv.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[Lt].push(r.proxyErrors?new hh(this,t,r):new Fu(this,t,r)),this[Gr]?lo(()=>this[ts]()):this[ts]()),t}unpipe(t){let r=this[Lt].find(n=>n.dest===t);r&&(this[Lt].length===1?(this[at]&&this[Ei]===0&&(this[at]=!1),this[Lt]=[]):this[Lt].splice(this[Lt].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);if(t==="data")this[rr]=!1,this[Ei]++,!this[Lt].length&&!this[at]&&this[ts]();else if(t==="readable"&&this[ct]!==0)super.emit("readable");else if(oT(t)&&this[Tn])super.emit(t),this.removeAllListeners(t);else if(t==="error"&&this[ao]){let i=r;this[Gr]?lo(()=>i.call(this,this[ao])):i.call(this,this[ao])}return n}removeListener(t,r){return this.off(t,r)}off(t,r){let n=super.off(t,r);return t==="data"&&(this[Ei]=this.listeners("data").length,this[Ei]===0&&!this[rr]&&!this[Lt].length&&(this[at]=!1)),n}removeAllListeners(t){let r=super.removeAllListeners(t);return(t==="data"||t===void 0)&&(this[Ei]=0,!this[rr]&&!this[Lt].length&&(this[at]=!1)),r}get emittedEnd(){return this[Tn]}[ln](){!this[xu]&&!this[Tn]&&!this[Xe]&&this[ut].length===0&&this[cn]&&(this[xu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ou]&&this.emit("close"),this[xu]=!1)}emit(t,...r){let n=r[0];if(t!=="error"&&t!=="close"&&t!==Xe&&this[Xe])return!1;if(t==="data")return!this[mt]&&!n?!1:this[Gr]?(lo(()=>this[ch](n)),!0):this[ch](n);if(t==="end")return this[tA]();if(t==="close"){if(this[Ou]=!0,!this[Tn]&&!this[Xe])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[ao]=n,super.emit(uh,n);let s=!this[co]||this.listeners("error").length?super.emit("error",n):!1;return this[ln](),s}else if(t==="resume"){let s=super.emit("resume");return this[ln](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,...r);return this[ln](),i}[ch](t){for(let n of this[Lt])n.dest.write(t)===!1&&this.pause();let r=this[rr]?!1:super.emit("data",t);return this[ln](),r}[tA](){return this[Tn]?!1:(this[Tn]=!0,this.readable=!1,this[Gr]?(lo(()=>this[lh]()),!0):this[lh]())}[lh](){if(this[es]){let r=this[es].end();if(r){for(let n of this[Lt])n.dest.write(r);this[rr]||super.emit("data",r)}}for(let r of this[Lt])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){let t=Object.assign([],{dataLength:0});this[mt]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[mt]||(t.dataLength+=n.length)}),await r,t}async concat(){if(this[mt])throw new Error("cannot concat in objectMode");let t=await this.collect();return this[Lr]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,r)=>{this.on(Xe,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[rr]=!1;let t=!1,r=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[cn])return r();let s,o,a=l=>{this.off("data",u),this.off("end",c),this.off(Xe,f),r(),o(l)},u=l=>{this.off("error",a),this.off("end",c),this.off(Xe,f),this.pause(),s({value:l,done:!!this[cn]})},c=()=>{this.off("error",a),this.off("data",u),this.off(Xe,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((l,h)=>{o=h,s=l,this.once(Xe,f),this.once("error",a),this.once("end",c),this.once("data",u)})},throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[rr]=!1;let t=!1,r=()=>(this.pause(),this.off(uh,r),this.off(Xe,r),this.off("end",r),t=!0,{done:!0,value:void 0}),n=()=>{if(t)return r();let i=this.read();return i===null?r():{done:!1,value:i}};return this.once("end",r),this.once(uh,r),this.once(Xe,r),{next:n,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(t){if(this[Xe])return t?this.emit("error",t):this.emit(Xe),this;this[Xe]=!0,this[rr]=!0,this[ut].length=0,this[ct]=0;let r=this;return typeof r.close=="function"&&!this[Ou]&&r.close(),t?this.emit("error",t):this.emit(Xe),this}static get isStream(){return kt.isStream}};kt.Minipass=Du});var mA=F(ke=>{"use strict";var fT=ke&&ke.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),hT=ke&&ke.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),dT=ke&&ke.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&fT(t,e,r);return hT(t,e),t};Object.defineProperty(ke,"__esModule",{value:!0});ke.PathScurry=ke.Path=ke.PathScurryDarwin=ke.PathScurryPosix=ke.PathScurryWin32=ke.PathScurryBase=ke.PathPosix=ke.PathWin32=ke.PathBase=ke.ChildrenCache=ke.ResolveCache=void 0;var ju=du(),Nu=require("node:path"),pT=require("node:url"),ho=require("fs"),gT=dT(require("node:fs")),mT=ho.realpathSync.native,Lu=require("node:fs/promises"),nA=ph(),po={lstatSync:ho.lstatSync,readdir:ho.readdir,readdirSync:ho.readdirSync,readlinkSync:ho.readlinkSync,realpathSync:mT,promises:{lstat:Lu.lstat,readdir:Lu.readdir,readlink:Lu.readlink,realpath:Lu.realpath}},uA=e=>!e||e===po||e===gT?po:{...po,...e,promises:{...po.promises,...e.promises||{}}},cA=/^\\\\\?\\([a-z]:)\\?$/i,yT=e=>e.replace(/\//g,"\\").replace(cA,"$1\\"),vT=/[\\\/]/,pr=0,lA=1,fA=2,Ur=4,hA=6,dA=8,bi=10,pA=12,dr=15,fo=~dr,gh=16,iA=32,go=64,kr=128,ku=256,Iu=512,sA=go|kr|Iu,AT=1023,mh=e=>e.isFile()?dA:e.isDirectory()?Ur:e.isSymbolicLink()?bi:e.isCharacterDevice()?fA:e.isBlockDevice()?hA:e.isSocket()?pA:e.isFIFO()?lA:pr,oA=new ju.LRUCache({max:2**12}),mo=e=>{let t=oA.get(e);if(t)return t;let r=e.normalize("NFKD");return oA.set(e,r),r},aA=new ju.LRUCache({max:2**12}),Tu=e=>{let t=aA.get(e);if(t)return t;let r=mo(e.toLowerCase());return aA.set(e,r),r},yo=class extends ju.LRUCache{constructor(){super({max:256})}};ke.ResolveCache=yo;var $u=class extends ju.LRUCache{constructor(t=16*1024){super({maxSize:t,sizeCalculation:r=>r.length+1})}};ke.ChildrenCache=$u;var gA=Symbol("PathScurry setAsCwd"),dt=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#t;get mode(){return this.#t}#n;get nlink(){return this.#n}#o;get uid(){return this.#o}#h;get gid(){return this.#h}#d;get rdev(){return this.#d}#u;get blksize(){return this.#u}#a;get ino(){return this.#a}#p;get size(){return this.#p}#f;get blocks(){return this.#f}#c;get atimeMs(){return this.#c}#i;get mtimeMs(){return this.#i}#m;get ctimeMs(){return this.#m}#b;get birthtimeMs(){return this.#b}#E;get atime(){return this.#E}#y;get mtime(){return this.#y}#_;get ctime(){return this.#_}#v;get birthtime(){return this.#v}#S;#O;#A;#w;#P;#g;#s;#k;#R;#C;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,r=pr,n,i,s,o,a){this.name=t,this.#S=s?Tu(t):mo(t),this.#s=r&AT,this.nocase=s,this.roots=i,this.root=n||this,this.#k=o,this.#A=a.fullpath,this.#P=a.relative,this.#g=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=uA(a.fs)}depth(){return this.#O!==void 0?this.#O:this.parent?this.#O=this.parent.depth()+1:this.#O=0}childrenCache(){return this.#k}resolve(t){if(!t)return this;let r=this.getRootString(t),i=t.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#W(i):this.#W(i)}#W(t){let r=this;for(let n of t)r=r.child(n);return r}children(){let t=this.#k.get(this);if(t)return t;let r=Object.assign([],{provisional:0});return this.#k.set(this,r),this.#s&=~gh,r}child(t,r){if(t===""||t===".")return this;if(t==="..")return this.parent||this;let n=this.children(),i=this.nocase?Tu(t):mo(t);for(let u of n)if(u.#S===i)return u;let s=this.parent?this.sep:"",o=this.#A?this.#A+s+t:void 0,a=this.newChild(t,pr,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#s|=kr),n.push(a),a}relative(){if(this.isCWD)return"";if(this.#P!==void 0)return this.#P;let t=this.name,r=this.parent;if(!r)return this.#P=this.name;let n=r.relative();return n+(!n||!r.parent?"":this.sep)+t}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#g!==void 0)return this.#g;let t=this.name,r=this.parent;if(!r)return this.#g=this.fullpathPosix();let n=r.relativePosix();return n+(!n||!r.parent?"":"/")+t}fullpath(){if(this.#A!==void 0)return this.#A;let t=this.name,r=this.parent;if(!r)return this.#A=this.name;let i=r.fullpath()+(r.parent?this.sep:"")+t;return this.#A=i}fullpathPosix(){if(this.#w!==void 0)return this.#w;if(this.sep==="/")return this.#w=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#w=`//?/${i}`:this.#w=i}let t=this.parent,r=t.fullpathPosix(),n=r+(!r||!t.parent?"":"/")+this.name;return this.#w=n}isUnknown(){return(this.#s&dr)===pr}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#s&dr)===dA}isDirectory(){return(this.#s&dr)===Ur}isCharacterDevice(){return(this.#s&dr)===fA}isBlockDevice(){return(this.#s&dr)===hA}isFIFO(){return(this.#s&dr)===lA}isSocket(){return(this.#s&dr)===pA}isSymbolicLink(){return(this.#s&bi)===bi}lstatCached(){return this.#s&iA?this:void 0}readlinkCached(){return this.#R}realpathCached(){return this.#C}readdirCached(){let t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#R)return!0;if(!this.parent)return!1;let t=this.#s&dr;return!(t!==pr&&t!==bi||this.#s&ku||this.#s&kr)}calledReaddir(){return!!(this.#s&gh)}isENOENT(){return!!(this.#s&kr)}isNamed(t){return this.nocase?this.#S===Tu(t):this.#S===mo(t)}async readlink(){let t=this.#R;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),n=(await this.parent.realpath())?.resolve(r);if(n)return this.#R=n}catch(r){this.#q(r.code);return}}readlinkSync(){let t=this.#R;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),n=this.parent.realpathSync()?.resolve(r);if(n)return this.#R=n}catch(r){this.#q(r.code);return}}#x(t){this.#s|=gh;for(let r=t.provisional;r<t.length;r++){let n=t[r];n&&n.#M()}}#M(){this.#s&kr||(this.#s=(this.#s|kr)&fo,this.#T())}#T(){let t=this.children();t.provisional=0;for(let r of t)r.#M()}#j(){this.#s|=Iu,this.#I()}#I(){if(this.#s&go)return;let t=this.#s;(t&dr)===Ur&&(t&=fo),this.#s=t|go,this.#T()}#F(t=""){t==="ENOTDIR"||t==="EPERM"?this.#I():t==="ENOENT"?this.#M():this.children().provisional=0}#L(t=""){t==="ENOTDIR"?this.parent.#I():t==="ENOENT"&&this.#M()}#q(t=""){let r=this.#s;r|=ku,t==="ENOENT"&&(r|=kr),(t==="EINVAL"||t==="UNKNOWN")&&(r&=fo),this.#s=r,t==="ENOTDIR"&&this.parent&&this.parent.#I()}#N(t,r){return this.#l(t,r)||this.#G(t,r)}#G(t,r){let n=mh(t),i=this.newChild(t.name,n,{parent:this}),s=i.#s&dr;return s!==Ur&&s!==bi&&s!==pr&&(i.#s|=go),r.unshift(i),r.provisional++,i}#l(t,r){for(let n=r.provisional;n<r.length;n++){let i=r[n];if((this.nocase?Tu(t.name):mo(t.name))===i.#S)return this.#U(t,i,n,r)}}#U(t,r,n,i){let s=r.name;return r.#s=r.#s&fo|mh(t),s!==t.name&&(r.name=t.name),n!==i.provisional&&(n===i.length-1?i.pop():i.splice(n,1),i.unshift(r)),i.provisional++,r}async lstat(){if(!(this.#s&kr))try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(t){this.#L(t.code)}}lstatSync(){if(!(this.#s&kr))try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(t){this.#L(t.code)}}#$(t){let{atime:r,atimeMs:n,birthtime:i,birthtimeMs:s,blksize:o,blocks:a,ctime:u,ctimeMs:c,dev:f,gid:l,ino:h,mode:d,mtime:p,mtimeMs:y,nlink:m,rdev:O,size:S,uid:k}=t;this.#E=r,this.#c=n,this.#v=i,this.#b=s,this.#u=o,this.#f=a,this.#_=u,this.#m=c,this.#r=f,this.#h=l,this.#a=h,this.#t=d,this.#y=p,this.#i=y,this.#n=m,this.#d=O,this.#p=S,this.#o=k;let P=mh(t);this.#s=this.#s&fo|P|iA,P!==pr&&P!==Ur&&P!==bi&&(this.#s|=go)}#D=[];#B=!1;#z(t){this.#B=!1;let r=this.#D.slice();this.#D.length=0,r.forEach(n=>n(null,t))}readdirCB(t,r=!1){if(!this.canReaddir()){r?t(null,[]):queueMicrotask(()=>t(null,[]));return}let n=this.children();if(this.calledReaddir()){let s=n.slice(0,n.provisional);r?t(null,s):queueMicrotask(()=>t(null,s));return}if(this.#D.push(t),this.#B)return;this.#B=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,o)=>{if(s)this.#F(s.code),n.provisional=0;else{for(let a of o)this.#N(a,n);this.#x(n)}this.#z(n.slice(0,n.provisional))})}#H;async readdir(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();if(this.#H)await this.#H;else{let n=()=>{};this.#H=new Promise(i=>n=i);try{for(let i of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#N(i,t);this.#x(t)}catch(i){this.#F(i.code),t.provisional=0}this.#H=void 0,n()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();try{for(let n of this.#e.readdirSync(r,{withFileTypes:!0}))this.#N(n,t);this.#x(t)}catch(n){this.#F(n.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(this.#s&sA)return!1;let t=dr&this.#s;return t===pr||t===Ur||t===bi}shouldWalk(t,r){return(this.#s&Ur)===Ur&&!(this.#s&sA)&&!t.has(this)&&(!r||r(this))}async realpath(){if(this.#C)return this.#C;if(!((Iu|ku|kr)&this.#s))try{let t=await this.#e.promises.realpath(this.fullpath());return this.#C=this.resolve(t)}catch{this.#j()}}realpathSync(){if(this.#C)return this.#C;if(!((Iu|ku|kr)&this.#s))try{let t=this.#e.realpathSync(this.fullpath());return this.#C=this.resolve(t)}catch{this.#j()}}[gA](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;let r=new Set([]),n=[],i=this;for(;i&&i.parent;)r.add(i),i.#P=n.join(this.sep),i.#g=n.join("/"),i=i.parent,n.push("..");for(i=t;i&&i.parent&&!r.has(i);)i.#P=void 0,i.#g=void 0,i=i.parent}};ke.PathBase=dt;var vo=class e extends dt{sep="\\";splitSep=vT;constructor(t,r=pr,n,i,s,o,a){super(t,r,n,i,s,o,a)}newChild(t,r=pr,n={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}getRootString(t){return Nu.win32.parse(t).root}getRoot(t){if(t=yT(t.toUpperCase()),t===this.root.name)return this.root;for(let[r,n]of Object.entries(this.roots))if(this.sameRoot(t,r))return this.roots[t]=n;return this.roots[t]=new bo(t,this).root}sameRoot(t,r=this.root.name){return t=t.toUpperCase().replace(/\//g,"\\").replace(cA,"$1\\"),t===r}};ke.PathWin32=vo;var Ao=class e extends dt{splitSep="/";sep="/";constructor(t,r=pr,n,i,s,o,a){super(t,r,n,i,s,o,a)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,r=pr,n={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}};ke.PathPosix=Ao;var Eo=class{root;rootPath;roots;cwd;#e;#r;#t;nocase;#n;constructor(t=process.cwd(),r,n,{nocase:i,childrenCacheSize:s=16*1024,fs:o=po}={}){this.#n=uA(o),(t instanceof URL||t.startsWith("file://"))&&(t=(0,pT.fileURLToPath)(t));let a=r.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new yo,this.#r=new yo,this.#t=new $u(s);let u=a.substring(this.rootPath.length).split(n);if(u.length===1&&!u[0]&&u.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#n),this.roots[this.rootPath]=this.root;let c=this.root,f=u.length-1,l=r.sep,h=this.rootPath,d=!1;for(let p of u){let y=f--;c=c.child(p,{relative:new Array(y).fill("..").join(l),relativePosix:new Array(y).fill("..").join("/"),fullpath:h+=(d?"":l)+p}),d=!0}this.cwd=c}depth(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#t}resolve(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let n=this.#e.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpath();return this.#e.set(r,i),i}resolvePosix(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let n=this.#r.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,i),i}relative(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd);let{withFileTypes:n}=r;if(t.canReaddir()){let i=await t.readdir();return n?i:i.map(s=>s.name)}else return[]}readdirSync(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd);let{withFileTypes:n=!0}=r;return t.canReaddir()?n?t.readdirSync():t.readdirSync().map(i=>i.name):[]}async lstat(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t.withFileTypes,t=this.cwd);let n=await t.readlink();return r?n:n?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t.withFileTypes,t=this.cwd);let n=t.readlinkSync();return r?n:n?.fullpath()}async realpath(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t.withFileTypes,t=this.cwd);let n=await t.realpath();return r?n:n?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t.withFileTypes,t=this.cwd);let n=t.realpathSync();return r?n:n?.fullpath()}async walk(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(n?t:t.fullpath());let u=new Set,c=(l,h)=>{u.add(l),l.readdirCB((d,p)=>{if(d)return h(d);let y=p.length;if(!y)return h();let m=()=>{--y===0&&h()};for(let O of p)(!s||s(O))&&a.push(n?O:O.fullpath()),i&&O.isSymbolicLink()?O.realpath().then(S=>S?.isUnknown()?S.lstat():S).then(S=>S?.shouldWalk(u,o)?c(S,m):m()):O.shouldWalk(u,o)?c(O,m):m()},!0)},f=t;return new Promise((l,h)=>{c(f,d=>{if(d)return h(d);l(a)})})}walkSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(n?t:t.fullpath());let u=new Set([t]);for(let c of u){let f=c.readdirSync();for(let l of f){(!s||s(l))&&a.push(n?l:l.fullpath());let h=l;if(l.isSymbolicLink()){if(!(i&&(h=l.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(u,o)&&u.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,r={}){return typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd),this.stream(t,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r;(!s||s(t))&&(yield n?t:t.fullpath());let a=new Set([t]);for(let u of a){let c=u.readdirSync();for(let f of c){(!s||s(f))&&(yield n?f:f.fullpath());let l=f;if(f.isSymbolicLink()){if(!(i&&(l=f.realpathSync())))continue;l.isUnknown()&&l.lstatSync()}l.shouldWalk(a,o)&&a.add(l)}}}stream(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=new nA.Minipass({objectMode:!0});(!s||s(t))&&a.write(n?t:t.fullpath());let u=new Set,c=[t],f=0,l=()=>{let h=!1;for(;!h;){let d=c.shift();if(!d){f===0&&a.end();return}f++,u.add(d);let p=(m,O,S=!1)=>{if(m)return a.emit("error",m);if(i&&!S){let k=[];for(let P of O)P.isSymbolicLink()&&k.push(P.realpath().then(b=>b?.isUnknown()?b.lstat():b));if(k.length){Promise.all(k).then(()=>p(null,O,!0));return}}for(let k of O)k&&(!s||s(k))&&(a.write(n?k:k.fullpath())||(h=!0));f--;for(let k of O){let P=k.realpathCached()||k;P.shouldWalk(u,o)&&c.push(P)}h&&!a.flowing?a.once("drain",l):y||l()},y=!0;d.readdirCB(p,!0),y=!1}};return l(),a}streamSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=new nA.Minipass({objectMode:!0}),u=new Set;(!s||s(t))&&a.write(n?t:t.fullpath());let c=[t],f=0,l=()=>{let h=!1;for(;!h;){let d=c.shift();if(!d){f===0&&a.end();return}f++,u.add(d);let p=d.readdirSync();for(let y of p)(!s||s(y))&&(a.write(n?y:y.fullpath())||(h=!0));f--;for(let y of p){let m=y;if(y.isSymbolicLink()){if(!(i&&(m=y.realpathSync())))continue;m.isUnknown()&&m.lstatSync()}m.shouldWalk(u,o)&&c.push(m)}}h&&!a.flowing&&a.once("drain",l)};return l(),a}chdir(t=this.cwd){let r=this.cwd;this.cwd=typeof t=="string"?this.cwd.resolve(t):t,this.cwd[gA](r)}};ke.PathScurryBase=Eo;var bo=class extends Eo{sep="\\";constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,Nu.win32,"\\",{...r,nocase:n}),this.nocase=n;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(t){return Nu.win32.parse(t).root.toUpperCase()}newRoot(t){return new vo(this.rootPath,Ur,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}};ke.PathScurryWin32=bo;var wo=class extends Eo{sep="/";constructor(t=process.cwd(),r={}){let{nocase:n=!1}=r;super(t,Nu.posix,"/",{...r,nocase:n}),this.nocase=n}parseRootPath(t){return"/"}newRoot(t){return new Ao(this.rootPath,Ur,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}};ke.PathScurryPosix=wo;var Mu=class extends wo{constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,{...r,nocase:n})}};ke.PathScurryDarwin=Mu;ke.Path=process.platform==="win32"?vo:Ao;ke.PathScurry=process.platform==="win32"?bo:process.platform==="darwin"?Mu:wo});var vh=F(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.Pattern=void 0;var ET=un(),bT=e=>e.length>=1,wT=e=>e.length>=1,yh=class e{#e;#r;#t;length;#n;#o;#h;#d;#u;#a;#p=!0;constructor(t,r,n,i){if(!bT(t))throw new TypeError("empty pattern list");if(!wT(r))throw new TypeError("empty glob list");if(r.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,n<0||n>=this.length)throw new TypeError("index out of range");if(this.#e=t,this.#r=r,this.#t=n,this.#n=i,this.#t===0){if(this.isUNC()){let[s,o,a,u,...c]=this.#e,[f,l,h,d,...p]=this.#r;c[0]===""&&(c.shift(),p.shift());let y=[s,o,a,u,""].join("/"),m=[f,l,h,d,""].join("/");this.#e=[y,...c],this.#r=[m,...p],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...u]=this.#r;o[0]===""&&(o.shift(),u.shift());let c=s+"/",f=a+"/";this.#e=[c,...o],this.#r=[f,...u],this.length=this.#e.length}}}pattern(){return this.#e[this.#t]}isString(){return typeof this.#e[this.#t]=="string"}isGlobstar(){return this.#e[this.#t]===ET.GLOBSTAR}isRegExp(){return this.#e[this.#t]instanceof RegExp}globString(){return this.#h=this.#h||(this.#t===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#t).join("/"))}hasMore(){return this.length>this.#t+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new e(this.#e,this.#r,this.#t+1,this.#n),this.#o.#a=this.#a,this.#o.#u=this.#u,this.#o.#d=this.#d,this.#o):this.#o=null}isUNC(){let t=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#n==="win32"&&this.#t===0&&t[0]===""&&t[1]===""&&typeof t[2]=="string"&&!!t[2]&&typeof t[3]=="string"&&!!t[3]}isDrive(){let t=this.#e;return this.#d!==void 0?this.#d:this.#d=this.#n==="win32"&&this.#t===0&&this.length>1&&typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0])}isAbsolute(){let t=this.#e;return this.#a!==void 0?this.#a:this.#a=t[0]===""&&t.length>1||this.isDrive()||this.isUNC()}root(){let t=this.#e[0];return typeof t=="string"&&this.isAbsolute()&&this.#t===0?t:""}checkFollowGlobstar(){return!(this.#t===0||!this.isGlobstar()||!this.#p)}markFollowGlobstar(){return this.#t===0||!this.isGlobstar()||!this.#p?!1:(this.#p=!1,!0)}};Bu.Pattern=yh});var Eh=F(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.Ignore=void 0;var yA=un(),ST=vh(),CT=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Ah=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:r,nocase:n,noext:i,noglobstar:s,platform:o=CT}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:n,noext:i,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of t)this.add(a)}add(t){let r=new yA.Minimatch(t,this.mmopts);for(let n=0;n<r.set.length;n++){let i=r.set[n],s=r.globParts[n];if(!i||!s)throw new Error("invalid pattern object");for(;i[0]==="."&&s[0]===".";)i.shift(),s.shift();let o=new ST.Pattern(i,s,0,this.platform),a=new yA.Minimatch(o.globString(),this.mmopts),u=s[s.length-1]==="**",c=o.isAbsolute();c?this.absolute.push(a):this.relative.push(a),u&&(c?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(t){let r=t.fullpath(),n=`${r}/`,i=t.relative()||".",s=`${i}/`;for(let o of this.relative)if(o.match(i)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(n))return!0;return!1}childrenIgnored(t){let r=t.fullpath()+"/",n=(t.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(n))return!0;for(let i of this.absoluteChildren)if(i.match(r))return!0;return!1}};Wu.Ignore=Ah});var AA=F(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Processor=Hr.SubWalks=Hr.MatchRecord=Hr.HasWalkedCache=void 0;var vA=un(),qu=class e{store;constructor(t=new Map){this.store=t}copy(){return new e(new Map(this.store))}hasWalked(t,r){return this.store.get(t.fullpath())?.has(r.globString())}storeWalked(t,r){let n=t.fullpath(),i=this.store.get(n);i?i.add(r.globString()):this.store.set(n,new Set([r.globString()]))}};Hr.HasWalkedCache=qu;var Gu=class{store=new Map;add(t,r,n){let i=(r?2:0)|(n?1:0),s=this.store.get(t);this.store.set(t,s===void 0?i:i&s)}entries(){return[...this.store.entries()].map(([t,r])=>[t,!!(r&2),!!(r&1)])}};Hr.MatchRecord=Gu;var Uu=class{store=new Map;add(t,r){if(!t.canReaddir())return;let n=this.store.get(t);n?n.find(i=>i.globString()===r.globString())||n.push(r):this.store.set(t,[r])}get(t){let r=this.store.get(t);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(t=>[t,this.store.get(t)])}keys(){return[...this.store.keys()].filter(t=>t.canReaddir())}};Hr.SubWalks=Uu;var bh=class e{hasWalkedCache;matches=new Gu;subwalks=new Uu;patterns;follow;dot;opts;constructor(t,r){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=r?r.copy():new qu}processPatterns(t,r){this.patterns=r;let n=r.map(i=>[t,i]);for(let[i,s]of n){this.hasWalkedCache.storeWalked(i,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){i=i.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let l=s.rest();if(l)s=l;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let u,c,f=!1;for(;typeof(u=s.pattern())=="string"&&(c=s.rest());)i=i.resolve(u),s=c,f=!0;if(u=s.pattern(),c=s.rest(),f){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof u=="string"){let l=u===".."||u===""||u===".";this.matches.add(i.resolve(u),a,l);continue}else if(u===vA.GLOBSTAR){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let l=c?.pattern(),h=c?.rest();if(!c||(l===""||l===".")&&!h)this.matches.add(i,a,l===""||l===".");else if(l===".."){let d=i.parent||i;h?this.hasWalkedCache.hasWalked(d,h)||this.subwalks.add(d,h):this.matches.add(d,a,!0)}}else u instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new e(this.opts,this.hasWalkedCache)}filterEntries(t,r){let n=this.subwalks.get(t),i=this.child();for(let s of r)for(let o of n){let a=o.isAbsolute(),u=o.pattern(),c=o.rest();u===vA.GLOBSTAR?i.testGlobstar(s,o,c,a):u instanceof RegExp?i.testRegExp(s,u,c,a):i.testString(s,u,c,a)}return i}testGlobstar(t,r,n,i){if((this.dot||!t.name.startsWith("."))&&(r.hasMore()||this.matches.add(t,i,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,r):t.isSymbolicLink()&&(n&&r.checkFollowGlobstar()?this.subwalks.add(t,n):r.markFollowGlobstar()&&this.subwalks.add(t,r)))),n){let s=n.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(t,s,n.rest(),i);else if(s===".."){let o=t.parent||t;this.subwalks.add(o,n)}else s instanceof RegExp&&this.testRegExp(t,s,n.rest(),i)}}testRegExp(t,r,n,i){r.test(t.name)&&(n?this.subwalks.add(t,n):this.matches.add(t,i,!1))}testString(t,r,n,i){t.isNamed(r)&&(n?this.subwalks.add(t,n):this.matches.add(t,i,!1))}};Hr.Processor=bh});var wA=F(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.GlobStream=In.GlobWalker=In.GlobUtil=void 0;var xT=ph(),EA=Eh(),bA=AA(),OT=(e,t)=>typeof e=="string"?new EA.Ignore([e],t):Array.isArray(e)?new EA.Ignore(e,t):e,So=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#t;signal;maxDepth;includeChildMatches;constructor(t,r,n){if(this.patterns=t,this.path=r,this.opts=n,this.#t=!n.posix&&n.platform==="win32"?"\\":"/",this.includeChildMatches=n.includeChildMatches!==!1,(n.ignore||!this.includeChildMatches)&&(this.#r=OT(n.ignore??[],n),!this.includeChildMatches&&typeof this.#r.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=n.maxDepth||1/0,n.signal&&(this.signal=n.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#n(t){return this.seen.has(t)||!!this.#r?.ignored?.(t)}#o(t){return!!this.#r?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let t;for(;!this.paused&&(t=this.#e.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#e.push(t):t())}async matchCheck(t,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=t.realpathCached()||await t.realpath(),!n)return;t=n}let s=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(t,r){return t&&(this.maxDepth===1/0||t.depth()<=this.maxDepth)&&(!r||t.canReaddir())&&(!this.opts.nodir||!t.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!t.isSymbolicLink()||!t.realpathCached()?.isDirectory())&&!this.#n(t)?t:void 0}matchCheckSync(t,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=t.realpathCached()||t.realpathSync(),!n)return;t=n}let s=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(t,r){if(this.#n(t))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${t.relativePosix()}/**`;this.#r.add(s)}let n=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(t);let i=this.opts.mark&&t.isDirectory()?this.#t:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(n){let s=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(s+i)}else{let s=this.opts.posix?t.relativePosix():t.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#t)?"."+this.#t:"";this.matchEmit(s?o+s+i:"."+i)}}async match(t,r,n){let i=await this.matchCheck(t,n);i&&this.matchFinish(i,r)}matchSync(t,r,n){let i=this.matchCheckSync(t,n);i&&this.matchFinish(i,r)}walkCB(t,r,n){this.signal?.aborted&&n(),this.walkCB2(t,r,new bA.Processor(this.opts),n)}walkCB2(t,r,n,i){if(this.#o(t))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(t,r,n,i));return}n.processPatterns(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#n(a)||(s++,this.match(a,u,c).then(()=>o()));for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let u=a.readdirCached();a.calledReaddir()?this.walkCB3(a,u,n,o):a.readdirCB((c,f)=>this.walkCB3(a,f,n,o),!0)}o()}walkCB3(t,r,n,i){n=n.filterEntries(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#n(a)||(s++,this.match(a,u,c).then(()=>o()));for(let[a,u]of n.subwalks.entries())s++,this.walkCB2(a,u,n.child(),o);o()}walkCBSync(t,r,n){this.signal?.aborted&&n(),this.walkCB2Sync(t,r,new bA.Processor(this.opts),n)}walkCB2Sync(t,r,n,i){if(this.#o(t))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(t,r,n,i));return}n.processPatterns(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#n(a)||this.matchSync(a,u,c);for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let u=a.readdirSync();this.walkCB3Sync(a,u,n,o)}o()}walkCB3Sync(t,r,n,i){n=n.filterEntries(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#n(a)||this.matchSync(a,u,c);for(let[a,u]of n.subwalks.entries())s++,this.walkCB2Sync(a,u,n.child(),o);o()}};In.GlobUtil=So;var wh=class extends So{matches=new Set;constructor(t,r,n){super(t,r,n)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((t,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):t(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};In.GlobWalker=wh;var Sh=class extends So{results;constructor(t,r,n){super(t,r,n),this.results=new xT.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){let t=this.path;return t.isUnknown()?t.lstat().then(()=>{this.walkCB(t,this.patterns,()=>this.results.end())}):this.walkCB(t,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};In.GlobStream=Sh});var xh=F(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.Glob=void 0;var PT=un(),_T=require("node:url"),Hu=mA(),RT=vh(),zu=wA(),FT=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Ch=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,_T.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof t=="string"&&(t=[t]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(t=t.map(u=>u.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");t=t.map(u=>u.includes("/")?u:`./**/${u}`)}if(this.pattern=t,this.platform=r.platform||FT,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let u=r.platform==="win32"?Hu.PathScurryWin32:r.platform==="darwin"?Hu.PathScurryDarwin:r.platform?Hu.PathScurryPosix:Hu.PathScurry;this.scurry=new u(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let n=this.platform==="darwin"||this.platform==="win32",i={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:n,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(u=>new PT.Minimatch(u,i)),[o,a]=s.reduce((u,c)=>(u[0].push(...c.set),u[1].push(...c.globParts),u),[[],[]]);this.patterns=o.map((u,c)=>{let f=a[c];if(!f)throw new Error("invalid pattern object");return new RT.Pattern(u,f,0,this.platform)})}async walk(){return[...await new zu.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new zu.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new zu.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new zu.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};Yu.Glob=Ch});var Oh=F(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.hasMagic=void 0;var DT=un(),LT=(e,t={})=>{Array.isArray(e)||(e=[e]);for(let r of e)if(new DT.Minimatch(r,t).hasMagic())return!0;return!1};Vu.hasMagic=LT});var Fh=F(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.glob=_e.sync=_e.iterate=_e.iterateSync=_e.stream=_e.streamSync=_e.Ignore=_e.hasMagic=_e.Glob=_e.unescape=_e.escape=void 0;_e.globStreamSync=Co;_e.globStream=Ph;_e.globSync=_h;_e.globIterateSync=xo;_e.globIterate=Rh;var SA=un(),wi=xh(),kT=Oh(),xA=un();Object.defineProperty(_e,"escape",{enumerable:!0,get:function(){return xA.escape}});Object.defineProperty(_e,"unescape",{enumerable:!0,get:function(){return xA.unescape}});var TT=xh();Object.defineProperty(_e,"Glob",{enumerable:!0,get:function(){return TT.Glob}});var IT=Oh();Object.defineProperty(_e,"hasMagic",{enumerable:!0,get:function(){return IT.hasMagic}});var NT=Eh();Object.defineProperty(_e,"Ignore",{enumerable:!0,get:function(){return NT.Ignore}});function Co(e,t={}){return new wi.Glob(e,t).streamSync()}function Ph(e,t={}){return new wi.Glob(e,t).stream()}function _h(e,t={}){return new wi.Glob(e,t).walkSync()}async function CA(e,t={}){return new wi.Glob(e,t).walk()}function xo(e,t={}){return new wi.Glob(e,t).iterateSync()}function Rh(e,t={}){return new wi.Glob(e,t).iterate()}_e.streamSync=Co;_e.stream=Object.assign(Ph,{sync:Co});_e.iterateSync=xo;_e.iterate=Object.assign(Rh,{sync:xo});_e.sync=Object.assign(_h,{stream:Co,iterate:xo});_e.glob=Object.assign(CA,{glob:CA,globSync:_h,sync:_e.sync,globStream:Ph,stream:_e.stream,globStreamSync:Co,streamSync:_e.streamSync,globIterate:Rh,iterate:_e.iterate,globIterateSync:xo,iterateSync:_e.iterateSync,Glob:wi.Glob,hasMagic:kT.hasMagic,escape:SA.escape,unescape:SA.unescape});_e.glob.glob=_e.glob});var Dh=F((tV,$T)=>{$T.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var OA=F((rV,MT)=>{MT.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var PA=F((nV,jT)=>{jT.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var RA=F((iV,_A)=>{"use strict";var BT=[].concat(Dh()).concat(OA()),WT=PA();_A.exports=function(e){var t=0;function r(){return t<e.length}function n(p){if(p instanceof RegExp){var y=e.slice(t),m=y.match(p);if(m)return t+=m[0].length,m[0]}else if(e.indexOf(p,t)===t)return t+=p.length,p}function i(){n(/[ ]*/)}function s(){for(var p,y=["WITH","AND","OR","(",")",":","+"],m=0;m<y.length&&(p=n(y[m]),!p);m++);if(p==="+"&&t>1&&e[t-2]===" ")throw new Error("Space before `+`");return p&&{type:"OPERATOR",string:p}}function o(){return n(/[A-Za-z0-9-.]+/)}function a(){var p=o();if(!p)throw new Error("Expected idstring at offset "+t);return p}function u(){if(n("DocumentRef-")){var p=a();return{type:"DOCUMENTREF",string:p}}}function c(){if(n("LicenseRef-")){var p=a();return{type:"LICENSEREF",string:p}}}function f(){var p=t,y=o();if(BT.indexOf(y)!==-1)return{type:"LICENSE",string:y};if(WT.indexOf(y)!==-1)return{type:"EXCEPTION",string:y};t=p}function l(){return s()||u()||c()||f()}for(var h=[];r()&&(i(),!!r());){var d=l();if(!d)throw new Error("Unexpected `"+e[t]+"` at offset "+t);h.push(d)}return h}});var DA=F((sV,FA)=>{"use strict";FA.exports=function(e){var t=0;function r(){return t<e.length}function n(){return r()?e[t]:null}function i(){if(!r())throw new Error;t++}function s(y){var m=n();if(m&&m.type==="OPERATOR"&&y===m.string)return i(),m.string}function o(){if(s("WITH")){var y=n();if(y&&y.type==="EXCEPTION")return i(),y.string;throw new Error("Expected exception after `WITH`")}}function a(){var y=t,m="",O=n();if(O.type==="DOCUMENTREF"&&(i(),m+="DocumentRef-"+O.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(O=n(),O.type==="LICENSEREF")return i(),m+="LicenseRef-"+O.string,{license:m};t=y}function u(){var y=n();if(y&&y.type==="LICENSE"){i();var m={license:y.string};s("+")&&(m.plus=!0);var O=o();return O&&(m.exception=O),m}}function c(){var y=s("(");if(y){var m=d();if(!s(")"))throw new Error("Expected `)`");return m}}function f(){return c()||a()||u()}function l(y,m){return function O(){var S=m();if(S){if(!s(y))return S;var k=O();if(!k)throw new Error("Expected expression");return{left:S,conjunction:y.toLowerCase(),right:k}}}}var h=l("AND",f),d=l("OR",h),p=d();if(!p||r())throw new Error("Syntax error");return p}});var Lh=F((oV,LA)=>{"use strict";var qT=RA(),GT=DA();LA.exports=function(e){return GT(qT(e))}});var WA=F((aV,BA)=>{var UT=Lh(),HT=Dh();function Ku(e){try{return UT(e),!0}catch{return!1}}function jA(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var kA=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(jA),zT=0,YT=1,TA=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],kh=HT.map(function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]}).reduce(function(e,t){var r=t[1];return e[r]=e[r]||[],e[r].push(t[0]),e},{}),VT=Object.keys(kh).map(function(t){return[t,kh[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});kh=void 0;var IA=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(VT).sort(jA),KT=0,XT=1,NA=function(e){for(var t=0;t<TA.length;t++){var r=TA[t](e).trim();if(r!==e&&Ku(r))return r}return null},$A=function(e){for(var t=e.toUpperCase(),r=0;r<IA.length;r++){var n=IA[r];if(t.indexOf(n[KT])>-1)return n[XT]}return null},MA=function(e,t){for(var r=0;r<kA.length;r++){var n=kA[r],i=n[zT];if(e.indexOf(i)>-1){var s=e.replace(i,n[YT]),o=t(s);if(o!==null)return o}}return null};BA.exports=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?JT(a):a}var i=typeof e=="string"&&e.trim().length!==0;if(!i)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),Ku(e))return n(e);var s=e.replace(/\+$/,"").trim();if(Ku(s))return n(s);var o=NA(e);return o!==null||(o=MA(e,function(a){return Ku(a)?a:NA(a)}),o!==null)||(o=$A(e),o!==null)||(o=MA(e,$A),o!==null)?n(o):null};function JT(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}});var HA=F((uV,UA)=>{var QT=Lh(),ZT=WA(),qA='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',eI=/^SEE LICEN[CS]E IN (.+)$/;function GA(e,t){return t.slice(0,e.length)===e}function Th(e){if(e.hasOwnProperty("license")){var t=e.license;return GA("LicenseRef",t)||GA("DocumentRef",t)}else return Th(e.left)||Th(e.right)}UA.exports=function(e){var t;try{t=QT(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=eI.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[qA]};if(e.trim().length!==0){var i=ZT(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return Th(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[qA]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var JA=F((cV,XA)=>{var{URL:Ih}=require("node:url"),zA=gu(),tI=HA(),YA={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},VA=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf(".");function rI(e){let t=e.trim().split(`
11
- `),r=0;for(;t[r]?.trim().match(/^(#|$)/);)r++;let n=r+1;for(;n<t.length&&t[n].trim();)n++;return t.slice(r,n).join(" ").trim()}function KA(e){if(typeof e!="string"){let s=e.name||"",o=e.url||e.web,a=o?" ("+o+")":"",u=e.email||e.mail,c=u?" <"+u+">":"";e=s+c+a}let t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),i={};return t?.[0].trim()&&(i.name=t[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function nI(e,t){e.description&&typeof e.description!="string"&&(t?.push("'description' field should be a string"),delete e.description),e.readme&&!e.description&&e.readme!=="ERROR: No README data found!"&&(e.description=rI(e.readme)),e.description===void 0&&delete e.description,e.description||t?.push("No description"),e.modules&&(t?.push("modules field is deprecated"),delete e.modules);let r=e.files;if(r&&!Array.isArray(r)?(t?.push("Invalid 'files' member"),delete e.files):e.files&&(e.files=e.files.filter(function(o){return!o||typeof o!="string"?(t?.push(`Invalid filename in 'files' list: ${o}`),!1):!0})),e.man&&typeof e.man=="string"&&(e.man=[e.man]),!e.bugs&&e.repository?.url){let o=zA.fromUrl(e.repository.url);o&&o.bugs()&&(e.bugs={url:o.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")VA(e.bugs)?e.bugs={email:e.bugs}:Ih.canParse(e.bugs)?e.bugs={url:e.bugs}:t?.push("Bug string field must be url, email, or {email,url}");else{for(let a in e.bugs)["web","name"].includes(a)&&(t?.push(`bugs['${a}'] should probably be bugs['url'].`),e.bugs.url=e.bugs[a],delete e.bugs[a]);let o=e.bugs;e.bugs={},o.url&&(Ih.canParse(o.url)?e.bugs.url=o.url:t?.push("bugs.url field must be a string url. Deleted.")),o.email&&(typeof o.email=="string"&&VA(o.email)?e.bugs.email=o.email:t?.push("bugs.email field must be a string email. Deleted."))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,t?.push("Normalized value of bugs field is an empty object. Deleted."))}typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,t?.push("keywords should be an array of strings")):e.keywords&&(e.keywords=e.keywords.filter(function(o){return typeof o!="string"||!o?(t?.push("keywords should be an array of strings"),!1):!0}));let n="bundledDependencies",i="bundleDependencies";if(e[n]&&!e[i]&&(e[i]=e[n],delete e[n]),e[i]&&!Array.isArray(e[i])?(t?.push("Invalid 'bundleDependencies' list. Must be array of package names"),delete e[i]):e[i]&&(e[i]=e[i].filter(function(o){return!o||typeof o!="string"?(t?.push(`Invalid bundleDependencies member: ${o}`),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,o)||(t?.push(`Non-dependency in bundleDependencies: ${o}`),e.dependencies[o]="*"),!0)})),!e.homepage&&e.repository&&e.repository.url){let o=zA.fromUrl(e.repository.url);o&&(e.homepage=o.docs())}e.homepage&&(typeof e.homepage!="string"?(t?.push("homepage field must be a string url. Deleted."),delete e.homepage):Ih.canParse(e.homepage)||(e.homepage="http://"+e.homepage)),e.readme||(t?.push("No README data"),e.readme="ERROR: No README data found!");let s=e.license||e.licence;s?typeof s!="string"||s.length<1||s.trim()===""?t?.push("license should be a valid SPDX license expression"):tI(s).validForNewPackages||t?.push("license should be a valid SPDX license expression"):t?.push("No license field."),e.author&&(e.author=KA(e.author)),["maintainers","contributors"].forEach(function(o){Array.isArray(e[o])&&(e[o]=e[o].map(KA))});for(let o in YA)Object.prototype.hasOwnProperty.call(e,o)&&t?.push(`${o} should probably be ${YA[o]}.`)}XA.exports={normalizeData:nI}});var ZA=F(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.sync=rs.isexe=void 0;var iI=require("fs"),sI=require("fs/promises"),oI=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return QA(await(0,sI.stat)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};rs.isexe=oI;var aI=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return QA((0,iI.statSync)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};rs.sync=aI;var QA=(e,t)=>e.isFile()&&uI(e,t),uI=(e,t)=>{let r=t.uid??process.getuid?.(),n=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??n[0];if(r===void 0||i===void 0)throw new Error("cannot get uid or gid");let s=new Set([i,...n]),o=e.mode,a=e.uid,u=e.gid,c=parseInt("100",8),f=parseInt("010",8),l=parseInt("001",8),h=c|f;return!!(o&l||o&f&&s.has(u)||o&c&&a===r||o&h&&r===0)}});var tE=F(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.sync=ns.isexe=void 0;var cI=require("fs"),lI=require("fs/promises"),fI=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return eE(await(0,lI.stat)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};ns.isexe=fI;var hI=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return eE((0,cI.statSync)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};ns.sync=hI;var dI=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(n.indexOf("")!==-1)return!0;for(let i=0;i<n.length;i++){let s=n[i].toLowerCase(),o=e.substring(e.length-s.length).toLowerCase();if(s&&o===s)return!0}return!1},eE=(e,t,r)=>e.isFile()&&dI(t,r)});var nE=F(rE=>{"use strict";Object.defineProperty(rE,"__esModule",{value:!0})});var cE=F(nt=>{"use strict";var iE=nt&&nt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),pI=nt&&nt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),sE=nt&&nt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&iE(t,e,r);return pI(t,e),t},gI=nt&&nt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&iE(t,e,r)};Object.defineProperty(nt,"__esModule",{value:!0});nt.sync=nt.isexe=nt.posix=nt.win32=void 0;var oE=sE(ZA());nt.posix=oE;var aE=sE(tE());nt.win32=aE;gI(nE(),nt);var mI=process.env._ISEXE_TEST_PLATFORM_||process.platform,uE=mI==="win32"?aE:oE;nt.isexe=uE.isexe;nt.sync=uE.sync});var Nh=F((pV,vE)=>{var{isexe:yI,sync:vI}=cE(),{join:AI,delimiter:EI,sep:lE,posix:fE}=require("path"),hE=process.platform==="win32",dE=new RegExp(`[${fE.sep}${lE===fE.sep?"":lE}]`.replace(/(\\)/g,"\\$1")),bI=new RegExp(`^\\.${dE.source}`),pE=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),gE=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=EI})=>{let i=e.match(dE)?[""]:[...hE?[process.cwd()]:[],...(t||"").split(n)];if(hE){let s=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=s.split(n).flatMap(a=>[a,a.toLowerCase()]);return e.includes(".")&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:s}}return{pathEnv:i,pathExt:[""]}},mE=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&bI.test(t)?t.slice(0,2):"")+AI(r,t)},yE=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=gE(e,t),s=[];for(let o of r){let a=mE(o,e);for(let u of n){let c=a+u;if(await yI(c,{pathExt:i,ignoreErrors:!0})){if(!t.all)return c;s.push(c)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw pE(e)},wI=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=gE(e,t),s=[];for(let o of r){let a=mE(o,e);for(let u of n){let c=a+u;if(vI(c,{pathExt:i,ignoreErrors:!0})){if(!t.all)return c;s.push(c)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw pE(e)};vE.exports=yE;yE.sync=wI});var EE=F((gV,AE)=>{"use strict";var SI=(e,t)=>{if(!e.length)return'""';let r;if(!/[ \t\n\v"]/.test(e))r=e;else{r='"';for(let n=0;n<=e.length;++n){let i=0;for(;e[n]==="\\";)++n,++i;if(n===e.length){r+="\\".repeat(i*2);break}e[n]==='"'?(r+="\\".repeat(i*2+1),r+=e[n]):(r+="\\".repeat(i),r+=e[n])}r+='"'}return r=r.replace(/[ !%^&()<>|"]/g,"^$&"),t&&(r=r.replace(/[ !%^&()<>|"]/g,"^$&")),r},CI=e=>e.length?/[\t\n\r "#$&'()*;<>?\\`|~]/.test(e)?`'${e.replace(/'/g,"'\\''")}'`.replace(/^(?:'')+(?!$)/,"").replace(/\\'''/g,"\\'"):e:"''";AE.exports={cmd:SI,sh:CI}});var xE=F((mV,CE)=>{"use strict";var{spawn:xI}=require("child_process"),OI=require("os"),PI=Nh(),bE=EE(),Mh=(e,t,r={},n={})=>{if(r.shell)return SE(e,t,r,n);let i,s,o=new Promise((d,p)=>{i=d,s=p}),a=new Error("command failed"),u=[],c=[],f=d=>({cmd:e,args:t,...d,...RI(u,c,r),...n}),l=(d,p)=>{let y=f(p);s(Object.assign(d,y))},h=xI(e,t,r);return o.stdin=h.stdin,o.process=h,h.on("error",l),h.stdout&&(h.stdout.on("data",d=>u.push(d)),h.stdout.on("error",l)),h.stderr&&(h.stderr.on("data",d=>c.push(d)),h.stderr.on("error",l)),h.on("close",(d,p)=>{d||p?l(a,{code:d,signal:p}):i(f({code:d,signal:p}))}),o},SE=(e,t,r,n)=>{let i=r.shell;i===!0&&(i=process.platform==="win32"?process.env.ComSpec||"cmd.exe":"sh");let s={...r,shell:!1},o=[],a=e;if(/(?:^|\\)cmd(?:\.exe)?$/i.test(i)){let c=!1,f="",l=!1;for(let d=0;d<e.length;++d){let p=e.charAt(d);if(p===" "&&!l)break;f+=p,(p==='"'||p==="'")&&(l=!l)}let h;try{h=PI.sync(f,{path:s.env&&wE(s.env,"PATH")||process.env.PATH,pathext:s.env&&wE(s.env,"PATHEXT")||process.env.PATHEXT}).toLowerCase()}catch{h=f.toLowerCase()}c=h.endsWith(".cmd")||h.endsWith(".bat");for(let d of t)a+=` ${bE.cmd(d,c)}`;o.push("/d","/s","/c",a),s.windowsVerbatimArguments=!0}else{for(let c of t)a+=` ${bE.sh(c)}`;o.push("-c",a)}return Mh(i,o,s,n)},_I=(e,t={},r={})=>{let n={...t,shell:!0},i=[].concat(e),s=process.platform;if(s==="linux"&&OI.release().toLowerCase().includes("microsoft")&&(s="wsl",!process.env.BROWSER))return Promise.reject(new Error("Set the BROWSER environment variable to your desired browser."));let o=n.command;return o||(s==="win32"?(n.shell=process.env.ComSpec,o='start ""'):s==="wsl"?o="sensible-browser":s==="darwin"?o="open":o="xdg-open"),SE(o,i,n,r)};Mh.open=_I;var $h=(e="pipe",t)=>e==="pipe"||e===null?!0:Array.isArray(e)?$h(e[t],t):!1,RI=(e,t,{stdioString:r=!0,stdio:n})=>{let i={stdout:null,stderr:null};return $h(n,1)&&(i.stdout=Buffer.concat(e),r&&(i.stdout=i.stdout.toString().trim())),$h(n,2)&&(i.stderr=Buffer.concat(t),r&&(i.stderr=i.stderr.toString().trim())),i},wE=(e,t)=>{t=t.toLowerCase();for(let r of Object.keys(e).sort())if(r.toLowerCase()===t)return e[r]};CE.exports=Mh});var _E=F((yV,PE)=>{"use strict";function OE(e,t){for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!0,configurable:!0});return e}function FI(e,t,r){if(!e||typeof e=="string")throw new TypeError("Please pass an Error to err-code");r||(r={}),typeof t=="object"&&(r=t,t=void 0),t!=null&&(r.code=t);try{return OE(e,r)}catch{r.message=e.message,r.stack=e.stack;let i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(e)),OE(new i,r)}}PE.exports=FI});var FE=F((vV,RE)=>{function gr(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}RE.exports=gr;gr.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};gr.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};gr.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();else return!1;var n=this,i=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r);return this._options.unref&&i.unref(),!0};gr.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};gr.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};gr.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};gr.prototype.start=gr.prototype.try;gr.prototype.errors=function(){return this._errors};gr.prototype.attempts=function(){return this._attempts};gr.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(e[s]||0)+1;e[s]=o,o>=r&&(t=i,r=o)}return t}});var DE=F(Si=>{var DI=FE();Si.operation=function(e){var t=Si.timeouts(e);return new DI(t,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};Si.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,o){return s-o}),n};Si.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*t.minTimeout*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};Si.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=e[s];e[s]=function(u){var c=Si.operation(t),f=Array.prototype.slice.call(arguments,1),l=f.pop();f.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),l.apply(this,arguments))}),c.attempt(function(){u.apply(e,f)})}.bind(e,o),e[s].options=t}}});var kE=F((EV,LE)=>{LE.exports=DE()});var NE=F((bV,IE)=>{"use strict";var LI=_E(),kI=kE(),TI=Object.prototype.hasOwnProperty;function TE(e){return e&&e.code==="EPROMISERETRY"&&TI.call(e,"retried")}function II(e,t){var r,n;return typeof e=="object"&&typeof t=="function"&&(r=t,t=e,e=r),n=kI.operation(t),new Promise(function(i,s){n.attempt(function(o){Promise.resolve().then(function(){return e(function(a){throw TE(a)&&(a=a.retried),LI(new Error("Retrying"),"EPROMISERETRY",{retried:a})},o)}).then(i,function(a){TE(a)&&(a=a.retried,n.retry(a||new Error))||s(a)})})})}IE.exports=II});var qh=F((wV,$E)=>{var Oo=class extends Error{shouldRetry(){return!1}},jh=class extends Oo{constructor(){super("A git connection error occurred")}shouldRetry(t){return t<3}},Bh=class extends Oo{constructor(){super("The git reference could not be found")}},Wh=class extends Oo{constructor(){super("An unknown git error occurred")}};$E.exports={GitConnectionError:jh,GitPathspecError:Bh,GitUnknownError:Wh}});var jE=F((SV,ME)=>{var{GitConnectionError:NI,GitPathspecError:$I,GitUnknownError:MI}=qh(),jI=new RegExp(["remote error: Internal Server Error","The remote end hung up unexpectedly","Connection timed out","Operation timed out","Failed to connect to .* Timed out","Connection reset by peer","SSL_ERROR_SYSCALL","The requested URL returned error: 503"].join("|")),BI=/pathspec .* did not match any file\(s\) known to git/;function WI(e){let t=e.stderr,r;return jI.test(t)?r=new NI(t):BI.test(t)?r=new $I(t):r=new MI(t),Object.assign(r,e)}ME.exports=WI});var GE=F((CV,Gh)=>{var BE=require("node:fs"),qI=require("node:os"),GI=require("node:path"),UI=Cf(),WE=GI.join(qI.homedir(),".gitconfig"),Po=null,qE=()=>{if(Po===null)try{if(Po={},BE.existsSync(WE)){let e=BE.readFileSync(WE,"utf-8");Po=UI.parse(e)}}catch{Po={}}return Po},HI=()=>{let e=qE();return{sshCommandSetInConfig:e?.core?.sshCommand!==void 0,askPassSetInConfig:e?.core?.askpass!==void 0}},zI=process.env.GIT_SSH_COMMAND!==void 0,YI=process.env.GIT_ASKPASS!==void 0,{sshCommandSetInConfig:VI,askPassSetInConfig:KI}=HI(),XI={...YI||KI?{}:{GIT_ASKPASS:"echo"},...zI||VI?{}:{GIT_SSH_COMMAND:"ssh -oStrictHostKeyChecking=accept-new"}};Gh.exports=(e={})=>({stdioString:!0,...e,shell:!1,env:e.env||{...XI,...process.env}});Gh.exports.loadGitConfig=qE});var HE=F((xV,UE)=>{var JI=Nh(),Uh;try{Uh=JI.sync("git")}catch{}UE.exports=(e={})=>e.git?e.git:!Uh||e.git===!1?Object.assign(new Error("No git binary found in $PATH"),{code:"ENOGIT"}):Uh});var _o=F((OV,zE)=>{var QI=xE(),ZI=NE(),{log:eN}=tu(),tN=jE(),rN=GE();zE.exports=(e,t={})=>{let n=HE()(t);if(n instanceof Error)return Promise.reject(n);let i=t.allowReplace||e[0]==="--no-replace-objects"?e:["--no-replace-objects",...e],s=t.retry;return s==null&&(s={retries:t.fetchRetries||2,factor:t.fetchRetryFactor||10,maxTimeout:t.fetchRetryMaxtimeout||6e4,minTimeout:t.fetchRetryMintimeout||1e3}),ZI((o,a)=>(a!==1&&eN.silly("git",`Retrying git command: ${i.join(" ")} attempt # ${a}`),QI(n,i,rN(t)).catch(u=>{let c=tN(u);if(!c.shouldRetry(a))throw c;o(c)})),s)}});var KE=F((PV,VE)=>{"use strict";var YE=gt(),nN=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new YE(e instanceof YE?e.version:e,r).inc(t,n,i).version}catch{return null}};VE.exports=nN});var QE=F((_V,JE)=>{"use strict";var XE=yi(),iN=(e,t)=>{let r=XE(e,null,!0),n=XE(t,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,o=s?r:n,a=s?n:r,u=!!o.prerelease.length;if(!!a.prerelease.length&&!u){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let f=u?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};JE.exports=iN});var eb=F((RV,ZE)=>{"use strict";var sN=gt(),oN=(e,t)=>new sN(e,t).major;ZE.exports=oN});var rb=F((FV,tb)=>{"use strict";var aN=gt(),uN=(e,t)=>new aN(e,t).minor;tb.exports=uN});var ib=F((DV,nb)=>{"use strict";var cN=gt(),lN=(e,t)=>new cN(e,t).patch;nb.exports=lN});var ob=F((LV,sb)=>{"use strict";var fN=yi(),hN=(e,t)=>{let r=fN(e,t);return r&&r.prerelease.length?r.prerelease:null};sb.exports=hN});var mr=F((kV,ub)=>{"use strict";var ab=gt(),dN=(e,t,r)=>new ab(e,r).compare(new ab(t,r));ub.exports=dN});var lb=F((TV,cb)=>{"use strict";var pN=mr(),gN=(e,t,r)=>pN(t,e,r);cb.exports=gN});var hb=F((IV,fb)=>{"use strict";var mN=mr(),yN=(e,t)=>mN(e,t,!0);fb.exports=yN});var Xu=F((NV,pb)=>{"use strict";var db=gt(),vN=(e,t,r)=>{let n=new db(e,r),i=new db(t,r);return n.compare(i)||n.compareBuild(i)};pb.exports=vN});var mb=F(($V,gb)=>{"use strict";var AN=Xu(),EN=(e,t)=>e.sort((r,n)=>AN(r,n,t));gb.exports=EN});var vb=F((MV,yb)=>{"use strict";var bN=Xu(),wN=(e,t)=>e.sort((r,n)=>bN(n,r,t));yb.exports=wN});var Ro=F((jV,Ab)=>{"use strict";var SN=mr(),CN=(e,t,r)=>SN(e,t,r)>0;Ab.exports=CN});var Ju=F((BV,Eb)=>{"use strict";var xN=mr(),ON=(e,t,r)=>xN(e,t,r)<0;Eb.exports=ON});var Hh=F((WV,bb)=>{"use strict";var PN=mr(),_N=(e,t,r)=>PN(e,t,r)===0;bb.exports=_N});var zh=F((qV,wb)=>{"use strict";var RN=mr(),FN=(e,t,r)=>RN(e,t,r)!==0;wb.exports=FN});var Qu=F((GV,Sb)=>{"use strict";var DN=mr(),LN=(e,t,r)=>DN(e,t,r)>=0;Sb.exports=LN});var Zu=F((UV,Cb)=>{"use strict";var kN=mr(),TN=(e,t,r)=>kN(e,t,r)<=0;Cb.exports=TN});var Yh=F((HV,xb)=>{"use strict";var IN=Hh(),NN=zh(),$N=Ro(),MN=Qu(),jN=Ju(),BN=Zu(),WN=(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 IN(e,r,n);case"!=":return NN(e,r,n);case">":return $N(e,r,n);case">=":return MN(e,r,n);case"<":return jN(e,r,n);case"<=":return BN(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};xb.exports=WN});var Pb=F((zV,Ob)=>{"use strict";var qN=gt(),GN=yi(),{safeRe:ec,t:tc}=Ji(),UN=(e,t)=>{if(e instanceof qN)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?ec[tc.COERCEFULL]:ec[tc.COERCE]);else{let u=t.includePrerelease?ec[tc.COERCERTLFULL]:ec[tc.COERCERTL],c;for(;(c=u.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||c.index+c[0].length!==r.index+r[0].length)&&(r=c),u.lastIndex=c.index+c[1].length+c[2].length;u.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return GN(`${n}.${i}.${s}${o}${a}`,t)};Ob.exports=UN});var Rb=F((YV,_b)=>{"use strict";var Vh=class{constructor(){this.max=1e3,this.map=new Map}get(t){let 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){let i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}};_b.exports=Vh});var yr=F((VV,kb)=>{"use strict";var HN=/\s+/g,Kh=class e{constructor(t,r){if(r=YN(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof Xh)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(HN," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!Db(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&e2(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&QN)|(this.options.loose&&ZN))+":"+t,i=Fb.get(n);if(i)return i;let s=this.options.loose,o=s?Tt[yt.HYPHENRANGELOOSE]:Tt[yt.HYPHENRANGE];t=t.replace(o,l2(this.options.includePrerelease)),Ge("hyphen replace",t),t=t.replace(Tt[yt.COMPARATORTRIM],KN),Ge("comparator trim",t),t=t.replace(Tt[yt.TILDETRIM],XN),Ge("tilde trim",t),t=t.replace(Tt[yt.CARETTRIM],JN),Ge("caret trim",t);let a=t.split(" ").map(l=>t2(l,this.options)).join(" ").split(/\s+/).map(l=>c2(l,this.options));s&&(a=a.filter(l=>(Ge("loose invalid filter",l,this.options),!!l.match(Tt[yt.COMPARATORLOOSE])))),Ge("range list",a);let u=new Map,c=a.map(l=>new Xh(l,this.options));for(let l of c){if(Db(l))return[l];u.set(l.value,l)}u.size>1&&u.has("")&&u.delete("");let f=[...u.values()];return Fb.set(n,f),f}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>Lb(n,r)&&t.set.some(i=>Lb(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new VN(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(f2(this.set[r],t,this.options))return!0;return!1}};kb.exports=Kh;var zN=Rb(),Fb=new zN,YN=ru(),Xh=Fo(),Ge=no(),VN=gt(),{safeRe:Tt,t:yt,comparatorTrimReplace:KN,tildeTrimReplace:XN,caretTrimReplace:JN}=Ji(),{FLAG_INCLUDE_PRERELEASE:QN,FLAG_LOOSE:ZN}=io(),Db=e=>e.value==="<0.0.0-0",e2=e=>e.value==="",Lb=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},t2=(e,t)=>(e=e.replace(Tt[yt.BUILD],""),Ge("comp",e,t),e=i2(e,t),Ge("caret",e),e=r2(e,t),Ge("tildes",e),e=o2(e,t),Ge("xrange",e),e=u2(e,t),Ge("stars",e),e),It=e=>!e||e.toLowerCase()==="x"||e==="*",r2=(e,t)=>e.trim().split(/\s+/).map(r=>n2(r,t)).join(" "),n2=(e,t)=>{let r=t.loose?Tt[yt.TILDELOOSE]:Tt[yt.TILDE];return e.replace(r,(n,i,s,o,a)=>{Ge("tilde",e,n,i,s,o,a);let u;return It(i)?u="":It(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:It(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(Ge("replaceTilde pr",a),u=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,Ge("tilde return",u),u})},i2=(e,t)=>e.trim().split(/\s+/).map(r=>s2(r,t)).join(" "),s2=(e,t)=>{Ge("caret",e,t);let r=t.loose?Tt[yt.CARETLOOSE]:Tt[yt.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,a,u)=>{Ge("caret",e,i,s,o,a,u);let c;return It(s)?c="":It(o)?c=`>=${s}.0.0${n} <${+s+1}.0.0-0`:It(a)?s==="0"?c=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?(Ge("replaceCaret pr",u),s==="0"?o==="0"?c=`>=${s}.${o}.${a}-${u} <${s}.${o}.${+a+1}-0`:c=`>=${s}.${o}.${a}-${u} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${a}-${u} <${+s+1}.0.0-0`):(Ge("no pr"),s==="0"?o==="0"?c=`>=${s}.${o}.${a}${n} <${s}.${o}.${+a+1}-0`:c=`>=${s}.${o}.${a}${n} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),Ge("caret return",c),c})},o2=(e,t)=>(Ge("replaceXRanges",e,t),e.split(/\s+/).map(r=>a2(r,t)).join(" ")),a2=(e,t)=>{e=e.trim();let r=t.loose?Tt[yt.XRANGELOOSE]:Tt[yt.XRANGE];return e.replace(r,(n,i,s,o,a,u)=>{Ge("xRange",e,n,i,s,o,a,u);let c=It(s),f=c||It(o),l=f||It(a),h=l;return i==="="&&h&&(i=""),u=t.includePrerelease?"-0":"",c?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(f&&(o=0),a=0,i===">"?(i=">=",f?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",f?s=+s+1:o=+o+1),i==="<"&&(u="-0"),n=`${i+s}.${o}.${a}${u}`):f?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:l&&(n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),Ge("xRange return",n),n})},u2=(e,t)=>(Ge("replaceStars",e,t),e.trim().replace(Tt[yt.STAR],"")),c2=(e,t)=>(Ge("replaceGTE0",e,t),e.trim().replace(Tt[t.includePrerelease?yt.GTE0PRE:yt.GTE0],"")),l2=e=>(t,r,n,i,s,o,a,u,c,f,l,h)=>(It(n)?r="":It(i)?r=`>=${n}.0.0${e?"-0":""}`:It(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,It(c)?u="":It(f)?u=`<${+c+1}.0.0-0`:It(l)?u=`<${c}.${+f+1}.0-0`:h?u=`<=${c}.${f}.${l}-${h}`:e?u=`<${c}.${f}.${+l+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),f2=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(Ge(e[n].semver),e[n].semver!==Xh.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}});var Fo=F((KV,jb)=>{"use strict";var Do=Symbol("SemVer ANY"),Zh=class e{static get ANY(){return Do}constructor(t,r){if(r=Tb(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),Qh("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Do?this.value="":this.value=this.operator+this.semver.version,Qh("comp",this)}parse(t){let r=this.options.loose?Ib[Nb.COMPARATORLOOSE]:Ib[Nb.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new $b(n[2],this.options.loose):this.semver=Do}toString(){return this.value}test(t){if(Qh("Comparator.test",t,this.options.loose),this.semver===Do||t===Do)return!0;if(typeof t=="string")try{t=new $b(t,this.options)}catch{return!1}return Jh(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Mb(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new Mb(this.value,r).test(t.semver):(r=Tb(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||Jh(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||Jh(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};jb.exports=Zh;var Tb=ru(),{safeRe:Ib,t:Nb}=Ji(),Jh=Yh(),Qh=no(),$b=gt(),Mb=yr()});var is=F((XV,Bb)=>{"use strict";var h2=yr(),d2=(e,t,r)=>{try{t=new h2(t,r)}catch{return!1}return t.test(e)};Bb.exports=d2});var qb=F((JV,Wb)=>{"use strict";var p2=yr(),g2=(e,t)=>new p2(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));Wb.exports=g2});var Ub=F((QV,Gb)=>{"use strict";var m2=gt(),y2=yr(),v2=(e,t,r)=>{let n=null,i=null,s=null;try{s=new y2(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new m2(n,r))}),n};Gb.exports=v2});var zb=F((ZV,Hb)=>{"use strict";var A2=gt(),E2=yr(),b2=(e,t,r)=>{let n=null,i=null,s=null;try{s=new E2(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new A2(n,r))}),n};Hb.exports=b2});var Kb=F((eK,Vb)=>{"use strict";var ed=gt(),w2=yr(),Yb=Ro(),S2=(e,t)=>{e=new w2(e,t);let r=new ed("0.0.0");if(e.test(r)||(r=new ed("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],s=null;i.forEach(o=>{let a=new ed(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||Yb(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||Yb(r,s))&&(r=s)}return r&&e.test(r)?r:null};Vb.exports=S2});var td=F((tK,Xb)=>{"use strict";var C2=yr(),x2=(e,t)=>{try{return new C2(e,t).range||"*"}catch{return null}};Xb.exports=x2});var rc=F((rK,ew)=>{"use strict";var O2=gt(),Zb=Fo(),{ANY:P2}=Zb,_2=yr(),R2=is(),Jb=Ro(),Qb=Ju(),F2=Zu(),D2=Qu(),L2=(e,t,r,n)=>{e=new O2(e,n),t=new _2(t,n);let i,s,o,a,u;switch(r){case">":i=Jb,s=F2,o=Qb,a=">",u=">=";break;case"<":i=Qb,s=D2,o=Jb,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(R2(e,t,n))return!1;for(let c=0;c<t.set.length;++c){let f=t.set[c],l=null,h=null;if(f.forEach(d=>{d.semver===P2&&(d=new Zb(">=0.0.0")),l=l||d,h=h||d,i(d.semver,l.semver,n)?l=d:o(d.semver,h.semver,n)&&(h=d)}),l.operator===a||l.operator===u||(!h.operator||h.operator===a)&&s(e,h.semver))return!1;if(h.operator===u&&o(e,h.semver))return!1}return!0};ew.exports=L2});var rw=F((nK,tw)=>{"use strict";var k2=rc(),T2=(e,t,r)=>k2(e,t,">",r);tw.exports=T2});var iw=F((iK,nw)=>{"use strict";var I2=rc(),N2=(e,t,r)=>I2(e,t,"<",r);nw.exports=N2});var aw=F((sK,ow)=>{"use strict";var sw=yr(),$2=(e,t,r)=>(e=new sw(e,r),t=new sw(t,r),e.intersects(t,r));ow.exports=$2});var cw=F((oK,uw)=>{"use strict";var M2=is(),j2=mr();uw.exports=(e,t,r)=>{let n=[],i=null,s=null,o=e.sort((f,l)=>j2(f,l,r));for(let f of o)M2(f,t,r)?(s=f,i||(i=f)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let a=[];for(let[f,l]of n)f===l?a.push(f):!l&&f===o[0]?a.push("*"):l?f===o[0]?a.push(`<=${l}`):a.push(`${f} - ${l}`):a.push(`>=${f}`);let u=a.join(" || "),c=typeof t.raw=="string"?t.raw:String(t);return u.length<c.length?u:t}});var gw=F((aK,pw)=>{"use strict";var lw=yr(),nd=Fo(),{ANY:rd}=nd,Lo=is(),id=mr(),B2=(e,t,r={})=>{if(e===t)return!0;e=new lw(e,r),t=new lw(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let o=q2(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},W2=[new nd(">=0.0.0-0")],fw=[new nd(">=0.0.0")],q2=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===rd){if(t.length===1&&t[0].semver===rd)return!0;r.includePrerelease?e=W2:e=fw}if(t.length===1&&t[0].semver===rd){if(r.includePrerelease)return!0;t=fw}let n=new Set,i,s;for(let d of e)d.operator===">"||d.operator===">="?i=hw(i,d,r):d.operator==="<"||d.operator==="<="?s=dw(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=id(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let d of n){if(i&&!Lo(d,String(i),r)||s&&!Lo(d,String(s),r))return null;for(let p of t)if(!Lo(d,String(p),r))return!1;return!0}let a,u,c,f,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(let d of t){if(f=f||d.operator===">"||d.operator===">=",c=c||d.operator==="<"||d.operator==="<=",i){if(h&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===h.major&&d.semver.minor===h.minor&&d.semver.patch===h.patch&&(h=!1),d.operator===">"||d.operator===">="){if(a=hw(i,d,r),a===d&&a!==i)return!1}else if(i.operator===">="&&!Lo(i.semver,String(d),r))return!1}if(s){if(l&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===l.major&&d.semver.minor===l.minor&&d.semver.patch===l.patch&&(l=!1),d.operator==="<"||d.operator==="<="){if(u=dw(s,d,r),u===d&&u!==s)return!1}else if(s.operator==="<="&&!Lo(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&c&&!s&&o!==0||s&&f&&!i&&o!==0||h||l)},hw=(e,t,r)=>{if(!e)return t;let n=id(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},dw=(e,t,r)=>{if(!e)return t;let n=id(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};pw.exports=B2});var ko=F((uK,vw)=>{"use strict";var sd=Ji(),mw=io(),G2=gt(),yw=Tf(),U2=yi(),H2=au(),z2=Yf(),Y2=KE(),V2=QE(),K2=eb(),X2=rb(),J2=ib(),Q2=ob(),Z2=mr(),e$=lb(),t$=hb(),r$=Xu(),n$=mb(),i$=vb(),s$=Ro(),o$=Ju(),a$=Hh(),u$=zh(),c$=Qu(),l$=Zu(),f$=Yh(),h$=Pb(),d$=Fo(),p$=yr(),g$=is(),m$=qb(),y$=Ub(),v$=zb(),A$=Kb(),E$=td(),b$=rc(),w$=rw(),S$=iw(),C$=aw(),x$=cw(),O$=gw();vw.exports={parse:U2,valid:H2,clean:z2,inc:Y2,diff:V2,major:K2,minor:X2,patch:J2,prerelease:Q2,compare:Z2,rcompare:e$,compareLoose:t$,compareBuild:r$,sort:n$,rsort:i$,gt:s$,lt:o$,eq:a$,neq:u$,gte:c$,lte:l$,cmp:f$,coerce:h$,Comparator:d$,Range:p$,satisfies:g$,toComparators:m$,maxSatisfying:y$,minSatisfying:v$,minVersion:A$,validRange:E$,outside:b$,gtr:w$,ltr:S$,intersects:C$,simplifyRange:x$,subset:O$,SemVer:G2,re:sd.re,src:sd.src,tokens:sd.t,SEMVER_SPEC_VERSION:mw.SEMVER_SPEC_VERSION,RELEASE_TYPES:mw.RELEASE_TYPES,compareIdentifiers:yw.compareIdentifiers,rcompareIdentifiers:yw.rcompareIdentifiers}});var bw=F((cK,Ew)=>{var Aw=ko();Ew.exports=e=>P$(e.reduce(k$,{versions:{},"dist-tags":{},refs:{},shas:{}}));var P$=e=>F$(_$(R$(e))),_$=e=>(Object.keys(e.refs).forEach(t=>{let r=e.refs[t];e.shas[r.sha]?e.shas[r.sha].push(t):e.shas[r.sha]=[t]}),e),R$=e=>(Object.keys(e.refs).filter(t=>t.endsWith("^{}")).forEach(t=>{let r=e.refs[t],n=e.refs[t.replace(/\^\{\}$/,"")];n&&(n.sha=r.sha,delete e.refs[t])}),e),F$=e=>{let t=e.refs.HEAD||{};return Object.keys(e.versions).forEach(n=>{let i=e.versions[n];e.refs.latest&&i.sha===e.refs.latest.sha?e["dist-tags"].latest=n:i.sha===t.sha&&(e["dist-tags"].HEAD=n,e.refs.latest||(e["dist-tags"].latest=n))}),e},D$=e=>e.startsWith("refs/tags/")?"tag":e.startsWith("refs/heads/")?"branch":e.startsWith("refs/pull/")?"pull":e==="HEAD"?"head":"other",L$=e=>{let t=e.trim().split(/\s+/,2);if(t.length<2)return null;let r=t[0].trim(),n=t[1].trim(),i=D$(n);if(i==="tag"){let s=n.slice(10);return{sha:r,ref:s,rawRef:n,type:i}}if(i==="branch"){let s=n.slice(11);return{sha:r,ref:s,rawRef:n,type:i}}if(i==="pull"){let s=n.slice(5).replace(/\/head$/,"");return{sha:r,ref:s,rawRef:n,type:i}}return i==="head"?{sha:r,ref:"HEAD",rawRef:n,type:i}:{sha:r,ref:n,rawRef:n,type:i}},k$=(e,t)=>{let r=L$(t);if(!r)return e;if(e.refs[r.ref]=r,e.refs[r.rawRef]=r,r.type==="tag"){let n=!r.ref.endsWith("^{}")&&r.ref.match(/v?(\d+\.\d+\.\d+(?:[-+].+)?)$/);n&&Aw.valid(n[1],!0)&&(e.versions[Aw.clean(n[1],!0)]=r)}return e}});var od=F((lK,Sw)=>{var T$=_o(),{LRUCache:I$}=du(),N$=bw(),ww=new I$({max:100,ttl:5*60*1e3});Sw.exports=async(e,t={})=>{if(!t.noGitRevCache){let i=ww.get(e);if(i)return i}let{stdout:r}=await T$(["ls-remote",e],t),n=N$(r.trim().split(`
12
- `));return ww.set(e,n),n}});var xw=F(Cw=>{var $$=e=>(e.fakePlatform||process.platform)==="win32";Cw.isWindows=$$});var Pw=F((hK,Ow)=>{"use strict";var{builtinModules:M$}=require("module"),j$=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),B$=["node_modules","favicon.ico"];function W$(e){var t=[],r=[];if(e===null)return r.push("name cannot be null"),To(t,r);if(e===void 0)return r.push("name cannot be undefined"),To(t,r);if(typeof e!="string")return r.push("name must be a string"),To(t,r);if(e.length||r.push("name length must be greater than zero"),e.startsWith(".")&&r.push("name cannot start with a period"),e.match(/^_/)&&r.push("name cannot start with an underscore"),e.trim()!==e&&r.push("name cannot contain leading or trailing spaces"),B$.forEach(function(o){e.toLowerCase()===o&&r.push(o+" is not a valid package name")}),M$.includes(e.toLowerCase())&&t.push(e+" is a core module name"),e.length>214&&t.push("name can no longer contain more than 214 characters"),e.toLowerCase()!==e&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(e.split("/").slice(-1)[0])&&t.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(e)!==e){var n=e.match(j$);if(n){var i=n[1],s=n[2];if(s.startsWith(".")&&r.push("name cannot start with a period"),encodeURIComponent(i)===i&&encodeURIComponent(s)===s)return To(t,r)}r.push("name can only contain URL-friendly characters")}return To(t,r)}var To=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};Ow.exports=W$});var Nw=F((dK,Mo)=>{"use strict";var $o=process.platform==="win32",{URL:ad}=require("node:url"),ss=$o?require("node:path/win32"):require("node:path"),{homedir:q$}=require("node:os"),G$=gu(),_w=ko(),Lw=Pw(),{log:U$}=tu(),kw=$o?/\\|[/]/:/[/]/,Tw=/^(?:git[+])?[a-z]+:/i,H$=/^[^@]+@[^:.]+\.[^:]+:.+$/i,cd=/[.](?:tgz|tar\.gz|tar)$/i,z$=/:[0-9]+(\/|$)/i,Y$=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,V$=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/,Rw="https://registry.npmjs.org";function Io(e,t){let r,n;if(typeof e=="object")return e instanceof No&&(!t||t===e.where)?e:e.name&&e.rawSpec?Io.resolve(e.name,e.rawSpec,t||e.where):Io(e.raw,t||e.where);let i=e.indexOf("@",1),s=i>0?e.slice(0,i):e;return Tw.test(e)?n=e:H$.test(e)?n=`git+ssh://${e}`:!s.startsWith("@")&&(kw.test(s)||cd.test(s))?n=e:i>0?(r=s,n=e.slice(i+1)||"*"):Lw(e).validForOldPackages?(r=e,n="*"):n=e,Iw(r,n,t,e)}function K$(e){return e?e.toLowerCase().startsWith("file:")?!0:$o?Y$.test(e):V$.test(e):!1}function X$(e){return e?e.toLowerCase().startsWith("npm:"):!1}function Iw(e,t,r,n){let i=new No({raw:n,name:e,rawSpec:t,fromArgument:n!=null});if(e&&(i.name=e),r||(r=process.cwd()),K$(t))return Dw(i,r);if(X$(t))return sM(i,r);let s=G$.fromUrl(t,{noGitPlus:!0,noCommittish:!0});return s?rM(i,s):t&&Tw.test(t)?iM(i):t&&(kw.test(t)||cd.test(t))?Dw(i,r):oM(i)}function J$(e,t=Rw){let r=Io(e);if(r.type!=="version")throw eM(r.type,r.raw);let n="pkg:npm/"+r.name.replace(/^@/,"%40")+"@"+r.rawSpec;return t!==Rw&&(n+="?repository_url="+t),n}function Q$(e,t,r){let n=new Error(`Invalid package name "${e}" of package "${r}": ${t.errors.join("; ")}.`);return n.code="EINVALIDPACKAGENAME",n}function Z$(e,t){let r=new Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);return r.code="EINVALIDTAGNAME",r}function eM(e,t){let r=new Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);return r.code="EINVALIDPURLTYPE",r}var No=class{constructor(t){this.type=t.type,this.registry=t.registry,this.where=t.where,t.raw==null?this.raw=t.name?`${t.name}@${t.rawSpec}`:t.rawSpec:this.raw=t.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=t.rawSpec||"",this.saveSpec=t.saveSpec,this.fetchSpec=t.fetchSpec,t.name&&this.setName(t.name),this.gitRange=t.gitRange,this.gitCommittish=t.gitCommittish,this.gitSubdir=t.gitSubdir,this.hosted=t.hosted}setName(t){let r=Lw(t);if(!r.validForOldPackages)throw Q$(t,r,this.raw);return this.name=t,this.scope=t[0]==="@"?t.slice(0,t.indexOf("/")):void 0,this.escapedName=t.replace("/","%2f"),this}toString(){let t=[];this.name!=null&&this.name!==""&&t.push(this.name);let r=this.saveSpec||this.fetchSpec||this.rawSpec;return r!=null&&r!==""&&t.push(r),t.length?t.join("@"):this.raw}toJSON(){let t=Object.assign({},this);return delete t.hosted,t}};function ud(e,t){if(!t){e.gitCommittish=null;return}for(let r of t.split("::")){if(!r.includes(":")){if(e.gitRange)throw new Error("cannot override existing semver range with a committish");if(e.gitCommittish)throw new Error("cannot override existing committish with a second committish");e.gitCommittish=r;continue}let[n,i]=r.split(":");if(n==="semver"){if(e.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(e.gitRange)throw new Error("cannot override existing semver range with a second semver range");e.gitRange=decodeURIComponent(i);continue}if(n==="path"){if(e.gitSubdir)throw new Error("cannot override existing path with a second path");e.gitSubdir=`/${i}`;continue}U$.warn("npm-package-arg",`ignoring unknown key "${n}"`)}}var tM=new Map([["\0","%00"],[" ","%09"],[`
13
- `,"%0A"],["\r","%0D"],[" ","%20"],['"',"%22"],["#","%23"],["%","%25"],["?","%3F"],["[","%5B"],["\\",$o?"/":"%5C"],["]","%5D"],["^","%5E"],["|","%7C"],["~","%7E"]]);function Fw(e){let t="";for(let r=0;r<e.length;r++)t=`${t}${tM.get(e[r])??e[r]}`;return t.startsWith("file:")?t:`file:${t}`}function Dw(e,t){e.type=cd.test(e.rawSpec)?"file":"directory",e.where=t;let r=Fw(e.rawSpec);r.startsWith("file:/")&&(/^file:\/\/[^/]/.test(r)&&(r=`file:/${r.slice(5)}`),/^\/{1,3}\.\.?(\/|$)/.test(r.slice(5))&&(r=r.replace(/^file:\/{1,3}/,"file:")));let n,i;try{n=new ad(r,`${Fw(ss.resolve(t))}/`),i=new ad(r)}catch(a){let u=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(u,{raw:e.rawSpec,spec:e,where:t,originalError:a})}let s=decodeURIComponent(i.pathname),o=decodeURIComponent(n.pathname);return $o&&(s=s.replace(/^\/+([a-z]:\/)/i,"$1"),o=o.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(s)?(e.saveSpec=`file:${s.substr(1)}`,o=ss.resolve(q$(),s.substr(3))):ss.isAbsolute(r.slice(5))?e.saveSpec=`file:${ss.resolve(o)}`:e.saveSpec=`file:${ss.relative(t,o)}`,e.fetchSpec=ss.resolve(t,o),e.saveSpec=e.saveSpec.split("\\").join("/"),e.saveSpec.startsWith("file://")&&(e.saveSpec=`file:/${e.saveSpec.slice(7)}`),e}function rM(e,t){return e.type="git",e.hosted=t,e.saveSpec=t.toString({noGitPlus:!1,noCommittish:!1}),e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString(),ud(e,t.committish),e}function nM(e,t){let r=new Error(`Unsupported URL Type "${e}": ${t}`);return r.code="EUNSUPPORTEDPROTOCOL",r}function iM(e){let t=e.rawSpec;if(e.saveSpec=t,t.startsWith("git+ssh:")){let n=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(n&&!n[1].match(z$))return e.type="git",ud(e,n[2]),e.fetchSpec=n[1],e}else t.startsWith("git+file://")&&(t=t.replace(/\\/g,"/"));let r=new ad(t);switch(r.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git",ud(e,r.hash.slice(1)),r.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t)?e.fetchSpec=`git+file://${r.host.toLowerCase()}:${r.pathname}`:(r.hash="",e.fetchSpec=r.toString()),e.fetchSpec.startsWith("git+")&&(e.fetchSpec=e.fetchSpec.slice(4));break;case"http:":case"https:":e.type="remote",e.fetchSpec=e.saveSpec;break;default:throw nM(r.protocol,t)}return e}function sM(e,t){let r=Io(e.rawSpec.substr(4),t);if(r.type==="alias")throw new Error("nested aliases not supported");if(!r.registry)throw new Error("aliases only work for registry deps");if(!r.name)throw new Error("aliases must have a name");return e.subSpec=r,e.registry=!0,e.type="alias",e.saveSpec=null,e.fetchSpec=null,e}function oM(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let r=_w.valid(t,!0),n=_w.validRange(t,!0);if(r)e.type="version";else if(n)e.type="range";else{if(encodeURIComponent(t)!==t)throw Z$(t,e.raw);e.type="tag"}return e}Mo.exports=Io;Mo.exports.resolve=Iw;Mo.exports.toPurl=J$;Mo.exports.Result=No});var Ww=F((pK,Bw)=>{var Ci=require("node:process"),aM=require("node:os"),uM=require("node:fs");function cM(e){return e.includes("libc.musl-")||e.includes("ld-musl-")}function $w(){return Ci.platform}function Mw(){return Ci.arch}var lM="/usr/bin/ldd";function fM(){try{let e=uM.readFileSync(lM,"utf-8");return e.includes("musl")?"musl":e.includes("GNU C Library")?"glibc":null}catch{return}}function hM(){let e=Ci.report.excludeNetwork;Ci.report.excludeNetwork=!0;let t=Ci.report.getReport();return Ci.report.excludeNetwork=e,t.header?.glibcVersionRuntime?fn="glibc":Array.isArray(t.sharedObjects)&&t.sharedObjects.some(cM)?fn="musl":fn=null,fn}var fn;function jw(e){if(e==="linux")return fn===void 0&&(fn=fM(),fn===void 0&&(fn=hM())),fn}function dM(e={}){let t=e.os||$w();return{cpu:{name:e.cpu||Mw()},libc:{name:e.libc||jw(t)},os:{name:t,version:e.osVersion||aM.release()},packageManager:{name:"npm",version:e.npmVersion},runtime:{name:"node",version:e.nodeVersion||Ci.version}}}Bw.exports={cpu:Mw,libc:jw,os:$w,devEngines:dM}});var Gw=F((gK,qw)=>{var pM=is(),gM=td(),mM=["ignore","warn","error","download"],yM=["name","version","onFail"],vM=["packageManager","runtime","cpu","libc","os"];function AM(e,t,r){let{engine:n}=r;if(typeof e!="object"||e===null||Array.isArray(e))throw new Error(`Invalid non-object value for "${n}"`);let i=Object.keys(e);for(let s of i)if(!yM.includes(s))throw new Error(`Invalid property "${s}" for "${n}"`);if(!i.includes("name"))throw new Error(`Missing "name" property for "${n}"`);if(typeof e.name!="string")throw new Error(`Invalid non-string value for "name" within "${n}"`);if(typeof t.name!="string"||t.name==="")throw new Error(`Unable to determine "name" for "${n}"`);if(i.includes("onFail")){if(typeof e.onFail!="string")throw new Error(`Invalid non-string value for "onFail" within "${n}"`);if(!mM.includes(e.onFail))throw new Error(`Invalid onFail value "${e.onFail}" for "${n}"`)}if(e.name!==t.name)return new Error(`Invalid name "${e.name}" does not match "${t.name}" for "${n}"`);if(i.includes("version")){if(typeof e.version!="string")throw new Error(`Invalid non-string value for "version" within "${n}"`);if(typeof t.version!="string"||t.version==="")throw new Error(`Unable to determine "version" for "${n}" "${e.name}"`);if(gM(e.version)){if(!pM(t.version,e.version,r.semver))return new Error(`Invalid semver version "${e.version}" does not match "${t.version}" for "${n}"`)}else if(e.version!==t.version)return new Error(`Invalid version "${e.version}" does not match "${t.version}" for "${n}"`)}}function EM(e,t={},r={}){if(typeof e!="object"||e===null||Array.isArray(e))throw new Error('Invalid non-object value for "devEngines"');let n=[];for(let i of Object.keys(e)){if(!vM.includes(i))throw new Error(`Invalid property "devEngines.${i}"`);let s=e[i],o=[s].flat(),a=t[i]||{};if(o.length===0)continue;let u=[];for(let f of o){let l=AM(f,a,{...r,engine:i});l&&u.push(l)}if(u.length===o.length){let l=o[o.length-1].onFail||"error";l==="download"&&(l="error");let h=Object.assign(new Error(`Invalid devEngines.${i}`),{errors:u,engine:i,isWarn:l==="warn",isError:l==="error",current:a,required:s});n.push(h)}}return n}qw.exports={checkDevEngines:EM}});var zw=F((mK,Hw)=>{var Uw=ko(),nc=Ww(),{checkDevEngines:bM}=Gw(),wM=(e,t,r,n=!1)=>{let i=n?null:r,s=e.engines,o={includePrerelease:!0};if(!s)return;let a=i&&s.node&&!Uw.satisfies(i,s.node,o),u=t&&s.npm&&!Uw.satisfies(t,s.npm,o);if(a||u)throw Object.assign(new Error("Unsupported engine"),{pkgid:e._id,current:{node:r,npm:t},required:s,code:"EBADENGINE"})},SM=(e,t=!1,r={})=>{if(t)return;let n=r.os||nc.os(),i=r.cpu||nc.cpu(),s=r.libc||nc.libc(n),o=e.os?ld(n,e.os):!0,a=e.cpu?ld(i,e.cpu):!0,u=e.libc?ld(s,e.libc):!0;if(e.libc&&!s&&(u=!1),!o||!a||!u)throw Object.assign(new Error("Unsupported platform"),{pkgid:e._id,current:{os:n,cpu:i,libc:s},required:{os:e.os,cpu:e.cpu,libc:e.libc},code:"EBADPLATFORM"})},ld=(e,t)=>{if(typeof t=="string"&&(t=[t]),t.length===1&&t[0]==="any")return!0;let r=0,n=!1;for(let i of t){let s=i.charAt(0)==="!",o=s?i.slice(1):i;if(s){if(r++,e===o)return!1}else n=n||e===o}return n||r===t.length};Hw.exports={checkEngine:wM,checkPlatform:SM,checkDevEngines:bM,currentEnv:nc}});var Xw=F((yK,Kw)=>{var{join:Yw,basename:Vw}=require("path"),CM=e=>e.bin?typeof e.bin=="string"?xM(e):Array.isArray(e.bin)?OM(e):typeof e.bin=="object"?hd(e):fd(e):fd(e),xM=e=>e.name?(e.bin={[e.name]:e.bin},hd(e)):fd(e),OM=e=>(e.bin=e.bin.reduce((t,r)=>(t[Vw(r)]=r,t),{}),hd(e)),fd=e=>(delete e.bin,e),hd=e=>{let t=e.bin,r={},n=!1;return Object.keys(t).forEach(i=>{let s=Yw("/",Vw(i.replace(/\\|:/g,"/"))).slice(1);if(typeof t[i]!="string"||!s)return;let o=Yw("/",t[i].replace(/\\/g,"/")).replace(/\\/g,"/").slice(1);o&&(r[s]=o,n=!0)}),n?e.bin=r:delete e.bin,e};Kw.exports=CM});var Zw=F((vK,Qw)=>{"use strict";var Jw=Nw(),jo=ko(),{checkEngine:PM}=zw(),_M=Xw(),dd=(e,t,r)=>{try{return PM(e,t,r),!0}catch{return!1}},ic=(e,t,r)=>!e||!e[t]||Date.parse(e[t])<=r,RM={includePrerelease:!0,loose:!0},sc=(e,t)=>t&&jo.satisfies(e,t,RM),pd=(e,t)=>e&&sc(e.version,t)?{...e,_shouldAvoid:!0}:e,Bo=(e,t,r)=>{let{defaultTag:n="latest",before:i=null,nodeVersion:s=process.version,npmVersion:o=null,includeStaged:a=!1,avoid:u=null,avoidStrict:c=!1}=r,{name:f,time:l}=e,h=e.versions||{};if(c){let D={...r,avoidStrict:!1},$=Bo(e,t,D);if(!$||!$._shouldAvoid)return $;let x=Bo(e,`^${$.version}`,D);if(!x||!x._shouldAvoid)return{...x,_outsideDependencyRange:!0,_isSemVerMajor:!1};let g=Bo(e,"*",D);if(!g||!g._shouldAvoid)return{...g,_outsideDependencyRange:!0,_isSemVerMajor:!0};throw Object.assign(new Error(`No avoidable versions for ${f}`),{code:"ETARGET",name:f,wanted:t,avoid:u,before:i,versions:Object.keys(h)})}let d=a&&e.stagedVersions&&e.stagedVersions.versions||{},p=e.policyRestrictions&&e.policyRestrictions.versions||{},y=i&&l?+new Date(i):1/0,O=Jw.resolve(f,t||n).type,S=e["dist-tags"]||{};if(O!=="tag"&&O!=="version"&&O!=="range")throw new Error("Only tag, version, and range are supported");if(t&&O==="tag"){let D=S[t];return ic(l,D,y)?pd(h[D]||d[D]||p[D],u):Bo(e,`<=${D}`,r)}if(t&&O==="version"){let D=jo.clean(t,{loose:!0}),$=h[D]||d[D]||p[D];return ic(l,D,y)?pd($,u):null}let k=O==="range"?t:"*",P=S[n];if(P&&(k==="*"||jo.satisfies(P,k,{loose:!0}))&&!p[P]&&!sc(P,u)){let D=h[P];if(D&&ic(l,P,y)&&dd(D,o,s)&&!D.deprecated&&!d[P])return D}let b=Object.entries(h).concat(Object.entries(d)).concat(Object.entries(p)).filter(([D])=>ic(l,D,y));if(!b.length)throw Object.assign(new Error(`No versions available for ${f}`),{code:"ENOVERSIONS",name:f,type:O,wanted:t,before:i,versions:Object.keys(h)});let _={loose:!0},L=b.filter(([D])=>jo.satisfies(D,k,{loose:!0})).sort((D,$)=>{let[x,g]=D,[v,A]=$,C=!sc(x,u),E=!sc(v,u),w=!p[x],T=!p[v],N=!d[x],M=!d[v],U=!g.deprecated,V=!A.deprecated,X=dd(g,o,s),fe=dd(A,o,s);return E-C||T-w||M-N||(V&&fe)-(U&&X)||fe-X||V-U||jo.rcompare(x,v,_)});return pd(L[0]&&L[0][1],u)};Qw.exports=(e,t,r={})=>{let n=Bo(e,t,r),i=n&&_M(n),s=e.policyRestrictions,o=s&&s.versions||{};if(i&&!o[i.version])return i;let{before:a=null,defaultTag:u="latest"}=r,c=a?new Date(a).toLocaleString():"",{name:f}=e,l=`${f}@${t}`+(a?` with a date before ${c}`:""),h=i&&!!o[i.version],d=h?s.message:"",p=h?`Could not download ${l} due to policy violations:
14
- ${d}`:`No matching version found for ${l}.`,y=h?"E403":"ETARGET";throw Object.assign(new Error(p),{code:y,type:Jw.resolve(e.name,t).type,wanted:t,versions:Object.keys(e.versions??{}),name:f,distTags:e["dist-tags"],defaultTag:u})}});var nS=F((AK,rS)=>{var FM=new Set(["github.com","gist.github.com","gitlab.com","bitbucket.com","bitbucket.org"]),{parse:DM}=require("url"),eS=require("path"),LM=od(),Wo=_o(),{isWindows:oc}=xw(),kM=Zw(),gd=require("fs/promises");rS.exports=(e,t="HEAD",r=null,n={})=>LM(e,n).then(i=>IM(e,i,t,NM(i,t,n),r||TM(e,n.cwd),n));var md=(e,t)=>t.gitShallow===!1||t.gitShallow?t.gitShallow:FM.has(DM(e).host),TM=(e,t=process.cwd())=>eS.resolve(t,eS.basename(e.replace(/[/\\]?\.git$/,""))),IM=(e,t,r,n,i,s)=>n?n.sha===t.refs.HEAD.sha?jM(e,n,i,s):n.type==="tag"||n.type==="branch"?MM(e,n,i,s):$M(e,n,i,s):BM(e,r,i,s),NM=(e,t,r)=>{let{spec:n={}}=r;return t=n.gitCommittish||t,e?n.gitRange?kM(e,n.gitRange,r):t?e.refs[t]?e.refs[t]:e.shas[t]?e.refs[e.shas[t][0]]:null:e.refs.HEAD:null},$M=(e,t,r,n)=>{let i=md(e,n),s=["fetch","origin",t.rawRef].concat(i?["--depth=1"]:[]),o=a=>Wo(a,{...n,cwd:r});return gd.mkdir(r,{recursive:!0}).then(()=>o(["init"])).then(()=>oc(n)?o(["config","--local","--add","core.longpaths","true"]):null).then(()=>o(["remote","add","origin",e])).then(()=>o(s)).then(()=>o(["checkout",t.sha])).then(()=>tS(r,n)).then(()=>t.sha)},MM=(e,t,r,n)=>{let i=["clone","-b",t.ref,e,r,"--recurse-submodules"];return md(e,n)&&i.push("--depth=1"),oc(n)&&i.push("--config","core.longpaths=true"),Wo(i,n).then(()=>t.sha)},jM=(e,t,r,n)=>{let i=["clone",e,r,"--recurse-submodules"];return md(e,n)&&i.push("--depth=1"),oc(n)&&i.push("--config","core.longpaths=true"),Wo(i,n).then(()=>t.sha)},tS=async(e,t)=>await gd.stat(`${e}/.gitmodules`).then(()=>!0).catch(()=>!1)?Wo(["submodule","update","-q","--init","--recursive"],{...t,cwd:e}):null,BM=(e,t,r,n)=>{let i=oc(n)?["--config","core.longpaths=true"]:[],s=["clone","--mirror","-q",e,r+"/.git"],o=a=>Wo(a,{...n,cwd:r});return gd.mkdir(r,{recursive:!0}).then(()=>o(s.concat(i))).then(()=>o(["init"])).then(()=>o(["checkout",t])).then(()=>tS(r,n)).then(()=>o(["rev-parse","--revs-only","HEAD"])).then(({stdout:a})=>a.trim())}});var yd=F((EK,iS)=>{var{stat:WM}=require("fs/promises");iS.exports=({cwd:e=process.cwd()}={})=>WM(e+"/.git").then(()=>!0,()=>!1)});var oS=F((bK,sS)=>{var qM=yd(),{dirname:GM}=require("path");sS.exports=async({cwd:e=process.cwd(),root:t}={})=>{for(;;){if(await qM({cwd:e}))return e;let r=GM(e);if(e===t||e===r)return null;e=r}}});var uS=F((wK,aS)=>{var UM=_o();aS.exports=(e={})=>UM(["status","--porcelain=v1","-uno"],e).then(t=>!t.stdout.trim().split(/\r?\n+/).map(r=>r.trim()).filter(r=>r).length)});var lS=F((SK,cS)=>{cS.exports={clone:nS(),revs:od(),spawn:_o(),is:yd(),find:oS(),isClean:uS(),errors:qh()}});var mS=F((CK,gS)=>{var HM=au(),zM=Yf(),Nn=require("node:fs/promises"),He=require("node:path"),{log:dS}=vv(),YM=require("node:module"),vd;function fS(){return vd||(vd=gu()),vd}var Ad;function ac(){return Ad||(Ad=Fh().glob),Ad}function VM(e,t){if(e.bin&&(typeof e.bin=="string"&&e.name?(t?.push('"bin" was converted to an object'),e.bin={[e.name]:e.bin}):Array.isArray(e.bin)&&(t?.push('"bin" was converted to an object'),e.bin=e.bin.reduce((r,n)=>(r[He.basename(n)]=n,r),{})),typeof e.bin=="object")){for(let r in e.bin){if(typeof e.bin[r]!="string"){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}let n=He.basename(os(r));if(!n){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}let i=os(e.bin[r]);if(!i){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}n!==r&&(delete e.bin[r],t?.push(`"bin[${r}]" was renamed to "bin[${n}]"`)),i!==e.bin[r]&&t?.push(`"bin[${n}]" script name ${i} was invalid and removed`),e.bin[n]=i}return Object.keys(e.bin).length===0&&(t?.push('empty "bin" was removed'),delete e.bin),e}delete e.bin}function KM(e,t){if(e.man){let r=[];for(let n of Array.isArray(e.man)?e.man:[e.man])typeof n!="string"?t?.push(`removed invalid "man [${n}]"`):r.push(os(n));if(!r.length)t?.push('empty "man" was removed');else return e.man=r,e}delete e.man}function XM(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function JM(e){if(e.charAt(0)!=="@")return!1;let t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function hS(e){return e.replace(/\\|:/g,"/")}function os(e){let t=hS(He.join(".",He.join("/",hS(e))));return t.startsWith("./")?"":t}function pS(e,{strict:t,steps:r,changes:n,allowLegacyCase:i}){let s=e.content,o=`${s.name??""}@${s.version??""}`;if(r.includes("fixName")||r.includes("fixNameField")||r.includes("normalizeData"))if(!s.name&&!t)n?.push('Missing "name" field was set to an empty string'),s.name="";else{if(typeof s.name!="string")throw new Error("name field must be a string.");if(!t){let a=s.name.trim();s.name!==a&&(n?.push('Whitespace was trimmed from "name"'),s.name=a)}if(s.name.startsWith(".")||!(JM(s.name)||XM(s.name))||t&&!i&&s.name!==s.name.toLowerCase()||s.name.toLowerCase()==="node_modules"||s.name.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(s.name))}if(r.includes("fixName")&&YM.builtinModules.includes(s.name)&&dS.warn("package-json",o,`Package name "${s.name}" conflicts with a Node.js built-in module name`),r.includes("fixVersionField")||r.includes("normalizeData")){let a=!t;if(!s.version)s.version="";else{if(!HM(s.version,a))throw new Error(`Invalid version: "${s.version}"`);let u=zM(s.version,a);u!==s.version&&(n?.push(`"version" was cleaned and set to "${u}"`),s.version=u)}}if(r.includes("_attributes"))for(let a in s)a.startsWith("_")&&(n?.push(`"${a}" was removed`),delete e.content[a]);if(r.includes("_id")&&s.name&&s.version&&(n?.push(`"_id" was set to ${o}`),s._id=o),r.includes("bundledDependencies")&&(s.bundleDependencies===void 0&&s.bundledDependencies!==void 0&&(s.bundleDependencies=s.bundledDependencies,n?.push('Deleted incorrect "bundledDependencies"')),delete s.bundledDependencies),r.includes("bundleDependencies")){let a=s.bundleDependencies;a===!1&&!r.includes("bundleDependenciesDeleteFalse")?(n?.push('"bundleDependencies" was changed from "false" to "[]"'),s.bundleDependencies=[]):a===!0?(n?.push('"bundleDependencies" was auto-populated from "dependencies"'),s.bundleDependencies=Object.keys(s.dependencies||{})):a&&typeof a=="object"?Array.isArray(a)||(n?.push('"bundleDependencies" was changed from an object to an array'),s.bundleDependencies=Object.keys(a)):"bundleDependencies"in s&&(n?.push('"bundleDependencies" was removed'),delete s.bundleDependencies)}if(r.includes("optionalDedupe")&&s.dependencies&&s.optionalDependencies&&typeof s.optionalDependencies=="object"){for(let a in s.optionalDependencies)n?.push(`optionalDependencies."${a}" was removed`),delete s.dependencies[a];Object.keys(s.dependencies).length||(n?.push('Empty "optionalDependencies" was removed'),delete s.dependencies)}if((r.includes("scripts")||r.includes("scriptpath"))&&s.scripts!==void 0){let a=/^(\.[/\\])?node_modules[/\\].bin[\\/]/;if(typeof s.scripts=="object")for(let u in s.scripts)typeof s.scripts[u]!="string"?(delete s.scripts[u],n?.push(`Invalid scripts."${u}" was removed`)):r.includes("scriptpath")&&a.test(s.scripts[u])&&(s.scripts[u]=s.scripts[u].replace(a,""),n?.push(`scripts entry "${u}" was fixed to remove node_modules/.bin reference`));else n?.push('Removed invalid "scripts"'),delete s.scripts}if(r.includes("funding")&&s.funding&&typeof s.funding=="string"&&(s.funding={url:s.funding},n?.push('"funding" was changed to an object with a url attribute')),(r.includes("fixRepositoryField")||r.includes("normalizeData"))&&(s.repositories&&(n?.push(`"repository" was set to the first entry in "repositories" (${s.repository})`),s.repository=s.repositories[0]),s.repository&&(typeof s.repository=="string"&&(n?.push('"repository" was changed from a string to an object'),s.repository={type:"git",url:s.repository}),s.repository.url))){let a=fS().fromUrl(s.repository.url),u;a&&(a.getDefaultRepresentation()==="shortcut"?u=a.https():u=a.toString(),u!==s.repository.url&&(n?.push(`"repository.url" was normalized to "${u}"`),s.repository.url=u))}if(r.includes("fixDependencies")||r.includes("normalizeData")){for(let a of["dependencies","devDependencies","optionalDependencies"])if(s[a]){let u=!0;if(typeof s[a]=="string"&&(n?.push(`"${a}" was converted from a string into an object`),s[a]=s[a].trim().split(/[\n\r\s\t ,]+/),u=!1),Array.isArray(s[a])){u&&n?.push(`"${a}" was converted from an array into an object`);let c={};for(let f of s[a])if(typeof f=="string"){let l=f.trim().split(/(:?[@\s><=])/),h=l.shift(),d=l.join("").replace(/^@/,"").trim();c[h]=d}s[a]=c}}for(let a of["dependencies","devDependencies"])if(a in s)if(!s[a]||typeof s[a]!="object")n?.push(`Removed invalid "${a}"`),delete s[a];else for(let u in s[a]){typeof s[a][u]!="string"&&(n?.push(`Removed invalid "${a}.${u}"`),delete s[a][u]);let f=fS().fromUrl(s[a][u])?.toString();f&&f!==s[a][u]&&(n?.push(`Normalized git reference to "${a}.${u}"`),s[a][u]=f.toString())}}if(r.includes("normalizeData")){let{normalizeData:a}=JA();a(s,n)}}async function QM(e,{steps:t,root:r,changes:n}){let i=e.content,s=i.scripts||{},o=`${i.name??""}@${i.version??""}`;if(t.includes("gypfile")&&!s.install&&!s.preinstall&&i.gypfile!==!1&&(await ac()("*.gyp",{cwd:e.path})).length&&(s.install="node-gyp rebuild",i.scripts=s,i.gypfile=!0,n?.push('"scripts.install" was set to "node-gyp rebuild"'),n?.push('"gypfile" was set to "true"')),t.includes("serverjs")&&!s.start)try{await Nn.access(He.join(e.path,"server.js")),s.start="node server.js",i.scripts=s,n?.push('"scripts.start" was set to "node server.js"')}catch{}if(t.includes("authors")&&!i.contributors)try{let u=(await Nn.readFile(He.join(e.path,"AUTHORS"),"utf8")).split(/\r?\n/g).map(c=>c.replace(/^\s*#.*$/,"").trim()).filter(c=>c);i.contributors=u,n?.push('"contributors" was auto-populated with the contents of the "AUTHORS" file')}catch{}if(t.includes("readme")&&!i.readme){let a=/\.m?a?r?k?d?o?w?n?$/i,u=await ac()("{README,README.*}",{cwd:e.path,nocase:!0,mark:!0}),c;for(let f of u)if(!f.endsWith(He.sep)){if(f.match(a)){c=f;break}f.endsWith("README")&&(c=f)}if(c){let f=await Nn.readFile(He.join(e.path,c),"utf8");i.readme=f,i.readmeFilename=c,n?.push(`"readme" was set to the contents of ${c}`),n?.push(`"readmeFilename" was set to ${c}`)}i.readme||(i.readme="ERROR: No README data found!")}if(t.includes("mans")){if(i.directories?.man&&!i.man){let a=os(i.directories.man),u=He.resolve(e.path,a),c=await ac()("**/*.[0-9]",{cwd:u});i.man=c.map(f=>He.relative(e.path,He.join(u,f)).split(He.sep).join("/"))}KM(i,n)}if(t.includes("binDir")&&i.directories?.bin&&!i.bin){let a=os(i.directories.bin),u=await ac()("**",{cwd:He.resolve(e.path,a)});i.bin=u.reduce((c,f)=>{if(f&&!f.startsWith(".")){let l=He.basename(f);c[l]=`${a}/${os(f)}`}return c},{})}else(t.includes("bin")||t.includes("binDir")||t.includes("binRefs"))&&VM(i,n);if(t.includes("gitHead")&&!i.gitHead){let u=await lS().find({cwd:e.path,root:r}),c;if(u)try{c=await Nn.readFile(He.resolve(u,".git/HEAD"),"utf8")}catch{}let f;if(c)if(c.startsWith("ref: ")){let l=c.replace(/^ref: /,"").trim(),h=He.resolve(u,".git",l);try{f=await Nn.readFile(h,"utf8"),f=f.replace(/^ref: /,"").trim()}catch{}if(!f){let d=He.resolve(u,".git/packed-refs");try{let p=await Nn.readFile(d,"utf8");if(p){p=p.split(`
15
- `);for(let y=0;y<p.length;y++){let m=p[y].match(/^([0-9a-f]{40}) (.+)$/);if(m&&m[2].trim()===l){f=m[1];break}}}}catch{}}}else f=c.trim();f&&(i.gitHead=f)}if(t.includes("fillTypes")){let a=i.main||"index.js";if(typeof a!="string")throw new TypeError('The "main" attribute must be of type string.');let c=`./${He.join(He.dirname(a),He.basename(a,He.extname(a)))}.d.ts`;if(!("types"in i||"typings"in i))try{await Nn.access(He.join(e.path,c)),i.types=c.split(He.sep).join("/")}catch{}}if(t.includes("binRefs")&&i.bin instanceof Object)for(let a in i.bin)try{await Nn.access(He.resolve(e.path,i.bin[a]))}catch{dS.warn("package-json",o,`No bin file found at ${i.bin[a]}`)}}async function ZM(e,t){if(!e.content)throw new Error("Can not normalize without content");await QM(e,t),pS(e,t)}function ej(e,t){pS(e,t)}gS.exports={normalize:ZM,syncNormalize:ej}});var ES=F((xK,AS)=>{var{readFile:tj}=require("fs/promises"),rj=Hf();async function yS(e){try{return await tj(e,"utf8")}catch(t){throw t.message=`Could not read package.json: ${t}`,t}}function vS(e){try{return rj(e)}catch(t){throw t.message=`Invalid package.json: ${t}`,t}}async function nj(e){let t=await yS(e);return vS(t)}AS.exports={read:yS,parse:vS,readPackage:nj}});var wS=F((OK,bS)=>{function ij(e){let{name:t,version:r,private:n,description:i,keywords:s,homepage:o,bugs:a,repository:u,funding:c,license:f,author:l,maintainers:h,contributors:d,type:p,imports:y,exports:m,main:O,browser:S,types:k,bin:P,man:b,directories:_,files:L,workspaces:D,scripts:$,config:x,dependencies:g,devDependencies:v,peerDependencies:A,peerDependenciesMeta:C,optionalDependencies:E,bundledDependencies:w,bundleDependencies:T,engines:N,os:M,cpu:U,publishConfig:V,devEngines:X,licenses:fe,overrides:q,...H}=e;return{...typeof t<"u"?{name:t}:{},...typeof r<"u"?{version:r}:{},...typeof n<"u"?{private:n}:{},...typeof i<"u"?{description:i}:{},...typeof s<"u"?{keywords:s}:{},...typeof o<"u"?{homepage:o}:{},...typeof a<"u"?{bugs:a}:{},...typeof u<"u"?{repository:u}:{},...typeof c<"u"?{funding:c}:{},...typeof f<"u"?{license:f}:{},...typeof l<"u"?{author:l}:{},...typeof h<"u"?{maintainers:h}:{},...typeof d<"u"?{contributors:d}:{},...typeof p<"u"?{type:p}:{},...typeof y<"u"?{imports:y}:{},...typeof m<"u"?{exports:m}:{},...typeof O<"u"?{main:O}:{},...typeof S<"u"?{browser:S}:{},...typeof k<"u"?{types:k}:{},...typeof P<"u"?{bin:P}:{},...typeof b<"u"?{man:b}:{},...typeof _<"u"?{directories:_}:{},...typeof L<"u"?{files:L}:{},...typeof D<"u"?{workspaces:D}:{},...typeof $<"u"?{scripts:$}:{},...typeof x<"u"?{config:x}:{},...typeof g<"u"?{dependencies:g}:{},...typeof v<"u"?{devDependencies:v}:{},...typeof A<"u"?{peerDependencies:A}:{},...typeof C<"u"?{peerDependenciesMeta:C}:{},...typeof E<"u"?{optionalDependencies:E}:{},...typeof w<"u"?{bundledDependencies:w}:{},...typeof T<"u"?{bundleDependencies:T}:{},...typeof N<"u"?{engines:N}:{},...typeof M<"u"?{os:M}:{},...typeof U<"u"?{cpu:U}:{},...typeof V<"u"?{publishConfig:V}:{},...typeof X<"u"?{devEngines:X}:{},...typeof fe<"u"?{licenses:fe}:{},...typeof q<"u"?{overrides:q}:{},...H}}bS.exports={packageSort:ij}});var wd=F((PK,xS)=>{var{readFile:sj,writeFile:oj}=require("node:fs/promises"),{resolve:SS}=require("node:path"),aj=Hf(),CS=fv(),uj=dv(),cj=gv(),{normalize:Ed,syncNormalize:lj}=mS(),{read:fj,parse:hj}=ES(),{packageSort:dj}=wS(),pj=new Set([CS,uj,cj]),gj=new Set([...CS.knownKeys,"scripts","workspaces"]),bd=class e{static fixSteps=Object.freeze(["binRefs","bundleDependencies","fixName","fixVersionField","fixRepositoryField","fixDependencies","devDependencies","scriptpath"]);static normalizeSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","optionalDedupe","scripts","funding","bin","binDir"]);static prepareSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","bundleDependenciesDeleteFalse","gypfile","serverjs","scriptpath","authors","readme","mans","binDir","gitHead","fillTypes","normalizeData","binRefs"]);static async create(t,r={}){let n=new e;return await n.create(t),r.data?n.update(r.data):n}static async load(t,r={}){let n=new e;if(!r.create)return n.load(t);try{return await n.load(t)}catch(i){if(!i.message.startsWith("Could not read package.json"))throw i;return await n.create(t)}}static async fix(t,r){let n=new e;return await n.load(t,!0),n.fix(r)}static async prepare(t,r){let n=new e;return await n.load(t,!0),n.prepare(r)}static async normalize(t,r){let n=new e;return await n.load(t),n.normalize(r)}#e;#r;#t="";#n=!0;async load(t,r){this.#e=t;let n;try{this.#t=await fj(this.filename)}catch(i){if(!r)throw i;n=i}if(n){let i=SS(this.path,"index.js"),s;try{s=await sj(i,"utf8")}catch{throw n}try{this.fromComment(s)}catch{throw n}return this.#n=!1,this}return this.fromJSON(this.#t)}fromJSON(t){return this.#r=hj(t),this}fromContent(t){if(!t||typeof t!="object")throw new Error("Content data must be an object");return this.#r=t,this.#n=!1,this}fromComment(t){if(t=t.split(/^\/\*\*package(?:\s|$)/m),t.length<2)throw new Error("File has no package in comments");if(t=t[1],t=t.split(/\*\*\/$/m),t.length<2)throw new Error("File has no package in comments");return t=t[0],t=t.replace(/^\s*\*/mg,""),this.#r=aj(t),this}get content(){return this.#r}get path(){return this.#e}get filename(){if(this.path)return SS(this.path,"package.json")}create(t){return this.#e=t,this.#r={},this}update(t){if(!this.content)throw new Error("Can not update without content. Please `load` or `create`");for(let r of pj)this.#r=r({content:t,originalContent:this.content});for(let[r,n]of Object.entries(t))gj.has(r)||(this.content[r]=n);return this}async save({sort:t}={}){if(!this.#n)throw new Error("No package.json to save to");let{[Symbol.for("indent")]:r,[Symbol.for("newline")]:n,...i}=this.content,s=r===void 0?" ":r,o=n===void 0?`
16
- `:n,a=t?dj(i):i,u=`${JSON.stringify(a,null,s)}
17
- `.replace(/\n/g,o);if(u.trim()!==this.#t.trim()){let c=await oj(this.filename,u);return this.#t=u,c}}syncNormalize(t={}){return t.steps=this.constructor.normalizeSteps.filter(r=>r!=="_attributes"),lj(this,t),this}async normalize(t={}){return t.steps||(t.steps=this.constructor.normalizeSteps),await Ed(this,t),this}async prepare(t={}){return t.steps||(t.steps=this.constructor.prepareSteps),await Ed(this,t),this}async fix(t={}){return t.steps=this.constructor.fixSteps,await Ed(this,t),this}};xS.exports=bd});var _S=F((_K,PS)=>{var{basename:OS,dirname:mj}=require("path"),yj=(e,t)=>e.charAt(0)==="@"?`${e}/${t}`:t;PS.exports=e=>e?yj(OS(mj(e)),OS(e)):!1});var TS=F((RK,kS)=>{var RS=require("path"),vj=_S(),{minimatch:qo}=un(),Aj=wd(),{glob:Ej}=Fh();function bj(e){let t=[],r=[];for(let n of e){let i=n.match(/^!+/);if(i&&(n=n.slice(i[0].length)),n=n.replace(/^\.?\/+/,""),i&&i[0].length%2===1)r.push(n);else{for(let o=0;o<r.length;++o){let a=r[o];qo(n,a)&&r.splice(o,1)}t.push(n)}}for(let n of r)for(let i of qo.match(t,n))t.splice(t.indexOf(i),1);return{patterns:t,negatedPatterns:r}}function FS(e){let t=Array.isArray(e.packages)?e.packages:e;if(!Array.isArray(t))throw uc({message:"workspaces config expects an Array",code:"EWORKSPACESCONFIG"});return bj(t)}function DS(e,t){return e.name||vj(t)}function wj(e){return e=e.replace(/\\/g,"/"),e.endsWith("/")?e:`${e}/`}function uc({Type:e=TypeError,message:t,code:r}){return Object.assign(new e(t),{code:r})}function Sj(e){return new Map(Array.from(e,t=>t.reverse()))}async function LS(e={}){if(!e||!e.pkg)throw uc({message:"mapWorkspaces missing pkg info",code:"EMAPWORKSPACESPKG"});e.cwd||(e.cwd=process.cwd());let{workspaces:t=[]}=e.pkg,{patterns:r,negatedPatterns:n}=FS(t),i=new Map;if(!r.length&&!n.length)return i;let s=new Map,o=()=>({...e,ignore:[...e.ignore||[],"**/node_modules/**",...n]}),a=await Ej(r.map(f=>wj(f)),o());a=a.sort((f,l)=>f.localeCompare(l,"en"));let u=[];for(let f of r)u.push(...a.filter(l=>qo(l,f,{partial:!0,windowsPathsNoEscape:!0})));for(let f of u){let l;try{l=await Aj.normalize(RS.join(e.cwd,f))}catch(p){if(p.code==="ENOENT"||p.code==="ENOTDIR")continue;throw p}let h=DS(l.content,l.path),d=s.get(h);d||(d=new Set,s.set(h,d)),d.add(l.path)}let c=["must not have multiple workspaces with the same name"];for(let[f,l]of s)l.size>1?Cj(c,f,l):i.set(f,l.values().next().value);if(c.length>1)throw uc({Type:Error,message:c.join(`
18
- `),code:"EDUPLICATEWORKSPACE"});return i}function Cj(e,t,r){e.push(`package '${t}' has conflicts in the following paths:`);for(let n of r)e.push(" "+n)}LS.virtual=function(e={}){if(!e||!e.lockfile)throw uc({message:"mapWorkspaces.virtual missing lockfile info",code:"EMAPWORKSPACESLOCKFILE"});e.cwd||(e.cwd=process.cwd());let{packages:t={}}=e.lockfile,{workspaces:r=[]}=t[""]||{},n=new Map,{patterns:i,negatedPatterns:s}=FS(r);if(!i.length&&!s.length)return n;s.push("**/node_modules/**");let o=Object.keys(t);for(let a of s)for(let u of qo.match(o,a))o.splice(o.indexOf(u),1);for(let a of i)for(let u of qo.match(o,a)){let c=RS.join(e.cwd,u),f=DS(t[u],c);n.set(c,f)}return Sj(n)};kS.exports=LS});var jS=F((FK,MS)=>{var{walkUp:xj}=ay(),IS=Cf(),hn=Ff(),{log:nr,time:Oj}=tu(),{resolve:Ho,dirname:cc,join:Sd}=require("node:path"),{homedir:Pj}=require("node:os"),{readFile:_j,writeFile:Rj,chmod:Fj,unlink:Dj,stat:NS,mkdir:Lj}=require("node:fs/promises"),kj=["npm-version","global-prefix","local-prefix"],Cd=(...e)=>NS(Ho(...e)).then(t=>t.isFile()).catch(()=>!1),Tj=(...e)=>NS(Ho(...e)).then(t=>t.isDirectory()).catch(()=>!1),lc=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),as=uu(),xi=Hy(),Ij=Bf(),Nj=Ky(),$j=Zy(),$S=new Set(["global","user","project"]),Go=new Set(["default","builtin",...$S,"env","cli"]),xd=class{#e=!1;#r;#t=null;static get typeDefs(){return as}constructor({definitions:t,shorthands:r,flatten:n,nerfDarts:i=[],npmPath:s,env:o=process.env,argv:a=process.argv,platform:u=process.platform,execPath:c=process.execPath,cwd:f=process.cwd(),excludeNpmCwd:l=!1}){this.nerfDarts=i,this.definitions=t;let h={},d={};this.deprecated={};for(let[m,O]of Object.entries(t))d[m]=O.default,h[m]=O.type,O.deprecated&&(this.deprecated[m]=O.deprecated.trim().replace(/\n +/,`
19
- `));this.#r=n,this.types=h,this.shorthands=r,this.defaults=d,this.npmPath=s,this.npmBin=Sd(this.npmPath,"bin/npm-cli.js"),this.argv=a,this.env=o,this.execPath=c,this.platform=u,this.cwd=f,this.excludeNpmCwd=l,this.globalPrefix=null,this.localPrefix=null,this.localPackage=null,this.home=null;let p=[...Go];this.data=new Map;let y=null;for(let m of p)this.data.set(m,y=new Od(y));this.data.set=()=>{throw new Error("cannot change internal config data structure")},this.data.delete=()=>{throw new Error("cannot change internal config data structure")},this.sources=new Map([]),this.list=[];for(let{data:m}of this.data.values())this.list.unshift(m);Object.freeze(this.list),this.#e=!1}get loaded(){return this.#e}get prefix(){return this.#n("global")?this.globalPrefix:this.localPrefix}find(t){if(!this.loaded)throw new Error("call config.load() before reading values");let r=[...this.data.entries()];for(let n=r.length-1;n>-1;n--){let[i,{data:s}]=r[n];if(lc(s,t))return i}return null}get(t,r){if(!this.loaded)throw new Error("call config.load() before reading values");return this.#n(t,r)}#n(t,r=null){if(r!==null&&!Go.has(r))throw new Error("invalid config location param: "+r);let{data:n}=this.data.get(r||"cli");return r===null||lc(n,t)?n[t]:void 0}set(t,r,n="cli"){if(!this.loaded)throw new Error("call config.load() before setting values");if(!Go.has(n))throw new Error("invalid config location param: "+n);this.#d(t);let{data:i,raw:s}=this.data.get(n);i[t]=r,["global","user","project"].includes(n)&&(s[t]=r),this.data.get(n)[us]=null,this.#t=null}get flat(){if(this.#t)return this.#t;let t=Oj.start("config:load:flatten");this.#t={};for(let{data:r}of this.data.values())this.#r(r,this.#t);return this.#t.nodeBin=this.execPath,this.#t.npmBin=this.npmBin,t(),this.#t}delete(t,r="cli"){if(!this.loaded)throw new Error("call config.load() before deleting values");if(!Go.has(r))throw new Error("invalid config location param: "+r);let{data:n,raw:i}=this.data.get(r);delete n[t],["global","user","project"].includes(r)&&delete i[t]}async load(){if(this.loaded)throw new Error("attempting to load npm config multiple times");this.loadDefaults(),await this.loadBuiltinConfig(),this.loadCLI(),this.loadEnv(),await this.loadProjectConfig(),await this.loadUserConfig(),await this.loadGlobalConfig(),this.#e=!0,this.globalPrefix=this.get("prefix"),this.setEnvs()}loadDefaults(){this.loadGlobalPrefix(),this.loadHome();let t={...this.defaults,prefix:this.globalPrefix};try{t["npm-version"]=require(Sd(this.npmPath,"package.json")).version}catch{}this.#h(t,"default","default values");let{data:r}=this.data.get("default");Object.defineProperty(r,"globalconfig",{get:()=>Ho(this.#n("prefix"),"etc/npmrc"),set(n){Object.defineProperty(r,"globalconfig",{value:n,configurable:!0,writable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}loadHome(){this.home=this.env.HOME||Pj()}loadGlobalPrefix(){if(this.globalPrefix)throw new Error("cannot load default global prefix more than once");this.env.PREFIX?this.globalPrefix=this.env.PREFIX:this.platform==="win32"?this.globalPrefix=cc(this.execPath):(this.globalPrefix=cc(cc(this.execPath)),this.env.DESTDIR&&(this.globalPrefix=Sd(this.env.DESTDIR,this.globalPrefix)))}loadEnv(){let t=Object.create(null);for(let[r,n]of Object.entries(this.env)){if(!/^npm_config_/i.test(r)||n==="")continue;let i=r.slice(11);i.startsWith("//")||(i=i.replace(/(?!^)_/g,"-").toLowerCase()),t[i]=n}this.#h(t,"env","environment")}loadCLI(){for(let r of Object.keys(this.shorthands))r.length>1&&this.argv.includes(`-${r}`)&&nr.warn(`-${r} is not a valid single-hyphen cli flag and will be removed in the future`);hn.invalidHandler=(r,n,i)=>this.invalidHandler(r,n,i,"command line options","cli"),hn.unknownHandler=this.unknownHandler,hn.abbrevHandler=this.abbrevHandler;let t=hn(this.types,this.shorthands,this.argv);hn.invalidHandler=null,hn.unknownHandler=null,this.parsedArgv=t.argv,delete t.argv,this.#h(t,"cli","command line options")}get valid(){for(let[t,{valid:r}]of this.data.entries())if(r===!1||r===null&&!this.validate(t))return!1;return!0}validate(t){if(t){let r=this.data.get(t);return r[us]=!0,hn.invalidHandler=(n,i,s)=>this.invalidHandler(n,i,s,r.source,t),hn.clean(r.data,this.types,as),hn.invalidHandler=null,r[us]}else{let r=!0,n=[];for(let i of this.data.keys()){if(i==="default"||i==="builtin"||i==="cli")continue;let s=this.validate(i);if(r=r&&s,["global","user","project"].includes(i)){for(let a of["_authtoken","-authtoken"])this.get(a,i)&&n.push({action:"delete",key:a,where:i});let o=xi(this.get("registry"));for(let a of["_auth","_authToken","username","_password"])this.get(a,i)&&(a==="username"&&!this.get("_password",i)?n.push({action:"delete",key:a,where:i}):a==="_password"&&!this.get("username",i)?n.push({action:"delete",key:a,where:i}):n.push({action:"rename",from:a,to:`${o}:${a}`,where:i}))}}if(n.length){let{ErrInvalidAuth:i}=tv();throw new i(n)}return r}}repair(t){if(!t)try{this.validate()}catch(r){if(r.code!=="ERR_INVALID_AUTH")throw r;t=r.problems}finally{t||(t=[])}for(let r of t)if(r.action==="delete")this.delete(r.key,r.where);else if(r.action==="rename"){let n=this.data.get(r.where).raw?.[r.from],i=this.get(r.from,r.where);this.set(r.to,n||i,r.where),this.delete(r.from,r.where)}}isDefault(t){let[r,...n]=[...Go],i=this.data.get(r).data;return lc(i,t)&&n.every(s=>{let o=this.data.get(s).data;return!lc(o,t)})}invalidHandler(t,r,n,i,s){let o=iv();nr.warn("invalid config",t+"="+JSON.stringify(r),`set in ${i}`),this.data.get(s)[us]=!1,Array.isArray(n)&&(n.includes(as.url.type)?n=as.url.type:n.includes(as.path.type)&&(n=as.path.type));let a=o(n),u=a.filter(l=>l!==void 0&&l!==Array),c="Must be"+this.#o(u,a),f=u.length===1?u[0]:[...new Set(u.map(l=>typeof l=="string"?l:JSON.stringify(l)))].join(", ");nr.warn("invalid config",c,f)}abbrevHandler(t,r){nr.warn(`Expanding --${t} to --${r}. This will stop working in the next major version of npm.`)}unknownHandler(t,r){r&&nr.warn(`"${r}" is being parsed as a normal command line argument.`)}#o(t,r){let n;return t.length===1&&r.includes(Array)?n=" one or more":t.length>1&&r.includes(Array)?n=" one or more of:":t.length>1?n=" one of:":n="",n}#h(t,r,n,i=null){let s=this.data.get(r);if(s.source){let o=`double-loading "${r}" configs from ${n}, previously loaded from ${s.source}`;throw new Error(o)}if(this.sources.has(n)){let o=`double-loading config "${n}" as "${r}", previously loaded as "${this.sources.get(n)}"`;throw new Error(o)}if(s.source=n,this.sources.set(n,r),i)s.loadError=i,i.code!=="ENOENT"&&nr.verbose("config",`error loading ${r} config`,i);else{s.raw=t;for(let[o,a]of Object.entries(t)){let u=Ij(o,this.env),c=this.parseField(a,u);if(r!=="default"&&(this.#d(u),this.definitions[o]?.exclusive)){for(let f of this.definitions[o].exclusive)if(!this.isDefault(f))throw new TypeError(`--${o} cannot be provided when using --${f}`)}(r!=="default"||o==="npm-version")&&this.checkUnknown(r,o),s.data[u]=c}}}checkUnknown(t,r){if(!this.definitions[r]){if(kj.includes(r))return;if(!r.includes(":")){nr.warn(`Unknown ${t} config "${t==="cli"?"--":""}${r}". This will stop working in the next major version of npm.`);return}let n=r.split(":").pop();!this.definitions[n]&&!this.nerfDarts.includes(n)&&nr.warn(`Unknown ${t} config "${n}" (${r}). This will stop working in the next major version of npm.`)}}#d(t){this.deprecated[t]&&nr.warn("config",t,this.deprecated[t])}parseField(t,r,n=!1){return Nj(t,r,this,n)}async#u(t,r){nr.silly("config",`load:file:${t}`),await _j(t,"utf8").then(n=>{let i=IS.parse(n);return r==="project"&&i.prefix&&nr.error("config",`prefix cannot be changed from project config: ${t}.`),this.#h(i,r,t)},n=>this.#h(null,r,t,n))}loadBuiltinConfig(){return this.#u(Ho(this.npmPath,"npmrc"),"builtin")}async loadProjectConfig(){if(await this.loadLocalPrefix(),this.localPackage==null&&(this.localPackage=await Cd(this.localPrefix,"package.json")),this.#n("global")===!0||this.#n("location")==="global"){this.data.get("project").source="(global mode enabled, ignored)",this.sources.set(this.data.get("project").source,"project");return}let t=Ho(this.localPrefix,".npmrc");if(t!==this.#n("userconfig"))return this.#u(t,"project");this.data.get("project").source='(same as "user" config, ignored)',this.sources.set(this.data.get("project").source,"project")}async loadLocalPrefix(){let t=this.#n("prefix","cli");if(t){this.localPrefix=t;return}let r=this.#n("workspaces","cli"),n=this.#n("global")||this.#n("location")==="global";for(let i of xj(this.cwd)){if(this.excludeNpmCwd&&i===this.npmPath)break;let s=await Cd(i,"package.json");if(!this.localPrefix&&(s||await Tj(i,"node_modules"))){if(this.localPrefix=i,this.localPackage=s,r===!1||n)return;continue}if(this.localPrefix&&s){let o=wd(),{content:a}=await o.normalize(i).catch(()=>({content:{}}));if(!a?.workspaces)continue;let c=await TS()({cwd:i,pkg:a});for(let f of c.values())if(f===this.localPrefix){await Cd(this.localPrefix,".npmrc")&&nr.warn("config",`ignoring workspace config at ${this.localPrefix}/.npmrc`);let{data:l}=this.data.get("default");l.workspace=[this.localPrefix],this.localPrefix=i,this.localPackage=s,nr.info("config",`found workspace root at ${this.localPrefix}`);return}}}this.localPrefix||(this.localPrefix=this.cwd)}loadUserConfig(){return this.#u(this.#n("userconfig"),"user")}loadGlobalConfig(){return this.#u(this.#n("globalconfig"),"global")}async save(t){if(!this.loaded)throw new Error("call config.load() before saving");if(!$S.has(t))throw new Error("invalid config location param: "+t);let r=this.data.get(t);if(r[Uo]=null,t==="user"){let o=xi(this.get("registry")),a=this.get(`${o}:email`,"user");a&&(this.delete(`${o}:email`,"user"),this.set("email",a,"user"))}let n=IS.stringify(r.raw).trim()+`
20
- `;if(!n.trim()){await Dj(r.source).catch(()=>{});return}let i=cc(r.source);await Lj(i,{recursive:!0}),await Rj(r.source,n,"utf8");let s=t==="user"?384:438;await Fj(r.source,s)}clearCredentialsByURI(t,r="user"){let n=xi(t);if(xi(this.get("registry"))===n){this.delete("-authtoken",r),this.delete("_authToken",r),this.delete("_authtoken",r),this.delete("_auth",r),this.delete("_password",r),this.delete("username",r);let s=this.get(`${n}:email`,r);s&&this.set("email",s,r)}this.delete(`${n}:_authToken`,r),this.delete(`${n}:_auth`,r),this.delete(`${n}:_password`,r),this.delete(`${n}:username`,r),this.delete(`${n}:email`,r),this.delete(`${n}:certfile`,r),this.delete(`${n}:keyfile`,r)}setCredentialsByURI(t,{token:r,username:n,password:i,certfile:s,keyfile:o}){let a=xi(t);if(this.delete(`${a}:always-auth`,"user"),this.delete(`${a}:email`,"user"),s&&o&&(this.set(`${a}:certfile`,s,"user"),this.set(`${a}:keyfile`,o,"user")),r)this.set(`${a}:_authToken`,r,"user"),this.delete(`${a}:_password`,"user"),this.delete(`${a}:username`,"user");else if(n||i){if(!n)throw new Error("must include username");if(!i)throw new Error("must include password");this.delete(`${a}:_authToken`,"user"),this.set(`${a}:username`,n,"user");let u=Buffer.from(i,"utf8").toString("base64");this.set(`${a}:_password`,u,"user")}else if(!s||!o)throw new Error("No credentials to set.")}getCredentialsByURI(t){let r=xi(t),n=xi(this.get("registry")),i={},s=this.get(`${r}:email`)||this.get("email");s&&(r===n&&this.set("email",s,"user"),i.email=s);let o=this.get(`${r}:certfile`),a=this.get(`${r}:keyfile`);o&&a&&(i.certfile=o,i.keyfile=a);let u=this.get(`${r}:_authToken`);if(u)return i.token=u,i;let c=this.get(`${r}:username`),f=this.get(`${r}:_password`);if(c&&f){i.username=c,i.password=Buffer.from(f,"base64").toString("utf8");let h=`${i.username}:${i.password}`;return i.auth=Buffer.from(h,"utf8").toString("base64"),i}let l=this.get(`${r}:_auth`);if(l){let d=Buffer.from(l,"base64").toString("utf8").split(":");return i.username=d.shift(),i.password=d.join(":"),i.auth=l,i}return i}setEnvs(){$j(this)}},Uo=Symbol("loadError"),us=Symbol("valid"),Od=class{#e;#r=null;#t=null;constructor(t){this.#e=Object.create(t&&t.data),this.#t={},this[us]=!0}get data(){return this.#e}get valid(){return this[us]}set source(t){if(this.#r)throw new Error("cannot set ConfigData source more than once");this.#r=t}get source(){return this.#r}set loadError(t){if(this[Uo]||Object.keys(this.#t).length)throw new Error("cannot set ConfigData loadError after load");this[Uo]=t}get loadError(){return this[Uo]}set raw(t){if(Object.keys(this.#t).length||this[Uo])throw new Error("cannot set ConfigData raw after load");this.#t=t}get raw(){return this.#t}};MS.exports=xd});var zo=F(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.getPackageDependencies=void 0;function Mj(e,t){let r=e.dependencies?.[t]||e.devDependencies?.[t]||e.peerDependencies?.[t]||e.optionalDependencies?.[t];return r?!r.startsWith("npm:")&&!r.startsWith("file:"):!1}function jj(e,t,r={withDevDependencies:!0}){let n=[];if(e.dependencies)for(let s of Object.keys(e.dependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.devDependencies&&r.withDevDependencies)for(let s of Object.keys(e.devDependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.peerDependencies&&r.withPeerDependencies)for(let s of Object.keys(e.peerDependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.optionalDependencies&&r.withOptionalDependencies)for(let s of Object.keys(e.optionalDependencies))s!==e.name&&t.has(s)&&n.push(s);return n.filter(s=>Mj(e,s))}fc.getPackageDependencies=jj});var ls=F(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.isCachingEnabled=cs.setCachingEnabled=void 0;var BS=!0;function Bj(e){BS=e}cs.setCachingEnabled=Bj;function Wj(){return BS}cs.isCachingEnabled=Wj});var WS=F($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.getTransitiveProviders=$n.getTransitiveConsumers=$n.getDependentMap=void 0;var qj=zo(),Gj=ls(),Pd=new Map;function Uj(e,t=[]){return JSON.stringify({packages:e,scope:t})}function _d(e,t=[]){let r=new Set(Object.keys(e)),n=Uj(e,t);if((0,Gj.isCachingEnabled)()&&Pd.has(n))return Pd.get(n);let i=[],s=new Set,o=t.length>0?[...t]:Object.keys(e);for(;o.length>0;){let a=o.pop();if(s.has(a))continue;s.add(a);let u=e[a],c=(0,qj.getPackageDependencies)(u,r);if(c.length>0)for(let f of c)o.push(f),i.push([f,a]);else i.push([null,a])}return Pd.set(n,i),i}function Hj(e){let t=_d(e),r=new Map;for(let[n,i]of t)r.has(i)||r.set(i,new Set),n&&r.get(i).add(n);return r}$n.getDependentMap=Hj;function zj(e,t,r=[]){let n=_d(t,r),i=[...e],s=new Set;for(;i.length>0;){let o=i.shift();if(!s.has(o)){s.add(o);for(let[a,u]of n)a===o&&i.push(u)}}return[...s].filter(o=>!e.includes(o))}$n.getTransitiveConsumers=zj;function Yj(e,t){let r=_d(t),n=[...e],i=new Set;for(;n.length>0;){let s=n.shift();if(!i.has(s)){i.add(s);for(let[o,a]of r)a===s&&o&&n.push(o)}}return[...i].filter(s=>!e.includes(s))}$n.getTransitiveProviders=Yj});var qS=F(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.getInternalDeps=vr.getTransitiveConsumers=vr.getTransitiveDependents=vr.getTransitiveProviders=vr.getTransitiveDependencies=void 0;var hc=WS();Object.defineProperty(vr,"getTransitiveConsumers",{enumerable:!0,get:function(){return hc.getTransitiveConsumers}});Object.defineProperty(vr,"getTransitiveProviders",{enumerable:!0,get:function(){return hc.getTransitiveProviders}});var Vj=zo();vr.getTransitiveDependencies=hc.getTransitiveProviders;vr.getTransitiveDependents=hc.getTransitiveConsumers;vr.getInternalDeps=Vj.getPackageDependencies});var Rd=F(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.infoFromPackageJson=void 0;function Kj(e,t){return{packageJsonPath:t,...e}}dc.infoFromPackageJson=Kj});var Fd=F(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.getWorkspaceRoot=void 0;var Xj=fs();function Jj(e,t){return(0,Xj.getWorkspaceManagerAndRoot)(e,void 0,t)?.root}pc.getWorkspaceRoot=Jj});var Vo=F(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.gitFailFast=Ar.git=Ar.clearGitObservers=Ar.addGitObserver=Ar.GitError=void 0;var Qj=require("child_process"),Yo=class extends Error{constructor(t,r){r instanceof Error?super(`${t}: ${r.message}`):super(t),this.originalError=r}};Ar.GitError=Yo;var Zj=process.env.GIT_MAX_BUFFER?parseInt(process.env.GIT_MAX_BUFFER):500*1024*1024,GS=!!process.env.GIT_DEBUG,hs=[],Dd;function eB(e){return hs.push(e),()=>rB(e)}Ar.addGitObserver=eB;function tB(){hs.splice(0,hs.length)}Ar.clearGitObservers=tB;function rB(e){let t=hs.indexOf(e);t>-1&&hs.splice(t,1)}function US(e,t){if(GS&&console.log(`git ${e.join(" ")}`),e.some(i=>i.startsWith("--upload-pack")))throw new Yo("git command contains --upload-pack, which is not allowed: "+e.join(" "));let r=(0,Qj.spawnSync)("git",e,{maxBuffer:Zj,...t,shell:!1}),n={...r,stderr:(r.stderr||"").toString().trimEnd(),stdout:(r.stdout||"").toString().trimEnd(),success:r.status===0};if(GS&&(console.log("exited with code "+r.status),n.stdout&&console.log(`git stdout:
21
- `,n.stdout),n.stderr&&console.warn(`git stderr:
22
- `,n.stderr)),!Dd){Dd=!0;for(let i of hs)i(e,n);Dd=!1}return n}Ar.git=US;function nB(e,t){let r=US(e,t);if(!r.success)throw t?.noExitCode||(process.exitCode=1),new Yo(`CRITICAL ERROR: running git command: git ${e.join(" ")}!
10
+ >>> no match, partial?`,t,h,r,d),h===u))}let y;if(typeof f=="string"?(y=l===f,this.debug("string match",f,l,y)):(y=f.test(l),this.debug("pattern match",f,l,y)),!y)return!1}if(o===u&&a===c)return!0;if(o===u)return n;if(a===c)return o===u-1&&t[o]==="";throw new Error("wtf?")}braceExpand(){return(0,pe.braceExpand)(this.pattern,this.options)}parse(t){(0,_u.assertValidPattern)(t);let r=this.options;if(t==="**")return pe.GLOBSTAR;if(t==="")return"";let n,i=null;(n=t.match(ZL))?i=r.dot?tT:eT:(n=t.match(GL))?i=(r.nocase?r.dot?YL:zL:r.dot?HL:UL)(n[1]):(n=t.match(rT))?i=(r.nocase?r.dot?iT:nT:r.dot?sT:oT)(n):(n=t.match(VL))?i=r.dot?JL:KL:(n=t.match(XL))&&(i=QL);let s=aA.AST.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?uT:r.dot?cT:lT,i=new Set(r.nocase?["i"]:[]),s=t.map(u=>{let c=u.map(l=>{if(l instanceof RegExp)for(let h of l.flags.split(""))i.add(h);return typeof l=="string"?mT(l):l===pe.GLOBSTAR?pe.GLOBSTAR:l._src});c.forEach((l,h)=>{let d=c[h+1],p=c[h-1];l!==pe.GLOBSTAR||p===pe.GLOBSTAR||(p===void 0?d!==void 0&&d!==pe.GLOBSTAR?c[h+1]="(?:\\/|"+n+"\\/)?"+d:c[h]=n:d===void 0?c[h-1]=p+"(?:\\/|\\/"+n+")?":d!==pe.GLOBSTAR&&(c[h-1]=p+"(?:\\/|\\/"+n+"\\/)"+d,c[h+1]=pe.GLOBSTAR))});let f=c.filter(l=>l!==pe.GLOBSTAR);if(this.partial&&f.length>=1){let l=[];for(let h=1;h<=f.length;h++)l.push(f.slice(0,h).join("/"));return"(?:"+l.join("|")+")"}return f.join("/")}).join("|"),[o,a]=t.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.partial&&(s="^(?:\\/|"+o+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let o=i[i.length-1];if(!o)for(let a=i.length-2;!o&&a>=0;a--)o=i[a];for(let a=0;a<s.length;a++){let u=s[a],c=i;if(n.matchBase&&u.length===1&&(c=[o]),this.matchOne(c,u,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return pe.minimatch.defaults(t).Minimatch}};pe.Minimatch=Ai;var yT=hh();Object.defineProperty(pe,"AST",{enumerable:!0,get:function(){return yT.AST}});var vT=dh();Object.defineProperty(pe,"escape",{enumerable:!0,get:function(){return vT.escape}});var AT=Su();Object.defineProperty(pe,"unescape",{enumerable:!0,get:function(){return AT.unescape}});pe.minimatch.AST=aA.AST;pe.minimatch.Minimatch=Ai;pe.minimatch.escape=BL.escape;pe.minimatch.unescape=WL.unescape});var bh=F(Lt=>{"use strict";var ET=Lt&&Lt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.Minipass=Lt.isWritable=Lt.isReadable=Lt.isStream=void 0;var fA=typeof process=="object"&&process?process:{stdout:null,stderr:null},Eh=require("node:events"),gA=ET(require("node:stream")),bT=require("node:string_decoder"),wT=e=>!!e&&typeof e=="object"&&(e instanceof Iu||e instanceof gA.default||(0,Lt.isReadable)(e)||(0,Lt.isWritable)(e));Lt.isStream=wT;var ST=e=>!!e&&typeof e=="object"&&e instanceof Eh.EventEmitter&&typeof e.pipe=="function"&&e.pipe!==gA.default.Writable.prototype.pipe;Lt.isReadable=ST;var CT=e=>!!e&&typeof e=="object"&&e instanceof Eh.EventEmitter&&typeof e.write=="function"&&typeof e.end=="function";Lt.isWritable=CT;var un=Symbol("EOF"),cn=Symbol("maybeEmitEnd"),Ln=Symbol("emittedEnd"),Ru=Symbol("emittingEnd"),ho=Symbol("emittedError"),Fu=Symbol("closed"),hA=Symbol("read"),ku=Symbol("flush"),dA=Symbol("flushChunk"),Dr=Symbol("encoding"),ts=Symbol("decoder"),lt=Symbol("flowing"),po=Symbol("paused"),rs=Symbol("resume"),ft=Symbol("buffer"),Dt=Symbol("pipes"),ht=Symbol("bufferLength"),ph=Symbol("bufferPush"),Du=Symbol("bufferShift"),vt=Symbol("objectMode"),Xe=Symbol("destroyed"),gh=Symbol("error"),mh=Symbol("emitData"),pA=Symbol("emitEnd"),yh=Symbol("emitEnd2"),Gr=Symbol("async"),vh=Symbol("abort"),Lu=Symbol("aborted"),go=Symbol("signal"),Ei=Symbol("dataListeners"),nr=Symbol("discarded"),mo=e=>Promise.resolve().then(e),xT=e=>e(),PT=e=>e==="end"||e==="finish"||e==="prefinish",OT=e=>e instanceof ArrayBuffer||!!e&&typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,_T=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),Tu=class{src;dest;opts;ondrain;constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[rs](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ah=class extends Tu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}},RT=e=>!!e.objectMode,FT=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer",Iu=class extends Eh.EventEmitter{[lt]=!1;[po]=!1;[Dt]=[];[ft]=[];[vt];[Dr];[Gr];[ts];[un]=!1;[Ln]=!1;[Ru]=!1;[Fu]=!1;[ho]=null;[ht]=0;[Xe]=!1;[go];[Lu]=!1;[Ei]=0;[nr]=!1;writable=!0;readable=!0;constructor(...t){let r=t[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");RT(r)?(this[vt]=!0,this[Dr]=null):FT(r)?(this[Dr]=r.encoding,this[vt]=!1):(this[vt]=!1,this[Dr]=null),this[Gr]=!!r.async,this[ts]=this[Dr]?new bT.StringDecoder(this[Dr]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ft]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Dt]});let{signal:n}=r;n&&(this[go]=n,n.aborted?this[vh]():n.addEventListener("abort",()=>this[vh]()))}get bufferLength(){return this[ht]}get encoding(){return this[Dr]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[vt]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Gr]}set async(t){this[Gr]=this[Gr]||!!t}[vh](){this[Lu]=!0,this.emit("abort",this[go]?.reason),this.destroy(this[go]?.reason)}get aborted(){return this[Lu]}set aborted(t){}write(t,r,n){if(this[Lu])return!1;if(this[un])throw new Error("write after end");if(this[Xe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Gr]?mo:xT;if(!this[vt]&&!Buffer.isBuffer(t)){if(_T(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(OT(t))t=Buffer.from(t);else if(typeof t!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[vt]?(this[lt]&&this[ht]!==0&&this[ku](!0),this[lt]?this.emit("data",t):this[ph](t),this[ht]!==0&&this.emit("readable"),n&&i(n),this[lt]):t.length?(typeof t=="string"&&!(r===this[Dr]&&!this[ts]?.lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[Dr]&&(t=this[ts].write(t)),this[lt]&&this[ht]!==0&&this[ku](!0),this[lt]?this.emit("data",t):this[ph](t),this[ht]!==0&&this.emit("readable"),n&&i(n),this[lt]):(this[ht]!==0&&this.emit("readable"),n&&i(n),this[lt])}read(t){if(this[Xe])return null;if(this[nr]=!1,this[ht]===0||t===0||t&&t>this[ht])return this[cn](),null;this[vt]&&(t=null),this[ft].length>1&&!this[vt]&&(this[ft]=[this[Dr]?this[ft].join(""):Buffer.concat(this[ft],this[ht])]);let r=this[hA](t||null,this[ft][0]);return this[cn](),r}[hA](t,r){if(this[vt])this[Du]();else{let n=r;t===n.length||t===null?this[Du]():typeof n=="string"?(this[ft][0]=n.slice(t),r=n.slice(0,t),this[ht]-=t):(this[ft][0]=n.subarray(t),r=n.subarray(0,t),this[ht]-=t)}return this.emit("data",r),!this[ft].length&&!this[un]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r="utf8"),t!==void 0&&this.write(t,r),n&&this.once("end",n),this[un]=!0,this.writable=!1,(this[lt]||!this[po])&&this[cn](),this}[rs](){this[Xe]||(!this[Ei]&&!this[Dt].length&&(this[nr]=!0),this[po]=!1,this[lt]=!0,this.emit("resume"),this[ft].length?this[ku]():this[un]?this[cn]():this.emit("drain"))}resume(){return this[rs]()}pause(){this[lt]=!1,this[po]=!0,this[nr]=!1}get destroyed(){return this[Xe]}get flowing(){return this[lt]}get paused(){return this[po]}[ph](t){this[vt]?this[ht]+=1:this[ht]+=t.length,this[ft].push(t)}[Du](){return this[vt]?this[ht]-=1:this[ht]-=this[ft][0].length,this[ft].shift()}[ku](t=!1){do;while(this[dA](this[Du]())&&this[ft].length);!t&&!this[ft].length&&!this[un]&&this.emit("drain")}[dA](t){return this.emit("data",t),this[lt]}pipe(t,r){if(this[Xe])return t;this[nr]=!1;let n=this[Ln];return r=r||{},t===fA.stdout||t===fA.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[Dt].push(r.proxyErrors?new Ah(this,t,r):new Tu(this,t,r)),this[Gr]?mo(()=>this[rs]()):this[rs]()),t}unpipe(t){let r=this[Dt].find(n=>n.dest===t);r&&(this[Dt].length===1?(this[lt]&&this[Ei]===0&&(this[lt]=!1),this[Dt]=[]):this[Dt].splice(this[Dt].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);if(t==="data")this[nr]=!1,this[Ei]++,!this[Dt].length&&!this[lt]&&this[rs]();else if(t==="readable"&&this[ht]!==0)super.emit("readable");else if(PT(t)&&this[Ln])super.emit(t),this.removeAllListeners(t);else if(t==="error"&&this[ho]){let i=r;this[Gr]?mo(()=>i.call(this,this[ho])):i.call(this,this[ho])}return n}removeListener(t,r){return this.off(t,r)}off(t,r){let n=super.off(t,r);return t==="data"&&(this[Ei]=this.listeners("data").length,this[Ei]===0&&!this[nr]&&!this[Dt].length&&(this[lt]=!1)),n}removeAllListeners(t){let r=super.removeAllListeners(t);return(t==="data"||t===void 0)&&(this[Ei]=0,!this[nr]&&!this[Dt].length&&(this[lt]=!1)),r}get emittedEnd(){return this[Ln]}[cn](){!this[Ru]&&!this[Ln]&&!this[Xe]&&this[ft].length===0&&this[un]&&(this[Ru]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Fu]&&this.emit("close"),this[Ru]=!1)}emit(t,...r){let n=r[0];if(t!=="error"&&t!=="close"&&t!==Xe&&this[Xe])return!1;if(t==="data")return!this[vt]&&!n?!1:this[Gr]?(mo(()=>this[mh](n)),!0):this[mh](n);if(t==="end")return this[pA]();if(t==="close"){if(this[Fu]=!0,!this[Ln]&&!this[Xe])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[ho]=n,super.emit(gh,n);let s=!this[go]||this.listeners("error").length?super.emit("error",n):!1;return this[cn](),s}else if(t==="resume"){let s=super.emit("resume");return this[cn](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,...r);return this[cn](),i}[mh](t){for(let n of this[Dt])n.dest.write(t)===!1&&this.pause();let r=this[nr]?!1:super.emit("data",t);return this[cn](),r}[pA](){return this[Ln]?!1:(this[Ln]=!0,this.readable=!1,this[Gr]?(mo(()=>this[yh]()),!0):this[yh]())}[yh](){if(this[ts]){let r=this[ts].end();if(r){for(let n of this[Dt])n.dest.write(r);this[nr]||super.emit("data",r)}}for(let r of this[Dt])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){let t=Object.assign([],{dataLength:0});this[vt]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[vt]||(t.dataLength+=n.length)}),await r,t}async concat(){if(this[vt])throw new Error("cannot concat in objectMode");let t=await this.collect();return this[Dr]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,r)=>{this.on(Xe,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[nr]=!1;let t=!1,r=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[un])return r();let s,o,a=l=>{this.off("data",u),this.off("end",c),this.off(Xe,f),r(),o(l)},u=l=>{this.off("error",a),this.off("end",c),this.off(Xe,f),this.pause(),s({value:l,done:!!this[un]})},c=()=>{this.off("error",a),this.off("data",u),this.off(Xe,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((l,h)=>{o=h,s=l,this.once(Xe,f),this.once("error",a),this.once("end",c),this.once("data",u)})},throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[nr]=!1;let t=!1,r=()=>(this.pause(),this.off(gh,r),this.off(Xe,r),this.off("end",r),t=!0,{done:!0,value:void 0}),n=()=>{if(t)return r();let i=this.read();return i===null?r():{done:!1,value:i}};return this.once("end",r),this.once(gh,r),this.once(Xe,r),{next:n,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(t){if(this[Xe])return t?this.emit("error",t):this.emit(Xe),this;this[Xe]=!0,this[nr]=!0,this[ft].length=0,this[ht]=0;let r=this;return typeof r.close=="function"&&!this[Fu]&&r.close(),t?this.emit("error",t):this.emit(Xe),this}static get isStream(){return Lt.isStream}};Lt.Minipass=Iu});var RA=F(De=>{"use strict";var kT=De&&De.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),DT=De&&De.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),LT=De&&De.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&kT(t,e,r);return DT(t,e),t};Object.defineProperty(De,"__esModule",{value:!0});De.PathScurry=De.Path=De.PathScurryDarwin=De.PathScurryPosix=De.PathScurryWin32=De.PathScurryBase=De.PathPosix=De.PathWin32=De.PathBase=De.ChildrenCache=De.ResolveCache=void 0;var Gu=yu(),Bu=require("node:path"),TT=require("node:url"),vo=require("fs"),IT=LT(require("node:fs")),NT=vo.realpathSync.native,Nu=require("node:fs/promises"),mA=bh(),Ao={lstatSync:vo.lstatSync,readdir:vo.readdir,readdirSync:vo.readdirSync,readlinkSync:vo.readlinkSync,realpathSync:NT,promises:{lstat:Nu.lstat,readdir:Nu.readdir,readlink:Nu.readlink,realpath:Nu.realpath}},bA=e=>!e||e===Ao||e===IT?Ao:{...Ao,...e,promises:{...Ao.promises,...e.promises||{}}},wA=/^\\\\\?\\([a-z]:)\\?$/i,$T=e=>e.replace(/\//g,"\\").replace(wA,"$1\\"),MT=/[\\\/]/,gr=0,SA=1,CA=2,Ur=4,xA=6,PA=8,bi=10,OA=12,pr=15,yo=~pr,wh=16,yA=32,Eo=64,Lr=128,$u=256,ju=512,vA=Eo|Lr|ju,jT=1023,Sh=e=>e.isFile()?PA:e.isDirectory()?Ur:e.isSymbolicLink()?bi:e.isCharacterDevice()?CA:e.isBlockDevice()?xA:e.isSocket()?OA:e.isFIFO()?SA:gr,AA=new Gu.LRUCache({max:2**12}),bo=e=>{let t=AA.get(e);if(t)return t;let r=e.normalize("NFKD");return AA.set(e,r),r},EA=new Gu.LRUCache({max:2**12}),Mu=e=>{let t=EA.get(e);if(t)return t;let r=bo(e.toLowerCase());return EA.set(e,r),r},wo=class extends Gu.LRUCache{constructor(){super({max:256})}};De.ResolveCache=wo;var Wu=class extends Gu.LRUCache{constructor(t=16*1024){super({maxSize:t,sizeCalculation:r=>r.length+1})}};De.ChildrenCache=Wu;var _A=Symbol("PathScurry setAsCwd"),gt=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#t;get mode(){return this.#t}#n;get nlink(){return this.#n}#o;get uid(){return this.#o}#h;get gid(){return this.#h}#d;get rdev(){return this.#d}#u;get blksize(){return this.#u}#a;get ino(){return this.#a}#p;get size(){return this.#p}#f;get blocks(){return this.#f}#c;get atimeMs(){return this.#c}#i;get mtimeMs(){return this.#i}#m;get ctimeMs(){return this.#m}#b;get birthtimeMs(){return this.#b}#E;get atime(){return this.#E}#y;get mtime(){return this.#y}#_;get ctime(){return this.#_}#v;get birthtime(){return this.#v}#S;#P;#A;#w;#O;#g;#s;#L;#R;#C;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,r=gr,n,i,s,o,a){this.name=t,this.#S=s?Mu(t):bo(t),this.#s=r&jT,this.nocase=s,this.roots=i,this.root=n||this,this.#L=o,this.#A=a.fullpath,this.#O=a.relative,this.#g=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=bA(a.fs)}depth(){return this.#P!==void 0?this.#P:this.parent?this.#P=this.parent.depth()+1:this.#P=0}childrenCache(){return this.#L}resolve(t){if(!t)return this;let r=this.getRootString(t),i=t.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#W(i):this.#W(i)}#W(t){let r=this;for(let n of t)r=r.child(n);return r}children(){let t=this.#L.get(this);if(t)return t;let r=Object.assign([],{provisional:0});return this.#L.set(this,r),this.#s&=~wh,r}child(t,r){if(t===""||t===".")return this;if(t==="..")return this.parent||this;let n=this.children(),i=this.nocase?Mu(t):bo(t);for(let u of n)if(u.#S===i)return u;let s=this.parent?this.sep:"",o=this.#A?this.#A+s+t:void 0,a=this.newChild(t,gr,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#s|=Lr),n.push(a),a}relative(){if(this.isCWD)return"";if(this.#O!==void 0)return this.#O;let t=this.name,r=this.parent;if(!r)return this.#O=this.name;let n=r.relative();return n+(!n||!r.parent?"":this.sep)+t}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#g!==void 0)return this.#g;let t=this.name,r=this.parent;if(!r)return this.#g=this.fullpathPosix();let n=r.relativePosix();return n+(!n||!r.parent?"":"/")+t}fullpath(){if(this.#A!==void 0)return this.#A;let t=this.name,r=this.parent;if(!r)return this.#A=this.name;let i=r.fullpath()+(r.parent?this.sep:"")+t;return this.#A=i}fullpathPosix(){if(this.#w!==void 0)return this.#w;if(this.sep==="/")return this.#w=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#w=`//?/${i}`:this.#w=i}let t=this.parent,r=t.fullpathPosix(),n=r+(!r||!t.parent?"":"/")+this.name;return this.#w=n}isUnknown(){return(this.#s&pr)===gr}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#s&pr)===PA}isDirectory(){return(this.#s&pr)===Ur}isCharacterDevice(){return(this.#s&pr)===CA}isBlockDevice(){return(this.#s&pr)===xA}isFIFO(){return(this.#s&pr)===SA}isSocket(){return(this.#s&pr)===OA}isSymbolicLink(){return(this.#s&bi)===bi}lstatCached(){return this.#s&yA?this:void 0}readlinkCached(){return this.#R}realpathCached(){return this.#C}readdirCached(){let t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#R)return!0;if(!this.parent)return!1;let t=this.#s&pr;return!(t!==gr&&t!==bi||this.#s&$u||this.#s&Lr)}calledReaddir(){return!!(this.#s&wh)}isENOENT(){return!!(this.#s&Lr)}isNamed(t){return this.nocase?this.#S===Mu(t):this.#S===bo(t)}async readlink(){let t=this.#R;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),n=(await this.parent.realpath())?.resolve(r);if(n)return this.#R=n}catch(r){this.#q(r.code);return}}readlinkSync(){let t=this.#R;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),n=this.parent.realpathSync()?.resolve(r);if(n)return this.#R=n}catch(r){this.#q(r.code);return}}#x(t){this.#s|=wh;for(let r=t.provisional;r<t.length;r++){let n=t[r];n&&n.#M()}}#M(){this.#s&Lr||(this.#s=(this.#s|Lr)&yo,this.#T())}#T(){let t=this.children();t.provisional=0;for(let r of t)r.#M()}#j(){this.#s|=ju,this.#I()}#I(){if(this.#s&Eo)return;let t=this.#s;(t&pr)===Ur&&(t&=yo),this.#s=t|Eo,this.#T()}#F(t=""){t==="ENOTDIR"||t==="EPERM"?this.#I():t==="ENOENT"?this.#M():this.children().provisional=0}#D(t=""){t==="ENOTDIR"?this.parent.#I():t==="ENOENT"&&this.#M()}#q(t=""){let r=this.#s;r|=$u,t==="ENOENT"&&(r|=Lr),(t==="EINVAL"||t==="UNKNOWN")&&(r&=yo),this.#s=r,t==="ENOTDIR"&&this.parent&&this.parent.#I()}#N(t,r){return this.#l(t,r)||this.#G(t,r)}#G(t,r){let n=Sh(t),i=this.newChild(t.name,n,{parent:this}),s=i.#s&pr;return s!==Ur&&s!==bi&&s!==gr&&(i.#s|=Eo),r.unshift(i),r.provisional++,i}#l(t,r){for(let n=r.provisional;n<r.length;n++){let i=r[n];if((this.nocase?Mu(t.name):bo(t.name))===i.#S)return this.#U(t,i,n,r)}}#U(t,r,n,i){let s=r.name;return r.#s=r.#s&yo|Sh(t),s!==t.name&&(r.name=t.name),n!==i.provisional&&(n===i.length-1?i.pop():i.splice(n,1),i.unshift(r)),i.provisional++,r}async lstat(){if((this.#s&Lr)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(t){this.#D(t.code)}}lstatSync(){if((this.#s&Lr)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(t){this.#D(t.code)}}#$(t){let{atime:r,atimeMs:n,birthtime:i,birthtimeMs:s,blksize:o,blocks:a,ctime:u,ctimeMs:c,dev:f,gid:l,ino:h,mode:d,mtime:p,mtimeMs:y,nlink:m,rdev:P,size:S,uid:L}=t;this.#E=r,this.#c=n,this.#v=i,this.#b=s,this.#u=o,this.#f=a,this.#_=u,this.#m=c,this.#r=f,this.#h=l,this.#a=h,this.#t=d,this.#y=p,this.#i=y,this.#n=m,this.#d=P,this.#p=S,this.#o=L;let O=Sh(t);this.#s=this.#s&yo|O|yA,O!==gr&&O!==Ur&&O!==bi&&(this.#s|=Eo)}#k=[];#B=!1;#z(t){this.#B=!1;let r=this.#k.slice();this.#k.length=0,r.forEach(n=>n(null,t))}readdirCB(t,r=!1){if(!this.canReaddir()){r?t(null,[]):queueMicrotask(()=>t(null,[]));return}let n=this.children();if(this.calledReaddir()){let s=n.slice(0,n.provisional);r?t(null,s):queueMicrotask(()=>t(null,s));return}if(this.#k.push(t),this.#B)return;this.#B=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,o)=>{if(s)this.#F(s.code),n.provisional=0;else{for(let a of o)this.#N(a,n);this.#x(n)}this.#z(n.slice(0,n.provisional))})}#H;async readdir(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();if(this.#H)await this.#H;else{let n=()=>{};this.#H=new Promise(i=>n=i);try{for(let i of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#N(i,t);this.#x(t)}catch(i){this.#F(i.code),t.provisional=0}this.#H=void 0,n()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();try{for(let n of this.#e.readdirSync(r,{withFileTypes:!0}))this.#N(n,t);this.#x(t)}catch(n){this.#F(n.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(this.#s&vA)return!1;let t=pr&this.#s;return t===gr||t===Ur||t===bi}shouldWalk(t,r){return(this.#s&Ur)===Ur&&!(this.#s&vA)&&!t.has(this)&&(!r||r(this))}async realpath(){if(this.#C)return this.#C;if(!((ju|$u|Lr)&this.#s))try{let t=await this.#e.promises.realpath(this.fullpath());return this.#C=this.resolve(t)}catch{this.#j()}}realpathSync(){if(this.#C)return this.#C;if(!((ju|$u|Lr)&this.#s))try{let t=this.#e.realpathSync(this.fullpath());return this.#C=this.resolve(t)}catch{this.#j()}}[_A](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;let r=new Set([]),n=[],i=this;for(;i&&i.parent;)r.add(i),i.#O=n.join(this.sep),i.#g=n.join("/"),i=i.parent,n.push("..");for(i=t;i&&i.parent&&!r.has(i);)i.#O=void 0,i.#g=void 0,i=i.parent}};De.PathBase=gt;var So=class e extends gt{sep="\\";splitSep=MT;constructor(t,r=gr,n,i,s,o,a){super(t,r,n,i,s,o,a)}newChild(t,r=gr,n={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}getRootString(t){return Bu.win32.parse(t).root}getRoot(t){if(t=$T(t.toUpperCase()),t===this.root.name)return this.root;for(let[r,n]of Object.entries(this.roots))if(this.sameRoot(t,r))return this.roots[t]=n;return this.roots[t]=new Po(t,this).root}sameRoot(t,r=this.root.name){return t=t.toUpperCase().replace(/\//g,"\\").replace(wA,"$1\\"),t===r}};De.PathWin32=So;var Co=class e extends gt{splitSep="/";sep="/";constructor(t,r=gr,n,i,s,o,a){super(t,r,n,i,s,o,a)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,r=gr,n={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}};De.PathPosix=Co;var xo=class{root;rootPath;roots;cwd;#e;#r;#t;nocase;#n;constructor(t=process.cwd(),r,n,{nocase:i,childrenCacheSize:s=16*1024,fs:o=Ao}={}){this.#n=bA(o),(t instanceof URL||t.startsWith("file://"))&&(t=(0,TT.fileURLToPath)(t));let a=r.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new wo,this.#r=new wo,this.#t=new Wu(s);let u=a.substring(this.rootPath.length).split(n);if(u.length===1&&!u[0]&&u.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#n),this.roots[this.rootPath]=this.root;let c=this.root,f=u.length-1,l=r.sep,h=this.rootPath,d=!1;for(let p of u){let y=f--;c=c.child(p,{relative:new Array(y).fill("..").join(l),relativePosix:new Array(y).fill("..").join("/"),fullpath:h+=(d?"":l)+p}),d=!0}this.cwd=c}depth(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#t}resolve(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let n=this.#e.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpath();return this.#e.set(r,i),i}resolvePosix(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let n=this.#r.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,i),i}relative(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof gt||(r=t,t=this.cwd);let{withFileTypes:n}=r;if(t.canReaddir()){let i=await t.readdir();return n?i:i.map(s=>s.name)}else return[]}readdirSync(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof gt||(r=t,t=this.cwd);let{withFileTypes:n=!0}=r;return t.canReaddir()?n?t.readdirSync():t.readdirSync().map(i=>i.name):[]}async lstat(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof gt||(r=t.withFileTypes,t=this.cwd);let n=await t.readlink();return r?n:n?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof gt||(r=t.withFileTypes,t=this.cwd);let n=t.readlinkSync();return r?n:n?.fullpath()}async realpath(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof gt||(r=t.withFileTypes,t=this.cwd);let n=await t.realpath();return r?n:n?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof gt||(r=t.withFileTypes,t=this.cwd);let n=t.realpathSync();return r?n:n?.fullpath()}async walk(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof gt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(n?t:t.fullpath());let u=new Set,c=(l,h)=>{u.add(l),l.readdirCB((d,p)=>{if(d)return h(d);let y=p.length;if(!y)return h();let m=()=>{--y===0&&h()};for(let P of p)(!s||s(P))&&a.push(n?P:P.fullpath()),i&&P.isSymbolicLink()?P.realpath().then(S=>S?.isUnknown()?S.lstat():S).then(S=>S?.shouldWalk(u,o)?c(S,m):m()):P.shouldWalk(u,o)?c(P,m):m()},!0)},f=t;return new Promise((l,h)=>{c(f,d=>{if(d)return h(d);l(a)})})}walkSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof gt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(n?t:t.fullpath());let u=new Set([t]);for(let c of u){let f=c.readdirSync();for(let l of f){(!s||s(l))&&a.push(n?l:l.fullpath());let h=l;if(l.isSymbolicLink()){if(!(i&&(h=l.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(u,o)&&u.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,r={}){return typeof t=="string"?t=this.cwd.resolve(t):t instanceof gt||(r=t,t=this.cwd),this.stream(t,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof gt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r;(!s||s(t))&&(yield n?t:t.fullpath());let a=new Set([t]);for(let u of a){let c=u.readdirSync();for(let f of c){(!s||s(f))&&(yield n?f:f.fullpath());let l=f;if(f.isSymbolicLink()){if(!(i&&(l=f.realpathSync())))continue;l.isUnknown()&&l.lstatSync()}l.shouldWalk(a,o)&&a.add(l)}}}stream(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof gt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=new mA.Minipass({objectMode:!0});(!s||s(t))&&a.write(n?t:t.fullpath());let u=new Set,c=[t],f=0,l=()=>{let h=!1;for(;!h;){let d=c.shift();if(!d){f===0&&a.end();return}f++,u.add(d);let p=(m,P,S=!1)=>{if(m)return a.emit("error",m);if(i&&!S){let L=[];for(let O of P)O.isSymbolicLink()&&L.push(O.realpath().then(b=>b?.isUnknown()?b.lstat():b));if(L.length){Promise.all(L).then(()=>p(null,P,!0));return}}for(let L of P)L&&(!s||s(L))&&(a.write(n?L:L.fullpath())||(h=!0));f--;for(let L of P){let O=L.realpathCached()||L;O.shouldWalk(u,o)&&c.push(O)}h&&!a.flowing?a.once("drain",l):y||l()},y=!0;d.readdirCB(p,!0),y=!1}};return l(),a}streamSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof gt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=new mA.Minipass({objectMode:!0}),u=new Set;(!s||s(t))&&a.write(n?t:t.fullpath());let c=[t],f=0,l=()=>{let h=!1;for(;!h;){let d=c.shift();if(!d){f===0&&a.end();return}f++,u.add(d);let p=d.readdirSync();for(let y of p)(!s||s(y))&&(a.write(n?y:y.fullpath())||(h=!0));f--;for(let y of p){let m=y;if(y.isSymbolicLink()){if(!(i&&(m=y.realpathSync())))continue;m.isUnknown()&&m.lstatSync()}m.shouldWalk(u,o)&&c.push(m)}}h&&!a.flowing&&a.once("drain",l)};return l(),a}chdir(t=this.cwd){let r=this.cwd;this.cwd=typeof t=="string"?this.cwd.resolve(t):t,this.cwd[_A](r)}};De.PathScurryBase=xo;var Po=class extends xo{sep="\\";constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,Bu.win32,"\\",{...r,nocase:n}),this.nocase=n;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(t){return Bu.win32.parse(t).root.toUpperCase()}newRoot(t){return new So(this.rootPath,Ur,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}};De.PathScurryWin32=Po;var Oo=class extends xo{sep="/";constructor(t=process.cwd(),r={}){let{nocase:n=!1}=r;super(t,Bu.posix,"/",{...r,nocase:n}),this.nocase=n}parseRootPath(t){return"/"}newRoot(t){return new Co(this.rootPath,Ur,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}};De.PathScurryPosix=Oo;var qu=class extends Oo{constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,{...r,nocase:n})}};De.PathScurryDarwin=qu;De.Path=process.platform==="win32"?So:Co;De.PathScurry=process.platform==="win32"?Po:process.platform==="darwin"?qu:Oo});var xh=F(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.Pattern=void 0;var BT=an(),WT=e=>e.length>=1,qT=e=>e.length>=1,Ch=class e{#e;#r;#t;length;#n;#o;#h;#d;#u;#a;#p=!0;constructor(t,r,n,i){if(!WT(t))throw new TypeError("empty pattern list");if(!qT(r))throw new TypeError("empty glob list");if(r.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,n<0||n>=this.length)throw new TypeError("index out of range");if(this.#e=t,this.#r=r,this.#t=n,this.#n=i,this.#t===0){if(this.isUNC()){let[s,o,a,u,...c]=this.#e,[f,l,h,d,...p]=this.#r;c[0]===""&&(c.shift(),p.shift());let y=[s,o,a,u,""].join("/"),m=[f,l,h,d,""].join("/");this.#e=[y,...c],this.#r=[m,...p],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...u]=this.#r;o[0]===""&&(o.shift(),u.shift());let c=s+"/",f=a+"/";this.#e=[c,...o],this.#r=[f,...u],this.length=this.#e.length}}}pattern(){return this.#e[this.#t]}isString(){return typeof this.#e[this.#t]=="string"}isGlobstar(){return this.#e[this.#t]===BT.GLOBSTAR}isRegExp(){return this.#e[this.#t]instanceof RegExp}globString(){return this.#h=this.#h||(this.#t===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#t).join("/"))}hasMore(){return this.length>this.#t+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new e(this.#e,this.#r,this.#t+1,this.#n),this.#o.#a=this.#a,this.#o.#u=this.#u,this.#o.#d=this.#d,this.#o):this.#o=null}isUNC(){let t=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#n==="win32"&&this.#t===0&&t[0]===""&&t[1]===""&&typeof t[2]=="string"&&!!t[2]&&typeof t[3]=="string"&&!!t[3]}isDrive(){let t=this.#e;return this.#d!==void 0?this.#d:this.#d=this.#n==="win32"&&this.#t===0&&this.length>1&&typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0])}isAbsolute(){let t=this.#e;return this.#a!==void 0?this.#a:this.#a=t[0]===""&&t.length>1||this.isDrive()||this.isUNC()}root(){let t=this.#e[0];return typeof t=="string"&&this.isAbsolute()&&this.#t===0?t:""}checkFollowGlobstar(){return!(this.#t===0||!this.isGlobstar()||!this.#p)}markFollowGlobstar(){return this.#t===0||!this.isGlobstar()||!this.#p?!1:(this.#p=!1,!0)}};Uu.Pattern=Ch});var Oh=F(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.Ignore=void 0;var FA=an(),GT=xh(),UT=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Ph=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:r,nocase:n,noext:i,noglobstar:s,platform:o=UT}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:n,noext:i,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of t)this.add(a)}add(t){let r=new FA.Minimatch(t,this.mmopts);for(let n=0;n<r.set.length;n++){let i=r.set[n],s=r.globParts[n];if(!i||!s)throw new Error("invalid pattern object");for(;i[0]==="."&&s[0]===".";)i.shift(),s.shift();let o=new GT.Pattern(i,s,0,this.platform),a=new FA.Minimatch(o.globString(),this.mmopts),u=s[s.length-1]==="**",c=o.isAbsolute();c?this.absolute.push(a):this.relative.push(a),u&&(c?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(t){let r=t.fullpath(),n=`${r}/`,i=t.relative()||".",s=`${i}/`;for(let o of this.relative)if(o.match(i)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(n))return!0;return!1}childrenIgnored(t){let r=t.fullpath()+"/",n=(t.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(n))return!0;for(let i of this.absoluteChildren)if(i.match(r))return!0;return!1}};Hu.Ignore=Ph});var DA=F(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Processor=Hr.SubWalks=Hr.MatchRecord=Hr.HasWalkedCache=void 0;var kA=an(),zu=class e{store;constructor(t=new Map){this.store=t}copy(){return new e(new Map(this.store))}hasWalked(t,r){return this.store.get(t.fullpath())?.has(r.globString())}storeWalked(t,r){let n=t.fullpath(),i=this.store.get(n);i?i.add(r.globString()):this.store.set(n,new Set([r.globString()]))}};Hr.HasWalkedCache=zu;var Yu=class{store=new Map;add(t,r,n){let i=(r?2:0)|(n?1:0),s=this.store.get(t);this.store.set(t,s===void 0?i:i&s)}entries(){return[...this.store.entries()].map(([t,r])=>[t,!!(r&2),!!(r&1)])}};Hr.MatchRecord=Yu;var Vu=class{store=new Map;add(t,r){if(!t.canReaddir())return;let n=this.store.get(t);n?n.find(i=>i.globString()===r.globString())||n.push(r):this.store.set(t,[r])}get(t){let r=this.store.get(t);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(t=>[t,this.store.get(t)])}keys(){return[...this.store.keys()].filter(t=>t.canReaddir())}};Hr.SubWalks=Vu;var _h=class e{hasWalkedCache;matches=new Yu;subwalks=new Vu;patterns;follow;dot;opts;constructor(t,r){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=r?r.copy():new zu}processPatterns(t,r){this.patterns=r;let n=r.map(i=>[t,i]);for(let[i,s]of n){this.hasWalkedCache.storeWalked(i,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){i=i.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let l=s.rest();if(l)s=l;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let u,c,f=!1;for(;typeof(u=s.pattern())=="string"&&(c=s.rest());)i=i.resolve(u),s=c,f=!0;if(u=s.pattern(),c=s.rest(),f){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof u=="string"){let l=u===".."||u===""||u===".";this.matches.add(i.resolve(u),a,l);continue}else if(u===kA.GLOBSTAR){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let l=c?.pattern(),h=c?.rest();if(!c||(l===""||l===".")&&!h)this.matches.add(i,a,l===""||l===".");else if(l===".."){let d=i.parent||i;h?this.hasWalkedCache.hasWalked(d,h)||this.subwalks.add(d,h):this.matches.add(d,a,!0)}}else u instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new e(this.opts,this.hasWalkedCache)}filterEntries(t,r){let n=this.subwalks.get(t),i=this.child();for(let s of r)for(let o of n){let a=o.isAbsolute(),u=o.pattern(),c=o.rest();u===kA.GLOBSTAR?i.testGlobstar(s,o,c,a):u instanceof RegExp?i.testRegExp(s,u,c,a):i.testString(s,u,c,a)}return i}testGlobstar(t,r,n,i){if((this.dot||!t.name.startsWith("."))&&(r.hasMore()||this.matches.add(t,i,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,r):t.isSymbolicLink()&&(n&&r.checkFollowGlobstar()?this.subwalks.add(t,n):r.markFollowGlobstar()&&this.subwalks.add(t,r)))),n){let s=n.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(t,s,n.rest(),i);else if(s===".."){let o=t.parent||t;this.subwalks.add(o,n)}else s instanceof RegExp&&this.testRegExp(t,s,n.rest(),i)}}testRegExp(t,r,n,i){r.test(t.name)&&(n?this.subwalks.add(t,n):this.matches.add(t,i,!1))}testString(t,r,n,i){t.isNamed(r)&&(n?this.subwalks.add(t,n):this.matches.add(t,i,!1))}};Hr.Processor=_h});var IA=F(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.GlobStream=Tn.GlobWalker=Tn.GlobUtil=void 0;var HT=bh(),LA=Oh(),TA=DA(),zT=(e,t)=>typeof e=="string"?new LA.Ignore([e],t):Array.isArray(e)?new LA.Ignore(e,t):e,_o=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#t;signal;maxDepth;includeChildMatches;constructor(t,r,n){if(this.patterns=t,this.path=r,this.opts=n,this.#t=!n.posix&&n.platform==="win32"?"\\":"/",this.includeChildMatches=n.includeChildMatches!==!1,(n.ignore||!this.includeChildMatches)&&(this.#r=zT(n.ignore??[],n),!this.includeChildMatches&&typeof this.#r.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=n.maxDepth||1/0,n.signal&&(this.signal=n.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#n(t){return this.seen.has(t)||!!this.#r?.ignored?.(t)}#o(t){return!!this.#r?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let t;for(;!this.paused&&(t=this.#e.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#e.push(t):t())}async matchCheck(t,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=t.realpathCached()||await t.realpath(),!n)return;t=n}let s=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(t,r){return t&&(this.maxDepth===1/0||t.depth()<=this.maxDepth)&&(!r||t.canReaddir())&&(!this.opts.nodir||!t.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!t.isSymbolicLink()||!t.realpathCached()?.isDirectory())&&!this.#n(t)?t:void 0}matchCheckSync(t,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=t.realpathCached()||t.realpathSync(),!n)return;t=n}let s=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(t,r){if(this.#n(t))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${t.relativePosix()}/**`;this.#r.add(s)}let n=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(t);let i=this.opts.mark&&t.isDirectory()?this.#t:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(n){let s=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(s+i)}else{let s=this.opts.posix?t.relativePosix():t.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#t)?"."+this.#t:"";this.matchEmit(s?o+s+i:"."+i)}}async match(t,r,n){let i=await this.matchCheck(t,n);i&&this.matchFinish(i,r)}matchSync(t,r,n){let i=this.matchCheckSync(t,n);i&&this.matchFinish(i,r)}walkCB(t,r,n){this.signal?.aborted&&n(),this.walkCB2(t,r,new TA.Processor(this.opts),n)}walkCB2(t,r,n,i){if(this.#o(t))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(t,r,n,i));return}n.processPatterns(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#n(a)||(s++,this.match(a,u,c).then(()=>o()));for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let u=a.readdirCached();a.calledReaddir()?this.walkCB3(a,u,n,o):a.readdirCB((c,f)=>this.walkCB3(a,f,n,o),!0)}o()}walkCB3(t,r,n,i){n=n.filterEntries(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#n(a)||(s++,this.match(a,u,c).then(()=>o()));for(let[a,u]of n.subwalks.entries())s++,this.walkCB2(a,u,n.child(),o);o()}walkCBSync(t,r,n){this.signal?.aborted&&n(),this.walkCB2Sync(t,r,new TA.Processor(this.opts),n)}walkCB2Sync(t,r,n,i){if(this.#o(t))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(t,r,n,i));return}n.processPatterns(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#n(a)||this.matchSync(a,u,c);for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let u=a.readdirSync();this.walkCB3Sync(a,u,n,o)}o()}walkCB3Sync(t,r,n,i){n=n.filterEntries(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,u,c]of n.matches.entries())this.#n(a)||this.matchSync(a,u,c);for(let[a,u]of n.subwalks.entries())s++,this.walkCB2Sync(a,u,n.child(),o);o()}};Tn.GlobUtil=_o;var Rh=class extends _o{matches=new Set;constructor(t,r,n){super(t,r,n)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((t,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):t(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};Tn.GlobWalker=Rh;var Fh=class extends _o{results;constructor(t,r,n){super(t,r,n),this.results=new HT.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){let t=this.path;return t.isUnknown()?t.lstat().then(()=>{this.walkCB(t,this.patterns,()=>this.results.end())}):this.walkCB(t,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};Tn.GlobStream=Fh});var Dh=F(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.Glob=void 0;var YT=an(),VT=require("node:url"),Ku=RA(),KT=xh(),Ju=IA(),JT=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",kh=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,VT.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof t=="string"&&(t=[t]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(t=t.map(u=>u.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");t=t.map(u=>u.includes("/")?u:`./**/${u}`)}if(this.pattern=t,this.platform=r.platform||JT,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let u=r.platform==="win32"?Ku.PathScurryWin32:r.platform==="darwin"?Ku.PathScurryDarwin:r.platform?Ku.PathScurryPosix:Ku.PathScurry;this.scurry=new u(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let n=this.platform==="darwin"||this.platform==="win32",i={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:n,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(u=>new YT.Minimatch(u,i)),[o,a]=s.reduce((u,c)=>(u[0].push(...c.set),u[1].push(...c.globParts),u),[[],[]]);this.patterns=o.map((u,c)=>{let f=a[c];if(!f)throw new Error("invalid pattern object");return new KT.Pattern(u,f,0,this.platform)})}async walk(){return[...await new Ju.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Ju.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Ju.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Ju.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};Xu.Glob=kh});var Lh=F(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.hasMagic=void 0;var XT=an(),QT=(e,t={})=>{Array.isArray(e)||(e=[e]);for(let r of e)if(new XT.Minimatch(r,t).hasMagic())return!0;return!1};Qu.hasMagic=QT});var $h=F(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.glob=Oe.sync=Oe.iterate=Oe.iterateSync=Oe.stream=Oe.streamSync=Oe.Ignore=Oe.hasMagic=Oe.Glob=Oe.unescape=Oe.escape=void 0;Oe.globStreamSync=Ro;Oe.globStream=Th;Oe.globSync=Ih;Oe.globIterateSync=Fo;Oe.globIterate=Nh;var NA=an(),wi=Dh(),ZT=Lh(),MA=an();Object.defineProperty(Oe,"escape",{enumerable:!0,get:function(){return MA.escape}});Object.defineProperty(Oe,"unescape",{enumerable:!0,get:function(){return MA.unescape}});var eI=Dh();Object.defineProperty(Oe,"Glob",{enumerable:!0,get:function(){return eI.Glob}});var tI=Lh();Object.defineProperty(Oe,"hasMagic",{enumerable:!0,get:function(){return tI.hasMagic}});var rI=Oh();Object.defineProperty(Oe,"Ignore",{enumerable:!0,get:function(){return rI.Ignore}});function Ro(e,t={}){return new wi.Glob(e,t).streamSync()}function Th(e,t={}){return new wi.Glob(e,t).stream()}function Ih(e,t={}){return new wi.Glob(e,t).walkSync()}async function $A(e,t={}){return new wi.Glob(e,t).walk()}function Fo(e,t={}){return new wi.Glob(e,t).iterateSync()}function Nh(e,t={}){return new wi.Glob(e,t).iterate()}Oe.streamSync=Ro;Oe.stream=Object.assign(Th,{sync:Ro});Oe.iterateSync=Fo;Oe.iterate=Object.assign(Nh,{sync:Fo});Oe.sync=Object.assign(Ih,{stream:Ro,iterate:Fo});Oe.glob=Object.assign($A,{glob:$A,globSync:Ih,sync:Oe.sync,globStream:Th,stream:Oe.stream,globStreamSync:Ro,streamSync:Oe.streamSync,globIterate:Nh,iterate:Oe.iterate,globIterateSync:Fo,iterateSync:Oe.iterateSync,Glob:wi.Glob,hasMagic:ZT.hasMagic,escape:NA.escape,unescape:NA.unescape});Oe.glob.glob=Oe.glob});var Mh=F((WV,nI)=>{nI.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var jA=F((qV,iI)=>{iI.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var BA=F((GV,sI)=>{sI.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var qA=F((UV,WA)=>{"use strict";var oI=[].concat(Mh()).concat(jA()),aI=BA();WA.exports=function(e){var t=0;function r(){return t<e.length}function n(p){if(p instanceof RegExp){var y=e.slice(t),m=y.match(p);if(m)return t+=m[0].length,m[0]}else if(e.indexOf(p,t)===t)return t+=p.length,p}function i(){n(/[ ]*/)}function s(){for(var p,y=["WITH","AND","OR","(",")",":","+"],m=0;m<y.length&&(p=n(y[m]),!p);m++);if(p==="+"&&t>1&&e[t-2]===" ")throw new Error("Space before `+`");return p&&{type:"OPERATOR",string:p}}function o(){return n(/[A-Za-z0-9-.]+/)}function a(){var p=o();if(!p)throw new Error("Expected idstring at offset "+t);return p}function u(){if(n("DocumentRef-")){var p=a();return{type:"DOCUMENTREF",string:p}}}function c(){if(n("LicenseRef-")){var p=a();return{type:"LICENSEREF",string:p}}}function f(){var p=t,y=o();if(oI.indexOf(y)!==-1)return{type:"LICENSE",string:y};if(aI.indexOf(y)!==-1)return{type:"EXCEPTION",string:y};t=p}function l(){return s()||u()||c()||f()}for(var h=[];r()&&(i(),!!r());){var d=l();if(!d)throw new Error("Unexpected `"+e[t]+"` at offset "+t);h.push(d)}return h}});var UA=F((HV,GA)=>{"use strict";GA.exports=function(e){var t=0;function r(){return t<e.length}function n(){return r()?e[t]:null}function i(){if(!r())throw new Error;t++}function s(y){var m=n();if(m&&m.type==="OPERATOR"&&y===m.string)return i(),m.string}function o(){if(s("WITH")){var y=n();if(y&&y.type==="EXCEPTION")return i(),y.string;throw new Error("Expected exception after `WITH`")}}function a(){var y=t,m="",P=n();if(P.type==="DOCUMENTREF"&&(i(),m+="DocumentRef-"+P.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(P=n(),P.type==="LICENSEREF")return i(),m+="LicenseRef-"+P.string,{license:m};t=y}function u(){var y=n();if(y&&y.type==="LICENSE"){i();var m={license:y.string};s("+")&&(m.plus=!0);var P=o();return P&&(m.exception=P),m}}function c(){var y=s("(");if(y){var m=d();if(!s(")"))throw new Error("Expected `)`");return m}}function f(){return c()||a()||u()}function l(y,m){return function P(){var S=m();if(S){if(!s(y))return S;var L=P();if(!L)throw new Error("Expected expression");return{left:S,conjunction:y.toLowerCase(),right:L}}}}var h=l("AND",f),d=l("OR",h),p=d();if(!p||r())throw new Error("Syntax error");return p}});var jh=F((zV,HA)=>{"use strict";var uI=qA(),cI=UA();HA.exports=function(e){return cI(uI(e))}});var eE=F((YV,ZA)=>{var lI=jh(),fI=Mh();function Zu(e){try{return lI(e),!0}catch{return!1}}function QA(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var zA=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(QA),hI=0,dI=1,YA=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],Bh=fI.map(function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]}).reduce(function(e,t){var r=t[1];return e[r]=e[r]||[],e[r].push(t[0]),e},{}),pI=Object.keys(Bh).map(function(t){return[t,Bh[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});Bh=void 0;var VA=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(pI).sort(QA),gI=0,mI=1,KA=function(e){for(var t=0;t<YA.length;t++){var r=YA[t](e).trim();if(r!==e&&Zu(r))return r}return null},JA=function(e){for(var t=e.toUpperCase(),r=0;r<VA.length;r++){var n=VA[r];if(t.indexOf(n[gI])>-1)return n[mI]}return null},XA=function(e,t){for(var r=0;r<zA.length;r++){var n=zA[r],i=n[hI];if(e.indexOf(i)>-1){var s=e.replace(i,n[dI]),o=t(s);if(o!==null)return o}}return null};ZA.exports=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?yI(a):a}var i=typeof e=="string"&&e.trim().length!==0;if(!i)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),Zu(e))return n(e);var s=e.replace(/\+$/,"").trim();if(Zu(s))return n(s);var o=KA(e);return o!==null||(o=XA(e,function(a){return Zu(a)?a:KA(a)}),o!==null)||(o=JA(e),o!==null)||(o=XA(e,JA),o!==null)?n(o):null};function yI(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}});var iE=F((VV,nE)=>{var vI=jh(),AI=eE(),tE='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',EI=/^SEE LICEN[CS]E IN (.+)$/;function rE(e,t){return t.slice(0,e.length)===e}function Wh(e){if(e.hasOwnProperty("license")){var t=e.license;return rE("LicenseRef",t)||rE("DocumentRef",t)}else return Wh(e.left)||Wh(e.right)}nE.exports=function(e){var t;try{t=vI(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=EI.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[tE]};if(e.trim().length!==0){var i=AI(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return Wh(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[tE]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var lE=F((KV,cE)=>{var{URL:qh}=require("node:url"),sE=Au(),bI=iE(),oE={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},aE=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf(".");function wI(e){let t=e.trim().split(`
11
+ `),r=0;for(;t[r]?.trim().match(/^(#|$)/);)r++;let n=r+1;for(;n<t.length&&t[n].trim();)n++;return t.slice(r,n).join(" ").trim()}function uE(e){if(typeof e!="string"){let s=e.name||"",o=e.url||e.web,a=o?" ("+o+")":"",u=e.email||e.mail,c=u?" <"+u+">":"";e=s+c+a}let t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),i={};return t?.[0].trim()&&(i.name=t[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function SI(e,t){e.description&&typeof e.description!="string"&&(t?.push("'description' field should be a string"),delete e.description),e.readme&&!e.description&&e.readme!=="ERROR: No README data found!"&&(e.description=wI(e.readme)),e.description===void 0&&delete e.description,e.description||t?.push("No description"),e.modules&&(t?.push("modules field is deprecated"),delete e.modules);let r=e.files;if(r&&!Array.isArray(r)?(t?.push("Invalid 'files' member"),delete e.files):e.files&&(e.files=e.files.filter(function(o){return!o||typeof o!="string"?(t?.push(`Invalid filename in 'files' list: ${o}`),!1):!0})),e.man&&typeof e.man=="string"&&(e.man=[e.man]),!e.bugs&&e.repository?.url){let o=sE.fromUrl(e.repository.url);o&&o.bugs()&&(e.bugs={url:o.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")aE(e.bugs)?e.bugs={email:e.bugs}:qh.canParse(e.bugs)?e.bugs={url:e.bugs}:t?.push("Bug string field must be url, email, or {email,url}");else{for(let a in e.bugs)["web","name"].includes(a)&&(t?.push(`bugs['${a}'] should probably be bugs['url'].`),e.bugs.url=e.bugs[a],delete e.bugs[a]);let o=e.bugs;e.bugs={},o.url&&(qh.canParse(o.url)?e.bugs.url=o.url:t?.push("bugs.url field must be a string url. Deleted.")),o.email&&(typeof o.email=="string"&&aE(o.email)?e.bugs.email=o.email:t?.push("bugs.email field must be a string email. Deleted."))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,t?.push("Normalized value of bugs field is an empty object. Deleted."))}typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,t?.push("keywords should be an array of strings")):e.keywords&&(e.keywords=e.keywords.filter(function(o){return typeof o!="string"||!o?(t?.push("keywords should be an array of strings"),!1):!0}));let n="bundledDependencies",i="bundleDependencies";if(e[n]&&!e[i]&&(e[i]=e[n],delete e[n]),e[i]&&!Array.isArray(e[i])?(t?.push("Invalid 'bundleDependencies' list. Must be array of package names"),delete e[i]):e[i]&&(e[i]=e[i].filter(function(o){return!o||typeof o!="string"?(t?.push(`Invalid bundleDependencies member: ${o}`),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,o)||(t?.push(`Non-dependency in bundleDependencies: ${o}`),e.dependencies[o]="*"),!0)})),!e.homepage&&e.repository&&e.repository.url){let o=sE.fromUrl(e.repository.url);o&&(e.homepage=o.docs())}e.homepage&&(typeof e.homepage!="string"?(t?.push("homepage field must be a string url. Deleted."),delete e.homepage):qh.canParse(e.homepage)||(e.homepage="http://"+e.homepage)),e.readme||(t?.push("No README data"),e.readme="ERROR: No README data found!");let s=e.license||e.licence;s?typeof s!="string"||s.length<1||s.trim()===""?t?.push("license should be a valid SPDX license expression"):bI(s).validForNewPackages||t?.push("license should be a valid SPDX license expression"):t?.push("No license field."),e.author&&(e.author=uE(e.author)),["maintainers","contributors"].forEach(function(o){Array.isArray(e[o])&&(e[o]=e[o].map(uE))});for(let o in oE)Object.prototype.hasOwnProperty.call(e,o)&&t?.push(`${o} should probably be ${oE[o]}.`)}cE.exports={normalizeData:SI}});var hE=F(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.sync=ns.isexe=void 0;var CI=require("fs"),xI=require("fs/promises"),PI=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return fE(await(0,xI.stat)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};ns.isexe=PI;var OI=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return fE((0,CI.statSync)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};ns.sync=OI;var fE=(e,t)=>e.isFile()&&_I(e,t),_I=(e,t)=>{let r=t.uid??process.getuid?.(),n=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??n[0];if(r===void 0||i===void 0)throw new Error("cannot get uid or gid");let s=new Set([i,...n]),o=e.mode,a=e.uid,u=e.gid,c=parseInt("100",8),f=parseInt("010",8),l=parseInt("001",8),h=c|f;return!!(o&l||o&f&&s.has(u)||o&c&&a===r||o&h&&r===0)}});var pE=F(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.sync=is.isexe=void 0;var RI=require("fs"),FI=require("fs/promises"),kI=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return dE(await(0,FI.stat)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};is.isexe=kI;var DI=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return dE((0,RI.statSync)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};is.sync=DI;var LI=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(n.indexOf("")!==-1)return!0;for(let i=0;i<n.length;i++){let s=n[i].toLowerCase(),o=e.substring(e.length-s.length).toLowerCase();if(s&&o===s)return!0}return!1},dE=(e,t,r)=>e.isFile()&&LI(t,r)});var mE=F(gE=>{"use strict";Object.defineProperty(gE,"__esModule",{value:!0})});var wE=F(ot=>{"use strict";var yE=ot&&ot.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),TI=ot&&ot.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),vE=ot&&ot.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&yE(t,e,r);return TI(t,e),t},II=ot&&ot.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&yE(t,e,r)};Object.defineProperty(ot,"__esModule",{value:!0});ot.sync=ot.isexe=ot.posix=ot.win32=void 0;var AE=vE(hE());ot.posix=AE;var EE=vE(pE());ot.win32=EE;II(mE(),ot);var NI=process.env._ISEXE_TEST_PLATFORM_||process.platform,bE=NI==="win32"?EE:AE;ot.isexe=bE.isexe;ot.sync=bE.sync});var Gh=F((eK,kE)=>{var{isexe:$I,sync:MI}=wE(),{join:jI,delimiter:BI,sep:SE,posix:CE}=require("path"),xE=process.platform==="win32",PE=new RegExp(`[${CE.sep}${SE===CE.sep?"":SE}]`.replace(/(\\)/g,"\\$1")),WI=new RegExp(`^\\.${PE.source}`),OE=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),_E=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=BI})=>{let i=e.match(PE)?[""]:[...xE?[process.cwd()]:[],...(t||"").split(n)];if(xE){let s=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=s.split(n).flatMap(a=>[a,a.toLowerCase()]);return e.includes(".")&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:s}}return{pathEnv:i,pathExt:[""]}},RE=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&WI.test(t)?t.slice(0,2):"")+jI(r,t)},FE=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=_E(e,t),s=[];for(let o of r){let a=RE(o,e);for(let u of n){let c=a+u;if(await $I(c,{pathExt:i,ignoreErrors:!0})){if(!t.all)return c;s.push(c)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw OE(e)},qI=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=_E(e,t),s=[];for(let o of r){let a=RE(o,e);for(let u of n){let c=a+u;if(MI(c,{pathExt:i,ignoreErrors:!0})){if(!t.all)return c;s.push(c)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw OE(e)};kE.exports=FE;FE.sync=qI});var LE=F((tK,DE)=>{"use strict";var GI=(e,t)=>{if(!e.length)return'""';let r;if(!/[ \t\n\v"]/.test(e))r=e;else{r='"';for(let n=0;n<=e.length;++n){let i=0;for(;e[n]==="\\";)++n,++i;if(n===e.length){r+="\\".repeat(i*2);break}e[n]==='"'?(r+="\\".repeat(i*2+1),r+=e[n]):(r+="\\".repeat(i),r+=e[n])}r+='"'}return r=r.replace(/[ !%^&()<>|"]/g,"^$&"),t&&(r=r.replace(/[ !%^&()<>|"]/g,"^$&")),r},UI=e=>e.length?/[\t\n\r "#$&'()*;<>?\\`|~]/.test(e)?`'${e.replace(/'/g,"'\\''")}'`.replace(/^(?:'')+(?!$)/,"").replace(/\\'''/g,"\\'"):e:"''";DE.exports={cmd:GI,sh:UI}});var ME=F((rK,$E)=>{"use strict";var{spawn:HI}=require("child_process"),zI=require("os"),YI=Gh(),TE=LE(),Hh=(e,t,r={},n={})=>{if(r.shell)return NE(e,t,r,n);let i,s,o=new Promise((d,p)=>{i=d,s=p}),a=new Error("command failed"),u=[],c=[],f=d=>({cmd:e,args:t,...d,...KI(u,c,r),...n}),l=(d,p)=>{let y=f(p);s(Object.assign(d,y))},h=HI(e,t,r);return o.stdin=h.stdin,o.process=h,h.on("error",l),h.stdout&&(h.stdout.on("data",d=>u.push(d)),h.stdout.on("error",l)),h.stderr&&(h.stderr.on("data",d=>c.push(d)),h.stderr.on("error",l)),h.on("close",(d,p)=>{d||p?l(a,{code:d,signal:p}):i(f({code:d,signal:p}))}),o},NE=(e,t,r,n)=>{let i=r.shell;i===!0&&(i=process.platform==="win32"?process.env.ComSpec||"cmd.exe":"sh");let s={...r,shell:!1},o=[],a=e;if(/(?:^|\\)cmd(?:\.exe)?$/i.test(i)){let c=!1,f="",l=!1;for(let d=0;d<e.length;++d){let p=e.charAt(d);if(p===" "&&!l)break;f+=p,(p==='"'||p==="'")&&(l=!l)}let h;try{h=YI.sync(f,{path:s.env&&IE(s.env,"PATH")||process.env.PATH,pathext:s.env&&IE(s.env,"PATHEXT")||process.env.PATHEXT}).toLowerCase()}catch{h=f.toLowerCase()}c=h.endsWith(".cmd")||h.endsWith(".bat");for(let d of t)a+=` ${TE.cmd(d,c)}`;o.push("/d","/s","/c",a),s.windowsVerbatimArguments=!0}else{for(let c of t)a+=` ${TE.sh(c)}`;o.push("-c",a)}return Hh(i,o,s,n)},VI=(e,t={},r={})=>{let n={...t,shell:!0},i=[].concat(e),s=process.platform;if(s==="linux"&&zI.release().toLowerCase().includes("microsoft")&&(s="wsl",!process.env.BROWSER))return Promise.reject(new Error("Set the BROWSER environment variable to your desired browser."));let o=n.command;return o||(s==="win32"?(n.shell=process.env.ComSpec,o='start ""'):s==="wsl"?o="sensible-browser":s==="darwin"?o="open":o="xdg-open"),NE(o,i,n,r)};Hh.open=VI;var Uh=(e="pipe",t)=>e==="pipe"||e===null?!0:Array.isArray(e)?Uh(e[t],t):!1,KI=(e,t,{stdioString:r=!0,stdio:n})=>{let i={stdout:null,stderr:null};return Uh(n,1)&&(i.stdout=Buffer.concat(e),r&&(i.stdout=i.stdout.toString().trim())),Uh(n,2)&&(i.stderr=Buffer.concat(t),r&&(i.stderr=i.stderr.toString().trim())),i},IE=(e,t)=>{t=t.toLowerCase();for(let r of Object.keys(e).sort())if(r.toLowerCase()===t)return e[r]};$E.exports=Hh});var WE=F((nK,BE)=>{"use strict";function jE(e,t){for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!0,configurable:!0});return e}function JI(e,t,r){if(!e||typeof e=="string")throw new TypeError("Please pass an Error to err-code");r||(r={}),typeof t=="object"&&(r=t,t=void 0),t!=null&&(r.code=t);try{return jE(e,r)}catch{r.message=e.message,r.stack=e.stack;let i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(e)),jE(new i,r)}}BE.exports=JI});var GE=F((iK,qE)=>{function mr(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}qE.exports=mr;mr.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};mr.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};mr.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();else return!1;var n=this,i=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r);return this._options.unref&&i.unref(),!0};mr.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};mr.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};mr.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};mr.prototype.start=mr.prototype.try;mr.prototype.errors=function(){return this._errors};mr.prototype.attempts=function(){return this._attempts};mr.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(e[s]||0)+1;e[s]=o,o>=r&&(t=i,r=o)}return t}});var UE=F(Si=>{var XI=GE();Si.operation=function(e){var t=Si.timeouts(e);return new XI(t,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};Si.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,o){return s-o}),n};Si.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*t.minTimeout*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};Si.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=e[s];e[s]=function(u){var c=Si.operation(t),f=Array.prototype.slice.call(arguments,1),l=f.pop();f.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),l.apply(this,arguments))}),c.attempt(function(){u.apply(e,f)})}.bind(e,o),e[s].options=t}}});var zE=F((oK,HE)=>{HE.exports=UE()});var KE=F((aK,VE)=>{"use strict";var QI=WE(),ZI=zE(),eN=Object.prototype.hasOwnProperty;function YE(e){return e&&e.code==="EPROMISERETRY"&&eN.call(e,"retried")}function tN(e,t){var r,n;return typeof e=="object"&&typeof t=="function"&&(r=t,t=e,e=r),n=ZI.operation(t),new Promise(function(i,s){n.attempt(function(o){Promise.resolve().then(function(){return e(function(a){throw YE(a)&&(a=a.retried),QI(new Error("Retrying"),"EPROMISERETRY",{retried:a})},o)}).then(i,function(a){YE(a)&&(a=a.retried,n.retry(a||new Error))||s(a)})})})}VE.exports=tN});var Kh=F((uK,JE)=>{var ko=class extends Error{shouldRetry(){return!1}},zh=class extends ko{constructor(){super("A git connection error occurred")}shouldRetry(t){return t<3}},Yh=class extends ko{constructor(){super("The git reference could not be found")}},Vh=class extends ko{constructor(){super("An unknown git error occurred")}};JE.exports={GitConnectionError:zh,GitPathspecError:Yh,GitUnknownError:Vh}});var QE=F((cK,XE)=>{var{GitConnectionError:rN,GitPathspecError:nN,GitUnknownError:iN}=Kh(),sN=new RegExp(["remote error: Internal Server Error","The remote end hung up unexpectedly","Connection timed out","Operation timed out","Failed to connect to .* Timed out","Connection reset by peer","SSL_ERROR_SYSCALL","The requested URL returned error: 503"].join("|")),oN=/pathspec .* did not match any file\(s\) known to git/;function aN(e){let t=e.stderr,r;return sN.test(t)?r=new rN(t):oN.test(t)?r=new nN(t):r=new iN(t),Object.assign(r,e)}XE.exports=aN});var rb=F((lK,Jh)=>{var ZE=require("node:fs"),uN=require("node:os"),cN=require("node:path"),lN=kf(),eb=cN.join(uN.homedir(),".gitconfig"),Do=null,tb=()=>{if(Do===null)try{if(Do={},ZE.existsSync(eb)){let e=ZE.readFileSync(eb,"utf-8");Do=lN.parse(e)}}catch{Do={}}return Do},fN=()=>{let e=tb();return{sshCommandSetInConfig:e?.core?.sshCommand!==void 0,askPassSetInConfig:e?.core?.askpass!==void 0}},hN=process.env.GIT_SSH_COMMAND!==void 0,dN=process.env.GIT_ASKPASS!==void 0,{sshCommandSetInConfig:pN,askPassSetInConfig:gN}=fN(),mN={...dN||gN?{}:{GIT_ASKPASS:"echo"},...hN||pN?{}:{GIT_SSH_COMMAND:"ssh -oStrictHostKeyChecking=accept-new"}};Jh.exports=(e={})=>({stdioString:!0,...e,shell:!1,env:e.env||{...mN,...process.env}});Jh.exports.loadGitConfig=tb});var ib=F((fK,nb)=>{var yN=Gh(),Xh;try{Xh=yN.sync("git")}catch{}nb.exports=(e={})=>e.git?e.git:!Xh||e.git===!1?Object.assign(new Error("No git binary found in $PATH"),{code:"ENOGIT"}):Xh});var Lo=F((hK,sb)=>{var vN=ME(),AN=KE(),{log:EN}=su(),bN=QE(),wN=rb();sb.exports=(e,t={})=>{let n=ib()(t);if(n instanceof Error)return Promise.reject(n);let i=t.allowReplace||e[0]==="--no-replace-objects"?e:["--no-replace-objects",...e],s=t.retry;return s==null&&(s={retries:t.fetchRetries||2,factor:t.fetchRetryFactor||10,maxTimeout:t.fetchRetryMaxtimeout||6e4,minTimeout:t.fetchRetryMintimeout||1e3}),AN((o,a)=>(a!==1&&EN.silly("git",`Retrying git command: ${i.join(" ")} attempt # ${a}`),vN(n,i,wN(t)).catch(u=>{let c=bN(u);if(!c.shouldRetry(a))throw c;o(c)})),s)}});var ub=F((dK,ab)=>{"use strict";var ob=yt(),SN=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new ob(e instanceof ob?e.version:e,r).inc(t,n,i).version}catch{return null}};ab.exports=SN});var fb=F((pK,lb)=>{"use strict";var cb=yi(),CN=(e,t)=>{let r=cb(e,null,!0),n=cb(t,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,o=s?r:n,a=s?n:r,u=!!o.prerelease.length;if(!!a.prerelease.length&&!u){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let f=u?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};lb.exports=CN});var db=F((gK,hb)=>{"use strict";var xN=yt(),PN=(e,t)=>new xN(e,t).major;hb.exports=PN});var gb=F((mK,pb)=>{"use strict";var ON=yt(),_N=(e,t)=>new ON(e,t).minor;pb.exports=_N});var yb=F((yK,mb)=>{"use strict";var RN=yt(),FN=(e,t)=>new RN(e,t).patch;mb.exports=FN});var Ab=F((vK,vb)=>{"use strict";var kN=yi(),DN=(e,t)=>{let r=kN(e,t);return r&&r.prerelease.length?r.prerelease:null};vb.exports=DN});var yr=F((AK,bb)=>{"use strict";var Eb=yt(),LN=(e,t,r)=>new Eb(e,r).compare(new Eb(t,r));bb.exports=LN});var Sb=F((EK,wb)=>{"use strict";var TN=yr(),IN=(e,t,r)=>TN(t,e,r);wb.exports=IN});var xb=F((bK,Cb)=>{"use strict";var NN=yr(),$N=(e,t)=>NN(e,t,!0);Cb.exports=$N});var ec=F((wK,Ob)=>{"use strict";var Pb=yt(),MN=(e,t,r)=>{let n=new Pb(e,r),i=new Pb(t,r);return n.compare(i)||n.compareBuild(i)};Ob.exports=MN});var Rb=F((SK,_b)=>{"use strict";var jN=ec(),BN=(e,t)=>e.sort((r,n)=>jN(r,n,t));_b.exports=BN});var kb=F((CK,Fb)=>{"use strict";var WN=ec(),qN=(e,t)=>e.sort((r,n)=>WN(n,r,t));Fb.exports=qN});var To=F((xK,Db)=>{"use strict";var GN=yr(),UN=(e,t,r)=>GN(e,t,r)>0;Db.exports=UN});var tc=F((PK,Lb)=>{"use strict";var HN=yr(),zN=(e,t,r)=>HN(e,t,r)<0;Lb.exports=zN});var Qh=F((OK,Tb)=>{"use strict";var YN=yr(),VN=(e,t,r)=>YN(e,t,r)===0;Tb.exports=VN});var Zh=F((_K,Ib)=>{"use strict";var KN=yr(),JN=(e,t,r)=>KN(e,t,r)!==0;Ib.exports=JN});var rc=F((RK,Nb)=>{"use strict";var XN=yr(),QN=(e,t,r)=>XN(e,t,r)>=0;Nb.exports=QN});var nc=F((FK,$b)=>{"use strict";var ZN=yr(),e2=(e,t,r)=>ZN(e,t,r)<=0;$b.exports=e2});var ed=F((kK,Mb)=>{"use strict";var t2=Qh(),r2=Zh(),n2=To(),i2=rc(),s2=tc(),o2=nc(),a2=(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 t2(e,r,n);case"!=":return r2(e,r,n);case">":return n2(e,r,n);case">=":return i2(e,r,n);case"<":return s2(e,r,n);case"<=":return o2(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};Mb.exports=a2});var Bb=F((DK,jb)=>{"use strict";var u2=yt(),c2=yi(),{safeRe:ic,t:sc}=Qi(),l2=(e,t)=>{if(e instanceof u2)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?ic[sc.COERCEFULL]:ic[sc.COERCE]);else{let u=t.includePrerelease?ic[sc.COERCERTLFULL]:ic[sc.COERCERTL],c;for(;(c=u.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||c.index+c[0].length!==r.index+r[0].length)&&(r=c),u.lastIndex=c.index+c[1].length+c[2].length;u.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return c2(`${n}.${i}.${s}${o}${a}`,t)};jb.exports=l2});var qb=F((LK,Wb)=>{"use strict";var td=class{constructor(){this.max=1e3,this.map=new Map}get(t){let 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){let i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}};Wb.exports=td});var vr=F((TK,zb)=>{"use strict";var f2=/\s+/g,rd=class e{constructor(t,r){if(r=d2(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof nd)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(f2," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!Ub(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&E2(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&v2)|(this.options.loose&&A2))+":"+t,i=Gb.get(n);if(i)return i;let s=this.options.loose,o=s?Tt[At.HYPHENRANGELOOSE]:Tt[At.HYPHENRANGE];t=t.replace(o,F2(this.options.includePrerelease)),Ge("hyphen replace",t),t=t.replace(Tt[At.COMPARATORTRIM],g2),Ge("comparator trim",t),t=t.replace(Tt[At.TILDETRIM],m2),Ge("tilde trim",t),t=t.replace(Tt[At.CARETTRIM],y2),Ge("caret trim",t);let a=t.split(" ").map(l=>b2(l,this.options)).join(" ").split(/\s+/).map(l=>R2(l,this.options));s&&(a=a.filter(l=>(Ge("loose invalid filter",l,this.options),!!l.match(Tt[At.COMPARATORLOOSE])))),Ge("range list",a);let u=new Map,c=a.map(l=>new nd(l,this.options));for(let l of c){if(Ub(l))return[l];u.set(l.value,l)}u.size>1&&u.has("")&&u.delete("");let f=[...u.values()];return Gb.set(n,f),f}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>Hb(n,r)&&t.set.some(i=>Hb(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new p2(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(k2(this.set[r],t,this.options))return!0;return!1}};zb.exports=rd;var h2=qb(),Gb=new h2,d2=ou(),nd=Io(),Ge=uo(),p2=yt(),{safeRe:Tt,t:At,comparatorTrimReplace:g2,tildeTrimReplace:m2,caretTrimReplace:y2}=Qi(),{FLAG_INCLUDE_PRERELEASE:v2,FLAG_LOOSE:A2}=co(),Ub=e=>e.value==="<0.0.0-0",E2=e=>e.value==="",Hb=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},b2=(e,t)=>(e=e.replace(Tt[At.BUILD],""),Ge("comp",e,t),e=C2(e,t),Ge("caret",e),e=w2(e,t),Ge("tildes",e),e=P2(e,t),Ge("xrange",e),e=_2(e,t),Ge("stars",e),e),It=e=>!e||e.toLowerCase()==="x"||e==="*",w2=(e,t)=>e.trim().split(/\s+/).map(r=>S2(r,t)).join(" "),S2=(e,t)=>{let r=t.loose?Tt[At.TILDELOOSE]:Tt[At.TILDE];return e.replace(r,(n,i,s,o,a)=>{Ge("tilde",e,n,i,s,o,a);let u;return It(i)?u="":It(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:It(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(Ge("replaceTilde pr",a),u=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,Ge("tilde return",u),u})},C2=(e,t)=>e.trim().split(/\s+/).map(r=>x2(r,t)).join(" "),x2=(e,t)=>{Ge("caret",e,t);let r=t.loose?Tt[At.CARETLOOSE]:Tt[At.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,a,u)=>{Ge("caret",e,i,s,o,a,u);let c;return It(s)?c="":It(o)?c=`>=${s}.0.0${n} <${+s+1}.0.0-0`:It(a)?s==="0"?c=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?(Ge("replaceCaret pr",u),s==="0"?o==="0"?c=`>=${s}.${o}.${a}-${u} <${s}.${o}.${+a+1}-0`:c=`>=${s}.${o}.${a}-${u} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${a}-${u} <${+s+1}.0.0-0`):(Ge("no pr"),s==="0"?o==="0"?c=`>=${s}.${o}.${a}${n} <${s}.${o}.${+a+1}-0`:c=`>=${s}.${o}.${a}${n} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),Ge("caret return",c),c})},P2=(e,t)=>(Ge("replaceXRanges",e,t),e.split(/\s+/).map(r=>O2(r,t)).join(" ")),O2=(e,t)=>{e=e.trim();let r=t.loose?Tt[At.XRANGELOOSE]:Tt[At.XRANGE];return e.replace(r,(n,i,s,o,a,u)=>{Ge("xRange",e,n,i,s,o,a,u);let c=It(s),f=c||It(o),l=f||It(a),h=l;return i==="="&&h&&(i=""),u=t.includePrerelease?"-0":"",c?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(f&&(o=0),a=0,i===">"?(i=">=",f?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",f?s=+s+1:o=+o+1),i==="<"&&(u="-0"),n=`${i+s}.${o}.${a}${u}`):f?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:l&&(n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),Ge("xRange return",n),n})},_2=(e,t)=>(Ge("replaceStars",e,t),e.trim().replace(Tt[At.STAR],"")),R2=(e,t)=>(Ge("replaceGTE0",e,t),e.trim().replace(Tt[t.includePrerelease?At.GTE0PRE:At.GTE0],"")),F2=e=>(t,r,n,i,s,o,a,u,c,f,l,h)=>(It(n)?r="":It(i)?r=`>=${n}.0.0${e?"-0":""}`:It(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,It(c)?u="":It(f)?u=`<${+c+1}.0.0-0`:It(l)?u=`<${c}.${+f+1}.0-0`:h?u=`<=${c}.${f}.${l}-${h}`:e?u=`<${c}.${f}.${+l+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),k2=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(Ge(e[n].semver),e[n].semver!==nd.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}});var Io=F((IK,Qb)=>{"use strict";var No=Symbol("SemVer ANY"),od=class e{static get ANY(){return No}constructor(t,r){if(r=Yb(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),sd("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===No?this.value="":this.value=this.operator+this.semver.version,sd("comp",this)}parse(t){let r=this.options.loose?Vb[Kb.COMPARATORLOOSE]:Vb[Kb.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Jb(n[2],this.options.loose):this.semver=No}toString(){return this.value}test(t){if(sd("Comparator.test",t,this.options.loose),this.semver===No||t===No)return!0;if(typeof t=="string")try{t=new Jb(t,this.options)}catch{return!1}return id(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Xb(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new Xb(this.value,r).test(t.semver):(r=Yb(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||id(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||id(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};Qb.exports=od;var Yb=ou(),{safeRe:Vb,t:Kb}=Qi(),id=ed(),sd=uo(),Jb=yt(),Xb=vr()});var ss=F((NK,Zb)=>{"use strict";var D2=vr(),L2=(e,t,r)=>{try{t=new D2(t,r)}catch{return!1}return t.test(e)};Zb.exports=L2});var tw=F(($K,ew)=>{"use strict";var T2=vr(),I2=(e,t)=>new T2(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));ew.exports=I2});var nw=F((MK,rw)=>{"use strict";var N2=yt(),$2=vr(),M2=(e,t,r)=>{let n=null,i=null,s=null;try{s=new $2(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new N2(n,r))}),n};rw.exports=M2});var sw=F((jK,iw)=>{"use strict";var j2=yt(),B2=vr(),W2=(e,t,r)=>{let n=null,i=null,s=null;try{s=new B2(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new j2(n,r))}),n};iw.exports=W2});var uw=F((BK,aw)=>{"use strict";var ad=yt(),q2=vr(),ow=To(),G2=(e,t)=>{e=new q2(e,t);let r=new ad("0.0.0");if(e.test(r)||(r=new ad("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],s=null;i.forEach(o=>{let a=new ad(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||ow(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||ow(r,s))&&(r=s)}return r&&e.test(r)?r:null};aw.exports=G2});var ud=F((WK,cw)=>{"use strict";var U2=vr(),H2=(e,t)=>{try{return new U2(e,t).range||"*"}catch{return null}};cw.exports=H2});var oc=F((qK,dw)=>{"use strict";var z2=yt(),hw=Io(),{ANY:Y2}=hw,V2=vr(),K2=ss(),lw=To(),fw=tc(),J2=nc(),X2=rc(),Q2=(e,t,r,n)=>{e=new z2(e,n),t=new V2(t,n);let i,s,o,a,u;switch(r){case">":i=lw,s=J2,o=fw,a=">",u=">=";break;case"<":i=fw,s=X2,o=lw,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(K2(e,t,n))return!1;for(let c=0;c<t.set.length;++c){let f=t.set[c],l=null,h=null;if(f.forEach(d=>{d.semver===Y2&&(d=new hw(">=0.0.0")),l=l||d,h=h||d,i(d.semver,l.semver,n)?l=d:o(d.semver,h.semver,n)&&(h=d)}),l.operator===a||l.operator===u||(!h.operator||h.operator===a)&&s(e,h.semver))return!1;if(h.operator===u&&o(e,h.semver))return!1}return!0};dw.exports=Q2});var gw=F((GK,pw)=>{"use strict";var Z2=oc(),e$=(e,t,r)=>Z2(e,t,">",r);pw.exports=e$});var yw=F((UK,mw)=>{"use strict";var t$=oc(),r$=(e,t,r)=>t$(e,t,"<",r);mw.exports=r$});var Ew=F((HK,Aw)=>{"use strict";var vw=vr(),n$=(e,t,r)=>(e=new vw(e,r),t=new vw(t,r),e.intersects(t,r));Aw.exports=n$});var ww=F((zK,bw)=>{"use strict";var i$=ss(),s$=yr();bw.exports=(e,t,r)=>{let n=[],i=null,s=null,o=e.sort((f,l)=>s$(f,l,r));for(let f of o)i$(f,t,r)?(s=f,i||(i=f)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let a=[];for(let[f,l]of n)f===l?a.push(f):!l&&f===o[0]?a.push("*"):l?f===o[0]?a.push(`<=${l}`):a.push(`${f} - ${l}`):a.push(`>=${f}`);let u=a.join(" || "),c=typeof t.raw=="string"?t.raw:String(t);return u.length<c.length?u:t}});var _w=F((YK,Ow)=>{"use strict";var Sw=vr(),ld=Io(),{ANY:cd}=ld,$o=ss(),fd=yr(),o$=(e,t,r={})=>{if(e===t)return!0;e=new Sw(e,r),t=new Sw(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let o=u$(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},a$=[new ld(">=0.0.0-0")],Cw=[new ld(">=0.0.0")],u$=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===cd){if(t.length===1&&t[0].semver===cd)return!0;r.includePrerelease?e=a$:e=Cw}if(t.length===1&&t[0].semver===cd){if(r.includePrerelease)return!0;t=Cw}let n=new Set,i,s;for(let d of e)d.operator===">"||d.operator===">="?i=xw(i,d,r):d.operator==="<"||d.operator==="<="?s=Pw(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=fd(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let d of n){if(i&&!$o(d,String(i),r)||s&&!$o(d,String(s),r))return null;for(let p of t)if(!$o(d,String(p),r))return!1;return!0}let a,u,c,f,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(let d of t){if(f=f||d.operator===">"||d.operator===">=",c=c||d.operator==="<"||d.operator==="<=",i){if(h&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===h.major&&d.semver.minor===h.minor&&d.semver.patch===h.patch&&(h=!1),d.operator===">"||d.operator===">="){if(a=xw(i,d,r),a===d&&a!==i)return!1}else if(i.operator===">="&&!$o(i.semver,String(d),r))return!1}if(s){if(l&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===l.major&&d.semver.minor===l.minor&&d.semver.patch===l.patch&&(l=!1),d.operator==="<"||d.operator==="<="){if(u=Pw(s,d,r),u===d&&u!==s)return!1}else if(s.operator==="<="&&!$o(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&c&&!s&&o!==0||s&&f&&!i&&o!==0||h||l)},xw=(e,t,r)=>{if(!e)return t;let n=fd(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},Pw=(e,t,r)=>{if(!e)return t;let n=fd(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};Ow.exports=o$});var Mo=F((VK,kw)=>{"use strict";var hd=Qi(),Rw=co(),c$=yt(),Fw=Wf(),l$=yi(),f$=fu(),h$=eh(),d$=ub(),p$=fb(),g$=db(),m$=gb(),y$=yb(),v$=Ab(),A$=yr(),E$=Sb(),b$=xb(),w$=ec(),S$=Rb(),C$=kb(),x$=To(),P$=tc(),O$=Qh(),_$=Zh(),R$=rc(),F$=nc(),k$=ed(),D$=Bb(),L$=Io(),T$=vr(),I$=ss(),N$=tw(),$$=nw(),M$=sw(),j$=uw(),B$=ud(),W$=oc(),q$=gw(),G$=yw(),U$=Ew(),H$=ww(),z$=_w();kw.exports={parse:l$,valid:f$,clean:h$,inc:d$,diff:p$,major:g$,minor:m$,patch:y$,prerelease:v$,compare:A$,rcompare:E$,compareLoose:b$,compareBuild:w$,sort:S$,rsort:C$,gt:x$,lt:P$,eq:O$,neq:_$,gte:R$,lte:F$,cmp:k$,coerce:D$,Comparator:L$,Range:T$,satisfies:I$,toComparators:N$,maxSatisfying:$$,minSatisfying:M$,minVersion:j$,validRange:B$,outside:W$,gtr:q$,ltr:G$,intersects:U$,simplifyRange:H$,subset:z$,SemVer:c$,re:hd.re,src:hd.src,tokens:hd.t,SEMVER_SPEC_VERSION:Rw.SEMVER_SPEC_VERSION,RELEASE_TYPES:Rw.RELEASE_TYPES,compareIdentifiers:Fw.compareIdentifiers,rcompareIdentifiers:Fw.rcompareIdentifiers}});var Tw=F((KK,Lw)=>{var Dw=Mo();Lw.exports=e=>Y$(e.reduce(Z$,{versions:{},"dist-tags":{},refs:{},shas:{}}));var Y$=e=>J$(V$(K$(e))),V$=e=>(Object.keys(e.refs).forEach(t=>{let r=e.refs[t];e.shas[r.sha]?e.shas[r.sha].push(t):e.shas[r.sha]=[t]}),e),K$=e=>(Object.keys(e.refs).filter(t=>t.endsWith("^{}")).forEach(t=>{let r=e.refs[t],n=e.refs[t.replace(/\^\{\}$/,"")];n&&(n.sha=r.sha,delete e.refs[t])}),e),J$=e=>{let t=e.refs.HEAD||{};return Object.keys(e.versions).forEach(n=>{let i=e.versions[n];e.refs.latest&&i.sha===e.refs.latest.sha?e["dist-tags"].latest=n:i.sha===t.sha&&(e["dist-tags"].HEAD=n,e.refs.latest||(e["dist-tags"].latest=n))}),e},X$=e=>e.startsWith("refs/tags/")?"tag":e.startsWith("refs/heads/")?"branch":e.startsWith("refs/pull/")?"pull":e==="HEAD"?"head":"other",Q$=e=>{let t=e.trim().split(/\s+/,2);if(t.length<2)return null;let r=t[0].trim(),n=t[1].trim(),i=X$(n);if(i==="tag"){let s=n.slice(10);return{sha:r,ref:s,rawRef:n,type:i}}if(i==="branch"){let s=n.slice(11);return{sha:r,ref:s,rawRef:n,type:i}}if(i==="pull"){let s=n.slice(5).replace(/\/head$/,"");return{sha:r,ref:s,rawRef:n,type:i}}return i==="head"?{sha:r,ref:"HEAD",rawRef:n,type:i}:{sha:r,ref:n,rawRef:n,type:i}},Z$=(e,t)=>{let r=Q$(t);if(!r)return e;if(e.refs[r.ref]=r,e.refs[r.rawRef]=r,r.type==="tag"){let n=!r.ref.endsWith("^{}")&&r.ref.match(/v?(\d+\.\d+\.\d+(?:[-+].+)?)$/);n&&Dw.valid(n[1],!0)&&(e.versions[Dw.clean(n[1],!0)]=r)}return e}});var dd=F((JK,Nw)=>{var eM=Lo(),{LRUCache:tM}=yu(),rM=Tw(),Iw=new tM({max:100,ttl:300*1e3});Nw.exports=async(e,t={})=>{if(!t.noGitRevCache){let i=Iw.get(e);if(i)return i}let{stdout:r}=await eM(["ls-remote",e],t),n=rM(r.trim().split(`
12
+ `));return Iw.set(e,n),n}});var Mw=F($w=>{var nM=e=>(e.fakePlatform||process.platform)==="win32";$w.isWindows=nM});var Bw=F((QK,jw)=>{"use strict";var{builtinModules:iM}=require("module"),sM=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),oM=["node_modules","favicon.ico"];function aM(e){var t=[],r=[];if(e===null)return r.push("name cannot be null"),jo(t,r);if(e===void 0)return r.push("name cannot be undefined"),jo(t,r);if(typeof e!="string")return r.push("name must be a string"),jo(t,r);if(e.length||r.push("name length must be greater than zero"),e.startsWith(".")&&r.push("name cannot start with a period"),e.match(/^_/)&&r.push("name cannot start with an underscore"),e.trim()!==e&&r.push("name cannot contain leading or trailing spaces"),oM.forEach(function(o){e.toLowerCase()===o&&r.push(o+" is not a valid package name")}),iM.includes(e.toLowerCase())&&t.push(e+" is a core module name"),e.length>214&&t.push("name can no longer contain more than 214 characters"),e.toLowerCase()!==e&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(e.split("/").slice(-1)[0])&&t.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(e)!==e){var n=e.match(sM);if(n){var i=n[1],s=n[2];if(s.startsWith(".")&&r.push("name cannot start with a period"),encodeURIComponent(i)===i&&encodeURIComponent(s)===s)return jo(t,r)}r.push("name can only contain URL-friendly characters")}return jo(t,r)}var jo=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};jw.exports=aM});var Kw=F((ZK,Go)=>{"use strict";var qo=process.platform==="win32",{URL:pd}=require("node:url"),os=qo?require("node:path/win32"):require("node:path"),{homedir:uM}=require("node:os"),cM=Au(),Ww=Mo(),Hw=Bw(),{log:lM}=su(),zw=qo?/\\|[/]/:/[/]/,Yw=/^(?:git[+])?[a-z]+:/i,fM=/^[^@]+@[^:.]+\.[^:]+:.+$/i,md=/[.](?:tgz|tar\.gz|tar)$/i,hM=/:[0-9]+(\/|$)/i,dM=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,pM=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/,qw="https://registry.npmjs.org";function Bo(e,t){let r,n;if(typeof e=="object")return e instanceof Wo&&(!t||t===e.where)?e:e.name&&e.rawSpec?Bo.resolve(e.name,e.rawSpec,t||e.where):Bo(e.raw,t||e.where);let i=e.indexOf("@",1),s=i>0?e.slice(0,i):e;return Yw.test(e)?n=e:fM.test(e)?n=`git+ssh://${e}`:!s.startsWith("@")&&(zw.test(s)||md.test(s))?n=e:i>0?(r=s,n=e.slice(i+1)||"*"):Hw(e).validForOldPackages?(r=e,n="*"):n=e,Vw(r,n,t,e)}function gM(e){return e?e.toLowerCase().startsWith("file:")?!0:qo?dM.test(e):pM.test(e):!1}function mM(e){return e?e.toLowerCase().startsWith("npm:"):!1}function Vw(e,t,r,n){let i=new Wo({raw:n,name:e,rawSpec:t,fromArgument:n!=null});if(e&&(i.name=e),r||(r=process.cwd()),gM(t))return Uw(i,r);if(mM(t))return xM(i,r);let s=cM.fromUrl(t,{noGitPlus:!0,noCommittish:!0});return s?wM(i,s):t&&Yw.test(t)?CM(i):t&&(zw.test(t)||md.test(t))?Uw(i,r):PM(i)}function yM(e,t=qw){let r=Bo(e);if(r.type!=="version")throw EM(r.type,r.raw);let n="pkg:npm/"+r.name.replace(/^@/,"%40")+"@"+r.rawSpec;return t!==qw&&(n+="?repository_url="+t),n}function vM(e,t,r){let n=new Error(`Invalid package name "${e}" of package "${r}": ${t.errors.join("; ")}.`);return n.code="EINVALIDPACKAGENAME",n}function AM(e,t){let r=new Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);return r.code="EINVALIDTAGNAME",r}function EM(e,t){let r=new Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);return r.code="EINVALIDPURLTYPE",r}var Wo=class{constructor(t){this.type=t.type,this.registry=t.registry,this.where=t.where,t.raw==null?this.raw=t.name?`${t.name}@${t.rawSpec}`:t.rawSpec:this.raw=t.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=t.rawSpec||"",this.saveSpec=t.saveSpec,this.fetchSpec=t.fetchSpec,t.name&&this.setName(t.name),this.gitRange=t.gitRange,this.gitCommittish=t.gitCommittish,this.gitSubdir=t.gitSubdir,this.hosted=t.hosted}setName(t){let r=Hw(t);if(!r.validForOldPackages)throw vM(t,r,this.raw);return this.name=t,this.scope=t[0]==="@"?t.slice(0,t.indexOf("/")):void 0,this.escapedName=t.replace("/","%2f"),this}toString(){let t=[];this.name!=null&&this.name!==""&&t.push(this.name);let r=this.saveSpec||this.fetchSpec||this.rawSpec;return r!=null&&r!==""&&t.push(r),t.length?t.join("@"):this.raw}toJSON(){let t=Object.assign({},this);return delete t.hosted,t}};function gd(e,t){if(!t){e.gitCommittish=null;return}for(let r of t.split("::")){if(!r.includes(":")){if(e.gitRange)throw new Error("cannot override existing semver range with a committish");if(e.gitCommittish)throw new Error("cannot override existing committish with a second committish");e.gitCommittish=r;continue}let[n,i]=r.split(":");if(n==="semver"){if(e.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(e.gitRange)throw new Error("cannot override existing semver range with a second semver range");e.gitRange=decodeURIComponent(i);continue}if(n==="path"){if(e.gitSubdir)throw new Error("cannot override existing path with a second path");e.gitSubdir=`/${i}`;continue}lM.warn("npm-package-arg",`ignoring unknown key "${n}"`)}}var bM=new Map([["\0","%00"],[" ","%09"],[`
13
+ `,"%0A"],["\r","%0D"],[" ","%20"],['"',"%22"],["#","%23"],["%","%25"],["?","%3F"],["[","%5B"],["\\",qo?"/":"%5C"],["]","%5D"],["^","%5E"],["|","%7C"],["~","%7E"]]);function Gw(e){let t="";for(let r=0;r<e.length;r++)t=`${t}${bM.get(e[r])??e[r]}`;return t.startsWith("file:")?t:`file:${t}`}function Uw(e,t){e.type=md.test(e.rawSpec)?"file":"directory",e.where=t;let r=Gw(e.rawSpec);r.startsWith("file:/")&&(/^file:\/\/[^/]/.test(r)&&(r=`file:/${r.slice(5)}`),/^\/{1,3}\.\.?(\/|$)/.test(r.slice(5))&&(r=r.replace(/^file:\/{1,3}/,"file:")));let n,i;try{n=new pd(r,`${Gw(os.resolve(t))}/`),i=new pd(r)}catch(a){let u=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(u,{raw:e.rawSpec,spec:e,where:t,originalError:a})}let s=decodeURIComponent(i.pathname),o=decodeURIComponent(n.pathname);return qo&&(s=s.replace(/^\/+([a-z]:\/)/i,"$1"),o=o.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(s)?(e.saveSpec=`file:${s.substr(1)}`,o=os.resolve(uM(),s.substr(3))):os.isAbsolute(r.slice(5))?e.saveSpec=`file:${os.resolve(o)}`:e.saveSpec=`file:${os.relative(t,o)}`,e.fetchSpec=os.resolve(t,o),e.saveSpec=e.saveSpec.split("\\").join("/"),e.saveSpec.startsWith("file://")&&(e.saveSpec=`file:/${e.saveSpec.slice(7)}`),e}function wM(e,t){return e.type="git",e.hosted=t,e.saveSpec=t.toString({noGitPlus:!1,noCommittish:!1}),e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString(),gd(e,t.committish),e}function SM(e,t){let r=new Error(`Unsupported URL Type "${e}": ${t}`);return r.code="EUNSUPPORTEDPROTOCOL",r}function CM(e){let t=e.rawSpec;if(e.saveSpec=t,t.startsWith("git+ssh:")){let n=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(n&&!n[1].match(hM))return e.type="git",gd(e,n[2]),e.fetchSpec=n[1],e}else t.startsWith("git+file://")&&(t=t.replace(/\\/g,"/"));let r=new pd(t);switch(r.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git",gd(e,r.hash.slice(1)),r.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t)?e.fetchSpec=`git+file://${r.host.toLowerCase()}:${r.pathname}`:(r.hash="",e.fetchSpec=r.toString()),e.fetchSpec.startsWith("git+")&&(e.fetchSpec=e.fetchSpec.slice(4));break;case"http:":case"https:":e.type="remote",e.fetchSpec=e.saveSpec;break;default:throw SM(r.protocol,t)}return e}function xM(e,t){let r=Bo(e.rawSpec.substr(4),t);if(r.type==="alias")throw new Error("nested aliases not supported");if(!r.registry)throw new Error("aliases only work for registry deps");if(!r.name)throw new Error("aliases must have a name");return e.subSpec=r,e.registry=!0,e.type="alias",e.saveSpec=null,e.fetchSpec=null,e}function PM(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let r=Ww.valid(t,!0),n=Ww.validRange(t,!0);if(r)e.type="version";else if(n)e.type="range";else{if(encodeURIComponent(t)!==t)throw AM(t,e.raw);e.type="tag"}return e}Go.exports=Bo;Go.exports.resolve=Vw;Go.exports.toPurl=yM;Go.exports.Result=Wo});var eS=F((eJ,Zw)=>{var Ci=require("node:process"),OM=require("node:os"),_M=require("node:fs");function RM(e){return e.includes("libc.musl-")||e.includes("ld-musl-")}function Jw(){return Ci.platform}function Xw(){return Ci.arch}var FM="/usr/bin/ldd";function kM(){try{let e=_M.readFileSync(FM,"utf-8");return e.includes("musl")?"musl":e.includes("GNU C Library")?"glibc":null}catch{return}}function DM(){let e=Ci.report.excludeNetwork;Ci.report.excludeNetwork=!0;let t=Ci.report.getReport();return Ci.report.excludeNetwork=e,t.header?.glibcVersionRuntime?ln="glibc":Array.isArray(t.sharedObjects)&&t.sharedObjects.some(RM)?ln="musl":ln=null,ln}var ln;function Qw(e){if(e==="linux")return ln===void 0&&(ln=kM(),ln===void 0&&(ln=DM())),ln}function LM(e={}){let t=e.os||Jw();return{cpu:{name:e.cpu||Xw()},libc:{name:e.libc||Qw(t)},os:{name:t,version:e.osVersion||OM.release()},packageManager:{name:"npm",version:e.npmVersion},runtime:{name:"node",version:e.nodeVersion||Ci.version}}}Zw.exports={cpu:Xw,libc:Qw,os:Jw,devEngines:LM}});var rS=F((tJ,tS)=>{var TM=ss(),IM=ud(),NM=["ignore","warn","error","download"],$M=["name","version","onFail"],MM=["packageManager","runtime","cpu","libc","os"];function jM(e,t,r){let{engine:n}=r;if(typeof e!="object"||e===null||Array.isArray(e))throw new Error(`Invalid non-object value for "${n}"`);let i=Object.keys(e);for(let s of i)if(!$M.includes(s))throw new Error(`Invalid property "${s}" for "${n}"`);if(!i.includes("name"))throw new Error(`Missing "name" property for "${n}"`);if(typeof e.name!="string")throw new Error(`Invalid non-string value for "name" within "${n}"`);if(typeof t.name!="string"||t.name==="")throw new Error(`Unable to determine "name" for "${n}"`);if(i.includes("onFail")){if(typeof e.onFail!="string")throw new Error(`Invalid non-string value for "onFail" within "${n}"`);if(!NM.includes(e.onFail))throw new Error(`Invalid onFail value "${e.onFail}" for "${n}"`)}if(e.name!==t.name)return new Error(`Invalid name "${e.name}" does not match "${t.name}" for "${n}"`);if(i.includes("version")){if(typeof e.version!="string")throw new Error(`Invalid non-string value for "version" within "${n}"`);if(typeof t.version!="string"||t.version==="")throw new Error(`Unable to determine "version" for "${n}" "${e.name}"`);if(IM(e.version)){if(!TM(t.version,e.version,r.semver))return new Error(`Invalid semver version "${e.version}" does not match "${t.version}" for "${n}"`)}else if(e.version!==t.version)return new Error(`Invalid version "${e.version}" does not match "${t.version}" for "${n}"`)}}function BM(e,t={},r={}){if(typeof e!="object"||e===null||Array.isArray(e))throw new Error('Invalid non-object value for "devEngines"');let n=[];for(let i of Object.keys(e)){if(!MM.includes(i))throw new Error(`Invalid property "devEngines.${i}"`);let s=e[i],o=[s].flat(),a=t[i]||{};if(o.length===0)continue;let u=[];for(let f of o){let l=jM(f,a,{...r,engine:i});l&&u.push(l)}if(u.length===o.length){let l=o[o.length-1].onFail||"error";l==="download"&&(l="error");let h=Object.assign(new Error(`Invalid devEngines.${i}`),{errors:u,engine:i,isWarn:l==="warn",isError:l==="error",current:a,required:s});n.push(h)}}return n}tS.exports={checkDevEngines:BM}});var sS=F((rJ,iS)=>{var nS=Mo(),ac=eS(),{checkDevEngines:WM}=rS(),qM=(e,t,r,n=!1)=>{let i=n?null:r,s=e.engines,o={includePrerelease:!0};if(!s)return;let a=i&&s.node&&!nS.satisfies(i,s.node,o),u=t&&s.npm&&!nS.satisfies(t,s.npm,o);if(a||u)throw Object.assign(new Error("Unsupported engine"),{pkgid:e._id,current:{node:r,npm:t},required:s,code:"EBADENGINE"})},GM=(e,t=!1,r={})=>{if(t)return;let n=r.os||ac.os(),i=r.cpu||ac.cpu(),s=r.libc||ac.libc(n),o=e.os?yd(n,e.os):!0,a=e.cpu?yd(i,e.cpu):!0,u=e.libc?yd(s,e.libc):!0;if(e.libc&&!s&&(u=!1),!o||!a||!u)throw Object.assign(new Error("Unsupported platform"),{pkgid:e._id,current:{os:n,cpu:i,libc:s},required:{os:e.os,cpu:e.cpu,libc:e.libc},code:"EBADPLATFORM"})},yd=(e,t)=>{if(typeof t=="string"&&(t=[t]),t.length===1&&t[0]==="any")return!0;let r=0,n=!1;for(let i of t){let s=i.charAt(0)==="!",o=s?i.slice(1):i;if(s){if(r++,e===o)return!1}else n=n||e===o}return n||r===t.length};iS.exports={checkEngine:qM,checkPlatform:GM,checkDevEngines:WM,currentEnv:ac}});var cS=F((nJ,uS)=>{var{join:oS,basename:aS}=require("path"),UM=e=>e.bin?typeof e.bin=="string"?HM(e):Array.isArray(e.bin)?zM(e):typeof e.bin=="object"?Ad(e):vd(e):vd(e),HM=e=>e.name?(e.bin={[e.name]:e.bin},Ad(e)):vd(e),zM=e=>(e.bin=e.bin.reduce((t,r)=>(t[aS(r)]=r,t),{}),Ad(e)),vd=e=>(delete e.bin,e),Ad=e=>{let t=e.bin,r={},n=!1;return Object.keys(t).forEach(i=>{let s=oS("/",aS(i.replace(/\\|:/g,"/"))).slice(1);if(typeof t[i]!="string"||!s)return;let o=oS("/",t[i].replace(/\\/g,"/")).replace(/\\/g,"/").slice(1);o&&(r[s]=o,n=!0)}),n?e.bin=r:delete e.bin,e};uS.exports=UM});var hS=F((iJ,fS)=>{"use strict";var lS=Kw(),Uo=Mo(),{checkEngine:YM}=sS(),VM=cS(),Ed=(e,t,r)=>{try{return YM(e,t,r),!0}catch{return!1}},uc=(e,t,r)=>!e||!e[t]||Date.parse(e[t])<=r,KM={includePrerelease:!0,loose:!0},cc=(e,t)=>t&&Uo.satisfies(e,t,KM),bd=(e,t)=>e&&cc(e.version,t)?{...e,_shouldAvoid:!0}:e,Ho=(e,t,r)=>{let{defaultTag:n="latest",before:i=null,nodeVersion:s=process.version,npmVersion:o=null,includeStaged:a=!1,avoid:u=null,avoidStrict:c=!1}=r,{name:f,time:l}=e,h=e.versions||{};if(c){let k={...r,avoidStrict:!1},$=Ho(e,t,k);if(!$||!$._shouldAvoid)return $;let x=Ho(e,`^${$.version}`,k);if(!x||!x._shouldAvoid)return{...x,_outsideDependencyRange:!0,_isSemVerMajor:!1};let g=Ho(e,"*",k);if(!g||!g._shouldAvoid)return{...g,_outsideDependencyRange:!0,_isSemVerMajor:!0};throw Object.assign(new Error(`No avoidable versions for ${f}`),{code:"ETARGET",name:f,wanted:t,avoid:u,before:i,versions:Object.keys(h)})}let d=a&&e.stagedVersions&&e.stagedVersions.versions||{},p=e.policyRestrictions&&e.policyRestrictions.versions||{},y=i&&l?+new Date(i):1/0,P=lS.resolve(f,t||n).type,S=e["dist-tags"]||{};if(P!=="tag"&&P!=="version"&&P!=="range")throw new Error("Only tag, version, and range are supported");if(t&&P==="tag"){let k=S[t];return uc(l,k,y)?bd(h[k]||d[k]||p[k],u):Ho(e,`<=${k}`,r)}if(t&&P==="version"){let k=Uo.clean(t,{loose:!0}),$=h[k]||d[k]||p[k];return uc(l,k,y)?bd($,u):null}let L=P==="range"?t:"*",O=S[n];if(O&&(L==="*"||Uo.satisfies(O,L,{loose:!0}))&&!p[O]&&!cc(O,u)){let k=h[O];if(k&&uc(l,O,y)&&Ed(k,o,s)&&!k.deprecated&&!d[O])return k}let b=Object.entries(h).concat(Object.entries(d)).concat(Object.entries(p)).filter(([k])=>uc(l,k,y));if(!b.length)throw Object.assign(new Error(`No versions available for ${f}`),{code:"ENOVERSIONS",name:f,type:P,wanted:t,before:i,versions:Object.keys(h)});let _={loose:!0},D=b.filter(([k])=>Uo.satisfies(k,L,{loose:!0})).sort((k,$)=>{let[x,g]=k,[v,A]=$,C=!cc(x,u),E=!cc(v,u),w=!p[x],T=!p[v],N=!d[x],M=!d[v],U=!g.deprecated,V=!A.deprecated,J=Ed(g,o,s),he=Ed(A,o,s);return E-C||T-w||M-N||(V&&he)-(U&&J)||he-J||V-U||Uo.rcompare(x,v,_)});return bd(D[0]&&D[0][1],u)};fS.exports=(e,t,r={})=>{let n=Ho(e,t,r),i=n&&VM(n),s=e.policyRestrictions,o=s&&s.versions||{};if(i&&!o[i.version])return i;let{before:a=null,defaultTag:u="latest"}=r,c=a?new Date(a).toLocaleString():"",{name:f}=e,l=`${f}@${t}`+(a?` with a date before ${c}`:""),h=i&&!!o[i.version],d=h?s.message:"",p=h?`Could not download ${l} due to policy violations:
14
+ ${d}`:`No matching version found for ${l}.`,y=h?"E403":"ETARGET";throw Object.assign(new Error(p),{code:y,type:lS.resolve(e.name,t).type,wanted:t,versions:Object.keys(e.versions??{}),name:f,distTags:e["dist-tags"],defaultTag:u})}});var mS=F((sJ,gS)=>{var JM=new Set(["github.com","gist.github.com","gitlab.com","bitbucket.com","bitbucket.org"]),{parse:XM}=require("url"),dS=require("path"),QM=dd(),zo=Lo(),{isWindows:lc}=Mw(),ZM=hS(),wd=require("fs/promises");gS.exports=(e,t="HEAD",r=null,n={})=>QM(e,n).then(i=>tj(e,i,t,rj(i,t,n),r||ej(e,n.cwd),n));var Sd=(e,t)=>t.gitShallow===!1||t.gitShallow?t.gitShallow:JM.has(XM(e).host),ej=(e,t=process.cwd())=>dS.resolve(t,dS.basename(e.replace(/[/\\]?\.git$/,""))),tj=(e,t,r,n,i,s)=>n?n.sha===t.refs.HEAD.sha?sj(e,n,i,s):n.type==="tag"||n.type==="branch"?ij(e,n,i,s):nj(e,n,i,s):oj(e,r,i,s),rj=(e,t,r)=>{let{spec:n={}}=r;return t=n.gitCommittish||t,e?n.gitRange?ZM(e,n.gitRange,r):t?e.refs[t]?e.refs[t]:e.shas[t]?e.refs[e.shas[t][0]]:null:e.refs.HEAD:null},nj=(e,t,r,n)=>{let i=Sd(e,n),s=["fetch","origin",t.rawRef].concat(i?["--depth=1"]:[]),o=a=>zo(a,{...n,cwd:r});return wd.mkdir(r,{recursive:!0}).then(()=>o(["init"])).then(()=>lc(n)?o(["config","--local","--add","core.longpaths","true"]):null).then(()=>o(["remote","add","origin",e])).then(()=>o(s)).then(()=>o(["checkout",t.sha])).then(()=>pS(r,n)).then(()=>t.sha)},ij=(e,t,r,n)=>{let i=["clone","-b",t.ref,e,r,"--recurse-submodules"];return Sd(e,n)&&i.push("--depth=1"),lc(n)&&i.push("--config","core.longpaths=true"),zo(i,n).then(()=>t.sha)},sj=(e,t,r,n)=>{let i=["clone",e,r,"--recurse-submodules"];return Sd(e,n)&&i.push("--depth=1"),lc(n)&&i.push("--config","core.longpaths=true"),zo(i,n).then(()=>t.sha)},pS=async(e,t)=>await wd.stat(`${e}/.gitmodules`).then(()=>!0).catch(()=>!1)?zo(["submodule","update","-q","--init","--recursive"],{...t,cwd:e}):null,oj=(e,t,r,n)=>{let i=lc(n)?["--config","core.longpaths=true"]:[],s=["clone","--mirror","-q",e,r+"/.git"],o=a=>zo(a,{...n,cwd:r});return wd.mkdir(r,{recursive:!0}).then(()=>o(s.concat(i))).then(()=>o(["init"])).then(()=>o(["checkout",t])).then(()=>pS(r,n)).then(()=>o(["rev-parse","--revs-only","HEAD"])).then(({stdout:a})=>a.trim())}});var Cd=F((oJ,yS)=>{var{stat:aj}=require("fs/promises");yS.exports=({cwd:e=process.cwd()}={})=>aj(e+"/.git").then(()=>!0,()=>!1)});var AS=F((aJ,vS)=>{var uj=Cd(),{dirname:cj}=require("path");vS.exports=async({cwd:e=process.cwd(),root:t}={})=>{for(;;){if(await uj({cwd:e}))return e;let r=cj(e);if(e===t||e===r)return null;e=r}}});var bS=F((uJ,ES)=>{var lj=Lo();ES.exports=(e={})=>lj(["status","--porcelain=v1","-uno"],e).then(t=>!t.stdout.trim().split(/\r?\n+/).map(r=>r.trim()).filter(r=>r).length)});var SS=F((cJ,wS)=>{wS.exports={clone:mS(),revs:dd(),spawn:Lo(),is:Cd(),find:AS(),isClean:bS(),errors:Kh()}});var RS=F((lJ,_S)=>{var fj=fu(),hj=eh(),In=require("node:fs/promises"),He=require("node:path"),{log:PS}=kv(),dj=require("node:module"),xd;function CS(){return xd||(xd=Au()),xd}var Pd;function fc(){return Pd||(Pd=$h().glob),Pd}function pj(e,t){if(e.bin&&(typeof e.bin=="string"&&e.name?(t?.push('"bin" was converted to an object'),e.bin={[e.name]:e.bin}):Array.isArray(e.bin)&&(t?.push('"bin" was converted to an object'),e.bin=e.bin.reduce((r,n)=>(r[He.basename(n)]=n,r),{})),typeof e.bin=="object")){for(let r in e.bin){if(typeof e.bin[r]!="string"){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}let n=He.basename(as(r));if(!n){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}let i=as(e.bin[r]);if(!i){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}n!==r&&(delete e.bin[r],t?.push(`"bin[${r}]" was renamed to "bin[${n}]"`)),i!==e.bin[r]&&t?.push(`"bin[${n}]" script name ${i} was invalid and removed`),e.bin[n]=i}return Object.keys(e.bin).length===0&&(t?.push('empty "bin" was removed'),delete e.bin),e}delete e.bin}function gj(e,t){if(e.man){let r=[];for(let n of Array.isArray(e.man)?e.man:[e.man])typeof n!="string"?t?.push(`removed invalid "man [${n}]"`):r.push(as(n));if(!r.length)t?.push('empty "man" was removed');else return e.man=r,e}delete e.man}function mj(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function yj(e){if(e.charAt(0)!=="@")return!1;let t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function xS(e){return e.replace(/\\|:/g,"/")}function as(e){let t=xS(He.join(".",He.join("/",xS(e))));return t.startsWith("./")?"":t}function OS(e,{strict:t,steps:r,changes:n,allowLegacyCase:i}){let s=e.content,o=`${s.name??""}@${s.version??""}`;if(r.includes("fixName")||r.includes("fixNameField")||r.includes("normalizeData"))if(!s.name&&!t)n?.push('Missing "name" field was set to an empty string'),s.name="";else{if(typeof s.name!="string")throw new Error("name field must be a string.");if(!t){let a=s.name.trim();s.name!==a&&(n?.push('Whitespace was trimmed from "name"'),s.name=a)}if(s.name.startsWith(".")||!(yj(s.name)||mj(s.name))||t&&!i&&s.name!==s.name.toLowerCase()||s.name.toLowerCase()==="node_modules"||s.name.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(s.name))}if(r.includes("fixName")&&dj.builtinModules.includes(s.name)&&PS.warn("package-json",o,`Package name "${s.name}" conflicts with a Node.js built-in module name`),r.includes("fixVersionField")||r.includes("normalizeData")){let a=!t;if(!s.version)s.version="";else{if(!fj(s.version,a))throw new Error(`Invalid version: "${s.version}"`);let u=hj(s.version,a);u!==s.version&&(n?.push(`"version" was cleaned and set to "${u}"`),s.version=u)}}if(r.includes("_attributes"))for(let a in s)a.startsWith("_")&&(n?.push(`"${a}" was removed`),delete e.content[a]);if(r.includes("_id")&&s.name&&s.version&&(n?.push(`"_id" was set to ${o}`),s._id=o),r.includes("bundledDependencies")&&(s.bundleDependencies===void 0&&s.bundledDependencies!==void 0&&(s.bundleDependencies=s.bundledDependencies,n?.push('Deleted incorrect "bundledDependencies"')),delete s.bundledDependencies),r.includes("bundleDependencies")){let a=s.bundleDependencies;a===!1&&!r.includes("bundleDependenciesDeleteFalse")?(n?.push('"bundleDependencies" was changed from "false" to "[]"'),s.bundleDependencies=[]):a===!0?(n?.push('"bundleDependencies" was auto-populated from "dependencies"'),s.bundleDependencies=Object.keys(s.dependencies||{})):a&&typeof a=="object"?Array.isArray(a)||(n?.push('"bundleDependencies" was changed from an object to an array'),s.bundleDependencies=Object.keys(a)):"bundleDependencies"in s&&(n?.push('"bundleDependencies" was removed'),delete s.bundleDependencies)}if(r.includes("optionalDedupe")&&s.dependencies&&s.optionalDependencies&&typeof s.optionalDependencies=="object"){for(let a in s.optionalDependencies)n?.push(`optionalDependencies."${a}" was removed`),delete s.dependencies[a];Object.keys(s.dependencies).length||(n?.push('Empty "optionalDependencies" was removed'),delete s.dependencies)}if((r.includes("scripts")||r.includes("scriptpath"))&&s.scripts!==void 0){let a=/^(\.[/\\])?node_modules[/\\].bin[\\/]/;if(typeof s.scripts=="object")for(let u in s.scripts)typeof s.scripts[u]!="string"?(delete s.scripts[u],n?.push(`Invalid scripts."${u}" was removed`)):r.includes("scriptpath")&&a.test(s.scripts[u])&&(s.scripts[u]=s.scripts[u].replace(a,""),n?.push(`scripts entry "${u}" was fixed to remove node_modules/.bin reference`));else n?.push('Removed invalid "scripts"'),delete s.scripts}if(r.includes("funding")&&s.funding&&typeof s.funding=="string"&&(s.funding={url:s.funding},n?.push('"funding" was changed to an object with a url attribute')),(r.includes("fixRepositoryField")||r.includes("normalizeData"))&&(s.repositories&&(n?.push(`"repository" was set to the first entry in "repositories" (${s.repository})`),s.repository=s.repositories[0]),s.repository&&(typeof s.repository=="string"&&(n?.push('"repository" was changed from a string to an object'),s.repository={type:"git",url:s.repository}),s.repository.url))){let a=CS().fromUrl(s.repository.url),u;a&&(a.getDefaultRepresentation()==="shortcut"?u=a.https():u=a.toString(),u!==s.repository.url&&(n?.push(`"repository.url" was normalized to "${u}"`),s.repository.url=u))}if(r.includes("fixDependencies")||r.includes("normalizeData")){for(let a of["dependencies","devDependencies","optionalDependencies"])if(s[a]){let u=!0;if(typeof s[a]=="string"&&(n?.push(`"${a}" was converted from a string into an object`),s[a]=s[a].trim().split(/[\n\r\s\t ,]+/),u=!1),Array.isArray(s[a])){u&&n?.push(`"${a}" was converted from an array into an object`);let c={};for(let f of s[a])if(typeof f=="string"){let l=f.trim().split(/(:?[@\s><=])/),h=l.shift(),d=l.join("").replace(/^@/,"").trim();c[h]=d}s[a]=c}}for(let a of["dependencies","devDependencies"])if(a in s)if(!s[a]||typeof s[a]!="object")n?.push(`Removed invalid "${a}"`),delete s[a];else for(let u in s[a]){typeof s[a][u]!="string"&&(n?.push(`Removed invalid "${a}.${u}"`),delete s[a][u]);let f=CS().fromUrl(s[a][u])?.toString();f&&f!==s[a][u]&&(n?.push(`Normalized git reference to "${a}.${u}"`),s[a][u]=f.toString())}}if(r.includes("normalizeData")){let{normalizeData:a}=lE();a(s,n)}}async function vj(e,{steps:t,root:r,changes:n}){let i=e.content,s=i.scripts||{},o=`${i.name??""}@${i.version??""}`;if(t.includes("gypfile")&&!s.install&&!s.preinstall&&i.gypfile!==!1&&(await fc()("*.gyp",{cwd:e.path})).length&&(s.install="node-gyp rebuild",i.scripts=s,i.gypfile=!0,n?.push('"scripts.install" was set to "node-gyp rebuild"'),n?.push('"gypfile" was set to "true"')),t.includes("serverjs")&&!s.start)try{await In.access(He.join(e.path,"server.js")),s.start="node server.js",i.scripts=s,n?.push('"scripts.start" was set to "node server.js"')}catch{}if(t.includes("authors")&&!i.contributors)try{let u=(await In.readFile(He.join(e.path,"AUTHORS"),"utf8")).split(/\r?\n/g).map(c=>c.replace(/^\s*#.*$/,"").trim()).filter(c=>c);i.contributors=u,n?.push('"contributors" was auto-populated with the contents of the "AUTHORS" file')}catch{}if(t.includes("readme")&&!i.readme){let a=/\.m?a?r?k?d?o?w?n?$/i,u=await fc()("{README,README.*}",{cwd:e.path,nocase:!0,mark:!0}),c;for(let f of u)if(!f.endsWith(He.sep)){if(f.match(a)){c=f;break}f.endsWith("README")&&(c=f)}if(c){let f=await In.readFile(He.join(e.path,c),"utf8");i.readme=f,i.readmeFilename=c,n?.push(`"readme" was set to the contents of ${c}`),n?.push(`"readmeFilename" was set to ${c}`)}i.readme||(i.readme="ERROR: No README data found!")}if(t.includes("mans")){if(i.directories?.man&&!i.man){let a=as(i.directories.man),u=He.resolve(e.path,a),c=await fc()("**/*.[0-9]",{cwd:u});i.man=c.map(f=>He.relative(e.path,He.join(u,f)).split(He.sep).join("/"))}gj(i,n)}if(t.includes("binDir")&&i.directories?.bin&&!i.bin){let a=as(i.directories.bin),u=await fc()("**",{cwd:He.resolve(e.path,a)});i.bin=u.reduce((c,f)=>{if(f&&!f.startsWith(".")){let l=He.basename(f);c[l]=`${a}/${as(f)}`}return c},{})}else(t.includes("bin")||t.includes("binDir")||t.includes("binRefs"))&&pj(i,n);if(t.includes("gitHead")&&!i.gitHead){let u=await SS().find({cwd:e.path,root:r}),c;if(u)try{c=await In.readFile(He.resolve(u,".git/HEAD"),"utf8")}catch{}let f;if(c)if(c.startsWith("ref: ")){let l=c.replace(/^ref: /,"").trim(),h=He.resolve(u,".git",l);try{f=await In.readFile(h,"utf8"),f=f.replace(/^ref: /,"").trim()}catch{}if(!f){let d=He.resolve(u,".git/packed-refs");try{let p=await In.readFile(d,"utf8");if(p){p=p.split(`
15
+ `);for(let y=0;y<p.length;y++){let m=p[y].match(/^([0-9a-f]{40}) (.+)$/);if(m&&m[2].trim()===l){f=m[1];break}}}}catch{}}}else f=c.trim();f&&(i.gitHead=f)}if(t.includes("fillTypes")){let a=i.main||"index.js";if(typeof a!="string")throw new TypeError('The "main" attribute must be of type string.');let c=`./${He.join(He.dirname(a),He.basename(a,He.extname(a)))}.d.ts`;if(!("types"in i||"typings"in i))try{await In.access(He.join(e.path,c)),i.types=c.split(He.sep).join("/")}catch{}}if(t.includes("binRefs")&&i.bin instanceof Object)for(let a in i.bin)try{await In.access(He.resolve(e.path,i.bin[a]))}catch{PS.warn("package-json",o,`No bin file found at ${i.bin[a]}`)}}async function Aj(e,t){if(!e.content)throw new Error("Can not normalize without content");await vj(e,t),OS(e,t)}function Ej(e,t){OS(e,t)}_S.exports={normalize:Aj,syncNormalize:Ej}});var LS=F((fJ,DS)=>{var{readFile:bj}=require("fs/promises"),wj=Qf();async function FS(e){try{return await bj(e,"utf8")}catch(t){throw t.message=`Could not read package.json: ${t}`,t}}function kS(e){try{return wj(e)}catch(t){throw t.message=`Invalid package.json: ${t}`,t}}async function Sj(e){let t=await FS(e);return kS(t)}DS.exports={read:FS,parse:kS,readPackage:Sj}});var IS=F((hJ,TS)=>{function Cj(e){let{name:t,version:r,private:n,description:i,keywords:s,homepage:o,bugs:a,repository:u,funding:c,license:f,author:l,maintainers:h,contributors:d,type:p,imports:y,exports:m,main:P,browser:S,types:L,bin:O,man:b,directories:_,files:D,workspaces:k,scripts:$,config:x,dependencies:g,devDependencies:v,peerDependencies:A,peerDependenciesMeta:C,optionalDependencies:E,bundledDependencies:w,bundleDependencies:T,engines:N,os:M,cpu:U,publishConfig:V,devEngines:J,licenses:he,overrides:q,...H}=e;return{...typeof t<"u"?{name:t}:{},...typeof r<"u"?{version:r}:{},...typeof n<"u"?{private:n}:{},...typeof i<"u"?{description:i}:{},...typeof s<"u"?{keywords:s}:{},...typeof o<"u"?{homepage:o}:{},...typeof a<"u"?{bugs:a}:{},...typeof u<"u"?{repository:u}:{},...typeof c<"u"?{funding:c}:{},...typeof f<"u"?{license:f}:{},...typeof l<"u"?{author:l}:{},...typeof h<"u"?{maintainers:h}:{},...typeof d<"u"?{contributors:d}:{},...typeof p<"u"?{type:p}:{},...typeof y<"u"?{imports:y}:{},...typeof m<"u"?{exports:m}:{},...typeof P<"u"?{main:P}:{},...typeof S<"u"?{browser:S}:{},...typeof L<"u"?{types:L}:{},...typeof O<"u"?{bin:O}:{},...typeof b<"u"?{man:b}:{},...typeof _<"u"?{directories:_}:{},...typeof D<"u"?{files:D}:{},...typeof k<"u"?{workspaces:k}:{},...typeof $<"u"?{scripts:$}:{},...typeof x<"u"?{config:x}:{},...typeof g<"u"?{dependencies:g}:{},...typeof v<"u"?{devDependencies:v}:{},...typeof A<"u"?{peerDependencies:A}:{},...typeof C<"u"?{peerDependenciesMeta:C}:{},...typeof E<"u"?{optionalDependencies:E}:{},...typeof w<"u"?{bundledDependencies:w}:{},...typeof T<"u"?{bundleDependencies:T}:{},...typeof N<"u"?{engines:N}:{},...typeof M<"u"?{os:M}:{},...typeof U<"u"?{cpu:U}:{},...typeof V<"u"?{publishConfig:V}:{},...typeof J<"u"?{devEngines:J}:{},...typeof he<"u"?{licenses:he}:{},...typeof q<"u"?{overrides:q}:{},...H}}TS.exports={packageSort:Cj}});var Rd=F((dJ,MS)=>{var{readFile:xj,writeFile:Pj}=require("node:fs/promises"),{resolve:NS}=require("node:path"),Oj=Qf(),$S=Cv(),_j=Pv(),Rj=_v(),{normalize:Od,syncNormalize:Fj}=RS(),{read:kj,parse:Dj}=LS(),{packageSort:Lj}=IS(),Tj=new Set([$S,_j,Rj]),Ij=new Set([...$S.knownKeys,"scripts","workspaces"]),_d=class e{static fixSteps=Object.freeze(["binRefs","bundleDependencies","fixName","fixVersionField","fixRepositoryField","fixDependencies","devDependencies","scriptpath"]);static normalizeSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","optionalDedupe","scripts","funding","bin","binDir"]);static prepareSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","bundleDependenciesDeleteFalse","gypfile","serverjs","scriptpath","authors","readme","mans","binDir","gitHead","fillTypes","normalizeData","binRefs"]);static async create(t,r={}){let n=new e;return await n.create(t),r.data?n.update(r.data):n}static async load(t,r={}){let n=new e;if(!r.create)return n.load(t);try{return await n.load(t)}catch(i){if(!i.message.startsWith("Could not read package.json"))throw i;return await n.create(t)}}static async fix(t,r){let n=new e;return await n.load(t,!0),n.fix(r)}static async prepare(t,r){let n=new e;return await n.load(t,!0),n.prepare(r)}static async normalize(t,r){let n=new e;return await n.load(t),n.normalize(r)}#e;#r;#t="";#n=!0;async load(t,r){this.#e=t;let n;try{this.#t=await kj(this.filename)}catch(i){if(!r)throw i;n=i}if(n){let i=NS(this.path,"index.js"),s;try{s=await xj(i,"utf8")}catch{throw n}try{this.fromComment(s)}catch{throw n}return this.#n=!1,this}return this.fromJSON(this.#t)}fromJSON(t){return this.#r=Dj(t),this}fromContent(t){if(!t||typeof t!="object")throw new Error("Content data must be an object");return this.#r=t,this.#n=!1,this}fromComment(t){if(t=t.split(/^\/\*\*package(?:\s|$)/m),t.length<2)throw new Error("File has no package in comments");if(t=t[1],t=t.split(/\*\*\/$/m),t.length<2)throw new Error("File has no package in comments");return t=t[0],t=t.replace(/^\s*\*/mg,""),this.#r=Oj(t),this}get content(){return this.#r}get path(){return this.#e}get filename(){if(this.path)return NS(this.path,"package.json")}create(t){return this.#e=t,this.#r={},this}update(t){if(!this.content)throw new Error("Can not update without content. Please `load` or `create`");for(let r of Tj)this.#r=r({content:t,originalContent:this.content});for(let[r,n]of Object.entries(t))Ij.has(r)||(this.content[r]=n);return this}async save({sort:t}={}){if(!this.#n)throw new Error("No package.json to save to");let{[Symbol.for("indent")]:r,[Symbol.for("newline")]:n,...i}=this.content,s=r===void 0?" ":r,o=n===void 0?`
16
+ `:n,a=t?Lj(i):i,u=`${JSON.stringify(a,null,s)}
17
+ `.replace(/\n/g,o);if(u.trim()!==this.#t.trim()){let c=await Pj(this.filename,u);return this.#t=u,c}}syncNormalize(t={}){return t.steps=this.constructor.normalizeSteps.filter(r=>r!=="_attributes"),Fj(this,t),this}async normalize(t={}){return t.steps||(t.steps=this.constructor.normalizeSteps),await Od(this,t),this}async prepare(t={}){return t.steps||(t.steps=this.constructor.prepareSteps),await Od(this,t),this}async fix(t={}){return t.steps=this.constructor.fixSteps,await Od(this,t),this}};MS.exports=_d});var WS=F((pJ,BS)=>{var{basename:jS,dirname:Nj}=require("path"),$j=(e,t)=>e.charAt(0)==="@"?`${e}/${t}`:t;BS.exports=e=>e?$j(jS(Nj(e)),jS(e)):!1});var YS=F((gJ,zS)=>{var qS=require("path"),Mj=WS(),{minimatch:Yo}=an(),jj=Rd(),{glob:Bj}=$h();function Wj(e){let t=[],r=[];for(let n of e){let i=n.match(/^!+/);if(i&&(n=n.slice(i[0].length)),n=n.replace(/^\.?\/+/,""),i&&i[0].length%2===1)r.push(n);else{for(let o=0;o<r.length;++o){let a=r[o];Yo(n,a)&&r.splice(o,1)}t.push(n)}}for(let n of r)for(let i of Yo.match(t,n))t.splice(t.indexOf(i),1);return{patterns:t,negatedPatterns:r}}function GS(e){let t=Array.isArray(e.packages)?e.packages:e;if(!Array.isArray(t))throw hc({message:"workspaces config expects an Array",code:"EWORKSPACESCONFIG"});return Wj(t)}function US(e,t){return e.name||Mj(t)}function qj(e){return e=e.replace(/\\/g,"/"),e.endsWith("/")?e:`${e}/`}function hc({Type:e=TypeError,message:t,code:r}){return Object.assign(new e(t),{code:r})}function Gj(e){return new Map(Array.from(e,t=>t.reverse()))}async function HS(e={}){if(!e||!e.pkg)throw hc({message:"mapWorkspaces missing pkg info",code:"EMAPWORKSPACESPKG"});e.cwd||(e.cwd=process.cwd());let{workspaces:t=[]}=e.pkg,{patterns:r,negatedPatterns:n}=GS(t),i=new Map;if(!r.length&&!n.length)return i;let s=new Map,o=()=>({...e,ignore:[...e.ignore||[],"**/node_modules/**",...n]}),a=await Bj(r.map(f=>qj(f)),o());a=a.sort((f,l)=>f.localeCompare(l,"en"));let u=[];for(let f of r)u.push(...a.filter(l=>Yo(l,f,{partial:!0,windowsPathsNoEscape:!0})));for(let f of u){let l;try{l=await jj.normalize(qS.join(e.cwd,f))}catch(p){if(p.code==="ENOENT"||p.code==="ENOTDIR")continue;throw p}let h=US(l.content,l.path),d=s.get(h);d||(d=new Set,s.set(h,d)),d.add(l.path)}let c=["must not have multiple workspaces with the same name"];for(let[f,l]of s)l.size>1?Uj(c,f,l):i.set(f,l.values().next().value);if(c.length>1)throw hc({Type:Error,message:c.join(`
18
+ `),code:"EDUPLICATEWORKSPACE"});return i}function Uj(e,t,r){e.push(`package '${t}' has conflicts in the following paths:`);for(let n of r)e.push(" "+n)}HS.virtual=function(e={}){if(!e||!e.lockfile)throw hc({message:"mapWorkspaces.virtual missing lockfile info",code:"EMAPWORKSPACESLOCKFILE"});e.cwd||(e.cwd=process.cwd());let{packages:t={}}=e.lockfile,{workspaces:r=[]}=t[""]||{},n=new Map,{patterns:i,negatedPatterns:s}=GS(r);if(!i.length&&!s.length)return n;s.push("**/node_modules/**");let o=Object.keys(t);for(let a of s)for(let u of Yo.match(o,a))o.splice(o.indexOf(u),1);for(let a of i)for(let u of Yo.match(o,a)){let c=qS.join(e.cwd,u),f=US(t[u],c);n.set(c,f)}return Gj(n)};zS.exports=HS});var QS=F((mJ,XS)=>{var{walkUp:Hj}=Ey(),VS=kf(),fn=$f(),{log:ir,time:zj}=su(),{resolve:Jo,dirname:dc,join:Fd}=require("node:path"),{homedir:Yj}=require("node:os"),{readFile:Vj,writeFile:Kj,chmod:Jj,unlink:Xj,stat:KS,mkdir:Qj}=require("node:fs/promises"),Zj=["npm-version","global-prefix","local-prefix"],kd=(...e)=>KS(Jo(...e)).then(t=>t.isFile()).catch(()=>!1),eB=(...e)=>KS(Jo(...e)).then(t=>t.isDirectory()).catch(()=>!1),pc=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),us=hu(),xi=iv(),tB=Yf(),rB=uv(),nB=hv(),JS=new Set(["global","user","project"]),Vo=new Set(["default","builtin",...JS,"env","cli"]),Dd=class{#e=!1;#r;#t=null;static get typeDefs(){return us}constructor({definitions:t,shorthands:r,flatten:n,nerfDarts:i=[],npmPath:s,env:o=process.env,argv:a=process.argv,platform:u=process.platform,execPath:c=process.execPath,cwd:f=process.cwd(),excludeNpmCwd:l=!1}){this.nerfDarts=i,this.definitions=t;let h={},d={};this.deprecated={};for(let[m,P]of Object.entries(t))d[m]=P.default,h[m]=P.type,P.deprecated&&(this.deprecated[m]=P.deprecated.trim().replace(/\n +/,`
19
+ `));this.#r=n,this.types=h,this.shorthands=r,this.defaults=d,this.npmPath=s,this.npmBin=Fd(this.npmPath,"bin/npm-cli.js"),this.argv=a,this.env=o,this.execPath=c,this.platform=u,this.cwd=f,this.excludeNpmCwd=l,this.globalPrefix=null,this.localPrefix=null,this.localPackage=null,this.home=null;let p=[...Vo];this.data=new Map;let y=null;for(let m of p)this.data.set(m,y=new Ld(y));this.data.set=()=>{throw new Error("cannot change internal config data structure")},this.data.delete=()=>{throw new Error("cannot change internal config data structure")},this.sources=new Map([]),this.list=[];for(let{data:m}of this.data.values())this.list.unshift(m);Object.freeze(this.list),this.#e=!1}get loaded(){return this.#e}get prefix(){return this.#n("global")?this.globalPrefix:this.localPrefix}find(t){if(!this.loaded)throw new Error("call config.load() before reading values");let r=[...this.data.entries()];for(let n=r.length-1;n>-1;n--){let[i,{data:s}]=r[n];if(pc(s,t))return i}return null}get(t,r){if(!this.loaded)throw new Error("call config.load() before reading values");return this.#n(t,r)}#n(t,r=null){if(r!==null&&!Vo.has(r))throw new Error("invalid config location param: "+r);let{data:n}=this.data.get(r||"cli");return r===null||pc(n,t)?n[t]:void 0}set(t,r,n="cli"){if(!this.loaded)throw new Error("call config.load() before setting values");if(!Vo.has(n))throw new Error("invalid config location param: "+n);this.#d(t);let{data:i,raw:s}=this.data.get(n);i[t]=r,["global","user","project"].includes(n)&&(s[t]=r),this.data.get(n)[cs]=null,this.#t=null}get flat(){if(this.#t)return this.#t;let t=zj.start("config:load:flatten");this.#t={};for(let{data:r}of this.data.values())this.#r(r,this.#t);return this.#t.nodeBin=this.execPath,this.#t.npmBin=this.npmBin,t(),this.#t}delete(t,r="cli"){if(!this.loaded)throw new Error("call config.load() before deleting values");if(!Vo.has(r))throw new Error("invalid config location param: "+r);let{data:n,raw:i}=this.data.get(r);delete n[t],["global","user","project"].includes(r)&&delete i[t]}async load(){if(this.loaded)throw new Error("attempting to load npm config multiple times");this.loadDefaults(),await this.loadBuiltinConfig(),this.loadCLI(),this.loadEnv(),await this.loadProjectConfig(),await this.loadUserConfig(),await this.loadGlobalConfig(),this.#e=!0,this.globalPrefix=this.get("prefix"),this.setEnvs()}loadDefaults(){this.loadGlobalPrefix(),this.loadHome();let t={...this.defaults,prefix:this.globalPrefix};try{t["npm-version"]=require(Fd(this.npmPath,"package.json")).version}catch{}this.#h(t,"default","default values");let{data:r}=this.data.get("default");Object.defineProperty(r,"globalconfig",{get:()=>Jo(this.#n("prefix"),"etc/npmrc"),set(n){Object.defineProperty(r,"globalconfig",{value:n,configurable:!0,writable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}loadHome(){this.home=this.env.HOME||Yj()}loadGlobalPrefix(){if(this.globalPrefix)throw new Error("cannot load default global prefix more than once");this.env.PREFIX?this.globalPrefix=this.env.PREFIX:this.platform==="win32"?this.globalPrefix=dc(this.execPath):(this.globalPrefix=dc(dc(this.execPath)),this.env.DESTDIR&&(this.globalPrefix=Fd(this.env.DESTDIR,this.globalPrefix)))}loadEnv(){let t=Object.create(null);for(let[r,n]of Object.entries(this.env)){if(!/^npm_config_/i.test(r)||n==="")continue;let i=r.slice(11);i.startsWith("//")||(i=i.replace(/(?!^)_/g,"-").toLowerCase()),t[i]=n}this.#h(t,"env","environment")}loadCLI(){for(let r of Object.keys(this.shorthands))r.length>1&&this.argv.includes(`-${r}`)&&ir.warn(`-${r} is not a valid single-hyphen cli flag and will be removed in the future`);fn.invalidHandler=(r,n,i)=>this.invalidHandler(r,n,i,"command line options","cli"),fn.unknownHandler=this.unknownHandler,fn.abbrevHandler=this.abbrevHandler;let t=fn(this.types,this.shorthands,this.argv);fn.invalidHandler=null,fn.unknownHandler=null,this.parsedArgv=t.argv,delete t.argv,this.#h(t,"cli","command line options")}get valid(){for(let[t,{valid:r}]of this.data.entries())if(r===!1||r===null&&!this.validate(t))return!1;return!0}validate(t){if(t){let r=this.data.get(t);return r[cs]=!0,fn.invalidHandler=(n,i,s)=>this.invalidHandler(n,i,s,r.source,t),fn.clean(r.data,this.types,us),fn.invalidHandler=null,r[cs]}else{let r=!0,n=[];for(let i of this.data.keys()){if(i==="default"||i==="builtin"||i==="cli")continue;let s=this.validate(i);if(r=r&&s,["global","user","project"].includes(i)){for(let a of["_authtoken","-authtoken"])this.get(a,i)&&n.push({action:"delete",key:a,where:i});let o=xi(this.get("registry"));for(let a of["_auth","_authToken","username","_password"])this.get(a,i)&&(a==="username"&&!this.get("_password",i)?n.push({action:"delete",key:a,where:i}):a==="_password"&&!this.get("username",i)?n.push({action:"delete",key:a,where:i}):n.push({action:"rename",from:a,to:`${o}:${a}`,where:i}))}}if(n.length){let{ErrInvalidAuth:i}=pv();throw new i(n)}return r}}repair(t){if(!t)try{this.validate()}catch(r){if(r.code!=="ERR_INVALID_AUTH")throw r;t=r.problems}finally{t||(t=[])}for(let r of t)if(r.action==="delete")this.delete(r.key,r.where);else if(r.action==="rename"){let n=this.data.get(r.where).raw?.[r.from],i=this.get(r.from,r.where);this.set(r.to,n||i,r.where),this.delete(r.from,r.where)}}isDefault(t){let[r,...n]=[...Vo],i=this.data.get(r).data;return pc(i,t)&&n.every(s=>{let o=this.data.get(s).data;return!pc(o,t)})}invalidHandler(t,r,n,i,s){let o=yv();ir.warn("invalid config",t+"="+JSON.stringify(r),`set in ${i}`),this.data.get(s)[cs]=!1,Array.isArray(n)&&(n.includes(us.url.type)?n=us.url.type:n.includes(us.path.type)&&(n=us.path.type));let a=o(n),u=a.filter(l=>l!==void 0&&l!==Array),c="Must be"+this.#o(u,a),f=u.length===1?u[0]:[...new Set(u.map(l=>typeof l=="string"?l:JSON.stringify(l)))].join(", ");ir.warn("invalid config",c,f)}abbrevHandler(t,r){ir.warn(`Expanding --${t} to --${r}. This will stop working in the next major version of npm.`)}unknownHandler(t,r){r&&ir.warn(`"${r}" is being parsed as a normal command line argument.`)}#o(t,r){let n;return t.length===1&&r.includes(Array)?n=" one or more":t.length>1&&r.includes(Array)?n=" one or more of:":t.length>1?n=" one of:":n="",n}#h(t,r,n,i=null){let s=this.data.get(r);if(s.source){let o=`double-loading "${r}" configs from ${n}, previously loaded from ${s.source}`;throw new Error(o)}if(this.sources.has(n)){let o=`double-loading config "${n}" as "${r}", previously loaded as "${this.sources.get(n)}"`;throw new Error(o)}if(s.source=n,this.sources.set(n,r),i)s.loadError=i,i.code!=="ENOENT"&&ir.verbose("config",`error loading ${r} config`,i);else{s.raw=t;for(let[o,a]of Object.entries(t)){let u=tB(o,this.env),c=this.parseField(a,u);if(r!=="default"&&(this.#d(u),this.definitions[o]?.exclusive)){for(let f of this.definitions[o].exclusive)if(!this.isDefault(f))throw new TypeError(`--${o} cannot be provided when using --${f}`)}(r!=="default"||o==="npm-version")&&this.checkUnknown(r,o),s.data[u]=c}}}checkUnknown(t,r){if(!this.definitions[r]){if(Zj.includes(r))return;if(!r.includes(":")){ir.warn(`Unknown ${t} config "${t==="cli"?"--":""}${r}". This will stop working in the next major version of npm.`);return}let n=r.split(":").pop();!this.definitions[n]&&!this.nerfDarts.includes(n)&&ir.warn(`Unknown ${t} config "${n}" (${r}). This will stop working in the next major version of npm.`)}}#d(t){this.deprecated[t]&&ir.warn("config",t,this.deprecated[t])}parseField(t,r,n=!1){return rB(t,r,this,n)}async#u(t,r){ir.silly("config",`load:file:${t}`),await Vj(t,"utf8").then(n=>{let i=VS.parse(n);return r==="project"&&i.prefix&&ir.error("config",`prefix cannot be changed from project config: ${t}.`),this.#h(i,r,t)},n=>this.#h(null,r,t,n))}loadBuiltinConfig(){return this.#u(Jo(this.npmPath,"npmrc"),"builtin")}async loadProjectConfig(){if(await this.loadLocalPrefix(),this.localPackage==null&&(this.localPackage=await kd(this.localPrefix,"package.json")),this.#n("global")===!0||this.#n("location")==="global"){this.data.get("project").source="(global mode enabled, ignored)",this.sources.set(this.data.get("project").source,"project");return}let t=Jo(this.localPrefix,".npmrc");if(t!==this.#n("userconfig"))return this.#u(t,"project");this.data.get("project").source='(same as "user" config, ignored)',this.sources.set(this.data.get("project").source,"project")}async loadLocalPrefix(){let t=this.#n("prefix","cli");if(t){this.localPrefix=t;return}let r=this.#n("workspaces","cli"),n=this.#n("global")||this.#n("location")==="global";for(let i of Hj(this.cwd)){if(this.excludeNpmCwd&&i===this.npmPath)break;let s=await kd(i,"package.json");if(!this.localPrefix&&(s||await eB(i,"node_modules"))){if(this.localPrefix=i,this.localPackage=s,r===!1||n)return;continue}if(this.localPrefix&&s){let o=Rd(),{content:a}=await o.normalize(i).catch(()=>({content:{}}));if(!a?.workspaces)continue;let c=await YS()({cwd:i,pkg:a});for(let f of c.values())if(f===this.localPrefix){await kd(this.localPrefix,".npmrc")&&ir.warn("config",`ignoring workspace config at ${this.localPrefix}/.npmrc`);let{data:l}=this.data.get("default");l.workspace=[this.localPrefix],this.localPrefix=i,this.localPackage=s,ir.info("config",`found workspace root at ${this.localPrefix}`);return}}}this.localPrefix||(this.localPrefix=this.cwd)}loadUserConfig(){return this.#u(this.#n("userconfig"),"user")}loadGlobalConfig(){return this.#u(this.#n("globalconfig"),"global")}async save(t){if(!this.loaded)throw new Error("call config.load() before saving");if(!JS.has(t))throw new Error("invalid config location param: "+t);let r=this.data.get(t);if(r[Ko]=null,t==="user"){let o=xi(this.get("registry")),a=this.get(`${o}:email`,"user");a&&(this.delete(`${o}:email`,"user"),this.set("email",a,"user"))}let n=VS.stringify(r.raw).trim()+`
20
+ `;if(!n.trim()){await Xj(r.source).catch(()=>{});return}let i=dc(r.source);await Qj(i,{recursive:!0}),await Kj(r.source,n,"utf8");let s=t==="user"?384:438;await Jj(r.source,s)}clearCredentialsByURI(t,r="user"){let n=xi(t);if(xi(this.get("registry"))===n){this.delete("-authtoken",r),this.delete("_authToken",r),this.delete("_authtoken",r),this.delete("_auth",r),this.delete("_password",r),this.delete("username",r);let s=this.get(`${n}:email`,r);s&&this.set("email",s,r)}this.delete(`${n}:_authToken`,r),this.delete(`${n}:_auth`,r),this.delete(`${n}:_password`,r),this.delete(`${n}:username`,r),this.delete(`${n}:email`,r),this.delete(`${n}:certfile`,r),this.delete(`${n}:keyfile`,r)}setCredentialsByURI(t,{token:r,username:n,password:i,certfile:s,keyfile:o}){let a=xi(t);if(this.delete(`${a}:always-auth`,"user"),this.delete(`${a}:email`,"user"),s&&o&&(this.set(`${a}:certfile`,s,"user"),this.set(`${a}:keyfile`,o,"user")),r)this.set(`${a}:_authToken`,r,"user"),this.delete(`${a}:_password`,"user"),this.delete(`${a}:username`,"user");else if(n||i){if(!n)throw new Error("must include username");if(!i)throw new Error("must include password");this.delete(`${a}:_authToken`,"user"),this.set(`${a}:username`,n,"user");let u=Buffer.from(i,"utf8").toString("base64");this.set(`${a}:_password`,u,"user")}else if(!s||!o)throw new Error("No credentials to set.")}getCredentialsByURI(t){let r=xi(t),n=xi(this.get("registry")),i={},s=this.get(`${r}:email`)||this.get("email");s&&(r===n&&this.set("email",s,"user"),i.email=s);let o=this.get(`${r}:certfile`),a=this.get(`${r}:keyfile`);o&&a&&(i.certfile=o,i.keyfile=a);let u=this.get(`${r}:_authToken`);if(u)return i.token=u,i;let c=this.get(`${r}:username`),f=this.get(`${r}:_password`);if(c&&f){i.username=c,i.password=Buffer.from(f,"base64").toString("utf8");let h=`${i.username}:${i.password}`;return i.auth=Buffer.from(h,"utf8").toString("base64"),i}let l=this.get(`${r}:_auth`);if(l){let d=Buffer.from(l,"base64").toString("utf8").split(":");return i.username=d.shift(),i.password=d.join(":"),i.auth=l,i}return i}setEnvs(){nB(this)}},Ko=Symbol("loadError"),cs=Symbol("valid"),Ld=class{#e;#r=null;#t=null;constructor(t){this.#e=Object.create(t&&t.data),this.#t={},this[cs]=!0}get data(){return this.#e}get valid(){return this[cs]}set source(t){if(this.#r)throw new Error("cannot set ConfigData source more than once");this.#r=t}get source(){return this.#r}set loadError(t){if(this[Ko]||Object.keys(this.#t).length)throw new Error("cannot set ConfigData loadError after load");this[Ko]=t}get loadError(){return this[Ko]}set raw(t){if(Object.keys(this.#t).length||this[Ko])throw new Error("cannot set ConfigData raw after load");this.#t=t}get raw(){return this.#t}};XS.exports=Dd});var Xo=F(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.getPackageDependencies=void 0;function iB(e,t){let r=e.dependencies?.[t]||e.devDependencies?.[t]||e.peerDependencies?.[t]||e.optionalDependencies?.[t];return r?!r.startsWith("npm:")&&!r.startsWith("file:"):!1}function sB(e,t,r={withDevDependencies:!0}){let n=[];if(e.dependencies)for(let s of Object.keys(e.dependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.devDependencies&&r.withDevDependencies)for(let s of Object.keys(e.devDependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.peerDependencies&&r.withPeerDependencies)for(let s of Object.keys(e.peerDependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.optionalDependencies&&r.withOptionalDependencies)for(let s of Object.keys(e.optionalDependencies))s!==e.name&&t.has(s)&&n.push(s);return n.filter(s=>iB(e,s))}gc.getPackageDependencies=sB});var fs=F(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.isCachingEnabled=ls.setCachingEnabled=void 0;var ZS=!0;function oB(e){ZS=e}ls.setCachingEnabled=oB;function aB(){return ZS}ls.isCachingEnabled=aB});var e1=F(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.getTransitiveProviders=Nn.getTransitiveConsumers=Nn.getDependentMap=void 0;var uB=Xo(),cB=fs(),Td=new Map;function lB(e,t=[]){return JSON.stringify({packages:e,scope:t})}function Id(e,t=[]){let r=new Set(Object.keys(e)),n=lB(e,t);if((0,cB.isCachingEnabled)()&&Td.has(n))return Td.get(n);let i=[],s=new Set,o=t.length>0?[...t]:Object.keys(e);for(;o.length>0;){let a=o.pop();if(s.has(a))continue;s.add(a);let u=e[a],c=(0,uB.getPackageDependencies)(u,r);if(c.length>0)for(let f of c)o.push(f),i.push([f,a]);else i.push([null,a])}return Td.set(n,i),i}function fB(e){let t=Id(e),r=new Map;for(let[n,i]of t)r.has(i)||r.set(i,new Set),n&&r.get(i).add(n);return r}Nn.getDependentMap=fB;function hB(e,t,r=[]){let n=Id(t,r),i=[...e],s=new Set;for(;i.length>0;){let o=i.shift();if(!s.has(o)){s.add(o);for(let[a,u]of n)a===o&&i.push(u)}}return[...s].filter(o=>!e.includes(o))}Nn.getTransitiveConsumers=hB;function dB(e,t){let r=Id(t),n=[...e],i=new Set;for(;n.length>0;){let s=n.shift();if(!i.has(s)){i.add(s);for(let[o,a]of r)a===s&&o&&n.push(o)}}return[...i].filter(s=>!e.includes(s))}Nn.getTransitiveProviders=dB});var t1=F(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.getInternalDeps=Ar.getTransitiveConsumers=Ar.getTransitiveDependents=Ar.getTransitiveProviders=Ar.getTransitiveDependencies=void 0;var mc=e1();Object.defineProperty(Ar,"getTransitiveConsumers",{enumerable:!0,get:function(){return mc.getTransitiveConsumers}});Object.defineProperty(Ar,"getTransitiveProviders",{enumerable:!0,get:function(){return mc.getTransitiveProviders}});var pB=Xo();Ar.getTransitiveDependencies=mc.getTransitiveProviders;Ar.getTransitiveDependents=mc.getTransitiveConsumers;Ar.getInternalDeps=pB.getPackageDependencies});var Nd=F(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.getWorkspaceManagerRoot=hs.getWorkspaceRoot=void 0;var gB=Pi();function mB(e,t){return r1(e,t)}hs.getWorkspaceRoot=mB;function r1(e,t){return(0,gB.getWorkspaceManagerAndRoot)(e,void 0,t)?.root}hs.getWorkspaceManagerRoot=r1});var ps=F(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.processGitOutput=Bt.gitFailFast=Bt.git=Bt.clearGitObservers=Bt.addGitObserver=Bt.GitError=void 0;var yB=require("child_process"),Oi=class extends Error{constructor(t,r,n){r instanceof Error?super(`${t}: ${r.message}`):n?.stderr?super(`${t} -- stderr:
21
+ ${n.stderr}`):super(t),this.originalError=r,this.gitOutput=n}};Bt.GitError=Oi;var vB=process.env.GIT_MAX_BUFFER?parseInt(process.env.GIT_MAX_BUFFER):500*1024*1024,AB=!!process.env.GIT_DEBUG,ds=[],$d;function EB(e){return ds.push(e),()=>wB(e)}Bt.addGitObserver=EB;function bB(){ds.splice(0,ds.length)}Bt.clearGitObservers=bB;function wB(e){let t=ds.indexOf(e);t>-1&&ds.splice(t,1)}function n1(e,t){if(e.some(c=>c.startsWith("--upload-pack")))throw new Oi("git command contains --upload-pack, which is not allowed: "+e.join(" "));let r=`git ${e.join(" ")}`,{throwOnError:n,description:i=r,debug:s=AB,...o}=t||{};s&&console.log(r);let a;try{a=(0,yB.spawnSync)("git",e,{maxBuffer:vB,...o})}catch(c){throw new Oi(`${i} failed (while spawning process)`,c)}let u={...a,stderr:(a.stderr||"").toString().trimEnd(),stdout:(a.stdout||"").toString().trimEnd(),success:a.status===0};if(s&&(console.log("exited with code "+a.status),u.stdout&&console.log(`git stdout:
22
+ `,u.stdout),u.stderr&&console.warn(`git stderr:
23
+ `,u.stderr)),!$d){$d=!0;for(let c of ds)c(e,u);$d=!1}if(!u.success&&n)throw new Oi(`${i} failed${u.stderr?`
24
+ ${u.stderr}`:""}`,void 0,u);return u}Bt.git=n1;function SB(e,t){let r=n1(e,t);if(!r.success)throw t?.noExitCode||(process.exitCode=1),new Oi(`CRITICAL ERROR: running git command: git ${e.join(" ")}!
23
25
  ${r.stdout?.toString().trimEnd()}
24
- ${r.stderr?.toString().trimEnd()}`)}Ar.gitFailFast=nB});var Ld=F((MK,HS)=>{"use strict";HS.exports=function(t,r){r===!0&&(r=0);var n="";if(typeof t=="string")try{n=new URL(t).protocol}catch{}else t&&t.constructor===URL&&(n=t.protocol);var i=n.split(/\:|\+/).filter(Boolean);return typeof r=="number"?i[r]:i}});var YS=F((jK,zS)=>{"use strict";var iB=Ld();function sB(e){var t={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:e,query:{},parse_failed:!1};try{var r=new URL(e);t.protocols=iB(r),t.protocol=t.protocols[0],t.port=r.port,t.resource=r.hostname,t.host=r.host,t.user=r.username||"",t.password=r.password||"",t.pathname=r.pathname,t.hash=r.hash.slice(1),t.search=r.search.slice(1),t.href=r.href,t.query=Object.fromEntries(r.searchParams)}catch{t.protocols=["file"],t.protocol=t.protocols[0],t.port="",t.resource="",t.user="",t.pathname="",t.hash="",t.search="",t.href=e,t.query={},t.parse_failed=!0}return t}zS.exports=sB});var ZS=F((BK,QS)=>{"use strict";var oB=YS();function aB(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var uB=aB(oB);function cB(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(t,i);return new s}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var KS={},lB="text/plain",fB="us-ascii",VS=(e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),hB=(e,{stripHash:t})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=t?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),f=[...o.map(l=>{let[h,d=""]=l.split("=").map(p=>p.trim());return h==="charset"&&(d=d.toLowerCase(),d===fB)?"":`${h}${d?`=${d}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length>0||u&&u!==lB)&&f.unshift(u),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`};function dB(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return hB(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let i=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),t.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),t.stripAuthentication&&(i.username="",i.password=""),t.stripHash?i.hash="":t.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname){let o=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,a=0,u="";for(;;){let f=o.exec(i.pathname);if(!f)break;let l=f[0],h=f.index,d=i.pathname.slice(a,h);u+=d.replace(/\/{2,}/g,"/"),u+=l,a=h+l.length}let c=i.pathname.slice(a,i.pathname.length);u+=c.replace(/\/{2,}/g,"/"),i.pathname=u}if(i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];VS(a,t.removeDirectoryIndex)&&(o=o.slice(0,-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let o of[...i.searchParams.keys()])VS(o,t.removeQueryParameters)&&i.searchParams.delete(o);if(t.removeQueryParameters===!0&&(i.search=""),t.sortQueryParameters){i.searchParams.sort();try{i.search=decodeURIComponent(i.search)}catch{}}t.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=e;return e=i.toString(),!t.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}var pB=Object.freeze({__proto__:null,default:dB}),gB=cB(pB);Object.defineProperty(KS,"__esModule",{value:!0});var mB=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yB=gB,vB=XS(yB),AB=uB.default,EB=XS(AB);function XS(e){return e&&e.__esModule?e:{default:e}}var JS=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=/^(?:([a-zA-Z_][a-zA-Z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:](([\~,\.\w,\-,\_,\/,\s]|%[0-9A-Fa-f]{2})+?(?:\.git|\/)?)$/,i=function(u){var c=new Error(u);throw c.subject_url=t,c};(typeof t!="string"||!t.trim())&&i("Invalid url."),t.length>e.MAX_INPUT_LENGTH&&i("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),r&&((typeof r>"u"?"undefined":mB(r))!=="object"&&(r={stripHash:!1}),t=(0,vB.default)(t,r));var s=(0,EB.default)(t);if(s.parse_failed){var o=s.href.match(n);o?(s.protocols=["ssh"],s.protocol="ssh",s.resource=o[2],s.host=o[2],s.user=o[1],s.pathname="/"+o[3],s.parse_failed=!1):i("URL parsing failed.")}return s};JS.MAX_INPUT_LENGTH=2048;var bB=KS.default=JS;QS.exports=bB});var r1=F((WK,t1)=>{"use strict";var wB=Ld();function e1(e){if(Array.isArray(e))return e.indexOf("ssh")!==-1||e.indexOf("rsync")!==-1;if(typeof e!="string")return!1;var t=wB(e);if(e=e.substring(e.indexOf("://")+3),e1(t))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!e.match(r)&&e.indexOf("@")<e.indexOf(":")}t1.exports=e1});var s1=F((qK,i1)=>{"use strict";var SB=ZS(),n1=r1();function CB(e){let t=SB(e);return t.token="",t.password==="x-oauth-basic"?t.token=t.user:t.user==="x-token-auth"&&(t.token=t.password),n1(t.protocols)||t.protocols.length===0&&n1(e)?t.protocol="ssh":t.protocols.length?t.protocol=t.protocols[0]:(t.protocol="file",t.protocols=["file"]),t.href=t.href.replace(/\/$/,""),t}i1.exports=CB});var a1=F((GK,o1)=>{"use strict";var xB=s1();function kd(e,t){if(t=t||[],typeof e!="string")throw new Error("The url must be a string.");if(!t.every(function(S){return typeof S=="string"}))throw new Error("The refs should contain only strings");var r=/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i;r.test(e)&&(e="https://github.com/"+e);var n=xB(e),i=n.resource.split("."),s=null;switch(n.toString=function(S){return kd.stringify(this,S)},n.source=i.length>2?i.slice(1-i.length).join("."):n.source=n.resource,n.git_suffix=/\.git$/.test(n.pathname),n.name=decodeURIComponent((n.pathname||n.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),n.owner=decodeURIComponent(n.user),n.source){case"git.cloudforge.com":n.owner=n.user,n.organization=i[0],n.source="cloudforge.com";break;case"visualstudio.com":if(n.resource==="vs-ssh.visualstudio.com"){s=n.name.split("/"),s.length===4&&(n.organization=s[1],n.owner=s[2],n.name=s[3],n.full_name=s[2]+"/"+s[3]);break}else{s=n.name.split("/"),s.length===2?(n.owner=s[1],n.name=s[1],n.full_name="_git/"+n.name):s.length===3?(n.name=s[2],s[0]==="DefaultCollection"?(n.owner=s[2],n.organization=s[0],n.full_name=n.organization+"/_git/"+n.name):(n.owner=s[0],n.full_name=n.owner+"/_git/"+n.name)):s.length===4&&(n.organization=s[0],n.owner=s[1],n.name=s[3],n.full_name=n.organization+"/"+n.owner+"/_git/"+n.name);break}case"dev.azure.com":case"azure.com":if(n.resource==="ssh.dev.azure.com"){s=n.name.split("/"),s.length===4&&(n.organization=s[1],n.owner=s[2],n.name=s[3]);break}else{s=n.name.split("/"),s.length===5?(n.organization=s[0],n.owner=s[1],n.name=s[4],n.full_name="_git/"+n.name):s.length===3?(n.name=s[2],s[0]==="DefaultCollection"?(n.owner=s[2],n.organization=s[0],n.full_name=n.organization+"/_git/"+n.name):(n.owner=s[0],n.full_name=n.owner+"/_git/"+n.name)):s.length===4&&(n.organization=s[0],n.owner=s[1],n.name=s[3],n.full_name=n.organization+"/"+n.owner+"/_git/"+n.name),n.query&&n.query.path&&(n.filepath=n.query.path.replace(/^\/+/g,"")),n.query&&n.query.version&&(n.ref=n.query.version.replace(/^GB/,""));break}default:s=n.name.split("/");var o=s.length-1;if(s.length>=2){var a=s.indexOf("-",2),u=s.indexOf("blob",2),c=s.indexOf("tree",2),f=s.indexOf("commit",2),l=s.indexOf("issues",2),h=s.indexOf("src",2),d=s.indexOf("raw",2),p=s.indexOf("edit",2);o=a>0?a-1:u>0&&c>0?Math.min(u-1,c-1):u>0?u-1:l>0?l-1:c>0?c-1:f>0?f-1:h>0?h-1:d>0?d-1:p>0?p-1:o,n.owner=s.slice(0,o).join("/"),n.name=s[o],f&&l<0&&(n.commit=s[o+2])}n.ref="",n.filepathtype="",n.filepath="";var y=s.length>o&&s[o+1]==="-"?o+1:o;s.length>y+2&&["raw","src","blob","tree","edit"].indexOf(s[y+1])>=0&&(n.filepathtype=s[y+1],n.ref=s[y+2],s.length>y+3&&(n.filepath=s.slice(y+3).join("/"))),n.organization=n.owner;break}n.full_name||(n.full_name=n.owner,n.name&&(n.full_name&&(n.full_name+="/"),n.full_name+=n.name)),n.owner.startsWith("scm/")&&(n.source="bitbucket-server",n.owner=n.owner.replace("scm/",""),n.organization=n.owner,n.full_name=n.owner+"/"+n.name);var m=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/,O=m.exec(n.pathname);return O!=null&&(n.source="bitbucket-server",O[1]==="users"?n.owner="~"+O[2]:n.owner=O[2],n.organization=n.owner,n.name=O[3],s=O[4].split("/"),s.length>1&&(["raw","browse"].indexOf(s[1])>=0?(n.filepathtype=s[1],s.length>2&&(n.filepath=s.slice(2).join("/"))):s[1]==="commits"&&s.length>2&&(n.commit=s[2])),n.full_name=n.owner+"/"+n.name,n.query.at?n.ref=n.query.at:n.ref=""),t.length!==0&&n.ref&&(n.ref=_B(n.href,t)||n.ref,n.filepath=n.href.split(n.ref+"/")[1]),n}kd.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var r=e.port?":"+e.port:"",n=e.user||"git",i=e.git_suffix?".git":"";switch(t){case"ssh":return r?"ssh://"+n+"@"+e.resource+r+"/"+e.full_name+i:n+"@"+e.resource+":"+e.full_name+i;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+n+"@"+e.resource+r+"/"+e.full_name+i;case"http":case"https":var s=e.token?OB(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"";return t+"://"+s+e.resource+r+"/"+PB(e)+i;default:return e.href}};function OB(e){switch(e.source){case"bitbucket.org":return"x-token-auth:"+e.token+"@";default:return e.token+"@"}}function PB(e){switch(e.source){case"bitbucket-server":return"scm/"+e.full_name;default:var t=e.full_name.split("/").map(function(r){return encodeURIComponent(r)}).join("/");return t}}function _B(e,t){var r="";return t.forEach(function(n){e.includes(n)&&n.length>r.length&&(r=n)}),r}o1.exports=kd});var u1=F(ds=>{"use strict";var RB=ds&&ds.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ds,"__esModule",{value:!0});ds.getRepositoryName=void 0;var FB=RB(a1());function DB(e){try{let t=(0,FB.default)(e.replace("/_optimized/","/").replace("/DefaultCollection/","/")),r=t.host||"",n=r.endsWith(".visualstudio.com");if(!n&&r!=="dev.azure.com"&&r!=="ssh.dev.azure.com")return t.full_name;let i=t.full_name.match(/(vs-ssh\.visualstudio\.com|ssh\.dev\.azure\.com):v\d+\/([^/]+)\/([^/]+)/);if(i)return`${i[2]}/${i[3]}/${t.name}`;let s=t.organization;return!s&&n&&(s=r.match(/([^.@]+)\.visualstudio\.com$/)?.[1]),`${s}/${t.owner}/${t.name}`}catch{return""}}ds.getRepositoryName=DB});var Td=F(ps=>{"use strict";var l1=ps&&ps.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ps,"__esModule",{value:!0});ps.getDefaultRemote=void 0;var LB=l1(require("fs")),kB=l1(require("path")),TB=Ko(),c1=u1(),IB=Vo();function NB(e){let t=typeof e=="string"?{cwd:e}:e,{cwd:r,strict:n,verbose:i}=t,s=O=>i&&console.log(O),o=O=>{if(n)throw new Error(O);s(O)},a=(0,TB.findGitRoot)(r),u={},c=kB.default.join(a,"package.json");try{u=JSON.parse(LB.default.readFileSync(c,"utf8").trim())}catch{o(`Could not read "${c}"`)}let{repository:f}=u,l=typeof f=="string"?f:f&&f.url||"";l||console.log(`Valid "repository" key not found in "${c}". Consider adding this info for more accurate git remote detection.`);let h=(0,c1.getRepositoryName)(l),d=(0,IB.git)(["remote","-v"],{cwd:r});d.success||o(`Could not determine available git remotes under "${r}"`);let p={};if(d.stdout.split(`
25
- `).forEach(O=>{let[S,k]=O.split(/\s+/),P=(0,c1.getRepositoryName)(k);P&&(p[P]=S)}),h){if(p[h])return p[h];o(`Could not find remote pointing to repository "${h}".`)}let y=Object.values(p),m=["upstream","origin",...y];for(let O of m)if(y.includes(O))return s(`Default to remote "${O}"`),O;return o(`Could not find any remotes in git repo at "${a}".`),s('Assuming default remote "origin".'),"origin"}ps.getDefaultRemote=NB});var Id=F(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.listAllTrackedFiles=Ae.getDefaultBranch=Ae.parseRemoteBranch=Ae.getRemoteBranch=Ae.getParentBranch=Ae.revertLocalChanges=Ae.stageAndCommit=Ae.commit=Ae.stage=Ae.init=Ae.getFileAddedHash=Ae.getCurrentHash=Ae.getShortBranchName=Ae.getFullBranchRef=Ae.getBranchName=Ae.getUserEmail=Ae.getRecentCommitMessages=Ae.getStagedChanges=Ae.getChangesBetweenRefs=Ae.getBranchChanges=Ae.getChanges=Ae.getUnstagedChanges=Ae.fetchRemoteBranch=Ae.fetchRemote=Ae.getUntrackedChanges=void 0;var Ce=Vo();function $B(e){try{return Xo((0,Ce.git)(["ls-files","--others","--exclude-standard"],{cwd:e}))}catch(t){throw new Ce.GitError("Cannot gather information about untracked changes",t)}}Ae.getUntrackedChanges=$B;function MB(e,t){if(!(0,Ce.git)(["fetch","--",e],{cwd:t}).success)throw new Ce.GitError(`Cannot fetch remote "${e}"`)}Ae.fetchRemote=MB;function jB(e,t,r){if(!(0,Ce.git)(["fetch","--",e,t],{cwd:r}).success)throw new Ce.GitError(`Cannot fetch branch "${t}" from remote "${e}"`)}Ae.fetchRemoteBranch=jB;function BB(e){try{return Xo((0,Ce.git)(["--no-pager","diff","--name-only","--relative"],{cwd:e}))}catch(t){throw new Ce.GitError("Cannot gather information about unstaged changes",t)}}Ae.getUnstagedChanges=BB;function WB(e,t){try{return Xo((0,Ce.git)(["--no-pager","diff","--relative","--name-only",e+"..."],{cwd:t}))}catch(r){throw new Ce.GitError("Cannot gather information about changes",r)}}Ae.getChanges=WB;function qB(e,t){return f1(e,"",[],"",t)}Ae.getBranchChanges=qB;function f1(e,t,r,n,i){try{return Xo((0,Ce.git)(["--no-pager","diff","--name-only","--relative",...r,`${e}...${t}`,...n?["--",n]:[]],{cwd:i}))}catch(s){throw new Ce.GitError(`Cannot gather information about change between refs changes (${e} to ${t})`,s)}}Ae.getChangesBetweenRefs=f1;function GB(e){try{return Xo((0,Ce.git)(["--no-pager","diff","--relative","--staged","--name-only"],{cwd:e}))}catch(t){throw new Ce.GitError("Cannot gather information about staged changes",t)}}Ae.getStagedChanges=GB;function UB(e,t){try{let r=(0,Ce.git)(["log","--decorate","--pretty=format:%s",`${e}..HEAD`],{cwd:t});return r.success?r.stdout.split(/\n/).map(n=>n.trim()).filter(n=>!!n):[]}catch(r){throw new Ce.GitError("Cannot gather information about recent commits",r)}}Ae.getRecentCommitMessages=UB;function HB(e){try{let t=(0,Ce.git)(["config","user.email"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new Ce.GitError("Cannot gather information about user.email",t)}}Ae.getUserEmail=HB;function h1(e){try{let t=(0,Ce.git)(["rev-parse","--abbrev-ref","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new Ce.GitError("Cannot get branch name",t)}}Ae.getBranchName=h1;function zB(e,t){let r=(0,Ce.git)(["show-ref","--heads",e],{cwd:t});return r.success?r.stdout.split(" ")[1]:null}Ae.getFullBranchRef=zB;function YB(e,t){let r=(0,Ce.git)(["name-rev","--name-only",e],{cwd:t});return r.success?r.stdout:null}Ae.getShortBranchName=YB;function VB(e){try{let t=(0,Ce.git)(["rev-parse","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new Ce.GitError("Cannot get current git hash",t)}}Ae.getCurrentHash=VB;function KB(e,t){let r=(0,Ce.git)(["rev-list","--max-count=1","HEAD",e],{cwd:t});if(r.success)return r.stdout.trim()}Ae.getFileAddedHash=KB;function XB(e,t,r){(0,Ce.git)(["init"],{cwd:e});let n=(0,Ce.git)(["config","--list"],{cwd:e}).stdout.split(`
26
- `);if(!n.find(i=>i.includes("user.name"))){if(!r)throw new Ce.GitError("must include a username when initializing git repo");(0,Ce.git)(["config","user.name",r],{cwd:e})}if(!n.find(i=>i.includes("user.email"))){if(!t)throw new Error("must include a email when initializing git repo");(0,Ce.git)(["config","user.email",t],{cwd:e})}}Ae.init=XB;function d1(e,t){try{e.forEach(r=>{(0,Ce.git)(["add",r],{cwd:t})})}catch(r){throw new Ce.GitError("Cannot stage changes",r)}}Ae.stage=d1;function p1(e,t,r=[]){try{let n=(0,Ce.git)(["commit","-m",e,...r],{cwd:t});if(!n.success)throw new Error(`Cannot commit changes: ${n.stdout} ${n.stderr}`)}catch(n){throw new Ce.GitError("Cannot commit changes",n)}}Ae.commit=p1;function JB(e,t,r,n=[]){d1(e,r),p1(t,r,n)}Ae.stageAndCommit=JB;function QB(e){let t=`workspace-tools_${new Date().getTime()}`;(0,Ce.git)(["stash","push","-u","-m",t],{cwd:e});let r=(0,Ce.git)(["stash","list"]);if(r.success){let i=r.stdout.split(/\n/).find(s=>s.includes(t));if(i){let s=i.match(/^[^:]+/);if(s)return(0,Ce.git)(["stash","drop",s[0]]),!0}}return!1}Ae.revertLocalChanges=QB;function ZB(e){let t=h1(e);if(!t||t==="HEAD")return null;let r=(0,Ce.git)(["show-branch","-a"],{cwd:e});if(r.success){let s=r.stdout.split(/\n/).find(o=>o.includes("*")&&!o.includes(t)&&!o.includes("publish_"))?.match(/\[(.*)\]/);return s?s[1]:null}return null}Ae.getParentBranch=ZB;function e3(e,t){let r=(0,Ce.git)(["rev-parse","--abbrev-ref","--symbolic-full-name",`${e}@{u}`],{cwd:t});return r.success?r.stdout.trim():null}Ae.getRemoteBranch=e3;function t3(e){let t=e.indexOf("/",0),r=e.substring(0,t),n=e.substring(t+1);return{remote:r,remoteBranch:n}}Ae.parseRemoteBranch=t3;function r3(e){let t=(0,Ce.git)(["config","init.defaultBranch"],{cwd:e});return t.success?t.stdout.trim():"master"}Ae.getDefaultBranch=r3;function n3(e,t){let r=(0,Ce.git)(["ls-files",...e],{cwd:t});return r.success&&r.stdout.trim()?r.stdout.trim().split(/\n/):[]}Ae.listAllTrackedFiles=n3;function Xo(e){if(!e.success){if(e.stderr)throw new Error(e.stderr);return[]}return e.stdout.split(/\n/).map(t=>t.trim()).filter(t=>!!t&&!t.includes("node_modules"))}});var g1=F(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.getDefaultRemoteBranch=void 0;var i3=Td(),s3=Vo(),o3=Id();function a3(...e){let[t,r]=e,n=typeof t=="string"?{branch:t,cwd:r}:t,{cwd:i,branch:s}=n,o=(0,i3.getDefaultRemote)(n);if(s)return`${o}/${s}`;let a=(0,s3.git)(["remote","show",o],{cwd:i}),u;return a.success&&(u=a.stdout.split(/\n/).find(c=>c.includes("HEAD branch"))?.replace(/^\s*HEAD branch:\s+/,"")),`${o}/${u||(0,o3.getDefaultBranch)(i)}`}gc.getDefaultRemoteBranch=a3});var yc=F(zr=>{"use strict";var u3=zr&&zr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),mc=zr&&zr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&u3(t,e,r)};Object.defineProperty(zr,"__esModule",{value:!0});mc(Vo(),zr);mc(Td(),zr);mc(g1(),zr);mc(Id(),zr)});var Oi=F(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.logVerboseWarning=void 0;function c3(e,t){process.env.VERBOSE&&console.warn(`${e}${t?`:
27
- `:""}`,t?.stack||t||"")}vc.logVerboseWarning=c3});var Ko=F(Bt=>{"use strict";var y1=Bt&&Bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.isChildOf=Bt.findProjectRoot=Bt.findPackageRoot=Bt.findGitRoot=Bt.searchUp=void 0;var Mn=y1(require("path")),l3=y1(require("fs")),f3=Fd(),h3=yc(),m1=Oi();function v1(e,t){let r=typeof e=="string"?[e]:e;t=Mn.default.resolve(t);let n=Mn.default.parse(t).root,i;for(;!i&&t!==n&&(i=r.find(s=>l3.default.existsSync(Mn.default.join(t,s))),!i);)t=Mn.default.dirname(t);return i?Mn.default.join(t,i):void 0}Bt.searchUp=v1;function A1(e){let t=(0,h3.git)(["rev-parse","--show-toplevel"],{cwd:e});if(!t.success)throw new Error(`Directory "${e}" is not in a git repository`);return Mn.default.normalize(t.stdout)}Bt.findGitRoot=A1;function d3(e){let t=v1("package.json",e);return t&&Mn.default.dirname(t)}Bt.findPackageRoot=d3;function p3(e){let t;try{t=(0,f3.getWorkspaceRoot)(e)}catch(r){(0,m1.logVerboseWarning)(`Error getting workspace root for ${e}`,r)}return t||(0,m1.logVerboseWarning)(`Could not find workspace root for ${e}. Falling back to git root.`),t||A1(e)}Bt.findProjectRoot=p3;function g3(e,t){let r=Mn.default.relative(e,t);return/^[.\/\\]+$/.test(r)}Bt.isChildOf=g3});var gs=F(jn=>{"use strict";var m3=jn&&jn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jn,"__esModule",{value:!0});jn.getWorkspaceManagerAndRoot=jn.getPreferredWorkspaceManager=void 0;var E1=m3(require("path")),y3=Ko(),v3=ls(),A3=new Map,Jo={lerna:"lerna.json",rush:"rush.json",yarn:"yarn.lock",pnpm:"pnpm-workspace.yaml",npm:"package-lock.json"};function b1(){let e=process.env.PREFERRED_WORKSPACE_MANAGER;return e&&Jo[e]?e:void 0}jn.getPreferredWorkspaceManager=b1;function E3(e,t,r){if(t=t||A3,(0,v3.isCachingEnabled)()&&t.has(e))return t.get(e);r=r||b1();let n=(0,y3.searchUp)(r&&Jo[r]||Object.values(Jo),e);if(n){let i=E1.default.basename(n);t.set(e,{manager:Object.keys(Jo).find(s=>Jo[s]===i),root:E1.default.dirname(n)})}else t.set(e,void 0);return t.get(e)}jn.getWorkspaceManagerAndRoot=E3});var w1=F(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.splitWhen=ms.flatten=void 0;function b3(e){return e.reduce((t,r)=>[].concat(t,r),[])}ms.flatten=b3;function w3(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}ms.splitWhen=w3});var S1=F(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.isEnoentCodeError=void 0;function S3(e){return e.code==="ENOENT"}Ac.isEnoentCodeError=S3});var C1=F(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.createDirentFromStats=void 0;var Nd=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function C3(e,t){return new Nd(e,t)}Ec.createDirentFromStats=C3});var _1=F(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.convertPosixPathToPattern=et.convertWindowsPathToPattern=et.convertPathToPattern=et.escapePosixPath=et.escapeWindowsPath=et.escape=et.removeLeadingDotSegment=et.makeAbsolute=et.unixify=void 0;var x3=require("os"),O3=require("path"),x1=x3.platform()==="win32",P3=2,_3=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,R3=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,F3=/^\\\\([.?])/,D3=/\\(?![!()+@[\]{}])/g;function L3(e){return e.replace(/\\/g,"/")}et.unixify=L3;function k3(e,t){return O3.resolve(e,t)}et.makeAbsolute=k3;function T3(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(P3)}return e}et.removeLeadingDotSegment=T3;et.escape=x1?$d:Md;function $d(e){return e.replace(R3,"\\$2")}et.escapeWindowsPath=$d;function Md(e){return e.replace(_3,"\\$2")}et.escapePosixPath=Md;et.convertPathToPattern=x1?O1:P1;function O1(e){return $d(e).replace(F3,"//$1").replace(D3,"/")}et.convertWindowsPathToPattern=O1;function P1(e){return Md(e)}et.convertPosixPathToPattern=P1});var F1=F((rX,R1)=>{R1.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var k1=F((nX,L1)=>{var I3=F1(),D1={"{":"}","(":")","[":"]"},N3=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var u=D1[a];if(u){var c=e.indexOf(u,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},$3=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=D1[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};L1.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(I3(t))return!0;var n=N3;return r&&r.strict===!1&&(n=$3),n(t)}});var I1=F((iX,T1)=>{"use strict";var M3=k1(),j3=require("path").posix.dirname,B3=require("os").platform()==="win32",jd="/",W3=/\\/g,q3=/[\{\[].*[\}\]]$/,G3=/(^|[^\\])([\{\[]|\([^\)]+$)/,U3=/\\([\!\*\?\|\[\]\(\)\{\}])/g;T1.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&B3&&t.indexOf(jd)<0&&(t=t.replace(W3,jd)),q3.test(t)&&(t+=jd),t+="a";do t=j3(t);while(M3(t)||G3.test(t));return t.replace(U3,"$1")}});var bc=F(Er=>{"use strict";Er.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Er.find=(e,t)=>e.nodes.find(r=>r.type===t);Er.exceedsLimit=(e,t,r=1,n)=>n===!1||!Er.isInteger(e)||!Er.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;Er.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Er.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);Er.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Er.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Er.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);Er.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var wc=F((oX,$1)=>{"use strict";var N1=bc();$1.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&N1.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&N1.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var j1=F((aX,M1)=>{"use strict";M1.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var V1=F((uX,Y1)=>{"use strict";var B1=j1(),Pi=(e,t,r)=>{if(B1(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(B1(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+i+s+o+a;if(Pi.cache.hasOwnProperty(u))return Pi.cache[u].result;let c=Math.min(e,t),f=Math.max(e,t);if(Math.abs(c-f)===1){let y=e+"|"+t;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let l=z1(e)||z1(t),h={min:e,max:t,a:c,b:f},d=[],p=[];if(l&&(h.isPadded=l,h.maxLen=String(h.max).length),c<0){let y=f<0?Math.abs(f):1;p=W1(y,Math.abs(c),h,n),c=h.a=0}return f>=0&&(d=W1(c,f,h,n)),h.negatives=p,h.positives=d,h.result=H3(p,d,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&d.length+p.length>1&&(h.result=`(?:${h.result})`),Pi.cache[u]=h,h.result};function H3(e,t,r){let n=Bd(e,t,"-",!1,r)||[],i=Bd(t,e,"",!1,r)||[],s=Bd(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function z3(e,t){let r=1,n=1,i=G1(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=G1(e,r);for(i=U1(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=U1(t+1,n)-1;return s=[...s],s.sort(K3),s}function Y3(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=V3(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=X3(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function W1(e,t,r,n){let i=z3(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let c=i[u],f=Y3(String(o),String(c),n),l="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+H1(a.count),o=c+1;continue}r.isPadded&&(l=J3(c,r,n)),f.string=l+f.pattern+H1(f.count),s.push(f),o=c+1,a=f}return s}function Bd(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!q1(t,"string",a)&&s.push(r+a),n&&q1(t,"string",a)&&s.push(r+a)}return s}function V3(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function K3(e,t){return e>t?1:t>e?-1:0}function q1(e,t,r){return e.some(n=>n[t]===r)}function G1(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function U1(e,t){return e-e%Math.pow(10,t)}function H1(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function X3(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function z1(e){return/^-?(0+)\d/.test(e)}function J3(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Pi.cache={};Pi.clearCache=()=>Pi.cache={};Y1.exports=Pi});var Gd=F((cX,tC)=>{"use strict";var Q3=require("util"),X1=V1(),K1=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Z3=e=>t=>e===!0?Number(t):String(t),Wd=e=>typeof e=="number"||typeof e=="string"&&e!=="",Qo=e=>Number.isInteger(+e),qd=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},eW=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,tW=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Cc=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},rW=(e,t,r)=>{e.negatives.sort((a,u)=>a<u?-1:a>u?1:0),e.positives.sort((a,u)=>a<u?-1:a>u?1:0);let n=t.capture?"":"?:",i="",s="",o;return e.positives.length&&(i=e.positives.map(a=>Cc(String(a),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(a=>Cc(String(a),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,t.wrap?`(${n}${o})`:o},J1=(e,t,r,n)=>{if(r)return X1(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Q1=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return X1(e,t,r)},Z1=(...e)=>new RangeError("Invalid range arguments: "+Q3.inspect(...e)),eC=(e,t,r)=>{if(r.strictRanges===!0)throw Z1([e,t]);return[]},nW=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},iW=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Z1([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let f=qd(a)||qd(u)||qd(c),l=f?Math.max(a.length,u.length,c.length):0,h=f===!1&&eW(e,t,n)===!1,d=n.transform||Z3(h);if(n.toRegex&&r===1)return J1(Cc(e,l),Cc(t,l),!0,n);let p={negatives:[],positives:[]},y=S=>p[S<0?"negatives":"positives"].push(Math.abs(S)),m=[],O=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?y(i):m.push(tW(d(i,O),l,h)),i=o?i-r:i+r,O++;return n.toRegex===!0?r>1?rW(p,n,l):Q1(m,null,{wrap:!1,...n}):m},sW=(e,t,r=1,n={})=>{if(!Qo(e)&&e.length>1||!Qo(t)&&t.length>1)return eC(e,t,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return J1(u,c,!1,n);let f=[],l=0;for(;a?s>=o:s<=o;)f.push(i(s,l)),s=a?s-r:s+r,l++;return n.toRegex===!0?Q1(f,null,{wrap:!1,options:n}):f},Sc=(e,t,r,n={})=>{if(t==null&&Wd(e))return[e];if(!Wd(e)||!Wd(t))return eC(e,t,n);if(typeof r=="function")return Sc(e,t,1,{transform:r});if(K1(r))return Sc(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Qo(r)?Qo(e)&&Qo(t)?iW(e,t,r,i):sW(e,t,Math.max(Math.abs(r),1),i):r!=null&&!K1(r)?nW(r,i):Sc(e,t,1,r)};tC.exports=Sc});var iC=F((lX,nC)=>{"use strict";var oW=Gd(),rC=bc(),aW=(e,t={})=>{let r=(n,i={})=>{let s=rC.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return u+n.value;if(n.isClose===!0)return console.log("node.isClose",u,n.value),u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=rC.reduce(n.nodes),l=oW(...f,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(l.length!==0)return f.length>1&&l.length>1?`(${l})`:l}if(n.nodes)for(let f of n.nodes)c+=r(f,n);return c};return r(e)};nC.exports=aW});var aC=F((fX,oC)=>{"use strict";var uW=Gd(),sC=wc(),ys=bc(),_i=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?ys.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(_i(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?_i(i,s,r):i+s);return ys.flatten(n)},cW=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(_i(a.pop(),sC(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(_i(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let l=ys.reduce(i.nodes);if(ys.exceedsLimit(...l,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=uW(...l,t);h.length===0&&(h=sC(i,t)),a.push(_i(a.pop(),h)),i.nodes=[];return}let u=ys.encloseBrace(i),c=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,c=f.queue;for(let l=0;l<i.nodes.length;l++){let h=i.nodes[l];if(h.type==="comma"&&i.type==="brace"){l===1&&c.push(""),c.push("");continue}if(h.type==="close"){a.push(_i(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(_i(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return ys.flatten(n(e))};oC.exports=cW});var cC=F((hX,uC)=>{"use strict";uC.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
28
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var pC=F((dX,dC)=>{"use strict";var lW=wc(),{MAX_LENGTH:lC,CHAR_BACKSLASH:Ud,CHAR_BACKTICK:fW,CHAR_COMMA:hW,CHAR_DOT:dW,CHAR_LEFT_PARENTHESES:pW,CHAR_RIGHT_PARENTHESES:gW,CHAR_LEFT_CURLY_BRACE:mW,CHAR_RIGHT_CURLY_BRACE:yW,CHAR_LEFT_SQUARE_BRACKET:fC,CHAR_RIGHT_SQUARE_BRACKET:hC,CHAR_DOUBLE_QUOTE:vW,CHAR_SINGLE_QUOTE:AW,CHAR_NO_BREAK_SPACE:EW,CHAR_ZERO_WIDTH_NOBREAK_SPACE:bW}=cC(),wW=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(lC,r.maxLength):lC;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,u=0,c=e.length,f=0,l=0,h,d=()=>e[f++],p=y=>{if(y.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&y.type==="text"){a.value+=y.value;return}return o.nodes.push(y),y.parent=o,y.prev=a,a=y,y};for(p({type:"bos"});f<c;)if(o=s[s.length-1],h=d(),!(h===bW||h===EW)){if(h===Ud){p({type:"text",value:(t.keepEscaping?h:"")+d()});continue}if(h===hC){p({type:"text",value:"\\"+h});continue}if(h===fC){u++;let y;for(;f<c&&(y=d());){if(h+=y,y===fC){u++;continue}if(y===Ud){h+=d();continue}if(y===hC&&(u--,u===0))break}p({type:"text",value:h});continue}if(h===pW){o=p({type:"paren",nodes:[]}),s.push(o),p({type:"text",value:h});continue}if(h===gW){if(o.type!=="paren"){p({type:"text",value:h});continue}o=s.pop(),p({type:"text",value:h}),o=s[s.length-1];continue}if(h===vW||h===AW||h===fW){let y=h,m;for(t.keepQuotes!==!0&&(h="");f<c&&(m=d());){if(m===Ud){h+=m+d();continue}if(m===y){t.keepQuotes===!0&&(h+=m);break}h+=m}p({type:"text",value:h});continue}if(h===mW){l++;let m={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:l,commas:0,ranges:0,nodes:[]};o=p(m),s.push(o),p({type:"open",value:h});continue}if(h===yW){if(o.type!=="brace"){p({type:"text",value:h});continue}let y="close";o=s.pop(),o.close=!0,p({type:y,value:h}),l--,o=s[s.length-1];continue}if(h===hW&&l>0){if(o.ranges>0){o.ranges=0;let y=o.nodes.shift();o.nodes=[y,{type:"text",value:lW(o)}]}p({type:"comma",value:h}),o.commas++;continue}if(h===dW&&l>0&&o.commas===0){let y=o.nodes;if(l===0||y.length===0){p({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){y.pop();let m=y[y.length-1];m.value+=a.value+h,a=m,o.ranges--;continue}p({type:"dot",value:h});continue}p({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(O=>{O.nodes||(O.type==="open"&&(O.isOpen=!0),O.type==="close"&&(O.isClose=!0),O.nodes||(O.type="text"),O.invalid=!0)});let y=s[s.length-1],m=y.nodes.indexOf(o);y.nodes.splice(m,1,...o.nodes)}while(s.length>0);return p({type:"eos"}),i};dC.exports=wW});var yC=F((pX,mC)=>{"use strict";var gC=wc(),SW=iC(),CW=aC(),xW=pC(),ir=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=ir.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(ir.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};ir.parse=(e,t={})=>xW(e,t);ir.stringify=(e,t={})=>gC(typeof e=="string"?ir.parse(e,t):e,t);ir.compile=(e,t={})=>(typeof e=="string"&&(e=ir.parse(e,t)),SW(e,t));ir.expand=(e,t={})=>{typeof e=="string"&&(e=ir.parse(e,t));let r=CW(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};ir.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ir.compile(e,t):ir.expand(e,t);mC.exports=ir});var Zo=F((gX,wC)=>{"use strict";var OW=require("path"),Yr="\\\\/",vC=`[^${Yr}]`,dn="\\.",PW="\\+",_W="\\?",xc="\\/",RW="(?=.)",AC="[^/]",Hd=`(?:${xc}|$)`,EC=`(?:^|${xc})`,zd=`${dn}{1,2}${Hd}`,FW=`(?!${dn})`,DW=`(?!${EC}${zd})`,LW=`(?!${dn}{0,1}${Hd})`,kW=`(?!${zd})`,TW=`[^.${xc}]`,IW=`${AC}*?`,bC={DOT_LITERAL:dn,PLUS_LITERAL:PW,QMARK_LITERAL:_W,SLASH_LITERAL:xc,ONE_CHAR:RW,QMARK:AC,END_ANCHOR:Hd,DOTS_SLASH:zd,NO_DOT:FW,NO_DOTS:DW,NO_DOT_SLASH:LW,NO_DOTS_SLASH:kW,QMARK_NO_DOT:TW,STAR:IW,START_ANCHOR:EC},NW={...bC,SLASH_LITERAL:`[${Yr}]`,QMARK:vC,STAR:`${vC}*?`,DOTS_SLASH:`${dn}{1,2}(?:[${Yr}]|$)`,NO_DOT:`(?!${dn})`,NO_DOTS:`(?!(?:^|[${Yr}])${dn}{1,2}(?:[${Yr}]|$))`,NO_DOT_SLASH:`(?!${dn}{0,1}(?:[${Yr}]|$))`,NO_DOTS_SLASH:`(?!${dn}{1,2}(?:[${Yr}]|$))`,QMARK_NO_DOT:`[^.${Yr}]`,START_ANCHOR:`(?:^|[${Yr}])`,END_ANCHOR:`(?:[${Yr}]|$)`},$W={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};wC.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:$W,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:OW.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?NW:bC}}});var ea=F(Wt=>{"use strict";var MW=require("path"),jW=process.platform==="win32",{REGEX_BACKSLASH:BW,REGEX_REMOVE_BACKSLASH:WW,REGEX_SPECIAL_CHARS:qW,REGEX_SPECIAL_CHARS_GLOBAL:GW}=Zo();Wt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Wt.hasRegexChars=e=>qW.test(e);Wt.isRegexChar=e=>e.length===1&&Wt.hasRegexChars(e);Wt.escapeRegex=e=>e.replace(GW,"\\$1");Wt.toPosixSlashes=e=>e.replace(BW,"/");Wt.removeBackslashes=e=>e.replace(WW,t=>t==="\\"?"":t);Wt.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};Wt.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:jW===!0||MW.sep==="\\";Wt.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Wt.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Wt.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Wt.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var FC=F((yX,RC)=>{"use strict";var SC=ea(),{CHAR_ASTERISK:Yd,CHAR_AT:UW,CHAR_BACKWARD_SLASH:ta,CHAR_COMMA:HW,CHAR_DOT:Vd,CHAR_EXCLAMATION_MARK:Kd,CHAR_FORWARD_SLASH:_C,CHAR_LEFT_CURLY_BRACE:Xd,CHAR_LEFT_PARENTHESES:Jd,CHAR_LEFT_SQUARE_BRACKET:zW,CHAR_PLUS:YW,CHAR_QUESTION_MARK:CC,CHAR_RIGHT_CURLY_BRACE:VW,CHAR_RIGHT_PARENTHESES:xC,CHAR_RIGHT_SQUARE_BRACKET:KW}=Zo(),OC=e=>e===_C||e===ta,PC=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},XW=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=e,c=-1,f=0,l=0,h=!1,d=!1,p=!1,y=!1,m=!1,O=!1,S=!1,k=!1,P=!1,b=!1,_=0,L,D,$={value:"",depth:0,isGlob:!1},x=()=>c>=n,g=()=>u.charCodeAt(c+1),v=()=>(L=D,u.charCodeAt(++c));for(;c<n;){D=v();let T;if(D===ta){S=$.backslashes=!0,D=v(),D===Xd&&(O=!0);continue}if(O===!0||D===Xd){for(_++;x()!==!0&&(D=v());){if(D===ta){S=$.backslashes=!0,v();continue}if(D===Xd){_++;continue}if(O!==!0&&D===Vd&&(D=v())===Vd){if(h=$.isBrace=!0,p=$.isGlob=!0,b=!0,i===!0)continue;break}if(O!==!0&&D===HW){if(h=$.isBrace=!0,p=$.isGlob=!0,b=!0,i===!0)continue;break}if(D===VW&&(_--,_===0)){O=!1,h=$.isBrace=!0,b=!0;break}}if(i===!0)continue;break}if(D===_C){if(s.push(c),o.push($),$={value:"",depth:0,isGlob:!1},b===!0)continue;if(L===Vd&&c===f+1){f+=2;continue}l=c+1;continue}if(r.noext!==!0&&(D===YW||D===UW||D===Yd||D===CC||D===Kd)===!0&&g()===Jd){if(p=$.isGlob=!0,y=$.isExtglob=!0,b=!0,D===Kd&&c===f&&(P=!0),i===!0){for(;x()!==!0&&(D=v());){if(D===ta){S=$.backslashes=!0,D=v();continue}if(D===xC){p=$.isGlob=!0,b=!0;break}}continue}break}if(D===Yd){if(L===Yd&&(m=$.isGlobstar=!0),p=$.isGlob=!0,b=!0,i===!0)continue;break}if(D===CC){if(p=$.isGlob=!0,b=!0,i===!0)continue;break}if(D===zW){for(;x()!==!0&&(T=v());){if(T===ta){S=$.backslashes=!0,v();continue}if(T===KW){d=$.isBracket=!0,p=$.isGlob=!0,b=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&D===Kd&&c===f){k=$.negated=!0,f++;continue}if(r.noparen!==!0&&D===Jd){if(p=$.isGlob=!0,i===!0){for(;x()!==!0&&(D=v());){if(D===Jd){S=$.backslashes=!0,D=v();continue}if(D===xC){b=!0;break}}continue}break}if(p===!0){if(b=!0,i===!0)continue;break}}r.noext===!0&&(y=!1,p=!1);let A=u,C="",E="";f>0&&(C=u.slice(0,f),u=u.slice(f),l-=f),A&&p===!0&&l>0?(A=u.slice(0,l),E=u.slice(l)):p===!0?(A="",E=u):A=u,A&&A!==""&&A!=="/"&&A!==u&&OC(A.charCodeAt(A.length-1))&&(A=A.slice(0,-1)),r.unescape===!0&&(E&&(E=SC.removeBackslashes(E)),A&&S===!0&&(A=SC.removeBackslashes(A)));let w={prefix:C,input:e,start:f,base:A,glob:E,isBrace:h,isBracket:d,isGlob:p,isExtglob:y,isGlobstar:m,negated:k,negatedExtglob:P};if(r.tokens===!0&&(w.maxDepth=0,OC(D)||o.push($),w.tokens=o),r.parts===!0||r.tokens===!0){let T;for(let N=0;N<s.length;N++){let M=T?T+1:f,U=s[N],V=e.slice(M,U);r.tokens&&(N===0&&f!==0?(o[N].isPrefix=!0,o[N].value=C):o[N].value=V,PC(o[N]),w.maxDepth+=o[N].depth),(N!==0||V!=="")&&a.push(V),T=U}if(T&&T+1<e.length){let N=e.slice(T+1);a.push(N),r.tokens&&(o[o.length-1].value=N,PC(o[o.length-1]),w.maxDepth+=o[o.length-1].depth)}w.slashes=s,w.parts=a}return w};RC.exports=XW});var kC=F((vX,LC)=>{"use strict";var Oc=Zo(),sr=ea(),{MAX_LENGTH:Pc,POSIX_REGEX_SOURCE:JW,REGEX_NON_SPECIAL_CHARS:QW,REGEX_SPECIAL_CHARS_BACKREF:ZW,REPLACEMENTS:DC}=Oc,eq=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>sr.escapeRegex(i)).join("..")}return r},vs=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Qd=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=DC[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Pc,r.maxLength):Pc,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=sr.isWindows(t),c=Oc.globChars(u),f=Oc.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:h,SLASH_LITERAL:d,ONE_CHAR:p,DOTS_SLASH:y,NO_DOT:m,NO_DOT_SLASH:O,NO_DOTS_SLASH:S,QMARK:k,QMARK_NO_DOT:P,STAR:b,START_ANCHOR:_}=c,L=G=>`(${a}(?:(?!${_}${G.dot?y:l}).)*?)`,D=r.dot?"":m,$=r.dot?k:P,x=r.bash===!0?L(r):b;r.capture&&(x=`(${x})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let g={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=sr.removePrefix(e,g),i=e.length;let v=[],A=[],C=[],E=s,w,T=()=>g.index===i-1,N=g.peek=(G=1)=>e[g.index+G],M=g.advance=()=>e[++g.index]||"",U=()=>e.slice(g.index+1),V=(G="",re=0)=>{g.consumed+=G,g.index+=re},X=G=>{g.output+=G.output!=null?G.output:G.value,V(G.value)},fe=()=>{let G=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)M(),g.start++,G++;return G%2===0?!1:(g.negated=!0,g.start++,!0)},q=G=>{g[G]++,C.push(G)},H=G=>{g[G]--,C.pop()},W=G=>{if(E.type==="globstar"){let re=g.braces>0&&(G.type==="comma"||G.type==="brace"),Y=G.extglob===!0||v.length&&(G.type==="pipe"||G.type==="paren");G.type!=="slash"&&G.type!=="paren"&&!re&&!Y&&(g.output=g.output.slice(0,-E.output.length),E.type="star",E.value="*",E.output=x,g.output+=E.output)}if(v.length&&G.type!=="paren"&&(v[v.length-1].inner+=G.value),(G.value||G.output)&&X(G),E&&E.type==="text"&&G.type==="text"){E.value+=G.value,E.output=(E.output||"")+G.value;return}G.prev=E,o.push(G),E=G},Z=(G,re)=>{let Y={...f[re],conditions:1,inner:""};Y.prev=E,Y.parens=g.parens,Y.output=g.output;let ue=(r.capture?"(":"")+Y.open;q("parens"),W({type:G,value:re,output:g.output?"":p}),W({type:"paren",extglob:!0,value:M(),output:ue}),v.push(Y)},ee=G=>{let re=G.close+(r.capture?")":""),Y;if(G.type==="negate"){let ue=x;if(G.inner&&G.inner.length>1&&G.inner.includes("/")&&(ue=L(r)),(ue!==x||T()||/^\)+$/.test(U()))&&(re=G.close=`)$))${ue}`),G.inner.includes("*")&&(Y=U())&&/^\.[^\\/.]+$/.test(Y)){let ve=Qd(Y,{...t,fastpaths:!1}).output;re=G.close=`)${ve})${ue})`}G.prev.type==="bos"&&(g.negatedExtglob=!0)}W({type:"paren",extglob:!0,value:w,output:re}),H("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let G=!1,re=e.replace(ZW,(Y,ue,ve,De,I,j)=>De==="\\"?(G=!0,Y):De==="?"?ue?ue+De+(I?k.repeat(I.length):""):j===0?$+(I?k.repeat(I.length):""):k.repeat(ve.length):De==="."?l.repeat(ve.length):De==="*"?ue?ue+De+(I?x:""):x:ue?Y:`\\${Y}`);return G===!0&&(r.unescape===!0?re=re.replace(/\\/g,""):re=re.replace(/\\+/g,Y=>Y.length%2===0?"\\\\":Y?"\\":"")),re===e&&r.contains===!0?(g.output=e,g):(g.output=sr.wrapOutput(re,g,t),g)}for(;!T();){if(w=M(),w==="\0")continue;if(w==="\\"){let Y=N();if(Y==="/"&&r.bash!==!0||Y==="."||Y===";")continue;if(!Y){w+="\\",W({type:"text",value:w});continue}let ue=/^\\+/.exec(U()),ve=0;if(ue&&ue[0].length>2&&(ve=ue[0].length,g.index+=ve,ve%2!==0&&(w+="\\")),r.unescape===!0?w=M():w+=M(),g.brackets===0){W({type:"text",value:w});continue}}if(g.brackets>0&&(w!=="]"||E.value==="["||E.value==="[^")){if(r.posix!==!1&&w===":"){let Y=E.value.slice(1);if(Y.includes("[")&&(E.posix=!0,Y.includes(":"))){let ue=E.value.lastIndexOf("["),ve=E.value.slice(0,ue),De=E.value.slice(ue+2),I=JW[De];if(I){E.value=ve+I,g.backtrack=!0,M(),!s.output&&o.indexOf(E)===1&&(s.output=p);continue}}}(w==="["&&N()!==":"||w==="-"&&N()==="]")&&(w=`\\${w}`),w==="]"&&(E.value==="["||E.value==="[^")&&(w=`\\${w}`),r.posix===!0&&w==="!"&&E.value==="["&&(w="^"),E.value+=w,X({value:w});continue}if(g.quotes===1&&w!=='"'){w=sr.escapeRegex(w),E.value+=w,X({value:w});continue}if(w==='"'){g.quotes=g.quotes===1?0:1,r.keepQuotes===!0&&W({type:"text",value:w});continue}if(w==="("){q("parens"),W({type:"paren",value:w});continue}if(w===")"){if(g.parens===0&&r.strictBrackets===!0)throw new SyntaxError(vs("opening","("));let Y=v[v.length-1];if(Y&&g.parens===Y.parens+1){ee(v.pop());continue}W({type:"paren",value:w,output:g.parens?")":"\\)"}),H("parens");continue}if(w==="["){if(r.nobracket===!0||!U().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(vs("closing","]"));w=`\\${w}`}else q("brackets");W({type:"bracket",value:w});continue}if(w==="]"){if(r.nobracket===!0||E&&E.type==="bracket"&&E.value.length===1){W({type:"text",value:w,output:`\\${w}`});continue}if(g.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(vs("opening","["));W({type:"text",value:w,output:`\\${w}`});continue}H("brackets");let Y=E.value.slice(1);if(E.posix!==!0&&Y[0]==="^"&&!Y.includes("/")&&(w=`/${w}`),E.value+=w,X({value:w}),r.literalBrackets===!1||sr.hasRegexChars(Y))continue;let ue=sr.escapeRegex(E.value);if(g.output=g.output.slice(0,-E.value.length),r.literalBrackets===!0){g.output+=ue,E.value=ue;continue}E.value=`(${a}${ue}|${E.value})`,g.output+=E.value;continue}if(w==="{"&&r.nobrace!==!0){q("braces");let Y={type:"brace",value:w,output:"(",outputIndex:g.output.length,tokensIndex:g.tokens.length};A.push(Y),W(Y);continue}if(w==="}"){let Y=A[A.length-1];if(r.nobrace===!0||!Y){W({type:"text",value:w,output:w});continue}let ue=")";if(Y.dots===!0){let ve=o.slice(),De=[];for(let I=ve.length-1;I>=0&&(o.pop(),ve[I].type!=="brace");I--)ve[I].type!=="dots"&&De.unshift(ve[I].value);ue=eq(De,r),g.backtrack=!0}if(Y.comma!==!0&&Y.dots!==!0){let ve=g.output.slice(0,Y.outputIndex),De=g.tokens.slice(Y.tokensIndex);Y.value=Y.output="\\{",w=ue="\\}",g.output=ve;for(let I of De)g.output+=I.output||I.value}W({type:"brace",value:w,output:ue}),H("braces"),A.pop();continue}if(w==="|"){v.length>0&&v[v.length-1].conditions++,W({type:"text",value:w});continue}if(w===","){let Y=w,ue=A[A.length-1];ue&&C[C.length-1]==="braces"&&(ue.comma=!0,Y="|"),W({type:"comma",value:w,output:Y});continue}if(w==="/"){if(E.type==="dot"&&g.index===g.start+1){g.start=g.index+1,g.consumed="",g.output="",o.pop(),E=s;continue}W({type:"slash",value:w,output:d});continue}if(w==="."){if(g.braces>0&&E.type==="dot"){E.value==="."&&(E.output=l);let Y=A[A.length-1];E.type="dots",E.output+=w,E.value+=w,Y.dots=!0;continue}if(g.braces+g.parens===0&&E.type!=="bos"&&E.type!=="slash"){W({type:"text",value:w,output:l});continue}W({type:"dot",value:w,output:l});continue}if(w==="?"){if(!(E&&E.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){Z("qmark",w);continue}if(E&&E.type==="paren"){let ue=N(),ve=w;if(ue==="<"&&!sr.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(E.value==="("&&!/[!=<:]/.test(ue)||ue==="<"&&!/<([!=]|\w+>)/.test(U()))&&(ve=`\\${w}`),W({type:"text",value:w,output:ve});continue}if(r.dot!==!0&&(E.type==="slash"||E.type==="bos")){W({type:"qmark",value:w,output:P});continue}W({type:"qmark",value:w,output:k});continue}if(w==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){Z("negate",w);continue}if(r.nonegate!==!0&&g.index===0){fe();continue}}if(w==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){Z("plus",w);continue}if(E&&E.value==="("||r.regex===!1){W({type:"plus",value:w,output:h});continue}if(E&&(E.type==="bracket"||E.type==="paren"||E.type==="brace")||g.parens>0){W({type:"plus",value:w});continue}W({type:"plus",value:h});continue}if(w==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){W({type:"at",extglob:!0,value:w,output:""});continue}W({type:"text",value:w});continue}if(w!=="*"){(w==="$"||w==="^")&&(w=`\\${w}`);let Y=QW.exec(U());Y&&(w+=Y[0],g.index+=Y[0].length),W({type:"text",value:w});continue}if(E&&(E.type==="globstar"||E.star===!0)){E.type="star",E.star=!0,E.value+=w,E.output=x,g.backtrack=!0,g.globstar=!0,V(w);continue}let G=U();if(r.noextglob!==!0&&/^\([^?]/.test(G)){Z("star",w);continue}if(E.type==="star"){if(r.noglobstar===!0){V(w);continue}let Y=E.prev,ue=Y.prev,ve=Y.type==="slash"||Y.type==="bos",De=ue&&(ue.type==="star"||ue.type==="globstar");if(r.bash===!0&&(!ve||G[0]&&G[0]!=="/")){W({type:"star",value:w,output:""});continue}let I=g.braces>0&&(Y.type==="comma"||Y.type==="brace"),j=v.length&&(Y.type==="pipe"||Y.type==="paren");if(!ve&&Y.type!=="paren"&&!I&&!j){W({type:"star",value:w,output:""});continue}for(;G.slice(0,3)==="/**";){let K=e[g.index+4];if(K&&K!=="/")break;G=G.slice(3),V("/**",3)}if(Y.type==="bos"&&T()){E.type="globstar",E.value+=w,E.output=L(r),g.output=E.output,g.globstar=!0,V(w);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&!De&&T()){g.output=g.output.slice(0,-(Y.output+E.output).length),Y.output=`(?:${Y.output}`,E.type="globstar",E.output=L(r)+(r.strictSlashes?")":"|$)"),E.value+=w,g.globstar=!0,g.output+=Y.output+E.output,V(w);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&G[0]==="/"){let K=G[1]!==void 0?"|$":"";g.output=g.output.slice(0,-(Y.output+E.output).length),Y.output=`(?:${Y.output}`,E.type="globstar",E.output=`${L(r)}${d}|${d}${K})`,E.value+=w,g.output+=Y.output+E.output,g.globstar=!0,V(w+M()),W({type:"slash",value:"/",output:""});continue}if(Y.type==="bos"&&G[0]==="/"){E.type="globstar",E.value+=w,E.output=`(?:^|${d}|${L(r)}${d})`,g.output=E.output,g.globstar=!0,V(w+M()),W({type:"slash",value:"/",output:""});continue}g.output=g.output.slice(0,-E.output.length),E.type="globstar",E.output=L(r),E.value+=w,g.output+=E.output,g.globstar=!0,V(w);continue}let re={type:"star",value:w,output:x};if(r.bash===!0){re.output=".*?",(E.type==="bos"||E.type==="slash")&&(re.output=D+re.output),W(re);continue}if(E&&(E.type==="bracket"||E.type==="paren")&&r.regex===!0){re.output=w,W(re);continue}(g.index===g.start||E.type==="slash"||E.type==="dot")&&(E.type==="dot"?(g.output+=O,E.output+=O):r.dot===!0?(g.output+=S,E.output+=S):(g.output+=D,E.output+=D),N()!=="*"&&(g.output+=p,E.output+=p)),W(re)}for(;g.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(vs("closing","]"));g.output=sr.escapeLast(g.output,"["),H("brackets")}for(;g.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(vs("closing",")"));g.output=sr.escapeLast(g.output,"("),H("parens")}for(;g.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(vs("closing","}"));g.output=sr.escapeLast(g.output,"{"),H("braces")}if(r.strictSlashes!==!0&&(E.type==="star"||E.type==="bracket")&&W({type:"maybe_slash",value:"",output:`${d}?`}),g.backtrack===!0){g.output="";for(let G of g.tokens)g.output+=G.output!=null?G.output:G.value,G.suffix&&(g.output+=G.suffix)}return g};Qd.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Pc,r.maxLength):Pc,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=DC[e]||e;let s=sr.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:f,NO_DOTS:l,NO_DOTS_SLASH:h,STAR:d,START_ANCHOR:p}=Oc.globChars(s),y=r.dot?l:f,m=r.dot?h:f,O=r.capture?"":"?:",S={negated:!1,prefix:""},k=r.bash===!0?".*?":d;r.capture&&(k=`(${k})`);let P=D=>D.noglobstar===!0?k:`(${O}(?:(?!${p}${D.dot?c:o}).)*?)`,b=D=>{switch(D){case"*":return`${y}${u}${k}`;case".*":return`${o}${u}${k}`;case"*.*":return`${y}${k}${o}${u}${k}`;case"*/*":return`${y}${k}${a}${u}${m}${k}`;case"**":return y+P(r);case"**/*":return`(?:${y}${P(r)}${a})?${m}${u}${k}`;case"**/*.*":return`(?:${y}${P(r)}${a})?${m}${k}${o}${u}${k}`;case"**/.*":return`(?:${y}${P(r)}${a})?${o}${u}${k}`;default:{let $=/^(.*?)\.(\w+)$/.exec(D);if(!$)return;let x=b($[1]);return x?x+o+$[2]:void 0}}},_=sr.removePrefix(e,S),L=b(_);return L&&r.strictSlashes!==!0&&(L+=`${a}?`),L};LC.exports=Qd});var IC=F((AX,TC)=>{"use strict";var tq=require("path"),rq=FC(),Zd=kC(),ep=ea(),nq=Zo(),iq=e=>e&&typeof e=="object"&&!Array.isArray(e),Je=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(h=>Je(h,t,r));return h=>{for(let d of f){let p=d(h);if(p)return p}return!1}}let n=iq(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=ep.isWindows(t),o=n?Je.compileRe(e,t):Je.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};u=Je(i.ignore,f,r)}let c=(f,l=!1)=>{let{isMatch:h,match:d,output:p}=Je.test(f,o,t,{glob:e,posix:s}),y={glob:e,state:a,regex:o,posix:s,input:f,output:p,match:d,isMatch:h};return typeof i.onResult=="function"&&i.onResult(y),h===!1?(y.isMatch=!1,l?y:!1):u(f)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,l?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),l?y:!0)};return r&&(c.state=a),c};Je.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?ep.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Je.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};Je.matchBase=(e,t,r,n=ep.isWindows(r))=>(t instanceof RegExp?t:Je.makeRe(t,r)).test(tq.basename(e));Je.isMatch=(e,t,r)=>Je(t,r)(e);Je.parse=(e,t)=>Array.isArray(e)?e.map(r=>Je.parse(r,t)):Zd(e,{...t,fastpaths:!1});Je.scan=(e,t)=>rq(e,t);Je.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=Je.toRegex(a,t);return n===!0&&(u.state=e),u};Je.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Zd.fastpaths(e,t)),i.output||(i=Zd(e,t)),Je.compileRe(i,t,r,n)};Je.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Je.constants=nq;TC.exports=Je});var $C=F((EX,NC)=>{"use strict";NC.exports=IC()});var ra=F((bX,qC)=>{"use strict";var jC=require("util"),BC=yC(),Vr=$C(),tp=ea(),MC=e=>e===""||e==="./",WC=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},Ue=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let l=Vr(String(t[f]),{...r,onResult:a},!0),h=l.state.negated||l.state.negatedExtglob;h&&o++;for(let d of e){let p=l(d,!0);(h?!p.isMatch:p.isMatch)&&(h?n.add(p.output):(n.delete(p.output),i.add(p.output)))}}let c=(o===t.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(f=>f.replace(/\\/g,"")):t}return c};Ue.match=Ue;Ue.matcher=(e,t)=>Vr(e,t);Ue.isMatch=(e,t,r)=>Vr(t,r)(e);Ue.any=Ue.isMatch;Ue.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(Ue(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};Ue.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${jC.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>Ue.contains(e,n,r));if(typeof t=="string"){if(MC(e)||MC(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return Ue.isMatch(e,t,{...r,contains:!0})};Ue.matchKeys=(e,t,r)=>{if(!tp.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=Ue(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};Ue.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Vr(String(i),r);if(n.some(o=>s(o)))return!0}return!1};Ue.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Vr(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};Ue.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${jC.inspect(e)}"`);return[].concat(t).every(n=>Vr(n,r)(e))};Ue.capture=(e,t,r)=>{let n=tp.isWindows(r),s=Vr.makeRe(String(e),{...r,capture:!0}).exec(n?tp.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Ue.makeRe=(...e)=>Vr.makeRe(...e);Ue.scan=(...e)=>Vr.scan(...e);Ue.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of BC(String(n),t))r.push(Vr.parse(i,t));return r};Ue.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!WC(e)?[e]:BC(e,t)};Ue.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return Ue.braces(e,{...t,expand:!0})};Ue.hasBraces=WC;qC.exports=Ue});var QC=F(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.isAbsolute=Ee.partitionAbsoluteAndRelative=Ee.removeDuplicateSlashes=Ee.matchAny=Ee.convertPatternsToRe=Ee.makeRe=Ee.getPatternParts=Ee.expandBraceExpansion=Ee.expandPatternsWithBraceExpansion=Ee.isAffectDepthOfReadingPattern=Ee.endsWithSlashGlobStar=Ee.hasGlobStar=Ee.getBaseDirectory=Ee.isPatternRelatedToParentDirectory=Ee.getPatternsOutsideCurrentDirectory=Ee.getPatternsInsideCurrentDirectory=Ee.getPositivePatterns=Ee.getNegativePatterns=Ee.isPositivePattern=Ee.isNegativePattern=Ee.convertToNegativePattern=Ee.convertToPositivePattern=Ee.isDynamicPattern=Ee.isStaticPattern=void 0;var GC=require("path"),sq=I1(),rp=ra(),UC="**",oq="\\",aq=/[*?]|^!/,uq=/\[[^[]*]/,cq=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,lq=/[!*+?@]\([^(]*\)/,fq=/,|\.\./,hq=/(?!^)\/{2,}/g;function HC(e,t={}){return!zC(e,t)}Ee.isStaticPattern=HC;function zC(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(oq)||aq.test(e)||uq.test(e)||cq.test(e)||t.extglob!==!1&&lq.test(e)||t.braceExpansion!==!1&&dq(e))}Ee.isDynamicPattern=zC;function dq(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return fq.test(n)}function pq(e){return _c(e)?e.slice(1):e}Ee.convertToPositivePattern=pq;function gq(e){return"!"+e}Ee.convertToNegativePattern=gq;function _c(e){return e.startsWith("!")&&e[1]!=="("}Ee.isNegativePattern=_c;function YC(e){return!_c(e)}Ee.isPositivePattern=YC;function mq(e){return e.filter(_c)}Ee.getNegativePatterns=mq;function yq(e){return e.filter(YC)}Ee.getPositivePatterns=yq;function vq(e){return e.filter(t=>!np(t))}Ee.getPatternsInsideCurrentDirectory=vq;function Aq(e){return e.filter(np)}Ee.getPatternsOutsideCurrentDirectory=Aq;function np(e){return e.startsWith("..")||e.startsWith("./..")}Ee.isPatternRelatedToParentDirectory=np;function Eq(e){return sq(e,{flipBackslashes:!1})}Ee.getBaseDirectory=Eq;function bq(e){return e.includes(UC)}Ee.hasGlobStar=bq;function VC(e){return e.endsWith("/"+UC)}Ee.endsWithSlashGlobStar=VC;function wq(e){let t=GC.basename(e);return VC(e)||HC(t)}Ee.isAffectDepthOfReadingPattern=wq;function Sq(e){return e.reduce((t,r)=>t.concat(KC(r)),[])}Ee.expandPatternsWithBraceExpansion=Sq;function KC(e){let t=rp.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}Ee.expandBraceExpansion=KC;function Cq(e,t){let{parts:r}=rp.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}Ee.getPatternParts=Cq;function XC(e,t){return rp.makeRe(e,t)}Ee.makeRe=XC;function xq(e,t){return e.map(r=>XC(r,t))}Ee.convertPatternsToRe=xq;function Oq(e,t){return t.some(r=>r.test(e))}Ee.matchAny=Oq;function Pq(e){return e.replace(hq,"/")}Ee.removeDuplicateSlashes=Pq;function _q(e){let t=[],r=[];for(let n of e)JC(n)?t.push(n):r.push(n);return[t,r]}Ee.partitionAbsoluteAndRelative=_q;function JC(e){return GC.isAbsolute(e)}Ee.isAbsolute=JC});var rx=F((SX,tx)=>{"use strict";var Rq=require("stream"),ZC=Rq.PassThrough,Fq=Array.prototype.slice;tx.exports=Dq;function Dq(){let e=[],t=Fq.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=ZC(n);function a(){for(let f=0,l=arguments.length;f<l;f++)e.push(ex(arguments[f],n));return u(),this}function u(){if(r)return;r=!0;let f=e.shift();if(!f){process.nextTick(c);return}Array.isArray(f)||(f=[f]);let l=f.length+1;function h(){--l>0||(r=!1,u())}function d(p){function y(){p.removeListener("merge2UnpipeEnd",y),p.removeListener("end",y),s&&p.removeListener("error",m),h()}function m(O){o.emit("error",O)}if(p._readableState.endEmitted)return h();p.on("merge2UnpipeEnd",y),p.on("end",y),s&&p.on("error",m),p.pipe(o,{end:!1}),p.resume()}for(let p=0;p<f.length;p++)d(f[p]);h()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function ex(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=ex(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(ZC(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var ix=F(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.merge=void 0;var Lq=rx();function kq(e){let t=Lq(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>nx(e)),t.once("end",()=>nx(e)),t}Rc.merge=kq;function nx(e){e.forEach(t=>t.emit("close"))}});var sx=F(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.isEmpty=As.isString=void 0;function Tq(e){return typeof e=="string"}As.isString=Tq;function Iq(e){return e===""}As.isEmpty=Iq});var pn=F(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.string=vt.stream=vt.pattern=vt.path=vt.fs=vt.errno=vt.array=void 0;var Nq=w1();vt.array=Nq;var $q=S1();vt.errno=$q;var Mq=C1();vt.fs=Mq;var jq=_1();vt.path=jq;var Bq=QC();vt.pattern=Bq;var Wq=ix();vt.stream=Wq;var qq=sx();vt.string=qq});var cx=F(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.convertPatternGroupToTask=At.convertPatternGroupsToTasks=At.groupPatternsByBaseDirectory=At.getNegativePatternsAsPositive=At.getPositivePatterns=At.convertPatternsToTasks=At.generate=void 0;var Tr=pn();function Gq(e,t){let r=ox(e,t),n=ox(t.ignore,t),i=ax(r),s=ux(r,n),o=i.filter(f=>Tr.pattern.isStaticPattern(f,t)),a=i.filter(f=>Tr.pattern.isDynamicPattern(f,t)),u=ip(o,s,!1),c=ip(a,s,!0);return u.concat(c)}At.generate=Gq;function ox(e,t){let r=e;return t.braceExpansion&&(r=Tr.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>Tr.pattern.removeDuplicateSlashes(n))}function ip(e,t,r){let n=[],i=Tr.pattern.getPatternsOutsideCurrentDirectory(e),s=Tr.pattern.getPatternsInsideCurrentDirectory(e),o=sp(i),a=sp(s);return n.push(...op(o,t,r)),"."in a?n.push(ap(".",s,t,r)):n.push(...op(a,t,r)),n}At.convertPatternsToTasks=ip;function ax(e){return Tr.pattern.getPositivePatterns(e)}At.getPositivePatterns=ax;function ux(e,t){return Tr.pattern.getNegativePatterns(e).concat(t).map(Tr.pattern.convertToPositivePattern)}At.getNegativePatternsAsPositive=ux;function sp(e){let t={};return e.reduce((r,n)=>{let i=Tr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}At.groupPatternsByBaseDirectory=sp;function op(e,t,r){return Object.keys(e).map(n=>ap(n,e[n],t,r))}At.convertPatternGroupsToTasks=op;function ap(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Tr.pattern.convertToNegativePattern))}}At.convertPatternGroupToTask=ap});var fx=F(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.read=void 0;function Uq(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){lx(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){up(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){lx(r,s);return}up(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),up(r,o)})})}Fc.read=Uq;function lx(e,t){e(t)}function up(e,t){e(null,t)}});var hx=F(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.read=void 0;function Hq(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Dc.read=Hq});var dx=F(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.createFileSystemAdapter=Bn.FILE_SYSTEM_ADAPTER=void 0;var Lc=require("fs");Bn.FILE_SYSTEM_ADAPTER={lstat:Lc.lstat,stat:Lc.stat,lstatSync:Lc.lstatSync,statSync:Lc.statSync};function zq(e){return e===void 0?Bn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Bn.FILE_SYSTEM_ADAPTER),e)}Bn.createFileSystemAdapter=zq});var px=F(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});var Yq=dx(),cp=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Yq.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};lp.default=cp});var Ri=F(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.statSync=Wn.stat=Wn.Settings=void 0;var gx=fx(),Vq=hx(),fp=px();Wn.Settings=fp.default;function Kq(e,t,r){if(typeof t=="function"){gx.read(e,hp(),t);return}gx.read(e,hp(t),r)}Wn.stat=Kq;function Xq(e,t){let r=hp(t);return Vq.read(e,r)}Wn.statSync=Xq;function hp(e={}){return e instanceof fp.default?e:new fp.default(e)}});var vx=F((kX,yx)=>{var mx;yx.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(mx||(mx=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Ex=F((TX,Ax)=>{Ax.exports=Qq;var Jq=vx();function Qq(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(u){function c(){t&&t(u,r),t=null}s?Jq(c):c()}function a(u,c,f){r[u]=f,(--n===0||c)&&o(c)}n?i?i.forEach(function(u){e[u](function(c,f){a(u,c,f)})}):e.forEach(function(u,c){u(function(f,l){a(c,f,l)})}):o(null),s=!1}});var dp=F(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var kc=process.versions.node.split(".");if(kc[0]===void 0||kc[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var bx=Number.parseInt(kc[0],10),Zq=Number.parseInt(kc[1],10),wx=10,eG=10,tG=bx>wx,rG=bx===wx&&Zq>=eG;Tc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=tG||rG});var Sx=F(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.createDirentFromStats=void 0;var pp=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function nG(e,t){return new pp(e,t)}Ic.createDirentFromStats=nG});var gp=F(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.fs=void 0;var iG=Sx();Nc.fs=iG});var mp=F($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.joinPathSegments=void 0;function sG(e,t,r){return e.endsWith(r)?e+t:e+r+t}$c.joinPathSegments=sG});var Rx=F(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.readdir=qn.readdirWithFileTypes=qn.read=void 0;var oG=Ri(),Cx=Ex(),aG=dp(),xx=gp(),Ox=mp();function uG(e,t,r){if(!t.stats&&aG.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Px(e,t,r);return}_x(e,t,r)}qn.read=uG;function Px(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Mc(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:Ox.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){yp(r,s);return}let o=s.map(a=>cG(a,t));Cx(o,(a,u)=>{if(a!==null){Mc(r,a);return}yp(r,u)})})}qn.readdirWithFileTypes=Px;function cG(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=xx.fs.createDirentFromStats(e.name,i),r(null,e)})}}function _x(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Mc(r,n);return}let s=i.map(o=>{let a=Ox.joinPathSegments(e,o,t.pathSegmentSeparator);return u=>{oG.stat(a,t.fsStatSettings,(c,f)=>{if(c!==null){u(c);return}let l={name:o,path:a,dirent:xx.fs.createDirentFromStats(o,f)};t.stats&&(l.stats=f),u(null,l)})}});Cx(s,(o,a)=>{if(o!==null){Mc(r,o);return}yp(r,a)})})}qn.readdir=_x;function Mc(e,t){e(t)}function yp(e,t){e(null,t)}});var Tx=F(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.readdir=Gn.readdirWithFileTypes=Gn.read=void 0;var lG=Ri(),fG=dp(),Fx=gp(),Dx=mp();function hG(e,t){return!t.stats&&fG.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Lx(e,t):kx(e,t)}Gn.read=hG;function Lx(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Dx.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=Fx.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Gn.readdirWithFileTypes=Lx;function kx(e,t){return t.fs.readdirSync(e).map(n=>{let i=Dx.joinPathSegments(e,n,t.pathSegmentSeparator),s=lG.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:Fx.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Gn.readdir=kx});var Ix=F(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.createFileSystemAdapter=Un.FILE_SYSTEM_ADAPTER=void 0;var Es=require("fs");Un.FILE_SYSTEM_ADAPTER={lstat:Es.lstat,stat:Es.stat,lstatSync:Es.lstatSync,statSync:Es.statSync,readdir:Es.readdir,readdirSync:Es.readdirSync};function dG(e){return e===void 0?Un.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Un.FILE_SYSTEM_ADAPTER),e)}Un.createFileSystemAdapter=dG});var Nx=F(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var pG=require("path"),gG=Ri(),mG=Ix(),vp=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=mG.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,pG.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new gG.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Ap.default=vp});var jc=F(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.Settings=Hn.scandirSync=Hn.scandir=void 0;var $x=Rx(),yG=Tx(),Ep=Nx();Hn.Settings=Ep.default;function vG(e,t,r){if(typeof t=="function"){$x.read(e,bp(),t);return}$x.read(e,bp(t),r)}Hn.scandir=vG;function AG(e,t){let r=bp(t);return yG.read(e,r)}Hn.scandirSync=AG;function bp(e={}){return e instanceof Ep.default?e:new Ep.default(e)}});var jx=F((UX,Mx)=>{"use strict";function EG(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Mx.exports=EG});var Wx=F((HX,wp)=>{"use strict";var bG=jx();function Bx(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=bG(wG),i=null,s=null,o=0,a=null,u={push:y,drain:br,saturated:br,pause:f,paused:!1,get concurrency(){return r},set concurrency(b){if(!(b>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=b,!u.paused)for(;i&&o<r;)o++,O()},running:c,resume:d,idle:p,length:l,getQueue:h,unshift:m,empty:br,kill:S,killAndDrain:k,error:P};return u;function c(){return o}function f(){u.paused=!0}function l(){for(var b=i,_=0;b;)b=b.next,_++;return _}function h(){for(var b=i,_=[];b;)_.push(b.value),b=b.next;return _}function d(){if(u.paused){if(u.paused=!1,i===null){o++,O();return}for(;i&&o<r;)o++,O()}}function p(){return o===0&&u.length()===0}function y(b,_){var L=n.get();L.context=e,L.release=O,L.value=b,L.callback=_||br,L.errorHandler=a,o>=r||u.paused?s?(s.next=L,s=L):(i=L,s=L,u.saturated()):(o++,t.call(e,L.value,L.worked))}function m(b,_){var L=n.get();L.context=e,L.release=O,L.value=b,L.callback=_||br,L.errorHandler=a,o>=r||u.paused?i?(L.next=i,i=L):(i=L,s=L,u.saturated()):(o++,t.call(e,L.value,L.worked))}function O(b){b&&n.release(b);var _=i;_&&o<=r?u.paused?o--:(s===i&&(s=null),i=_.next,_.next=null,t.call(e,_.value,_.worked),s===null&&u.empty()):--o===0&&u.drain()}function S(){i=null,s=null,u.drain=br}function k(){i=null,s=null,u.drain(),u.drain=br}function P(b){a=b}}function br(){}function wG(){this.value=null,this.callback=br,this.next=null,this.release=br,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=br,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function SG(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(f,l){t.call(this,f).then(function(h){l(null,h)},l)}var i=Bx(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=c,i;function a(f){var l=new Promise(function(h,d){s(f,function(p,y){if(p){d(p);return}h(y)})});return l.catch(br),l}function u(f){var l=new Promise(function(h,d){o(f,function(p,y){if(p){d(p);return}h(y)})});return l.catch(br),l}function c(){var f=new Promise(function(l){process.nextTick(function(){if(i.idle())l();else{var h=i.drain;i.drain=function(){typeof h=="function"&&h(),l(),i.drain=h}}})});return f}}wp.exports=Bx;wp.exports.promise=SG});var Bc=F(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.joinPathSegments=Kr.replacePathSegmentSeparator=Kr.isAppliedFilter=Kr.isFatalError=void 0;function CG(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Kr.isFatalError=CG;function xG(e,t){return e===null||e(t)}Kr.isAppliedFilter=xG;function OG(e,t){return e.split(/[/\\]/).join(t)}Kr.replacePathSegmentSeparator=OG;function PG(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Kr.joinPathSegments=PG});var xp=F(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var _G=Bc(),Sp=class{constructor(t,r){this._root=t,this._settings=r,this._root=_G.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Cp.default=Sp});var _p=F(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});var RG=require("events"),FG=jc(),DG=Wx(),Wc=Bc(),LG=xp(),Op=class extends LG.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=FG.scandir,this._emitter=new RG.EventEmitter,this._queue=DG(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!Wc.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=Wc.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Wc.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Wc.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Pp.default=Op});var qx=F(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var kG=_p(),Rp=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new kG.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{TG(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{IG(t,this._storage)}),this._reader.read()}};Fp.default=Rp;function TG(e,t){e(t)}function IG(e,t){e(null,t)}});var Gx=F(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var NG=require("stream"),$G=_p(),Dp=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new $G.default(this._root,this._settings),this._stream=new NG.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Lp.default=Dp});var Ux=F(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var MG=jc(),qc=Bc(),jG=xp(),kp=class extends jG.default{constructor(){super(...arguments),this._scandir=MG.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(qc.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=qc.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),qc.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&qc.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Tp.default=kp});var Hx=F(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var BG=Ux(),Ip=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new BG.default(this._root,this._settings)}read(){return this._reader.read()}};Np.default=Ip});var zx=F(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});var WG=require("path"),qG=jc(),$p=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,WG.sep),this.fsScandirSettings=new qG.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Mp.default=$p});var Uc=F(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Settings=Xr.walkStream=Xr.walkSync=Xr.walk=void 0;var Yx=qx(),GG=Gx(),UG=Hx(),jp=zx();Xr.Settings=jp.default;function HG(e,t,r){if(typeof t=="function"){new Yx.default(e,Gc()).read(t);return}new Yx.default(e,Gc(t)).read(r)}Xr.walk=HG;function zG(e,t){let r=Gc(t);return new UG.default(e,r).read()}Xr.walkSync=zG;function YG(e,t){let r=Gc(t);return new GG.default(e,r).read()}Xr.walkStream=YG;function Gc(e={}){return e instanceof jp.default?e:new jp.default(e)}});var Hc=F(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var VG=require("path"),KG=Ri(),Vx=pn(),Bp=class{constructor(t){this._settings=t,this._fsStatSettings=new KG.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return VG.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Vx.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Vx.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Wp.default=Bp});var Up=F(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var XG=require("stream"),JG=Ri(),QG=Uc(),ZG=Hc(),qp=class extends ZG.default{constructor(){super(...arguments),this._walkStream=QG.walkStream,this._stat=JG.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new XG.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Gp.default=qp});var Kx=F(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var eU=Uc(),tU=Hc(),rU=Up(),Hp=class extends tU.default{constructor(){super(...arguments),this._walkAsync=eU.walk,this._readerStream=new rU.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};zp.default=Hp});var Xx=F(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var na=pn(),Yp=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:t,segments:r,sections:n})}}_getPatternSegments(t){return na.pattern.getPatternParts(t,this._micromatchOptions).map(n=>na.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:na.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return na.array.splitWhen(t,r=>r.dynamic&&na.pattern.hasGlobStar(r.pattern))}};Vp.default=Yp});var Jx=F(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var nU=Xx(),Kp=class extends nU.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((u,c)=>{let f=s.segments[c];return!!(f.dynamic&&f.patternRe.test(u)||!f.dynamic&&f.pattern===u)}))return!0}return!1}};Xp.default=Kp});var Qx=F(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var zc=pn(),iU=Jx(),Jp=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new iU.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(zc.pattern.isAffectDepthOfReadingPattern);return zc.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=zc.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!zc.pattern.matchAny(t,r)}};Qp.default=Jp});var Zx=F(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});var zn=pn(),Zp=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let[n,i]=zn.pattern.partitionAbsoluteAndRelative(r),s={positive:{all:zn.pattern.convertPatternsToRe(t,this._micromatchOptions)},negative:{absolute:zn.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:zn.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o=>this._filter(o,s)}_filter(t,r){let n=zn.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t))return!1;let i=this._isMatchToPatternsSet(n,r,t.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(n),i}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isMatchToPatternsSet(t,r,n){return!(!this._isMatchToPatterns(t,r.positive.all,n)||this._isMatchToPatterns(t,r.negative.relative,n)||this._isMatchToAbsoluteNegative(t,r.negative.absolute,n))}_isMatchToAbsoluteNegative(t,r,n){if(r.length===0)return!1;let i=zn.path.makeAbsolute(this._settings.cwd,t);return this._isMatchToPatterns(i,r,n)}_isMatchToPatterns(t,r,n){if(r.length===0)return!1;let i=zn.pattern.matchAny(t,r);return!i&&n?zn.pattern.matchAny(t+"/",r):i}};eg.default=Zp});var eO=F(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});var sU=pn(),tg=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return sU.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};rg.default=tg});var rO=F(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});var tO=pn(),ng=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=tO.path.makeAbsolute(this._settings.cwd,r),r=tO.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};ig.default=ng});var Yc=F(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});var oU=require("path"),aU=Qx(),uU=Zx(),cU=eO(),lU=rO(),sg=class{constructor(t){this._settings=t,this.errorFilter=new cU.default(this._settings),this.entryFilter=new uU.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new aU.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new lU.default(this._settings)}_getRootDirectory(t){return oU.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};og.default=sg});var nO=F(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});var fU=Kx(),hU=Yc(),ag=class extends hU.default{constructor(){super(...arguments),this._reader=new fU.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};ug.default=ag});var iO=F(lg=>{"use strict";Object.defineProperty(lg,"__esModule",{value:!0});var dU=require("stream"),pU=Up(),gU=Yc(),cg=class extends gU.default{constructor(){super(...arguments),this._reader=new pU.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new dU.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};lg.default=cg});var sO=F(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});var mU=Ri(),yU=Uc(),vU=Hc(),fg=class extends vU.default{constructor(){super(...arguments),this._walkSync=yU.walkSync,this._statSync=mU.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};hg.default=fg});var oO=F(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});var AU=sO(),EU=Yc(),dg=class extends EU.default{constructor(){super(...arguments),this._reader=new AU.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};pg.default=dg});var aO=F(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var bs=require("fs"),bU=require("os"),wU=Math.max(bU.cpus().length,1);ws.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:bs.lstat,lstatSync:bs.lstatSync,stat:bs.stat,statSync:bs.statSync,readdir:bs.readdir,readdirSync:bs.readdirSync};var gg=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,wU),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},ws.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};ws.default=gg});var lO=F((mJ,cO)=>{"use strict";var uO=cx(),SU=nO(),CU=iO(),xU=oO(),mg=aO(),wr=pn();async function yg(e,t){Ir(e);let r=vg(e,SU.default,t),n=await Promise.all(r);return wr.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(c,f){Ir(c);let l=vg(c,xU.default,f);return wr.array.flatten(l)}e.sync=t;function r(c,f){Ir(c);let l=vg(c,CU.default,f);return wr.stream.merge(l)}e.stream=r;function n(c,f){Ir(c);let l=[].concat(c),h=new mg.default(f);return uO.generate(l,h)}e.generateTasks=n;function i(c,f){Ir(c);let l=new mg.default(f);return wr.pattern.isDynamicPattern(c,l)}e.isDynamicPattern=i;function s(c){return Ir(c),wr.path.escape(c)}e.escapePath=s;function o(c){return Ir(c),wr.path.convertPathToPattern(c)}e.convertPathToPattern=o;let a;(function(c){function f(h){return Ir(h),wr.path.escapePosixPath(h)}c.escapePath=f;function l(h){return Ir(h),wr.path.convertPosixPathToPattern(h)}c.convertPathToPattern=l})(a=e.posix||(e.posix={}));let u;(function(c){function f(h){return Ir(h),wr.path.escapeWindowsPath(h)}c.escapePath=f;function l(h){return Ir(h),wr.path.convertWindowsPathToPattern(h)}c.convertPathToPattern=l})(u=e.win32||(e.win32={}))})(yg||(yg={}));function vg(e,t,r){let n=[].concat(e),i=new mg.default(r),s=uO.generate(n,i),o=new t(i);return s.map(o.read,o)}function Ir(e){if(![].concat(e).every(n=>wr.string.isString(n)&&!wr.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}cO.exports=yg});var Kc=F(Vn=>{"use strict";var fO=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.getPackagePathsAsync=Vn.getPackagePaths=void 0;var Vc=fO(require("path")),hO=fO(lO()),dO=ls(),Yn={},pO={absolute:!0,ignore:["**/node_modules/**","**/__fixtures__/**"],stats:!1};function OU(e,t){return(0,dO.isCachingEnabled)()&&Yn[e]||(Yn[e]=hO.default.sync(gO(t),{cwd:e,...pO}).map(mO)),Yn[e]}Vn.getPackagePaths=OU;async function PU(e,t){return(0,dO.isCachingEnabled)()&&Yn[e]||(Yn[e]=(await(0,hO.default)(gO(t),{cwd:e,...pO})).map(mO)),Yn[e]}Vn.getPackagePathsAsync=PU;function gO(e){return e.map(t=>Vc.default.join(t,"package.json").replace(/\\/g,"/"))}function mO(e){let t=Vc.default.dirname(e);return Vc.default.sep==="/"?t:t.replace(/\//g,Vc.default.sep)}});var ia=F(Kn=>{"use strict";var Ag=Kn&&Kn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kn,"__esModule",{value:!0});Kn.getWorkspacePackageInfoAsync=Kn.getWorkspacePackageInfo=void 0;var yO=Ag(require("path")),_U=Ag(require("fs")),RU=Ag(require("fs/promises")),vO=Oi(),AO=Rd();function FU(e){return e?e.map(t=>{let r,n=yO.default.join(t,"package.json");try{r=JSON.parse(_U.default.readFileSync(n,"utf-8"))}catch(i){return(0,vO.logVerboseWarning)(`Error reading or parsing ${n} while getting workspace package info`,i),null}return{name:r.name,path:t,packageJson:(0,AO.infoFromPackageJson)(r,n)}}).filter(Boolean):[]}Kn.getWorkspacePackageInfo=FU;async function DU(e){if(!e)return[];let t=e.map(async r=>{let n=yO.default.join(r,"package.json");try{let i=JSON.parse(await RU.default.readFile(n,"utf-8"));return{name:i.name,path:r,packageJson:(0,AO.infoFromPackageJson)(i,n)}}catch(i){return(0,vO.logVerboseWarning)(`Error reading or parsing ${n} while getting workspace package info`,i),null}});return(await Promise.all(t)).filter(Boolean)}Kn.getWorkspacePackageInfoAsync=DU});var Eg=F(Sr=>{"use strict";var EO=Sr&&Sr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sr,"__esModule",{value:!0});Sr.getWorkspaceInfoFromWorkspaceRootAsync=Sr.getWorkspaceInfoFromWorkspaceRoot=Sr.getPackagePathsFromWorkspaceRootAsync=Sr.getPackagePathsFromWorkspaceRoot=void 0;var LU=EO(require("fs")),kU=EO(require("path")),bO=Kc(),wO=ia(),Xc=Oi();function SO(e){let t=kU.default.join(e,"package.json"),r;try{r=JSON.parse(LU.default.readFileSync(t,"utf-8"))}catch{throw new Error("Could not load package.json from workspaces root")}let{workspaces:n}=r;if(Array.isArray(n))return n;if(!n?.packages)throw new Error("Could not find a workspaces object in package.json (expected if this is not a monorepo)");return n.packages}function CO(e){try{let t=SO(e);return t?(0,bO.getPackagePaths)(e,t):[]}catch(t){return(0,Xc.logVerboseWarning)(`Error getting package paths for ${e}`,t),[]}}Sr.getPackagePathsFromWorkspaceRoot=CO;async function xO(e){try{let t=SO(e);return t?(0,bO.getPackagePathsAsync)(e,t):[]}catch(t){return(0,Xc.logVerboseWarning)(`Error getting package paths for ${e}`,t),[]}}Sr.getPackagePathsFromWorkspaceRootAsync=xO;function TU(e){try{let t=CO(e);return(0,wO.getWorkspacePackageInfo)(t)}catch(t){return(0,Xc.logVerboseWarning)(`Error getting workspace info for ${e}`,t),[]}}Sr.getWorkspaceInfoFromWorkspaceRoot=TU;async function IU(e){try{let t=await xO(e);return(0,wO.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,Xc.logVerboseWarning)(`Error getting workspace info for ${e}`,t),[]}}Sr.getWorkspaceInfoFromWorkspaceRootAsync=IU});var bg=F(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.getWorkspacesAsync=Et.getWorkspaces=Et.getYarnWorkspacesAsync=Et.getYarnWorkspaces=Et.getWorkspacePackagePathsAsync=Et.getWorkspacePackagePaths=Et.getYarnWorkspaceRoot=void 0;var NU=fs(),Jc=Eg();function sa(e){let t=(0,NU.getWorkspaceManagerAndRoot)(e,void 0,"yarn")?.root;if(!t)throw new Error("Could not find yarn workspace root from "+e);return t}Et.getYarnWorkspaceRoot=sa;function $U(e){let t=sa(e);return(0,Jc.getPackagePathsFromWorkspaceRoot)(t)}Et.getWorkspacePackagePaths=$U;function MU(e){let t=sa(e);return(0,Jc.getPackagePathsFromWorkspaceRootAsync)(t)}Et.getWorkspacePackagePathsAsync=MU;function OO(e){let t=sa(e);return(0,Jc.getWorkspaceInfoFromWorkspaceRoot)(t)}Et.getYarnWorkspaces=OO;Et.getWorkspaces=OO;function PO(e){let t=sa(e);return(0,Jc.getWorkspaceInfoFromWorkspaceRootAsync)(t)}Et.getYarnWorkspacesAsync=PO;Et.getWorkspacesAsync=PO});var Ss=F((bJ,Fi)=>{"use strict";function _O(e){return typeof e>"u"||e===null}function jU(e){return typeof e=="object"&&e!==null}function BU(e){return Array.isArray(e)?e:_O(e)?[]:[e]}function WU(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 qU(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function GU(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Fi.exports.isNothing=_O;Fi.exports.isObject=jU;Fi.exports.toArray=BU;Fi.exports.repeat=qU;Fi.exports.isNegativeZero=GU;Fi.exports.extend=WU});var Cs=F((wJ,FO)=>{"use strict";function RO(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
26
+ ${r.stderr?.toString().trimEnd()}`)}Bt.gitFailFast=SB;function CB(e,t){return e.success?e.stdout.split(/\n/).map(r=>r.trim()).filter(r=>!!r&&(!t?.excludeNodeModules||!r.includes("node_modules"))):[]}Bt.processGitOutput=CB});var Md=F(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.getConfigValue=void 0;var xB=ps();function PB(e){let{key:t,...r}=e,n=(0,xB.git)(["config",t],r);return n.success?n.stdout.trim():null}yc.getConfigValue=PB});var jd=F((CJ,i1)=>{"use strict";i1.exports=function(t,r){r===!0&&(r=0);var n="";if(typeof t=="string")try{n=new URL(t).protocol}catch{}else t&&t.constructor===URL&&(n=t.protocol);var i=n.split(/\:|\+/).filter(Boolean);return typeof r=="number"?i[r]:i}});var o1=F((xJ,s1)=>{"use strict";var OB=jd();function _B(e){var t={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:e,query:{},parse_failed:!1};try{var r=new URL(e);t.protocols=OB(r),t.protocol=t.protocols[0],t.port=r.port,t.resource=r.hostname,t.host=r.host,t.user=r.username||"",t.password=r.password||"",t.pathname=r.pathname,t.hash=r.hash.slice(1),t.search=r.search.slice(1),t.href=r.href,t.query=Object.fromEntries(r.searchParams)}catch{t.protocols=["file"],t.protocol=t.protocols[0],t.port="",t.resource="",t.user="",t.pathname="",t.hash="",t.search="",t.href=e,t.query={},t.parse_failed=!0}return t}s1.exports=_B});var h1=F((PJ,f1)=>{"use strict";var RB=o1();function FB(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var kB=FB(RB);function DB(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(t,i);return new s}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var u1={},LB="text/plain",TB="us-ascii",a1=(e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),IB=(e,{stripHash:t})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=t?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),f=[...o.map(l=>{let[h,d=""]=l.split("=").map(p=>p.trim());return h==="charset"&&(d=d.toLowerCase(),d===TB)?"":`${h}${d?`=${d}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length>0||u&&u!==LB)&&f.unshift(u),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`};function NB(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return IB(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let i=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),t.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),t.stripAuthentication&&(i.username="",i.password=""),t.stripHash?i.hash="":t.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname){let o=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,a=0,u="";for(;;){let f=o.exec(i.pathname);if(!f)break;let l=f[0],h=f.index,d=i.pathname.slice(a,h);u+=d.replace(/\/{2,}/g,"/"),u+=l,a=h+l.length}let c=i.pathname.slice(a,i.pathname.length);u+=c.replace(/\/{2,}/g,"/"),i.pathname=u}if(i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];a1(a,t.removeDirectoryIndex)&&(o=o.slice(0,-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let o of[...i.searchParams.keys()])a1(o,t.removeQueryParameters)&&i.searchParams.delete(o);if(t.removeQueryParameters===!0&&(i.search=""),t.sortQueryParameters){i.searchParams.sort();try{i.search=decodeURIComponent(i.search)}catch{}}t.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=e;return e=i.toString(),!t.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}var $B=Object.freeze({__proto__:null,default:NB}),MB=DB($B);Object.defineProperty(u1,"__esModule",{value:!0});var jB=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BB=MB,WB=c1(BB),qB=kB.default,GB=c1(qB);function c1(e){return e&&e.__esModule?e:{default:e}}var l1=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=/^(?:([a-zA-Z_][a-zA-Z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:](([\~,\.\w,\-,\_,\/,\s]|%[0-9A-Fa-f]{2})+?(?:\.git|\/)?)$/,i=function(u){var c=new Error(u);throw c.subject_url=t,c};(typeof t!="string"||!t.trim())&&i("Invalid url."),t.length>e.MAX_INPUT_LENGTH&&i("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),r&&((typeof r>"u"?"undefined":jB(r))!=="object"&&(r={stripHash:!1}),t=(0,WB.default)(t,r));var s=(0,GB.default)(t);if(s.parse_failed){var o=s.href.match(n);o?(s.protocols=["ssh"],s.protocol="ssh",s.resource=o[2],s.host=o[2],s.user=o[1],s.pathname="/"+o[3],s.parse_failed=!1):i("URL parsing failed.")}return s};l1.MAX_INPUT_LENGTH=2048;var UB=u1.default=l1;f1.exports=UB});var g1=F((OJ,p1)=>{"use strict";var HB=jd();function d1(e){if(Array.isArray(e))return e.indexOf("ssh")!==-1||e.indexOf("rsync")!==-1;if(typeof e!="string")return!1;var t=HB(e);if(e=e.substring(e.indexOf("://")+3),d1(t))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!e.match(r)&&e.indexOf("@")<e.indexOf(":")}p1.exports=d1});var v1=F((_J,y1)=>{"use strict";var zB=h1(),m1=g1();function YB(e){let t=zB(e);return t.token="",t.password==="x-oauth-basic"?t.token=t.user:t.user==="x-token-auth"&&(t.token=t.password),m1(t.protocols)||t.protocols.length===0&&m1(e)?t.protocol="ssh":t.protocols.length?t.protocol=t.protocols[0]:(t.protocol="file",t.protocols=["file"]),t.href=t.href.replace(/\/$/,""),t}y1.exports=YB});var E1=F((RJ,A1)=>{"use strict";var VB=v1();function Bd(e,t){if(t=t||[],typeof e!="string")throw new Error("The url must be a string.");if(!t.every(function(S){return typeof S=="string"}))throw new Error("The refs should contain only strings");var r=/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i;r.test(e)&&(e="https://github.com/"+e);var n=VB(e),i=n.resource.split("."),s=null;switch(n.toString=function(S){return Bd.stringify(this,S)},n.source=i.length>2?i.slice(1-i.length).join("."):n.source=n.resource,n.git_suffix=/\.git$/.test(n.pathname),n.name=decodeURIComponent((n.pathname||n.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),n.owner=decodeURIComponent(n.user),n.source){case"git.cloudforge.com":n.owner=n.user,n.organization=i[0],n.source="cloudforge.com";break;case"visualstudio.com":if(n.resource==="vs-ssh.visualstudio.com"){s=n.name.split("/"),s.length===4&&(n.organization=s[1],n.owner=s[2],n.name=s[3],n.full_name=s[2]+"/"+s[3]);break}else{s=n.name.split("/"),s.length===2?(n.owner=s[1],n.name=s[1],n.full_name="_git/"+n.name):s.length===3?(n.name=s[2],s[0]==="DefaultCollection"?(n.owner=s[2],n.organization=s[0],n.full_name=n.organization+"/_git/"+n.name):(n.owner=s[0],n.full_name=n.owner+"/_git/"+n.name)):s.length===4&&(n.organization=s[0],n.owner=s[1],n.name=s[3],n.full_name=n.organization+"/"+n.owner+"/_git/"+n.name);break}case"dev.azure.com":case"azure.com":if(n.resource==="ssh.dev.azure.com"){s=n.name.split("/"),s.length===4&&(n.organization=s[1],n.owner=s[2],n.name=s[3]);break}else{s=n.name.split("/"),s.length===5?(n.organization=s[0],n.owner=s[1],n.name=s[4],n.full_name="_git/"+n.name):s.length===3?(n.name=s[2],s[0]==="DefaultCollection"?(n.owner=s[2],n.organization=s[0],n.full_name=n.organization+"/_git/"+n.name):(n.owner=s[0],n.full_name=n.owner+"/_git/"+n.name)):s.length===4&&(n.organization=s[0],n.owner=s[1],n.name=s[3],n.full_name=n.organization+"/"+n.owner+"/_git/"+n.name),n.query&&n.query.path&&(n.filepath=n.query.path.replace(/^\/+/g,"")),n.query&&n.query.version&&(n.ref=n.query.version.replace(/^GB/,""));break}default:s=n.name.split("/");var o=s.length-1;if(s.length>=2){var a=s.indexOf("-",2),u=s.indexOf("blob",2),c=s.indexOf("tree",2),f=s.indexOf("commit",2),l=s.indexOf("issues",2),h=s.indexOf("src",2),d=s.indexOf("raw",2),p=s.indexOf("edit",2);o=a>0?a-1:u>0&&c>0?Math.min(u-1,c-1):u>0?u-1:l>0?l-1:c>0?c-1:f>0?f-1:h>0?h-1:d>0?d-1:p>0?p-1:o,n.owner=s.slice(0,o).join("/"),n.name=s[o],f&&l<0&&(n.commit=s[o+2])}n.ref="",n.filepathtype="",n.filepath="";var y=s.length>o&&s[o+1]==="-"?o+1:o;s.length>y+2&&["raw","src","blob","tree","edit"].indexOf(s[y+1])>=0&&(n.filepathtype=s[y+1],n.ref=s[y+2],s.length>y+3&&(n.filepath=s.slice(y+3).join("/"))),n.organization=n.owner;break}n.full_name||(n.full_name=n.owner,n.name&&(n.full_name&&(n.full_name+="/"),n.full_name+=n.name)),n.owner.startsWith("scm/")&&(n.source="bitbucket-server",n.owner=n.owner.replace("scm/",""),n.organization=n.owner,n.full_name=n.owner+"/"+n.name);var m=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/,P=m.exec(n.pathname);return P!=null&&(n.source="bitbucket-server",P[1]==="users"?n.owner="~"+P[2]:n.owner=P[2],n.organization=n.owner,n.name=P[3],s=P[4].split("/"),s.length>1&&(["raw","browse"].indexOf(s[1])>=0?(n.filepathtype=s[1],s.length>2&&(n.filepath=s.slice(2).join("/"))):s[1]==="commits"&&s.length>2&&(n.commit=s[2])),n.full_name=n.owner+"/"+n.name,n.query.at?n.ref=n.query.at:n.ref=""),t.length!==0&&n.ref&&(n.ref=XB(n.href,t)||n.ref,n.filepath=n.href.split(n.ref+"/")[1]),n}Bd.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var r=e.port?":"+e.port:"",n=e.user||"git",i=e.git_suffix?".git":"";switch(t){case"ssh":return r?"ssh://"+n+"@"+e.resource+r+"/"+e.full_name+i:n+"@"+e.resource+":"+e.full_name+i;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+n+"@"+e.resource+r+"/"+e.full_name+i;case"http":case"https":var s=e.token?KB(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"";return t+"://"+s+e.resource+r+"/"+JB(e)+i;default:return e.href}};function KB(e){switch(e.source){case"bitbucket.org":return"x-token-auth:"+e.token+"@";default:return e.token+"@"}}function JB(e){switch(e.source){case"bitbucket-server":return"scm/"+e.full_name;default:var t=e.full_name.split("/").map(function(r){return encodeURIComponent(r)}).join("/");return t}}function XB(e,t){var r="";return t.forEach(function(n){e.includes(n)&&n.length>r.length&&(r=n)}),r}A1.exports=Bd});var b1=F(gs=>{"use strict";var QB=gs&&gs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gs,"__esModule",{value:!0});gs.getRepositoryName=void 0;var ZB=QB(E1());function e3(e){try{let t=(0,ZB.default)(e.replace("/_optimized/","/").replace("/DefaultCollection/","/")),r=t.host||"",n=r.endsWith(".visualstudio.com");if(!n&&r!=="dev.azure.com"&&r!=="ssh.dev.azure.com")return t.full_name;let i=t.full_name.match(/(vs-ssh\.visualstudio\.com|ssh\.dev\.azure\.com):v\d+\/([^/]+)\/([^/]+)/);if(i)return`${i[2]}/${i[3]}/${t.name}`;let s=t.organization;return!s&&n&&(s=r.match(/([^.@]+)\.visualstudio\.com$/)?.[1]),`${s}/${t.owner}/${t.name}`}catch{return""}}gs.getRepositoryName=e3});var Wd=F(ms=>{"use strict";var S1=ms&&ms.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ms,"__esModule",{value:!0});ms.getDefaultRemote=void 0;var t3=S1(require("fs")),r3=S1(require("path")),n3=Qo(),w1=b1(),i3=ps();function s3(e){let t=typeof e=="string"?{cwd:e}:e,{cwd:r,strict:n,verbose:i}=t,s=P=>i&&console.log(P),o=P=>{if(n)throw new Error(P);s(P)},a=(0,n3.findGitRoot)(r),u={},c=r3.default.join(a,"package.json");try{u=JSON.parse(t3.default.readFileSync(c,"utf8").trim())}catch{o(`Could not read "${c}"`)}let{repository:f}=u,l=typeof f=="string"?f:f&&f.url||"";l||console.log(`Valid "repository" key not found in "${c}". Consider adding this info for more accurate git remote detection.`);let h=(0,w1.getRepositoryName)(l),d=(0,i3.git)(["remote","-v"],{cwd:r});d.success||o(`Could not determine available git remotes under "${r}"`);let p={};if(d.stdout.split(`
27
+ `).forEach(P=>{let[S,L]=P.split(/\s+/),O=(0,w1.getRepositoryName)(L);O&&(p[O]=S)}),h){if(p[h])return p[h];o(`Could not find remote pointing to repository "${h}".`)}let y=Object.values(p),m=["upstream","origin",...y];for(let P of m)if(y.includes(P))return s(`Default to remote "${P}"`),P;return o(`Could not find any remotes in git repo at "${a}".`),s('Assuming default remote "origin".'),"origin"}ms.getDefaultRemote=s3});var Hd=F(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.listAllTrackedFiles=Ee.getDefaultBranch=Ee.parseRemoteBranch=Ee.getRemoteBranch=Ee.getParentBranch=Ee.revertLocalChanges=Ee.stageAndCommit=Ee.commit=Ee.stage=Ee.init=Ee.getFileAddedHash=Ee.getCurrentHash=Ee.getShortBranchName=Ee.getFullBranchRef=Ee.getBranchName=Ee.getUserEmail=Ee.getRecentCommitMessages=Ee.getStagedChanges=Ee.getChangesBetweenRefs=Ee.getBranchChanges=Ee.getChanges=Ee.getUnstagedChanges=Ee.fetchRemoteBranch=Ee.fetchRemote=Ee.getUntrackedChanges=void 0;var qd=Md(),Te=ps(),Gd=["--no-pager","diff","--name-only","--relative"];function o3(e){let t=typeof e=="string"?{cwd:e}:e,r=(0,Te.git)(["ls-files","--others","--exclude-standard"],{description:"Gathering information about untracked changes",throwOnError:!0,...t});return(0,Te.processGitOutput)(r,{excludeNodeModules:!0})}Ee.getUntrackedChanges=o3;function C1(e,t){let{remote:r,remoteBranch:n,options:i,...s}=typeof e=="string"?{remote:e,cwd:t}:e;if(n&&!r)throw new Error('Must provide "remote" when using "remoteBranch" option');let o=["fetch","--",...r?[r]:[],...n?[n]:[],...i||[]];(0,Te.git)(o,{description:r?`Fetching ${n?`branch "${n}" from `:""}remote "${r}"`:"Fetching all remotes",throwOnError:!0,...s})}Ee.fetchRemote=C1;function a3(e,t,r){C1({remote:e,remoteBranch:t,cwd:r,throwOnError:!0})}Ee.fetchRemoteBranch=a3;function u3(e){let t=typeof e=="string"?{cwd:e}:e,r=(0,Te.git)(Gd,{description:"Gathering information about unstaged changes",throwOnError:!0,...t});return(0,Te.processGitOutput)(r,{excludeNodeModules:!0})}Ee.getUnstagedChanges=u3;function c3(e,t){return Ud({fromRef:e,cwd:t,throwOnError:!0})}Ee.getChanges=c3;function l3(e,t){let{branch:r,...n}=typeof e=="string"?{branch:e,cwd:t}:e;return Ud({fromRef:r,throwOnError:!0,...n})}Ee.getBranchChanges=l3;function Ud(e,t,r,n,i){let s;typeof e=="string"?s={cwd:i}:{fromRef:e,toRef:t,options:r,pattern:n,...s}=e;let o=`${e}...${t||""}`,a=(0,Te.git)([...Gd,...r||[],o,...n?["--",n]:[]],{description:`Gathering information about changes between refs (${o})`,throwOnError:!0,...s});return(0,Te.processGitOutput)(a,{excludeNodeModules:!0})}Ee.getChangesBetweenRefs=Ud;function f3(e){let t=typeof e=="string"?{cwd:e}:e,r=(0,Te.git)([...Gd,"--staged"],{description:"Gathering information about staged changes",throwOnError:!0,...t});return(0,Te.processGitOutput)(r,{excludeNodeModules:!0})}Ee.getStagedChanges=f3;function h3(e,t){let{branch:r,...n}=typeof e=="string"?{branch:e,cwd:t}:e,i=(0,Te.git)(["log","--decorate","--pretty=format:%s",`${r}..HEAD`],{description:`Getting recent commit messages for branch "${r}"`,...n});return(0,Te.processGitOutput)(i)}Ee.getRecentCommitMessages=h3;function x1(e){let t=typeof e=="string"?{cwd:e}:e;return(0,qd.getConfigValue)({key:"user.email",...t})}Ee.getUserEmail=x1;function P1(e){let t=typeof e=="string"?{cwd:e}:e,r=(0,Te.git)(["rev-parse","--abbrev-ref","HEAD"],{description:"Getting current branch name",...t});return r.success?r.stdout:null}Ee.getBranchName=P1;function d3(e,t){let{branch:r,...n}=typeof e=="string"?{branch:e,cwd:t}:e,i=(0,Te.git)(["show-ref","--heads",r],n);return i.success?i.stdout.split(" ")[1]:null}Ee.getFullBranchRef=d3;function p3(e,t){let{fullBranchRef:r,...n}=typeof e=="string"?{fullBranchRef:e,cwd:t}:e,i=(0,Te.git)(["rev-parse","--abbrev-ref",r],n);return i.success&&i.stdout||null}Ee.getShortBranchName=p3;function g3(e){let t=typeof e=="string"?{cwd:e}:e,r=(0,Te.git)(["rev-parse","HEAD"],{description:"Getting current git hash",...t});return r.success?r.stdout:null}Ee.getCurrentHash=g3;function m3(e,t){let{filename:r,...n}=typeof e=="string"?{filename:e,cwd:t}:e,i=(0,Te.git)(["rev-list","--max-count=1","HEAD",r],n);return i.success?i.stdout.trim():void 0}Ee.getFileAddedHash=m3;function y3(e,t,r){let{email:n,username:i,...s}=typeof e=="string"?{cwd:e,email:t,username:r}:e;if((0,Te.git)(["init"],{...s,throwOnError:!0}),!(0,qd.getConfigValue)({key:"user.name",...s})){if(!i)throw new Error("must include a username when initializing git repo");(0,Te.git)(["config","user.name",i],s)}if(!x1(s)){if(!n)throw new Error("must include a email when initializing git repo");(0,Te.git)(["config","user.email",n],s)}}Ee.init=y3;function O1(e,t){let{patterns:r,...n}=Array.isArray(e)?{patterns:e,cwd:t}:e;for(let i of r)(0,Te.git)(["add",i],{...n,description:`Staging changes (git add ${i})`})}Ee.stage=O1;function _1(e,t,r){let{message:n,options:i,...s}=typeof e=="string"?{message:e,cwd:t,options:r}:e;(0,Te.git)(["commit","-m",n,...i||[]],{throwOnError:!0,description:"Committing changes",...s})}Ee.commit=_1;function v3(e,t,r,n){let i=Array.isArray(e)?{patterns:e,message:t,cwd:r,options:n}:e;O1(i),_1(i)}Ee.stageAndCommit=v3;function A3(e){let t=typeof e=="string"?{cwd:e}:e,r=`workspace-tools_${new Date().getTime()}`;if(!(0,Te.git)(["stash","push","-u","-m",r],t).success)return!1;let n=(0,Te.git)(["stash","list"],t);if(n.success){let i=n.stdout.split(/\n/).find(s=>s.includes(r))?.match(/^[^:]+/);if(i)return(0,Te.git)(["stash","drop",i[0]],t),!0}return!1}Ee.revertLocalChanges=A3;function E3(e){let t=P1({cwd:e});if(!t||t==="HEAD")return null;let r=(0,Te.git)(["show-branch","-a"],{cwd:e});if(r.success){let s=r.stdout.split(/\n/).find(o=>o.includes("*")&&!o.includes(t)&&!o.includes("publish_"))?.match(/\[(.*)\]/);return s?s[1]:null}return null}Ee.getParentBranch=E3;function b3(e,t){let r=typeof e=="string"?{branch:e,cwd:t}:e,n=(0,Te.git)(["rev-parse","--abbrev-ref","--symbolic-full-name",`${r.branch}@{u}`],r);return n.success?n.stdout.trim():null}Ee.getRemoteBranch=b3;function w3(e){if(typeof e=="string"){let s=e,o=s.indexOf("/",0);return{remote:s.substring(0,o),remoteBranch:s.substring(o+1)}}let{branch:t,knownRemotes:r=["origin","upstream"],...n}=e;if(!t.includes("/"))return{remote:"",remoteBranch:t};let i=r.find(s=>t.startsWith(`${s}/`));return i||(i=(0,Te.git)(["remote"],n).stdout.trim().split(/\n/).find(o=>t.startsWith(`${o}/`))),i?{remote:i,remoteBranch:t.slice(i.length+1)}:{remote:"",remoteBranch:t}}Ee.parseRemoteBranch=w3;function S3(e){let t=typeof e=="string"?{cwd:e}:e;return(0,qd.getConfigValue)({key:"init.defaultBranch",...t})||"master"}Ee.getDefaultBranch=S3;function C3(e,t){let{patterns:r,...n}=Array.isArray(e)?{patterns:e,cwd:t}:e,i=(0,Te.git)(["ls-files",...r],{throwOnError:!0,...n});return(0,Te.processGitOutput)(i)}Ee.listAllTrackedFiles=C3});var R1=F(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.getDefaultRemoteBranch=void 0;var x3=Wd(),P3=ps(),O3=Hd();function _3(...e){let[t,r]=e,n=typeof t=="string"?{branch:t,cwd:r}:t,{cwd:i,branch:s}=n,o=(0,x3.getDefaultRemote)(n);if(s)return`${o}/${s}`;let a=(0,P3.git)(["remote","show",o],{cwd:i}),u;return a.success&&(u=a.stdout.split(/\n/).find(c=>c.includes("HEAD branch"))?.replace(/^\s*HEAD branch:\s+/,"")),u||(u=(0,O3.getDefaultBranch)({cwd:i,throwOnError:n.strict})),`${o}/${u}`}vc.getDefaultRemoteBranch=_3});var Ac=F(Qe=>{"use strict";var R3=Qe&&Qe.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),zd=Qe&&Qe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&R3(t,e,r)};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.getConfigValue=Qe.gitFailFast=Qe.git=Qe.clearGitObservers=Qe.addGitObserver=Qe.GitError=void 0;var Zo=ps();Object.defineProperty(Qe,"GitError",{enumerable:!0,get:function(){return Zo.GitError}});Object.defineProperty(Qe,"addGitObserver",{enumerable:!0,get:function(){return Zo.addGitObserver}});Object.defineProperty(Qe,"clearGitObservers",{enumerable:!0,get:function(){return Zo.clearGitObservers}});Object.defineProperty(Qe,"git",{enumerable:!0,get:function(){return Zo.git}});Object.defineProperty(Qe,"gitFailFast",{enumerable:!0,get:function(){return Zo.gitFailFast}});var F3=Md();Object.defineProperty(Qe,"getConfigValue",{enumerable:!0,get:function(){return F3.getConfigValue}});zd(Wd(),Qe);zd(R1(),Qe);zd(Hd(),Qe)});var hn=F(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.logVerboseWarning=void 0;function k3(e,t){process.env.VERBOSE&&console.warn(`${e}${t?`:
28
+ `:""}`,t?.stack||t||"")}Ec.logVerboseWarning=k3});var Qo=F(Wt=>{"use strict";var k1=Wt&&Wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.isChildOf=Wt.findProjectRoot=Wt.findPackageRoot=Wt.findGitRoot=Wt.searchUp=void 0;var $n=k1(require("path")),D3=k1(require("fs")),L3=Nd(),T3=Ac(),F1=hn();function D1(e,t){let r=typeof e=="string"?[e]:e;t=$n.default.resolve(t);let n=$n.default.parse(t).root,i;for(;!i&&t!==n&&(i=r.find(s=>D3.default.existsSync($n.default.join(t,s))),!i);)t=$n.default.dirname(t);return i?$n.default.join(t,i):void 0}Wt.searchUp=D1;function L1(e){let t=(0,T3.git)(["rev-parse","--show-toplevel"],{cwd:e});if(!t.success)throw new Error(`Directory "${e}" is not in a git repository`);return $n.default.normalize(t.stdout)}Wt.findGitRoot=L1;function I3(e){let t=D1("package.json",e);return t&&$n.default.dirname(t)}Wt.findPackageRoot=I3;function N3(e){let t;try{t=(0,L3.getWorkspaceManagerRoot)(e)}catch(r){(0,F1.logVerboseWarning)(`Error getting workspace root for ${e}`,r)}return t||(0,F1.logVerboseWarning)(`Could not find workspace root for ${e}. Falling back to git root.`),t||L1(e)}Wt.findProjectRoot=N3;function $3(e,t){let r=$n.default.relative(e,t);return/^[.\/\\]+$/.test(r)}Wt.isChildOf=$3});var ys=F(Mn=>{"use strict";var M3=Mn&&Mn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.getWorkspaceManagerAndRoot=Mn.getPreferredWorkspaceManager=void 0;var T1=M3(require("path")),j3=Qo(),B3=fs(),W3=new Map,ea={lerna:"lerna.json",rush:"rush.json",yarn:"yarn.lock",pnpm:"pnpm-workspace.yaml",npm:"package-lock.json"};function I1(){let e=process.env.PREFERRED_WORKSPACE_MANAGER;return e&&ea[e]?e:void 0}Mn.getPreferredWorkspaceManager=I1;function q3(e,t,r){if(t=t||W3,(0,B3.isCachingEnabled)()&&t.has(e))return t.get(e);r=r||I1();let n=(0,j3.searchUp)(r&&ea[r]||Object.values(ea),e);if(n){let i=T1.default.basename(n);t.set(e,{manager:Object.keys(ea).find(s=>ea[s]===i),root:T1.default.dirname(n)})}else t.set(e,void 0);return t.get(e)}Mn.getWorkspaceManagerAndRoot=q3});var N1=F(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.splitWhen=vs.flatten=void 0;function G3(e){return e.reduce((t,r)=>[].concat(t,r),[])}vs.flatten=G3;function U3(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}vs.splitWhen=U3});var $1=F(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.isEnoentCodeError=void 0;function H3(e){return e.code==="ENOENT"}bc.isEnoentCodeError=H3});var M1=F(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.createDirentFromStats=void 0;var Yd=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function z3(e,t){return new Yd(e,t)}wc.createDirentFromStats=z3});var q1=F(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.convertPosixPathToPattern=rt.convertWindowsPathToPattern=rt.convertPathToPattern=rt.escapePosixPath=rt.escapeWindowsPath=rt.escape=rt.removeLeadingDotSegment=rt.makeAbsolute=rt.unixify=void 0;var Y3=require("os"),V3=require("path"),j1=Y3.platform()==="win32",K3=2,J3=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,X3=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Q3=/^\\\\([.?])/,Z3=/\\(?![!()+@[\]{}])/g;function eW(e){return e.replace(/\\/g,"/")}rt.unixify=eW;function tW(e,t){return V3.resolve(e,t)}rt.makeAbsolute=tW;function rW(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(K3)}return e}rt.removeLeadingDotSegment=rW;rt.escape=j1?Vd:Kd;function Vd(e){return e.replace(X3,"\\$2")}rt.escapeWindowsPath=Vd;function Kd(e){return e.replace(J3,"\\$2")}rt.escapePosixPath=Kd;rt.convertPathToPattern=j1?B1:W1;function B1(e){return Vd(e).replace(Q3,"//$1").replace(Z3,"/")}rt.convertWindowsPathToPattern=B1;function W1(e){return Kd(e)}rt.convertPosixPathToPattern=W1});var U1=F((qJ,G1)=>{G1.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Y1=F((GJ,z1)=>{var nW=U1(),H1={"{":"}","(":")","[":"]"},iW=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var u=H1[a];if(u){var c=e.indexOf(u,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},sW=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=H1[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};z1.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(nW(t))return!0;var n=iW;return r&&r.strict===!1&&(n=sW),n(t)}});var K1=F((UJ,V1)=>{"use strict";var oW=Y1(),aW=require("path").posix.dirname,uW=require("os").platform()==="win32",Jd="/",cW=/\\/g,lW=/[\{\[].*[\}\]]$/,fW=/(^|[^\\])([\{\[]|\([^\)]+$)/,hW=/\\([\!\*\?\|\[\]\(\)\{\}])/g;V1.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&uW&&t.indexOf(Jd)<0&&(t=t.replace(cW,Jd)),lW.test(t)&&(t+=Jd),t+="a";do t=aW(t);while(oW(t)||fW.test(t));return t.replace(hW,"$1")}});var Sc=F(Er=>{"use strict";Er.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Er.find=(e,t)=>e.nodes.find(r=>r.type===t);Er.exceedsLimit=(e,t,r=1,n)=>n===!1||!Er.isInteger(e)||!Er.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;Er.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Er.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;Er.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Er.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Er.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);Er.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var Cc=F((zJ,X1)=>{"use strict";var J1=Sc();X1.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&J1.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&J1.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var Z1=F((YJ,Q1)=>{"use strict";Q1.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var uC=F((VJ,aC)=>{"use strict";var eC=Z1(),_i=(e,t,r)=>{if(eC(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(eC(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+i+s+o+a;if(_i.cache.hasOwnProperty(u))return _i.cache[u].result;let c=Math.min(e,t),f=Math.max(e,t);if(Math.abs(c-f)===1){let y=e+"|"+t;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let l=oC(e)||oC(t),h={min:e,max:t,a:c,b:f},d=[],p=[];if(l&&(h.isPadded=l,h.maxLen=String(h.max).length),c<0){let y=f<0?Math.abs(f):1;p=tC(y,Math.abs(c),h,n),c=h.a=0}return f>=0&&(d=tC(c,f,h,n)),h.negatives=p,h.positives=d,h.result=dW(p,d,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&d.length+p.length>1&&(h.result=`(?:${h.result})`),_i.cache[u]=h,h.result};function dW(e,t,r){let n=Xd(e,t,"-",!1,r)||[],i=Xd(t,e,"",!1,r)||[],s=Xd(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function pW(e,t){let r=1,n=1,i=nC(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=nC(e,r);for(i=iC(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=iC(t+1,n)-1;return s=[...s],s.sort(yW),s}function gW(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=mW(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=vW(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function tC(e,t,r,n){let i=pW(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let c=i[u],f=gW(String(o),String(c),n),l="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+sC(a.count),o=c+1;continue}r.isPadded&&(l=AW(c,r,n)),f.string=l+f.pattern+sC(f.count),s.push(f),o=c+1,a=f}return s}function Xd(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!rC(t,"string",a)&&s.push(r+a),n&&rC(t,"string",a)&&s.push(r+a)}return s}function mW(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function yW(e,t){return e>t?1:t>e?-1:0}function rC(e,t,r){return e.some(n=>n[t]===r)}function nC(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function iC(e,t){return e-e%Math.pow(10,t)}function sC(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function vW(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function oC(e){return/^-?(0+)\d/.test(e)}function AW(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}_i.cache={};_i.clearCache=()=>_i.cache={};aC.exports=_i});var ep=F((KJ,gC)=>{"use strict";var EW=require("util"),lC=uC(),cC=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),bW=e=>t=>e===!0?Number(t):String(t),Qd=e=>typeof e=="number"||typeof e=="string"&&e!=="",ta=e=>Number.isInteger(+e),Zd=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},wW=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,SW=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Pc=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},CW=(e,t,r)=>{e.negatives.sort((a,u)=>a<u?-1:a>u?1:0),e.positives.sort((a,u)=>a<u?-1:a>u?1:0);let n=t.capture?"":"?:",i="",s="",o;return e.positives.length&&(i=e.positives.map(a=>Pc(String(a),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(a=>Pc(String(a),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,t.wrap?`(${n}${o})`:o},fC=(e,t,r,n)=>{if(r)return lC(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},hC=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return lC(e,t,r)},dC=(...e)=>new RangeError("Invalid range arguments: "+EW.inspect(...e)),pC=(e,t,r)=>{if(r.strictRanges===!0)throw dC([e,t]);return[]},xW=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},PW=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw dC([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let f=Zd(a)||Zd(u)||Zd(c),l=f?Math.max(a.length,u.length,c.length):0,h=f===!1&&wW(e,t,n)===!1,d=n.transform||bW(h);if(n.toRegex&&r===1)return fC(Pc(e,l),Pc(t,l),!0,n);let p={negatives:[],positives:[]},y=S=>p[S<0?"negatives":"positives"].push(Math.abs(S)),m=[],P=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?y(i):m.push(SW(d(i,P),l,h)),i=o?i-r:i+r,P++;return n.toRegex===!0?r>1?CW(p,n,l):hC(m,null,{wrap:!1,...n}):m},OW=(e,t,r=1,n={})=>{if(!ta(e)&&e.length>1||!ta(t)&&t.length>1)return pC(e,t,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return fC(u,c,!1,n);let f=[],l=0;for(;a?s>=o:s<=o;)f.push(i(s,l)),s=a?s-r:s+r,l++;return n.toRegex===!0?hC(f,null,{wrap:!1,options:n}):f},xc=(e,t,r,n={})=>{if(t==null&&Qd(e))return[e];if(!Qd(e)||!Qd(t))return pC(e,t,n);if(typeof r=="function")return xc(e,t,1,{transform:r});if(cC(r))return xc(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,ta(r)?ta(e)&&ta(t)?PW(e,t,r,i):OW(e,t,Math.max(Math.abs(r),1),i):r!=null&&!cC(r)?xW(r,i):xc(e,t,1,r)};gC.exports=xc});var vC=F((JJ,yC)=>{"use strict";var _W=ep(),mC=Sc(),RW=(e,t={})=>{let r=(n,i={})=>{let s=mC.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return u+n.value;if(n.isClose===!0)return console.log("node.isClose",u,n.value),u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=mC.reduce(n.nodes),l=_W(...f,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(l.length!==0)return f.length>1&&l.length>1?`(${l})`:l}if(n.nodes)for(let f of n.nodes)c+=r(f,n);return c};return r(e)};yC.exports=RW});var bC=F((XJ,EC)=>{"use strict";var FW=ep(),AC=Cc(),As=Sc(),Ri=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?As.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Ri(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Ri(i,s,r):i+s);return As.flatten(n)},kW=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(Ri(a.pop(),AC(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Ri(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let l=As.reduce(i.nodes);if(As.exceedsLimit(...l,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=FW(...l,t);h.length===0&&(h=AC(i,t)),a.push(Ri(a.pop(),h)),i.nodes=[];return}let u=As.encloseBrace(i),c=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,c=f.queue;for(let l=0;l<i.nodes.length;l++){let h=i.nodes[l];if(h.type==="comma"&&i.type==="brace"){l===1&&c.push(""),c.push("");continue}if(h.type==="close"){a.push(Ri(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(Ri(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return As.flatten(n(e))};EC.exports=kW});var SC=F((QJ,wC)=>{"use strict";wC.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
29
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var _C=F((ZJ,OC)=>{"use strict";var DW=Cc(),{MAX_LENGTH:CC,CHAR_BACKSLASH:tp,CHAR_BACKTICK:LW,CHAR_COMMA:TW,CHAR_DOT:IW,CHAR_LEFT_PARENTHESES:NW,CHAR_RIGHT_PARENTHESES:$W,CHAR_LEFT_CURLY_BRACE:MW,CHAR_RIGHT_CURLY_BRACE:jW,CHAR_LEFT_SQUARE_BRACKET:xC,CHAR_RIGHT_SQUARE_BRACKET:PC,CHAR_DOUBLE_QUOTE:BW,CHAR_SINGLE_QUOTE:WW,CHAR_NO_BREAK_SPACE:qW,CHAR_ZERO_WIDTH_NOBREAK_SPACE:GW}=SC(),UW=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(CC,r.maxLength):CC;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,u=0,c=e.length,f=0,l=0,h,d=()=>e[f++],p=y=>{if(y.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&y.type==="text"){a.value+=y.value;return}return o.nodes.push(y),y.parent=o,y.prev=a,a=y,y};for(p({type:"bos"});f<c;)if(o=s[s.length-1],h=d(),!(h===GW||h===qW)){if(h===tp){p({type:"text",value:(t.keepEscaping?h:"")+d()});continue}if(h===PC){p({type:"text",value:"\\"+h});continue}if(h===xC){u++;let y;for(;f<c&&(y=d());){if(h+=y,y===xC){u++;continue}if(y===tp){h+=d();continue}if(y===PC&&(u--,u===0))break}p({type:"text",value:h});continue}if(h===NW){o=p({type:"paren",nodes:[]}),s.push(o),p({type:"text",value:h});continue}if(h===$W){if(o.type!=="paren"){p({type:"text",value:h});continue}o=s.pop(),p({type:"text",value:h}),o=s[s.length-1];continue}if(h===BW||h===WW||h===LW){let y=h,m;for(t.keepQuotes!==!0&&(h="");f<c&&(m=d());){if(m===tp){h+=m+d();continue}if(m===y){t.keepQuotes===!0&&(h+=m);break}h+=m}p({type:"text",value:h});continue}if(h===MW){l++;let m={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:l,commas:0,ranges:0,nodes:[]};o=p(m),s.push(o),p({type:"open",value:h});continue}if(h===jW){if(o.type!=="brace"){p({type:"text",value:h});continue}let y="close";o=s.pop(),o.close=!0,p({type:y,value:h}),l--,o=s[s.length-1];continue}if(h===TW&&l>0){if(o.ranges>0){o.ranges=0;let y=o.nodes.shift();o.nodes=[y,{type:"text",value:DW(o)}]}p({type:"comma",value:h}),o.commas++;continue}if(h===IW&&l>0&&o.commas===0){let y=o.nodes;if(l===0||y.length===0){p({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){y.pop();let m=y[y.length-1];m.value+=a.value+h,a=m,o.ranges--;continue}p({type:"dot",value:h});continue}p({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});let y=s[s.length-1],m=y.nodes.indexOf(o);y.nodes.splice(m,1,...o.nodes)}while(s.length>0);return p({type:"eos"}),i};OC.exports=UW});var kC=F((eX,FC)=>{"use strict";var RC=Cc(),HW=vC(),zW=bC(),YW=_C(),sr=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=sr.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(sr.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};sr.parse=(e,t={})=>YW(e,t);sr.stringify=(e,t={})=>RC(typeof e=="string"?sr.parse(e,t):e,t);sr.compile=(e,t={})=>(typeof e=="string"&&(e=sr.parse(e,t)),HW(e,t));sr.expand=(e,t={})=>{typeof e=="string"&&(e=sr.parse(e,t));let r=zW(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};sr.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?sr.compile(e,t):sr.expand(e,t);FC.exports=sr});var ra=F((tX,NC)=>{"use strict";var VW=require("path"),zr="\\\\/",DC=`[^${zr}]`,dn="\\.",KW="\\+",JW="\\?",Oc="\\/",XW="(?=.)",LC="[^/]",rp=`(?:${Oc}|$)`,TC=`(?:^|${Oc})`,np=`${dn}{1,2}${rp}`,QW=`(?!${dn})`,ZW=`(?!${TC}${np})`,eq=`(?!${dn}{0,1}${rp})`,tq=`(?!${np})`,rq=`[^.${Oc}]`,nq=`${LC}*?`,IC={DOT_LITERAL:dn,PLUS_LITERAL:KW,QMARK_LITERAL:JW,SLASH_LITERAL:Oc,ONE_CHAR:XW,QMARK:LC,END_ANCHOR:rp,DOTS_SLASH:np,NO_DOT:QW,NO_DOTS:ZW,NO_DOT_SLASH:eq,NO_DOTS_SLASH:tq,QMARK_NO_DOT:rq,STAR:nq,START_ANCHOR:TC},iq={...IC,SLASH_LITERAL:`[${zr}]`,QMARK:DC,STAR:`${DC}*?`,DOTS_SLASH:`${dn}{1,2}(?:[${zr}]|$)`,NO_DOT:`(?!${dn})`,NO_DOTS:`(?!(?:^|[${zr}])${dn}{1,2}(?:[${zr}]|$))`,NO_DOT_SLASH:`(?!${dn}{0,1}(?:[${zr}]|$))`,NO_DOTS_SLASH:`(?!${dn}{1,2}(?:[${zr}]|$))`,QMARK_NO_DOT:`[^.${zr}]`,START_ANCHOR:`(?:^|[${zr}])`,END_ANCHOR:`(?:[${zr}]|$)`},sq={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};NC.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:sq,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:VW.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?iq:IC}}});var na=F(qt=>{"use strict";var oq=require("path"),aq=process.platform==="win32",{REGEX_BACKSLASH:uq,REGEX_REMOVE_BACKSLASH:cq,REGEX_SPECIAL_CHARS:lq,REGEX_SPECIAL_CHARS_GLOBAL:fq}=ra();qt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);qt.hasRegexChars=e=>lq.test(e);qt.isRegexChar=e=>e.length===1&&qt.hasRegexChars(e);qt.escapeRegex=e=>e.replace(fq,"\\$1");qt.toPosixSlashes=e=>e.replace(uq,"/");qt.removeBackslashes=e=>e.replace(cq,t=>t==="\\"?"":t);qt.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};qt.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:aq===!0||oq.sep==="\\";qt.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?qt.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};qt.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};qt.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var UC=F((nX,GC)=>{"use strict";var $C=na(),{CHAR_ASTERISK:ip,CHAR_AT:hq,CHAR_BACKWARD_SLASH:ia,CHAR_COMMA:dq,CHAR_DOT:sp,CHAR_EXCLAMATION_MARK:op,CHAR_FORWARD_SLASH:qC,CHAR_LEFT_CURLY_BRACE:ap,CHAR_LEFT_PARENTHESES:up,CHAR_LEFT_SQUARE_BRACKET:pq,CHAR_PLUS:gq,CHAR_QUESTION_MARK:MC,CHAR_RIGHT_CURLY_BRACE:mq,CHAR_RIGHT_PARENTHESES:jC,CHAR_RIGHT_SQUARE_BRACKET:yq}=ra(),BC=e=>e===qC||e===ia,WC=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},vq=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=e,c=-1,f=0,l=0,h=!1,d=!1,p=!1,y=!1,m=!1,P=!1,S=!1,L=!1,O=!1,b=!1,_=0,D,k,$={value:"",depth:0,isGlob:!1},x=()=>c>=n,g=()=>u.charCodeAt(c+1),v=()=>(D=k,u.charCodeAt(++c));for(;c<n;){k=v();let T;if(k===ia){S=$.backslashes=!0,k=v(),k===ap&&(P=!0);continue}if(P===!0||k===ap){for(_++;x()!==!0&&(k=v());){if(k===ia){S=$.backslashes=!0,v();continue}if(k===ap){_++;continue}if(P!==!0&&k===sp&&(k=v())===sp){if(h=$.isBrace=!0,p=$.isGlob=!0,b=!0,i===!0)continue;break}if(P!==!0&&k===dq){if(h=$.isBrace=!0,p=$.isGlob=!0,b=!0,i===!0)continue;break}if(k===mq&&(_--,_===0)){P=!1,h=$.isBrace=!0,b=!0;break}}if(i===!0)continue;break}if(k===qC){if(s.push(c),o.push($),$={value:"",depth:0,isGlob:!1},b===!0)continue;if(D===sp&&c===f+1){f+=2;continue}l=c+1;continue}if(r.noext!==!0&&(k===gq||k===hq||k===ip||k===MC||k===op)===!0&&g()===up){if(p=$.isGlob=!0,y=$.isExtglob=!0,b=!0,k===op&&c===f&&(O=!0),i===!0){for(;x()!==!0&&(k=v());){if(k===ia){S=$.backslashes=!0,k=v();continue}if(k===jC){p=$.isGlob=!0,b=!0;break}}continue}break}if(k===ip){if(D===ip&&(m=$.isGlobstar=!0),p=$.isGlob=!0,b=!0,i===!0)continue;break}if(k===MC){if(p=$.isGlob=!0,b=!0,i===!0)continue;break}if(k===pq){for(;x()!==!0&&(T=v());){if(T===ia){S=$.backslashes=!0,v();continue}if(T===yq){d=$.isBracket=!0,p=$.isGlob=!0,b=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&k===op&&c===f){L=$.negated=!0,f++;continue}if(r.noparen!==!0&&k===up){if(p=$.isGlob=!0,i===!0){for(;x()!==!0&&(k=v());){if(k===up){S=$.backslashes=!0,k=v();continue}if(k===jC){b=!0;break}}continue}break}if(p===!0){if(b=!0,i===!0)continue;break}}r.noext===!0&&(y=!1,p=!1);let A=u,C="",E="";f>0&&(C=u.slice(0,f),u=u.slice(f),l-=f),A&&p===!0&&l>0?(A=u.slice(0,l),E=u.slice(l)):p===!0?(A="",E=u):A=u,A&&A!==""&&A!=="/"&&A!==u&&BC(A.charCodeAt(A.length-1))&&(A=A.slice(0,-1)),r.unescape===!0&&(E&&(E=$C.removeBackslashes(E)),A&&S===!0&&(A=$C.removeBackslashes(A)));let w={prefix:C,input:e,start:f,base:A,glob:E,isBrace:h,isBracket:d,isGlob:p,isExtglob:y,isGlobstar:m,negated:L,negatedExtglob:O};if(r.tokens===!0&&(w.maxDepth=0,BC(k)||o.push($),w.tokens=o),r.parts===!0||r.tokens===!0){let T;for(let N=0;N<s.length;N++){let M=T?T+1:f,U=s[N],V=e.slice(M,U);r.tokens&&(N===0&&f!==0?(o[N].isPrefix=!0,o[N].value=C):o[N].value=V,WC(o[N]),w.maxDepth+=o[N].depth),(N!==0||V!=="")&&a.push(V),T=U}if(T&&T+1<e.length){let N=e.slice(T+1);a.push(N),r.tokens&&(o[o.length-1].value=N,WC(o[o.length-1]),w.maxDepth+=o[o.length-1].depth)}w.slashes=s,w.parts=a}return w};GC.exports=vq});var YC=F((iX,zC)=>{"use strict";var _c=ra(),or=na(),{MAX_LENGTH:Rc,POSIX_REGEX_SOURCE:Aq,REGEX_NON_SPECIAL_CHARS:Eq,REGEX_SPECIAL_CHARS_BACKREF:bq,REPLACEMENTS:HC}=_c,wq=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>or.escapeRegex(i)).join("..")}return r},Es=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,cp=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=HC[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Rc,r.maxLength):Rc,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=or.isWindows(t),c=_c.globChars(u),f=_c.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:h,SLASH_LITERAL:d,ONE_CHAR:p,DOTS_SLASH:y,NO_DOT:m,NO_DOT_SLASH:P,NO_DOTS_SLASH:S,QMARK:L,QMARK_NO_DOT:O,STAR:b,START_ANCHOR:_}=c,D=G=>`(${a}(?:(?!${_}${G.dot?y:l}).)*?)`,k=r.dot?"":m,$=r.dot?L:O,x=r.bash===!0?D(r):b;r.capture&&(x=`(${x})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let g={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=or.removePrefix(e,g),i=e.length;let v=[],A=[],C=[],E=s,w,T=()=>g.index===i-1,N=g.peek=(G=1)=>e[g.index+G],M=g.advance=()=>e[++g.index]||"",U=()=>e.slice(g.index+1),V=(G="",ne=0)=>{g.consumed+=G,g.index+=ne},J=G=>{g.output+=G.output!=null?G.output:G.value,V(G.value)},he=()=>{let G=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)M(),g.start++,G++;return G%2===0?!1:(g.negated=!0,g.start++,!0)},q=G=>{g[G]++,C.push(G)},H=G=>{g[G]--,C.pop()},W=G=>{if(E.type==="globstar"){let ne=g.braces>0&&(G.type==="comma"||G.type==="brace"),Y=G.extglob===!0||v.length&&(G.type==="pipe"||G.type==="paren");G.type!=="slash"&&G.type!=="paren"&&!ne&&!Y&&(g.output=g.output.slice(0,-E.output.length),E.type="star",E.value="*",E.output=x,g.output+=E.output)}if(v.length&&G.type!=="paren"&&(v[v.length-1].inner+=G.value),(G.value||G.output)&&J(G),E&&E.type==="text"&&G.type==="text"){E.value+=G.value,E.output=(E.output||"")+G.value;return}G.prev=E,o.push(G),E=G},Z=(G,ne)=>{let Y={...f[ne],conditions:1,inner:""};Y.prev=E,Y.parens=g.parens,Y.output=g.output;let ce=(r.capture?"(":"")+Y.open;q("parens"),W({type:G,value:ne,output:g.output?"":p}),W({type:"paren",extglob:!0,value:M(),output:ce}),v.push(Y)},ee=G=>{let ne=G.close+(r.capture?")":""),Y;if(G.type==="negate"){let ce=x;if(G.inner&&G.inner.length>1&&G.inner.includes("/")&&(ce=D(r)),(ce!==x||T()||/^\)+$/.test(U()))&&(ne=G.close=`)$))${ce}`),G.inner.includes("*")&&(Y=U())&&/^\.[^\\/.]+$/.test(Y)){let Ae=cp(Y,{...t,fastpaths:!1}).output;ne=G.close=`)${Ae})${ce})`}G.prev.type==="bos"&&(g.negatedExtglob=!0)}W({type:"paren",extglob:!0,value:w,output:ne}),H("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let G=!1,ne=e.replace(bq,(Y,ce,Ae,Fe,I,j)=>Fe==="\\"?(G=!0,Y):Fe==="?"?ce?ce+Fe+(I?L.repeat(I.length):""):j===0?$+(I?L.repeat(I.length):""):L.repeat(Ae.length):Fe==="."?l.repeat(Ae.length):Fe==="*"?ce?ce+Fe+(I?x:""):x:ce?Y:`\\${Y}`);return G===!0&&(r.unescape===!0?ne=ne.replace(/\\/g,""):ne=ne.replace(/\\+/g,Y=>Y.length%2===0?"\\\\":Y?"\\":"")),ne===e&&r.contains===!0?(g.output=e,g):(g.output=or.wrapOutput(ne,g,t),g)}for(;!T();){if(w=M(),w==="\0")continue;if(w==="\\"){let Y=N();if(Y==="/"&&r.bash!==!0||Y==="."||Y===";")continue;if(!Y){w+="\\",W({type:"text",value:w});continue}let ce=/^\\+/.exec(U()),Ae=0;if(ce&&ce[0].length>2&&(Ae=ce[0].length,g.index+=Ae,Ae%2!==0&&(w+="\\")),r.unescape===!0?w=M():w+=M(),g.brackets===0){W({type:"text",value:w});continue}}if(g.brackets>0&&(w!=="]"||E.value==="["||E.value==="[^")){if(r.posix!==!1&&w===":"){let Y=E.value.slice(1);if(Y.includes("[")&&(E.posix=!0,Y.includes(":"))){let ce=E.value.lastIndexOf("["),Ae=E.value.slice(0,ce),Fe=E.value.slice(ce+2),I=Aq[Fe];if(I){E.value=Ae+I,g.backtrack=!0,M(),!s.output&&o.indexOf(E)===1&&(s.output=p);continue}}}(w==="["&&N()!==":"||w==="-"&&N()==="]")&&(w=`\\${w}`),w==="]"&&(E.value==="["||E.value==="[^")&&(w=`\\${w}`),r.posix===!0&&w==="!"&&E.value==="["&&(w="^"),E.value+=w,J({value:w});continue}if(g.quotes===1&&w!=='"'){w=or.escapeRegex(w),E.value+=w,J({value:w});continue}if(w==='"'){g.quotes=g.quotes===1?0:1,r.keepQuotes===!0&&W({type:"text",value:w});continue}if(w==="("){q("parens"),W({type:"paren",value:w});continue}if(w===")"){if(g.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Es("opening","("));let Y=v[v.length-1];if(Y&&g.parens===Y.parens+1){ee(v.pop());continue}W({type:"paren",value:w,output:g.parens?")":"\\)"}),H("parens");continue}if(w==="["){if(r.nobracket===!0||!U().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Es("closing","]"));w=`\\${w}`}else q("brackets");W({type:"bracket",value:w});continue}if(w==="]"){if(r.nobracket===!0||E&&E.type==="bracket"&&E.value.length===1){W({type:"text",value:w,output:`\\${w}`});continue}if(g.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Es("opening","["));W({type:"text",value:w,output:`\\${w}`});continue}H("brackets");let Y=E.value.slice(1);if(E.posix!==!0&&Y[0]==="^"&&!Y.includes("/")&&(w=`/${w}`),E.value+=w,J({value:w}),r.literalBrackets===!1||or.hasRegexChars(Y))continue;let ce=or.escapeRegex(E.value);if(g.output=g.output.slice(0,-E.value.length),r.literalBrackets===!0){g.output+=ce,E.value=ce;continue}E.value=`(${a}${ce}|${E.value})`,g.output+=E.value;continue}if(w==="{"&&r.nobrace!==!0){q("braces");let Y={type:"brace",value:w,output:"(",outputIndex:g.output.length,tokensIndex:g.tokens.length};A.push(Y),W(Y);continue}if(w==="}"){let Y=A[A.length-1];if(r.nobrace===!0||!Y){W({type:"text",value:w,output:w});continue}let ce=")";if(Y.dots===!0){let Ae=o.slice(),Fe=[];for(let I=Ae.length-1;I>=0&&(o.pop(),Ae[I].type!=="brace");I--)Ae[I].type!=="dots"&&Fe.unshift(Ae[I].value);ce=wq(Fe,r),g.backtrack=!0}if(Y.comma!==!0&&Y.dots!==!0){let Ae=g.output.slice(0,Y.outputIndex),Fe=g.tokens.slice(Y.tokensIndex);Y.value=Y.output="\\{",w=ce="\\}",g.output=Ae;for(let I of Fe)g.output+=I.output||I.value}W({type:"brace",value:w,output:ce}),H("braces"),A.pop();continue}if(w==="|"){v.length>0&&v[v.length-1].conditions++,W({type:"text",value:w});continue}if(w===","){let Y=w,ce=A[A.length-1];ce&&C[C.length-1]==="braces"&&(ce.comma=!0,Y="|"),W({type:"comma",value:w,output:Y});continue}if(w==="/"){if(E.type==="dot"&&g.index===g.start+1){g.start=g.index+1,g.consumed="",g.output="",o.pop(),E=s;continue}W({type:"slash",value:w,output:d});continue}if(w==="."){if(g.braces>0&&E.type==="dot"){E.value==="."&&(E.output=l);let Y=A[A.length-1];E.type="dots",E.output+=w,E.value+=w,Y.dots=!0;continue}if(g.braces+g.parens===0&&E.type!=="bos"&&E.type!=="slash"){W({type:"text",value:w,output:l});continue}W({type:"dot",value:w,output:l});continue}if(w==="?"){if(!(E&&E.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){Z("qmark",w);continue}if(E&&E.type==="paren"){let ce=N(),Ae=w;if(ce==="<"&&!or.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(E.value==="("&&!/[!=<:]/.test(ce)||ce==="<"&&!/<([!=]|\w+>)/.test(U()))&&(Ae=`\\${w}`),W({type:"text",value:w,output:Ae});continue}if(r.dot!==!0&&(E.type==="slash"||E.type==="bos")){W({type:"qmark",value:w,output:O});continue}W({type:"qmark",value:w,output:L});continue}if(w==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){Z("negate",w);continue}if(r.nonegate!==!0&&g.index===0){he();continue}}if(w==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){Z("plus",w);continue}if(E&&E.value==="("||r.regex===!1){W({type:"plus",value:w,output:h});continue}if(E&&(E.type==="bracket"||E.type==="paren"||E.type==="brace")||g.parens>0){W({type:"plus",value:w});continue}W({type:"plus",value:h});continue}if(w==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){W({type:"at",extglob:!0,value:w,output:""});continue}W({type:"text",value:w});continue}if(w!=="*"){(w==="$"||w==="^")&&(w=`\\${w}`);let Y=Eq.exec(U());Y&&(w+=Y[0],g.index+=Y[0].length),W({type:"text",value:w});continue}if(E&&(E.type==="globstar"||E.star===!0)){E.type="star",E.star=!0,E.value+=w,E.output=x,g.backtrack=!0,g.globstar=!0,V(w);continue}let G=U();if(r.noextglob!==!0&&/^\([^?]/.test(G)){Z("star",w);continue}if(E.type==="star"){if(r.noglobstar===!0){V(w);continue}let Y=E.prev,ce=Y.prev,Ae=Y.type==="slash"||Y.type==="bos",Fe=ce&&(ce.type==="star"||ce.type==="globstar");if(r.bash===!0&&(!Ae||G[0]&&G[0]!=="/")){W({type:"star",value:w,output:""});continue}let I=g.braces>0&&(Y.type==="comma"||Y.type==="brace"),j=v.length&&(Y.type==="pipe"||Y.type==="paren");if(!Ae&&Y.type!=="paren"&&!I&&!j){W({type:"star",value:w,output:""});continue}for(;G.slice(0,3)==="/**";){let K=e[g.index+4];if(K&&K!=="/")break;G=G.slice(3),V("/**",3)}if(Y.type==="bos"&&T()){E.type="globstar",E.value+=w,E.output=D(r),g.output=E.output,g.globstar=!0,V(w);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&!Fe&&T()){g.output=g.output.slice(0,-(Y.output+E.output).length),Y.output=`(?:${Y.output}`,E.type="globstar",E.output=D(r)+(r.strictSlashes?")":"|$)"),E.value+=w,g.globstar=!0,g.output+=Y.output+E.output,V(w);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&G[0]==="/"){let K=G[1]!==void 0?"|$":"";g.output=g.output.slice(0,-(Y.output+E.output).length),Y.output=`(?:${Y.output}`,E.type="globstar",E.output=`${D(r)}${d}|${d}${K})`,E.value+=w,g.output+=Y.output+E.output,g.globstar=!0,V(w+M()),W({type:"slash",value:"/",output:""});continue}if(Y.type==="bos"&&G[0]==="/"){E.type="globstar",E.value+=w,E.output=`(?:^|${d}|${D(r)}${d})`,g.output=E.output,g.globstar=!0,V(w+M()),W({type:"slash",value:"/",output:""});continue}g.output=g.output.slice(0,-E.output.length),E.type="globstar",E.output=D(r),E.value+=w,g.output+=E.output,g.globstar=!0,V(w);continue}let ne={type:"star",value:w,output:x};if(r.bash===!0){ne.output=".*?",(E.type==="bos"||E.type==="slash")&&(ne.output=k+ne.output),W(ne);continue}if(E&&(E.type==="bracket"||E.type==="paren")&&r.regex===!0){ne.output=w,W(ne);continue}(g.index===g.start||E.type==="slash"||E.type==="dot")&&(E.type==="dot"?(g.output+=P,E.output+=P):r.dot===!0?(g.output+=S,E.output+=S):(g.output+=k,E.output+=k),N()!=="*"&&(g.output+=p,E.output+=p)),W(ne)}for(;g.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Es("closing","]"));g.output=or.escapeLast(g.output,"["),H("brackets")}for(;g.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Es("closing",")"));g.output=or.escapeLast(g.output,"("),H("parens")}for(;g.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Es("closing","}"));g.output=or.escapeLast(g.output,"{"),H("braces")}if(r.strictSlashes!==!0&&(E.type==="star"||E.type==="bracket")&&W({type:"maybe_slash",value:"",output:`${d}?`}),g.backtrack===!0){g.output="";for(let G of g.tokens)g.output+=G.output!=null?G.output:G.value,G.suffix&&(g.output+=G.suffix)}return g};cp.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Rc,r.maxLength):Rc,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=HC[e]||e;let s=or.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:f,NO_DOTS:l,NO_DOTS_SLASH:h,STAR:d,START_ANCHOR:p}=_c.globChars(s),y=r.dot?l:f,m=r.dot?h:f,P=r.capture?"":"?:",S={negated:!1,prefix:""},L=r.bash===!0?".*?":d;r.capture&&(L=`(${L})`);let O=k=>k.noglobstar===!0?L:`(${P}(?:(?!${p}${k.dot?c:o}).)*?)`,b=k=>{switch(k){case"*":return`${y}${u}${L}`;case".*":return`${o}${u}${L}`;case"*.*":return`${y}${L}${o}${u}${L}`;case"*/*":return`${y}${L}${a}${u}${m}${L}`;case"**":return y+O(r);case"**/*":return`(?:${y}${O(r)}${a})?${m}${u}${L}`;case"**/*.*":return`(?:${y}${O(r)}${a})?${m}${L}${o}${u}${L}`;case"**/.*":return`(?:${y}${O(r)}${a})?${o}${u}${L}`;default:{let $=/^(.*?)\.(\w+)$/.exec(k);if(!$)return;let x=b($[1]);return x?x+o+$[2]:void 0}}},_=or.removePrefix(e,S),D=b(_);return D&&r.strictSlashes!==!0&&(D+=`${a}?`),D};zC.exports=cp});var KC=F((sX,VC)=>{"use strict";var Sq=require("path"),Cq=UC(),lp=YC(),fp=na(),xq=ra(),Pq=e=>e&&typeof e=="object"&&!Array.isArray(e),Ze=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(h=>Ze(h,t,r));return h=>{for(let d of f){let p=d(h);if(p)return p}return!1}}let n=Pq(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=fp.isWindows(t),o=n?Ze.compileRe(e,t):Ze.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};u=Ze(i.ignore,f,r)}let c=(f,l=!1)=>{let{isMatch:h,match:d,output:p}=Ze.test(f,o,t,{glob:e,posix:s}),y={glob:e,state:a,regex:o,posix:s,input:f,output:p,match:d,isMatch:h};return typeof i.onResult=="function"&&i.onResult(y),h===!1?(y.isMatch=!1,l?y:!1):u(f)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,l?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),l?y:!0)};return r&&(c.state=a),c};Ze.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?fp.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Ze.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};Ze.matchBase=(e,t,r,n=fp.isWindows(r))=>(t instanceof RegExp?t:Ze.makeRe(t,r)).test(Sq.basename(e));Ze.isMatch=(e,t,r)=>Ze(t,r)(e);Ze.parse=(e,t)=>Array.isArray(e)?e.map(r=>Ze.parse(r,t)):lp(e,{...t,fastpaths:!1});Ze.scan=(e,t)=>Cq(e,t);Ze.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=Ze.toRegex(a,t);return n===!0&&(u.state=e),u};Ze.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=lp.fastpaths(e,t)),i.output||(i=lp(e,t)),Ze.compileRe(i,t,r,n)};Ze.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Ze.constants=xq;VC.exports=Ze});var XC=F((oX,JC)=>{"use strict";JC.exports=KC()});var sa=F((aX,rx)=>{"use strict";var ZC=require("util"),ex=kC(),Yr=XC(),hp=na(),QC=e=>e===""||e==="./",tx=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},Ue=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let l=Yr(String(t[f]),{...r,onResult:a},!0),h=l.state.negated||l.state.negatedExtglob;h&&o++;for(let d of e){let p=l(d,!0);(h?!p.isMatch:p.isMatch)&&(h?n.add(p.output):(n.delete(p.output),i.add(p.output)))}}let c=(o===t.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(f=>f.replace(/\\/g,"")):t}return c};Ue.match=Ue;Ue.matcher=(e,t)=>Yr(e,t);Ue.isMatch=(e,t,r)=>Yr(t,r)(e);Ue.any=Ue.isMatch;Ue.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(Ue(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};Ue.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ZC.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>Ue.contains(e,n,r));if(typeof t=="string"){if(QC(e)||QC(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return Ue.isMatch(e,t,{...r,contains:!0})};Ue.matchKeys=(e,t,r)=>{if(!hp.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=Ue(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};Ue.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Yr(String(i),r);if(n.some(o=>s(o)))return!0}return!1};Ue.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Yr(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};Ue.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ZC.inspect(e)}"`);return[].concat(t).every(n=>Yr(n,r)(e))};Ue.capture=(e,t,r)=>{let n=hp.isWindows(r),s=Yr.makeRe(String(e),{...r,capture:!0}).exec(n?hp.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Ue.makeRe=(...e)=>Yr.makeRe(...e);Ue.scan=(...e)=>Yr.scan(...e);Ue.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of ex(String(n),t))r.push(Yr.parse(i,t));return r};Ue.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!tx(e)?[e]:ex(e,t)};Ue.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return Ue.braces(e,{...t,expand:!0})};Ue.hasBraces=tx;rx.exports=Ue});var hx=F(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.isAbsolute=be.partitionAbsoluteAndRelative=be.removeDuplicateSlashes=be.matchAny=be.convertPatternsToRe=be.makeRe=be.getPatternParts=be.expandBraceExpansion=be.expandPatternsWithBraceExpansion=be.isAffectDepthOfReadingPattern=be.endsWithSlashGlobStar=be.hasGlobStar=be.getBaseDirectory=be.isPatternRelatedToParentDirectory=be.getPatternsOutsideCurrentDirectory=be.getPatternsInsideCurrentDirectory=be.getPositivePatterns=be.getNegativePatterns=be.isPositivePattern=be.isNegativePattern=be.convertToNegativePattern=be.convertToPositivePattern=be.isDynamicPattern=be.isStaticPattern=void 0;var nx=require("path"),Oq=K1(),dp=sa(),ix="**",_q="\\",Rq=/[*?]|^!/,Fq=/\[[^[]*]/,kq=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Dq=/[!*+?@]\([^(]*\)/,Lq=/,|\.\./,Tq=/(?!^)\/{2,}/g;function sx(e,t={}){return!ox(e,t)}be.isStaticPattern=sx;function ox(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(_q)||Rq.test(e)||Fq.test(e)||kq.test(e)||t.extglob!==!1&&Dq.test(e)||t.braceExpansion!==!1&&Iq(e))}be.isDynamicPattern=ox;function Iq(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return Lq.test(n)}function Nq(e){return Fc(e)?e.slice(1):e}be.convertToPositivePattern=Nq;function $q(e){return"!"+e}be.convertToNegativePattern=$q;function Fc(e){return e.startsWith("!")&&e[1]!=="("}be.isNegativePattern=Fc;function ax(e){return!Fc(e)}be.isPositivePattern=ax;function Mq(e){return e.filter(Fc)}be.getNegativePatterns=Mq;function jq(e){return e.filter(ax)}be.getPositivePatterns=jq;function Bq(e){return e.filter(t=>!pp(t))}be.getPatternsInsideCurrentDirectory=Bq;function Wq(e){return e.filter(pp)}be.getPatternsOutsideCurrentDirectory=Wq;function pp(e){return e.startsWith("..")||e.startsWith("./..")}be.isPatternRelatedToParentDirectory=pp;function qq(e){return Oq(e,{flipBackslashes:!1})}be.getBaseDirectory=qq;function Gq(e){return e.includes(ix)}be.hasGlobStar=Gq;function ux(e){return e.endsWith("/"+ix)}be.endsWithSlashGlobStar=ux;function Uq(e){let t=nx.basename(e);return ux(e)||sx(t)}be.isAffectDepthOfReadingPattern=Uq;function Hq(e){return e.reduce((t,r)=>t.concat(cx(r)),[])}be.expandPatternsWithBraceExpansion=Hq;function cx(e){let t=dp.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}be.expandBraceExpansion=cx;function zq(e,t){let{parts:r}=dp.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}be.getPatternParts=zq;function lx(e,t){return dp.makeRe(e,t)}be.makeRe=lx;function Yq(e,t){return e.map(r=>lx(r,t))}be.convertPatternsToRe=Yq;function Vq(e,t){return t.some(r=>r.test(e))}be.matchAny=Vq;function Kq(e){return e.replace(Tq,"/")}be.removeDuplicateSlashes=Kq;function Jq(e){let t=[],r=[];for(let n of e)fx(n)?t.push(n):r.push(n);return[t,r]}be.partitionAbsoluteAndRelative=Jq;function fx(e){return nx.isAbsolute(e)}be.isAbsolute=fx});var mx=F((cX,gx)=>{"use strict";var Xq=require("stream"),dx=Xq.PassThrough,Qq=Array.prototype.slice;gx.exports=Zq;function Zq(){let e=[],t=Qq.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=dx(n);function a(){for(let f=0,l=arguments.length;f<l;f++)e.push(px(arguments[f],n));return u(),this}function u(){if(r)return;r=!0;let f=e.shift();if(!f){process.nextTick(c);return}Array.isArray(f)||(f=[f]);let l=f.length+1;function h(){--l>0||(r=!1,u())}function d(p){function y(){p.removeListener("merge2UnpipeEnd",y),p.removeListener("end",y),s&&p.removeListener("error",m),h()}function m(P){o.emit("error",P)}if(p._readableState.endEmitted)return h();p.on("merge2UnpipeEnd",y),p.on("end",y),s&&p.on("error",m),p.pipe(o,{end:!1}),p.resume()}for(let p=0;p<f.length;p++)d(f[p]);h()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function px(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=px(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(dx(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var vx=F(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.merge=void 0;var eG=mx();function tG(e){let t=eG(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>yx(e)),t.once("end",()=>yx(e)),t}kc.merge=tG;function yx(e){e.forEach(t=>t.emit("close"))}});var Ax=F(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.isEmpty=bs.isString=void 0;function rG(e){return typeof e=="string"}bs.isString=rG;function nG(e){return e===""}bs.isEmpty=nG});var pn=F(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.string=Et.stream=Et.pattern=Et.path=Et.fs=Et.errno=Et.array=void 0;var iG=N1();Et.array=iG;var sG=$1();Et.errno=sG;var oG=M1();Et.fs=oG;var aG=q1();Et.path=aG;var uG=hx();Et.pattern=uG;var cG=vx();Et.stream=cG;var lG=Ax();Et.string=lG});var Sx=F(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.convertPatternGroupToTask=bt.convertPatternGroupsToTasks=bt.groupPatternsByBaseDirectory=bt.getNegativePatternsAsPositive=bt.getPositivePatterns=bt.convertPatternsToTasks=bt.generate=void 0;var Tr=pn();function fG(e,t){let r=Ex(e,t),n=Ex(t.ignore,t),i=bx(r),s=wx(r,n),o=i.filter(f=>Tr.pattern.isStaticPattern(f,t)),a=i.filter(f=>Tr.pattern.isDynamicPattern(f,t)),u=gp(o,s,!1),c=gp(a,s,!0);return u.concat(c)}bt.generate=fG;function Ex(e,t){let r=e;return t.braceExpansion&&(r=Tr.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>Tr.pattern.removeDuplicateSlashes(n))}function gp(e,t,r){let n=[],i=Tr.pattern.getPatternsOutsideCurrentDirectory(e),s=Tr.pattern.getPatternsInsideCurrentDirectory(e),o=mp(i),a=mp(s);return n.push(...yp(o,t,r)),"."in a?n.push(vp(".",s,t,r)):n.push(...yp(a,t,r)),n}bt.convertPatternsToTasks=gp;function bx(e){return Tr.pattern.getPositivePatterns(e)}bt.getPositivePatterns=bx;function wx(e,t){return Tr.pattern.getNegativePatterns(e).concat(t).map(Tr.pattern.convertToPositivePattern)}bt.getNegativePatternsAsPositive=wx;function mp(e){let t={};return e.reduce((r,n)=>{let i=Tr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}bt.groupPatternsByBaseDirectory=mp;function yp(e,t,r){return Object.keys(e).map(n=>vp(n,e[n],t,r))}bt.convertPatternGroupsToTasks=yp;function vp(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Tr.pattern.convertToNegativePattern))}}bt.convertPatternGroupToTask=vp});var xx=F(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.read=void 0;function hG(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){Cx(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Ap(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Cx(r,s);return}Ap(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Ap(r,o)})})}Dc.read=hG;function Cx(e,t){e(t)}function Ap(e,t){e(null,t)}});var Px=F(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.read=void 0;function dG(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Lc.read=dG});var Ox=F(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.createFileSystemAdapter=jn.FILE_SYSTEM_ADAPTER=void 0;var Tc=require("fs");jn.FILE_SYSTEM_ADAPTER={lstat:Tc.lstat,stat:Tc.stat,lstatSync:Tc.lstatSync,statSync:Tc.statSync};function pG(e){return e===void 0?jn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},jn.FILE_SYSTEM_ADAPTER),e)}jn.createFileSystemAdapter=pG});var _x=F(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});var gG=Ox(),Ep=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=gG.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};bp.default=Ep});var Fi=F(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.statSync=Bn.stat=Bn.Settings=void 0;var Rx=xx(),mG=Px(),wp=_x();Bn.Settings=wp.default;function yG(e,t,r){if(typeof t=="function"){Rx.read(e,Sp(),t);return}Rx.read(e,Sp(t),r)}Bn.stat=yG;function vG(e,t){let r=Sp(t);return mG.read(e,r)}Bn.statSync=vG;function Sp(e={}){return e instanceof wp.default?e:new wp.default(e)}});var Dx=F((AX,kx)=>{var Fx;kx.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Fx||(Fx=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Tx=F((EX,Lx)=>{Lx.exports=EG;var AG=Dx();function EG(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(u){function c(){t&&t(u,r),t=null}s?AG(c):c()}function a(u,c,f){r[u]=f,(--n===0||c)&&o(c)}n?i?i.forEach(function(u){e[u](function(c,f){a(u,c,f)})}):e.forEach(function(u,c){u(function(f,l){a(c,f,l)})}):o(null),s=!1}});var Cp=F(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Ic=process.versions.node.split(".");if(Ic[0]===void 0||Ic[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Ix=Number.parseInt(Ic[0],10),bG=Number.parseInt(Ic[1],10),Nx=10,wG=10,SG=Ix>Nx,CG=Ix===Nx&&bG>=wG;Nc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=SG||CG});var $x=F($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.createDirentFromStats=void 0;var xp=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function xG(e,t){return new xp(e,t)}$c.createDirentFromStats=xG});var Pp=F(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.fs=void 0;var PG=$x();Mc.fs=PG});var Op=F(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.joinPathSegments=void 0;function OG(e,t,r){return e.endsWith(r)?e+t:e+r+t}jc.joinPathSegments=OG});var Gx=F(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.readdir=Wn.readdirWithFileTypes=Wn.read=void 0;var _G=Fi(),Mx=Tx(),RG=Cp(),jx=Pp(),Bx=Op();function FG(e,t,r){if(!t.stats&&RG.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Wx(e,t,r);return}qx(e,t,r)}Wn.read=FG;function Wx(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Bc(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:Bx.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){_p(r,s);return}let o=s.map(a=>kG(a,t));Mx(o,(a,u)=>{if(a!==null){Bc(r,a);return}_p(r,u)})})}Wn.readdirWithFileTypes=Wx;function kG(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=jx.fs.createDirentFromStats(e.name,i),r(null,e)})}}function qx(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Bc(r,n);return}let s=i.map(o=>{let a=Bx.joinPathSegments(e,o,t.pathSegmentSeparator);return u=>{_G.stat(a,t.fsStatSettings,(c,f)=>{if(c!==null){u(c);return}let l={name:o,path:a,dirent:jx.fs.createDirentFromStats(o,f)};t.stats&&(l.stats=f),u(null,l)})}});Mx(s,(o,a)=>{if(o!==null){Bc(r,o);return}_p(r,a)})})}Wn.readdir=qx;function Bc(e,t){e(t)}function _p(e,t){e(null,t)}});var Vx=F(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.readdir=qn.readdirWithFileTypes=qn.read=void 0;var DG=Fi(),LG=Cp(),Ux=Pp(),Hx=Op();function TG(e,t){return!t.stats&&LG.IS_SUPPORT_READDIR_WITH_FILE_TYPES?zx(e,t):Yx(e,t)}qn.read=TG;function zx(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Hx.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=Ux.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}qn.readdirWithFileTypes=zx;function Yx(e,t){return t.fs.readdirSync(e).map(n=>{let i=Hx.joinPathSegments(e,n,t.pathSegmentSeparator),s=DG.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:Ux.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}qn.readdir=Yx});var Kx=F(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.createFileSystemAdapter=Gn.FILE_SYSTEM_ADAPTER=void 0;var ws=require("fs");Gn.FILE_SYSTEM_ADAPTER={lstat:ws.lstat,stat:ws.stat,lstatSync:ws.lstatSync,statSync:ws.statSync,readdir:ws.readdir,readdirSync:ws.readdirSync};function IG(e){return e===void 0?Gn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Gn.FILE_SYSTEM_ADAPTER),e)}Gn.createFileSystemAdapter=IG});var Jx=F(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var NG=require("path"),$G=Fi(),MG=Kx(),Rp=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=MG.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,NG.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new $G.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Fp.default=Rp});var Wc=F(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.Settings=Un.scandirSync=Un.scandir=void 0;var Xx=Gx(),jG=Vx(),kp=Jx();Un.Settings=kp.default;function BG(e,t,r){if(typeof t=="function"){Xx.read(e,Dp(),t);return}Xx.read(e,Dp(t),r)}Un.scandir=BG;function WG(e,t){let r=Dp(t);return jG.read(e,r)}Un.scandirSync=WG;function Dp(e={}){return e instanceof kp.default?e:new kp.default(e)}});var Zx=F((FX,Qx)=>{"use strict";function qG(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Qx.exports=qG});var tP=F((kX,Lp)=>{"use strict";var GG=Zx();function eP(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=GG(UG),i=null,s=null,o=0,a=null,u={push:y,drain:br,saturated:br,pause:f,paused:!1,get concurrency(){return r},set concurrency(b){if(!(b>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=b,!u.paused)for(;i&&o<r;)o++,P()},running:c,resume:d,idle:p,length:l,getQueue:h,unshift:m,empty:br,kill:S,killAndDrain:L,error:O};return u;function c(){return o}function f(){u.paused=!0}function l(){for(var b=i,_=0;b;)b=b.next,_++;return _}function h(){for(var b=i,_=[];b;)_.push(b.value),b=b.next;return _}function d(){if(u.paused){if(u.paused=!1,i===null){o++,P();return}for(;i&&o<r;)o++,P()}}function p(){return o===0&&u.length()===0}function y(b,_){var D=n.get();D.context=e,D.release=P,D.value=b,D.callback=_||br,D.errorHandler=a,o>=r||u.paused?s?(s.next=D,s=D):(i=D,s=D,u.saturated()):(o++,t.call(e,D.value,D.worked))}function m(b,_){var D=n.get();D.context=e,D.release=P,D.value=b,D.callback=_||br,D.errorHandler=a,o>=r||u.paused?i?(D.next=i,i=D):(i=D,s=D,u.saturated()):(o++,t.call(e,D.value,D.worked))}function P(b){b&&n.release(b);var _=i;_&&o<=r?u.paused?o--:(s===i&&(s=null),i=_.next,_.next=null,t.call(e,_.value,_.worked),s===null&&u.empty()):--o===0&&u.drain()}function S(){i=null,s=null,u.drain=br}function L(){i=null,s=null,u.drain(),u.drain=br}function O(b){a=b}}function br(){}function UG(){this.value=null,this.callback=br,this.next=null,this.release=br,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=br,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function HG(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(f,l){t.call(this,f).then(function(h){l(null,h)},l)}var i=eP(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=c,i;function a(f){var l=new Promise(function(h,d){s(f,function(p,y){if(p){d(p);return}h(y)})});return l.catch(br),l}function u(f){var l=new Promise(function(h,d){o(f,function(p,y){if(p){d(p);return}h(y)})});return l.catch(br),l}function c(){var f=new Promise(function(l){process.nextTick(function(){if(i.idle())l();else{var h=i.drain;i.drain=function(){typeof h=="function"&&h(),l(),i.drain=h}}})});return f}}Lp.exports=eP;Lp.exports.promise=HG});var qc=F(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.joinPathSegments=Vr.replacePathSegmentSeparator=Vr.isAppliedFilter=Vr.isFatalError=void 0;function zG(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Vr.isFatalError=zG;function YG(e,t){return e===null||e(t)}Vr.isAppliedFilter=YG;function VG(e,t){return e.split(/[/\\]/).join(t)}Vr.replacePathSegmentSeparator=VG;function KG(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Vr.joinPathSegments=KG});var Np=F(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});var JG=qc(),Tp=class{constructor(t,r){this._root=t,this._settings=r,this._root=JG.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Ip.default=Tp});var jp=F(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});var XG=require("events"),QG=Wc(),ZG=tP(),Gc=qc(),eU=Np(),$p=class extends eU.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=QG.scandir,this._emitter=new XG.EventEmitter,this._queue=ZG(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!Gc.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=Gc.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Gc.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Gc.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Mp.default=$p});var rP=F(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var tU=jp(),Bp=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new tU.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{rU(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{nU(t,this._storage)}),this._reader.read()}};Wp.default=Bp;function rU(e,t){e(t)}function nU(e,t){e(null,t)}});var nP=F(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var iU=require("stream"),sU=jp(),qp=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new sU.default(this._root,this._settings),this._stream=new iU.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Gp.default=qp});var iP=F(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});var oU=Wc(),Uc=qc(),aU=Np(),Up=class extends aU.default{constructor(){super(...arguments),this._scandir=oU.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(Uc.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Uc.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Uc.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Uc.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Hp.default=Up});var sP=F(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var uU=iP(),zp=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new uU.default(this._root,this._settings)}read(){return this._reader.read()}};Yp.default=zp});var oP=F(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var cU=require("path"),lU=Wc(),Vp=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,cU.sep),this.fsScandirSettings=new lU.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Kp.default=Vp});var zc=F(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.Settings=Kr.walkStream=Kr.walkSync=Kr.walk=void 0;var aP=rP(),fU=nP(),hU=sP(),Jp=oP();Kr.Settings=Jp.default;function dU(e,t,r){if(typeof t=="function"){new aP.default(e,Hc()).read(t);return}new aP.default(e,Hc(t)).read(r)}Kr.walk=dU;function pU(e,t){let r=Hc(t);return new hU.default(e,r).read()}Kr.walkSync=pU;function gU(e,t){let r=Hc(t);return new fU.default(e,r).read()}Kr.walkStream=gU;function Hc(e={}){return e instanceof Jp.default?e:new Jp.default(e)}});var Yc=F(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var mU=require("path"),yU=Fi(),uP=pn(),Xp=class{constructor(t){this._settings=t,this._fsStatSettings=new yU.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return mU.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:uP.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!uP.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Qp.default=Xp});var tg=F(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});var vU=require("stream"),AU=Fi(),EU=zc(),bU=Yc(),Zp=class extends bU.default{constructor(){super(...arguments),this._walkStream=EU.walkStream,this._stat=AU.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new vU.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};eg.default=Zp});var cP=F(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});var wU=zc(),SU=Yc(),CU=tg(),rg=class extends SU.default{constructor(){super(...arguments),this._walkAsync=wU.walk,this._readerStream=new CU.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};ng.default=rg});var lP=F(sg=>{"use strict";Object.defineProperty(sg,"__esModule",{value:!0});var oa=pn(),ig=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:t,segments:r,sections:n})}}_getPatternSegments(t){return oa.pattern.getPatternParts(t,this._micromatchOptions).map(n=>oa.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:oa.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return oa.array.splitWhen(t,r=>r.dynamic&&oa.pattern.hasGlobStar(r.pattern))}};sg.default=ig});var fP=F(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0});var xU=lP(),og=class extends xU.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((u,c)=>{let f=s.segments[c];return!!(f.dynamic&&f.patternRe.test(u)||!f.dynamic&&f.pattern===u)}))return!0}return!1}};ag.default=og});var hP=F(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});var Vc=pn(),PU=fP(),ug=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new PU.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Vc.pattern.isAffectDepthOfReadingPattern);return Vc.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Vc.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!Vc.pattern.matchAny(t,r)}};cg.default=ug});var dP=F(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});var Hn=pn(),lg=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let[n,i]=Hn.pattern.partitionAbsoluteAndRelative(r),s={positive:{all:Hn.pattern.convertPatternsToRe(t,this._micromatchOptions)},negative:{absolute:Hn.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:Hn.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o=>this._filter(o,s)}_filter(t,r){let n=Hn.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t))return!1;let i=this._isMatchToPatternsSet(n,r,t.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(n),i}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isMatchToPatternsSet(t,r,n){return!(!this._isMatchToPatterns(t,r.positive.all,n)||this._isMatchToPatterns(t,r.negative.relative,n)||this._isMatchToAbsoluteNegative(t,r.negative.absolute,n))}_isMatchToAbsoluteNegative(t,r,n){if(r.length===0)return!1;let i=Hn.path.makeAbsolute(this._settings.cwd,t);return this._isMatchToPatterns(i,r,n)}_isMatchToPatterns(t,r,n){if(r.length===0)return!1;let i=Hn.pattern.matchAny(t,r);return!i&&n?Hn.pattern.matchAny(t+"/",r):i}};fg.default=lg});var pP=F(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});var OU=pn(),hg=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return OU.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};dg.default=hg});var mP=F(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});var gP=pn(),pg=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=gP.path.makeAbsolute(this._settings.cwd,r),r=gP.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};gg.default=pg});var Kc=F(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});var _U=require("path"),RU=hP(),FU=dP(),kU=pP(),DU=mP(),mg=class{constructor(t){this._settings=t,this.errorFilter=new kU.default(this._settings),this.entryFilter=new FU.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new RU.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new DU.default(this._settings)}_getRootDirectory(t){return _U.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};yg.default=mg});var yP=F(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});var LU=cP(),TU=Kc(),vg=class extends TU.default{constructor(){super(...arguments),this._reader=new LU.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Ag.default=vg});var vP=F(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});var IU=require("stream"),NU=tg(),$U=Kc(),Eg=class extends $U.default{constructor(){super(...arguments),this._reader=new NU.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new IU.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};bg.default=Eg});var AP=F(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});var MU=Fi(),jU=zc(),BU=Yc(),wg=class extends BU.default{constructor(){super(...arguments),this._walkSync=jU.walkSync,this._statSync=MU.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Sg.default=wg});var EP=F(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});var WU=AP(),qU=Kc(),Cg=class extends qU.default{constructor(){super(...arguments),this._reader=new WU.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};xg.default=Cg});var bP=F(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ss=require("fs"),GU=require("os"),UU=Math.max(GU.cpus().length,1);Cs.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ss.lstat,lstatSync:Ss.lstatSync,stat:Ss.stat,statSync:Ss.statSync,readdir:Ss.readdir,readdirSync:Ss.readdirSync};var Pg=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,UU),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},Cs.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};Cs.default=Pg});var CP=F((rQ,SP)=>{"use strict";var wP=Sx(),HU=yP(),zU=vP(),YU=EP(),Og=bP(),wr=pn();async function _g(e,t){Ir(e);let r=Rg(e,HU.default,t),n=await Promise.all(r);return wr.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(c,f){Ir(c);let l=Rg(c,YU.default,f);return wr.array.flatten(l)}e.sync=t;function r(c,f){Ir(c);let l=Rg(c,zU.default,f);return wr.stream.merge(l)}e.stream=r;function n(c,f){Ir(c);let l=[].concat(c),h=new Og.default(f);return wP.generate(l,h)}e.generateTasks=n;function i(c,f){Ir(c);let l=new Og.default(f);return wr.pattern.isDynamicPattern(c,l)}e.isDynamicPattern=i;function s(c){return Ir(c),wr.path.escape(c)}e.escapePath=s;function o(c){return Ir(c),wr.path.convertPathToPattern(c)}e.convertPathToPattern=o;let a;(function(c){function f(h){return Ir(h),wr.path.escapePosixPath(h)}c.escapePath=f;function l(h){return Ir(h),wr.path.convertPosixPathToPattern(h)}c.convertPathToPattern=l})(a=e.posix||(e.posix={}));let u;(function(c){function f(h){return Ir(h),wr.path.escapeWindowsPath(h)}c.escapePath=f;function l(h){return Ir(h),wr.path.convertWindowsPathToPattern(h)}c.convertPathToPattern=l})(u=e.win32||(e.win32={}))})(_g||(_g={}));function Rg(e,t,r){let n=[].concat(e),i=new Og.default(r),s=wP.generate(n,i),o=new t(i);return s.map(o.read,o)}function Ir(e){if(![].concat(e).every(n=>wr.string.isString(n)&&!wr.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}SP.exports=_g});var Xc=F(Yn=>{"use strict";var xP=Yn&&Yn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.getPackagePathsAsync=Yn.getPackagePaths=void 0;var Jc=xP(require("path")),PP=xP(CP()),OP=fs(),zn={},_P={absolute:!0,ignore:["**/node_modules/**","**/__fixtures__/**"],stats:!1};function VU(e,t){return(0,OP.isCachingEnabled)()&&zn[e]||(zn[e]=PP.default.sync(RP(t),{cwd:e,..._P}).map(FP)),zn[e]}Yn.getPackagePaths=VU;async function KU(e,t){return(0,OP.isCachingEnabled)()&&zn[e]||(zn[e]=(await(0,PP.default)(RP(t),{cwd:e,..._P})).map(FP)),zn[e]}Yn.getPackagePathsAsync=KU;function RP(e){return e.map(t=>Jc.default.join(t,"package.json").replace(/\\/g,"/"))}function FP(e){let t=Jc.default.dirname(e);return Jc.default.sep==="/"?t:t.replace(/\//g,Jc.default.sep)}});var Fg=F(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.infoFromPackageJson=void 0;function JU(e,t){return{packageJsonPath:t,...e}}Qc.infoFromPackageJson=JU});var aa=F(Vn=>{"use strict";var Dg=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.getPackageInfoAsync=Vn.getPackageInfo=void 0;var kg=Dg(require("fs")),XU=Dg(require("fs/promises")),kP=Dg(require("path")),DP=Fg(),Zc=hn();function QU(e){let t=kP.default.join(e,"package.json");try{if(!kg.default.existsSync(t)){(0,Zc.logVerboseWarning)(`File does not exist: ${t}`);return}let r=JSON.parse(kg.default.readFileSync(t,"utf-8"));return(0,DP.infoFromPackageJson)(r,t)}catch(r){(0,Zc.logVerboseWarning)(`Error reading or parsing ${t}: ${r?.message||r}`)}}Vn.getPackageInfo=QU;async function ZU(e){let t=kP.default.join(e,"package.json");try{if(!kg.default.existsSync(t)){(0,Zc.logVerboseWarning)(`File does not exist: ${t}`);return}let r=JSON.parse(await XU.default.readFile(t,"utf-8"));return(0,DP.infoFromPackageJson)(r,t)}catch(r){(0,Zc.logVerboseWarning)(`Error reading or parsing ${t}: ${r?.message||r}`)}}Vn.getPackageInfoAsync=ZU});var ua=F(Kn=>{"use strict";var LP=Kn&&Kn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kn,"__esModule",{value:!0});Kn.getWorkspacePackageInfoAsync=Kn.getWorkspacePackageInfo=void 0;var eH=LP(require("path")),tH=LP(require("fs/promises")),rH=hn(),nH=Fg(),iH=aa();function sH(e){return e?e.map(t=>{let r=(0,iH.getPackageInfo)(t);return r?{name:r.name,path:t,packageJson:r}:null}).filter(Boolean):[]}Kn.getWorkspacePackageInfo=sH;async function oH(e){if(!e)return[];let t=e.map(async r=>{let n=eH.default.join(r,"package.json");try{let i=JSON.parse(await tH.default.readFile(n,"utf-8"));return{name:i.name,path:r,packageJson:(0,nH.infoFromPackageJson)(i,n)}}catch(i){return(0,rH.logVerboseWarning)(`Error reading or parsing ${n} while getting workspace package info`,i),null}});return(await Promise.all(t)).filter(Boolean)}Kn.getWorkspacePackageInfoAsync=oH});var Lg=F(Sr=>{"use strict";var TP=Sr&&Sr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sr,"__esModule",{value:!0});Sr.getWorkspaceInfoFromWorkspaceRootAsync=Sr.getWorkspaceInfoFromWorkspaceRoot=Sr.getPackagePathsFromWorkspaceRootAsync=Sr.getPackagePathsFromWorkspaceRoot=void 0;var aH=TP(require("fs")),uH=TP(require("path")),IP=Xc(),NP=ua(),el=hn();function $P(e){let t=uH.default.join(e,"package.json"),r;try{r=JSON.parse(aH.default.readFileSync(t,"utf-8"))}catch{throw new Error("Could not load package.json from workspaces root")}let{workspaces:n}=r;if(Array.isArray(n))return n;if(!n?.packages)throw new Error("Could not find a workspaces object in package.json (expected if this is not a monorepo)");return n.packages}function MP(e){try{let t=$P(e);return t?(0,IP.getPackagePaths)(e,t):[]}catch(t){return(0,el.logVerboseWarning)(`Error getting package paths for ${e}`,t),[]}}Sr.getPackagePathsFromWorkspaceRoot=MP;async function jP(e){try{let t=$P(e);return t?(0,IP.getPackagePathsAsync)(e,t):[]}catch(t){return(0,el.logVerboseWarning)(`Error getting package paths for ${e}`,t),[]}}Sr.getPackagePathsFromWorkspaceRootAsync=jP;function cH(e){try{let t=MP(e);return(0,NP.getWorkspacePackageInfo)(t)}catch(t){return(0,el.logVerboseWarning)(`Error getting workspace info for ${e}`,t),[]}}Sr.getWorkspaceInfoFromWorkspaceRoot=cH;async function lH(e){try{let t=await jP(e);return(0,NP.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,el.logVerboseWarning)(`Error getting workspace info for ${e}`,t),[]}}Sr.getWorkspaceInfoFromWorkspaceRootAsync=lH});var xs=F((uQ,ki)=>{"use strict";function BP(e){return typeof e>"u"||e===null}function fH(e){return typeof e=="object"&&e!==null}function hH(e){return Array.isArray(e)?e:BP(e)?[]:[e]}function dH(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 pH(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function gH(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}ki.exports.isNothing=BP;ki.exports.isObject=fH;ki.exports.toArray=hH;ki.exports.repeat=pH;ki.exports.isNegativeZero=gH;ki.exports.extend=dH});var Ps=F((cQ,qP)=>{"use strict";function WP(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
29
30
 
30
- `+e.mark.snippet),n+" "+r):n}function oa(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=RO(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}oa.prototype=Object.create(Error.prototype);oa.prototype.constructor=oa;oa.prototype.toString=function(t){return this.name+": "+RO(this,t)};FO.exports=oa});var LO=F((SJ,DO)=>{"use strict";var aa=Ss();function wg(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function Sg(e,t){return aa.repeat(" ",t-e.length)+e}function UU(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,c,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)c=wg(e.buffer,n[o-u],i[o-u],e.position-(n[o]-n[o-u]),l),a=aa.repeat(" ",t.indent)+Sg((e.line-u+1).toString(),f)+" | "+c.str+`
31
- `+a;for(c=wg(e.buffer,n[o],i[o],e.position,l),a+=aa.repeat(" ",t.indent)+Sg((e.line+1).toString(),f)+" | "+c.str+`
32
- `,a+=aa.repeat("-",t.indent+f+3+c.pos)+`^
33
- `,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)c=wg(e.buffer,n[o+u],i[o+u],e.position-(n[o]-n[o+u]),l),a+=aa.repeat(" ",t.indent)+Sg((e.line+u+1).toString(),f)+" | "+c.str+`
34
- `;return a.replace(/\n$/,"")}DO.exports=UU});var bt=F((CJ,TO)=>{"use strict";var kO=Cs(),HU=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],zU=["scalar","sequence","mapping"];function YU(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function VU(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(HU.indexOf(r)===-1)throw new kO('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,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.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=YU(t.styleAliases||null),zU.indexOf(this.kind)===-1)throw new kO('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}TO.exports=VU});var Og=F((xJ,NO)=>{"use strict";var ua=Cs(),Cg=bt();function IO(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function KU(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(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 xg(e){return this.extend(e)}xg.prototype.extend=function(t){var r=[],n=[];if(t instanceof Cg)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new ua("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Cg))throw new ua("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new ua("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new ua("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof Cg))throw new ua("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(xg.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=IO(i,"implicit"),i.compiledExplicit=IO(i,"explicit"),i.compiledTypeMap=KU(i.compiledImplicit,i.compiledExplicit),i};NO.exports=xg});var Pg=F((OJ,$O)=>{"use strict";var XU=bt();$O.exports=new XU("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var _g=F((PJ,MO)=>{"use strict";var JU=bt();MO.exports=new JU("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Rg=F((_J,jO)=>{"use strict";var QU=bt();jO.exports=new QU("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Fg=F((RJ,BO)=>{"use strict";var ZU=Og();BO.exports=new ZU({explicit:[Pg(),_g(),Rg()]})});var Dg=F((FJ,WO)=>{"use strict";var eH=bt();function tH(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function rH(){return null}function nH(e){return e===null}WO.exports=new eH("tag:yaml.org,2002:null",{kind:"scalar",resolve:tH,construct:rH,predicate:nH,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Lg=F((DJ,qO)=>{"use strict";var iH=bt();function sH(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 oH(e){return e==="true"||e==="True"||e==="TRUE"}function aH(e){return Object.prototype.toString.call(e)==="[object Boolean]"}qO.exports=new iH("tag:yaml.org,2002:bool",{kind:"scalar",resolve:sH,construct:oH,predicate:aH,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var kg=F((LJ,GO)=>{"use strict";var uH=Ss(),cH=bt();function lH(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function fH(e){return 48<=e&&e<=55}function hH(e){return 48<=e&&e<=57}function dH(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(!lH(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!fH(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!hH(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function pH(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function gH(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!uH.isNegativeZero(e)}GO.exports=new cH("tag:yaml.org,2002:int",{kind:"scalar",resolve:dH,construct:pH,predicate:gH,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+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"]}})});var Tg=F((kJ,HO)=>{"use strict";var UO=Ss(),mH=bt(),yH=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function vH(e){return!(e===null||!yH.test(e)||e[e.length-1]==="_")}function AH(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var EH=/^[-+]?[0-9]+e/;function bH(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(UO.isNegativeZero(e))return"-0.0";return r=e.toString(10),EH.test(r)?r.replace("e",".e"):r}function wH(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||UO.isNegativeZero(e))}HO.exports=new mH("tag:yaml.org,2002:float",{kind:"scalar",resolve:vH,construct:AH,predicate:wH,represent:bH,defaultStyle:"lowercase"})});var Ig=F((TJ,zO)=>{"use strict";zO.exports=Fg().extend({implicit:[Dg(),Lg(),kg(),Tg()]})});var Ng=F((IJ,YO)=>{"use strict";YO.exports=Ig()});var $g=F((NJ,XO)=>{"use strict";var SH=bt(),VO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),KO=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 CH(e){return e===null?!1:VO.exec(e)!==null||KO.exec(e)!==null}function xH(e){var t,r,n,i,s,o,a,u=0,c=null,f,l,h;if(t=VO.exec(e),t===null&&(t=KO.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],a=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],l=+(t[11]||0),c=(f*60+l)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,i,s,o,a,u)),c&&h.setTime(h.getTime()-c),h}function OH(e){return e.toISOString()}XO.exports=new SH("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:CH,construct:xH,instanceOf:Date,represent:OH})});var Mg=F(($J,JO)=>{"use strict";var PH=bt();function _H(e){return e==="<<"||e===null}JO.exports=new PH("tag:yaml.org,2002:merge",{kind:"scalar",resolve:_H})});var Bg=F((MJ,QO)=>{"use strict";var RH=bt(),jg=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
35
- \r`;function FH(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=jg;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 DH(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=jg,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function LH(e){var t="",r=0,n,i,s=e.length,o=jg;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 kH(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}QO.exports=new RH("tag:yaml.org,2002:binary",{kind:"scalar",resolve:FH,construct:DH,predicate:kH,represent:LH})});var Wg=F((jJ,ZO)=>{"use strict";var TH=bt(),IH=Object.prototype.hasOwnProperty,NH=Object.prototype.toString;function $H(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,NH.call(i)!=="[object Object]")return!1;for(s in i)if(IH.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 MH(e){return e!==null?e:[]}ZO.exports=new TH("tag:yaml.org,2002:omap",{kind:"sequence",resolve:$H,construct:MH})});var qg=F((BJ,eP)=>{"use strict";var jH=bt(),BH=Object.prototype.toString;function WH(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],BH.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function qH(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}eP.exports=new jH("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:WH,construct:qH})});var Gg=F((WJ,tP)=>{"use strict";var GH=bt(),UH=Object.prototype.hasOwnProperty;function HH(e){if(e===null)return!0;var t,r=e;for(t in r)if(UH.call(r,t)&&r[t]!==null)return!1;return!0}function zH(e){return e!==null?e:{}}tP.exports=new GH("tag:yaml.org,2002:set",{kind:"mapping",resolve:HH,construct:zH})});var Qc=F((qJ,rP)=>{"use strict";rP.exports=Ng().extend({implicit:[$g(),Mg()],explicit:[Bg(),Wg(),qg(),Gg()]})});var AP=F((GJ,Yg)=>{"use strict";var Li=Ss(),cP=Cs(),YH=LO(),VH=Qc(),Jn=Object.prototype.hasOwnProperty,Zc=1,lP=2,fP=3,el=4,Ug=1,KH=2,nP=3,XH=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,JH=/[\x85\u2028\u2029]/,QH=/[,\[\]\{\}]/,hP=/^(?:!|!!|![a-z\-]+!)$/i,dP=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function iP(e){return Object.prototype.toString.call(e)}function Jr(e){return e===10||e===13}function ki(e){return e===9||e===32}function qt(e){return e===9||e===32||e===10||e===13}function xs(e){return e===44||e===91||e===93||e===123||e===125}function ZH(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function e9(e){return e===120?2:e===117?4:e===85?8:0}function t9(e){return 48<=e&&e<=57?e-48:-1}function sP(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
36
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function r9(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function pP(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}var gP=new Array(256),mP=new Array(256);for(Di=0;Di<256;Di++)gP[Di]=sP(Di)?1:0,mP[Di]=sP(Di);var Di;function n9(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||VH,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.firstTabInLine=-1,this.documents=[]}function yP(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=YH(r),new cP(t,r)}function me(e,t){throw yP(e,t)}function tl(e,t){e.onWarning&&e.onWarning.call(null,yP(e,t))}var oP={YAML:function(t,r,n){var i,s,o;t.version!==null&&me(t,"duplication of %YAML directive"),n.length!==1&&me(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&me(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&me(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&tl(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&me(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],hP.test(i)||me(t,"ill-formed tag handle (first argument) of the TAG directive"),Jn.call(t.tagMap,i)&&me(t,'there is a previously declared suffix for "'+i+'" tag handle'),dP.test(s)||me(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{me(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Xn(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||me(e,"expected valid JSON character");else XH.test(a)&&me(e,"the stream contains non-printable characters");e.result+=a}}function aP(e,t,r,n){var i,s,o,a;for(Li.isObject(r)||me(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],Jn.call(t,s)||(pP(t,s,r[s]),n[s]=!0)}function Os(e,t,r,n,i,s,o,a,u){var c,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,f=i.length;c<f;c+=1)Array.isArray(i[c])&&me(e,"nested arrays are not supported inside keys"),typeof i=="object"&&iP(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&iP(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,f=s.length;c<f;c+=1)aP(e,t,s[c],r);else aP(e,t,s,r);else!e.json&&!Jn.call(r,i)&&Jn.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,me(e,"duplicated mapping key")),pP(t,i,s),delete r[i];return t}function Hg(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++):me(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function tt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;ki(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),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(Jr(i))for(Hg(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&&tl(e,"deficient indentation"),n}function rl(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||qt(r)))}function zg(e,t){t===1?e.result+=" ":t>1&&(e.result+=Li.repeat(`
37
- `,t-1))}function i9(e,t,r){var n,i,s,o,a,u,c,f,l=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),qt(d)||xs(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),qt(i)||r&&xs(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),qt(i)||r&&xs(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),qt(n))break}else{if(e.position===e.lineStart&&rl(e)||r&&xs(d))break;if(Jr(d))if(u=e.line,c=e.lineStart,f=e.lineIndent,tt(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=c,e.lineIndent=f;break}}a&&(Xn(e,s,o,!1),zg(e,e.line-u),s=o=e.position,a=!1),ki(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Xn(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function s9(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(Xn(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 Jr(r)?(Xn(e,n,i,!0),zg(e,tt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&rl(e)?me(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);me(e,"unexpected end of the stream within a single quoted scalar")}function o9(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Xn(e,r,e.position,!0),e.position++,!0;if(a===92){if(Xn(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Jr(a))tt(e,!1,t);else if(a<256&&gP[a])e.result+=mP[a],e.position++;else if((o=e9(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=ZH(a))>=0?s=(s<<4)+o:me(e,"expected hexadecimal character");e.result+=r9(s),e.position++}else me(e,"unknown escape sequence");r=n=e.position}else Jr(a)?(Xn(e,r,n,!0),zg(e,tt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&rl(e)?me(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}me(e,"unexpected end of the stream within a double quoted scalar")}function a9(e,t){var r=!0,n,i,s,o=e.tag,a,u=e.anchor,c,f,l,h,d,p=Object.create(null),y,m,O,S;if(S=e.input.charCodeAt(e.position),S===91)f=93,d=!1,a=[];else if(S===123)f=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),S=e.input.charCodeAt(++e.position);S!==0;){if(tt(e,!0,t),S=e.input.charCodeAt(e.position),S===f)return e.position++,e.tag=o,e.anchor=u,e.kind=d?"mapping":"sequence",e.result=a,!0;r?S===44&&me(e,"expected the node content, but found ','"):me(e,"missed comma between flow collection entries"),m=y=O=null,l=h=!1,S===63&&(c=e.input.charCodeAt(e.position+1),qt(c)&&(l=h=!0,e.position++,tt(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Ps(e,t,Zc,!1,!0),m=e.tag,y=e.result,tt(e,!0,t),S=e.input.charCodeAt(e.position),(h||e.line===n)&&S===58&&(l=!0,S=e.input.charCodeAt(++e.position),tt(e,!0,t),Ps(e,t,Zc,!1,!0),O=e.result),d?Os(e,a,p,m,y,O,n,i,s):l?a.push(Os(e,null,p,m,y,O,n,i,s)):a.push(y),tt(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(r=!0,S=e.input.charCodeAt(++e.position)):r=!1}me(e,"unexpected end of the stream within a flow collection")}function u9(e,t){var r,n,i=Ug,s=!1,o=!1,a=t,u=0,c=!1,f,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)Ug===i?i=l===43?nP:KH:me(e,"repeat of a chomping mode identifier");else if((f=t9(l))>=0)f===0?me(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?me(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(ki(l)){do l=e.input.charCodeAt(++e.position);while(ki(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!Jr(l)&&l!==0)}for(;l!==0;){for(Hg(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Jr(l)){u++;continue}if(e.lineIndent<a){i===nP?e.result+=Li.repeat(`
38
- `,s?1+u:u):i===Ug&&s&&(e.result+=`
39
- `);break}for(n?ki(l)?(c=!0,e.result+=Li.repeat(`
31
+ `+e.mark.snippet),n+" "+r):n}function ca(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=WP(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ca.prototype=Object.create(Error.prototype);ca.prototype.constructor=ca;ca.prototype.toString=function(t){return this.name+": "+WP(this,t)};qP.exports=ca});var UP=F((lQ,GP)=>{"use strict";var la=xs();function Tg(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function Ig(e,t){return la.repeat(" ",t-e.length)+e}function mH(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,c,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)c=Tg(e.buffer,n[o-u],i[o-u],e.position-(n[o]-n[o-u]),l),a=la.repeat(" ",t.indent)+Ig((e.line-u+1).toString(),f)+" | "+c.str+`
32
+ `+a;for(c=Tg(e.buffer,n[o],i[o],e.position,l),a+=la.repeat(" ",t.indent)+Ig((e.line+1).toString(),f)+" | "+c.str+`
33
+ `,a+=la.repeat("-",t.indent+f+3+c.pos)+`^
34
+ `,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)c=Tg(e.buffer,n[o+u],i[o+u],e.position-(n[o]-n[o+u]),l),a+=la.repeat(" ",t.indent)+Ig((e.line+u+1).toString(),f)+" | "+c.str+`
35
+ `;return a.replace(/\n$/,"")}GP.exports=mH});var wt=F((fQ,zP)=>{"use strict";var HP=Ps(),yH=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],vH=["scalar","sequence","mapping"];function AH(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function EH(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(yH.indexOf(r)===-1)throw new HP('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,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.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=AH(t.styleAliases||null),vH.indexOf(this.kind)===-1)throw new HP('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}zP.exports=EH});var Mg=F((hQ,VP)=>{"use strict";var fa=Ps(),Ng=wt();function YP(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function bH(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(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 $g(e){return this.extend(e)}$g.prototype.extend=function(t){var r=[],n=[];if(t instanceof Ng)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new fa("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Ng))throw new fa("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new fa("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new fa("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof Ng))throw new fa("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create($g.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=YP(i,"implicit"),i.compiledExplicit=YP(i,"explicit"),i.compiledTypeMap=bH(i.compiledImplicit,i.compiledExplicit),i};VP.exports=$g});var jg=F((dQ,KP)=>{"use strict";var wH=wt();KP.exports=new wH("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Bg=F((pQ,JP)=>{"use strict";var SH=wt();JP.exports=new SH("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Wg=F((gQ,XP)=>{"use strict";var CH=wt();XP.exports=new CH("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var qg=F((mQ,QP)=>{"use strict";var xH=Mg();QP.exports=new xH({explicit:[jg(),Bg(),Wg()]})});var Gg=F((yQ,ZP)=>{"use strict";var PH=wt();function OH(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function _H(){return null}function RH(e){return e===null}ZP.exports=new PH("tag:yaml.org,2002:null",{kind:"scalar",resolve:OH,construct:_H,predicate:RH,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Ug=F((vQ,eO)=>{"use strict";var FH=wt();function kH(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 DH(e){return e==="true"||e==="True"||e==="TRUE"}function LH(e){return Object.prototype.toString.call(e)==="[object Boolean]"}eO.exports=new FH("tag:yaml.org,2002:bool",{kind:"scalar",resolve:kH,construct:DH,predicate:LH,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Hg=F((AQ,tO)=>{"use strict";var TH=xs(),IH=wt();function NH(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function $H(e){return 48<=e&&e<=55}function MH(e){return 48<=e&&e<=57}function jH(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(!NH(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!$H(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!MH(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function BH(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function WH(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!TH.isNegativeZero(e)}tO.exports=new IH("tag:yaml.org,2002:int",{kind:"scalar",resolve:jH,construct:BH,predicate:WH,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+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"]}})});var zg=F((EQ,nO)=>{"use strict";var rO=xs(),qH=wt(),GH=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function UH(e){return!(e===null||!GH.test(e)||e[e.length-1]==="_")}function HH(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var zH=/^[-+]?[0-9]+e/;function YH(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(rO.isNegativeZero(e))return"-0.0";return r=e.toString(10),zH.test(r)?r.replace("e",".e"):r}function VH(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||rO.isNegativeZero(e))}nO.exports=new qH("tag:yaml.org,2002:float",{kind:"scalar",resolve:UH,construct:HH,predicate:VH,represent:YH,defaultStyle:"lowercase"})});var Yg=F((bQ,iO)=>{"use strict";iO.exports=qg().extend({implicit:[Gg(),Ug(),Hg(),zg()]})});var Vg=F((wQ,sO)=>{"use strict";sO.exports=Yg()});var Kg=F((SQ,uO)=>{"use strict";var KH=wt(),oO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),aO=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 JH(e){return e===null?!1:oO.exec(e)!==null||aO.exec(e)!==null}function XH(e){var t,r,n,i,s,o,a,u=0,c=null,f,l,h;if(t=oO.exec(e),t===null&&(t=aO.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],a=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],l=+(t[11]||0),c=(f*60+l)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,i,s,o,a,u)),c&&h.setTime(h.getTime()-c),h}function QH(e){return e.toISOString()}uO.exports=new KH("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:JH,construct:XH,instanceOf:Date,represent:QH})});var Jg=F((CQ,cO)=>{"use strict";var ZH=wt();function e9(e){return e==="<<"||e===null}cO.exports=new ZH("tag:yaml.org,2002:merge",{kind:"scalar",resolve:e9})});var Qg=F((xQ,lO)=>{"use strict";var t9=wt(),Xg=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
36
+ \r`;function r9(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Xg;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 n9(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Xg,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function i9(e){var t="",r=0,n,i,s=e.length,o=Xg;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 s9(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}lO.exports=new t9("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r9,construct:n9,predicate:s9,represent:i9})});var Zg=F((PQ,fO)=>{"use strict";var o9=wt(),a9=Object.prototype.hasOwnProperty,u9=Object.prototype.toString;function c9(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,u9.call(i)!=="[object Object]")return!1;for(s in i)if(a9.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 l9(e){return e!==null?e:[]}fO.exports=new o9("tag:yaml.org,2002:omap",{kind:"sequence",resolve:c9,construct:l9})});var em=F((OQ,hO)=>{"use strict";var f9=wt(),h9=Object.prototype.toString;function d9(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],h9.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function p9(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}hO.exports=new f9("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:d9,construct:p9})});var tm=F((_Q,dO)=>{"use strict";var g9=wt(),m9=Object.prototype.hasOwnProperty;function y9(e){if(e===null)return!0;var t,r=e;for(t in r)if(m9.call(r,t)&&r[t]!==null)return!1;return!0}function v9(e){return e!==null?e:{}}dO.exports=new g9("tag:yaml.org,2002:set",{kind:"mapping",resolve:y9,construct:v9})});var tl=F((RQ,pO)=>{"use strict";pO.exports=Vg().extend({implicit:[Kg(),Jg()],explicit:[Qg(),Zg(),em(),tm()]})});var kO=F((FQ,sm)=>{"use strict";var Li=xs(),bO=Ps(),A9=UP(),E9=tl(),Xn=Object.prototype.hasOwnProperty,rl=1,wO=2,SO=3,nl=4,rm=1,b9=2,gO=3,w9=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,S9=/[\x85\u2028\u2029]/,C9=/[,\[\]\{\}]/,CO=/^(?:!|!!|![a-z\-]+!)$/i,xO=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function mO(e){return Object.prototype.toString.call(e)}function Jr(e){return e===10||e===13}function Ti(e){return e===9||e===32}function Gt(e){return e===9||e===32||e===10||e===13}function Os(e){return e===44||e===91||e===93||e===123||e===125}function x9(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function P9(e){return e===120?2:e===117?4:e===85?8:0}function O9(e){return 48<=e&&e<=57?e-48:-1}function yO(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
37
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function _9(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function PO(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}var OO=new Array(256),_O=new Array(256);for(Di=0;Di<256;Di++)OO[Di]=yO(Di)?1:0,_O[Di]=yO(Di);var Di;function R9(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||E9,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.firstTabInLine=-1,this.documents=[]}function RO(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=A9(r),new bO(t,r)}function ye(e,t){throw RO(e,t)}function il(e,t){e.onWarning&&e.onWarning.call(null,RO(e,t))}var vO={YAML:function(t,r,n){var i,s,o;t.version!==null&&ye(t,"duplication of %YAML directive"),n.length!==1&&ye(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ye(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&ye(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&il(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&ye(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],CO.test(i)||ye(t,"ill-formed tag handle (first argument) of the TAG directive"),Xn.call(t.tagMap,i)&&ye(t,'there is a previously declared suffix for "'+i+'" tag handle'),xO.test(s)||ye(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ye(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Jn(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||ye(e,"expected valid JSON character");else w9.test(a)&&ye(e,"the stream contains non-printable characters");e.result+=a}}function AO(e,t,r,n){var i,s,o,a;for(Li.isObject(r)||ye(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],Xn.call(t,s)||(PO(t,s,r[s]),n[s]=!0)}function _s(e,t,r,n,i,s,o,a,u){var c,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,f=i.length;c<f;c+=1)Array.isArray(i[c])&&ye(e,"nested arrays are not supported inside keys"),typeof i=="object"&&mO(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&mO(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,f=s.length;c<f;c+=1)AO(e,t,s[c],r);else AO(e,t,s,r);else!e.json&&!Xn.call(r,i)&&Xn.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,ye(e,"duplicated mapping key")),PO(t,i,s),delete r[i];return t}function nm(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++):ye(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function nt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Ti(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),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(Jr(i))for(nm(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&&il(e,"deficient indentation"),n}function sl(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||Gt(r)))}function im(e,t){t===1?e.result+=" ":t>1&&(e.result+=Li.repeat(`
38
+ `,t-1))}function F9(e,t,r){var n,i,s,o,a,u,c,f,l=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),Gt(d)||Os(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),Gt(i)||r&&Os(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),Gt(i)||r&&Os(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),Gt(n))break}else{if(e.position===e.lineStart&&sl(e)||r&&Os(d))break;if(Jr(d))if(u=e.line,c=e.lineStart,f=e.lineIndent,nt(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=c,e.lineIndent=f;break}}a&&(Jn(e,s,o,!1),im(e,e.line-u),s=o=e.position,a=!1),Ti(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Jn(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function k9(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(Jn(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 Jr(r)?(Jn(e,n,i,!0),im(e,nt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&sl(e)?ye(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ye(e,"unexpected end of the stream within a single quoted scalar")}function D9(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Jn(e,r,e.position,!0),e.position++,!0;if(a===92){if(Jn(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Jr(a))nt(e,!1,t);else if(a<256&&OO[a])e.result+=_O[a],e.position++;else if((o=P9(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=x9(a))>=0?s=(s<<4)+o:ye(e,"expected hexadecimal character");e.result+=_9(s),e.position++}else ye(e,"unknown escape sequence");r=n=e.position}else Jr(a)?(Jn(e,r,n,!0),im(e,nt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&sl(e)?ye(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ye(e,"unexpected end of the stream within a double quoted scalar")}function L9(e,t){var r=!0,n,i,s,o=e.tag,a,u=e.anchor,c,f,l,h,d,p=Object.create(null),y,m,P,S;if(S=e.input.charCodeAt(e.position),S===91)f=93,d=!1,a=[];else if(S===123)f=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),S=e.input.charCodeAt(++e.position);S!==0;){if(nt(e,!0,t),S=e.input.charCodeAt(e.position),S===f)return e.position++,e.tag=o,e.anchor=u,e.kind=d?"mapping":"sequence",e.result=a,!0;r?S===44&&ye(e,"expected the node content, but found ','"):ye(e,"missed comma between flow collection entries"),m=y=P=null,l=h=!1,S===63&&(c=e.input.charCodeAt(e.position+1),Gt(c)&&(l=h=!0,e.position++,nt(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Rs(e,t,rl,!1,!0),m=e.tag,y=e.result,nt(e,!0,t),S=e.input.charCodeAt(e.position),(h||e.line===n)&&S===58&&(l=!0,S=e.input.charCodeAt(++e.position),nt(e,!0,t),Rs(e,t,rl,!1,!0),P=e.result),d?_s(e,a,p,m,y,P,n,i,s):l?a.push(_s(e,null,p,m,y,P,n,i,s)):a.push(y),nt(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(r=!0,S=e.input.charCodeAt(++e.position)):r=!1}ye(e,"unexpected end of the stream within a flow collection")}function T9(e,t){var r,n,i=rm,s=!1,o=!1,a=t,u=0,c=!1,f,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)rm===i?i=l===43?gO:b9:ye(e,"repeat of a chomping mode identifier");else if((f=O9(l))>=0)f===0?ye(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ye(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(Ti(l)){do l=e.input.charCodeAt(++e.position);while(Ti(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!Jr(l)&&l!==0)}for(;l!==0;){for(nm(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Jr(l)){u++;continue}if(e.lineIndent<a){i===gO?e.result+=Li.repeat(`
39
+ `,s?1+u:u):i===rm&&s&&(e.result+=`
40
+ `);break}for(n?Ti(l)?(c=!0,e.result+=Li.repeat(`
40
41
  `,s?1+u:u)):c?(c=!1,e.result+=Li.repeat(`
41
42
  `,u+1)):u===0?s&&(e.result+=" "):e.result+=Li.repeat(`
42
43
  `,u):e.result+=Li.repeat(`
43
- `,s?1+u:u),s=!0,o=!0,u=0,r=e.position;!Jr(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Xn(e,r,e.position,!1)}return!0}function uP(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,me(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!qt(o))));){if(a=!0,e.position++,tt(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Ps(e,t,fP,!1,!0),s.push(e.result),tt(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)me(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function c9(e,t,r){var n,i,s,o,a,u,c=e.tag,f=e.anchor,l={},h=Object.create(null),d=null,p=null,y=null,m=!1,O=!1,S;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),S=e.input.charCodeAt(e.position);S!==0;){if(!m&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,me(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(S===63||S===58)&&qt(n))S===63?(m&&(Os(e,l,h,d,p,null,o,a,u),d=p=y=null),O=!0,m=!0,i=!0):m?(m=!1,i=!0):me(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,S=n;else{if(o=e.line,a=e.lineStart,u=e.position,!Ps(e,r,lP,!1,!0))break;if(e.line===s){for(S=e.input.charCodeAt(e.position);ki(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),qt(S)||me(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Os(e,l,h,d,p,null,o,a,u),d=p=y=null),O=!0,m=!1,i=!1,d=e.tag,p=e.result;else if(O)me(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=f,!0}else if(O)me(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(m&&(o=e.line,a=e.lineStart,u=e.position),Ps(e,t,el,!0,i)&&(m?p=e.result:y=e.result),m||(Os(e,l,h,d,p,y,o,a,u),d=p=y=null),tt(e,!0,-1),S=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&S!==0)me(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Os(e,l,h,d,p,null,o,a,u),O&&(e.tag=c,e.anchor=f,e.kind="mapping",e.result=l),O}function l9(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&&me(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)):me(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!qt(o);)o===33&&(n?me(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),hP.test(i)||me(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)&&me(e,"tag suffix cannot contain flow indicator characters")}s&&!dP.test(s)&&me(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{me(e,"tag name is malformed: "+s)}return r?e.tag=s:Jn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:me(e,'undeclared tag handle "'+i+'"'),!0}function f9(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&me(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!qt(r)&&!xs(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&me(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function h9(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&&!qt(n)&&!xs(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&me(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Jn.call(e.anchorMap,r)||me(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],tt(e,!0,-1),!0}function Ps(e,t,r,n,i){var s,o,a,u=1,c=!1,f=!1,l,h,d,p,y,m;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=el===r||fP===r,n&&tt(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;l9(e)||f9(e);)tt(e,!0,-1)?(c=!0,a=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||el===r)&&(Zc===r||lP===r?y=t:y=t+1,m=e.position-e.lineStart,u===1?a&&(uP(e,m)||c9(e,m,y))||a9(e,y)?f=!0:(o&&u9(e,y)||s9(e,y)||o9(e,y)?f=!0:h9(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&me(e,"alias node should not have any properties")):i9(e,y,Zc===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=a&&uP(e,m))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&me(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(p=e.implicitTypes[l],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Jn.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,h=d.length;l<h;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){p=d[l];break}p||me(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&me(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):me(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function d9(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(tt(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&&!qt(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&me(e,"directive name must not be less than one character in length");o!==0;){for(;ki(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Jr(o));break}if(Jr(o))break;for(r=e.position;o!==0&&!qt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&Hg(e),Jn.call(oP,n)?oP[n](e,n,i):tl(e,'unknown document directive "'+n+'"')}if(tt(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,tt(e,!0,-1)):s&&me(e,"directives end mark is expected"),Ps(e,e.lineIndent-1,el,!1,!0),tt(e,!0,-1),e.checkLineBreaks&&JH.test(e.input.slice(t,e.position))&&tl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&rl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,tt(e,!0,-1));return}if(e.position<e.length-1)me(e,"end of the stream or a document separator is expected");else return}function vP(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
44
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new n9(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,me(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;)d9(r);return r.documents}function p9(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=vP(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function g9(e,t){var r=vP(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new cP("expected a single document in the stream, but found more")}}Yg.exports.loadAll=p9;Yg.exports.load=g9});var BP=F((UJ,jP)=>{"use strict";var sl=Ss(),da=Cs(),m9=Qc(),_P=Object.prototype.toString,RP=Object.prototype.hasOwnProperty,Qg=65279,y9=9,la=10,v9=13,A9=32,E9=33,b9=34,Vg=35,w9=37,S9=38,C9=39,x9=42,FP=44,O9=45,nl=58,P9=61,_9=62,R9=63,F9=64,DP=91,LP=93,D9=96,kP=123,L9=124,TP=125,wt={};wt[0]="\\0";wt[7]="\\a";wt[8]="\\b";wt[9]="\\t";wt[10]="\\n";wt[11]="\\v";wt[12]="\\f";wt[13]="\\r";wt[27]="\\e";wt[34]='\\"';wt[92]="\\\\";wt[133]="\\N";wt[160]="\\_";wt[8232]="\\L";wt[8233]="\\P";var k9=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],T9=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function I9(e,t){var r,n,i,s,o,a,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&RP.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function N9(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 da("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+sl.repeat("0",n-t.length)+t}var $9=1,fa=2;function M9(e){this.schema=e.schema||m9,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=sl.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=I9(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.quotingType=e.quotingType==='"'?fa:$9,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function EP(e,t){for(var r=sl.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
44
+ `,s?1+u:u),s=!0,o=!0,u=0,r=e.position;!Jr(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Jn(e,r,e.position,!1)}return!0}function EO(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ye(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!Gt(o))));){if(a=!0,e.position++,nt(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Rs(e,t,SO,!1,!0),s.push(e.result),nt(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)ye(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function I9(e,t,r){var n,i,s,o,a,u,c=e.tag,f=e.anchor,l={},h=Object.create(null),d=null,p=null,y=null,m=!1,P=!1,S;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),S=e.input.charCodeAt(e.position);S!==0;){if(!m&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ye(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(S===63||S===58)&&Gt(n))S===63?(m&&(_s(e,l,h,d,p,null,o,a,u),d=p=y=null),P=!0,m=!0,i=!0):m?(m=!1,i=!0):ye(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,S=n;else{if(o=e.line,a=e.lineStart,u=e.position,!Rs(e,r,wO,!1,!0))break;if(e.line===s){for(S=e.input.charCodeAt(e.position);Ti(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),Gt(S)||ye(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(_s(e,l,h,d,p,null,o,a,u),d=p=y=null),P=!0,m=!1,i=!1,d=e.tag,p=e.result;else if(P)ye(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=f,!0}else if(P)ye(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(m&&(o=e.line,a=e.lineStart,u=e.position),Rs(e,t,nl,!0,i)&&(m?p=e.result:y=e.result),m||(_s(e,l,h,d,p,y,o,a,u),d=p=y=null),nt(e,!0,-1),S=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&S!==0)ye(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&_s(e,l,h,d,p,null,o,a,u),P&&(e.tag=c,e.anchor=f,e.kind="mapping",e.result=l),P}function N9(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&&ye(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)):ye(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Gt(o);)o===33&&(n?ye(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),CO.test(i)||ye(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),C9.test(s)&&ye(e,"tag suffix cannot contain flow indicator characters")}s&&!xO.test(s)&&ye(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ye(e,"tag name is malformed: "+s)}return r?e.tag=s:Xn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ye(e,'undeclared tag handle "'+i+'"'),!0}function $9(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ye(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Gt(r)&&!Os(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ye(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function M9(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&&!Gt(n)&&!Os(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ye(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Xn.call(e.anchorMap,r)||ye(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],nt(e,!0,-1),!0}function Rs(e,t,r,n,i){var s,o,a,u=1,c=!1,f=!1,l,h,d,p,y,m;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=nl===r||SO===r,n&&nt(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;N9(e)||$9(e);)nt(e,!0,-1)?(c=!0,a=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||nl===r)&&(rl===r||wO===r?y=t:y=t+1,m=e.position-e.lineStart,u===1?a&&(EO(e,m)||I9(e,m,y))||L9(e,y)?f=!0:(o&&T9(e,y)||k9(e,y)||D9(e,y)?f=!0:M9(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&ye(e,"alias node should not have any properties")):F9(e,y,rl===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=a&&EO(e,m))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ye(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(p=e.implicitTypes[l],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Xn.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,h=d.length;l<h;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){p=d[l];break}p||ye(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&ye(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ye(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function j9(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(nt(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&&!Gt(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ye(e,"directive name must not be less than one character in length");o!==0;){for(;Ti(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Jr(o));break}if(Jr(o))break;for(r=e.position;o!==0&&!Gt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&nm(e),Xn.call(vO,n)?vO[n](e,n,i):il(e,'unknown document directive "'+n+'"')}if(nt(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,nt(e,!0,-1)):s&&ye(e,"directives end mark is expected"),Rs(e,e.lineIndent-1,nl,!1,!0),nt(e,!0,-1),e.checkLineBreaks&&S9.test(e.input.slice(t,e.position))&&il(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&sl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,nt(e,!0,-1));return}if(e.position<e.length-1)ye(e,"end of the stream or a document separator is expected");else return}function FO(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
45
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new R9(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ye(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;)j9(r);return r.documents}function B9(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=FO(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function W9(e,t){var r=FO(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new bO("expected a single document in the stream, but found more")}}sm.exports.loadAll=B9;sm.exports.load=W9});var QO=F((kQ,XO)=>{"use strict";var ul=xs(),ma=Ps(),q9=tl(),BO=Object.prototype.toString,WO=Object.prototype.hasOwnProperty,lm=65279,G9=9,da=10,U9=13,H9=32,z9=33,Y9=34,om=35,V9=37,K9=38,J9=39,X9=42,qO=44,Q9=45,ol=58,Z9=61,e6=62,t6=63,r6=64,GO=91,UO=93,n6=96,HO=123,i6=124,zO=125,St={};St[0]="\\0";St[7]="\\a";St[8]="\\b";St[9]="\\t";St[10]="\\n";St[11]="\\v";St[12]="\\f";St[13]="\\r";St[27]="\\e";St[34]='\\"';St[92]="\\\\";St[133]="\\N";St[160]="\\_";St[8232]="\\L";St[8233]="\\P";var s6=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],o6=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function a6(e,t){var r,n,i,s,o,a,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&WO.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function u6(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 ma("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ul.repeat("0",n-t.length)+t}var c6=1,pa=2;function l6(e){this.schema=e.schema||q9,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ul.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=a6(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.quotingType=e.quotingType==='"'?pa:c6,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function DO(e,t){for(var r=ul.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
45
46
  `,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
46
- `&&(s+=r),s+=o;return s}function Kg(e,t){return`
47
- `+sl.repeat(" ",e.indent*t)}function j9(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 il(e){return e===A9||e===y9}function ha(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Qg||65536<=e&&e<=1114111}function bP(e){return ha(e)&&e!==Qg&&e!==v9&&e!==la}function wP(e,t,r){var n=bP(e),i=n&&!il(e);return(r?n:n&&e!==FP&&e!==DP&&e!==LP&&e!==kP&&e!==TP)&&e!==Vg&&!(t===nl&&!i)||bP(t)&&!il(t)&&e===Vg||t===nl&&i}function B9(e){return ha(e)&&e!==Qg&&!il(e)&&e!==O9&&e!==R9&&e!==nl&&e!==FP&&e!==DP&&e!==LP&&e!==kP&&e!==TP&&e!==Vg&&e!==S9&&e!==x9&&e!==E9&&e!==L9&&e!==P9&&e!==_9&&e!==C9&&e!==b9&&e!==w9&&e!==F9&&e!==D9}function W9(e){return!il(e)&&e!==nl}function ca(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function IP(e){var t=/^\n* /;return t.test(e)}var NP=1,Xg=2,$P=3,MP=4,_s=5;function q9(e,t,r,n,i,s,o,a){var u,c=0,f=null,l=!1,h=!1,d=n!==-1,p=-1,y=B9(ca(e,0))&&W9(ca(e,e.length-1));if(t||o)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=ca(e,u),!ha(c))return _s;y=y&&wP(c,f,a),f=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=ca(e,u),c===la)l=!0,d&&(h=h||u-p-1>n&&e[p+1]!==" ",p=u);else if(!ha(c))return _s;y=y&&wP(c,f,a),f=c}h=h||d&&u-p-1>n&&e[p+1]!==" "}return!l&&!h?y&&!o&&!i(e)?NP:s===fa?_s:Xg:r>9&&IP(e)?_s:o?s===fa?_s:Xg:h?MP:$P}function G9(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===fa?'""':"''";if(!e.noCompatMode&&(k9.indexOf(t)!==-1||T9.test(t)))return e.quotingType===fa?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return j9(e,c)}switch(q9(t,a,e.indent,o,u,e.quotingType,e.forceQuotes&&!n,i)){case NP:return t;case Xg:return"'"+t.replace(/'/g,"''")+"'";case $P:return"|"+SP(t,e.indent)+CP(EP(t,s));case MP:return">"+SP(t,e.indent)+CP(EP(U9(t,o),s));case _s:return'"'+H9(t,o)+'"';default:throw new da("impossible error: invalid scalar style")}}()}function SP(e,t){var r=IP(e)?String(t):"",n=e[e.length-1]===`
47
+ `&&(s+=r),s+=o;return s}function am(e,t){return`
48
+ `+ul.repeat(" ",e.indent*t)}function f6(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 al(e){return e===H9||e===G9}function ga(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==lm||65536<=e&&e<=1114111}function LO(e){return ga(e)&&e!==lm&&e!==U9&&e!==da}function TO(e,t,r){var n=LO(e),i=n&&!al(e);return(r?n:n&&e!==qO&&e!==GO&&e!==UO&&e!==HO&&e!==zO)&&e!==om&&!(t===ol&&!i)||LO(t)&&!al(t)&&e===om||t===ol&&i}function h6(e){return ga(e)&&e!==lm&&!al(e)&&e!==Q9&&e!==t6&&e!==ol&&e!==qO&&e!==GO&&e!==UO&&e!==HO&&e!==zO&&e!==om&&e!==K9&&e!==X9&&e!==z9&&e!==i6&&e!==Z9&&e!==e6&&e!==J9&&e!==Y9&&e!==V9&&e!==r6&&e!==n6}function d6(e){return!al(e)&&e!==ol}function ha(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function YO(e){var t=/^\n* /;return t.test(e)}var VO=1,um=2,KO=3,JO=4,Fs=5;function p6(e,t,r,n,i,s,o,a){var u,c=0,f=null,l=!1,h=!1,d=n!==-1,p=-1,y=h6(ha(e,0))&&d6(ha(e,e.length-1));if(t||o)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=ha(e,u),!ga(c))return Fs;y=y&&TO(c,f,a),f=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=ha(e,u),c===da)l=!0,d&&(h=h||u-p-1>n&&e[p+1]!==" ",p=u);else if(!ga(c))return Fs;y=y&&TO(c,f,a),f=c}h=h||d&&u-p-1>n&&e[p+1]!==" "}return!l&&!h?y&&!o&&!i(e)?VO:s===pa?Fs:um:r>9&&YO(e)?Fs:o?s===pa?Fs:um:h?JO:KO}function g6(e,t,r,n,i){e.dump=(function(){if(t.length===0)return e.quotingType===pa?'""':"''";if(!e.noCompatMode&&(s6.indexOf(t)!==-1||o6.test(t)))return e.quotingType===pa?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return f6(e,c)}switch(p6(t,a,e.indent,o,u,e.quotingType,e.forceQuotes&&!n,i)){case VO:return t;case um:return"'"+t.replace(/'/g,"''")+"'";case KO:return"|"+IO(t,e.indent)+NO(DO(t,s));case JO:return">"+IO(t,e.indent)+NO(DO(m6(t,o),s));case Fs:return'"'+y6(t,o)+'"';default:throw new ma("impossible error: invalid scalar style")}})()}function IO(e,t){var r=YO(e)?String(t):"",n=e[e.length-1]===`
48
49
  `,i=n&&(e[e.length-2]===`
49
50
  `||e===`
50
51
  `),s=i?"+":n?"":"-";return r+s+`
51
- `}function CP(e){return e[e.length-1]===`
52
- `?e.slice(0,-1):e}function U9(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
53
- `);return c=c!==-1?c:e.length,r.lastIndex=c,xP(e.slice(0,c),t)}(),i=e[0]===`
52
+ `}function NO(e){return e[e.length-1]===`
53
+ `?e.slice(0,-1):e}function m6(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var c=e.indexOf(`
54
+ `);return c=c!==-1?c:e.length,r.lastIndex=c,$O(e.slice(0,c),t)})(),i=e[0]===`
54
55
  `||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],u=o[2];s=u[0]===" ",n+=a+(!i&&!s&&u!==""?`
55
- `:"")+xP(u,t),i=s}return n}function xP(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,u="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,u+=`
56
+ `:"")+$O(u,t),i=s}return n}function $O(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,u="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,u+=`
56
57
  `+e.slice(i,s),i=s+1),o=a;return u+=`
57
58
  `,e.length-i>t&&o>i?u+=e.slice(i,o)+`
58
- `+e.slice(o+1):u+=e.slice(i),u.slice(1)}function H9(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=ca(e,i),n=wt[r],!n&&ha(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||N9(r);return t}function z9(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(gn(e,t,a,!1,!1)||typeof a>"u"&&gn(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function OP(e,t,r,n){var i="",s=e.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],e.replacer&&(u=e.replacer.call(r,String(o),u)),(gn(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&gn(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Kg(e,t)),e.dump&&la===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function Y9(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,u,c,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[o],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),gn(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),gn(e,t,c,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function V9(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,u,c,f,l,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new da("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)h="",(!n||i!=="")&&(h+=Kg(e,t)),c=o[a],f=r[c],e.replacer&&(f=e.replacer.call(r,c,f)),gn(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&la===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=Kg(e,t)),gn(e,t+1,f,!0,l)&&(e.dump&&la===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function PP(e,t,r){var n,i,s,o,a,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(u=e.styleMap[a.tag]||a.defaultStyle,_P.call(a.represent)==="[object Function]")n=a.represent(t,u);else if(RP.call(a.represent,u))n=a.represent[u](t,u);else throw new da("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function gn(e,t,r,n,i,s,o){e.tag=null,e.dump=r,PP(e,r,!1)||PP(e,r,!0);var a=_P.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",l,h;if(f&&(l=e.duplicates.indexOf(r),h=l!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(V9(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(Y9(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?OP(e,t-1,e.dump,i):OP(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(z9(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&G9(e,e.dump,t,s,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new da("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function K9(e,t){var r=[],n=[],i,s;for(Jg(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Jg(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)Jg(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Jg(e[n[i]],t,r)}function X9(e,t){t=t||{};var r=new M9(t);r.noRefs||K9(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),gn(r,0,n,!0,!0)?r.dump+`
59
- `:""}jP.exports.dump=X9});var qP=F((HJ,Nt)=>{"use strict";var WP=AP(),J9=BP();function Zg(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}Nt.exports.Type=bt();Nt.exports.Schema=Og();Nt.exports.FAILSAFE_SCHEMA=Fg();Nt.exports.JSON_SCHEMA=Ig();Nt.exports.CORE_SCHEMA=Ng();Nt.exports.DEFAULT_SCHEMA=Qc();Nt.exports.load=WP.load;Nt.exports.loadAll=WP.loadAll;Nt.exports.dump=J9.dump;Nt.exports.YAMLException=Cs();Nt.exports.types={binary:Bg(),float:Tg(),map:Rg(),null:Dg(),pairs:qg(),set:Gg(),timestamp:$g(),bool:Lg(),int:kg(),merge:Mg(),omap:Wg(),seq:_g(),str:Pg()};Nt.exports.safeLoad=Zg("safeLoad","load");Nt.exports.safeLoadAll=Zg("safeLoadAll","loadAll");Nt.exports.safeDump=Zg("safeDump","dump")});var em=F(Rs=>{"use strict";var Q9=Rs&&Rs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.readYaml=void 0;var Z9=Q9(require("fs"));function e6(e){let t=qP(),r=Z9.default.readFileSync(e,"utf8");return t.load(r)}Rs.readYaml=e6});var nm=F(St=>{"use strict";var t6=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(St,"__esModule",{value:!0});St.getWorkspacesAsync=St.getWorkspaces=St.getPnpmWorkspacesAsync=St.getPnpmWorkspaces=St.getWorkspacePackagePaths=St.getPnpmWorkspaceRoot=void 0;var r6=t6(require("path")),n6=Kc(),GP=ia(),i6=em(),tm=Oi(),s6=gs();function UP(e){let t=(0,s6.getWorkspaceManagerAndRoot)(e,void 0,"pnpm")?.root;if(!t)throw new Error("Could not find pnpm workspace root from "+e);return t}St.getPnpmWorkspaceRoot=UP;function rm(e){try{let t=UP(e),r=r6.default.join(t,"pnpm-workspace.yaml"),n=(0,i6.readYaml)(r);return(0,n6.getPackagePaths)(t,n.packages)}catch(t){return(0,tm.logVerboseWarning)(`Error getting pnpm workspace package paths for ${e}`,t),[]}}St.getWorkspacePackagePaths=rm;function HP(e){try{let t=rm(e);return(0,GP.getWorkspacePackageInfo)(t)}catch(t){return(0,tm.logVerboseWarning)(`Error getting pnpm workspaces for ${e}`,t),[]}}St.getPnpmWorkspaces=HP;St.getWorkspaces=HP;async function zP(e){try{let t=rm(e);return(0,GP.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,tm.logVerboseWarning)(`Error getting pnpm workspaces for ${e}`,t),[]}}St.getPnpmWorkspacesAsync=zP;St.getWorkspacesAsync=zP});var im=F((VJ,Qr)=>{var YP=Qr.exports;Qr.exports.isWhiteSpace=function(t){return t===" "||t==="\xA0"||t==="\uFEFF"||t>=" "&&t<="\r"||t==="\u1680"||t>="\u2000"&&t<="\u200A"||t==="\u2028"||t==="\u2029"||t==="\u202F"||t==="\u205F"||t==="\u3000"};Qr.exports.isWhiteSpaceJSON=function(t){return t===" "||t===" "||t===`
60
- `||t==="\r"};Qr.exports.isLineTerminator=function(t){return t===`
61
- `||t==="\r"||t==="\u2028"||t==="\u2029"};Qr.exports.isLineTerminatorJSON=function(t){return t===`
62
- `||t==="\r"};Qr.exports.isIdentifierStart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="\x80"&&YP.NonAsciiIdentifierStart.test(t)};Qr.exports.isIdentifierPart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="0"&&t<="9"||t>="\x80"&&YP.NonAsciiIdentifierPart.test(t)};Qr.exports.NonAsciiIdentifierStart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;Qr.exports.NonAsciiIdentifierPart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/});var ga=F((KJ,ol)=>{var mn=im();function Fs(e){return e>="0"&&e<="9"||e>="A"&&e<="F"||e>="a"&&e<="f"}function Ds(e){return e>="0"&&e<="7"}function pa(e){return e>="0"&&e<="9"}var VP={"'":"'",'"':'"',"\\":"\\",b:"\b",f:"\f",n:`
63
- `,r:"\r",t:" ",v:"\v","/":"/"};function o6(e,t,r,n,i,s){var o=t+" at "+(n+1)+":"+(i+1),a=r-i-1,u="",c="",f=s?mn.isLineTerminator:mn.isLineTerminatorJSON;for(a<r-70&&(a=r-70);;){var l=e[++a];if(f(l)||a===e.length){r>=a&&(c+="^");break}if(u+=l,r===a?c+="^":r>a&&(c+=e[a]===" "?" ":" "),u.length>78)break}return o+`
59
+ `+e.slice(o+1):u+=e.slice(i),u.slice(1)}function y6(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=ha(e,i),n=St[r],!n&&ga(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||u6(r);return t}function v6(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(gn(e,t,a,!1,!1)||typeof a>"u"&&gn(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function MO(e,t,r,n){var i="",s=e.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],e.replacer&&(u=e.replacer.call(r,String(o),u)),(gn(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&gn(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=am(e,t)),e.dump&&da===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function A6(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,u,c,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[o],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),gn(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),gn(e,t,c,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function E6(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,u,c,f,l,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new ma("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)h="",(!n||i!=="")&&(h+=am(e,t)),c=o[a],f=r[c],e.replacer&&(f=e.replacer.call(r,c,f)),gn(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&da===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=am(e,t)),gn(e,t+1,f,!0,l)&&(e.dump&&da===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function jO(e,t,r){var n,i,s,o,a,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(u=e.styleMap[a.tag]||a.defaultStyle,BO.call(a.represent)==="[object Function]")n=a.represent(t,u);else if(WO.call(a.represent,u))n=a.represent[u](t,u);else throw new ma("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function gn(e,t,r,n,i,s,o){e.tag=null,e.dump=r,jO(e,r,!1)||jO(e,r,!0);var a=BO.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",l,h;if(f&&(l=e.duplicates.indexOf(r),h=l!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(E6(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(A6(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?MO(e,t-1,e.dump,i):MO(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(v6(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&g6(e,e.dump,t,s,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ma("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function b6(e,t){var r=[],n=[],i,s;for(cm(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function cm(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)cm(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)cm(e[n[i]],t,r)}function w6(e,t){t=t||{};var r=new l6(t);r.noRefs||b6(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),gn(r,0,n,!0,!0)?r.dump+`
60
+ `:""}XO.exports.dump=w6});var e_=F((DQ,Nt)=>{"use strict";var ZO=kO(),S6=QO();function fm(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}Nt.exports.Type=wt();Nt.exports.Schema=Mg();Nt.exports.FAILSAFE_SCHEMA=qg();Nt.exports.JSON_SCHEMA=Yg();Nt.exports.CORE_SCHEMA=Vg();Nt.exports.DEFAULT_SCHEMA=tl();Nt.exports.load=ZO.load;Nt.exports.loadAll=ZO.loadAll;Nt.exports.dump=S6.dump;Nt.exports.YAMLException=Ps();Nt.exports.types={binary:Qg(),float:zg(),map:Wg(),null:Gg(),pairs:em(),set:tm(),timestamp:Kg(),bool:Ug(),int:Hg(),merge:Jg(),omap:Zg(),seq:Bg(),str:jg()};Nt.exports.safeLoad=fm("safeLoad","load");Nt.exports.safeLoadAll=fm("safeLoadAll","loadAll");Nt.exports.safeDump=fm("safeDump","dump")});var cl=F(ks=>{"use strict";var C6=ks&&ks.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ks,"__esModule",{value:!0});ks.readYaml=void 0;var x6=C6(require("fs"));function P6(e){let t=e_(),r=x6.default.readFileSync(e,"utf8");return t.load(r)}ks.readYaml=P6});var hm=F(Ye=>{"use strict";var t_=Ye&&Ye.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.getCatalogs=Ye.getWorkspacesAsync=Ye.getWorkspaces=Ye.getYarnCatalogs=Ye.getYarnWorkspacesAsync=Ye.getYarnWorkspaces=Ye.getWorkspacePackagePathsAsync=Ye.getWorkspacePackagePaths=Ye.getYarnWorkspaceRoot=void 0;var O6=t_(require("fs")),_6=t_(require("path")),R6=Pi(),ll=Lg(),F6=aa(),k6=hn(),D6=cl();function Ds(e){let t=(0,R6.getWorkspaceManagerAndRoot)(e,void 0,"yarn")?.root;if(!t)throw new Error("Could not find yarn workspace root from "+e);return t}Ye.getYarnWorkspaceRoot=Ds;function L6(e){let t=Ds(e);return(0,ll.getPackagePathsFromWorkspaceRoot)(t)}Ye.getWorkspacePackagePaths=L6;function T6(e){let t=Ds(e);return(0,ll.getPackagePathsFromWorkspaceRootAsync)(t)}Ye.getWorkspacePackagePathsAsync=T6;function r_(e){let t=Ds(e);return(0,ll.getWorkspaceInfoFromWorkspaceRoot)(t)}Ye.getYarnWorkspaces=r_;Ye.getWorkspaces=r_;function n_(e){let t=Ds(e);return(0,ll.getWorkspaceInfoFromWorkspaceRootAsync)(t)}Ye.getYarnWorkspacesAsync=n_;Ye.getWorkspacesAsync=n_;function i_(e){try{let t=Ds(e),r=_6.default.join(t,".yarnrc.yml");if(O6.default.existsSync(r)){let n=(0,D6.readYaml)(r);if(n?.catalog||n?.catalogs)return{default:n.catalog,named:n.catalogs}}else{let n=(0,F6.getPackageInfo)(t)?.workspaces;if(n&&!Array.isArray(n)&&(n?.catalog||n?.catalogs))return{named:n.catalogs,default:n.catalog}}}catch(t){(0,k6.logVerboseWarning)(`Error getting yarn catalogs for ${e}`,t);return}}Ye.getYarnCatalogs=i_;Ye.getCatalogs=i_});var pm=F(it=>{"use strict";var I6=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(it,"__esModule",{value:!0});it.getCatalogs=it.getWorkspacesAsync=it.getWorkspaces=it.getPnpmCatalogs=it.getPnpmWorkspacesAsync=it.getPnpmWorkspaces=it.getWorkspacePackagePaths=it.getPnpmWorkspaceRoot=void 0;var N6=I6(require("path")),$6=Xc(),s_=ua(),M6=cl(),fl=hn(),j6=ys();function o_(e){let t=a_(e),r=N6.default.join(t,"pnpm-workspace.yaml");return{root:t,workspaceYaml:(0,M6.readYaml)(r)}}function a_(e){let t=(0,j6.getWorkspaceManagerAndRoot)(e,void 0,"pnpm")?.root;if(!t)throw new Error("Could not find pnpm workspace root from "+e);return t}it.getPnpmWorkspaceRoot=a_;function dm(e){try{let{root:t,workspaceYaml:r}=o_(e);return(0,$6.getPackagePaths)(t,r.packages)}catch(t){return(0,fl.logVerboseWarning)(`Error getting pnpm workspace package paths for ${e}`,t),[]}}it.getWorkspacePackagePaths=dm;function u_(e){try{let t=dm(e);return(0,s_.getWorkspacePackageInfo)(t)}catch(t){return(0,fl.logVerboseWarning)(`Error getting pnpm workspaces for ${e}`,t),[]}}it.getPnpmWorkspaces=u_;it.getWorkspaces=u_;async function c_(e){try{let t=dm(e);return(0,s_.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,fl.logVerboseWarning)(`Error getting pnpm workspaces for ${e}`,t),[]}}it.getPnpmWorkspacesAsync=c_;it.getWorkspacesAsync=c_;function l_(e){try{let{workspaceYaml:t}=o_(e);return!t.catalog&&!t.catalogs?void 0:{default:t.catalog,named:t.catalogs}}catch(t){(0,fl.logVerboseWarning)(`Error getting pnpm catalogs for ${e}`,t);return}}it.getPnpmCatalogs=l_;it.getCatalogs=l_});var gm=F((NQ,Xr)=>{var f_=Xr.exports;Xr.exports.isWhiteSpace=function(t){return t===" "||t==="\xA0"||t==="\uFEFF"||t>=" "&&t<="\r"||t==="\u1680"||t>="\u2000"&&t<="\u200A"||t==="\u2028"||t==="\u2029"||t==="\u202F"||t==="\u205F"||t==="\u3000"};Xr.exports.isWhiteSpaceJSON=function(t){return t===" "||t===" "||t===`
61
+ `||t==="\r"};Xr.exports.isLineTerminator=function(t){return t===`
62
+ `||t==="\r"||t==="\u2028"||t==="\u2029"};Xr.exports.isLineTerminatorJSON=function(t){return t===`
63
+ `||t==="\r"};Xr.exports.isIdentifierStart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="\x80"&&f_.NonAsciiIdentifierStart.test(t)};Xr.exports.isIdentifierPart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="0"&&t<="9"||t>="\x80"&&f_.NonAsciiIdentifierPart.test(t)};Xr.exports.NonAsciiIdentifierStart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;Xr.exports.NonAsciiIdentifierPart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/});var va=F(($Q,hl)=>{var mn=gm();function Ls(e){return e>="0"&&e<="9"||e>="A"&&e<="F"||e>="a"&&e<="f"}function Ts(e){return e>="0"&&e<="7"}function ya(e){return e>="0"&&e<="9"}var h_={"'":"'",'"':'"',"\\":"\\",b:"\b",f:"\f",n:`
64
+ `,r:"\r",t:" ",v:"\v","/":"/"};function B6(e,t,r,n,i,s){var o=t+" at "+(n+1)+":"+(i+1),a=r-i-1,u="",c="",f=s?mn.isLineTerminator:mn.isLineTerminatorJSON;for(a<r-70&&(a=r-70);;){var l=e[++a];if(f(l)||a===e.length){r>=a&&(c+="^");break}if(u+=l,r===a?c+="^":r>a&&(c+=e[a]===" "?" ":" "),u.length>78)break}return o+`
64
65
  `+u+`
65
- `+c}function a6(e,t){var r=!1,n=!1;t.legacy||t.mode==="json"||(t.mode==="cjson"?n=!0:(t.mode,r=!0));var i=r?mn.isLineTerminator:mn.isLineTerminatorJSON,s=r?mn.isWhiteSpace:mn.isWhiteSpaceJSON,o=e.length,a=0,u=0,c=0,f=[],l=function(){},h=function(x){return x};t._tokenize&&function(){var x=null;l=function(){if(x!==null)throw Error("internal error, token overlap");x=c},h=function(g,v){if(x!=c){var A={raw:e.substr(x,c-x),type:v,stack:f.slice(0)};g!==void 0&&(A.value=g),t._tokenize.call(null,A)}return x=null,g}}();function d(x){var g=c-u;if(!x)if(c<o){var v="'"+JSON.stringify(e[c]).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";x||(x="Unexpected token "+v)}else x||(x="Unexpected end of input");var A=SyntaxError(o6(e,x,c,a,g,r));throw A.row=a+1,A.column=g+1,A}function p(x){x==="\r"&&e[c]===`
66
- `&&c++,u=c,a++}function y(){for(var x;c<o;){l();var g=e[c++];return g==='"'||g==="'"&&r?h(D(g),"literal"):g==="{"?(h(void 0,"separator"),P()):g==="["?(h(void 0,"separator"),b()):g==="-"||g==="."||pa(g)||r&&(g==="+"||g==="I"||g==="N")?h(_(),"literal"):g==="n"?(k("null"),h(null,"literal")):g==="t"?(k("true"),h(!0,"literal")):g==="f"?(k("false"),h(!1,"literal")):(c--,h(void 0))}}function m(){for(var x;c<o;){l();var g=e[c++];if(g==='"'||g==="'"&&r)return h(D(g),"key");if(g==="{")return h(void 0,"separator"),P();if(g==="[")return h(void 0,"separator"),b();if(g==="."||pa(g))return h(_(!0),"key");if(r&&mn.isIdentifierStart(g)||g==="\\"&&e[c]==="u"){var v=c-1,x=L();return x===void 0?(c=v,h(void 0)):h(x,"key")}else return c--,h(void 0)}}function O(){for(l();c<o;){var x=e[c++];if(i(x))c--,h(void 0,"whitespace"),l(),c++,p(x),h(void 0,"newline"),l();else if(!s(x))if(x==="/"&&(r||n)&&(e[c]==="/"||e[c]==="*"))c--,h(void 0,"whitespace"),l(),c++,S(e[c++]==="*"),h(void 0,"comment"),l();else{c--;break}}return h(void 0,"whitespace")}function S(x){for(;c<o;){var g=e[c++];if(i(g)){if(!x){c--;return}p(g)}else if(g==="*"&&x&&e[c]==="/"){c++;return}}x&&d("Unclosed multiline comment")}function k(x){for(var g=c,v=x.length,A=1;A<v;A++)(c>=o||x[A]!=e[c])&&(c=g-1,d()),c++}function P(){for(var x=t.null_prototype?Object.create(null):{},g={},v=!1;c<o;){O();var A=m();O(),l();var C=e[c++];if(h(void 0,"separator"),C==="}"&&A===void 0)return!r&&v&&(c--,d("Trailing comma in object")),x;if(C===":"&&A!==void 0){O(),f.push(A);var E=y();f.pop(),E===void 0&&d("No value found for key "+A),typeof A!="string"&&(!r||typeof A!="number")&&d("Wrong key type: "+A),(A in g||g[A]!=null)&&t.reserved_keys!=="replace"?t.reserved_keys==="throw"&&d("Reserved key: "+A):(typeof t.reviver=="function"&&(E=t.reviver.call(null,A,E)),E!==void 0&&(v=!0,Object.defineProperty(x,A,{value:E,enumerable:!0,configurable:!0,writable:!0}))),O(),l();var C=e[c++];if(h(void 0,"separator"),C===",")continue;if(C==="}")return x;d()}else c--,d()}d()}function b(){for(var x=[];c<o;){O(),f.push(x.length);var g=y();f.pop(),O(),l();var v=e[c++];if(h(void 0,"separator"),g!==void 0&&(typeof t.reviver=="function"&&(g=t.reviver.call(null,String(x.length),g)),g===void 0?(x.length++,g=!0):x.push(g)),v===",")g===void 0&&d("Elisions are not supported");else{if(v==="]")return!r&&g===void 0&&x.length&&(c--,d("Trailing comma in array")),x;c--,d()}}}function _(){c--;var x=c,g=e[c++],v,A=function(T){var N=e.substr(x,c-x);if(T)var M=parseInt(N.replace(/^0o?/,""),8);else var M=Number(N);if(Number.isNaN(M))c--,d('Bad numeric literal - "'+e.substr(x,c-x+1)+'"');else if(!r&&!N.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))c--,d('Non-json numeric literal - "'+e.substr(x,c-x+1)+'"');else return M};if((g==="-"||g==="+"&&r)&&(g=e[c++]),g==="N"&&r)return k("NaN"),NaN;if(g==="I"&&r)return k("Infinity"),A();if(g>="1"&&g<="9"){for(;c<o&&pa(e[c]);)c++;g=e[c++]}if(g==="0"){g=e[c++];var C=g==="o"||g==="O"||Ds(g),E=g==="x"||g==="X";if(r&&(C||E)){for(;c<o&&(E?Fs:Ds)(e[c]);)c++;var w=1;return e[x]==="-"?(w=-1,x++):e[x]==="+"&&x++,w*A(C)}}if(g==="."){for(;c<o&&pa(e[c]);)c++;g=e[c++]}if(g==="e"||g==="E"){for(g=e[c++],(g==="-"||g==="+")&&c++;c<o&&pa(e[c]);)c++;g=e[c++]}return c--,A()}function L(){c--;for(var x="";c<o;){var g=e[c++];if(g==="\\"&&e[c]==="u"&&Fs(e[c+1])&&Fs(e[c+2])&&Fs(e[c+3])&&Fs(e[c+4])&&(g=String.fromCharCode(parseInt(e.substr(c+1,4),16)),c+=5),x.length)if(mn.isIdentifierPart(g))x+=g;else return c--,x;else if(mn.isIdentifierStart(g))x+=g;else return}d()}function D(x){for(var g="";c<o;){var v=e[c++];if(v===x)return g;if(v==="\\")if(c>=o&&d(),v=e[c++],VP[v]&&(r||v!="v"&&v!="'"))g+=VP[v];else if(r&&i(v))p(v);else if(v==="u"||v==="x"&&r){for(var A=v==="u"?4:2,C=0;C<A;C++)c>=o&&d(),Fs(e[c])||d("Bad escape sequence"),c++;g+=String.fromCharCode(parseInt(e.substr(c-A,A),16))}else if(r&&Ds(v)){if(v<"4"&&Ds(e[c])&&Ds(e[c+1]))var E=3;else if(Ds(e[c]))var E=2;else var E=1;c+=E-1,g+=String.fromCharCode(parseInt(e.substr(c-E,E),8))}else r?g+=v:(c--,d());else i(v)?d():(!r&&v.charCodeAt(0)<32&&(c--,d("Unexpected control character")),g+=v)}d()}O();var $=y();if($!==void 0||c<o){if(O(),c>=o)return typeof t.reviver=="function"&&($=t.reviver.call(null,"",$)),$;d()}else d(c?"No data, only a whitespace":"No data, empty input")}ol.exports.parse=function(t,r){if(typeof r=="function"&&(r={reviver:r}),t!==void 0){typeof t!="string"&&(t=String(t)),r==null&&(r={}),r.reserved_keys==null&&(r.reserved_keys="ignore"),(r.reserved_keys==="throw"||r.reserved_keys==="ignore")&&r.null_prototype==null&&(r.null_prototype=!0);try{return a6(t,r)}catch(i){if(i instanceof SyntaxError&&i.row!=null&&i.column!=null){var n=i;i=SyntaxError(n.message),i.column=n.column,i.row=n.row}throw i}}};ol.exports.tokenize=function(t,r){r==null&&(r={}),r._tokenize=function(i){r._addstack&&i.stack.unshift.apply(i.stack,r._addstack),n.push(i)};var n=[];return n.data=ol.exports.parse(t,r),n}});var am=F((XJ,XP)=>{var sm=im();(function(){}).name||Object.defineProperty(function(){}.constructor.prototype,"name",{get:function(){var e=this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];return Object.defineProperty(this,"name",{value:e}),e}});var u6={0:"\\0",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",92:"\\\\"},c6=Object.prototype.hasOwnProperty,KP=/[\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/;function om(e,t,r,n){var i=t.mode==="json5"||!t.mode;function s(l,h){var d=t._prefix?t._prefix:"";if(!t.indent)return d+l;for(var p="",y=r+(h||0),m=0;m<y;m++)p+=t.indent;return d+p+l+(h?`
67
- `:"")}function o(l){if(t.quote_keys)return a(l);if(String(Number(l))==l&&l[0]!="-")return l;if(l=="")return a(l);for(var h="",d=0;d<l.length;d++){if(d>0){if(!sm.isIdentifierPart(l[d]))return a(l)}else if(!sm.isIdentifierStart(l[d]))return a(l);var p=l.charCodeAt(d);t.ascii?p<128?h+=l[d]:h+="\\u"+("0000"+p.toString(16)).slice(-4):KP.exec(l[d])?h+="\\u"+("0000"+p.toString(16)).slice(-4):h+=l[d]}return h}function a(l){for(var h=t.quote,d=h.charCodeAt(0),p="",y=0;y<l.length;y++){var m=l.charCodeAt(y);if(m<16)m===0&&i?p+="\\0":m>=8&&m<=13&&(i||m!==11)?p+=u6[m]:i?p+="\\x0"+m.toString(16):p+="\\u000"+m.toString(16);else if(m<32)i?p+="\\x"+m.toString(16):p+="\\u00"+m.toString(16);else if(m>=32&&m<128)m===47&&y&&l[y-1]==="<"?p+="\\"+l[y]:m===92?p+="\\\\":m===d?p+="\\"+h:p+=l[y];else if(t.ascii||sm.isLineTerminator(l[y])||KP.exec(l[y]))if(m<256)i?p+="\\x"+m.toString(16):p+="\\u00"+m.toString(16);else if(m<4096)p+="\\u0"+m.toString(16);else if(m<65536)p+="\\u"+m.toString(16);else throw Error("weird codepoint");else p+=l[y]}return h+p+h}function u(){if(e===null)return"null";var l=[],h=0,d;if(Array.isArray(e)){d="[]";for(var p=0;p<e.length;p++){var y=om(e[p],t,r+1,String(p));y===void 0&&(y="null"),h+=y.length+2,l.push(y+",")}}else{d="{}";var m=function(k){var P=om(e[k],t,r+1,k);P!==void 0&&(P=o(k)+":"+(t.indent?" ":"")+P+",",h+=P.length+1,l.push(P))};if(Array.isArray(t.replacer))for(var p=0;p<t.replacer.length;p++)c6.call(e,t.replacer[p])&&m(t.replacer[p]);else{var O=Object.keys(e);t.sort_keys&&(O=O.sort(typeof t.sort_keys=="function"?t.sort_keys:void 0)),O.forEach(m)}}if(h-=2,t.indent&&(h>t._splitMax-r*t.indent.length||h>t._splitMin)){t.no_trailing_comma&&l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var S=l.map(function(k){return s(k,1)}).join("");return d[0]+(t.indent?`
68
- `:"")+S+s(d[1])}else{l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var S=l.join(t.indent?" ":"");return d[0]+S+d[1]}}function c(l){switch(typeof t.replacer=="function"&&(l=t.replacer.call(null,n,l)),typeof l){case"string":return a(l);case"number":return l===0&&1/l<0?"-0":!i&&!Number.isFinite(l)?"null":l.toString();case"boolean":return l.toString();case"undefined":return;case"function":default:return JSON.stringify(l)}}if(t._stringify_key)return o(e);if(typeof e=="object"){if(e===null)return"null";var f;return(typeof(f=e.toJSON5)=="function"&&t.mode!=="json"||typeof(f=e.toJSON)=="function")&&(e=f.call(e,n)),e===null?"null":typeof e!="object"?c(e):e.constructor===Number||e.constructor===Boolean||e.constructor===String?(e=e.valueOf(),c(e)):e.constructor===Date?c(e.toISOString()):typeof t.replacer=="function"&&(e=t.replacer.call(null,n,e),typeof e!="object")?c(e):u(e)}else return c(e)}XP.exports.stringify=function(t,r,n){return typeof r=="function"||Array.isArray(r)?r={replacer:r}:typeof r=="object"&&r!==null||(r={}),n!=null&&(r.indent=n),r.indent==null&&(r.indent=" "),r.quote==null&&(r.quote="'"),r.ascii==null&&(r.ascii=!1),r.mode==null&&(r.mode="json5"),(r.mode==="json"||r.mode==="cjson")&&(r.quote='"',r.no_trailing_comma=!0,r.quote_keys=!0),typeof r.indent=="object"&&(r.indent.constructor===Number||r.indent.constructor===Boolean||r.indent.constructor===String)&&(r.indent=r.indent.valueOf()),typeof r.indent=="number"?r.indent>=0?r.indent=Array(Math.min(~~r.indent,10)+1).join(" "):r.indent=!1:typeof r.indent=="string"&&(r.indent=r.indent.substr(0,10)),r._splitMin==null&&(r._splitMin=50),r._splitMax==null&&(r._splitMax=70),om(t,r,0,"")}});var um=F((JJ,JP)=>{var l6=ga().tokenize;JP.exports.analyze=function(t,r){r==null&&(r={}),Array.isArray(t)||(t=l6(t,r));for(var n={has_whitespace:!1,has_comments:!1,has_newlines:!1,has_trailing_comma:!1,indent:"",newline:`
69
- `,quote:'"',quote_keys:!0},i={indent:{},newline:{},quote:{}},s=0;s<t.length;s++){if(t[s].type==="newline"){if(t[s+1]&&t[s+1].type==="whitespace"&&(t[s+1].raw[0]===" "&&(i.indent[" "]=(i.indent[" "]||0)+1),t[s+1].raw.match(/^\x20+$/))){var o=t[s+1].raw.length,a=t[s+1].stack.length+1;if(o%a===0){var u=Array(o/a+1).join(" ");i.indent[u]=(i.indent[u]||0)+1}}i.newline[t[s].raw]=(i.newline[t[s].raw]||0)+1}if(t[s].type==="newline"&&(n.has_newlines=!0),t[s].type==="whitespace"&&(n.has_whitespace=!0),t[s].type==="comment"&&(n.has_comments=!0),t[s].type==="key"&&t[s].raw[0]!=='"'&&t[s].raw[0]!=="'"&&(n.quote_keys=!1),(t[s].type==="key"||t[s].type==="literal")&&(t[s].raw[0]==='"'||t[s].raw[0]==="'")&&(i.quote[t[s].raw[0]]=(i.quote[t[s].raw[0]]||0)+1),t[s].type==="separator"&&t[s].raw===",")for(var c=s+1;c<t.length&&!(t[c].type==="literal"||t[c].type==="key");c++)t[c].type==="separator"&&(n.has_trailing_comma=!0)}for(var f in i)Object.keys(i[f]).length&&(n[f]=Object.keys(i[f]).reduce(function(l,h){return i[f][l]>i[f][h]?l:h}));return n}});var n_=F((QJ,lm)=>{var Nr=require("assert"),r_=ga().tokenize,f6=am().stringify,h6=um().analyze;function ya(e){return typeof e=="object"&&e!==null}function al(e,t,r,n,i){r=Object.create(r),r._stringify_key=!!n,i&&(r._prefix=i.prefix.map(function(a){return a.raw}).join("")),r._splitMin==null&&(r._splitMin=0),r._splitMax==null&&(r._splitMax=0);var s=f6(e,r);if(n)return[{raw:s,type:"key",stack:t,value:e}];r._addstack=t;var o=r_(s,{_addstack:t});return o.data=null,o}function cm(e){if(typeof e=="number"&&(e=String(e)),e===""&&(e=[]),typeof e=="string"&&(e=e.split(".")),!Array.isArray(e))throw Error("Invalid path type, string or array expected");return e}function QP(e,t,r,n,i){for(;r[n].stack[t]!=e;)if(n++>=i)return!1;for(;r[i].stack[t]!=e;)if(i--<n)return!1;return[n,i]}function ma(e){return e==="whitespace"||e==="newline"||e==="comment"}function ZP(e,t,r){for(;ma(e[t].type);)if(t++>=r)return!1;return t}function Ls(e,t,r){for(;ma(e[r].type);)if(r--<t)return!1;return r}function e_(e,t,r,n,i){var s={sep1:[],sep2:[],suffix:[],prefix:[],newline:[]};if(e[n].type==="separator"&&e[n].stack.length!==i+1&&e[n].raw!==","||(e[n].type==="separator"&&(n=Ls(e,r,n-1)),n===!1))return s;for(;e[n].stack.length>i;)n--;if(!t){for(;ma(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep2.unshift(e[n]);else return s;n--}for(Nr.equal(e[n].type,"separator"),Nr.equal(e[n].raw,":");ma(e[--n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep1.unshift(e[n]);else return s}Nr.equal(e[n].type,"key"),n--}for(;ma(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.prefix.unshift(e[n]);else return e[n].type==="newline"&&s.newline.unshift(e[n]),s;n--}return s}function yn(e,t){var r=Object.create(yn.prototype);t==null&&(t={});var n=r._tokens=r_(e,t);r._data=n.data,n.data=null,r._options=t;var i=h6(e,t);return t.indent==null&&(t.indent=i.indent),t.quote==null&&(t.quote=i.quote),t.quote_keys==null&&(t.quote_keys=i.quote_keys),t.no_trailing_comma==null&&(t.no_trailing_comma=!i.has_trailing_comma),r}function t_(e,t,r){function n(i){return Error("You can't "+(r?"unset":"set")+" key '"+e+"'"+i)}if(!ya(t))throw n(" of an non-object");if(Array.isArray(t))if(String(e).match(/^\d+$/)){if(e=Number(String(e)),t.length<e||r&&t.length===e)throw n(", out of bounds");if(r&&t.length!==e+1)throw n(" in the middle of an array");return!0}else throw n(" of an array");else return!0}yn.prototype.set=function(e,t){if(e=cm(e),e.length===0){if(t===void 0)throw Error("can't remove root document");this._data=t;var r=!1}else{for(var n=this._data,i=0;i<e.length-1;i++)t_(e[i],n,!1),n=n[e[i]];i===e.length-1&&t_(e[i],n,t===void 0);var r=!(e[i]in n);t===void 0?Array.isArray(n)?n.pop():delete n[e[i]]:n[e[i]]=t}this._tokens.length||(this._tokens=[{raw:"",type:"literal",stack:[],value:void 0}]);for(var s=[ZP(this._tokens,0,this._tokens.length-1),Ls(this._tokens,0,this._tokens.length-1)],i=0;i<e.length-1;i++)if(s=QP(e[i],i,this._tokens,s[0],s[1]),s==!1)throw Error("internal error, please report this");if(e.length===0)var o=al(t,e,this._options);else if(r){var f=e.slice(0,i),u=Ls(this._tokens,s[0]+1,s[1]-1);Nr(u!==!1);var c=u!==!1?e_(this._tokens,Array.isArray(n),s[0]+1,u,i):{},o=al(t,e,this._options,!1,c),l=[];c.newline&&c.newline.length&&(l=l.concat(c.newline)),c.prefix&&c.prefix.length&&(l=l.concat(c.prefix)),Array.isArray(n)||(l=l.concat(al(e[e.length-1],f,this._options,!0)),c.sep1&&c.sep1.length&&(l=l.concat(c.sep1)),l.push({raw:":",type:"separator",stack:f}),c.sep2&&c.sep2.length&&(l=l.concat(c.sep2))),o.unshift.apply(o,l),this._tokens[u].type==="separator"&&this._tokens[u].stack.length===e.length-1?this._tokens[u].raw===","&&o.push({raw:",",type:"separator",stack:f}):o.unshift({raw:",",type:"separator",stack:f}),c.suffix&&c.suffix.length&&o.push.apply(o,c.suffix),Nr.equal(this._tokens[s[1]].type,"separator"),s[0]=u+1,s[1]=u}else{var a=s;if(s=QP(e[i],i,this._tokens,s[0],s[1]),t===void 0&&s!==!1){var o=[];if(!Array.isArray(n)){var u=Ls(this._tokens,a[0],s[0]-1);Nr.equal(this._tokens[u].type,"separator"),Nr.equal(this._tokens[u].raw,":"),s[0]=u;var u=Ls(this._tokens,a[0],s[0]-1);Nr.equal(this._tokens[u].type,"key"),Nr.equal(this._tokens[u].value,e[e.length-1]),s[0]=u}var u=Ls(this._tokens,a[0],s[0]-1);Nr.equal(this._tokens[u].type,"separator"),this._tokens[u].raw===","?s[0]=u:(u=ZP(this._tokens,s[1]+1,a[1]),Nr.equal(this._tokens[u].type,"separator"),this._tokens[u].raw===","&&(s[1]=u))}else var c=u!==!1?e_(this._tokens,Array.isArray(n),a[0],s[1]-1,i):{},o=al(t,e,this._options,!1,c)}return o.unshift(s[1]-s[0]+1),o.unshift(s[0]),this._tokens.splice.apply(this._tokens,o),this};yn.prototype.unset=function(e){return this.set(e,void 0)};yn.prototype.get=function(e){e=cm(e);for(var t=this._data,r=0;r<e.length;r++){if(!ya(t))return;t=t[e[r]]}return t};yn.prototype.has=function(e){e=cm(e);for(var t=this._data,r=0;r<e.length;r++){if(!ya(t))return!1;t=t[e[r]]}return t!==void 0};yn.prototype.update=function(e){var t=this;return r([],t._data,e),t;function r(n,i,s){if(!ya(s)||!ya(i))s!==i&&t.set(n,s);else if(Array.isArray(s)!=Array.isArray(i))t.set(n,s);else if(Array.isArray(s))if(s.length>i.length)for(var o=0;o<s.length;o++)n.push(String(o)),r(n,i[o],s[o]),n.pop();else for(var o=i.length-1;o>=0;o--)n.push(String(o)),r(n,i[o],s[o]),n.pop();else{for(var o in s)n.push(String(o)),r(n,i[o],s[o]),n.pop();for(var o in i)o in s||(n.push(String(o)),r(n,i[o],s[o]),n.pop())}}};yn.prototype.toString=function(){return this._tokens.map(function(e){return e.raw}).join("")};lm.exports.Document=yn;lm.exports.update=function(t,r,n){return yn(t,n).update(r).toString()}});var i_=F((ZJ,ul)=>{var d6=require("fs"),p6=va();ul.exports.register=function(){var e=require,t="extensions";e[t][".json5"]=function(r,n){r.exports=p6.parse(d6.readFileSync(n,"utf8"))}};ul.exports.patch_JSON_parse=function(){var e=JSON.parse;JSON.parse=function(t,r){try{return e(t,r)}catch(n){throw va().parse(t,{mode:"json",legacy:!0,reviver:r,reserved_keys:"replace",null_prototype:!1}),n}}};ul.exports.middleware=function(){return function(e,t,r){throw Error("this function is removed, use express-json5 instead")}}});var va=F((eQ,Ti)=>{Ti.exports.__defineGetter__("parse",function(){return ga().parse});Ti.exports.__defineGetter__("stringify",function(){return am().stringify});Ti.exports.__defineGetter__("tokenize",function(){return ga().tokenize});Ti.exports.__defineGetter__("update",function(){return n_().update});Ti.exports.__defineGetter__("analyze",function(){return um().analyze});Ti.exports.__defineGetter__("utils",function(){return i_()})});var gm=F(Ct=>{"use strict";var hm=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.getWorkspacesAsync=Ct.getWorkspaces=Ct.getRushWorkspacesAsync=Ct.getRushWorkspaces=Ct.getWorkspacePackagePaths=Ct.getRushWorkspaceRoot=void 0;var fm=hm(require("path")),g6=hm(va()),m6=hm(require("fs")),s_=ia(),dm=Oi(),y6=gs();function o_(e){let t=(0,y6.getWorkspaceManagerAndRoot)(e,void 0,"rush")?.root;if(!t)throw new Error("Could not find rush workspace root from "+e);return t}Ct.getRushWorkspaceRoot=o_;function pm(e){try{let t=o_(e),r=fm.default.join(t,"rush.json"),n=g6.default.parse(m6.default.readFileSync(r,"utf-8")),i=fm.default.dirname(r);return n.projects.map(s=>fm.default.join(i,s.projectFolder))}catch(t){return(0,dm.logVerboseWarning)(`Error getting rush workspace package paths for ${e}`,t),[]}}Ct.getWorkspacePackagePaths=pm;function a_(e){try{let t=pm(e);return(0,s_.getWorkspacePackageInfo)(t)}catch(t){return(0,dm.logVerboseWarning)(`Error getting rush workspaces for ${e}`,t),[]}}Ct.getRushWorkspaces=a_;Ct.getWorkspaces=a_;async function u_(e){try{let t=pm(e);return(0,s_.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,dm.logVerboseWarning)(`Error getting rush workspaces for ${e}`,t),[]}}Ct.getRushWorkspacesAsync=u_;Ct.getWorkspacesAsync=u_});var f_=F(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.getWorkspacesAsync=Gt.getWorkspaces=Gt.getNpmWorkspacesAsync=Gt.getNpmWorkspaces=Gt.getWorkspacePackagePathsAsync=Gt.getWorkspacePackagePaths=void 0;var v6=fs(),cl=Eg();function ll(e){let t=(0,v6.getWorkspaceManagerAndRoot)(e,void 0,"npm")?.root;if(!t)throw new Error("Could not find npm workspace root from "+e);return t}function A6(e){let t=ll(e);return(0,cl.getPackagePathsFromWorkspaceRoot)(t)}Gt.getWorkspacePackagePaths=A6;function E6(e){let t=ll(e);return(0,cl.getPackagePathsFromWorkspaceRootAsync)(t)}Gt.getWorkspacePackagePathsAsync=E6;function c_(e){let t=ll(e);return(0,cl.getWorkspaceInfoFromWorkspaceRoot)(t)}Gt.getNpmWorkspaces=c_;Gt.getWorkspaces=c_;function l_(e){let t=ll(e);return(0,cl.getWorkspaceInfoFromWorkspaceRootAsync)(t)}Gt.getNpmWorkspacesAsync=l_;Gt.getWorkspacesAsync=l_});var g_=F(Ut=>{"use strict";var mm=Ut&&Ut.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getWorkspacesAsync=Ut.getWorkspaces=Ut.getLernaWorkspacesAsync=Ut.getLernaWorkspaces=Ut.getWorkspacePackagePaths=void 0;var b6=mm(require("fs")),w6=mm(va()),S6=mm(require("path")),C6=Kc(),h_=ia(),ym=Oi(),x6=gs();function O6(e){let t=(0,x6.getWorkspaceManagerAndRoot)(e,void 0,"lerna")?.root;if(!t)throw new Error("Could not find lerna workspace root from "+e);return t}function vm(e){try{let t=O6(e),r=S6.default.join(t,"lerna.json"),n=w6.default.parse(b6.default.readFileSync(r,"utf-8"));return(0,C6.getPackagePaths)(t,n.packages)}catch(t){return(0,ym.logVerboseWarning)(`Error getting lerna workspace package paths for ${e}`,t),[]}}Ut.getWorkspacePackagePaths=vm;function d_(e){try{let t=vm(e);return(0,h_.getWorkspacePackageInfo)(t)}catch(t){return(0,ym.logVerboseWarning)(`Error getting lerna workspaces for ${e}`,t),[]}}Ut.getLernaWorkspaces=d_;Ut.getWorkspaces=d_;async function p_(e){try{let t=vm(e);return(0,h_.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,ym.logVerboseWarning)(`Error getting lerna workspaces for ${e}`,t),[]}}Ut.getLernaWorkspacesAsync=p_;Ut.getWorkspacesAsync=p_});var m_=F(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.getWorkspaceUtilities=void 0;var P6=gs();function _6(e){switch((0,P6.getWorkspaceManagerAndRoot)(e)?.manager){case"yarn":return bg();case"pnpm":return nm();case"rush":return gm();case"npm":return f_();case"lerna":return g_()}}fl.getWorkspaceUtilities=_6});var fs=F(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.getWorkspaceUtilities=ks.getWorkspaceManagerAndRoot=void 0;var R6=gs();Object.defineProperty(ks,"getWorkspaceManagerAndRoot",{enumerable:!0,get:function(){return R6.getWorkspaceManagerAndRoot}});var F6=m_();Object.defineProperty(ks,"getWorkspaceUtilities",{enumerable:!0,get:function(){return F6.getWorkspaceUtilities}})});var hl=F(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.getWorkspacesAsync=Ts.getWorkspaces=void 0;var Am=fs();function D6(e){return(0,Am.getWorkspaceUtilities)(e)?.getWorkspaces(e)||[]}Ts.getWorkspaces=D6;async function L6(e){let t=(0,Am.getWorkspaceUtilities)(e);if(!t)return[];if(!t.getWorkspacesAsync){let r=(0,Am.getWorkspaceManagerAndRoot)(e)?.manager;throw new Error(`${e} is using ${r} which has not been converted to async yet`)}return t.getWorkspacesAsync(e)}Ts.getWorkspacesAsync=L6});var b_=F(Qn=>{"use strict";var v_=Qn&&Qn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.getPackageInfosAsync=Qn.getPackageInfos=void 0;var y_=v_(require("fs")),k6=v_(require("path")),T6=Rd(),A_=hl();function I6(e){let t={},r=(0,A_.getWorkspaces)(e);if(r.length)for(let n of r)t[n.name]=n.packageJson;else{let n=E_(e);n&&(t[n.name]=n)}return t}Qn.getPackageInfos=I6;async function N6(e){let t={},r=await(0,A_.getWorkspacesAsync)(e);if(r.length)for(let n of r)t[n.name]=n.packageJson;else{let n=E_(e);n&&(t[n.name]=n)}return t}Qn.getPackageInfosAsync=N6;function E_(e){let t=k6.default.join(e,"package.json");if(y_.default.existsSync(t))try{let r=JSON.parse(y_.default.readFileSync(t,"utf-8"));return(0,T6.infoFromPackageJson)(r,t)}catch(r){throw new Error(`Invalid package.json file detected ${t}: ${r?.message||r}`)}}});var pl=F(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.createDependencyMap=void 0;var $6=zo();function M6(e,t={withDevDependencies:!0,withPeerDependencies:!1}){let r={dependencies:new Map,dependents:new Map},n=new Set(Object.keys(e));for(let[i,s]of Object.entries(e)){let o=(0,$6.getPackageDependencies)(s,n,t);for(let a of o)r.dependencies.has(i)||r.dependencies.set(i,new Set),r.dependencies.get(i).add(a),r.dependents.has(a)||r.dependents.set(a,new Set),r.dependents.get(a).add(i)}return r}dl.createDependencyMap=M6});var S_=F(Is=>{"use strict";var j6=Is&&Is.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Is,"__esModule",{value:!0});Is.createPackageGraph=void 0;var B6=pl(),W6=j6(ra());function q6(e,t){let r=new Set,n=[],i=new Set,s=new Map;function o(f,l,h,d){if(r.add(l),!f||f.includeDependencies&&h)for(let p of h){let y=a(l,p);i.has(y)||(i.add(y),n.push({name:l,dependency:p})),r.add(p)}if(!f||f.includeDependents&&d)for(let p of d){let y=a(p,l);i.has(y)||(i.add(y),n.push({name:p,dependency:l})),r.add(p)}}if(t){t=Array.isArray(t)?t:[t];for(let f of t){let l=o.bind(void 0,f),h=u(e,f);w_(e,h,l,f)}}else{let f=o.bind(void 0,void 0),l=u(e);w_(e,l,f)}return{packages:[...r],dependencies:n};function a(f,l){return`${f}->${l}`}function u(f,l){let h=c(l);if(!s.has(h)){let d=(0,B6.createDependencyMap)(f,l);s.set(h,d)}return s.get(h)}function c(f){return f?[f.withDevDependencies?"dev":"",f.withPeerDependencies?"peer":"",f.withOptionalDependencies?"optional":""].filter(Boolean).join("_")||"prod":"default"}}Is.createPackageGraph=q6;function w_(e,t,r,n){let i=new Set,s=Object.keys(e),o=n?(0,W6.default)(s,n.namePatterns):s;for(;o.length>0;){let a=o.pop();if(i.has(a))continue;let u=new Set,c=[],f=[];if(!n||n.includeDependencies){c=[...t.dependencies.get(a)??[]];for(let l of c)u.add(l)}if(!n||n.includeDependents){f=[...t.dependents.get(a)??[]];for(let l of f)u.add(l)}if(r(a,c,f),i.add(a),u.size>0)for(let l of u)o.push(l)}}});var C_=F($r=>{"use strict";var G6=$r&&$r.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Em=$r&&$r.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&G6(t,e,r)};Object.defineProperty($r,"__esModule",{value:!0});$r.getDependentMap=void 0;Em(S_(),$r);Em(pl(),$r);Em(zo(),$r);var U6=pl();function H6(e){return(0,U6.createDependencyMap)(e).dependencies}$r.getDependentMap=H6});var Aa=F(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.nameAtVersion=void 0;function z6(e,t){return`${e}@${t}`}gl.nameAtVersion=z6});var x_=F(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.parsePnpmLock=void 0;var Y6=Aa();function V6(e){let t={};if(e&&e.packages)for(let[r,n]of Object.entries(e.packages)){let i=r.split(/\//),s=i.length>3?`${i[1]}/${i[2]}`:i[1],o=i.length>3?i[3]:i[2];t[(0,Y6.nameAtVersion)(s,o)]={version:o,dependencies:n.dependencies}}return{object:t,type:"success"}}ml.parsePnpmLock=V6});var O_=F(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.parseNpmLock=void 0;var K6=Aa();function X6(e){return{object:Object.fromEntries(Object.entries(e.dependencies??{}).map(([r,n])=>[(0,K6.nameAtVersion)(r,n.version),n])),type:"success"}}yl.parseNpmLock=X6});var P_=F(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.parseBerryLock=void 0;function J6(e){let t={};if(e)for(let[r,n]of Object.entries(e)){if(r==="__metadata")continue;let i=r.split(", ");for(let s of i){let o=Q6(s);t[o]={version:n.version,dependencies:n.dependencies??{}}}}return{object:t,type:"success"}}vl.parseBerryLock=J6;function Q6(e){return e.includes("npm:")?e.replace(/npm:/,""):e}});var R_=F((gQ,__)=>{__.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.i=function(n){return n},r.d=function(n,i,s){r.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:s})},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=14)}([function(e,t){e.exports=require("path")},function(e,t,r){"use strict";t.__esModule=!0;var n=r(173),i=s(n);function s(o){return o&&o.__esModule?o:{default:o}}t.default=function(o){return function(){var a=o.apply(this,arguments);return new i.default(function(u,c){function f(l,h){try{var d=a[l](h),p=d.value}catch(y){c(y);return}if(d.done)u(p);else return i.default.resolve(p).then(function(y){f("next",y)},function(y){f("throw",y)})}return f("next")})}}},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("fs")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(c,f){super(c),this.code=f}}t.MessageError=n;class i extends n{constructor(c,f,l){super(c,f),this.process=l}}t.ProcessSpawnError=i;class s extends n{}t.SecurityError=s;class o extends n{}t.ProcessTermError=o;class a extends Error{constructor(c,f){super(c),this.responseCode=f}}t.ResponseError=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstSuitableFolder=t.readFirstAvailableStream=t.makeTempDir=t.hardlinksWork=t.writeFilePreservingEol=t.getFileSizeOnDisk=t.walk=t.symlink=t.find=t.readJsonAndFile=t.readJson=t.readFileAny=t.hardlinkBulk=t.copyBulk=t.unlink=t.glob=t.link=t.chmod=t.lstat=t.exists=t.mkdirp=t.stat=t.access=t.rename=t.readdir=t.realpath=t.readlink=t.writeFile=t.open=t.readFileBuffer=t.lockQueue=t.constants=void 0;var n;function i(){return n=H(r(1))}let s=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J,te){let xe=(()=>{var Te=(0,(n||i()).default)(function*(ft){let Be=ft.src,Pe=ft.dest,Ks=ft.type,Yt=ft.onFresh||or,Ye=ft.onDone||or;if(Ie.has(Pe.toLowerCase())?te.verbose(`The case-insensitive file ${Pe} shouldn't be copied twice in one bulk copy`):Ie.add(Pe.toLowerCase()),Ks==="symlink"){yield K((v||A()).default.dirname(Pe)),Yt(),Ot.symlink.push({dest:Pe,linkname:Be}),Ye();return}if(Q.ignoreBasenames.indexOf((v||A()).default.basename(Be))>=0)return;let Ve=yield B(Be),tn;Ve.isDirectory()&&(tn=yield ve(Be));let Mt;try{Mt=yield B(Pe)}catch(Ft){if(Ft.code!=="ENOENT")throw Ft}if(Mt){let Ft=Ve.isSymbolicLink()&&Mt.isSymbolicLink(),rn=Ve.isDirectory()&&Mt.isDirectory(),Rr=Ve.isFile()&&Mt.isFile();if(Rr&&je.has(Pe)){Ye(),te.verbose(te.lang("verboseFileSkipArtifact",Be));return}if(Rr&&Ve.size===Mt.size&&(0,(X||fe()).fileDatesEqual)(Ve.mtime,Mt.mtime)){Ye(),te.verbose(te.lang("verboseFileSkip",Be,Pe,Ve.size,+Ve.mtime));return}if(Ft){let ht=yield Y(Be);if(ht===(yield Y(Pe))){Ye(),te.verbose(te.lang("verboseFileSkipSymlink",Be,Pe,ht));return}}if(rn){let ht=yield ve(Pe);Mi(tn,"src files not initialised");for(var Or=ht,bn=Array.isArray(Or),Vt=0,Or=bn?Or:Or[Symbol.iterator]();;){var Bi;if(bn){if(Vt>=Or.length)break;Bi=Or[Vt++]}else{if(Vt=Or.next(),Vt.done)break;Bi=Vt.value}let Cn=Bi;if(tn.indexOf(Cn)<0){let nn=(v||A()).default.join(Pe,Cn);if(J.add(nn),(yield B(nn)).isDirectory())for(var Pr=yield ve(nn),wn=Array.isArray(Pr),Kt=0,Pr=wn?Pr:Pr[Symbol.iterator]();;){var Wi;if(wn){if(Kt>=Pr.length)break;Wi=Pr[Kt++]}else{if(Kt=Pr.next(),Kt.done)break;Wi=Kt.value}let zl=Wi;J.add((v||A()).default.join(nn,zl))}}}}}if(Mt&&Mt.isSymbolicLink()&&(yield(0,(X||fe()).unlink)(Pe),Mt=null),Ve.isSymbolicLink()){Yt();let Ft=yield Y(Be);Ot.symlink.push({dest:Pe,linkname:Ft}),Ye()}else if(Ve.isDirectory()){Mt||(te.verbose(te.lang("verboseFileFolder",Pe)),yield K(Pe));let Ft=Pe.split((v||A()).default.sep);for(;Ft.length;)Ie.add(Ft.join((v||A()).default.sep).toLowerCase()),Ft.pop();Mi(tn,"src files not initialised");let rn=tn.length;rn||Ye();for(var _r=tn,Sn=Array.isArray(_r),Xt=0,_r=Sn?_r:_r[Symbol.iterator]();;){var Rt;if(Sn){if(Xt>=_r.length)break;Rt=_r[Xt++]}else{if(Xt=_r.next(),Xt.done)break;Rt=Xt.value}let Rr=Rt;ie.push({dest:(v||A()).default.join(Pe,Rr),onFresh:Yt,onDone:function(ht){function Cn(){return ht.apply(this,arguments)}return Cn.toString=function(){return ht.toString()},Cn}(function(){--rn===0&&Ye()}),src:(v||A()).default.join(Be,Rr)})}}else if(Ve.isFile())Yt(),Ot.file.push({src:Be,dest:Pe,atime:Ve.atime,mtime:Ve.mtime,mode:Ve.mode}),Ye();else throw new Error(`unsure how to copy this: ${Be}`)});return function(Be){return Te.apply(this,arguments)}})(),je=new Set(Q.artifactFiles||[]),Ie=new Set;for(var Fe=ie,Ne=Array.isArray(Fe),Re=0,Fe=Ne?Fe:Fe[Symbol.iterator]();;){var zt;if(Ne){if(Re>=Fe.length)break;zt=Fe[Re++]}else{if(Re=Fe.next(),Re.done)break;zt=Re.value}let Te=zt,ft=Te.onDone;Te.onDone=function(){Q.onProgress(Te.dest),ft&&ft()}}Q.onStart(ie.length);let Ot={file:[],symlink:[],link:[]};for(;ie.length;){let Te=ie.splice(0,Me);yield Promise.all(Te.map(xe))}for(var Pt=je,En=Array.isArray(Pt),Cr=0,Pt=En?Pt:Pt[Symbol.iterator]();;){var ri;if(En){if(Cr>=Pt.length)break;ri=Pt[Cr++]}else{if(Cr=Pt.next(),Cr.done)break;ri=Cr.value}let Te=ri;J.has(Te)&&(te.verbose(te.lang("verboseFilePhantomExtraneous",Te)),J.delete(Te))}for(var _t=J,Vs=Array.isArray(_t),xr=0,_t=Vs?_t:_t[Symbol.iterator]();;){var ni;if(Vs){if(xr>=_t.length)break;ni=_t[xr++]}else{if(xr=_t.next(),xr.done)break;ni=xr.value}let Te=ni;Ie.has(Te.toLowerCase())&&J.delete(Te)}return Ot});return function(Q,J,te,xe){return ge.apply(this,arguments)}})(),o=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J,te){let xe=(()=>{var Te=(0,(n||i()).default)(function*(ft){let Be=ft.src,Pe=ft.dest,Ks=ft.onFresh||or,Yt=ft.onDone||or;if(Ie.has(Pe.toLowerCase())){Yt();return}if(Ie.add(Pe.toLowerCase()),Q.ignoreBasenames.indexOf((v||A()).default.basename(Be))>=0)return;let Ye=yield B(Be),Ve;Ye.isDirectory()&&(Ve=yield ve(Be));let tn=yield z(Pe);if(tn){let Rt=yield B(Pe),Ft=Ye.isSymbolicLink()&&Rt.isSymbolicLink(),rn=Ye.isDirectory()&&Rt.isDirectory(),Rr=Ye.isFile()&&Rt.isFile();if(Ye.mode!==Rt.mode)try{yield I(Pe,Ye.mode)}catch(ht){te.verbose(ht)}if(Rr&&je.has(Pe)){Yt(),te.verbose(te.lang("verboseFileSkipArtifact",Be));return}if(Rr&&Ye.ino!==null&&Ye.ino===Rt.ino){Yt(),te.verbose(te.lang("verboseFileSkip",Be,Pe,Ye.ino));return}if(Ft){let ht=yield Y(Be);if(ht===(yield Y(Pe))){Yt(),te.verbose(te.lang("verboseFileSkipSymlink",Be,Pe,ht));return}}if(rn){let ht=yield ve(Pe);Mi(Ve,"src files not initialised");for(var Vt=ht,Mt=Array.isArray(Vt),bn=0,Vt=Mt?Vt:Vt[Symbol.iterator]();;){var Or;if(Mt){if(bn>=Vt.length)break;Or=Vt[bn++]}else{if(bn=Vt.next(),bn.done)break;Or=bn.value}let Cn=Or;if(Ve.indexOf(Cn)<0){let nn=(v||A()).default.join(Pe,Cn);if(J.add(nn),(yield B(nn)).isDirectory())for(var Kt=yield ve(nn),Bi=Array.isArray(Kt),wn=0,Kt=Bi?Kt:Kt[Symbol.iterator]();;){var Pr;if(Bi){if(wn>=Kt.length)break;Pr=Kt[wn++]}else{if(wn=Kt.next(),wn.done)break;Pr=wn.value}let zl=Pr;J.add((v||A()).default.join(nn,zl))}}}}}if(Ye.isSymbolicLink()){Ks();let Rt=yield Y(Be);Ot.symlink.push({dest:Pe,linkname:Rt}),Yt()}else if(Ye.isDirectory()){te.verbose(te.lang("verboseFileFolder",Pe)),yield K(Pe);let Rt=Pe.split((v||A()).default.sep);for(;Rt.length;)Ie.add(Rt.join((v||A()).default.sep).toLowerCase()),Rt.pop();Mi(Ve,"src files not initialised");let Ft=Ve.length;Ft||Yt();for(var Xt=Ve,Wi=Array.isArray(Xt),Sn=0,Xt=Wi?Xt:Xt[Symbol.iterator]();;){var _r;if(Wi){if(Sn>=Xt.length)break;_r=Xt[Sn++]}else{if(Sn=Xt.next(),Sn.done)break;_r=Sn.value}let rn=_r;ie.push({onFresh:Ks,src:(v||A()).default.join(Be,rn),dest:(v||A()).default.join(Pe,rn),onDone:function(Rr){function ht(){return Rr.apply(this,arguments)}return ht.toString=function(){return Rr.toString()},ht}(function(){--Ft===0&&Yt()})})}}else if(Ye.isFile())Ks(),Ot.link.push({src:Be,dest:Pe,removeDest:tn}),Yt();else throw new Error(`unsure how to copy this: ${Be}`)});return function(Be){return Te.apply(this,arguments)}})(),je=new Set(Q.artifactFiles||[]),Ie=new Set;for(var Fe=ie,Ne=Array.isArray(Fe),Re=0,Fe=Ne?Fe:Fe[Symbol.iterator]();;){var zt;if(Ne){if(Re>=Fe.length)break;zt=Fe[Re++]}else{if(Re=Fe.next(),Re.done)break;zt=Re.value}let Te=zt,ft=Te.onDone||or;Te.onDone=function(){Q.onProgress(Te.dest),ft()}}Q.onStart(ie.length);let Ot={file:[],symlink:[],link:[]};for(;ie.length;){let Te=ie.splice(0,Me);yield Promise.all(Te.map(xe))}for(var Pt=je,En=Array.isArray(Pt),Cr=0,Pt=En?Pt:Pt[Symbol.iterator]();;){var ri;if(En){if(Cr>=Pt.length)break;ri=Pt[Cr++]}else{if(Cr=Pt.next(),Cr.done)break;ri=Cr.value}let Te=ri;J.has(Te)&&(te.verbose(te.lang("verboseFilePhantomExtraneous",Te)),J.delete(Te))}for(var _t=J,Vs=Array.isArray(_t),xr=0,_t=Vs?_t:_t[Symbol.iterator]();;){var ni;if(Vs){if(xr>=_t.length)break;ni=_t[xr++]}else{if(xr=_t.next(),xr.done)break;ni=xr.value}let Te=ni;Ie.has(Te.toLowerCase())&&J.delete(Te)}return Ot});return function(Q,J,te,xe){return ge.apply(this,arguments)}})(),a=t.copyBulk=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J){let te={onStart:J&&J.onStart||or,onProgress:J&&J.onProgress||or,possibleExtraneous:J?J.possibleExtraneous:new Set,ignoreBasenames:J&&J.ignoreBasenames||[],artifactFiles:J&&J.artifactFiles||[]},xe=yield s(ie,te,te.possibleExtraneous,Q);te.onStart(xe.file.length+xe.symlink.length+xe.link.length);let je=xe.file,Ie=new Map;yield(w||T()).queue(je,(()=>{var Re=(0,(n||i()).default)(function*(Fe){let zt;for(;zt=Ie.get(Fe.dest);)yield zt;Q.verbose(Q.lang("verboseFileCopy",Fe.src,Fe.dest));let Ot=(0,(X||fe()).copyFile)(Fe,function(){return Ie.delete(Fe.dest)});return Ie.set(Fe.dest,Ot),te.onProgress(Fe.dest),Ot});return function(Fe){return Re.apply(this,arguments)}})(),Me);let Ne=xe.symlink;yield(w||T()).queue(Ne,function(Re){let Fe=(v||A()).default.resolve((v||A()).default.dirname(Re.dest),Re.linkname);return Q.verbose(Q.lang("verboseFileSymlink",Re.dest,Fe)),d(Fe,Re.dest)})});return function(Q,J,te){return ge.apply(this,arguments)}})(),u=t.hardlinkBulk=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J){let te={onStart:J&&J.onStart||or,onProgress:J&&J.onProgress||or,possibleExtraneous:J?J.possibleExtraneous:new Set,artifactFiles:J&&J.artifactFiles||[],ignoreBasenames:[]},xe=yield o(ie,te,te.possibleExtraneous,Q);te.onStart(xe.file.length+xe.symlink.length+xe.link.length);let je=xe.link;yield(w||T()).queue(je,(()=>{var Ne=(0,(n||i()).default)(function*(Re){Q.verbose(Q.lang("verboseFileLink",Re.src,Re.dest)),Re.removeDest&&(yield(0,(X||fe()).unlink)(Re.dest)),yield ne(Re.src,Re.dest)});return function(Re){return Ne.apply(this,arguments)}})(),Me);let Ie=xe.symlink;yield(w||T()).queue(Ie,function(Ne){let Re=(v||A()).default.resolve((v||A()).default.dirname(Ne.dest),Ne.linkname);return Q.verbose(Q.lang("verboseFileSymlink",Ne.dest,Re)),d(Re,Ne.dest)})});return function(Q,J,te){return ge.apply(this,arguments)}})(),c=t.readFileAny=(()=>{var ge=(0,(n||i()).default)(function*(ie){for(var te=ie,Q=Array.isArray(te),J=0,te=Q?te:te[Symbol.iterator]();;){var xe;if(Q){if(J>=te.length)break;xe=te[J++]}else{if(J=te.next(),J.done)break;xe=J.value}let je=xe;if(yield z(je))return Hl(je)}return null});return function(Q){return ge.apply(this,arguments)}})(),f=t.readJson=(()=>{var ge=(0,(n||i()).default)(function*(ie){return(yield l(ie)).object});return function(Q){return ge.apply(this,arguments)}})(),l=t.readJsonAndFile=(()=>{var ge=(0,(n||i()).default)(function*(ie){let Q=yield Hl(ie);try{return{object:(0,(U||V()).default)(JSON.parse(Ys(Q))),content:Q}}catch(J){throw J.message=`${ie}: ${J.message}`,J}});return function(Q){return ge.apply(this,arguments)}})(),h=t.find=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q){let J=Q.split((v||A()).default.sep);for(;J.length;){let te=J.concat(ie).join((v||A()).default.sep);if(yield z(te))return te;J.pop()}return!1});return function(Q,J){return ge.apply(this,arguments)}})(),d=t.symlink=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q){try{if((yield B(Q)).isSymbolicLink()&&(yield ue(Q))===ie)return}catch(J){if(J.code!=="ENOENT")throw J}if(yield(0,(X||fe()).unlink)(Q),process.platform==="win32")yield Qe(ie,Q,"junction");else{let J;try{J=(v||A()).default.relative((_||L()).default.realpathSync((v||A()).default.dirname(Q)),(_||L()).default.realpathSync(ie))}catch(te){if(te.code!=="ENOENT")throw te;J=(v||A()).default.relative((v||A()).default.dirname(Q),ie)}yield Qe(J||".",Q)}});return function(Q,J){return ge.apply(this,arguments)}})(),p=t.walk=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J=new Set){let te=[],xe=yield ve(ie);J.size&&(xe=xe.filter(function(Fe){return!J.has(Fe)}));for(var Ne=xe,je=Array.isArray(Ne),Ie=0,Ne=je?Ne:Ne[Symbol.iterator]();;){var Re;if(je){if(Ie>=Ne.length)break;Re=Ne[Ie++]}else{if(Ie=Ne.next(),Ie.done)break;Re=Ie.value}let Fe=Re,zt=Q?(v||A()).default.join(Q,Fe):Fe,Ot=(v||A()).default.join(ie,Fe),En=yield B(Ot);te.push({relative:zt,basename:Fe,absolute:Ot,mtime:+En.mtime}),En.isDirectory()&&(te=te.concat(yield p(Ot,zt,J)))}return te});return function(Q,J){return ge.apply(this,arguments)}})(),y=t.getFileSizeOnDisk=(()=>{var ge=(0,(n||i()).default)(function*(ie){let Q=yield B(ie),J=Q.size,te=Q.blksize;return Math.ceil(J/te)*te});return function(Q){return ge.apply(this,arguments)}})(),m=(()=>{var ge=(0,(n||i()).default)(function*(ie){if(!(yield z(ie)))return;let Q=yield ee(ie);for(let J=0;J<Q.length;++J){if(Q[J]===OF)return`\r
70
- `;if(Q[J]===PF)return`
71
- `}});return function(Q){return ge.apply(this,arguments)}})(),O=t.writeFilePreservingEol=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q){let J=(yield m(ie))||(x||g()).default.EOL;J!==`
72
- `&&(Q=Q.replace(/\n/g,J)),yield re(ie,Q)});return function(Q,J){return ge.apply(this,arguments)}})(),S=t.hardlinksWork=(()=>{var ge=(0,(n||i()).default)(function*(ie){let Q="test-file"+Math.random(),J=(v||A()).default.join(ie,Q),te=(v||A()).default.join(ie,Q+"-link");try{yield re(J,"test"),yield ne(J,te)}catch{return!1}finally{yield(0,(X||fe()).unlink)(J),yield(0,(X||fe()).unlink)(te)}return!0});return function(Q){return ge.apply(this,arguments)}})(),k=t.makeTempDir=(()=>{var ge=(0,(n||i()).default)(function*(ie){let Q=(v||A()).default.join((x||g()).default.tmpdir(),`yarn-${ie||""}-${Date.now()}-${Math.random()}`);return yield(0,(X||fe()).unlink)(Q),yield K(Q),Q});return function(Q){return ge.apply(this,arguments)}})(),P=t.readFirstAvailableStream=(()=>{var ge=(0,(n||i()).default)(function*(ie){for(var te=ie,Q=Array.isArray(te),J=0,te=Q?te:te[Symbol.iterator]();;){var xe;if(Q){if(J>=te.length)break;xe=te[J++]}else{if(J=te.next(),J.done)break;xe=J.value}let je=xe;try{let Ie=yield G(je,"r");return(_||L()).default.createReadStream(je,{fd:Ie})}catch{}}return null});return function(Q){return ge.apply(this,arguments)}})(),b=t.getFirstSuitableFolder=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q=W.W_OK|W.X_OK){let J={skipped:[],folder:null};for(var je=ie,te=Array.isArray(je),xe=0,je=te?je:je[Symbol.iterator]();;){var Ie;if(te){if(xe>=je.length)break;Ie=je[xe++]}else{if(xe=je.next(),xe.done)break;Ie=xe.value}let Ne=Ie;try{return yield K(Ne),yield I(Ne,Q),J.folder=Ne,J}catch(Re){J.skipped.push({error:Re,folder:Ne})}}return J});return function(Q){return ge.apply(this,arguments)}})();t.copy=Pa,t.readFile=Hl,t.readFileRaw=xF,t.normalizeOS=Jm;var _;function L(){return _=H(r(3))}var D;function $(){return D=H(r(75))}var x;function g(){return x=H(r(36))}var v;function A(){return v=H(r(0))}var C;function E(){return C=H(r(84))}var w;function T(){return w=q(r(40))}var N;function M(){return N=r(40)}var U;function V(){return U=H(r(20))}var X;function fe(){return X=r(164)}function q(ge){if(ge&&ge.__esModule)return ge;var ie={};if(ge!=null)for(var Q in ge)Object.prototype.hasOwnProperty.call(ge,Q)&&(ie[Q]=ge[Q]);return ie.default=ge,ie}function H(ge){return ge&&ge.__esModule?ge:{default:ge}}let W=t.constants=typeof(_||L()).default.constants<"u"?(_||L()).default.constants:{R_OK:(_||L()).default.R_OK,W_OK:(_||L()).default.W_OK,X_OK:(_||L()).default.X_OK},Z=t.lockQueue=new(C||E()).default("fs lock"),ee=t.readFileBuffer=(0,(N||M()).promisify)((_||L()).default.readFile),G=t.open=(0,(N||M()).promisify)((_||L()).default.open),re=t.writeFile=(0,(N||M()).promisify)((_||L()).default.writeFile),Y=t.readlink=(0,(N||M()).promisify)((_||L()).default.readlink),ue=t.realpath=(0,(N||M()).promisify)((_||L()).default.realpath),ve=t.readdir=(0,(N||M()).promisify)((_||L()).default.readdir),De=t.rename=(0,(N||M()).promisify)((_||L()).default.rename),I=t.access=(0,(N||M()).promisify)((_||L()).default.access),j=t.stat=(0,(N||M()).promisify)((_||L()).default.stat),K=t.mkdirp=(0,(N||M()).promisify)(r(116)),z=t.exists=(0,(N||M()).promisify)((_||L()).default.exists,!0),B=t.lstat=(0,(N||M()).promisify)((_||L()).default.lstat),se=t.chmod=(0,(N||M()).promisify)((_||L()).default.chmod),ne=t.link=(0,(N||M()).promisify)((_||L()).default.link),he=t.glob=(0,(N||M()).promisify)((D||$()).default);t.unlink=(X||fe()).unlink;let Me=(_||L()).default.copyFile?128:4,Qe=(0,(N||M()).promisify)((_||L()).default.symlink),Mi=r(7),Ys=r(122),or=()=>{};function Pa(ge,ie,Q){return a([{src:ge,dest:ie}],Q)}function ji(ge,ie){return new Promise((Q,J)=>{(_||L()).default.readFile(ge,ie,function(te,xe){te?J(te):Q(xe)})})}function Hl(ge){return ji(ge,"utf8").then(Jm)}function xF(ge){return ji(ge,"binary")}function Jm(ge){return ge.replace(/\r\n/g,`
73
- `)}let OF=13,PF=10},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathKey=I;let n=r(36),i=r(0),s=r(45).default;var o=r(171);let a=o.getCacheDir,u=o.getConfigDir,c=o.getDataDir,f=r(227),l=t.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"],h=t.RESOLUTIONS="resolutions",d=t.MANIFEST_FIELDS=[h,...l],p=t.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",y=t.YARN_REGISTRY="https://registry.yarnpkg.com",m=t.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",O=t.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",S=t.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",k=t.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",P=t.CACHE_VERSION=2,b=t.LOCKFILE_VERSION=1,_=t.NETWORK_CONCURRENCY=8,L=t.NETWORK_TIMEOUT=30*1e3,D=t.CHILD_CONCURRENCY=5,$=t.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function x(){let K=[a()];return process.getuid&&K.push(i.join(n.tmpdir(),`.yarn-cache-${process.getuid()}`)),K.push(i.join(n.tmpdir(),".yarn-cache")),K}let g=t.PREFERRED_MODULE_CACHE_DIRECTORIES=x(),v=t.CONFIG_DIRECTORY=u(),A=t.DATA_DIRECTORY=c(),C=t.LINK_REGISTRY_DIRECTORY=i.join(A,"link"),E=t.GLOBAL_MODULE_DIRECTORY=i.join(A,"global"),w=t.NODE_BIN_PATH=process.execPath,T=t.YARN_BIN_PATH=N();function N(){return f?__filename:i.join(__dirname,"..","bin","yarn.js")}let M=t.NODE_MODULES_FOLDER="node_modules",U=t.NODE_PACKAGE_JSON="package.json",V=t.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`,X=t.FALLBACK_GLOBAL_PREFIX=i.join(s,".yarn"),fe=t.META_FOLDER=".yarn-meta",q=t.INTEGRITY_FILENAME=".yarn-integrity",H=t.LOCKFILE_FILENAME="yarn.lock",W=t.METADATA_FILENAME=".yarn-metadata.json",Z=t.TARBALL_FILENAME=".yarn-tarball.tgz",ee=t.CLEAN_FILENAME=".yarnclean",G=t.NPM_LOCK_FILENAME="package-lock.json",re=t.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",Y=t.DEFAULT_INDENT=" ",ue=t.SINGLE_INSTANCE_PORT=31997,ve=t.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",De=t.ENV_PATH_KEY=I(process.platform,process.env);function I(K,z){let B="PATH";if(K==="win32"){B="Path";for(let se in z)se.toLowerCase()==="path"&&(B=se)}return B}let j=t.VERSION_COLOR_SCHEME={major:"red",premajor:"red",minor:"yellow",preminor:"yellow",patch:"green",prepatch:"green",prerelease:"red",unchanged:"white",unknown:"red"}},function(e,t,r){"use strict";var n=process.env.NODE_ENV,i=function(s,o,a,u,c,f,l,h){if(n!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!s){var d;if(o===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[a,u,c,f,l,h],y=0;d=new Error(o.replace(/%s/g,function(){return p[y++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}};e.exports=i},,function(e,t){e.exports=require("crypto")},,function(e,t){var r=e.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=r)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortAlpha=i,t.entries=s,t.removePrefix=o,t.removeSuffix=a,t.addSuffix=u,t.hyphenate=c,t.camelCase=f,t.compareSortedArrays=l,t.sleep=h;let n=r(176);function i(d,p){let y=Math.min(d.length,p.length);for(let m=0;m<y;m++){let O=d.charCodeAt(m),S=p.charCodeAt(m);if(O!==S)return O-S}return d.length-p.length}function s(d){let p=[];if(d)for(let y in d)p.push([y,d[y]]);return p}function o(d,p){return d.startsWith(p)&&(d=d.slice(p.length)),d}function a(d,p){return d.endsWith(p)?d.slice(0,-p.length):d}function u(d,p){return d.endsWith(p)?d:d+p}function c(d){return d.replace(/[A-Z]/g,p=>"-"+p.charAt(0).toLowerCase())}function f(d){return/[A-Z]/.test(d)?null:n(d)}function l(d,p){if(d.length!==p.length)return!1;for(let y=0,m=d.length;y<m;y++)if(d[y]!==p[y])return!1;return!0}function h(d){return new Promise(p=>{setTimeout(p,d)})}},function(e,t,r){var n=r(107)("wks"),i=r(111),s=r(11).Symbol,o=typeof s=="function",a=e.exports=function(u){return n[u]||(n[u]=o&&s[u]||(o?s:i)("Symbol."+u))};a.store=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=void 0;var n;function i(){return n=P(r(1))}var s;function o(){return s=r(81)}Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return P(s||o()).default}});var a;function u(){return a=r(150)}Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return P(a||u()).default}}),t.implodeEntry=v,t.explodeEntry=A;var c;function f(){return c=r(12)}var l;function h(){return l=r(29)}var d;function p(){return d=P(r(81))}var y;function m(){return y=r(6)}var O;function S(){return O=k(r(5))}function k(E){if(E&&E.__esModule)return E;var w={};if(E!=null)for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&(w[T]=E[T]);return w.default=E,w}function P(E){return E&&E.__esModule?E:{default:E}}let b=r(7),_=r(0),L=r(55);function D(E){return(0,(l||h()).normalizePattern)(E).name}function $(E){return E&&Object.keys(E).length?E:void 0}function x(E){return E.resolved||(E.reference&&E.hash?`${E.reference}#${E.hash}`:null)}function g(E){return E.toString().split(" ").sort().join(" ")}function v(E,w){let T=D(E),N=w.integrity?g(w.integrity):"",M={name:T===w.name?void 0:w.name,version:w.version,uid:w.uid===w.version?void 0:w.uid,resolved:w.resolved,registry:w.registry==="npm"?void 0:w.registry,dependencies:$(w.dependencies),optionalDependencies:$(w.optionalDependencies),permissions:$(w.permissions),prebuiltVariants:$(w.prebuiltVariants)};return N&&(M.integrity=N),M}function A(E,w){w.optionalDependencies=w.optionalDependencies||{},w.dependencies=w.dependencies||{},w.uid=w.uid||w.version,w.permissions=w.permissions||{},w.registry=w.registry||"npm",w.name=w.name||D(E);let T=w.integrity;return T&&T.isIntegrity&&(w.integrity=L.parse(T)),w}class C{constructor({cache:w,source:T,parseResultType:N}={}){this.source=T||"",this.cache=w,this.parseResultType=N}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(let w in this.cache)if(!/^.*@(file:|http)/.test(w)&&this.cache[w]&&!this.cache[w].integrity)return!0;return!1}static fromDirectory(w,T){return(0,(n||i()).default)(function*(){let N=_.join(w,(y||m()).LOCKFILE_FILENAME),M,U="",V;return(yield(O||S()).exists(N))?(U=yield(O||S()).readFile(N),V=(0,(d||p()).default)(U,N),T&&(V.type==="merge"?T.info(T.lang("lockfileMerged")):V.type==="conflict"&&T.warn(T.lang("lockfileConflict"))),M=V.object):T&&T.info(T.lang("noLockfileFound")),new C({cache:M,source:U,parseResultType:V&&V.type})})()}getLocked(w){let T=this.cache;if(!T)return;let N=w in T&&T[w];if(typeof N=="string")return this.getLocked(N);if(N)return A(w,N),N}removePattern(w){let T=this.cache;T&&delete T[w]}getLockfile(w){let T={},N=new Map,M=Object.keys(w).sort((c||f()).sortAlpha);for(var X=M,U=Array.isArray(X),V=0,X=U?X:X[Symbol.iterator]();;){var fe;if(U){if(V>=X.length)break;fe=X[V++]}else{if(V=X.next(),V.done)break;fe=V.value}let q=fe,H=w[q],W=H._remote,Z=H._reference;b(Z,"Package is missing a reference"),b(W,"Package is missing a remote");let ee=x(W),G=ee&&N.get(ee);if(G){T[q]=G,!G.name&&D(q)!==H.name&&(G.name=H.name);continue}let re=v(q,{name:H.name,version:H.version,uid:H._uid,resolved:W.resolved,integrity:W.integrity,registry:W.registry,dependencies:H.dependencies,peerDependencies:H.peerDependencies,optionalDependencies:H.optionalDependencies,permissions:Z.permissions,prebuiltVariants:H.prebuiltVariants});T[q]=re,ee&&N.set(ee,re)}return T}}t.default=C},,,function(e,t){e.exports=require("stream")},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i={}){if(Array.isArray(i))for(var a=i,s=Array.isArray(a),o=0,a=s?a:a[Symbol.iterator]();;){var u;if(s){if(o>=a.length)break;u=a[o++]}else{if(o=a.next(),o.done)break;u=o.value}n(u)}else if((i!==null&&typeof i=="object"||typeof i=="function")&&(Object.setPrototypeOf(i,null),typeof i=="object"))for(let c in i)n(i[c]);return i}},,function(e,t){e.exports=require("assert")},function(e,t){var r=e.exports={version:"2.5.7"};typeof __e=="number"&&(__e=r)},,,,function(e,t,r){var n=r(34);e.exports=function(i){if(!n(i))throw TypeError(i+" is not an object!");return i}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePattern=n;function n(i){let s=!1,o="latest",a=i,u=!1;a[0]==="@"&&(u=!0,a=a.slice(1));let c=a.split("@");return c.length>1&&(a=c.shift(),o=c.join("@"),o?s=!0:o="*"),u&&(a=`@${a}`),{name:a,range:o,hasVersion:s}}},,function(e,t,r){var n=r(50),i=r(106);e.exports=r(33)?function(s,o,a){return n.f(s,o,i(1,a))}:function(s,o,a){return s[o]=a,s}},function(e,t,r){var n=r(63),i=n.Buffer;function s(a,u){for(var c in a)u[c]=a[c]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=o);function o(a,u,c){return i(a,u,c)}s(i,o),o.from=function(a,u,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,u,c)},o.alloc=function(a,u,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var f=i(a);return u!==void 0?typeof c=="string"?f.fill(u,c):f.fill(u):f.fill(0),f},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}},function(e,t,r){e.exports=!r(85)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(e,t){e.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},function(e,t){e.exports={}},function(e,t){e.exports=require("os")},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wait=n,t.promisify=i,t.queue=s;function n(o){return new Promise(a=>{setTimeout(a,o)})}function i(o,a){return function(...u){return new Promise(function(c,f){u.push(function(l,...h){let d=h;h.length<=1&&(d=h[0]),a&&(d=l,l=null),l?f(l):c(d)}),o.apply(null,u)})}}function s(o,a,u=1/0){u=Math.min(u,o.length),o=o.slice();let c=[],f=o.length;return f?new Promise((l,h)=>{for(let p=0;p<u;p++)d();function d(){let p=o.shift();a(p).then(function(m){c.push(m),f--,f===0?l(c):o.length&&d()},h)}}):Promise.resolve(c)}},function(e,t,r){var n=r(11),i=r(23),s=r(48),o=r(31),a=r(49),u="prototype",c=function(f,l,h){var d=f&c.F,p=f&c.G,y=f&c.S,m=f&c.P,O=f&c.B,S=f&c.W,k=p?i:i[l]||(i[l]={}),P=k[u],b=p?n:y?n[l]:(n[l]||{})[u],_,L,D;p&&(h=l);for(_ in h)L=!d&&b&&b[_]!==void 0,!(L&&a(k,_))&&(D=L?b[_]:h[_],k[_]=p&&typeof b[_]!="function"?h[_]:O&&L?s(D,n):S&&b[_]==D?function($){var x=function(g,v,A){if(this instanceof $){switch(arguments.length){case 0:return new $;case 1:return new $(g);case 2:return new $(g,v)}return new $(g,v,A)}return $.apply(this,arguments)};return x[u]=$[u],x}(D):m&&typeof D=="function"?s(Function.call,D):D,m&&((k.virtual||(k.virtual={}))[_]=D,f&c.R&&P&&!P[_]&&o(P,_,D)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,r){try{var n=r(2);if(typeof n.inherits!="function")throw"";e.exports=n.inherits}catch{e.exports=r(224)}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.home=void 0;var n;function i(){return n=s(r(169))}function s(c){return c&&c.__esModule?c:{default:c}}let o=r(0),a=t.home=r(36).homedir(),u=(n||i()).default?o.resolve("/usr/local/share"):a;t.default=u},function(e,t){e.exports=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r}},function(e,t){var r={}.toString;e.exports=function(n){return r.call(n).slice(8,-1)}},function(e,t,r){var n=r(46);e.exports=function(i,s,o){if(n(i),s===void 0)return i;switch(o){case 1:return function(a){return i.call(s,a)};case 2:return function(a,u){return i.call(s,a,u)};case 3:return function(a,u,c){return i.call(s,a,u,c)}}return function(){return i.apply(s,arguments)}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(n,i){return r.call(n,i)}},function(e,t,r){var n=r(27),i=r(184),s=r(201),o=Object.defineProperty;t.f=r(33)?Object.defineProperty:function(u,c,f){if(n(u),c=s(c,!0),n(f),i)try{return o(u,c,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(u[c]=f.value),u}},,,,function(e,t){e.exports=require("events")},function(e,t,r){"use strict";let n=r(32).Buffer,i=r(9),s=r(17).Transform,o=["sha256","sha384","sha512"],a=/^[a-z0-9+/]+(?:=?=?)$/i,u=/^([^-]+)-([^?]+)([?\S*]*)$/,c=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,f=/^[\x21-\x7E]+$/;class l{get isHash(){return!0}constructor(g,v){let A=!!(v&&v.strict);this.source=g.trim();let C=this.source.match(A?c:u);if(!C||A&&!o.some(w=>w===C[1]))return;this.algorithm=C[1],this.digest=C[2];let E=C[3];this.options=E?E.slice(1).split("?"):[]}hexDigest(){return this.digest&&n.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(g){if(g&&g.strict&&!(o.some(A=>A===this.algorithm)&&this.digest.match(a)&&(this.options||[]).every(A=>A.match(f))))return"";let v=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${v}`}}class h{get isIntegrity(){return!0}toJSON(){return this.toString()}toString(g){g=g||{};let v=g.sep||" ";return g.strict&&(v=v.replace(/\S+/g," ")),Object.keys(this).map(A=>this[A].map(C=>l.prototype.toString.call(C,g)).filter(C=>C.length).join(v)).filter(A=>A.length).join(v)}concat(g,v){let A=typeof g=="string"?g:y(g,v);return d(`${this.toString(v)} ${A}`,v)}hexDigest(){return d(this,{single:!0}).hexDigest()}match(g,v){let A=d(g,v),C=A.pickAlgorithm(v);return this[C]&&A[C]&&this[C].find(E=>A[C].find(w=>E.digest===w.digest))||!1}pickAlgorithm(g){let v=g&&g.pickAlgorithm||$,A=Object.keys(this);if(!A.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return A.reduce((C,E)=>v(C,E)||C)}}e.exports.parse=d;function d(x,g){if(g=g||{},typeof x=="string")return p(x,g);if(x.algorithm&&x.digest){let v=new h;return v[x.algorithm]=[x],p(y(v,g),g)}else return p(y(x,g),g)}function p(x,g){return g.single?new l(x,g):x.trim().split(/\s+/).reduce((v,A)=>{let C=new l(A,g);if(C.algorithm&&C.digest){let E=C.algorithm;v[E]||(v[E]=[]),v[E].push(C)}return v},new h)}e.exports.stringify=y;function y(x,g){return x.algorithm&&x.digest?l.prototype.toString.call(x,g):typeof x=="string"?y(d(x,g),g):h.prototype.toString.call(x,g)}e.exports.fromHex=m;function m(x,g,v){let A=v&&v.options&&v.options.length?`?${v.options.join("?")}`:"";return d(`${g}-${n.from(x,"hex").toString("base64")}${A}`,v)}e.exports.fromData=O;function O(x,g){g=g||{};let v=g.algorithms||["sha512"],A=g.options&&g.options.length?`?${g.options.join("?")}`:"";return v.reduce((C,E)=>{let w=i.createHash(E).update(x).digest("base64"),T=new l(`${E}-${w}${A}`,g);if(T.algorithm&&T.digest){let N=T.algorithm;C[N]||(C[N]=[]),C[N].push(T)}return C},new h)}e.exports.fromStream=S;function S(x,g){g=g||{};let v=g.Promise||Promise,A=b(g);return new v((C,E)=>{x.pipe(A),x.on("error",E),A.on("error",E);let w;A.on("integrity",T=>{w=T}),A.on("end",()=>C(w)),A.on("data",()=>{})})}e.exports.checkData=k;function k(x,g,v){if(v=v||{},g=d(g,v),!Object.keys(g).length){if(v.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let A=g.pickAlgorithm(v),C=i.createHash(A).update(x).digest("base64"),E=d({algorithm:A,digest:C}),w=E.match(g,v);if(w||!v.error)return w;if(typeof v.size=="number"&&x.length!==v.size){let T=new Error(`data size mismatch when checking ${g}.
66
+ `+c}function W6(e,t){var r=!1,n=!1;t.legacy||t.mode==="json"||(t.mode==="cjson"?n=!0:(t.mode,r=!0));var i=r?mn.isLineTerminator:mn.isLineTerminatorJSON,s=r?mn.isWhiteSpace:mn.isWhiteSpaceJSON,o=e.length,a=0,u=0,c=0,f=[],l=function(){},h=function(x){return x};t._tokenize&&(function(){var x=null;l=function(){if(x!==null)throw Error("internal error, token overlap");x=c},h=function(g,v){if(x!=c){var A={raw:e.substr(x,c-x),type:v,stack:f.slice(0)};g!==void 0&&(A.value=g),t._tokenize.call(null,A)}return x=null,g}})();function d(x){var g=c-u;if(!x)if(c<o){var v="'"+JSON.stringify(e[c]).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";x||(x="Unexpected token "+v)}else x||(x="Unexpected end of input");var A=SyntaxError(B6(e,x,c,a,g,r));throw A.row=a+1,A.column=g+1,A}function p(x){x==="\r"&&e[c]===`
67
+ `&&c++,u=c,a++}function y(){for(var x;c<o;){l();var g=e[c++];return g==='"'||g==="'"&&r?h(k(g),"literal"):g==="{"?(h(void 0,"separator"),O()):g==="["?(h(void 0,"separator"),b()):g==="-"||g==="."||ya(g)||r&&(g==="+"||g==="I"||g==="N")?h(_(),"literal"):g==="n"?(L("null"),h(null,"literal")):g==="t"?(L("true"),h(!0,"literal")):g==="f"?(L("false"),h(!1,"literal")):(c--,h(void 0))}}function m(){for(var x;c<o;){l();var g=e[c++];if(g==='"'||g==="'"&&r)return h(k(g),"key");if(g==="{")return h(void 0,"separator"),O();if(g==="[")return h(void 0,"separator"),b();if(g==="."||ya(g))return h(_(!0),"key");if(r&&mn.isIdentifierStart(g)||g==="\\"&&e[c]==="u"){var v=c-1,x=D();return x===void 0?(c=v,h(void 0)):h(x,"key")}else return c--,h(void 0)}}function P(){for(l();c<o;){var x=e[c++];if(i(x))c--,h(void 0,"whitespace"),l(),c++,p(x),h(void 0,"newline"),l();else if(!s(x))if(x==="/"&&(r||n)&&(e[c]==="/"||e[c]==="*"))c--,h(void 0,"whitespace"),l(),c++,S(e[c++]==="*"),h(void 0,"comment"),l();else{c--;break}}return h(void 0,"whitespace")}function S(x){for(;c<o;){var g=e[c++];if(i(g)){if(!x){c--;return}p(g)}else if(g==="*"&&x&&e[c]==="/"){c++;return}}x&&d("Unclosed multiline comment")}function L(x){for(var g=c,v=x.length,A=1;A<v;A++)(c>=o||x[A]!=e[c])&&(c=g-1,d()),c++}function O(){for(var x=t.null_prototype?Object.create(null):{},g={},v=!1;c<o;){P();var A=m();P(),l();var C=e[c++];if(h(void 0,"separator"),C==="}"&&A===void 0)return!r&&v&&(c--,d("Trailing comma in object")),x;if(C===":"&&A!==void 0){P(),f.push(A);var E=y();f.pop(),E===void 0&&d("No value found for key "+A),typeof A!="string"&&(!r||typeof A!="number")&&d("Wrong key type: "+A),(A in g||g[A]!=null)&&t.reserved_keys!=="replace"?t.reserved_keys==="throw"&&d("Reserved key: "+A):(typeof t.reviver=="function"&&(E=t.reviver.call(null,A,E)),E!==void 0&&(v=!0,Object.defineProperty(x,A,{value:E,enumerable:!0,configurable:!0,writable:!0}))),P(),l();var C=e[c++];if(h(void 0,"separator"),C===",")continue;if(C==="}")return x;d()}else c--,d()}d()}function b(){for(var x=[];c<o;){P(),f.push(x.length);var g=y();f.pop(),P(),l();var v=e[c++];if(h(void 0,"separator"),g!==void 0&&(typeof t.reviver=="function"&&(g=t.reviver.call(null,String(x.length),g)),g===void 0?(x.length++,g=!0):x.push(g)),v===",")g===void 0&&d("Elisions are not supported");else{if(v==="]")return!r&&g===void 0&&x.length&&(c--,d("Trailing comma in array")),x;c--,d()}}}function _(){c--;var x=c,g=e[c++],v,A=function(T){var N=e.substr(x,c-x);if(T)var M=parseInt(N.replace(/^0o?/,""),8);else var M=Number(N);if(Number.isNaN(M))c--,d('Bad numeric literal - "'+e.substr(x,c-x+1)+'"');else if(!r&&!N.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))c--,d('Non-json numeric literal - "'+e.substr(x,c-x+1)+'"');else return M};if((g==="-"||g==="+"&&r)&&(g=e[c++]),g==="N"&&r)return L("NaN"),NaN;if(g==="I"&&r)return L("Infinity"),A();if(g>="1"&&g<="9"){for(;c<o&&ya(e[c]);)c++;g=e[c++]}if(g==="0"){g=e[c++];var C=g==="o"||g==="O"||Ts(g),E=g==="x"||g==="X";if(r&&(C||E)){for(;c<o&&(E?Ls:Ts)(e[c]);)c++;var w=1;return e[x]==="-"?(w=-1,x++):e[x]==="+"&&x++,w*A(C)}}if(g==="."){for(;c<o&&ya(e[c]);)c++;g=e[c++]}if(g==="e"||g==="E"){for(g=e[c++],(g==="-"||g==="+")&&c++;c<o&&ya(e[c]);)c++;g=e[c++]}return c--,A()}function D(){c--;for(var x="";c<o;){var g=e[c++];if(g==="\\"&&e[c]==="u"&&Ls(e[c+1])&&Ls(e[c+2])&&Ls(e[c+3])&&Ls(e[c+4])&&(g=String.fromCharCode(parseInt(e.substr(c+1,4),16)),c+=5),x.length)if(mn.isIdentifierPart(g))x+=g;else return c--,x;else if(mn.isIdentifierStart(g))x+=g;else return}d()}function k(x){for(var g="";c<o;){var v=e[c++];if(v===x)return g;if(v==="\\")if(c>=o&&d(),v=e[c++],h_[v]&&(r||v!="v"&&v!="'"))g+=h_[v];else if(r&&i(v))p(v);else if(v==="u"||v==="x"&&r){for(var A=v==="u"?4:2,C=0;C<A;C++)c>=o&&d(),Ls(e[c])||d("Bad escape sequence"),c++;g+=String.fromCharCode(parseInt(e.substr(c-A,A),16))}else if(r&&Ts(v)){if(v<"4"&&Ts(e[c])&&Ts(e[c+1]))var E=3;else if(Ts(e[c]))var E=2;else var E=1;c+=E-1,g+=String.fromCharCode(parseInt(e.substr(c-E,E),8))}else r?g+=v:(c--,d());else i(v)?d():(!r&&v.charCodeAt(0)<32&&(c--,d("Unexpected control character")),g+=v)}d()}P();var $=y();if($!==void 0||c<o){if(P(),c>=o)return typeof t.reviver=="function"&&($=t.reviver.call(null,"",$)),$;d()}else d(c?"No data, only a whitespace":"No data, empty input")}hl.exports.parse=function(t,r){if(typeof r=="function"&&(r={reviver:r}),t!==void 0){typeof t!="string"&&(t=String(t)),r==null&&(r={}),r.reserved_keys==null&&(r.reserved_keys="ignore"),(r.reserved_keys==="throw"||r.reserved_keys==="ignore")&&r.null_prototype==null&&(r.null_prototype=!0);try{return W6(t,r)}catch(i){if(i instanceof SyntaxError&&i.row!=null&&i.column!=null){var n=i;i=SyntaxError(n.message),i.column=n.column,i.row=n.row}throw i}}};hl.exports.tokenize=function(t,r){r==null&&(r={}),r._tokenize=function(i){r._addstack&&i.stack.unshift.apply(i.stack,r._addstack),n.push(i)};var n=[];return n.data=hl.exports.parse(t,r),n}});var vm=F((MQ,p_)=>{var mm=gm();(function(){}).name||Object.defineProperty((function(){}).constructor.prototype,"name",{get:function(){var e=this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];return Object.defineProperty(this,"name",{value:e}),e}});var q6={0:"\\0",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",92:"\\\\"},G6=Object.prototype.hasOwnProperty,d_=/[\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/;function ym(e,t,r,n){var i=t.mode==="json5"||!t.mode;function s(l,h){var d=t._prefix?t._prefix:"";if(!t.indent)return d+l;for(var p="",y=r+(h||0),m=0;m<y;m++)p+=t.indent;return d+p+l+(h?`
68
+ `:"")}function o(l){if(t.quote_keys)return a(l);if(String(Number(l))==l&&l[0]!="-")return l;if(l=="")return a(l);for(var h="",d=0;d<l.length;d++){if(d>0){if(!mm.isIdentifierPart(l[d]))return a(l)}else if(!mm.isIdentifierStart(l[d]))return a(l);var p=l.charCodeAt(d);t.ascii?p<128?h+=l[d]:h+="\\u"+("0000"+p.toString(16)).slice(-4):d_.exec(l[d])?h+="\\u"+("0000"+p.toString(16)).slice(-4):h+=l[d]}return h}function a(l){for(var h=t.quote,d=h.charCodeAt(0),p="",y=0;y<l.length;y++){var m=l.charCodeAt(y);if(m<16)m===0&&i?p+="\\0":m>=8&&m<=13&&(i||m!==11)?p+=q6[m]:i?p+="\\x0"+m.toString(16):p+="\\u000"+m.toString(16);else if(m<32)i?p+="\\x"+m.toString(16):p+="\\u00"+m.toString(16);else if(m>=32&&m<128)m===47&&y&&l[y-1]==="<"?p+="\\"+l[y]:m===92?p+="\\\\":m===d?p+="\\"+h:p+=l[y];else if(t.ascii||mm.isLineTerminator(l[y])||d_.exec(l[y]))if(m<256)i?p+="\\x"+m.toString(16):p+="\\u00"+m.toString(16);else if(m<4096)p+="\\u0"+m.toString(16);else if(m<65536)p+="\\u"+m.toString(16);else throw Error("weird codepoint");else p+=l[y]}return h+p+h}function u(){if(e===null)return"null";var l=[],h=0,d;if(Array.isArray(e)){d="[]";for(var p=0;p<e.length;p++){var y=ym(e[p],t,r+1,String(p));y===void 0&&(y="null"),h+=y.length+2,l.push(y+",")}}else{d="{}";var m=function(L){var O=ym(e[L],t,r+1,L);O!==void 0&&(O=o(L)+":"+(t.indent?" ":"")+O+",",h+=O.length+1,l.push(O))};if(Array.isArray(t.replacer))for(var p=0;p<t.replacer.length;p++)G6.call(e,t.replacer[p])&&m(t.replacer[p]);else{var P=Object.keys(e);t.sort_keys&&(P=P.sort(typeof t.sort_keys=="function"?t.sort_keys:void 0)),P.forEach(m)}}if(h-=2,t.indent&&(h>t._splitMax-r*t.indent.length||h>t._splitMin)){t.no_trailing_comma&&l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var S=l.map(function(L){return s(L,1)}).join("");return d[0]+(t.indent?`
69
+ `:"")+S+s(d[1])}else{l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var S=l.join(t.indent?" ":"");return d[0]+S+d[1]}}function c(l){switch(typeof t.replacer=="function"&&(l=t.replacer.call(null,n,l)),typeof l){case"string":return a(l);case"number":return l===0&&1/l<0?"-0":!i&&!Number.isFinite(l)?"null":l.toString();case"boolean":return l.toString();case"undefined":return;case"function":default:return JSON.stringify(l)}}if(t._stringify_key)return o(e);if(typeof e=="object"){if(e===null)return"null";var f;return(typeof(f=e.toJSON5)=="function"&&t.mode!=="json"||typeof(f=e.toJSON)=="function")&&(e=f.call(e,n)),e===null?"null":typeof e!="object"?c(e):e.constructor===Number||e.constructor===Boolean||e.constructor===String?(e=e.valueOf(),c(e)):e.constructor===Date?c(e.toISOString()):typeof t.replacer=="function"&&(e=t.replacer.call(null,n,e),typeof e!="object")?c(e):u(e)}else return c(e)}p_.exports.stringify=function(t,r,n){return typeof r=="function"||Array.isArray(r)?r={replacer:r}:typeof r=="object"&&r!==null||(r={}),n!=null&&(r.indent=n),r.indent==null&&(r.indent=" "),r.quote==null&&(r.quote="'"),r.ascii==null&&(r.ascii=!1),r.mode==null&&(r.mode="json5"),(r.mode==="json"||r.mode==="cjson")&&(r.quote='"',r.no_trailing_comma=!0,r.quote_keys=!0),typeof r.indent=="object"&&(r.indent.constructor===Number||r.indent.constructor===Boolean||r.indent.constructor===String)&&(r.indent=r.indent.valueOf()),typeof r.indent=="number"?r.indent>=0?r.indent=Array(Math.min(~~r.indent,10)+1).join(" "):r.indent=!1:typeof r.indent=="string"&&(r.indent=r.indent.substr(0,10)),r._splitMin==null&&(r._splitMin=50),r._splitMax==null&&(r._splitMax=70),ym(t,r,0,"")}});var Am=F((jQ,g_)=>{var U6=va().tokenize;g_.exports.analyze=function(t,r){r==null&&(r={}),Array.isArray(t)||(t=U6(t,r));for(var n={has_whitespace:!1,has_comments:!1,has_newlines:!1,has_trailing_comma:!1,indent:"",newline:`
70
+ `,quote:'"',quote_keys:!0},i={indent:{},newline:{},quote:{}},s=0;s<t.length;s++){if(t[s].type==="newline"){if(t[s+1]&&t[s+1].type==="whitespace"&&(t[s+1].raw[0]===" "&&(i.indent[" "]=(i.indent[" "]||0)+1),t[s+1].raw.match(/^\x20+$/))){var o=t[s+1].raw.length,a=t[s+1].stack.length+1;if(o%a===0){var u=Array(o/a+1).join(" ");i.indent[u]=(i.indent[u]||0)+1}}i.newline[t[s].raw]=(i.newline[t[s].raw]||0)+1}if(t[s].type==="newline"&&(n.has_newlines=!0),t[s].type==="whitespace"&&(n.has_whitespace=!0),t[s].type==="comment"&&(n.has_comments=!0),t[s].type==="key"&&t[s].raw[0]!=='"'&&t[s].raw[0]!=="'"&&(n.quote_keys=!1),(t[s].type==="key"||t[s].type==="literal")&&(t[s].raw[0]==='"'||t[s].raw[0]==="'")&&(i.quote[t[s].raw[0]]=(i.quote[t[s].raw[0]]||0)+1),t[s].type==="separator"&&t[s].raw===",")for(var c=s+1;c<t.length&&!(t[c].type==="literal"||t[c].type==="key");c++)t[c].type==="separator"&&(n.has_trailing_comma=!0)}for(var f in i)Object.keys(i[f]).length&&(n[f]=Object.keys(i[f]).reduce(function(l,h){return i[f][l]>i[f][h]?l:h}));return n}});var b_=F((BQ,bm)=>{var Nr=require("assert"),E_=va().tokenize,H6=vm().stringify,z6=Am().analyze;function Ea(e){return typeof e=="object"&&e!==null}function dl(e,t,r,n,i){r=Object.create(r),r._stringify_key=!!n,i&&(r._prefix=i.prefix.map(function(a){return a.raw}).join("")),r._splitMin==null&&(r._splitMin=0),r._splitMax==null&&(r._splitMax=0);var s=H6(e,r);if(n)return[{raw:s,type:"key",stack:t,value:e}];r._addstack=t;var o=E_(s,{_addstack:t});return o.data=null,o}function Em(e){if(typeof e=="number"&&(e=String(e)),e===""&&(e=[]),typeof e=="string"&&(e=e.split(".")),!Array.isArray(e))throw Error("Invalid path type, string or array expected");return e}function m_(e,t,r,n,i){for(;r[n].stack[t]!=e;)if(n++>=i)return!1;for(;r[i].stack[t]!=e;)if(i--<n)return!1;return[n,i]}function Aa(e){return e==="whitespace"||e==="newline"||e==="comment"}function y_(e,t,r){for(;Aa(e[t].type);)if(t++>=r)return!1;return t}function Is(e,t,r){for(;Aa(e[r].type);)if(r--<t)return!1;return r}function v_(e,t,r,n,i){var s={sep1:[],sep2:[],suffix:[],prefix:[],newline:[]};if(e[n].type==="separator"&&e[n].stack.length!==i+1&&e[n].raw!==","||(e[n].type==="separator"&&(n=Is(e,r,n-1)),n===!1))return s;for(;e[n].stack.length>i;)n--;if(!t){for(;Aa(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep2.unshift(e[n]);else return s;n--}for(Nr.equal(e[n].type,"separator"),Nr.equal(e[n].raw,":");Aa(e[--n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep1.unshift(e[n]);else return s}Nr.equal(e[n].type,"key"),n--}for(;Aa(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.prefix.unshift(e[n]);else return e[n].type==="newline"&&s.newline.unshift(e[n]),s;n--}return s}function yn(e,t){var r=Object.create(yn.prototype);t==null&&(t={});var n=r._tokens=E_(e,t);r._data=n.data,n.data=null,r._options=t;var i=z6(e,t);return t.indent==null&&(t.indent=i.indent),t.quote==null&&(t.quote=i.quote),t.quote_keys==null&&(t.quote_keys=i.quote_keys),t.no_trailing_comma==null&&(t.no_trailing_comma=!i.has_trailing_comma),r}function A_(e,t,r){function n(i){return Error("You can't "+(r?"unset":"set")+" key '"+e+"'"+i)}if(!Ea(t))throw n(" of an non-object");if(Array.isArray(t))if(String(e).match(/^\d+$/)){if(e=Number(String(e)),t.length<e||r&&t.length===e)throw n(", out of bounds");if(r&&t.length!==e+1)throw n(" in the middle of an array");return!0}else throw n(" of an array");else return!0}yn.prototype.set=function(e,t){if(e=Em(e),e.length===0){if(t===void 0)throw Error("can't remove root document");this._data=t;var r=!1}else{for(var n=this._data,i=0;i<e.length-1;i++)A_(e[i],n,!1),n=n[e[i]];i===e.length-1&&A_(e[i],n,t===void 0);var r=!(e[i]in n);t===void 0?Array.isArray(n)?n.pop():delete n[e[i]]:n[e[i]]=t}this._tokens.length||(this._tokens=[{raw:"",type:"literal",stack:[],value:void 0}]);for(var s=[y_(this._tokens,0,this._tokens.length-1),Is(this._tokens,0,this._tokens.length-1)],i=0;i<e.length-1;i++)if(s=m_(e[i],i,this._tokens,s[0],s[1]),s==!1)throw Error("internal error, please report this");if(e.length===0)var o=dl(t,e,this._options);else if(r){var f=e.slice(0,i),u=Is(this._tokens,s[0]+1,s[1]-1);Nr(u!==!1);var c=u!==!1?v_(this._tokens,Array.isArray(n),s[0]+1,u,i):{},o=dl(t,e,this._options,!1,c),l=[];c.newline&&c.newline.length&&(l=l.concat(c.newline)),c.prefix&&c.prefix.length&&(l=l.concat(c.prefix)),Array.isArray(n)||(l=l.concat(dl(e[e.length-1],f,this._options,!0)),c.sep1&&c.sep1.length&&(l=l.concat(c.sep1)),l.push({raw:":",type:"separator",stack:f}),c.sep2&&c.sep2.length&&(l=l.concat(c.sep2))),o.unshift.apply(o,l),this._tokens[u].type==="separator"&&this._tokens[u].stack.length===e.length-1?this._tokens[u].raw===","&&o.push({raw:",",type:"separator",stack:f}):o.unshift({raw:",",type:"separator",stack:f}),c.suffix&&c.suffix.length&&o.push.apply(o,c.suffix),Nr.equal(this._tokens[s[1]].type,"separator"),s[0]=u+1,s[1]=u}else{var a=s;if(s=m_(e[i],i,this._tokens,s[0],s[1]),t===void 0&&s!==!1){var o=[];if(!Array.isArray(n)){var u=Is(this._tokens,a[0],s[0]-1);Nr.equal(this._tokens[u].type,"separator"),Nr.equal(this._tokens[u].raw,":"),s[0]=u;var u=Is(this._tokens,a[0],s[0]-1);Nr.equal(this._tokens[u].type,"key"),Nr.equal(this._tokens[u].value,e[e.length-1]),s[0]=u}var u=Is(this._tokens,a[0],s[0]-1);Nr.equal(this._tokens[u].type,"separator"),this._tokens[u].raw===","?s[0]=u:(u=y_(this._tokens,s[1]+1,a[1]),Nr.equal(this._tokens[u].type,"separator"),this._tokens[u].raw===","&&(s[1]=u))}else var c=u!==!1?v_(this._tokens,Array.isArray(n),a[0],s[1]-1,i):{},o=dl(t,e,this._options,!1,c)}return o.unshift(s[1]-s[0]+1),o.unshift(s[0]),this._tokens.splice.apply(this._tokens,o),this};yn.prototype.unset=function(e){return this.set(e,void 0)};yn.prototype.get=function(e){e=Em(e);for(var t=this._data,r=0;r<e.length;r++){if(!Ea(t))return;t=t[e[r]]}return t};yn.prototype.has=function(e){e=Em(e);for(var t=this._data,r=0;r<e.length;r++){if(!Ea(t))return!1;t=t[e[r]]}return t!==void 0};yn.prototype.update=function(e){var t=this;return r([],t._data,e),t;function r(n,i,s){if(!Ea(s)||!Ea(i))s!==i&&t.set(n,s);else if(Array.isArray(s)!=Array.isArray(i))t.set(n,s);else if(Array.isArray(s))if(s.length>i.length)for(var o=0;o<s.length;o++)n.push(String(o)),r(n,i[o],s[o]),n.pop();else for(var o=i.length-1;o>=0;o--)n.push(String(o)),r(n,i[o],s[o]),n.pop();else{for(var o in s)n.push(String(o)),r(n,i[o],s[o]),n.pop();for(var o in i)o in s||(n.push(String(o)),r(n,i[o],s[o]),n.pop())}}};yn.prototype.toString=function(){return this._tokens.map(function(e){return e.raw}).join("")};bm.exports.Document=yn;bm.exports.update=function(t,r,n){return yn(t,n).update(r).toString()}});var w_=F((WQ,pl)=>{var Y6=require("fs"),V6=ba();pl.exports.register=function(){var e=require,t="extensions";e[t][".json5"]=function(r,n){r.exports=V6.parse(Y6.readFileSync(n,"utf8"))}};pl.exports.patch_JSON_parse=function(){var e=JSON.parse;JSON.parse=function(t,r){try{return e(t,r)}catch(n){throw ba().parse(t,{mode:"json",legacy:!0,reviver:r,reserved_keys:"replace",null_prototype:!1}),n}}};pl.exports.middleware=function(){return function(e,t,r){throw Error("this function is removed, use express-json5 instead")}}});var ba=F((qQ,Ii)=>{Ii.exports.__defineGetter__("parse",function(){return va().parse});Ii.exports.__defineGetter__("stringify",function(){return vm().stringify});Ii.exports.__defineGetter__("tokenize",function(){return va().tokenize});Ii.exports.__defineGetter__("update",function(){return b_().update});Ii.exports.__defineGetter__("analyze",function(){return Am().analyze});Ii.exports.__defineGetter__("utils",function(){return w_()})});var Pm=F(Ct=>{"use strict";var Sm=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.getWorkspacesAsync=Ct.getWorkspaces=Ct.getRushWorkspacesAsync=Ct.getRushWorkspaces=Ct.getWorkspacePackagePaths=Ct.getRushWorkspaceRoot=void 0;var wm=Sm(require("path")),K6=Sm(ba()),J6=Sm(require("fs")),S_=ua(),Cm=hn(),X6=ys();function C_(e){let t=(0,X6.getWorkspaceManagerAndRoot)(e,void 0,"rush")?.root;if(!t)throw new Error("Could not find rush workspace root from "+e);return t}Ct.getRushWorkspaceRoot=C_;function xm(e){try{let t=C_(e),r=wm.default.join(t,"rush.json"),n=K6.default.parse(J6.default.readFileSync(r,"utf-8")),i=wm.default.dirname(r);return n.projects.map(s=>wm.default.join(i,s.projectFolder))}catch(t){return(0,Cm.logVerboseWarning)(`Error getting rush workspace package paths for ${e}`,t),[]}}Ct.getWorkspacePackagePaths=xm;function x_(e){try{let t=xm(e);return(0,S_.getWorkspacePackageInfo)(t)}catch(t){return(0,Cm.logVerboseWarning)(`Error getting rush workspaces for ${e}`,t),[]}}Ct.getRushWorkspaces=x_;Ct.getWorkspaces=x_;async function P_(e){try{let t=xm(e);return(0,S_.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,Cm.logVerboseWarning)(`Error getting rush workspaces for ${e}`,t),[]}}Ct.getRushWorkspacesAsync=P_;Ct.getWorkspacesAsync=P_});var R_=F(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getWorkspacesAsync=Ut.getWorkspaces=Ut.getNpmWorkspacesAsync=Ut.getNpmWorkspaces=Ut.getWorkspacePackagePathsAsync=Ut.getWorkspacePackagePaths=void 0;var Q6=Pi(),gl=Lg();function ml(e){let t=(0,Q6.getWorkspaceManagerAndRoot)(e,void 0,"npm")?.root;if(!t)throw new Error("Could not find npm workspace root from "+e);return t}function Z6(e){let t=ml(e);return(0,gl.getPackagePathsFromWorkspaceRoot)(t)}Ut.getWorkspacePackagePaths=Z6;function e8(e){let t=ml(e);return(0,gl.getPackagePathsFromWorkspaceRootAsync)(t)}Ut.getWorkspacePackagePathsAsync=e8;function O_(e){let t=ml(e);return(0,gl.getWorkspaceInfoFromWorkspaceRoot)(t)}Ut.getNpmWorkspaces=O_;Ut.getWorkspaces=O_;function __(e){let t=ml(e);return(0,gl.getWorkspaceInfoFromWorkspaceRootAsync)(t)}Ut.getNpmWorkspacesAsync=__;Ut.getWorkspacesAsync=__});var L_=F(Ht=>{"use strict";var Om=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.getWorkspacesAsync=Ht.getWorkspaces=Ht.getLernaWorkspacesAsync=Ht.getLernaWorkspaces=Ht.getWorkspacePackagePaths=void 0;var t8=Om(require("fs")),r8=Om(ba()),n8=Om(require("path")),i8=Xc(),F_=ua(),_m=hn(),s8=ys();function o8(e){let t=(0,s8.getWorkspaceManagerAndRoot)(e,void 0,"lerna")?.root;if(!t)throw new Error("Could not find lerna workspace root from "+e);return t}function Rm(e){try{let t=o8(e),r=n8.default.join(t,"lerna.json"),n=r8.default.parse(t8.default.readFileSync(r,"utf-8"));return(0,i8.getPackagePaths)(t,n.packages)}catch(t){return(0,_m.logVerboseWarning)(`Error getting lerna workspace package paths for ${e}`,t),[]}}Ht.getWorkspacePackagePaths=Rm;function k_(e){try{let t=Rm(e);return(0,F_.getWorkspacePackageInfo)(t)}catch(t){return(0,_m.logVerboseWarning)(`Error getting lerna workspaces for ${e}`,t),[]}}Ht.getLernaWorkspaces=k_;Ht.getWorkspaces=k_;async function D_(e){try{let t=Rm(e);return(0,F_.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,_m.logVerboseWarning)(`Error getting lerna workspaces for ${e}`,t),[]}}Ht.getLernaWorkspacesAsync=D_;Ht.getWorkspacesAsync=D_});var T_=F(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.getWorkspaceUtilities=void 0;var a8=ys();function u8(e){switch((0,a8.getWorkspaceManagerAndRoot)(e)?.manager){case"yarn":return hm();case"pnpm":return pm();case"rush":return Pm();case"npm":return R_();case"lerna":return L_()}}yl.getWorkspaceUtilities=u8});var Pi=F(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.getWorkspaceUtilities=Ns.getWorkspaceManagerAndRoot=void 0;var c8=ys();Object.defineProperty(Ns,"getWorkspaceManagerAndRoot",{enumerable:!0,get:function(){return c8.getWorkspaceManagerAndRoot}});var l8=T_();Object.defineProperty(Ns,"getWorkspaceUtilities",{enumerable:!0,get:function(){return l8.getWorkspaceUtilities}})});var vl=F($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.getWorkspacesAsync=$s.getWorkspaces=void 0;var Fm=Pi();function f8(e){return(0,Fm.getWorkspaceUtilities)(e)?.getWorkspaces(e)||[]}$s.getWorkspaces=f8;async function h8(e){let t=(0,Fm.getWorkspaceUtilities)(e);if(!t)return[];if(!t.getWorkspacesAsync){let r=(0,Fm.getWorkspaceManagerAndRoot)(e)?.manager;throw new Error(`${e} is using ${r} which has not been converted to async yet`)}return t.getWorkspacesAsync(e)}$s.getWorkspacesAsync=h8});var $_=F(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.getPackageInfosAsync=Ms.getPackageInfos=void 0;var I_=vl(),N_=aa();function d8(e){let t={},r=(0,I_.getWorkspaces)(e);if(r.length)for(let n of r)t[n.name]=n.packageJson;else{let n=(0,N_.getPackageInfo)(e);n&&(t[n.name]=n)}return t}Ms.getPackageInfos=d8;async function p8(e){let t={},r=await(0,I_.getWorkspacesAsync)(e);if(r.length)for(let n of r)t[n.name]=n.packageJson;else{let n=(0,N_.getPackageInfo)(e);n&&(t[n.name]=n)}return t}Ms.getPackageInfosAsync=p8});var El=F(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.createDependencyMap=void 0;var g8=Xo();function m8(e,t={withDevDependencies:!0,withPeerDependencies:!1}){let r={dependencies:new Map,dependents:new Map},n=new Set(Object.keys(e));for(let[i,s]of Object.entries(e)){let o=(0,g8.getPackageDependencies)(s,n,t);for(let a of o)r.dependencies.has(i)||r.dependencies.set(i,new Set),r.dependencies.get(i).add(a),r.dependents.has(a)||r.dependents.set(a,new Set),r.dependents.get(a).add(i)}return r}Al.createDependencyMap=m8});var j_=F(js=>{"use strict";var y8=js&&js.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(js,"__esModule",{value:!0});js.createPackageGraph=void 0;var v8=El(),A8=y8(sa());function E8(e,t){let r=new Set,n=[],i=new Set,s=new Map;function o(f,l,h,d){if(r.add(l),!f||f.includeDependencies&&h)for(let p of h){let y=a(l,p);i.has(y)||(i.add(y),n.push({name:l,dependency:p})),r.add(p)}if(!f||f.includeDependents&&d)for(let p of d){let y=a(p,l);i.has(y)||(i.add(y),n.push({name:p,dependency:l})),r.add(p)}}if(t){t=Array.isArray(t)?t:[t];for(let f of t){let l=o.bind(void 0,f),h=u(e,f);M_(e,h,l,f)}}else{let f=o.bind(void 0,void 0),l=u(e);M_(e,l,f)}return{packages:[...r],dependencies:n};function a(f,l){return`${f}->${l}`}function u(f,l){let h=c(l);if(!s.has(h)){let d=(0,v8.createDependencyMap)(f,l);s.set(h,d)}return s.get(h)}function c(f){return f?[f.withDevDependencies?"dev":"",f.withPeerDependencies?"peer":"",f.withOptionalDependencies?"optional":""].filter(Boolean).join("_")||"prod":"default"}}js.createPackageGraph=E8;function M_(e,t,r,n){let i=new Set,s=Object.keys(e),o=n?(0,A8.default)(s,n.namePatterns):s;for(;o.length>0;){let a=o.pop();if(i.has(a))continue;let u=new Set,c=[],f=[];if(!n||n.includeDependencies){c=[...t.dependencies.get(a)??[]];for(let l of c)u.add(l)}if(!n||n.includeDependents){f=[...t.dependents.get(a)??[]];for(let l of f)u.add(l)}if(r(a,c,f),i.add(a),u.size>0)for(let l of u)o.push(l)}}});var B_=F($r=>{"use strict";var b8=$r&&$r.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),km=$r&&$r.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&b8(t,e,r)};Object.defineProperty($r,"__esModule",{value:!0});$r.getDependentMap=void 0;km(j_(),$r);km(El(),$r);km(Xo(),$r);var w8=El();function S8(e){return(0,w8.createDependencyMap)(e).dependencies}$r.getDependentMap=S8});var wa=F(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.nameAtVersion=void 0;function C8(e,t){return`${e}@${t}`}bl.nameAtVersion=C8});var W_=F(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.parsePnpmLock=void 0;var x8=wa();function P8(e){let t={};if(e&&e.packages)for(let[r,n]of Object.entries(e.packages)){let i=r.split(/\//),s=i.length>3?`${i[1]}/${i[2]}`:i[1],o=i.length>3?i[3]:i[2];t[(0,x8.nameAtVersion)(s,o)]={version:o,dependencies:n.dependencies}}return{object:t,type:"success"}}wl.parsePnpmLock=P8});var q_=F(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.parseNpmLock=void 0;var O8=wa();function _8(e){return{object:Object.fromEntries(Object.entries(e.dependencies??{}).map(([r,n])=>[(0,O8.nameAtVersion)(r,n.version),n])),type:"success"}}Sl.parseNpmLock=_8});var G_=F(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.parseBerryLock=void 0;function R8(e){let t={};if(e)for(let[r,n]of Object.entries(e)){if(r==="__metadata")continue;let i=r.split(", ");for(let s of i){let o=F8(s);t[o]={version:n.version,dependencies:n.dependencies??{}}}}return{object:t,type:"success"}}Cl.parseBerryLock=R8;function F8(e){return e.includes("npm:")?e.replace(/npm:/,""):e}});var H_=F((nZ,U_)=>{U_.exports=(function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.i=function(n){return n},r.d=function(n,i,s){r.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:s})},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=14)})([(function(e,t){e.exports=require("path")}),(function(e,t,r){"use strict";t.__esModule=!0;var n=r(173),i=s(n);function s(o){return o&&o.__esModule?o:{default:o}}t.default=function(o){return function(){var a=o.apply(this,arguments);return new i.default(function(u,c){function f(l,h){try{var d=a[l](h),p=d.value}catch(y){c(y);return}if(d.done)u(p);else return i.default.resolve(p).then(function(y){f("next",y)},function(y){f("throw",y)})}return f("next")})}}}),(function(e,t){e.exports=require("util")}),(function(e,t){e.exports=require("fs")}),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(c,f){super(c),this.code=f}}t.MessageError=n;class i extends n{constructor(c,f,l){super(c,f),this.process=l}}t.ProcessSpawnError=i;class s extends n{}t.SecurityError=s;class o extends n{}t.ProcessTermError=o;class a extends Error{constructor(c,f){super(c),this.responseCode=f}}t.ResponseError=a}),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstSuitableFolder=t.readFirstAvailableStream=t.makeTempDir=t.hardlinksWork=t.writeFilePreservingEol=t.getFileSizeOnDisk=t.walk=t.symlink=t.find=t.readJsonAndFile=t.readJson=t.readFileAny=t.hardlinkBulk=t.copyBulk=t.unlink=t.glob=t.link=t.chmod=t.lstat=t.exists=t.mkdirp=t.stat=t.access=t.rename=t.readdir=t.realpath=t.readlink=t.writeFile=t.open=t.readFileBuffer=t.lockQueue=t.constants=void 0;var n;function i(){return n=H(r(1))}let s=(()=>{var me=(0,(n||i()).default)(function*(se,Q,X,te){let xe=(()=>{var Le=(0,(n||i()).default)(function*(dt){let Be=dt.src,Pe=dt.dest,eo=dt.type,Vt=dt.onFresh||ar,Ve=dt.onDone||ar;if(Ie.has(Pe.toLowerCase())?te.verbose(`The case-insensitive file ${Pe} shouldn't be copied twice in one bulk copy`):Ie.add(Pe.toLowerCase()),eo==="symlink"){yield K((v||A()).default.dirname(Pe)),Vt(),Pt.symlink.push({dest:Pe,linkname:Be}),Ve();return}if(Q.ignoreBasenames.indexOf((v||A()).default.basename(Be))>=0)return;let Ke=yield B(Be),en;Ke.isDirectory()&&(en=yield Ae(Be));let Mt;try{Mt=yield B(Pe)}catch(Ft){if(Ft.code!=="ENOENT")throw Ft}if(Mt){let Ft=Ke.isSymbolicLink()&&Mt.isSymbolicLink(),tn=Ke.isDirectory()&&Mt.isDirectory(),Rr=Ke.isFile()&&Mt.isFile();if(Rr&&je.has(Pe)){Ve(),te.verbose(te.lang("verboseFileSkipArtifact",Be));return}if(Rr&&Ke.size===Mt.size&&(0,(J||he()).fileDatesEqual)(Ke.mtime,Mt.mtime)){Ve(),te.verbose(te.lang("verboseFileSkip",Be,Pe,Ke.size,+Ke.mtime));return}if(Ft){let pt=yield Y(Be);if(pt===(yield Y(Pe))){Ve(),te.verbose(te.lang("verboseFileSkipSymlink",Be,Pe,pt));return}}if(tn){let pt=yield Ae(Pe);ji(en,"src files not initialised");for(var Pr=pt,En=Array.isArray(Pr),Kt=0,Pr=En?Pr:Pr[Symbol.iterator]();;){var Wi;if(En){if(Kt>=Pr.length)break;Wi=Pr[Kt++]}else{if(Kt=Pr.next(),Kt.done)break;Wi=Kt.value}let Sn=Wi;if(en.indexOf(Sn)<0){let rn=(v||A()).default.join(Pe,Sn);if(X.add(rn),(yield B(rn)).isDirectory())for(var Or=yield Ae(rn),bn=Array.isArray(Or),Jt=0,Or=bn?Or:Or[Symbol.iterator]();;){var qi;if(bn){if(Jt>=Or.length)break;qi=Or[Jt++]}else{if(Jt=Or.next(),Jt.done)break;qi=Jt.value}let Zl=qi;X.add((v||A()).default.join(rn,Zl))}}}}}if(Mt&&Mt.isSymbolicLink()&&(yield(0,(J||he()).unlink)(Pe),Mt=null),Ke.isSymbolicLink()){Vt();let Ft=yield Y(Be);Pt.symlink.push({dest:Pe,linkname:Ft}),Ve()}else if(Ke.isDirectory()){Mt||(te.verbose(te.lang("verboseFileFolder",Pe)),yield K(Pe));let Ft=Pe.split((v||A()).default.sep);for(;Ft.length;)Ie.add(Ft.join((v||A()).default.sep).toLowerCase()),Ft.pop();ji(en,"src files not initialised");let tn=en.length;tn||Ve();for(var _r=en,wn=Array.isArray(_r),Xt=0,_r=wn?_r:_r[Symbol.iterator]();;){var Rt;if(wn){if(Xt>=_r.length)break;Rt=_r[Xt++]}else{if(Xt=_r.next(),Xt.done)break;Rt=Xt.value}let Rr=Rt;se.push({dest:(v||A()).default.join(Pe,Rr),onFresh:Vt,onDone:(function(pt){function Sn(){return pt.apply(this,arguments)}return Sn.toString=function(){return pt.toString()},Sn})(function(){--tn===0&&Ve()}),src:(v||A()).default.join(Be,Rr)})}}else if(Ke.isFile())Vt(),Pt.file.push({src:Be,dest:Pe,atime:Ke.atime,mtime:Ke.mtime,mode:Ke.mode}),Ve();else throw new Error(`unsure how to copy this: ${Be}`)});return function(Be){return Le.apply(this,arguments)}})(),je=new Set(Q.artifactFiles||[]),Ie=new Set;for(var Re=se,Ne=Array.isArray(Re),_e=0,Re=Ne?Re:Re[Symbol.iterator]();;){var Yt;if(Ne){if(_e>=Re.length)break;Yt=Re[_e++]}else{if(_e=Re.next(),_e.done)break;Yt=_e.value}let Le=Yt,dt=Le.onDone;Le.onDone=function(){Q.onProgress(Le.dest),dt&&dt()}}Q.onStart(se.length);let Pt={file:[],symlink:[],link:[]};for(;se.length;){let Le=se.splice(0,Me);yield Promise.all(Le.map(xe))}for(var Ot=je,An=Array.isArray(Ot),Cr=0,Ot=An?Ot:Ot[Symbol.iterator]();;){var ri;if(An){if(Cr>=Ot.length)break;ri=Ot[Cr++]}else{if(Cr=Ot.next(),Cr.done)break;ri=Cr.value}let Le=ri;X.has(Le)&&(te.verbose(te.lang("verboseFilePhantomExtraneous",Le)),X.delete(Le))}for(var _t=X,Zs=Array.isArray(_t),xr=0,_t=Zs?_t:_t[Symbol.iterator]();;){var ni;if(Zs){if(xr>=_t.length)break;ni=_t[xr++]}else{if(xr=_t.next(),xr.done)break;ni=xr.value}let Le=ni;Ie.has(Le.toLowerCase())&&X.delete(Le)}return Pt});return function(Q,X,te,xe){return me.apply(this,arguments)}})(),o=(()=>{var me=(0,(n||i()).default)(function*(se,Q,X,te){let xe=(()=>{var Le=(0,(n||i()).default)(function*(dt){let Be=dt.src,Pe=dt.dest,eo=dt.onFresh||ar,Vt=dt.onDone||ar;if(Ie.has(Pe.toLowerCase())){Vt();return}if(Ie.add(Pe.toLowerCase()),Q.ignoreBasenames.indexOf((v||A()).default.basename(Be))>=0)return;let Ve=yield B(Be),Ke;Ve.isDirectory()&&(Ke=yield Ae(Be));let en=yield z(Pe);if(en){let Rt=yield B(Pe),Ft=Ve.isSymbolicLink()&&Rt.isSymbolicLink(),tn=Ve.isDirectory()&&Rt.isDirectory(),Rr=Ve.isFile()&&Rt.isFile();if(Ve.mode!==Rt.mode)try{yield I(Pe,Ve.mode)}catch(pt){te.verbose(pt)}if(Rr&&je.has(Pe)){Vt(),te.verbose(te.lang("verboseFileSkipArtifact",Be));return}if(Rr&&Ve.ino!==null&&Ve.ino===Rt.ino){Vt(),te.verbose(te.lang("verboseFileSkip",Be,Pe,Ve.ino));return}if(Ft){let pt=yield Y(Be);if(pt===(yield Y(Pe))){Vt(),te.verbose(te.lang("verboseFileSkipSymlink",Be,Pe,pt));return}}if(tn){let pt=yield Ae(Pe);ji(Ke,"src files not initialised");for(var Kt=pt,Mt=Array.isArray(Kt),En=0,Kt=Mt?Kt:Kt[Symbol.iterator]();;){var Pr;if(Mt){if(En>=Kt.length)break;Pr=Kt[En++]}else{if(En=Kt.next(),En.done)break;Pr=En.value}let Sn=Pr;if(Ke.indexOf(Sn)<0){let rn=(v||A()).default.join(Pe,Sn);if(X.add(rn),(yield B(rn)).isDirectory())for(var Jt=yield Ae(rn),Wi=Array.isArray(Jt),bn=0,Jt=Wi?Jt:Jt[Symbol.iterator]();;){var Or;if(Wi){if(bn>=Jt.length)break;Or=Jt[bn++]}else{if(bn=Jt.next(),bn.done)break;Or=bn.value}let Zl=Or;X.add((v||A()).default.join(rn,Zl))}}}}}if(Ve.isSymbolicLink()){eo();let Rt=yield Y(Be);Pt.symlink.push({dest:Pe,linkname:Rt}),Vt()}else if(Ve.isDirectory()){te.verbose(te.lang("verboseFileFolder",Pe)),yield K(Pe);let Rt=Pe.split((v||A()).default.sep);for(;Rt.length;)Ie.add(Rt.join((v||A()).default.sep).toLowerCase()),Rt.pop();ji(Ke,"src files not initialised");let Ft=Ke.length;Ft||Vt();for(var Xt=Ke,qi=Array.isArray(Xt),wn=0,Xt=qi?Xt:Xt[Symbol.iterator]();;){var _r;if(qi){if(wn>=Xt.length)break;_r=Xt[wn++]}else{if(wn=Xt.next(),wn.done)break;_r=wn.value}let tn=_r;se.push({onFresh:eo,src:(v||A()).default.join(Be,tn),dest:(v||A()).default.join(Pe,tn),onDone:(function(Rr){function pt(){return Rr.apply(this,arguments)}return pt.toString=function(){return Rr.toString()},pt})(function(){--Ft===0&&Vt()})})}}else if(Ve.isFile())eo(),Pt.link.push({src:Be,dest:Pe,removeDest:en}),Vt();else throw new Error(`unsure how to copy this: ${Be}`)});return function(Be){return Le.apply(this,arguments)}})(),je=new Set(Q.artifactFiles||[]),Ie=new Set;for(var Re=se,Ne=Array.isArray(Re),_e=0,Re=Ne?Re:Re[Symbol.iterator]();;){var Yt;if(Ne){if(_e>=Re.length)break;Yt=Re[_e++]}else{if(_e=Re.next(),_e.done)break;Yt=_e.value}let Le=Yt,dt=Le.onDone||ar;Le.onDone=function(){Q.onProgress(Le.dest),dt()}}Q.onStart(se.length);let Pt={file:[],symlink:[],link:[]};for(;se.length;){let Le=se.splice(0,Me);yield Promise.all(Le.map(xe))}for(var Ot=je,An=Array.isArray(Ot),Cr=0,Ot=An?Ot:Ot[Symbol.iterator]();;){var ri;if(An){if(Cr>=Ot.length)break;ri=Ot[Cr++]}else{if(Cr=Ot.next(),Cr.done)break;ri=Cr.value}let Le=ri;X.has(Le)&&(te.verbose(te.lang("verboseFilePhantomExtraneous",Le)),X.delete(Le))}for(var _t=X,Zs=Array.isArray(_t),xr=0,_t=Zs?_t:_t[Symbol.iterator]();;){var ni;if(Zs){if(xr>=_t.length)break;ni=_t[xr++]}else{if(xr=_t.next(),xr.done)break;ni=xr.value}let Le=ni;Ie.has(Le.toLowerCase())&&X.delete(Le)}return Pt});return function(Q,X,te,xe){return me.apply(this,arguments)}})(),a=t.copyBulk=(()=>{var me=(0,(n||i()).default)(function*(se,Q,X){let te={onStart:X&&X.onStart||ar,onProgress:X&&X.onProgress||ar,possibleExtraneous:X?X.possibleExtraneous:new Set,ignoreBasenames:X&&X.ignoreBasenames||[],artifactFiles:X&&X.artifactFiles||[]},xe=yield s(se,te,te.possibleExtraneous,Q);te.onStart(xe.file.length+xe.symlink.length+xe.link.length);let je=xe.file,Ie=new Map;yield(w||T()).queue(je,(()=>{var _e=(0,(n||i()).default)(function*(Re){let Yt;for(;Yt=Ie.get(Re.dest);)yield Yt;Q.verbose(Q.lang("verboseFileCopy",Re.src,Re.dest));let Pt=(0,(J||he()).copyFile)(Re,function(){return Ie.delete(Re.dest)});return Ie.set(Re.dest,Pt),te.onProgress(Re.dest),Pt});return function(Re){return _e.apply(this,arguments)}})(),Me);let Ne=xe.symlink;yield(w||T()).queue(Ne,function(_e){let Re=(v||A()).default.resolve((v||A()).default.dirname(_e.dest),_e.linkname);return Q.verbose(Q.lang("verboseFileSymlink",_e.dest,Re)),d(Re,_e.dest)})});return function(Q,X,te){return me.apply(this,arguments)}})(),u=t.hardlinkBulk=(()=>{var me=(0,(n||i()).default)(function*(se,Q,X){let te={onStart:X&&X.onStart||ar,onProgress:X&&X.onProgress||ar,possibleExtraneous:X?X.possibleExtraneous:new Set,artifactFiles:X&&X.artifactFiles||[],ignoreBasenames:[]},xe=yield o(se,te,te.possibleExtraneous,Q);te.onStart(xe.file.length+xe.symlink.length+xe.link.length);let je=xe.link;yield(w||T()).queue(je,(()=>{var Ne=(0,(n||i()).default)(function*(_e){Q.verbose(Q.lang("verboseFileLink",_e.src,_e.dest)),_e.removeDest&&(yield(0,(J||he()).unlink)(_e.dest)),yield ie(_e.src,_e.dest)});return function(_e){return Ne.apply(this,arguments)}})(),Me);let Ie=xe.symlink;yield(w||T()).queue(Ie,function(Ne){let _e=(v||A()).default.resolve((v||A()).default.dirname(Ne.dest),Ne.linkname);return Q.verbose(Q.lang("verboseFileSymlink",Ne.dest,_e)),d(_e,Ne.dest)})});return function(Q,X,te){return me.apply(this,arguments)}})(),c=t.readFileAny=(()=>{var me=(0,(n||i()).default)(function*(se){for(var te=se,Q=Array.isArray(te),X=0,te=Q?te:te[Symbol.iterator]();;){var xe;if(Q){if(X>=te.length)break;xe=te[X++]}else{if(X=te.next(),X.done)break;xe=X.value}let je=xe;if(yield z(je))return Ql(je)}return null});return function(Q){return me.apply(this,arguments)}})(),f=t.readJson=(()=>{var me=(0,(n||i()).default)(function*(se){return(yield l(se)).object});return function(Q){return me.apply(this,arguments)}})(),l=t.readJsonAndFile=(()=>{var me=(0,(n||i()).default)(function*(se){let Q=yield Ql(se);try{return{object:(0,(U||V()).default)(JSON.parse(Qs(Q))),content:Q}}catch(X){throw X.message=`${se}: ${X.message}`,X}});return function(Q){return me.apply(this,arguments)}})(),h=t.find=(()=>{var me=(0,(n||i()).default)(function*(se,Q){let X=Q.split((v||A()).default.sep);for(;X.length;){let te=X.concat(se).join((v||A()).default.sep);if(yield z(te))return te;X.pop()}return!1});return function(Q,X){return me.apply(this,arguments)}})(),d=t.symlink=(()=>{var me=(0,(n||i()).default)(function*(se,Q){try{if((yield B(Q)).isSymbolicLink()&&(yield ce(Q))===se)return}catch(X){if(X.code!=="ENOENT")throw X}if(yield(0,(J||he()).unlink)(Q),process.platform==="win32")yield et(se,Q,"junction");else{let X;try{X=(v||A()).default.relative((_||D()).default.realpathSync((v||A()).default.dirname(Q)),(_||D()).default.realpathSync(se))}catch(te){if(te.code!=="ENOENT")throw te;X=(v||A()).default.relative((v||A()).default.dirname(Q),se)}yield et(X||".",Q)}});return function(Q,X){return me.apply(this,arguments)}})(),p=t.walk=(()=>{var me=(0,(n||i()).default)(function*(se,Q,X=new Set){let te=[],xe=yield Ae(se);X.size&&(xe=xe.filter(function(Re){return!X.has(Re)}));for(var Ne=xe,je=Array.isArray(Ne),Ie=0,Ne=je?Ne:Ne[Symbol.iterator]();;){var _e;if(je){if(Ie>=Ne.length)break;_e=Ne[Ie++]}else{if(Ie=Ne.next(),Ie.done)break;_e=Ie.value}let Re=_e,Yt=Q?(v||A()).default.join(Q,Re):Re,Pt=(v||A()).default.join(se,Re),An=yield B(Pt);te.push({relative:Yt,basename:Re,absolute:Pt,mtime:+An.mtime}),An.isDirectory()&&(te=te.concat(yield p(Pt,Yt,X)))}return te});return function(Q,X){return me.apply(this,arguments)}})(),y=t.getFileSizeOnDisk=(()=>{var me=(0,(n||i()).default)(function*(se){let Q=yield B(se),X=Q.size,te=Q.blksize;return Math.ceil(X/te)*te});return function(Q){return me.apply(this,arguments)}})(),m=(()=>{var me=(0,(n||i()).default)(function*(se){if(!(yield z(se)))return;let Q=yield ee(se);for(let X=0;X<Q.length;++X){if(Q[X]===zF)return`\r
71
+ `;if(Q[X]===YF)return`
72
+ `}});return function(Q){return me.apply(this,arguments)}})(),P=t.writeFilePreservingEol=(()=>{var me=(0,(n||i()).default)(function*(se,Q){let X=(yield m(se))||(x||g()).default.EOL;X!==`
73
+ `&&(Q=Q.replace(/\n/g,X)),yield ne(se,Q)});return function(Q,X){return me.apply(this,arguments)}})(),S=t.hardlinksWork=(()=>{var me=(0,(n||i()).default)(function*(se){let Q="test-file"+Math.random(),X=(v||A()).default.join(se,Q),te=(v||A()).default.join(se,Q+"-link");try{yield ne(X,"test"),yield ie(X,te)}catch{return!1}finally{yield(0,(J||he()).unlink)(X),yield(0,(J||he()).unlink)(te)}return!0});return function(Q){return me.apply(this,arguments)}})(),L=t.makeTempDir=(()=>{var me=(0,(n||i()).default)(function*(se){let Q=(v||A()).default.join((x||g()).default.tmpdir(),`yarn-${se||""}-${Date.now()}-${Math.random()}`);return yield(0,(J||he()).unlink)(Q),yield K(Q),Q});return function(Q){return me.apply(this,arguments)}})(),O=t.readFirstAvailableStream=(()=>{var me=(0,(n||i()).default)(function*(se){for(var te=se,Q=Array.isArray(te),X=0,te=Q?te:te[Symbol.iterator]();;){var xe;if(Q){if(X>=te.length)break;xe=te[X++]}else{if(X=te.next(),X.done)break;xe=X.value}let je=xe;try{let Ie=yield G(je,"r");return(_||D()).default.createReadStream(je,{fd:Ie})}catch{}}return null});return function(Q){return me.apply(this,arguments)}})(),b=t.getFirstSuitableFolder=(()=>{var me=(0,(n||i()).default)(function*(se,Q=W.W_OK|W.X_OK){let X={skipped:[],folder:null};for(var je=se,te=Array.isArray(je),xe=0,je=te?je:je[Symbol.iterator]();;){var Ie;if(te){if(xe>=je.length)break;Ie=je[xe++]}else{if(xe=je.next(),xe.done)break;Ie=xe.value}let Ne=Ie;try{return yield K(Ne),yield I(Ne,Q),X.folder=Ne,X}catch(_e){X.skipped.push({error:_e,folder:Ne})}}return X});return function(Q){return me.apply(this,arguments)}})();t.copy=ka,t.readFile=Ql,t.readFileRaw=HF,t.normalizeOS=l0;var _;function D(){return _=H(r(3))}var k;function $(){return k=H(r(75))}var x;function g(){return x=H(r(36))}var v;function A(){return v=H(r(0))}var C;function E(){return C=H(r(84))}var w;function T(){return w=q(r(40))}var N;function M(){return N=r(40)}var U;function V(){return U=H(r(20))}var J;function he(){return J=r(164)}function q(me){if(me&&me.__esModule)return me;var se={};if(me!=null)for(var Q in me)Object.prototype.hasOwnProperty.call(me,Q)&&(se[Q]=me[Q]);return se.default=me,se}function H(me){return me&&me.__esModule?me:{default:me}}let W=t.constants=typeof(_||D()).default.constants<"u"?(_||D()).default.constants:{R_OK:(_||D()).default.R_OK,W_OK:(_||D()).default.W_OK,X_OK:(_||D()).default.X_OK},Z=t.lockQueue=new(C||E()).default("fs lock"),ee=t.readFileBuffer=(0,(N||M()).promisify)((_||D()).default.readFile),G=t.open=(0,(N||M()).promisify)((_||D()).default.open),ne=t.writeFile=(0,(N||M()).promisify)((_||D()).default.writeFile),Y=t.readlink=(0,(N||M()).promisify)((_||D()).default.readlink),ce=t.realpath=(0,(N||M()).promisify)((_||D()).default.realpath),Ae=t.readdir=(0,(N||M()).promisify)((_||D()).default.readdir),Fe=t.rename=(0,(N||M()).promisify)((_||D()).default.rename),I=t.access=(0,(N||M()).promisify)((_||D()).default.access),j=t.stat=(0,(N||M()).promisify)((_||D()).default.stat),K=t.mkdirp=(0,(N||M()).promisify)(r(116)),z=t.exists=(0,(N||M()).promisify)((_||D()).default.exists,!0),B=t.lstat=(0,(N||M()).promisify)((_||D()).default.lstat),oe=t.chmod=(0,(N||M()).promisify)((_||D()).default.chmod),ie=t.link=(0,(N||M()).promisify)((_||D()).default.link),de=t.glob=(0,(N||M()).promisify)((k||$()).default);t.unlink=(J||he()).unlink;let Me=(_||D()).default.copyFile?128:4,et=(0,(N||M()).promisify)((_||D()).default.symlink),ji=r(7),Qs=r(122),ar=()=>{};function ka(me,se,Q){return a([{src:me,dest:se}],Q)}function Bi(me,se){return new Promise((Q,X)=>{(_||D()).default.readFile(me,se,function(te,xe){te?X(te):Q(xe)})})}function Ql(me){return Bi(me,"utf8").then(l0)}function HF(me){return Bi(me,"binary")}function l0(me){return me.replace(/\r\n/g,`
74
+ `)}let zF=13,YF=10}),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathKey=I;let n=r(36),i=r(0),s=r(45).default;var o=r(171);let a=o.getCacheDir,u=o.getConfigDir,c=o.getDataDir,f=r(227),l=t.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"],h=t.RESOLUTIONS="resolutions",d=t.MANIFEST_FIELDS=[h,...l],p=t.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",y=t.YARN_REGISTRY="https://registry.yarnpkg.com",m=t.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",P=t.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",S=t.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",L=t.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",O=t.CACHE_VERSION=2,b=t.LOCKFILE_VERSION=1,_=t.NETWORK_CONCURRENCY=8,D=t.NETWORK_TIMEOUT=30*1e3,k=t.CHILD_CONCURRENCY=5,$=t.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function x(){let K=[a()];return process.getuid&&K.push(i.join(n.tmpdir(),`.yarn-cache-${process.getuid()}`)),K.push(i.join(n.tmpdir(),".yarn-cache")),K}let g=t.PREFERRED_MODULE_CACHE_DIRECTORIES=x(),v=t.CONFIG_DIRECTORY=u(),A=t.DATA_DIRECTORY=c(),C=t.LINK_REGISTRY_DIRECTORY=i.join(A,"link"),E=t.GLOBAL_MODULE_DIRECTORY=i.join(A,"global"),w=t.NODE_BIN_PATH=process.execPath,T=t.YARN_BIN_PATH=N();function N(){return f?__filename:i.join(__dirname,"..","bin","yarn.js")}let M=t.NODE_MODULES_FOLDER="node_modules",U=t.NODE_PACKAGE_JSON="package.json",V=t.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`,J=t.FALLBACK_GLOBAL_PREFIX=i.join(s,".yarn"),he=t.META_FOLDER=".yarn-meta",q=t.INTEGRITY_FILENAME=".yarn-integrity",H=t.LOCKFILE_FILENAME="yarn.lock",W=t.METADATA_FILENAME=".yarn-metadata.json",Z=t.TARBALL_FILENAME=".yarn-tarball.tgz",ee=t.CLEAN_FILENAME=".yarnclean",G=t.NPM_LOCK_FILENAME="package-lock.json",ne=t.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",Y=t.DEFAULT_INDENT=" ",ce=t.SINGLE_INSTANCE_PORT=31997,Ae=t.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",Fe=t.ENV_PATH_KEY=I(process.platform,process.env);function I(K,z){let B="PATH";if(K==="win32"){B="Path";for(let oe in z)oe.toLowerCase()==="path"&&(B=oe)}return B}let j=t.VERSION_COLOR_SCHEME={major:"red",premajor:"red",minor:"yellow",preminor:"yellow",patch:"green",prepatch:"green",prerelease:"red",unchanged:"white",unknown:"red"}}),(function(e,t,r){"use strict";var n=process.env.NODE_ENV,i=function(s,o,a,u,c,f,l,h){if(n!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!s){var d;if(o===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[a,u,c,f,l,h],y=0;d=new Error(o.replace(/%s/g,function(){return p[y++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}};e.exports=i}),,(function(e,t){e.exports=require("crypto")}),,(function(e,t){var r=e.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=r)}),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortAlpha=i,t.entries=s,t.removePrefix=o,t.removeSuffix=a,t.addSuffix=u,t.hyphenate=c,t.camelCase=f,t.compareSortedArrays=l,t.sleep=h;let n=r(176);function i(d,p){let y=Math.min(d.length,p.length);for(let m=0;m<y;m++){let P=d.charCodeAt(m),S=p.charCodeAt(m);if(P!==S)return P-S}return d.length-p.length}function s(d){let p=[];if(d)for(let y in d)p.push([y,d[y]]);return p}function o(d,p){return d.startsWith(p)&&(d=d.slice(p.length)),d}function a(d,p){return d.endsWith(p)?d.slice(0,-p.length):d}function u(d,p){return d.endsWith(p)?d:d+p}function c(d){return d.replace(/[A-Z]/g,p=>"-"+p.charAt(0).toLowerCase())}function f(d){return/[A-Z]/.test(d)?null:n(d)}function l(d,p){if(d.length!==p.length)return!1;for(let y=0,m=d.length;y<m;y++)if(d[y]!==p[y])return!1;return!0}function h(d){return new Promise(p=>{setTimeout(p,d)})}}),(function(e,t,r){var n=r(107)("wks"),i=r(111),s=r(11).Symbol,o=typeof s=="function",a=e.exports=function(u){return n[u]||(n[u]=o&&s[u]||(o?s:i)("Symbol."+u))};a.store=n}),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=void 0;var n;function i(){return n=O(r(1))}var s;function o(){return s=r(81)}Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return O(s||o()).default}});var a;function u(){return a=r(150)}Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return O(a||u()).default}}),t.implodeEntry=v,t.explodeEntry=A;var c;function f(){return c=r(12)}var l;function h(){return l=r(29)}var d;function p(){return d=O(r(81))}var y;function m(){return y=r(6)}var P;function S(){return P=L(r(5))}function L(E){if(E&&E.__esModule)return E;var w={};if(E!=null)for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&(w[T]=E[T]);return w.default=E,w}function O(E){return E&&E.__esModule?E:{default:E}}let b=r(7),_=r(0),D=r(55);function k(E){return(0,(l||h()).normalizePattern)(E).name}function $(E){return E&&Object.keys(E).length?E:void 0}function x(E){return E.resolved||(E.reference&&E.hash?`${E.reference}#${E.hash}`:null)}function g(E){return E.toString().split(" ").sort().join(" ")}function v(E,w){let T=k(E),N=w.integrity?g(w.integrity):"",M={name:T===w.name?void 0:w.name,version:w.version,uid:w.uid===w.version?void 0:w.uid,resolved:w.resolved,registry:w.registry==="npm"?void 0:w.registry,dependencies:$(w.dependencies),optionalDependencies:$(w.optionalDependencies),permissions:$(w.permissions),prebuiltVariants:$(w.prebuiltVariants)};return N&&(M.integrity=N),M}function A(E,w){w.optionalDependencies=w.optionalDependencies||{},w.dependencies=w.dependencies||{},w.uid=w.uid||w.version,w.permissions=w.permissions||{},w.registry=w.registry||"npm",w.name=w.name||k(E);let T=w.integrity;return T&&T.isIntegrity&&(w.integrity=D.parse(T)),w}class C{constructor({cache:w,source:T,parseResultType:N}={}){this.source=T||"",this.cache=w,this.parseResultType=N}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(let w in this.cache)if(!/^.*@(file:|http)/.test(w)&&this.cache[w]&&!this.cache[w].integrity)return!0;return!1}static fromDirectory(w,T){return(0,(n||i()).default)(function*(){let N=_.join(w,(y||m()).LOCKFILE_FILENAME),M,U="",V;return(yield(P||S()).exists(N))?(U=yield(P||S()).readFile(N),V=(0,(d||p()).default)(U,N),T&&(V.type==="merge"?T.info(T.lang("lockfileMerged")):V.type==="conflict"&&T.warn(T.lang("lockfileConflict"))),M=V.object):T&&T.info(T.lang("noLockfileFound")),new C({cache:M,source:U,parseResultType:V&&V.type})})()}getLocked(w){let T=this.cache;if(!T)return;let N=w in T&&T[w];if(typeof N=="string")return this.getLocked(N);if(N)return A(w,N),N}removePattern(w){let T=this.cache;T&&delete T[w]}getLockfile(w){let T={},N=new Map,M=Object.keys(w).sort((c||f()).sortAlpha);for(var J=M,U=Array.isArray(J),V=0,J=U?J:J[Symbol.iterator]();;){var he;if(U){if(V>=J.length)break;he=J[V++]}else{if(V=J.next(),V.done)break;he=V.value}let q=he,H=w[q],W=H._remote,Z=H._reference;b(Z,"Package is missing a reference"),b(W,"Package is missing a remote");let ee=x(W),G=ee&&N.get(ee);if(G){T[q]=G,!G.name&&k(q)!==H.name&&(G.name=H.name);continue}let ne=v(q,{name:H.name,version:H.version,uid:H._uid,resolved:W.resolved,integrity:W.integrity,registry:W.registry,dependencies:H.dependencies,peerDependencies:H.peerDependencies,optionalDependencies:H.optionalDependencies,permissions:Z.permissions,prebuiltVariants:H.prebuiltVariants});T[q]=ne,ee&&N.set(ee,ne)}return T}}t.default=C}),,,(function(e,t){e.exports=require("stream")}),,,(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i={}){if(Array.isArray(i))for(var a=i,s=Array.isArray(a),o=0,a=s?a:a[Symbol.iterator]();;){var u;if(s){if(o>=a.length)break;u=a[o++]}else{if(o=a.next(),o.done)break;u=o.value}n(u)}else if((i!==null&&typeof i=="object"||typeof i=="function")&&(Object.setPrototypeOf(i,null),typeof i=="object"))for(let c in i)n(i[c]);return i}}),,(function(e,t){e.exports=require("assert")}),(function(e,t){var r=e.exports={version:"2.5.7"};typeof __e=="number"&&(__e=r)}),,,,(function(e,t,r){var n=r(34);e.exports=function(i){if(!n(i))throw TypeError(i+" is not an object!");return i}}),,(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePattern=n;function n(i){let s=!1,o="latest",a=i,u=!1;a[0]==="@"&&(u=!0,a=a.slice(1));let c=a.split("@");return c.length>1&&(a=c.shift(),o=c.join("@"),o?s=!0:o="*"),u&&(a=`@${a}`),{name:a,range:o,hasVersion:s}}}),,(function(e,t,r){var n=r(50),i=r(106);e.exports=r(33)?function(s,o,a){return n.f(s,o,i(1,a))}:function(s,o,a){return s[o]=a,s}}),(function(e,t,r){var n=r(63),i=n.Buffer;function s(a,u){for(var c in a)u[c]=a[c]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=o);function o(a,u,c){return i(a,u,c)}s(i,o),o.from=function(a,u,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,u,c)},o.alloc=function(a,u,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var f=i(a);return u!==void 0?typeof c=="string"?f.fill(u,c):f.fill(u):f.fill(0),f},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}}),(function(e,t,r){e.exports=!r(85)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})}),(function(e,t){e.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}}),(function(e,t){e.exports={}}),(function(e,t){e.exports=require("os")}),,,,(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wait=n,t.promisify=i,t.queue=s;function n(o){return new Promise(a=>{setTimeout(a,o)})}function i(o,a){return function(...u){return new Promise(function(c,f){u.push(function(l,...h){let d=h;h.length<=1&&(d=h[0]),a&&(d=l,l=null),l?f(l):c(d)}),o.apply(null,u)})}}function s(o,a,u=1/0){u=Math.min(u,o.length),o=o.slice();let c=[],f=o.length;return f?new Promise((l,h)=>{for(let p=0;p<u;p++)d();function d(){let p=o.shift();a(p).then(function(m){c.push(m),f--,f===0?l(c):o.length&&d()},h)}}):Promise.resolve(c)}}),(function(e,t,r){var n=r(11),i=r(23),s=r(48),o=r(31),a=r(49),u="prototype",c=function(f,l,h){var d=f&c.F,p=f&c.G,y=f&c.S,m=f&c.P,P=f&c.B,S=f&c.W,L=p?i:i[l]||(i[l]={}),O=L[u],b=p?n:y?n[l]:(n[l]||{})[u],_,D,k;p&&(h=l);for(_ in h)D=!d&&b&&b[_]!==void 0,!(D&&a(L,_))&&(k=D?b[_]:h[_],L[_]=p&&typeof b[_]!="function"?h[_]:P&&D?s(k,n):S&&b[_]==k?(function($){var x=function(g,v,A){if(this instanceof $){switch(arguments.length){case 0:return new $;case 1:return new $(g);case 2:return new $(g,v)}return new $(g,v,A)}return $.apply(this,arguments)};return x[u]=$[u],x})(k):m&&typeof k=="function"?s(Function.call,k):k,m&&((L.virtual||(L.virtual={}))[_]=k,f&c.R&&O&&!O[_]&&o(O,_,k)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c}),(function(e,t,r){try{var n=r(2);if(typeof n.inherits!="function")throw"";e.exports=n.inherits}catch{e.exports=r(224)}}),,,(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.home=void 0;var n;function i(){return n=s(r(169))}function s(c){return c&&c.__esModule?c:{default:c}}let o=r(0),a=t.home=r(36).homedir(),u=(n||i()).default?o.resolve("/usr/local/share"):a;t.default=u}),(function(e,t){e.exports=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r}}),(function(e,t){var r={}.toString;e.exports=function(n){return r.call(n).slice(8,-1)}}),(function(e,t,r){var n=r(46);e.exports=function(i,s,o){if(n(i),s===void 0)return i;switch(o){case 1:return function(a){return i.call(s,a)};case 2:return function(a,u){return i.call(s,a,u)};case 3:return function(a,u,c){return i.call(s,a,u,c)}}return function(){return i.apply(s,arguments)}}}),(function(e,t){var r={}.hasOwnProperty;e.exports=function(n,i){return r.call(n,i)}}),(function(e,t,r){var n=r(27),i=r(184),s=r(201),o=Object.defineProperty;t.f=r(33)?Object.defineProperty:function(u,c,f){if(n(u),c=s(c,!0),n(f),i)try{return o(u,c,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(u[c]=f.value),u}}),,,,(function(e,t){e.exports=require("events")}),(function(e,t,r){"use strict";let n=r(32).Buffer,i=r(9),s=r(17).Transform,o=["sha256","sha384","sha512"],a=/^[a-z0-9+/]+(?:=?=?)$/i,u=/^([^-]+)-([^?]+)([?\S*]*)$/,c=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,f=/^[\x21-\x7E]+$/;class l{get isHash(){return!0}constructor(g,v){let A=!!(v&&v.strict);this.source=g.trim();let C=this.source.match(A?c:u);if(!C||A&&!o.some(w=>w===C[1]))return;this.algorithm=C[1],this.digest=C[2];let E=C[3];this.options=E?E.slice(1).split("?"):[]}hexDigest(){return this.digest&&n.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(g){if(g&&g.strict&&!(o.some(A=>A===this.algorithm)&&this.digest.match(a)&&(this.options||[]).every(A=>A.match(f))))return"";let v=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${v}`}}class h{get isIntegrity(){return!0}toJSON(){return this.toString()}toString(g){g=g||{};let v=g.sep||" ";return g.strict&&(v=v.replace(/\S+/g," ")),Object.keys(this).map(A=>this[A].map(C=>l.prototype.toString.call(C,g)).filter(C=>C.length).join(v)).filter(A=>A.length).join(v)}concat(g,v){let A=typeof g=="string"?g:y(g,v);return d(`${this.toString(v)} ${A}`,v)}hexDigest(){return d(this,{single:!0}).hexDigest()}match(g,v){let A=d(g,v),C=A.pickAlgorithm(v);return this[C]&&A[C]&&this[C].find(E=>A[C].find(w=>E.digest===w.digest))||!1}pickAlgorithm(g){let v=g&&g.pickAlgorithm||$,A=Object.keys(this);if(!A.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return A.reduce((C,E)=>v(C,E)||C)}}e.exports.parse=d;function d(x,g){if(g=g||{},typeof x=="string")return p(x,g);if(x.algorithm&&x.digest){let v=new h;return v[x.algorithm]=[x],p(y(v,g),g)}else return p(y(x,g),g)}function p(x,g){return g.single?new l(x,g):x.trim().split(/\s+/).reduce((v,A)=>{let C=new l(A,g);if(C.algorithm&&C.digest){let E=C.algorithm;v[E]||(v[E]=[]),v[E].push(C)}return v},new h)}e.exports.stringify=y;function y(x,g){return x.algorithm&&x.digest?l.prototype.toString.call(x,g):typeof x=="string"?y(d(x,g),g):h.prototype.toString.call(x,g)}e.exports.fromHex=m;function m(x,g,v){let A=v&&v.options&&v.options.length?`?${v.options.join("?")}`:"";return d(`${g}-${n.from(x,"hex").toString("base64")}${A}`,v)}e.exports.fromData=P;function P(x,g){g=g||{};let v=g.algorithms||["sha512"],A=g.options&&g.options.length?`?${g.options.join("?")}`:"";return v.reduce((C,E)=>{let w=i.createHash(E).update(x).digest("base64"),T=new l(`${E}-${w}${A}`,g);if(T.algorithm&&T.digest){let N=T.algorithm;C[N]||(C[N]=[]),C[N].push(T)}return C},new h)}e.exports.fromStream=S;function S(x,g){g=g||{};let v=g.Promise||Promise,A=b(g);return new v((C,E)=>{x.pipe(A),x.on("error",E),A.on("error",E);let w;A.on("integrity",T=>{w=T}),A.on("end",()=>C(w)),A.on("data",()=>{})})}e.exports.checkData=L;function L(x,g,v){if(v=v||{},g=d(g,v),!Object.keys(g).length){if(v.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let A=g.pickAlgorithm(v),C=i.createHash(A).update(x).digest("base64"),E=d({algorithm:A,digest:C}),w=E.match(g,v);if(w||!v.error)return w;if(typeof v.size=="number"&&x.length!==v.size){let T=new Error(`data size mismatch when checking ${g}.
74
75
  Wanted: ${v.size}
75
- Found: ${x.length}`);throw T.code="EBADSIZE",T.found=x.length,T.expected=v.size,T.sri=g,T}else{let T=new Error(`Integrity checksum failed when using ${A}: Wanted ${g}, but got ${E}. (${x.length} bytes)`);throw T.code="EINTEGRITY",T.found=E,T.expected=g,T.algorithm=A,T.sri=g,T}}e.exports.checkStream=P;function P(x,g,v){v=v||{};let A=v.Promise||Promise,C=b(Object.assign({},v,{integrity:g}));return new A((E,w)=>{x.pipe(C),x.on("error",w),C.on("error",w);let T;C.on("verified",N=>{T=N}),C.on("end",()=>E(T)),C.on("data",()=>{})})}e.exports.integrityStream=b;function b(x){x=x||{};let g=x.integrity&&d(x.integrity,x),v=g&&Object.keys(g).length,A=v&&g.pickAlgorithm(x),C=v&&g[A],E=Array.from(new Set((x.algorithms||["sha512"]).concat(A?[A]:[]))),w=E.map(i.createHash),T=0,N=new s({transform(M,U,V){T+=M.length,w.forEach(X=>X.update(M,U)),V(null,M,U)}}).on("end",()=>{let M=x.options&&x.options.length?`?${x.options.join("?")}`:"",U=d(w.map((X,fe)=>`${E[fe]}-${X.digest("base64")}${M}`).join(" "),x),V=v&&U.match(g,x);if(typeof x.size=="number"&&T!==x.size){let X=new Error(`stream size mismatch when checking ${g}.
76
+ Found: ${x.length}`);throw T.code="EBADSIZE",T.found=x.length,T.expected=v.size,T.sri=g,T}else{let T=new Error(`Integrity checksum failed when using ${A}: Wanted ${g}, but got ${E}. (${x.length} bytes)`);throw T.code="EINTEGRITY",T.found=E,T.expected=g,T.algorithm=A,T.sri=g,T}}e.exports.checkStream=O;function O(x,g,v){v=v||{};let A=v.Promise||Promise,C=b(Object.assign({},v,{integrity:g}));return new A((E,w)=>{x.pipe(C),x.on("error",w),C.on("error",w);let T;C.on("verified",N=>{T=N}),C.on("end",()=>E(T)),C.on("data",()=>{})})}e.exports.integrityStream=b;function b(x){x=x||{};let g=x.integrity&&d(x.integrity,x),v=g&&Object.keys(g).length,A=v&&g.pickAlgorithm(x),C=v&&g[A],E=Array.from(new Set((x.algorithms||["sha512"]).concat(A?[A]:[]))),w=E.map(i.createHash),T=0,N=new s({transform(M,U,V){T+=M.length,w.forEach(J=>J.update(M,U)),V(null,M,U)}}).on("end",()=>{let M=x.options&&x.options.length?`?${x.options.join("?")}`:"",U=d(w.map((J,he)=>`${E[he]}-${J.digest("base64")}${M}`).join(" "),x),V=v&&U.match(g,x);if(typeof x.size=="number"&&T!==x.size){let J=new Error(`stream size mismatch when checking ${g}.
76
77
  Wanted: ${x.size}
77
- Found: ${T}`);X.code="EBADSIZE",X.found=T,X.expected=x.size,X.sri=g,N.emit("error",X)}else if(x.integrity&&!V){let X=new Error(`${g} integrity checksum failed when using ${A}: wanted ${C} but got ${U}. (${T} bytes)`);X.code="EINTEGRITY",X.found=U,X.expected=C,X.algorithm=A,X.sri=g,N.emit("error",X)}else N.emit("size",T),N.emit("integrity",U),V&&N.emit("verified",V)});return N}e.exports.create=_;function _(x){x=x||{};let g=x.algorithms||["sha512"],v=x.options&&x.options.length?`?${x.options.join("?")}`:"",A=g.map(i.createHash);return{update:function(C,E){return A.forEach(w=>w.update(C,E)),this},digest:function(C){return g.reduce((w,T)=>{let N=A.shift().digest("base64"),M=new l(`${T}-${N}${v}`,x);if(M.algorithm&&M.digest){let U=M.algorithm;w[U]||(w[U]=[]),w[U].push(M)}return w},new h)}}}let L=new Set(i.getHashes()),D=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(x=>L.has(x));function $(x,g){return D.indexOf(x.toLowerCase())>=D.indexOf(g.toLowerCase())?x:g}},,,,,function(e,t,r){e.exports=m,m.Minimatch=O;var n={sep:"/"};try{n=r(0)}catch{}var i=m.GLOBSTAR=O.GLOBSTAR={},s=r(175),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",u=a+"*?",c="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",f="(?:(?!(?:\\/|^)\\.).)*?",l=h("().*{}+?[]^$\\!");function h(g){return g.split("").reduce(function(v,A){return v[A]=!0,v},{})}var d=/\/+/;m.filter=p;function p(g,v){return v=v||{},function(A,C,E){return m(A,g,v)}}function y(g,v){g=g||{},v=v||{};var A={};return Object.keys(v).forEach(function(C){A[C]=v[C]}),Object.keys(g).forEach(function(C){A[C]=g[C]}),A}m.defaults=function(g){if(!g||!Object.keys(g).length)return m;var v=m,A=function(E,w,T){return v.minimatch(E,w,y(g,T))};return A.Minimatch=function(E,w){return new v.Minimatch(E,y(g,w))},A},O.defaults=function(g){return!g||!Object.keys(g).length?O:m.defaults(g).Minimatch};function m(g,v,A){if(typeof v!="string")throw new TypeError("glob pattern string required");return A||(A={}),!A.nocomment&&v.charAt(0)==="#"?!1:v.trim()===""?g==="":new O(v,A).match(g)}function O(g,v){if(!(this instanceof O))return new O(g,v);if(typeof g!="string")throw new TypeError("glob pattern string required");v||(v={}),g=g.trim(),n.sep!=="/"&&(g=g.split(n.sep).join("/")),this.options=v,this.set=[],this.pattern=g,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}O.prototype.debug=function(){},O.prototype.make=S;function S(){if(!this._made){var g=this.pattern,v=this.options;if(!v.nocomment&&g.charAt(0)==="#"){this.comment=!0;return}if(!g){this.empty=!0;return}this.parseNegate();var A=this.globSet=this.braceExpand();v.debug&&(this.debug=console.error),this.debug(this.pattern,A),A=this.globParts=A.map(function(C){return C.split(d)}),this.debug(this.pattern,A),A=A.map(function(C,E,w){return C.map(this.parse,this)},this),this.debug(this.pattern,A),A=A.filter(function(C){return C.indexOf(!1)===-1}),this.debug(this.pattern,A),this.set=A}}O.prototype.parseNegate=k;function k(){var g=this.pattern,v=!1,A=this.options,C=0;if(!A.nonegate){for(var E=0,w=g.length;E<w&&g.charAt(E)==="!";E++)v=!v,C++;C&&(this.pattern=g.substr(C)),this.negate=v}}m.braceExpand=function(g,v){return P(g,v)},O.prototype.braceExpand=P;function P(g,v){if(v||(this instanceof O?v=this.options:v={}),g=typeof g>"u"?this.pattern:g,typeof g>"u")throw new TypeError("undefined pattern");return v.nobrace||!g.match(/\{.*\}/)?[g]:s(g)}O.prototype.parse=_;var b={};function _(g,v){if(g.length>1024*64)throw new TypeError("pattern is too long");var A=this.options;if(!A.noglobstar&&g==="**")return i;if(g==="")return"";var C="",E=!!A.nocase,w=!1,T=[],N=[],M,U=!1,V=-1,X=-1,fe=g.charAt(0)==="."?"":A.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",q=this;function H(){if(M){switch(M){case"*":C+=u,E=!0;break;case"?":C+=a,E=!0;break;default:C+="\\"+M;break}q.debug("clearStateChar %j %j",M,C),M=!1}}for(var W=0,Z=g.length,ee;W<Z&&(ee=g.charAt(W));W++){if(this.debug("%s %s %s %j",g,W,C,ee),w&&l[ee]){C+="\\"+ee,w=!1;continue}switch(ee){case"/":return!1;case"\\":H(),w=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",g,W,C,ee),U){this.debug(" in class"),ee==="!"&&W===X+1&&(ee="^"),C+=ee;continue}q.debug("call clearStateChar %j",M),H(),M=ee,A.noext&&H();continue;case"(":if(U){C+="(";continue}if(!M){C+="\\(";continue}T.push({type:M,start:W-1,reStart:C.length,open:o[M].open,close:o[M].close}),C+=M==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",M,C),M=!1;continue;case")":if(U||!T.length){C+="\\)";continue}H(),E=!0;var G=T.pop();C+=G.close,G.type==="!"&&N.push(G),G.reEnd=C.length;continue;case"|":if(U||!T.length||w){C+="\\|",w=!1;continue}H(),C+="|";continue;case"[":if(H(),U){C+="\\"+ee;continue}U=!0,X=W,V=C.length,C+=ee;continue;case"]":if(W===X+1||!U){C+="\\"+ee,w=!1;continue}if(U){var re=g.substring(X+1,W);try{RegExp("["+re+"]")}catch{var Y=this.parse(re,b);C=C.substr(0,V)+"\\["+Y[0]+"\\]",E=E||Y[1],U=!1;continue}}E=!0,U=!1,C+=ee;continue;default:H(),w?w=!1:l[ee]&&!(ee==="^"&&U)&&(C+="\\"),C+=ee}}for(U&&(re=g.substr(X+1),Y=this.parse(re,b),C=C.substr(0,V)+"\\["+Y[0],E=E||Y[1]),G=T.pop();G;G=T.pop()){var ue=C.slice(G.reStart+G.open.length);this.debug("setting tail",C,G),ue=ue.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(or,Pa,ji){return ji||(ji="\\"),Pa+Pa+ji+"|"}),this.debug(`tail=%j
78
- %s`,ue,ue,G,C);var ve=G.type==="*"?u:G.type==="?"?a:"\\"+G.type;E=!0,C=C.slice(0,G.reStart)+ve+"\\("+ue}H(),w&&(C+="\\\\");var De=!1;switch(C.charAt(0)){case".":case"[":case"(":De=!0}for(var I=N.length-1;I>-1;I--){var j=N[I],K=C.slice(0,j.reStart),z=C.slice(j.reStart,j.reEnd-8),B=C.slice(j.reEnd-8,j.reEnd),se=C.slice(j.reEnd);B+=se;var ne=K.split("(").length-1,he=se;for(W=0;W<ne;W++)he=he.replace(/\)[+*?]?/,"");se=he;var Me="";se===""&&v!==b&&(Me="$");var Qe=K+z+se+Me+B;C=Qe}if(C!==""&&E&&(C="(?=.)"+C),De&&(C=fe+C),v===b)return[C,E];if(!E)return $(g);var Mi=A.nocase?"i":"";try{var Ys=new RegExp("^"+C+"$",Mi)}catch{return new RegExp("$.")}return Ys._glob=g,Ys._src=C,Ys}m.makeRe=function(g,v){return new O(g,v||{}).makeRe()},O.prototype.makeRe=L;function L(){if(this.regexp||this.regexp===!1)return this.regexp;var g=this.set;if(!g.length)return this.regexp=!1,this.regexp;var v=this.options,A=v.noglobstar?u:v.dot?c:f,C=v.nocase?"i":"",E=g.map(function(w){return w.map(function(T){return T===i?A:typeof T=="string"?x(T):T._src}).join("\\/")}).join("|");E="^(?:"+E+")$",this.negate&&(E="^(?!"+E+").*$");try{this.regexp=new RegExp(E,C)}catch{this.regexp=!1}return this.regexp}m.match=function(g,v,A){A=A||{};var C=new O(v,A);return g=g.filter(function(E){return C.match(E)}),C.options.nonull&&!g.length&&g.push(v),g},O.prototype.match=D;function D(g,v){if(this.debug("match",g,this.pattern),this.comment)return!1;if(this.empty)return g==="";if(g==="/"&&v)return!0;var A=this.options;n.sep!=="/"&&(g=g.split(n.sep).join("/")),g=g.split(d),this.debug(this.pattern,"split",g);var C=this.set;this.debug(this.pattern,"set",C);var E,w;for(w=g.length-1;w>=0&&(E=g[w],!E);w--);for(w=0;w<C.length;w++){var T=C[w],N=g;A.matchBase&&T.length===1&&(N=[E]);var M=this.matchOne(N,T,v);if(M)return A.flipNegate?!0:!this.negate}return A.flipNegate?!1:this.negate}O.prototype.matchOne=function(g,v,A){var C=this.options;this.debug("matchOne",{this:this,file:g,pattern:v}),this.debug("matchOne",g.length,v.length);for(var E=0,w=0,T=g.length,N=v.length;E<T&&w<N;E++,w++){this.debug("matchOne loop");var M=v[w],U=g[E];if(this.debug(v,M,U),M===!1)return!1;if(M===i){this.debug("GLOBSTAR",[v,M,U]);var V=E,X=w+1;if(X===N){for(this.debug("** at the end");E<T;E++)if(g[E]==="."||g[E]===".."||!C.dot&&g[E].charAt(0)===".")return!1;return!0}for(;V<T;){var fe=g[V];if(this.debug(`
79
- globstar while`,g,V,v,X,fe),this.matchOne(g.slice(V),v.slice(X),A))return this.debug("globstar found match!",V,T,fe),!0;if(fe==="."||fe===".."||!C.dot&&fe.charAt(0)==="."){this.debug("dot detected!",g,V,v,X);break}this.debug("globstar swallow a segment, and continue"),V++}return!!(A&&(this.debug(`
80
- >>> no match, partial?`,g,V,v,X),V===T))}var q;if(typeof M=="string"?(C.nocase?q=U.toLowerCase()===M.toLowerCase():q=U===M,this.debug("string match",M,U,q)):(q=U.match(M),this.debug("pattern match",M,U,q)),!q)return!1}if(E===T&&w===N)return!0;if(E===T)return A;if(w===N){var H=E===T-1&&g[E]==="";return H}throw new Error("wtf?")};function $(g){return g.replace(/\\(.)/g,"$1")}function x(g){return g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},function(e,t,r){var n=r(123);e.exports=n(i),e.exports.strict=n(s),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})});function i(o){var a=function(){return a.called?a.value:(a.called=!0,a.value=o.apply(this,arguments))};return a.called=!1,a}function s(o){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=o.apply(this,arguments)},u=o.name||"Function wrapped with `once`";return a.onceError=u+" shouldn't be called more than once",a.called=!1,a}},,function(e,t){e.exports=require("buffer")},,,,function(e,t){e.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}},function(e,t,r){var n=r(34),i=r(11).document,s=n(i)&&n(i.createElement);e.exports=function(o){return s?i.createElement(o):{}}},function(e,t){e.exports=!0},function(e,t,r){"use strict";var n=r(46);function i(s){var o,a;this.promise=new s(function(u,c){if(o!==void 0||a!==void 0)throw TypeError("Bad Promise constructor");o=u,a=c}),this.resolve=n(o),this.reject=n(a)}e.exports.f=function(s){return new i(s)}},function(e,t,r){var n=r(50).f,i=r(49),s=r(13)("toStringTag");e.exports=function(o,a,u){o&&!i(o=u?o:o.prototype,s)&&n(o,s,{configurable:!0,value:a})}},function(e,t,r){var n=r(107)("keys"),i=r(111);e.exports=function(s){return n[s]||(n[s]=i(s))}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(i){return isNaN(i=+i)?0:(i>0?n:r)(i)}},function(e,t,r){var n=r(131),i=r(67);e.exports=function(s){return n(i(s))}},function(e,t,r){e.exports=L;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(42),u=r(54).EventEmitter,c=r(0),f=r(22),l=r(76),h=r(218),d=r(115),p=d.alphasort,y=d.alphasorti,m=d.setopts,O=d.ownProp,S=r(223),k=r(2),P=d.childrenIgnored,b=d.isIgnored,_=r(61);function L(v,A,C){if(typeof A=="function"&&(C=A,A={}),A||(A={}),A.sync){if(C)throw new TypeError("callback provided to sync glob");return h(v,A)}return new x(v,A,C)}L.sync=h;var D=L.GlobSync=h.GlobSync;L.glob=L;function $(v,A){if(A===null||typeof A!="object")return v;for(var C=Object.keys(A),E=C.length;E--;)v[C[E]]=A[C[E]];return v}L.hasMagic=function(v,A){var C=$({},A);C.noprocess=!0;var E=new x(v,C),w=E.minimatch.set;if(!v)return!1;if(w.length>1)return!0;for(var T=0;T<w[0].length;T++)if(typeof w[0][T]!="string")return!0;return!1},L.Glob=x,a(x,u);function x(v,A,C){if(typeof A=="function"&&(C=A,A=null),A&&A.sync){if(C)throw new TypeError("callback provided to sync glob");return new D(v,A)}if(!(this instanceof x))return new x(v,A,C);m(this,v,A),this._didRealPath=!1;var E=this.minimatch.set.length;this.matches=new Array(E),typeof C=="function"&&(C=_(C),this.on("error",C),this.on("end",function(U){C(null,U)}));var w=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(E===0)return M();for(var T=!0,N=0;N<E;N++)this._process(this.minimatch.set[N],N,!1,M);T=!1;function M(){--w._processing,w._processing<=0&&(T?process.nextTick(function(){w._finish()}):w._finish())}}x.prototype._finish=function(){if(f(this instanceof x),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();d.finish(this),this.emit("end",this.found)}},x.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var v=this.matches.length;if(v===0)return this._finish();for(var A=this,C=0;C<this.matches.length;C++)this._realpathSet(C,E);function E(){--v===0&&A._finish()}},x.prototype._realpathSet=function(v,A){var C=this.matches[v];if(!C)return A();var E=Object.keys(C),w=this,T=E.length;if(T===0)return A();var N=this.matches[v]=Object.create(null);E.forEach(function(M,U){M=w._makeAbs(M),i.realpath(M,w.realpathCache,function(V,X){V?V.syscall==="stat"?N[M]=!0:w.emit("error",V):N[X]=!0,--T===0&&(w.matches[v]=N,A())})})},x.prototype._mark=function(v){return d.mark(this,v)},x.prototype._makeAbs=function(v){return d.makeAbs(this,v)},x.prototype.abort=function(){this.aborted=!0,this.emit("abort")},x.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},x.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var v=this._emitQueue.slice(0);this._emitQueue.length=0;for(var A=0;A<v.length;A++){var C=v[A];this._emitMatch(C[0],C[1])}}if(this._processQueue.length){var E=this._processQueue.slice(0);this._processQueue.length=0;for(var A=0;A<E.length;A++){var w=E[A];this._processing--,this._process(w[0],w[1],w[2],w[3])}}}},x.prototype._process=function(v,A,C,E){if(f(this instanceof x),f(typeof E=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([v,A,C,E]);return}for(var w=0;typeof v[w]=="string";)w++;var T;switch(w){case v.length:this._processSimple(v.join("/"),A,E);return;case 0:T=null;break;default:T=v.slice(0,w).join("/");break}var N=v.slice(w),M;T===null?M=".":((l(T)||l(v.join("/")))&&(!T||!l(T))&&(T="/"+T),M=T);var U=this._makeAbs(M);if(P(this,M))return E();var V=N[0]===s.GLOBSTAR;V?this._processGlobStar(T,M,U,N,A,C,E):this._processReaddir(T,M,U,N,A,C,E)}},x.prototype._processReaddir=function(v,A,C,E,w,T,N){var M=this;this._readdir(C,T,function(U,V){return M._processReaddir2(v,A,C,E,w,T,V,N)})},x.prototype._processReaddir2=function(v,A,C,E,w,T,N,M){if(!N)return M();for(var U=E[0],V=!!this.minimatch.negate,X=U._glob,fe=this.dot||X.charAt(0)===".",q=[],H=0;H<N.length;H++){var W=N[H];if(W.charAt(0)!=="."||fe){var Z;V&&!v?Z=!W.match(U):Z=W.match(U),Z&&q.push(W)}}var ee=q.length;if(ee===0)return M();if(E.length===1&&!this.mark&&!this.stat){this.matches[w]||(this.matches[w]=Object.create(null));for(var H=0;H<ee;H++){var W=q[H];v&&(v!=="/"?W=v+"/"+W:W=v+W),W.charAt(0)==="/"&&!this.nomount&&(W=c.join(this.root,W)),this._emitMatch(w,W)}return M()}E.shift();for(var H=0;H<ee;H++){var W=q[H],G;v&&(v!=="/"?W=v+"/"+W:W=v+W),this._process([W].concat(E),w,T,M)}M()},x.prototype._emitMatch=function(v,A){if(!this.aborted&&!b(this,A)){if(this.paused){this._emitQueue.push([v,A]);return}var C=l(A)?A:this._makeAbs(A);if(this.mark&&(A=this._mark(A)),this.absolute&&(A=C),!this.matches[v][A]){if(this.nodir){var E=this.cache[C];if(E==="DIR"||Array.isArray(E))return}this.matches[v][A]=!0;var w=this.statCache[C];w&&this.emit("stat",A,w),this.emit("match",A)}}},x.prototype._readdirInGlobStar=function(v,A){if(this.aborted)return;if(this.follow)return this._readdir(v,!1,A);var C="lstat\0"+v,E=this,w=S(C,T);w&&n.lstat(v,w);function T(N,M){if(N&&N.code==="ENOENT")return A();var U=M&&M.isSymbolicLink();E.symlinks[v]=U,!U&&M&&!M.isDirectory()?(E.cache[v]="FILE",A()):E._readdir(v,!1,A)}},x.prototype._readdir=function(v,A,C){if(!this.aborted&&(C=S("readdir\0"+v+"\0"+A,C),!!C)){if(A&&!O(this.symlinks,v))return this._readdirInGlobStar(v,C);if(O(this.cache,v)){var E=this.cache[v];if(!E||E==="FILE")return C();if(Array.isArray(E))return C(null,E)}var w=this;n.readdir(v,g(this,v,C))}};function g(v,A,C){return function(E,w){E?v._readdirError(A,E,C):v._readdirEntries(A,w,C)}}x.prototype._readdirEntries=function(v,A,C){if(!this.aborted){if(!this.mark&&!this.stat)for(var E=0;E<A.length;E++){var w=A[E];v==="/"?w=v+w:w=v+"/"+w,this.cache[w]=!0}return this.cache[v]=A,C(null,A)}},x.prototype._readdirError=function(v,A,C){if(!this.aborted){switch(A.code){case"ENOTSUP":case"ENOTDIR":var E=this._makeAbs(v);if(this.cache[E]="FILE",E===this.cwdAbs){var w=new Error(A.code+" invalid cwd "+this.cwd);w.path=this.cwd,w.code=A.code,this.emit("error",w),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(v)]=!1;break;default:this.cache[this._makeAbs(v)]=!1,this.strict&&(this.emit("error",A),this.abort()),this.silent||console.error("glob error",A);break}return C()}},x.prototype._processGlobStar=function(v,A,C,E,w,T,N){var M=this;this._readdir(C,T,function(U,V){M._processGlobStar2(v,A,C,E,w,T,V,N)})},x.prototype._processGlobStar2=function(v,A,C,E,w,T,N,M){if(!N)return M();var U=E.slice(1),V=v?[v]:[],X=V.concat(U);this._process(X,w,!1,M);var fe=this.symlinks[C],q=N.length;if(fe&&T)return M();for(var H=0;H<q;H++){var W=N[H];if(!(W.charAt(0)==="."&&!this.dot)){var Z=V.concat(N[H],U);this._process(Z,w,!0,M);var ee=V.concat(N[H],E);this._process(ee,w,!0,M)}}M()},x.prototype._processSimple=function(v,A,C){var E=this;this._stat(v,function(w,T){E._processSimple2(v,A,w,T,C)})},x.prototype._processSimple2=function(v,A,C,E,w){if(this.matches[A]||(this.matches[A]=Object.create(null)),!E)return w();if(v&&l(v)&&!this.nomount){var T=/[\/\\]$/.test(v);v.charAt(0)==="/"?v=c.join(this.root,v):(v=c.resolve(this.root,v),T&&(v+="/"))}process.platform==="win32"&&(v=v.replace(/\\/g,"/")),this._emitMatch(A,v),w()},x.prototype._stat=function(v,A){var C=this._makeAbs(v),E=v.slice(-1)==="/";if(v.length>this.maxLength)return A();if(!this.stat&&O(this.cache,C)){var w=this.cache[C];if(Array.isArray(w)&&(w="DIR"),!E||w==="DIR")return A(null,w);if(E&&w==="FILE")return A()}var T,N=this.statCache[C];if(N!==void 0){if(N===!1)return A(null,N);var M=N.isDirectory()?"DIR":"FILE";return E&&M==="FILE"?A():A(null,M,N)}var U=this,V=S("stat\0"+C,X);V&&n.lstat(C,V);function X(fe,q){if(q&&q.isSymbolicLink())return n.stat(C,function(H,W){H?U._stat2(v,C,null,q,A):U._stat2(v,C,H,W,A)});U._stat2(v,C,fe,q,A)}},x.prototype._stat2=function(v,A,C,E,w){if(C&&(C.code==="ENOENT"||C.code==="ENOTDIR"))return this.statCache[A]=!1,w();var T=v.slice(-1)==="/";if(this.statCache[A]=E,A.slice(-1)==="/"&&E&&!E.isDirectory())return w(null,!1,E);var N=!0;return E&&(N=E.isDirectory()?"DIR":"FILE"),this.cache[A]=this.cache[A]||N,T&&N==="FILE"?w():w(null,N,E)}},function(e,t,r){"use strict";function n(s){return s.charAt(0)==="/"}function i(s){var o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,a=o.exec(s),u=a[1]||"",c=!!(u&&u.charAt(1)!==":");return!!(a[2]||c)}e.exports=process.platform==="win32"?i:n,e.exports.posix=n,e.exports.win32=i},,,function(e,t){e.exports=require("tty")},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(C,E="lockfile"){return C=(0,(a||u()).default)(C),g(C)?A(C,E):{type:"success",object:v(C,E)}};var n;function i(){return n=y(r(2))}var s;function o(){return s=y(r(7))}var a;function u(){return a=y(r(122))}var c;function f(){return c=r(6)}var l;function h(){return l=r(4)}var d;function p(){return d=y(r(20))}function y(C){return C&&C.__esModule?C:{default:C}}let m=/^yarn lockfile v(\d+)$/,O={boolean:"BOOLEAN",string:"STRING",identifier:"IDENTIFIER",eof:"EOF",colon:"COLON",newline:"NEWLINE",comment:"COMMENT",indent:"INDENT",invalid:"INVALID",number:"NUMBER",comma:"COMMA"},S=[O.boolean,O.string,O.number];function k(C){return S.indexOf(C.type)>=0}function*P(C){let E=!1,w=1,T=0;function N(M,U){return{line:w,col:T,type:M,value:U}}for(;C.length;){let M=0;if(C[0]===`
78
+ Found: ${T}`);J.code="EBADSIZE",J.found=T,J.expected=x.size,J.sri=g,N.emit("error",J)}else if(x.integrity&&!V){let J=new Error(`${g} integrity checksum failed when using ${A}: wanted ${C} but got ${U}. (${T} bytes)`);J.code="EINTEGRITY",J.found=U,J.expected=C,J.algorithm=A,J.sri=g,N.emit("error",J)}else N.emit("size",T),N.emit("integrity",U),V&&N.emit("verified",V)});return N}e.exports.create=_;function _(x){x=x||{};let g=x.algorithms||["sha512"],v=x.options&&x.options.length?`?${x.options.join("?")}`:"",A=g.map(i.createHash);return{update:function(C,E){return A.forEach(w=>w.update(C,E)),this},digest:function(C){return g.reduce((w,T)=>{let N=A.shift().digest("base64"),M=new l(`${T}-${N}${v}`,x);if(M.algorithm&&M.digest){let U=M.algorithm;w[U]||(w[U]=[]),w[U].push(M)}return w},new h)}}}let D=new Set(i.getHashes()),k=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(x=>D.has(x));function $(x,g){return k.indexOf(x.toLowerCase())>=k.indexOf(g.toLowerCase())?x:g}}),,,,,(function(e,t,r){e.exports=m,m.Minimatch=P;var n={sep:"/"};try{n=r(0)}catch{}var i=m.GLOBSTAR=P.GLOBSTAR={},s=r(175),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",u=a+"*?",c="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",f="(?:(?!(?:\\/|^)\\.).)*?",l=h("().*{}+?[]^$\\!");function h(g){return g.split("").reduce(function(v,A){return v[A]=!0,v},{})}var d=/\/+/;m.filter=p;function p(g,v){return v=v||{},function(A,C,E){return m(A,g,v)}}function y(g,v){g=g||{},v=v||{};var A={};return Object.keys(v).forEach(function(C){A[C]=v[C]}),Object.keys(g).forEach(function(C){A[C]=g[C]}),A}m.defaults=function(g){if(!g||!Object.keys(g).length)return m;var v=m,A=function(E,w,T){return v.minimatch(E,w,y(g,T))};return A.Minimatch=function(E,w){return new v.Minimatch(E,y(g,w))},A},P.defaults=function(g){return!g||!Object.keys(g).length?P:m.defaults(g).Minimatch};function m(g,v,A){if(typeof v!="string")throw new TypeError("glob pattern string required");return A||(A={}),!A.nocomment&&v.charAt(0)==="#"?!1:v.trim()===""?g==="":new P(v,A).match(g)}function P(g,v){if(!(this instanceof P))return new P(g,v);if(typeof g!="string")throw new TypeError("glob pattern string required");v||(v={}),g=g.trim(),n.sep!=="/"&&(g=g.split(n.sep).join("/")),this.options=v,this.set=[],this.pattern=g,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}P.prototype.debug=function(){},P.prototype.make=S;function S(){if(!this._made){var g=this.pattern,v=this.options;if(!v.nocomment&&g.charAt(0)==="#"){this.comment=!0;return}if(!g){this.empty=!0;return}this.parseNegate();var A=this.globSet=this.braceExpand();v.debug&&(this.debug=console.error),this.debug(this.pattern,A),A=this.globParts=A.map(function(C){return C.split(d)}),this.debug(this.pattern,A),A=A.map(function(C,E,w){return C.map(this.parse,this)},this),this.debug(this.pattern,A),A=A.filter(function(C){return C.indexOf(!1)===-1}),this.debug(this.pattern,A),this.set=A}}P.prototype.parseNegate=L;function L(){var g=this.pattern,v=!1,A=this.options,C=0;if(!A.nonegate){for(var E=0,w=g.length;E<w&&g.charAt(E)==="!";E++)v=!v,C++;C&&(this.pattern=g.substr(C)),this.negate=v}}m.braceExpand=function(g,v){return O(g,v)},P.prototype.braceExpand=O;function O(g,v){if(v||(this instanceof P?v=this.options:v={}),g=typeof g>"u"?this.pattern:g,typeof g>"u")throw new TypeError("undefined pattern");return v.nobrace||!g.match(/\{.*\}/)?[g]:s(g)}P.prototype.parse=_;var b={};function _(g,v){if(g.length>1024*64)throw new TypeError("pattern is too long");var A=this.options;if(!A.noglobstar&&g==="**")return i;if(g==="")return"";var C="",E=!!A.nocase,w=!1,T=[],N=[],M,U=!1,V=-1,J=-1,he=g.charAt(0)==="."?"":A.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",q=this;function H(){if(M){switch(M){case"*":C+=u,E=!0;break;case"?":C+=a,E=!0;break;default:C+="\\"+M;break}q.debug("clearStateChar %j %j",M,C),M=!1}}for(var W=0,Z=g.length,ee;W<Z&&(ee=g.charAt(W));W++){if(this.debug("%s %s %s %j",g,W,C,ee),w&&l[ee]){C+="\\"+ee,w=!1;continue}switch(ee){case"/":return!1;case"\\":H(),w=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",g,W,C,ee),U){this.debug(" in class"),ee==="!"&&W===J+1&&(ee="^"),C+=ee;continue}q.debug("call clearStateChar %j",M),H(),M=ee,A.noext&&H();continue;case"(":if(U){C+="(";continue}if(!M){C+="\\(";continue}T.push({type:M,start:W-1,reStart:C.length,open:o[M].open,close:o[M].close}),C+=M==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",M,C),M=!1;continue;case")":if(U||!T.length){C+="\\)";continue}H(),E=!0;var G=T.pop();C+=G.close,G.type==="!"&&N.push(G),G.reEnd=C.length;continue;case"|":if(U||!T.length||w){C+="\\|",w=!1;continue}H(),C+="|";continue;case"[":if(H(),U){C+="\\"+ee;continue}U=!0,J=W,V=C.length,C+=ee;continue;case"]":if(W===J+1||!U){C+="\\"+ee,w=!1;continue}if(U){var ne=g.substring(J+1,W);try{RegExp("["+ne+"]")}catch{var Y=this.parse(ne,b);C=C.substr(0,V)+"\\["+Y[0]+"\\]",E=E||Y[1],U=!1;continue}}E=!0,U=!1,C+=ee;continue;default:H(),w?w=!1:l[ee]&&!(ee==="^"&&U)&&(C+="\\"),C+=ee}}for(U&&(ne=g.substr(J+1),Y=this.parse(ne,b),C=C.substr(0,V)+"\\["+Y[0],E=E||Y[1]),G=T.pop();G;G=T.pop()){var ce=C.slice(G.reStart+G.open.length);this.debug("setting tail",C,G),ce=ce.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(ar,ka,Bi){return Bi||(Bi="\\"),ka+ka+Bi+"|"}),this.debug(`tail=%j
79
+ %s`,ce,ce,G,C);var Ae=G.type==="*"?u:G.type==="?"?a:"\\"+G.type;E=!0,C=C.slice(0,G.reStart)+Ae+"\\("+ce}H(),w&&(C+="\\\\");var Fe=!1;switch(C.charAt(0)){case".":case"[":case"(":Fe=!0}for(var I=N.length-1;I>-1;I--){var j=N[I],K=C.slice(0,j.reStart),z=C.slice(j.reStart,j.reEnd-8),B=C.slice(j.reEnd-8,j.reEnd),oe=C.slice(j.reEnd);B+=oe;var ie=K.split("(").length-1,de=oe;for(W=0;W<ie;W++)de=de.replace(/\)[+*?]?/,"");oe=de;var Me="";oe===""&&v!==b&&(Me="$");var et=K+z+oe+Me+B;C=et}if(C!==""&&E&&(C="(?=.)"+C),Fe&&(C=he+C),v===b)return[C,E];if(!E)return $(g);var ji=A.nocase?"i":"";try{var Qs=new RegExp("^"+C+"$",ji)}catch{return new RegExp("$.")}return Qs._glob=g,Qs._src=C,Qs}m.makeRe=function(g,v){return new P(g,v||{}).makeRe()},P.prototype.makeRe=D;function D(){if(this.regexp||this.regexp===!1)return this.regexp;var g=this.set;if(!g.length)return this.regexp=!1,this.regexp;var v=this.options,A=v.noglobstar?u:v.dot?c:f,C=v.nocase?"i":"",E=g.map(function(w){return w.map(function(T){return T===i?A:typeof T=="string"?x(T):T._src}).join("\\/")}).join("|");E="^(?:"+E+")$",this.negate&&(E="^(?!"+E+").*$");try{this.regexp=new RegExp(E,C)}catch{this.regexp=!1}return this.regexp}m.match=function(g,v,A){A=A||{};var C=new P(v,A);return g=g.filter(function(E){return C.match(E)}),C.options.nonull&&!g.length&&g.push(v),g},P.prototype.match=k;function k(g,v){if(this.debug("match",g,this.pattern),this.comment)return!1;if(this.empty)return g==="";if(g==="/"&&v)return!0;var A=this.options;n.sep!=="/"&&(g=g.split(n.sep).join("/")),g=g.split(d),this.debug(this.pattern,"split",g);var C=this.set;this.debug(this.pattern,"set",C);var E,w;for(w=g.length-1;w>=0&&(E=g[w],!E);w--);for(w=0;w<C.length;w++){var T=C[w],N=g;A.matchBase&&T.length===1&&(N=[E]);var M=this.matchOne(N,T,v);if(M)return A.flipNegate?!0:!this.negate}return A.flipNegate?!1:this.negate}P.prototype.matchOne=function(g,v,A){var C=this.options;this.debug("matchOne",{this:this,file:g,pattern:v}),this.debug("matchOne",g.length,v.length);for(var E=0,w=0,T=g.length,N=v.length;E<T&&w<N;E++,w++){this.debug("matchOne loop");var M=v[w],U=g[E];if(this.debug(v,M,U),M===!1)return!1;if(M===i){this.debug("GLOBSTAR",[v,M,U]);var V=E,J=w+1;if(J===N){for(this.debug("** at the end");E<T;E++)if(g[E]==="."||g[E]===".."||!C.dot&&g[E].charAt(0)===".")return!1;return!0}for(;V<T;){var he=g[V];if(this.debug(`
80
+ globstar while`,g,V,v,J,he),this.matchOne(g.slice(V),v.slice(J),A))return this.debug("globstar found match!",V,T,he),!0;if(he==="."||he===".."||!C.dot&&he.charAt(0)==="."){this.debug("dot detected!",g,V,v,J);break}this.debug("globstar swallow a segment, and continue"),V++}return!!(A&&(this.debug(`
81
+ >>> no match, partial?`,g,V,v,J),V===T))}var q;if(typeof M=="string"?(C.nocase?q=U.toLowerCase()===M.toLowerCase():q=U===M,this.debug("string match",M,U,q)):(q=U.match(M),this.debug("pattern match",M,U,q)),!q)return!1}if(E===T&&w===N)return!0;if(E===T)return A;if(w===N){var H=E===T-1&&g[E]==="";return H}throw new Error("wtf?")};function $(g){return g.replace(/\\(.)/g,"$1")}function x(g){return g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}}),(function(e,t,r){var n=r(123);e.exports=n(i),e.exports.strict=n(s),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})});function i(o){var a=function(){return a.called?a.value:(a.called=!0,a.value=o.apply(this,arguments))};return a.called=!1,a}function s(o){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=o.apply(this,arguments)},u=o.name||"Function wrapped with `once`";return a.onceError=u+" shouldn't be called more than once",a.called=!1,a}}),,(function(e,t){e.exports=require("buffer")}),,,,(function(e,t){e.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}}),(function(e,t,r){var n=r(34),i=r(11).document,s=n(i)&&n(i.createElement);e.exports=function(o){return s?i.createElement(o):{}}}),(function(e,t){e.exports=!0}),(function(e,t,r){"use strict";var n=r(46);function i(s){var o,a;this.promise=new s(function(u,c){if(o!==void 0||a!==void 0)throw TypeError("Bad Promise constructor");o=u,a=c}),this.resolve=n(o),this.reject=n(a)}e.exports.f=function(s){return new i(s)}}),(function(e,t,r){var n=r(50).f,i=r(49),s=r(13)("toStringTag");e.exports=function(o,a,u){o&&!i(o=u?o:o.prototype,s)&&n(o,s,{configurable:!0,value:a})}}),(function(e,t,r){var n=r(107)("keys"),i=r(111);e.exports=function(s){return n[s]||(n[s]=i(s))}}),(function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(i){return isNaN(i=+i)?0:(i>0?n:r)(i)}}),(function(e,t,r){var n=r(131),i=r(67);e.exports=function(s){return n(i(s))}}),(function(e,t,r){e.exports=D;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(42),u=r(54).EventEmitter,c=r(0),f=r(22),l=r(76),h=r(218),d=r(115),p=d.alphasort,y=d.alphasorti,m=d.setopts,P=d.ownProp,S=r(223),L=r(2),O=d.childrenIgnored,b=d.isIgnored,_=r(61);function D(v,A,C){if(typeof A=="function"&&(C=A,A={}),A||(A={}),A.sync){if(C)throw new TypeError("callback provided to sync glob");return h(v,A)}return new x(v,A,C)}D.sync=h;var k=D.GlobSync=h.GlobSync;D.glob=D;function $(v,A){if(A===null||typeof A!="object")return v;for(var C=Object.keys(A),E=C.length;E--;)v[C[E]]=A[C[E]];return v}D.hasMagic=function(v,A){var C=$({},A);C.noprocess=!0;var E=new x(v,C),w=E.minimatch.set;if(!v)return!1;if(w.length>1)return!0;for(var T=0;T<w[0].length;T++)if(typeof w[0][T]!="string")return!0;return!1},D.Glob=x,a(x,u);function x(v,A,C){if(typeof A=="function"&&(C=A,A=null),A&&A.sync){if(C)throw new TypeError("callback provided to sync glob");return new k(v,A)}if(!(this instanceof x))return new x(v,A,C);m(this,v,A),this._didRealPath=!1;var E=this.minimatch.set.length;this.matches=new Array(E),typeof C=="function"&&(C=_(C),this.on("error",C),this.on("end",function(U){C(null,U)}));var w=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(E===0)return M();for(var T=!0,N=0;N<E;N++)this._process(this.minimatch.set[N],N,!1,M);T=!1;function M(){--w._processing,w._processing<=0&&(T?process.nextTick(function(){w._finish()}):w._finish())}}x.prototype._finish=function(){if(f(this instanceof x),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();d.finish(this),this.emit("end",this.found)}},x.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var v=this.matches.length;if(v===0)return this._finish();for(var A=this,C=0;C<this.matches.length;C++)this._realpathSet(C,E);function E(){--v===0&&A._finish()}},x.prototype._realpathSet=function(v,A){var C=this.matches[v];if(!C)return A();var E=Object.keys(C),w=this,T=E.length;if(T===0)return A();var N=this.matches[v]=Object.create(null);E.forEach(function(M,U){M=w._makeAbs(M),i.realpath(M,w.realpathCache,function(V,J){V?V.syscall==="stat"?N[M]=!0:w.emit("error",V):N[J]=!0,--T===0&&(w.matches[v]=N,A())})})},x.prototype._mark=function(v){return d.mark(this,v)},x.prototype._makeAbs=function(v){return d.makeAbs(this,v)},x.prototype.abort=function(){this.aborted=!0,this.emit("abort")},x.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},x.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var v=this._emitQueue.slice(0);this._emitQueue.length=0;for(var A=0;A<v.length;A++){var C=v[A];this._emitMatch(C[0],C[1])}}if(this._processQueue.length){var E=this._processQueue.slice(0);this._processQueue.length=0;for(var A=0;A<E.length;A++){var w=E[A];this._processing--,this._process(w[0],w[1],w[2],w[3])}}}},x.prototype._process=function(v,A,C,E){if(f(this instanceof x),f(typeof E=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([v,A,C,E]);return}for(var w=0;typeof v[w]=="string";)w++;var T;switch(w){case v.length:this._processSimple(v.join("/"),A,E);return;case 0:T=null;break;default:T=v.slice(0,w).join("/");break}var N=v.slice(w),M;T===null?M=".":((l(T)||l(v.join("/")))&&(!T||!l(T))&&(T="/"+T),M=T);var U=this._makeAbs(M);if(O(this,M))return E();var V=N[0]===s.GLOBSTAR;V?this._processGlobStar(T,M,U,N,A,C,E):this._processReaddir(T,M,U,N,A,C,E)}},x.prototype._processReaddir=function(v,A,C,E,w,T,N){var M=this;this._readdir(C,T,function(U,V){return M._processReaddir2(v,A,C,E,w,T,V,N)})},x.prototype._processReaddir2=function(v,A,C,E,w,T,N,M){if(!N)return M();for(var U=E[0],V=!!this.minimatch.negate,J=U._glob,he=this.dot||J.charAt(0)===".",q=[],H=0;H<N.length;H++){var W=N[H];if(W.charAt(0)!=="."||he){var Z;V&&!v?Z=!W.match(U):Z=W.match(U),Z&&q.push(W)}}var ee=q.length;if(ee===0)return M();if(E.length===1&&!this.mark&&!this.stat){this.matches[w]||(this.matches[w]=Object.create(null));for(var H=0;H<ee;H++){var W=q[H];v&&(v!=="/"?W=v+"/"+W:W=v+W),W.charAt(0)==="/"&&!this.nomount&&(W=c.join(this.root,W)),this._emitMatch(w,W)}return M()}E.shift();for(var H=0;H<ee;H++){var W=q[H],G;v&&(v!=="/"?W=v+"/"+W:W=v+W),this._process([W].concat(E),w,T,M)}M()},x.prototype._emitMatch=function(v,A){if(!this.aborted&&!b(this,A)){if(this.paused){this._emitQueue.push([v,A]);return}var C=l(A)?A:this._makeAbs(A);if(this.mark&&(A=this._mark(A)),this.absolute&&(A=C),!this.matches[v][A]){if(this.nodir){var E=this.cache[C];if(E==="DIR"||Array.isArray(E))return}this.matches[v][A]=!0;var w=this.statCache[C];w&&this.emit("stat",A,w),this.emit("match",A)}}},x.prototype._readdirInGlobStar=function(v,A){if(this.aborted)return;if(this.follow)return this._readdir(v,!1,A);var C="lstat\0"+v,E=this,w=S(C,T);w&&n.lstat(v,w);function T(N,M){if(N&&N.code==="ENOENT")return A();var U=M&&M.isSymbolicLink();E.symlinks[v]=U,!U&&M&&!M.isDirectory()?(E.cache[v]="FILE",A()):E._readdir(v,!1,A)}},x.prototype._readdir=function(v,A,C){if(!this.aborted&&(C=S("readdir\0"+v+"\0"+A,C),!!C)){if(A&&!P(this.symlinks,v))return this._readdirInGlobStar(v,C);if(P(this.cache,v)){var E=this.cache[v];if(!E||E==="FILE")return C();if(Array.isArray(E))return C(null,E)}var w=this;n.readdir(v,g(this,v,C))}};function g(v,A,C){return function(E,w){E?v._readdirError(A,E,C):v._readdirEntries(A,w,C)}}x.prototype._readdirEntries=function(v,A,C){if(!this.aborted){if(!this.mark&&!this.stat)for(var E=0;E<A.length;E++){var w=A[E];v==="/"?w=v+w:w=v+"/"+w,this.cache[w]=!0}return this.cache[v]=A,C(null,A)}},x.prototype._readdirError=function(v,A,C){if(!this.aborted){switch(A.code){case"ENOTSUP":case"ENOTDIR":var E=this._makeAbs(v);if(this.cache[E]="FILE",E===this.cwdAbs){var w=new Error(A.code+" invalid cwd "+this.cwd);w.path=this.cwd,w.code=A.code,this.emit("error",w),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(v)]=!1;break;default:this.cache[this._makeAbs(v)]=!1,this.strict&&(this.emit("error",A),this.abort()),this.silent||console.error("glob error",A);break}return C()}},x.prototype._processGlobStar=function(v,A,C,E,w,T,N){var M=this;this._readdir(C,T,function(U,V){M._processGlobStar2(v,A,C,E,w,T,V,N)})},x.prototype._processGlobStar2=function(v,A,C,E,w,T,N,M){if(!N)return M();var U=E.slice(1),V=v?[v]:[],J=V.concat(U);this._process(J,w,!1,M);var he=this.symlinks[C],q=N.length;if(he&&T)return M();for(var H=0;H<q;H++){var W=N[H];if(!(W.charAt(0)==="."&&!this.dot)){var Z=V.concat(N[H],U);this._process(Z,w,!0,M);var ee=V.concat(N[H],E);this._process(ee,w,!0,M)}}M()},x.prototype._processSimple=function(v,A,C){var E=this;this._stat(v,function(w,T){E._processSimple2(v,A,w,T,C)})},x.prototype._processSimple2=function(v,A,C,E,w){if(this.matches[A]||(this.matches[A]=Object.create(null)),!E)return w();if(v&&l(v)&&!this.nomount){var T=/[\/\\]$/.test(v);v.charAt(0)==="/"?v=c.join(this.root,v):(v=c.resolve(this.root,v),T&&(v+="/"))}process.platform==="win32"&&(v=v.replace(/\\/g,"/")),this._emitMatch(A,v),w()},x.prototype._stat=function(v,A){var C=this._makeAbs(v),E=v.slice(-1)==="/";if(v.length>this.maxLength)return A();if(!this.stat&&P(this.cache,C)){var w=this.cache[C];if(Array.isArray(w)&&(w="DIR"),!E||w==="DIR")return A(null,w);if(E&&w==="FILE")return A()}var T,N=this.statCache[C];if(N!==void 0){if(N===!1)return A(null,N);var M=N.isDirectory()?"DIR":"FILE";return E&&M==="FILE"?A():A(null,M,N)}var U=this,V=S("stat\0"+C,J);V&&n.lstat(C,V);function J(he,q){if(q&&q.isSymbolicLink())return n.stat(C,function(H,W){H?U._stat2(v,C,null,q,A):U._stat2(v,C,H,W,A)});U._stat2(v,C,he,q,A)}},x.prototype._stat2=function(v,A,C,E,w){if(C&&(C.code==="ENOENT"||C.code==="ENOTDIR"))return this.statCache[A]=!1,w();var T=v.slice(-1)==="/";if(this.statCache[A]=E,A.slice(-1)==="/"&&E&&!E.isDirectory())return w(null,!1,E);var N=!0;return E&&(N=E.isDirectory()?"DIR":"FILE"),this.cache[A]=this.cache[A]||N,T&&N==="FILE"?w():w(null,N,E)}}),(function(e,t,r){"use strict";function n(s){return s.charAt(0)==="/"}function i(s){var o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,a=o.exec(s),u=a[1]||"",c=!!(u&&u.charAt(1)!==":");return!!(a[2]||c)}e.exports=process.platform==="win32"?i:n,e.exports.posix=n,e.exports.win32=i}),,,(function(e,t){e.exports=require("tty")}),,(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(C,E="lockfile"){return C=(0,(a||u()).default)(C),g(C)?A(C,E):{type:"success",object:v(C,E)}};var n;function i(){return n=y(r(2))}var s;function o(){return s=y(r(7))}var a;function u(){return a=y(r(122))}var c;function f(){return c=r(6)}var l;function h(){return l=r(4)}var d;function p(){return d=y(r(20))}function y(C){return C&&C.__esModule?C:{default:C}}let m=/^yarn lockfile v(\d+)$/,P={boolean:"BOOLEAN",string:"STRING",identifier:"IDENTIFIER",eof:"EOF",colon:"COLON",newline:"NEWLINE",comment:"COMMENT",indent:"INDENT",invalid:"INVALID",number:"NUMBER",comma:"COMMA"},S=[P.boolean,P.string,P.number];function L(C){return S.indexOf(C.type)>=0}function*O(C){let E=!1,w=1,T=0;function N(M,U){return{line:w,col:T,type:M,value:U}}for(;C.length;){let M=0;if(C[0]===`
81
82
  `||C[0]==="\r")M++,C[1]===`
82
- `&&M++,w++,T=0,yield N(O.newline);else if(C[0]==="#"){M++;let U="";for(;C[M]!==`
83
- `;)U+=C[M],M++;yield N(O.comment,U)}else if(C[0]===" ")if(E){let U="";for(let V=0;C[V]===" ";V++)U+=C[V];if(U.length%2)throw new TypeError("Invalid number of spaces");M=U.length,yield N(O.indent,U.length/2)}else M++;else if(C[0]==='"'){let U="";for(let V=0;;V++){let X=C[V];if(U+=X,V>0&&X==='"'&&!(C[V-1]==="\\"&&C[V-2]!=="\\"))break}M=U.length;try{yield N(O.string,JSON.parse(U))}catch(V){if(V instanceof SyntaxError)yield N(O.invalid);else throw V}}else if(/^[0-9]/.test(C)){let U="";for(let V=0;/^[0-9]$/.test(C[V]);V++)U+=C[V];M=U.length,yield N(O.number,+U)}else if(/^true/.test(C))yield N(O.boolean,!0),M=4;else if(/^false/.test(C))yield N(O.boolean,!1),M=5;else if(C[0]===":")yield N(O.colon),M++;else if(C[0]===",")yield N(O.comma),M++;else if(/^[a-zA-Z\/-]/g.test(C)){let U="";for(let V=0;V<C.length;V++){let X=C[V];if(X===":"||X===" "||X===`
84
- `||X==="\r"||X===",")break;U+=X}M=U.length,yield N(O.string,U)}else yield N(O.invalid);M||(yield N(O.invalid)),T+=M,E=C[0]===`
83
+ `&&M++,w++,T=0,yield N(P.newline);else if(C[0]==="#"){M++;let U="";for(;C[M]!==`
84
+ `;)U+=C[M],M++;yield N(P.comment,U)}else if(C[0]===" ")if(E){let U="";for(let V=0;C[V]===" ";V++)U+=C[V];if(U.length%2)throw new TypeError("Invalid number of spaces");M=U.length,yield N(P.indent,U.length/2)}else M++;else if(C[0]==='"'){let U="";for(let V=0;;V++){let J=C[V];if(U+=J,V>0&&J==='"'&&!(C[V-1]==="\\"&&C[V-2]!=="\\"))break}M=U.length;try{yield N(P.string,JSON.parse(U))}catch(V){if(V instanceof SyntaxError)yield N(P.invalid);else throw V}}else if(/^[0-9]/.test(C)){let U="";for(let V=0;/^[0-9]$/.test(C[V]);V++)U+=C[V];M=U.length,yield N(P.number,+U)}else if(/^true/.test(C))yield N(P.boolean,!0),M=4;else if(/^false/.test(C))yield N(P.boolean,!1),M=5;else if(C[0]===":")yield N(P.colon),M++;else if(C[0]===",")yield N(P.comma),M++;else if(/^[a-zA-Z\/-]/g.test(C)){let U="";for(let V=0;V<C.length;V++){let J=C[V];if(J===":"||J===" "||J===`
85
+ `||J==="\r"||J===",")break;U+=J}M=U.length,yield N(P.string,U)}else yield N(P.invalid);M||(yield N(P.invalid)),T+=M,E=C[0]===`
85
86
  `||C[0]==="\r"&&C[1]===`
86
- `,C=C.slice(M)}yield N(O.eof)}class b{constructor(E,w="lockfile"){this.comments=[],this.tokens=P(E),this.fileLoc=w}onComment(E){let w=E.value;(0,(s||o()).default)(typeof w=="string","expected token value to be a string");let T=w.trim(),N=T.match(m);if(N){let M=+N[1];if(M>(c||f()).LOCKFILE_VERSION)throw new(l||h()).MessageError(`Can't install from a lockfile of version ${M} as you're on an old yarn version that only supports versions up to ${(c||f()).LOCKFILE_VERSION}. Run \`$ yarn self-update\` to upgrade to the latest version.`)}this.comments.push(T)}next(){let E=this.tokens.next();(0,(s||o()).default)(E,"expected a token");let w=E.done,T=E.value;if(w||!T)throw new Error("No more tokens");return T.type===O.comment?(this.onComment(T),this.next()):this.token=T}unexpected(E="Unexpected token"){throw new SyntaxError(`${E} ${this.token.line}:${this.token.col} in ${this.fileLoc}`)}expect(E){this.token.type===E?this.next():this.unexpected()}eat(E){return this.token.type===E?(this.next(),!0):!1}parse(E=0){let w=(0,(d||p()).default)();for(;;){let H=this.token;if(H.type===O.newline){let W=this.next();if(!E)continue;if(W.type!==O.indent)break;if(W.value===E)this.next();else break}else if(H.type===O.indent)if(H.value===E)this.next();else break;else{if(H.type===O.eof)break;if(H.type===O.string){let W=H.value;(0,(s||o()).default)(W,"Expected a key");let Z=[W];for(this.next();this.token.type===O.comma;){this.next();let G=this.token;G.type!==O.string&&this.unexpected("Expected string");let re=G.value;(0,(s||o()).default)(re,"Expected a key"),Z.push(re),this.next()}let ee=this.token;if(ee.type===O.colon){this.next();let G=this.parse(E+1);for(var M=Z,T=Array.isArray(M),N=0,M=T?M:M[Symbol.iterator]();;){var U;if(T){if(N>=M.length)break;U=M[N++]}else{if(N=M.next(),N.done)break;U=N.value}let re=U;w[re]=G}if(E&&this.token.type!==O.indent)break}else if(k(ee)){for(var fe=Z,V=Array.isArray(fe),X=0,fe=V?fe:fe[Symbol.iterator]();;){var q;if(V){if(X>=fe.length)break;q=fe[X++]}else{if(X=fe.next(),X.done)break;q=X.value}let G=q;w[G]=ee.value}this.next()}else this.unexpected("Invalid value type")}else this.unexpected(`Unknown token: ${(n||i()).default.inspect(H)}`)}}return w}}let _="|||||||",L=">>>>>>>",D="=======",$="<<<<<<<";function x(C){let E=[[],[]],w=C.split(/\r?\n/g),T=!1;for(;w.length;){let N=w.shift();if(N.startsWith($)){for(;w.length;){let M=w.shift();if(M===D){T=!1;break}else if(T||M.startsWith(_)){T=!0;continue}else E[0].push(M)}for(;w.length;){let M=w.shift();if(M.startsWith(L))break;E[1].push(M)}}else E[0].push(N),E[1].push(N)}return[E[0].join(`
87
+ `,C=C.slice(M)}yield N(P.eof)}class b{constructor(E,w="lockfile"){this.comments=[],this.tokens=O(E),this.fileLoc=w}onComment(E){let w=E.value;(0,(s||o()).default)(typeof w=="string","expected token value to be a string");let T=w.trim(),N=T.match(m);if(N){let M=+N[1];if(M>(c||f()).LOCKFILE_VERSION)throw new(l||h()).MessageError(`Can't install from a lockfile of version ${M} as you're on an old yarn version that only supports versions up to ${(c||f()).LOCKFILE_VERSION}. Run \`$ yarn self-update\` to upgrade to the latest version.`)}this.comments.push(T)}next(){let E=this.tokens.next();(0,(s||o()).default)(E,"expected a token");let w=E.done,T=E.value;if(w||!T)throw new Error("No more tokens");return T.type===P.comment?(this.onComment(T),this.next()):this.token=T}unexpected(E="Unexpected token"){throw new SyntaxError(`${E} ${this.token.line}:${this.token.col} in ${this.fileLoc}`)}expect(E){this.token.type===E?this.next():this.unexpected()}eat(E){return this.token.type===E?(this.next(),!0):!1}parse(E=0){let w=(0,(d||p()).default)();for(;;){let H=this.token;if(H.type===P.newline){let W=this.next();if(!E)continue;if(W.type!==P.indent)break;if(W.value===E)this.next();else break}else if(H.type===P.indent)if(H.value===E)this.next();else break;else{if(H.type===P.eof)break;if(H.type===P.string){let W=H.value;(0,(s||o()).default)(W,"Expected a key");let Z=[W];for(this.next();this.token.type===P.comma;){this.next();let G=this.token;G.type!==P.string&&this.unexpected("Expected string");let ne=G.value;(0,(s||o()).default)(ne,"Expected a key"),Z.push(ne),this.next()}let ee=this.token;if(ee.type===P.colon){this.next();let G=this.parse(E+1);for(var M=Z,T=Array.isArray(M),N=0,M=T?M:M[Symbol.iterator]();;){var U;if(T){if(N>=M.length)break;U=M[N++]}else{if(N=M.next(),N.done)break;U=N.value}let ne=U;w[ne]=G}if(E&&this.token.type!==P.indent)break}else if(L(ee)){for(var he=Z,V=Array.isArray(he),J=0,he=V?he:he[Symbol.iterator]();;){var q;if(V){if(J>=he.length)break;q=he[J++]}else{if(J=he.next(),J.done)break;q=J.value}let G=q;w[G]=ee.value}this.next()}else this.unexpected("Invalid value type")}else this.unexpected(`Unknown token: ${(n||i()).default.inspect(H)}`)}}return w}}let _="|||||||",D=">>>>>>>",k="=======",$="<<<<<<<";function x(C){let E=[[],[]],w=C.split(/\r?\n/g),T=!1;for(;w.length;){let N=w.shift();if(N.startsWith($)){for(;w.length;){let M=w.shift();if(M===k){T=!1;break}else if(T||M.startsWith(_)){T=!0;continue}else E[0].push(M)}for(;w.length;){let M=w.shift();if(M.startsWith(D))break;E[1].push(M)}}else E[0].push(N),E[1].push(N)}return[E[0].join(`
87
88
  `),E[1].join(`
88
- `)]}function g(C){return C.includes($)&&C.includes(D)&&C.includes(L)}function v(C,E){let w=new b(C,E);return w.next(),w.parse()}function A(C,E){let w=x(C);try{return{type:"merge",object:Object.assign({},v(w[0],E),v(w[1],E))}}catch(T){if(T instanceof SyntaxError)return{type:"conflict",object:{}};throw T}}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n;function i(){return n=s(r(20))}function s(u){return u&&u.__esModule?u:{default:u}}let o=r(212)("yarn");class a{constructor(c,f=1/0){this.concurrencyQueue=[],this.maxConcurrency=f,this.runningCount=0,this.warnedStuck=!1,this.alias=c,this.first=!0,this.running=(0,(n||i()).default)(),this.queue=(0,(n||i()).default)(),this.stuckTick=this.stuckTick.bind(this)}stillActive(){this.stuckTimer&&clearTimeout(this.stuckTimer),this.stuckTimer=setTimeout(this.stuckTick,5e3),this.stuckTimer.unref&&this.stuckTimer.unref()}stuckTick(){this.runningCount===1&&(this.warnedStuck=!0,o(`The ${JSON.stringify(this.alias)} blocking queue may be stuck. 5 seconds without any activity with 1 worker: ${Object.keys(this.running)[0]}`))}push(c,f){return this.first?this.first=!1:this.stillActive(),new Promise((l,h)=>{(this.queue[c]=this.queue[c]||[]).push({factory:f,resolve:l,reject:h}),this.running[c]||this.shift(c)})}shift(c){this.running[c]&&(delete this.running[c],this.runningCount--,this.stuckTimer&&(clearTimeout(this.stuckTimer),this.stuckTimer=null),this.warnedStuck&&(this.warnedStuck=!1,o(`${JSON.stringify(this.alias)} blocking queue finally resolved. Nothing to worry about.`)));let f=this.queue[c];if(!f)return;var l=f.shift();let h=l.resolve,d=l.reject,p=l.factory;f.length||delete this.queue[c];let y=()=>{this.shift(c),this.shiftConcurrencyQueue()},m=()=>{this.running[c]=!0,this.runningCount++,p().then(function(O){return h(O),y(),null}).catch(function(O){d(O),y()})};this.maybePushConcurrencyQueue(m)}maybePushConcurrencyQueue(c){this.runningCount<this.maxConcurrency?c():this.concurrencyQueue.push(c)}shiftConcurrencyQueue(){if(this.runningCount<this.maxConcurrency){let c=this.concurrencyQueue.shift();c&&c()}}}t.default=a},function(e,t){e.exports=function(r){try{return!!r()}catch{return!0}}},,,,,,,,,,,,,,,function(e,t,r){var n=r(47),i=r(13)("toStringTag"),s=n(function(){return arguments}())=="Arguments",o=function(a,u){try{return a[u]}catch{}};e.exports=function(a){var u,c,f;return a===void 0?"Undefined":a===null?"Null":typeof(c=o(u=Object(a),i))=="string"?c:s?n(u):(f=n(u))=="Object"&&typeof u.callee=="function"?"Arguments":f}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(11).document;e.exports=n&&n.documentElement},function(e,t,r){"use strict";var n=r(69),i=r(41),s=r(197),o=r(31),a=r(35),u=r(188),c=r(71),f=r(194),l=r(13)("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",y="values",m=function(){return this};e.exports=function(O,S,k,P,b,_,L){u(k,S,P);var D=function(U){if(!h&&U in v)return v[U];switch(U){case p:return function(){return new k(this,U)};case y:return function(){return new k(this,U)}}return function(){return new k(this,U)}},$=S+" Iterator",x=b==y,g=!1,v=O.prototype,A=v[l]||v[d]||b&&v[b],C=A||D(b),E=b?x?D("entries"):C:void 0,w=S=="Array"&&v.entries||A,T,N,M;if(w&&(M=f(w.call(new O)),M!==Object.prototype&&M.next&&(c(M,$,!0),!n&&typeof M[l]!="function"&&o(M,l,m))),x&&A&&A.name!==y&&(g=!0,C=function(){return A.call(this)}),(!n||L)&&(h||g||!v[l])&&o(v,l,C),a[S]=C,a[$]=m,b)if(T={values:x?C:D(y),keys:_?C:D(p),entries:E},L)for(N in T)N in v||s(v,N,T[N]);else i(i.P+i.F*(h||g),S,T);return T}},function(e,t){e.exports=function(r){try{return{e:!1,v:r()}}catch(n){return{e:!0,v:n}}}},function(e,t,r){var n=r(27),i=r(34),s=r(70);e.exports=function(o,a){if(n(o),i(a)&&a.constructor===o)return a;var u=s.f(o),c=u.resolve;return c(a),u.promise}},function(e,t){e.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},function(e,t,r){var n=r(23),i=r(11),s="__core-js_shared__",o=i[s]||(i[s]={});(e.exports=function(a,u){return o[a]||(o[a]=u!==void 0?u:{})})("versions",[]).push({version:n.version,mode:r(69)?"pure":"global",copyright:"\xA9 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(27),i=r(46),s=r(13)("species");e.exports=function(o,a){var u=n(o).constructor,c;return u===void 0||(c=n(u)[s])==null?a:i(c)}},function(e,t,r){var n=r(48),i=r(185),s=r(102),o=r(68),a=r(11),u=a.process,c=a.setImmediate,f=a.clearImmediate,l=a.MessageChannel,h=a.Dispatch,d=0,p={},y="onreadystatechange",m,O,S,k=function(){var b=+this;if(p.hasOwnProperty(b)){var _=p[b];delete p[b],_()}},P=function(b){k.call(b.data)};(!c||!f)&&(c=function(_){for(var L=[],D=1;arguments.length>D;)L.push(arguments[D++]);return p[++d]=function(){i(typeof _=="function"?_:Function(_),L)},m(d),d},f=function(_){delete p[_]},r(47)(u)=="process"?m=function(b){u.nextTick(n(k,b,1))}:h&&h.now?m=function(b){h.now(n(k,b,1))}:l?(O=new l,S=O.port2,O.port1.onmessage=P,m=n(S.postMessage,S,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(m=function(b){a.postMessage(b+"","*")},a.addEventListener("message",P,!1)):y in o("script")?m=function(b){s.appendChild(o("script"))[y]=function(){s.removeChild(this),k.call(b)}}:m=function(b){setTimeout(n(k,b,1),0)}),e.exports={set:c,clear:f}},function(e,t,r){var n=r(73),i=Math.min;e.exports=function(s){return s>0?i(n(s),9007199254740991):0}},function(e,t){var r=0,n=Math.random();e.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++r+n).toString(36))}},function(e,t,r){t=e.exports=i.debug=i.default=i,t.coerce=c,t.disable=a,t.enable=o,t.enabled=u,t.humanize=r(229),t.instances=[],t.names=[],t.skips=[],t.formatters={};function n(f){var l=0,h;for(h in f)l=(l<<5)-l+f.charCodeAt(h),l|=0;return t.colors[Math.abs(l)%t.colors.length]}function i(f){var l;function h(){if(h.enabled){var d=h,p=+new Date,y=p-(l||p);d.diff=y,d.prev=l,d.curr=p,l=p;for(var m=new Array(arguments.length),O=0;O<m.length;O++)m[O]=arguments[O];m[0]=t.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");var S=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,function(P,b){if(P==="%%")return P;S++;var _=t.formatters[b];if(typeof _=="function"){var L=m[S];P=_.call(d,L),m.splice(S,1),S--}return P}),t.formatArgs.call(d,m);var k=h.log||t.log||console.log.bind(console);k.apply(d,m)}}return h.namespace=f,h.enabled=t.enabled(f),h.useColors=t.useColors(),h.color=n(f),h.destroy=s,typeof t.init=="function"&&t.init(h),t.instances.push(h),h}function s(){var f=t.instances.indexOf(this);return f!==-1?(t.instances.splice(f,1),!0):!1}function o(f){t.save(f),t.names=[],t.skips=[];var l,h=(typeof f=="string"?f:"").split(/[\s,]+/),d=h.length;for(l=0;l<d;l++)h[l]&&(f=h[l].replace(/\*/g,".*?"),f[0]==="-"?t.skips.push(new RegExp("^"+f.substr(1)+"$")):t.names.push(new RegExp("^"+f+"$")));for(l=0;l<t.instances.length;l++){var p=t.instances[l];p.enabled=t.enabled(p.namespace)}}function a(){t.enable("")}function u(f){if(f[f.length-1]==="*")return!0;var l,h;for(l=0,h=t.skips.length;l<h;l++)if(t.skips[l].test(f))return!1;for(l=0,h=t.names.length;l<h;l++)if(t.names[l].test(f))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}},,function(e,t,r){e.exports=f,f.realpath=f,f.sync=l,f.realpathSync=l,f.monkeypatch=h,f.unmonkeypatch=d;var n=r(3),i=n.realpath,s=n.realpathSync,o=process.version,a=/^v[0-5]\./.test(o),u=r(217);function c(p){return p&&p.syscall==="realpath"&&(p.code==="ELOOP"||p.code==="ENOMEM"||p.code==="ENAMETOOLONG")}function f(p,y,m){if(a)return i(p,y,m);typeof y=="function"&&(m=y,y=null),i(p,y,function(O,S){c(O)?u.realpath(p,y,m):m(O,S)})}function l(p,y){if(a)return s(p,y);try{return s(p,y)}catch(m){if(c(m))return u.realpathSync(p,y);throw m}}function h(){n.realpath=f,n.realpathSync=l}function d(){n.realpath=i,n.realpathSync=s}},function(e,t,r){t.alphasort=c,t.alphasorti=u,t.setopts=h,t.ownProp=n,t.makeAbs=y,t.finish=d,t.mark=p,t.isIgnored=m,t.childrenIgnored=O;function n(S,k){return Object.prototype.hasOwnProperty.call(S,k)}var i=r(0),s=r(60),o=r(76),a=s.Minimatch;function u(S,k){return S.toLowerCase().localeCompare(k.toLowerCase())}function c(S,k){return S.localeCompare(k)}function f(S,k){S.ignore=k.ignore||[],Array.isArray(S.ignore)||(S.ignore=[S.ignore]),S.ignore.length&&(S.ignore=S.ignore.map(l))}function l(S){var k=null;if(S.slice(-3)==="/**"){var P=S.replace(/(\/\*\*)+$/,"");k=new a(P,{dot:!0})}return{matcher:new a(S,{dot:!0}),gmatcher:k}}function h(S,k,P){if(P||(P={}),P.matchBase&&k.indexOf("/")===-1){if(P.noglobstar)throw new Error("base matching requires globstar");k="**/"+k}S.silent=!!P.silent,S.pattern=k,S.strict=P.strict!==!1,S.realpath=!!P.realpath,S.realpathCache=P.realpathCache||Object.create(null),S.follow=!!P.follow,S.dot=!!P.dot,S.mark=!!P.mark,S.nodir=!!P.nodir,S.nodir&&(S.mark=!0),S.sync=!!P.sync,S.nounique=!!P.nounique,S.nonull=!!P.nonull,S.nosort=!!P.nosort,S.nocase=!!P.nocase,S.stat=!!P.stat,S.noprocess=!!P.noprocess,S.absolute=!!P.absolute,S.maxLength=P.maxLength||1/0,S.cache=P.cache||Object.create(null),S.statCache=P.statCache||Object.create(null),S.symlinks=P.symlinks||Object.create(null),f(S,P),S.changedCwd=!1;var b=process.cwd();n(P,"cwd")?(S.cwd=i.resolve(P.cwd),S.changedCwd=S.cwd!==b):S.cwd=b,S.root=P.root||i.resolve(S.cwd,"/"),S.root=i.resolve(S.root),process.platform==="win32"&&(S.root=S.root.replace(/\\/g,"/")),S.cwdAbs=o(S.cwd)?S.cwd:y(S,S.cwd),process.platform==="win32"&&(S.cwdAbs=S.cwdAbs.replace(/\\/g,"/")),S.nomount=!!P.nomount,P.nonegate=!0,P.nocomment=!0,S.minimatch=new a(k,P),S.options=S.minimatch.options}function d(S){for(var k=S.nounique,P=k?[]:Object.create(null),b=0,_=S.matches.length;b<_;b++){var L=S.matches[b];if(!L||Object.keys(L).length===0){if(S.nonull){var D=S.minimatch.globSet[b];k?P.push(D):P[D]=!0}}else{var $=Object.keys(L);k?P.push.apply(P,$):$.forEach(function(x){P[x]=!0})}}if(k||(P=Object.keys(P)),S.nosort||(P=P.sort(S.nocase?u:c)),S.mark){for(var b=0;b<P.length;b++)P[b]=S._mark(P[b]);S.nodir&&(P=P.filter(function(x){var g=!/\/$/.test(x),v=S.cache[x]||S.cache[y(S,x)];return g&&v&&(g=v!=="DIR"&&!Array.isArray(v)),g}))}S.ignore.length&&(P=P.filter(function(x){return!m(S,x)})),S.found=P}function p(S,k){var P=y(S,k),b=S.cache[P],_=k;if(b){var L=b==="DIR"||Array.isArray(b),D=k.slice(-1)==="/";if(L&&!D?_+="/":!L&&D&&(_=_.slice(0,-1)),_!==k){var $=y(S,_);S.statCache[$]=S.statCache[P],S.cache[$]=S.cache[P]}}return _}function y(S,k){var P=k;return k.charAt(0)==="/"?P=i.join(S.root,k):o(k)||k===""?P=k:S.changedCwd?P=i.resolve(S.cwd,k):P=i.resolve(k),process.platform==="win32"&&(P=P.replace(/\\/g,"/")),P}function m(S,k){return S.ignore.length?S.ignore.some(function(P){return P.matcher.match(k)||!!(P.gmatcher&&P.gmatcher.match(k))}):!1}function O(S,k){return S.ignore.length?S.ignore.some(function(P){return!!(P.gmatcher&&P.gmatcher.match(k))}):!1}},function(e,t,r){var n=r(0),i=r(3),s=parseInt("0777",8);e.exports=o.mkdirp=o.mkdirP=o;function o(a,u,c,f){typeof u=="function"?(c=u,u={}):(!u||typeof u!="object")&&(u={mode:u});var l=u.mode,h=u.fs||i;l===void 0&&(l=s&~process.umask()),f||(f=null);var d=c||function(){};a=n.resolve(a),h.mkdir(a,l,function(p){if(!p)return f=f||a,d(null,f);switch(p.code){case"ENOENT":o(n.dirname(a),u,function(y,m){y?d(y,m):o(a,u,d,m)});break;default:h.stat(a,function(y,m){y||!m.isDirectory()?d(p,f):d(null,f)});break}})}o.sync=function a(u,c,f){(!c||typeof c!="object")&&(c={mode:c});var l=c.mode,h=c.fs||i;l===void 0&&(l=s&~process.umask()),f||(f=null),u=n.resolve(u);try{h.mkdirSync(u,l),f=f||u}catch(p){switch(p.code){case"ENOENT":f=a(n.dirname(u),c,f),a(u,c,f);break;default:var d;try{d=h.statSync(u)}catch{throw p}if(!d.isDirectory())throw p;break}}return f}},,,,,,function(e,t,r){"use strict";e.exports=n=>{if(typeof n!="string")throw new TypeError("Expected a string, got "+typeof n);return n.charCodeAt(0)===65279?n.slice(1):n}},function(e,t){e.exports=r;function r(n,i){if(n&&i)return r(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(o){s[o]=n[o]}),s;function s(){for(var o=new Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];var u=n.apply(this,o),c=o[o.length-1];return typeof u=="function"&&u!==c&&Object.keys(c).forEach(function(f){u[f]=c[f]}),u}}},,,,,,,,function(e,t,r){var n=r(47);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(i){return n(i)=="String"?i.split(""):Object(i)}},function(e,t,r){var n=r(195),i=r(101);e.exports=Object.keys||function(o){return n(o,i)}},function(e,t,r){var n=r(67);e.exports=function(i){return Object(n(i))}},,,,,,,,,,,,function(e,t){e.exports={name:"yarn",installationMethod:"unknown",version:"1.10.0-0",license:"BSD-2-Clause",preferGlobal:!0,description:"\u{1F4E6}\u{1F408} Fast, reliable, and secure dependency management.",dependencies:{"@zkochan/cmd-shim":"^2.2.4","babel-runtime":"^6.26.0",bytes:"^3.0.0",camelcase:"^4.0.0",chalk:"^2.1.0",commander:"^2.9.0",death:"^1.0.0",debug:"^3.0.0","deep-equal":"^1.0.1","detect-indent":"^5.0.0",dnscache:"^1.0.1",glob:"^7.1.1","gunzip-maybe":"^1.4.0","hash-for-dep":"^1.2.3","imports-loader":"^0.8.0",ini:"^1.3.4",inquirer:"^3.0.1",invariant:"^2.2.0","is-builtin-module":"^2.0.0","is-ci":"^1.0.10","is-webpack-bundle":"^1.0.0",leven:"^2.0.0","loud-rejection":"^1.2.0",micromatch:"^2.3.11",mkdirp:"^0.5.1","node-emoji":"^1.6.1","normalize-url":"^2.0.0","npm-logical-tree":"^1.2.1","object-path":"^0.11.2","proper-lockfile":"^2.0.0",puka:"^1.0.0",read:"^1.0.7",request:"^2.87.0","request-capture-har":"^1.2.2",rimraf:"^2.5.0",semver:"^5.1.0",ssri:"^5.3.0","strip-ansi":"^4.0.0","strip-bom":"^3.0.0","tar-fs":"^1.16.0","tar-stream":"^1.6.1",uuid:"^3.0.1","v8-compile-cache":"^2.0.0","validate-npm-package-license":"^3.0.3",yn:"^2.0.0"},devDependencies:{"babel-core":"^6.26.0","babel-eslint":"^7.2.3","babel-loader":"^6.2.5","babel-plugin-array-includes":"^2.0.3","babel-plugin-transform-builtin-extend":"^1.1.2","babel-plugin-transform-inline-imports-commonjs":"^1.0.0","babel-plugin-transform-runtime":"^6.4.3","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-preset-stage-0":"^6.0.0",babylon:"^6.5.0",commitizen:"^2.9.6","cz-conventional-changelog":"^2.0.0",eslint:"^4.3.0","eslint-config-fb-strict":"^22.0.0","eslint-plugin-babel":"^5.0.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-jasmine":"^2.6.2","eslint-plugin-jest":"^21.0.0","eslint-plugin-jsx-a11y":"^6.0.2","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","eslint-plugin-relay":"^0.0.24","eslint-plugin-yarn-internal":"file:scripts/eslint-rules",execa:"^0.10.0","flow-bin":"^0.66.0","git-release-notes":"^3.0.0",gulp:"^3.9.0","gulp-babel":"^7.0.0","gulp-if":"^2.0.1","gulp-newer":"^1.0.0","gulp-plumber":"^1.0.1","gulp-sourcemaps":"^2.2.0","gulp-util":"^3.0.7","gulp-watch":"^5.0.0",jest:"^22.4.4",jsinspect:"^0.12.6",minimatch:"^3.0.4","mock-stdin":"^0.3.0",prettier:"^1.5.2",temp:"^0.8.3",webpack:"^2.1.0-beta.25",yargs:"^6.3.0"},resolutions:{sshpk:"^1.14.2"},engines:{node:">=4.0.0"},repository:"yarnpkg/yarn",bin:{yarn:"./bin/yarn.js",yarnpkg:"./bin/yarn.js"},scripts:{build:"gulp build","build-bundle":"node ./scripts/build-webpack.js","build-chocolatey":"powershell ./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash ./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat",changelog:"git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect ./src",lint:"eslint . && flow check","pkg-tests":"yarn --cwd packages/pkg-tests jest yarn.test.js",prettier:"eslint src __tests__ --fix","release-branch":"./scripts/release-branch.sh",test:"yarn lint && yarn test-only","test-only":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --verbose","test-coverage":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose",watch:"gulp watch",commit:"git-cz"},jest:{collectCoverageFrom:["src/**/*.js"],testEnvironment:"node",modulePathIgnorePatterns:["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],testPathIgnorePatterns:["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},config:{commitizen:{path:"./node_modules/cz-conventional-changelog"}}}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n;function i(){return n=r(12)}var s;function o(){return s=r(6)}var a;function u(){return a=r(145)}let c=process.version;function f(m){return m.indexOf("true")===0||m.indexOf("false")===0||/[:\s\n\\",\[\]]/g.test(m)||/^[0-9]/g.test(m)||!/^[a-zA-Z]/g.test(m)}function l(m){return typeof m=="boolean"||typeof m=="number"||f(m)?JSON.stringify(m):m}let h={name:1,version:2,uid:3,resolved:4,integrity:5,registry:6,dependencies:7};function d(m,O){return h[m]||h[O]?(h[m]||100)>(h[O]||100)?1:-1:(0,(n||i()).sortAlpha)(m,O)}function p(m,O){if(typeof m!="object")throw new TypeError;let S=O.indent,k=[],P=Object.keys(m).sort(d),b=[];for(let _=0;_<P.length;_++){let L=P[_],D=m[L];if(D==null||b.indexOf(L)>=0)continue;let $=[L];if(typeof D=="object")for(let g=_+1;g<P.length;g++){let v=P[g];D===m[v]&&$.push(v)}let x=$.sort((n||i()).sortAlpha).map(l).join(", ");if(typeof D=="string"||typeof D=="boolean"||typeof D=="number")k.push(`${x} ${l(D)}`);else if(typeof D=="object")k.push(`${x}:
89
- ${p(D,{indent:S+" "})}`+(O.topLevel?`
90
- `:""));else throw new TypeError;b=b.concat($)}return S+k.join(`
91
- ${S}`)}function y(m,O,S){let k=p(m,{indent:"",topLevel:!0});if(O)return k;let P=[];return P.push("# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."),P.push(`# yarn lockfile v${(s||o()).LOCKFILE_VERSION}`),S&&(P.push(`# yarn v${(a||u()).version}`),P.push(`# node ${c}`)),P.push(`
92
- `),P.push(k),P.join(`
93
- `)}},,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileDatesEqual=t.copyFile=t.unlink=void 0;var n;function i(){return n=f(r(1))}let s=(()=>{var L=(0,(n||i()).default)(function*(D,$,x){let g=D===void 0,v=D||-1;if(l===void 0){let A=yield p($);l=_(A.mtime,x.mtime)}if(!l){if(g)try{v=yield y($,"a",x.mode)}catch{try{v=yield y($,"r",x.mode)}catch{return}}try{v&&(yield m(v,x.atime,x.mtime))}catch{}finally{g&&v&&(yield d(v))}}});return function($,x,g){return L.apply(this,arguments)}})();var o;function a(){return o=f(r(3))}var u;function c(){return u=r(40)}function f(L){return L&&L.__esModule?L:{default:L}}let l,h=(0,(u||c()).promisify)((o||a()).default.readFile),d=(0,(u||c()).promisify)((o||a()).default.close),p=(0,(u||c()).promisify)((o||a()).default.lstat),y=(0,(u||c()).promisify)((o||a()).default.open),m=(0,(u||c()).promisify)((o||a()).default.futimes),O=(0,(u||c()).promisify)((o||a()).default.write),S=t.unlink=(0,(u||c()).promisify)(r(233)),k=t.copyFile=(()=>{var L=(0,(n||i()).default)(function*(D,$){try{yield S(D.dest),yield P(D.src,D.dest,0,D)}finally{$&&$()}});return function($,x){return L.apply(this,arguments)}})(),P=(L,D,$,x)=>(o||a()).default.copyFile?new Promise((g,v)=>(o||a()).default.copyFile(L,D,$,A=>{A?v(A):s(void 0,D,x).then(()=>g()).catch(C=>v(C))})):b(L,D,$,x),b=(()=>{var L=(0,(n||i()).default)(function*(D,$,x,g){let v=yield y($,"w",g.mode);try{let A=yield h(D);yield O(v,A,0,A.length),yield s(v,$,g)}finally{yield d(v)}});return function($,x,g,v){return L.apply(this,arguments)}})(),_=t.fileDatesEqual=(L,D)=>{let $=L.getTime(),x=D.getTime();if(process.platform!=="win32")return $===x;if(Math.abs($-x)<=1)return!0;let g=Math.floor($/1e3),v=Math.floor(x/1e3);return $-g*1e3===0||x-v*1e3===0?g===v:$===x}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFakeRoot=i,t.isRootUser=s;function n(){return process.platform!=="win32"&&process.getuid?process.getuid():null}t.default=s(n())&&!i();function i(){return!!process.env.FAKEROOTKEY}function s(o){return o===0}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDataDir=a,t.getCacheDir=u,t.getConfigDir=c;let n=r(0),i=r(45).default,s=n.join(i,".config","yarn"),o=n.join(i,".cache","yarn");function a(){if(process.platform==="win32"){let l=f();return l==null?s:n.join(l,"Data")}else return process.env.XDG_DATA_HOME?n.join(process.env.XDG_DATA_HOME,"yarn"):s}function u(){return process.platform==="win32"?n.join(f()||n.join(i,"AppData","Local","Yarn"),"Cache"):process.env.XDG_CACHE_HOME?n.join(process.env.XDG_CACHE_HOME,"yarn"):process.platform==="darwin"?n.join(i,"Library","Caches","Yarn"):o}function c(){if(process.platform==="win32"){let l=f();return l==null?s:n.join(l,"Config")}else return process.env.XDG_CONFIG_HOME?n.join(process.env.XDG_CONFIG_HOME,"yarn"):s}function f(){return process.env.LOCALAPPDATA?n.join(process.env.LOCALAPPDATA,"Yarn"):null}},,function(e,t,r){e.exports={default:r(179),__esModule:!0}},function(e,t,r){"use strict";e.exports=n;function n(o,a,u){o instanceof RegExp&&(o=i(o,u)),a instanceof RegExp&&(a=i(a,u));var c=s(o,a,u);return c&&{start:c[0],end:c[1],pre:u.slice(0,c[0]),body:u.slice(c[0]+o.length,c[1]),post:u.slice(c[1]+a.length)}}function i(o,a){var u=a.match(o);return u?u[0]:null}n.range=s;function s(o,a,u){var c,f,l,h,d,p=u.indexOf(o),y=u.indexOf(a,p+1),m=p;if(p>=0&&y>0){for(c=[],l=u.length;m>=0&&!d;)m==p?(c.push(m),p=u.indexOf(o,m+1)):c.length==1?d=[c.pop(),y]:(f=c.pop(),f<l&&(l=f,h=y),y=u.indexOf(a,m+1)),m=p<y&&p>=0?p:y;c.length&&(d=[l,h])}return d}},function(e,t,r){var n=r(178),i=r(174);e.exports=p;var s="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function f(b){return parseInt(b,10)==b?parseInt(b,10):b.charCodeAt(0)}function l(b){return b.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)}function h(b){return b.split(s).join("\\").split(o).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function d(b){if(!b)return[""];var _=[],L=i("{","}",b);if(!L)return b.split(",");var D=L.pre,$=L.body,x=L.post,g=D.split(",");g[g.length-1]+="{"+$+"}";var v=d(x);return x.length&&(g[g.length-1]+=v.shift(),g.push.apply(g,v)),_.push.apply(_,g),_}function p(b){return b?(b.substr(0,2)==="{}"&&(b="\\{\\}"+b.substr(2)),P(l(b),!0).map(h)):[]}function y(b){return b}function m(b){return"{"+b+"}"}function O(b){return/^-?0\d/.test(b)}function S(b,_){return b<=_}function k(b,_){return b>=_}function P(b,_){var L=[],D=i("{","}",b);if(!D||/\$$/.test(D.pre))return[b];var $=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(D.body),x=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(D.body),g=$||x,v=D.body.indexOf(",")>=0;if(!g&&!v)return D.post.match(/,.*\}/)?(b=D.pre+"{"+D.body+a+D.post,P(b)):[b];var A;if(g)A=D.body.split(/\.\./);else if(A=d(D.body),A.length===1&&(A=P(A[0],!1).map(m),A.length===1)){var E=D.post.length?P(D.post,!1):[""];return E.map(function(ue){return D.pre+A[0]+ue})}var C=D.pre,E=D.post.length?P(D.post,!1):[""],w;if(g){var T=f(A[0]),N=f(A[1]),M=Math.max(A[0].length,A[1].length),U=A.length==3?Math.abs(f(A[2])):1,V=S,X=N<T;X&&(U*=-1,V=k);var fe=A.some(O);w=[];for(var q=T;V(q,N);q+=U){var H;if(x)H=String.fromCharCode(q),H==="\\"&&(H="");else if(H=String(q),fe){var W=M-H.length;if(W>0){var Z=new Array(W+1).join("0");q<0?H="-"+Z+H.slice(1):H=Z+H}}w.push(H)}}else w=n(A,function(Y){return P(Y,!1)});for(var ee=0;ee<w.length;ee++)for(var G=0;G<E.length;G++){var re=C+w[ee]+E[G];(!_||g||re)&&L.push(re)}return L}},function(e,t,r){"use strict";function n(i){let s=!1,o=!1,a=!1;for(let u=0;u<i.length;u++){let c=i[u];s&&/[a-zA-Z]/.test(c)&&c.toUpperCase()===c?(i=i.substr(0,u)+"-"+i.substr(u),s=!1,a=o,o=!0,u++):o&&a&&/[a-zA-Z]/.test(c)&&c.toLowerCase()===c?(i=i.substr(0,u-1)+"-"+i.substr(u-1),a=o,o=!1,s=!0):(s=c.toLowerCase()===c,a=o,o=c.toUpperCase()===c)}return i}e.exports=function(i){return arguments.length>1?i=Array.from(arguments).map(o=>o.trim()).filter(o=>o.length).join("-"):i=i.trim(),i.length===0?"":i.length===1?i.toLowerCase():/^[a-z0-9]+$/.test(i)?i:(i!==i.toLowerCase()&&(i=n(i)),i.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(o,a)=>a.toUpperCase()))}},,function(e,t){e.exports=function(n,i){for(var s=[],o=0;o<n.length;o++){var a=i(n[o],o);r(a)?s.push.apply(s,a):s.push(a)}return s};var r=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"}},function(e,t,r){r(205),r(207),r(210),r(206),r(208),r(209),e.exports=r(23).Promise},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(r,n,i,s){if(!(r instanceof n)||s!==void 0&&s in r)throw TypeError(i+": incorrect invocation!");return r}},function(e,t,r){var n=r(74),i=r(110),s=r(200);e.exports=function(o){return function(a,u,c){var f=n(a),l=i(f.length),h=s(c,l),d;if(o&&u!=u){for(;l>h;)if(d=f[h++],d!=d)return!0}else for(;l>h;h++)if((o||h in f)&&f[h]===u)return o||h||0;return!o&&-1}}},function(e,l,r){var n=r(48),i=r(187),s=r(186),o=r(27),a=r(110),u=r(203),c={},f={},l=e.exports=function(h,d,p,y,m){var O=m?function(){return h}:u(h),S=n(p,y,d?2:1),k=0,P,b,_,L;if(typeof O!="function")throw TypeError(h+" is not iterable!");if(s(O)){for(P=a(h.length);P>k;k++)if(L=d?S(o(b=h[k])[0],b[1]):S(h[k]),L===c||L===f)return L}else for(_=O.call(h);!(b=_.next()).done;)if(L=i(_,S,b.value,d),L===c||L===f)return L};l.BREAK=c,l.RETURN=f},function(e,t,r){e.exports=!r(33)&&!r(85)(function(){return Object.defineProperty(r(68)("div"),"a",{get:function(){return 7}}).a!=7})},function(e,t){e.exports=function(r,n,i){var s=i===void 0;switch(n.length){case 0:return s?r():r.call(i);case 1:return s?r(n[0]):r.call(i,n[0]);case 2:return s?r(n[0],n[1]):r.call(i,n[0],n[1]);case 3:return s?r(n[0],n[1],n[2]):r.call(i,n[0],n[1],n[2]);case 4:return s?r(n[0],n[1],n[2],n[3]):r.call(i,n[0],n[1],n[2],n[3])}return r.apply(i,n)}},function(e,t,r){var n=r(35),i=r(13)("iterator"),s=Array.prototype;e.exports=function(o){return o!==void 0&&(n.Array===o||s[i]===o)}},function(e,t,r){var n=r(27);e.exports=function(i,s,o,a){try{return a?s(n(o)[0],o[1]):s(o)}catch(c){var u=i.return;throw u!==void 0&&n(u.call(i)),c}}},function(e,t,r){"use strict";var n=r(192),i=r(106),s=r(71),o={};r(31)(o,r(13)("iterator"),function(){return this}),e.exports=function(a,u,c){a.prototype=n(o,{next:i(1,c)}),s(a,u+" Iterator")}},function(e,t,r){var n=r(13)("iterator"),i=!1;try{var s=[7][n]();s.return=function(){i=!0},Array.from(s,function(){throw 2})}catch{}e.exports=function(o,a){if(!a&&!i)return!1;var u=!1;try{var c=[7],f=c[n]();f.next=function(){return{done:u=!0}},c[n]=function(){return f},o(c)}catch{}return u}},function(e,t){e.exports=function(r,n){return{value:n,done:!!r}}},function(e,t,r){var n=r(11),i=r(109).set,s=n.MutationObserver||n.WebKitMutationObserver,o=n.process,a=n.Promise,u=r(47)(o)=="process";e.exports=function(){var c,f,l,h=function(){var m,O;for(u&&(m=o.domain)&&m.exit();c;){O=c.fn,c=c.next;try{O()}catch(S){throw c?l():f=void 0,S}}f=void 0,m&&m.enter()};if(u)l=function(){o.nextTick(h)};else if(s&&!(n.navigator&&n.navigator.standalone)){var d=!0,p=document.createTextNode("");new s(h).observe(p,{characterData:!0}),l=function(){p.data=d=!d}}else if(a&&a.resolve){var y=a.resolve(void 0);l=function(){y.then(h)}}else l=function(){i.call(n,h)};return function(m){var O={fn:m,next:void 0};f&&(f.next=O),c||(c=O,l()),f=O}}},function(e,t,r){var n=r(27),i=r(193),s=r(101),o=r(72)("IE_PROTO"),a=function(){},u="prototype",c=function(){var f=r(68)("iframe"),l=s.length,h="<",d=">",p;for(f.style.display="none",r(102).appendChild(f),f.src="javascript:",p=f.contentWindow.document,p.open(),p.write(h+"script"+d+"document.F=Object"+h+"/script"+d),p.close(),c=p.F;l--;)delete c[u][s[l]];return c()};e.exports=Object.create||function(l,h){var d;return l!==null?(a[u]=n(l),d=new a,a[u]=null,d[o]=l):d=c(),h===void 0?d:i(d,h)}},function(e,t,r){var n=r(50),i=r(27),s=r(132);e.exports=r(33)?Object.defineProperties:function(a,u){i(a);for(var c=s(u),f=c.length,l=0,h;f>l;)n.f(a,h=c[l++],u[h]);return a}},function(e,t,r){var n=r(49),i=r(133),s=r(72)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(a){return a=i(a),n(a,s)?a[s]:typeof a.constructor=="function"&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?o:null}},function(e,t,r){var n=r(49),i=r(74),s=r(182)(!1),o=r(72)("IE_PROTO");e.exports=function(a,u){var c=i(a),f=0,l=[],h;for(h in c)h!=o&&n(c,h)&&l.push(h);for(;u.length>f;)n(c,h=u[f++])&&(~s(l,h)||l.push(h));return l}},function(e,t,r){var n=r(31);e.exports=function(i,s,o){for(var a in s)o&&i[a]?i[a]=s[a]:n(i,a,s[a]);return i}},function(e,t,r){e.exports=r(31)},function(e,t,r){"use strict";var n=r(11),i=r(23),s=r(50),o=r(33),a=r(13)("species");e.exports=function(u){var c=typeof i[u]=="function"?i[u]:n[u];o&&c&&!c[a]&&s.f(c,a,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(73),i=r(67);e.exports=function(s){return function(o,a){var u=String(i(o)),c=n(a),f=u.length,l,h;return c<0||c>=f?s?"":void 0:(l=u.charCodeAt(c),l<55296||l>56319||c+1===f||(h=u.charCodeAt(c+1))<56320||h>57343?s?u.charAt(c):l:s?u.slice(c,c+2):(l-55296<<10)+(h-56320)+65536)}}},function(e,t,r){var n=r(73),i=Math.max,s=Math.min;e.exports=function(o,a){return o=n(o),o<0?i(o+a,0):s(o,a)}},function(e,t,r){var n=r(34);e.exports=function(i,s){if(!n(i))return i;var o,a;if(s&&typeof(o=i.toString)=="function"&&!n(a=o.call(i))||typeof(o=i.valueOf)=="function"&&!n(a=o.call(i))||!s&&typeof(o=i.toString)=="function"&&!n(a=o.call(i)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(11),i=n.navigator;e.exports=i&&i.userAgent||""},function(e,t,r){var n=r(100),i=r(13)("iterator"),s=r(35);e.exports=r(23).getIteratorMethod=function(o){if(o!=null)return o[i]||o["@@iterator"]||s[n(o)]}},function(e,t,r){"use strict";var n=r(180),i=r(190),s=r(35),o=r(74);e.exports=r(103)(Array,"Array",function(a,u){this._t=o(a),this._i=0,this._k=u},function(){var a=this._t,u=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,i(1)):u=="keys"?i(0,c):u=="values"?i(0,a[c]):i(0,[c,a[c]])},"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},function(e,t){},function(e,t,r){"use strict";var n=r(69),i=r(11),s=r(48),o=r(100),a=r(41),u=r(34),c=r(46),f=r(181),l=r(183),h=r(108),d=r(109).set,p=r(191)(),y=r(70),m=r(104),O=r(202),S=r(105),k="Promise",P=i.TypeError,b=i.process,_=b&&b.versions,L=_&&_.v8||"",D=i[k],$=o(b)=="process",x=function(){},g,v,A,C,E=v=y.f,w=!!function(){try{var q=D.resolve(1),H=(q.constructor={})[r(13)("species")]=function(W){W(x,x)};return($||typeof PromiseRejectionEvent=="function")&&q.then(x)instanceof H&&L.indexOf("6.6")!==0&&O.indexOf("Chrome/66")===-1}catch{}}(),T=function(q){var H;return u(q)&&typeof(H=q.then)=="function"?H:!1},N=function(q,H){if(!q._n){q._n=!0;var W=q._c;p(function(){for(var Z=q._v,ee=q._s==1,G=0,re=function(Y){var ue=ee?Y.ok:Y.fail,ve=Y.resolve,De=Y.reject,I=Y.domain,j,K,z;try{ue?(ee||(q._h==2&&V(q),q._h=1),ue===!0?j=Z:(I&&I.enter(),j=ue(Z),I&&(I.exit(),z=!0)),j===Y.promise?De(P("Promise-chain cycle")):(K=T(j))?K.call(j,ve,De):ve(j)):De(Z)}catch(B){I&&!z&&I.exit(),De(B)}};W.length>G;)re(W[G++]);q._c=[],q._n=!1,H&&!q._h&&M(q)})}},M=function(q){d.call(i,function(){var H=q._v,W=U(q),Z,ee,G;if(W&&(Z=m(function(){$?b.emit("unhandledRejection",H,q):(ee=i.onunhandledrejection)?ee({promise:q,reason:H}):(G=i.console)&&G.error&&G.error("Unhandled promise rejection",H)}),q._h=$||U(q)?2:1),q._a=void 0,W&&Z.e)throw Z.v})},U=function(q){return q._h!==1&&(q._a||q._c).length===0},V=function(q){d.call(i,function(){var H;$?b.emit("rejectionHandled",q):(H=i.onrejectionhandled)&&H({promise:q,reason:q._v})})},X=function(q){var H=this;H._d||(H._d=!0,H=H._w||H,H._v=q,H._s=2,H._a||(H._a=H._c.slice()),N(H,!0))},fe=function(q){var H=this,W;if(!H._d){H._d=!0,H=H._w||H;try{if(H===q)throw P("Promise can't be resolved itself");(W=T(q))?p(function(){var Z={_w:H,_d:!1};try{W.call(q,s(fe,Z,1),s(X,Z,1))}catch(ee){X.call(Z,ee)}}):(H._v=q,H._s=1,N(H,!1))}catch(Z){X.call({_w:H,_d:!1},Z)}}};w||(D=function(H){f(this,D,k,"_h"),c(H),g.call(this);try{H(s(fe,this,1),s(X,this,1))}catch(W){X.call(this,W)}},g=function(H){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},g.prototype=r(196)(D.prototype,{then:function(H,W){var Z=E(h(this,D));return Z.ok=typeof H=="function"?H:!0,Z.fail=typeof W=="function"&&W,Z.domain=$?b.domain:void 0,this._c.push(Z),this._a&&this._a.push(Z),this._s&&N(this,!1),Z.promise},catch:function(q){return this.then(void 0,q)}}),A=function(){var q=new g;this.promise=q,this.resolve=s(fe,q,1),this.reject=s(X,q,1)},y.f=E=function(q){return q===D||q===C?new A(q):v(q)}),a(a.G+a.W+a.F*!w,{Promise:D}),r(71)(D,k),r(198)(k),C=r(23)[k],a(a.S+a.F*!w,k,{reject:function(H){var W=E(this),Z=W.reject;return Z(H),W.promise}}),a(a.S+a.F*(n||!w),k,{resolve:function(H){return S(n&&this===C?D:this,H)}}),a(a.S+a.F*!(w&&r(189)(function(q){D.all(q).catch(x)})),k,{all:function(H){var W=this,Z=E(W),ee=Z.resolve,G=Z.reject,re=m(function(){var Y=[],ue=0,ve=1;l(H,!1,function(De){var I=ue++,j=!1;Y.push(void 0),ve++,W.resolve(De).then(function(K){j||(j=!0,Y[I]=K,--ve||ee(Y))},G)}),--ve||ee(Y)});return re.e&&G(re.v),Z.promise},race:function(H){var W=this,Z=E(W),ee=Z.reject,G=m(function(){l(H,!1,function(re){W.resolve(re).then(Z.resolve,ee)})});return G.e&&ee(G.v),Z.promise}})},function(e,t,r){"use strict";var n=r(199)(!0);r(103)(String,"String",function(i){this._t=String(i),this._i=0},function(){var i=this._t,s=this._i,o;return s>=i.length?{value:void 0,done:!0}:(o=n(i,s),this._i+=o.length,{value:o,done:!1})})},function(e,t,r){"use strict";var n=r(41),i=r(23),s=r(11),o=r(108),a=r(105);n(n.P+n.R,"Promise",{finally:function(u){var c=o(this,i.Promise||s.Promise),f=typeof u=="function";return this.then(f?function(l){return a(c,u()).then(function(){return l})}:u,f?function(l){return a(c,u()).then(function(){throw l})}:u)}})},function(e,t,r){"use strict";var n=r(41),i=r(70),s=r(104);n(n.S,"Promise",{try:function(o){var a=i.f(this),u=s(o);return(u.e?a.reject:a.resolve)(u.v),a.promise}})},function(e,t,r){r(204);for(var n=r(11),i=r(31),s=r(35),o=r(13)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],f=n[c],l=f&&f.prototype;l&&!l[o]&&i(l,o,c),s[c]=s.Array}},function(e,t,r){t=e.exports=r(112),t.log=s,t.formatArgs=i,t.save=o,t.load=a,t.useColors=n,t.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:u(),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 n(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(c){try{return JSON.stringify(c)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function i(c){var f=this.useColors;if(c[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+c[0]+(f?"%c ":" ")+"+"+t.humanize(this.diff),!!f){var l="color: "+this.color;c.splice(1,0,l,"color: inherit");var h=0,d=0;c[0].replace(/%[a-zA-Z%]/g,function(p){p!=="%%"&&(h++,p==="%c"&&(d=h))}),c.splice(d,0,l)}}function s(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch{}}function a(){var c;try{c=t.storage.debug}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}t.enable(a());function u(){try{return window.localStorage}catch{}}},function(e,t,r){typeof process>"u"||process.type==="renderer"?e.exports=r(211):e.exports=r(213)},function(e,t,r){var n=r(79),i=r(2);t=e.exports=r(112),t.init=h,t.log=c,t.formatArgs=a,t.save=f,t.load=l,t.useColors=o,t.colors=[6,2,3,4,5,1];try{var s=r(239);s&&s.level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(function(d){return/^debug_/i.test(d)}).reduce(function(d,p){var y=p.substring(6).toLowerCase().replace(/_([a-z])/g,function(O,S){return S.toUpperCase()}),m=process.env[p];return/^(yes|on|true|enabled)$/i.test(m)?m=!0:/^(no|off|false|disabled)$/i.test(m)?m=!1:m==="null"?m=null:m=Number(m),d[y]=m,d},{});function o(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:n.isatty(process.stderr.fd)}t.formatters.o=function(d){return this.inspectOpts.colors=this.useColors,i.inspect(d,this.inspectOpts).split(`
94
- `).map(function(p){return p.trim()}).join(" ")},t.formatters.O=function(d){return this.inspectOpts.colors=this.useColors,i.inspect(d,this.inspectOpts)};function a(d){var p=this.namespace,y=this.useColors;if(y){var m=this.color,O="\x1B[3"+(m<8?m:"8;5;"+m),S=" "+O+";1m"+p+" \x1B[0m";d[0]=S+d[0].split(`
89
+ `)]}function g(C){return C.includes($)&&C.includes(k)&&C.includes(D)}function v(C,E){let w=new b(C,E);return w.next(),w.parse()}function A(C,E){let w=x(C);try{return{type:"merge",object:Object.assign({},v(w[0],E),v(w[1],E))}}catch(T){if(T instanceof SyntaxError)return{type:"conflict",object:{}};throw T}}}),,,(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n;function i(){return n=s(r(20))}function s(u){return u&&u.__esModule?u:{default:u}}let o=r(212)("yarn");class a{constructor(c,f=1/0){this.concurrencyQueue=[],this.maxConcurrency=f,this.runningCount=0,this.warnedStuck=!1,this.alias=c,this.first=!0,this.running=(0,(n||i()).default)(),this.queue=(0,(n||i()).default)(),this.stuckTick=this.stuckTick.bind(this)}stillActive(){this.stuckTimer&&clearTimeout(this.stuckTimer),this.stuckTimer=setTimeout(this.stuckTick,5e3),this.stuckTimer.unref&&this.stuckTimer.unref()}stuckTick(){this.runningCount===1&&(this.warnedStuck=!0,o(`The ${JSON.stringify(this.alias)} blocking queue may be stuck. 5 seconds without any activity with 1 worker: ${Object.keys(this.running)[0]}`))}push(c,f){return this.first?this.first=!1:this.stillActive(),new Promise((l,h)=>{(this.queue[c]=this.queue[c]||[]).push({factory:f,resolve:l,reject:h}),this.running[c]||this.shift(c)})}shift(c){this.running[c]&&(delete this.running[c],this.runningCount--,this.stuckTimer&&(clearTimeout(this.stuckTimer),this.stuckTimer=null),this.warnedStuck&&(this.warnedStuck=!1,o(`${JSON.stringify(this.alias)} blocking queue finally resolved. Nothing to worry about.`)));let f=this.queue[c];if(!f)return;var l=f.shift();let h=l.resolve,d=l.reject,p=l.factory;f.length||delete this.queue[c];let y=()=>{this.shift(c),this.shiftConcurrencyQueue()},m=()=>{this.running[c]=!0,this.runningCount++,p().then(function(P){return h(P),y(),null}).catch(function(P){d(P),y()})};this.maybePushConcurrencyQueue(m)}maybePushConcurrencyQueue(c){this.runningCount<this.maxConcurrency?c():this.concurrencyQueue.push(c)}shiftConcurrencyQueue(){if(this.runningCount<this.maxConcurrency){let c=this.concurrencyQueue.shift();c&&c()}}}t.default=a}),(function(e,t){e.exports=function(r){try{return!!r()}catch{return!0}}}),,,,,,,,,,,,,,,(function(e,t,r){var n=r(47),i=r(13)("toStringTag"),s=n((function(){return arguments})())=="Arguments",o=function(a,u){try{return a[u]}catch{}};e.exports=function(a){var u,c,f;return a===void 0?"Undefined":a===null?"Null":typeof(c=o(u=Object(a),i))=="string"?c:s?n(u):(f=n(u))=="Object"&&typeof u.callee=="function"?"Arguments":f}}),(function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")}),(function(e,t,r){var n=r(11).document;e.exports=n&&n.documentElement}),(function(e,t,r){"use strict";var n=r(69),i=r(41),s=r(197),o=r(31),a=r(35),u=r(188),c=r(71),f=r(194),l=r(13)("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",y="values",m=function(){return this};e.exports=function(P,S,L,O,b,_,D){u(L,S,O);var k=function(U){if(!h&&U in v)return v[U];switch(U){case p:return function(){return new L(this,U)};case y:return function(){return new L(this,U)}}return function(){return new L(this,U)}},$=S+" Iterator",x=b==y,g=!1,v=P.prototype,A=v[l]||v[d]||b&&v[b],C=A||k(b),E=b?x?k("entries"):C:void 0,w=S=="Array"&&v.entries||A,T,N,M;if(w&&(M=f(w.call(new P)),M!==Object.prototype&&M.next&&(c(M,$,!0),!n&&typeof M[l]!="function"&&o(M,l,m))),x&&A&&A.name!==y&&(g=!0,C=function(){return A.call(this)}),(!n||D)&&(h||g||!v[l])&&o(v,l,C),a[S]=C,a[$]=m,b)if(T={values:x?C:k(y),keys:_?C:k(p),entries:E},D)for(N in T)N in v||s(v,N,T[N]);else i(i.P+i.F*(h||g),S,T);return T}}),(function(e,t){e.exports=function(r){try{return{e:!1,v:r()}}catch(n){return{e:!0,v:n}}}}),(function(e,t,r){var n=r(27),i=r(34),s=r(70);e.exports=function(o,a){if(n(o),i(a)&&a.constructor===o)return a;var u=s.f(o),c=u.resolve;return c(a),u.promise}}),(function(e,t){e.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}}),(function(e,t,r){var n=r(23),i=r(11),s="__core-js_shared__",o=i[s]||(i[s]={});(e.exports=function(a,u){return o[a]||(o[a]=u!==void 0?u:{})})("versions",[]).push({version:n.version,mode:r(69)?"pure":"global",copyright:"\xA9 2018 Denis Pushkarev (zloirock.ru)"})}),(function(e,t,r){var n=r(27),i=r(46),s=r(13)("species");e.exports=function(o,a){var u=n(o).constructor,c;return u===void 0||(c=n(u)[s])==null?a:i(c)}}),(function(e,t,r){var n=r(48),i=r(185),s=r(102),o=r(68),a=r(11),u=a.process,c=a.setImmediate,f=a.clearImmediate,l=a.MessageChannel,h=a.Dispatch,d=0,p={},y="onreadystatechange",m,P,S,L=function(){var b=+this;if(p.hasOwnProperty(b)){var _=p[b];delete p[b],_()}},O=function(b){L.call(b.data)};(!c||!f)&&(c=function(_){for(var D=[],k=1;arguments.length>k;)D.push(arguments[k++]);return p[++d]=function(){i(typeof _=="function"?_:Function(_),D)},m(d),d},f=function(_){delete p[_]},r(47)(u)=="process"?m=function(b){u.nextTick(n(L,b,1))}:h&&h.now?m=function(b){h.now(n(L,b,1))}:l?(P=new l,S=P.port2,P.port1.onmessage=O,m=n(S.postMessage,S,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(m=function(b){a.postMessage(b+"","*")},a.addEventListener("message",O,!1)):y in o("script")?m=function(b){s.appendChild(o("script"))[y]=function(){s.removeChild(this),L.call(b)}}:m=function(b){setTimeout(n(L,b,1),0)}),e.exports={set:c,clear:f}}),(function(e,t,r){var n=r(73),i=Math.min;e.exports=function(s){return s>0?i(n(s),9007199254740991):0}}),(function(e,t){var r=0,n=Math.random();e.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++r+n).toString(36))}}),(function(e,t,r){t=e.exports=i.debug=i.default=i,t.coerce=c,t.disable=a,t.enable=o,t.enabled=u,t.humanize=r(229),t.instances=[],t.names=[],t.skips=[],t.formatters={};function n(f){var l=0,h;for(h in f)l=(l<<5)-l+f.charCodeAt(h),l|=0;return t.colors[Math.abs(l)%t.colors.length]}function i(f){var l;function h(){if(h.enabled){var d=h,p=+new Date,y=p-(l||p);d.diff=y,d.prev=l,d.curr=p,l=p;for(var m=new Array(arguments.length),P=0;P<m.length;P++)m[P]=arguments[P];m[0]=t.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");var S=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,function(O,b){if(O==="%%")return O;S++;var _=t.formatters[b];if(typeof _=="function"){var D=m[S];O=_.call(d,D),m.splice(S,1),S--}return O}),t.formatArgs.call(d,m);var L=h.log||t.log||console.log.bind(console);L.apply(d,m)}}return h.namespace=f,h.enabled=t.enabled(f),h.useColors=t.useColors(),h.color=n(f),h.destroy=s,typeof t.init=="function"&&t.init(h),t.instances.push(h),h}function s(){var f=t.instances.indexOf(this);return f!==-1?(t.instances.splice(f,1),!0):!1}function o(f){t.save(f),t.names=[],t.skips=[];var l,h=(typeof f=="string"?f:"").split(/[\s,]+/),d=h.length;for(l=0;l<d;l++)h[l]&&(f=h[l].replace(/\*/g,".*?"),f[0]==="-"?t.skips.push(new RegExp("^"+f.substr(1)+"$")):t.names.push(new RegExp("^"+f+"$")));for(l=0;l<t.instances.length;l++){var p=t.instances[l];p.enabled=t.enabled(p.namespace)}}function a(){t.enable("")}function u(f){if(f[f.length-1]==="*")return!0;var l,h;for(l=0,h=t.skips.length;l<h;l++)if(t.skips[l].test(f))return!1;for(l=0,h=t.names.length;l<h;l++)if(t.names[l].test(f))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}}),,(function(e,t,r){e.exports=f,f.realpath=f,f.sync=l,f.realpathSync=l,f.monkeypatch=h,f.unmonkeypatch=d;var n=r(3),i=n.realpath,s=n.realpathSync,o=process.version,a=/^v[0-5]\./.test(o),u=r(217);function c(p){return p&&p.syscall==="realpath"&&(p.code==="ELOOP"||p.code==="ENOMEM"||p.code==="ENAMETOOLONG")}function f(p,y,m){if(a)return i(p,y,m);typeof y=="function"&&(m=y,y=null),i(p,y,function(P,S){c(P)?u.realpath(p,y,m):m(P,S)})}function l(p,y){if(a)return s(p,y);try{return s(p,y)}catch(m){if(c(m))return u.realpathSync(p,y);throw m}}function h(){n.realpath=f,n.realpathSync=l}function d(){n.realpath=i,n.realpathSync=s}}),(function(e,t,r){t.alphasort=c,t.alphasorti=u,t.setopts=h,t.ownProp=n,t.makeAbs=y,t.finish=d,t.mark=p,t.isIgnored=m,t.childrenIgnored=P;function n(S,L){return Object.prototype.hasOwnProperty.call(S,L)}var i=r(0),s=r(60),o=r(76),a=s.Minimatch;function u(S,L){return S.toLowerCase().localeCompare(L.toLowerCase())}function c(S,L){return S.localeCompare(L)}function f(S,L){S.ignore=L.ignore||[],Array.isArray(S.ignore)||(S.ignore=[S.ignore]),S.ignore.length&&(S.ignore=S.ignore.map(l))}function l(S){var L=null;if(S.slice(-3)==="/**"){var O=S.replace(/(\/\*\*)+$/,"");L=new a(O,{dot:!0})}return{matcher:new a(S,{dot:!0}),gmatcher:L}}function h(S,L,O){if(O||(O={}),O.matchBase&&L.indexOf("/")===-1){if(O.noglobstar)throw new Error("base matching requires globstar");L="**/"+L}S.silent=!!O.silent,S.pattern=L,S.strict=O.strict!==!1,S.realpath=!!O.realpath,S.realpathCache=O.realpathCache||Object.create(null),S.follow=!!O.follow,S.dot=!!O.dot,S.mark=!!O.mark,S.nodir=!!O.nodir,S.nodir&&(S.mark=!0),S.sync=!!O.sync,S.nounique=!!O.nounique,S.nonull=!!O.nonull,S.nosort=!!O.nosort,S.nocase=!!O.nocase,S.stat=!!O.stat,S.noprocess=!!O.noprocess,S.absolute=!!O.absolute,S.maxLength=O.maxLength||1/0,S.cache=O.cache||Object.create(null),S.statCache=O.statCache||Object.create(null),S.symlinks=O.symlinks||Object.create(null),f(S,O),S.changedCwd=!1;var b=process.cwd();n(O,"cwd")?(S.cwd=i.resolve(O.cwd),S.changedCwd=S.cwd!==b):S.cwd=b,S.root=O.root||i.resolve(S.cwd,"/"),S.root=i.resolve(S.root),process.platform==="win32"&&(S.root=S.root.replace(/\\/g,"/")),S.cwdAbs=o(S.cwd)?S.cwd:y(S,S.cwd),process.platform==="win32"&&(S.cwdAbs=S.cwdAbs.replace(/\\/g,"/")),S.nomount=!!O.nomount,O.nonegate=!0,O.nocomment=!0,S.minimatch=new a(L,O),S.options=S.minimatch.options}function d(S){for(var L=S.nounique,O=L?[]:Object.create(null),b=0,_=S.matches.length;b<_;b++){var D=S.matches[b];if(!D||Object.keys(D).length===0){if(S.nonull){var k=S.minimatch.globSet[b];L?O.push(k):O[k]=!0}}else{var $=Object.keys(D);L?O.push.apply(O,$):$.forEach(function(x){O[x]=!0})}}if(L||(O=Object.keys(O)),S.nosort||(O=O.sort(S.nocase?u:c)),S.mark){for(var b=0;b<O.length;b++)O[b]=S._mark(O[b]);S.nodir&&(O=O.filter(function(x){var g=!/\/$/.test(x),v=S.cache[x]||S.cache[y(S,x)];return g&&v&&(g=v!=="DIR"&&!Array.isArray(v)),g}))}S.ignore.length&&(O=O.filter(function(x){return!m(S,x)})),S.found=O}function p(S,L){var O=y(S,L),b=S.cache[O],_=L;if(b){var D=b==="DIR"||Array.isArray(b),k=L.slice(-1)==="/";if(D&&!k?_+="/":!D&&k&&(_=_.slice(0,-1)),_!==L){var $=y(S,_);S.statCache[$]=S.statCache[O],S.cache[$]=S.cache[O]}}return _}function y(S,L){var O=L;return L.charAt(0)==="/"?O=i.join(S.root,L):o(L)||L===""?O=L:S.changedCwd?O=i.resolve(S.cwd,L):O=i.resolve(L),process.platform==="win32"&&(O=O.replace(/\\/g,"/")),O}function m(S,L){return S.ignore.length?S.ignore.some(function(O){return O.matcher.match(L)||!!(O.gmatcher&&O.gmatcher.match(L))}):!1}function P(S,L){return S.ignore.length?S.ignore.some(function(O){return!!(O.gmatcher&&O.gmatcher.match(L))}):!1}}),(function(e,t,r){var n=r(0),i=r(3),s=parseInt("0777",8);e.exports=o.mkdirp=o.mkdirP=o;function o(a,u,c,f){typeof u=="function"?(c=u,u={}):(!u||typeof u!="object")&&(u={mode:u});var l=u.mode,h=u.fs||i;l===void 0&&(l=s&~process.umask()),f||(f=null);var d=c||function(){};a=n.resolve(a),h.mkdir(a,l,function(p){if(!p)return f=f||a,d(null,f);switch(p.code){case"ENOENT":o(n.dirname(a),u,function(y,m){y?d(y,m):o(a,u,d,m)});break;default:h.stat(a,function(y,m){y||!m.isDirectory()?d(p,f):d(null,f)});break}})}o.sync=function a(u,c,f){(!c||typeof c!="object")&&(c={mode:c});var l=c.mode,h=c.fs||i;l===void 0&&(l=s&~process.umask()),f||(f=null),u=n.resolve(u);try{h.mkdirSync(u,l),f=f||u}catch(p){switch(p.code){case"ENOENT":f=a(n.dirname(u),c,f),a(u,c,f);break;default:var d;try{d=h.statSync(u)}catch{throw p}if(!d.isDirectory())throw p;break}}return f}}),,,,,,(function(e,t,r){"use strict";e.exports=n=>{if(typeof n!="string")throw new TypeError("Expected a string, got "+typeof n);return n.charCodeAt(0)===65279?n.slice(1):n}}),(function(e,t){e.exports=r;function r(n,i){if(n&&i)return r(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(o){s[o]=n[o]}),s;function s(){for(var o=new Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];var u=n.apply(this,o),c=o[o.length-1];return typeof u=="function"&&u!==c&&Object.keys(c).forEach(function(f){u[f]=c[f]}),u}}}),,,,,,,,(function(e,t,r){var n=r(47);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(i){return n(i)=="String"?i.split(""):Object(i)}}),(function(e,t,r){var n=r(195),i=r(101);e.exports=Object.keys||function(o){return n(o,i)}}),(function(e,t,r){var n=r(67);e.exports=function(i){return Object(n(i))}}),,,,,,,,,,,,(function(e,t){e.exports={name:"yarn",installationMethod:"unknown",version:"1.10.0-0",license:"BSD-2-Clause",preferGlobal:!0,description:"\u{1F4E6}\u{1F408} Fast, reliable, and secure dependency management.",dependencies:{"@zkochan/cmd-shim":"^2.2.4","babel-runtime":"^6.26.0",bytes:"^3.0.0",camelcase:"^4.0.0",chalk:"^2.1.0",commander:"^2.9.0",death:"^1.0.0",debug:"^3.0.0","deep-equal":"^1.0.1","detect-indent":"^5.0.0",dnscache:"^1.0.1",glob:"^7.1.1","gunzip-maybe":"^1.4.0","hash-for-dep":"^1.2.3","imports-loader":"^0.8.0",ini:"^1.3.4",inquirer:"^3.0.1",invariant:"^2.2.0","is-builtin-module":"^2.0.0","is-ci":"^1.0.10","is-webpack-bundle":"^1.0.0",leven:"^2.0.0","loud-rejection":"^1.2.0",micromatch:"^2.3.11",mkdirp:"^0.5.1","node-emoji":"^1.6.1","normalize-url":"^2.0.0","npm-logical-tree":"^1.2.1","object-path":"^0.11.2","proper-lockfile":"^2.0.0",puka:"^1.0.0",read:"^1.0.7",request:"^2.87.0","request-capture-har":"^1.2.2",rimraf:"^2.5.0",semver:"^5.1.0",ssri:"^5.3.0","strip-ansi":"^4.0.0","strip-bom":"^3.0.0","tar-fs":"^1.16.0","tar-stream":"^1.6.1",uuid:"^3.0.1","v8-compile-cache":"^2.0.0","validate-npm-package-license":"^3.0.3",yn:"^2.0.0"},devDependencies:{"babel-core":"^6.26.0","babel-eslint":"^7.2.3","babel-loader":"^6.2.5","babel-plugin-array-includes":"^2.0.3","babel-plugin-transform-builtin-extend":"^1.1.2","babel-plugin-transform-inline-imports-commonjs":"^1.0.0","babel-plugin-transform-runtime":"^6.4.3","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-preset-stage-0":"^6.0.0",babylon:"^6.5.0",commitizen:"^2.9.6","cz-conventional-changelog":"^2.0.0",eslint:"^4.3.0","eslint-config-fb-strict":"^22.0.0","eslint-plugin-babel":"^5.0.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-jasmine":"^2.6.2","eslint-plugin-jest":"^21.0.0","eslint-plugin-jsx-a11y":"^6.0.2","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","eslint-plugin-relay":"^0.0.24","eslint-plugin-yarn-internal":"file:scripts/eslint-rules",execa:"^0.10.0","flow-bin":"^0.66.0","git-release-notes":"^3.0.0",gulp:"^3.9.0","gulp-babel":"^7.0.0","gulp-if":"^2.0.1","gulp-newer":"^1.0.0","gulp-plumber":"^1.0.1","gulp-sourcemaps":"^2.2.0","gulp-util":"^3.0.7","gulp-watch":"^5.0.0",jest:"^22.4.4",jsinspect:"^0.12.6",minimatch:"^3.0.4","mock-stdin":"^0.3.0",prettier:"^1.5.2",temp:"^0.8.3",webpack:"^2.1.0-beta.25",yargs:"^6.3.0"},resolutions:{sshpk:"^1.14.2"},engines:{node:">=4.0.0"},repository:"yarnpkg/yarn",bin:{yarn:"./bin/yarn.js",yarnpkg:"./bin/yarn.js"},scripts:{build:"gulp build","build-bundle":"node ./scripts/build-webpack.js","build-chocolatey":"powershell ./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash ./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat",changelog:"git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect ./src",lint:"eslint . && flow check","pkg-tests":"yarn --cwd packages/pkg-tests jest yarn.test.js",prettier:"eslint src __tests__ --fix","release-branch":"./scripts/release-branch.sh",test:"yarn lint && yarn test-only","test-only":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --verbose","test-coverage":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose",watch:"gulp watch",commit:"git-cz"},jest:{collectCoverageFrom:["src/**/*.js"],testEnvironment:"node",modulePathIgnorePatterns:["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],testPathIgnorePatterns:["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},config:{commitizen:{path:"./node_modules/cz-conventional-changelog"}}}}),,,,,(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n;function i(){return n=r(12)}var s;function o(){return s=r(6)}var a;function u(){return a=r(145)}let c=process.version;function f(m){return m.indexOf("true")===0||m.indexOf("false")===0||/[:\s\n\\",\[\]]/g.test(m)||/^[0-9]/g.test(m)||!/^[a-zA-Z]/g.test(m)}function l(m){return typeof m=="boolean"||typeof m=="number"||f(m)?JSON.stringify(m):m}let h={name:1,version:2,uid:3,resolved:4,integrity:5,registry:6,dependencies:7};function d(m,P){return h[m]||h[P]?(h[m]||100)>(h[P]||100)?1:-1:(0,(n||i()).sortAlpha)(m,P)}function p(m,P){if(typeof m!="object")throw new TypeError;let S=P.indent,L=[],O=Object.keys(m).sort(d),b=[];for(let _=0;_<O.length;_++){let D=O[_],k=m[D];if(k==null||b.indexOf(D)>=0)continue;let $=[D];if(typeof k=="object")for(let g=_+1;g<O.length;g++){let v=O[g];k===m[v]&&$.push(v)}let x=$.sort((n||i()).sortAlpha).map(l).join(", ");if(typeof k=="string"||typeof k=="boolean"||typeof k=="number")L.push(`${x} ${l(k)}`);else if(typeof k=="object")L.push(`${x}:
90
+ ${p(k,{indent:S+" "})}`+(P.topLevel?`
91
+ `:""));else throw new TypeError;b=b.concat($)}return S+L.join(`
92
+ ${S}`)}function y(m,P,S){let L=p(m,{indent:"",topLevel:!0});if(P)return L;let O=[];return O.push("# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."),O.push(`# yarn lockfile v${(s||o()).LOCKFILE_VERSION}`),S&&(O.push(`# yarn v${(a||u()).version}`),O.push(`# node ${c}`)),O.push(`
93
+ `),O.push(L),O.join(`
94
+ `)}}),,,,,,,,,,,,,,(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileDatesEqual=t.copyFile=t.unlink=void 0;var n;function i(){return n=f(r(1))}let s=(()=>{var D=(0,(n||i()).default)(function*(k,$,x){let g=k===void 0,v=k||-1;if(l===void 0){let A=yield p($);l=_(A.mtime,x.mtime)}if(!l){if(g)try{v=yield y($,"a",x.mode)}catch{try{v=yield y($,"r",x.mode)}catch{return}}try{v&&(yield m(v,x.atime,x.mtime))}catch{}finally{g&&v&&(yield d(v))}}});return function($,x,g){return D.apply(this,arguments)}})();var o;function a(){return o=f(r(3))}var u;function c(){return u=r(40)}function f(D){return D&&D.__esModule?D:{default:D}}let l,h=(0,(u||c()).promisify)((o||a()).default.readFile),d=(0,(u||c()).promisify)((o||a()).default.close),p=(0,(u||c()).promisify)((o||a()).default.lstat),y=(0,(u||c()).promisify)((o||a()).default.open),m=(0,(u||c()).promisify)((o||a()).default.futimes),P=(0,(u||c()).promisify)((o||a()).default.write),S=t.unlink=(0,(u||c()).promisify)(r(233)),L=t.copyFile=(()=>{var D=(0,(n||i()).default)(function*(k,$){try{yield S(k.dest),yield O(k.src,k.dest,0,k)}finally{$&&$()}});return function($,x){return D.apply(this,arguments)}})(),O=(D,k,$,x)=>(o||a()).default.copyFile?new Promise((g,v)=>(o||a()).default.copyFile(D,k,$,A=>{A?v(A):s(void 0,k,x).then(()=>g()).catch(C=>v(C))})):b(D,k,$,x),b=(()=>{var D=(0,(n||i()).default)(function*(k,$,x,g){let v=yield y($,"w",g.mode);try{let A=yield h(k);yield P(v,A,0,A.length),yield s(v,$,g)}finally{yield d(v)}});return function($,x,g,v){return D.apply(this,arguments)}})(),_=t.fileDatesEqual=(D,k)=>{let $=D.getTime(),x=k.getTime();if(process.platform!=="win32")return $===x;if(Math.abs($-x)<=1)return!0;let g=Math.floor($/1e3),v=Math.floor(x/1e3);return $-g*1e3===0||x-v*1e3===0?g===v:$===x}}),,,,,(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFakeRoot=i,t.isRootUser=s;function n(){return process.platform!=="win32"&&process.getuid?process.getuid():null}t.default=s(n())&&!i();function i(){return!!process.env.FAKEROOTKEY}function s(o){return o===0}}),,(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDataDir=a,t.getCacheDir=u,t.getConfigDir=c;let n=r(0),i=r(45).default,s=n.join(i,".config","yarn"),o=n.join(i,".cache","yarn");function a(){if(process.platform==="win32"){let l=f();return l==null?s:n.join(l,"Data")}else return process.env.XDG_DATA_HOME?n.join(process.env.XDG_DATA_HOME,"yarn"):s}function u(){return process.platform==="win32"?n.join(f()||n.join(i,"AppData","Local","Yarn"),"Cache"):process.env.XDG_CACHE_HOME?n.join(process.env.XDG_CACHE_HOME,"yarn"):process.platform==="darwin"?n.join(i,"Library","Caches","Yarn"):o}function c(){if(process.platform==="win32"){let l=f();return l==null?s:n.join(l,"Config")}else return process.env.XDG_CONFIG_HOME?n.join(process.env.XDG_CONFIG_HOME,"yarn"):s}function f(){return process.env.LOCALAPPDATA?n.join(process.env.LOCALAPPDATA,"Yarn"):null}}),,(function(e,t,r){e.exports={default:r(179),__esModule:!0}}),(function(e,t,r){"use strict";e.exports=n;function n(o,a,u){o instanceof RegExp&&(o=i(o,u)),a instanceof RegExp&&(a=i(a,u));var c=s(o,a,u);return c&&{start:c[0],end:c[1],pre:u.slice(0,c[0]),body:u.slice(c[0]+o.length,c[1]),post:u.slice(c[1]+a.length)}}function i(o,a){var u=a.match(o);return u?u[0]:null}n.range=s;function s(o,a,u){var c,f,l,h,d,p=u.indexOf(o),y=u.indexOf(a,p+1),m=p;if(p>=0&&y>0){for(c=[],l=u.length;m>=0&&!d;)m==p?(c.push(m),p=u.indexOf(o,m+1)):c.length==1?d=[c.pop(),y]:(f=c.pop(),f<l&&(l=f,h=y),y=u.indexOf(a,m+1)),m=p<y&&p>=0?p:y;c.length&&(d=[l,h])}return d}}),(function(e,t,r){var n=r(178),i=r(174);e.exports=p;var s="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function f(b){return parseInt(b,10)==b?parseInt(b,10):b.charCodeAt(0)}function l(b){return b.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)}function h(b){return b.split(s).join("\\").split(o).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function d(b){if(!b)return[""];var _=[],D=i("{","}",b);if(!D)return b.split(",");var k=D.pre,$=D.body,x=D.post,g=k.split(",");g[g.length-1]+="{"+$+"}";var v=d(x);return x.length&&(g[g.length-1]+=v.shift(),g.push.apply(g,v)),_.push.apply(_,g),_}function p(b){return b?(b.substr(0,2)==="{}"&&(b="\\{\\}"+b.substr(2)),O(l(b),!0).map(h)):[]}function y(b){return b}function m(b){return"{"+b+"}"}function P(b){return/^-?0\d/.test(b)}function S(b,_){return b<=_}function L(b,_){return b>=_}function O(b,_){var D=[],k=i("{","}",b);if(!k||/\$$/.test(k.pre))return[b];var $=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(k.body),x=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(k.body),g=$||x,v=k.body.indexOf(",")>=0;if(!g&&!v)return k.post.match(/,.*\}/)?(b=k.pre+"{"+k.body+a+k.post,O(b)):[b];var A;if(g)A=k.body.split(/\.\./);else if(A=d(k.body),A.length===1&&(A=O(A[0],!1).map(m),A.length===1)){var E=k.post.length?O(k.post,!1):[""];return E.map(function(ce){return k.pre+A[0]+ce})}var C=k.pre,E=k.post.length?O(k.post,!1):[""],w;if(g){var T=f(A[0]),N=f(A[1]),M=Math.max(A[0].length,A[1].length),U=A.length==3?Math.abs(f(A[2])):1,V=S,J=N<T;J&&(U*=-1,V=L);var he=A.some(P);w=[];for(var q=T;V(q,N);q+=U){var H;if(x)H=String.fromCharCode(q),H==="\\"&&(H="");else if(H=String(q),he){var W=M-H.length;if(W>0){var Z=new Array(W+1).join("0");q<0?H="-"+Z+H.slice(1):H=Z+H}}w.push(H)}}else w=n(A,function(Y){return O(Y,!1)});for(var ee=0;ee<w.length;ee++)for(var G=0;G<E.length;G++){var ne=C+w[ee]+E[G];(!_||g||ne)&&D.push(ne)}return D}}),(function(e,t,r){"use strict";function n(i){let s=!1,o=!1,a=!1;for(let u=0;u<i.length;u++){let c=i[u];s&&/[a-zA-Z]/.test(c)&&c.toUpperCase()===c?(i=i.substr(0,u)+"-"+i.substr(u),s=!1,a=o,o=!0,u++):o&&a&&/[a-zA-Z]/.test(c)&&c.toLowerCase()===c?(i=i.substr(0,u-1)+"-"+i.substr(u-1),a=o,o=!1,s=!0):(s=c.toLowerCase()===c,a=o,o=c.toUpperCase()===c)}return i}e.exports=function(i){return arguments.length>1?i=Array.from(arguments).map(o=>o.trim()).filter(o=>o.length).join("-"):i=i.trim(),i.length===0?"":i.length===1?i.toLowerCase():/^[a-z0-9]+$/.test(i)?i:(i!==i.toLowerCase()&&(i=n(i)),i.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(o,a)=>a.toUpperCase()))}}),,(function(e,t){e.exports=function(n,i){for(var s=[],o=0;o<n.length;o++){var a=i(n[o],o);r(a)?s.push.apply(s,a):s.push(a)}return s};var r=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"}}),(function(e,t,r){r(205),r(207),r(210),r(206),r(208),r(209),e.exports=r(23).Promise}),(function(e,t){e.exports=function(){}}),(function(e,t){e.exports=function(r,n,i,s){if(!(r instanceof n)||s!==void 0&&s in r)throw TypeError(i+": incorrect invocation!");return r}}),(function(e,t,r){var n=r(74),i=r(110),s=r(200);e.exports=function(o){return function(a,u,c){var f=n(a),l=i(f.length),h=s(c,l),d;if(o&&u!=u){for(;l>h;)if(d=f[h++],d!=d)return!0}else for(;l>h;h++)if((o||h in f)&&f[h]===u)return o||h||0;return!o&&-1}}}),(function(e,l,r){var n=r(48),i=r(187),s=r(186),o=r(27),a=r(110),u=r(203),c={},f={},l=e.exports=function(h,d,p,y,m){var P=m?function(){return h}:u(h),S=n(p,y,d?2:1),L=0,O,b,_,D;if(typeof P!="function")throw TypeError(h+" is not iterable!");if(s(P)){for(O=a(h.length);O>L;L++)if(D=d?S(o(b=h[L])[0],b[1]):S(h[L]),D===c||D===f)return D}else for(_=P.call(h);!(b=_.next()).done;)if(D=i(_,S,b.value,d),D===c||D===f)return D};l.BREAK=c,l.RETURN=f}),(function(e,t,r){e.exports=!r(33)&&!r(85)(function(){return Object.defineProperty(r(68)("div"),"a",{get:function(){return 7}}).a!=7})}),(function(e,t){e.exports=function(r,n,i){var s=i===void 0;switch(n.length){case 0:return s?r():r.call(i);case 1:return s?r(n[0]):r.call(i,n[0]);case 2:return s?r(n[0],n[1]):r.call(i,n[0],n[1]);case 3:return s?r(n[0],n[1],n[2]):r.call(i,n[0],n[1],n[2]);case 4:return s?r(n[0],n[1],n[2],n[3]):r.call(i,n[0],n[1],n[2],n[3])}return r.apply(i,n)}}),(function(e,t,r){var n=r(35),i=r(13)("iterator"),s=Array.prototype;e.exports=function(o){return o!==void 0&&(n.Array===o||s[i]===o)}}),(function(e,t,r){var n=r(27);e.exports=function(i,s,o,a){try{return a?s(n(o)[0],o[1]):s(o)}catch(c){var u=i.return;throw u!==void 0&&n(u.call(i)),c}}}),(function(e,t,r){"use strict";var n=r(192),i=r(106),s=r(71),o={};r(31)(o,r(13)("iterator"),function(){return this}),e.exports=function(a,u,c){a.prototype=n(o,{next:i(1,c)}),s(a,u+" Iterator")}}),(function(e,t,r){var n=r(13)("iterator"),i=!1;try{var s=[7][n]();s.return=function(){i=!0},Array.from(s,function(){throw 2})}catch{}e.exports=function(o,a){if(!a&&!i)return!1;var u=!1;try{var c=[7],f=c[n]();f.next=function(){return{done:u=!0}},c[n]=function(){return f},o(c)}catch{}return u}}),(function(e,t){e.exports=function(r,n){return{value:n,done:!!r}}}),(function(e,t,r){var n=r(11),i=r(109).set,s=n.MutationObserver||n.WebKitMutationObserver,o=n.process,a=n.Promise,u=r(47)(o)=="process";e.exports=function(){var c,f,l,h=function(){var m,P;for(u&&(m=o.domain)&&m.exit();c;){P=c.fn,c=c.next;try{P()}catch(S){throw c?l():f=void 0,S}}f=void 0,m&&m.enter()};if(u)l=function(){o.nextTick(h)};else if(s&&!(n.navigator&&n.navigator.standalone)){var d=!0,p=document.createTextNode("");new s(h).observe(p,{characterData:!0}),l=function(){p.data=d=!d}}else if(a&&a.resolve){var y=a.resolve(void 0);l=function(){y.then(h)}}else l=function(){i.call(n,h)};return function(m){var P={fn:m,next:void 0};f&&(f.next=P),c||(c=P,l()),f=P}}}),(function(e,t,r){var n=r(27),i=r(193),s=r(101),o=r(72)("IE_PROTO"),a=function(){},u="prototype",c=function(){var f=r(68)("iframe"),l=s.length,h="<",d=">",p;for(f.style.display="none",r(102).appendChild(f),f.src="javascript:",p=f.contentWindow.document,p.open(),p.write(h+"script"+d+"document.F=Object"+h+"/script"+d),p.close(),c=p.F;l--;)delete c[u][s[l]];return c()};e.exports=Object.create||function(l,h){var d;return l!==null?(a[u]=n(l),d=new a,a[u]=null,d[o]=l):d=c(),h===void 0?d:i(d,h)}}),(function(e,t,r){var n=r(50),i=r(27),s=r(132);e.exports=r(33)?Object.defineProperties:function(a,u){i(a);for(var c=s(u),f=c.length,l=0,h;f>l;)n.f(a,h=c[l++],u[h]);return a}}),(function(e,t,r){var n=r(49),i=r(133),s=r(72)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(a){return a=i(a),n(a,s)?a[s]:typeof a.constructor=="function"&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?o:null}}),(function(e,t,r){var n=r(49),i=r(74),s=r(182)(!1),o=r(72)("IE_PROTO");e.exports=function(a,u){var c=i(a),f=0,l=[],h;for(h in c)h!=o&&n(c,h)&&l.push(h);for(;u.length>f;)n(c,h=u[f++])&&(~s(l,h)||l.push(h));return l}}),(function(e,t,r){var n=r(31);e.exports=function(i,s,o){for(var a in s)o&&i[a]?i[a]=s[a]:n(i,a,s[a]);return i}}),(function(e,t,r){e.exports=r(31)}),(function(e,t,r){"use strict";var n=r(11),i=r(23),s=r(50),o=r(33),a=r(13)("species");e.exports=function(u){var c=typeof i[u]=="function"?i[u]:n[u];o&&c&&!c[a]&&s.f(c,a,{configurable:!0,get:function(){return this}})}}),(function(e,t,r){var n=r(73),i=r(67);e.exports=function(s){return function(o,a){var u=String(i(o)),c=n(a),f=u.length,l,h;return c<0||c>=f?s?"":void 0:(l=u.charCodeAt(c),l<55296||l>56319||c+1===f||(h=u.charCodeAt(c+1))<56320||h>57343?s?u.charAt(c):l:s?u.slice(c,c+2):(l-55296<<10)+(h-56320)+65536)}}}),(function(e,t,r){var n=r(73),i=Math.max,s=Math.min;e.exports=function(o,a){return o=n(o),o<0?i(o+a,0):s(o,a)}}),(function(e,t,r){var n=r(34);e.exports=function(i,s){if(!n(i))return i;var o,a;if(s&&typeof(o=i.toString)=="function"&&!n(a=o.call(i))||typeof(o=i.valueOf)=="function"&&!n(a=o.call(i))||!s&&typeof(o=i.toString)=="function"&&!n(a=o.call(i)))return a;throw TypeError("Can't convert object to primitive value")}}),(function(e,t,r){var n=r(11),i=n.navigator;e.exports=i&&i.userAgent||""}),(function(e,t,r){var n=r(100),i=r(13)("iterator"),s=r(35);e.exports=r(23).getIteratorMethod=function(o){if(o!=null)return o[i]||o["@@iterator"]||s[n(o)]}}),(function(e,t,r){"use strict";var n=r(180),i=r(190),s=r(35),o=r(74);e.exports=r(103)(Array,"Array",function(a,u){this._t=o(a),this._i=0,this._k=u},function(){var a=this._t,u=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,i(1)):u=="keys"?i(0,c):u=="values"?i(0,a[c]):i(0,[c,a[c]])},"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")}),(function(e,t){}),(function(e,t,r){"use strict";var n=r(69),i=r(11),s=r(48),o=r(100),a=r(41),u=r(34),c=r(46),f=r(181),l=r(183),h=r(108),d=r(109).set,p=r(191)(),y=r(70),m=r(104),P=r(202),S=r(105),L="Promise",O=i.TypeError,b=i.process,_=b&&b.versions,D=_&&_.v8||"",k=i[L],$=o(b)=="process",x=function(){},g,v,A,C,E=v=y.f,w=!!(function(){try{var q=k.resolve(1),H=(q.constructor={})[r(13)("species")]=function(W){W(x,x)};return($||typeof PromiseRejectionEvent=="function")&&q.then(x)instanceof H&&D.indexOf("6.6")!==0&&P.indexOf("Chrome/66")===-1}catch{}})(),T=function(q){var H;return u(q)&&typeof(H=q.then)=="function"?H:!1},N=function(q,H){if(!q._n){q._n=!0;var W=q._c;p(function(){for(var Z=q._v,ee=q._s==1,G=0,ne=function(Y){var ce=ee?Y.ok:Y.fail,Ae=Y.resolve,Fe=Y.reject,I=Y.domain,j,K,z;try{ce?(ee||(q._h==2&&V(q),q._h=1),ce===!0?j=Z:(I&&I.enter(),j=ce(Z),I&&(I.exit(),z=!0)),j===Y.promise?Fe(O("Promise-chain cycle")):(K=T(j))?K.call(j,Ae,Fe):Ae(j)):Fe(Z)}catch(B){I&&!z&&I.exit(),Fe(B)}};W.length>G;)ne(W[G++]);q._c=[],q._n=!1,H&&!q._h&&M(q)})}},M=function(q){d.call(i,function(){var H=q._v,W=U(q),Z,ee,G;if(W&&(Z=m(function(){$?b.emit("unhandledRejection",H,q):(ee=i.onunhandledrejection)?ee({promise:q,reason:H}):(G=i.console)&&G.error&&G.error("Unhandled promise rejection",H)}),q._h=$||U(q)?2:1),q._a=void 0,W&&Z.e)throw Z.v})},U=function(q){return q._h!==1&&(q._a||q._c).length===0},V=function(q){d.call(i,function(){var H;$?b.emit("rejectionHandled",q):(H=i.onrejectionhandled)&&H({promise:q,reason:q._v})})},J=function(q){var H=this;H._d||(H._d=!0,H=H._w||H,H._v=q,H._s=2,H._a||(H._a=H._c.slice()),N(H,!0))},he=function(q){var H=this,W;if(!H._d){H._d=!0,H=H._w||H;try{if(H===q)throw O("Promise can't be resolved itself");(W=T(q))?p(function(){var Z={_w:H,_d:!1};try{W.call(q,s(he,Z,1),s(J,Z,1))}catch(ee){J.call(Z,ee)}}):(H._v=q,H._s=1,N(H,!1))}catch(Z){J.call({_w:H,_d:!1},Z)}}};w||(k=function(H){f(this,k,L,"_h"),c(H),g.call(this);try{H(s(he,this,1),s(J,this,1))}catch(W){J.call(this,W)}},g=function(H){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},g.prototype=r(196)(k.prototype,{then:function(H,W){var Z=E(h(this,k));return Z.ok=typeof H=="function"?H:!0,Z.fail=typeof W=="function"&&W,Z.domain=$?b.domain:void 0,this._c.push(Z),this._a&&this._a.push(Z),this._s&&N(this,!1),Z.promise},catch:function(q){return this.then(void 0,q)}}),A=function(){var q=new g;this.promise=q,this.resolve=s(he,q,1),this.reject=s(J,q,1)},y.f=E=function(q){return q===k||q===C?new A(q):v(q)}),a(a.G+a.W+a.F*!w,{Promise:k}),r(71)(k,L),r(198)(L),C=r(23)[L],a(a.S+a.F*!w,L,{reject:function(H){var W=E(this),Z=W.reject;return Z(H),W.promise}}),a(a.S+a.F*(n||!w),L,{resolve:function(H){return S(n&&this===C?k:this,H)}}),a(a.S+a.F*!(w&&r(189)(function(q){k.all(q).catch(x)})),L,{all:function(H){var W=this,Z=E(W),ee=Z.resolve,G=Z.reject,ne=m(function(){var Y=[],ce=0,Ae=1;l(H,!1,function(Fe){var I=ce++,j=!1;Y.push(void 0),Ae++,W.resolve(Fe).then(function(K){j||(j=!0,Y[I]=K,--Ae||ee(Y))},G)}),--Ae||ee(Y)});return ne.e&&G(ne.v),Z.promise},race:function(H){var W=this,Z=E(W),ee=Z.reject,G=m(function(){l(H,!1,function(ne){W.resolve(ne).then(Z.resolve,ee)})});return G.e&&ee(G.v),Z.promise}})}),(function(e,t,r){"use strict";var n=r(199)(!0);r(103)(String,"String",function(i){this._t=String(i),this._i=0},function(){var i=this._t,s=this._i,o;return s>=i.length?{value:void 0,done:!0}:(o=n(i,s),this._i+=o.length,{value:o,done:!1})})}),(function(e,t,r){"use strict";var n=r(41),i=r(23),s=r(11),o=r(108),a=r(105);n(n.P+n.R,"Promise",{finally:function(u){var c=o(this,i.Promise||s.Promise),f=typeof u=="function";return this.then(f?function(l){return a(c,u()).then(function(){return l})}:u,f?function(l){return a(c,u()).then(function(){throw l})}:u)}})}),(function(e,t,r){"use strict";var n=r(41),i=r(70),s=r(104);n(n.S,"Promise",{try:function(o){var a=i.f(this),u=s(o);return(u.e?a.reject:a.resolve)(u.v),a.promise}})}),(function(e,t,r){r(204);for(var n=r(11),i=r(31),s=r(35),o=r(13)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],f=n[c],l=f&&f.prototype;l&&!l[o]&&i(l,o,c),s[c]=s.Array}}),(function(e,t,r){t=e.exports=r(112),t.log=s,t.formatArgs=i,t.save=o,t.load=a,t.useColors=n,t.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:u(),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 n(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(c){try{return JSON.stringify(c)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function i(c){var f=this.useColors;if(c[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+c[0]+(f?"%c ":" ")+"+"+t.humanize(this.diff),!!f){var l="color: "+this.color;c.splice(1,0,l,"color: inherit");var h=0,d=0;c[0].replace(/%[a-zA-Z%]/g,function(p){p!=="%%"&&(h++,p==="%c"&&(d=h))}),c.splice(d,0,l)}}function s(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch{}}function a(){var c;try{c=t.storage.debug}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}t.enable(a());function u(){try{return window.localStorage}catch{}}}),(function(e,t,r){typeof process>"u"||process.type==="renderer"?e.exports=r(211):e.exports=r(213)}),(function(e,t,r){var n=r(79),i=r(2);t=e.exports=r(112),t.init=h,t.log=c,t.formatArgs=a,t.save=f,t.load=l,t.useColors=o,t.colors=[6,2,3,4,5,1];try{var s=r(239);s&&s.level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(function(d){return/^debug_/i.test(d)}).reduce(function(d,p){var y=p.substring(6).toLowerCase().replace(/_([a-z])/g,function(P,S){return S.toUpperCase()}),m=process.env[p];return/^(yes|on|true|enabled)$/i.test(m)?m=!0:/^(no|off|false|disabled)$/i.test(m)?m=!1:m==="null"?m=null:m=Number(m),d[y]=m,d},{});function o(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:n.isatty(process.stderr.fd)}t.formatters.o=function(d){return this.inspectOpts.colors=this.useColors,i.inspect(d,this.inspectOpts).split(`
95
+ `).map(function(p){return p.trim()}).join(" ")},t.formatters.O=function(d){return this.inspectOpts.colors=this.useColors,i.inspect(d,this.inspectOpts)};function a(d){var p=this.namespace,y=this.useColors;if(y){var m=this.color,P="\x1B[3"+(m<8?m:"8;5;"+m),S=" "+P+";1m"+p+" \x1B[0m";d[0]=S+d[0].split(`
95
96
  `).join(`
96
- `+S),d.push(O+"m+"+t.humanize(this.diff)+"\x1B[0m")}else d[0]=u()+p+" "+d[0]}function u(){return t.inspectOpts.hideDate?"":new Date().toISOString()+" "}function c(){return process.stderr.write(i.format.apply(i,arguments)+`
97
- `)}function f(d){d==null?delete process.env.DEBUG:process.env.DEBUG=d}function l(){return process.env.DEBUG}function h(d){d.inspectOpts={};for(var p=Object.keys(t.inspectOpts),y=0;y<p.length;y++)d.inspectOpts[p[y]]=t.inspectOpts[p[y]]}t.enable(l())},,,,function(e,t,r){var n=r(0),i=process.platform==="win32",s=r(3),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(){var h;if(o){var d=new Error;h=p}else h=y;return h;function p(m){m&&(d.message=m.message,m=d,y(m))}function y(m){if(m){if(process.throwDeprecation)throw m;if(!process.noDeprecation){var O="fs: missing callback "+(m.stack||m.message);process.traceDeprecation?console.trace(O):console.error(O)}}}}function u(h){return typeof h=="function"?h:a()}var c=n.normalize;if(i)var f=/(.*?)(?:[\/\\]+|$)/g;else var f=/(.*?)(?:[\/]+|$)/g;if(i)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else var l=/^[\/]*/;t.realpathSync=function(d,p){if(d=n.resolve(d),p&&Object.prototype.hasOwnProperty.call(p,d))return p[d];var y=d,m={},O={},S,k,P,b;_();function _(){var v=l.exec(d);S=v[0].length,k=v[0],P=v[0],b="",i&&!O[P]&&(s.lstatSync(P),O[P]=!0)}for(;S<d.length;){f.lastIndex=S;var L=f.exec(d);if(b=k,k+=L[0],P=b+L[1],S=f.lastIndex,!(O[P]||p&&p[P]===P)){var D;if(p&&Object.prototype.hasOwnProperty.call(p,P))D=p[P];else{var $=s.lstatSync(P);if(!$.isSymbolicLink()){O[P]=!0,p&&(p[P]=P);continue}var x=null;if(!i){var g=$.dev.toString(32)+":"+$.ino.toString(32);m.hasOwnProperty(g)&&(x=m[g])}x===null&&(s.statSync(P),x=s.readlinkSync(P)),D=n.resolve(b,x),p&&(p[P]=D),i||(m[g]=x)}d=n.resolve(D,d.slice(S)),_()}}return p&&(p[y]=d),d},t.realpath=function(d,p,y){if(typeof y!="function"&&(y=u(p),p=null),d=n.resolve(d),p&&Object.prototype.hasOwnProperty.call(p,d))return process.nextTick(y.bind(null,null,p[d]));var m=d,O={},S={},k,P,b,_;L();function L(){var v=l.exec(d);k=v[0].length,P=v[0],b=v[0],_="",i&&!S[b]?s.lstat(b,function(A){if(A)return y(A);S[b]=!0,D()}):process.nextTick(D)}function D(){if(k>=d.length)return p&&(p[m]=d),y(null,d);f.lastIndex=k;var v=f.exec(d);return _=P,P+=v[0],b=_+v[1],k=f.lastIndex,S[b]||p&&p[b]===b?process.nextTick(D):p&&Object.prototype.hasOwnProperty.call(p,b)?g(p[b]):s.lstat(b,$)}function $(v,A){if(v)return y(v);if(!A.isSymbolicLink())return S[b]=!0,p&&(p[b]=b),process.nextTick(D);if(!i){var C=A.dev.toString(32)+":"+A.ino.toString(32);if(O.hasOwnProperty(C))return x(null,O[C],b)}s.stat(b,function(E){if(E)return y(E);s.readlink(b,function(w,T){i||(O[C]=T),x(w,T)})})}function x(v,A,C){if(v)return y(v);var E=n.resolve(_,A);p&&(p[C]=E),g(E)}function g(v){d=n.resolve(v,d.slice(k)),L()}}},function(e,t,r){e.exports=k,k.GlobSync=P;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(75).Glob,u=r(2),c=r(0),f=r(22),l=r(76),h=r(115),d=h.alphasort,p=h.alphasorti,y=h.setopts,m=h.ownProp,O=h.childrenIgnored,S=h.isIgnored;function k(b,_){if(typeof _=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
98
- See: https://github.com/isaacs/node-glob/issues/167`);return new P(b,_).found}function P(b,_){if(!b)throw new Error("must provide pattern");if(typeof _=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
99
- See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof P))return new P(b,_);if(y(this,b,_),this.noprocess)return this;var L=this.minimatch.set.length;this.matches=new Array(L);for(var D=0;D<L;D++)this._process(this.minimatch.set[D],D,!1);this._finish()}P.prototype._finish=function(){if(f(this instanceof P),this.realpath){var b=this;this.matches.forEach(function(_,L){var D=b.matches[L]=Object.create(null);for(var $ in _)try{$=b._makeAbs($);var x=i.realpathSync($,b.realpathCache);D[x]=!0}catch(g){if(g.syscall==="stat")D[b._makeAbs($)]=!0;else throw g}})}h.finish(this)},P.prototype._process=function(b,_,L){f(this instanceof P);for(var D=0;typeof b[D]=="string";)D++;var $;switch(D){case b.length:this._processSimple(b.join("/"),_);return;case 0:$=null;break;default:$=b.slice(0,D).join("/");break}var x=b.slice(D),g;$===null?g=".":((l($)||l(b.join("/")))&&(!$||!l($))&&($="/"+$),g=$);var v=this._makeAbs(g);if(!O(this,g)){var A=x[0]===s.GLOBSTAR;A?this._processGlobStar($,g,v,x,_,L):this._processReaddir($,g,v,x,_,L)}},P.prototype._processReaddir=function(b,_,L,D,$,x){var g=this._readdir(L,x);if(g){for(var v=D[0],A=!!this.minimatch.negate,C=v._glob,E=this.dot||C.charAt(0)===".",w=[],T=0;T<g.length;T++){var N=g[T];if(N.charAt(0)!=="."||E){var M;A&&!b?M=!N.match(v):M=N.match(v),M&&w.push(N)}}var U=w.length;if(U!==0){if(D.length===1&&!this.mark&&!this.stat){this.matches[$]||(this.matches[$]=Object.create(null));for(var T=0;T<U;T++){var N=w[T];b&&(b.slice(-1)!=="/"?N=b+"/"+N:N=b+N),N.charAt(0)==="/"&&!this.nomount&&(N=c.join(this.root,N)),this._emitMatch($,N)}return}D.shift();for(var T=0;T<U;T++){var N=w[T],V;b?V=[b,N]:V=[N],this._process(V.concat(D),$,x)}}}},P.prototype._emitMatch=function(b,_){if(!S(this,_)){var L=this._makeAbs(_);if(this.mark&&(_=this._mark(_)),this.absolute&&(_=L),!this.matches[b][_]){if(this.nodir){var D=this.cache[L];if(D==="DIR"||Array.isArray(D))return}this.matches[b][_]=!0,this.stat&&this._stat(_)}}},P.prototype._readdirInGlobStar=function(b){if(this.follow)return this._readdir(b,!1);var _,L,D;try{L=n.lstatSync(b)}catch(x){if(x.code==="ENOENT")return null}var $=L&&L.isSymbolicLink();return this.symlinks[b]=$,!$&&L&&!L.isDirectory()?this.cache[b]="FILE":_=this._readdir(b,!1),_},P.prototype._readdir=function(b,_){var L;if(_&&!m(this.symlinks,b))return this._readdirInGlobStar(b);if(m(this.cache,b)){var D=this.cache[b];if(!D||D==="FILE")return null;if(Array.isArray(D))return D}try{return this._readdirEntries(b,n.readdirSync(b))}catch($){return this._readdirError(b,$),null}},P.prototype._readdirEntries=function(b,_){if(!this.mark&&!this.stat)for(var L=0;L<_.length;L++){var D=_[L];b==="/"?D=b+D:D=b+"/"+D,this.cache[D]=!0}return this.cache[b]=_,_},P.prototype._readdirError=function(b,_){switch(_.code){case"ENOTSUP":case"ENOTDIR":var L=this._makeAbs(b);if(this.cache[L]="FILE",L===this.cwdAbs){var D=new Error(_.code+" invalid cwd "+this.cwd);throw D.path=this.cwd,D.code=_.code,D}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=!1;break;default:if(this.cache[this._makeAbs(b)]=!1,this.strict)throw _;this.silent||console.error("glob error",_);break}},P.prototype._processGlobStar=function(b,_,L,D,$,x){var g=this._readdir(L,x);if(g){var v=D.slice(1),A=b?[b]:[],C=A.concat(v);this._process(C,$,!1);var E=g.length,w=this.symlinks[L];if(!(w&&x))for(var T=0;T<E;T++){var N=g[T];if(!(N.charAt(0)==="."&&!this.dot)){var M=A.concat(g[T],v);this._process(M,$,!0);var U=A.concat(g[T],D);this._process(U,$,!0)}}}},P.prototype._processSimple=function(b,_){var L=this._stat(b);if(this.matches[_]||(this.matches[_]=Object.create(null)),!!L){if(b&&l(b)&&!this.nomount){var D=/[\/\\]$/.test(b);b.charAt(0)==="/"?b=c.join(this.root,b):(b=c.resolve(this.root,b),D&&(b+="/"))}process.platform==="win32"&&(b=b.replace(/\\/g,"/")),this._emitMatch(_,b)}},P.prototype._stat=function(b){var _=this._makeAbs(b),L=b.slice(-1)==="/";if(b.length>this.maxLength)return!1;if(!this.stat&&m(this.cache,_)){var g=this.cache[_];if(Array.isArray(g)&&(g="DIR"),!L||g==="DIR")return g;if(L&&g==="FILE")return!1}var D,$=this.statCache[_];if(!$){var x;try{x=n.lstatSync(_)}catch(v){if(v&&(v.code==="ENOENT"||v.code==="ENOTDIR"))return this.statCache[_]=!1,!1}if(x&&x.isSymbolicLink())try{$=n.statSync(_)}catch{$=x}else $=x}this.statCache[_]=$;var g=!0;return $&&(g=$.isDirectory()?"DIR":"FILE"),this.cache[_]=this.cache[_]||g,L&&g==="FILE"?!1:g},P.prototype._mark=function(b){return h.mark(this,b)},P.prototype._makeAbs=function(b){return h.makeAbs(this,b)}},,,function(e,t,r){"use strict";e.exports=function(n,i){i=i||process.argv;var s=i.indexOf("--"),o=/^--/.test(n)?"":"--",a=i.indexOf(o+n);return a!==-1&&(s!==-1?a<s:!0)}},,function(e,t,r){var n=r(123),i=Object.create(null),s=r(61);e.exports=n(o);function o(c,f){return i[c]?(i[c].push(f),null):(i[c]=[f],a(c))}function a(c){return s(function f(){var l=i[c],h=l.length,d=u(arguments);try{for(var p=0;p<h;p++)l[p].apply(null,d)}finally{l.length>h?(l.splice(0,h),process.nextTick(function(){f.apply(null,d)})):delete i[c]}})}function u(c){for(var f=c.length,l=[],h=0;h<f;h++)l[h]=c[h];return l}},function(e,t){typeof Object.create=="function"?e.exports=function(n,i){n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,i){n.super_=i;var s=function(){};s.prototype=i.prototype,n.prototype=new s,n.prototype.constructor=n}},,,function(e,t,r){e.exports=typeof r<"u"},,function(e,t){var r=1e3,n=r*60,i=n*60,s=i*24,o=s*365.25;e.exports=function(l,h){h=h||{};var d=typeof l;if(d==="string"&&l.length>0)return a(l);if(d==="number"&&isNaN(l)===!1)return h.long?c(l):u(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function a(l){if(l=String(l),!(l.length>100)){var h=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(h){var d=parseFloat(h[1]),p=(h[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return d*o;case"days":case"day":case"d":return d*s;case"hours":case"hour":case"hrs":case"hr":case"h":return d*i;case"minutes":case"minute":case"mins":case"min":case"m":return d*n;case"seconds":case"second":case"secs":case"sec":case"s":return d*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function u(l){return l>=s?Math.round(l/s)+"d":l>=i?Math.round(l/i)+"h":l>=n?Math.round(l/n)+"m":l>=r?Math.round(l/r)+"s":l+"ms"}function c(l){return f(l,s,"day")||f(l,i,"hour")||f(l,n,"minute")||f(l,r,"second")||l+" ms"}function f(l,h,d){if(!(l<h))return l<h*1.5?Math.floor(l/h)+" "+d:Math.ceil(l/h)+" "+d+"s"}},,,,function(e,t,r){e.exports=h,h.sync=S;var n=r(22),i=r(0),s=r(3),o=r(75),a=parseInt("666",8),u={nosort:!0,silent:!0},c=0,f=process.platform==="win32";function l(b){var _=["unlink","chmod","stat","lstat","rmdir","readdir"];_.forEach(function(L){b[L]=b[L]||s[L],L=L+"Sync",b[L]=b[L]||s[L]}),b.maxBusyTries=b.maxBusyTries||3,b.emfileWait=b.emfileWait||1e3,b.glob===!1&&(b.disableGlob=!0),b.disableGlob=b.disableGlob||!1,b.glob=b.glob||u}function h(b,_,L){typeof _=="function"&&(L=_,_={}),n(b,"rimraf: missing path"),n.equal(typeof b,"string","rimraf: path should be a string"),n.equal(typeof L,"function","rimraf: callback function required"),n(_,"rimraf: invalid options argument provided"),n.equal(typeof _,"object","rimraf: options should be object"),l(_);var D=0,$=null,x=0;if(_.disableGlob||!o.hasMagic(b))return v(null,[b]);_.lstat(b,function(A,C){if(!A)return v(null,[b]);o(b,_.glob,v)});function g(A){$=$||A,--x===0&&L($)}function v(A,C){if(A)return L(A);if(x=C.length,x===0)return L();C.forEach(function(E){d(E,_,function w(T){if(T){if((T.code==="EBUSY"||T.code==="ENOTEMPTY"||T.code==="EPERM")&&D<_.maxBusyTries){D++;var N=D*100;return setTimeout(function(){d(E,_,w)},N)}if(T.code==="EMFILE"&&c<_.emfileWait)return setTimeout(function(){d(E,_,w)},c++);T.code==="ENOENT"&&(T=null)}c=0,g(T)})})}}function d(b,_,L){n(b),n(_),n(typeof L=="function"),_.lstat(b,function(D,$){if(D&&D.code==="ENOENT")return L(null);if(D&&D.code==="EPERM"&&f&&p(b,_,D,L),$&&$.isDirectory())return m(b,_,D,L);_.unlink(b,function(x){if(x){if(x.code==="ENOENT")return L(null);if(x.code==="EPERM")return f?p(b,_,x,L):m(b,_,x,L);if(x.code==="EISDIR")return m(b,_,x,L)}return L(x)})})}function p(b,_,L,D){n(b),n(_),n(typeof D=="function"),L&&n(L instanceof Error),_.chmod(b,a,function($){$?D($.code==="ENOENT"?null:L):_.stat(b,function(x,g){x?D(x.code==="ENOENT"?null:L):g.isDirectory()?m(b,_,L,D):_.unlink(b,D)})})}function y(b,_,L){n(b),n(_),L&&n(L instanceof Error);try{_.chmodSync(b,a)}catch($){if($.code==="ENOENT")return;throw L}try{var D=_.statSync(b)}catch($){if($.code==="ENOENT")return;throw L}D.isDirectory()?k(b,_,L):_.unlinkSync(b)}function m(b,_,L,D){n(b),n(_),L&&n(L instanceof Error),n(typeof D=="function"),_.rmdir(b,function($){$&&($.code==="ENOTEMPTY"||$.code==="EEXIST"||$.code==="EPERM")?O(b,_,D):$&&$.code==="ENOTDIR"?D(L):D($)})}function O(b,_,L){n(b),n(_),n(typeof L=="function"),_.readdir(b,function(D,$){if(D)return L(D);var x=$.length;if(x===0)return _.rmdir(b,L);var g;$.forEach(function(v){h(i.join(b,v),_,function(A){if(!g){if(A)return L(g=A);--x===0&&_.rmdir(b,L)}})})})}function S(b,_){_=_||{},l(_),n(b,"rimraf: missing path"),n.equal(typeof b,"string","rimraf: path should be a string"),n(_,"rimraf: missing options"),n.equal(typeof _,"object","rimraf: options should be object");var L;if(_.disableGlob||!o.hasMagic(b))L=[b];else try{_.lstatSync(b),L=[b]}catch{L=o.sync(b,_.glob)}if(L.length)for(var D=0;D<L.length;D++){var b=L[D];try{var $=_.lstatSync(b)}catch(g){if(g.code==="ENOENT")return;g.code==="EPERM"&&f&&y(b,_,g)}try{$&&$.isDirectory()?k(b,_,null):_.unlinkSync(b)}catch(g){if(g.code==="ENOENT")return;if(g.code==="EPERM")return f?y(b,_,g):k(b,_,g);if(g.code!=="EISDIR")throw g;k(b,_,g)}}}function k(b,_,L){n(b),n(_),L&&n(L instanceof Error);try{_.rmdirSync(b)}catch(D){if(D.code==="ENOENT")return;if(D.code==="ENOTDIR")throw L;(D.code==="ENOTEMPTY"||D.code==="EEXIST"||D.code==="EPERM")&&P(b,_)}}function P(b,_){n(b),n(_),_.readdirSync(b).forEach(function(g){S(i.join(b,g),_)});var L=f?100:1,D=0;do{var $=!0;try{var x=_.rmdirSync(b,_);return $=!1,x}finally{if(++D<L&&$)continue}}while(!0)}},,,,,,function(e,t,r){"use strict";var n=r(221),i=function(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}},s=function(){return n("no-color")||n("no-colors")||n("color=false")?0:n("color=16m")||n("color=full")||n("color=truecolor")?3:n("color=256")?2:n("color")||n("colors")||n("color=true")||n("color=always")?1:process.stdout&&!process.stdout.isTTY?0:process.platform==="win32"?1:"CI"in process.env?"TRAVIS"in process.env||process.env.CI==="Travis"?1:0:"TEAMCITY_VERSION"in process.env?process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM==="dumb",0)}();s===0&&"FORCE_COLOR"in process.env&&(s=1),e.exports=process&&i(s)}])});var F_=F(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.queryLockFile=void 0;var Z6=Aa();function e8(e,t,r){let n=(0,Z6.nameAtVersion)(e,t);return r.object[n]}Al.queryLockFile=e8});var L_=F(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0})});var N_=F(it=>{"use strict";var T_=it&&it.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),t8=it&&it.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r8=it&&it.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&T_(t,e,r);return t8(t,e),t},n8=it&&it.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&T_(t,e,r)},I_=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(it,"__esModule",{value:!0});it.queryLockFile=it.nameAtVersion=it.parseLockFile=void 0;var bm=I_(require("fs")),i8=I_(require("path")),s8=Aa();Object.defineProperty(it,"nameAtVersion",{enumerable:!0,get:function(){return s8.nameAtVersion}});var wm=Ko(),o8=x_(),a8=O_(),k_=em(),u8=P_(),Mr={};async function c8(e){let t=(0,wm.searchUp)(["yarn.lock","common/config/rush/yarn.lock"],e);if(t){if(Mr[t])return Mr[t];let i=bm.default.readFileSync(t,"utf-8"),s=i.includes("__metadata")||bm.default.existsSync(i8.default.resolve(i.replace("yarn.lock",".yarnrc.yml"))),o={type:"success",object:{}};if(s){let a=(0,k_.readYaml)(t);o=(0,u8.parseBerryLock)(a)}else{let a=(await Promise.resolve().then(()=>r8(R_()))).parse;o=a(i)}return Mr[t]=o,o}let r=(0,wm.searchUp)(["pnpm-lock.yaml","common/config/rush/pnpm-lock.yaml"],e);if(r){if(Mr[r])return Mr[r];let i=(0,k_.readYaml)(r),s=(0,o8.parsePnpmLock)(i);return Mr[r]=s,Mr[r]}let n=(0,wm.searchUp)("package-lock.json",e);if(n){if(Mr[n])return Mr[n];let i;try{i=bm.default.readFileSync(n,"utf-8")}catch{throw new Error("Couldn't read package-lock.json")}let s=JSON.parse(i.toString());if(!s?.lockfileVersion||s.lockfileVersion<2)throw new Error(`Your package-lock.json version is not supported: lockfileVersion is ${s.lockfileVersion}. You need npm version 7 or above and package-lock version 2 or above. Please, upgrade npm or choose a different package manager.`);return Mr[n]=(0,a8.parseNpmLock)(s),Mr[n]}throw new Error("You do not have yarn.lock, pnpm-lock.yaml or package-lock.json. Please use one of these package managers.")}it.parseLockFile=c8;var l8=F_();Object.defineProperty(it,"queryLockFile",{enumerable:!0,get:function(){return l8.queryLockFile}});n8(L_(),it)});var M_=F(Ns=>{"use strict";var f8=Ns&&Ns.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ns,"__esModule",{value:!0});Ns.getScopedPackages=void 0;var $_=f8(ra());function h8(e,t){let r=Array.isArray(t)?t:Object.keys(t),n=new Set,i=e.filter(o=>o.startsWith("@")||o.startsWith("!@"));if(i.length>0){let o=(0,$_.default)(r,i,{nocase:!0});for(let a of o)n.add(a)}let s=e.filter(o=>!o.startsWith("@")&&!o.startsWith("!@"));if(s.length>0){let o=d8(r),a=(0,$_.default)(Object.keys(o),s,{nocase:!0});for(let u of a)for(let c of o[u])n.add(c)}return[...n]}Ns.getScopedPackages=h8;function d8(e){let t={};for(let r of e){let n=r.replace(/^@[^/]+\//,"");t[n]=t[n]||[],t[n].push(r)}return t}});var B_=F(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0})});var q_=F(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0})});var U_=F(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0})});var H_=F(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.findWorkspacePath=void 0;function p8(e,t){return e.find(({name:r})=>r===t)?.path}El.findWorkspacePath=p8});var Cm=F($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.getWorkspacePackagePathsAsync=$s.getWorkspacePackagePaths=void 0;var Sm=fs();function g8(e){return(0,Sm.getWorkspaceUtilities)(e)?.getWorkspacePackagePaths(e)||[]}$s.getWorkspacePackagePaths=g8;async function m8(e){let t=(0,Sm.getWorkspaceUtilities)(e);if(!t)return[];if(!t.getWorkspacePackagePathsAsync){let r=(0,Sm.getWorkspaceManagerAndRoot)(e)?.manager;throw new Error(`${e} is using ${r} which has not been converted to async yet`)}return t.getWorkspacePackagePathsAsync(e)}$s.getWorkspacePackagePathsAsync=m8});var xm=F(Ms=>{"use strict";var z_=Ms&&Ms.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ms,"__esModule",{value:!0});Ms.getPackagesByFiles=void 0;var y8=z_(ra()),v8=z_(require("path")),A8=hl();function E8(e,t,r=[],n=!1){let i=(0,A8.getWorkspaces)(e),s=new Set((0,y8.default)(t,r));t=t.filter(a=>!s.has(a));let o=new Set;for(let a of t){let u=i.filter(c=>a.indexOf(v8.default.relative(e,c.path).replace(/\\/g,"/"))===0);if(u&&u.length>0){let c=u.reduce((f,l)=>f.path.length>l.path.length?f:l,u[0]);o.add(c.name)}else if(n)return i.map(c=>c.name)}return[...o]}Ms.getPackagesByFiles=E8});var V_=F(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.getChangedPackages=js.getChangedPackagesBetweenRefs=void 0;var vn=yc(),Y_=xm();function b8(e,t,r="",n=[]){let i=[...new Set([...(0,vn.getUntrackedChanges)(e)||[],...(0,vn.getUnstagedChanges)(e)||[],...(0,vn.getChangesBetweenRefs)(t,r,[],"",e)||[],...(0,vn.getStagedChanges)(e)||[]])];return(0,Y_.getPackagesByFiles)(e,i,n,!0)}js.getChangedPackagesBetweenRefs=b8;function w8(e,t,r=[]){let n=t||(0,vn.getDefaultRemoteBranch)({cwd:e}),i=[...new Set([...(0,vn.getUntrackedChanges)(e)||[],...(0,vn.getUnstagedChanges)(e)||[],...(0,vn.getBranchChanges)(n,e)||[],...(0,vn.getStagedChanges)(e)||[]])];return(0,Y_.getPackagesByFiles)(e,i,r,!0)}js.getChangedPackages=w8});var K_=F(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.listOfWorkspacePackageNames=void 0;function S8(e){return e.map(({name:t})=>t)}bl.listOfWorkspacePackageNames=S8});var Z_=F(Zr=>{"use strict";var C8=Zr&&Zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.getAllPackageJsonFilesAsync=Zr._resetPackageJsonFilesCache=Zr.getAllPackageJsonFiles=void 0;var X_=C8(require("path")),J_=Cm(),Q_=ls(),Ii=new Map;function x8(e){if((0,Q_.isCachingEnabled)()&&Ii.has(e))return Ii.get(e);let t=(0,J_.getWorkspacePackagePaths)(e).map(r=>X_.default.join(r,"package.json"));return Ii.set(e,t),t}Zr.getAllPackageJsonFiles=x8;function O8(){Ii.clear()}Zr._resetPackageJsonFilesCache=O8;async function P8(e){if((0,Q_.isCachingEnabled)()&&Ii.has(e))return Ii.get(e);let t=(await(0,J_.getWorkspacePackagePathsAsync)(e)).map(r=>X_.default.join(r,"package.json"));return Ii.set(e,t),t}Zr.getAllPackageJsonFilesAsync=P8});var nR=F(Oe=>{"use strict";var _8=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),lt=Oe&&Oe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&_8(t,e,r)};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.getYarnWorkspaces=Oe.getYarnWorkspaceRoot=Oe.getRushWorkspaces=Oe.getRushWorkspaceRoot=Oe.getPnpmWorkspaces=Oe.getPnpmWorkspaceRoot=Oe.setCachingEnabled=void 0;lt(qS(),Oe);lt(b_(),Oe);lt(yc(),Oe);lt(C_(),Oe);var R8=ls();Object.defineProperty(Oe,"setCachingEnabled",{enumerable:!0,get:function(){return R8.setCachingEnabled}});lt(N_(),Oe);lt(Ko(),Oe);lt(M_(),Oe);lt(B_(),Oe);lt(q_(),Oe);lt(U_(),Oe);lt(H_(),Oe);lt(hl(),Oe);lt(Cm(),Oe);lt(Fd(),Oe);var eR=nm();Object.defineProperty(Oe,"getPnpmWorkspaceRoot",{enumerable:!0,get:function(){return eR.getPnpmWorkspaceRoot}});Object.defineProperty(Oe,"getPnpmWorkspaces",{enumerable:!0,get:function(){return eR.getPnpmWorkspaces}});var tR=gm();Object.defineProperty(Oe,"getRushWorkspaceRoot",{enumerable:!0,get:function(){return tR.getRushWorkspaceRoot}});Object.defineProperty(Oe,"getRushWorkspaces",{enumerable:!0,get:function(){return tR.getRushWorkspaces}});var rR=bg();Object.defineProperty(Oe,"getYarnWorkspaceRoot",{enumerable:!0,get:function(){return rR.getYarnWorkspaceRoot}});Object.defineProperty(Oe,"getYarnWorkspaces",{enumerable:!0,get:function(){return rR.getYarnWorkspaces}});lt(V_(),Oe);lt(xm(),Oe);lt(K_(),Oe);lt(Z_(),Oe)});var sY={};kF(sY,{run:()=>CF});module.exports=TF(sY);var Xs=require("os");var Ra=require("os"),sn=()=>(0,Ra.platform)()==="linux"&&(0,Ra.release)().toLowerCase().includes("wsl");var Fa=()=>{let e={win32:["x64"],darwin:["x64","arm64"]};return sn()||e[(0,Xs.platform)()]&&e[(0,Xs.platform)()].includes((0,Xs.arch)())};var IF=[!0,"true","TRUE",1],Zm=()=>{let e=process.env.CODESPACES||"";return IF.includes(e)};var Da=require("os");var qi=(e,t,r)=>{let n=new Map;n.set("success",e.success?"true":"false"),n.set("automaticSuccess",e.automaticSuccess?"true":"false"),n.set("error",e.error||""),n.set("platform",sn()?"wsl":(0,Da.platform)()),n.set("arch",(0,Da.arch)()),r&&(r.LogEvent("node-azure-auth",n),t&&r.flush())};var Ul=require("os");var ja=require("assert");var NF={right:WF,center:qF},$F=0,La=1,MF=2,ka=3,Yl=class{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
100
- `).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&Jt.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Jt.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,o)=>({text:s.trim(),padding:this.measurePadding(s),width:o===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=Jt.stripAnsi(t);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t)}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
101
- `)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((o,a)=>{let{width:u}=t[a],c=this.negatePadding(t[a]),f=o;if(c>Jt.stringWidth(o)&&(f+=" ".repeat(c-Jt.stringWidth(o))),t[a].align&&t[a].align!=="left"&&this.wrap){let h=NF[t[a].align];f=h(f,c),Jt.stringWidth(f)<c&&(f+=" ".repeat((u||0)-Jt.stringWidth(f)-1))}let l=t[a].padding||[0,0,0,0];l[ka]&&(s+=" ".repeat(l[ka])),s+=e0(t[a],f,"| "),s+=f,s+=e0(t[a],f," |"),l[La]&&(s+=" ".repeat(l[La])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,s=r.text,o=Jt.stringWidth(s.trimRight());return r.span?this.wrap?i<o?t:(r.hidden=!0,s.trimRight()+" ".repeat(i-o)+t.trimLeft()):(r.hidden=!0,s+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((s,o)=>{s.width=n[o],this.wrap?i=Jt.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
97
+ `+S),d.push(P+"m+"+t.humanize(this.diff)+"\x1B[0m")}else d[0]=u()+p+" "+d[0]}function u(){return t.inspectOpts.hideDate?"":new Date().toISOString()+" "}function c(){return process.stderr.write(i.format.apply(i,arguments)+`
98
+ `)}function f(d){d==null?delete process.env.DEBUG:process.env.DEBUG=d}function l(){return process.env.DEBUG}function h(d){d.inspectOpts={};for(var p=Object.keys(t.inspectOpts),y=0;y<p.length;y++)d.inspectOpts[p[y]]=t.inspectOpts[p[y]]}t.enable(l())}),,,,(function(e,t,r){var n=r(0),i=process.platform==="win32",s=r(3),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(){var h;if(o){var d=new Error;h=p}else h=y;return h;function p(m){m&&(d.message=m.message,m=d,y(m))}function y(m){if(m){if(process.throwDeprecation)throw m;if(!process.noDeprecation){var P="fs: missing callback "+(m.stack||m.message);process.traceDeprecation?console.trace(P):console.error(P)}}}}function u(h){return typeof h=="function"?h:a()}var c=n.normalize;if(i)var f=/(.*?)(?:[\/\\]+|$)/g;else var f=/(.*?)(?:[\/]+|$)/g;if(i)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else var l=/^[\/]*/;t.realpathSync=function(d,p){if(d=n.resolve(d),p&&Object.prototype.hasOwnProperty.call(p,d))return p[d];var y=d,m={},P={},S,L,O,b;_();function _(){var v=l.exec(d);S=v[0].length,L=v[0],O=v[0],b="",i&&!P[O]&&(s.lstatSync(O),P[O]=!0)}for(;S<d.length;){f.lastIndex=S;var D=f.exec(d);if(b=L,L+=D[0],O=b+D[1],S=f.lastIndex,!(P[O]||p&&p[O]===O)){var k;if(p&&Object.prototype.hasOwnProperty.call(p,O))k=p[O];else{var $=s.lstatSync(O);if(!$.isSymbolicLink()){P[O]=!0,p&&(p[O]=O);continue}var x=null;if(!i){var g=$.dev.toString(32)+":"+$.ino.toString(32);m.hasOwnProperty(g)&&(x=m[g])}x===null&&(s.statSync(O),x=s.readlinkSync(O)),k=n.resolve(b,x),p&&(p[O]=k),i||(m[g]=x)}d=n.resolve(k,d.slice(S)),_()}}return p&&(p[y]=d),d},t.realpath=function(d,p,y){if(typeof y!="function"&&(y=u(p),p=null),d=n.resolve(d),p&&Object.prototype.hasOwnProperty.call(p,d))return process.nextTick(y.bind(null,null,p[d]));var m=d,P={},S={},L,O,b,_;D();function D(){var v=l.exec(d);L=v[0].length,O=v[0],b=v[0],_="",i&&!S[b]?s.lstat(b,function(A){if(A)return y(A);S[b]=!0,k()}):process.nextTick(k)}function k(){if(L>=d.length)return p&&(p[m]=d),y(null,d);f.lastIndex=L;var v=f.exec(d);return _=O,O+=v[0],b=_+v[1],L=f.lastIndex,S[b]||p&&p[b]===b?process.nextTick(k):p&&Object.prototype.hasOwnProperty.call(p,b)?g(p[b]):s.lstat(b,$)}function $(v,A){if(v)return y(v);if(!A.isSymbolicLink())return S[b]=!0,p&&(p[b]=b),process.nextTick(k);if(!i){var C=A.dev.toString(32)+":"+A.ino.toString(32);if(P.hasOwnProperty(C))return x(null,P[C],b)}s.stat(b,function(E){if(E)return y(E);s.readlink(b,function(w,T){i||(P[C]=T),x(w,T)})})}function x(v,A,C){if(v)return y(v);var E=n.resolve(_,A);p&&(p[C]=E),g(E)}function g(v){d=n.resolve(v,d.slice(L)),D()}}}),(function(e,t,r){e.exports=L,L.GlobSync=O;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(75).Glob,u=r(2),c=r(0),f=r(22),l=r(76),h=r(115),d=h.alphasort,p=h.alphasorti,y=h.setopts,m=h.ownProp,P=h.childrenIgnored,S=h.isIgnored;function L(b,_){if(typeof _=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
99
+ See: https://github.com/isaacs/node-glob/issues/167`);return new O(b,_).found}function O(b,_){if(!b)throw new Error("must provide pattern");if(typeof _=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
100
+ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof O))return new O(b,_);if(y(this,b,_),this.noprocess)return this;var D=this.minimatch.set.length;this.matches=new Array(D);for(var k=0;k<D;k++)this._process(this.minimatch.set[k],k,!1);this._finish()}O.prototype._finish=function(){if(f(this instanceof O),this.realpath){var b=this;this.matches.forEach(function(_,D){var k=b.matches[D]=Object.create(null);for(var $ in _)try{$=b._makeAbs($);var x=i.realpathSync($,b.realpathCache);k[x]=!0}catch(g){if(g.syscall==="stat")k[b._makeAbs($)]=!0;else throw g}})}h.finish(this)},O.prototype._process=function(b,_,D){f(this instanceof O);for(var k=0;typeof b[k]=="string";)k++;var $;switch(k){case b.length:this._processSimple(b.join("/"),_);return;case 0:$=null;break;default:$=b.slice(0,k).join("/");break}var x=b.slice(k),g;$===null?g=".":((l($)||l(b.join("/")))&&(!$||!l($))&&($="/"+$),g=$);var v=this._makeAbs(g);if(!P(this,g)){var A=x[0]===s.GLOBSTAR;A?this._processGlobStar($,g,v,x,_,D):this._processReaddir($,g,v,x,_,D)}},O.prototype._processReaddir=function(b,_,D,k,$,x){var g=this._readdir(D,x);if(g){for(var v=k[0],A=!!this.minimatch.negate,C=v._glob,E=this.dot||C.charAt(0)===".",w=[],T=0;T<g.length;T++){var N=g[T];if(N.charAt(0)!=="."||E){var M;A&&!b?M=!N.match(v):M=N.match(v),M&&w.push(N)}}var U=w.length;if(U!==0){if(k.length===1&&!this.mark&&!this.stat){this.matches[$]||(this.matches[$]=Object.create(null));for(var T=0;T<U;T++){var N=w[T];b&&(b.slice(-1)!=="/"?N=b+"/"+N:N=b+N),N.charAt(0)==="/"&&!this.nomount&&(N=c.join(this.root,N)),this._emitMatch($,N)}return}k.shift();for(var T=0;T<U;T++){var N=w[T],V;b?V=[b,N]:V=[N],this._process(V.concat(k),$,x)}}}},O.prototype._emitMatch=function(b,_){if(!S(this,_)){var D=this._makeAbs(_);if(this.mark&&(_=this._mark(_)),this.absolute&&(_=D),!this.matches[b][_]){if(this.nodir){var k=this.cache[D];if(k==="DIR"||Array.isArray(k))return}this.matches[b][_]=!0,this.stat&&this._stat(_)}}},O.prototype._readdirInGlobStar=function(b){if(this.follow)return this._readdir(b,!1);var _,D,k;try{D=n.lstatSync(b)}catch(x){if(x.code==="ENOENT")return null}var $=D&&D.isSymbolicLink();return this.symlinks[b]=$,!$&&D&&!D.isDirectory()?this.cache[b]="FILE":_=this._readdir(b,!1),_},O.prototype._readdir=function(b,_){var D;if(_&&!m(this.symlinks,b))return this._readdirInGlobStar(b);if(m(this.cache,b)){var k=this.cache[b];if(!k||k==="FILE")return null;if(Array.isArray(k))return k}try{return this._readdirEntries(b,n.readdirSync(b))}catch($){return this._readdirError(b,$),null}},O.prototype._readdirEntries=function(b,_){if(!this.mark&&!this.stat)for(var D=0;D<_.length;D++){var k=_[D];b==="/"?k=b+k:k=b+"/"+k,this.cache[k]=!0}return this.cache[b]=_,_},O.prototype._readdirError=function(b,_){switch(_.code){case"ENOTSUP":case"ENOTDIR":var D=this._makeAbs(b);if(this.cache[D]="FILE",D===this.cwdAbs){var k=new Error(_.code+" invalid cwd "+this.cwd);throw k.path=this.cwd,k.code=_.code,k}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=!1;break;default:if(this.cache[this._makeAbs(b)]=!1,this.strict)throw _;this.silent||console.error("glob error",_);break}},O.prototype._processGlobStar=function(b,_,D,k,$,x){var g=this._readdir(D,x);if(g){var v=k.slice(1),A=b?[b]:[],C=A.concat(v);this._process(C,$,!1);var E=g.length,w=this.symlinks[D];if(!(w&&x))for(var T=0;T<E;T++){var N=g[T];if(!(N.charAt(0)==="."&&!this.dot)){var M=A.concat(g[T],v);this._process(M,$,!0);var U=A.concat(g[T],k);this._process(U,$,!0)}}}},O.prototype._processSimple=function(b,_){var D=this._stat(b);if(this.matches[_]||(this.matches[_]=Object.create(null)),!!D){if(b&&l(b)&&!this.nomount){var k=/[\/\\]$/.test(b);b.charAt(0)==="/"?b=c.join(this.root,b):(b=c.resolve(this.root,b),k&&(b+="/"))}process.platform==="win32"&&(b=b.replace(/\\/g,"/")),this._emitMatch(_,b)}},O.prototype._stat=function(b){var _=this._makeAbs(b),D=b.slice(-1)==="/";if(b.length>this.maxLength)return!1;if(!this.stat&&m(this.cache,_)){var g=this.cache[_];if(Array.isArray(g)&&(g="DIR"),!D||g==="DIR")return g;if(D&&g==="FILE")return!1}var k,$=this.statCache[_];if(!$){var x;try{x=n.lstatSync(_)}catch(v){if(v&&(v.code==="ENOENT"||v.code==="ENOTDIR"))return this.statCache[_]=!1,!1}if(x&&x.isSymbolicLink())try{$=n.statSync(_)}catch{$=x}else $=x}this.statCache[_]=$;var g=!0;return $&&(g=$.isDirectory()?"DIR":"FILE"),this.cache[_]=this.cache[_]||g,D&&g==="FILE"?!1:g},O.prototype._mark=function(b){return h.mark(this,b)},O.prototype._makeAbs=function(b){return h.makeAbs(this,b)}}),,,(function(e,t,r){"use strict";e.exports=function(n,i){i=i||process.argv;var s=i.indexOf("--"),o=/^--/.test(n)?"":"--",a=i.indexOf(o+n);return a!==-1&&(s!==-1?a<s:!0)}}),,(function(e,t,r){var n=r(123),i=Object.create(null),s=r(61);e.exports=n(o);function o(c,f){return i[c]?(i[c].push(f),null):(i[c]=[f],a(c))}function a(c){return s(function f(){var l=i[c],h=l.length,d=u(arguments);try{for(var p=0;p<h;p++)l[p].apply(null,d)}finally{l.length>h?(l.splice(0,h),process.nextTick(function(){f.apply(null,d)})):delete i[c]}})}function u(c){for(var f=c.length,l=[],h=0;h<f;h++)l[h]=c[h];return l}}),(function(e,t){typeof Object.create=="function"?e.exports=function(n,i){n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,i){n.super_=i;var s=function(){};s.prototype=i.prototype,n.prototype=new s,n.prototype.constructor=n}}),,,(function(e,t,r){e.exports=typeof r<"u"}),,(function(e,t){var r=1e3,n=r*60,i=n*60,s=i*24,o=s*365.25;e.exports=function(l,h){h=h||{};var d=typeof l;if(d==="string"&&l.length>0)return a(l);if(d==="number"&&isNaN(l)===!1)return h.long?c(l):u(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function a(l){if(l=String(l),!(l.length>100)){var h=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(h){var d=parseFloat(h[1]),p=(h[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return d*o;case"days":case"day":case"d":return d*s;case"hours":case"hour":case"hrs":case"hr":case"h":return d*i;case"minutes":case"minute":case"mins":case"min":case"m":return d*n;case"seconds":case"second":case"secs":case"sec":case"s":return d*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function u(l){return l>=s?Math.round(l/s)+"d":l>=i?Math.round(l/i)+"h":l>=n?Math.round(l/n)+"m":l>=r?Math.round(l/r)+"s":l+"ms"}function c(l){return f(l,s,"day")||f(l,i,"hour")||f(l,n,"minute")||f(l,r,"second")||l+" ms"}function f(l,h,d){if(!(l<h))return l<h*1.5?Math.floor(l/h)+" "+d:Math.ceil(l/h)+" "+d+"s"}}),,,,(function(e,t,r){e.exports=h,h.sync=S;var n=r(22),i=r(0),s=r(3),o=r(75),a=parseInt("666",8),u={nosort:!0,silent:!0},c=0,f=process.platform==="win32";function l(b){var _=["unlink","chmod","stat","lstat","rmdir","readdir"];_.forEach(function(D){b[D]=b[D]||s[D],D=D+"Sync",b[D]=b[D]||s[D]}),b.maxBusyTries=b.maxBusyTries||3,b.emfileWait=b.emfileWait||1e3,b.glob===!1&&(b.disableGlob=!0),b.disableGlob=b.disableGlob||!1,b.glob=b.glob||u}function h(b,_,D){typeof _=="function"&&(D=_,_={}),n(b,"rimraf: missing path"),n.equal(typeof b,"string","rimraf: path should be a string"),n.equal(typeof D,"function","rimraf: callback function required"),n(_,"rimraf: invalid options argument provided"),n.equal(typeof _,"object","rimraf: options should be object"),l(_);var k=0,$=null,x=0;if(_.disableGlob||!o.hasMagic(b))return v(null,[b]);_.lstat(b,function(A,C){if(!A)return v(null,[b]);o(b,_.glob,v)});function g(A){$=$||A,--x===0&&D($)}function v(A,C){if(A)return D(A);if(x=C.length,x===0)return D();C.forEach(function(E){d(E,_,function w(T){if(T){if((T.code==="EBUSY"||T.code==="ENOTEMPTY"||T.code==="EPERM")&&k<_.maxBusyTries){k++;var N=k*100;return setTimeout(function(){d(E,_,w)},N)}if(T.code==="EMFILE"&&c<_.emfileWait)return setTimeout(function(){d(E,_,w)},c++);T.code==="ENOENT"&&(T=null)}c=0,g(T)})})}}function d(b,_,D){n(b),n(_),n(typeof D=="function"),_.lstat(b,function(k,$){if(k&&k.code==="ENOENT")return D(null);if(k&&k.code==="EPERM"&&f&&p(b,_,k,D),$&&$.isDirectory())return m(b,_,k,D);_.unlink(b,function(x){if(x){if(x.code==="ENOENT")return D(null);if(x.code==="EPERM")return f?p(b,_,x,D):m(b,_,x,D);if(x.code==="EISDIR")return m(b,_,x,D)}return D(x)})})}function p(b,_,D,k){n(b),n(_),n(typeof k=="function"),D&&n(D instanceof Error),_.chmod(b,a,function($){$?k($.code==="ENOENT"?null:D):_.stat(b,function(x,g){x?k(x.code==="ENOENT"?null:D):g.isDirectory()?m(b,_,D,k):_.unlink(b,k)})})}function y(b,_,D){n(b),n(_),D&&n(D instanceof Error);try{_.chmodSync(b,a)}catch($){if($.code==="ENOENT")return;throw D}try{var k=_.statSync(b)}catch($){if($.code==="ENOENT")return;throw D}k.isDirectory()?L(b,_,D):_.unlinkSync(b)}function m(b,_,D,k){n(b),n(_),D&&n(D instanceof Error),n(typeof k=="function"),_.rmdir(b,function($){$&&($.code==="ENOTEMPTY"||$.code==="EEXIST"||$.code==="EPERM")?P(b,_,k):$&&$.code==="ENOTDIR"?k(D):k($)})}function P(b,_,D){n(b),n(_),n(typeof D=="function"),_.readdir(b,function(k,$){if(k)return D(k);var x=$.length;if(x===0)return _.rmdir(b,D);var g;$.forEach(function(v){h(i.join(b,v),_,function(A){if(!g){if(A)return D(g=A);--x===0&&_.rmdir(b,D)}})})})}function S(b,_){_=_||{},l(_),n(b,"rimraf: missing path"),n.equal(typeof b,"string","rimraf: path should be a string"),n(_,"rimraf: missing options"),n.equal(typeof _,"object","rimraf: options should be object");var D;if(_.disableGlob||!o.hasMagic(b))D=[b];else try{_.lstatSync(b),D=[b]}catch{D=o.sync(b,_.glob)}if(D.length)for(var k=0;k<D.length;k++){var b=D[k];try{var $=_.lstatSync(b)}catch(g){if(g.code==="ENOENT")return;g.code==="EPERM"&&f&&y(b,_,g)}try{$&&$.isDirectory()?L(b,_,null):_.unlinkSync(b)}catch(g){if(g.code==="ENOENT")return;if(g.code==="EPERM")return f?y(b,_,g):L(b,_,g);if(g.code!=="EISDIR")throw g;L(b,_,g)}}}function L(b,_,D){n(b),n(_),D&&n(D instanceof Error);try{_.rmdirSync(b)}catch(k){if(k.code==="ENOENT")return;if(k.code==="ENOTDIR")throw D;(k.code==="ENOTEMPTY"||k.code==="EEXIST"||k.code==="EPERM")&&O(b,_)}}function O(b,_){n(b),n(_),_.readdirSync(b).forEach(function(g){S(i.join(b,g),_)});var D=f?100:1,k=0;do{var $=!0;try{var x=_.rmdirSync(b,_);return $=!1,x}finally{if(++k<D&&$)continue}}while(!0)}}),,,,,,(function(e,t,r){"use strict";var n=r(221),i=function(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}},s=(function(){return n("no-color")||n("no-colors")||n("color=false")?0:n("color=16m")||n("color=full")||n("color=truecolor")?3:n("color=256")?2:n("color")||n("colors")||n("color=true")||n("color=always")?1:process.stdout&&!process.stdout.isTTY?0:process.platform==="win32"?1:"CI"in process.env?"TRAVIS"in process.env||process.env.CI==="Travis"?1:0:"TEAMCITY_VERSION"in process.env?process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM==="dumb",0)})();s===0&&"FORCE_COLOR"in process.env&&(s=1),e.exports=process&&i(s)})])});var z_=F(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.queryLockFile=void 0;var k8=wa();function D8(e,t,r){let n=(0,k8.nameAtVersion)(e,t);return r.object[n]}xl.queryLockFile=D8});var V_=F(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0})});var Q_=F(at=>{"use strict";var J_=at&&at.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),L8=at&&at.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),T8=at&&at.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&J_(t,e,r);return L8(t,e),t},I8=at&&at.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&J_(t,e,r)},X_=at&&at.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(at,"__esModule",{value:!0});at.queryLockFile=at.nameAtVersion=at.parseLockFile=void 0;var Dm=X_(require("fs")),N8=X_(require("path")),$8=wa();Object.defineProperty(at,"nameAtVersion",{enumerable:!0,get:function(){return $8.nameAtVersion}});var Lm=Qo(),M8=W_(),j8=q_(),K_=cl(),B8=G_(),Mr={};async function W8(e){let t=(0,Lm.searchUp)(["yarn.lock","common/config/rush/yarn.lock"],e);if(t){if(Mr[t])return Mr[t];let i=Dm.default.readFileSync(t,"utf-8"),s=i.includes("__metadata")||Dm.default.existsSync(N8.default.resolve(i.replace("yarn.lock",".yarnrc.yml"))),o={type:"success",object:{}};if(s){let a=(0,K_.readYaml)(t);o=(0,B8.parseBerryLock)(a)}else{let a=(await Promise.resolve().then(()=>T8(H_()))).parse;o=a(i)}return Mr[t]=o,o}let r=(0,Lm.searchUp)(["pnpm-lock.yaml","common/config/rush/pnpm-lock.yaml"],e);if(r){if(Mr[r])return Mr[r];let i=(0,K_.readYaml)(r),s=(0,M8.parsePnpmLock)(i);return Mr[r]=s,Mr[r]}let n=(0,Lm.searchUp)("package-lock.json",e);if(n){if(Mr[n])return Mr[n];let i;try{i=Dm.default.readFileSync(n,"utf-8")}catch{throw new Error("Couldn't read package-lock.json")}let s=JSON.parse(i.toString());if(!s?.lockfileVersion||s.lockfileVersion<2)throw new Error(`Your package-lock.json version is not supported: lockfileVersion is ${s.lockfileVersion}. You need npm version 7 or above and package-lock version 2 or above. Please, upgrade npm or choose a different package manager.`);return Mr[n]=(0,j8.parseNpmLock)(s),Mr[n]}throw new Error("You do not have yarn.lock, pnpm-lock.yaml or package-lock.json. Please use one of these package managers.")}at.parseLockFile=W8;var q8=z_();Object.defineProperty(at,"queryLockFile",{enumerable:!0,get:function(){return q8.queryLockFile}});I8(V_(),at)});var eR=F(Bs=>{"use strict";var G8=Bs&&Bs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bs,"__esModule",{value:!0});Bs.getScopedPackages=void 0;var Z_=G8(sa());function U8(e,t){let r=Array.isArray(t)?t:Object.keys(t),n=new Set,i=e.filter(o=>o.startsWith("@")||o.startsWith("!@"));if(i.length>0){let o=(0,Z_.default)(r,i,{nocase:!0});for(let a of o)n.add(a)}let s=e.filter(o=>!o.startsWith("@")&&!o.startsWith("!@"));if(s.length>0){let o=H8(r),a=(0,Z_.default)(Object.keys(o),s,{nocase:!0});for(let u of a)for(let c of o[u])n.add(c)}return[...n]}Bs.getScopedPackages=U8;function H8(e){let t={};for(let r of e){let n=r.replace(/^@[^/]+\//,"");t[n]=t[n]||[],t[n].push(r)}return t}});var tR=F(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.findWorkspacePath=void 0;function z8(e,t){return e.find(({name:r})=>r===t)?.path}Pl.findWorkspacePath=z8});var Im=F(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.getWorkspacePackagePathsAsync=Ws.getWorkspacePackagePaths=void 0;var Tm=Pi();function Y8(e){return(0,Tm.getWorkspaceUtilities)(e)?.getWorkspacePackagePaths(e)||[]}Ws.getWorkspacePackagePaths=Y8;async function V8(e){let t=(0,Tm.getWorkspaceUtilities)(e);if(!t)return[];if(!t.getWorkspacePackagePathsAsync){let r=(0,Tm.getWorkspaceManagerAndRoot)(e)?.manager;throw new Error(`${e} is using ${r} which has not been converted to async yet`)}return t.getWorkspacePackagePathsAsync(e)}Ws.getWorkspacePackagePathsAsync=V8});var Nm=F(qs=>{"use strict";var rR=qs&&qs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qs,"__esModule",{value:!0});qs.getPackagesByFiles=void 0;var K8=rR(sa()),J8=rR(require("path")),X8=vl();function Q8(e,t,r,n){let i;typeof e=="string"?(i=e,t=t):{root:i,files:t,ignoreGlobs:r,returnAllPackagesOnNoMatch:n}=e;let s=(0,X8.getWorkspaces)(i),o=new Set(r?.length?(0,K8.default)(t,r):[]),a=t.filter(c=>!o.has(c)),u=new Set;for(let c of a){let f=s.filter(l=>c.startsWith(J8.default.relative(i,l.path).replace(/\\/g,"/")));if(f.length){let l=f.reduce((h,d)=>h.path.length>d.path.length?h:d,f[0]);u.add(l.name)}else if(n)return s.map(l=>l.name)}return[...u]}qs.getPackagesByFiles=Q8});var iR=F(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.getChangedPackages=Gs.getChangedPackagesBetweenRefs=void 0;var Sa=Ac(),Z8=Nm();function nR(e,t,r,n,i){let s=typeof e=="string"?{cwd:e,fromRef:t,toRef:r,ignoreGlobs:n,returnAllPackagesOnNoMatch:i}:e,{fromRef:o,toRef:a,ignoreGlobs:u,returnAllPackagesOnNoMatch:c=!0,...f}=s;f.throwOnError??(f.throwOnError=!0);let l=[...new Set([...(0,Sa.getUntrackedChanges)(f),...(0,Sa.getUnstagedChanges)(f),...(0,Sa.getChangesBetweenRefs)({fromRef:o,toRef:a,...f}),...(0,Sa.getStagedChanges)(f)])];return(0,Z8.getPackagesByFiles)({root:f.cwd,files:l,ignoreGlobs:u,returnAllPackagesOnNoMatch:c})}Gs.getChangedPackagesBetweenRefs=nR;function ez(e,t,r,n){let i;typeof e=="string"?i={cwd:e}:{target:t,ignoreGlobs:r,returnAllPackagesOnNoMatch:n,...i}=e,i.throwOnError??(i.throwOnError=!0);let s=t||(0,Sa.getDefaultRemoteBranch)(i);return nR({fromRef:s,...i,ignoreGlobs:r,returnAllPackagesOnNoMatch:n})}Gs.getChangedPackages=ez});var sR=F(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.listOfWorkspacePackageNames=void 0;function tz(e){return e.map(({name:t})=>t)}Ol.listOfWorkspacePackageNames=tz});var cR=F(Qr=>{"use strict";var rz=Qr&&Qr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.getAllPackageJsonFilesAsync=Qr._resetPackageJsonFilesCache=Qr.getAllPackageJsonFiles=void 0;var oR=rz(require("path")),aR=Im(),uR=fs(),Ni=new Map;function nz(e){if((0,uR.isCachingEnabled)()&&Ni.has(e))return Ni.get(e);let t=(0,aR.getWorkspacePackagePaths)(e).map(r=>oR.default.join(r,"package.json"));return Ni.set(e,t),t}Qr.getAllPackageJsonFiles=nz;function iz(){Ni.clear()}Qr._resetPackageJsonFilesCache=iz;async function sz(e){if((0,uR.isCachingEnabled)()&&Ni.has(e))return Ni.get(e);let t=(await(0,aR.getWorkspacePackagePathsAsync)(e)).map(r=>oR.default.join(r,"package.json"));return Ni.set(e,t),t}Qr.getAllPackageJsonFilesAsync=sz});var fR=F(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.getCatalogVersion=Qn.isCatalogVersion=Qn.getCatalogs=void 0;var oz=Pi();function az(e){return(0,oz.getWorkspaceUtilities)(e)?.getCatalogs?.(e)}Qn.getCatalogs=az;var lR="catalog:";function $m(e){return e.startsWith(lR)}Qn.isCatalogVersion=$m;function uz(e){let{name:t,version:r,catalogs:n}=e;if(!$m(r))return;if(!n)throw new Error(`Dependency "${t}" uses a catalog version "${r}" but no catalogs are defined.`);let i=r.slice(lR.length),s=i?n.named?.[i]:n.default,o=i?`catalogs.${i}`:"the default catalog";if(!s)throw new Error(`Dependency "${t}" uses a catalog version "${r}" but ${o} is not defined.`);let a=s[t];if(!a)throw new Error(`Dependency "${t}" uses a catalog version "${r}", but ${o} doesn't define a version for "${t}".`);if($m(a))throw new Error(`Dependency "${t}" resolves to a recursive catalog version "${a}", which is not supported.`);return a}Qn.getCatalogVersion=uz});var wR=F(re=>{"use strict";var cz=re&&re.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),_l=re&&re.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&cz(t,e,r)};Object.defineProperty(re,"__esModule",{value:!0});re.isCatalogVersion=re.getCatalogVersion=re.getCatalogs=re.getAllPackageJsonFilesAsync=re.getAllPackageJsonFiles=re.listOfWorkspacePackageNames=re.getPackagesByFiles=re.getChangedPackagesBetweenRefs=re.getChangedPackages=re.getYarnWorkspaces=re.getYarnWorkspaceRoot=re.getRushWorkspaces=re.getRushWorkspaceRoot=re.getPnpmWorkspaces=re.getPnpmWorkspaceRoot=re.getPackageInfoAsync=re.getPackageInfo=re.getWorkspaceRoot=re.getWorkspaceManagerRoot=re.getWorkspacePackagePathsAsync=re.getWorkspacePackagePaths=re.getWorkspacesAsync=re.getWorkspaces=re.findWorkspacePath=re.getScopedPackages=re.searchUp=re.isChildOf=re.findProjectRoot=re.findPackageRoot=re.findGitRoot=re.setCachingEnabled=re.getPackageInfosAsync=re.getPackageInfos=void 0;_l(t1(),re);var hR=$_();Object.defineProperty(re,"getPackageInfos",{enumerable:!0,get:function(){return hR.getPackageInfos}});Object.defineProperty(re,"getPackageInfosAsync",{enumerable:!0,get:function(){return hR.getPackageInfosAsync}});_l(Ac(),re);_l(B_(),re);var lz=fs();Object.defineProperty(re,"setCachingEnabled",{enumerable:!0,get:function(){return lz.setCachingEnabled}});_l(Q_(),re);var Ca=Qo();Object.defineProperty(re,"findGitRoot",{enumerable:!0,get:function(){return Ca.findGitRoot}});Object.defineProperty(re,"findPackageRoot",{enumerable:!0,get:function(){return Ca.findPackageRoot}});Object.defineProperty(re,"findProjectRoot",{enumerable:!0,get:function(){return Ca.findProjectRoot}});Object.defineProperty(re,"isChildOf",{enumerable:!0,get:function(){return Ca.isChildOf}});Object.defineProperty(re,"searchUp",{enumerable:!0,get:function(){return Ca.searchUp}});var fz=eR();Object.defineProperty(re,"getScopedPackages",{enumerable:!0,get:function(){return fz.getScopedPackages}});var hz=tR();Object.defineProperty(re,"findWorkspacePath",{enumerable:!0,get:function(){return hz.findWorkspacePath}});var dR=vl();Object.defineProperty(re,"getWorkspaces",{enumerable:!0,get:function(){return dR.getWorkspaces}});Object.defineProperty(re,"getWorkspacesAsync",{enumerable:!0,get:function(){return dR.getWorkspacesAsync}});var pR=Im();Object.defineProperty(re,"getWorkspacePackagePaths",{enumerable:!0,get:function(){return pR.getWorkspacePackagePaths}});Object.defineProperty(re,"getWorkspacePackagePathsAsync",{enumerable:!0,get:function(){return pR.getWorkspacePackagePathsAsync}});var gR=Nd();Object.defineProperty(re,"getWorkspaceManagerRoot",{enumerable:!0,get:function(){return gR.getWorkspaceManagerRoot}});Object.defineProperty(re,"getWorkspaceRoot",{enumerable:!0,get:function(){return gR.getWorkspaceRoot}});var mR=aa();Object.defineProperty(re,"getPackageInfo",{enumerable:!0,get:function(){return mR.getPackageInfo}});Object.defineProperty(re,"getPackageInfoAsync",{enumerable:!0,get:function(){return mR.getPackageInfoAsync}});var yR=pm();Object.defineProperty(re,"getPnpmWorkspaceRoot",{enumerable:!0,get:function(){return yR.getPnpmWorkspaceRoot}});Object.defineProperty(re,"getPnpmWorkspaces",{enumerable:!0,get:function(){return yR.getPnpmWorkspaces}});var vR=Pm();Object.defineProperty(re,"getRushWorkspaceRoot",{enumerable:!0,get:function(){return vR.getRushWorkspaceRoot}});Object.defineProperty(re,"getRushWorkspaces",{enumerable:!0,get:function(){return vR.getRushWorkspaces}});var AR=hm();Object.defineProperty(re,"getYarnWorkspaceRoot",{enumerable:!0,get:function(){return AR.getYarnWorkspaceRoot}});Object.defineProperty(re,"getYarnWorkspaces",{enumerable:!0,get:function(){return AR.getYarnWorkspaces}});var ER=iR();Object.defineProperty(re,"getChangedPackages",{enumerable:!0,get:function(){return ER.getChangedPackages}});Object.defineProperty(re,"getChangedPackagesBetweenRefs",{enumerable:!0,get:function(){return ER.getChangedPackagesBetweenRefs}});var dz=Nm();Object.defineProperty(re,"getPackagesByFiles",{enumerable:!0,get:function(){return dz.getPackagesByFiles}});var pz=sR();Object.defineProperty(re,"listOfWorkspacePackageNames",{enumerable:!0,get:function(){return pz.listOfWorkspacePackageNames}});var bR=cR();Object.defineProperty(re,"getAllPackageJsonFiles",{enumerable:!0,get:function(){return bR.getAllPackageJsonFiles}});Object.defineProperty(re,"getAllPackageJsonFilesAsync",{enumerable:!0,get:function(){return bR.getAllPackageJsonFilesAsync}});var Mm=fR();Object.defineProperty(re,"getCatalogs",{enumerable:!0,get:function(){return Mm.getCatalogs}});Object.defineProperty(re,"getCatalogVersion",{enumerable:!0,get:function(){return Mm.getCatalogVersion}});Object.defineProperty(re,"isCatalogVersion",{enumerable:!0,get:function(){return Mm.isCatalogVersion}})});var HY={};ZF(HY,{run:()=>UF});module.exports=ek(HY);var to=require("os");var La=require("os"),nn=()=>(0,La.platform)()==="linux"&&(0,La.release)().toLowerCase().includes("wsl");var Ta=()=>{let e={win32:["x64"],darwin:["x64","arm64"]};return nn()||e[(0,to.platform)()]&&e[(0,to.platform)()].includes((0,to.arch)())};var tk=[!0,"true","TRUE",1],h0=()=>{let e=process.env.CODESPACES||"";return tk.includes(e)};var Ia=require("os");var Gi=(e,t,r)=>{let n=new Map;n.set("success",e.success?"true":"false"),n.set("automaticSuccess",e.automaticSuccess?"true":"false"),n.set("error",e.error||""),n.set("platform",nn()?"wsl":(0,Ia.platform)()),n.set("arch",(0,Ia.arch)()),r&&(r.LogEvent("node-azure-auth",n),t&&r.flush())};var Xl=require("os");var Ga=require("assert");var rk={right:ak,center:uk},nk=0,Na=1,ik=2,$a=3,ef=class{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
101
+ `).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&Qt.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Qt.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,o)=>({text:s.trim(),padding:this.measurePadding(s),width:o===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=Qt.stripAnsi(t);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t)}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
102
+ `)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((o,a)=>{let{width:u}=t[a],c=this.negatePadding(t[a]),f=o;if(c>Qt.stringWidth(o)&&(f+=" ".repeat(c-Qt.stringWidth(o))),t[a].align&&t[a].align!=="left"&&this.wrap){let h=rk[t[a].align];f=h(f,c),Qt.stringWidth(f)<c&&(f+=" ".repeat((u||0)-Qt.stringWidth(f)-1))}let l=t[a].padding||[0,0,0,0];l[$a]&&(s+=" ".repeat(l[$a])),s+=d0(t[a],f,"| "),s+=f,s+=d0(t[a],f," |"),l[Na]&&(s+=" ".repeat(l[Na])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,s=r.text,o=Qt.stringWidth(s.trimRight());return r.span?this.wrap?i<o?t:(r.hidden=!0,s.trimRight()+" ".repeat(i-o)+t.trimLeft()):(r.hidden=!0,s+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((s,o)=>{s.width=n[o],this.wrap?i=Qt.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
102
103
  `):i=s.text.split(`
103
- `),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[$F]||0).fill("")),i.push(...new Array(s.padding[MF]||0).fill(""))),i.forEach((a,u)=>{r[u]||r.push([]);let c=r[u];for(let f=0;f<o;f++)c[f]===void 0&&c.push("");c.push(a)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[ka]||0)+(t.padding[La]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(o=>o.width||Jt.stringWidth(o.text));let r=t.length,n=this.width,i=t.map(o=>{if(o.width)return r--,n-=o.width,o.width}),s=r?Math.floor(n/r):0;return i.map((o,a)=>o===void 0?Math.max(s,jF(t[a])):o)}};function e0(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}function jF(e){let t=e.padding||[],r=1+(t[ka]||0)+(t[La]||0);return e.border?r+4:r}function BF(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function WF(e,t){e=e.trim();let r=Jt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}function qF(e,t){e=e.trim();let r=Jt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}var Jt;function t0(e,t){return Jt=t,new Yl({width:e?.width||BF(),wrap:e?.wrap})}var r0=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Vl(e){return e.replace(r0,"")}function n0(e,t){let[r,n]=e.match(r0)||["",""];e=Vl(e);let i="";for(let s=0;s<e.length;s++)s!==0&&s%t===0&&(i+=`
104
- `),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}function Kl(e){return t0(e,{stringWidth:t=>[...t].length,stripAnsi:Vl,wrap:n0})}var Gi=require("path"),Ta=require("fs");function i0(e,t){let r=(0,Gi.resolve)(".",e),n;for((0,Ta.statSync)(r).isDirectory()||(r=(0,Gi.dirname)(r));;){if(n=t(r,(0,Ta.readdirSync)(r)),n)return(0,Gi.resolve)(r,n);if(r=(0,Gi.dirname)(n=r),n===r)break}}var E0=require("util"),b0=require("fs"),w0=require("url");var c0=require("util"),Ma=require("path");function ii(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let o=e.charAt(s);n&&(n=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function Ia(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),o=e.charAt(i);s!==o&&i>0?n+=`${t}${r.charAt(i)}`:n+=o}return n}function Na(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function s0(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var ar;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(ar||(ar={}));var on,$a=class{constructor(t){on=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=s0(t),s=typeof t=="string",o=GF(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),c=n.configObjects||[],f=n.envPrefix,l=a["populate--"],h=l?"--":"_",d=Object.create(null),p=Object.create(null),y=n.__||on.format,m={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},O=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,S=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(I){let j=typeof I=="object"?I.key:I,K=Object.keys(I).map(function(z){return{boolean:"bools",string:"strings",number:"numbers"}[z]}).filter(Boolean).pop();K&&(m[K][j]=!0),m.arrays[j]=!0,m.keys.push(j)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(I){m.bools[I]=!0,m.keys.push(I)}),[].concat(n.string||[]).filter(Boolean).forEach(function(I){m.strings[I]=!0,m.keys.push(I)}),[].concat(n.number||[]).filter(Boolean).forEach(function(I){m.numbers[I]=!0,m.keys.push(I)}),[].concat(n.count||[]).filter(Boolean).forEach(function(I){m.counts[I]=!0,m.keys.push(I)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(I){m.normalize[I]=!0,m.keys.push(I)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([I,j])=>{typeof j=="number"&&(m.nargs[I]=j,m.keys.push(I))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([I,j])=>{typeof j=="function"&&(m.coercions[I]=j,m.keys.push(I))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(I){m.configs[I]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([I,j])=>{(typeof j=="boolean"||typeof j=="function")&&(m.configs[I]=j)})),fe(n.key,o,n.default,m.arrays),Object.keys(u).forEach(function(I){(m.aliases[I]||[]).forEach(function(j){u[j]=u[I]})});let k=null;De();let P=[],b=Object.assign(Object.create(null),{_:[]}),_={};for(let I=0;I<i.length;I++){let j=i[I],K=j.replace(/^-{3,}/,"---"),z,B,se,ne,he,Me;if(j!=="--"&&/^-/.test(j)&&ee(j))L(j);else if(K.match(/^---+(=|$)/)){L(j);continue}else if(j.match(/^--.+=/)||!a["short-option-groups"]&&j.match(/^-.+=/))ne=j.match(/^--?([^=]+)=([\s\S]*)$/),ne!==null&&Array.isArray(ne)&&ne.length>=3&&(q(ne[1],m.arrays)?I=$(I,ne[1],i,ne[2]):q(ne[1],m.nargs)!==!1?I=D(I,ne[1],i,ne[2]):x(ne[1],ne[2],!0));else if(j.match(S)&&a["boolean-negation"])ne=j.match(S),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(B=ne[1],x(B,q(B,m.arrays)?[!1]:!1));else if(j.match(/^--.+/)||!a["short-option-groups"]&&j.match(/^-[^-]+/))ne=j.match(/^--?(.+)/),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(B=ne[1],q(B,m.arrays)?I=$(I,B,i):q(B,m.nargs)!==!1?I=D(I,B,i):(he=i[I+1],he!==void 0&&(!he.match(/^-/)||he.match(O))&&!q(B,m.bools)&&!q(B,m.counts)||/^(true|false)$/.test(he)?(x(B,he),I++):x(B,re(B))));else if(j.match(/^-.\..+=/))ne=j.match(/^-([^=]+)=([\s\S]*)$/),ne!==null&&Array.isArray(ne)&&ne.length>=3&&x(ne[1],ne[2]);else if(j.match(/^-.\..+/)&&!j.match(O))he=i[I+1],ne=j.match(/^-(.\..+)/),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(B=ne[1],he!==void 0&&!he.match(/^-/)&&!q(B,m.bools)&&!q(B,m.counts)?(x(B,he),I++):x(B,re(B)));else if(j.match(/^-[^-]+/)&&!j.match(O)){se=j.slice(1,-1).split(""),z=!1;for(let Qe=0;Qe<se.length;Qe++){if(he=j.slice(Qe+2),se[Qe+1]&&se[Qe+1]==="="){Me=j.slice(Qe+3),B=se[Qe],q(B,m.arrays)?I=$(I,B,i,Me):q(B,m.nargs)!==!1?I=D(I,B,i,Me):x(B,Me),z=!0;break}if(he==="-"){x(se[Qe],he);continue}if(/[A-Za-z]/.test(se[Qe])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(he)&&q(he,m.bools)===!1){x(se[Qe],he),z=!0;break}if(se[Qe+1]&&se[Qe+1].match(/\W/)){x(se[Qe],he),z=!0;break}else x(se[Qe],re(se[Qe]))}B=j.slice(-1)[0],!z&&B!=="-"&&(q(B,m.arrays)?I=$(I,B,i):q(B,m.nargs)!==!1?I=D(I,B,i):(he=i[I+1],he!==void 0&&(!/^(-|--)[^-]/.test(he)||he.match(O))&&!q(B,m.bools)&&!q(B,m.counts)||/^(true|false)$/.test(he)?(x(B,he),I++):x(B,re(B))))}else if(j.match(/^-[0-9]$/)&&j.match(O)&&q(j.slice(1),m.bools))B=j.slice(1),x(B,re(B));else if(j==="--"){P=i.slice(I+1);break}else if(a["halt-at-non-option"]){P=i.slice(I);break}else L(j)}T(b,!0),T(b,!1),C(b),w(),U(b,m.aliases,u,!0),N(b),a["set-placeholder-key"]&&M(b),Object.keys(m.counts).forEach(function(I){V(b,I.split("."))||x(I,0)}),l&&P.length&&(b[h]=[]),P.forEach(function(I){b[h].push(I)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(b).filter(I=>I!=="--"&&I.includes("-")).forEach(I=>{delete b[I]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(I=>o[I])).forEach(I=>{a["camel-case-expansion"]&&I.includes("-")&&delete b[I.split(".").map(j=>ii(j)).join(".")],delete b[I]});function L(I){let j=A("_",I);(typeof j=="string"||typeof j=="number")&&b._.push(j)}function D(I,j,K,z){let B,se=q(j,m.nargs);if(se=typeof se!="number"||isNaN(se)?1:se,se===0)return ve(z)||(k=Error(y("Argument unexpected for: %s",j))),x(j,re(j)),I;let ne=ve(z)?0:1;if(a["nargs-eats-options"])K.length-(I+1)+ne<se&&(k=Error(y("Not enough arguments following: %s",j))),ne=se;else{for(B=I+1;B<K.length&&(!K[B].match(/^-[^0-9]/)||K[B].match(O)||ee(K[B]));B++)ne++;ne<se&&(k=Error(y("Not enough arguments following: %s",j)))}let he=Math.min(ne,se);for(!ve(z)&&he>0&&(x(j,z),he--),B=I+1;B<he+I+1;B++)x(j,K[B]);return I+he}function $(I,j,K,z){let B=[],se=z||K[I+1],ne=q(j,m.nargs);if(q(j,m.bools)&&!/^(true|false)$/.test(se))B.push(!0);else if(ve(se)||ve(z)&&/^-/.test(se)&&!O.test(se)&&!ee(se)){if(u[j]!==void 0){let he=u[j];B=Array.isArray(he)?he:[he]}}else{ve(z)||B.push(v(j,z,!0));for(let he=I+1;he<K.length&&!(!a["greedy-arrays"]&&B.length>0||ne&&typeof ne=="number"&&B.length>=ne||(se=K[he],/^-/.test(se)&&!O.test(se)&&!ee(se)));he++)I=he,B.push(v(j,se,s))}return typeof ne=="number"&&(ne&&B.length<ne||isNaN(ne)&&B.length===0)&&(k=Error(y("Not enough arguments following: %s",j))),x(j,B),I}function x(I,j,K=s){if(/-/.test(I)&&a["camel-case-expansion"]){let se=I.split(".").map(function(ne){return ii(ne)}).join(".");g(I,se)}let z=v(I,j,K),B=I.split(".");X(b,B,z),m.aliases[I]&&m.aliases[I].forEach(function(se){let ne=se.split(".");X(b,ne,z)}),B.length>1&&a["dot-notation"]&&(m.aliases[B[0]]||[]).forEach(function(se){let ne=se.split("."),he=[].concat(B);he.shift(),ne=ne.concat(he),(m.aliases[I]||[]).includes(ne.join("."))||X(b,ne,z)}),q(I,m.normalize)&&!q(I,m.arrays)&&[I].concat(m.aliases[I]||[]).forEach(function(ne){Object.defineProperty(_,ne,{enumerable:!0,get(){return j},set(he){j=typeof he=="string"?on.normalize(he):he}})})}function g(I,j){m.aliases[I]&&m.aliases[I].length||(m.aliases[I]=[j],d[j]=!0),m.aliases[j]&&m.aliases[j].length||g(j,I)}function v(I,j,K){K&&(j=UF(j)),(q(I,m.bools)||q(I,m.counts))&&typeof j=="string"&&(j=j==="true");let z=Array.isArray(j)?j.map(function(B){return A(I,B)}):A(I,j);return q(I,m.counts)&&(ve(z)||typeof z=="boolean")&&(z=Xl()),q(I,m.normalize)&&q(I,m.arrays)&&(Array.isArray(j)?z=j.map(B=>on.normalize(B)):z=on.normalize(j)),z}function A(I,j){return!a["parse-positional-numbers"]&&I==="_"||!q(I,m.strings)&&!q(I,m.bools)&&!Array.isArray(j)&&(Na(j)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${j}`)))||!ve(j)&&q(I,m.numbers))&&(j=Number(j)),j}function C(I){let j=Object.create(null);U(j,m.aliases,u),Object.keys(m.configs).forEach(function(K){let z=I[K]||j[K];if(z)try{let B=null,se=on.resolve(on.cwd(),z),ne=m.configs[K];if(typeof ne=="function"){try{B=ne(se)}catch(he){B=he}if(B instanceof Error){k=B;return}}else B=on.require(se);E(B)}catch(B){B.name==="PermissionDenied"?k=B:I[K]&&(k=Error(y("Invalid JSON config file: %s",z)))}})}function E(I,j){Object.keys(I).forEach(function(K){let z=I[K],B=j?j+"."+K:K;typeof z=="object"&&z!==null&&!Array.isArray(z)&&a["dot-notation"]?E(z,B):(!V(b,B.split("."))||q(B,m.arrays)&&a["combine-arrays"])&&x(B,z)})}function w(){typeof c<"u"&&c.forEach(function(I){E(I)})}function T(I,j){if(typeof f>"u")return;let K=typeof f=="string"?f:"",z=on.env();Object.keys(z).forEach(function(B){if(K===""||B.lastIndexOf(K,0)===0){let se=B.split("__").map(function(ne,he){return he===0&&(ne=ne.substring(K.length)),ii(ne)});(j&&m.configs[se.join(".")]||!j)&&!V(I,se)&&x(se.join("."),z[B])}})}function N(I){let j,K=new Set;Object.keys(I).forEach(function(z){if(!K.has(z)&&(j=q(z,m.coercions),typeof j=="function"))try{let B=A(z,j(I[z]));[].concat(m.aliases[z]||[],z).forEach(se=>{K.add(se),I[se]=B})}catch(B){k=B}})}function M(I){return m.keys.forEach(j=>{~j.indexOf(".")||typeof I[j]>"u"&&(I[j]=void 0)}),I}function U(I,j,K,z=!1){Object.keys(K).forEach(function(B){V(I,B.split("."))||(X(I,B.split("."),K[B]),z&&(p[B]=!0),(j[B]||[]).forEach(function(se){V(I,se.split("."))||X(I,se.split("."),K[B])}))})}function V(I,j){let K=I;a["dot-notation"]||(j=[j.join(".")]),j.slice(0,-1).forEach(function(B){K=K[B]||{}});let z=j[j.length-1];return typeof K!="object"?!1:z in K}function X(I,j,K){let z=I;a["dot-notation"]||(j=[j.join(".")]),j.slice(0,-1).forEach(function(Me){Me=o0(Me),typeof z=="object"&&z[Me]===void 0&&(z[Me]={}),typeof z[Me]!="object"||Array.isArray(z[Me])?(Array.isArray(z[Me])?z[Me].push({}):z[Me]=[z[Me],{}],z=z[Me][z[Me].length-1]):z=z[Me]});let B=o0(j[j.length-1]),se=q(j.join("."),m.arrays),ne=Array.isArray(K),he=a["duplicate-arguments-array"];!he&&q(B,m.nargs)&&(he=!0,(!ve(z[B])&&m.nargs[B]===1||Array.isArray(z[B])&&z[B].length===m.nargs[B])&&(z[B]=void 0)),K===Xl()?z[B]=Xl(z[B]):Array.isArray(z[B])?he&&se&&ne?z[B]=a["flatten-duplicate-arrays"]?z[B].concat(K):(Array.isArray(z[B][0])?z[B]:[z[B]]).concat([K]):!he&&!!se==!!ne?z[B]=K:z[B]=z[B].concat([K]):z[B]===void 0&&se?z[B]=ne?K:[K]:he&&!(z[B]===void 0||q(B,m.counts)||q(B,m.bools))?z[B]=[z[B],K]:z[B]=K}function fe(...I){I.forEach(function(j){Object.keys(j||{}).forEach(function(K){m.aliases[K]||(m.aliases[K]=[].concat(o[K]||[]),m.aliases[K].concat(K).forEach(function(z){if(/-/.test(z)&&a["camel-case-expansion"]){let B=ii(z);B!==K&&m.aliases[K].indexOf(B)===-1&&(m.aliases[K].push(B),d[B]=!0)}}),m.aliases[K].concat(K).forEach(function(z){if(z.length>1&&/[A-Z]/.test(z)&&a["camel-case-expansion"]){let B=Ia(z,"-");B!==K&&m.aliases[K].indexOf(B)===-1&&(m.aliases[K].push(B),d[B]=!0)}}),m.aliases[K].forEach(function(z){m.aliases[z]=[K].concat(m.aliases[K].filter(function(B){return z!==B}))}))})})}function q(I,j){let K=[].concat(m.aliases[I]||[],I),z=Object.keys(j),B=K.find(se=>z.includes(se));return B?j[B]:!1}function H(I){let j=Object.keys(m);return[].concat(j.map(z=>m[z])).some(function(z){return Array.isArray(z)?z.includes(I):z[I]})}function W(I,...j){return[].concat(...j).some(function(z){let B=I.match(z);return B&&H(B[1])})}function Z(I){if(I.match(O)||!I.match(/^-[^-]+/))return!1;let j=!0,K,z=I.slice(1).split("");for(let B=0;B<z.length;B++){if(K=I.slice(B+2),!H(z[B])){j=!1;break}if(z[B+1]&&z[B+1]==="="||K==="-"||/[A-Za-z]/.test(z[B])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(K)||z[B+1]&&z[B+1].match(/\W/))break}return j}function ee(I){return a["unknown-options-as-args"]&&G(I)}function G(I){return I=I.replace(/^-{3,}/,"--"),I.match(O)||Z(I)?!1:!W(I,/^-+([^=]+?)=[\s\S]*$/,S,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function re(I){return!q(I,m.bools)&&!q(I,m.counts)&&`${I}`in u?u[I]:Y(ue(I))}function Y(I){return{[ar.BOOLEAN]:!0,[ar.STRING]:"",[ar.NUMBER]:void 0,[ar.ARRAY]:[]}[I]}function ue(I){let j=ar.BOOLEAN;return q(I,m.strings)?j=ar.STRING:q(I,m.numbers)?j=ar.NUMBER:q(I,m.bools)?j=ar.BOOLEAN:q(I,m.arrays)&&(j=ar.ARRAY),j}function ve(I){return I===void 0}function De(){Object.keys(m.counts).find(I=>q(I,m.arrays)?(k=Error(y("Invalid configuration: %s, opts.count excludes opts.array.",I)),!0):q(I,m.nargs)?(k=Error(y("Invalid configuration: %s, opts.count excludes opts.narg.",I)),!0):!1)}return{aliases:Object.assign({},m.aliases),argv:Object.assign(_,b),configuration:a,defaulted:Object.assign({},p),error:k,newAliases:Object.assign({},d)}}};function GF(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(o,a,u){return u.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function Xl(e){return e!==void 0?e+1:1}function o0(e){return e==="__proto__"?"___proto___":e}function UF(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var l0=require("fs");var Jl,Ql,Zl,a0=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,u0=(Ql=(Jl=process==null?void 0:process.versions)===null||Jl===void 0?void 0:Jl.node)!==null&&Ql!==void 0?Ql:(Zl=process==null?void 0:process.version)===null||Zl===void 0?void 0:Zl.slice(1);if(u0&&Number(u0.match(/^([^.]+)/)[1])<a0)throw Error(`yargs parser supports a minimum Node.js version of ${a0}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var HF=process?process.env:{},f0=new $a({cwd:process.cwd,env:()=>HF,format:c0.format,normalize:Ma.normalize,resolve:Ma.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,l0.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),Js=function(t,r){return f0.parse(t.slice(),r).argv};Js.detailed=function(e,t){return f0.parse(e.slice(),t)};Js.camelCase=ii;Js.decamelize=Ia;Js.looksLikeNumber=Na;var ef=Js;var Dr=require("path");function h0(){return zF()?0:1}function zF(){return YF()&&!process.defaultApp}function YF(){return!!process.versions.electron}function tf(e){return e.slice(h0()+1)}function d0(){return process.argv[h0()]}var We=class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};var Ui=require("fs"),p0=require("util"),g0=require("path"),m0={fs:{readFileSync:Ui.readFileSync,writeFile:Ui.writeFile},format:p0.format,resolve:g0.resolve,exists:e=>{try{return(0,Ui.statSync)(e).isFile()}catch{return!1}}};var Fr,rf=class{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=function(){};return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),Fr.format.apply(Fr.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),s=function(){};typeof t[t.length-1]=="function"&&(s=t.pop()),this.cache[this.locale]||this._readLocaleFile();let o=i===1?r:n;this.cache[this.locale][r]&&(o=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();let a=[o];return~o.indexOf("%d")&&a.push(i),Fr.format.apply(Fr.format,a.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,s){let o=r[s+1];n+=i,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,s=r.cb,o=this._resolveLocaleFile(n,i),a=JSON.stringify(this.cache[i],null,2);Fr.fs.writeFile(o,a,"utf-8",function(u){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(u)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{Fr.fs.readFileSync&&(t=JSON.parse(Fr.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,r){let n=Fr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=Fr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return Fr.exists(t)}};function y0(e,t){Fr=t;let r=new rf(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}var VF=e=>y0(e,m0),v0=VF;var JF={},KF="require is not supported by ESM",A0="loading a directory of commands is not supported yet for ESM",Qs;try{Qs=(0,w0.fileURLToPath)(JF.url)}catch{Qs=process.cwd()}var XF=Qs.substring(0,Qs.lastIndexOf("node_modules")),nf={assert:{notStrictEqual:ja.notStrictEqual,strictEqual:ja.strictEqual},cliui:Kl,findUp:i0,getEnv:e=>process.env[e],inspect:E0.inspect,getCallerFile:()=>{throw new We(A0)},getProcessArgvBin:d0,mainFilename:XF||process.cwd(),Parser:ef,path:{basename:Dr.basename,dirname:Dr.dirname,extname:Dr.extname,relative:Dr.relative,resolve:Dr.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:b0.readFileSync,require:()=>{throw new We(KF)},requireDirectory:()=>{throw new We(A0)},stringWidth:e=>[...e].length,y18n:v0({directory:(0,Dr.resolve)(Qs,"../../../locales"),updateFiles:!1})};function Dt(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function sf(e,t){t.assert.strictEqual(typeof e,"string")}function Hi(e){return Object.keys(e)}function qe(e){return!!e&&!!e.then&&typeof e.then=="function"}function xn(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((o,a)=>{let u=!1;o=o.replace(/\s/g,""),/\.+[\]>]/.test(o)&&a===r.length-1&&(u=!0),/^\[/.test(o)?s.optional.push({cmd:o.replace(n,"").split("|"),variadic:u}):s.demanded.push({cmd:o.replace(n,"").split("|"),variadic:u})}),s}var QF=["first","second","third","fourth","fifth","sixth"];function ce(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[xn(`cmd ${e}`),t,r]}try{let i=0,[s,o,a]=n(),u=[].slice.call(o);for(;u.length&&u[u.length-1]===void 0;)u.pop();let c=a||u.length;if(c<s.demanded.length)throw new We(`Not enough arguments provided. Expected ${s.demanded.length} but received ${u.length}.`);let f=s.demanded.length+s.optional.length;if(c>f)throw new We(`Too many arguments provided. Expected max ${f} but received ${c}.`);s.demanded.forEach(l=>{let h=u.shift(),d=S0(h);l.cmd.filter(y=>y===d||y==="*").length===0&&C0(d,l.cmd,i),i+=1}),s.optional.forEach(l=>{if(u.length===0)return;let h=u.shift(),d=S0(h);l.cmd.filter(y=>y===d||y==="*").length===0&&C0(d,l.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}function S0(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function C0(e,t,r){throw new We(`Invalid ${QF[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}var Ba=class{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(ce("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let o=t[s];o.applyBeforeValidation=r,o.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=r,s.global=n,s.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let s=[...n[r]||[],r];return i.option?!s.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};function x0(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}function si(e,t,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(qe(i))return i.then(o=>Promise.all([o,s(o,t)])).then(([o,a])=>Object.assign(o,a));{let o=s(i,t);return qe(o)?o.then(a=>Object.assign(i,a)):Object.assign(i,o)}},e)}function oi(e,t,r=n=>{throw n}){try{let n=ZF(e)?e():e;return qe(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}function ZF(e){return typeof e=="function"}function of(e){if(typeof require>"u")return null;for(let t=0,r=Object.keys(require.cache),n;t<r.length;t++)if(n=require.cache[r[t]],n.exports===e)return n;return null}var zi=/(^\*)|(^\$0)/,af=class{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let s=typeof i.visit=="function"?i.visit:o=>o;i.visit=(o,a,u)=>{let c=s(o,a,u);if(c){if(this.requireCache.has(a))return c;this.requireCache.add(a),this.addHandler(c)}return c},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,s,o){let a=[],u=x0(s);if(i=i||(()=>{}),Array.isArray(t))if(eD(t))[t,...a]=t;else for(let c of t)this.addHandler(c);else if(rD(t)){let c=Array.isArray(t.command)||typeof t.command=="string"?t.command:this.moduleName(t);t.aliases&&(c=[].concat(c).concat(t.aliases)),this.addHandler(c,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(O0(n)){this.addHandler([t].concat(a),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let c=xn(t);a=a.map(h=>xn(h).cmd);let f=!1,l=[c.cmd].concat(a).filter(h=>zi.test(h)?(f=!0,!1):!0);l.length===0&&f&&l.push("$0"),f&&(c.cmd=l[0],a=l.slice(1),t=t.replace(zi,c.cmd)),a.forEach(h=>{this.aliasMap[h]=c.cmd}),r!==!1&&this.usage.command(t,r,f,a,o),this.handlers[c.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:u,deprecated:o,demanded:c.demanded,optional:c.optional},f&&(this.defaultCommand=this.handlers[c.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,s,o){let a=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,u=r.getInternalMethods().getContext(),c=u.commands.slice(),f=!t;t&&(u.commands.push(t),u.fullCommands.push(a.original));let l=this.applyBuilderUpdateUsageAndParse(f,a,r,n.aliases,c,i,s,o);return qe(l)?l.then(h=>this.applyMiddlewareAndGetResult(f,a,h.innerArgv,u,s,h.aliases,r)):this.applyMiddlewareAndGetResult(f,a,l.innerArgv,u,s,l.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,o,a,u){let c=r.builder,f=n;if(Wa(c)){n.getInternalMethods().getUsageInstance().freeze();let l=c(n.getInternalMethods().reset(i),u);if(qe(l))return l.then(h=>(f=_0(h)?h:n,this.parseAndUpdateUsage(t,r,f,s,o,a)))}else tD(c)&&(n.getInternalMethods().getUsageInstance().freeze(),f=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(l=>{f.option(l,c[l])}));return this.parseAndUpdateUsage(t,r,f,s,o,a)}parseAndUpdateUsage(t,r,n,i,s,o){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let a=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,o);return qe(a)?a.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):{aliases:n.parsed.aliases,innerArgv:a}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=zi.test(r.original)?r.original.replace(zi,"").trim():r.original,i=t.filter(s=>!zi.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,o,a,u){if(!o.getInternalMethods().getHasOutput()){let c=o.getInternalMethods().runValidation(s,u,o.parsed.error,t);n=oi(n,f=>(c(f),f))}if(r.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();let c=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(n,c,!1,!1),n=si(n,o,a,!1),n=oi(n,f=>{let l=r.handler(f);return qe(l)?l.then(()=>f):f}),t||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),qe(n)&&!o.getInternalMethods().hasParseCallback()&&n.catch(f=>{try{o.getInternalMethods().getUsageInstance().fail(null,f)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,s,o,a){let u={};if(s)return n;a.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,a));let c=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),f=si(n,a,c,!0);return qe(f)?f.then(l=>this.handleValidationAndGetResult(t,r,l,i,o,a,c,u)):this.handleValidationAndGetResult(t,r,f,i,o,a,c,u)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),o=t.optional.slice(0),a={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let u=s.shift();this.populatePositional(u,r,a)}for(;o.length;){let u=o.shift();this.populatePositional(u,r,a)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,a,this.cmdToParseOptions(t.original),i),a}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=xn(t);return n.demanded.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let c of Object.keys(n.alias))s.alias[c]=(s.alias[c]||[]).concat(n.alias[c]);s.array=s.array.concat(n.array),s.config={};let o=[];if(Object.keys(r).forEach(c=>{r[c].map(f=>{s.configuration["unknown-options-as-args"]&&(s.key[c]=!0),o.push(`--${c}`),o.push(f)})}),!o.length)return;let a=Object.assign({},s.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(o,Object.assign({},s,{configuration:a}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let c=Object.keys(r);Object.keys(r).forEach(f=>{c.push(...u.aliases[f])}),Object.keys(u.argv).forEach(f=>{c.includes(f)&&(r[f]||(r[f]=u.argv[f]),!this.isInConfigs(i,f)&&!this.isDefaulted(i,f)&&Object.prototype.hasOwnProperty.call(t,f)&&Object.prototype.hasOwnProperty.call(u.argv,f)&&(Array.isArray(t[f])||Array.isArray(u.argv[f]))?t[f]=[].concat(t[f],u.argv[f]):t[f]=u.argv[f])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=zi.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(Wa(r))return r(t,!0);O0(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=of(t);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(r.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:r,desc:n}){for(let i of[t,r,n]){if(typeof i=="string"||i===!1)return i;Dt(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();Dt(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function P0(e,t,r,n){return new af(e,t,r,n)}function O0(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}function eD(e){return e.every(t=>typeof t=="string")}function Wa(e){return typeof e=="function"}function tD(e){return typeof e=="object"}function rD(e){return typeof e=="object"&&!Array.isArray(e)}function On(e={},t=()=>!0){let r={};return Hi(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}function Pn(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}function nD(e){return typeof e=="boolean"}function F0(e,t){let r=t.y18n.__,n={},i=[];n.failFn=function(v){i.push(v)};let s=null,o=null,a=!0;n.showHelpOnFail=function(v=!0,A){let[C,E]=typeof v=="string"?[!0,v]:[v,A];return e.getInternalMethods().isGlobalContext()&&(o=E),s=E,a=C,n};let u=!1;n.fail=function(v,A){let C=e.getInternalMethods().getLoggerInstance();if(i.length)for(let E=i.length-1;E>=0;--E){let w=i[E];if(nD(w)){if(A)throw A;if(v)throw Error(v)}else w(v,A,n)}else{if(e.getExitProcess()&&Pn(!0),!u){u=!0,a&&(e.showHelp("error"),C.error()),(v||A)&&C.error(v||A);let E=s||o;E&&((v||A)&&C.error(""),C.error(E))}if(A=A||new We(v),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,A);throw A}};let c=[],f=!1;n.usage=(g,v)=>g===null?(f=!0,c=[],n):(f=!1,c.push([g,v||""]),n),n.getUsage=()=>c,n.getUsageDisabled=()=>f,n.getPositionalGroupName=()=>r("Positionals:");let l=[];n.example=(g,v)=>{l.push([g,v||""])};let h=[];n.command=function(v,A,C,E,w=!1){C&&(h=h.map(T=>(T[2]=!1,T))),h.push([v,A||"",C,E,w])},n.getCommands=()=>h;let d={};n.describe=function(v,A){Array.isArray(v)?v.forEach(C=>{n.describe(C,A)}):typeof v=="object"?Object.keys(v).forEach(C=>{n.describe(C,v[C])}):d[v]=A},n.getDescriptions=()=>d;let p=[];n.epilog=g=>{p.push(g)};let y=!1,m;n.wrap=g=>{y=!0,m=g},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(y||(m=D(),y=!0),m);let O="__yargsString__:";n.deferY18nLookup=g=>O+g,n.help=function(){if(P)return P;k();let v=e.customScriptName?e.$0:t.path.basename(e.$0),A=e.getDemandedOptions(),C=e.getDemandedCommands(),E=e.getDeprecatedOptions(),w=e.getGroups(),T=e.getOptions(),N=[];N=N.concat(Object.keys(d)),N=N.concat(Object.keys(A)),N=N.concat(Object.keys(C)),N=N.concat(Object.keys(T.default)),N=N.filter(_),N=Object.keys(N.reduce((W,Z)=>(Z!=="_"&&(W[Z]=!0),W),{}));let M=n.getWrap(),U=t.cliui({width:M,wrap:!!M});if(!f){if(c.length)c.forEach(W=>{U.div({text:`${W[0].replace(/\$0/g,v)}`}),W[1]&&U.div({text:`${W[1]}`,padding:[1,0,0,0]})}),U.div();else if(h.length){let W=null;C._?W=`${v} <${r("command")}>
104
+ `),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[nk]||0).fill("")),i.push(...new Array(s.padding[ik]||0).fill(""))),i.forEach((a,u)=>{r[u]||r.push([]);let c=r[u];for(let f=0;f<o;f++)c[f]===void 0&&c.push("");c.push(a)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[$a]||0)+(t.padding[Na]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(o=>o.width||Qt.stringWidth(o.text));let r=t.length,n=this.width,i=t.map(o=>{if(o.width)return r--,n-=o.width,o.width}),s=r?Math.floor(n/r):0;return i.map((o,a)=>o===void 0?Math.max(s,sk(t[a])):o)}};function d0(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}function sk(e){let t=e.padding||[],r=1+(t[$a]||0)+(t[Na]||0);return e.border?r+4:r}function ok(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function ak(e,t){e=e.trim();let r=Qt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}function uk(e,t){e=e.trim();let r=Qt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}var Qt;function p0(e,t){return Qt=t,new ef({width:e?.width||ok(),wrap:e?.wrap})}var g0=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function tf(e){return e.replace(g0,"")}function m0(e,t){let[r,n]=e.match(g0)||["",""];e=tf(e);let i="";for(let s=0;s<e.length;s++)s!==0&&s%t===0&&(i+=`
105
+ `),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}function rf(e){return p0(e,{stringWidth:t=>[...t].length,stripAnsi:tf,wrap:m0})}var Ui=require("path"),Ma=require("fs");function y0(e,t){let r=(0,Ui.resolve)(".",e),n;for((0,Ma.statSync)(r).isDirectory()||(r=(0,Ui.dirname)(r));;){if(n=t(r,(0,Ma.readdirSync)(r)),n)return(0,Ui.resolve)(r,n);if(r=(0,Ui.dirname)(n=r),n===r)break}}var L0=require("util"),T0=require("fs"),I0=require("url");var w0=require("util"),qa=require("path");function ii(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let o=e.charAt(s);n&&(n=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function ja(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),o=e.charAt(i);s!==o&&i>0?n+=`${t}${r.charAt(i)}`:n+=o}return n}function Ba(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function v0(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var ur;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(ur||(ur={}));var sn,Wa=class{constructor(t){sn=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=v0(t),s=typeof t=="string",o=ck(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),c=n.configObjects||[],f=n.envPrefix,l=a["populate--"],h=l?"--":"_",d=Object.create(null),p=Object.create(null),y=n.__||sn.format,m={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},P=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,S=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(I){let j=typeof I=="object"?I.key:I,K=Object.keys(I).map(function(z){return{boolean:"bools",string:"strings",number:"numbers"}[z]}).filter(Boolean).pop();K&&(m[K][j]=!0),m.arrays[j]=!0,m.keys.push(j)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(I){m.bools[I]=!0,m.keys.push(I)}),[].concat(n.string||[]).filter(Boolean).forEach(function(I){m.strings[I]=!0,m.keys.push(I)}),[].concat(n.number||[]).filter(Boolean).forEach(function(I){m.numbers[I]=!0,m.keys.push(I)}),[].concat(n.count||[]).filter(Boolean).forEach(function(I){m.counts[I]=!0,m.keys.push(I)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(I){m.normalize[I]=!0,m.keys.push(I)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([I,j])=>{typeof j=="number"&&(m.nargs[I]=j,m.keys.push(I))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([I,j])=>{typeof j=="function"&&(m.coercions[I]=j,m.keys.push(I))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(I){m.configs[I]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([I,j])=>{(typeof j=="boolean"||typeof j=="function")&&(m.configs[I]=j)})),he(n.key,o,n.default,m.arrays),Object.keys(u).forEach(function(I){(m.aliases[I]||[]).forEach(function(j){u[j]=u[I]})});let L=null;Fe();let O=[],b=Object.assign(Object.create(null),{_:[]}),_={};for(let I=0;I<i.length;I++){let j=i[I],K=j.replace(/^-{3,}/,"---"),z,B,oe,ie,de,Me;if(j!=="--"&&/^-/.test(j)&&ee(j))D(j);else if(K.match(/^---+(=|$)/)){D(j);continue}else if(j.match(/^--.+=/)||!a["short-option-groups"]&&j.match(/^-.+=/))ie=j.match(/^--?([^=]+)=([\s\S]*)$/),ie!==null&&Array.isArray(ie)&&ie.length>=3&&(q(ie[1],m.arrays)?I=$(I,ie[1],i,ie[2]):q(ie[1],m.nargs)!==!1?I=k(I,ie[1],i,ie[2]):x(ie[1],ie[2],!0));else if(j.match(S)&&a["boolean-negation"])ie=j.match(S),ie!==null&&Array.isArray(ie)&&ie.length>=2&&(B=ie[1],x(B,q(B,m.arrays)?[!1]:!1));else if(j.match(/^--.+/)||!a["short-option-groups"]&&j.match(/^-[^-]+/))ie=j.match(/^--?(.+)/),ie!==null&&Array.isArray(ie)&&ie.length>=2&&(B=ie[1],q(B,m.arrays)?I=$(I,B,i):q(B,m.nargs)!==!1?I=k(I,B,i):(de=i[I+1],de!==void 0&&(!de.match(/^-/)||de.match(P))&&!q(B,m.bools)&&!q(B,m.counts)||/^(true|false)$/.test(de)?(x(B,de),I++):x(B,ne(B))));else if(j.match(/^-.\..+=/))ie=j.match(/^-([^=]+)=([\s\S]*)$/),ie!==null&&Array.isArray(ie)&&ie.length>=3&&x(ie[1],ie[2]);else if(j.match(/^-.\..+/)&&!j.match(P))de=i[I+1],ie=j.match(/^-(.\..+)/),ie!==null&&Array.isArray(ie)&&ie.length>=2&&(B=ie[1],de!==void 0&&!de.match(/^-/)&&!q(B,m.bools)&&!q(B,m.counts)?(x(B,de),I++):x(B,ne(B)));else if(j.match(/^-[^-]+/)&&!j.match(P)){oe=j.slice(1,-1).split(""),z=!1;for(let et=0;et<oe.length;et++){if(de=j.slice(et+2),oe[et+1]&&oe[et+1]==="="){Me=j.slice(et+3),B=oe[et],q(B,m.arrays)?I=$(I,B,i,Me):q(B,m.nargs)!==!1?I=k(I,B,i,Me):x(B,Me),z=!0;break}if(de==="-"){x(oe[et],de);continue}if(/[A-Za-z]/.test(oe[et])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(de)&&q(de,m.bools)===!1){x(oe[et],de),z=!0;break}if(oe[et+1]&&oe[et+1].match(/\W/)){x(oe[et],de),z=!0;break}else x(oe[et],ne(oe[et]))}B=j.slice(-1)[0],!z&&B!=="-"&&(q(B,m.arrays)?I=$(I,B,i):q(B,m.nargs)!==!1?I=k(I,B,i):(de=i[I+1],de!==void 0&&(!/^(-|--)[^-]/.test(de)||de.match(P))&&!q(B,m.bools)&&!q(B,m.counts)||/^(true|false)$/.test(de)?(x(B,de),I++):x(B,ne(B))))}else if(j.match(/^-[0-9]$/)&&j.match(P)&&q(j.slice(1),m.bools))B=j.slice(1),x(B,ne(B));else if(j==="--"){O=i.slice(I+1);break}else if(a["halt-at-non-option"]){O=i.slice(I);break}else D(j)}T(b,!0),T(b,!1),C(b),w(),U(b,m.aliases,u,!0),N(b),a["set-placeholder-key"]&&M(b),Object.keys(m.counts).forEach(function(I){V(b,I.split("."))||x(I,0)}),l&&O.length&&(b[h]=[]),O.forEach(function(I){b[h].push(I)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(b).filter(I=>I!=="--"&&I.includes("-")).forEach(I=>{delete b[I]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(I=>o[I])).forEach(I=>{a["camel-case-expansion"]&&I.includes("-")&&delete b[I.split(".").map(j=>ii(j)).join(".")],delete b[I]});function D(I){let j=A("_",I);(typeof j=="string"||typeof j=="number")&&b._.push(j)}function k(I,j,K,z){let B,oe=q(j,m.nargs);if(oe=typeof oe!="number"||isNaN(oe)?1:oe,oe===0)return Ae(z)||(L=Error(y("Argument unexpected for: %s",j))),x(j,ne(j)),I;let ie=Ae(z)?0:1;if(a["nargs-eats-options"])K.length-(I+1)+ie<oe&&(L=Error(y("Not enough arguments following: %s",j))),ie=oe;else{for(B=I+1;B<K.length&&(!K[B].match(/^-[^0-9]/)||K[B].match(P)||ee(K[B]));B++)ie++;ie<oe&&(L=Error(y("Not enough arguments following: %s",j)))}let de=Math.min(ie,oe);for(!Ae(z)&&de>0&&(x(j,z),de--),B=I+1;B<de+I+1;B++)x(j,K[B]);return I+de}function $(I,j,K,z){let B=[],oe=z||K[I+1],ie=q(j,m.nargs);if(q(j,m.bools)&&!/^(true|false)$/.test(oe))B.push(!0);else if(Ae(oe)||Ae(z)&&/^-/.test(oe)&&!P.test(oe)&&!ee(oe)){if(u[j]!==void 0){let de=u[j];B=Array.isArray(de)?de:[de]}}else{Ae(z)||B.push(v(j,z,!0));for(let de=I+1;de<K.length&&!(!a["greedy-arrays"]&&B.length>0||ie&&typeof ie=="number"&&B.length>=ie||(oe=K[de],/^-/.test(oe)&&!P.test(oe)&&!ee(oe)));de++)I=de,B.push(v(j,oe,s))}return typeof ie=="number"&&(ie&&B.length<ie||isNaN(ie)&&B.length===0)&&(L=Error(y("Not enough arguments following: %s",j))),x(j,B),I}function x(I,j,K=s){if(/-/.test(I)&&a["camel-case-expansion"]){let oe=I.split(".").map(function(ie){return ii(ie)}).join(".");g(I,oe)}let z=v(I,j,K),B=I.split(".");J(b,B,z),m.aliases[I]&&m.aliases[I].forEach(function(oe){let ie=oe.split(".");J(b,ie,z)}),B.length>1&&a["dot-notation"]&&(m.aliases[B[0]]||[]).forEach(function(oe){let ie=oe.split("."),de=[].concat(B);de.shift(),ie=ie.concat(de),(m.aliases[I]||[]).includes(ie.join("."))||J(b,ie,z)}),q(I,m.normalize)&&!q(I,m.arrays)&&[I].concat(m.aliases[I]||[]).forEach(function(ie){Object.defineProperty(_,ie,{enumerable:!0,get(){return j},set(de){j=typeof de=="string"?sn.normalize(de):de}})})}function g(I,j){m.aliases[I]&&m.aliases[I].length||(m.aliases[I]=[j],d[j]=!0),m.aliases[j]&&m.aliases[j].length||g(j,I)}function v(I,j,K){K&&(j=lk(j)),(q(I,m.bools)||q(I,m.counts))&&typeof j=="string"&&(j=j==="true");let z=Array.isArray(j)?j.map(function(B){return A(I,B)}):A(I,j);return q(I,m.counts)&&(Ae(z)||typeof z=="boolean")&&(z=nf()),q(I,m.normalize)&&q(I,m.arrays)&&(Array.isArray(j)?z=j.map(B=>sn.normalize(B)):z=sn.normalize(j)),z}function A(I,j){return!a["parse-positional-numbers"]&&I==="_"||!q(I,m.strings)&&!q(I,m.bools)&&!Array.isArray(j)&&(Ba(j)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${j}`)))||!Ae(j)&&q(I,m.numbers))&&(j=Number(j)),j}function C(I){let j=Object.create(null);U(j,m.aliases,u),Object.keys(m.configs).forEach(function(K){let z=I[K]||j[K];if(z)try{let B=null,oe=sn.resolve(sn.cwd(),z),ie=m.configs[K];if(typeof ie=="function"){try{B=ie(oe)}catch(de){B=de}if(B instanceof Error){L=B;return}}else B=sn.require(oe);E(B)}catch(B){B.name==="PermissionDenied"?L=B:I[K]&&(L=Error(y("Invalid JSON config file: %s",z)))}})}function E(I,j){Object.keys(I).forEach(function(K){let z=I[K],B=j?j+"."+K:K;typeof z=="object"&&z!==null&&!Array.isArray(z)&&a["dot-notation"]?E(z,B):(!V(b,B.split("."))||q(B,m.arrays)&&a["combine-arrays"])&&x(B,z)})}function w(){typeof c<"u"&&c.forEach(function(I){E(I)})}function T(I,j){if(typeof f>"u")return;let K=typeof f=="string"?f:"",z=sn.env();Object.keys(z).forEach(function(B){if(K===""||B.lastIndexOf(K,0)===0){let oe=B.split("__").map(function(ie,de){return de===0&&(ie=ie.substring(K.length)),ii(ie)});(j&&m.configs[oe.join(".")]||!j)&&!V(I,oe)&&x(oe.join("."),z[B])}})}function N(I){let j,K=new Set;Object.keys(I).forEach(function(z){if(!K.has(z)&&(j=q(z,m.coercions),typeof j=="function"))try{let B=A(z,j(I[z]));[].concat(m.aliases[z]||[],z).forEach(oe=>{K.add(oe),I[oe]=B})}catch(B){L=B}})}function M(I){return m.keys.forEach(j=>{~j.indexOf(".")||typeof I[j]>"u"&&(I[j]=void 0)}),I}function U(I,j,K,z=!1){Object.keys(K).forEach(function(B){V(I,B.split("."))||(J(I,B.split("."),K[B]),z&&(p[B]=!0),(j[B]||[]).forEach(function(oe){V(I,oe.split("."))||J(I,oe.split("."),K[B])}))})}function V(I,j){let K=I;a["dot-notation"]||(j=[j.join(".")]),j.slice(0,-1).forEach(function(B){K=K[B]||{}});let z=j[j.length-1];return typeof K!="object"?!1:z in K}function J(I,j,K){let z=I;a["dot-notation"]||(j=[j.join(".")]),j.slice(0,-1).forEach(function(Me){Me=A0(Me),typeof z=="object"&&z[Me]===void 0&&(z[Me]={}),typeof z[Me]!="object"||Array.isArray(z[Me])?(Array.isArray(z[Me])?z[Me].push({}):z[Me]=[z[Me],{}],z=z[Me][z[Me].length-1]):z=z[Me]});let B=A0(j[j.length-1]),oe=q(j.join("."),m.arrays),ie=Array.isArray(K),de=a["duplicate-arguments-array"];!de&&q(B,m.nargs)&&(de=!0,(!Ae(z[B])&&m.nargs[B]===1||Array.isArray(z[B])&&z[B].length===m.nargs[B])&&(z[B]=void 0)),K===nf()?z[B]=nf(z[B]):Array.isArray(z[B])?de&&oe&&ie?z[B]=a["flatten-duplicate-arrays"]?z[B].concat(K):(Array.isArray(z[B][0])?z[B]:[z[B]]).concat([K]):!de&&!!oe==!!ie?z[B]=K:z[B]=z[B].concat([K]):z[B]===void 0&&oe?z[B]=ie?K:[K]:de&&!(z[B]===void 0||q(B,m.counts)||q(B,m.bools))?z[B]=[z[B],K]:z[B]=K}function he(...I){I.forEach(function(j){Object.keys(j||{}).forEach(function(K){m.aliases[K]||(m.aliases[K]=[].concat(o[K]||[]),m.aliases[K].concat(K).forEach(function(z){if(/-/.test(z)&&a["camel-case-expansion"]){let B=ii(z);B!==K&&m.aliases[K].indexOf(B)===-1&&(m.aliases[K].push(B),d[B]=!0)}}),m.aliases[K].concat(K).forEach(function(z){if(z.length>1&&/[A-Z]/.test(z)&&a["camel-case-expansion"]){let B=ja(z,"-");B!==K&&m.aliases[K].indexOf(B)===-1&&(m.aliases[K].push(B),d[B]=!0)}}),m.aliases[K].forEach(function(z){m.aliases[z]=[K].concat(m.aliases[K].filter(function(B){return z!==B}))}))})})}function q(I,j){let K=[].concat(m.aliases[I]||[],I),z=Object.keys(j),B=K.find(oe=>z.includes(oe));return B?j[B]:!1}function H(I){let j=Object.keys(m);return[].concat(j.map(z=>m[z])).some(function(z){return Array.isArray(z)?z.includes(I):z[I]})}function W(I,...j){return[].concat(...j).some(function(z){let B=I.match(z);return B&&H(B[1])})}function Z(I){if(I.match(P)||!I.match(/^-[^-]+/))return!1;let j=!0,K,z=I.slice(1).split("");for(let B=0;B<z.length;B++){if(K=I.slice(B+2),!H(z[B])){j=!1;break}if(z[B+1]&&z[B+1]==="="||K==="-"||/[A-Za-z]/.test(z[B])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(K)||z[B+1]&&z[B+1].match(/\W/))break}return j}function ee(I){return a["unknown-options-as-args"]&&G(I)}function G(I){return I=I.replace(/^-{3,}/,"--"),I.match(P)||Z(I)?!1:!W(I,/^-+([^=]+?)=[\s\S]*$/,S,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ne(I){return!q(I,m.bools)&&!q(I,m.counts)&&`${I}`in u?u[I]:Y(ce(I))}function Y(I){return{[ur.BOOLEAN]:!0,[ur.STRING]:"",[ur.NUMBER]:void 0,[ur.ARRAY]:[]}[I]}function ce(I){let j=ur.BOOLEAN;return q(I,m.strings)?j=ur.STRING:q(I,m.numbers)?j=ur.NUMBER:q(I,m.bools)?j=ur.BOOLEAN:q(I,m.arrays)&&(j=ur.ARRAY),j}function Ae(I){return I===void 0}function Fe(){Object.keys(m.counts).find(I=>q(I,m.arrays)?(L=Error(y("Invalid configuration: %s, opts.count excludes opts.array.",I)),!0):q(I,m.nargs)?(L=Error(y("Invalid configuration: %s, opts.count excludes opts.narg.",I)),!0):!1)}return{aliases:Object.assign({},m.aliases),argv:Object.assign(_,b),configuration:a,defaulted:Object.assign({},p),error:L,newAliases:Object.assign({},d)}}};function ck(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(o,a,u){return u.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function nf(e){return e!==void 0?e+1:1}function A0(e){return e==="__proto__"?"___proto___":e}function lk(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var S0=require("fs");var sf,of,af,E0=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,b0=(of=(sf=process==null?void 0:process.versions)===null||sf===void 0?void 0:sf.node)!==null&&of!==void 0?of:(af=process==null?void 0:process.version)===null||af===void 0?void 0:af.slice(1);if(b0&&Number(b0.match(/^([^.]+)/)[1])<E0)throw Error(`yargs parser supports a minimum Node.js version of ${E0}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var fk=process?process.env:{},C0=new Wa({cwd:process.cwd,env:()=>fk,format:w0.format,normalize:qa.normalize,resolve:qa.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,S0.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),ro=function(t,r){return C0.parse(t.slice(),r).argv};ro.detailed=function(e,t){return C0.parse(e.slice(),t)};ro.camelCase=ii;ro.decamelize=ja;ro.looksLikeNumber=Ba;var uf=ro;var kr=require("path");function x0(){return hk()?0:1}function hk(){return dk()&&!process.defaultApp}function dk(){return!!process.versions.electron}function cf(e){return e.slice(x0()+1)}function P0(){return process.argv[x0()]}var We=class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};var Hi=require("fs"),O0=require("util"),_0=require("path"),R0={fs:{readFileSync:Hi.readFileSync,writeFile:Hi.writeFile},format:O0.format,resolve:_0.resolve,exists:e=>{try{return(0,Hi.statSync)(e).isFile()}catch{return!1}}};var Fr,lf=class{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=function(){};return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),Fr.format.apply(Fr.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),s=function(){};typeof t[t.length-1]=="function"&&(s=t.pop()),this.cache[this.locale]||this._readLocaleFile();let o=i===1?r:n;this.cache[this.locale][r]&&(o=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();let a=[o];return~o.indexOf("%d")&&a.push(i),Fr.format.apply(Fr.format,a.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,s){let o=r[s+1];n+=i,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,s=r.cb,o=this._resolveLocaleFile(n,i),a=JSON.stringify(this.cache[i],null,2);Fr.fs.writeFile(o,a,"utf-8",function(u){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(u)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{Fr.fs.readFileSync&&(t=JSON.parse(Fr.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,r){let n=Fr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=Fr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return Fr.exists(t)}};function F0(e,t){Fr=t;let r=new lf(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}var pk=e=>F0(e,R0),k0=pk;var yk={},gk="require is not supported by ESM",D0="loading a directory of commands is not supported yet for ESM",no;try{no=(0,I0.fileURLToPath)(yk.url)}catch{no=process.cwd()}var mk=no.substring(0,no.lastIndexOf("node_modules")),ff={assert:{notStrictEqual:Ga.notStrictEqual,strictEqual:Ga.strictEqual},cliui:rf,findUp:y0,getEnv:e=>process.env[e],inspect:L0.inspect,getCallerFile:()=>{throw new We(D0)},getProcessArgvBin:P0,mainFilename:mk||process.cwd(),Parser:uf,path:{basename:kr.basename,dirname:kr.dirname,extname:kr.extname,relative:kr.relative,resolve:kr.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:T0.readFileSync,require:()=>{throw new We(gk)},requireDirectory:()=>{throw new We(D0)},stringWidth:e=>[...e].length,y18n:k0({directory:(0,kr.resolve)(no,"../../../locales"),updateFiles:!1})};function kt(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function hf(e,t){t.assert.strictEqual(typeof e,"string")}function zi(e){return Object.keys(e)}function qe(e){return!!e&&!!e.then&&typeof e.then=="function"}function Cn(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((o,a)=>{let u=!1;o=o.replace(/\s/g,""),/\.+[\]>]/.test(o)&&a===r.length-1&&(u=!0),/^\[/.test(o)?s.optional.push({cmd:o.replace(n,"").split("|"),variadic:u}):s.demanded.push({cmd:o.replace(n,"").split("|"),variadic:u})}),s}var vk=["first","second","third","fourth","fifth","sixth"];function le(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[Cn(`cmd ${e}`),t,r]}try{let i=0,[s,o,a]=n(),u=[].slice.call(o);for(;u.length&&u[u.length-1]===void 0;)u.pop();let c=a||u.length;if(c<s.demanded.length)throw new We(`Not enough arguments provided. Expected ${s.demanded.length} but received ${u.length}.`);let f=s.demanded.length+s.optional.length;if(c>f)throw new We(`Too many arguments provided. Expected max ${f} but received ${c}.`);s.demanded.forEach(l=>{let h=u.shift(),d=N0(h);l.cmd.filter(y=>y===d||y==="*").length===0&&$0(d,l.cmd,i),i+=1}),s.optional.forEach(l=>{if(u.length===0)return;let h=u.shift(),d=N0(h);l.cmd.filter(y=>y===d||y==="*").length===0&&$0(d,l.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}function N0(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function $0(e,t,r){throw new We(`Invalid ${vk[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}var Ua=class{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(le("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let o=t[s];o.applyBeforeValidation=r,o.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=r,s.global=n,s.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let s=[...n[r]||[],r];return i.option?!s.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};function M0(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}function si(e,t,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(qe(i))return i.then(o=>Promise.all([o,s(o,t)])).then(([o,a])=>Object.assign(o,a));{let o=s(i,t);return qe(o)?o.then(a=>Object.assign(i,a)):Object.assign(i,o)}},e)}function oi(e,t,r=n=>{throw n}){try{let n=Ak(e)?e():e;return qe(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}function Ak(e){return typeof e=="function"}function df(e){if(typeof require>"u")return null;for(let t=0,r=Object.keys(require.cache),n;t<r.length;t++)if(n=require.cache[r[t]],n.exports===e)return n;return null}var Yi=/(^\*)|(^\$0)/,pf=class{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let s=typeof i.visit=="function"?i.visit:o=>o;i.visit=(o,a,u)=>{let c=s(o,a,u);if(c){if(this.requireCache.has(a))return c;this.requireCache.add(a),this.addHandler(c)}return c},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,s,o){let a=[],u=M0(s);if(i=i||(()=>{}),Array.isArray(t))if(Ek(t))[t,...a]=t;else for(let c of t)this.addHandler(c);else if(wk(t)){let c=Array.isArray(t.command)||typeof t.command=="string"?t.command:this.moduleName(t);t.aliases&&(c=[].concat(c).concat(t.aliases)),this.addHandler(c,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(j0(n)){this.addHandler([t].concat(a),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let c=Cn(t);a=a.map(h=>Cn(h).cmd);let f=!1,l=[c.cmd].concat(a).filter(h=>Yi.test(h)?(f=!0,!1):!0);l.length===0&&f&&l.push("$0"),f&&(c.cmd=l[0],a=l.slice(1),t=t.replace(Yi,c.cmd)),a.forEach(h=>{this.aliasMap[h]=c.cmd}),r!==!1&&this.usage.command(t,r,f,a,o),this.handlers[c.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:u,deprecated:o,demanded:c.demanded,optional:c.optional},f&&(this.defaultCommand=this.handlers[c.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,s,o){let a=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,u=r.getInternalMethods().getContext(),c=u.commands.slice(),f=!t;t&&(u.commands.push(t),u.fullCommands.push(a.original));let l=this.applyBuilderUpdateUsageAndParse(f,a,r,n.aliases,c,i,s,o);return qe(l)?l.then(h=>this.applyMiddlewareAndGetResult(f,a,h.innerArgv,u,s,h.aliases,r)):this.applyMiddlewareAndGetResult(f,a,l.innerArgv,u,s,l.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,o,a,u){let c=r.builder,f=n;if(Ha(c)){n.getInternalMethods().getUsageInstance().freeze();let l=c(n.getInternalMethods().reset(i),u);if(qe(l))return l.then(h=>(f=W0(h)?h:n,this.parseAndUpdateUsage(t,r,f,s,o,a)))}else bk(c)&&(n.getInternalMethods().getUsageInstance().freeze(),f=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(l=>{f.option(l,c[l])}));return this.parseAndUpdateUsage(t,r,f,s,o,a)}parseAndUpdateUsage(t,r,n,i,s,o){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let a=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,o);return qe(a)?a.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):{aliases:n.parsed.aliases,innerArgv:a}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=Yi.test(r.original)?r.original.replace(Yi,"").trim():r.original,i=t.filter(s=>!Yi.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,o,a,u){if(!o.getInternalMethods().getHasOutput()){let c=o.getInternalMethods().runValidation(s,u,o.parsed.error,t);n=oi(n,f=>(c(f),f))}if(r.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();let c=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(n,c,!1,!1),n=si(n,o,a,!1),n=oi(n,f=>{let l=r.handler(f);return qe(l)?l.then(()=>f):f}),t||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),qe(n)&&!o.getInternalMethods().hasParseCallback()&&n.catch(f=>{try{o.getInternalMethods().getUsageInstance().fail(null,f)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,s,o,a){let u={};if(s)return n;a.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,a));let c=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),f=si(n,a,c,!0);return qe(f)?f.then(l=>this.handleValidationAndGetResult(t,r,l,i,o,a,c,u)):this.handleValidationAndGetResult(t,r,f,i,o,a,c,u)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),o=t.optional.slice(0),a={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let u=s.shift();this.populatePositional(u,r,a)}for(;o.length;){let u=o.shift();this.populatePositional(u,r,a)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,a,this.cmdToParseOptions(t.original),i),a}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=Cn(t);return n.demanded.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let c of Object.keys(n.alias))s.alias[c]=(s.alias[c]||[]).concat(n.alias[c]);s.array=s.array.concat(n.array),s.config={};let o=[];if(Object.keys(r).forEach(c=>{r[c].map(f=>{s.configuration["unknown-options-as-args"]&&(s.key[c]=!0),o.push(`--${c}`),o.push(f)})}),!o.length)return;let a=Object.assign({},s.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(o,Object.assign({},s,{configuration:a}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let c=Object.keys(r);Object.keys(r).forEach(f=>{c.push(...u.aliases[f])}),Object.keys(u.argv).forEach(f=>{c.includes(f)&&(r[f]||(r[f]=u.argv[f]),!this.isInConfigs(i,f)&&!this.isDefaulted(i,f)&&Object.prototype.hasOwnProperty.call(t,f)&&Object.prototype.hasOwnProperty.call(u.argv,f)&&(Array.isArray(t[f])||Array.isArray(u.argv[f]))?t[f]=[].concat(t[f],u.argv[f]):t[f]=u.argv[f])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=Yi.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(Ha(r))return r(t,!0);j0(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=df(t);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(r.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:r,desc:n}){for(let i of[t,r,n]){if(typeof i=="string"||i===!1)return i;kt(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();kt(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function B0(e,t,r,n){return new pf(e,t,r,n)}function j0(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}function Ek(e){return e.every(t=>typeof t=="string")}function Ha(e){return typeof e=="function"}function bk(e){return typeof e=="object"}function wk(e){return typeof e=="object"&&!Array.isArray(e)}function xn(e={},t=()=>!0){let r={};return zi(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}function Pn(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}function Sk(e){return typeof e=="boolean"}function G0(e,t){let r=t.y18n.__,n={},i=[];n.failFn=function(v){i.push(v)};let s=null,o=null,a=!0;n.showHelpOnFail=function(v=!0,A){let[C,E]=typeof v=="string"?[!0,v]:[v,A];return e.getInternalMethods().isGlobalContext()&&(o=E),s=E,a=C,n};let u=!1;n.fail=function(v,A){let C=e.getInternalMethods().getLoggerInstance();if(i.length)for(let E=i.length-1;E>=0;--E){let w=i[E];if(Sk(w)){if(A)throw A;if(v)throw Error(v)}else w(v,A,n)}else{if(e.getExitProcess()&&Pn(!0),!u){u=!0,a&&(e.showHelp("error"),C.error()),(v||A)&&C.error(v||A);let E=s||o;E&&((v||A)&&C.error(""),C.error(E))}if(A=A||new We(v),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,A);throw A}};let c=[],f=!1;n.usage=(g,v)=>g===null?(f=!0,c=[],n):(f=!1,c.push([g,v||""]),n),n.getUsage=()=>c,n.getUsageDisabled=()=>f,n.getPositionalGroupName=()=>r("Positionals:");let l=[];n.example=(g,v)=>{l.push([g,v||""])};let h=[];n.command=function(v,A,C,E,w=!1){C&&(h=h.map(T=>(T[2]=!1,T))),h.push([v,A||"",C,E,w])},n.getCommands=()=>h;let d={};n.describe=function(v,A){Array.isArray(v)?v.forEach(C=>{n.describe(C,A)}):typeof v=="object"?Object.keys(v).forEach(C=>{n.describe(C,v[C])}):d[v]=A},n.getDescriptions=()=>d;let p=[];n.epilog=g=>{p.push(g)};let y=!1,m;n.wrap=g=>{y=!0,m=g},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(y||(m=k(),y=!0),m);let P="__yargsString__:";n.deferY18nLookup=g=>P+g,n.help=function(){if(O)return O;L();let v=e.customScriptName?e.$0:t.path.basename(e.$0),A=e.getDemandedOptions(),C=e.getDemandedCommands(),E=e.getDeprecatedOptions(),w=e.getGroups(),T=e.getOptions(),N=[];N=N.concat(Object.keys(d)),N=N.concat(Object.keys(A)),N=N.concat(Object.keys(C)),N=N.concat(Object.keys(T.default)),N=N.filter(_),N=Object.keys(N.reduce((W,Z)=>(Z!=="_"&&(W[Z]=!0),W),{}));let M=n.getWrap(),U=t.cliui({width:M,wrap:!!M});if(!f){if(c.length)c.forEach(W=>{U.div({text:`${W[0].replace(/\$0/g,v)}`}),W[1]&&U.div({text:`${W[1]}`,padding:[1,0,0,0]})}),U.div();else if(h.length){let W=null;C._?W=`${v} <${r("command")}>
105
106
  `:W=`${v} [${r("command")}]
106
- `,U.div(`${W}`)}}if(h.length>1||h.length===1&&!h[0][2]){U.div(r("Commands:"));let W=e.getInternalMethods().getContext(),Z=W.commands.length?`${W.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(h=h.sort((G,re)=>G[0].localeCompare(re[0])));let ee=v?`${v} `:"";h.forEach(G=>{let re=`${ee}${Z}${G[0].replace(/^\$0 ?/,"")}`;U.span({text:re,padding:[0,2,0,2],width:S(h,M,`${v}${Z}`)+4},{text:G[1]});let Y=[];G[2]&&Y.push(`[${r("default")}]`),G[3]&&G[3].length&&Y.push(`[${r("aliases:")} ${G[3].join(", ")}]`),G[4]&&(typeof G[4]=="string"?Y.push(`[${r("deprecated: %s",G[4])}]`):Y.push(`[${r("deprecated")}]`)),Y.length?U.div({text:Y.join(" "),padding:[0,0,0,2],align:"right"}):U.div()}),U.div()}let V=(Object.keys(T.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);N=N.filter(W=>!e.parsed.newAliases[W]&&V.every(Z=>(T.alias[Z]||[]).indexOf(W)===-1));let X=r("Options:");w[X]||(w[X]=[]),b(N,T.alias,w,X);let fe=W=>/^--/.test(qa(W)),q=Object.keys(w).filter(W=>w[W].length>0).map(W=>{let Z=w[W].filter(_).map(ee=>{if(V.includes(ee))return ee;for(let G=0,re;(re=V[G])!==void 0;G++)if((T.alias[re]||[]).includes(ee))return re;return ee});return{groupName:W,normalizedKeys:Z}}).filter(({normalizedKeys:W})=>W.length>0).map(({groupName:W,normalizedKeys:Z})=>{let ee=Z.reduce((G,re)=>(G[re]=[re].concat(T.alias[re]||[]).map(Y=>W===n.getPositionalGroupName()?Y:(/^[0-9]$/.test(Y)?T.boolean.includes(re)?"-":"--":Y.length>1?"--":"-")+Y).sort((Y,ue)=>fe(Y)===fe(ue)?0:fe(Y)?1:-1).join(", "),G),{});return{groupName:W,normalizedKeys:Z,switches:ee}});if(q.filter(({groupName:W})=>W!==n.getPositionalGroupName()).some(({normalizedKeys:W,switches:Z})=>!W.every(ee=>fe(Z[ee])))&&q.filter(({groupName:W})=>W!==n.getPositionalGroupName()).forEach(({normalizedKeys:W,switches:Z})=>{W.forEach(ee=>{fe(Z[ee])&&(Z[ee]=iD(Z[ee],4))})}),q.forEach(({groupName:W,normalizedKeys:Z,switches:ee})=>{U.div(W),Z.forEach(G=>{let re=ee[G],Y=d[G]||"",ue=null;Y.includes(O)&&(Y=r(Y.substring(O.length))),T.boolean.includes(G)&&(ue=`[${r("boolean")}]`),T.count.includes(G)&&(ue=`[${r("count")}]`),T.string.includes(G)&&(ue=`[${r("string")}]`),T.normalize.includes(G)&&(ue=`[${r("string")}]`),T.array.includes(G)&&(ue=`[${r("array")}]`),T.number.includes(G)&&(ue=`[${r("number")}]`);let ve=j=>typeof j=="string"?`[${r("deprecated: %s",j)}]`:`[${r("deprecated")}]`,De=[G in E?ve(E[G]):null,ue,G in A?`[${r("required")}]`:null,T.choices&&T.choices[G]?`[${r("choices:")} ${n.stringifiedValues(T.choices[G])}]`:null,L(T.default[G],T.defaultDescription[G])].filter(Boolean).join(" ");U.span({text:qa(re),padding:[0,2,0,2+R0(re)],width:S(ee,M)+4},Y);let I=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;De&&!I?U.div({text:De,padding:[0,0,0,2],align:"right"}):U.div()}),U.div()}),l.length&&(U.div(r("Examples:")),l.forEach(W=>{W[0]=W[0].replace(/\$0/g,v)}),l.forEach(W=>{W[1]===""?U.div({text:W[0],padding:[0,2,0,2]}):U.div({text:W[0],padding:[0,2,0,2],width:S(l,M)+4},{text:W[1]})}),U.div()),p.length>0){let W=p.map(Z=>Z.replace(/\$0/g,v)).join(`
107
+ `,U.div(`${W}`)}}if(h.length>1||h.length===1&&!h[0][2]){U.div(r("Commands:"));let W=e.getInternalMethods().getContext(),Z=W.commands.length?`${W.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(h=h.sort((G,ne)=>G[0].localeCompare(ne[0])));let ee=v?`${v} `:"";h.forEach(G=>{let ne=`${ee}${Z}${G[0].replace(/^\$0 ?/,"")}`;U.span({text:ne,padding:[0,2,0,2],width:S(h,M,`${v}${Z}`)+4},{text:G[1]});let Y=[];G[2]&&Y.push(`[${r("default")}]`),G[3]&&G[3].length&&Y.push(`[${r("aliases:")} ${G[3].join(", ")}]`),G[4]&&(typeof G[4]=="string"?Y.push(`[${r("deprecated: %s",G[4])}]`):Y.push(`[${r("deprecated")}]`)),Y.length?U.div({text:Y.join(" "),padding:[0,0,0,2],align:"right"}):U.div()}),U.div()}let V=(Object.keys(T.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);N=N.filter(W=>!e.parsed.newAliases[W]&&V.every(Z=>(T.alias[Z]||[]).indexOf(W)===-1));let J=r("Options:");w[J]||(w[J]=[]),b(N,T.alias,w,J);let he=W=>/^--/.test(za(W)),q=Object.keys(w).filter(W=>w[W].length>0).map(W=>{let Z=w[W].filter(_).map(ee=>{if(V.includes(ee))return ee;for(let G=0,ne;(ne=V[G])!==void 0;G++)if((T.alias[ne]||[]).includes(ee))return ne;return ee});return{groupName:W,normalizedKeys:Z}}).filter(({normalizedKeys:W})=>W.length>0).map(({groupName:W,normalizedKeys:Z})=>{let ee=Z.reduce((G,ne)=>(G[ne]=[ne].concat(T.alias[ne]||[]).map(Y=>W===n.getPositionalGroupName()?Y:(/^[0-9]$/.test(Y)?T.boolean.includes(ne)?"-":"--":Y.length>1?"--":"-")+Y).sort((Y,ce)=>he(Y)===he(ce)?0:he(Y)?1:-1).join(", "),G),{});return{groupName:W,normalizedKeys:Z,switches:ee}});if(q.filter(({groupName:W})=>W!==n.getPositionalGroupName()).some(({normalizedKeys:W,switches:Z})=>!W.every(ee=>he(Z[ee])))&&q.filter(({groupName:W})=>W!==n.getPositionalGroupName()).forEach(({normalizedKeys:W,switches:Z})=>{W.forEach(ee=>{he(Z[ee])&&(Z[ee]=Ck(Z[ee],4))})}),q.forEach(({groupName:W,normalizedKeys:Z,switches:ee})=>{U.div(W),Z.forEach(G=>{let ne=ee[G],Y=d[G]||"",ce=null;Y.includes(P)&&(Y=r(Y.substring(P.length))),T.boolean.includes(G)&&(ce=`[${r("boolean")}]`),T.count.includes(G)&&(ce=`[${r("count")}]`),T.string.includes(G)&&(ce=`[${r("string")}]`),T.normalize.includes(G)&&(ce=`[${r("string")}]`),T.array.includes(G)&&(ce=`[${r("array")}]`),T.number.includes(G)&&(ce=`[${r("number")}]`);let Ae=j=>typeof j=="string"?`[${r("deprecated: %s",j)}]`:`[${r("deprecated")}]`,Fe=[G in E?Ae(E[G]):null,ce,G in A?`[${r("required")}]`:null,T.choices&&T.choices[G]?`[${r("choices:")} ${n.stringifiedValues(T.choices[G])}]`:null,D(T.default[G],T.defaultDescription[G])].filter(Boolean).join(" ");U.span({text:za(ne),padding:[0,2,0,2+q0(ne)],width:S(ee,M)+4},Y);let I=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Fe&&!I?U.div({text:Fe,padding:[0,0,0,2],align:"right"}):U.div()}),U.div()}),l.length&&(U.div(r("Examples:")),l.forEach(W=>{W[0]=W[0].replace(/\$0/g,v)}),l.forEach(W=>{W[1]===""?U.div({text:W[0],padding:[0,2,0,2]}):U.div({text:W[0],padding:[0,2,0,2],width:S(l,M)+4},{text:W[1]})}),U.div()),p.length>0){let W=p.map(Z=>Z.replace(/\$0/g,v)).join(`
107
108
  `);U.div(`${W}
108
- `)}return U.toString().replace(/\s*$/,"")};function S(g,v,A){let C=0;return Array.isArray(g)||(g=Object.values(g).map(E=>[E])),g.forEach(E=>{C=Math.max(t.stringWidth(A?`${A} ${qa(E[0])}`:qa(E[0]))+R0(E[0]),C)}),v&&(C=Math.min(C,parseInt((v*.5).toString(),10))),C}function k(){let g=e.getDemandedOptions(),v=e.getOptions();(Object.keys(v.alias)||[]).forEach(A=>{v.alias[A].forEach(C=>{d[C]&&n.describe(A,d[C]),C in g&&e.demandOption(A,g[C]),v.boolean.includes(C)&&e.boolean(A),v.count.includes(C)&&e.count(A),v.string.includes(C)&&e.string(A),v.normalize.includes(C)&&e.normalize(A),v.array.includes(C)&&e.array(A),v.number.includes(C)&&e.number(A)})})}let P;n.cacheHelpMessage=function(){P=this.help()},n.clearCachedHelpMessage=function(){P=void 0},n.hasCachedHelpMessage=function(){return!!P};function b(g,v,A,C){let E=[],w=null;return Object.keys(A).forEach(T=>{E=E.concat(A[T])}),g.forEach(T=>{w=[T].concat(v[T]),w.some(N=>E.indexOf(N)!==-1)||A[C].push(T)}),E}function _(g){return e.getOptions().hiddenOptions.indexOf(g)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}n.showHelp=g=>{let v=e.getInternalMethods().getLoggerInstance();g||(g="error"),(typeof g=="function"?g:v[g])(n.help())},n.functionDescription=g=>["(",g.name?t.Parser.decamelize(g.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(v,A){let C="",E=A||", ",w=[].concat(v);return!v||!w.length||w.forEach(T=>{C.length&&(C+=E),C+=JSON.stringify(T)}),C};function L(g,v){let A=`[${r("default:")} `;if(g===void 0&&!v)return null;if(v)A+=v;else switch(typeof g){case"string":A+=`"${g}"`;break;case"object":A+=JSON.stringify(g);break;default:A+=g}return`${A}]`}function D(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}let $=null;n.version=g=>{$=g},n.showVersion=g=>{let v=e.getInternalMethods().getLoggerInstance();g||(g="error"),(typeof g=="function"?g:v[g])($)},n.reset=function(v){return s=null,u=!1,c=[],f=!1,p=[],l=[],h=[],d=On(d,A=>!v[A]),n};let x=[];return n.freeze=function(){x.push({failMessage:s,failureOutput:u,usages:c,usageDisabled:f,epilogs:p,examples:l,commands:h,descriptions:d})},n.unfreeze=function(v=!1){let A=x.pop();A&&(v?(d={...A.descriptions,...d},h=[...A.commands,...h],c=[...A.usages,...c],l=[...A.examples,...l],p=[...A.epilogs,...p]):{failMessage:s,failureOutput:u,usages:c,usageDisabled:f,epilogs:p,examples:l,commands:h,descriptions:d}=A)},n}function uf(e){return typeof e=="object"}function iD(e,t){return uf(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}function R0(e){return uf(e)?e.indentation:0}function qa(e){return uf(e)?e.text:e}var D0=`###-begin-{{app_name}}-completions-###
109
+ `)}return U.toString().replace(/\s*$/,"")};function S(g,v,A){let C=0;return Array.isArray(g)||(g=Object.values(g).map(E=>[E])),g.forEach(E=>{C=Math.max(t.stringWidth(A?`${A} ${za(E[0])}`:za(E[0]))+q0(E[0]),C)}),v&&(C=Math.min(C,parseInt((v*.5).toString(),10))),C}function L(){let g=e.getDemandedOptions(),v=e.getOptions();(Object.keys(v.alias)||[]).forEach(A=>{v.alias[A].forEach(C=>{d[C]&&n.describe(A,d[C]),C in g&&e.demandOption(A,g[C]),v.boolean.includes(C)&&e.boolean(A),v.count.includes(C)&&e.count(A),v.string.includes(C)&&e.string(A),v.normalize.includes(C)&&e.normalize(A),v.array.includes(C)&&e.array(A),v.number.includes(C)&&e.number(A)})})}let O;n.cacheHelpMessage=function(){O=this.help()},n.clearCachedHelpMessage=function(){O=void 0},n.hasCachedHelpMessage=function(){return!!O};function b(g,v,A,C){let E=[],w=null;return Object.keys(A).forEach(T=>{E=E.concat(A[T])}),g.forEach(T=>{w=[T].concat(v[T]),w.some(N=>E.indexOf(N)!==-1)||A[C].push(T)}),E}function _(g){return e.getOptions().hiddenOptions.indexOf(g)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}n.showHelp=g=>{let v=e.getInternalMethods().getLoggerInstance();g||(g="error"),(typeof g=="function"?g:v[g])(n.help())},n.functionDescription=g=>["(",g.name?t.Parser.decamelize(g.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(v,A){let C="",E=A||", ",w=[].concat(v);return!v||!w.length||w.forEach(T=>{C.length&&(C+=E),C+=JSON.stringify(T)}),C};function D(g,v){let A=`[${r("default:")} `;if(g===void 0&&!v)return null;if(v)A+=v;else switch(typeof g){case"string":A+=`"${g}"`;break;case"object":A+=JSON.stringify(g);break;default:A+=g}return`${A}]`}function k(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}let $=null;n.version=g=>{$=g},n.showVersion=g=>{let v=e.getInternalMethods().getLoggerInstance();g||(g="error"),(typeof g=="function"?g:v[g])($)},n.reset=function(v){return s=null,u=!1,c=[],f=!1,p=[],l=[],h=[],d=xn(d,A=>!v[A]),n};let x=[];return n.freeze=function(){x.push({failMessage:s,failureOutput:u,usages:c,usageDisabled:f,epilogs:p,examples:l,commands:h,descriptions:d})},n.unfreeze=function(v=!1){let A=x.pop();A&&(v?(d={...A.descriptions,...d},h=[...A.commands,...h],c=[...A.usages,...c],l=[...A.examples,...l],p=[...A.epilogs,...p]):{failMessage:s,failureOutput:u,usages:c,usageDisabled:f,epilogs:p,examples:l,commands:h,descriptions:d}=A)},n}function gf(e){return typeof e=="object"}function Ck(e,t){return gf(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}function q0(e){return gf(e)?e.indentation:0}function za(e){return gf(e)?e.text:e}var U0=`###-begin-{{app_name}}-completions-###
109
110
  #
110
111
  # yargs command completion script
111
112
  #
@@ -133,7 +134,7 @@ _{{app_name}}_yargs_completions()
133
134
  }
134
135
  complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
135
136
  ###-end-{{app_name}}-completions-###
136
- `,L0=`#compdef {{app_name}}
137
+ `,H0=`#compdef {{app_name}}
137
138
  ###-begin-{{app_name}}-completions-###
138
139
  #
139
140
  # yargs command completion script
@@ -152,46 +153,46 @@ _{{app_name}}_yargs_completions()
152
153
  }
153
154
  compdef _{{app_name}}_yargs_completions {{app_name}}
154
155
  ###-end-{{app_name}}-completions-###
155
- `;var cf=class{constructor(t,r,n,i){var s,o,a;this.yargs=t,this.usage=r,this.command=n,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(a=((s=this.shim.getEnv("SHELL"))===null||s===void 0?void 0:s.includes("zsh"))||((o=this.shim.getEnv("ZSH_NAME"))===null||o===void 0?void 0:o.includes("zsh")))!==null&&a!==void 0?a:!1}defaultCompletion(t,r,n,i){let s=this.command.getCommandHandlers();for(let a=0,u=t.length;a<u;++a)if(s[t[a]]&&s[t[a]].builder){let c=s[t[a]].builder;if(Wa(c)){this.indexAfterLastReset=a+1;let f=this.yargs.getInternalMethods().reset();return c(f,!0),f.argv}}let o=[];this.commandCompletions(o,t,n),this.optionCompletions(o,t,r,n),this.choicesFromOptionsCompletions(o,t,r,n),this.choicesFromPositionalsCompletions(o,t,r,n),i(null,o)}commandCompletions(t,r,n){let i=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&i[i.length-1]!==n&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(s=>{let o=xn(s[0]).cmd;if(r.indexOf(o)===-1)if(!this.zshShell)t.push(o);else{let a=s[1]||"";t.push(o.replace(/:/g,"\\:")+":"+a)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let s=this.yargs.getOptions(),o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach(a=>{let u=!!s.configuration["boolean-negation"]&&s.boolean.includes(a);!o.includes(a)&&!s.hiddenOptions.includes(a)&&!this.argsContainKey(r,a,u)&&this.completeOptionKey(a,t,i,u&&!!s.default[a])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let s=this.getPreviousArgChoices(r);s&&s.length>0&&t.push(...s.map(o=>o.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],o=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),a=s[n._.length-o-1];if(!a)return;let u=this.yargs.getOptions().choices[a]||[];for(let c of u)c.startsWith(i)&&t.push(c.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],n="";if(!r.startsWith("-")&&t.length>1&&(n=r,r=t[t.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),s=this.yargs.getOptions(),o=[i,...this.yargs.getAliases()[i]||[]],a;for(let u of o)if(Object.prototype.hasOwnProperty.call(s.key,u)&&Array.isArray(s.choices[u])){a=s.choices[u];break}if(a)return a.filter(u=>!n||u.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=s=>t.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s)!==-1;if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let s of this.aliases[r])if(i(s))return!0}return!1}completeOptionKey(t,r,n,i){var s,o,a,u;let c=t;if(this.zshShell){let d=this.usage.getDescriptions(),p=(o=(s=this===null||this===void 0?void 0:this.aliases)===null||s===void 0?void 0:s[t])===null||o===void 0?void 0:o.find(O=>{let S=d[O];return typeof S=="string"&&S.length>0}),y=p?d[p]:void 0,m=(u=(a=d[t])!==null&&a!==void 0?a:y)!==null&&u!==void 0?u:"";c=`${t.replace(/:/g,"\\:")}:${m.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let f=d=>/^--/.test(d),l=d=>/^[^0-9]$/.test(d),h=!f(n)&&l(t)?"-":"--";r.push(h+c),i&&r.push(h+"no-"+c)}customCompletion(t,r,n,i){if(Dt(this.customCompletionFunction,null,this.shim),oD(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return qe(s)?s.then(o=>{this.shim.process.nextTick(()=>{i(null,o)})}).catch(o=>{this.shim.process.nextTick(()=>{i(o,void 0)})}):i(null,s)}else return aD(this.customCompletionFunction)?this.customCompletionFunction(n,r,(s=i)=>this.defaultCompletion(t,r,n,s),s=>{i(null,s)}):this.customCompletionFunction(n,r,s=>{i(null,s)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),s=this.customCompletionFunction?o=>this.customCompletion(t,o,n,r):o=>this.defaultCompletion(t,o,n,r);return qe(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?L0:D0,i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),n=n.replace(/{{app_name}}/g,i),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}};function k0(e,t,r,n){return new cf(e,t,r,n)}function oD(e){return e.length<3}function aD(e){return e.length>3}function T0(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let r=[],n;for(n=0;n<=t.length;n++)r[n]=[n];let i;for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}var I0=["$0","--","_"];function N0(e,t,r){let n=r.y18n.__,i=r.y18n.__n,s={};s.nonOptionCount=function(l){let h=e.getDemandedCommands(),p=l._.length+(l["--"]?l["--"].length:0)-e.getInternalMethods().getContext().commands.length;h._&&(p<h._.min||p>h._.max)&&(p<h._.min?h._.minMsg!==void 0?t.fail(h._.minMsg?h._.minMsg.replace(/\$0/g,p.toString()).replace(/\$1/,h._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",p,p.toString(),h._.min.toString())):p>h._.max&&(h._.maxMsg!==void 0?t.fail(h._.maxMsg?h._.maxMsg.replace(/\$0/g,p.toString()).replace(/\$1/,h._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",p,p.toString(),h._.max.toString()))))},s.positionalCount=function(l,h){h<l&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",h,h+"",l+""))},s.requiredArguments=function(l,h){let d=null;for(let p of Object.keys(h))(!Object.prototype.hasOwnProperty.call(l,p)||typeof l[p]>"u")&&(d=d||{},d[p]=h[p]);if(d){let p=[];for(let m of Object.keys(d)){let O=d[m];O&&p.indexOf(O)<0&&p.push(O)}let y=p.length?`
156
+ `;var mf=class{constructor(t,r,n,i){var s,o,a;this.yargs=t,this.usage=r,this.command=n,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(a=((s=this.shim.getEnv("SHELL"))===null||s===void 0?void 0:s.includes("zsh"))||((o=this.shim.getEnv("ZSH_NAME"))===null||o===void 0?void 0:o.includes("zsh")))!==null&&a!==void 0?a:!1}defaultCompletion(t,r,n,i){let s=this.command.getCommandHandlers();for(let a=0,u=t.length;a<u;++a)if(s[t[a]]&&s[t[a]].builder){let c=s[t[a]].builder;if(Ha(c)){this.indexAfterLastReset=a+1;let f=this.yargs.getInternalMethods().reset();return c(f,!0),f.argv}}let o=[];this.commandCompletions(o,t,n),this.optionCompletions(o,t,r,n),this.choicesFromOptionsCompletions(o,t,r,n),this.choicesFromPositionalsCompletions(o,t,r,n),i(null,o)}commandCompletions(t,r,n){let i=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&i[i.length-1]!==n&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(s=>{let o=Cn(s[0]).cmd;if(r.indexOf(o)===-1)if(!this.zshShell)t.push(o);else{let a=s[1]||"";t.push(o.replace(/:/g,"\\:")+":"+a)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let s=this.yargs.getOptions(),o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach(a=>{let u=!!s.configuration["boolean-negation"]&&s.boolean.includes(a);!o.includes(a)&&!s.hiddenOptions.includes(a)&&!this.argsContainKey(r,a,u)&&this.completeOptionKey(a,t,i,u&&!!s.default[a])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let s=this.getPreviousArgChoices(r);s&&s.length>0&&t.push(...s.map(o=>o.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],o=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),a=s[n._.length-o-1];if(!a)return;let u=this.yargs.getOptions().choices[a]||[];for(let c of u)c.startsWith(i)&&t.push(c.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],n="";if(!r.startsWith("-")&&t.length>1&&(n=r,r=t[t.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),s=this.yargs.getOptions(),o=[i,...this.yargs.getAliases()[i]||[]],a;for(let u of o)if(Object.prototype.hasOwnProperty.call(s.key,u)&&Array.isArray(s.choices[u])){a=s.choices[u];break}if(a)return a.filter(u=>!n||u.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=s=>t.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s)!==-1;if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let s of this.aliases[r])if(i(s))return!0}return!1}completeOptionKey(t,r,n,i){var s,o,a,u;let c=t;if(this.zshShell){let d=this.usage.getDescriptions(),p=(o=(s=this===null||this===void 0?void 0:this.aliases)===null||s===void 0?void 0:s[t])===null||o===void 0?void 0:o.find(P=>{let S=d[P];return typeof S=="string"&&S.length>0}),y=p?d[p]:void 0,m=(u=(a=d[t])!==null&&a!==void 0?a:y)!==null&&u!==void 0?u:"";c=`${t.replace(/:/g,"\\:")}:${m.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let f=d=>/^--/.test(d),l=d=>/^[^0-9]$/.test(d),h=!f(n)&&l(t)?"-":"--";r.push(h+c),i&&r.push(h+"no-"+c)}customCompletion(t,r,n,i){if(kt(this.customCompletionFunction,null,this.shim),Pk(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return qe(s)?s.then(o=>{this.shim.process.nextTick(()=>{i(null,o)})}).catch(o=>{this.shim.process.nextTick(()=>{i(o,void 0)})}):i(null,s)}else return Ok(this.customCompletionFunction)?this.customCompletionFunction(n,r,(s=i)=>this.defaultCompletion(t,r,n,s),s=>{i(null,s)}):this.customCompletionFunction(n,r,s=>{i(null,s)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),s=this.customCompletionFunction?o=>this.customCompletion(t,o,n,r):o=>this.defaultCompletion(t,o,n,r);return qe(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?H0:U0,i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),n=n.replace(/{{app_name}}/g,i),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}};function z0(e,t,r,n){return new mf(e,t,r,n)}function Pk(e){return e.length<3}function Ok(e){return e.length>3}function Y0(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let r=[],n;for(n=0;n<=t.length;n++)r[n]=[n];let i;for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}var V0=["$0","--","_"];function K0(e,t,r){let n=r.y18n.__,i=r.y18n.__n,s={};s.nonOptionCount=function(l){let h=e.getDemandedCommands(),p=l._.length+(l["--"]?l["--"].length:0)-e.getInternalMethods().getContext().commands.length;h._&&(p<h._.min||p>h._.max)&&(p<h._.min?h._.minMsg!==void 0?t.fail(h._.minMsg?h._.minMsg.replace(/\$0/g,p.toString()).replace(/\$1/,h._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",p,p.toString(),h._.min.toString())):p>h._.max&&(h._.maxMsg!==void 0?t.fail(h._.maxMsg?h._.maxMsg.replace(/\$0/g,p.toString()).replace(/\$1/,h._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",p,p.toString(),h._.max.toString()))))},s.positionalCount=function(l,h){h<l&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",h,h+"",l+""))},s.requiredArguments=function(l,h){let d=null;for(let p of Object.keys(h))(!Object.prototype.hasOwnProperty.call(l,p)||typeof l[p]>"u")&&(d=d||{},d[p]=h[p]);if(d){let p=[];for(let m of Object.keys(d)){let P=d[m];P&&p.indexOf(P)<0&&p.push(P)}let y=p.length?`
156
157
  ${p.join(`
157
- `)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(d).length,Object.keys(d).join(", ")+y))}},s.unknownArguments=function(l,h,d,p,y=!0){var m;let O=e.getInternalMethods().getCommandInstance().getCommands(),S=[],k=e.getInternalMethods().getContext();if(Object.keys(l).forEach(P=>{!I0.includes(P)&&!Object.prototype.hasOwnProperty.call(d,P)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),P)&&!s.isValidAndSomeAliasIsNotNew(P,h)&&S.push(P)}),y&&(k.commands.length>0||O.length>0||p)&&l._.slice(k.commands.length).forEach(P=>{O.includes(""+P)||S.push(""+P)}),y){let b=((m=e.getDemandedCommands()._)===null||m===void 0?void 0:m.max)||0,_=k.commands.length+b;_<l._.length&&l._.slice(_).forEach(L=>{L=String(L),!k.commands.includes(L)&&!S.includes(L)&&S.push(L)})}S.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",S.length,S.map(P=>P.trim()?P:`"${P}"`).join(", ")))},s.unknownCommands=function(l){let h=e.getInternalMethods().getCommandInstance().getCommands(),d=[],p=e.getInternalMethods().getContext();return(p.commands.length>0||h.length>0)&&l._.slice(p.commands.length).forEach(y=>{h.includes(""+y)||d.push(""+y)}),d.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",d.length,d.join(", "))),!0):!1},s.isValidAndSomeAliasIsNotNew=function(l,h){if(!Object.prototype.hasOwnProperty.call(h,l))return!1;let d=e.parsed.newAliases;return[l,...h[l]].some(p=>!Object.prototype.hasOwnProperty.call(d,p)||!d[l])},s.limitedChoices=function(l){let h=e.getOptions(),d={};if(!Object.keys(h.choices).length)return;Object.keys(l).forEach(m=>{I0.indexOf(m)===-1&&Object.prototype.hasOwnProperty.call(h.choices,m)&&[].concat(l[m]).forEach(O=>{h.choices[m].indexOf(O)===-1&&O!==void 0&&(d[m]=(d[m]||[]).concat(O))})});let p=Object.keys(d);if(!p.length)return;let y=n("Invalid values:");p.forEach(m=>{y+=`
158
- ${n("Argument: %s, Given: %s, Choices: %s",m,t.stringifiedValues(d[m]),t.stringifiedValues(h.choices[m]))}`}),t.fail(y)};let o={};s.implies=function(l,h){ce("<string|object> [array|number|string]",[l,h],arguments.length),typeof l=="object"?Object.keys(l).forEach(d=>{s.implies(d,l[d])}):(e.global(l),o[l]||(o[l]=[]),Array.isArray(h)?h.forEach(d=>s.implies(l,d)):(Dt(h,void 0,r),o[l].push(h)))},s.getImplied=function(){return o};function a(f,l){let h=Number(l);return l=isNaN(h)?l:h,typeof l=="number"?l=f._.length>=l:l.match(/^--no-.+/)?(l=l.match(/^--no-(.+)/)[1],l=!Object.prototype.hasOwnProperty.call(f,l)):l=Object.prototype.hasOwnProperty.call(f,l),l}s.implications=function(l){let h=[];if(Object.keys(o).forEach(d=>{let p=d;(o[d]||[]).forEach(y=>{let m=p,O=y;m=a(l,m),y=a(l,y),m&&!y&&h.push(` ${p} -> ${O}`)})}),h.length){let d=`${n("Implications failed:")}
159
- `;h.forEach(p=>{d+=p}),t.fail(d)}};let u={};s.conflicts=function(l,h){ce("<string|object> [array|string]",[l,h],arguments.length),typeof l=="object"?Object.keys(l).forEach(d=>{s.conflicts(d,l[d])}):(e.global(l),u[l]||(u[l]=[]),Array.isArray(h)?h.forEach(d=>s.conflicts(l,d)):u[l].push(h))},s.getConflicting=()=>u,s.conflicting=function(l){Object.keys(l).forEach(h=>{u[h]&&u[h].forEach(d=>{d&&l[h]!==void 0&&l[d]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",h,d))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach(h=>{u[h].forEach(d=>{d&&l[r.Parser.camelCase(h)]!==void 0&&l[r.Parser.camelCase(d)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",h,d))})})},s.recommendCommands=function(l,h){h=h.sort((m,O)=>O.length-m.length);let p=null,y=1/0;for(let m=0,O;(O=h[m])!==void 0;m++){let S=T0(l,O);S<=3&&S<y&&(y=S,p=O)}p&&t.fail(n("Did you mean %s?",p))},s.reset=function(l){return o=On(o,h=>!l[h]),u=On(u,h=>!l[h]),s};let c=[];return s.freeze=function(){c.push({implied:o,conflicting:u})},s.unfreeze=function(){let l=c.pop();Dt(l,void 0,r),{implied:o,conflicting:u}=l},s}var lf=[],Zs;function eo(e,t,r,n){Zs=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let s=/\.json|\..*rc$/.test(e.extends),o=null;if(s)o=cD(t,e.extends);else try{o=require.resolve(e.extends)}catch{return e}uD(o),lf.push(o),i=s?JSON.parse(Zs.readFileSync(o,"utf8")):require(e.extends),delete e.extends,i=eo(i,Zs.path.dirname(o),r,Zs)}return lf=[],r?$0(i,e):Object.assign({},i,e)}function uD(e){if(lf.indexOf(e)>-1)throw new We(`Circular extended configurations: '${e}'.`)}function cD(e,t){return Zs.path.resolve(e,t)}function $0(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=$0(e[i],t[i]):r[i]=t[i];return r}var le=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},R=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ke,ai,to,ur,Qt,Ga,_n,ui,Ua,cr,Ha,lr,jr,Zt,fr,za,Yi,ot,pe,Ya,Va,er,ci,Vi,li,Rn,Ka,be,fi,hi,di,we,Xa,Br,ze;function ny(e){return(t=[],r=e.process.cwd(),n)=>{let i=new bf(t,r,n,e);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}var M0=Symbol("copyDoubleDash"),j0=Symbol("copyDoubleDash"),ff=Symbol("deleteFromParserHintObject"),B0=Symbol("emitWarning"),W0=Symbol("freeze"),q0=Symbol("getDollarZero"),pi=Symbol("getParserConfiguration"),G0=Symbol("getUsageConfiguration"),hf=Symbol("guessLocale"),U0=Symbol("guessVersion"),H0=Symbol("parsePositionalNumbers"),df=Symbol("pkgUp"),Fn=Symbol("populateParserHintArray"),Ki=Symbol("populateParserHintSingleValueDictionary"),pf=Symbol("populateParserHintArrayDictionary"),gf=Symbol("populateParserHintDictionary"),mf=Symbol("sanitizeKey"),yf=Symbol("setKey"),vf=Symbol("unfreeze"),z0=Symbol("validateAsync"),Y0=Symbol("getCommandInstance"),V0=Symbol("getContext"),K0=Symbol("getHasOutput"),X0=Symbol("getLoggerInstance"),J0=Symbol("getParseContext"),Q0=Symbol("getUsageInstance"),Z0=Symbol("getValidationInstance"),Ja=Symbol("hasParseCallback"),ey=Symbol("isGlobalContext"),gi=Symbol("postProcess"),ty=Symbol("rebase"),Af=Symbol("reset"),ro=Symbol("runYargsParserAndExecuteCommands"),Ef=Symbol("runValidation"),ry=Symbol("setHasOutput"),mi=Symbol("kTrackManuallySetKeys"),bf=class{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Ke.set(this,void 0),ai.set(this,void 0),to.set(this,{commands:[],fullCommands:[]}),ur.set(this,null),Qt.set(this,null),Ga.set(this,"show-hidden"),_n.set(this,null),ui.set(this,!0),Ua.set(this,{}),cr.set(this,!0),Ha.set(this,[]),lr.set(this,void 0),jr.set(this,{}),Zt.set(this,!1),fr.set(this,null),za.set(this,!0),Yi.set(this,void 0),ot.set(this,""),pe.set(this,void 0),Ya.set(this,void 0),Va.set(this,{}),er.set(this,null),ci.set(this,null),Vi.set(this,{}),li.set(this,{}),Rn.set(this,void 0),Ka.set(this,!1),be.set(this,void 0),fi.set(this,!1),hi.set(this,!1),di.set(this,!1),we.set(this,void 0),Xa.set(this,{}),Br.set(this,null),ze.set(this,void 0),le(this,be,i,"f"),le(this,Rn,t,"f"),le(this,ai,r,"f"),le(this,Ya,n,"f"),le(this,lr,new Ba(this),"f"),this.$0=this[q0](),this[Af](),le(this,Ke,R(this,Ke,"f"),"f"),le(this,we,R(this,we,"f"),"f"),le(this,ze,R(this,ze,"f"),"f"),le(this,pe,R(this,pe,"f"),"f"),R(this,pe,"f").showHiddenOpt=R(this,Ga,"f"),le(this,Yi,this[j0](),"f")}addHelpOpt(t,r){let n="help";return ce("[string|boolean] [string]",[t,r],arguments.length),R(this,fr,"f")&&(this[ff](R(this,fr,"f")),le(this,fr,null,"f")),t===!1&&r===void 0?this:(le(this,fr,typeof t=="string"?t:n,"f"),this.boolean(R(this,fr,"f")),this.describe(R(this,fr,"f"),r||R(this,we,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(ce("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:R(this,Ga,"f");return this.boolean(n),this.describe(n,r||R(this,we,"f").deferY18nLookup("Show hidden options")),R(this,pe,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return ce("<object|string|array> [string|array]",[t,r],arguments.length),this[pf](this.alias.bind(this),"alias",t,r),this}array(t){return ce("<array|string>",[t],arguments.length),this[Fn]("array",t),this[mi](t),this}boolean(t){return ce("<array|string>",[t],arguments.length),this[Fn]("boolean",t),this[mi](t),this}check(t,r){return ce("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>oi(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&R(this,we,"f").fail(s.toString(),s):R(this,we,"f").fail(R(this,be,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(R(this,we,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(t,r){return ce("<object|string|array> [string|array]",[t,r],arguments.length),this[pf](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(ce("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new We("coerce callback must be provided");for(let n of t)this.coerce(n,r);return this}else if(typeof t=="object"){for(let n of Object.keys(t))this.coerce(n,t[n]);return this}if(!r)throw new We("coerce callback must be provided");return R(this,pe,"f").key[t]=!0,R(this,lr,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?oi(()=>(s=i.getAliases(),r(n[t])),a=>{n[t]=a;let u=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[t]&&u!==!0)for(let c of s[t])n[c]=a;return n},a=>{throw new We(a.message)}):n},t),this}conflicts(t,r){return ce("<string|object> [string|array]",[t,r],arguments.length),R(this,ze,"f").conflicts(t,r),this}config(t="config",r,n){return ce("[object|string] [string|function] [function]",[t,r,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=eo(t,R(this,ai,"f"),this[pi]()["deep-merge-config"]||!1,R(this,be,"f")),R(this,pe,"f").configObjects=(R(this,pe,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||R(this,we,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{R(this,pe,"f").config[i]=n||!0}),this)}completion(t,r,n){return ce("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),le(this,Qt,t||R(this,Qt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(R(this,Qt,"f"),r),n&&R(this,ur,"f").registerFunction(n),this}command(t,r,n,i,s,o){return ce("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,s,o],arguments.length),R(this,Ke,"f").addHandler(t,r,n,i,s,o),this}commands(t,r,n,i,s,o){return this.command(t,r,n,i,s,o)}commandDir(t,r){ce("<string> [object]",[t,r],arguments.length);let n=R(this,Ya,"f")||R(this,be,"f").require;return R(this,Ke,"f").addDirectory(t,n,R(this,be,"f").getCallerFile(),r),this}count(t){return ce("<array|string>",[t],arguments.length),this[Fn]("count",t),this[mi](t),this}default(t,r,n){return ce("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(sf(t,R(this,be,"f")),R(this,pe,"f").defaultDescription[t]=n),typeof r=="function"&&(sf(t,R(this,be,"f")),R(this,pe,"f").defaultDescription[t]||(R(this,pe,"f").defaultDescription[t]=R(this,we,"f").functionDescription(r)),r=r.call()),this[Ki](this.default.bind(this),"default",t,r),this}defaults(t,r,n){return this.default(t,r,n)}demandCommand(t=1,r,n,i){return ce("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,r,n,i],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),R(this,pe,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{Dt(n,!0,R(this,be,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(Dt(n,!0,R(this,be,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{Dt(n,!0,R(this,be,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return ce("<object|string|array> [string]",[t,r],arguments.length),this[Ki](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return ce("<string> [string|boolean]",[t,r],arguments.length),R(this,pe,"f").deprecatedOptions[t]=r,this}describe(t,r){return ce("<object|string|array> [string]",[t,r],arguments.length),this[yf](t,!0),R(this,we,"f").describe(t,r),this}detectLocale(t){return ce("<boolean>",[t],arguments.length),le(this,ui,t,"f"),this}env(t){return ce("[string|boolean]",[t],arguments.length),t===!1?delete R(this,pe,"f").envPrefix:R(this,pe,"f").envPrefix=t||"",this}epilogue(t){return ce("<string>",[t],arguments.length),R(this,we,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return ce("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):R(this,we,"f").example(t,r),this}exit(t,r){le(this,Zt,!0,"f"),le(this,_n,r,"f"),R(this,cr,"f")&&R(this,be,"f").process.exit(t)}exitProcess(t=!0){return ce("[boolean]",[t],arguments.length),le(this,cr,t,"f"),this}fail(t){if(ce("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new We("Invalid first argument. Expected function or boolean 'false'");return R(this,we,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return ce("<array> [function]",[t,r],arguments.length),r?R(this,ur,"f").getCompletion(t,r):new Promise((n,i)=>{R(this,ur,"f").getCompletion(t,(s,o)=>{s?i(s):n(o)})})}getDemandedOptions(){return ce([],0),R(this,pe,"f").demandedOptions}getDemandedCommands(){return ce([],0),R(this,pe,"f").demandedCommands}getDeprecatedOptions(){return ce([],0),R(this,pe,"f").deprecatedOptions}getDetectLocale(){return R(this,ui,"f")}getExitProcess(){return R(this,cr,"f")}getGroups(){return Object.assign({},R(this,jr,"f"),R(this,li,"f"))}getHelp(){if(le(this,Zt,!0,"f"),!R(this,we,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[ro](R(this,Rn,"f"),void 0,void 0,0,!0);if(qe(r))return r.then(()=>R(this,we,"f").help())}let t=R(this,Ke,"f").runDefaultBuilderOn(this);if(qe(t))return t.then(()=>R(this,we,"f").help())}return Promise.resolve(R(this,we,"f").help())}getOptions(){return R(this,pe,"f")}getStrict(){return R(this,fi,"f")}getStrictCommands(){return R(this,hi,"f")}getStrictOptions(){return R(this,di,"f")}global(t,r){return ce("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?R(this,pe,"f").local=R(this,pe,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{R(this,pe,"f").local.includes(n)||R(this,pe,"f").local.push(n)}),this}group(t,r){ce("<string|array> <string>",[t,r],arguments.length);let n=R(this,li,"f")[r]||R(this,jr,"f")[r];R(this,li,"f")[r]&&delete R(this,li,"f")[r];let i={};return R(this,jr,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return ce("<string>",[t],arguments.length),R(this,pe,"f").hiddenOptions.push(t),this}implies(t,r){return ce("<string|object> [number|string|array]",[t,r],arguments.length),R(this,ze,"f").implies(t,r),this}locale(t){return ce("[string]",[t],arguments.length),t===void 0?(this[hf](),R(this,be,"f").y18n.getLocale()):(le(this,ui,!1,"f"),R(this,be,"f").y18n.setLocale(t),this)}middleware(t,r,n){return R(this,lr,"f").addMiddleware(t,!!r,n)}nargs(t,r){return ce("<string|object|array> [number]",[t,r],arguments.length),this[Ki](this.nargs.bind(this),"narg",t,r),this}normalize(t){return ce("<array|string>",[t],arguments.length),this[Fn]("normalize",t),this}number(t){return ce("<array|string>",[t],arguments.length),this[Fn]("number",t),this[mi](t),this}option(t,r){if(ce("<string|object> [object]",[t,r],arguments.length),typeof t=="object")Object.keys(t).forEach(n=>{this.options(n,t[n])});else{typeof r!="object"&&(r={}),this[mi](t),R(this,Br,"f")&&(t==="version"||r?.alias==="version")&&this[B0](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
160
- `),void 0,"versionWarning"),R(this,pe,"f").key[t]=!0,r.alias&&this.alias(t,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(t,n);let i=r.demand||r.required||r.require;i&&this.demand(t,i),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(R(this,pe,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let s=r.describe||r.description||r.desc,o=R(this,we,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(o,t)||typeof s=="string")&&this.describe(t,s),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t)}return this}options(t,r){return this.option(t,r)}parse(t,r,n){ce("[string|array] [function|boolean|object] [function]",[t,r,n],arguments.length),this[W0](),typeof t>"u"&&(t=R(this,Rn,"f")),typeof r=="object"&&(le(this,ci,r,"f"),r=n),typeof r=="function"&&(le(this,er,r,"f"),r=!1),r||le(this,Rn,t,"f"),R(this,er,"f")&&le(this,cr,!1,"f");let i=this[ro](t,!!r),s=this.parsed;return R(this,ur,"f").setParsed(this.parsed),qe(i)?i.then(o=>(R(this,er,"f")&&R(this,er,"f").call(this,R(this,_n,"f"),o,R(this,ot,"f")),o)).catch(o=>{throw R(this,er,"f")&&R(this,er,"f")(o,this.parsed.argv,R(this,ot,"f")),o}).finally(()=>{this[vf](),this.parsed=s}):(R(this,er,"f")&&R(this,er,"f").call(this,R(this,_n,"f"),i,R(this,ot,"f")),this[vf](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return qe(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(qe(i))throw new We(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return ce("<object>",[t],arguments.length),le(this,Va,t,"f"),this}pkgConf(t,r){ce("<string> [string]",[t,r],arguments.length);let n=null,i=this[df](r||R(this,ai,"f"));return i[t]&&typeof i[t]=="object"&&(n=eo(i[t],r||R(this,ai,"f"),this[pi]()["deep-merge-config"]||!1,R(this,be,"f")),R(this,pe,"f").configObjects=(R(this,pe,"f").configObjects||[]).concat(n)),this}positional(t,r){ce("<string> <object>",[t,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=On(r,(o,a)=>o==="type"&&!["string","number","boolean"].includes(a)?!1:n.includes(o));let i=R(this,to,"f").fullCommands[R(this,to,"f").fullCommands.length-1],s=i?R(this,Ke,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Hi(s).forEach(o=>{let a=s[o];Array.isArray(a)?a.indexOf(t)!==-1&&(r[o]=!0):a[t]&&!(o in r)&&(r[o]=a[t])}),this.group(t,R(this,we,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return ce("[boolean]",[t],arguments.length),le(this,Ka,t,"f"),this}required(t,r,n){return this.demand(t,r,n)}require(t,r,n){return this.demand(t,r,n)}requiresArg(t){return ce("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&R(this,pe,"f").narg[t]?this:(this[Ki](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,r){return ce("[string] [string]",[t,r],arguments.length),t=t||this.$0,R(this,Yi,"f").log(R(this,ur,"f").generateCompletionScript(t,r||R(this,Qt,"f")||"completion")),this}showHelp(t){if(ce("[string|function]",[t],arguments.length),le(this,Zt,!0,"f"),!R(this,we,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[ro](R(this,Rn,"f"),void 0,void 0,0,!0);if(qe(n))return n.then(()=>{R(this,we,"f").showHelp(t)}),this}let r=R(this,Ke,"f").runDefaultBuilderOn(this);if(qe(r))return r.then(()=>{R(this,we,"f").showHelp(t)}),this}return R(this,we,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,r){return ce("[boolean|string] [string]",[t,r],arguments.length),R(this,we,"f").showHelpOnFail(t,r),this}showVersion(t){return ce("[string|function]",[t],arguments.length),R(this,we,"f").showVersion(t),this}skipValidation(t){return ce("<array|string>",[t],arguments.length),this[Fn]("skipValidation",t),this}strict(t){return ce("[boolean]",[t],arguments.length),le(this,fi,t!==!1,"f"),this}strictCommands(t){return ce("[boolean]",[t],arguments.length),le(this,hi,t!==!1,"f"),this}strictOptions(t){return ce("[boolean]",[t],arguments.length),le(this,di,t!==!1,"f"),this}string(t){return ce("<array|string>",[t],arguments.length),this[Fn]("string",t),this[mi](t),this}terminalWidth(){return ce([],0),R(this,be,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return ce("<object>",[t],arguments.length),le(this,ui,!1,"f"),R(this,be,"f").y18n.updateLocale(t),this}usage(t,r,n,i){if(ce("<string|null|undefined> [string|boolean] [function|object] [function]",[t,r,n,i],arguments.length),r!==void 0){if(Dt(t,null,R(this,be,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new We(".usage() description must start with $0 if being used as alias for .command()")}else return R(this,we,"f").usage(t),this}usageConfiguration(t){return ce("<object>",[t],arguments.length),le(this,Xa,t,"f"),this}version(t,r,n){let i="version";if(ce("[boolean|string] [string] [string]",[t,r,n],arguments.length),R(this,Br,"f")&&(this[ff](R(this,Br,"f")),R(this,we,"f").version(void 0),le(this,Br,null,"f")),arguments.length===0)n=this[U0](),t=i;else if(arguments.length===1){if(t===!1)return this;n=t,t=i}else arguments.length===2&&(n=r,r=void 0);return le(this,Br,typeof t=="string"?t:i,"f"),r=r||R(this,we,"f").deferY18nLookup("Show version number"),R(this,we,"f").version(n||void 0),this.boolean(R(this,Br,"f")),this.describe(R(this,Br,"f"),r),this}wrap(t){return ce("<number|null|undefined>",[t],arguments.length),R(this,we,"f").wrap(t),this}[(Ke=new WeakMap,ai=new WeakMap,to=new WeakMap,ur=new WeakMap,Qt=new WeakMap,Ga=new WeakMap,_n=new WeakMap,ui=new WeakMap,Ua=new WeakMap,cr=new WeakMap,Ha=new WeakMap,lr=new WeakMap,jr=new WeakMap,Zt=new WeakMap,fr=new WeakMap,za=new WeakMap,Yi=new WeakMap,ot=new WeakMap,pe=new WeakMap,Ya=new WeakMap,Va=new WeakMap,er=new WeakMap,ci=new WeakMap,Vi=new WeakMap,li=new WeakMap,Rn=new WeakMap,Ka=new WeakMap,be=new WeakMap,fi=new WeakMap,hi=new WeakMap,di=new WeakMap,we=new WeakMap,Xa=new WeakMap,Br=new WeakMap,ze=new WeakMap,M0)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[j0](){return{log:(...t)=>{this[Ja]()||console.log(...t),le(this,Zt,!0,"f"),R(this,ot,"f").length&&le(this,ot,R(this,ot,"f")+`
161
- `,"f"),le(this,ot,R(this,ot,"f")+t.join(" "),"f")},error:(...t)=>{this[Ja]()||console.error(...t),le(this,Zt,!0,"f"),R(this,ot,"f").length&&le(this,ot,R(this,ot,"f")+`
162
- `,"f"),le(this,ot,R(this,ot,"f")+t.join(" "),"f")}}}[ff](t){Hi(R(this,pe,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=R(this,pe,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete R(this,we,"f").getDescriptions()[t]}[B0](t,r,n){R(this,Ua,"f")[n]||(R(this,be,"f").process.emitWarning(t,r),R(this,Ua,"f")[n]=!0)}[W0](){R(this,Ha,"f").push({options:R(this,pe,"f"),configObjects:R(this,pe,"f").configObjects.slice(0),exitProcess:R(this,cr,"f"),groups:R(this,jr,"f"),strict:R(this,fi,"f"),strictCommands:R(this,hi,"f"),strictOptions:R(this,di,"f"),completionCommand:R(this,Qt,"f"),output:R(this,ot,"f"),exitError:R(this,_n,"f"),hasOutput:R(this,Zt,"f"),parsed:this.parsed,parseFn:R(this,er,"f"),parseContext:R(this,ci,"f")}),R(this,we,"f").freeze(),R(this,ze,"f").freeze(),R(this,Ke,"f").freeze(),R(this,lr,"f").freeze()}[q0](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(R(this,be,"f").process.argv()[0])?r=R(this,be,"f").process.argv().slice(1,2):r=R(this,be,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[ty](R(this,ai,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),R(this,be,"f").getEnv("_")&&R(this,be,"f").getProcessArgvBin()===R(this,be,"f").getEnv("_")&&(t=R(this,be,"f").getEnv("_").replace(`${R(this,be,"f").path.dirname(R(this,be,"f").process.execPath())}/`,"")),t}[pi](){return R(this,Va,"f")}[G0](){return R(this,Xa,"f")}[hf](){if(!R(this,ui,"f"))return;let t=R(this,be,"f").getEnv("LC_ALL")||R(this,be,"f").getEnv("LC_MESSAGES")||R(this,be,"f").getEnv("LANG")||R(this,be,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[U0](){return this[df]().version||"unknown"}[H0](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)R(this,be,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[df](t){let r=t||"*";if(R(this,Vi,"f")[r])return R(this,Vi,"f")[r];let n={};try{let i=t||R(this,be,"f").mainFilename;!t&&R(this,be,"f").path.extname(i)&&(i=R(this,be,"f").path.dirname(i));let s=R(this,be,"f").findUp(i,(o,a)=>{if(a.includes("package.json"))return"package.json"});Dt(s,void 0,R(this,be,"f")),n=JSON.parse(R(this,be,"f").readFileSync(s,"utf8"))}catch{}return R(this,Vi,"f")[r]=n||{},R(this,Vi,"f")[r]}[Fn](t,r){r=[].concat(r),r.forEach(n=>{n=this[mf](n),R(this,pe,"f")[t].push(n)})}[Ki](t,r,n,i){this[gf](t,r,n,i,(s,o,a)=>{R(this,pe,"f")[s][o]=a})}[pf](t,r,n,i){this[gf](t,r,n,i,(s,o,a)=>{R(this,pe,"f")[s][o]=(R(this,pe,"f")[s][o]||[]).concat(a)})}[gf](t,r,n,i,s){if(Array.isArray(n))n.forEach(o=>{t(o,i)});else if((o=>typeof o=="object")(n))for(let o of Hi(n))t(o,n[o]);else s(r,this[mf](n),i)}[mf](t){return t==="__proto__"?"___proto___":t}[yf](t,r){return this[Ki](this[yf].bind(this),"key",t,r),this}[vf](){var t,r,n,i,s,o,a,u,c,f,l,h;let d=R(this,Ha,"f").pop();Dt(d,void 0,R(this,be,"f"));let p;t=this,r=this,n=this,i=this,s=this,o=this,a=this,u=this,c=this,f=this,l=this,h=this,{options:{set value(y){le(t,pe,y,"f")}}.value,configObjects:p,exitProcess:{set value(y){le(r,cr,y,"f")}}.value,groups:{set value(y){le(n,jr,y,"f")}}.value,output:{set value(y){le(i,ot,y,"f")}}.value,exitError:{set value(y){le(s,_n,y,"f")}}.value,hasOutput:{set value(y){le(o,Zt,y,"f")}}.value,parsed:this.parsed,strict:{set value(y){le(a,fi,y,"f")}}.value,strictCommands:{set value(y){le(u,hi,y,"f")}}.value,strictOptions:{set value(y){le(c,di,y,"f")}}.value,completionCommand:{set value(y){le(f,Qt,y,"f")}}.value,parseFn:{set value(y){le(l,er,y,"f")}}.value,parseContext:{set value(y){le(h,ci,y,"f")}}.value}=d,R(this,pe,"f").configObjects=p,R(this,we,"f").unfreeze(),R(this,ze,"f").unfreeze(),R(this,Ke,"f").unfreeze(),R(this,lr,"f").unfreeze()}[z0](t,r){return oi(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[Y0].bind(this),getContext:this[V0].bind(this),getHasOutput:this[K0].bind(this),getLoggerInstance:this[X0].bind(this),getParseContext:this[J0].bind(this),getParserConfiguration:this[pi].bind(this),getUsageConfiguration:this[G0].bind(this),getUsageInstance:this[Q0].bind(this),getValidationInstance:this[Z0].bind(this),hasParseCallback:this[Ja].bind(this),isGlobalContext:this[ey].bind(this),postProcess:this[gi].bind(this),reset:this[Af].bind(this),runValidation:this[Ef].bind(this),runYargsParserAndExecuteCommands:this[ro].bind(this),setHasOutput:this[ry].bind(this)}}[Y0](){return R(this,Ke,"f")}[V0](){return R(this,to,"f")}[K0](){return R(this,Zt,"f")}[X0](){return R(this,Yi,"f")}[J0](){return R(this,ci,"f")||{}}[Q0](){return R(this,we,"f")}[Z0](){return R(this,ze,"f")}[Ja](){return!!R(this,er,"f")}[ey](){return R(this,za,"f")}[gi](t,r,n,i){return n||qe(t)||(r||(t=this[M0](t)),(this[pi]()["parse-positional-numbers"]||this[pi]()["parse-positional-numbers"]===void 0)&&(t=this[H0](t)),i&&(t=si(t,this,R(this,lr,"f").getMiddleware(),!1))),t}[Af](t={}){le(this,pe,R(this,pe,"f")||{},"f");let r={};r.local=R(this,pe,"f").local||[],r.configObjects=R(this,pe,"f").configObjects||[];let n={};r.local.forEach(o=>{n[o]=!0,(t[o]||[]).forEach(a=>{n[a]=!0})}),Object.assign(R(this,li,"f"),Object.keys(R(this,jr,"f")).reduce((o,a)=>{let u=R(this,jr,"f")[a].filter(c=>!(c in n));return u.length>0&&(o[a]=u),o},{})),le(this,jr,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(o=>{r[o]=(R(this,pe,"f")[o]||[]).filter(a=>!n[a])}),s.forEach(o=>{r[o]=On(R(this,pe,"f")[o],a=>!n[a])}),r.envPrefix=R(this,pe,"f").envPrefix,le(this,pe,r,"f"),le(this,we,R(this,we,"f")?R(this,we,"f").reset(n):F0(this,R(this,be,"f")),"f"),le(this,ze,R(this,ze,"f")?R(this,ze,"f").reset(n):N0(this,R(this,we,"f"),R(this,be,"f")),"f"),le(this,Ke,R(this,Ke,"f")?R(this,Ke,"f").reset():P0(R(this,we,"f"),R(this,ze,"f"),R(this,lr,"f"),R(this,be,"f")),"f"),R(this,ur,"f")||le(this,ur,k0(this,R(this,we,"f"),R(this,Ke,"f"),R(this,be,"f")),"f"),R(this,lr,"f").reset(),le(this,Qt,null,"f"),le(this,ot,"","f"),le(this,_n,null,"f"),le(this,Zt,!1,"f"),this.parsed=!1,this}[ty](t,r){return R(this,be,"f").path.relative(t,r)}[ro](t,r,n,i=0,s=!1){let o=!!n||s;t=t||R(this,Rn,"f"),R(this,pe,"f").__=R(this,be,"f").y18n.__,R(this,pe,"f").configuration=this[pi]();let a=!!R(this,pe,"f").configuration["populate--"],u=Object.assign({},R(this,pe,"f").configuration,{"populate--":!0}),c=R(this,be,"f").Parser.detailed(t,Object.assign({},R(this,pe,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),f=Object.assign(c.argv,R(this,ci,"f")),l,h=c.aliases,d=!1,p=!1;Object.keys(f).forEach(y=>{y===R(this,fr,"f")&&f[y]?d=!0:y===R(this,Br,"f")&&f[y]&&(p=!0)}),f.$0=this.$0,this.parsed=c,i===0&&R(this,we,"f").clearCachedHelpMessage();try{if(this[hf](),r)return this[gi](f,a,!!n,!1);R(this,fr,"f")&&[R(this,fr,"f")].concat(h[R(this,fr,"f")]||[]).filter(k=>k.length>1).includes(""+f._[f._.length-1])&&(f._.pop(),d=!0),le(this,za,!1,"f");let y=R(this,Ke,"f").getCommands(),m=R(this,ur,"f").completionKey in f,O=d||m||s;if(f._.length){if(y.length){let S;for(let k=i||0,P;f._[k]!==void 0;k++)if(P=String(f._[k]),y.includes(P)&&P!==R(this,Qt,"f")){let b=R(this,Ke,"f").runCommand(P,this,c,k+1,s,d||p||s);return this[gi](b,a,!!n,!1)}else if(!S&&P!==R(this,Qt,"f")){S=P;break}!R(this,Ke,"f").hasDefaultCommand()&&R(this,Ka,"f")&&S&&!O&&R(this,ze,"f").recommendCommands(S,y)}R(this,Qt,"f")&&f._.includes(R(this,Qt,"f"))&&!m&&(R(this,cr,"f")&&Pn(!0),this.showCompletionScript(),this.exit(0))}if(R(this,Ke,"f").hasDefaultCommand()&&!O){let S=R(this,Ke,"f").runCommand(null,this,c,0,s,d||p||s);return this[gi](S,a,!!n,!1)}if(m){R(this,cr,"f")&&Pn(!0),t=[].concat(t);let S=t.slice(t.indexOf(`--${R(this,ur,"f").completionKey}`)+1);return R(this,ur,"f").getCompletion(S,(k,P)=>{if(k)throw new We(k.message);(P||[]).forEach(b=>{R(this,Yi,"f").log(b)}),this.exit(0)}),this[gi](f,!a,!!n,!1)}if(R(this,Zt,"f")||(d?(R(this,cr,"f")&&Pn(!0),o=!0,this.showHelp("log"),this.exit(0)):p&&(R(this,cr,"f")&&Pn(!0),o=!0,R(this,we,"f").showVersion("log"),this.exit(0))),!o&&R(this,pe,"f").skipValidation.length>0&&(o=Object.keys(f).some(S=>R(this,pe,"f").skipValidation.indexOf(S)>=0&&f[S]===!0)),!o){if(c.error)throw new We(c.error.message);if(!m){let S=this[Ef](h,{},c.error);n||(l=si(f,this,R(this,lr,"f").getMiddleware(),!0)),l=this[z0](S,l??f),qe(l)&&!n&&(l=l.then(()=>si(f,this,R(this,lr,"f").getMiddleware(),!1)))}}}catch(y){if(y instanceof We)R(this,we,"f").fail(y.message,y);else throw y}return this[gi](l??f,a,!!n,!0)}[Ef](t,r,n,i){let s={...this.getDemandedOptions()};return o=>{if(n)throw new We(n.message);R(this,ze,"f").nonOptionCount(o),R(this,ze,"f").requiredArguments(o,s);let a=!1;R(this,hi,"f")&&(a=R(this,ze,"f").unknownCommands(o)),R(this,fi,"f")&&!a?R(this,ze,"f").unknownArguments(o,t,r,!!i):R(this,di,"f")&&R(this,ze,"f").unknownArguments(o,t,{},!1,!1),R(this,ze,"f").limitedChoices(o),R(this,ze,"f").implications(o),R(this,ze,"f").conflicting(o)}}[ry](){le(this,Zt,!0,"f")}[mi](t){if(typeof t=="string")R(this,pe,"f").key[t]=!0;else for(let r of t)R(this,pe,"f").key[r]=!0}};function _0(e){return!!e&&typeof e.getInternalMethods=="function"}var lD=ny(nf),iy=lD;function sy(e){let t=iy(tf(e)).option({skipCheck:{type:"boolean",description:"Skip checking the validity of the feeds"},skipAuth:{type:"boolean",description:"Skip authenticating the feeds"},configFile:{alias:"c",type:"string",description:"Skip checking the validity of the feeds"},azureAuthLocation:{type:"string",description:"Allow specifying alternate location to azureauth"},exitCodeOnReAuthenticate:{type:"number",description:"Exit when re-authentication occurs"}}).help().parseSync();return{skipAuth:t.skipAuth||!1,doValidCheck:!t.skipCheck,configFile:t.configFile,azureAuthLocation:t.azureAuthLocation,exitCodeOnReAuthenticate:t.exitCodeOnReAuthenticate}}var lR=jt(jS(),1);var aR=jt(nR(),1),_m=require("node:path"),uR=jt(require("node:fs/promises"),1),Rm=jt(require("node:path"),1),cR=require("node:os");var F8=e=>{try{e.startsWith("https://")||(e="https://"+e);let t=new URL(e),r=t.hostname,n=t.pathname;if(r.endsWith("dev.azure.com")){let i=n.split("/").filter(Boolean);if(i.length>=2)return{organization:i[0],project:i[1]};throw new Error("Not enough segments in path for a valid organization and project extraction.")}if(r.endsWith("visualstudio.com")){let i=r.split(".")[0],s=n.split("/").filter(Boolean);if(i&&s.length>=1)return{organization:i,project:s[0]};throw new Error("Not enough segments in path or missing subdomain for a valid organization and project extraction.")}throw new Error("URL format not recognized or does not contain enough information.")}catch{throw new Error("Invalid URL or unsupported format")}},Bs=(e,t="")=>{try{let{organization:r}=F8(e);return r}catch{return t}};function Zn(e){return Buffer.from(e||"").toString("base64")}var wl=e=>Buffer.from(e,"base64").toString("utf8");var Om=jt(require("https"),1),Sl=jt(require("fs"),1),iR=jt(require("path"),1),D8={port:443,method:"GET"},sR=async e=>new Promise((t,r)=>{let n={...D8,...e};Om.default.request(n,s=>{let o="",a={},u=s.statusCode===200;s.on("data",c=>{o+=c}),s.on("end",()=>{o&&L8(n?.headers,"application/json")&&(a=JSON.parse(o.toString().trim())),u?t(a||o):(a&&(a={...a,statusCode:s.statusCode}),r(a||o||new Error(`Error code: ${s.statusCode}.`)))}),s.on("error",c=>{r(new Error(c))})}).end()});function L8(e,t){if(!e)return!1;if(Array.isArray(e)){for(let i of e){let s=i.toLowerCase().indexOf("accept:");if(s===0&&i.slice(s+7).trim().split(",").map(u=>u.trim()).includes(t))return!0}return!1}let n=Object.entries(e).find(([i])=>i.toLowerCase()==="accept")?.[1];return typeof n=="string"?n===t:Array.isArray(n)?n.includes(t):!1}async function Pm(e,t){return new Promise((r,n)=>{Om.default.get(e,i=>{if(i.statusCode===301||i.statusCode===302){let o=i.headers.location;if(o){Pm(o,t).then(r).catch(n);return}else{n(new Error("Redirect without location header"));return}}if(i.statusCode!==200){n(new Error(`HTTP ${i.statusCode}: ${i.statusMessage}`));return}let s;try{let o=iR.default.dirname(t);Sl.default.existsSync(o)||Sl.default.mkdirSync(o,{recursive:!0}),s=Sl.default.createWriteStream(t)}catch(o){n(o);return}s.on("error",o=>{n(o)}),i.pipe(s),s.on("finish",()=>{r()})}).on("error",i=>{n(i)})})}var oR=async({password:e,organization:t})=>{let r=`Basic ${Zn(`.:${e}`)}`,n={hostname:"feeds.dev.azure.com",port:443,path:`/${t}/_apis/packaging/feeds/1?api-version=6.1-preview.1`,method:"GET",headers:{Accept:"application/json",Authorization:r}};try{await sR(n)}catch(i){if(i.statusCode===404)return;throw i}};var Cl="me",xl="me@example.com",Ws=class{constructor(t,r,n){this.id=t;this.workspaceFileName=r;let i;if(n&&Rm.default.basename(n)===this.workspaceFileName)i=Rm.default.resolve(n);else{let o=(0,aR.getWorkspaceRoot)(process.cwd())||"";i=(0,_m.join)(o,this.workspaceFileName)}this.workspaceFilePath=i;let s=process.env.HOME||process.env.USERPROFILE||(0,cR.homedir)()||"";this.userFilePath=(0,_m.join)(s,r),this.feeds=new Map}async isSupportedInRepo(){try{await uR.default.access(this.workspaceFilePath)}catch{return!1}return!0}async validateAllUsedFeeds(){await this.prepUserFile();let t=[],r=await this.getWorkspaceRegistries(),n=await this.getUserFeeds();for(let i of r){let s=n.get(i);if(s){let o=!0;try{await oR({password:s.authToken||"",organization:s.adoOrganization})}catch{o=!1}t.push({feed:s,isValid:o,fileProvider:this})}else t.push({feed:{registry:i,adoOrganization:Bs(i)},isValid:!1,fileProvider:this})}return t}};var Pl=jt(require("node:fs/promises"),1),_l=require("node:os");var Ol=e=>{let t=new URL(e),n=t.protocol.length+2;return t.toString().slice(n)};var fR=jt(require("node:path"),1);var Fm=jt(require("node:fs/promises"),1);async function qs(e,t){try{if(await Fm.default.readFile(e,{encoding:"utf-8"})===t)return}catch{}await Fm.default.writeFile(e,t,{encoding:"utf-8"})}var Rl=class extends Ws{constructor(t){super("NpmRc",".npmrc",t)}async prepUserFile(){try{let r=(await Pl.default.readFile(this.userFilePath,"utf-8")).split(_l.EOL).filter(n=>!n.includes("registry=")).join(_l.EOL);await qs(this.userFilePath,r)}catch{await qs(this.userFilePath,"")}}async getWorkspaceRegistries(){let t;try{t=new lR.default({npmPath:this.workspaceFilePath,argv:["<dummy_node>","<dummy_pnpm_js>",`--prefix=${fR.default.dirname(this.workspaceFilePath)}`],shorthands:{},definitions:{}}),await t.load()}catch(i){throw i instanceof TypeError&&i.message.includes("Invalid URL")?new Error("Registry URL missing or invalid"):new Error("Error loading .npmrc")}return Object.keys((t.data?.get("project")||{}).data||{}).filter(i=>i.includes("registry")).map(i=>t.get(i,"project")).map(i=>Ol(i))}async getUserFeeds(){let t=new Map;return await this.processNpmRcFile(this.userFilePath,(r,n,i,s)=>{let o=t.get(n);switch(o||(o={registry:n,adoOrganization:Bs(n)},t.set(o.registry,o)),i){case"_password":o.authToken=wl(s).trim();break;case"username":o.userName=s;break;case"email":o.email=s;break}}),t}async patchUserNpmRcFile(t){let r=new Set(t.values()),n=await this.processNpmRcFile(this.userFilePath,(i,s,o,a)=>{let u=t.get(this.toRegistryAndFunctionKey(s,o));return u!==void 0?(r.delete(u),u):i},i=>i);for(let i of r)n.push(i);return n}toRegistryAndFunctionKey(t,r){return`//${t}:${r}=`}async writeWorkspaceRegistries(t){let r=new Map;for(let i of t)r.set(this.toRegistryAndFunctionKey(i.registry,"username"),`//${i.registry}:username=${i.userName||Cl}`),r.set(this.toRegistryAndFunctionKey(i.registry,"email"),`//${i.registry}:email=${i.email||xl}`),r.set(this.toRegistryAndFunctionKey(i.registry,"_password"),`//${i.registry}:_password=${Zn(i.authToken)}`);let n=await this.patchUserNpmRcFile(r);await Pl.default.writeFile(this.userFilePath,n.join(_l.EOL),{encoding:"utf-8"})}async processNpmRcFile(t,r,n){let s=(await Pl.default.readFile(t,{encoding:"utf8"})).split(`
163
- `).map(a=>a.trim()),o=[];for(let a of s){let u=a.indexOf("/:");if(a.startsWith("//")&&u>=2){let c=a.substring(2,u+1),f=a.substring(u+2),l=f.substring(0,f.indexOf("=")),h=f.substring(f.indexOf("=")+1),d=r(a,c,l,h);d&&o.push(d)}else if(n){let c=n(a);c&&o.push(c)}}return o}};var ba=require("os");var Tl=require("os");var Fl=require("node:child_process"),hR=require("node:util"),Dl=(0,hR.promisify)(Fl.exec);function Dm(e,t,r){return new Promise((n,i)=>{let s=r?.cwd||process.cwd();console.log(`\u{1F680} Launching [${e} ${t.join(" ")}] in ${s}`);let o=(0,Fl.spawn)(e,t,{cwd:s,env:r?.env||process.env,stdio:r?.stdio||"inherit",shell:r?.shell||!1});r?.stdio==="pipe"&&(o.stdout?.setEncoding("utf8"),o.stdout?.on("data",function(a){let u=a.toString("utf8");r?.processStdOut?.(u)}),o.stderr?.setEncoding("utf8"),o.stderr?.on("data",function(a){let u=a.toString("utf8");r?.processStdErr?.(u)})),o.on("exit",a=>{a==0?n():i(new Error(`Process ${e} exited with code ${a}`))})})}var Lm;var k8=["npm","exec","--silent","--yes","azureauth","--"],T8={...process.env,npm_config_registry:"https://registry.npmjs.org"},Ll=()=>(Lm||(Lm=sn()?["azureauth.exe"]:k8),{command:Lm,env:T8});var pR=require("child_process");var kl;var dR=async()=>{if(kl===void 0){let{command:e,env:t}=Ll(),r=`${e.join(" ")} --version`;try{let n=await Dl(r,{env:t}),[,i]=n.stdout.split(".");kl=parseInt(i)>=8}catch{kl=!1}}return kl};var gR=async(e,t)=>{if(!Fa())throw new Error(`AzureAuth is not supported for platform ${(0,Tl.platform)()} and architecture ${(0,Tl.arch)()}`);let{command:r,env:n}=t?{command:[t],env:process.env}:Ll(),i=[...r,"ado","pat",`--prompt-hint ${sn()?e.promptHint:`"${e.promptHint}"`}`,`--organization ${e.organization}`,`--display-name ${e.displayName}`,...e.scope.map(s=>`--scope ${s}`)];e.output&&i.push(`--output ${e.output}`),e.mode&&i.push(`--mode ${e.mode}`),e.domain&&i.push(`--domain ${e.domain}`),e.timeout&&i.push(`--timeout ${e.timeout}`);try{let s;if(sn())try{if(s=(0,pR.spawnSync)(i[0],i.slice(1),{encoding:"utf-8"}),s.status!==0||s.stderr&&!s.stdout)throw new Error(`Azure Auth failed with exit code ${s.status}: ${s.stderr}`)}catch(o){throw new Error(`Failed to get Ado Pat from system AzureAuth: ${o.message}`)}else try{if(s=await Dl(i.join(" "),{env:n}),s.stderr&&!s.stdout)throw new Error(s.stderr)}catch(o){throw new Error(`Failed to get Ado Pat from npx AzureAuth: ${o.message}`)}if(e.output==="json")try{return JSON.parse(s.stdout)}catch{throw new Error(`Failed to parse JSON output: ${s.stdout}`)}return s.stdout}catch(s){throw await dR()?new Error(s.message):new Error(`AzureAuth is not installed: ${s}`)}};var Il=jt(require("os"),1),Nl=jt(require("fs"),1),Ea=jt(require("path"),1);var mR="1.4.1",Tm=Ea.default.join(__dirname,"..",".bin","CredentialProvider.Microsoft","v"+mR);async function yR(e){let t=I8(e),r=await $8();return await N8(r,t)}function I8(e){if(!e.endsWith("/npm/registry/"))throw new Error(`Registry URL ${e} is not a valid Azure Artifacts npm registry URL. Expected it to end with '/npm/registry/'`);return"https://"+e.replace("/npm/registry/","/nuget/v3/index.json")}async function N8(e,t){let r="";await Dm(e,["-U",t,"-I","-F","Json"],{stdio:"pipe",processStdOut:n=>{r+=n},processStdErr:n=>{console.error(n)}});try{return JSON.parse(r)}catch{throw new Error(`Failed to parse CredentialProvider output: ${r}`)}}function km(e){if(Nl.default.existsSync(e))return e;if(Nl.default.existsSync(e+".exe"))return e+".exe"}async function $8(){let e=km(Ea.default.join(Il.default.homedir(),".nuget","plugins","netcore","CredentialProvider.Microsoft","CredentialProvider.Microsoft"));if(e)return e;let t=Ea.default.join(Tm,"plugins","netcore","CredentialProvider.Microsoft","CredentialProvider.Microsoft");if(e=km(t),e)return e;if(await M8(),e=km(t),e)Nl.default.chmodSync(e,493);else throw new Error(`CredentialProvider was not found at expected path after download: ${e}`);return e}async function M8(){let e=`https://github.com/microsoft/artifacts-credprovider/releases/download/v${mR}/Microsoft.Net8.${Il.default.platform()}-${Il.default.arch()}.NuGet.CredentialProvider.tar.gz`,t=Ea.default.join(Tm,"CredentialProvider.Microsoft.tar.gz");console.log(`\u{1F310} Downloading ${e}`),await Pm(e,t),await Dm("tar",["-xzf",t,"-C",Tm],{stdio:"inherit"})}var vR=async(e,t,r=!1,n)=>{let i=`${(0,ba.hostname)()}-${e}`,s=await j8(i,e,t,n);return r?Zn(s):s};async function j8(e,t,r,n){let i="vso.packaging_write";switch((0,ba.platform)()){case"win32":case"darwin":return(await gR({promptHint:`Authenticate to ${t} to generate a temporary token for npm`,organization:t,displayName:e,scope:[i],timeout:"30",output:"json"},n)).token;case"linux":return(await yR(r)).Password;default:throw new Error(`Platform ${(0,ba.platform)()} is not supported for ADO authentication`)}}function AR(e,t){let r=new Map;for(let n of e){let i=t(n),s=r.get(i);s?s.push(n):r.set(i,[n])}return r}function IR(e){return typeof e>"u"||e===null}function B8(e){return typeof e=="object"&&e!==null}function W8(e){return Array.isArray(e)?e:IR(e)?[]:[e]}function q8(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 G8(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function U8(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var H8=IR,z8=B8,Y8=W8,V8=G8,K8=U8,X8=q8,st={isNothing:H8,isObject:z8,toArray:Y8,repeat:V8,isNegativeZero:K8,extend:X8};function NR(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
158
+ `)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(d).length,Object.keys(d).join(", ")+y))}},s.unknownArguments=function(l,h,d,p,y=!0){var m;let P=e.getInternalMethods().getCommandInstance().getCommands(),S=[],L=e.getInternalMethods().getContext();if(Object.keys(l).forEach(O=>{!V0.includes(O)&&!Object.prototype.hasOwnProperty.call(d,O)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),O)&&!s.isValidAndSomeAliasIsNotNew(O,h)&&S.push(O)}),y&&(L.commands.length>0||P.length>0||p)&&l._.slice(L.commands.length).forEach(O=>{P.includes(""+O)||S.push(""+O)}),y){let b=((m=e.getDemandedCommands()._)===null||m===void 0?void 0:m.max)||0,_=L.commands.length+b;_<l._.length&&l._.slice(_).forEach(D=>{D=String(D),!L.commands.includes(D)&&!S.includes(D)&&S.push(D)})}S.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",S.length,S.map(O=>O.trim()?O:`"${O}"`).join(", ")))},s.unknownCommands=function(l){let h=e.getInternalMethods().getCommandInstance().getCommands(),d=[],p=e.getInternalMethods().getContext();return(p.commands.length>0||h.length>0)&&l._.slice(p.commands.length).forEach(y=>{h.includes(""+y)||d.push(""+y)}),d.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",d.length,d.join(", "))),!0):!1},s.isValidAndSomeAliasIsNotNew=function(l,h){if(!Object.prototype.hasOwnProperty.call(h,l))return!1;let d=e.parsed.newAliases;return[l,...h[l]].some(p=>!Object.prototype.hasOwnProperty.call(d,p)||!d[l])},s.limitedChoices=function(l){let h=e.getOptions(),d={};if(!Object.keys(h.choices).length)return;Object.keys(l).forEach(m=>{V0.indexOf(m)===-1&&Object.prototype.hasOwnProperty.call(h.choices,m)&&[].concat(l[m]).forEach(P=>{h.choices[m].indexOf(P)===-1&&P!==void 0&&(d[m]=(d[m]||[]).concat(P))})});let p=Object.keys(d);if(!p.length)return;let y=n("Invalid values:");p.forEach(m=>{y+=`
159
+ ${n("Argument: %s, Given: %s, Choices: %s",m,t.stringifiedValues(d[m]),t.stringifiedValues(h.choices[m]))}`}),t.fail(y)};let o={};s.implies=function(l,h){le("<string|object> [array|number|string]",[l,h],arguments.length),typeof l=="object"?Object.keys(l).forEach(d=>{s.implies(d,l[d])}):(e.global(l),o[l]||(o[l]=[]),Array.isArray(h)?h.forEach(d=>s.implies(l,d)):(kt(h,void 0,r),o[l].push(h)))},s.getImplied=function(){return o};function a(f,l){let h=Number(l);return l=isNaN(h)?l:h,typeof l=="number"?l=f._.length>=l:l.match(/^--no-.+/)?(l=l.match(/^--no-(.+)/)[1],l=!Object.prototype.hasOwnProperty.call(f,l)):l=Object.prototype.hasOwnProperty.call(f,l),l}s.implications=function(l){let h=[];if(Object.keys(o).forEach(d=>{let p=d;(o[d]||[]).forEach(y=>{let m=p,P=y;m=a(l,m),y=a(l,y),m&&!y&&h.push(` ${p} -> ${P}`)})}),h.length){let d=`${n("Implications failed:")}
160
+ `;h.forEach(p=>{d+=p}),t.fail(d)}};let u={};s.conflicts=function(l,h){le("<string|object> [array|string]",[l,h],arguments.length),typeof l=="object"?Object.keys(l).forEach(d=>{s.conflicts(d,l[d])}):(e.global(l),u[l]||(u[l]=[]),Array.isArray(h)?h.forEach(d=>s.conflicts(l,d)):u[l].push(h))},s.getConflicting=()=>u,s.conflicting=function(l){Object.keys(l).forEach(h=>{u[h]&&u[h].forEach(d=>{d&&l[h]!==void 0&&l[d]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",h,d))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach(h=>{u[h].forEach(d=>{d&&l[r.Parser.camelCase(h)]!==void 0&&l[r.Parser.camelCase(d)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",h,d))})})},s.recommendCommands=function(l,h){h=h.sort((m,P)=>P.length-m.length);let p=null,y=1/0;for(let m=0,P;(P=h[m])!==void 0;m++){let S=Y0(l,P);S<=3&&S<y&&(y=S,p=P)}p&&t.fail(n("Did you mean %s?",p))},s.reset=function(l){return o=xn(o,h=>!l[h]),u=xn(u,h=>!l[h]),s};let c=[];return s.freeze=function(){c.push({implied:o,conflicting:u})},s.unfreeze=function(){let l=c.pop();kt(l,void 0,r),{implied:o,conflicting:u}=l},s}var yf=[],io;function so(e,t,r,n){io=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let s=/\.json|\..*rc$/.test(e.extends),o=null;if(s)o=Rk(t,e.extends);else try{o=require.resolve(e.extends)}catch{return e}_k(o),yf.push(o),i=s?JSON.parse(io.readFileSync(o,"utf8")):require(e.extends),delete e.extends,i=so(i,io.path.dirname(o),r,io)}return yf=[],r?J0(i,e):Object.assign({},i,e)}function _k(e){if(yf.indexOf(e)>-1)throw new We(`Circular extended configurations: '${e}'.`)}function Rk(e,t){return io.path.resolve(e,t)}function J0(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=J0(e[i],t[i]):r[i]=t[i];return r}var fe=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},R=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Je,ai,oo,cr,Zt,Ya,On,ui,Va,lr,Ka,fr,jr,er,hr,Ja,Vi,ct,ge,Xa,Qa,tr,ci,Ki,li,_n,Za,we,fi,hi,di,Se,eu,Br,ze;function my(e){return(t=[],r=e.process.cwd(),n)=>{let i=new _f(t,r,n,e);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}var X0=Symbol("copyDoubleDash"),Q0=Symbol("copyDoubleDash"),vf=Symbol("deleteFromParserHintObject"),Z0=Symbol("emitWarning"),ey=Symbol("freeze"),ty=Symbol("getDollarZero"),pi=Symbol("getParserConfiguration"),ry=Symbol("getUsageConfiguration"),Af=Symbol("guessLocale"),ny=Symbol("guessVersion"),iy=Symbol("parsePositionalNumbers"),Ef=Symbol("pkgUp"),Rn=Symbol("populateParserHintArray"),Ji=Symbol("populateParserHintSingleValueDictionary"),bf=Symbol("populateParserHintArrayDictionary"),wf=Symbol("populateParserHintDictionary"),Sf=Symbol("sanitizeKey"),Cf=Symbol("setKey"),xf=Symbol("unfreeze"),sy=Symbol("validateAsync"),oy=Symbol("getCommandInstance"),ay=Symbol("getContext"),uy=Symbol("getHasOutput"),cy=Symbol("getLoggerInstance"),ly=Symbol("getParseContext"),fy=Symbol("getUsageInstance"),hy=Symbol("getValidationInstance"),tu=Symbol("hasParseCallback"),dy=Symbol("isGlobalContext"),gi=Symbol("postProcess"),py=Symbol("rebase"),Pf=Symbol("reset"),ao=Symbol("runYargsParserAndExecuteCommands"),Of=Symbol("runValidation"),gy=Symbol("setHasOutput"),mi=Symbol("kTrackManuallySetKeys"),_f=class{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Je.set(this,void 0),ai.set(this,void 0),oo.set(this,{commands:[],fullCommands:[]}),cr.set(this,null),Zt.set(this,null),Ya.set(this,"show-hidden"),On.set(this,null),ui.set(this,!0),Va.set(this,{}),lr.set(this,!0),Ka.set(this,[]),fr.set(this,void 0),jr.set(this,{}),er.set(this,!1),hr.set(this,null),Ja.set(this,!0),Vi.set(this,void 0),ct.set(this,""),ge.set(this,void 0),Xa.set(this,void 0),Qa.set(this,{}),tr.set(this,null),ci.set(this,null),Ki.set(this,{}),li.set(this,{}),_n.set(this,void 0),Za.set(this,!1),we.set(this,void 0),fi.set(this,!1),hi.set(this,!1),di.set(this,!1),Se.set(this,void 0),eu.set(this,{}),Br.set(this,null),ze.set(this,void 0),fe(this,we,i,"f"),fe(this,_n,t,"f"),fe(this,ai,r,"f"),fe(this,Xa,n,"f"),fe(this,fr,new Ua(this),"f"),this.$0=this[ty](),this[Pf](),fe(this,Je,R(this,Je,"f"),"f"),fe(this,Se,R(this,Se,"f"),"f"),fe(this,ze,R(this,ze,"f"),"f"),fe(this,ge,R(this,ge,"f"),"f"),R(this,ge,"f").showHiddenOpt=R(this,Ya,"f"),fe(this,Vi,this[Q0](),"f")}addHelpOpt(t,r){let n="help";return le("[string|boolean] [string]",[t,r],arguments.length),R(this,hr,"f")&&(this[vf](R(this,hr,"f")),fe(this,hr,null,"f")),t===!1&&r===void 0?this:(fe(this,hr,typeof t=="string"?t:n,"f"),this.boolean(R(this,hr,"f")),this.describe(R(this,hr,"f"),r||R(this,Se,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(le("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:R(this,Ya,"f");return this.boolean(n),this.describe(n,r||R(this,Se,"f").deferY18nLookup("Show hidden options")),R(this,ge,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return le("<object|string|array> [string|array]",[t,r],arguments.length),this[bf](this.alias.bind(this),"alias",t,r),this}array(t){return le("<array|string>",[t],arguments.length),this[Rn]("array",t),this[mi](t),this}boolean(t){return le("<array|string>",[t],arguments.length),this[Rn]("boolean",t),this[mi](t),this}check(t,r){return le("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>oi(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&R(this,Se,"f").fail(s.toString(),s):R(this,Se,"f").fail(R(this,we,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(R(this,Se,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(t,r){return le("<object|string|array> [string|array]",[t,r],arguments.length),this[bf](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(le("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new We("coerce callback must be provided");for(let n of t)this.coerce(n,r);return this}else if(typeof t=="object"){for(let n of Object.keys(t))this.coerce(n,t[n]);return this}if(!r)throw new We("coerce callback must be provided");return R(this,ge,"f").key[t]=!0,R(this,fr,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?oi(()=>(s=i.getAliases(),r(n[t])),a=>{n[t]=a;let u=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[t]&&u!==!0)for(let c of s[t])n[c]=a;return n},a=>{throw new We(a.message)}):n},t),this}conflicts(t,r){return le("<string|object> [string|array]",[t,r],arguments.length),R(this,ze,"f").conflicts(t,r),this}config(t="config",r,n){return le("[object|string] [string|function] [function]",[t,r,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=so(t,R(this,ai,"f"),this[pi]()["deep-merge-config"]||!1,R(this,we,"f")),R(this,ge,"f").configObjects=(R(this,ge,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||R(this,Se,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{R(this,ge,"f").config[i]=n||!0}),this)}completion(t,r,n){return le("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),fe(this,Zt,t||R(this,Zt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(R(this,Zt,"f"),r),n&&R(this,cr,"f").registerFunction(n),this}command(t,r,n,i,s,o){return le("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,s,o],arguments.length),R(this,Je,"f").addHandler(t,r,n,i,s,o),this}commands(t,r,n,i,s,o){return this.command(t,r,n,i,s,o)}commandDir(t,r){le("<string> [object]",[t,r],arguments.length);let n=R(this,Xa,"f")||R(this,we,"f").require;return R(this,Je,"f").addDirectory(t,n,R(this,we,"f").getCallerFile(),r),this}count(t){return le("<array|string>",[t],arguments.length),this[Rn]("count",t),this[mi](t),this}default(t,r,n){return le("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(hf(t,R(this,we,"f")),R(this,ge,"f").defaultDescription[t]=n),typeof r=="function"&&(hf(t,R(this,we,"f")),R(this,ge,"f").defaultDescription[t]||(R(this,ge,"f").defaultDescription[t]=R(this,Se,"f").functionDescription(r)),r=r.call()),this[Ji](this.default.bind(this),"default",t,r),this}defaults(t,r,n){return this.default(t,r,n)}demandCommand(t=1,r,n,i){return le("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,r,n,i],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),R(this,ge,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{kt(n,!0,R(this,we,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(kt(n,!0,R(this,we,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{kt(n,!0,R(this,we,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return le("<object|string|array> [string]",[t,r],arguments.length),this[Ji](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return le("<string> [string|boolean]",[t,r],arguments.length),R(this,ge,"f").deprecatedOptions[t]=r,this}describe(t,r){return le("<object|string|array> [string]",[t,r],arguments.length),this[Cf](t,!0),R(this,Se,"f").describe(t,r),this}detectLocale(t){return le("<boolean>",[t],arguments.length),fe(this,ui,t,"f"),this}env(t){return le("[string|boolean]",[t],arguments.length),t===!1?delete R(this,ge,"f").envPrefix:R(this,ge,"f").envPrefix=t||"",this}epilogue(t){return le("<string>",[t],arguments.length),R(this,Se,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return le("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):R(this,Se,"f").example(t,r),this}exit(t,r){fe(this,er,!0,"f"),fe(this,On,r,"f"),R(this,lr,"f")&&R(this,we,"f").process.exit(t)}exitProcess(t=!0){return le("[boolean]",[t],arguments.length),fe(this,lr,t,"f"),this}fail(t){if(le("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new We("Invalid first argument. Expected function or boolean 'false'");return R(this,Se,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return le("<array> [function]",[t,r],arguments.length),r?R(this,cr,"f").getCompletion(t,r):new Promise((n,i)=>{R(this,cr,"f").getCompletion(t,(s,o)=>{s?i(s):n(o)})})}getDemandedOptions(){return le([],0),R(this,ge,"f").demandedOptions}getDemandedCommands(){return le([],0),R(this,ge,"f").demandedCommands}getDeprecatedOptions(){return le([],0),R(this,ge,"f").deprecatedOptions}getDetectLocale(){return R(this,ui,"f")}getExitProcess(){return R(this,lr,"f")}getGroups(){return Object.assign({},R(this,jr,"f"),R(this,li,"f"))}getHelp(){if(fe(this,er,!0,"f"),!R(this,Se,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[ao](R(this,_n,"f"),void 0,void 0,0,!0);if(qe(r))return r.then(()=>R(this,Se,"f").help())}let t=R(this,Je,"f").runDefaultBuilderOn(this);if(qe(t))return t.then(()=>R(this,Se,"f").help())}return Promise.resolve(R(this,Se,"f").help())}getOptions(){return R(this,ge,"f")}getStrict(){return R(this,fi,"f")}getStrictCommands(){return R(this,hi,"f")}getStrictOptions(){return R(this,di,"f")}global(t,r){return le("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?R(this,ge,"f").local=R(this,ge,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{R(this,ge,"f").local.includes(n)||R(this,ge,"f").local.push(n)}),this}group(t,r){le("<string|array> <string>",[t,r],arguments.length);let n=R(this,li,"f")[r]||R(this,jr,"f")[r];R(this,li,"f")[r]&&delete R(this,li,"f")[r];let i={};return R(this,jr,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return le("<string>",[t],arguments.length),R(this,ge,"f").hiddenOptions.push(t),this}implies(t,r){return le("<string|object> [number|string|array]",[t,r],arguments.length),R(this,ze,"f").implies(t,r),this}locale(t){return le("[string]",[t],arguments.length),t===void 0?(this[Af](),R(this,we,"f").y18n.getLocale()):(fe(this,ui,!1,"f"),R(this,we,"f").y18n.setLocale(t),this)}middleware(t,r,n){return R(this,fr,"f").addMiddleware(t,!!r,n)}nargs(t,r){return le("<string|object|array> [number]",[t,r],arguments.length),this[Ji](this.nargs.bind(this),"narg",t,r),this}normalize(t){return le("<array|string>",[t],arguments.length),this[Rn]("normalize",t),this}number(t){return le("<array|string>",[t],arguments.length),this[Rn]("number",t),this[mi](t),this}option(t,r){if(le("<string|object> [object]",[t,r],arguments.length),typeof t=="object")Object.keys(t).forEach(n=>{this.options(n,t[n])});else{typeof r!="object"&&(r={}),this[mi](t),R(this,Br,"f")&&(t==="version"||r?.alias==="version")&&this[Z0](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
161
+ `),void 0,"versionWarning"),R(this,ge,"f").key[t]=!0,r.alias&&this.alias(t,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(t,n);let i=r.demand||r.required||r.require;i&&this.demand(t,i),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(R(this,ge,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let s=r.describe||r.description||r.desc,o=R(this,Se,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(o,t)||typeof s=="string")&&this.describe(t,s),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t)}return this}options(t,r){return this.option(t,r)}parse(t,r,n){le("[string|array] [function|boolean|object] [function]",[t,r,n],arguments.length),this[ey](),typeof t>"u"&&(t=R(this,_n,"f")),typeof r=="object"&&(fe(this,ci,r,"f"),r=n),typeof r=="function"&&(fe(this,tr,r,"f"),r=!1),r||fe(this,_n,t,"f"),R(this,tr,"f")&&fe(this,lr,!1,"f");let i=this[ao](t,!!r),s=this.parsed;return R(this,cr,"f").setParsed(this.parsed),qe(i)?i.then(o=>(R(this,tr,"f")&&R(this,tr,"f").call(this,R(this,On,"f"),o,R(this,ct,"f")),o)).catch(o=>{throw R(this,tr,"f")&&R(this,tr,"f")(o,this.parsed.argv,R(this,ct,"f")),o}).finally(()=>{this[xf](),this.parsed=s}):(R(this,tr,"f")&&R(this,tr,"f").call(this,R(this,On,"f"),i,R(this,ct,"f")),this[xf](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return qe(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(qe(i))throw new We(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return le("<object>",[t],arguments.length),fe(this,Qa,t,"f"),this}pkgConf(t,r){le("<string> [string]",[t,r],arguments.length);let n=null,i=this[Ef](r||R(this,ai,"f"));return i[t]&&typeof i[t]=="object"&&(n=so(i[t],r||R(this,ai,"f"),this[pi]()["deep-merge-config"]||!1,R(this,we,"f")),R(this,ge,"f").configObjects=(R(this,ge,"f").configObjects||[]).concat(n)),this}positional(t,r){le("<string> <object>",[t,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=xn(r,(o,a)=>o==="type"&&!["string","number","boolean"].includes(a)?!1:n.includes(o));let i=R(this,oo,"f").fullCommands[R(this,oo,"f").fullCommands.length-1],s=i?R(this,Je,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return zi(s).forEach(o=>{let a=s[o];Array.isArray(a)?a.indexOf(t)!==-1&&(r[o]=!0):a[t]&&!(o in r)&&(r[o]=a[t])}),this.group(t,R(this,Se,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return le("[boolean]",[t],arguments.length),fe(this,Za,t,"f"),this}required(t,r,n){return this.demand(t,r,n)}require(t,r,n){return this.demand(t,r,n)}requiresArg(t){return le("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&R(this,ge,"f").narg[t]?this:(this[Ji](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,r){return le("[string] [string]",[t,r],arguments.length),t=t||this.$0,R(this,Vi,"f").log(R(this,cr,"f").generateCompletionScript(t,r||R(this,Zt,"f")||"completion")),this}showHelp(t){if(le("[string|function]",[t],arguments.length),fe(this,er,!0,"f"),!R(this,Se,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[ao](R(this,_n,"f"),void 0,void 0,0,!0);if(qe(n))return n.then(()=>{R(this,Se,"f").showHelp(t)}),this}let r=R(this,Je,"f").runDefaultBuilderOn(this);if(qe(r))return r.then(()=>{R(this,Se,"f").showHelp(t)}),this}return R(this,Se,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,r){return le("[boolean|string] [string]",[t,r],arguments.length),R(this,Se,"f").showHelpOnFail(t,r),this}showVersion(t){return le("[string|function]",[t],arguments.length),R(this,Se,"f").showVersion(t),this}skipValidation(t){return le("<array|string>",[t],arguments.length),this[Rn]("skipValidation",t),this}strict(t){return le("[boolean]",[t],arguments.length),fe(this,fi,t!==!1,"f"),this}strictCommands(t){return le("[boolean]",[t],arguments.length),fe(this,hi,t!==!1,"f"),this}strictOptions(t){return le("[boolean]",[t],arguments.length),fe(this,di,t!==!1,"f"),this}string(t){return le("<array|string>",[t],arguments.length),this[Rn]("string",t),this[mi](t),this}terminalWidth(){return le([],0),R(this,we,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return le("<object>",[t],arguments.length),fe(this,ui,!1,"f"),R(this,we,"f").y18n.updateLocale(t),this}usage(t,r,n,i){if(le("<string|null|undefined> [string|boolean] [function|object] [function]",[t,r,n,i],arguments.length),r!==void 0){if(kt(t,null,R(this,we,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new We(".usage() description must start with $0 if being used as alias for .command()")}else return R(this,Se,"f").usage(t),this}usageConfiguration(t){return le("<object>",[t],arguments.length),fe(this,eu,t,"f"),this}version(t,r,n){let i="version";if(le("[boolean|string] [string] [string]",[t,r,n],arguments.length),R(this,Br,"f")&&(this[vf](R(this,Br,"f")),R(this,Se,"f").version(void 0),fe(this,Br,null,"f")),arguments.length===0)n=this[ny](),t=i;else if(arguments.length===1){if(t===!1)return this;n=t,t=i}else arguments.length===2&&(n=r,r=void 0);return fe(this,Br,typeof t=="string"?t:i,"f"),r=r||R(this,Se,"f").deferY18nLookup("Show version number"),R(this,Se,"f").version(n||void 0),this.boolean(R(this,Br,"f")),this.describe(R(this,Br,"f"),r),this}wrap(t){return le("<number|null|undefined>",[t],arguments.length),R(this,Se,"f").wrap(t),this}[(Je=new WeakMap,ai=new WeakMap,oo=new WeakMap,cr=new WeakMap,Zt=new WeakMap,Ya=new WeakMap,On=new WeakMap,ui=new WeakMap,Va=new WeakMap,lr=new WeakMap,Ka=new WeakMap,fr=new WeakMap,jr=new WeakMap,er=new WeakMap,hr=new WeakMap,Ja=new WeakMap,Vi=new WeakMap,ct=new WeakMap,ge=new WeakMap,Xa=new WeakMap,Qa=new WeakMap,tr=new WeakMap,ci=new WeakMap,Ki=new WeakMap,li=new WeakMap,_n=new WeakMap,Za=new WeakMap,we=new WeakMap,fi=new WeakMap,hi=new WeakMap,di=new WeakMap,Se=new WeakMap,eu=new WeakMap,Br=new WeakMap,ze=new WeakMap,X0)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[Q0](){return{log:(...t)=>{this[tu]()||console.log(...t),fe(this,er,!0,"f"),R(this,ct,"f").length&&fe(this,ct,R(this,ct,"f")+`
162
+ `,"f"),fe(this,ct,R(this,ct,"f")+t.join(" "),"f")},error:(...t)=>{this[tu]()||console.error(...t),fe(this,er,!0,"f"),R(this,ct,"f").length&&fe(this,ct,R(this,ct,"f")+`
163
+ `,"f"),fe(this,ct,R(this,ct,"f")+t.join(" "),"f")}}}[vf](t){zi(R(this,ge,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=R(this,ge,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete R(this,Se,"f").getDescriptions()[t]}[Z0](t,r,n){R(this,Va,"f")[n]||(R(this,we,"f").process.emitWarning(t,r),R(this,Va,"f")[n]=!0)}[ey](){R(this,Ka,"f").push({options:R(this,ge,"f"),configObjects:R(this,ge,"f").configObjects.slice(0),exitProcess:R(this,lr,"f"),groups:R(this,jr,"f"),strict:R(this,fi,"f"),strictCommands:R(this,hi,"f"),strictOptions:R(this,di,"f"),completionCommand:R(this,Zt,"f"),output:R(this,ct,"f"),exitError:R(this,On,"f"),hasOutput:R(this,er,"f"),parsed:this.parsed,parseFn:R(this,tr,"f"),parseContext:R(this,ci,"f")}),R(this,Se,"f").freeze(),R(this,ze,"f").freeze(),R(this,Je,"f").freeze(),R(this,fr,"f").freeze()}[ty](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(R(this,we,"f").process.argv()[0])?r=R(this,we,"f").process.argv().slice(1,2):r=R(this,we,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[py](R(this,ai,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),R(this,we,"f").getEnv("_")&&R(this,we,"f").getProcessArgvBin()===R(this,we,"f").getEnv("_")&&(t=R(this,we,"f").getEnv("_").replace(`${R(this,we,"f").path.dirname(R(this,we,"f").process.execPath())}/`,"")),t}[pi](){return R(this,Qa,"f")}[ry](){return R(this,eu,"f")}[Af](){if(!R(this,ui,"f"))return;let t=R(this,we,"f").getEnv("LC_ALL")||R(this,we,"f").getEnv("LC_MESSAGES")||R(this,we,"f").getEnv("LANG")||R(this,we,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[ny](){return this[Ef]().version||"unknown"}[iy](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)R(this,we,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[Ef](t){let r=t||"*";if(R(this,Ki,"f")[r])return R(this,Ki,"f")[r];let n={};try{let i=t||R(this,we,"f").mainFilename;!t&&R(this,we,"f").path.extname(i)&&(i=R(this,we,"f").path.dirname(i));let s=R(this,we,"f").findUp(i,(o,a)=>{if(a.includes("package.json"))return"package.json"});kt(s,void 0,R(this,we,"f")),n=JSON.parse(R(this,we,"f").readFileSync(s,"utf8"))}catch{}return R(this,Ki,"f")[r]=n||{},R(this,Ki,"f")[r]}[Rn](t,r){r=[].concat(r),r.forEach(n=>{n=this[Sf](n),R(this,ge,"f")[t].push(n)})}[Ji](t,r,n,i){this[wf](t,r,n,i,(s,o,a)=>{R(this,ge,"f")[s][o]=a})}[bf](t,r,n,i){this[wf](t,r,n,i,(s,o,a)=>{R(this,ge,"f")[s][o]=(R(this,ge,"f")[s][o]||[]).concat(a)})}[wf](t,r,n,i,s){if(Array.isArray(n))n.forEach(o=>{t(o,i)});else if((o=>typeof o=="object")(n))for(let o of zi(n))t(o,n[o]);else s(r,this[Sf](n),i)}[Sf](t){return t==="__proto__"?"___proto___":t}[Cf](t,r){return this[Ji](this[Cf].bind(this),"key",t,r),this}[xf](){var t,r,n,i,s,o,a,u,c,f,l,h;let d=R(this,Ka,"f").pop();kt(d,void 0,R(this,we,"f"));let p;t=this,r=this,n=this,i=this,s=this,o=this,a=this,u=this,c=this,f=this,l=this,h=this,{options:{set value(y){fe(t,ge,y,"f")}}.value,configObjects:p,exitProcess:{set value(y){fe(r,lr,y,"f")}}.value,groups:{set value(y){fe(n,jr,y,"f")}}.value,output:{set value(y){fe(i,ct,y,"f")}}.value,exitError:{set value(y){fe(s,On,y,"f")}}.value,hasOutput:{set value(y){fe(o,er,y,"f")}}.value,parsed:this.parsed,strict:{set value(y){fe(a,fi,y,"f")}}.value,strictCommands:{set value(y){fe(u,hi,y,"f")}}.value,strictOptions:{set value(y){fe(c,di,y,"f")}}.value,completionCommand:{set value(y){fe(f,Zt,y,"f")}}.value,parseFn:{set value(y){fe(l,tr,y,"f")}}.value,parseContext:{set value(y){fe(h,ci,y,"f")}}.value}=d,R(this,ge,"f").configObjects=p,R(this,Se,"f").unfreeze(),R(this,ze,"f").unfreeze(),R(this,Je,"f").unfreeze(),R(this,fr,"f").unfreeze()}[sy](t,r){return oi(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[oy].bind(this),getContext:this[ay].bind(this),getHasOutput:this[uy].bind(this),getLoggerInstance:this[cy].bind(this),getParseContext:this[ly].bind(this),getParserConfiguration:this[pi].bind(this),getUsageConfiguration:this[ry].bind(this),getUsageInstance:this[fy].bind(this),getValidationInstance:this[hy].bind(this),hasParseCallback:this[tu].bind(this),isGlobalContext:this[dy].bind(this),postProcess:this[gi].bind(this),reset:this[Pf].bind(this),runValidation:this[Of].bind(this),runYargsParserAndExecuteCommands:this[ao].bind(this),setHasOutput:this[gy].bind(this)}}[oy](){return R(this,Je,"f")}[ay](){return R(this,oo,"f")}[uy](){return R(this,er,"f")}[cy](){return R(this,Vi,"f")}[ly](){return R(this,ci,"f")||{}}[fy](){return R(this,Se,"f")}[hy](){return R(this,ze,"f")}[tu](){return!!R(this,tr,"f")}[dy](){return R(this,Ja,"f")}[gi](t,r,n,i){return n||qe(t)||(r||(t=this[X0](t)),(this[pi]()["parse-positional-numbers"]||this[pi]()["parse-positional-numbers"]===void 0)&&(t=this[iy](t)),i&&(t=si(t,this,R(this,fr,"f").getMiddleware(),!1))),t}[Pf](t={}){fe(this,ge,R(this,ge,"f")||{},"f");let r={};r.local=R(this,ge,"f").local||[],r.configObjects=R(this,ge,"f").configObjects||[];let n={};r.local.forEach(o=>{n[o]=!0,(t[o]||[]).forEach(a=>{n[a]=!0})}),Object.assign(R(this,li,"f"),Object.keys(R(this,jr,"f")).reduce((o,a)=>{let u=R(this,jr,"f")[a].filter(c=>!(c in n));return u.length>0&&(o[a]=u),o},{})),fe(this,jr,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(o=>{r[o]=(R(this,ge,"f")[o]||[]).filter(a=>!n[a])}),s.forEach(o=>{r[o]=xn(R(this,ge,"f")[o],a=>!n[a])}),r.envPrefix=R(this,ge,"f").envPrefix,fe(this,ge,r,"f"),fe(this,Se,R(this,Se,"f")?R(this,Se,"f").reset(n):G0(this,R(this,we,"f")),"f"),fe(this,ze,R(this,ze,"f")?R(this,ze,"f").reset(n):K0(this,R(this,Se,"f"),R(this,we,"f")),"f"),fe(this,Je,R(this,Je,"f")?R(this,Je,"f").reset():B0(R(this,Se,"f"),R(this,ze,"f"),R(this,fr,"f"),R(this,we,"f")),"f"),R(this,cr,"f")||fe(this,cr,z0(this,R(this,Se,"f"),R(this,Je,"f"),R(this,we,"f")),"f"),R(this,fr,"f").reset(),fe(this,Zt,null,"f"),fe(this,ct,"","f"),fe(this,On,null,"f"),fe(this,er,!1,"f"),this.parsed=!1,this}[py](t,r){return R(this,we,"f").path.relative(t,r)}[ao](t,r,n,i=0,s=!1){let o=!!n||s;t=t||R(this,_n,"f"),R(this,ge,"f").__=R(this,we,"f").y18n.__,R(this,ge,"f").configuration=this[pi]();let a=!!R(this,ge,"f").configuration["populate--"],u=Object.assign({},R(this,ge,"f").configuration,{"populate--":!0}),c=R(this,we,"f").Parser.detailed(t,Object.assign({},R(this,ge,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),f=Object.assign(c.argv,R(this,ci,"f")),l,h=c.aliases,d=!1,p=!1;Object.keys(f).forEach(y=>{y===R(this,hr,"f")&&f[y]?d=!0:y===R(this,Br,"f")&&f[y]&&(p=!0)}),f.$0=this.$0,this.parsed=c,i===0&&R(this,Se,"f").clearCachedHelpMessage();try{if(this[Af](),r)return this[gi](f,a,!!n,!1);R(this,hr,"f")&&[R(this,hr,"f")].concat(h[R(this,hr,"f")]||[]).filter(L=>L.length>1).includes(""+f._[f._.length-1])&&(f._.pop(),d=!0),fe(this,Ja,!1,"f");let y=R(this,Je,"f").getCommands(),m=R(this,cr,"f").completionKey in f,P=d||m||s;if(f._.length){if(y.length){let S;for(let L=i||0,O;f._[L]!==void 0;L++)if(O=String(f._[L]),y.includes(O)&&O!==R(this,Zt,"f")){let b=R(this,Je,"f").runCommand(O,this,c,L+1,s,d||p||s);return this[gi](b,a,!!n,!1)}else if(!S&&O!==R(this,Zt,"f")){S=O;break}!R(this,Je,"f").hasDefaultCommand()&&R(this,Za,"f")&&S&&!P&&R(this,ze,"f").recommendCommands(S,y)}R(this,Zt,"f")&&f._.includes(R(this,Zt,"f"))&&!m&&(R(this,lr,"f")&&Pn(!0),this.showCompletionScript(),this.exit(0))}if(R(this,Je,"f").hasDefaultCommand()&&!P){let S=R(this,Je,"f").runCommand(null,this,c,0,s,d||p||s);return this[gi](S,a,!!n,!1)}if(m){R(this,lr,"f")&&Pn(!0),t=[].concat(t);let S=t.slice(t.indexOf(`--${R(this,cr,"f").completionKey}`)+1);return R(this,cr,"f").getCompletion(S,(L,O)=>{if(L)throw new We(L.message);(O||[]).forEach(b=>{R(this,Vi,"f").log(b)}),this.exit(0)}),this[gi](f,!a,!!n,!1)}if(R(this,er,"f")||(d?(R(this,lr,"f")&&Pn(!0),o=!0,this.showHelp("log"),this.exit(0)):p&&(R(this,lr,"f")&&Pn(!0),o=!0,R(this,Se,"f").showVersion("log"),this.exit(0))),!o&&R(this,ge,"f").skipValidation.length>0&&(o=Object.keys(f).some(S=>R(this,ge,"f").skipValidation.indexOf(S)>=0&&f[S]===!0)),!o){if(c.error)throw new We(c.error.message);if(!m){let S=this[Of](h,{},c.error);n||(l=si(f,this,R(this,fr,"f").getMiddleware(),!0)),l=this[sy](S,l??f),qe(l)&&!n&&(l=l.then(()=>si(f,this,R(this,fr,"f").getMiddleware(),!1)))}}}catch(y){if(y instanceof We)R(this,Se,"f").fail(y.message,y);else throw y}return this[gi](l??f,a,!!n,!0)}[Of](t,r,n,i){let s={...this.getDemandedOptions()};return o=>{if(n)throw new We(n.message);R(this,ze,"f").nonOptionCount(o),R(this,ze,"f").requiredArguments(o,s);let a=!1;R(this,hi,"f")&&(a=R(this,ze,"f").unknownCommands(o)),R(this,fi,"f")&&!a?R(this,ze,"f").unknownArguments(o,t,r,!!i):R(this,di,"f")&&R(this,ze,"f").unknownArguments(o,t,{},!1,!1),R(this,ze,"f").limitedChoices(o),R(this,ze,"f").implications(o),R(this,ze,"f").conflicting(o)}}[gy](){fe(this,er,!0,"f")}[mi](t){if(typeof t=="string")R(this,ge,"f").key[t]=!0;else for(let r of t)R(this,ge,"f").key[r]=!0}};function W0(e){return!!e&&typeof e.getInternalMethods=="function"}var Fk=my(ff),yy=Fk;function vy(e){let t=yy(cf(e)).option({skipCheck:{type:"boolean",description:"Skip checking the validity of the feeds"},skipAuth:{type:"boolean",description:"Skip authenticating the feeds"},configFile:{alias:"c",type:"string",description:"Skip checking the validity of the feeds"},azureAuthLocation:{type:"string",description:"Allow specifying alternate location to azureauth"},exitCodeOnReAuthenticate:{type:"number",description:"Exit when re-authentication occurs"}}).help().parseSync();return{skipAuth:t.skipAuth||!1,doValidCheck:!t.skipCheck,configFile:t.configFile,azureAuthLocation:t.azureAuthLocation,exitCodeOnReAuthenticate:t.exitCodeOnReAuthenticate}}var RR=jt(QS(),1);var PR=jt(wR(),1),Wm=require("node:path"),OR=jt(require("node:fs/promises"),1),qm=jt(require("node:path"),1),_R=require("node:os");var gz=e=>{try{e.startsWith("https://")||(e="https://"+e);let t=new URL(e),r=t.hostname,n=t.pathname;if(r.endsWith("dev.azure.com")){let i=n.split("/").filter(Boolean);if(i.length>=2)return{organization:i[0],project:i[1]};throw new Error("Not enough segments in path for a valid organization and project extraction.")}if(r.endsWith("visualstudio.com")){let i=r.split(".")[0],s=n.split("/").filter(Boolean);if(i&&s.length>=1)return{organization:i,project:s[0]};throw new Error("Not enough segments in path or missing subdomain for a valid organization and project extraction.")}throw new Error("URL format not recognized or does not contain enough information.")}catch{throw new Error("Invalid URL or unsupported format")}},Us=(e,t="")=>{try{let{organization:r}=gz(e);return r}catch{return t}};function Zn(e){return Buffer.from(e||"").toString("base64")}var Rl=e=>Buffer.from(e,"base64").toString("utf8");var jm=jt(require("https"),1),Fl=jt(require("fs"),1),SR=jt(require("path"),1),mz={port:443,method:"GET"},CR=async e=>new Promise((t,r)=>{let n={...mz,...e};jm.default.request(n,s=>{let o="",a={},u=s.statusCode===200;s.on("data",c=>{o+=c}),s.on("end",()=>{o&&yz(n?.headers,"application/json")&&(a=JSON.parse(o.toString().trim())),u?t(a||o):(a&&(a={...a,statusCode:s.statusCode}),r(a||o||new Error(`Error code: ${s.statusCode}.`)))}),s.on("error",c=>{r(new Error(c))})}).end()});function yz(e,t){if(!e)return!1;if(Array.isArray(e)){for(let i of e){let s=i.toLowerCase().indexOf("accept:");if(s===0&&i.slice(s+7).trim().split(",").map(u=>u.trim()).includes(t))return!0}return!1}let n=Object.entries(e).find(([i])=>i.toLowerCase()==="accept")?.[1];return typeof n=="string"?n===t:Array.isArray(n)?n.includes(t):!1}async function Bm(e,t){return new Promise((r,n)=>{jm.default.get(e,i=>{if(i.statusCode===301||i.statusCode===302){let o=i.headers.location;if(o){Bm(o,t).then(r).catch(n);return}else{n(new Error("Redirect without location header"));return}}if(i.statusCode!==200){n(new Error(`HTTP ${i.statusCode}: ${i.statusMessage}`));return}let s;try{let o=SR.default.dirname(t);Fl.default.existsSync(o)||Fl.default.mkdirSync(o,{recursive:!0}),s=Fl.default.createWriteStream(t)}catch(o){n(o);return}s.on("error",o=>{n(o)}),i.pipe(s),s.on("finish",()=>{r()})}).on("error",i=>{n(i)})})}var xR=async({password:e,organization:t})=>{let r=`Basic ${Zn(`.:${e}`)}`,n={hostname:"feeds.dev.azure.com",port:443,path:`/${t}/_apis/packaging/feeds/1?api-version=6.1-preview.1`,method:"GET",headers:{Accept:"application/json",Authorization:r}};try{await CR(n)}catch(i){if(i.statusCode===404)return;throw i}};var kl="me",Dl="me@example.com",Hs=class{constructor(t,r,n){this.id=t;this.workspaceFileName=r;let i;if(n&&qm.default.basename(n)===this.workspaceFileName)i=qm.default.resolve(n);else{let o=(0,PR.getWorkspaceRoot)(process.cwd())||"";i=(0,Wm.join)(o,this.workspaceFileName)}this.workspaceFilePath=i;let s=process.env.HOME||process.env.USERPROFILE||(0,_R.homedir)()||"";this.userFilePath=(0,Wm.join)(s,r),this.feeds=new Map}async isSupportedInRepo(){try{await OR.default.access(this.workspaceFilePath)}catch{return!1}return!0}async validateAllUsedFeeds(){await this.prepUserFile();let t=[],r=await this.getWorkspaceRegistries(),n=await this.getUserFeeds();for(let i of r){let s=n.get(i);if(s){let o=!0;try{await xR({password:s.authToken||"",organization:s.adoOrganization})}catch{o=!1}t.push({feed:s,isValid:o,fileProvider:this})}else t.push({feed:{registry:i,adoOrganization:Us(i)},isValid:!1,fileProvider:this})}return t}};var Tl=jt(require("node:fs/promises"),1),Il=require("node:os");var Ll=e=>{let t=new URL(e),n=t.protocol.length+2;return t.toString().slice(n)};var FR=jt(require("node:path"),1);var Gm=jt(require("node:fs/promises"),1);async function zs(e,t){try{if(await Gm.default.readFile(e,{encoding:"utf-8"})===t)return}catch{}await Gm.default.writeFile(e,t,{encoding:"utf-8"})}var Nl=class extends Hs{constructor(t){super("NpmRc",".npmrc",t)}async prepUserFile(){try{let r=(await Tl.default.readFile(this.userFilePath,"utf-8")).split(Il.EOL).filter(n=>!n.includes("registry=")).join(Il.EOL);await zs(this.userFilePath,r)}catch{await zs(this.userFilePath,"")}}async getWorkspaceRegistries(){let t;try{t=new RR.default({npmPath:this.workspaceFilePath,argv:["<dummy_node>","<dummy_pnpm_js>",`--prefix=${FR.default.dirname(this.workspaceFilePath)}`],shorthands:{},definitions:{}}),await t.load()}catch(i){throw i instanceof TypeError&&i.message.includes("Invalid URL")?new Error("Registry URL missing or invalid"):new Error("Error loading .npmrc")}return Object.keys((t.data?.get("project")||{}).data||{}).filter(i=>i.includes("registry")).map(i=>t.get(i,"project")).map(i=>Ll(i))}async getUserFeeds(){let t=new Map;return await this.processNpmRcFile(this.userFilePath,(r,n,i,s)=>{let o=t.get(n);switch(o||(o={registry:n,adoOrganization:Us(n)},t.set(o.registry,o)),i){case"_password":o.authToken=Rl(s).trim();break;case"username":o.userName=s;break;case"email":o.email=s;break}}),t}async patchUserNpmRcFile(t){let r=new Set(t.values()),n=await this.processNpmRcFile(this.userFilePath,(i,s,o,a)=>{let u=t.get(this.toRegistryAndFunctionKey(s,o));return u!==void 0?(r.delete(u),u):i},i=>i);for(let i of r)n.push(i);return n}toRegistryAndFunctionKey(t,r){return`//${t}:${r}=`}async writeWorkspaceRegistries(t){let r=new Map;for(let i of t)r.set(this.toRegistryAndFunctionKey(i.registry,"username"),`//${i.registry}:username=${i.userName||kl}`),r.set(this.toRegistryAndFunctionKey(i.registry,"email"),`//${i.registry}:email=${i.email||Dl}`),r.set(this.toRegistryAndFunctionKey(i.registry,"_password"),`//${i.registry}:_password=${Zn(i.authToken)}`);let n=await this.patchUserNpmRcFile(r);await Tl.default.writeFile(this.userFilePath,n.join(Il.EOL),{encoding:"utf-8"})}async processNpmRcFile(t,r,n){let s=(await Tl.default.readFile(t,{encoding:"utf8"})).split(`
164
+ `).map(a=>a.trim()),o=[];for(let a of s){let u=a.indexOf("/:");if(a.startsWith("//")&&u>=2){let c=a.substring(2,u+1),f=a.substring(u+2),l=f.substring(0,f.indexOf("=")),h=f.substring(f.indexOf("=")+1),d=r(a,c,l,h);d&&o.push(d)}else if(n){let c=n(a);c&&o.push(c)}}return o}};var xa=require("os");var Wl=require("os");var $l=require("node:child_process"),kR=require("node:util"),Ml=(0,kR.promisify)($l.exec);function Um(e,t,r){return new Promise((n,i)=>{let s=r?.cwd||process.cwd();console.log(`\u{1F680} Launching [${e} ${t.join(" ")}] in ${s}`);let o=(0,$l.spawn)(e,t,{cwd:s,env:r?.env||process.env,stdio:r?.stdio||"inherit",shell:r?.shell||!1});r?.stdio==="pipe"&&(o.stdout?.setEncoding("utf8"),o.stdout?.on("data",function(a){let u=a.toString("utf8");r?.processStdOut?.(u)}),o.stderr?.setEncoding("utf8"),o.stderr?.on("data",function(a){let u=a.toString("utf8");r?.processStdErr?.(u)})),o.on("exit",a=>{a==0?n():i(new Error(`Process ${e} exited with code ${a}`))})})}var Hm;var vz=["npm","exec","--silent","--yes","azureauth","--"],Az={...process.env,npm_config_registry:"https://registry.npmjs.org"},jl=()=>(Hm||(Hm=nn()?["azureauth.exe"]:vz),{command:Hm,env:Az});var LR=require("child_process");var Bl;var DR=async()=>{if(Bl===void 0){let{command:e,env:t}=jl(),r=`${e.join(" ")} --version`;try{let n=await Ml(r,{env:t}),[,i]=n.stdout.split(".");Bl=parseInt(i)>=8}catch{Bl=!1}}return Bl};var TR=async(e,t)=>{if(!Ta())throw new Error(`AzureAuth is not supported for platform ${(0,Wl.platform)()} and architecture ${(0,Wl.arch)()}`);let{command:r,env:n}=t?{command:[t],env:process.env}:jl(),i=[...r,"ado","pat",`--prompt-hint ${nn()?e.promptHint:`"${e.promptHint}"`}`,`--organization ${e.organization}`,`--display-name ${e.displayName}`,...e.scope.map(s=>`--scope ${s}`)];e.output&&i.push(`--output ${e.output}`),e.mode&&i.push(`--mode ${e.mode}`),e.domain&&i.push(`--domain ${e.domain}`),e.timeout&&i.push(`--timeout ${e.timeout}`);try{let s;if(nn())try{if(s=(0,LR.spawnSync)(i[0],i.slice(1),{encoding:"utf-8"}),s.status!==0||s.stderr&&!s.stdout)throw new Error(`Azure Auth failed with exit code ${s.status}: ${s.stderr}`)}catch(o){throw new Error(`Failed to get Ado Pat from system AzureAuth: ${o.message}`)}else try{if(s=await Ml(i.join(" "),{env:n}),s.stderr&&!s.stdout)throw new Error(s.stderr)}catch(o){throw new Error(`Failed to get Ado Pat from npx AzureAuth: ${o.message}`)}if(e.output==="json")try{return JSON.parse(s.stdout)}catch{throw new Error(`Failed to parse JSON output: ${s.stdout}`)}return s.stdout}catch(s){throw await DR()?new Error(s.message):new Error(`AzureAuth is not installed: ${s}`)}};var ql=jt(require("os"),1),Gl=jt(require("fs"),1),Ys=jt(require("path"),1),IR=require("url");var Cz={},NR="1.4.1",Ym=Ys.default.join(Ys.default.dirname((0,IR.fileURLToPath)(Cz.url)),"..",".bin","CredentialProvider.Microsoft","v"+NR);async function $R(e){let t=Ez(e),r=await wz();return await bz(r,t)}function Ez(e){if(!e.endsWith("/npm/registry/"))throw new Error(`Registry URL ${e} is not a valid Azure Artifacts npm registry URL. Expected it to end with '/npm/registry/'`);return"https://"+e.replace("/npm/registry/","/nuget/v3/index.json")}async function bz(e,t){let r="";await Um(e,["-U",t,"-I","-F","Json"],{stdio:"pipe",processStdOut:n=>{r+=n},processStdErr:n=>{console.error(n)}});try{return JSON.parse(r)}catch{throw new Error(`Failed to parse CredentialProvider output: ${r}`)}}function zm(e){if(Gl.default.existsSync(e))return e;if(Gl.default.existsSync(e+".exe"))return e+".exe"}async function wz(){let e=zm(Ys.default.join(ql.default.homedir(),".nuget","plugins","netcore","CredentialProvider.Microsoft","CredentialProvider.Microsoft"));if(e)return e;let t=Ys.default.join(Ym,"plugins","netcore","CredentialProvider.Microsoft","CredentialProvider.Microsoft");if(e=zm(t),e)return e;if(await Sz(),e=zm(t),e)Gl.default.chmodSync(e,493);else throw new Error(`CredentialProvider was not found at expected path after download: ${e}`);return e}async function Sz(){let e=`https://github.com/microsoft/artifacts-credprovider/releases/download/v${NR}/Microsoft.Net8.${ql.default.platform()}-${ql.default.arch()}.NuGet.CredentialProvider.tar.gz`,t=Ys.default.join(Ym,"CredentialProvider.Microsoft.tar.gz");console.log(`\u{1F310} Downloading ${e}`),await Bm(e,t),await Um("tar",["-xzf",t,"-C",Ym],{stdio:"inherit"})}var MR=async(e,t,r=!1,n)=>{let i=`${(0,xa.hostname)()}-${e}`,s=await xz(i,e,t,n);return r?Zn(s):s};async function xz(e,t,r,n){let i="vso.packaging_write";switch((0,xa.platform)()){case"win32":case"darwin":return(await TR({promptHint:`Authenticate to ${t} to generate a temporary token for npm`,organization:t,displayName:e,scope:[i],timeout:"30",output:"json"},n)).token;case"linux":return(await $R(r)).Password;default:throw new Error(`Platform ${(0,xa.platform)()} is not supported for ADO authentication`)}}function jR(e,t){let r=new Map;for(let n of e){let i=t(n),s=r.get(i);s?s.push(n):r.set(i,[n])}return r}function tF(e){return typeof e>"u"||e===null}function Pz(e){return typeof e=="object"&&e!==null}function Oz(e){return Array.isArray(e)?e:tF(e)?[]:[e]}function _z(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 Rz(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function Fz(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var kz=tF,Dz=Pz,Lz=Oz,Tz=Rz,Iz=Fz,Nz=_z,ut={isNothing:kz,isObject:Dz,toArray:Lz,repeat:Tz,isNegativeZero:Iz,extend:Nz};function rF(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
164
165
 
165
- `+e.mark.snippet),n+" "+r):n}function Sa(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=NR(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Sa.prototype=Object.create(Error.prototype);Sa.prototype.constructor=Sa;Sa.prototype.toString=function(t){return this.name+": "+NR(this,t)};var $t=Sa;function Im(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function Nm(e,t){return st.repeat(" ",t-e.length)+e}function J8(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,c,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)c=Im(e.buffer,n[o-u],i[o-u],e.position-(n[o]-n[o-u]),l),a=st.repeat(" ",t.indent)+Nm((e.line-u+1).toString(),f)+" | "+c.str+`
166
- `+a;for(c=Im(e.buffer,n[o],i[o],e.position,l),a+=st.repeat(" ",t.indent)+Nm((e.line+1).toString(),f)+" | "+c.str+`
167
- `,a+=st.repeat("-",t.indent+f+3+c.pos)+`^
168
- `,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)c=Im(e.buffer,n[o+u],i[o+u],e.position-(n[o]-n[o+u]),l),a+=st.repeat(" ",t.indent)+Nm((e.line+u+1).toString(),f)+" | "+c.str+`
169
- `;return a.replace(/\n$/,"")}var Q8=J8,Z8=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ez=["scalar","sequence","mapping"];function tz(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function rz(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Z8.indexOf(r)===-1)throw new $t('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,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.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=tz(t.styleAliases||null),ez.indexOf(this.kind)===-1)throw new $t('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var pt=rz;function ER(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function nz(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(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 Mm(e){return this.extend(e)}Mm.prototype.extend=function(t){var r=[],n=[];if(t instanceof pt)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new $t("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof pt))throw new $t("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new $t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new $t("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof pt))throw new $t("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Mm.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=ER(i,"implicit"),i.compiledExplicit=ER(i,"explicit"),i.compiledTypeMap=nz(i.compiledImplicit,i.compiledExplicit),i};var $R=Mm,MR=new pt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),jR=new pt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),BR=new pt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),WR=new $R({explicit:[MR,jR,BR]});function iz(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function sz(){return null}function oz(e){return e===null}var qR=new pt("tag:yaml.org,2002:null",{kind:"scalar",resolve:iz,construct:sz,predicate:oz,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function az(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 uz(e){return e==="true"||e==="True"||e==="TRUE"}function cz(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var GR=new pt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:az,construct:uz,predicate:cz,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function lz(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function fz(e){return 48<=e&&e<=55}function hz(e){return 48<=e&&e<=57}function dz(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(!lz(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!fz(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!hz(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function pz(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function gz(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!st.isNegativeZero(e)}var UR=new pt("tag:yaml.org,2002:int",{kind:"scalar",resolve:dz,construct:pz,predicate:gz,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+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"]}}),mz=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function yz(e){return!(e===null||!mz.test(e)||e[e.length-1]==="_")}function vz(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var Az=/^[-+]?[0-9]+e/;function Ez(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(st.isNegativeZero(e))return"-0.0";return r=e.toString(10),Az.test(r)?r.replace("e",".e"):r}function bz(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||st.isNegativeZero(e))}var HR=new pt("tag:yaml.org,2002:float",{kind:"scalar",resolve:yz,construct:vz,predicate:bz,represent:Ez,defaultStyle:"lowercase"}),zR=WR.extend({implicit:[qR,GR,UR,HR]}),YR=zR,VR=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),KR=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 wz(e){return e===null?!1:VR.exec(e)!==null||KR.exec(e)!==null}function Sz(e){var t,r,n,i,s,o,a,u=0,c=null,f,l,h;if(t=VR.exec(e),t===null&&(t=KR.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],a=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],l=+(t[11]||0),c=(f*60+l)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,i,s,o,a,u)),c&&h.setTime(h.getTime()-c),h}function Cz(e){return e.toISOString()}var XR=new pt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:wz,construct:Sz,instanceOf:Date,represent:Cz});function xz(e){return e==="<<"||e===null}var JR=new pt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:xz}),Gm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
170
- \r`;function Oz(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Gm;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 Pz(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Gm,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function _z(e){var t="",r=0,n,i,s=e.length,o=Gm;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 Rz(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var QR=new pt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Oz,construct:Pz,predicate:Rz,represent:_z}),Fz=Object.prototype.hasOwnProperty,Dz=Object.prototype.toString;function Lz(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,Dz.call(i)!=="[object Object]")return!1;for(s in i)if(Fz.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 kz(e){return e!==null?e:[]}var ZR=new pt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Lz,construct:kz}),Tz=Object.prototype.toString;function Iz(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],Tz.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function Nz(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 eF=new pt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Iz,construct:Nz}),$z=Object.prototype.hasOwnProperty;function Mz(e){if(e===null)return!0;var t,r=e;for(t in r)if($z.call(r,t)&&r[t]!==null)return!1;return!0}function jz(e){return e!==null?e:{}}var tF=new pt("tag:yaml.org,2002:set",{kind:"mapping",resolve:Mz,construct:jz}),Um=YR.extend({implicit:[XR,JR],explicit:[QR,ZR,eF,tF]}),ti=Object.prototype.hasOwnProperty,$l=1,rF=2,nF=3,Ml=4,$m=1,Bz=2,bR=3,Wz=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qz=/[\x85\u2028\u2029]/,Gz=/[,\[\]\{\}]/,iF=/^(?:!|!!|![a-z\-]+!)$/i,sF=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function wR(e){return Object.prototype.toString.call(e)}function en(e){return e===10||e===13}function $i(e){return e===9||e===32}function Ht(e){return e===9||e===32||e===10||e===13}function Us(e){return e===44||e===91||e===93||e===123||e===125}function Uz(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Hz(e){return e===120?2:e===117?4:e===85?8:0}function zz(e){return 48<=e&&e<=57?e-48:-1}function SR(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
171
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Yz(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function oF(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}var aF=new Array(256),uF=new Array(256);for(Ni=0;Ni<256;Ni++)aF[Ni]=SR(Ni)?1:0,uF[Ni]=SR(Ni);var Ni;function Vz(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Um,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.firstTabInLine=-1,this.documents=[]}function cF(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Q8(r),new $t(t,r)}function ye(e,t){throw cF(e,t)}function jl(e,t){e.onWarning&&e.onWarning.call(null,cF(e,t))}var CR={YAML:function(t,r,n){var i,s,o;t.version!==null&&ye(t,"duplication of %YAML directive"),n.length!==1&&ye(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ye(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&ye(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&jl(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&ye(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],iF.test(i)||ye(t,"ill-formed tag handle (first argument) of the TAG directive"),ti.call(t.tagMap,i)&&ye(t,'there is a previously declared suffix for "'+i+'" tag handle'),sF.test(s)||ye(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ye(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function ei(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||ye(e,"expected valid JSON character");else Wz.test(a)&&ye(e,"the stream contains non-printable characters");e.result+=a}}function xR(e,t,r,n){var i,s,o,a;for(st.isObject(r)||ye(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],ti.call(t,s)||(oF(t,s,r[s]),n[s]=!0)}function Hs(e,t,r,n,i,s,o,a,u){var c,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,f=i.length;c<f;c+=1)Array.isArray(i[c])&&ye(e,"nested arrays are not supported inside keys"),typeof i=="object"&&wR(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&wR(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,f=s.length;c<f;c+=1)xR(e,t,s[c],r);else xR(e,t,s,r);else!e.json&&!ti.call(r,i)&&ti.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,ye(e,"duplicated mapping key")),oF(t,i,s),delete r[i];return t}function Hm(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++):ye(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function rt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;$i(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),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(en(i))for(Hm(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&&jl(e,"deficient indentation"),n}function ql(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||Ht(r)))}function zm(e,t){t===1?e.result+=" ":t>1&&(e.result+=st.repeat(`
172
- `,t-1))}function Kz(e,t,r){var n,i,s,o,a,u,c,f,l=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),Ht(d)||Us(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),Ht(i)||r&&Us(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),Ht(i)||r&&Us(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),Ht(n))break}else{if(e.position===e.lineStart&&ql(e)||r&&Us(d))break;if(en(d))if(u=e.line,c=e.lineStart,f=e.lineIndent,rt(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=c,e.lineIndent=f;break}}a&&(ei(e,s,o,!1),zm(e,e.line-u),s=o=e.position,a=!1),$i(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return ei(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function Xz(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(ei(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 en(r)?(ei(e,n,i,!0),zm(e,rt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ql(e)?ye(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ye(e,"unexpected end of the stream within a single quoted scalar")}function Jz(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return ei(e,r,e.position,!0),e.position++,!0;if(a===92){if(ei(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),en(a))rt(e,!1,t);else if(a<256&&aF[a])e.result+=uF[a],e.position++;else if((o=Hz(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=Uz(a))>=0?s=(s<<4)+o:ye(e,"expected hexadecimal character");e.result+=Yz(s),e.position++}else ye(e,"unknown escape sequence");r=n=e.position}else en(a)?(ei(e,r,n,!0),zm(e,rt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&ql(e)?ye(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ye(e,"unexpected end of the stream within a double quoted scalar")}function Qz(e,t){var r=!0,n,i,s,o=e.tag,a,u=e.anchor,c,f,l,h,d,p=Object.create(null),y,m,O,S;if(S=e.input.charCodeAt(e.position),S===91)f=93,d=!1,a=[];else if(S===123)f=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),S=e.input.charCodeAt(++e.position);S!==0;){if(rt(e,!0,t),S=e.input.charCodeAt(e.position),S===f)return e.position++,e.tag=o,e.anchor=u,e.kind=d?"mapping":"sequence",e.result=a,!0;r?S===44&&ye(e,"expected the node content, but found ','"):ye(e,"missed comma between flow collection entries"),m=y=O=null,l=h=!1,S===63&&(c=e.input.charCodeAt(e.position+1),Ht(c)&&(l=h=!0,e.position++,rt(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,zs(e,t,$l,!1,!0),m=e.tag,y=e.result,rt(e,!0,t),S=e.input.charCodeAt(e.position),(h||e.line===n)&&S===58&&(l=!0,S=e.input.charCodeAt(++e.position),rt(e,!0,t),zs(e,t,$l,!1,!0),O=e.result),d?Hs(e,a,p,m,y,O,n,i,s):l?a.push(Hs(e,null,p,m,y,O,n,i,s)):a.push(y),rt(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(r=!0,S=e.input.charCodeAt(++e.position)):r=!1}ye(e,"unexpected end of the stream within a flow collection")}function Zz(e,t){var r,n,i=$m,s=!1,o=!1,a=t,u=0,c=!1,f,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)$m===i?i=l===43?bR:Bz:ye(e,"repeat of a chomping mode identifier");else if((f=zz(l))>=0)f===0?ye(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ye(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if($i(l)){do l=e.input.charCodeAt(++e.position);while($i(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!en(l)&&l!==0)}for(;l!==0;){for(Hm(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),en(l)){u++;continue}if(e.lineIndent<a){i===bR?e.result+=st.repeat(`
173
- `,s?1+u:u):i===$m&&s&&(e.result+=`
174
- `);break}for(n?$i(l)?(c=!0,e.result+=st.repeat(`
175
- `,s?1+u:u)):c?(c=!1,e.result+=st.repeat(`
176
- `,u+1)):u===0?s&&(e.result+=" "):e.result+=st.repeat(`
177
- `,u):e.result+=st.repeat(`
178
- `,s?1+u:u),s=!0,o=!0,u=0,r=e.position;!en(l)&&l!==0;)l=e.input.charCodeAt(++e.position);ei(e,r,e.position,!1)}return!0}function OR(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ye(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!Ht(o))));){if(a=!0,e.position++,rt(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,zs(e,t,nF,!1,!0),s.push(e.result),rt(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)ye(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function e4(e,t,r){var n,i,s,o,a,u,c=e.tag,f=e.anchor,l={},h=Object.create(null),d=null,p=null,y=null,m=!1,O=!1,S;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),S=e.input.charCodeAt(e.position);S!==0;){if(!m&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ye(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(S===63||S===58)&&Ht(n))S===63?(m&&(Hs(e,l,h,d,p,null,o,a,u),d=p=y=null),O=!0,m=!0,i=!0):m?(m=!1,i=!0):ye(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,S=n;else{if(o=e.line,a=e.lineStart,u=e.position,!zs(e,r,rF,!1,!0))break;if(e.line===s){for(S=e.input.charCodeAt(e.position);$i(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),Ht(S)||ye(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Hs(e,l,h,d,p,null,o,a,u),d=p=y=null),O=!0,m=!1,i=!1,d=e.tag,p=e.result;else if(O)ye(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=f,!0}else if(O)ye(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(m&&(o=e.line,a=e.lineStart,u=e.position),zs(e,t,Ml,!0,i)&&(m?p=e.result:y=e.result),m||(Hs(e,l,h,d,p,y,o,a,u),d=p=y=null),rt(e,!0,-1),S=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&S!==0)ye(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Hs(e,l,h,d,p,null,o,a,u),O&&(e.tag=c,e.anchor=f,e.kind="mapping",e.result=l),O}function t4(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&&ye(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)):ye(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ht(o);)o===33&&(n?ye(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),iF.test(i)||ye(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),Gz.test(s)&&ye(e,"tag suffix cannot contain flow indicator characters")}s&&!sF.test(s)&&ye(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ye(e,"tag name is malformed: "+s)}return r?e.tag=s:ti.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ye(e,'undeclared tag handle "'+i+'"'),!0}function r4(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ye(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ht(r)&&!Us(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ye(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function n4(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&&!Ht(n)&&!Us(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ye(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ti.call(e.anchorMap,r)||ye(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],rt(e,!0,-1),!0}function zs(e,t,r,n,i){var s,o,a,u=1,c=!1,f=!1,l,h,d,p,y,m;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Ml===r||nF===r,n&&rt(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;t4(e)||r4(e);)rt(e,!0,-1)?(c=!0,a=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||Ml===r)&&($l===r||rF===r?y=t:y=t+1,m=e.position-e.lineStart,u===1?a&&(OR(e,m)||e4(e,m,y))||Qz(e,y)?f=!0:(o&&Zz(e,y)||Xz(e,y)||Jz(e,y)?f=!0:n4(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&ye(e,"alias node should not have any properties")):Kz(e,y,$l===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=a&&OR(e,m))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ye(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(p=e.implicitTypes[l],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ti.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,h=d.length;l<h;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){p=d[l];break}p||ye(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&ye(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ye(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function i4(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(rt(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&&!Ht(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ye(e,"directive name must not be less than one character in length");o!==0;){for(;$i(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!en(o));break}if(en(o))break;for(r=e.position;o!==0&&!Ht(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&Hm(e),ti.call(CR,n)?CR[n](e,n,i):jl(e,'unknown document directive "'+n+'"')}if(rt(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,rt(e,!0,-1)):s&&ye(e,"directives end mark is expected"),zs(e,e.lineIndent-1,Ml,!1,!0),rt(e,!0,-1),e.checkLineBreaks&&qz.test(e.input.slice(t,e.position))&&jl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ql(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,rt(e,!0,-1));return}if(e.position<e.length-1)ye(e,"end of the stream or a document separator is expected");else return}function lF(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
179
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Vz(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ye(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;)i4(r);return r.documents}function s4(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=lF(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function o4(e,t){var r=lF(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new $t("expected a single document in the stream, but found more")}}var a4=s4,u4=o4,fF={loadAll:a4,load:u4},hF=Object.prototype.toString,dF=Object.prototype.hasOwnProperty,Ym=65279,c4=9,Ca=10,l4=13,f4=32,h4=33,d4=34,jm=35,p4=37,g4=38,m4=39,y4=42,pF=44,v4=45,Bl=58,A4=61,E4=62,b4=63,w4=64,gF=91,mF=93,S4=96,yF=123,C4=124,vF=125,xt={};xt[0]="\\0";xt[7]="\\a";xt[8]="\\b";xt[9]="\\t";xt[10]="\\n";xt[11]="\\v";xt[12]="\\f";xt[13]="\\r";xt[27]="\\e";xt[34]='\\"';xt[92]="\\\\";xt[133]="\\N";xt[160]="\\_";xt[8232]="\\L";xt[8233]="\\P";var x4=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],O4=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function P4(e,t){var r,n,i,s,o,a,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&dF.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function _4(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new $t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+st.repeat("0",n-t.length)+t}var R4=1,xa=2;function F4(e){this.schema=e.schema||Um,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=st.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=P4(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.quotingType=e.quotingType==='"'?xa:R4,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function PR(e,t){for(var r=st.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
166
+ `+e.mark.snippet),n+" "+r):n}function Oa(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=rF(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Oa.prototype=Object.create(Error.prototype);Oa.prototype.constructor=Oa;Oa.prototype.toString=function(t){return this.name+": "+rF(this,t)};var $t=Oa;function Vm(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function Km(e,t){return ut.repeat(" ",t-e.length)+e}function $z(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,c,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)c=Vm(e.buffer,n[o-u],i[o-u],e.position-(n[o]-n[o-u]),l),a=ut.repeat(" ",t.indent)+Km((e.line-u+1).toString(),f)+" | "+c.str+`
167
+ `+a;for(c=Vm(e.buffer,n[o],i[o],e.position,l),a+=ut.repeat(" ",t.indent)+Km((e.line+1).toString(),f)+" | "+c.str+`
168
+ `,a+=ut.repeat("-",t.indent+f+3+c.pos)+`^
169
+ `,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)c=Vm(e.buffer,n[o+u],i[o+u],e.position-(n[o]-n[o+u]),l),a+=ut.repeat(" ",t.indent)+Km((e.line+u+1).toString(),f)+" | "+c.str+`
170
+ `;return a.replace(/\n$/,"")}var Mz=$z,jz=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Bz=["scalar","sequence","mapping"];function Wz(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function qz(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(jz.indexOf(r)===-1)throw new $t('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,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.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Wz(t.styleAliases||null),Bz.indexOf(this.kind)===-1)throw new $t('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var mt=qz;function BR(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function Gz(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(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 Xm(e){return this.extend(e)}Xm.prototype.extend=function(t){var r=[],n=[];if(t instanceof mt)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new $t("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof mt))throw new $t("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new $t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new $t("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof mt))throw new $t("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Xm.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=BR(i,"implicit"),i.compiledExplicit=BR(i,"explicit"),i.compiledTypeMap=Gz(i.compiledImplicit,i.compiledExplicit),i};var nF=Xm,iF=new mt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),sF=new mt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),oF=new mt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),aF=new nF({explicit:[iF,sF,oF]});function Uz(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Hz(){return null}function zz(e){return e===null}var uF=new mt("tag:yaml.org,2002:null",{kind:"scalar",resolve:Uz,construct:Hz,predicate:zz,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Yz(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 Vz(e){return e==="true"||e==="True"||e==="TRUE"}function Kz(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var cF=new mt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Yz,construct:Vz,predicate:Kz,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Jz(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Xz(e){return 48<=e&&e<=55}function Qz(e){return 48<=e&&e<=57}function Zz(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(!Jz(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!Xz(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!Qz(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function e4(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function t4(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!ut.isNegativeZero(e)}var lF=new mt("tag:yaml.org,2002:int",{kind:"scalar",resolve:Zz,construct:e4,predicate:t4,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+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"]}}),r4=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function n4(e){return!(e===null||!r4.test(e)||e[e.length-1]==="_")}function i4(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var s4=/^[-+]?[0-9]+e/;function o4(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(ut.isNegativeZero(e))return"-0.0";return r=e.toString(10),s4.test(r)?r.replace("e",".e"):r}function a4(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ut.isNegativeZero(e))}var fF=new mt("tag:yaml.org,2002:float",{kind:"scalar",resolve:n4,construct:i4,predicate:a4,represent:o4,defaultStyle:"lowercase"}),hF=aF.extend({implicit:[uF,cF,lF,fF]}),dF=hF,pF=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),gF=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 u4(e){return e===null?!1:pF.exec(e)!==null||gF.exec(e)!==null}function c4(e){var t,r,n,i,s,o,a,u=0,c=null,f,l,h;if(t=pF.exec(e),t===null&&(t=gF.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],a=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],l=+(t[11]||0),c=(f*60+l)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,i,s,o,a,u)),c&&h.setTime(h.getTime()-c),h}function l4(e){return e.toISOString()}var mF=new mt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:u4,construct:c4,instanceOf:Date,represent:l4});function f4(e){return e==="<<"||e===null}var yF=new mt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:f4}),r0=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
171
+ \r`;function h4(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=r0;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 d4(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=r0,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function p4(e){var t="",r=0,n,i,s=e.length,o=r0;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 g4(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var vF=new mt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:h4,construct:d4,predicate:g4,represent:p4}),m4=Object.prototype.hasOwnProperty,y4=Object.prototype.toString;function v4(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,y4.call(i)!=="[object Object]")return!1;for(s in i)if(m4.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 A4(e){return e!==null?e:[]}var AF=new mt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:v4,construct:A4}),E4=Object.prototype.toString;function b4(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],E4.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function w4(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 EF=new mt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:b4,construct:w4}),S4=Object.prototype.hasOwnProperty;function C4(e){if(e===null)return!0;var t,r=e;for(t in r)if(S4.call(r,t)&&r[t]!==null)return!1;return!0}function x4(e){return e!==null?e:{}}var bF=new mt("tag:yaml.org,2002:set",{kind:"mapping",resolve:C4,construct:x4}),n0=dF.extend({implicit:[mF,yF],explicit:[vF,AF,EF,bF]}),ti=Object.prototype.hasOwnProperty,Ul=1,wF=2,SF=3,Hl=4,Jm=1,P4=2,WR=3,O4=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_4=/[\x85\u2028\u2029]/,R4=/[,\[\]\{\}]/,CF=/^(?:!|!!|![a-z\-]+!)$/i,xF=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function qR(e){return Object.prototype.toString.call(e)}function Zr(e){return e===10||e===13}function Mi(e){return e===9||e===32}function zt(e){return e===9||e===32||e===10||e===13}function Ks(e){return e===44||e===91||e===93||e===123||e===125}function F4(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function k4(e){return e===120?2:e===117?4:e===85?8:0}function D4(e){return 48<=e&&e<=57?e-48:-1}function GR(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
172
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function L4(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function PF(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}var OF=new Array(256),_F=new Array(256);for($i=0;$i<256;$i++)OF[$i]=GR($i)?1:0,_F[$i]=GR($i);var $i;function T4(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||n0,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.firstTabInLine=-1,this.documents=[]}function RF(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Mz(r),new $t(t,r)}function ve(e,t){throw RF(e,t)}function zl(e,t){e.onWarning&&e.onWarning.call(null,RF(e,t))}var UR={YAML:function(t,r,n){var i,s,o;t.version!==null&&ve(t,"duplication of %YAML directive"),n.length!==1&&ve(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ve(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&ve(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&zl(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&ve(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],CF.test(i)||ve(t,"ill-formed tag handle (first argument) of the TAG directive"),ti.call(t.tagMap,i)&&ve(t,'there is a previously declared suffix for "'+i+'" tag handle'),xF.test(s)||ve(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ve(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function ei(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||ve(e,"expected valid JSON character");else O4.test(a)&&ve(e,"the stream contains non-printable characters");e.result+=a}}function HR(e,t,r,n){var i,s,o,a;for(ut.isObject(r)||ve(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],ti.call(t,s)||(PF(t,s,r[s]),n[s]=!0)}function Js(e,t,r,n,i,s,o,a,u){var c,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,f=i.length;c<f;c+=1)Array.isArray(i[c])&&ve(e,"nested arrays are not supported inside keys"),typeof i=="object"&&qR(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&qR(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,f=s.length;c<f;c+=1)HR(e,t,s[c],r);else HR(e,t,s,r);else!e.json&&!ti.call(r,i)&&ti.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,ve(e,"duplicated mapping key")),PF(t,i,s),delete r[i];return t}function i0(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++):ve(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function st(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Mi(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),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(Zr(i))for(i0(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&&zl(e,"deficient indentation"),n}function Kl(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||zt(r)))}function s0(e,t){t===1?e.result+=" ":t>1&&(e.result+=ut.repeat(`
173
+ `,t-1))}function I4(e,t,r){var n,i,s,o,a,u,c,f,l=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),zt(d)||Ks(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),zt(i)||r&&Ks(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),zt(i)||r&&Ks(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),zt(n))break}else{if(e.position===e.lineStart&&Kl(e)||r&&Ks(d))break;if(Zr(d))if(u=e.line,c=e.lineStart,f=e.lineIndent,st(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=c,e.lineIndent=f;break}}a&&(ei(e,s,o,!1),s0(e,e.line-u),s=o=e.position,a=!1),Mi(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return ei(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function N4(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(ei(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 Zr(r)?(ei(e,n,i,!0),s0(e,st(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Kl(e)?ve(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ve(e,"unexpected end of the stream within a single quoted scalar")}function $4(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return ei(e,r,e.position,!0),e.position++,!0;if(a===92){if(ei(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Zr(a))st(e,!1,t);else if(a<256&&OF[a])e.result+=_F[a],e.position++;else if((o=k4(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=F4(a))>=0?s=(s<<4)+o:ve(e,"expected hexadecimal character");e.result+=L4(s),e.position++}else ve(e,"unknown escape sequence");r=n=e.position}else Zr(a)?(ei(e,r,n,!0),s0(e,st(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Kl(e)?ve(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ve(e,"unexpected end of the stream within a double quoted scalar")}function M4(e,t){var r=!0,n,i,s,o=e.tag,a,u=e.anchor,c,f,l,h,d,p=Object.create(null),y,m,P,S;if(S=e.input.charCodeAt(e.position),S===91)f=93,d=!1,a=[];else if(S===123)f=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),S=e.input.charCodeAt(++e.position);S!==0;){if(st(e,!0,t),S=e.input.charCodeAt(e.position),S===f)return e.position++,e.tag=o,e.anchor=u,e.kind=d?"mapping":"sequence",e.result=a,!0;r?S===44&&ve(e,"expected the node content, but found ','"):ve(e,"missed comma between flow collection entries"),m=y=P=null,l=h=!1,S===63&&(c=e.input.charCodeAt(e.position+1),zt(c)&&(l=h=!0,e.position++,st(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Xs(e,t,Ul,!1,!0),m=e.tag,y=e.result,st(e,!0,t),S=e.input.charCodeAt(e.position),(h||e.line===n)&&S===58&&(l=!0,S=e.input.charCodeAt(++e.position),st(e,!0,t),Xs(e,t,Ul,!1,!0),P=e.result),d?Js(e,a,p,m,y,P,n,i,s):l?a.push(Js(e,null,p,m,y,P,n,i,s)):a.push(y),st(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(r=!0,S=e.input.charCodeAt(++e.position)):r=!1}ve(e,"unexpected end of the stream within a flow collection")}function j4(e,t){var r,n,i=Jm,s=!1,o=!1,a=t,u=0,c=!1,f,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)Jm===i?i=l===43?WR:P4:ve(e,"repeat of a chomping mode identifier");else if((f=D4(l))>=0)f===0?ve(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ve(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(Mi(l)){do l=e.input.charCodeAt(++e.position);while(Mi(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!Zr(l)&&l!==0)}for(;l!==0;){for(i0(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Zr(l)){u++;continue}if(e.lineIndent<a){i===WR?e.result+=ut.repeat(`
174
+ `,s?1+u:u):i===Jm&&s&&(e.result+=`
175
+ `);break}for(n?Mi(l)?(c=!0,e.result+=ut.repeat(`
176
+ `,s?1+u:u)):c?(c=!1,e.result+=ut.repeat(`
177
+ `,u+1)):u===0?s&&(e.result+=" "):e.result+=ut.repeat(`
178
+ `,u):e.result+=ut.repeat(`
179
+ `,s?1+u:u),s=!0,o=!0,u=0,r=e.position;!Zr(l)&&l!==0;)l=e.input.charCodeAt(++e.position);ei(e,r,e.position,!1)}return!0}function zR(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ve(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!zt(o))));){if(a=!0,e.position++,st(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Xs(e,t,SF,!1,!0),s.push(e.result),st(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)ve(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function B4(e,t,r){var n,i,s,o,a,u,c=e.tag,f=e.anchor,l={},h=Object.create(null),d=null,p=null,y=null,m=!1,P=!1,S;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),S=e.input.charCodeAt(e.position);S!==0;){if(!m&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ve(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(S===63||S===58)&&zt(n))S===63?(m&&(Js(e,l,h,d,p,null,o,a,u),d=p=y=null),P=!0,m=!0,i=!0):m?(m=!1,i=!0):ve(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,S=n;else{if(o=e.line,a=e.lineStart,u=e.position,!Xs(e,r,wF,!1,!0))break;if(e.line===s){for(S=e.input.charCodeAt(e.position);Mi(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),zt(S)||ve(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Js(e,l,h,d,p,null,o,a,u),d=p=y=null),P=!0,m=!1,i=!1,d=e.tag,p=e.result;else if(P)ve(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=f,!0}else if(P)ve(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(m&&(o=e.line,a=e.lineStart,u=e.position),Xs(e,t,Hl,!0,i)&&(m?p=e.result:y=e.result),m||(Js(e,l,h,d,p,y,o,a,u),d=p=y=null),st(e,!0,-1),S=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&S!==0)ve(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Js(e,l,h,d,p,null,o,a,u),P&&(e.tag=c,e.anchor=f,e.kind="mapping",e.result=l),P}function W4(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&&ve(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)):ve(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!zt(o);)o===33&&(n?ve(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),CF.test(i)||ve(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),R4.test(s)&&ve(e,"tag suffix cannot contain flow indicator characters")}s&&!xF.test(s)&&ve(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ve(e,"tag name is malformed: "+s)}return r?e.tag=s:ti.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ve(e,'undeclared tag handle "'+i+'"'),!0}function q4(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ve(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!zt(r)&&!Ks(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ve(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function G4(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&&!zt(n)&&!Ks(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ve(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ti.call(e.anchorMap,r)||ve(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],st(e,!0,-1),!0}function Xs(e,t,r,n,i){var s,o,a,u=1,c=!1,f=!1,l,h,d,p,y,m;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Hl===r||SF===r,n&&st(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;W4(e)||q4(e);)st(e,!0,-1)?(c=!0,a=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||Hl===r)&&(Ul===r||wF===r?y=t:y=t+1,m=e.position-e.lineStart,u===1?a&&(zR(e,m)||B4(e,m,y))||M4(e,y)?f=!0:(o&&j4(e,y)||N4(e,y)||$4(e,y)?f=!0:G4(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&ve(e,"alias node should not have any properties")):I4(e,y,Ul===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=a&&zR(e,m))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ve(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(p=e.implicitTypes[l],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ti.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,h=d.length;l<h;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){p=d[l];break}p||ve(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&ve(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ve(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function U4(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(st(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&&!zt(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ve(e,"directive name must not be less than one character in length");o!==0;){for(;Mi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Zr(o));break}if(Zr(o))break;for(r=e.position;o!==0&&!zt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&i0(e),ti.call(UR,n)?UR[n](e,n,i):zl(e,'unknown document directive "'+n+'"')}if(st(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,st(e,!0,-1)):s&&ve(e,"directives end mark is expected"),Xs(e,e.lineIndent-1,Hl,!1,!0),st(e,!0,-1),e.checkLineBreaks&&_4.test(e.input.slice(t,e.position))&&zl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Kl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,st(e,!0,-1));return}if(e.position<e.length-1)ve(e,"end of the stream or a document separator is expected");else return}function FF(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
180
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new T4(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ve(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;)U4(r);return r.documents}function H4(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=FF(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function z4(e,t){var r=FF(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new $t("expected a single document in the stream, but found more")}}var Y4=H4,V4=z4,kF={loadAll:Y4,load:V4},DF=Object.prototype.toString,LF=Object.prototype.hasOwnProperty,o0=65279,K4=9,_a=10,J4=13,X4=32,Q4=33,Z4=34,Qm=35,eY=37,tY=38,rY=39,nY=42,TF=44,iY=45,Yl=58,sY=61,oY=62,aY=63,uY=64,IF=91,NF=93,cY=96,$F=123,lY=124,MF=125,xt={};xt[0]="\\0";xt[7]="\\a";xt[8]="\\b";xt[9]="\\t";xt[10]="\\n";xt[11]="\\v";xt[12]="\\f";xt[13]="\\r";xt[27]="\\e";xt[34]='\\"';xt[92]="\\\\";xt[133]="\\N";xt[160]="\\_";xt[8232]="\\L";xt[8233]="\\P";var fY=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],hY=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function dY(e,t){var r,n,i,s,o,a,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&LF.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function pY(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new $t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ut.repeat("0",n-t.length)+t}var gY=1,Ra=2;function mY(e){this.schema=e.schema||n0,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ut.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=dY(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.quotingType=e.quotingType==='"'?Ra:gY,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function YR(e,t){for(var r=ut.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
180
181
  `,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
181
- `&&(s+=r),s+=o;return s}function Bm(e,t){return`
182
- `+st.repeat(" ",e.indent*t)}function D4(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 Wl(e){return e===f4||e===c4}function Oa(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ym||65536<=e&&e<=1114111}function _R(e){return Oa(e)&&e!==Ym&&e!==l4&&e!==Ca}function RR(e,t,r){var n=_R(e),i=n&&!Wl(e);return(r?n:n&&e!==pF&&e!==gF&&e!==mF&&e!==yF&&e!==vF)&&e!==jm&&!(t===Bl&&!i)||_R(t)&&!Wl(t)&&e===jm||t===Bl&&i}function L4(e){return Oa(e)&&e!==Ym&&!Wl(e)&&e!==v4&&e!==b4&&e!==Bl&&e!==pF&&e!==gF&&e!==mF&&e!==yF&&e!==vF&&e!==jm&&e!==g4&&e!==y4&&e!==h4&&e!==C4&&e!==A4&&e!==E4&&e!==m4&&e!==d4&&e!==p4&&e!==w4&&e!==S4}function k4(e){return!Wl(e)&&e!==Bl}function wa(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function AF(e){var t=/^\n* /;return t.test(e)}var EF=1,Wm=2,bF=3,wF=4,Gs=5;function T4(e,t,r,n,i,s,o,a){var u,c=0,f=null,l=!1,h=!1,d=n!==-1,p=-1,y=L4(wa(e,0))&&k4(wa(e,e.length-1));if(t||o)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=wa(e,u),!Oa(c))return Gs;y=y&&RR(c,f,a),f=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=wa(e,u),c===Ca)l=!0,d&&(h=h||u-p-1>n&&e[p+1]!==" ",p=u);else if(!Oa(c))return Gs;y=y&&RR(c,f,a),f=c}h=h||d&&u-p-1>n&&e[p+1]!==" "}return!l&&!h?y&&!o&&!i(e)?EF:s===xa?Gs:Wm:r>9&&AF(e)?Gs:o?s===xa?Gs:Wm:h?wF:bF}function I4(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===xa?'""':"''";if(!e.noCompatMode&&(x4.indexOf(t)!==-1||O4.test(t)))return e.quotingType===xa?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return D4(e,c)}switch(T4(t,a,e.indent,o,u,e.quotingType,e.forceQuotes&&!n,i)){case EF:return t;case Wm:return"'"+t.replace(/'/g,"''")+"'";case bF:return"|"+FR(t,e.indent)+DR(PR(t,s));case wF:return">"+FR(t,e.indent)+DR(PR(N4(t,o),s));case Gs:return'"'+$4(t)+'"';default:throw new $t("impossible error: invalid scalar style")}}()}function FR(e,t){var r=AF(e)?String(t):"",n=e[e.length-1]===`
182
+ `&&(s+=r),s+=o;return s}function Zm(e,t){return`
183
+ `+ut.repeat(" ",e.indent*t)}function yY(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 Vl(e){return e===X4||e===K4}function Fa(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==o0||65536<=e&&e<=1114111}function VR(e){return Fa(e)&&e!==o0&&e!==J4&&e!==_a}function KR(e,t,r){var n=VR(e),i=n&&!Vl(e);return(r?n:n&&e!==TF&&e!==IF&&e!==NF&&e!==$F&&e!==MF)&&e!==Qm&&!(t===Yl&&!i)||VR(t)&&!Vl(t)&&e===Qm||t===Yl&&i}function vY(e){return Fa(e)&&e!==o0&&!Vl(e)&&e!==iY&&e!==aY&&e!==Yl&&e!==TF&&e!==IF&&e!==NF&&e!==$F&&e!==MF&&e!==Qm&&e!==tY&&e!==nY&&e!==Q4&&e!==lY&&e!==sY&&e!==oY&&e!==rY&&e!==Z4&&e!==eY&&e!==uY&&e!==cY}function AY(e){return!Vl(e)&&e!==Yl}function Pa(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function jF(e){var t=/^\n* /;return t.test(e)}var BF=1,e0=2,WF=3,qF=4,Vs=5;function EY(e,t,r,n,i,s,o,a){var u,c=0,f=null,l=!1,h=!1,d=n!==-1,p=-1,y=vY(Pa(e,0))&&AY(Pa(e,e.length-1));if(t||o)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Pa(e,u),!Fa(c))return Vs;y=y&&KR(c,f,a),f=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Pa(e,u),c===_a)l=!0,d&&(h=h||u-p-1>n&&e[p+1]!==" ",p=u);else if(!Fa(c))return Vs;y=y&&KR(c,f,a),f=c}h=h||d&&u-p-1>n&&e[p+1]!==" "}return!l&&!h?y&&!o&&!i(e)?BF:s===Ra?Vs:e0:r>9&&jF(e)?Vs:o?s===Ra?Vs:e0:h?qF:WF}function bY(e,t,r,n,i){e.dump=(function(){if(t.length===0)return e.quotingType===Ra?'""':"''";if(!e.noCompatMode&&(fY.indexOf(t)!==-1||hY.test(t)))return e.quotingType===Ra?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return yY(e,c)}switch(EY(t,a,e.indent,o,u,e.quotingType,e.forceQuotes&&!n,i)){case BF:return t;case e0:return"'"+t.replace(/'/g,"''")+"'";case WF:return"|"+JR(t,e.indent)+XR(YR(t,s));case qF:return">"+JR(t,e.indent)+XR(YR(wY(t,o),s));case Vs:return'"'+SY(t)+'"';default:throw new $t("impossible error: invalid scalar style")}})()}function JR(e,t){var r=jF(e)?String(t):"",n=e[e.length-1]===`
183
184
  `,i=n&&(e[e.length-2]===`
184
185
  `||e===`
185
186
  `),s=i?"+":n?"":"-";return r+s+`
186
- `}function DR(e){return e[e.length-1]===`
187
- `?e.slice(0,-1):e}function N4(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
188
- `);return c=c!==-1?c:e.length,r.lastIndex=c,LR(e.slice(0,c),t)}(),i=e[0]===`
187
+ `}function XR(e){return e[e.length-1]===`
188
+ `?e.slice(0,-1):e}function wY(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var c=e.indexOf(`
189
+ `);return c=c!==-1?c:e.length,r.lastIndex=c,QR(e.slice(0,c),t)})(),i=e[0]===`
189
190
  `||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],u=o[2];s=u[0]===" ",n+=a+(!i&&!s&&u!==""?`
190
- `:"")+LR(u,t),i=s}return n}function LR(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,u="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,u+=`
191
+ `:"")+QR(u,t),i=s}return n}function QR(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,u="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,u+=`
191
192
  `+e.slice(i,s),i=s+1),o=a;return u+=`
192
193
  `,e.length-i>t&&o>i?u+=e.slice(i,o)+`
193
- `+e.slice(o+1):u+=e.slice(i),u.slice(1)}function $4(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=wa(e,i),n=xt[r],!n&&Oa(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||_4(r);return t}function M4(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(An(e,t,a,!1,!1)||typeof a>"u"&&An(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function kR(e,t,r,n){var i="",s=e.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],e.replacer&&(u=e.replacer.call(r,String(o),u)),(An(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&An(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Bm(e,t)),e.dump&&Ca===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function j4(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,u,c,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[o],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),An(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),An(e,t,c,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function B4(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,u,c,f,l,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new $t("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)h="",(!n||i!=="")&&(h+=Bm(e,t)),c=o[a],f=r[c],e.replacer&&(f=e.replacer.call(r,c,f)),An(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&Ca===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=Bm(e,t)),An(e,t+1,f,!0,l)&&(e.dump&&Ca===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function TR(e,t,r){var n,i,s,o,a,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(u=e.styleMap[a.tag]||a.defaultStyle,hF.call(a.represent)==="[object Function]")n=a.represent(t,u);else if(dF.call(a.represent,u))n=a.represent[u](t,u);else throw new $t("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function An(e,t,r,n,i,s,o){e.tag=null,e.dump=r,TR(e,r,!1)||TR(e,r,!0);var a=hF.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",l,h;if(f&&(l=e.duplicates.indexOf(r),h=l!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(B4(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(j4(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?kR(e,t-1,e.dump,i):kR(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(M4(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&I4(e,e.dump,t,s,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new $t("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function W4(e,t){var r=[],n=[],i,s;for(qm(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function qm(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)qm(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)qm(e[n[i]],t,r)}function q4(e,t){t=t||{};var r=new F4(t);r.noRefs||W4(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),An(r,0,n,!0,!0)?r.dump+`
194
- `:""}var G4=q4,U4={dump:G4};function Vm(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var H4=pt,z4=$R,Y4=WR,V4=zR,K4=YR,X4=Um,J4=fF.load,Q4=fF.loadAll,Z4=U4.dump,eY=$t,tY={binary:QR,float:HR,map:BR,null:qR,pairs:eF,set:tF,timestamp:XR,bool:GR,int:UR,merge:JR,omap:ZR,seq:jR,str:MR},rY=Vm("safeLoad","load"),nY=Vm("safeLoadAll","loadAll"),iY=Vm("safeDump","dump"),Km={Type:H4,Schema:z4,FAILSAFE_SCHEMA:Y4,JSON_SCHEMA:V4,CORE_SCHEMA:K4,DEFAULT_SCHEMA:X4,load:J4,loadAll:Q4,dump:Z4,YAMLException:eY,types:tY,safeLoad:rY,safeLoadAll:nY,safeDump:iY};var SF=jt(require("node:fs/promises"),1);var Gl=class extends Ws{constructor(t){super("YarnRc",".yarnrc.yml",t)}async prepUserFile(){try{let t=await this.paseYarnRc(this.userFilePath);t&&t.npmRegistryServer&&(delete t.npmRegistryServer,await this.writeYarnRc(this.userFilePath,t))}catch{await qs(this.userFilePath,"")}}async getUserFeeds(){let t=new Map,r=await this.paseYarnRc(this.userFilePath);if(!r)return t;let n=r.npmRegistries||{};for(let i of Object.keys(n)){let s=n[i]||{},o=i.startsWith("//")?i.substring(2):i,a={registry:o,adoOrganization:Bs(o)},u=wl(s.npmAuthIdent||""),c=u.indexOf(":");c>0&&(a.userName=u.substring(0,c),a.authToken=u.substring(c+1)),t.set(o,a)}return t}async getWorkspaceRegistries(){let t=[],r=await this.paseYarnRc(this.workspaceFilePath);if(r.npmRegistryServer&&t.push(Ol(r.npmRegistryServer)),r.npmScopes)for(let n of Object.keys(r.npmScopes)){let i=r.npmScopes[n]?.npmRegistryServer;i&&t.push(i)}return t}async writeWorkspaceRegistries(t){let r=await this.paseYarnRc(this.userFilePath)||{};r.npmRegistries||(r.npmRegistries={});for(let n of t){let i="//"+n.registry,s=r.npmRegistries[i]||{};s.npmAlwaysAuth===void 0&&(s.npmAlwaysAuth=!0),s.npmAuthIdent=Zn(`${n.userName}:${n.authToken}`),r.npmRegistries[i]=s}await this.writeYarnRc(this.userFilePath,r)}async writeYarnRc(t,r){let n=Km.dump(r);await qs(t,n)}async paseYarnRc(t){let r=await SF.default.readFile(t,"utf8");return Km.load(r,{filename:t})}};var CF=async e=>{let t=[new Rl(e.configFile),new Gl(e.configFile)],r=[];if(e.doValidCheck||e.skipAuth)for(let s of t)await s.isSupportedInRepo()&&r.push(...await s.validateAllUsedFeeds());let n=r.filter(s=>!s.isValid&&s.feed.adoOrganization),i=n.length;if(e.doValidCheck&&i==0)return null;if(e.skipAuth&&i!=0)return qi({success:!1,automaticSuccess:!1,error:"invalid token(s)"},!0),console.log(i==1?"\u274C Your token is invalid.":`\u274C ${i} tokens are invalid.`),!1;try{console.log("\u{1F511} Authenticating to package feed...");let s=new Map;for(let u of n.map(c=>c.feed))s.set(u.adoOrganization,u.registry);let o={};for(let[u,c]of s)o[u]=await vR(u,c,!1,e.azureAuthLocation);for(let u of n){let c=u.feed,f=o[c.adoOrganization];if(!f)return console.log(`\u274C Failed to obtain pat for ${c.registry} via ${u.fileProvider.id}`),!1;c.authToken=f,c.email||(c.email=xl),c.userName||(c.userName=Cl)}let a=AR(n,u=>u.fileProvider);for(let[u,c]of a)await u.writeWorkspaceRegistries(c.map(f=>f.feed));return!0}catch(s){return qi({success:!1,automaticSuccess:!1,error:s.message},!0),console.log("Encountered error while performing auth",s),!1}};Zm()&&process.exit(0);if(!Fa()){let e=`Platform ${(0,Ul.platform)()} and architecture ${(0,Ul.arch)()} not supported for automatic authentication.`;console.log(e),qi({success:!1,error:e},!0),process.exit(0)}var Xm=sy(process.argv);CF(Xm).then(e=>{e===null?(qi({success:!0}),console.log("\u2705 Current authentication is valid")):e?(qi({success:!0,automaticSuccess:!0}),console.log("\u2705 Automatic authentication successful"),Xm.exitCodeOnReAuthenticate!==void 0&&process.exit(Xm.exitCodeOnReAuthenticate)):(console.log("\u274C Authentication to package feed failed."),process.exitCode=1)}).catch(e=>{console.error(e),console.log("\u274C Authentication to package feed failed."),process.exitCode=1});0&&(module.exports={run});
194
+ `+e.slice(o+1):u+=e.slice(i),u.slice(1)}function SY(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=Pa(e,i),n=xt[r],!n&&Fa(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||pY(r);return t}function CY(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(vn(e,t,a,!1,!1)||typeof a>"u"&&vn(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function ZR(e,t,r,n){var i="",s=e.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],e.replacer&&(u=e.replacer.call(r,String(o),u)),(vn(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&vn(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Zm(e,t)),e.dump&&_a===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function xY(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,u,c,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[o],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),vn(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),vn(e,t,c,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function PY(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,u,c,f,l,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new $t("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)h="",(!n||i!=="")&&(h+=Zm(e,t)),c=o[a],f=r[c],e.replacer&&(f=e.replacer.call(r,c,f)),vn(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&_a===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=Zm(e,t)),vn(e,t+1,f,!0,l)&&(e.dump&&_a===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function eF(e,t,r){var n,i,s,o,a,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(u=e.styleMap[a.tag]||a.defaultStyle,DF.call(a.represent)==="[object Function]")n=a.represent(t,u);else if(LF.call(a.represent,u))n=a.represent[u](t,u);else throw new $t("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function vn(e,t,r,n,i,s,o){e.tag=null,e.dump=r,eF(e,r,!1)||eF(e,r,!0);var a=DF.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",l,h;if(f&&(l=e.duplicates.indexOf(r),h=l!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(PY(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(xY(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?ZR(e,t-1,e.dump,i):ZR(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(CY(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&bY(e,e.dump,t,s,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new $t("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function OY(e,t){var r=[],n=[],i,s;for(t0(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function t0(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)t0(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)t0(e[n[i]],t,r)}function _Y(e,t){t=t||{};var r=new mY(t);r.noRefs||OY(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),vn(r,0,n,!0,!0)?r.dump+`
195
+ `:""}var RY=_Y,FY={dump:RY};function a0(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var kY=mt,DY=nF,LY=aF,TY=hF,IY=dF,NY=n0,$Y=kF.load,MY=kF.loadAll,jY=FY.dump,BY=$t,WY={binary:vF,float:fF,map:oF,null:uF,pairs:EF,set:bF,timestamp:mF,bool:cF,int:lF,merge:yF,omap:AF,seq:sF,str:iF},qY=a0("safeLoad","load"),GY=a0("safeLoadAll","loadAll"),UY=a0("safeDump","dump"),u0={Type:kY,Schema:DY,FAILSAFE_SCHEMA:LY,JSON_SCHEMA:TY,CORE_SCHEMA:IY,DEFAULT_SCHEMA:NY,load:$Y,loadAll:MY,dump:jY,YAMLException:BY,types:WY,safeLoad:qY,safeLoadAll:GY,safeDump:UY};var GF=jt(require("node:fs/promises"),1);var Jl=class extends Hs{constructor(t){super("YarnRc",".yarnrc.yml",t)}async prepUserFile(){try{let t=await this.paseYarnRc(this.userFilePath);t&&t.npmRegistryServer&&(delete t.npmRegistryServer,await this.writeYarnRc(this.userFilePath,t))}catch{await zs(this.userFilePath,"")}}async getUserFeeds(){let t=new Map,r=await this.paseYarnRc(this.userFilePath);if(!r)return t;let n=r.npmRegistries||{};for(let i of Object.keys(n)){let s=n[i]||{},o=i.startsWith("//")?i.substring(2):i,a={registry:o,adoOrganization:Us(o)},u=Rl(s.npmAuthIdent||""),c=u.indexOf(":");c>0&&(a.userName=u.substring(0,c),a.authToken=u.substring(c+1)),t.set(o,a)}return t}async getWorkspaceRegistries(){let t=[],r=await this.paseYarnRc(this.workspaceFilePath);if(r.npmRegistryServer&&t.push(Ll(r.npmRegistryServer)),r.npmScopes)for(let n of Object.keys(r.npmScopes)){let i=r.npmScopes[n]?.npmRegistryServer;i&&t.push(i)}return t}async writeWorkspaceRegistries(t){let r=await this.paseYarnRc(this.userFilePath)||{};r.npmRegistries||(r.npmRegistries={});for(let n of t){let i="//"+n.registry,s=r.npmRegistries[i]||{};s.npmAlwaysAuth===void 0&&(s.npmAlwaysAuth=!0),s.npmAuthIdent=Zn(`${n.userName}:${n.authToken}`),r.npmRegistries[i]=s}await this.writeYarnRc(this.userFilePath,r)}async writeYarnRc(t,r){let n=u0.dump(r);await zs(t,n)}async paseYarnRc(t){let r=await GF.default.readFile(t,"utf8");return u0.load(r,{filename:t})}};var UF=async e=>{let t=[new Nl(e.configFile),new Jl(e.configFile)],r=[];if(e.doValidCheck||e.skipAuth)for(let s of t)await s.isSupportedInRepo()&&r.push(...await s.validateAllUsedFeeds());let n=r.filter(s=>!s.isValid&&s.feed.adoOrganization),i=n.length;if(e.doValidCheck&&i==0)return null;if(e.skipAuth&&i!=0)return Gi({success:!1,automaticSuccess:!1,error:"invalid token(s)"},!0),console.log(i==1?"\u274C Your token is invalid.":`\u274C ${i} tokens are invalid.`),!1;try{console.log("\u{1F511} Authenticating to package feed...");let s=new Map;for(let u of n.map(c=>c.feed))s.set(u.adoOrganization,u.registry);let o={};for(let[u,c]of s)o[u]=await MR(u,c,!1,e.azureAuthLocation);for(let u of n){let c=u.feed,f=o[c.adoOrganization];if(!f)return console.log(`\u274C Failed to obtain pat for ${c.registry} via ${u.fileProvider.id}`),!1;c.authToken=f,c.email||(c.email=Dl),c.userName||(c.userName=kl)}let a=jR(n,u=>u.fileProvider);for(let[u,c]of a)await u.writeWorkspaceRegistries(c.map(f=>f.feed));return!0}catch(s){return Gi({success:!1,automaticSuccess:!1,error:s.message},!0),console.log("Encountered error while performing auth",s),!1}};h0()&&process.exit(0);if(!Ta()){let e=`Platform ${(0,Xl.platform)()} and architecture ${(0,Xl.arch)()} not supported for automatic authentication.`;console.log(e),Gi({success:!1,error:e},!0),process.exit(0)}var c0=vy(process.argv);UF(c0).then(e=>{e===null?(Gi({success:!0}),console.log("\u2705 Current authentication is valid")):e?(Gi({success:!0,automaticSuccess:!0}),console.log("\u2705 Automatic authentication successful"),c0.exitCodeOnReAuthenticate!==void 0&&process.exit(c0.exitCodeOnReAuthenticate)):(console.log("\u274C Authentication to package feed failed."),process.exitCode=1)}).catch(e=>{console.error(e),console.log("\u274C Authentication to package feed failed."),process.exitCode=1});0&&(module.exports={run});
195
196
  /*! Bundled license information:
196
197
 
197
198
  .store/git-url-parse-npm-16.1.0-52146a559b/package/lib/index.js:
@@ -252,26 +253,8 @@ ${p.join(`
252
253
  (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
253
254
 
254
255
  .store/yargs-parser-npm-21.1.1-8fdc003314/package/build/lib/string-utils.js:
255
- (**
256
- * @license
257
- * Copyright (c) 2016, Contributors
258
- * SPDX-License-Identifier: ISC
259
- *)
260
-
261
256
  .store/yargs-parser-npm-21.1.1-8fdc003314/package/build/lib/tokenize-arg-string.js:
262
- (**
263
- * @license
264
- * Copyright (c) 2016, Contributors
265
- * SPDX-License-Identifier: ISC
266
- *)
267
-
268
257
  .store/yargs-parser-npm-21.1.1-8fdc003314/package/build/lib/yargs-parser-types.js:
269
- (**
270
- * @license
271
- * Copyright (c) 2016, Contributors
272
- * SPDX-License-Identifier: ISC
273
- *)
274
-
275
258
  .store/yargs-parser-npm-21.1.1-8fdc003314/package/build/lib/yargs-parser.js:
276
259
  (**
277
260
  * @license