UNPKG

storybook

Version:

Storybook framework-agnostic API

1,503 lines (1,479 loc) • 350 kB
"use strict"; var Km = Object.create; var Bt = Object.defineProperty; var Xm = Object.getOwnPropertyDescriptor; var Qm = Object.getOwnPropertyNames; var Zm = Object.getPrototypeOf, Jm = Object.prototype.hasOwnProperty; var n = (t, e) => Bt(t, "name", { value: e, configurable: !0 }); var fe = (t, e) => () => (t && (e = t(t = 0)), e); var f = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports), _t = (t, e) => { for (var r in e) Bt(t, r, { get: e[r], enumerable: !0 }); }, ya = (t, e, r, i) => { if (e && typeof e == "object" || typeof e == "function") for (let s of Qm(e)) !Jm.call(t, s) && s !== r && Bt(t, s, { get: () => e[s], enumerable: !(i = Xm(e, s)) || i.enumerable }); return t; }; var L = (t, e, r) => (r = t != null ? Km(Zm(t)) : {}, ya( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. e || !t || !t.__esModule ? Bt(r, "default", { value: t, enumerable: !0 }) : r, t )), Sr = (t) => ya(Bt({}, "__esModule", { value: !0 }), t); // ../node_modules/ts-dedent/dist/index.js var ht = f((Wt) => { "use strict"; Object.defineProperty(Wt, "__esModule", { value: !0 }); Wt.dedent = void 0; function xa(t) { for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; var i = Array.from(typeof t == "string" ? [t] : t); i[i.length - 1] = i[i.length - 1].replace(/\r?\n([\t ]*)$/, ""); var s = i.reduce(function(l, u) { var c = u.match(/\n([\t ]+|(?!\s).)/g); return c ? l.concat(c.map(function(h) { var m, p; return (p = (m = h.match(/[\t ]/g)) === null || m === void 0 ? void 0 : m.length) !== null && p !== void 0 ? p : 0; })) : l; }, []); if (s.length) { var o = new RegExp(` [ ]{` + Math.min.apply(Math, s) + "}", "g"); i = i.map(function(l) { return l.replace(o, ` `); }); } i[0] = i[0].replace(/^\r?\n/, ""); var a = i[0]; return e.forEach(function(l, u) { var c = a.match(/(?:^|\n)( *)$/), h = c ? c[1] : "", m = l; typeof l == "string" && l.includes(` `) && (m = String(l).split(` `).map(function(p, w) { return w === 0 ? p : "" + h + p; }).join(` `)), a += m + i[u + 1]; }), a; } n(xa, "dedent"); Wt.dedent = xa; Wt.default = xa; }); // ../node_modules/camelcase/index.js var Ta = {}; _t(Ta, { default: () => Ca }); function Ca(t, e) { if (!(typeof t == "string" || Array.isArray(t))) throw new TypeError("Expected the input to be `string | string[]`"); if (e = { pascalCase: !1, preserveConsecutiveUppercase: !1, ...e }, Array.isArray(t) ? t = t.map((o) => o.trim()).filter((o) => o.length).join("-") : t = t.trim(), t.length === 0) return ""; let r = e.locale === !1 ? (o) => o.toLowerCase() : (o) => o.toLocaleLowerCase(e.locale), i = e.locale === !1 ? (o) => o.toUpperCase() : (o) => o. toLocaleUpperCase(e.locale); return t.length === 1 ? Li.test(t) ? "" : e.pascalCase ? i(t) : r(t) : (t !== r(t) && (t = ig(t, r, i, e.preserveConsecutiveUppercase)), t = t.replace(rg, ""), t = e.preserveConsecutiveUppercase ? sg(t, r) : r(t), e.pascalCase && (t = i(t.charAt(0)) + t.slice(1)), ng(t, i)); } var eg, tg, Ea, Aa, Li, rg, Pa, Ra, ig, sg, ng, Oa = fe(() => { eg = /[\p{Lu}]/u, tg = /[\p{Ll}]/u, Ea = /^[\p{Lu}](?![\p{Lu}])/gu, Aa = /([\p{Alpha}\p{N}_]|$)/u, Li = /[_.\- ]+/, rg = new RegExp("^" + Li. source), Pa = new RegExp(Li.source + Aa.source, "gu"), Ra = new RegExp("\\d+" + Aa.source, "gu"), ig = /* @__PURE__ */ n((t, e, r, i) => { let s = !1, o = !1, a = !1, l = !1; for (let u = 0; u < t.length; u++) { let c = t[u]; l = u > 2 ? t[u - 3] === "-" : !0, s && eg.test(c) ? (t = t.slice(0, u) + "-" + t.slice(u), s = !1, a = o, o = !0, u++) : o && a && tg. test(c) && (!l || i) ? (t = t.slice(0, u - 1) + "-" + t.slice(u - 1), a = o, o = !1, s = !0) : (s = e(c) === c && r(c) !== c, a = o, o = r(c) === c && e(c) !== c); } return t; }, "preserveCamelCase"), sg = /* @__PURE__ */ n((t, e) => (Ea.lastIndex = 0, t.replaceAll(Ea, (r) => e(r))), "preserveConsecutiveUppercase"), ng = /* @__PURE__ */ n((t, e) => (Pa.lastIndex = 0, Ra.lastIndex = 0, t.replaceAll(Ra, (r, i, s) => ["_", "-"].includes(t.charAt(s + r.length)) ? r : e(r)).replaceAll(Pa, (r, i) => e(i))), "postProcess"); n(Ca, "camelCase"); }); // ../node_modules/globby/node_modules/@sindresorhus/merge-streams/index.js function Yi(t) { if (!Array.isArray(t)) throw new TypeError(`Expected an array, got \`${typeof t}\`.`); for (let s of t) Vi(s); let e = t.some(({ readableObjectMode: s }) => s), r = og(t, e), i = new Wi({ objectMode: e, writableHighWaterMark: r, readableHighWaterMark: r }); for (let s of t) i.add(s); return t.length === 0 && Xa(i), i; } var Tr, Ya, Ui, og, Wi, ag, lg, ug, Vi, cg, za, hg, pg, dg, Ka, Xa, Gi, Qa, fg, Cr, Ga, Ua, Za = fe(() => { Tr = require("node:events"), Ya = require("node:stream"), Ui = require("node:stream/promises"); n(Yi, "mergeStreams"); og = /* @__PURE__ */ n((t, e) => { if (t.length === 0) return 16384; let r = t.filter(({ readableObjectMode: i }) => i === e).map(({ readableHighWaterMark: i }) => i); return Math.max(...r); }, "getHighWaterMark"), Wi = class extends Ya.PassThrough { static { n(this, "MergedStream"); } #e = /* @__PURE__ */ new Set([]); #r = /* @__PURE__ */ new Set([]); #i = /* @__PURE__ */ new Set([]); #t; add(e) { Vi(e), !this.#e.has(e) && (this.#e.add(e), this.#t ??= ag(this, this.#e), cg({ passThroughStream: this, stream: e, streams: this.#e, ended: this.#r, aborted: this.#i, onFinished: this.#t }), e.pipe(this, { end: !1 })); } remove(e) { return Vi(e), this.#e.has(e) ? (e.unpipe(this), !0) : !1; } }, ag = /* @__PURE__ */ n(async (t, e) => { Cr(t, Ga); let r = new AbortController(); try { await Promise.race([ lg(t, r), ug(t, e, r) ]); } finally { r.abort(), Cr(t, -Ga); } }, "onMergedStreamFinished"), lg = /* @__PURE__ */ n(async (t, { signal: e }) => { await (0, Ui.finished)(t, { signal: e, cleanup: !0 }); }, "onMergedStreamEnd"), ug = /* @__PURE__ */ n(async (t, e, { signal: r }) => { for await (let [i] of (0, Tr.on)(t, "unpipe", { signal: r })) e.has(i) && i.emit(Ka); }, "onInputStreamsUnpipe"), Vi = /* @__PURE__ */ n((t) => { if (typeof t?.pipe != "function") throw new TypeError(`Expected a readable stream, got: \`${typeof t}\`.`); }, "validateStream"), cg = /* @__PURE__ */ n(async ({ passThroughStream: t, stream: e, streams: r, ended: i, aborted: s, onFinished: o }) => { Cr(t, Ua); let a = new AbortController(); try { await Promise.race([ hg(o, e), pg({ passThroughStream: t, stream: e, streams: r, ended: i, aborted: s, controller: a }), dg({ stream: e, streams: r, ended: i, aborted: s, controller: a }) ]); } finally { a.abort(), Cr(t, -Ua); } r.size === i.size + s.size && (i.size === 0 && s.size > 0 ? Gi(t) : Xa(t)); }, "endWhenStreamsDone"), za = /* @__PURE__ */ n((t) => t?.code === "ERR_STREAM_PREMATURE_CLOSE", "isAbortError"), hg = /* @__PURE__ */ n( async (t, e) => { try { await t, Gi(e); } catch (r) { za(r) ? Gi(e) : Qa(e, r); } }, "afterMergedStreamFinished"), pg = /* @__PURE__ */ n(async ({ passThroughStream: t, stream: e, streams: r, ended: i, aborted: s, controller: { signal: o } }) => { try { await (0, Ui.finished)(e, { signal: o, cleanup: !0, readable: !0, writable: !1 }), r.has(e) && i.add(e); } catch (a) { if (o.aborted || !r.has(e)) return; za(a) ? s.add(e) : Qa(t, a); } }, "onInputStreamEnd"), dg = /* @__PURE__ */ n(async ({ stream: t, streams: e, ended: r, aborted: i, controller: { signal: s } }) => { await (0, Tr.once)(t, Ka, { signal: s }), e.delete(t), r.delete(t), i.delete(t); }, "onInputStreamUnpipe"), Ka = Symbol("unpipe"), Xa = /* @__PURE__ */ n((t) => { t.writable && t.end(); }, "endStream"), Gi = /* @__PURE__ */ n((t) => { (t.readable || t.writable) && t.destroy(); }, "abortStream"), Qa = /* @__PURE__ */ n((t, e) => { t.destroyed || (t.once("error", fg), t.destroy(e)); }, "errorStream"), fg = /* @__PURE__ */ n(() => { }, "noop"), Cr = /* @__PURE__ */ n((t, e) => { let r = t.getMaxListeners(); r !== 0 && r !== Number.POSITIVE_INFINITY && t.setMaxListeners(r + e); }, "updateMaxListeners"), Ga = 2, Ua = 1; }); // ../node_modules/fast-glob/out/utils/array.js var Ja = f((Pt) => { "use strict"; Object.defineProperty(Pt, "__esModule", { value: !0 }); Pt.splitWhen = Pt.flatten = void 0; function mg(t) { return t.reduce((e, r) => [].concat(e, r), []); } n(mg, "flatten"); Pt.flatten = mg; function gg(t, e) { let r = [[]], i = 0; for (let s of t) e(s) ? (i++, r[i] = []) : r[i].push(s); return r; } n(gg, "splitWhen"); Pt.splitWhen = gg; }); // ../node_modules/fast-glob/out/utils/errno.js var el = f((Or) => { "use strict"; Object.defineProperty(Or, "__esModule", { value: !0 }); Or.isEnoentCodeError = void 0; function yg(t) { return t.code === "ENOENT"; } n(yg, "isEnoentCodeError"); Or.isEnoentCodeError = yg; }); // ../node_modules/fast-glob/out/utils/fs.js var tl = f((Dr) => { "use strict"; Object.defineProperty(Dr, "__esModule", { value: !0 }); Dr.createDirentFromStats = void 0; var zi = class { static { n(this, "DirentFromStats"); } constructor(e, r) { this.name = e, this.isBlockDevice = r.isBlockDevice.bind(r), this.isCharacterDevice = r.isCharacterDevice.bind(r), this.isDirectory = r. isDirectory.bind(r), this.isFIFO = r.isFIFO.bind(r), this.isFile = r.isFile.bind(r), this.isSocket = r.isSocket.bind(r), this.isSymbolicLink = r.isSymbolicLink.bind(r); } }; function xg(t, e) { return new zi(t, e); } n(xg, "createDirentFromStats"); Dr.createDirentFromStats = xg; }); // ../node_modules/fast-glob/out/utils/path.js var nl = f((Q) => { "use strict"; Object.defineProperty(Q, "__esModule", { value: !0 }); Q.convertPosixPathToPattern = Q.convertWindowsPathToPattern = Q.convertPathToPattern = Q.escapePosixPath = Q.escapeWindowsPath = Q.escape = Q.removeLeadingDotSegment = Q.makeAbsolute = Q.unixify = void 0; var bg = require("os"), _g = require("path"), rl = bg.platform() === "win32", vg = 2, Sg = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g, wg = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g, Eg = /^\\\\([.?])/, Pg = /\\(?![!()+@[\]{}])/g; function Rg(t) { return t.replace(/\\/g, "/"); } n(Rg, "unixify"); Q.unixify = Rg; function Ag(t, e) { return _g.resolve(t, e); } n(Ag, "makeAbsolute"); Q.makeAbsolute = Ag; function Cg(t) { if (t.charAt(0) === ".") { let e = t.charAt(1); if (e === "/" || e === "\\") return t.slice(vg); } return t; } n(Cg, "removeLeadingDotSegment"); Q.removeLeadingDotSegment = Cg; Q.escape = rl ? Ki : Xi; function Ki(t) { return t.replace(wg, "\\$2"); } n(Ki, "escapeWindowsPath"); Q.escapeWindowsPath = Ki; function Xi(t) { return t.replace(Sg, "\\$2"); } n(Xi, "escapePosixPath"); Q.escapePosixPath = Xi; Q.convertPathToPattern = rl ? il : sl; function il(t) { return Ki(t).replace(Eg, "//$1").replace(Pg, "/"); } n(il, "convertWindowsPathToPattern"); Q.convertWindowsPathToPattern = il; function sl(t) { return Xi(t); } n(sl, "convertPosixPathToPattern"); Q.convertPosixPathToPattern = sl; }); // ../node_modules/is-extglob/index.js var al = f((WP, ol) => { ol.exports = /* @__PURE__ */ n(function(e) { if (typeof e != "string" || e === "") return !1; for (var r; r = /(\\).|([@?!+*]\(.*\))/g.exec(e); ) { if (r[2]) return !0; e = e.slice(r.index + r[0].length); } return !1; }, "isExtglob"); }); // ../node_modules/is-glob/index.js var cl = f((GP, ul) => { var Tg = al(), ll = { "{": "}", "(": ")", "[": "]" }, Og = /* @__PURE__ */ n(function(t) { if (t[0] === "!") return !0; for (var e = 0, r = -2, i = -2, s = -2, o = -2, a = -2; e < t.length; ) { if (t[e] === "*" || t[e + 1] === "?" && /[\].+)]/.test(t[e]) || i !== -1 && t[e] === "[" && t[e + 1] !== "]" && (i < e && (i = t.indexOf( "]", e)), i > e && (a === -1 || a > i || (a = t.indexOf("\\", e), a === -1 || a > i))) || s !== -1 && t[e] === "{" && t[e + 1] !== "}" && (s = t.indexOf("}", e), s > e && (a = t.indexOf("\\", e), a === -1 || a > s)) || o !== -1 && t[e] === "(" && t[e + 1] === "?" && /[:!=]/. test(t[e + 2]) && t[e + 3] !== ")" && (o = t.indexOf(")", e), o > e && (a = t.indexOf("\\", e), a === -1 || a > o)) || r !== -1 && t[e] === "(" && t[e + 1] !== "|" && (r < e && (r = t.indexOf("|", e)), r !== -1 && t[r + 1] !== ")" && (o = t.indexOf(")", r), o > r && (a = t. indexOf("\\", r), a === -1 || a > o)))) return !0; if (t[e] === "\\") { var l = t[e + 1]; e += 2; var u = ll[l]; if (u) { var c = t.indexOf(u, e); c !== -1 && (e = c + 1); } if (t[e] === "!") return !0; } else e++; } return !1; }, "strictCheck"), Dg = /* @__PURE__ */ n(function(t) { if (t[0] === "!") return !0; for (var e = 0; e < t.length; ) { if (/[*?{}()[\]]/.test(t[e])) return !0; if (t[e] === "\\") { var r = t[e + 1]; e += 2; var i = ll[r]; if (i) { var s = t.indexOf(i, e); s !== -1 && (e = s + 1); } if (t[e] === "!") return !0; } else e++; } return !1; }, "relaxedCheck"); ul.exports = /* @__PURE__ */ n(function(e, r) { if (typeof e != "string" || e === "") return !1; if (Tg(e)) return !0; var i = Og; return r && r.strict === !1 && (i = Dg), i(e); }, "isGlob"); }); // ../node_modules/fast-glob/node_modules/glob-parent/index.js var pl = f((YP, hl) => { "use strict"; var Ig = cl(), kg = require("path").posix.dirname, $g = require("os").platform() === "win32", Qi = "/", Ng = /\\/g, Mg = /[\{\[].*[\}\]]$/, qg = /(^|[^\\])([\{\[]|\([^\)]+$)/, jg = /\\([\!\*\?\|\[\]\(\)\{\}])/g; hl.exports = /* @__PURE__ */ n(function(e, r) { var i = Object.assign({ flipBackslashes: !0 }, r); i.flipBackslashes && $g && e.indexOf(Qi) < 0 && (e = e.replace(Ng, Qi)), Mg.test(e) && (e += Qi), e += "a"; do e = kg(e); while (Ig(e) || qg.test(e)); return e.replace(jg, "$1"); }, "globParent"); }); // ../node_modules/braces/lib/utils.js var Ir = f((me) => { "use strict"; me.isInteger = (t) => typeof t == "number" ? Number.isInteger(t) : typeof t == "string" && t.trim() !== "" ? Number.isInteger(Number(t)) : !1; me.find = (t, e) => t.nodes.find((r) => r.type === e); me.exceedsLimit = (t, e, r = 1, i) => i === !1 || !me.isInteger(t) || !me.isInteger(e) ? !1 : (Number(e) - Number(t)) / Number(r) >= i; me.escapeNode = (t, e = 0, r) => { let i = t.nodes[e]; i && (r && i.type === r || i.type === "open" || i.type === "close") && i.escaped !== !0 && (i.value = "\\" + i.value, i.escaped = !0); }; me.encloseBrace = (t) => t.type !== "brace" ? !1 : t.commas >> 0 + t.ranges >> 0 === 0 ? (t.invalid = !0, !0) : !1; me.isInvalidBrace = (t) => t.type !== "brace" ? !1 : t.invalid === !0 || t.dollar ? !0 : t.commas >> 0 + t.ranges >> 0 === 0 || t.open !== !0 || t.close !== !0 ? (t.invalid = !0, !0) : !1; me.isOpenOrClose = (t) => t.type === "open" || t.type === "close" ? !0 : t.open === !0 || t.close === !0; me.reduce = (t) => t.reduce((e, r) => (r.type === "text" && e.push(r.value), r.type === "range" && (r.type = "text"), e), []); me.flatten = (...t) => { let e = [], r = /* @__PURE__ */ n((i) => { for (let s = 0; s < i.length; s++) { let o = i[s]; if (Array.isArray(o)) { r(o); continue; } o !== void 0 && e.push(o); } return e; }, "flat"); return r(t), e; }; }); // ../node_modules/braces/lib/stringify.js var kr = f((QP, fl) => { "use strict"; var dl = Ir(); fl.exports = (t, e = {}) => { let r = /* @__PURE__ */ n((i, s = {}) => { let o = e.escapeInvalid && dl.isInvalidBrace(s), a = i.invalid === !0 && e.escapeInvalid === !0, l = ""; if (i.value) return (o || a) && dl.isOpenOrClose(i) ? "\\" + i.value : i.value; if (i.value) return i.value; if (i.nodes) for (let u of i.nodes) l += r(u); return l; }, "stringify"); return r(t); }; }); // ../node_modules/is-number/index.js var gl = f((JP, ml) => { "use strict"; ml.exports = function(t) { return typeof t == "number" ? t - t === 0 : typeof t == "string" && t.trim() !== "" ? Number.isFinite ? Number.isFinite(+t) : isFinite(+t) : !1; }; }); // ../node_modules/to-regex-range/index.js var Pl = f((eR, El) => { "use strict"; var yl = gl(), pt = /* @__PURE__ */ n((t, e, r) => { if (yl(t) === !1) throw new TypeError("toRegexRange: expected the first argument to be a number"); if (e === void 0 || t === e) return String(t); if (yl(e) === !1) throw new TypeError("toRegexRange: expected the second argument to be a number."); let i = { relaxZeros: !0, ...r }; typeof i.strictZeros == "boolean" && (i.relaxZeros = i.strictZeros === !1); let s = String(i.relaxZeros), o = String(i.shorthand), a = String(i.capture), l = String(i.wrap), u = t + ":" + e + "=" + s + o + a + l; if (pt.cache.hasOwnProperty(u)) return pt.cache[u].result; let c = Math.min(t, e), h = Math.max(t, e); if (Math.abs(c - h) === 1) { let _ = t + "|" + e; return i.capture ? `(${_})` : i.wrap === !1 ? _ : `(?:${_})`; } let m = wl(t) || wl(e), p = { min: t, max: e, a: c, b: h }, w = [], g = []; if (m && (p.isPadded = m, p.maxLen = String(p.max).length), c < 0) { let _ = h < 0 ? Math.abs(h) : 1; g = xl(_, Math.abs(c), p, i), c = p.a = 0; } return h >= 0 && (w = xl(c, h, p, i)), p.negatives = g, p.positives = w, p.result = Lg(g, w, i), i.capture === !0 ? p.result = `(${p.result}\ )` : i.wrap !== !1 && w.length + g.length > 1 && (p.result = `(?:${p.result})`), pt.cache[u] = p, p.result; }, "toRegexRange"); function Lg(t, e, r) { let i = Zi(t, e, "-", !1, r) || [], s = Zi(e, t, "", !1, r) || [], o = Zi(t, e, "-?", !0, r) || []; return i.concat(o).concat(s).join("|"); } n(Lg, "collatePatterns"); function Fg(t, e) { let r = 1, i = 1, s = _l(t, r), o = /* @__PURE__ */ new Set([e]); for (; t <= s && s <= e; ) o.add(s), r += 1, s = _l(t, r); for (s = vl(e + 1, i) - 1; t < s && s <= e; ) o.add(s), i += 1, s = vl(e + 1, i) - 1; return o = [...o], o.sort(Wg), o; } n(Fg, "splitToRanges"); function Hg(t, e, r) { if (t === e) return { pattern: t, count: [], digits: 0 }; let i = Bg(t, e), s = i.length, o = "", a = 0; for (let l = 0; l < s; l++) { let [u, c] = i[l]; u === c ? o += u : u !== "0" || c !== "9" ? o += Vg(u, c, r) : a++; } return a && (o += r.shorthand === !0 ? "\\d" : "[0-9]"), { pattern: o, count: [a], digits: s }; } n(Hg, "rangeToPattern"); function xl(t, e, r, i) { let s = Fg(t, e), o = [], a = t, l; for (let u = 0; u < s.length; u++) { let c = s[u], h = Hg(String(a), String(c), i), m = ""; if (!r.isPadded && l && l.pattern === h.pattern) { l.count.length > 1 && l.count.pop(), l.count.push(h.count[0]), l.string = l.pattern + Sl(l.count), a = c + 1; continue; } r.isPadded && (m = Gg(c, r, i)), h.string = m + h.pattern + Sl(h.count), o.push(h), a = c + 1, l = h; } return o; } n(xl, "splitToPatterns"); function Zi(t, e, r, i, s) { let o = []; for (let a of t) { let { string: l } = a; !i && !bl(e, "string", l) && o.push(r + l), i && bl(e, "string", l) && o.push(r + l); } return o; } n(Zi, "filterPatterns"); function Bg(t, e) { let r = []; for (let i = 0; i < t.length; i++) r.push([t[i], e[i]]); return r; } n(Bg, "zip"); function Wg(t, e) { return t > e ? 1 : e > t ? -1 : 0; } n(Wg, "compare"); function bl(t, e, r) { return t.some((i) => i[e] === r); } n(bl, "contains"); function _l(t, e) { return Number(String(t).slice(0, -e) + "9".repeat(e)); } n(_l, "countNines"); function vl(t, e) { return t - t % Math.pow(10, e); } n(vl, "countZeros"); function Sl(t) { let [e = 0, r = ""] = t; return r || e > 1 ? `{${e + (r ? "," + r : "")}}` : ""; } n(Sl, "toQuantifier"); function Vg(t, e, r) { return `[${t}${e - t === 1 ? "" : "-"}${e}]`; } n(Vg, "toCharacterClass"); function wl(t) { return /^-?(0+)\d/.test(t); } n(wl, "hasPadding"); function Gg(t, e, r) { if (!e.isPadded) return t; let i = Math.abs(e.maxLen - String(t).length), s = r.relaxZeros !== !1; switch (i) { case 0: return ""; case 1: return s ? "0?" : "0"; case 2: return s ? "0{0,2}" : "00"; default: return s ? `0{0,${i}}` : `0{${i}}`; } } n(Gg, "padZeros"); pt.cache = {}; pt.clearCache = () => pt.cache = {}; El.exports = pt; }); // ../node_modules/fill-range/index.js var ts = f((rR, Il) => { "use strict"; var Ug = require("util"), Al = Pl(), Rl = /* @__PURE__ */ n((t) => t !== null && typeof t == "object" && !Array.isArray(t), "isObject"), Yg = /* @__PURE__ */ n( (t) => (e) => t === !0 ? Number(e) : String(e), "transform"), Ji = /* @__PURE__ */ n((t) => typeof t == "number" || typeof t == "string" && t !== "", "isValidValue"), Yt = /* @__PURE__ */ n((t) => Number.isInteger(+t), "isNumber"), es = /* @__PURE__ */ n((t) => { let e = `${t}`, r = -1; if (e[0] === "-" && (e = e.slice(1)), e === "0") return !1; for (; e[++r] === "0"; ) ; return r > 0; }, "zeros"), zg = /* @__PURE__ */ n((t, e, r) => typeof t == "string" || typeof e == "string" ? !0 : r.stringify === !0, "stringify"), Kg = /* @__PURE__ */ n( (t, e, r) => { if (e > 0) { let i = t[0] === "-" ? "-" : ""; i && (t = t.slice(1)), t = i + t.padStart(i ? e - 1 : e, "0"); } return r === !1 ? String(t) : t; }, "pad"), Nr = /* @__PURE__ */ n((t, e) => { let r = t[0] === "-" ? "-" : ""; for (r && (t = t.slice(1), e--); t.length < e; ) t = "0" + t; return r ? "-" + t : t; }, "toMaxLen"), Xg = /* @__PURE__ */ n((t, e, r) => { t.negatives.sort((l, u) => l < u ? -1 : l > u ? 1 : 0), t.positives.sort((l, u) => l < u ? -1 : l > u ? 1 : 0); let i = e.capture ? "" : "?:", s = "", o = "", a; return t.positives.length && (s = t.positives.map((l) => Nr(String(l), r)).join("|")), t.negatives.length && (o = `-(${i}${t.negatives.map( (l) => Nr(String(l), r)).join("|")})`), s && o ? a = `${s}|${o}` : a = s || o, e.wrap ? `(${i}${a})` : a; }, "toSequence"), Cl = /* @__PURE__ */ n((t, e, r, i) => { if (r) return Al(t, e, { wrap: !1, ...i }); let s = String.fromCharCode(t); if (t === e) return s; let o = String.fromCharCode(e); return `[${s}-${o}]`; }, "toRange"), Tl = /* @__PURE__ */ n((t, e, r) => { if (Array.isArray(t)) { let i = r.wrap === !0, s = r.capture ? "" : "?:"; return i ? `(${s}${t.join("|")})` : t.join("|"); } return Al(t, e, r); }, "toRegex"), Ol = /* @__PURE__ */ n((...t) => new RangeError("Invalid range arguments: " + Ug.inspect(...t)), "rangeError"), Dl = /* @__PURE__ */ n( (t, e, r) => { if (r.strictRanges === !0) throw Ol([t, e]); return []; }, "invalidRange"), Qg = /* @__PURE__ */ n((t, e) => { if (e.strictRanges === !0) throw new TypeError(`Expected step "${t}" to be a number`); return []; }, "invalidStep"), Zg = /* @__PURE__ */ n((t, e, r = 1, i = {}) => { let s = Number(t), o = Number(e); if (!Number.isInteger(s) || !Number.isInteger(o)) { if (i.strictRanges === !0) throw Ol([t, e]); return []; } s === 0 && (s = 0), o === 0 && (o = 0); let a = s > o, l = String(t), u = String(e), c = String(r); r = Math.max(Math.abs(r), 1); let h = es(l) || es(u) || es(c), m = h ? Math.max(l.length, u.length, c.length) : 0, p = h === !1 && zg(t, e, i) === !1, w = i.transform || Yg(p); if (i.toRegex && r === 1) return Cl(Nr(t, m), Nr(e, m), !0, i); let g = { negatives: [], positives: [] }, _ = /* @__PURE__ */ n((k) => g[k < 0 ? "negatives" : "positives"].push(Math.abs(k)), "push"), P = [], E = 0; for (; a ? s >= o : s <= o; ) i.toRegex === !0 && r > 1 ? _(s) : P.push(Kg(w(s, E), m, p)), s = a ? s - r : s + r, E++; return i.toRegex === !0 ? r > 1 ? Xg(g, i, m) : Tl(P, null, { wrap: !1, ...i }) : P; }, "fillNumbers"), Jg = /* @__PURE__ */ n((t, e, r = 1, i = {}) => { if (!Yt(t) && t.length > 1 || !Yt(e) && e.length > 1) return Dl(t, e, i); let s = i.transform || ((p) => String.fromCharCode(p)), o = `${t}`.charCodeAt(0), a = `${e}`.charCodeAt(0), l = o > a, u = Math.min(o, a), c = Math.max(o, a); if (i.toRegex && r === 1) return Cl(u, c, !1, i); let h = [], m = 0; for (; l ? o >= a : o <= a; ) h.push(s(o, m)), o = l ? o - r : o + r, m++; return i.toRegex === !0 ? Tl(h, null, { wrap: !1, options: i }) : h; }, "fillLetters"), $r = /* @__PURE__ */ n((t, e, r, i = {}) => { if (e == null && Ji(t)) return [t]; if (!Ji(t) || !Ji(e)) return Dl(t, e, i); if (typeof r == "function") return $r(t, e, 1, { transform: r }); if (Rl(r)) return $r(t, e, 0, r); let s = { ...i }; return s.capture === !0 && (s.wrap = !0), r = r || s.step || 1, Yt(r) ? Yt(t) && Yt(e) ? Zg(t, e, r, s) : Jg(t, e, Math.max(Math.abs(r), 1), s) : r != null && !Rl(r) ? Qg(r, s) : $r(t, e, 1, r); }, "fill"); Il.exports = $r; }); // ../node_modules/braces/lib/compile.js var Nl = f((sR, $l) => { "use strict"; var ey = ts(), kl = Ir(), ty = /* @__PURE__ */ n((t, e = {}) => { let r = /* @__PURE__ */ n((i, s = {}) => { let o = kl.isInvalidBrace(s), a = i.invalid === !0 && e.escapeInvalid === !0, l = o === !0 || a === !0, u = e.escapeInvalid === !0 ? "\ \\" : "", c = ""; if (i.isOpen === !0) return u + i.value; if (i.isClose === !0) return console.log("node.isClose", u, i.value), u + i.value; if (i.type === "open") return l ? u + i.value : "("; if (i.type === "close") return l ? u + i.value : ")"; if (i.type === "comma") return i.prev.type === "comma" ? "" : l ? i.value : "|"; if (i.value) return i.value; if (i.nodes && i.ranges > 0) { let h = kl.reduce(i.nodes), m = ey(...h, { ...e, wrap: !1, toRegex: !0, strictZeros: !0 }); if (m.length !== 0) return h.length > 1 && m.length > 1 ? `(${m})` : m; } if (i.nodes) for (let h of i.nodes) c += r(h, i); return c; }, "walk"); return r(t); }, "compile"); $l.exports = ty; }); // ../node_modules/braces/lib/expand.js var jl = f((oR, ql) => { "use strict"; var ry = ts(), Ml = kr(), Rt = Ir(), dt = /* @__PURE__ */ n((t = "", e = "", r = !1) => { let i = []; if (t = [].concat(t), e = [].concat(e), !e.length) return t; if (!t.length) return r ? Rt.flatten(e).map((s) => `{${s}}`) : e; for (let s of t) if (Array.isArray(s)) for (let o of s) i.push(dt(o, e, r)); else for (let o of e) r === !0 && typeof o == "string" && (o = `{${o}}`), i.push(Array.isArray(o) ? dt(s, o, r) : s + o); return Rt.flatten(i); }, "append"), iy = /* @__PURE__ */ n((t, e = {}) => { let r = e.rangeLimit === void 0 ? 1e3 : e.rangeLimit, i = /* @__PURE__ */ n((s, o = {}) => { s.queue = []; let a = o, l = o.queue; for (; a.type !== "brace" && a.type !== "root" && a.parent; ) a = a.parent, l = a.queue; if (s.invalid || s.dollar) { l.push(dt(l.pop(), Ml(s, e))); return; } if (s.type === "brace" && s.invalid !== !0 && s.nodes.length === 2) { l.push(dt(l.pop(), ["{}"])); return; } if (s.nodes && s.ranges > 0) { let m = Rt.reduce(s.nodes); if (Rt.exceedsLimit(...m, e.step, r)) throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit."); let p = ry(...m, e); p.length === 0 && (p = Ml(s, e)), l.push(dt(l.pop(), p)), s.nodes = []; return; } let u = Rt.encloseBrace(s), c = s.queue, h = s; for (; h.type !== "brace" && h.type !== "root" && h.parent; ) h = h.parent, c = h.queue; for (let m = 0; m < s.nodes.length; m++) { let p = s.nodes[m]; if (p.type === "comma" && s.type === "brace") { m === 1 && c.push(""), c.push(""); continue; } if (p.type === "close") { l.push(dt(l.pop(), c, u)); continue; } if (p.value && p.type !== "open") { c.push(dt(c.pop(), p.value)); continue; } p.nodes && i(p, s); } return c; }, "walk"); return Rt.flatten(i(t)); }, "expand"); ql.exports = iy; }); // ../node_modules/braces/lib/constants.js var Fl = f((lR, Ll) => { "use strict"; Ll.exports = { MAX_LENGTH: 1e4, // Digits CHAR_0: "0", /* 0 */ CHAR_9: "9", /* 9 */ // Alphabet chars. CHAR_UPPERCASE_A: "A", /* A */ CHAR_LOWERCASE_A: "a", /* a */ CHAR_UPPERCASE_Z: "Z", /* Z */ CHAR_LOWERCASE_Z: "z", /* z */ CHAR_LEFT_PARENTHESES: "(", /* ( */ CHAR_RIGHT_PARENTHESES: ")", /* ) */ CHAR_ASTERISK: "*", /* * */ // Non-alphabetic chars. CHAR_AMPERSAND: "&", /* & */ CHAR_AT: "@", /* @ */ CHAR_BACKSLASH: "\\", /* \ */ CHAR_BACKTICK: "`", /* ` */ CHAR_CARRIAGE_RETURN: "\r", /* \r */ CHAR_CIRCUMFLEX_ACCENT: "^", /* ^ */ CHAR_COLON: ":", /* : */ CHAR_COMMA: ",", /* , */ CHAR_DOLLAR: "$", /* . */ CHAR_DOT: ".", /* . */ CHAR_DOUBLE_QUOTE: '"', /* " */ CHAR_EQUAL: "=", /* = */ CHAR_EXCLAMATION_MARK: "!", /* ! */ CHAR_FORM_FEED: "\f", /* \f */ CHAR_FORWARD_SLASH: "/", /* / */ CHAR_HASH: "#", /* # */ CHAR_HYPHEN_MINUS: "-", /* - */ CHAR_LEFT_ANGLE_BRACKET: "<", /* < */ CHAR_LEFT_CURLY_BRACE: "{", /* { */ CHAR_LEFT_SQUARE_BRACKET: "[", /* [ */ CHAR_LINE_FEED: ` `, /* \n */ CHAR_NO_BREAK_SPACE: "\xA0", /* \u00A0 */ CHAR_PERCENT: "%", /* % */ CHAR_PLUS: "+", /* + */ CHAR_QUESTION_MARK: "?", /* ? */ CHAR_RIGHT_ANGLE_BRACKET: ">", /* > */ CHAR_RIGHT_CURLY_BRACE: "}", /* } */ CHAR_RIGHT_SQUARE_BRACKET: "]", /* ] */ CHAR_SEMICOLON: ";", /* ; */ CHAR_SINGLE_QUOTE: "'", /* ' */ CHAR_SPACE: " ", /* */ CHAR_TAB: " ", /* \t */ CHAR_UNDERSCORE: "_", /* _ */ CHAR_VERTICAL_LINE: "|", /* | */ CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF" /* \uFEFF */ }; }); // ../node_modules/braces/lib/parse.js var Gl = f((uR, Vl) => { "use strict"; var sy = kr(), { MAX_LENGTH: Hl, CHAR_BACKSLASH: rs, /* \ */ CHAR_BACKTICK: ny, /* ` */ CHAR_COMMA: oy, /* , */ CHAR_DOT: ay, /* . */ CHAR_LEFT_PARENTHESES: ly, /* ( */ CHAR_RIGHT_PARENTHESES: uy, /* ) */ CHAR_LEFT_CURLY_BRACE: cy, /* { */ CHAR_RIGHT_CURLY_BRACE: hy, /* } */ CHAR_LEFT_SQUARE_BRACKET: Bl, /* [ */ CHAR_RIGHT_SQUARE_BRACKET: Wl, /* ] */ CHAR_DOUBLE_QUOTE: py, /* " */ CHAR_SINGLE_QUOTE: dy, /* ' */ CHAR_NO_BREAK_SPACE: fy, CHAR_ZERO_WIDTH_NOBREAK_SPACE: my } = Fl(), gy = /* @__PURE__ */ n((t, e = {}) => { if (typeof t != "string") throw new TypeError("Expected a string"); let r = e || {}, i = typeof r.maxLength == "number" ? Math.min(Hl, r.maxLength) : Hl; if (t.length > i) throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`); let s = { type: "root", input: t, nodes: [] }, o = [s], a = s, l = s, u = 0, c = t.length, h = 0, m = 0, p, w = /* @__PURE__ */ n(() => t[h++], "advance"), g = /* @__PURE__ */ n((_) => { if (_.type === "text" && l.type === "dot" && (l.type = "text"), l && l.type === "text" && _.type === "text") { l.value += _.value; return; } return a.nodes.push(_), _.parent = a, _.prev = l, l = _, _; }, "push"); for (g({ type: "bos" }); h < c; ) if (a = o[o.length - 1], p = w(), !(p === my || p === fy)) { if (p === rs) { g({ type: "text", value: (e.keepEscaping ? p : "") + w() }); continue; } if (p === Wl) { g({ type: "text", value: "\\" + p }); continue; } if (p === Bl) { u++; let _; for (; h < c && (_ = w()); ) { if (p += _, _ === Bl) { u++; continue; } if (_ === rs) { p += w(); continue; } if (_ === Wl && (u--, u === 0)) break; } g({ type: "text", value: p }); continue; } if (p === ly) { a = g({ type: "paren", nodes: [] }), o.push(a), g({ type: "text", value: p }); continue; } if (p === uy) { if (a.type !== "paren") { g({ type: "text", value: p }); continue; } a = o.pop(), g({ type: "text", value: p }), a = o[o.length - 1]; continue; } if (p === py || p === dy || p === ny) { let _ = p, P; for (e.keepQuotes !== !0 && (p = ""); h < c && (P = w()); ) { if (P === rs) { p += P + w(); continue; } if (P === _) { e.keepQuotes === !0 && (p += P); break; } p += P; } g({ type: "text", value: p }); continue; } if (p === cy) { m++; let P = { type: "brace", open: !0, close: !1, dollar: l.value && l.value.slice(-1) === "$" || a.dollar === !0, depth: m, commas: 0, ranges: 0, nodes: [] }; a = g(P), o.push(a), g({ type: "open", value: p }); continue; } if (p === hy) { if (a.type !== "brace") { g({ type: "text", value: p }); continue; } let _ = "close"; a = o.pop(), a.close = !0, g({ type: _, value: p }), m--, a = o[o.length - 1]; continue; } if (p === oy && m > 0) { if (a.ranges > 0) { a.ranges = 0; let _ = a.nodes.shift(); a.nodes = [_, { type: "text", value: sy(a) }]; } g({ type: "comma", value: p }), a.commas++; continue; } if (p === ay && m > 0 && a.commas === 0) { let _ = a.nodes; if (m === 0 || _.length === 0) { g({ type: "text", value: p }); continue; } if (l.type === "dot") { if (a.range = [], l.value += p, l.type = "range", a.nodes.length !== 3 && a.nodes.length !== 5) { a.invalid = !0, a.ranges = 0, l.type = "text"; continue; } a.ranges++, a.args = []; continue; } if (l.type === "range") { _.pop(); let P = _[_.length - 1]; P.value += l.value + p, l = P, a.ranges--; continue; } g({ type: "dot", value: p }); continue; } g({ type: "text", value: p }); } do if (a = o.pop(), a.type !== "root") { a.nodes.forEach((E) => { E.nodes || (E.type === "open" && (E.isOpen = !0), E.type === "close" && (E.isClose = !0), E.nodes || (E.type = "text"), E.invalid = !0); }); let _ = o[o.length - 1], P = _.nodes.indexOf(a); _.nodes.splice(P, 1, ...a.nodes); } while (o.length > 0); return g({ type: "eos" }), s; }, "parse"); Vl.exports = gy; }); // ../node_modules/braces/index.js var zl = f((hR, Yl) => { "use strict"; var Ul = kr(), yy = Nl(), xy = jl(), by = Gl(), ce = /* @__PURE__ */ n((t, e = {}) => { let r = []; if (Array.isArray(t)) for (let i of t) { let s = ce.create(i, e); Array.isArray(s) ? r.push(...s) : r.push(s); } else r = [].concat(ce.create(t, e)); return e && e.expand === !0 && e.nodupes === !0 && (r = [...new Set(r)]), r; }, "braces"); ce.parse = (t, e = {}) => by(t, e); ce.stringify = (t, e = {}) => Ul(typeof t == "string" ? ce.parse(t, e) : t, e); ce.compile = (t, e = {}) => (typeof t == "string" && (t = ce.parse(t, e)), yy(t, e)); ce.expand = (t, e = {}) => { typeof t == "string" && (t = ce.parse(t, e)); let r = xy(t, e); return e.noempty === !0 && (r = r.filter(Boolean)), e.nodupes === !0 && (r = [...new Set(r)]), r; }; ce.create = (t, e = {}) => t === "" || t.length < 3 ? [t] : e.expand !== !0 ? ce.compile(t, e) : ce.expand(t, e); Yl.exports = ce; }); // ../node_modules/picomatch/lib/constants.js var zt = f((dR, Jl) => { "use strict"; var _y = require("path"), Oe = "\\\\/", Kl = `[^${Oe}]`, Fe = "\\.", vy = "\\+", Sy = "\\?", Mr = "\\/", wy = "(?=.)", Xl = "[^/]", is = `\ (?:${Mr}|$)`, Ql = `(?:^|${Mr})`, ss = `${Fe}{1,2}${is}`, Ey = `(?!${Fe})`, Py = `(?!${Ql}${ss})`, Ry = `(?!${Fe}{0,1}${is})`, Ay = `(?!${ss}\ )`, Cy = `[^.${Mr}]`, Ty = `${Xl}*?`, Zl = { DOT_LITERAL: Fe, PLUS_LITERAL: vy, QMARK_LITERAL: Sy, SLASH_LITERAL: Mr, ONE_CHAR: wy, QMARK: Xl, END_ANCHOR: is, DOTS_SLASH: ss, NO_DOT: Ey, NO_DOTS: Py, NO_DOT_SLASH: Ry, NO_DOTS_SLASH: Ay, QMARK_NO_DOT: Cy, STAR: Ty, START_ANCHOR: Ql }, Oy = { ...Zl, SLASH_LITERAL: `[${Oe}]`, QMARK: Kl, STAR: `${Kl}*?`, DOTS_SLASH: `${Fe}{1,2}(?:[${Oe}]|$)`, NO_DOT: `(?!${Fe})`, NO_DOTS: `(?!(?:^|[${Oe}])${Fe}{1,2}(?:[${Oe}]|$))`, NO_DOT_SLASH: `(?!${Fe}{0,1}(?:[${Oe}]|$))`, NO_DOTS_SLASH: `(?!${Fe}{1,2}(?:[${Oe}]|$))`, QMARK_NO_DOT: `[^.${Oe}]`, START_ANCHOR: `(?:^|[${Oe}])`, END_ANCHOR: `(?:[${Oe}]|$)` }, Dy = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" }; Jl.exports = { MAX_LENGTH: 1024 * 64, POSIX_REGEX_SOURCE: Dy, // regular expressions REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, // Replace globs with equivalent patterns to reduce parsing time. REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, // Digits CHAR_0: 48, /* 0 */ CHAR_9: 57, /* 9 */ // Alphabet chars. CHAR_UPPERCASE_A: 65, /* A */ CHAR_LOWERCASE_A: 97, /* a */ CHAR_UPPERCASE_Z: 90, /* Z */ CHAR_LOWERCASE_Z: 122, /* z */ CHAR_LEFT_PARENTHESES: 40, /* ( */ CHAR_RIGHT_PARENTHESES: 41, /* ) */ CHAR_ASTERISK: 42, /* * */ // Non-alphabetic chars. CHAR_AMPERSAND: 38, /* & */ CHAR_AT: 64, /* @ */ CHAR_BACKWARD_SLASH: 92, /* \ */ CHAR_CARRIAGE_RETURN: 13, /* \r */ CHAR_CIRCUMFLEX_ACCENT: 94, /* ^ */ CHAR_COLON: 58, /* : */ CHAR_COMMA: 44, /* , */ CHAR_DOT: 46, /* . */ CHAR_DOUBLE_QUOTE: 34, /* " */ CHAR_EQUAL: 61, /* = */ CHAR_EXCLAMATION_MARK: 33, /* ! */ CHAR_FORM_FEED: 12, /* \f */ CHAR_FORWARD_SLASH: 47, /* / */ CHAR_GRAVE_ACCENT: 96, /* ` */ CHAR_HASH: 35, /* # */ CHAR_HYPHEN_MINUS: 45, /* - */ CHAR_LEFT_ANGLE_BRACKET: 60, /* < */ CHAR_LEFT_CURLY_BRACE: 123, /* { */ CHAR_LEFT_SQUARE_BRACKET: 91, /* [ */ CHAR_LINE_FEED: 10, /* \n */ CHAR_NO_BREAK_SPACE: 160, /* \u00A0 */ CHAR_PERCENT: 37, /* % */ CHAR_PLUS: 43, /* + */ CHAR_QUESTION_MARK: 63, /* ? */ CHAR_RIGHT_ANGLE_BRACKET: 62, /* > */ CHAR_RIGHT_CURLY_BRACE: 125, /* } */ CHAR_RIGHT_SQUARE_BRACKET: 93, /* ] */ CHAR_SEMICOLON: 59, /* ; */ CHAR_SINGLE_QUOTE: 39, /* ' */ CHAR_SPACE: 32, /* */ CHAR_TAB: 9, /* \t */ CHAR_UNDERSCORE: 95, /* _ */ CHAR_VERTICAL_LINE: 124, /* | */ CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, /* \uFEFF */ SEP: _y.sep, /** * Create EXTGLOB_CHARS */ extglobChars(t) { return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } }; }, /** * Create GLOB_CHARS */ globChars(t) { return t === !0 ? Oy : Zl; } }; }); // ../node_modules/picomatch/lib/utils.js var Kt = f((oe) => { "use strict"; var Iy = require("path"), ky = process.platform === "win32", { REGEX_BACKSLASH: $y, REGEX_REMOVE_BACKSLASH: Ny, REGEX_SPECIAL_CHARS: My, REGEX_SPECIAL_CHARS_GLOBAL: qy } = zt(); oe.isObject = (t) => t !== null && typeof t == "object" && !Array.isArray(t); oe.hasRegexChars = (t) => My.test(t); oe.isRegexChar = (t) => t.length === 1 && oe.hasRegexChars(t); oe.escapeRegex = (t) => t.replace(qy, "\\$1"); oe.toPosixSlashes = (t) => t.replace($y, "/"); oe.removeBackslashes = (t) => t.replace(Ny, (e) => e === "\\" ? "" : e); oe.supportsLookbehinds = () => { let t = process.version.slice(1).split(".").map(Number); return t.length === 3 && t[0] >= 9 || t[0] === 8 && t[1] >= 10; }; oe.isWindows = (t) => t && typeof t.windows == "boolean" ? t.windows : ky === !0 || Iy.sep === "\\"; oe.escapeLast = (t, e, r) => { let i = t.lastIndexOf(e, r); return i === -1 ? t : t[i - 1] === "\\" ? oe.escapeLast(t, e, i - 1) : `${t.slice(0, i)}\\${t.slice(i)}`; }; oe.removePrefix = (t, e = {}) => { let r = t; return r.startsWith("./") && (r = r.slice(2), e.prefix = "./"), r; }; oe.wrapOutput = (t, e = {}, r = {}) => { let i = r.contains ? "" : "^", s = r.contains ? "" : "$", o = `${i}(?:${t})${s}`; return e.negated === !0 && (o = `(?:^(?!${o}).*$)`), o; }; }); // ../node_modules/picomatch/lib/scan.js var au = f((mR, ou) => { "use strict"; var eu = Kt(), { CHAR_ASTERISK: ns, /* * */ CHAR_AT: jy, /* @ */ CHAR_BACKWARD_SLASH: Xt, /* \ */ CHAR_COMMA: Ly, /* , */ CHAR_DOT: os, /* . */ CHAR_EXCLAMATION_MARK: as, /* ! */ CHAR_FORWARD_SLASH: nu, /* / */ CHAR_LEFT_CURLY_BRACE: ls, /* { */ CHAR_LEFT_PARENTHESES: us, /* ( */ CHAR_LEFT_SQUARE_BRACKET: Fy, /* [ */ CHAR_PLUS: Hy, /* + */ CHAR_QUESTION_MARK: tu, /* ? */ CHAR_RIGHT_CURLY_BRACE: By, /* } */ CHAR_RIGHT_PARENTHESES: ru, /* ) */ CHAR_RIGHT_SQUARE_BRACKET: Wy /* ] */ } = zt(), iu = /* @__PURE__ */ n((t) => t === nu || t === Xt, "isPathSeparator"), su = /* @__PURE__ */ n((t) => { t.isPrefix !== !0 && (t.depth = t.isGlobstar ? 1 / 0 : 1); }, "depth"), Vy = /* @__PURE__ */ n((t, e) => { let r = e || {}, i = t.length - 1, s = r.parts === !0 || r.scanToEnd === !0, o = [], a = [], l = [], u = t, c = -1, h = 0, m = 0, p = !1, w = !1, g = !1, _ = !1, P = !1, E = !1, k = !1, O = !1, F = !1, C = !1, N = 0, T, A, M = { value: "", depth: 0, isGlob: !1 }, J = /* @__PURE__ */ n( () => c >= i, "eos"), b = /* @__PURE__ */ n(() => u.charCodeAt(c + 1), "peek"), G = /* @__PURE__ */ n(() => (T = A, u.charCodeAt(++c)), "\ advance"); for (; c < i; ) { A = G(); let ie; if (A === Xt) { k = M.backslashes = !0, A = G(), A === ls && (E = !0); continue; } if (E === !0 || A === ls) { for (N++; J() !== !0 && (A = G()); ) { if (A === Xt) { k = M.backslashes = !0, G(); continue; } if (A === ls) { N++; continue; } if (E !== !0 && A === os && (A = G()) === os) { if (p = M.isBrace = !0, g = M.isGlob = !0, C = !0, s === !0) continue; break; } if (E !== !0 && A === Ly) { if (p = M.isBrace = !0, g = M.isGlob = !0, C = !0, s === !0) continue; break; } if (A === By && (N--, N === 0)) { E = !1, p = M.isBrace = !0, C = !0; break; } } if (s === !0) continue; break; } if (A === nu) { if (o.push(c), a.push(M), M = { value: "", depth: 0, isGlob: !1 }, C === !0) continue; if (T === os && c === h + 1) { h += 2; continue; } m = c + 1; continue; } if (r.noext !== !0 && (A === Hy || A === jy || A === ns || A === tu || A === as) === !0 && b() === us) { if (g = M.isGlob = !0, _ = M.isExtglob = !0, C = !0, A === as && c === h && (F = !0), s === !0) { for (; J() !== !0 && (A = G()); ) { if (A === Xt) { k = M.backslashes = !0, A = G(); continue; } if (A === ru) { g = M.isGlob = !0, C = !0; break; } } continue; } break; } if (A === ns) { if (T === ns && (P = M.isGlobstar = !0), g = M.isGlob = !0, C = !0, s === !0) continue; break; } if (A === tu) { if (g = M.isGlob = !0, C = !0, s === !0) continue; break; } if (A === Fy) { for (; J() !== !0 && (ie = G()); ) { if (ie === Xt) { k = M.backslashes = !0, G(); continue; } if (ie === Wy) { w = M.isBracket = !0, g = M.isGlob = !0, C = !0; break; } } if (s === !0) continue; break; } if (r.nonegate !== !0 && A === as && c === h) { O = M.negated = !0, h++; continue; } if (r.noparen !== !0 && A === us) { if (g = M.isGlob = !0, s === !0) { for (; J() !== !0 && (A = G()); ) { if (A === us) { k = M.backslashes = !0, A = G(); continue; } if (A === ru) { C = !0; break; } } continue; } break; } if (g === !0) { if (C = !0, s === !0) continue; break; } } r.noext === !0 && (_ = !1, g = !1); let B = u, Qe = "", y = ""; h > 0 && (Qe = u.slice(0, h), u = u.slice(h), m -= h), B && g === !0 && m > 0 ? (B = u.slice(0, m), y = u.slice(m)) : g === !0 ? (B = "", y = u) : B = u, B && B !== "" && B !== "/" && B !== u && iu(B.charCodeAt(B.length - 1)) && (B = B.slice(0, -1)), r.unescape === !0 && (y && (y = eu.removeBackslashes(y)), B && k === !0 && (B = eu.removeBackslashes(B))); let x = { prefix: Qe, input: t, start: h, base: B, glob: y, isBrace: p, isBracket: w, isGlob: g, isExtglob: _, isGlobstar: P, negated: O, negatedExtglob: F }; if (r.tokens === !0 && (x.maxDepth = 0, iu(A) || a.push(M), x.tokens = a), r.parts === !0 || r.tokens === !0) { let ie; for (let $ = 0; $ < o.length; $++) { let Ae = ie ? ie + 1 : h, Ce = o[$], ue = t.slice(Ae, Ce); r.tokens && ($ === 0 && h !== 0 ? (a[$].isPrefix = !0, a[$].value = Qe) : a[$].value = ue, su(a[$]), x.maxDepth += a[$].depth), ($ !== 0 || ue !== "") && l.push(ue), ie = Ce; } if (ie && ie + 1 < t.length) { let $ = t.slice(ie + 1); l.push($), r.tokens && (a[a.length - 1].value = $, su(a[a.length - 1]), x.maxDepth += a[a.length - 1].depth); } x.slashes = o, x.parts = l; } return x; }, "scan"); ou.exports = Vy; }); // ../node_modules/picomatch/lib/parse.js var cu = f((yR, uu) => { "use strict"; var qr = zt(), he = Kt(), { MAX_LENGTH: jr, POSIX_REGEX_SOURCE: Gy, REGEX_NON_SPECIAL_CHARS: Uy, REGEX_SPECIAL_CHARS_BACKREF: Yy, REPLACEMENTS: lu } = qr, zy = /* @__PURE__ */ n((t, e) => { if (typeof e.expandRange == "function") return e.expandRange(...t, e); t.sort(); let r = `[${t.join("-")}]`; try { new RegExp(r); }