From 8fb1cf35ad6398d378b2db45b7b8b3909aead0fb Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 2 Apr 2025 15:14:30 +0300 Subject: [PATCH] Update Yarn to v4.8.1 (#24894) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .yarn/releases/{yarn-4.8.0.cjs => yarn-4.8.1.cjs} | 6 +++--- .yarnrc.yml | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename .yarn/releases/{yarn-4.8.0.cjs => yarn-4.8.1.cjs} (99%) diff --git a/.yarn/releases/yarn-4.8.0.cjs b/.yarn/releases/yarn-4.8.1.cjs similarity index 99% rename from .yarn/releases/yarn-4.8.0.cjs rename to .yarn/releases/yarn-4.8.1.cjs index 4b11aea16c..e635cf2247 100755 --- a/.yarn/releases/yarn-4.8.0.cjs +++ b/.yarn/releases/yarn-4.8.1.cjs @@ -168,7 +168,7 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);C(T)}return} `),1}};for(n(await u(t));t.then;){if(r.exitCode!==null)return r.exitCode;switch(t.then.type){case"&&":a===0&&n(await u(t.then.line));break;case"||":a!==0&&n(await u(t.then.line));break;default:throw new Error(`Assertion failed: Unsupported command type: "${t.then.type}"`)}t=t.then.line}return a}async function Eb(t,e,r){let o=r.backgroundJobs;r.backgroundJobs=[];let a=0;for(let{command:n,type:u}of t){if(a=await hot(n,e,r,{background:u==="&"}),r.exitCode!==null)return r.exitCode;r.variables["?"]=String(a)}return await Promise.all(r.backgroundJobs),r.backgroundJobs=o,a}function tue(t){switch(t.type){case"variable":return t.name==="@"||t.name==="#"||t.name==="*"||Number.isFinite(parseInt(t.name,10))||"defaultValue"in t&&!!t.defaultValue&&t.defaultValue.some(e=>$1(e))||"alternativeValue"in t&&!!t.alternativeValue&&t.alternativeValue.some(e=>$1(e));case"arithmetic":return XU(t.arithmetic);case"shell":return ZU(t.shell);default:return!1}}function $1(t){switch(t.type){case"redirection":return t.args.some(e=>$1(e));case"argument":return t.segments.some(e=>tue(e));default:throw new Error(`Assertion failed: Unsupported argument type: "${t.type}"`)}}function XU(t){switch(t.type){case"variable":return tue(t);case"number":return!1;default:return XU(t.left)||XU(t.right)}}function ZU(t){return t.some(({command:e})=>{for(;e;){let r=e.chain;for(;r;){let o;switch(r.type){case"subshell":o=ZU(r.subshell);break;case"command":o=r.envs.some(a=>a.args.some(n=>$1(n)))||r.args.some(a=>$1(a));break}if(o)return!0;if(!r.then)break;r=r.then.chain}if(!e.then)break;e=e.then.line}return!1})}async function Fy(t,e=[],{baseFs:r=new _n,builtins:o={},cwd:a=ue.toPortablePath(process.cwd()),env:n=process.env,stdin:u=process.stdin,stdout:A=process.stdout,stderr:p=process.stderr,variables:h={},glob:E=gb}={}){let w={};for(let[C,T]of Object.entries(n))typeof T<"u"&&(w[C]=T);let D=new Map(lot);for(let[C,T]of Object.entries(o))D.set(C,T);u===null&&(u=new pl.PassThrough,u.end());let b=uP(t,E);if(!ZU(b)&&b.length>0&&e.length>0){let{command:C}=b[b.length-1];for(;C.then;)C=C.then.line;let T=C.chain;for(;T.then;)T=T.then.chain;T.type==="command"&&(T.args=T.args.concat(e.map(L=>({type:"argument",segments:[{type:"text",text:L}]}))))}return await Eb(b,{args:e,baseFs:r,builtins:D,initialStdin:u,initialStdout:A,initialStderr:p,glob:E},{cwd:a,environment:w,exitCode:null,procedures:{},stdin:u,stdout:A,stderr:p,variables:Object.assign({},h,{"?":0}),nextBackgroundJobIndex:1,backgroundJobs:[]})}var Xce,Zce,pl,$ce,lot,uot,J1=It(()=>{Pt();Ol();Xce=et(sL()),Zce=De("os"),pl=De("stream"),$ce=De("timers/promises");Nce();Lce();_ce();JU();JU();lot=new Map([["cd",async([t=(0,Zce.homedir)(),...e],r,o)=>{let a=K.resolve(o.cwd,ue.toPortablePath(t));if(!(await r.baseFs.statPromise(a).catch(u=>{throw u.code==="ENOENT"?new fl(`cd: no such file or directory: ${t}`):u})).isDirectory())throw new fl(`cd: not a directory: ${t}`);return o.cwd=a,0}],["pwd",async(t,e,r)=>(r.stdout.write(`${ue.fromPortablePath(r.cwd)} `),0)],[":",async(t,e,r)=>0],["true",async(t,e,r)=>0],["false",async(t,e,r)=>1],["exit",async([t,...e],r,o)=>o.exitCode=parseInt(t??o.variables["?"],10)],["echo",async(t,e,r)=>(r.stdout.write(`${t.join(" ")} `),0)],["sleep",async([t],e,r)=>{if(typeof t>"u")throw new fl("sleep: missing operand");let o=Number(t);if(Number.isNaN(o))throw new fl(`sleep: invalid time interval '${t}'`);return await(0,$ce.setTimeout)(1e3*o,0)}],["unset",async(t,e,r)=>{for(let o of t)delete r.environment[o],delete r.variables[o];return 0}],["__ysh_run_procedure",async(t,e,r)=>{let o=r.procedures[t[0]];return await db(o,{stdin:new Zl(r.stdin),stdout:new Zl(r.stdout),stderr:new Zl(r.stderr)}).run()}],["__ysh_set_redirects",async(t,e,r)=>{let o=r.stdin,a=r.stdout,n=r.stderr,u=[],A=[],p=[],h=0;for(;t[h]!=="--";){let w=t[h++],{type:D,fd:b}=JSON.parse(w),C=z=>{switch(b){case null:case 0:u.push(z);break;default:throw new Error(`Unsupported file descriptor: "${b}"`)}},T=z=>{switch(b){case null:case 1:A.push(z);break;case 2:p.push(z);break;default:throw new Error(`Unsupported file descriptor: "${b}"`)}},L=Number(t[h++]),U=h+L;for(let z=h;ze.baseFs.createReadStream(K.resolve(r.cwd,ue.toPortablePath(t[z]))));break;case"<<<":C(()=>{let te=new pl.PassThrough;return process.nextTick(()=>{te.write(`${t[z]} -`),te.end()}),te});break;case"<&":C(()=>Kce(Number(t[z]),1,r));break;case">":case">>":{let te=K.resolve(r.cwd,ue.toPortablePath(t[z]));T(te==="/dev/null"?new pl.Writable({autoDestroy:!0,emitClose:!0,write(le,de,ce){setImmediate(ce)}}):e.baseFs.createWriteStream(te,D===">>"?{flags:"a"}:void 0))}break;case">&":T(Kce(Number(t[z]),2,r));break;default:throw new Error(`Assertion failed: Unsupported redirection type: "${D}"`)}}if(u.length>0){let w=new pl.PassThrough;o=w;let D=b=>{if(b===u.length)w.end();else{let C=u[b]();C.pipe(w,{end:!1}),C.on("end",()=>{D(b+1)})}};D(0)}if(A.length>0){let w=new pl.PassThrough;a=w;for(let D of A)w.pipe(D)}if(p.length>0){let w=new pl.PassThrough;n=w;for(let D of p)w.pipe(D)}let E=await db(Z1(t.slice(h+1),e,r),{stdin:new Zl(o),stdout:new Zl(a),stderr:new Zl(n)}).run();return await Promise.all(A.map(w=>new Promise((D,b)=>{w.on("error",C=>{b(C)}),w.on("close",()=>{D()}),w.end()}))),await Promise.all(p.map(w=>new Promise((D,b)=>{w.on("error",C=>{b(C)}),w.on("close",()=>{D()}),w.end()}))),E}]]);uot={addition:(t,e)=>t+e,subtraction:(t,e)=>t-e,multiplication:(t,e)=>t*e,division:(t,e)=>Math.trunc(t/e)}});var Cb=_((HMt,rue)=>{function got(t,e){for(var r=-1,o=t==null?0:t.length,a=Array(o);++r{var nue=yg(),dot=Cb(),mot=jl(),yot=hy(),Eot=1/0,iue=nue?nue.prototype:void 0,sue=iue?iue.toString:void 0;function oue(t){if(typeof t=="string")return t;if(mot(t))return dot(t,oue)+"";if(yot(t))return sue?sue.call(t):"";var e=t+"";return e=="0"&&1/t==-Eot?"-0":e}aue.exports=oue});var t2=_((jMt,cue)=>{var Cot=lue();function Iot(t){return t==null?"":Cot(t)}cue.exports=Iot});var $U=_((GMt,uue)=>{function wot(t,e,r){var o=-1,a=t.length;e<0&&(e=-e>a?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var n=Array(a);++o{var Bot=$U();function vot(t,e,r){var o=t.length;return r=r===void 0?o:r,!e&&r>=o?t:Bot(t,e,r)}Aue.exports=vot});var e3=_((YMt,pue)=>{var Dot="\\ud800-\\udfff",Pot="\\u0300-\\u036f",Sot="\\ufe20-\\ufe2f",xot="\\u20d0-\\u20ff",bot=Pot+Sot+xot,Qot="\\ufe0e\\ufe0f",kot="\\u200d",Fot=RegExp("["+kot+Dot+bot+Qot+"]");function Rot(t){return Fot.test(t)}pue.exports=Rot});var gue=_((KMt,hue)=>{function Tot(t){return t.split("")}hue.exports=Tot});var Bue=_((VMt,wue)=>{var due="\\ud800-\\udfff",Not="\\u0300-\\u036f",Lot="\\ufe20-\\ufe2f",Oot="\\u20d0-\\u20ff",Mot=Not+Lot+Oot,Uot="\\ufe0e\\ufe0f",_ot="["+due+"]",t3="["+Mot+"]",r3="\\ud83c[\\udffb-\\udfff]",Hot="(?:"+t3+"|"+r3+")",mue="[^"+due+"]",yue="(?:\\ud83c[\\udde6-\\uddff]){2}",Eue="[\\ud800-\\udbff][\\udc00-\\udfff]",qot="\\u200d",Cue=Hot+"?",Iue="["+Uot+"]?",jot="(?:"+qot+"(?:"+[mue,yue,Eue].join("|")+")"+Iue+Cue+")*",Got=Iue+Cue+jot,Wot="(?:"+[mue+t3+"?",t3,yue,Eue,_ot].join("|")+")",Yot=RegExp(r3+"(?="+r3+")|"+Wot+Got,"g");function Kot(t){return t.match(Yot)||[]}wue.exports=Kot});var Due=_((zMt,vue)=>{var Vot=gue(),zot=e3(),Jot=Bue();function Xot(t){return zot(t)?Jot(t):Vot(t)}vue.exports=Xot});var Sue=_((JMt,Pue)=>{var Zot=fue(),$ot=e3(),eat=Due(),tat=t2();function rat(t){return function(e){e=tat(e);var r=$ot(e)?eat(e):void 0,o=r?r[0]:e.charAt(0),a=r?Zot(r,1).join(""):e.slice(1);return o[t]()+a}}Pue.exports=rat});var bue=_((XMt,xue)=>{var nat=Sue(),iat=nat("toUpperCase");xue.exports=iat});var n3=_((ZMt,Que)=>{var sat=t2(),oat=bue();function aat(t){return oat(sat(t).toLowerCase())}Que.exports=aat});var kue=_(($Mt,Ib)=>{function lat(){var t=0,e=1,r=2,o=3,a=4,n=5,u=6,A=7,p=8,h=9,E=10,w=11,D=12,b=13,C=14,T=15,L=16,U=17,z=0,te=1,le=2,de=3,ce=4;function me(g,Ce){return 55296<=g.charCodeAt(Ce)&&g.charCodeAt(Ce)<=56319&&56320<=g.charCodeAt(Ce+1)&&g.charCodeAt(Ce+1)<=57343}function pe(g,Ce){Ce===void 0&&(Ce=0);var ye=g.charCodeAt(Ce);if(55296<=ye&&ye<=56319&&Ce=1){var Ae=g.charCodeAt(Ce-1),ie=ye;return 55296<=Ae&&Ae<=56319?(Ae-55296)*1024+(ie-56320)+65536:ie}return ye}function ve(g,Ce,ye){var Ae=[g].concat(Ce).concat([ye]),ie=Ae[Ae.length-2],Z=ye,Pe=Ae.lastIndexOf(C);if(Pe>1&&Ae.slice(1,Pe).every(function(q){return q==o})&&[o,b,U].indexOf(g)==-1)return le;var Re=Ae.lastIndexOf(a);if(Re>0&&Ae.slice(1,Re).every(function(q){return q==a})&&[D,a].indexOf(ie)==-1)return Ae.filter(function(q){return q==a}).length%2==1?de:ce;if(ie==t&&Z==e)return z;if(ie==r||ie==t||ie==e)return Z==C&&Ce.every(function(q){return q==o})?le:te;if(Z==r||Z==t||Z==e)return te;if(ie==u&&(Z==u||Z==A||Z==h||Z==E))return z;if((ie==h||ie==A)&&(Z==A||Z==p))return z;if((ie==E||ie==p)&&Z==p)return z;if(Z==o||Z==T)return z;if(Z==n)return z;if(ie==D)return z;var gt=Ae.indexOf(o)!=-1?Ae.lastIndexOf(o)-1:Ae.length-2;return[b,U].indexOf(Ae[gt])!=-1&&Ae.slice(gt+1,-1).every(function(q){return q==o})&&Z==C||ie==T&&[L,U].indexOf(Z)!=-1?z:Ce.indexOf(a)!=-1?le:ie==a&&Z==a?z:te}this.nextBreak=function(g,Ce){if(Ce===void 0&&(Ce=0),Ce<0)return 0;if(Ce>=g.length-1)return g.length;for(var ye=Ie(pe(g,Ce)),Ae=[],ie=Ce+1;ie{var cat=/^(.*?)(\x1b\[[^m]+m|\x1b\]8;;.*?(\x1b\\|\u0007))/,wb;function uat(){if(wb)return wb;if(typeof Intl.Segmenter<"u"){let t=new Intl.Segmenter("en",{granularity:"grapheme"});return wb=e=>Array.from(t.segment(e),({segment:r})=>r)}else{let t=kue(),e=new t;return wb=r=>e.splitGraphemes(r)}}Fue.exports=(t,e=0,r=t.length)=>{if(e<0||r<0)throw new RangeError("Negative indices aren't supported by this implementation");let o=r-e,a="",n=0,u=0;for(;t.length>0;){let A=t.match(cat)||[t,t,void 0],p=uat()(A[1]),h=Math.min(e-n,p.length);p=p.slice(h);let E=Math.min(o-u,p.length);a+=p.slice(0,E).join(""),n+=h,u+=E,typeof A[2]<"u"&&(a+=A[2]),t=t.slice(A[0].length)}return a}});var nn,r2=It(()=>{nn=process.env.YARN_IS_TEST_ENV?"0.0.0":"4.8.0"});function Uue(t,{configuration:e,json:r}){if(!e.get("enableMessageNames"))return"";let a=zu(t===null?0:t);return!r&&t===null?Ut(e,a,"grey"):a}function i3(t,{configuration:e,json:r}){let o=Uue(t,{configuration:e,json:r});if(!o||t===null||t===0)return o;let a=vr[t],n=`https://yarnpkg.com/advanced/error-codes#${o}---${a}`.toLowerCase();return ry(e,o,n)}async function Ry({configuration:t,stdout:e,forceError:r},o){let a=await Nt.start({configuration:t,stdout:e,includeFooter:!1},async n=>{let u=!1,A=!1;for(let p of o)typeof p.option<"u"&&(p.error||r?(A=!0,n.reportError(50,p.message)):(u=!0,n.reportWarning(50,p.message)),p.callback?.());u&&!A&&n.reportSeparator()});return a.hasErrors()?a.exitCode():null}var Oue,Bb,Aat,Tue,Nue,gh,Mue,Lue,fat,pat,vb,hat,Nt,n2=It(()=>{Oue=et(Rue()),Bb=et(ag());jP();Vl();r2();Wl();Aat="\xB7",Tue=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],Nue=80,gh=Bb.default.GITHUB_ACTIONS?{start:t=>`::group::${t} +`),te.end()}),te});break;case"<&":C(()=>Kce(Number(t[z]),1,r));break;case">":case">>":{let te=K.resolve(r.cwd,ue.toPortablePath(t[z]));T(te==="/dev/null"?new pl.Writable({autoDestroy:!0,emitClose:!0,write(le,de,ce){setImmediate(ce)}}):e.baseFs.createWriteStream(te,D===">>"?{flags:"a"}:void 0))}break;case">&":T(Kce(Number(t[z]),2,r));break;default:throw new Error(`Assertion failed: Unsupported redirection type: "${D}"`)}}if(u.length>0){let w=new pl.PassThrough;o=w;let D=b=>{if(b===u.length)w.end();else{let C=u[b]();C.pipe(w,{end:!1}),C.on("end",()=>{D(b+1)})}};D(0)}if(A.length>0){let w=new pl.PassThrough;a=w;for(let D of A)w.pipe(D)}if(p.length>0){let w=new pl.PassThrough;n=w;for(let D of p)w.pipe(D)}let E=await db(Z1(t.slice(h+1),e,r),{stdin:new Zl(o),stdout:new Zl(a),stderr:new Zl(n)}).run();return await Promise.all(A.map(w=>new Promise((D,b)=>{w.on("error",C=>{b(C)}),w.on("close",()=>{D()}),w.end()}))),await Promise.all(p.map(w=>new Promise((D,b)=>{w.on("error",C=>{b(C)}),w.on("close",()=>{D()}),w.end()}))),E}]]);uot={addition:(t,e)=>t+e,subtraction:(t,e)=>t-e,multiplication:(t,e)=>t*e,division:(t,e)=>Math.trunc(t/e)}});var Cb=_((HMt,rue)=>{function got(t,e){for(var r=-1,o=t==null?0:t.length,a=Array(o);++r{var nue=yg(),dot=Cb(),mot=jl(),yot=hy(),Eot=1/0,iue=nue?nue.prototype:void 0,sue=iue?iue.toString:void 0;function oue(t){if(typeof t=="string")return t;if(mot(t))return dot(t,oue)+"";if(yot(t))return sue?sue.call(t):"";var e=t+"";return e=="0"&&1/t==-Eot?"-0":e}aue.exports=oue});var t2=_((jMt,cue)=>{var Cot=lue();function Iot(t){return t==null?"":Cot(t)}cue.exports=Iot});var $U=_((GMt,uue)=>{function wot(t,e,r){var o=-1,a=t.length;e<0&&(e=-e>a?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var n=Array(a);++o{var Bot=$U();function vot(t,e,r){var o=t.length;return r=r===void 0?o:r,!e&&r>=o?t:Bot(t,e,r)}Aue.exports=vot});var e3=_((YMt,pue)=>{var Dot="\\ud800-\\udfff",Pot="\\u0300-\\u036f",Sot="\\ufe20-\\ufe2f",xot="\\u20d0-\\u20ff",bot=Pot+Sot+xot,Qot="\\ufe0e\\ufe0f",kot="\\u200d",Fot=RegExp("["+kot+Dot+bot+Qot+"]");function Rot(t){return Fot.test(t)}pue.exports=Rot});var gue=_((KMt,hue)=>{function Tot(t){return t.split("")}hue.exports=Tot});var Bue=_((VMt,wue)=>{var due="\\ud800-\\udfff",Not="\\u0300-\\u036f",Lot="\\ufe20-\\ufe2f",Oot="\\u20d0-\\u20ff",Mot=Not+Lot+Oot,Uot="\\ufe0e\\ufe0f",_ot="["+due+"]",t3="["+Mot+"]",r3="\\ud83c[\\udffb-\\udfff]",Hot="(?:"+t3+"|"+r3+")",mue="[^"+due+"]",yue="(?:\\ud83c[\\udde6-\\uddff]){2}",Eue="[\\ud800-\\udbff][\\udc00-\\udfff]",qot="\\u200d",Cue=Hot+"?",Iue="["+Uot+"]?",jot="(?:"+qot+"(?:"+[mue,yue,Eue].join("|")+")"+Iue+Cue+")*",Got=Iue+Cue+jot,Wot="(?:"+[mue+t3+"?",t3,yue,Eue,_ot].join("|")+")",Yot=RegExp(r3+"(?="+r3+")|"+Wot+Got,"g");function Kot(t){return t.match(Yot)||[]}wue.exports=Kot});var Due=_((zMt,vue)=>{var Vot=gue(),zot=e3(),Jot=Bue();function Xot(t){return zot(t)?Jot(t):Vot(t)}vue.exports=Xot});var Sue=_((JMt,Pue)=>{var Zot=fue(),$ot=e3(),eat=Due(),tat=t2();function rat(t){return function(e){e=tat(e);var r=$ot(e)?eat(e):void 0,o=r?r[0]:e.charAt(0),a=r?Zot(r,1).join(""):e.slice(1);return o[t]()+a}}Pue.exports=rat});var bue=_((XMt,xue)=>{var nat=Sue(),iat=nat("toUpperCase");xue.exports=iat});var n3=_((ZMt,Que)=>{var sat=t2(),oat=bue();function aat(t){return oat(sat(t).toLowerCase())}Que.exports=aat});var kue=_(($Mt,Ib)=>{function lat(){var t=0,e=1,r=2,o=3,a=4,n=5,u=6,A=7,p=8,h=9,E=10,w=11,D=12,b=13,C=14,T=15,L=16,U=17,z=0,te=1,le=2,de=3,ce=4;function me(g,Ce){return 55296<=g.charCodeAt(Ce)&&g.charCodeAt(Ce)<=56319&&56320<=g.charCodeAt(Ce+1)&&g.charCodeAt(Ce+1)<=57343}function pe(g,Ce){Ce===void 0&&(Ce=0);var ye=g.charCodeAt(Ce);if(55296<=ye&&ye<=56319&&Ce=1){var Ae=g.charCodeAt(Ce-1),ie=ye;return 55296<=Ae&&Ae<=56319?(Ae-55296)*1024+(ie-56320)+65536:ie}return ye}function ve(g,Ce,ye){var Ae=[g].concat(Ce).concat([ye]),ie=Ae[Ae.length-2],Z=ye,Pe=Ae.lastIndexOf(C);if(Pe>1&&Ae.slice(1,Pe).every(function(q){return q==o})&&[o,b,U].indexOf(g)==-1)return le;var Re=Ae.lastIndexOf(a);if(Re>0&&Ae.slice(1,Re).every(function(q){return q==a})&&[D,a].indexOf(ie)==-1)return Ae.filter(function(q){return q==a}).length%2==1?de:ce;if(ie==t&&Z==e)return z;if(ie==r||ie==t||ie==e)return Z==C&&Ce.every(function(q){return q==o})?le:te;if(Z==r||Z==t||Z==e)return te;if(ie==u&&(Z==u||Z==A||Z==h||Z==E))return z;if((ie==h||ie==A)&&(Z==A||Z==p))return z;if((ie==E||ie==p)&&Z==p)return z;if(Z==o||Z==T)return z;if(Z==n)return z;if(ie==D)return z;var gt=Ae.indexOf(o)!=-1?Ae.lastIndexOf(o)-1:Ae.length-2;return[b,U].indexOf(Ae[gt])!=-1&&Ae.slice(gt+1,-1).every(function(q){return q==o})&&Z==C||ie==T&&[L,U].indexOf(Z)!=-1?z:Ce.indexOf(a)!=-1?le:ie==a&&Z==a?z:te}this.nextBreak=function(g,Ce){if(Ce===void 0&&(Ce=0),Ce<0)return 0;if(Ce>=g.length-1)return g.length;for(var ye=Ie(pe(g,Ce)),Ae=[],ie=Ce+1;ie{var cat=/^(.*?)(\x1b\[[^m]+m|\x1b\]8;;.*?(\x1b\\|\u0007))/,wb;function uat(){if(wb)return wb;if(typeof Intl.Segmenter<"u"){let t=new Intl.Segmenter("en",{granularity:"grapheme"});return wb=e=>Array.from(t.segment(e),({segment:r})=>r)}else{let t=kue(),e=new t;return wb=r=>e.splitGraphemes(r)}}Fue.exports=(t,e=0,r=t.length)=>{if(e<0||r<0)throw new RangeError("Negative indices aren't supported by this implementation");let o=r-e,a="",n=0,u=0;for(;t.length>0;){let A=t.match(cat)||[t,t,void 0],p=uat()(A[1]),h=Math.min(e-n,p.length);p=p.slice(h);let E=Math.min(o-u,p.length);a+=p.slice(0,E).join(""),n+=h,u+=E,typeof A[2]<"u"&&(a+=A[2]),t=t.slice(A[0].length)}return a}});var nn,r2=It(()=>{nn=process.env.YARN_IS_TEST_ENV?"0.0.0":"4.8.1"});function Uue(t,{configuration:e,json:r}){if(!e.get("enableMessageNames"))return"";let a=zu(t===null?0:t);return!r&&t===null?Ut(e,a,"grey"):a}function i3(t,{configuration:e,json:r}){let o=Uue(t,{configuration:e,json:r});if(!o||t===null||t===0)return o;let a=vr[t],n=`https://yarnpkg.com/advanced/error-codes#${o}---${a}`.toLowerCase();return ry(e,o,n)}async function Ry({configuration:t,stdout:e,forceError:r},o){let a=await Nt.start({configuration:t,stdout:e,includeFooter:!1},async n=>{let u=!1,A=!1;for(let p of o)typeof p.option<"u"&&(p.error||r?(A=!0,n.reportError(50,p.message)):(u=!0,n.reportWarning(50,p.message)),p.callback?.());u&&!A&&n.reportSeparator()});return a.hasErrors()?a.exitCode():null}var Oue,Bb,Aat,Tue,Nue,gh,Mue,Lue,fat,pat,vb,hat,Nt,n2=It(()=>{Oue=et(Rue()),Bb=et(ag());jP();Vl();r2();Wl();Aat="\xB7",Tue=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],Nue=80,gh=Bb.default.GITHUB_ACTIONS?{start:t=>`::group::${t} `,end:t=>`::endgroup:: `}:Bb.default.TRAVIS?{start:t=>`travis_fold:start:${t} `,end:t=>`travis_fold:end:${t} @@ -193,7 +193,7 @@ exec "${r}" ${o.map(a=>`'${a.replace(/'/g,`'"'"'`)}'`).join(" ")} "$@" `}),A},o})});var As={};Kt(As,{emitList:()=>Zct,emitTree:()=>Vpe,treeNodeToJson:()=>Kpe,treeNodeToTreeify:()=>Ype});function Ype(t,{configuration:e}){let r={},o=0,a=(n,u)=>{let A=Array.isArray(n)?n.entries():Object.entries(n);for(let[p,h]of A){if(!h)continue;let{label:E,value:w,children:D}=h,b=[];typeof E<"u"&&b.push(wg(e,E,2)),typeof w<"u"&&b.push(Ut(e,w[0],w[1])),b.length===0&&b.push(wg(e,`${p}`,2));let C=b.join(": ").trim(),T=`\0${o++}\0`,L=u[`${T}${C}`]={};typeof D<"u"&&a(D,L)}};if(typeof t.children>"u")throw new Error("The root node must only contain children");return a(t.children,r),r}function Kpe(t){let e=r=>{if(typeof r.children>"u"){if(typeof r.value>"u")throw new Error("Assertion failed: Expected a value to be set if the children are missing");return Bg(r.value[0],r.value[1])}let o=Array.isArray(r.children)?r.children.entries():Object.entries(r.children??{}),a=Array.isArray(r.children)?[]:{};for(let[n,u]of o)u&&(a[$ct(n)]=e(u));return typeof r.value>"u"?a:{value:Bg(r.value[0],r.value[1]),children:a}};return e(t)}function Zct(t,{configuration:e,stdout:r,json:o}){let a=t.map(n=>({value:n}));Vpe({children:a},{configuration:e,stdout:r,json:o})}function Vpe(t,{configuration:e,stdout:r,json:o,separators:a=0}){if(o){let u=Array.isArray(t.children)?t.children.values():Object.values(t.children??{});for(let A of u)A&&r.write(`${JSON.stringify(Kpe(A))} `);return}let n=(0,Wpe.asTree)(Ype(t,{configuration:e}),!1,!1);if(n=n.replace(/\0[0-9]+\0/g,""),a>=1&&(n=n.replace(/^([├└]─)/gm,`\u2502 $1`).replace(/^│\n/,"")),a>=2)for(let u=0;u<2;++u)n=n.replace(/^([│ ].{2}[├│ ].{2}[^\n]+\n)(([│ ]).{2}[├└].{2}[^\n]*\n[│ ].{2}[│ ].{2}[├└]─)/gm,`$1$3 \u2502 -$2`).replace(/^│\n/,"");if(a>=3)throw new Error("Only the first two levels are accepted by treeUtils.emitTree");r.write(n)}function $ct(t){return typeof t=="string"?t.replace(/^\0[0-9]+\0/,""):t}var Wpe,zpe=It(()=>{Wpe=et(Gpe());Wl()});var PQ,Jpe=It(()=>{PQ=class{constructor(e){this.releaseFunction=e;this.map=new Map}addOrCreate(e,r){let o=this.map.get(e);if(typeof o<"u"){if(o.refCount<=0)throw new Error(`Race condition in RefCountedMap. While adding a new key the refCount is: ${o.refCount} for ${JSON.stringify(e)}`);return o.refCount++,{value:o.value,release:()=>this.release(e)}}else{let a=r();return this.map.set(e,{refCount:1,value:a}),{value:a,release:()=>this.release(e)}}}release(e){let r=this.map.get(e);if(!r)throw new Error(`Unbalanced calls to release. No known instances of: ${JSON.stringify(e)}`);let o=r.refCount;if(o<=0)throw new Error(`Unbalanced calls to release. Too many release vs alloc refcount would become: ${o-1} of ${JSON.stringify(e)}`);o==1?(this.map.delete(e),this.releaseFunction(r.value)):r.refCount--}}});function v2(t){let e=t.match(eut);if(!e?.groups)throw new Error("Assertion failed: Expected the checksum to match the requested pattern");let r=e.groups.cacheVersion?parseInt(e.groups.cacheVersion):null;return{cacheKey:e.groups.cacheKey??null,cacheVersion:r,cacheSpec:e.groups.cacheSpec??null,hash:e.groups.hash}}var Xpe,V_,z_,SQ,Wr,eut,J_=It(()=>{Ve();Pt();Pt();sA();Xpe=De("crypto"),V_=et(De("fs"));Jpe();Vl();lh();Gl();Io();z_=$m(process.env.YARN_CACHE_CHECKPOINT_OVERRIDE??process.env.YARN_CACHE_VERSION_OVERRIDE??9),SQ=$m(process.env.YARN_CACHE_VERSION_OVERRIDE??10),Wr=class t{constructor(e,{configuration:r,immutable:o=r.get("enableImmutableCache"),check:a=!1}){this.markedFiles=new Set;this.mutexes=new Map;this.refCountedZipFsCache=new PQ(e=>e.discardAndClose);this.cacheId=`-${(0,Xpe.randomBytes)(8).toString("hex")}.tmp`;this.configuration=r,this.cwd=e,this.immutable=o,this.check=a;let{cacheSpec:n,cacheKey:u}=t.getCacheKey(r);this.cacheSpec=n,this.cacheKey=u}static async find(e,{immutable:r,check:o}={}){let a=new t(e.get("cacheFolder"),{configuration:e,immutable:r,check:o});return await a.setup(),a}static getCacheKey(e){let r=e.get("compressionLevel"),o=r!=="mixed"?`c${r}`:"";return{cacheKey:[SQ,o].join(""),cacheSpec:o}}get mirrorCwd(){if(!this.configuration.get("enableMirror"))return null;let e=`${this.configuration.get("globalFolder")}/cache`;return e!==this.cwd?e:null}getVersionFilename(e){return`${uy(e)}-${this.cacheKey}.zip`}getChecksumFilename(e,r){let a=v2(r).hash.slice(0,10);return`${uy(e)}-${a}.zip`}isChecksumCompatible(e){if(e===null)return!1;let{cacheVersion:r,cacheSpec:o}=v2(e);if(r===null||r=3)throw new Error("Only the first two levels are accepted by treeUtils.emitTree");r.write(n)}function $ct(t){return typeof t=="string"?t.replace(/^\0[0-9]+\0/,""):t}var Wpe,zpe=It(()=>{Wpe=et(Gpe());Wl()});var PQ,Jpe=It(()=>{PQ=class{constructor(e){this.releaseFunction=e;this.map=new Map}addOrCreate(e,r){let o=this.map.get(e);if(typeof o<"u"){if(o.refCount<=0)throw new Error(`Race condition in RefCountedMap. While adding a new key the refCount is: ${o.refCount} for ${JSON.stringify(e)}`);return o.refCount++,{value:o.value,release:()=>this.release(e)}}else{let a=r();return this.map.set(e,{refCount:1,value:a}),{value:a,release:()=>this.release(e)}}}release(e){let r=this.map.get(e);if(!r)throw new Error(`Unbalanced calls to release. No known instances of: ${JSON.stringify(e)}`);let o=r.refCount;if(o<=0)throw new Error(`Unbalanced calls to release. Too many release vs alloc refcount would become: ${o-1} of ${JSON.stringify(e)}`);o==1?(this.map.delete(e),this.releaseFunction(r.value)):r.refCount--}}});function v2(t){let e=t.match(eut);if(!e?.groups)throw new Error("Assertion failed: Expected the checksum to match the requested pattern");let r=e.groups.cacheVersion?parseInt(e.groups.cacheVersion):null;return{cacheKey:e.groups.cacheKey??null,cacheVersion:r,cacheSpec:e.groups.cacheSpec??null,hash:e.groups.hash}}var Xpe,V_,z_,SQ,Wr,eut,J_=It(()=>{Ve();Pt();Pt();sA();Xpe=De("crypto"),V_=et(De("fs"));Jpe();Vl();lh();Gl();Io();z_=$m(process.env.YARN_CACHE_CHECKPOINT_OVERRIDE??process.env.YARN_CACHE_VERSION_OVERRIDE??9),SQ=$m(process.env.YARN_CACHE_VERSION_OVERRIDE??10),Wr=class t{constructor(e,{configuration:r,immutable:o=r.get("enableImmutableCache"),check:a=!1}){this.markedFiles=new Set;this.mutexes=new Map;this.refCountedZipFsCache=new PQ(e=>{e.discardAndClose()});this.cacheId=`-${(0,Xpe.randomBytes)(8).toString("hex")}.tmp`;this.configuration=r,this.cwd=e,this.immutable=o,this.check=a;let{cacheSpec:n,cacheKey:u}=t.getCacheKey(r);this.cacheSpec=n,this.cacheKey=u}static async find(e,{immutable:r,check:o}={}){let a=new t(e.get("cacheFolder"),{configuration:e,immutable:r,check:o});return await a.setup(),a}static getCacheKey(e){let r=e.get("compressionLevel"),o=r!=="mixed"?`c${r}`:"";return{cacheKey:[SQ,o].join(""),cacheSpec:o}}get mirrorCwd(){if(!this.configuration.get("enableMirror"))return null;let e=`${this.configuration.get("globalFolder")}/cache`;return e!==this.cwd?e:null}getVersionFilename(e){return`${uy(e)}-${this.cacheKey}.zip`}getChecksumFilename(e,r){let a=v2(r).hash.slice(0,10);return`${uy(e)}-${a}.zip`}isChecksumCompatible(e){if(e===null)return!1;let{cacheVersion:r,cacheSpec:o}=v2(e);if(r===null||r{let pe=new Zi,ve=K.join(Bt.root,qM(e));return pe.mkdirSync(ve,{recursive:!0}),pe.writeJsonSync(K.join(ve,mr.manifest),{name:rn(e),mocked:!0}),pe},E=async(pe,{isColdHit:ve,controlPath:Ie=null})=>{if(Ie===null&&u.unstablePackages?.has(e.locatorHash))return{isValid:!0,hash:null};let g=r&&!ve?v2(r).cacheKey:this.cacheKey,Ce=!u.skipIntegrityCheck||!r?`${g}/${await fx(pe)}`:r;if(Ie!==null){let Ae=!u.skipIntegrityCheck||!r?`${this.cacheKey}/${await fx(Ie)}`:r;if(Ce!==Ae)throw new zt(18,"The remote archive doesn't match the local checksum - has the local cache been corrupted?")}let ye=null;switch(r!==null&&Ce!==r&&(this.check?ye="throw":v2(r).cacheKey!==v2(Ce).cacheKey?ye="update":ye=this.configuration.get("checksumBehavior")),ye){case null:case"update":return{isValid:!0,hash:Ce};case"ignore":return{isValid:!0,hash:r};case"reset":return{isValid:!1,hash:r};default:case"throw":throw new zt(18,"The remote archive doesn't match the expected checksum")}},w=async pe=>{if(!n)throw new Error(`Cache check required but no loader configured for ${jr(this.configuration,e)}`);let ve=await n(),Ie=ve.getRealPath();ve.saveAndClose(),await ae.chmodPromise(Ie,420);let g=await E(pe,{controlPath:Ie,isColdHit:!1});if(!g.isValid)throw new Error("Assertion failed: Expected a valid checksum");return g.hash},D=async()=>{if(A===null||!await ae.existsPromise(A)){let pe=await n(),ve=pe.getRealPath();return pe.saveAndClose(),{source:"loader",path:ve}}return{source:"mirror",path:A}},b=async()=>{if(!n)throw new Error(`Cache entry required but missing for ${jr(this.configuration,e)}`);if(this.immutable)throw new zt(56,`Cache entry required but missing for ${jr(this.configuration,e)}`);let{path:pe,source:ve}=await D(),{hash:Ie}=await E(pe,{isColdHit:!0}),g=this.getLocatorPath(e,Ie),Ce=[];ve!=="mirror"&&A!==null&&Ce.push(async()=>{let Ae=`${A}${this.cacheId}`;await ae.copyFilePromise(pe,Ae,V_.default.constants.COPYFILE_FICLONE),await ae.chmodPromise(Ae,420),await ae.renamePromise(Ae,A)}),(!u.mirrorWriteOnly||A===null)&&Ce.push(async()=>{let Ae=`${g}${this.cacheId}`;await ae.copyFilePromise(pe,Ae,V_.default.constants.COPYFILE_FICLONE),await ae.chmodPromise(Ae,420),await ae.renamePromise(Ae,g)});let ye=u.mirrorWriteOnly?A??g:g;return await Promise.all(Ce.map(Ae=>Ae())),[!1,ye,Ie]},C=async()=>{let ve=(async()=>{let Ie=u.unstablePackages?.has(e.locatorHash),g=Ie||!r||this.isChecksumCompatible(r)?this.getLocatorPath(e,r):null,Ce=g!==null?this.markedFiles.has(g)||await p.existsPromise(g):!1,ye=!!u.mockedPackages?.has(e.locatorHash)&&(!this.check||!Ce),Ae=ye||Ce,ie=Ae?o:a;if(ie&&ie(),Ae){let Z=null,Pe=g;if(!ye)if(this.check)Z=await w(Pe);else{let Re=await E(Pe,{isColdHit:!1});if(Re.isValid)Z=Re.hash;else return b()}return[ye,Pe,Z]}else{if(this.immutable&&Ie)throw new zt(56,`Cache entry required but missing for ${jr(this.configuration,e)}; consider defining ${fe.pretty(this.configuration,"supportedArchitectures",fe.Type.CODE)} to cache packages for multiple systems`);return b()}})();this.mutexes.set(e.locatorHash,ve);try{return await ve}finally{this.mutexes.delete(e.locatorHash)}};for(let pe;pe=this.mutexes.get(e.locatorHash);)await pe;let[T,L,U]=await C();T||this.markedFiles.add(L);let z=()=>this.refCountedZipFsCache.addOrCreate(L,()=>T?h():new Zi(L,{baseFs:p,readOnly:!0})),te,le=new pm(()=>iO(()=>(te=z(),te.value),pe=>`Failed to open the cache entry for ${jr(this.configuration,e)}: ${pe}`),K),de=new ju(L,{baseFs:le,pathUtils:K}),ce=()=>{te?.release()},me=u.unstablePackages?.has(e.locatorHash)?null:U;return[de,ce,me]}},eut=/^(?:(?(?[0-9]+)(?.*))\/)?(?.*)$/});var xQ,Zpe=It(()=>{xQ=(r=>(r[r.SCRIPT=0]="SCRIPT",r[r.SHELLCODE=1]="SHELLCODE",r))(xQ||{})});var tut,nE,X_=It(()=>{Pt();Ol();Qf();Io();tut=[[/^(git(?:\+(?:https|ssh))?:\/\/.*(?:\.git)?)#(.*)$/,(t,e,r,o)=>`${r}#commit=${o}`],[/^https:\/\/((?:[^/]+?)@)?codeload\.github\.com\/([^/]+\/[^/]+)\/tar\.gz\/([0-9a-f]+)$/,(t,e,r="",o,a)=>`https://${r}github.com/${o}.git#commit=${a}`],[/^https:\/\/((?:[^/]+?)@)?github\.com\/([^/]+\/[^/]+?)(?:\.git)?#([0-9a-f]+)$/,(t,e,r="",o,a)=>`https://${r}github.com/${o}.git#commit=${a}`],[/^https?:\/\/[^/]+\/(?:[^/]+\/)*(?:@.+(?:\/|(?:%2f)))?([^/]+)\/(?:-|download)\/\1-[^/]+\.tgz(?:#|$)/,t=>`npm:${t}`],[/^https:\/\/npm\.pkg\.github\.com\/download\/(?:@[^/]+)\/(?:[^/]+)\/(?:[^/]+)\/(?:[0-9a-f]+)(?:#|$)/,t=>`npm:${t}`],[/^https:\/\/npm\.fontawesome\.com\/(?:@[^/]+)\/([^/]+)\/-\/([^/]+)\/\1-\2.tgz(?:#|$)/,t=>`npm:${t}`],[/^https?:\/\/[^/]+\/.*\/(@[^/]+)\/([^/]+)\/-\/\1\/\2-(?:[.\d\w-]+)\.tgz(?:#|$)/,(t,e)=>mx({protocol:"npm:",source:null,selector:t,params:{__archiveUrl:e}})],[/^[^/]+\.tgz#[0-9a-f]+$/,t=>`npm:${t}`]],nE=class{constructor(e){this.resolver=e;this.resolutions=null}async setup(e,{report:r}){let o=K.join(e.cwd,mr.lockfile);if(!ae.existsSync(o))return;let a=await ae.readFilePromise(o,"utf8"),n=Ki(a);if(Object.hasOwn(n,"__metadata"))return;let u=this.resolutions=new Map;for(let A of Object.keys(n)){let p=v1(A);if(!p){r.reportWarning(14,`Failed to parse the string "${A}" into a proper descriptor`);continue}let h=Fa(p.range)?Qn(p,`npm:${p.range}`):p,{version:E,resolved:w}=n[A];if(!w)continue;let D;for(let[C,T]of tut){let L=w.match(C);if(L){D=T(E,...L);break}}if(!D){r.reportWarning(14,`${zn(e.configuration,h)}: Only some patterns can be imported from legacy lockfiles (not "${w}")`);continue}let b=h;try{let C=Pg(h.range),T=v1(C.selector,!0);T&&(b=T)}catch{}u.set(h.descriptorHash,Ss(b,D))}}supportsDescriptor(e,r){return this.resolutions?this.resolutions.has(e.descriptorHash):!1}supportsLocator(e,r){return!1}shouldPersistResolution(e,r){throw new Error("Assertion failed: This resolver doesn't support resolving locators to packages")}bindDescriptor(e,r,o){return e}getResolutionDependencies(e,r){return{}}async getCandidates(e,r,o){if(!this.resolutions)throw new Error("Assertion failed: The resolution store should have been setup");let a=this.resolutions.get(e.descriptorHash);if(!a)throw new Error("Assertion failed: The resolution should have been registered");let n=MM(a),u=o.project.configuration.normalizeDependency(n);return await this.resolver.getCandidates(u,r,o)}async getSatisfying(e,r,o,a){let[n]=await this.getCandidates(e,r,a);return{locators:o.filter(u=>u.locatorHash===n.locatorHash),sorted:!1}}async resolve(e,r){throw new Error("Assertion failed: This resolver doesn't support resolving locators to packages")}}});var pA,$pe=It(()=>{Vl();n2();Wl();pA=class extends Ws{constructor({configuration:r,stdout:o,suggestInstall:a=!0}){super();this.errorCount=0;d1(this,{configuration:r}),this.configuration=r,this.stdout=o,this.suggestInstall=a}static async start(r,o){let a=new this(r);try{await o(a)}catch(n){a.reportExceptionOnce(n)}finally{await a.finalize()}return a}hasErrors(){return this.errorCount>0}exitCode(){return this.hasErrors()?1:0}reportCacheHit(r){}reportCacheMiss(r){}startSectionSync(r,o){return o()}async startSectionPromise(r,o){return await o()}startTimerSync(r,o,a){return(typeof o=="function"?o:a)()}async startTimerPromise(r,o,a){return await(typeof o=="function"?o:a)()}reportSeparator(){}reportInfo(r,o){}reportWarning(r,o){}reportError(r,o){this.errorCount+=1,this.stdout.write(`${Ut(this.configuration,"\u27A4","redBright")} ${this.formatNameWithHyperlink(r)}: ${o} @@ -245,7 +245,7 @@ ${[w,D,b].join(` `);return o&&(C=this.styles.cyan(C),L=this.styles.cyan(L)),z()}async renderChoices(){if(this.state.submitted)return"";let e=this.visible.map(async(o,a)=>await this.renderChoice(o,a)),r=await Promise.all(e);return r.length||r.push(this.styles.danger("No matching choices")),r.join(` `)}format(){return this.state.submitted?this.choices.map(r=>this.styles.info(r.scaleIdx)).join(", "):""}async render(){let{submitted:e,size:r}=this.state,o=await this.prefix(),a=await this.separator(),n=await this.message(),u=[o,n,a].filter(Boolean).join(" ");this.state.prompt=u;let A=await this.header(),p=await this.format(),h=await this.error()||await this.hint(),E=await this.renderChoices(),w=await this.footer();(p||!h)&&(u+=" "+p),h&&!u.includes(h)&&(u+=" "+h),e&&!p&&!E&&this.multiple&&this.type!=="form"&&(u+=this.styles.danger(this.emptyError)),this.clear(r),this.write([u,A,E,w].filter(Boolean).join(` `)),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIdx;return this.base.submit.call(this)}};function Gft(t,e={}){if(Array.isArray(e.scale))return e.scale.map(o=>({...o}));let r=[];for(let o=1;o{gge.exports=W8()});var yge=_((y8t,mge)=>{"use strict";var Wft=qQ(),iH=class extends Wft{async initialize(){await super.initialize(),this.value=this.initial=!!this.options.initial,this.disabled=this.options.disabled||"no",this.enabled=this.options.enabled||"yes",await this.render()}reset(){this.value=this.initial,this.render()}delete(){this.alert()}toggle(){this.value=!this.value,this.render()}enable(){if(this.value===!0)return this.alert();this.value=!0,this.render()}disable(){if(this.value===!1)return this.alert();this.value=!1,this.render()}up(){this.toggle()}down(){this.toggle()}right(){this.toggle()}left(){this.toggle()}next(){this.toggle()}prev(){this.toggle()}dispatch(e="",r){switch(e.toLowerCase()){case" ":return this.toggle();case"1":case"y":case"t":return this.enable();case"0":case"n":case"f":return this.disable();default:return this.alert()}}format(){let e=o=>this.styles.primary.underline(o);return[this.value?this.disabled:e(this.disabled),this.value?e(this.enabled):this.enabled].join(this.styles.muted(" / "))}async render(){let{size:e}=this.state,r=await this.header(),o=await this.prefix(),a=await this.separator(),n=await this.message(),u=await this.format(),A=await this.error()||await this.hint(),p=await this.footer(),h=[o,n,a,u].join(" ");this.state.prompt=h,A&&!h.includes(A)&&(h+=" "+A),this.clear(e),this.write([r,h,p].filter(Boolean).join(` -`)),this.write(this.margin[2]),this.restore()}};mge.exports=iH});var Cge=_((E8t,Ege)=>{"use strict";var Yft=Fh(),sH=class extends Yft{constructor(e){if(super(e),typeof this.options.correctChoice!="number"||this.options.correctChoice<0)throw new Error("Please specify the index of the correct answer from the list of choices")}async toChoices(e,r){let o=await super.toChoices(e,r);if(o.length<2)throw new Error("Please give at least two choices to the user");if(this.options.correctChoice>o.length)throw new Error("Please specify the index of the correct answer from the list of choices");return o}check(e){return e.index===this.options.correctChoice}async result(e){return{selectedAnswer:e,correctAnswer:this.options.choices[this.options.correctChoice].value,correct:await this.check(this.state)}}};Ege.exports=sH});var wge=_(oH=>{"use strict";var Ige=xo(),fs=(t,e)=>{Ige.defineExport(oH,t,e),Ige.defineExport(oH,t.toLowerCase(),e)};fs("AutoComplete",()=>x0e());fs("BasicAuth",()=>N0e());fs("Confirm",()=>M0e());fs("Editable",()=>_0e());fs("Form",()=>HQ());fs("Input",()=>W8());fs("Invisible",()=>K0e());fs("List",()=>z0e());fs("MultiSelect",()=>X0e());fs("Numeral",()=>ege());fs("Password",()=>rge());fs("Scale",()=>sge());fs("Select",()=>Fh());fs("Snippet",()=>uge());fs("Sort",()=>fge());fs("Survey",()=>hge());fs("Text",()=>dge());fs("Toggle",()=>yge());fs("Quiz",()=>Cge())});var vge=_((I8t,Bge)=>{Bge.exports={ArrayPrompt:b2(),AuthPrompt:U8(),BooleanPrompt:qQ(),NumberPrompt:J8(),StringPrompt:Jg()}});var k2=_((w8t,Pge)=>{"use strict";var Dge=De("assert"),lH=De("events"),Rh=xo(),ru=class extends lH{constructor(e,r){super(),this.options=Rh.merge({},e),this.answers={...r}}register(e,r){if(Rh.isObject(e)){for(let a of Object.keys(e))this.register(a,e[a]);return this}Dge.equal(typeof r,"function","expected a function");let o=e.toLowerCase();return r.prototype instanceof this.Prompt?this.prompts[o]=r:this.prompts[o]=r(this.Prompt,this),this}async prompt(e=[]){for(let r of[].concat(e))try{typeof r=="function"&&(r=await r.call(this)),await this.ask(Rh.merge({},this.options,r))}catch(o){return Promise.reject(o)}return this.answers}async ask(e){typeof e=="function"&&(e=await e.call(this));let r=Rh.merge({},this.options,e),{type:o,name:a}=e,{set:n,get:u}=Rh;if(typeof o=="function"&&(o=await o.call(this,e,this.answers)),!o)return this.answers[a];Dge(this.prompts[o],`Prompt "${o}" is not registered`);let A=new this.prompts[o](r),p=u(this.answers,a);A.state.answers=this.answers,A.enquirer=this,a&&A.on("submit",E=>{this.emit("answer",a,E,A),n(this.answers,a,E)});let h=A.emit.bind(A);return A.emit=(...E)=>(this.emit.call(this,...E),h(...E)),this.emit("prompt",A,this),r.autofill&&p!=null?(A.value=A.input=p,r.autofill==="show"&&await A.submit()):p=A.value=await A.run(),p}use(e){return e.call(this,this),this}set Prompt(e){this._Prompt=e}get Prompt(){return this._Prompt||this.constructor.Prompt}get prompts(){return this.constructor.prompts}static set Prompt(e){this._Prompt=e}static get Prompt(){return this._Prompt||fE()}static get prompts(){return wge()}static get types(){return vge()}static get prompt(){let e=(r,...o)=>{let a=new this(...o),n=a.emit.bind(a);return a.emit=(...u)=>(e.emit(...u),n(...u)),a.prompt(r)};return Rh.mixinEmitter(e,new lH),e}};Rh.mixinEmitter(ru,new lH);var aH=ru.prompts;for(let t of Object.keys(aH)){let e=t.toLowerCase(),r=o=>new aH[t](o).run();ru.prompt[e]=r,ru[e]=r,ru[t]||Reflect.defineProperty(ru,t,{get:()=>aH[t]})}var Q2=t=>{Rh.defineExport(ru,t,()=>ru.types[t])};Q2("ArrayPrompt");Q2("AuthPrompt");Q2("BooleanPrompt");Q2("NumberPrompt");Q2("StringPrompt");Pge.exports=ru});var N2=_((iHt,Rge)=>{var Zft=QQ();function $ft(t,e,r){var o=t==null?void 0:Zft(t,e);return o===void 0?r:o}Rge.exports=$ft});var Lge=_((uHt,Nge)=>{function ept(t,e){for(var r=-1,o=t==null?0:t.length;++r{var tpt=Ig(),rpt=PS();function npt(t,e){return t&&tpt(e,rpt(e),t)}Oge.exports=npt});var _ge=_((fHt,Uge)=>{var ipt=Ig(),spt=Jm();function opt(t,e){return t&&ipt(e,spt(e),t)}Uge.exports=opt});var qge=_((pHt,Hge)=>{var apt=Ig(),lpt=CS();function cpt(t,e){return apt(t,lpt(t),e)}Hge.exports=cpt});var hH=_((hHt,jge)=>{var upt=ES(),Apt=kS(),fpt=CS(),ppt=bL(),hpt=Object.getOwnPropertySymbols,gpt=hpt?function(t){for(var e=[];t;)upt(e,fpt(t)),t=Apt(t);return e}:ppt;jge.exports=gpt});var Wge=_((gHt,Gge)=>{var dpt=Ig(),mpt=hH();function ypt(t,e){return dpt(t,mpt(t),e)}Gge.exports=ypt});var gH=_((dHt,Yge)=>{var Ept=xL(),Cpt=hH(),Ipt=Jm();function wpt(t){return Ept(t,Ipt,Cpt)}Yge.exports=wpt});var Vge=_((mHt,Kge)=>{var Bpt=Object.prototype,vpt=Bpt.hasOwnProperty;function Dpt(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&vpt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}Kge.exports=Dpt});var Jge=_((yHt,zge)=>{var Ppt=bS();function Spt(t,e){var r=e?Ppt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}zge.exports=Spt});var Zge=_((EHt,Xge)=>{var xpt=/\w*$/;function bpt(t){var e=new t.constructor(t.source,xpt.exec(t));return e.lastIndex=t.lastIndex,e}Xge.exports=bpt});var nde=_((CHt,rde)=>{var $ge=yg(),ede=$ge?$ge.prototype:void 0,tde=ede?ede.valueOf:void 0;function Qpt(t){return tde?Object(tde.call(t)):{}}rde.exports=Qpt});var sde=_((IHt,ide)=>{var kpt=bS(),Fpt=Jge(),Rpt=Zge(),Tpt=nde(),Npt=jL(),Lpt="[object Boolean]",Opt="[object Date]",Mpt="[object Map]",Upt="[object Number]",_pt="[object RegExp]",Hpt="[object Set]",qpt="[object String]",jpt="[object Symbol]",Gpt="[object ArrayBuffer]",Wpt="[object DataView]",Ypt="[object Float32Array]",Kpt="[object Float64Array]",Vpt="[object Int8Array]",zpt="[object Int16Array]",Jpt="[object Int32Array]",Xpt="[object Uint8Array]",Zpt="[object Uint8ClampedArray]",$pt="[object Uint16Array]",eht="[object Uint32Array]";function tht(t,e,r){var o=t.constructor;switch(e){case Gpt:return kpt(t);case Lpt:case Opt:return new o(+t);case Wpt:return Fpt(t,r);case Ypt:case Kpt:case Vpt:case zpt:case Jpt:case Xpt:case Zpt:case $pt:case eht:return Npt(t,r);case Mpt:return new o;case Upt:case qpt:return new o(t);case _pt:return Rpt(t);case Hpt:return new o;case jpt:return Tpt(t)}}ide.exports=tht});var ade=_((wHt,ode)=>{var rht=c1(),nht=Zu(),iht="[object Map]";function sht(t){return nht(t)&&rht(t)==iht}ode.exports=sht});var Ade=_((BHt,ude)=>{var oht=ade(),aht=wS(),lde=BS(),cde=lde&&lde.isMap,lht=cde?aht(cde):oht;ude.exports=lht});var pde=_((vHt,fde)=>{var cht=c1(),uht=Zu(),Aht="[object Set]";function fht(t){return uht(t)&&cht(t)==Aht}fde.exports=fht});var mde=_((DHt,dde)=>{var pht=pde(),hht=wS(),hde=BS(),gde=hde&&hde.isSet,ght=gde?hht(gde):pht;dde.exports=ght});var dH=_((PHt,Ide)=>{var dht=mS(),mht=Lge(),yht=RS(),Eht=Mge(),Cht=_ge(),Iht=qL(),wht=QS(),Bht=qge(),vht=Wge(),Dht=RL(),Pht=gH(),Sht=c1(),xht=Vge(),bht=sde(),Qht=WL(),kht=jl(),Fht=i1(),Rht=Ade(),Tht=cl(),Nht=mde(),Lht=PS(),Oht=Jm(),Mht=1,Uht=2,_ht=4,yde="[object Arguments]",Hht="[object Array]",qht="[object Boolean]",jht="[object Date]",Ght="[object Error]",Ede="[object Function]",Wht="[object GeneratorFunction]",Yht="[object Map]",Kht="[object Number]",Cde="[object Object]",Vht="[object RegExp]",zht="[object Set]",Jht="[object String]",Xht="[object Symbol]",Zht="[object WeakMap]",$ht="[object ArrayBuffer]",e0t="[object DataView]",t0t="[object Float32Array]",r0t="[object Float64Array]",n0t="[object Int8Array]",i0t="[object Int16Array]",s0t="[object Int32Array]",o0t="[object Uint8Array]",a0t="[object Uint8ClampedArray]",l0t="[object Uint16Array]",c0t="[object Uint32Array]",Ai={};Ai[yde]=Ai[Hht]=Ai[$ht]=Ai[e0t]=Ai[qht]=Ai[jht]=Ai[t0t]=Ai[r0t]=Ai[n0t]=Ai[i0t]=Ai[s0t]=Ai[Yht]=Ai[Kht]=Ai[Cde]=Ai[Vht]=Ai[zht]=Ai[Jht]=Ai[Xht]=Ai[o0t]=Ai[a0t]=Ai[l0t]=Ai[c0t]=!0;Ai[Ght]=Ai[Ede]=Ai[Zht]=!1;function WQ(t,e,r,o,a,n){var u,A=e&Mht,p=e&Uht,h=e&_ht;if(r&&(u=a?r(t,o,a,n):r(t)),u!==void 0)return u;if(!Tht(t))return t;var E=kht(t);if(E){if(u=xht(t),!A)return wht(t,u)}else{var w=Sht(t),D=w==Ede||w==Wht;if(Fht(t))return Iht(t,A);if(w==Cde||w==yde||D&&!a){if(u=p||D?{}:Qht(t),!A)return p?vht(t,Cht(u,t)):Bht(t,Eht(u,t))}else{if(!Ai[w])return a?t:{};u=bht(t,w,A)}}n||(n=new dht);var b=n.get(t);if(b)return b;n.set(t,u),Nht(t)?t.forEach(function(L){u.add(WQ(L,e,r,L,t,n))}):Rht(t)&&t.forEach(function(L,U){u.set(U,WQ(L,e,r,U,t,n))});var C=h?p?Pht:Dht:p?Oht:Lht,T=E?void 0:C(t);return mht(T||t,function(L,U){T&&(U=L,L=t[U]),yht(u,U,WQ(L,e,r,U,t,n))}),u}Ide.exports=WQ});var mH=_((SHt,wde)=>{var u0t=dH(),A0t=1,f0t=4;function p0t(t){return u0t(t,A0t|f0t)}wde.exports=p0t});var yH=_((xHt,Bde)=>{var h0t=l8();function g0t(t,e,r){return t==null?t:h0t(t,e,r)}Bde.exports=g0t});var xde=_((THt,Sde)=>{var d0t=Object.prototype,m0t=d0t.hasOwnProperty;function y0t(t,e){return t!=null&&m0t.call(t,e)}Sde.exports=y0t});var Qde=_((NHt,bde)=>{var E0t=xde(),C0t=c8();function I0t(t,e){return t!=null&&C0t(t,e,E0t)}bde.exports=I0t});var Fde=_((LHt,kde)=>{function w0t(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}kde.exports=w0t});var Tde=_((OHt,Rde)=>{var B0t=QQ(),v0t=$U();function D0t(t,e){return e.length<2?t:B0t(t,v0t(e,0,-1))}Rde.exports=D0t});var CH=_((MHt,Nde)=>{var P0t=Kg(),S0t=Fde(),x0t=Tde(),b0t=sE();function Q0t(t,e){return e=P0t(e,t),t=x0t(t,e),t==null||delete t[b0t(S0t(e))]}Nde.exports=Q0t});var IH=_((UHt,Lde)=>{var k0t=CH();function F0t(t,e){return t==null?!0:k0t(t,e)}Lde.exports=F0t});var Hde=_((h6t,N0t)=>{N0t.exports={name:"@yarnpkg/cli",version:"4.8.0",license:"BSD-2-Clause",main:"./sources/index.ts",exports:{".":"./sources/index.ts","./polyfills":"./sources/polyfills.ts","./package.json":"./package.json"},dependencies:{"@yarnpkg/core":"workspace:^","@yarnpkg/fslib":"workspace:^","@yarnpkg/libzip":"workspace:^","@yarnpkg/parsers":"workspace:^","@yarnpkg/plugin-compat":"workspace:^","@yarnpkg/plugin-constraints":"workspace:^","@yarnpkg/plugin-dlx":"workspace:^","@yarnpkg/plugin-essentials":"workspace:^","@yarnpkg/plugin-exec":"workspace:^","@yarnpkg/plugin-file":"workspace:^","@yarnpkg/plugin-git":"workspace:^","@yarnpkg/plugin-github":"workspace:^","@yarnpkg/plugin-http":"workspace:^","@yarnpkg/plugin-init":"workspace:^","@yarnpkg/plugin-interactive-tools":"workspace:^","@yarnpkg/plugin-link":"workspace:^","@yarnpkg/plugin-nm":"workspace:^","@yarnpkg/plugin-npm":"workspace:^","@yarnpkg/plugin-npm-cli":"workspace:^","@yarnpkg/plugin-pack":"workspace:^","@yarnpkg/plugin-patch":"workspace:^","@yarnpkg/plugin-pnp":"workspace:^","@yarnpkg/plugin-pnpm":"workspace:^","@yarnpkg/plugin-stage":"workspace:^","@yarnpkg/plugin-typescript":"workspace:^","@yarnpkg/plugin-version":"workspace:^","@yarnpkg/plugin-workspace-tools":"workspace:^","@yarnpkg/shell":"workspace:^","ci-info":"^4.0.0",clipanion:"^4.0.0-rc.2",semver:"^7.1.2",tslib:"^2.4.0",typanion:"^3.14.0"},devDependencies:{"@types/semver":"^7.1.0","@yarnpkg/builder":"workspace:^","@yarnpkg/monorepo":"workspace:^","@yarnpkg/pnpify":"workspace:^"},peerDependencies:{"@yarnpkg/core":"workspace:^"},scripts:{postpack:"rm -rf lib",prepack:'run build:compile "$(pwd)"',"build:cli+hook":"run build:pnp:hook && builder build bundle","build:cli":"builder build bundle","run:cli":"builder run","update-local":"run build:cli --no-git-hash && rsync -a --delete bundles/ bin/"},publishConfig:{main:"./lib/index.js",bin:null,exports:{".":"./lib/index.js","./package.json":"./package.json"}},files:["/lib/**/*","!/lib/pluginConfiguration.*","!/lib/cli.*"],"@yarnpkg/builder":{bundles:{standard:["@yarnpkg/plugin-essentials","@yarnpkg/plugin-compat","@yarnpkg/plugin-constraints","@yarnpkg/plugin-dlx","@yarnpkg/plugin-exec","@yarnpkg/plugin-file","@yarnpkg/plugin-git","@yarnpkg/plugin-github","@yarnpkg/plugin-http","@yarnpkg/plugin-init","@yarnpkg/plugin-interactive-tools","@yarnpkg/plugin-link","@yarnpkg/plugin-nm","@yarnpkg/plugin-npm","@yarnpkg/plugin-npm-cli","@yarnpkg/plugin-pack","@yarnpkg/plugin-patch","@yarnpkg/plugin-pnp","@yarnpkg/plugin-pnpm","@yarnpkg/plugin-stage","@yarnpkg/plugin-typescript","@yarnpkg/plugin-version","@yarnpkg/plugin-workspace-tools"]}},repository:{type:"git",url:"git+https://github.com/yarnpkg/berry.git",directory:"packages/yarnpkg-cli"},engines:{node:">=18.12.0"}}});var QH=_((WGt,$de)=>{"use strict";$de.exports=function(e,r){r===!0&&(r=0);var o="";if(typeof e=="string")try{o=new URL(e).protocol}catch{}else e&&e.constructor===URL&&(o=e.protocol);var a=o.split(/\:|\+/).filter(Boolean);return typeof r=="number"?a[r]:a}});var tme=_((YGt,eme)=>{"use strict";var tgt=QH();function rgt(t){var e={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:t,query:{},parse_failed:!1};try{var r=new URL(t);e.protocols=tgt(r),e.protocol=e.protocols[0],e.port=r.port,e.resource=r.hostname,e.host=r.host,e.user=r.username||"",e.password=r.password||"",e.pathname=r.pathname,e.hash=r.hash.slice(1),e.search=r.search.slice(1),e.href=r.href,e.query=Object.fromEntries(r.searchParams)}catch{e.protocols=["file"],e.protocol=e.protocols[0],e.port="",e.resource="",e.user="",e.pathname="",e.hash="",e.search="",e.href=t,e.query={},e.parse_failed=!0}return e}eme.exports=rgt});var ime=_((KGt,nme)=>{"use strict";var ngt=tme();function igt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var sgt=igt(ngt),ogt="text/plain",agt="us-ascii",rme=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),lgt=(t,{stripHash:e})=>{let r=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:o,data:a,hash:n}=r.groups,u=o.split(";");n=e?"":n;let A=!1;u[u.length-1]==="base64"&&(u.pop(),A=!0);let p=(u.shift()||"").toLowerCase(),E=[...u.map(w=>{let[D,b=""]=w.split("=").map(C=>C.trim());return D==="charset"&&(b=b.toLowerCase(),b===agt)?"":`${D}${b?`=${b}`:""}`}).filter(Boolean)];return A&&E.push("base64"),(E.length>0||p&&p!==ogt)&&E.unshift(p),`data:${E.join(";")},${A?a.trim():a}${n?`#${n}`:""}`};function cgt(t,e){if(e={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,...e},t=t.trim(),/^data:/i.test(t))return lgt(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let a=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&a.protocol==="https:"&&(a.protocol="http:"),e.forceHttps&&a.protocol==="http:"&&(a.protocol="https:"),e.stripAuthentication&&(a.username="",a.password=""),e.stripHash?a.hash="":e.stripTextFragment&&(a.hash=a.hash.replace(/#?:~:text.*?$/i,"")),a.pathname){let u=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,A=0,p="";for(;;){let E=u.exec(a.pathname);if(!E)break;let w=E[0],D=E.index,b=a.pathname.slice(A,D);p+=b.replace(/\/{2,}/g,"/"),p+=w,A=D+w.length}let h=a.pathname.slice(A,a.pathname.length);p+=h.replace(/\/{2,}/g,"/"),a.pathname=p}if(a.pathname)try{a.pathname=decodeURI(a.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let u=a.pathname.split("/"),A=u[u.length-1];rme(A,e.removeDirectoryIndex)&&(u=u.slice(0,-1),a.pathname=u.slice(1).join("/")+"/")}if(a.hostname&&(a.hostname=a.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(a.hostname)&&(a.hostname=a.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let u of[...a.searchParams.keys()])rme(u,e.removeQueryParameters)&&a.searchParams.delete(u);if(e.removeQueryParameters===!0&&(a.search=""),e.sortQueryParameters){a.searchParams.sort();try{a.search=decodeURIComponent(a.search)}catch{}}e.removeTrailingSlash&&(a.pathname=a.pathname.replace(/\/$/,""));let n=t;return t=a.toString(),!e.removeSingleSlash&&a.pathname==="/"&&!n.endsWith("/")&&a.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||a.pathname==="/")&&a.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t}var kH=(t,e=!1)=>{let r=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,o=n=>{let u=new Error(n);throw u.subject_url=t,u};(typeof t!="string"||!t.trim())&&o("Invalid url."),t.length>kH.MAX_INPUT_LENGTH&&o("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),e&&(typeof e!="object"&&(e={stripHash:!1}),t=cgt(t,e));let a=sgt.default(t);if(a.parse_failed){let n=a.href.match(r);n?(a.protocols=["ssh"],a.protocol="ssh",a.resource=n[2],a.host=n[2],a.user=n[1],a.pathname=`/${n[3]}`,a.parse_failed=!1):o("URL parsing failed.")}return a};kH.MAX_INPUT_LENGTH=2048;nme.exports=kH});var ame=_((VGt,ome)=>{"use strict";var ugt=QH();function sme(t){if(Array.isArray(t))return t.indexOf("ssh")!==-1||t.indexOf("rsync")!==-1;if(typeof t!="string")return!1;var e=ugt(t);if(t=t.substring(t.indexOf("://")+3),sme(e))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!t.match(r)&&t.indexOf("@"){"use strict";var Agt=ime(),lme=ame();function fgt(t){var e=Agt(t);return e.token="",e.password==="x-oauth-basic"?e.token=e.user:e.user==="x-token-auth"&&(e.token=e.password),lme(e.protocols)||e.protocols.length===0&&lme(t)?e.protocol="ssh":e.protocols.length?e.protocol=e.protocols[0]:(e.protocol="file",e.protocols=["file"]),e.href=e.href.replace(/\/$/,""),e}cme.exports=fgt});var fme=_((JGt,Ame)=>{"use strict";var pgt=ume();function FH(t){if(typeof t!="string")throw new Error("The url must be a string.");var e=/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i;e.test(t)&&(t="https://github.com/"+t);var r=pgt(t),o=r.resource.split("."),a=null;switch(r.toString=function(L){return FH.stringify(this,L)},r.source=o.length>2?o.slice(1-o.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=o[0],r.source="cloudforge.com";break;case"visualstudio.com":if(r.resource==="vs-ssh.visualstudio.com"){a=r.name.split("/"),a.length===4&&(r.organization=a[1],r.owner=a[2],r.name=a[3],r.full_name=a[2]+"/"+a[3]);break}else{a=r.name.split("/"),a.length===2?(r.owner=a[1],r.name=a[1],r.full_name="_git/"+r.name):a.length===3?(r.name=a[2],a[0]==="DefaultCollection"?(r.owner=a[2],r.organization=a[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=a[0],r.full_name=r.owner+"/_git/"+r.name)):a.length===4&&(r.organization=a[0],r.owner=a[1],r.name=a[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"){a=r.name.split("/"),a.length===4&&(r.organization=a[1],r.owner=a[2],r.name=a[3]);break}else{a=r.name.split("/"),a.length===5?(r.organization=a[0],r.owner=a[1],r.name=a[4],r.full_name="_git/"+r.name):a.length===3?(r.name=a[2],a[0]==="DefaultCollection"?(r.owner=a[2],r.organization=a[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=a[0],r.full_name=r.owner+"/_git/"+r.name)):a.length===4&&(r.organization=a[0],r.owner=a[1],r.name=a[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:a=r.name.split("/");var n=a.length-1;if(a.length>=2){var u=a.indexOf("-",2),A=a.indexOf("blob",2),p=a.indexOf("tree",2),h=a.indexOf("commit",2),E=a.indexOf("src",2),w=a.indexOf("raw",2),D=a.indexOf("edit",2);n=u>0?u-1:A>0?A-1:p>0?p-1:h>0?h-1:E>0?E-1:w>0?w-1:D>0?D-1:n,r.owner=a.slice(0,n).join("/"),r.name=a[n],h&&(r.commit=a[n+2])}r.ref="",r.filepathtype="",r.filepath="";var b=a.length>n&&a[n+1]==="-"?n+1:n;a.length>b+2&&["raw","src","blob","tree","edit"].indexOf(a[b+1])>=0&&(r.filepathtype=a[b+1],r.ref=a[b+2],a.length>b+3&&(r.filepath=a.slice(b+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 C=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/,T=C.exec(r.pathname);return T!=null&&(r.source="bitbucket-server",T[1]==="users"?r.owner="~"+T[2]:r.owner=T[2],r.organization=r.owner,r.name=T[3],a=T[4].split("/"),a.length>1&&(["raw","browse"].indexOf(a[1])>=0?(r.filepathtype=a[1],a.length>2&&(r.filepath=a.slice(2).join("/"))):a[1]==="commits"&&a.length>2&&(r.commit=a[2])),r.full_name=r.owner+"/"+r.name,r.query.at?r.ref=r.query.at:r.ref=""),r}FH.stringify=function(t,e){e=e||(t.protocols&&t.protocols.length?t.protocols.join("+"):t.protocol);var r=t.port?":"+t.port:"",o=t.user||"git",a=t.git_suffix?".git":"";switch(e){case"ssh":return r?"ssh://"+o+"@"+t.resource+r+"/"+t.full_name+a:o+"@"+t.resource+":"+t.full_name+a;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return e+"://"+o+"@"+t.resource+r+"/"+t.full_name+a;case"http":case"https":var n=t.token?hgt(t):t.user&&(t.protocols.includes("http")||t.protocols.includes("https"))?t.user+"@":"";return e+"://"+n+t.resource+r+"/"+ggt(t)+a;default:return t.href}};function hgt(t){switch(t.source){case"bitbucket.org":return"x-token-auth:"+t.token+"@";default:return t.token+"@"}}function ggt(t){switch(t.source){case"bitbucket-server":return"scm/"+t.full_name;default:return""+t.full_name}}Ame.exports=FH});var xme=_((b9t,Sme)=>{var Pgt=Cb(),Sgt=QS(),xgt=jl(),bgt=hy(),Qgt=a8(),kgt=sE(),Fgt=t2();function Rgt(t){return xgt(t)?Pgt(t,kgt):bgt(t)?[t]:Sgt(Qgt(Fgt(t)))}Sme.exports=Rgt});function Ogt(t,e){return e===1&&Lgt.has(t[0])}function q2(t){let e=Array.isArray(t)?t:(0,kme.default)(t);return e.map((o,a)=>Tgt.test(o)?`[${o}]`:Ngt.test(o)&&!Ogt(e,a)?`.${o}`:`[${JSON.stringify(o)}]`).join("").replace(/^\./,"")}function Mgt(t,e){let r=[];if(e.methodName!==null&&r.push(fe.pretty(t,e.methodName,fe.Type.CODE)),e.file!==null){let o=[];o.push(fe.pretty(t,e.file,fe.Type.PATH)),e.line!==null&&(o.push(fe.pretty(t,e.line,fe.Type.NUMBER)),e.column!==null&&o.push(fe.pretty(t,e.column,fe.Type.NUMBER))),r.push(`(${o.join(fe.pretty(t,":","grey"))})`)}return r.join(" ")}function zQ(t,{manifestUpdates:e,reportedErrors:r},{fix:o}={}){let a=new Map,n=new Map,u=[...r.keys()].map(A=>[A,new Map]);for(let[A,p]of[...u,...e]){let h=r.get(A)?.map(b=>({text:b,fixable:!1}))??[],E=!1,w=t.getWorkspaceByCwd(A),D=w.manifest.exportTo({});for(let[b,C]of p){if(C.size>1){let T=[...C].map(([L,U])=>{let z=fe.pretty(t.configuration,L,fe.Type.INSPECT),te=U.size>0?Mgt(t.configuration,U.values().next().value):null;return te!==null?` +`)),this.write(this.margin[2]),this.restore()}};mge.exports=iH});var Cge=_((E8t,Ege)=>{"use strict";var Yft=Fh(),sH=class extends Yft{constructor(e){if(super(e),typeof this.options.correctChoice!="number"||this.options.correctChoice<0)throw new Error("Please specify the index of the correct answer from the list of choices")}async toChoices(e,r){let o=await super.toChoices(e,r);if(o.length<2)throw new Error("Please give at least two choices to the user");if(this.options.correctChoice>o.length)throw new Error("Please specify the index of the correct answer from the list of choices");return o}check(e){return e.index===this.options.correctChoice}async result(e){return{selectedAnswer:e,correctAnswer:this.options.choices[this.options.correctChoice].value,correct:await this.check(this.state)}}};Ege.exports=sH});var wge=_(oH=>{"use strict";var Ige=xo(),fs=(t,e)=>{Ige.defineExport(oH,t,e),Ige.defineExport(oH,t.toLowerCase(),e)};fs("AutoComplete",()=>x0e());fs("BasicAuth",()=>N0e());fs("Confirm",()=>M0e());fs("Editable",()=>_0e());fs("Form",()=>HQ());fs("Input",()=>W8());fs("Invisible",()=>K0e());fs("List",()=>z0e());fs("MultiSelect",()=>X0e());fs("Numeral",()=>ege());fs("Password",()=>rge());fs("Scale",()=>sge());fs("Select",()=>Fh());fs("Snippet",()=>uge());fs("Sort",()=>fge());fs("Survey",()=>hge());fs("Text",()=>dge());fs("Toggle",()=>yge());fs("Quiz",()=>Cge())});var vge=_((I8t,Bge)=>{Bge.exports={ArrayPrompt:b2(),AuthPrompt:U8(),BooleanPrompt:qQ(),NumberPrompt:J8(),StringPrompt:Jg()}});var k2=_((w8t,Pge)=>{"use strict";var Dge=De("assert"),lH=De("events"),Rh=xo(),ru=class extends lH{constructor(e,r){super(),this.options=Rh.merge({},e),this.answers={...r}}register(e,r){if(Rh.isObject(e)){for(let a of Object.keys(e))this.register(a,e[a]);return this}Dge.equal(typeof r,"function","expected a function");let o=e.toLowerCase();return r.prototype instanceof this.Prompt?this.prompts[o]=r:this.prompts[o]=r(this.Prompt,this),this}async prompt(e=[]){for(let r of[].concat(e))try{typeof r=="function"&&(r=await r.call(this)),await this.ask(Rh.merge({},this.options,r))}catch(o){return Promise.reject(o)}return this.answers}async ask(e){typeof e=="function"&&(e=await e.call(this));let r=Rh.merge({},this.options,e),{type:o,name:a}=e,{set:n,get:u}=Rh;if(typeof o=="function"&&(o=await o.call(this,e,this.answers)),!o)return this.answers[a];Dge(this.prompts[o],`Prompt "${o}" is not registered`);let A=new this.prompts[o](r),p=u(this.answers,a);A.state.answers=this.answers,A.enquirer=this,a&&A.on("submit",E=>{this.emit("answer",a,E,A),n(this.answers,a,E)});let h=A.emit.bind(A);return A.emit=(...E)=>(this.emit.call(this,...E),h(...E)),this.emit("prompt",A,this),r.autofill&&p!=null?(A.value=A.input=p,r.autofill==="show"&&await A.submit()):p=A.value=await A.run(),p}use(e){return e.call(this,this),this}set Prompt(e){this._Prompt=e}get Prompt(){return this._Prompt||this.constructor.Prompt}get prompts(){return this.constructor.prompts}static set Prompt(e){this._Prompt=e}static get Prompt(){return this._Prompt||fE()}static get prompts(){return wge()}static get types(){return vge()}static get prompt(){let e=(r,...o)=>{let a=new this(...o),n=a.emit.bind(a);return a.emit=(...u)=>(e.emit(...u),n(...u)),a.prompt(r)};return Rh.mixinEmitter(e,new lH),e}};Rh.mixinEmitter(ru,new lH);var aH=ru.prompts;for(let t of Object.keys(aH)){let e=t.toLowerCase(),r=o=>new aH[t](o).run();ru.prompt[e]=r,ru[e]=r,ru[t]||Reflect.defineProperty(ru,t,{get:()=>aH[t]})}var Q2=t=>{Rh.defineExport(ru,t,()=>ru.types[t])};Q2("ArrayPrompt");Q2("AuthPrompt");Q2("BooleanPrompt");Q2("NumberPrompt");Q2("StringPrompt");Pge.exports=ru});var N2=_((iHt,Rge)=>{var Zft=QQ();function $ft(t,e,r){var o=t==null?void 0:Zft(t,e);return o===void 0?r:o}Rge.exports=$ft});var Lge=_((uHt,Nge)=>{function ept(t,e){for(var r=-1,o=t==null?0:t.length;++r{var tpt=Ig(),rpt=PS();function npt(t,e){return t&&tpt(e,rpt(e),t)}Oge.exports=npt});var _ge=_((fHt,Uge)=>{var ipt=Ig(),spt=Jm();function opt(t,e){return t&&ipt(e,spt(e),t)}Uge.exports=opt});var qge=_((pHt,Hge)=>{var apt=Ig(),lpt=CS();function cpt(t,e){return apt(t,lpt(t),e)}Hge.exports=cpt});var hH=_((hHt,jge)=>{var upt=ES(),Apt=kS(),fpt=CS(),ppt=bL(),hpt=Object.getOwnPropertySymbols,gpt=hpt?function(t){for(var e=[];t;)upt(e,fpt(t)),t=Apt(t);return e}:ppt;jge.exports=gpt});var Wge=_((gHt,Gge)=>{var dpt=Ig(),mpt=hH();function ypt(t,e){return dpt(t,mpt(t),e)}Gge.exports=ypt});var gH=_((dHt,Yge)=>{var Ept=xL(),Cpt=hH(),Ipt=Jm();function wpt(t){return Ept(t,Ipt,Cpt)}Yge.exports=wpt});var Vge=_((mHt,Kge)=>{var Bpt=Object.prototype,vpt=Bpt.hasOwnProperty;function Dpt(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&vpt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}Kge.exports=Dpt});var Jge=_((yHt,zge)=>{var Ppt=bS();function Spt(t,e){var r=e?Ppt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}zge.exports=Spt});var Zge=_((EHt,Xge)=>{var xpt=/\w*$/;function bpt(t){var e=new t.constructor(t.source,xpt.exec(t));return e.lastIndex=t.lastIndex,e}Xge.exports=bpt});var nde=_((CHt,rde)=>{var $ge=yg(),ede=$ge?$ge.prototype:void 0,tde=ede?ede.valueOf:void 0;function Qpt(t){return tde?Object(tde.call(t)):{}}rde.exports=Qpt});var sde=_((IHt,ide)=>{var kpt=bS(),Fpt=Jge(),Rpt=Zge(),Tpt=nde(),Npt=jL(),Lpt="[object Boolean]",Opt="[object Date]",Mpt="[object Map]",Upt="[object Number]",_pt="[object RegExp]",Hpt="[object Set]",qpt="[object String]",jpt="[object Symbol]",Gpt="[object ArrayBuffer]",Wpt="[object DataView]",Ypt="[object Float32Array]",Kpt="[object Float64Array]",Vpt="[object Int8Array]",zpt="[object Int16Array]",Jpt="[object Int32Array]",Xpt="[object Uint8Array]",Zpt="[object Uint8ClampedArray]",$pt="[object Uint16Array]",eht="[object Uint32Array]";function tht(t,e,r){var o=t.constructor;switch(e){case Gpt:return kpt(t);case Lpt:case Opt:return new o(+t);case Wpt:return Fpt(t,r);case Ypt:case Kpt:case Vpt:case zpt:case Jpt:case Xpt:case Zpt:case $pt:case eht:return Npt(t,r);case Mpt:return new o;case Upt:case qpt:return new o(t);case _pt:return Rpt(t);case Hpt:return new o;case jpt:return Tpt(t)}}ide.exports=tht});var ade=_((wHt,ode)=>{var rht=c1(),nht=Zu(),iht="[object Map]";function sht(t){return nht(t)&&rht(t)==iht}ode.exports=sht});var Ade=_((BHt,ude)=>{var oht=ade(),aht=wS(),lde=BS(),cde=lde&&lde.isMap,lht=cde?aht(cde):oht;ude.exports=lht});var pde=_((vHt,fde)=>{var cht=c1(),uht=Zu(),Aht="[object Set]";function fht(t){return uht(t)&&cht(t)==Aht}fde.exports=fht});var mde=_((DHt,dde)=>{var pht=pde(),hht=wS(),hde=BS(),gde=hde&&hde.isSet,ght=gde?hht(gde):pht;dde.exports=ght});var dH=_((PHt,Ide)=>{var dht=mS(),mht=Lge(),yht=RS(),Eht=Mge(),Cht=_ge(),Iht=qL(),wht=QS(),Bht=qge(),vht=Wge(),Dht=RL(),Pht=gH(),Sht=c1(),xht=Vge(),bht=sde(),Qht=WL(),kht=jl(),Fht=i1(),Rht=Ade(),Tht=cl(),Nht=mde(),Lht=PS(),Oht=Jm(),Mht=1,Uht=2,_ht=4,yde="[object Arguments]",Hht="[object Array]",qht="[object Boolean]",jht="[object Date]",Ght="[object Error]",Ede="[object Function]",Wht="[object GeneratorFunction]",Yht="[object Map]",Kht="[object Number]",Cde="[object Object]",Vht="[object RegExp]",zht="[object Set]",Jht="[object String]",Xht="[object Symbol]",Zht="[object WeakMap]",$ht="[object ArrayBuffer]",e0t="[object DataView]",t0t="[object Float32Array]",r0t="[object Float64Array]",n0t="[object Int8Array]",i0t="[object Int16Array]",s0t="[object Int32Array]",o0t="[object Uint8Array]",a0t="[object Uint8ClampedArray]",l0t="[object Uint16Array]",c0t="[object Uint32Array]",Ai={};Ai[yde]=Ai[Hht]=Ai[$ht]=Ai[e0t]=Ai[qht]=Ai[jht]=Ai[t0t]=Ai[r0t]=Ai[n0t]=Ai[i0t]=Ai[s0t]=Ai[Yht]=Ai[Kht]=Ai[Cde]=Ai[Vht]=Ai[zht]=Ai[Jht]=Ai[Xht]=Ai[o0t]=Ai[a0t]=Ai[l0t]=Ai[c0t]=!0;Ai[Ght]=Ai[Ede]=Ai[Zht]=!1;function WQ(t,e,r,o,a,n){var u,A=e&Mht,p=e&Uht,h=e&_ht;if(r&&(u=a?r(t,o,a,n):r(t)),u!==void 0)return u;if(!Tht(t))return t;var E=kht(t);if(E){if(u=xht(t),!A)return wht(t,u)}else{var w=Sht(t),D=w==Ede||w==Wht;if(Fht(t))return Iht(t,A);if(w==Cde||w==yde||D&&!a){if(u=p||D?{}:Qht(t),!A)return p?vht(t,Cht(u,t)):Bht(t,Eht(u,t))}else{if(!Ai[w])return a?t:{};u=bht(t,w,A)}}n||(n=new dht);var b=n.get(t);if(b)return b;n.set(t,u),Nht(t)?t.forEach(function(L){u.add(WQ(L,e,r,L,t,n))}):Rht(t)&&t.forEach(function(L,U){u.set(U,WQ(L,e,r,U,t,n))});var C=h?p?Pht:Dht:p?Oht:Lht,T=E?void 0:C(t);return mht(T||t,function(L,U){T&&(U=L,L=t[U]),yht(u,U,WQ(L,e,r,U,t,n))}),u}Ide.exports=WQ});var mH=_((SHt,wde)=>{var u0t=dH(),A0t=1,f0t=4;function p0t(t){return u0t(t,A0t|f0t)}wde.exports=p0t});var yH=_((xHt,Bde)=>{var h0t=l8();function g0t(t,e,r){return t==null?t:h0t(t,e,r)}Bde.exports=g0t});var xde=_((THt,Sde)=>{var d0t=Object.prototype,m0t=d0t.hasOwnProperty;function y0t(t,e){return t!=null&&m0t.call(t,e)}Sde.exports=y0t});var Qde=_((NHt,bde)=>{var E0t=xde(),C0t=c8();function I0t(t,e){return t!=null&&C0t(t,e,E0t)}bde.exports=I0t});var Fde=_((LHt,kde)=>{function w0t(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}kde.exports=w0t});var Tde=_((OHt,Rde)=>{var B0t=QQ(),v0t=$U();function D0t(t,e){return e.length<2?t:B0t(t,v0t(e,0,-1))}Rde.exports=D0t});var CH=_((MHt,Nde)=>{var P0t=Kg(),S0t=Fde(),x0t=Tde(),b0t=sE();function Q0t(t,e){return e=P0t(e,t),t=x0t(t,e),t==null||delete t[b0t(S0t(e))]}Nde.exports=Q0t});var IH=_((UHt,Lde)=>{var k0t=CH();function F0t(t,e){return t==null?!0:k0t(t,e)}Lde.exports=F0t});var Hde=_((h6t,N0t)=>{N0t.exports={name:"@yarnpkg/cli",version:"4.8.1",license:"BSD-2-Clause",main:"./sources/index.ts",exports:{".":"./sources/index.ts","./polyfills":"./sources/polyfills.ts","./package.json":"./package.json"},dependencies:{"@yarnpkg/core":"workspace:^","@yarnpkg/fslib":"workspace:^","@yarnpkg/libzip":"workspace:^","@yarnpkg/parsers":"workspace:^","@yarnpkg/plugin-compat":"workspace:^","@yarnpkg/plugin-constraints":"workspace:^","@yarnpkg/plugin-dlx":"workspace:^","@yarnpkg/plugin-essentials":"workspace:^","@yarnpkg/plugin-exec":"workspace:^","@yarnpkg/plugin-file":"workspace:^","@yarnpkg/plugin-git":"workspace:^","@yarnpkg/plugin-github":"workspace:^","@yarnpkg/plugin-http":"workspace:^","@yarnpkg/plugin-init":"workspace:^","@yarnpkg/plugin-interactive-tools":"workspace:^","@yarnpkg/plugin-link":"workspace:^","@yarnpkg/plugin-nm":"workspace:^","@yarnpkg/plugin-npm":"workspace:^","@yarnpkg/plugin-npm-cli":"workspace:^","@yarnpkg/plugin-pack":"workspace:^","@yarnpkg/plugin-patch":"workspace:^","@yarnpkg/plugin-pnp":"workspace:^","@yarnpkg/plugin-pnpm":"workspace:^","@yarnpkg/plugin-stage":"workspace:^","@yarnpkg/plugin-typescript":"workspace:^","@yarnpkg/plugin-version":"workspace:^","@yarnpkg/plugin-workspace-tools":"workspace:^","@yarnpkg/shell":"workspace:^","ci-info":"^4.0.0",clipanion:"^4.0.0-rc.2",semver:"^7.1.2",tslib:"^2.4.0",typanion:"^3.14.0"},devDependencies:{"@types/semver":"^7.1.0","@yarnpkg/builder":"workspace:^","@yarnpkg/monorepo":"workspace:^","@yarnpkg/pnpify":"workspace:^"},peerDependencies:{"@yarnpkg/core":"workspace:^"},scripts:{postpack:"rm -rf lib",prepack:'run build:compile "$(pwd)"',"build:cli+hook":"run build:pnp:hook && builder build bundle","build:cli":"builder build bundle","run:cli":"builder run","update-local":"run build:cli --no-git-hash && rsync -a --delete bundles/ bin/"},publishConfig:{main:"./lib/index.js",bin:null,exports:{".":"./lib/index.js","./package.json":"./package.json"}},files:["/lib/**/*","!/lib/pluginConfiguration.*","!/lib/cli.*"],"@yarnpkg/builder":{bundles:{standard:["@yarnpkg/plugin-essentials","@yarnpkg/plugin-compat","@yarnpkg/plugin-constraints","@yarnpkg/plugin-dlx","@yarnpkg/plugin-exec","@yarnpkg/plugin-file","@yarnpkg/plugin-git","@yarnpkg/plugin-github","@yarnpkg/plugin-http","@yarnpkg/plugin-init","@yarnpkg/plugin-interactive-tools","@yarnpkg/plugin-link","@yarnpkg/plugin-nm","@yarnpkg/plugin-npm","@yarnpkg/plugin-npm-cli","@yarnpkg/plugin-pack","@yarnpkg/plugin-patch","@yarnpkg/plugin-pnp","@yarnpkg/plugin-pnpm","@yarnpkg/plugin-stage","@yarnpkg/plugin-typescript","@yarnpkg/plugin-version","@yarnpkg/plugin-workspace-tools"]}},repository:{type:"git",url:"git+https://github.com/yarnpkg/berry.git",directory:"packages/yarnpkg-cli"},engines:{node:">=18.12.0"}}});var QH=_((WGt,$de)=>{"use strict";$de.exports=function(e,r){r===!0&&(r=0);var o="";if(typeof e=="string")try{o=new URL(e).protocol}catch{}else e&&e.constructor===URL&&(o=e.protocol);var a=o.split(/\:|\+/).filter(Boolean);return typeof r=="number"?a[r]:a}});var tme=_((YGt,eme)=>{"use strict";var tgt=QH();function rgt(t){var e={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:t,query:{},parse_failed:!1};try{var r=new URL(t);e.protocols=tgt(r),e.protocol=e.protocols[0],e.port=r.port,e.resource=r.hostname,e.host=r.host,e.user=r.username||"",e.password=r.password||"",e.pathname=r.pathname,e.hash=r.hash.slice(1),e.search=r.search.slice(1),e.href=r.href,e.query=Object.fromEntries(r.searchParams)}catch{e.protocols=["file"],e.protocol=e.protocols[0],e.port="",e.resource="",e.user="",e.pathname="",e.hash="",e.search="",e.href=t,e.query={},e.parse_failed=!0}return e}eme.exports=rgt});var ime=_((KGt,nme)=>{"use strict";var ngt=tme();function igt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var sgt=igt(ngt),ogt="text/plain",agt="us-ascii",rme=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),lgt=(t,{stripHash:e})=>{let r=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:o,data:a,hash:n}=r.groups,u=o.split(";");n=e?"":n;let A=!1;u[u.length-1]==="base64"&&(u.pop(),A=!0);let p=(u.shift()||"").toLowerCase(),E=[...u.map(w=>{let[D,b=""]=w.split("=").map(C=>C.trim());return D==="charset"&&(b=b.toLowerCase(),b===agt)?"":`${D}${b?`=${b}`:""}`}).filter(Boolean)];return A&&E.push("base64"),(E.length>0||p&&p!==ogt)&&E.unshift(p),`data:${E.join(";")},${A?a.trim():a}${n?`#${n}`:""}`};function cgt(t,e){if(e={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,...e},t=t.trim(),/^data:/i.test(t))return lgt(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let a=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&a.protocol==="https:"&&(a.protocol="http:"),e.forceHttps&&a.protocol==="http:"&&(a.protocol="https:"),e.stripAuthentication&&(a.username="",a.password=""),e.stripHash?a.hash="":e.stripTextFragment&&(a.hash=a.hash.replace(/#?:~:text.*?$/i,"")),a.pathname){let u=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,A=0,p="";for(;;){let E=u.exec(a.pathname);if(!E)break;let w=E[0],D=E.index,b=a.pathname.slice(A,D);p+=b.replace(/\/{2,}/g,"/"),p+=w,A=D+w.length}let h=a.pathname.slice(A,a.pathname.length);p+=h.replace(/\/{2,}/g,"/"),a.pathname=p}if(a.pathname)try{a.pathname=decodeURI(a.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let u=a.pathname.split("/"),A=u[u.length-1];rme(A,e.removeDirectoryIndex)&&(u=u.slice(0,-1),a.pathname=u.slice(1).join("/")+"/")}if(a.hostname&&(a.hostname=a.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(a.hostname)&&(a.hostname=a.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let u of[...a.searchParams.keys()])rme(u,e.removeQueryParameters)&&a.searchParams.delete(u);if(e.removeQueryParameters===!0&&(a.search=""),e.sortQueryParameters){a.searchParams.sort();try{a.search=decodeURIComponent(a.search)}catch{}}e.removeTrailingSlash&&(a.pathname=a.pathname.replace(/\/$/,""));let n=t;return t=a.toString(),!e.removeSingleSlash&&a.pathname==="/"&&!n.endsWith("/")&&a.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||a.pathname==="/")&&a.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t}var kH=(t,e=!1)=>{let r=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,o=n=>{let u=new Error(n);throw u.subject_url=t,u};(typeof t!="string"||!t.trim())&&o("Invalid url."),t.length>kH.MAX_INPUT_LENGTH&&o("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),e&&(typeof e!="object"&&(e={stripHash:!1}),t=cgt(t,e));let a=sgt.default(t);if(a.parse_failed){let n=a.href.match(r);n?(a.protocols=["ssh"],a.protocol="ssh",a.resource=n[2],a.host=n[2],a.user=n[1],a.pathname=`/${n[3]}`,a.parse_failed=!1):o("URL parsing failed.")}return a};kH.MAX_INPUT_LENGTH=2048;nme.exports=kH});var ame=_((VGt,ome)=>{"use strict";var ugt=QH();function sme(t){if(Array.isArray(t))return t.indexOf("ssh")!==-1||t.indexOf("rsync")!==-1;if(typeof t!="string")return!1;var e=ugt(t);if(t=t.substring(t.indexOf("://")+3),sme(e))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!t.match(r)&&t.indexOf("@"){"use strict";var Agt=ime(),lme=ame();function fgt(t){var e=Agt(t);return e.token="",e.password==="x-oauth-basic"?e.token=e.user:e.user==="x-token-auth"&&(e.token=e.password),lme(e.protocols)||e.protocols.length===0&&lme(t)?e.protocol="ssh":e.protocols.length?e.protocol=e.protocols[0]:(e.protocol="file",e.protocols=["file"]),e.href=e.href.replace(/\/$/,""),e}cme.exports=fgt});var fme=_((JGt,Ame)=>{"use strict";var pgt=ume();function FH(t){if(typeof t!="string")throw new Error("The url must be a string.");var e=/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i;e.test(t)&&(t="https://github.com/"+t);var r=pgt(t),o=r.resource.split("."),a=null;switch(r.toString=function(L){return FH.stringify(this,L)},r.source=o.length>2?o.slice(1-o.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=o[0],r.source="cloudforge.com";break;case"visualstudio.com":if(r.resource==="vs-ssh.visualstudio.com"){a=r.name.split("/"),a.length===4&&(r.organization=a[1],r.owner=a[2],r.name=a[3],r.full_name=a[2]+"/"+a[3]);break}else{a=r.name.split("/"),a.length===2?(r.owner=a[1],r.name=a[1],r.full_name="_git/"+r.name):a.length===3?(r.name=a[2],a[0]==="DefaultCollection"?(r.owner=a[2],r.organization=a[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=a[0],r.full_name=r.owner+"/_git/"+r.name)):a.length===4&&(r.organization=a[0],r.owner=a[1],r.name=a[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"){a=r.name.split("/"),a.length===4&&(r.organization=a[1],r.owner=a[2],r.name=a[3]);break}else{a=r.name.split("/"),a.length===5?(r.organization=a[0],r.owner=a[1],r.name=a[4],r.full_name="_git/"+r.name):a.length===3?(r.name=a[2],a[0]==="DefaultCollection"?(r.owner=a[2],r.organization=a[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=a[0],r.full_name=r.owner+"/_git/"+r.name)):a.length===4&&(r.organization=a[0],r.owner=a[1],r.name=a[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:a=r.name.split("/");var n=a.length-1;if(a.length>=2){var u=a.indexOf("-",2),A=a.indexOf("blob",2),p=a.indexOf("tree",2),h=a.indexOf("commit",2),E=a.indexOf("src",2),w=a.indexOf("raw",2),D=a.indexOf("edit",2);n=u>0?u-1:A>0?A-1:p>0?p-1:h>0?h-1:E>0?E-1:w>0?w-1:D>0?D-1:n,r.owner=a.slice(0,n).join("/"),r.name=a[n],h&&(r.commit=a[n+2])}r.ref="",r.filepathtype="",r.filepath="";var b=a.length>n&&a[n+1]==="-"?n+1:n;a.length>b+2&&["raw","src","blob","tree","edit"].indexOf(a[b+1])>=0&&(r.filepathtype=a[b+1],r.ref=a[b+2],a.length>b+3&&(r.filepath=a.slice(b+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 C=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/,T=C.exec(r.pathname);return T!=null&&(r.source="bitbucket-server",T[1]==="users"?r.owner="~"+T[2]:r.owner=T[2],r.organization=r.owner,r.name=T[3],a=T[4].split("/"),a.length>1&&(["raw","browse"].indexOf(a[1])>=0?(r.filepathtype=a[1],a.length>2&&(r.filepath=a.slice(2).join("/"))):a[1]==="commits"&&a.length>2&&(r.commit=a[2])),r.full_name=r.owner+"/"+r.name,r.query.at?r.ref=r.query.at:r.ref=""),r}FH.stringify=function(t,e){e=e||(t.protocols&&t.protocols.length?t.protocols.join("+"):t.protocol);var r=t.port?":"+t.port:"",o=t.user||"git",a=t.git_suffix?".git":"";switch(e){case"ssh":return r?"ssh://"+o+"@"+t.resource+r+"/"+t.full_name+a:o+"@"+t.resource+":"+t.full_name+a;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return e+"://"+o+"@"+t.resource+r+"/"+t.full_name+a;case"http":case"https":var n=t.token?hgt(t):t.user&&(t.protocols.includes("http")||t.protocols.includes("https"))?t.user+"@":"";return e+"://"+n+t.resource+r+"/"+ggt(t)+a;default:return t.href}};function hgt(t){switch(t.source){case"bitbucket.org":return"x-token-auth:"+t.token+"@";default:return t.token+"@"}}function ggt(t){switch(t.source){case"bitbucket-server":return"scm/"+t.full_name;default:return""+t.full_name}}Ame.exports=FH});var xme=_((b9t,Sme)=>{var Pgt=Cb(),Sgt=QS(),xgt=jl(),bgt=hy(),Qgt=a8(),kgt=sE(),Fgt=t2();function Rgt(t){return xgt(t)?Pgt(t,kgt):bgt(t)?[t]:Sgt(Qgt(Fgt(t)))}Sme.exports=Rgt});function Ogt(t,e){return e===1&&Lgt.has(t[0])}function q2(t){let e=Array.isArray(t)?t:(0,kme.default)(t);return e.map((o,a)=>Tgt.test(o)?`[${o}]`:Ngt.test(o)&&!Ogt(e,a)?`.${o}`:`[${JSON.stringify(o)}]`).join("").replace(/^\./,"")}function Mgt(t,e){let r=[];if(e.methodName!==null&&r.push(fe.pretty(t,e.methodName,fe.Type.CODE)),e.file!==null){let o=[];o.push(fe.pretty(t,e.file,fe.Type.PATH)),e.line!==null&&(o.push(fe.pretty(t,e.line,fe.Type.NUMBER)),e.column!==null&&o.push(fe.pretty(t,e.column,fe.Type.NUMBER))),r.push(`(${o.join(fe.pretty(t,":","grey"))})`)}return r.join(" ")}function zQ(t,{manifestUpdates:e,reportedErrors:r},{fix:o}={}){let a=new Map,n=new Map,u=[...r.keys()].map(A=>[A,new Map]);for(let[A,p]of[...u,...e]){let h=r.get(A)?.map(b=>({text:b,fixable:!1}))??[],E=!1,w=t.getWorkspaceByCwd(A),D=w.manifest.exportTo({});for(let[b,C]of p){if(C.size>1){let T=[...C].map(([L,U])=>{let z=fe.pretty(t.configuration,L,fe.Type.INSPECT),te=U.size>0?Mgt(t.configuration,U.values().next().value):null;return te!==null?` ${z} at ${te}`:` ${z}`}).join("");h.push({text:`Conflict detected in constraint targeting ${fe.pretty(t.configuration,b,fe.Type.CODE)}; conflicting values are:${T}`,fixable:!1})}else{let[[T]]=C,L=(0,bme.default)(D,b);if(JSON.stringify(L)===JSON.stringify(T))continue;if(!o){let U=typeof L>"u"?`Missing field ${fe.pretty(t.configuration,b,fe.Type.CODE)}; expected ${fe.pretty(t.configuration,T,fe.Type.INSPECT)}`:typeof T>"u"?`Extraneous field ${fe.pretty(t.configuration,b,fe.Type.CODE)} currently set to ${fe.pretty(t.configuration,L,fe.Type.INSPECT)}`:`Invalid field ${fe.pretty(t.configuration,b,fe.Type.CODE)}; expected ${fe.pretty(t.configuration,T,fe.Type.INSPECT)}, found ${fe.pretty(t.configuration,L,fe.Type.INSPECT)}`;h.push({text:U,fixable:!0});continue}typeof T>"u"?(0,Fme.default)(D,b):(0,Qme.default)(D,b,T),E=!0}E&&a.set(w,D)}h.length>0&&n.set(w,h)}return{changedWorkspaces:a,remainingErrors:n}}function Rme(t,{configuration:e}){let r={children:[]};for(let[o,a]of t){let n=[];for(let A of a){let p=A.text.split(/\n/);A.fixable&&(p[0]=`${fe.pretty(e,"\u2699","gray")} ${p[0]}`),n.push({value:fe.tuple(fe.Type.NO_HINT,p[0]),children:p.slice(1).map(h=>({value:fe.tuple(fe.Type.NO_HINT,h)}))})}let u={value:fe.tuple(fe.Type.LOCATOR,o.anchoredLocator),children:qe.sortMap(n,A=>A.value[1])};r.children.push(u)}return r.children=qe.sortMap(r.children,o=>o.value[1]),r}var bme,Qme,kme,Fme,eC,Tgt,Ngt,Lgt,j2=It(()=>{Ve();bme=et(N2()),Qme=et(yH()),kme=et(xme()),Fme=et(IH()),eC=class{constructor(e){this.indexedFields=e;this.items=[];this.indexes={};this.clear()}clear(){this.items=[];for(let e of this.indexedFields)this.indexes[e]=new Map}insert(e){this.items.push(e);for(let r of this.indexedFields){let o=Object.hasOwn(e,r)?e[r]:void 0;if(typeof o>"u")continue;qe.getArrayWithDefault(this.indexes[r],o).push(e)}return e}find(e){if(typeof e>"u")return this.items;let r=Object.entries(e);if(r.length===0)return this.items;let o=[],a;for(let[u,A]of r){let p=u,h=Object.hasOwn(this.indexes,p)?this.indexes[p]:void 0;if(typeof h>"u"){o.push([p,A]);continue}let E=new Set(h.get(A)??[]);if(E.size===0)return[];if(typeof a>"u")a=E;else for(let w of a)E.has(w)||a.delete(w);if(a.size===0)break}let n=[...a??[]];return o.length>0&&(n=n.filter(u=>{for(let[A,p]of o)if(!(typeof p<"u"?Object.hasOwn(u,A)&&u[A]===p:Object.hasOwn(u,A)===!1))return!1;return!0})),n}},Tgt=/^[0-9]+$/,Ngt=/^[a-zA-Z0-9_]+$/,Lgt=new Set(["scripts",..._t.allDependencies])});var Tme=_((H9t,YH)=>{var Ugt;(function(t){var e=function(){return{"append/2":[new t.type.Rule(new t.type.Term("append",[new t.type.Var("X"),new t.type.Var("L")]),new t.type.Term("foldl",[new t.type.Term("append",[]),new t.type.Var("X"),new t.type.Term("[]",[]),new t.type.Var("L")]))],"append/3":[new t.type.Rule(new t.type.Term("append",[new t.type.Term("[]",[]),new t.type.Var("X"),new t.type.Var("X")]),null),new t.type.Rule(new t.type.Term("append",[new t.type.Term(".",[new t.type.Var("H"),new t.type.Var("T")]),new t.type.Var("X"),new t.type.Term(".",[new t.type.Var("H"),new t.type.Var("S")])]),new t.type.Term("append",[new t.type.Var("T"),new t.type.Var("X"),new t.type.Var("S")]))],"member/2":[new t.type.Rule(new t.type.Term("member",[new t.type.Var("X"),new t.type.Term(".",[new t.type.Var("X"),new t.type.Var("_")])]),null),new t.type.Rule(new t.type.Term("member",[new t.type.Var("X"),new t.type.Term(".",[new t.type.Var("_"),new t.type.Var("Xs")])]),new t.type.Term("member",[new t.type.Var("X"),new t.type.Var("Xs")]))],"permutation/2":[new t.type.Rule(new t.type.Term("permutation",[new t.type.Term("[]",[]),new t.type.Term("[]",[])]),null),new t.type.Rule(new t.type.Term("permutation",[new t.type.Term(".",[new t.type.Var("H"),new t.type.Var("T")]),new t.type.Var("S")]),new t.type.Term(",",[new t.type.Term("permutation",[new t.type.Var("T"),new t.type.Var("P")]),new t.type.Term(",",[new t.type.Term("append",[new t.type.Var("X"),new t.type.Var("Y"),new t.type.Var("P")]),new t.type.Term("append",[new t.type.Var("X"),new t.type.Term(".",[new t.type.Var("H"),new t.type.Var("Y")]),new t.type.Var("S")])])]))],"maplist/2":[new t.type.Rule(new t.type.Term("maplist",[new t.type.Var("_"),new t.type.Term("[]",[])]),null),new t.type.Rule(new t.type.Term("maplist",[new t.type.Var("P"),new t.type.Term(".",[new t.type.Var("X"),new t.type.Var("Xs")])]),new t.type.Term(",",[new t.type.Term("call",[new t.type.Var("P"),new t.type.Var("X")]),new t.type.Term("maplist",[new t.type.Var("P"),new t.type.Var("Xs")])]))],"maplist/3":[new t.type.Rule(new t.type.Term("maplist",[new t.type.Var("_"),new t.type.Term("[]",[]),new t.type.Term("[]",[])]),null),new t.type.Rule(new t.type.Term("maplist",[new t.type.Var("P"),new t.type.Term(".",[new t.type.Var("A"),new t.type.Var("As")]),new t.type.Term(".",[new t.type.Var("B"),new t.type.Var("Bs")])]),new t.type.Term(",",[new t.type.Term("call",[new t.type.Var("P"),new t.type.Var("A"),new t.type.Var("B")]),new t.type.Term("maplist",[new t.type.Var("P"),new t.type.Var("As"),new t.type.Var("Bs")])]))],"maplist/4":[new t.type.Rule(new t.type.Term("maplist",[new t.type.Var("_"),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[])]),null),new t.type.Rule(new t.type.Term("maplist",[new t.type.Var("P"),new t.type.Term(".",[new t.type.Var("A"),new t.type.Var("As")]),new t.type.Term(".",[new t.type.Var("B"),new t.type.Var("Bs")]),new t.type.Term(".",[new t.type.Var("C"),new t.type.Var("Cs")])]),new t.type.Term(",",[new t.type.Term("call",[new t.type.Var("P"),new t.type.Var("A"),new t.type.Var("B"),new t.type.Var("C")]),new t.type.Term("maplist",[new t.type.Var("P"),new t.type.Var("As"),new t.type.Var("Bs"),new t.type.Var("Cs")])]))],"maplist/5":[new t.type.Rule(new t.type.Term("maplist",[new t.type.Var("_"),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[])]),null),new t.type.Rule(new t.type.Term("maplist",[new t.type.Var("P"),new t.type.Term(".",[new t.type.Var("A"),new t.type.Var("As")]),new t.type.Term(".",[new t.type.Var("B"),new t.type.Var("Bs")]),new t.type.Term(".",[new t.type.Var("C"),new t.type.Var("Cs")]),new t.type.Term(".",[new t.type.Var("D"),new t.type.Var("Ds")])]),new t.type.Term(",",[new t.type.Term("call",[new t.type.Var("P"),new t.type.Var("A"),new t.type.Var("B"),new t.type.Var("C"),new t.type.Var("D")]),new t.type.Term("maplist",[new t.type.Var("P"),new t.type.Var("As"),new t.type.Var("Bs"),new t.type.Var("Cs"),new t.type.Var("Ds")])]))],"maplist/6":[new t.type.Rule(new t.type.Term("maplist",[new t.type.Var("_"),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[])]),null),new t.type.Rule(new t.type.Term("maplist",[new t.type.Var("P"),new t.type.Term(".",[new t.type.Var("A"),new t.type.Var("As")]),new t.type.Term(".",[new t.type.Var("B"),new t.type.Var("Bs")]),new t.type.Term(".",[new t.type.Var("C"),new t.type.Var("Cs")]),new t.type.Term(".",[new t.type.Var("D"),new t.type.Var("Ds")]),new t.type.Term(".",[new t.type.Var("E"),new t.type.Var("Es")])]),new t.type.Term(",",[new t.type.Term("call",[new t.type.Var("P"),new t.type.Var("A"),new t.type.Var("B"),new t.type.Var("C"),new t.type.Var("D"),new t.type.Var("E")]),new t.type.Term("maplist",[new t.type.Var("P"),new t.type.Var("As"),new t.type.Var("Bs"),new t.type.Var("Cs"),new t.type.Var("Ds"),new t.type.Var("Es")])]))],"maplist/7":[new t.type.Rule(new t.type.Term("maplist",[new t.type.Var("_"),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[])]),null),new t.type.Rule(new t.type.Term("maplist",[new t.type.Var("P"),new t.type.Term(".",[new t.type.Var("A"),new t.type.Var("As")]),new t.type.Term(".",[new t.type.Var("B"),new t.type.Var("Bs")]),new t.type.Term(".",[new t.type.Var("C"),new t.type.Var("Cs")]),new t.type.Term(".",[new t.type.Var("D"),new t.type.Var("Ds")]),new t.type.Term(".",[new t.type.Var("E"),new t.type.Var("Es")]),new t.type.Term(".",[new t.type.Var("F"),new t.type.Var("Fs")])]),new t.type.Term(",",[new t.type.Term("call",[new t.type.Var("P"),new t.type.Var("A"),new t.type.Var("B"),new t.type.Var("C"),new t.type.Var("D"),new t.type.Var("E"),new t.type.Var("F")]),new t.type.Term("maplist",[new t.type.Var("P"),new t.type.Var("As"),new t.type.Var("Bs"),new t.type.Var("Cs"),new t.type.Var("Ds"),new t.type.Var("Es"),new t.type.Var("Fs")])]))],"maplist/8":[new t.type.Rule(new t.type.Term("maplist",[new t.type.Var("_"),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[]),new t.type.Term("[]",[])]),null),new t.type.Rule(new t.type.Term("maplist",[new t.type.Var("P"),new t.type.Term(".",[new t.type.Var("A"),new t.type.Var("As")]),new t.type.Term(".",[new t.type.Var("B"),new t.type.Var("Bs")]),new t.type.Term(".",[new t.type.Var("C"),new t.type.Var("Cs")]),new t.type.Term(".",[new t.type.Var("D"),new t.type.Var("Ds")]),new t.type.Term(".",[new t.type.Var("E"),new t.type.Var("Es")]),new t.type.Term(".",[new t.type.Var("F"),new t.type.Var("Fs")]),new t.type.Term(".",[new t.type.Var("G"),new t.type.Var("Gs")])]),new t.type.Term(",",[new t.type.Term("call",[new t.type.Var("P"),new t.type.Var("A"),new t.type.Var("B"),new t.type.Var("C"),new t.type.Var("D"),new t.type.Var("E"),new t.type.Var("F"),new t.type.Var("G")]),new t.type.Term("maplist",[new t.type.Var("P"),new t.type.Var("As"),new t.type.Var("Bs"),new t.type.Var("Cs"),new t.type.Var("Ds"),new t.type.Var("Es"),new t.type.Var("Fs"),new t.type.Var("Gs")])]))],"include/3":[new t.type.Rule(new t.type.Term("include",[new t.type.Var("_"),new t.type.Term("[]",[]),new t.type.Term("[]",[])]),null),new t.type.Rule(new t.type.Term("include",[new t.type.Var("P"),new t.type.Term(".",[new t.type.Var("H"),new t.type.Var("T")]),new t.type.Var("L")]),new t.type.Term(",",[new t.type.Term("=..",[new t.type.Var("P"),new t.type.Var("A")]),new t.type.Term(",",[new t.type.Term("append",[new t.type.Var("A"),new t.type.Term(".",[new t.type.Var("H"),new t.type.Term("[]",[])]),new t.type.Var("B")]),new t.type.Term(",",[new t.type.Term("=..",[new t.type.Var("F"),new t.type.Var("B")]),new t.type.Term(",",[new t.type.Term(";",[new t.type.Term(",",[new t.type.Term("call",[new t.type.Var("F")]),new t.type.Term(",",[new t.type.Term("=",[new t.type.Var("L"),new t.type.Term(".",[new t.type.Var("H"),new t.type.Var("S")])]),new t.type.Term("!",[])])]),new t.type.Term("=",[new t.type.Var("L"),new t.type.Var("S")])]),new t.type.Term("include",[new t.type.Var("P"),new t.type.Var("T"),new t.type.Var("S")])])])])]))],"exclude/3":[new t.type.Rule(new t.type.Term("exclude",[new t.type.Var("_"),new t.type.Term("[]",[]),new t.type.Term("[]",[])]),null),new t.type.Rule(new t.type.Term("exclude",[new t.type.Var("P"),new t.type.Term(".",[new t.type.Var("H"),new t.type.Var("T")]),new t.type.Var("S")]),new t.type.Term(",",[new t.type.Term("exclude",[new t.type.Var("P"),new t.type.Var("T"),new t.type.Var("E")]),new t.type.Term(",",[new t.type.Term("=..",[new t.type.Var("P"),new t.type.Var("L")]),new t.type.Term(",",[new t.type.Term("append",[new t.type.Var("L"),new t.type.Term(".",[new t.type.Var("H"),new t.type.Term("[]",[])]),new t.type.Var("Q")]),new t.type.Term(",",[new t.type.Term("=..",[new t.type.Var("R"),new t.type.Var("Q")]),new t.type.Term(";",[new t.type.Term(",",[new t.type.Term("call",[new t.type.Var("R")]),new t.type.Term(",",[new t.type.Term("!",[]),new t.type.Term("=",[new t.type.Var("S"),new t.type.Var("E")])])]),new t.type.Term("=",[new t.type.Var("S"),new t.type.Term(".",[new t.type.Var("H"),new t.type.Var("E")])])])])])])]))],"foldl/4":[new t.type.Rule(new t.type.Term("foldl",[new t.type.Var("_"),new t.type.Term("[]",[]),new t.type.Var("I"),new t.type.Var("I")]),null),new t.type.Rule(new t.type.Term("foldl",[new t.type.Var("P"),new t.type.Term(".",[new t.type.Var("H"),new t.type.Var("T")]),new t.type.Var("I"),new t.type.Var("R")]),new t.type.Term(",",[new t.type.Term("=..",[new t.type.Var("P"),new t.type.Var("L")]),new t.type.Term(",",[new t.type.Term("append",[new t.type.Var("L"),new t.type.Term(".",[new t.type.Var("I"),new t.type.Term(".",[new t.type.Var("H"),new t.type.Term(".",[new t.type.Var("X"),new t.type.Term("[]",[])])])]),new t.type.Var("L2")]),new t.type.Term(",",[new t.type.Term("=..",[new t.type.Var("P2"),new t.type.Var("L2")]),new t.type.Term(",",[new t.type.Term("call",[new t.type.Var("P2")]),new t.type.Term("foldl",[new t.type.Var("P"),new t.type.Var("T"),new t.type.Var("X"),new t.type.Var("R")])])])])]))],"select/3":[new t.type.Rule(new t.type.Term("select",[new t.type.Var("E"),new t.type.Term(".",[new t.type.Var("E"),new t.type.Var("Xs")]),new t.type.Var("Xs")]),null),new t.type.Rule(new t.type.Term("select",[new t.type.Var("E"),new t.type.Term(".",[new t.type.Var("X"),new t.type.Var("Xs")]),new t.type.Term(".",[new t.type.Var("X"),new t.type.Var("Ys")])]),new t.type.Term("select",[new t.type.Var("E"),new t.type.Var("Xs"),new t.type.Var("Ys")]))],"sum_list/2":[new t.type.Rule(new t.type.Term("sum_list",[new t.type.Term("[]",[]),new t.type.Num(0,!1)]),null),new t.type.Rule(new t.type.Term("sum_list",[new t.type.Term(".",[new t.type.Var("X"),new t.type.Var("Xs")]),new t.type.Var("S")]),new t.type.Term(",",[new t.type.Term("sum_list",[new t.type.Var("Xs"),new t.type.Var("Y")]),new t.type.Term("is",[new t.type.Var("S"),new t.type.Term("+",[new t.type.Var("X"),new t.type.Var("Y")])])]))],"max_list/2":[new t.type.Rule(new t.type.Term("max_list",[new t.type.Term(".",[new t.type.Var("X"),new t.type.Term("[]",[])]),new t.type.Var("X")]),null),new t.type.Rule(new t.type.Term("max_list",[new t.type.Term(".",[new t.type.Var("X"),new t.type.Var("Xs")]),new t.type.Var("S")]),new t.type.Term(",",[new t.type.Term("max_list",[new t.type.Var("Xs"),new t.type.Var("Y")]),new t.type.Term(";",[new t.type.Term(",",[new t.type.Term(">=",[new t.type.Var("X"),new t.type.Var("Y")]),new t.type.Term(",",[new t.type.Term("=",[new t.type.Var("S"),new t.type.Var("X")]),new t.type.Term("!",[])])]),new t.type.Term("=",[new t.type.Var("S"),new t.type.Var("Y")])])]))],"min_list/2":[new t.type.Rule(new t.type.Term("min_list",[new t.type.Term(".",[new t.type.Var("X"),new t.type.Term("[]",[])]),new t.type.Var("X")]),null),new t.type.Rule(new t.type.Term("min_list",[new t.type.Term(".",[new t.type.Var("X"),new t.type.Var("Xs")]),new t.type.Var("S")]),new t.type.Term(",",[new t.type.Term("min_list",[new t.type.Var("Xs"),new t.type.Var("Y")]),new t.type.Term(";",[new t.type.Term(",",[new t.type.Term("=<",[new t.type.Var("X"),new t.type.Var("Y")]),new t.type.Term(",",[new t.type.Term("=",[new t.type.Var("S"),new t.type.Var("X")]),new t.type.Term("!",[])])]),new t.type.Term("=",[new t.type.Var("S"),new t.type.Var("Y")])])]))],"prod_list/2":[new t.type.Rule(new t.type.Term("prod_list",[new t.type.Term("[]",[]),new t.type.Num(1,!1)]),null),new t.type.Rule(new t.type.Term("prod_list",[new t.type.Term(".",[new t.type.Var("X"),new t.type.Var("Xs")]),new t.type.Var("S")]),new t.type.Term(",",[new t.type.Term("prod_list",[new t.type.Var("Xs"),new t.type.Var("Y")]),new t.type.Term("is",[new t.type.Var("S"),new t.type.Term("*",[new t.type.Var("X"),new t.type.Var("Y")])])]))],"last/2":[new t.type.Rule(new t.type.Term("last",[new t.type.Term(".",[new t.type.Var("X"),new t.type.Term("[]",[])]),new t.type.Var("X")]),null),new t.type.Rule(new t.type.Term("last",[new t.type.Term(".",[new t.type.Var("_"),new t.type.Var("Xs")]),new t.type.Var("X")]),new t.type.Term("last",[new t.type.Var("Xs"),new t.type.Var("X")]))],"prefix/2":[new t.type.Rule(new t.type.Term("prefix",[new t.type.Var("Part"),new t.type.Var("Whole")]),new t.type.Term("append",[new t.type.Var("Part"),new t.type.Var("_"),new t.type.Var("Whole")]))],"nth0/3":[new t.type.Rule(new t.type.Term("nth0",[new t.type.Var("X"),new t.type.Var("Y"),new t.type.Var("Z")]),new t.type.Term(";",[new t.type.Term("->",[new t.type.Term("var",[new t.type.Var("X")]),new t.type.Term("nth",[new t.type.Num(0,!1),new t.type.Var("X"),new t.type.Var("Y"),new t.type.Var("Z"),new t.type.Var("_")])]),new t.type.Term(",",[new t.type.Term(">=",[new t.type.Var("X"),new t.type.Num(0,!1)]),new t.type.Term(",",[new t.type.Term("nth",[new t.type.Num(0,!1),new t.type.Var("X"),new t.type.Var("Y"),new t.type.Var("Z"),new t.type.Var("_")]),new t.type.Term("!",[])])])]))],"nth1/3":[new t.type.Rule(new t.type.Term("nth1",[new t.type.Var("X"),new t.type.Var("Y"),new t.type.Var("Z")]),new t.type.Term(";",[new t.type.Term("->",[new t.type.Term("var",[new t.type.Var("X")]),new t.type.Term("nth",[new t.type.Num(1,!1),new t.type.Var("X"),new t.type.Var("Y"),new t.type.Var("Z"),new t.type.Var("_")])]),new t.type.Term(",",[new t.type.Term(">",[new t.type.Var("X"),new t.type.Num(0,!1)]),new t.type.Term(",",[new t.type.Term("nth",[new t.type.Num(1,!1),new t.type.Var("X"),new t.type.Var("Y"),new t.type.Var("Z"),new t.type.Var("_")]),new t.type.Term("!",[])])])]))],"nth0/4":[new t.type.Rule(new t.type.Term("nth0",[new t.type.Var("X"),new t.type.Var("Y"),new t.type.Var("Z"),new t.type.Var("W")]),new t.type.Term(";",[new t.type.Term("->",[new t.type.Term("var",[new t.type.Var("X")]),new t.type.Term("nth",[new t.type.Num(0,!1),new t.type.Var("X"),new t.type.Var("Y"),new t.type.Var("Z"),new t.type.Var("W")])]),new t.type.Term(",",[new t.type.Term(">=",[new t.type.Var("X"),new t.type.Num(0,!1)]),new t.type.Term(",",[new t.type.Term("nth",[new t.type.Num(0,!1),new t.type.Var("X"),new t.type.Var("Y"),new t.type.Var("Z"),new t.type.Var("W")]),new t.type.Term("!",[])])])]))],"nth1/4":[new t.type.Rule(new t.type.Term("nth1",[new t.type.Var("X"),new t.type.Var("Y"),new t.type.Var("Z"),new t.type.Var("W")]),new t.type.Term(";",[new t.type.Term("->",[new t.type.Term("var",[new t.type.Var("X")]),new t.type.Term("nth",[new t.type.Num(1,!1),new t.type.Var("X"),new t.type.Var("Y"),new t.type.Var("Z"),new t.type.Var("W")])]),new t.type.Term(",",[new t.type.Term(">",[new t.type.Var("X"),new t.type.Num(0,!1)]),new t.type.Term(",",[new t.type.Term("nth",[new t.type.Num(1,!1),new t.type.Var("X"),new t.type.Var("Y"),new t.type.Var("Z"),new t.type.Var("W")]),new t.type.Term("!",[])])])]))],"nth/5":[new t.type.Rule(new t.type.Term("nth",[new t.type.Var("N"),new t.type.Var("N"),new t.type.Term(".",[new t.type.Var("X"),new t.type.Var("Xs")]),new t.type.Var("X"),new t.type.Var("Xs")]),null),new t.type.Rule(new t.type.Term("nth",[new t.type.Var("N"),new t.type.Var("O"),new t.type.Term(".",[new t.type.Var("X"),new t.type.Var("Xs")]),new t.type.Var("Y"),new t.type.Term(".",[new t.type.Var("X"),new t.type.Var("Ys")])]),new t.type.Term(",",[new t.type.Term("is",[new t.type.Var("M"),new t.type.Term("+",[new t.type.Var("N"),new t.type.Num(1,!1)])]),new t.type.Term("nth",[new t.type.Var("M"),new t.type.Var("O"),new t.type.Var("Xs"),new t.type.Var("Y"),new t.type.Var("Ys")])]))],"length/2":function(o,a,n){var u=n.args[0],A=n.args[1];if(!t.type.is_variable(A)&&!t.type.is_integer(A))o.throw_error(t.error.type("integer",A,n.indicator));else if(t.type.is_integer(A)&&A.value<0)o.throw_error(t.error.domain("not_less_than_zero",A,n.indicator));else{var p=new t.type.Term("length",[u,new t.type.Num(0,!1),A]);t.type.is_integer(A)&&(p=new t.type.Term(",",[p,new t.type.Term("!",[])])),o.prepend([new t.type.State(a.goal.replace(p),a.substitution,a)])}},"length/3":[new t.type.Rule(new t.type.Term("length",[new t.type.Term("[]",[]),new t.type.Var("N"),new t.type.Var("N")]),null),new t.type.Rule(new t.type.Term("length",[new t.type.Term(".",[new t.type.Var("_"),new t.type.Var("X")]),new t.type.Var("A"),new t.type.Var("N")]),new t.type.Term(",",[new t.type.Term("succ",[new t.type.Var("A"),new t.type.Var("B")]),new t.type.Term("length",[new t.type.Var("X"),new t.type.Var("B"),new t.type.Var("N")])]))],"replicate/3":function(o,a,n){var u=n.args[0],A=n.args[1],p=n.args[2];if(t.type.is_variable(A))o.throw_error(t.error.instantiation(n.indicator));else if(!t.type.is_integer(A))o.throw_error(t.error.type("integer",A,n.indicator));else if(A.value<0)o.throw_error(t.error.domain("not_less_than_zero",A,n.indicator));else if(!t.type.is_variable(p)&&!t.type.is_list(p))o.throw_error(t.error.type("list",p,n.indicator));else{for(var h=new t.type.Term("[]"),E=0;E0;w--)E[w].equals(E[w-1])&&E.splice(w,1);for(var D=new t.type.Term("[]"),w=E.length-1;w>=0;w--)D=new t.type.Term(".",[E[w],D]);o.prepend([new t.type.State(a.goal.replace(new t.type.Term("=",[D,A])),a.substitution,a)])}}},"msort/2":function(o,a,n){var u=n.args[0],A=n.args[1];if(t.type.is_variable(u))o.throw_error(t.error.instantiation(n.indicator));else if(!t.type.is_variable(A)&&!t.type.is_fully_list(A))o.throw_error(t.error.type("list",A,n.indicator));else{for(var p=[],h=u;h.indicator==="./2";)p.push(h.args[0]),h=h.args[1];if(t.type.is_variable(h))o.throw_error(t.error.instantiation(n.indicator));else if(!t.type.is_empty_list(h))o.throw_error(t.error.type("list",u,n.indicator));else{for(var E=p.sort(t.compare),w=new t.type.Term("[]"),D=E.length-1;D>=0;D--)w=new t.type.Term(".",[E[D],w]);o.prepend([new t.type.State(a.goal.replace(new t.type.Term("=",[w,A])),a.substitution,a)])}}},"keysort/2":function(o,a,n){var u=n.args[0],A=n.args[1];if(t.type.is_variable(u))o.throw_error(t.error.instantiation(n.indicator));else if(!t.type.is_variable(A)&&!t.type.is_fully_list(A))o.throw_error(t.error.type("list",A,n.indicator));else{for(var p=[],h,E=u;E.indicator==="./2";){if(h=E.args[0],t.type.is_variable(h)){o.throw_error(t.error.instantiation(n.indicator));return}else if(!t.type.is_term(h)||h.indicator!=="-/2"){o.throw_error(t.error.type("pair",h,n.indicator));return}h.args[0].pair=h.args[1],p.push(h.args[0]),E=E.args[1]}if(t.type.is_variable(E))o.throw_error(t.error.instantiation(n.indicator));else if(!t.type.is_empty_list(E))o.throw_error(t.error.type("list",u,n.indicator));else{for(var w=p.sort(t.compare),D=new t.type.Term("[]"),b=w.length-1;b>=0;b--)D=new t.type.Term(".",[new t.type.Term("-",[w[b],w[b].pair]),D]),delete w[b].pair;o.prepend([new t.type.State(a.goal.replace(new t.type.Term("=",[D,A])),a.substitution,a)])}}},"take/3":function(o,a,n){var u=n.args[0],A=n.args[1],p=n.args[2];if(t.type.is_variable(A)||t.type.is_variable(u))o.throw_error(t.error.instantiation(n.indicator));else if(!t.type.is_list(A))o.throw_error(t.error.type("list",A,n.indicator));else if(!t.type.is_integer(u))o.throw_error(t.error.type("integer",u,n.indicator));else if(!t.type.is_variable(p)&&!t.type.is_list(p))o.throw_error(t.error.type("list",p,n.indicator));else{for(var h=u.value,E=[],w=A;h>0&&w.indicator==="./2";)E.push(w.args[0]),w=w.args[1],h--;if(h===0){for(var D=new t.type.Term("[]"),h=E.length-1;h>=0;h--)D=new t.type.Term(".",[E[h],D]);o.prepend([new t.type.State(a.goal.replace(new t.type.Term("=",[D,p])),a.substitution,a)])}}},"drop/3":function(o,a,n){var u=n.args[0],A=n.args[1],p=n.args[2];if(t.type.is_variable(A)||t.type.is_variable(u))o.throw_error(t.error.instantiation(n.indicator));else if(!t.type.is_list(A))o.throw_error(t.error.type("list",A,n.indicator));else if(!t.type.is_integer(u))o.throw_error(t.error.type("integer",u,n.indicator));else if(!t.type.is_variable(p)&&!t.type.is_list(p))o.throw_error(t.error.type("list",p,n.indicator));else{for(var h=u.value,E=[],w=A;h>0&&w.indicator==="./2";)E.push(w.args[0]),w=w.args[1],h--;h===0&&o.prepend([new t.type.State(a.goal.replace(new t.type.Term("=",[w,p])),a.substitution,a)])}},"reverse/2":function(o,a,n){var u=n.args[0],A=n.args[1],p=t.type.is_instantiated_list(u),h=t.type.is_instantiated_list(A);if(t.type.is_variable(u)&&t.type.is_variable(A))o.throw_error(t.error.instantiation(n.indicator));else if(!t.type.is_variable(u)&&!t.type.is_fully_list(u))o.throw_error(t.error.type("list",u,n.indicator));else if(!t.type.is_variable(A)&&!t.type.is_fully_list(A))o.throw_error(t.error.type("list",A,n.indicator));else if(!p&&!h)o.throw_error(t.error.instantiation(n.indicator));else{for(var E=p?u:A,w=new t.type.Term("[]",[]);E.indicator==="./2";)w=new t.type.Term(".",[E.args[0],w]),E=E.args[1];o.prepend([new t.type.State(a.goal.replace(new t.type.Term("=",[w,p?A:u])),a.substitution,a)])}},"list_to_set/2":function(o,a,n){var u=n.args[0],A=n.args[1];if(t.type.is_variable(u))o.throw_error(t.error.instantiation(n.indicator));else{for(var p=u,h=[];p.indicator==="./2";)h.push(p.args[0]),p=p.args[1];if(t.type.is_variable(p))o.throw_error(t.error.instantiation(n.indicator));else if(!t.type.is_term(p)||p.indicator!=="[]/0")o.throw_error(t.error.type("list",u,n.indicator));else{for(var E=[],w=new t.type.Term("[]",[]),D,b=0;b=0;b--)w=new t.type.Term(".",[E[b],w]);o.prepend([new t.type.State(a.goal.replace(new t.type.Term("=",[A,w])),a.substitution,a)])}}}}},r=["append/2","append/3","member/2","permutation/2","maplist/2","maplist/3","maplist/4","maplist/5","maplist/6","maplist/7","maplist/8","include/3","exclude/3","foldl/4","sum_list/2","max_list/2","min_list/2","prod_list/2","last/2","prefix/2","nth0/3","nth1/3","nth0/4","nth1/4","length/2","replicate/3","select/3","sort/2","msort/2","keysort/2","take/3","drop/3","reverse/2","list_to_set/2"];typeof YH<"u"?YH.exports=function(o){t=o,new t.type.Module("lists",e(),r)}:new t.type.Module("lists",e(),r)})(Ugt)});var zme=_(Vr=>{"use strict";var $g=process.platform==="win32",KH="aes-256-cbc",_gt="sha256",Ome="The current environment doesn't support interactive reading from TTY.",Xn=De("fs"),Nme=process.binding("tty_wrap").TTY,zH=De("child_process"),Lh=De("path"),JH={prompt:"> ",hideEchoBack:!1,mask:"*",limit:[],limitMessage:"Input another, please.$<( [)limit(])>",defaultInput:"",trueValue:[],falseValue:[],caseSensitive:!1,keepWhitespace:!1,encoding:"utf8",bufferSize:1024,print:void 0,history:!0,cd:!1,phContent:void 0,preCheck:void 0},Vf="none",iu,rC,Lme=!1,Nh,XQ,VH,Hgt=0,t6="",Zg=[],ZQ,Mme=!1,XH=!1,G2=!1;function Ume(t){function e(r){return r.replace(/[^\w\u0080-\uFFFF]/g,function(o){return"#"+o.charCodeAt(0)+";"})}return XQ.concat(function(r){var o=[];return Object.keys(r).forEach(function(a){r[a]==="boolean"?t[a]&&o.push("--"+a):r[a]==="string"&&t[a]&&o.push("--"+a,e(t[a]))}),o}({display:"string",displayOnly:"boolean",keyIn:"boolean",hideEchoBack:"boolean",mask:"string",limit:"string",caseSensitive:"boolean"}))}function qgt(t,e){function r(U){var z,te="",le;for(VH=VH||De("os").tmpdir();;){z=Lh.join(VH,U+te);try{le=Xn.openSync(z,"wx")}catch(de){if(de.code==="EEXIST"){te++;continue}else throw de}Xn.closeSync(le);break}return z}var o,a,n,u={},A,p,h=r("readline-sync.stdout"),E=r("readline-sync.stderr"),w=r("readline-sync.exit"),D=r("readline-sync.done"),b=De("crypto"),C,T,L;C=b.createHash(_gt),C.update(""+process.pid+Hgt+++Math.random()),L=C.digest("hex"),T=b.createDecipher(KH,L),o=Ume(t),$g?(a=process.env.ComSpec||"cmd.exe",process.env.Q='"',n=["/V:ON","/S","/C","(%Q%"+a+"%Q% /V:ON /S /C %Q%%Q%"+Nh+"%Q%"+o.map(function(U){return" %Q%"+U+"%Q%"}).join("")+" & (echo !ERRORLEVEL!)>%Q%"+w+"%Q%%Q%) 2>%Q%"+E+"%Q% |%Q%"+process.execPath+"%Q% %Q%"+__dirname+"\\encrypt.js%Q% %Q%"+KH+"%Q% %Q%"+L+"%Q% >%Q%"+h+"%Q% & (echo 1)>%Q%"+D+"%Q%"]):(a="/bin/sh",n=["-c",'("'+Nh+'"'+o.map(function(U){return" '"+U.replace(/'/g,"'\\''")+"'"}).join("")+'; echo $?>"'+w+'") 2>"'+E+'" |"'+process.execPath+'" "'+__dirname+'/encrypt.js" "'+KH+'" "'+L+'" >"'+h+'"; echo 1 >"'+D+'"']),G2&&G2("_execFileSync",o);try{zH.spawn(a,n,e)}catch(U){u.error=new Error(U.message),u.error.method="_execFileSync - spawn",u.error.program=a,u.error.args=n}for(;Xn.readFileSync(D,{encoding:t.encoding}).trim()!=="1";);return(A=Xn.readFileSync(w,{encoding:t.encoding}).trim())==="0"?u.input=T.update(Xn.readFileSync(h,{encoding:"binary"}),"hex",t.encoding)+T.final(t.encoding):(p=Xn.readFileSync(E,{encoding:t.encoding}).trim(),u.error=new Error(Ome+(p?` `+p:"")),u.error.method="_execFileSync",u.error.program=a,u.error.args=n,u.error.extMessage=p,u.error.exitCode=+A),Xn.unlinkSync(h),Xn.unlinkSync(E),Xn.unlinkSync(w),Xn.unlinkSync(D),u}function jgt(t){var e,r={},o,a={env:process.env,encoding:t.encoding};if(Nh||($g?process.env.PSModulePath?(Nh="powershell.exe",XQ=["-ExecutionPolicy","Bypass","-File",__dirname+"\\read.ps1"]):(Nh="cscript.exe",XQ=["//nologo",__dirname+"\\read.cs.js"]):(Nh="/bin/sh",XQ=[__dirname+"/read.sh"])),$g&&!process.env.PSModulePath&&(a.stdio=[process.stdin]),zH.execFileSync){e=Ume(t),G2&&G2("execFileSync",e);try{r.input=zH.execFileSync(Nh,e,a)}catch(n){o=n.stderr?(n.stderr+"").trim():"",r.error=new Error(Ome+(o?` diff --git a/.yarnrc.yml b/.yarnrc.yml index 8d23679c8e..49efa26f7c 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -6,4 +6,4 @@ enableGlobalCache: false nodeLinker: node-modules -yarnPath: .yarn/releases/yarn-4.8.0.cjs +yarnPath: .yarn/releases/yarn-4.8.1.cjs diff --git a/package.json b/package.json index 4c94b742f4..ebd8a8d83b 100644 --- a/package.json +++ b/package.json @@ -244,5 +244,5 @@ "globals": "16.0.0", "tslib": "2.8.1" }, - "packageManager": "yarn@4.8.0" + "packageManager": "yarn@4.8.1" }