@lousy-agents/mcp 5.8.0 → 5.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/316.js +2961 -0
- package/dist/316.js.map +1 -0
- package/dist/511.js +1260 -0
- package/dist/511.js.map +1 -0
- package/dist/mcp-server.js +588 -707
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -1
- package/dist/433.js +0 -1740
- package/dist/433.js.map +0 -1
- package/dist/696.js +0 -13
- package/dist/696.js.map +0 -1
package/dist/511.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"511.js","sources":["webpack://@lousy-agents/mcp/../../node_modules/giget/dist/_chunks/libs/nypm.mjs","webpack://@lousy-agents/mcp/../../node_modules/giget/dist/_chunks/rolldown-runtime.mjs","webpack://@lousy-agents/mcp/../../node_modules/giget/dist/_chunks/giget.mjs","webpack://@lousy-agents/mcp/../../node_modules/giget/dist/index.mjs"],"sourcesContent":["import { t as e } from \"../rolldown-runtime.mjs\";\nimport { createRequire as t } from \"node:module\";\nimport { existsSync as n } from \"node:fs\";\nimport { readFile as r } from \"node:fs/promises\";\nimport { PassThrough as i } from \"node:stream\";\nimport { spawn as a } from \"node:child_process\";\nimport { delimiter as o, dirname as s, normalize as c, resolve as l } from \"node:path\";\nimport { cwd as u } from \"node:process\";\nimport d from \"node:readline\";\nconst f = /^[A-Za-z]:\\//;\nfunction p(e = ``) {\n\treturn e && e.replace(/\\\\/g, `/`).replace(f, (e) => e.toUpperCase());\n}\nconst ee = /^[/\\\\]{2}/, te = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/, m = /^[A-Za-z]:$/, h = /^\\/([A-Za-z]:)?$/, g = function(e) {\n\tif (e.length === 0) return `.`;\n\te = p(e);\n\tlet t = e.match(ee), n = x(e), r = e[e.length - 1] === `/`;\n\treturn e = b(e, !n), e.length === 0 ? n ? `/` : r ? `./` : `.` : (r && (e += `/`), m.test(e) && (e += `/`), t ? n ? `//${e}` : `//./${e}` : n && !x(e) ? `/${e}` : e);\n}, _ = function(...e) {\n\tlet t = ``;\n\tfor (let n of e) if (n) if (t.length > 0) {\n\t\tlet e = t[t.length - 1] === `/`, r = n[0] === `/`;\n\t\te && r ? t += n.slice(1) : t += e || r ? n : `/${n}`;\n\t} else t += n;\n\treturn g(t);\n};\nfunction v() {\n\treturn typeof process < `u` && typeof process.cwd == `function` ? process.cwd().replace(/\\\\/g, `/`) : `/`;\n}\nconst y = function(...e) {\n\te = e.map((e) => p(e));\n\tlet t = ``, n = !1;\n\tfor (let r = e.length - 1; r >= -1 && !n; r--) {\n\t\tlet i = r >= 0 ? e[r] : v();\n\t\t!i || i.length === 0 || (t = `${i}/${t}`, n = x(i));\n\t}\n\treturn t = b(t, !n), n && !x(t) ? `/${t}` : t.length > 0 ? t : `.`;\n};\nfunction b(e, t) {\n\tlet n = ``, r = 0, i = -1, a = 0, o = null;\n\tfor (let s = 0; s <= e.length; ++s) {\n\t\tif (s < e.length) o = e[s];\n\t\telse if (o === `/`) break;\n\t\telse o = `/`;\n\t\tif (o === `/`) {\n\t\t\tif (!(i === s - 1 || a === 1)) if (a === 2) {\n\t\t\t\tif (n.length < 2 || r !== 2 || n[n.length - 1] !== `.` || n[n.length - 2] !== `.`) {\n\t\t\t\t\tif (n.length > 2) {\n\t\t\t\t\t\tlet e = n.lastIndexOf(`/`);\n\t\t\t\t\t\te === -1 ? (n = ``, r = 0) : (n = n.slice(0, e), r = n.length - 1 - n.lastIndexOf(`/`)), i = s, a = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (n.length > 0) {\n\t\t\t\t\t\tn = ``, r = 0, i = s, a = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tt && (n += n.length > 0 ? `/..` : `..`, r = 2);\n\t\t\t} else n.length > 0 ? n += `/${e.slice(i + 1, s)}` : n = e.slice(i + 1, s), r = s - i - 1;\n\t\t\ti = s, a = 0;\n\t\t} else o === `.` && a !== -1 ? ++a : a = -1;\n\t}\n\treturn n;\n}\nconst x = function(e) {\n\treturn te.test(e);\n}, S = function(e, t) {\n\tlet n = y(e).replace(h, `$1`).split(`/`), r = y(t).replace(h, `$1`).split(`/`);\n\tif (r[0][1] === `:` && n[0][1] === `:` && n[0] !== r[0]) return r.join(`/`);\n\tlet i = [...n];\n\tfor (let e of i) {\n\t\tif (r[0] !== e) break;\n\t\tn.shift(), r.shift();\n\t}\n\treturn [...n.map(() => `..`), ...r].join(`/`);\n}, C = function(e) {\n\tlet t = p(e).replace(/\\/$/, ``).split(`/`).slice(0, -1);\n\treturn t.length === 1 && m.test(t[0]) && (t[0] += `/`), t.join(`/`) || (x(e) ? `/` : `.`);\n}, ne = function(e, t) {\n\tlet n = p(e).split(`/`), r = ``;\n\tfor (let e = n.length - 1; e >= 0; e--) {\n\t\tlet t = n[e];\n\t\tif (t) {\n\t\t\tr = t;\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn t && r.endsWith(t) ? r.slice(0, -t.length) : r;\n};\nglobalThis.process?.platform;\nvar w = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), T = t(import.meta.url);\nconst re = /^path$/i, E = {\n\tkey: `PATH`,\n\tvalue: ``\n};\nfunction D(e) {\n\tfor (let t in e) {\n\t\tif (!Object.prototype.hasOwnProperty.call(e, t) || !re.test(t)) continue;\n\t\tlet n = e[t];\n\t\treturn n ? {\n\t\t\tkey: t,\n\t\t\tvalue: n\n\t\t} : E;\n\t}\n\treturn E;\n}\nfunction O(e, t) {\n\tlet n = t.value.split(o), r = [], i = e, a;\n\tdo\n\t\tr.push(l(i, `node_modules`, `.bin`)), a = i, i = s(i);\n\twhile (i !== a);\n\tlet c = r.concat(n).join(o);\n\treturn {\n\t\tkey: t.key,\n\t\tvalue: c\n\t};\n}\nfunction k(e, t) {\n\tlet n = {\n\t\t...process.env,\n\t\t...t\n\t}, r = O(e, D(n));\n\treturn n[r.key] = r.value, n;\n}\nconst A = (e) => {\n\tlet t = e.length, n = new i(), r = () => {\n\t\t--t === 0 && n.emit(`end`);\n\t};\n\tfor (let t of e) t.pipe(n, { end: !1 }), t.on(`end`, r);\n\treturn n;\n};\nvar j = w(((e, t) => {\n\tt.exports = a, a.sync = o;\n\tvar n = T(`fs`);\n\tfunction r(e, t) {\n\t\tvar n = t.pathExt === void 0 ? process.env.PATHEXT : t.pathExt;\n\t\tif (!n || (n = n.split(`;`), n.indexOf(``) !== -1)) return !0;\n\t\tfor (var r = 0; r < n.length; r++) {\n\t\t\tvar i = n[r].toLowerCase();\n\t\t\tif (i && e.substr(-i.length).toLowerCase() === i) return !0;\n\t\t}\n\t\treturn !1;\n\t}\n\tfunction i(e, t, n) {\n\t\treturn !e.isSymbolicLink() && !e.isFile() ? !1 : r(t, n);\n\t}\n\tfunction a(e, t, r) {\n\t\tn.stat(e, function(n, a) {\n\t\t\tr(n, n ? !1 : i(a, e, t));\n\t\t});\n\t}\n\tfunction o(e, t) {\n\t\treturn i(n.statSync(e), e, t);\n\t}\n})), M = w(((e, t) => {\n\tt.exports = r, r.sync = i;\n\tvar n = T(`fs`);\n\tfunction r(e, t, r) {\n\t\tn.stat(e, function(e, n) {\n\t\t\tr(e, e ? !1 : a(n, t));\n\t\t});\n\t}\n\tfunction i(e, t) {\n\t\treturn a(n.statSync(e), t);\n\t}\n\tfunction a(e, t) {\n\t\treturn e.isFile() && o(e, t);\n\t}\n\tfunction o(e, t) {\n\t\tvar n = e.mode, r = e.uid, i = e.gid, a = t.uid === void 0 ? process.getuid && process.getuid() : t.uid, o = t.gid === void 0 ? process.getgid && process.getgid() : t.gid, s = 64, c = 8, l = 1, u = s | c;\n\t\treturn n & l || n & c && i === o || n & s && r === a || n & u && a === 0;\n\t}\n})), N = w(((e, t) => {\n\tT(`fs`);\n\tvar n = process.platform === `win32` || global.TESTING_WINDOWS ? j() : M();\n\tt.exports = r, r.sync = i;\n\tfunction r(e, t, i) {\n\t\tif (typeof t == `function` && (i = t, t = {}), !i) {\n\t\t\tif (typeof Promise != `function`) throw TypeError(`callback not provided`);\n\t\t\treturn new Promise(function(n, i) {\n\t\t\t\tr(e, t || {}, function(e, t) {\n\t\t\t\t\te ? i(e) : n(t);\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t\tn(e, t || {}, function(e, n) {\n\t\t\te && (e.code === `EACCES` || t && t.ignoreErrors) && (e = null, n = !1), i(e, n);\n\t\t});\n\t}\n\tfunction i(e, t) {\n\t\ttry {\n\t\t\treturn n.sync(e, t || {});\n\t\t} catch (e) {\n\t\t\tif (t && t.ignoreErrors || e.code === `EACCES`) return !1;\n\t\t\tthrow e;\n\t\t}\n\t}\n})), P = w(((e, t) => {\n\tlet n = process.platform === `win32` || process.env.OSTYPE === `cygwin` || process.env.OSTYPE === `msys`, r = T(`path`), i = n ? `;` : `:`, a = N(), o = (e) => Object.assign(Error(`not found: ${e}`), { code: `ENOENT` }), s = (e, t) => {\n\t\tlet r = t.colon || i, a = e.match(/\\//) || n && e.match(/\\\\/) ? [``] : [...n ? [process.cwd()] : [], ...(t.path || process.env.PATH || ``).split(r)], o = n ? t.pathExt || process.env.PATHEXT || `.EXE;.CMD;.BAT;.COM` : ``, s = n ? o.split(r) : [``];\n\t\treturn n && e.indexOf(`.`) !== -1 && s[0] !== `` && s.unshift(``), {\n\t\t\tpathEnv: a,\n\t\t\tpathExt: s,\n\t\t\tpathExtExe: o\n\t\t};\n\t}, c = (e, t, n) => {\n\t\ttypeof t == `function` && (n = t, t = {}), t ||= {};\n\t\tlet { pathEnv: i, pathExt: c, pathExtExe: l } = s(e, t), u = [], d = (n) => new Promise((a, s) => {\n\t\t\tif (n === i.length) return t.all && u.length ? a(u) : s(o(e));\n\t\t\tlet c = i[n], l = /^\".*\"$/.test(c) ? c.slice(1, -1) : c, d = r.join(l, e);\n\t\t\ta(f(!l && /^\\.[\\\\\\/]/.test(e) ? e.slice(0, 2) + d : d, n, 0));\n\t\t}), f = (e, n, r) => new Promise((i, o) => {\n\t\t\tif (r === c.length) return i(d(n + 1));\n\t\t\tlet s = c[r];\n\t\t\ta(e + s, { pathExt: l }, (a, o) => {\n\t\t\t\tif (!a && o) if (t.all) u.push(e + s);\n\t\t\t\telse return i(e + s);\n\t\t\t\treturn i(f(e, n, r + 1));\n\t\t\t});\n\t\t});\n\t\treturn n ? d(0).then((e) => n(null, e), n) : d(0);\n\t};\n\tt.exports = c, c.sync = (e, t) => {\n\t\tt ||= {};\n\t\tlet { pathEnv: n, pathExt: i, pathExtExe: c } = s(e, t), l = [];\n\t\tfor (let o = 0; o < n.length; o++) {\n\t\t\tlet s = n[o], u = /^\".*\"$/.test(s) ? s.slice(1, -1) : s, d = r.join(u, e), f = !u && /^\\.[\\\\\\/]/.test(e) ? e.slice(0, 2) + d : d;\n\t\t\tfor (let e = 0; e < i.length; e++) {\n\t\t\t\tlet n = f + i[e];\n\t\t\t\ttry {\n\t\t\t\t\tif (a.sync(n, { pathExt: c })) if (t.all) l.push(n);\n\t\t\t\t\telse return n;\n\t\t\t\t} catch {}\n\t\t\t}\n\t\t}\n\t\tif (t.all && l.length) return l;\n\t\tif (t.nothrow) return null;\n\t\tthrow o(e);\n\t};\n})), F = w(((e, t) => {\n\tlet n = (e = {}) => {\n\t\tlet t = e.env || process.env;\n\t\treturn (e.platform || process.platform) === `win32` ? Object.keys(t).reverse().find((e) => e.toUpperCase() === `PATH`) || `Path` : `PATH`;\n\t};\n\tt.exports = n, t.exports.default = n;\n})), I = w(((e, t) => {\n\tlet n = T(`path`), r = P(), i = F();\n\tfunction a(e, t) {\n\t\tlet a = e.options.env || process.env, o = process.cwd(), s = e.options.cwd != null, c = s && process.chdir !== void 0 && !process.chdir.disabled;\n\t\tif (c) try {\n\t\t\tprocess.chdir(e.options.cwd);\n\t\t} catch {}\n\t\tlet l;\n\t\ttry {\n\t\t\tl = r.sync(e.command, {\n\t\t\t\tpath: a[i({ env: a })],\n\t\t\t\tpathExt: t ? n.delimiter : void 0\n\t\t\t});\n\t\t} catch {} finally {\n\t\t\tc && process.chdir(o);\n\t\t}\n\t\treturn l &&= n.resolve(s ? e.options.cwd : ``, l), l;\n\t}\n\tfunction o(e) {\n\t\treturn a(e) || a(e, !0);\n\t}\n\tt.exports = o;\n})), L = w(((e, t) => {\n\tlet n = /([()\\][%!^\"`<>&|;, *?])/g;\n\tfunction r(e) {\n\t\treturn e = e.replace(n, `^$1`), e;\n\t}\n\tfunction i(e, t) {\n\t\treturn e = `${e}`, e = e.replace(/(?=(\\\\+?)?)\\1\"/g, `$1$1\\\\\"`), e = e.replace(/(?=(\\\\+?)?)\\1$/, `$1$1`), e = `\"${e}\"`, e = e.replace(n, `^$1`), t && (e = e.replace(n, `^$1`)), e;\n\t}\n\tt.exports.command = r, t.exports.argument = i;\n})), R = w(((e, t) => {\n\tt.exports = /^#!(.*)/;\n})), z = w(((e, t) => {\n\tlet n = R();\n\tt.exports = (e = ``) => {\n\t\tlet t = e.match(n);\n\t\tif (!t) return null;\n\t\tlet [r, i] = t[0].replace(/#! ?/, ``).split(` `), a = r.split(`/`).pop();\n\t\treturn a === `env` ? i : i ? `${a} ${i}` : a;\n\t};\n})), B = w(((e, t) => {\n\tlet n = T(`fs`), r = z();\n\tfunction i(e) {\n\t\tlet t = Buffer.alloc(150), i;\n\t\ttry {\n\t\t\ti = n.openSync(e, `r`), n.readSync(i, t, 0, 150, 0), n.closeSync(i);\n\t\t} catch {}\n\t\treturn r(t.toString());\n\t}\n\tt.exports = i;\n})), V = w(((e, t) => {\n\tlet n = T(`path`), r = I(), i = L(), a = B(), o = process.platform === `win32`, s = /\\.(?:com|exe)$/i, c = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\tfunction l(e) {\n\t\te.file = r(e);\n\t\tlet t = e.file && a(e.file);\n\t\treturn t ? (e.args.unshift(e.file), e.command = t, r(e)) : e.file;\n\t}\n\tfunction u(e) {\n\t\tif (!o) return e;\n\t\tlet t = l(e), r = !s.test(t);\n\t\tif (e.options.forceShell || r) {\n\t\t\tlet r = c.test(t);\n\t\t\te.command = n.normalize(e.command), e.command = i.command(e.command), e.args = e.args.map((e) => i.argument(e, r)), e.args = [\n\t\t\t\t`/d`,\n\t\t\t\t`/s`,\n\t\t\t\t`/c`,\n\t\t\t\t`\"${[e.command].concat(e.args).join(` `)}\"`\n\t\t\t], e.command = process.env.comspec || `cmd.exe`, e.options.windowsVerbatimArguments = !0;\n\t\t}\n\t\treturn e;\n\t}\n\tfunction d(e, t, n) {\n\t\tt && !Array.isArray(t) && (n = t, t = null), t = t ? t.slice(0) : [], n = Object.assign({}, n);\n\t\tlet r = {\n\t\t\tcommand: e,\n\t\t\targs: t,\n\t\t\toptions: n,\n\t\t\tfile: void 0,\n\t\t\toriginal: {\n\t\t\t\tcommand: e,\n\t\t\t\targs: t\n\t\t\t}\n\t\t};\n\t\treturn n.shell ? r : u(r);\n\t}\n\tt.exports = d;\n})), ie = w(((e, t) => {\n\tlet n = process.platform === `win32`;\n\tfunction r(e, t) {\n\t\treturn Object.assign(Error(`${t} ${e.command} ENOENT`), {\n\t\t\tcode: `ENOENT`,\n\t\t\terrno: `ENOENT`,\n\t\t\tsyscall: `${t} ${e.command}`,\n\t\t\tpath: e.command,\n\t\t\tspawnargs: e.args\n\t\t});\n\t}\n\tfunction i(e, t) {\n\t\tif (!n) return;\n\t\tlet r = e.emit;\n\t\te.emit = function(n, i) {\n\t\t\tif (n === `exit`) {\n\t\t\t\tlet n = a(i, t);\n\t\t\t\tif (n) return r.call(e, `error`, n);\n\t\t\t}\n\t\t\treturn r.apply(e, arguments);\n\t\t};\n\t}\n\tfunction a(e, t) {\n\t\treturn n && e === 1 && !t.file ? r(t.original, `spawn`) : null;\n\t}\n\tfunction o(e, t) {\n\t\treturn n && e === 1 && !t.file ? r(t.original, `spawnSync`) : null;\n\t}\n\tt.exports = {\n\t\thookChildProcess: i,\n\t\tverifyENOENT: a,\n\t\tverifyENOENTSync: o,\n\t\tnotFoundError: r\n\t};\n})), H = w(((e, t) => {\n\tlet n = T(`child_process`), r = V(), i = ie();\n\tfunction a(e, t, a) {\n\t\tlet o = r(e, t, a), s = n.spawn(o.command, o.args, o.options);\n\t\treturn i.hookChildProcess(s, o), s;\n\t}\n\tfunction o(e, t, a) {\n\t\tlet o = r(e, t, a), s = n.spawnSync(o.command, o.args, o.options);\n\t\treturn s.error = s.error || i.verifyENOENTSync(s.status, o), s;\n\t}\n\tt.exports = a, t.exports.spawn = a, t.exports.sync = o, t.exports._parse = r, t.exports._enoent = i;\n}))(), U = class extends Error {\n\tresult;\n\toutput;\n\tget exitCode() {\n\t\tif (this.result.exitCode !== null) return this.result.exitCode;\n\t}\n\tconstructor(e, t) {\n\t\tsuper(`Process exited with non-zero status (${e.exitCode})`), this.result = e, this.output = t;\n\t}\n};\nconst W = {\n\ttimeout: void 0,\n\tpersist: !1\n}, G = { windowsHide: !0 };\nfunction K(e, t) {\n\treturn {\n\t\tcommand: c(e),\n\t\targs: t ?? []\n\t};\n}\nfunction q(e) {\n\tlet t = new AbortController();\n\tfor (let n of e) {\n\t\tif (n.aborted) return t.abort(), n;\n\t\tn.addEventListener(`abort`, () => {\n\t\t\tt.abort(n.reason);\n\t\t}, { signal: t.signal });\n\t}\n\treturn t.signal;\n}\nasync function J(e) {\n\tlet t = ``;\n\tfor await (let n of e) t += n.toString();\n\treturn t;\n}\nvar Y = class {\n\t_process;\n\t_aborted = !1;\n\t_options;\n\t_command;\n\t_args;\n\t_resolveClose;\n\t_processClosed;\n\t_thrownError;\n\tget process() {\n\t\treturn this._process;\n\t}\n\tget pid() {\n\t\treturn this._process?.pid;\n\t}\n\tget exitCode() {\n\t\tif (this._process && this._process.exitCode !== null) return this._process.exitCode;\n\t}\n\tconstructor(e, t, n) {\n\t\tthis._options = {\n\t\t\t...W,\n\t\t\t...n\n\t\t}, this._command = e, this._args = t ?? [], this._processClosed = new Promise((e) => {\n\t\t\tthis._resolveClose = e;\n\t\t});\n\t}\n\tkill(e) {\n\t\treturn this._process?.kill(e) === !0;\n\t}\n\tget aborted() {\n\t\treturn this._aborted;\n\t}\n\tget killed() {\n\t\treturn this._process?.killed === !0;\n\t}\n\tpipe(e, t, n) {\n\t\treturn ae(e, t, {\n\t\t\t...n,\n\t\t\tstdin: this\n\t\t});\n\t}\n\tasync *[Symbol.asyncIterator]() {\n\t\tlet e = this._process;\n\t\tif (!e) return;\n\t\tlet t = [];\n\t\tthis._streamErr && t.push(this._streamErr), this._streamOut && t.push(this._streamOut);\n\t\tlet n = A(t), r = d.createInterface({ input: n });\n\t\tfor await (let e of r) yield e.toString();\n\t\tif (await this._processClosed, e.removeAllListeners(), this._thrownError) throw this._thrownError;\n\t\tif (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new U(this);\n\t}\n\tasync _waitForOutput() {\n\t\tlet e = this._process;\n\t\tif (!e) throw Error(`No process was started`);\n\t\tlet [t, n] = await Promise.all([this._streamOut ? J(this._streamOut) : ``, this._streamErr ? J(this._streamErr) : ``]);\n\t\tif (await this._processClosed, this._options?.stdin && await this._options.stdin, e.removeAllListeners(), this._thrownError) throw this._thrownError;\n\t\tlet r = {\n\t\t\tstderr: n,\n\t\t\tstdout: t,\n\t\t\texitCode: this.exitCode\n\t\t};\n\t\tif (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new U(this, r);\n\t\treturn r;\n\t}\n\tthen(e, t) {\n\t\treturn this._waitForOutput().then(e, t);\n\t}\n\t_streamOut;\n\t_streamErr;\n\tspawn() {\n\t\tlet e = u(), t = this._options, n = {\n\t\t\t...G,\n\t\t\t...t.nodeOptions\n\t\t}, r = [];\n\t\tthis._resetState(), t.timeout !== void 0 && r.push(AbortSignal.timeout(t.timeout)), t.signal !== void 0 && r.push(t.signal), t.persist === !0 && (n.detached = !0), r.length > 0 && (n.signal = q(r)), n.env = k(e, n.env);\n\t\tlet { command: i, args: o } = K(this._command, this._args), s = (0, H._parse)(i, o, n), c = a(s.command, s.args, s.options);\n\t\tif (c.stderr && (this._streamErr = c.stderr), c.stdout && (this._streamOut = c.stdout), this._process = c, c.once(`error`, this._onError), c.once(`close`, this._onClose), t.stdin !== void 0 && c.stdin && t.stdin.process) {\n\t\t\tlet { stdout: e } = t.stdin.process;\n\t\t\te && e.pipe(c.stdin);\n\t\t}\n\t}\n\t_resetState() {\n\t\tthis._aborted = !1, this._processClosed = new Promise((e) => {\n\t\t\tthis._resolveClose = e;\n\t\t}), this._thrownError = void 0;\n\t}\n\t_onError = (e) => {\n\t\tif (e.name === `AbortError` && (!(e.cause instanceof Error) || e.cause.name !== `TimeoutError`)) {\n\t\t\tthis._aborted = !0;\n\t\t\treturn;\n\t\t}\n\t\tthis._thrownError = e;\n\t};\n\t_onClose = () => {\n\t\tthis._resolveClose && this._resolveClose();\n\t};\n};\nconst X = (e, t, n) => {\n\tlet r = new Y(e, t, n);\n\treturn r.spawn(), r;\n}, ae = X;\nvar oe = e({\n\tdetectPackageManager: () => $,\n\tinstallDependencies: () => fe,\n\tpackageManagers: () => Q\n});\nasync function se(e, t, n = {}) {\n\tlet r = g(e).split(`/`);\n\tfor (; r.length > 0;) {\n\t\tlet e = await t(r.join(`/`) || `/`);\n\t\tif (e || !n.includeParentDirs) return e;\n\t\tr.pop();\n\t}\n}\nfunction ce(e) {\n\tlet t;\n\treturn () => (t === void 0 && (t = e().then((e) => (t = e, t))), t);\n}\nconst Z = ce(async () => {\n\tif (globalThis.process?.versions?.webcontainer) return !1;\n\ttry {\n\t\tlet { exitCode: e } = await X(`corepack`, [`--version`]);\n\t\treturn e === 0;\n\t} catch {\n\t\treturn !1;\n\t}\n});\nasync function le(e, t, n = {}) {\n\tlet r = e !== `npm` && e !== `bun` && e !== `deno` && n.corepack !== !1 && await Z() ? [`corepack`, [e, ...t]] : [e, t], { exitCode: i, stdout: a, stderr: o } = await X(r[0], r[1], { nodeOptions: {\n\t\tcwd: y(n.cwd || process.cwd()),\n\t\tenv: n.env,\n\t\tstdio: n.silent ? `pipe` : `inherit`\n\t} });\n\tif (i !== 0) throw Error(`\\`${r.flat().join(` `)}\\` failed.${n.silent ? [\n\t\t``,\n\t\ta,\n\t\to\n\t].join(`\n`) : ``}`);\n}\nasync function ue(e = {}) {\n\tlet t = e.cwd || process.cwd(), n = {\n\t\t...process.env,\n\t\t...e.env\n\t}, r = (typeof e.packageManager == `string` ? Q.find((t) => t.name === e.packageManager) : e.packageManager) || await $(e.cwd || process.cwd());\n\tif (!r) throw Error(`No package manager auto-detected.`);\n\treturn {\n\t\tcwd: t,\n\t\tenv: n,\n\t\tsilent: e.silent ?? !1,\n\t\tpackageManager: r,\n\t\tdev: e.dev ?? !1,\n\t\tworkspace: e.workspace,\n\t\tglobal: e.global ?? !1,\n\t\tdry: e.dry ?? !1,\n\t\tcorepack: e.corepack ?? !0\n\t};\n}\nfunction de(e) {\n\tlet [t, n] = (e || ``).split(`@`), [r, i] = n?.split(`+`) || [];\n\tif (t && t !== `-` && /^(@[a-z0-9-~][a-z0-9-._~]*\\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(t)) return {\n\t\tname: t,\n\t\tversion: r,\n\t\tbuildMeta: i\n\t};\n\tlet a = (t || ``).replace(/\\W+/g, ``);\n\treturn {\n\t\tname: a,\n\t\tversion: r,\n\t\tbuildMeta: i,\n\t\twarnings: [`Abnormal characters found in \\`packageManager\\` field, sanitizing from \\`${t}\\` to \\`${a}\\``]\n\t};\n}\nconst Q = [\n\t{\n\t\tname: `npm`,\n\t\tcommand: `npm`,\n\t\tlockFile: `package-lock.json`\n\t},\n\t{\n\t\tname: `pnpm`,\n\t\tcommand: `pnpm`,\n\t\tlockFile: `pnpm-lock.yaml`,\n\t\tfiles: [`pnpm-workspace.yaml`]\n\t},\n\t{\n\t\tname: `bun`,\n\t\tcommand: `bun`,\n\t\tlockFile: [`bun.lockb`, `bun.lock`]\n\t},\n\t{\n\t\tname: `yarn`,\n\t\tcommand: `yarn`,\n\t\tlockFile: `yarn.lock`,\n\t\tfiles: [`.yarnrc.yml`]\n\t},\n\t{\n\t\tname: `deno`,\n\t\tcommand: `deno`,\n\t\tlockFile: `deno.lock`,\n\t\tfiles: [`deno.json`]\n\t}\n];\nasync function $(e, t = {}) {\n\tlet i = await se(y(e || `.`), async (e) => {\n\t\tif (!t.ignorePackageJSON) {\n\t\t\tlet t = _(e, `package.json`);\n\t\t\tif (n(t)) {\n\t\t\t\tlet e = JSON.parse(await r(t, `utf8`));\n\t\t\t\tif (e?.packageManager) {\n\t\t\t\t\tlet { name: t, version: n = `0.0.0`, buildMeta: r, warnings: i } = de(e.packageManager);\n\t\t\t\t\tif (t) {\n\t\t\t\t\t\tlet e = n.split(`.`)[0], a = Q.find((n) => n.name === t && n.majorVersion === e) || Q.find((e) => e.name === t);\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tname: t,\n\t\t\t\t\t\t\tcommand: t,\n\t\t\t\t\t\t\tversion: n,\n\t\t\t\t\t\t\tmajorVersion: e,\n\t\t\t\t\t\t\tbuildMeta: r,\n\t\t\t\t\t\t\twarnings: i,\n\t\t\t\t\t\t\tfiles: a?.files,\n\t\t\t\t\t\t\tlockFile: a?.lockFile\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (n(_(e, `deno.json`))) return Q.find((e) => e.name === `deno`);\n\t\t}\n\t\tif (!t.ignoreLockFile) {\n\t\t\tfor (let t of Q) if ([t.lockFile, t.files].flat().filter(Boolean).some((t) => n(y(e, t)))) return { ...t };\n\t\t}\n\t}, { includeParentDirs: t.includeParentDirs ?? !0 });\n\tif (!i && !t.ignoreArgv) {\n\t\tlet e = process.argv[1];\n\t\tif (e) {\n\t\t\tfor (let t of Q) if (RegExp(`[/\\\\\\\\]\\\\.?${t.command}`).test(e)) return t;\n\t\t}\n\t}\n\treturn i;\n}\nasync function fe(e = {}) {\n\tlet t = await ue(e), n = e.frozenLockFile ? {\n\t\tnpm: [`ci`],\n\t\tyarn: [`install`, `--immutable`],\n\t\tbun: [`install`, `--frozen-lockfile`],\n\t\tpnpm: [`install`, `--frozen-lockfile`],\n\t\tdeno: [`install`, `--frozen`]\n\t}[t.packageManager.name] : [`install`];\n\treturn e.ignoreWorkspace && t.packageManager.name === `pnpm` && n.push(`--ignore-workspace`), t.dry || await le(t.packageManager.command, n, {\n\t\tcwd: t.cwd,\n\t\tsilent: t.silent,\n\t\tcorepack: t.corepack\n\t}), { exec: {\n\t\tcommand: t.packageManager.command,\n\t\targs: n\n\t} };\n}\nexport { y as a, S as i, ne as n, C as r, oe as t };\n","import \"node:module\";\n//#region \\0rolldown/runtime.js\nvar __defProp = Object.defineProperty;\nvar __exportAll = (all, no_symbols) => {\n\tlet target = {};\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n\tif (!no_symbols) __defProp(target, Symbol.toStringTag, { value: \"Module\" });\n\treturn target;\n};\n//#endregion\nexport { __exportAll as t };\n","import { a as resolve$1, i as relative, n as basename$1, r as dirname$1 } from \"./libs/nypm.mjs\";\nimport { createWriteStream, existsSync, readdirSync, renameSync } from \"node:fs\";\nimport { mkdir, mkdtemp, readFile, rm, writeFile } from \"node:fs/promises\";\nimport { PassThrough, Readable, pipeline } from \"node:stream\";\nimport { pipeline as pipeline$1 } from \"node:stream/promises\";\nimport { spawn, spawnSync } from \"node:child_process\";\nimport { homedir, tmpdir } from \"node:os\";\nimport { promisify } from \"node:util\";\nimport { join } from \"node:path\";\n//#region src/_utils.ts\nasync function download(url, filePath, options = {}) {\n\tconst infoPath = filePath + \".json\";\n\tconst info = JSON.parse(await readFile(infoPath, \"utf8\").catch(() => \"{}\"));\n\tconst etag = (await sendFetch(url, {\n\t\tmethod: \"HEAD\",\n\t\theaders: options.headers\n\t}).catch(() => void 0))?.headers.get(\"etag\");\n\tif (info.etag === etag && existsSync(filePath)) return;\n\tif (typeof etag === \"string\") info.etag = etag;\n\tconst response = await sendFetch(url, { headers: options.headers });\n\tif (response.status >= 400) throw new Error(`Failed to download ${url}: ${response.status} ${response.statusText}`);\n\tconst stream = createWriteStream(filePath);\n\tawait promisify(pipeline)(response.body, stream);\n\tawait writeFile(infoPath, JSON.stringify(info), \"utf8\");\n}\nconst inputRegex = /^(?<repo>[-\\w.]+\\/[-\\w.]+)(?<subdir>[^#]+)?(?<ref>#[-\\w./@]+)?/;\nconst expandedInputRegex = /^(?<repo>[-\\w.]+(?:\\/[-\\w.]+)+?)(?:::(?<subdir>[^#]*))?(?<ref>#[-\\w./@]+)?$/;\nfunction parseGitURI(input, options) {\n\tconst useExpanded = options?.expandRepo || input.includes(\"::\");\n\tconst m = input.match(useExpanded ? expandedInputRegex : inputRegex)?.groups || {};\n\tconst subdir = useExpanded ? m.subdir ? \"/\" + m.subdir : \"/\" : m.subdir || \"/\";\n\treturn {\n\t\trepo: m.repo || \"\",\n\t\tsubdir,\n\t\tref: m.ref ? m.ref.slice(1) : \"main\"\n\t};\n}\nfunction debug(...args) {\n\tif (process.env.DEBUG) console.debug(\"[giget]\", ...args);\n}\nasync function sendFetch(url, options = {}) {\n\tif (options.headers?.[\"sec-fetch-mode\"]) options.mode = options.headers[\"sec-fetch-mode\"];\n\tconst res = await fetch(url, {\n\t\t...options,\n\t\theaders: normalizeHeaders(options.headers)\n\t}).catch((error) => {\n\t\tthrow new Error(`Failed to download ${url}: ${error}`, { cause: error });\n\t});\n\tif (options.validateStatus && res.status >= 400) throw new Error(`Failed to fetch ${url}: ${res.status} ${res.statusText}`);\n\treturn res;\n}\nfunction cacheDirectory() {\n\tconst cacheDir = process.env.XDG_CACHE_HOME ? resolve$1(process.env.XDG_CACHE_HOME, \"giget\") : resolve$1(homedir(), \".cache/giget\");\n\tif (process.platform === \"win32\") {\n\t\tconst windowsCacheDir = resolve$1(tmpdir(), \"giget\");\n\t\tif (!existsSync(windowsCacheDir) && existsSync(cacheDir)) try {\n\t\t\trenameSync(cacheDir, windowsCacheDir);\n\t\t} catch {}\n\t\treturn windowsCacheDir;\n\t}\n\treturn cacheDir;\n}\nfunction normalizeHeaders(headers = {}) {\n\tconst normalized = {};\n\tfor (const [key, value] of Object.entries(headers)) {\n\t\tif (!value) continue;\n\t\tnormalized[key.toLowerCase()] = value;\n\t}\n\treturn normalized;\n}\nfunction currentShell() {\n\tif (process.env.SHELL) return process.env.SHELL;\n\tif (process.platform === \"win32\") return \"cmd.exe\";\n\treturn \"/bin/bash\";\n}\nfunction startShell(cwd) {\n\tcwd = resolve$1(cwd);\n\tconst shell = currentShell();\n\tconsole.info(`(experimental) Opening shell in ${relative(process.cwd(), cwd)}...`);\n\tspawnSync(shell, [], {\n\t\tcwd,\n\t\tshell: true,\n\t\tstdio: \"inherit\"\n\t});\n}\n//#endregion\n//#region src/git.ts\nconst git = (input, options) => {\n\tconst parsed = parseGitCloneURI(input);\n\treturn {\n\t\tname: parsed.name,\n\t\tversion: parsed.subdir ? `${parsed.version || \"default\"}-${parsed.subdir.replaceAll(\"/\", \"-\")}` : parsed.version,\n\t\ttar: ({ auth } = {}) => _cloneAndTar(parsed, auth ?? options.auth)\n\t};\n};\nfunction parseGitCloneURI(input, opts = {}) {\n\tconst cwd = opts.cwd ?? process.cwd();\n\tlet uri = input.replace(/#.*$/, \"\");\n\tlet pathSubdir;\n\tif (/^[./]/.test(input)) uri = resolve$1(cwd, uri);\n\telse if (/^https?:\\/\\//.test(uri)) {\n\t\tconst httpMatch = /^(https?:\\/\\/[^/]+)\\/([\\w.-]+\\/[\\w.-]+?)(?:\\.git)?(?:\\/(.+))?$/.exec(uri);\n\t\tif (httpMatch) {\n\t\t\tconst [, origin, repo, rest] = httpMatch;\n\t\t\turi = `${origin}/${repo}`;\n\t\t\tif (rest) pathSubdir = rest;\n\t\t}\n\t} else if (uri.includes(\"@\")) {\n\t\tconst sshMatch = /^(.*?:[\\w.-]+\\/[\\w.-]+?)(?:\\.git)?(?:\\/(.+))?$/.exec(uri);\n\t\tif (sshMatch) {\n\t\t\tconst [, repoUri, rest] = sshMatch;\n\t\t\turi = repoUri;\n\t\t\tif (rest) pathSubdir = rest;\n\t\t}\n\t} else {\n\t\tconst hostMap = {\n\t\t\t\"github:\": \"https://github.com/\",\n\t\t\t\"gh:\": \"https://github.com/\",\n\t\t\t\"gitlab:\": \"https://gitlab.com/\",\n\t\t\t\"bitbucket:\": \"https://bitbucket.org/\",\n\t\t\t\"sourcehut:\": \"https://git.sr.ht/~\"\n\t\t};\n\t\tconst host = /^(.+?:)/.exec(uri)?.at(1);\n\t\tif (host && hostMap[host]) uri = uri.replace(host, hostMap[host]);\n\t\telse if (!host) uri = `${(process.env.GIGET_GIT_HOST || \"https://github.com/\").replace(/\\/$/, \"\")}/${uri}`;\n\t\tconst httpMatch = /^(https?:\\/\\/[^/]+\\/~?[\\w.-]+\\/[\\w.-]+?)(?:\\.git)?(?:\\/(.+))?$/.exec(uri);\n\t\tif (httpMatch) {\n\t\t\tconst [, repoUri, rest] = httpMatch;\n\t\t\turi = repoUri;\n\t\t\tif (rest) pathSubdir = rest;\n\t\t}\n\t}\n\tconst name = uri.replace(/^https?:\\/\\//, \"\").replace(/^.+@/, \"\").replace(/(\\.git)?(#.*)?$/, \"\").replace(/^\\W+/, \"\").replaceAll(/[:/]/g, \"-\");\n\tconst [version, hashSubdir] = /#(.+)$/.exec(input)?.at(1)?.split(\":\") ?? [];\n\tconst resolvedVersion = version || void 0;\n\tconst subdir = hashSubdir || pathSubdir;\n\treturn {\n\t\turi,\n\t\tname,\n\t\t...resolvedVersion && { version: resolvedVersion },\n\t\t...subdir && { subdir }\n\t};\n}\nasync function _cloneAndTar(parsed, token) {\n\tconst tmpDir = await mkdtemp(join(tmpdir(), \"giget-git-\"));\n\tif (token && /[\\r\\n]/.test(token)) throw new Error(\"Auth token must not contain newline characters\");\n\tconst execEnv = {\n\t\t...process.env,\n\t\tGIT_TERMINAL_PROMPT: \"0\"\n\t};\n\tif (token) {\n\t\texecEnv.GIT_CONFIG_COUNT = \"1\";\n\t\texecEnv.GIT_CONFIG_KEY_0 = \"http.extraHeader\";\n\t\texecEnv.GIT_CONFIG_VALUE_0 = `Authorization: Bearer ${token}`;\n\t}\n\tconst execOpts = {\n\t\tenv: execEnv,\n\t\ttimeout: 6e4\n\t};\n\tconst status = _createStatus();\n\tconst gitExec = (args) => _gitSpawn(args, execOpts, status);\n\tconst gitExecIn = (args) => _gitSpawn(args, {\n\t\t...execOpts,\n\t\tcwd: tmpDir\n\t}, status);\n\ttry {\n\t\tconst cloneArgs = [\n\t\t\t\"clone\",\n\t\t\t\"--progress\",\n\t\t\t\"--depth\",\n\t\t\t\"1\"\n\t\t];\n\t\tif (parsed.subdir) cloneArgs.push(\"--filter=blob:none\", \"--sparse\", \"--no-checkout\");\n\t\tif (parsed.version) cloneArgs.push(\"--branch\", parsed.version);\n\t\tcloneArgs.push(\"--\", parsed.uri, tmpDir);\n\t\ttry {\n\t\t\tstatus.update(\"Cloning...\");\n\t\t\tawait gitExec(cloneArgs);\n\t\t\tstatus.update(\"Cloned.\");\n\t\t} catch (cloneError) {\n\t\t\tif (!parsed.version) throw cloneError;\n\t\t\tdebug(\"Shallow clone failed, falling back to full clone:\", cloneError);\n\t\t\tstatus.update(\"Shallow clone failed, cloning...\");\n\t\t\tawait rm(tmpDir, {\n\t\t\t\trecursive: true,\n\t\t\t\tforce: true\n\t\t\t});\n\t\t\tawait mkdir(tmpDir, { recursive: true });\n\t\t\tawait gitExecIn([\"init\"]);\n\t\t\tawait gitExecIn([\n\t\t\t\t\"remote\",\n\t\t\t\t\"add\",\n\t\t\t\t\"origin\",\n\t\t\t\tparsed.uri\n\t\t\t]);\n\t\t\tawait gitExecIn([\"fetch\", \"origin\"]);\n\t\t\tawait gitExecIn([\"checkout\", parsed.version]);\n\t\t\tstatus.update(\"Fetched.\");\n\t\t}\n\t\tif (parsed.subdir) {\n\t\t\tstatus.update(`Sparse checkout ${parsed.subdir}...`);\n\t\t\tawait gitExecIn([\n\t\t\t\t\"sparse-checkout\",\n\t\t\t\t\"set\",\n\t\t\t\tparsed.subdir\n\t\t\t]);\n\t\t\tawait gitExecIn([\"checkout\"]);\n\t\t}\n\t\tstatus.update(\"Packing...\");\n\t\tconst tarDir = parsed.subdir ? join(tmpDir, parsed.subdir) : tmpDir;\n\t\tconst { create } = await import(\"./libs/tar.mjs\").then((n) => n.t);\n\t\tstatus.done();\n\t\tconst stream = create({\n\t\t\tgzip: true,\n\t\t\tcwd: tarDir,\n\t\t\tfilter: (path) => !path.startsWith(\".git/\") && path !== \".git\" && !path.startsWith(\"./.git/\") && path !== \"./.git\"\n\t\t}, [\".\"]).pipe(new PassThrough());\n\t\tlet cleaned = false;\n\t\tconst cleanup = () => {\n\t\t\tif (cleaned) return;\n\t\t\tcleaned = true;\n\t\t\trm(tmpDir, {\n\t\t\t\trecursive: true,\n\t\t\t\tforce: true\n\t\t\t});\n\t\t};\n\t\tstream.on(\"end\", cleanup);\n\t\tstream.on(\"error\", cleanup);\n\t\tstream.on(\"close\", cleanup);\n\t\treturn stream;\n\t} catch (error) {\n\t\tstatus.done();\n\t\tawait rm(tmpDir, {\n\t\t\trecursive: true,\n\t\t\tforce: true\n\t\t});\n\t\tthrow error;\n\t}\n}\nconst _spinnerFrames = [\n\t\"⠋\",\n\t\"⠙\",\n\t\"⠹\",\n\t\"⠸\",\n\t\"⠼\",\n\t\"⠴\",\n\t\"⠦\",\n\t\"⠧\",\n\t\"⠇\",\n\t\"⠏\"\n];\nfunction _gitSpawn(args, opts, status) {\n\treturn new Promise((resolve, reject) => {\n\t\tconst proc = spawn(\"git\", args, {\n\t\t\t...opts,\n\t\t\tstdio: [\n\t\t\t\t\"ignore\",\n\t\t\t\t\"pipe\",\n\t\t\t\t\"pipe\"\n\t\t\t]\n\t\t});\n\t\tproc.stdout.resume();\n\t\tlet lastLine = \"\";\n\t\tproc.stderr?.on(\"data\", (chunk) => {\n\t\t\tconst str = chunk.toString();\n\t\t\tfor (const line of str.split(/[\\r\\n]/)) {\n\t\t\t\tconst clean = line.trim();\n\t\t\t\tif (clean) lastLine = clean;\n\t\t\t}\n\t\t\tif (status) status.update(lastLine);\n\t\t});\n\t\tproc.on(\"close\", (code) => {\n\t\t\tif (code === 0) resolve(lastLine);\n\t\t\telse reject(/* @__PURE__ */ new Error(`git ${args[0]} exited with code ${code}. Is git installed?`));\n\t\t});\n\t\tproc.on(\"error\", (err) => {\n\t\t\tif (err.code === \"ENOENT\") reject(/* @__PURE__ */ new Error(\"git is not installed or not found in PATH\"));\n\t\t\telse reject(err);\n\t\t});\n\t});\n}\nfunction _createStatus() {\n\tif (!process.stderr.isTTY) return {\n\t\tupdate(_text) {},\n\t\tdone() {}\n\t};\n\tlet msg = \"\";\n\tlet frame = 0;\n\tconst render = () => {\n\t\tconst spinner = _spinnerFrames[frame % _spinnerFrames.length];\n\t\tframe++;\n\t\tprocess.stderr.write(`\\x1B[2K\\r\\x1B[2m${spinner} ${msg}\\x1B[0m`);\n\t};\n\tconst interval = setInterval(render, 80);\n\treturn {\n\t\tupdate(text) {\n\t\t\tmsg = text;\n\t\t\trender();\n\t\t},\n\t\tdone() {\n\t\t\tclearInterval(interval);\n\t\t\tprocess.stderr.write(\"\\x1B[2K\\r\");\n\t\t}\n\t};\n}\n//#endregion\n//#region src/providers.ts\nconst http = async (input, options) => {\n\tif (input.endsWith(\".json\")) return await _httpJSON(input, options);\n\tconst url = new URL(input);\n\tlet name = basename$1(url.pathname);\n\ttry {\n\t\tconst head = await sendFetch(url.href, {\n\t\t\tmethod: \"HEAD\",\n\t\t\tvalidateStatus: true,\n\t\t\theaders: { authorization: options.auth ? `Bearer ${options.auth}` : void 0 }\n\t\t});\n\t\tif ((head.headers.get(\"content-type\") || \"\").includes(\"application/json\")) return await _httpJSON(input, options);\n\t\tconst filename = head.headers.get(\"content-disposition\")?.match(/filename=\"?(.+)\"?/)?.[1];\n\t\tif (filename) name = filename.split(\".\")[0];\n\t} catch (error) {\n\t\tdebug(`Failed to fetch HEAD for ${url.href}:`, error);\n\t}\n\treturn {\n\t\tname: `${name}-${url.href.slice(0, 8)}`,\n\t\tversion: \"\",\n\t\tsubdir: \"\",\n\t\ttar: url.href,\n\t\tdefaultDir: name,\n\t\theaders: { Authorization: options.auth ? `Bearer ${options.auth}` : void 0 }\n\t};\n};\nconst _httpJSON = async (input, options) => {\n\tconst info = await (await sendFetch(input, {\n\t\tvalidateStatus: true,\n\t\theaders: { authorization: options.auth ? `Bearer ${options.auth}` : void 0 }\n\t})).json();\n\tif (!info.tar || !info.name) throw new Error(`Invalid template info from ${input}. name or tar fields are missing!`);\n\treturn info;\n};\nconst github = (input, options) => {\n\tconst parsed = parseGitURI(input);\n\tconst githubAPIURL = process.env.GIGET_GITHUB_URL || \"https://api.github.com\";\n\treturn {\n\t\tname: parsed.repo.replace(\"/\", \"-\"),\n\t\tversion: parsed.ref,\n\t\tsubdir: parsed.subdir,\n\t\theaders: {\n\t\t\tAuthorization: options.auth ? `Bearer ${options.auth}` : void 0,\n\t\t\tAccept: \"application/vnd.github+json\",\n\t\t\t\"X-GitHub-Api-Version\": \"2022-11-28\"\n\t\t},\n\t\turl: `${githubAPIURL.replace(\"api.github.com\", \"github.com\")}/${parsed.repo}/tree/${parsed.ref}${parsed.subdir}`,\n\t\ttar: `${githubAPIURL}/repos/${parsed.repo}/tarball/${parsed.ref}`\n\t};\n};\nconst gitlab = (input, options) => {\n\tconst parsed = parseGitURI(input, { expandRepo: true });\n\tconst gitlab = process.env.GIGET_GITLAB_URL || \"https://gitlab.com\";\n\treturn {\n\t\tname: parsed.repo.replace(\"/\", \"-\"),\n\t\tversion: parsed.ref,\n\t\tsubdir: parsed.subdir,\n\t\theaders: {\n\t\t\tauthorization: options.auth ? `Bearer ${options.auth}` : void 0,\n\t\t\t\"sec-fetch-mode\": \"same-origin\"\n\t\t},\n\t\turl: `${gitlab}/${parsed.repo}/tree/${parsed.ref}${parsed.subdir}`,\n\t\ttar: `${gitlab}/${parsed.repo}/-/archive/${parsed.ref}.tar.gz`\n\t};\n};\nconst bitbucket = (input, options) => {\n\tconst parsed = parseGitURI(input);\n\treturn {\n\t\tname: parsed.repo.replace(\"/\", \"-\"),\n\t\tversion: parsed.ref,\n\t\tsubdir: parsed.subdir,\n\t\theaders: { authorization: options.auth ? `Bearer ${options.auth}` : void 0 },\n\t\turl: `https://bitbucket.com/${parsed.repo}/src/${parsed.ref}${parsed.subdir}`,\n\t\ttar: `https://bitbucket.org/${parsed.repo}/get/${parsed.ref}.tar.gz`\n\t};\n};\nconst sourcehut = (input, options) => {\n\tconst parsed = parseGitURI(input);\n\treturn {\n\t\tname: parsed.repo.replace(\"/\", \"-\"),\n\t\tversion: parsed.ref,\n\t\tsubdir: parsed.subdir,\n\t\theaders: { authorization: options.auth ? `Bearer ${options.auth}` : void 0 },\n\t\turl: `https://git.sr.ht/~${parsed.repo}/tree/${parsed.ref}/item${parsed.subdir}`,\n\t\ttar: `https://git.sr.ht/~${parsed.repo}/archive/${parsed.ref}.tar.gz`\n\t};\n};\nconst providers = {\n\thttp,\n\thttps: http,\n\tgit,\n\tgithub,\n\tgh: github,\n\tgitlab,\n\tbitbucket,\n\tsourcehut\n};\n//#endregion\n//#region src/registry.ts\nconst DEFAULT_REGISTRY = \"https://raw.githubusercontent.com/unjs/giget/main/templates\";\nconst registryProvider = (registryEndpoint = DEFAULT_REGISTRY, options = {}) => {\n\treturn (async (input) => {\n\t\tconst start = Date.now();\n\t\tconst registryURL = `${registryEndpoint}/${input}.json`;\n\t\tconst result = await sendFetch(registryURL, { headers: { authorization: options.auth ? `Bearer ${options.auth}` : void 0 } });\n\t\tif (result.status >= 400) throw new Error(`Failed to download ${input} template info from ${registryURL}: ${result.status} ${result.statusText}`);\n\t\tconst info = await result.json();\n\t\tif (!info.tar || !info.name) throw new Error(`Invalid template info from ${registryURL}. name or tar fields are missing!`);\n\t\tdebug(`Fetched ${input} template info from ${registryURL} in ${Date.now() - start}ms`);\n\t\treturn info;\n\t});\n};\n//#endregion\n//#region src/giget.ts\nconst sourceProtoRe = /^([\\w+-.]+):/;\nasync function downloadTemplate(input, options = {}) {\n\toptions.registry = process.env.GIGET_REGISTRY ?? options.registry;\n\toptions.auth = process.env.GIGET_AUTH ?? options.auth;\n\tconst registry = options.registry === false ? void 0 : registryProvider(options.registry, { auth: options.auth });\n\tlet providerName = options.provider || (registry ? \"registry\" : \"github\");\n\tlet source = input;\n\tconst sourceProviderMatch = input.match(sourceProtoRe);\n\tif (sourceProviderMatch) {\n\t\tproviderName = sourceProviderMatch[1];\n\t\tsource = input.slice(sourceProviderMatch[0].length);\n\t\tif (providerName === \"http\" || providerName === \"https\") source = input;\n\t}\n\tif (providerName.endsWith(\"+git\")) {\n\t\tsource = `${providerName.slice(0, -4)}:${source}`;\n\t\tproviderName = \"git\";\n\t}\n\tconst provider = options.providers?.[providerName] || providers[providerName] || registry;\n\tif (!provider) throw new Error(`Unsupported provider: ${providerName}`);\n\tconst template = await Promise.resolve().then(() => provider(source, { auth: options.auth })).catch((error) => {\n\t\tthrow new Error(`Failed to download template from ${providerName}: ${error.message}`);\n\t});\n\tif (!template) throw new Error(`Failed to resolve template from ${providerName}`);\n\ttemplate.name = (template.name || \"template\").replace(/[^\\da-z-]/gi, \"-\");\n\ttemplate.defaultDir = (template.defaultDir || template.name).replace(/[^\\da-z-]/gi, \"-\");\n\tconst tarPath = resolve$1(resolve$1(cacheDirectory(), providerName, template.name), (template.version || template.name) + \".tar.gz\");\n\tif (options.preferOffline && existsSync(tarPath)) options.offline = true;\n\tif (!options.offline) {\n\t\tawait mkdir(dirname$1(tarPath), { recursive: true });\n\t\tconst s = Date.now();\n\t\tif (typeof template.tar === \"function\") {\n\t\t\tconst tarFn = template.tar;\n\t\t\tawait (async () => {\n\t\t\t\tconst stream = await tarFn({ auth: options.auth });\n\t\t\t\tawait pipeline$1(stream instanceof Readable ? stream : Readable.fromWeb(stream), createWriteStream(tarPath));\n\t\t\t})().catch((error) => {\n\t\t\t\tif (!existsSync(tarPath)) throw error;\n\t\t\t\tdebug(\"Download error. Using cached version:\", error);\n\t\t\t\toptions.offline = true;\n\t\t\t});\n\t\t} else await download(template.tar, tarPath, { headers: {\n\t\t\tAuthorization: options.auth ? `Bearer ${options.auth}` : void 0,\n\t\t\t...normalizeHeaders(template.headers)\n\t\t} }).catch((error) => {\n\t\t\tif (!existsSync(tarPath)) throw error;\n\t\t\tdebug(\"Download error. Using cached version:\", error);\n\t\t\toptions.offline = true;\n\t\t});\n\t\tdebug(`Downloaded to ${tarPath} in ${Date.now() - s}ms`);\n\t}\n\tif (!existsSync(tarPath)) throw new Error(`Tarball not found: ${tarPath} (offline: ${options.offline})`);\n\tconst extractPath = resolve$1(resolve$1(options.cwd || \".\"), options.dir || template.defaultDir);\n\tif (options.forceClean) await rm(extractPath, {\n\t\trecursive: true,\n\t\tforce: true\n\t});\n\tif (!options.force && existsSync(extractPath) && readdirSync(extractPath).length > 0) throw new Error(`Destination ${extractPath} already exists.`);\n\tawait mkdir(extractPath, { recursive: true });\n\tconst s = Date.now();\n\tconst subdir = template.subdir?.replace(/^\\//, \"\") || \"\";\n\tconst { extract } = await import(\"./libs/tar.mjs\").then((n) => n.t);\n\tawait extract({\n\t\tfile: tarPath,\n\t\tcwd: extractPath,\n\t\tonReadEntry(entry) {\n\t\t\tentry.path = entry.path.split(\"/\").splice(1).join(\"/\");\n\t\t\tif (subdir) if (entry.path.startsWith(subdir + \"/\")) entry.path = entry.path.slice(subdir.length);\n\t\t\telse entry.path = \"\";\n\t\t}\n\t});\n\tdebug(`Extracted to ${extractPath} in ${Date.now() - s}ms`);\n\tif (options.install) {\n\t\tdebug(\"Installing dependencies...\");\n\t\tconst { installDependencies } = await import(\"./libs/nypm.mjs\").then((n) => n.t);\n\t\tawait installDependencies({\n\t\t\tcwd: extractPath,\n\t\t\tsilent: options.silent,\n\t\t\t...typeof options.install === \"object\" ? options.install : {}\n\t\t});\n\t}\n\treturn {\n\t\t...template,\n\t\tsource,\n\t\tdir: extractPath\n\t};\n}\n//#endregion\nexport { registryProvider as n, startShell as r, downloadTemplate as t };\n","import { n as registryProvider, r as startShell, t as downloadTemplate } from \"./_chunks/giget.mjs\";\nexport { downloadTemplate, registryProvider, startShell };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAiD;AACA;AACP;AACO;AACF;AACC;AACuC;AAC/C;AACV;AAC9B;AACA;AACA;AACA;AACA,mBAAmB,EAAE,gCAAgC,EAAE;AACvD;AACA;AACA;AACA,0HAA0H,EAAE,WAAW,EAAE,qBAAqB,EAAE;AAChK,CAAC;AACD;AACA;AACA;AACA,mDAAmD,EAAE;AACrD,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,eAAe;AAC3C;AACA,kCAAkC,EAAE,GAAG,EAAE;AACzC;AACA,uCAAuC,EAAE;AACzC;AACA;AACA;AACA,iBAAiB,eAAe;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,KAAK,6BAA6B,kBAAkB;AACpD;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD;AACA,4BAA4B,QAAQ;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,aAAa,+BAA+B,8CAAC;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,uBAAuB,oCAAC;AACxB;AACA,SAAS,sCAAC,yCAAyC,sCAAC;AACpD;AACA,0BAA0B,oCAAC;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,2BAA2B,wCAAC;AAC5B;AACA;AACA,8BAA8B,SAAS;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B,kBAAkB,cAAc;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA,gBAAgB;AAChB;AACA,KAAK;AACL,IAAI;AACJ;AACA,cAAc;AACd;AACA,GAAG;AACH;AACA;AACA;AACA,2BAA2B;AAC3B,IAAI;AACJ;AACA;AACA;AACA;AACA,CAAC;AACD,oIAAoI,+DAA+D,EAAE,MAAM,gBAAgB;AAC3N,0MAA0M,KAAK,KAAK;AACpN;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,0CAA0C;AAC1C,QAAQ,wCAAwC;AAChD;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,cAAc,YAAY;AAC1B;AACA;AACA;AACA,IAAI;AACJ,GAAG;AACH;AACA;AACA;AACA;AACA,QAAQ,wCAAwC;AAChD,kBAAkB,cAAc;AAChC;AACA,mBAAmB,cAAc;AACjC;AACA;AACA,qBAAqB,YAAY;AACjC;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,gBAAgB;AAChB;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA,IAAI;AACJ,IAAI,SAAS;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,2BAA2B;AAC3B;AACA;AACA;AACA;AACA,gBAAgB,EAAE,iGAAiG,EAAE;AACrH;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,kCAAkC,GAAG,EAAE,EAAE;AACzC;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,qCAAqC;AAC7C;AACA;AACA;AACA;AACA;AACA,4FAA4F;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,gCAAgC,GAAG,EAAE,WAAW;AAChD;AACA;AACA,eAAe,GAAG,EAAE,UAAU;AAC9B;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,WAAW;AAC3D;AACA;AACA;AACA;AACA;AACA,CAAC,QAAQ;AACT;AACA;AACA,WAAW,wCAAC;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,IAAI,kBAAkB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,8CAAiB,GAAG,UAAU;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,qCAAC;AACX;AACA;AACA,GAAG;AACH;AACA,QAAQ,sBAAsB,gEAAgE,6CAAC;AAC/F;AACA,SAAS,YAAY;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,SAAS,4CAAC;AACV;AACA;AACA;AACA,CAAC;AACD,8BAA8B;AAC9B;AACA,QAAQ,aAAa;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,cAAc;AACtB;AACA,GAAG;AACH;AACA;AACA,CAAC;AACD,8BAA8B;AAC9B,4HAA4H,oCAAoC,wBAAwB;AACxL;AACA;AACA;AACA,IAAI;AACJ,+BAA+B,mBAAmB,YAAY;AAC9D;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,wBAAwB;AACxB;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAyF,EAAE,UAAU,EAAE;AACvG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA,OAAO,uCAAC;AACR,6BAA6B,8CAAC;AAC9B;AACA,WAAW,2DAA2D;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,uCAAC;AACR;AACA;AACA,iFAAiF,uCAAC,qBAAqB;AACvG;AACA,EAAE,IAAI,8CAA8C;AACpD;AACA;AACA;AACA,6CAA6C,UAAU;AACvD;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE,KAAK;AACP;AACA;AACA;AACA;AACoD;;;;;;;;;AC5pB/B;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,0DAA0D,iBAAiB;AAC3E;AACA;AACA;AAC4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACbqE;AAChB;AACN;AACb;AACA;AACR;AACZ;AACJ;AACL;AACjC;AACA,mDAAmD;AACnD;AACA,+BAA+B,sBAAQ,kCAAkC;AACzE;AACA;AACA;AACA,EAAE;AACF,2BAA2B,gCAAU;AACrC;AACA,yCAAyC,0BAA0B;AACnE,mEAAmE,IAAI,IAAI,iBAAiB,EAAE,oBAAoB;AAClH,gBAAgB,uCAAiB;AACjC,OAAO,iCAAS,CAAC,8BAAQ;AACzB,OAAO,uBAAS;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA,EAAE;AACF,wCAAwC,IAAI,IAAI,MAAM,KAAK,cAAc;AACzE,EAAE;AACF,qFAAqF,IAAI,IAAI,YAAY,EAAE,eAAe;AAC1H;AACA;AACA;AACA,+CAA+C,UAAS,wCAAwC,UAAS,CAAC,6BAAO;AACjH;AACA,0BAA0B,UAAS,CAAC,4BAAM;AAC1C,OAAO,gCAAU,qBAAqB,gCAAU;AAChD,GAAG,gCAAU;AACb,IAAI;AACJ;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,6BAA6B;AAC9E;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,4BAA4B,GAAG,mCAAmC;AAChG,UAAU,OAAO,IAAI;AACrB;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA,gCAAgC,UAAS;AACzC;AACA;AACA;AACA;AACA,YAAY,OAAO,GAAG,KAAK;AAC3B;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,yEAAyE,GAAG,IAAI;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,0BAA0B;AACpD,iBAAiB;AACjB;AACA;AACA;AACA,sBAAsB,qBAAO,CAAC,4BAAI,CAAC,4BAAM;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,MAAM;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,SAAS,gBAAE;AACX;AACA;AACA,IAAI;AACJ,SAAS,mBAAK,WAAW,iBAAiB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,cAAc;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,4BAAI;AACrC,UAAU,SAAS,QAAQ,qGAAwB;AACnD;AACA;AACA;AACA;AACA;AACA,GAAG,kBAAkB,iCAAW;AAChC;AACA;AACA;AACA;AACA,GAAG,gBAAE;AACL;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,QAAQ,gBAAE;AACV;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,sCAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,gDAAgD,SAAS,mBAAmB,KAAK;AACjF,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH,EAAE;AACF;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,SAAS,EAAE,IAAI;AACzD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,UAAU;AACtB;AACA;AACA;AACA;AACA,cAAc,wCAAwC,aAAa;AACnE,GAAG;AACH;AACA;AA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"}
|