import{a as e,n as t,r as n,t as r}from"./chunk-mlkTr37E.js";var i=r(((e,t)=>{t.exports=(e,t=1,n)=>{if(n={indent:` `,includeEmptyLines:!1,...n},typeof e!=`string`)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!=`number`)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof n.indent!=`string`)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(t===0)return e;let r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(r,n.indent.repeat(t))}})),a=n({EOL:()=>`
`,arch:()=>d,default:()=>p,homedir:()=>o,hostname:()=>l,platform:()=>s,release:()=>f,tmpdir:()=>c,type:()=>u}),o,s,c,l,u,d,f,p,m=t((()=>{o=()=>``,s=()=>`browser`,c=()=>`/tmp`,l=()=>``,u=()=>`Browser`,d=()=>``,f=()=>``,p={homedir:o,platform:s,tmpdir:c,hostname:l,type:u,arch:d,release:f,EOL:`
`}})),h=r(((t,n)=>{var r=(m(),e(a)),i=/\s+at.*(?:\(|\s)(.*)\)?/,o=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/,s=r.homedir===void 0?``:r.homedir();n.exports=(e,t)=>(t=Object.assign({pretty:!1},t),e.replace(/\\/g,`/`).split(`
`).filter(e=>{let t=e.match(i);if(t===null||!t[1])return!0;let n=t[1];return n.includes(`.app/Contents/Resources/electron.asar`)||n.includes(`.app/Contents/Resources/default_app.asar`)?!1:!o.test(n)}).filter(e=>e.trim()!==``).map(e=>t.pretty?e.replace(i,(e,t)=>e.replace(t,t.replace(s,`~`))):e).join(`
`))})),g=r(((e,t)=>{var n=i(),r=h(),a=e=>e.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,``);t.exports=class extends Error{constructor(e){if(!Array.isArray(e))throw TypeError(`Expected input to be an Array, got ${typeof e}`);e=[...e].map(e=>e instanceof Error?e:typeof e==`object`&&e?Object.assign(Error(e.message),e):Error(e));let t=e.map(e=>typeof e.stack==`string`?a(r(e.stack)):String(e)).join(`
`);t=`
`+n(t,4),super(t),this.name=`AggregateError`,Object.defineProperty(this,`_errors`,{value:e})}*[Symbol.iterator](){for(let e of this._errors)yield e}}})),_=r(((e,t)=>{var n=g();t.exports=async(e,t,{concurrency:r=1/0,stopOnError:i=!0}={})=>new Promise((a,o)=>{if(typeof t!=`function`)throw TypeError(`Mapper function is required`);if(!((Number.isSafeInteger(r)||r===1/0)&&r>=1))throw TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);let s=[],c=[],l=e[Symbol.iterator](),u=!1,d=!1,f=0,p=0,m=()=>{if(u)return;let e=l.next(),r=p;if(p++,e.done){d=!0,f===0&&(!i&&c.length!==0?o(new n(c)):a(s));return}f++,(async()=>{try{s[r]=await t(await e.value,r),f--,m()}catch(e){i?(u=!0,o(e)):(c.push(e),f--,m())}})()};for(let e=0;e<r&&(m(),!d);e++);})}));export{_ as t};