diff --git a/.pnp.cjs b/.pnp.cjs index fa21ff0c..6486d129 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -1272,7 +1272,7 @@ const RAW_RUNTIME_STATE = ["@rollup/plugin-commonjs", "virtual:341920ae91697cec1706201e0cf77b15fe6a80313611d53aeb2f9ae6aa2523545876ae1d0d6a9c20647f88c899540110d7546678b1d839d840fb5fd53ebb8498#npm:25.0.8"],\ ["@rollup/plugin-json", "virtual:341920ae91697cec1706201e0cf77b15fe6a80313611d53aeb2f9ae6aa2523545876ae1d0d6a9c20647f88c899540110d7546678b1d839d840fb5fd53ebb8498#npm:6.1.0"],\ ["@rollup/plugin-node-resolve", "virtual:341920ae91697cec1706201e0cf77b15fe6a80313611d53aeb2f9ae6aa2523545876ae1d0d6a9c20647f88c899540110d7546678b1d839d840fb5fd53ebb8498#npm:15.2.3"],\ - ["@rollup/plugin-replace", "virtual:fddca280abd8b5379f88f9ba48723e07900c5bd703647a567be9e72ab59557f8b0439163b3330f7e7435934d12fdfea99f22ec539a10ae124cd21836535e9a74#npm:5.0.5"],\ + ["@rollup/plugin-replace", "virtual:fddca280abd8b5379f88f9ba48723e07900c5bd703647a567be9e72ab59557f8b0439163b3330f7e7435934d12fdfea99f22ec539a10ae124cd21836535e9a74#npm:5.0.7"],\ ["@types/node", "npm:22.5.1"],\ ["builtin-modules", "npm:3.3.0"],\ ["esbuild", "npm:0.19.12"],\ @@ -1317,7 +1317,7 @@ const RAW_RUNTIME_STATE = ["@rollup/plugin-commonjs", "virtual:341920ae91697cec1706201e0cf77b15fe6a80313611d53aeb2f9ae6aa2523545876ae1d0d6a9c20647f88c899540110d7546678b1d839d840fb5fd53ebb8498#npm:25.0.8"],\ ["@rollup/plugin-json", "virtual:341920ae91697cec1706201e0cf77b15fe6a80313611d53aeb2f9ae6aa2523545876ae1d0d6a9c20647f88c899540110d7546678b1d839d840fb5fd53ebb8498#npm:6.1.0"],\ ["@rollup/plugin-node-resolve", "virtual:341920ae91697cec1706201e0cf77b15fe6a80313611d53aeb2f9ae6aa2523545876ae1d0d6a9c20647f88c899540110d7546678b1d839d840fb5fd53ebb8498#npm:15.2.3"],\ - ["@rollup/plugin-replace", "virtual:763b622b7a006ee8e232d1b5580b2882cf6fcd5b26246b6123da9ea2067eb378cded0faa49576e61db484745a2516cf36cfa68571ece9a6d5d7eaddb415ed842#npm:5.0.7"],\ + ["@rollup/plugin-replace", "virtual:fddca280abd8b5379f88f9ba48723e07900c5bd703647a567be9e72ab59557f8b0439163b3330f7e7435934d12fdfea99f22ec539a10ae124cd21836535e9a74#npm:5.0.7"],\ ["@types/node", "npm:22.5.1"],\ ["esbuild", "npm:0.19.12"],\ ["rollup", "npm:3.29.4"],\ @@ -1607,7 +1607,7 @@ const RAW_RUNTIME_STATE = ["@types/node", "npm:22.5.1"],\ ["js-yaml", "npm:4.1.0"],\ ["rimraf", "npm:5.0.10"],\ - ["semver", "npm:7.5.4"],\ + ["semver", "npm:7.6.3"],\ ["strip-json-comments", "npm:3.1.1"],\ ["typescript", "patch:typescript@npm%3A5.4.2#optional!builtin::version=5.4.2&hash=5adc0c"]\ ],\ @@ -5299,13 +5299,6 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["@rollup/plugin-replace", [\ - ["npm:5.0.5", {\ - "packageLocation": "./.yarn/cache/@rollup-plugin-replace-npm-5.0.5-42f61be6e8-bcf106346f.zip/node_modules/@rollup/plugin-replace/",\ - "packageDependencies": [\ - ["@rollup/plugin-replace", "npm:5.0.5"]\ - ],\ - "linkType": "SOFT"\ - }],\ ["npm:5.0.7", {\ "packageLocation": "./.yarn/cache/@rollup-plugin-replace-npm-5.0.7-def496da76-1f0a26fe13.zip/node_modules/@rollup/plugin-replace/",\ "packageDependencies": [\ @@ -5313,25 +5306,10 @@ const RAW_RUNTIME_STATE = ],\ "linkType": "SOFT"\ }],\ - ["virtual:763b622b7a006ee8e232d1b5580b2882cf6fcd5b26246b6123da9ea2067eb378cded0faa49576e61db484745a2516cf36cfa68571ece9a6d5d7eaddb415ed842#npm:5.0.7", {\ - "packageLocation": "./.yarn/__virtual__/@rollup-plugin-replace-virtual-0c2f6a2fd0/0/cache/@rollup-plugin-replace-npm-5.0.7-def496da76-1f0a26fe13.zip/node_modules/@rollup/plugin-replace/",\ - "packageDependencies": [\ - ["@rollup/plugin-replace", "virtual:763b622b7a006ee8e232d1b5580b2882cf6fcd5b26246b6123da9ea2067eb378cded0faa49576e61db484745a2516cf36cfa68571ece9a6d5d7eaddb415ed842#npm:5.0.7"],\ - ["@rollup/pluginutils", "virtual:ff91082e47a1f927ffdc9437948dca9470bd056fb7fb51ab7a0f1d9702799afb2cd66a0e251968d49721ae27670f4d8eef784811e3b2b8ef3c00ea0653a4b5c6#npm:5.1.0"],\ - ["@types/rollup", null],\ - ["magic-string", "npm:0.30.11"],\ - ["rollup", "npm:3.29.4"]\ - ],\ - "packagePeers": [\ - "@types/rollup",\ - "rollup"\ - ],\ - "linkType": "HARD"\ - }],\ - ["virtual:fddca280abd8b5379f88f9ba48723e07900c5bd703647a567be9e72ab59557f8b0439163b3330f7e7435934d12fdfea99f22ec539a10ae124cd21836535e9a74#npm:5.0.5", {\ - "packageLocation": "./.yarn/__virtual__/@rollup-plugin-replace-virtual-c3202d3e30/0/cache/@rollup-plugin-replace-npm-5.0.5-42f61be6e8-bcf106346f.zip/node_modules/@rollup/plugin-replace/",\ + ["virtual:fddca280abd8b5379f88f9ba48723e07900c5bd703647a567be9e72ab59557f8b0439163b3330f7e7435934d12fdfea99f22ec539a10ae124cd21836535e9a74#npm:5.0.7", {\ + "packageLocation": "./.yarn/__virtual__/@rollup-plugin-replace-virtual-6c042d6b0d/0/cache/@rollup-plugin-replace-npm-5.0.7-def496da76-1f0a26fe13.zip/node_modules/@rollup/plugin-replace/",\ "packageDependencies": [\ - ["@rollup/plugin-replace", "virtual:fddca280abd8b5379f88f9ba48723e07900c5bd703647a567be9e72ab59557f8b0439163b3330f7e7435934d12fdfea99f22ec539a10ae124cd21836535e9a74#npm:5.0.5"],\ + ["@rollup/plugin-replace", "virtual:fddca280abd8b5379f88f9ba48723e07900c5bd703647a567be9e72ab59557f8b0439163b3330f7e7435934d12fdfea99f22ec539a10ae124cd21836535e9a74#npm:5.0.7"],\ ["@rollup/pluginutils", "virtual:ff91082e47a1f927ffdc9437948dca9470bd056fb7fb51ab7a0f1d9702799afb2cd66a0e251968d49721ae27670f4d8eef784811e3b2b8ef3c00ea0653a4b5c6#npm:5.1.0"],\ ["@types/rollup", null],\ ["magic-string", "npm:0.30.11"],\ @@ -15003,14 +14981,6 @@ const RAW_RUNTIME_STATE = ["yallist", "npm:3.1.1"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:6.0.0", {\ - "packageLocation": "./.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-fc1fe2ee20.zip/node_modules/lru-cache/",\ - "packageDependencies": [\ - ["lru-cache", "npm:6.0.0"],\ - ["yallist", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["magic-string", [\ @@ -17000,14 +16970,6 @@ const RAW_RUNTIME_STATE = ],\ "linkType": "HARD"\ }],\ - ["npm:7.5.4", {\ - "packageLocation": "./.yarn/cache/semver-npm-7.5.4-c4ad957fcd-985dec0d37.zip/node_modules/semver/",\ - "packageDependencies": [\ - ["semver", "npm:7.5.4"],\ - ["lru-cache", "npm:6.0.0"]\ - ],\ - "linkType": "HARD"\ - }],\ ["npm:7.6.3", {\ "packageLocation": "./.yarn/cache/semver-npm-7.6.3-57e82c14d5-36b1fbe1a2.zip/node_modules/semver/",\ "packageDependencies": [\ diff --git a/.yarn/cache/@rollup-plugin-replace-npm-5.0.5-42f61be6e8-bcf106346f.zip b/.yarn/cache/@rollup-plugin-replace-npm-5.0.5-42f61be6e8-bcf106346f.zip deleted file mode 100644 index f4b8ef01..00000000 Binary files a/.yarn/cache/@rollup-plugin-replace-npm-5.0.5-42f61be6e8-bcf106346f.zip and /dev/null differ diff --git a/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-fc1fe2ee20.zip b/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-fc1fe2ee20.zip deleted file mode 100644 index 0c4b9d6b..00000000 Binary files a/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-fc1fe2ee20.zip and /dev/null differ diff --git a/.yarn/cache/semver-npm-7.5.4-c4ad957fcd-985dec0d37.zip b/.yarn/cache/semver-npm-7.5.4-c4ad957fcd-985dec0d37.zip deleted file mode 100644 index ac8c8ea5..00000000 Binary files a/.yarn/cache/semver-npm-7.5.4-c4ad957fcd-985dec0d37.zip and /dev/null differ diff --git a/.yarn/releases/yarn.cjs b/.yarn/releases/yarn.cjs index 50f2cf5a..b647ba49 100755 --- a/.yarn/releases/yarn.cjs +++ b/.yarn/releases/yarn.cjs @@ -168,7 +168,7 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);L(oe)}return `),et.end()}),et});break;case"<&":L(()=>nDr(Number(t[Te]),tT.Readable,n));break;case">":case">>":{let et=D5.ppath.resolve(n.cwd,D5.npath.toPortablePath(t[Te]));oe(et==="/dev/null"?new o3.Writable({autoDestroy:!0,emitClose:!0,write(at,Ft,Bt){setImmediate(Bt)}}):e.baseFs.createWriteStream(et,G===">>"?{flags:"a"}:void 0))}break;case">&":oe(nDr(Number(t[Te]),tT.Writable,n));break;default:throw new Error(`Assertion failed: Unsupported redirection type: "${G}"`)}}if(p.length>0){let P=new o3.PassThrough;o=P;let G=K=>{if(K===p.length)P.end();else{let L=p[K]();L.pipe(P,{end:!1}),L.on("end",()=>{G(K+1)})}};G(0)}if(_.length>0){let P=new o3.PassThrough;c=P;for(let G of _)P.pipe(G)}if(C.length>0){let P=new o3.PassThrough;a=P;for(let G of C)P.pipe(G)}let D=await(0,H2.start)(N2e(t.slice(v+1),e,n),{stdin:new H2.ProtectedStream(o),stdout:new H2.ProtectedStream(c),stderr:new H2.ProtectedStream(a)}).run();return await Promise.all(_.map(P=>new Promise((G,K)=>{P.on("error",L=>{K(L)}),P.on("close",()=>{G()}),P.end()}))),await Promise.all(C.map(P=>new Promise((G,K)=>{P.on("error",L=>{K(L)}),P.on("close",()=>{G()}),P.end()}))),D}]]);async function rOi(t,e,n){let o=[],c=new o3.PassThrough;return c.on("data",a=>o.push(a)),await AGe(t,e,fGe(n,{stdout:c})),Buffer.concat(o).toString().replace(/[\r\n]+$/,"")}async function iDr(t,e,n){let o=t.map(async a=>{let p=await xne(a.args,e,n);return{name:a.name,value:p.join(" ")}});return(await Promise.all(o)).reduce((a,p)=>(a[p.name]=p.value,a),{})}function uGe(t){return t.match(/[^ \r\n\t]+/g)||[]}async function cDr(t,e,n,o,c=o){switch(t.name){case"$":o(String(process.pid));break;case"#":o(String(e.args.length));break;case"@":if(t.quoted)for(let a of e.args)c(a);else for(let a of e.args){let p=uGe(a);for(let _=0;_=0&&a"u"&&(t.defaultValue?p=(await xne(t.defaultValue,e,n)).join(" "):t.alternativeValue&&(p="")),typeof p>"u")throw _?new T5.ShellError(`Unbound argument #${a}`):new T5.ShellError(`Unbound variable "${t.name}"`);if(t.quoted)o(p);else{let C=uGe(p);for(let D=0;Dt+e,subtraction:(t,e)=>t-e,multiplication:(t,e)=>t*e,division:(t,e)=>Math.trunc(t/e)};async function Q2e(t,e,n){if(t.type==="number"){if(Number.isInteger(t.value))return t.value;throw new Error(`Invalid number: "${t.value}", only integers are allowed`)}else if(t.type==="variable"){let o=[];await cDr({...t,quoted:!0},e,n,a=>o.push(a));let c=Number(o.join(" "));return Number.isNaN(c)?Q2e({type:"variable",name:o.join(" ")},e,n):Q2e({type:"number",value:c},e,n)}else return nOi[t.type](await Q2e(t.left,e,n),await Q2e(t.right,e,n))}async function xne(t,e,n){let o=new Map,c=[],a=[],p=D=>{a.push(D)},_=()=>{a.length>0&&c.push(a.join("")),a=[]},C=D=>{p(D),_()},v=(D,P,G)=>{let K=JSON.stringify({type:D,fd:P}),L=o.get(K);typeof L>"u"&&o.set(K,L=[]),L.push(G)};for(let D of t){let P=!1;switch(D.type){case"redirection":{let G=await xne(D.args,e,n);for(let K of G)v(D.subtype,D.fd,K)}break;case"argument":for(let G of D.segments)switch(G.type){case"text":p(G.text);break;case"glob":p(G.pattern),P=!0;break;case"shell":{let K=await rOi(G.shell,e,n);if(G.quoted)p(K);else{let L=uGe(K);for(let oe=0;oe"u")throw new Error("Assertion failed: Expected a glob pattern to have been set");let K=await e.glob.match(G,{cwd:n.cwd,baseFs:e.baseFs});if(K.length===0){let L=GSt.isBraceExpansion(G)?". Note: Brace expansion of arbitrary strings isn't currently supported. For more details, please read this issue: https://github.com/yarnpkg/berry/issues/22":"";throw new T5.ShellError(`No matches found: "${G}"${L}`)}for(let L of K.sort())C(L)}}if(o.size>0){let D=[];for(let[P,G]of o.entries())D.splice(D.length,0,P,String(G.length),...G);c.splice(0,0,"__ysh_set_redirects",...D,"--")}return c}function N2e(t,e,n){e.builtins.has(t[0])||(t=["command",...t]);let o=D5.npath.fromPortablePath(n.cwd),c=n.environment;typeof c.PWD<"u"&&(c={...c,PWD:o});let[a,...p]=t;if(a==="command")return(0,USt.makeProcess)(p[0],p.slice(1),e,{cwd:o,env:c});let _=e.builtins.get(a);if(typeof _>"u")throw new Error(`Assertion failed: A builtin should exist for "${a}"`);return(0,USt.makeBuiltin)(async({stdin:C,stdout:v,stderr:D})=>{let{stdin:P,stdout:G,stderr:K}=n;n.stdin=C,n.stdout=v,n.stderr=D;try{return await _(p,e,n)}finally{n.stdin=P,n.stdout=G,n.stderr=K}})}function iOi(t,e,n){return o=>{let c=new o3.PassThrough,a=AGe(t,e,fGe(n,{stdin:c}));return{stdin:c,promise:a}}}function sOi(t,e,n){return o=>{let c=new o3.PassThrough,a=AGe(t,e,n);return{stdin:c,promise:a}}}function sDr(t,e,n,o){if(e.length===0)return t;{let c;do c=String(Math.random());while(Object.hasOwn(o.procedures,c));return o.procedures={...o.procedures},o.procedures[c]=t,N2e([...e,"__ysh_run_procedure",c],n,o)}}async function oDr(t,e,n){let o=t,c=null,a=null;for(;o;){let p=o.then?{...n}:n,_;switch(o.type){case"command":{let C=await xne(o.args,e,n),v=await iDr(o.envs,e,n);_=o.envs.length?N2e(C,e,fGe(p,{environment:v})):N2e(C,e,p)}break;case"subshell":{let C=await xne(o.args,e,n),v=iOi(o.subshell,e,p);_=sDr(v,C,e,p)}break;case"group":{let C=await xne(o.args,e,n),v=sOi(o.group,e,p);_=sDr(v,C,e,p)}break;case"envs":{let C=await iDr(o.envs,e,n);p.environment={...p.environment,...C},_=N2e(["true"],e,p)}break}if(typeof _>"u")throw new Error("Assertion failed: An action should have been generated");if(c===null)a=(0,H2.start)(_,{stdin:new H2.ProtectedStream(p.stdin),stdout:new H2.ProtectedStream(p.stdout),stderr:new H2.ProtectedStream(p.stderr)});else{if(a===null)throw new Error("Assertion failed: The execution pipeline should have been setup");switch(c){case"|":a=a.pipeTo(_,H2.Pipe.STDOUT);break;case"|&":a=a.pipeTo(_,H2.Pipe.STDOUT|H2.Pipe.STDERR);break}}o.then?(c=o.then.type,o=o.then.chain):o=null}if(a===null)throw new Error("Assertion failed: The execution pipeline should have been setup");return await a.run()}async function oOi(t,e,n,{background:o=!1}={}){function c(a){let p=["#2E86AB","#A23B72","#F18F01","#C73E1D","#CCE2A3"],_=p[a%p.length];return XLi.default.hex(_)}if(o){let a=n.nextBackgroundJobIndex++,p=c(a),_=`[${a}]`,C=p(_),{stdout:v,stderr:D}=(0,USt.createOutputStreamsWithPrefix)(n,{prefix:C});return n.backgroundJobs.push(oDr(t,e,fGe(n,{stdout:v,stderr:D})).catch(P=>D.write(`${P.message} `)).finally(()=>{n.stdout.isTTY&&n.stdout.write(`Job ${C}, '${p((0,aDr.stringifyCommandChain)(t))}' has ended `)})),0}return await oDr(t,e,n)}async function aOi(t,e,n,{background:o=!1}={}){let c,a=_=>{c=_,n.variables["?"]=String(_)},p=async _=>{try{return await oOi(_.chain,e,n,{background:o&&typeof _.then>"u"})}catch(C){if(!(C instanceof T5.ShellError))throw C;return n.stderr.write(`${C.message} -`),1}};for(a(await p(t));t.then;){if(n.exitCode!==null)return n.exitCode;switch(t.then.type){case"&&":c===0&&a(await p(t.then.line));break;case"||":c!==0&&a(await p(t.then.line));break;default:throw new Error(`Assertion failed: Unsupported command type: "${t.then.type}"`)}t=t.then.line}return c}async function AGe(t,e,n){let o=n.backgroundJobs;n.backgroundJobs=[];let c=0;for(let{command:a,type:p}of t){if(c=await aOi(a,e,n,{background:p==="&"}),n.exitCode!==null)return n.exitCode;n.variables["?"]=String(c)}return await Promise.all(n.backgroundJobs),n.backgroundJobs=o,c}function lDr(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=>R2e(e))||"alternativeValue"in t&&!!t.alternativeValue&&t.alternativeValue.some(e=>R2e(e));case"arithmetic":return qSt(t.arithmetic);case"shell":return HSt(t.shell);default:return!1}}function R2e(t){switch(t.type){case"redirection":return t.args.some(e=>R2e(e));case"argument":return t.segments.some(e=>lDr(e));default:throw new Error(`Assertion failed: Unsupported argument type: "${t.type}"`)}}function qSt(t){switch(t.type){case"variable":return lDr(t);case"number":return!1;default:return qSt(t.left)||qSt(t.right)}}function HSt(t){return t.some(({command:e})=>{for(;e;){let n=e.chain;for(;n;){let o;switch(n.type){case"subshell":o=HSt(n.subshell);break;case"command":o=n.envs.some(c=>c.args.some(a=>R2e(a)))||n.args.some(c=>R2e(c));break}if(o)return!0;if(!n.then)break;n=n.then.chain}if(!e.then)break;e=e.then.line}return!1})}async function cOi(t,e=[],{baseFs:n=new D5.NodeFS,builtins:o={},cwd:c=D5.npath.toPortablePath(process.cwd()),env:a=process.env,stdin:p=process.stdin,stdout:_=process.stdout,stderr:C=process.stderr,variables:v={},glob:D=GSt}={}){let P={};for(let[L,oe]of Object.entries(a))typeof oe<"u"&&(P[L]=oe);let G=new Map(tOi);for(let[L,oe]of Object.entries(o))G.set(L,oe);p===null&&(p=new o3.PassThrough,p.end());let K=(0,aDr.parseShell)(t,D);if(!HSt(K)&&K.length>0&&e.length>0){let{command:L}=K[K.length-1];for(;L.then;)L=L.then.line;let oe=L.chain;for(;oe.then;)oe=oe.then.chain;oe.type==="command"&&(oe.args=oe.args.concat(e.map(ce=>({type:"argument",segments:[{type:"text",text:ce}]}))))}return await AGe(K,{args:e,baseFs:n,builtins:G,initialStdin:p,initialStdout:_,initialStderr:C,glob:D},{cwd:c,environment:P,exitCode:null,procedures:{},stdin:p,stdout:_,stderr:C,variables:Object.assign({},v,{"?":0}),nextBackgroundJobIndex:1,backgroundJobs:[]})}});var JSt=te((cAo,uDr)=>{function lOi(t,e){for(var n=-1,o=t==null?0:t.length,c=Array(o);++n{var fDr=une(),uOi=JSt(),fOi=Z4(),AOi=u2e(),pOi=1/0,ADr=fDr?fDr.prototype:void 0,pDr=ADr?ADr.toString:void 0;function dDr(t){if(typeof t=="string")return t;if(fOi(t))return uOi(t,dDr)+"";if(AOi(t))return pDr?pDr.call(t):"";var e=t+"";return e=="0"&&1/t==-pOi?"-0":e}hDr.exports=dDr});var pGe=te((uAo,mDr)=>{var dOi=gDr();function hOi(t){return t==null?"":dOi(t)}mDr.exports=hOi});var VSt=te((fAo,_Dr)=>{function gOi(t,e,n){var o=-1,c=t.length;e<0&&(e=-e>c?0:c+e),n=n>c?c:n,n<0&&(n+=c),c=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(c);++o{var mOi=VSt();function _Oi(t,e,n){var o=t.length;return n=n===void 0?o:n,!e&&n>=o?t:mOi(t,e,n)}EDr.exports=_Oi});var WSt=te((pAo,CDr)=>{var EOi="\\ud800-\\udfff",yOi="\\u0300-\\u036f",COi="\\ufe20-\\ufe2f",IOi="\\u20d0-\\u20ff",vOi=yOi+COi+IOi,SOi="\\ufe0e\\ufe0f",BOi="\\u200d",wOi=RegExp("["+BOi+EOi+vOi+SOi+"]");function bOi(t){return wOi.test(t)}CDr.exports=bOi});var vDr=te((dAo,IDr)=>{function DOi(t){return t.split("")}IDr.exports=DOi});var kDr=te((hAo,xDr)=>{var SDr="\\ud800-\\udfff",TOi="\\u0300-\\u036f",xOi="\\ufe20-\\ufe2f",kOi="\\u20d0-\\u20ff",QOi=TOi+xOi+kOi,NOi="\\ufe0e\\ufe0f",ROi="["+SDr+"]",YSt="["+QOi+"]",zSt="\\ud83c[\\udffb-\\udfff]",POi="(?:"+YSt+"|"+zSt+")",BDr="[^"+SDr+"]",wDr="(?:\\ud83c[\\udde6-\\uddff]){2}",bDr="[\\ud800-\\udbff][\\udc00-\\udfff]",FOi="\\u200d",DDr=POi+"?",TDr="["+NOi+"]?",LOi="(?:"+FOi+"(?:"+[BDr,wDr,bDr].join("|")+")"+TDr+DDr+")*",OOi=TDr+DDr+LOi,MOi="(?:"+[BDr+YSt+"?",YSt,wDr,bDr,ROi].join("|")+")",UOi=RegExp(zSt+"(?="+zSt+")|"+MOi+OOi,"g");function qOi(t){return t.match(UOi)||[]}xDr.exports=qOi});var NDr=te((gAo,QDr)=>{var jOi=vDr(),GOi=WSt(),HOi=kDr();function JOi(t){return GOi(t)?HOi(t):jOi(t)}QDr.exports=JOi});var PDr=te((mAo,RDr)=>{var VOi=yDr(),WOi=WSt(),YOi=NDr(),zOi=pGe();function KOi(t){return function(e){e=zOi(e);var n=WOi(e)?YOi(e):void 0,o=n?n[0]:e.charAt(0),c=n?VOi(n,1).join(""):e.slice(1);return o[t]()+c}}RDr.exports=KOi});var LDr=te((_Ao,FDr)=>{var XOi=PDr(),ZOi=XOi("toUpperCase");FDr.exports=ZOi});var KSt=te((EAo,ODr)=>{var $Oi=pGe(),eMi=LDr();function tMi(t){return eMi($Oi(t).toLowerCase())}ODr.exports=tMi});var MDr=te((yAo,dGe)=>{function rMi(){var t=0,e=1,n=2,o=3,c=4,a=5,p=6,_=7,C=8,v=9,D=10,P=11,G=12,K=13,L=14,oe=15,ce=16,pe=17,Te=0,et=1,at=2,Ft=3,Bt=4;function Rt(R,yr){return 55296<=R.charCodeAt(yr)&&R.charCodeAt(yr)<=56319&&56320<=R.charCodeAt(yr+1)&&R.charCodeAt(yr+1)<=57343}function rr(R,yr){yr===void 0&&(yr=0);var cr=R.charCodeAt(yr);if(55296<=cr&&cr<=56319&&yr=1){var ft=R.charCodeAt(yr-1),Kt=cr;return 55296<=ft&&ft<=56319?(ft-55296)*1024+(Kt-56320)+65536:Kt}return cr}function nr(R,yr,cr){var ft=[R].concat(yr).concat([cr]),Kt=ft[ft.length-2],jt=cr,wn=ft.lastIndexOf(L);if(wn>1&&ft.slice(1,wn).every(function(as){return as==o})&&[o,K,pe].indexOf(R)==-1)return at;var Wr=ft.lastIndexOf(c);if(Wr>0&&ft.slice(1,Wr).every(function(as){return as==c})&&[G,c].indexOf(Kt)==-1)return ft.filter(function(as){return as==c}).length%2==1?Ft:Bt;if(Kt==t&&jt==e)return Te;if(Kt==n||Kt==t||Kt==e)return jt==L&&yr.every(function(as){return as==o})?at:et;if(jt==n||jt==t||jt==e)return et;if(Kt==p&&(jt==p||jt==_||jt==v||jt==D))return Te;if((Kt==v||Kt==_)&&(jt==_||jt==C))return Te;if((Kt==D||Kt==C)&&jt==C)return Te;if(jt==o||jt==oe)return Te;if(jt==a)return Te;if(Kt==G)return Te;var Ai=ft.indexOf(o)!=-1?ft.lastIndexOf(o)-1:ft.length-2;return[K,pe].indexOf(ft[Ai])!=-1&&ft.slice(Ai+1,-1).every(function(as){return as==o})&&jt==L||Kt==oe&&[ce,pe].indexOf(jt)!=-1?Te:yr.indexOf(c)!=-1?at:Kt==c&&jt==c?Te:et}this.nextBreak=function(R,yr){if(yr===void 0&&(yr=0),yr<0)return 0;if(yr>=R.length-1)return R.length;for(var cr=wr(rr(R,yr)),ft=[],Kt=yr+1;Kt{var nMi=/^(.*?)(\x1b\[[^m]+m|\x1b\]8;;.*?(\x1b\\|\u0007))/,hGe;function iMi(){if(hGe)return hGe;if(typeof Intl.Segmenter<"u"){let t=new Intl.Segmenter("en",{granularity:"grapheme"});return hGe=e=>Array.from(t.segment(e),({segment:n})=>n)}else{let t=MDr(),e=new t;return hGe=n=>e.splitGraphemes(n)}}UDr.exports=(t,e=0,n=t.length)=>{if(e<0||n<0)throw new RangeError("Negative indices aren't supported by this implementation");let o=n-e,c="",a=0,p=0;for(;t.length>0;){let _=t.match(nMi)||[t,t,void 0],C=iMi()(_[1]),v=Math.min(e-a,C.length);C=C.slice(v);let D=Math.min(o-p,C.length);c+=C.slice(0,D).join(""),a+=v,p+=D,typeof _[2]<"u"&&(c+=_[2]),t=t.slice(_[0].length)}return c}});var P2e=te(gGe=>{"use strict";Object.defineProperty(gGe,"__esModule",{value:!0});gGe.YarnVersion=void 0;gGe.YarnVersion=process.env.YARN_IS_TEST_ENV?"0.0.0":"1.0.0-git.20240831.hash-a2d39bd4"});var F2e=te(XL=>{"use strict";Object.defineProperty(XL,"__esModule",{value:!0});XL.StreamReport=XL.SUPPORTS_GROUPS=XL.SINGLE_LINE_CHAR=void 0;XL.formatName=$St;XL.formatNameWithHyperlink=JDr;XL.reportOptionDeprecations=fMi;var ZSt=(po(),hn(Ao)),sMi=ZSt.__importDefault(qDr()),XSt=ZSt.__importDefault(ine()),x5=PQ(),oMi=jL(),aMi=P2e(),a3=ZSt.__importStar(ML());XL.SINGLE_LINE_CHAR="\xB7";var jDr=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],GDr=80,bz=XSt.default.GITHUB_ACTIONS?{start:t=>`::group::${t} +`),1}};for(a(await p(t));t.then;){if(n.exitCode!==null)return n.exitCode;switch(t.then.type){case"&&":c===0&&a(await p(t.then.line));break;case"||":c!==0&&a(await p(t.then.line));break;default:throw new Error(`Assertion failed: Unsupported command type: "${t.then.type}"`)}t=t.then.line}return c}async function AGe(t,e,n){let o=n.backgroundJobs;n.backgroundJobs=[];let c=0;for(let{command:a,type:p}of t){if(c=await aOi(a,e,n,{background:p==="&"}),n.exitCode!==null)return n.exitCode;n.variables["?"]=String(c)}return await Promise.all(n.backgroundJobs),n.backgroundJobs=o,c}function lDr(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=>R2e(e))||"alternativeValue"in t&&!!t.alternativeValue&&t.alternativeValue.some(e=>R2e(e));case"arithmetic":return qSt(t.arithmetic);case"shell":return HSt(t.shell);default:return!1}}function R2e(t){switch(t.type){case"redirection":return t.args.some(e=>R2e(e));case"argument":return t.segments.some(e=>lDr(e));default:throw new Error(`Assertion failed: Unsupported argument type: "${t.type}"`)}}function qSt(t){switch(t.type){case"variable":return lDr(t);case"number":return!1;default:return qSt(t.left)||qSt(t.right)}}function HSt(t){return t.some(({command:e})=>{for(;e;){let n=e.chain;for(;n;){let o;switch(n.type){case"subshell":o=HSt(n.subshell);break;case"command":o=n.envs.some(c=>c.args.some(a=>R2e(a)))||n.args.some(c=>R2e(c));break}if(o)return!0;if(!n.then)break;n=n.then.chain}if(!e.then)break;e=e.then.line}return!1})}async function cOi(t,e=[],{baseFs:n=new D5.NodeFS,builtins:o={},cwd:c=D5.npath.toPortablePath(process.cwd()),env:a=process.env,stdin:p=process.stdin,stdout:_=process.stdout,stderr:C=process.stderr,variables:v={},glob:D=GSt}={}){let P={};for(let[L,oe]of Object.entries(a))typeof oe<"u"&&(P[L]=oe);let G=new Map(tOi);for(let[L,oe]of Object.entries(o))G.set(L,oe);p===null&&(p=new o3.PassThrough,p.end());let K=(0,aDr.parseShell)(t,D);if(!HSt(K)&&K.length>0&&e.length>0){let{command:L}=K[K.length-1];for(;L.then;)L=L.then.line;let oe=L.chain;for(;oe.then;)oe=oe.then.chain;oe.type==="command"&&(oe.args=oe.args.concat(e.map(ce=>({type:"argument",segments:[{type:"text",text:ce}]}))))}return await AGe(K,{args:e,baseFs:n,builtins:G,initialStdin:p,initialStdout:_,initialStderr:C,glob:D},{cwd:c,environment:P,exitCode:null,procedures:{},stdin:p,stdout:_,stderr:C,variables:Object.assign({},v,{"?":0}),nextBackgroundJobIndex:1,backgroundJobs:[]})}});var JSt=te((cAo,uDr)=>{function lOi(t,e){for(var n=-1,o=t==null?0:t.length,c=Array(o);++n{var fDr=une(),uOi=JSt(),fOi=Z4(),AOi=u2e(),pOi=1/0,ADr=fDr?fDr.prototype:void 0,pDr=ADr?ADr.toString:void 0;function dDr(t){if(typeof t=="string")return t;if(fOi(t))return uOi(t,dDr)+"";if(AOi(t))return pDr?pDr.call(t):"";var e=t+"";return e=="0"&&1/t==-pOi?"-0":e}hDr.exports=dDr});var pGe=te((uAo,mDr)=>{var dOi=gDr();function hOi(t){return t==null?"":dOi(t)}mDr.exports=hOi});var VSt=te((fAo,_Dr)=>{function gOi(t,e,n){var o=-1,c=t.length;e<0&&(e=-e>c?0:c+e),n=n>c?c:n,n<0&&(n+=c),c=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(c);++o{var mOi=VSt();function _Oi(t,e,n){var o=t.length;return n=n===void 0?o:n,!e&&n>=o?t:mOi(t,e,n)}EDr.exports=_Oi});var WSt=te((pAo,CDr)=>{var EOi="\\ud800-\\udfff",yOi="\\u0300-\\u036f",COi="\\ufe20-\\ufe2f",IOi="\\u20d0-\\u20ff",vOi=yOi+COi+IOi,SOi="\\ufe0e\\ufe0f",BOi="\\u200d",wOi=RegExp("["+BOi+EOi+vOi+SOi+"]");function bOi(t){return wOi.test(t)}CDr.exports=bOi});var vDr=te((dAo,IDr)=>{function DOi(t){return t.split("")}IDr.exports=DOi});var kDr=te((hAo,xDr)=>{var SDr="\\ud800-\\udfff",TOi="\\u0300-\\u036f",xOi="\\ufe20-\\ufe2f",kOi="\\u20d0-\\u20ff",QOi=TOi+xOi+kOi,NOi="\\ufe0e\\ufe0f",ROi="["+SDr+"]",YSt="["+QOi+"]",zSt="\\ud83c[\\udffb-\\udfff]",POi="(?:"+YSt+"|"+zSt+")",BDr="[^"+SDr+"]",wDr="(?:\\ud83c[\\udde6-\\uddff]){2}",bDr="[\\ud800-\\udbff][\\udc00-\\udfff]",FOi="\\u200d",DDr=POi+"?",TDr="["+NOi+"]?",LOi="(?:"+FOi+"(?:"+[BDr,wDr,bDr].join("|")+")"+TDr+DDr+")*",OOi=TDr+DDr+LOi,MOi="(?:"+[BDr+YSt+"?",YSt,wDr,bDr,ROi].join("|")+")",UOi=RegExp(zSt+"(?="+zSt+")|"+MOi+OOi,"g");function qOi(t){return t.match(UOi)||[]}xDr.exports=qOi});var NDr=te((gAo,QDr)=>{var jOi=vDr(),GOi=WSt(),HOi=kDr();function JOi(t){return GOi(t)?HOi(t):jOi(t)}QDr.exports=JOi});var PDr=te((mAo,RDr)=>{var VOi=yDr(),WOi=WSt(),YOi=NDr(),zOi=pGe();function KOi(t){return function(e){e=zOi(e);var n=WOi(e)?YOi(e):void 0,o=n?n[0]:e.charAt(0),c=n?VOi(n,1).join(""):e.slice(1);return o[t]()+c}}RDr.exports=KOi});var LDr=te((_Ao,FDr)=>{var XOi=PDr(),ZOi=XOi("toUpperCase");FDr.exports=ZOi});var KSt=te((EAo,ODr)=>{var $Oi=pGe(),eMi=LDr();function tMi(t){return eMi($Oi(t).toLowerCase())}ODr.exports=tMi});var MDr=te((yAo,dGe)=>{function rMi(){var t=0,e=1,n=2,o=3,c=4,a=5,p=6,_=7,C=8,v=9,D=10,P=11,G=12,K=13,L=14,oe=15,ce=16,pe=17,Te=0,et=1,at=2,Ft=3,Bt=4;function Rt(R,yr){return 55296<=R.charCodeAt(yr)&&R.charCodeAt(yr)<=56319&&56320<=R.charCodeAt(yr+1)&&R.charCodeAt(yr+1)<=57343}function rr(R,yr){yr===void 0&&(yr=0);var cr=R.charCodeAt(yr);if(55296<=cr&&cr<=56319&&yr=1){var ft=R.charCodeAt(yr-1),Kt=cr;return 55296<=ft&&ft<=56319?(ft-55296)*1024+(Kt-56320)+65536:Kt}return cr}function nr(R,yr,cr){var ft=[R].concat(yr).concat([cr]),Kt=ft[ft.length-2],jt=cr,wn=ft.lastIndexOf(L);if(wn>1&&ft.slice(1,wn).every(function(as){return as==o})&&[o,K,pe].indexOf(R)==-1)return at;var Wr=ft.lastIndexOf(c);if(Wr>0&&ft.slice(1,Wr).every(function(as){return as==c})&&[G,c].indexOf(Kt)==-1)return ft.filter(function(as){return as==c}).length%2==1?Ft:Bt;if(Kt==t&&jt==e)return Te;if(Kt==n||Kt==t||Kt==e)return jt==L&&yr.every(function(as){return as==o})?at:et;if(jt==n||jt==t||jt==e)return et;if(Kt==p&&(jt==p||jt==_||jt==v||jt==D))return Te;if((Kt==v||Kt==_)&&(jt==_||jt==C))return Te;if((Kt==D||Kt==C)&&jt==C)return Te;if(jt==o||jt==oe)return Te;if(jt==a)return Te;if(Kt==G)return Te;var Ai=ft.indexOf(o)!=-1?ft.lastIndexOf(o)-1:ft.length-2;return[K,pe].indexOf(ft[Ai])!=-1&&ft.slice(Ai+1,-1).every(function(as){return as==o})&&jt==L||Kt==oe&&[ce,pe].indexOf(jt)!=-1?Te:yr.indexOf(c)!=-1?at:Kt==c&&jt==c?Te:et}this.nextBreak=function(R,yr){if(yr===void 0&&(yr=0),yr<0)return 0;if(yr>=R.length-1)return R.length;for(var cr=wr(rr(R,yr)),ft=[],Kt=yr+1;Kt{var nMi=/^(.*?)(\x1b\[[^m]+m|\x1b\]8;;.*?(\x1b\\|\u0007))/,hGe;function iMi(){if(hGe)return hGe;if(typeof Intl.Segmenter<"u"){let t=new Intl.Segmenter("en",{granularity:"grapheme"});return hGe=e=>Array.from(t.segment(e),({segment:n})=>n)}else{let t=MDr(),e=new t;return hGe=n=>e.splitGraphemes(n)}}UDr.exports=(t,e=0,n=t.length)=>{if(e<0||n<0)throw new RangeError("Negative indices aren't supported by this implementation");let o=n-e,c="",a=0,p=0;for(;t.length>0;){let _=t.match(nMi)||[t,t,void 0],C=iMi()(_[1]),v=Math.min(e-a,C.length);C=C.slice(v);let D=Math.min(o-p,C.length);c+=C.slice(0,D).join(""),a+=v,p+=D,typeof _[2]<"u"&&(c+=_[2]),t=t.slice(_[0].length)}return c}});var P2e=te(gGe=>{"use strict";Object.defineProperty(gGe,"__esModule",{value:!0});gGe.YarnVersion=void 0;gGe.YarnVersion=process.env.YARN_IS_TEST_ENV?"0.0.0":"1.0.0-git.20240831.hash-7670d055"});var F2e=te(XL=>{"use strict";Object.defineProperty(XL,"__esModule",{value:!0});XL.StreamReport=XL.SUPPORTS_GROUPS=XL.SINGLE_LINE_CHAR=void 0;XL.formatName=$St;XL.formatNameWithHyperlink=JDr;XL.reportOptionDeprecations=fMi;var ZSt=(po(),hn(Ao)),sMi=ZSt.__importDefault(qDr()),XSt=ZSt.__importDefault(ine()),x5=PQ(),oMi=jL(),aMi=P2e(),a3=ZSt.__importStar(ML());XL.SINGLE_LINE_CHAR="\xB7";var jDr=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],GDr=80,bz=XSt.default.GITHUB_ACTIONS?{start:t=>`::group::${t} `,end:t=>`::endgroup:: `}:XSt.default.TRAVIS?{start:t=>`travis_fold:start:${t} `,end:t=>`travis_fold:end:${t} diff --git a/code/code-schematics-worker/package.json b/code/code-schematics-worker/package.json index 11467e54..dc089b07 100644 --- a/code/code-schematics-worker/package.json +++ b/code/code-schematics-worker/package.json @@ -26,7 +26,7 @@ "@rollup/plugin-commonjs": "25.0.8", "@rollup/plugin-json": "6.1.0", "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-replace": "5.0.5", + "@rollup/plugin-replace": "5.0.7", "@types/node": "22.5.1", "builtin-modules": "3.3.0", "esbuild": "^0.19.9", diff --git a/package.json b/package.json index 4c4ed782..35822c85 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "@yarnpkg/core@^4.0.0-rc.45": "patch:@yarnpkg/core@npm%3A4.0.0-rc.43#./.yarn/patches/@yarnpkg-core-npm-4.0.0-rc.42-029d9f8b24.patch", "flatted@npm:^3.2.7": "patch:flatted@npm%3A3.2.7#./.yarn/patches/flatted-npm-3.2.7-0da10b7c56.patch", "ink": "3.2.0", - "sort-package-json@^2.4.1": "patch:sort-package-json@npm%3A2.4.1#./.yarn/patches/sort-package-json-npm-2.4.1-8ff012947f.patch" + "sort-package-json@2.4.1": "patch:sort-package-json@npm%3A2.4.1#./.yarn/patches/sort-package-json-npm-2.4.1-8ff012947f.patch" }, "devDependencies": { "@atls/code-runtime": "workspace:*", diff --git a/prettier/plugin/package.json b/prettier/plugin/package.json index c6d58fcc..ab3950cc 100644 --- a/prettier/plugin/package.json +++ b/prettier/plugin/package.json @@ -23,7 +23,7 @@ "import-sort-parser-typescript": "6.0.0", "import-sort-style": "6.0.0", "prettier": "3.3.3", - "sort-package-json": "^2.4.1" + "sort-package-json": "2.4.1" }, "devDependencies": { "@babel/types": "7.25.6", diff --git a/schematics/schematics-utils/package.json b/schematics/schematics-utils/package.json index 3f7665b1..c86b2926 100644 --- a/schematics/schematics-utils/package.json +++ b/schematics/schematics-utils/package.json @@ -19,7 +19,7 @@ "@angular-devkit/core": "18.2.2", "@angular-devkit/schematics": "18.2.2", "js-yaml": "4.1.0", - "semver": "7.5.4", + "semver": "7.6.3", "strip-json-comments": "3.1.1" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 635bfc9d..0c91b2c3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -600,7 +600,7 @@ __metadata: "@rollup/plugin-commonjs": "npm:25.0.8" "@rollup/plugin-json": "npm:6.1.0" "@rollup/plugin-node-resolve": "npm:15.2.3" - "@rollup/plugin-replace": "npm:5.0.5" + "@rollup/plugin-replace": "npm:5.0.7" "@types/node": "npm:22.5.1" builtin-modules: "npm:3.3.0" esbuild: "npm:^0.19.9" @@ -823,7 +823,7 @@ __metadata: import-sort-parser-typescript: "npm:6.0.0" import-sort-style: "npm:6.0.0" prettier: "npm:3.3.3" - sort-package-json: "npm:^2.4.1" + sort-package-json: "npm:2.4.1" languageName: unknown linkType: soft @@ -837,7 +837,7 @@ __metadata: "@types/node": "npm:22.5.1" js-yaml: "npm:4.1.0" rimraf: "npm:5.0.10" - semver: "npm:7.5.4" + semver: "npm:7.6.3" strip-json-comments: "npm:3.1.1" typescript: "npm:5.4.2" languageName: unknown @@ -3330,21 +3330,6 @@ __metadata: languageName: node linkType: hard -"@rollup/plugin-replace@npm:5.0.5": - version: 5.0.5 - resolution: "@rollup/plugin-replace@npm:5.0.5" - dependencies: - "@rollup/pluginutils": "npm:^5.0.1" - magic-string: "npm:^0.30.3" - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - checksum: 10/bcf106346f1990478a569cda6b375411dd27e0110238f8b10b424c55f09a2788a607e42fce713480c19ed942dcd67411b64c25471086de560da1e58d8f4e0740 - languageName: node - linkType: hard - "@rollup/plugin-replace@npm:5.0.7": version: 5.0.7 resolution: "@rollup/plugin-replace@npm:5.0.7" @@ -10612,15 +10597,6 @@ __metadata: languageName: node linkType: hard -"lru-cache@npm:^6.0.0": - version: 6.0.0 - resolution: "lru-cache@npm:6.0.0" - dependencies: - yallist: "npm:^4.0.0" - checksum: 10/fc1fe2ee205f7c8855fa0f34c1ab0bcf14b6229e35579ec1fd1079f31d6fc8ef8eb6fd17f2f4d99788d7e339f50e047555551ebd5e434dda503696e7c6591825 - languageName: node - linkType: hard - "magic-string@npm:0.30.11, magic-string@npm:^0.30.3": version: 0.30.11 resolution: "magic-string@npm:0.30.11" @@ -12381,17 +12357,6 @@ pem@dexus/pem: languageName: node linkType: hard -"semver@npm:7.5.4": - version: 7.5.4 - resolution: "semver@npm:7.5.4" - dependencies: - lru-cache: "npm:^6.0.0" - bin: - semver: bin/semver.js - checksum: 10/985dec0d372370229a262c737063860fabd4a1c730662c1ea3200a2f649117761a42184c96df62a0e885e76fbd5dace41087d6c1ac0351b13c0df5d6bcb1b5ac - languageName: node - linkType: hard - "semver@npm:^6.3.0, semver@npm:^6.3.1": version: 6.3.1 resolution: "semver@npm:6.3.1" diff --git a/yarn/cli/dist/yarn.cjs b/yarn/cli/dist/yarn.cjs index 50f2cf5a..b647ba49 100755 --- a/yarn/cli/dist/yarn.cjs +++ b/yarn/cli/dist/yarn.cjs @@ -168,7 +168,7 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);L(oe)}return `),et.end()}),et});break;case"<&":L(()=>nDr(Number(t[Te]),tT.Readable,n));break;case">":case">>":{let et=D5.ppath.resolve(n.cwd,D5.npath.toPortablePath(t[Te]));oe(et==="/dev/null"?new o3.Writable({autoDestroy:!0,emitClose:!0,write(at,Ft,Bt){setImmediate(Bt)}}):e.baseFs.createWriteStream(et,G===">>"?{flags:"a"}:void 0))}break;case">&":oe(nDr(Number(t[Te]),tT.Writable,n));break;default:throw new Error(`Assertion failed: Unsupported redirection type: "${G}"`)}}if(p.length>0){let P=new o3.PassThrough;o=P;let G=K=>{if(K===p.length)P.end();else{let L=p[K]();L.pipe(P,{end:!1}),L.on("end",()=>{G(K+1)})}};G(0)}if(_.length>0){let P=new o3.PassThrough;c=P;for(let G of _)P.pipe(G)}if(C.length>0){let P=new o3.PassThrough;a=P;for(let G of C)P.pipe(G)}let D=await(0,H2.start)(N2e(t.slice(v+1),e,n),{stdin:new H2.ProtectedStream(o),stdout:new H2.ProtectedStream(c),stderr:new H2.ProtectedStream(a)}).run();return await Promise.all(_.map(P=>new Promise((G,K)=>{P.on("error",L=>{K(L)}),P.on("close",()=>{G()}),P.end()}))),await Promise.all(C.map(P=>new Promise((G,K)=>{P.on("error",L=>{K(L)}),P.on("close",()=>{G()}),P.end()}))),D}]]);async function rOi(t,e,n){let o=[],c=new o3.PassThrough;return c.on("data",a=>o.push(a)),await AGe(t,e,fGe(n,{stdout:c})),Buffer.concat(o).toString().replace(/[\r\n]+$/,"")}async function iDr(t,e,n){let o=t.map(async a=>{let p=await xne(a.args,e,n);return{name:a.name,value:p.join(" ")}});return(await Promise.all(o)).reduce((a,p)=>(a[p.name]=p.value,a),{})}function uGe(t){return t.match(/[^ \r\n\t]+/g)||[]}async function cDr(t,e,n,o,c=o){switch(t.name){case"$":o(String(process.pid));break;case"#":o(String(e.args.length));break;case"@":if(t.quoted)for(let a of e.args)c(a);else for(let a of e.args){let p=uGe(a);for(let _=0;_=0&&a"u"&&(t.defaultValue?p=(await xne(t.defaultValue,e,n)).join(" "):t.alternativeValue&&(p="")),typeof p>"u")throw _?new T5.ShellError(`Unbound argument #${a}`):new T5.ShellError(`Unbound variable "${t.name}"`);if(t.quoted)o(p);else{let C=uGe(p);for(let D=0;Dt+e,subtraction:(t,e)=>t-e,multiplication:(t,e)=>t*e,division:(t,e)=>Math.trunc(t/e)};async function Q2e(t,e,n){if(t.type==="number"){if(Number.isInteger(t.value))return t.value;throw new Error(`Invalid number: "${t.value}", only integers are allowed`)}else if(t.type==="variable"){let o=[];await cDr({...t,quoted:!0},e,n,a=>o.push(a));let c=Number(o.join(" "));return Number.isNaN(c)?Q2e({type:"variable",name:o.join(" ")},e,n):Q2e({type:"number",value:c},e,n)}else return nOi[t.type](await Q2e(t.left,e,n),await Q2e(t.right,e,n))}async function xne(t,e,n){let o=new Map,c=[],a=[],p=D=>{a.push(D)},_=()=>{a.length>0&&c.push(a.join("")),a=[]},C=D=>{p(D),_()},v=(D,P,G)=>{let K=JSON.stringify({type:D,fd:P}),L=o.get(K);typeof L>"u"&&o.set(K,L=[]),L.push(G)};for(let D of t){let P=!1;switch(D.type){case"redirection":{let G=await xne(D.args,e,n);for(let K of G)v(D.subtype,D.fd,K)}break;case"argument":for(let G of D.segments)switch(G.type){case"text":p(G.text);break;case"glob":p(G.pattern),P=!0;break;case"shell":{let K=await rOi(G.shell,e,n);if(G.quoted)p(K);else{let L=uGe(K);for(let oe=0;oe"u")throw new Error("Assertion failed: Expected a glob pattern to have been set");let K=await e.glob.match(G,{cwd:n.cwd,baseFs:e.baseFs});if(K.length===0){let L=GSt.isBraceExpansion(G)?". Note: Brace expansion of arbitrary strings isn't currently supported. For more details, please read this issue: https://github.com/yarnpkg/berry/issues/22":"";throw new T5.ShellError(`No matches found: "${G}"${L}`)}for(let L of K.sort())C(L)}}if(o.size>0){let D=[];for(let[P,G]of o.entries())D.splice(D.length,0,P,String(G.length),...G);c.splice(0,0,"__ysh_set_redirects",...D,"--")}return c}function N2e(t,e,n){e.builtins.has(t[0])||(t=["command",...t]);let o=D5.npath.fromPortablePath(n.cwd),c=n.environment;typeof c.PWD<"u"&&(c={...c,PWD:o});let[a,...p]=t;if(a==="command")return(0,USt.makeProcess)(p[0],p.slice(1),e,{cwd:o,env:c});let _=e.builtins.get(a);if(typeof _>"u")throw new Error(`Assertion failed: A builtin should exist for "${a}"`);return(0,USt.makeBuiltin)(async({stdin:C,stdout:v,stderr:D})=>{let{stdin:P,stdout:G,stderr:K}=n;n.stdin=C,n.stdout=v,n.stderr=D;try{return await _(p,e,n)}finally{n.stdin=P,n.stdout=G,n.stderr=K}})}function iOi(t,e,n){return o=>{let c=new o3.PassThrough,a=AGe(t,e,fGe(n,{stdin:c}));return{stdin:c,promise:a}}}function sOi(t,e,n){return o=>{let c=new o3.PassThrough,a=AGe(t,e,n);return{stdin:c,promise:a}}}function sDr(t,e,n,o){if(e.length===0)return t;{let c;do c=String(Math.random());while(Object.hasOwn(o.procedures,c));return o.procedures={...o.procedures},o.procedures[c]=t,N2e([...e,"__ysh_run_procedure",c],n,o)}}async function oDr(t,e,n){let o=t,c=null,a=null;for(;o;){let p=o.then?{...n}:n,_;switch(o.type){case"command":{let C=await xne(o.args,e,n),v=await iDr(o.envs,e,n);_=o.envs.length?N2e(C,e,fGe(p,{environment:v})):N2e(C,e,p)}break;case"subshell":{let C=await xne(o.args,e,n),v=iOi(o.subshell,e,p);_=sDr(v,C,e,p)}break;case"group":{let C=await xne(o.args,e,n),v=sOi(o.group,e,p);_=sDr(v,C,e,p)}break;case"envs":{let C=await iDr(o.envs,e,n);p.environment={...p.environment,...C},_=N2e(["true"],e,p)}break}if(typeof _>"u")throw new Error("Assertion failed: An action should have been generated");if(c===null)a=(0,H2.start)(_,{stdin:new H2.ProtectedStream(p.stdin),stdout:new H2.ProtectedStream(p.stdout),stderr:new H2.ProtectedStream(p.stderr)});else{if(a===null)throw new Error("Assertion failed: The execution pipeline should have been setup");switch(c){case"|":a=a.pipeTo(_,H2.Pipe.STDOUT);break;case"|&":a=a.pipeTo(_,H2.Pipe.STDOUT|H2.Pipe.STDERR);break}}o.then?(c=o.then.type,o=o.then.chain):o=null}if(a===null)throw new Error("Assertion failed: The execution pipeline should have been setup");return await a.run()}async function oOi(t,e,n,{background:o=!1}={}){function c(a){let p=["#2E86AB","#A23B72","#F18F01","#C73E1D","#CCE2A3"],_=p[a%p.length];return XLi.default.hex(_)}if(o){let a=n.nextBackgroundJobIndex++,p=c(a),_=`[${a}]`,C=p(_),{stdout:v,stderr:D}=(0,USt.createOutputStreamsWithPrefix)(n,{prefix:C});return n.backgroundJobs.push(oDr(t,e,fGe(n,{stdout:v,stderr:D})).catch(P=>D.write(`${P.message} `)).finally(()=>{n.stdout.isTTY&&n.stdout.write(`Job ${C}, '${p((0,aDr.stringifyCommandChain)(t))}' has ended `)})),0}return await oDr(t,e,n)}async function aOi(t,e,n,{background:o=!1}={}){let c,a=_=>{c=_,n.variables["?"]=String(_)},p=async _=>{try{return await oOi(_.chain,e,n,{background:o&&typeof _.then>"u"})}catch(C){if(!(C instanceof T5.ShellError))throw C;return n.stderr.write(`${C.message} -`),1}};for(a(await p(t));t.then;){if(n.exitCode!==null)return n.exitCode;switch(t.then.type){case"&&":c===0&&a(await p(t.then.line));break;case"||":c!==0&&a(await p(t.then.line));break;default:throw new Error(`Assertion failed: Unsupported command type: "${t.then.type}"`)}t=t.then.line}return c}async function AGe(t,e,n){let o=n.backgroundJobs;n.backgroundJobs=[];let c=0;for(let{command:a,type:p}of t){if(c=await aOi(a,e,n,{background:p==="&"}),n.exitCode!==null)return n.exitCode;n.variables["?"]=String(c)}return await Promise.all(n.backgroundJobs),n.backgroundJobs=o,c}function lDr(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=>R2e(e))||"alternativeValue"in t&&!!t.alternativeValue&&t.alternativeValue.some(e=>R2e(e));case"arithmetic":return qSt(t.arithmetic);case"shell":return HSt(t.shell);default:return!1}}function R2e(t){switch(t.type){case"redirection":return t.args.some(e=>R2e(e));case"argument":return t.segments.some(e=>lDr(e));default:throw new Error(`Assertion failed: Unsupported argument type: "${t.type}"`)}}function qSt(t){switch(t.type){case"variable":return lDr(t);case"number":return!1;default:return qSt(t.left)||qSt(t.right)}}function HSt(t){return t.some(({command:e})=>{for(;e;){let n=e.chain;for(;n;){let o;switch(n.type){case"subshell":o=HSt(n.subshell);break;case"command":o=n.envs.some(c=>c.args.some(a=>R2e(a)))||n.args.some(c=>R2e(c));break}if(o)return!0;if(!n.then)break;n=n.then.chain}if(!e.then)break;e=e.then.line}return!1})}async function cOi(t,e=[],{baseFs:n=new D5.NodeFS,builtins:o={},cwd:c=D5.npath.toPortablePath(process.cwd()),env:a=process.env,stdin:p=process.stdin,stdout:_=process.stdout,stderr:C=process.stderr,variables:v={},glob:D=GSt}={}){let P={};for(let[L,oe]of Object.entries(a))typeof oe<"u"&&(P[L]=oe);let G=new Map(tOi);for(let[L,oe]of Object.entries(o))G.set(L,oe);p===null&&(p=new o3.PassThrough,p.end());let K=(0,aDr.parseShell)(t,D);if(!HSt(K)&&K.length>0&&e.length>0){let{command:L}=K[K.length-1];for(;L.then;)L=L.then.line;let oe=L.chain;for(;oe.then;)oe=oe.then.chain;oe.type==="command"&&(oe.args=oe.args.concat(e.map(ce=>({type:"argument",segments:[{type:"text",text:ce}]}))))}return await AGe(K,{args:e,baseFs:n,builtins:G,initialStdin:p,initialStdout:_,initialStderr:C,glob:D},{cwd:c,environment:P,exitCode:null,procedures:{},stdin:p,stdout:_,stderr:C,variables:Object.assign({},v,{"?":0}),nextBackgroundJobIndex:1,backgroundJobs:[]})}});var JSt=te((cAo,uDr)=>{function lOi(t,e){for(var n=-1,o=t==null?0:t.length,c=Array(o);++n{var fDr=une(),uOi=JSt(),fOi=Z4(),AOi=u2e(),pOi=1/0,ADr=fDr?fDr.prototype:void 0,pDr=ADr?ADr.toString:void 0;function dDr(t){if(typeof t=="string")return t;if(fOi(t))return uOi(t,dDr)+"";if(AOi(t))return pDr?pDr.call(t):"";var e=t+"";return e=="0"&&1/t==-pOi?"-0":e}hDr.exports=dDr});var pGe=te((uAo,mDr)=>{var dOi=gDr();function hOi(t){return t==null?"":dOi(t)}mDr.exports=hOi});var VSt=te((fAo,_Dr)=>{function gOi(t,e,n){var o=-1,c=t.length;e<0&&(e=-e>c?0:c+e),n=n>c?c:n,n<0&&(n+=c),c=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(c);++o{var mOi=VSt();function _Oi(t,e,n){var o=t.length;return n=n===void 0?o:n,!e&&n>=o?t:mOi(t,e,n)}EDr.exports=_Oi});var WSt=te((pAo,CDr)=>{var EOi="\\ud800-\\udfff",yOi="\\u0300-\\u036f",COi="\\ufe20-\\ufe2f",IOi="\\u20d0-\\u20ff",vOi=yOi+COi+IOi,SOi="\\ufe0e\\ufe0f",BOi="\\u200d",wOi=RegExp("["+BOi+EOi+vOi+SOi+"]");function bOi(t){return wOi.test(t)}CDr.exports=bOi});var vDr=te((dAo,IDr)=>{function DOi(t){return t.split("")}IDr.exports=DOi});var kDr=te((hAo,xDr)=>{var SDr="\\ud800-\\udfff",TOi="\\u0300-\\u036f",xOi="\\ufe20-\\ufe2f",kOi="\\u20d0-\\u20ff",QOi=TOi+xOi+kOi,NOi="\\ufe0e\\ufe0f",ROi="["+SDr+"]",YSt="["+QOi+"]",zSt="\\ud83c[\\udffb-\\udfff]",POi="(?:"+YSt+"|"+zSt+")",BDr="[^"+SDr+"]",wDr="(?:\\ud83c[\\udde6-\\uddff]){2}",bDr="[\\ud800-\\udbff][\\udc00-\\udfff]",FOi="\\u200d",DDr=POi+"?",TDr="["+NOi+"]?",LOi="(?:"+FOi+"(?:"+[BDr,wDr,bDr].join("|")+")"+TDr+DDr+")*",OOi=TDr+DDr+LOi,MOi="(?:"+[BDr+YSt+"?",YSt,wDr,bDr,ROi].join("|")+")",UOi=RegExp(zSt+"(?="+zSt+")|"+MOi+OOi,"g");function qOi(t){return t.match(UOi)||[]}xDr.exports=qOi});var NDr=te((gAo,QDr)=>{var jOi=vDr(),GOi=WSt(),HOi=kDr();function JOi(t){return GOi(t)?HOi(t):jOi(t)}QDr.exports=JOi});var PDr=te((mAo,RDr)=>{var VOi=yDr(),WOi=WSt(),YOi=NDr(),zOi=pGe();function KOi(t){return function(e){e=zOi(e);var n=WOi(e)?YOi(e):void 0,o=n?n[0]:e.charAt(0),c=n?VOi(n,1).join(""):e.slice(1);return o[t]()+c}}RDr.exports=KOi});var LDr=te((_Ao,FDr)=>{var XOi=PDr(),ZOi=XOi("toUpperCase");FDr.exports=ZOi});var KSt=te((EAo,ODr)=>{var $Oi=pGe(),eMi=LDr();function tMi(t){return eMi($Oi(t).toLowerCase())}ODr.exports=tMi});var MDr=te((yAo,dGe)=>{function rMi(){var t=0,e=1,n=2,o=3,c=4,a=5,p=6,_=7,C=8,v=9,D=10,P=11,G=12,K=13,L=14,oe=15,ce=16,pe=17,Te=0,et=1,at=2,Ft=3,Bt=4;function Rt(R,yr){return 55296<=R.charCodeAt(yr)&&R.charCodeAt(yr)<=56319&&56320<=R.charCodeAt(yr+1)&&R.charCodeAt(yr+1)<=57343}function rr(R,yr){yr===void 0&&(yr=0);var cr=R.charCodeAt(yr);if(55296<=cr&&cr<=56319&&yr=1){var ft=R.charCodeAt(yr-1),Kt=cr;return 55296<=ft&&ft<=56319?(ft-55296)*1024+(Kt-56320)+65536:Kt}return cr}function nr(R,yr,cr){var ft=[R].concat(yr).concat([cr]),Kt=ft[ft.length-2],jt=cr,wn=ft.lastIndexOf(L);if(wn>1&&ft.slice(1,wn).every(function(as){return as==o})&&[o,K,pe].indexOf(R)==-1)return at;var Wr=ft.lastIndexOf(c);if(Wr>0&&ft.slice(1,Wr).every(function(as){return as==c})&&[G,c].indexOf(Kt)==-1)return ft.filter(function(as){return as==c}).length%2==1?Ft:Bt;if(Kt==t&&jt==e)return Te;if(Kt==n||Kt==t||Kt==e)return jt==L&&yr.every(function(as){return as==o})?at:et;if(jt==n||jt==t||jt==e)return et;if(Kt==p&&(jt==p||jt==_||jt==v||jt==D))return Te;if((Kt==v||Kt==_)&&(jt==_||jt==C))return Te;if((Kt==D||Kt==C)&&jt==C)return Te;if(jt==o||jt==oe)return Te;if(jt==a)return Te;if(Kt==G)return Te;var Ai=ft.indexOf(o)!=-1?ft.lastIndexOf(o)-1:ft.length-2;return[K,pe].indexOf(ft[Ai])!=-1&&ft.slice(Ai+1,-1).every(function(as){return as==o})&&jt==L||Kt==oe&&[ce,pe].indexOf(jt)!=-1?Te:yr.indexOf(c)!=-1?at:Kt==c&&jt==c?Te:et}this.nextBreak=function(R,yr){if(yr===void 0&&(yr=0),yr<0)return 0;if(yr>=R.length-1)return R.length;for(var cr=wr(rr(R,yr)),ft=[],Kt=yr+1;Kt{var nMi=/^(.*?)(\x1b\[[^m]+m|\x1b\]8;;.*?(\x1b\\|\u0007))/,hGe;function iMi(){if(hGe)return hGe;if(typeof Intl.Segmenter<"u"){let t=new Intl.Segmenter("en",{granularity:"grapheme"});return hGe=e=>Array.from(t.segment(e),({segment:n})=>n)}else{let t=MDr(),e=new t;return hGe=n=>e.splitGraphemes(n)}}UDr.exports=(t,e=0,n=t.length)=>{if(e<0||n<0)throw new RangeError("Negative indices aren't supported by this implementation");let o=n-e,c="",a=0,p=0;for(;t.length>0;){let _=t.match(nMi)||[t,t,void 0],C=iMi()(_[1]),v=Math.min(e-a,C.length);C=C.slice(v);let D=Math.min(o-p,C.length);c+=C.slice(0,D).join(""),a+=v,p+=D,typeof _[2]<"u"&&(c+=_[2]),t=t.slice(_[0].length)}return c}});var P2e=te(gGe=>{"use strict";Object.defineProperty(gGe,"__esModule",{value:!0});gGe.YarnVersion=void 0;gGe.YarnVersion=process.env.YARN_IS_TEST_ENV?"0.0.0":"1.0.0-git.20240831.hash-a2d39bd4"});var F2e=te(XL=>{"use strict";Object.defineProperty(XL,"__esModule",{value:!0});XL.StreamReport=XL.SUPPORTS_GROUPS=XL.SINGLE_LINE_CHAR=void 0;XL.formatName=$St;XL.formatNameWithHyperlink=JDr;XL.reportOptionDeprecations=fMi;var ZSt=(po(),hn(Ao)),sMi=ZSt.__importDefault(qDr()),XSt=ZSt.__importDefault(ine()),x5=PQ(),oMi=jL(),aMi=P2e(),a3=ZSt.__importStar(ML());XL.SINGLE_LINE_CHAR="\xB7";var jDr=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],GDr=80,bz=XSt.default.GITHUB_ACTIONS?{start:t=>`::group::${t} +`),1}};for(a(await p(t));t.then;){if(n.exitCode!==null)return n.exitCode;switch(t.then.type){case"&&":c===0&&a(await p(t.then.line));break;case"||":c!==0&&a(await p(t.then.line));break;default:throw new Error(`Assertion failed: Unsupported command type: "${t.then.type}"`)}t=t.then.line}return c}async function AGe(t,e,n){let o=n.backgroundJobs;n.backgroundJobs=[];let c=0;for(let{command:a,type:p}of t){if(c=await aOi(a,e,n,{background:p==="&"}),n.exitCode!==null)return n.exitCode;n.variables["?"]=String(c)}return await Promise.all(n.backgroundJobs),n.backgroundJobs=o,c}function lDr(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=>R2e(e))||"alternativeValue"in t&&!!t.alternativeValue&&t.alternativeValue.some(e=>R2e(e));case"arithmetic":return qSt(t.arithmetic);case"shell":return HSt(t.shell);default:return!1}}function R2e(t){switch(t.type){case"redirection":return t.args.some(e=>R2e(e));case"argument":return t.segments.some(e=>lDr(e));default:throw new Error(`Assertion failed: Unsupported argument type: "${t.type}"`)}}function qSt(t){switch(t.type){case"variable":return lDr(t);case"number":return!1;default:return qSt(t.left)||qSt(t.right)}}function HSt(t){return t.some(({command:e})=>{for(;e;){let n=e.chain;for(;n;){let o;switch(n.type){case"subshell":o=HSt(n.subshell);break;case"command":o=n.envs.some(c=>c.args.some(a=>R2e(a)))||n.args.some(c=>R2e(c));break}if(o)return!0;if(!n.then)break;n=n.then.chain}if(!e.then)break;e=e.then.line}return!1})}async function cOi(t,e=[],{baseFs:n=new D5.NodeFS,builtins:o={},cwd:c=D5.npath.toPortablePath(process.cwd()),env:a=process.env,stdin:p=process.stdin,stdout:_=process.stdout,stderr:C=process.stderr,variables:v={},glob:D=GSt}={}){let P={};for(let[L,oe]of Object.entries(a))typeof oe<"u"&&(P[L]=oe);let G=new Map(tOi);for(let[L,oe]of Object.entries(o))G.set(L,oe);p===null&&(p=new o3.PassThrough,p.end());let K=(0,aDr.parseShell)(t,D);if(!HSt(K)&&K.length>0&&e.length>0){let{command:L}=K[K.length-1];for(;L.then;)L=L.then.line;let oe=L.chain;for(;oe.then;)oe=oe.then.chain;oe.type==="command"&&(oe.args=oe.args.concat(e.map(ce=>({type:"argument",segments:[{type:"text",text:ce}]}))))}return await AGe(K,{args:e,baseFs:n,builtins:G,initialStdin:p,initialStdout:_,initialStderr:C,glob:D},{cwd:c,environment:P,exitCode:null,procedures:{},stdin:p,stdout:_,stderr:C,variables:Object.assign({},v,{"?":0}),nextBackgroundJobIndex:1,backgroundJobs:[]})}});var JSt=te((cAo,uDr)=>{function lOi(t,e){for(var n=-1,o=t==null?0:t.length,c=Array(o);++n{var fDr=une(),uOi=JSt(),fOi=Z4(),AOi=u2e(),pOi=1/0,ADr=fDr?fDr.prototype:void 0,pDr=ADr?ADr.toString:void 0;function dDr(t){if(typeof t=="string")return t;if(fOi(t))return uOi(t,dDr)+"";if(AOi(t))return pDr?pDr.call(t):"";var e=t+"";return e=="0"&&1/t==-pOi?"-0":e}hDr.exports=dDr});var pGe=te((uAo,mDr)=>{var dOi=gDr();function hOi(t){return t==null?"":dOi(t)}mDr.exports=hOi});var VSt=te((fAo,_Dr)=>{function gOi(t,e,n){var o=-1,c=t.length;e<0&&(e=-e>c?0:c+e),n=n>c?c:n,n<0&&(n+=c),c=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(c);++o{var mOi=VSt();function _Oi(t,e,n){var o=t.length;return n=n===void 0?o:n,!e&&n>=o?t:mOi(t,e,n)}EDr.exports=_Oi});var WSt=te((pAo,CDr)=>{var EOi="\\ud800-\\udfff",yOi="\\u0300-\\u036f",COi="\\ufe20-\\ufe2f",IOi="\\u20d0-\\u20ff",vOi=yOi+COi+IOi,SOi="\\ufe0e\\ufe0f",BOi="\\u200d",wOi=RegExp("["+BOi+EOi+vOi+SOi+"]");function bOi(t){return wOi.test(t)}CDr.exports=bOi});var vDr=te((dAo,IDr)=>{function DOi(t){return t.split("")}IDr.exports=DOi});var kDr=te((hAo,xDr)=>{var SDr="\\ud800-\\udfff",TOi="\\u0300-\\u036f",xOi="\\ufe20-\\ufe2f",kOi="\\u20d0-\\u20ff",QOi=TOi+xOi+kOi,NOi="\\ufe0e\\ufe0f",ROi="["+SDr+"]",YSt="["+QOi+"]",zSt="\\ud83c[\\udffb-\\udfff]",POi="(?:"+YSt+"|"+zSt+")",BDr="[^"+SDr+"]",wDr="(?:\\ud83c[\\udde6-\\uddff]){2}",bDr="[\\ud800-\\udbff][\\udc00-\\udfff]",FOi="\\u200d",DDr=POi+"?",TDr="["+NOi+"]?",LOi="(?:"+FOi+"(?:"+[BDr,wDr,bDr].join("|")+")"+TDr+DDr+")*",OOi=TDr+DDr+LOi,MOi="(?:"+[BDr+YSt+"?",YSt,wDr,bDr,ROi].join("|")+")",UOi=RegExp(zSt+"(?="+zSt+")|"+MOi+OOi,"g");function qOi(t){return t.match(UOi)||[]}xDr.exports=qOi});var NDr=te((gAo,QDr)=>{var jOi=vDr(),GOi=WSt(),HOi=kDr();function JOi(t){return GOi(t)?HOi(t):jOi(t)}QDr.exports=JOi});var PDr=te((mAo,RDr)=>{var VOi=yDr(),WOi=WSt(),YOi=NDr(),zOi=pGe();function KOi(t){return function(e){e=zOi(e);var n=WOi(e)?YOi(e):void 0,o=n?n[0]:e.charAt(0),c=n?VOi(n,1).join(""):e.slice(1);return o[t]()+c}}RDr.exports=KOi});var LDr=te((_Ao,FDr)=>{var XOi=PDr(),ZOi=XOi("toUpperCase");FDr.exports=ZOi});var KSt=te((EAo,ODr)=>{var $Oi=pGe(),eMi=LDr();function tMi(t){return eMi($Oi(t).toLowerCase())}ODr.exports=tMi});var MDr=te((yAo,dGe)=>{function rMi(){var t=0,e=1,n=2,o=3,c=4,a=5,p=6,_=7,C=8,v=9,D=10,P=11,G=12,K=13,L=14,oe=15,ce=16,pe=17,Te=0,et=1,at=2,Ft=3,Bt=4;function Rt(R,yr){return 55296<=R.charCodeAt(yr)&&R.charCodeAt(yr)<=56319&&56320<=R.charCodeAt(yr+1)&&R.charCodeAt(yr+1)<=57343}function rr(R,yr){yr===void 0&&(yr=0);var cr=R.charCodeAt(yr);if(55296<=cr&&cr<=56319&&yr=1){var ft=R.charCodeAt(yr-1),Kt=cr;return 55296<=ft&&ft<=56319?(ft-55296)*1024+(Kt-56320)+65536:Kt}return cr}function nr(R,yr,cr){var ft=[R].concat(yr).concat([cr]),Kt=ft[ft.length-2],jt=cr,wn=ft.lastIndexOf(L);if(wn>1&&ft.slice(1,wn).every(function(as){return as==o})&&[o,K,pe].indexOf(R)==-1)return at;var Wr=ft.lastIndexOf(c);if(Wr>0&&ft.slice(1,Wr).every(function(as){return as==c})&&[G,c].indexOf(Kt)==-1)return ft.filter(function(as){return as==c}).length%2==1?Ft:Bt;if(Kt==t&&jt==e)return Te;if(Kt==n||Kt==t||Kt==e)return jt==L&&yr.every(function(as){return as==o})?at:et;if(jt==n||jt==t||jt==e)return et;if(Kt==p&&(jt==p||jt==_||jt==v||jt==D))return Te;if((Kt==v||Kt==_)&&(jt==_||jt==C))return Te;if((Kt==D||Kt==C)&&jt==C)return Te;if(jt==o||jt==oe)return Te;if(jt==a)return Te;if(Kt==G)return Te;var Ai=ft.indexOf(o)!=-1?ft.lastIndexOf(o)-1:ft.length-2;return[K,pe].indexOf(ft[Ai])!=-1&&ft.slice(Ai+1,-1).every(function(as){return as==o})&&jt==L||Kt==oe&&[ce,pe].indexOf(jt)!=-1?Te:yr.indexOf(c)!=-1?at:Kt==c&&jt==c?Te:et}this.nextBreak=function(R,yr){if(yr===void 0&&(yr=0),yr<0)return 0;if(yr>=R.length-1)return R.length;for(var cr=wr(rr(R,yr)),ft=[],Kt=yr+1;Kt{var nMi=/^(.*?)(\x1b\[[^m]+m|\x1b\]8;;.*?(\x1b\\|\u0007))/,hGe;function iMi(){if(hGe)return hGe;if(typeof Intl.Segmenter<"u"){let t=new Intl.Segmenter("en",{granularity:"grapheme"});return hGe=e=>Array.from(t.segment(e),({segment:n})=>n)}else{let t=MDr(),e=new t;return hGe=n=>e.splitGraphemes(n)}}UDr.exports=(t,e=0,n=t.length)=>{if(e<0||n<0)throw new RangeError("Negative indices aren't supported by this implementation");let o=n-e,c="",a=0,p=0;for(;t.length>0;){let _=t.match(nMi)||[t,t,void 0],C=iMi()(_[1]),v=Math.min(e-a,C.length);C=C.slice(v);let D=Math.min(o-p,C.length);c+=C.slice(0,D).join(""),a+=v,p+=D,typeof _[2]<"u"&&(c+=_[2]),t=t.slice(_[0].length)}return c}});var P2e=te(gGe=>{"use strict";Object.defineProperty(gGe,"__esModule",{value:!0});gGe.YarnVersion=void 0;gGe.YarnVersion=process.env.YARN_IS_TEST_ENV?"0.0.0":"1.0.0-git.20240831.hash-7670d055"});var F2e=te(XL=>{"use strict";Object.defineProperty(XL,"__esModule",{value:!0});XL.StreamReport=XL.SUPPORTS_GROUPS=XL.SINGLE_LINE_CHAR=void 0;XL.formatName=$St;XL.formatNameWithHyperlink=JDr;XL.reportOptionDeprecations=fMi;var ZSt=(po(),hn(Ao)),sMi=ZSt.__importDefault(qDr()),XSt=ZSt.__importDefault(ine()),x5=PQ(),oMi=jL(),aMi=P2e(),a3=ZSt.__importStar(ML());XL.SINGLE_LINE_CHAR="\xB7";var jDr=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],GDr=80,bz=XSt.default.GITHUB_ACTIONS?{start:t=>`::group::${t} `,end:t=>`::endgroup:: `}:XSt.default.TRAVIS?{start:t=>`travis_fold:start:${t} `,end:t=>`travis_fold:end:${t}