ado-npm-auth 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ado-npm-auth.cjs +129 -127
- package/dist/index.js +112 -110
- package/lib/args.d.ts +1 -0
- package/lib/yarnrc/yarnrcFileProvider.d.ts +1 -0
- package/package.json +4 -4
package/dist/ado-npm-auth.cjs
CHANGED
|
@@ -1,105 +1,108 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var JF=Object.create;var Pa=Object.defineProperty;var QF=Object.getOwnPropertyDescriptor;var ZF=Object.getOwnPropertyNames;var eD=Object.getPrototypeOf,tD=Object.prototype.hasOwnProperty;var P=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),rD=(e,t)=>{for(var r in t)Pa(e,r,{get:t[r],enumerable:!0})},n0=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ZF(t))!tD.call(e,i)&&i!==r&&Pa(e,i,{get:()=>t[i],enumerable:!(n=QF(t,i))||n.enumerable});return e};var yn=(e,t,r)=>(r=e!=null?JF(eD(e)):{},n0(t||!e||!e.__esModule?Pa(r,"default",{value:e,enumerable:!0}):r,e)),nD=e=>n0(Pa({},"__esModule",{value:!0}),e);var hy=P(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.walkUp=void 0;var fy=require("path"),ID=function*(e){for(e=(0,fy.resolve)(e);e;){yield e;let t=(0,fy.dirname)(e);if(t===e)break;e=t}};Qa.walkUp=ID});var Rf=P((I5,gy)=>{var{hasOwnProperty:_f}=Object.prototype,Pf=(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
|
-
`,zc=(e,t)=>{let r=[],n="";typeof t=="string"?t={section:t,whitespace:!1}:(t=t||Object.create(null),t.whitespace=t.whitespace===!0);let i=t.whitespace?" = ":"=";for(let s of Object.keys(e)){let o=e[s];if(o&&Array.isArray(o))for(let a of o)n+=_i(s+"[]")+i+_i(a)+na;else o&&typeof o=="object"?r.push(s):n+=_i(s)+i+_i(o)+na}t.section&&n.length&&(n="["+_i(t.section)+"]"+na+n);for(let s of r){let o=Zg(s).join("\\."),a=(t.section?t.section+".":"")+o,{whitespace:u}=t,c=zc(e[s],{section:a,whitespace:u});n.length&&c.length&&(n+=na),n+=c}return n},Zg=e=>e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(t=>t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")),Jg=e=>{let t=Object.create(null),r=t,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g);for(let a of s){if(!a||a.match(/^\s*[;#]/))continue;let u=a.match(i);if(!u)continue;if(u[1]!==void 0){if(n=ia(u[1]),n==="__proto__"){r=Object.create(null);continue}r=t[n]=t[n]||Object.create(null);continue}let c=ia(u[2]),f=c.length>2&&c.slice(-2)==="[]",l=f?c.slice(0,-2):c;if(l==="__proto__")continue;let h=u[3]?ia(u[4]):!0,d=h==="true"||h==="false"||h==="null"?JSON.parse(h):h;f&&(Yc.call(r,l)?Array.isArray(r[l])||(r[l]=[r[l]]):r[l]=[]),Array.isArray(r[l])?r[l].push(d):r[l]=d}let o=[];for(let a of Object.keys(t)){if(!Yc.call(t,a)||typeof t[a]!="object"||Array.isArray(t[a]))continue;let u=Zg(a);r=t;let c=u.pop(),f=c.replace(/\\\./g,".");for(let l of u)l!=="__proto__"&&((!Yc.call(r,l)||typeof r[l]!="object")&&(r[l]=Object.create(null)),r=r[l]);r===t&&f===c||(r[f]=t[a],o.push(a))}for(let a of o)delete t[a];return t},em=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),_i=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&em(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),ia=(e,t)=>{if(e=(e||"").trim(),em(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let r=!1,n="";for(let i=0,s=e.length;i<s;i++){let o=e.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return e};tm.exports={parse:Jg,decode:Jg,stringify:zc,encode:zc,safe:_i,unsafe:ia}});var sm=D((nm,im)=>{im.exports=nm=Is.abbrev=Is;Is.monkeyPatch=lO;function lO(){Object.defineProperty(Array.prototype,"abbrev",{value:function(){return Is(this)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(Object.prototype,"abbrev",{value:function(){return Is(Object.keys(this))},enumerable:!1,configurable:!0,writable:!0})}function Is(e){(arguments.length!==1||!Array.isArray(e))&&(e=Array.prototype.slice.call(arguments,0));for(var t=0,r=e.length,n=[];t<r;t++)n[t]=typeof e[t]=="string"?e[t]:String(e[t]);n=n.sort(fO);for(var i={},s="",t=0,r=n.length;t<r;t++){var o=n[t],a=n[t+1]||"",u=!0,c=!0;if(o!==a){for(var f=0,l=o.length;f<l;f++){var h=o.charAt(f);if(u=u&&h===a.charAt(f),c=c&&h===s.charAt(f),!u&&!c){f++;break}}if(s=o,f===l){i[o]=o;continue}for(var d=o.substr(0,f);f<=l;f++)i[d]=o,d+=o.charAt(f)}}return i}function fO(e,t){return e===t?0:e>t?1:-1}});var Kc=D((Fr,fm)=>{var Be=process.env.DEBUG_NOPT||process.env.NOPT_DEBUG?function(){console.error.apply(console,arguments)}:function(){},am=require("url"),Vc=require("path"),um=require("stream").Stream,om=sm(),hO=require("os");fm.exports=Fr=dO;Fr.clean=cm;Fr.typeDefs={String:{type:String,validate:pO},Boolean:{type:Boolean,validate:vO},url:{type:am,validate:AO},Number:{type:Number,validate:mO},path:{type:Vc,validate:gO},Stream:{type:um,validate:EO},Date:{type:Date,validate:yO}};function dO(e,t,r,n){r=r||process.argv,e=e||{},t=t||{},typeof n!="number"&&(n=2),Be(e,t,r,n),r=r.slice(n);var i={},s={remain:[],cooked:r,original:r.slice(0)};return bO(r,i,s.remain,e,t),cm(i,e,Fr.typeDefs),i.argv=s,Object.defineProperty(i.argv,"toString",{value:function(){return this.original.map(JSON.stringify).join(" ")},enumerable:!1}),i}function cm(e,t,r){r=r||Fr.typeDefs;var n={},i=[!1,!0,null,String,Array];Object.keys(e).forEach(function(s){if(s!=="argv"){var o=e[s],a=Array.isArray(o),u=t[s];a||(o=[o]),u||(u=i),u===Array&&(u=i.concat(Array)),Array.isArray(u)||(u=[u]),Be("val=%j",o),Be("types=",u),o=o.map(function(c){if(typeof c=="string"&&(Be("string %j",c),c=c.trim(),c==="null"&&~u.indexOf(null)||c==="true"&&(~u.indexOf(!0)||~u.indexOf(Boolean))||c==="false"&&(~u.indexOf(!1)||~u.indexOf(Boolean))?(c=JSON.parse(c),Be("jsonable %j",c)):~u.indexOf(Number)&&!isNaN(c)?(Be("convert to number",c),c=+c):~u.indexOf(Date)&&!isNaN(Date.parse(c))&&(Be("convert to date",c),c=new Date(c))),!Object.prototype.hasOwnProperty.call(t,s))return c;c===!1&&~u.indexOf(null)&&!(~u.indexOf(!1)||~u.indexOf(Boolean))&&(c=null);var f={};return f[s]=c,Be("prevalidated val",f,c,t[s]),lm(f,s,c,t[s],r)?(Be("validated v",f,c,t[s]),f[s]):(Fr.invalidHandler?Fr.invalidHandler(s,c,t[s],e):Fr.invalidHandler!==!1&&Be("invalid: "+s+"="+c,t[s]),n)}).filter(function(c){return c!==n}),!o.length&&u.indexOf(Array)===-1?(Be("VAL HAS NO LENGTH, DELETE IT",o,s,u.indexOf(Array)),delete e[s]):a?(Be(a,e[s],o),e[s]=o):e[s]=o[0],Be("k=%s val=%j",s,o,e[s])}})}function pO(e,t,r){e[t]=String(r)}function gO(e,t,r){if(r===!0)return!1;if(r===null)return!0;r=String(r);var n=process.platform==="win32",i=n?/^~(\/|\\)/:/^~\//,s=hO.homedir();return s&&r.match(i)?e[t]=Vc.resolve(s,r.slice(2)):e[t]=Vc.resolve(r),!0}function mO(e,t,r){if(Be("validate Number %j %j %j",t,r,isNaN(r)),isNaN(r))return!1;e[t]=+r}function yO(e,t,r){var n=Date.parse(r);if(Be("validate Date %j %j %j",t,r,n),isNaN(n))return!1;e[t]=new Date(r)}function vO(e,t,r){r instanceof Boolean?r=r.valueOf():typeof r=="string"?isNaN(r)?r==="null"||r==="false"?r=!1:r=!0:r=!!+r:r=!!r,e[t]=r}function AO(e,t,r){if(r=am.parse(String(r)),!r.host)return!1;e[t]=r.href}function EO(e,t,r){if(!(r instanceof um))return!1;e[t]=r}function lm(e,t,r,n,i){if(Array.isArray(n)){for(let c=0,f=n.length;c<f;c++)if(n[c]!==Array&&lm(e,t,r,n[c],i))return!0;return delete e[t],!1}if(n===Array)return!0;if(n!==n)return Be("Poison NaN",t,r,n),delete e[t],!1;if(r===n)return Be("Explicitly allowed %j",r),e[t]=r,!0;var s=!1,o=Object.keys(i);for(let c=0,f=o.length;c<f;c++){Be("test type %j %j %j",t,r,o[c]);var a=i[o[c]];if(a&&(n&&n.name&&a.type&&a.type.name?n.name===a.type.name:n===a.type)){var u={};if(s=a.validate(u,t,r)!==!1,r=u[t],s){e[t]=r;break}}}return Be("OK? %j (%j %j %j)",s,t,r,o[o.length-1]),s||delete e[t],s}function bO(e,t,r,n,i){Be("parse",e,t,r);for(var s=om(Object.keys(n)),o=om(Object.keys(i)),a=0;a<e.length;a++){var u=e[a];if(Be("arg",u),u.match(/^-{2,}$/)){r.push.apply(r,e.slice(a+1)),e[a]="--";break}var c=!1;if(u.charAt(0)==="-"&&u.length>1){var f=u.indexOf("=");if(f>-1){c=!0;var l=u.slice(f+1);u=u.slice(0,f),e.splice(a,1,u,l)}var h=wO(u,i,o,s);if(Be("arg=%j shRes=%j",u,h),h&&(Be(u,h),e.splice.apply(e,[a,1].concat(h)),u!==h[0])){a--;continue}u=u.replace(/^-+/,"");for(var d=null;u.toLowerCase().indexOf("no-")===0;)d=!d,u=u.slice(3);s[u]&&(u=s[u]);var g=n[u],E=Array.isArray(g);E&&g.length===1&&(E=!1,g=g[0]);var y=g===Array||E&&g.indexOf(Array)!==-1;!Object.prototype.hasOwnProperty.call(n,u)&&Object.prototype.hasOwnProperty.call(t,u)&&(Array.isArray(t[u])||(t[u]=[t[u]]),y=!0);var F,_=e[a+1],j=typeof d=="boolean"||g===Boolean||E&&g.indexOf(Boolean)!==-1||typeof g>"u"&&!c||_==="false"&&(g===null||E&&~g.indexOf(null));if(j){F=!d,(_==="true"||_==="false")&&(F=JSON.parse(_),_=null,d&&(F=!F),a++),E&&_&&(~g.indexOf(_)?(F=_,a++):_==="null"&&~g.indexOf(null)?(F=null,a++):!_.match(/^-{2,}[^-]/)&&!isNaN(_)&&~g.indexOf(Number)?(F=+_,a++):!_.match(/^-[^-]/)&&~g.indexOf(String)&&(F=_,a++)),y?(t[u]=t[u]||[]).push(F):t[u]=F;continue}g===String&&(_===void 0?_="":_.match(/^-{1,2}[^-]+/)&&(_="",a--)),_&&_.match(/^-{2,}$/)&&(_=void 0,a--),F=_===void 0?!0:_,y?(t[u]=t[u]||[]).push(F):t[u]=F,a++;continue}r.push(u)}}function wO(e,t,r,n){if(e=e.replace(/^-+/,""),n[e]===e)return null;if(t[e])return t[e]&&!Array.isArray(t[e])&&(t[e]=t[e].split(/\s+/)),t[e];var i=t.___singles;i||(i=Object.keys(t).filter(function(o){return o.length===1}).reduce(function(o,a){return o[a]=!0,o},{}),t.___singles=i,Be("shorthand singles",i));var s=e.split("").filter(function(o){return i[o]});return s.join("")===e?s.map(function(o){return t[o]}).reduce(function(o,a){return o.concat(a)},[]):n[e]&&!t[e]?null:(r[e]&&(e=r[e]),t[e]&&!Array.isArray(t[e])&&(t[e]=t[e].split(/\s+/)),t[e])}});var mm=D((N8,sa)=>{var Rr=new Map,hm=require("fs"),{dirname:dm,resolve:Xc}=require("path"),SO=e=>new Promise((t,r)=>hm.lstat(e,(n,i)=>n?r(n):t(i))),pm=e=>{if(e=Xc(e),Rr.has(e))return Promise.resolve(Rr.get(e));let t=i=>{let{uid:s,gid:o}=i;return Rr.set(e,{uid:s,gid:o}),{uid:s,gid:o}},r=dm(e),n=r===e?null:i=>pm(r).then(s=>(Rr.set(e,s),s));return SO(e).then(t,n)},gm=e=>{if(e=Xc(e),Rr.has(e))return Rr.get(e);let t=dm(e),r=!0;try{let n=hm.lstatSync(e);r=!1;let{uid:i,gid:s}=n;return Rr.set(e,{uid:i,gid:s}),{uid:i,gid:s}}finally{if(r&&t!==e){let n=gm(t);return Rr.set(e,n),n}}},Ns=new Map;sa.exports=e=>{if(e=Xc(e),Ns.has(e))return Promise.resolve(Ns.get(e));let t=pm(e).then(r=>(Ns.delete(e),r));return Ns.set(e,t),t};sa.exports.sync=gm;sa.exports.clearCache=()=>{Rr.clear(),Ns.clear()}});var Am=D((L8,vm)=>{var{promisify:ym}=require("util"),tn=require("fs"),_O=e=>{if(!e)e={mode:511,fs:tn};else if(typeof e=="object")e={mode:511,fs:tn,...e};else if(typeof e=="number")e={mode:e,fs:tn};else if(typeof e=="string")e={mode:parseInt(e,8),fs:tn};else throw new TypeError("invalid options argument");return e.mkdir=e.mkdir||e.fs.mkdir||tn.mkdir,e.mkdirAsync=ym(e.mkdir),e.stat=e.stat||e.fs.stat||tn.stat,e.statAsync=ym(e.stat),e.statSync=e.statSync||e.fs.statSync||tn.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||tn.mkdirSync,e};vm.exports=_O});var bm=D((j8,Em)=>{var CO=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:xO,parse:OO}=require("path"),FO=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=xO(e),CO==="win32"){let t=/[*|"<>?:]/,{root:r}=OO(e);if(t.test(e.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};Em.exports=FO});var xm=D((M8,Cm)=>{var{dirname:wm}=require("path"),Sm=(e,t,r=void 0)=>r===t?Promise.resolve():e.statAsync(t).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?Sm(e,wm(t),t):void 0),_m=(e,t,r=void 0)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?_m(e,wm(t),t):void 0}};Cm.exports={findMade:Sm,findMadeSync:_m}});var Zc=D(($8,Fm)=>{var{dirname:Om}=require("path"),Qc=(e,t,r)=>{t.recursive=!1;let n=Om(e);return n===e?t.mkdirAsync(e,t).catch(i=>{if(i.code!=="EISDIR")throw i}):t.mkdirAsync(e,t).then(()=>r||e,i=>{if(i.code==="ENOENT")return Qc(n,t).then(s=>Qc(e,t,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return t.statAsync(e).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},Jc=(e,t,r)=>{let n=Om(e);if(t.recursive=!1,n===e)try{return t.mkdirSync(e,t)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return t.mkdirSync(e,t),r||e}catch(i){if(i.code==="ENOENT")return Jc(e,t,Jc(n,t,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!t.statSync(e).isDirectory())throw i}catch{throw i}}};Fm.exports={mkdirpManual:Qc,mkdirpManualSync:Jc}});var Dm=D((B8,Pm)=>{var{dirname:Rm}=require("path"),{findMade:RO,findMadeSync:PO}=xm(),{mkdirpManual:DO,mkdirpManualSync:kO}=Zc(),TO=(e,t)=>(t.recursive=!0,Rm(e)===e?t.mkdirAsync(e,t):RO(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(i=>{if(i.code==="ENOENT")return DO(e,t);throw i}))),IO=(e,t)=>{if(t.recursive=!0,Rm(e)===e)return t.mkdirSync(e,t);let n=PO(t,e);try{return t.mkdirSync(e,t),n}catch(i){if(i.code==="ENOENT")return kO(e,t);throw i}};Pm.exports={mkdirpNative:TO,mkdirpNativeSync:IO}});var Nm=D((q8,Im)=>{var km=require("fs"),NO=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,el=NO.replace(/^v/,"").split("."),Tm=+el[0]>10||+el[0]==10&&+el[1]>=12,LO=Tm?e=>e.mkdir===km.mkdir:()=>!1,jO=Tm?e=>e.mkdirSync===km.mkdirSync:()=>!1;Im.exports={useNative:LO,useNativeSync:jO}});var qm=D((H8,Bm)=>{var Ci=Am(),xi=bm(),{mkdirpNative:Lm,mkdirpNativeSync:jm}=Dm(),{mkdirpManual:Mm,mkdirpManualSync:$m}=Zc(),{useNative:MO,useNativeSync:$O}=Nm(),Oi=(e,t)=>(e=xi(e),t=Ci(t),MO(t)?Lm(e,t):Mm(e,t)),BO=(e,t)=>(e=xi(e),t=Ci(t),$O(t)?jm(e,t):$m(e,t));Oi.sync=BO;Oi.native=(e,t)=>Lm(xi(e),Ci(t));Oi.manual=(e,t)=>Mm(xi(e),Ci(t));Oi.nativeSync=(e,t)=>jm(xi(e),Ci(t));Oi.manualSync=(e,t)=>$m(xi(e),Ci(t));Bm.exports=Oi});var Vm=D((W8,zm)=>{"use strict";var Yt=require("fs"),Hn=require("path"),qO=Yt.lchown?"lchown":"chown",HO=Yt.lchownSync?"lchownSync":"chownSync",Wm=Yt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),Hm=(e,t,r)=>{try{return Yt[HO](e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},WO=(e,t,r)=>{try{return Yt.chownSync(e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},GO=Wm?(e,t,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):Yt.chown(e,t,r,n)}:(e,t,r,n)=>n,tl=Wm?(e,t,r)=>{try{return Hm(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;WO(e,t,r)}}:(e,t,r)=>Hm(e,t,r),UO=process.version,Gm=(e,t,r)=>Yt.readdir(e,t,r),YO=(e,t)=>Yt.readdirSync(e,t);/^v4\./.test(UO)&&(Gm=(e,t,r)=>Yt.readdir(e,r));var oa=(e,t,r,n)=>{Yt[qO](e,t,r,GO(e,t,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},Um=(e,t,r,n,i)=>{if(typeof t=="string")return Yt.lstat(Hn.resolve(e,t),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=t,Um(e,o,r,n,i)});if(t.isDirectory())rl(Hn.resolve(e,t.name),r,n,s=>{if(s)return i(s);let o=Hn.resolve(e,t.name);oa(o,r,n,i)});else{let s=Hn.resolve(e,t.name);oa(s,r,n,i)}},rl=(e,t,r,n)=>{Gm(e,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return oa(e,t,r,n);let o=s.length,a=null,u=c=>{if(!a){if(c)return n(a=c);if(--o===0)return oa(e,t,r,n)}};s.forEach(c=>Um(e,c,t,r,u))})},zO=(e,t,r,n)=>{if(typeof t=="string")try{let i=Yt.lstatSync(Hn.resolve(e,t));i.name=t,t=i}catch(i){if(i.code==="ENOENT")return;throw i}t.isDirectory()&&Ym(Hn.resolve(e,t.name),r,n),tl(Hn.resolve(e,t.name),r,n)},Ym=(e,t,r)=>{let n;try{n=YO(e,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return tl(e,t,r);throw i}return n&&n.length&&n.forEach(i=>zO(e,i,t,r)),tl(e,t,r)};zm.exports=rl;rl.sync=Ym});var Jm=D((G8,nl)=>{var Km=mm(),aa=qm(),{promisify:VO}=require("util"),Xm=VO(Vm()),KO=process.env.__TESTING_MKDIRP_INFER_OWNER_PLATFORM__||process.platform,XO=KO==="win32",QO=process.getuid&&process.getuid()===0,Qm=!XO&&QO;nl.exports=Qm?(e,t)=>Km(e).then(({uid:r,gid:n})=>aa(e,t).then(i=>r!==0||n!==process.getgid()?Xm(i||e,r,n).then(()=>i):i)):(e,t)=>aa(e,t);nl.exports.sync=Qm?(e,t)=>{let{uid:r,gid:n}=Km.sync(e),i=aa.sync(e);return(r!==0||n!==process.getgid())&&Xm.sync(i||e,r,n),i}:(e,t)=>aa.sync(e,t)});var t0=D((U8,e0)=>{var{basename:Zm,dirname:JO}=require("path"),ZO=(e,t)=>e.charAt(0)==="@"?`${e}/${t}`:t;e0.exports=e=>e?ZO(Zm(JO(e)),Zm(e)):!1});var n0=D((Y8,r0)=>{var eF=typeof process=="object"&&process&&process.platform==="win32";r0.exports=eF?{sep:"\\"}:{sep:"/"}});var u0=D((z8,a0)=>{"use strict";a0.exports=s0;function s0(e,t,r){e instanceof RegExp&&(e=i0(e,r)),t instanceof RegExp&&(t=i0(t,r));var n=o0(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function i0(e,t){var r=t.match(e);return r?r[0]:null}s0.range=o0;function o0(e,t,r){var 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;)f==u?(n.push(f),u=r.indexOf(e,f+1)):n.length==1?a=[n.pop(),c]:(i=n.pop(),i<s&&(s=i,o=c),c=r.indexOf(t,f+1)),f=u<c&&u>=0?u:c;n.length&&(a=[s,o])}return a}});var m0=D((V8,g0)=>{var c0=u0();g0.exports=nF;var l0="\0SLASH"+Math.random()+"\0",f0="\0OPEN"+Math.random()+"\0",sl="\0CLOSE"+Math.random()+"\0",h0="\0COMMA"+Math.random()+"\0",d0="\0PERIOD"+Math.random()+"\0";function il(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function tF(e){return e.split("\\\\").join(l0).split("\\{").join(f0).split("\\}").join(sl).split("\\,").join(h0).split("\\.").join(d0)}function rF(e){return e.split(l0).join("\\").split(f0).join("{").split(sl).join("}").split(h0).join(",").split(d0).join(".")}function p0(e){if(!e)return[""];var t=[],r=c0("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,s=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var a=p0(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function nF(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Ls(tF(e),!0).map(rF)):[]}function iF(e){return"{"+e+"}"}function sF(e){return/^-?0\d/.test(e)}function oF(e,t){return e<=t}function aF(e,t){return e>=t}function Ls(e,t){var r=[],n=c0("{","}",e);if(!n)return[e];var i=n.pre,s=n.post.length?Ls(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<s.length;o++){var a=i+"{"+n.body+"}"+s[o];r.push(a)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),f=u||c,l=n.body.indexOf(",")>=0;if(!f&&!l)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+sl+n.post,Ls(e)):[e];var h;if(f)h=n.body.split(/\.\./);else if(h=p0(n.body),h.length===1&&(h=Ls(h[0],!1).map(iF),h.length===1))return s.map(function(C){return n.pre+h[0]+C});var d;if(f){var g=il(h[0]),E=il(h[1]),y=Math.max(h[0].length,h[1].length),F=h.length==3?Math.abs(il(h[2])):1,_=oF,j=E<g;j&&(F*=-1,_=aF);var T=h.some(sF);d=[];for(var w=g;_(w,E);w+=F){var P;if(c)P=String.fromCharCode(w),P==="\\"&&(P="");else if(P=String(w),T){var O=y-P.length;if(O>0){var R=new Array(O+1).join("0");w<0?P="-"+R+P.slice(1):P=R+P}}d.push(P)}}else{d=[];for(var L=0;L<h.length;L++)d.push.apply(d,Ls(h[L],!1))}for(var L=0;L<d.length;L++)for(var o=0;o<s.length;o++){var a=i+d[L]+s[o];(!t||f||a)&&r.push(a)}}return r}});var js=D((X8,ll)=>{var jt=ll.exports=(e,t,r={})=>(ua(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Fi(t,r).match(e));ll.exports=jt;var ul=n0();jt.sep=ul.sep;var ur=Symbol("globstar **");jt.GLOBSTAR=ur;var uF=m0(),y0={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},cl="[^/]",ol=cl+"*?",cF="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",lF="(?:(?!(?:\\/|^)\\.).)*?",E0=e=>e.split("").reduce((t,r)=>(t[r]=!0,t),{}),v0=E0("().*{}+?[]^$\\!"),fF=E0("[.("),A0=/\/+/;jt.filter=(e,t={})=>(r,n,i)=>jt(r,e,t);var rn=(e,t={})=>{let r={};return Object.keys(e).forEach(n=>r[n]=e[n]),Object.keys(t).forEach(n=>r[n]=t[n]),r};jt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return jt;let t=jt,r=(n,i,s)=>t(n,i,rn(e,s));return r.Minimatch=class extends t.Minimatch{constructor(i,s){super(i,rn(e,s))}},r.Minimatch.defaults=n=>t.defaults(rn(e,n)).Minimatch,r.filter=(n,i)=>t.filter(n,rn(e,i)),r.defaults=n=>t.defaults(rn(e,n)),r.makeRe=(n,i)=>t.makeRe(n,rn(e,i)),r.braceExpand=(n,i)=>t.braceExpand(n,rn(e,i)),r.match=(n,i,s)=>t.match(n,i,rn(e,s)),r};jt.braceExpand=(e,t)=>b0(e,t);var b0=(e,t={})=>(ua(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:uF(e)),hF=1024*64,ua=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>hF)throw new TypeError("pattern is too long")},al=Symbol("subparse");jt.makeRe=(e,t)=>new Fi(e,t||{}).makeRe();jt.match=(e,t,r={})=>{let n=new Fi(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};var dF=e=>e.replace(/\\(.)/g,"$1"),pF=e=>e.replace(/\\([^-\]])/g,"$1"),gF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),mF=e=>e.replace(/[[\]\\]/g,"\\$&"),Fi=class{constructor(t,r){ua(t),r||(r={}),this.options=r,this.set=[],this.pattern=t,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}debug(){}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();let n=this.globSet=this.braceExpand();r.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,n),n=this.globParts=n.map(i=>i.split(A0)),this.debug(this.pattern,n),n=n.map((i,s,o)=>i.map(this.parse,this)),this.debug(this.pattern,n),n=n.filter(i=>i.indexOf(!1)===-1),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.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){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var s=0,o=0,a=t.length,u=r.length;s<a&&o<u;s++,o++){this.debug("matchOne loop");var c=r[o],f=t[s];if(this.debug(r,c,f),c===!1)return!1;if(c===ur){this.debug("GLOBSTAR",[r,c,f]);var l=s,h=o+1;if(h===u){for(this.debug("** at the end");s<a;s++)if(t[s]==="."||t[s]===".."||!i.dot&&t[s].charAt(0)===".")return!1;return!0}for(;l<a;){var d=t[l];if(this.debug(`
|
|
4
|
-
globstar while`,t,l,r,h,d),this.matchOne(t.slice(l),r.slice(h),n))return this.debug("globstar found match!",l,a,d),!0;if(d==="."||d===".."||!i.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,l,r,h);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(n&&(this.debug(`
|
|
5
|
-
>>> no match, partial?`,t,l,r,h),l===a))}var g;if(typeof c=="string"?(g=f===c,this.debug("string match",c,f,g)):(g=f.match(c),this.debug("pattern match",c,f,g)),!g)return!1}if(s===a&&o===u)return!0;if(s===a)return n;if(o===u)return s===a-1&&t[s]==="";throw new Error("wtf?")}braceExpand(){return b0(this.pattern,this.options)}parse(t,r){ua(t);let n=this.options;if(t==="**")if(n.noglobstar)t="*";else return ur;if(t==="")return"";let i="",s=!1,o=!1,a=[],u=[],c,f=!1,l=-1,h=-1,d,g,E,y=t.charAt(0)===".",F=n.dot||y,_=()=>y?"":F?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",j=O=>O.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",T=()=>{if(c){switch(c){case"*":i+=ol,s=!0;break;case"?":i+=cl,s=!0;break;default:i+="\\"+c;break}this.debug("clearStateChar %j %j",c,i),c=!1}};for(let O=0,R;O<t.length&&(R=t.charAt(O));O++){if(this.debug("%s %s %s %j",t,O,i,R),o){if(R==="/")return!1;v0[R]&&(i+="\\"),i+=R,o=!1;continue}switch(R){case"/":return!1;case"\\":if(f&&t.charAt(O+1)==="-"){i+=R;continue}T(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,O,i,R),f){this.debug(" in class"),R==="!"&&O===h+1&&(R="^"),i+=R;continue}this.debug("call clearStateChar %j",c),T(),c=R,n.noext&&T();continue;case"(":{if(f){i+="(";continue}if(!c){i+="\\(";continue}let L={type:c,start:O-1,reStart:i.length,open:y0[c].open,close:y0[c].close};this.debug(this.pattern," ",L),a.push(L),i+=L.open,L.start===0&&L.type!=="!"&&(y=!0,i+=j(t.slice(O+1))),this.debug("plType %j %j",c,i),c=!1;continue}case")":{let L=a[a.length-1];if(f||!L){i+="\\)";continue}a.pop(),T(),s=!0,g=L,i+=g.close,g.type==="!"&&u.push(Object.assign(g,{reEnd:i.length}));continue}case"|":{let L=a[a.length-1];if(f||!L){i+="\\|";continue}T(),i+="|",L.start===0&&L.type!=="!"&&(y=!0,i+=j(t.slice(O+1)));continue}case"[":if(T(),f){i+="\\"+R;continue}f=!0,h=O,l=i.length,i+=R;continue;case"]":if(O===h+1||!f){i+="\\"+R;continue}d=t.substring(h+1,O);try{RegExp("["+mF(pF(d))+"]"),i+=R}catch{i=i.substring(0,l)+"(?:$.)"}s=!0,f=!1;continue;default:T(),v0[R]&&!(R==="^"&&f)&&(i+="\\"),i+=R;break}}for(f&&(d=t.slice(h+1),E=this.parse(d,al),i=i.substring(0,l)+"\\["+E[0],s=s||E[1]),g=a.pop();g;g=a.pop()){let O;O=i.slice(g.reStart+g.open.length),this.debug("setting tail",i,g),O=O.replace(/((?:\\{2}){0,64})(\\?)\|/g,(L,C,p)=>(p||(p="\\"),C+C+p+"|")),this.debug(`tail=%j
|
|
6
|
-
%s`,O,O,g,i);let R=g.type==="*"?ol:g.type==="?"?cl:"\\"+g.type;s=!0,i=i.slice(0,g.reStart)+R+"\\("+O}T(),o&&(i+="\\\\");let w=fF[i.charAt(0)];for(let O=u.length-1;O>-1;O--){let R=u[O],L=i.slice(0,R.reStart),C=i.slice(R.reStart,R.reEnd-8),p=i.slice(R.reEnd),m=i.slice(R.reEnd-8,R.reEnd)+p,v=L.split(")").length,S=L.split("(").length-v,A=p;for(let k=0;k<S;k++)A=A.replace(/\)[+*?]?/,"");p=A;let b=p===""&&r!==al?"(?:$|\\/)":"";i=L+C+p+b+m}if(i!==""&&s&&(i="(?=.)"+i),w&&(i=_()+i),r===al)return[i,s];if(n.nocase&&!s&&(s=t.toUpperCase()!==t.toLowerCase()),!s)return dF(t);let P=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",P),{_glob:t,_src:i})}catch{return new RegExp("$.")}}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?ol:r.dot?cF:lF,i=r.nocase?"i":"",s=t.map(o=>(o=o.map(a=>typeof a=="string"?gF(a):a===ur?ur:a._src).reduce((a,u)=>(a[a.length-1]===ur&&u===ur||a.push(u),a),[]),o.forEach((a,u)=>{a!==ur||o[u-1]===ur||(u===0?o.length>1?o[u+1]="(?:\\/|"+n+"\\/)?"+o[u+1]:o[u]=n:u===o.length-1?o[u-1]+="(?:\\/|"+n+")?":(o[u-1]+="(?:\\/|\\/"+n+"\\/)"+o[u+1],o[u+1]=ur))}),o.filter(a=>a!==ur).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}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;ul.sep!=="/"&&(t=t.split(ul.sep).join("/")),t=t.split(A0),this.debug(this.pattern,"split",t);let i=this.set;this.debug(this.pattern,"set",i);let s;for(let o=t.length-1;o>=0&&(s=t[o],!s);o--);for(let o=0;o<i.length;o++){let a=i[o],u=t;if(n.matchBase&&a.length===1&&(u=[s]),this.matchOne(u,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return jt.defaults(t).Minimatch}};jt.Minimatch=Fi});var _0=D((Q8,S0)=>{"use strict";var yF=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return"0x"+(t.length%2?"0":"")+t},vF=(e,t,r)=>{if(!t)return{message:e.message+" while parsing empty string",position:0};let n=e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),i=n?+n[2]:e.message.match(/^Unexpected end of JSON.*/i)?t.length-1:null,s=n?e.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(n[1])} (${yF(n[1])})`):e.message;if(i!=null){let o=i<=r?0:i-r,a=i+r>=t.length?t.length:i+r,u=(o===0?"":"...")+t.slice(o,a)+(a===t.length?"":"...");return{message:s+` while parsing ${t===u?"":"near "}${JSON.stringify(u)}`,position:i}}else return{message:s+` while parsing '${t.slice(0,r*2)}'`,position:0}},ca=class extends SyntaxError{constructor(t,r,n,i){n=n||20;let s=vF(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}},AF=Symbol.for("indent"),EF=Symbol.for("newline"),bF=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/,wF=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,la=(e,t,r)=>{let n=w0(e);r=r||20;try{let[,i=`
|
|
7
|
-
`,s=" "]=n.match(wF)||n.match(bF)||[,"",""],o=JSON.parse(n,t);return o&&typeof o=="object"&&(o[EF]=i,o[AF]=s),o}catch(i){if(typeof e!="string"&&!Buffer.isBuffer(e)){let s=Array.isArray(e)&&e.length===0;throw Object.assign(new TypeError(`Cannot parse ${s?"an empty array":String(e)}`),{code:"EJSONPARSE",systemError:i})}throw new ca(i,n,r,la)}},w0=e=>String(e).replace(/^\uFEFF/,"");S0.exports=la;la.JSONParseError=ca;la.noExceptions=(e,t)=>{try{return JSON.parse(w0(e),t)}catch{}}});var F0=D((J8,O0)=>{var{join:C0,basename:x0}=require("path"),SF=e=>e.bin?typeof e.bin=="string"?_F(e):Array.isArray(e.bin)?CF(e):typeof e.bin=="object"?hl(e):fl(e):fl(e),_F=e=>e.name?(e.bin={[e.name]:e.bin},hl(e)):fl(e),CF=e=>(e.bin=e.bin.reduce((t,r)=>(t[x0(r)]=r,t),{}),hl(e)),fl=e=>(delete e.bin,e),hl=e=>{let t=e.bin,r={},n=!1;return Object.keys(t).forEach(i=>{let s=C0("/",x0(i.replace(/\\|:/g,"/"))).substr(1);if(typeof t[i]!="string"||!s)return;let o=C0("/",t[i]).replace(/\\/g,"/").substr(1);o&&(r[s]=o,n=!0)}),n?e.bin=r:delete e.bin,e};O0.exports=SF});var ml=D((Z8,T0)=>{var{promisify:pl}=require("util"),gl=require("fs"),xF=pl(gl.readFile),OF=pl(gl.lstat),FF=pl(gl.readdir),RF=_0(),{resolve:R0,dirname:PF,join:dl,relative:DF}=require("path"),P0=e=>xF(e,"utf8").then(t=>TF(e,k0(IF(RF(t))))).catch(t=>{throw t.path=e,t}),kF=F0(),TF=async(e,t)=>{if(t.bin)return t;let r=t.directories&&t.directories.bin;if(!r||typeof r!="string")return t;let n=PF(e),i=dl(".",dl("/",r));return t.bin=await D0(n,i,{}),t},D0=async(e,t,r)=>{let n=await FF(R0(e,t)).catch(()=>[]);for(let i of n){if(i.charAt(0)===".")continue;let s=R0(e,t,i),o=await OF(s).catch(()=>null);if(o)o.isFile()?r[i]=DF(e,s):o.isDirectory()&&await D0(e,dl(t,i),r);else continue}return r},IF=e=>{for(let t of Object.keys(e).filter(r=>/^_/.test(r)))delete e[t];return e},k0=e=>(NF(e),jF(e),LF(e),MF(e),$F(e),kF(e),e);P0.normalize=k0;var NF=e=>(e.name&&e.version&&(e._id=`${e.name}@${e.version}`),e),LF=e=>{let t=e.optionalDependencies,r=e.dependencies||{};if(t&&typeof t=="object")for(let n of Object.keys(t))delete r[n];return Object.keys(r).length===0&&delete e.dependencies,e},jF=e=>{let t=e.bundledDependencies,r=e.bundleDependencies===void 0?t:e.bundleDependencies;return r===!1?e.bundleDependencies=[]:r===!0?e.bundleDependencies=Object.keys(e.dependencies||{}):r&&typeof r=="object"?Array.isArray(r)?e.bundleDependencies=r:e.bundleDependencies=Object.keys(r):delete e.bundleDependencies,delete e.bundledDependencies,e},MF=e=>{if(!e.scripts||typeof e.scripts!="object")return delete e.scripts,e;for(let[t,r]of Object.entries(e.scripts))typeof r!="string"&&delete e.scripts[t];return e},$F=e=>(e.funding&&typeof e.funding=="string"&&(e.funding={url:e.funding}),e);T0.exports=P0});var I0=D(yl=>{var Wn=require("path"),sn=process.platform==="win32",nn=require("fs"),BF=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function qF(){var e;if(BF){var t=new Error;e=r}else e=n;return e;function r(i){i&&(t.message=i.message,i=t,n(i))}function n(i){if(i){if(process.throwDeprecation)throw i;if(!process.noDeprecation){var s="fs: missing callback "+(i.stack||i.message);process.traceDeprecation?console.trace(s):console.error(s)}}}}function HF(e){return typeof e=="function"?e:qF()}var eW=Wn.normalize;sn?Pr=/(.*?)(?:[\/\\]+|$)/g:Pr=/(.*?)(?:[\/]+|$)/g;var Pr;sn?Ms=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:Ms=/^[\/]*/;var Ms;yl.realpathSync=function(t,r){if(t=Wn.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];var n=t,i={},s={},o,a,u,c;f();function f(){var y=Ms.exec(t);o=y[0].length,a=y[0],u=y[0],c="",sn&&!s[u]&&(nn.lstatSync(u),s[u]=!0)}for(;o<t.length;){Pr.lastIndex=o;var l=Pr.exec(t);if(c=a,a+=l[0],u=c+l[1],o=Pr.lastIndex,!(s[u]||r&&r[u]===u)){var h;if(r&&Object.prototype.hasOwnProperty.call(r,u))h=r[u];else{var d=nn.lstatSync(u);if(!d.isSymbolicLink()){s[u]=!0,r&&(r[u]=u);continue}var g=null;if(!sn){var E=d.dev.toString(32)+":"+d.ino.toString(32);i.hasOwnProperty(E)&&(g=i[E])}g===null&&(nn.statSync(u),g=nn.readlinkSync(u)),h=Wn.resolve(c,g),r&&(r[u]=h),sn||(i[E]=g)}t=Wn.resolve(h,t.slice(o)),f()}}return r&&(r[n]=t),t};yl.realpath=function(t,r,n){if(typeof n!="function"&&(n=HF(r),r=null),t=Wn.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return process.nextTick(n.bind(null,null,r[t]));var i=t,s={},o={},a,u,c,f;l();function l(){var y=Ms.exec(t);a=y[0].length,u=y[0],c=y[0],f="",sn&&!o[c]?nn.lstat(c,function(F){if(F)return n(F);o[c]=!0,h()}):process.nextTick(h)}function h(){if(a>=t.length)return r&&(r[i]=t),n(null,t);Pr.lastIndex=a;var y=Pr.exec(t);return f=u,u+=y[0],c=f+y[1],a=Pr.lastIndex,o[c]||r&&r[c]===c?process.nextTick(h):r&&Object.prototype.hasOwnProperty.call(r,c)?E(r[c]):nn.lstat(c,d)}function d(y,F){if(y)return n(y);if(!F.isSymbolicLink())return o[c]=!0,r&&(r[c]=c),process.nextTick(h);if(!sn){var _=F.dev.toString(32)+":"+F.ino.toString(32);if(s.hasOwnProperty(_))return g(null,s[_],c)}nn.stat(c,function(j){if(j)return n(j);nn.readlink(c,function(T,w){sn||(s[_]=w),g(T,w)})})}function g(y,F,_){if(y)return n(y);var j=Wn.resolve(f,F);r&&(r[_]=j),E(j)}function E(y){t=Wn.resolve(y,t.slice(a)),l()}}});var bl=D((rW,M0)=>{M0.exports=on;on.realpath=on;on.sync=El;on.realpathSync=El;on.monkeypatch=GF;on.unmonkeypatch=UF;var Ri=require("fs"),vl=Ri.realpath,Al=Ri.realpathSync,WF=process.version,N0=/^v[0-5]\./.test(WF),L0=I0();function j0(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function on(e,t,r){if(N0)return vl(e,t,r);typeof t=="function"&&(r=t,t=null),vl(e,t,function(n,i){j0(n)?L0.realpath(e,t,r):r(n,i)})}function El(e,t){if(N0)return Al(e,t);try{return Al(e,t)}catch(r){if(j0(r))return L0.realpathSync(e,t);throw r}}function GF(){Ri.realpath=on,Ri.realpathSync=El}function UF(){Ri.realpath=vl,Ri.realpathSync=Al}});var $0=D((nW,wl)=>{typeof Object.create=="function"?wl.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:wl.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var B0=D((iW,_l)=>{try{if(Sl=require("util"),typeof Sl.inherits!="function")throw"";_l.exports=Sl.inherits}catch{_l.exports=$0()}var Sl});var xl=D(an=>{an.setopts=QF;an.ownProp=q0;an.makeAbs=$s;an.finish=JF;an.mark=ZF;an.isIgnored=W0;an.childrenIgnored=eR;function q0(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var YF=require("fs"),Gn=require("path"),zF=js(),H0=require("path").isAbsolute,Cl=zF.Minimatch;function VF(e,t){return e.localeCompare(t,"en")}function KF(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(XF))}function XF(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new Cl(r,{dot:!0})}return{matcher:new Cl(e,{dot:!0}),gmatcher:t}}function QF(e,t,r){if(r||(r={}),r.matchBase&&t.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,e.windowsPathsNoEscape&&(t=t.replace(/\\/g,"/")),e.silent=!!r.silent,e.pattern=t,e.strict=r.strict!==!1,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||YF,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),KF(e,r),e.changedCwd=!1;var n=process.cwd();q0(r,"cwd")?(e.cwd=Gn.resolve(r.cwd),e.changedCwd=e.cwd!==n):e.cwd=Gn.resolve(n),e.root=r.root||Gn.resolve(e.cwd,"/"),e.root=Gn.resolve(e.root),e.cwdAbs=H0(e.cwd)?e.cwd:$s(e,e.cwd),e.nomount=!!r.nomount,process.platform==="win32"&&(e.root=e.root.replace(/\\/g,"/"),e.cwd=e.cwd.replace(/\\/g,"/"),e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),r.nonegate=!0,r.nocomment=!0,e.minimatch=new Cl(t,r),e.options=e.minimatch.options}function JF(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var s=e.matches[n];if(!s||Object.keys(s).length===0){if(e.nonull){var o=e.minimatch.globSet[n];t?r.push(o):r[o]=!0}}else{var a=Object.keys(s);t?r.push.apply(r,a):a.forEach(function(u){r[u]=!0})}}if(t||(r=Object.keys(r)),e.nosort||(r=r.sort(VF)),e.mark){for(var n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter(function(u){var c=!/\/$/.test(u),f=e.cache[u]||e.cache[$s(e,u)];return c&&f&&(c=f!=="DIR"&&!Array.isArray(f)),c}))}e.ignore.length&&(r=r.filter(function(u){return!W0(e,u)})),e.found=r}function ZF(e,t){var r=$s(e,t),n=e.cache[r],i=t;if(n){var s=n==="DIR"||Array.isArray(n),o=t.slice(-1)==="/";if(s&&!o?i+="/":!s&&o&&(i=i.slice(0,-1)),i!==t){var a=$s(e,i);e.statCache[a]=e.statCache[r],e.cache[a]=e.cache[r]}}return i}function $s(e,t){var r=t;return t.charAt(0)==="/"?r=Gn.join(e.root,t):H0(t)||t===""?r=t:e.changedCwd?r=Gn.resolve(e.cwd,t):r=Gn.resolve(t),process.platform==="win32"&&(r=r.replace(/\\/g,"/")),r}function W0(e,t){return e.ignore.length?e.ignore.some(function(r){return r.matcher.match(t)||!!(r.gmatcher&&r.gmatcher.match(t))}):!1}function eR(e,t){return e.ignore.length?e.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(t))}):!1}});var V0=D((cW,z0)=>{z0.exports=Y0;Y0.GlobSync=Je;var tR=bl(),G0=js(),oW=G0.Minimatch,aW=Rl().Glob,uW=require("util"),Ol=require("path"),U0=require("assert"),fa=require("path").isAbsolute,Un=xl(),rR=Un.setopts,Fl=Un.ownProp,nR=Un.childrenIgnored,iR=Un.isIgnored;function Y0(e,t){if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
8
|
-
See: https://github.com/isaacs/node-glob/issues/167`);return new Je(e,t).found}function Je(e,t){if(!e)throw new Error("must provide pattern");if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
9
|
-
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof Je))return new Je(e,t);if(rR(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}Je.prototype._finish=function(){if(U0.ok(this instanceof Je),this.realpath){var e=this;this.matches.forEach(function(t,r){var n=e.matches[r]=Object.create(null);for(var i in t)try{i=e._makeAbs(i);var s=tR.realpathSync(i,e.realpathCache);n[s]=!0}catch(o){if(o.syscall==="stat")n[e._makeAbs(i)]=!0;else throw o}})}Un.finish(this)};Je.prototype._process=function(e,t,r){U0.ok(this instanceof Je);for(var n=0;typeof e[n]=="string";)n++;var i;switch(n){case e.length:this._processSimple(e.join("/"),t);return;case 0:i=null;break;default:i=e.slice(0,n).join("/");break}var s=e.slice(n),o;i===null?o=".":((fa(i)||fa(e.map(function(c){return typeof c=="string"?c:"[*]"}).join("/")))&&(!i||!fa(i))&&(i="/"+i),o=i);var a=this._makeAbs(o);if(!nR(this,o)){var u=s[0]===G0.GLOBSTAR;u?this._processGlobStar(i,o,a,s,t,r):this._processReaddir(i,o,a,s,t,r)}};Je.prototype._processReaddir=function(e,t,r,n,i,s){var o=this._readdir(r,s);if(o){for(var a=n[0],u=!!this.minimatch.negate,c=a._glob,f=this.dot||c.charAt(0)===".",l=[],h=0;h<o.length;h++){var d=o[h];if(d.charAt(0)!=="."||f){var g;u&&!e?g=!d.match(a):g=d.match(a),g&&l.push(d)}}var E=l.length;if(E!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var h=0;h<E;h++){var d=l[h];e&&(e.slice(-1)!=="/"?d=e+"/"+d:d=e+d),d.charAt(0)==="/"&&!this.nomount&&(d=Ol.join(this.root,d)),this._emitMatch(i,d)}return}n.shift();for(var h=0;h<E;h++){var d=l[h],y;e?y=[e,d]:y=[d],this._process(y.concat(n),i,s)}}}};Je.prototype._emitMatch=function(e,t){if(!iR(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}};Je.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r,n;try{r=this.fs.lstatSync(e)}catch(s){if(s.code==="ENOENT")return null}var i=r&&r.isSymbolicLink();return this.symlinks[e]=i,!i&&r&&!r.isDirectory()?this.cache[e]="FILE":t=this._readdir(e,!1),t};Je.prototype._readdir=function(e,t){var r;if(t&&!Fl(this.symlinks,e))return this._readdirInGlobStar(e);if(Fl(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(i){return this._readdirError(e,i),null}};Je.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];e==="/"?n=e+n:n=e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t};Je.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t);break}};Je.prototype._processGlobStar=function(e,t,r,n,i,s){var o=this._readdir(r,s);if(o){var a=n.slice(1),u=e?[e]:[],c=u.concat(a);this._process(c,i,!1);var f=o.length,l=this.symlinks[r];if(!(l&&s))for(var h=0;h<f;h++){var d=o[h];if(!(d.charAt(0)==="."&&!this.dot)){var g=u.concat(o[h],a);this._process(g,i,!0);var E=u.concat(o[h],n);this._process(E,i,!0)}}}};Je.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),!!r){if(e&&fa(e)&&!this.nomount){var n=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=Ol.join(this.root,e):(e=Ol.resolve(this.root,e),n&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}};Je.prototype._stat=function(e){var t=this._makeAbs(e),r=e.slice(-1)==="/";if(e.length>this.maxLength)return!1;if(!this.stat&&Fl(this.cache,t)){var o=this.cache[t];if(Array.isArray(o)&&(o="DIR"),!r||o==="DIR")return o;if(r&&o==="FILE")return!1}var n,i=this.statCache[t];if(!i){var s;try{s=this.fs.lstatSync(t)}catch(a){if(a&&(a.code==="ENOENT"||a.code==="ENOTDIR"))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{i=this.fs.statSync(t)}catch{i=s}else i=s}this.statCache[t]=i;var o=!0;return i&&(o=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,r&&o==="FILE"?!1:o};Je.prototype._mark=function(e){return Un.mark(this,e)};Je.prototype._makeAbs=function(e){return Un.makeAbs(this,e)}});var Pl=D((lW,X0)=>{X0.exports=K0;function K0(e,t){if(e&&t)return K0(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=e.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var kl=D((fW,Dl)=>{var Q0=Pl();Dl.exports=Q0(ha);Dl.exports.strict=Q0(J0);ha.proto=ha(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return ha(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return J0(this)},configurable:!0})});function ha(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function J0(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var ey=D((hW,Z0)=>{var sR=Pl(),Bs=Object.create(null),oR=kl();Z0.exports=sR(aR);function aR(e,t){return Bs[e]?(Bs[e].push(t),null):(Bs[e]=[t],uR(e))}function uR(e){return oR(function t(){var r=Bs[e],n=r.length,i=cR(arguments);try{for(var s=0;s<n;s++)r[s].apply(null,i)}finally{r.length>n?(r.splice(0,n),process.nextTick(function(){t.apply(null,i)})):delete Bs[e]}})}function cR(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}});var Rl=D((gW,ry)=>{ry.exports=Yn;var lR=bl(),ty=js(),dW=ty.Minimatch,fR=B0(),hR=require("events").EventEmitter,Tl=require("path"),Il=require("assert"),qs=require("path").isAbsolute,Ll=V0(),zn=xl(),dR=zn.setopts,Nl=zn.ownProp,jl=ey(),pW=require("util"),pR=zn.childrenIgnored,gR=zn.isIgnored,mR=kl();function Yn(e,t,r){if(typeof t=="function"&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return Ll(e,t)}return new Re(e,t,r)}Yn.sync=Ll;var yR=Yn.GlobSync=Ll.GlobSync;Yn.glob=Yn;function vR(e,t){if(t===null||typeof t!="object")return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}Yn.hasMagic=function(e,t){var r=vR({},t);r.noprocess=!0;var n=new Re(e,r),i=n.minimatch.set;if(!e)return!1;if(i.length>1)return!0;for(var s=0;s<i[0].length;s++)if(typeof i[0][s]!="string")return!0;return!1};Yn.Glob=Re;fR(Re,hR);function Re(e,t,r){if(typeof t=="function"&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new yR(e,t)}if(!(this instanceof Re))return new Re(e,t,r);dR(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),typeof r=="function"&&(r=mR(r),this.on("error",r),this.on("end",function(u){r(null,u)}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(n===0)return a();for(var s=!0,o=0;o<n;o++)this._process(this.minimatch.set[o],o,!1,a);s=!1;function a(){--i._processing,i._processing<=0&&(s?process.nextTick(function(){i._finish()}):i._finish())}}Re.prototype._finish=function(){if(Il(this instanceof Re),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();zn.finish(this),this.emit("end",this.found)}};Re.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var e=this.matches.length;if(e===0)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n);function n(){--e===0&&t._finish()}};Re.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),i=this,s=n.length;if(s===0)return t();var o=this.matches[e]=Object.create(null);n.forEach(function(a,u){a=i._makeAbs(a),lR.realpath(a,i.realpathCache,function(c,f){c?c.syscall==="stat"?o[a]=!0:i.emit("error",c):o[f]=!0,--s===0&&(i.matches[e]=o,t())})})};Re.prototype._mark=function(e){return zn.mark(this,e)};Re.prototype._makeAbs=function(e){return zn.makeAbs(this,e)};Re.prototype.abort=function(){this.aborted=!0,this.emit("abort")};Re.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};Re.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}};Re.prototype._process=function(e,t,r,n){if(Il(this instanceof Re),Il(typeof n=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([e,t,r,n]);return}for(var i=0;typeof e[i]=="string";)i++;var s;switch(i){case e.length:this._processSimple(e.join("/"),t,n);return;case 0:s=null;break;default:s=e.slice(0,i).join("/");break}var o=e.slice(i),a;s===null?a=".":((qs(s)||qs(e.map(function(f){return typeof f=="string"?f:"[*]"}).join("/")))&&(!s||!qs(s))&&(s="/"+s),a=s);var u=this._makeAbs(a);if(pR(this,a))return n();var c=o[0]===ty.GLOBSTAR;c?this._processGlobStar(s,a,u,o,t,r,n):this._processReaddir(s,a,u,o,t,r,n)}};Re.prototype._processReaddir=function(e,t,r,n,i,s,o){var a=this;this._readdir(r,s,function(u,c){return a._processReaddir2(e,t,r,n,i,s,c,o)})};Re.prototype._processReaddir2=function(e,t,r,n,i,s,o,a){if(!o)return a();for(var u=n[0],c=!!this.minimatch.negate,f=u._glob,l=this.dot||f.charAt(0)===".",h=[],d=0;d<o.length;d++){var g=o[d];if(g.charAt(0)!=="."||l){var E;c&&!e?E=!g.match(u):E=g.match(u),E&&h.push(g)}}var y=h.length;if(y===0)return a();if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var d=0;d<y;d++){var g=h[d];e&&(e!=="/"?g=e+"/"+g:g=e+g),g.charAt(0)==="/"&&!this.nomount&&(g=Tl.join(this.root,g)),this._emitMatch(i,g)}return a()}n.shift();for(var d=0;d<y;d++){var g=h[d],F;e&&(e!=="/"?g=e+"/"+g:g=e+g),this._process([g].concat(n),i,s,a)}a()};Re.prototype._emitMatch=function(e,t){if(!this.aborted&&!gR(this,t)){if(this.paused){this._emitQueue.push([e,t]);return}var r=qs(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}};Re.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,!1,t);var r="lstat\0"+e,n=this,i=jl(r,s);i&&n.fs.lstat(e,i);function s(o,a){if(o&&o.code==="ENOENT")return t();var u=a&&a.isSymbolicLink();n.symlinks[e]=u,!u&&a&&!a.isDirectory()?(n.cache[e]="FILE",t()):n._readdir(e,!1,t)}};Re.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=jl("readdir\0"+e+"\0"+t,r),!!r)){if(t&&!Nl(this.symlinks,e))return this._readdirInGlobStar(e,r);if(Nl(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;i.fs.readdir(e,AR(this,e,r))}};function AR(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}Re.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];e==="/"?i=e+i:i=e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}};Re.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t);break}return r()}};Re.prototype._processGlobStar=function(e,t,r,n,i,s,o){var a=this;this._readdir(r,s,function(u,c){a._processGlobStar2(e,t,r,n,i,s,c,o)})};Re.prototype._processGlobStar2=function(e,t,r,n,i,s,o,a){if(!o)return a();var u=n.slice(1),c=e?[e]:[],f=c.concat(u);this._process(f,i,!1,a);var l=this.symlinks[r],h=o.length;if(l&&s)return a();for(var d=0;d<h;d++){var g=o[d];if(!(g.charAt(0)==="."&&!this.dot)){var E=c.concat(o[d],u);this._process(E,i,!0,a);var y=c.concat(o[d],n);this._process(y,i,!0,a)}}a()};Re.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,function(i,s){n._processSimple2(e,t,i,s,r)})};Re.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&qs(e)&&!this.nomount){var s=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=Tl.join(this.root,e):(e=Tl.resolve(this.root,e),s&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()};Re.prototype._stat=function(e,t){var r=this._makeAbs(e),n=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&Nl(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||i==="DIR")return t(null,i);if(n&&i==="FILE")return t()}var s,o=this.statCache[r];if(o!==void 0){if(o===!1)return t(null,o);var a=o.isDirectory()?"DIR":"FILE";return n&&a==="FILE"?t():t(null,a,o)}var u=this,c=jl("stat\0"+r,f);c&&u.fs.lstat(r,c);function f(l,h){if(h&&h.isSymbolicLink())return u.fs.stat(r,function(d,g){d?u._stat2(e,r,null,h,t):u._stat2(e,r,d,g,t)});u._stat2(e,r,l,h,t)}};Re.prototype._stat2=function(e,t,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return this.statCache[t]=!1,i();var s=e.slice(-1)==="/";if(this.statCache[t]=n,t.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,!1,n);var o=!0;return n&&(o=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,s&&o==="FILE"?i():i(null,o,n)}});var cy=D((mW,uy)=>{var{promisify:ER}=require("util"),ny=require("path"),bR=t0(),wR=js(),SR=ml(),_R=Rl(),CR=ER(_R);function xR(e){let t=[];for(let r of e){let n=r.match(/^!+/);n&&(r=r.slice(n[0].length)),r=r.replace(/^\/+/,"");let i=n&&n[0].length%2===1;t.push({pattern:r,negate:i})}return t}function iy(e){let t=Array.isArray(e.packages)?e.packages:e;if(!Array.isArray(t))throw da({message:"workspaces config expects an Array",code:"EWORKSPACESCONFIG"});return xR(t)}function sy(e,t){let{name:r}=e;return r||bR(t)}function oy(e){return(...t)=>{let r=e.cwd?e.cwd:process.cwd();return ny.join.apply(null,[r,...t])}}function OR(e){return e=e.replace(/\\/g,"/"),e.endsWith("/")?e:`${e}/`}function da({Type:e=TypeError,message:t,code:r}){return Object.assign(new e(t),{code:r})}function FR(e){return new Map(Array.from(e,t=>t.reverse()))}async function ay(e={}){if(!e||!e.pkg)throw da({message:"mapWorkspaces missing pkg info",code:"EMAPWORKSPACESPKG"});let{workspaces:t=[]}=e.pkg,r=iy(t),n=new Map,i=new Map;if(!r.length)return n;let s=()=>({...e,ignore:[...e.ignore||[],"**/node_modules/**"]}),o=oy(e);for(let u of r){let c=await CR(OR(u.pattern),s());for(let f of c){let l,h=o(f,"package.json"),d=ny.dirname(h);try{l=await SR(h)}catch(y){if(y.code==="ENOENT")continue;throw y}let g=sy(l,d),E=i.get(g);E||(E=new Set,i.set(g,E)),u.negate?E.delete(d):E.add(d)}}let a=["must not have multiple workspaces with the same name"];for(let[u,c]of i)c.size!==0&&(c.size>1?RR(a,u,c):n.set(u,c.values().next().value));if(a.length>1)throw da({Type:Error,message:a.join(`
|
|
10
|
-
`),code:"EDUPLICATEWORKSPACE"});return n}function RR(e,t,r){e.push(`package '${t}' has conflicts in the following paths:`);for(let n of r)e.push(" "+n)}ay.virtual=function(e={}){if(!e||!e.lockfile)throw da({message:"mapWorkspaces.virtual missing lockfile info",code:"EMAPWORKSPACESLOCKFILE"});let{packages:t={}}=e.lockfile,{workspaces:r=[]}=t[""]||{},n=new Map,i=iy(r);if(!i.length)return n;i.push({pattern:"**/node_modules/**",negate:!0});let s=oy(e);for(let o of Object.keys(t))if(o!==""){for(let a of i)if(wR(o,a.pattern)){let u=s(o),c=sy(t[o],u);a.negate?n.delete(u):n.set(u,c)}}return FR(n)};uy.exports=ay});var hy=D((yW,fy)=>{var ly=["notice","error","warn","info","verbose","http","silly","pause","resume"],PR=e=>(...t)=>process.emit("log",e,...t),Ml={};for(let e of ly)Ml[e]=PR(e);Ml.LEVELS=ly;fy.exports=Ml});var Bl=D((vW,py)=>{var $l=class{},dy=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}`)}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},DR=(e,t,r)=>{try{return e[t]=dy(r),!0}catch{return!1}};py.exports={Umask:$l,parse:dy,validate:DR}});var Hs=D((AW,gy)=>{var kR="2.0.0",TR=Number.MAX_SAFE_INTEGER||9007199254740991,IR=16,NR=250,LR=["major","premajor","minor","preminor","patch","prepatch","prerelease"];gy.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:IR,MAX_SAFE_BUILD_LENGTH:NR,MAX_SAFE_INTEGER:TR,RELEASE_TYPES:LR,SEMVER_SPEC_VERSION:kR,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ws=D((EW,my)=>{var jR=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};my.exports=jR});var Pi=D((Dr,yy)=>{var{MAX_SAFE_COMPONENT_LENGTH:ql,MAX_SAFE_BUILD_LENGTH:MR,MAX_LENGTH:$R}=Hs(),BR=Ws();Dr=yy.exports={};var qR=Dr.re=[],HR=Dr.safeRe=[],oe=Dr.src=[],ae=Dr.t={},WR=0,Hl="[a-zA-Z0-9-]",GR=[["\\s",1],["\\d",$R],[Hl,MR]],UR=e=>{for(let[t,r]of GR)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},we=(e,t,r)=>{let n=UR(t),i=WR++;BR(e,i,t),ae[e]=i,oe[i]=t,qR[i]=new RegExp(t,r?"g":void 0),HR[i]=new RegExp(n,r?"g":void 0)};we("NUMERICIDENTIFIER","0|[1-9]\\d*");we("NUMERICIDENTIFIERLOOSE","\\d+");we("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Hl}*`);we("MAINVERSION",`(${oe[ae.NUMERICIDENTIFIER]})\\.(${oe[ae.NUMERICIDENTIFIER]})\\.(${oe[ae.NUMERICIDENTIFIER]})`);we("MAINVERSIONLOOSE",`(${oe[ae.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ae.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ae.NUMERICIDENTIFIERLOOSE]})`);we("PRERELEASEIDENTIFIER",`(?:${oe[ae.NUMERICIDENTIFIER]}|${oe[ae.NONNUMERICIDENTIFIER]})`);we("PRERELEASEIDENTIFIERLOOSE",`(?:${oe[ae.NUMERICIDENTIFIERLOOSE]}|${oe[ae.NONNUMERICIDENTIFIER]})`);we("PRERELEASE",`(?:-(${oe[ae.PRERELEASEIDENTIFIER]}(?:\\.${oe[ae.PRERELEASEIDENTIFIER]})*))`);we("PRERELEASELOOSE",`(?:-?(${oe[ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${oe[ae.PRERELEASEIDENTIFIERLOOSE]})*))`);we("BUILDIDENTIFIER",`${Hl}+`);we("BUILD",`(?:\\+(${oe[ae.BUILDIDENTIFIER]}(?:\\.${oe[ae.BUILDIDENTIFIER]})*))`);we("FULLPLAIN",`v?${oe[ae.MAINVERSION]}${oe[ae.PRERELEASE]}?${oe[ae.BUILD]}?`);we("FULL",`^${oe[ae.FULLPLAIN]}$`);we("LOOSEPLAIN",`[v=\\s]*${oe[ae.MAINVERSIONLOOSE]}${oe[ae.PRERELEASELOOSE]}?${oe[ae.BUILD]}?`);we("LOOSE",`^${oe[ae.LOOSEPLAIN]}$`);we("GTLT","((?:<|>)?=?)");we("XRANGEIDENTIFIERLOOSE",`${oe[ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);we("XRANGEIDENTIFIER",`${oe[ae.NUMERICIDENTIFIER]}|x|X|\\*`);we("XRANGEPLAIN",`[v=\\s]*(${oe[ae.XRANGEIDENTIFIER]})(?:\\.(${oe[ae.XRANGEIDENTIFIER]})(?:\\.(${oe[ae.XRANGEIDENTIFIER]})(?:${oe[ae.PRERELEASE]})?${oe[ae.BUILD]}?)?)?`);we("XRANGEPLAINLOOSE",`[v=\\s]*(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:${oe[ae.PRERELEASELOOSE]})?${oe[ae.BUILD]}?)?)?`);we("XRANGE",`^${oe[ae.GTLT]}\\s*${oe[ae.XRANGEPLAIN]}$`);we("XRANGELOOSE",`^${oe[ae.GTLT]}\\s*${oe[ae.XRANGEPLAINLOOSE]}$`);we("COERCEPLAIN",`(^|[^\\d])(\\d{1,${ql}})(?:\\.(\\d{1,${ql}}))?(?:\\.(\\d{1,${ql}}))?`);we("COERCE",`${oe[ae.COERCEPLAIN]}(?:$|[^\\d])`);we("COERCEFULL",oe[ae.COERCEPLAIN]+`(?:${oe[ae.PRERELEASE]})?(?:${oe[ae.BUILD]})?(?:$|[^\\d])`);we("COERCERTL",oe[ae.COERCE],!0);we("COERCERTLFULL",oe[ae.COERCEFULL],!0);we("LONETILDE","(?:~>?)");we("TILDETRIM",`(\\s*)${oe[ae.LONETILDE]}\\s+`,!0);Dr.tildeTrimReplace="$1~";we("TILDE",`^${oe[ae.LONETILDE]}${oe[ae.XRANGEPLAIN]}$`);we("TILDELOOSE",`^${oe[ae.LONETILDE]}${oe[ae.XRANGEPLAINLOOSE]}$`);we("LONECARET","(?:\\^)");we("CARETTRIM",`(\\s*)${oe[ae.LONECARET]}\\s+`,!0);Dr.caretTrimReplace="$1^";we("CARET",`^${oe[ae.LONECARET]}${oe[ae.XRANGEPLAIN]}$`);we("CARETLOOSE",`^${oe[ae.LONECARET]}${oe[ae.XRANGEPLAINLOOSE]}$`);we("COMPARATORLOOSE",`^${oe[ae.GTLT]}\\s*(${oe[ae.LOOSEPLAIN]})$|^$`);we("COMPARATOR",`^${oe[ae.GTLT]}\\s*(${oe[ae.FULLPLAIN]})$|^$`);we("COMPARATORTRIM",`(\\s*)${oe[ae.GTLT]}\\s*(${oe[ae.LOOSEPLAIN]}|${oe[ae.XRANGEPLAIN]})`,!0);Dr.comparatorTrimReplace="$1$2$3";we("HYPHENRANGE",`^\\s*(${oe[ae.XRANGEPLAIN]})\\s+-\\s+(${oe[ae.XRANGEPLAIN]})\\s*$`);we("HYPHENRANGELOOSE",`^\\s*(${oe[ae.XRANGEPLAINLOOSE]})\\s+-\\s+(${oe[ae.XRANGEPLAINLOOSE]})\\s*$`);we("STAR","(<|>)?=?\\s*\\*");we("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");we("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var pa=D((bW,vy)=>{var YR=Object.freeze({loose:!0}),zR=Object.freeze({}),VR=e=>e?typeof e!="object"?YR:e:zR;vy.exports=VR});var Wl=D((wW,by)=>{var Ay=/^[0-9]+$/,Ey=(e,t)=>{let r=Ay.test(e),n=Ay.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},KR=(e,t)=>Ey(t,e);by.exports={compareIdentifiers:Ey,rcompareIdentifiers:KR}});var st=D((SW,Cy)=>{var ga=Ws(),{MAX_LENGTH:wy,MAX_SAFE_INTEGER:ma}=Hs(),{safeRe:Sy,t:_y}=Pi(),XR=pa(),{compareIdentifiers:Di}=Wl(),Gl=class e{constructor(t,r){if(r=XR(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>wy)throw new TypeError(`version is longer than ${wy} characters`);ga("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Sy[_y.LOOSE]:Sy[_y.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>ma||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ma||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ma||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<ma)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(ga("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)),Di(this.major,t.major)||Di(this.minor,t.minor)||Di(this.patch,t.patch)}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(ga("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 Di(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(ga("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 Di(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),Di(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}};Cy.exports=Gl});var Vn=D((_W,Oy)=>{var xy=st(),QR=(e,t,r=!1)=>{if(e instanceof xy)return e;try{return new xy(e,t)}catch(n){if(!r)return null;throw n}};Oy.exports=QR});var Ry=D((CW,Fy)=>{var JR=Vn(),ZR=(e,t)=>{let r=JR(e,t);return r?r.version:null};Fy.exports=ZR});var Dy=D((xW,Py)=>{var eP=Vn(),tP=(e,t)=>{let r=eP(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};Py.exports=tP});var Iy=D((OW,Ty)=>{var ky=st(),rP=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new ky(e instanceof ky?e.version:e,r).inc(t,n,i).version}catch{return null}};Ty.exports=rP});var jy=D((FW,Ly)=>{var Ny=Vn(),nP=(e,t)=>{let r=Ny(e,null,!0),n=Ny(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)return!a.patch&&!a.minor?"major":o.patch?"patch":o.minor?"minor":"major";let f=u?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};Ly.exports=nP});var $y=D((RW,My)=>{var iP=st(),sP=(e,t)=>new iP(e,t).major;My.exports=sP});var qy=D((PW,By)=>{var oP=st(),aP=(e,t)=>new oP(e,t).minor;By.exports=aP});var Wy=D((DW,Hy)=>{var uP=st(),cP=(e,t)=>new uP(e,t).patch;Hy.exports=cP});var Uy=D((kW,Gy)=>{var lP=Vn(),fP=(e,t)=>{let r=lP(e,t);return r&&r.prerelease.length?r.prerelease:null};Gy.exports=fP});var zt=D((TW,zy)=>{var Yy=st(),hP=(e,t,r)=>new Yy(e,r).compare(new Yy(t,r));zy.exports=hP});var Ky=D((IW,Vy)=>{var dP=zt(),pP=(e,t,r)=>dP(t,e,r);Vy.exports=pP});var Qy=D((NW,Xy)=>{var gP=zt(),mP=(e,t)=>gP(e,t,!0);Xy.exports=mP});var ya=D((LW,Zy)=>{var Jy=st(),yP=(e,t,r)=>{let n=new Jy(e,r),i=new Jy(t,r);return n.compare(i)||n.compareBuild(i)};Zy.exports=yP});var tv=D((jW,ev)=>{var vP=ya(),AP=(e,t)=>e.sort((r,n)=>vP(r,n,t));ev.exports=AP});var nv=D((MW,rv)=>{var EP=ya(),bP=(e,t)=>e.sort((r,n)=>EP(n,r,t));rv.exports=bP});var Gs=D(($W,iv)=>{var wP=zt(),SP=(e,t,r)=>wP(e,t,r)>0;iv.exports=SP});var va=D((BW,sv)=>{var _P=zt(),CP=(e,t,r)=>_P(e,t,r)<0;sv.exports=CP});var Ul=D((qW,ov)=>{var xP=zt(),OP=(e,t,r)=>xP(e,t,r)===0;ov.exports=OP});var Yl=D((HW,av)=>{var FP=zt(),RP=(e,t,r)=>FP(e,t,r)!==0;av.exports=RP});var Aa=D((WW,uv)=>{var PP=zt(),DP=(e,t,r)=>PP(e,t,r)>=0;uv.exports=DP});var Ea=D((GW,cv)=>{var kP=zt(),TP=(e,t,r)=>kP(e,t,r)<=0;cv.exports=TP});var zl=D((UW,lv)=>{var IP=Ul(),NP=Yl(),LP=Gs(),jP=Aa(),MP=va(),$P=Ea(),BP=(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 IP(e,r,n);case"!=":return NP(e,r,n);case">":return LP(e,r,n);case">=":return jP(e,r,n);case"<":return MP(e,r,n);case"<=":return $P(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};lv.exports=BP});var hv=D((YW,fv)=>{var qP=st(),HP=Vn(),{safeRe:ba,t:wa}=Pi(),WP=(e,t)=>{if(e instanceof qP)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?ba[wa.COERCEFULL]:ba[wa.COERCE]);else{let u=t.includePrerelease?ba[wa.COERCERTLFULL]:ba[wa.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 HP(`${n}.${i}.${s}${o}${a}`,t)};fv.exports=WP});var pv=D((zW,dv)=>{var Vl=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}};dv.exports=Vl});var Vt=D((VW,vv)=>{var GP=/\s+/g,Kl=class e{constructor(t,r){if(r=YP(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof Xl)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(GP," "),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=>!mv(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&&ZP(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&&QP)|(this.options.loose&&JP))+":"+t,i=gv.get(n);if(i)return i;let s=this.options.loose,o=s?wt[yt.HYPHENRANGELOOSE]:wt[yt.HYPHENRANGE];t=t.replace(o,cD(this.options.includePrerelease)),$e("hyphen replace",t),t=t.replace(wt[yt.COMPARATORTRIM],VP),$e("comparator trim",t),t=t.replace(wt[yt.TILDETRIM],KP),$e("tilde trim",t),t=t.replace(wt[yt.CARETTRIM],XP),$e("caret trim",t);let a=t.split(" ").map(l=>eD(l,this.options)).join(" ").split(/\s+/).map(l=>uD(l,this.options));s&&(a=a.filter(l=>($e("loose invalid filter",l,this.options),!!l.match(wt[yt.COMPARATORLOOSE])))),$e("range list",a);let u=new Map,c=a.map(l=>new Xl(l,this.options));for(let l of c){if(mv(l))return[l];u.set(l.value,l)}u.size>1&&u.has("")&&u.delete("");let f=[...u.values()];return gv.set(n,f),f}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>yv(n,r)&&t.set.some(i=>yv(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 zP(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(lD(this.set[r],t,this.options))return!0;return!1}};vv.exports=Kl;var UP=pv(),gv=new UP,YP=pa(),Xl=Us(),$e=Ws(),zP=st(),{safeRe:wt,t:yt,comparatorTrimReplace:VP,tildeTrimReplace:KP,caretTrimReplace:XP}=Pi(),{FLAG_INCLUDE_PRERELEASE:QP,FLAG_LOOSE:JP}=Hs(),mv=e=>e.value==="<0.0.0-0",ZP=e=>e.value==="",yv=(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},eD=(e,t)=>($e("comp",e,t),e=nD(e,t),$e("caret",e),e=tD(e,t),$e("tildes",e),e=sD(e,t),$e("xrange",e),e=aD(e,t),$e("stars",e),e),vt=e=>!e||e.toLowerCase()==="x"||e==="*",tD=(e,t)=>e.trim().split(/\s+/).map(r=>rD(r,t)).join(" "),rD=(e,t)=>{let r=t.loose?wt[yt.TILDELOOSE]:wt[yt.TILDE];return e.replace(r,(n,i,s,o,a)=>{$e("tilde",e,n,i,s,o,a);let u;return vt(i)?u="":vt(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:vt(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?($e("replaceTilde pr",a),u=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,$e("tilde return",u),u})},nD=(e,t)=>e.trim().split(/\s+/).map(r=>iD(r,t)).join(" "),iD=(e,t)=>{$e("caret",e,t);let r=t.loose?wt[yt.CARETLOOSE]:wt[yt.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,a,u)=>{$e("caret",e,i,s,o,a,u);let c;return vt(s)?c="":vt(o)?c=`>=${s}.0.0${n} <${+s+1}.0.0-0`:vt(a)?s==="0"?c=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?($e("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`):($e("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`),$e("caret return",c),c})},sD=(e,t)=>($e("replaceXRanges",e,t),e.split(/\s+/).map(r=>oD(r,t)).join(" ")),oD=(e,t)=>{e=e.trim();let r=t.loose?wt[yt.XRANGELOOSE]:wt[yt.XRANGE];return e.replace(r,(n,i,s,o,a,u)=>{$e("xRange",e,n,i,s,o,a,u);let c=vt(s),f=c||vt(o),l=f||vt(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`),$e("xRange return",n),n})},aD=(e,t)=>($e("replaceStars",e,t),e.trim().replace(wt[yt.STAR],"")),uD=(e,t)=>($e("replaceGTE0",e,t),e.trim().replace(wt[t.includePrerelease?yt.GTE0PRE:yt.GTE0],"")),cD=e=>(t,r,n,i,s,o,a,u,c,f,l,h)=>(vt(n)?r="":vt(i)?r=`>=${n}.0.0${e?"-0":""}`:vt(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,vt(c)?u="":vt(f)?u=`<${+c+1}.0.0-0`:vt(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()),lD=(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($e(e[n].semver),e[n].semver!==Xl.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 Us=D((KW,_v)=>{var Ys=Symbol("SemVer ANY"),Zl=class e{static get ANY(){return Ys}constructor(t,r){if(r=Av(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),Jl("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Ys?this.value="":this.value=this.operator+this.semver.version,Jl("comp",this)}parse(t){let r=this.options.loose?Ev[bv.COMPARATORLOOSE]:Ev[bv.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 wv(n[2],this.options.loose):this.semver=Ys}toString(){return this.value}test(t){if(Jl("Comparator.test",t,this.options.loose),this.semver===Ys||t===Ys)return!0;if(typeof t=="string")try{t=new wv(t,this.options)}catch{return!1}return Ql(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 Sv(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new Sv(this.value,r).test(t.semver):(r=Av(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("=")||Ql(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||Ql(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};_v.exports=Zl;var Av=pa(),{safeRe:Ev,t:bv}=Pi(),Ql=zl(),Jl=Ws(),wv=st(),Sv=Vt()});var zs=D((XW,Cv)=>{var fD=Vt(),hD=(e,t,r)=>{try{t=new fD(t,r)}catch{return!1}return t.test(e)};Cv.exports=hD});var Ov=D((QW,xv)=>{var dD=Vt(),pD=(e,t)=>new dD(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));xv.exports=pD});var Rv=D((JW,Fv)=>{var gD=st(),mD=Vt(),yD=(e,t,r)=>{let n=null,i=null,s=null;try{s=new mD(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new gD(n,r))}),n};Fv.exports=yD});var Dv=D((ZW,Pv)=>{var vD=st(),AD=Vt(),ED=(e,t,r)=>{let n=null,i=null,s=null;try{s=new AD(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new vD(n,r))}),n};Pv.exports=ED});var Iv=D((eG,Tv)=>{var ef=st(),bD=Vt(),kv=Gs(),wD=(e,t)=>{e=new bD(e,t);let r=new ef("0.0.0");if(e.test(r)||(r=new ef("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 ef(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||kv(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||kv(r,s))&&(r=s)}return r&&e.test(r)?r:null};Tv.exports=wD});var Lv=D((tG,Nv)=>{var SD=Vt(),_D=(e,t)=>{try{return new SD(e,t).range||"*"}catch{return null}};Nv.exports=_D});var Sa=D((rG,Bv)=>{var CD=st(),$v=Us(),{ANY:xD}=$v,OD=Vt(),FD=zs(),jv=Gs(),Mv=va(),RD=Ea(),PD=Aa(),DD=(e,t,r,n)=>{e=new CD(e,n),t=new OD(t,n);let i,s,o,a,u;switch(r){case">":i=jv,s=RD,o=Mv,a=">",u=">=";break;case"<":i=Mv,s=PD,o=jv,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(FD(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===xD&&(d=new $v(">=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};Bv.exports=DD});var Hv=D((nG,qv)=>{var kD=Sa(),TD=(e,t,r)=>kD(e,t,">",r);qv.exports=TD});var Gv=D((iG,Wv)=>{var ID=Sa(),ND=(e,t,r)=>ID(e,t,"<",r);Wv.exports=ND});var zv=D((sG,Yv)=>{var Uv=Vt(),LD=(e,t,r)=>(e=new Uv(e,r),t=new Uv(t,r),e.intersects(t,r));Yv.exports=LD});var Kv=D((oG,Vv)=>{var jD=zs(),MD=zt();Vv.exports=(e,t,r)=>{let n=[],i=null,s=null,o=e.sort((f,l)=>MD(f,l,r));for(let f of o)jD(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 tA=D((aG,eA)=>{var Xv=Vt(),rf=Us(),{ANY:tf}=rf,Vs=zs(),nf=zt(),$D=(e,t,r={})=>{if(e===t)return!0;e=new Xv(e,r),t=new Xv(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let o=qD(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},BD=[new rf(">=0.0.0-0")],Qv=[new rf(">=0.0.0")],qD=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===tf){if(t.length===1&&t[0].semver===tf)return!0;r.includePrerelease?e=BD:e=Qv}if(t.length===1&&t[0].semver===tf){if(r.includePrerelease)return!0;t=Qv}let n=new Set,i,s;for(let d of e)d.operator===">"||d.operator===">="?i=Jv(i,d,r):d.operator==="<"||d.operator==="<="?s=Zv(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=nf(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&&!Vs(d,String(i),r)||s&&!Vs(d,String(s),r))return null;for(let g of t)if(!Vs(d,String(g),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=Jv(i,d,r),a===d&&a!==i)return!1}else if(i.operator===">="&&!Vs(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=Zv(s,d,r),u===d&&u!==s)return!1}else if(s.operator==="<="&&!Vs(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)},Jv=(e,t,r)=>{if(!e)return t;let n=nf(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},Zv=(e,t,r)=>{if(!e)return t;let n=nf(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};eA.exports=$D});var sA=D((uG,iA)=>{var sf=Pi(),rA=Hs(),HD=st(),nA=Wl(),WD=Vn(),GD=Ry(),UD=Dy(),YD=Iy(),zD=jy(),VD=$y(),KD=qy(),XD=Wy(),QD=Uy(),JD=zt(),ZD=Ky(),ek=Qy(),tk=ya(),rk=tv(),nk=nv(),ik=Gs(),sk=va(),ok=Ul(),ak=Yl(),uk=Aa(),ck=Ea(),lk=zl(),fk=hv(),hk=Us(),dk=Vt(),pk=zs(),gk=Ov(),mk=Rv(),yk=Dv(),vk=Iv(),Ak=Lv(),Ek=Sa(),bk=Hv(),wk=Gv(),Sk=zv(),_k=Kv(),Ck=tA();iA.exports={parse:WD,valid:GD,clean:UD,inc:YD,diff:zD,major:VD,minor:KD,patch:XD,prerelease:QD,compare:JD,rcompare:ZD,compareLoose:ek,compareBuild:tk,sort:rk,rsort:nk,gt:ik,lt:sk,eq:ok,neq:ak,gte:uk,lte:ck,cmp:lk,coerce:fk,Comparator:hk,Range:dk,satisfies:pk,toComparators:gk,maxSatisfying:mk,minSatisfying:yk,minVersion:vk,validRange:Ak,outside:Ek,gtr:bk,ltr:wk,intersects:Sk,simplifyRange:_k,subset:Ck,SemVer:HD,re:sf.re,src:sf.src,tokens:sf.t,SEMVER_SPEC_VERSION:rA.SEMVER_SPEC_VERSION,RELEASE_TYPES:rA.RELEASE_TYPES,compareIdentifiers:nA.compareIdentifiers,rcompareIdentifiers:nA.rcompareIdentifiers}});var _a=D((cG,of)=>{var un=Kc(),{Umask:xk,validate:Ok}=Bl(),oA=sA(),Fk=(e,t,r)=>{let n=oA.valid(r);if(!n)return!1;e[t]=n},Rk=un.typeDefs.path.validate,Pk=(e,t,r)=>typeof r!="string"?!1:Rk(e,t,r);of.exports={...un.typeDefs,semver:{type:oA,validate:Fk,description:"full valid SemVer string"},Umask:{type:xk,validate:Ok,description:"octal number in range 0o000..0o777 (0..511)"},url:{...un.typeDefs.url,description:'full url with "http://"'},path:{...un.typeDefs.path,validate:Pk,description:"valid filesystem path"},Number:{...un.typeDefs.Number,description:"numeric value"},Boolean:{...un.typeDefs.Boolean,description:"boolean value (true or false)"},Date:{...un.typeDefs.Date,description:"valid Date string"}};un.typeDefs=of.exports});var cA=D((lG,uA)=>{var{URL:aA}=require("url");uA.exports=e=>{let t=new aA(e),r=`${t.protocol}//${t.host}${t.pathname}`,n=new aA(".",r);return`//${n.host}${n.pathname}`}});var af=D((fG,lA)=>{var Dk=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;lA.exports=(e,t)=>e.replace(Dk,(r,n,i)=>{let s=t[i]!==void 0?t[i]:`\${${i}}`;return n.length%2?r.slice((n.length+1)/2):n.slice(n.length/2)+s})});var dA=D((hG,hA)=>{var Ks=_a(),kk=af(),{resolve:fA}=require("path"),{parse:Tk}=Bl(),uf=(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(Ks.path.type),f=u.has(Ks.Boolean.type),l=c||u.has(Ks.String.type),h=u.has(Ks.Umask.type),d=u.has(Ks.Number.type),g=!n&&u.has(Array);if(Array.isArray(e))return g?e.map(E=>uf(E,t,r,!0)):e;if(e=e.trim(),g)return uf(e.split(`
|
|
3
|
+
`,n=t.whitespace?" = ":"=",i=[],s=t.sort?Object.keys(e).sort():Object.keys(e),o=0;t.align&&(o=Vr(s.filter(u=>e[u]===null||Array.isArray(e[u])||typeof e[u]!="object").map(u=>Array.isArray(e[u])?`${u}[]`:u).concat([""]).reduce((u,f)=>Vr(u).length>=Vr(f).length?u:f)).length);let a="",c=t.bracketedArray?"[]":"";for(let u of s){let f=e[u];if(f&&Array.isArray(f))for(let l of f)a+=Vr(`${u}${c}`).padEnd(o," ")+n+Vr(l)+r;else f&&typeof f=="object"?i.push(u):a+=Vr(u).padEnd(o," ")+n+Vr(f)+r}t.section&&a.length&&(a="["+Vr(t.section)+"]"+(t.newline?r+r:r)+a);for(let u of i){let f=py(u,".").join("\\."),l=(t.section?t.section+".":"")+f,h=Pf(e[u],{...t,section:l});a.length&&h.length&&(a+=r),a+=h}return a};function py(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 dy=(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 u of o){if(!u||u.match(/^\s*[;#]/)||u.match(/^\s*$/))continue;let f=u.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,g=p==="true"||p==="false"||p==="null"?JSON.parse(p):p;h&&(_f.call(n,d)?Array.isArray(n[d])||(n[d]=[n[d]]):n[d]=[]),Array.isArray(n[d])?n[d].push(g):n[d]=g}let c=[];for(let u of Object.keys(r)){if(!_f.call(r,u)||typeof r[u]!="object"||Array.isArray(r[u]))continue;let f=py(u,".");n=r;let l=f.pop(),h=l.replace(/\\\./g,".");for(let d of f)d!=="__proto__"&&((!_f.call(n,d)||typeof n[d]!="object")&&(n[d]=Object.create(null)),n=n[d]);n===r&&h===l||(n[h]=r[u],c.push(u))}for(let u of c)delete r[u];return r},my=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),Vr=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&my(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),Za=e=>{if(e=(e||"").trim(),my(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};gy.exports={parse:dy,decode:dy,stringify:Pf,encode:Pf,safe:Vr,unsafe:Za}});var vy=P((k5,yy)=>{yy.exports=kD;function kD(...e){let t=e.length===1||Array.isArray(e[0])?e[0]:e;for(let i=0,s=t.length;i<s;i++)t[i]=typeof t[i]=="string"?t[i]:String(t[i]);t=t.sort(ND);let r={},n="";for(let i=0,s=t.length;i<s;i++){let o=t[i],a=t[i+1]||"",c=!0,u=!0;if(o===a)continue;let f=0,l=o.length;for(;f<l;f++){let h=o.charAt(f);if(c=c&&h===a.charAt(f),u=u&&h===n.charAt(f),!c&&!u){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 ND(e,t){return e===t?0:e>t?1:-1}});var Ff=P((N5,Ey)=>{Ey.exports=process.env.DEBUG_NOPT||process.env.NOPT_DEBUG?(...e)=>console.error(...e):()=>{}});var Lf=P(($5,Sy)=>{var Ay=require("url"),Df=require("path"),wy=require("stream").Stream,$D=require("os"),by=Ff();function MD(e,t,r){e[t]=String(r)}function jD(e,t,r){if(r===!0)return!1;if(r===null)return!0;r=String(r);let i=process.platform==="win32"?/^~(\/|\\)/:/^~\//,s=$D.homedir();return s&&r.match(i)?e[t]=Df.resolve(s,r.slice(2)):e[t]=Df.resolve(r),!0}function BD(e,t,r){if(by("validate Number %j %j %j",t,r,isNaN(r)),isNaN(r))return!1;e[t]=+r}function qD(e,t,r){let n=Date.parse(r);if(by("validate Date %j %j %j",t,r,n),isNaN(n))return!1;e[t]=new Date(r)}function GD(e,t,r){typeof r=="string"?isNaN(r)?r==="null"||r==="false"?r=!1:r=!0:r=!!+r:r=!!r,e[t]=r}function UD(e,t,r){if(r=Ay.parse(String(r)),!r.host)return!1;e[t]=r.href}function WD(e,t,r){if(!(r instanceof wy))return!1;e[t]=r}Sy.exports={String:{type:String,validate:MD},Boolean:{type:Boolean,validate:GD},url:{type:Ay,validate:UD},Number:{type:Number,validate:BD},path:{type:Df,validate:jD},Stream:{type:wy,validate:WD},Date:{type:Date,validate:qD},Array:{type:Array}}});var Dy=P((M5,Fy)=>{var eu=vy(),He=Ff(),HD=Lf(),xy=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Oy=(e,{types:t,dynamicTypes:r})=>{let n=xy(t,e),i=t[e];if(!n&&typeof r=="function"){let s=r(e);s!==void 0&&(i=s,n=!0)}return[n,i]},Yi=(e,t)=>t&&e===t,Dr=(e,t)=>t&&e.indexOf(t)!==-1,zD=(e,t)=>t&&!Dr(e,t);function YD(e,{types:t,shorthands:r,typeDefs:n,invalidHandler:i,typeDefault:s,dynamicTypes:o}={}){He(t,r,e,n);let a={},c={remain:[],cooked:e,original:e.slice(0)};return Py(e,a,c.remain,{typeDefs:n,types:t,dynamicTypes:o,shorthands:r}),_y(a,{types:t,dynamicTypes:o,typeDefs:n,invalidHandler:i,typeDefault:s}),a.argv=c,Object.defineProperty(a.argv,"toString",{value:function(){return this.original.map(JSON.stringify).join(" ")},enumerable:!1}),a}function _y(e,{types:t={},typeDefs:r={},dynamicTypes:n,invalidHandler:i,typeDefault:s}={}){let o=r.String?.type,a=r.Number?.type,c=r.Array?.type,u=r.Boolean?.type,f=r.Date?.type,l=typeof s<"u";l||(s=[!1,!0,null],o&&s.push(o),c&&s.push(c));let h={};Object.keys(e).forEach(d=>{if(d==="argv")return;let p=e[d];He("val=%j",p);let g=Array.isArray(p),[y,x]=Oy(d,{types:t,dynamicTypes:n}),S=x;g||(p=[p]),S||(S=s),Yi(S,c)&&(S=s.concat(c)),Array.isArray(S)||(S=[S]),He("val=%j",p),He("types=",S),p=p.map(I=>{if(typeof I=="string"&&(He("string %j",I),I=I.trim(),I==="null"&&~S.indexOf(null)||I==="true"&&(~S.indexOf(!0)||Dr(S,u))||I==="false"&&(~S.indexOf(!1)||Dr(S,u))?(I=JSON.parse(I),He("jsonable %j",I)):Dr(S,a)&&!isNaN(I)?(He("convert to number",I),I=+I):Dr(S,f)&&!isNaN(Date.parse(I))&&(He("convert to date",I),I=new Date(I))),!y){if(!l)return I;x=s}I===!1&&~S.indexOf(null)&&!(~S.indexOf(!1)||Dr(S,u))&&(I=null);let R={};return R[d]=I,He("prevalidated val",R,I,x),Tf(R,d,I,x,{typeDefs:r})?(He("validated v",R,I,x),R[d]):(i?i(d,I,x,e):i!==!1&&He("invalid: "+d+"="+I,x),h)}).filter(I=>I!==h),!p.length&&zD(S,c)?(He("VAL HAS NO LENGTH, DELETE IT",p,d,S.indexOf(c)),delete e[d]):g?(He(g,e[d],p),e[d]=p):e[d]=p[0],He("k=%s val=%j",d,p,e[d])})}function Tf(e,t,r,n,{typeDefs:i}={}){let s=i?.Array?.type;if(Array.isArray(n)){for(let c=0,u=n.length;c<u;c++)if(!Yi(n[c],s)&&Tf(e,t,r,n[c],{typeDefs:i}))return!0;return delete e[t],!1}if(Yi(n,s))return!0;if(n!==n)return He("Poison NaN",t,r,n),delete e[t],!1;if(r===n)return He("Explicitly allowed %j",r),e[t]=r,!0;let o=!1,a=Object.keys(i);for(let c=0,u=a.length;c<u;c++){He("test type %j %j %j",t,r,a[c]);let f=i[a[c]];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 He("OK? %j (%j %j %j)",o,t,r,a[a.length-1]),o||delete e[t],o}function Py(e,t,r,{types:n={},typeDefs:i={},shorthands:s={},dynamicTypes:o}={}){let a=i.String?.type,c=i.Number?.type,u=i.Array?.type,f=i.Boolean?.type;He("parse",e,t,r);let l=eu(Object.keys(n));He("abbrevs=%j",l);let h=eu(Object.keys(s));for(let d=0;d<e.length;d++){let p=e[d];if(He("arg",p),p.match(/^-{2,}$/)){r.push.apply(r,e.slice(d+1)),e[d]="--";break}let g=!1;if(p.charAt(0)==="-"&&p.length>1){let y=p.indexOf("=");if(y>-1){g=!0;let O=p.slice(y+1);p=p.slice(0,y),e.splice(d,1,p,O)}let x=Ry(p,h,l,{shorthands:s});if(He("arg=%j shRes=%j",p,x),x&&(e.splice.apply(e,[d,1].concat(x)),p!==x[0])){d--;continue}p=p.replace(/^-+/,"");let S=null;for(;p.toLowerCase().indexOf("no-")===0;)S=!S,p=p.slice(3);l[p]&&(p=l[p]);let[I,R]=Oy(p,{types:n,dynamicTypes:o}),w=Array.isArray(R);w&&R.length===1&&(w=!1,R=R[0]);let D=Yi(R,u)||w&&Dr(R,u);!I&&xy(t,p)&&(Array.isArray(t[p])||(t[p]=[t[p]]),D=!0);let L,_=e[d+1];if(typeof S=="boolean"||Yi(R,f)||w&&Dr(R,f)||typeof R>"u"&&!g||_==="false"&&(R===null||w&&~R.indexOf(null))){L=!S,(_==="true"||_==="false")&&(L=JSON.parse(_),_=null,S&&(L=!L),d++),w&&_&&(~R.indexOf(_)?(L=_,d++):_==="null"&&~R.indexOf(null)?(L=null,d++):!_.match(/^-{2,}[^-]/)&&!isNaN(_)&&Dr(R,c)?(L=+_,d++):!_.match(/^-[^-]/)&&Dr(R,a)&&(L=_,d++)),D?(t[p]=t[p]||[]).push(L):t[p]=L;continue}Yi(R,a)&&(_===void 0?_="":_.match(/^-{1,2}[^-]+/)&&(_="",d--)),_&&_.match(/^-{2,}$/)&&(_=void 0,d--),L=_===void 0?!0:_,D?(t[p]=t[p]||[]).push(L):t[p]=L,d++;continue}r.push(p)}}var Cy=Symbol("singles"),VD=(e,t)=>{let r=t[Cy];r||(r=Object.keys(t).filter(i=>i.length===1).reduce((i,s)=>(i[s]=!0,i),{}),t[Cy]=r,He("shorthand singles",r));let n=e.split("").filter(i=>r[i]);return n.join("")===e?n:null};function Ry(e,...t){let{types:r={},shorthands:n={}}=t.length?t.pop():{},i=t[0]??eu(Object.keys(n)),s=t[1]??eu(Object.keys(r));if(e=e.replace(/^-+/,""),s[e]===e)return null;if(n[e])return n[e]&&!Array.isArray(n[e])&&(n[e]=n[e].split(/\s+/)),n[e];let o=VD(e,n);return o?o.map(a=>n[a]).reduce((a,c)=>a.concat(c),[]):s[e]&&!n[e]?null:(i[e]&&(e=i[e]),n[e]&&!Array.isArray(n[e])&&(n[e]=n[e].split(/\s+/)),n[e])}Fy.exports={nopt:YD,clean:_y,parse:Py,validate:Tf,resolveShort:Ry,typeDefs:HD}});var kf=P((Kr,Ly)=>{var If=Dy(),KD=Lf();Ly.exports=Kr=XD;Kr.clean=JD;Kr.typeDefs=KD;Kr.lib=If;function XD(e,t,r=process.argv,n=2){return If.nopt(r.slice(n),{types:e||{},shorthands:t||{},typeDefs:Kr.typeDefs,invalidHandler:Kr.invalidHandler})}function JD(e,t,r=Kr.typeDefs){return If.clean(e,{types:t||{},typeDefs:r,invalidHandler:Kr.invalidHandler})}});var io=P((j5,Ty)=>{var QD=Symbol("proc-log.meta");Ty.exports={META:QD,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 Nf=P((B5,ky)=>{var Iy=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}},ZD=(e,t,r)=>{try{return e[t]=Iy(r),!0}catch{return!1}};ky.exports={parse:Iy,validate:ZD}});var so=P((q5,Ny)=>{var eL=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};Ny.exports=eL});var oo=P((G5,$y)=>{var tL="2.0.0",rL=Number.MAX_SAFE_INTEGER||9007199254740991,nL=16,iL=250,sL=["major","premajor","minor","preminor","patch","prepatch","prerelease"];$y.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:nL,MAX_SAFE_BUILD_LENGTH:iL,MAX_SAFE_INTEGER:rL,RELEASE_TYPES:sL,SEMVER_SPEC_VERSION:tL,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Vi=P((Xr,My)=>{var{MAX_SAFE_COMPONENT_LENGTH:$f,MAX_SAFE_BUILD_LENGTH:oL,MAX_LENGTH:aL}=oo(),uL=so();Xr=My.exports={};var cL=Xr.re=[],lL=Xr.safeRe=[],oe=Xr.src=[],ae=Xr.t={},fL=0,Mf="[a-zA-Z0-9-]",hL=[["\\s",1],["\\d",aL],[Mf,oL]],dL=e=>{for(let[t,r]of hL)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Se=(e,t,r)=>{let n=dL(t),i=fL++;uL(e,i,t),ae[e]=i,oe[i]=t,cL[i]=new RegExp(t,r?"g":void 0),lL[i]=new RegExp(n,r?"g":void 0)};Se("NUMERICIDENTIFIER","0|[1-9]\\d*");Se("NUMERICIDENTIFIERLOOSE","\\d+");Se("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Mf}*`);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.NUMERICIDENTIFIER]}|${oe[ae.NONNUMERICIDENTIFIER]})`);Se("PRERELEASEIDENTIFIERLOOSE",`(?:${oe[ae.NUMERICIDENTIFIERLOOSE]}|${oe[ae.NONNUMERICIDENTIFIER]})`);Se("PRERELEASE",`(?:-(${oe[ae.PRERELEASEIDENTIFIER]}(?:\\.${oe[ae.PRERELEASEIDENTIFIER]})*))`);Se("PRERELEASELOOSE",`(?:-?(${oe[ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${oe[ae.PRERELEASEIDENTIFIERLOOSE]})*))`);Se("BUILDIDENTIFIER",`${Mf}+`);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,${$f}})(?:\\.(\\d{1,${$f}}))?(?:\\.(\\d{1,${$f}}))?`);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);Xr.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);Xr.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);Xr.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 tu=P((U5,jy)=>{var pL=Object.freeze({loose:!0}),mL=Object.freeze({}),gL=e=>e?typeof e!="object"?pL:e:mL;jy.exports=gL});var jf=P((W5,Gy)=>{var By=/^[0-9]+$/,qy=(e,t)=>{let r=By.test(e),n=By.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},yL=(e,t)=>qy(t,e);Gy.exports={compareIdentifiers:qy,rcompareIdentifiers:yL}});var mt=P((H5,zy)=>{var ru=so(),{MAX_LENGTH:Uy,MAX_SAFE_INTEGER:nu}=oo(),{safeRe:Wy,t:Hy}=Vi(),vL=tu(),{compareIdentifiers:Ki}=jf(),Bf=class e{constructor(t,r){if(r=vL(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>Uy)throw new TypeError(`version is longer than ${Uy} characters`);ru("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Wy[Hy.LOOSE]:Wy[Hy.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>nu||this.major<0)throw new TypeError("Invalid major version");if(this.minor>nu||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>nu||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<nu)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(ru("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)),Ki(this.major,t.major)||Ki(this.minor,t.minor)||Ki(this.patch,t.patch)}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(ru("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 Ki(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(ru("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 Ki(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),Ki(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}};zy.exports=Bf});var hi=P((z5,Vy)=>{var Yy=mt(),EL=(e,t,r=!1)=>{if(e instanceof Yy)return e;try{return new Yy(e,t)}catch(n){if(!r)return null;throw n}};Vy.exports=EL});var ao=P((Y5,Ky)=>{var AL=hi(),wL=(e,t)=>{let r=AL(e,t);return r?r.version:null};Ky.exports=wL});var iu=P((V5,Uf)=>{var Cn=kf(),{validate:bL}=Nf(),qf=class{},Gf=class{},SL=ao(),CL=(e,t,r)=>{let n=SL(r);if(!n)return!1;e[t]=n},xL=Cn.typeDefs.path.validate,OL=(e,t,r)=>typeof r!="string"?!1:xL(e,t,r);Uf.exports={...Cn.typeDefs,semver:{type:Gf,validate:CL,description:"full valid SemVer string"},Umask:{type:qf,validate:bL,description:"octal number in range 0o000..0o777 (0..511)"},url:{...Cn.typeDefs.url,description:'full url with "http://"'},path:{...Cn.typeDefs.path,validate:OL,description:"valid filesystem path"},Number:{...Cn.typeDefs.Number,description:"numeric value"},Boolean:{...Cn.typeDefs.Boolean,description:"boolean value (true or false)"},Date:{...Cn.typeDefs.Date,description:"valid Date string"}};Cn.typeDefs=Uf.exports});var Qy=P((K5,Jy)=>{var{URL:Xy}=require("node:url");Jy.exports=e=>{let t=new Xy(e),r=`${t.protocol}//${t.host}${t.pathname}`,n=new Xy(".",r);return`//${n.host}${n.pathname}`}});var Wf=P((X5,Zy)=>{var _L=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;Zy.exports=(e,t)=>e.replace(_L,(r,n,i)=>{let s=t[i]!==void 0?t[i]:`\${${i}}`;return n.length%2?r.slice((n.length+1)/2):n.slice(n.length/2)+s})});var rv=P((J5,tv)=>{var Xi=iu(),PL=Wf(),{resolve:ev}=require("node:path"),{parse:RL}=Nf(),Hf=(e,t,r,n=!1)=>{if(typeof e!="string"&&!Array.isArray(e))return e;let{platform:i,types:s,home:o,env:a}=r,c=new Set([].concat(s[t])),u=c.has(Xi.path.type),f=c.has(Xi.Boolean.type),l=u||c.has(Xi.String.type),h=c.has(Xi.Umask.type),d=c.has(Xi.Number.type),p=!n&&c.has(Array),g=c.has(Xi.Date.type);if(Array.isArray(e))return p?e.map(y=>Hf(y,t,r,!0)):e;if(e=e.trim(),p)return Hf(e.split(`
|
|
11
4
|
|
|
12
|
-
`),t,r);if(f&&!l&&e==="")return!0;if(!l&&!
|
|
5
|
+
`),t,r);if(f&&!l&&e==="")return!0;if(!l&&!u&&!d)switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}if(e=PL(e,a),g)return new Date(e);if(u&&((i==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&o?e=ev(o,e.slice(2)):e=ev(e)),h)try{return RL(e)}catch{return e}return d&&!isNaN(e)&&(e=+e),e};tv.exports=Hf});var ov=P((Q5,sv)=>{var FL=(e,t)=>!/^[/@_]/.test(e)&&typeof zf(t)=="string"&&`npm_config_${e.replace(/-/g,"_").toLowerCase()}`,zf=e=>Array.isArray(e)?e.map(t=>zf(t)).join(`
|
|
13
6
|
|
|
14
|
-
`):e==null||e===!1?"":typeof e=="object"?null:String(e),
|
|
15
|
-
`));this[Qn]=null,this[CA]=n,this.types=f,this.shorthands=r,this.defaults=l,this.npmPath=i,this.argv=o,this.env=s,this.execPath=u,this.platform=a,this.cwd=c,this.globalPrefix=null,this.localPrefix=null,this.home=null;let h=[...Qs];this.data=new Map;let d=null;for(let g of h)this.data.set(g,d=new df(d));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:g}of this.data.values())this.list.unshift(g);Object.freeze(this.list),this[lf]=!1}get loaded(){return this[lf]}get prefix(){return this[St]("global")?this.globalPrefix:this.localPrefix}find(t){if(!this.loaded)throw new Error("call config.load() before reading values");return this[_A](t)}[_A](t){let r=[...this.data.entries()];for(let n=r.length-1;n>-1;n--){let[i,{data:s}]=r[n];if(Oa(s,t))return i}return null}get(t,r){if(!this.loaded)throw new Error("call config.load() before reading values");return this[St](t,r)}[St](t,r=null){if(r!==null&&!Qs.has(r))throw new Error("invalid config location param: "+r);let{data:n}=this.data.get(r||"cli");return r===null||Oa(n,t)?n[t]:void 0}set(t,r,n="cli"){if(!this.loaded)throw new Error("call config.load() before setting values");if(!Qs.has(n))throw new Error("invalid config location param: "+n);this[ff](t);let{data:i}=this.data.get(n);i[t]=r,this.data.get(n)[Li]=null,this[Qn]=null}get flat(){if(this[Qn])return this[Qn];process.emit("time","config:load:flatten"),this[Qn]={};for(let{data:t}of this.data.values())this[CA](t,this[Qn]);return process.emit("timeEnd","config:load:flatten"),this[Qn]}delete(t,r="cli"){if(!this.loaded)throw new Error("call config.load() before deleting values");if(!Qs.has(r))throw new Error("invalid config location param: "+r);delete this.data.get(r).data[t]}async load(){if(this.loaded)throw new Error("attempting to load npm config multiple times");process.emit("time","config:load"),process.emit("time","config:load:defaults"),this.loadDefaults(),process.emit("timeEnd","config:load:defaults"),process.emit("time","config:load:builtin"),await this.loadBuiltinConfig(),process.emit("timeEnd","config:load:builtin"),process.emit("time","config:load:cli"),this.loadCLI(),process.emit("timeEnd","config:load:cli"),process.emit("time","config:load:env"),this.loadEnv(),process.emit("timeEnd","config:load:env"),process.emit("time","config:load:project"),await this.loadProjectConfig(),process.emit("timeEnd","config:load:project"),process.emit("time","config:load:user"),await this.loadUserConfig(),process.emit("timeEnd","config:load:user"),process.emit("time","config:load:global"),await this.loadGlobalConfig(),process.emit("timeEnd","config:load:global"),process.emit("time","config:load:validate"),this.validate(),process.emit("timeEnd","config:load:validate"),this[lf]=!0,process.emit("time","config:load:credentials");let t=this.get("registry"),r=this.getCredentialsByURI(t);try{this.setCredentialsByURI(t,r)}catch{}process.emit("timeEnd","config:load:credentials"),this.globalPrefix=this.get("prefix"),process.emit("time","config:load:setEnvs"),this.setEnvs(),process.emit("timeEnd","config:load:setEnvs"),process.emit("timeEnd","config:load")}loadDefaults(){this.loadGlobalPrefix(),this.loadHome(),this[Ti]({...this.defaults,prefix:this.globalPrefix},"default","default values");let{data:t}=this.data.get("default");SA(t,"metrics-registry",()=>this[St]("registry")),SA(t,"globalconfig",()=>Kn(this[St]("prefix"),"etc/npmrc"))}loadHome(){if(this.env.HOME)return this.home=this.env.HOME;this.home=Gk()}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=Ca(this.execPath):(this.globalPrefix=Ca(Ca(this.execPath)),this.env.DESTDIR&&(this.globalPrefix=Wk(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[Ti](t,"env","environment")}loadCLI(){ki.invalidHandler=(r,n,i)=>this.invalidHandler(r,n,i,"command line options","cli");let t=ki(this.types,this.shorthands,this.argv);ki.invalidHandler=null,this.parsedArgv=t.argv,delete t.argv,this[Ti](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[Li]=!0,ki.invalidHandler=(n,i,s)=>this.invalidHandler(n,i,s,r.source,t),ki.clean(r.data,this.types,this.typeDefs),ki.invalidHandler=null,r[Li]}else{let r=!0;for(let[n]of this.data.entries()){if(n==="default"||n==="builtin"||n==="cli")continue;let i=this.validate(n);r=r&&i}return r}}isDefault(t){let[r,...n]=[...Qs],i=this.data.get(r).data;return Oa(i,t)&&n.every(s=>{let o=this.data.get(s).data;return!Oa(o,t)})}invalidHandler(t,r,n,i,s){kr.warn("invalid config",t+"="+JSON.stringify(r),`set in ${i}`),this.data.get(s)[Li]=!1,Array.isArray(n)&&(n.includes(Xs.url.type)?n=Xs.url.type:n.includes(Xs.path.type)&&(n=Xs.path.type));let o=Jk(n),a=o.indexOf(Array)!==-1,u=o.filter(h=>h!==void 0&&h!==Array),f="Must be"+(u.length===1&&a?" one or more":u.length>1&&a?" one or more of:":u.length>1?" one of:":""),l=u.length===1?u[0]:u.filter(h=>h!==Array).map(h=>typeof h=="string"?h:JSON.stringify(h)).join(", ");kr.warn("invalid config",f,l)}[Ti](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"&&kr.verbose("config",`error loading ${r} config`,i);else{s.raw=t;for(let[o,a]of Object.entries(t)){let u=Xk(o,this.env),c=this.parseField(a,u);r!=="default"&&this[ff](u,r,t,[o,a]),s.data[u]=c}}}[ff](t,r,n,i){this.deprecated[t]&&kr.warn("config",t,this.deprecated[t])}parseField(t,r,n=!1){return Qk(t,r,this,n)}async[Js](t,r){process.emit("time","config:load:file:"+t),await Uk(t,"utf8").then(n=>this[Ti](bA.parse(n),r,t),n=>this[Ti](null,r,t,n)),process.emit("timeEnd","config:load:file:"+t)}loadBuiltinConfig(){return this[Js](Kn(this.npmPath,"npmrc"),"builtin")}async loadProjectConfig(){if(await this.loadLocalPrefix(),this[St]("global")===!0||this[St]("location")==="global"){this.data.get("project").source="(global mode enabled, ignored)",this.sources.set(this.data.get("project").source,"project");return}let t=Kn(this.localPrefix,".npmrc");if(t!==this[St]("userconfig"))return this[Js](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[St]("prefix","cli");if(t){this.localPrefix=t;return}let r=this[St]("workspaces","cli"),n=this[St]("global")||this[St]("location")==="global";for(let i of Mk(this.cwd)){let s=await xa(Kn(i,"node_modules")).then(a=>a.isDirectory()).catch(()=>!1),o=await xa(Kn(i,"package.json")).then(a=>a.isFile()).catch(()=>!1);if(!this.localPrefix&&(s||o)){if(this.localPrefix=i,r===!1||n)return;continue}if(this.localPrefix&&o){let a=await qk(Kn(i,"package.json")).catch(()=>!1);if(!a)continue;let u=await Bk({cwd:i,pkg:a});for(let c of u.values())if(c===this.localPrefix){await xa(Kn(this.localPrefix,".npmrc")).then(h=>h.isFile()).catch(()=>!1)&&kr.warn(`ignoring workspace config at ${this.localPrefix}/.npmrc`);let{data:l}=this.data.get("default");l.workspace=[this.localPrefix],this.localPrefix=i,kr.info(`found workspace root at ${this.localPrefix}`);return}}}this.localPrefix||(this.localPrefix=this.cwd)}loadUserConfig(){return this[Js](this[St]("userconfig"),"user")}loadGlobalConfig(){return this[Js](this[St]("globalconfig"),"global")}async save(t){if(!this.loaded)throw new Error("call config.load() before saving");if(!OA.has(t))throw new Error("invalid config location param: "+t);let r=this.data.get(t);if(r[Ii]={...r.data},r[Ni]=null,t==="user"){let o=this.get("registry"),a=this.getCredentialsByURI(o);try{this.setCredentialsByURI(o,a)}catch{}}let n=bA.stringify(r.data).trim()+`
|
|
16
|
-
`;if(!n.trim()){await Kk(r.source).catch(o=>{});return}let i=Ca(r.source);if(await $k(i),await Yk(r.source,n,"utf8"),wA===0){let o=await xa(i).catch(()=>null);o&&(o.uid!==wA||o.gid!==Hk)&&await Vk(r.source,o.uid,o.gid).catch(()=>{})}let s=t==="user"?384:438;await zk(r.source,s)}clearCredentialsByURI(t){let r=Xn(t);Xn(this.get("registry"))===r&&(this.delete("-authtoken","user"),this.delete("_authToken","user"),this.delete("_authtoken","user"),this.delete("_auth","user"),this.delete("_password","user"),this.delete("username","user")),this.delete(`${r}:_authToken`,"user"),this.delete(`${r}:_auth`,"user"),this.delete(`${r}:_password`,"user"),this.delete(`${r}:username`,"user"),this.delete(`${r}:email`,"user"),this.delete(`${r}:certfile`,"user"),this.delete(`${r}:keyfile`,"user")}setCredentialsByURI(t,{token:r,username:n,password:i,email:s,certfile:o,keyfile:a}){let u=Xn(t),c=Xn(this.get("registry"));if(c===u&&(this.delete("_password","user"),this.delete("username","user"),this.delete("_auth","user"),this.delete("_authtoken","user"),this.delete("-authtoken","user"),this.delete("_authToken","user")),u===c&&(s=s||this.get("email","user")||this.get(`${u}:email`,"user"),s&&this.set("email",s,"user")),this.delete(`${u}:always-auth`,"user"),this.delete(`${u}:email`,"user"),o&&a&&(this.set(`${u}:certfile`,o,"user"),this.set(`${u}:keyfile`,a,"user")),r)this.set(`${u}:_authToken`,r,"user"),this.delete(`${u}:_password`,"user"),this.delete(`${u}:username`,"user");else if(n||i){if(!n)throw new Error("must include username");if(!i)throw new Error("must include password");this.delete(`${u}:_authToken`,"user"),this.set(`${u}:username`,n,"user");let f=Buffer.from(i,"utf8").toString("base64");this.set(`${u}:_password`,f,"user")}else if(!o||!a)throw new Error("No credentials to set.")}getCredentialsByURI(t){let r=Xn(t),n={},i=["`_auth`, `_authToken`, `username` and `_password` must be scoped to a registry.","see `npm help npmrc` for more information."].join(" "),s=this.get(`${r}:email`)||this.get("email");s&&(n.email=s);let o=this.get(`${r}:certfile`),a=this.get(`${r}:keyfile`);o&&a&&(n.certfile=o,n.keyfile=a);let u=Xn(this.get("registry"))&&this.get("_authToken"),c=this.get(`${r}:_authToken`)||u;if(c)return c===u&&kr.warn("config",i),n.token=c,n;let f=this.get(`${r}:username`),l=this.get(`${r}:_password`);if(f&&l){n.username=f,n.password=Buffer.from(l,"base64").toString("utf8");let j=`${n.username}:${n.password}`;return n.auth=Buffer.from(j,"utf8").toString("base64"),n}let h=this.get(`${r}:_auth`);if(h){let T=Buffer.from(h,"base64").toString("utf8").split(":");return n.username=T.shift(),n.password=T.join(":"),n.auth=h,n}let d=Xn(this.get("registry"));if(r!==d)return n;let g=this.get("username"),E=this.get("_password");if(g&&E){kr.warn("config",i),n.username=g,n.password=Buffer.from(E,"base64").toString("utf8");let j=`${n.username}:${n.password}`;return n.auth=Buffer.from(j,"utf8").toString("base64"),n}let y=this.get("_auth");if(!y)return n;kr.warn("config",i);let _=Buffer.from(y,"base64").toString("utf8").split(":");return n.username=_.shift(),n.password=_.join(":"),n.auth=y,n}setEnvs(){Zk(this)}},xA=Symbol("data"),Ii=Symbol("raw"),Ni=Symbol("loadError"),Fa=Symbol("source"),Li=Symbol("valid"),df=class{constructor(t){this[xA]=Object.create(t&&t.data),this[Fa]=null,this[Ni]=null,this[Ii]=null,this[Li]=!0}get data(){return this[xA]}get valid(){return this[Li]}set source(t){if(this[Fa])throw new Error("cannot set ConfigData source more than once");this[Fa]=t}get source(){return this[Fa]}set loadError(t){if(this[Ni]||this[Ii])throw new Error("cannot set ConfigData loadError after load");this[Ni]=t}get loadError(){return this[Ni]}set raw(t){if(this[Ii]||this[Ni])throw new Error("cannot set ConfigData raw after load");this[Ii]=t}get raw(){return this[Ii]}};FA.exports=hf});var Pa=D(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.getPackageDependencies=void 0;function eT(e,t,r={withDevDependencies:!0}){let n={...e.dependencies,...r.withDevDependencies&&e.devDependencies,...r.withPeerDependencies&&e.peerDependencies};return Object.keys(t).filter(i=>!!n[i])}Ra.getPackageDependencies=eT});var PA=D(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.getTransitiveProviders=cn.getTransitiveConsumers=cn.getDependentMap=void 0;var tT=Pa(),pf=new Map;function rT(e,t=[]){return JSON.stringify({packages:e,scope:t})}function gf(e,t=[]){let r=rT(e,t);if(pf.has(r))return pf.get(r);let n=[],i=new Set,s=t.length>0?[...t]:Object.keys(e);for(;s.length>0;){let o=s.pop();if(i.has(o))continue;i.add(o);let a=e[o],u=(0,tT.getPackageDependencies)(a,e);if(u.length>0)for(let c of u)s.push(c),n.push([c,o]);else n.push([null,o])}return pf.set(r,n),n}function nT(e){let t=gf(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}cn.getDependentMap=nT;function iT(e,t,r=[]){let n=gf(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))}cn.getTransitiveConsumers=iT;function sT(e,t){let r=gf(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))}cn.getTransitiveProviders=sT});var DA=D(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.getInternalDeps=Kt.getTransitiveConsumers=Kt.getTransitiveDependents=Kt.getTransitiveProviders=Kt.getTransitiveDependencies=void 0;var Da=PA();Object.defineProperty(Kt,"getTransitiveConsumers",{enumerable:!0,get:function(){return Da.getTransitiveConsumers}});Object.defineProperty(Kt,"getTransitiveProviders",{enumerable:!0,get:function(){return Da.getTransitiveProviders}});var oT=Pa();Kt.getTransitiveDependencies=Da.getTransitiveProviders;Kt.getTransitiveDependents=Da.getTransitiveConsumers;Kt.getInternalDeps=oT.getPackageDependencies});var kA=D(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.infoFromPackageJson=void 0;function aT(e,t){return{packageJsonPath:t,...e}}ka.infoFromPackageJson=aT});var IA=D((EG,TA)=>{var mf=class{constructor(t){this.value=t,this.next=void 0}},yf=class{constructor(){this.clear()}enqueue(t){let r=new mf(t);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};TA.exports=yf});var LA=D((bG,NA)=>{"use strict";var uT=IA(),cT=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new uT,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(a,u,...c)=>{r++;let f=(async()=>a(...c))();u(f);try{await f}catch{}n()},s=(a,u,...c)=>{t.enqueue(i.bind(null,a,u,...c)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},o=(a,...u)=>new Promise(c=>{s(a,c,...u)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),o};NA.exports=cT});var $A=D((wG,MA)=>{"use strict";var jA=LA(),Ta=class extends Error{constructor(t){super(),this.value=t}},lT=async(e,t)=>t(await e),fT=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Ta(t[0]);return!1},hT=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=jA(r.concurrency),i=[...e].map(o=>[o,n(lT,o,t)]),s=jA(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(fT,o)))}catch(o){if(o instanceof Ta)return o.value;throw o}};MA.exports=hT});var UA=D((SG,vf)=>{"use strict";var BA=require("path"),Ia=require("fs"),{promisify:qA}=require("util"),dT=$A(),pT=qA(Ia.stat),gT=qA(Ia.lstat),HA={directory:"isDirectory",file:"isFile"};function WA({type:e}){if(!(e in HA))throw new Error(`Invalid type specified: ${e}`)}var GA=(e,t)=>e===void 0||t[HA[e]]();vf.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},WA(t);let r=t.allowSymlinks?pT:gT;return dT(e,async n=>{try{let i=await r(BA.resolve(t.cwd,n));return GA(t.type,i)}catch{return!1}},t)};vf.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},WA(t);let r=t.allowSymlinks?Ia.statSync:Ia.lstatSync;for(let n of e)try{let i=r(BA.resolve(t.cwd,n));if(GA(t.type,i))return n}catch{}}});var zA=D((_G,Af)=>{"use strict";var YA=require("fs"),{promisify:mT}=require("util"),yT=mT(YA.access);Af.exports=async e=>{try{return await yT(e),!0}catch{return!1}};Af.exports.sync=e=>{try{return YA.accessSync(e),!0}catch{return!1}}});var Bi=D((CG,$i)=>{"use strict";var ln=require("path"),Na=UA(),VA=zA(),Ef=Symbol("findUp.stop");$i.exports=async(e,t={})=>{let r=ln.resolve(t.cwd||""),{root:n}=ln.parse(r),i=[].concat(e),s=async o=>{if(typeof e!="function")return Na(i,o);let a=await e(o.cwd);return typeof a=="string"?Na([a],o):a};for(;;){let o=await s({...t,cwd:r});if(o===Ef)return;if(o)return ln.resolve(r,o);if(r===n)return;r=ln.dirname(r)}};$i.exports.sync=(e,t={})=>{let r=ln.resolve(t.cwd||""),{root:n}=ln.parse(r),i=[].concat(e),s=o=>{if(typeof e!="function")return Na.sync(i,o);let a=e(o.cwd);return typeof a=="string"?Na.sync([a],o):a};for(;;){let o=s({...t,cwd:r});if(o===Ef)return;if(o)return ln.resolve(r,o);if(r===n)return;r=ln.dirname(r)}};$i.exports.exists=VA;$i.exports.sync.exists=VA.sync;$i.exports.stop=Ef});var La=D(fn=>{"use strict";var KA=fn&&fn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fn,"__esModule",{value:!0});fn.getWorkspaceImplementation=fn.getWorkspaceImplementationAndLockFile=void 0;var vT=KA(Bi()),AT=KA(require("path")),XA={};function QA(e,t=XA){if(t[e])return t[e];let r=vT.default.sync(["lerna.json","rush.json","yarn.lock","pnpm-workspace.yaml","package-lock.json"],{cwd:e});if(r){switch(AT.default.basename(r)){case"lerna.json":t[e]={implementation:"lerna",lockFile:r};break;case"yarn.lock":t[e]={implementation:"yarn",lockFile:r};break;case"pnpm-workspace.yaml":t[e]={implementation:"pnpm",lockFile:r};break;case"rush.json":t[e]={implementation:"rush",lockFile:r};break;case"package-lock.json":t[e]={implementation:"npm",lockFile:r};break}return t[e]}}fn.getWorkspaceImplementationAndLockFile=QA;function ET(e,t=XA){var r;return(r=QA(e,t))===null||r===void 0?void 0:r.implementation}fn.getWorkspaceImplementation=ET});var ZA=D((OG,JA)=>{"use strict";JA.exports=(...e)=>[...new Set([].concat(...e))]});var bf=D((FG,rE)=>{"use strict";var bT=require("stream"),eE=bT.PassThrough,wT=Array.prototype.slice;rE.exports=ST;function ST(){let e=[],t=wT.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=eE(n);function a(){for(let f=0,l=arguments.length;f<l;f++)e.push(tE(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(g){function E(){g.removeListener("merge2UnpipeEnd",E),g.removeListener("end",E),s&&g.removeListener("error",y),h()}function y(F){o.emit("error",F)}if(g._readableState.endEmitted)return h();g.on("merge2UnpipeEnd",E),g.on("end",E),s&&g.on("error",y),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<f.length;g++)d(f[g]);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 tE(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=tE(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(eE(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var nE=D(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.splitWhen=qi.flatten=void 0;function _T(e){return e.reduce((t,r)=>[].concat(t,r),[])}qi.flatten=_T;function CT(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}qi.splitWhen=CT});var iE=D(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.isEnoentCodeError=void 0;function xT(e){return e.code==="ENOENT"}ja.isEnoentCodeError=xT});var sE=D(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.createDirentFromStats=void 0;var wf=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 OT(e,t){return new wf(e,t)}Ma.createDirentFromStats=OT});var cE=D(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.convertPosixPathToPattern=Ve.convertWindowsPathToPattern=Ve.convertPathToPattern=Ve.escapePosixPath=Ve.escapeWindowsPath=Ve.escape=Ve.removeLeadingDotSegment=Ve.makeAbsolute=Ve.unixify=void 0;var FT=require("os"),RT=require("path"),oE=FT.platform()==="win32",PT=2,DT=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,kT=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,TT=/^\\\\([.?])/,IT=/\\(?![!()+@[\]{}])/g;function NT(e){return e.replace(/\\/g,"/")}Ve.unixify=NT;function LT(e,t){return RT.resolve(e,t)}Ve.makeAbsolute=LT;function jT(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(PT)}return e}Ve.removeLeadingDotSegment=jT;Ve.escape=oE?Sf:_f;function Sf(e){return e.replace(kT,"\\$2")}Ve.escapeWindowsPath=Sf;function _f(e){return e.replace(DT,"\\$2")}Ve.escapePosixPath=_f;Ve.convertPathToPattern=oE?aE:uE;function aE(e){return Sf(e).replace(TT,"//$1").replace(IT,"/")}Ve.convertWindowsPathToPattern=aE;function uE(e){return _f(e)}Ve.convertPosixPathToPattern=uE});var fE=D((TG,lE)=>{lE.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 pE=D((IG,dE)=>{var MT=fE(),hE={"{":"}","(":")","[":"]"},$T=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=hE[a];if(u){var c=e.indexOf(u,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},BT=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=hE[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};dE.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(MT(t))return!0;var n=$T;return r&&r.strict===!1&&(n=BT),n(t)}});var mE=D((NG,gE)=>{"use strict";var qT=pE(),HT=require("path").posix.dirname,WT=require("os").platform()==="win32",Cf="/",GT=/\\/g,UT=/[\{\[].*[\}\]]$/,YT=/(^|[^\\])([\{\[]|\([^\)]+$)/,zT=/\\([\!\*\?\|\[\]\(\)\{\}])/g;gE.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&WT&&t.indexOf(Cf)<0&&(t=t.replace(GT,Cf)),UT.test(t)&&(t+=Cf),t+="a";do t=HT(t);while(qT(t)||YT.test(t));return t.replace(zT,"$1")}});var $a=D(Xt=>{"use strict";Xt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Xt.find=(e,t)=>e.nodes.find(r=>r.type===t);Xt.exceedsLimit=(e,t,r=1,n)=>n===!1||!Xt.isInteger(e)||!Xt.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;Xt.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)};Xt.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);Xt.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;Xt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Xt.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);Xt.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 Ba=D((jG,vE)=>{"use strict";var yE=$a();vE.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&yE.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&yE.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 EE=D((MG,AE)=>{"use strict";AE.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var RE=D(($G,FE)=>{"use strict";var bE=EE(),Jn=(e,t,r)=>{if(bE(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(bE(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(Jn.cache.hasOwnProperty(u))return Jn.cache[u].result;let c=Math.min(e,t),f=Math.max(e,t);if(Math.abs(c-f)===1){let E=e+"|"+t;return n.capture?`(${E})`:n.wrap===!1?E:`(?:${E})`}let l=OE(e)||OE(t),h={min:e,max:t,a:c,b:f},d=[],g=[];if(l&&(h.isPadded=l,h.maxLen=String(h.max).length),c<0){let E=f<0?Math.abs(f):1;g=wE(E,Math.abs(c),h,n),c=h.a=0}return f>=0&&(d=wE(c,f,h,n)),h.negatives=g,h.positives=d,h.result=VT(g,d,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&d.length+g.length>1&&(h.result=`(?:${h.result})`),Jn.cache[u]=h,h.result};function VT(e,t,r){let n=xf(e,t,"-",!1,r)||[],i=xf(t,e,"",!1,r)||[],s=xf(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function KT(e,t){let r=1,n=1,i=_E(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=_E(e,r);for(i=CE(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=CE(t+1,n)-1;return s=[...s],s.sort(JT),s}function XT(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=QT(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+=ZT(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function wE(e,t,r,n){let i=KT(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let c=i[u],f=XT(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+xE(a.count),o=c+1;continue}r.isPadded&&(l=eI(c,r,n)),f.string=l+f.pattern+xE(f.count),s.push(f),o=c+1,a=f}return s}function xf(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!SE(t,"string",a)&&s.push(r+a),n&&SE(t,"string",a)&&s.push(r+a)}return s}function QT(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function JT(e,t){return e>t?1:t>e?-1:0}function SE(e,t,r){return e.some(n=>n[t]===r)}function _E(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function CE(e,t){return e-e%Math.pow(10,t)}function xE(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function ZT(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function OE(e){return/^-?(0+)\d/.test(e)}function eI(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}}`}}Jn.cache={};Jn.clearCache=()=>Jn.cache={};FE.exports=Jn});var Rf=D((BG,LE)=>{"use strict";var tI=require("util"),DE=RE(),PE=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),rI=e=>t=>e===!0?Number(t):String(t),Of=e=>typeof e=="number"||typeof e=="string"&&e!=="",Zs=e=>Number.isInteger(+e),Ff=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},nI=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,iI=(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},Ha=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},sI=(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=>Ha(String(a),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(a=>Ha(String(a),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,t.wrap?`(${n}${o})`:o},kE=(e,t,r,n)=>{if(r)return DE(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},TE=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return DE(e,t,r)},IE=(...e)=>new RangeError("Invalid range arguments: "+tI.inspect(...e)),NE=(e,t,r)=>{if(r.strictRanges===!0)throw IE([e,t]);return[]},oI=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},aI=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw IE([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=Ff(a)||Ff(u)||Ff(c),l=f?Math.max(a.length,u.length,c.length):0,h=f===!1&&nI(e,t,n)===!1,d=n.transform||rI(h);if(n.toRegex&&r===1)return kE(Ha(e,l),Ha(t,l),!0,n);let g={negatives:[],positives:[]},E=_=>g[_<0?"negatives":"positives"].push(Math.abs(_)),y=[],F=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?E(i):y.push(iI(d(i,F),l,h)),i=o?i-r:i+r,F++;return n.toRegex===!0?r>1?sI(g,n,l):TE(y,null,{wrap:!1,...n}):y},uI=(e,t,r=1,n={})=>{if(!Zs(e)&&e.length>1||!Zs(t)&&t.length>1)return NE(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 kE(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?TE(f,null,{wrap:!1,options:n}):f},qa=(e,t,r,n={})=>{if(t==null&&Of(e))return[e];if(!Of(e)||!Of(t))return NE(e,t,n);if(typeof r=="function")return qa(e,t,1,{transform:r});if(PE(r))return qa(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Zs(r)?Zs(e)&&Zs(t)?aI(e,t,r,i):uI(e,t,Math.max(Math.abs(r),1),i):r!=null&&!PE(r)?oI(r,i):qa(e,t,1,r)};LE.exports=qa});var $E=D((qG,ME)=>{"use strict";var cI=Rf(),jE=$a(),lI=(e,t={})=>{let r=(n,i={})=>{let s=jE.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=jE.reduce(n.nodes),l=cI(...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)};ME.exports=lI});var HE=D((HG,qE)=>{"use strict";var fI=Rf(),BE=Ba(),Hi=$a(),Zn=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Hi.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Zn(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Zn(i,s,r):i+s);return Hi.flatten(n)},hI=(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(Zn(a.pop(),BE(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Zn(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let l=Hi.reduce(i.nodes);if(Hi.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=fI(...l,t);h.length===0&&(h=BE(i,t)),a.push(Zn(a.pop(),h)),i.nodes=[];return}let u=Hi.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(Zn(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(Zn(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return Hi.flatten(n(e))};qE.exports=hI});var GE=D((WG,WE)=>{"use strict";WE.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:`
|
|
17
|
-
`,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 KE=D((GG,VE)=>{"use strict";var dI=Ba(),{MAX_LENGTH:UE,CHAR_BACKSLASH:Pf,CHAR_BACKTICK:pI,CHAR_COMMA:gI,CHAR_DOT:mI,CHAR_LEFT_PARENTHESES:yI,CHAR_RIGHT_PARENTHESES:vI,CHAR_LEFT_CURLY_BRACE:AI,CHAR_RIGHT_CURLY_BRACE:EI,CHAR_LEFT_SQUARE_BRACKET:YE,CHAR_RIGHT_SQUARE_BRACKET:zE,CHAR_DOUBLE_QUOTE:bI,CHAR_SINGLE_QUOTE:wI,CHAR_NO_BREAK_SPACE:SI,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_I}=GE(),CI=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(UE,r.maxLength):UE;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++],g=E=>{if(E.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&E.type==="text"){a.value+=E.value;return}return o.nodes.push(E),E.parent=o,E.prev=a,a=E,E};for(g({type:"bos"});f<c;)if(o=s[s.length-1],h=d(),!(h===_I||h===SI)){if(h===Pf){g({type:"text",value:(t.keepEscaping?h:"")+d()});continue}if(h===zE){g({type:"text",value:"\\"+h});continue}if(h===YE){u++;let E;for(;f<c&&(E=d());){if(h+=E,E===YE){u++;continue}if(E===Pf){h+=d();continue}if(E===zE&&(u--,u===0))break}g({type:"text",value:h});continue}if(h===yI){o=g({type:"paren",nodes:[]}),s.push(o),g({type:"text",value:h});continue}if(h===vI){if(o.type!=="paren"){g({type:"text",value:h});continue}o=s.pop(),g({type:"text",value:h}),o=s[s.length-1];continue}if(h===bI||h===wI||h===pI){let E=h,y;for(t.keepQuotes!==!0&&(h="");f<c&&(y=d());){if(y===Pf){h+=y+d();continue}if(y===E){t.keepQuotes===!0&&(h+=y);break}h+=y}g({type:"text",value:h});continue}if(h===AI){l++;let y={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:l,commas:0,ranges:0,nodes:[]};o=g(y),s.push(o),g({type:"open",value:h});continue}if(h===EI){if(o.type!=="brace"){g({type:"text",value:h});continue}let E="close";o=s.pop(),o.close=!0,g({type:E,value:h}),l--,o=s[s.length-1];continue}if(h===gI&&l>0){if(o.ranges>0){o.ranges=0;let E=o.nodes.shift();o.nodes=[E,{type:"text",value:dI(o)}]}g({type:"comma",value:h}),o.commas++;continue}if(h===mI&&l>0&&o.commas===0){let E=o.nodes;if(l===0||E.length===0){g({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"){E.pop();let y=E[E.length-1];y.value+=a.value+h,a=y,o.ranges--;continue}g({type:"dot",value:h});continue}g({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(F=>{F.nodes||(F.type==="open"&&(F.isOpen=!0),F.type==="close"&&(F.isClose=!0),F.nodes||(F.type="text"),F.invalid=!0)});let E=s[s.length-1],y=E.nodes.indexOf(o);E.nodes.splice(y,1,...o.nodes)}while(s.length>0);return g({type:"eos"}),i};VE.exports=CI});var JE=D((UG,QE)=>{"use strict";var XE=Ba(),xI=$E(),OI=HE(),FI=KE(),Mt=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=Mt.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Mt.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Mt.parse=(e,t={})=>FI(e,t);Mt.stringify=(e,t={})=>XE(typeof e=="string"?Mt.parse(e,t):e,t);Mt.compile=(e,t={})=>(typeof e=="string"&&(e=Mt.parse(e,t)),xI(e,t));Mt.expand=(e,t={})=>{typeof e=="string"&&(e=Mt.parse(e,t));let r=OI(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Mt.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Mt.compile(e,t):Mt.expand(e,t);QE.exports=Mt});var eo=D((YG,n1)=>{"use strict";var RI=require("path"),gr="\\\\/",ZE=`[^${gr}]`,Tr="\\.",PI="\\+",DI="\\?",Wa="\\/",kI="(?=.)",e1="[^/]",Df=`(?:${Wa}|$)`,t1=`(?:^|${Wa})`,kf=`${Tr}{1,2}${Df}`,TI=`(?!${Tr})`,II=`(?!${t1}${kf})`,NI=`(?!${Tr}{0,1}${Df})`,LI=`(?!${kf})`,jI=`[^.${Wa}]`,MI=`${e1}*?`,r1={DOT_LITERAL:Tr,PLUS_LITERAL:PI,QMARK_LITERAL:DI,SLASH_LITERAL:Wa,ONE_CHAR:kI,QMARK:e1,END_ANCHOR:Df,DOTS_SLASH:kf,NO_DOT:TI,NO_DOTS:II,NO_DOT_SLASH:NI,NO_DOTS_SLASH:LI,QMARK_NO_DOT:jI,STAR:MI,START_ANCHOR:t1},$I={...r1,SLASH_LITERAL:`[${gr}]`,QMARK:ZE,STAR:`${ZE}*?`,DOTS_SLASH:`${Tr}{1,2}(?:[${gr}]|$)`,NO_DOT:`(?!${Tr})`,NO_DOTS:`(?!(?:^|[${gr}])${Tr}{1,2}(?:[${gr}]|$))`,NO_DOT_SLASH:`(?!${Tr}{0,1}(?:[${gr}]|$))`,NO_DOTS_SLASH:`(?!${Tr}{1,2}(?:[${gr}]|$))`,QMARK_NO_DOT:`[^.${gr}]`,START_ANCHOR:`(?:^|[${gr}])`,END_ANCHOR:`(?:[${gr}]|$)`},BI={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"};n1.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:BI,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:RI.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?$I:r1}}});var to=D(_t=>{"use strict";var qI=require("path"),HI=process.platform==="win32",{REGEX_BACKSLASH:WI,REGEX_REMOVE_BACKSLASH:GI,REGEX_SPECIAL_CHARS:UI,REGEX_SPECIAL_CHARS_GLOBAL:YI}=eo();_t.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);_t.hasRegexChars=e=>UI.test(e);_t.isRegexChar=e=>e.length===1&&_t.hasRegexChars(e);_t.escapeRegex=e=>e.replace(YI,"\\$1");_t.toPosixSlashes=e=>e.replace(WI,"/");_t.removeBackslashes=e=>e.replace(GI,t=>t==="\\"?"":t);_t.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};_t.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:HI===!0||qI.sep==="\\";_t.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?_t.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};_t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};_t.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var f1=D((VG,l1)=>{"use strict";var i1=to(),{CHAR_ASTERISK:Tf,CHAR_AT:zI,CHAR_BACKWARD_SLASH:ro,CHAR_COMMA:VI,CHAR_DOT:If,CHAR_EXCLAMATION_MARK:Nf,CHAR_FORWARD_SLASH:c1,CHAR_LEFT_CURLY_BRACE:Lf,CHAR_LEFT_PARENTHESES:jf,CHAR_LEFT_SQUARE_BRACKET:KI,CHAR_PLUS:XI,CHAR_QUESTION_MARK:s1,CHAR_RIGHT_CURLY_BRACE:QI,CHAR_RIGHT_PARENTHESES:o1,CHAR_RIGHT_SQUARE_BRACKET:JI}=eo(),a1=e=>e===c1||e===ro,u1=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},ZI=(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,g=!1,E=!1,y=!1,F=!1,_=!1,j=!1,T=!1,w=!1,P=0,O,R,L={value:"",depth:0,isGlob:!1},C=()=>c>=n,p=()=>u.charCodeAt(c+1),m=()=>(O=R,u.charCodeAt(++c));for(;c<n;){R=m();let k;if(R===ro){_=L.backslashes=!0,R=m(),R===Lf&&(F=!0);continue}if(F===!0||R===Lf){for(P++;C()!==!0&&(R=m());){if(R===ro){_=L.backslashes=!0,m();continue}if(R===Lf){P++;continue}if(F!==!0&&R===If&&(R=m())===If){if(h=L.isBrace=!0,g=L.isGlob=!0,w=!0,i===!0)continue;break}if(F!==!0&&R===VI){if(h=L.isBrace=!0,g=L.isGlob=!0,w=!0,i===!0)continue;break}if(R===QI&&(P--,P===0)){F=!1,h=L.isBrace=!0,w=!0;break}}if(i===!0)continue;break}if(R===c1){if(s.push(c),o.push(L),L={value:"",depth:0,isGlob:!1},w===!0)continue;if(O===If&&c===f+1){f+=2;continue}l=c+1;continue}if(r.noext!==!0&&(R===XI||R===zI||R===Tf||R===s1||R===Nf)===!0&&p()===jf){if(g=L.isGlob=!0,E=L.isExtglob=!0,w=!0,R===Nf&&c===f&&(T=!0),i===!0){for(;C()!==!0&&(R=m());){if(R===ro){_=L.backslashes=!0,R=m();continue}if(R===o1){g=L.isGlob=!0,w=!0;break}}continue}break}if(R===Tf){if(O===Tf&&(y=L.isGlobstar=!0),g=L.isGlob=!0,w=!0,i===!0)continue;break}if(R===s1){if(g=L.isGlob=!0,w=!0,i===!0)continue;break}if(R===KI){for(;C()!==!0&&(k=m());){if(k===ro){_=L.backslashes=!0,m();continue}if(k===JI){d=L.isBracket=!0,g=L.isGlob=!0,w=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&R===Nf&&c===f){j=L.negated=!0,f++;continue}if(r.noparen!==!0&&R===jf){if(g=L.isGlob=!0,i===!0){for(;C()!==!0&&(R=m());){if(R===jf){_=L.backslashes=!0,R=m();continue}if(R===o1){w=!0;break}}continue}break}if(g===!0){if(w=!0,i===!0)continue;break}}r.noext===!0&&(E=!1,g=!1);let v=u,S="",A="";f>0&&(S=u.slice(0,f),u=u.slice(f),l-=f),v&&g===!0&&l>0?(v=u.slice(0,l),A=u.slice(l)):g===!0?(v="",A=u):v=u,v&&v!==""&&v!=="/"&&v!==u&&a1(v.charCodeAt(v.length-1))&&(v=v.slice(0,-1)),r.unescape===!0&&(A&&(A=i1.removeBackslashes(A)),v&&_===!0&&(v=i1.removeBackslashes(v)));let b={prefix:S,input:e,start:f,base:v,glob:A,isBrace:h,isBracket:d,isGlob:g,isExtglob:E,isGlobstar:y,negated:j,negatedExtglob:T};if(r.tokens===!0&&(b.maxDepth=0,a1(R)||o.push(L),b.tokens=o),r.parts===!0||r.tokens===!0){let k;for(let N=0;N<s.length;N++){let M=k?k+1:f,G=s[N],V=e.slice(M,G);r.tokens&&(N===0&&f!==0?(o[N].isPrefix=!0,o[N].value=S):o[N].value=V,u1(o[N]),b.maxDepth+=o[N].depth),(N!==0||V!=="")&&a.push(V),k=G}if(k&&k+1<e.length){let N=e.slice(k+1);a.push(N),r.tokens&&(o[o.length-1].value=N,u1(o[o.length-1]),b.maxDepth+=o[o.length-1].depth)}b.slashes=s,b.parts=a}return b};l1.exports=ZI});var p1=D((KG,d1)=>{"use strict";var Ga=eo(),$t=to(),{MAX_LENGTH:Ua,POSIX_REGEX_SOURCE:eN,REGEX_NON_SPECIAL_CHARS:tN,REGEX_SPECIAL_CHARS_BACKREF:rN,REPLACEMENTS:h1}=Ga,nN=(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=>$t.escapeRegex(i)).join("..")}return r},Wi=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Mf=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=h1[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Ua,r.maxLength):Ua,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=$t.isWindows(t),c=Ga.globChars(u),f=Ga.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:h,SLASH_LITERAL:d,ONE_CHAR:g,DOTS_SLASH:E,NO_DOT:y,NO_DOT_SLASH:F,NO_DOTS_SLASH:_,QMARK:j,QMARK_NO_DOT:T,STAR:w,START_ANCHOR:P}=c,O=W=>`(${a}(?:(?!${P}${W.dot?E:l}).)*?)`,R=r.dot?"":y,L=r.dot?j:T,C=r.bash===!0?O(r):w;r.capture&&(C=`(${C})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let p={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=$t.removePrefix(e,p),i=e.length;let m=[],v=[],S=[],A=s,b,k=()=>p.index===i-1,N=p.peek=(W=1)=>e[p.index+W],M=p.advance=()=>e[++p.index]||"",G=()=>e.slice(p.index+1),V=(W="",re=0)=>{p.consumed+=W,p.index+=re},X=W=>{p.output+=W.output!=null?W.output:W.value,V(W.value)},me=()=>{let W=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)M(),p.start++,W++;return W%2===0?!1:(p.negated=!0,p.start++,!0)},H=W=>{p[W]++,S.push(W)},U=W=>{p[W]--,S.pop()},q=W=>{if(A.type==="globstar"){let re=p.braces>0&&(W.type==="comma"||W.type==="brace"),z=W.extglob===!0||m.length&&(W.type==="pipe"||W.type==="paren");W.type!=="slash"&&W.type!=="paren"&&!re&&!z&&(p.output=p.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=C,p.output+=A.output)}if(m.length&&W.type!=="paren"&&(m[m.length-1].inner+=W.value),(W.value||W.output)&&X(W),A&&A.type==="text"&&W.type==="text"){A.value+=W.value,A.output=(A.output||"")+W.value;return}W.prev=A,o.push(W),A=W},Z=(W,re)=>{let z={...f[re],conditions:1,inner:""};z.prev=A,z.parens=p.parens,z.output=p.output;let ue=(r.capture?"(":"")+z.open;H("parens"),q({type:W,value:re,output:p.output?"":g}),q({type:"paren",extglob:!0,value:M(),output:ue}),m.push(z)},ee=W=>{let re=W.close+(r.capture?")":""),z;if(W.type==="negate"){let ue=C;if(W.inner&&W.inner.length>1&&W.inner.includes("/")&&(ue=O(r)),(ue!==C||k()||/^\)+$/.test(G()))&&(re=W.close=`)$))${ue}`),W.inner.includes("*")&&(z=G())&&/^\.[^\\/.]+$/.test(z)){let ye=Mf(z,{...t,fastpaths:!1}).output;re=W.close=`)${ye})${ue})`}W.prev.type==="bos"&&(p.negatedExtglob=!0)}q({type:"paren",extglob:!0,value:b,output:re}),U("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let W=!1,re=e.replace(rN,(z,ue,ye,Fe,I,$)=>Fe==="\\"?(W=!0,z):Fe==="?"?ue?ue+Fe+(I?j.repeat(I.length):""):$===0?L+(I?j.repeat(I.length):""):j.repeat(ye.length):Fe==="."?l.repeat(ye.length):Fe==="*"?ue?ue+Fe+(I?C:""):C:ue?z:`\\${z}`);return W===!0&&(r.unescape===!0?re=re.replace(/\\/g,""):re=re.replace(/\\+/g,z=>z.length%2===0?"\\\\":z?"\\":"")),re===e&&r.contains===!0?(p.output=e,p):(p.output=$t.wrapOutput(re,p,t),p)}for(;!k();){if(b=M(),b==="\0")continue;if(b==="\\"){let z=N();if(z==="/"&&r.bash!==!0||z==="."||z===";")continue;if(!z){b+="\\",q({type:"text",value:b});continue}let ue=/^\\+/.exec(G()),ye=0;if(ue&&ue[0].length>2&&(ye=ue[0].length,p.index+=ye,ye%2!==0&&(b+="\\")),r.unescape===!0?b=M():b+=M(),p.brackets===0){q({type:"text",value:b});continue}}if(p.brackets>0&&(b!=="]"||A.value==="["||A.value==="[^")){if(r.posix!==!1&&b===":"){let z=A.value.slice(1);if(z.includes("[")&&(A.posix=!0,z.includes(":"))){let ue=A.value.lastIndexOf("["),ye=A.value.slice(0,ue),Fe=A.value.slice(ue+2),I=eN[Fe];if(I){A.value=ye+I,p.backtrack=!0,M(),!s.output&&o.indexOf(A)===1&&(s.output=g);continue}}}(b==="["&&N()!==":"||b==="-"&&N()==="]")&&(b=`\\${b}`),b==="]"&&(A.value==="["||A.value==="[^")&&(b=`\\${b}`),r.posix===!0&&b==="!"&&A.value==="["&&(b="^"),A.value+=b,X({value:b});continue}if(p.quotes===1&&b!=='"'){b=$t.escapeRegex(b),A.value+=b,X({value:b});continue}if(b==='"'){p.quotes=p.quotes===1?0:1,r.keepQuotes===!0&&q({type:"text",value:b});continue}if(b==="("){H("parens"),q({type:"paren",value:b});continue}if(b===")"){if(p.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Wi("opening","("));let z=m[m.length-1];if(z&&p.parens===z.parens+1){ee(m.pop());continue}q({type:"paren",value:b,output:p.parens?")":"\\)"}),U("parens");continue}if(b==="["){if(r.nobracket===!0||!G().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Wi("closing","]"));b=`\\${b}`}else H("brackets");q({type:"bracket",value:b});continue}if(b==="]"){if(r.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){q({type:"text",value:b,output:`\\${b}`});continue}if(p.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Wi("opening","["));q({type:"text",value:b,output:`\\${b}`});continue}U("brackets");let z=A.value.slice(1);if(A.posix!==!0&&z[0]==="^"&&!z.includes("/")&&(b=`/${b}`),A.value+=b,X({value:b}),r.literalBrackets===!1||$t.hasRegexChars(z))continue;let ue=$t.escapeRegex(A.value);if(p.output=p.output.slice(0,-A.value.length),r.literalBrackets===!0){p.output+=ue,A.value=ue;continue}A.value=`(${a}${ue}|${A.value})`,p.output+=A.value;continue}if(b==="{"&&r.nobrace!==!0){H("braces");let z={type:"brace",value:b,output:"(",outputIndex:p.output.length,tokensIndex:p.tokens.length};v.push(z),q(z);continue}if(b==="}"){let z=v[v.length-1];if(r.nobrace===!0||!z){q({type:"text",value:b,output:b});continue}let ue=")";if(z.dots===!0){let ye=o.slice(),Fe=[];for(let I=ye.length-1;I>=0&&(o.pop(),ye[I].type!=="brace");I--)ye[I].type!=="dots"&&Fe.unshift(ye[I].value);ue=nN(Fe,r),p.backtrack=!0}if(z.comma!==!0&&z.dots!==!0){let ye=p.output.slice(0,z.outputIndex),Fe=p.tokens.slice(z.tokensIndex);z.value=z.output="\\{",b=ue="\\}",p.output=ye;for(let I of Fe)p.output+=I.output||I.value}q({type:"brace",value:b,output:ue}),U("braces"),v.pop();continue}if(b==="|"){m.length>0&&m[m.length-1].conditions++,q({type:"text",value:b});continue}if(b===","){let z=b,ue=v[v.length-1];ue&&S[S.length-1]==="braces"&&(ue.comma=!0,z="|"),q({type:"comma",value:b,output:z});continue}if(b==="/"){if(A.type==="dot"&&p.index===p.start+1){p.start=p.index+1,p.consumed="",p.output="",o.pop(),A=s;continue}q({type:"slash",value:b,output:d});continue}if(b==="."){if(p.braces>0&&A.type==="dot"){A.value==="."&&(A.output=l);let z=v[v.length-1];A.type="dots",A.output+=b,A.value+=b,z.dots=!0;continue}if(p.braces+p.parens===0&&A.type!=="bos"&&A.type!=="slash"){q({type:"text",value:b,output:l});continue}q({type:"dot",value:b,output:l});continue}if(b==="?"){if(!(A&&A.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){Z("qmark",b);continue}if(A&&A.type==="paren"){let ue=N(),ye=b;if(ue==="<"&&!$t.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(ue)||ue==="<"&&!/<([!=]|\w+>)/.test(G()))&&(ye=`\\${b}`),q({type:"text",value:b,output:ye});continue}if(r.dot!==!0&&(A.type==="slash"||A.type==="bos")){q({type:"qmark",value:b,output:T});continue}q({type:"qmark",value:b,output:j});continue}if(b==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){Z("negate",b);continue}if(r.nonegate!==!0&&p.index===0){me();continue}}if(b==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){Z("plus",b);continue}if(A&&A.value==="("||r.regex===!1){q({type:"plus",value:b,output:h});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||p.parens>0){q({type:"plus",value:b});continue}q({type:"plus",value:h});continue}if(b==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){q({type:"at",extglob:!0,value:b,output:""});continue}q({type:"text",value:b});continue}if(b!=="*"){(b==="$"||b==="^")&&(b=`\\${b}`);let z=tN.exec(G());z&&(b+=z[0],p.index+=z[0].length),q({type:"text",value:b});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=b,A.output=C,p.backtrack=!0,p.globstar=!0,V(b);continue}let W=G();if(r.noextglob!==!0&&/^\([^?]/.test(W)){Z("star",b);continue}if(A.type==="star"){if(r.noglobstar===!0){V(b);continue}let z=A.prev,ue=z.prev,ye=z.type==="slash"||z.type==="bos",Fe=ue&&(ue.type==="star"||ue.type==="globstar");if(r.bash===!0&&(!ye||W[0]&&W[0]!=="/")){q({type:"star",value:b,output:""});continue}let I=p.braces>0&&(z.type==="comma"||z.type==="brace"),$=m.length&&(z.type==="pipe"||z.type==="paren");if(!ye&&z.type!=="paren"&&!I&&!$){q({type:"star",value:b,output:""});continue}for(;W.slice(0,3)==="/**";){let K=e[p.index+4];if(K&&K!=="/")break;W=W.slice(3),V("/**",3)}if(z.type==="bos"&&k()){A.type="globstar",A.value+=b,A.output=O(r),p.output=A.output,p.globstar=!0,V(b);continue}if(z.type==="slash"&&z.prev.type!=="bos"&&!Fe&&k()){p.output=p.output.slice(0,-(z.output+A.output).length),z.output=`(?:${z.output}`,A.type="globstar",A.output=O(r)+(r.strictSlashes?")":"|$)"),A.value+=b,p.globstar=!0,p.output+=z.output+A.output,V(b);continue}if(z.type==="slash"&&z.prev.type!=="bos"&&W[0]==="/"){let K=W[1]!==void 0?"|$":"";p.output=p.output.slice(0,-(z.output+A.output).length),z.output=`(?:${z.output}`,A.type="globstar",A.output=`${O(r)}${d}|${d}${K})`,A.value+=b,p.output+=z.output+A.output,p.globstar=!0,V(b+M()),q({type:"slash",value:"/",output:""});continue}if(z.type==="bos"&&W[0]==="/"){A.type="globstar",A.value+=b,A.output=`(?:^|${d}|${O(r)}${d})`,p.output=A.output,p.globstar=!0,V(b+M()),q({type:"slash",value:"/",output:""});continue}p.output=p.output.slice(0,-A.output.length),A.type="globstar",A.output=O(r),A.value+=b,p.output+=A.output,p.globstar=!0,V(b);continue}let re={type:"star",value:b,output:C};if(r.bash===!0){re.output=".*?",(A.type==="bos"||A.type==="slash")&&(re.output=R+re.output),q(re);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&r.regex===!0){re.output=b,q(re);continue}(p.index===p.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(p.output+=F,A.output+=F):r.dot===!0?(p.output+=_,A.output+=_):(p.output+=R,A.output+=R),N()!=="*"&&(p.output+=g,A.output+=g)),q(re)}for(;p.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing","]"));p.output=$t.escapeLast(p.output,"["),U("brackets")}for(;p.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing",")"));p.output=$t.escapeLast(p.output,"("),U("parens")}for(;p.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing","}"));p.output=$t.escapeLast(p.output,"{"),U("braces")}if(r.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&q({type:"maybe_slash",value:"",output:`${d}?`}),p.backtrack===!0){p.output="";for(let W of p.tokens)p.output+=W.output!=null?W.output:W.value,W.suffix&&(p.output+=W.suffix)}return p};Mf.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Ua,r.maxLength):Ua,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=h1[e]||e;let s=$t.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:g}=Ga.globChars(s),E=r.dot?l:f,y=r.dot?h:f,F=r.capture?"":"?:",_={negated:!1,prefix:""},j=r.bash===!0?".*?":d;r.capture&&(j=`(${j})`);let T=R=>R.noglobstar===!0?j:`(${F}(?:(?!${g}${R.dot?c:o}).)*?)`,w=R=>{switch(R){case"*":return`${E}${u}${j}`;case".*":return`${o}${u}${j}`;case"*.*":return`${E}${j}${o}${u}${j}`;case"*/*":return`${E}${j}${a}${u}${y}${j}`;case"**":return E+T(r);case"**/*":return`(?:${E}${T(r)}${a})?${y}${u}${j}`;case"**/*.*":return`(?:${E}${T(r)}${a})?${y}${j}${o}${u}${j}`;case"**/.*":return`(?:${E}${T(r)}${a})?${o}${u}${j}`;default:{let L=/^(.*?)\.(\w+)$/.exec(R);if(!L)return;let C=w(L[1]);return C?C+o+L[2]:void 0}}},P=$t.removePrefix(e,_),O=w(P);return O&&r.strictSlashes!==!0&&(O+=`${a}?`),O};d1.exports=Mf});var m1=D((XG,g1)=>{"use strict";var iN=require("path"),sN=f1(),$f=p1(),Bf=to(),oN=eo(),aN=e=>e&&typeof e=="object"&&!Array.isArray(e),Ye=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(h=>Ye(h,t,r));return h=>{for(let d of f){let g=d(h);if(g)return g}return!1}}let n=aN(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=Bf.isWindows(t),o=n?Ye.compileRe(e,t):Ye.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=Ye(i.ignore,f,r)}let c=(f,l=!1)=>{let{isMatch:h,match:d,output:g}=Ye.test(f,o,t,{glob:e,posix:s}),E={glob:e,state:a,regex:o,posix:s,input:f,output:g,match:d,isMatch:h};return typeof i.onResult=="function"&&i.onResult(E),h===!1?(E.isMatch=!1,l?E:!1):u(f)?(typeof i.onIgnore=="function"&&i.onIgnore(E),E.isMatch=!1,l?E:!1):(typeof i.onMatch=="function"&&i.onMatch(E),l?E:!0)};return r&&(c.state=a),c};Ye.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?Bf.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=Ye.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};Ye.matchBase=(e,t,r,n=Bf.isWindows(r))=>(t instanceof RegExp?t:Ye.makeRe(t,r)).test(iN.basename(e));Ye.isMatch=(e,t,r)=>Ye(t,r)(e);Ye.parse=(e,t)=>Array.isArray(e)?e.map(r=>Ye.parse(r,t)):$f(e,{...t,fastpaths:!1});Ye.scan=(e,t)=>sN(e,t);Ye.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=Ye.toRegex(a,t);return n===!0&&(u.state=e),u};Ye.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=$f.fastpaths(e,t)),i.output||(i=$f(e,t)),Ye.compileRe(i,t,r,n)};Ye.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/$^/}};Ye.constants=oN;g1.exports=Ye});var v1=D((QG,y1)=>{"use strict";y1.exports=m1()});var no=D((JG,w1)=>{"use strict";var E1=require("util"),b1=JE(),mr=v1(),qf=to(),A1=e=>e===""||e==="./",qe=(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=mr(String(t[f]),{...r,onResult:a},!0),h=l.state.negated||l.state.negatedExtglob;h&&o++;for(let d of e){let g=l(d,!0);(h?!g.isMatch:g.isMatch)&&(h?n.add(g.output):(n.delete(g.output),i.add(g.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};qe.match=qe;qe.matcher=(e,t)=>mr(e,t);qe.isMatch=(e,t,r)=>mr(t,r)(e);qe.any=qe.isMatch;qe.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(qe(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};qe.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${E1.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>qe.contains(e,n,r));if(typeof t=="string"){if(A1(e)||A1(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return qe.isMatch(e,t,{...r,contains:!0})};qe.matchKeys=(e,t,r)=>{if(!qf.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=qe(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};qe.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=mr(String(i),r);if(n.some(o=>s(o)))return!0}return!1};qe.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=mr(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};qe.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${E1.inspect(e)}"`);return[].concat(t).every(n=>mr(n,r)(e))};qe.capture=(e,t,r)=>{let n=qf.isWindows(r),s=mr.makeRe(String(e),{...r,capture:!0}).exec(n?qf.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};qe.makeRe=(...e)=>mr.makeRe(...e);qe.scan=(...e)=>mr.scan(...e);qe.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of b1(String(n),t))r.push(mr.parse(i,t));return r};qe.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:b1(e,t)};qe.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return qe.braces(e,{...t,expand:!0})};w1.exports=qe});var P1=D(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});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 uN=require("path"),cN=mE(),Hf=no(),S1="**",lN="\\",fN=/[*?]|^!/,hN=/\[[^[]*]/,dN=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,pN=/[!*+?@]\([^(]*\)/,gN=/,|\.\./,mN=/(?!^)\/{2,}/g;function _1(e,t={}){return!C1(e,t)}Ee.isStaticPattern=_1;function C1(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(lN)||fN.test(e)||hN.test(e)||dN.test(e)||t.extglob!==!1&&pN.test(e)||t.braceExpansion!==!1&&yN(e))}Ee.isDynamicPattern=C1;function yN(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 gN.test(n)}function vN(e){return Ya(e)?e.slice(1):e}Ee.convertToPositivePattern=vN;function AN(e){return"!"+e}Ee.convertToNegativePattern=AN;function Ya(e){return e.startsWith("!")&&e[1]!=="("}Ee.isNegativePattern=Ya;function x1(e){return!Ya(e)}Ee.isPositivePattern=x1;function EN(e){return e.filter(Ya)}Ee.getNegativePatterns=EN;function bN(e){return e.filter(x1)}Ee.getPositivePatterns=bN;function wN(e){return e.filter(t=>!Wf(t))}Ee.getPatternsInsideCurrentDirectory=wN;function SN(e){return e.filter(Wf)}Ee.getPatternsOutsideCurrentDirectory=SN;function Wf(e){return e.startsWith("..")||e.startsWith("./..")}Ee.isPatternRelatedToParentDirectory=Wf;function _N(e){return cN(e,{flipBackslashes:!1})}Ee.getBaseDirectory=_N;function CN(e){return e.includes(S1)}Ee.hasGlobStar=CN;function O1(e){return e.endsWith("/"+S1)}Ee.endsWithSlashGlobStar=O1;function xN(e){let t=uN.basename(e);return O1(e)||_1(t)}Ee.isAffectDepthOfReadingPattern=xN;function ON(e){return e.reduce((t,r)=>t.concat(F1(r)),[])}Ee.expandPatternsWithBraceExpansion=ON;function F1(e){let t=Hf.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}Ee.expandBraceExpansion=F1;function FN(e,t){let{parts:r}=Hf.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=FN;function R1(e,t){return Hf.makeRe(e,t)}Ee.makeRe=R1;function RN(e,t){return e.map(r=>R1(r,t))}Ee.convertPatternsToRe=RN;function PN(e,t){return t.some(r=>r.test(e))}Ee.matchAny=PN;function DN(e){return e.replace(mN,"/")}Ee.removeDuplicateSlashes=DN});var k1=D(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.merge=void 0;var kN=bf();function TN(e){let t=kN(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>D1(e)),t.once("end",()=>D1(e)),t}za.merge=TN;function D1(e){e.forEach(t=>t.emit("close"))}});var T1=D(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.isEmpty=Gi.isString=void 0;function IN(e){return typeof e=="string"}Gi.isString=IN;function NN(e){return e===""}Gi.isEmpty=NN});var Ir=D(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.string=ot.stream=ot.pattern=ot.path=ot.fs=ot.errno=ot.array=void 0;var LN=nE();ot.array=LN;var jN=iE();ot.errno=jN;var MN=sE();ot.fs=MN;var $N=cE();ot.path=$N;var BN=P1();ot.pattern=BN;var qN=k1();ot.stream=qN;var HN=T1();ot.string=HN});var j1=D(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 cr=Ir();function WN(e,t){let r=I1(e,t),n=I1(t.ignore,t),i=N1(r),s=L1(r,n),o=i.filter(f=>cr.pattern.isStaticPattern(f,t)),a=i.filter(f=>cr.pattern.isDynamicPattern(f,t)),u=Gf(o,s,!1),c=Gf(a,s,!0);return u.concat(c)}at.generate=WN;function I1(e,t){let r=e;return t.braceExpansion&&(r=cr.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>cr.pattern.removeDuplicateSlashes(n))}function Gf(e,t,r){let n=[],i=cr.pattern.getPatternsOutsideCurrentDirectory(e),s=cr.pattern.getPatternsInsideCurrentDirectory(e),o=Uf(i),a=Uf(s);return n.push(...Yf(o,t,r)),"."in a?n.push(zf(".",s,t,r)):n.push(...Yf(a,t,r)),n}at.convertPatternsToTasks=Gf;function N1(e){return cr.pattern.getPositivePatterns(e)}at.getPositivePatterns=N1;function L1(e,t){return cr.pattern.getNegativePatterns(e).concat(t).map(cr.pattern.convertToPositivePattern)}at.getNegativePatternsAsPositive=L1;function Uf(e){let t={};return e.reduce((r,n)=>{let i=cr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}at.groupPatternsByBaseDirectory=Uf;function Yf(e,t,r){return Object.keys(e).map(n=>zf(n,e[n],t,r))}at.convertPatternGroupsToTasks=Yf;function zf(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(cr.pattern.convertToNegativePattern))}}at.convertPatternGroupToTask=zf});var $1=D(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.read=void 0;function GN(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){M1(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Vf(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){M1(r,s);return}Vf(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Vf(r,o)})})}Va.read=GN;function M1(e,t){e(t)}function Vf(e,t){e(null,t)}});var B1=D(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.read=void 0;function UN(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}}Ka.read=UN});var q1=D(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.createFileSystemAdapter=hn.FILE_SYSTEM_ADAPTER=void 0;var Xa=require("fs");hn.FILE_SYSTEM_ADAPTER={lstat:Xa.lstat,stat:Xa.stat,lstatSync:Xa.lstatSync,statSync:Xa.statSync};function YN(e){return e===void 0?hn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},hn.FILE_SYSTEM_ADAPTER),e)}hn.createFileSystemAdapter=YN});var H1=D(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});var zN=q1(),Kf=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=zN.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}};Xf.default=Kf});var ei=D(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.statSync=dn.stat=dn.Settings=void 0;var W1=$1(),VN=B1(),Qf=H1();dn.Settings=Qf.default;function KN(e,t,r){if(typeof t=="function"){W1.read(e,Jf(),t);return}W1.read(e,Jf(t),r)}dn.stat=KN;function XN(e,t){let r=Jf(t);return VN.read(e,r)}dn.statSync=XN;function Jf(e={}){return e instanceof Qf.default?e:new Qf.default(e)}});var Y1=D((cU,U1)=>{var G1;U1.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(G1||(G1=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var V1=D((lU,z1)=>{z1.exports=JN;var QN=Y1();function JN(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?QN(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 Zf=D(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Qa=process.versions.node.split(".");if(Qa[0]===void 0||Qa[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var K1=Number.parseInt(Qa[0],10),ZN=Number.parseInt(Qa[1],10),X1=10,eL=10,tL=K1>X1,rL=K1===X1&&ZN>=eL;Ja.IS_SUPPORT_READDIR_WITH_FILE_TYPES=tL||rL});var Q1=D(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.createDirentFromStats=void 0;var eh=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 nL(e,t){return new eh(e,t)}Za.createDirentFromStats=nL});var th=D(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.fs=void 0;var iL=Q1();eu.fs=iL});var rh=D(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.joinPathSegments=void 0;function sL(e,t,r){return e.endsWith(r)?e+t:e+r+t}tu.joinPathSegments=sL});var nb=D(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.readdir=pn.readdirWithFileTypes=pn.read=void 0;var oL=ei(),J1=V1(),aL=Zf(),Z1=th(),eb=rh();function uL(e,t,r){if(!t.stats&&aL.IS_SUPPORT_READDIR_WITH_FILE_TYPES){tb(e,t,r);return}rb(e,t,r)}pn.read=uL;function tb(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){ru(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:eb.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){nh(r,s);return}let o=s.map(a=>cL(a,t));J1(o,(a,u)=>{if(a!==null){ru(r,a);return}nh(r,u)})})}pn.readdirWithFileTypes=tb;function cL(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=Z1.fs.createDirentFromStats(e.name,i),r(null,e)})}}function rb(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){ru(r,n);return}let s=i.map(o=>{let a=eb.joinPathSegments(e,o,t.pathSegmentSeparator);return u=>{oL.stat(a,t.fsStatSettings,(c,f)=>{if(c!==null){u(c);return}let l={name:o,path:a,dirent:Z1.fs.createDirentFromStats(o,f)};t.stats&&(l.stats=f),u(null,l)})}});J1(s,(o,a)=>{if(o!==null){ru(r,o);return}nh(r,a)})})}pn.readdir=rb;function ru(e,t){e(t)}function nh(e,t){e(null,t)}});var ub=D(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.readdir=gn.readdirWithFileTypes=gn.read=void 0;var lL=ei(),fL=Zf(),ib=th(),sb=rh();function hL(e,t){return!t.stats&&fL.IS_SUPPORT_READDIR_WITH_FILE_TYPES?ob(e,t):ab(e,t)}gn.read=hL;function ob(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:sb.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=ib.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}gn.readdirWithFileTypes=ob;function ab(e,t){return t.fs.readdirSync(e).map(n=>{let i=sb.joinPathSegments(e,n,t.pathSegmentSeparator),s=lL.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:ib.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}gn.readdir=ab});var cb=D(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.createFileSystemAdapter=mn.FILE_SYSTEM_ADAPTER=void 0;var Ui=require("fs");mn.FILE_SYSTEM_ADAPTER={lstat:Ui.lstat,stat:Ui.stat,lstatSync:Ui.lstatSync,statSync:Ui.statSync,readdir:Ui.readdir,readdirSync:Ui.readdirSync};function dL(e){return e===void 0?mn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},mn.FILE_SYSTEM_ADAPTER),e)}mn.createFileSystemAdapter=dL});var lb=D(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var pL=require("path"),gL=ei(),mL=cb(),ih=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=mL.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,pL.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new gL.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};sh.default=ih});var nu=D(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.Settings=yn.scandirSync=yn.scandir=void 0;var fb=nb(),yL=ub(),oh=lb();yn.Settings=oh.default;function vL(e,t,r){if(typeof t=="function"){fb.read(e,ah(),t);return}fb.read(e,ah(t),r)}yn.scandir=vL;function AL(e,t){let r=ah(t);return yL.read(e,r)}yn.scandirSync=AL;function ah(e={}){return e instanceof oh.default?e:new oh.default(e)}});var db=D((EU,hb)=>{"use strict";function EL(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}}hb.exports=EL});var gb=D((bU,uh)=>{"use strict";var bL=db();function pb(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=bL(wL),i=null,s=null,o=0,a=null,u={push:E,drain:Qt,saturated:Qt,pause:f,paused:!1,get concurrency(){return r},set concurrency(w){if(!(w>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=w,!u.paused)for(;i&&o<r;)o++,F()},running:c,resume:d,idle:g,length:l,getQueue:h,unshift:y,empty:Qt,kill:_,killAndDrain:j,error:T};return u;function c(){return o}function f(){u.paused=!0}function l(){for(var w=i,P=0;w;)w=w.next,P++;return P}function h(){for(var w=i,P=[];w;)P.push(w.value),w=w.next;return P}function d(){if(u.paused){if(u.paused=!1,i===null){o++,F();return}for(;i&&o<r;)o++,F()}}function g(){return o===0&&u.length()===0}function E(w,P){var O=n.get();O.context=e,O.release=F,O.value=w,O.callback=P||Qt,O.errorHandler=a,o>=r||u.paused?s?(s.next=O,s=O):(i=O,s=O,u.saturated()):(o++,t.call(e,O.value,O.worked))}function y(w,P){var O=n.get();O.context=e,O.release=F,O.value=w,O.callback=P||Qt,O.errorHandler=a,o>=r||u.paused?i?(O.next=i,i=O):(i=O,s=O,u.saturated()):(o++,t.call(e,O.value,O.worked))}function F(w){w&&n.release(w);var P=i;P&&o<=r?u.paused?o--:(s===i&&(s=null),i=P.next,P.next=null,t.call(e,P.value,P.worked),s===null&&u.empty()):--o===0&&u.drain()}function _(){i=null,s=null,u.drain=Qt}function j(){i=null,s=null,u.drain(),u.drain=Qt}function T(w){a=w}}function Qt(){}function wL(){this.value=null,this.callback=Qt,this.next=null,this.release=Qt,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=Qt,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function SL(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=pb(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(g,E){if(g){d(g);return}h(E)})});return l.catch(Qt),l}function u(f){var l=new Promise(function(h,d){o(f,function(g,E){if(g){d(g);return}h(E)})});return l.catch(Qt),l}function c(){if(i.idle())return new Promise(function(h){h()});var f=i.drain,l=new Promise(function(h){i.drain=function(){f(),h()}});return l}}uh.exports=pb;uh.exports.promise=SL});var iu=D(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.joinPathSegments=yr.replacePathSegmentSeparator=yr.isAppliedFilter=yr.isFatalError=void 0;function _L(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}yr.isFatalError=_L;function CL(e,t){return e===null||e(t)}yr.isAppliedFilter=CL;function xL(e,t){return e.split(/[/\\]/).join(t)}yr.replacePathSegmentSeparator=xL;function OL(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}yr.joinPathSegments=OL});var fh=D(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});var FL=iu(),ch=class{constructor(t,r){this._root=t,this._settings=r,this._root=FL.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};lh.default=ch});var ph=D(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var RL=require("events"),PL=nu(),DL=gb(),su=iu(),kL=fh(),hh=class extends kL.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=PL.scandir,this._emitter=new RL.EventEmitter,this._queue=DL(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||!su.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=su.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),su.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&su.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};dh.default=hh});var mb=D(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var TL=ph(),gh=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new TL.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{IL(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{NL(t,this._storage)}),this._reader.read()}};mh.default=gh;function IL(e,t){e(t)}function NL(e,t){e(null,t)}});var yb=D(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var LL=require("stream"),jL=ph(),yh=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new jL.default(this._root,this._settings),this._stream=new LL.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}};vh.default=yh});var vb=D(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var ML=nu(),ou=iu(),$L=fh(),Ah=class extends $L.default{constructor(){super(...arguments),this._scandir=ML.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(ou.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=ou.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),ou.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&ou.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Eh.default=Ah});var Ab=D(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var BL=vb(),bh=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new BL.default(this._root,this._settings)}read(){return this._reader.read()}};wh.default=bh});var Eb=D(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});var qL=require("path"),HL=nu(),Sh=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,qL.sep),this.fsScandirSettings=new HL.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}};_h.default=Sh});var uu=D(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.Settings=vr.walkStream=vr.walkSync=vr.walk=void 0;var bb=mb(),WL=yb(),GL=Ab(),Ch=Eb();vr.Settings=Ch.default;function UL(e,t,r){if(typeof t=="function"){new bb.default(e,au()).read(t);return}new bb.default(e,au(t)).read(r)}vr.walk=UL;function YL(e,t){let r=au(t);return new GL.default(e,r).read()}vr.walkSync=YL;function zL(e,t){let r=au(t);return new WL.default(e,r).read()}vr.walkStream=zL;function au(e={}){return e instanceof Ch.default?e:new Ch.default(e)}});var cu=D(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});var VL=require("path"),KL=ei(),wb=Ir(),xh=class{constructor(t){this._settings=t,this._fsStatSettings=new KL.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return VL.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:wb.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!wb.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Oh.default=xh});var Ph=D(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});var XL=require("stream"),QL=ei(),JL=uu(),ZL=cu(),Fh=class extends ZL.default{constructor(){super(...arguments),this._walkStream=JL.walkStream,this._stat=QL.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new XL.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))})}};Rh.default=Fh});var Sb=D(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});var e2=uu(),t2=cu(),r2=Ph(),Dh=class extends t2.default{constructor(){super(...arguments),this._walkAsync=e2.walk,this._readerStream=new r2.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))})}};kh.default=Dh});var _b=D(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var io=Ir(),Th=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 io.pattern.getPatternParts(t,this._micromatchOptions).map(n=>io.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:io.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return io.array.splitWhen(t,r=>r.dynamic&&io.pattern.hasGlobStar(r.pattern))}};Ih.default=Th});var Cb=D(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});var n2=_b(),Nh=class extends n2.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}};Lh.default=Nh});var xb=D(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});var lu=Ir(),i2=Cb(),jh=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 i2.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(lu.pattern.isAffectDepthOfReadingPattern);return lu.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=lu.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!lu.pattern.matchAny(t,r)}};Mh.default=jh});var Ob=D(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});var ti=Ir(),$h=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=ti.pattern.convertPatternsToRe(t,this._micromatchOptions),i=ti.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return s=>this._filter(s,n,i)}_filter(t,r,n){let i=ti.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(i,n))return!1;let s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(i,n,s);return this._settings.unique&&o&&this._createIndexRecord(i),o}_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()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=ti.path.makeAbsolute(this._settings.cwd,t);return ti.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=ti.pattern.matchAny(t,r);return!i&&n?ti.pattern.matchAny(t+"/",r):i}};Bh.default=$h});var Fb=D(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});var s2=Ir(),qh=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return s2.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Hh.default=qh});var Pb=D(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var Rb=Ir(),Wh=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Rb.path.makeAbsolute(this._settings.cwd,r),r=Rb.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Gh.default=Wh});var fu=D(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});var o2=require("path"),a2=xb(),u2=Ob(),c2=Fb(),l2=Pb(),Uh=class{constructor(t){this._settings=t,this.errorFilter=new c2.default(this._settings),this.entryFilter=new u2.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new a2.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new l2.default(this._settings)}_getRootDirectory(t){return o2.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}}};Yh.default=Uh});var Db=D(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});var f2=Sb(),h2=fu(),zh=class extends h2.default{constructor(){super(...arguments),this._reader=new f2.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)}};Vh.default=zh});var kb=D(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});var d2=require("stream"),p2=Ph(),g2=fu(),Kh=class extends g2.default{constructor(){super(...arguments),this._reader=new p2.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new d2.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)}};Xh.default=Kh});var Tb=D(Jh=>{"use strict";Object.defineProperty(Jh,"__esModule",{value:!0});var m2=ei(),y2=uu(),v2=cu(),Qh=class extends v2.default{constructor(){super(...arguments),this._walkSync=y2.walkSync,this._statSync=m2.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)}};Jh.default=Qh});var Ib=D(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var A2=Tb(),E2=fu(),Zh=class extends E2.default{constructor(){super(...arguments),this._reader=new A2.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)}};ed.default=Zh});var Nb=D(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Yi=require("fs"),b2=require("os"),w2=Math.max(b2.cpus().length,1);zi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Yi.lstat,lstatSync:Yi.lstatSync,stat:Yi.stat,statSync:Yi.statSync,readdir:Yi.readdir,readdirSync:Yi.readdirSync};var td=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,w2),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({},zi.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};zi.default=td});var sd=D((YU,jb)=>{"use strict";var Lb=j1(),S2=Db(),_2=kb(),C2=Ib(),rd=Nb(),Jt=Ir();async function nd(e,t){lr(e);let r=id(e,S2.default,t),n=await Promise.all(r);return Jt.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(c,f){lr(c);let l=id(c,C2.default,f);return Jt.array.flatten(l)}e.sync=t;function r(c,f){lr(c);let l=id(c,_2.default,f);return Jt.stream.merge(l)}e.stream=r;function n(c,f){lr(c);let l=[].concat(c),h=new rd.default(f);return Lb.generate(l,h)}e.generateTasks=n;function i(c,f){lr(c);let l=new rd.default(f);return Jt.pattern.isDynamicPattern(c,l)}e.isDynamicPattern=i;function s(c){return lr(c),Jt.path.escape(c)}e.escapePath=s;function o(c){return lr(c),Jt.path.convertPathToPattern(c)}e.convertPathToPattern=o;let a;(function(c){function f(h){return lr(h),Jt.path.escapePosixPath(h)}c.escapePath=f;function l(h){return lr(h),Jt.path.convertPosixPathToPattern(h)}c.convertPathToPattern=l})(a=e.posix||(e.posix={}));let u;(function(c){function f(h){return lr(h),Jt.path.escapeWindowsPath(h)}c.escapePath=f;function l(h){return lr(h),Jt.path.convertWindowsPathToPattern(h)}c.convertPathToPattern=l})(u=e.win32||(e.win32={}))})(nd||(nd={}));function id(e,t,r){let n=[].concat(e),i=new rd.default(r),s=Lb.generate(n,i),o=new t(i);return s.map(o.read,o)}function lr(e){if(![].concat(e).every(n=>Jt.string.isString(n)&&!Jt.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}jb.exports=nd});var $b=D(ri=>{"use strict";var{promisify:x2}=require("util"),Mb=require("fs");async function od(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await x2(Mb[e])(r))[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}function ad(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return Mb[e](r)[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}ri.isFile=od.bind(null,"stat","isFile");ri.isDirectory=od.bind(null,"stat","isDirectory");ri.isSymlink=od.bind(null,"lstat","isSymbolicLink");ri.isFileSync=ad.bind(null,"statSync","isFile");ri.isDirectorySync=ad.bind(null,"statSync","isDirectory");ri.isSymlinkSync=ad.bind(null,"lstatSync","isSymbolicLink")});var Gb=D((VU,ud)=>{"use strict";var ni=require("path"),Bb=$b(),qb=e=>e.length>1?`{${e.join(",")}}`:e[0],Hb=(e,t)=>{let r=e[0]==="!"?e.slice(1):e;return ni.isAbsolute(r)?r:ni.join(t,r)},O2=(e,t)=>ni.extname(e)?`**/${e}`:`**/${e}.${qb(t)}`,Wb=(e,t)=>{if(t.files&&!Array.isArray(t.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``);if(t.extensions&&!Array.isArray(t.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``);return t.files&&t.extensions?t.files.map(r=>ni.posix.join(e,O2(r,t.extensions))):t.files?t.files.map(r=>ni.posix.join(e,`**/${r}`)):t.extensions?[ni.posix.join(e,`**/*.${qb(t.extensions)}`)]:[ni.posix.join(e,"**")]};ud.exports=async(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=await Promise.all([].concat(e).map(async n=>await Bb.isDirectory(Hb(n,t.cwd))?Wb(n,t):n));return[].concat.apply([],r)};ud.exports.sync=(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=[].concat(e).map(n=>Bb.isDirectorySync(Hb(n,t.cwd))?Wb(n,t):n);return[].concat.apply([],r)}});var Zb=D((KU,Jb)=>{function Ub(e){return Array.isArray(e)?e:[e]}var fd="",Yb=" ",cd="\\",F2=/^\s+$/,R2=/(?:[^\\]|^)\\$/,P2=/^\\!/,D2=/^\\#/,k2=/\r?\n/g,T2=/^\.*\/|^\.+$/,ld="/",Kb="node-ignore";typeof Symbol<"u"&&(Kb=Symbol.for("node-ignore"));var zb=Kb,I2=(e,t,r)=>Object.defineProperty(e,t,{value:r}),N2=/([0-z])-([0-z])/g,Xb=()=>!1,L2=e=>e.replace(N2,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:fd),j2=e=>{let{length:t}=e;return e.slice(0,t-t%2)},M2=[[/^\uFEFF/,()=>fd],[/\\?\s+$/,e=>e.indexOf("\\")===0?Yb:fd],[/\\\s/g,()=>Yb],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>cd],[/\\\\/g,()=>cd],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,i)=>t===cd?`\\[${r}${j2(n)}${i}`:i==="]"&&n.length%2===0?`[${L2(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Vb=Object.create(null),$2=(e,t)=>{let r=Vb[e];return r||(r=M2.reduce((n,i)=>n.replace(i[0],i[1].bind(e)),e),Vb[e]=r),t?new RegExp(r,"i"):new RegExp(r)},pd=e=>typeof e=="string",B2=e=>e&&pd(e)&&!F2.test(e)&&!R2.test(e)&&e.indexOf("#")!==0,q2=e=>e.split(k2),hd=class{constructor(t,r,n,i){this.origin=t,this.pattern=r,this.negative=n,this.regex=i}},H2=(e,t)=>{let r=e,n=!1;e.indexOf("!")===0&&(n=!0,e=e.substr(1)),e=e.replace(P2,"!").replace(D2,"#");let i=$2(e,t);return new hd(r,e,n,i)},W2=(e,t)=>{throw new t(e)},Nr=(e,t,r)=>pd(e)?e?Nr.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),Qb=e=>T2.test(e);Nr.isNotRelative=Qb;Nr.convert=e=>e;var dd=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:n=!1}={}){I2(this,zb,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[zb]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(B2(t)){let r=H2(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,Ub(pd(t)?q2(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,r){let n=!1,i=!1;return this._rules.forEach(s=>{let{negative:o}=s;if(i===o&&n!==i||o&&!n&&!i&&!r)return;s.regex.test(t)&&(n=!o,i=o)}),{ignored:n,unignored:i}}_test(t,r,n,i){let s=t&&Nr.convert(t);return Nr(s,t,this._allowRelativePaths?Xb:W2),this._t(s,r,n,i)}_t(t,r,n,i){if(t in r)return r[t];if(i||(i=t.split(ld)),i.pop(),!i.length)return r[t]=this._testOne(t,n);let s=this._t(i.join(ld)+ld,r,n,i);return r[t]=s.ignored?s:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return Ub(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},hu=e=>new dd(e),G2=e=>Nr(e&&Nr.convert(e),e,Xb);hu.isPathValid=G2;hu.default=hu;Jb.exports=hu;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");Nr.convert=e;let t=/^[a-z]:\//i;Nr.isNotRelative=r=>t.test(r)||Qb(r)}});var tw=D((XU,ew)=>{"use strict";ew.exports=e=>{let t=/^\\\\\?\\/.test(e),r=/[^\u0000-\u0080]+/.test(e);return t||r?e:e.replace(/\\/g,"/")}});var uw=D((QU,gd)=>{"use strict";var{promisify:U2}=require("util"),rw=require("fs"),Lr=require("path"),nw=sd(),Y2=Zb(),so=tw(),iw=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],z2=U2(rw.readFile),V2=e=>t=>t.startsWith("!")?"!"+Lr.posix.join(e,t.slice(1)):Lr.posix.join(e,t),K2=(e,t)=>{let r=so(Lr.relative(t.cwd,Lr.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter(n=>!n.startsWith("#")).map(V2(r))},sw=e=>{let t=Y2();for(let r of e)t.add(K2(r.content,{cwd:r.cwd,fileName:r.filePath}));return t},X2=(e,t)=>{if(e=so(e),Lr.isAbsolute(t)){if(so(t).startsWith(e))return t;throw new Error(`Path ${t} is not in cwd ${e}`)}return Lr.join(e,t)},ow=(e,t)=>r=>e.ignores(so(Lr.relative(t,X2(t,r.path||r)))),Q2=async(e,t)=>{let r=Lr.join(t,e),n=await z2(r,"utf8");return{cwd:t,filePath:r,content:n}},J2=(e,t)=>{let r=Lr.join(t,e),n=rw.readFileSync(r,"utf8");return{cwd:t,filePath:r,content:n}},aw=({ignore:e=[],cwd:t=so(process.cwd())}={})=>({ignore:e,cwd:t});gd.exports=async e=>{e=aw(e);let t=await nw("**/.gitignore",{ignore:iw.concat(e.ignore),cwd:e.cwd}),r=await Promise.all(t.map(i=>Q2(i,e.cwd))),n=sw(r);return ow(n,e.cwd)};gd.exports.sync=e=>{e=aw(e);let r=nw.sync("**/.gitignore",{ignore:iw.concat(e.ignore),cwd:e.cwd}).map(i=>J2(i,e.cwd)),n=sw(r);return ow(n,e.cwd)}});var lw=D((JU,cw)=>{"use strict";var{Transform:Z2}=require("stream"),du=class extends Z2{constructor(){super({objectMode:!0})}},md=class extends du{constructor(t){super(),this._filter=t}_transform(t,r,n){this._filter(t)&&this.push(t),n()}},yd=class extends du{constructor(){super(),this._pushed=new Set}_transform(t,r,n){this._pushed.has(t)||(this.push(t),this._pushed.add(t)),n()}};cw.exports={FilterStream:md,UniqueStream:yd}});var gw=D((ZU,ii)=>{"use strict";var hw=require("fs"),pu=ZA(),ej=bf(),gu=sd(),mu=Gb(),vd=uw(),{FilterStream:tj,UniqueStream:rj}=lw(),dw=()=>!1,fw=e=>e[0]==="!",nj=e=>{if(!e.every(t=>typeof t=="string"))throw new TypeError("Patterns must be a string or an array of strings")},ij=(e={})=>{if(!e.cwd)return;let t;try{t=hw.statSync(e.cwd)}catch{return}if(!t.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},sj=e=>e.stats instanceof hw.Stats?e.path:e,yu=(e,t)=>{e=pu([].concat(e)),nj(e),ij(t);let r=[];t={ignore:[],expandDirectories:!0,...t};for(let[n,i]of e.entries()){if(fw(i))continue;let s=e.slice(n).filter(a=>fw(a)).map(a=>a.slice(1)),o={...t,ignore:t.ignore.concat(s)};r.push({pattern:i,options:o})}return r},oj=(e,t)=>{let r={};return e.options.cwd&&(r.cwd=e.options.cwd),Array.isArray(e.options.expandDirectories)?r={...r,files:e.options.expandDirectories}:typeof e.options.expandDirectories=="object"&&(r={...r,...e.options.expandDirectories}),t(e.pattern,r)},Ad=(e,t)=>e.options.expandDirectories?oj(e,t):[e.pattern],pw=e=>e&&e.gitignore?vd.sync({cwd:e.cwd,ignore:e.ignore}):dw,Ed=e=>t=>{let{options:r}=e;return r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories&&(r.ignore=mu.sync(r.ignore)),{pattern:t,options:r}};ii.exports=async(e,t)=>{let r=yu(e,t),n=async()=>t&&t.gitignore?vd({cwd:t.cwd,ignore:t.ignore}):dw,i=async()=>{let u=await Promise.all(r.map(async c=>{let f=await Ad(c,mu);return Promise.all(f.map(Ed(c)))}));return pu(...u)},[s,o]=await Promise.all([n(),i()]),a=await Promise.all(o.map(u=>gu(u.pattern,u.options)));return pu(...a).filter(u=>!s(sj(u)))};ii.exports.sync=(e,t)=>{let r=yu(e,t),n=[];for(let o of r){let a=Ad(o,mu.sync).map(Ed(o));n.push(...a)}let i=pw(t),s=[];for(let o of n)s=pu(s,gu.sync(o.pattern,o.options));return s.filter(o=>!i(o))};ii.exports.stream=(e,t)=>{let r=yu(e,t),n=[];for(let a of r){let u=Ad(a,mu.sync).map(Ed(a));n.push(...u)}let i=pw(t),s=new tj(a=>!i(a)),o=new rj;return ej(n.map(a=>gu.stream(a.pattern,a.options))).pipe(s).pipe(o)};ii.exports.generateGlobTasks=yu;ii.exports.hasMagic=(e,t)=>[].concat(e).some(r=>gu.isDynamicPattern(r,t));ii.exports.gitignore=vd});var Au=D(Vi=>{"use strict";var mw=Vi&&Vi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.getPackagePaths=void 0;var vu=mw(require("path")),aj=mw(gw()),oo={};function uj(e,t,r){if(oo[e])return oo[e];let n=aj.default.sync(t.map(i=>vu.default.join(i,"package.json").replace(/\\/g,"/")),{cwd:e,absolute:!0,ignore:["**/node_modules/**","**/__fixtures__/**"],stats:!1}).map(i=>vu.default.dirname(i));return vu.default.sep==="/"?oo[e]=n:oo[e]=n.map(i=>i.replace(/\//g,vu.default.sep)),oo[e]}Vi.getPackagePaths=uj});var ao=D(Ki=>{"use strict";var yw=Ki&&Ki.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ki,"__esModule",{value:!0});Ki.getWorkspacePackageInfo=void 0;var cj=yw(require("path")),lj=yw(require("fs"));function fj(e){return e?e.reduce((t,r)=>{let n,i=cj.default.join(r,"package.json");try{n=JSON.parse(lj.default.readFileSync(i,"utf-8"))}catch{return t}return[...t,{name:n.name,path:r,packageJson:{...n,packageJsonPath:i}}]},[]):[]}Ki.getWorkspacePackageInfo=fj});var bd=D(vn=>{"use strict";var vw=vn&&vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vn,"__esModule",{value:!0});vn.getWorkspaceInfoFromWorkspaceRoot=vn.getPackageJsonWorkspaceRoot=void 0;var hj=vw(require("fs")),Aw=vw(require("path")),dj=La(),pj=Au(),gj=ao();function mj(e){var t;let r=(t=(0,dj.getWorkspaceImplementationAndLockFile)(e))===null||t===void 0?void 0:t.lockFile;return r?Aw.default.dirname(r):e}vn.getPackageJsonWorkspaceRoot=mj;function yj(e){let t=Aw.default.join(e,"package.json");try{return JSON.parse(hj.default.readFileSync(t,"utf-8"))}catch{throw new Error("Could not load package.json from workspaces root")}}function vj(e){let{workspaces:t}=e;if(t&&Array.isArray(t))return t;if(!t||!t.packages)throw new Error("Could not find a workspaces object in package.json");return t.packages}function Aj(e){try{let t=yj(e),r=vj(t),n=(0,pj.getPackagePaths)(e,r);return(0,gj.getWorkspacePackageInfo)(n)}catch{return[]}}vn.getWorkspaceInfoFromWorkspaceRoot=Aj});var Eu=D(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.getYarnWorkspaces=Xi.getYarnWorkspaceRoot=void 0;var Ew=bd();function bw(e){let t=(0,Ew.getPackageJsonWorkspaceRoot)(e);if(!t)throw new Error("Could not find yarn workspaces root");return t}Xi.getYarnWorkspaceRoot=bw;function Ej(e){let t=bw(e);return(0,Ew.getWorkspaceInfoFromWorkspaceRoot)(t)}Xi.getYarnWorkspaces=Ej});var Qi=D((i7,si)=>{"use strict";function ww(e){return typeof e>"u"||e===null}function bj(e){return typeof e=="object"&&e!==null}function wj(e){return Array.isArray(e)?e:ww(e)?[]:[e]}function Sj(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 _j(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function Cj(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}si.exports.isNothing=ww;si.exports.isObject=bj;si.exports.toArray=wj;si.exports.repeat=_j;si.exports.isNegativeZero=Cj;si.exports.extend=Sj});var Ji=D((s7,_w)=>{"use strict";function Sw(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+=`
|
|
7
|
+
`):e==null||e===!1?"":typeof e=="object"?null:String(e),nv=(e,t)=>!Array.isArray(t)||!Array.isArray(e)?e===t:DL(e,t),DL=(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},iv=(e,t,r)=>{let n=zf(r),i=FL(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 c in i){let{deprecated:u,envExport:f=!0}=n[c]||{};u||f===!1||(nv(r[c],i[c])?nv(s[c],i[c])||iv(t,c,i[c]):a.has(c)&&!o.has(c)||iv(t,c,i[c]))}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_execpath=e.npmBin,t.NODE=t.npm_node_execpath=e.execPath};sv.exports=LL});var uv=P((Z5,av)=>{"use strict";var Yf=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}};av.exports={ErrInvalidAuth:Yf}});var fv=P((eV,lv)=>{var TL=iu(),cv=e=>{if(!e||typeof e!="function"&&typeof e!="object")return e;if(Array.isArray(e))return e.map(t=>cv(t));for(let{type:t,description:r}of Object.values(TL))if(t===e)return r||t;return e};lv.exports=e=>[].concat(cv(e)).filter(t=>t!==void 0)});var Kf=P((tV,mv)=>{"use strict";var IL=Symbol.for("indent"),kL=Symbol.for("newline"),NL=`
|
|
8
|
+
`,$L=" ",ML=/^\uFEFF/,jL=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,BL=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,hv=/^Unexpected token '?(.)'?(,)? /i,qL=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return`0x${t.length%2?"0":""}${t}`},dv=e=>String(e).replace(ML,""),Vf=(e,t,r=0)=>({message:`${e} while parsing ${t}`,position:r}),GL=(e,t,r=20)=>{let n=e.message;if(!t)return Vf(n,"empty string");let i=n.match(hv),s=n.match(/ position\s+(\d+)/i);i&&(n=n.replace(hv,`Unexpected token ${JSON.stringify(i[1])} (${qL(i[1])})$2 `));let o;if(s?o=+s[1]:n.match(/^Unexpected end of JSON.*/i)&&(o=t.length-1),o==null)return Vf(n,`'${t.slice(0,r*2)}'`);let a=o<=r?0:o-r,c=o+r>=t.length?t.length:o+r,u=`${a?"...":""}${t.slice(a,c)}${c===t.length?"":"..."}`;return Vf(n,`${t===u?"":"near "}${JSON.stringify(u)}`,o)},su=class extends SyntaxError{constructor(t,r,n,i){let s=GL(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}},pv=(e,t)=>{let r=JSON.parse(e,t);if(r&&typeof r=="object"){let n=e.match(BL)||e.match(jL)||[null,"",""];r[kL]=n[1]??NL,r[IL]=n[2]??$L}return r},ou=(e,t,r)=>{let n=dv(e);try{return pv(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 su(i,n,r,ou)}};mv.exports=ou;ou.JSONParseError=su;ou.noExceptions=(e,t)=>{try{return pv(dv(e),t)}catch{}}});var vv=P((rV,yv)=>{var Xf=new Set(["dependencies","optionalDependencies","devDependencies","peerDependencies"]),UL=e=>{for(let t of Xf)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},gv=({content:e,originalContent:t})=>{let r=UL({...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 Xf)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};gv.knownKeys=Xf;yv.exports=gv});var Av=P((nV,Ev)=>{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}}};Ev.exports=WL});var bv=P((iV,wv)=>{var HL=({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]}};wv.exports=HL});var au=P((sV,Sv)=>{var zL=hi(),YL=(e,t)=>{let r=zL(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};Sv.exports=YL});var lu=P(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.LRUCache=void 0;var Ji=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,xv=new Set,Jf=typeof process=="object"&&process?process:{},Ov=(e,t,r,n)=>{typeof Jf.emitWarning=="function"?Jf.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},uu=globalThis.AbortController,Cv=globalThis.AbortSignal;if(typeof uu>"u"){Cv=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},uu=class{constructor(){t()}signal=new Cv;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=Jf.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,Ov("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 VL=e=>!xv.has(e),uV=Symbol("type"),xn=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),_v=e=>xn(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Qi:null:null,Qi=class extends Array{constructor(t){super(t),this.fill(0)}},Qf=class e{heap;length;static#e=!1;static create(t){let r=_v(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]}},Zf=class e{#e;#r;#t;#n;#o;#h;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#l;#a;#u;#s;#y;#v;#p;#d;#S;#g;#C;#x;#A;#w;#b;#m;static unsafeExposeInternals(t){return{starts:t.#x,ttls:t.#A,sizes:t.#C,keyMap:t.#a,keyList:t.#u,valList:t.#s,next:t.#y,prev:t.#v,get head(){return t.#p},get tail(){return t.#d},free:t.#S,isBackgroundFetch:r=>t.#f(r),backgroundFetch:(r,n,i,s)=>t.#M(r,n,i,s),moveToTail:r=>t.#B(r),indexes:r=>t.#_(r),rindexes:r=>t.#P(r),isStale:r=>t.#E(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#l}get size(){return this.#c}get fetchMethod(){return this.#o}get memoMethod(){return this.#h}get dispose(){return this.#t}get disposeAfter(){return this.#n}constructor(t){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,disposeAfter:f,noDisposeOnSet:l,noUpdateTTL:h,maxSize:d=0,maxEntrySize:p=0,sizeCalculation:g,fetchMethod:y,memoMethod:x,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:I,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:w,ignoreFetchAbort:D}=t;if(r!==0&&!xn(r))throw new TypeError("max option must be a nonnegative integer");let L=r?_v(r):Array;if(!L)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=d,this.maxEntrySize=p||this.#r,this.sizeCalculation=g,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(x!==void 0&&typeof x!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#h=x,y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=y,this.#b=!!y,this.#a=new Map,this.#u=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#y=new L(r),this.#v=new L(r),this.#p=0,this.#d=0,this.#S=Qf.create(r),this.#c=0,this.#l=0,typeof u=="function"&&(this.#t=u),typeof f=="function"?(this.#n=f,this.#g=[]):(this.#n=void 0,this.#g=void 0),this.#w=!!this.#t,this.#m=!!this.#n,this.noDisposeOnSet=!!l,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!R,this.allowStaleOnFetchAbort=!!w,this.ignoreFetchAbort=!!D,this.maxEntrySize!==0){if(this.#r!==0&&!xn(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!xn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#F()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!I,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=xn(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!xn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R()}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 _="LRU_CACHE_UNBOUNDED";VL(_)&&(xv.add(_),Ov("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",_,e))}}getRemainingTTL(t){return this.#a.has(t)?1/0:0}#R(){let t=new Qi(this.#e),r=new Qi(this.#e);this.#A=t,this.#x=r,this.#L=(s,o,a=Ji.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let c=setTimeout(()=>{this.#E(s)&&this.#D(this.#u[s],"expire")},o+1);c.unref&&c.unref()}},this.#O=s=>{r[s]=t[s]!==0?Ji.now():0},this.#i=(s,o)=>{if(t[o]){let a=t[o],c=r[o];if(!a||!c)return;s.ttl=a,s.start=c,s.now=n||i();let u=s.now-c;s.remainingTTL=a-u}};let n=0,i=()=>{let s=Ji.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.#a.get(s);if(o===void 0)return 0;let a=t[o],c=r[o];if(!a||!c)return 1/0;let u=(n||i())-c;return a-u},this.#E=s=>{let o=r[s],a=t[s];return!!a&&!!o&&(n||i())-o>a}}#O=()=>{};#i=()=>{};#L=()=>{};#E=()=>!1;#F(){let t=new Qi(this.#e);this.#l=0,this.#C=t,this.#T=r=>{this.#l-=t[r],t[r]=0},this.#k=(r,n,i,s)=>{if(this.#f(n))return 0;if(!xn(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!xn(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.#I=(r,n,i)=>{if(t[r]=n,this.#r){let s=this.#r-t[r];for(;this.#l>s;)this.#$(!0)}this.#l+=t[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#l)}}#T=t=>{};#I=(t,r,n)=>{};#k=(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#_({allowStale:t=this.allowStale}={}){if(this.#c)for(let r=this.#d;!(!this.#N(r)||((t||!this.#E(r))&&(yield r),r===this.#p));)r=this.#v[r]}*#P({allowStale:t=this.allowStale}={}){if(this.#c)for(let r=this.#p;!(!this.#N(r)||((t||!this.#E(r))&&(yield r),r===this.#d));)r=this.#y[r]}#N(t){return t!==void 0&&this.#a.get(this.#u[t])===t}*entries(){for(let t of this.#_())this.#s[t]!==void 0&&this.#u[t]!==void 0&&!this.#f(this.#s[t])&&(yield[this.#u[t],this.#s[t]])}*rentries(){for(let t of this.#P())this.#s[t]!==void 0&&this.#u[t]!==void 0&&!this.#f(this.#s[t])&&(yield[this.#u[t],this.#s[t]])}*keys(){for(let t of this.#_()){let r=this.#u[t];r!==void 0&&!this.#f(this.#s[t])&&(yield r)}}*rkeys(){for(let t of this.#P()){let r=this.#u[t];r!==void 0&&!this.#f(this.#s[t])&&(yield r)}}*values(){for(let t of this.#_())this.#s[t]!==void 0&&!this.#f(this.#s[t])&&(yield this.#s[t])}*rvalues(){for(let t of this.#P())this.#s[t]!==void 0&&!this.#f(this.#s[t])&&(yield this.#s[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let n of this.#_()){let i=this.#s[n],s=this.#f(i)?i.__staleWhileFetching:i;if(s!==void 0&&t(s,this.#u[n],this))return this.get(this.#u[n],r)}}forEach(t,r=this){for(let n of this.#_()){let i=this.#s[n],s=this.#f(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#u[n],this)}}rforEach(t,r=this){for(let n of this.#P()){let i=this.#s[n],s=this.#f(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#u[n],this)}}purgeStale(){let t=!1;for(let r of this.#P({allowStale:!0}))this.#E(r)&&(this.#D(this.#u[r],"expire"),t=!0);return t}info(t){let r=this.#a.get(t);if(r===void 0)return;let n=this.#s[r],i=this.#f(n)?n.__staleWhileFetching:n;if(i===void 0)return;let s={value:i};if(this.#A&&this.#x){let o=this.#A[r],a=this.#x[r];if(o&&a){let c=o-(Ji.now()-a);s.ttl=c,s.start=Date.now()}}return this.#C&&(s.size=this.#C[r]),s}dump(){let t=[];for(let r of this.#_({allowStale:!0})){let n=this.#u[r],i=this.#s[r],s=this.#f(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let o={value:s};if(this.#A&&this.#x){o.ttl=this.#A[r];let a=Ji.now()-this.#x[r];o.start=Math.floor(Date.now()-a)}this.#C&&(o.size=this.#C[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=Ji.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:c}=n,{noUpdateTTL:u=this.noUpdateTTL}=n,f=this.#k(t,r,n.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.#D(t,"set"),this;let l=this.#c===0?void 0:this.#a.get(t);if(l===void 0)l=this.#c===0?this.#d:this.#S.length!==0?this.#S.pop():this.#c===this.#e?this.#$(!1):this.#c,this.#u[l]=t,this.#s[l]=r,this.#a.set(t,l),this.#y[this.#d]=l,this.#v[l]=this.#d,this.#d=l,this.#c++,this.#I(l,f,c),c&&(c.set="add"),u=!1;else{this.#B(l);let h=this.#s[l];if(r!==h){if(this.#b&&this.#f(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=h;d!==void 0&&!o&&(this.#w&&this.#t?.(d,t,"set"),this.#m&&this.#g?.push([d,t,"set"]))}else o||(this.#w&&this.#t?.(h,t,"set"),this.#m&&this.#g?.push([h,t,"set"]));if(this.#T(l),this.#I(l,f,c),this.#s[l]=r,c){c.set="replace";let d=h&&this.#f(h)?h.__staleWhileFetching:h;d!==void 0&&(c.oldValue=d)}}else c&&(c.set="update")}if(i!==0&&!this.#A&&this.#R(),this.#A&&(u||this.#L(l,i,s),c&&this.#i(c,l)),!o&&this.#m&&this.#g){let h=this.#g,d;for(;d=h?.shift();)this.#n?.(...d)}return this}pop(){try{for(;this.#c;){let t=this.#s[this.#p];if(this.#$(!0),this.#f(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#m&&this.#g){let t=this.#g,r;for(;r=t?.shift();)this.#n?.(...r)}}}#$(t){let r=this.#p,n=this.#u[r],i=this.#s[r];return this.#b&&this.#f(i)?i.__abortController.abort(new Error("evicted")):(this.#w||this.#m)&&(this.#w&&this.#t?.(i,n,"evict"),this.#m&&this.#g?.push([i,n,"evict"])),this.#T(r),t&&(this.#u[r]=void 0,this.#s[r]=void 0,this.#S.push(r)),this.#c===1?(this.#p=this.#d=0,this.#S.length=0):this.#p=this.#y[r],this.#a.delete(n),this.#c--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#a.get(t);if(s!==void 0){let o=this.#s[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#E(s))i&&(i.has="stale",this.#i(i,s));else return n&&this.#O(s),i&&(i.has="hit",this.#i(i,s)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=this.#a.get(t);if(i===void 0||!n&&this.#E(i))return;let s=this.#s[i];return this.#f(s)?s.__staleWhileFetching:s}#M(t,r,n,i){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new uu,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let c={signal:o.signal,options:n,context:i},u=(g,y=!1)=>{let{aborted:x}=o.signal,S=n.ignoreFetchAbort&&g!==void 0;if(n.status&&(x&&!y?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,S&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),x&&!S&&!y)return l(o.signal.reason);let I=d;return this.#s[r]===d&&(g===void 0?I.__staleWhileFetching?this.#s[r]=I.__staleWhileFetching:this.#D(t,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(t,g,c.options))),g},f=g=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=g),l(g)),l=g=>{let{aborted:y}=o.signal,x=y&&n.allowStaleOnFetchAbort,S=x||n.allowStaleOnFetchRejection,I=S||n.noDeleteOnFetchRejection,R=d;if(this.#s[r]===d&&(!I||R.__staleWhileFetching===void 0?this.#D(t,"fetch"):x||(this.#s[r]=R.__staleWhileFetching)),S)return n.status&&R.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),R.__staleWhileFetching;if(R.__returned===R)throw g},h=(g,y)=>{let x=this.#o?.(t,s,c);x&&x instanceof Promise&&x.then(S=>g(S===void 0?void 0:S),y),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(g(void 0),n.allowStaleOnFetchAbort&&(g=S=>u(S,!0)))})};n.status&&(n.status.fetchDispatched=!0);let d=new Promise(h).then(u,f),p=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(t,p,{...c.options,status:void 0}),r=this.#a.get(t)):this.#s[r]=p,p}#f(t){if(!this.#b)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof uu}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:c=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:g,forceRefresh:y=!1,status:x,signal:S}=r;if(!this.#b)return x&&(x.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:x});let I={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:c,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:x,signal:S},R=this.#a.get(t);if(R===void 0){x&&(x.fetch="miss");let w=this.#M(t,R,I,g);return w.__returned=w}else{let w=this.#s[R];if(this.#f(w)){let O=n&&w.__staleWhileFetching!==void 0;return x&&(x.fetch="inflight",O&&(x.returnedStale=!0)),O?w.__staleWhileFetching:w.__returned=w}let D=this.#E(R);if(!y&&!D)return x&&(x.fetch="hit"),this.#B(R),i&&this.#O(R),x&&this.#i(x,R),w;let L=this.#M(t,R,I,g),$=L.__staleWhileFetching!==void 0&&n;return x&&(x.fetch=D?"stale":"refresh",$&&D&&(x.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.#h;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 c=n(t,a,{options:o,context:i});return this.set(t,c,o),c}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#a.get(t);if(a!==void 0){let c=this.#s[a],u=this.#f(c);return o&&this.#i(o,a),this.#E(a)?(o&&(o.get="stale"),u?(o&&n&&c.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?c.__staleWhileFetching:void 0):(s||this.#D(t,"expire"),o&&n&&(o.returnedStale=!0),n?c:void 0)):(o&&(o.get="hit"),u?c.__staleWhileFetching:(this.#B(a),i&&this.#O(a),c))}else o&&(o.get="miss")}#j(t,r){this.#v[r]=t,this.#y[t]=r}#B(t){t!==this.#d&&(t===this.#p?this.#p=this.#y[t]:this.#j(this.#v[t],this.#y[t]),this.#j(this.#d,t),this.#d=t)}delete(t){return this.#D(t,"delete")}#D(t,r){let n=!1;if(this.#c!==0){let i=this.#a.get(t);if(i!==void 0)if(n=!0,this.#c===1)this.#q(r);else{this.#T(i);let s=this.#s[i];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#w||this.#m)&&(this.#w&&this.#t?.(s,t,r),this.#m&&this.#g?.push([s,t,r])),this.#a.delete(t),this.#u[i]=void 0,this.#s[i]=void 0,i===this.#d)this.#d=this.#v[i];else if(i===this.#p)this.#p=this.#y[i];else{let o=this.#v[i];this.#y[o]=this.#y[i];let a=this.#y[i];this.#v[a]=this.#v[i]}this.#c--,this.#S.push(i)}}if(this.#m&&this.#g?.length){let i=this.#g,s;for(;s=i?.shift();)this.#n?.(...s)}return n}clear(){return this.#q("delete")}#q(t){for(let r of this.#P({allowStale:!0})){let n=this.#s[r];if(this.#f(n))n.__abortController.abort(new Error("deleted"));else{let i=this.#u[r];this.#w&&this.#t?.(n,i,t),this.#m&&this.#g?.push([n,i,t])}}if(this.#a.clear(),this.#s.fill(void 0),this.#u.fill(void 0),this.#A&&this.#x&&(this.#A.fill(0),this.#x.fill(0)),this.#C&&this.#C.fill(0),this.#p=0,this.#d=0,this.#S.length=0,this.#l=0,this.#c=0,this.#m&&this.#g){let r=this.#g,n;for(;n=r?.shift();)this.#n?.(...n)}}};cu.LRUCache=Zf});var Fv=P((lV,Rv)=>{"use strict";var De=(...e)=>e.every(t=>t)?e.join(""):"",Ze=e=>e?encodeURIComponent(e):"",Pv=e=>e.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),KL={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${De("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${De("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${De("/",i,"/",Ze(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${De("/",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}${De("#",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}${De("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${De("/",n,"/",Ze(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${De(e,"@")}${t}/${r}/${n}.git${De("#",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}${De("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${De("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:Pv},On={};On.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://${De(e,"@")}raw.githubusercontent.com/${t}/${r}/${Ze(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${De(e,"@")}${t}/${r}/${n}.git${De("#",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}}};On.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}${De("/",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)}}};On.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${De(e,"@")}${t}/${r}/${n}.git${De("#",i)}`,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)}}};On.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${De("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${De("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${De("/",Ze(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${De("/",Ze(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${De("/",Ze(r))}${De("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${De("/",Ze(r))}${De("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${De("/",Ze(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${De("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${De("/",Ze(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${De("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${De("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${De("#",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-"+Pv(e)}};On.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${De("#",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(On))On[e]=Object.assign({},KL,t);Rv.exports=On});var th=P((fV,Lv)=>{var XL=require("url"),eh=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},Dv=e=>{try{return new XL.URL(e)}catch{}},JL=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let i=e.indexOf("@");return i>-1?i>r?`git+ssh://${e}`:e:e.indexOf("//")===r+1?e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},QL=e=>{let t=eh(e,"@","#"),r=eh(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),eh(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};Lv.exports=(e,t)=>{let r=t?JL(e,t):e;return Dv(r)||Dv(QL(r))}});var Iv=P((hV,Tv)=>{"use strict";var ZL=th(),eT=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,c=o===-1||t>-1&&o>t,u=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&&c&&u&&f};Tv.exports=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=eT(e)?`github:${e}`:e,s=ZL(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],c=o||a;if(!c)return;let u=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 g=s.pathname.startsWith("/")?s.pathname.slice(1):s.pathname,y=g.indexOf("@");y>-1&&(g=g.slice(y+1));let x=g.lastIndexOf("/");x>-1?(h=decodeURIComponent(g.slice(0,x)),h||(h=null),d=decodeURIComponent(g.slice(x+1))):d=decodeURIComponent(g),d.endsWith(".git")&&(d=d.slice(0,-4)),s.hash&&(l=decodeURIComponent(s.hash.slice(1))),p="shortcut"}else{if(!u.protocols.includes(s.protocol))return;let g=u.extract(s);if(!g)return;h=g.user&&decodeURIComponent(g.user),d=decodeURIComponent(g.project),l=decodeURIComponent(g.committish),p=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(g){if(g instanceof URIError)return;throw g}return[c,h,f,d,l,p,t]}});var hu=P((dV,kv)=>{"use strict";var{LRUCache:tT}=lu(),rT=Fv(),nT=Iv(),iT=th(),rh=new tT({max:1e3}),fu=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(!rh.has(n)){let i=nT(t,r,{gitHosts:e.#e,protocols:e.#r});rh.set(n,i?new e(...i):void 0)}return rh.get(n)}static parseUrl(t){return iT(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(rT))fu.addHost(e,t);kv.exports=fu});var Bv=P((pV,jv)=>{"use strict";jv.exports=$v;function $v(e,t,r){e instanceof RegExp&&(e=Nv(e,r)),t instanceof RegExp&&(t=Nv(t,r));var n=Mv(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function Nv(e,t){var r=t.match(e);return r?r[0]:null}$v.range=Mv;function Mv(e,t,r){var n,i,s,o,a,c=r.indexOf(e),u=r.indexOf(t,c+1),f=c;if(c>=0&&u>0){if(e===t)return[c,u];for(n=[],s=r.length;f>=0&&!a;)f==c?(n.push(f),c=r.indexOf(e,f+1)):n.length==1?a=[n.pop(),u]:(i=n.pop(),i<s&&(s=i,o=u),u=r.indexOf(t,f+1)),f=c<u&&c>=0?c:u;n.length&&(a=[s,o])}return a}});var Vv=P((mV,Yv)=>{var qv=Bv();Yv.exports=aT;var Gv="\0SLASH"+Math.random()+"\0",Uv="\0OPEN"+Math.random()+"\0",ih="\0CLOSE"+Math.random()+"\0",Wv="\0COMMA"+Math.random()+"\0",Hv="\0PERIOD"+Math.random()+"\0";function nh(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function sT(e){return e.split("\\\\").join(Gv).split("\\{").join(Uv).split("\\}").join(ih).split("\\,").join(Wv).split("\\.").join(Hv)}function oT(e){return e.split(Gv).join("\\").split(Uv).join("{").split(ih).join("}").split(Wv).join(",").split(Hv).join(".")}function zv(e){if(!e)return[""];var t=[],r=qv("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,s=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var a=zv(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function aT(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),uo(sT(e),!0).map(oT)):[]}function uT(e){return"{"+e+"}"}function cT(e){return/^-?0\d/.test(e)}function lT(e,t){return e<=t}function fT(e,t){return e>=t}function uo(e,t){var r=[],n=qv("{","}",e);if(!n)return[e];var i=n.pre,s=n.post.length?uo(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<s.length;o++){var a=i+"{"+n.body+"}"+s[o];r.push(a)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),f=c||u,l=n.body.indexOf(",")>=0;if(!f&&!l)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+ih+n.post,uo(e)):[e];var h;if(f)h=n.body.split(/\.\./);else if(h=zv(n.body),h.length===1&&(h=uo(h[0],!1).map(uT),h.length===1))return s.map(function(O){return n.pre+h[0]+O});var d;if(f){var p=nh(h[0]),g=nh(h[1]),y=Math.max(h[0].length,h[1].length),x=h.length==3?Math.abs(nh(h[2])):1,S=lT,I=g<p;I&&(x*=-1,S=fT);var R=h.some(cT);d=[];for(var w=p;S(w,g);w+=x){var D;if(u)D=String.fromCharCode(w),D==="\\"&&(D="");else if(D=String(w),R){var L=y-D.length;if(L>0){var _=new Array(L+1).join("0");w<0?D="-"+_+D.slice(1):D=_+D}}d.push(D)}}else{d=[];for(var $=0;$<h.length;$++)d.push.apply(d,uo(h[$],!1))}for(var $=0;$<d.length;$++)for(var o=0;o<s.length;o++){var a=i+d[$]+s[o];(!t||f||a)&&r.push(a)}}return r}});var Kv=P(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.assertValidPattern=void 0;var hT=1024*64,dT=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>hT)throw new TypeError("pattern is too long")};du.assertValidPattern=dT});var Jv=P(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.parseClass=void 0;var pT={"[: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]},co=e=>e.replace(/[[\]\\-]/g,"\\$&"),mT=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Xv=e=>e.join(""),gT=(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,c=!1,u=!1,f=r,l="";e:for(;s<e.length;){let g=e.charAt(s);if((g==="!"||g==="^")&&s===r+1){u=!0,s++;continue}if(g==="]"&&o&&!c){f=s+1;break}if(o=!0,g==="\\"&&!c){c=!0,s++;continue}if(g==="["&&!c){for(let[y,[x,S,I]]of Object.entries(pT))if(e.startsWith(y,s)){if(l)return["$.",!1,e.length-r,!0];s+=y.length,I?i.push(x):n.push(x),a=a||S;continue e}}if(c=!1,l){g>l?n.push(co(l)+"-"+co(g)):g===l&&n.push(co(g)),l="",s++;continue}if(e.startsWith("-]",s+1)){n.push(co(g+"-")),s+=2;continue}if(e.startsWith("-",s+1)){l=g,s+=2;continue}n.push(co(g)),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])&&!u){let g=n[0].length===2?n[0].slice(-1):n[0];return[mT(g),!1,f-r,!1]}let h="["+(u?"^":"")+Xv(n)+"]",d="["+(u?"":"^")+Xv(i)+"]";return[n.length&&i.length?"("+h+"|"+d+")":n.length?h:d,a,f-r,!0]};pu.parseClass=gT});var gu=P(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.unescape=void 0;var yT=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");mu.unescape=yT});var ah=P(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.AST=void 0;var vT=Jv(),yu=gu(),ET=new Set(["!","?","+","*","@"]),Qv=e=>ET.has(e),AT="(?!(?:^|/)\\.\\.?(?:$|/))",vu="(?!\\.)",wT=new Set(["[","."]),bT=new Set(["..","."]),ST=new Set("().*{}+?[]^$\\!"),CT=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),oh="[^/]",Zv=oh+"*?",eE=oh+"+?",sh=class e{type;#e;#r;#t=!1;#n=[];#o;#h;#c;#l=!1;#a;#u;#s=!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.#c=this.#e===this?[]:this.#e.#c,t==="!"&&!this.#e.#l&&this.#c.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.#u!==void 0?this.#u:this.type?this.#u=this.type+"("+this.#n.map(t=>String(t)).join("|")+")":this.#u=this.#n.map(t=>String(t)).join("")}#y(){if(this!==this.#e)throw new Error("should only call on root");if(this.#l)return this;this.toString(),this.#l=!0;let t;for(;t=this.#c.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.#l&&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#v(t,r,n,i){let s=!1,o=!1,a=-1,c=!1;if(r.type===null){let d=n,p="";for(;d<t.length;){let g=t.charAt(d++);if(s||g==="\\"){s=!s,p+=g;continue}if(o){d===a+1?(g==="^"||g==="!")&&(c=!0):g==="]"&&!(d===a+2&&c)&&(o=!1),p+=g;continue}else if(g==="["){o=!0,a=d,c=!1,p+=g;continue}if(!i.noext&&Qv(g)&&t.charAt(d)==="("){r.push(p),p="";let y=new e(g,r);d=e.#v(t,y,d,i),r.push(y);continue}p+=g}return r.push(p),d}let u=n+1,f=new e(null,r),l=[],h="";for(;u<t.length;){let d=t.charAt(u++);if(s||d==="\\"){s=!s,h+=d;continue}if(o){u===a+1?(d==="^"||d==="!")&&(c=!0):d==="]"&&!(u===a+2&&c)&&(o=!1),h+=d;continue}else if(d==="["){o=!0,a=u,c=!1,h+=d;continue}if(Qv(d)&&t.charAt(u)==="("){f.push(h),h="";let p=new e(d,f);f.push(p),u=e.#v(t,p,u,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.#s=!0),f.push(h),h="",r.push(...l,f),u;h+=d}return r.type=null,r.#r=void 0,r.#n=[t.substring(n-1)],u}static fromGlob(t,r={}){let n=new e(null,void 0,r);return e.#v(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.#y(),!this.type){let c=this.isStart()&&this.isEnd(),u=this.#n.map(d=>{let[p,g,y,x]=typeof d=="string"?e.#d(d,this.#r,c):d.toRegExpSource(t);return this.#r=this.#r||y,this.#t=this.#t||x,p}).join(""),f="";if(this.isStart()&&typeof this.#n[0]=="string"&&!(this.#n.length===1&&bT.has(this.#n[0]))){let p=wT,g=r&&p.has(u.charAt(0))||u.startsWith("\\.")&&p.has(u.charAt(2))||u.startsWith("\\.\\.")&&p.has(u.charAt(4)),y=!r&&!t&&p.has(u.charAt(0));f=g?AT:y?vu:""}let l="";return this.isEnd()&&this.#e.#l&&this.#o?.type==="!"&&(l="(?:$|\\/)"),[f+u+l,(0,yu.unescape)(u),this.#r=!!this.#r,this.#t]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#p(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let c=this.toString();return this.#n=[c],this.type=null,this.#r=void 0,[c,(0,yu.unescape)(this.toString()),!1,!1]}let o=!n||t||r||!vu?"":this.#p(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?vu:"")+eE;else{let c=this.type==="!"?"))"+(this.isStart()&&!r&&!t?vu:"")+Zv+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=i+s+c}return[a,(0,yu.unescape)(s),this.#r=!!this.#r,this.#t]}#p(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#d(t,r,n=!1){let i=!1,s="",o=!1;for(let a=0;a<t.length;a++){let c=t.charAt(a);if(i){i=!1,s+=(ST.has(c)?"\\":"")+c;continue}if(c==="\\"){a===t.length-1?s+="\\\\":i=!0;continue}if(c==="["){let[u,f,l,h]=(0,vT.parseClass)(t,a);if(l){s+=u,o=o||f,a+=l-1,r=r||h;continue}}if(c==="*"){n&&t==="*"?s+=eE:s+=Zv,r=!0;continue}if(c==="?"){s+=oh,r=!0;continue}s+=CT(c)}return[s,(0,yu.unescape)(t),!!r,o]}};Eu.AST=sh});var uh=P(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.escape=void 0;var xT=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");Au.escape=xT});var Jr=P(fe=>{"use strict";var OT=fe&&fe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fe,"__esModule",{value:!0});fe.unescape=fe.escape=fe.AST=fe.Minimatch=fe.match=fe.makeRe=fe.braceExpand=fe.defaults=fe.filter=fe.GLOBSTAR=fe.sep=fe.minimatch=void 0;var _T=OT(Vv()),wu=Kv(),nE=ah(),PT=uh(),RT=gu(),FT=(e,t,r={})=>((0,wu.assertValidPattern)(t),!r.nocomment&&t.charAt(0)==="#"?!1:new di(t,r).match(e));fe.minimatch=FT;var DT=/^\*+([^+@!?\*\[\(]*)$/,LT=e=>t=>!t.startsWith(".")&&t.endsWith(e),TT=e=>t=>t.endsWith(e),IT=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),kT=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),NT=/^\*+\.\*+$/,$T=e=>!e.startsWith(".")&&e.includes("."),MT=e=>e!=="."&&e!==".."&&e.includes("."),jT=/^\.\*+$/,BT=e=>e!=="."&&e!==".."&&e.startsWith("."),qT=/^\*+$/,GT=e=>e.length!==0&&!e.startsWith("."),UT=e=>e.length!==0&&e!=="."&&e!=="..",WT=/^\?+([^+@!?\*\[\(]*)?$/,HT=([e,t=""])=>{let r=iE([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},zT=([e,t=""])=>{let r=sE([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},YT=([e,t=""])=>{let r=sE([e]);return t?n=>r(n)&&n.endsWith(t):r},VT=([e,t=""])=>{let r=iE([e]);return t?n=>r(n)&&n.endsWith(t):r},iE=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},sE=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},oE=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",tE={win32:{sep:"\\"},posix:{sep:"/"}};fe.sep=oE==="win32"?tE.win32.sep:tE.posix.sep;fe.minimatch.sep=fe.sep;fe.GLOBSTAR=Symbol("globstar **");fe.minimatch.GLOBSTAR=fe.GLOBSTAR;var KT="[^/]",XT=KT+"*?",JT="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",QT="(?:(?!(?:\\/|^)\\.).)*?",ZT=(e,t={})=>r=>(0,fe.minimatch)(r,e,t);fe.filter=ZT;fe.minimatch.filter=fe.filter;var ir=(e,t={})=>Object.assign({},e,t),eI=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return fe.minimatch;let t=fe.minimatch;return Object.assign((n,i,s={})=>t(n,i,ir(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,ir(e,s))}static defaults(i){return t.defaults(ir(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,o={}){super(i,s,ir(e,o))}static fromGlob(i,s={}){return t.AST.fromGlob(i,ir(e,s))}},unescape:(n,i={})=>t.unescape(n,ir(e,i)),escape:(n,i={})=>t.escape(n,ir(e,i)),filter:(n,i={})=>t.filter(n,ir(e,i)),defaults:n=>t.defaults(ir(e,n)),makeRe:(n,i={})=>t.makeRe(n,ir(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,ir(e,i)),match:(n,i,s={})=>t.match(n,i,ir(e,s)),sep:t.sep,GLOBSTAR:fe.GLOBSTAR})};fe.defaults=eI;fe.minimatch.defaults=fe.defaults;var tI=(e,t={})=>((0,wu.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,_T.default)(e));fe.braceExpand=tI;fe.minimatch.braceExpand=fe.braceExpand;var rI=(e,t={})=>new di(e,t).makeRe();fe.makeRe=rI;fe.minimatch.makeRe=fe.makeRe;var nI=(e,t,r={})=>{let n=new di(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};fe.match=nI;fe.minimatch.match=fe.match;var rE=/[?*]|[+@!]\(.*?\)|\[|\]/,iI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),di=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,r={}){(0,wu.assertValidPattern)(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||oE,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 c=s[0]===""&&s[1]===""&&(s[2]==="?"||!rE.test(s[2]))&&!rE.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(c)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(u)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(c=>this.parse(c))});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],c=n[i+2],u=n[i+3];if(a!==".."||!c||c==="."||c===".."||!u||u==="."||u==="..")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 c=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...c),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 g=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),y=!g&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),x=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!x&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),I=y?3:g?0:void 0,R=S?3:x?0:void 0;if(typeof I=="number"&&typeof R=="number"){let[w,D]=[t[I],r[R]];w.toLowerCase()===D.toLowerCase()&&(r[R]=w,R>I?r=r.slice(R):I>R&&(t=t.slice(I)))}}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,c=t.length,u=r.length;o<c&&a<u;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===fe.GLOBSTAR){this.debug("GLOBSTAR",[r,f,l]);var h=o,d=a+1;if(d===u){for(this.debug("** at the end");o<c;o++)if(t[o]==="."||t[o]===".."||!i.dot&&t[o].charAt(0)===".")return!1;return!0}for(;h<c;){var p=t[h];if(this.debug(`
|
|
9
|
+
globstar while`,t,h,r,d,p),this.matchOne(t.slice(h),r.slice(d),n))return this.debug("globstar found match!",h,c,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===c))}let g;if(typeof f=="string"?(g=l===f,this.debug("string match",f,l,g)):(g=f.test(l),this.debug("pattern match",f,l,g)),!g)return!1}if(o===c&&a===u)return!0;if(o===c)return n;if(a===u)return o===c-1&&t[o]==="";throw new Error("wtf?")}braceExpand(){return(0,fe.braceExpand)(this.pattern,this.options)}parse(t){(0,wu.assertValidPattern)(t);let r=this.options;if(t==="**")return fe.GLOBSTAR;if(t==="")return"";let n,i=null;(n=t.match(qT))?i=r.dot?UT:GT:(n=t.match(DT))?i=(r.nocase?r.dot?kT:IT:r.dot?TT:LT)(n[1]):(n=t.match(WT))?i=(r.nocase?r.dot?zT:HT:r.dot?YT:VT)(n):(n=t.match(NT))?i=r.dot?MT:$T:(n=t.match(jT))&&(i=BT);let s=nE.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?XT:r.dot?JT:QT,i=new Set(r.nocase?["i"]:[]),s=t.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let l of f.flags.split(""))i.add(l);return typeof f=="string"?iI(f):f===fe.GLOBSTAR?fe.GLOBSTAR:f._src});return u.forEach((f,l)=>{let h=u[l+1],d=u[l-1];f!==fe.GLOBSTAR||d===fe.GLOBSTAR||(d===void 0?h!==void 0&&h!==fe.GLOBSTAR?u[l+1]="(?:\\/|"+n+"\\/)?"+h:u[l]=n:h===void 0?u[l-1]=d+"(?:\\/|"+n+")?":h!==fe.GLOBSTAR&&(u[l-1]=d+"(?:\\/|\\/"+n+"\\/)"+h,u[l+1]=fe.GLOBSTAR))}),u.filter(f=>f!==fe.GLOBSTAR).join("/")}).join("|"),[o,a]=t.length>1?["(?:",")"]:["",""];s="^"+o+s+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 c=s[a],u=i;if(n.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return fe.minimatch.defaults(t).Minimatch}};fe.Minimatch=di;var sI=ah();Object.defineProperty(fe,"AST",{enumerable:!0,get:function(){return sI.AST}});var oI=uh();Object.defineProperty(fe,"escape",{enumerable:!0,get:function(){return oI.escape}});var aI=gu();Object.defineProperty(fe,"unescape",{enumerable:!0,get:function(){return aI.unescape}});fe.minimatch.AST=nE.AST;fe.minimatch.Minimatch=di;fe.minimatch.escape=PT.escape;fe.minimatch.unescape=RT.unescape});var gh=P(Rt=>{"use strict";var uI=Rt&&Rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.Minipass=Rt.isWritable=Rt.isReadable=Rt.isStream=void 0;var aE=typeof process=="object"&&process?process:{stdout:null,stderr:null},mh=require("node:events"),fE=uI(require("node:stream")),cI=require("node:string_decoder"),lI=e=>!!e&&typeof e=="object"&&(e instanceof Pu||e instanceof fE.default||(0,Rt.isReadable)(e)||(0,Rt.isWritable)(e));Rt.isStream=lI;var fI=e=>!!e&&typeof e=="object"&&e instanceof mh.EventEmitter&&typeof e.pipe=="function"&&e.pipe!==fE.default.Writable.prototype.pipe;Rt.isReadable=fI;var hI=e=>!!e&&typeof e=="object"&&e instanceof mh.EventEmitter&&typeof e.write=="function"&&typeof e.end=="function";Rt.isWritable=hI;var Qr=Symbol("EOF"),Zr=Symbol("maybeEmitEnd"),_n=Symbol("emittedEnd"),bu=Symbol("emittingEnd"),lo=Symbol("emittedError"),Su=Symbol("closed"),uE=Symbol("read"),Cu=Symbol("flush"),cE=Symbol("flushChunk"),Sr=Symbol("encoding"),Zi=Symbol("decoder"),ut=Symbol("flowing"),fo=Symbol("paused"),es=Symbol("resume"),ct=Symbol("buffer"),Pt=Symbol("pipes"),lt=Symbol("bufferLength"),ch=Symbol("bufferPush"),xu=Symbol("bufferShift"),gt=Symbol("objectMode"),Xe=Symbol("destroyed"),lh=Symbol("error"),fh=Symbol("emitData"),lE=Symbol("emitEnd"),hh=Symbol("emitEnd2"),Lr=Symbol("async"),dh=Symbol("abort"),Ou=Symbol("aborted"),ho=Symbol("signal"),pi=Symbol("dataListeners"),Kt=Symbol("discarded"),po=e=>Promise.resolve().then(e),dI=e=>e(),pI=e=>e==="end"||e==="finish"||e==="prefinish",mI=e=>e instanceof ArrayBuffer||!!e&&typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,gI=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),_u=class{src;dest;opts;ondrain;constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[es](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},ph=class extends _u{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)}},yI=e=>!!e.objectMode,vI=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer",Pu=class extends mh.EventEmitter{[ut]=!1;[fo]=!1;[Pt]=[];[ct]=[];[gt];[Sr];[Lr];[Zi];[Qr]=!1;[_n]=!1;[bu]=!1;[Su]=!1;[lo]=null;[lt]=0;[Xe]=!1;[ho];[Ou]=!1;[pi]=0;[Kt]=!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");yI(r)?(this[gt]=!0,this[Sr]=null):vI(r)?(this[Sr]=r.encoding,this[gt]=!1):(this[gt]=!1,this[Sr]=null),this[Lr]=!!r.async,this[Zi]=this[Sr]?new cI.StringDecoder(this[Sr]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ct]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Pt]});let{signal:n}=r;n&&(this[ho]=n,n.aborted?this[dh]():n.addEventListener("abort",()=>this[dh]()))}get bufferLength(){return this[lt]}get encoding(){return this[Sr]}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[gt]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Lr]}set async(t){this[Lr]=this[Lr]||!!t}[dh](){this[Ou]=!0,this.emit("abort",this[ho]?.reason),this.destroy(this[ho]?.reason)}get aborted(){return this[Ou]}set aborted(t){}write(t,r,n){if(this[Ou])return!1;if(this[Qr])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[Lr]?po:dI;if(!this[gt]&&!Buffer.isBuffer(t)){if(gI(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(mI(t))t=Buffer.from(t);else if(typeof t!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[gt]?(this[ut]&&this[lt]!==0&&this[Cu](!0),this[ut]?this.emit("data",t):this[ch](t),this[lt]!==0&&this.emit("readable"),n&&i(n),this[ut]):t.length?(typeof t=="string"&&!(r===this[Sr]&&!this[Zi]?.lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[Sr]&&(t=this[Zi].write(t)),this[ut]&&this[lt]!==0&&this[Cu](!0),this[ut]?this.emit("data",t):this[ch](t),this[lt]!==0&&this.emit("readable"),n&&i(n),this[ut]):(this[lt]!==0&&this.emit("readable"),n&&i(n),this[ut])}read(t){if(this[Xe])return null;if(this[Kt]=!1,this[lt]===0||t===0||t&&t>this[lt])return this[Zr](),null;this[gt]&&(t=null),this[ct].length>1&&!this[gt]&&(this[ct]=[this[Sr]?this[ct].join(""):Buffer.concat(this[ct],this[lt])]);let r=this[uE](t||null,this[ct][0]);return this[Zr](),r}[uE](t,r){if(this[gt])this[xu]();else{let n=r;t===n.length||t===null?this[xu]():typeof n=="string"?(this[ct][0]=n.slice(t),r=n.slice(0,t),this[lt]-=t):(this[ct][0]=n.subarray(t),r=n.subarray(0,t),this[lt]-=t)}return this.emit("data",r),!this[ct].length&&!this[Qr]&&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[Qr]=!0,this.writable=!1,(this[ut]||!this[fo])&&this[Zr](),this}[es](){this[Xe]||(!this[pi]&&!this[Pt].length&&(this[Kt]=!0),this[fo]=!1,this[ut]=!0,this.emit("resume"),this[ct].length?this[Cu]():this[Qr]?this[Zr]():this.emit("drain"))}resume(){return this[es]()}pause(){this[ut]=!1,this[fo]=!0,this[Kt]=!1}get destroyed(){return this[Xe]}get flowing(){return this[ut]}get paused(){return this[fo]}[ch](t){this[gt]?this[lt]+=1:this[lt]+=t.length,this[ct].push(t)}[xu](){return this[gt]?this[lt]-=1:this[lt]-=this[ct][0].length,this[ct].shift()}[Cu](t=!1){do;while(this[cE](this[xu]())&&this[ct].length);!t&&!this[ct].length&&!this[Qr]&&this.emit("drain")}[cE](t){return this.emit("data",t),this[ut]}pipe(t,r){if(this[Xe])return t;this[Kt]=!1;let n=this[_n];return r=r||{},t===aE.stdout||t===aE.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[Pt].push(r.proxyErrors?new ph(this,t,r):new _u(this,t,r)),this[Lr]?po(()=>this[es]()):this[es]()),t}unpipe(t){let r=this[Pt].find(n=>n.dest===t);r&&(this[Pt].length===1?(this[ut]&&this[pi]===0&&(this[ut]=!1),this[Pt]=[]):this[Pt].splice(this[Pt].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[Kt]=!1,this[pi]++,!this[Pt].length&&!this[ut]&&this[es]();else if(t==="readable"&&this[lt]!==0)super.emit("readable");else if(pI(t)&&this[_n])super.emit(t),this.removeAllListeners(t);else if(t==="error"&&this[lo]){let i=r;this[Lr]?po(()=>i.call(this,this[lo])):i.call(this,this[lo])}return n}removeListener(t,r){return this.off(t,r)}off(t,r){let n=super.off(t,r);return t==="data"&&(this[pi]=this.listeners("data").length,this[pi]===0&&!this[Kt]&&!this[Pt].length&&(this[ut]=!1)),n}removeAllListeners(t){let r=super.removeAllListeners(t);return(t==="data"||t===void 0)&&(this[pi]=0,!this[Kt]&&!this[Pt].length&&(this[ut]=!1)),r}get emittedEnd(){return this[_n]}[Zr](){!this[bu]&&!this[_n]&&!this[Xe]&&this[ct].length===0&&this[Qr]&&(this[bu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Su]&&this.emit("close"),this[bu]=!1)}emit(t,...r){let n=r[0];if(t!=="error"&&t!=="close"&&t!==Xe&&this[Xe])return!1;if(t==="data")return!this[gt]&&!n?!1:this[Lr]?(po(()=>this[fh](n)),!0):this[fh](n);if(t==="end")return this[lE]();if(t==="close"){if(this[Su]=!0,!this[_n]&&!this[Xe])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[lo]=n,super.emit(lh,n);let s=!this[ho]||this.listeners("error").length?super.emit("error",n):!1;return this[Zr](),s}else if(t==="resume"){let s=super.emit("resume");return this[Zr](),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[Zr](),i}[fh](t){for(let n of this[Pt])n.dest.write(t)===!1&&this.pause();let r=this[Kt]?!1:super.emit("data",t);return this[Zr](),r}[lE](){return this[_n]?!1:(this[_n]=!0,this.readable=!1,this[Lr]?(po(()=>this[hh]()),!0):this[hh]())}[hh](){if(this[Zi]){let r=this[Zi].end();if(r){for(let n of this[Pt])n.dest.write(r);this[Kt]||super.emit("data",r)}}for(let r of this[Pt])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){let t=Object.assign([],{dataLength:0});this[gt]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[gt]||(t.dataLength+=n.length)}),await r,t}async concat(){if(this[gt])throw new Error("cannot concat in objectMode");let t=await this.collect();return this[Sr]?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[Kt]=!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[Qr])return r();let s,o,a=l=>{this.off("data",c),this.off("end",u),this.off(Xe,f),r(),o(l)},c=l=>{this.off("error",a),this.off("end",u),this.off(Xe,f),this.pause(),s({value:l,done:!!this[Qr]})},u=()=>{this.off("error",a),this.off("data",c),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",u),this.once("data",c)})},throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[Kt]=!1;let t=!1,r=()=>(this.pause(),this.off(lh,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(lh,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[Kt]=!0,this[ct].length=0,this[lt]=0;let r=this;return typeof r.close=="function"&&!this[Su]&&r.close(),t?this.emit("error",t):this.emit(Xe),this}static get isStream(){return Rt.isStream}};Rt.Minipass=Pu});var OE=P(Le=>{"use strict";var EI=Le&&Le.__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]}),AI=Le&&Le.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),wI=Le&&Le.__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)&&EI(t,e,r);return AI(t,e),t};Object.defineProperty(Le,"__esModule",{value:!0});Le.PathScurry=Le.Path=Le.PathScurryDarwin=Le.PathScurryPosix=Le.PathScurryWin32=Le.PathScurryBase=Le.PathPosix=Le.PathWin32=Le.PathBase=Le.ChildrenCache=Le.ResolveCache=void 0;var yE=lu(),Tu=require("node:path"),bI=require("node:url"),go=require("fs"),SI=wI(require("node:fs")),CI=go.realpathSync.native,Ru=require("node:fs/promises"),hE=gh(),yo={lstatSync:go.lstatSync,readdir:go.readdir,readdirSync:go.readdirSync,readlinkSync:go.readlinkSync,realpathSync:CI,promises:{lstat:Ru.lstat,readdir:Ru.readdir,readlink:Ru.readlink,realpath:Ru.realpath}},vE=e=>!e||e===yo||e===SI?yo:{...yo,...e,promises:{...yo.promises,...e.promises||{}}},EE=/^\\\\\?\\([a-z]:)\\?$/i,xI=e=>e.replace(/\//g,"\\").replace(EE,"$1\\"),OI=/[\\\/]/,or=0,AE=1,wE=2,Tr=4,bE=6,SE=8,mi=10,CE=12,sr=15,mo=~sr,yh=16,dE=32,vo=64,Cr=128,Fu=256,Lu=512,pE=vo|Cr|Lu,_I=1023,vh=e=>e.isFile()?SE:e.isDirectory()?Tr:e.isSymbolicLink()?mi:e.isCharacterDevice()?wE:e.isBlockDevice()?bE:e.isSocket()?CE:e.isFIFO()?AE:or,mE=new Map,Eo=e=>{let t=mE.get(e);if(t)return t;let r=e.normalize("NFKD");return mE.set(e,r),r},gE=new Map,Du=e=>{let t=gE.get(e);if(t)return t;let r=Eo(e.toLowerCase());return gE.set(e,r),r},Ao=class extends yE.LRUCache{constructor(){super({max:256})}};Le.ResolveCache=Ao;var Iu=class extends yE.LRUCache{constructor(t=16*1024){super({maxSize:t,sizeCalculation:r=>r.length+1})}};Le.ChildrenCache=Iu;var xE=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}#c;get rdev(){return this.#c}#l;get blksize(){return this.#l}#a;get ino(){return this.#a}#u;get size(){return this.#u}#s;get blocks(){return this.#s}#y;get atimeMs(){return this.#y}#v;get mtimeMs(){return this.#v}#p;get ctimeMs(){return this.#p}#d;get birthtimeMs(){return this.#d}#S;get atime(){return this.#S}#g;get mtime(){return this.#g}#C;get ctime(){return this.#C}#x;get birthtime(){return this.#x}#A;#w;#b;#m;#R;#O;#i;#L;#E;#F;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,r=or,n,i,s,o,a){this.name=t,this.#A=s?Du(t):Eo(t),this.#i=r&_I,this.nocase=s,this.roots=i,this.root=n||this,this.#L=o,this.#b=a.fullpath,this.#R=a.relative,this.#O=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=vE(a.fs)}depth(){return this.#w!==void 0?this.#w:this.parent?this.#w=this.parent.depth()+1:this.#w=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).#T(i):this.#T(i)}#T(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.#i&=~yh,r}child(t,r){if(t===""||t===".")return this;if(t==="..")return this.parent||this;let n=this.children(),i=this.nocase?Du(t):Eo(t);for(let c of n)if(c.#A===i)return c;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+t:void 0,a=this.newChild(t,or,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=Cr),n.push(a),a}relative(){if(this.isCWD)return"";if(this.#R!==void 0)return this.#R;let t=this.name,r=this.parent;if(!r)return this.#R=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.#O!==void 0)return this.#O;let t=this.name,r=this.parent;if(!r)return this.#O=this.fullpathPosix();let n=r.relativePosix();return n+(!n||!r.parent?"":"/")+t}fullpath(){if(this.#b!==void 0)return this.#b;let t=this.name,r=this.parent;if(!r)return this.#b=this.name;let i=r.fullpath()+(r.parent?this.sep:"")+t;return this.#b=i}fullpathPosix(){if(this.#m!==void 0)return this.#m;if(this.sep==="/")return this.#m=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#m=`//?/${i}`:this.#m=i}let t=this.parent,r=t.fullpathPosix(),n=r+(!r||!t.parent?"":"/")+this.name;return this.#m=n}isUnknown(){return(this.#i&sr)===or}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.#i&sr)===SE}isDirectory(){return(this.#i&sr)===Tr}isCharacterDevice(){return(this.#i&sr)===wE}isBlockDevice(){return(this.#i&sr)===bE}isFIFO(){return(this.#i&sr)===AE}isSocket(){return(this.#i&sr)===CE}isSymbolicLink(){return(this.#i&mi)===mi}lstatCached(){return this.#i&dE?this:void 0}readlinkCached(){return this.#E}realpathCached(){return this.#F}readdirCached(){let t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#E)return!0;if(!this.parent)return!1;let t=this.#i&sr;return!(t!==or&&t!==mi||this.#i&Fu||this.#i&Cr)}calledReaddir(){return!!(this.#i&yh)}isENOENT(){return!!(this.#i&Cr)}isNamed(t){return this.nocase?this.#A===Du(t):this.#A===Eo(t)}async readlink(){let t=this.#E;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.#E=n}catch(r){this.#f(r.code);return}}readlinkSync(){let t=this.#E;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.#E=n}catch(r){this.#f(r.code);return}}#I(t){this.#i|=yh;for(let r=t.provisional;r<t.length;r++){let n=t[r];n&&n.#k()}}#k(){this.#i&Cr||(this.#i=(this.#i|Cr)&mo,this.#_())}#_(){let t=this.children();t.provisional=0;for(let r of t)r.#k()}#P(){this.#i|=Lu,this.#N()}#N(){if(this.#i&vo)return;let t=this.#i;(t&sr)===Tr&&(t&=mo),this.#i=t|vo,this.#_()}#$(t=""){t==="ENOTDIR"||t==="EPERM"?this.#N():t==="ENOENT"?this.#k():this.children().provisional=0}#M(t=""){t==="ENOTDIR"?this.parent.#N():t==="ENOENT"&&this.#k()}#f(t=""){let r=this.#i;r|=Fu,t==="ENOENT"&&(r|=Cr),(t==="EINVAL"||t==="UNKNOWN")&&(r&=mo),this.#i=r,t==="ENOTDIR"&&this.parent&&this.parent.#N()}#j(t,r){return this.#D(t,r)||this.#B(t,r)}#B(t,r){let n=vh(t),i=this.newChild(t.name,n,{parent:this}),s=i.#i&sr;return s!==Tr&&s!==mi&&s!==or&&(i.#i|=vo),r.unshift(i),r.provisional++,i}#D(t,r){for(let n=r.provisional;n<r.length;n++){let i=r[n];if((this.nocase?Du(t.name):Eo(t.name))===i.#A)return this.#q(t,i,n,r)}}#q(t,r,n,i){let s=r.name;return r.#i=r.#i&mo|vh(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.#i&Cr))try{return this.#H(await this.#e.promises.lstat(this.fullpath())),this}catch(t){this.#M(t.code)}}lstatSync(){if(!(this.#i&Cr))try{return this.#H(this.#e.lstatSync(this.fullpath())),this}catch(t){this.#M(t.code)}}#H(t){let{atime:r,atimeMs:n,birthtime:i,birthtimeMs:s,blksize:o,blocks:a,ctime:c,ctimeMs:u,dev:f,gid:l,ino:h,mode:d,mtime:p,mtimeMs:g,nlink:y,rdev:x,size:S,uid:I}=t;this.#S=r,this.#y=n,this.#x=i,this.#d=s,this.#l=o,this.#s=a,this.#C=c,this.#p=u,this.#r=f,this.#h=l,this.#a=h,this.#t=d,this.#g=p,this.#v=g,this.#n=y,this.#c=x,this.#u=S,this.#o=I;let R=vh(t);this.#i=this.#i&mo|R|dE,R!==or&&R!==Tr&&R!==mi&&(this.#i|=vo)}#U=[];#W=!1;#z(t){this.#W=!1;let r=this.#U.slice();this.#U.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.#U.push(t),this.#W)return;this.#W=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,o)=>{if(s)this.#$(s.code),n.provisional=0;else{for(let a of o)this.#j(a,n);this.#I(n)}this.#z(n.slice(0,n.provisional))})}#G;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.#G)await this.#G;else{let n=()=>{};this.#G=new Promise(i=>n=i);try{for(let i of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#j(i,t);this.#I(t)}catch(i){this.#$(i.code),t.provisional=0}this.#G=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.#j(n,t);this.#I(t)}catch(n){this.#$(n.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(this.#i&pE)return!1;let t=sr&this.#i;return t===or||t===Tr||t===mi}shouldWalk(t,r){return(this.#i&Tr)===Tr&&!(this.#i&pE)&&!t.has(this)&&(!r||r(this))}async realpath(){if(this.#F)return this.#F;if(!((Lu|Fu|Cr)&this.#i))try{let t=await this.#e.promises.realpath(this.fullpath());return this.#F=this.resolve(t)}catch{this.#P()}}realpathSync(){if(this.#F)return this.#F;if(!((Lu|Fu|Cr)&this.#i))try{let t=this.#e.realpathSync(this.fullpath());return this.#F=this.resolve(t)}catch{this.#P()}}[xE](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.#R=n.join(this.sep),i.#O=n.join("/"),i=i.parent,n.push("..");for(i=t;i&&i.parent&&!r.has(i);)i.#R=void 0,i.#O=void 0,i=i.parent}};Le.PathBase=dt;var wo=class e extends dt{sep="\\";splitSep=OI;constructor(t,r=or,n,i,s,o,a){super(t,r,n,i,s,o,a)}newChild(t,r=or,n={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}getRootString(t){return Tu.win32.parse(t).root}getRoot(t){if(t=xI(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 Co(t,this).root}sameRoot(t,r=this.root.name){return t=t.toUpperCase().replace(/\//g,"\\").replace(EE,"$1\\"),t===r}};Le.PathWin32=wo;var bo=class e extends dt{splitSep="/";sep="/";constructor(t,r=or,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=or,n={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}};Le.PathPosix=bo;var So=class{root;rootPath;roots;cwd;#e;#r;#t;nocase;#n;constructor(t=process.cwd(),r,n,{nocase:i,childrenCacheSize:s=16*1024,fs:o=yo}={}){this.#n=vE(o),(t instanceof URL||t.startsWith("file://"))&&(t=(0,bI.fileURLToPath)(t));let a=r.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new Ao,this.#r=new Ao,this.#t=new Iu(s);let c=a.substring(this.rootPath.length).split(n);if(c.length===1&&!c[0]&&c.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 u=this.root,f=c.length-1,l=r.sep,h=this.rootPath,d=!1;for(let p of c){let g=f--;u=u.child(p,{relative:new Array(g).fill("..").join(l),relativePosix:new Array(g).fill("..").join("/"),fullpath:h+=(d?"":l)+p}),d=!0}this.cwd=u}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 c=new Set,u=(l,h)=>{c.add(l),l.readdirCB((d,p)=>{if(d)return h(d);let g=p.length;if(!g)return h();let y=()=>{--g===0&&h()};for(let x of p)(!s||s(x))&&a.push(n?x:x.fullpath()),i&&x.isSymbolicLink()?x.realpath().then(S=>S?.isUnknown()?S.lstat():S).then(S=>S?.shouldWalk(c,o)?u(S,y):y()):x.shouldWalk(c,o)?u(x,y):y()},!0)},f=t;return new Promise((l,h)=>{u(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 c=new Set([t]);for(let u of c){let f=u.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(c,o)&&c.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 c of a){let u=c.readdirSync();for(let f of u){(!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 hE.Minipass({objectMode:!0});(!s||s(t))&&a.write(n?t:t.fullpath());let c=new Set,u=[t],f=0,l=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,c.add(d);let p=(y,x,S=!1)=>{if(y)return a.emit("error",y);if(i&&!S){let I=[];for(let R of x)R.isSymbolicLink()&&I.push(R.realpath().then(w=>w?.isUnknown()?w.lstat():w));if(I.length){Promise.all(I).then(()=>p(null,x,!0));return}}for(let I of x)I&&(!s||s(I))&&(a.write(n?I:I.fullpath())||(h=!0));f--;for(let I of x){let R=I.realpathCached()||I;R.shouldWalk(c,o)&&u.push(R)}h&&!a.flowing?a.once("drain",l):g||l()},g=!0;d.readdirCB(p,!0),g=!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 hE.Minipass({objectMode:!0}),c=new Set;(!s||s(t))&&a.write(n?t:t.fullpath());let u=[t],f=0,l=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,c.add(d);let p=d.readdirSync();for(let g of p)(!s||s(g))&&(a.write(n?g:g.fullpath())||(h=!0));f--;for(let g of p){let y=g;if(g.isSymbolicLink()){if(!(i&&(y=g.realpathSync())))continue;y.isUnknown()&&y.lstatSync()}y.shouldWalk(c,o)&&u.push(y)}}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[xE](r)}};Le.PathScurryBase=So;var Co=class extends So{sep="\\";constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,Tu.win32,"\\",{...r,nocase:n}),this.nocase=n;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(t){return Tu.win32.parse(t).root.toUpperCase()}newRoot(t){return new wo(this.rootPath,Tr,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}};Le.PathScurryWin32=Co;var xo=class extends So{sep="/";constructor(t=process.cwd(),r={}){let{nocase:n=!1}=r;super(t,Tu.posix,"/",{...r,nocase:n}),this.nocase=n}parseRootPath(t){return"/"}newRoot(t){return new bo(this.rootPath,Tr,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}};Le.PathScurryPosix=xo;var ku=class extends xo{constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,{...r,nocase:n})}};Le.PathScurryDarwin=ku;Le.Path=process.platform==="win32"?wo:bo;Le.PathScurry=process.platform==="win32"?Co:process.platform==="darwin"?ku:xo});var Ah=P(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.Pattern=void 0;var PI=Jr(),RI=e=>e.length>=1,FI=e=>e.length>=1,Eh=class e{#e;#r;#t;length;#n;#o;#h;#c;#l;#a;#u=!0;constructor(t,r,n,i){if(!RI(t))throw new TypeError("empty pattern list");if(!FI(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,c,...u]=this.#e,[f,l,h,d,...p]=this.#r;u[0]===""&&(u.shift(),p.shift());let g=[s,o,a,c,""].join("/"),y=[f,l,h,d,""].join("/");this.#e=[g,...u],this.#r=[y,...p],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...c]=this.#r;o[0]===""&&(o.shift(),c.shift());let u=s+"/",f=a+"/";this.#e=[u,...o],this.#r=[f,...c],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]===PI.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.#l=this.#l,this.#o.#c=this.#c,this.#o):this.#o=null}isUNC(){let t=this.#e;return this.#l!==void 0?this.#l:this.#l=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.#c!==void 0?this.#c:this.#c=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.#u)}markFollowGlobstar(){return this.#t===0||!this.isGlobstar()||!this.#u?!1:(this.#u=!1,!0)}};Nu.Pattern=Eh});var bh=P($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.Ignore=void 0;var _E=Jr(),DI=Ah(),LI=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",wh=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:r,nocase:n,noext:i,noglobstar:s,platform:o=LI}){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 _E.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 DI.Pattern(i,s,0,this.platform),a=new _E.Minimatch(o.globString(),this.mmopts),c=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),c&&(u?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}};$u.Ignore=wh});var RE=P(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.Processor=Ir.SubWalks=Ir.MatchRecord=Ir.HasWalkedCache=void 0;var PE=Jr(),Mu=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()]))}};Ir.HasWalkedCache=Mu;var ju=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)])}};Ir.MatchRecord=ju;var Bu=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())}};Ir.SubWalks=Bu;var Sh=class e{hasWalkedCache;matches=new ju;subwalks=new Bu;patterns;follow;dot;opts;constructor(t,r){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=r?r.copy():new Mu}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 c,u,f=!1;for(;typeof(c=s.pattern())=="string"&&(u=s.rest());)i=i.resolve(c),s=u,f=!0;if(c=s.pattern(),u=s.rest(),f){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof c=="string"){let l=c===".."||c===""||c===".";this.matches.add(i.resolve(c),a,l);continue}else if(c===PE.GLOBSTAR){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let l=u?.pattern(),h=u?.rest();if(!u||(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 c 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(),c=o.pattern(),u=o.rest();c===PE.GLOBSTAR?i.testGlobstar(s,o,u,a):c instanceof RegExp?i.testRegExp(s,c,u,a):i.testString(s,c,u,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))}};Ir.Processor=Sh});var LE=P(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.GlobStream=Pn.GlobWalker=Pn.GlobUtil=void 0;var TI=gh(),FE=bh(),DE=RE(),II=(e,t)=>typeof e=="string"?new FE.Ignore([e],t):Array.isArray(e)?new FE.Ignore(e,t):e,Oo=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=II(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 DE.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,c,u]of n.matches.entries())this.#n(a)||(s++,this.match(a,c,u).then(()=>o()));for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let c=a.readdirCached();a.calledReaddir()?this.walkCB3(a,c,n,o):a.readdirCB((u,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,c,u]of n.matches.entries())this.#n(a)||(s++,this.match(a,c,u).then(()=>o()));for(let[a,c]of n.subwalks.entries())s++,this.walkCB2(a,c,n.child(),o);o()}walkCBSync(t,r,n){this.signal?.aborted&&n(),this.walkCB2Sync(t,r,new DE.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,c,u]of n.matches.entries())this.#n(a)||this.matchSync(a,c,u);for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let c=a.readdirSync();this.walkCB3Sync(a,c,n,o)}o()}walkCB3Sync(t,r,n,i){n=n.filterEntries(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,c,u]of n.matches.entries())this.#n(a)||this.matchSync(a,c,u);for(let[a,c]of n.subwalks.entries())s++,this.walkCB2Sync(a,c,n.child(),o);o()}};Pn.GlobUtil=Oo;var Ch=class extends Oo{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}};Pn.GlobWalker=Ch;var xh=class extends Oo{results;constructor(t,r,n){super(t,r,n),this.results=new TI.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}};Pn.GlobStream=xh});var _h=P(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.Glob=void 0;var kI=Jr(),NI=require("node:url"),qu=OE(),$I=Ah(),Gu=LE(),MI=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Oh=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,NI.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(c=>c.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");t=t.map(c=>c.includes("/")?c:`./**/${c}`)}if(this.pattern=t,this.platform=r.platform||MI,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 c=r.platform==="win32"?qu.PathScurryWin32:r.platform==="darwin"?qu.PathScurryDarwin:r.platform?qu.PathScurryPosix:qu.PathScurry;this.scurry=new c(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(c=>new kI.Minimatch(c,i)),[o,a]=s.reduce((c,u)=>(c[0].push(...u.set),c[1].push(...u.globParts),c),[[],[]]);this.patterns=o.map((c,u)=>{let f=a[u];if(!f)throw new Error("invalid pattern object");return new $I.Pattern(c,f,0,this.platform)})}async walk(){return[...await new Gu.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 Gu.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 Gu.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 Gu.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()}};Uu.Glob=Oh});var Ph=P(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.hasMagic=void 0;var jI=Jr(),BI=(e,t={})=>{Array.isArray(e)||(e=[e]);for(let r of e)if(new jI.Minimatch(r,t).hasMagic())return!0;return!1};Wu.hasMagic=BI});var Lh=P(_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=_o;_e.globStream=Rh;_e.globSync=Fh;_e.globIterateSync=Po;_e.globIterate=Dh;var TE=Jr(),gi=_h(),qI=Ph(),kE=Jr();Object.defineProperty(_e,"escape",{enumerable:!0,get:function(){return kE.escape}});Object.defineProperty(_e,"unescape",{enumerable:!0,get:function(){return kE.unescape}});var GI=_h();Object.defineProperty(_e,"Glob",{enumerable:!0,get:function(){return GI.Glob}});var UI=Ph();Object.defineProperty(_e,"hasMagic",{enumerable:!0,get:function(){return UI.hasMagic}});var WI=bh();Object.defineProperty(_e,"Ignore",{enumerable:!0,get:function(){return WI.Ignore}});function _o(e,t={}){return new gi.Glob(e,t).streamSync()}function Rh(e,t={}){return new gi.Glob(e,t).stream()}function Fh(e,t={}){return new gi.Glob(e,t).walkSync()}async function IE(e,t={}){return new gi.Glob(e,t).walk()}function Po(e,t={}){return new gi.Glob(e,t).iterateSync()}function Dh(e,t={}){return new gi.Glob(e,t).iterate()}_e.streamSync=_o;_e.stream=Object.assign(Rh,{sync:_o});_e.iterateSync=Po;_e.iterate=Object.assign(Dh,{sync:Po});_e.sync=Object.assign(Fh,{stream:_o,iterate:Po});_e.glob=Object.assign(IE,{glob:IE,globSync:Fh,sync:_e.sync,globStream:Rh,stream:_e.stream,globStreamSync:_o,streamSync:_e.streamSync,globIterate:Dh,iterate:_e.iterate,globIterateSync:Po,iterateSync:_e.iterateSync,Glob:gi.Glob,hasMagic:qI.hasMagic,escape:TE.escape,unescape:TE.unescape});_e.glob.glob=_e.glob});var ME=P((TV,$E)=>{"use strict";$E.exports=NE;var Ro;try{Ro=require("bluebird")}catch{Ro=Promise}var ts={};NE.active=ts;function NE(e,t){return Ro.all([e,t]).then(function(n){let i=n[0],s=n[1];return Array.isArray(i)?Ro.all(i).then(function(o){return r(o.join(""),s)}):r(i,s)});function r(n,i){if(!ts[n]){let s=function(){delete ts[n]};ts[n]=new Ro(function(o){return o(i())}),ts[n].then(s,s)}return ts[n]}}});var BE=P(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.sync=rs.isexe=void 0;var HI=require("fs"),zI=require("fs/promises"),YI=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return jE(await(0,zI.stat)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};rs.isexe=YI;var VI=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return jE((0,HI.statSync)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};rs.sync=VI;var jE=(e,t)=>e.isFile()&&KI(e,t),KI=(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,c=e.gid,u=parseInt("100",8),f=parseInt("010",8),l=parseInt("001",8),h=u|f;return!!(o&l||o&f&&s.has(c)||o&u&&a===r||o&h&&r===0)}});var GE=P(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.sync=ns.isexe=void 0;var XI=require("fs"),JI=require("fs/promises"),QI=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return qE(await(0,JI.stat)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};ns.isexe=QI;var ZI=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return qE((0,XI.statSync)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};ns.sync=ZI;var ek=(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},qE=(e,t,r)=>e.isFile()&&ek(t,r)});var WE=P(UE=>{"use strict";Object.defineProperty(UE,"__esModule",{value:!0})});var XE=P(it=>{"use strict";var HE=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]}),tk=it&&it.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),zE=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)&&HE(t,e,r);return tk(t,e),t},rk=it&&it.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&HE(t,e,r)};Object.defineProperty(it,"__esModule",{value:!0});it.sync=it.isexe=it.posix=it.win32=void 0;var YE=zE(BE());it.posix=YE;var VE=zE(GE());it.win32=VE;rk(WE(),it);var nk=process.env._ISEXE_TEST_PLATFORM_||process.platform,KE=nk==="win32"?VE:YE;it.isexe=KE.isexe;it.sync=KE.sync});var Th=P((MV,sA)=>{var{isexe:ik,sync:sk}=XE(),{join:ok,delimiter:ak,sep:JE,posix:QE}=require("path"),ZE=process.platform==="win32",eA=new RegExp(`[${QE.sep}${JE===QE.sep?"":JE}]`.replace(/(\\)/g,"\\$1")),uk=new RegExp(`^\\.${eA.source}`),tA=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),rA=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=ak})=>{let i=e.match(eA)?[""]:[...ZE?[process.cwd()]:[],...(t||"").split(n)];if(ZE){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:[""]}},nA=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&uk.test(t)?t.slice(0,2):"")+ok(r,t)},iA=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=rA(e,t),s=[];for(let o of r){let a=nA(o,e);for(let c of n){let u=a+c;if(await ik(u,{pathExt:i,ignoreErrors:!0})){if(!t.all)return u;s.push(u)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw tA(e)},ck=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=rA(e,t),s=[];for(let o of r){let a=nA(o,e);for(let c of n){let u=a+c;if(sk(u,{pathExt:i,ignoreErrors:!0})){if(!t.all)return u;s.push(u)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw tA(e)};sA.exports=iA;iA.sync=ck});var aA=P((jV,oA)=>{"use strict";var lk=(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},fk=e=>e.length?/[\t\n\r "#$&'()*;<>?\\`|~]/.test(e)?`'${e.replace(/'/g,"'\\''")}'`.replace(/^(?:'')+(?!$)/,"").replace(/\\'''/g,"\\'"):e:"''";oA.exports={cmd:lk,sh:fk}});var hA=P((BV,fA)=>{"use strict";var{spawn:hk}=require("child_process"),dk=require("os"),pk=Th(),uA=aA(),kh=(e,t,r={},n={})=>{if(r.shell)return lA(e,t,r,n);let i,s,o=new Promise((d,p)=>{i=d,s=p}),a=new Error("command failed"),c=[],u=[],f=d=>({cmd:e,args:t,...d,...gk(c,u,r),...n}),l=(d,p)=>{let g=f(p);s(Object.assign(d,g))},h=hk(e,t,r);return o.stdin=h.stdin,o.process=h,h.on("error",l),h.stdout&&(h.stdout.on("data",d=>c.push(d)),h.stdout.on("error",l)),h.stderr&&(h.stderr.on("data",d=>u.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},lA=(e,t,r,n)=>{let i=r.shell;i===!0&&(i=process.platform==="win32"?process.env.ComSpec:"sh");let s={...r,shell:!1},o=[],a=e;if(/(?:^|\\)cmd(?:\.exe)?$/i.test(i)){let u=!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=pk.sync(f,{path:s.env&&cA(s.env,"PATH")||process.env.PATH,pathext:s.env&&cA(s.env,"PATHEXT")||process.env.PATHEXT}).toLowerCase()}catch{h=f.toLowerCase()}u=h.endsWith(".cmd")||h.endsWith(".bat");for(let d of t)a+=` ${uA.cmd(d,u)}`;o.push("/d","/s","/c",a),s.windowsVerbatimArguments=!0}else{for(let u of t)a+=` ${uA.sh(u)}`;o.push("-c",a)}return kh(i,o,s,n)},mk=(e,t={},r={})=>{let n={...t,shell:!0},i=[].concat(e),s=process.platform;if(s==="linux"&&dk.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"),lA(o,i,n,r)};kh.open=mk;var Ih=(e="pipe",t)=>e==="pipe"||e===null?!0:Array.isArray(e)?Ih(e[t],t):!1,gk=(e,t,{stdioString:r=!0,stdio:n})=>{let i={stdout:null,stderr:null};return Ih(n,1)&&(i.stdout=Buffer.concat(e),r&&(i.stdout=i.stdout.toString().trim())),Ih(n,2)&&(i.stderr=Buffer.concat(t),r&&(i.stderr=i.stderr.toString().trim())),i},cA=(e,t)=>{t=t.toLowerCase();for(let r of Object.keys(e).sort())if(r.toLowerCase()===t)return e[r]};fA.exports=kh});var mA=P((qV,pA)=>{"use strict";function dA(e,t){for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!0,configurable:!0});return e}function yk(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 dA(e,r)}catch{r.message=e.message,r.stack=e.stack;let i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(e)),dA(new i,r)}}pA.exports=yk});var yA=P((GV,gA)=>{function ar(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))}gA.exports=ar;ar.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};ar.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};ar.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};ar.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)};ar.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};ar.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};ar.prototype.start=ar.prototype.try;ar.prototype.errors=function(){return this._errors};ar.prototype.attempts=function(){return this._attempts};ar.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 vA=P(yi=>{var vk=yA();yi.operation=function(e){var t=yi.timeouts(e);return new vk(t,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};yi.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};yi.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};yi.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(c){var u=yi.operation(t),f=Array.prototype.slice.call(arguments,1),l=f.pop();f.push(function(h){u.retry(h)||(h&&(arguments[0]=u.mainError()),l.apply(this,arguments))}),u.attempt(function(){c.apply(e,f)})}.bind(e,o),e[s].options=t}}});var AA=P((WV,EA)=>{EA.exports=vA()});var SA=P((HV,bA)=>{"use strict";var Ek=mA(),Ak=AA(),wk=Object.prototype.hasOwnProperty;function wA(e){return e&&e.code==="EPROMISERETRY"&&wk.call(e,"retried")}function bk(e,t){var r,n;return typeof e=="object"&&typeof t=="function"&&(r=t,t=e,e=r),n=Ak.operation(t),new Promise(function(i,s){n.attempt(function(o){Promise.resolve().then(function(){return e(function(a){throw wA(a)&&(a=a.retried),Ek(new Error("Retrying"),"EPROMISERETRY",{retried:a})},o)}).then(i,function(a){wA(a)&&(a=a.retried,n.retry(a||new Error))||s(a)})})})}bA.exports=bk});var jh=P((zV,CA)=>{var Fo=class extends Error{shouldRetry(){return!1}},Nh=class extends Fo{constructor(){super("A git connection error occurred")}shouldRetry(t){return t<3}},$h=class extends Fo{constructor(){super("The git reference could not be found")}},Mh=class extends Fo{constructor(){super("An unknown git error occurred")}};CA.exports={GitConnectionError:Nh,GitPathspecError:$h,GitUnknownError:Mh}});var OA=P((YV,xA)=>{var{GitConnectionError:Sk,GitPathspecError:Ck,GitUnknownError:xk}=jh(),Ok=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("|")),_k=/pathspec .* did not match any file\(s\) known to git/;function Pk(e){let t=e.stderr,r;return Ok.test(t)?r=new Sk(t):_k.test(t)?r=new Ck(t):r=new xk(t),Object.assign(r,e)}xA.exports=Pk});var FA=P((VV,Bh)=>{var _A=require("node:fs"),Rk=require("node:os"),Fk=require("node:path"),Dk=Rf(),PA=Fk.join(Rk.homedir(),".gitconfig"),Do=null,RA=()=>{if(Do===null)try{if(Do={},_A.existsSync(PA)){let e=_A.readFileSync(PA,"utf-8");Do=Dk.parse(e)}}catch{Do={}}return Do},Lk=()=>{let e=RA();return{sshCommandSetInConfig:e?.core?.sshCommand!==void 0,askPassSetInConfig:e?.core?.askpass!==void 0}},Tk=process.env.GIT_SSH_COMMAND!==void 0,Ik=process.env.GIT_ASKPASS!==void 0,{sshCommandSetInConfig:kk,askPassSetInConfig:Nk}=Lk(),$k={...Ik||Nk?{}:{GIT_ASKPASS:"echo"},...Tk||kk?{}:{GIT_SSH_COMMAND:"ssh -oStrictHostKeyChecking=accept-new"}};Bh.exports=(e={})=>({stdioString:!0,...e,shell:!1,env:e.env||{...$k,...process.env}});Bh.exports.loadGitConfig=RA});var LA=P((KV,DA)=>{var Mk=Th(),qh;try{qh=Mk.sync("git")}catch{}DA.exports=(e={})=>e.git?e.git:!qh||e.git===!1?Object.assign(new Error("No git binary found in $PATH"),{code:"ENOGIT"}):qh});var Lo=P((XV,TA)=>{var jk=hA(),Bk=SA(),{log:qk}=io(),Gk=OA(),Uk=FA();TA.exports=(e,t={})=>{let n=LA()(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}),Bk((o,a)=>(a!==1&&qk.silly("git",`Retrying git command: ${i.join(" ")} attempt # ${a}`),jk(n,i,Uk(t)).catch(c=>{let u=Gk(c);if(!u.shouldRetry(a))throw u;o(u)})),s)}});var NA=P((JV,kA)=>{var IA=mt(),Wk=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new IA(e instanceof IA?e.version:e,r).inc(t,n,i).version}catch{return null}};kA.exports=Wk});var jA=P((QV,MA)=>{var $A=hi(),Hk=(e,t)=>{let r=$A(e,null,!0),n=$A(t,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,o=s?r:n,a=s?n:r,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c)return!a.patch&&!a.minor?"major":o.patch?"patch":o.minor?"minor":"major";let f=c?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};MA.exports=Hk});var qA=P((ZV,BA)=>{var zk=mt(),Yk=(e,t)=>new zk(e,t).major;BA.exports=Yk});var UA=P((eK,GA)=>{var Vk=mt(),Kk=(e,t)=>new Vk(e,t).minor;GA.exports=Kk});var HA=P((tK,WA)=>{var Xk=mt(),Jk=(e,t)=>new Xk(e,t).patch;WA.exports=Jk});var YA=P((rK,zA)=>{var Qk=hi(),Zk=(e,t)=>{let r=Qk(e,t);return r&&r.prerelease.length?r.prerelease:null};zA.exports=Zk});var ur=P((nK,KA)=>{var VA=mt(),eN=(e,t,r)=>new VA(e,r).compare(new VA(t,r));KA.exports=eN});var JA=P((iK,XA)=>{var tN=ur(),rN=(e,t,r)=>tN(t,e,r);XA.exports=rN});var ZA=P((sK,QA)=>{var nN=ur(),iN=(e,t)=>nN(e,t,!0);QA.exports=iN});var Hu=P((oK,tw)=>{var ew=mt(),sN=(e,t,r)=>{let n=new ew(e,r),i=new ew(t,r);return n.compare(i)||n.compareBuild(i)};tw.exports=sN});var nw=P((aK,rw)=>{var oN=Hu(),aN=(e,t)=>e.sort((r,n)=>oN(r,n,t));rw.exports=aN});var sw=P((uK,iw)=>{var uN=Hu(),cN=(e,t)=>e.sort((r,n)=>uN(n,r,t));iw.exports=cN});var To=P((cK,ow)=>{var lN=ur(),fN=(e,t,r)=>lN(e,t,r)>0;ow.exports=fN});var zu=P((lK,aw)=>{var hN=ur(),dN=(e,t,r)=>hN(e,t,r)<0;aw.exports=dN});var Gh=P((fK,uw)=>{var pN=ur(),mN=(e,t,r)=>pN(e,t,r)===0;uw.exports=mN});var Uh=P((hK,cw)=>{var gN=ur(),yN=(e,t,r)=>gN(e,t,r)!==0;cw.exports=yN});var Yu=P((dK,lw)=>{var vN=ur(),EN=(e,t,r)=>vN(e,t,r)>=0;lw.exports=EN});var Vu=P((pK,fw)=>{var AN=ur(),wN=(e,t,r)=>AN(e,t,r)<=0;fw.exports=wN});var Wh=P((mK,hw)=>{var bN=Gh(),SN=Uh(),CN=To(),xN=Yu(),ON=zu(),_N=Vu(),PN=(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 bN(e,r,n);case"!=":return SN(e,r,n);case">":return CN(e,r,n);case">=":return xN(e,r,n);case"<":return ON(e,r,n);case"<=":return _N(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};hw.exports=PN});var pw=P((gK,dw)=>{var RN=mt(),FN=hi(),{safeRe:Ku,t:Xu}=Vi(),DN=(e,t)=>{if(e instanceof RN)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?Ku[Xu.COERCEFULL]:Ku[Xu.COERCE]);else{let c=t.includePrerelease?Ku[Xu.COERCERTLFULL]:Ku[Xu.COERCERTL],u;for(;(u=c.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),c.lastIndex=u.index+u[1].length+u[2].length;c.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 FN(`${n}.${i}.${s}${o}${a}`,t)};dw.exports=DN});var gw=P((yK,mw)=>{var Hh=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}};mw.exports=Hh});var cr=P((vK,Aw)=>{var LN=/\s+/g,zh=class e{constructor(t,r){if(r=IN(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof Yh)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(LN," "),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=>!vw(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&&qN(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&&jN)|(this.options.loose&&BN))+":"+t,i=yw.get(n);if(i)return i;let s=this.options.loose,o=s?kt[Ft.HYPHENRANGELOOSE]:kt[Ft.HYPHENRANGE];t=t.replace(o,JN(this.options.includePrerelease)),Ge("hyphen replace",t),t=t.replace(kt[Ft.COMPARATORTRIM],NN),Ge("comparator trim",t),t=t.replace(kt[Ft.TILDETRIM],$N),Ge("tilde trim",t),t=t.replace(kt[Ft.CARETTRIM],MN),Ge("caret trim",t);let a=t.split(" ").map(l=>GN(l,this.options)).join(" ").split(/\s+/).map(l=>XN(l,this.options));s&&(a=a.filter(l=>(Ge("loose invalid filter",l,this.options),!!l.match(kt[Ft.COMPARATORLOOSE])))),Ge("range list",a);let c=new Map,u=a.map(l=>new Yh(l,this.options));for(let l of u){if(vw(l))return[l];c.set(l.value,l)}c.size>1&&c.has("")&&c.delete("");let f=[...c.values()];return yw.set(n,f),f}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>Ew(n,r)&&t.set.some(i=>Ew(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 kN(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(QN(this.set[r],t,this.options))return!0;return!1}};Aw.exports=zh;var TN=gw(),yw=new TN,IN=tu(),Yh=Io(),Ge=so(),kN=mt(),{safeRe:kt,t:Ft,comparatorTrimReplace:NN,tildeTrimReplace:$N,caretTrimReplace:MN}=Vi(),{FLAG_INCLUDE_PRERELEASE:jN,FLAG_LOOSE:BN}=oo(),vw=e=>e.value==="<0.0.0-0",qN=e=>e.value==="",Ew=(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},GN=(e,t)=>(Ge("comp",e,t),e=HN(e,t),Ge("caret",e),e=UN(e,t),Ge("tildes",e),e=YN(e,t),Ge("xrange",e),e=KN(e,t),Ge("stars",e),e),Dt=e=>!e||e.toLowerCase()==="x"||e==="*",UN=(e,t)=>e.trim().split(/\s+/).map(r=>WN(r,t)).join(" "),WN=(e,t)=>{let r=t.loose?kt[Ft.TILDELOOSE]:kt[Ft.TILDE];return e.replace(r,(n,i,s,o,a)=>{Ge("tilde",e,n,i,s,o,a);let c;return Dt(i)?c="":Dt(s)?c=`>=${i}.0.0 <${+i+1}.0.0-0`:Dt(o)?c=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(Ge("replaceTilde pr",a),c=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):c=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,Ge("tilde return",c),c})},HN=(e,t)=>e.trim().split(/\s+/).map(r=>zN(r,t)).join(" "),zN=(e,t)=>{Ge("caret",e,t);let r=t.loose?kt[Ft.CARETLOOSE]:kt[Ft.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,a,c)=>{Ge("caret",e,i,s,o,a,c);let u;return Dt(s)?u="":Dt(o)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Dt(a)?s==="0"?u=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:c?(Ge("replaceCaret pr",c),s==="0"?o==="0"?u=`>=${s}.${o}.${a}-${c} <${s}.${o}.${+a+1}-0`:u=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.${a}-${c} <${+s+1}.0.0-0`):(Ge("no pr"),s==="0"?o==="0"?u=`>=${s}.${o}.${a}${n} <${s}.${o}.${+a+1}-0`:u=`>=${s}.${o}.${a}${n} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),Ge("caret return",u),u})},YN=(e,t)=>(Ge("replaceXRanges",e,t),e.split(/\s+/).map(r=>VN(r,t)).join(" ")),VN=(e,t)=>{e=e.trim();let r=t.loose?kt[Ft.XRANGELOOSE]:kt[Ft.XRANGE];return e.replace(r,(n,i,s,o,a,c)=>{Ge("xRange",e,n,i,s,o,a,c);let u=Dt(s),f=u||Dt(o),l=f||Dt(a),h=l;return i==="="&&h&&(i=""),c=t.includePrerelease?"-0":"",u?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==="<"&&(c="-0"),n=`${i+s}.${o}.${a}${c}`):f?n=`>=${s}.0.0${c} <${+s+1}.0.0-0`:l&&(n=`>=${s}.${o}.0${c} <${s}.${+o+1}.0-0`),Ge("xRange return",n),n})},KN=(e,t)=>(Ge("replaceStars",e,t),e.trim().replace(kt[Ft.STAR],"")),XN=(e,t)=>(Ge("replaceGTE0",e,t),e.trim().replace(kt[t.includePrerelease?Ft.GTE0PRE:Ft.GTE0],"")),JN=e=>(t,r,n,i,s,o,a,c,u,f,l,h)=>(Dt(n)?r="":Dt(i)?r=`>=${n}.0.0${e?"-0":""}`:Dt(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Dt(u)?c="":Dt(f)?c=`<${+u+1}.0.0-0`:Dt(l)?c=`<${u}.${+f+1}.0-0`:h?c=`<=${u}.${f}.${l}-${h}`:e?c=`<${u}.${f}.${+l+1}-0`:c=`<=${c}`,`${r} ${c}`.trim()),QN=(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!==Yh.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=P((EK,Ow)=>{var ko=Symbol("SemVer ANY"),Xh=class e{static get ANY(){return ko}constructor(t,r){if(r=ww(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),Kh("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===ko?this.value="":this.value=this.operator+this.semver.version,Kh("comp",this)}parse(t){let r=this.options.loose?bw[Sw.COMPARATORLOOSE]:bw[Sw.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 Cw(n[2],this.options.loose):this.semver=ko}toString(){return this.value}test(t){if(Kh("Comparator.test",t,this.options.loose),this.semver===ko||t===ko)return!0;if(typeof t=="string")try{t=new Cw(t,this.options)}catch{return!1}return Vh(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 xw(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new xw(this.value,r).test(t.semver):(r=ww(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("=")||Vh(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||Vh(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};Ow.exports=Xh;var ww=tu(),{safeRe:bw,t:Sw}=Vi(),Vh=Wh(),Kh=so(),Cw=mt(),xw=cr()});var is=P((AK,_w)=>{var ZN=cr(),e2=(e,t,r)=>{try{t=new ZN(t,r)}catch{return!1}return t.test(e)};_w.exports=e2});var Rw=P((wK,Pw)=>{var t2=cr(),r2=(e,t)=>new t2(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));Pw.exports=r2});var Dw=P((bK,Fw)=>{var n2=mt(),i2=cr(),s2=(e,t,r)=>{let n=null,i=null,s=null;try{s=new i2(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};Fw.exports=s2});var Tw=P((SK,Lw)=>{var o2=mt(),a2=cr(),u2=(e,t,r)=>{let n=null,i=null,s=null;try{s=new a2(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new o2(n,r))}),n};Lw.exports=u2});var Nw=P((CK,kw)=>{var Jh=mt(),c2=cr(),Iw=To(),l2=(e,t)=>{e=new c2(e,t);let r=new Jh("0.0.0");if(e.test(r)||(r=new Jh("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 Jh(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||Iw(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||Iw(r,s))&&(r=s)}return r&&e.test(r)?r:null};kw.exports=l2});var Qh=P((xK,$w)=>{var f2=cr(),h2=(e,t)=>{try{return new f2(e,t).range||"*"}catch{return null}};$w.exports=h2});var Ju=P((OK,qw)=>{var d2=mt(),Bw=Io(),{ANY:p2}=Bw,m2=cr(),g2=is(),Mw=To(),jw=zu(),y2=Vu(),v2=Yu(),E2=(e,t,r,n)=>{e=new d2(e,n),t=new m2(t,n);let i,s,o,a,c;switch(r){case">":i=Mw,s=y2,o=jw,a=">",c=">=";break;case"<":i=jw,s=v2,o=Mw,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(g2(e,t,n))return!1;for(let u=0;u<t.set.length;++u){let f=t.set[u],l=null,h=null;if(f.forEach(d=>{d.semver===p2&&(d=new Bw(">=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===c||(!h.operator||h.operator===a)&&s(e,h.semver))return!1;if(h.operator===c&&o(e,h.semver))return!1}return!0};qw.exports=E2});var Uw=P((_K,Gw)=>{var A2=Ju(),w2=(e,t,r)=>A2(e,t,">",r);Gw.exports=w2});var Hw=P((PK,Ww)=>{var b2=Ju(),S2=(e,t,r)=>b2(e,t,"<",r);Ww.exports=S2});var Vw=P((RK,Yw)=>{var zw=cr(),C2=(e,t,r)=>(e=new zw(e,r),t=new zw(t,r),e.intersects(t,r));Yw.exports=C2});var Xw=P((FK,Kw)=>{var x2=is(),O2=ur();Kw.exports=(e,t,r)=>{let n=[],i=null,s=null,o=e.sort((f,l)=>O2(f,l,r));for(let f of o)x2(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 c=a.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t}});var rb=P((DK,tb)=>{var Jw=cr(),ed=Io(),{ANY:Zh}=ed,No=is(),td=ur(),_2=(e,t,r={})=>{if(e===t)return!0;e=new Jw(e,r),t=new Jw(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let o=R2(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},P2=[new ed(">=0.0.0-0")],Qw=[new ed(">=0.0.0")],R2=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Zh){if(t.length===1&&t[0].semver===Zh)return!0;r.includePrerelease?e=P2:e=Qw}if(t.length===1&&t[0].semver===Zh){if(r.includePrerelease)return!0;t=Qw}let n=new Set,i,s;for(let d of e)d.operator===">"||d.operator===">="?i=Zw(i,d,r):d.operator==="<"||d.operator==="<="?s=eb(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=td(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&&!No(d,String(i),r)||s&&!No(d,String(s),r))return null;for(let p of t)if(!No(d,String(p),r))return!1;return!0}let a,c,u,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===">=",u=u||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=Zw(i,d,r),a===d&&a!==i)return!1}else if(i.operator===">="&&!No(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(c=eb(s,d,r),c===d&&c!==s)return!1}else if(s.operator==="<="&&!No(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&u&&!s&&o!==0||s&&f&&!i&&o!==0||h||l)},Zw=(e,t,r)=>{if(!e)return t;let n=td(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},eb=(e,t,r)=>{if(!e)return t;let n=td(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};tb.exports=_2});var $o=P((LK,sb)=>{var rd=Vi(),nb=oo(),F2=mt(),ib=jf(),D2=hi(),L2=ao(),T2=au(),I2=NA(),k2=jA(),N2=qA(),$2=UA(),M2=HA(),j2=YA(),B2=ur(),q2=JA(),G2=ZA(),U2=Hu(),W2=nw(),H2=sw(),z2=To(),Y2=zu(),V2=Gh(),K2=Uh(),X2=Yu(),J2=Vu(),Q2=Wh(),Z2=pw(),e$=Io(),t$=cr(),r$=is(),n$=Rw(),i$=Dw(),s$=Tw(),o$=Nw(),a$=Qh(),u$=Ju(),c$=Uw(),l$=Hw(),f$=Vw(),h$=Xw(),d$=rb();sb.exports={parse:D2,valid:L2,clean:T2,inc:I2,diff:k2,major:N2,minor:$2,patch:M2,prerelease:j2,compare:B2,rcompare:q2,compareLoose:G2,compareBuild:U2,sort:W2,rsort:H2,gt:z2,lt:Y2,eq:V2,neq:K2,gte:X2,lte:J2,cmp:Q2,coerce:Z2,Comparator:e$,Range:t$,satisfies:r$,toComparators:n$,maxSatisfying:i$,minSatisfying:s$,minVersion:o$,validRange:a$,outside:u$,gtr:c$,ltr:l$,intersects:f$,simplifyRange:h$,subset:d$,SemVer:F2,re:rd.re,src:rd.src,tokens:rd.t,SEMVER_SPEC_VERSION:nb.SEMVER_SPEC_VERSION,RELEASE_TYPES:nb.RELEASE_TYPES,compareIdentifiers:ib.compareIdentifiers,rcompareIdentifiers:ib.rcompareIdentifiers}});var ub=P((TK,ab)=>{var ob=$o();ab.exports=e=>p$(e.reduce(A$,{versions:{},"dist-tags":{},refs:{},shas:{}}));var p$=e=>y$(m$(g$(e))),m$=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),g$=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),y$=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},v$=e=>e.startsWith("refs/tags/")?"tag":e.startsWith("refs/heads/")?"branch":e.startsWith("refs/pull/")?"pull":e==="HEAD"?"head":"other",E$=e=>{let t=e.trim().split(/\s+/,2);if(t.length<2)return null;let r=t[0].trim(),n=t[1].trim(),i=v$(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}},A$=(e,t)=>{let r=E$(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&&ob.valid(n[1],!0)&&(e.versions[ob.clean(n[1],!0)]=r)}return e}});var nd=P((IK,lb)=>{var w$=ME(),b$=Lo(),{LRUCache:S$}=lu(),cb=new S$({max:100,ttl:5*60*1e3}),C$=ub();lb.exports=async(e,t={})=>{if(!t.noGitRevCache){let r=cb.get(e);if(r)return r}return w$(`ls-remote:${e}`,()=>b$(["ls-remote",e],t).then(({stdout:r})=>C$(r.trim().split(`
|
|
11
|
+
`))).then(r=>(cb.set(e,r),r)))}});var hb=P(fb=>{var x$=e=>(e.fakePlatform||process.platform)==="win32";fb.isWindows=x$});var pb=P((NK,db)=>{"use strict";var{builtinModules:O$}=require("module"),_$=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),P$=["node_modules","favicon.ico"];function R$(e){var t=[],r=[];if(e===null)return r.push("name cannot be null"),Mo(t,r);if(e===void 0)return r.push("name cannot be undefined"),Mo(t,r);if(typeof e!="string")return r.push("name must be a string"),Mo(t,r);if(e.length||r.push("name length must be greater than zero"),e.match(/^\./)&&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"),P$.forEach(function(o){e.toLowerCase()===o&&r.push(o+" is a blacklisted name")}),O$.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(_$);if(n){var i=n[1],s=n[2];if(encodeURIComponent(i)===i&&encodeURIComponent(s)===s)return Mo(t,r)}r.push("name can only contain URL-friendly characters")}return Mo(t,r)}var Mo=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};db.exports=R$});var bb=P(($K,Bo)=>{"use strict";Bo.exports=jo;Bo.exports.resolve=wb;Bo.exports.toPurl=N$;Bo.exports.Result=ss;var{URL:vi}=require("url"),F$=hu(),mb=$o(),Rn=global.FAKE_WINDOWS?require("path").win32:require("path"),vb=pb(),{homedir:D$}=require("os"),{log:L$}=io(),sd=process.platform==="win32"||global.FAKE_WINDOWS,Eb=sd?/\\|[/]/:/[/]/,Ab=/^(?:git[+])?[a-z]+:/i,T$=/^[^@]+@[^:.]+\.[^:]+:.+$/i,od=/[.](?:tgz|tar.gz|tar)$/i,I$=/:[0-9]+(\/|$)/i;function jo(e,t){let r,n;if(typeof e=="object")return e instanceof ss&&(!t||t===e.where)?e:e.name&&e.rawSpec?jo.resolve(e.name,e.rawSpec,t||e.where):jo(e.raw,t||e.where);let i=e[0]==="@"?e.slice(1).indexOf("@")+1:e.indexOf("@"),s=i>0?e.slice(0,i):e;return Ab.test(e)?n=e:T$.test(e)?n=`git+ssh://${e}`:s[0]!=="@"&&(Eb.test(s)||od.test(s))?n=e:i>0?(r=s,n=e.slice(i+1)||"*"):vb(e).validForOldPackages?(r=e,n="*"):n=e,wb(r,n,t,e)}var k$=sd?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function wb(e,t,r,n){let i=new ss({raw:n,name:e,rawSpec:t,fromArgument:n!=null});if(e&&i.setName(e),t&&(k$.test(t)||/^file:/i.test(t)))return yb(i,r);if(t&&/^npm:/i.test(t))return U$(i,r);let s=F$.fromUrl(t,{noGitPlus:!0,noCommittish:!0});return s?B$(i,s):t&&Ab.test(t)?G$(i):t&&(Eb.test(t)||od.test(t))?yb(i,r):W$(i)}var gb="https://registry.npmjs.org";function N$(e,t=gb){let r=jo(e);if(r.type!=="version")throw j$(r.type,r.raw);let n="pkg:npm/"+r.name.replace(/^@/,"%40")+"@"+r.rawSpec;return t!==gb&&(n+="?repository_url="+t),n}function $$(e,t,r){let n=new Error(`Invalid package name "${e}" of package "${r}": ${t.errors.join("; ")}.`);return n.code="EINVALIDPACKAGENAME",n}function M$(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 j$(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}function ss(e){this.type=e.type,this.registry=e.registry,this.where=e.where,e.raw==null?this.raw=e.name?e.name+"@"+e.rawSpec:e.rawSpec:this.raw=e.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=e.rawSpec||"",this.saveSpec=e.saveSpec,this.fetchSpec=e.fetchSpec,e.name&&this.setName(e.name),this.gitRange=e.gitRange,this.gitCommittish=e.gitCommittish,this.gitSubdir=e.gitSubdir,this.hosted=e.hosted}ss.prototype.setName=function(e){let t=vb(e);if(!t.validForOldPackages)throw $$(e,t,this.raw);return this.name=e,this.scope=e[0]==="@"?e.slice(0,e.indexOf("/")):void 0,this.escapedName=e.replace("/","%2f"),this};ss.prototype.toString=function(){let e=[];this.name!=null&&this.name!==""&&e.push(this.name);let t=this.saveSpec||this.fetchSpec||this.rawSpec;return t!=null&&t!==""&&e.push(t),e.length?e.join("@"):this.raw};ss.prototype.toJSON=function(){let e=Object.assign({},this);return delete e.hosted,e};function id(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}L$.warn("npm-package-arg",`ignoring unknown key "${n}"`)}}function yb(e,t){t||(t=process.cwd()),e.type=od.test(e.rawSpec)?"file":"directory",e.where=t;let r,n,s=(/^file:/.test(e.rawSpec)?"":"file:")+e.rawSpec,o=s.replace(/^file:/,"");try{n=new vi(s,`file://${Rn.resolve(t)}/`),r=new vi(s)}catch(u){let f=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(f,{raw:e.rawSpec,spec:e,where:t,originalError:u})}if(n.host&&n.host!=="localhost"){let u=e.rawSpec.replace(/^file:\/\//,"file:///");n=new vi(u,`file://${Rn.resolve(t)}/`),r=new vi(u),o=u.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(o)){let u=e.rawSpec.replace(/^file:\/{1,3}/,"file:");n=new vi(u,`file://${Rn.resolve(t)}/`),r=new vi(u),o=u.replace(/^file:/,"")}let a=decodeURIComponent(r.pathname),c=decodeURIComponent(n.pathname);return sd&&(a=a.replace(/^\/+([a-z]:\/)/i,"$1"),c=c.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(a)?(e.saveSpec=`file:${a.substr(1)}`,c=Rn.resolve(D$(),a.substr(3))):Rn.isAbsolute(o)?e.saveSpec=`file:${Rn.resolve(c)}`:e.saveSpec=`file:${Rn.relative(t,c)}`,e.fetchSpec=Rn.resolve(t,c),e}function B$(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(),id(e,t.committish),e}function q$(e,t){let r=new Error(`Unsupported URL Type "${e}": ${t}`);return r.code="EUNSUPPORTEDPROTOCOL",r}function G$(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(I$))return e.type="git",id(e,n[2]),e.fetchSpec=n[1],e}else t.startsWith("git+file://")&&(t=t.replace(/\\/g,"/"));let r=new vi(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",id(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 q$(r.protocol,t)}return e}function U$(e,t){let r=jo(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 W$(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let r=mb.valid(t,!0),n=mb.validRange(t,!0);if(r)e.type="version";else if(n)e.type="range";else{if(encodeURIComponent(t)!==t)throw M$(t,e.raw);e.type="tag"}return e}});var _b=P((MK,Ob)=>{var Ei=require("node:process"),H$=require("node:os"),z$=require("node:fs");function Y$(e){return e.includes("libc.musl-")||e.includes("ld-musl-")}function Sb(){return Ei.platform}function Cb(){return Ei.arch}var V$="/usr/bin/ldd";function K$(){try{let e=z$.readFileSync(V$,"utf-8");return e.includes("musl")?"musl":e.includes("GNU C Library")?"glibc":null}catch{return}}function X$(){let e=Ei.report.excludeNetwork;Ei.report.excludeNetwork=!0;let t=Ei.report.getReport();return Ei.report.excludeNetwork=e,t.header?.glibcVersionRuntime?en="glibc":Array.isArray(t.sharedObjects)&&t.sharedObjects.some(Y$)?en="musl":en=null,en}var en;function xb(e){if(e==="linux")return en===void 0&&(en=K$(),en===void 0&&(en=X$())),en}function J$(e={}){let t=e.os||Sb();return{cpu:{name:e.cpu||Cb()},libc:{name:e.libc||xb(t)},os:{name:t,version:e.osVersion||H$.release()},packageManager:{name:"npm",version:e.npmVersion},runtime:{name:"node",version:e.nodeVersion||Ei.version}}}Ob.exports={cpu:Cb,libc:xb,os:Sb,devEngines:J$}});var Rb=P((jK,Pb)=>{var Q$=is(),Z$=Qh(),eM=["ignore","warn","error","download"],tM=["name","version","onFail"],rM=["packageManager","runtime","cpu","libc","os"];function nM(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(!tM.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(!eM.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(Z$(e.version)){if(!Q$(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 iM(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(!rM.includes(i))throw new Error(`Invalid property "${i}"`);let s=e[i],o=[s].flat(),a=t[i]||{};if(o.length===0)continue;let c=[];for(let f of o){let l=nM(f,a,{...r,engine:i});l&&c.push(l)}if(c.length===o.length){let l=o[o.length-1].onFail||"error";l==="download"&&(l="error");let h=Object.assign(new Error(`Invalid engine "${i}"`),{errors:c,engine:i,isWarn:l==="warn",isError:l==="error",current:a,required:s});n.push(h)}}return n}Pb.exports={checkDevEngines:iM}});var Lb=P((BK,Db)=>{var Fb=$o(),Qu=_b(),{checkDevEngines:sM}=Rb(),oM=(e,t,r,n=!1)=>{let i=n?null:r,s=e.engines,o={includePrerelease:!0};if(!s)return;let a=i&&s.node&&!Fb.satisfies(i,s.node,o),c=t&&s.npm&&!Fb.satisfies(t,s.npm,o);if(a||c)throw Object.assign(new Error("Unsupported engine"),{pkgid:e._id,current:{node:r,npm:t},required:s,code:"EBADENGINE"})},aM=(e,t=!1,r={})=>{if(t)return;let n=r.os||Qu.os(),i=r.cpu||Qu.cpu(),s=r.libc||Qu.libc(n),o=e.os?ad(n,e.os):!0,a=e.cpu?ad(i,e.cpu):!0,c=e.libc?ad(s,e.libc):!0;if(e.libc&&!s&&(c=!1),!o||!a||!c)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"})},ad=(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};Db.exports={checkEngine:oM,checkPlatform:aM,checkDevEngines:sM,currentEnv:Qu}});var Nb=P((qK,kb)=>{var{join:Tb,basename:Ib}=require("path"),uM=e=>e.bin?typeof e.bin=="string"?cM(e):Array.isArray(e.bin)?lM(e):typeof e.bin=="object"?cd(e):ud(e):ud(e),cM=e=>e.name?(e.bin={[e.name]:e.bin},cd(e)):ud(e),lM=e=>(e.bin=e.bin.reduce((t,r)=>(t[Ib(r)]=r,t),{}),cd(e)),ud=e=>(delete e.bin,e),cd=e=>{let t=e.bin,r={},n=!1;return Object.keys(t).forEach(i=>{let s=Tb("/",Ib(i.replace(/\\|:/g,"/"))).slice(1);if(typeof t[i]!="string"||!s)return;let o=Tb("/",t[i].replace(/\\/g,"/")).replace(/\\/g,"/").slice(1);o&&(r[s]=o,n=!0)}),n?e.bin=r:delete e.bin,e};kb.exports=uM});var jb=P((GK,Mb)=>{"use strict";var $b=bb(),qo=$o(),{checkEngine:fM}=Lb(),hM=Nb(),ld=(e,t,r)=>{try{return fM(e,t,r),!0}catch{return!1}},Zu=(e,t,r)=>!e||!e[t]||Date.parse(e[t])<=r,dM={includePrerelease:!0,loose:!0},ec=(e,t)=>t&&qo.satisfies(e,t,dM),fd=(e,t)=>e&&ec(e.version,t)?{...e,_shouldAvoid:!0}:e,Go=(e,t,r)=>{let{defaultTag:n="latest",before:i=null,nodeVersion:s=process.version,npmVersion:o=null,includeStaged:a=!1,avoid:c=null,avoidStrict:u=!1}=r,{name:f,time:l}=e,h=e.versions||{};if(u){let _={...r,avoidStrict:!1},$=Go(e,t,_);if(!$||!$._shouldAvoid)return $;let O=Go(e,`^${$.version}`,_);if(!O||!O._shouldAvoid)return{...O,_outsideDependencyRange:!0,_isSemVerMajor:!1};let m=Go(e,"*",_);if(!m||!m._shouldAvoid)return{...m,_outsideDependencyRange:!0,_isSemVerMajor:!0};throw Object.assign(new Error(`No avoidable versions for ${f}`),{code:"ETARGET",name:f,wanted:t,avoid:c,before:i,versions:Object.keys(h)})}let d=a&&e.stagedVersions&&e.stagedVersions.versions||{},p=e.policyRestrictions&&e.policyRestrictions.versions||{},g=i&&l?+new Date(i):1/0,x=$b.resolve(f,t||n).type,S=e["dist-tags"]||{};if(x!=="tag"&&x!=="version"&&x!=="range")throw new Error("Only tag, version, and range are supported");if(t&&x==="tag"){let _=S[t];return Zu(l,_,g)?fd(h[_]||d[_]||p[_],c):Go(e,`<=${_}`,r)}if(t&&x==="version"){let _=qo.clean(t,{loose:!0}),$=h[_]||d[_]||p[_];return Zu(l,_,g)?fd($,c):null}let I=x==="range"?t:"*",R=S[n];if(R&&(I==="*"||qo.satisfies(R,I,{loose:!0}))&&!p[R]&&!ec(R,c)){let _=h[R];if(_&&Zu(l,R,g)&&ld(_,o,s)&&!_.deprecated&&!d[R])return _}let w=Object.entries(h).concat(Object.entries(d)).concat(Object.entries(p)).filter(([_])=>Zu(l,_,g));if(!w.length)throw Object.assign(new Error(`No versions available for ${f}`),{code:"ENOVERSIONS",name:f,type:x,wanted:t,before:i,versions:Object.keys(h)});let D={loose:!0},L=w.filter(([_])=>qo.satisfies(_,I,{loose:!0})).sort((_,$)=>{let[O,m]=_,[v,E]=$,C=!ec(O,c),A=!ec(v,c),b=!p[O],T=!p[v],N=!d[O],M=!d[v],W=!m.deprecated,V=!E.deprecated,X=ld(m,o,s),he=ld(E,o,s);return A-C||T-b||M-N||(V&&he)-(W&&X)||he-X||V-W||qo.rcompare(O,v,D)});return fd(L[0]&&L[0][1],c)};Mb.exports=(e,t,r={})=>{let n=Go(e,t,r),i=n&&hM(n),s=e.policyRestrictions,o=s&&s.versions||{};if(i&&!o[i.version])return i;let{before:a=null,defaultTag:c="latest"}=r,u=a?new Date(a).toLocaleString():"",{name:f}=e,l=`${f}@${t}`+(a?` with a date before ${u}`:""),h=i&&!!o[i.version],d=h?s.message:"",p=h?`Could not download ${l} due to policy violations:
|
|
12
|
+
${d}`:`No matching version found for ${l}.`,g=h?"E403":"ETARGET";throw Object.assign(new Error(p),{code:g,type:$b.resolve(e.name,t).type,wanted:t,versions:Object.keys(e.versions??{}),name:f,distTags:e["dist-tags"],defaultTag:c})}});var Ub=P((UK,Gb)=>{var pM=new Set(["github.com","gist.github.com","gitlab.com","bitbucket.com","bitbucket.org"]),{parse:mM}=require("url"),Bb=require("path"),gM=nd(),Uo=Lo(),{isWindows:tc}=hb(),yM=jb(),hd=require("fs/promises");Gb.exports=(e,t="HEAD",r=null,n={})=>gM(e,n).then(i=>EM(e,i,t,AM(i,t,n),r||vM(e,n.cwd),n));var dd=(e,t)=>t.gitShallow===!1||t.gitShallow?t.gitShallow:pM.has(mM(e).host),vM=(e,t=process.cwd())=>Bb.resolve(t,Bb.basename(e.replace(/[/\\]?\.git$/,""))),EM=(e,t,r,n,i,s)=>n?n.sha===t.refs.HEAD.sha?SM(e,n,i,s):n.type==="tag"||n.type==="branch"?bM(e,n,i,s):wM(e,n,i,s):CM(e,r,i,s),AM=(e,t,r)=>{let{spec:n={}}=r;return t=n.gitCommittish||t,e?n.gitRange?yM(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},wM=(e,t,r,n)=>{let i=dd(e,n),s=["fetch","origin",t.rawRef].concat(i?["--depth=1"]:[]),o=a=>Uo(a,{...n,cwd:r});return hd.mkdir(r,{recursive:!0}).then(()=>o(["init"])).then(()=>tc(n)?o(["config","--local","--add","core.longpaths","true"]):null).then(()=>o(["remote","add","origin",e])).then(()=>o(s)).then(()=>o(["checkout",t.sha])).then(()=>qb(r,n)).then(()=>t.sha)},bM=(e,t,r,n)=>{let i=["clone","-b",t.ref,e,r,"--recurse-submodules"];return dd(e,n)&&i.push("--depth=1"),tc(n)&&i.push("--config","core.longpaths=true"),Uo(i,n).then(()=>t.sha)},SM=(e,t,r,n)=>{let i=["clone",e,r,"--recurse-submodules"];return dd(e,n)&&i.push("--depth=1"),tc(n)&&i.push("--config","core.longpaths=true"),Uo(i,n).then(()=>t.sha)},qb=async(e,t)=>await hd.stat(`${e}/.gitmodules`).then(()=>!0).catch(()=>!1)?Uo(["submodule","update","-q","--init","--recursive"],{...t,cwd:e}):null,CM=(e,t,r,n)=>{let i=tc(n)?["--config","core.longpaths=true"]:[],s=["clone","--mirror","-q",e,r+"/.git"],o=a=>Uo(a,{...n,cwd:r});return hd.mkdir(r,{recursive:!0}).then(()=>o(s.concat(i))).then(()=>o(["init"])).then(()=>o(["checkout",t])).then(()=>qb(r,n)).then(()=>o(["rev-parse","--revs-only","HEAD"])).then(({stdout:a})=>a.trim())}});var pd=P((WK,Wb)=>{var{stat:xM}=require("fs/promises");Wb.exports=({cwd:e=process.cwd()}={})=>xM(e+"/.git").then(()=>!0,()=>!1)});var zb=P((HK,Hb)=>{var OM=pd(),{dirname:_M}=require("path");Hb.exports=async({cwd:e=process.cwd(),root:t}={})=>{for(;;){if(await OM({cwd:e}))return e;let r=_M(e);if(e===t||e===r)return null;e=r}}});var Vb=P((zK,Yb)=>{var PM=Lo();Yb.exports=(e={})=>PM(["status","--porcelain=v1","-uno"],e).then(t=>!t.stdout.trim().split(/\r?\n+/).map(r=>r.trim()).filter(r=>r).length)});var Xb=P((YK,Kb)=>{Kb.exports={clone:Ub(),revs:nd(),spawn:Lo(),is:pd(),find:zb(),isClean:Vb(),errors:jh()}});var md=P((VK,RM)=>{RM.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","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","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","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","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","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-Schema","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","FSFULLRWD","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","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","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","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","MIT","MIT-0","MIT-CMU","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","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","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","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","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","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","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","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var Jb=P((KK,FM)=>{FM.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 Qb=P((XK,DM)=>{DM.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 eS=P((JK,Zb)=>{"use strict";var LM=[].concat(md()).concat(Jb()),TM=Qb();Zb.exports=function(e){var t=0;function r(){return t<e.length}function n(p){if(p instanceof RegExp){var g=e.slice(t),y=g.match(p);if(y)return t+=y[0].length,y[0]}else if(e.indexOf(p,t)===t)return t+=p.length,p}function i(){n(/[ ]*/)}function s(){for(var p,g=["WITH","AND","OR","(",")",":","+"],y=0;y<g.length&&(p=n(g[y]),!p);y++);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 c(){if(n("DocumentRef-")){var p=a();return{type:"DOCUMENTREF",string:p}}}function u(){if(n("LicenseRef-")){var p=a();return{type:"LICENSEREF",string:p}}}function f(){var p=t,g=o();if(LM.indexOf(g)!==-1)return{type:"LICENSE",string:g};if(TM.indexOf(g)!==-1)return{type:"EXCEPTION",string:g};t=p}function l(){return s()||c()||u()||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 rS=P((QK,tS)=>{"use strict";tS.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(g){var y=n();if(y&&y.type==="OPERATOR"&&g===y.string)return i(),y.string}function o(){if(s("WITH")){var g=n();if(g&&g.type==="EXCEPTION")return i(),g.string;throw new Error("Expected exception after `WITH`")}}function a(){var g=t,y="",x=n();if(x.type==="DOCUMENTREF"&&(i(),y+="DocumentRef-"+x.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(x=n(),x.type==="LICENSEREF")return i(),y+="LicenseRef-"+x.string,{license:y};t=g}function c(){var g=n();if(g&&g.type==="LICENSE"){i();var y={license:g.string};s("+")&&(y.plus=!0);var x=o();return x&&(y.exception=x),y}}function u(){var g=s("(");if(g){var y=d();if(!s(")"))throw new Error("Expected `)`");return y}}function f(){return u()||a()||c()}function l(g,y){return function x(){var S=y();if(S){if(!s(g))return S;var I=x();if(!I)throw new Error("Expected expression");return{left:S,conjunction:g.toLowerCase(),right:I}}}}var h=l("AND",f),d=l("OR",h),p=d();if(!p||r())throw new Error("Syntax error");return p}});var gd=P((ZK,nS)=>{"use strict";var IM=eS(),kM=rS();nS.exports=function(e){return kM(IM(e))}});var hS=P((eX,fS)=>{var NM=gd(),$M=md();function rc(e){try{return NM(e),!0}catch{return!1}}function lS(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var iS=[["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(lS),MM=0,jM=1,sS=[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"}],yd=$M.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},{}),BM=Object.keys(yd).map(function(t){return[t,yd[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});yd=void 0;var oS=[["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(BM).sort(lS),qM=0,GM=1,aS=function(e){for(var t=0;t<sS.length;t++){var r=sS[t](e).trim();if(r!==e&&rc(r))return r}return null},uS=function(e){for(var t=e.toUpperCase(),r=0;r<oS.length;r++){var n=oS[r];if(t.indexOf(n[qM])>-1)return n[GM]}return null},cS=function(e,t){for(var r=0;r<iS.length;r++){var n=iS[r],i=n[MM];if(e.indexOf(i)>-1){var s=e.replace(i,n[jM]),o=t(s);if(o!==null)return o}}return null};fS.exports=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?UM(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(),rc(e))return n(e);var s=e.replace(/\+$/,"").trim();if(rc(s))return n(s);var o=aS(e);return o!==null||(o=cS(e,function(a){return rc(a)?a:aS(a)}),o!==null)||(o=uS(e),o!==null)||(o=cS(e,uS),o!==null)?n(o):null};function UM(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 gS=P((tX,mS)=>{var WM=gd(),HM=hS(),dS='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',zM=/^SEE LICEN[CS]E IN (.+)$/;function pS(e,t){return t.slice(0,e.length)===e}function vd(e){if(e.hasOwnProperty("license")){var t=e.license;return pS("LicenseRef",t)||pS("DocumentRef",t)}else return vd(e.left)||vd(e.right)}mS.exports=function(e){var t;try{t=WM(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=zM.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[dS]};if(e.trim().length!==0){var i=HM(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return vd(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[dS]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var vS=P((rX,yS)=>{yS.exports=YM;function YM(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
|
|
13
|
+
`);let t=0;for(;e[t]&&e[t].trim().match(/^(#|$)/);)t++;let r=e.length,n=t+1;for(;n<r&&e[n].trim();)n++;return e.slice(t,n).join(" ").trim()}});var ES=P((nX,VM)=>{VM.exports={topLevel:{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"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var SS=P((iX,bS)=>{var KM=ao(),XM=au(),JM=gS(),nc=hu(),QM=require("node:module"),ZM=["dependencies","devDependencies","optionalDependencies"],ej=vS(),Ed=require("url"),Fn=ES(),AS=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf(".");bS.exports={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=nc.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}t.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(Fn.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,Fn.topLevel[t])},this)},fixScriptsField:function(e){if(e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):Fn.script[t]&&!e.scripts[Fn.script[t]]&&this.warn("typo",t,Fn.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){e.man&&typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),e.dependencies[n]="*"),!0)},this))},fixDependencies:function(e){uj(e,this.warn),oj(e,this.warn),this.fixBundleDependenciesField(e),["dependencies","devDependencies"].forEach(function(t){if(t in e){if(!e[t]||typeof e[t]!="object"){this.warn("nonObjectDependencies",t),delete e[t];return}Object.keys(e[t]).forEach(function(r){var n=e[t][r];typeof n!="string"&&(this.warn("nonStringDependency",r,JSON.stringify(n)),delete e[t][r]);var i=nc.fromUrl(e[t][r]);i&&(e[t][r]=i.toString())},this)}},this)},fixModulesField:function(e){e.modules&&(this.warn("deprecatedModules"),delete e.modules)},fixKeywordsField:function(e){typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,this.warn("nonArrayKeywords")):e.keywords&&(e.keywords=e.keywords.filter(function(t){return typeof t!="string"||!t?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(e,t){var r=!t;if(!e.version)return e.version="",!0;if(!KM(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=XM(e.version,r),!0},fixPeople:function(e){wS(e,ij),wS(e,sj)},fixNameField:function(e,t){typeof t=="boolean"?t={strict:t}:typeof t>"u"&&(t={});var r=t.strict;if(!e.name&&!r){e.name="";return}if(typeof e.name!="string")throw new Error("name field must be a string.");r||(e.name=e.name.trim()),nj(e.name,r,t.allowLegacyCase),QM.builtinModules.includes(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=ej(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=nc.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")AS(e.bugs)?e.bugs={email:e.bugs}:Ed.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{cj(e.bugs,this.warn);var r=e.bugs;e.bugs={},r.url&&(typeof r.url=="string"&&Ed.parse(r.url).protocol?e.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&AS(r.email)?e.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=nc.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;Ed.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)}},fixLicenseField:function(e){let t=e.license||e.licence;if(!t)return this.warn("missingLicense");if(typeof t!="string"||t.length<1||t.trim()==="")return this.warn("invalidLicense");if(!JM(t).validForNewPackages)return this.warn("invalidLicense")}};function tj(e){if(e.charAt(0)!=="@")return!1;var 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 rj(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function nj(e,t,r){if(e.charAt(0)==="."||!(tj(e)||rj(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function wS(e,t){return e.author&&(e.author=t(e.author)),["maintainers","contributors"].forEach(function(r){Array.isArray(e[r])&&(e[r]=e[r].map(t))}),e}function ij(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,n=r?" ("+r+")":"",i=e.email||e.mail,s=i?" <"+i+">":"";return t+s+n}function sj(e){if(typeof e!="string")return e;var t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),i={};return t&&t[0].trim()&&(i.name=t[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function oj(e){var t=e.optionalDependencies;if(t){var r=e.dependencies||{};Object.keys(t).forEach(function(n){r[n]=t[n]}),e.dependencies=r}}function aj(e,t,r){if(!e)return{};if(typeof e=="string"&&(e=e.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(e))return e;r("deprecatedArrayDependencies",t);var n={};return e.filter(function(i){return typeof i=="string"}).forEach(function(i){i=i.trim().split(/(:?[@\s><=])/);var s=i.shift(),o=i.join("");o=o.trim(),o=o.replace(/^@/,""),n[s]=o}),n}function uj(e,t){ZM.forEach(function(r){e[r]&&(e[r]=aj(e[r],r,t))})}function cj(e,t){e&&Object.keys(e).forEach(function(r){Fn.bugs[r]&&(t("typo",r,Fn.bugs[r],"bugs"),e[Fn.bugs[r]]=e[r],delete e[r])})}});var CS=P((sX,lj)=>{lj.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var _S=P((oX,OS)=>{var xS=require("util"),Ad=CS();OS.exports=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return fj.apply(null,e);var r=Ad[t]?Ad[t]:t+": '%s'";return e.unshift(r),xS.format.apply(null,e)};function fj(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),xS.format(Ad.typo,e,t)}});var LS=P((aX,DS)=>{var hj=ao(),dj=au(),Dn=require("node:fs/promises"),Ue=require("node:path"),{log:pj}=io(),wd;function PS(){return wd||(wd=hu()),wd}var bd;function ic(){return bd||(bd=Lh().glob),bd}function RS(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[Ue.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=Ue.basename(Wo(r));if(!n){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}let i=Wo(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 was cleaned`),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 mj(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(Wo(n));if(!r.length)t?.push('empty "man" was removed');else return e.man=r,e}delete e.man}function gj(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 FS(e){return e.replace(/\\|:/g,"/")}function Wo(e){let t=FS(Ue.join(".",Ue.join("/",FS(e))));return t.startsWith("./")?"":t}var vj=async(e,{strict:t,steps:r,root:n,changes:i,allowLegacyCase:s})=>{if(!e.content)throw new Error("Can not normalize without content");let o=e.content,a=o.scripts||{},c=`${o.name??""}@${o.version??""}`;if(r.includes("fixNameField")||r.includes("normalizeData"))if(!o.name&&!t)i?.push('Missing "name" field was set to an empty string'),o.name="";else{if(typeof o.name!="string")throw new Error("name field must be a string.");if(!t){let u=o.name.trim();o.name!==u&&(i?.push('Whitespace was trimmed from "name"'),o.name=u)}if(o.name.startsWith(".")||!(yj(o.name)||gj(o.name))||t&&!s&&o.name!==o.name.toLowerCase()||o.name.toLowerCase()==="node_modules"||o.name.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(o.name))}if(r.includes("fixVersionField")||r.includes("normalizeData")){let u=!t;if(!o.version)o.version="";else{if(!hj(o.version,u))throw new Error(`Invalid version: "${o.version}"`);let f=dj(o.version,u);f!==o.version&&(i?.push(`"version" was cleaned and set to "${f}"`),o.version=f)}}if(r.includes("_attributes"))for(let u in o)u.startsWith("_")&&(i?.push(`"${u}" was removed`),delete e.content[u]);if(r.includes("_id")&&o.name&&o.version&&(i?.push(`"_id" was set to ${c}`),o._id=c),r.includes("bundledDependencies")&&(o.bundleDependencies===void 0&&o.bundledDependencies!==void 0&&(o.bundleDependencies=o.bundledDependencies),i?.push('Deleted incorrect "bundledDependencies"'),delete o.bundledDependencies),r.includes("bundleDependencies")){let u=o.bundleDependencies;u===!1&&!r.includes("bundleDependenciesDeleteFalse")?(i?.push('"bundleDependencies" was changed from "false" to "[]"'),o.bundleDependencies=[]):u===!0?(i?.push('"bundleDependencies" was auto-populated from "dependencies"'),o.bundleDependencies=Object.keys(o.dependencies||{})):u&&typeof u=="object"?Array.isArray(u)||(i?.push('"bundleDependencies" was changed from an object to an array'),o.bundleDependencies=Object.keys(u)):"bundleDependencies"in o&&(i?.push('"bundleDependencies" was removed'),delete o.bundleDependencies)}if(r.includes("optionalDedupe")&&o.dependencies&&o.optionalDependencies&&typeof o.optionalDependencies=="object"){for(let u in o.optionalDependencies)i?.push(`optionalDependencies."${u}" was removed`),delete o.dependencies[u];Object.keys(o.dependencies).length||(i?.push('Empty "optionalDependencies" was removed'),delete o.dependencies)}if(r.includes("gypfile")&&!a.install&&!a.preinstall&&o.gypfile!==!1&&(await ic()("*.gyp",{cwd:e.path})).length&&(a.install="node-gyp rebuild",o.scripts=a,o.gypfile=!0,i?.push('"scripts.install" was set to "node-gyp rebuild"'),i?.push('"gypfile" was set to "true"')),r.includes("serverjs")&&!a.start)try{await Dn.access(Ue.join(e.path,"server.js")),a.start="node server.js",o.scripts=a,i?.push('"scripts.start" was set to "node server.js"')}catch{}if((r.includes("scripts")||r.includes("scriptpath"))&&o.scripts!==void 0){let u=/^(\.[/\\])?node_modules[/\\].bin[\\/]/;if(typeof o.scripts=="object")for(let f in o.scripts)typeof o.scripts[f]!="string"?(delete o.scripts[f],i?.push(`Invalid scripts."${f}" was removed`)):r.includes("scriptpath")&&u.test(o.scripts[f])&&(o.scripts[f]=o.scripts[f].replace(u,""),i?.push(`scripts entry "${f}" was fixed to remove node_modules/.bin reference`));else i?.push('Removed invalid "scripts"'),delete o.scripts}if(r.includes("funding")&&o.funding&&typeof o.funding=="string"&&(o.funding={url:o.funding},i?.push('"funding" was changed to an object with a url attribute')),r.includes("authors")&&!o.contributors)try{let f=(await Dn.readFile(Ue.join(e.path,"AUTHORS"),"utf8")).split(/\r?\n/g).map(l=>l.replace(/^\s*#.*$/,"").trim()).filter(l=>l);o.contributors=f,i?.push('"contributors" was auto-populated with the contents of the "AUTHORS" file')}catch{}if(r.includes("readme")&&!o.readme){let u=/\.m?a?r?k?d?o?w?n?$/i,f=await ic()("{README,README.*}",{cwd:e.path,nocase:!0,mark:!0}),l;for(let h of f)if(!h.endsWith(Ue.sep)){if(h.match(u)){l=h;break}h.endsWith("README")&&(l=h)}if(l){let h=await Dn.readFile(Ue.join(e.path,l),"utf8");o.readme=h,o.readmeFilename=l,i?.push(`"readme" was set to the contents of ${l}`),i?.push(`"readmeFilename" was set to ${l}`)}o.readme||(o.readme="ERROR: No README data found!")}if(r.includes("mans")){if(o.directories?.man&&!o.man){let u=Wo(o.directories.man),f=Ue.resolve(e.path,u),l=await ic()("**/*.[0-9]",{cwd:f});o.man=l.map(h=>Ue.relative(e.path,Ue.join(f,h)).split(Ue.sep).join("/"))}mj(o,i)}if((r.includes("bin")||r.includes("binDir")||r.includes("binRefs"))&&RS(o,i),r.includes("binDir")&&o.directories?.bin&&!o.bin){let u=Ue.resolve(e.path,Wo(o.directories.bin)),f=await ic()("**",{cwd:u});o.bin=f.reduce((l,h)=>{if(h&&!h.startsWith(".")){let d=Ue.basename(h);l[d]=Ue.join(o.directories.bin,h)}return l},{}),RS(o,i)}if(r.includes("gitHead")&&!o.gitHead){let f=await Xb().find({cwd:e.path,root:n}),l;if(f)try{l=await Dn.readFile(Ue.resolve(f,".git/HEAD"),"utf8")}catch{}let h;if(l)if(l.startsWith("ref: ")){let d=l.replace(/^ref: /,"").trim(),p=Ue.resolve(f,".git",d);try{h=await Dn.readFile(p,"utf8"),h=h.replace(/^ref: /,"").trim()}catch{}if(!h){let g=Ue.resolve(f,".git/packed-refs");try{let y=await Dn.readFile(g,"utf8");if(y){y=y.split(`
|
|
14
|
+
`);for(let x=0;x<y.length;x++){let S=y[x].match(/^([0-9a-f]{40}) (.+)$/);if(S&&S[2].trim()===d){h=S[1];break}}}}catch{}}}else h=l.trim();h&&(o.gitHead=h)}if(r.includes("fillTypes")){let u=o.main||"index.js";if(typeof u!="string")throw new TypeError('The "main" attribute must be of type string.');let l=`./${Ue.join(Ue.dirname(u),Ue.basename(u,Ue.extname(u)))}.d.ts`;if(!("types"in o||"typings"in o))try{await Dn.access(Ue.join(e.path,l)),o.types=l.split(Ue.sep).join("/")}catch{}}if((r.includes("fixRepositoryField")||r.includes("normalizeData"))&&(o.repositories&&(i?.push(`"repository" was set to the first entry in "repositories" (${o.repository})`),o.repository=o.repositories[0]),o.repository&&(typeof o.repository=="string"&&(i?.push('"repository" was changed from a string to an object'),o.repository={type:"git",url:o.repository}),o.repository.url))){let u=PS().fromUrl(o.repository.url),f;u&&(u.getDefaultRepresentation()==="shortcut"?f=u.https():f=u.toString(),f!==o.repository.url&&(i?.push(`"repository.url" was normalized to "${f}"`),o.repository.url=f))}if(r.includes("fixDependencies")||r.includes("normalizeData")){for(let u of["dependencies","devDependencies","optionalDependencies"])if(o[u]){let f=!0;if(typeof o[u]=="string"&&(i?.push(`"${u}" was converted from a string into an object`),o[u]=o[u].trim().split(/[\n\r\s\t ,]+/),f=!1),Array.isArray(o[u])){f&&i?.push(`"${u}" was converted from an array into an object`);let l={};for(let h of o[u])if(typeof h=="string"){let d=h.trim().split(/(:?[@\s><=])/),p=d.shift(),g=d.join("").replace(/^@/,"").trim();l[p]=g}o[u]=l}}for(let u of["dependencies","devDependencies"])if(u in o)if(!o[u]||typeof o[u]!="object")i?.push(`Removed invalid "${u}"`),delete o[u];else for(let f in o[u]){typeof o[u][f]!="string"&&(i?.push(`Removed invalid "${u}.${f}"`),delete o[u][f]);let h=PS().fromUrl(o[u][f])?.toString();h&&h!==o[u][f]&&(i?.push(`Normalized git reference to "${u}.${f}"`),o[u][f]=h.toString())}}if(r.includes("normalizeData")){let u=SS(),f=_S();u.warn=function(){i?.push(f.apply(null,arguments))};let l=["fixDescriptionField","fixModulesField","fixFilesField","fixManField","fixBugsField","fixKeywordsField","fixBundleDependenciesField","fixHomepageField","fixReadmeField","fixLicenseField","fixPeople","fixTypos"];for(let h of l)u[h](o)}if(r.includes("binRefs")&&o.bin instanceof Object)for(let u in o.bin)try{await Dn.access(Ue.resolve(e.path,o.bin[u]))}catch{pj.warn("package-json",c,`No bin file found at ${o.bin[u]}`)}};DS.exports=vj});var NS=P((uX,kS)=>{var{readFile:Ej}=require("fs/promises"),Aj=Kf();async function TS(e){try{return await Ej(e,"utf8")}catch(t){throw t.message=`Could not read package.json: ${t}`,t}}function IS(e){try{return Aj(e)}catch(t){throw t.message=`Invalid package.json: ${t}`,t}}async function wj(e){let t=await TS(e);return IS(t)}kS.exports={read:TS,parse:IS,readPackage:wj}});var MS=P((cX,$S)=>{function bj(e){let{name:t,version:r,private:n,description:i,keywords:s,homepage:o,bugs:a,repository:c,funding:u,license:f,author:l,maintainers:h,contributors:d,type:p,imports:g,exports:y,main:x,browser:S,types:I,bin:R,man:w,directories:D,files:L,workspaces:_,scripts:$,config:O,dependencies:m,devDependencies:v,peerDependencies:E,peerDependenciesMeta:C,optionalDependencies:A,bundledDependencies:b,bundleDependencies:T,engines:N,os:M,cpu:W,publishConfig:V,devEngines:X,licenses:he,overrides:G,...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 c<"u"?{repository:c}:{},...typeof u<"u"?{funding:u}:{},...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 g<"u"?{imports:g}:{},...typeof y<"u"?{exports:y}:{},...typeof x<"u"?{main:x}:{},...typeof S<"u"?{browser:S}:{},...typeof I<"u"?{types:I}:{},...typeof R<"u"?{bin:R}:{},...typeof w<"u"?{man:w}:{},...typeof D<"u"?{directories:D}:{},...typeof L<"u"?{files:L}:{},...typeof _<"u"?{workspaces:_}:{},...typeof $<"u"?{scripts:$}:{},...typeof O<"u"?{config:O}:{},...typeof m<"u"?{dependencies:m}:{},...typeof v<"u"?{devDependencies:v}:{},...typeof E<"u"?{peerDependencies:E}:{},...typeof C<"u"?{peerDependenciesMeta:C}:{},...typeof A<"u"?{optionalDependencies:A}:{},...typeof b<"u"?{bundledDependencies:b}:{},...typeof T<"u"?{bundleDependencies:T}:{},...typeof N<"u"?{engines:N}:{},...typeof M<"u"?{os:M}:{},...typeof W<"u"?{cpu:W}:{},...typeof V<"u"?{publishConfig:V}:{},...typeof X<"u"?{devEngines:X}:{},...typeof he<"u"?{licenses:he}:{},...typeof G<"u"?{overrides:G}:{},...H}}$S.exports={packageSort:bj}});var xd=P((lX,qS)=>{var{readFile:Sj,writeFile:Cj}=require("node:fs/promises"),{resolve:jS}=require("node:path"),xj=Kf(),BS=vv(),Oj=Av(),_j=bv(),Sd=LS(),{read:Pj,parse:Rj}=NS(),{packageSort:Fj}=MS(),Dj=new Set([BS,Oj,_j]),Lj=new Set([...BS.knownKeys,"scripts","workspaces"]),Cd=class e{static normalizeSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","optionalDedupe","scripts","funding","bin"]);static fixSteps=Object.freeze(["binRefs","bundleDependencies","bundleDependenciesFalse","fixNameField","fixVersionField","fixRepositoryField","fixDependencies","devDependencies","scriptpath"]);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 Pj(this.filename)}catch(i){if(!r)throw i;n=i}if(n){let i=jS(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=Rj(t),this}fromContent(t){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=xj(t),this}get content(){return this.#r}get path(){return this.#e}get filename(){if(this.path)return jS(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 Dj)this.#r=r({content:t,originalContent:this.content});for(let[r,n]of Object.entries(t))Lj.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?`
|
|
15
|
+
`:n,a=t?Fj(i):i,c=`${JSON.stringify(a,null,s)}
|
|
16
|
+
`.replace(/\n/g,o);if(c.trim()!==this.#t.trim())return await Cj(this.filename,c)}async normalize(t={}){return t.steps||(t.steps=this.constructor.normalizeSteps),await Sd(this,t),this}async prepare(t={}){return t.steps||(t.steps=this.constructor.prepareSteps),await Sd(this,t),this}async fix(t={}){return t.steps=this.constructor.fixSteps,await Sd(this,t),this}};qS.exports=Cd});var WS=P((fX,US)=>{var{basename:GS,dirname:Tj}=require("path"),Ij=(e,t)=>e.charAt(0)==="@"?`${e}/${t}`:t;US.exports=e=>e?Ij(GS(Tj(e)),GS(e)):!1});var XS=P((hX,KS)=>{var HS=require("path"),kj=WS(),{minimatch:Ho}=Jr(),Nj=xd(),{glob:$j}=Lh();function Mj(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];Ho(n,a)&&r.splice(o,1)}t.push(n)}}for(let n of r)for(let i of Ho.match(t,n))t.splice(t.indexOf(i),1);return{patterns:t,negatedPatterns:r}}function zS(e){let t=Array.isArray(e.packages)?e.packages:e;if(!Array.isArray(t))throw sc({message:"workspaces config expects an Array",code:"EWORKSPACESCONFIG"});return Mj(t)}function YS(e,t){return e.name||kj(t)}function jj(e){return e=e.replace(/\\/g,"/"),e.endsWith("/")?e:`${e}/`}function sc({Type:e=TypeError,message:t,code:r}){return Object.assign(new e(t),{code:r})}function Bj(e){return new Map(Array.from(e,t=>t.reverse()))}async function VS(e={}){if(!e||!e.pkg)throw sc({message:"mapWorkspaces missing pkg info",code:"EMAPWORKSPACESPKG"});e.cwd||(e.cwd=process.cwd());let{workspaces:t=[]}=e.pkg,{patterns:r,negatedPatterns:n}=zS(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 $j(r.map(f=>jj(f)),o());a=a.sort((f,l)=>f.localeCompare(l,"en"));let c=[];for(let f of r)c.push(...a.filter(l=>Ho(l,f,{partial:!0,windowsPathsNoEscape:!0})));for(let f of c){let l;try{l=await Nj.normalize(HS.join(e.cwd,f))}catch(p){if(p.code==="ENOENT"||p.code==="ENOTDIR")continue;throw p}let h=YS(l.content,l.path),d=s.get(h);d||(d=new Set,s.set(h,d)),d.add(l.path)}let u=["must not have multiple workspaces with the same name"];for(let[f,l]of s)l.size>1?qj(u,f,l):i.set(f,l.values().next().value);if(u.length>1)throw sc({Type:Error,message:u.join(`
|
|
17
|
+
`),code:"EDUPLICATEWORKSPACE"});return i}function qj(e,t,r){e.push(`package '${t}' has conflicts in the following paths:`);for(let n of r)e.push(" "+n)}VS.virtual=function(e={}){if(!e||!e.lockfile)throw sc({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}=zS(r);if(!i.length&&!s.length)return n;s.push("**/node_modules/**");let o=Object.keys(t);for(let a of s)for(let c of Ho.match(o,a))o.splice(o.indexOf(c),1);for(let a of i)for(let c of Ho.match(o,a)){let u=HS.join(e.cwd,c),f=YS(t[c],u);n.set(u,f)}return Bj(n)};KS.exports=VS});var t1=P((dX,e1)=>{var{walkUp:Gj}=hy(),JS=Rf(),os=kf(),{log:Ln,time:Uj}=io(),{resolve:Vo,dirname:oc,join:Od}=require("node:path"),{homedir:Wj}=require("node:os"),{readFile:Hj,writeFile:zj,chmod:Yj,unlink:Vj,stat:QS,mkdir:Kj}=require("node:fs/promises"),_d=(...e)=>QS(Vo(...e)).then(t=>t.isFile()).catch(()=>!1),Xj=(...e)=>QS(Vo(...e)).then(t=>t.isDirectory()).catch(()=>!1),ac=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),as=iu(),Ai=Qy(),Jj=Wf(),Qj=rv(),Zj=ov(),ZS=new Set(["global","user","project"]),zo=new Set(["default","builtin",...ZS,"env","cli"]),Pd=class{#e=!1;#r;#t=null;static get typeDefs(){return as}constructor({definitions:t,shorthands:r,flatten:n,npmPath:i,env:s=process.env,argv:o=process.argv,platform:a=process.platform,execPath:c=process.execPath,cwd:u=process.cwd(),excludeNpmCwd:f=!1}){this.definitions=t;let l={},h={};this.deprecated={};for(let[g,y]of Object.entries(t))h[g]=y.default,l[g]=y.type,y.deprecated&&(this.deprecated[g]=y.deprecated.trim().replace(/\n +/,`
|
|
18
|
+
`));this.#r=n,this.types=l,this.shorthands=r,this.defaults=h,this.npmPath=i,this.npmBin=Od(this.npmPath,"bin/npm-cli.js"),this.argv=o,this.env=s,this.execPath=c,this.platform=a,this.cwd=u,this.excludeNpmCwd=f,this.globalPrefix=null,this.localPrefix=null,this.localPackage=null,this.home=null;let d=[...zo];this.data=new Map;let p=null;for(let g of d)this.data.set(g,p=new Rd(p));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:g}of this.data.values())this.list.unshift(g);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(ac(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&&!zo.has(r))throw new Error("invalid config location param: "+r);let{data:n}=this.data.get(r||"cli");return r===null||ac(n,t)?n[t]:void 0}set(t,r,n="cli"){if(!this.loaded)throw new Error("call config.load() before setting values");if(!zo.has(n))throw new Error("invalid config location param: "+n);this.#c(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=Uj.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(!zo.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(Od(this.npmPath,"package.json")).version}catch{}this.#h(t,"default","default values");let{data:r}=this.data.get("default");Object.defineProperty(r,"globalconfig",{get:()=>Vo(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||Wj()}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=oc(this.execPath):(this.globalPrefix=oc(oc(this.execPath)),this.env.DESTDIR&&(this.globalPrefix=Od(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(){os.invalidHandler=(r,n,i)=>this.invalidHandler(r,n,i,"command line options","cli");let t=os(this.types,this.shorthands,this.argv);os.invalidHandler=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,os.invalidHandler=(n,i,s)=>this.invalidHandler(n,i,s,r.source,t),os.clean(r.data,this.types,as),os.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=Ai(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}=uv();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]=[...zo],i=this.data.get(r).data;return ac(i,t)&&n.every(s=>{let o=this.data.get(s).data;return!ac(o,t)})}invalidHandler(t,r,n,i,s){let o=fv();Ln.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),c=a.filter(l=>l!==void 0&&l!==Array),u="Must be"+this.#o(c,a),f=c.length===1?c[0]:[...new Set(c.map(l=>typeof l=="string"?l:JSON.stringify(l)))].join(", ");Ln.warn("invalid config",u,f)}#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"&&Ln.verbose("config",`error loading ${r} config`,i);else{s.raw=t;for(let[o,a]of Object.entries(t)){let c=Jj(o,this.env),u=this.parseField(a,c);if(r!=="default"&&(this.#c(c),this.definitions[o]?.exclusive)){for(let f of this.definitions[o].exclusive)if(!this.isDefault(f))throw new TypeError(`--${o} can not be provided when using --${f}`)}s.data[c]=u}}}#c(t){this.deprecated[t]&&Ln.warn("config",t,this.deprecated[t])}parseField(t,r,n=!1){return Qj(t,r,this,n)}async#l(t,r){Ln.silly("config",`load:file:${t}`),await Hj(t,"utf8").then(n=>{let i=JS.parse(n);return r==="project"&&i.prefix&&Ln.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.#l(Vo(this.npmPath,"npmrc"),"builtin")}async loadProjectConfig(){if(await this.loadLocalPrefix(),this.localPackage==null&&(this.localPackage=await _d(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=Vo(this.localPrefix,".npmrc");if(t!==this.#n("userconfig"))return this.#l(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 Gj(this.cwd)){if(this.excludeNpmCwd&&i===this.npmPath)break;let s=await _d(i,"package.json");if(!this.localPrefix&&(s||await Xj(i,"node_modules"))){if(this.localPrefix=i,this.localPackage=s,r===!1||n)return;continue}if(this.localPrefix&&s){let o=xd(),{content:a}=await o.normalize(i).catch(()=>({content:{}}));if(!a?.workspaces)continue;let u=await XS()({cwd:i,pkg:a});for(let f of u.values())if(f===this.localPrefix){await _d(this.localPrefix,".npmrc")&&Ln.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,Ln.info("config",`found workspace root at ${this.localPrefix}`);return}}}this.localPrefix||(this.localPrefix=this.cwd)}loadUserConfig(){return this.#l(this.#n("userconfig"),"user")}loadGlobalConfig(){return this.#l(this.#n("globalconfig"),"global")}async save(t){if(!this.loaded)throw new Error("call config.load() before saving");if(!ZS.has(t))throw new Error("invalid config location param: "+t);let r=this.data.get(t);if(r[Yo]=null,t==="user"){let o=Ai(this.get("registry")),a=this.get(`${o}:email`,"user");a&&(this.delete(`${o}:email`,"user"),this.set("email",a,"user"))}let n=JS.stringify(r.raw).trim()+`
|
|
19
|
+
`;if(!n.trim()){await Vj(r.source).catch(()=>{});return}let i=oc(r.source);await Kj(i,{recursive:!0}),await zj(r.source,n,"utf8");let s=t==="user"?384:438;await Yj(r.source,s)}clearCredentialsByURI(t,r="user"){let n=Ai(t);if(Ai(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=Ai(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 c=Buffer.from(i,"utf8").toString("base64");this.set(`${a}:_password`,c,"user")}else if(!s||!o)throw new Error("No credentials to set.")}getCredentialsByURI(t){let r=Ai(t),n=Ai(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 c=this.get(`${r}:_authToken`);if(c)return i.token=c,i;let u=this.get(`${r}:username`),f=this.get(`${r}:_password`);if(u&&f){i.username=u,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(){Zj(this)}},Yo=Symbol("loadError"),us=Symbol("valid"),Rd=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[Yo]||Object.keys(this.#t).length)throw new Error("cannot set ConfigData loadError after load");this[Yo]=t}get loadError(){return this[Yo]}set raw(t){if(Object.keys(this.#t).length||this[Yo])throw new Error("cannot set ConfigData raw after load");this.#t=t}get raw(){return this.#t}};e1.exports=Pd});var cc=P(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.getPackageDependencies=void 0;function eB(e,t,r={withDevDependencies:!0}){let n={...e.dependencies,...r.withDevDependencies&&e.devDependencies,...r.withPeerDependencies&&e.peerDependencies};return Object.keys(t).filter(i=>!!n[i])}uc.getPackageDependencies=eB});var r1=P(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.getTransitiveProviders=Tn.getTransitiveConsumers=Tn.getDependentMap=void 0;var tB=cc(),Fd=new Map;function rB(e,t=[]){return JSON.stringify({packages:e,scope:t})}function Dd(e,t=[]){let r=rB(e,t);if(Fd.has(r))return Fd.get(r);let n=[],i=new Set,s=t.length>0?[...t]:Object.keys(e);for(;s.length>0;){let o=s.pop();if(i.has(o))continue;i.add(o);let a=e[o],c=(0,tB.getPackageDependencies)(a,e);if(c.length>0)for(let u of c)s.push(u),n.push([u,o]);else n.push([null,o])}return Fd.set(r,n),n}function nB(e){let t=Dd(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}Tn.getDependentMap=nB;function iB(e,t,r=[]){let n=Dd(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,c]of n)a===o&&i.push(c)}}return[...s].filter(o=>!e.includes(o))}Tn.getTransitiveConsumers=iB;function sB(e,t){let r=Dd(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))}Tn.getTransitiveProviders=sB});var n1=P(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.getInternalDeps=lr.getTransitiveConsumers=lr.getTransitiveDependents=lr.getTransitiveProviders=lr.getTransitiveDependencies=void 0;var lc=r1();Object.defineProperty(lr,"getTransitiveConsumers",{enumerable:!0,get:function(){return lc.getTransitiveConsumers}});Object.defineProperty(lr,"getTransitiveProviders",{enumerable:!0,get:function(){return lc.getTransitiveProviders}});var oB=cc();lr.getTransitiveDependencies=lc.getTransitiveProviders;lr.getTransitiveDependents=lc.getTransitiveConsumers;lr.getInternalDeps=oB.getPackageDependencies});var i1=P(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.infoFromPackageJson=void 0;function aB(e,t){return{packageJsonPath:t,...e}}fc.infoFromPackageJson=aB});var o1=P((vX,s1)=>{var Ld=class{constructor(t){this.value=t,this.next=void 0}},Td=class{constructor(){this.clear()}enqueue(t){let r=new Ld(t);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};s1.exports=Td});var u1=P((EX,a1)=>{"use strict";var uB=o1(),cB=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new uB,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(a,c,...u)=>{r++;let f=(async()=>a(...u))();c(f);try{await f}catch{}n()},s=(a,c,...u)=>{t.enqueue(i.bind(null,a,c,...u)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},o=(a,...c)=>new Promise(u=>{s(a,u,...c)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),o};a1.exports=cB});var f1=P((AX,l1)=>{"use strict";var c1=u1(),hc=class extends Error{constructor(t){super(),this.value=t}},lB=async(e,t)=>t(await e),fB=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new hc(t[0]);return!1},hB=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=c1(r.concurrency),i=[...e].map(o=>[o,n(lB,o,t)]),s=c1(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(fB,o)))}catch(o){if(o instanceof hc)return o.value;throw o}};l1.exports=hB});var y1=P((wX,Id)=>{"use strict";var h1=require("path"),dc=require("fs"),{promisify:d1}=require("util"),dB=f1(),pB=d1(dc.stat),mB=d1(dc.lstat),p1={directory:"isDirectory",file:"isFile"};function m1({type:e}){if(!(e in p1))throw new Error(`Invalid type specified: ${e}`)}var g1=(e,t)=>e===void 0||t[p1[e]]();Id.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},m1(t);let r=t.allowSymlinks?pB:mB;return dB(e,async n=>{try{let i=await r(h1.resolve(t.cwd,n));return g1(t.type,i)}catch{return!1}},t)};Id.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},m1(t);let r=t.allowSymlinks?dc.statSync:dc.lstatSync;for(let n of e)try{let i=r(h1.resolve(t.cwd,n));if(g1(t.type,i))return n}catch{}}});var E1=P((bX,kd)=>{"use strict";var v1=require("fs"),{promisify:gB}=require("util"),yB=gB(v1.access);kd.exports=async e=>{try{return await yB(e),!0}catch{return!1}};kd.exports.sync=e=>{try{return v1.accessSync(e),!0}catch{return!1}}});var ls=P((SX,cs)=>{"use strict";var In=require("path"),pc=y1(),A1=E1(),Nd=Symbol("findUp.stop");cs.exports=async(e,t={})=>{let r=In.resolve(t.cwd||""),{root:n}=In.parse(r),i=[].concat(e),s=async o=>{if(typeof e!="function")return pc(i,o);let a=await e(o.cwd);return typeof a=="string"?pc([a],o):a};for(;;){let o=await s({...t,cwd:r});if(o===Nd)return;if(o)return In.resolve(r,o);if(r===n)return;r=In.dirname(r)}};cs.exports.sync=(e,t={})=>{let r=In.resolve(t.cwd||""),{root:n}=In.parse(r),i=[].concat(e),s=o=>{if(typeof e!="function")return pc.sync(i,o);let a=e(o.cwd);return typeof a=="string"?pc.sync([a],o):a};for(;;){let o=s({...t,cwd:r});if(o===Nd)return;if(o)return In.resolve(r,o);if(r===n)return;r=In.dirname(r)}};cs.exports.exists=A1;cs.exports.sync.exists=A1.sync;cs.exports.stop=Nd});var mc=P(kn=>{"use strict";var w1=kn&&kn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kn,"__esModule",{value:!0});kn.getWorkspaceImplementation=kn.getWorkspaceImplementationAndLockFile=void 0;var vB=w1(ls()),EB=w1(require("path")),b1={};function S1(e,t=b1){if(t[e])return t[e];let r=vB.default.sync(["lerna.json","rush.json","yarn.lock","pnpm-workspace.yaml","package-lock.json"],{cwd:e});if(r){switch(EB.default.basename(r)){case"lerna.json":t[e]={implementation:"lerna",lockFile:r};break;case"yarn.lock":t[e]={implementation:"yarn",lockFile:r};break;case"pnpm-workspace.yaml":t[e]={implementation:"pnpm",lockFile:r};break;case"rush.json":t[e]={implementation:"rush",lockFile:r};break;case"package-lock.json":t[e]={implementation:"npm",lockFile:r};break}return t[e]}}kn.getWorkspaceImplementationAndLockFile=S1;function AB(e,t=b1){var r;return(r=S1(e,t))===null||r===void 0?void 0:r.implementation}kn.getWorkspaceImplementation=AB});var x1=P((xX,C1)=>{"use strict";C1.exports=(...e)=>[...new Set([].concat(...e))]});var $d=P((OX,P1)=>{"use strict";var wB=require("stream"),O1=wB.PassThrough,bB=Array.prototype.slice;P1.exports=SB;function SB(){let e=[],t=bB.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=O1(n);function a(){for(let f=0,l=arguments.length;f<l;f++)e.push(_1(arguments[f],n));return c(),this}function c(){if(r)return;r=!0;let f=e.shift();if(!f){process.nextTick(u);return}Array.isArray(f)||(f=[f]);let l=f.length+1;function h(){--l>0||(r=!1,c())}function d(p){function g(){p.removeListener("merge2UnpipeEnd",g),p.removeListener("end",g),s&&p.removeListener("error",y),h()}function y(x){o.emit("error",x)}if(p._readableState.endEmitted)return h();p.on("merge2UnpipeEnd",g),p.on("end",g),s&&p.on("error",y),p.pipe(o,{end:!1}),p.resume()}for(let p=0;p<f.length;p++)d(f[p]);h()}function u(){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 _1(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=_1(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(O1(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var R1=P(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.splitWhen=fs.flatten=void 0;function CB(e){return e.reduce((t,r)=>[].concat(t,r),[])}fs.flatten=CB;function xB(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}fs.splitWhen=xB});var F1=P(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.isEnoentCodeError=void 0;function OB(e){return e.code==="ENOENT"}gc.isEnoentCodeError=OB});var D1=P(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.createDirentFromStats=void 0;var Md=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 _B(e,t){return new Md(e,t)}yc.createDirentFromStats=_B});var k1=P(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 PB=require("os"),RB=require("path"),L1=PB.platform()==="win32",FB=2,DB=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,LB=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,TB=/^\\\\([.?])/,IB=/\\(?![!()+@[\]{}])/g;function kB(e){return e.replace(/\\/g,"/")}et.unixify=kB;function NB(e,t){return RB.resolve(e,t)}et.makeAbsolute=NB;function $B(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(FB)}return e}et.removeLeadingDotSegment=$B;et.escape=L1?jd:Bd;function jd(e){return e.replace(LB,"\\$2")}et.escapeWindowsPath=jd;function Bd(e){return e.replace(DB,"\\$2")}et.escapePosixPath=Bd;et.convertPathToPattern=L1?T1:I1;function T1(e){return jd(e).replace(TB,"//$1").replace(IB,"/")}et.convertWindowsPathToPattern=T1;function I1(e){return Bd(e)}et.convertPosixPathToPattern=I1});var $1=P((DX,N1)=>{N1.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 B1=P((LX,j1)=>{var MB=$1(),M1={"{":"}","(":")","[":"]"},jB=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 c=M1[a];if(c){var u=e.indexOf(c,t);u!==-1&&(t=u+1)}if(e[t]==="!")return!0}else t++}return!1},BB=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=M1[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};j1.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(MB(t))return!0;var n=jB;return r&&r.strict===!1&&(n=BB),n(t)}});var G1=P((TX,q1)=>{"use strict";var qB=B1(),GB=require("path").posix.dirname,UB=require("os").platform()==="win32",qd="/",WB=/\\/g,HB=/[\{\[].*[\}\]]$/,zB=/(^|[^\\])([\{\[]|\([^\)]+$)/,YB=/\\([\!\*\?\|\[\]\(\)\{\}])/g;q1.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&UB&&t.indexOf(qd)<0&&(t=t.replace(WB,qd)),HB.test(t)&&(t+=qd),t+="a";do t=GB(t);while(qB(t)||zB.test(t));return t.replace(YB,"$1")}});var vc=P(fr=>{"use strict";fr.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;fr.find=(e,t)=>e.nodes.find(r=>r.type===t);fr.exceedsLimit=(e,t,r=1,n)=>n===!1||!fr.isInteger(e)||!fr.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;fr.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)};fr.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);fr.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;fr.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;fr.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);fr.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 Ec=P((kX,W1)=>{"use strict";var U1=vc();W1.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&U1.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&U1.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)a+=r(c);return a};return r(e)}});var z1=P((NX,H1)=>{"use strict";H1.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var tC=P(($X,eC)=>{"use strict";var Y1=z1(),wi=(e,t,r)=>{if(Y1(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Y1(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),c=e+":"+t+"="+i+s+o+a;if(wi.cache.hasOwnProperty(c))return wi.cache[c].result;let u=Math.min(e,t),f=Math.max(e,t);if(Math.abs(u-f)===1){let g=e+"|"+t;return n.capture?`(${g})`:n.wrap===!1?g:`(?:${g})`}let l=Z1(e)||Z1(t),h={min:e,max:t,a:u,b:f},d=[],p=[];if(l&&(h.isPadded=l,h.maxLen=String(h.max).length),u<0){let g=f<0?Math.abs(f):1;p=V1(g,Math.abs(u),h,n),u=h.a=0}return f>=0&&(d=V1(u,f,h,n)),h.negatives=p,h.positives=d,h.result=VB(p,d,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&d.length+p.length>1&&(h.result=`(?:${h.result})`),wi.cache[c]=h,h.result};function VB(e,t,r){let n=Gd(e,t,"-",!1,r)||[],i=Gd(t,e,"",!1,r)||[],s=Gd(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function KB(e,t){let r=1,n=1,i=X1(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=X1(e,r);for(i=J1(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=J1(t+1,n)-1;return s=[...s],s.sort(QB),s}function XB(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=JB(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[c,u]=n[a];c===u?s+=c:c!=="0"||u!=="9"?s+=ZB(c,u,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function V1(e,t,r,n){let i=KB(e,t),s=[],o=e,a;for(let c=0;c<i.length;c++){let u=i[c],f=XB(String(o),String(u),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+Q1(a.count),o=u+1;continue}r.isPadded&&(l=e3(u,r,n)),f.string=l+f.pattern+Q1(f.count),s.push(f),o=u+1,a=f}return s}function Gd(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!K1(t,"string",a)&&s.push(r+a),n&&K1(t,"string",a)&&s.push(r+a)}return s}function JB(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function QB(e,t){return e>t?1:t>e?-1:0}function K1(e,t,r){return e.some(n=>n[t]===r)}function X1(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function J1(e,t){return e-e%Math.pow(10,t)}function Q1(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function ZB(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Z1(e){return/^-?(0+)\d/.test(e)}function e3(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}}`}}wi.cache={};wi.clearCache=()=>wi.cache={};eC.exports=wi});var Hd=P((MX,uC)=>{"use strict";var t3=require("util"),nC=tC(),rC=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),r3=e=>t=>e===!0?Number(t):String(t),Ud=e=>typeof e=="number"||typeof e=="string"&&e!=="",Ko=e=>Number.isInteger(+e),Wd=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},n3=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,i3=(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},wc=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},s3=(e,t,r)=>{e.negatives.sort((a,c)=>a<c?-1:a>c?1:0),e.positives.sort((a,c)=>a<c?-1:a>c?1:0);let n=t.capture?"":"?:",i="",s="",o;return e.positives.length&&(i=e.positives.map(a=>wc(String(a),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(a=>wc(String(a),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,t.wrap?`(${n}${o})`:o},iC=(e,t,r,n)=>{if(r)return nC(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},sC=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return nC(e,t,r)},oC=(...e)=>new RangeError("Invalid range arguments: "+t3.inspect(...e)),aC=(e,t,r)=>{if(r.strictRanges===!0)throw oC([e,t]);return[]},o3=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},a3=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw oC([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),c=String(t),u=String(r);r=Math.max(Math.abs(r),1);let f=Wd(a)||Wd(c)||Wd(u),l=f?Math.max(a.length,c.length,u.length):0,h=f===!1&&n3(e,t,n)===!1,d=n.transform||r3(h);if(n.toRegex&&r===1)return iC(wc(e,l),wc(t,l),!0,n);let p={negatives:[],positives:[]},g=S=>p[S<0?"negatives":"positives"].push(Math.abs(S)),y=[],x=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?g(i):y.push(i3(d(i,x),l,h)),i=o?i-r:i+r,x++;return n.toRegex===!0?r>1?s3(p,n,l):sC(y,null,{wrap:!1,...n}):y},u3=(e,t,r=1,n={})=>{if(!Ko(e)&&e.length>1||!Ko(t)&&t.length>1)return aC(e,t,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,c=Math.min(s,o),u=Math.max(s,o);if(n.toRegex&&r===1)return iC(c,u,!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?sC(f,null,{wrap:!1,options:n}):f},Ac=(e,t,r,n={})=>{if(t==null&&Ud(e))return[e];if(!Ud(e)||!Ud(t))return aC(e,t,n);if(typeof r=="function")return Ac(e,t,1,{transform:r});if(rC(r))return Ac(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Ko(r)?Ko(e)&&Ko(t)?a3(e,t,r,i):u3(e,t,Math.max(Math.abs(r),1),i):r!=null&&!rC(r)?o3(r,i):Ac(e,t,1,r)};uC.exports=Ac});var fC=P((jX,lC)=>{"use strict";var c3=Hd(),cC=vc(),l3=(e,t={})=>{let r=(n,i={})=>{let s=cC.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,c=t.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0)return c+n.value;if(n.isClose===!0)return console.log("node.isClose",c,n.value),c+n.value;if(n.type==="open")return a?c+n.value:"(";if(n.type==="close")return a?c+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=cC.reduce(n.nodes),l=c3(...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)u+=r(f,n);return u};return r(e)};lC.exports=l3});var pC=P((BX,dC)=>{"use strict";var f3=Hd(),hC=Ec(),hs=vc(),bi=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?hs.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(bi(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?bi(i,s,r):i+s);return hs.flatten(n)},h3=(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(bi(a.pop(),hC(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(bi(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let l=hs.reduce(i.nodes);if(hs.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=f3(...l,t);h.length===0&&(h=hC(i,t)),a.push(bi(a.pop(),h)),i.nodes=[];return}let c=hs.encloseBrace(i),u=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,u=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&&u.push(""),u.push("");continue}if(h.type==="close"){a.push(bi(a.pop(),u,c));continue}if(h.value&&h.type!=="open"){u.push(bi(u.pop(),h.value));continue}h.nodes&&n(h,i)}return u};return hs.flatten(n(e))};dC.exports=h3});var gC=P((qX,mC)=>{"use strict";mC.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:`
|
|
20
|
+
`,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 wC=P((GX,AC)=>{"use strict";var d3=Ec(),{MAX_LENGTH:yC,CHAR_BACKSLASH:zd,CHAR_BACKTICK:p3,CHAR_COMMA:m3,CHAR_DOT:g3,CHAR_LEFT_PARENTHESES:y3,CHAR_RIGHT_PARENTHESES:v3,CHAR_LEFT_CURLY_BRACE:E3,CHAR_RIGHT_CURLY_BRACE:A3,CHAR_LEFT_SQUARE_BRACKET:vC,CHAR_RIGHT_SQUARE_BRACKET:EC,CHAR_DOUBLE_QUOTE:w3,CHAR_SINGLE_QUOTE:b3,CHAR_NO_BREAK_SPACE:S3,CHAR_ZERO_WIDTH_NOBREAK_SPACE:C3}=gC(),x3=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(yC,r.maxLength):yC;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,c=0,u=e.length,f=0,l=0,h,d=()=>e[f++],p=g=>{if(g.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&g.type==="text"){a.value+=g.value;return}return o.nodes.push(g),g.parent=o,g.prev=a,a=g,g};for(p({type:"bos"});f<u;)if(o=s[s.length-1],h=d(),!(h===C3||h===S3)){if(h===zd){p({type:"text",value:(t.keepEscaping?h:"")+d()});continue}if(h===EC){p({type:"text",value:"\\"+h});continue}if(h===vC){c++;let g;for(;f<u&&(g=d());){if(h+=g,g===vC){c++;continue}if(g===zd){h+=d();continue}if(g===EC&&(c--,c===0))break}p({type:"text",value:h});continue}if(h===y3){o=p({type:"paren",nodes:[]}),s.push(o),p({type:"text",value:h});continue}if(h===v3){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===w3||h===b3||h===p3){let g=h,y;for(t.keepQuotes!==!0&&(h="");f<u&&(y=d());){if(y===zd){h+=y+d();continue}if(y===g){t.keepQuotes===!0&&(h+=y);break}h+=y}p({type:"text",value:h});continue}if(h===E3){l++;let y={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(y),s.push(o),p({type:"open",value:h});continue}if(h===A3){if(o.type!=="brace"){p({type:"text",value:h});continue}let g="close";o=s.pop(),o.close=!0,p({type:g,value:h}),l--,o=s[s.length-1];continue}if(h===m3&&l>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:d3(o)}]}p({type:"comma",value:h}),o.commas++;continue}if(h===g3&&l>0&&o.commas===0){let g=o.nodes;if(l===0||g.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"){g.pop();let y=g[g.length-1];y.value+=a.value+h,a=y,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(x=>{x.nodes||(x.type==="open"&&(x.isOpen=!0),x.type==="close"&&(x.isClose=!0),x.nodes||(x.type="text"),x.invalid=!0)});let g=s[s.length-1],y=g.nodes.indexOf(o);g.nodes.splice(y,1,...o.nodes)}while(s.length>0);return p({type:"eos"}),i};AC.exports=x3});var CC=P((UX,SC)=>{"use strict";var bC=Ec(),O3=fC(),_3=pC(),P3=wC(),Xt=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=Xt.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Xt.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Xt.parse=(e,t={})=>P3(e,t);Xt.stringify=(e,t={})=>bC(typeof e=="string"?Xt.parse(e,t):e,t);Xt.compile=(e,t={})=>(typeof e=="string"&&(e=Xt.parse(e,t)),O3(e,t));Xt.expand=(e,t={})=>{typeof e=="string"&&(e=Xt.parse(e,t));let r=_3(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Xt.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Xt.compile(e,t):Xt.expand(e,t);SC.exports=Xt});var Xo=P((WX,RC)=>{"use strict";var R3=require("path"),kr="\\\\/",xC=`[^${kr}]`,tn="\\.",F3="\\+",D3="\\?",bc="\\/",L3="(?=.)",OC="[^/]",Yd=`(?:${bc}|$)`,_C=`(?:^|${bc})`,Vd=`${tn}{1,2}${Yd}`,T3=`(?!${tn})`,I3=`(?!${_C}${Vd})`,k3=`(?!${tn}{0,1}${Yd})`,N3=`(?!${Vd})`,$3=`[^.${bc}]`,M3=`${OC}*?`,PC={DOT_LITERAL:tn,PLUS_LITERAL:F3,QMARK_LITERAL:D3,SLASH_LITERAL:bc,ONE_CHAR:L3,QMARK:OC,END_ANCHOR:Yd,DOTS_SLASH:Vd,NO_DOT:T3,NO_DOTS:I3,NO_DOT_SLASH:k3,NO_DOTS_SLASH:N3,QMARK_NO_DOT:$3,STAR:M3,START_ANCHOR:_C},j3={...PC,SLASH_LITERAL:`[${kr}]`,QMARK:xC,STAR:`${xC}*?`,DOTS_SLASH:`${tn}{1,2}(?:[${kr}]|$)`,NO_DOT:`(?!${tn})`,NO_DOTS:`(?!(?:^|[${kr}])${tn}{1,2}(?:[${kr}]|$))`,NO_DOT_SLASH:`(?!${tn}{0,1}(?:[${kr}]|$))`,NO_DOTS_SLASH:`(?!${tn}{1,2}(?:[${kr}]|$))`,QMARK_NO_DOT:`[^.${kr}]`,START_ANCHOR:`(?:^|[${kr}])`,END_ANCHOR:`(?:[${kr}]|$)`},B3={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"};RC.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:B3,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:R3.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?j3:PC}}});var Jo=P(Nt=>{"use strict";var q3=require("path"),G3=process.platform==="win32",{REGEX_BACKSLASH:U3,REGEX_REMOVE_BACKSLASH:W3,REGEX_SPECIAL_CHARS:H3,REGEX_SPECIAL_CHARS_GLOBAL:z3}=Xo();Nt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Nt.hasRegexChars=e=>H3.test(e);Nt.isRegexChar=e=>e.length===1&&Nt.hasRegexChars(e);Nt.escapeRegex=e=>e.replace(z3,"\\$1");Nt.toPosixSlashes=e=>e.replace(U3,"/");Nt.removeBackslashes=e=>e.replace(W3,t=>t==="\\"?"":t);Nt.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};Nt.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:G3===!0||q3.sep==="\\";Nt.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Nt.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Nt.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Nt.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var $C=P((zX,NC)=>{"use strict";var FC=Jo(),{CHAR_ASTERISK:Kd,CHAR_AT:Y3,CHAR_BACKWARD_SLASH:Qo,CHAR_COMMA:V3,CHAR_DOT:Xd,CHAR_EXCLAMATION_MARK:Jd,CHAR_FORWARD_SLASH:kC,CHAR_LEFT_CURLY_BRACE:Qd,CHAR_LEFT_PARENTHESES:Zd,CHAR_LEFT_SQUARE_BRACKET:K3,CHAR_PLUS:X3,CHAR_QUESTION_MARK:DC,CHAR_RIGHT_CURLY_BRACE:J3,CHAR_RIGHT_PARENTHESES:LC,CHAR_RIGHT_SQUARE_BRACKET:Q3}=Xo(),TC=e=>e===kC||e===Qo,IC=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Z3=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],c=e,u=-1,f=0,l=0,h=!1,d=!1,p=!1,g=!1,y=!1,x=!1,S=!1,I=!1,R=!1,w=!1,D=0,L,_,$={value:"",depth:0,isGlob:!1},O=()=>u>=n,m=()=>c.charCodeAt(u+1),v=()=>(L=_,c.charCodeAt(++u));for(;u<n;){_=v();let T;if(_===Qo){S=$.backslashes=!0,_=v(),_===Qd&&(x=!0);continue}if(x===!0||_===Qd){for(D++;O()!==!0&&(_=v());){if(_===Qo){S=$.backslashes=!0,v();continue}if(_===Qd){D++;continue}if(x!==!0&&_===Xd&&(_=v())===Xd){if(h=$.isBrace=!0,p=$.isGlob=!0,w=!0,i===!0)continue;break}if(x!==!0&&_===V3){if(h=$.isBrace=!0,p=$.isGlob=!0,w=!0,i===!0)continue;break}if(_===J3&&(D--,D===0)){x=!1,h=$.isBrace=!0,w=!0;break}}if(i===!0)continue;break}if(_===kC){if(s.push(u),o.push($),$={value:"",depth:0,isGlob:!1},w===!0)continue;if(L===Xd&&u===f+1){f+=2;continue}l=u+1;continue}if(r.noext!==!0&&(_===X3||_===Y3||_===Kd||_===DC||_===Jd)===!0&&m()===Zd){if(p=$.isGlob=!0,g=$.isExtglob=!0,w=!0,_===Jd&&u===f&&(R=!0),i===!0){for(;O()!==!0&&(_=v());){if(_===Qo){S=$.backslashes=!0,_=v();continue}if(_===LC){p=$.isGlob=!0,w=!0;break}}continue}break}if(_===Kd){if(L===Kd&&(y=$.isGlobstar=!0),p=$.isGlob=!0,w=!0,i===!0)continue;break}if(_===DC){if(p=$.isGlob=!0,w=!0,i===!0)continue;break}if(_===K3){for(;O()!==!0&&(T=v());){if(T===Qo){S=$.backslashes=!0,v();continue}if(T===Q3){d=$.isBracket=!0,p=$.isGlob=!0,w=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&_===Jd&&u===f){I=$.negated=!0,f++;continue}if(r.noparen!==!0&&_===Zd){if(p=$.isGlob=!0,i===!0){for(;O()!==!0&&(_=v());){if(_===Zd){S=$.backslashes=!0,_=v();continue}if(_===LC){w=!0;break}}continue}break}if(p===!0){if(w=!0,i===!0)continue;break}}r.noext===!0&&(g=!1,p=!1);let E=c,C="",A="";f>0&&(C=c.slice(0,f),c=c.slice(f),l-=f),E&&p===!0&&l>0?(E=c.slice(0,l),A=c.slice(l)):p===!0?(E="",A=c):E=c,E&&E!==""&&E!=="/"&&E!==c&&TC(E.charCodeAt(E.length-1))&&(E=E.slice(0,-1)),r.unescape===!0&&(A&&(A=FC.removeBackslashes(A)),E&&S===!0&&(E=FC.removeBackslashes(E)));let b={prefix:C,input:e,start:f,base:E,glob:A,isBrace:h,isBracket:d,isGlob:p,isExtglob:g,isGlobstar:y,negated:I,negatedExtglob:R};if(r.tokens===!0&&(b.maxDepth=0,TC(_)||o.push($),b.tokens=o),r.parts===!0||r.tokens===!0){let T;for(let N=0;N<s.length;N++){let M=T?T+1:f,W=s[N],V=e.slice(M,W);r.tokens&&(N===0&&f!==0?(o[N].isPrefix=!0,o[N].value=C):o[N].value=V,IC(o[N]),b.maxDepth+=o[N].depth),(N!==0||V!=="")&&a.push(V),T=W}if(T&&T+1<e.length){let N=e.slice(T+1);a.push(N),r.tokens&&(o[o.length-1].value=N,IC(o[o.length-1]),b.maxDepth+=o[o.length-1].depth)}b.slashes=s,b.parts=a}return b};NC.exports=Z3});var BC=P((YX,jC)=>{"use strict";var Sc=Xo(),Jt=Jo(),{MAX_LENGTH:Cc,POSIX_REGEX_SOURCE:eq,REGEX_NON_SPECIAL_CHARS:tq,REGEX_SPECIAL_CHARS_BACKREF:rq,REPLACEMENTS:MC}=Sc,nq=(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=>Jt.escapeRegex(i)).join("..")}return r},ds=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,ep=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=MC[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Cc,r.maxLength):Cc,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?"":"?:",c=Jt.isWindows(t),u=Sc.globChars(c),f=Sc.extglobChars(u),{DOT_LITERAL:l,PLUS_LITERAL:h,SLASH_LITERAL:d,ONE_CHAR:p,DOTS_SLASH:g,NO_DOT:y,NO_DOT_SLASH:x,NO_DOTS_SLASH:S,QMARK:I,QMARK_NO_DOT:R,STAR:w,START_ANCHOR:D}=u,L=U=>`(${a}(?:(?!${D}${U.dot?g:l}).)*?)`,_=r.dot?"":y,$=r.dot?I:R,O=r.bash===!0?L(r):w;r.capture&&(O=`(${O})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let m={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=Jt.removePrefix(e,m),i=e.length;let v=[],E=[],C=[],A=s,b,T=()=>m.index===i-1,N=m.peek=(U=1)=>e[m.index+U],M=m.advance=()=>e[++m.index]||"",W=()=>e.slice(m.index+1),V=(U="",re=0)=>{m.consumed+=U,m.index+=re},X=U=>{m.output+=U.output!=null?U.output:U.value,V(U.value)},he=()=>{let U=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)M(),m.start++,U++;return U%2===0?!1:(m.negated=!0,m.start++,!0)},G=U=>{m[U]++,C.push(U)},H=U=>{m[U]--,C.pop()},q=U=>{if(A.type==="globstar"){let re=m.braces>0&&(U.type==="comma"||U.type==="brace"),Y=U.extglob===!0||v.length&&(U.type==="pipe"||U.type==="paren");U.type!=="slash"&&U.type!=="paren"&&!re&&!Y&&(m.output=m.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=O,m.output+=A.output)}if(v.length&&U.type!=="paren"&&(v[v.length-1].inner+=U.value),(U.value||U.output)&&X(U),A&&A.type==="text"&&U.type==="text"){A.value+=U.value,A.output=(A.output||"")+U.value;return}U.prev=A,o.push(U),A=U},Z=(U,re)=>{let Y={...f[re],conditions:1,inner:""};Y.prev=A,Y.parens=m.parens,Y.output=m.output;let ue=(r.capture?"(":"")+Y.open;G("parens"),q({type:U,value:re,output:m.output?"":p}),q({type:"paren",extglob:!0,value:M(),output:ue}),v.push(Y)},ee=U=>{let re=U.close+(r.capture?")":""),Y;if(U.type==="negate"){let ue=O;if(U.inner&&U.inner.length>1&&U.inner.includes("/")&&(ue=L(r)),(ue!==O||T()||/^\)+$/.test(W()))&&(re=U.close=`)$))${ue}`),U.inner.includes("*")&&(Y=W())&&/^\.[^\\/.]+$/.test(Y)){let ve=ep(Y,{...t,fastpaths:!1}).output;re=U.close=`)${ve})${ue})`}U.prev.type==="bos"&&(m.negatedExtglob=!0)}q({type:"paren",extglob:!0,value:b,output:re}),H("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let U=!1,re=e.replace(rq,(Y,ue,ve,Fe,k,j)=>Fe==="\\"?(U=!0,Y):Fe==="?"?ue?ue+Fe+(k?I.repeat(k.length):""):j===0?$+(k?I.repeat(k.length):""):I.repeat(ve.length):Fe==="."?l.repeat(ve.length):Fe==="*"?ue?ue+Fe+(k?O:""):O:ue?Y:`\\${Y}`);return U===!0&&(r.unescape===!0?re=re.replace(/\\/g,""):re=re.replace(/\\+/g,Y=>Y.length%2===0?"\\\\":Y?"\\":"")),re===e&&r.contains===!0?(m.output=e,m):(m.output=Jt.wrapOutput(re,m,t),m)}for(;!T();){if(b=M(),b==="\0")continue;if(b==="\\"){let Y=N();if(Y==="/"&&r.bash!==!0||Y==="."||Y===";")continue;if(!Y){b+="\\",q({type:"text",value:b});continue}let ue=/^\\+/.exec(W()),ve=0;if(ue&&ue[0].length>2&&(ve=ue[0].length,m.index+=ve,ve%2!==0&&(b+="\\")),r.unescape===!0?b=M():b+=M(),m.brackets===0){q({type:"text",value:b});continue}}if(m.brackets>0&&(b!=="]"||A.value==="["||A.value==="[^")){if(r.posix!==!1&&b===":"){let Y=A.value.slice(1);if(Y.includes("[")&&(A.posix=!0,Y.includes(":"))){let ue=A.value.lastIndexOf("["),ve=A.value.slice(0,ue),Fe=A.value.slice(ue+2),k=eq[Fe];if(k){A.value=ve+k,m.backtrack=!0,M(),!s.output&&o.indexOf(A)===1&&(s.output=p);continue}}}(b==="["&&N()!==":"||b==="-"&&N()==="]")&&(b=`\\${b}`),b==="]"&&(A.value==="["||A.value==="[^")&&(b=`\\${b}`),r.posix===!0&&b==="!"&&A.value==="["&&(b="^"),A.value+=b,X({value:b});continue}if(m.quotes===1&&b!=='"'){b=Jt.escapeRegex(b),A.value+=b,X({value:b});continue}if(b==='"'){m.quotes=m.quotes===1?0:1,r.keepQuotes===!0&&q({type:"text",value:b});continue}if(b==="("){G("parens"),q({type:"paren",value:b});continue}if(b===")"){if(m.parens===0&&r.strictBrackets===!0)throw new SyntaxError(ds("opening","("));let Y=v[v.length-1];if(Y&&m.parens===Y.parens+1){ee(v.pop());continue}q({type:"paren",value:b,output:m.parens?")":"\\)"}),H("parens");continue}if(b==="["){if(r.nobracket===!0||!W().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(ds("closing","]"));b=`\\${b}`}else G("brackets");q({type:"bracket",value:b});continue}if(b==="]"){if(r.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){q({type:"text",value:b,output:`\\${b}`});continue}if(m.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(ds("opening","["));q({type:"text",value:b,output:`\\${b}`});continue}H("brackets");let Y=A.value.slice(1);if(A.posix!==!0&&Y[0]==="^"&&!Y.includes("/")&&(b=`/${b}`),A.value+=b,X({value:b}),r.literalBrackets===!1||Jt.hasRegexChars(Y))continue;let ue=Jt.escapeRegex(A.value);if(m.output=m.output.slice(0,-A.value.length),r.literalBrackets===!0){m.output+=ue,A.value=ue;continue}A.value=`(${a}${ue}|${A.value})`,m.output+=A.value;continue}if(b==="{"&&r.nobrace!==!0){G("braces");let Y={type:"brace",value:b,output:"(",outputIndex:m.output.length,tokensIndex:m.tokens.length};E.push(Y),q(Y);continue}if(b==="}"){let Y=E[E.length-1];if(r.nobrace===!0||!Y){q({type:"text",value:b,output:b});continue}let ue=")";if(Y.dots===!0){let ve=o.slice(),Fe=[];for(let k=ve.length-1;k>=0&&(o.pop(),ve[k].type!=="brace");k--)ve[k].type!=="dots"&&Fe.unshift(ve[k].value);ue=nq(Fe,r),m.backtrack=!0}if(Y.comma!==!0&&Y.dots!==!0){let ve=m.output.slice(0,Y.outputIndex),Fe=m.tokens.slice(Y.tokensIndex);Y.value=Y.output="\\{",b=ue="\\}",m.output=ve;for(let k of Fe)m.output+=k.output||k.value}q({type:"brace",value:b,output:ue}),H("braces"),E.pop();continue}if(b==="|"){v.length>0&&v[v.length-1].conditions++,q({type:"text",value:b});continue}if(b===","){let Y=b,ue=E[E.length-1];ue&&C[C.length-1]==="braces"&&(ue.comma=!0,Y="|"),q({type:"comma",value:b,output:Y});continue}if(b==="/"){if(A.type==="dot"&&m.index===m.start+1){m.start=m.index+1,m.consumed="",m.output="",o.pop(),A=s;continue}q({type:"slash",value:b,output:d});continue}if(b==="."){if(m.braces>0&&A.type==="dot"){A.value==="."&&(A.output=l);let Y=E[E.length-1];A.type="dots",A.output+=b,A.value+=b,Y.dots=!0;continue}if(m.braces+m.parens===0&&A.type!=="bos"&&A.type!=="slash"){q({type:"text",value:b,output:l});continue}q({type:"dot",value:b,output:l});continue}if(b==="?"){if(!(A&&A.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){Z("qmark",b);continue}if(A&&A.type==="paren"){let ue=N(),ve=b;if(ue==="<"&&!Jt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(ue)||ue==="<"&&!/<([!=]|\w+>)/.test(W()))&&(ve=`\\${b}`),q({type:"text",value:b,output:ve});continue}if(r.dot!==!0&&(A.type==="slash"||A.type==="bos")){q({type:"qmark",value:b,output:R});continue}q({type:"qmark",value:b,output:I});continue}if(b==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){Z("negate",b);continue}if(r.nonegate!==!0&&m.index===0){he();continue}}if(b==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){Z("plus",b);continue}if(A&&A.value==="("||r.regex===!1){q({type:"plus",value:b,output:h});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||m.parens>0){q({type:"plus",value:b});continue}q({type:"plus",value:h});continue}if(b==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){q({type:"at",extglob:!0,value:b,output:""});continue}q({type:"text",value:b});continue}if(b!=="*"){(b==="$"||b==="^")&&(b=`\\${b}`);let Y=tq.exec(W());Y&&(b+=Y[0],m.index+=Y[0].length),q({type:"text",value:b});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=b,A.output=O,m.backtrack=!0,m.globstar=!0,V(b);continue}let U=W();if(r.noextglob!==!0&&/^\([^?]/.test(U)){Z("star",b);continue}if(A.type==="star"){if(r.noglobstar===!0){V(b);continue}let Y=A.prev,ue=Y.prev,ve=Y.type==="slash"||Y.type==="bos",Fe=ue&&(ue.type==="star"||ue.type==="globstar");if(r.bash===!0&&(!ve||U[0]&&U[0]!=="/")){q({type:"star",value:b,output:""});continue}let k=m.braces>0&&(Y.type==="comma"||Y.type==="brace"),j=v.length&&(Y.type==="pipe"||Y.type==="paren");if(!ve&&Y.type!=="paren"&&!k&&!j){q({type:"star",value:b,output:""});continue}for(;U.slice(0,3)==="/**";){let K=e[m.index+4];if(K&&K!=="/")break;U=U.slice(3),V("/**",3)}if(Y.type==="bos"&&T()){A.type="globstar",A.value+=b,A.output=L(r),m.output=A.output,m.globstar=!0,V(b);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&!Fe&&T()){m.output=m.output.slice(0,-(Y.output+A.output).length),Y.output=`(?:${Y.output}`,A.type="globstar",A.output=L(r)+(r.strictSlashes?")":"|$)"),A.value+=b,m.globstar=!0,m.output+=Y.output+A.output,V(b);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&U[0]==="/"){let K=U[1]!==void 0?"|$":"";m.output=m.output.slice(0,-(Y.output+A.output).length),Y.output=`(?:${Y.output}`,A.type="globstar",A.output=`${L(r)}${d}|${d}${K})`,A.value+=b,m.output+=Y.output+A.output,m.globstar=!0,V(b+M()),q({type:"slash",value:"/",output:""});continue}if(Y.type==="bos"&&U[0]==="/"){A.type="globstar",A.value+=b,A.output=`(?:^|${d}|${L(r)}${d})`,m.output=A.output,m.globstar=!0,V(b+M()),q({type:"slash",value:"/",output:""});continue}m.output=m.output.slice(0,-A.output.length),A.type="globstar",A.output=L(r),A.value+=b,m.output+=A.output,m.globstar=!0,V(b);continue}let re={type:"star",value:b,output:O};if(r.bash===!0){re.output=".*?",(A.type==="bos"||A.type==="slash")&&(re.output=_+re.output),q(re);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&r.regex===!0){re.output=b,q(re);continue}(m.index===m.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(m.output+=x,A.output+=x):r.dot===!0?(m.output+=S,A.output+=S):(m.output+=_,A.output+=_),N()!=="*"&&(m.output+=p,A.output+=p)),q(re)}for(;m.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(ds("closing","]"));m.output=Jt.escapeLast(m.output,"["),H("brackets")}for(;m.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(ds("closing",")"));m.output=Jt.escapeLast(m.output,"("),H("parens")}for(;m.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(ds("closing","}"));m.output=Jt.escapeLast(m.output,"{"),H("braces")}if(r.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&q({type:"maybe_slash",value:"",output:`${d}?`}),m.backtrack===!0){m.output="";for(let U of m.tokens)m.output+=U.output!=null?U.output:U.value,U.suffix&&(m.output+=U.suffix)}return m};ep.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Cc,r.maxLength):Cc,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=MC[e]||e;let s=Jt.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:f,NO_DOTS:l,NO_DOTS_SLASH:h,STAR:d,START_ANCHOR:p}=Sc.globChars(s),g=r.dot?l:f,y=r.dot?h:f,x=r.capture?"":"?:",S={negated:!1,prefix:""},I=r.bash===!0?".*?":d;r.capture&&(I=`(${I})`);let R=_=>_.noglobstar===!0?I:`(${x}(?:(?!${p}${_.dot?u:o}).)*?)`,w=_=>{switch(_){case"*":return`${g}${c}${I}`;case".*":return`${o}${c}${I}`;case"*.*":return`${g}${I}${o}${c}${I}`;case"*/*":return`${g}${I}${a}${c}${y}${I}`;case"**":return g+R(r);case"**/*":return`(?:${g}${R(r)}${a})?${y}${c}${I}`;case"**/*.*":return`(?:${g}${R(r)}${a})?${y}${I}${o}${c}${I}`;case"**/.*":return`(?:${g}${R(r)}${a})?${o}${c}${I}`;default:{let $=/^(.*?)\.(\w+)$/.exec(_);if(!$)return;let O=w($[1]);return O?O+o+$[2]:void 0}}},D=Jt.removePrefix(e,S),L=w(D);return L&&r.strictSlashes!==!0&&(L+=`${a}?`),L};jC.exports=ep});var GC=P((VX,qC)=>{"use strict";var iq=require("path"),sq=$C(),tp=BC(),rp=Jo(),oq=Xo(),aq=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=aq(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=rp.isWindows(t),o=n?Je.compileRe(e,t):Je.makeRe(e,t,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};c=Je(i.ignore,f,r)}let u=(f,l=!1)=>{let{isMatch:h,match:d,output:p}=Je.test(f,o,t,{glob:e,posix:s}),g={glob:e,state:a,regex:o,posix:s,input:f,output:p,match:d,isMatch:h};return typeof i.onResult=="function"&&i.onResult(g),h===!1?(g.isMatch=!1,l?g:!1):c(f)?(typeof i.onIgnore=="function"&&i.onIgnore(g),g.isMatch=!1,l?g:!1):(typeof i.onMatch=="function"&&i.onMatch(g),l?g:!0)};return r&&(u.state=a),u};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?rp.toPosixSlashes:null),a=e===n,c=a&&o?o(e):e;return a===!1&&(c=o?o(e):e,a=c===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Je.matchBase(e,t,r,i):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};Je.matchBase=(e,t,r,n=rp.isWindows(r))=>(t instanceof RegExp?t:Je.makeRe(t,r)).test(iq.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)):tp(e,{...t,fastpaths:!1});Je.scan=(e,t)=>sq(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 c=Je.toRegex(a,t);return n===!0&&(c.state=e),c};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=tp.fastpaths(e,t)),i.output||(i=tp(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=oq;qC.exports=Je});var WC=P((KX,UC)=>{"use strict";UC.exports=GC()});var Zo=P((XX,VC)=>{"use strict";var zC=require("util"),YC=CC(),Nr=WC(),np=Jo(),HC=e=>e===""||e==="./",We=(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=Nr(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 u=(o===t.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&u.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 u};We.match=We;We.matcher=(e,t)=>Nr(e,t);We.isMatch=(e,t,r)=>Nr(t,r)(e);We.any=We.isMatch;We.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(We(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};We.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=>We.contains(e,n,r));if(typeof t=="string"){if(HC(e)||HC(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return We.isMatch(e,t,{...r,contains:!0})};We.matchKeys=(e,t,r)=>{if(!np.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=We(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};We.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Nr(String(i),r);if(n.some(o=>s(o)))return!0}return!1};We.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Nr(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};We.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${zC.inspect(e)}"`);return[].concat(t).every(n=>Nr(n,r)(e))};We.capture=(e,t,r)=>{let n=np.isWindows(r),s=Nr.makeRe(String(e),{...r,capture:!0}).exec(n?np.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};We.makeRe=(...e)=>Nr.makeRe(...e);We.scan=(...e)=>Nr.scan(...e);We.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of YC(String(n),t))r.push(Nr.parse(i,t));return r};We.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:YC(e,t)};We.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return We.braces(e,{...t,expand:!0})};VC.exports=We});var rx=P(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.removeDuplicateSlashes=we.matchAny=we.convertPatternsToRe=we.makeRe=we.getPatternParts=we.expandBraceExpansion=we.expandPatternsWithBraceExpansion=we.isAffectDepthOfReadingPattern=we.endsWithSlashGlobStar=we.hasGlobStar=we.getBaseDirectory=we.isPatternRelatedToParentDirectory=we.getPatternsOutsideCurrentDirectory=we.getPatternsInsideCurrentDirectory=we.getPositivePatterns=we.getNegativePatterns=we.isPositivePattern=we.isNegativePattern=we.convertToNegativePattern=we.convertToPositivePattern=we.isDynamicPattern=we.isStaticPattern=void 0;var uq=require("path"),cq=G1(),ip=Zo(),KC="**",lq="\\",fq=/[*?]|^!/,hq=/\[[^[]*]/,dq=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,pq=/[!*+?@]\([^(]*\)/,mq=/,|\.\./,gq=/(?!^)\/{2,}/g;function XC(e,t={}){return!JC(e,t)}we.isStaticPattern=XC;function JC(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(lq)||fq.test(e)||hq.test(e)||dq.test(e)||t.extglob!==!1&&pq.test(e)||t.braceExpansion!==!1&&yq(e))}we.isDynamicPattern=JC;function yq(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 mq.test(n)}function vq(e){return xc(e)?e.slice(1):e}we.convertToPositivePattern=vq;function Eq(e){return"!"+e}we.convertToNegativePattern=Eq;function xc(e){return e.startsWith("!")&&e[1]!=="("}we.isNegativePattern=xc;function QC(e){return!xc(e)}we.isPositivePattern=QC;function Aq(e){return e.filter(xc)}we.getNegativePatterns=Aq;function wq(e){return e.filter(QC)}we.getPositivePatterns=wq;function bq(e){return e.filter(t=>!sp(t))}we.getPatternsInsideCurrentDirectory=bq;function Sq(e){return e.filter(sp)}we.getPatternsOutsideCurrentDirectory=Sq;function sp(e){return e.startsWith("..")||e.startsWith("./..")}we.isPatternRelatedToParentDirectory=sp;function Cq(e){return cq(e,{flipBackslashes:!1})}we.getBaseDirectory=Cq;function xq(e){return e.includes(KC)}we.hasGlobStar=xq;function ZC(e){return e.endsWith("/"+KC)}we.endsWithSlashGlobStar=ZC;function Oq(e){let t=uq.basename(e);return ZC(e)||XC(t)}we.isAffectDepthOfReadingPattern=Oq;function _q(e){return e.reduce((t,r)=>t.concat(ex(r)),[])}we.expandPatternsWithBraceExpansion=_q;function ex(e){let t=ip.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}we.expandBraceExpansion=ex;function Pq(e,t){let{parts:r}=ip.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}we.getPatternParts=Pq;function tx(e,t){return ip.makeRe(e,t)}we.makeRe=tx;function Rq(e,t){return e.map(r=>tx(r,t))}we.convertPatternsToRe=Rq;function Fq(e,t){return t.some(r=>r.test(e))}we.matchAny=Fq;function Dq(e){return e.replace(gq,"/")}we.removeDuplicateSlashes=Dq});var ix=P(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.merge=void 0;var Lq=$d();function Tq(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}Oc.merge=Tq;function nx(e){e.forEach(t=>t.emit("close"))}});var sx=P(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.isEmpty=ps.isString=void 0;function Iq(e){return typeof e=="string"}ps.isString=Iq;function kq(e){return e===""}ps.isEmpty=kq});var rn=P(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.string=yt.stream=yt.pattern=yt.path=yt.fs=yt.errno=yt.array=void 0;var Nq=R1();yt.array=Nq;var $q=F1();yt.errno=$q;var Mq=D1();yt.fs=Mq;var jq=k1();yt.path=jq;var Bq=rx();yt.pattern=Bq;var qq=ix();yt.stream=qq;var Gq=sx();yt.string=Gq});var cx=P(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.convertPatternGroupToTask=vt.convertPatternGroupsToTasks=vt.groupPatternsByBaseDirectory=vt.getNegativePatternsAsPositive=vt.getPositivePatterns=vt.convertPatternsToTasks=vt.generate=void 0;var xr=rn();function Uq(e,t){let r=ox(e,t),n=ox(t.ignore,t),i=ax(r),s=ux(r,n),o=i.filter(f=>xr.pattern.isStaticPattern(f,t)),a=i.filter(f=>xr.pattern.isDynamicPattern(f,t)),c=op(o,s,!1),u=op(a,s,!0);return c.concat(u)}vt.generate=Uq;function ox(e,t){let r=e;return t.braceExpansion&&(r=xr.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>xr.pattern.removeDuplicateSlashes(n))}function op(e,t,r){let n=[],i=xr.pattern.getPatternsOutsideCurrentDirectory(e),s=xr.pattern.getPatternsInsideCurrentDirectory(e),o=ap(i),a=ap(s);return n.push(...up(o,t,r)),"."in a?n.push(cp(".",s,t,r)):n.push(...up(a,t,r)),n}vt.convertPatternsToTasks=op;function ax(e){return xr.pattern.getPositivePatterns(e)}vt.getPositivePatterns=ax;function ux(e,t){return xr.pattern.getNegativePatterns(e).concat(t).map(xr.pattern.convertToPositivePattern)}vt.getNegativePatternsAsPositive=ux;function ap(e){let t={};return e.reduce((r,n)=>{let i=xr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}vt.groupPatternsByBaseDirectory=ap;function up(e,t,r){return Object.keys(e).map(n=>cp(n,e[n],t,r))}vt.convertPatternGroupsToTasks=up;function cp(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(xr.pattern.convertToNegativePattern))}}vt.convertPatternGroupToTask=cp});var fx=P(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.read=void 0;function Wq(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){lx(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){lp(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){lx(r,s);return}lp(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),lp(r,o)})})}_c.read=Wq;function lx(e,t){e(t)}function lp(e,t){e(null,t)}});var hx=P(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.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}}Pc.read=Hq});var dx=P(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.createFileSystemAdapter=Nn.FILE_SYSTEM_ADAPTER=void 0;var Rc=require("fs");Nn.FILE_SYSTEM_ADAPTER={lstat:Rc.lstat,stat:Rc.stat,lstatSync:Rc.lstatSync,statSync:Rc.statSync};function zq(e){return e===void 0?Nn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Nn.FILE_SYSTEM_ADAPTER),e)}Nn.createFileSystemAdapter=zq});var px=P(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var Yq=dx(),fp=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}};hp.default=fp});var Si=P($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.statSync=$n.stat=$n.Settings=void 0;var mx=fx(),Vq=hx(),dp=px();$n.Settings=dp.default;function Kq(e,t,r){if(typeof t=="function"){mx.read(e,pp(),t);return}mx.read(e,pp(t),r)}$n.stat=Kq;function Xq(e,t){let r=pp(t);return Vq.read(e,r)}$n.statSync=Xq;function pp(e={}){return e instanceof dp.default?e:new dp.default(e)}});var vx=P((aJ,yx)=>{var gx;yx.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(gx||(gx=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Ax=P((uJ,Ex)=>{Ex.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(c){function u(){t&&t(c,r),t=null}s?Jq(u):u()}function a(c,u,f){r[c]=f,(--n===0||u)&&o(u)}n?i?i.forEach(function(c){e[c](function(u,f){a(c,u,f)})}):e.forEach(function(c,u){c(function(f,l){a(u,f,l)})}):o(null),s=!1}});var mp=P(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Fc=process.versions.node.split(".");if(Fc[0]===void 0||Fc[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var wx=Number.parseInt(Fc[0],10),Zq=Number.parseInt(Fc[1],10),bx=10,eG=10,tG=wx>bx,rG=wx===bx&&Zq>=eG;Dc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=tG||rG});var Sx=P(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.createDirentFromStats=void 0;var gp=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 gp(e,t)}Lc.createDirentFromStats=nG});var yp=P(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.fs=void 0;var iG=Sx();Tc.fs=iG});var vp=P(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.joinPathSegments=void 0;function sG(e,t,r){return e.endsWith(r)?e+t:e+r+t}Ic.joinPathSegments=sG});var Rx=P(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.readdir=Mn.readdirWithFileTypes=Mn.read=void 0;var oG=Si(),Cx=Ax(),aG=mp(),xx=yp(),Ox=vp();function uG(e,t,r){if(!t.stats&&aG.IS_SUPPORT_READDIR_WITH_FILE_TYPES){_x(e,t,r);return}Px(e,t,r)}Mn.read=uG;function _x(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){kc(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:Ox.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Ep(r,s);return}let o=s.map(a=>cG(a,t));Cx(o,(a,c)=>{if(a!==null){kc(r,a);return}Ep(r,c)})})}Mn.readdirWithFileTypes=_x;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 Px(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){kc(r,n);return}let s=i.map(o=>{let a=Ox.joinPathSegments(e,o,t.pathSegmentSeparator);return c=>{oG.stat(a,t.fsStatSettings,(u,f)=>{if(u!==null){c(u);return}let l={name:o,path:a,dirent:xx.fs.createDirentFromStats(o,f)};t.stats&&(l.stats=f),c(null,l)})}});Cx(s,(o,a)=>{if(o!==null){kc(r,o);return}Ep(r,a)})})}Mn.readdir=Px;function kc(e,t){e(t)}function Ep(e,t){e(null,t)}});var Ix=P(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.readdir=jn.readdirWithFileTypes=jn.read=void 0;var lG=Si(),fG=mp(),Fx=yp(),Dx=vp();function hG(e,t){return!t.stats&&fG.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Lx(e,t):Tx(e,t)}jn.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})}jn.readdirWithFileTypes=Lx;function Tx(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})}jn.readdir=Tx});var kx=P(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.createFileSystemAdapter=Bn.FILE_SYSTEM_ADAPTER=void 0;var ms=require("fs");Bn.FILE_SYSTEM_ADAPTER={lstat:ms.lstat,stat:ms.stat,lstatSync:ms.lstatSync,statSync:ms.statSync,readdir:ms.readdir,readdirSync:ms.readdirSync};function dG(e){return e===void 0?Bn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Bn.FILE_SYSTEM_ADAPTER),e)}Bn.createFileSystemAdapter=dG});var Nx=P(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});var pG=require("path"),mG=Si(),gG=kx(),Ap=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=gG.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 mG.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};wp.default=Ap});var Nc=P(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.Settings=qn.scandirSync=qn.scandir=void 0;var $x=Rx(),yG=Ix(),bp=Nx();qn.Settings=bp.default;function vG(e,t,r){if(typeof t=="function"){$x.read(e,Sp(),t);return}$x.read(e,Sp(t),r)}qn.scandir=vG;function EG(e,t){let r=Sp(t);return yG.read(e,r)}qn.scandirSync=EG;function Sp(e={}){return e instanceof bp.default?e:new bp.default(e)}});var jx=P((vJ,Mx)=>{"use strict";function AG(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=AG});var qx=P((EJ,Cp)=>{"use strict";var wG=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=wG(bG),i=null,s=null,o=0,a=null,c={push:g,drain:hr,saturated:hr,pause:f,paused:!1,get concurrency(){return r},set concurrency(w){if(!(w>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=w,!c.paused)for(;i&&o<r;)o++,x()},running:u,resume:d,idle:p,length:l,getQueue:h,unshift:y,empty:hr,kill:S,killAndDrain:I,error:R};return c;function u(){return o}function f(){c.paused=!0}function l(){for(var w=i,D=0;w;)w=w.next,D++;return D}function h(){for(var w=i,D=[];w;)D.push(w.value),w=w.next;return D}function d(){if(c.paused){if(c.paused=!1,i===null){o++,x();return}for(;i&&o<r;)o++,x()}}function p(){return o===0&&c.length()===0}function g(w,D){var L=n.get();L.context=e,L.release=x,L.value=w,L.callback=D||hr,L.errorHandler=a,o>=r||c.paused?s?(s.next=L,s=L):(i=L,s=L,c.saturated()):(o++,t.call(e,L.value,L.worked))}function y(w,D){var L=n.get();L.context=e,L.release=x,L.value=w,L.callback=D||hr,L.errorHandler=a,o>=r||c.paused?i?(L.next=i,i=L):(i=L,s=L,c.saturated()):(o++,t.call(e,L.value,L.worked))}function x(w){w&&n.release(w);var D=i;D&&o<=r?c.paused?o--:(s===i&&(s=null),i=D.next,D.next=null,t.call(e,D.value,D.worked),s===null&&c.empty()):--o===0&&c.drain()}function S(){i=null,s=null,c.drain=hr}function I(){i=null,s=null,c.drain(),c.drain=hr}function R(w){a=w}}function hr(){}function bG(){this.value=null,this.callback=hr,this.next=null,this.release=hr,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=hr,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=c,i.drained=u,i;function a(f){var l=new Promise(function(h,d){s(f,function(p,g){if(p){d(p);return}h(g)})});return l.catch(hr),l}function c(f){var l=new Promise(function(h,d){o(f,function(p,g){if(p){d(p);return}h(g)})});return l.catch(hr),l}function u(){if(i.idle())return new Promise(function(h){h()});var f=i.drain,l=new Promise(function(h){i.drain=function(){f(),h()}});return l}}Cp.exports=Bx;Cp.exports.promise=SG});var $c=P($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.joinPathSegments=$r.replacePathSegmentSeparator=$r.isAppliedFilter=$r.isFatalError=void 0;function CG(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}$r.isFatalError=CG;function xG(e,t){return e===null||e(t)}$r.isAppliedFilter=xG;function OG(e,t){return e.split(/[/\\]/).join(t)}$r.replacePathSegmentSeparator=OG;function _G(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}$r.joinPathSegments=_G});var _p=P(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});var PG=$c(),xp=class{constructor(t,r){this._root=t,this._settings=r,this._root=PG.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Op.default=xp});var Fp=P(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});var RG=require("events"),FG=Nc(),DG=qx(),Mc=$c(),LG=_p(),Pp=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||!Mc.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=Mc.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Mc.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Mc.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Rp.default=Pp});var Gx=P(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var TG=Fp(),Dp=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new TG.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{IG(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{kG(t,this._storage)}),this._reader.read()}};Lp.default=Dp;function IG(e,t){e(t)}function kG(e,t){e(null,t)}});var Ux=P(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});var NG=require("stream"),$G=Fp(),Tp=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}};Ip.default=Tp});var Wx=P(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var MG=Nc(),jc=$c(),jG=_p(),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(jc.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=jc.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),jc.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&jc.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Np.default=kp});var Hx=P(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});var BG=Wx(),$p=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new BG.default(this._root,this._settings)}read(){return this._reader.read()}};Mp.default=$p});var zx=P(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var qG=require("path"),GG=Nc(),jp=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,qG.sep),this.fsScandirSettings=new GG.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}};Bp.default=jp});var qc=P(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.Settings=Mr.walkStream=Mr.walkSync=Mr.walk=void 0;var Yx=Gx(),UG=Ux(),WG=Hx(),qp=zx();Mr.Settings=qp.default;function HG(e,t,r){if(typeof t=="function"){new Yx.default(e,Bc()).read(t);return}new Yx.default(e,Bc(t)).read(r)}Mr.walk=HG;function zG(e,t){let r=Bc(t);return new WG.default(e,r).read()}Mr.walkSync=zG;function YG(e,t){let r=Bc(t);return new UG.default(e,r).read()}Mr.walkStream=YG;function Bc(e={}){return e instanceof qp.default?e:new qp.default(e)}});var Gc=P(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var VG=require("path"),KG=Si(),Vx=rn(),Gp=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}};Up.default=Gp});var zp=P(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});var XG=require("stream"),JG=Si(),QG=qc(),ZG=Gc(),Wp=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(c=>{c!==null&&r.entryFilter(c)&&i.push(c),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))})}};Hp.default=Wp});var Kx=P(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var eU=qc(),tU=Gc(),rU=zp(),Yp=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))})}};Vp.default=Yp});var Xx=P(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var ea=rn(),Kp=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 ea.pattern.getPatternParts(t,this._micromatchOptions).map(n=>ea.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:ea.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return ea.array.splitWhen(t,r=>r.dynamic&&ea.pattern.hasGlobStar(r.pattern))}};Xp.default=Kp});var Jx=P(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var nU=Xx(),Jp=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((c,u)=>{let f=s.segments[u];return!!(f.dynamic&&f.patternRe.test(c)||!f.dynamic&&f.pattern===c)}))return!0}return!1}};Qp.default=Jp});var Qx=P(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});var Uc=rn(),iU=Jx(),Zp=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(Uc.pattern.isAffectDepthOfReadingPattern);return Uc.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Uc.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!Uc.pattern.matchAny(t,r)}};em.default=Zp});var Zx=P(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});var Ci=rn(),tm=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=Ci.pattern.convertPatternsToRe(t,this._micromatchOptions),i=Ci.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return s=>this._filter(s,n,i)}_filter(t,r,n){let i=Ci.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(i,n))return!1;let s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(i,n,s);return this._settings.unique&&o&&this._createIndexRecord(i),o}_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()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=Ci.path.makeAbsolute(this._settings.cwd,t);return Ci.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=Ci.pattern.matchAny(t,r);return!i&&n?Ci.pattern.matchAny(t+"/",r):i}};rm.default=tm});var eO=P(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});var sU=rn(),nm=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return sU.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};im.default=nm});var rO=P(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});var tO=rn(),sm=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}};om.default=sm});var Wc=P(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});var oU=require("path"),aU=Qx(),uU=Zx(),cU=eO(),lU=rO(),am=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}}};um.default=am});var nO=P(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});var fU=Kx(),hU=Wc(),cm=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)}};lm.default=cm});var iO=P(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});var dU=require("stream"),pU=zp(),mU=Wc(),fm=class extends mU.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)}};hm.default=fm});var sO=P(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});var gU=Si(),yU=qc(),vU=Gc(),dm=class extends vU.default{constructor(){super(...arguments),this._walkSync=yU.walkSync,this._statSync=gU.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)}};pm.default=dm});var oO=P(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});var EU=sO(),AU=Wc(),mm=class extends AU.default{constructor(){super(...arguments),this._reader=new EU.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)}};gm.default=mm});var aO=P(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var gs=require("fs"),wU=require("os"),bU=Math.max(wU.cpus().length,1);ys.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:gs.lstat,lstatSync:gs.lstatSync,stat:gs.stat,statSync:gs.statSync,readdir:gs.readdir,readdirSync:gs.readdirSync};var ym=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,bU),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({},ys.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};ys.default=ym});var wm=P((WJ,cO)=>{"use strict";var uO=cx(),SU=nO(),CU=iO(),xU=oO(),vm=aO(),dr=rn();async function Em(e,t){Or(e);let r=Am(e,SU.default,t),n=await Promise.all(r);return dr.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(u,f){Or(u);let l=Am(u,xU.default,f);return dr.array.flatten(l)}e.sync=t;function r(u,f){Or(u);let l=Am(u,CU.default,f);return dr.stream.merge(l)}e.stream=r;function n(u,f){Or(u);let l=[].concat(u),h=new vm.default(f);return uO.generate(l,h)}e.generateTasks=n;function i(u,f){Or(u);let l=new vm.default(f);return dr.pattern.isDynamicPattern(u,l)}e.isDynamicPattern=i;function s(u){return Or(u),dr.path.escape(u)}e.escapePath=s;function o(u){return Or(u),dr.path.convertPathToPattern(u)}e.convertPathToPattern=o;let a;(function(u){function f(h){return Or(h),dr.path.escapePosixPath(h)}u.escapePath=f;function l(h){return Or(h),dr.path.convertPosixPathToPattern(h)}u.convertPathToPattern=l})(a=e.posix||(e.posix={}));let c;(function(u){function f(h){return Or(h),dr.path.escapeWindowsPath(h)}u.escapePath=f;function l(h){return Or(h),dr.path.convertWindowsPathToPattern(h)}u.convertPathToPattern=l})(c=e.win32||(e.win32={}))})(Em||(Em={}));function Am(e,t,r){let n=[].concat(e),i=new vm.default(r),s=uO.generate(n,i),o=new t(i);return s.map(o.read,o)}function Or(e){if(![].concat(e).every(n=>dr.string.isString(n)&&!dr.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}cO.exports=Em});var fO=P(xi=>{"use strict";var{promisify:OU}=require("util"),lO=require("fs");async function bm(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await OU(lO[e])(r))[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}function Sm(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return lO[e](r)[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}xi.isFile=bm.bind(null,"stat","isFile");xi.isDirectory=bm.bind(null,"stat","isDirectory");xi.isSymlink=bm.bind(null,"lstat","isSymbolicLink");xi.isFileSync=Sm.bind(null,"statSync","isFile");xi.isDirectorySync=Sm.bind(null,"statSync","isDirectory");xi.isSymlinkSync=Sm.bind(null,"lstatSync","isSymbolicLink")});var gO=P((zJ,Cm)=>{"use strict";var Oi=require("path"),hO=fO(),dO=e=>e.length>1?`{${e.join(",")}}`:e[0],pO=(e,t)=>{let r=e[0]==="!"?e.slice(1):e;return Oi.isAbsolute(r)?r:Oi.join(t,r)},_U=(e,t)=>Oi.extname(e)?`**/${e}`:`**/${e}.${dO(t)}`,mO=(e,t)=>{if(t.files&&!Array.isArray(t.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``);if(t.extensions&&!Array.isArray(t.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``);return t.files&&t.extensions?t.files.map(r=>Oi.posix.join(e,_U(r,t.extensions))):t.files?t.files.map(r=>Oi.posix.join(e,`**/${r}`)):t.extensions?[Oi.posix.join(e,`**/*.${dO(t.extensions)}`)]:[Oi.posix.join(e,"**")]};Cm.exports=async(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=await Promise.all([].concat(e).map(async n=>await hO.isDirectory(pO(n,t.cwd))?mO(n,t):n));return[].concat.apply([],r)};Cm.exports.sync=(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=[].concat(e).map(n=>hO.isDirectorySync(pO(n,t.cwd))?mO(n,t):n);return[].concat.apply([],r)}});var xO=P((YJ,CO)=>{function yO(e){return Array.isArray(e)?e:[e]}var _m="",vO=" ",xm="\\",PU=/^\s+$/,RU=/(?:[^\\]|^)\\$/,FU=/^\\!/,DU=/^\\#/,LU=/\r?\n/g,TU=/^\.*\/|^\.+$/,Om="/",wO="node-ignore";typeof Symbol<"u"&&(wO=Symbol.for("node-ignore"));var EO=wO,IU=(e,t,r)=>Object.defineProperty(e,t,{value:r}),kU=/([0-z])-([0-z])/g,bO=()=>!1,NU=e=>e.replace(kU,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:_m),$U=e=>{let{length:t}=e;return e.slice(0,t-t%2)},MU=[[/^\uFEFF/,()=>_m],[/\\?\s+$/,e=>e.indexOf("\\")===0?vO:_m],[/\\\s/g,()=>vO],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>xm],[/\\\\/g,()=>xm],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,i)=>t===xm?`\\[${r}${$U(n)}${i}`:i==="]"&&n.length%2===0?`[${NU(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],AO=Object.create(null),jU=(e,t)=>{let r=AO[e];return r||(r=MU.reduce((n,i)=>n.replace(i[0],i[1].bind(e)),e),AO[e]=r),t?new RegExp(r,"i"):new RegExp(r)},Fm=e=>typeof e=="string",BU=e=>e&&Fm(e)&&!PU.test(e)&&!RU.test(e)&&e.indexOf("#")!==0,qU=e=>e.split(LU),Pm=class{constructor(t,r,n,i){this.origin=t,this.pattern=r,this.negative=n,this.regex=i}},GU=(e,t)=>{let r=e,n=!1;e.indexOf("!")===0&&(n=!0,e=e.substr(1)),e=e.replace(FU,"!").replace(DU,"#");let i=jU(e,t);return new Pm(r,e,n,i)},UU=(e,t)=>{throw new t(e)},nn=(e,t,r)=>Fm(e)?e?nn.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),SO=e=>TU.test(e);nn.isNotRelative=SO;nn.convert=e=>e;var Rm=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:n=!1}={}){IU(this,EO,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[EO]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(BU(t)){let r=GU(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,yO(Fm(t)?qU(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,r){let n=!1,i=!1;return this._rules.forEach(s=>{let{negative:o}=s;if(i===o&&n!==i||o&&!n&&!i&&!r)return;s.regex.test(t)&&(n=!o,i=o)}),{ignored:n,unignored:i}}_test(t,r,n,i){let s=t&&nn.convert(t);return nn(s,t,this._allowRelativePaths?bO:UU),this._t(s,r,n,i)}_t(t,r,n,i){if(t in r)return r[t];if(i||(i=t.split(Om)),i.pop(),!i.length)return r[t]=this._testOne(t,n);let s=this._t(i.join(Om)+Om,r,n,i);return r[t]=s.ignored?s:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return yO(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},Hc=e=>new Rm(e),WU=e=>nn(e&&nn.convert(e),e,bO);Hc.isPathValid=WU;Hc.default=Hc;CO.exports=Hc;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");nn.convert=e;let t=/^[a-z]:\//i;nn.isNotRelative=r=>t.test(r)||SO(r)}});var _O=P((VJ,OO)=>{"use strict";OO.exports=e=>{let t=/^\\\\\?\\/.test(e),r=/[^\u0000-\u0080]+/.test(e);return t||r?e:e.replace(/\\/g,"/")}});var IO=P((KJ,Dm)=>{"use strict";var{promisify:HU}=require("util"),PO=require("fs"),sn=require("path"),RO=wm(),zU=xO(),ta=_O(),FO=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],YU=HU(PO.readFile),VU=e=>t=>t.startsWith("!")?"!"+sn.posix.join(e,t.slice(1)):sn.posix.join(e,t),KU=(e,t)=>{let r=ta(sn.relative(t.cwd,sn.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter(n=>!n.startsWith("#")).map(VU(r))},DO=e=>{let t=zU();for(let r of e)t.add(KU(r.content,{cwd:r.cwd,fileName:r.filePath}));return t},XU=(e,t)=>{if(e=ta(e),sn.isAbsolute(t)){if(ta(t).startsWith(e))return t;throw new Error(`Path ${t} is not in cwd ${e}`)}return sn.join(e,t)},LO=(e,t)=>r=>e.ignores(ta(sn.relative(t,XU(t,r.path||r)))),JU=async(e,t)=>{let r=sn.join(t,e),n=await YU(r,"utf8");return{cwd:t,filePath:r,content:n}},QU=(e,t)=>{let r=sn.join(t,e),n=PO.readFileSync(r,"utf8");return{cwd:t,filePath:r,content:n}},TO=({ignore:e=[],cwd:t=ta(process.cwd())}={})=>({ignore:e,cwd:t});Dm.exports=async e=>{e=TO(e);let t=await RO("**/.gitignore",{ignore:FO.concat(e.ignore),cwd:e.cwd}),r=await Promise.all(t.map(i=>JU(i,e.cwd))),n=DO(r);return LO(n,e.cwd)};Dm.exports.sync=e=>{e=TO(e);let r=RO.sync("**/.gitignore",{ignore:FO.concat(e.ignore),cwd:e.cwd}).map(i=>QU(i,e.cwd)),n=DO(r);return LO(n,e.cwd)}});var NO=P((XJ,kO)=>{"use strict";var{Transform:ZU}=require("stream"),zc=class extends ZU{constructor(){super({objectMode:!0})}},Lm=class extends zc{constructor(t){super(),this._filter=t}_transform(t,r,n){this._filter(t)&&this.push(t),n()}},Tm=class extends zc{constructor(){super(),this._pushed=new Set}_transform(t,r,n){this._pushed.has(t)||(this.push(t),this._pushed.add(t)),n()}};kO.exports={FilterStream:Lm,UniqueStream:Tm}});var qO=P((JJ,_i)=>{"use strict";var MO=require("fs"),Yc=x1(),eW=$d(),Vc=wm(),Kc=gO(),Im=IO(),{FilterStream:tW,UniqueStream:rW}=NO(),jO=()=>!1,$O=e=>e[0]==="!",nW=e=>{if(!e.every(t=>typeof t=="string"))throw new TypeError("Patterns must be a string or an array of strings")},iW=(e={})=>{if(!e.cwd)return;let t;try{t=MO.statSync(e.cwd)}catch{return}if(!t.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},sW=e=>e.stats instanceof MO.Stats?e.path:e,Xc=(e,t)=>{e=Yc([].concat(e)),nW(e),iW(t);let r=[];t={ignore:[],expandDirectories:!0,...t};for(let[n,i]of e.entries()){if($O(i))continue;let s=e.slice(n).filter(a=>$O(a)).map(a=>a.slice(1)),o={...t,ignore:t.ignore.concat(s)};r.push({pattern:i,options:o})}return r},oW=(e,t)=>{let r={};return e.options.cwd&&(r.cwd=e.options.cwd),Array.isArray(e.options.expandDirectories)?r={...r,files:e.options.expandDirectories}:typeof e.options.expandDirectories=="object"&&(r={...r,...e.options.expandDirectories}),t(e.pattern,r)},km=(e,t)=>e.options.expandDirectories?oW(e,t):[e.pattern],BO=e=>e&&e.gitignore?Im.sync({cwd:e.cwd,ignore:e.ignore}):jO,Nm=e=>t=>{let{options:r}=e;return r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories&&(r.ignore=Kc.sync(r.ignore)),{pattern:t,options:r}};_i.exports=async(e,t)=>{let r=Xc(e,t),n=async()=>t&&t.gitignore?Im({cwd:t.cwd,ignore:t.ignore}):jO,i=async()=>{let c=await Promise.all(r.map(async u=>{let f=await km(u,Kc);return Promise.all(f.map(Nm(u)))}));return Yc(...c)},[s,o]=await Promise.all([n(),i()]),a=await Promise.all(o.map(c=>Vc(c.pattern,c.options)));return Yc(...a).filter(c=>!s(sW(c)))};_i.exports.sync=(e,t)=>{let r=Xc(e,t),n=[];for(let o of r){let a=km(o,Kc.sync).map(Nm(o));n.push(...a)}let i=BO(t),s=[];for(let o of n)s=Yc(s,Vc.sync(o.pattern,o.options));return s.filter(o=>!i(o))};_i.exports.stream=(e,t)=>{let r=Xc(e,t),n=[];for(let a of r){let c=km(a,Kc.sync).map(Nm(a));n.push(...c)}let i=BO(t),s=new tW(a=>!i(a)),o=new rW;return eW(n.map(a=>Vc.stream(a.pattern,a.options))).pipe(s).pipe(o)};_i.exports.generateGlobTasks=Xc;_i.exports.hasMagic=(e,t)=>[].concat(e).some(r=>Vc.isDynamicPattern(r,t));_i.exports.gitignore=Im});var Qc=P(vs=>{"use strict";var GO=vs&&vs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vs,"__esModule",{value:!0});vs.getPackagePaths=void 0;var Jc=GO(require("path")),aW=GO(qO()),ra={};function uW(e,t,r){if(ra[e])return ra[e];let n=aW.default.sync(t.map(i=>Jc.default.join(i,"package.json").replace(/\\/g,"/")),{cwd:e,absolute:!0,ignore:["**/node_modules/**","**/__fixtures__/**"],stats:!1}).map(i=>Jc.default.dirname(i));return Jc.default.sep==="/"?ra[e]=n:ra[e]=n.map(i=>i.replace(/\//g,Jc.default.sep)),ra[e]}vs.getPackagePaths=uW});var na=P(Es=>{"use strict";var UO=Es&&Es.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Es,"__esModule",{value:!0});Es.getWorkspacePackageInfo=void 0;var cW=UO(require("path")),lW=UO(require("fs"));function fW(e){return e?e.reduce((t,r)=>{let n,i=cW.default.join(r,"package.json");try{n=JSON.parse(lW.default.readFileSync(i,"utf-8"))}catch{return t}return[...t,{name:n.name,path:r,packageJson:{...n,packageJsonPath:i}}]},[]):[]}Es.getWorkspacePackageInfo=fW});var $m=P(Gn=>{"use strict";var WO=Gn&&Gn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.getWorkspaceInfoFromWorkspaceRoot=Gn.getPackageJsonWorkspaceRoot=void 0;var hW=WO(require("fs")),HO=WO(require("path")),dW=mc(),pW=Qc(),mW=na();function gW(e){var t;let r=(t=(0,dW.getWorkspaceImplementationAndLockFile)(e))===null||t===void 0?void 0:t.lockFile;return r?HO.default.dirname(r):e}Gn.getPackageJsonWorkspaceRoot=gW;function yW(e){let t=HO.default.join(e,"package.json");try{return JSON.parse(hW.default.readFileSync(t,"utf-8"))}catch{throw new Error("Could not load package.json from workspaces root")}}function vW(e){let{workspaces:t}=e;if(t&&Array.isArray(t))return t;if(!t||!t.packages)throw new Error("Could not find a workspaces object in package.json");return t.packages}function EW(e){try{let t=yW(e),r=vW(t),n=(0,pW.getPackagePaths)(e,r);return(0,mW.getWorkspacePackageInfo)(n)}catch{return[]}}Gn.getWorkspaceInfoFromWorkspaceRoot=EW});var Zc=P(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.getYarnWorkspaces=As.getYarnWorkspaceRoot=void 0;var zO=$m();function YO(e){let t=(0,zO.getPackageJsonWorkspaceRoot)(e);if(!t)throw new Error("Could not find yarn workspaces root");return t}As.getYarnWorkspaceRoot=YO;function AW(e){let t=YO(e);return(0,zO.getWorkspaceInfoFromWorkspaceRoot)(t)}As.getYarnWorkspaces=AW});var ws=P((rQ,Pi)=>{"use strict";function VO(e){return typeof e>"u"||e===null}function wW(e){return typeof e=="object"&&e!==null}function bW(e){return Array.isArray(e)?e:VO(e)?[]:[e]}function SW(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 CW(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function xW(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Pi.exports.isNothing=VO;Pi.exports.isObject=wW;Pi.exports.toArray=bW;Pi.exports.repeat=CW;Pi.exports.isNegativeZero=xW;Pi.exports.extend=SW});var bs=P((nQ,XO)=>{"use strict";function KO(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+=`
|
|
18
21
|
|
|
19
|
-
`+e.mark.snippet),n+" "+r):n}function
|
|
20
|
-
`+a;for(
|
|
21
|
-
`,a+=
|
|
22
|
-
`,
|
|
23
|
-
`;return a.replace(/\n$/,"")}
|
|
24
|
-
\r`;function
|
|
25
|
-
`: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
|
|
26
|
-
`,t-1))}function
|
|
27
|
-
`,s?1+
|
|
28
|
-
`);break}for(n?
|
|
29
|
-
`,s?1+
|
|
30
|
-
`,
|
|
31
|
-
`,
|
|
32
|
-
`,s?1+
|
|
33
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new
|
|
22
|
+
`+e.mark.snippet),n+" "+r):n}function ia(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=KO(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ia.prototype=Object.create(Error.prototype);ia.prototype.constructor=ia;ia.prototype.toString=function(t){return this.name+": "+KO(this,t)};XO.exports=ia});var QO=P((iQ,JO)=>{"use strict";var sa=ws();function Mm(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 jm(e,t){return sa.repeat(" ",t-e.length)+e}function OW(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="",c,u,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)u=Mm(e.buffer,n[o-c],i[o-c],e.position-(n[o]-n[o-c]),l),a=sa.repeat(" ",t.indent)+jm((e.line-c+1).toString(),f)+" | "+u.str+`
|
|
23
|
+
`+a;for(u=Mm(e.buffer,n[o],i[o],e.position,l),a+=sa.repeat(" ",t.indent)+jm((e.line+1).toString(),f)+" | "+u.str+`
|
|
24
|
+
`,a+=sa.repeat("-",t.indent+f+3+u.pos)+`^
|
|
25
|
+
`,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)u=Mm(e.buffer,n[o+c],i[o+c],e.position-(n[o]-n[o+c]),l),a+=sa.repeat(" ",t.indent)+jm((e.line+c+1).toString(),f)+" | "+u.str+`
|
|
26
|
+
`;return a.replace(/\n$/,"")}JO.exports=OW});var Et=P((sQ,e_)=>{"use strict";var ZO=bs(),_W=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],PW=["scalar","sequence","mapping"];function RW(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function FW(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(_W.indexOf(r)===-1)throw new ZO('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=RW(t.styleAliases||null),PW.indexOf(this.kind)===-1)throw new ZO('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}e_.exports=FW});var Gm=P((oQ,r_)=>{"use strict";var oa=bs(),Bm=Et();function t_(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 DW(){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 qm(e){return this.extend(e)}qm.prototype.extend=function(t){var r=[],n=[];if(t instanceof Bm)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 oa("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Bm))throw new oa("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new oa("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 oa("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 Bm))throw new oa("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(qm.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=t_(i,"implicit"),i.compiledExplicit=t_(i,"explicit"),i.compiledTypeMap=DW(i.compiledImplicit,i.compiledExplicit),i};r_.exports=qm});var Um=P((aQ,n_)=>{"use strict";var LW=Et();n_.exports=new LW("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Wm=P((uQ,i_)=>{"use strict";var TW=Et();i_.exports=new TW("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Hm=P((cQ,s_)=>{"use strict";var IW=Et();s_.exports=new IW("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var zm=P((lQ,o_)=>{"use strict";var kW=Gm();o_.exports=new kW({explicit:[Um(),Wm(),Hm()]})});var Ym=P((fQ,a_)=>{"use strict";var NW=Et();function $W(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function MW(){return null}function jW(e){return e===null}a_.exports=new NW("tag:yaml.org,2002:null",{kind:"scalar",resolve:$W,construct:MW,predicate:jW,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Vm=P((hQ,u_)=>{"use strict";var BW=Et();function qW(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 GW(e){return e==="true"||e==="True"||e==="TRUE"}function UW(e){return Object.prototype.toString.call(e)==="[object Boolean]"}u_.exports=new BW("tag:yaml.org,2002:bool",{kind:"scalar",resolve:qW,construct:GW,predicate:UW,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 Km=P((dQ,c_)=>{"use strict";var WW=ws(),HW=Et();function zW(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function YW(e){return 48<=e&&e<=55}function VW(e){return 48<=e&&e<=57}function KW(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(!zW(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!YW(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!VW(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function XW(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 JW(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!WW.isNegativeZero(e)}c_.exports=new HW("tag:yaml.org,2002:int",{kind:"scalar",resolve:KW,construct:XW,predicate:JW,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 Xm=P((pQ,f_)=>{"use strict";var l_=ws(),QW=Et(),ZW=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function eH(e){return!(e===null||!ZW.test(e)||e[e.length-1]==="_")}function tH(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 rH=/^[-+]?[0-9]+e/;function nH(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(l_.isNegativeZero(e))return"-0.0";return r=e.toString(10),rH.test(r)?r.replace("e",".e"):r}function iH(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||l_.isNegativeZero(e))}f_.exports=new QW("tag:yaml.org,2002:float",{kind:"scalar",resolve:eH,construct:tH,predicate:iH,represent:nH,defaultStyle:"lowercase"})});var Jm=P((mQ,h_)=>{"use strict";h_.exports=zm().extend({implicit:[Ym(),Vm(),Km(),Xm()]})});var Qm=P((gQ,d_)=>{"use strict";d_.exports=Jm()});var Zm=P((yQ,g_)=>{"use strict";var sH=Et(),p_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),m_=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 oH(e){return e===null?!1:p_.exec(e)!==null||m_.exec(e)!==null}function aH(e){var t,r,n,i,s,o,a,c=0,u=null,f,l,h;if(t=p_.exec(e),t===null&&(t=m_.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(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(f=+t[10],l=+(t[11]||0),u=(f*60+l)*6e4,t[9]==="-"&&(u=-u)),h=new Date(Date.UTC(r,n,i,s,o,a,c)),u&&h.setTime(h.getTime()-u),h}function uH(e){return e.toISOString()}g_.exports=new sH("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:oH,construct:aH,instanceOf:Date,represent:uH})});var eg=P((vQ,y_)=>{"use strict";var cH=Et();function lH(e){return e==="<<"||e===null}y_.exports=new cH("tag:yaml.org,2002:merge",{kind:"scalar",resolve:lH})});var rg=P((EQ,v_)=>{"use strict";var fH=Et(),tg=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
27
|
+
\r`;function hH(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=tg;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=tg,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 pH(e){var t="",r=0,n,i,s=e.length,o=tg;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 mH(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}v_.exports=new fH("tag:yaml.org,2002:binary",{kind:"scalar",resolve:hH,construct:dH,predicate:mH,represent:pH})});var ng=P((AQ,E_)=>{"use strict";var gH=Et(),yH=Object.prototype.hasOwnProperty,vH=Object.prototype.toString;function EH(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,vH.call(i)!=="[object Object]")return!1;for(s in i)if(yH.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 AH(e){return e!==null?e:[]}E_.exports=new gH("tag:yaml.org,2002:omap",{kind:"sequence",resolve:EH,construct:AH})});var ig=P((wQ,A_)=>{"use strict";var wH=Et(),bH=Object.prototype.toString;function SH(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 CH(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}A_.exports=new wH("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:SH,construct:CH})});var sg=P((bQ,w_)=>{"use strict";var xH=Et(),OH=Object.prototype.hasOwnProperty;function _H(e){if(e===null)return!0;var t,r=e;for(t in r)if(OH.call(r,t)&&r[t]!==null)return!1;return!0}function PH(e){return e!==null?e:{}}w_.exports=new xH("tag:yaml.org,2002:set",{kind:"mapping",resolve:_H,construct:PH})});var el=P((SQ,b_)=>{"use strict";b_.exports=Qm().extend({implicit:[Zm(),eg()],explicit:[rg(),ng(),ig(),sg()]})});var M_=P((CQ,cg)=>{"use strict";var Fi=ws(),R_=bs(),RH=QO(),FH=el(),Wn=Object.prototype.hasOwnProperty,tl=1,F_=2,D_=3,rl=4,og=1,DH=2,S_=3,LH=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,TH=/[\x85\u2028\u2029]/,IH=/[,\[\]\{\}]/,L_=/^(?:!|!!|![a-z\-]+!)$/i,T_=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function C_(e){return Object.prototype.toString.call(e)}function jr(e){return e===10||e===13}function Di(e){return e===9||e===32}function $t(e){return e===9||e===32||e===10||e===13}function Ss(e){return e===44||e===91||e===93||e===123||e===125}function kH(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function NH(e){return e===120?2:e===117?4:e===85?8:0}function $H(e){return 48<=e&&e<=57?e-48:-1}function x_(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
28
|
+
`: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 MH(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var I_=new Array(256),k_=new Array(256);for(Ri=0;Ri<256;Ri++)I_[Ri]=x_(Ri)?1:0,k_[Ri]=x_(Ri);var Ri;function jH(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||FH,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 N_(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=RH(r),new R_(t,r)}function ge(e,t){throw N_(e,t)}function nl(e,t){e.onWarning&&e.onWarning.call(null,N_(e,t))}var O_={YAML:function(t,r,n){var i,s,o;t.version!==null&&ge(t,"duplication of %YAML directive"),n.length!==1&&ge(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ge(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&ge(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&nl(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&ge(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],L_.test(i)||ge(t,"ill-formed tag handle (first argument) of the TAG directive"),Wn.call(t.tagMap,i)&&ge(t,'there is a previously declared suffix for "'+i+'" tag handle'),T_.test(s)||ge(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ge(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Un(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||ge(e,"expected valid JSON character");else LH.test(a)&&ge(e,"the stream contains non-printable characters");e.result+=a}}function __(e,t,r,n){var i,s,o,a;for(Fi.isObject(r)||ge(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],Wn.call(t,s)||(t[s]=r[s],n[s]=!0)}function Cs(e,t,r,n,i,s,o,a,c){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&ge(e,"nested arrays are not supported inside keys"),typeof i=="object"&&C_(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&C_(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,f=s.length;u<f;u+=1)__(e,t,s[u],r);else __(e,t,s,r);else!e.json&&!Wn.call(r,i)&&Wn.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,ge(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function ag(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++):ge(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(;Di(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(ag(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&&nl(e,"deficient indentation"),n}function il(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||$t(r)))}function ug(e,t){t===1?e.result+=" ":t>1&&(e.result+=Fi.repeat(`
|
|
29
|
+
`,t-1))}function BH(e,t,r){var n,i,s,o,a,c,u,f,l=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),$t(d)||Ss(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),$t(i)||r&&Ss(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),$t(i)||r&&Ss(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),$t(n))break}else{if(e.position===e.lineStart&&il(e)||r&&Ss(d))break;if(jr(d))if(c=e.line,u=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=c,e.lineStart=u,e.lineIndent=f;break}}a&&(Un(e,s,o,!1),ug(e,e.line-c),s=o=e.position,a=!1),Di(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Un(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function qH(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(Un(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)?(Un(e,n,i,!0),ug(e,tt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&il(e)?ge(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ge(e,"unexpected end of the stream within a single quoted scalar")}function GH(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 Un(e,r,e.position,!0),e.position++,!0;if(a===92){if(Un(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),jr(a))tt(e,!1,t);else if(a<256&&I_[a])e.result+=k_[a],e.position++;else if((o=NH(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=kH(a))>=0?s=(s<<4)+o:ge(e,"expected hexadecimal character");e.result+=MH(s),e.position++}else ge(e,"unknown escape sequence");r=n=e.position}else jr(a)?(Un(e,r,n,!0),ug(e,tt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&il(e)?ge(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ge(e,"unexpected end of the stream within a double quoted scalar")}function UH(e,t){var r=!0,n,i,s,o=e.tag,a,c=e.anchor,u,f,l,h,d,p=Object.create(null),g,y,x,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=c,e.kind=d?"mapping":"sequence",e.result=a,!0;r?S===44&&ge(e,"expected the node content, but found ','"):ge(e,"missed comma between flow collection entries"),y=g=x=null,l=h=!1,S===63&&(u=e.input.charCodeAt(e.position+1),$t(u)&&(l=h=!0,e.position++,tt(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,xs(e,t,tl,!1,!0),y=e.tag,g=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),xs(e,t,tl,!1,!0),x=e.result),d?Cs(e,a,p,y,g,x,n,i,s):l?a.push(Cs(e,null,p,y,g,x,n,i,s)):a.push(g),tt(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(r=!0,S=e.input.charCodeAt(++e.position)):r=!1}ge(e,"unexpected end of the stream within a flow collection")}function WH(e,t){var r,n,i=og,s=!1,o=!1,a=t,c=0,u=!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)og===i?i=l===43?S_:DH:ge(e,"repeat of a chomping mode identifier");else if((f=$H(l))>=0)f===0?ge(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ge(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(Di(l)){do l=e.input.charCodeAt(++e.position);while(Di(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!jr(l)&&l!==0)}for(;l!==0;){for(ag(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)){c++;continue}if(e.lineIndent<a){i===S_?e.result+=Fi.repeat(`
|
|
30
|
+
`,s?1+c:c):i===og&&s&&(e.result+=`
|
|
31
|
+
`);break}for(n?Di(l)?(u=!0,e.result+=Fi.repeat(`
|
|
32
|
+
`,s?1+c:c)):u?(u=!1,e.result+=Fi.repeat(`
|
|
33
|
+
`,c+1)):c===0?s&&(e.result+=" "):e.result+=Fi.repeat(`
|
|
34
|
+
`,c):e.result+=Fi.repeat(`
|
|
35
|
+
`,s?1+c:c),s=!0,o=!0,c=0,r=e.position;!jr(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Un(e,r,e.position,!1)}return!0}function P_(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ge(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!$t(o))));){if(a=!0,e.position++,tt(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,xs(e,t,D_,!1,!0),s.push(e.result),tt(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)ge(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 HH(e,t,r){var n,i,s,o,a,c,u=e.tag,f=e.anchor,l={},h=Object.create(null),d=null,p=null,g=null,y=!1,x=!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(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ge(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(S===63||S===58)&&$t(n))S===63?(y&&(Cs(e,l,h,d,p,null,o,a,c),d=p=g=null),x=!0,y=!0,i=!0):y?(y=!1,i=!0):ge(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,c=e.position,!xs(e,r,F_,!1,!0))break;if(e.line===s){for(S=e.input.charCodeAt(e.position);Di(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),$t(S)||ge(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Cs(e,l,h,d,p,null,o,a,c),d=p=g=null),x=!0,y=!1,i=!1,d=e.tag,p=e.result;else if(x)ge(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(x)ge(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(y&&(o=e.line,a=e.lineStart,c=e.position),xs(e,t,rl,!0,i)&&(y?p=e.result:g=e.result),y||(Cs(e,l,h,d,p,g,o,a,c),d=p=g=null),tt(e,!0,-1),S=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&S!==0)ge(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Cs(e,l,h,d,p,null,o,a,c),x&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=l),x}function zH(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&&ge(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)):ge(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!$t(o);)o===33&&(n?ge(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),L_.test(i)||ge(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),IH.test(s)&&ge(e,"tag suffix cannot contain flow indicator characters")}s&&!T_.test(s)&&ge(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ge(e,"tag name is malformed: "+s)}return r?e.tag=s:Wn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ge(e,'undeclared tag handle "'+i+'"'),!0}function YH(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ge(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!$t(r)&&!Ss(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ge(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function VH(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&&!$t(n)&&!Ss(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ge(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Wn.call(e.anchorMap,r)||ge(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],tt(e,!0,-1),!0}function xs(e,t,r,n,i){var s,o,a,c=1,u=!1,f=!1,l,h,d,p,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=rl===r||D_===r,n&&tt(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;zH(e)||YH(e);)tt(e,!0,-1)?(u=!0,a=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=u||i),(c===1||rl===r)&&(tl===r||F_===r?g=t:g=t+1,y=e.position-e.lineStart,c===1?a&&(P_(e,y)||HH(e,y,g))||UH(e,g)?f=!0:(o&&WH(e,g)||qH(e,g)||GH(e,g)?f=!0:VH(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&ge(e,"alias node should not have any properties")):BH(e,g,tl===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(f=a&&P_(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ge(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(Wn.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||ge(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&ge(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)):ge(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 KH(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&&!$t(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ge(e,"directive name must not be less than one character in length");o!==0;){for(;Di(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&&!$t(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&ag(e),Wn.call(O_,n)?O_[n](e,n,i):nl(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&&ge(e,"directives end mark is expected"),xs(e,e.lineIndent-1,rl,!1,!0),tt(e,!0,-1),e.checkLineBreaks&&TH.test(e.input.slice(t,e.position))&&nl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&il(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,tt(e,!0,-1));return}if(e.position<e.length-1)ge(e,"end of the stream or a document separator is expected");else return}function $_(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
36
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new jH(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ge(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;)KH(r);return r.documents}function XH(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=$_(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function JH(e,t){var r=$_(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new R_("expected a single document in the stream, but found more")}}cg.exports.loadAll=XH;cg.exports.load=JH});var sP=P((xQ,iP)=>{"use strict";var al=ws(),fa=bs(),QH=el(),Y_=Object.prototype.toString,V_=Object.prototype.hasOwnProperty,pg=65279,ZH=9,ua=10,e9=13,t9=32,r9=33,n9=34,lg=35,i9=37,s9=38,o9=39,a9=42,K_=44,u9=45,sl=58,c9=61,l9=62,f9=63,h9=64,X_=91,J_=93,d9=96,Q_=123,p9=124,Z_=125,At={};At[0]="\\0";At[7]="\\a";At[8]="\\b";At[9]="\\t";At[10]="\\n";At[11]="\\v";At[12]="\\f";At[13]="\\r";At[27]="\\e";At[34]='\\"';At[92]="\\\\";At[133]="\\N";At[160]="\\_";At[8232]="\\L";At[8233]="\\P";var m9=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],g9=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function y9(e,t){var r,n,i,s,o,a,c;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)),c=e.compiledTypeMap.fallback[o],c&&V_.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function v9(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 fa("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+al.repeat("0",n-t.length)+t}var E9=1,ca=2;function A9(e){this.schema=e.schema||QH,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=al.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=y9(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==='"'?ca:E9,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 j_(e,t){for(var r=al.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
|
|
34
37
|
`,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
|
|
35
|
-
`&&(s+=r),s+=o;return s}function
|
|
36
|
-
`+
|
|
38
|
+
`&&(s+=r),s+=o;return s}function fg(e,t){return`
|
|
39
|
+
`+al.repeat(" ",e.indent*t)}function w9(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 ol(e){return e===t9||e===ZH}function la(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==pg||65536<=e&&e<=1114111}function B_(e){return la(e)&&e!==pg&&e!==e9&&e!==ua}function q_(e,t,r){var n=B_(e),i=n&&!ol(e);return(r?n:n&&e!==K_&&e!==X_&&e!==J_&&e!==Q_&&e!==Z_)&&e!==lg&&!(t===sl&&!i)||B_(t)&&!ol(t)&&e===lg||t===sl&&i}function b9(e){return la(e)&&e!==pg&&!ol(e)&&e!==u9&&e!==f9&&e!==sl&&e!==K_&&e!==X_&&e!==J_&&e!==Q_&&e!==Z_&&e!==lg&&e!==s9&&e!==a9&&e!==r9&&e!==p9&&e!==c9&&e!==l9&&e!==o9&&e!==n9&&e!==i9&&e!==h9&&e!==d9}function S9(e){return!ol(e)&&e!==sl}function aa(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 eP(e){var t=/^\n* /;return t.test(e)}var tP=1,hg=2,rP=3,nP=4,Os=5;function C9(e,t,r,n,i,s,o,a){var c,u=0,f=null,l=!1,h=!1,d=n!==-1,p=-1,g=b9(aa(e,0))&&S9(aa(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=aa(e,c),!la(u))return Os;g=g&&q_(u,f,a),f=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=aa(e,c),u===ua)l=!0,d&&(h=h||c-p-1>n&&e[p+1]!==" ",p=c);else if(!la(u))return Os;g=g&&q_(u,f,a),f=u}h=h||d&&c-p-1>n&&e[p+1]!==" "}return!l&&!h?g&&!o&&!i(e)?tP:s===ca?Os:hg:r>9&&eP(e)?Os:o?s===ca?Os:hg:h?nP:rP}function x9(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===ca?'""':"''";if(!e.noCompatMode&&(m9.indexOf(t)!==-1||g9.test(t)))return e.quotingType===ca?'"'+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 c(u){return w9(e,u)}switch(C9(t,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!n,i)){case tP:return t;case hg:return"'"+t.replace(/'/g,"''")+"'";case rP:return"|"+G_(t,e.indent)+U_(j_(t,s));case nP:return">"+G_(t,e.indent)+U_(j_(O9(t,o),s));case Os:return'"'+_9(t,o)+'"';default:throw new fa("impossible error: invalid scalar style")}}()}function G_(e,t){var r=eP(e)?String(t):"",n=e[e.length-1]===`
|
|
37
40
|
`,i=n&&(e[e.length-2]===`
|
|
38
41
|
`||e===`
|
|
39
42
|
`),s=i?"+":n?"":"-";return r+s+`
|
|
40
|
-
`}function
|
|
41
|
-
`?e.slice(0,-1):e}function
|
|
42
|
-
`);return
|
|
43
|
-
`||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],
|
|
44
|
-
`:"")+
|
|
45
|
-
`+e.slice(i,s),i=s+1),o=a;return
|
|
46
|
-
`,e.length-i>t&&o>i?
|
|
47
|
-
`+e.slice(o+1):
|
|
48
|
-
`:""}
|
|
49
|
-
`||t==="\r"};
|
|
50
|
-
`||t==="\r"||t==="\u2028"||t==="\u2029"};
|
|
51
|
-
`||t==="\r"};
|
|
52
|
-
`,r:"\r",t:" ",v:"\v","/":"/"};function
|
|
53
|
-
`+
|
|
54
|
-
`+
|
|
55
|
-
`&&c
|
|
56
|
-
`:"")}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(!
|
|
57
|
-
`:"")+
|
|
58
|
-
`,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 KS=D((N7,ap)=>{var fr=require("assert"),VS=vo().tokenize,z$=ip().stringify,V$=sp().analyze;function Eo(e){return typeof e=="object"&&e!==null}function Du(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=z$(e,r);if(n)return[{raw:s,type:"key",stack:t,value:e}];r._addstack=t;var o=VS(s,{_addstack:t});return o.data=null,o}function op(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 GS(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 Ao(e){return e==="whitespace"||e==="newline"||e==="comment"}function US(e,t,r){for(;Ao(e[t].type);)if(t++>=r)return!1;return t}function os(e,t,r){for(;Ao(e[r].type);)if(r--<t)return!1;return r}function YS(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=os(e,r,n-1)),n===!1))return s;for(;e[n].stack.length>i;)n--;if(!t){for(;Ao(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep2.unshift(e[n]);else return s;n--}for(fr.equal(e[n].type,"separator"),fr.equal(e[n].raw,":");Ao(e[--n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep1.unshift(e[n]);else return s}fr.equal(e[n].type,"key"),n--}for(;Ao(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 $r(e,t){var r=Object.create($r.prototype);t==null&&(t={});var n=r._tokens=VS(e,t);r._data=n.data,n.data=null,r._options=t;var i=V$(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 zS(e,t,r){function n(i){return Error("You can't "+(r?"unset":"set")+" key '"+e+"'"+i)}if(!Eo(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}$r.prototype.set=function(e,t){if(e=op(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++)zS(e[i],n,!1),n=n[e[i]];i===e.length-1&&zS(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=[US(this._tokens,0,this._tokens.length-1),os(this._tokens,0,this._tokens.length-1)],i=0;i<e.length-1;i++)if(s=GS(e[i],i,this._tokens,s[0],s[1]),s==!1)throw Error("internal error, please report this");if(e.length===0)var o=Du(t,e,this._options);else if(r){var f=e.slice(0,i),u=os(this._tokens,s[0]+1,s[1]-1);fr(u!==!1);var c=u!==!1?YS(this._tokens,Array.isArray(n),s[0]+1,u,i):{},o=Du(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(Du(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),fr.equal(this._tokens[s[1]].type,"separator"),s[0]=u+1,s[1]=u}else{var a=s;if(s=GS(e[i],i,this._tokens,s[0],s[1]),t===void 0&&s!==!1){var o=[];if(!Array.isArray(n)){var u=os(this._tokens,a[0],s[0]-1);fr.equal(this._tokens[u].type,"separator"),fr.equal(this._tokens[u].raw,":"),s[0]=u;var u=os(this._tokens,a[0],s[0]-1);fr.equal(this._tokens[u].type,"key"),fr.equal(this._tokens[u].value,e[e.length-1]),s[0]=u}var u=os(this._tokens,a[0],s[0]-1);fr.equal(this._tokens[u].type,"separator"),this._tokens[u].raw===","?s[0]=u:(u=US(this._tokens,s[1]+1,a[1]),fr.equal(this._tokens[u].type,"separator"),this._tokens[u].raw===","&&(s[1]=u))}else var c=u!==!1?YS(this._tokens,Array.isArray(n),a[0],s[1]-1,i):{},o=Du(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};$r.prototype.unset=function(e){return this.set(e,void 0)};$r.prototype.get=function(e){e=op(e);for(var t=this._data,r=0;r<e.length;r++){if(!Eo(t))return;t=t[e[r]]}return t};$r.prototype.has=function(e){e=op(e);for(var t=this._data,r=0;r<e.length;r++){if(!Eo(t))return!1;t=t[e[r]]}return t!==void 0};$r.prototype.update=function(e){var t=this;return r([],t._data,e),t;function r(n,i,s){if(!Eo(s)||!Eo(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())}}};$r.prototype.toString=function(){return this._tokens.map(function(e){return e.raw}).join("")};ap.exports.Document=$r;ap.exports.update=function(t,r,n){return $r(t,n).update(r).toString()}});var XS=D((L7,ku)=>{var K$=require("fs"),X$=bo();ku.exports.register=function(){var e=require,t="extensions";e[t][".json5"]=function(r,n){r.exports=X$.parse(K$.readFileSync(n,"utf8"))}};ku.exports.patch_JSON_parse=function(){var e=JSON.parse;JSON.parse=function(t,r){try{return e(t,r)}catch(n){throw bo().parse(t,{mode:"json",legacy:!0,reviver:r,reserved_keys:"replace",null_prototype:!1}),n}}};ku.exports.middleware=function(){return function(e,t,r){throw Error("this function is removed, use express-json5 instead")}}});var bo=D((j7,ci)=>{ci.exports.__defineGetter__("parse",function(){return vo().parse});ci.exports.__defineGetter__("stringify",function(){return ip().stringify});ci.exports.__defineGetter__("tokenize",function(){return vo().tokenize});ci.exports.__defineGetter__("update",function(){return KS().update});ci.exports.__defineGetter__("analyze",function(){return sp().analyze});ci.exports.__defineGetter__("utils",function(){return XS()})});var Nu=D(wn=>{"use strict";var Iu=wn&&wn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wn,"__esModule",{value:!0});wn.getRushWorkspaces=wn.getRushWorkspaceRoot=void 0;var Q$=Iu(Bi()),Tu=Iu(require("path")),J$=Iu(bo()),Z$=Iu(require("fs")),eB=ao();function QS(e){let t=Q$.default.sync("rush.json",{cwd:e});if(!t)throw new Error("Could not find rush workspaces root");return Tu.default.dirname(t)}wn.getRushWorkspaceRoot=QS;function tB(e){try{let t=QS(e),r=Tu.default.join(t,"rush.json"),n=J$.default.parse(Z$.default.readFileSync(r,"utf-8")),i=Tu.default.dirname(r);return(0,eB.getWorkspacePackageInfo)(n.projects.map(s=>Tu.default.join(i,s.projectFolder)))}catch{return[]}}wn.getRushWorkspaces=tB});var up=D(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.getNpmWorkspaces=as.getNpmWorkspaceRoot=void 0;var JS=bd();function ZS(e){let t=(0,JS.getPackageJsonWorkspaceRoot)(e);if(!t)throw new Error("Could not find NPM workspaces root");return t}as.getNpmWorkspaceRoot=ZS;function rB(e){let t=ZS(e);return(0,JS.getWorkspaceInfoFromWorkspaceRoot)(t)}as.getNpmWorkspaces=rB});var cp=D(Sn=>{"use strict";var Lu=Sn&&Sn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sn,"__esModule",{value:!0});Sn.getLernaWorkspaces=Sn.getLernaWorkspaceRoot=void 0;var nB=Lu(Bi()),iB=Lu(require("fs")),sB=Lu(bo()),e_=Lu(require("path")),oB=Au(),aB=ao();function t_(e){let t=nB.default.sync("lerna.json",{cwd:e});if(!t)throw new Error("Could not find lerna workspace root");return e_.default.dirname(t)}Sn.getLernaWorkspaceRoot=t_;function uB(e,t){try{let r=t_(e),n=e_.default.join(r,"lerna.json"),i=sB.default.parse(iB.default.readFileSync(n,"utf-8")),s=(0,oB.getPackagePaths)(r,i.packages,t);return(0,aB.getWorkspacePackageInfo)(s)}catch{return[]}}Sn.getLernaWorkspaces=uB});var Mu=D(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.getWorkspaces=void 0;var cB=La(),lB=process.env.PREFERRED_WORKSPACE_MANAGER;function fB(e){let t=lB||(0,cB.getWorkspaceImplementation)(e);if(!t)return[];switch(t){case"yarn":return Eu().getYarnWorkspaces(e);case"pnpm":return Ru().getPnpmWorkspaces(e);case"rush":return Nu().getRushWorkspaces(e);case"npm":return up().getNpmWorkspaces(e);case"lerna":return cp().getLernaWorkspaces(e)}}ju.getWorkspaces=fB});var lp=D(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us._resetCache=us.getAllPackageJsonFiles=void 0;var hB=Mu(),$u=new Map;function dB(e){if($u.has(e))return $u.get(e);let r=(0,hB.getWorkspaces)(e).map(n=>n.packageJson.packageJsonPath);return $u.set(e,r),r}us.getAllPackageJsonFiles=dB;function pB(){$u.clear()}us._resetCache=pB});var r_=D(cs=>{"use strict";var gB=cs&&cs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cs,"__esModule",{value:!0});cs.getPackageInfos=void 0;var mB=gB(require("fs")),yB=kA(),vB=lp();function AB(e){let t=(0,vB.getAllPackageJsonFiles)(e),r={};return t&&t.length>0?(t.forEach(n=>{try{let i=JSON.parse(mB.default.readFileSync(n,"utf-8"));r[i.name]=(0,yB.infoFromPackageJson)(i,n)}catch(i){throw i instanceof Error?new Error(`Invalid package.json file detected ${n}: ${i.message}`):i}}),r):{}}cs.getPackageInfos=AB});var wo=D(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.gitFailFast=Zt.git=Zt.clearGitObservers=Zt.addGitObserver=Zt.GitError=void 0;var EB=require("child_process"),Bu=class extends Error{constructor(t,r){r instanceof Error?super(`${t}: ${r.message}`):super(t),this.originalError=r}};Zt.GitError=Bu;var bB=process.env.GIT_MAX_BUFFER?parseInt(process.env.GIT_MAX_BUFFER):500*1024*1024,ls=[],fp;function wB(e){return ls.push(e),()=>_B(e)}Zt.addGitObserver=wB;function SB(){ls.splice(0,ls.length)}Zt.clearGitObservers=SB;function _B(e){let t=ls.indexOf(e);t>-1&&ls.splice(t,1)}function n_(e,t){let r=(0,EB.spawnSync)("git",e,{maxBuffer:bB,...t}),n={stderr:r.stderr.toString().trimRight(),stdout:r.stdout.toString().trimRight(),success:r.status===0};if(!fp){fp=!0;for(let i of ls)i(e,n);fp=!1}return n}Zt.git=n_;function CB(e,t){var r,n;let i=n_(e,t);if(!i.success)throw t?.noExitCode||(process.exitCode=1),new Bu(`CRITICAL ERROR: running git command: git ${e.join(" ")}!
|
|
43
|
+
`}function U_(e){return e[e.length-1]===`
|
|
44
|
+
`?e.slice(0,-1):e}function O9(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
|
|
45
|
+
`);return u=u!==-1?u:e.length,r.lastIndex=u,W_(e.slice(0,u),t)}(),i=e[0]===`
|
|
46
|
+
`||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],c=o[2];s=c[0]===" ",n+=a+(!i&&!s&&c!==""?`
|
|
47
|
+
`:"")+W_(c,t),i=s}return n}function W_(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,c="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,c+=`
|
|
48
|
+
`+e.slice(i,s),i=s+1),o=a;return c+=`
|
|
49
|
+
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
50
|
+
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function _9(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=aa(e,i),n=At[r],!n&&la(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||v9(r);return t}function P9(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)),(on(e,t,a,!1,!1)||typeof a>"u"&&on(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function H_(e,t,r,n){var i="",s=e.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],e.replacer&&(c=e.replacer.call(r,String(o),c)),(on(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&on(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=fg(e,t)),e.dump&&ua===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function R9(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,c,u,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),c=s[o],u=r[c],e.replacer&&(u=e.replacer.call(r,c,u)),on(e,t,c,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),on(e,t,u,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function F9(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,c,u,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 fa("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!n||i!=="")&&(h+=fg(e,t)),u=o[a],f=r[u],e.replacer&&(f=e.replacer.call(r,u,f)),on(e,t+1,u,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&ua===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=fg(e,t)),on(e,t+1,f,!0,l)&&(e.dump&&ua===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function z_(e,t,r){var n,i,s,o,a,c;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(c=e.styleMap[a.tag]||a.defaultStyle,Y_.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(V_.call(a.represent,c))n=a.represent[c](t,c);else throw new fa("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function on(e,t,r,n,i,s,o){e.tag=null,e.dump=r,z_(e,r,!1)||z_(e,r,!0);var a=Y_.call(e.dump),c=n,u;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?(F9(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(R9(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?H_(e,t-1,e.dump,i):H_(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(P9(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&x9(e,e.dump,t,s,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new fa("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function D9(e,t){var r=[],n=[],i,s;for(dg(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function dg(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)dg(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)dg(e[n[i]],t,r)}function L9(e,t){t=t||{};var r=new A9(t);r.noRefs||D9(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),on(r,0,n,!0,!0)?r.dump+`
|
|
51
|
+
`:""}iP.exports.dump=L9});var aP=P((OQ,Lt)=>{"use strict";var oP=M_(),T9=sP();function mg(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.")}}Lt.exports.Type=Et();Lt.exports.Schema=Gm();Lt.exports.FAILSAFE_SCHEMA=zm();Lt.exports.JSON_SCHEMA=Jm();Lt.exports.CORE_SCHEMA=Qm();Lt.exports.DEFAULT_SCHEMA=el();Lt.exports.load=oP.load;Lt.exports.loadAll=oP.loadAll;Lt.exports.dump=T9.dump;Lt.exports.YAMLException=bs();Lt.exports.types={binary:rg(),float:Xm(),map:Hm(),null:Ym(),pairs:ig(),set:sg(),timestamp:Zm(),bool:Vm(),int:Km(),merge:eg(),omap:ng(),seq:Wm(),str:Um()};Lt.exports.safeLoad=mg("safeLoad","load");Lt.exports.safeLoadAll=mg("safeLoadAll","loadAll");Lt.exports.safeDump=mg("safeDump","dump")});var gg=P(_s=>{"use strict";var I9=_s&&_s.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_s,"__esModule",{value:!0});_s.readYaml=void 0;var k9=I9(require("fs"));function N9(e){let t=aP(),r=k9.default.readFileSync(e,"utf8");return t.load(r)}_s.readYaml=N9});var ul=P(Hn=>{"use strict";var uP=Hn&&Hn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hn,"__esModule",{value:!0});Hn.getPnpmWorkspaces=Hn.getPnpmWorkspaceRoot=void 0;var cP=uP(require("path")),$9=uP(ls()),M9=Qc(),j9=na(),B9=gg();function lP(e){let t=$9.default.sync("pnpm-workspace.yaml",{cwd:e});if(!t)throw new Error("Could not find pnpm workspaces root");return cP.default.dirname(t)}Hn.getPnpmWorkspaceRoot=lP;function q9(e){try{let t=lP(e),r=cP.default.join(t,"pnpm-workspace.yaml"),n=(0,B9.readYaml)(r),i=(0,M9.getPackagePaths)(t,n.packages);return(0,j9.getWorkspacePackageInfo)(i)}catch{return[]}}Hn.getPnpmWorkspaces=q9});var yg=P((RQ,Br)=>{var fP=Br.exports;Br.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"};Br.exports.isWhiteSpaceJSON=function(t){return t===" "||t===" "||t===`
|
|
52
|
+
`||t==="\r"};Br.exports.isLineTerminator=function(t){return t===`
|
|
53
|
+
`||t==="\r"||t==="\u2028"||t==="\u2029"};Br.exports.isLineTerminatorJSON=function(t){return t===`
|
|
54
|
+
`||t==="\r"};Br.exports.isIdentifierStart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="\x80"&&fP.NonAsciiIdentifierStart.test(t)};Br.exports.isIdentifierPart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="0"&&t<="9"||t>="\x80"&&fP.NonAsciiIdentifierPart.test(t)};Br.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]/;Br.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 da=P((FQ,cl)=>{var an=yg();function Ps(e){return e>="0"&&e<="9"||e>="A"&&e<="F"||e>="a"&&e<="f"}function Rs(e){return e>="0"&&e<="7"}function ha(e){return e>="0"&&e<="9"}var hP={"'":"'",'"':'"',"\\":"\\",b:"\b",f:"\f",n:`
|
|
55
|
+
`,r:"\r",t:" ",v:"\v","/":"/"};function G9(e,t,r,n,i,s){var o=t+" at "+(n+1)+":"+(i+1),a=r-i-1,c="",u="",f=s?an.isLineTerminator:an.isLineTerminatorJSON;for(a<r-70&&(a=r-70);;){var l=e[++a];if(f(l)||a===e.length){r>=a&&(u+="^");break}if(c+=l,r===a?u+="^":r>a&&(u+=e[a]===" "?" ":" "),c.length>78)break}return o+`
|
|
56
|
+
`+c+`
|
|
57
|
+
`+u}function U9(e,t){var r=!1,n=!1;t.legacy||t.mode==="json"||(t.mode==="cjson"?n=!0:(t.mode,r=!0));var i=r?an.isLineTerminator:an.isLineTerminatorJSON,s=r?an.isWhiteSpace:an.isWhiteSpaceJSON,o=e.length,a=0,c=0,u=0,f=[],l=function(){},h=function(O){return O};t._tokenize&&function(){var O=null;l=function(){if(O!==null)throw Error("internal error, token overlap");O=u},h=function(m,v){if(O!=u){var E={raw:e.substr(O,u-O),type:v,stack:f.slice(0)};m!==void 0&&(E.value=m),t._tokenize.call(null,E)}return O=null,m}}();function d(O){var m=u-c;if(!O)if(u<o){var v="'"+JSON.stringify(e[u]).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";O||(O="Unexpected token "+v)}else O||(O="Unexpected end of input");var E=SyntaxError(G9(e,O,u,a,m,r));throw E.row=a+1,E.column=m+1,E}function p(O){O==="\r"&&e[u]===`
|
|
58
|
+
`&&u++,c=u,a++}function g(){for(var O;u<o;){l();var m=e[u++];return m==='"'||m==="'"&&r?h(_(m),"literal"):m==="{"?(h(void 0,"separator"),R()):m==="["?(h(void 0,"separator"),w()):m==="-"||m==="."||ha(m)||r&&(m==="+"||m==="I"||m==="N")?h(D(),"literal"):m==="n"?(I("null"),h(null,"literal")):m==="t"?(I("true"),h(!0,"literal")):m==="f"?(I("false"),h(!1,"literal")):(u--,h(void 0))}}function y(){for(var O;u<o;){l();var m=e[u++];if(m==='"'||m==="'"&&r)return h(_(m),"key");if(m==="{")return h(void 0,"separator"),R();if(m==="[")return h(void 0,"separator"),w();if(m==="."||ha(m))return h(D(!0),"key");if(r&&an.isIdentifierStart(m)||m==="\\"&&e[u]==="u"){var v=u-1,O=L();return O===void 0?(u=v,h(void 0)):h(O,"key")}else return u--,h(void 0)}}function x(){for(l();u<o;){var O=e[u++];if(i(O))u--,h(void 0,"whitespace"),l(),u++,p(O),h(void 0,"newline"),l();else if(!s(O))if(O==="/"&&(r||n)&&(e[u]==="/"||e[u]==="*"))u--,h(void 0,"whitespace"),l(),u++,S(e[u++]==="*"),h(void 0,"comment"),l();else{u--;break}}return h(void 0,"whitespace")}function S(O){for(;u<o;){var m=e[u++];if(i(m)){if(!O){u--;return}p(m)}else if(m==="*"&&O&&e[u]==="/"){u++;return}}O&&d("Unclosed multiline comment")}function I(O){for(var m=u,v=O.length,E=1;E<v;E++)(u>=o||O[E]!=e[u])&&(u=m-1,d()),u++}function R(){for(var O=t.null_prototype?Object.create(null):{},m={},v=!1;u<o;){x();var E=y();x(),l();var C=e[u++];if(h(void 0,"separator"),C==="}"&&E===void 0)return!r&&v&&(u--,d("Trailing comma in object")),O;if(C===":"&&E!==void 0){x(),f.push(E);var A=g();f.pop(),A===void 0&&d("No value found for key "+E),typeof E!="string"&&(!r||typeof E!="number")&&d("Wrong key type: "+E),(E in m||m[E]!=null)&&t.reserved_keys!=="replace"?t.reserved_keys==="throw"&&d("Reserved key: "+E):(typeof t.reviver=="function"&&(A=t.reviver.call(null,E,A)),A!==void 0&&(v=!0,Object.defineProperty(O,E,{value:A,enumerable:!0,configurable:!0,writable:!0}))),x(),l();var C=e[u++];if(h(void 0,"separator"),C===",")continue;if(C==="}")return O;d()}else u--,d()}d()}function w(){for(var O=[];u<o;){x(),f.push(O.length);var m=g();f.pop(),x(),l();var v=e[u++];if(h(void 0,"separator"),m!==void 0&&(typeof t.reviver=="function"&&(m=t.reviver.call(null,String(O.length),m)),m===void 0?(O.length++,m=!0):O.push(m)),v===",")m===void 0&&d("Elisions are not supported");else{if(v==="]")return!r&&m===void 0&&O.length&&(u--,d("Trailing comma in array")),O;u--,d()}}}function D(){u--;var O=u,m=e[u++],v,E=function(T){var N=e.substr(O,u-O);if(T)var M=parseInt(N.replace(/^0o?/,""),8);else var M=Number(N);if(Number.isNaN(M))u--,d('Bad numeric literal - "'+e.substr(O,u-O+1)+'"');else if(!r&&!N.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))u--,d('Non-json numeric literal - "'+e.substr(O,u-O+1)+'"');else return M};if((m==="-"||m==="+"&&r)&&(m=e[u++]),m==="N"&&r)return I("NaN"),NaN;if(m==="I"&&r)return I("Infinity"),E();if(m>="1"&&m<="9"){for(;u<o&&ha(e[u]);)u++;m=e[u++]}if(m==="0"){m=e[u++];var C=m==="o"||m==="O"||Rs(m),A=m==="x"||m==="X";if(r&&(C||A)){for(;u<o&&(A?Ps:Rs)(e[u]);)u++;var b=1;return e[O]==="-"?(b=-1,O++):e[O]==="+"&&O++,b*E(C)}}if(m==="."){for(;u<o&&ha(e[u]);)u++;m=e[u++]}if(m==="e"||m==="E"){for(m=e[u++],(m==="-"||m==="+")&&u++;u<o&&ha(e[u]);)u++;m=e[u++]}return u--,E()}function L(){u--;for(var O="";u<o;){var m=e[u++];if(m==="\\"&&e[u]==="u"&&Ps(e[u+1])&&Ps(e[u+2])&&Ps(e[u+3])&&Ps(e[u+4])&&(m=String.fromCharCode(parseInt(e.substr(u+1,4),16)),u+=5),O.length)if(an.isIdentifierPart(m))O+=m;else return u--,O;else if(an.isIdentifierStart(m))O+=m;else return}d()}function _(O){for(var m="";u<o;){var v=e[u++];if(v===O)return m;if(v==="\\")if(u>=o&&d(),v=e[u++],hP[v]&&(r||v!="v"&&v!="'"))m+=hP[v];else if(r&&i(v))p(v);else if(v==="u"||v==="x"&&r){for(var E=v==="u"?4:2,C=0;C<E;C++)u>=o&&d(),Ps(e[u])||d("Bad escape sequence"),u++;m+=String.fromCharCode(parseInt(e.substr(u-E,E),16))}else if(r&&Rs(v)){if(v<"4"&&Rs(e[u])&&Rs(e[u+1]))var A=3;else if(Rs(e[u]))var A=2;else var A=1;u+=A-1,m+=String.fromCharCode(parseInt(e.substr(u-A,A),8))}else r?m+=v:(u--,d());else i(v)?d():(!r&&v.charCodeAt(0)<32&&(u--,d("Unexpected control character")),m+=v)}d()}x();var $=g();if($!==void 0||u<o){if(x(),u>=o)return typeof t.reviver=="function"&&($=t.reviver.call(null,"",$)),$;d()}else d(u?"No data, only a whitespace":"No data, empty input")}cl.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 U9(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}}};cl.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=cl.exports.parse(t,r),n}});var Ag=P((DQ,pP)=>{var vg=yg();(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 W9={0:"\\0",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",92:"\\\\"},H9=Object.prototype.hasOwnProperty,dP=/[\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/;function Eg(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="",g=r+(h||0),y=0;y<g;y++)p+=t.indent;return d+p+l+(h?`
|
|
59
|
+
`:"")}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(!vg.isIdentifierPart(l[d]))return a(l)}else if(!vg.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):dP.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="",g=0;g<l.length;g++){var y=l.charCodeAt(g);if(y<16)y===0&&i?p+="\\0":y>=8&&y<=13&&(i||y!==11)?p+=W9[y]:i?p+="\\x0"+y.toString(16):p+="\\u000"+y.toString(16);else if(y<32)i?p+="\\x"+y.toString(16):p+="\\u00"+y.toString(16);else if(y>=32&&y<128)y===47&&g&&l[g-1]==="<"?p+="\\"+l[g]:y===92?p+="\\\\":y===d?p+="\\"+h:p+=l[g];else if(t.ascii||vg.isLineTerminator(l[g])||dP.exec(l[g]))if(y<256)i?p+="\\x"+y.toString(16):p+="\\u00"+y.toString(16);else if(y<4096)p+="\\u0"+y.toString(16);else if(y<65536)p+="\\u"+y.toString(16);else throw Error("weird codepoint");else p+=l[g]}return h+p+h}function c(){if(e===null)return"null";var l=[],h=0,d;if(Array.isArray(e)){d="[]";for(var p=0;p<e.length;p++){var g=Eg(e[p],t,r+1,String(p));g===void 0&&(g="null"),h+=g.length+2,l.push(g+",")}}else{d="{}";var y=function(I){var R=Eg(e[I],t,r+1,I);R!==void 0&&(R=o(I)+":"+(t.indent?" ":"")+R+",",h+=R.length+1,l.push(R))};if(Array.isArray(t.replacer))for(var p=0;p<t.replacer.length;p++)H9.call(e,t.replacer[p])&&y(t.replacer[p]);else{var x=Object.keys(e);t.sort_keys&&(x=x.sort(typeof t.sort_keys=="function"?t.sort_keys:void 0)),x.forEach(y)}}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(I){return s(I,1)}).join("");return d[0]+(t.indent?`
|
|
60
|
+
`:"")+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 u(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"?u(e):e.constructor===Number||e.constructor===Boolean||e.constructor===String?(e=e.valueOf(),u(e)):e.constructor===Date?u(e.toISOString()):typeof t.replacer=="function"&&(e=t.replacer.call(null,n,e),typeof e!="object")?u(e):c(e)}else return u(e)}pP.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),Eg(t,r,0,"")}});var wg=P((LQ,mP)=>{var z9=da().tokenize;mP.exports.analyze=function(t,r){r==null&&(r={}),Array.isArray(t)||(t=z9(t,r));for(var n={has_whitespace:!1,has_comments:!1,has_newlines:!1,has_trailing_comma:!1,indent:"",newline:`
|
|
61
|
+
`,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 c=Array(o/a+1).join(" ");i.indent[c]=(i.indent[c]||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 u=s+1;u<t.length&&!(t[u].type==="literal"||t[u].type==="key");u++)t[u].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 wP=P((TQ,Sg)=>{var _r=require("assert"),AP=da().tokenize,Y9=Ag().stringify,V9=wg().analyze;function ma(e){return typeof e=="object"&&e!==null}function ll(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=Y9(e,r);if(n)return[{raw:s,type:"key",stack:t,value:e}];r._addstack=t;var o=AP(s,{_addstack:t});return o.data=null,o}function bg(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 gP(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 pa(e){return e==="whitespace"||e==="newline"||e==="comment"}function yP(e,t,r){for(;pa(e[t].type);)if(t++>=r)return!1;return t}function Fs(e,t,r){for(;pa(e[r].type);)if(r--<t)return!1;return r}function vP(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=Fs(e,r,n-1)),n===!1))return s;for(;e[n].stack.length>i;)n--;if(!t){for(;pa(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep2.unshift(e[n]);else return s;n--}for(_r.equal(e[n].type,"separator"),_r.equal(e[n].raw,":");pa(e[--n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep1.unshift(e[n]);else return s}_r.equal(e[n].type,"key"),n--}for(;pa(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 un(e,t){var r=Object.create(un.prototype);t==null&&(t={});var n=r._tokens=AP(e,t);r._data=n.data,n.data=null,r._options=t;var i=V9(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 EP(e,t,r){function n(i){return Error("You can't "+(r?"unset":"set")+" key '"+e+"'"+i)}if(!ma(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}un.prototype.set=function(e,t){if(e=bg(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++)EP(e[i],n,!1),n=n[e[i]];i===e.length-1&&EP(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=[yP(this._tokens,0,this._tokens.length-1),Fs(this._tokens,0,this._tokens.length-1)],i=0;i<e.length-1;i++)if(s=gP(e[i],i,this._tokens,s[0],s[1]),s==!1)throw Error("internal error, please report this");if(e.length===0)var o=ll(t,e,this._options);else if(r){var f=e.slice(0,i),c=Fs(this._tokens,s[0]+1,s[1]-1);_r(c!==!1);var u=c!==!1?vP(this._tokens,Array.isArray(n),s[0]+1,c,i):{},o=ll(t,e,this._options,!1,u),l=[];u.newline&&u.newline.length&&(l=l.concat(u.newline)),u.prefix&&u.prefix.length&&(l=l.concat(u.prefix)),Array.isArray(n)||(l=l.concat(ll(e[e.length-1],f,this._options,!0)),u.sep1&&u.sep1.length&&(l=l.concat(u.sep1)),l.push({raw:":",type:"separator",stack:f}),u.sep2&&u.sep2.length&&(l=l.concat(u.sep2))),o.unshift.apply(o,l),this._tokens[c].type==="separator"&&this._tokens[c].stack.length===e.length-1?this._tokens[c].raw===","&&o.push({raw:",",type:"separator",stack:f}):o.unshift({raw:",",type:"separator",stack:f}),u.suffix&&u.suffix.length&&o.push.apply(o,u.suffix),_r.equal(this._tokens[s[1]].type,"separator"),s[0]=c+1,s[1]=c}else{var a=s;if(s=gP(e[i],i,this._tokens,s[0],s[1]),t===void 0&&s!==!1){var o=[];if(!Array.isArray(n)){var c=Fs(this._tokens,a[0],s[0]-1);_r.equal(this._tokens[c].type,"separator"),_r.equal(this._tokens[c].raw,":"),s[0]=c;var c=Fs(this._tokens,a[0],s[0]-1);_r.equal(this._tokens[c].type,"key"),_r.equal(this._tokens[c].value,e[e.length-1]),s[0]=c}var c=Fs(this._tokens,a[0],s[0]-1);_r.equal(this._tokens[c].type,"separator"),this._tokens[c].raw===","?s[0]=c:(c=yP(this._tokens,s[1]+1,a[1]),_r.equal(this._tokens[c].type,"separator"),this._tokens[c].raw===","&&(s[1]=c))}else var u=c!==!1?vP(this._tokens,Array.isArray(n),a[0],s[1]-1,i):{},o=ll(t,e,this._options,!1,u)}return o.unshift(s[1]-s[0]+1),o.unshift(s[0]),this._tokens.splice.apply(this._tokens,o),this};un.prototype.unset=function(e){return this.set(e,void 0)};un.prototype.get=function(e){e=bg(e);for(var t=this._data,r=0;r<e.length;r++){if(!ma(t))return;t=t[e[r]]}return t};un.prototype.has=function(e){e=bg(e);for(var t=this._data,r=0;r<e.length;r++){if(!ma(t))return!1;t=t[e[r]]}return t!==void 0};un.prototype.update=function(e){var t=this;return r([],t._data,e),t;function r(n,i,s){if(!ma(s)||!ma(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())}}};un.prototype.toString=function(){return this._tokens.map(function(e){return e.raw}).join("")};Sg.exports.Document=un;Sg.exports.update=function(t,r,n){return un(t,n).update(r).toString()}});var bP=P((IQ,fl)=>{var K9=require("fs"),X9=ga();fl.exports.register=function(){var e=require,t="extensions";e[t][".json5"]=function(r,n){r.exports=X9.parse(K9.readFileSync(n,"utf8"))}};fl.exports.patch_JSON_parse=function(){var e=JSON.parse;JSON.parse=function(t,r){try{return e(t,r)}catch(n){throw ga().parse(t,{mode:"json",legacy:!0,reviver:r,reserved_keys:"replace",null_prototype:!1}),n}}};fl.exports.middleware=function(){return function(e,t,r){throw Error("this function is removed, use express-json5 instead")}}});var ga=P((kQ,Li)=>{Li.exports.__defineGetter__("parse",function(){return da().parse});Li.exports.__defineGetter__("stringify",function(){return Ag().stringify});Li.exports.__defineGetter__("tokenize",function(){return da().tokenize});Li.exports.__defineGetter__("update",function(){return wP().update});Li.exports.__defineGetter__("analyze",function(){return wg().analyze});Li.exports.__defineGetter__("utils",function(){return bP()})});var pl=P(zn=>{"use strict";var dl=zn&&zn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zn,"__esModule",{value:!0});zn.getRushWorkspaces=zn.getRushWorkspaceRoot=void 0;var J9=dl(ls()),hl=dl(require("path")),Q9=dl(ga()),Z9=dl(require("fs")),e6=na();function SP(e){let t=J9.default.sync("rush.json",{cwd:e});if(!t)throw new Error("Could not find rush workspaces root");return hl.default.dirname(t)}zn.getRushWorkspaceRoot=SP;function t6(e){try{let t=SP(e),r=hl.default.join(t,"rush.json"),n=Q9.default.parse(Z9.default.readFileSync(r,"utf-8")),i=hl.default.dirname(r);return(0,e6.getWorkspacePackageInfo)(n.projects.map(s=>hl.default.join(i,s.projectFolder)))}catch{return[]}}zn.getRushWorkspaces=t6});var Cg=P(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.getNpmWorkspaces=Ds.getNpmWorkspaceRoot=void 0;var CP=$m();function xP(e){let t=(0,CP.getPackageJsonWorkspaceRoot)(e);if(!t)throw new Error("Could not find NPM workspaces root");return t}Ds.getNpmWorkspaceRoot=xP;function r6(e){let t=xP(e);return(0,CP.getWorkspaceInfoFromWorkspaceRoot)(t)}Ds.getNpmWorkspaces=r6});var xg=P(Yn=>{"use strict";var ml=Yn&&Yn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.getLernaWorkspaces=Yn.getLernaWorkspaceRoot=void 0;var n6=ml(ls()),i6=ml(require("fs")),s6=ml(ga()),OP=ml(require("path")),o6=Qc(),a6=na();function _P(e){let t=n6.default.sync("lerna.json",{cwd:e});if(!t)throw new Error("Could not find lerna workspace root");return OP.default.dirname(t)}Yn.getLernaWorkspaceRoot=_P;function u6(e,t){try{let r=_P(e),n=OP.default.join(r,"lerna.json"),i=s6.default.parse(i6.default.readFileSync(n,"utf-8")),s=(0,o6.getPackagePaths)(r,i.packages,t);return(0,a6.getWorkspacePackageInfo)(s)}catch{return[]}}Yn.getLernaWorkspaces=u6});var yl=P(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.getWorkspaces=void 0;var c6=mc(),l6=process.env.PREFERRED_WORKSPACE_MANAGER;function f6(e){let t=l6||(0,c6.getWorkspaceImplementation)(e);if(!t)return[];switch(t){case"yarn":return Zc().getYarnWorkspaces(e);case"pnpm":return ul().getPnpmWorkspaces(e);case"rush":return pl().getRushWorkspaces(e);case"npm":return Cg().getNpmWorkspaces(e);case"lerna":return xg().getLernaWorkspaces(e)}}gl.getWorkspaces=f6});var Og=P(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls._resetCache=Ls.getAllPackageJsonFiles=void 0;var h6=yl(),vl=new Map;function d6(e){if(vl.has(e))return vl.get(e);let r=(0,h6.getWorkspaces)(e).map(n=>n.packageJson.packageJsonPath);return vl.set(e,r),r}Ls.getAllPackageJsonFiles=d6;function p6(){vl.clear()}Ls._resetCache=p6});var PP=P(Ts=>{"use strict";var m6=Ts&&Ts.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.getPackageInfos=void 0;var g6=m6(require("fs")),y6=i1(),v6=Og();function E6(e){let t=(0,v6.getAllPackageJsonFiles)(e),r={};return t&&t.length>0?(t.forEach(n=>{try{let i=JSON.parse(g6.default.readFileSync(n,"utf-8"));r[i.name]=(0,y6.infoFromPackageJson)(i,n)}catch(i){throw i instanceof Error?new Error(`Invalid package.json file detected ${n}: ${i.message}`):i}}),r):{}}Ts.getPackageInfos=E6});var ya=P(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.gitFailFast=pr.git=pr.clearGitObservers=pr.addGitObserver=pr.GitError=void 0;var A6=require("child_process"),El=class extends Error{constructor(t,r){r instanceof Error?super(`${t}: ${r.message}`):super(t),this.originalError=r}};pr.GitError=El;var w6=process.env.GIT_MAX_BUFFER?parseInt(process.env.GIT_MAX_BUFFER):500*1024*1024,Is=[],_g;function b6(e){return Is.push(e),()=>C6(e)}pr.addGitObserver=b6;function S6(){Is.splice(0,Is.length)}pr.clearGitObservers=S6;function C6(e){let t=Is.indexOf(e);t>-1&&Is.splice(t,1)}function RP(e,t){let r=(0,A6.spawnSync)("git",e,{maxBuffer:w6,...t}),n={stderr:r.stderr.toString().trimRight(),stdout:r.stdout.toString().trimRight(),success:r.status===0};if(!_g){_g=!0;for(let i of Is)i(e,n);_g=!1}return n}pr.git=RP;function x6(e,t){var r,n;let i=RP(e,t);if(!i.success)throw t?.noExitCode||(process.exitCode=1),new El(`CRITICAL ERROR: running git command: git ${e.join(" ")}!
|
|
59
62
|
${(r=i.stdout)===null||r===void 0?void 0:r.toString().trimRight()}
|
|
60
|
-
${(n=i.stderr)===null||n===void 0?void 0:n.toString().trimRight()}`)}Zt.gitFailFast=CB});var hp=D(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.getWorkspaceRoot=void 0;var xB=La(),OB=process.env.PREFERRED_WORKSPACE_MANAGER;function FB(e){let t=OB||(0,xB.getWorkspaceImplementation)(e);if(t)switch(t){case"yarn":return Eu().getYarnWorkspaceRoot(e);case"pnpm":return Ru().getPnpmWorkspaceRoot(e);case"rush":return Nu().getRushWorkspaceRoot(e);case"npm":return up().getNpmWorkspaceRoot(e);case"lerna":return cp().getLernaWorkspaceRoot(e)}}qu.getWorkspaceRoot=FB});var dp=D(xt=>{"use strict";var i_=xt&&xt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xt,"__esModule",{value:!0});xt.isChildOf=xt.findProjectRoot=xt.findPackageRoot=xt.findGitRoot=xt.searchUp=void 0;var So=i_(require("path")),RB=i_(require("fs")),PB=hp(),DB=Hu();function s_(e,t){let r=So.default.parse(t).root,n=!1;for(;!n&&t!==r;){if(RB.default.existsSync(So.default.join(t,e))){n=!0;break}t=So.default.dirname(t)}return n?t:null}xt.searchUp=s_;function o_(e){let t=(0,DB.git)(["rev-parse","--show-toplevel"],{cwd:e});if(!t.success)throw new Error(`Directory "${e}" is not in a git repository`);return So.default.normalize(t.stdout)}xt.findGitRoot=o_;function kB(e){return s_("package.json",e)}xt.findPackageRoot=kB;function TB(e){let t;try{t=(0,PB.getWorkspaceRoot)(e)}catch{}return t||o_(e)}xt.findProjectRoot=TB;function IB(e,t){let r=So.default.relative(e,t);return/^[.\/\\]+$/.test(r)}xt.isChildOf=IB});var pp=D((z7,a_)=>{"use strict";a_.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 c_=D((V7,u_)=>{"use strict";var NB=pp();function LB(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=NB(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}u_.exports=LB});var h_=D((K7,f_)=>{"use strict";var jB=c_();function MB(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var $B=MB(jB),BB="text/plain",qB="us-ascii",l_=(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(g=>g.trim());return h==="charset"&&(d=d.toLowerCase(),d===qB)?"":`${h}${d?`=${d}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length>0||u&&u!==BB)&&f.unshift(u),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`};function WB(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];l_(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()])l_(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 gp=(e,t=!1)=>{let r=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,n=s=>{let o=new Error(s);throw o.subject_url=e,o};(typeof e!="string"||!e.trim())&&n("Invalid url."),e.length>gp.MAX_INPUT_LENGTH&&n("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),t&&(typeof t!="object"&&(t={stripHash:!1}),e=WB(e,t));let i=$B.default(e);if(i.parse_failed){let s=i.href.match(r);s?(i.protocols=["ssh"],i.protocol="ssh",i.resource=s[2],i.host=s[2],i.user=s[1],i.pathname=`/${s[3]}`,i.parse_failed=!1):n("URL parsing failed.")}return i};gp.MAX_INPUT_LENGTH=2048;f_.exports=gp});var g_=D((X7,p_)=>{"use strict";var GB=pp();function d_(e){if(Array.isArray(e))return e.indexOf("ssh")!==-1||e.indexOf("rsync")!==-1;if(typeof e!="string")return!1;var t=GB(e);if(e=e.substring(e.indexOf("://")+3),d_(t))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!e.match(r)&&e.indexOf("@")<e.indexOf(":")}p_.exports=d_});var v_=D((Q7,y_)=>{"use strict";var UB=h_(),m_=g_();function YB(e){var t=UB(e);return t.token="",t.password==="x-oauth-basic"?t.token=t.user:t.user==="x-token-auth"&&(t.token=t.password),m_(t.protocols)||t.protocols.length===0&&m_(e)?t.protocol="ssh":t.protocols.length?t.protocol=t.protocols[0]:(t.protocol="file",t.protocols=["file"]),t.href=t.href.replace(/\/$/,""),t}y_.exports=YB});var E_=D((J7,A_)=>{"use strict";var zB=v_();function mp(e){if(typeof e!="string")throw new Error("The url must be a string.");var t=/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i;t.test(e)&&(e="https://github.com/"+e);var r=zB(e),n=r.resource.split("."),i=null;switch(r.toString=function(y){return mp.stringify(this,y)},r.source=n.length>2?n.slice(1-n.length).join("."):r.source=r.resource,r.git_suffix=/\.git$/.test(r.pathname),r.name=decodeURIComponent((r.pathname||r.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),r.owner=decodeURIComponent(r.user),r.source){case"git.cloudforge.com":r.owner=r.user,r.organization=n[0],r.source="cloudforge.com";break;case"visualstudio.com":if(r.resource==="vs-ssh.visualstudio.com"){i=r.name.split("/"),i.length===4&&(r.organization=i[1],r.owner=i[2],r.name=i[3],r.full_name=i[2]+"/"+i[3]);break}else{i=r.name.split("/"),i.length===2?(r.owner=i[1],r.name=i[1],r.full_name="_git/"+r.name):i.length===3?(r.name=i[2],i[0]==="DefaultCollection"?(r.owner=i[2],r.organization=i[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=i[0],r.full_name=r.owner+"/_git/"+r.name)):i.length===4&&(r.organization=i[0],r.owner=i[1],r.name=i[3],r.full_name=r.organization+"/"+r.owner+"/_git/"+r.name);break}case"dev.azure.com":case"azure.com":if(r.resource==="ssh.dev.azure.com"){i=r.name.split("/"),i.length===4&&(r.organization=i[1],r.owner=i[2],r.name=i[3]);break}else{i=r.name.split("/"),i.length===5?(r.organization=i[0],r.owner=i[1],r.name=i[4],r.full_name="_git/"+r.name):i.length===3?(r.name=i[2],i[0]==="DefaultCollection"?(r.owner=i[2],r.organization=i[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=i[0],r.full_name=r.owner+"/_git/"+r.name)):i.length===4&&(r.organization=i[0],r.owner=i[1],r.name=i[3],r.full_name=r.organization+"/"+r.owner+"/_git/"+r.name),r.query&&r.query.path&&(r.filepath=r.query.path.replace(/^\/+/g,"")),r.query&&r.query.version&&(r.ref=r.query.version.replace(/^GB/,""));break}default:i=r.name.split("/");var s=i.length-1;if(i.length>=2){var o=i.indexOf("-",2),a=i.indexOf("blob",2),u=i.indexOf("tree",2),c=i.indexOf("commit",2),f=i.indexOf("src",2),l=i.indexOf("raw",2),h=i.indexOf("edit",2);s=o>0?o-1:a>0?a-1:u>0?u-1:c>0?c-1:f>0?f-1:l>0?l-1:h>0?h-1:s,r.owner=i.slice(0,s).join("/"),r.name=i[s],c&&(r.commit=i[s+2])}r.ref="",r.filepathtype="",r.filepath="";var d=i.length>s&&i[s+1]==="-"?s+1:s;i.length>d+2&&["raw","src","blob","tree","edit"].indexOf(i[d+1])>=0&&(r.filepathtype=i[d+1],r.ref=i[d+2],i.length>d+3&&(r.filepath=i.slice(d+3).join("/"))),r.organization=r.owner;break}r.full_name||(r.full_name=r.owner,r.name&&(r.full_name&&(r.full_name+="/"),r.full_name+=r.name)),r.owner.startsWith("scm/")&&(r.source="bitbucket-server",r.owner=r.owner.replace("scm/",""),r.organization=r.owner,r.full_name=r.owner+"/"+r.name);var g=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/,E=g.exec(r.pathname);return E!=null&&(r.source="bitbucket-server",E[1]==="users"?r.owner="~"+E[2]:r.owner=E[2],r.organization=r.owner,r.name=E[3],i=E[4].split("/"),i.length>1&&(["raw","browse"].indexOf(i[1])>=0?(r.filepathtype=i[1],i.length>2&&(r.filepath=i.slice(2).join("/"))):i[1]==="commits"&&i.length>2&&(r.commit=i[2])),r.full_name=r.owner+"/"+r.name,r.query.at?r.ref=r.query.at:r.ref=""),r}mp.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?VB(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"";return t+"://"+s+e.resource+r+"/"+KB(e)+i;default:return e.href}};function VB(e){switch(e.source){case"bitbucket.org":return"x-token-auth:"+e.token+"@";default:return e.token+"@"}}function KB(e){switch(e.source){case"bitbucket-server":return"scm/"+e.full_name;default:return""+e.full_name}}A_.exports=mp});var b_=D(fs=>{"use strict";var XB=fs&&fs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fs,"__esModule",{value:!0});fs.getRepositoryName=void 0;var QB=XB(E_());function JB(e){var t;try{let r=e.replace("/_optimized/","/").replace("/DefaultCollection/","/"),n=(0,QB.default)(r),i=r.includes(".visualstudio.com"),s=r.includes("dev.azure.com");if(!i&&!s)return n.full_name;let o=n.full_name.match(/(vs-ssh\.visualstudio\.com|ssh\.dev\.azure\.com):v\d+\/([^/]+)\/([^/]+)/);if(o)return`${o[2]}/${o[3]}/${n.name}`;let a=n.organization;return!a&&i&&(a=(t=n.resource.match(/([^.@]+)\.visualstudio\.com/))===null||t===void 0?void 0:t[1]),`${a}/${n.owner}/${n.name}`}catch{return""}}fs.getRepositoryName=JB});var yp=D(hs=>{"use strict";var S_=hs&&hs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hs,"__esModule",{value:!0});hs.getDefaultRemote=void 0;var ZB=S_(require("fs")),e3=S_(require("path")),t3=dp(),w_=b_(),r3=wo();function n3(e){let t=typeof e=="string"?{cwd:e}:e,{cwd:r,strict:n,verbose:i}=t,s=F=>i&&console.log(F),o=F=>{if(n)throw new Error(F);s(F)},a=(0,t3.findGitRoot)(r),u={},c=e3.default.join(a,"package.json");try{u=JSON.parse(ZB.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,w_.getRepositoryName)(l),d=(0,r3.git)(["remote","-v"],{cwd:r});d.success||o(`Could not determine available git remotes under "${r}"`);let g={};if(d.stdout.split(`
|
|
61
|
-
`).forEach(
|
|
62
|
-
`).slice(-1)[0]}
|
|
63
|
-
`);if(!n.find(i=>i.includes("user.name"))){if(!r)throw new Se.GitError("must include a username when initializing git repo");(0,Se.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,Se.git)(["config","user.email",t],{cwd:e})}}ve.init=y3;function x_(e,t){try{e.forEach(r=>{(0,Se.git)(["add",r],{cwd:t})})}catch(r){throw new Se.GitError("Cannot stage changes",r)}}ve.stage=x_;function O_(e,t,r=[]){try{let n=(0,Se.git)(["commit","-m",e,...r],{cwd:t});if(!n.success)throw new Error(`Cannot commit changes: ${n.stdout} ${n.stderr}`)}catch(n){throw new Se.GitError("Cannot commit changes",n)}}ve.commit=O_;function v3(e,t,r,n=[]){x_(e,r),O_(t,r,n)}ve.stageAndCommit=v3;function A3(e){let t=`workspace-tools_${new Date().getTime()}`;(0,Se.git)(["stash","push","-u","-m",t],{cwd:e});let r=(0,Se.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,Se.git)(["stash","drop",s[0]]),!0}}return!1}ve.revertLocalChanges=A3;function E3(e){let t=C_(e);if(!t||t==="HEAD")return null;let r=(0,Se.git)(["show-branch","-a"],{cwd:e});if(r.success){let i=r.stdout.split(/\n/).find(o=>o.includes("*")&&!o.includes(t)&&!o.includes("publish_")),s=i?.match(/\[(.*)\]/);return s?s[1]:null}return null}ve.getParentBranch=E3;function b3(e,t){let r=(0,Se.git)(["rev-parse","--abbrev-ref","--symbolic-full-name",`${e}@{u}`],{cwd:t});return r.success?r.stdout.trim():null}ve.getRemoteBranch=b3;function w3(e){let t=e.indexOf("/",0),r=e.substring(0,t),n=e.substring(t+1);return{remote:r,remoteBranch:n}}ve.parseRemoteBranch=w3;function S3(e){let t=(0,Se.git)(["config","init.defaultBranch"],{cwd:e});return t.success?t.stdout.trim():"master"}ve.getDefaultBranch=S3;function _3(e,t){let r=(0,Se.git)(["ls-files",...e],{cwd:t});return r.success&&r.stdout.trim()?r.stdout.trim().split(/\n/):[]}ve.listAllTrackedFiles=_3;function _o(e){return e.success?e.stdout.split(/\n/).map(t=>t.trim()).filter(t=>!!t&&!t.includes("node_modules")):[]}});var F_=D(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.getDefaultRemoteBranch=void 0;var C3=yp(),x3=wo(),O3=vp();function F3(...e){var t;let[r,n]=e,i=typeof r=="string"?{branch:r,cwd:n}:r,{cwd:s,branch:o}=i,a=(0,C3.getDefaultRemote)(i);if(o)return`${a}/${o}`;let u=(0,x3.git)(["remote","show",a],{cwd:s}),c;return u.success&&(c=(t=u.stdout.split(/\n/).find(f=>f.includes("HEAD branch")))===null||t===void 0?void 0:t.replace(/^\s*HEAD branch:\s+/,"")),`${a}/${c||(0,O3.getDefaultBranch)(s)}`}Wu.getDefaultRemoteBranch=F3});var Hu=D(br=>{"use strict";var R3=br&&br.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Gu=br&&br.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&R3(t,e,r)};Object.defineProperty(br,"__esModule",{value:!0});Gu(wo(),br);Gu(yp(),br);Gu(F_(),br);Gu(vp(),br)});var Ap=D(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.createDependencyMap=void 0;var P3=Pa();function D3(e,t={withDevDependencies:!0,withPeerDependencies:!1}){let r={dependencies:new Map,dependents:new Map};for(let[n,i]of Object.entries(e)){let s=(0,P3.getPackageDependencies)(i,e,t);for(let o of s)r.dependencies.has(n)||r.dependencies.set(n,new Set),r.dependencies.get(n).add(o),r.dependents.has(o)||r.dependents.set(o,new Set),r.dependents.get(o).add(n)}return r}Uu.createDependencyMap=D3});var P_=D(ds=>{"use strict";var k3=ds&&ds.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ds,"__esModule",{value:!0});ds.createPackageGraph=void 0;var Co=Ap(),T3=k3(no());function I3(e,t){let r=new Set,n=[],i=new Set,s,o,a,u;function c(h,d,g,E){if(r.add(d),!h||h.includeDependencies&&g)for(let y of g){let F=f(d,y);i.has(F)||(i.add(F),n.push({name:d,dependency:y})),r.add(y)}if(!h||h.includeDependents&&E)for(let y of E){let F=f(y,d);i.has(F)||(i.add(F),n.push({name:y,dependency:d})),r.add(y)}}if(t){t=Array.isArray(t)?t:[t];for(let h of t){let d=c.bind(void 0,h),g=l(e,h);R_(e,g,d,h)}}else{let h=c.bind(void 0,void 0),d=l(e);R_(e,d,h)}return{packages:[...r],dependencies:n};function f(h,d){return`${h}->${d}`}function l(h,d){return d?d.withDevDependencies&&d.withPeerDependencies?(s??(s=(0,Co.createDependencyMap)(h,d)),s):d.withDevDependencies&&!d.withPeerDependencies?(a??(a=(0,Co.createDependencyMap)(h,d)),a):!d.withDevDependencies&&d.withPeerDependencies?(o??(o=(0,Co.createDependencyMap)(h,d)),o):(u??(u=(0,Co.createDependencyMap)(h,d)),u):(0,Co.createDependencyMap)(h)}}ds.createPackageGraph=I3;function R_(e,t,r,n){var i,s;let o=new Set,a=Object.keys(e),u=n?(0,T3.default)(a,n.namePatterns):a;for(;u.length>0;){let c=u.pop();if(o.has(c))continue;let f=new Set,l=[],h=[];if(!n||n.includeDependencies){l=[...(i=t.dependencies.get(c))!==null&&i!==void 0?i:[]];for(let d of l)f.add(d)}if(!n||n.includeDependents){h=[...(s=t.dependents.get(c))!==null&&s!==void 0?s:[]];for(let d of h)f.add(d)}if(r(c,l,h),o.add(c),f.size>0)for(let d of f)u.push(d)}}});var D_=D(Br=>{"use strict";var N3=Br&&Br.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),L3=Br&&Br.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&N3(t,e,r)};Object.defineProperty(Br,"__esModule",{value:!0});Br.getDependentMap=void 0;L3(P_(),Br);var j3=Ap();function M3(e){return(0,j3.createDependencyMap)(e).dependencies}Br.getDependentMap=M3});var xo=D(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.nameAtVersion=void 0;function $3(e,t){return`${e}@${t}`}Yu.nameAtVersion=$3});var k_=D(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.parsePnpmLock=void 0;var B3=xo();function q3(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,B3.nameAtVersion)(s,o)]={version:o,dependencies:n.dependencies}}return{object:t,type:"success"}}zu.parsePnpmLock=q3});var T_=D(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.parseNpmLock=void 0;var H3=xo();function W3(e){var t;return{object:Object.fromEntries(Object.entries((t=e.dependencies)!==null&&t!==void 0?t:{}).map(([n,i])=>[(0,H3.nameAtVersion)(n,i.version),i])),type:"success"}}Vu.parseNpmLock=W3});var N_=D((l4,I_)=>{I_.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),g=d.value}catch(E){c(E);return}if(d.done)u(g);else return i.default.resolve(g).then(function(E){f("next",E)},function(E){f("throw",E)})}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=U(r(1))}let s=(()=>{var de=(0,(n||i()).default)(function*(ie,J,Q,te){let _e=(()=>{var Pe=(0,(n||i()).default)(function*(rt){let Ne=rt.src,Ce=rt.dest,xs=rt.type,Rt=rt.onFresh||Bt,We=rt.onDone||Bt;if(De.has(Ce.toLowerCase())?te.verbose(`The case-insensitive file ${Ce} shouldn't be copied twice in one bulk copy`):De.add(Ce.toLowerCase()),xs==="symlink"){yield K((m||v()).default.dirname(Ce)),Rt(),ft.symlink.push({dest:Ce,linkname:Ne}),We();return}if(J.ignoreBasenames.indexOf((m||v()).default.basename(Ne))>=0)return;let Ge=yield B(Ne),Sr;Ge.isDirectory()&&(Sr=yield ye(Ne));let bt;try{bt=yield B(Ce)}catch(gt){if(gt.code!=="ENOENT")throw gt}if(bt){let gt=Ge.isSymbolicLink()&&bt.isSymbolicLink(),_r=Ge.isDirectory()&&bt.isDirectory(),sr=Ge.isFile()&&bt.isFile();if(sr&&Ie.has(Ce)){We(),te.verbose(te.lang("verboseFileSkipArtifact",Ne));return}if(sr&&Ge.size===bt.size&&(0,(X||me()).fileDatesEqual)(Ge.mtime,bt.mtime)){We(),te.verbose(te.lang("verboseFileSkip",Ne,Ce,Ge.size,+Ge.mtime));return}if(gt){let nt=yield z(Ne);if(nt===(yield z(Ce))){We(),te.verbose(te.lang("verboseFileSkipSymlink",Ne,Ce,nt));return}}if(_r){let nt=yield ye(Ce);hi(Sr,"src files not initialised");for(var rr=nt,Gr=Array.isArray(rr),Pt=0,rr=Gr?rr:rr[Symbol.iterator]();;){var pi;if(Gr){if(Pt>=rr.length)break;pi=rr[Pt++]}else{if(Pt=rr.next(),Pt.done)break;pi=Pt.value}let zr=pi;if(Sr.indexOf(zr)<0){let Cr=(m||v()).default.join(Ce,zr);if(Q.add(Cr),(yield B(Cr)).isDirectory())for(var nr=yield ye(Cr),Ur=Array.isArray(nr),Dt=0,nr=Ur?nr:nr[Symbol.iterator]();;){var gi;if(Ur){if(Dt>=nr.length)break;gi=nr[Dt++]}else{if(Dt=nr.next(),Dt.done)break;gi=Dt.value}let yc=gi;Q.add((m||v()).default.join(Cr,yc))}}}}}if(bt&&bt.isSymbolicLink()&&(yield(0,(X||me()).unlink)(Ce),bt=null),Ge.isSymbolicLink()){Rt();let gt=yield z(Ne);ft.symlink.push({dest:Ce,linkname:gt}),We()}else if(Ge.isDirectory()){bt||(te.verbose(te.lang("verboseFileFolder",Ce)),yield K(Ce));let gt=Ce.split((m||v()).default.sep);for(;gt.length;)De.add(gt.join((m||v()).default.sep).toLowerCase()),gt.pop();hi(Sr,"src files not initialised");let _r=Sr.length;_r||We();for(var ir=Sr,Yr=Array.isArray(ir),kt=0,ir=Yr?ir:ir[Symbol.iterator]();;){var pt;if(Yr){if(kt>=ir.length)break;pt=ir[kt++]}else{if(kt=ir.next(),kt.done)break;pt=kt.value}let sr=pt;ie.push({dest:(m||v()).default.join(Ce,sr),onFresh:Rt,onDone:function(nt){function zr(){return nt.apply(this,arguments)}return zr.toString=function(){return nt.toString()},zr}(function(){--_r===0&&We()}),src:(m||v()).default.join(Ne,sr)})}}else if(Ge.isFile())Rt(),ft.file.push({src:Ne,dest:Ce,atime:Ge.atime,mtime:Ge.mtime,mode:Ge.mode}),We();else throw new Error(`unsure how to copy this: ${Ne}`)});return function(Ne){return Pe.apply(this,arguments)}})(),Ie=new Set(J.artifactFiles||[]),De=new Set;for(var Oe=ie,ke=Array.isArray(Oe),xe=0,Oe=ke?Oe:Oe[Symbol.iterator]();;){var Ft;if(ke){if(xe>=Oe.length)break;Ft=Oe[xe++]}else{if(xe=Oe.next(),xe.done)break;Ft=xe.value}let Pe=Ft,rt=Pe.onDone;Pe.onDone=function(){J.onProgress(Pe.dest),rt&&rt()}}J.onStart(ie.length);let ft={file:[],symlink:[],link:[]};for(;ie.length;){let Pe=ie.splice(0,Te);yield Promise.all(Pe.map(_e))}for(var ht=Ie,Wr=Array.isArray(ht),er=0,ht=Wr?ht:ht[Symbol.iterator]();;){var On;if(Wr){if(er>=ht.length)break;On=ht[er++]}else{if(er=ht.next(),er.done)break;On=er.value}let Pe=On;Q.has(Pe)&&(te.verbose(te.lang("verboseFilePhantomExtraneous",Pe)),Q.delete(Pe))}for(var dt=Q,Cs=Array.isArray(dt),tr=0,dt=Cs?dt:dt[Symbol.iterator]();;){var Fn;if(Cs){if(tr>=dt.length)break;Fn=dt[tr++]}else{if(tr=dt.next(),tr.done)break;Fn=tr.value}let Pe=Fn;De.has(Pe.toLowerCase())&&Q.delete(Pe)}return ft});return function(J,Q,te,_e){return de.apply(this,arguments)}})(),o=(()=>{var de=(0,(n||i()).default)(function*(ie,J,Q,te){let _e=(()=>{var Pe=(0,(n||i()).default)(function*(rt){let Ne=rt.src,Ce=rt.dest,xs=rt.onFresh||Bt,Rt=rt.onDone||Bt;if(De.has(Ce.toLowerCase())){Rt();return}if(De.add(Ce.toLowerCase()),J.ignoreBasenames.indexOf((m||v()).default.basename(Ne))>=0)return;let We=yield B(Ne),Ge;We.isDirectory()&&(Ge=yield ye(Ne));let Sr=yield Y(Ce);if(Sr){let pt=yield B(Ce),gt=We.isSymbolicLink()&&pt.isSymbolicLink(),_r=We.isDirectory()&&pt.isDirectory(),sr=We.isFile()&&pt.isFile();if(We.mode!==pt.mode)try{yield I(Ce,We.mode)}catch(nt){te.verbose(nt)}if(sr&&Ie.has(Ce)){Rt(),te.verbose(te.lang("verboseFileSkipArtifact",Ne));return}if(sr&&We.ino!==null&&We.ino===pt.ino){Rt(),te.verbose(te.lang("verboseFileSkip",Ne,Ce,We.ino));return}if(gt){let nt=yield z(Ne);if(nt===(yield z(Ce))){Rt(),te.verbose(te.lang("verboseFileSkipSymlink",Ne,Ce,nt));return}}if(_r){let nt=yield ye(Ce);hi(Ge,"src files not initialised");for(var Pt=nt,bt=Array.isArray(Pt),Gr=0,Pt=bt?Pt:Pt[Symbol.iterator]();;){var rr;if(bt){if(Gr>=Pt.length)break;rr=Pt[Gr++]}else{if(Gr=Pt.next(),Gr.done)break;rr=Gr.value}let zr=rr;if(Ge.indexOf(zr)<0){let Cr=(m||v()).default.join(Ce,zr);if(Q.add(Cr),(yield B(Cr)).isDirectory())for(var Dt=yield ye(Cr),pi=Array.isArray(Dt),Ur=0,Dt=pi?Dt:Dt[Symbol.iterator]();;){var nr;if(pi){if(Ur>=Dt.length)break;nr=Dt[Ur++]}else{if(Ur=Dt.next(),Ur.done)break;nr=Ur.value}let yc=nr;Q.add((m||v()).default.join(Cr,yc))}}}}}if(We.isSymbolicLink()){xs();let pt=yield z(Ne);ft.symlink.push({dest:Ce,linkname:pt}),Rt()}else if(We.isDirectory()){te.verbose(te.lang("verboseFileFolder",Ce)),yield K(Ce);let pt=Ce.split((m||v()).default.sep);for(;pt.length;)De.add(pt.join((m||v()).default.sep).toLowerCase()),pt.pop();hi(Ge,"src files not initialised");let gt=Ge.length;gt||Rt();for(var kt=Ge,gi=Array.isArray(kt),Yr=0,kt=gi?kt:kt[Symbol.iterator]();;){var ir;if(gi){if(Yr>=kt.length)break;ir=kt[Yr++]}else{if(Yr=kt.next(),Yr.done)break;ir=Yr.value}let _r=ir;ie.push({onFresh:xs,src:(m||v()).default.join(Ne,_r),dest:(m||v()).default.join(Ce,_r),onDone:function(sr){function nt(){return sr.apply(this,arguments)}return nt.toString=function(){return sr.toString()},nt}(function(){--gt===0&&Rt()})})}}else if(We.isFile())xs(),ft.link.push({src:Ne,dest:Ce,removeDest:Sr}),Rt();else throw new Error(`unsure how to copy this: ${Ne}`)});return function(Ne){return Pe.apply(this,arguments)}})(),Ie=new Set(J.artifactFiles||[]),De=new Set;for(var Oe=ie,ke=Array.isArray(Oe),xe=0,Oe=ke?Oe:Oe[Symbol.iterator]();;){var Ft;if(ke){if(xe>=Oe.length)break;Ft=Oe[xe++]}else{if(xe=Oe.next(),xe.done)break;Ft=xe.value}let Pe=Ft,rt=Pe.onDone||Bt;Pe.onDone=function(){J.onProgress(Pe.dest),rt()}}J.onStart(ie.length);let ft={file:[],symlink:[],link:[]};for(;ie.length;){let Pe=ie.splice(0,Te);yield Promise.all(Pe.map(_e))}for(var ht=Ie,Wr=Array.isArray(ht),er=0,ht=Wr?ht:ht[Symbol.iterator]();;){var On;if(Wr){if(er>=ht.length)break;On=ht[er++]}else{if(er=ht.next(),er.done)break;On=er.value}let Pe=On;Q.has(Pe)&&(te.verbose(te.lang("verboseFilePhantomExtraneous",Pe)),Q.delete(Pe))}for(var dt=Q,Cs=Array.isArray(dt),tr=0,dt=Cs?dt:dt[Symbol.iterator]();;){var Fn;if(Cs){if(tr>=dt.length)break;Fn=dt[tr++]}else{if(tr=dt.next(),tr.done)break;Fn=tr.value}let Pe=Fn;De.has(Pe.toLowerCase())&&Q.delete(Pe)}return ft});return function(J,Q,te,_e){return de.apply(this,arguments)}})(),a=t.copyBulk=(()=>{var de=(0,(n||i()).default)(function*(ie,J,Q){let te={onStart:Q&&Q.onStart||Bt,onProgress:Q&&Q.onProgress||Bt,possibleExtraneous:Q?Q.possibleExtraneous:new Set,ignoreBasenames:Q&&Q.ignoreBasenames||[],artifactFiles:Q&&Q.artifactFiles||[]},_e=yield s(ie,te,te.possibleExtraneous,J);te.onStart(_e.file.length+_e.symlink.length+_e.link.length);let Ie=_e.file,De=new Map;yield(b||k()).queue(Ie,(()=>{var xe=(0,(n||i()).default)(function*(Oe){let Ft;for(;Ft=De.get(Oe.dest);)yield Ft;J.verbose(J.lang("verboseFileCopy",Oe.src,Oe.dest));let ft=(0,(X||me()).copyFile)(Oe,function(){return De.delete(Oe.dest)});return De.set(Oe.dest,ft),te.onProgress(Oe.dest),ft});return function(Oe){return xe.apply(this,arguments)}})(),Te);let ke=_e.symlink;yield(b||k()).queue(ke,function(xe){let Oe=(m||v()).default.resolve((m||v()).default.dirname(xe.dest),xe.linkname);return J.verbose(J.lang("verboseFileSymlink",xe.dest,Oe)),d(Oe,xe.dest)})});return function(J,Q,te){return de.apply(this,arguments)}})(),u=t.hardlinkBulk=(()=>{var de=(0,(n||i()).default)(function*(ie,J,Q){let te={onStart:Q&&Q.onStart||Bt,onProgress:Q&&Q.onProgress||Bt,possibleExtraneous:Q?Q.possibleExtraneous:new Set,artifactFiles:Q&&Q.artifactFiles||[],ignoreBasenames:[]},_e=yield o(ie,te,te.possibleExtraneous,J);te.onStart(_e.file.length+_e.symlink.length+_e.link.length);let Ie=_e.link;yield(b||k()).queue(Ie,(()=>{var ke=(0,(n||i()).default)(function*(xe){J.verbose(J.lang("verboseFileLink",xe.src,xe.dest)),xe.removeDest&&(yield(0,(X||me()).unlink)(xe.dest)),yield ne(xe.src,xe.dest)});return function(xe){return ke.apply(this,arguments)}})(),Te);let De=_e.symlink;yield(b||k()).queue(De,function(ke){let xe=(m||v()).default.resolve((m||v()).default.dirname(ke.dest),ke.linkname);return J.verbose(J.lang("verboseFileSymlink",ke.dest,xe)),d(xe,ke.dest)})});return function(J,Q,te){return de.apply(this,arguments)}})(),c=t.readFileAny=(()=>{var de=(0,(n||i()).default)(function*(ie){for(var te=ie,J=Array.isArray(te),Q=0,te=J?te:te[Symbol.iterator]();;){var _e;if(J){if(Q>=te.length)break;_e=te[Q++]}else{if(Q=te.next(),Q.done)break;_e=Q.value}let Ie=_e;if(yield Y(Ie))return mc(Ie)}return null});return function(J){return de.apply(this,arguments)}})(),f=t.readJson=(()=>{var de=(0,(n||i()).default)(function*(ie){return(yield l(ie)).object});return function(J){return de.apply(this,arguments)}})(),l=t.readJsonAndFile=(()=>{var de=(0,(n||i()).default)(function*(ie){let J=yield mc(ie);try{return{object:(0,(G||V()).default)(JSON.parse(_s(J))),content:J}}catch(Q){throw Q.message=`${ie}: ${Q.message}`,Q}});return function(J){return de.apply(this,arguments)}})(),h=t.find=(()=>{var de=(0,(n||i()).default)(function*(ie,J){let Q=J.split((m||v()).default.sep);for(;Q.length;){let te=Q.concat(ie).join((m||v()).default.sep);if(yield Y(te))return te;Q.pop()}return!1});return function(J,Q){return de.apply(this,arguments)}})(),d=t.symlink=(()=>{var de=(0,(n||i()).default)(function*(ie,J){try{if((yield B(J)).isSymbolicLink()&&(yield ue(J))===ie)return}catch(Q){if(Q.code!=="ENOENT")throw Q}if(yield(0,(X||me()).unlink)(J),process.platform==="win32")yield ze(ie,J,"junction");else{let Q;try{Q=(m||v()).default.relative((P||O()).default.realpathSync((m||v()).default.dirname(J)),(P||O()).default.realpathSync(ie))}catch(te){if(te.code!=="ENOENT")throw te;Q=(m||v()).default.relative((m||v()).default.dirname(J),ie)}yield ze(Q||".",J)}});return function(J,Q){return de.apply(this,arguments)}})(),g=t.walk=(()=>{var de=(0,(n||i()).default)(function*(ie,J,Q=new Set){let te=[],_e=yield ye(ie);Q.size&&(_e=_e.filter(function(Oe){return!Q.has(Oe)}));for(var ke=_e,Ie=Array.isArray(ke),De=0,ke=Ie?ke:ke[Symbol.iterator]();;){var xe;if(Ie){if(De>=ke.length)break;xe=ke[De++]}else{if(De=ke.next(),De.done)break;xe=De.value}let Oe=xe,Ft=J?(m||v()).default.join(J,Oe):Oe,ft=(m||v()).default.join(ie,Oe),Wr=yield B(ft);te.push({relative:Ft,basename:Oe,absolute:ft,mtime:+Wr.mtime}),Wr.isDirectory()&&(te=te.concat(yield g(ft,Ft,Q)))}return te});return function(J,Q){return de.apply(this,arguments)}})(),E=t.getFileSizeOnDisk=(()=>{var de=(0,(n||i()).default)(function*(ie){let J=yield B(ie),Q=J.size,te=J.blksize;return Math.ceil(Q/te)*te});return function(J){return de.apply(this,arguments)}})(),y=(()=>{var de=(0,(n||i()).default)(function*(ie){if(!(yield Y(ie)))return;let J=yield ee(ie);for(let Q=0;Q<J.length;++Q){if(J[Q]===Sx)return`\r
|
|
64
|
-
`;if(J
|
|
65
|
-
`}});return function(
|
|
66
|
-
`&&(
|
|
67
|
-
`)}let Sx=13,_x=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],g=t.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",E=t.YARN_REGISTRY="https://registry.yarnpkg.com",y=t.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",F=t.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",_=t.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",j=t.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",T=t.CACHE_VERSION=2,w=t.LOCKFILE_VERSION=1,P=t.NETWORK_CONCURRENCY=8,O=t.NETWORK_TIMEOUT=30*1e3,R=t.CHILD_CONCURRENCY=5,L=t.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function C(){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 p=t.PREFERRED_MODULE_CACHE_DIRECTORIES=C(),m=t.CONFIG_DIRECTORY=u(),v=t.DATA_DIRECTORY=c(),S=t.LINK_REGISTRY_DIRECTORY=i.join(v,"link"),A=t.GLOBAL_MODULE_DIRECTORY=i.join(v,"global"),b=t.NODE_BIN_PATH=process.execPath,k=t.YARN_BIN_PATH=N();function N(){return f?__filename:i.join(__dirname,"..","bin","yarn.js")}let M=t.NODE_MODULES_FOLDER="node_modules",G=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"),me=t.META_FOLDER=".yarn-meta",H=t.INTEGRITY_FILENAME=".yarn-integrity",U=t.LOCKFILE_FILENAME="yarn.lock",q=t.METADATA_FILENAME=".yarn-metadata.json",Z=t.TARBALL_FILENAME=".yarn-tarball.tgz",ee=t.CLEAN_FILENAME=".yarnclean",W=t.NPM_LOCK_FILENAME="package-lock.json",re=t.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",z=t.DEFAULT_INDENT=" ",ue=t.SINGLE_INSTANCE_PORT=31997,ye=t.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",Fe=t.ENV_PATH_KEY=I(process.platform,process.env);function I(K,Y){let B="PATH";if(K==="win32"){B="Path";for(let se in Y)se.toLowerCase()==="path"&&(B=se)}return B}let $=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 g=[a,u,c,f,l,h],E=0;d=new Error(o.replace(/%s/g,function(){return g[E++]})),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,g){let E=Math.min(d.length,g.length);for(let y=0;y<E;y++){let F=d.charCodeAt(y),_=g.charCodeAt(y);if(F!==_)return F-_}return d.length-g.length}function s(d){let g=[];if(d)for(let E in d)g.push([E,d[E]]);return g}function o(d,g){return d.startsWith(g)&&(d=d.slice(g.length)),d}function a(d,g){return d.endsWith(g)?d.slice(0,-g.length):d}function u(d,g){return d.endsWith(g)?d:d+g}function c(d){return d.replace(/[A-Z]/g,g=>"-"+g.charAt(0).toLowerCase())}function f(d){return/[A-Z]/.test(d)?null:n(d)}function l(d,g){if(d.length!==g.length)return!1;for(let E=0,y=d.length;E<y;E++)if(d[E]!==g[E])return!1;return!0}function h(d){return new Promise(g=>{setTimeout(g,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=T(r(1))}var s;function o(){return s=r(81)}Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return T(s||o()).default}});var a;function u(){return a=r(150)}Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return T(a||u()).default}}),t.implodeEntry=m,t.explodeEntry=v;var c;function f(){return c=r(12)}var l;function h(){return l=r(29)}var d;function g(){return d=T(r(81))}var E;function y(){return E=r(6)}var F;function _(){return F=j(r(5))}function j(A){if(A&&A.__esModule)return A;var b={};if(A!=null)for(var k in A)Object.prototype.hasOwnProperty.call(A,k)&&(b[k]=A[k]);return b.default=A,b}function T(A){return A&&A.__esModule?A:{default:A}}let w=r(7),P=r(0),O=r(55);function R(A){return(0,(l||h()).normalizePattern)(A).name}function L(A){return A&&Object.keys(A).length?A:void 0}function C(A){return A.resolved||(A.reference&&A.hash?`${A.reference}#${A.hash}`:null)}function p(A){return A.toString().split(" ").sort().join(" ")}function m(A,b){let k=R(A),N=b.integrity?p(b.integrity):"",M={name:k===b.name?void 0:b.name,version:b.version,uid:b.uid===b.version?void 0:b.uid,resolved:b.resolved,registry:b.registry==="npm"?void 0:b.registry,dependencies:L(b.dependencies),optionalDependencies:L(b.optionalDependencies),permissions:L(b.permissions),prebuiltVariants:L(b.prebuiltVariants)};return N&&(M.integrity=N),M}function v(A,b){b.optionalDependencies=b.optionalDependencies||{},b.dependencies=b.dependencies||{},b.uid=b.uid||b.version,b.permissions=b.permissions||{},b.registry=b.registry||"npm",b.name=b.name||R(A);let k=b.integrity;return k&&k.isIntegrity&&(b.integrity=O.parse(k)),b}class S{constructor({cache:b,source:k,parseResultType:N}={}){this.source=k||"",this.cache=b,this.parseResultType=N}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(let b in this.cache)if(!/^.*@(file:|http)/.test(b)&&this.cache[b]&&!this.cache[b].integrity)return!0;return!1}static fromDirectory(b,k){return(0,(n||i()).default)(function*(){let N=P.join(b,(E||y()).LOCKFILE_FILENAME),M,G="",V;return(yield(F||_()).exists(N))?(G=yield(F||_()).readFile(N),V=(0,(d||g()).default)(G,N),k&&(V.type==="merge"?k.info(k.lang("lockfileMerged")):V.type==="conflict"&&k.warn(k.lang("lockfileConflict"))),M=V.object):k&&k.info(k.lang("noLockfileFound")),new S({cache:M,source:G,parseResultType:V&&V.type})})()}getLocked(b){let k=this.cache;if(!k)return;let N=b in k&&k[b];if(typeof N=="string")return this.getLocked(N);if(N)return v(b,N),N}removePattern(b){let k=this.cache;k&&delete k[b]}getLockfile(b){let k={},N=new Map,M=Object.keys(b).sort((c||f()).sortAlpha);for(var X=M,G=Array.isArray(X),V=0,X=G?X:X[Symbol.iterator]();;){var me;if(G){if(V>=X.length)break;me=X[V++]}else{if(V=X.next(),V.done)break;me=V.value}let H=me,U=b[H],q=U._remote,Z=U._reference;w(Z,"Package is missing a reference"),w(q,"Package is missing a remote");let ee=C(q),W=ee&&N.get(ee);if(W){k[H]=W,!W.name&&R(H)!==U.name&&(W.name=U.name);continue}let re=m(H,{name:U.name,version:U.version,uid:U._uid,resolved:q.resolved,integrity:q.integrity,registry:q.registry,dependencies:U.dependencies,peerDependencies:U.peerDependencies,optionalDependencies:U.optionalDependencies,permissions:Z.permissions,prebuiltVariants:U.prebuiltVariants});k[H]=re,ee&&N.set(ee,re)}return k}}t.default=S},,,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 g=0;g<u;g++)d();function d(){let g=o.shift();a(g).then(function(y){c.push(y),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,g=f&c.G,E=f&c.S,y=f&c.P,F=f&c.B,_=f&c.W,j=g?i:i[l]||(i[l]={}),T=j[u],w=g?n:E?n[l]:(n[l]||{})[u],P,O,R;g&&(h=l);for(P in h)O=!d&&w&&w[P]!==void 0,!(O&&a(j,P))&&(R=O?w[P]:h[P],j[P]=g&&typeof w[P]!="function"?h[P]:F&&O?s(R,n):_&&w[P]==R?function(L){var C=function(p,m,v){if(this instanceof L){switch(arguments.length){case 0:return new L;case 1:return new L(p);case 2:return new L(p,m)}return new L(p,m,v)}return L.apply(this,arguments)};return C[u]=L[u],C}(R):y&&typeof R=="function"?s(Function.call,R):R,y&&((j.virtual||(j.virtual={}))[P]=R,f&c.R&&T&&!T[P]&&o(T,P,R)))};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(p,m){let v=!!(m&&m.strict);this.source=p.trim();let S=this.source.match(v?c:u);if(!S||v&&!o.some(b=>b===S[1]))return;this.algorithm=S[1],this.digest=S[2];let A=S[3];this.options=A?A.slice(1).split("?"):[]}hexDigest(){return this.digest&&n.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(p){if(p&&p.strict&&!(o.some(v=>v===this.algorithm)&&this.digest.match(a)&&(this.options||[]).every(v=>v.match(f))))return"";let m=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${m}`}}class h{get isIntegrity(){return!0}toJSON(){return this.toString()}toString(p){p=p||{};let m=p.sep||" ";return p.strict&&(m=m.replace(/\S+/g," ")),Object.keys(this).map(v=>this[v].map(S=>l.prototype.toString.call(S,p)).filter(S=>S.length).join(m)).filter(v=>v.length).join(m)}concat(p,m){let v=typeof p=="string"?p:E(p,m);return d(`${this.toString(m)} ${v}`,m)}hexDigest(){return d(this,{single:!0}).hexDigest()}match(p,m){let v=d(p,m),S=v.pickAlgorithm(m);return this[S]&&v[S]&&this[S].find(A=>v[S].find(b=>A.digest===b.digest))||!1}pickAlgorithm(p){let m=p&&p.pickAlgorithm||L,v=Object.keys(this);if(!v.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return v.reduce((S,A)=>m(S,A)||S)}}e.exports.parse=d;function d(C,p){if(p=p||{},typeof C=="string")return g(C,p);if(C.algorithm&&C.digest){let m=new h;return m[C.algorithm]=[C],g(E(m,p),p)}else return g(E(C,p),p)}function g(C,p){return p.single?new l(C,p):C.trim().split(/\s+/).reduce((m,v)=>{let S=new l(v,p);if(S.algorithm&&S.digest){let A=S.algorithm;m[A]||(m[A]=[]),m[A].push(S)}return m},new h)}e.exports.stringify=E;function E(C,p){return C.algorithm&&C.digest?l.prototype.toString.call(C,p):typeof C=="string"?E(d(C,p),p):h.prototype.toString.call(C,p)}e.exports.fromHex=y;function y(C,p,m){let v=m&&m.options&&m.options.length?`?${m.options.join("?")}`:"";return d(`${p}-${n.from(C,"hex").toString("base64")}${v}`,m)}e.exports.fromData=F;function F(C,p){p=p||{};let m=p.algorithms||["sha512"],v=p.options&&p.options.length?`?${p.options.join("?")}`:"";return m.reduce((S,A)=>{let b=i.createHash(A).update(C).digest("base64"),k=new l(`${A}-${b}${v}`,p);if(k.algorithm&&k.digest){let N=k.algorithm;S[N]||(S[N]=[]),S[N].push(k)}return S},new h)}e.exports.fromStream=_;function _(C,p){p=p||{};let m=p.Promise||Promise,v=w(p);return new m((S,A)=>{C.pipe(v),C.on("error",A),v.on("error",A);let b;v.on("integrity",k=>{b=k}),v.on("end",()=>S(b)),v.on("data",()=>{})})}e.exports.checkData=j;function j(C,p,m){if(m=m||{},p=d(p,m),!Object.keys(p).length){if(m.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let v=p.pickAlgorithm(m),S=i.createHash(v).update(C).digest("base64"),A=d({algorithm:v,digest:S}),b=A.match(p,m);if(b||!m.error)return b;if(typeof m.size=="number"&&C.length!==m.size){let k=new Error(`data size mismatch when checking ${p}.
|
|
68
|
-
Wanted: ${
|
|
69
|
-
Found: ${
|
|
70
|
-
Wanted: ${
|
|
71
|
-
Found: ${
|
|
72
|
-
%s`,ue,ue,
|
|
73
|
-
globstar while`,
|
|
74
|
-
>>> no match, partial?`,p,V,m,X),V===k))}var H;if(typeof M=="string"?(S.nocase?H=G.toLowerCase()===M.toLowerCase():H=G===M,this.debug("string match",M,G,H)):(H=G.match(M),this.debug("pattern match",M,G,H)),!H)return!1}if(A===k&&b===N)return!0;if(A===k)return v;if(b===N){var U=A===k-1&&p[A]==="";return U}throw new Error("wtf?")};function L(p){return p.replace(/\\(.)/g,"$1")}function C(p){return p.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=O;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),g=d.alphasort,E=d.alphasorti,y=d.setopts,F=d.ownProp,_=r(223),j=r(2),T=d.childrenIgnored,w=d.isIgnored,P=r(61);function O(m,v,S){if(typeof v=="function"&&(S=v,v={}),v||(v={}),v.sync){if(S)throw new TypeError("callback provided to sync glob");return h(m,v)}return new C(m,v,S)}O.sync=h;var R=O.GlobSync=h.GlobSync;O.glob=O;function L(m,v){if(v===null||typeof v!="object")return m;for(var S=Object.keys(v),A=S.length;A--;)m[S[A]]=v[S[A]];return m}O.hasMagic=function(m,v){var S=L({},v);S.noprocess=!0;var A=new C(m,S),b=A.minimatch.set;if(!m)return!1;if(b.length>1)return!0;for(var k=0;k<b[0].length;k++)if(typeof b[0][k]!="string")return!0;return!1},O.Glob=C,a(C,u);function C(m,v,S){if(typeof v=="function"&&(S=v,v=null),v&&v.sync){if(S)throw new TypeError("callback provided to sync glob");return new R(m,v)}if(!(this instanceof C))return new C(m,v,S);y(this,m,v),this._didRealPath=!1;var A=this.minimatch.set.length;this.matches=new Array(A),typeof S=="function"&&(S=P(S),this.on("error",S),this.on("end",function(G){S(null,G)}));var b=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(A===0)return M();for(var k=!0,N=0;N<A;N++)this._process(this.minimatch.set[N],N,!1,M);k=!1;function M(){--b._processing,b._processing<=0&&(k?process.nextTick(function(){b._finish()}):b._finish())}}C.prototype._finish=function(){if(f(this instanceof C),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();d.finish(this),this.emit("end",this.found)}},C.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var m=this.matches.length;if(m===0)return this._finish();for(var v=this,S=0;S<this.matches.length;S++)this._realpathSet(S,A);function A(){--m===0&&v._finish()}},C.prototype._realpathSet=function(m,v){var S=this.matches[m];if(!S)return v();var A=Object.keys(S),b=this,k=A.length;if(k===0)return v();var N=this.matches[m]=Object.create(null);A.forEach(function(M,G){M=b._makeAbs(M),i.realpath(M,b.realpathCache,function(V,X){V?V.syscall==="stat"?N[M]=!0:b.emit("error",V):N[X]=!0,--k===0&&(b.matches[m]=N,v())})})},C.prototype._mark=function(m){return d.mark(this,m)},C.prototype._makeAbs=function(m){return d.makeAbs(this,m)},C.prototype.abort=function(){this.aborted=!0,this.emit("abort")},C.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},C.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var m=this._emitQueue.slice(0);this._emitQueue.length=0;for(var v=0;v<m.length;v++){var S=m[v];this._emitMatch(S[0],S[1])}}if(this._processQueue.length){var A=this._processQueue.slice(0);this._processQueue.length=0;for(var v=0;v<A.length;v++){var b=A[v];this._processing--,this._process(b[0],b[1],b[2],b[3])}}}},C.prototype._process=function(m,v,S,A){if(f(this instanceof C),f(typeof A=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([m,v,S,A]);return}for(var b=0;typeof m[b]=="string";)b++;var k;switch(b){case m.length:this._processSimple(m.join("/"),v,A);return;case 0:k=null;break;default:k=m.slice(0,b).join("/");break}var N=m.slice(b),M;k===null?M=".":((l(k)||l(m.join("/")))&&(!k||!l(k))&&(k="/"+k),M=k);var G=this._makeAbs(M);if(T(this,M))return A();var V=N[0]===s.GLOBSTAR;V?this._processGlobStar(k,M,G,N,v,S,A):this._processReaddir(k,M,G,N,v,S,A)}},C.prototype._processReaddir=function(m,v,S,A,b,k,N){var M=this;this._readdir(S,k,function(G,V){return M._processReaddir2(m,v,S,A,b,k,V,N)})},C.prototype._processReaddir2=function(m,v,S,A,b,k,N,M){if(!N)return M();for(var G=A[0],V=!!this.minimatch.negate,X=G._glob,me=this.dot||X.charAt(0)===".",H=[],U=0;U<N.length;U++){var q=N[U];if(q.charAt(0)!=="."||me){var Z;V&&!m?Z=!q.match(G):Z=q.match(G),Z&&H.push(q)}}var ee=H.length;if(ee===0)return M();if(A.length===1&&!this.mark&&!this.stat){this.matches[b]||(this.matches[b]=Object.create(null));for(var U=0;U<ee;U++){var q=H[U];m&&(m!=="/"?q=m+"/"+q:q=m+q),q.charAt(0)==="/"&&!this.nomount&&(q=c.join(this.root,q)),this._emitMatch(b,q)}return M()}A.shift();for(var U=0;U<ee;U++){var q=H[U],W;m&&(m!=="/"?q=m+"/"+q:q=m+q),this._process([q].concat(A),b,k,M)}M()},C.prototype._emitMatch=function(m,v){if(!this.aborted&&!w(this,v)){if(this.paused){this._emitQueue.push([m,v]);return}var S=l(v)?v:this._makeAbs(v);if(this.mark&&(v=this._mark(v)),this.absolute&&(v=S),!this.matches[m][v]){if(this.nodir){var A=this.cache[S];if(A==="DIR"||Array.isArray(A))return}this.matches[m][v]=!0;var b=this.statCache[S];b&&this.emit("stat",v,b),this.emit("match",v)}}},C.prototype._readdirInGlobStar=function(m,v){if(this.aborted)return;if(this.follow)return this._readdir(m,!1,v);var S="lstat\0"+m,A=this,b=_(S,k);b&&n.lstat(m,b);function k(N,M){if(N&&N.code==="ENOENT")return v();var G=M&&M.isSymbolicLink();A.symlinks[m]=G,!G&&M&&!M.isDirectory()?(A.cache[m]="FILE",v()):A._readdir(m,!1,v)}},C.prototype._readdir=function(m,v,S){if(!this.aborted&&(S=_("readdir\0"+m+"\0"+v,S),!!S)){if(v&&!F(this.symlinks,m))return this._readdirInGlobStar(m,S);if(F(this.cache,m)){var A=this.cache[m];if(!A||A==="FILE")return S();if(Array.isArray(A))return S(null,A)}var b=this;n.readdir(m,p(this,m,S))}};function p(m,v,S){return function(A,b){A?m._readdirError(v,A,S):m._readdirEntries(v,b,S)}}C.prototype._readdirEntries=function(m,v,S){if(!this.aborted){if(!this.mark&&!this.stat)for(var A=0;A<v.length;A++){var b=v[A];m==="/"?b=m+b:b=m+"/"+b,this.cache[b]=!0}return this.cache[m]=v,S(null,v)}},C.prototype._readdirError=function(m,v,S){if(!this.aborted){switch(v.code){case"ENOTSUP":case"ENOTDIR":var A=this._makeAbs(m);if(this.cache[A]="FILE",A===this.cwdAbs){var b=new Error(v.code+" invalid cwd "+this.cwd);b.path=this.cwd,b.code=v.code,this.emit("error",b),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(m)]=!1;break;default:this.cache[this._makeAbs(m)]=!1,this.strict&&(this.emit("error",v),this.abort()),this.silent||console.error("glob error",v);break}return S()}},C.prototype._processGlobStar=function(m,v,S,A,b,k,N){var M=this;this._readdir(S,k,function(G,V){M._processGlobStar2(m,v,S,A,b,k,V,N)})},C.prototype._processGlobStar2=function(m,v,S,A,b,k,N,M){if(!N)return M();var G=A.slice(1),V=m?[m]:[],X=V.concat(G);this._process(X,b,!1,M);var me=this.symlinks[S],H=N.length;if(me&&k)return M();for(var U=0;U<H;U++){var q=N[U];if(!(q.charAt(0)==="."&&!this.dot)){var Z=V.concat(N[U],G);this._process(Z,b,!0,M);var ee=V.concat(N[U],A);this._process(ee,b,!0,M)}}M()},C.prototype._processSimple=function(m,v,S){var A=this;this._stat(m,function(b,k){A._processSimple2(m,v,b,k,S)})},C.prototype._processSimple2=function(m,v,S,A,b){if(this.matches[v]||(this.matches[v]=Object.create(null)),!A)return b();if(m&&l(m)&&!this.nomount){var k=/[\/\\]$/.test(m);m.charAt(0)==="/"?m=c.join(this.root,m):(m=c.resolve(this.root,m),k&&(m+="/"))}process.platform==="win32"&&(m=m.replace(/\\/g,"/")),this._emitMatch(v,m),b()},C.prototype._stat=function(m,v){var S=this._makeAbs(m),A=m.slice(-1)==="/";if(m.length>this.maxLength)return v();if(!this.stat&&F(this.cache,S)){var b=this.cache[S];if(Array.isArray(b)&&(b="DIR"),!A||b==="DIR")return v(null,b);if(A&&b==="FILE")return v()}var k,N=this.statCache[S];if(N!==void 0){if(N===!1)return v(null,N);var M=N.isDirectory()?"DIR":"FILE";return A&&M==="FILE"?v():v(null,M,N)}var G=this,V=_("stat\0"+S,X);V&&n.lstat(S,V);function X(me,H){if(H&&H.isSymbolicLink())return n.stat(S,function(U,q){U?G._stat2(m,S,null,H,v):G._stat2(m,S,U,q,v)});G._stat2(m,S,me,H,v)}},C.prototype._stat2=function(m,v,S,A,b){if(S&&(S.code==="ENOENT"||S.code==="ENOTDIR"))return this.statCache[v]=!1,b();var k=m.slice(-1)==="/";if(this.statCache[v]=A,v.slice(-1)==="/"&&A&&!A.isDirectory())return b(null,!1,A);var N=!0;return A&&(N=A.isDirectory()?"DIR":"FILE"),this.cache[v]=this.cache[v]||N,k&&N==="FILE"?b():b(null,N,A)}},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(S,A="lockfile"){return S=(0,(a||u()).default)(S),p(S)?v(S,A):{type:"success",object:m(S,A)}};var n;function i(){return n=E(r(2))}var s;function o(){return s=E(r(7))}var a;function u(){return a=E(r(122))}var c;function f(){return c=r(6)}var l;function h(){return l=r(4)}var d;function g(){return d=E(r(20))}function E(S){return S&&S.__esModule?S:{default:S}}let y=/^yarn lockfile v(\d+)$/,F={boolean:"BOOLEAN",string:"STRING",identifier:"IDENTIFIER",eof:"EOF",colon:"COLON",newline:"NEWLINE",comment:"COMMENT",indent:"INDENT",invalid:"INVALID",number:"NUMBER",comma:"COMMA"},_=[F.boolean,F.string,F.number];function j(S){return _.indexOf(S.type)>=0}function*T(S){let A=!1,b=1,k=0;function N(M,G){return{line:b,col:k,type:M,value:G}}for(;S.length;){let M=0;if(S[0]===`
|
|
75
|
-
`||
|
|
76
|
-
`&&M++,b++,
|
|
77
|
-
`;)
|
|
78
|
-
`||X==="\r"||X===",")break;
|
|
79
|
-
`||
|
|
80
|
-
`,
|
|
63
|
+
${(n=i.stderr)===null||n===void 0?void 0:n.toString().trimRight()}`)}pr.gitFailFast=x6});var Pg=P(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.getWorkspaceRoot=void 0;var O6=mc(),_6=process.env.PREFERRED_WORKSPACE_MANAGER;function P6(e){let t=_6||(0,O6.getWorkspaceImplementation)(e);if(t)switch(t){case"yarn":return Zc().getYarnWorkspaceRoot(e);case"pnpm":return ul().getPnpmWorkspaceRoot(e);case"rush":return pl().getRushWorkspaceRoot(e);case"npm":return Cg().getNpmWorkspaceRoot(e);case"lerna":return xg().getLernaWorkspaceRoot(e)}}Al.getWorkspaceRoot=P6});var Rg=P(Mt=>{"use strict";var FP=Mt&&Mt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.isChildOf=Mt.findProjectRoot=Mt.findPackageRoot=Mt.findGitRoot=Mt.searchUp=void 0;var va=FP(require("path")),R6=FP(require("fs")),F6=Pg(),D6=wl();function DP(e,t){let r=va.default.parse(t).root,n=!1;for(;!n&&t!==r;){if(R6.default.existsSync(va.default.join(t,e))){n=!0;break}t=va.default.dirname(t)}return n?t:null}Mt.searchUp=DP;function LP(e){let t=(0,D6.git)(["rev-parse","--show-toplevel"],{cwd:e});if(!t.success)throw new Error(`Directory "${e}" is not in a git repository`);return va.default.normalize(t.stdout)}Mt.findGitRoot=LP;function L6(e){return DP("package.json",e)}Mt.findPackageRoot=L6;function T6(e){let t;try{t=(0,F6.getWorkspaceRoot)(e)}catch{}return t||LP(e)}Mt.findProjectRoot=T6;function I6(e,t){let r=va.default.relative(e,t);return/^[.\/\\]+$/.test(r)}Mt.isChildOf=I6});var Fg=P((HQ,TP)=>{"use strict";TP.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 kP=P((zQ,IP)=>{"use strict";var k6=Fg();function N6(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=k6(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}IP.exports=N6});var MP=P((YQ,$P)=>{"use strict";var $6=kP();function M6(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var j6=M6($6),B6="text/plain",q6="us-ascii",NP=(e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),G6=(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 c=(o.shift()||"").toLowerCase(),f=[...o.map(l=>{let[h,d=""]=l.split("=").map(p=>p.trim());return h==="charset"&&(d=d.toLowerCase(),d===q6)?"":`${h}${d?`=${d}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length>0||c&&c!==B6)&&f.unshift(c),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`};function U6(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 G6(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,c="";for(;;){let f=o.exec(i.pathname);if(!f)break;let l=f[0],h=f.index,d=i.pathname.slice(a,h);c+=d.replace(/\/{2,}/g,"/"),c+=l,a=h+l.length}let u=i.pathname.slice(a,i.pathname.length);c+=u.replace(/\/{2,}/g,"/"),i.pathname=c}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];NP(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()])NP(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 Dg=(e,t=!1)=>{let r=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,n=s=>{let o=new Error(s);throw o.subject_url=e,o};(typeof e!="string"||!e.trim())&&n("Invalid url."),e.length>Dg.MAX_INPUT_LENGTH&&n("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),t&&(typeof t!="object"&&(t={stripHash:!1}),e=U6(e,t));let i=j6.default(e);if(i.parse_failed){let s=i.href.match(r);s?(i.protocols=["ssh"],i.protocol="ssh",i.resource=s[2],i.host=s[2],i.user=s[1],i.pathname=`/${s[3]}`,i.parse_failed=!1):n("URL parsing failed.")}return i};Dg.MAX_INPUT_LENGTH=2048;$P.exports=Dg});var qP=P((VQ,BP)=>{"use strict";var W6=Fg();function jP(e){if(Array.isArray(e))return e.indexOf("ssh")!==-1||e.indexOf("rsync")!==-1;if(typeof e!="string")return!1;var t=W6(e);if(e=e.substring(e.indexOf("://")+3),jP(t))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!e.match(r)&&e.indexOf("@")<e.indexOf(":")}BP.exports=jP});var WP=P((KQ,UP)=>{"use strict";var H6=MP(),GP=qP();function z6(e){var t=H6(e);return t.token="",t.password==="x-oauth-basic"?t.token=t.user:t.user==="x-token-auth"&&(t.token=t.password),GP(t.protocols)||t.protocols.length===0&&GP(e)?t.protocol="ssh":t.protocols.length?t.protocol=t.protocols[0]:(t.protocol="file",t.protocols=["file"]),t.href=t.href.replace(/\/$/,""),t}UP.exports=z6});var zP=P((XQ,HP)=>{"use strict";var Y6=WP();function Lg(e){if(typeof e!="string")throw new Error("The url must be a string.");var t=/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i;t.test(e)&&(e="https://github.com/"+e);var r=Y6(e),n=r.resource.split("."),i=null;switch(r.toString=function(y){return Lg.stringify(this,y)},r.source=n.length>2?n.slice(1-n.length).join("."):r.source=r.resource,r.git_suffix=/\.git$/.test(r.pathname),r.name=decodeURIComponent((r.pathname||r.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),r.owner=decodeURIComponent(r.user),r.source){case"git.cloudforge.com":r.owner=r.user,r.organization=n[0],r.source="cloudforge.com";break;case"visualstudio.com":if(r.resource==="vs-ssh.visualstudio.com"){i=r.name.split("/"),i.length===4&&(r.organization=i[1],r.owner=i[2],r.name=i[3],r.full_name=i[2]+"/"+i[3]);break}else{i=r.name.split("/"),i.length===2?(r.owner=i[1],r.name=i[1],r.full_name="_git/"+r.name):i.length===3?(r.name=i[2],i[0]==="DefaultCollection"?(r.owner=i[2],r.organization=i[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=i[0],r.full_name=r.owner+"/_git/"+r.name)):i.length===4&&(r.organization=i[0],r.owner=i[1],r.name=i[3],r.full_name=r.organization+"/"+r.owner+"/_git/"+r.name);break}case"dev.azure.com":case"azure.com":if(r.resource==="ssh.dev.azure.com"){i=r.name.split("/"),i.length===4&&(r.organization=i[1],r.owner=i[2],r.name=i[3]);break}else{i=r.name.split("/"),i.length===5?(r.organization=i[0],r.owner=i[1],r.name=i[4],r.full_name="_git/"+r.name):i.length===3?(r.name=i[2],i[0]==="DefaultCollection"?(r.owner=i[2],r.organization=i[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=i[0],r.full_name=r.owner+"/_git/"+r.name)):i.length===4&&(r.organization=i[0],r.owner=i[1],r.name=i[3],r.full_name=r.organization+"/"+r.owner+"/_git/"+r.name),r.query&&r.query.path&&(r.filepath=r.query.path.replace(/^\/+/g,"")),r.query&&r.query.version&&(r.ref=r.query.version.replace(/^GB/,""));break}default:i=r.name.split("/");var s=i.length-1;if(i.length>=2){var o=i.indexOf("-",2),a=i.indexOf("blob",2),c=i.indexOf("tree",2),u=i.indexOf("commit",2),f=i.indexOf("src",2),l=i.indexOf("raw",2),h=i.indexOf("edit",2);s=o>0?o-1:a>0?a-1:c>0?c-1:u>0?u-1:f>0?f-1:l>0?l-1:h>0?h-1:s,r.owner=i.slice(0,s).join("/"),r.name=i[s],u&&(r.commit=i[s+2])}r.ref="",r.filepathtype="",r.filepath="";var d=i.length>s&&i[s+1]==="-"?s+1:s;i.length>d+2&&["raw","src","blob","tree","edit"].indexOf(i[d+1])>=0&&(r.filepathtype=i[d+1],r.ref=i[d+2],i.length>d+3&&(r.filepath=i.slice(d+3).join("/"))),r.organization=r.owner;break}r.full_name||(r.full_name=r.owner,r.name&&(r.full_name&&(r.full_name+="/"),r.full_name+=r.name)),r.owner.startsWith("scm/")&&(r.source="bitbucket-server",r.owner=r.owner.replace("scm/",""),r.organization=r.owner,r.full_name=r.owner+"/"+r.name);var p=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/,g=p.exec(r.pathname);return g!=null&&(r.source="bitbucket-server",g[1]==="users"?r.owner="~"+g[2]:r.owner=g[2],r.organization=r.owner,r.name=g[3],i=g[4].split("/"),i.length>1&&(["raw","browse"].indexOf(i[1])>=0?(r.filepathtype=i[1],i.length>2&&(r.filepath=i.slice(2).join("/"))):i[1]==="commits"&&i.length>2&&(r.commit=i[2])),r.full_name=r.owner+"/"+r.name,r.query.at?r.ref=r.query.at:r.ref=""),r}Lg.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?V6(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"";return t+"://"+s+e.resource+r+"/"+K6(e)+i;default:return e.href}};function V6(e){switch(e.source){case"bitbucket.org":return"x-token-auth:"+e.token+"@";default:return e.token+"@"}}function K6(e){switch(e.source){case"bitbucket-server":return"scm/"+e.full_name;default:return""+e.full_name}}HP.exports=Lg});var YP=P(ks=>{"use strict";var X6=ks&&ks.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ks,"__esModule",{value:!0});ks.getRepositoryName=void 0;var J6=X6(zP());function Q6(e){var t;try{let r=e.replace("/_optimized/","/").replace("/DefaultCollection/","/"),n=(0,J6.default)(r),i=r.includes(".visualstudio.com"),s=r.includes("dev.azure.com");if(!i&&!s)return n.full_name;let o=n.full_name.match(/(vs-ssh\.visualstudio\.com|ssh\.dev\.azure\.com):v\d+\/([^/]+)\/([^/]+)/);if(o)return`${o[2]}/${o[3]}/${n.name}`;let a=n.organization;return!a&&i&&(a=(t=n.resource.match(/([^.@]+)\.visualstudio\.com/))===null||t===void 0?void 0:t[1]),`${a}/${n.owner}/${n.name}`}catch{return""}}ks.getRepositoryName=Q6});var Tg=P(Ns=>{"use strict";var KP=Ns&&Ns.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ns,"__esModule",{value:!0});Ns.getDefaultRemote=void 0;var Z6=KP(require("fs")),e8=KP(require("path")),t8=Rg(),VP=YP(),r8=ya();function n8(e){let t=typeof e=="string"?{cwd:e}:e,{cwd:r,strict:n,verbose:i}=t,s=x=>i&&console.log(x),o=x=>{if(n)throw new Error(x);s(x)},a=(0,t8.findGitRoot)(r),c={},u=e8.default.join(a,"package.json");try{c=JSON.parse(Z6.default.readFileSync(u,"utf8").trim())}catch{o(`Could not read "${u}"`)}let{repository:f}=c,l=typeof f=="string"?f:f&&f.url||"";l||console.log(`Valid "repository" key not found in "${u}". Consider adding this info for more accurate git remote detection.`);let h=(0,VP.getRepositoryName)(l),d=(0,r8.git)(["remote","-v"],{cwd:r});d.success||o(`Could not determine available git remotes under "${r}"`);let p={};if(d.stdout.split(`
|
|
64
|
+
`).forEach(x=>{let[S,I]=x.split(/\s+/),R=(0,VP.getRepositoryName)(I);R&&(p[R]=S)}),h){if(p[h])return p[h];o(`Could not find remote pointing to repository "${h}".`)}let g=Object.values(p),y=["upstream","origin",...g];for(let x of y)if(g.includes(x))return s(`Default to remote "${x}"`),x;return o(`Could not find any remotes in git repo at "${a}".`),s('Assuming default remote "origin".'),"origin"}Ns.getDefaultRemote=n8});var Ig=P(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 Ce=ya();function i8(e){try{return Ea((0,Ce.git)(["ls-files","--others","--exclude-standard"],{cwd:e}))}catch(t){throw new Ce.GitError("Cannot gather information about untracked changes",t)}}Ee.getUntrackedChanges=i8;function s8(e,t){if(!(0,Ce.git)(["fetch","--",e],{cwd:t}).success)throw new Ce.GitError(`Cannot fetch remote "${e}"`)}Ee.fetchRemote=s8;function o8(e,t,r){if(!(0,Ce.git)(["fetch","--",e,t],{cwd:r}).success)throw new Ce.GitError(`Cannot fetch branch "${t}" from remote "${e}"`)}Ee.fetchRemoteBranch=o8;function a8(e){try{return Ea((0,Ce.git)(["--no-pager","diff","--name-only","--relative"],{cwd:e}))}catch(t){throw new Ce.GitError("Cannot gather information about unstaged changes",t)}}Ee.getUnstagedChanges=a8;function u8(e,t){try{return Ea((0,Ce.git)(["--no-pager","diff","--relative","--name-only",e+"..."],{cwd:t}))}catch(r){throw new Ce.GitError("Cannot gather information about changes",r)}}Ee.getChanges=u8;function c8(e,t){return XP(e,"",[],"",t)}Ee.getBranchChanges=c8;function XP(e,t,r,n,i){try{return Ea((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)}}Ee.getChangesBetweenRefs=XP;function l8(e){try{return Ea((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)}}Ee.getStagedChanges=l8;function f8(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()):[]}catch(r){throw new Ce.GitError("Cannot gather information about recent commits",r)}}Ee.getRecentCommitMessages=f8;function h8(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)}}Ee.getUserEmail=h8;function JP(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)}}Ee.getBranchName=JP;function d8(e,t){let r=(0,Ce.git)(["show-ref","--heads",e],{cwd:t});return r.success?r.stdout.split(" ")[1]:null}Ee.getFullBranchRef=d8;function p8(e,t){let r=(0,Ce.git)(["name-rev","--name-only",e],{cwd:t});return r.success?r.stdout:null}Ee.getShortBranchName=p8;function m8(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)}}Ee.getCurrentHash=m8;function g8(e,t){let r=(0,Ce.git)(["rev-list","HEAD",e],{cwd:t});if(r.success)return r.stdout.trim().split(`
|
|
65
|
+
`).slice(-1)[0]}Ee.getFileAddedHash=g8;function y8(e,t,r){(0,Ce.git)(["init"],{cwd:e});let n=(0,Ce.git)(["config","--list"],{cwd:e}).stdout.split(`
|
|
66
|
+
`);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})}}Ee.init=y8;function QP(e,t){try{e.forEach(r=>{(0,Ce.git)(["add",r],{cwd:t})})}catch(r){throw new Ce.GitError("Cannot stage changes",r)}}Ee.stage=QP;function ZP(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)}}Ee.commit=ZP;function v8(e,t,r,n=[]){QP(e,r),ZP(t,r,n)}Ee.stageAndCommit=v8;function E8(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}Ee.revertLocalChanges=E8;function A8(e){let t=JP(e);if(!t||t==="HEAD")return null;let r=(0,Ce.git)(["show-branch","-a"],{cwd:e});if(r.success){let i=r.stdout.split(/\n/).find(o=>o.includes("*")&&!o.includes(t)&&!o.includes("publish_")),s=i?.match(/\[(.*)\]/);return s?s[1]:null}return null}Ee.getParentBranch=A8;function w8(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}Ee.getRemoteBranch=w8;function b8(e){let t=e.indexOf("/",0),r=e.substring(0,t),n=e.substring(t+1);return{remote:r,remoteBranch:n}}Ee.parseRemoteBranch=b8;function S8(e){let t=(0,Ce.git)(["config","init.defaultBranch"],{cwd:e});return t.success?t.stdout.trim():"master"}Ee.getDefaultBranch=S8;function C8(e,t){let r=(0,Ce.git)(["ls-files",...e],{cwd:t});return r.success&&r.stdout.trim()?r.stdout.trim().split(/\n/):[]}Ee.listAllTrackedFiles=C8;function Ea(e){return e.success?e.stdout.split(/\n/).map(t=>t.trim()).filter(t=>!!t&&!t.includes("node_modules")):[]}});var eR=P(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.getDefaultRemoteBranch=void 0;var x8=Tg(),O8=ya(),_8=Ig();function P8(...e){var t;let[r,n]=e,i=typeof r=="string"?{branch:r,cwd:n}:r,{cwd:s,branch:o}=i,a=(0,x8.getDefaultRemote)(i);if(o)return`${a}/${o}`;let c=(0,O8.git)(["remote","show",a],{cwd:s}),u;return c.success&&(u=(t=c.stdout.split(/\n/).find(f=>f.includes("HEAD branch")))===null||t===void 0?void 0:t.replace(/^\s*HEAD branch:\s+/,"")),`${a}/${u||(0,_8.getDefaultBranch)(s)}`}bl.getDefaultRemoteBranch=P8});var wl=P(qr=>{"use strict";var R8=qr&&qr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Sl=qr&&qr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&R8(t,e,r)};Object.defineProperty(qr,"__esModule",{value:!0});Sl(ya(),qr);Sl(Tg(),qr);Sl(eR(),qr);Sl(Ig(),qr)});var kg=P(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.createDependencyMap=void 0;var F8=cc();function D8(e,t={withDevDependencies:!0,withPeerDependencies:!1}){let r={dependencies:new Map,dependents:new Map};for(let[n,i]of Object.entries(e)){let s=(0,F8.getPackageDependencies)(i,e,t);for(let o of s)r.dependencies.has(n)||r.dependencies.set(n,new Set),r.dependencies.get(n).add(o),r.dependents.has(o)||r.dependents.set(o,new Set),r.dependents.get(o).add(n)}return r}Cl.createDependencyMap=D8});var rR=P($s=>{"use strict";var L8=$s&&$s.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($s,"__esModule",{value:!0});$s.createPackageGraph=void 0;var Aa=kg(),T8=L8(Zo());function I8(e,t){let r=new Set,n=[],i=new Set,s,o,a,c;function u(h,d,p,g){if(r.add(d),!h||h.includeDependencies&&p)for(let y of p){let x=f(d,y);i.has(x)||(i.add(x),n.push({name:d,dependency:y})),r.add(y)}if(!h||h.includeDependents&&g)for(let y of g){let x=f(y,d);i.has(x)||(i.add(x),n.push({name:y,dependency:d})),r.add(y)}}if(t){t=Array.isArray(t)?t:[t];for(let h of t){let d=u.bind(void 0,h),p=l(e,h);tR(e,p,d,h)}}else{let h=u.bind(void 0,void 0),d=l(e);tR(e,d,h)}return{packages:[...r],dependencies:n};function f(h,d){return`${h}->${d}`}function l(h,d){return d?d.withDevDependencies&&d.withPeerDependencies?(s??(s=(0,Aa.createDependencyMap)(h,d)),s):d.withDevDependencies&&!d.withPeerDependencies?(a??(a=(0,Aa.createDependencyMap)(h,d)),a):!d.withDevDependencies&&d.withPeerDependencies?(o??(o=(0,Aa.createDependencyMap)(h,d)),o):(c??(c=(0,Aa.createDependencyMap)(h,d)),c):(0,Aa.createDependencyMap)(h)}}$s.createPackageGraph=I8;function tR(e,t,r,n){var i,s;let o=new Set,a=Object.keys(e),c=n?(0,T8.default)(a,n.namePatterns):a;for(;c.length>0;){let u=c.pop();if(o.has(u))continue;let f=new Set,l=[],h=[];if(!n||n.includeDependencies){l=[...(i=t.dependencies.get(u))!==null&&i!==void 0?i:[]];for(let d of l)f.add(d)}if(!n||n.includeDependents){h=[...(s=t.dependents.get(u))!==null&&s!==void 0?s:[]];for(let d of h)f.add(d)}if(r(u,l,h),o.add(u),f.size>0)for(let d of f)c.push(d)}}});var nR=P(cn=>{"use strict";var k8=cn&&cn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),N8=cn&&cn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&k8(t,e,r)};Object.defineProperty(cn,"__esModule",{value:!0});cn.getDependentMap=void 0;N8(rR(),cn);var $8=kg();function M8(e){return(0,$8.createDependencyMap)(e).dependencies}cn.getDependentMap=M8});var wa=P(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.nameAtVersion=void 0;function j8(e,t){return`${e}@${t}`}xl.nameAtVersion=j8});var iR=P(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.parsePnpmLock=void 0;var B8=wa();function q8(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,B8.nameAtVersion)(s,o)]={version:o,dependencies:n.dependencies}}return{object:t,type:"success"}}Ol.parsePnpmLock=q8});var sR=P(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.parseNpmLock=void 0;var G8=wa();function U8(e){var t;return{object:Object.fromEntries(Object.entries((t=e.dependencies)!==null&&t!==void 0?t:{}).map(([n,i])=>[(0,G8.nameAtVersion)(n,i.version),i])),type:"success"}}_l.parseNpmLock=U8});var aR=P((uZ,oR)=>{oR.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(c,u){function f(l,h){try{var d=a[l](h),p=d.value}catch(g){u(g);return}if(d.done)c(p);else return i.default.resolve(p).then(function(g){f("next",g)},function(g){f("throw",g)})}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(u,f){super(u),this.code=f}}t.MessageError=n;class i extends n{constructor(u,f,l){super(u,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(u,f){super(u),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*(ie,Q,J,te){let xe=(()=>{var Te=(0,(n||i()).default)(function*(ft){let Me=ft.src,Oe=ft.dest,Xs=ft.type,qt=ft.onFresh||Qt,Ye=ft.onDone||Qt;if(Ie.has(Oe.toLowerCase())?te.verbose(`The case-insensitive file ${Oe} shouldn't be copied twice in one bulk copy`):Ie.add(Oe.toLowerCase()),Xs==="symlink"){yield K((v||E()).default.dirname(Oe)),qt(),bt.symlink.push({dest:Oe,linkname:Me}),Ye();return}if(Q.ignoreBasenames.indexOf((v||E()).default.basename(Me))>=0)return;let Ve=yield B(Me),Ur;Ve.isDirectory()&&(Ur=yield ve(Me));let It;try{It=yield B(Oe)}catch(Ot){if(Ot.code!=="ENOENT")throw Ot}if(It){let Ot=Ve.isSymbolicLink()&&It.isSymbolicLink(),Wr=Ve.isDirectory()&&It.isDirectory(),Ar=Ve.isFile()&&It.isFile();if(Ar&&$e.has(Oe)){Ye(),te.verbose(te.lang("verboseFileSkipArtifact",Me));return}if(Ar&&Ve.size===It.size&&(0,(X||he()).fileDatesEqual)(Ve.mtime,It.mtime)){Ye(),te.verbose(te.lang("verboseFileSkip",Me,Oe,Ve.size,+Ve.mtime));return}if(Ot){let ht=yield Y(Me);if(ht===(yield Y(Oe))){Ye(),te.verbose(te.lang("verboseFileSkipSymlink",Me,Oe,ht));return}}if(Wr){let ht=yield ve(Oe);ki(Ur,"src files not initialised");for(var yr=ht,dn=Array.isArray(yr),Gt=0,yr=dn?yr:yr[Symbol.iterator]();;){var $i;if(dn){if(Gt>=yr.length)break;$i=yr[Gt++]}else{if(Gt=yr.next(),Gt.done)break;$i=Gt.value}let gn=$i;if(Ur.indexOf(gn)<0){let Hr=(v||E()).default.join(Oe,gn);if(J.add(Hr),(yield B(Hr)).isDirectory())for(var vr=yield ve(Hr),pn=Array.isArray(vr),Ut=0,vr=pn?vr:vr[Symbol.iterator]();;){var Mi;if(pn){if(Ut>=vr.length)break;Mi=vr[Ut++]}else{if(Ut=vr.next(),Ut.done)break;Mi=Ut.value}let Jl=Mi;J.add((v||E()).default.join(Hr,Jl))}}}}}if(It&&It.isSymbolicLink()&&(yield(0,(X||he()).unlink)(Oe),It=null),Ve.isSymbolicLink()){qt();let Ot=yield Y(Me);bt.symlink.push({dest:Oe,linkname:Ot}),Ye()}else if(Ve.isDirectory()){It||(te.verbose(te.lang("verboseFileFolder",Oe)),yield K(Oe));let Ot=Oe.split((v||E()).default.sep);for(;Ot.length;)Ie.add(Ot.join((v||E()).default.sep).toLowerCase()),Ot.pop();ki(Ur,"src files not initialised");let Wr=Ur.length;Wr||Ye();for(var Er=Ur,mn=Array.isArray(Er),Wt=0,Er=mn?Er:Er[Symbol.iterator]();;){var xt;if(mn){if(Wt>=Er.length)break;xt=Er[Wt++]}else{if(Wt=Er.next(),Wt.done)break;xt=Wt.value}let Ar=xt;ie.push({dest:(v||E()).default.join(Oe,Ar),onFresh:qt,onDone:function(ht){function gn(){return ht.apply(this,arguments)}return gn.toString=function(){return ht.toString()},gn}(function(){--Wr===0&&Ye()}),src:(v||E()).default.join(Me,Ar)})}}else if(Ve.isFile())qt(),bt.file.push({src:Me,dest:Oe,atime:Ve.atime,mtime:Ve.mtime,mode:Ve.mode}),Ye();else throw new Error(`unsure how to copy this: ${Me}`)});return function(Me){return Te.apply(this,arguments)}})(),$e=new Set(Q.artifactFiles||[]),Ie=new Set;for(var Re=ie,ke=Array.isArray(Re),Pe=0,Re=ke?Re:Re[Symbol.iterator]();;){var Bt;if(ke){if(Pe>=Re.length)break;Bt=Re[Pe++]}else{if(Pe=Re.next(),Pe.done)break;Bt=Pe.value}let Te=Bt,ft=Te.onDone;Te.onDone=function(){Q.onProgress(Te.dest),ft&&ft()}}Q.onStart(ie.length);let bt={file:[],symlink:[],link:[]};for(;ie.length;){let Te=ie.splice(0,Ne);yield Promise.all(Te.map(xe))}for(var St=$e,hn=Array.isArray(St),mr=0,St=hn?St:St[Symbol.iterator]();;){var Jn;if(hn){if(mr>=St.length)break;Jn=St[mr++]}else{if(mr=St.next(),mr.done)break;Jn=mr.value}let Te=Jn;J.has(Te)&&(te.verbose(te.lang("verboseFilePhantomExtraneous",Te)),J.delete(Te))}for(var Ct=J,Ks=Array.isArray(Ct),gr=0,Ct=Ks?Ct:Ct[Symbol.iterator]();;){var Qn;if(Ks){if(gr>=Ct.length)break;Qn=Ct[gr++]}else{if(gr=Ct.next(),gr.done)break;Qn=gr.value}let Te=Qn;Ie.has(Te.toLowerCase())&&J.delete(Te)}return bt});return function(Q,J,te,xe){return me.apply(this,arguments)}})(),o=(()=>{var me=(0,(n||i()).default)(function*(ie,Q,J,te){let xe=(()=>{var Te=(0,(n||i()).default)(function*(ft){let Me=ft.src,Oe=ft.dest,Xs=ft.onFresh||Qt,qt=ft.onDone||Qt;if(Ie.has(Oe.toLowerCase())){qt();return}if(Ie.add(Oe.toLowerCase()),Q.ignoreBasenames.indexOf((v||E()).default.basename(Me))>=0)return;let Ye=yield B(Me),Ve;Ye.isDirectory()&&(Ve=yield ve(Me));let Ur=yield z(Oe);if(Ur){let xt=yield B(Oe),Ot=Ye.isSymbolicLink()&&xt.isSymbolicLink(),Wr=Ye.isDirectory()&&xt.isDirectory(),Ar=Ye.isFile()&&xt.isFile();if(Ye.mode!==xt.mode)try{yield k(Oe,Ye.mode)}catch(ht){te.verbose(ht)}if(Ar&&$e.has(Oe)){qt(),te.verbose(te.lang("verboseFileSkipArtifact",Me));return}if(Ar&&Ye.ino!==null&&Ye.ino===xt.ino){qt(),te.verbose(te.lang("verboseFileSkip",Me,Oe,Ye.ino));return}if(Ot){let ht=yield Y(Me);if(ht===(yield Y(Oe))){qt(),te.verbose(te.lang("verboseFileSkipSymlink",Me,Oe,ht));return}}if(Wr){let ht=yield ve(Oe);ki(Ve,"src files not initialised");for(var Gt=ht,It=Array.isArray(Gt),dn=0,Gt=It?Gt:Gt[Symbol.iterator]();;){var yr;if(It){if(dn>=Gt.length)break;yr=Gt[dn++]}else{if(dn=Gt.next(),dn.done)break;yr=dn.value}let gn=yr;if(Ve.indexOf(gn)<0){let Hr=(v||E()).default.join(Oe,gn);if(J.add(Hr),(yield B(Hr)).isDirectory())for(var Ut=yield ve(Hr),$i=Array.isArray(Ut),pn=0,Ut=$i?Ut:Ut[Symbol.iterator]();;){var vr;if($i){if(pn>=Ut.length)break;vr=Ut[pn++]}else{if(pn=Ut.next(),pn.done)break;vr=pn.value}let Jl=vr;J.add((v||E()).default.join(Hr,Jl))}}}}}if(Ye.isSymbolicLink()){Xs();let xt=yield Y(Me);bt.symlink.push({dest:Oe,linkname:xt}),qt()}else if(Ye.isDirectory()){te.verbose(te.lang("verboseFileFolder",Oe)),yield K(Oe);let xt=Oe.split((v||E()).default.sep);for(;xt.length;)Ie.add(xt.join((v||E()).default.sep).toLowerCase()),xt.pop();ki(Ve,"src files not initialised");let Ot=Ve.length;Ot||qt();for(var Wt=Ve,Mi=Array.isArray(Wt),mn=0,Wt=Mi?Wt:Wt[Symbol.iterator]();;){var Er;if(Mi){if(mn>=Wt.length)break;Er=Wt[mn++]}else{if(mn=Wt.next(),mn.done)break;Er=mn.value}let Wr=Er;ie.push({onFresh:Xs,src:(v||E()).default.join(Me,Wr),dest:(v||E()).default.join(Oe,Wr),onDone:function(Ar){function ht(){return Ar.apply(this,arguments)}return ht.toString=function(){return Ar.toString()},ht}(function(){--Ot===0&&qt()})})}}else if(Ye.isFile())Xs(),bt.link.push({src:Me,dest:Oe,removeDest:Ur}),qt();else throw new Error(`unsure how to copy this: ${Me}`)});return function(Me){return Te.apply(this,arguments)}})(),$e=new Set(Q.artifactFiles||[]),Ie=new Set;for(var Re=ie,ke=Array.isArray(Re),Pe=0,Re=ke?Re:Re[Symbol.iterator]();;){var Bt;if(ke){if(Pe>=Re.length)break;Bt=Re[Pe++]}else{if(Pe=Re.next(),Pe.done)break;Bt=Pe.value}let Te=Bt,ft=Te.onDone||Qt;Te.onDone=function(){Q.onProgress(Te.dest),ft()}}Q.onStart(ie.length);let bt={file:[],symlink:[],link:[]};for(;ie.length;){let Te=ie.splice(0,Ne);yield Promise.all(Te.map(xe))}for(var St=$e,hn=Array.isArray(St),mr=0,St=hn?St:St[Symbol.iterator]();;){var Jn;if(hn){if(mr>=St.length)break;Jn=St[mr++]}else{if(mr=St.next(),mr.done)break;Jn=mr.value}let Te=Jn;J.has(Te)&&(te.verbose(te.lang("verboseFilePhantomExtraneous",Te)),J.delete(Te))}for(var Ct=J,Ks=Array.isArray(Ct),gr=0,Ct=Ks?Ct:Ct[Symbol.iterator]();;){var Qn;if(Ks){if(gr>=Ct.length)break;Qn=Ct[gr++]}else{if(gr=Ct.next(),gr.done)break;Qn=gr.value}let Te=Qn;Ie.has(Te.toLowerCase())&&J.delete(Te)}return bt});return function(Q,J,te,xe){return me.apply(this,arguments)}})(),a=t.copyBulk=(()=>{var me=(0,(n||i()).default)(function*(ie,Q,J){let te={onStart:J&&J.onStart||Qt,onProgress:J&&J.onProgress||Qt,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 $e=xe.file,Ie=new Map;yield(b||T()).queue($e,(()=>{var Pe=(0,(n||i()).default)(function*(Re){let Bt;for(;Bt=Ie.get(Re.dest);)yield Bt;Q.verbose(Q.lang("verboseFileCopy",Re.src,Re.dest));let bt=(0,(X||he()).copyFile)(Re,function(){return Ie.delete(Re.dest)});return Ie.set(Re.dest,bt),te.onProgress(Re.dest),bt});return function(Re){return Pe.apply(this,arguments)}})(),Ne);let ke=xe.symlink;yield(b||T()).queue(ke,function(Pe){let Re=(v||E()).default.resolve((v||E()).default.dirname(Pe.dest),Pe.linkname);return Q.verbose(Q.lang("verboseFileSymlink",Pe.dest,Re)),d(Re,Pe.dest)})});return function(Q,J,te){return me.apply(this,arguments)}})(),c=t.hardlinkBulk=(()=>{var me=(0,(n||i()).default)(function*(ie,Q,J){let te={onStart:J&&J.onStart||Qt,onProgress:J&&J.onProgress||Qt,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 $e=xe.link;yield(b||T()).queue($e,(()=>{var ke=(0,(n||i()).default)(function*(Pe){Q.verbose(Q.lang("verboseFileLink",Pe.src,Pe.dest)),Pe.removeDest&&(yield(0,(X||he()).unlink)(Pe.dest)),yield ne(Pe.src,Pe.dest)});return function(Pe){return ke.apply(this,arguments)}})(),Ne);let Ie=xe.symlink;yield(b||T()).queue(Ie,function(ke){let Pe=(v||E()).default.resolve((v||E()).default.dirname(ke.dest),ke.linkname);return Q.verbose(Q.lang("verboseFileSymlink",ke.dest,Pe)),d(Pe,ke.dest)})});return function(Q,J,te){return me.apply(this,arguments)}})(),u=t.readFileAny=(()=>{var me=(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 $e=xe;if(yield z($e))return Xl($e)}return null});return function(Q){return me.apply(this,arguments)}})(),f=t.readJson=(()=>{var me=(0,(n||i()).default)(function*(ie){return(yield l(ie)).object});return function(Q){return me.apply(this,arguments)}})(),l=t.readJsonAndFile=(()=>{var me=(0,(n||i()).default)(function*(ie){let Q=yield Xl(ie);try{return{object:(0,(W||V()).default)(JSON.parse(Vs(Q))),content:Q}}catch(J){throw J.message=`${ie}: ${J.message}`,J}});return function(Q){return me.apply(this,arguments)}})(),h=t.find=(()=>{var me=(0,(n||i()).default)(function*(ie,Q){let J=Q.split((v||E()).default.sep);for(;J.length;){let te=J.concat(ie).join((v||E()).default.sep);if(yield z(te))return te;J.pop()}return!1});return function(Q,J){return me.apply(this,arguments)}})(),d=t.symlink=(()=>{var me=(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||he()).unlink)(Q),process.platform==="win32")yield Qe(ie,Q,"junction");else{let J;try{J=(v||E()).default.relative((D||L()).default.realpathSync((v||E()).default.dirname(Q)),(D||L()).default.realpathSync(ie))}catch(te){if(te.code!=="ENOENT")throw te;J=(v||E()).default.relative((v||E()).default.dirname(Q),ie)}yield Qe(J||".",Q)}});return function(Q,J){return me.apply(this,arguments)}})(),p=t.walk=(()=>{var me=(0,(n||i()).default)(function*(ie,Q,J=new Set){let te=[],xe=yield ve(ie);J.size&&(xe=xe.filter(function(Re){return!J.has(Re)}));for(var ke=xe,$e=Array.isArray(ke),Ie=0,ke=$e?ke:ke[Symbol.iterator]();;){var Pe;if($e){if(Ie>=ke.length)break;Pe=ke[Ie++]}else{if(Ie=ke.next(),Ie.done)break;Pe=Ie.value}let Re=Pe,Bt=Q?(v||E()).default.join(Q,Re):Re,bt=(v||E()).default.join(ie,Re),hn=yield B(bt);te.push({relative:Bt,basename:Re,absolute:bt,mtime:+hn.mtime}),hn.isDirectory()&&(te=te.concat(yield p(bt,Bt,J)))}return te});return function(Q,J){return me.apply(this,arguments)}})(),g=t.getFileSizeOnDisk=(()=>{var me=(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 me.apply(this,arguments)}})(),y=(()=>{var me=(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]===KF)return`\r
|
|
67
|
+
`;if(Q[J]===XF)return`
|
|
68
|
+
`}});return function(Q){return me.apply(this,arguments)}})(),x=t.writeFilePreservingEol=(()=>{var me=(0,(n||i()).default)(function*(ie,Q){let J=(yield y(ie))||(O||m()).default.EOL;J!==`
|
|
69
|
+
`&&(Q=Q.replace(/\n/g,J)),yield re(ie,Q)});return function(Q,J){return me.apply(this,arguments)}})(),S=t.hardlinksWork=(()=>{var me=(0,(n||i()).default)(function*(ie){let Q="test-file"+Math.random(),J=(v||E()).default.join(ie,Q),te=(v||E()).default.join(ie,Q+"-link");try{yield re(J,"test"),yield ne(J,te)}catch{return!1}finally{yield(0,(X||he()).unlink)(J),yield(0,(X||he()).unlink)(te)}return!0});return function(Q){return me.apply(this,arguments)}})(),I=t.makeTempDir=(()=>{var me=(0,(n||i()).default)(function*(ie){let Q=(v||E()).default.join((O||m()).default.tmpdir(),`yarn-${ie||""}-${Date.now()}-${Math.random()}`);return yield(0,(X||he()).unlink)(Q),yield K(Q),Q});return function(Q){return me.apply(this,arguments)}})(),R=t.readFirstAvailableStream=(()=>{var me=(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 $e=xe;try{let Ie=yield U($e,"r");return(D||L()).default.createReadStream($e,{fd:Ie})}catch{}}return null});return function(Q){return me.apply(this,arguments)}})(),w=t.getFirstSuitableFolder=(()=>{var me=(0,(n||i()).default)(function*(ie,Q=q.W_OK|q.X_OK){let J={skipped:[],folder:null};for(var $e=ie,te=Array.isArray($e),xe=0,$e=te?$e:$e[Symbol.iterator]();;){var Ie;if(te){if(xe>=$e.length)break;Ie=$e[xe++]}else{if(xe=$e.next(),xe.done)break;Ie=xe.value}let ke=Ie;try{return yield K(ke),yield k(ke,Q),J.folder=ke,J}catch(Pe){J.skipped.push({error:Pe,folder:ke})}}return J});return function(Q){return me.apply(this,arguments)}})();t.copy=_a,t.readFile=Xl,t.readFileRaw=VF,t.normalizeOS=r0;var D;function L(){return D=H(r(3))}var _;function $(){return _=H(r(75))}var O;function m(){return O=H(r(36))}var v;function E(){return v=H(r(0))}var C;function A(){return C=H(r(84))}var b;function T(){return b=G(r(40))}var N;function M(){return N=r(40)}var W;function V(){return W=H(r(20))}var X;function he(){return X=r(164)}function G(me){if(me&&me.__esModule)return me;var ie={};if(me!=null)for(var Q in me)Object.prototype.hasOwnProperty.call(me,Q)&&(ie[Q]=me[Q]);return ie.default=me,ie}function H(me){return me&&me.__esModule?me:{default:me}}let q=t.constants=typeof(D||L()).default.constants<"u"?(D||L()).default.constants:{R_OK:(D||L()).default.R_OK,W_OK:(D||L()).default.W_OK,X_OK:(D||L()).default.X_OK},Z=t.lockQueue=new(C||A()).default("fs lock"),ee=t.readFileBuffer=(0,(N||M()).promisify)((D||L()).default.readFile),U=t.open=(0,(N||M()).promisify)((D||L()).default.open),re=t.writeFile=(0,(N||M()).promisify)((D||L()).default.writeFile),Y=t.readlink=(0,(N||M()).promisify)((D||L()).default.readlink),ue=t.realpath=(0,(N||M()).promisify)((D||L()).default.realpath),ve=t.readdir=(0,(N||M()).promisify)((D||L()).default.readdir),Fe=t.rename=(0,(N||M()).promisify)((D||L()).default.rename),k=t.access=(0,(N||M()).promisify)((D||L()).default.access),j=t.stat=(0,(N||M()).promisify)((D||L()).default.stat),K=t.mkdirp=(0,(N||M()).promisify)(r(116)),z=t.exists=(0,(N||M()).promisify)((D||L()).default.exists,!0),B=t.lstat=(0,(N||M()).promisify)((D||L()).default.lstat),se=t.chmod=(0,(N||M()).promisify)((D||L()).default.chmod),ne=t.link=(0,(N||M()).promisify)((D||L()).default.link),de=t.glob=(0,(N||M()).promisify)((_||$()).default);t.unlink=(X||he()).unlink;let Ne=(D||L()).default.copyFile?128:4,Qe=(0,(N||M()).promisify)((D||L()).default.symlink),ki=r(7),Vs=r(122),Qt=()=>{};function _a(me,ie,Q){return a([{src:me,dest:ie}],Q)}function Ni(me,ie){return new Promise((Q,J)=>{(D||L()).default.readFile(me,ie,function(te,xe){te?J(te):Q(xe)})})}function Xl(me){return Ni(me,"utf8").then(r0)}function VF(me){return Ni(me,"binary")}function r0(me){return me.replace(/\r\n/g,`
|
|
70
|
+
`)}let KF=13,XF=10},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathKey=k;let n=r(36),i=r(0),s=r(45).default;var o=r(171);let a=o.getCacheDir,c=o.getConfigDir,u=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",g=t.YARN_REGISTRY="https://registry.yarnpkg.com",y=t.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",x=t.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",S=t.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",I=t.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",R=t.CACHE_VERSION=2,w=t.LOCKFILE_VERSION=1,D=t.NETWORK_CONCURRENCY=8,L=t.NETWORK_TIMEOUT=30*1e3,_=t.CHILD_CONCURRENCY=5,$=t.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function O(){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 m=t.PREFERRED_MODULE_CACHE_DIRECTORIES=O(),v=t.CONFIG_DIRECTORY=c(),E=t.DATA_DIRECTORY=u(),C=t.LINK_REGISTRY_DIRECTORY=i.join(E,"link"),A=t.GLOBAL_MODULE_DIRECTORY=i.join(E,"global"),b=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",W=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"),he=t.META_FOLDER=".yarn-meta",G=t.INTEGRITY_FILENAME=".yarn-integrity",H=t.LOCKFILE_FILENAME="yarn.lock",q=t.METADATA_FILENAME=".yarn-metadata.json",Z=t.TARBALL_FILENAME=".yarn-tarball.tgz",ee=t.CLEAN_FILENAME=".yarnclean",U=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",Fe=t.ENV_PATH_KEY=k(process.platform,process.env);function k(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,c,u,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,c,u,f,l,h],g=0;d=new Error(o.replace(/%s/g,function(){return p[g++]})),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=c,t.hyphenate=u,t.camelCase=f,t.compareSortedArrays=l,t.sleep=h;let n=r(176);function i(d,p){let g=Math.min(d.length,p.length);for(let y=0;y<g;y++){let x=d.charCodeAt(y),S=p.charCodeAt(y);if(x!==S)return x-S}return d.length-p.length}function s(d){let p=[];if(d)for(let g in d)p.push([g,d[g]]);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 c(d,p){return d.endsWith(p)?d:d+p}function u(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 g=0,y=d.length;g<y;g++)if(d[g]!==p[g])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(c){return n[c]||(n[c]=o&&s[c]||(o?s:i)("Symbol."+c))};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=R(r(1))}var s;function o(){return s=r(81)}Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return R(s||o()).default}});var a;function c(){return a=r(150)}Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return R(a||c()).default}}),t.implodeEntry=v,t.explodeEntry=E;var u;function f(){return u=r(12)}var l;function h(){return l=r(29)}var d;function p(){return d=R(r(81))}var g;function y(){return g=r(6)}var x;function S(){return x=I(r(5))}function I(A){if(A&&A.__esModule)return A;var b={};if(A!=null)for(var T in A)Object.prototype.hasOwnProperty.call(A,T)&&(b[T]=A[T]);return b.default=A,b}function R(A){return A&&A.__esModule?A:{default:A}}let w=r(7),D=r(0),L=r(55);function _(A){return(0,(l||h()).normalizePattern)(A).name}function $(A){return A&&Object.keys(A).length?A:void 0}function O(A){return A.resolved||(A.reference&&A.hash?`${A.reference}#${A.hash}`:null)}function m(A){return A.toString().split(" ").sort().join(" ")}function v(A,b){let T=_(A),N=b.integrity?m(b.integrity):"",M={name:T===b.name?void 0:b.name,version:b.version,uid:b.uid===b.version?void 0:b.uid,resolved:b.resolved,registry:b.registry==="npm"?void 0:b.registry,dependencies:$(b.dependencies),optionalDependencies:$(b.optionalDependencies),permissions:$(b.permissions),prebuiltVariants:$(b.prebuiltVariants)};return N&&(M.integrity=N),M}function E(A,b){b.optionalDependencies=b.optionalDependencies||{},b.dependencies=b.dependencies||{},b.uid=b.uid||b.version,b.permissions=b.permissions||{},b.registry=b.registry||"npm",b.name=b.name||_(A);let T=b.integrity;return T&&T.isIntegrity&&(b.integrity=L.parse(T)),b}class C{constructor({cache:b,source:T,parseResultType:N}={}){this.source=T||"",this.cache=b,this.parseResultType=N}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(let b in this.cache)if(!/^.*@(file:|http)/.test(b)&&this.cache[b]&&!this.cache[b].integrity)return!0;return!1}static fromDirectory(b,T){return(0,(n||i()).default)(function*(){let N=D.join(b,(g||y()).LOCKFILE_FILENAME),M,W="",V;return(yield(x||S()).exists(N))?(W=yield(x||S()).readFile(N),V=(0,(d||p()).default)(W,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:W,parseResultType:V&&V.type})})()}getLocked(b){let T=this.cache;if(!T)return;let N=b in T&&T[b];if(typeof N=="string")return this.getLocked(N);if(N)return E(b,N),N}removePattern(b){let T=this.cache;T&&delete T[b]}getLockfile(b){let T={},N=new Map,M=Object.keys(b).sort((u||f()).sortAlpha);for(var X=M,W=Array.isArray(X),V=0,X=W?X:X[Symbol.iterator]();;){var he;if(W){if(V>=X.length)break;he=X[V++]}else{if(V=X.next(),V.done)break;he=V.value}let G=he,H=b[G],q=H._remote,Z=H._reference;w(Z,"Package is missing a reference"),w(q,"Package is missing a remote");let ee=O(q),U=ee&&N.get(ee);if(U){T[G]=U,!U.name&&_(G)!==H.name&&(U.name=H.name);continue}let re=v(G,{name:H.name,version:H.version,uid:H._uid,resolved:q.resolved,integrity:q.integrity,registry:q.registry,dependencies:H.dependencies,peerDependencies:H.peerDependencies,optionalDependencies:H.optionalDependencies,permissions:Z.permissions,prebuiltVariants:H.prebuiltVariants});T[G]=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 c;if(s){if(o>=a.length)break;c=a[o++]}else{if(o=a.next(),o.done)break;c=o.value}n(c)}else if((i!==null&&typeof i=="object"||typeof i=="function")&&(Object.setPrototypeOf(i,null),typeof i=="object"))for(let u in i)n(i[u]);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,c=!1;a[0]==="@"&&(c=!0,a=a.slice(1));let u=a.split("@");return u.length>1&&(a=u.shift(),o=u.join("@"),o?s=!0:o="*"),c&&(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,c){for(var u in a)c[u]=a[u]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=o);function o(a,c,u){return i(a,c,u)}s(i,o),o.from=function(a,c,u){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,c,u)},o.alloc=function(a,c,u){if(typeof a!="number")throw new TypeError("Argument must be a number");var f=i(a);return c!==void 0?typeof u=="string"?f.fill(c,u):f.fill(c):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(...c){return new Promise(function(u,f){c.push(function(l,...h){let d=h;h.length<=1&&(d=h[0]),a&&(d=l,l=null),l?f(l):u(d)}),o.apply(null,c)})}}function s(o,a,c=1/0){c=Math.min(c,o.length),o=o.slice();let u=[],f=o.length;return f?new Promise((l,h)=>{for(let p=0;p<c;p++)d();function d(){let p=o.shift();a(p).then(function(y){u.push(y),f--,f===0?l(u):o.length&&d()},h)}}):Promise.resolve(u)}},function(e,t,r){var n=r(11),i=r(23),s=r(48),o=r(31),a=r(49),c="prototype",u=function(f,l,h){var d=f&u.F,p=f&u.G,g=f&u.S,y=f&u.P,x=f&u.B,S=f&u.W,I=p?i:i[l]||(i[l]={}),R=I[c],w=p?n:g?n[l]:(n[l]||{})[c],D,L,_;p&&(h=l);for(D in h)L=!d&&w&&w[D]!==void 0,!(L&&a(I,D))&&(_=L?w[D]:h[D],I[D]=p&&typeof w[D]!="function"?h[D]:x&&L?s(_,n):S&&w[D]==_?function($){var O=function(m,v,E){if(this instanceof $){switch(arguments.length){case 0:return new $;case 1:return new $(m);case 2:return new $(m,v)}return new $(m,v,E)}return $.apply(this,arguments)};return O[c]=$[c],O}(_):y&&typeof _=="function"?s(Function.call,_):_,y&&((I.virtual||(I.virtual={}))[D]=_,f&u.R&&R&&!R[D]&&o(R,D,_)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},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(u){return u&&u.__esModule?u:{default:u}}let o=r(0),a=t.home=r(36).homedir(),c=(n||i()).default?o.resolve("/usr/local/share"):a;t.default=c},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,c){return i.call(s,a,c)};case 3:return function(a,c,u){return i.call(s,a,c,u)}}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(c,u,f){if(n(c),u=s(u,!0),n(f),i)try{return o(c,u,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(c[u]=f.value),c}},,,,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,c=/^([^-]+)-([^?]+)([?\S*]*)$/,u=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,f=/^[\x21-\x7E]+$/;class l{get isHash(){return!0}constructor(m,v){let E=!!(v&&v.strict);this.source=m.trim();let C=this.source.match(E?u:c);if(!C||E&&!o.some(b=>b===C[1]))return;this.algorithm=C[1],this.digest=C[2];let A=C[3];this.options=A?A.slice(1).split("?"):[]}hexDigest(){return this.digest&&n.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(m){if(m&&m.strict&&!(o.some(E=>E===this.algorithm)&&this.digest.match(a)&&(this.options||[]).every(E=>E.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(m){m=m||{};let v=m.sep||" ";return m.strict&&(v=v.replace(/\S+/g," ")),Object.keys(this).map(E=>this[E].map(C=>l.prototype.toString.call(C,m)).filter(C=>C.length).join(v)).filter(E=>E.length).join(v)}concat(m,v){let E=typeof m=="string"?m:g(m,v);return d(`${this.toString(v)} ${E}`,v)}hexDigest(){return d(this,{single:!0}).hexDigest()}match(m,v){let E=d(m,v),C=E.pickAlgorithm(v);return this[C]&&E[C]&&this[C].find(A=>E[C].find(b=>A.digest===b.digest))||!1}pickAlgorithm(m){let v=m&&m.pickAlgorithm||$,E=Object.keys(this);if(!E.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return E.reduce((C,A)=>v(C,A)||C)}}e.exports.parse=d;function d(O,m){if(m=m||{},typeof O=="string")return p(O,m);if(O.algorithm&&O.digest){let v=new h;return v[O.algorithm]=[O],p(g(v,m),m)}else return p(g(O,m),m)}function p(O,m){return m.single?new l(O,m):O.trim().split(/\s+/).reduce((v,E)=>{let C=new l(E,m);if(C.algorithm&&C.digest){let A=C.algorithm;v[A]||(v[A]=[]),v[A].push(C)}return v},new h)}e.exports.stringify=g;function g(O,m){return O.algorithm&&O.digest?l.prototype.toString.call(O,m):typeof O=="string"?g(d(O,m),m):h.prototype.toString.call(O,m)}e.exports.fromHex=y;function y(O,m,v){let E=v&&v.options&&v.options.length?`?${v.options.join("?")}`:"";return d(`${m}-${n.from(O,"hex").toString("base64")}${E}`,v)}e.exports.fromData=x;function x(O,m){m=m||{};let v=m.algorithms||["sha512"],E=m.options&&m.options.length?`?${m.options.join("?")}`:"";return v.reduce((C,A)=>{let b=i.createHash(A).update(O).digest("base64"),T=new l(`${A}-${b}${E}`,m);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(O,m){m=m||{};let v=m.Promise||Promise,E=w(m);return new v((C,A)=>{O.pipe(E),O.on("error",A),E.on("error",A);let b;E.on("integrity",T=>{b=T}),E.on("end",()=>C(b)),E.on("data",()=>{})})}e.exports.checkData=I;function I(O,m,v){if(v=v||{},m=d(m,v),!Object.keys(m).length){if(v.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let E=m.pickAlgorithm(v),C=i.createHash(E).update(O).digest("base64"),A=d({algorithm:E,digest:C}),b=A.match(m,v);if(b||!v.error)return b;if(typeof v.size=="number"&&O.length!==v.size){let T=new Error(`data size mismatch when checking ${m}.
|
|
71
|
+
Wanted: ${v.size}
|
|
72
|
+
Found: ${O.length}`);throw T.code="EBADSIZE",T.found=O.length,T.expected=v.size,T.sri=m,T}else{let T=new Error(`Integrity checksum failed when using ${E}: Wanted ${m}, but got ${A}. (${O.length} bytes)`);throw T.code="EINTEGRITY",T.found=A,T.expected=m,T.algorithm=E,T.sri=m,T}}e.exports.checkStream=R;function R(O,m,v){v=v||{};let E=v.Promise||Promise,C=w(Object.assign({},v,{integrity:m}));return new E((A,b)=>{O.pipe(C),O.on("error",b),C.on("error",b);let T;C.on("verified",N=>{T=N}),C.on("end",()=>A(T)),C.on("data",()=>{})})}e.exports.integrityStream=w;function w(O){O=O||{};let m=O.integrity&&d(O.integrity,O),v=m&&Object.keys(m).length,E=v&&m.pickAlgorithm(O),C=v&&m[E],A=Array.from(new Set((O.algorithms||["sha512"]).concat(E?[E]:[]))),b=A.map(i.createHash),T=0,N=new s({transform(M,W,V){T+=M.length,b.forEach(X=>X.update(M,W)),V(null,M,W)}}).on("end",()=>{let M=O.options&&O.options.length?`?${O.options.join("?")}`:"",W=d(b.map((X,he)=>`${A[he]}-${X.digest("base64")}${M}`).join(" "),O),V=v&&W.match(m,O);if(typeof O.size=="number"&&T!==O.size){let X=new Error(`stream size mismatch when checking ${m}.
|
|
73
|
+
Wanted: ${O.size}
|
|
74
|
+
Found: ${T}`);X.code="EBADSIZE",X.found=T,X.expected=O.size,X.sri=m,N.emit("error",X)}else if(O.integrity&&!V){let X=new Error(`${m} integrity checksum failed when using ${E}: wanted ${C} but got ${W}. (${T} bytes)`);X.code="EINTEGRITY",X.found=W,X.expected=C,X.algorithm=E,X.sri=m,N.emit("error",X)}else N.emit("size",T),N.emit("integrity",W),V&&N.emit("verified",V)});return N}e.exports.create=D;function D(O){O=O||{};let m=O.algorithms||["sha512"],v=O.options&&O.options.length?`?${O.options.join("?")}`:"",E=m.map(i.createHash);return{update:function(C,A){return E.forEach(b=>b.update(C,A)),this},digest:function(C){return m.reduce((b,T)=>{let N=E.shift().digest("base64"),M=new l(`${T}-${N}${v}`,O);if(M.algorithm&&M.digest){let W=M.algorithm;b[W]||(b[W]=[]),b[W].push(M)}return b},new h)}}}let L=new Set(i.getHashes()),_=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(O=>L.has(O));function $(O,m){return _.indexOf(O.toLowerCase())>=_.indexOf(m.toLowerCase())?O:m}},,,,,function(e,t,r){e.exports=y,y.Minimatch=x;var n={sep:"/"};try{n=r(0)}catch{}var i=y.GLOBSTAR=x.GLOBSTAR={},s=r(175),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c=a+"*?",u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",f="(?:(?!(?:\\/|^)\\.).)*?",l=h("().*{}+?[]^$\\!");function h(m){return m.split("").reduce(function(v,E){return v[E]=!0,v},{})}var d=/\/+/;y.filter=p;function p(m,v){return v=v||{},function(E,C,A){return y(E,m,v)}}function g(m,v){m=m||{},v=v||{};var E={};return Object.keys(v).forEach(function(C){E[C]=v[C]}),Object.keys(m).forEach(function(C){E[C]=m[C]}),E}y.defaults=function(m){if(!m||!Object.keys(m).length)return y;var v=y,E=function(A,b,T){return v.minimatch(A,b,g(m,T))};return E.Minimatch=function(A,b){return new v.Minimatch(A,g(m,b))},E},x.defaults=function(m){return!m||!Object.keys(m).length?x:y.defaults(m).Minimatch};function y(m,v,E){if(typeof v!="string")throw new TypeError("glob pattern string required");return E||(E={}),!E.nocomment&&v.charAt(0)==="#"?!1:v.trim()===""?m==="":new x(v,E).match(m)}function x(m,v){if(!(this instanceof x))return new x(m,v);if(typeof m!="string")throw new TypeError("glob pattern string required");v||(v={}),m=m.trim(),n.sep!=="/"&&(m=m.split(n.sep).join("/")),this.options=v,this.set=[],this.pattern=m,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}x.prototype.debug=function(){},x.prototype.make=S;function S(){if(!this._made){var m=this.pattern,v=this.options;if(!v.nocomment&&m.charAt(0)==="#"){this.comment=!0;return}if(!m){this.empty=!0;return}this.parseNegate();var E=this.globSet=this.braceExpand();v.debug&&(this.debug=console.error),this.debug(this.pattern,E),E=this.globParts=E.map(function(C){return C.split(d)}),this.debug(this.pattern,E),E=E.map(function(C,A,b){return C.map(this.parse,this)},this),this.debug(this.pattern,E),E=E.filter(function(C){return C.indexOf(!1)===-1}),this.debug(this.pattern,E),this.set=E}}x.prototype.parseNegate=I;function I(){var m=this.pattern,v=!1,E=this.options,C=0;if(!E.nonegate){for(var A=0,b=m.length;A<b&&m.charAt(A)==="!";A++)v=!v,C++;C&&(this.pattern=m.substr(C)),this.negate=v}}y.braceExpand=function(m,v){return R(m,v)},x.prototype.braceExpand=R;function R(m,v){if(v||(this instanceof x?v=this.options:v={}),m=typeof m>"u"?this.pattern:m,typeof m>"u")throw new TypeError("undefined pattern");return v.nobrace||!m.match(/\{.*\}/)?[m]:s(m)}x.prototype.parse=D;var w={};function D(m,v){if(m.length>1024*64)throw new TypeError("pattern is too long");var E=this.options;if(!E.noglobstar&&m==="**")return i;if(m==="")return"";var C="",A=!!E.nocase,b=!1,T=[],N=[],M,W=!1,V=-1,X=-1,he=m.charAt(0)==="."?"":E.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",G=this;function H(){if(M){switch(M){case"*":C+=c,A=!0;break;case"?":C+=a,A=!0;break;default:C+="\\"+M;break}G.debug("clearStateChar %j %j",M,C),M=!1}}for(var q=0,Z=m.length,ee;q<Z&&(ee=m.charAt(q));q++){if(this.debug("%s %s %s %j",m,q,C,ee),b&&l[ee]){C+="\\"+ee,b=!1;continue}switch(ee){case"/":return!1;case"\\":H(),b=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",m,q,C,ee),W){this.debug(" in class"),ee==="!"&&q===X+1&&(ee="^"),C+=ee;continue}G.debug("call clearStateChar %j",M),H(),M=ee,E.noext&&H();continue;case"(":if(W){C+="(";continue}if(!M){C+="\\(";continue}T.push({type:M,start:q-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(W||!T.length){C+="\\)";continue}H(),A=!0;var U=T.pop();C+=U.close,U.type==="!"&&N.push(U),U.reEnd=C.length;continue;case"|":if(W||!T.length||b){C+="\\|",b=!1;continue}H(),C+="|";continue;case"[":if(H(),W){C+="\\"+ee;continue}W=!0,X=q,V=C.length,C+=ee;continue;case"]":if(q===X+1||!W){C+="\\"+ee,b=!1;continue}if(W){var re=m.substring(X+1,q);try{RegExp("["+re+"]")}catch{var Y=this.parse(re,w);C=C.substr(0,V)+"\\["+Y[0]+"\\]",A=A||Y[1],W=!1;continue}}A=!0,W=!1,C+=ee;continue;default:H(),b?b=!1:l[ee]&&!(ee==="^"&&W)&&(C+="\\"),C+=ee}}for(W&&(re=m.substr(X+1),Y=this.parse(re,w),C=C.substr(0,V)+"\\["+Y[0],A=A||Y[1]),U=T.pop();U;U=T.pop()){var ue=C.slice(U.reStart+U.open.length);this.debug("setting tail",C,U),ue=ue.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(Qt,_a,Ni){return Ni||(Ni="\\"),_a+_a+Ni+"|"}),this.debug(`tail=%j
|
|
75
|
+
%s`,ue,ue,U,C);var ve=U.type==="*"?c:U.type==="?"?a:"\\"+U.type;A=!0,C=C.slice(0,U.reStart)+ve+"\\("+ue}H(),b&&(C+="\\\\");var Fe=!1;switch(C.charAt(0)){case".":case"[":case"(":Fe=!0}for(var k=N.length-1;k>-1;k--){var j=N[k],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,de=se;for(q=0;q<ne;q++)de=de.replace(/\)[+*?]?/,"");se=de;var Ne="";se===""&&v!==w&&(Ne="$");var Qe=K+z+se+Ne+B;C=Qe}if(C!==""&&A&&(C="(?=.)"+C),Fe&&(C=he+C),v===w)return[C,A];if(!A)return $(m);var ki=E.nocase?"i":"";try{var Vs=new RegExp("^"+C+"$",ki)}catch{return new RegExp("$.")}return Vs._glob=m,Vs._src=C,Vs}y.makeRe=function(m,v){return new x(m,v||{}).makeRe()},x.prototype.makeRe=L;function L(){if(this.regexp||this.regexp===!1)return this.regexp;var m=this.set;if(!m.length)return this.regexp=!1,this.regexp;var v=this.options,E=v.noglobstar?c:v.dot?u:f,C=v.nocase?"i":"",A=m.map(function(b){return b.map(function(T){return T===i?E:typeof T=="string"?O(T):T._src}).join("\\/")}).join("|");A="^(?:"+A+")$",this.negate&&(A="^(?!"+A+").*$");try{this.regexp=new RegExp(A,C)}catch{this.regexp=!1}return this.regexp}y.match=function(m,v,E){E=E||{};var C=new x(v,E);return m=m.filter(function(A){return C.match(A)}),C.options.nonull&&!m.length&&m.push(v),m},x.prototype.match=_;function _(m,v){if(this.debug("match",m,this.pattern),this.comment)return!1;if(this.empty)return m==="";if(m==="/"&&v)return!0;var E=this.options;n.sep!=="/"&&(m=m.split(n.sep).join("/")),m=m.split(d),this.debug(this.pattern,"split",m);var C=this.set;this.debug(this.pattern,"set",C);var A,b;for(b=m.length-1;b>=0&&(A=m[b],!A);b--);for(b=0;b<C.length;b++){var T=C[b],N=m;E.matchBase&&T.length===1&&(N=[A]);var M=this.matchOne(N,T,v);if(M)return E.flipNegate?!0:!this.negate}return E.flipNegate?!1:this.negate}x.prototype.matchOne=function(m,v,E){var C=this.options;this.debug("matchOne",{this:this,file:m,pattern:v}),this.debug("matchOne",m.length,v.length);for(var A=0,b=0,T=m.length,N=v.length;A<T&&b<N;A++,b++){this.debug("matchOne loop");var M=v[b],W=m[A];if(this.debug(v,M,W),M===!1)return!1;if(M===i){this.debug("GLOBSTAR",[v,M,W]);var V=A,X=b+1;if(X===N){for(this.debug("** at the end");A<T;A++)if(m[A]==="."||m[A]===".."||!C.dot&&m[A].charAt(0)===".")return!1;return!0}for(;V<T;){var he=m[V];if(this.debug(`
|
|
76
|
+
globstar while`,m,V,v,X,he),this.matchOne(m.slice(V),v.slice(X),E))return this.debug("globstar found match!",V,T,he),!0;if(he==="."||he===".."||!C.dot&&he.charAt(0)==="."){this.debug("dot detected!",m,V,v,X);break}this.debug("globstar swallow a segment, and continue"),V++}return!!(E&&(this.debug(`
|
|
77
|
+
>>> no match, partial?`,m,V,v,X),V===T))}var G;if(typeof M=="string"?(C.nocase?G=W.toLowerCase()===M.toLowerCase():G=W===M,this.debug("string match",M,W,G)):(G=W.match(M),this.debug("pattern match",M,W,G)),!G)return!1}if(A===T&&b===N)return!0;if(A===T)return E;if(b===N){var H=A===T-1&&m[A]==="";return H}throw new Error("wtf?")};function $(m){return m.replace(/\\(.)/g,"$1")}function O(m){return m.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)},c=o.name||"Function wrapped with `once`";return a.onceError=c+" 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(c,u){if(o!==void 0||a!==void 0)throw TypeError("Bad Promise constructor");o=c,a=u}),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,c){o&&!i(o=c?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),c=r(54).EventEmitter,u=r(0),f=r(22),l=r(76),h=r(218),d=r(115),p=d.alphasort,g=d.alphasorti,y=d.setopts,x=d.ownProp,S=r(223),I=r(2),R=d.childrenIgnored,w=d.isIgnored,D=r(61);function L(v,E,C){if(typeof E=="function"&&(C=E,E={}),E||(E={}),E.sync){if(C)throw new TypeError("callback provided to sync glob");return h(v,E)}return new O(v,E,C)}L.sync=h;var _=L.GlobSync=h.GlobSync;L.glob=L;function $(v,E){if(E===null||typeof E!="object")return v;for(var C=Object.keys(E),A=C.length;A--;)v[C[A]]=E[C[A]];return v}L.hasMagic=function(v,E){var C=$({},E);C.noprocess=!0;var A=new O(v,C),b=A.minimatch.set;if(!v)return!1;if(b.length>1)return!0;for(var T=0;T<b[0].length;T++)if(typeof b[0][T]!="string")return!0;return!1},L.Glob=O,a(O,c);function O(v,E,C){if(typeof E=="function"&&(C=E,E=null),E&&E.sync){if(C)throw new TypeError("callback provided to sync glob");return new _(v,E)}if(!(this instanceof O))return new O(v,E,C);y(this,v,E),this._didRealPath=!1;var A=this.minimatch.set.length;this.matches=new Array(A),typeof C=="function"&&(C=D(C),this.on("error",C),this.on("end",function(W){C(null,W)}));var b=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(A===0)return M();for(var T=!0,N=0;N<A;N++)this._process(this.minimatch.set[N],N,!1,M);T=!1;function M(){--b._processing,b._processing<=0&&(T?process.nextTick(function(){b._finish()}):b._finish())}}O.prototype._finish=function(){if(f(this instanceof O),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();d.finish(this),this.emit("end",this.found)}},O.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var v=this.matches.length;if(v===0)return this._finish();for(var E=this,C=0;C<this.matches.length;C++)this._realpathSet(C,A);function A(){--v===0&&E._finish()}},O.prototype._realpathSet=function(v,E){var C=this.matches[v];if(!C)return E();var A=Object.keys(C),b=this,T=A.length;if(T===0)return E();var N=this.matches[v]=Object.create(null);A.forEach(function(M,W){M=b._makeAbs(M),i.realpath(M,b.realpathCache,function(V,X){V?V.syscall==="stat"?N[M]=!0:b.emit("error",V):N[X]=!0,--T===0&&(b.matches[v]=N,E())})})},O.prototype._mark=function(v){return d.mark(this,v)},O.prototype._makeAbs=function(v){return d.makeAbs(this,v)},O.prototype.abort=function(){this.aborted=!0,this.emit("abort")},O.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},O.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 E=0;E<v.length;E++){var C=v[E];this._emitMatch(C[0],C[1])}}if(this._processQueue.length){var A=this._processQueue.slice(0);this._processQueue.length=0;for(var E=0;E<A.length;E++){var b=A[E];this._processing--,this._process(b[0],b[1],b[2],b[3])}}}},O.prototype._process=function(v,E,C,A){if(f(this instanceof O),f(typeof A=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([v,E,C,A]);return}for(var b=0;typeof v[b]=="string";)b++;var T;switch(b){case v.length:this._processSimple(v.join("/"),E,A);return;case 0:T=null;break;default:T=v.slice(0,b).join("/");break}var N=v.slice(b),M;T===null?M=".":((l(T)||l(v.join("/")))&&(!T||!l(T))&&(T="/"+T),M=T);var W=this._makeAbs(M);if(R(this,M))return A();var V=N[0]===s.GLOBSTAR;V?this._processGlobStar(T,M,W,N,E,C,A):this._processReaddir(T,M,W,N,E,C,A)}},O.prototype._processReaddir=function(v,E,C,A,b,T,N){var M=this;this._readdir(C,T,function(W,V){return M._processReaddir2(v,E,C,A,b,T,V,N)})},O.prototype._processReaddir2=function(v,E,C,A,b,T,N,M){if(!N)return M();for(var W=A[0],V=!!this.minimatch.negate,X=W._glob,he=this.dot||X.charAt(0)===".",G=[],H=0;H<N.length;H++){var q=N[H];if(q.charAt(0)!=="."||he){var Z;V&&!v?Z=!q.match(W):Z=q.match(W),Z&&G.push(q)}}var ee=G.length;if(ee===0)return M();if(A.length===1&&!this.mark&&!this.stat){this.matches[b]||(this.matches[b]=Object.create(null));for(var H=0;H<ee;H++){var q=G[H];v&&(v!=="/"?q=v+"/"+q:q=v+q),q.charAt(0)==="/"&&!this.nomount&&(q=u.join(this.root,q)),this._emitMatch(b,q)}return M()}A.shift();for(var H=0;H<ee;H++){var q=G[H],U;v&&(v!=="/"?q=v+"/"+q:q=v+q),this._process([q].concat(A),b,T,M)}M()},O.prototype._emitMatch=function(v,E){if(!this.aborted&&!w(this,E)){if(this.paused){this._emitQueue.push([v,E]);return}var C=l(E)?E:this._makeAbs(E);if(this.mark&&(E=this._mark(E)),this.absolute&&(E=C),!this.matches[v][E]){if(this.nodir){var A=this.cache[C];if(A==="DIR"||Array.isArray(A))return}this.matches[v][E]=!0;var b=this.statCache[C];b&&this.emit("stat",E,b),this.emit("match",E)}}},O.prototype._readdirInGlobStar=function(v,E){if(this.aborted)return;if(this.follow)return this._readdir(v,!1,E);var C="lstat\0"+v,A=this,b=S(C,T);b&&n.lstat(v,b);function T(N,M){if(N&&N.code==="ENOENT")return E();var W=M&&M.isSymbolicLink();A.symlinks[v]=W,!W&&M&&!M.isDirectory()?(A.cache[v]="FILE",E()):A._readdir(v,!1,E)}},O.prototype._readdir=function(v,E,C){if(!this.aborted&&(C=S("readdir\0"+v+"\0"+E,C),!!C)){if(E&&!x(this.symlinks,v))return this._readdirInGlobStar(v,C);if(x(this.cache,v)){var A=this.cache[v];if(!A||A==="FILE")return C();if(Array.isArray(A))return C(null,A)}var b=this;n.readdir(v,m(this,v,C))}};function m(v,E,C){return function(A,b){A?v._readdirError(E,A,C):v._readdirEntries(E,b,C)}}O.prototype._readdirEntries=function(v,E,C){if(!this.aborted){if(!this.mark&&!this.stat)for(var A=0;A<E.length;A++){var b=E[A];v==="/"?b=v+b:b=v+"/"+b,this.cache[b]=!0}return this.cache[v]=E,C(null,E)}},O.prototype._readdirError=function(v,E,C){if(!this.aborted){switch(E.code){case"ENOTSUP":case"ENOTDIR":var A=this._makeAbs(v);if(this.cache[A]="FILE",A===this.cwdAbs){var b=new Error(E.code+" invalid cwd "+this.cwd);b.path=this.cwd,b.code=E.code,this.emit("error",b),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",E),this.abort()),this.silent||console.error("glob error",E);break}return C()}},O.prototype._processGlobStar=function(v,E,C,A,b,T,N){var M=this;this._readdir(C,T,function(W,V){M._processGlobStar2(v,E,C,A,b,T,V,N)})},O.prototype._processGlobStar2=function(v,E,C,A,b,T,N,M){if(!N)return M();var W=A.slice(1),V=v?[v]:[],X=V.concat(W);this._process(X,b,!1,M);var he=this.symlinks[C],G=N.length;if(he&&T)return M();for(var H=0;H<G;H++){var q=N[H];if(!(q.charAt(0)==="."&&!this.dot)){var Z=V.concat(N[H],W);this._process(Z,b,!0,M);var ee=V.concat(N[H],A);this._process(ee,b,!0,M)}}M()},O.prototype._processSimple=function(v,E,C){var A=this;this._stat(v,function(b,T){A._processSimple2(v,E,b,T,C)})},O.prototype._processSimple2=function(v,E,C,A,b){if(this.matches[E]||(this.matches[E]=Object.create(null)),!A)return b();if(v&&l(v)&&!this.nomount){var T=/[\/\\]$/.test(v);v.charAt(0)==="/"?v=u.join(this.root,v):(v=u.resolve(this.root,v),T&&(v+="/"))}process.platform==="win32"&&(v=v.replace(/\\/g,"/")),this._emitMatch(E,v),b()},O.prototype._stat=function(v,E){var C=this._makeAbs(v),A=v.slice(-1)==="/";if(v.length>this.maxLength)return E();if(!this.stat&&x(this.cache,C)){var b=this.cache[C];if(Array.isArray(b)&&(b="DIR"),!A||b==="DIR")return E(null,b);if(A&&b==="FILE")return E()}var T,N=this.statCache[C];if(N!==void 0){if(N===!1)return E(null,N);var M=N.isDirectory()?"DIR":"FILE";return A&&M==="FILE"?E():E(null,M,N)}var W=this,V=S("stat\0"+C,X);V&&n.lstat(C,V);function X(he,G){if(G&&G.isSymbolicLink())return n.stat(C,function(H,q){H?W._stat2(v,C,null,G,E):W._stat2(v,C,H,q,E)});W._stat2(v,C,he,G,E)}},O.prototype._stat2=function(v,E,C,A,b){if(C&&(C.code==="ENOENT"||C.code==="ENOTDIR"))return this.statCache[E]=!1,b();var T=v.slice(-1)==="/";if(this.statCache[E]=A,E.slice(-1)==="/"&&A&&!A.isDirectory())return b(null,!1,A);var N=!0;return A&&(N=A.isDirectory()?"DIR":"FILE"),this.cache[E]=this.cache[E]||N,T&&N==="FILE"?b():b(null,N,A)}},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),c=a[1]||"",u=!!(c&&c.charAt(1)!==":");return!!(a[2]||u)}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,A="lockfile"){return C=(0,(a||c()).default)(C),m(C)?E(C,A):{type:"success",object:v(C,A)}};var n;function i(){return n=g(r(2))}var s;function o(){return s=g(r(7))}var a;function c(){return a=g(r(122))}var u;function f(){return u=r(6)}var l;function h(){return l=r(4)}var d;function p(){return d=g(r(20))}function g(C){return C&&C.__esModule?C:{default:C}}let y=/^yarn lockfile v(\d+)$/,x={boolean:"BOOLEAN",string:"STRING",identifier:"IDENTIFIER",eof:"EOF",colon:"COLON",newline:"NEWLINE",comment:"COMMENT",indent:"INDENT",invalid:"INVALID",number:"NUMBER",comma:"COMMA"},S=[x.boolean,x.string,x.number];function I(C){return S.indexOf(C.type)>=0}function*R(C){let A=!1,b=1,T=0;function N(M,W){return{line:b,col:T,type:M,value:W}}for(;C.length;){let M=0;if(C[0]===`
|
|
78
|
+
`||C[0]==="\r")M++,C[1]===`
|
|
79
|
+
`&&M++,b++,T=0,yield N(x.newline);else if(C[0]==="#"){M++;let W="";for(;C[M]!==`
|
|
80
|
+
`;)W+=C[M],M++;yield N(x.comment,W)}else if(C[0]===" ")if(A){let W="";for(let V=0;C[V]===" ";V++)W+=C[V];if(W.length%2)throw new TypeError("Invalid number of spaces");M=W.length,yield N(x.indent,W.length/2)}else M++;else if(C[0]==='"'){let W="";for(let V=0;;V++){let X=C[V];if(W+=X,V>0&&X==='"'&&!(C[V-1]==="\\"&&C[V-2]!=="\\"))break}M=W.length;try{yield N(x.string,JSON.parse(W))}catch(V){if(V instanceof SyntaxError)yield N(x.invalid);else throw V}}else if(/^[0-9]/.test(C)){let W="";for(let V=0;/^[0-9]$/.test(C[V]);V++)W+=C[V];M=W.length,yield N(x.number,+W)}else if(/^true/.test(C))yield N(x.boolean,!0),M=4;else if(/^false/.test(C))yield N(x.boolean,!1),M=5;else if(C[0]===":")yield N(x.colon),M++;else if(C[0]===",")yield N(x.comma),M++;else if(/^[a-zA-Z\/-]/g.test(C)){let W="";for(let V=0;V<C.length;V++){let X=C[V];if(X===":"||X===" "||X===`
|
|
81
|
+
`||X==="\r"||X===",")break;W+=X}M=W.length,yield N(x.string,W)}else yield N(x.invalid);M||(yield N(x.invalid)),T+=M,A=C[0]===`
|
|
82
|
+
`||C[0]==="\r"&&C[1]===`
|
|
83
|
+
`,C=C.slice(M)}yield N(x.eof)}class w{constructor(A,b="lockfile"){this.comments=[],this.tokens=R(A),this.fileLoc=b}onComment(A){let b=A.value;(0,(s||o()).default)(typeof b=="string","expected token value to be a string");let T=b.trim(),N=T.match(y);if(N){let M=+N[1];if(M>(u||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 ${(u||f()).LOCKFILE_VERSION}. Run \`$ yarn self-update\` to upgrade to the latest version.`)}this.comments.push(T)}next(){let A=this.tokens.next();(0,(s||o()).default)(A,"expected a token");let b=A.done,T=A.value;if(b||!T)throw new Error("No more tokens");return T.type===x.comment?(this.onComment(T),this.next()):this.token=T}unexpected(A="Unexpected token"){throw new SyntaxError(`${A} ${this.token.line}:${this.token.col} in ${this.fileLoc}`)}expect(A){this.token.type===A?this.next():this.unexpected()}eat(A){return this.token.type===A?(this.next(),!0):!1}parse(A=0){let b=(0,(d||p()).default)();for(;;){let H=this.token;if(H.type===x.newline){let q=this.next();if(!A)continue;if(q.type!==x.indent)break;if(q.value===A)this.next();else break}else if(H.type===x.indent)if(H.value===A)this.next();else break;else{if(H.type===x.eof)break;if(H.type===x.string){let q=H.value;(0,(s||o()).default)(q,"Expected a key");let Z=[q];for(this.next();this.token.type===x.comma;){this.next();let U=this.token;U.type!==x.string&&this.unexpected("Expected string");let re=U.value;(0,(s||o()).default)(re,"Expected a key"),Z.push(re),this.next()}let ee=this.token;if(ee.type===x.colon){this.next();let U=this.parse(A+1);for(var M=Z,T=Array.isArray(M),N=0,M=T?M:M[Symbol.iterator]();;){var W;if(T){if(N>=M.length)break;W=M[N++]}else{if(N=M.next(),N.done)break;W=N.value}let re=W;b[re]=U}if(A&&this.token.type!==x.indent)break}else if(I(ee)){for(var he=Z,V=Array.isArray(he),X=0,he=V?he:he[Symbol.iterator]();;){var G;if(V){if(X>=he.length)break;G=he[X++]}else{if(X=he.next(),X.done)break;G=X.value}let U=G;b[U]=ee.value}this.next()}else this.unexpected("Invalid value type")}else this.unexpected(`Unknown token: ${(n||i()).default.inspect(H)}`)}}return b}}let D="|||||||",L=">>>>>>>",_="=======",$="<<<<<<<";function O(C){let A=[[],[]],b=C.split(/\r?\n/g),T=!1;for(;b.length;){let N=b.shift();if(N.startsWith($)){for(;b.length;){let M=b.shift();if(M===_){T=!1;break}else if(T||M.startsWith(D)){T=!0;continue}else A[0].push(M)}for(;b.length;){let M=b.shift();if(M.startsWith(L))break;A[1].push(M)}}else A[0].push(N),A[1].push(N)}return[A[0].join(`
|
|
81
84
|
`),A[1].join(`
|
|
82
|
-
`)]}function p(S){return S.includes(L)&&S.includes(R)&&S.includes(O)}function m(S,A){let b=new w(S,A);return b.next(),b.parse()}function v(S,A){let b=C(S);try{return{type:"merge",object:Object.assign({},m(b[0],A),m(b[1],A))}}catch(k){if(k instanceof SyntaxError)return{type:"conflict",object:{}};throw k}}},,,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,g=l.factory;f.length||delete this.queue[c];let E=()=>{this.shift(c),this.shiftConcurrencyQueue()},y=()=>{this.running[c]=!0,this.runningCount++,g().then(function(F){return h(F),E(),null}).catch(function(F){d(F),E()})};this.maybePushConcurrencyQueue(y)}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",g="keys",E="values",y=function(){return this};e.exports=function(F,_,j,T,w,P,O){u(j,_,T);var R=function(G){if(!h&&G in m)return m[G];switch(G){case g:return function(){return new j(this,G)};case E:return function(){return new j(this,G)}}return function(){return new j(this,G)}},L=_+" Iterator",C=w==E,p=!1,m=F.prototype,v=m[l]||m[d]||w&&m[w],S=v||R(w),A=w?C?R("entries"):S:void 0,b=_=="Array"&&m.entries||v,k,N,M;if(b&&(M=f(b.call(new F)),M!==Object.prototype&&M.next&&(c(M,L,!0),!n&&typeof M[l]!="function"&&o(M,l,y))),C&&v&&v.name!==E&&(p=!0,S=function(){return v.call(this)}),(!n||O)&&(h||p||!m[l])&&o(m,l,S),a[_]=S,a[L]=y,w)if(k={values:C?S:R(E),keys:P?S:R(g),entries:A},O)for(N in k)N in m||s(m,N,k[N]);else i(i.P+i.F*(h||p),_,k);return k}},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,g={},E="onreadystatechange",y,F,_,j=function(){var w=+this;if(g.hasOwnProperty(w)){var P=g[w];delete g[w],P()}},T=function(w){j.call(w.data)};(!c||!f)&&(c=function(P){for(var O=[],R=1;arguments.length>R;)O.push(arguments[R++]);return g[++d]=function(){i(typeof P=="function"?P:Function(P),O)},y(d),d},f=function(P){delete g[P]},r(47)(u)=="process"?y=function(w){u.nextTick(n(j,w,1))}:h&&h.now?y=function(w){h.now(n(j,w,1))}:l?(F=new l,_=F.port2,F.port1.onmessage=T,y=n(_.postMessage,_,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(y=function(w){a.postMessage(w+"","*")},a.addEventListener("message",T,!1)):E in o("script")?y=function(w){s.appendChild(o("script"))[E]=function(){s.removeChild(this),j.call(w)}}:y=function(w){setTimeout(n(j,w,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,g=+new Date,E=g-(l||g);d.diff=E,d.prev=l,d.curr=g,l=g;for(var y=new Array(arguments.length),F=0;F<y.length;F++)y[F]=arguments[F];y[0]=t.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");var _=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,function(T,w){if(T==="%%")return T;_++;var P=t.formatters[w];if(typeof P=="function"){var O=y[_];T=P.call(d,O),y.splice(_,1),_--}return T}),t.formatArgs.call(d,y);var j=h.log||t.log||console.log.bind(console);j.apply(d,y)}}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 g=t.instances[l];g.enabled=t.enabled(g.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(g){return g&&g.syscall==="realpath"&&(g.code==="ELOOP"||g.code==="ENOMEM"||g.code==="ENAMETOOLONG")}function f(g,E,y){if(a)return i(g,E,y);typeof E=="function"&&(y=E,E=null),i(g,E,function(F,_){c(F)?u.realpath(g,E,y):y(F,_)})}function l(g,E){if(a)return s(g,E);try{return s(g,E)}catch(y){if(c(y))return u.realpathSync(g,E);throw y}}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=E,t.finish=d,t.mark=g,t.isIgnored=y,t.childrenIgnored=F;function n(_,j){return Object.prototype.hasOwnProperty.call(_,j)}var i=r(0),s=r(60),o=r(76),a=s.Minimatch;function u(_,j){return _.toLowerCase().localeCompare(j.toLowerCase())}function c(_,j){return _.localeCompare(j)}function f(_,j){_.ignore=j.ignore||[],Array.isArray(_.ignore)||(_.ignore=[_.ignore]),_.ignore.length&&(_.ignore=_.ignore.map(l))}function l(_){var j=null;if(_.slice(-3)==="/**"){var T=_.replace(/(\/\*\*)+$/,"");j=new a(T,{dot:!0})}return{matcher:new a(_,{dot:!0}),gmatcher:j}}function h(_,j,T){if(T||(T={}),T.matchBase&&j.indexOf("/")===-1){if(T.noglobstar)throw new Error("base matching requires globstar");j="**/"+j}_.silent=!!T.silent,_.pattern=j,_.strict=T.strict!==!1,_.realpath=!!T.realpath,_.realpathCache=T.realpathCache||Object.create(null),_.follow=!!T.follow,_.dot=!!T.dot,_.mark=!!T.mark,_.nodir=!!T.nodir,_.nodir&&(_.mark=!0),_.sync=!!T.sync,_.nounique=!!T.nounique,_.nonull=!!T.nonull,_.nosort=!!T.nosort,_.nocase=!!T.nocase,_.stat=!!T.stat,_.noprocess=!!T.noprocess,_.absolute=!!T.absolute,_.maxLength=T.maxLength||1/0,_.cache=T.cache||Object.create(null),_.statCache=T.statCache||Object.create(null),_.symlinks=T.symlinks||Object.create(null),f(_,T),_.changedCwd=!1;var w=process.cwd();n(T,"cwd")?(_.cwd=i.resolve(T.cwd),_.changedCwd=_.cwd!==w):_.cwd=w,_.root=T.root||i.resolve(_.cwd,"/"),_.root=i.resolve(_.root),process.platform==="win32"&&(_.root=_.root.replace(/\\/g,"/")),_.cwdAbs=o(_.cwd)?_.cwd:E(_,_.cwd),process.platform==="win32"&&(_.cwdAbs=_.cwdAbs.replace(/\\/g,"/")),_.nomount=!!T.nomount,T.nonegate=!0,T.nocomment=!0,_.minimatch=new a(j,T),_.options=_.minimatch.options}function d(_){for(var j=_.nounique,T=j?[]:Object.create(null),w=0,P=_.matches.length;w<P;w++){var O=_.matches[w];if(!O||Object.keys(O).length===0){if(_.nonull){var R=_.minimatch.globSet[w];j?T.push(R):T[R]=!0}}else{var L=Object.keys(O);j?T.push.apply(T,L):L.forEach(function(C){T[C]=!0})}}if(j||(T=Object.keys(T)),_.nosort||(T=T.sort(_.nocase?u:c)),_.mark){for(var w=0;w<T.length;w++)T[w]=_._mark(T[w]);_.nodir&&(T=T.filter(function(C){var p=!/\/$/.test(C),m=_.cache[C]||_.cache[E(_,C)];return p&&m&&(p=m!=="DIR"&&!Array.isArray(m)),p}))}_.ignore.length&&(T=T.filter(function(C){return!y(_,C)})),_.found=T}function g(_,j){var T=E(_,j),w=_.cache[T],P=j;if(w){var O=w==="DIR"||Array.isArray(w),R=j.slice(-1)==="/";if(O&&!R?P+="/":!O&&R&&(P=P.slice(0,-1)),P!==j){var L=E(_,P);_.statCache[L]=_.statCache[T],_.cache[L]=_.cache[T]}}return P}function E(_,j){var T=j;return j.charAt(0)==="/"?T=i.join(_.root,j):o(j)||j===""?T=j:_.changedCwd?T=i.resolve(_.cwd,j):T=i.resolve(j),process.platform==="win32"&&(T=T.replace(/\\/g,"/")),T}function y(_,j){return _.ignore.length?_.ignore.some(function(T){return T.matcher.match(j)||!!(T.gmatcher&&T.gmatcher.match(j))}):!1}function F(_,j){return _.ignore.length?_.ignore.some(function(T){return!!(T.gmatcher&&T.gmatcher.match(j))}):!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(g){if(!g)return f=f||a,d(null,f);switch(g.code){case"ENOENT":o(n.dirname(a),u,function(E,y){E?d(E,y):o(a,u,d,y)});break;default:h.stat(a,function(E,y){E||!y.isDirectory()?d(g,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(g){switch(g.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 g}if(!d.isDirectory())throw g;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=E;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(y){return y.indexOf("true")===0||y.indexOf("false")===0||/[:\s\n\\",\[\]]/g.test(y)||/^[0-9]/g.test(y)||!/^[a-zA-Z]/g.test(y)}function l(y){return typeof y=="boolean"||typeof y=="number"||f(y)?JSON.stringify(y):y}let h={name:1,version:2,uid:3,resolved:4,integrity:5,registry:6,dependencies:7};function d(y,F){return h[y]||h[F]?(h[y]||100)>(h[F]||100)?1:-1:(0,(n||i()).sortAlpha)(y,F)}function g(y,F){if(typeof y!="object")throw new TypeError;let _=F.indent,j=[],T=Object.keys(y).sort(d),w=[];for(let P=0;P<T.length;P++){let O=T[P],R=y[O];if(R==null||w.indexOf(O)>=0)continue;let L=[O];if(typeof R=="object")for(let p=P+1;p<T.length;p++){let m=T[p];R===y[m]&&L.push(m)}let C=L.sort((n||i()).sortAlpha).map(l).join(", ");if(typeof R=="string"||typeof R=="boolean"||typeof R=="number")j.push(`${C} ${l(R)}`);else if(typeof R=="object")j.push(`${C}:
|
|
83
|
-
${
|
|
84
|
-
`:""));else throw new TypeError;w=w.concat(
|
|
85
|
-
${
|
|
86
|
-
`),
|
|
87
|
-
`)}},,,,,,,,,,,,,,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 O=(0,(n||i()).default)(function*(R,L,C){let p=R===void 0,m=R||-1;if(l===void 0){let v=yield g(L);l=P(v.mtime,C.mtime)}if(!l){if(p)try{m=yield E(L,"a",C.mode)}catch{try{m=yield E(L,"r",C.mode)}catch{return}}try{m&&(yield y(m,C.atime,C.mtime))}catch{}finally{p&&m&&(yield d(m))}}});return function(L,C,p){return O.apply(this,arguments)}})();var o;function a(){return o=f(r(3))}var u;function c(){return u=r(40)}function f(O){return O&&O.__esModule?O:{default:O}}let l,h=(0,(u||c()).promisify)((o||a()).default.readFile),d=(0,(u||c()).promisify)((o||a()).default.close),g=(0,(u||c()).promisify)((o||a()).default.lstat),E=(0,(u||c()).promisify)((o||a()).default.open),y=(0,(u||c()).promisify)((o||a()).default.futimes),F=(0,(u||c()).promisify)((o||a()).default.write),_=t.unlink=(0,(u||c()).promisify)(r(233)),j=t.copyFile=(()=>{var O=(0,(n||i()).default)(function*(R,L){try{yield _(R.dest),yield T(R.src,R.dest,0,R)}finally{L&&L()}});return function(L,C){return O.apply(this,arguments)}})(),T=(O,R,L,C)=>(o||a()).default.copyFile?new Promise((p,m)=>(o||a()).default.copyFile(O,R,L,v=>{v?m(v):s(void 0,R,C).then(()=>p()).catch(S=>m(S))})):w(O,R,L,C),w=(()=>{var O=(0,(n||i()).default)(function*(R,L,C,p){let m=yield E(L,"w",p.mode);try{let v=yield h(R);yield F(m,v,0,v.length),yield s(m,L,p)}finally{yield d(m)}});return function(L,C,p,m){return O.apply(this,arguments)}})(),P=t.fileDatesEqual=(O,R)=>{let L=O.getTime(),C=R.getTime();if(process.platform!=="win32")return L===C;if(Math.abs(L-C)<=1)return!0;let p=Math.floor(L/1e3),m=Math.floor(C/1e3);return L-p*1e3===0||C-m*1e3===0?p===m:L===C}},,,,,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,g=u.indexOf(o),E=u.indexOf(a,g+1),y=g;if(g>=0&&E>0){for(c=[],l=u.length;y>=0&&!d;)y==g?(c.push(y),g=u.indexOf(o,y+1)):c.length==1?d=[c.pop(),E]:(f=c.pop(),f<l&&(l=f,h=E),E=u.indexOf(a,y+1)),y=g<E&&g>=0?g:E;c.length&&(d=[l,h])}return d}},function(e,t,r){var n=r(178),i=r(174);e.exports=g;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(w){return parseInt(w,10)==w?parseInt(w,10):w.charCodeAt(0)}function l(w){return w.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)}function h(w){return w.split(s).join("\\").split(o).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function d(w){if(!w)return[""];var P=[],O=i("{","}",w);if(!O)return w.split(",");var R=O.pre,L=O.body,C=O.post,p=R.split(",");p[p.length-1]+="{"+L+"}";var m=d(C);return C.length&&(p[p.length-1]+=m.shift(),p.push.apply(p,m)),P.push.apply(P,p),P}function g(w){return w?(w.substr(0,2)==="{}"&&(w="\\{\\}"+w.substr(2)),T(l(w),!0).map(h)):[]}function E(w){return w}function y(w){return"{"+w+"}"}function F(w){return/^-?0\d/.test(w)}function _(w,P){return w<=P}function j(w,P){return w>=P}function T(w,P){var O=[],R=i("{","}",w);if(!R||/\$$/.test(R.pre))return[w];var L=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(R.body),C=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(R.body),p=L||C,m=R.body.indexOf(",")>=0;if(!p&&!m)return R.post.match(/,.*\}/)?(w=R.pre+"{"+R.body+a+R.post,T(w)):[w];var v;if(p)v=R.body.split(/\.\./);else if(v=d(R.body),v.length===1&&(v=T(v[0],!1).map(y),v.length===1)){var A=R.post.length?T(R.post,!1):[""];return A.map(function(ue){return R.pre+v[0]+ue})}var S=R.pre,A=R.post.length?T(R.post,!1):[""],b;if(p){var k=f(v[0]),N=f(v[1]),M=Math.max(v[0].length,v[1].length),G=v.length==3?Math.abs(f(v[2])):1,V=_,X=N<k;X&&(G*=-1,V=j);var me=v.some(F);b=[];for(var H=k;V(H,N);H+=G){var U;if(C)U=String.fromCharCode(H),U==="\\"&&(U="");else if(U=String(H),me){var q=M-U.length;if(q>0){var Z=new Array(q+1).join("0");H<0?U="-"+Z+U.slice(1):U=Z+U}}b.push(U)}}else b=n(v,function(z){return T(z,!1)});for(var ee=0;ee<b.length;ee++)for(var W=0;W<A.length;W++){var re=S+b[ee]+A[W];(!P||p||re)&&O.push(re)}return O}},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,g,E,y){var F=y?function(){return h}:u(h),_=n(g,E,d?2:1),j=0,T,w,P,O;if(typeof F!="function")throw TypeError(h+" is not iterable!");if(s(F)){for(T=a(h.length);T>j;j++)if(O=d?_(o(w=h[j])[0],w[1]):_(h[j]),O===c||O===f)return O}else for(P=F.call(h);!(w=P.next()).done;)if(O=i(P,_,w.value,d),O===c||O===f)return O};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 y,F;for(u&&(y=o.domain)&&y.exit();c;){F=c.fn,c=c.next;try{F()}catch(_){throw c?l():f=void 0,_}}f=void 0,y&&y.enter()};if(u)l=function(){o.nextTick(h)};else if(s&&!(n.navigator&&n.navigator.standalone)){var d=!0,g=document.createTextNode("");new s(h).observe(g,{characterData:!0}),l=function(){g.data=d=!d}}else if(a&&a.resolve){var E=a.resolve(void 0);l=function(){E.then(h)}}else l=function(){i.call(n,h)};return function(y){var F={fn:y,next:void 0};f&&(f.next=F),c||(c=F,l()),f=F}}},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=">",g;for(f.style.display="none",r(102).appendChild(f),f.src="javascript:",g=f.contentWindow.document,g.open(),g.write(h+"script"+d+"document.F=Object"+h+"/script"+d),g.close(),c=g.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,g=r(191)(),E=r(70),y=r(104),F=r(202),_=r(105),j="Promise",T=i.TypeError,w=i.process,P=w&&w.versions,O=P&&P.v8||"",R=i[j],L=o(w)=="process",C=function(){},p,m,v,S,A=m=E.f,b=!!function(){try{var H=R.resolve(1),U=(H.constructor={})[r(13)("species")]=function(q){q(C,C)};return(L||typeof PromiseRejectionEvent=="function")&&H.then(C)instanceof U&&O.indexOf("6.6")!==0&&F.indexOf("Chrome/66")===-1}catch{}}(),k=function(H){var U;return u(H)&&typeof(U=H.then)=="function"?U:!1},N=function(H,U){if(!H._n){H._n=!0;var q=H._c;g(function(){for(var Z=H._v,ee=H._s==1,W=0,re=function(z){var ue=ee?z.ok:z.fail,ye=z.resolve,Fe=z.reject,I=z.domain,$,K,Y;try{ue?(ee||(H._h==2&&V(H),H._h=1),ue===!0?$=Z:(I&&I.enter(),$=ue(Z),I&&(I.exit(),Y=!0)),$===z.promise?Fe(T("Promise-chain cycle")):(K=k($))?K.call($,ye,Fe):ye($)):Fe(Z)}catch(B){I&&!Y&&I.exit(),Fe(B)}};q.length>W;)re(q[W++]);H._c=[],H._n=!1,U&&!H._h&&M(H)})}},M=function(H){d.call(i,function(){var U=H._v,q=G(H),Z,ee,W;if(q&&(Z=y(function(){L?w.emit("unhandledRejection",U,H):(ee=i.onunhandledrejection)?ee({promise:H,reason:U}):(W=i.console)&&W.error&&W.error("Unhandled promise rejection",U)}),H._h=L||G(H)?2:1),H._a=void 0,q&&Z.e)throw Z.v})},G=function(H){return H._h!==1&&(H._a||H._c).length===0},V=function(H){d.call(i,function(){var U;L?w.emit("rejectionHandled",H):(U=i.onrejectionhandled)&&U({promise:H,reason:H._v})})},X=function(H){var U=this;U._d||(U._d=!0,U=U._w||U,U._v=H,U._s=2,U._a||(U._a=U._c.slice()),N(U,!0))},me=function(H){var U=this,q;if(!U._d){U._d=!0,U=U._w||U;try{if(U===H)throw T("Promise can't be resolved itself");(q=k(H))?g(function(){var Z={_w:U,_d:!1};try{q.call(H,s(me,Z,1),s(X,Z,1))}catch(ee){X.call(Z,ee)}}):(U._v=H,U._s=1,N(U,!1))}catch(Z){X.call({_w:U,_d:!1},Z)}}};b||(R=function(U){f(this,R,j,"_h"),c(U),p.call(this);try{U(s(me,this,1),s(X,this,1))}catch(q){X.call(this,q)}},p=function(U){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},p.prototype=r(196)(R.prototype,{then:function(U,q){var Z=A(h(this,R));return Z.ok=typeof U=="function"?U:!0,Z.fail=typeof q=="function"&&q,Z.domain=L?w.domain:void 0,this._c.push(Z),this._a&&this._a.push(Z),this._s&&N(this,!1),Z.promise},catch:function(H){return this.then(void 0,H)}}),v=function(){var H=new p;this.promise=H,this.resolve=s(me,H,1),this.reject=s(X,H,1)},E.f=A=function(H){return H===R||H===S?new v(H):m(H)}),a(a.G+a.W+a.F*!b,{Promise:R}),r(71)(R,j),r(198)(j),S=r(23)[j],a(a.S+a.F*!b,j,{reject:function(U){var q=A(this),Z=q.reject;return Z(U),q.promise}}),a(a.S+a.F*(n||!b),j,{resolve:function(U){return _(n&&this===S?R:this,U)}}),a(a.S+a.F*!(b&&r(189)(function(H){R.all(H).catch(C)})),j,{all:function(U){var q=this,Z=A(q),ee=Z.resolve,W=Z.reject,re=y(function(){var z=[],ue=0,ye=1;l(U,!1,function(Fe){var I=ue++,$=!1;z.push(void 0),ye++,q.resolve(Fe).then(function(K){$||($=!0,z[I]=K,--ye||ee(z))},W)}),--ye||ee(z)});return re.e&&W(re.v),Z.promise},race:function(U){var q=this,Z=A(q),ee=Z.reject,W=y(function(){l(U,!1,function(re){q.resolve(re).then(Z.resolve,ee)})});return W.e&&ee(W.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(g){g!=="%%"&&(h++,g==="%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,g){var E=g.substring(6).toLowerCase().replace(/_([a-z])/g,function(F,_){return _.toUpperCase()}),y=process.env[g];return/^(yes|on|true|enabled)$/i.test(y)?y=!0:/^(no|off|false|disabled)$/i.test(y)?y=!1:y==="null"?y=null:y=Number(y),d[E]=y,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(`
|
|
88
|
-
`).map(function(
|
|
85
|
+
`)]}function m(C){return C.includes($)&&C.includes(_)&&C.includes(L)}function v(C,A){let b=new w(C,A);return b.next(),b.parse()}function E(C,A){let b=O(C);try{return{type:"merge",object:Object.assign({},v(b[0],A),v(b[1],A))}}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(c){return c&&c.__esModule?c:{default:c}}let o=r(212)("yarn");class a{constructor(u,f=1/0){this.concurrencyQueue=[],this.maxConcurrency=f,this.runningCount=0,this.warnedStuck=!1,this.alias=u,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(u,f){return this.first?this.first=!1:this.stillActive(),new Promise((l,h)=>{(this.queue[u]=this.queue[u]||[]).push({factory:f,resolve:l,reject:h}),this.running[u]||this.shift(u)})}shift(u){this.running[u]&&(delete this.running[u],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[u];if(!f)return;var l=f.shift();let h=l.resolve,d=l.reject,p=l.factory;f.length||delete this.queue[u];let g=()=>{this.shift(u),this.shiftConcurrencyQueue()},y=()=>{this.running[u]=!0,this.runningCount++,p().then(function(x){return h(x),g(),null}).catch(function(x){d(x),g()})};this.maybePushConcurrencyQueue(y)}maybePushConcurrencyQueue(u){this.runningCount<this.maxConcurrency?u():this.concurrencyQueue.push(u)}shiftConcurrencyQueue(){if(this.runningCount<this.maxConcurrency){let u=this.concurrencyQueue.shift();u&&u()}}}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,c){try{return a[c]}catch{}};e.exports=function(a){var c,u,f;return a===void 0?"Undefined":a===null?"Null":typeof(u=o(c=Object(a),i))=="string"?u:s?n(c):(f=n(c))=="Object"&&typeof c.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),c=r(188),u=r(71),f=r(194),l=r(13)("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",g="values",y=function(){return this};e.exports=function(x,S,I,R,w,D,L){c(I,S,R);var _=function(W){if(!h&&W in v)return v[W];switch(W){case p:return function(){return new I(this,W)};case g:return function(){return new I(this,W)}}return function(){return new I(this,W)}},$=S+" Iterator",O=w==g,m=!1,v=x.prototype,E=v[l]||v[d]||w&&v[w],C=E||_(w),A=w?O?_("entries"):C:void 0,b=S=="Array"&&v.entries||E,T,N,M;if(b&&(M=f(b.call(new x)),M!==Object.prototype&&M.next&&(u(M,$,!0),!n&&typeof M[l]!="function"&&o(M,l,y))),O&&E&&E.name!==g&&(m=!0,C=function(){return E.call(this)}),(!n||L)&&(h||m||!v[l])&&o(v,l,C),a[S]=C,a[$]=y,w)if(T={values:O?C:_(g),keys:D?C:_(p),entries:A},L)for(N in T)N in v||s(v,N,T[N]);else i(i.P+i.F*(h||m),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 c=s.f(o),u=c.resolve;return u(a),c.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,c){return o[a]||(o[a]=c!==void 0?c:{})})("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 c=n(o).constructor,u;return c===void 0||(u=n(c)[s])==null?a:i(u)}},function(e,t,r){var n=r(48),i=r(185),s=r(102),o=r(68),a=r(11),c=a.process,u=a.setImmediate,f=a.clearImmediate,l=a.MessageChannel,h=a.Dispatch,d=0,p={},g="onreadystatechange",y,x,S,I=function(){var w=+this;if(p.hasOwnProperty(w)){var D=p[w];delete p[w],D()}},R=function(w){I.call(w.data)};(!u||!f)&&(u=function(D){for(var L=[],_=1;arguments.length>_;)L.push(arguments[_++]);return p[++d]=function(){i(typeof D=="function"?D:Function(D),L)},y(d),d},f=function(D){delete p[D]},r(47)(c)=="process"?y=function(w){c.nextTick(n(I,w,1))}:h&&h.now?y=function(w){h.now(n(I,w,1))}:l?(x=new l,S=x.port2,x.port1.onmessage=R,y=n(S.postMessage,S,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(y=function(w){a.postMessage(w+"","*")},a.addEventListener("message",R,!1)):g in o("script")?y=function(w){s.appendChild(o("script"))[g]=function(){s.removeChild(this),I.call(w)}}:y=function(w){setTimeout(n(I,w,1),0)}),e.exports={set:u,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=u,t.disable=a,t.enable=o,t.enabled=c,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,g=p-(l||p);d.diff=g,d.prev=l,d.curr=p,l=p;for(var y=new Array(arguments.length),x=0;x<y.length;x++)y[x]=arguments[x];y[0]=t.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");var S=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,function(R,w){if(R==="%%")return R;S++;var D=t.formatters[w];if(typeof D=="function"){var L=y[S];R=D.call(d,L),y.splice(S,1),S--}return R}),t.formatArgs.call(d,y);var I=h.log||t.log||console.log.bind(console);I.apply(d,y)}}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 c(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 u(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),c=r(217);function u(p){return p&&p.syscall==="realpath"&&(p.code==="ELOOP"||p.code==="ENOMEM"||p.code==="ENAMETOOLONG")}function f(p,g,y){if(a)return i(p,g,y);typeof g=="function"&&(y=g,g=null),i(p,g,function(x,S){u(x)?c.realpath(p,g,y):y(x,S)})}function l(p,g){if(a)return s(p,g);try{return s(p,g)}catch(y){if(u(y))return c.realpathSync(p,g);throw y}}function h(){n.realpath=f,n.realpathSync=l}function d(){n.realpath=i,n.realpathSync=s}},function(e,t,r){t.alphasort=u,t.alphasorti=c,t.setopts=h,t.ownProp=n,t.makeAbs=g,t.finish=d,t.mark=p,t.isIgnored=y,t.childrenIgnored=x;function n(S,I){return Object.prototype.hasOwnProperty.call(S,I)}var i=r(0),s=r(60),o=r(76),a=s.Minimatch;function c(S,I){return S.toLowerCase().localeCompare(I.toLowerCase())}function u(S,I){return S.localeCompare(I)}function f(S,I){S.ignore=I.ignore||[],Array.isArray(S.ignore)||(S.ignore=[S.ignore]),S.ignore.length&&(S.ignore=S.ignore.map(l))}function l(S){var I=null;if(S.slice(-3)==="/**"){var R=S.replace(/(\/\*\*)+$/,"");I=new a(R,{dot:!0})}return{matcher:new a(S,{dot:!0}),gmatcher:I}}function h(S,I,R){if(R||(R={}),R.matchBase&&I.indexOf("/")===-1){if(R.noglobstar)throw new Error("base matching requires globstar");I="**/"+I}S.silent=!!R.silent,S.pattern=I,S.strict=R.strict!==!1,S.realpath=!!R.realpath,S.realpathCache=R.realpathCache||Object.create(null),S.follow=!!R.follow,S.dot=!!R.dot,S.mark=!!R.mark,S.nodir=!!R.nodir,S.nodir&&(S.mark=!0),S.sync=!!R.sync,S.nounique=!!R.nounique,S.nonull=!!R.nonull,S.nosort=!!R.nosort,S.nocase=!!R.nocase,S.stat=!!R.stat,S.noprocess=!!R.noprocess,S.absolute=!!R.absolute,S.maxLength=R.maxLength||1/0,S.cache=R.cache||Object.create(null),S.statCache=R.statCache||Object.create(null),S.symlinks=R.symlinks||Object.create(null),f(S,R),S.changedCwd=!1;var w=process.cwd();n(R,"cwd")?(S.cwd=i.resolve(R.cwd),S.changedCwd=S.cwd!==w):S.cwd=w,S.root=R.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:g(S,S.cwd),process.platform==="win32"&&(S.cwdAbs=S.cwdAbs.replace(/\\/g,"/")),S.nomount=!!R.nomount,R.nonegate=!0,R.nocomment=!0,S.minimatch=new a(I,R),S.options=S.minimatch.options}function d(S){for(var I=S.nounique,R=I?[]:Object.create(null),w=0,D=S.matches.length;w<D;w++){var L=S.matches[w];if(!L||Object.keys(L).length===0){if(S.nonull){var _=S.minimatch.globSet[w];I?R.push(_):R[_]=!0}}else{var $=Object.keys(L);I?R.push.apply(R,$):$.forEach(function(O){R[O]=!0})}}if(I||(R=Object.keys(R)),S.nosort||(R=R.sort(S.nocase?c:u)),S.mark){for(var w=0;w<R.length;w++)R[w]=S._mark(R[w]);S.nodir&&(R=R.filter(function(O){var m=!/\/$/.test(O),v=S.cache[O]||S.cache[g(S,O)];return m&&v&&(m=v!=="DIR"&&!Array.isArray(v)),m}))}S.ignore.length&&(R=R.filter(function(O){return!y(S,O)})),S.found=R}function p(S,I){var R=g(S,I),w=S.cache[R],D=I;if(w){var L=w==="DIR"||Array.isArray(w),_=I.slice(-1)==="/";if(L&&!_?D+="/":!L&&_&&(D=D.slice(0,-1)),D!==I){var $=g(S,D);S.statCache[$]=S.statCache[R],S.cache[$]=S.cache[R]}}return D}function g(S,I){var R=I;return I.charAt(0)==="/"?R=i.join(S.root,I):o(I)||I===""?R=I:S.changedCwd?R=i.resolve(S.cwd,I):R=i.resolve(I),process.platform==="win32"&&(R=R.replace(/\\/g,"/")),R}function y(S,I){return S.ignore.length?S.ignore.some(function(R){return R.matcher.match(I)||!!(R.gmatcher&&R.gmatcher.match(I))}):!1}function x(S,I){return S.ignore.length?S.ignore.some(function(R){return!!(R.gmatcher&&R.gmatcher.match(I))}):!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,c,u,f){typeof c=="function"?(u=c,c={}):(!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);var d=u||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),c,function(g,y){g?d(g,y):o(a,c,d,y)});break;default:h.stat(a,function(g,y){g||!y.isDirectory()?d(p,f):d(null,f)});break}})}o.sync=function a(c,u,f){(!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),c=n.resolve(c);try{h.mkdirSync(c,l),f=f||c}catch(p){switch(p.code){case"ENOENT":f=a(n.dirname(c),u,f),a(c,u,f);break;default:var d;try{d=h.statSync(c)}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 c=n.apply(this,o),u=o[o.length-1];return typeof c=="function"&&c!==u&&Object.keys(u).forEach(function(f){c[f]=u[f]}),c}}},,,,,,,,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=g;var n;function i(){return n=r(12)}var s;function o(){return s=r(6)}var a;function c(){return a=r(145)}let u=process.version;function f(y){return y.indexOf("true")===0||y.indexOf("false")===0||/[:\s\n\\",\[\]]/g.test(y)||/^[0-9]/g.test(y)||!/^[a-zA-Z]/g.test(y)}function l(y){return typeof y=="boolean"||typeof y=="number"||f(y)?JSON.stringify(y):y}let h={name:1,version:2,uid:3,resolved:4,integrity:5,registry:6,dependencies:7};function d(y,x){return h[y]||h[x]?(h[y]||100)>(h[x]||100)?1:-1:(0,(n||i()).sortAlpha)(y,x)}function p(y,x){if(typeof y!="object")throw new TypeError;let S=x.indent,I=[],R=Object.keys(y).sort(d),w=[];for(let D=0;D<R.length;D++){let L=R[D],_=y[L];if(_==null||w.indexOf(L)>=0)continue;let $=[L];if(typeof _=="object")for(let m=D+1;m<R.length;m++){let v=R[m];_===y[v]&&$.push(v)}let O=$.sort((n||i()).sortAlpha).map(l).join(", ");if(typeof _=="string"||typeof _=="boolean"||typeof _=="number")I.push(`${O} ${l(_)}`);else if(typeof _=="object")I.push(`${O}:
|
|
86
|
+
${p(_,{indent:S+" "})}`+(x.topLevel?`
|
|
87
|
+
`:""));else throw new TypeError;w=w.concat($)}return S+I.join(`
|
|
88
|
+
${S}`)}function g(y,x,S){let I=p(y,{indent:"",topLevel:!0});if(x)return I;let R=[];return R.push("# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."),R.push(`# yarn lockfile v${(s||o()).LOCKFILE_VERSION}`),S&&(R.push(`# yarn v${(a||c()).version}`),R.push(`# node ${u}`)),R.push(`
|
|
89
|
+
`),R.push(I),R.join(`
|
|
90
|
+
`)}},,,,,,,,,,,,,,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*(_,$,O){let m=_===void 0,v=_||-1;if(l===void 0){let E=yield p($);l=D(E.mtime,O.mtime)}if(!l){if(m)try{v=yield g($,"a",O.mode)}catch{try{v=yield g($,"r",O.mode)}catch{return}}try{v&&(yield y(v,O.atime,O.mtime))}catch{}finally{m&&v&&(yield d(v))}}});return function($,O,m){return L.apply(this,arguments)}})();var o;function a(){return o=f(r(3))}var c;function u(){return c=r(40)}function f(L){return L&&L.__esModule?L:{default:L}}let l,h=(0,(c||u()).promisify)((o||a()).default.readFile),d=(0,(c||u()).promisify)((o||a()).default.close),p=(0,(c||u()).promisify)((o||a()).default.lstat),g=(0,(c||u()).promisify)((o||a()).default.open),y=(0,(c||u()).promisify)((o||a()).default.futimes),x=(0,(c||u()).promisify)((o||a()).default.write),S=t.unlink=(0,(c||u()).promisify)(r(233)),I=t.copyFile=(()=>{var L=(0,(n||i()).default)(function*(_,$){try{yield S(_.dest),yield R(_.src,_.dest,0,_)}finally{$&&$()}});return function($,O){return L.apply(this,arguments)}})(),R=(L,_,$,O)=>(o||a()).default.copyFile?new Promise((m,v)=>(o||a()).default.copyFile(L,_,$,E=>{E?v(E):s(void 0,_,O).then(()=>m()).catch(C=>v(C))})):w(L,_,$,O),w=(()=>{var L=(0,(n||i()).default)(function*(_,$,O,m){let v=yield g($,"w",m.mode);try{let E=yield h(_);yield x(v,E,0,E.length),yield s(v,$,m)}finally{yield d(v)}});return function($,O,m,v){return L.apply(this,arguments)}})(),D=t.fileDatesEqual=(L,_)=>{let $=L.getTime(),O=_.getTime();if(process.platform!=="win32")return $===O;if(Math.abs($-O)<=1)return!0;let m=Math.floor($/1e3),v=Math.floor(O/1e3);return $-m*1e3===0||O-v*1e3===0?m===v:$===O}},,,,,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=c,t.getConfigDir=u;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 c(){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 u(){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,c){o instanceof RegExp&&(o=i(o,c)),a instanceof RegExp&&(a=i(a,c));var u=s(o,a,c);return u&&{start:u[0],end:u[1],pre:c.slice(0,u[0]),body:c.slice(u[0]+o.length,u[1]),post:c.slice(u[1]+a.length)}}function i(o,a){var c=a.match(o);return c?c[0]:null}n.range=s;function s(o,a,c){var u,f,l,h,d,p=c.indexOf(o),g=c.indexOf(a,p+1),y=p;if(p>=0&&g>0){for(u=[],l=c.length;y>=0&&!d;)y==p?(u.push(y),p=c.indexOf(o,y+1)):u.length==1?d=[u.pop(),g]:(f=u.pop(),f<l&&(l=f,h=g),g=c.indexOf(a,y+1)),y=p<g&&p>=0?p:g;u.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",c="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function f(w){return parseInt(w,10)==w?parseInt(w,10):w.charCodeAt(0)}function l(w){return w.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function h(w){return w.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function d(w){if(!w)return[""];var D=[],L=i("{","}",w);if(!L)return w.split(",");var _=L.pre,$=L.body,O=L.post,m=_.split(",");m[m.length-1]+="{"+$+"}";var v=d(O);return O.length&&(m[m.length-1]+=v.shift(),m.push.apply(m,v)),D.push.apply(D,m),D}function p(w){return w?(w.substr(0,2)==="{}"&&(w="\\{\\}"+w.substr(2)),R(l(w),!0).map(h)):[]}function g(w){return w}function y(w){return"{"+w+"}"}function x(w){return/^-?0\d/.test(w)}function S(w,D){return w<=D}function I(w,D){return w>=D}function R(w,D){var L=[],_=i("{","}",w);if(!_||/\$$/.test(_.pre))return[w];var $=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(_.body),O=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(_.body),m=$||O,v=_.body.indexOf(",")>=0;if(!m&&!v)return _.post.match(/,.*\}/)?(w=_.pre+"{"+_.body+a+_.post,R(w)):[w];var E;if(m)E=_.body.split(/\.\./);else if(E=d(_.body),E.length===1&&(E=R(E[0],!1).map(y),E.length===1)){var A=_.post.length?R(_.post,!1):[""];return A.map(function(ue){return _.pre+E[0]+ue})}var C=_.pre,A=_.post.length?R(_.post,!1):[""],b;if(m){var T=f(E[0]),N=f(E[1]),M=Math.max(E[0].length,E[1].length),W=E.length==3?Math.abs(f(E[2])):1,V=S,X=N<T;X&&(W*=-1,V=I);var he=E.some(x);b=[];for(var G=T;V(G,N);G+=W){var H;if(O)H=String.fromCharCode(G),H==="\\"&&(H="");else if(H=String(G),he){var q=M-H.length;if(q>0){var Z=new Array(q+1).join("0");G<0?H="-"+Z+H.slice(1):H=Z+H}}b.push(H)}}else b=n(E,function(Y){return R(Y,!1)});for(var ee=0;ee<b.length;ee++)for(var U=0;U<A.length;U++){var re=C+b[ee]+A[U];(!D||m||re)&&L.push(re)}return L}},function(e,t,r){"use strict";function n(i){let s=!1,o=!1,a=!1;for(let c=0;c<i.length;c++){let u=i[c];s&&/[a-zA-Z]/.test(u)&&u.toUpperCase()===u?(i=i.substr(0,c)+"-"+i.substr(c),s=!1,a=o,o=!0,c++):o&&a&&/[a-zA-Z]/.test(u)&&u.toLowerCase()===u?(i=i.substr(0,c-1)+"-"+i.substr(c-1),a=o,o=!1,s=!0):(s=u.toLowerCase()===u,a=o,o=u.toUpperCase()===u)}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,c,u){var f=n(a),l=i(f.length),h=s(u,l),d;if(o&&c!=c){for(;l>h;)if(d=f[h++],d!=d)return!0}else for(;l>h;h++)if((o||h in f)&&f[h]===c)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),c=r(203),u={},f={},l=e.exports=function(h,d,p,g,y){var x=y?function(){return h}:c(h),S=n(p,g,d?2:1),I=0,R,w,D,L;if(typeof x!="function")throw TypeError(h+" is not iterable!");if(s(x)){for(R=a(h.length);R>I;I++)if(L=d?S(o(w=h[I])[0],w[1]):S(h[I]),L===u||L===f)return L}else for(D=x.call(h);!(w=D.next()).done;)if(L=i(D,S,w.value,d),L===u||L===f)return L};l.BREAK=u,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(u){var c=i.return;throw c!==void 0&&n(c.call(i)),u}}},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,c,u){a.prototype=n(o,{next:i(1,u)}),s(a,c+" 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 c=!1;try{var u=[7],f=u[n]();f.next=function(){return{done:c=!0}},u[n]=function(){return f},o(u)}catch{}return c}},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,c=r(47)(o)=="process";e.exports=function(){var u,f,l,h=function(){var y,x;for(c&&(y=o.domain)&&y.exit();u;){x=u.fn,u=u.next;try{x()}catch(S){throw u?l():f=void 0,S}}f=void 0,y&&y.enter()};if(c)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 g=a.resolve(void 0);l=function(){g.then(h)}}else l=function(){i.call(n,h)};return function(y){var x={fn:y,next:void 0};f&&(f.next=x),u||(u=x,l()),f=x}}},function(e,t,r){var n=r(27),i=r(193),s=r(101),o=r(72)("IE_PROTO"),a=function(){},c="prototype",u=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(),u=p.F;l--;)delete u[c][s[l]];return u()};e.exports=Object.create||function(l,h){var d;return l!==null?(a[c]=n(l),d=new a,a[c]=null,d[o]=l):d=u(),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,c){i(a);for(var u=s(c),f=u.length,l=0,h;f>l;)n.f(a,h=u[l++],c[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,c){var u=i(a),f=0,l=[],h;for(h in u)h!=o&&n(u,h)&&l.push(h);for(;c.length>f;)n(u,h=c[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(c){var u=typeof i[c]=="function"?i[c]:n[c];o&&u&&!u[a]&&s.f(u,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 c=String(i(o)),u=n(a),f=c.length,l,h;return u<0||u>=f?s?"":void 0:(l=c.charCodeAt(u),l<55296||l>56319||u+1===f||(h=c.charCodeAt(u+1))<56320||h>57343?s?c.charAt(u):l:s?c.slice(u,u+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,c){this._t=o(a),this._i=0,this._k=c},function(){var a=this._t,c=this._k,u=this._i++;return!a||u>=a.length?(this._t=void 0,i(1)):c=="keys"?i(0,u):c=="values"?i(0,a[u]):i(0,[u,a[u]])},"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),c=r(34),u=r(46),f=r(181),l=r(183),h=r(108),d=r(109).set,p=r(191)(),g=r(70),y=r(104),x=r(202),S=r(105),I="Promise",R=i.TypeError,w=i.process,D=w&&w.versions,L=D&&D.v8||"",_=i[I],$=o(w)=="process",O=function(){},m,v,E,C,A=v=g.f,b=!!function(){try{var G=_.resolve(1),H=(G.constructor={})[r(13)("species")]=function(q){q(O,O)};return($||typeof PromiseRejectionEvent=="function")&&G.then(O)instanceof H&&L.indexOf("6.6")!==0&&x.indexOf("Chrome/66")===-1}catch{}}(),T=function(G){var H;return c(G)&&typeof(H=G.then)=="function"?H:!1},N=function(G,H){if(!G._n){G._n=!0;var q=G._c;p(function(){for(var Z=G._v,ee=G._s==1,U=0,re=function(Y){var ue=ee?Y.ok:Y.fail,ve=Y.resolve,Fe=Y.reject,k=Y.domain,j,K,z;try{ue?(ee||(G._h==2&&V(G),G._h=1),ue===!0?j=Z:(k&&k.enter(),j=ue(Z),k&&(k.exit(),z=!0)),j===Y.promise?Fe(R("Promise-chain cycle")):(K=T(j))?K.call(j,ve,Fe):ve(j)):Fe(Z)}catch(B){k&&!z&&k.exit(),Fe(B)}};q.length>U;)re(q[U++]);G._c=[],G._n=!1,H&&!G._h&&M(G)})}},M=function(G){d.call(i,function(){var H=G._v,q=W(G),Z,ee,U;if(q&&(Z=y(function(){$?w.emit("unhandledRejection",H,G):(ee=i.onunhandledrejection)?ee({promise:G,reason:H}):(U=i.console)&&U.error&&U.error("Unhandled promise rejection",H)}),G._h=$||W(G)?2:1),G._a=void 0,q&&Z.e)throw Z.v})},W=function(G){return G._h!==1&&(G._a||G._c).length===0},V=function(G){d.call(i,function(){var H;$?w.emit("rejectionHandled",G):(H=i.onrejectionhandled)&&H({promise:G,reason:G._v})})},X=function(G){var H=this;H._d||(H._d=!0,H=H._w||H,H._v=G,H._s=2,H._a||(H._a=H._c.slice()),N(H,!0))},he=function(G){var H=this,q;if(!H._d){H._d=!0,H=H._w||H;try{if(H===G)throw R("Promise can't be resolved itself");(q=T(G))?p(function(){var Z={_w:H,_d:!1};try{q.call(G,s(he,Z,1),s(X,Z,1))}catch(ee){X.call(Z,ee)}}):(H._v=G,H._s=1,N(H,!1))}catch(Z){X.call({_w:H,_d:!1},Z)}}};b||(_=function(H){f(this,_,I,"_h"),u(H),m.call(this);try{H(s(he,this,1),s(X,this,1))}catch(q){X.call(this,q)}},m=function(H){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},m.prototype=r(196)(_.prototype,{then:function(H,q){var Z=A(h(this,_));return Z.ok=typeof H=="function"?H:!0,Z.fail=typeof q=="function"&&q,Z.domain=$?w.domain:void 0,this._c.push(Z),this._a&&this._a.push(Z),this._s&&N(this,!1),Z.promise},catch:function(G){return this.then(void 0,G)}}),E=function(){var G=new m;this.promise=G,this.resolve=s(he,G,1),this.reject=s(X,G,1)},g.f=A=function(G){return G===_||G===C?new E(G):v(G)}),a(a.G+a.W+a.F*!b,{Promise:_}),r(71)(_,I),r(198)(I),C=r(23)[I],a(a.S+a.F*!b,I,{reject:function(H){var q=A(this),Z=q.reject;return Z(H),q.promise}}),a(a.S+a.F*(n||!b),I,{resolve:function(H){return S(n&&this===C?_:this,H)}}),a(a.S+a.F*!(b&&r(189)(function(G){_.all(G).catch(O)})),I,{all:function(H){var q=this,Z=A(q),ee=Z.resolve,U=Z.reject,re=y(function(){var Y=[],ue=0,ve=1;l(H,!1,function(Fe){var k=ue++,j=!1;Y.push(void 0),ve++,q.resolve(Fe).then(function(K){j||(j=!0,Y[k]=K,--ve||ee(Y))},U)}),--ve||ee(Y)});return re.e&&U(re.v),Z.promise},race:function(H){var q=this,Z=A(q),ee=Z.reject,U=y(function(){l(H,!1,function(re){q.resolve(re).then(Z.resolve,ee)})});return U.e&&ee(U.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(c){var u=o(this,i.Promise||s.Promise),f=typeof c=="function";return this.then(f?function(l){return a(u,c()).then(function(){return l})}:c,f?function(l){return a(u,c()).then(function(){throw l})}:c)}})},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),c=s(o);return(c.e?a.reject:a.resolve)(c.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(","),c=0;c<a.length;c++){var u=a[c],f=n[u],l=f&&f.prototype;l&&!l[o]&&i(l,o,u),s[u]=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:c(),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(u){try{return JSON.stringify(u)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function i(u){var f=this.useColors;if(u[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+u[0]+(f?"%c ":" ")+"+"+t.humanize(this.diff),!!f){var l="color: "+this.color;u.splice(1,0,l,"color: inherit");var h=0,d=0;u[0].replace(/%[a-zA-Z%]/g,function(p){p!=="%%"&&(h++,p==="%c"&&(d=h))}),u.splice(d,0,l)}}function s(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(u){try{u==null?t.storage.removeItem("debug"):t.storage.debug=u}catch{}}function a(){var u;try{u=t.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}t.enable(a());function c(){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=u,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 g=p.substring(6).toLowerCase().replace(/_([a-z])/g,function(x,S){return S.toUpperCase()}),y=process.env[p];return/^(yes|on|true|enabled)$/i.test(y)?y=!0:/^(no|off|false|disabled)$/i.test(y)?y=!1:y==="null"?y=null:y=Number(y),d[g]=y,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(`
|
|
91
|
+
`).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,g=this.useColors;if(g){var y=this.color,x="\x1B[3"+(y<8?y:"8;5;"+y),S=" "+x+";1m"+p+" \x1B[0m";d[0]=S+d[0].split(`
|
|
89
92
|
`).join(`
|
|
90
|
-
`+
|
|
91
|
-
`)}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
|
|
92
|
-
See: https://github.com/isaacs/node-glob/issues/167`);return new
|
|
93
|
-
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof T))return new T(w,P);if(E(this,w,P),this.noprocess)return this;var O=this.minimatch.set.length;this.matches=new Array(O);for(var R=0;R<O;R++)this._process(this.minimatch.set[R],R,!1);this._finish()}T.prototype._finish=function(){if(f(this instanceof T),this.realpath){var w=this;this.matches.forEach(function(P,O){var R=w.matches[O]=Object.create(null);for(var L in P)try{L=w._makeAbs(L);var C=i.realpathSync(L,w.realpathCache);R[C]=!0}catch(p){if(p.syscall==="stat")R[w._makeAbs(L)]=!0;else throw p}})}h.finish(this)},T.prototype._process=function(w,P,O){f(this instanceof T);for(var R=0;typeof w[R]=="string";)R++;var L;switch(R){case w.length:this._processSimple(w.join("/"),P);return;case 0:L=null;break;default:L=w.slice(0,R).join("/");break}var C=w.slice(R),p;L===null?p=".":((l(L)||l(w.join("/")))&&(!L||!l(L))&&(L="/"+L),p=L);var m=this._makeAbs(p);if(!F(this,p)){var v=C[0]===s.GLOBSTAR;v?this._processGlobStar(L,p,m,C,P,O):this._processReaddir(L,p,m,C,P,O)}},T.prototype._processReaddir=function(w,P,O,R,L,C){var p=this._readdir(O,C);if(p){for(var m=R[0],v=!!this.minimatch.negate,S=m._glob,A=this.dot||S.charAt(0)===".",b=[],k=0;k<p.length;k++){var N=p[k];if(N.charAt(0)!=="."||A){var M;v&&!w?M=!N.match(m):M=N.match(m),M&&b.push(N)}}var G=b.length;if(G!==0){if(R.length===1&&!this.mark&&!this.stat){this.matches[L]||(this.matches[L]=Object.create(null));for(var k=0;k<G;k++){var N=b[k];w&&(w.slice(-1)!=="/"?N=w+"/"+N:N=w+N),N.charAt(0)==="/"&&!this.nomount&&(N=c.join(this.root,N)),this._emitMatch(L,N)}return}R.shift();for(var k=0;k<G;k++){var N=b[k],V;w?V=[w,N]:V=[N],this._process(V.concat(R),L,C)}}}},T.prototype._emitMatch=function(w,P){if(!_(this,P)){var O=this._makeAbs(P);if(this.mark&&(P=this._mark(P)),this.absolute&&(P=O),!this.matches[w][P]){if(this.nodir){var R=this.cache[O];if(R==="DIR"||Array.isArray(R))return}this.matches[w][P]=!0,this.stat&&this._stat(P)}}},T.prototype._readdirInGlobStar=function(w){if(this.follow)return this._readdir(w,!1);var P,O,R;try{O=n.lstatSync(w)}catch(C){if(C.code==="ENOENT")return null}var L=O&&O.isSymbolicLink();return this.symlinks[w]=L,!L&&O&&!O.isDirectory()?this.cache[w]="FILE":P=this._readdir(w,!1),P},T.prototype._readdir=function(w,P){var O;if(P&&!y(this.symlinks,w))return this._readdirInGlobStar(w);if(y(this.cache,w)){var R=this.cache[w];if(!R||R==="FILE")return null;if(Array.isArray(R))return R}try{return this._readdirEntries(w,n.readdirSync(w))}catch(L){return this._readdirError(w,L),null}},T.prototype._readdirEntries=function(w,P){if(!this.mark&&!this.stat)for(var O=0;O<P.length;O++){var R=P[O];w==="/"?R=w+R:R=w+"/"+R,this.cache[R]=!0}return this.cache[w]=P,P},T.prototype._readdirError=function(w,P){switch(P.code){case"ENOTSUP":case"ENOTDIR":var O=this._makeAbs(w);if(this.cache[O]="FILE",O===this.cwdAbs){var R=new Error(P.code+" invalid cwd "+this.cwd);throw R.path=this.cwd,R.code=P.code,R}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(w)]=!1;break;default:if(this.cache[this._makeAbs(w)]=!1,this.strict)throw P;this.silent||console.error("glob error",P);break}},T.prototype._processGlobStar=function(w,P,O,R,L,C){var p=this._readdir(O,C);if(p){var m=R.slice(1),v=w?[w]:[],S=v.concat(m);this._process(S,L,!1);var A=p.length,b=this.symlinks[O];if(!(b&&C))for(var k=0;k<A;k++){var N=p[k];if(!(N.charAt(0)==="."&&!this.dot)){var M=v.concat(p[k],m);this._process(M,L,!0);var G=v.concat(p[k],R);this._process(G,L,!0)}}}},T.prototype._processSimple=function(w,P){var O=this._stat(w);if(this.matches[P]||(this.matches[P]=Object.create(null)),!!O){if(w&&l(w)&&!this.nomount){var R=/[\/\\]$/.test(w);w.charAt(0)==="/"?w=c.join(this.root,w):(w=c.resolve(this.root,w),R&&(w+="/"))}process.platform==="win32"&&(w=w.replace(/\\/g,"/")),this._emitMatch(P,w)}},T.prototype._stat=function(w){var P=this._makeAbs(w),O=w.slice(-1)==="/";if(w.length>this.maxLength)return!1;if(!this.stat&&y(this.cache,P)){var p=this.cache[P];if(Array.isArray(p)&&(p="DIR"),!O||p==="DIR")return p;if(O&&p==="FILE")return!1}var R,L=this.statCache[P];if(!L){var C;try{C=n.lstatSync(P)}catch(m){if(m&&(m.code==="ENOENT"||m.code==="ENOTDIR"))return this.statCache[P]=!1,!1}if(C&&C.isSymbolicLink())try{L=n.statSync(P)}catch{L=C}else L=C}this.statCache[P]=L;var p=!0;return L&&(p=L.isDirectory()?"DIR":"FILE"),this.cache[P]=this.cache[P]||p,O&&p==="FILE"?!1:p},T.prototype._mark=function(w){return h.mark(this,w)},T.prototype._makeAbs=function(w){return h.makeAbs(this,w)}},,,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 g=0;g<h;g++)l[g].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]),g=(h[2]||"ms").toLowerCase();switch(g){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=_;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(w){var P=["unlink","chmod","stat","lstat","rmdir","readdir"];P.forEach(function(O){w[O]=w[O]||s[O],O=O+"Sync",w[O]=w[O]||s[O]}),w.maxBusyTries=w.maxBusyTries||3,w.emfileWait=w.emfileWait||1e3,w.glob===!1&&(w.disableGlob=!0),w.disableGlob=w.disableGlob||!1,w.glob=w.glob||u}function h(w,P,O){typeof P=="function"&&(O=P,P={}),n(w,"rimraf: missing path"),n.equal(typeof w,"string","rimraf: path should be a string"),n.equal(typeof O,"function","rimraf: callback function required"),n(P,"rimraf: invalid options argument provided"),n.equal(typeof P,"object","rimraf: options should be object"),l(P);var R=0,L=null,C=0;if(P.disableGlob||!o.hasMagic(w))return m(null,[w]);P.lstat(w,function(v,S){if(!v)return m(null,[w]);o(w,P.glob,m)});function p(v){L=L||v,--C===0&&O(L)}function m(v,S){if(v)return O(v);if(C=S.length,C===0)return O();S.forEach(function(A){d(A,P,function b(k){if(k){if((k.code==="EBUSY"||k.code==="ENOTEMPTY"||k.code==="EPERM")&&R<P.maxBusyTries){R++;var N=R*100;return setTimeout(function(){d(A,P,b)},N)}if(k.code==="EMFILE"&&c<P.emfileWait)return setTimeout(function(){d(A,P,b)},c++);k.code==="ENOENT"&&(k=null)}c=0,p(k)})})}}function d(w,P,O){n(w),n(P),n(typeof O=="function"),P.lstat(w,function(R,L){if(R&&R.code==="ENOENT")return O(null);if(R&&R.code==="EPERM"&&f&&g(w,P,R,O),L&&L.isDirectory())return y(w,P,R,O);P.unlink(w,function(C){if(C){if(C.code==="ENOENT")return O(null);if(C.code==="EPERM")return f?g(w,P,C,O):y(w,P,C,O);if(C.code==="EISDIR")return y(w,P,C,O)}return O(C)})})}function g(w,P,O,R){n(w),n(P),n(typeof R=="function"),O&&n(O instanceof Error),P.chmod(w,a,function(L){L?R(L.code==="ENOENT"?null:O):P.stat(w,function(C,p){C?R(C.code==="ENOENT"?null:O):p.isDirectory()?y(w,P,O,R):P.unlink(w,R)})})}function E(w,P,O){n(w),n(P),O&&n(O instanceof Error);try{P.chmodSync(w,a)}catch(L){if(L.code==="ENOENT")return;throw O}try{var R=P.statSync(w)}catch(L){if(L.code==="ENOENT")return;throw O}R.isDirectory()?j(w,P,O):P.unlinkSync(w)}function y(w,P,O,R){n(w),n(P),O&&n(O instanceof Error),n(typeof R=="function"),P.rmdir(w,function(L){L&&(L.code==="ENOTEMPTY"||L.code==="EEXIST"||L.code==="EPERM")?F(w,P,R):L&&L.code==="ENOTDIR"?R(O):R(L)})}function F(w,P,O){n(w),n(P),n(typeof O=="function"),P.readdir(w,function(R,L){if(R)return O(R);var C=L.length;if(C===0)return P.rmdir(w,O);var p;L.forEach(function(m){h(i.join(w,m),P,function(v){if(!p){if(v)return O(p=v);--C===0&&P.rmdir(w,O)}})})})}function _(w,P){P=P||{},l(P),n(w,"rimraf: missing path"),n.equal(typeof w,"string","rimraf: path should be a string"),n(P,"rimraf: missing options"),n.equal(typeof P,"object","rimraf: options should be object");var O;if(P.disableGlob||!o.hasMagic(w))O=[w];else try{P.lstatSync(w),O=[w]}catch{O=o.sync(w,P.glob)}if(O.length)for(var R=0;R<O.length;R++){var w=O[R];try{var L=P.lstatSync(w)}catch(p){if(p.code==="ENOENT")return;p.code==="EPERM"&&f&&E(w,P,p)}try{L&&L.isDirectory()?j(w,P,null):P.unlinkSync(w)}catch(p){if(p.code==="ENOENT")return;if(p.code==="EPERM")return f?E(w,P,p):j(w,P,p);if(p.code!=="EISDIR")throw p;j(w,P,p)}}}function j(w,P,O){n(w),n(P),O&&n(O instanceof Error);try{P.rmdirSync(w)}catch(R){if(R.code==="ENOENT")return;if(R.code==="ENOTDIR")throw O;(R.code==="ENOTEMPTY"||R.code==="EEXIST"||R.code==="EPERM")&&T(w,P)}}function T(w,P){n(w),n(P),P.readdirSync(w).forEach(function(p){_(i.join(w,p),P)});var O=f?100:1,R=0;do{var L=!0;try{var C=P.rmdirSync(w,P);return L=!1,C}finally{if(++R<O&&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 L_=D(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.queryLockFile=void 0;var G3=xo();function U3(e,t,r){let n=(0,G3.nameAtVersion)(e,t);return r.object[n]}Ku.queryLockFile=U3});var M_=D(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0})});var H_=D(Ze=>{"use strict";var B_=Ze&&Ze.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Y3=Ze&&Ze.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),z3=Ze&&Ze.__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)&&B_(t,e,r);return Y3(t,e),t},V3=Ze&&Ze.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&B_(t,e,r)},q_=Ze&&Ze.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.queryLockFile=Ze.nameAtVersion=Ze.parseLockFile=void 0;var Ep=q_(Bi()),$_=q_(require("fs")),K3=xo();Object.defineProperty(Ze,"nameAtVersion",{enumerable:!0,get:function(){return K3.nameAtVersion}});var X3=k_(),Q3=T_(),J3=ep(),hr={};async function Z3(e){let t=await(0,Ep.default)(["yarn.lock","common/config/rush/yarn.lock"],{cwd:e});if(t){if(hr[t])return hr[t];let i=(await Promise.resolve().then(()=>z3(N_()))).parse,s=$_.default.readFileSync(t,"utf-8"),o=i(s);return hr[t]=o,o}let r=await(0,Ep.default)(["pnpm-lock.yaml","common/config/rush/pnpm-lock.yaml"],{cwd:e});if(r){if(hr[r])return hr[r];let i=(0,J3.readYaml)(r),s=(0,X3.parsePnpmLock)(i);return hr[r]=s,hr[r]}let n=await(0,Ep.default)(["package-lock.json"],{cwd:e});if(n){if(hr[n])return hr[n];let i;try{i=$_.default.readFileSync(n,"utf-8")}catch{throw new Error("Couldn\u2019t parse 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 hr[n]=(0,Q3.parseNpmLock)(s),hr[n]}throw new Error("You do not have yarn.lock, pnpm-lock.yaml or package-lock.json. Please use one of these package managers.")}Ze.parseLockFile=Z3;var eq=L_();Object.defineProperty(Ze,"queryLockFile",{enumerable:!0,get:function(){return eq.queryLockFile}});V3(M_(),Ze)});var G_=D(ps=>{"use strict";var tq=ps&&ps.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ps,"__esModule",{value:!0});ps.getScopedPackages=void 0;var W_=tq(no());function rq(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,W_.default)(r,i);for(let a of o)n.add(a)}let s=e.filter(o=>!o.startsWith("@")&&!o.startsWith("!@"));if(s.length>0){let o=nq(r),a=(0,W_.default)(Object.keys(o),s);for(let u of a)for(let c of o[u])n.add(c)}return[...n]}ps.getScopedPackages=rq;function nq(e){let t={};for(let r of e){let n=r.replace(/^@[^/]+\//,"");t[n]=t[n]||[],t[n].push(r)}return t}});var Y_=D(U_=>{"use strict";Object.defineProperty(U_,"__esModule",{value:!0})});var V_=D(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0})});var X_=D(K_=>{"use strict";Object.defineProperty(K_,"__esModule",{value:!0})});var Q_=D(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.findWorkspacePath=void 0;function iq(e,t){let r=e.find(({name:n})=>n===t);if(r)return r.path}Xu.findWorkspacePath=iq});var bp=D(gs=>{"use strict";var J_=gs&&gs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gs,"__esModule",{value:!0});gs.getPackagesByFiles=void 0;var sq=J_(no()),oq=J_(require("path")),aq=Mu();function uq(e,t,r=[],n=!1){let i=(0,aq.getWorkspaces)(e),s=new Set((0,sq.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(oq.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]}gs.getPackagesByFiles=uq});var eC=D(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.getChangedPackages=ms.getChangedPackagesBetweenRefs=void 0;var qr=Hu(),Z_=bp();function cq(e,t,r="",n=[]){let i=[...new Set([...(0,qr.getUntrackedChanges)(e)||[],...(0,qr.getUnstagedChanges)(e)||[],...(0,qr.getChangesBetweenRefs)(t,r,[],"",e)||[],...(0,qr.getStagedChanges)(e)||[]])];return(0,Z_.getPackagesByFiles)(e,i,n,!0)}ms.getChangedPackagesBetweenRefs=cq;function lq(e,t,r=[]){let n=t||(0,qr.getDefaultRemoteBranch)({cwd:e}),i=[...new Set([...(0,qr.getUntrackedChanges)(e)||[],...(0,qr.getUnstagedChanges)(e)||[],...(0,qr.getBranchChanges)(n,e)||[],...(0,qr.getStagedChanges)(e)||[]])];return(0,Z_.getPackagesByFiles)(e,i,r,!0)}ms.getChangedPackages=lq});var tC=D(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.listOfWorkspacePackageNames=void 0;function fq(e){return e.map(({name:t})=>t)}Qu.listOfWorkspacePackageNames=fq});var rC=D(Le=>{"use strict";var hq=Le&&Le.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Xe=Le&&Le.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&hq(t,e,r)};Object.defineProperty(Le,"__esModule",{value:!0});Xe(DA(),Le);Xe(r_(),Le);Xe(Hu(),Le);Xe(D_(),Le);Xe(H_(),Le);Xe(dp(),Le);Xe(G_(),Le);Xe(Y_(),Le);Xe(V_(),Le);Xe(X_(),Le);Xe(Q_(),Le);Xe(Mu(),Le);Xe(hp(),Le);Xe(Ru(),Le);Xe(Nu(),Le);Xe(Eu(),Le);Xe(eC(),Le);Xe(bp(),Le);Xe(tC(),Le);Xe(lp(),Le)});var M6={};Px(M6,{run:()=>bx});module.exports=Dx(M6);var Os=require("os");var Io=require("os"),xr=()=>(0,Io.platform)()==="linux"&&(0,Io.release)().toLowerCase().includes("wsl");var No=()=>{let e={win32:["x64"],darwin:["x64","arm64"]};return xr()||e[(0,Os.platform)()]&&e[(0,Os.platform)()].includes((0,Os.arch)())};var kx=[!0,"true","TRUE",1],Wp=()=>{let e=process.env.CODESPACES||"";return kx.includes(e)};var Lo=require("os");var mi=(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",xr()?"wsl":(0,Lo.platform)()),n.set("arch",(0,Lo.arch)()),r&&(r.LogEvent("node-azure-auth",n),t&&r.flush())};var gc=require("os");var Go=require("assert");var Tx={right:Mx,center:$x},Ix=0,jo=1,Nx=2,Mo=3,vc=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(`
|
|
94
|
-
`).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&
|
|
95
|
-
`)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((o,a)=>{let{width:
|
|
93
|
+
`+S),d.push(x+"m+"+t.humanize(this.diff)+"\x1B[0m")}else d[0]=c()+p+" "+d[0]}function c(){return t.inspectOpts.hideDate?"":new Date().toISOString()+" "}function u(){return process.stderr.write(i.format.apply(i,arguments)+`
|
|
94
|
+
`)}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),g=0;g<p.length;g++)d.inspectOpts[p[g]]=t.inspectOpts[p[g]]}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=g;return h;function p(y){y&&(d.message=y.message,y=d,g(y))}function g(y){if(y){if(process.throwDeprecation)throw y;if(!process.noDeprecation){var x="fs: missing callback "+(y.stack||y.message);process.traceDeprecation?console.trace(x):console.error(x)}}}}function c(h){return typeof h=="function"?h:a()}var u=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 g=d,y={},x={},S,I,R,w;D();function D(){var v=l.exec(d);S=v[0].length,I=v[0],R=v[0],w="",i&&!x[R]&&(s.lstatSync(R),x[R]=!0)}for(;S<d.length;){f.lastIndex=S;var L=f.exec(d);if(w=I,I+=L[0],R=w+L[1],S=f.lastIndex,!(x[R]||p&&p[R]===R)){var _;if(p&&Object.prototype.hasOwnProperty.call(p,R))_=p[R];else{var $=s.lstatSync(R);if(!$.isSymbolicLink()){x[R]=!0,p&&(p[R]=R);continue}var O=null;if(!i){var m=$.dev.toString(32)+":"+$.ino.toString(32);y.hasOwnProperty(m)&&(O=y[m])}O===null&&(s.statSync(R),O=s.readlinkSync(R)),_=n.resolve(w,O),p&&(p[R]=_),i||(y[m]=O)}d=n.resolve(_,d.slice(S)),D()}}return p&&(p[g]=d),d},t.realpath=function(d,p,g){if(typeof g!="function"&&(g=c(p),p=null),d=n.resolve(d),p&&Object.prototype.hasOwnProperty.call(p,d))return process.nextTick(g.bind(null,null,p[d]));var y=d,x={},S={},I,R,w,D;L();function L(){var v=l.exec(d);I=v[0].length,R=v[0],w=v[0],D="",i&&!S[w]?s.lstat(w,function(E){if(E)return g(E);S[w]=!0,_()}):process.nextTick(_)}function _(){if(I>=d.length)return p&&(p[y]=d),g(null,d);f.lastIndex=I;var v=f.exec(d);return D=R,R+=v[0],w=D+v[1],I=f.lastIndex,S[w]||p&&p[w]===w?process.nextTick(_):p&&Object.prototype.hasOwnProperty.call(p,w)?m(p[w]):s.lstat(w,$)}function $(v,E){if(v)return g(v);if(!E.isSymbolicLink())return S[w]=!0,p&&(p[w]=w),process.nextTick(_);if(!i){var C=E.dev.toString(32)+":"+E.ino.toString(32);if(x.hasOwnProperty(C))return O(null,x[C],w)}s.stat(w,function(A){if(A)return g(A);s.readlink(w,function(b,T){i||(x[C]=T),O(b,T)})})}function O(v,E,C){if(v)return g(v);var A=n.resolve(D,E);p&&(p[C]=A),m(A)}function m(v){d=n.resolve(v,d.slice(I)),L()}}},function(e,t,r){e.exports=I,I.GlobSync=R;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(75).Glob,c=r(2),u=r(0),f=r(22),l=r(76),h=r(115),d=h.alphasort,p=h.alphasorti,g=h.setopts,y=h.ownProp,x=h.childrenIgnored,S=h.isIgnored;function I(w,D){if(typeof D=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
95
|
+
See: https://github.com/isaacs/node-glob/issues/167`);return new R(w,D).found}function R(w,D){if(!w)throw new Error("must provide pattern");if(typeof D=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
96
|
+
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof R))return new R(w,D);if(g(this,w,D),this.noprocess)return this;var L=this.minimatch.set.length;this.matches=new Array(L);for(var _=0;_<L;_++)this._process(this.minimatch.set[_],_,!1);this._finish()}R.prototype._finish=function(){if(f(this instanceof R),this.realpath){var w=this;this.matches.forEach(function(D,L){var _=w.matches[L]=Object.create(null);for(var $ in D)try{$=w._makeAbs($);var O=i.realpathSync($,w.realpathCache);_[O]=!0}catch(m){if(m.syscall==="stat")_[w._makeAbs($)]=!0;else throw m}})}h.finish(this)},R.prototype._process=function(w,D,L){f(this instanceof R);for(var _=0;typeof w[_]=="string";)_++;var $;switch(_){case w.length:this._processSimple(w.join("/"),D);return;case 0:$=null;break;default:$=w.slice(0,_).join("/");break}var O=w.slice(_),m;$===null?m=".":((l($)||l(w.join("/")))&&(!$||!l($))&&($="/"+$),m=$);var v=this._makeAbs(m);if(!x(this,m)){var E=O[0]===s.GLOBSTAR;E?this._processGlobStar($,m,v,O,D,L):this._processReaddir($,m,v,O,D,L)}},R.prototype._processReaddir=function(w,D,L,_,$,O){var m=this._readdir(L,O);if(m){for(var v=_[0],E=!!this.minimatch.negate,C=v._glob,A=this.dot||C.charAt(0)===".",b=[],T=0;T<m.length;T++){var N=m[T];if(N.charAt(0)!=="."||A){var M;E&&!w?M=!N.match(v):M=N.match(v),M&&b.push(N)}}var W=b.length;if(W!==0){if(_.length===1&&!this.mark&&!this.stat){this.matches[$]||(this.matches[$]=Object.create(null));for(var T=0;T<W;T++){var N=b[T];w&&(w.slice(-1)!=="/"?N=w+"/"+N:N=w+N),N.charAt(0)==="/"&&!this.nomount&&(N=u.join(this.root,N)),this._emitMatch($,N)}return}_.shift();for(var T=0;T<W;T++){var N=b[T],V;w?V=[w,N]:V=[N],this._process(V.concat(_),$,O)}}}},R.prototype._emitMatch=function(w,D){if(!S(this,D)){var L=this._makeAbs(D);if(this.mark&&(D=this._mark(D)),this.absolute&&(D=L),!this.matches[w][D]){if(this.nodir){var _=this.cache[L];if(_==="DIR"||Array.isArray(_))return}this.matches[w][D]=!0,this.stat&&this._stat(D)}}},R.prototype._readdirInGlobStar=function(w){if(this.follow)return this._readdir(w,!1);var D,L,_;try{L=n.lstatSync(w)}catch(O){if(O.code==="ENOENT")return null}var $=L&&L.isSymbolicLink();return this.symlinks[w]=$,!$&&L&&!L.isDirectory()?this.cache[w]="FILE":D=this._readdir(w,!1),D},R.prototype._readdir=function(w,D){var L;if(D&&!y(this.symlinks,w))return this._readdirInGlobStar(w);if(y(this.cache,w)){var _=this.cache[w];if(!_||_==="FILE")return null;if(Array.isArray(_))return _}try{return this._readdirEntries(w,n.readdirSync(w))}catch($){return this._readdirError(w,$),null}},R.prototype._readdirEntries=function(w,D){if(!this.mark&&!this.stat)for(var L=0;L<D.length;L++){var _=D[L];w==="/"?_=w+_:_=w+"/"+_,this.cache[_]=!0}return this.cache[w]=D,D},R.prototype._readdirError=function(w,D){switch(D.code){case"ENOTSUP":case"ENOTDIR":var L=this._makeAbs(w);if(this.cache[L]="FILE",L===this.cwdAbs){var _=new Error(D.code+" invalid cwd "+this.cwd);throw _.path=this.cwd,_.code=D.code,_}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(w)]=!1;break;default:if(this.cache[this._makeAbs(w)]=!1,this.strict)throw D;this.silent||console.error("glob error",D);break}},R.prototype._processGlobStar=function(w,D,L,_,$,O){var m=this._readdir(L,O);if(m){var v=_.slice(1),E=w?[w]:[],C=E.concat(v);this._process(C,$,!1);var A=m.length,b=this.symlinks[L];if(!(b&&O))for(var T=0;T<A;T++){var N=m[T];if(!(N.charAt(0)==="."&&!this.dot)){var M=E.concat(m[T],v);this._process(M,$,!0);var W=E.concat(m[T],_);this._process(W,$,!0)}}}},R.prototype._processSimple=function(w,D){var L=this._stat(w);if(this.matches[D]||(this.matches[D]=Object.create(null)),!!L){if(w&&l(w)&&!this.nomount){var _=/[\/\\]$/.test(w);w.charAt(0)==="/"?w=u.join(this.root,w):(w=u.resolve(this.root,w),_&&(w+="/"))}process.platform==="win32"&&(w=w.replace(/\\/g,"/")),this._emitMatch(D,w)}},R.prototype._stat=function(w){var D=this._makeAbs(w),L=w.slice(-1)==="/";if(w.length>this.maxLength)return!1;if(!this.stat&&y(this.cache,D)){var m=this.cache[D];if(Array.isArray(m)&&(m="DIR"),!L||m==="DIR")return m;if(L&&m==="FILE")return!1}var _,$=this.statCache[D];if(!$){var O;try{O=n.lstatSync(D)}catch(v){if(v&&(v.code==="ENOENT"||v.code==="ENOTDIR"))return this.statCache[D]=!1,!1}if(O&&O.isSymbolicLink())try{$=n.statSync(D)}catch{$=O}else $=O}this.statCache[D]=$;var m=!0;return $&&(m=$.isDirectory()?"DIR":"FILE"),this.cache[D]=this.cache[D]||m,L&&m==="FILE"?!1:m},R.prototype._mark=function(w){return h.mark(this,w)},R.prototype._makeAbs=function(w){return h.makeAbs(this,w)}},,,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(u,f){return i[u]?(i[u].push(f),null):(i[u]=[f],a(u))}function a(u){return s(function f(){var l=i[u],h=l.length,d=c(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[u]}})}function c(u){for(var f=u.length,l=[],h=0;h<f;h++)l[h]=u[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?u(l):c(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 c(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 u(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),c={nosort:!0,silent:!0},u=0,f=process.platform==="win32";function l(w){var D=["unlink","chmod","stat","lstat","rmdir","readdir"];D.forEach(function(L){w[L]=w[L]||s[L],L=L+"Sync",w[L]=w[L]||s[L]}),w.maxBusyTries=w.maxBusyTries||3,w.emfileWait=w.emfileWait||1e3,w.glob===!1&&(w.disableGlob=!0),w.disableGlob=w.disableGlob||!1,w.glob=w.glob||c}function h(w,D,L){typeof D=="function"&&(L=D,D={}),n(w,"rimraf: missing path"),n.equal(typeof w,"string","rimraf: path should be a string"),n.equal(typeof L,"function","rimraf: callback function required"),n(D,"rimraf: invalid options argument provided"),n.equal(typeof D,"object","rimraf: options should be object"),l(D);var _=0,$=null,O=0;if(D.disableGlob||!o.hasMagic(w))return v(null,[w]);D.lstat(w,function(E,C){if(!E)return v(null,[w]);o(w,D.glob,v)});function m(E){$=$||E,--O===0&&L($)}function v(E,C){if(E)return L(E);if(O=C.length,O===0)return L();C.forEach(function(A){d(A,D,function b(T){if(T){if((T.code==="EBUSY"||T.code==="ENOTEMPTY"||T.code==="EPERM")&&_<D.maxBusyTries){_++;var N=_*100;return setTimeout(function(){d(A,D,b)},N)}if(T.code==="EMFILE"&&u<D.emfileWait)return setTimeout(function(){d(A,D,b)},u++);T.code==="ENOENT"&&(T=null)}u=0,m(T)})})}}function d(w,D,L){n(w),n(D),n(typeof L=="function"),D.lstat(w,function(_,$){if(_&&_.code==="ENOENT")return L(null);if(_&&_.code==="EPERM"&&f&&p(w,D,_,L),$&&$.isDirectory())return y(w,D,_,L);D.unlink(w,function(O){if(O){if(O.code==="ENOENT")return L(null);if(O.code==="EPERM")return f?p(w,D,O,L):y(w,D,O,L);if(O.code==="EISDIR")return y(w,D,O,L)}return L(O)})})}function p(w,D,L,_){n(w),n(D),n(typeof _=="function"),L&&n(L instanceof Error),D.chmod(w,a,function($){$?_($.code==="ENOENT"?null:L):D.stat(w,function(O,m){O?_(O.code==="ENOENT"?null:L):m.isDirectory()?y(w,D,L,_):D.unlink(w,_)})})}function g(w,D,L){n(w),n(D),L&&n(L instanceof Error);try{D.chmodSync(w,a)}catch($){if($.code==="ENOENT")return;throw L}try{var _=D.statSync(w)}catch($){if($.code==="ENOENT")return;throw L}_.isDirectory()?I(w,D,L):D.unlinkSync(w)}function y(w,D,L,_){n(w),n(D),L&&n(L instanceof Error),n(typeof _=="function"),D.rmdir(w,function($){$&&($.code==="ENOTEMPTY"||$.code==="EEXIST"||$.code==="EPERM")?x(w,D,_):$&&$.code==="ENOTDIR"?_(L):_($)})}function x(w,D,L){n(w),n(D),n(typeof L=="function"),D.readdir(w,function(_,$){if(_)return L(_);var O=$.length;if(O===0)return D.rmdir(w,L);var m;$.forEach(function(v){h(i.join(w,v),D,function(E){if(!m){if(E)return L(m=E);--O===0&&D.rmdir(w,L)}})})})}function S(w,D){D=D||{},l(D),n(w,"rimraf: missing path"),n.equal(typeof w,"string","rimraf: path should be a string"),n(D,"rimraf: missing options"),n.equal(typeof D,"object","rimraf: options should be object");var L;if(D.disableGlob||!o.hasMagic(w))L=[w];else try{D.lstatSync(w),L=[w]}catch{L=o.sync(w,D.glob)}if(L.length)for(var _=0;_<L.length;_++){var w=L[_];try{var $=D.lstatSync(w)}catch(m){if(m.code==="ENOENT")return;m.code==="EPERM"&&f&&g(w,D,m)}try{$&&$.isDirectory()?I(w,D,null):D.unlinkSync(w)}catch(m){if(m.code==="ENOENT")return;if(m.code==="EPERM")return f?g(w,D,m):I(w,D,m);if(m.code!=="EISDIR")throw m;I(w,D,m)}}}function I(w,D,L){n(w),n(D),L&&n(L instanceof Error);try{D.rmdirSync(w)}catch(_){if(_.code==="ENOENT")return;if(_.code==="ENOTDIR")throw L;(_.code==="ENOTEMPTY"||_.code==="EEXIST"||_.code==="EPERM")&&R(w,D)}}function R(w,D){n(w),n(D),D.readdirSync(w).forEach(function(m){S(i.join(w,m),D)});var L=f?100:1,_=0;do{var $=!0;try{var O=D.rmdirSync(w,D);return $=!1,O}finally{if(++_<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 uR=P(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.queryLockFile=void 0;var W8=wa();function H8(e,t,r){let n=(0,W8.nameAtVersion)(e,t);return r.object[n]}Pl.queryLockFile=H8});var lR=P(cR=>{"use strict";Object.defineProperty(cR,"__esModule",{value:!0})});var pR=P(st=>{"use strict";var hR=st&&st.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),z8=st&&st.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Y8=st&&st.__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)&&hR(t,e,r);return z8(t,e),t},V8=st&&st.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&hR(t,e,r)},dR=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(st,"__esModule",{value:!0});st.queryLockFile=st.nameAtVersion=st.parseLockFile=void 0;var Ng=dR(ls()),fR=dR(require("fs")),K8=wa();Object.defineProperty(st,"nameAtVersion",{enumerable:!0,get:function(){return K8.nameAtVersion}});var X8=iR(),J8=sR(),Q8=gg(),Pr={};async function Z8(e){let t=await(0,Ng.default)(["yarn.lock","common/config/rush/yarn.lock"],{cwd:e});if(t){if(Pr[t])return Pr[t];let i=(await Promise.resolve().then(()=>Y8(aR()))).parse,s=fR.default.readFileSync(t,"utf-8"),o=i(s);return Pr[t]=o,o}let r=await(0,Ng.default)(["pnpm-lock.yaml","common/config/rush/pnpm-lock.yaml"],{cwd:e});if(r){if(Pr[r])return Pr[r];let i=(0,Q8.readYaml)(r),s=(0,X8.parsePnpmLock)(i);return Pr[r]=s,Pr[r]}let n=await(0,Ng.default)(["package-lock.json"],{cwd:e});if(n){if(Pr[n])return Pr[n];let i;try{i=fR.default.readFileSync(n,"utf-8")}catch{throw new Error("Couldn\u2019t parse 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 Pr[n]=(0,J8.parseNpmLock)(s),Pr[n]}throw new Error("You do not have yarn.lock, pnpm-lock.yaml or package-lock.json. Please use one of these package managers.")}st.parseLockFile=Z8;var e4=uR();Object.defineProperty(st,"queryLockFile",{enumerable:!0,get:function(){return e4.queryLockFile}});V8(lR(),st)});var gR=P(Ms=>{"use strict";var t4=Ms&&Ms.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ms,"__esModule",{value:!0});Ms.getScopedPackages=void 0;var mR=t4(Zo());function r4(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,mR.default)(r,i);for(let a of o)n.add(a)}let s=e.filter(o=>!o.startsWith("@")&&!o.startsWith("!@"));if(s.length>0){let o=n4(r),a=(0,mR.default)(Object.keys(o),s);for(let c of a)for(let u of o[c])n.add(u)}return[...n]}Ms.getScopedPackages=r4;function n4(e){let t={};for(let r of e){let n=r.replace(/^@[^/]+\//,"");t[n]=t[n]||[],t[n].push(r)}return t}});var vR=P(yR=>{"use strict";Object.defineProperty(yR,"__esModule",{value:!0})});var AR=P(ER=>{"use strict";Object.defineProperty(ER,"__esModule",{value:!0})});var bR=P(wR=>{"use strict";Object.defineProperty(wR,"__esModule",{value:!0})});var SR=P(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.findWorkspacePath=void 0;function i4(e,t){let r=e.find(({name:n})=>n===t);if(r)return r.path}Rl.findWorkspacePath=i4});var $g=P(js=>{"use strict";var CR=js&&js.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(js,"__esModule",{value:!0});js.getPackagesByFiles=void 0;var s4=CR(Zo()),o4=CR(require("path")),a4=yl();function u4(e,t,r=[],n=!1){let i=(0,a4.getWorkspaces)(e),s=new Set((0,s4.default)(t,r));t=t.filter(a=>!s.has(a));let o=new Set;for(let a of t){let c=i.filter(u=>a.indexOf(o4.default.relative(e,u.path).replace(/\\/g,"/"))===0);if(c&&c.length>0){let u=c.reduce((f,l)=>f.path.length>l.path.length?f:l,c[0]);o.add(u.name)}else if(n)return i.map(u=>u.name)}return[...o]}js.getPackagesByFiles=u4});var OR=P(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.getChangedPackages=Bs.getChangedPackagesBetweenRefs=void 0;var ln=wl(),xR=$g();function c4(e,t,r="",n=[]){let i=[...new Set([...(0,ln.getUntrackedChanges)(e)||[],...(0,ln.getUnstagedChanges)(e)||[],...(0,ln.getChangesBetweenRefs)(t,r,[],"",e)||[],...(0,ln.getStagedChanges)(e)||[]])];return(0,xR.getPackagesByFiles)(e,i,n,!0)}Bs.getChangedPackagesBetweenRefs=c4;function l4(e,t,r=[]){let n=t||(0,ln.getDefaultRemoteBranch)({cwd:e}),i=[...new Set([...(0,ln.getUntrackedChanges)(e)||[],...(0,ln.getUnstagedChanges)(e)||[],...(0,ln.getBranchChanges)(n,e)||[],...(0,ln.getStagedChanges)(e)||[]])];return(0,xR.getPackagesByFiles)(e,i,r,!0)}Bs.getChangedPackages=l4});var _R=P(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.listOfWorkspacePackageNames=void 0;function f4(e){return e.map(({name:t})=>t)}Fl.listOfWorkspacePackageNames=f4});var PR=P(je=>{"use strict";var h4=je&&je.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),rt=je&&je.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&h4(t,e,r)};Object.defineProperty(je,"__esModule",{value:!0});rt(n1(),je);rt(PP(),je);rt(wl(),je);rt(nR(),je);rt(pR(),je);rt(Rg(),je);rt(gR(),je);rt(vR(),je);rt(AR(),je);rt(bR(),je);rt(SR(),je);rt(yl(),je);rt(Pg(),je);rt(ul(),je);rt(pl(),je);rt(Zc(),je);rt(OR(),je);rt($g(),je);rt(_R(),je);rt(Og(),je)});var M7={};rD(M7,{run:()=>YF});module.exports=nD(M7);var Js=require("os");var Ra=require("os"),zr=()=>(0,Ra.platform)()==="linux"&&(0,Ra.release)().toLowerCase().includes("wsl");var Fa=()=>{let e={win32:["x64"],darwin:["x64","arm64"]};return zr()||e[(0,Js.platform)()]&&e[(0,Js.platform)()].includes((0,Js.arch)())};var iD=[!0,"true","TRUE",1],i0=()=>{let e=process.env.CODESPACES||"";return iD.includes(e)};var Da=require("os");var ji=(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",zr()?"wsl":(0,Da.platform)()),n.set("arch",(0,Da.arch)()),r&&(r.LogEvent("node-azure-auth",n),t&&r.flush())};var Kl=require("os");var ja=require("assert");var sD={right:lD,center:fD},oD=0,La=1,aD=2,Ta=3,Ql=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(`
|
|
97
|
+
`).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&Ht.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Ht.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=Ht.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(`
|
|
98
|
+
`)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((o,a)=>{let{width:c}=t[a],u=this.negatePadding(t[a]),f=o;if(u>Ht.stringWidth(o)&&(f+=" ".repeat(u-Ht.stringWidth(o))),t[a].align&&t[a].align!=="left"&&this.wrap){let h=sD[t[a].align];f=h(f,u),Ht.stringWidth(f)<u&&(f+=" ".repeat((c||0)-Ht.stringWidth(f)-1))}let l=t[a].padding||[0,0,0,0];l[Ta]&&(s+=" ".repeat(l[Ta])),s+=s0(t[a],f,"| "),s+=f,s+=s0(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=Ht.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=Ht.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
|
|
96
99
|
`):i=s.text.split(`
|
|
97
|
-
`),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[
|
|
98
|
-
`),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}function Ec(e){return Up(e,{stringWidth:t=>[...t].length,stripAnsi:Ac,wrap:zp})}var yi=require("path"),$o=require("fs");function Vp(e,t){let r=(0,yi.resolve)(".",e),n;for((0,$o.statSync)(r).isDirectory()||(r=(0,yi.dirname)(r));;){if(n=t(r,(0,$o.readdirSync)(r)),n)return(0,yi.resolve)(r,n);if(r=(0,yi.dirname)(n=r),n===r)break}}var lg=require("util"),fg=require("fs"),hg=require("url");var Zp=require("util"),Wo=require("path");function Rn(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 Bo(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 qo(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 Kp(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 qt;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(qt||(qt={}));var Or,Ho=class{constructor(t){Or=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=Kp(t),s=typeof t=="string",o=Bx(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),g=Object.create(null),E=n.__||Or.format,y={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:[]},F=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,_=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(I){let $=typeof I=="object"?I.key:I,K=Object.keys(I).map(function(Y){return{boolean:"bools",string:"strings",number:"numbers"}[Y]}).filter(Boolean).pop();K&&(y[K][$]=!0),y.arrays[$]=!0,y.keys.push($)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(I){y.bools[I]=!0,y.keys.push(I)}),[].concat(n.string||[]).filter(Boolean).forEach(function(I){y.strings[I]=!0,y.keys.push(I)}),[].concat(n.number||[]).filter(Boolean).forEach(function(I){y.numbers[I]=!0,y.keys.push(I)}),[].concat(n.count||[]).filter(Boolean).forEach(function(I){y.counts[I]=!0,y.keys.push(I)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(I){y.normalize[I]=!0,y.keys.push(I)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([I,$])=>{typeof $=="number"&&(y.nargs[I]=$,y.keys.push(I))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([I,$])=>{typeof $=="function"&&(y.coercions[I]=$,y.keys.push(I))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(I){y.configs[I]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([I,$])=>{(typeof $=="boolean"||typeof $=="function")&&(y.configs[I]=$)})),me(n.key,o,n.default,y.arrays),Object.keys(u).forEach(function(I){(y.aliases[I]||[]).forEach(function($){u[$]=u[I]})});let j=null;Fe();let T=[],w=Object.assign(Object.create(null),{_:[]}),P={};for(let I=0;I<i.length;I++){let $=i[I],K=$.replace(/^-{3,}/,"---"),Y,B,se,ne,fe,Te;if($!=="--"&&/^-/.test($)&&ee($))O($);else if(K.match(/^---+(=|$)/)){O($);continue}else if($.match(/^--.+=/)||!a["short-option-groups"]&&$.match(/^-.+=/))ne=$.match(/^--?([^=]+)=([\s\S]*)$/),ne!==null&&Array.isArray(ne)&&ne.length>=3&&(H(ne[1],y.arrays)?I=L(I,ne[1],i,ne[2]):H(ne[1],y.nargs)!==!1?I=R(I,ne[1],i,ne[2]):C(ne[1],ne[2],!0));else if($.match(_)&&a["boolean-negation"])ne=$.match(_),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(B=ne[1],C(B,H(B,y.arrays)?[!1]:!1));else if($.match(/^--.+/)||!a["short-option-groups"]&&$.match(/^-[^-]+/))ne=$.match(/^--?(.+)/),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(B=ne[1],H(B,y.arrays)?I=L(I,B,i):H(B,y.nargs)!==!1?I=R(I,B,i):(fe=i[I+1],fe!==void 0&&(!fe.match(/^-/)||fe.match(F))&&!H(B,y.bools)&&!H(B,y.counts)||/^(true|false)$/.test(fe)?(C(B,fe),I++):C(B,re(B))));else if($.match(/^-.\..+=/))ne=$.match(/^-([^=]+)=([\s\S]*)$/),ne!==null&&Array.isArray(ne)&&ne.length>=3&&C(ne[1],ne[2]);else if($.match(/^-.\..+/)&&!$.match(F))fe=i[I+1],ne=$.match(/^-(.\..+)/),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(B=ne[1],fe!==void 0&&!fe.match(/^-/)&&!H(B,y.bools)&&!H(B,y.counts)?(C(B,fe),I++):C(B,re(B)));else if($.match(/^-[^-]+/)&&!$.match(F)){se=$.slice(1,-1).split(""),Y=!1;for(let ze=0;ze<se.length;ze++){if(fe=$.slice(ze+2),se[ze+1]&&se[ze+1]==="="){Te=$.slice(ze+3),B=se[ze],H(B,y.arrays)?I=L(I,B,i,Te):H(B,y.nargs)!==!1?I=R(I,B,i,Te):C(B,Te),Y=!0;break}if(fe==="-"){C(se[ze],fe);continue}if(/[A-Za-z]/.test(se[ze])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(fe)&&H(fe,y.bools)===!1){C(se[ze],fe),Y=!0;break}if(se[ze+1]&&se[ze+1].match(/\W/)){C(se[ze],fe),Y=!0;break}else C(se[ze],re(se[ze]))}B=$.slice(-1)[0],!Y&&B!=="-"&&(H(B,y.arrays)?I=L(I,B,i):H(B,y.nargs)!==!1?I=R(I,B,i):(fe=i[I+1],fe!==void 0&&(!/^(-|--)[^-]/.test(fe)||fe.match(F))&&!H(B,y.bools)&&!H(B,y.counts)||/^(true|false)$/.test(fe)?(C(B,fe),I++):C(B,re(B))))}else if($.match(/^-[0-9]$/)&&$.match(F)&&H($.slice(1),y.bools))B=$.slice(1),C(B,re(B));else if($==="--"){T=i.slice(I+1);break}else if(a["halt-at-non-option"]){T=i.slice(I);break}else O($)}k(w,!0),k(w,!1),S(w),b(),G(w,y.aliases,u,!0),N(w),a["set-placeholder-key"]&&M(w),Object.keys(y.counts).forEach(function(I){V(w,I.split("."))||C(I,0)}),l&&T.length&&(w[h]=[]),T.forEach(function(I){w[h].push(I)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(w).filter(I=>I!=="--"&&I.includes("-")).forEach(I=>{delete w[I]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(I=>o[I])).forEach(I=>{a["camel-case-expansion"]&&I.includes("-")&&delete w[I.split(".").map($=>Rn($)).join(".")],delete w[I]});function O(I){let $=v("_",I);(typeof $=="string"||typeof $=="number")&&w._.push($)}function R(I,$,K,Y){let B,se=H($,y.nargs);if(se=typeof se!="number"||isNaN(se)?1:se,se===0)return ye(Y)||(j=Error(E("Argument unexpected for: %s",$))),C($,re($)),I;let ne=ye(Y)?0:1;if(a["nargs-eats-options"])K.length-(I+1)+ne<se&&(j=Error(E("Not enough arguments following: %s",$))),ne=se;else{for(B=I+1;B<K.length&&(!K[B].match(/^-[^0-9]/)||K[B].match(F)||ee(K[B]));B++)ne++;ne<se&&(j=Error(E("Not enough arguments following: %s",$)))}let fe=Math.min(ne,se);for(!ye(Y)&&fe>0&&(C($,Y),fe--),B=I+1;B<fe+I+1;B++)C($,K[B]);return I+fe}function L(I,$,K,Y){let B=[],se=Y||K[I+1],ne=H($,y.nargs);if(H($,y.bools)&&!/^(true|false)$/.test(se))B.push(!0);else if(ye(se)||ye(Y)&&/^-/.test(se)&&!F.test(se)&&!ee(se)){if(u[$]!==void 0){let fe=u[$];B=Array.isArray(fe)?fe:[fe]}}else{ye(Y)||B.push(m($,Y,!0));for(let fe=I+1;fe<K.length&&!(!a["greedy-arrays"]&&B.length>0||ne&&typeof ne=="number"&&B.length>=ne||(se=K[fe],/^-/.test(se)&&!F.test(se)&&!ee(se)));fe++)I=fe,B.push(m($,se,s))}return typeof ne=="number"&&(ne&&B.length<ne||isNaN(ne)&&B.length===0)&&(j=Error(E("Not enough arguments following: %s",$))),C($,B),I}function C(I,$,K=s){if(/-/.test(I)&&a["camel-case-expansion"]){let se=I.split(".").map(function(ne){return Rn(ne)}).join(".");p(I,se)}let Y=m(I,$,K),B=I.split(".");X(w,B,Y),y.aliases[I]&&y.aliases[I].forEach(function(se){let ne=se.split(".");X(w,ne,Y)}),B.length>1&&a["dot-notation"]&&(y.aliases[B[0]]||[]).forEach(function(se){let ne=se.split("."),fe=[].concat(B);fe.shift(),ne=ne.concat(fe),(y.aliases[I]||[]).includes(ne.join("."))||X(w,ne,Y)}),H(I,y.normalize)&&!H(I,y.arrays)&&[I].concat(y.aliases[I]||[]).forEach(function(ne){Object.defineProperty(P,ne,{enumerable:!0,get(){return $},set(fe){$=typeof fe=="string"?Or.normalize(fe):fe}})})}function p(I,$){y.aliases[I]&&y.aliases[I].length||(y.aliases[I]=[$],d[$]=!0),y.aliases[$]&&y.aliases[$].length||p($,I)}function m(I,$,K){K&&($=qx($)),(H(I,y.bools)||H(I,y.counts))&&typeof $=="string"&&($=$==="true");let Y=Array.isArray($)?$.map(function(B){return v(I,B)}):v(I,$);return H(I,y.counts)&&(ye(Y)||typeof Y=="boolean")&&(Y=bc()),H(I,y.normalize)&&H(I,y.arrays)&&(Array.isArray($)?Y=$.map(B=>Or.normalize(B)):Y=Or.normalize($)),Y}function v(I,$){return!a["parse-positional-numbers"]&&I==="_"||!H(I,y.strings)&&!H(I,y.bools)&&!Array.isArray($)&&(qo($)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${$}`)))||!ye($)&&H(I,y.numbers))&&($=Number($)),$}function S(I){let $=Object.create(null);G($,y.aliases,u),Object.keys(y.configs).forEach(function(K){let Y=I[K]||$[K];if(Y)try{let B=null,se=Or.resolve(Or.cwd(),Y),ne=y.configs[K];if(typeof ne=="function"){try{B=ne(se)}catch(fe){B=fe}if(B instanceof Error){j=B;return}}else B=Or.require(se);A(B)}catch(B){B.name==="PermissionDenied"?j=B:I[K]&&(j=Error(E("Invalid JSON config file: %s",Y)))}})}function A(I,$){Object.keys(I).forEach(function(K){let Y=I[K],B=$?$+"."+K:K;typeof Y=="object"&&Y!==null&&!Array.isArray(Y)&&a["dot-notation"]?A(Y,B):(!V(w,B.split("."))||H(B,y.arrays)&&a["combine-arrays"])&&C(B,Y)})}function b(){typeof c<"u"&&c.forEach(function(I){A(I)})}function k(I,$){if(typeof f>"u")return;let K=typeof f=="string"?f:"",Y=Or.env();Object.keys(Y).forEach(function(B){if(K===""||B.lastIndexOf(K,0)===0){let se=B.split("__").map(function(ne,fe){return fe===0&&(ne=ne.substring(K.length)),Rn(ne)});($&&y.configs[se.join(".")]||!$)&&!V(I,se)&&C(se.join("."),Y[B])}})}function N(I){let $,K=new Set;Object.keys(I).forEach(function(Y){if(!K.has(Y)&&($=H(Y,y.coercions),typeof $=="function"))try{let B=v(Y,$(I[Y]));[].concat(y.aliases[Y]||[],Y).forEach(se=>{K.add(se),I[se]=B})}catch(B){j=B}})}function M(I){return y.keys.forEach($=>{~$.indexOf(".")||typeof I[$]>"u"&&(I[$]=void 0)}),I}function G(I,$,K,Y=!1){Object.keys(K).forEach(function(B){V(I,B.split("."))||(X(I,B.split("."),K[B]),Y&&(g[B]=!0),($[B]||[]).forEach(function(se){V(I,se.split("."))||X(I,se.split("."),K[B])}))})}function V(I,$){let K=I;a["dot-notation"]||($=[$.join(".")]),$.slice(0,-1).forEach(function(B){K=K[B]||{}});let Y=$[$.length-1];return typeof K!="object"?!1:Y in K}function X(I,$,K){let Y=I;a["dot-notation"]||($=[$.join(".")]),$.slice(0,-1).forEach(function(Te){Te=Xp(Te),typeof Y=="object"&&Y[Te]===void 0&&(Y[Te]={}),typeof Y[Te]!="object"||Array.isArray(Y[Te])?(Array.isArray(Y[Te])?Y[Te].push({}):Y[Te]=[Y[Te],{}],Y=Y[Te][Y[Te].length-1]):Y=Y[Te]});let B=Xp($[$.length-1]),se=H($.join("."),y.arrays),ne=Array.isArray(K),fe=a["duplicate-arguments-array"];!fe&&H(B,y.nargs)&&(fe=!0,(!ye(Y[B])&&y.nargs[B]===1||Array.isArray(Y[B])&&Y[B].length===y.nargs[B])&&(Y[B]=void 0)),K===bc()?Y[B]=bc(Y[B]):Array.isArray(Y[B])?fe&&se&&ne?Y[B]=a["flatten-duplicate-arrays"]?Y[B].concat(K):(Array.isArray(Y[B][0])?Y[B]:[Y[B]]).concat([K]):!fe&&!!se==!!ne?Y[B]=K:Y[B]=Y[B].concat([K]):Y[B]===void 0&&se?Y[B]=ne?K:[K]:fe&&!(Y[B]===void 0||H(B,y.counts)||H(B,y.bools))?Y[B]=[Y[B],K]:Y[B]=K}function me(...I){I.forEach(function($){Object.keys($||{}).forEach(function(K){y.aliases[K]||(y.aliases[K]=[].concat(o[K]||[]),y.aliases[K].concat(K).forEach(function(Y){if(/-/.test(Y)&&a["camel-case-expansion"]){let B=Rn(Y);B!==K&&y.aliases[K].indexOf(B)===-1&&(y.aliases[K].push(B),d[B]=!0)}}),y.aliases[K].concat(K).forEach(function(Y){if(Y.length>1&&/[A-Z]/.test(Y)&&a["camel-case-expansion"]){let B=Bo(Y,"-");B!==K&&y.aliases[K].indexOf(B)===-1&&(y.aliases[K].push(B),d[B]=!0)}}),y.aliases[K].forEach(function(Y){y.aliases[Y]=[K].concat(y.aliases[K].filter(function(B){return Y!==B}))}))})})}function H(I,$){let K=[].concat(y.aliases[I]||[],I),Y=Object.keys($),B=K.find(se=>Y.includes(se));return B?$[B]:!1}function U(I){let $=Object.keys(y);return[].concat($.map(Y=>y[Y])).some(function(Y){return Array.isArray(Y)?Y.includes(I):Y[I]})}function q(I,...$){return[].concat(...$).some(function(Y){let B=I.match(Y);return B&&U(B[1])})}function Z(I){if(I.match(F)||!I.match(/^-[^-]+/))return!1;let $=!0,K,Y=I.slice(1).split("");for(let B=0;B<Y.length;B++){if(K=I.slice(B+2),!U(Y[B])){$=!1;break}if(Y[B+1]&&Y[B+1]==="="||K==="-"||/[A-Za-z]/.test(Y[B])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(K)||Y[B+1]&&Y[B+1].match(/\W/))break}return $}function ee(I){return a["unknown-options-as-args"]&&W(I)}function W(I){return I=I.replace(/^-{3,}/,"--"),I.match(F)||Z(I)?!1:!q(I,/^-+([^=]+?)=[\s\S]*$/,_,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function re(I){return!H(I,y.bools)&&!H(I,y.counts)&&`${I}`in u?u[I]:z(ue(I))}function z(I){return{[qt.BOOLEAN]:!0,[qt.STRING]:"",[qt.NUMBER]:void 0,[qt.ARRAY]:[]}[I]}function ue(I){let $=qt.BOOLEAN;return H(I,y.strings)?$=qt.STRING:H(I,y.numbers)?$=qt.NUMBER:H(I,y.bools)?$=qt.BOOLEAN:H(I,y.arrays)&&($=qt.ARRAY),$}function ye(I){return I===void 0}function Fe(){Object.keys(y.counts).find(I=>H(I,y.arrays)?(j=Error(E("Invalid configuration: %s, opts.count excludes opts.array.",I)),!0):H(I,y.nargs)?(j=Error(E("Invalid configuration: %s, opts.count excludes opts.narg.",I)),!0):!1)}return{aliases:Object.assign({},y.aliases),argv:Object.assign(P,w),configuration:a,defaulted:Object.assign({},g),error:j,newAliases:Object.assign({},d)}}};function Bx(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 bc(e){return e!==void 0?e+1:1}function Xp(e){return e==="__proto__"?"___proto___":e}function qx(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var eg=require("fs");var wc,Sc,_c,Qp=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Jp=(Sc=(wc=process==null?void 0:process.versions)===null||wc===void 0?void 0:wc.node)!==null&&Sc!==void 0?Sc:(_c=process==null?void 0:process.version)===null||_c===void 0?void 0:_c.slice(1);if(Jp&&Number(Jp.match(/^([^.]+)/)[1])<Qp)throw Error(`yargs parser supports a minimum Node.js version of ${Qp}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Hx=process?process.env:{},tg=new Ho({cwd:process.cwd,env:()=>Hx,format:Zp.format,normalize:Wo.normalize,resolve:Wo.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,eg.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),Fs=function(t,r){return tg.parse(t.slice(),r).argv};Fs.detailed=function(e,t){return tg.parse(e.slice(),t)};Fs.camelCase=Rn;Fs.decamelize=Bo;Fs.looksLikeNumber=qo;var Cc=Fs;var ar=require("path");function rg(){return Wx()?0:1}function Wx(){return Gx()&&!process.defaultApp}function Gx(){return!!process.versions.electron}function xc(e){return e.slice(rg()+1)}function ng(){return process.argv[rg()]}var je=class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};var vi=require("fs"),ig=require("util"),sg=require("path"),og={fs:{readFileSync:vi.readFileSync,writeFile:vi.writeFile},format:ig.format,resolve:sg.resolve,exists:e=>{try{return(0,vi.statSync)(e).isFile()}catch{return!1}}};var or,Oc=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(),or.format.apply(or.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),or.format.apply(or.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);or.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{or.fs.readFileSync&&(t=JSON.parse(or.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=or.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=or.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return or.exists(t)}};function ag(e,t){or=t;let r=new Oc(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 Ux=e=>ag(e,og),ug=Ux;var Vx={},Yx="require is not supported by ESM",cg="loading a directory of commands is not supported yet for ESM",Rs;try{Rs=(0,hg.fileURLToPath)(Vx.url)}catch{Rs=process.cwd()}var zx=Rs.substring(0,Rs.lastIndexOf("node_modules")),Fc={assert:{notStrictEqual:Go.notStrictEqual,strictEqual:Go.strictEqual},cliui:Ec,findUp:Vp,getEnv:e=>process.env[e],inspect:lg.inspect,getCallerFile:()=>{throw new je(cg)},getProcessArgvBin:ng,mainFilename:zx||process.cwd(),Parser:Cc,path:{basename:ar.basename,dirname:ar.dirname,extname:ar.extname,relative:ar.relative,resolve:ar.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:fg.readFileSync,require:()=>{throw new je(Yx)},requireDirectory:()=>{throw new je(cg)},stringWidth:e=>[...e].length,y18n:ug({directory:(0,ar.resolve)(Rs,"../../../locales"),updateFiles:!1})};function mt(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function Rc(e,t){t.assert.strictEqual(typeof e,"string")}function Ai(e){return Object.keys(e)}function Me(e){return!!e&&!!e.then&&typeof e.then=="function"}function Kr(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 Kx=["first","second","third","fourth","fifth","sixth"];function ce(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[Kr(`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 je(`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 je(`Too many arguments provided. Expected max ${f} but received ${c}.`);s.demanded.forEach(l=>{let h=u.shift(),d=dg(h);l.cmd.filter(E=>E===d||E==="*").length===0&&pg(d,l.cmd,i),i+=1}),s.optional.forEach(l=>{if(u.length===0)return;let h=u.shift(),d=dg(h);l.cmd.filter(E=>E===d||E==="*").length===0&&pg(d,l.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}function dg(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function pg(e,t,r){throw new je(`Invalid ${Kx[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}var Uo=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 gg(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}function Pn(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(Me(i))return i.then(o=>Promise.all([o,s(o,t)])).then(([o,a])=>Object.assign(o,a));{let o=s(i,t);return Me(o)?o.then(a=>Object.assign(i,a)):Object.assign(i,o)}},e)}function Dn(e,t,r=n=>{throw n}){try{let n=Xx(e)?e():e;return Me(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}function Xx(e){return typeof e=="function"}function Pc(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 Ei=/(^\*)|(^\$0)/,Dc=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=gg(s);if(i=i||(()=>{}),Array.isArray(t))if(Qx(t))[t,...a]=t;else for(let c of t)this.addHandler(c);else if(Zx(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(mg(n)){this.addHandler([t].concat(a),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let c=Kr(t);a=a.map(h=>Kr(h).cmd);let f=!1,l=[c.cmd].concat(a).filter(h=>Ei.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(Ei,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 Me(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(Yo(c)){n.getInternalMethods().getUsageInstance().freeze();let l=c(n.getInternalMethods().reset(i),u);if(Me(l))return l.then(h=>(f=vg(h)?h:n,this.parseAndUpdateUsage(t,r,f,s,o,a)))}else Jx(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 Me(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=Ei.test(r.original)?r.original.replace(Ei,"").trim():r.original,i=t.filter(s=>!Ei.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=Dn(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=Pn(n,o,a,!1),n=Dn(n,f=>{let l=r.handler(f);return Me(l)?l.then(()=>f):f}),t||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),Me(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=Pn(n,a,c,!0);return Me(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=Kr(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=Ei.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(Yo(r))return r(t,!0);mg(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=Pc(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;mt(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();mt(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 yg(e,t,r,n){return new Dc(e,t,r,n)}function mg(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}function Qx(e){return e.every(t=>typeof t=="string")}function Yo(e){return typeof e=="function"}function Jx(e){return typeof e=="object"}function Zx(e){return typeof e=="object"&&!Array.isArray(e)}function Xr(e={},t=()=>!0){let r={};return Ai(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}function Qr(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 eO(e){return typeof e=="boolean"}function Eg(e,t){let r=t.y18n.__,n={},i=[];n.failFn=function(m){i.push(m)};let s=null,o=null,a=!0;n.showHelpOnFail=function(m=!0,v){let[S,A]=typeof m=="string"?[!0,m]:[m,v];return e.getInternalMethods().isGlobalContext()&&(o=A),s=A,a=S,n};let u=!1;n.fail=function(m,v){let S=e.getInternalMethods().getLoggerInstance();if(i.length)for(let A=i.length-1;A>=0;--A){let b=i[A];if(eO(b)){if(v)throw v;if(m)throw Error(m)}else b(m,v,n)}else{if(e.getExitProcess()&&Qr(!0),!u){u=!0,a&&(e.showHelp("error"),S.error()),(m||v)&&S.error(m||v);let A=s||o;A&&((m||v)&&S.error(""),S.error(A))}if(v=v||new je(m),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,v);throw v}};let c=[],f=!1;n.usage=(p,m)=>p===null?(f=!0,c=[],n):(f=!1,c.push([p,m||""]),n),n.getUsage=()=>c,n.getUsageDisabled=()=>f,n.getPositionalGroupName=()=>r("Positionals:");let l=[];n.example=(p,m)=>{l.push([p,m||""])};let h=[];n.command=function(m,v,S,A,b=!1){S&&(h=h.map(k=>(k[2]=!1,k))),h.push([m,v||"",S,A,b])},n.getCommands=()=>h;let d={};n.describe=function(m,v){Array.isArray(m)?m.forEach(S=>{n.describe(S,v)}):typeof m=="object"?Object.keys(m).forEach(S=>{n.describe(S,m[S])}):d[m]=v},n.getDescriptions=()=>d;let g=[];n.epilog=p=>{g.push(p)};let E=!1,y;n.wrap=p=>{E=!0,y=p},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(E||(y=R(),E=!0),y);let F="__yargsString__:";n.deferY18nLookup=p=>F+p,n.help=function(){if(T)return T;j();let m=e.customScriptName?e.$0:t.path.basename(e.$0),v=e.getDemandedOptions(),S=e.getDemandedCommands(),A=e.getDeprecatedOptions(),b=e.getGroups(),k=e.getOptions(),N=[];N=N.concat(Object.keys(d)),N=N.concat(Object.keys(v)),N=N.concat(Object.keys(S)),N=N.concat(Object.keys(k.default)),N=N.filter(P),N=Object.keys(N.reduce((q,Z)=>(Z!=="_"&&(q[Z]=!0),q),{}));let M=n.getWrap(),G=t.cliui({width:M,wrap:!!M});if(!f){if(c.length)c.forEach(q=>{G.div({text:`${q[0].replace(/\$0/g,m)}`}),q[1]&&G.div({text:`${q[1]}`,padding:[1,0,0,0]})}),G.div();else if(h.length){let q=null;S._?q=`${m} <${r("command")}>
|
|
99
|
-
`:q=`${
|
|
100
|
-
`,
|
|
101
|
-
`);
|
|
102
|
-
`)}return
|
|
100
|
+
`),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[oD]||0).fill("")),i.push(...new Array(s.padding[aD]||0).fill(""))),i.forEach((a,c)=>{r[c]||r.push([]);let u=r[c];for(let f=0;f<o;f++)u[f]===void 0&&u.push("");u.push(a)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[Ta]||0)+(t.padding[La]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(o=>o.width||Ht.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,uD(t[a])):o)}};function s0(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}function uD(e){let t=e.padding||[],r=1+(t[Ta]||0)+(t[La]||0);return e.border?r+4:r}function cD(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function lD(e,t){e=e.trim();let r=Ht.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}function fD(e,t){e=e.trim();let r=Ht.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}var Ht;function o0(e,t){return Ht=t,new Ql({width:e?.width||cD(),wrap:e?.wrap})}var a0=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Zl(e){return e.replace(a0,"")}function u0(e,t){let[r,n]=e.match(a0)||["",""];e=Zl(e);let i="";for(let s=0;s<e.length;s++)s!==0&&s%t===0&&(i+=`
|
|
101
|
+
`),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}function ef(e){return o0(e,{stringWidth:t=>[...t].length,stripAnsi:Zl,wrap:u0})}var Bi=require("path"),Ia=require("fs");function c0(e,t){let r=(0,Bi.resolve)(".",e),n;for((0,Ia.statSync)(r).isDirectory()||(r=(0,Bi.dirname)(r));;){if(n=t(r,(0,Ia.readdirSync)(r)),n)return(0,Bi.resolve)(r,n);if(r=(0,Bi.dirname)(n=r),n===r)break}}var x0=require("util"),O0=require("fs"),_0=require("url");var p0=require("util"),Ma=require("path");function Zn(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 ka(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 l0(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 Zt;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Zt||(Zt={}));var Yr,$a=class{constructor(t){Yr=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=l0(t),s=typeof t=="string",o=hD(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),c=Object.assign(Object.create(null),n.default),u=n.configObjects||[],f=n.envPrefix,l=a["populate--"],h=l?"--":"_",d=Object.create(null),p=Object.create(null),g=n.__||Yr.format,y={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:[]},x=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,S=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(k){let j=typeof k=="object"?k.key:k,K=Object.keys(k).map(function(z){return{boolean:"bools",string:"strings",number:"numbers"}[z]}).filter(Boolean).pop();K&&(y[K][j]=!0),y.arrays[j]=!0,y.keys.push(j)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(k){y.bools[k]=!0,y.keys.push(k)}),[].concat(n.string||[]).filter(Boolean).forEach(function(k){y.strings[k]=!0,y.keys.push(k)}),[].concat(n.number||[]).filter(Boolean).forEach(function(k){y.numbers[k]=!0,y.keys.push(k)}),[].concat(n.count||[]).filter(Boolean).forEach(function(k){y.counts[k]=!0,y.keys.push(k)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(k){y.normalize[k]=!0,y.keys.push(k)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([k,j])=>{typeof j=="number"&&(y.nargs[k]=j,y.keys.push(k))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([k,j])=>{typeof j=="function"&&(y.coercions[k]=j,y.keys.push(k))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(k){y.configs[k]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([k,j])=>{(typeof j=="boolean"||typeof j=="function")&&(y.configs[k]=j)})),he(n.key,o,n.default,y.arrays),Object.keys(c).forEach(function(k){(y.aliases[k]||[]).forEach(function(j){c[j]=c[k]})});let I=null;Fe();let R=[],w=Object.assign(Object.create(null),{_:[]}),D={};for(let k=0;k<i.length;k++){let j=i[k],K=j.replace(/^-{3,}/,"---"),z,B,se,ne,de,Ne;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&&(G(ne[1],y.arrays)?k=$(k,ne[1],i,ne[2]):G(ne[1],y.nargs)!==!1?k=_(k,ne[1],i,ne[2]):O(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],O(B,G(B,y.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],G(B,y.arrays)?k=$(k,B,i):G(B,y.nargs)!==!1?k=_(k,B,i):(de=i[k+1],de!==void 0&&(!de.match(/^-/)||de.match(x))&&!G(B,y.bools)&&!G(B,y.counts)||/^(true|false)$/.test(de)?(O(B,de),k++):O(B,re(B))));else if(j.match(/^-.\..+=/))ne=j.match(/^-([^=]+)=([\s\S]*)$/),ne!==null&&Array.isArray(ne)&&ne.length>=3&&O(ne[1],ne[2]);else if(j.match(/^-.\..+/)&&!j.match(x))de=i[k+1],ne=j.match(/^-(.\..+)/),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(B=ne[1],de!==void 0&&!de.match(/^-/)&&!G(B,y.bools)&&!G(B,y.counts)?(O(B,de),k++):O(B,re(B)));else if(j.match(/^-[^-]+/)&&!j.match(x)){se=j.slice(1,-1).split(""),z=!1;for(let Qe=0;Qe<se.length;Qe++){if(de=j.slice(Qe+2),se[Qe+1]&&se[Qe+1]==="="){Ne=j.slice(Qe+3),B=se[Qe],G(B,y.arrays)?k=$(k,B,i,Ne):G(B,y.nargs)!==!1?k=_(k,B,i,Ne):O(B,Ne),z=!0;break}if(de==="-"){O(se[Qe],de);continue}if(/[A-Za-z]/.test(se[Qe])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(de)&&G(de,y.bools)===!1){O(se[Qe],de),z=!0;break}if(se[Qe+1]&&se[Qe+1].match(/\W/)){O(se[Qe],de),z=!0;break}else O(se[Qe],re(se[Qe]))}B=j.slice(-1)[0],!z&&B!=="-"&&(G(B,y.arrays)?k=$(k,B,i):G(B,y.nargs)!==!1?k=_(k,B,i):(de=i[k+1],de!==void 0&&(!/^(-|--)[^-]/.test(de)||de.match(x))&&!G(B,y.bools)&&!G(B,y.counts)||/^(true|false)$/.test(de)?(O(B,de),k++):O(B,re(B))))}else if(j.match(/^-[0-9]$/)&&j.match(x)&&G(j.slice(1),y.bools))B=j.slice(1),O(B,re(B));else if(j==="--"){R=i.slice(k+1);break}else if(a["halt-at-non-option"]){R=i.slice(k);break}else L(j)}T(w,!0),T(w,!1),C(w),b(),W(w,y.aliases,c,!0),N(w),a["set-placeholder-key"]&&M(w),Object.keys(y.counts).forEach(function(k){V(w,k.split("."))||O(k,0)}),l&&R.length&&(w[h]=[]),R.forEach(function(k){w[h].push(k)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(w).filter(k=>k!=="--"&&k.includes("-")).forEach(k=>{delete w[k]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(k=>o[k])).forEach(k=>{a["camel-case-expansion"]&&k.includes("-")&&delete w[k.split(".").map(j=>Zn(j)).join(".")],delete w[k]});function L(k){let j=E("_",k);(typeof j=="string"||typeof j=="number")&&w._.push(j)}function _(k,j,K,z){let B,se=G(j,y.nargs);if(se=typeof se!="number"||isNaN(se)?1:se,se===0)return ve(z)||(I=Error(g("Argument unexpected for: %s",j))),O(j,re(j)),k;let ne=ve(z)?0:1;if(a["nargs-eats-options"])K.length-(k+1)+ne<se&&(I=Error(g("Not enough arguments following: %s",j))),ne=se;else{for(B=k+1;B<K.length&&(!K[B].match(/^-[^0-9]/)||K[B].match(x)||ee(K[B]));B++)ne++;ne<se&&(I=Error(g("Not enough arguments following: %s",j)))}let de=Math.min(ne,se);for(!ve(z)&&de>0&&(O(j,z),de--),B=k+1;B<de+k+1;B++)O(j,K[B]);return k+de}function $(k,j,K,z){let B=[],se=z||K[k+1],ne=G(j,y.nargs);if(G(j,y.bools)&&!/^(true|false)$/.test(se))B.push(!0);else if(ve(se)||ve(z)&&/^-/.test(se)&&!x.test(se)&&!ee(se)){if(c[j]!==void 0){let de=c[j];B=Array.isArray(de)?de:[de]}}else{ve(z)||B.push(v(j,z,!0));for(let de=k+1;de<K.length&&!(!a["greedy-arrays"]&&B.length>0||ne&&typeof ne=="number"&&B.length>=ne||(se=K[de],/^-/.test(se)&&!x.test(se)&&!ee(se)));de++)k=de,B.push(v(j,se,s))}return typeof ne=="number"&&(ne&&B.length<ne||isNaN(ne)&&B.length===0)&&(I=Error(g("Not enough arguments following: %s",j))),O(j,B),k}function O(k,j,K=s){if(/-/.test(k)&&a["camel-case-expansion"]){let se=k.split(".").map(function(ne){return Zn(ne)}).join(".");m(k,se)}let z=v(k,j,K),B=k.split(".");X(w,B,z),y.aliases[k]&&y.aliases[k].forEach(function(se){let ne=se.split(".");X(w,ne,z)}),B.length>1&&a["dot-notation"]&&(y.aliases[B[0]]||[]).forEach(function(se){let ne=se.split("."),de=[].concat(B);de.shift(),ne=ne.concat(de),(y.aliases[k]||[]).includes(ne.join("."))||X(w,ne,z)}),G(k,y.normalize)&&!G(k,y.arrays)&&[k].concat(y.aliases[k]||[]).forEach(function(ne){Object.defineProperty(D,ne,{enumerable:!0,get(){return j},set(de){j=typeof de=="string"?Yr.normalize(de):de}})})}function m(k,j){y.aliases[k]&&y.aliases[k].length||(y.aliases[k]=[j],d[j]=!0),y.aliases[j]&&y.aliases[j].length||m(j,k)}function v(k,j,K){K&&(j=dD(j)),(G(k,y.bools)||G(k,y.counts))&&typeof j=="string"&&(j=j==="true");let z=Array.isArray(j)?j.map(function(B){return E(k,B)}):E(k,j);return G(k,y.counts)&&(ve(z)||typeof z=="boolean")&&(z=tf()),G(k,y.normalize)&&G(k,y.arrays)&&(Array.isArray(j)?z=j.map(B=>Yr.normalize(B)):z=Yr.normalize(j)),z}function E(k,j){return!a["parse-positional-numbers"]&&k==="_"||!G(k,y.strings)&&!G(k,y.bools)&&!Array.isArray(j)&&(Na(j)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${j}`)))||!ve(j)&&G(k,y.numbers))&&(j=Number(j)),j}function C(k){let j=Object.create(null);W(j,y.aliases,c),Object.keys(y.configs).forEach(function(K){let z=k[K]||j[K];if(z)try{let B=null,se=Yr.resolve(Yr.cwd(),z),ne=y.configs[K];if(typeof ne=="function"){try{B=ne(se)}catch(de){B=de}if(B instanceof Error){I=B;return}}else B=Yr.require(se);A(B)}catch(B){B.name==="PermissionDenied"?I=B:k[K]&&(I=Error(g("Invalid JSON config file: %s",z)))}})}function A(k,j){Object.keys(k).forEach(function(K){let z=k[K],B=j?j+"."+K:K;typeof z=="object"&&z!==null&&!Array.isArray(z)&&a["dot-notation"]?A(z,B):(!V(w,B.split("."))||G(B,y.arrays)&&a["combine-arrays"])&&O(B,z)})}function b(){typeof u<"u"&&u.forEach(function(k){A(k)})}function T(k,j){if(typeof f>"u")return;let K=typeof f=="string"?f:"",z=Yr.env();Object.keys(z).forEach(function(B){if(K===""||B.lastIndexOf(K,0)===0){let se=B.split("__").map(function(ne,de){return de===0&&(ne=ne.substring(K.length)),Zn(ne)});(j&&y.configs[se.join(".")]||!j)&&!V(k,se)&&O(se.join("."),z[B])}})}function N(k){let j,K=new Set;Object.keys(k).forEach(function(z){if(!K.has(z)&&(j=G(z,y.coercions),typeof j=="function"))try{let B=E(z,j(k[z]));[].concat(y.aliases[z]||[],z).forEach(se=>{K.add(se),k[se]=B})}catch(B){I=B}})}function M(k){return y.keys.forEach(j=>{~j.indexOf(".")||typeof k[j]>"u"&&(k[j]=void 0)}),k}function W(k,j,K,z=!1){Object.keys(K).forEach(function(B){V(k,B.split("."))||(X(k,B.split("."),K[B]),z&&(p[B]=!0),(j[B]||[]).forEach(function(se){V(k,se.split("."))||X(k,se.split("."),K[B])}))})}function V(k,j){let K=k;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(k,j,K){let z=k;a["dot-notation"]||(j=[j.join(".")]),j.slice(0,-1).forEach(function(Ne){Ne=f0(Ne),typeof z=="object"&&z[Ne]===void 0&&(z[Ne]={}),typeof z[Ne]!="object"||Array.isArray(z[Ne])?(Array.isArray(z[Ne])?z[Ne].push({}):z[Ne]=[z[Ne],{}],z=z[Ne][z[Ne].length-1]):z=z[Ne]});let B=f0(j[j.length-1]),se=G(j.join("."),y.arrays),ne=Array.isArray(K),de=a["duplicate-arguments-array"];!de&&G(B,y.nargs)&&(de=!0,(!ve(z[B])&&y.nargs[B]===1||Array.isArray(z[B])&&z[B].length===y.nargs[B])&&(z[B]=void 0)),K===tf()?z[B]=tf(z[B]):Array.isArray(z[B])?de&&se&&ne?z[B]=a["flatten-duplicate-arrays"]?z[B].concat(K):(Array.isArray(z[B][0])?z[B]:[z[B]]).concat([K]):!de&&!!se==!!ne?z[B]=K:z[B]=z[B].concat([K]):z[B]===void 0&&se?z[B]=ne?K:[K]:de&&!(z[B]===void 0||G(B,y.counts)||G(B,y.bools))?z[B]=[z[B],K]:z[B]=K}function he(...k){k.forEach(function(j){Object.keys(j||{}).forEach(function(K){y.aliases[K]||(y.aliases[K]=[].concat(o[K]||[]),y.aliases[K].concat(K).forEach(function(z){if(/-/.test(z)&&a["camel-case-expansion"]){let B=Zn(z);B!==K&&y.aliases[K].indexOf(B)===-1&&(y.aliases[K].push(B),d[B]=!0)}}),y.aliases[K].concat(K).forEach(function(z){if(z.length>1&&/[A-Z]/.test(z)&&a["camel-case-expansion"]){let B=ka(z,"-");B!==K&&y.aliases[K].indexOf(B)===-1&&(y.aliases[K].push(B),d[B]=!0)}}),y.aliases[K].forEach(function(z){y.aliases[z]=[K].concat(y.aliases[K].filter(function(B){return z!==B}))}))})})}function G(k,j){let K=[].concat(y.aliases[k]||[],k),z=Object.keys(j),B=K.find(se=>z.includes(se));return B?j[B]:!1}function H(k){let j=Object.keys(y);return[].concat(j.map(z=>y[z])).some(function(z){return Array.isArray(z)?z.includes(k):z[k]})}function q(k,...j){return[].concat(...j).some(function(z){let B=k.match(z);return B&&H(B[1])})}function Z(k){if(k.match(x)||!k.match(/^-[^-]+/))return!1;let j=!0,K,z=k.slice(1).split("");for(let B=0;B<z.length;B++){if(K=k.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(k){return a["unknown-options-as-args"]&&U(k)}function U(k){return k=k.replace(/^-{3,}/,"--"),k.match(x)||Z(k)?!1:!q(k,/^-+([^=]+?)=[\s\S]*$/,S,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function re(k){return!G(k,y.bools)&&!G(k,y.counts)&&`${k}`in c?c[k]:Y(ue(k))}function Y(k){return{[Zt.BOOLEAN]:!0,[Zt.STRING]:"",[Zt.NUMBER]:void 0,[Zt.ARRAY]:[]}[k]}function ue(k){let j=Zt.BOOLEAN;return G(k,y.strings)?j=Zt.STRING:G(k,y.numbers)?j=Zt.NUMBER:G(k,y.bools)?j=Zt.BOOLEAN:G(k,y.arrays)&&(j=Zt.ARRAY),j}function ve(k){return k===void 0}function Fe(){Object.keys(y.counts).find(k=>G(k,y.arrays)?(I=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",k)),!0):G(k,y.nargs)?(I=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",k)),!0):!1)}return{aliases:Object.assign({},y.aliases),argv:Object.assign(D,w),configuration:a,defaulted:Object.assign({},p),error:I,newAliases:Object.assign({},d)}}};function hD(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,c){return c.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function tf(e){return e!==void 0?e+1:1}function f0(e){return e==="__proto__"?"___proto___":e}function dD(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var m0=require("fs");var rf,nf,sf,h0=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,d0=(nf=(rf=process==null?void 0:process.versions)===null||rf===void 0?void 0:rf.node)!==null&&nf!==void 0?nf:(sf=process==null?void 0:process.version)===null||sf===void 0?void 0:sf.slice(1);if(d0&&Number(d0.match(/^([^.]+)/)[1])<h0)throw Error(`yargs parser supports a minimum Node.js version of ${h0}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var pD=process?process.env:{},g0=new $a({cwd:process.cwd,env:()=>pD,format:p0.format,normalize:Ma.normalize,resolve:Ma.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,m0.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),Qs=function(t,r){return g0.parse(t.slice(),r).argv};Qs.detailed=function(e,t){return g0.parse(e.slice(),t)};Qs.camelCase=Zn;Qs.decamelize=ka;Qs.looksLikeNumber=Na;var of=Qs;var br=require("path");function y0(){return mD()?0:1}function mD(){return gD()&&!process.defaultApp}function gD(){return!!process.versions.electron}function af(e){return e.slice(y0()+1)}function v0(){return process.argv[y0()]}var Be=class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};var qi=require("fs"),E0=require("util"),A0=require("path"),w0={fs:{readFileSync:qi.readFileSync,writeFile:qi.writeFile},format:E0.format,resolve:A0.resolve,exists:e=>{try{return(0,qi.statSync)(e).isFile()}catch{return!1}}};var wr,uf=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(),wr.format.apply(wr.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),wr.format.apply(wr.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);wr.fs.writeFile(o,a,"utf-8",function(c){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(c)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{wr.fs.readFileSync&&(t=JSON.parse(wr.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=wr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=wr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return wr.exists(t)}};function b0(e,t){wr=t;let r=new uf(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 yD=e=>b0(e,w0),S0=yD;var AD={},vD="require is not supported by ESM",C0="loading a directory of commands is not supported yet for ESM",Zs;try{Zs=(0,_0.fileURLToPath)(AD.url)}catch{Zs=process.cwd()}var ED=Zs.substring(0,Zs.lastIndexOf("node_modules")),cf={assert:{notStrictEqual:ja.notStrictEqual,strictEqual:ja.strictEqual},cliui:ef,findUp:c0,getEnv:e=>process.env[e],inspect:x0.inspect,getCallerFile:()=>{throw new Be(C0)},getProcessArgvBin:v0,mainFilename:ED||process.cwd(),Parser:of,path:{basename:br.basename,dirname:br.dirname,extname:br.extname,relative:br.relative,resolve:br.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:O0.readFileSync,require:()=>{throw new Be(vD)},requireDirectory:()=>{throw new Be(C0)},stringWidth:e=>[...e].length,y18n:S0({directory:(0,br.resolve)(Zs,"../../../locales"),updateFiles:!1})};function _t(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function lf(e,t){t.assert.strictEqual(typeof e,"string")}function Gi(e){return Object.keys(e)}function qe(e){return!!e&&!!e.then&&typeof e.then=="function"}function vn(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 c=!1;o=o.replace(/\s/g,""),/\.+[\]>]/.test(o)&&a===r.length-1&&(c=!0),/^\[/.test(o)?s.optional.push({cmd:o.replace(n,"").split("|"),variadic:c}):s.demanded.push({cmd:o.replace(n,"").split("|"),variadic:c})}),s}var wD=["first","second","third","fourth","fifth","sixth"];function ce(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[vn(`cmd ${e}`),t,r]}try{let i=0,[s,o,a]=n(),c=[].slice.call(o);for(;c.length&&c[c.length-1]===void 0;)c.pop();let u=a||c.length;if(u<s.demanded.length)throw new Be(`Not enough arguments provided. Expected ${s.demanded.length} but received ${c.length}.`);let f=s.demanded.length+s.optional.length;if(u>f)throw new Be(`Too many arguments provided. Expected max ${f} but received ${u}.`);s.demanded.forEach(l=>{let h=c.shift(),d=P0(h);l.cmd.filter(g=>g===d||g==="*").length===0&&R0(d,l.cmd,i),i+=1}),s.optional.forEach(l=>{if(c.length===0)return;let h=c.shift(),d=P0(h);l.cmd.filter(g=>g===d||g==="*").length===0&&R0(d,l.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}function P0(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function R0(e,t,r){throw new Be(`Invalid ${wD[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 F0(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}function ei(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 ti(e,t,r=n=>{throw n}){try{let n=bD(e)?e():e;return qe(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}function bD(e){return typeof e=="function"}function ff(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 Ui=/(^\*)|(^\$0)/,hf=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,c)=>{let u=s(o,a,c);if(u){if(this.requireCache.has(a))return u;this.requireCache.add(a),this.addHandler(u)}return u},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,s,o){let a=[],c=F0(s);if(i=i||(()=>{}),Array.isArray(t))if(SD(t))[t,...a]=t;else for(let u of t)this.addHandler(u);else if(xD(t)){let u=Array.isArray(t.command)||typeof t.command=="string"?t.command:this.moduleName(t);t.aliases&&(u=[].concat(u).concat(t.aliases)),this.addHandler(u,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(D0(n)){this.addHandler([t].concat(a),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let u=vn(t);a=a.map(h=>vn(h).cmd);let f=!1,l=[u.cmd].concat(a).filter(h=>Ui.test(h)?(f=!0,!1):!0);l.length===0&&f&&l.push("$0"),f&&(u.cmd=l[0],a=l.slice(1),t=t.replace(Ui,u.cmd)),a.forEach(h=>{this.aliasMap[h]=u.cmd}),r!==!1&&this.usage.command(t,r,f,a,o),this.handlers[u.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:c,deprecated:o,demanded:u.demanded,optional:u.optional},f&&(this.defaultCommand=this.handlers[u.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,c=r.getInternalMethods().getContext(),u=c.commands.slice(),f=!t;t&&(c.commands.push(t),c.fullCommands.push(a.original));let l=this.applyBuilderUpdateUsageAndParse(f,a,r,n.aliases,u,i,s,o);return qe(l)?l.then(h=>this.applyMiddlewareAndGetResult(f,a,h.innerArgv,c,s,h.aliases,r)):this.applyMiddlewareAndGetResult(f,a,l.innerArgv,c,s,l.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,o,a,c){let u=r.builder,f=n;if(qa(u)){n.getInternalMethods().getUsageInstance().freeze();let l=u(n.getInternalMethods().reset(i),c);if(qe(l))return l.then(h=>(f=T0(h)?h:n,this.parseAndUpdateUsage(t,r,f,s,o,a)))}else CD(u)&&(n.getInternalMethods().getUsageInstance().freeze(),f=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(l=>{f.option(l,u[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(c=>({aliases:n.parsed.aliases,innerArgv:c})):{aliases:n.parsed.aliases,innerArgv:a}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=Ui.test(r.original)?r.original.replace(Ui,"").trim():r.original,i=t.filter(s=>!Ui.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,o,a,c){if(!o.getInternalMethods().getHasOutput()){let u=o.getInternalMethods().runValidation(s,c,o.parsed.error,t);n=ti(n,f=>(u(f),f))}if(r.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();let u=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(n,u,!1,!1),n=ei(n,o,a,!1),n=ti(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 c={};if(s)return n;a.getInternalMethods().getHasOutput()||(c=this.populatePositionals(r,n,i,a));let u=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),f=ei(n,a,u,!0);return qe(f)?f.then(l=>this.handleValidationAndGetResult(t,r,l,i,o,a,u,c)):this.handleValidationAndGetResult(t,r,f,i,o,a,u,c)}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 c=s.shift();this.populatePositional(c,r,a)}for(;o.length;){let c=o.shift();this.populatePositional(c,r,a)}return r._=n.commands.concat(r._.map(c=>""+c)),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=vn(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 u of Object.keys(n.alias))s.alias[u]=(s.alias[u]||[]).concat(n.alias[u]);s.array=s.array.concat(n.array),s.config={};let o=[];if(Object.keys(r).forEach(u=>{r[u].map(f=>{s.configuration["unknown-options-as-args"]&&(s.key[u]=!0),o.push(`--${u}`),o.push(f)})}),!o.length)return;let a=Object.assign({},s.configuration,{"populate--":!1}),c=this.shim.Parser.detailed(o,Object.assign({},s,{configuration:a}));if(c.error)i.getInternalMethods().getUsageInstance().fail(c.error.message,c.error);else{let u=Object.keys(r);Object.keys(r).forEach(f=>{u.push(...c.aliases[f])}),Object.keys(c.argv).forEach(f=>{u.includes(f)&&(r[f]||(r[f]=c.argv[f]),!this.isInConfigs(i,f)&&!this.isDefaulted(i,f)&&Object.prototype.hasOwnProperty.call(t,f)&&Object.prototype.hasOwnProperty.call(c.argv,f)&&(Array.isArray(t[f])||Array.isArray(c.argv[f]))?t[f]=[].concat(t[f],c.argv[f]):t[f]=c.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=Ui.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(qa(r))return r(t,!0);D0(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=ff(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;_t(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();_t(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 L0(e,t,r,n){return new hf(e,t,r,n)}function D0(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}function SD(e){return e.every(t=>typeof t=="string")}function qa(e){return typeof e=="function"}function CD(e){return typeof e=="object"}function xD(e){return typeof e=="object"&&!Array.isArray(e)}function En(e={},t=()=>!0){let r={};return Gi(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}function An(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 OD(e){return typeof e=="boolean"}function k0(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,E){let[C,A]=typeof v=="string"?[!0,v]:[v,E];return e.getInternalMethods().isGlobalContext()&&(o=A),s=A,a=C,n};let c=!1;n.fail=function(v,E){let C=e.getInternalMethods().getLoggerInstance();if(i.length)for(let A=i.length-1;A>=0;--A){let b=i[A];if(OD(b)){if(E)throw E;if(v)throw Error(v)}else b(v,E,n)}else{if(e.getExitProcess()&&An(!0),!c){c=!0,a&&(e.showHelp("error"),C.error()),(v||E)&&C.error(v||E);let A=s||o;A&&((v||E)&&C.error(""),C.error(A))}if(E=E||new Be(v),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,E);throw E}};let u=[],f=!1;n.usage=(m,v)=>m===null?(f=!0,u=[],n):(f=!1,u.push([m,v||""]),n),n.getUsage=()=>u,n.getUsageDisabled=()=>f,n.getPositionalGroupName=()=>r("Positionals:");let l=[];n.example=(m,v)=>{l.push([m,v||""])};let h=[];n.command=function(v,E,C,A,b=!1){C&&(h=h.map(T=>(T[2]=!1,T))),h.push([v,E||"",C,A,b])},n.getCommands=()=>h;let d={};n.describe=function(v,E){Array.isArray(v)?v.forEach(C=>{n.describe(C,E)}):typeof v=="object"?Object.keys(v).forEach(C=>{n.describe(C,v[C])}):d[v]=E},n.getDescriptions=()=>d;let p=[];n.epilog=m=>{p.push(m)};let g=!1,y;n.wrap=m=>{g=!0,y=m},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(g||(y=_(),g=!0),y);let x="__yargsString__:";n.deferY18nLookup=m=>x+m,n.help=function(){if(R)return R;I();let v=e.customScriptName?e.$0:t.path.basename(e.$0),E=e.getDemandedOptions(),C=e.getDemandedCommands(),A=e.getDeprecatedOptions(),b=e.getGroups(),T=e.getOptions(),N=[];N=N.concat(Object.keys(d)),N=N.concat(Object.keys(E)),N=N.concat(Object.keys(C)),N=N.concat(Object.keys(T.default)),N=N.filter(D),N=Object.keys(N.reduce((q,Z)=>(Z!=="_"&&(q[Z]=!0),q),{}));let M=n.getWrap(),W=t.cliui({width:M,wrap:!!M});if(!f){if(u.length)u.forEach(q=>{W.div({text:`${q[0].replace(/\$0/g,v)}`}),q[1]&&W.div({text:`${q[1]}`,padding:[1,0,0,0]})}),W.div();else if(h.length){let q=null;C._?q=`${v} <${r("command")}>
|
|
102
|
+
`:q=`${v} [${r("command")}]
|
|
103
|
+
`,W.div(`${q}`)}}if(h.length>1||h.length===1&&!h[0][2]){W.div(r("Commands:"));let q=e.getInternalMethods().getContext(),Z=q.commands.length?`${q.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(h=h.sort((U,re)=>U[0].localeCompare(re[0])));let ee=v?`${v} `:"";h.forEach(U=>{let re=`${ee}${Z}${U[0].replace(/^\$0 ?/,"")}`;W.span({text:re,padding:[0,2,0,2],width:S(h,M,`${v}${Z}`)+4},{text:U[1]});let Y=[];U[2]&&Y.push(`[${r("default")}]`),U[3]&&U[3].length&&Y.push(`[${r("aliases:")} ${U[3].join(", ")}]`),U[4]&&(typeof U[4]=="string"?Y.push(`[${r("deprecated: %s",U[4])}]`):Y.push(`[${r("deprecated")}]`)),Y.length?W.div({text:Y.join(" "),padding:[0,0,0,2],align:"right"}):W.div()}),W.div()}let V=(Object.keys(T.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);N=N.filter(q=>!e.parsed.newAliases[q]&&V.every(Z=>(T.alias[Z]||[]).indexOf(q)===-1));let X=r("Options:");b[X]||(b[X]=[]),w(N,T.alias,b,X);let he=q=>/^--/.test(Ga(q)),G=Object.keys(b).filter(q=>b[q].length>0).map(q=>{let Z=b[q].filter(D).map(ee=>{if(V.includes(ee))return ee;for(let U=0,re;(re=V[U])!==void 0;U++)if((T.alias[re]||[]).includes(ee))return re;return ee});return{groupName:q,normalizedKeys:Z}}).filter(({normalizedKeys:q})=>q.length>0).map(({groupName:q,normalizedKeys:Z})=>{let ee=Z.reduce((U,re)=>(U[re]=[re].concat(T.alias[re]||[]).map(Y=>q===n.getPositionalGroupName()?Y:(/^[0-9]$/.test(Y)?T.boolean.includes(re)?"-":"--":Y.length>1?"--":"-")+Y).sort((Y,ue)=>he(Y)===he(ue)?0:he(Y)?1:-1).join(", "),U),{});return{groupName:q,normalizedKeys:Z,switches:ee}});if(G.filter(({groupName:q})=>q!==n.getPositionalGroupName()).some(({normalizedKeys:q,switches:Z})=>!q.every(ee=>he(Z[ee])))&&G.filter(({groupName:q})=>q!==n.getPositionalGroupName()).forEach(({normalizedKeys:q,switches:Z})=>{q.forEach(ee=>{he(Z[ee])&&(Z[ee]=_D(Z[ee],4))})}),G.forEach(({groupName:q,normalizedKeys:Z,switches:ee})=>{W.div(q),Z.forEach(U=>{let re=ee[U],Y=d[U]||"",ue=null;Y.includes(x)&&(Y=r(Y.substring(x.length))),T.boolean.includes(U)&&(ue=`[${r("boolean")}]`),T.count.includes(U)&&(ue=`[${r("count")}]`),T.string.includes(U)&&(ue=`[${r("string")}]`),T.normalize.includes(U)&&(ue=`[${r("string")}]`),T.array.includes(U)&&(ue=`[${r("array")}]`),T.number.includes(U)&&(ue=`[${r("number")}]`);let ve=j=>typeof j=="string"?`[${r("deprecated: %s",j)}]`:`[${r("deprecated")}]`,Fe=[U in A?ve(A[U]):null,ue,U in E?`[${r("required")}]`:null,T.choices&&T.choices[U]?`[${r("choices:")} ${n.stringifiedValues(T.choices[U])}]`:null,L(T.default[U],T.defaultDescription[U])].filter(Boolean).join(" ");W.span({text:Ga(re),padding:[0,2,0,2+I0(re)],width:S(ee,M)+4},Y);let k=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Fe&&!k?W.div({text:Fe,padding:[0,0,0,2],align:"right"}):W.div()}),W.div()}),l.length&&(W.div(r("Examples:")),l.forEach(q=>{q[0]=q[0].replace(/\$0/g,v)}),l.forEach(q=>{q[1]===""?W.div({text:q[0],padding:[0,2,0,2]}):W.div({text:q[0],padding:[0,2,0,2],width:S(l,M)+4},{text:q[1]})}),W.div()),p.length>0){let q=p.map(Z=>Z.replace(/\$0/g,v)).join(`
|
|
104
|
+
`);W.div(`${q}
|
|
105
|
+
`)}return W.toString().replace(/\s*$/,"")};function S(m,v,E){let C=0;return Array.isArray(m)||(m=Object.values(m).map(A=>[A])),m.forEach(A=>{C=Math.max(t.stringWidth(E?`${E} ${Ga(A[0])}`:Ga(A[0]))+I0(A[0]),C)}),v&&(C=Math.min(C,parseInt((v*.5).toString(),10))),C}function I(){let m=e.getDemandedOptions(),v=e.getOptions();(Object.keys(v.alias)||[]).forEach(E=>{v.alias[E].forEach(C=>{d[C]&&n.describe(E,d[C]),C in m&&e.demandOption(E,m[C]),v.boolean.includes(C)&&e.boolean(E),v.count.includes(C)&&e.count(E),v.string.includes(C)&&e.string(E),v.normalize.includes(C)&&e.normalize(E),v.array.includes(C)&&e.array(E),v.number.includes(C)&&e.number(E)})})}let R;n.cacheHelpMessage=function(){R=this.help()},n.clearCachedHelpMessage=function(){R=void 0},n.hasCachedHelpMessage=function(){return!!R};function w(m,v,E,C){let A=[],b=null;return Object.keys(E).forEach(T=>{A=A.concat(E[T])}),m.forEach(T=>{b=[T].concat(v[T]),b.some(N=>A.indexOf(N)!==-1)||E[C].push(T)}),A}function D(m){return e.getOptions().hiddenOptions.indexOf(m)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}n.showHelp=m=>{let v=e.getInternalMethods().getLoggerInstance();m||(m="error"),(typeof m=="function"?m:v[m])(n.help())},n.functionDescription=m=>["(",m.name?t.Parser.decamelize(m.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(v,E){let C="",A=E||", ",b=[].concat(v);return!v||!b.length||b.forEach(T=>{C.length&&(C+=A),C+=JSON.stringify(T)}),C};function L(m,v){let E=`[${r("default:")} `;if(m===void 0&&!v)return null;if(v)E+=v;else switch(typeof m){case"string":E+=`"${m}"`;break;case"object":E+=JSON.stringify(m);break;default:E+=m}return`${E}]`}function _(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}let $=null;n.version=m=>{$=m},n.showVersion=m=>{let v=e.getInternalMethods().getLoggerInstance();m||(m="error"),(typeof m=="function"?m:v[m])($)},n.reset=function(v){return s=null,c=!1,u=[],f=!1,p=[],l=[],h=[],d=En(d,E=>!v[E]),n};let O=[];return n.freeze=function(){O.push({failMessage:s,failureOutput:c,usages:u,usageDisabled:f,epilogs:p,examples:l,commands:h,descriptions:d})},n.unfreeze=function(v=!1){let E=O.pop();E&&(v?(d={...E.descriptions,...d},h=[...E.commands,...h],u=[...E.usages,...u],l=[...E.examples,...l],p=[...E.epilogs,...p]):{failMessage:s,failureOutput:c,usages:u,usageDisabled:f,epilogs:p,examples:l,commands:h,descriptions:d}=E)},n}function df(e){return typeof e=="object"}function _D(e,t){return df(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}function I0(e){return df(e)?e.indentation:0}function Ga(e){return df(e)?e.text:e}var N0=`###-begin-{{app_name}}-completions-###
|
|
103
106
|
#
|
|
104
107
|
# yargs command completion script
|
|
105
108
|
#
|
|
@@ -127,7 +130,7 @@ _{{app_name}}_yargs_completions()
|
|
|
127
130
|
}
|
|
128
131
|
complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
|
|
129
132
|
###-end-{{app_name}}-completions-###
|
|
130
|
-
|
|
133
|
+
`,$0=`#compdef {{app_name}}
|
|
131
134
|
###-begin-{{app_name}}-completions-###
|
|
132
135
|
#
|
|
133
136
|
# yargs command completion script
|
|
@@ -146,46 +149,46 @@ _{{app_name}}_yargs_completions()
|
|
|
146
149
|
}
|
|
147
150
|
compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
148
151
|
###-end-{{app_name}}-completions-###
|
|
149
|
-
`;var
|
|
150
|
-
${
|
|
151
|
-
`)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(d).length,Object.keys(d).join(", ")+
|
|
152
|
-
${n("Argument: %s, Given: %s, Choices: %s",y,t.stringifiedValues(d[y]),t.stringifiedValues(h.choices[y]))}`}),t.fail(
|
|
153
|
-
`;h.forEach(g=>{d+=g}),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((y,F)=>F.length-y.length);let g=null,E=1/0;for(let y=0,F;(F=h[y])!==void 0;y++){let _=_g(l,F);_<=3&&_<E&&(E=_,g=F)}g&&t.fail(n("Did you mean %s?",g))},s.reset=function(l){return o=Xr(o,h=>!l[h]),u=Xr(u,h=>!l[h]),s};let c=[];return s.freeze=function(){c.push({implied:o,conflicting:u})},s.unfreeze=function(){let l=c.pop();mt(l,void 0,r),{implied:o,conflicting:u}=l},s}var Ic=[],Ps;function Ds(e,t,r,n){Ps=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=oO(t,e.extends);else try{o=require.resolve(e.extends)}catch{return e}sO(o),Ic.push(o),i=s?JSON.parse(Ps.readFileSync(o,"utf8")):require(e.extends),delete e.extends,i=Ds(i,Ps.path.dirname(o),r,Ps)}return Ic=[],r?Og(i,e):Object.assign({},i,e)}function sO(e){if(Ic.indexOf(e)>-1)throw new je(`Circular extended configurations: '${e}'.`)}function oO(e,t){return Ps.path.resolve(e,t)}function Og(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]=Og(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},x=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)},Ue,kn,ks,Ht,It,Vo,Jr,Tn,Ko,Wt,Xo,Gt,dr,Nt,Ut,Qo,bi,tt,he,Jo,Zo,Lt,In,wi,Nn,Zr,ea,Ae,Ln,jn,Mn,be,ta,pr,He;function zg(e){return(t=[],r=e.process.cwd(),n)=>{let i=new Uc(t,r,n,e);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}var Fg=Symbol("copyDoubleDash"),Rg=Symbol("copyDoubleDash"),Nc=Symbol("deleteFromParserHintObject"),Pg=Symbol("emitWarning"),Dg=Symbol("freeze"),kg=Symbol("getDollarZero"),$n=Symbol("getParserConfiguration"),Tg=Symbol("getUsageConfiguration"),Lc=Symbol("guessLocale"),Ig=Symbol("guessVersion"),Ng=Symbol("parsePositionalNumbers"),jc=Symbol("pkgUp"),en=Symbol("populateParserHintArray"),Si=Symbol("populateParserHintSingleValueDictionary"),Mc=Symbol("populateParserHintArrayDictionary"),$c=Symbol("populateParserHintDictionary"),Bc=Symbol("sanitizeKey"),qc=Symbol("setKey"),Hc=Symbol("unfreeze"),Lg=Symbol("validateAsync"),jg=Symbol("getCommandInstance"),Mg=Symbol("getContext"),$g=Symbol("getHasOutput"),Bg=Symbol("getLoggerInstance"),qg=Symbol("getParseContext"),Hg=Symbol("getUsageInstance"),Wg=Symbol("getValidationInstance"),ra=Symbol("hasParseCallback"),Gg=Symbol("isGlobalContext"),Bn=Symbol("postProcess"),Ug=Symbol("rebase"),Wc=Symbol("reset"),Ts=Symbol("runYargsParserAndExecuteCommands"),Gc=Symbol("runValidation"),Yg=Symbol("setHasOutput"),qn=Symbol("kTrackManuallySetKeys"),Uc=class{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Ue.set(this,void 0),kn.set(this,void 0),ks.set(this,{commands:[],fullCommands:[]}),Ht.set(this,null),It.set(this,null),Vo.set(this,"show-hidden"),Jr.set(this,null),Tn.set(this,!0),Ko.set(this,{}),Wt.set(this,!0),Xo.set(this,[]),Gt.set(this,void 0),dr.set(this,{}),Nt.set(this,!1),Ut.set(this,null),Qo.set(this,!0),bi.set(this,void 0),tt.set(this,""),he.set(this,void 0),Jo.set(this,void 0),Zo.set(this,{}),Lt.set(this,null),In.set(this,null),wi.set(this,{}),Nn.set(this,{}),Zr.set(this,void 0),ea.set(this,!1),Ae.set(this,void 0),Ln.set(this,!1),jn.set(this,!1),Mn.set(this,!1),be.set(this,void 0),ta.set(this,{}),pr.set(this,null),He.set(this,void 0),le(this,Ae,i,"f"),le(this,Zr,t,"f"),le(this,kn,r,"f"),le(this,Jo,n,"f"),le(this,Gt,new Uo(this),"f"),this.$0=this[kg](),this[Wc](),le(this,Ue,x(this,Ue,"f"),"f"),le(this,be,x(this,be,"f"),"f"),le(this,He,x(this,He,"f"),"f"),le(this,he,x(this,he,"f"),"f"),x(this,he,"f").showHiddenOpt=x(this,Vo,"f"),le(this,bi,this[Rg](),"f")}addHelpOpt(t,r){let n="help";return ce("[string|boolean] [string]",[t,r],arguments.length),x(this,Ut,"f")&&(this[Nc](x(this,Ut,"f")),le(this,Ut,null,"f")),t===!1&&r===void 0?this:(le(this,Ut,typeof t=="string"?t:n,"f"),this.boolean(x(this,Ut,"f")),this.describe(x(this,Ut,"f"),r||x(this,be,"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:x(this,Vo,"f");return this.boolean(n),this.describe(n,r||x(this,be,"f").deferY18nLookup("Show hidden options")),x(this,he,"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[Mc](this.alias.bind(this),"alias",t,r),this}array(t){return ce("<array|string>",[t],arguments.length),this[en]("array",t),this[qn](t),this}boolean(t){return ce("<array|string>",[t],arguments.length),this[en]("boolean",t),this[qn](t),this}check(t,r){return ce("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>Dn(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&x(this,be,"f").fail(s.toString(),s):x(this,be,"f").fail(x(this,Ae,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(x(this,be,"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[Mc](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 je("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 je("coerce callback must be provided");return x(this,he,"f").key[t]=!0,x(this,Gt,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?Dn(()=>(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 je(a.message)}):n},t),this}conflicts(t,r){return ce("<string|object> [string|array]",[t,r],arguments.length),x(this,He,"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=Ds(t,x(this,kn,"f"),this[$n]()["deep-merge-config"]||!1,x(this,Ae,"f")),x(this,he,"f").configObjects=(x(this,he,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||x(this,be,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{x(this,he,"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,It,t||x(this,It,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(x(this,It,"f"),r),n&&x(this,Ht,"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),x(this,Ue,"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=x(this,Jo,"f")||x(this,Ae,"f").require;return x(this,Ue,"f").addDirectory(t,n,x(this,Ae,"f").getCallerFile(),r),this}count(t){return ce("<array|string>",[t],arguments.length),this[en]("count",t),this[qn](t),this}default(t,r,n){return ce("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(Rc(t,x(this,Ae,"f")),x(this,he,"f").defaultDescription[t]=n),typeof r=="function"&&(Rc(t,x(this,Ae,"f")),x(this,he,"f").defaultDescription[t]||(x(this,he,"f").defaultDescription[t]=x(this,be,"f").functionDescription(r)),r=r.call()),this[Si](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),x(this,he,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{mt(n,!0,x(this,Ae,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(mt(n,!0,x(this,Ae,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{mt(n,!0,x(this,Ae,"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[Si](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return ce("<string> [string|boolean]",[t,r],arguments.length),x(this,he,"f").deprecatedOptions[t]=r,this}describe(t,r){return ce("<object|string|array> [string]",[t,r],arguments.length),this[qc](t,!0),x(this,be,"f").describe(t,r),this}detectLocale(t){return ce("<boolean>",[t],arguments.length),le(this,Tn,t,"f"),this}env(t){return ce("[string|boolean]",[t],arguments.length),t===!1?delete x(this,he,"f").envPrefix:x(this,he,"f").envPrefix=t||"",this}epilogue(t){return ce("<string>",[t],arguments.length),x(this,be,"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)):x(this,be,"f").example(t,r),this}exit(t,r){le(this,Nt,!0,"f"),le(this,Jr,r,"f"),x(this,Wt,"f")&&x(this,Ae,"f").process.exit(t)}exitProcess(t=!0){return ce("[boolean]",[t],arguments.length),le(this,Wt,t,"f"),this}fail(t){if(ce("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new je("Invalid first argument. Expected function or boolean 'false'");return x(this,be,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return ce("<array> [function]",[t,r],arguments.length),r?x(this,Ht,"f").getCompletion(t,r):new Promise((n,i)=>{x(this,Ht,"f").getCompletion(t,(s,o)=>{s?i(s):n(o)})})}getDemandedOptions(){return ce([],0),x(this,he,"f").demandedOptions}getDemandedCommands(){return ce([],0),x(this,he,"f").demandedCommands}getDeprecatedOptions(){return ce([],0),x(this,he,"f").deprecatedOptions}getDetectLocale(){return x(this,Tn,"f")}getExitProcess(){return x(this,Wt,"f")}getGroups(){return Object.assign({},x(this,dr,"f"),x(this,Nn,"f"))}getHelp(){if(le(this,Nt,!0,"f"),!x(this,be,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[Ts](x(this,Zr,"f"),void 0,void 0,0,!0);if(Me(r))return r.then(()=>x(this,be,"f").help())}let t=x(this,Ue,"f").runDefaultBuilderOn(this);if(Me(t))return t.then(()=>x(this,be,"f").help())}return Promise.resolve(x(this,be,"f").help())}getOptions(){return x(this,he,"f")}getStrict(){return x(this,Ln,"f")}getStrictCommands(){return x(this,jn,"f")}getStrictOptions(){return x(this,Mn,"f")}global(t,r){return ce("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?x(this,he,"f").local=x(this,he,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{x(this,he,"f").local.includes(n)||x(this,he,"f").local.push(n)}),this}group(t,r){ce("<string|array> <string>",[t,r],arguments.length);let n=x(this,Nn,"f")[r]||x(this,dr,"f")[r];x(this,Nn,"f")[r]&&delete x(this,Nn,"f")[r];let i={};return x(this,dr,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return ce("<string>",[t],arguments.length),x(this,he,"f").hiddenOptions.push(t),this}implies(t,r){return ce("<string|object> [number|string|array]",[t,r],arguments.length),x(this,He,"f").implies(t,r),this}locale(t){return ce("[string]",[t],arguments.length),t===void 0?(this[Lc](),x(this,Ae,"f").y18n.getLocale()):(le(this,Tn,!1,"f"),x(this,Ae,"f").y18n.setLocale(t),this)}middleware(t,r,n){return x(this,Gt,"f").addMiddleware(t,!!r,n)}nargs(t,r){return ce("<string|object|array> [number]",[t,r],arguments.length),this[Si](this.nargs.bind(this),"narg",t,r),this}normalize(t){return ce("<array|string>",[t],arguments.length),this[en]("normalize",t),this}number(t){return ce("<array|string>",[t],arguments.length),this[en]("number",t),this[qn](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[qn](t),x(this,pr,"f")&&(t==="version"||r?.alias==="version")&&this[Pg](['"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(`
|
|
154
|
-
`),void 0,"versionWarning"),
|
|
155
|
-
`,"f"),le(this,
|
|
156
|
-
`,"f"),le(this,tt,x(this,tt,"f")+t.join(" "),"f")}}}[Nc](t){Ai(x(this,he,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=x(this,he,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete x(this,be,"f").getDescriptions()[t]}[Pg](t,r,n){x(this,Ko,"f")[n]||(x(this,Ae,"f").process.emitWarning(t,r),x(this,Ko,"f")[n]=!0)}[Dg](){x(this,Xo,"f").push({options:x(this,he,"f"),configObjects:x(this,he,"f").configObjects.slice(0),exitProcess:x(this,Wt,"f"),groups:x(this,dr,"f"),strict:x(this,Ln,"f"),strictCommands:x(this,jn,"f"),strictOptions:x(this,Mn,"f"),completionCommand:x(this,It,"f"),output:x(this,tt,"f"),exitError:x(this,Jr,"f"),hasOutput:x(this,Nt,"f"),parsed:this.parsed,parseFn:x(this,Lt,"f"),parseContext:x(this,In,"f")}),x(this,be,"f").freeze(),x(this,He,"f").freeze(),x(this,Ue,"f").freeze(),x(this,Gt,"f").freeze()}[kg](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(x(this,Ae,"f").process.argv()[0])?r=x(this,Ae,"f").process.argv().slice(1,2):r=x(this,Ae,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[Ug](x(this,kn,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),x(this,Ae,"f").getEnv("_")&&x(this,Ae,"f").getProcessArgvBin()===x(this,Ae,"f").getEnv("_")&&(t=x(this,Ae,"f").getEnv("_").replace(`${x(this,Ae,"f").path.dirname(x(this,Ae,"f").process.execPath())}/`,"")),t}[$n](){return x(this,Zo,"f")}[Tg](){return x(this,ta,"f")}[Lc](){if(!x(this,Tn,"f"))return;let t=x(this,Ae,"f").getEnv("LC_ALL")||x(this,Ae,"f").getEnv("LC_MESSAGES")||x(this,Ae,"f").getEnv("LANG")||x(this,Ae,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[Ig](){return this[jc]().version||"unknown"}[Ng](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)x(this,Ae,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[jc](t){let r=t||"*";if(x(this,wi,"f")[r])return x(this,wi,"f")[r];let n={};try{let i=t||x(this,Ae,"f").mainFilename;!t&&x(this,Ae,"f").path.extname(i)&&(i=x(this,Ae,"f").path.dirname(i));let s=x(this,Ae,"f").findUp(i,(o,a)=>{if(a.includes("package.json"))return"package.json"});mt(s,void 0,x(this,Ae,"f")),n=JSON.parse(x(this,Ae,"f").readFileSync(s,"utf8"))}catch{}return x(this,wi,"f")[r]=n||{},x(this,wi,"f")[r]}[en](t,r){r=[].concat(r),r.forEach(n=>{n=this[Bc](n),x(this,he,"f")[t].push(n)})}[Si](t,r,n,i){this[$c](t,r,n,i,(s,o,a)=>{x(this,he,"f")[s][o]=a})}[Mc](t,r,n,i){this[$c](t,r,n,i,(s,o,a)=>{x(this,he,"f")[s][o]=(x(this,he,"f")[s][o]||[]).concat(a)})}[$c](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 Ai(n))t(o,n[o]);else s(r,this[Bc](n),i)}[Bc](t){return t==="__proto__"?"___proto___":t}[qc](t,r){return this[Si](this[qc].bind(this),"key",t,r),this}[Hc](){var t,r,n,i,s,o,a,u,c,f,l,h;let d=x(this,Xo,"f").pop();mt(d,void 0,x(this,Ae,"f"));let g;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(E){le(t,he,E,"f")}}.value,configObjects:g,exitProcess:{set value(E){le(r,Wt,E,"f")}}.value,groups:{set value(E){le(n,dr,E,"f")}}.value,output:{set value(E){le(i,tt,E,"f")}}.value,exitError:{set value(E){le(s,Jr,E,"f")}}.value,hasOutput:{set value(E){le(o,Nt,E,"f")}}.value,parsed:this.parsed,strict:{set value(E){le(a,Ln,E,"f")}}.value,strictCommands:{set value(E){le(u,jn,E,"f")}}.value,strictOptions:{set value(E){le(c,Mn,E,"f")}}.value,completionCommand:{set value(E){le(f,It,E,"f")}}.value,parseFn:{set value(E){le(l,Lt,E,"f")}}.value,parseContext:{set value(E){le(h,In,E,"f")}}.value}=d,x(this,he,"f").configObjects=g,x(this,be,"f").unfreeze(),x(this,He,"f").unfreeze(),x(this,Ue,"f").unfreeze(),x(this,Gt,"f").unfreeze()}[Lg](t,r){return Dn(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[jg].bind(this),getContext:this[Mg].bind(this),getHasOutput:this[$g].bind(this),getLoggerInstance:this[Bg].bind(this),getParseContext:this[qg].bind(this),getParserConfiguration:this[$n].bind(this),getUsageConfiguration:this[Tg].bind(this),getUsageInstance:this[Hg].bind(this),getValidationInstance:this[Wg].bind(this),hasParseCallback:this[ra].bind(this),isGlobalContext:this[Gg].bind(this),postProcess:this[Bn].bind(this),reset:this[Wc].bind(this),runValidation:this[Gc].bind(this),runYargsParserAndExecuteCommands:this[Ts].bind(this),setHasOutput:this[Yg].bind(this)}}[jg](){return x(this,Ue,"f")}[Mg](){return x(this,ks,"f")}[$g](){return x(this,Nt,"f")}[Bg](){return x(this,bi,"f")}[qg](){return x(this,In,"f")||{}}[Hg](){return x(this,be,"f")}[Wg](){return x(this,He,"f")}[ra](){return!!x(this,Lt,"f")}[Gg](){return x(this,Qo,"f")}[Bn](t,r,n,i){return n||Me(t)||(r||(t=this[Fg](t)),(this[$n]()["parse-positional-numbers"]||this[$n]()["parse-positional-numbers"]===void 0)&&(t=this[Ng](t)),i&&(t=Pn(t,this,x(this,Gt,"f").getMiddleware(),!1))),t}[Wc](t={}){le(this,he,x(this,he,"f")||{},"f");let r={};r.local=x(this,he,"f").local||[],r.configObjects=x(this,he,"f").configObjects||[];let n={};r.local.forEach(o=>{n[o]=!0,(t[o]||[]).forEach(a=>{n[a]=!0})}),Object.assign(x(this,Nn,"f"),Object.keys(x(this,dr,"f")).reduce((o,a)=>{let u=x(this,dr,"f")[a].filter(c=>!(c in n));return u.length>0&&(o[a]=u),o},{})),le(this,dr,{},"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]=(x(this,he,"f")[o]||[]).filter(a=>!n[a])}),s.forEach(o=>{r[o]=Xr(x(this,he,"f")[o],a=>!n[a])}),r.envPrefix=x(this,he,"f").envPrefix,le(this,he,r,"f"),le(this,be,x(this,be,"f")?x(this,be,"f").reset(n):Eg(this,x(this,Ae,"f")),"f"),le(this,He,x(this,He,"f")?x(this,He,"f").reset(n):xg(this,x(this,be,"f"),x(this,Ae,"f")),"f"),le(this,Ue,x(this,Ue,"f")?x(this,Ue,"f").reset():yg(x(this,be,"f"),x(this,He,"f"),x(this,Gt,"f"),x(this,Ae,"f")),"f"),x(this,Ht,"f")||le(this,Ht,Sg(this,x(this,be,"f"),x(this,Ue,"f"),x(this,Ae,"f")),"f"),x(this,Gt,"f").reset(),le(this,It,null,"f"),le(this,tt,"","f"),le(this,Jr,null,"f"),le(this,Nt,!1,"f"),this.parsed=!1,this}[Ug](t,r){return x(this,Ae,"f").path.relative(t,r)}[Ts](t,r,n,i=0,s=!1){let o=!!n||s;t=t||x(this,Zr,"f"),x(this,he,"f").__=x(this,Ae,"f").y18n.__,x(this,he,"f").configuration=this[$n]();let a=!!x(this,he,"f").configuration["populate--"],u=Object.assign({},x(this,he,"f").configuration,{"populate--":!0}),c=x(this,Ae,"f").Parser.detailed(t,Object.assign({},x(this,he,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),f=Object.assign(c.argv,x(this,In,"f")),l,h=c.aliases,d=!1,g=!1;Object.keys(f).forEach(E=>{E===x(this,Ut,"f")&&f[E]?d=!0:E===x(this,pr,"f")&&f[E]&&(g=!0)}),f.$0=this.$0,this.parsed=c,i===0&&x(this,be,"f").clearCachedHelpMessage();try{if(this[Lc](),r)return this[Bn](f,a,!!n,!1);x(this,Ut,"f")&&[x(this,Ut,"f")].concat(h[x(this,Ut,"f")]||[]).filter(j=>j.length>1).includes(""+f._[f._.length-1])&&(f._.pop(),d=!0),le(this,Qo,!1,"f");let E=x(this,Ue,"f").getCommands(),y=x(this,Ht,"f").completionKey in f,F=d||y||s;if(f._.length){if(E.length){let _;for(let j=i||0,T;f._[j]!==void 0;j++)if(T=String(f._[j]),E.includes(T)&&T!==x(this,It,"f")){let w=x(this,Ue,"f").runCommand(T,this,c,j+1,s,d||g||s);return this[Bn](w,a,!!n,!1)}else if(!_&&T!==x(this,It,"f")){_=T;break}!x(this,Ue,"f").hasDefaultCommand()&&x(this,ea,"f")&&_&&!F&&x(this,He,"f").recommendCommands(_,E)}x(this,It,"f")&&f._.includes(x(this,It,"f"))&&!y&&(x(this,Wt,"f")&&Qr(!0),this.showCompletionScript(),this.exit(0))}if(x(this,Ue,"f").hasDefaultCommand()&&!F){let _=x(this,Ue,"f").runCommand(null,this,c,0,s,d||g||s);return this[Bn](_,a,!!n,!1)}if(y){x(this,Wt,"f")&&Qr(!0),t=[].concat(t);let _=t.slice(t.indexOf(`--${x(this,Ht,"f").completionKey}`)+1);return x(this,Ht,"f").getCompletion(_,(j,T)=>{if(j)throw new je(j.message);(T||[]).forEach(w=>{x(this,bi,"f").log(w)}),this.exit(0)}),this[Bn](f,!a,!!n,!1)}if(x(this,Nt,"f")||(d?(x(this,Wt,"f")&&Qr(!0),o=!0,this.showHelp("log"),this.exit(0)):g&&(x(this,Wt,"f")&&Qr(!0),o=!0,x(this,be,"f").showVersion("log"),this.exit(0))),!o&&x(this,he,"f").skipValidation.length>0&&(o=Object.keys(f).some(_=>x(this,he,"f").skipValidation.indexOf(_)>=0&&f[_]===!0)),!o){if(c.error)throw new je(c.error.message);if(!y){let _=this[Gc](h,{},c.error);n||(l=Pn(f,this,x(this,Gt,"f").getMiddleware(),!0)),l=this[Lg](_,l??f),Me(l)&&!n&&(l=l.then(()=>Pn(f,this,x(this,Gt,"f").getMiddleware(),!1)))}}}catch(E){if(E instanceof je)x(this,be,"f").fail(E.message,E);else throw E}return this[Bn](l??f,a,!!n,!0)}[Gc](t,r,n,i){let s={...this.getDemandedOptions()};return o=>{if(n)throw new je(n.message);x(this,He,"f").nonOptionCount(o),x(this,He,"f").requiredArguments(o,s);let a=!1;x(this,jn,"f")&&(a=x(this,He,"f").unknownCommands(o)),x(this,Ln,"f")&&!a?x(this,He,"f").unknownArguments(o,t,r,!!i):x(this,Mn,"f")&&x(this,He,"f").unknownArguments(o,t,{},!1,!1),x(this,He,"f").limitedChoices(o),x(this,He,"f").implications(o),x(this,He,"f").conflicting(o)}}[Yg](){le(this,Nt,!0,"f")}[qn](t){if(typeof t=="string")x(this,he,"f").key[t]=!0;else for(let r of t)x(this,he,"f").key[r]=!0}};function vg(e){return!!e&&typeof e.getInternalMethods=="function"}var aO=zg(Fc),Vg=aO;function Kg(e){let t=Vg(xc(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"}}).help().parseSync();return{skipAuth:t.skipAuth||!1,doValidCheck:!t.skipCheck,configFile:t.configFile}}var cC=Vr(RA(),1);var oC=Vr(rC(),1),wp=require("node:path"),aC=Vr(require("node:fs/promises"),1),Sp=Vr(require("node:path"),1),uC=require("node:os");var dq=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")}},ys=(e,t="")=>{try{let{organization:r}=dq(e);return r}catch{return t}};function _n(e){return Buffer.from(e||"").toString("base64")}var Ju=e=>Buffer.from(e,"base64").toString("utf8");var nC=Vr(require("https"),1),pq={port:443,method:"GET"},iC=async e=>new Promise((t,r)=>{let n={...pq,...e};nC.default.request(n,s=>{let o="",a={},u=s.statusCode===200;s.on("data",c=>{o+=c}),s.on("end",()=>{o&&n?.headers?.Accept==="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()});var sC=async({password:e,organization:t})=>{let r=`Basic ${_n(`.:${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 iC(n)}catch(i){if(i.statusCode===404)return;throw i}};var Zu="me",ec="me@example.com",vs=class{constructor(t,r,n){this.id=t;this.workspaceFileName=r;let i;if(n&&Sp.default.basename(n)===this.workspaceFileName)i=Sp.default.resolve(n);else{let o=(0,oC.getWorkspaceRoot)(process.cwd())||"";i=(0,wp.join)(o,this.workspaceFileName)}this.workspaceFilePath=i;let s=process.env.HOME||process.env.USERPROFILE||(0,uC.homedir)()||"";this.userFilePath=(0,wp.join)(s,r),this.feeds=new Map}async isSupportedInRepo(){try{await aC.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 sC({password:s.authToken||"",organization:s.adoOrganization})}catch{o=!1}t.push({feed:s,isValid:o,fileProvider:this})}else t.push({feed:{registry:i,adoOrganization:ys(i)},isValid:!1,fileProvider:this})}return t}};var As=Vr(require("node:fs/promises"),1),rc=require("node:os");var tc=e=>{let t=new URL(e),n=t.protocol.length+2;return t.toString().slice(n)};var lC=Vr(require("node:path"),1),nc=class extends vs{constructor(t){super("NpmRc",".npmrc",t)}async prepUserFile(){try{let r=(await As.default.readFile(this.userFilePath,"utf-8")).split(rc.EOL).filter(n=>!n.includes("registry=")).join(rc.EOL);await As.default.writeFile(this.userFilePath,r)}catch{await As.default.writeFile(this.userFilePath,"")}}async getWorkspaceRegistries(){let t;try{t=new cC.default({npmPath:this.workspaceFilePath,argv:["<dummy_node>","<dummy_pnpm_js>",`--prefix=${lC.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=>tc(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:ys(n)},t.set(o.registry,o)),i){case"_password":o.authToken=Ju(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(var n of t)r.set(this.toRegistryAndFunctionKey(n.registry,"username"),`//${n.registry}:username=${n.userName||Zu}`),r.set(this.toRegistryAndFunctionKey(n.registry,"email"),`//${n.registry}:email=${n.email||ec}`),r.set(this.toRegistryAndFunctionKey(n.registry,"_password"),`//${n.registry}:_password=${_n(n.authToken)}`);let i=await this.patchUserNpmRcFile(r);await As.default.writeFile(this.userFilePath,i.join(rc.EOL),{encoding:"utf-8"})}async processNpmRcFile(t,r,n){let s=(await As.default.readFile(t,{encoding:"utf8"})).split(`
|
|
157
|
-
`).map(a=>a.trim()),o=[];for(let a of s){let
|
|
152
|
+
`;var pf=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,c=t.length;a<c;++a)if(s[t[a]]&&s[t[a]].builder){let u=s[t[a]].builder;if(qa(u)){this.indexAfterLastReset=a+1;let f=this.yargs.getInternalMethods().reset();return u(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=vn(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 c=!!s.configuration["boolean-negation"]&&s.boolean.includes(a);!o.includes(a)&&!s.hiddenOptions.includes(a)&&!this.argsContainKey(r,a,c)&&this.completeOptionKey(a,t,i,c&&!!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 c=this.yargs.getOptions().choices[a]||[];for(let u of c)u.startsWith(i)&&t.push(u.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 c of o)if(Object.prototype.hasOwnProperty.call(s.key,c)&&Array.isArray(s.choices[c])){a=s.choices[c];break}if(a)return a.filter(c=>!n||c.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,c;let u=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(x=>{let S=d[x];return typeof S=="string"&&S.length>0}),g=p?d[p]:void 0,y=(c=(a=d[t])!==null&&a!==void 0?a:g)!==null&&c!==void 0?c:"";u=`${t.replace(/:/g,"\\:")}:${y.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+u),i&&r.push(h+"no-"+u)}customCompletion(t,r,n,i){if(_t(this.customCompletionFunction,null,this.shim),RD(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 FD(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?$0:N0,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 M0(e,t,r,n){return new pf(e,t,r,n)}function RD(e){return e.length<3}function FD(e){return e.length>3}function j0(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 B0=["$0","--","_"];function q0(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 y of Object.keys(d)){let x=d[y];x&&p.indexOf(x)<0&&p.push(x)}let g=p.length?`
|
|
153
|
+
${p.join(`
|
|
154
|
+
`)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(d).length,Object.keys(d).join(", ")+g))}},s.unknownArguments=function(l,h,d,p,g=!0){var y;let x=e.getInternalMethods().getCommandInstance().getCommands(),S=[],I=e.getInternalMethods().getContext();if(Object.keys(l).forEach(R=>{!B0.includes(R)&&!Object.prototype.hasOwnProperty.call(d,R)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),R)&&!s.isValidAndSomeAliasIsNotNew(R,h)&&S.push(R)}),g&&(I.commands.length>0||x.length>0||p)&&l._.slice(I.commands.length).forEach(R=>{x.includes(""+R)||S.push(""+R)}),g){let w=((y=e.getDemandedCommands()._)===null||y===void 0?void 0:y.max)||0,D=I.commands.length+w;D<l._.length&&l._.slice(D).forEach(L=>{L=String(L),!I.commands.includes(L)&&!S.includes(L)&&S.push(L)})}S.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",S.length,S.map(R=>R.trim()?R:`"${R}"`).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(g=>{h.includes(""+g)||d.push(""+g)}),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(y=>{B0.indexOf(y)===-1&&Object.prototype.hasOwnProperty.call(h.choices,y)&&[].concat(l[y]).forEach(x=>{h.choices[y].indexOf(x)===-1&&x!==void 0&&(d[y]=(d[y]||[]).concat(x))})});let p=Object.keys(d);if(!p.length)return;let g=n("Invalid values:");p.forEach(y=>{g+=`
|
|
155
|
+
${n("Argument: %s, Given: %s, Choices: %s",y,t.stringifiedValues(d[y]),t.stringifiedValues(h.choices[y]))}`}),t.fail(g)};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)):(_t(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(g=>{let y=p,x=g;y=a(l,y),g=a(l,g),y&&!g&&h.push(` ${p} -> ${x}`)})}),h.length){let d=`${n("Implications failed:")}
|
|
156
|
+
`;h.forEach(p=>{d+=p}),t.fail(d)}};let c={};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),c[l]||(c[l]=[]),Array.isArray(h)?h.forEach(d=>s.conflicts(l,d)):c[l].push(h))},s.getConflicting=()=>c,s.conflicting=function(l){Object.keys(l).forEach(h=>{c[h]&&c[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(c).forEach(h=>{c[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((y,x)=>x.length-y.length);let p=null,g=1/0;for(let y=0,x;(x=h[y])!==void 0;y++){let S=j0(l,x);S<=3&&S<g&&(g=S,p=x)}p&&t.fail(n("Did you mean %s?",p))},s.reset=function(l){return o=En(o,h=>!l[h]),c=En(c,h=>!l[h]),s};let u=[];return s.freeze=function(){u.push({implied:o,conflicting:c})},s.unfreeze=function(){let l=u.pop();_t(l,void 0,r),{implied:o,conflicting:c}=l},s}var mf=[],eo;function to(e,t,r,n){eo=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=LD(t,e.extends);else try{o=require.resolve(e.extends)}catch{return e}DD(o),mf.push(o),i=s?JSON.parse(eo.readFileSync(o,"utf8")):require(e.extends),delete e.extends,i=to(i,eo.path.dirname(o),r,eo)}return mf=[],r?G0(i,e):Object.assign({},i,e)}function DD(e){if(mf.indexOf(e)>-1)throw new Be(`Circular extended configurations: '${e}'.`)}function LD(e,t){return eo.path.resolve(e,t)}function G0(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]=G0(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},F=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,ri,ro,er,zt,Ua,wn,ni,Wa,tr,Ha,rr,Rr,Yt,nr,za,Wi,at,pe,Ya,Va,Vt,ii,Hi,si,bn,Ka,Ae,oi,ai,ui,be,Xa,Fr,ze;function uy(e){return(t=[],r=e.process.cwd(),n)=>{let i=new Of(t,r,n,e);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}var U0=Symbol("copyDoubleDash"),W0=Symbol("copyDoubleDash"),gf=Symbol("deleteFromParserHintObject"),H0=Symbol("emitWarning"),z0=Symbol("freeze"),Y0=Symbol("getDollarZero"),ci=Symbol("getParserConfiguration"),V0=Symbol("getUsageConfiguration"),yf=Symbol("guessLocale"),K0=Symbol("guessVersion"),X0=Symbol("parsePositionalNumbers"),vf=Symbol("pkgUp"),Sn=Symbol("populateParserHintArray"),zi=Symbol("populateParserHintSingleValueDictionary"),Ef=Symbol("populateParserHintArrayDictionary"),Af=Symbol("populateParserHintDictionary"),wf=Symbol("sanitizeKey"),bf=Symbol("setKey"),Sf=Symbol("unfreeze"),J0=Symbol("validateAsync"),Q0=Symbol("getCommandInstance"),Z0=Symbol("getContext"),ey=Symbol("getHasOutput"),ty=Symbol("getLoggerInstance"),ry=Symbol("getParseContext"),ny=Symbol("getUsageInstance"),iy=Symbol("getValidationInstance"),Ja=Symbol("hasParseCallback"),sy=Symbol("isGlobalContext"),li=Symbol("postProcess"),oy=Symbol("rebase"),Cf=Symbol("reset"),no=Symbol("runYargsParserAndExecuteCommands"),xf=Symbol("runValidation"),ay=Symbol("setHasOutput"),fi=Symbol("kTrackManuallySetKeys"),Of=class{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Ke.set(this,void 0),ri.set(this,void 0),ro.set(this,{commands:[],fullCommands:[]}),er.set(this,null),zt.set(this,null),Ua.set(this,"show-hidden"),wn.set(this,null),ni.set(this,!0),Wa.set(this,{}),tr.set(this,!0),Ha.set(this,[]),rr.set(this,void 0),Rr.set(this,{}),Yt.set(this,!1),nr.set(this,null),za.set(this,!0),Wi.set(this,void 0),at.set(this,""),pe.set(this,void 0),Ya.set(this,void 0),Va.set(this,{}),Vt.set(this,null),ii.set(this,null),Hi.set(this,{}),si.set(this,{}),bn.set(this,void 0),Ka.set(this,!1),Ae.set(this,void 0),oi.set(this,!1),ai.set(this,!1),ui.set(this,!1),be.set(this,void 0),Xa.set(this,{}),Fr.set(this,null),ze.set(this,void 0),le(this,Ae,i,"f"),le(this,bn,t,"f"),le(this,ri,r,"f"),le(this,Ya,n,"f"),le(this,rr,new Ba(this),"f"),this.$0=this[Y0](),this[Cf](),le(this,Ke,F(this,Ke,"f"),"f"),le(this,be,F(this,be,"f"),"f"),le(this,ze,F(this,ze,"f"),"f"),le(this,pe,F(this,pe,"f"),"f"),F(this,pe,"f").showHiddenOpt=F(this,Ua,"f"),le(this,Wi,this[W0](),"f")}addHelpOpt(t,r){let n="help";return ce("[string|boolean] [string]",[t,r],arguments.length),F(this,nr,"f")&&(this[gf](F(this,nr,"f")),le(this,nr,null,"f")),t===!1&&r===void 0?this:(le(this,nr,typeof t=="string"?t:n,"f"),this.boolean(F(this,nr,"f")),this.describe(F(this,nr,"f"),r||F(this,be,"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:F(this,Ua,"f");return this.boolean(n),this.describe(n,r||F(this,be,"f").deferY18nLookup("Show hidden options")),F(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[Ef](this.alias.bind(this),"alias",t,r),this}array(t){return ce("<array|string>",[t],arguments.length),this[Sn]("array",t),this[fi](t),this}boolean(t){return ce("<array|string>",[t],arguments.length),this[Sn]("boolean",t),this[fi](t),this}check(t,r){return ce("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>ti(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&F(this,be,"f").fail(s.toString(),s):F(this,be,"f").fail(F(this,Ae,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(F(this,be,"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[Ef](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 Be("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 Be("coerce callback must be provided");return F(this,pe,"f").key[t]=!0,F(this,rr,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?ti(()=>(s=i.getAliases(),r(n[t])),a=>{n[t]=a;let c=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[t]&&c!==!0)for(let u of s[t])n[u]=a;return n},a=>{throw new Be(a.message)}):n},t),this}conflicts(t,r){return ce("<string|object> [string|array]",[t,r],arguments.length),F(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=to(t,F(this,ri,"f"),this[ci]()["deep-merge-config"]||!1,F(this,Ae,"f")),F(this,pe,"f").configObjects=(F(this,pe,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||F(this,be,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{F(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,zt,t||F(this,zt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(F(this,zt,"f"),r),n&&F(this,er,"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),F(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=F(this,Ya,"f")||F(this,Ae,"f").require;return F(this,Ke,"f").addDirectory(t,n,F(this,Ae,"f").getCallerFile(),r),this}count(t){return ce("<array|string>",[t],arguments.length),this[Sn]("count",t),this[fi](t),this}default(t,r,n){return ce("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(lf(t,F(this,Ae,"f")),F(this,pe,"f").defaultDescription[t]=n),typeof r=="function"&&(lf(t,F(this,Ae,"f")),F(this,pe,"f").defaultDescription[t]||(F(this,pe,"f").defaultDescription[t]=F(this,be,"f").functionDescription(r)),r=r.call()),this[zi](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),F(this,pe,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{_t(n,!0,F(this,Ae,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(_t(n,!0,F(this,Ae,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{_t(n,!0,F(this,Ae,"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[zi](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return ce("<string> [string|boolean]",[t,r],arguments.length),F(this,pe,"f").deprecatedOptions[t]=r,this}describe(t,r){return ce("<object|string|array> [string]",[t,r],arguments.length),this[bf](t,!0),F(this,be,"f").describe(t,r),this}detectLocale(t){return ce("<boolean>",[t],arguments.length),le(this,ni,t,"f"),this}env(t){return ce("[string|boolean]",[t],arguments.length),t===!1?delete F(this,pe,"f").envPrefix:F(this,pe,"f").envPrefix=t||"",this}epilogue(t){return ce("<string>",[t],arguments.length),F(this,be,"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)):F(this,be,"f").example(t,r),this}exit(t,r){le(this,Yt,!0,"f"),le(this,wn,r,"f"),F(this,tr,"f")&&F(this,Ae,"f").process.exit(t)}exitProcess(t=!0){return ce("[boolean]",[t],arguments.length),le(this,tr,t,"f"),this}fail(t){if(ce("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new Be("Invalid first argument. Expected function or boolean 'false'");return F(this,be,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return ce("<array> [function]",[t,r],arguments.length),r?F(this,er,"f").getCompletion(t,r):new Promise((n,i)=>{F(this,er,"f").getCompletion(t,(s,o)=>{s?i(s):n(o)})})}getDemandedOptions(){return ce([],0),F(this,pe,"f").demandedOptions}getDemandedCommands(){return ce([],0),F(this,pe,"f").demandedCommands}getDeprecatedOptions(){return ce([],0),F(this,pe,"f").deprecatedOptions}getDetectLocale(){return F(this,ni,"f")}getExitProcess(){return F(this,tr,"f")}getGroups(){return Object.assign({},F(this,Rr,"f"),F(this,si,"f"))}getHelp(){if(le(this,Yt,!0,"f"),!F(this,be,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[no](F(this,bn,"f"),void 0,void 0,0,!0);if(qe(r))return r.then(()=>F(this,be,"f").help())}let t=F(this,Ke,"f").runDefaultBuilderOn(this);if(qe(t))return t.then(()=>F(this,be,"f").help())}return Promise.resolve(F(this,be,"f").help())}getOptions(){return F(this,pe,"f")}getStrict(){return F(this,oi,"f")}getStrictCommands(){return F(this,ai,"f")}getStrictOptions(){return F(this,ui,"f")}global(t,r){return ce("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?F(this,pe,"f").local=F(this,pe,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{F(this,pe,"f").local.includes(n)||F(this,pe,"f").local.push(n)}),this}group(t,r){ce("<string|array> <string>",[t,r],arguments.length);let n=F(this,si,"f")[r]||F(this,Rr,"f")[r];F(this,si,"f")[r]&&delete F(this,si,"f")[r];let i={};return F(this,Rr,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return ce("<string>",[t],arguments.length),F(this,pe,"f").hiddenOptions.push(t),this}implies(t,r){return ce("<string|object> [number|string|array]",[t,r],arguments.length),F(this,ze,"f").implies(t,r),this}locale(t){return ce("[string]",[t],arguments.length),t===void 0?(this[yf](),F(this,Ae,"f").y18n.getLocale()):(le(this,ni,!1,"f"),F(this,Ae,"f").y18n.setLocale(t),this)}middleware(t,r,n){return F(this,rr,"f").addMiddleware(t,!!r,n)}nargs(t,r){return ce("<string|object|array> [number]",[t,r],arguments.length),this[zi](this.nargs.bind(this),"narg",t,r),this}normalize(t){return ce("<array|string>",[t],arguments.length),this[Sn]("normalize",t),this}number(t){return ce("<array|string>",[t],arguments.length),this[Sn]("number",t),this[fi](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[fi](t),F(this,Fr,"f")&&(t==="version"||r?.alias==="version")&&this[H0](['"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(`
|
|
157
|
+
`),void 0,"versionWarning"),F(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&&(F(this,pe,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let s=r.describe||r.description||r.desc,o=F(this,be,"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[z0](),typeof t>"u"&&(t=F(this,bn,"f")),typeof r=="object"&&(le(this,ii,r,"f"),r=n),typeof r=="function"&&(le(this,Vt,r,"f"),r=!1),r||le(this,bn,t,"f"),F(this,Vt,"f")&&le(this,tr,!1,"f");let i=this[no](t,!!r),s=this.parsed;return F(this,er,"f").setParsed(this.parsed),qe(i)?i.then(o=>(F(this,Vt,"f")&&F(this,Vt,"f").call(this,F(this,wn,"f"),o,F(this,at,"f")),o)).catch(o=>{throw F(this,Vt,"f")&&F(this,Vt,"f")(o,this.parsed.argv,F(this,at,"f")),o}).finally(()=>{this[Sf](),this.parsed=s}):(F(this,Vt,"f")&&F(this,Vt,"f").call(this,F(this,wn,"f"),i,F(this,at,"f")),this[Sf](),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 Be(".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[vf](r||F(this,ri,"f"));return i[t]&&typeof i[t]=="object"&&(n=to(i[t],r||F(this,ri,"f"),this[ci]()["deep-merge-config"]||!1,F(this,Ae,"f")),F(this,pe,"f").configObjects=(F(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=En(r,(o,a)=>o==="type"&&!["string","number","boolean"].includes(a)?!1:n.includes(o));let i=F(this,ro,"f").fullCommands[F(this,ro,"f").fullCommands.length-1],s=i?F(this,Ke,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Gi(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,F(this,be,"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"&&F(this,pe,"f").narg[t]?this:(this[zi](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,r){return ce("[string] [string]",[t,r],arguments.length),t=t||this.$0,F(this,Wi,"f").log(F(this,er,"f").generateCompletionScript(t,r||F(this,zt,"f")||"completion")),this}showHelp(t){if(ce("[string|function]",[t],arguments.length),le(this,Yt,!0,"f"),!F(this,be,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[no](F(this,bn,"f"),void 0,void 0,0,!0);if(qe(n))return n.then(()=>{F(this,be,"f").showHelp(t)}),this}let r=F(this,Ke,"f").runDefaultBuilderOn(this);if(qe(r))return r.then(()=>{F(this,be,"f").showHelp(t)}),this}return F(this,be,"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),F(this,be,"f").showHelpOnFail(t,r),this}showVersion(t){return ce("[string|function]",[t],arguments.length),F(this,be,"f").showVersion(t),this}skipValidation(t){return ce("<array|string>",[t],arguments.length),this[Sn]("skipValidation",t),this}strict(t){return ce("[boolean]",[t],arguments.length),le(this,oi,t!==!1,"f"),this}strictCommands(t){return ce("[boolean]",[t],arguments.length),le(this,ai,t!==!1,"f"),this}strictOptions(t){return ce("[boolean]",[t],arguments.length),le(this,ui,t!==!1,"f"),this}string(t){return ce("<array|string>",[t],arguments.length),this[Sn]("string",t),this[fi](t),this}terminalWidth(){return ce([],0),F(this,Ae,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return ce("<object>",[t],arguments.length),le(this,ni,!1,"f"),F(this,Ae,"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(_t(t,null,F(this,Ae,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new Be(".usage() description must start with $0 if being used as alias for .command()")}else return F(this,be,"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),F(this,Fr,"f")&&(this[gf](F(this,Fr,"f")),F(this,be,"f").version(void 0),le(this,Fr,null,"f")),arguments.length===0)n=this[K0](),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,Fr,typeof t=="string"?t:i,"f"),r=r||F(this,be,"f").deferY18nLookup("Show version number"),F(this,be,"f").version(n||void 0),this.boolean(F(this,Fr,"f")),this.describe(F(this,Fr,"f"),r),this}wrap(t){return ce("<number|null|undefined>",[t],arguments.length),F(this,be,"f").wrap(t),this}[(Ke=new WeakMap,ri=new WeakMap,ro=new WeakMap,er=new WeakMap,zt=new WeakMap,Ua=new WeakMap,wn=new WeakMap,ni=new WeakMap,Wa=new WeakMap,tr=new WeakMap,Ha=new WeakMap,rr=new WeakMap,Rr=new WeakMap,Yt=new WeakMap,nr=new WeakMap,za=new WeakMap,Wi=new WeakMap,at=new WeakMap,pe=new WeakMap,Ya=new WeakMap,Va=new WeakMap,Vt=new WeakMap,ii=new WeakMap,Hi=new WeakMap,si=new WeakMap,bn=new WeakMap,Ka=new WeakMap,Ae=new WeakMap,oi=new WeakMap,ai=new WeakMap,ui=new WeakMap,be=new WeakMap,Xa=new WeakMap,Fr=new WeakMap,ze=new WeakMap,U0)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[W0](){return{log:(...t)=>{this[Ja]()||console.log(...t),le(this,Yt,!0,"f"),F(this,at,"f").length&&le(this,at,F(this,at,"f")+`
|
|
158
|
+
`,"f"),le(this,at,F(this,at,"f")+t.join(" "),"f")},error:(...t)=>{this[Ja]()||console.error(...t),le(this,Yt,!0,"f"),F(this,at,"f").length&&le(this,at,F(this,at,"f")+`
|
|
159
|
+
`,"f"),le(this,at,F(this,at,"f")+t.join(" "),"f")}}}[gf](t){Gi(F(this,pe,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=F(this,pe,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete F(this,be,"f").getDescriptions()[t]}[H0](t,r,n){F(this,Wa,"f")[n]||(F(this,Ae,"f").process.emitWarning(t,r),F(this,Wa,"f")[n]=!0)}[z0](){F(this,Ha,"f").push({options:F(this,pe,"f"),configObjects:F(this,pe,"f").configObjects.slice(0),exitProcess:F(this,tr,"f"),groups:F(this,Rr,"f"),strict:F(this,oi,"f"),strictCommands:F(this,ai,"f"),strictOptions:F(this,ui,"f"),completionCommand:F(this,zt,"f"),output:F(this,at,"f"),exitError:F(this,wn,"f"),hasOutput:F(this,Yt,"f"),parsed:this.parsed,parseFn:F(this,Vt,"f"),parseContext:F(this,ii,"f")}),F(this,be,"f").freeze(),F(this,ze,"f").freeze(),F(this,Ke,"f").freeze(),F(this,rr,"f").freeze()}[Y0](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(F(this,Ae,"f").process.argv()[0])?r=F(this,Ae,"f").process.argv().slice(1,2):r=F(this,Ae,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[oy](F(this,ri,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),F(this,Ae,"f").getEnv("_")&&F(this,Ae,"f").getProcessArgvBin()===F(this,Ae,"f").getEnv("_")&&(t=F(this,Ae,"f").getEnv("_").replace(`${F(this,Ae,"f").path.dirname(F(this,Ae,"f").process.execPath())}/`,"")),t}[ci](){return F(this,Va,"f")}[V0](){return F(this,Xa,"f")}[yf](){if(!F(this,ni,"f"))return;let t=F(this,Ae,"f").getEnv("LC_ALL")||F(this,Ae,"f").getEnv("LC_MESSAGES")||F(this,Ae,"f").getEnv("LANG")||F(this,Ae,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[K0](){return this[vf]().version||"unknown"}[X0](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)F(this,Ae,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[vf](t){let r=t||"*";if(F(this,Hi,"f")[r])return F(this,Hi,"f")[r];let n={};try{let i=t||F(this,Ae,"f").mainFilename;!t&&F(this,Ae,"f").path.extname(i)&&(i=F(this,Ae,"f").path.dirname(i));let s=F(this,Ae,"f").findUp(i,(o,a)=>{if(a.includes("package.json"))return"package.json"});_t(s,void 0,F(this,Ae,"f")),n=JSON.parse(F(this,Ae,"f").readFileSync(s,"utf8"))}catch{}return F(this,Hi,"f")[r]=n||{},F(this,Hi,"f")[r]}[Sn](t,r){r=[].concat(r),r.forEach(n=>{n=this[wf](n),F(this,pe,"f")[t].push(n)})}[zi](t,r,n,i){this[Af](t,r,n,i,(s,o,a)=>{F(this,pe,"f")[s][o]=a})}[Ef](t,r,n,i){this[Af](t,r,n,i,(s,o,a)=>{F(this,pe,"f")[s][o]=(F(this,pe,"f")[s][o]||[]).concat(a)})}[Af](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 Gi(n))t(o,n[o]);else s(r,this[wf](n),i)}[wf](t){return t==="__proto__"?"___proto___":t}[bf](t,r){return this[zi](this[bf].bind(this),"key",t,r),this}[Sf](){var t,r,n,i,s,o,a,c,u,f,l,h;let d=F(this,Ha,"f").pop();_t(d,void 0,F(this,Ae,"f"));let p;t=this,r=this,n=this,i=this,s=this,o=this,a=this,c=this,u=this,f=this,l=this,h=this,{options:{set value(g){le(t,pe,g,"f")}}.value,configObjects:p,exitProcess:{set value(g){le(r,tr,g,"f")}}.value,groups:{set value(g){le(n,Rr,g,"f")}}.value,output:{set value(g){le(i,at,g,"f")}}.value,exitError:{set value(g){le(s,wn,g,"f")}}.value,hasOutput:{set value(g){le(o,Yt,g,"f")}}.value,parsed:this.parsed,strict:{set value(g){le(a,oi,g,"f")}}.value,strictCommands:{set value(g){le(c,ai,g,"f")}}.value,strictOptions:{set value(g){le(u,ui,g,"f")}}.value,completionCommand:{set value(g){le(f,zt,g,"f")}}.value,parseFn:{set value(g){le(l,Vt,g,"f")}}.value,parseContext:{set value(g){le(h,ii,g,"f")}}.value}=d,F(this,pe,"f").configObjects=p,F(this,be,"f").unfreeze(),F(this,ze,"f").unfreeze(),F(this,Ke,"f").unfreeze(),F(this,rr,"f").unfreeze()}[J0](t,r){return ti(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[Q0].bind(this),getContext:this[Z0].bind(this),getHasOutput:this[ey].bind(this),getLoggerInstance:this[ty].bind(this),getParseContext:this[ry].bind(this),getParserConfiguration:this[ci].bind(this),getUsageConfiguration:this[V0].bind(this),getUsageInstance:this[ny].bind(this),getValidationInstance:this[iy].bind(this),hasParseCallback:this[Ja].bind(this),isGlobalContext:this[sy].bind(this),postProcess:this[li].bind(this),reset:this[Cf].bind(this),runValidation:this[xf].bind(this),runYargsParserAndExecuteCommands:this[no].bind(this),setHasOutput:this[ay].bind(this)}}[Q0](){return F(this,Ke,"f")}[Z0](){return F(this,ro,"f")}[ey](){return F(this,Yt,"f")}[ty](){return F(this,Wi,"f")}[ry](){return F(this,ii,"f")||{}}[ny](){return F(this,be,"f")}[iy](){return F(this,ze,"f")}[Ja](){return!!F(this,Vt,"f")}[sy](){return F(this,za,"f")}[li](t,r,n,i){return n||qe(t)||(r||(t=this[U0](t)),(this[ci]()["parse-positional-numbers"]||this[ci]()["parse-positional-numbers"]===void 0)&&(t=this[X0](t)),i&&(t=ei(t,this,F(this,rr,"f").getMiddleware(),!1))),t}[Cf](t={}){le(this,pe,F(this,pe,"f")||{},"f");let r={};r.local=F(this,pe,"f").local||[],r.configObjects=F(this,pe,"f").configObjects||[];let n={};r.local.forEach(o=>{n[o]=!0,(t[o]||[]).forEach(a=>{n[a]=!0})}),Object.assign(F(this,si,"f"),Object.keys(F(this,Rr,"f")).reduce((o,a)=>{let c=F(this,Rr,"f")[a].filter(u=>!(u in n));return c.length>0&&(o[a]=c),o},{})),le(this,Rr,{},"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]=(F(this,pe,"f")[o]||[]).filter(a=>!n[a])}),s.forEach(o=>{r[o]=En(F(this,pe,"f")[o],a=>!n[a])}),r.envPrefix=F(this,pe,"f").envPrefix,le(this,pe,r,"f"),le(this,be,F(this,be,"f")?F(this,be,"f").reset(n):k0(this,F(this,Ae,"f")),"f"),le(this,ze,F(this,ze,"f")?F(this,ze,"f").reset(n):q0(this,F(this,be,"f"),F(this,Ae,"f")),"f"),le(this,Ke,F(this,Ke,"f")?F(this,Ke,"f").reset():L0(F(this,be,"f"),F(this,ze,"f"),F(this,rr,"f"),F(this,Ae,"f")),"f"),F(this,er,"f")||le(this,er,M0(this,F(this,be,"f"),F(this,Ke,"f"),F(this,Ae,"f")),"f"),F(this,rr,"f").reset(),le(this,zt,null,"f"),le(this,at,"","f"),le(this,wn,null,"f"),le(this,Yt,!1,"f"),this.parsed=!1,this}[oy](t,r){return F(this,Ae,"f").path.relative(t,r)}[no](t,r,n,i=0,s=!1){let o=!!n||s;t=t||F(this,bn,"f"),F(this,pe,"f").__=F(this,Ae,"f").y18n.__,F(this,pe,"f").configuration=this[ci]();let a=!!F(this,pe,"f").configuration["populate--"],c=Object.assign({},F(this,pe,"f").configuration,{"populate--":!0}),u=F(this,Ae,"f").Parser.detailed(t,Object.assign({},F(this,pe,"f"),{configuration:{"parse-positional-numbers":!1,...c}})),f=Object.assign(u.argv,F(this,ii,"f")),l,h=u.aliases,d=!1,p=!1;Object.keys(f).forEach(g=>{g===F(this,nr,"f")&&f[g]?d=!0:g===F(this,Fr,"f")&&f[g]&&(p=!0)}),f.$0=this.$0,this.parsed=u,i===0&&F(this,be,"f").clearCachedHelpMessage();try{if(this[yf](),r)return this[li](f,a,!!n,!1);F(this,nr,"f")&&[F(this,nr,"f")].concat(h[F(this,nr,"f")]||[]).filter(I=>I.length>1).includes(""+f._[f._.length-1])&&(f._.pop(),d=!0),le(this,za,!1,"f");let g=F(this,Ke,"f").getCommands(),y=F(this,er,"f").completionKey in f,x=d||y||s;if(f._.length){if(g.length){let S;for(let I=i||0,R;f._[I]!==void 0;I++)if(R=String(f._[I]),g.includes(R)&&R!==F(this,zt,"f")){let w=F(this,Ke,"f").runCommand(R,this,u,I+1,s,d||p||s);return this[li](w,a,!!n,!1)}else if(!S&&R!==F(this,zt,"f")){S=R;break}!F(this,Ke,"f").hasDefaultCommand()&&F(this,Ka,"f")&&S&&!x&&F(this,ze,"f").recommendCommands(S,g)}F(this,zt,"f")&&f._.includes(F(this,zt,"f"))&&!y&&(F(this,tr,"f")&&An(!0),this.showCompletionScript(),this.exit(0))}if(F(this,Ke,"f").hasDefaultCommand()&&!x){let S=F(this,Ke,"f").runCommand(null,this,u,0,s,d||p||s);return this[li](S,a,!!n,!1)}if(y){F(this,tr,"f")&&An(!0),t=[].concat(t);let S=t.slice(t.indexOf(`--${F(this,er,"f").completionKey}`)+1);return F(this,er,"f").getCompletion(S,(I,R)=>{if(I)throw new Be(I.message);(R||[]).forEach(w=>{F(this,Wi,"f").log(w)}),this.exit(0)}),this[li](f,!a,!!n,!1)}if(F(this,Yt,"f")||(d?(F(this,tr,"f")&&An(!0),o=!0,this.showHelp("log"),this.exit(0)):p&&(F(this,tr,"f")&&An(!0),o=!0,F(this,be,"f").showVersion("log"),this.exit(0))),!o&&F(this,pe,"f").skipValidation.length>0&&(o=Object.keys(f).some(S=>F(this,pe,"f").skipValidation.indexOf(S)>=0&&f[S]===!0)),!o){if(u.error)throw new Be(u.error.message);if(!y){let S=this[xf](h,{},u.error);n||(l=ei(f,this,F(this,rr,"f").getMiddleware(),!0)),l=this[J0](S,l??f),qe(l)&&!n&&(l=l.then(()=>ei(f,this,F(this,rr,"f").getMiddleware(),!1)))}}}catch(g){if(g instanceof Be)F(this,be,"f").fail(g.message,g);else throw g}return this[li](l??f,a,!!n,!0)}[xf](t,r,n,i){let s={...this.getDemandedOptions()};return o=>{if(n)throw new Be(n.message);F(this,ze,"f").nonOptionCount(o),F(this,ze,"f").requiredArguments(o,s);let a=!1;F(this,ai,"f")&&(a=F(this,ze,"f").unknownCommands(o)),F(this,oi,"f")&&!a?F(this,ze,"f").unknownArguments(o,t,r,!!i):F(this,ui,"f")&&F(this,ze,"f").unknownArguments(o,t,{},!1,!1),F(this,ze,"f").limitedChoices(o),F(this,ze,"f").implications(o),F(this,ze,"f").conflicting(o)}}[ay](){le(this,Yt,!0,"f")}[fi](t){if(typeof t=="string")F(this,pe,"f").key[t]=!0;else for(let r of t)F(this,pe,"f").key[r]=!0}};function T0(e){return!!e&&typeof e.getInternalMethods=="function"}var TD=uy(cf),cy=TD;function ly(e){let t=cy(af(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"}}).help().parseSync();return{skipAuth:t.skipAuth||!1,doValidCheck:!t.skipCheck,configFile:t.configFile,azureAuthLocation:t.azureAuthLocation}}var kR=yn(t1(),1);var LR=yn(PR(),1),Mg=require("node:path"),TR=yn(require("node:fs/promises"),1),jg=yn(require("node:path"),1),IR=require("node:os");var d4=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")}},qs=(e,t="")=>{try{let{organization:r}=d4(e);return r}catch{return t}};function Vn(e){return Buffer.from(e||"").toString("base64")}var Dl=e=>Buffer.from(e,"base64").toString("utf8");var RR=yn(require("https"),1),p4={port:443,method:"GET"},FR=async e=>new Promise((t,r)=>{let n={...p4,...e};RR.default.request(n,s=>{let o="",a={},c=s.statusCode===200;s.on("data",u=>{o+=u}),s.on("end",()=>{o&&n?.headers?.Accept==="application/json"&&(a=JSON.parse(o.toString().trim())),c?t(a||o):(a&&(a={...a,statusCode:s.statusCode}),r(a||o||new Error(`Error code: ${s.statusCode}.`)))}),s.on("error",u=>{r(new Error(u))})}).end()});var DR=async({password:e,organization:t})=>{let r=`Basic ${Vn(`.:${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 FR(n)}catch(i){if(i.statusCode===404)return;throw i}};var Ll="me",Tl="me@example.com",Gs=class{constructor(t,r,n){this.id=t;this.workspaceFileName=r;let i;if(n&&jg.default.basename(n)===this.workspaceFileName)i=jg.default.resolve(n);else{let o=(0,LR.getWorkspaceRoot)(process.cwd())||"";i=(0,Mg.join)(o,this.workspaceFileName)}this.workspaceFilePath=i;let s=process.env.HOME||process.env.USERPROFILE||(0,IR.homedir)()||"";this.userFilePath=(0,Mg.join)(s,r),this.feeds=new Map}async isSupportedInRepo(){try{await TR.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 DR({password:s.authToken||"",organization:s.adoOrganization})}catch{o=!1}t.push({feed:s,isValid:o,fileProvider:this})}else t.push({feed:{registry:i,adoOrganization:qs(i)},isValid:!1,fileProvider:this})}return t}};var Us=yn(require("node:fs/promises"),1),kl=require("node:os");var Il=e=>{let t=new URL(e),n=t.protocol.length+2;return t.toString().slice(n)};var NR=yn(require("node:path"),1),Nl=class extends Gs{constructor(t){super("NpmRc",".npmrc",t)}async prepUserFile(){try{let r=(await Us.default.readFile(this.userFilePath,"utf-8")).split(kl.EOL).filter(n=>!n.includes("registry=")).join(kl.EOL);await Us.default.writeFile(this.userFilePath,r)}catch{await Us.default.writeFile(this.userFilePath,"")}}async getWorkspaceRegistries(){let t;try{t=new kR.default({npmPath:this.workspaceFilePath,argv:["<dummy_node>","<dummy_pnpm_js>",`--prefix=${NR.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=>Il(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:qs(n)},t.set(o.registry,o)),i){case"_password":o.authToken=Dl(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 c=t.get(this.toRegistryAndFunctionKey(s,o));return c!==void 0?(r.delete(c),c):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(var n of t)r.set(this.toRegistryAndFunctionKey(n.registry,"username"),`//${n.registry}:username=${n.userName||Ll}`),r.set(this.toRegistryAndFunctionKey(n.registry,"email"),`//${n.registry}:email=${n.email||Tl}`),r.set(this.toRegistryAndFunctionKey(n.registry,"_password"),`//${n.registry}:_password=${Vn(n.authToken)}`);let i=await this.patchUserNpmRcFile(r);await Us.default.writeFile(this.userFilePath,i.join(kl.EOL),{encoding:"utf-8"})}async processNpmRcFile(t,r,n){let s=(await Us.default.readFile(t,{encoding:"utf8"})).split(`
|
|
160
|
+
`).map(a=>a.trim()),o=[];for(let a of s){let c=a.indexOf("/:");if(a.startsWith("//")&&c>=2){let u=a.substring(2,c+1),f=a.substring(c+2),l=f.substring(0,f.indexOf("=")),h=f.substring(f.indexOf("=")+1),d=r(a,u,l,h);d&&o.push(d)}else if(n){let u=n(a);u&&o.push(u)}}return o}};var GR=require("os");var Bl=require("os");var $R=require("node:child_process"),MR=require("node:util"),$l=(0,MR.promisify)($R.exec);var Bg;var m4=["npm","exec","--silent","--yes","azureauth","--"],g4={...process.env,npm_config_registry:"https://registry.npmjs.org"},Ml=()=>(Bg||(Bg=zr()?["azureauth.exe"]:m4),{command:Bg,env:g4});var BR=require("child_process");var jl;var jR=async()=>{if(jl===void 0){let{command:e,env:t}=Ml(),r=`${e.join(" ")} --version`;try{let n=await $l(r,{env:t}),[,i]=n.stdout.split(".");jl=parseInt(i)>=8}catch{jl=!1}}return jl};var qR=async(e,t)=>{if(!Fa())throw new Error(`AzureAuth is not supported for platform ${(0,Bl.platform)()} and architecture ${(0,Bl.arch)()}`);let{command:r,env:n}=t?{command:[t],env:process.env}:Ml(),i=[...r,"ado","pat",`--prompt-hint ${zr()?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(zr())try{if(s=(0,BR.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 $l(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 jR()?new Error(s.message):new Error(`AzureAuth is not installed: ${s}`)}};var UR=async(e,t=!1,r)=>{let n=`${(0,GR.hostname)()}-${e}`,s=(await qR({promptHint:`${n} .npmrc PAT`,organization:e,displayName:`${n}-npmrc-pat`,scope:["vso.packaging"],timeout:"30",output:"json"},r)).token;return t?Vn(s):s};function WR(e,t){let r=new Map;for(var n of e){let i=t(n),s=r.get(i);s?s.push(n):r.set(i,[n])}return r}function oF(e){return typeof e>"u"||e===null}function y4(e){return typeof e=="object"&&e!==null}function v4(e){return Array.isArray(e)?e:oF(e)?[]:[e]}function E4(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 A4(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function w4(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var b4=oF,S4=y4,C4=v4,x4=A4,O4=w4,_4=E4,ot={isNothing:b4,isObject:S4,toArray:C4,repeat:x4,isNegativeZero:O4,extend:_4};function aF(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
161
|
|
|
159
|
-
`+e.mark.snippet),n+" "+r):n}function
|
|
160
|
-
`+a;for(
|
|
161
|
-
`,a+=
|
|
162
|
-
`,
|
|
163
|
-
`;return a.replace(/\n$/,"")}var
|
|
164
|
-
\r`;function
|
|
165
|
-
`: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
|
|
166
|
-
`,t-1))}function
|
|
167
|
-
`,s?1+
|
|
168
|
-
`);break}for(n?
|
|
169
|
-
`,s?1+
|
|
170
|
-
`,
|
|
171
|
-
`,
|
|
172
|
-
`,s?1+
|
|
173
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new
|
|
162
|
+
`+e.mark.snippet),n+" "+r):n}function Sa(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=aF(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+": "+aF(this,t)};var Tt=Sa;function qg(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 Gg(e,t){return ot.repeat(" ",t-e.length)+e}function P4(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="",c,u,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)u=qg(e.buffer,n[o-c],i[o-c],e.position-(n[o]-n[o-c]),l),a=ot.repeat(" ",t.indent)+Gg((e.line-c+1).toString(),f)+" | "+u.str+`
|
|
163
|
+
`+a;for(u=qg(e.buffer,n[o],i[o],e.position,l),a+=ot.repeat(" ",t.indent)+Gg((e.line+1).toString(),f)+" | "+u.str+`
|
|
164
|
+
`,a+=ot.repeat("-",t.indent+f+3+u.pos)+`^
|
|
165
|
+
`,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)u=qg(e.buffer,n[o+c],i[o+c],e.position-(n[o]-n[o+c]),l),a+=ot.repeat(" ",t.indent)+Gg((e.line+c+1).toString(),f)+" | "+u.str+`
|
|
166
|
+
`;return a.replace(/\n$/,"")}var R4=P4,F4=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],D4=["scalar","sequence","mapping"];function L4(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function T4(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(F4.indexOf(r)===-1)throw new Tt('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=L4(t.styleAliases||null),D4.indexOf(this.kind)===-1)throw new Tt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var pt=T4;function HR(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 I4(){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 Wg(e){return this.extend(e)}Wg.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 Tt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof pt))throw new Tt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Tt("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 Tt("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 Tt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Wg.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=HR(i,"implicit"),i.compiledExplicit=HR(i,"explicit"),i.compiledTypeMap=I4(i.compiledImplicit,i.compiledExplicit),i};var uF=Wg,cF=new pt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),lF=new pt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),fF=new pt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),hF=new uF({explicit:[cF,lF,fF]});function k4(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function N4(){return null}function $4(e){return e===null}var dF=new pt("tag:yaml.org,2002:null",{kind:"scalar",resolve:k4,construct:N4,predicate:$4,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function M4(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 j4(e){return e==="true"||e==="True"||e==="TRUE"}function B4(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var pF=new pt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:M4,construct:j4,predicate:B4,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 q4(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function G4(e){return 48<=e&&e<=55}function U4(e){return 48<=e&&e<=57}function W4(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(!q4(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!G4(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!U4(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function H4(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 z4(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!ot.isNegativeZero(e)}var mF=new pt("tag:yaml.org,2002:int",{kind:"scalar",resolve:W4,construct:H4,predicate:z4,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"]}}),Y4=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function V4(e){return!(e===null||!Y4.test(e)||e[e.length-1]==="_")}function K4(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 X4=/^[-+]?[0-9]+e/;function J4(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(ot.isNegativeZero(e))return"-0.0";return r=e.toString(10),X4.test(r)?r.replace("e",".e"):r}function Q4(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ot.isNegativeZero(e))}var gF=new pt("tag:yaml.org,2002:float",{kind:"scalar",resolve:V4,construct:K4,predicate:Q4,represent:J4,defaultStyle:"lowercase"}),yF=hF.extend({implicit:[dF,pF,mF,gF]}),vF=yF,EF=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),AF=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 Z4(e){return e===null?!1:EF.exec(e)!==null||AF.exec(e)!==null}function ez(e){var t,r,n,i,s,o,a,c=0,u=null,f,l,h;if(t=EF.exec(e),t===null&&(t=AF.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(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(f=+t[10],l=+(t[11]||0),u=(f*60+l)*6e4,t[9]==="-"&&(u=-u)),h=new Date(Date.UTC(r,n,i,s,o,a,c)),u&&h.setTime(h.getTime()-u),h}function tz(e){return e.toISOString()}var wF=new pt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Z4,construct:ez,instanceOf:Date,represent:tz});function rz(e){return e==="<<"||e===null}var bF=new pt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:rz}),Kg=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
167
|
+
\r`;function nz(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Kg;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 iz(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Kg,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 sz(e){var t="",r=0,n,i,s=e.length,o=Kg;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 oz(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var SF=new pt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:nz,construct:iz,predicate:oz,represent:sz}),az=Object.prototype.hasOwnProperty,uz=Object.prototype.toString;function cz(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,uz.call(i)!=="[object Object]")return!1;for(s in i)if(az.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 lz(e){return e!==null?e:[]}var CF=new pt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:cz,construct:lz}),fz=Object.prototype.toString;function hz(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],fz.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function dz(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 xF=new pt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:hz,construct:dz}),pz=Object.prototype.hasOwnProperty;function mz(e){if(e===null)return!0;var t,r=e;for(t in r)if(pz.call(r,t)&&r[t]!==null)return!1;return!0}function gz(e){return e!==null?e:{}}var OF=new pt("tag:yaml.org,2002:set",{kind:"mapping",resolve:mz,construct:gz}),Xg=vF.extend({implicit:[wF,bF],explicit:[SF,CF,xF,OF]}),Xn=Object.prototype.hasOwnProperty,ql=1,_F=2,PF=3,Gl=4,Ug=1,yz=2,zR=3,vz=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ez=/[\x85\u2028\u2029]/,Az=/[,\[\]\{\}]/,RF=/^(?:!|!!|![a-z\-]+!)$/i,FF=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function YR(e){return Object.prototype.toString.call(e)}function Gr(e){return e===10||e===13}function Ii(e){return e===9||e===32}function jt(e){return e===9||e===32||e===10||e===13}function Hs(e){return e===44||e===91||e===93||e===123||e===125}function wz(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function bz(e){return e===120?2:e===117?4:e===85?8:0}function Sz(e){return 48<=e&&e<=57?e-48:-1}function VR(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
168
|
+
`: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 Cz(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var DF=new Array(256),LF=new Array(256);for(Ti=0;Ti<256;Ti++)DF[Ti]=VR(Ti)?1:0,LF[Ti]=VR(Ti);var Ti;function xz(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Xg,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 TF(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=R4(r),new Tt(t,r)}function ye(e,t){throw TF(e,t)}function Ul(e,t){e.onWarning&&e.onWarning.call(null,TF(e,t))}var KR={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&&Ul(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],RF.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'),FF.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 Kn(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 vz.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(ot.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)||(t[s]=r[s],n[s]=!0)}function zs(e,t,r,n,i,s,o,a,c){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&ye(e,"nested arrays are not supported inside keys"),typeof i=="object"&&YR(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&YR(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,f=s.length;u<f;u+=1)XR(e,t,s[u],r);else XR(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=c||e.position,ye(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function Jg(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(;Ii(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(Gr(i))for(Jg(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&&Ul(e,"deficient indentation"),n}function zl(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||jt(r)))}function Qg(e,t){t===1?e.result+=" ":t>1&&(e.result+=ot.repeat(`
|
|
169
|
+
`,t-1))}function Oz(e,t,r){var n,i,s,o,a,c,u,f,l=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),jt(d)||Hs(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),jt(i)||r&&Hs(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),jt(i)||r&&Hs(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),jt(n))break}else{if(e.position===e.lineStart&&zl(e)||r&&Hs(d))break;if(Gr(d))if(c=e.line,u=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=c,e.lineStart=u,e.lineIndent=f;break}}a&&(Kn(e,s,o,!1),Qg(e,e.line-c),s=o=e.position,a=!1),Ii(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Kn(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function _z(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(Kn(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 Gr(r)?(Kn(e,n,i,!0),Qg(e,nt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&zl(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 Pz(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 Kn(e,r,e.position,!0),e.position++,!0;if(a===92){if(Kn(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Gr(a))nt(e,!1,t);else if(a<256&&DF[a])e.result+=LF[a],e.position++;else if((o=bz(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=wz(a))>=0?s=(s<<4)+o:ye(e,"expected hexadecimal character");e.result+=Cz(s),e.position++}else ye(e,"unknown escape sequence");r=n=e.position}else Gr(a)?(Kn(e,r,n,!0),Qg(e,nt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&zl(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 Rz(e,t){var r=!0,n,i,s,o=e.tag,a,c=e.anchor,u,f,l,h,d,p=Object.create(null),g,y,x,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=c,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"),y=g=x=null,l=h=!1,S===63&&(u=e.input.charCodeAt(e.position+1),jt(u)&&(l=h=!0,e.position++,nt(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Ys(e,t,ql,!1,!0),y=e.tag,g=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),Ys(e,t,ql,!1,!0),x=e.result),d?zs(e,a,p,y,g,x,n,i,s):l?a.push(zs(e,null,p,y,g,x,n,i,s)):a.push(g),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 Fz(e,t){var r,n,i=Ug,s=!1,o=!1,a=t,c=0,u=!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?zR:yz:ye(e,"repeat of a chomping mode identifier");else if((f=Sz(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(Ii(l)){do l=e.input.charCodeAt(++e.position);while(Ii(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!Gr(l)&&l!==0)}for(;l!==0;){for(Jg(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),Gr(l)){c++;continue}if(e.lineIndent<a){i===zR?e.result+=ot.repeat(`
|
|
170
|
+
`,s?1+c:c):i===Ug&&s&&(e.result+=`
|
|
171
|
+
`);break}for(n?Ii(l)?(u=!0,e.result+=ot.repeat(`
|
|
172
|
+
`,s?1+c:c)):u?(u=!1,e.result+=ot.repeat(`
|
|
173
|
+
`,c+1)):c===0?s&&(e.result+=" "):e.result+=ot.repeat(`
|
|
174
|
+
`,c):e.result+=ot.repeat(`
|
|
175
|
+
`,s?1+c:c),s=!0,o=!0,c=0,r=e.position;!Gr(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Kn(e,r,e.position,!1)}return!0}function JR(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ye(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!jt(o))));){if(a=!0,e.position++,nt(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,Ys(e,t,PF,!1,!0),s.push(e.result),nt(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==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 Dz(e,t,r){var n,i,s,o,a,c,u=e.tag,f=e.anchor,l={},h=Object.create(null),d=null,p=null,g=null,y=!1,x=!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(!y&&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)&&jt(n))S===63?(y&&(zs(e,l,h,d,p,null,o,a,c),d=p=g=null),x=!0,y=!0,i=!0):y?(y=!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,c=e.position,!Ys(e,r,_F,!1,!0))break;if(e.line===s){for(S=e.input.charCodeAt(e.position);Ii(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),jt(S)||ye(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(zs(e,l,h,d,p,null,o,a,c),d=p=g=null),x=!0,y=!1,i=!1,d=e.tag,p=e.result;else if(x)ye(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(x)ye(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(y&&(o=e.line,a=e.lineStart,c=e.position),Ys(e,t,Gl,!0,i)&&(y?p=e.result:g=e.result),y||(zs(e,l,h,d,p,g,o,a,c),d=p=g=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 y&&zs(e,l,h,d,p,null,o,a,c),x&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=l),x}function Lz(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&&!jt(o);)o===33&&(n?ye(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),RF.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),Az.test(s)&&ye(e,"tag suffix cannot contain flow indicator characters")}s&&!FF.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 Tz(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&&!jt(r)&&!Hs(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 Iz(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&&!jt(n)&&!Hs(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 Ys(e,t,r,n,i){var s,o,a,c=1,u=!1,f=!1,l,h,d,p,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Gl===r||PF===r,n&&nt(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;Lz(e)||Tz(e);)nt(e,!0,-1)?(u=!0,a=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=u||i),(c===1||Gl===r)&&(ql===r||_F===r?g=t:g=t+1,y=e.position-e.lineStart,c===1?a&&(JR(e,y)||Dz(e,y,g))||Rz(e,g)?f=!0:(o&&Fz(e,g)||_z(e,g)||Pz(e,g)?f=!0:Iz(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&ye(e,"alias node should not have any properties")):Oz(e,g,ql===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(f=a&&JR(e,y))),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 kz(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&&!jt(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(;Ii(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Gr(o));break}if(Gr(o))break;for(r=e.position;o!==0&&!jt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&Jg(e),Xn.call(KR,n)?KR[n](e,n,i):Ul(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"),Ys(e,e.lineIndent-1,Gl,!1,!0),nt(e,!0,-1),e.checkLineBreaks&&Ez.test(e.input.slice(t,e.position))&&Ul(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&zl(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 IF(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
176
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new xz(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;)kz(r);return r.documents}function Nz(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=IF(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function $z(e,t){var r=IF(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Tt("expected a single document in the stream, but found more")}}var Mz=Nz,jz=$z,kF={loadAll:Mz,load:jz},NF=Object.prototype.toString,$F=Object.prototype.hasOwnProperty,Zg=65279,Bz=9,Ca=10,qz=13,Gz=32,Uz=33,Wz=34,Hg=35,Hz=37,zz=38,Yz=39,Vz=42,MF=44,Kz=45,Wl=58,Xz=61,Jz=62,Qz=63,Zz=64,jF=91,BF=93,e7=96,qF=123,t7=124,GF=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 r7=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],n7=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function i7(e,t){var r,n,i,s,o,a,c;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)),c=e.compiledTypeMap.fallback[o],c&&$F.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function s7(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 Tt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ot.repeat("0",n-t.length)+t}var o7=1,xa=2;function a7(e){this.schema=e.schema||Xg,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ot.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=i7(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:o7,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 QR(e,t){for(var r=ot.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
|
|
174
177
|
`,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
|
|
175
|
-
`&&(s+=r),s+=o;return s}function
|
|
176
|
-
`+
|
|
178
|
+
`&&(s+=r),s+=o;return s}function zg(e,t){return`
|
|
179
|
+
`+ot.repeat(" ",e.indent*t)}function u7(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 Hl(e){return e===Gz||e===Bz}function Oa(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Zg||65536<=e&&e<=1114111}function ZR(e){return Oa(e)&&e!==Zg&&e!==qz&&e!==Ca}function eF(e,t,r){var n=ZR(e),i=n&&!Hl(e);return(r?n:n&&e!==MF&&e!==jF&&e!==BF&&e!==qF&&e!==GF)&&e!==Hg&&!(t===Wl&&!i)||ZR(t)&&!Hl(t)&&e===Hg||t===Wl&&i}function c7(e){return Oa(e)&&e!==Zg&&!Hl(e)&&e!==Kz&&e!==Qz&&e!==Wl&&e!==MF&&e!==jF&&e!==BF&&e!==qF&&e!==GF&&e!==Hg&&e!==zz&&e!==Vz&&e!==Uz&&e!==t7&&e!==Xz&&e!==Jz&&e!==Yz&&e!==Wz&&e!==Hz&&e!==Zz&&e!==e7}function l7(e){return!Hl(e)&&e!==Wl}function ba(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 UF(e){var t=/^\n* /;return t.test(e)}var WF=1,Yg=2,HF=3,zF=4,Ws=5;function f7(e,t,r,n,i,s,o,a){var c,u=0,f=null,l=!1,h=!1,d=n!==-1,p=-1,g=c7(ba(e,0))&&l7(ba(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=ba(e,c),!Oa(u))return Ws;g=g&&eF(u,f,a),f=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=ba(e,c),u===Ca)l=!0,d&&(h=h||c-p-1>n&&e[p+1]!==" ",p=c);else if(!Oa(u))return Ws;g=g&&eF(u,f,a),f=u}h=h||d&&c-p-1>n&&e[p+1]!==" "}return!l&&!h?g&&!o&&!i(e)?WF:s===xa?Ws:Yg:r>9&&UF(e)?Ws:o?s===xa?Ws:Yg:h?zF:HF}function h7(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===xa?'""':"''";if(!e.noCompatMode&&(r7.indexOf(t)!==-1||n7.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 c(u){return u7(e,u)}switch(f7(t,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!n,i)){case WF:return t;case Yg:return"'"+t.replace(/'/g,"''")+"'";case HF:return"|"+tF(t,e.indent)+rF(QR(t,s));case zF:return">"+tF(t,e.indent)+rF(QR(d7(t,o),s));case Ws:return'"'+p7(t)+'"';default:throw new Tt("impossible error: invalid scalar style")}}()}function tF(e,t){var r=UF(e)?String(t):"",n=e[e.length-1]===`
|
|
177
180
|
`,i=n&&(e[e.length-2]===`
|
|
178
181
|
`||e===`
|
|
179
182
|
`),s=i?"+":n?"":"-";return r+s+`
|
|
180
|
-
`}function
|
|
181
|
-
`?e.slice(0,-1):e}function
|
|
182
|
-
`);return
|
|
183
|
-
`||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],
|
|
184
|
-
`:"")+
|
|
185
|
-
`+e.slice(i,s),i=s+1),o=a;return
|
|
186
|
-
`,e.length-i>t&&o>i?
|
|
187
|
-
`+e.slice(o+1):
|
|
188
|
-
`:""}var
|
|
183
|
+
`}function rF(e){return e[e.length-1]===`
|
|
184
|
+
`?e.slice(0,-1):e}function d7(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
|
|
185
|
+
`);return u=u!==-1?u:e.length,r.lastIndex=u,nF(e.slice(0,u),t)}(),i=e[0]===`
|
|
186
|
+
`||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],c=o[2];s=c[0]===" ",n+=a+(!i&&!s&&c!==""?`
|
|
187
|
+
`:"")+nF(c,t),i=s}return n}function nF(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,c="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,c+=`
|
|
188
|
+
`+e.slice(i,s),i=s+1),o=a;return c+=`
|
|
189
|
+
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
190
|
+
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function p7(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=ba(e,i),n=wt[r],!n&&Oa(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||s7(r);return t}function m7(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)),(fn(e,t,a,!1,!1)||typeof a>"u"&&fn(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function iF(e,t,r,n){var i="",s=e.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],e.replacer&&(c=e.replacer.call(r,String(o),c)),(fn(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&fn(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=zg(e,t)),e.dump&&Ca===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function g7(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,c,u,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),c=s[o],u=r[c],e.replacer&&(u=e.replacer.call(r,c,u)),fn(e,t,c,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),fn(e,t,u,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function y7(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,c,u,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 Tt("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!n||i!=="")&&(h+=zg(e,t)),u=o[a],f=r[u],e.replacer&&(f=e.replacer.call(r,u,f)),fn(e,t+1,u,!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+=zg(e,t)),fn(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 sF(e,t,r){var n,i,s,o,a,c;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(c=e.styleMap[a.tag]||a.defaultStyle,NF.call(a.represent)==="[object Function]")n=a.represent(t,c);else if($F.call(a.represent,c))n=a.represent[c](t,c);else throw new Tt("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function fn(e,t,r,n,i,s,o){e.tag=null,e.dump=r,sF(e,r,!1)||sF(e,r,!0);var a=NF.call(e.dump),c=n,u;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?(y7(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(g7(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?iF(e,t-1,e.dump,i):iF(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(m7(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&h7(e,e.dump,t,s,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Tt("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function v7(e,t){var r=[],n=[],i,s;for(Vg(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Vg(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)Vg(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Vg(e[n[i]],t,r)}function E7(e,t){t=t||{};var r=new a7(t);r.noRefs||v7(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),fn(r,0,n,!0,!0)?r.dump+`
|
|
191
|
+
`:""}var A7=E7,w7={dump:A7};function e0(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 b7=pt,S7=uF,C7=hF,x7=yF,O7=vF,_7=Xg,P7=kF.load,R7=kF.loadAll,F7=w7.dump,D7=Tt,L7={binary:SF,float:gF,map:fF,null:dF,pairs:xF,set:OF,timestamp:wF,bool:pF,int:mF,merge:bF,omap:CF,seq:lF,str:cF},T7=e0("safeLoad","load"),I7=e0("safeLoadAll","loadAll"),k7=e0("safeDump","dump"),N7={Type:b7,Schema:S7,FAILSAFE_SCHEMA:C7,JSON_SCHEMA:x7,CORE_SCHEMA:O7,DEFAULT_SCHEMA:_7,load:P7,loadAll:R7,dump:F7,YAMLException:D7,types:L7,safeLoad:T7,safeLoadAll:I7,safeDump:k7},t0=N7;var Yl=yn(require("node:fs/promises"),1);var Vl=class extends Gs{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 Yl.default.writeFile(this.userFilePath,"")}}async getUserFeeds(){let t=new Map,r=await this.paseYarnRc(this.userFilePath);if(!r)return t;let n=r.npmRegistries||{};for(var i of Object.keys(n)){let s=n[i]||{},o=i.startsWith("//")?i.substring(2):i,a={registry:o,adoOrganization:qs(o)},c=Dl(s.npmAuthIdent||""),u=c.indexOf(":");u>0&&(a.userName=c.substring(0,u),a.authToken=c.substring(u+1)),t.set(o,a)}return t}async getWorkspaceRegistries(){let t=[],r=await this.paseYarnRc(this.workspaceFilePath);if(r.npmRegistryServer&&t.push(Il(r.npmRegistryServer)),r.npmScopes)for(var 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(var n of t){let i="//"+n.registry,s=r.npmRegistries[i]||{};s.npmAlwaysAuth===void 0&&(s.npmAlwaysAuth=!0),s.npmAuthIdent=Vn(`${n.userName}:${n.authToken}`),r.npmRegistries[i]=s}await this.writeYarnRc(this.userFilePath,r)}async writeYarnRc(t,r){let n=t0.dump(r);await Yl.default.writeFile(t,n,"utf8")}async paseYarnRc(t){let r=await Yl.default.readFile(t,"utf8");return t0.load(r,{filename:t})}};var YF=async e=>{let t=[new Nl(e.configFile),new Vl(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 ji({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 Set;for(let c of n.map(u=>u.feed.adoOrganization))s.add(c);let o={};for(let c of s)o[c]=await UR(c,!1,e.azureAuthLocation);for(let c of n){let u=c.feed,f=o[u.adoOrganization];if(!f)return console.log(`\u274C Failed to obtain pat for ${u.registry} via ${c.fileProvider.id}`),!1;u.authToken=f,u.email||(u.email=Tl),u.userName||(u.userName=Ll)}let a=WR(n,c=>c.fileProvider);for(let[c,u]of a)await c.writeWorkspaceRegistries(u.map(f=>f.feed));return!0}catch(s){return ji({success:!1,automaticSuccess:!1,error:s.message},!0),console.log("Encountered error while performing auth",s),!1}};i0()&&process.exit(0);if(!Fa()){let e=`Platform ${(0,Kl.platform)()} and architecture ${(0,Kl.arch)()} not supported for automatic authentication.`;console.log(e),ji({success:!1,error:e},!0),process.exit(0)}var $7=ly(process.argv);YF($7).then(e=>{e===null?(ji({success:!0}),console.log("\u2705 Current authentication is valid")):e?(ji({success:!0,automaticSuccess:!0}),console.log("\u2705 Automatic authentication successful")):(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});
|
|
189
192
|
/*! Bundled license information:
|
|
190
193
|
|
|
191
194
|
is-extglob/index.js:
|
|
@@ -286,4 +289,3 @@ yargs-parser/build/lib/index.js:
|
|
|
286
289
|
js-yaml/dist/js-yaml.mjs:
|
|
287
290
|
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
|
288
291
|
*/
|
|
289
|
-
//# sourceMappingURL=ado-npm-auth.cjs.map
|