"use strict"; var kJ = Object.create; var Vc = Object.defineProperty; var BJ = Object.getOwnPropertyDescriptor; var NJ = Object.getOwnPropertyNames; var MJ = Object.getPrototypeOf, RJ = Object.prototype.hasOwnProperty; var s = (e, t) => Vc(e, "name", { value: t, configurable: !0 }); var E = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), jJ = (e, t) => { for (var r in t) Vc(e, r, { get: t[r], enumerable: !0 }); }, wF = (e, t, r, i) => { if (t && typeof t == "object" || typeof t == "function") for (let n of NJ(t)) !RJ.call(e, n) && n !== r && Vc(e, n, { get: () => t[n], enumerable: !(i = BJ(t, n)) || i.enumerable }); return e; }; var rt = (e, t, r) => (r = e != null ? kJ(MJ(e)) : {}, wF( // 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. t || !e || !e.__esModule ? Vc(r, "default", { value: e, enumerable: !0 }) : r, e )), LJ = (e) => wF(Vc({}, "__esModule", { value: !0 }), e); // ../node_modules/kleur/index.js var nr = E((AYe, MF) => { "use strict"; var { FORCE_COLOR: VJ, NODE_DISABLE_COLORS: HJ, TERM: KJ } = process.env, Ot = { enabled: !HJ && KJ !== "dumb" && VJ !== "0", // modifiers reset: Rt(0, 0), bold: Rt(1, 22), dim: Rt(2, 22), italic: Rt(3, 23), underline: Rt(4, 24), inverse: Rt(7, 27), hidden: Rt(8, 28), strikethrough: Rt(9, 29), // colors black: Rt(30, 39), red: Rt(31, 39), green: Rt(32, 39), yellow: Rt(33, 39), blue: Rt(34, 39), magenta: Rt(35, 39), cyan: Rt(36, 39), white: Rt(37, 39), gray: Rt(90, 39), grey: Rt(90, 39), // background colors bgBlack: Rt(40, 49), bgRed: Rt(41, 49), bgGreen: Rt(42, 49), bgYellow: Rt(43, 49), bgBlue: Rt(44, 49), bgMagenta: Rt(45, 49), bgCyan: Rt(46, 49), bgWhite: Rt(47, 49) }; function NF(e, t) { let r = 0, i, n = "", a = ""; for (; r < e.length; r++) i = e[r], n += i.open, a += i.close, t.includes(i.close) && (t = t.replace(i.rgx, i.close + i.open)); return n + t + a; } s(NF, "run"); function zJ(e, t) { let r = { has: e, keys: t }; return r.reset = Ot.reset.bind(r), r.bold = Ot.bold.bind(r), r.dim = Ot.dim.bind(r), r.italic = Ot.italic.bind(r), r.underline = Ot.underline. bind(r), r.inverse = Ot.inverse.bind(r), r.hidden = Ot.hidden.bind(r), r.strikethrough = Ot.strikethrough.bind(r), r.black = Ot.black.bind( r), r.red = Ot.red.bind(r), r.green = Ot.green.bind(r), r.yellow = Ot.yellow.bind(r), r.blue = Ot.blue.bind(r), r.magenta = Ot.magenta.bind( r), r.cyan = Ot.cyan.bind(r), r.white = Ot.white.bind(r), r.gray = Ot.gray.bind(r), r.grey = Ot.grey.bind(r), r.bgBlack = Ot.bgBlack.bind( r), r.bgRed = Ot.bgRed.bind(r), r.bgGreen = Ot.bgGreen.bind(r), r.bgYellow = Ot.bgYellow.bind(r), r.bgBlue = Ot.bgBlue.bind(r), r.bgMagenta = Ot.bgMagenta.bind(r), r.bgCyan = Ot.bgCyan.bind(r), r.bgWhite = Ot.bgWhite.bind(r), r; } s(zJ, "chain"); function Rt(e, t) { let r = { open: `\x1B[${e}m`, close: `\x1B[${t}m`, rgx: new RegExp(`\\x1b\\[${t}m`, "g") }; return function(i) { return this !== void 0 && this.has !== void 0 ? (this.has.includes(e) || (this.has.push(e), this.keys.push(r)), i === void 0 ? this : Ot. enabled ? NF(this.keys, i + "") : i + "") : i === void 0 ? zJ([e], [r]) : Ot.enabled ? NF([r], i + "") : i + ""; }; } s(Rt, "init"); MF.exports = Ot; }); // ../node_modules/prompts/dist/util/action.js var jF = E((PYe, RF) => { "use strict"; RF.exports = (e, t) => { if (!(e.meta && e.name !== "escape")) { if (e.ctrl) { if (e.name === "a") return "first"; if (e.name === "c" || e.name === "d") return "abort"; if (e.name === "e") return "last"; if (e.name === "g") return "reset"; } if (t) { if (e.name === "j") return "down"; if (e.name === "k") return "up"; } return e.name === "return" || e.name === "enter" ? "submit" : e.name === "backspace" ? "delete" : e.name === "delete" ? "deleteForward" : e.name === "abort" ? "abort" : e.name === "escape" ? "exit" : e.name === "tab" ? "next" : e.name === "pagedown" ? "nextPage" : e.name === "pageup" ? "prevPage" : e.name === "home" ? "home" : e.name === "end" ? "end" : e.name === "up" ? "up" : e.name === "down" ? "down" : e. name === "right" ? "right" : e.name === "left" ? "left" : !1; } }; }); // ../node_modules/prompts/dist/util/strip.js var sh = E((FYe, LF) => { "use strict"; LF.exports = (e) => { let t = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"), r = new RegExp(t, "g"); return typeof e == "string" ? e.replace(r, "") : e; }; }); // ../node_modules/sisteransi/src/index.js var ar = E((IYe, qF) => { "use strict"; var lD = "\x1B", sr = `${lD}[`, GJ = "\x07", cD = { to(e, t) { return t ? `${sr}${t + 1};${e + 1}H` : `${sr}${e + 1}G`; }, move(e, t) { let r = ""; return e < 0 ? r += `${sr}${-e}D` : e > 0 && (r += `${sr}${e}C`), t < 0 ? r += `${sr}${-t}A` : t > 0 && (r += `${sr}${t}B`), r; }, up: /* @__PURE__ */ s((e = 1) => `${sr}${e}A`, "up"), down: /* @__PURE__ */ s((e = 1) => `${sr}${e}B`, "down"), forward: /* @__PURE__ */ s((e = 1) => `${sr}${e}C`, "forward"), backward: /* @__PURE__ */ s((e = 1) => `${sr}${e}D`, "backward"), nextLine: /* @__PURE__ */ s((e = 1) => `${sr}E`.repeat(e), "nextLine"), prevLine: /* @__PURE__ */ s((e = 1) => `${sr}F`.repeat(e), "prevLine"), left: `${sr}G`, hide: `${sr}?25l`, show: `${sr}?25h`, save: `${lD}7`, restore: `${lD}8` }, JJ = { up: /* @__PURE__ */ s((e = 1) => `${sr}S`.repeat(e), "up"), down: /* @__PURE__ */ s((e = 1) => `${sr}T`.repeat(e), "down") }, XJ = { screen: `${sr}2J`, up: /* @__PURE__ */ s((e = 1) => `${sr}1J`.repeat(e), "up"), down: /* @__PURE__ */ s((e = 1) => `${sr}J`.repeat(e), "down"), line: `${sr}2K`, lineEnd: `${sr}K`, lineStart: `${sr}1K`, lines(e) { let t = ""; for (let r = 0; r < e; r++) t += this.line + (r < e - 1 ? cD.up() : ""); return e && (t += cD.left), t; } }; qF.exports = { cursor: cD, scroll: JJ, erase: XJ, beep: GJ }; }); // ../node_modules/prompts/dist/util/clear.js var HF = E((kYe, VF) => { "use strict"; function YJ(e, t) { var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (!r) { if (Array.isArray(e) || (r = ZJ(e)) || t && e && typeof e.length == "number") { r && (e = r); var i = 0, n = /* @__PURE__ */ s(function() { }, "F"); return { s: n, n: /* @__PURE__ */ s(function() { return i >= e.length ? { done: !0 } : { done: !1, value: e[i++] }; }, "n"), e: /* @__PURE__ */ s(function(c) { throw c; }, "e"), f: n }; } throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } var a = !0, o = !1, u; return { s: /* @__PURE__ */ s(function() { r = r.call(e); }, "s"), n: /* @__PURE__ */ s(function() { var c = r.next(); return a = c.done, c; }, "n"), e: /* @__PURE__ */ s(function(c) { o = !0, u = c; }, "e"), f: /* @__PURE__ */ s(function() { try { !a && r.return != null && r.return(); } finally { if (o) throw u; } }, "f") }; } s(YJ, "_createForOfIteratorHelper"); function ZJ(e, t) { if (e) { if (typeof e == "string") return UF(e, t); var r = Object.prototype.toString.call(e).slice(8, -1); if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e); if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return UF(e, t); } } s(ZJ, "_unsupportedIterableToArray"); function UF(e, t) { (t == null || t > e.length) && (t = e.length); for (var r = 0, i = new Array(t); r < t; r++) i[r] = e[r]; return i; } s(UF, "_arrayLikeToArray"); var QJ = sh(), $F = ar(), WF = $F.erase, eX = $F.cursor, tX = /* @__PURE__ */ s((e) => [...QJ(e)].length, "width"); VF.exports = function(e, t) { if (!t) return WF.line + eX.to(0); let r = 0, i = e.split(/\r?\n/); var n = YJ(i), a; try { for (n.s(); !(a = n.n()).done; ) { let o = a.value; r += 1 + Math.floor(Math.max(tX(o) - 1, 0) / t); } } catch (o) { n.e(o); } finally { n.f(); } return WF.lines(r); }; }); // ../node_modules/prompts/dist/util/figures.js var fD = E((NYe, KF) => { "use strict"; var zc = { arrowUp: "\u2191", arrowDown: "\u2193", arrowLeft: "\u2190", arrowRight: "\u2192", radioOn: "\u25C9", radioOff: "\u25EF", tick: "\u2714", cross: "\u2716", ellipsis: "\u2026", pointerSmall: "\u203A", line: "\u2500", pointer: "\u276F" }, rX = { arrowUp: zc.arrowUp, arrowDown: zc.arrowDown, arrowLeft: zc.arrowLeft, arrowRight: zc.arrowRight, radioOn: "(*)", radioOff: "( )", tick: "\u221A", cross: "\xD7", ellipsis: "...", pointerSmall: "\xBB", line: "\u2500", pointer: ">" }, iX = process.platform === "win32" ? rX : zc; KF.exports = iX; }); // ../node_modules/prompts/dist/util/style.js var GF = E((MYe, zF) => { "use strict"; var Ku = nr(), bo = fD(), dD = Object.freeze({ password: { scale: 1, render: /* @__PURE__ */ s((e) => "*".repeat(e.length), "render") }, emoji: { scale: 2, render: /* @__PURE__ */ s((e) => "\u{1F603}".repeat(e.length), "render") }, invisible: { scale: 0, render: /* @__PURE__ */ s((e) => "", "render") }, default: { scale: 1, render: /* @__PURE__ */ s((e) => `${e}`, "render") } }), nX = /* @__PURE__ */ s((e) => dD[e] || dD.default, "render"), Gc = Object.freeze({ aborted: Ku.red(bo.cross), done: Ku.green(bo.tick), exited: Ku.yellow(bo.cross), default: Ku.cyan("?") }), sX = /* @__PURE__ */ s((e, t, r) => t ? Gc.aborted : r ? Gc.exited : e ? Gc.done : Gc.default, "symbol"), aX = /* @__PURE__ */ s((e) => Ku. gray(e ? bo.ellipsis : bo.pointerSmall), "delimiter"), oX = /* @__PURE__ */ s((e, t) => Ku.gray(e ? t ? bo.pointerSmall : "+" : bo.line), "\ item"); zF.exports = { styles: dD, render: nX, symbols: Gc, symbol: sX, delimiter: aX, item: oX }; }); // ../node_modules/prompts/dist/util/lines.js var XF = E((jYe, JF) => { "use strict"; var uX = sh(); JF.exports = function(e, t) { let r = String(uX(e) || "").split(/\r?\n/); return t ? r.map((i) => Math.ceil(i.length / t)).reduce((i, n) => i + n) : r.length; }; }); // ../node_modules/prompts/dist/util/wrap.js var ZF = E((LYe, YF) => { "use strict"; YF.exports = (e, t = {}) => { let r = Number.isSafeInteger(parseInt(t.margin)) ? new Array(parseInt(t.margin)).fill(" ").join("") : t.margin || "", i = t.width; return (e || "").split(/\r?\n/g).map((n) => n.split(/\s+/g).reduce((a, o) => (o.length + r.length >= i || a[a.length - 1].length + o.length + 1 < i ? a[a.length - 1] += ` ${o}` : a.push(`${r}${o}`), a), [r]).join(` `)).join(` `); }; }); // ../node_modules/prompts/dist/util/entriesToDisplay.js var eI = E((qYe, QF) => { "use strict"; QF.exports = (e, t, r) => { r = r || t; let i = Math.min(t - r, e - Math.floor(r / 2)); i < 0 && (i = 0); let n = Math.min(i + r, t); return { startIndex: i, endIndex: n }; }; }); // ../node_modules/prompts/dist/util/index.js var Dn = E((UYe, tI) => { "use strict"; tI.exports = { action: jF(), clear: HF(), style: GF(), strip: sh(), figures: fD(), lines: XF(), wrap: ZF(), entriesToDisplay: eI() }; }); // ../node_modules/prompts/dist/elements/prompt.js var gs = E((WYe, nI) => { "use strict"; var rI = require("readline"), lX = Dn(), cX = lX.action, fX = require("events"), iI = ar(), dX = iI.beep, pX = iI.cursor, hX = nr(), pD = class extends fX { static { s(this, "Prompt"); } constructor(t = {}) { super(), this.firstRender = !0, this.in = t.stdin || process.stdin, this.out = t.stdout || process.stdout, this.onRender = (t.onRender || (() => { })).bind(this); let r = rI.createInterface({ input: this.in, escapeCodeTimeout: 50 }); rI.emitKeypressEvents(this.in, r), this.in.isTTY && this.in.setRawMode(!0); let i = ["SelectPrompt", "MultiselectPrompt"].indexOf(this.constructor.name) > -1, n = /* @__PURE__ */ s((a, o) => { let u = cX(o, i); u === !1 ? this._ && this._(a, o) : typeof this[u] == "function" ? this[u](o) : this.bell(); }, "keypress"); this.close = () => { this.out.write(pX.show), this.in.removeListener("keypress", n), this.in.isTTY && this.in.setRawMode(!1), r.close(), this.emit(this.aborted ? "abort" : this.exited ? "exit" : "submit", this.value), this.closed = !0; }, this.in.on("keypress", n); } fire() { this.emit("state", { value: this.value, aborted: !!this.aborted, exited: !!this.exited }); } bell() { this.out.write(dX); } render() { this.onRender(hX), this.firstRender && (this.firstRender = !1); } }; nI.exports = pD; }); // ../node_modules/prompts/dist/elements/text.js var lI = E((VYe, uI) => { "use strict"; function sI(e, t, r, i, n, a, o) { try { var u = e[a](o), l = u.value; } catch (c) { r(c); return; } u.done ? t(l) : Promise.resolve(l).then(i, n); } s(sI, "asyncGeneratorStep"); function aI(e) { return function() { var t = this, r = arguments; return new Promise(function(i, n) { var a = e.apply(t, r); function o(l) { sI(a, i, n, o, u, "next", l); } s(o, "_next"); function u(l) { sI(a, i, n, o, u, "throw", l); } s(u, "_throw"), o(void 0); }); }; } s(aI, "_asyncToGenerator"); var ah = nr(), mX = gs(), oI = ar(), yX = oI.erase, Jc = oI.cursor, oh = Dn(), hD = oh.style, mD = oh.clear, gX = oh.lines, bX = oh.figures, yD = class extends mX { static { s(this, "TextPrompt"); } constructor(t = {}) { super(t), this.transform = hD.render(t.style), this.scale = this.transform.scale, this.msg = t.message, this.initial = t.initial || "", this.validator = t.validate || (() => !0), this.value = "", this.errorMsg = t.error || "Please Enter A Valid Value", this.cursor = +!!this. initial, this.cursorOffset = 0, this.clear = mD("", this.out.columns), this.render(); } set value(t) { !t && this.initial ? (this.placeholder = !0, this.rendered = ah.gray(this.transform.render(this.initial))) : (this.placeholder = !1, this. rendered = this.transform.render(t)), this._value = t, this.fire(); } get value() { return this._value; } reset() { this.value = "", this.cursor = +!!this.initial, this.cursorOffset = 0, this.fire(), this.render(); } exit() { this.abort(); } abort() { this.value = this.value || this.initial, this.done = this.aborted = !0, this.error = !1, this.red = !1, this.fire(), this.render(), this. out.write(` `), this.close(); } validate() { var t = this; return aI(function* () { let r = yield t.validator(t.value); typeof r == "string" && (t.errorMsg = r, r = !1), t.error = !r; })(); } submit() { var t = this; return aI(function* () { if (t.value = t.value || t.initial, t.cursorOffset = 0, t.cursor = t.rendered.length, yield t.validate(), t.error) { t.red = !0, t.fire(), t.render(); return; } t.done = !0, t.aborted = !1, t.fire(), t.render(), t.out.write(` `), t.close(); })(); } next() { if (!this.placeholder) return this.bell(); this.value = this.initial, this.cursor = this.rendered.length, this.fire(), this.render(); } moveCursor(t) { this.placeholder || (this.cursor = this.cursor + t, this.cursorOffset += t); } _(t, r) { let i = this.value.slice(0, this.cursor), n = this.value.slice(this.cursor); this.value = `${i}${t}${n}`, this.red = !1, this.cursor = this.placeholder ? 0 : i.length + 1, this.render(); } delete() { if (this.isCursorAtStart()) return this.bell(); let t = this.value.slice(0, this.cursor - 1), r = this.value.slice(this.cursor); this.value = `${t}${r}`, this.red = !1, this.isCursorAtStart() ? this.cursorOffset = 0 : (this.cursorOffset++, this.moveCursor(-1)), this. render(); } deleteForward() { if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell(); let t = this.value.slice(0, this.cursor), r = this.value.slice(this.cursor + 1); this.value = `${t}${r}`, this.red = !1, this.isCursorAtEnd() ? this.cursorOffset = 0 : this.cursorOffset++, this.render(); } first() { this.cursor = 0, this.render(); } last() { this.cursor = this.value.length, this.render(); } left() { if (this.cursor <= 0 || this.placeholder) return this.bell(); this.moveCursor(-1), this.render(); } right() { if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell(); this.moveCursor(1), this.render(); } isCursorAtStart() { return this.cursor === 0 || this.placeholder && this.cursor === 1; } isCursorAtEnd() { return this.cursor === this.rendered.length || this.placeholder && this.cursor === this.rendered.length + 1; } render() { this.closed || (this.firstRender || (this.outputError && this.out.write(Jc.down(gX(this.outputError, this.out.columns) - 1) + mD(this. outputError, this.out.columns)), this.out.write(mD(this.outputText, this.out.columns))), super.render(), this.outputError = "", this.outputText = [hD.symbol(this.done, this.aborted), ah.bold(this.msg), hD.delimiter(this.done), this.red ? ah.red(this.rendered) : this.rendered].join( " "), this.error && (this.outputError += this.errorMsg.split(` `).reduce((t, r, i) => t + ` ${i ? " " : bX.pointerSmall} ${ah.red().italic(r)}`, "")), this.out.write(yX.line + Jc.to(0) + this.outputText + Jc.save + this.outputError + Jc.restore + Jc.move(this.cursorOffset, 0))); } }; uI.exports = yD; }); // ../node_modules/prompts/dist/elements/select.js var pI = E((KYe, dI) => { "use strict"; var bs = nr(), DX = gs(), Xc = Dn(), cI = Xc.style, fI = Xc.clear, uh = Xc.figures, vX = Xc.wrap, EX = Xc.entriesToDisplay, xX = ar(), SX = xX. cursor, gD = class extends DX { static { s(this, "SelectPrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.hint = t.hint || "- Use arrow-keys. Return to submit.", this.warn = t.warn || "- This option is d\ isabled", this.cursor = t.initial || 0, this.choices = t.choices.map((r, i) => (typeof r == "string" && (r = { title: r, value: i }), { title: r && (r.title || r.value || r), value: r && (r.value === void 0 ? i : r.value), description: r && r.description, selected: r && r.selected, disabled: r && r.disabled })), this.optionsPerPage = t.optionsPerPage || 10, this.value = (this.choices[this.cursor] || {}).value, this.clear = fI("", this.out. columns), this.render(); } moveCursor(t) { this.cursor = t, this.value = this.choices[t].value, this.fire(); } reset() { this.moveCursor(0), this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.selection.disabled ? this.bell() : (this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close()); } first() { this.moveCursor(0), this.render(); } last() { this.moveCursor(this.choices.length - 1), this.render(); } up() { this.cursor === 0 ? this.moveCursor(this.choices.length - 1) : this.moveCursor(this.cursor - 1), this.render(); } down() { this.cursor === this.choices.length - 1 ? this.moveCursor(0) : this.moveCursor(this.cursor + 1), this.render(); } next() { this.moveCursor((this.cursor + 1) % this.choices.length), this.render(); } _(t, r) { if (t === " ") return this.submit(); } get selection() { return this.choices[this.cursor]; } render() { if (this.closed) return; this.firstRender ? this.out.write(SX.hide) : this.out.write(fI(this.outputText, this.out.columns)), super.render(); let t = EX(this.cursor, this.choices.length, this.optionsPerPage), r = t.startIndex, i = t.endIndex; if (this.outputText = [cI.symbol(this.done, this.aborted), bs.bold(this.msg), cI.delimiter(!1), this.done ? this.selection.title : this. selection.disabled ? bs.yellow(this.warn) : bs.gray(this.hint)].join(" "), !this.done) { this.outputText += ` `; for (let n = r; n < i; n++) { let a, o, u = "", l = this.choices[n]; n === r && r > 0 ? o = uh.arrowUp : n === i - 1 && i < this.choices.length ? o = uh.arrowDown : o = " ", l.disabled ? (a = this.cursor === n ? bs.gray().underline(l.title) : bs.strikethrough().gray(l.title), o = (this.cursor === n ? bs.bold().gray(uh.pointer) + " " : "\ ") + o) : (a = this.cursor === n ? bs.cyan().underline(l.title) : l.title, o = (this.cursor === n ? bs.cyan(uh.pointer) + " " : " ") + o, l.description && this.cursor === n && (u = ` - ${l.description}`, (o.length + a.length + u.length >= this.out.columns || l.description. split(/\r?\n/).length > 1) && (u = ` ` + vX(l.description, { margin: 3, width: this.out.columns })))), this.outputText += `${o} ${a}${bs.gray(u)} `; } } this.out.write(this.outputText); } }; dI.exports = gD; }); // ../node_modules/prompts/dist/elements/toggle.js var DI = E((GYe, bI) => { "use strict"; var lh = nr(), TX = gs(), yI = Dn(), hI = yI.style, CX = yI.clear, gI = ar(), mI = gI.cursor, wX = gI.erase, bD = class extends TX { static { s(this, "TogglePrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.value = !!t.initial, this.active = t.active || "on", this.inactive = t.inactive || "off", this.initialValue = this.value, this.render(); } reset() { this.value = this.initialValue, this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } deactivate() { if (this.value === !1) return this.bell(); this.value = !1, this.render(); } activate() { if (this.value === !0) return this.bell(); this.value = !0, this.render(); } delete() { this.deactivate(); } left() { this.deactivate(); } right() { this.activate(); } down() { this.deactivate(); } up() { this.activate(); } next() { this.value = !this.value, this.fire(), this.render(); } _(t, r) { if (t === " ") this.value = !this.value; else if (t === "1") this.value = !0; else if (t === "0") this.value = !1; else return this.bell(); this.render(); } render() { this.closed || (this.firstRender ? this.out.write(mI.hide) : this.out.write(CX(this.outputText, this.out.columns)), super.render(), this. outputText = [hI.symbol(this.done, this.aborted), lh.bold(this.msg), hI.delimiter(this.done), this.value ? this.inactive : lh.cyan().underline( this.inactive), lh.gray("/"), this.value ? lh.cyan().underline(this.active) : this.active].join(" "), this.out.write(wX.line + mI.to(0) + this.outputText)); } }; bI.exports = bD; }); // ../node_modules/prompts/dist/dateparts/datepart.js var jn = E((XYe, vI) => { "use strict"; var DD = class e { static { s(this, "DatePart"); } constructor({ token: t, date: r, parts: i, locales: n }) { this.token = t, this.date = r || /* @__PURE__ */ new Date(), this.parts = i || [this], this.locales = n || {}; } up() { } down() { } next() { let t = this.parts.indexOf(this); return this.parts.find((r, i) => i > t && r instanceof e); } setTo(t) { } prev() { let t = [].concat(this.parts).reverse(), r = t.indexOf(this); return t.find((i, n) => n > r && i instanceof e); } toString() { return String(this.date); } }; vI.exports = DD; }); // ../node_modules/prompts/dist/dateparts/meridiem.js var xI = E((ZYe, EI) => { "use strict"; var AX = jn(), vD = class extends AX { static { s(this, "Meridiem"); } constructor(t = {}) { super(t); } up() { this.date.setHours((this.date.getHours() + 12) % 24); } down() { this.up(); } toString() { let t = this.date.getHours() > 12 ? "pm" : "am"; return /\A/.test(this.token) ? t.toUpperCase() : t; } }; EI.exports = vD; }); // ../node_modules/prompts/dist/dateparts/day.js var TI = E((eZe, SI) => { "use strict"; var _X = jn(), PX = /* @__PURE__ */ s((e) => (e = e % 10, e === 1 ? "st" : e === 2 ? "nd" : e === 3 ? "rd" : "th"), "pos"), ED = class extends _X { static { s(this, "Day"); } constructor(t = {}) { super(t); } up() { this.date.setDate(this.date.getDate() + 1); } down() { this.date.setDate(this.date.getDate() - 1); } setTo(t) { this.date.setDate(parseInt(t.substr(-2))); } toString() { let t = this.date.getDate(), r = this.date.getDay(); return this.token === "DD" ? String(t).padStart(2, "0") : this.token === "Do" ? t + PX(t) : this.token === "d" ? r + 1 : this.token === "ddd" ? this.locales.weekdaysShort[r] : this.token === "dddd" ? this.locales.weekdays[r] : t; } }; SI.exports = ED; }); // ../node_modules/prompts/dist/dateparts/hours.js var wI = E((rZe, CI) => { "use strict"; var FX = jn(), xD = class extends FX { static { s(this, "Hours"); } constructor(t = {}) { super(t); } up() { this.date.setHours(this.date.getHours() + 1); } down() { this.date.setHours(this.date.getHours() - 1); } setTo(t) { this.date.setHours(parseInt(t.substr(-2))); } toString() { let t = this.date.getHours(); return /h/.test(this.token) && (t = t % 12 || 12), this.token.length > 1 ? String(t).padStart(2, "0") : t; } }; CI.exports = xD; }); // ../node_modules/prompts/dist/dateparts/milliseconds.js var _I = E((nZe, AI) => { "use strict"; var IX = jn(), SD = class extends IX { static { s(this, "Milliseconds"); } constructor(t = {}) { super(t); } up() { this.date.setMilliseconds(this.date.getMilliseconds() + 1); } down() { this.date.setMilliseconds(this.date.getMilliseconds() - 1); } setTo(t) { this.date.setMilliseconds(parseInt(t.substr(-this.token.length))); } toString() { return String(this.date.getMilliseconds()).padStart(4, "0").substr(0, this.token.length); } }; AI.exports = SD; }); // ../node_modules/prompts/dist/dateparts/minutes.js var FI = E((aZe, PI) => { "use strict"; var OX = jn(), TD = class extends OX { static { s(this, "Minutes"); } constructor(t = {}) { super(t); } up() { this.date.setMinutes(this.date.getMinutes() + 1); } down() { this.date.setMinutes(this.date.getMinutes() - 1); } setTo(t) { this.date.setMinutes(parseInt(t.substr(-2))); } toString() { let t = this.date.getMinutes(); return this.token.length > 1 ? String(t).padStart(2, "0") : t; } }; PI.exports = TD; }); // ../node_modules/prompts/dist/dateparts/month.js var OI = E((uZe, II) => { "use strict"; var kX = jn(), CD = class extends kX { static { s(this, "Month"); } constructor(t = {}) { super(t); } up() { this.date.setMonth(this.date.getMonth() + 1); } down() { this.date.setMonth(this.date.getMonth() - 1); } setTo(t) { t = parseInt(t.substr(-2)) - 1, this.date.setMonth(t < 0 ? 0 : t); } toString() { let t = this.date.getMonth(), r = this.token.length; return r === 2 ? String(t + 1).padStart(2, "0") : r === 3 ? this.locales.monthsShort[t] : r === 4 ? this.locales.months[t] : String(t + 1); } }; II.exports = CD; }); // ../node_modules/prompts/dist/dateparts/seconds.js var BI = E((cZe, kI) => { "use strict"; var BX = jn(), wD = class extends BX { static { s(this, "Seconds"); } constructor(t = {}) { super(t); } up() { this.date.setSeconds(this.date.getSeconds() + 1); } down() { this.date.setSeconds(this.date.getSeconds() - 1); } setTo(t) { this.date.setSeconds(parseInt(t.substr(-2))); } toString() { let t = this.date.getSeconds(); return this.token.length > 1 ? String(t).padStart(2, "0") : t; } }; kI.exports = wD; }); // ../node_modules/prompts/dist/dateparts/year.js var MI = E((dZe, NI) => { "use strict"; var NX = jn(), AD = class extends NX { static { s(this, "Year"); } constructor(t = {}) { super(t); } up() { this.date.setFullYear(this.date.getFullYear() + 1); } down() { this.date.setFullYear(this.date.getFullYear() - 1); } setTo(t) { this.date.setFullYear(t.substr(-4)); } toString() { let t = String(this.date.getFullYear()).padStart(4, "0"); return this.token.length === 2 ? t.substr(-2) : t; } }; NI.exports = AD; }); // ../node_modules/prompts/dist/dateparts/index.js var jI = E((hZe, RI) => { "use strict"; RI.exports = { DatePart: jn(), Meridiem: xI(), Day: TI(), Hours: wI(), Milliseconds: _I(), Minutes: FI(), Month: OI(), Seconds: BI(), Year: MI() }; }); // ../node_modules/prompts/dist/elements/date.js var GI = E((mZe, zI) => { "use strict"; function LI(e, t, r, i, n, a, o) { try { var u = e[a](o), l = u.value; } catch (c) { r(c); return; } u.done ? t(l) : Promise.resolve(l).then(i, n); } s(LI, "asyncGeneratorStep"); function qI(e) { return function() { var t = this, r = arguments; return new Promise(function(i, n) { var a = e.apply(t, r); function o(l) { LI(a, i, n, o, u, "next", l); } s(o, "_next"); function u(l) { LI(a, i, n, o, u, "throw", l); } s(u, "_throw"), o(void 0); }); }; } s(qI, "_asyncToGenerator"); var _D = nr(), MX = gs(), FD = Dn(), UI = FD.style, WI = FD.clear, RX = FD.figures, KI = ar(), jX = KI.erase, $I = KI.cursor, Ds = jI(), VI = Ds. DatePart, LX = Ds.Meridiem, qX = Ds.Day, UX = Ds.Hours, WX = Ds.Milliseconds, $X = Ds.Minutes, VX = Ds.Month, HX = Ds.Seconds, KX = Ds.Year, zX = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g, HI = { 1: ({ token: e }) => e.replace(/\\(.)/g, "$1"), 2: (e) => new qX(e), // Day // TODO 3: (e) => new VX(e), // Month 4: (e) => new KX(e), // Year 5: (e) => new LX(e), // AM/PM // TODO (special) 6: (e) => new UX(e), // Hours 7: (e) => new $X(e), // Minutes 8: (e) => new HX(e), // Seconds 9: (e) => new WX(e) // Fractional seconds }, GX = { months: "January,February,March,April,May,June,July,August,September,October,November,December".split(","), monthsShort: "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","), weekdays: "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","), weekdaysShort: "Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",") }, PD = class extends MX { static { s(this, "DatePrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.cursor = 0, this.typed = "", this.locales = Object.assign(GX, t.locales), this._date = t.initial || /* @__PURE__ */ new Date(), this.errorMsg = t.error || "Please Enter A Valid Value", this.validator = t.validate || (() => !0), this.mask = t.mask || "YYYY-MM-DD HH:mm:ss", this.clear = WI("", this.out.columns), this.render(); } get value() { return this.date; } get date() { return this._date; } set date(t) { t && this._date.setTime(t.getTime()); } set mask(t) { let r; for (this.parts = []; r = zX.exec(t); ) { let n = r.shift(), a = r.findIndex((o) => o != null); this.parts.push(a in HI ? HI[a]({ token: r[a] || n, date: this.date, parts: this.parts, locales: this.locales }) : r[a] || n); } let i = this.parts.reduce((n, a) => (typeof a == "string" && typeof n[n.length - 1] == "string" ? n[n.length - 1] += a : n.push(a), n), []); this.parts.splice(0), this.parts.push(...i), this.reset(); } moveCursor(t) { this.typed = "", this.cursor = t, this.fire(); } reset() { this.moveCursor(this.parts.findIndex((t) => t instanceof VI)), this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.error = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } validate() { var t = this; return qI(function* () { let r = yield t.validator(t.value); typeof r == "string" && (t.errorMsg = r, r = !1), t.error = !r; })(); } submit() { var t = this; return qI(function* () { if (yield t.validate(), t.error) { t.color = "red", t.fire(), t.render(); return; } t.done = !0, t.aborted = !1, t.fire(), t.render(), t.out.write(` `), t.close(); })(); } up() { this.typed = "", this.parts[this.cursor].up(), this.render(); } down() { this.typed = "", this.parts[this.cursor].down(), this.render(); } left() { let t = this.parts[this.cursor].prev(); if (t == null) return this.bell(); this.moveCursor(this.parts.indexOf(t)), this.render(); } right() { let t = this.parts[this.cursor].next(); if (t == null) return this.bell(); this.moveCursor(this.parts.indexOf(t)), this.render(); } next() { let t = this.parts[this.cursor].next(); this.moveCursor(t ? this.parts.indexOf(t) : this.parts.findIndex((r) => r instanceof VI)), this.render(); } _(t) { /\d/.test(t) && (this.typed += t, this.parts[this.cursor].setTo(this.typed), this.render()); } render() { this.closed || (this.firstRender ? this.out.write($I.hide) : this.out.write(WI(this.outputText, this.out.columns)), super.render(), this. outputText = [UI.symbol(this.done, this.aborted), _D.bold(this.msg), UI.delimiter(!1), this.parts.reduce((t, r, i) => t.concat(i === this. cursor && !this.done ? _D.cyan().underline(r.toString()) : r), []).join("")].join(" "), this.error && (this.outputText += this.errorMsg. split(` `).reduce((t, r, i) => t + ` ${i ? " " : RX.pointerSmall} ${_D.red().italic(r)}`, "")), this.out.write(jX.line + $I.to(0) + this.outputText)); } }; zI.exports = PD; }); // ../node_modules/prompts/dist/elements/number.js var tO = E((gZe, eO) => { "use strict"; function JI(e, t, r, i, n, a, o) { try { var u = e[a](o), l = u.value; } catch (c) { r(c); return; } u.done ? t(l) : Promise.resolve(l).then(i, n); } s(JI, "asyncGeneratorStep"); function XI(e) { return function() { var t = this, r = arguments; return new Promise(function(i, n) { var a = e.apply(t, r); function o(l) { JI(a, i, n, o, u, "next", l); } s(o, "_next"); function u(l) { JI(a, i, n, o, u, "throw", l); } s(u, "_throw"), o(void 0); }); }; } s(XI, "_asyncToGenerator"); var ch = nr(), JX = gs(), QI = ar(), fh = QI.cursor, XX = QI.erase, dh = Dn(), ID = dh.style, YX = dh.figures, YI = dh.clear, ZX = dh.lines, QX = /[0-9]/, OD = /* @__PURE__ */ s((e) => e !== void 0, "isDef"), ZI = /* @__PURE__ */ s((e, t) => { let r = Math.pow(10, t); return Math.round(e * r) / r; }, "round"), kD = class extends JX { static { s(this, "NumberPrompt"); } constructor(t = {}) { super(t), this.transform = ID.render(t.style), this.msg = t.message, this.initial = OD(t.initial) ? t.initial : "", this.float = !!t.float, this.round = t.round || 2, this.inc = t.increment || 1, this.min = OD(t.min) ? t.min : -1 / 0, this.max = OD(t.max) ? t.max : 1 / 0, this. errorMsg = t.error || "Please Enter A Valid Value", this.validator = t.validate || (() => !0), this.color = "cyan", this.value = "", this. typed = "", this.lastHit = 0, this.render(); } set value(t) { !t && t !== 0 ? (this.placeholder = !0, this.rendered = ch.gray(this.transform.render(`${this.initial}`)), this._value = "") : (this.placeholder = !1, this.rendered = this.transform.render(`${ZI(t, this.round)}`), this._value = ZI(t, this.round)), this.fire(); } get value() { return this._value; } parse(t) { return this.float ? parseFloat(t) : parseInt(t); } valid(t) { return t === "-" || t === "." && this.float || QX.test(t); } reset() { this.typed = "", this.value = "", this.fire(), this.render(); } exit() { this.abort(); } abort() { let t = this.value; this.value = t !== "" ? t : this.initial, this.done = this.aborted = !0, this.error = !1, this.fire(), this.render(), this.out.write(`\ `), this.close(); } validate() { var t = this; return XI(function* () { let r = yield t.validator(t.value); typeof r == "string" && (t.errorMsg = r, r = !1), t.error = !r; })(); } submit() { var t = this; return XI(function* () { if (yield t.validate(), t.error) { t.color = "red", t.fire(), t.render(); return; } let r = t.value; t.value = r !== "" ? r : t.initial, t.done = !0, t.aborted = !1, t.error = !1, t.fire(), t.render(), t.out.write(` `), t.close(); })(); } up() { if (this.typed = "", this.value === "" && (this.value = this.min - this.inc), this.value >= this.max) return this.bell(); this.value += this.inc, this.color = "cyan", this.fire(), this.render(); } down() { if (this.typed = "", this.value === "" && (this.value = this.min + this.inc), this.value <= this.min) return this.bell(); this.value -= this.inc, this.color = "cyan", this.fire(), this.render(); } delete() { let t = this.value.toString(); if (t.length === 0) return this.bell(); this.value = this.parse(t = t.slice(0, -1)) || "", this.value !== "" && this.value < this.min && (this.value = this.min), this.color = "cyan", this.fire(), this.render(); } next() { this.value = this.initial, this.fire(), this.render(); } _(t, r) { if (!this.valid(t)) return this.bell(); let i = Date.now(); if (i - this.lastHit > 1e3 && (this.typed = ""), this.typed += t, this.lastHit = i, this.color = "cyan", t === ".") return this.fire(); this.value = Math.min(this.parse(this.typed), this.max), this.value > this.max && (this.value = this.max), this.value < this.min && (this. value = this.min), this.fire(), this.render(); } render() { this.closed || (this.firstRender || (this.outputError && this.out.write(fh.down(ZX(this.outputError, this.out.columns) - 1) + YI(this. outputError, this.out.columns)), this.out.write(YI(this.outputText, this.out.columns))), super.render(), this.outputError = "", this.outputText = [ID.symbol(this.done, this.aborted), ch.bold(this.msg), ID.delimiter(this.done), !this.done || !this.done && !this.placeholder ? ch[this. color]().underline(this.rendered) : this.rendered].join(" "), this.error && (this.outputError += this.errorMsg.split(` `).reduce((t, r, i) => t + ` ${i ? " " : YX.pointerSmall} ${ch.red().italic(r)}`, "")), this.out.write(XX.line + fh.to(0) + this.outputText + fh.save + this.outputError + fh.restore)); } }; eO.exports = kD; }); // ../node_modules/prompts/dist/elements/multiselect.js var ND = E((DZe, nO) => { "use strict"; var Ln = nr(), eY = ar(), tY = eY.cursor, rY = gs(), Yc = Dn(), rO = Yc.clear, ya = Yc.figures, iO = Yc.style, iY = Yc.wrap, nY = Yc.entriesToDisplay, BD = class extends rY { static { s(this, "MultiselectPrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.cursor = t.cursor || 0, this.scrollIndex = t.cursor || 0, this.hint = t.hint || "", this.warn = t. warn || "- This option is disabled -", this.minSelected = t.min, this.showMinError = !1, this.maxChoices = t.max, this.instructions = t. instructions, this.optionsPerPage = t.optionsPerPage || 10, this.value = t.choices.map((r, i) => (typeof r == "string" && (r = { title: r, value: i }), { title: r && (r.title || r.value || r), description: r && r.description, value: r && (r.value === void 0 ? i : r.value), selected: r && r.selected, disabled: r && r.disabled })), this.clear = rO("", this.out.columns), t.overrideRender || this.render(); } reset() { this.value.map((t) => !t.selected), this.cursor = 0, this.fire(), this.render(); } selected() { return this.value.filter((t) => t.selected); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { let t = this.value.filter((r) => r.selected); this.minSelected && t.length < this.minSelected ? (this.showMinError = !0, this.render()) : (this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close()); } first() { this.cursor = 0, this.render(); } last() { this.cursor = this.value.length - 1, this.render(); } next() { this.cursor = (this.cursor + 1) % this.value.length, this.render(); } up() { this.cursor === 0 ? this.cursor = this.value.length - 1 : this.cursor--, this.render(); } down() { this.cursor === this.value.length - 1 ? this.cursor = 0 : this.cursor++, this.render(); } left() { this.value[this.cursor].selected = !1, this.render(); } right() { if (this.value.filter((t) => t.selected).length >= this.maxChoices) return this.bell(); this.value[this.cursor].selected = !0, this.render(); } handleSpaceToggle() { let t = this.value[this.cursor]; if (t.selected) t.selected = !1, this.render(); else { if (t.disabled || this.value.filter((r) => r.selected).length >= this.maxChoices) return this.bell(); t.selected = !0, this.render(); } } toggleAll() { if (this.maxChoices !== void 0 || this.value[this.cursor].disabled) return this.bell(); let t = !this.value[this.cursor].selected; this.value.filter((r) => !r.disabled).forEach((r) => r.selected = t), this.render(); } _(t, r) { if (t === " ") this.handleSpaceToggle(); else if (t === "a") this.toggleAll(); else return this.bell(); } renderInstructions() { return this.instructions === void 0 || this.instructions ? typeof this.instructions == "string" ? this.instructions : ` Instructions: ${ya.arrowUp}/${ya.arrowDown}: Highlight option ${ya.arrowLeft}/${ya.arrowRight}/[space]: Toggle selection ` + (this.maxChoices === void 0 ? ` a: Toggle all ` : "") + " enter/return: Complete answer" : ""; } renderOption(t, r, i, n) { let a = (r.selected ? Ln.green(ya.radioOn) : ya.radioOff) + " " + n + " ", o, u; return r.disabled ? o = t === i ? Ln.gray().underline(r.title) : Ln.strikethrough().gray(r.title) : (o = t === i ? Ln.cyan().underline( r.title) : r.title, t === i && r.description && (u = ` - ${r.description}`, (a.length + o.length + u.length >= this.out.columns || r.description. split(/\r?\n/).length > 1) && (u = ` ` + iY(r.description, { margin: a.length, width: this.out.columns })))), a + o + Ln.gray(u || ""); } // shared with autocompleteMultiselect paginateOptions(t) { if (t.length === 0) return Ln.red("No matches for this query."); let r = nY(this.cursor, t.length, this.optionsPerPage), i = r.startIndex, n = r.endIndex, a, o = []; for (let u = i; u < n; u++) u === i && i > 0 ? a = ya.arrowUp : u === n - 1 && n < t.length ? a = ya.arrowDown : a = " ", o.push(this.renderOption(this.cursor, t[u], u, a)); return ` ` + o.join(` `); } // shared with autocomleteMultiselect renderOptions(t) { return this.done ? "" : this.paginateOptions(t); } renderDoneOrInstructions() { if (this.done) return this.value.filter((r) => r.selected).map((r) => r.title).join(", "); let t = [Ln.gray(this.hint), this.renderInstructions()]; return this.value[this.cursor].disabled && t.push(Ln.yellow(this.warn)), t.join(" "); } render() { if (this.closed) return; this.firstRender && this.out.write(tY.hide), super.render(); let t = [iO.symbol(this.done, this.aborted), Ln.bold(this.msg), iO.delimiter(!1), this.renderDoneOrInstructions()].join(" "); this.showMinError && (t += Ln.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), t += this.renderOptions( this.value), this.out.write(this.clear + t), this.clear = rO(t, this.out.columns); } }; nO.exports = BD; }); // ../node_modules/prompts/dist/elements/autocomplete.js var fO = E((EZe, cO) => { "use strict"; function sO(e, t, r, i, n, a, o) { try { var u = e[a](o), l = u.value; } catch (c) { r(c); return; } u.done ? t(l) : Promise.resolve(l).then(i, n); } s(sO, "asyncGeneratorStep"); function sY(e) { return function() { var t = this, r = arguments; return new Promise(function(i, n) { var a = e.apply(t, r); function o(l) { sO(a, i, n, o, u, "next", l); } s(o, "_next"); function u(l) { sO(a, i, n, o, u, "throw", l); } s(u, "_throw"), o(void 0); }); }; } s(sY, "_asyncToGenerator"); var Zc = nr(), aY = gs(), lO = ar(), oY = lO.erase, aO = lO.cursor, Qc = Dn(), MD = Qc.style, oO = Qc.clear, RD = Qc.figures, uY = Qc.wrap, lY = Qc.entriesToDisplay, uO = /* @__PURE__ */ s((e, t) => e[t] && (e[t].value || e[t].title || e[t]), "getVal"), cY = /* @__PURE__ */ s((e, t) => e[t] && (e[t].title || e[t].value || e[t]), "getTitle"), fY = /* @__PURE__ */ s((e, t) => { let r = e.findIndex((i) => i.value === t || i.title === t); return r > -1 ? r : void 0; }, "getIndex"), jD = class extends aY { static { s(this, "AutocompletePrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.suggest = t.suggest, this.choices = t.choices, this.initial = typeof t.initial == "number" ? t.initial : fY(t.choices, t.initial), this.select = this.initial || t.cursor || 0, this.i18n = { noMatches: t.noMatches || "no matches found" }, this.fallback = t.fallback || this.initial, this.clearFirst = t.clearFirst || !1, this.suggestions = [], this.input = "", this.limit = t.limit || 10, this.cursor = 0, this.transform = MD.render(t.style), this.scale = this.transform.scale, this.render = this.render.bind( this), this.complete = this.complete.bind(this), this.clear = oO("", this.out.columns), this.complete(this.render), this.render(); } set fallback(t) { this._fb = Number.isSafeInteger(parseInt(t)) ? parseInt(t) : t; } get fallback() { let t; return typeof this._fb == "number" ? t = this.choices[this._fb] : typeof this._fb == "string" && (t = { title: this._fb }), t || this._fb || { title: this.i18n.noMatches }; } moveSelect(t) { this.select = t, this.suggestions.length > 0 ? this.value = uO(this.suggestions, t) : this.value = this.fallback.value, this.fire(); } complete(t) { var r = this; return sY(function* () { let i = r.completing = r.suggest(r.input, r.choices), n = yield i; if (r.completing !== i) return; r.suggestions = n.map((o, u, l) => ({ title: cY(l, u), value: uO(l, u), description: o.description })), r.completing = !1; let a = Math.max(n.length - 1, 0); r.moveSelect(Math.min(a, r.select)), t && t(); })(); } reset() { this.input = "", this.complete(() => { this.moveSelect(this.initial !== void 0 ? this.initial : 0), this.render(); }), this.render(); } exit() { this.clearFirst && this.input.length > 0 ? this.reset() : (this.done = this.exited = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close()); } abort() { this.done = this.aborted = !0, this.exited = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.done = !0, this.aborted = this.exited = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } _(t, r) { let i = this.input.slice(0, this.cursor), n = this.input.slice(this.cursor); this.input = `${i}${t}${n}`, this.cursor = i.length + 1, this.complete(this.render), this.render(); } delete() { if (this.cursor === 0) return this.bell(); let t = this.input.slice(0, this.cursor - 1), r = this.input.slice(this.cursor); this.input = `${t}${r}`, this.complete(this.render), this.cursor = this.cursor - 1, this.render(); } deleteForward() { if (this.cursor * this.scale >= this.rendered.length) return this.bell(); let t = this.input.slice(0, this.cursor), r = this.input.slice(this.cursor + 1); this.input = `${t}${r}`, this.complete(this.render), this.render(); } first() { this.moveSelect(0), this.render(); } last() { this.moveSelect(this.suggestions.length - 1), this.render(); } up() { this.select === 0 ? this.moveSelect(this.suggestions.length - 1) : this.moveSelect(this.select - 1), this.render(); } down() { this.select === this.suggestions.length - 1 ? this.moveSelect(0) : this.moveSelect(this.select + 1), this.render(); } next() { this.select === this.suggestions.length - 1 ? this.moveSelect(0) : this.moveSelect(this.select + 1), this.render(); } nextPage() { this.moveSelect(Math.min(this.select + this.limit, this.suggestions.length - 1)), this.render(); } prevPage() { this.moveSelect(Math.max(this.select - this.limit, 0)), this.render(); } left() { if (this.cursor <= 0) return this.bell(); this.cursor = this.cursor - 1, this.render(); } right() { if (this.cursor * this.scale >= this.rendered.length) return this.bell(); this.cursor = this.cursor + 1, this.render(); } renderOption(t, r, i, n) { let a, o = i ? RD.arrowUp : n ? RD.arrowDown : " ", u = r ? Zc.cyan().underline(t.title) : t.title; return o = (r ? Zc.cyan(RD.pointer) + " " : " ") + o, t.description && (a = ` - ${t.description}`, (o.length + u.length + a.length >= this.out.columns || t.description.split(/\r?\n/).length > 1) && (a = ` ` + uY(t.description, { margin: 3, width: this.out.columns }))), o + " " + u + Zc.gray(a || ""); } render() { if (this.closed) return; this.firstRender ? this.out.write(aO.hide) : this.out.write(oO(this.outputText, this.out.columns)), super.render(); let t = lY(this.select, this.choices.length, this.limit), r = t.startIndex, i = t.endIndex; if (this.outputText = [MD.symbol(this.done, this.aborted, this.exited), Zc.bold(this.msg), MD.delimiter(this.completing), this.done && this.suggestions[this.select] ? this.suggestions[this.select].title : this.rendered = this.transform.render(this.input)].join(" "), !this. done) { let n = this.suggestions.slice(r, i).map((a, o) => this.renderOption(a, this.select === o + r, o === 0 && r > 0, o + r === i - 1 && i < this.choices.length)).join(` `); this.outputText += ` ` + (n || Zc.gray(this.fallback.title)); } this.out.write(oY.line + aO.to(0) + this.outputText); } }; cO.exports = jD; }); // ../node_modules/prompts/dist/elements/autocompleteMultiselect.js var mO = E((SZe, hO) => { "use strict"; var vs = nr(), dY = ar(), pY = dY.cursor, hY = ND(), qD = Dn(), dO = qD.clear, pO = qD.style, zu = qD.figures, LD = class extends hY { static { s(this, "AutocompleteMultiselectPrompt"); } constructor(t = {}) { t.overrideRender = !0, super(t), this.inputValue = "", this.clear = dO("", this.out.columns), this.filteredOptions = this.value, this. render(); } last() { this.cursor = this.filteredOptions.length - 1, this.render(); } next() { this.cursor = (this.cursor + 1) % this.filteredOptions.length, this.render(); } up() { this.cursor === 0 ? this.cursor = this.filteredOptions.length - 1 : this.cursor--, this.render(); } down() { this.cursor === this.filteredOptions.length - 1 ? this.cursor = 0 : this.cursor++, this.render(); } left() { this.filteredOptions[this.cursor].selected = !1, this.render(); } right() { if (this.value.filter((t) => t.selected).length >= this.maxChoices) return this.bell(); this.filteredOptions[this.cursor].selected = !0, this.render(); } delete() { this.inputValue.length && (this.inputValue = this.inputValue.substr(0, this.inputValue.length - 1), this.updateFilteredOptions()); } updateFilteredOptions() { let t = this.filteredOptions[this.cursor]; this.filteredOptions = this.value.filter((i) => this.inputValue ? !!(typeof i.title == "string" && i.title.toLowerCase().includes(this. inputValue.toLowerCase()) || typeof i.value == "string" && i.value.toLowerCase().includes(this.inputValue.toLowerCase())) : !0); let r = this.filteredOptions.findIndex((i) => i === t); this.cursor = r < 0 ? 0 : r, this.render(); } handleSpaceToggle() { let t = this.filteredOptions[this.cursor]; if (t.selected) t.selected = !1, this.render(); else { if (t.disabled || this.value.filter((r) => r.selected).length >= this.maxChoices) return this.bell(); t.selected = !0, this.render(); } } handleInputChange(t) { this.inputValue = this.inputValue + t, this.updateFilteredOptions(); } _(t, r) { t === " " ? this.handleSpaceToggle() : this.handleInputChange(t); } renderInstructions() { return this.instructions === void 0 || this.instructions ? typeof this.instructions == "string" ? this.instructions : ` Instructions: ${zu.arrowUp}/${zu.arrowDown}: Highlight option ${zu.arrowLeft}/${zu.arrowRight}/[space]: Toggle selection [a,b,c]/delete: Filter choices enter/return: Complete answer ` : ""; } renderCurrentInput() { return ` Filtered results for: ${this.inputValue ? this.inputValue : vs.gray("Enter something to filter")} `; } renderOption(t, r, i) { let n; return r.disabled ? n = t === i ? vs.gray().underline(r.title) : vs.strikethrough().gray(r.title) : n = t === i ? vs.cyan().underline( r.title) : r.title, (r.selected ? vs.green(zu.radioOn) : zu.radioOff) + " " + n; } renderDoneOrInstructions() { if (this.done) return this.value.filter((r) => r.selected).map((r) => r.title).join(", "); let t = [vs.gray(this.hint), this.renderInstructions(), this.renderCurrentInput()]; return this.filteredOptions.length && this.filteredOptions[this.cursor].disabled && t.push(vs.yellow(this.warn)), t.join(" "); } render() { if (this.closed) return; this.firstRender && this.out.write(pY.hide), super.render(); let t = [pO.symbol(this.done, this.aborted), vs.bold(this.msg), pO.delimiter(!1), this.renderDoneOrInstructions()].join(" "); this.showMinError && (t += vs.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), t += this.renderOptions( this.filteredOptions), this.out.write(this.clear + t), this.clear = dO(t, this.out.columns); } }; hO.exports = LD; }); // ../node_modules/prompts/dist/elements/confirm.js var xO = E((CZe, EO) => { "use strict"; var yO = nr(), mY = gs(), DO = Dn(), gO = DO.style, yY = DO.clear, vO = ar(), gY = vO.erase, bO = vO.cursor, UD = class extends mY { static { s(this, "ConfirmPrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.value = t.initial, this.initialValue = !!t.initial, this.yesMsg = t.yes || "yes", this.yesOption = t.yesOption || "(Y/n)", this.noMsg = t.no || "no", this.noOption = t.noOption || "(y/N)", this.render(); } reset() { this.value = this.initialValue, this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.value = this.value || !1, this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } _(t, r) { return t.toLowerCase() === "y" ? (this.value = !0, this.submit()) : t.toLowerCase() === "n" ? (this.value = !1, this.submit()) : this. bell(); } render() { this.closed || (this.firstRender ? this.out.write(bO.hide) : this.out.write(yY(this.outputText, this.out.columns)), super.render(), this. outputText = [gO.symbol(this.done, this.aborted), yO.bold(this.msg), gO.delimiter(this.done), this.done ? this.value ? this.yesMsg : this. noMsg : yO.gray(this.initialValue ? this.yesOption : this.noOption)].join(" "), this.out.write(gY.line + bO.to(0) + this.outputText)); } }; EO.exports = UD; }); // ../node_modules/prompts/dist/elements/index.js var TO = E((AZe, SO) => { "use strict"; SO.exports = { TextPrompt: lI(), SelectPrompt: pI(), TogglePrompt: DI(), DatePrompt: GI(), NumberPrompt: tO(), MultiselectPrompt: ND(), AutocompletePrompt: fO(), AutocompleteMultiselectPrompt: mO(), ConfirmPrompt: xO() }; }); // ../node_modules/prompts/dist/prompts.js var wO = E((CO) => { "use strict"; var xi = CO, bY = TO(), ph = /* @__PURE__ */ s((e) => e, "noop"); function qn(e, t, r = {}) { return new Promise((i, n) => { let a = new bY[e](t), o = r.onAbort || ph, u = r.onSubmit || ph, l = r.onExit || ph; a.on("state", t.onState || ph), a.on("submit", (c) => i(u(c))), a.on("exit", (c) => i(l(c))), a.on("abort", (c) => n(o(c))); }); } s(qn, "toPrompt"); xi.text = (e) => qn("TextPrompt", e); xi.password = (e) => (e.style = "password", xi.text(e)); xi.invisible = (e) => (e.style = "invisible", xi.text(e)); xi.number = (e) => qn("NumberPrompt", e); xi.date = (e) => qn("DatePrompt", e); xi.confirm = (e) => qn("ConfirmPrompt", e); xi.list = (e) => { let t = e.separator || ","; return qn("TextPrompt", e, { onSubmit: /* @__PURE__ */ s((r) => r.split(t).map((i) => i.trim()), "onSubmit") }); }; xi.toggle = (e) => qn("TogglePrompt", e); xi.select = (e) => qn("SelectPrompt", e); xi.multiselect = (e) => { e.choices = [].concat(e.choices || []); let t = /* @__PURE__ */ s((r) => r.filter((i) => i.selected).map((i) => i.value), "toSelected"); return qn("MultiselectPrompt", e, { onAbort: t, onSubmit: t }); }; xi.autocompleteMultiselect = (e) => { e.choices = [].concat(e.choices || []); let t = /* @__PURE__ */ s((r) => r.filter((i) => i.selected).map((i) => i.value), "toSelected"); return qn("AutocompleteMultiselectPrompt", e, { onAbort: t, onSubmit: t }); }; var DY = /* @__PURE__ */ s((e, t) => Promise.resolve(t.filter((r) => r.title.slice(0, e.length).toLowerCase() === e.toLowerCase())), "byTi\ tle"); xi.autocomplete = (e) => (e.suggest = e.suggest || DY, e.choices = [].concat(e.choices || []), qn("AutocompletePrompt", e)); }); // ../node_modules/prompts/dist/index.js var BO = E((FZe, kO) => { "use strict"; function AO(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var i = Object.getOwnPropertySymbols(e); t && (i = i.filter(function(n) { return Object.getOwnPropertyDescriptor(e, n).enumerable; })), r.push.apply(r, i); } return r; } s(AO, "ownKeys"); function _O(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? AO(Object(r), !0).forEach(function(i) { vY(e, i, r[i]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : AO(Object(r)).forEach(function(i) { Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(r, i)); }); } return e; } s(_O, "_objectSpread"); function vY(e, t, r) { return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } s(vY, "_defineProperty"); function EY(e, t) { var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (!r) { if (Array.isArray(e) || (r = xY(e)) || t && e && typeof e.length == "number") { r && (e = r); var i = 0, n = /* @__PURE__ */ s(function() { }, "F"); return { s: n, n: /* @__PURE__ */ s(function() { return i >= e.length ? { done: !0 } : { done: !1, value: e[i++] }; }, "n"), e: /* @__PURE__ */ s(function(c) { throw c; }, "e"), f: n }; } throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } var a = !0, o = !1, u; return { s: /* @__PURE__ */ s(function() { r = r.call(e); }, "s"), n: /* @__PURE__ */ s(function() { var c = r.next(); return a = c.done, c; }, "n"), e: /* @__PURE__ */ s(function(c) { o = !0, u = c; }, "e"), f: /* @__PURE__ */ s(function() { try { !a && r.return != null && r.return(); } finally { if (o) throw u; } }, "f") }; } s(EY, "_createForOfIteratorHelper"); function xY(e, t) { if (e) { if (typeof e == "string") return PO(e, t); var r = Object.prototype.toString.call(e).slice(8, -1); if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e); if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return PO(e, t); } } s(xY, "_unsupportedIterableToArray"); function PO(e, t) { (t == null || t > e.length) && (t = e.length); for (var r = 0, i = new Array(t); r < t; r++) i[r] = e[r]; return i; } s(PO, "_arrayLikeToArray"); function FO(e, t, r, i, n, a, o) { try { var u = e[a](o), l = u.value; } catch (c) { r(c); return; } u.done ? t(l) : Promise.resolve(l).then(i, n); } s(FO, "asyncGeneratorStep"); function IO(e) { return function() { var t = this, r = arguments; return new Promise(function(i, n) { var a = e.apply(t, r); function o(l) { FO(a, i, n, o, u, "next", l); } s(o, "_next"); function u(l) { FO(a, i, n, o, u, "throw", l); } s(u, "_throw"), o(void 0); }); }; } s(IO, "_asyncToGenerator"); var WD = wO(), SY = ["suggest", "format", "onState", "validate", "onRender", "type"], OO = /* @__PURE__ */ s(() => { }, "noop"); function ga() { return $D.apply(this, arguments); } s(ga, "prompt"); function $D() { return $D = IO(function* (e = [], { onSubmit: t = OO, onCancel: r = OO } = {}) { let i = {}, n = ga._override || {}; e = [].concat(e); let a, o, u, l, c, f, m = /* @__PURE__ */ function() { var g = IO(function* (b, D, v = !1) { if (!(!v && b.validate && b.validate(D) !== !0)) return b.format ? yield b.format(D, i) : D; }); return /* @__PURE__ */ s(function(D, v) { return g.apply(this, arguments); }, "getFormattedAnswer"); }(); var h = EY(e), d; try { for (h.s(); !(d = h.n()).done; ) { o = d.value; var y = o; if (l = y.name, c = y.type, typeof c == "function" && (c = yield c(a, _O({}, i), o), o.type = c), !!c) { for (let g in o) { if (SY.includes(g)) continue; let b = o[g]; o[g] = typeof b == "function" ? yield b(a, _O({}, i), f) : b; } if (f = o, typeof o.message != "string") throw new Error("prompt message is required"); var p = o; if (l = p.name, c = p.type, WD[c] === void 0) throw new Error(`prompt type (${c}) is not defined`); if (n[o.name] !== void 0 && (a = yield m(o, n[o.name]), a !== void 0)) { i[l] = a; continue; } try { a = ga._injected ? TY(ga._injected, o.initial) : yield WD[c](o), i[l] = a = yield m(o, a, !0), u = yield t(o, a, i); } catch { u = !(yield r(o, i)); } if (u) return i; } } } catch (g) { h.e(g); } finally { h.f(); } return i; }), $D.apply(this, arguments); } s($D, "_prompt"); function TY(e, t) { let r = e.shift(); if (r instanceof Error) throw r; return r === void 0 ? t : r; } s(TY, "getInjectedAnswer"); function CY(e) { ga._injected = (ga._injected || []).concat(e); } s(CY, "inject"); function wY(e) { ga._override = Object.assign({}, e); } s(wY, "override"); kO.exports = Object.assign(ga, { prompt: ga, prompts: WD, inject: CY, override: wY }); }); // ../node_modules/prompts/lib/util/action.js var MO = E((OZe, NO) => { "use strict"; NO.exports = (e, t) => { if (!(e.meta && e.name !== "escape")) { if (e.ctrl) { if (e.name === "a") return "first"; if (e.name === "c" || e.name === "d") return "abort"; if (e.name === "e") return "last"; if (e.name === "g") return "reset"; } if (t) { if (e.name === "j") return "down"; if (e.name === "k") return "up"; } return e.name === "return" || e.name === "enter" ? "submit" : e.name === "backspace" ? "delete" : e.name === "delete" ? "deleteForward" : e.name === "abort" ? "abort" : e.name === "escape" ? "exit" : e.name === "tab" ? "next" : e.name === "pagedown" ? "nextPage" : e.name === "pageup" ? "prevPage" : e.name === "home" ? "home" : e.name === "end" ? "end" : e.name === "up" ? "up" : e.name === "down" ? "down" : e. name === "right" ? "right" : e.name === "left" ? "left" : !1; } }; }); // ../node_modules/prompts/lib/util/strip.js var hh = E((kZe, RO) => { "use strict"; RO.exports = (e) => { let t = [ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))" ].join("|"), r = new RegExp(t, "g"); return typeof e == "string" ? e.replace(r, "") : e; }; }); // ../node_modules/prompts/lib/util/clear.js var qO = E((BZe, LO) => { "use strict"; var AY = hh(), { erase: jO, cursor: _Y } = ar(), PY = /* @__PURE__ */ s((e) => [...AY(e)].length, "width"); LO.exports = function(e, t) { if (!t) return jO.line + _Y.to(0); let r = 0, i = e.split(/\r?\n/); for (let n of i) r += 1 + Math.floor(Math.max(PY(n) - 1, 0) / t); return jO.lines(r); }; }); // ../node_modules/prompts/lib/util/figures.js var VD = E((MZe, UO) => { "use strict"; var ef = { arrowUp: "\u2191", arrowDown: "\u2193", arrowLeft: "\u2190", arrowRight: "\u2192", radioOn: "\u25C9", radioOff: "\u25EF", tick: "\u2714", cross: "\u2716", ellipsis: "\u2026", pointerSmall: "\u203A", line: "\u2500", pointer: "\u276F" }, FY = { arrowUp: ef.arrowUp, arrowDown: ef.arrowDown, arrowLeft: ef.arrowLeft, arrowRight: ef.arrowRight, radioOn: "(*)", radioOff: "( )", tick: "\u221A", cross: "\xD7", ellipsis: "...", pointerSmall: "\xBB", line: "\u2500", pointer: ">" }, IY = process.platform === "win32" ? FY : ef; UO.exports = IY; }); // ../node_modules/prompts/lib/util/style.js var $O = E((RZe, WO) => { "use strict"; var Gu = nr(), Do = VD(), HD = Object.freeze({ password: { scale: 1, render: /* @__PURE__ */ s((e) => "*".repeat(e.length), "render") }, emoji: { scale: 2, render: /* @__PURE__ */ s((e) => "\u{1F603}".repeat(e.length), "render") }, invisible: { scale: 0, render: /* @__PURE__ */ s((e) => "", "render") }, default: { scale: 1, render: /* @__PURE__ */ s((e) => `${e}`, "render") } }), OY = /* @__PURE__ */ s((e) => HD[e] || HD.default, "render"), tf = Object.freeze({ aborted: Gu.red(Do.cross), done: Gu.green(Do.tick), exited: Gu.yellow(Do.cross), default: Gu.cyan("?") }), kY = /* @__PURE__ */ s((e, t, r) => t ? tf.aborted : r ? tf.exited : e ? tf.done : tf.default, "symbol"), BY = /* @__PURE__ */ s((e) => Gu. gray(e ? Do.ellipsis : Do.pointerSmall), "delimiter"), NY = /* @__PURE__ */ s((e, t) => Gu.gray(e ? t ? Do.pointerSmall : "+" : Do.line), "\ item"); WO.exports = { styles: HD, render: OY, symbols: tf, symbol: kY, delimiter: BY, item: NY }; }); // ../node_modules/prompts/lib/util/lines.js var HO = E((LZe, VO) => { "use strict"; var MY = hh(); VO.exports = function(e, t) { let r = String(MY(e) || "").split(/\r?\n/); return t ? r.map((i) => Math.ceil(i.length / t)).reduce((i, n) => i + n) : r.length; }; }); // ../node_modules/prompts/lib/util/wrap.js var zO = E((qZe, KO) => { "use strict"; KO.exports = (e, t = {}) => { let r = Number.isSafeInteger(parseInt(t.margin)) ? new Array(parseInt(t.margin)).fill(" ").join("") : t.margin || "", i = t.width; return (e || "").split(/\r?\n/g).map((n) => n.split(/\s+/g).reduce((a, o) => (o.length + r.length >= i || a[a.length - 1].length + o.length + 1 < i ? a[a.length - 1] += ` ${o}` : a.push(`${r}${o}`), a), [r]).join(` `)).join(` `); }; }); // ../node_modules/prompts/lib/util/entriesToDisplay.js var JO = E((UZe, GO) => { "use strict"; GO.exports = (e, t, r) => { r = r || t; let i = Math.min(t - r, e - Math.floor(r / 2)); i < 0 && (i = 0); let n = Math.min(i + r, t); return { startIndex: i, endIndex: n }; }; }); // ../node_modules/prompts/lib/util/index.js var vn = E((WZe, XO) => { "use strict"; XO.exports = { action: MO(), clear: qO(), style: $O(), strip: hh(), figures: VD(), lines: HO(), wrap: zO(), entriesToDisplay: JO() }; }); // ../node_modules/prompts/lib/elements/prompt.js var Es = E(($Ze, ZO) => { "use strict"; var YO = require("readline"), { action: RY } = vn(), jY = require("events"), { beep: LY, cursor: qY } = ar(), UY = nr(), KD = class extends jY { static { s(this, "Prompt"); } constructor(t = {}) { super(), this.firstRender = !0, this.in = t.stdin || process.stdin, this.out = t.stdout || process.stdout, this.onRender = (t.onRender || (() => { })).bind(this); let r = YO.createInterface({ input: this.in, escapeCodeTimeout: 50 }); YO.emitKeypressEvents(this.in, r), this.in.isTTY && this.in.setRawMode(!0); let i = ["SelectPrompt", "MultiselectPrompt"].indexOf(this.constructor.name) > -1, n = /* @__PURE__ */ s((a, o) => { let u = RY(o, i); u === !1 ? this._ && this._(a, o) : typeof this[u] == "function" ? this[u](o) : this.bell(); }, "keypress"); this.close = () => { this.out.write(qY.show), this.in.removeListener("keypress", n), this.in.isTTY && this.in.setRawMode(!1), r.close(), this.emit(this.aborted ? "abort" : this.exited ? "exit" : "submit", this.value), this.closed = !0; }, this.in.on("keypress", n); } fire() { this.emit("state", { value: this.value, aborted: !!this.aborted, exited: !!this.exited }); } bell() { this.out.write(LY); } render() { this.onRender(UY), this.firstRender && (this.firstRender = !1); } }; ZO.exports = KD; }); // ../node_modules/prompts/lib/elements/text.js var e3 = E((HZe, QO) => { var mh = nr(), WY = Es(), { erase: $Y, cursor: rf } = ar(), { style: zD, clear: GD, lines: VY, figures: HY } = vn(), JD = class extends WY { static { s(this, "TextPrompt"); } constructor(t = {}) { super(t), this.transform = zD.render(t.style), this.scale = this.transform.scale, this.msg = t.message, this.initial = t.initial || "", this.validator = t.validate || (() => !0), this.value = "", this.errorMsg = t.error || "Please Enter A Valid Value", this.cursor = +!!this. initial, this.cursorOffset = 0, this.clear = GD("", this.out.columns), this.render(); } set value(t) { !t && this.initial ? (this.placeholder = !0, this.rendered = mh.gray(this.transform.render(this.initial))) : (this.placeholder = !1, this. rendered = this.transform.render(t)), this._value = t, this.fire(); } get value() { return this._value; } reset() { this.value = "", this.cursor = +!!this.initial, this.cursorOffset = 0, this.fire(), this.render(); } exit() { this.abort(); } abort() { this.value = this.value || this.initial, this.done = this.aborted = !0, this.error = !1, this.red = !1, this.fire(), this.render(), this. out.write(` `), this.close(); } async validate() { let t = await this.validator(this.value); typeof t == "string" && (this.errorMsg = t, t = !1), this.error = !t; } async submit() { if (this.value = this.value || this.initial, this.cursorOffset = 0, this.cursor = this.rendered.length, await this.validate(), this.error) { this.red = !0, this.fire(), this.render(); return; } this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } next() { if (!this.placeholder) return this.bell(); this.value = this.initial, this.cursor = this.rendered.length, this.fire(), this.render(); } moveCursor(t) { this.placeholder || (this.cursor = this.cursor + t, this.cursorOffset += t); } _(t, r) { let i = this.value.slice(0, this.cursor), n = this.value.slice(this.cursor); this.value = `${i}${t}${n}`, this.red = !1, this.cursor = this.placeholder ? 0 : i.length + 1, this.render(); } delete() { if (this.isCursorAtStart()) return this.bell(); let t = this.value.slice(0, this.cursor - 1), r = this.value.slice(this.cursor); this.value = `${t}${r}`, this.red = !1, this.isCursorAtStart() ? this.cursorOffset = 0 : (this.cursorOffset++, this.moveCursor(-1)), this. render(); } deleteForward() { if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell(); let t = this.value.slice(0, this.cursor), r = this.value.slice(this.cursor + 1); this.value = `${t}${r}`, this.red = !1, this.isCursorAtEnd() ? this.cursorOffset = 0 : this.cursorOffset++, this.render(); } first() { this.cursor = 0, this.render(); } last() { this.cursor = this.value.length, this.render(); } left() { if (this.cursor <= 0 || this.placeholder) return this.bell(); this.moveCursor(-1), this.render(); } right() { if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell(); this.moveCursor(1), this.render(); } isCursorAtStart() { return this.cursor === 0 || this.placeholder && this.cursor === 1; } isCursorAtEnd() { return this.cursor === this.rendered.length || this.placeholder && this.cursor === this.rendered.length + 1; } render() { this.closed || (this.firstRender || (this.outputError && this.out.write(rf.down(VY(this.outputError, this.out.columns) - 1) + GD(this. outputError, this.out.columns)), this.out.write(GD(this.outputText, this.out.columns))), super.render(), this.outputError = "", this.outputText = [ zD.symbol(this.done, this.aborted), mh.bold(this.msg), zD.delimiter(this.done), this.red ? mh.red(this.rendered) : this.rendered ].join(" "), this.error && (this.outputError += this.errorMsg.split(` `).reduce((t, r, i) => t + ` ${i ? " " : HY.pointerSmall} ${mh.red().italic(r)}`, "")), this.out.write($Y.line + rf.to(0) + this.outputText + rf.save + this.outputError + rf.restore + rf.move(this.cursorOffset, 0))); } }; QO.exports = JD; }); // ../node_modules/prompts/lib/elements/select.js var n3 = E((zZe, i3) => { "use strict"; var xs = nr(), KY = Es(), { style: t3, clear: r3, figures: yh, wrap: zY, entriesToDisplay: GY } = vn(), { cursor: JY } = ar(), XD = class extends KY { static { s(this, "SelectPrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.hint = t.hint || "- Use arrow-keys. Return to submit.", this.warn = t.warn || "- This option is d\ isabled", this.cursor = t.initial || 0, this.choices = t.choices.map((r, i) => (typeof r == "string" && (r = { title: r, value: i }), { title: r && (r.title || r.value || r), value: r && (r.value === void 0 ? i : r.value), description: r && r.description, selected: r && r.selected, disabled: r && r.disabled })), this.optionsPerPage = t.optionsPerPage || 10, this.value = (this.choices[this.cursor] || {}).value, this.clear = r3("", this.out. columns), this.render(); } moveCursor(t) { this.cursor = t, this.value = this.choices[t].value, this.fire(); } reset() { this.moveCursor(0), this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.selection.disabled ? this.bell() : (this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close()); } first() { this.moveCursor(0), this.render(); } last() { this.moveCursor(this.choices.length - 1), this.render(); } up() { this.cursor === 0 ? this.moveCursor(this.choices.length - 1) : this.moveCursor(this.cursor - 1), this.render(); } down() { this.cursor === this.choices.length - 1 ? this.moveCursor(0) : this.moveCursor(this.cursor + 1), this.render(); } next() { this.moveCursor((this.cursor + 1) % this.choices.length), this.render(); } _(t, r) { if (t === " ") return this.submit(); } get selection() { return this.choices[this.cursor]; } render() { if (this.closed) return; this.firstRender ? this.out.write(JY.hide) : this.out.write(r3(this.outputText, this.out.columns)), super.render(); let { startIndex: t, endIndex: r } = GY(this.cursor, this.choices.length, this.optionsPerPage); if (this.outputText = [ t3.symbol(this.done, this.aborted), xs.bold(this.msg), t3.delimiter(!1), this.done ? this.selection.title : this.selection.disabled ? xs.yellow(this.warn) : xs.gray(this.hint) ].join(" "), !this.done) { this.outputText += ` `; for (let i = t; i < r; i++) { let n, a, o = "", u = this.choices[i]; i === t && t > 0 ? a = yh.arrowUp : i === r - 1 && r < this.choices.length ? a = yh.arrowDown : a = " ", u.disabled ? (n = this.cursor === i ? xs.gray().underline(u.title) : xs.strikethrough().gray(u.title), a = (this.cursor === i ? xs.bold().gray(yh.pointer) + " " : "\ ") + a) : (n = this.cursor === i ? xs.cyan().underline(u.title) : u.title, a = (this.cursor === i ? xs.cyan(yh.pointer) + " " : " ") + a, u.description && this.cursor === i && (o = ` - ${u.description}`, (a.length + n.length + o.length >= this.out.columns || u.description. split(/\r?\n/).length > 1) && (o = ` ` + zY(u.description, { margin: 3, width: this.out.columns })))), this.outputText += `${a} ${n}${xs.gray(o)} `; } } this.out.write(this.outputText); } }; i3.exports = XD; }); // ../node_modules/prompts/lib/elements/toggle.js var u3 = E((JZe, o3) => { var gh = nr(), XY = Es(), { style: s3, clear: YY } = vn(), { cursor: a3, erase: ZY } = ar(), YD = class extends XY { static { s(this, "TogglePrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.value = !!t.initial, this.active = t.active || "on", this.inactive = t.inactive || "off", this.initialValue = this.value, this.render(); } reset() { this.value = this.initialValue, this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } deactivate() { if (this.value === !1) return this.bell(); this.value = !1, this.render(); } activate() { if (this.value === !0) return this.bell(); this.value = !0, this.render(); } delete() { this.deactivate(); } left() { this.deactivate(); } right() { this.activate(); } down() { this.deactivate(); } up() { this.activate(); } next() { this.value = !this.value, this.fire(), this.render(); } _(t, r) { if (t === " ") this.value = !this.value; else if (t === "1") this.value = !0; else if (t === "0") this.value = !1; else return this.bell(); this.render(); } render() { this.closed || (this.firstRender ? this.out.write(a3.hide) : this.out.write(YY(this.outputText, this.out.columns)), super.render(), this. outputText = [ s3.symbol(this.done, this.aborted), gh.bold(this.msg), s3.delimiter(this.done), this.value ? this.inactive : gh.cyan().underline(this.inactive), gh.gray("/"), this.value ? gh.cyan().underline(this.active) : this.active ].join(" "), this.out.write(ZY.line + a3.to(0) + this.outputText)); } }; o3.exports = YD; }); // ../node_modules/prompts/lib/dateparts/datepart.js var Un = E((YZe, l3) => { "use strict"; var ZD = class e { static { s(this, "DatePart"); } constructor({ token: t, date: r, parts: i, locales: n }) { this.token = t, this.date = r || /* @__PURE__ */ new Date(), this.parts = i || [this], this.locales = n || {}; } up() { } down() { } next() { let t = this.parts.indexOf(this); return this.parts.find((r, i) => i > t && r instanceof e); } setTo(t) { } prev() { let t = [].concat(this.parts).reverse(), r = t.indexOf(this); return t.find((i, n) => n > r && i instanceof e); } toString() { return String(this.date); } }; l3.exports = ZD; }); // ../node_modules/prompts/lib/dateparts/meridiem.js var f3 = E((QZe, c3) => { "use strict"; var QY = Un(), QD = class extends QY { static { s(this, "Meridiem"); } constructor(t = {}) { super(t); } up() { this.date.setHours((this.date.getHours() + 12) % 24); } down() { this.up(); } toString() { let t = this.date.getHours() > 12 ? "pm" : "am"; return /\A/.test(this.token) ? t.toUpperCase() : t; } }; c3.exports = QD; }); // ../node_modules/prompts/lib/dateparts/day.js var p3 = E((tQe, d3) => { "use strict"; var eZ = Un(), tZ = /* @__PURE__ */ s((e) => (e = e % 10, e === 1 ? "st" : e === 2 ? "nd" : e === 3 ? "rd" : "th"), "pos"), ev = class extends eZ { static { s(this, "Day"); } constructor(t = {}) { super(t); } up() { this.date.setDate(this.date.getDate() + 1); } down() { this.date.setDate(this.date.getDate() - 1); } setTo(t) { this.date.setDate(parseInt(t.substr(-2))); } toString() { let t = this.date.getDate(), r = this.date.getDay(); return this.token === "DD" ? String(t).padStart(2, "0") : this.token === "Do" ? t + tZ(t) : this.token === "d" ? r + 1 : this.token === "ddd" ? this.locales.weekdaysShort[r] : this.token === "dddd" ? this.locales.weekdays[r] : t; } }; d3.exports = ev; }); // ../node_modules/prompts/lib/dateparts/hours.js var m3 = E((iQe, h3) => { "use strict"; var rZ = Un(), tv = class extends rZ { static { s(this, "Hours"); } constructor(t = {}) { super(t); } up() { this.date.setHours(this.date.getHours() + 1); } down() { this.date.setHours(this.date.getHours() - 1); } setTo(t) { this.date.setHours(parseInt(t.substr(-2))); } toString() { let t = this.date.getHours(); return /h/.test(this.token) && (t = t % 12 || 12), this.token.length > 1 ? String(t).padStart(2, "0") : t; } }; h3.exports = tv; }); // ../node_modules/prompts/lib/dateparts/milliseconds.js var g3 = E((sQe, y3) => { "use strict"; var iZ = Un(), rv = class extends iZ { static { s(this, "Milliseconds"); } constructor(t = {}) { super(t); } up() { this.date.setMilliseconds(this.date.getMilliseconds() + 1); } down() { this.date.setMilliseconds(this.date.getMilliseconds() - 1); } setTo(t) { this.date.setMilliseconds(parseInt(t.substr(-this.token.length))); } toString() { return String(this.date.getMilliseconds()).padStart(4, "0").substr(0, this.token.length); } }; y3.exports = rv; }); // ../node_modules/prompts/lib/dateparts/minutes.js var D3 = E((oQe, b3) => { "use strict"; var nZ = Un(), iv = class extends nZ { static { s(this, "Minutes"); } constructor(t = {}) { super(t); } up() { this.date.setMinutes(this.date.getMinutes() + 1); } down() { this.date.setMinutes(this.date.getMinutes() - 1); } setTo(t) { this.date.setMinutes(parseInt(t.substr(-2))); } toString() { let t = this.date.getMinutes(); return this.token.length > 1 ? String(t).padStart(2, "0") : t; } }; b3.exports = iv; }); // ../node_modules/prompts/lib/dateparts/month.js var E3 = E((lQe, v3) => { "use strict"; var sZ = Un(), nv = class extends sZ { static { s(this, "Month"); } constructor(t = {}) { super(t); } up() { this.date.setMonth(this.date.getMonth() + 1); } down() { this.date.setMonth(this.date.getMonth() - 1); } setTo(t) { t = parseInt(t.substr(-2)) - 1, this.date.setMonth(t < 0 ? 0 : t); } toString() { let t = this.date.getMonth(), r = this.token.length; return r === 2 ? String(t + 1).padStart(2, "0") : r === 3 ? this.locales.monthsShort[t] : r === 4 ? this.locales.months[t] : String(t + 1); } }; v3.exports = nv; }); // ../node_modules/prompts/lib/dateparts/seconds.js var S3 = E((fQe, x3) => { "use strict"; var aZ = Un(), sv = class extends aZ { static { s(this, "Seconds"); } constructor(t = {}) { super(t); } up() { this.date.setSeconds(this.date.getSeconds() + 1); } down() { this.date.setSeconds(this.date.getSeconds() - 1); } setTo(t) { this.date.setSeconds(parseInt(t.substr(-2))); } toString() { let t = this.date.getSeconds(); return this.token.length > 1 ? String(t).padStart(2, "0") : t; } }; x3.exports = sv; }); // ../node_modules/prompts/lib/dateparts/year.js var C3 = E((pQe, T3) => { "use strict"; var oZ = Un(), av = class extends oZ { static { s(this, "Year"); } constructor(t = {}) { super(t); } up() { this.date.setFullYear(this.date.getFullYear() + 1); } down() { this.date.setFullYear(this.date.getFullYear() - 1); } setTo(t) { this.date.setFullYear(t.substr(-4)); } toString() { let t = String(this.date.getFullYear()).padStart(4, "0"); return this.token.length === 2 ? t.substr(-2) : t; } }; T3.exports = av; }); // ../node_modules/prompts/lib/dateparts/index.js var A3 = E((mQe, w3) => { "use strict"; w3.exports = { DatePart: Un(), Meridiem: f3(), Day: p3(), Hours: m3(), Milliseconds: g3(), Minutes: D3(), Month: E3(), Seconds: S3(), Year: C3() }; }); // ../node_modules/prompts/lib/elements/date.js var B3 = E((yQe, k3) => { "use strict"; var ov = nr(), uZ = Es(), { style: _3, clear: P3, figures: lZ } = vn(), { erase: cZ, cursor: F3 } = ar(), { DatePart: I3, Meridiem: fZ, Day: dZ, Hours: pZ, Milliseconds: hZ, Minutes: mZ, Month: yZ, Seconds: gZ, Year: bZ } = A3(), DZ = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g, O3 = { 1: ({ token: e }) => e.replace(/\\(.)/g, "$1"), 2: (e) => new dZ(e), // Day // TODO 3: (e) => new yZ(e), // Month 4: (e) => new bZ(e), // Year 5: (e) => new fZ(e), // AM/PM // TODO (special) 6: (e) => new pZ(e), // Hours 7: (e) => new mZ(e), // Minutes 8: (e) => new gZ(e), // Seconds 9: (e) => new hZ(e) // Fractional seconds }, vZ = { months: "January,February,March,April,May,June,July,August,September,October,November,December".split(","), monthsShort: "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","), weekdays: "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","), weekdaysShort: "Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",") }, uv = class extends uZ { static { s(this, "DatePrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.cursor = 0, this.typed = "", this.locales = Object.assign(vZ, t.locales), this._date = t.initial || /* @__PURE__ */ new Date(), this.errorMsg = t.error || "Please Enter A Valid Value", this.validator = t.validate || (() => !0), this.mask = t.mask || "YYYY-MM-DD HH:mm:ss", this.clear = P3("", this.out.columns), this.render(); } get value() { return this.date; } get date() { return this._date; } set date(t) { t && this._date.setTime(t.getTime()); } set mask(t) { let r; for (this.parts = []; r = DZ.exec(t); ) { let n = r.shift(), a = r.findIndex((o) => o != null); this.parts.push(a in O3 ? O3[a]({ token: r[a] || n, date: this.date, parts: this.parts, locales: this.locales }) : r[a] || n); } let i = this.parts.reduce((n, a) => (typeof a == "string" && typeof n[n.length - 1] == "string" ? n[n.length - 1] += a : n.push(a), n), []); this.parts.splice(0), this.parts.push(...i), this.reset(); } moveCursor(t) { this.typed = "", this.cursor = t, this.fire(); } reset() { this.moveCursor(this.parts.findIndex((t) => t instanceof I3)), this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.error = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } async validate() { let t = await this.validator(this.value); typeof t == "string" && (this.errorMsg = t, t = !1), this.error = !t; } async submit() { if (await this.validate(), this.error) { this.color = "red", this.fire(), this.render(); return; } this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } up() { this.typed = "", this.parts[this.cursor].up(), this.render(); } down() { this.typed = "", this.parts[this.cursor].down(), this.render(); } left() { let t = this.parts[this.cursor].prev(); if (t == null) return this.bell(); this.moveCursor(this.parts.indexOf(t)), this.render(); } right() { let t = this.parts[this.cursor].next(); if (t == null) return this.bell(); this.moveCursor(this.parts.indexOf(t)), this.render(); } next() { let t = this.parts[this.cursor].next(); this.moveCursor(t ? this.parts.indexOf(t) : this.parts.findIndex((r) => r instanceof I3)), this.render(); } _(t) { /\d/.test(t) && (this.typed += t, this.parts[this.cursor].setTo(this.typed), this.render()); } render() { this.closed || (this.firstRender ? this.out.write(F3.hide) : this.out.write(P3(this.outputText, this.out.columns)), super.render(), this. outputText = [ _3.symbol(this.done, this.aborted), ov.bold(this.msg), _3.delimiter(!1), this.parts.reduce((t, r, i) => t.concat(i === this.cursor && !this.done ? ov.cyan().underline(r.toString()) : r), []).join("") ].join(" "), this.error && (this.outputText += this.errorMsg.split(` `).reduce( (t, r, i) => t + ` ${i ? " " : lZ.pointerSmall} ${ov.red().italic(r)}`, "" )), this.out.write(cZ.line + F3.to(0) + this.outputText)); } }; k3.exports = uv; }); // ../node_modules/prompts/lib/elements/number.js var j3 = E((bQe, R3) => { var bh = nr(), EZ = Es(), { cursor: Dh, erase: xZ } = ar(), { style: lv, figures: SZ, clear: N3, lines: TZ } = vn(), CZ = /[0-9]/, cv = /* @__PURE__ */ s( (e) => e !== void 0, "isDef"), M3 = /* @__PURE__ */ s((e, t) => { let r = Math.pow(10, t); return Math.round(e * r) / r; }, "round"), fv = class extends EZ { static { s(this, "NumberPrompt"); } constructor(t = {}) { super(t), this.transform = lv.render(t.style), this.msg = t.message, this.initial = cv(t.initial) ? t.initial : "", this.float = !!t.float, this.round = t.round || 2, this.inc = t.increment || 1, this.min = cv(t.min) ? t.min : -1 / 0, this.max = cv(t.max) ? t.max : 1 / 0, this. errorMsg = t.error || "Please Enter A Valid Value", this.validator = t.validate || (() => !0), this.color = "cyan", this.value = "", this. typed = "", this.lastHit = 0, this.render(); } set value(t) { !t && t !== 0 ? (this.placeholder = !0, this.rendered = bh.gray(this.transform.render(`${this.initial}`)), this._value = "") : (this.placeholder = !1, this.rendered = this.transform.render(`${M3(t, this.round)}`), this._value = M3(t, this.round)), this.fire(); } get value() { return this._value; } parse(t) { return this.float ? parseFloat(t) : parseInt(t); } valid(t) { return t === "-" || t === "." && this.float || CZ.test(t); } reset() { this.typed = "", this.value = "", this.fire(), this.render(); } exit() { this.abort(); } abort() { let t = this.value; this.value = t !== "" ? t : this.initial, this.done = this.aborted = !0, this.error = !1, this.fire(), this.render(), this.out.write(`\ `), this.close(); } async validate() { let t = await this.validator(this.value); typeof t == "string" && (this.errorMsg = t, t = !1), this.error = !t; } async submit() { if (await this.validate(), this.error) { this.color = "red", this.fire(), this.render(); return; } let t = this.value; this.value = t !== "" ? t : this.initial, this.done = !0, this.aborted = !1, this.error = !1, this.fire(), this.render(), this.out.write( ` `), this.close(); } up() { if (this.typed = "", this.value === "" && (this.value = this.min - this.inc), this.value >= this.max) return this.bell(); this.value += this.inc, this.color = "cyan", this.fire(), this.render(); } down() { if (this.typed = "", this.value === "" && (this.value = this.min + this.inc), this.value <= this.min) return this.bell(); this.value -= this.inc, this.color = "cyan", this.fire(), this.render(); } delete() { let t = this.value.toString(); if (t.length === 0) return this.bell(); this.value = this.parse(t = t.slice(0, -1)) || "", this.value !== "" && this.value < this.min && (this.value = this.min), this.color = "cyan", this.fire(), this.render(); } next() { this.value = this.initial, this.fire(), this.render(); } _(t, r) { if (!this.valid(t)) return this.bell(); let i = Date.now(); if (i - this.lastHit > 1e3 && (this.typed = ""), this.typed += t, this.lastHit = i, this.color = "cyan", t === ".") return this.fire(); this.value = Math.min(this.parse(this.typed), this.max), this.value > this.max && (this.value = this.max), this.value < this.min && (this. value = this.min), this.fire(), this.render(); } render() { this.closed || (this.firstRender || (this.outputError && this.out.write(Dh.down(TZ(this.outputError, this.out.columns) - 1) + N3(this. outputError, this.out.columns)), this.out.write(N3(this.outputText, this.out.columns))), super.render(), this.outputError = "", this.outputText = [ lv.symbol(this.done, this.aborted), bh.bold(this.msg), lv.delimiter(this.done), !this.done || !this.done && !this.placeholder ? bh[this.color]().underline(this.rendered) : this.rendered ].join(" "), this.error && (this.outputError += this.errorMsg.split(` `).reduce((t, r, i) => t + ` ${i ? " " : SZ.pointerSmall} ${bh.red().italic(r)}`, "")), this.out.write(xZ.line + Dh.to(0) + this.outputText + Dh.save + this.outputError + Dh.restore)); } }; R3.exports = fv; }); // ../node_modules/prompts/lib/elements/multiselect.js var pv = E((vQe, U3) => { "use strict"; var Wn = nr(), { cursor: wZ } = ar(), AZ = Es(), { clear: L3, figures: ba, style: q3, wrap: _Z, entriesToDisplay: PZ } = vn(), dv = class extends AZ { static { s(this, "MultiselectPrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.cursor = t.cursor || 0, this.scrollIndex = t.cursor || 0, this.hint = t.hint || "", this.warn = t. warn || "- This option is disabled -", this.minSelected = t.min, this.showMinError = !1, this.maxChoices = t.max, this.instructions = t. instructions, this.optionsPerPage = t.optionsPerPage || 10, this.value = t.choices.map((r, i) => (typeof r == "string" && (r = { title: r, value: i }), { title: r && (r.title || r.value || r), description: r && r.description, value: r && (r.value === void 0 ? i : r.value), selected: r && r.selected, disabled: r && r.disabled })), this.clear = L3("", this.out.columns), t.overrideRender || this.render(); } reset() { this.value.map((t) => !t.selected), this.cursor = 0, this.fire(), this.render(); } selected() { return this.value.filter((t) => t.selected); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { let t = this.value.filter((r) => r.selected); this.minSelected && t.length < this.minSelected ? (this.showMinError = !0, this.render()) : (this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close()); } first() { this.cursor = 0, this.render(); } last() { this.cursor = this.value.length - 1, this.render(); } next() { this.cursor = (this.cursor + 1) % this.value.length, this.render(); } up() { this.cursor === 0 ? this.cursor = this.value.length - 1 : this.cursor--, this.render(); } down() { this.cursor === this.value.length - 1 ? this.cursor = 0 : this.cursor++, this.render(); } left() { this.value[this.cursor].selected = !1, this.render(); } right() { if (this.value.filter((t) => t.selected).length >= this.maxChoices) return this.bell(); this.value[this.cursor].selected = !0, this.render(); } handleSpaceToggle() { let t = this.value[this.cursor]; if (t.selected) t.selected = !1, this.render(); else { if (t.disabled || this.value.filter((r) => r.selected).length >= this.maxChoices) return this.bell(); t.selected = !0, this.render(); } } toggleAll() { if (this.maxChoices !== void 0 || this.value[this.cursor].disabled) return this.bell(); let t = !this.value[this.cursor].selected; this.value.filter((r) => !r.disabled).forEach((r) => r.selected = t), this.render(); } _(t, r) { if (t === " ") this.handleSpaceToggle(); else if (t === "a") this.toggleAll(); else return this.bell(); } renderInstructions() { return this.instructions === void 0 || this.instructions ? typeof this.instructions == "string" ? this.instructions : ` Instructions: ${ba.arrowUp}/${ba.arrowDown}: Highlight option ${ba.arrowLeft}/${ba.arrowRight}/[space]: Toggle selection ` + (this.maxChoices === void 0 ? ` a: Toggle all ` : "") + " enter/return: Complete answer" : ""; } renderOption(t, r, i, n) { let a = (r.selected ? Wn.green(ba.radioOn) : ba.radioOff) + " " + n + " ", o, u; return r.disabled ? o = t === i ? Wn.gray().underline(r.title) : Wn.strikethrough().gray(r.title) : (o = t === i ? Wn.cyan().underline( r.title) : r.title, t === i && r.description && (u = ` - ${r.description}`, (a.length + o.length + u.length >= this.out.columns || r.description. split(/\r?\n/).length > 1) && (u = ` ` + _Z(r.description, { margin: a.length, width: this.out.columns })))), a + o + Wn.gray(u || ""); } // shared with autocompleteMultiselect paginateOptions(t) { if (t.length === 0) return Wn.red("No matches for this query."); let { startIndex: r, endIndex: i } = PZ(this.cursor, t.length, this.optionsPerPage), n, a = []; for (let o = r; o < i; o++) o === r && r > 0 ? n = ba.arrowUp : o === i - 1 && i < t.length ? n = ba.arrowDown : n = " ", a.push(this.renderOption(this.cursor, t[o], o, n)); return ` ` + a.join(` `); } // shared with autocomleteMultiselect renderOptions(t) { return this.done ? "" : this.paginateOptions(t); } renderDoneOrInstructions() { if (this.done) return this.value.filter((r) => r.selected).map((r) => r.title).join(", "); let t = [Wn.gray(this.hint), this.renderInstructions()]; return this.value[this.cursor].disabled && t.push(Wn.yellow(this.warn)), t.join(" "); } render() { if (this.closed) return; this.firstRender && this.out.write(wZ.hide), super.render(); let t = [ q3.symbol(this.done, this.aborted), Wn.bold(this.msg), q3.delimiter(!1), this.renderDoneOrInstructions() ].join(" "); this.showMinError && (t += Wn.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), t += this.renderOptions( this.value), this.out.write(this.clear + t), this.clear = L3(t, this.out.columns); } }; U3.exports = dv; }); // ../node_modules/prompts/lib/elements/autocomplete.js var K3 = E((xQe, H3) => { "use strict"; var nf = nr(), FZ = Es(), { erase: IZ, cursor: W3 } = ar(), { style: hv, clear: $3, figures: mv, wrap: OZ, entriesToDisplay: kZ } = vn(), V3 = /* @__PURE__ */ s( (e, t) => e[t] && (e[t].value || e[t].title || e[t]), "getVal"), BZ = /* @__PURE__ */ s((e, t) => e[t] && (e[t].title || e[t].value || e[t]), "getTitle"), NZ = /* @__PURE__ */ s((e, t) => { let r = e.findIndex((i) => i.value === t || i.title === t); return r > -1 ? r : void 0; }, "getIndex"), yv = class extends FZ { static { s(this, "AutocompletePrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.suggest = t.suggest, this.choices = t.choices, this.initial = typeof t.initial == "number" ? t.initial : NZ(t.choices, t.initial), this.select = this.initial || t.cursor || 0, this.i18n = { noMatches: t.noMatches || "no matches found" }, this. fallback = t.fallback || this.initial, this.clearFirst = t.clearFirst || !1, this.suggestions = [], this.input = "", this.limit = t.limit || 10, this.cursor = 0, this.transform = hv.render(t.style), this.scale = this.transform.scale, this.render = this.render.bind(this), this. complete = this.complete.bind(this), this.clear = $3("", this.out.columns), this.complete(this.render), this.render(); } set fallback(t) { this._fb = Number.isSafeInteger(parseInt(t)) ? parseInt(t) : t; } get fallback() { let t; return typeof this._fb == "number" ? t = this.choices[this._fb] : typeof this._fb == "string" && (t = { title: this._fb }), t || this. _fb || { title: this.i18n.noMatches }; } moveSelect(t) { this.select = t, this.suggestions.length > 0 ? this.value = V3(this.suggestions, t) : this.value = this.fallback.value, this.fire(); } async complete(t) { let r = this.completing = this.suggest(this.input, this.choices), i = await r; if (this.completing !== r) return; this.suggestions = i.map((a, o, u) => ({ title: BZ(u, o), value: V3(u, o), description: a.description })), this.completing = !1; let n = Math.max(i.length - 1, 0); this.moveSelect(Math.min(n, this.select)), t && t(); } reset() { this.input = "", this.complete(() => { this.moveSelect(this.initial !== void 0 ? this.initial : 0), this.render(); }), this.render(); } exit() { this.clearFirst && this.input.length > 0 ? this.reset() : (this.done = this.exited = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close()); } abort() { this.done = this.aborted = !0, this.exited = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.done = !0, this.aborted = this.exited = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } _(t, r) { let i = this.input.slice(0, this.cursor), n = this.input.slice(this.cursor); this.input = `${i}${t}${n}`, this.cursor = i.length + 1, this.complete(this.render), this.render(); } delete() { if (this.cursor === 0) return this.bell(); let t = this.input.slice(0, this.cursor - 1), r = this.input.slice(this.cursor); this.input = `${t}${r}`, this.complete(this.render), this.cursor = this.cursor - 1, this.render(); } deleteForward() { if (this.cursor * this.scale >= this.rendered.length) return this.bell(); let t = this.input.slice(0, this.cursor), r = this.input.slice(this.cursor + 1); this.input = `${t}${r}`, this.complete(this.render), this.render(); } first() { this.moveSelect(0), this.render(); } last() { this.moveSelect(this.suggestions.length - 1), this.render(); } up() { this.select === 0 ? this.moveSelect(this.suggestions.length - 1) : this.moveSelect(this.select - 1), this.render(); } down() { this.select === this.suggestions.length - 1 ? this.moveSelect(0) : this.moveSelect(this.select + 1), this.render(); } next() { this.select === this.suggestions.length - 1 ? this.moveSelect(0) : this.moveSelect(this.select + 1), this.render(); } nextPage() { this.moveSelect(Math.min(this.select + this.limit, this.suggestions.length - 1)), this.render(); } prevPage() { this.moveSelect(Math.max(this.select - this.limit, 0)), this.render(); } left() { if (this.cursor <= 0) return this.bell(); this.cursor = this.cursor - 1, this.render(); } right() { if (this.cursor * this.scale >= this.rendered.length) return this.bell(); this.cursor = this.cursor + 1, this.render(); } renderOption(t, r, i, n) { let a, o = i ? mv.arrowUp : n ? mv.arrowDown : " ", u = r ? nf.cyan().underline(t.title) : t.title; return o = (r ? nf.cyan(mv.pointer) + " " : " ") + o, t.description && (a = ` - ${t.description}`, (o.length + u.length + a.length >= this.out.columns || t.description.split(/\r?\n/).length > 1) && (a = ` ` + OZ(t.description, { margin: 3, width: this.out.columns }))), o + " " + u + nf.gray(a || ""); } render() { if (this.closed) return; this.firstRender ? this.out.write(W3.hide) : this.out.write($3(this.outputText, this.out.columns)), super.render(); let { startIndex: t, endIndex: r } = kZ(this.select, this.choices.length, this.limit); if (this.outputText = [ hv.symbol(this.done, this.aborted, this.exited), nf.bold(this.msg), hv.delimiter(this.completing), this.done && this.suggestions[this.select] ? this.suggestions[this.select].title : this.rendered = this.transform.render(this.input) ].join(" "), !this.done) { let i = this.suggestions.slice(t, r).map((n, a) => this.renderOption( n, this.select === a + t, a === 0 && t > 0, a + t === r - 1 && r < this.choices.length )).join(` `); this.outputText += ` ` + (i || nf.gray(this.fallback.title)); } this.out.write(IZ.line + W3.to(0) + this.outputText); } }; H3.exports = yv; }); // ../node_modules/prompts/lib/elements/autocompleteMultiselect.js var X3 = E((TQe, J3) => { "use strict"; var Ss = nr(), { cursor: MZ } = ar(), RZ = pv(), { clear: z3, style: G3, figures: Ju } = vn(), gv = class extends RZ { static { s(this, "AutocompleteMultiselectPrompt"); } constructor(t = {}) { t.overrideRender = !0, super(t), this.inputValue = "", this.clear = z3("", this.out.columns), this.filteredOptions = this.value, this. render(); } last() { this.cursor = this.filteredOptions.length - 1, this.render(); } next() { this.cursor = (this.cursor + 1) % this.filteredOptions.length, this.render(); } up() { this.cursor === 0 ? this.cursor = this.filteredOptions.length - 1 : this.cursor--, this.render(); } down() { this.cursor === this.filteredOptions.length - 1 ? this.cursor = 0 : this.cursor++, this.render(); } left() { this.filteredOptions[this.cursor].selected = !1, this.render(); } right() { if (this.value.filter((t) => t.selected).length >= this.maxChoices) return this.bell(); this.filteredOptions[this.cursor].selected = !0, this.render(); } delete() { this.inputValue.length && (this.inputValue = this.inputValue.substr(0, this.inputValue.length - 1), this.updateFilteredOptions()); } updateFilteredOptions() { let t = this.filteredOptions[this.cursor]; this.filteredOptions = this.value.filter((i) => this.inputValue ? !!(typeof i.title == "string" && i.title.toLowerCase().includes(this. inputValue.toLowerCase()) || typeof i.value == "string" && i.value.toLowerCase().includes(this.inputValue.toLowerCase())) : !0); let r = this.filteredOptions.findIndex((i) => i === t); this.cursor = r < 0 ? 0 : r, this.render(); } handleSpaceToggle() { let t = this.filteredOptions[this.cursor]; if (t.selected) t.selected = !1, this.render(); else { if (t.disabled || this.value.filter((r) => r.selected).length >= this.maxChoices) return this.bell(); t.selected = !0, this.render(); } } handleInputChange(t) { this.inputValue = this.inputValue + t, this.updateFilteredOptions(); } _(t, r) { t === " " ? this.handleSpaceToggle() : this.handleInputChange(t); } renderInstructions() { return this.instructions === void 0 || this.instructions ? typeof this.instructions == "string" ? this.instructions : ` Instructions: ${Ju.arrowUp}/${Ju.arrowDown}: Highlight option ${Ju.arrowLeft}/${Ju.arrowRight}/[space]: Toggle selection [a,b,c]/delete: Filter choices enter/return: Complete answer ` : ""; } renderCurrentInput() { return ` Filtered results for: ${this.inputValue ? this.inputValue : Ss.gray("Enter something to filter")} `; } renderOption(t, r, i) { let n; return r.disabled ? n = t === i ? Ss.gray().underline(r.title) : Ss.strikethrough().gray(r.title) : n = t === i ? Ss.cyan().underline( r.title) : r.title, (r.selected ? Ss.green(Ju.radioOn) : Ju.radioOff) + " " + n; } renderDoneOrInstructions() { if (this.done) return this.value.filter((r) => r.selected).map((r) => r.title).join(", "); let t = [Ss.gray(this.hint), this.renderInstructions(), this.renderCurrentInput()]; return this.filteredOptions.length && this.filteredOptions[this.cursor].disabled && t.push(Ss.yellow(this.warn)), t.join(" "); } render() { if (this.closed) return; this.firstRender && this.out.write(MZ.hide), super.render(); let t = [ G3.symbol(this.done, this.aborted), Ss.bold(this.msg), G3.delimiter(!1), this.renderDoneOrInstructions() ].join(" "); this.showMinError && (t += Ss.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), t += this.renderOptions( this.filteredOptions), this.out.write(this.clear + t), this.clear = z3(t, this.out.columns); } }; J3.exports = gv; }); // ../node_modules/prompts/lib/elements/confirm.js var tk = E((wQe, ek) => { var Y3 = nr(), jZ = Es(), { style: Z3, clear: LZ } = vn(), { erase: qZ, cursor: Q3 } = ar(), bv = class extends jZ { static { s(this, "ConfirmPrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.value = t.initial, this.initialValue = !!t.initial, this.yesMsg = t.yes || "yes", this.yesOption = t.yesOption || "(Y/n)", this.noMsg = t.no || "no", this.noOption = t.noOption || "(y/N)", this.render(); } reset() { this.value = this.initialValue, this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.value = this.value || !1, this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } _(t, r) { return t.toLowerCase() === "y" ? (this.value = !0, this.submit()) : t.toLowerCase() === "n" ? (this.value = !1, this.submit()) : this. bell(); } render() { this.closed || (this.firstRender ? this.out.write(Q3.hide) : this.out.write(LZ(this.outputText, this.out.columns)), super.render(), this. outputText = [ Z3.symbol(this.done, this.aborted), Y3.bold(this.msg), Z3.delimiter(this.done), this.done ? this.value ? this.yesMsg : this.noMsg : Y3.gray(this.initialValue ? this.yesOption : this.noOption) ].join(" "), this.out.write(qZ.line + Q3.to(0) + this.outputText)); } }; ek.exports = bv; }); // ../node_modules/prompts/lib/elements/index.js var ik = E((_Qe, rk) => { "use strict"; rk.exports = { TextPrompt: e3(), SelectPrompt: n3(), TogglePrompt: u3(), DatePrompt: B3(), NumberPrompt: j3(), MultiselectPrompt: pv(), AutocompletePrompt: K3(), AutocompleteMultiselectPrompt: X3(), ConfirmPrompt: tk() }; }); // ../node_modules/prompts/lib/prompts.js var sk = E((nk) => { "use strict"; var Si = nk, UZ = ik(), vh = /* @__PURE__ */ s((e) => e, "noop"); function $n(e, t, r = {}) { return new Promise((i, n) => { let a = new UZ[e](t), o = r.onAbort || vh, u = r.onSubmit || vh, l = r.onExit || vh; a.on("state", t.onState || vh), a.on("submit", (c) => i(u(c))), a.on("exit", (c) => i(l(c))), a.on("abort", (c) => n(o(c))); }); } s($n, "toPrompt"); Si.text = (e) => $n("TextPrompt", e); Si.password = (e) => (e.style = "password", Si.text(e)); Si.invisible = (e) => (e.style = "invisible", Si.text(e)); Si.number = (e) => $n("NumberPrompt", e); Si.date = (e) => $n("DatePrompt", e); Si.confirm = (e) => $n("ConfirmPrompt", e); Si.list = (e) => { let t = e.separator || ","; return $n("TextPrompt", e, { onSubmit: /* @__PURE__ */ s((r) => r.split(t).map((i) => i.trim()), "onSubmit") }); }; Si.toggle = (e) => $n("TogglePrompt", e); Si.select = (e) => $n("SelectPrompt", e); Si.multiselect = (e) => { e.choices = [].concat(e.choices || []); let t = /* @__PURE__ */ s((r) => r.filter((i) => i.selected).map((i) => i.value), "toSelected"); return $n("MultiselectPrompt", e, { onAbort: t, onSubmit: t }); }; Si.autocompleteMultiselect = (e) => { e.choices = [].concat(e.choices || []); let t = /* @__PURE__ */ s((r) => r.filter((i) => i.selected).map((i) => i.value), "toSelected"); return $n("AutocompleteMultiselectPrompt", e, { onAbort: t, onSubmit: t }); }; var WZ = /* @__PURE__ */ s((e, t) => Promise.resolve( t.filter((r) => r.title.slice(0, e.length).toLowerCase() === e.toLowerCase()) ), "byTitle"); Si.autocomplete = (e) => (e.suggest = e.suggest || WZ, e.choices = [].concat(e.choices || []), $n("AutocompletePrompt", e)); }); // ../node_modules/prompts/lib/index.js var uk = E((IQe, ok) => { "use strict"; var Dv = sk(), $Z = ["suggest", "format", "onState", "validate", "onRender", "type"], ak = /* @__PURE__ */ s(() => { }, "noop"); async function Da(e = [], { onSubmit: t = ak, onCancel: r = ak } = {}) { let i = {}, n = Da._override || {}; e = [].concat(e); let a, o, u, l, c, f, m = /* @__PURE__ */ s(async (h, d, y = !1) => { if (!(!y && h.validate && h.validate(d) !== !0)) return h.format ? await h.format(d, i) : d; }, "getFormattedAnswer"); for (o of e) if ({ name: l, type: c } = o, typeof c == "function" && (c = await c(a, { ...i }, o), o.type = c), !!c) { for (let h in o) { if ($Z.includes(h)) continue; let d = o[h]; o[h] = typeof d == "function" ? await d(a, { ...i }, f) : d; } if (f = o, typeof o.message != "string") throw new Error("prompt message is required"); if ({ name: l, type: c } = o, Dv[c] === void 0) throw new Error(`prompt type (${c}) is not defined`); if (n[o.name] !== void 0 && (a = await m(o, n[o.name]), a !== void 0)) { i[l] = a; continue; } try { a = Da._injected ? VZ(Da._injected, o.initial) : await Dv[c](o), i[l] = a = await m(o, a, !0), u = await t(o, a, i); } catch { u = !await r(o, i); } if (u) return i; } return i; } s(Da, "prompt"); function VZ(e, t) { let r = e.shift(); if (r instanceof Error) throw r; return r === void 0 ? t : r; } s(VZ, "getInjectedAnswer"); function HZ(e) { Da._injected = (Da._injected || []).concat(e); } s(HZ, "inject"); function KZ(e) { Da._override = Object.assign({}, e); } s(KZ, "override"); ok.exports = Object.assign(Da, { prompt: Da, prompts: Dv, inject: HZ, override: KZ }); }); // ../node_modules/prompts/index.js var vv = E((kQe, lk) => { function zZ(e) { e = (Array.isArray(e) ? e : e.split(".")).map(Number); let t = 0, r = process.versions.node.split(".").map(Number); for (; t < e.length; t++) { if (r[t] > e[t]) return !1; if (e[t] > r[t]) return !0; } return !1; } s(zZ, "isNodeLT"); lk.exports = zZ("8.6.0") ? BO() : uk(); }); // ../node_modules/picocolors/picocolors.js var Sh = E((NQe, Ev) => { var xh = process || {}, ck = xh.argv || [], Eh = xh.env || {}, GZ = !(Eh.NO_COLOR || ck.includes("--no-color")) && (!!Eh.FORCE_COLOR || ck. includes("--color") || xh.platform === "win32" || (xh.stdout || {}).isTTY && Eh.TERM !== "dumb" || !!Eh.CI), JZ = /* @__PURE__ */ s((e, t, r = e) => (i) => { let n = "" + i, a = n.indexOf(t, e.length); return ~a ? e + XZ(n, t, r, a) + t : e + n + t; }, "formatter"), XZ = /* @__PURE__ */ s((e, t, r, i) => { let n = "", a = 0; do n += e.substring(a, i) + r, a = i + t.length, i = e.indexOf(t, a); while (~i); return n + e.substring(a); }, "replaceClose"), fk = /* @__PURE__ */ s((e = GZ) => { let t = e ? JZ : () => String; return { isColorSupported: e, reset: t("\x1B[0m", "\x1B[0m"), bold: t("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"), dim: t("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"), italic: t("\x1B[3m", "\x1B[23m"), underline: t("\x1B[4m", "\x1B[24m"), inverse: t("\x1B[7m", "\x1B[27m"), hidden: t("\x1B[8m", "\x1B[28m"), strikethrough: t("\x1B[9m", "\x1B[29m"), black: t("\x1B[30m", "\x1B[39m"), red: t("\x1B[31m", "\x1B[39m"), green: t("\x1B[32m", "\x1B[39m"), yellow: t("\x1B[33m", "\x1B[39m"), blue: t("\x1B[34m", "\x1B[39m"), magenta: t("\x1B[35m", "\x1B[39m"), cyan: t("\x1B[36m", "\x1B[39m"), white: t("\x1B[37m", "\x1B[39m"), gray: t("\x1B[90m", "\x1B[39m"), bgBlack: t("\x1B[40m", "\x1B[49m"), bgRed: t("\x1B[41m", "\x1B[49m"), bgGreen: t("\x1B[42m", "\x1B[49m"), bgYellow: t("\x1B[43m", "\x1B[49m"), bgBlue: t("\x1B[44m", "\x1B[49m"), bgMagenta: t("\x1B[45m", "\x1B[49m"), bgCyan: t("\x1B[46m", "\x1B[49m"), bgWhite: t("\x1B[47m", "\x1B[49m"), blackBright: t("\x1B[90m", "\x1B[39m"), redBright: t("\x1B[91m", "\x1B[39m"), greenBright: t("\x1B[92m", "\x1B[39m"), yellowBright: t("\x1B[93m", "\x1B[39m"), blueBright: t("\x1B[94m", "\x1B[39m"), magentaBright: t("\x1B[95m", "\x1B[39m"), cyanBright: t("\x1B[96m", "\x1B[39m"), whiteBright: t("\x1B[97m", "\x1B[39m"), bgBlackBright: t("\x1B[100m", "\x1B[49m"), bgRedBright: t("\x1B[101m", "\x1B[49m"), bgGreenBright: t("\x1B[102m", "\x1B[49m"), bgYellowBright: t("\x1B[103m", "\x1B[49m"), bgBlueBright: t("\x1B[104m", "\x1B[49m"), bgMagentaBright: t("\x1B[105m", "\x1B[49m"), bgCyanBright: t("\x1B[106m", "\x1B[49m"), bgWhiteBright: t("\x1B[107m", "\x1B[49m") }; }, "createColors"); Ev.exports = fk(); Ev.exports.createColors = fk; }); // ../node_modules/wrappy/wrappy.js var mk = E((UQe, hk) => { hk.exports = pk; function pk(e, t) { if (e && t) return pk(e)(t); if (typeof e != "function") throw new TypeError("need wrapper function"); return Object.keys(e).forEach(function(i) { r[i] = e[i]; }), r; function r() { for (var i = new Array(arguments.length), n = 0; n < i.length; n++) i[n] = arguments[n]; var a = e.apply(this, i), o = i[i.length - 1]; return typeof a == "function" && a !== o && Object.keys(o).forEach(function(u) { a[u] = o[u]; }), a; } s(r, "wrapper"); } s(pk, "wrappy"); }); // ../node_modules/once/once.js var Ch = E(($Qe, Cv) => { var yk = mk(); Cv.exports = yk(Th); Cv.exports.strict = yk(gk); Th.proto = Th(function() { Object.defineProperty(Function.prototype, "once", { value: /* @__PURE__ */ s(function() { return Th(this); }, "value"), configurable: !0 }), Object.defineProperty(Function.prototype, "onceStrict", { value: /* @__PURE__ */ s(function() { return gk(this); }, "value"), configurable: !0 }); }); function Th(e) { var t = /* @__PURE__ */ s(function() { return t.called ? t.value : (t.called = !0, t.value = e.apply(this, arguments)); }, "f"); return t.called = !1, t; } s(Th, "once"); function gk(e) { var t = /* @__PURE__ */ s(function() { if (t.called) throw new Error(t.onceError); return t.called = !0, t.value = e.apply(this, arguments); }, "f"), r = e.name || "Function wrapped with `once`"; return t.onceError = r + " shouldn't be called more than once", t.called = !1, t; } s(gk, "onceStrict"); }); // ../node_modules/end-of-stream/index.js var Xu = E((HQe, Dk) => { var tQ = Ch(), rQ = /* @__PURE__ */ s(function() { }, "noop"), iQ = /* @__PURE__ */ s(function(e) { return e.setHeader && typeof e.abort == "function"; }, "isRequest"), nQ = /* @__PURE__ */ s(function(e) { return e.stdio && Array.isArray(e.stdio) && e.stdio.length === 3; }, "isChildProcess"), bk = /* @__PURE__ */ s(function(e, t, r) { if (typeof t == "function") return bk(e, null, t); t || (t = {}), r = tQ(r || rQ); var i = e._writableState, n = e._readableState, a = t.readable || t.readable !== !1 && e.readable, o = t.writable || t.writable !== !1 && e.writable, u = !1, l = /* @__PURE__ */ s(function() { e.writable || c(); }, "onlegacyfinish"), c = /* @__PURE__ */ s(function() { o = !1, a || r.call(e); }, "onfinish"), f = /* @__PURE__ */ s(function() { a = !1, o || r.call(e); }, "onend"), m = /* @__PURE__ */ s(function(g) { r.call(e, g ? new Error("exited with error code: " + g) : null); }, "onexit"), h = /* @__PURE__ */ s(function(g) { r.call(e, g); }, "onerror"), d = /* @__PURE__ */ s(function() { process.nextTick(y); }, "onclose"), y = /* @__PURE__ */ s(function() { if (!u) { if (a && !(n && n.ended && !n.destroyed)) return r.call(e, new Error("premature close")); if (o && !(i && i.ended && !i.destroyed)) return r.call(e, new Error("premature close")); } }, "onclosenexttick"), p = /* @__PURE__ */ s(function() { e.req.on("finish", c); }, "onrequest"); return iQ(e) ? (e.on("complete", c), e.on("abort", d), e.req ? p() : e.on("request", p)) : o && !i && (e.on("end", l), e.on("close", l)), nQ(e) && e.on("exit", m), e.on("end", f), e.on("finish", c), t.error !== !1 && e.on("error", h), e.on("close", d), function() { u = !0, e.removeListener("complete", c), e.removeListener("abort", d), e.removeListener("request", p), e.req && e.req.removeListener("\ finish", c), e.removeListener("end", l), e.removeListener("close", l), e.removeListener("finish", c), e.removeListener("exit", m), e.removeListener( "end", f), e.removeListener("error", h), e.removeListener("close", d); }; }, "eos"); Dk.exports = bk; }); // ../node_modules/pump/index.js var wv = E((zQe, Ek) => { var sQ = Ch(), aQ = Xu(), wh; try { wh = require("fs"); } catch { } var af = /* @__PURE__ */ s(function() { }, "noop"), oQ = /^v?\.0/.test(process.version), Ah = /* @__PURE__ */ s(function(e) { return typeof e == "function"; }, "isFn"), uQ = /* @__PURE__ */ s(function(e) { return !oQ || !wh ? !1 : (e instanceof (wh.ReadStream || af) || e instanceof (wh.WriteStream || af)) && Ah(e.close); }, "isFS"), lQ = /* @__PURE__ */ s(function(e) { return e.setHeader && Ah(e.abort); }, "isRequest"), cQ = /* @__PURE__ */ s(function(e, t, r, i) { i = sQ(i); var n = !1; e.on("close", function() { n = !0; }), aQ(e, { readable: t, writable: r }, function(o) { if (o) return i(o); n = !0, i(); }); var a = !1; return function(o) { if (!n && !a) { if (a = !0, uQ(e)) return e.close(af); if (lQ(e)) return e.abort(); if (Ah(e.destroy)) return e.destroy(); i(o || new Error("stream was destroyed")); } }; }, "destroyer"), vk = /* @__PURE__ */ s(function(e) { e(); }, "call"), fQ = /* @__PURE__ */ s(function(e, t) { return e.pipe(t); }, "pipe"), dQ = /* @__PURE__ */ s(function() { var e = Array.prototype.slice.call(arguments), t = Ah(e[e.length - 1] || af) && e.pop() || af; if (Array.isArray(e[0]) && (e = e[0]), e.length < 2) throw new Error("pump requires two streams per minimum"); var r, i = e.map(function(n, a) { var o = a < e.length - 1, u = a > 0; return cQ(n, o, u, function(l) { r || (r = l), l && i.forEach(vk), !o && (i.forEach(vk), t(r)); }); }); return e.reduce(fQ); }, "pump"); Ek.exports = dQ; }); // ../node_modules/tar-fs/node_modules/chownr/chownr.js var _k = E((JQe, Ak) => { "use strict"; var Vi = require("fs"), vo = require("path"), pQ = Vi.lchown ? "lchown" : "chown", hQ = Vi.lchownSync ? "lchownSync" : "chownSync", Sk = Vi. lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/), xk = /* @__PURE__ */ s((e, t, r) => { try { return Vi[hQ](e, t, r); } catch (i) { if (i.code !== "ENOENT") throw i; } }, "lchownSync"), mQ = /* @__PURE__ */ s((e, t, r) => { try { return Vi.chownSync(e, t, r); } catch (i) { if (i.code !== "ENOENT") throw i; } }, "chownSync"), yQ = Sk ? (e, t, r, i) => (n) => { !n || n.code !== "EISDIR" ? i(n) : Vi.chown(e, t, r, i); } : (e, t, r, i) => i, Av = Sk ? (e, t, r) => { try { return xk(e, t, r); } catch (i) { if (i.code !== "EISDIR") throw i; mQ(e, t, r); } } : (e, t, r) => xk(e, t, r), gQ = process.version, Tk = /* @__PURE__ */ s((e, t, r) => Vi.readdir(e, t, r), "readdir"), bQ = /* @__PURE__ */ s( (e, t) => Vi.readdirSync(e, t), "readdirSync"); /^v4\./.test(gQ) && (Tk = /* @__PURE__ */ s((e, t, r) => Vi.readdir(e, r), "readdir")); var _h = /* @__PURE__ */ s((e, t, r, i) => { Vi[pQ](e, t, r, yQ(e, t, r, (n) => { i(n && n.code !== "ENOENT" ? n : null); })); }, "chown"), Ck = /* @__PURE__ */ s((e, t, r, i, n) => { if (typeof t == "string") return Vi.lstat(vo.resolve(e, t), (a, o) => { if (a) return n(a.code !== "ENOENT" ? a : null); o.name = t, Ck(e, o, r, i, n); }); if (t.isDirectory()) _v(vo.resolve(e, t.name), r, i, (a) => { if (a) return n(a); let o = vo.resolve(e, t.name); _h(o, r, i, n); }); else { let a = vo.resolve(e, t.name); _h(a, r, i, n); } }, "chownrKid"), _v = /* @__PURE__ */ s((e, t, r, i) => { Tk(e, { withFileTypes: !0 }, (n, a) => { if (n) { if (n.code === "ENOENT") return i(); if (n.code !== "ENOTDIR" && n.code !== "ENOTSUP") return i(n); } if (n || !a.length) return _h(e, t, r, i); let o = a.length, u = null, l = /* @__PURE__ */ s((c) => { if (!u) { if (c) return i(u = c); if (--o === 0) return _h(e, t, r, i); } }, "then"); a.forEach((c) => Ck(e, c, t, r, l)); }); }, "chownr"), DQ = /* @__PURE__ */ s((e, t, r, i) => { if (typeof t == "string") try { let n = Vi.lstatSync(vo.resolve(e, t)); n.name = t, t = n; } catch (n) { if (n.code === "ENOENT") return; throw n; } t.isDirectory() && wk(vo.resolve(e, t.name), r, i), Av(vo.resolve(e, t.name), r, i); }, "chownrKidSync"), wk = /* @__PURE__ */ s((e, t, r) => { let i; try { i = bQ(e, { withFileTypes: !0 }); } catch (n) { if (n.code === "ENOENT") return; if (n.code === "ENOTDIR" || n.code === "ENOTSUP") return Av(e, t, r); throw n; } return i && i.length && i.forEach((n) => DQ(e, n, t, r)), Av(e, t, r); }, "chownrSync"); Ak.exports = _v; _v.sync = wk; }); // ../node_modules/readable-stream/lib/internal/streams/stream.js var Pv = E((YQe, Pk) => { Pk.exports = require("stream"); }); // ../node_modules/readable-stream/lib/internal/streams/buffer_list.js var Nk = E((ZQe, Bk) => { "use strict"; function Fk(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var i = Object.getOwnPropertySymbols(e); t && (i = i.filter(function(n) { return Object.getOwnPropertyDescriptor(e, n).enumerable; })), r.push.apply(r, i); } return r; } s(Fk, "ownKeys"); function Ik(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? Fk(Object(r), !0).forEach(function(i) { vQ(e, i, r[i]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Fk(Object(r)).forEach(function(i) { Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(r, i)); }); } return e; } s(Ik, "_objectSpread"); function vQ(e, t, r) { return t = kk(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } s(vQ, "_defineProperty"); function EQ(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } s(EQ, "_classCallCheck"); function Ok(e, t) { for (var r = 0; r < t.length; r++) { var i = t[r]; i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, kk(i.key), i); } } s(Ok, "_defineProperties"); function xQ(e, t, r) { return t && Ok(e.prototype, t), r && Ok(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e; } s(xQ, "_createClass"); function kk(e) { var t = SQ(e, "string"); return typeof t == "symbol" ? t : String(t); } s(kk, "_toPropertyKey"); function SQ(e, t) { if (typeof e != "object" || e === null) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var i = r.call(e, t || "default"); if (typeof i != "object") return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } s(SQ, "_toPrimitive"); var TQ = require("buffer"), Ph = TQ.Buffer, CQ = require("util"), Fv = CQ.inspect, wQ = Fv && Fv.custom || "inspect"; function AQ(e, t, r) { Ph.prototype.copy.call(e, t, r); } s(AQ, "copyBuffer"); Bk.exports = /* @__PURE__ */ function() { function e() { EQ(this, e), this.head = null, this.tail = null, this.length = 0; } return s(e, "BufferList"), xQ(e, [{ key: "push", value: /* @__PURE__ */ s(function(r) { var i = { data: r, next: null }; this.length > 0 ? this.tail.next = i : this.head = i, this.tail = i, ++this.length; }, "push") }, { key: "unshift", value: /* @__PURE__ */ s(function(r) { var i = { data: r, next: this.head }; this.length === 0 && (this.tail = i), this.head = i, ++this.length; }, "unshift") }, { key: "shift", value: /* @__PURE__ */ s(function() { if (this.length !== 0) { var r = this.head.data; return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, r; } }, "shift") }, { key: "clear", value: /* @__PURE__ */ s(function() { this.head = this.tail = null, this.length = 0; }, "clear") }, { key: "join", value: /* @__PURE__ */ s(function(r) { if (this.length === 0) return ""; for (var i = this.head, n = "" + i.data; i = i.next; ) n += r + i.data; return n; }, "join") }, { key: "concat", value: /* @__PURE__ */ s(function(r) { if (this.length === 0) return Ph.alloc(0); for (var i = Ph.allocUnsafe(r >>> 0), n = this.head, a = 0; n; ) AQ(n.data, i, a), a += n.data.length, n = n.next; return i; }, "concat") // Consumes a specified amount of bytes or characters from the buffered data. }, { key: "consume", value: /* @__PURE__ */ s(function(r, i) { var n; return r < this.head.data.length ? (n = this.head.data.slice(0, r), this.head.data = this.head.data.slice(r)) : r === this.head.data. length ? n = this.shift() : n = i ? this._getString(r) : this._getBuffer(r), n; }, "consume") }, { key: "first", value: /* @__PURE__ */ s(function() { return this.head.data; }, "first") // Consumes a specified amount of characters from the buffered data. }, { key: "_getString", value: /* @__PURE__ */ s(function(r) { var i = this.head, n = 1, a = i.data; for (r -= a.length; i = i.next; ) { var o = i.data, u = r > o.length ? o.length : r; if (u === o.length ? a += o : a += o.slice(0, r), r -= u, r === 0) { u === o.length ? (++n, i.next ? this.head = i.next : this.head = this.tail = null) : (this.head = i, i.data = o.slice(u)); break; } ++n; } return this.length -= n, a; }, "_getString") // Consumes a specified amount of bytes from the buffered data. }, { key: "_getBuffer", value: /* @__PURE__ */ s(function(r) { var i = Ph.allocUnsafe(r), n = this.head, a = 1; for (n.data.copy(i), r -= n.data.length; n = n.next; ) { var o = n.data, u = r > o.length ? o.length : r; if (o.copy(i, i.length - r, 0, u), r -= u, r === 0) { u === o.length ? (++a, n.next ? this.head = n.next : this.head = this.tail = null) : (this.head = n, n.data = o.slice(u)); break; } ++a; } return this.length -= a, i; }, "_getBuffer") // Make sure the linked list only shows the minimal necessary information. }, { key: wQ, value: /* @__PURE__ */ s(function(r, i) { return Fv(this, Ik(Ik({}, i), {}, { // Only inspect one level. depth: 0, // It should not recurse. customInspect: !1 })); }, "value") }]), e; }(); }); // ../node_modules/readable-stream/lib/internal/streams/destroy.js var Ov = E((eet, Rk) => { "use strict"; function _Q(e, t) { var r = this, i = this._readableState && this._readableState.destroyed, n = this._writableState && this._writableState.destroyed; return i || n ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process. nextTick(Iv, this, e)) : process.nextTick(Iv, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(a) { !t && a ? r._writableState ? r._writableState.errorEmitted ? process.nextTick(Fh, r) : (r._writableState.errorEmitted = !0, process.nextTick( Mk, r, a)) : process.nextTick(Mk, r, a) : t ? (process.nextTick(Fh, r), t(a)) : process.nextTick(Fh, r); }), this); } s(_Q, "destroy"); function Mk(e, t) { Iv(e, t), Fh(e); } s(Mk, "emitErrorAndCloseNT"); function Fh(e) { e._writableState && !e._writableState.emitClose || e._readableState && !e._readableState.emitClose || e.emit("close"); } s(Fh, "emitCloseNT"); function PQ() { this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState. endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1); } s(PQ, "undestroy"); function Iv(e, t) { e.emit("error", t); } s(Iv, "emitErrorNT"); function FQ(e, t) { var r = e._readableState, i = e._writableState; r && r.autoDestroy || i && i.autoDestroy ? e.destroy(t) : e.emit("error", t); } s(FQ, "errorOrDestroy"); Rk.exports = { destroy: _Q, undestroy: PQ, errorOrDestroy: FQ }; }); // ../node_modules/readable-stream/errors.js var va = E((ret, qk) => { "use strict"; var Lk = {}; function Hi(e, t, r) { r || (r = Error); function i(a, o, u) { return typeof t == "string" ? t : t(a, o, u); } s(i, "getMessage"); class n extends r { static { s(this, "NodeError"); } constructor(o, u, l) { super(i(o, u, l)); } } n.prototype.name = r.name, n.prototype.code = e, Lk[e] = n; } s(Hi, "createErrorType"); function jk(e, t) { if (Array.isArray(e)) { let r = e.length; return e = e.map((i) => String(i)), r > 2 ? `one of ${t} ${e.slice(0, r - 1).join(", ")}, or ` + e[r - 1] : r === 2 ? `one of ${t} ${e[0]}\ or ${e[1]}` : `of ${t} ${e[0]}`; } else return `of ${t} ${String(e)}`; } s(jk, "oneOf"); function IQ(e, t, r) { return e.substr(!r || r < 0 ? 0 : +r, t.length) === t; } s(IQ, "startsWith"); function OQ(e, t, r) { return (r === void 0 || r > e.length) && (r = e.length), e.substring(r - t.length, r) === t; } s(OQ, "endsWith"); function kQ(e, t, r) { return typeof r != "number" && (r = 0), r + t.length > e.length ? !1 : e.indexOf(t, r) !== -1; } s(kQ, "includes"); Hi("ERR_INVALID_OPT_VALUE", function(e, t) { return 'The value "' + t + '" is invalid for option "' + e + '"'; }, TypeError); Hi("ERR_INVALID_ARG_TYPE", function(e, t, r) { let i; typeof t == "string" && IQ(t, "not ") ? (i = "must not be", t = t.replace(/^not /, "")) : i = "must be"; let n; if (OQ(e, " argument")) n = `The ${e} ${i} ${jk(t, "type")}`; else { let a = kQ(e, ".") ? "property" : "argument"; n = `The "${e}" ${a} ${i} ${jk(t, "type")}`; } return n += `. Received type ${typeof r}`, n; }, TypeError); Hi("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"); Hi("ERR_METHOD_NOT_IMPLEMENTED", function(e) { return "The " + e + " method is not implemented"; }); Hi("ERR_STREAM_PREMATURE_CLOSE", "Premature close"); Hi("ERR_STREAM_DESTROYED", function(e) { return "Cannot call " + e + " after a stream was destroyed"; }); Hi("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"); Hi("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"); Hi("ERR_STREAM_WRITE_AFTER_END", "write after end"); Hi("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError); Hi("ERR_UNKNOWN_ENCODING", function(e) { return "Unknown encoding: " + e; }, TypeError); Hi("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"); qk.exports.codes = Lk; }); // ../node_modules/readable-stream/lib/internal/streams/state.js var kv = E((net, Uk) => { "use strict"; var BQ = va().codes.ERR_INVALID_OPT_VALUE; function NQ(e, t, r) { return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null; } s(NQ, "highWaterMarkFrom"); function MQ(e, t, r, i) { var n = NQ(t, i, r); if (n != null) { if (!(isFinite(n) && Math.floor(n) === n) || n < 0) { var a = i ? r : "highWaterMark"; throw new BQ(a, n); } return Math.floor(n); } return e.objectMode ? 16 : 16 * 1024; } s(MQ, "getHighWaterMark"); Uk.exports = { getHighWaterMark: MQ }; }); // ../node_modules/inherits/inherits_browser.js var Wk = E((aet, Bv) => { typeof Object.create == "function" ? Bv.exports = /* @__PURE__ */ s(function(t, r) { r && (t.super_ = r, t.prototype = Object.create(r.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } })); }, "inherits") : Bv.exports = /* @__PURE__ */ s(function(t, r) { if (r) { t.super_ = r; var i = /* @__PURE__ */ s(function() { }, "TempCtor"); i.prototype = r.prototype, t.prototype = new i(), t.prototype.constructor = t; } }, "inherits"); }); // ../node_modules/inherits/inherits.js var jt = E((uet, Mv) => { try { if (Nv = require("util"), typeof Nv.inherits != "function") throw ""; Mv.exports = Nv.inherits; } catch { Mv.exports = Wk(); } var Nv; }); // ../node_modules/util-deprecate/node.js var of = E((cet, $k) => { $k.exports = require("util").deprecate; }); // ../node_modules/readable-stream/lib/_stream_writable.js var Lv = E((fet, Jk) => { "use strict"; Jk.exports = ur; function Hk(e) { var t = this; this.next = null, this.entry = null, this.finish = function() { lee(t, e); }; } s(Hk, "CorkedRequest"); var Yu; ur.WritableState = lf; var RQ = { deprecate: of() }, Kk = Pv(), Oh = require("buffer").Buffer, jQ = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function LQ(e) { return Oh.from(e); } s(LQ, "_uint8ArrayToBuffer"); function qQ(e) { return Oh.isBuffer(e) || e instanceof jQ; } s(qQ, "_isUint8Array"); var jv = Ov(), UQ = kv(), WQ = UQ.getHighWaterMark, Ea = va().codes, $Q = Ea.ERR_INVALID_ARG_TYPE, VQ = Ea.ERR_METHOD_NOT_IMPLEMENTED, HQ = Ea. ERR_MULTIPLE_CALLBACK, KQ = Ea.ERR_STREAM_CANNOT_PIPE, zQ = Ea.ERR_STREAM_DESTROYED, GQ = Ea.ERR_STREAM_NULL_VALUES, JQ = Ea.ERR_STREAM_WRITE_AFTER_END, XQ = Ea.ERR_UNKNOWN_ENCODING, Zu = jv.errorOrDestroy; jt()(ur, Kk); function YQ() { } s(YQ, "nop"); function lf(e, t, r) { Yu = Yu || Eo(), e = e || {}, typeof r != "boolean" && (r = t instanceof Yu), this.objectMode = !!e.objectMode, r && (this.objectMode = this. objectMode || !!e.writableObjectMode), this.highWaterMark = WQ(this, e, "writableHighWaterMark", r), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; var i = e.decodeStrings === !1; this.decodeStrings = !i, this.defaultEncoding = e.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(n) { nee(t, n); }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = e.emitClose !== !1, this.autoDestroy = !!e.autoDestroy, this.bufferedRequestCount = 0, this. corkedRequestsFree = new Hk(this); } s(lf, "WritableState"); lf.prototype.getBuffer = /* @__PURE__ */ s(function() { for (var t = this.bufferedRequest, r = []; t; ) r.push(t), t = t.next; return r; }, "getBuffer"); (function() { try { Object.defineProperty(lf.prototype, "buffer", { get: RQ.deprecate(/* @__PURE__ */ s(function() { return this.getBuffer(); }, "writableStateBufferGetter"), "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") }); } catch { } })(); var Ih; typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (Ih = Function.prototype[Symbol. hasInstance], Object.defineProperty(ur, Symbol.hasInstance, { value: /* @__PURE__ */ s(function(t) { return Ih.call(this, t) ? !0 : this !== ur ? !1 : t && t._writableState instanceof lf; }, "value") })) : Ih = /* @__PURE__ */ s(function(t) { return t instanceof this; }, "realHasInstance"); function ur(e) { Yu = Yu || Eo(); var t = this instanceof Yu; if (!t && !Ih.call(ur, this)) return new ur(e); this._writableState = new lf(e, this, t), this.writable = !0, e && (typeof e.write == "function" && (this._write = e.write), typeof e.writev == "function" && (this._writev = e.writev), typeof e.destroy == "function" && (this._destroy = e.destroy), typeof e.final == "function" && (this. _final = e.final)), Kk.call(this); } s(ur, "Writable"); ur.prototype.pipe = function() { Zu(this, new KQ()); }; function ZQ(e, t) { var r = new JQ(); Zu(e, r), process.nextTick(t, r); } s(ZQ, "writeAfterEnd"); function QQ(e, t, r, i) { var n; return r === null ? n = new GQ() : typeof r != "string" && !t.objectMode && (n = new $Q("chunk", ["string", "Buffer"], r)), n ? (Zu(e, n), process.nextTick(i, n), !1) : !0; } s(QQ, "validChunk"); ur.prototype.write = function(e, t, r) { var i = this._writableState, n = !1, a = !i.objectMode && qQ(e); return a && !Oh.isBuffer(e) && (e = LQ(e)), typeof t == "function" && (r = t, t = null), a ? t = "buffer" : t || (t = i.defaultEncoding), typeof r != "function" && (r = YQ), i.ending ? ZQ(this, r) : (a || QQ(this, i, e, r)) && (i.pendingcb++, n = tee(this, i, a, e, t, r)), n; }; ur.prototype.cork = function() { this._writableState.corked++; }; ur.prototype.uncork = function() { var e = this._writableState; e.corked && (e.corked--, !e.writing && !e.corked && !e.bufferProcessing && e.bufferedRequest && zk(this, e)); }; ur.prototype.setDefaultEncoding = /* @__PURE__ */ s(function(t) { if (typeof t == "string" && (t = t.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "\ utf-16le", "raw"].indexOf((t + "").toLowerCase()) > -1)) throw new XQ(t); return this._writableState.defaultEncoding = t, this; }, "setDefaultEncoding"); Object.defineProperty(ur.prototype, "writableBuffer", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._writableState && this._writableState.getBuffer(); }, "get") }); function eee(e, t, r) { return !e.objectMode && e.decodeStrings !== !1 && typeof t == "string" && (t = Oh.from(t, r)), t; } s(eee, "decodeChunk"); Object.defineProperty(ur.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._writableState.highWaterMark; }, "get") }); function tee(e, t, r, i, n, a) { if (!r) { var o = eee(t, i, n); i !== o && (r = !0, n = "buffer", i = o); } var u = t.objectMode ? 1 : i.length; t.length += u; var l = t.length < t.highWaterMark; if (l || (t.needDrain = !0), t.writing || t.corked) { var c = t.lastBufferedRequest; t.lastBufferedRequest = { chunk: i, encoding: n, isBuf: r, callback: a, next: null }, c ? c.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1; } else Rv(e, t, !1, u, i, n, a); return l; } s(tee, "writeOrBuffer"); function Rv(e, t, r, i, n, a, o) { t.writelen = i, t.writecb = o, t.writing = !0, t.sync = !0, t.destroyed ? t.onwrite(new zQ("write")) : r ? e._writev(n, t.onwrite) : e._write( n, a, t.onwrite), t.sync = !1; } s(Rv, "doWrite"); function ree(e, t, r, i, n) { --t.pendingcb, r ? (process.nextTick(n, i), process.nextTick(uf, e, t), e._writableState.errorEmitted = !0, Zu(e, i)) : (n(i), e._writableState. errorEmitted = !0, Zu(e, i), uf(e, t)); } s(ree, "onwriteError"); function iee(e) { e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0; } s(iee, "onwriteStateUpdate"); function nee(e, t) { var r = e._writableState, i = r.sync, n = r.writecb; if (typeof n != "function") throw new HQ(); if (iee(r), t) ree(e, r, i, t, n); else { var a = Gk(r) || e.destroyed; !a && !r.corked && !r.bufferProcessing && r.bufferedRequest && zk(e, r), i ? process.nextTick(Vk, e, r, a, n) : Vk(e, r, a, n); } } s(nee, "onwrite"); function Vk(e, t, r, i) { r || see(e, t), t.pendingcb--, i(), uf(e, t); } s(Vk, "afterWrite"); function see(e, t) { t.length === 0 && t.needDrain && (t.needDrain = !1, e.emit("drain")); } s(see, "onwriteDrain"); function zk(e, t) { t.bufferProcessing = !0; var r = t.bufferedRequest; if (e._writev && r && r.next) { var i = t.bufferedRequestCount, n = new Array(i), a = t.corkedRequestsFree; a.entry = r; for (var o = 0, u = !0; r; ) n[o] = r, r.isBuf || (u = !1), r = r.next, o += 1; n.allBuffers = u, Rv(e, t, !0, t.length, n, "", a.finish), t.pendingcb++, t.lastBufferedRequest = null, a.next ? (t.corkedRequestsFree = a.next, a.next = null) : t.corkedRequestsFree = new Hk(t), t.bufferedRequestCount = 0; } else { for (; r; ) { var l = r.chunk, c = r.encoding, f = r.callback, m = t.objectMode ? 1 : l.length; if (Rv(e, t, !1, m, l, c, f), r = r.next, t.bufferedRequestCount--, t.writing) break; } r === null && (t.lastBufferedRequest = null); } t.bufferedRequest = r, t.bufferProcessing = !1; } s(zk, "clearBuffer"); ur.prototype._write = function(e, t, r) { r(new VQ("_write()")); }; ur.prototype._writev = null; ur.prototype.end = function(e, t, r) { var i = this._writableState; return typeof e == "function" ? (r = e, e = null, t = null) : typeof t == "function" && (r = t, t = null), e != null && this.write(e, t), i.corked && (i.corked = 1, this.uncork()), i.ending || uee(this, i, r), this; }; Object.defineProperty(ur.prototype, "writableLength", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._writableState.length; }, "get") }); function Gk(e) { return e.ending && e.length === 0 && e.bufferedRequest === null && !e.finished && !e.writing; } s(Gk, "needFinish"); function aee(e, t) { e._final(function(r) { t.pendingcb--, r && Zu(e, r), t.prefinished = !0, e.emit("prefinish"), uf(e, t); }); } s(aee, "callFinal"); function oee(e, t) { !t.prefinished && !t.finalCalled && (typeof e._final == "function" && !t.destroyed ? (t.pendingcb++, t.finalCalled = !0, process.nextTick( aee, e, t)) : (t.prefinished = !0, e.emit("prefinish"))); } s(oee, "prefinish"); function uf(e, t) { var r = Gk(t); if (r && (oee(e, t), t.pendingcb === 0 && (t.finished = !0, e.emit("finish"), t.autoDestroy))) { var i = e._readableState; (!i || i.autoDestroy && i.endEmitted) && e.destroy(); } return r; } s(uf, "finishMaybe"); function uee(e, t, r) { t.ending = !0, uf(e, t), r && (t.finished ? process.nextTick(r) : e.once("finish", r)), t.ended = !0, e.writable = !1; } s(uee, "endWritable"); function lee(e, t, r) { var i = e.entry; for (e.entry = null; i; ) { var n = i.callback; t.pendingcb--, n(r), i = i.next; } t.corkedRequestsFree.next = e; } s(lee, "onCorkedFinish"); Object.defineProperty(ur.prototype, "destroyed", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._writableState === void 0 ? !1 : this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ s(function(t) { this._writableState && (this._writableState.destroyed = t); }, "set") }); ur.prototype.destroy = jv.destroy; ur.prototype._undestroy = jv.undestroy; ur.prototype._destroy = function(e, t) { t(e); }; }); // ../node_modules/readable-stream/lib/_stream_duplex.js var Eo = E((pet, Yk) => { "use strict"; var cee = Object.keys || function(e) { var t = []; for (var r in e) t.push(r); return t; }; Yk.exports = Vn; var Xk = Wv(), Uv = Lv(); jt()(Vn, Xk); for (qv = cee(Uv.prototype), kh = 0; kh < qv.length; kh++) Bh = qv[kh], Vn.prototype[Bh] || (Vn.prototype[Bh] = Uv.prototype[Bh]); var qv, Bh, kh; function Vn(e) { if (!(this instanceof Vn)) return new Vn(e); Xk.call(this, e), Uv.call(this, e), this.allowHalfOpen = !0, e && (e.readable === !1 && (this.readable = !1), e.writable === !1 && (this. writable = !1), e.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", fee))); } s(Vn, "Duplex"); Object.defineProperty(Vn.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._writableState.highWaterMark; }, "get") }); Object.defineProperty(Vn.prototype, "writableBuffer", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._writableState && this._writableState.getBuffer(); }, "get") }); Object.defineProperty(Vn.prototype, "writableLength", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._writableState.length; }, "get") }); function fee() { this._writableState.ended || process.nextTick(dee, this); } s(fee, "onend"); function dee(e) { e.end(); } s(dee, "onEndNT"); Object.defineProperty(Vn.prototype, "destroyed", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ s(function(t) { this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = t, this._writableState.destroyed = t); }, "set") }); }); // ../node_modules/readable-stream/lib/internal/streams/end-of-stream.js var Nh = E((met, eB) => { "use strict"; var Zk = va().codes.ERR_STREAM_PREMATURE_CLOSE; function pee(e) { var t = !1; return function() { if (!t) { t = !0; for (var r = arguments.length, i = new Array(r), n = 0; n < r; n++) i[n] = arguments[n]; e.apply(this, i); } }; } s(pee, "once"); function hee() { } s(hee, "noop"); function mee(e) { return e.setHeader && typeof e.abort == "function"; } s(mee, "isRequest"); function Qk(e, t, r) { if (typeof t == "function") return Qk(e, null, t); t || (t = {}), r = pee(r || hee); var i = t.readable || t.readable !== !1 && e.readable, n = t.writable || t.writable !== !1 && e.writable, a = /* @__PURE__ */ s(function() { e.writable || u(); }, "onlegacyfinish"), o = e._writableState && e._writableState.finished, u = /* @__PURE__ */ s(function() { n = !1, o = !0, i || r.call(e); }, "onfinish"), l = e._readableState && e._readableState.endEmitted, c = /* @__PURE__ */ s(function() { i = !1, l = !0, n || r.call(e); }, "onend"), f = /* @__PURE__ */ s(function(y) { r.call(e, y); }, "onerror"), m = /* @__PURE__ */ s(function() { var y; if (i && !l) return (!e._readableState || !e._readableState.ended) && (y = new Zk()), r.call(e, y); if (n && !o) return (!e._writableState || !e._writableState.ended) && (y = new Zk()), r.call(e, y); }, "onclose"), h = /* @__PURE__ */ s(function() { e.req.on("finish", u); }, "onrequest"); return mee(e) ? (e.on("complete", u), e.on("abort", m), e.req ? h() : e.on("request", h)) : n && !e._writableState && (e.on("end", a), e. on("close", a)), e.on("end", c), e.on("finish", u), t.error !== !1 && e.on("error", f), e.on("close", m), function() { e.removeListener("complete", u), e.removeListener("abort", m), e.removeListener("request", h), e.req && e.req.removeListener("finish", u), e.removeListener("end", a), e.removeListener("close", a), e.removeListener("finish", u), e.removeListener("end", c), e.removeListener( "error", f), e.removeListener("close", m); }; } s(Qk, "eos"); eB.exports = Qk; }); // ../node_modules/readable-stream/lib/internal/streams/async_iterator.js var rB = E((get, tB) => { "use strict"; var Mh; function xa(e, t, r) { return t = yee(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } s(xa, "_defineProperty"); function yee(e) { var t = gee(e, "string"); return typeof t == "symbol" ? t : String(t); } s(yee, "_toPropertyKey"); function gee(e, t) { if (typeof e != "object" || e === null) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var i = r.call(e, t || "default"); if (typeof i != "object") return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } s(gee, "_toPrimitive"); var bee = Nh(), Sa = Symbol("lastResolve"), xo = Symbol("lastReject"), cf = Symbol("error"), Rh = Symbol("ended"), So = Symbol("lastPromis\ e"), $v = Symbol("handlePromise"), To = Symbol("stream"); function Ta(e, t) { return { value: e, done: t }; } s(Ta, "createIterResult"); function Dee(e) { var t = e[Sa]; if (t !== null) { var r = e[To].read(); r !== null && (e[So] = null, e[Sa] = null, e[xo] = null, t(Ta(r, !1))); } } s(Dee, "readAndResolve"); function vee(e) { process.nextTick(Dee, e); } s(vee, "onReadable"); function Eee(e, t) { return function(r, i) { e.then(function() { if (t[Rh]) { r(Ta(void 0, !0)); return; } t[$v](r, i); }, i); }; } s(Eee, "wrapForNext"); var xee = Object.getPrototypeOf(function() { }), See = Object.setPrototypeOf((Mh = { get stream() { return this[To]; }, next: /* @__PURE__ */ s(function() { var t = this, r = this[cf]; if (r !== null) return Promise.reject(r); if (this[Rh]) return Promise.resolve(Ta(void 0, !0)); if (this[To].destroyed) return new Promise(function(o, u) { process.nextTick(function() { t[cf] ? u(t[cf]) : o(Ta(void 0, !0)); }); }); var i = this[So], n; if (i) n = new Promise(Eee(i, this)); else { var a = this[To].read(); if (a !== null) return Promise.resolve(Ta(a, !1)); n = new Promise(this[$v]); } return this[So] = n, n; }, "next") }, xa(Mh, Symbol.asyncIterator, function() { return this; }), xa(Mh, "return", /* @__PURE__ */ s(function() { var t = this; return new Promise(function(r, i) { t[To].destroy(null, function(n) { if (n) { i(n); return; } r(Ta(void 0, !0)); }); }); }, "_return")), Mh), xee), Tee = /* @__PURE__ */ s(function(t) { var r, i = Object.create(See, (r = {}, xa(r, To, { value: t, writable: !0 }), xa(r, Sa, { value: null, writable: !0 }), xa(r, xo, { value: null, writable: !0 }), xa(r, cf, { value: null, writable: !0 }), xa(r, Rh, { value: t._readableState.endEmitted, writable: !0 }), xa(r, $v, { value: /* @__PURE__ */ s(function(a, o) { var u = i[To].read(); u ? (i[So] = null, i[Sa] = null, i[xo] = null, a(Ta(u, !1))) : (i[Sa] = a, i[xo] = o); }, "value"), writable: !0 }), r)); return i[So] = null, bee(t, function(n) { if (n && n.code !== "ERR_STREAM_PREMATURE_CLOSE") { var a = i[xo]; a !== null && (i[So] = null, i[Sa] = null, i[xo] = null, a(n)), i[cf] = n; return; } var o = i[Sa]; o !== null && (i[So] = null, i[Sa] = null, i[xo] = null, o(Ta(void 0, !0))), i[Rh] = !0; }), t.on("readable", vee.bind(null, i)), i; }, "createReadableStreamAsyncIterator"); tB.exports = Tee; }); // ../node_modules/readable-stream/lib/internal/streams/from.js var aB = E((Det, sB) => { "use strict"; function iB(e, t, r, i, n, a, o) { try { var u = e[a](o), l = u.value; } catch (c) { r(c); return; } u.done ? t(l) : Promise.resolve(l).then(i, n); } s(iB, "asyncGeneratorStep"); function Cee(e) { return function() { var t = this, r = arguments; return new Promise(function(i, n) { var a = e.apply(t, r); function o(l) { iB(a, i, n, o, u, "next", l); } s(o, "_next"); function u(l) { iB(a, i, n, o, u, "throw", l); } s(u, "_throw"), o(void 0); }); }; } s(Cee, "_asyncToGenerator"); function nB(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var i = Object.getOwnPropertySymbols(e); t && (i = i.filter(function(n) { return Object.getOwnPropertyDescriptor(e, n).enumerable; })), r.push.apply(r, i); } return r; } s(nB, "ownKeys"); function wee(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? nB(Object(r), !0).forEach(function(i) { Aee(e, i, r[i]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : nB(Object(r)).forEach(function(i) { Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(r, i)); }); } return e; } s(wee, "_objectSpread"); function Aee(e, t, r) { return t = _ee(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } s(Aee, "_defineProperty"); function _ee(e) { var t = Pee(e, "string"); return typeof t == "symbol" ? t : String(t); } s(_ee, "_toPropertyKey"); function Pee(e, t) { if (typeof e != "object" || e === null) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var i = r.call(e, t || "default"); if (typeof i != "object") return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } s(Pee, "_toPrimitive"); var Fee = va().codes.ERR_INVALID_ARG_TYPE; function Iee(e, t, r) { var i; if (t && typeof t.next == "function") i = t; else if (t && t[Symbol.asyncIterator]) i = t[Symbol.asyncIterator](); else if (t && t[Symbol.iterator]) i = t[Symbol.iterator](); else throw new Fee("iterable", ["Iterable"], t); var n = new e(wee({ objectMode: !0 }, r)), a = !1; n._read = function() { a || (a = !0, o()); }; function o() { return u.apply(this, arguments); } s(o, "next"); function u() { return u = Cee(function* () { try { var l = yield i.next(), c = l.value, f = l.done; f ? n.push(null) : n.push(yield c) ? o() : a = !1; } catch (m) { n.destroy(m); } }), u.apply(this, arguments); } return s(u, "_next2"), n; } s(Iee, "from"); sB.exports = Iee; }); // ../node_modules/readable-stream/lib/_stream_readable.js var Wv = E((xet, yB) => { "use strict"; yB.exports = bt; var Qu; bt.ReadableState = cB; var Eet = require("events").EventEmitter, lB = /* @__PURE__ */ s(function(t, r) { return t.listeners(r).length; }, "EElistenerCount"), df = Pv(), jh = require("buffer").Buffer, Oee = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function kee(e) { return jh.from(e); } s(kee, "_uint8ArrayToBuffer"); function Bee(e) { return jh.isBuffer(e) || e instanceof Oee; } s(Bee, "_isUint8Array"); var Vv = require("util"), st; Vv && Vv.debuglog ? st = Vv.debuglog("stream") : st = /* @__PURE__ */ s(function() { }, "debug"); var Nee = Nk(), Yv = Ov(), Mee = kv(), Ree = Mee.getHighWaterMark, Lh = va().codes, jee = Lh.ERR_INVALID_ARG_TYPE, Lee = Lh.ERR_STREAM_PUSH_AFTER_EOF, qee = Lh.ERR_METHOD_NOT_IMPLEMENTED, Uee = Lh.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, el, Hv, Kv; jt()(bt, df); var ff = Yv.errorOrDestroy, zv = ["error", "close", "destroy", "pause", "resume"]; function Wee(e, t, r) { if (typeof e.prependListener == "function") return e.prependListener(t, r); !e._events || !e._events[t] ? e.on(t, r) : Array.isArray(e._events[t]) ? e._events[t].unshift(r) : e._events[t] = [r, e._events[t]]; } s(Wee, "prependListener"); function cB(e, t, r) { Qu = Qu || Eo(), e = e || {}, typeof r != "boolean" && (r = t instanceof Qu), this.objectMode = !!e.objectMode, r && (this.objectMode = this. objectMode || !!e.readableObjectMode), this.highWaterMark = Ree(this, e, "readableHighWaterMark", r), this.buffer = new Nee(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = e.emitClose !== !1, this.autoDestroy = !!e.autoDestroy, this.destroyed = !1, this.defaultEncoding = e.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, e.encoding && (el || (el = require("string_decoder/").StringDecoder), this.decoder = new el(e.encoding), this.encoding = e.encoding); } s(cB, "ReadableState"); function bt(e) { if (Qu = Qu || Eo(), !(this instanceof bt)) return new bt(e); var t = this instanceof Qu; this._readableState = new cB(e, this, t), this.readable = !0, e && (typeof e.read == "function" && (this._read = e.read), typeof e.destroy == "function" && (this._destroy = e.destroy)), df.call(this); } s(bt, "Readable"); Object.defineProperty(bt.prototype, "destroyed", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._readableState === void 0 ? !1 : this._readableState.destroyed; }, "get"), set: /* @__PURE__ */ s(function(t) { this._readableState && (this._readableState.destroyed = t); }, "set") }); bt.prototype.destroy = Yv.destroy; bt.prototype._undestroy = Yv.undestroy; bt.prototype._destroy = function(e, t) { t(e); }; bt.prototype.push = function(e, t) { var r = this._readableState, i; return r.objectMode ? i = !0 : typeof e == "string" && (t = t || r.defaultEncoding, t !== r.encoding && (e = jh.from(e, t), t = ""), i = !0), fB(this, e, t, !1, i); }; bt.prototype.unshift = function(e) { return fB(this, e, null, !0, !1); }; function fB(e, t, r, i, n) { st("readableAddChunk", t); var a = e._readableState; if (t === null) a.reading = !1, Hee(e, a); else { var o; if (n || (o = $ee(a, t)), o) ff(e, o); else if (a.objectMode || t && t.length > 0) if (typeof t != "string" && !a.objectMode && Object.getPrototypeOf(t) !== jh.prototype && (t = kee(t)), i) a.endEmitted ? ff(e, new Uee()) : Gv(e, a, t, !0); else if (a.ended) ff(e, new Lee()); else { if (a.destroyed) return !1; a.reading = !1, a.decoder && !r ? (t = a.decoder.write(t), a.objectMode || t.length !== 0 ? Gv(e, a, t, !1) : Xv(e, a)) : Gv(e, a, t, !1); } else i || (a.reading = !1, Xv(e, a)); } return !a.ended && (a.length < a.highWaterMark || a.length === 0); } s(fB, "readableAddChunk"); function Gv(e, t, r, i) { t.flowing && t.length === 0 && !t.sync ? (t.awaitDrain = 0, e.emit("data", r)) : (t.length += t.objectMode ? 1 : r.length, i ? t.buffer. unshift(r) : t.buffer.push(r), t.needReadable && qh(e)), Xv(e, t); } s(Gv, "addChunk"); function $ee(e, t) { var r; return !Bee(t) && typeof t != "string" && t !== void 0 && !e.objectMode && (r = new jee("chunk", ["string", "Buffer", "Uint8Array"], t)), r; } s($ee, "chunkInvalid"); bt.prototype.isPaused = function() { return this._readableState.flowing === !1; }; bt.prototype.setEncoding = function(e) { el || (el = require("string_decoder/").StringDecoder); var t = new el(e); this._readableState.decoder = t, this._readableState.encoding = this._readableState.decoder.encoding; for (var r = this._readableState.buffer.head, i = ""; r !== null; ) i += t.write(r.data), r = r.next; return this._readableState.buffer.clear(), i !== "" && this._readableState.buffer.push(i), this._readableState.length = i.length, this; }; var oB = 1073741824; function Vee(e) { return e >= oB ? e = oB : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e; } s(Vee, "computeNewHighWaterMark"); function uB(e, t) { return e <= 0 || t.length === 0 && t.ended ? 0 : t.objectMode ? 1 : e !== e ? t.flowing && t.length ? t.buffer.head.data.length : t.length : (e > t.highWaterMark && (t.highWaterMark = Vee(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0)); } s(uB, "howMuchToRead"); bt.prototype.read = function(e) { st("read", e), e = parseInt(e, 10); var t = this._readableState, r = e; if (e !== 0 && (t.emittedReadable = !1), e === 0 && t.needReadable && ((t.highWaterMark !== 0 ? t.length >= t.highWaterMark : t.length > 0) || t.ended)) return st("read: emitReadable", t.length, t.ended), t.length === 0 && t.ended ? Jv(this) : qh(this), null; if (e = uB(e, t), e === 0 && t.ended) return t.length === 0 && Jv(this), null; var i = t.needReadable; st("need readable", i), (t.length === 0 || t.length - e < t.highWaterMark) && (i = !0, st("length less than watermark", i)), t.ended || t. reading ? (i = !1, st("reading or ended", i)) : i && (st("do read"), t.reading = !0, t.sync = !0, t.length === 0 && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = uB(r, t))); var n; return e > 0 ? n = hB(e, t) : n = null, n === null ? (t.needReadable = t.length <= t.highWaterMark, e = 0) : (t.length -= e, t.awaitDrain = 0), t.length === 0 && (t.ended || (t.needReadable = !0), r !== e && t.ended && Jv(this)), n !== null && this.emit("data", n), n; }; function Hee(e, t) { if (st("onEofChunk"), !t.ended) { if (t.decoder) { var r = t.decoder.end(); r && r.length && (t.buffer.push(r), t.length += t.objectMode ? 1 : r.length); } t.ended = !0, t.sync ? qh(e) : (t.needReadable = !1, t.emittedReadable || (t.emittedReadable = !0, dB(e))); } } s(Hee, "onEofChunk"); function qh(e) { var t = e._readableState; st("emitReadable", t.needReadable, t.emittedReadable), t.needReadable = !1, t.emittedReadable || (st("emitReadable", t.flowing), t.emittedReadable = !0, process.nextTick(dB, e)); } s(qh, "emitReadable"); function dB(e) { var t = e._readableState; st("emitReadable_", t.destroyed, t.length, t.ended), !t.destroyed && (t.length || t.ended) && (e.emit("readable"), t.emittedReadable = !1), t.needReadable = !t.flowing && !t.ended && t.length <= t.highWaterMark, Zv(e); } s(dB, "emitReadable_"); function Xv(e, t) { t.readingMore || (t.readingMore = !0, process.nextTick(Kee, e, t)); } s(Xv, "maybeReadMore"); function Kee(e, t) { for (; !t.reading && !t.ended && (t.length < t.highWaterMark || t.flowing && t.length === 0); ) { var r = t.length; if (st("maybeReadMore read 0"), e.read(0), r === t.length) break; } t.readingMore = !1; } s(Kee, "maybeReadMore_"); bt.prototype._read = function(e) { ff(this, new qee("_read()")); }; bt.prototype.pipe = function(e, t) { var r = this, i = this._readableState; switch (i.pipesCount) { case 0: i.pipes = e; break; case 1: i.pipes = [i.pipes, e]; break; default: i.pipes.push(e); break; } i.pipesCount += 1, st("pipe count=%d opts=%j", i.pipesCount, t); var n = (!t || t.end !== !1) && e !== process.stdout && e !== process.stderr, a = n ? u : p; i.endEmitted ? process.nextTick(a) : r.once("end", a), e.on("unpipe", o); function o(g, b) { st("onunpipe"), g === r && b && b.hasUnpiped === !1 && (b.hasUnpiped = !0, f()); } s(o, "onunpipe"); function u() { st("onend"), e.end(); } s(u, "onend"); var l = zee(r); e.on("drain", l); var c = !1; function f() { st("cleanup"), e.removeListener("close", d), e.removeListener("finish", y), e.removeListener("drain", l), e.removeListener("error", h), e.removeListener("unpipe", o), r.removeListener("end", u), r.removeListener("end", p), r.removeListener("data", m), c = !0, i.awaitDrain && (!e._writableState || e._writableState.needDrain) && l(); } s(f, "cleanup"), r.on("data", m); function m(g) { st("ondata"); var b = e.write(g); st("dest.write", b), b === !1 && ((i.pipesCount === 1 && i.pipes === e || i.pipesCount > 1 && mB(i.pipes, e) !== -1) && !c && (st("fal\ se write response, pause", i.awaitDrain), i.awaitDrain++), r.pause()); } s(m, "ondata"); function h(g) { st("onerror", g), p(), e.removeListener("error", h), lB(e, "error") === 0 && ff(e, g); } s(h, "onerror"), Wee(e, "error", h); function d() { e.removeListener("finish", y), p(); } s(d, "onclose"), e.once("close", d); function y() { st("onfinish"), e.removeListener("close", d), p(); } s(y, "onfinish"), e.once("finish", y); function p() { st("unpipe"), r.unpipe(e); } return s(p, "unpipe"), e.emit("pipe", r), i.flowing || (st("pipe resume"), r.resume()), e; }; function zee(e) { return /* @__PURE__ */ s(function() { var r = e._readableState; st("pipeOnDrain", r.awaitDrain), r.awaitDrain && r.awaitDrain--, r.awaitDrain === 0 && lB(e, "data") && (r.flowing = !0, Zv(e)); }, "pipeOnDrainFunctionResult"); } s(zee, "pipeOnDrain"); bt.prototype.unpipe = function(e) { var t = this._readableState, r = { hasUnpiped: !1 }; if (t.pipesCount === 0) return this; if (t.pipesCount === 1) return e && e !== t.pipes ? this : (e || (e = t.pipes), t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this, r), this); if (!e) { var i = t.pipes, n = t.pipesCount; t.pipes = null, t.pipesCount = 0, t.flowing = !1; for (var a = 0; a < n; a++) i[a].emit("unpipe", this, { hasUnpiped: !1 }); return this; } var o = mB(t.pipes, e); return o === -1 ? this : (t.pipes.splice(o, 1), t.pipesCount -= 1, t.pipesCount === 1 && (t.pipes = t.pipes[0]), e.emit("unpipe", this, r), this); }; bt.prototype.on = function(e, t) { var r = df.prototype.on.call(this, e, t), i = this._readableState; return e === "data" ? (i.readableListening = this.listenerCount("readable") > 0, i.flowing !== !1 && this.resume()) : e === "readable" && !i.endEmitted && !i.readableListening && (i.readableListening = i.needReadable = !0, i.flowing = !1, i.emittedReadable = !1, st("on read\ able", i.length, i.reading), i.length ? qh(this) : i.reading || process.nextTick(Gee, this)), r; }; bt.prototype.addListener = bt.prototype.on; bt.prototype.removeListener = function(e, t) { var r = df.prototype.removeListener.call(this, e, t); return e === "readable" && process.nextTick(pB, this), r; }; bt.prototype.removeAllListeners = function(e) { var t = df.prototype.removeAllListeners.apply(this, arguments); return (e === "readable" || e === void 0) && process.nextTick(pB, this), t; }; function pB(e) { var t = e._readableState; t.readableListening = e.listenerCount("readable") > 0, t.resumeScheduled && !t.paused ? t.flowing = !0 : e.listenerCount("data") > 0 && e. resume(); } s(pB, "updateReadableListening"); function Gee(e) { st("readable nexttick read 0"), e.read(0); } s(Gee, "nReadingNextTick"); bt.prototype.resume = function() { var e = this._readableState; return e.flowing || (st("resume"), e.flowing = !e.readableListening, Jee(this, e)), e.paused = !1, this; }; function Jee(e, t) { t.resumeScheduled || (t.resumeScheduled = !0, process.nextTick(Xee, e, t)); } s(Jee, "resume"); function Xee(e, t) { st("resume", t.reading), t.reading || e.read(0), t.resumeScheduled = !1, e.emit("resume"), Zv(e), t.flowing && !t.reading && e.read(0); } s(Xee, "resume_"); bt.prototype.pause = function() { return st("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (st("pause"), this._readableState. flowing = !1, this.emit("pause")), this._readableState.paused = !0, this; }; function Zv(e) { var t = e._readableState; for (st("flow", t.flowing); t.flowing && e.read() !== null; ) ; } s(Zv, "flow"); bt.prototype.wrap = function(e) { var t = this, r = this._readableState, i = !1; e.on("end", function() { if (st("wrapped end"), r.decoder && !r.ended) { var o = r.decoder.end(); o && o.length && t.push(o); } t.push(null); }), e.on("data", function(o) { if (st("wrapped data"), r.decoder && (o = r.decoder.write(o)), !(r.objectMode && o == null) && !(!r.objectMode && (!o || !o.length))) { var u = t.push(o); u || (i = !0, e.pause()); } }); for (var n in e) this[n] === void 0 && typeof e[n] == "function" && (this[n] = (/* @__PURE__ */ s(function(u) { return /* @__PURE__ */ s(function() { return e[u].apply(e, arguments); }, "methodWrapReturnFunction"); }, "methodWrap"))(n)); for (var a = 0; a < zv.length; a++) e.on(zv[a], this.emit.bind(this, zv[a])); return this._read = function(o) { st("wrapped _read", o), i && (i = !1, e.resume()); }, this; }; typeof Symbol == "function" && (bt.prototype[Symbol.asyncIterator] = function() { return Hv === void 0 && (Hv = rB()), Hv(this); }); Object.defineProperty(bt.prototype, "readableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._readableState.highWaterMark; }, "get") }); Object.defineProperty(bt.prototype, "readableBuffer", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._readableState && this._readableState.buffer; }, "get") }); Object.defineProperty(bt.prototype, "readableFlowing", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._readableState.flowing; }, "get"), set: /* @__PURE__ */ s(function(t) { this._readableState && (this._readableState.flowing = t); }, "set") }); bt._fromList = hB; Object.defineProperty(bt.prototype, "readableLength", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._readableState.length; }, "get") }); function hB(e, t) { if (t.length === 0) return null; var r; return t.objectMode ? r = t.buffer.shift() : !e || e >= t.length ? (t.decoder ? r = t.buffer.join("") : t.buffer.length === 1 ? r = t.buffer. first() : r = t.buffer.concat(t.length), t.buffer.clear()) : r = t.buffer.consume(e, t.decoder), r; } s(hB, "fromList"); function Jv(e) { var t = e._readableState; st("endReadable", t.endEmitted), t.endEmitted || (t.ended = !0, process.nextTick(Yee, t, e)); } s(Jv, "endReadable"); function Yee(e, t) { if (st("endReadableNT", e.endEmitted, e.length), !e.endEmitted && e.length === 0 && (e.endEmitted = !0, t.readable = !1, t.emit("end"), e. autoDestroy)) { var r = t._writableState; (!r || r.autoDestroy && r.finished) && t.destroy(); } } s(Yee, "endReadableNT"); typeof Symbol == "function" && (bt.from = function(e, t) { return Kv === void 0 && (Kv = aB()), Kv(bt, e, t); }); function mB(e, t) { for (var r = 0, i = e.length; r < i; r++) if (e[r] === t) return r; return -1; } s(mB, "indexOf"); }); // ../node_modules/readable-stream/lib/_stream_transform.js var Qv = E((Cet, bB) => { "use strict"; bB.exports = Ts; var Uh = va().codes, Zee = Uh.ERR_METHOD_NOT_IMPLEMENTED, Qee = Uh.ERR_MULTIPLE_CALLBACK, ete = Uh.ERR_TRANSFORM_ALREADY_TRANSFORMING, tte = Uh. ERR_TRANSFORM_WITH_LENGTH_0, Wh = Eo(); jt()(Ts, Wh); function rte(e, t) { var r = this._transformState; r.transforming = !1; var i = r.writecb; if (i === null) return this.emit("error", new Qee()); r.writechunk = null, r.writecb = null, t != null && this.push(t), i(e); var n = this._readableState; n.reading = !1, (n.needReadable || n.length < n.highWaterMark) && this._read(n.highWaterMark); } s(rte, "afterTransform"); function Ts(e) { if (!(this instanceof Ts)) return new Ts(e); Wh.call(this, e), this._transformState = { afterTransform: rte.bind(this), needTransform: !1, transforming: !1, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e. transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", ite); } s(Ts, "Transform"); function ite() { var e = this; typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(t, r) { gB(e, t, r); }) : gB(this, null, null); } s(ite, "prefinish"); Ts.prototype.push = function(e, t) { return this._transformState.needTransform = !1, Wh.prototype.push.call(this, e, t); }; Ts.prototype._transform = function(e, t, r) { r(new Zee("_transform()")); }; Ts.prototype._write = function(e, t, r) { var i = this._transformState; if (i.writecb = r, i.writechunk = e, i.writeencoding = t, !i.transforming) { var n = this._readableState; (i.needTransform || n.needReadable || n.length < n.highWaterMark) && this._read(n.highWaterMark); } }; Ts.prototype._read = function(e) { var t = this._transformState; t.writechunk !== null && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0; }; Ts.prototype._destroy = function(e, t) { Wh.prototype._destroy.call(this, e, function(r) { t(r); }); }; function gB(e, t, r) { if (t) return e.emit("error", t); if (r != null && e.push(r), e._writableState.length) throw new tte(); if (e._transformState.transforming) throw new ete(); return e.push(null); } s(gB, "done"); }); // ../node_modules/readable-stream/lib/_stream_passthrough.js var EB = E((Aet, vB) => { "use strict"; vB.exports = pf; var DB = Qv(); jt()(pf, DB); function pf(e) { if (!(this instanceof pf)) return new pf(e); DB.call(this, e); } s(pf, "PassThrough"); pf.prototype._transform = function(e, t, r) { r(null, e); }; }); // ../node_modules/readable-stream/lib/internal/streams/pipeline.js var wB = E((Pet, CB) => { "use strict"; var eE; function nte(e) { var t = !1; return function() { t || (t = !0, e.apply(void 0, arguments)); }; } s(nte, "once"); var TB = va().codes, ste = TB.ERR_MISSING_ARGS, ate = TB.ERR_STREAM_DESTROYED; function xB(e) { if (e) throw e; } s(xB, "noop"); function ote(e) { return e.setHeader && typeof e.abort == "function"; } s(ote, "isRequest"); function ute(e, t, r, i) { i = nte(i); var n = !1; e.on("close", function() { n = !0; }), eE === void 0 && (eE = Nh()), eE(e, { readable: t, writable: r }, function(o) { if (o) return i(o); n = !0, i(); }); var a = !1; return function(o) { if (!n && !a) { if (a = !0, ote(e)) return e.abort(); if (typeof e.destroy == "function") return e.destroy(); i(o || new ate("pipe")); } }; } s(ute, "destroyer"); function SB(e) { e(); } s(SB, "call"); function lte(e, t) { return e.pipe(t); } s(lte, "pipe"); function cte(e) { return !e.length || typeof e[e.length - 1] != "function" ? xB : e.pop(); } s(cte, "popCallback"); function fte() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; var i = cte(t); if (Array.isArray(t[0]) && (t = t[0]), t.length < 2) throw new ste("streams"); var n, a = t.map(function(o, u) { var l = u < t.length - 1, c = u > 0; return ute(o, l, c, function(f) { n || (n = f), f && a.forEach(SB), !l && (a.forEach(SB), i(n)); }); }); return t.reduce(lte); } s(fte, "pipeline"); CB.exports = fte; }); // ../node_modules/readable-stream/readable.js var tl = E((Ki, mf) => { var hf = require("stream"); process.env.READABLE_STREAM === "disable" && hf ? (mf.exports = hf.Readable, Object.assign(mf.exports, hf), mf.exports.Stream = hf) : (Ki = mf.exports = Wv(), Ki.Stream = hf || Ki, Ki.Readable = Ki, Ki.Writable = Lv(), Ki.Duplex = Eo(), Ki.Transform = Qv(), Ki.PassThrough = EB(), Ki.finished = Nh(), Ki.pipeline = wB()); }); // ../node_modules/bl/BufferList.js var PB = E((Iet, _B) => { "use strict"; var { Buffer: En } = require("buffer"), AB = Symbol.for("BufferList"); function Lt(e) { if (!(this instanceof Lt)) return new Lt(e); Lt._init.call(this, e); } s(Lt, "BufferList"); Lt._init = /* @__PURE__ */ s(function(t) { Object.defineProperty(this, AB, { value: !0 }), this._bufs = [], this.length = 0, t && this.append(t); }, "_init"); Lt.prototype._new = /* @__PURE__ */ s(function(t) { return new Lt(t); }, "_new"); Lt.prototype._offset = /* @__PURE__ */ s(function(t) { if (t === 0) return [0, 0]; let r = 0; for (let i = 0; i < this._bufs.length; i++) { let n = r + this._bufs[i].length; if (t < n || i === this._bufs.length - 1) return [i, t - r]; r = n; } }, "_offset"); Lt.prototype._reverseOffset = function(e) { let t = e[0], r = e[1]; for (let i = 0; i < t; i++) r += this._bufs[i].length; return r; }; Lt.prototype.get = /* @__PURE__ */ s(function(t) { if (t > this.length || t < 0) return; let r = this._offset(t); return this._bufs[r[0]][r[1]]; }, "get"); Lt.prototype.slice = /* @__PURE__ */ s(function(t, r) { return typeof t == "number" && t < 0 && (t += this.length), typeof r == "number" && r < 0 && (r += this.length), this.copy(null, 0, t, r); }, "slice"); Lt.prototype.copy = /* @__PURE__ */ s(function(t, r, i, n) { if ((typeof i != "number" || i < 0) && (i = 0), (typeof n != "number" || n > this.length) && (n = this.length), i >= this.length || n <= 0) return t || En.alloc(0); let a = !!t, o = this._offset(i), u = n - i, l = u, c = a && r || 0, f = o[1]; if (i === 0 && n === this.length) { if (!a) return this._bufs.length === 1 ? this._bufs[0] : En.concat(this._bufs, this.length); for (let m = 0; m < this._bufs.length; m++) this._bufs[m].copy(t, c), c += this._bufs[m].length; return t; } if (l <= this._bufs[o[0]].length - f) return a ? this._bufs[o[0]].copy(t, r, f, f + l) : this._bufs[o[0]].slice(f, f + l); a || (t = En.allocUnsafe(u)); for (let m = o[0]; m < this._bufs.length; m++) { let h = this._bufs[m].length - f; if (l > h) this._bufs[m].copy(t, c, f), c += h; else { this._bufs[m].copy(t, c, f, f + l), c += h; break; } l -= h, f && (f = 0); } return t.length > c ? t.slice(0, c) : t; }, "copy"); Lt.prototype.shallowSlice = /* @__PURE__ */ s(function(t, r) { if (t = t || 0, r = typeof r != "number" ? this.length : r, t < 0 && (t += this.length), r < 0 && (r += this.length), t === r) return this._new(); let i = this._offset(t), n = this._offset(r), a = this._bufs.slice(i[0], n[0] + 1); return n[1] === 0 ? a.pop() : a[a.length - 1] = a[a.length - 1].slice(0, n[1]), i[1] !== 0 && (a[0] = a[0].slice(i[1])), this._new(a); }, "shallowSlice"); Lt.prototype.toString = /* @__PURE__ */ s(function(t, r, i) { return this.slice(r, i).toString(t); }, "toString"); Lt.prototype.consume = /* @__PURE__ */ s(function(t) { if (t = Math.trunc(t), Number.isNaN(t) || t <= 0) return this; for (; this._bufs.length; ) if (t >= this._bufs[0].length) t -= this._bufs[0].length, this.length -= this._bufs[0].length, this._bufs.shift(); else { this._bufs[0] = this._bufs[0].slice(t), this.length -= t; break; } return this; }, "consume"); Lt.prototype.duplicate = /* @__PURE__ */ s(function() { let t = this._new(); for (let r = 0; r < this._bufs.length; r++) t.append(this._bufs[r]); return t; }, "duplicate"); Lt.prototype.append = /* @__PURE__ */ s(function(t) { if (t == null) return this; if (t.buffer) this._appendBuffer(En.from(t.buffer, t.byteOffset, t.byteLength)); else if (Array.isArray(t)) for (let r = 0; r < t.length; r++) this.append(t[r]); else if (this._isBufferList(t)) for (let r = 0; r < t._bufs.length; r++) this.append(t._bufs[r]); else typeof t == "number" && (t = t.toString()), this._appendBuffer(En.from(t)); return this; }, "append"); Lt.prototype._appendBuffer = /* @__PURE__ */ s(function(t) { this._bufs.push(t), this.length += t.length; }, "appendBuffer"); Lt.prototype.indexOf = function(e, t, r) { if (r === void 0 && typeof t == "string" && (r = t, t = void 0), typeof e == "function" || Array.isArray(e)) throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.'); if (typeof e == "number" ? e = En.from([e]) : typeof e == "string" ? e = En.from(e, r) : this._isBufferList(e) ? e = e.slice() : Array.isArray( e.buffer) ? e = En.from(e.buffer, e.byteOffset, e.byteLength) : En.isBuffer(e) || (e = En.from(e)), t = Number(t || 0), isNaN(t) && (t = 0), t < 0 && (t = this.length + t), t < 0 && (t = 0), e.length === 0) return t > this.length ? this.length : t; let i = this._offset(t), n = i[0], a = i[1]; for (; n < this._bufs.length; n++) { let o = this._bufs[n]; for (; a < o.length; ) if (o.length - a >= e.length) { let l = o.indexOf(e, a); if (l !== -1) return this._reverseOffset([n, l]); a = o.length - e.length + 1; } else { let l = this._reverseOffset([n, a]); if (this._match(l, e)) return l; a++; } a = 0; } return -1; }; Lt.prototype._match = function(e, t) { if (this.length - e < t.length) return !1; for (let r = 0; r < t.length; r++) if (this.get(e + r) !== t[r]) return !1; return !0; }; (function() { let e = { readDoubleBE: 8, readDoubleLE: 8, readFloatBE: 4, readFloatLE: 4, readInt32BE: 4, readInt32LE: 4, readUInt32BE: 4, readUInt32LE: 4, readInt16BE: 2, readInt16LE: 2, readUInt16BE: 2, readUInt16LE: 2, readInt8: 1, readUInt8: 1, readIntBE: null, readIntLE: null, readUIntBE: null, readUIntLE: null }; for (let t in e) (function(r) { e[r] === null ? Lt.prototype[r] = function(i, n) { return this.slice(i, i + n)[r](0, n); } : Lt.prototype[r] = function(i = 0) { return this.slice(i, i + e[r])[r](0); }; })(t); })(); Lt.prototype._isBufferList = /* @__PURE__ */ s(function(t) { return t instanceof Lt || Lt.isBufferList(t); }, "_isBufferList"); Lt.isBufferList = /* @__PURE__ */ s(function(t) { return t != null && t[AB]; }, "isBufferList"); _B.exports = Lt; }); // ../node_modules/bl/bl.js var FB = E((ket, $h) => { "use strict"; var tE = tl().Duplex, dte = jt(), yf = PB(); function Zr(e) { if (!(this instanceof Zr)) return new Zr(e); if (typeof e == "function") { this._callback = e; let t = (/* @__PURE__ */ s(function(i) { this._callback && (this._callback(i), this._callback = null); }, "piper")).bind(this); this.on("pipe", /* @__PURE__ */ s(function(i) { i.on("error", t); }, "onPipe")), this.on("unpipe", /* @__PURE__ */ s(function(i) { i.removeListener("error", t); }, "onUnpipe")), e = null; } yf._init.call(this, e), tE.call(this); } s(Zr, "BufferListStream"); dte(Zr, tE); Object.assign(Zr.prototype, yf.prototype); Zr.prototype._new = /* @__PURE__ */ s(function(t) { return new Zr(t); }, "_new"); Zr.prototype._write = /* @__PURE__ */ s(function(t, r, i) { this._appendBuffer(t), typeof i == "function" && i(); }, "_write"); Zr.prototype._read = /* @__PURE__ */ s(function(t) { if (!this.length) return this.push(null); t = Math.min(t, this.length), this.push(this.slice(0, t)), this.consume(t); }, "_read"); Zr.prototype.end = /* @__PURE__ */ s(function(t) { tE.prototype.end.call(this, t), this._callback && (this._callback(null, this.slice()), this._callback = null); }, "end"); Zr.prototype._destroy = /* @__PURE__ */ s(function(t, r) { this._bufs.length = 0, this.length = 0, r(t); }, "_destroy"); Zr.prototype._isBufferList = /* @__PURE__ */ s(function(t) { return t instanceof Zr || t instanceof yf || Zr.isBufferList(t); }, "_isBufferList"); Zr.isBufferList = yf.isBufferList; $h.exports = Zr; $h.exports.BufferListStream = Zr; $h.exports.BufferList = yf; }); // ../node_modules/tar-stream/headers.js var nE = E((il) => { var pte = Buffer.alloc, hte = "0000000000000000000", mte = "7777777777777777777", IB = 48, OB = Buffer.from("ustar\0", "binary"), yte = Buffer. from("00", "binary"), gte = Buffer.from("ustar ", "binary"), bte = Buffer.from(" \0", "binary"), Dte = parseInt("7777", 8), gf = 257, iE = 263, vte = /* @__PURE__ */ s(function(e, t, r) { return typeof e != "number" ? r : (e = ~~e, e >= t ? t : e >= 0 || (e += t, e >= 0) ? e : 0); }, "clamp"), Ete = /* @__PURE__ */ s(function(e) { switch (e) { case 0: return "file"; case 1: return "link"; case 2: return "symlink"; case 3: return "character-device"; case 4: return "block-device"; case 5: return "directory"; case 6: return "fifo"; case 7: return "contiguous-file"; case 72: return "pax-header"; case 55: return "pax-global-header"; case 27: return "gnu-long-link-path"; case 28: case 30: return "gnu-long-path"; } return null; }, "toType"), xte = /* @__PURE__ */ s(function(e) { switch (e) { case "file": return 0; case "link": return 1; case "symlink": return 2; case "character-device": return 3; case "block-device": return 4; case "directory": return 5; case "fifo": return 6; case "contiguous-file": return 7; case "pax-header": return 72; } return 0; }, "toTypeflag"), kB = /* @__PURE__ */ s(function(e, t, r, i) { for (; r < i; r++) if (e[r] === t) return r; return i; }, "indexOf"), BB = /* @__PURE__ */ s(function(e) { for (var t = 256, r = 0; r < 148; r++) t += e[r]; for (var i = 156; i < 512; i++) t += e[i]; return t; }, "cksum"), Ca = /* @__PURE__ */ s(function(e, t) { return e = e.toString(8), e.length > t ? mte.slice(0, t) + " " : hte.slice(0, t - e.length) + e + " "; }, "encodeOct"); function Ste(e) { var t; if (e[0] === 128) t = !0; else if (e[0] === 255) t = !1; else return null; for (var r = [], i = e.length - 1; i > 0; i--) { var n = e[i]; t ? r.push(n) : r.push(255 - n); } var a = 0, o = r.length; for (i = 0; i < o; i++) a += r[i] * Math.pow(256, i); return t ? a : -1 * a; } s(Ste, "parse256"); var wa = /* @__PURE__ */ s(function(e, t, r) { if (e = e.slice(t, t + r), t = 0, e[t] & 128) return Ste(e); for (; t < e.length && e[t] === 32; ) t++; for (var i = vte(kB(e, 32, t, e.length), e.length, e.length); t < i && e[t] === 0; ) t++; return i === t ? 0 : parseInt(e.slice(t, i).toString(), 8); }, "decodeOct"), rl = /* @__PURE__ */ s(function(e, t, r, i) { return e.slice(t, kB(e, 0, t, t + r)).toString(i); }, "decodeStr"), rE = /* @__PURE__ */ s(function(e) { var t = Buffer.byteLength(e), r = Math.floor(Math.log(t) / Math.log(10)) + 1; return t + r >= Math.pow(10, r) && r++, t + r + e; }, "addLength"); il.decodeLongPath = function(e, t) { return rl(e, 0, e.length, t); }; il.encodePax = function(e) { var t = ""; e.name && (t += rE(" path=" + e.name + ` `)), e.linkname && (t += rE(" linkpath=" + e.linkname + ` `)); var r = e.pax; if (r) for (var i in r) t += rE(" " + i + "=" + r[i] + ` `); return Buffer.from(t); }; il.decodePax = function(e) { for (var t = {}; e.length; ) { for (var r = 0; r < e.length && e[r] !== 32; ) r++; var i = parseInt(e.slice(0, r).toString(), 10); if (!i) return t; var n = e.slice(r + 1, i - 1).toString(), a = n.indexOf("="); if (a === -1) return t; t[n.slice(0, a)] = n.slice(a + 1), e = e.slice(i); } return t; }; il.encode = function(e) { var t = pte(512), r = e.name, i = ""; if (e.typeflag === 5 && r[r.length - 1] !== "/" && (r += "/"), Buffer.byteLength(r) !== r.length) return null; for (; Buffer.byteLength(r) > 100; ) { var n = r.indexOf("/"); if (n === -1) return null; i += i ? "/" + r.slice(0, n) : r.slice(0, n), r = r.slice(n + 1); } return Buffer.byteLength(r) > 100 || Buffer.byteLength(i) > 155 || e.linkname && Buffer.byteLength(e.linkname) > 100 ? null : (t.write(r), t.write(Ca(e.mode & Dte, 6), 100), t.write(Ca(e.uid, 6), 108), t.write(Ca(e.gid, 6), 116), t.write(Ca(e.size, 11), 124), t.write(Ca(e.mtime. getTime() / 1e3 | 0, 11), 136), t[156] = IB + xte(e.type), e.linkname && t.write(e.linkname, 157), OB.copy(t, gf), yte.copy(t, iE), e.uname && t.write(e.uname, 265), e.gname && t.write(e.gname, 297), t.write(Ca(e.devmajor || 0, 6), 329), t.write(Ca(e.devminor || 0, 6), 337), i && t.write(i, 345), t.write(Ca(BB(t), 6), 148), t); }; il.decode = function(e, t, r) { var i = e[156] === 0 ? 0 : e[156] - IB, n = rl(e, 0, 100, t), a = wa(e, 100, 8), o = wa(e, 108, 8), u = wa(e, 116, 8), l = wa(e, 124, 12), c = wa(e, 136, 12), f = Ete(i), m = e[157] === 0 ? null : rl(e, 157, 100, t), h = rl(e, 265, 32), d = rl(e, 297, 32), y = wa(e, 329, 8), p = wa(e, 337, 8), g = BB(e); if (g === 8 * 32) return null; if (g !== wa(e, 148, 8)) throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?"); if (OB.compare(e, gf, gf + 6) === 0) e[345] && (n = rl(e, 345, 155, t) + "/" + n); else if (!(gte.compare(e, gf, gf + 6) === 0 && bte.compare(e, iE, iE + 2) === 0)) { if (!r) throw new Error("Invalid tar header: unknown format."); } return i === 0 && n && n[n.length - 1] === "/" && (i = 5), { name: n, mode: a, uid: o, gid: u, size: l, mtime: new Date(1e3 * c), type: f, linkname: m, uname: h, gname: d, devmajor: y, devminor: p }; }; }); // ../node_modules/tar-stream/extract.js var UB = E((Ret, qB) => { var MB = require("util"), Tte = FB(), bf = nE(), RB = tl().Writable, jB = tl().PassThrough, LB = /* @__PURE__ */ s(function() { }, "noop"), NB = /* @__PURE__ */ s(function(e) { return e &= 511, e && 512 - e; }, "overflow"), Cte = /* @__PURE__ */ s(function(e, t) { var r = new Vh(e, t); return r.end(), r; }, "emptyStream"), wte = /* @__PURE__ */ s(function(e, t) { return t.path && (e.name = t.path), t.linkpath && (e.linkname = t.linkpath), t.size && (e.size = parseInt(t.size, 10)), e.pax = t, e; }, "mixinPax"), Vh = /* @__PURE__ */ s(function(e, t) { this._parent = e, this.offset = t, jB.call(this, { autoDestroy: !1 }); }, "Source"); MB.inherits(Vh, jB); Vh.prototype.destroy = function(e) { this._parent.destroy(e); }; var Cs = /* @__PURE__ */ s(function(e) { if (!(this instanceof Cs)) return new Cs(e); RB.call(this, e), e = e || {}, this._offset = 0, this._buffer = Tte(), this._missing = 0, this._partial = !1, this._onparse = LB, this._header = null, this._stream = null, this._overflow = null, this._cb = null, this._locked = !1, this._destroyed = !1, this._pax = null, this._paxGlobal = null, this._gnuLongPath = null, this._gnuLongLinkPath = null; var t = this, r = t._buffer, i = /* @__PURE__ */ s(function() { t._continue(); }, "oncontinue"), n = /* @__PURE__ */ s(function(h) { if (t._locked = !1, h) return t.destroy(h); t._stream || i(); }, "onunlock"), a = /* @__PURE__ */ s(function() { t._stream = null; var h = NB(t._header.size); h ? t._parse(h, o) : t._parse(512, m), t._locked || i(); }, "onstreamend"), o = /* @__PURE__ */ s(function() { t._buffer.consume(NB(t._header.size)), t._parse(512, m), i(); }, "ondrain"), u = /* @__PURE__ */ s(function() { var h = t._header.size; t._paxGlobal = bf.decodePax(r.slice(0, h)), r.consume(h), a(); }, "onpaxglobalheader"), l = /* @__PURE__ */ s(function() { var h = t._header.size; t._pax = bf.decodePax(r.slice(0, h)), t._paxGlobal && (t._pax = Object.assign({}, t._paxGlobal, t._pax)), r.consume(h), a(); }, "onpaxheader"), c = /* @__PURE__ */ s(function() { var h = t._header.size; this._gnuLongPath = bf.decodeLongPath(r.slice(0, h), e.filenameEncoding), r.consume(h), a(); }, "ongnulongpath"), f = /* @__PURE__ */ s(function() { var h = t._header.size; this._gnuLongLinkPath = bf.decodeLongPath(r.slice(0, h), e.filenameEncoding), r.consume(h), a(); }, "ongnulonglinkpath"), m = /* @__PURE__ */ s(function() { var h = t._offset, d; try { d = t._header = bf.decode(r.slice(0, 512), e.filenameEncoding, e.allowUnknownFormat); } catch (y) { t.emit("error", y); } if (r.consume(512), !d) { t._parse(512, m), i(); return; } if (d.type === "gnu-long-path") { t._parse(d.size, c), i(); return; } if (d.type === "gnu-long-link-path") { t._parse(d.size, f), i(); return; } if (d.type === "pax-global-header") { t._parse(d.size, u), i(); return; } if (d.type === "pax-header") { t._parse(d.size, l), i(); return; } if (t._gnuLongPath && (d.name = t._gnuLongPath, t._gnuLongPath = null), t._gnuLongLinkPath && (d.linkname = t._gnuLongLinkPath, t._gnuLongLinkPath = null), t._pax && (t._header = d = wte(d, t._pax), t._pax = null), t._locked = !0, !d.size || d.type === "directory") { t._parse(512, m), t.emit("entry", d, Cte(t, h), n); return; } t._stream = new Vh(t, h), t.emit("entry", d, t._stream, n), t._parse(d.size, a), i(); }, "onheader"); this._onheader = m, this._parse(512, m); }, "Extract"); MB.inherits(Cs, RB); Cs.prototype.destroy = function(e) { this._destroyed || (this._destroyed = !0, e && this.emit("error", e), this.emit("close"), this._stream && this._stream.emit("close")); }; Cs.prototype._parse = function(e, t) { this._destroyed || (this._offset += e, this._missing = e, t === this._onheader && (this._partial = !1), this._onparse = t); }; Cs.prototype._continue = function() { if (!this._destroyed) { var e = this._cb; this._cb = LB, this._overflow ? this._write(this._overflow, void 0, e) : e(); } }; Cs.prototype._write = function(e, t, r) { if (!this._destroyed) { var i = this._stream, n = this._buffer, a = this._missing; if (e.length && (this._partial = !0), e.length < a) return this._missing -= e.length, this._overflow = null, i ? i.write(e, r) : (n.append(e), r()); this._cb = r, this._missing = 0; var o = null; e.length > a && (o = e.slice(a), e = e.slice(0, a)), i ? i.end(e) : n.append(e), this._overflow = o, this._onparse(); } }; Cs.prototype._final = function(e) { if (this._partial) return this.destroy(new Error("Unexpected end of data")); e(); }; qB.exports = Cs; }); // ../node_modules/fs-constants/index.js var $B = E((Let, WB) => { WB.exports = require("fs").constants || require("constants"); }); // ../node_modules/tar-stream/pack.js var GB = E((qet, zB) => { var nl = $B(), VB = Xu(), Kh = jt(), Ate = Buffer.alloc, HB = tl().Readable, sl = tl().Writable, _te = require("string_decoder").StringDecoder, Hh = nE(), Pte = parseInt("755", 8), Fte = parseInt("644", 8), KB = Ate(1024), aE = /* @__PURE__ */ s(function() { }, "noop"), sE = /* @__PURE__ */ s(function(e, t) { t &= 511, t && e.push(KB.slice(0, 512 - t)); }, "overflow"); function Ite(e) { switch (e & nl.S_IFMT) { case nl.S_IFBLK: return "block-device"; case nl.S_IFCHR: return "character-device"; case nl.S_IFDIR: return "directory"; case nl.S_IFIFO: return "fifo"; case nl.S_IFLNK: return "symlink"; } return "file"; } s(Ite, "modeToType"); var zh = /* @__PURE__ */ s(function(e) { sl.call(this), this.written = 0, this._to = e, this._destroyed = !1; }, "Sink"); Kh(zh, sl); zh.prototype._write = function(e, t, r) { if (this.written += e.length, this._to.push(e)) return r(); this._to._drain = r; }; zh.prototype.destroy = function() { this._destroyed || (this._destroyed = !0, this.emit("close")); }; var Gh = /* @__PURE__ */ s(function() { sl.call(this), this.linkname = "", this._decoder = new _te("utf-8"), this._destroyed = !1; }, "LinkSink"); Kh(Gh, sl); Gh.prototype._write = function(e, t, r) { this.linkname += this._decoder.write(e), r(); }; Gh.prototype.destroy = function() { this._destroyed || (this._destroyed = !0, this.emit("close")); }; var Df = /* @__PURE__ */ s(function() { sl.call(this), this._destroyed = !1; }, "Void"); Kh(Df, sl); Df.prototype._write = function(e, t, r) { r(new Error("No body allowed for this entry")); }; Df.prototype.destroy = function() { this._destroyed || (this._destroyed = !0, this.emit("close")); }; var Hn = /* @__PURE__ */ s(function(e) { if (!(this instanceof Hn)) return new Hn(e); HB.call(this, e), this._drain = aE, this._finalized = !1, this._finalizing = !1, this._destroyed = !1, this._stream = null; }, "Pack"); Kh(Hn, HB); Hn.prototype.entry = function(e, t, r) { if (this._stream) throw new Error("already piping an entry"); if (!(this._finalized || this._destroyed)) { typeof t == "function" && (r = t, t = null), r || (r = aE); var i = this; if ((!e.size || e.type === "symlink") && (e.size = 0), e.type || (e.type = Ite(e.mode)), e.mode || (e.mode = e.type === "directory" ? Pte : Fte), e.uid || (e.uid = 0), e.gid || (e.gid = 0), e.mtime || (e.mtime = /* @__PURE__ */ new Date()), typeof t == "string" && (t = Buffer. from(t)), Buffer.isBuffer(t)) { e.size = t.length, this._encode(e); var n = this.push(t); return sE(i, e.size), n ? process.nextTick(r) : this._drain = r, new Df(); } if (e.type === "symlink" && !e.linkname) { var a = new Gh(); return VB(a, function(u) { if (u) return i.destroy(), r(u); e.linkname = a.linkname, i._encode(e), r(); }), a; } if (this._encode(e), e.type !== "file" && e.type !== "contiguous-file") return process.nextTick(r), new Df(); var o = new zh(this); return this._stream = o, VB(o, function(u) { if (i._stream = null, u) return i.destroy(), r(u); if (o.written !== e.size) return i.destroy(), r(new Error("size mismatch")); sE(i, e.size), i._finalizing && i.finalize(), r(); }), o; } }; Hn.prototype.finalize = function() { if (this._stream) { this._finalizing = !0; return; } this._finalized || (this._finalized = !0, this.push(KB), this.push(null)); }; Hn.prototype.destroy = function(e) { this._destroyed || (this._destroyed = !0, e && this.emit("error", e), this.emit("close"), this._stream && this._stream.destroy && this._stream. destroy()); }; Hn.prototype._encode = function(e) { if (!e.pax) { var t = Hh.encode(e); if (t) { this.push(t); return; } } this._encodePax(e); }; Hn.prototype._encodePax = function(e) { var t = Hh.encodePax({ name: e.name, linkname: e.linkname, pax: e.pax }), r = { name: "PaxHeader", mode: e.mode, uid: e.uid, gid: e.gid, size: t.length, mtime: e.mtime, type: "pax-header", linkname: e.linkname && "PaxHeader", uname: e.uname, gname: e.gname, devmajor: e.devmajor, devminor: e.devminor }; this.push(Hh.encode(r)), this.push(t), sE(this, t.length), r.size = e.size, r.type = e.type, this.push(Hh.encode(r)); }; Hn.prototype._read = function(e) { var t = this._drain; this._drain = aE, t(); }; zB.exports = Hn; }); // ../node_modules/tar-stream/index.js var JB = E((oE) => { oE.extract = UB(); oE.pack = GB(); }); // ../node_modules/mkdirp-classic/index.js var QB = E(($et, ZB) => { var Jh = require("path"), XB = require("fs"), YB = parseInt("0777", 8); ZB.exports = al.mkdirp = al.mkdirP = al; function al(e, t, r, i) { typeof t == "function" ? (r = t, t = {}) : (!t || typeof t != "object") && (t = { mode: t }); var n = t.mode, a = t.fs || XB; n === void 0 && (n = YB & ~process.umask()), i || (i = null); var o = r || function() { }; e = Jh.resolve(e), a.mkdir(e, n, function(u) { if (!u) return i = i || e, o(null, i); switch (u.code) { case "ENOENT": al(Jh.dirname(e), t, function(l, c) { l ? o(l, c) : al(e, t, o, c); }); break; // In the case of any other error, just see if there's a dir // there already. If so, then hooray! If not, then something // is borked. default: a.stat(e, function(l, c) { l || !c.isDirectory() ? o(u, i) : o(null, i); }); break; } }); } s(al, "mkdirP"); al.sync = /* @__PURE__ */ s(function e(t, r, i) { (!r || typeof r != "object") && (r = { mode: r }); var n = r.mode, a = r.fs || XB; n === void 0 && (n = YB & ~process.umask()), i || (i = null), t = Jh.resolve(t); try { a.mkdirSync(t, n), i = i || t; } catch (u) { switch (u.code) { case "ENOENT": i = e(Jh.dirname(t), r, i), e(t, r, i); break; // In the case of any other error, just see if there's a dir // there already. If so, then hooray! If not, then something // is borked. default: var o; try { o = a.statSync(t); } catch { throw u; } if (!o.isDirectory()) throw u; break; } } return i; }, "sync"); }); // ../node_modules/tar-fs/index.js var oN = E((cE) => { var Ote = _k(), tN = JB(), rN = wv(), kte = QB(), iN = require("fs"), Qr = require("path"), Bte = require("os"), vf = Bte.platform() === "\ win32", Ef = /* @__PURE__ */ s(function() { }, "noop"), lE = /* @__PURE__ */ s(function(e) { return e; }, "echo"), uE = vf ? function(e) { return e.replace(/\\/g, "/").replace(/[:?<>|]/g, "_"); } : lE, Nte = /* @__PURE__ */ s(function(e, t, r, i, n, a) { var o = n || ["."]; return /* @__PURE__ */ s(function(l) { if (!o.length) return l(); var c = o.shift(), f = Qr.join(r, c); t.call(e, f, function(m, h) { if (m) return l(m); if (!h.isDirectory()) return l(null, c, h); e.readdir(f, function(d, y) { if (d) return l(d); a && y.sort(); for (var p = 0; p < y.length; p++) i(Qr.join(r, c, y[p])) || o.push(Qr.join(c, y[p])); l(null, c, h); }); }); }, "loop"); }, "statAll"), nN = /* @__PURE__ */ s(function(e, t) { return function(r) { r.name = r.name.split("/").slice(t).join("/"); var i = r.linkname; return i && (r.type === "link" || Qr.isAbsolute(i)) && (r.linkname = i.split("/").slice(t).join("/")), e(r); }; }, "strip"); cE.pack = function(e, t) { e || (e = "."), t || (t = {}); var r = t.fs || iN, i = t.ignore || t.filter || Ef, n = t.map || Ef, a = t.mapStream || lE, o = Nte(r, t.dereference ? r.stat : r.lstat, e, i, t.entries, t.sort), u = t.strict !== !1, l = typeof t.umask == "number" ? ~t.umask : ~sN(), c = typeof t.dmode == "number" ? t.dmode : 0, f = typeof t.fmode == "number" ? t.fmode : 0, m = t.pack || tN.pack(), h = t.finish || Ef; t.strip && (n = nN(n, t.strip)), t.readable && (c |= parseInt(555, 8), f |= parseInt(444, 8)), t.writable && (c |= parseInt(333, 8), f |= parseInt(222, 8)); var d = /* @__PURE__ */ s(function(g, b) { r.readlink(Qr.join(e, g), function(D, v) { if (D) return m.destroy(D); b.linkname = uE(v), m.entry(b, p); }); }, "onsymlink"), y = /* @__PURE__ */ s(function(g, b, D) { if (g) return m.destroy(g); if (!b) return t.finalize !== !1 && m.finalize(), h(m); if (D.isSocket()) return p(); var v = { name: uE(b), mode: (D.mode | (D.isDirectory() ? c : f)) & l, mtime: D.mtime, size: D.size, type: "file", uid: D.uid, gid: D.gid }; if (D.isDirectory()) return v.size = 0, v.type = "directory", v = n(v) || v, m.entry(v, p); if (D.isSymbolicLink()) return v.size = 0, v.type = "symlink", v = n(v) || v, d(b, v); if (v = n(v) || v, !D.isFile()) return u ? m.destroy(new Error("unsupported type for " + b)) : p(); var S = m.entry(v, p); if (S) { var C = a(r.createReadStream(Qr.join(e, b), { start: 0, end: v.size > 0 ? v.size - 1 : v.size }), v); C.on("error", function(O) { S.destroy(O); }), rN(C, S); } }, "onstat"), p = /* @__PURE__ */ s(function(g) { if (g) return m.destroy(g); o(y); }, "onnextentry"); return p(), m; }; var Mte = /* @__PURE__ */ s(function(e) { return e.length ? e[e.length - 1] : null; }, "head"), Rte = /* @__PURE__ */ s(function() { return process.getuid ? process.getuid() : -1; }, "processGetuid"), sN = /* @__PURE__ */ s(function() { return process.umask ? process.umask() : 0; }, "processUmask"); cE.extract = function(e, t) { e || (e = "."), t || (t = {}); var r = t.fs || iN, i = t.ignore || t.filter || Ef, n = t.map || Ef, a = t.mapStream || lE, o = t.chown !== !1 && !vf && Rte() === 0, u = t. extract || tN.extract(), l = [], c = /* @__PURE__ */ new Date(), f = typeof t.umask == "number" ? ~t.umask : ~sN(), m = typeof t.dmode == "number" ? t.dmode : 0, h = typeof t.fmode == "number" ? t.fmode : 0, d = t.strict !== !1; t.strip && (n = nN(n, t.strip)), t.readable && (m |= parseInt(555, 8), h |= parseInt(444, 8)), t.writable && (m |= parseInt(333, 8), h |= parseInt(222, 8)); var y = /* @__PURE__ */ s(function(b, D) { for (var v; (v = Mte(l)) && b.slice(0, v[0].length) !== v[0]; ) l.pop(); if (!v) return D(); r.utimes(v[0], c, v[1], D); }, "utimesParent"), p = /* @__PURE__ */ s(function(b, D, v) { if (t.utimes === !1) return v(); if (D.type === "directory") return r.utimes(b, c, D.mtime, v); if (D.type === "symlink") return y(b, v); r.utimes(b, c, D.mtime, function(S) { if (S) return v(S); y(b, v); }); }, "utimes"), g = /* @__PURE__ */ s(function(b, D, v) { var S = D.type === "symlink", C = S ? r.lchmod : r.chmod, O = S ? r.lchown : r.chown; if (!C) return v(); var k = (D.mode | (D.type === "directory" ? m : h)) & f; O && o ? O.call(r, b, D.uid, D.gid, U) : U(null); function U(j) { if (j) return v(j); if (!C) return v(); C.call(r, b, k, v); } s(U, "onchown"); }, "chperm"); return u.on("entry", function(b, D, v) { b = n(b) || b, b.name = uE(b.name); var S = Qr.join(e, Qr.join("/", b.name)); if (i(S, b)) return D.resume(), v(); var C = /* @__PURE__ */ s(function(H) { if (H) return v(H); p(S, b, function(R) { if (R) return v(R); if (vf) return v(); g(S, b, v); }); }, "stat"), O = /* @__PURE__ */ s(function() { if (vf) return v(); r.unlink(S, function() { var H = Qr.resolve(Qr.dirname(S), b.linkname); if (!H.startsWith(Qr.resolve(e))) return v(new Error(S + " is not a valid symlink")); r.symlink(b.linkname, S, C); }); }, "onsymlink"), k = /* @__PURE__ */ s(function() { if (vf) return v(); r.unlink(S, function() { var H = Qr.join(e, Qr.join("/", b.linkname)); r.link(H, S, function(R) { if (R && R.code === "EPERM" && t.hardlinkAsFilesFallback) return D = r.createReadStream(H), U(); C(R); }); }); }, "onlink"), U = /* @__PURE__ */ s(function() { var H = r.createWriteStream(S), R = a(D, b); H.on("error", function(Q) { R.destroy(Q); }), rN(R, H, function(Q) { if (Q) return v(Q); H.on("close", C); }); }, "onfile"); if (b.type === "directory") return l.push([S, b.mtime]), eN(S, { fs: r, own: o, uid: b.uid, gid: b.gid }, C); var j = Qr.dirname(S); aN(r, j, Qr.join(e, "."), function(H, R) { if (H) return v(H); if (!R) return v(new Error(j + " is not a valid path")); eN(j, { fs: r, own: o, uid: b.uid, gid: b.gid }, function(Q) { if (Q) return v(Q); switch (b.type) { case "file": return U(); case "link": return k(); case "symlink": return O(); } if (d) return v(new Error("unsupported type for " + S + " (" + b.type + ")")); D.resume(), v(); }); }); }), t.finish && u.on("finish", t.finish), u; }; function aN(e, t, r, i) { if (t === r) return i(null, !0); e.lstat(t, function(n, a) { if (n && n.code !== "ENOENT") return i(n); if (n || a.isDirectory()) return aN(e, Qr.join(t, ".."), r, i); i(null, !1); }); } s(aN, "validate"); function eN(e, t, r) { kte(e, { fs: t.fs }, function(i, n) { !i && n && t.own ? Ote(n, t.uid, t.gid, r) : r(i); }); } s(eN, "mkdirfix"); }); // ../node_modules/process-nextick-args/index.js var Ii = E((zet, fE) => { "use strict"; typeof process > "u" || !process.version || process.version.indexOf("v0.") === 0 || process.version.indexOf("v1.") === 0 && process.version. indexOf("v1.8.") !== 0 ? fE.exports = { nextTick: jte } : fE.exports = process; function jte(e, t, r, i) { if (typeof e != "function") throw new TypeError('"callback" argument must be a function'); var n = arguments.length, a, o; switch (n) { case 0: case 1: return process.nextTick(e); case 2: return process.nextTick(/* @__PURE__ */ s(function() { e.call(null, t); }, "afterTickOne")); case 3: return process.nextTick(/* @__PURE__ */ s(function() { e.call(null, t, r); }, "afterTickTwo")); case 4: return process.nextTick(/* @__PURE__ */ s(function() { e.call(null, t, r, i); }, "afterTickThree")); default: for (a = new Array(n - 1), o = 0; o < a.length; ) a[o++] = arguments[o]; return process.nextTick(/* @__PURE__ */ s(function() { e.apply(null, a); }, "afterTick")); } } s(jte, "nextTick"); }); // ../node_modules/peek-stream/node_modules/isarray/index.js var lN = E((Jet, uN) => { var Lte = {}.toString; uN.exports = Array.isArray || function(e) { return Lte.call(e) == "[object Array]"; }; }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/internal/streams/stream.js var dE = E((Xet, cN) => { cN.exports = require("stream"); }); // ../node_modules/peek-stream/node_modules/safe-buffer/index.js var Yh = E((pE, dN) => { var Xh = require("buffer"), ws = Xh.Buffer; function fN(e, t) { for (var r in e) t[r] = e[r]; } s(fN, "copyProps"); ws.from && ws.alloc && ws.allocUnsafe && ws.allocUnsafeSlow ? dN.exports = Xh : (fN(Xh, pE), pE.Buffer = ol); function ol(e, t, r) { return ws(e, t, r); } s(ol, "SafeBuffer"); fN(ws, ol); ol.from = function(e, t, r) { if (typeof e == "number") throw new TypeError("Argument must not be a number"); return ws(e, t, r); }; ol.alloc = function(e, t, r) { if (typeof e != "number") throw new TypeError("Argument must be a number"); var i = ws(e); return t !== void 0 ? typeof r == "string" ? i.fill(t, r) : i.fill(t) : i.fill(0), i; }; ol.allocUnsafe = function(e) { if (typeof e != "number") throw new TypeError("Argument must be a number"); return ws(e); }; ol.allocUnsafeSlow = function(e) { if (typeof e != "number") throw new TypeError("Argument must be a number"); return Xh.SlowBuffer(e); }; }); // ../node_modules/core-util-is/lib/util.js var Ar = E((ei) => { function qte(e) { return Array.isArray ? Array.isArray(e) : Zh(e) === "[object Array]"; } s(qte, "isArray"); ei.isArray = qte; function Ute(e) { return typeof e == "boolean"; } s(Ute, "isBoolean"); ei.isBoolean = Ute; function Wte(e) { return e === null; } s(Wte, "isNull"); ei.isNull = Wte; function $te(e) { return e == null; } s($te, "isNullOrUndefined"); ei.isNullOrUndefined = $te; function Vte(e) { return typeof e == "number"; } s(Vte, "isNumber"); ei.isNumber = Vte; function Hte(e) { return typeof e == "string"; } s(Hte, "isString"); ei.isString = Hte; function Kte(e) { return typeof e == "symbol"; } s(Kte, "isSymbol"); ei.isSymbol = Kte; function zte(e) { return e === void 0; } s(zte, "isUndefined"); ei.isUndefined = zte; function Gte(e) { return Zh(e) === "[object RegExp]"; } s(Gte, "isRegExp"); ei.isRegExp = Gte; function Jte(e) { return typeof e == "object" && e !== null; } s(Jte, "isObject"); ei.isObject = Jte; function Xte(e) { return Zh(e) === "[object Date]"; } s(Xte, "isDate"); ei.isDate = Xte; function Yte(e) { return Zh(e) === "[object Error]" || e instanceof Error; } s(Yte, "isError"); ei.isError = Yte; function Zte(e) { return typeof e == "function"; } s(Zte, "isFunction"); ei.isFunction = Zte; function Qte(e) { return e === null || typeof e == "boolean" || typeof e == "number" || typeof e == "string" || typeof e == "symbol" || // ES6 symbol typeof e > "u"; } s(Qte, "isPrimitive"); ei.isPrimitive = Qte; ei.isBuffer = require("buffer").Buffer.isBuffer; function Zh(e) { return Object.prototype.toString.call(e); } s(Zh, "objectToString"); }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/internal/streams/BufferList.js var hN = E((ett, hE) => { "use strict"; function ere(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } s(ere, "_classCallCheck"); var pN = Yh().Buffer, xf = require("util"); function tre(e, t, r) { e.copy(t, r); } s(tre, "copyBuffer"); hE.exports = function() { function e() { ere(this, e), this.head = null, this.tail = null, this.length = 0; } return s(e, "BufferList"), e.prototype.push = /* @__PURE__ */ s(function(r) { var i = { data: r, next: null }; this.length > 0 ? this.tail.next = i : this.head = i, this.tail = i, ++this.length; }, "push"), e.prototype.unshift = /* @__PURE__ */ s(function(r) { var i = { data: r, next: this.head }; this.length === 0 && (this.tail = i), this.head = i, ++this.length; }, "unshift"), e.prototype.shift = /* @__PURE__ */ s(function() { if (this.length !== 0) { var r = this.head.data; return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, r; } }, "shift"), e.prototype.clear = /* @__PURE__ */ s(function() { this.head = this.tail = null, this.length = 0; }, "clear"), e.prototype.join = /* @__PURE__ */ s(function(r) { if (this.length === 0) return ""; for (var i = this.head, n = "" + i.data; i = i.next; ) n += r + i.data; return n; }, "join"), e.prototype.concat = /* @__PURE__ */ s(function(r) { if (this.length === 0) return pN.alloc(0); for (var i = pN.allocUnsafe(r >>> 0), n = this.head, a = 0; n; ) tre(n.data, i, a), a += n.data.length, n = n.next; return i; }, "concat"), e; }(); xf && xf.inspect && xf.inspect.custom && (hE.exports.prototype[xf.inspect.custom] = function() { var e = xf.inspect({ length: this.length }); return this.constructor.name + " " + e; }); }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/internal/streams/destroy.js var mE = E((rtt, mN) => { "use strict"; var Qh = Ii(); function rre(e, t) { var r = this, i = this._readableState && this._readableState.destroyed, n = this._writableState && this._writableState.destroyed; return i || n ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, Qh.nextTick( em, this, e)) : Qh.nextTick(em, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this. _writableState.destroyed = !0), this._destroy(e || null, function(a) { !t && a ? r._writableState ? r._writableState.errorEmitted || (r._writableState.errorEmitted = !0, Qh.nextTick(em, r, a)) : Qh.nextTick( em, r, a) : t && t(a); }), this); } s(rre, "destroy"); function ire() { this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState. endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1); } s(ire, "undestroy"); function em(e, t) { e.emit("error", t); } s(em, "emitErrorNT"); mN.exports = { destroy: rre, undestroy: ire }; }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/_stream_writable.js var gE = E((ntt, SN) => { "use strict"; var Co = Ii(); SN.exports = Er; function gN(e) { var t = this; this.next = null, this.entry = null, this.finish = function() { Ere(t, e); }; } s(gN, "CorkedRequest"); var nre = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : Co.nextTick, ul; Er.WritableState = Tf; var bN = Object.create(Ar()); bN.inherits = jt(); var sre = { deprecate: of() }, DN = dE(), rm = Yh().Buffer, are = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function ore(e) { return rm.from(e); } s(ore, "_uint8ArrayToBuffer"); function ure(e) { return rm.isBuffer(e) || e instanceof are; } s(ure, "_isUint8Array"); var vN = mE(); bN.inherits(Er, DN); function lre() { } s(lre, "nop"); function Tf(e, t) { ul = ul || wo(), e = e || {}; var r = t instanceof ul; this.objectMode = !!e.objectMode, r && (this.objectMode = this.objectMode || !!e.writableObjectMode); var i = e.highWaterMark, n = e.writableHighWaterMark, a = this.objectMode ? 16 : 16 * 1024; i || i === 0 ? this.highWaterMark = i : r && (n || n === 0) ? this.highWaterMark = n : this.highWaterMark = a, this.highWaterMark = Math. floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; var o = e.decodeStrings === !1; this.decodeStrings = !o, this.defaultEncoding = e.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(u) { yre(t, u); }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new gN(this); } s(Tf, "WritableState"); Tf.prototype.getBuffer = /* @__PURE__ */ s(function() { for (var t = this.bufferedRequest, r = []; t; ) r.push(t), t = t.next; return r; }, "getBuffer"); (function() { try { Object.defineProperty(Tf.prototype, "buffer", { get: sre.deprecate(function() { return this.getBuffer(); }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") }); } catch { } })(); var tm; typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (tm = Function.prototype[Symbol. hasInstance], Object.defineProperty(Er, Symbol.hasInstance, { value: /* @__PURE__ */ s(function(e) { return tm.call(this, e) ? !0 : this !== Er ? !1 : e && e._writableState instanceof Tf; }, "value") })) : tm = /* @__PURE__ */ s(function(e) { return e instanceof this; }, "realHasInstance"); function Er(e) { if (ul = ul || wo(), !tm.call(Er, this) && !(this instanceof ul)) return new Er(e); this._writableState = new Tf(e, this), this.writable = !0, e && (typeof e.write == "function" && (this._write = e.write), typeof e.writev == "function" && (this._writev = e.writev), typeof e.destroy == "function" && (this._destroy = e.destroy), typeof e.final == "function" && (this. _final = e.final)), DN.call(this); } s(Er, "Writable"); Er.prototype.pipe = function() { this.emit("error", new Error("Cannot pipe, not readable")); }; function cre(e, t) { var r = new Error("write after end"); e.emit("error", r), Co.nextTick(t, r); } s(cre, "writeAfterEnd"); function fre(e, t, r, i) { var n = !0, a = !1; return r === null ? a = new TypeError("May not write null values to stream") : typeof r != "string" && r !== void 0 && !t.objectMode && (a = new TypeError("Invalid non-string/buffer chunk")), a && (e.emit("error", a), Co.nextTick(i, a), n = !1), n; } s(fre, "validChunk"); Er.prototype.write = function(e, t, r) { var i = this._writableState, n = !1, a = !i.objectMode && ure(e); return a && !rm.isBuffer(e) && (e = ore(e)), typeof t == "function" && (r = t, t = null), a ? t = "buffer" : t || (t = i.defaultEncoding), typeof r != "function" && (r = lre), i.ended ? cre(this, r) : (a || fre(this, i, e, r)) && (i.pendingcb++, n = pre(this, i, a, e, t, r)), n; }; Er.prototype.cork = function() { var e = this._writableState; e.corked++; }; Er.prototype.uncork = function() { var e = this._writableState; e.corked && (e.corked--, !e.writing && !e.corked && !e.bufferProcessing && e.bufferedRequest && EN(this, e)); }; Er.prototype.setDefaultEncoding = /* @__PURE__ */ s(function(t) { if (typeof t == "string" && (t = t.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "\ utf-16le", "raw"].indexOf((t + "").toLowerCase()) > -1)) throw new TypeError("Unknown encoding: " + t); return this._writableState.defaultEncoding = t, this; }, "setDefaultEncoding"); function dre(e, t, r) { return !e.objectMode && e.decodeStrings !== !1 && typeof t == "string" && (t = rm.from(t, r)), t; } s(dre, "decodeChunk"); Object.defineProperty(Er.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._writableState.highWaterMark; }, "get") }); function pre(e, t, r, i, n, a) { if (!r) { var o = dre(t, i, n); i !== o && (r = !0, n = "buffer", i = o); } var u = t.objectMode ? 1 : i.length; t.length += u; var l = t.length < t.highWaterMark; if (l || (t.needDrain = !0), t.writing || t.corked) { var c = t.lastBufferedRequest; t.lastBufferedRequest = { chunk: i, encoding: n, isBuf: r, callback: a, next: null }, c ? c.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1; } else yE(e, t, !1, u, i, n, a); return l; } s(pre, "writeOrBuffer"); function yE(e, t, r, i, n, a, o) { t.writelen = i, t.writecb = o, t.writing = !0, t.sync = !0, r ? e._writev(n, t.onwrite) : e._write(n, a, t.onwrite), t.sync = !1; } s(yE, "doWrite"); function hre(e, t, r, i, n) { --t.pendingcb, r ? (Co.nextTick(n, i), Co.nextTick(Sf, e, t), e._writableState.errorEmitted = !0, e.emit("error", i)) : (n(i), e._writableState. errorEmitted = !0, e.emit("error", i), Sf(e, t)); } s(hre, "onwriteError"); function mre(e) { e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0; } s(mre, "onwriteStateUpdate"); function yre(e, t) { var r = e._writableState, i = r.sync, n = r.writecb; if (mre(r), t) hre(e, r, i, t, n); else { var a = xN(r); !a && !r.corked && !r.bufferProcessing && r.bufferedRequest && EN(e, r), i ? nre(yN, e, r, a, n) : yN(e, r, a, n); } } s(yre, "onwrite"); function yN(e, t, r, i) { r || gre(e, t), t.pendingcb--, i(), Sf(e, t); } s(yN, "afterWrite"); function gre(e, t) { t.length === 0 && t.needDrain && (t.needDrain = !1, e.emit("drain")); } s(gre, "onwriteDrain"); function EN(e, t) { t.bufferProcessing = !0; var r = t.bufferedRequest; if (e._writev && r && r.next) { var i = t.bufferedRequestCount, n = new Array(i), a = t.corkedRequestsFree; a.entry = r; for (var o = 0, u = !0; r; ) n[o] = r, r.isBuf || (u = !1), r = r.next, o += 1; n.allBuffers = u, yE(e, t, !0, t.length, n, "", a.finish), t.pendingcb++, t.lastBufferedRequest = null, a.next ? (t.corkedRequestsFree = a.next, a.next = null) : t.corkedRequestsFree = new gN(t), t.bufferedRequestCount = 0; } else { for (; r; ) { var l = r.chunk, c = r.encoding, f = r.callback, m = t.objectMode ? 1 : l.length; if (yE(e, t, !1, m, l, c, f), r = r.next, t.bufferedRequestCount--, t.writing) break; } r === null && (t.lastBufferedRequest = null); } t.bufferedRequest = r, t.bufferProcessing = !1; } s(EN, "clearBuffer"); Er.prototype._write = function(e, t, r) { r(new Error("_write() is not implemented")); }; Er.prototype._writev = null; Er.prototype.end = function(e, t, r) { var i = this._writableState; typeof e == "function" ? (r = e, e = null, t = null) : typeof t == "function" && (r = t, t = null), e != null && this.write(e, t), i.corked && (i.corked = 1, this.uncork()), i.ending || vre(this, i, r); }; function xN(e) { return e.ending && e.length === 0 && e.bufferedRequest === null && !e.finished && !e.writing; } s(xN, "needFinish"); function bre(e, t) { e._final(function(r) { t.pendingcb--, r && e.emit("error", r), t.prefinished = !0, e.emit("prefinish"), Sf(e, t); }); } s(bre, "callFinal"); function Dre(e, t) { !t.prefinished && !t.finalCalled && (typeof e._final == "function" ? (t.pendingcb++, t.finalCalled = !0, Co.nextTick(bre, e, t)) : (t.prefinished = !0, e.emit("prefinish"))); } s(Dre, "prefinish"); function Sf(e, t) { var r = xN(t); return r && (Dre(e, t), t.pendingcb === 0 && (t.finished = !0, e.emit("finish"))), r; } s(Sf, "finishMaybe"); function vre(e, t, r) { t.ending = !0, Sf(e, t), r && (t.finished ? Co.nextTick(r) : e.once("finish", r)), t.ended = !0, e.writable = !1; } s(vre, "endWritable"); function Ere(e, t, r) { var i = e.entry; for (e.entry = null; i; ) { var n = i.callback; t.pendingcb--, n(r), i = i.next; } t.corkedRequestsFree.next = e; } s(Ere, "onCorkedFinish"); Object.defineProperty(Er.prototype, "destroyed", { get: /* @__PURE__ */ s(function() { return this._writableState === void 0 ? !1 : this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ s(function(e) { this._writableState && (this._writableState.destroyed = e); }, "set") }); Er.prototype.destroy = vN.destroy; Er.prototype._undestroy = vN.undestroy; Er.prototype._destroy = function(e, t) { this.end(), t(e); }; }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/_stream_duplex.js var wo = E((att, AN) => { "use strict"; var TN = Ii(), xre = Object.keys || function(e) { var t = []; for (var r in e) t.push(r); return t; }; AN.exports = As; var CN = Object.create(Ar()); CN.inherits = jt(); var wN = vE(), DE = gE(); CN.inherits(As, wN); for (bE = xre(DE.prototype), im = 0; im < bE.length; im++) nm = bE[im], As.prototype[nm] || (As.prototype[nm] = DE.prototype[nm]); var bE, nm, im; function As(e) { if (!(this instanceof As)) return new As(e); wN.call(this, e), DE.call(this, e), e && e.readable === !1 && (this.readable = !1), e && e.writable === !1 && (this.writable = !1), this. allowHalfOpen = !0, e && e.allowHalfOpen === !1 && (this.allowHalfOpen = !1), this.once("end", Sre); } s(As, "Duplex"); Object.defineProperty(As.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._writableState.highWaterMark; }, "get") }); function Sre() { this.allowHalfOpen || this._writableState.ended || TN.nextTick(Tre, this); } s(Sre, "onend"); function Tre(e) { e.end(); } s(Tre, "onEndNT"); Object.defineProperty(As.prototype, "destroyed", { get: /* @__PURE__ */ s(function() { return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ s(function(e) { this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = e, this._writableState.destroyed = e); }, "set") }); As.prototype._destroy = function(e, t) { this.push(null), this.end(), TN.nextTick(t, e); }; }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/_stream_readable.js var vE = E((ltt, LN) => { "use strict"; var cl = Ii(); LN.exports = Ht; var Cre = lN(), Cf; Ht.ReadableState = BN; var utt = require("events").EventEmitter, IN = /* @__PURE__ */ s(function(e, t) { return e.listeners(t).length; }, "EElistenerCount"), CE = dE(), wf = Yh().Buffer, wre = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function Are(e) { return wf.from(e); } s(Are, "_uint8ArrayToBuffer"); function _re(e) { return wf.isBuffer(e) || e instanceof wre; } s(_re, "_isUint8Array"); var ON = Object.create(Ar()); ON.inherits = jt(); var EE = require("util"), wt = void 0; EE && EE.debuglog ? wt = EE.debuglog("stream") : wt = /* @__PURE__ */ s(function() { }, "debug"); var Pre = hN(), kN = mE(), ll; ON.inherits(Ht, CE); var xE = ["error", "close", "destroy", "pause", "resume"]; function Fre(e, t, r) { if (typeof e.prependListener == "function") return e.prependListener(t, r); !e._events || !e._events[t] ? e.on(t, r) : Cre(e._events[t]) ? e._events[t].unshift(r) : e._events[t] = [r, e._events[t]]; } s(Fre, "prependListener"); function BN(e, t) { Cf = Cf || wo(), e = e || {}; var r = t instanceof Cf; this.objectMode = !!e.objectMode, r && (this.objectMode = this.objectMode || !!e.readableObjectMode); var i = e.highWaterMark, n = e.readableHighWaterMark, a = this.objectMode ? 16 : 16 * 1024; i || i === 0 ? this.highWaterMark = i : r && (n || n === 0) ? this.highWaterMark = n : this.highWaterMark = a, this.highWaterMark = Math. floor(this.highWaterMark), this.buffer = new Pre(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.destroyed = !1, this.defaultEncoding = e.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, e.encoding && (ll || (ll = require("string_decoder/").StringDecoder), this.decoder = new ll( e.encoding), this.encoding = e.encoding); } s(BN, "ReadableState"); function Ht(e) { if (Cf = Cf || wo(), !(this instanceof Ht)) return new Ht(e); this._readableState = new BN(e, this), this.readable = !0, e && (typeof e.read == "function" && (this._read = e.read), typeof e.destroy == "function" && (this._destroy = e.destroy)), CE.call(this); } s(Ht, "Readable"); Object.defineProperty(Ht.prototype, "destroyed", { get: /* @__PURE__ */ s(function() { return this._readableState === void 0 ? !1 : this._readableState.destroyed; }, "get"), set: /* @__PURE__ */ s(function(e) { this._readableState && (this._readableState.destroyed = e); }, "set") }); Ht.prototype.destroy = kN.destroy; Ht.prototype._undestroy = kN.undestroy; Ht.prototype._destroy = function(e, t) { this.push(null), t(e); }; Ht.prototype.push = function(e, t) { var r = this._readableState, i; return r.objectMode ? i = !0 : typeof e == "string" && (t = t || r.defaultEncoding, t !== r.encoding && (e = wf.from(e, t), t = ""), i = !0), NN(this, e, t, !1, i); }; Ht.prototype.unshift = function(e) { return NN(this, e, null, !0, !1); }; function NN(e, t, r, i, n) { var a = e._readableState; if (t === null) a.reading = !1, Bre(e, a); else { var o; n || (o = Ire(a, t)), o ? e.emit("error", o) : a.objectMode || t && t.length > 0 ? (typeof t != "string" && !a.objectMode && Object.getPrototypeOf( t) !== wf.prototype && (t = Are(t)), i ? a.endEmitted ? e.emit("error", new Error("stream.unshift() after end event")) : SE(e, a, t, !0) : a.ended ? e.emit("error", new Error("stream.push() after EOF")) : (a.reading = !1, a.decoder && !r ? (t = a.decoder.write(t), a.objectMode || t.length !== 0 ? SE(e, a, t, !1) : MN(e, a)) : SE(e, a, t, !1))) : i || (a.reading = !1); } return Ore(a); } s(NN, "readableAddChunk"); function SE(e, t, r, i) { t.flowing && t.length === 0 && !t.sync ? (e.emit("data", r), e.read(0)) : (t.length += t.objectMode ? 1 : r.length, i ? t.buffer.unshift( r) : t.buffer.push(r), t.needReadable && sm(e)), MN(e, t); } s(SE, "addChunk"); function Ire(e, t) { var r; return !_re(t) && typeof t != "string" && t !== void 0 && !e.objectMode && (r = new TypeError("Invalid non-string/buffer chunk")), r; } s(Ire, "chunkInvalid"); function Ore(e) { return !e.ended && (e.needReadable || e.length < e.highWaterMark || e.length === 0); } s(Ore, "needMoreData"); Ht.prototype.isPaused = function() { return this._readableState.flowing === !1; }; Ht.prototype.setEncoding = function(e) { return ll || (ll = require("string_decoder/").StringDecoder), this._readableState.decoder = new ll(e), this._readableState.encoding = e, this; }; var _N = 8388608; function kre(e) { return e >= _N ? e = _N : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e; } s(kre, "computeNewHighWaterMark"); function PN(e, t) { return e <= 0 || t.length === 0 && t.ended ? 0 : t.objectMode ? 1 : e !== e ? t.flowing && t.length ? t.buffer.head.data.length : t.length : (e > t.highWaterMark && (t.highWaterMark = kre(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0)); } s(PN, "howMuchToRead"); Ht.prototype.read = function(e) { wt("read", e), e = parseInt(e, 10); var t = this._readableState, r = e; if (e !== 0 && (t.emittedReadable = !1), e === 0 && t.needReadable && (t.length >= t.highWaterMark || t.ended)) return wt("read: emitReadable", t.length, t.ended), t.length === 0 && t.ended ? TE(this) : sm(this), null; if (e = PN(e, t), e === 0 && t.ended) return t.length === 0 && TE(this), null; var i = t.needReadable; wt("need readable", i), (t.length === 0 || t.length - e < t.highWaterMark) && (i = !0, wt("length less than watermark", i)), t.ended || t. reading ? (i = !1, wt("reading or ended", i)) : i && (wt("do read"), t.reading = !0, t.sync = !0, t.length === 0 && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = PN(r, t))); var n; return e > 0 ? n = RN(e, t) : n = null, n === null ? (t.needReadable = !0, e = 0) : t.length -= e, t.length === 0 && (t.ended || (t.needReadable = !0), r !== e && t.ended && TE(this)), n !== null && this.emit("data", n), n; }; function Bre(e, t) { if (!t.ended) { if (t.decoder) { var r = t.decoder.end(); r && r.length && (t.buffer.push(r), t.length += t.objectMode ? 1 : r.length); } t.ended = !0, sm(e); } } s(Bre, "onEofChunk"); function sm(e) { var t = e._readableState; t.needReadable = !1, t.emittedReadable || (wt("emitReadable", t.flowing), t.emittedReadable = !0, t.sync ? cl.nextTick(FN, e) : FN(e)); } s(sm, "emitReadable"); function FN(e) { wt("emit readable"), e.emit("readable"), wE(e); } s(FN, "emitReadable_"); function MN(e, t) { t.readingMore || (t.readingMore = !0, cl.nextTick(Nre, e, t)); } s(MN, "maybeReadMore"); function Nre(e, t) { for (var r = t.length; !t.reading && !t.flowing && !t.ended && t.length < t.highWaterMark && (wt("maybeReadMore read 0"), e.read(0), r !== t.length); ) r = t.length; t.readingMore = !1; } s(Nre, "maybeReadMore_"); Ht.prototype._read = function(e) { this.emit("error", new Error("_read() is not implemented")); }; Ht.prototype.pipe = function(e, t) { var r = this, i = this._readableState; switch (i.pipesCount) { case 0: i.pipes = e; break; case 1: i.pipes = [i.pipes, e]; break; default: i.pipes.push(e); break; } i.pipesCount += 1, wt("pipe count=%d opts=%j", i.pipesCount, t); var n = (!t || t.end !== !1) && e !== process.stdout && e !== process.stderr, a = n ? u : g; i.endEmitted ? cl.nextTick(a) : r.once("end", a), e.on("unpipe", o); function o(b, D) { wt("onunpipe"), b === r && D && D.hasUnpiped === !1 && (D.hasUnpiped = !0, f()); } s(o, "onunpipe"); function u() { wt("onend"), e.end(); } s(u, "onend"); var l = Mre(r); e.on("drain", l); var c = !1; function f() { wt("cleanup"), e.removeListener("close", y), e.removeListener("finish", p), e.removeListener("drain", l), e.removeListener("error", d), e.removeListener("unpipe", o), r.removeListener("end", u), r.removeListener("end", g), r.removeListener("data", h), c = !0, i.awaitDrain && (!e._writableState || e._writableState.needDrain) && l(); } s(f, "cleanup"); var m = !1; r.on("data", h); function h(b) { wt("ondata"), m = !1; var D = e.write(b); D === !1 && !m && ((i.pipesCount === 1 && i.pipes === e || i.pipesCount > 1 && jN(i.pipes, e) !== -1) && !c && (wt("false write respon\ se, pause", i.awaitDrain), i.awaitDrain++, m = !0), r.pause()); } s(h, "ondata"); function d(b) { wt("onerror", b), g(), e.removeListener("error", d), IN(e, "error") === 0 && e.emit("error", b); } s(d, "onerror"), Fre(e, "error", d); function y() { e.removeListener("finish", p), g(); } s(y, "onclose"), e.once("close", y); function p() { wt("onfinish"), e.removeListener("close", y), g(); } s(p, "onfinish"), e.once("finish", p); function g() { wt("unpipe"), r.unpipe(e); } return s(g, "unpipe"), e.emit("pipe", r), i.flowing || (wt("pipe resume"), r.resume()), e; }; function Mre(e) { return function() { var t = e._readableState; wt("pipeOnDrain", t.awaitDrain), t.awaitDrain && t.awaitDrain--, t.awaitDrain === 0 && IN(e, "data") && (t.flowing = !0, wE(e)); }; } s(Mre, "pipeOnDrain"); Ht.prototype.unpipe = function(e) { var t = this._readableState, r = { hasUnpiped: !1 }; if (t.pipesCount === 0) return this; if (t.pipesCount === 1) return e && e !== t.pipes ? this : (e || (e = t.pipes), t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this, r), this); if (!e) { var i = t.pipes, n = t.pipesCount; t.pipes = null, t.pipesCount = 0, t.flowing = !1; for (var a = 0; a < n; a++) i[a].emit("unpipe", this, { hasUnpiped: !1 }); return this; } var o = jN(t.pipes, e); return o === -1 ? this : (t.pipes.splice(o, 1), t.pipesCount -= 1, t.pipesCount === 1 && (t.pipes = t.pipes[0]), e.emit("unpipe", this, r), this); }; Ht.prototype.on = function(e, t) { var r = CE.prototype.on.call(this, e, t); if (e === "data") this._readableState.flowing !== !1 && this.resume(); else if (e === "readable") { var i = this._readableState; !i.endEmitted && !i.readableListening && (i.readableListening = i.needReadable = !0, i.emittedReadable = !1, i.reading ? i.length && sm( this) : cl.nextTick(Rre, this)); } return r; }; Ht.prototype.addListener = Ht.prototype.on; function Rre(e) { wt("readable nexttick read 0"), e.read(0); } s(Rre, "nReadingNextTick"); Ht.prototype.resume = function() { var e = this._readableState; return e.flowing || (wt("resume"), e.flowing = !0, jre(this, e)), this; }; function jre(e, t) { t.resumeScheduled || (t.resumeScheduled = !0, cl.nextTick(Lre, e, t)); } s(jre, "resume"); function Lre(e, t) { t.reading || (wt("resume read 0"), e.read(0)), t.resumeScheduled = !1, t.awaitDrain = 0, e.emit("resume"), wE(e), t.flowing && !t.reading && e.read(0); } s(Lre, "resume_"); Ht.prototype.pause = function() { return wt("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (wt("pause"), this._readableState. flowing = !1, this.emit("pause")), this; }; function wE(e) { var t = e._readableState; for (wt("flow", t.flowing); t.flowing && e.read() !== null; ) ; } s(wE, "flow"); Ht.prototype.wrap = function(e) { var t = this, r = this._readableState, i = !1; e.on("end", function() { if (wt("wrapped end"), r.decoder && !r.ended) { var o = r.decoder.end(); o && o.length && t.push(o); } t.push(null); }), e.on("data", function(o) { if (wt("wrapped data"), r.decoder && (o = r.decoder.write(o)), !(r.objectMode && o == null) && !(!r.objectMode && (!o || !o.length))) { var u = t.push(o); u || (i = !0, e.pause()); } }); for (var n in e) this[n] === void 0 && typeof e[n] == "function" && (this[n] = /* @__PURE__ */ function(o) { return function() { return e[o].apply(e, arguments); }; }(n)); for (var a = 0; a < xE.length; a++) e.on(xE[a], this.emit.bind(this, xE[a])); return this._read = function(o) { wt("wrapped _read", o), i && (i = !1, e.resume()); }, this; }; Object.defineProperty(Ht.prototype, "readableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._readableState.highWaterMark; }, "get") }); Ht._fromList = RN; function RN(e, t) { if (t.length === 0) return null; var r; return t.objectMode ? r = t.buffer.shift() : !e || e >= t.length ? (t.decoder ? r = t.buffer.join("") : t.buffer.length === 1 ? r = t.buffer. head.data : r = t.buffer.concat(t.length), t.buffer.clear()) : r = qre(e, t.buffer, t.decoder), r; } s(RN, "fromList"); function qre(e, t, r) { var i; return e < t.head.data.length ? (i = t.head.data.slice(0, e), t.head.data = t.head.data.slice(e)) : e === t.head.data.length ? i = t.shift() : i = r ? Ure(e, t) : Wre(e, t), i; } s(qre, "fromListPartial"); function Ure(e, t) { var r = t.head, i = 1, n = r.data; for (e -= n.length; r = r.next; ) { var a = r.data, o = e > a.length ? a.length : e; if (o === a.length ? n += a : n += a.slice(0, e), e -= o, e === 0) { o === a.length ? (++i, r.next ? t.head = r.next : t.head = t.tail = null) : (t.head = r, r.data = a.slice(o)); break; } ++i; } return t.length -= i, n; } s(Ure, "copyFromBufferString"); function Wre(e, t) { var r = wf.allocUnsafe(e), i = t.head, n = 1; for (i.data.copy(r), e -= i.data.length; i = i.next; ) { var a = i.data, o = e > a.length ? a.length : e; if (a.copy(r, r.length - e, 0, o), e -= o, e === 0) { o === a.length ? (++n, i.next ? t.head = i.next : t.head = t.tail = null) : (t.head = i, i.data = a.slice(o)); break; } ++n; } return t.length -= n, r; } s(Wre, "copyFromBuffer"); function TE(e) { var t = e._readableState; if (t.length > 0) throw new Error('"endReadable()" called on non-empty stream'); t.endEmitted || (t.ended = !0, cl.nextTick($re, t, e)); } s(TE, "endReadable"); function $re(e, t) { !e.endEmitted && e.length === 0 && (e.endEmitted = !0, t.readable = !1, t.emit("end")); } s($re, "endReadableNT"); function jN(e, t) { for (var r = 0, i = e.length; r < i; r++) if (e[r] === t) return r; return -1; } s(jN, "indexOf"); }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/_stream_transform.js var AE = E((ftt, WN) => { "use strict"; WN.exports = _s; var am = wo(), UN = Object.create(Ar()); UN.inherits = jt(); UN.inherits(_s, am); function Vre(e, t) { var r = this._transformState; r.transforming = !1; var i = r.writecb; if (!i) return this.emit("error", new Error("write callback called multiple times")); r.writechunk = null, r.writecb = null, t != null && this.push(t), i(e); var n = this._readableState; n.reading = !1, (n.needReadable || n.length < n.highWaterMark) && this._read(n.highWaterMark); } s(Vre, "afterTransform"); function _s(e) { if (!(this instanceof _s)) return new _s(e); am.call(this, e), this._transformState = { afterTransform: Vre.bind(this), needTransform: !1, transforming: !1, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e. transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", Hre); } s(_s, "Transform"); function Hre() { var e = this; typeof this._flush == "function" ? this._flush(function(t, r) { qN(e, t, r); }) : qN(this, null, null); } s(Hre, "prefinish"); _s.prototype.push = function(e, t) { return this._transformState.needTransform = !1, am.prototype.push.call(this, e, t); }; _s.prototype._transform = function(e, t, r) { throw new Error("_transform() is not implemented"); }; _s.prototype._write = function(e, t, r) { var i = this._transformState; if (i.writecb = r, i.writechunk = e, i.writeencoding = t, !i.transforming) { var n = this._readableState; (i.needTransform || n.needReadable || n.length < n.highWaterMark) && this._read(n.highWaterMark); } }; _s.prototype._read = function(e) { var t = this._transformState; t.writechunk !== null && t.writecb && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0; }; _s.prototype._destroy = function(e, t) { var r = this; am.prototype._destroy.call(this, e, function(i) { t(i), r.emit("close"); }); }; function qN(e, t, r) { if (t) return e.emit("error", t); if (r != null && e.push(r), e._writableState.length) throw new Error("Calling transform done when ws.length != 0"); if (e._transformState.transforming) throw new Error("Calling transform done when still transforming"); return e.push(null); } s(qN, "done"); }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/_stream_passthrough.js var KN = E((ptt, HN) => { "use strict"; HN.exports = Af; var $N = AE(), VN = Object.create(Ar()); VN.inherits = jt(); VN.inherits(Af, $N); function Af(e) { if (!(this instanceof Af)) return new Af(e); $N.call(this, e); } s(Af, "PassThrough"); Af.prototype._transform = function(e, t, r) { r(null, e); }; }); // ../node_modules/peek-stream/node_modules/readable-stream/readable.js var zN = E((qr, om) => { var Kn = require("stream"); process.env.READABLE_STREAM === "disable" && Kn ? (om.exports = Kn, qr = om.exports = Kn.Readable, qr.Readable = Kn.Readable, qr.Writable = Kn.Writable, qr.Duplex = Kn.Duplex, qr.Transform = Kn.Transform, qr.PassThrough = Kn.PassThrough, qr.Stream = Kn) : (qr = om.exports = vE(), qr.Stream = Kn || qr, qr.Readable = qr, qr.Writable = gE(), qr.Duplex = wo(), qr.Transform = AE(), qr.PassThrough = KN()); }); // ../node_modules/stream-shift/index.js var _E = E((mtt, GN) => { GN.exports = Kre; function Kre(e) { var t = e._readableState; return t ? t.objectMode || typeof e._duplexState == "number" ? e.read() : e.read(zre(t)) : null; } s(Kre, "shift"); function zre(e) { if (e.buffer.length) { var t = e.bufferIndex || 0; if (e.buffer.head) return e.buffer.head.data.length; if (e.buffer.length - t > 0 && e.buffer[t]) return e.buffer[t].length; } return e.length; } s(zre, "getStateLength"); }); // ../node_modules/peek-stream/node_modules/duplexify/index.js var QN = E((gtt, ZN) => { var um = zN(), JN = Xu(), Gre = jt(), Jre = _E(), XN = Buffer.from && Buffer.from !== Uint8Array.from ? Buffer.from([0]) : new Buffer([0]), PE = /* @__PURE__ */ s(function(e, t) { e._corked ? e.once("uncork", t) : t(); }, "onuncork"), Xre = /* @__PURE__ */ s(function(e, t) { e._autoDestroy && e.destroy(t); }, "autoDestroy"), YN = /* @__PURE__ */ s(function(e, t) { return function(r) { r ? Xre(e, r.message === "premature close" ? null : r) : t && !e._ended && e.end(); }; }, "destroyer"), Yre = /* @__PURE__ */ s(function(e, t) { if (!e || e._writableState && e._writableState.finished) return t(); if (e._writableState) return e.end(t); e.end(), t(); }, "end"), Zre = /* @__PURE__ */ s(function(e) { return new um.Readable({ objectMode: !0, highWaterMark: 16 }).wrap(e); }, "toStreams2"), Ur = /* @__PURE__ */ s(function(e, t, r) { if (!(this instanceof Ur)) return new Ur(e, t, r); um.Duplex.call(this, r), this._writable = null, this._readable = null, this._readable2 = null, this._autoDestroy = !r || r.autoDestroy !== !1, this._forwardDestroy = !r || r.destroy !== !1, this._forwardEnd = !r || r.end !== !1, this._corked = 1, this._ondrain = null, this._drained = !1, this._forwarding = !1, this._unwrite = null, this._unread = null, this._ended = !1, this.destroyed = !1, e && this.setWritable(e), t && this.setReadable(t); }, "Duplexify"); Gre(Ur, um.Duplex); Ur.obj = function(e, t, r) { return r || (r = {}), r.objectMode = !0, r.highWaterMark = 16, new Ur(e, t, r); }; Ur.prototype.cork = function() { ++this._corked === 1 && this.emit("cork"); }; Ur.prototype.uncork = function() { this._corked && --this._corked === 0 && this.emit("uncork"); }; Ur.prototype.setWritable = function(e) { if (this._unwrite && this._unwrite(), this.destroyed) { e && e.destroy && e.destroy(); return; } if (e === null || e === !1) { this.end(); return; } var t = this, r = JN(e, { writable: !0, readable: !1 }, YN(this, this._forwardEnd)), i = /* @__PURE__ */ s(function() { var a = t._ondrain; t._ondrain = null, a && a(); }, "ondrain"), n = /* @__PURE__ */ s(function() { t._writable.removeListener("drain", i), r(); }, "clear"); this._unwrite && process.nextTick(i), this._writable = e, this._writable.on("drain", i), this._unwrite = n, this.uncork(); }; Ur.prototype.setReadable = function(e) { if (this._unread && this._unread(), this.destroyed) { e && e.destroy && e.destroy(); return; } if (e === null || e === !1) { this.push(null), this.resume(); return; } var t = this, r = JN(e, { writable: !1, readable: !0 }, YN(this)), i = /* @__PURE__ */ s(function() { t._forward(); }, "onreadable"), n = /* @__PURE__ */ s(function() { t.push(null); }, "onend"), a = /* @__PURE__ */ s(function() { t._readable2.removeListener("readable", i), t._readable2.removeListener("end", n), r(); }, "clear"); this._drained = !0, this._readable = e, this._readable2 = e._readableState ? e : Zre(e), this._readable2.on("readable", i), this._readable2. on("end", n), this._unread = a, this._forward(); }; Ur.prototype._read = function() { this._drained = !0, this._forward(); }; Ur.prototype._forward = function() { if (!(this._forwarding || !this._readable2 || !this._drained)) { this._forwarding = !0; for (var e; this._drained && (e = Jre(this._readable2)) !== null; ) this.destroyed || (this._drained = this.push(e)); this._forwarding = !1; } }; Ur.prototype.destroy = function(e) { if (!this.destroyed) { this.destroyed = !0; var t = this; process.nextTick(function() { t._destroy(e); }); } }; Ur.prototype._destroy = function(e) { if (e) { var t = this._ondrain; this._ondrain = null, t ? t(e) : this.emit("error", e); } this._forwardDestroy && (this._readable && this._readable.destroy && this._readable.destroy(), this._writable && this._writable.destroy && this._writable.destroy()), this.emit("close"); }; Ur.prototype._write = function(e, t, r) { if (this.destroyed) return r(); if (this._corked) return PE(this, this._write.bind(this, e, t, r)); if (e === XN) return this._finish(r); if (!this._writable) return r(); this._writable.write(e) === !1 ? this._ondrain = r : r(); }; Ur.prototype._finish = function(e) { var t = this; this.emit("preend"), PE(this, function() { Yre(t._forwardEnd && t._writable, function() { t._writableState.prefinished === !1 && (t._writableState.prefinished = !0), t.emit("prefinish"), PE(t, e); }); }); }; Ur.prototype.end = function(e, t, r) { return typeof e == "function" ? this.end(null, null, e) : typeof t == "function" ? this.end(e, null, t) : (this._ended = !0, e && this.write( e), this._writableState.ending || this.write(XN), um.Writable.prototype.end.call(this, r)); }; ZN.exports = Ur; }); // ../node_modules/through2/node_modules/isarray/index.js var t8 = E((Dtt, e8) => { var Qre = {}.toString; e8.exports = Array.isArray || function(e) { return Qre.call(e) == "[object Array]"; }; }); // ../node_modules/through2/node_modules/readable-stream/lib/internal/streams/stream.js var FE = E((vtt, r8) => { r8.exports = require("stream"); }); // ../node_modules/through2/node_modules/safe-buffer/index.js var cm = E((IE, n8) => { var lm = require("buffer"), Ps = lm.Buffer; function i8(e, t) { for (var r in e) t[r] = e[r]; } s(i8, "copyProps"); Ps.from && Ps.alloc && Ps.allocUnsafe && Ps.allocUnsafeSlow ? n8.exports = lm : (i8(lm, IE), IE.Buffer = fl); function fl(e, t, r) { return Ps(e, t, r); } s(fl, "SafeBuffer"); i8(Ps, fl); fl.from = function(e, t, r) { if (typeof e == "number") throw new TypeError("Argument must not be a number"); return Ps(e, t, r); }; fl.alloc = function(e, t, r) { if (typeof e != "number") throw new TypeError("Argument must be a number"); var i = Ps(e); return t !== void 0 ? typeof r == "string" ? i.fill(t, r) : i.fill(t) : i.fill(0), i; }; fl.allocUnsafe = function(e) { if (typeof e != "number") throw new TypeError("Argument must be a number"); return Ps(e); }; fl.allocUnsafeSlow = function(e) { if (typeof e != "number") throw new TypeError("Argument must be a number"); return lm.SlowBuffer(e); }; }); // ../node_modules/through2/node_modules/readable-stream/lib/internal/streams/BufferList.js var a8 = E((xtt, OE) => { "use strict"; function eie(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } s(eie, "_classCallCheck"); var s8 = cm().Buffer, _f = require("util"); function tie(e, t, r) { e.copy(t, r); } s(tie, "copyBuffer"); OE.exports = function() { function e() { eie(this, e), this.head = null, this.tail = null, this.length = 0; } return s(e, "BufferList"), e.prototype.push = /* @__PURE__ */ s(function(r) { var i = { data: r, next: null }; this.length > 0 ? this.tail.next = i : this.head = i, this.tail = i, ++this.length; }, "push"), e.prototype.unshift = /* @__PURE__ */ s(function(r) { var i = { data: r, next: this.head }; this.length === 0 && (this.tail = i), this.head = i, ++this.length; }, "unshift"), e.prototype.shift = /* @__PURE__ */ s(function() { if (this.length !== 0) { var r = this.head.data; return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, r; } }, "shift"), e.prototype.clear = /* @__PURE__ */ s(function() { this.head = this.tail = null, this.length = 0; }, "clear"), e.prototype.join = /* @__PURE__ */ s(function(r) { if (this.length === 0) return ""; for (var i = this.head, n = "" + i.data; i = i.next; ) n += r + i.data; return n; }, "join"), e.prototype.concat = /* @__PURE__ */ s(function(r) { if (this.length === 0) return s8.alloc(0); for (var i = s8.allocUnsafe(r >>> 0), n = this.head, a = 0; n; ) tie(n.data, i, a), a += n.data.length, n = n.next; return i; }, "concat"), e; }(); _f && _f.inspect && _f.inspect.custom && (OE.exports.prototype[_f.inspect.custom] = function() { var e = _f.inspect({ length: this.length }); return this.constructor.name + " " + e; }); }); // ../node_modules/through2/node_modules/readable-stream/lib/internal/streams/destroy.js var kE = E((Ttt, o8) => { "use strict"; var fm = Ii(); function rie(e, t) { var r = this, i = this._readableState && this._readableState.destroyed, n = this._writableState && this._writableState.destroyed; return i || n ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, fm.nextTick( dm, this, e)) : fm.nextTick(dm, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this. _writableState.destroyed = !0), this._destroy(e || null, function(a) { !t && a ? r._writableState ? r._writableState.errorEmitted || (r._writableState.errorEmitted = !0, fm.nextTick(dm, r, a)) : fm.nextTick( dm, r, a) : t && t(a); }), this); } s(rie, "destroy"); function iie() { this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState. endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1); } s(iie, "undestroy"); function dm(e, t) { e.emit("error", t); } s(dm, "emitErrorNT"); o8.exports = { destroy: rie, undestroy: iie }; }); // ../node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js var NE = E((wtt, m8) => { "use strict"; var Ao = Ii(); m8.exports = xr; function l8(e) { var t = this; this.next = null, this.entry = null, this.finish = function() { Eie(t, e); }; } s(l8, "CorkedRequest"); var nie = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : Ao.nextTick, dl; xr.WritableState = Ff; var c8 = Object.create(Ar()); c8.inherits = jt(); var sie = { deprecate: of() }, f8 = FE(), hm = cm().Buffer, aie = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function oie(e) { return hm.from(e); } s(oie, "_uint8ArrayToBuffer"); function uie(e) { return hm.isBuffer(e) || e instanceof aie; } s(uie, "_isUint8Array"); var d8 = kE(); c8.inherits(xr, f8); function lie() { } s(lie, "nop"); function Ff(e, t) { dl = dl || _o(), e = e || {}; var r = t instanceof dl; this.objectMode = !!e.objectMode, r && (this.objectMode = this.objectMode || !!e.writableObjectMode); var i = e.highWaterMark, n = e.writableHighWaterMark, a = this.objectMode ? 16 : 16 * 1024; i || i === 0 ? this.highWaterMark = i : r && (n || n === 0) ? this.highWaterMark = n : this.highWaterMark = a, this.highWaterMark = Math. floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; var o = e.decodeStrings === !1; this.decodeStrings = !o, this.defaultEncoding = e.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(u) { yie(t, u); }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new l8(this); } s(Ff, "WritableState"); Ff.prototype.getBuffer = /* @__PURE__ */ s(function() { for (var t = this.bufferedRequest, r = []; t; ) r.push(t), t = t.next; return r; }, "getBuffer"); (function() { try { Object.defineProperty(Ff.prototype, "buffer", { get: sie.deprecate(function() { return this.getBuffer(); }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") }); } catch { } })(); var pm; typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (pm = Function.prototype[Symbol. hasInstance], Object.defineProperty(xr, Symbol.hasInstance, { value: /* @__PURE__ */ s(function(e) { return pm.call(this, e) ? !0 : this !== xr ? !1 : e && e._writableState instanceof Ff; }, "value") })) : pm = /* @__PURE__ */ s(function(e) { return e instanceof this; }, "realHasInstance"); function xr(e) { if (dl = dl || _o(), !pm.call(xr, this) && !(this instanceof dl)) return new xr(e); this._writableState = new Ff(e, this), this.writable = !0, e && (typeof e.write == "function" && (this._write = e.write), typeof e.writev == "function" && (this._writev = e.writev), typeof e.destroy == "function" && (this._destroy = e.destroy), typeof e.final == "function" && (this. _final = e.final)), f8.call(this); } s(xr, "Writable"); xr.prototype.pipe = function() { this.emit("error", new Error("Cannot pipe, not readable")); }; function cie(e, t) { var r = new Error("write after end"); e.emit("error", r), Ao.nextTick(t, r); } s(cie, "writeAfterEnd"); function fie(e, t, r, i) { var n = !0, a = !1; return r === null ? a = new TypeError("May not write null values to stream") : typeof r != "string" && r !== void 0 && !t.objectMode && (a = new TypeError("Invalid non-string/buffer chunk")), a && (e.emit("error", a), Ao.nextTick(i, a), n = !1), n; } s(fie, "validChunk"); xr.prototype.write = function(e, t, r) { var i = this._writableState, n = !1, a = !i.objectMode && uie(e); return a && !hm.isBuffer(e) && (e = oie(e)), typeof t == "function" && (r = t, t = null), a ? t = "buffer" : t || (t = i.defaultEncoding), typeof r != "function" && (r = lie), i.ended ? cie(this, r) : (a || fie(this, i, e, r)) && (i.pendingcb++, n = pie(this, i, a, e, t, r)), n; }; xr.prototype.cork = function() { var e = this._writableState; e.corked++; }; xr.prototype.uncork = function() { var e = this._writableState; e.corked && (e.corked--, !e.writing && !e.corked && !e.bufferProcessing && e.bufferedRequest && p8(this, e)); }; xr.prototype.setDefaultEncoding = /* @__PURE__ */ s(function(t) { if (typeof t == "string" && (t = t.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "\ utf-16le", "raw"].indexOf((t + "").toLowerCase()) > -1)) throw new TypeError("Unknown encoding: " + t); return this._writableState.defaultEncoding = t, this; }, "setDefaultEncoding"); function die(e, t, r) { return !e.objectMode && e.decodeStrings !== !1 && typeof t == "string" && (t = hm.from(t, r)), t; } s(die, "decodeChunk"); Object.defineProperty(xr.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._writableState.highWaterMark; }, "get") }); function pie(e, t, r, i, n, a) { if (!r) { var o = die(t, i, n); i !== o && (r = !0, n = "buffer", i = o); } var u = t.objectMode ? 1 : i.length; t.length += u; var l = t.length < t.highWaterMark; if (l || (t.needDrain = !0), t.writing || t.corked) { var c = t.lastBufferedRequest; t.lastBufferedRequest = { chunk: i, encoding: n, isBuf: r, callback: a, next: null }, c ? c.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1; } else BE(e, t, !1, u, i, n, a); return l; } s(pie, "writeOrBuffer"); function BE(e, t, r, i, n, a, o) { t.writelen = i, t.writecb = o, t.writing = !0, t.sync = !0, r ? e._writev(n, t.onwrite) : e._write(n, a, t.onwrite), t.sync = !1; } s(BE, "doWrite"); function hie(e, t, r, i, n) { --t.pendingcb, r ? (Ao.nextTick(n, i), Ao.nextTick(Pf, e, t), e._writableState.errorEmitted = !0, e.emit("error", i)) : (n(i), e._writableState. errorEmitted = !0, e.emit("error", i), Pf(e, t)); } s(hie, "onwriteError"); function mie(e) { e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0; } s(mie, "onwriteStateUpdate"); function yie(e, t) { var r = e._writableState, i = r.sync, n = r.writecb; if (mie(r), t) hie(e, r, i, t, n); else { var a = h8(r); !a && !r.corked && !r.bufferProcessing && r.bufferedRequest && p8(e, r), i ? nie(u8, e, r, a, n) : u8(e, r, a, n); } } s(yie, "onwrite"); function u8(e, t, r, i) { r || gie(e, t), t.pendingcb--, i(), Pf(e, t); } s(u8, "afterWrite"); function gie(e, t) { t.length === 0 && t.needDrain && (t.needDrain = !1, e.emit("drain")); } s(gie, "onwriteDrain"); function p8(e, t) { t.bufferProcessing = !0; var r = t.bufferedRequest; if (e._writev && r && r.next) { var i = t.bufferedRequestCount, n = new Array(i), a = t.corkedRequestsFree; a.entry = r; for (var o = 0, u = !0; r; ) n[o] = r, r.isBuf || (u = !1), r = r.next, o += 1; n.allBuffers = u, BE(e, t, !0, t.length, n, "", a.finish), t.pendingcb++, t.lastBufferedRequest = null, a.next ? (t.corkedRequestsFree = a.next, a.next = null) : t.corkedRequestsFree = new l8(t), t.bufferedRequestCount = 0; } else { for (; r; ) { var l = r.chunk, c = r.encoding, f = r.callback, m = t.objectMode ? 1 : l.length; if (BE(e, t, !1, m, l, c, f), r = r.next, t.bufferedRequestCount--, t.writing) break; } r === null && (t.lastBufferedRequest = null); } t.bufferedRequest = r, t.bufferProcessing = !1; } s(p8, "clearBuffer"); xr.prototype._write = function(e, t, r) { r(new Error("_write() is not implemented")); }; xr.prototype._writev = null; xr.prototype.end = function(e, t, r) { var i = this._writableState; typeof e == "function" ? (r = e, e = null, t = null) : typeof t == "function" && (r = t, t = null), e != null && this.write(e, t), i.corked && (i.corked = 1, this.uncork()), i.ending || vie(this, i, r); }; function h8(e) { return e.ending && e.length === 0 && e.bufferedRequest === null && !e.finished && !e.writing; } s(h8, "needFinish"); function bie(e, t) { e._final(function(r) { t.pendingcb--, r && e.emit("error", r), t.prefinished = !0, e.emit("prefinish"), Pf(e, t); }); } s(bie, "callFinal"); function Die(e, t) { !t.prefinished && !t.finalCalled && (typeof e._final == "function" ? (t.pendingcb++, t.finalCalled = !0, Ao.nextTick(bie, e, t)) : (t.prefinished = !0, e.emit("prefinish"))); } s(Die, "prefinish"); function Pf(e, t) { var r = h8(t); return r && (Die(e, t), t.pendingcb === 0 && (t.finished = !0, e.emit("finish"))), r; } s(Pf, "finishMaybe"); function vie(e, t, r) { t.ending = !0, Pf(e, t), r && (t.finished ? Ao.nextTick(r) : e.once("finish", r)), t.ended = !0, e.writable = !1; } s(vie, "endWritable"); function Eie(e, t, r) { var i = e.entry; for (e.entry = null; i; ) { var n = i.callback; t.pendingcb--, n(r), i = i.next; } t.corkedRequestsFree.next = e; } s(Eie, "onCorkedFinish"); Object.defineProperty(xr.prototype, "destroyed", { get: /* @__PURE__ */ s(function() { return this._writableState === void 0 ? !1 : this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ s(function(e) { this._writableState && (this._writableState.destroyed = e); }, "set") }); xr.prototype.destroy = d8.destroy; xr.prototype._undestroy = d8.undestroy; xr.prototype._destroy = function(e, t) { this.end(), t(e); }; }); // ../node_modules/through2/node_modules/readable-stream/lib/_stream_duplex.js var _o = E((_tt, D8) => { "use strict"; var y8 = Ii(), xie = Object.keys || function(e) { var t = []; for (var r in e) t.push(r); return t; }; D8.exports = Fs; var g8 = Object.create(Ar()); g8.inherits = jt(); var b8 = jE(), RE = NE(); g8.inherits(Fs, b8); for (ME = xie(RE.prototype), mm = 0; mm < ME.length; mm++) ym = ME[mm], Fs.prototype[ym] || (Fs.prototype[ym] = RE.prototype[ym]); var ME, ym, mm; function Fs(e) { if (!(this instanceof Fs)) return new Fs(e); b8.call(this, e), RE.call(this, e), e && e.readable === !1 && (this.readable = !1), e && e.writable === !1 && (this.writable = !1), this. allowHalfOpen = !0, e && e.allowHalfOpen === !1 && (this.allowHalfOpen = !1), this.once("end", Sie); } s(Fs, "Duplex"); Object.defineProperty(Fs.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._writableState.highWaterMark; }, "get") }); function Sie() { this.allowHalfOpen || this._writableState.ended || y8.nextTick(Tie, this); } s(Sie, "onend"); function Tie(e) { e.end(); } s(Tie, "onEndNT"); Object.defineProperty(Fs.prototype, "destroyed", { get: /* @__PURE__ */ s(function() { return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ s(function(e) { this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = e, this._writableState.destroyed = e); }, "set") }); Fs.prototype._destroy = function(e, t) { this.push(null), this.end(), y8.nextTick(t, e); }; }); // ../node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js var jE = E((Itt, I8) => { "use strict"; var hl = Ii(); I8.exports = Kt; var Cie = t8(), If; Kt.ReadableState = w8; var Ftt = require("events").EventEmitter, S8 = /* @__PURE__ */ s(function(e, t) { return e.listeners(t).length; }, "EElistenerCount"), $E = FE(), Of = cm().Buffer, wie = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function Aie(e) { return Of.from(e); } s(Aie, "_uint8ArrayToBuffer"); function _ie(e) { return Of.isBuffer(e) || e instanceof wie; } s(_ie, "_isUint8Array"); var T8 = Object.create(Ar()); T8.inherits = jt(); var LE = require("util"), At = void 0; LE && LE.debuglog ? At = LE.debuglog("stream") : At = /* @__PURE__ */ s(function() { }, "debug"); var Pie = a8(), C8 = kE(), pl; T8.inherits(Kt, $E); var qE = ["error", "close", "destroy", "pause", "resume"]; function Fie(e, t, r) { if (typeof e.prependListener == "function") return e.prependListener(t, r); !e._events || !e._events[t] ? e.on(t, r) : Cie(e._events[t]) ? e._events[t].unshift(r) : e._events[t] = [r, e._events[t]]; } s(Fie, "prependListener"); function w8(e, t) { If = If || _o(), e = e || {}; var r = t instanceof If; this.objectMode = !!e.objectMode, r && (this.objectMode = this.objectMode || !!e.readableObjectMode); var i = e.highWaterMark, n = e.readableHighWaterMark, a = this.objectMode ? 16 : 16 * 1024; i || i === 0 ? this.highWaterMark = i : r && (n || n === 0) ? this.highWaterMark = n : this.highWaterMark = a, this.highWaterMark = Math. floor(this.highWaterMark), this.buffer = new Pie(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.destroyed = !1, this.defaultEncoding = e.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, e.encoding && (pl || (pl = require("string_decoder/").StringDecoder), this.decoder = new pl( e.encoding), this.encoding = e.encoding); } s(w8, "ReadableState"); function Kt(e) { if (If = If || _o(), !(this instanceof Kt)) return new Kt(e); this._readableState = new w8(e, this), this.readable = !0, e && (typeof e.read == "function" && (this._read = e.read), typeof e.destroy == "function" && (this._destroy = e.destroy)), $E.call(this); } s(Kt, "Readable"); Object.defineProperty(Kt.prototype, "destroyed", { get: /* @__PURE__ */ s(function() { return this._readableState === void 0 ? !1 : this._readableState.destroyed; }, "get"), set: /* @__PURE__ */ s(function(e) { this._readableState && (this._readableState.destroyed = e); }, "set") }); Kt.prototype.destroy = C8.destroy; Kt.prototype._undestroy = C8.undestroy; Kt.prototype._destroy = function(e, t) { this.push(null), t(e); }; Kt.prototype.push = function(e, t) { var r = this._readableState, i; return r.objectMode ? i = !0 : typeof e == "string" && (t = t || r.defaultEncoding, t !== r.encoding && (e = Of.from(e, t), t = ""), i = !0), A8(this, e, t, !1, i); }; Kt.prototype.unshift = function(e) { return A8(this, e, null, !0, !1); }; function A8(e, t, r, i, n) { var a = e._readableState; if (t === null) a.reading = !1, Bie(e, a); else { var o; n || (o = Iie(a, t)), o ? e.emit("error", o) : a.objectMode || t && t.length > 0 ? (typeof t != "string" && !a.objectMode && Object.getPrototypeOf( t) !== Of.prototype && (t = Aie(t)), i ? a.endEmitted ? e.emit("error", new Error("stream.unshift() after end event")) : UE(e, a, t, !0) : a.ended ? e.emit("error", new Error("stream.push() after EOF")) : (a.reading = !1, a.decoder && !r ? (t = a.decoder.write(t), a.objectMode || t.length !== 0 ? UE(e, a, t, !1) : _8(e, a)) : UE(e, a, t, !1))) : i || (a.reading = !1); } return Oie(a); } s(A8, "readableAddChunk"); function UE(e, t, r, i) { t.flowing && t.length === 0 && !t.sync ? (e.emit("data", r), e.read(0)) : (t.length += t.objectMode ? 1 : r.length, i ? t.buffer.unshift( r) : t.buffer.push(r), t.needReadable && gm(e)), _8(e, t); } s(UE, "addChunk"); function Iie(e, t) { var r; return !_ie(t) && typeof t != "string" && t !== void 0 && !e.objectMode && (r = new TypeError("Invalid non-string/buffer chunk")), r; } s(Iie, "chunkInvalid"); function Oie(e) { return !e.ended && (e.needReadable || e.length < e.highWaterMark || e.length === 0); } s(Oie, "needMoreData"); Kt.prototype.isPaused = function() { return this._readableState.flowing === !1; }; Kt.prototype.setEncoding = function(e) { return pl || (pl = require("string_decoder/").StringDecoder), this._readableState.decoder = new pl(e), this._readableState.encoding = e, this; }; var v8 = 8388608; function kie(e) { return e >= v8 ? e = v8 : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e; } s(kie, "computeNewHighWaterMark"); function E8(e, t) { return e <= 0 || t.length === 0 && t.ended ? 0 : t.objectMode ? 1 : e !== e ? t.flowing && t.length ? t.buffer.head.data.length : t.length : (e > t.highWaterMark && (t.highWaterMark = kie(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0)); } s(E8, "howMuchToRead"); Kt.prototype.read = function(e) { At("read", e), e = parseInt(e, 10); var t = this._readableState, r = e; if (e !== 0 && (t.emittedReadable = !1), e === 0 && t.needReadable && (t.length >= t.highWaterMark || t.ended)) return At("read: emitReadable", t.length, t.ended), t.length === 0 && t.ended ? WE(this) : gm(this), null; if (e = E8(e, t), e === 0 && t.ended) return t.length === 0 && WE(this), null; var i = t.needReadable; At("need readable", i), (t.length === 0 || t.length - e < t.highWaterMark) && (i = !0, At("length less than watermark", i)), t.ended || t. reading ? (i = !1, At("reading or ended", i)) : i && (At("do read"), t.reading = !0, t.sync = !0, t.length === 0 && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = E8(r, t))); var n; return e > 0 ? n = P8(e, t) : n = null, n === null ? (t.needReadable = !0, e = 0) : t.length -= e, t.length === 0 && (t.ended || (t.needReadable = !0), r !== e && t.ended && WE(this)), n !== null && this.emit("data", n), n; }; function Bie(e, t) { if (!t.ended) { if (t.decoder) { var r = t.decoder.end(); r && r.length && (t.buffer.push(r), t.length += t.objectMode ? 1 : r.length); } t.ended = !0, gm(e); } } s(Bie, "onEofChunk"); function gm(e) { var t = e._readableState; t.needReadable = !1, t.emittedReadable || (At("emitReadable", t.flowing), t.emittedReadable = !0, t.sync ? hl.nextTick(x8, e) : x8(e)); } s(gm, "emitReadable"); function x8(e) { At("emit readable"), e.emit("readable"), VE(e); } s(x8, "emitReadable_"); function _8(e, t) { t.readingMore || (t.readingMore = !0, hl.nextTick(Nie, e, t)); } s(_8, "maybeReadMore"); function Nie(e, t) { for (var r = t.length; !t.reading && !t.flowing && !t.ended && t.length < t.highWaterMark && (At("maybeReadMore read 0"), e.read(0), r !== t.length); ) r = t.length; t.readingMore = !1; } s(Nie, "maybeReadMore_"); Kt.prototype._read = function(e) { this.emit("error", new Error("_read() is not implemented")); }; Kt.prototype.pipe = function(e, t) { var r = this, i = this._readableState; switch (i.pipesCount) { case 0: i.pipes = e; break; case 1: i.pipes = [i.pipes, e]; break; default: i.pipes.push(e); break; } i.pipesCount += 1, At("pipe count=%d opts=%j", i.pipesCount, t); var n = (!t || t.end !== !1) && e !== process.stdout && e !== process.stderr, a = n ? u : g; i.endEmitted ? hl.nextTick(a) : r.once("end", a), e.on("unpipe", o); function o(b, D) { At("onunpipe"), b === r && D && D.hasUnpiped === !1 && (D.hasUnpiped = !0, f()); } s(o, "onunpipe"); function u() { At("onend"), e.end(); } s(u, "onend"); var l = Mie(r); e.on("drain", l); var c = !1; function f() { At("cleanup"), e.removeListener("close", y), e.removeListener("finish", p), e.removeListener("drain", l), e.removeListener("error", d), e.removeListener("unpipe", o), r.removeListener("end", u), r.removeListener("end", g), r.removeListener("data", h), c = !0, i.awaitDrain && (!e._writableState || e._writableState.needDrain) && l(); } s(f, "cleanup"); var m = !1; r.on("data", h); function h(b) { At("ondata"), m = !1; var D = e.write(b); D === !1 && !m && ((i.pipesCount === 1 && i.pipes === e || i.pipesCount > 1 && F8(i.pipes, e) !== -1) && !c && (At("false write respon\ se, pause", i.awaitDrain), i.awaitDrain++, m = !0), r.pause()); } s(h, "ondata"); function d(b) { At("onerror", b), g(), e.removeListener("error", d), S8(e, "error") === 0 && e.emit("error", b); } s(d, "onerror"), Fie(e, "error", d); function y() { e.removeListener("finish", p), g(); } s(y, "onclose"), e.once("close", y); function p() { At("onfinish"), e.removeListener("close", y), g(); } s(p, "onfinish"), e.once("finish", p); function g() { At("unpipe"), r.unpipe(e); } return s(g, "unpipe"), e.emit("pipe", r), i.flowing || (At("pipe resume"), r.resume()), e; }; function Mie(e) { return function() { var t = e._readableState; At("pipeOnDrain", t.awaitDrain), t.awaitDrain && t.awaitDrain--, t.awaitDrain === 0 && S8(e, "data") && (t.flowing = !0, VE(e)); }; } s(Mie, "pipeOnDrain"); Kt.prototype.unpipe = function(e) { var t = this._readableState, r = { hasUnpiped: !1 }; if (t.pipesCount === 0) return this; if (t.pipesCount === 1) return e && e !== t.pipes ? this : (e || (e = t.pipes), t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this, r), this); if (!e) { var i = t.pipes, n = t.pipesCount; t.pipes = null, t.pipesCount = 0, t.flowing = !1; for (var a = 0; a < n; a++) i[a].emit("unpipe", this, { hasUnpiped: !1 }); return this; } var o = F8(t.pipes, e); return o === -1 ? this : (t.pipes.splice(o, 1), t.pipesCount -= 1, t.pipesCount === 1 && (t.pipes = t.pipes[0]), e.emit("unpipe", this, r), this); }; Kt.prototype.on = function(e, t) { var r = $E.prototype.on.call(this, e, t); if (e === "data") this._readableState.flowing !== !1 && this.resume(); else if (e === "readable") { var i = this._readableState; !i.endEmitted && !i.readableListening && (i.readableListening = i.needReadable = !0, i.emittedReadable = !1, i.reading ? i.length && gm( this) : hl.nextTick(Rie, this)); } return r; }; Kt.prototype.addListener = Kt.prototype.on; function Rie(e) { At("readable nexttick read 0"), e.read(0); } s(Rie, "nReadingNextTick"); Kt.prototype.resume = function() { var e = this._readableState; return e.flowing || (At("resume"), e.flowing = !0, jie(this, e)), this; }; function jie(e, t) { t.resumeScheduled || (t.resumeScheduled = !0, hl.nextTick(Lie, e, t)); } s(jie, "resume"); function Lie(e, t) { t.reading || (At("resume read 0"), e.read(0)), t.resumeScheduled = !1, t.awaitDrain = 0, e.emit("resume"), VE(e), t.flowing && !t.reading && e.read(0); } s(Lie, "resume_"); Kt.prototype.pause = function() { return At("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (At("pause"), this._readableState. flowing = !1, this.emit("pause")), this; }; function VE(e) { var t = e._readableState; for (At("flow", t.flowing); t.flowing && e.read() !== null; ) ; } s(VE, "flow"); Kt.prototype.wrap = function(e) { var t = this, r = this._readableState, i = !1; e.on("end", function() { if (At("wrapped end"), r.decoder && !r.ended) { var o = r.decoder.end(); o && o.length && t.push(o); } t.push(null); }), e.on("data", function(o) { if (At("wrapped data"), r.decoder && (o = r.decoder.write(o)), !(r.objectMode && o == null) && !(!r.objectMode && (!o || !o.length))) { var u = t.push(o); u || (i = !0, e.pause()); } }); for (var n in e) this[n] === void 0 && typeof e[n] == "function" && (this[n] = /* @__PURE__ */ function(o) { return function() { return e[o].apply(e, arguments); }; }(n)); for (var a = 0; a < qE.length; a++) e.on(qE[a], this.emit.bind(this, qE[a])); return this._read = function(o) { At("wrapped _read", o), i && (i = !1, e.resume()); }, this; }; Object.defineProperty(Kt.prototype, "readableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._readableState.highWaterMark; }, "get") }); Kt._fromList = P8; function P8(e, t) { if (t.length === 0) return null; var r; return t.objectMode ? r = t.buffer.shift() : !e || e >= t.length ? (t.decoder ? r = t.buffer.join("") : t.buffer.length === 1 ? r = t.buffer. head.data : r = t.buffer.concat(t.length), t.buffer.clear()) : r = qie(e, t.buffer, t.decoder), r; } s(P8, "fromList"); function qie(e, t, r) { var i; return e < t.head.data.length ? (i = t.head.data.slice(0, e), t.head.data = t.head.data.slice(e)) : e === t.head.data.length ? i = t.shift() : i = r ? Uie(e, t) : Wie(e, t), i; } s(qie, "fromListPartial"); function Uie(e, t) { var r = t.head, i = 1, n = r.data; for (e -= n.length; r = r.next; ) { var a = r.data, o = e > a.length ? a.length : e; if (o === a.length ? n += a : n += a.slice(0, e), e -= o, e === 0) { o === a.length ? (++i, r.next ? t.head = r.next : t.head = t.tail = null) : (t.head = r, r.data = a.slice(o)); break; } ++i; } return t.length -= i, n; } s(Uie, "copyFromBufferString"); function Wie(e, t) { var r = Of.allocUnsafe(e), i = t.head, n = 1; for (i.data.copy(r), e -= i.data.length; i = i.next; ) { var a = i.data, o = e > a.length ? a.length : e; if (a.copy(r, r.length - e, 0, o), e -= o, e === 0) { o === a.length ? (++n, i.next ? t.head = i.next : t.head = t.tail = null) : (t.head = i, i.data = a.slice(o)); break; } ++n; } return t.length -= n, r; } s(Wie, "copyFromBuffer"); function WE(e) { var t = e._readableState; if (t.length > 0) throw new Error('"endReadable()" called on non-empty stream'); t.endEmitted || (t.ended = !0, hl.nextTick($ie, t, e)); } s(WE, "endReadable"); function $ie(e, t) { !e.endEmitted && e.length === 0 && (e.endEmitted = !0, t.readable = !1, t.emit("end")); } s($ie, "endReadableNT"); function F8(e, t) { for (var r = 0, i = e.length; r < i; r++) if (e[r] === t) return r; return -1; } s(F8, "indexOf"); }); // ../node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js var HE = E((ktt, B8) => { "use strict"; B8.exports = Is; var bm = _o(), k8 = Object.create(Ar()); k8.inherits = jt(); k8.inherits(Is, bm); function Vie(e, t) { var r = this._transformState; r.transforming = !1; var i = r.writecb; if (!i) return this.emit("error", new Error("write callback called multiple times")); r.writechunk = null, r.writecb = null, t != null && this.push(t), i(e); var n = this._readableState; n.reading = !1, (n.needReadable || n.length < n.highWaterMark) && this._read(n.highWaterMark); } s(Vie, "afterTransform"); function Is(e) { if (!(this instanceof Is)) return new Is(e); bm.call(this, e), this._transformState = { afterTransform: Vie.bind(this), needTransform: !1, transforming: !1, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e. transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", Hie); } s(Is, "Transform"); function Hie() { var e = this; typeof this._flush == "function" ? this._flush(function(t, r) { O8(e, t, r); }) : O8(this, null, null); } s(Hie, "prefinish"); Is.prototype.push = function(e, t) { return this._transformState.needTransform = !1, bm.prototype.push.call(this, e, t); }; Is.prototype._transform = function(e, t, r) { throw new Error("_transform() is not implemented"); }; Is.prototype._write = function(e, t, r) { var i = this._transformState; if (i.writecb = r, i.writechunk = e, i.writeencoding = t, !i.transforming) { var n = this._readableState; (i.needTransform || n.needReadable || n.length < n.highWaterMark) && this._read(n.highWaterMark); } }; Is.prototype._read = function(e) { var t = this._transformState; t.writechunk !== null && t.writecb && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0; }; Is.prototype._destroy = function(e, t) { var r = this; bm.prototype._destroy.call(this, e, function(i) { t(i), r.emit("close"); }); }; function O8(e, t, r) { if (t) return e.emit("error", t); if (r != null && e.push(r), e._writableState.length) throw new Error("Calling transform done when ws.length != 0"); if (e._transformState.transforming) throw new Error("Calling transform done when still transforming"); return e.push(null); } s(O8, "done"); }); // ../node_modules/through2/node_modules/readable-stream/lib/_stream_passthrough.js var j8 = E((Ntt, R8) => { "use strict"; R8.exports = kf; var N8 = HE(), M8 = Object.create(Ar()); M8.inherits = jt(); M8.inherits(kf, N8); function kf(e) { if (!(this instanceof kf)) return new kf(e); N8.call(this, e); } s(kf, "PassThrough"); kf.prototype._transform = function(e, t, r) { r(null, e); }; }); // ../node_modules/through2/node_modules/readable-stream/readable.js var L8 = E((Wr, Dm) => { var zn = require("stream"); process.env.READABLE_STREAM === "disable" && zn ? (Dm.exports = zn, Wr = Dm.exports = zn.Readable, Wr.Readable = zn.Readable, Wr.Writable = zn.Writable, Wr.Duplex = zn.Duplex, Wr.Transform = zn.Transform, Wr.PassThrough = zn.PassThrough, Wr.Stream = zn) : (Wr = Dm.exports = jE(), Wr.Stream = zn || Wr, Wr.Readable = Wr, Wr.Writable = NE(), Wr.Duplex = _o(), Wr.Transform = HE(), Wr.PassThrough = j8()); }); // ../node_modules/xtend/immutable.js var U8 = E((Rtt, q8) => { q8.exports = zie; var Kie = Object.prototype.hasOwnProperty; function zie() { for (var e = {}, t = 0; t < arguments.length; t++) { var r = arguments[t]; for (var i in r) Kie.call(r, i) && (e[i] = r[i]); } return e; } s(zie, "extend"); }); // ../node_modules/through2/through2.js var zE = E((Ltt, vm) => { var W8 = L8().Transform, $8 = require("util").inherits, V8 = U8(); function ml(e) { W8.call(this, e), this._destroyed = !1; } s(ml, "DestroyableTransform"); $8(ml, W8); ml.prototype.destroy = function(e) { if (!this._destroyed) { this._destroyed = !0; var t = this; process.nextTick(function() { e && t.emit("error", e), t.emit("close"); }); } }; function Gie(e, t, r) { r(null, e); } s(Gie, "noop"); function KE(e) { return function(t, r, i) { return typeof t == "function" && (i = r, r = t, t = {}), typeof r != "function" && (r = Gie), typeof i != "function" && (i = null), e( t, r, i); }; } s(KE, "through2"); vm.exports = KE(function(e, t, r) { var i = new ml(e); return i._transform = t, r && (i._flush = r), i; }); vm.exports.ctor = KE(function(e, t, r) { function i(n) { if (!(this instanceof i)) return new i(n); this.options = V8(e, n), ml.call(this, this.options); } return s(i, "Through2"), $8(i, ml), i.prototype._transform = t, r && (i.prototype._flush = r), i; }); vm.exports.obj = KE(function(e, t, r) { var i = new ml(V8({ objectMode: !0, highWaterMark: 16 }, e)); return i._transform = t, r && (i._flush = r), i; }); }); // ../node_modules/buffer-from/index.js var K8 = E((Utt, H8) => { var Jie = Object.prototype.toString, GE = typeof Buffer < "u" && typeof Buffer.alloc == "function" && typeof Buffer.allocUnsafe == "functi\ on" && typeof Buffer.from == "function"; function Xie(e) { return Jie.call(e).slice(8, -1) === "ArrayBuffer"; } s(Xie, "isArrayBuffer"); function Yie(e, t, r) { t >>>= 0; var i = e.byteLength - t; if (i < 0) throw new RangeError("'offset' is out of bounds"); if (r === void 0) r = i; else if (r >>>= 0, r > i) throw new RangeError("'length' is out of bounds"); return GE ? Buffer.from(e.slice(t, t + r)) : new Buffer(new Uint8Array(e.slice(t, t + r))); } s(Yie, "fromArrayBuffer"); function Zie(e, t) { if ((typeof t != "string" || t === "") && (t = "utf8"), !Buffer.isEncoding(t)) throw new TypeError('"encoding" must be a valid string encoding'); return GE ? Buffer.from(e, t) : new Buffer(e, t); } s(Zie, "fromString"); function Qie(e, t, r) { if (typeof e == "number") throw new TypeError('"value" argument must not be a number'); return Xie(e) ? Yie(e, t, r) : typeof e == "string" ? Zie(e, t) : GE ? Buffer.from(e) : new Buffer(e); } s(Qie, "bufferFrom"); H8.exports = Qie; }); // ../node_modules/peek-stream/index.js var J8 = E(($tt, G8) => { var ene = QN(), tne = zE(), rne = K8(), ine = /* @__PURE__ */ s(function(e) { return !Buffer.isBuffer(e) && typeof e != "string"; }, "isObject"), z8 = /* @__PURE__ */ s(function(e, t) { if (typeof e == "number" && (e = { maxBuffer: e }), typeof e == "function") return z8(null, e); e || (e = {}); var r = typeof e.maxBuffer == "number" ? e.maxBuffer : 65535, i = e.strict, n = e.newline !== !1, a = [], o = 0, u = ene.obj(), l = tne. obj({ highWaterMark: 1 }, function(m, h, d) { if (ine(m)) return f(m, null, d); if (Buffer.isBuffer(m) || (m = rne(m)), n) { var y = Array.prototype.indexOf.call(m, 10); if (y > 0 && m[y - 1] === 13 && y--, y > -1) return a.push(m.slice(0, y)), f(Buffer.concat(a), m.slice(y), d); } if (a.push(m), o += m.length, o < r) return d(); if (i) return d(new Error("No newline found")); f(Buffer.concat(a), null, d); }), c = /* @__PURE__ */ s(function() { if (i) return u.destroy(new Error("No newline found")); u.cork(), f(Buffer.concat(a), null, function(m) { if (m) return u.destroy(m); u.uncork(); }); }, "onpreend"), f = /* @__PURE__ */ s(function(m, h, d) { u.removeListener("preend", c), t(m, function(y, p) { if (y) return d(y); u.setWritable(p), u.setReadable(p), m && p.write(m), h && p.write(h), h = a = l = null, d(); }); }, "ready"); return u.on("preend", c), u.setWritable(l), u; }, "peek"); G8.exports = z8; }); // ../node_modules/pumpify/node_modules/pump/index.js var Z8 = E((Htt, Y8) => { var nne = Ch(), sne = Xu(), JE = require("fs"), Bf = /* @__PURE__ */ s(function() { }, "noop"), ane = /^v?\.0/.test(process.version), Em = /* @__PURE__ */ s(function(e) { return typeof e == "function"; }, "isFn"), one = /* @__PURE__ */ s(function(e) { return !ane || !JE ? !1 : (e instanceof (JE.ReadStream || Bf) || e instanceof (JE.WriteStream || Bf)) && Em(e.close); }, "isFS"), une = /* @__PURE__ */ s(function(e) { return e.setHeader && Em(e.abort); }, "isRequest"), lne = /* @__PURE__ */ s(function(e, t, r, i) { i = nne(i); var n = !1; e.on("close", function() { n = !0; }), sne(e, { readable: t, writable: r }, function(o) { if (o) return i(o); n = !0, i(); }); var a = !1; return function(o) { if (!n && !a) { if (a = !0, one(e)) return e.close(Bf); if (une(e)) return e.abort(); if (Em(e.destroy)) return e.destroy(); i(o || new Error("stream was destroyed")); } }; }, "destroyer"), X8 = /* @__PURE__ */ s(function(e) { e(); }, "call"), cne = /* @__PURE__ */ s(function(e, t) { return e.pipe(t); }, "pipe"), fne = /* @__PURE__ */ s(function() { var e = Array.prototype.slice.call(arguments), t = Em(e[e.length - 1] || Bf) && e.pop() || Bf; if (Array.isArray(e[0]) && (e = e[0]), e.length < 2) throw new Error("pump requires two streams per minimum"); var r, i = e.map(function(n, a) { var o = a < e.length - 1, u = a > 0; return lne(n, o, u, function(l) { r || (r = l), l && i.forEach(X8), !o && (i.forEach(X8), t(r)); }); }); e.reduce(cne); }, "pump"); Y8.exports = fne; }); // ../node_modules/pumpify/node_modules/isarray/index.js var e6 = E((ztt, Q8) => { var dne = {}.toString; Q8.exports = Array.isArray || function(e) { return dne.call(e) == "[object Array]"; }; }); // ../node_modules/pumpify/node_modules/readable-stream/lib/internal/streams/stream.js var XE = E((Gtt, t6) => { t6.exports = require("stream"); }); // ../node_modules/pumpify/node_modules/safe-buffer/index.js var Sm = E((YE, i6) => { var xm = require("buffer"), Os = xm.Buffer; function r6(e, t) { for (var r in e) t[r] = e[r]; } s(r6, "copyProps"); Os.from && Os.alloc && Os.allocUnsafe && Os.allocUnsafeSlow ? i6.exports = xm : (r6(xm, YE), YE.Buffer = yl); function yl(e, t, r) { return Os(e, t, r); } s(yl, "SafeBuffer"); r6(Os, yl); yl.from = function(e, t, r) { if (typeof e == "number") throw new TypeError("Argument must not be a number"); return Os(e, t, r); }; yl.alloc = function(e, t, r) { if (typeof e != "number") throw new TypeError("Argument must be a number"); var i = Os(e); return t !== void 0 ? typeof r == "string" ? i.fill(t, r) : i.fill(t) : i.fill(0), i; }; yl.allocUnsafe = function(e) { if (typeof e != "number") throw new TypeError("Argument must be a number"); return Os(e); }; yl.allocUnsafeSlow = function(e) { if (typeof e != "number") throw new TypeError("Argument must be a number"); return xm.SlowBuffer(e); }; }); // ../node_modules/pumpify/node_modules/readable-stream/lib/internal/streams/BufferList.js var s6 = E((Xtt, ZE) => { "use strict"; function pne(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } s(pne, "_classCallCheck"); var n6 = Sm().Buffer, Nf = require("util"); function hne(e, t, r) { e.copy(t, r); } s(hne, "copyBuffer"); ZE.exports = function() { function e() { pne(this, e), this.head = null, this.tail = null, this.length = 0; } return s(e, "BufferList"), e.prototype.push = /* @__PURE__ */ s(function(r) { var i = { data: r, next: null }; this.length > 0 ? this.tail.next = i : this.head = i, this.tail = i, ++this.length; }, "push"), e.prototype.unshift = /* @__PURE__ */ s(function(r) { var i = { data: r, next: this.head }; this.length === 0 && (this.tail = i), this.head = i, ++this.length; }, "unshift"), e.prototype.shift = /* @__PURE__ */ s(function() { if (this.length !== 0) { var r = this.head.data; return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, r; } }, "shift"), e.prototype.clear = /* @__PURE__ */ s(function() { this.head = this.tail = null, this.length = 0; }, "clear"), e.prototype.join = /* @__PURE__ */ s(function(r) { if (this.length === 0) return ""; for (var i = this.head, n = "" + i.data; i = i.next; ) n += r + i.data; return n; }, "join"), e.prototype.concat = /* @__PURE__ */ s(function(r) { if (this.length === 0) return n6.alloc(0); for (var i = n6.allocUnsafe(r >>> 0), n = this.head, a = 0; n; ) hne(n.data, i, a), a += n.data.length, n = n.next; return i; }, "concat"), e; }(); Nf && Nf.inspect && Nf.inspect.custom && (ZE.exports.prototype[Nf.inspect.custom] = function() { var e = Nf.inspect({ length: this.length }); return this.constructor.name + " " + e; }); }); // ../node_modules/pumpify/node_modules/readable-stream/lib/internal/streams/destroy.js var QE = E((Ztt, a6) => { "use strict"; var Tm = Ii(); function mne(e, t) { var r = this, i = this._readableState && this._readableState.destroyed, n = this._writableState && this._writableState.destroyed; return i || n ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, Tm.nextTick( Cm, this, e)) : Tm.nextTick(Cm, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this. _writableState.destroyed = !0), this._destroy(e || null, function(a) { !t && a ? r._writableState ? r._writableState.errorEmitted || (r._writableState.errorEmitted = !0, Tm.nextTick(Cm, r, a)) : Tm.nextTick( Cm, r, a) : t && t(a); }), this); } s(mne, "destroy"); function yne() { this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState. endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1); } s(yne, "undestroy"); function Cm(e, t) { e.emit("error", t); } s(Cm, "emitErrorNT"); a6.exports = { destroy: mne, undestroy: yne }; }); // ../node_modules/pumpify/node_modules/readable-stream/lib/_stream_writable.js var tx = E((ert, h6) => { "use strict"; var Po = Ii(); h6.exports = Sr; function u6(e) { var t = this; this.next = null, this.entry = null, this.finish = function() { Bne(t, e); }; } s(u6, "CorkedRequest"); var gne = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : Po.nextTick, gl; Sr.WritableState = Rf; var l6 = Object.create(Ar()); l6.inherits = jt(); var bne = { deprecate: of() }, c6 = XE(), Am = Sm().Buffer, Dne = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function vne(e) { return Am.from(e); } s(vne, "_uint8ArrayToBuffer"); function Ene(e) { return Am.isBuffer(e) || e instanceof Dne; } s(Ene, "_isUint8Array"); var f6 = QE(); l6.inherits(Sr, c6); function xne() { } s(xne, "nop"); function Rf(e, t) { gl = gl || Fo(), e = e || {}; var r = t instanceof gl; this.objectMode = !!e.objectMode, r && (this.objectMode = this.objectMode || !!e.writableObjectMode); var i = e.highWaterMark, n = e.writableHighWaterMark, a = this.objectMode ? 16 : 16 * 1024; i || i === 0 ? this.highWaterMark = i : r && (n || n === 0) ? this.highWaterMark = n : this.highWaterMark = a, this.highWaterMark = Math. floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; var o = e.decodeStrings === !1; this.decodeStrings = !o, this.defaultEncoding = e.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(u) { Pne(t, u); }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new u6(this); } s(Rf, "WritableState"); Rf.prototype.getBuffer = /* @__PURE__ */ s(function() { for (var t = this.bufferedRequest, r = []; t; ) r.push(t), t = t.next; return r; }, "getBuffer"); (function() { try { Object.defineProperty(Rf.prototype, "buffer", { get: bne.deprecate(function() { return this.getBuffer(); }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") }); } catch { } })(); var wm; typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (wm = Function.prototype[Symbol. hasInstance], Object.defineProperty(Sr, Symbol.hasInstance, { value: /* @__PURE__ */ s(function(e) { return wm.call(this, e) ? !0 : this !== Sr ? !1 : e && e._writableState instanceof Rf; }, "value") })) : wm = /* @__PURE__ */ s(function(e) { return e instanceof this; }, "realHasInstance"); function Sr(e) { if (gl = gl || Fo(), !wm.call(Sr, this) && !(this instanceof gl)) return new Sr(e); this._writableState = new Rf(e, this), this.writable = !0, e && (typeof e.write == "function" && (this._write = e.write), typeof e.writev == "function" && (this._writev = e.writev), typeof e.destroy == "function" && (this._destroy = e.destroy), typeof e.final == "function" && (this. _final = e.final)), c6.call(this); } s(Sr, "Writable"); Sr.prototype.pipe = function() { this.emit("error", new Error("Cannot pipe, not readable")); }; function Sne(e, t) { var r = new Error("write after end"); e.emit("error", r), Po.nextTick(t, r); } s(Sne, "writeAfterEnd"); function Tne(e, t, r, i) { var n = !0, a = !1; return r === null ? a = new TypeError("May not write null values to stream") : typeof r != "string" && r !== void 0 && !t.objectMode && (a = new TypeError("Invalid non-string/buffer chunk")), a && (e.emit("error", a), Po.nextTick(i, a), n = !1), n; } s(Tne, "validChunk"); Sr.prototype.write = function(e, t, r) { var i = this._writableState, n = !1, a = !i.objectMode && Ene(e); return a && !Am.isBuffer(e) && (e = vne(e)), typeof t == "function" && (r = t, t = null), a ? t = "buffer" : t || (t = i.defaultEncoding), typeof r != "function" && (r = xne), i.ended ? Sne(this, r) : (a || Tne(this, i, e, r)) && (i.pendingcb++, n = wne(this, i, a, e, t, r)), n; }; Sr.prototype.cork = function() { var e = this._writableState; e.corked++; }; Sr.prototype.uncork = function() { var e = this._writableState; e.corked && (e.corked--, !e.writing && !e.corked && !e.bufferProcessing && e.bufferedRequest && d6(this, e)); }; Sr.prototype.setDefaultEncoding = /* @__PURE__ */ s(function(t) { if (typeof t == "string" && (t = t.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "\ utf-16le", "raw"].indexOf((t + "").toLowerCase()) > -1)) throw new TypeError("Unknown encoding: " + t); return this._writableState.defaultEncoding = t, this; }, "setDefaultEncoding"); function Cne(e, t, r) { return !e.objectMode && e.decodeStrings !== !1 && typeof t == "string" && (t = Am.from(t, r)), t; } s(Cne, "decodeChunk"); Object.defineProperty(Sr.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._writableState.highWaterMark; }, "get") }); function wne(e, t, r, i, n, a) { if (!r) { var o = Cne(t, i, n); i !== o && (r = !0, n = "buffer", i = o); } var u = t.objectMode ? 1 : i.length; t.length += u; var l = t.length < t.highWaterMark; if (l || (t.needDrain = !0), t.writing || t.corked) { var c = t.lastBufferedRequest; t.lastBufferedRequest = { chunk: i, encoding: n, isBuf: r, callback: a, next: null }, c ? c.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1; } else ex(e, t, !1, u, i, n, a); return l; } s(wne, "writeOrBuffer"); function ex(e, t, r, i, n, a, o) { t.writelen = i, t.writecb = o, t.writing = !0, t.sync = !0, r ? e._writev(n, t.onwrite) : e._write(n, a, t.onwrite), t.sync = !1; } s(ex, "doWrite"); function Ane(e, t, r, i, n) { --t.pendingcb, r ? (Po.nextTick(n, i), Po.nextTick(Mf, e, t), e._writableState.errorEmitted = !0, e.emit("error", i)) : (n(i), e._writableState. errorEmitted = !0, e.emit("error", i), Mf(e, t)); } s(Ane, "onwriteError"); function _ne(e) { e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0; } s(_ne, "onwriteStateUpdate"); function Pne(e, t) { var r = e._writableState, i = r.sync, n = r.writecb; if (_ne(r), t) Ane(e, r, i, t, n); else { var a = p6(r); !a && !r.corked && !r.bufferProcessing && r.bufferedRequest && d6(e, r), i ? gne(o6, e, r, a, n) : o6(e, r, a, n); } } s(Pne, "onwrite"); function o6(e, t, r, i) { r || Fne(e, t), t.pendingcb--, i(), Mf(e, t); } s(o6, "afterWrite"); function Fne(e, t) { t.length === 0 && t.needDrain && (t.needDrain = !1, e.emit("drain")); } s(Fne, "onwriteDrain"); function d6(e, t) { t.bufferProcessing = !0; var r = t.bufferedRequest; if (e._writev && r && r.next) { var i = t.bufferedRequestCount, n = new Array(i), a = t.corkedRequestsFree; a.entry = r; for (var o = 0, u = !0; r; ) n[o] = r, r.isBuf || (u = !1), r = r.next, o += 1; n.allBuffers = u, ex(e, t, !0, t.length, n, "", a.finish), t.pendingcb++, t.lastBufferedRequest = null, a.next ? (t.corkedRequestsFree = a.next, a.next = null) : t.corkedRequestsFree = new u6(t), t.bufferedRequestCount = 0; } else { for (; r; ) { var l = r.chunk, c = r.encoding, f = r.callback, m = t.objectMode ? 1 : l.length; if (ex(e, t, !1, m, l, c, f), r = r.next, t.bufferedRequestCount--, t.writing) break; } r === null && (t.lastBufferedRequest = null); } t.bufferedRequest = r, t.bufferProcessing = !1; } s(d6, "clearBuffer"); Sr.prototype._write = function(e, t, r) { r(new Error("_write() is not implemented")); }; Sr.prototype._writev = null; Sr.prototype.end = function(e, t, r) { var i = this._writableState; typeof e == "function" ? (r = e, e = null, t = null) : typeof t == "function" && (r = t, t = null), e != null && this.write(e, t), i.corked && (i.corked = 1, this.uncork()), i.ending || kne(this, i, r); }; function p6(e) { return e.ending && e.length === 0 && e.bufferedRequest === null && !e.finished && !e.writing; } s(p6, "needFinish"); function Ine(e, t) { e._final(function(r) { t.pendingcb--, r && e.emit("error", r), t.prefinished = !0, e.emit("prefinish"), Mf(e, t); }); } s(Ine, "callFinal"); function One(e, t) { !t.prefinished && !t.finalCalled && (typeof e._final == "function" ? (t.pendingcb++, t.finalCalled = !0, Po.nextTick(Ine, e, t)) : (t.prefinished = !0, e.emit("prefinish"))); } s(One, "prefinish"); function Mf(e, t) { var r = p6(t); return r && (One(e, t), t.pendingcb === 0 && (t.finished = !0, e.emit("finish"))), r; } s(Mf, "finishMaybe"); function kne(e, t, r) { t.ending = !0, Mf(e, t), r && (t.finished ? Po.nextTick(r) : e.once("finish", r)), t.ended = !0, e.writable = !1; } s(kne, "endWritable"); function Bne(e, t, r) { var i = e.entry; for (e.entry = null; i; ) { var n = i.callback; t.pendingcb--, n(r), i = i.next; } t.corkedRequestsFree.next = e; } s(Bne, "onCorkedFinish"); Object.defineProperty(Sr.prototype, "destroyed", { get: /* @__PURE__ */ s(function() { return this._writableState === void 0 ? !1 : this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ s(function(e) { this._writableState && (this._writableState.destroyed = e); }, "set") }); Sr.prototype.destroy = f6.destroy; Sr.prototype._undestroy = f6.undestroy; Sr.prototype._destroy = function(e, t) { this.end(), t(e); }; }); // ../node_modules/pumpify/node_modules/readable-stream/lib/_stream_duplex.js var Fo = E((rrt, b6) => { "use strict"; var m6 = Ii(), Nne = Object.keys || function(e) { var t = []; for (var r in e) t.push(r); return t; }; b6.exports = ks; var y6 = Object.create(Ar()); y6.inherits = jt(); var g6 = nx(), ix = tx(); y6.inherits(ks, g6); for (rx = Nne(ix.prototype), _m = 0; _m < rx.length; _m++) Pm = rx[_m], ks.prototype[Pm] || (ks.prototype[Pm] = ix.prototype[Pm]); var rx, Pm, _m; function ks(e) { if (!(this instanceof ks)) return new ks(e); g6.call(this, e), ix.call(this, e), e && e.readable === !1 && (this.readable = !1), e && e.writable === !1 && (this.writable = !1), this. allowHalfOpen = !0, e && e.allowHalfOpen === !1 && (this.allowHalfOpen = !1), this.once("end", Mne); } s(ks, "Duplex"); Object.defineProperty(ks.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._writableState.highWaterMark; }, "get") }); function Mne() { this.allowHalfOpen || this._writableState.ended || m6.nextTick(Rne, this); } s(Mne, "onend"); function Rne(e) { e.end(); } s(Rne, "onEndNT"); Object.defineProperty(ks.prototype, "destroyed", { get: /* @__PURE__ */ s(function() { return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ s(function(e) { this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = e, this._writableState.destroyed = e); }, "set") }); ks.prototype._destroy = function(e, t) { this.push(null), this.end(), m6.nextTick(t, e); }; }); // ../node_modules/pumpify/node_modules/readable-stream/lib/_stream_readable.js var nx = E((srt, F6) => { "use strict"; var Dl = Ii(); F6.exports = zt; var jne = e6(), jf; zt.ReadableState = C6; var nrt = require("events").EventEmitter, x6 = /* @__PURE__ */ s(function(e, t) { return e.listeners(t).length; }, "EElistenerCount"), lx = XE(), Lf = Sm().Buffer, Lne = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function qne(e) { return Lf.from(e); } s(qne, "_uint8ArrayToBuffer"); function Une(e) { return Lf.isBuffer(e) || e instanceof Lne; } s(Une, "_isUint8Array"); var S6 = Object.create(Ar()); S6.inherits = jt(); var sx = require("util"), _t = void 0; sx && sx.debuglog ? _t = sx.debuglog("stream") : _t = /* @__PURE__ */ s(function() { }, "debug"); var Wne = s6(), T6 = QE(), bl; S6.inherits(zt, lx); var ax = ["error", "close", "destroy", "pause", "resume"]; function $ne(e, t, r) { if (typeof e.prependListener == "function") return e.prependListener(t, r); !e._events || !e._events[t] ? e.on(t, r) : jne(e._events[t]) ? e._events[t].unshift(r) : e._events[t] = [r, e._events[t]]; } s($ne, "prependListener"); function C6(e, t) { jf = jf || Fo(), e = e || {}; var r = t instanceof jf; this.objectMode = !!e.objectMode, r && (this.objectMode = this.objectMode || !!e.readableObjectMode); var i = e.highWaterMark, n = e.readableHighWaterMark, a = this.objectMode ? 16 : 16 * 1024; i || i === 0 ? this.highWaterMark = i : r && (n || n === 0) ? this.highWaterMark = n : this.highWaterMark = a, this.highWaterMark = Math. floor(this.highWaterMark), this.buffer = new Wne(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.destroyed = !1, this.defaultEncoding = e.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, e.encoding && (bl || (bl = require("string_decoder/").StringDecoder), this.decoder = new bl( e.encoding), this.encoding = e.encoding); } s(C6, "ReadableState"); function zt(e) { if (jf = jf || Fo(), !(this instanceof zt)) return new zt(e); this._readableState = new C6(e, this), this.readable = !0, e && (typeof e.read == "function" && (this._read = e.read), typeof e.destroy == "function" && (this._destroy = e.destroy)), lx.call(this); } s(zt, "Readable"); Object.defineProperty(zt.prototype, "destroyed", { get: /* @__PURE__ */ s(function() { return this._readableState === void 0 ? !1 : this._readableState.destroyed; }, "get"), set: /* @__PURE__ */ s(function(e) { this._readableState && (this._readableState.destroyed = e); }, "set") }); zt.prototype.destroy = T6.destroy; zt.prototype._undestroy = T6.undestroy; zt.prototype._destroy = function(e, t) { this.push(null), t(e); }; zt.prototype.push = function(e, t) { var r = this._readableState, i; return r.objectMode ? i = !0 : typeof e == "string" && (t = t || r.defaultEncoding, t !== r.encoding && (e = Lf.from(e, t), t = ""), i = !0), w6(this, e, t, !1, i); }; zt.prototype.unshift = function(e) { return w6(this, e, null, !0, !1); }; function w6(e, t, r, i, n) { var a = e._readableState; if (t === null) a.reading = !1, zne(e, a); else { var o; n || (o = Vne(a, t)), o ? e.emit("error", o) : a.objectMode || t && t.length > 0 ? (typeof t != "string" && !a.objectMode && Object.getPrototypeOf( t) !== Lf.prototype && (t = qne(t)), i ? a.endEmitted ? e.emit("error", new Error("stream.unshift() after end event")) : ox(e, a, t, !0) : a.ended ? e.emit("error", new Error("stream.push() after EOF")) : (a.reading = !1, a.decoder && !r ? (t = a.decoder.write(t), a.objectMode || t.length !== 0 ? ox(e, a, t, !1) : A6(e, a)) : ox(e, a, t, !1))) : i || (a.reading = !1); } return Hne(a); } s(w6, "readableAddChunk"); function ox(e, t, r, i) { t.flowing && t.length === 0 && !t.sync ? (e.emit("data", r), e.read(0)) : (t.length += t.objectMode ? 1 : r.length, i ? t.buffer.unshift( r) : t.buffer.push(r), t.needReadable && Fm(e)), A6(e, t); } s(ox, "addChunk"); function Vne(e, t) { var r; return !Une(t) && typeof t != "string" && t !== void 0 && !e.objectMode && (r = new TypeError("Invalid non-string/buffer chunk")), r; } s(Vne, "chunkInvalid"); function Hne(e) { return !e.ended && (e.needReadable || e.length < e.highWaterMark || e.length === 0); } s(Hne, "needMoreData"); zt.prototype.isPaused = function() { return this._readableState.flowing === !1; }; zt.prototype.setEncoding = function(e) { return bl || (bl = require("string_decoder/").StringDecoder), this._readableState.decoder = new bl(e), this._readableState.encoding = e, this; }; var D6 = 8388608; function Kne(e) { return e >= D6 ? e = D6 : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e; } s(Kne, "computeNewHighWaterMark"); function v6(e, t) { return e <= 0 || t.length === 0 && t.ended ? 0 : t.objectMode ? 1 : e !== e ? t.flowing && t.length ? t.buffer.head.data.length : t.length : (e > t.highWaterMark && (t.highWaterMark = Kne(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0)); } s(v6, "howMuchToRead"); zt.prototype.read = function(e) { _t("read", e), e = parseInt(e, 10); var t = this._readableState, r = e; if (e !== 0 && (t.emittedReadable = !1), e === 0 && t.needReadable && (t.length >= t.highWaterMark || t.ended)) return _t("read: emitReadable", t.length, t.ended), t.length === 0 && t.ended ? ux(this) : Fm(this), null; if (e = v6(e, t), e === 0 && t.ended) return t.length === 0 && ux(this), null; var i = t.needReadable; _t("need readable", i), (t.length === 0 || t.length - e < t.highWaterMark) && (i = !0, _t("length less than watermark", i)), t.ended || t. reading ? (i = !1, _t("reading or ended", i)) : i && (_t("do read"), t.reading = !0, t.sync = !0, t.length === 0 && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = v6(r, t))); var n; return e > 0 ? n = _6(e, t) : n = null, n === null ? (t.needReadable = !0, e = 0) : t.length -= e, t.length === 0 && (t.ended || (t.needReadable = !0), r !== e && t.ended && ux(this)), n !== null && this.emit("data", n), n; }; function zne(e, t) { if (!t.ended) { if (t.decoder) { var r = t.decoder.end(); r && r.length && (t.buffer.push(r), t.length += t.objectMode ? 1 : r.length); } t.ended = !0, Fm(e); } } s(zne, "onEofChunk"); function Fm(e) { var t = e._readableState; t.needReadable = !1, t.emittedReadable || (_t("emitReadable", t.flowing), t.emittedReadable = !0, t.sync ? Dl.nextTick(E6, e) : E6(e)); } s(Fm, "emitReadable"); function E6(e) { _t("emit readable"), e.emit("readable"), cx(e); } s(E6, "emitReadable_"); function A6(e, t) { t.readingMore || (t.readingMore = !0, Dl.nextTick(Gne, e, t)); } s(A6, "maybeReadMore"); function Gne(e, t) { for (var r = t.length; !t.reading && !t.flowing && !t.ended && t.length < t.highWaterMark && (_t("maybeReadMore read 0"), e.read(0), r !== t.length); ) r = t.length; t.readingMore = !1; } s(Gne, "maybeReadMore_"); zt.prototype._read = function(e) { this.emit("error", new Error("_read() is not implemented")); }; zt.prototype.pipe = function(e, t) { var r = this, i = this._readableState; switch (i.pipesCount) { case 0: i.pipes = e; break; case 1: i.pipes = [i.pipes, e]; break; default: i.pipes.push(e); break; } i.pipesCount += 1, _t("pipe count=%d opts=%j", i.pipesCount, t); var n = (!t || t.end !== !1) && e !== process.stdout && e !== process.stderr, a = n ? u : g; i.endEmitted ? Dl.nextTick(a) : r.once("end", a), e.on("unpipe", o); function o(b, D) { _t("onunpipe"), b === r && D && D.hasUnpiped === !1 && (D.hasUnpiped = !0, f()); } s(o, "onunpipe"); function u() { _t("onend"), e.end(); } s(u, "onend"); var l = Jne(r); e.on("drain", l); var c = !1; function f() { _t("cleanup"), e.removeListener("close", y), e.removeListener("finish", p), e.removeListener("drain", l), e.removeListener("error", d), e.removeListener("unpipe", o), r.removeListener("end", u), r.removeListener("end", g), r.removeListener("data", h), c = !0, i.awaitDrain && (!e._writableState || e._writableState.needDrain) && l(); } s(f, "cleanup"); var m = !1; r.on("data", h); function h(b) { _t("ondata"), m = !1; var D = e.write(b); D === !1 && !m && ((i.pipesCount === 1 && i.pipes === e || i.pipesCount > 1 && P6(i.pipes, e) !== -1) && !c && (_t("false write respon\ se, pause", i.awaitDrain), i.awaitDrain++, m = !0), r.pause()); } s(h, "ondata"); function d(b) { _t("onerror", b), g(), e.removeListener("error", d), x6(e, "error") === 0 && e.emit("error", b); } s(d, "onerror"), $ne(e, "error", d); function y() { e.removeListener("finish", p), g(); } s(y, "onclose"), e.once("close", y); function p() { _t("onfinish"), e.removeListener("close", y), g(); } s(p, "onfinish"), e.once("finish", p); function g() { _t("unpipe"), r.unpipe(e); } return s(g, "unpipe"), e.emit("pipe", r), i.flowing || (_t("pipe resume"), r.resume()), e; }; function Jne(e) { return function() { var t = e._readableState; _t("pipeOnDrain", t.awaitDrain), t.awaitDrain && t.awaitDrain--, t.awaitDrain === 0 && x6(e, "data") && (t.flowing = !0, cx(e)); }; } s(Jne, "pipeOnDrain"); zt.prototype.unpipe = function(e) { var t = this._readableState, r = { hasUnpiped: !1 }; if (t.pipesCount === 0) return this; if (t.pipesCount === 1) return e && e !== t.pipes ? this : (e || (e = t.pipes), t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this, r), this); if (!e) { var i = t.pipes, n = t.pipesCount; t.pipes = null, t.pipesCount = 0, t.flowing = !1; for (var a = 0; a < n; a++) i[a].emit("unpipe", this, { hasUnpiped: !1 }); return this; } var o = P6(t.pipes, e); return o === -1 ? this : (t.pipes.splice(o, 1), t.pipesCount -= 1, t.pipesCount === 1 && (t.pipes = t.pipes[0]), e.emit("unpipe", this, r), this); }; zt.prototype.on = function(e, t) { var r = lx.prototype.on.call(this, e, t); if (e === "data") this._readableState.flowing !== !1 && this.resume(); else if (e === "readable") { var i = this._readableState; !i.endEmitted && !i.readableListening && (i.readableListening = i.needReadable = !0, i.emittedReadable = !1, i.reading ? i.length && Fm( this) : Dl.nextTick(Xne, this)); } return r; }; zt.prototype.addListener = zt.prototype.on; function Xne(e) { _t("readable nexttick read 0"), e.read(0); } s(Xne, "nReadingNextTick"); zt.prototype.resume = function() { var e = this._readableState; return e.flowing || (_t("resume"), e.flowing = !0, Yne(this, e)), this; }; function Yne(e, t) { t.resumeScheduled || (t.resumeScheduled = !0, Dl.nextTick(Zne, e, t)); } s(Yne, "resume"); function Zne(e, t) { t.reading || (_t("resume read 0"), e.read(0)), t.resumeScheduled = !1, t.awaitDrain = 0, e.emit("resume"), cx(e), t.flowing && !t.reading && e.read(0); } s(Zne, "resume_"); zt.prototype.pause = function() { return _t("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (_t("pause"), this._readableState. flowing = !1, this.emit("pause")), this; }; function cx(e) { var t = e._readableState; for (_t("flow", t.flowing); t.flowing && e.read() !== null; ) ; } s(cx, "flow"); zt.prototype.wrap = function(e) { var t = this, r = this._readableState, i = !1; e.on("end", function() { if (_t("wrapped end"), r.decoder && !r.ended) { var o = r.decoder.end(); o && o.length && t.push(o); } t.push(null); }), e.on("data", function(o) { if (_t("wrapped data"), r.decoder && (o = r.decoder.write(o)), !(r.objectMode && o == null) && !(!r.objectMode && (!o || !o.length))) { var u = t.push(o); u || (i = !0, e.pause()); } }); for (var n in e) this[n] === void 0 && typeof e[n] == "function" && (this[n] = /* @__PURE__ */ function(o) { return function() { return e[o].apply(e, arguments); }; }(n)); for (var a = 0; a < ax.length; a++) e.on(ax[a], this.emit.bind(this, ax[a])); return this._read = function(o) { _t("wrapped _read", o), i && (i = !1, e.resume()); }, this; }; Object.defineProperty(zt.prototype, "readableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ s(function() { return this._readableState.highWaterMark; }, "get") }); zt._fromList = _6; function _6(e, t) { if (t.length === 0) return null; var r; return t.objectMode ? r = t.buffer.shift() : !e || e >= t.length ? (t.decoder ? r = t.buffer.join("") : t.buffer.length === 1 ? r = t.buffer. head.data : r = t.buffer.concat(t.length), t.buffer.clear()) : r = Qne(e, t.buffer, t.decoder), r; } s(_6, "fromList"); function Qne(e, t, r) { var i; return e < t.head.data.length ? (i = t.head.data.slice(0, e), t.head.data = t.head.data.slice(e)) : e === t.head.data.length ? i = t.shift() : i = r ? ese(e, t) : tse(e, t), i; } s(Qne, "fromListPartial"); function ese(e, t) { var r = t.head, i = 1, n = r.data; for (e -= n.length; r = r.next; ) { var a = r.data, o = e > a.length ? a.length : e; if (o === a.length ? n += a : n += a.slice(0, e), e -= o, e === 0) { o === a.length ? (++i, r.next ? t.head = r.next : t.head = t.tail = null) : (t.head = r, r.data = a.slice(o)); break; } ++i; } return t.length -= i, n; } s(ese, "copyFromBufferString"); function tse(e, t) { var r = Lf.allocUnsafe(e), i = t.head, n = 1; for (i.data.copy(r), e -= i.data.length; i = i.next; ) { var a = i.data, o = e > a.length ? a.length : e; if (a.copy(r, r.length - e, 0, o), e -= o, e === 0) { o === a.length ? (++n, i.next ? t.head = i.next : t.head = t.tail = null) : (t.head = i, i.data = a.slice(o)); break; } ++n; } return t.length -= n, r; } s(tse, "copyFromBuffer"); function ux(e) { var t = e._readableState; if (t.length > 0) throw new Error('"endReadable()" called on non-empty stream'); t.endEmitted || (t.ended = !0, Dl.nextTick(rse, t, e)); } s(ux, "endReadable"); function rse(e, t) { !e.endEmitted && e.length === 0 && (e.endEmitted = !0, t.readable = !1, t.emit("end")); } s(rse, "endReadableNT"); function P6(e, t) { for (var r = 0, i = e.length; r < i; r++) if (e[r] === t) return r; return -1; } s(P6, "indexOf"); }); // ../node_modules/pumpify/node_modules/readable-stream/lib/_stream_transform.js var fx = E((ort, k6) => { "use strict"; k6.exports = Bs; var Im = Fo(), O6 = Object.create(Ar()); O6.inherits = jt(); O6.inherits(Bs, Im); function ise(e, t) { var r = this._transformState; r.transforming = !1; var i = r.writecb; if (!i) return this.emit("error", new Error("write callback called multiple times")); r.writechunk = null, r.writecb = null, t != null && this.push(t), i(e); var n = this._readableState; n.reading = !1, (n.needReadable || n.length < n.highWaterMark) && this._read(n.highWaterMark); } s(ise, "afterTransform"); function Bs(e) { if (!(this instanceof Bs)) return new Bs(e); Im.call(this, e), this._transformState = { afterTransform: ise.bind(this), needTransform: !1, transforming: !1, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e. transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", nse); } s(Bs, "Transform"); function nse() { var e = this; typeof this._flush == "function" ? this._flush(function(t, r) { I6(e, t, r); }) : I6(this, null, null); } s(nse, "prefinish"); Bs.prototype.push = function(e, t) { return this._transformState.needTransform = !1, Im.prototype.push.call(this, e, t); }; Bs.prototype._transform = function(e, t, r) { throw new Error("_transform() is not implemented"); }; Bs.prototype._write = function(e, t, r) { var i = this._transformState; if (i.writecb = r, i.writechunk = e, i.writeencoding = t, !i.transforming) { var n = this._readableState; (i.needTransform || n.needReadable || n.length < n.highWaterMark) && this._read(n.highWaterMark); } }; Bs.prototype._read = function(e) { var t = this._transformState; t.writechunk !== null && t.writecb && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0; }; Bs.prototype._destroy = function(e, t) { var r = this; Im.prototype._destroy.call(this, e, function(i) { t(i), r.emit("close"); }); }; function I6(e, t, r) { if (t) return e.emit("error", t); if (r != null && e.push(r), e._writableState.length) throw new Error("Calling transform done when ws.length != 0"); if (e._transformState.transforming) throw new Error("Calling transform done when still transforming"); return e.push(null); } s(I6, "done"); }); // ../node_modules/pumpify/node_modules/readable-stream/lib/_stream_passthrough.js var R6 = E((lrt, M6) => { "use strict"; M6.exports = qf; var B6 = fx(), N6 = Object.create(Ar()); N6.inherits = jt(); N6.inherits(qf, B6); function qf(e) { if (!(this instanceof qf)) return new qf(e); B6.call(this, e); } s(qf, "PassThrough"); qf.prototype._transform = function(e, t, r) { r(null, e); }; }); // ../node_modules/pumpify/node_modules/readable-stream/readable.js var j6 = E(($r, Om) => { var Gn = require("stream"); process.env.READABLE_STREAM === "disable" && Gn ? (Om.exports = Gn, $r = Om.exports = Gn.Readable, $r.Readable = Gn.Readable, $r.Writable = Gn.Writable, $r.Duplex = Gn.Duplex, $r.Transform = Gn.Transform, $r.PassThrough = Gn.PassThrough, $r.Stream = Gn) : ($r = Om.exports = nx(), $r.Stream = Gn || $r, $r.Readable = $r, $r.Writable = tx(), $r.Duplex = Fo(), $r.Transform = fx(), $r.PassThrough = R6()); }); // ../node_modules/pumpify/node_modules/duplexify/index.js var $6 = E((frt, W6) => { var km = j6(), L6 = Xu(), sse = jt(), ase = _E(), q6 = Buffer.from && Buffer.from !== Uint8Array.from ? Buffer.from([0]) : new Buffer([0]), dx = /* @__PURE__ */ s(function(e, t) { e._corked ? e.once("uncork", t) : t(); }, "onuncork"), ose = /* @__PURE__ */ s(function(e, t) { e._autoDestroy && e.destroy(t); }, "autoDestroy"), U6 = /* @__PURE__ */ s(function(e, t) { return function(r) { r ? ose(e, r.message === "premature close" ? null : r) : t && !e._ended && e.end(); }; }, "destroyer"), use = /* @__PURE__ */ s(function(e, t) { if (!e || e._writableState && e._writableState.finished) return t(); if (e._writableState) return e.end(t); e.end(), t(); }, "end"), lse = /* @__PURE__ */ s(function(e) { return new km.Readable({ objectMode: !0, highWaterMark: 16 }).wrap(e); }, "toStreams2"), Vr = /* @__PURE__ */ s(function(e, t, r) { if (!(this instanceof Vr)) return new Vr(e, t, r); km.Duplex.call(this, r), this._writable = null, this._readable = null, this._readable2 = null, this._autoDestroy = !r || r.autoDestroy !== !1, this._forwardDestroy = !r || r.destroy !== !1, this._forwardEnd = !r || r.end !== !1, this._corked = 1, this._ondrain = null, this._drained = !1, this._forwarding = !1, this._unwrite = null, this._unread = null, this._ended = !1, this.destroyed = !1, e && this.setWritable(e), t && this.setReadable(t); }, "Duplexify"); sse(Vr, km.Duplex); Vr.obj = function(e, t, r) { return r || (r = {}), r.objectMode = !0, r.highWaterMark = 16, new Vr(e, t, r); }; Vr.prototype.cork = function() { ++this._corked === 1 && this.emit("cork"); }; Vr.prototype.uncork = function() { this._corked && --this._corked === 0 && this.emit("uncork"); }; Vr.prototype.setWritable = function(e) { if (this._unwrite && this._unwrite(), this.destroyed) { e && e.destroy && e.destroy(); return; } if (e === null || e === !1) { this.end(); return; } var t = this, r = L6(e, { writable: !0, readable: !1 }, U6(this, this._forwardEnd)), i = /* @__PURE__ */ s(function() { var a = t._ondrain; t._ondrain = null, a && a(); }, "ondrain"), n = /* @__PURE__ */ s(function() { t._writable.removeListener("drain", i), r(); }, "clear"); this._unwrite && process.nextTick(i), this._writable = e, this._writable.on("drain", i), this._unwrite = n, this.uncork(); }; Vr.prototype.setReadable = function(e) { if (this._unread && this._unread(), this.destroyed) { e && e.destroy && e.destroy(); return; } if (e === null || e === !1) { this.push(null), this.resume(); return; } var t = this, r = L6(e, { writable: !1, readable: !0 }, U6(this)), i = /* @__PURE__ */ s(function() { t._forward(); }, "onreadable"), n = /* @__PURE__ */ s(function() { t.push(null); }, "onend"), a = /* @__PURE__ */ s(function() { t._readable2.removeListener("readable", i), t._readable2.removeListener("end", n), r(); }, "clear"); this._drained = !0, this._readable = e, this._readable2 = e._readableState ? e : lse(e), this._readable2.on("readable", i), this._readable2. on("end", n), this._unread = a, this._forward(); }; Vr.prototype._read = function() { this._drained = !0, this._forward(); }; Vr.prototype._forward = function() { if (!(this._forwarding || !this._readable2 || !this._drained)) { this._forwarding = !0; for (var e; this._drained && (e = ase(this._readable2)) !== null; ) this.destroyed || (this._drained = this.push(e)); this._forwarding = !1; } }; Vr.prototype.destroy = function(e) { if (!this.destroyed) { this.destroyed = !0; var t = this; process.nextTick(function() { t._destroy(e); }); } }; Vr.prototype._destroy = function(e) { if (e) { var t = this._ondrain; this._ondrain = null, t ? t(e) : this.emit("error", e); } this._forwardDestroy && (this._readable && this._readable.destroy && this._readable.destroy(), this._writable && this._writable.destroy && this._writable.destroy()), this.emit("close"); }; Vr.prototype._write = function(e, t, r) { if (this.destroyed) return r(); if (this._corked) return dx(this, this._write.bind(this, e, t, r)); if (e === q6) return this._finish(r); if (!this._writable) return r(); this._writable.write(e) === !1 ? this._ondrain = r : r(); }; Vr.prototype._finish = function(e) { var t = this; this.emit("preend"), dx(this, function() { use(t._forwardEnd && t._writable, function() { t._writableState.prefinished === !1 && (t._writableState.prefinished = !0), t.emit("prefinish"), dx(t, e); }); }); }; Vr.prototype.end = function(e, t, r) { return typeof e == "function" ? this.end(null, null, e) : typeof t == "function" ? this.end(e, null, t) : (this._ended = !0, e && this.write( e), this._writableState.ending || this.write(q6), km.Writable.prototype.end.call(this, r)); }; W6.exports = Vr; }); // ../node_modules/pumpify/index.js var K6 = E((prt, Bm) => { var cse = Z8(), fse = jt(), V6 = $6(), H6 = /* @__PURE__ */ s(function(e) { return e.length ? Array.isArray(e[0]) ? e[0] : Array.prototype.slice.call(e) : []; }, "toArray"), px = /* @__PURE__ */ s(function(e) { var t = /* @__PURE__ */ s(function() { var r = H6(arguments); if (!(this instanceof t)) return new t(r); V6.call(this, null, null, e), r.length && this.setPipeline(r); }, "Pumpify"); return fse(t, V6), t.prototype.setPipeline = function() { var r = H6(arguments), i = this, n = !1, a = r[0], o = r[r.length - 1]; o = o.readable ? o : null, a = a.writable ? a : null; var u = /* @__PURE__ */ s(function() { r[0].emit("error", new Error("stream was destroyed")); }, "onclose"); if (this.on("close", u), this.on("prefinish", function() { n || i.cork(); }), cse(r, function(l) { if (i.removeListener("close", u), l) return i.destroy(l.message === "premature close" ? null : l); n = !0, i._autoDestroy === !1 && (i._autoDestroy = !0), i.uncork(); }), this.destroyed) return u(); this.setWritable(a), this.setReadable(o); }, t; }, "define"); Bm.exports = px({ autoDestroy: !1, destroy: !1 }); Bm.exports.obj = px({ autoDestroy: !1, destroy: !1, objectMode: !0, highWaterMark: 16 }); Bm.exports.ctor = px; }); // ../node_modules/is-gzip/index.js var G6 = E((mrt, z6) => { "use strict"; z6.exports = function(e) { return !e || e.length < 3 ? !1 : e[0] === 31 && e[1] === 139 && e[2] === 8; }; }); // ../node_modules/is-deflate/index.js var X6 = E((yrt, J6) => { "use strict"; J6.exports = function(e) { return !e || e.length < 2 ? !1 : e[0] === 120 && (e[1] === 1 || e[1] === 156 || e[1] === 218); }; }); // ../node_modules/gunzip-maybe/index.js var e4 = E((grt, Q6) => { var Y6 = require("zlib"), dse = J8(), pse = zE(), Z6 = K6(), hse = G6(), mse = X6(), yse = /* @__PURE__ */ s(function(e) { return hse(e) ? 1 : mse(e) ? 2 : 0; }, "isCompressed"), hx = /* @__PURE__ */ s(function(e) { return e === void 0 && (e = 3), dse({ newline: !1, maxBuffer: 10 }, function(t, r) { if (e < 0) return r(new Error("Maximum recursion reached")); switch (yse(t)) { case 1: r(null, Z6(Y6.createGunzip(), hx(e - 1))); break; case 2: r(null, Z6(Y6.createInflate(), hx(e - 1))); break; default: r(null, pse()); } }); }, "gunzip"); Q6.exports = hx; }); // ../node_modules/@ndelangen/get-tarball/dist/index.js var J4 = E((Ert, G4) => { "use strict"; var gse = Object.create, Hm = Object.defineProperty, bse = Object.getOwnPropertyDescriptor, C4 = Object.getOwnPropertyNames, Dse = Object. getPrototypeOf, vse = Object.prototype.hasOwnProperty, vt = /* @__PURE__ */ s((e, t) => /* @__PURE__ */ s(function() { return t || (0, e[C4(e)[0]])((t = { exports: {} }).exports, t), t.exports; }, "__require"), "__commonJS"), Ese = /* @__PURE__ */ s((e, t) => { for (var r in t) Hm(e, r, { get: t[r], enumerable: !0 }); }, "__export"), w4 = /* @__PURE__ */ s((e, t, r, i) => { if (t && typeof t == "object" || typeof t == "function") for (let n of C4(t)) !vse.call(e, n) && n !== r && Hm(e, n, { get: /* @__PURE__ */ s(() => t[n], "get"), enumerable: !(i = bse(t, n)) || i.enumerable }); return e; }, "__copyProps"), Tr = /* @__PURE__ */ s((e, t, r) => (r = e != null ? gse(Dse(e)) : {}, w4( // 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. t || !e || !e.__esModule ? Hm(r, "default", { value: e, enumerable: !0 }) : r, e )), "__toESM"), xse = /* @__PURE__ */ s((e) => w4(Hm({}, "__esModule", { value: !0 }), e), "__toCommonJS"), Sse = vt({ "node_modules/.pnpm/defer-to-connect@2.0.1/node_modules/defer-to-connect/dist/source/index.js"(e, t) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); function r(n) { return n.encrypted; } s(r, "isTLSSocket"); var i = /* @__PURE__ */ s((n, a) => { let o; typeof a == "function" ? o = { connect: a } : o = a; let u = typeof o.connect == "function", l = typeof o.secureConnect == "function", c = typeof o.close == "function", f = /* @__PURE__ */ s( () => { u && o.connect(), r(n) && l && (n.authorized ? o.secureConnect() : n.authorizationError || n.once("secureConnect", o.secureConnect)), c && n.once("close", o.close); }, "onConnect"); n.writable && !n.connecting ? f() : n.connecting ? n.once("connect", f) : n.destroyed && c && o.close(n._hadError); }, "deferToConnect2"); e.default = i, t.exports = i, t.exports.default = i; } }), Tse = vt({ "node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(e, t) { "use strict"; var { PassThrough: r } = require("stream"); t.exports = (i) => { i = { ...i }; let { array: n } = i, { encoding: a } = i, o = a === "buffer", u = !1; n ? u = !(a || o) : a = a || "utf8", o && (a = null); let l = new r({ objectMode: u }); a && l.setEncoding(a); let c = 0, f = []; return l.on("data", (m) => { f.push(m), u ? c = f.length : c += m.length; }), l.getBufferedValue = () => n ? f : o ? Buffer.concat(f, c) : f.join(""), l.getBufferedLength = () => c, l; }; } }), A4 = vt({ "node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(e, t) { "use strict"; var { constants: r } = require("buffer"), i = require("stream"), { promisify: n } = require("util"), a = Tse(), o = n(i.pipeline), u = class extends Error { static { s(this, "MaxBufferError"); } constructor() { super("maxBuffer exceeded"), this.name = "MaxBufferError"; } }; async function l(c, f) { if (!c) throw new Error("Expected a stream"); f = { maxBuffer: 1 / 0, ...f }; let { maxBuffer: m } = f, h = a(f); return await new Promise((d, y) => { let p = /* @__PURE__ */ s((g) => { g && h.getBufferedLength() <= r.MAX_LENGTH && (g.bufferedData = h.getBufferedValue()), y(g); }, "rejectPromise"); (async () => { try { await o(c, h), d(); } catch (g) { p(g); } })(), h.on("data", () => { h.getBufferedLength() > m && p(new u()); }); }), h.getBufferedValue(); } s(l, "getStream2"), t.exports = l, t.exports.buffer = (c, f) => l(c, { ...f, encoding: "buffer" }), t.exports.array = (c, f) => l(c, { ...f, array: !0 }), t.exports.MaxBufferError = u; } }), Cse = vt({ "node_modules/.pnpm/http-cache-semantics@4.1.1/node_modules/http-cache-semantics/index.js"(e, t) { "use strict"; var r = /* @__PURE__ */ new Set([ 200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414, 501 ]), i = /* @__PURE__ */ new Set([ 200, 203, 204, 300, 301, 302, 303, 307, 308, 404, 405, 410, 414, 501 ]), n = /* @__PURE__ */ new Set([ 500, 502, 503, 504 ]), a = { date: !0, // included, because we add Age update Date connection: !0, "keep-alive": !0, "proxy-authenticate": !0, "proxy-authorization": !0, te: !0, trailer: !0, "transfer-encoding": !0, upgrade: !0 }, o = { // Since the old body is reused, it doesn't make sense to change properties of the body "content-length": !0, "content-encoding": !0, "transfer-encoding": !0, "content-range": !0 }; function u(m) { let h = parseInt(m, 10); return isFinite(h) ? h : 0; } s(u, "toNumberOrZero"); function l(m) { return m ? n.has(m.status) : !0; } s(l, "isErrorResponse"); function c(m) { let h = {}; if (!m) return h; let d = m.trim().split(/,/); for (let y of d) { let [p, g] = y.split(/=/, 2); h[p.trim()] = g === void 0 ? !0 : g.trim().replace(/^"|"$/g, ""); } return h; } s(c, "parseCacheControl"); function f(m) { let h = []; for (let d in m) { let y = m[d]; h.push(y === !0 ? d : d + "=" + y); } if (h.length) return h.join(", "); } s(f, "formatCacheControl"), t.exports = class { static { s(this, "CachePolicy"); } constructor(h, d, { shared: y, cacheHeuristic: p, immutableMinTimeToLive: g, ignoreCargoCult: b, _fromObject: D } = {}) { if (D) { this._fromObject(D); return; } if (!d || !d.headers) throw Error("Response headers missing"); this._assertRequestHasHeaders(h), this._responseTime = this.now(), this._isShared = y !== !1, this._cacheHeuristic = p !== void 0 ? p : 0.1, this._immutableMinTtl = g !== void 0 ? g : 24 * 3600 * 1e3, this._status = "status" in d ? d.status : 200, this._resHeaders = d.headers, this._rescc = c(d.headers["cache-control"]), this._method = "method" in h ? h.method : "GET", this._url = h.url, this._host = h.headers.host, this._noAuthorization = !h.headers.authorization, this._reqHeaders = d.headers.vary ? h.headers : null, this._reqcc = c(h.headers["cache-control"]), b && "pre-check" in this._rescc && "post-check" in this._rescc && (delete this._rescc["pre-check"], delete this._rescc["post-check"], delete this._rescc["no-cache"], delete this._rescc["no-store"], delete this._rescc["must-revalid\ ate"], this._resHeaders = Object.assign({}, this._resHeaders, { "cache-control": f(this._rescc) }), delete this._resHeaders.expires, delete this._resHeaders.pragma), d.headers["cache-control"] == null && /no-cache/.test(d.headers. pragma) && (this._rescc["no-cache"] = !0); } now() { return Date.now(); } storable() { return !!(!this._reqcc["no-store"] && // A cache MUST NOT store a response to any request, unless: // The request method is understood by the cache and defined as being cacheable, and (this._method === "GET" || this._method === "HEAD" || this._method === "POST" && this._hasExplicitExpiration()) && // the response status code is understood by the cache, and i.has(this._status) && // the "no-store" cache directive does not appear in request or response header fields, and !this._rescc["no-store"] && // the "private" response directive does not appear in the response, if the cache is shared, and (!this._isShared || !this._rescc.private) && // the Authorization header field does not appear in the request, if the cache is shared, (!this._isShared || this._noAuthorization || this._allowsStoringAuthenticated()) && // the response either: // contains an Expires header field, or (this._resHeaders.expires || // contains a max-age response directive, or // contains a s-maxage response directive and the cache is shared, or // contains a public response directive. this._rescc["max-age"] || this._isShared && this._rescc["s-maxage"] || this._rescc.public || // has a status code that is defined as cacheable by default r.has(this._status))); } _hasExplicitExpiration() { return this._isShared && this._rescc["s-maxage"] || this._rescc["max-age"] || this._resHeaders.expires; } _assertRequestHasHeaders(h) { if (!h || !h.headers) throw Error("Request headers missing"); } satisfiesWithoutRevalidation(h) { this._assertRequestHasHeaders(h); let d = c(h.headers["cache-control"]); return d["no-cache"] || /no-cache/.test(h.headers.pragma) || d["max-age"] && this.age() > d["max-age"] || d["min-fresh"] && this.timeToLive() < 1e3 * d["min-fresh"] || this.stale() && !(d["max-stale"] && !this._rescc["must-revalidate"] && (d["max-stale"] === !0 || d["max-st\ ale"] > this.age() - this.maxAge())) ? !1 : this._requestMatches(h, !1); } _requestMatches(h, d) { return (!this._url || this._url === h.url) && this._host === h.headers.host && // the request method associated with the stored response allows it to be used for the presented request, and (!h.method || this._method === h.method || d && h.method === "HEAD") && // selecting header fields nominated by the stored response (if any) match those presented, and this._varyMatches(h); } _allowsStoringAuthenticated() { return this._rescc["must-revalidate"] || this._rescc.public || this._rescc["s-maxage"]; } _varyMatches(h) { if (!this._resHeaders.vary) return !0; if (this._resHeaders.vary === "*") return !1; let d = this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/); for (let y of d) if (h.headers[y] !== this._reqHeaders[y]) return !1; return !0; } _copyWithoutHopByHopHeaders(h) { let d = {}; for (let y in h) a[y] || (d[y] = h[y]); if (h.connection) { let y = h.connection.trim().split(/\s*,\s*/); for (let p of y) delete d[p]; } if (d.warning) { let y = d.warning.split(/,/).filter((p) => !/^\s*1[0-9][0-9]/.test(p)); y.length ? d.warning = y.join(",").trim() : delete d.warning; } return d; } responseHeaders() { let h = this._copyWithoutHopByHopHeaders(this._resHeaders), d = this.age(); return d > 3600 * 24 && !this._hasExplicitExpiration() && this.maxAge() > 3600 * 24 && (h.warning = (h.warning ? `${h.warning}, ` : "") + '113 - "rfc7234 5.5.4"'), h.age = `${Math.round(d)}`, h.date = new Date(this.now()).toUTCString(), h; } /** * Value of the Date response header or current time if Date was invalid * @return timestamp */ date() { let h = Date.parse(this._resHeaders.date); return isFinite(h) ? h : this._responseTime; } /** * Value of the Age header, in seconds, updated for the current time. * May be fractional. * * @return Number */ age() { let h = this._ageValue(), d = (this.now() - this._responseTime) / 1e3; return h + d; } _ageValue() { return u(this._resHeaders.age); } /** * Value of applicable max-age (or heuristic equivalent) in seconds. This counts since response's `Date`. * * For an up-to-date value, see `timeToLive()`. * * @return Number */ maxAge() { if (!this.storable() || this._rescc["no-cache"] || this._isShared && this._resHeaders["set-cookie"] && !this._rescc.public && !this. _rescc.immutable || this._resHeaders.vary === "*") return 0; if (this._isShared) { if (this._rescc["proxy-revalidate"]) return 0; if (this._rescc["s-maxage"]) return u(this._rescc["s-maxage"]); } if (this._rescc["max-age"]) return u(this._rescc["max-age"]); let h = this._rescc.immutable ? this._immutableMinTtl : 0, d = this.date(); if (this._resHeaders.expires) { let y = Date.parse(this._resHeaders.expires); return Number.isNaN(y) || y < d ? 0 : Math.max(h, (y - d) / 1e3); } if (this._resHeaders["last-modified"]) { let y = Date.parse(this._resHeaders["last-modified"]); if (isFinite(y) && d > y) return Math.max( h, (d - y) / 1e3 * this._cacheHeuristic ); } return h; } timeToLive() { let h = this.maxAge() - this.age(), d = h + u(this._rescc["stale-if-error"]), y = h + u(this._rescc["stale-while-revalidate"]); return Math.max(0, h, d, y) * 1e3; } stale() { return this.maxAge() <= this.age(); } _useStaleIfError() { return this.maxAge() + u(this._rescc["stale-if-error"]) > this.age(); } useStaleWhileRevalidate() { return this.maxAge() + u(this._rescc["stale-while-revalidate"]) > this.age(); } static fromObject(h) { return new this(void 0, void 0, { _fromObject: h }); } _fromObject(h) { if (this._responseTime) throw Error("Reinitialized"); if (!h || h.v !== 1) throw Error("Invalid serialization"); this._responseTime = h.t, this._isShared = h.sh, this._cacheHeuristic = h.ch, this._immutableMinTtl = h.imm !== void 0 ? h.imm : 24 * 3600 * 1e3, this._status = h.st, this._resHeaders = h.resh, this._rescc = h.rescc, this._method = h.m, this._url = h.u, this._host = h.h, this._noAuthorization = h.a, this._reqHeaders = h.reqh, this._reqcc = h.reqcc; } toObject() { return { v: 1, t: this._responseTime, sh: this._isShared, ch: this._cacheHeuristic, imm: this._immutableMinTtl, st: this._status, resh: this._resHeaders, rescc: this._rescc, m: this._method, u: this._url, h: this._host, a: this._noAuthorization, reqh: this._reqHeaders, reqcc: this._reqcc }; } /** * Headers for sending to the origin server to revalidate stale response. * Allows server to return 304 to allow reuse of the previous response. * * Hop by hop headers are always stripped. * Revalidation headers may be added or removed, depending on request. */ revalidationHeaders(h) { this._assertRequestHasHeaders(h); let d = this._copyWithoutHopByHopHeaders(h.headers); if (delete d["if-range"], !this._requestMatches(h, !0) || !this.storable()) return delete d["if-none-match"], delete d["if-modified-since"], d; if (this._resHeaders.etag && (d["if-none-match"] = d["if-none-match"] ? `${d["if-none-match"]}, ${this._resHeaders.etag}` : this._resHeaders. etag), d["accept-ranges"] || d["if-match"] || d["if-unmodified-since"] || this._method && this._method != "GET") { if (delete d["if-modified-since"], d["if-none-match"]) { let p = d["if-none-match"].split(/,/).filter((g) => !/^\s*W\//.test(g)); p.length ? d["if-none-match"] = p.join(",").trim() : delete d["if-none-match"]; } } else this._resHeaders["last-modified"] && !d["if-modified-since"] && (d["if-modified-since"] = this._resHeaders["last-modified"]); return d; } /** * Creates new CachePolicy with information combined from the previews response, * and the new revalidation response. * * Returns {policy, modified} where modified is a boolean indicating * whether the response body has been modified, and old cached body can't be used. * * @return {Object} {policy: CachePolicy, modified: Boolean} */ revalidatedPolicy(h, d) { if (this._assertRequestHasHeaders(h), this._useStaleIfError() && l(d)) return { modified: !1, matches: !1, policy: this }; if (!d || !d.headers) throw Error("Response headers missing"); let y = !1; if (d.status !== void 0 && d.status != 304 ? y = !1 : d.headers.etag && !/^\s*W\//.test(d.headers.etag) ? y = this._resHeaders.etag && this._resHeaders.etag.replace(/^\s*W\//, "") === d.headers.etag : this._resHeaders.etag && d.headers.etag ? y = this._resHeaders.etag. replace(/^\s*W\//, "") === d.headers.etag.replace(/^\s*W\//, "") : this._resHeaders["last-modified"] ? y = this._resHeaders["last-\ modified"] === d.headers["last-modified"] : !this._resHeaders.etag && !this._resHeaders["last-modified"] && !d.headers.etag && !d.headers["l\ ast-modified"] && (y = !0), !y) return { policy: new this.constructor(h, d), // Client receiving 304 without body, even if it's invalid/mismatched has no option // but to reuse a cached body. We don't have a good way to tell clients to do // error recovery in such case. modified: d.status != 304, matches: !1 }; let p = {}; for (let b in this._resHeaders) p[b] = b in d.headers && !o[b] ? d.headers[b] : this._resHeaders[b]; let g = Object.assign({}, d, { status: this._status, method: this._method, headers: p }); return { policy: new this.constructor(h, g, { shared: this._isShared, cacheHeuristic: this._cacheHeuristic, immutableMinTimeToLive: this._immutableMinTtl }), modified: !1, matches: !0 }; } }; } }), wse = vt({ "node_modules/.pnpm/json-buffer@3.0.1/node_modules/json-buffer/index.js"(e) { e.stringify = /* @__PURE__ */ s(function t(r) { if (typeof r > "u") return r; if (r && Buffer.isBuffer(r)) return JSON.stringify(":base64:" + r.toString("base64")); if (r && r.toJSON && (r = r.toJSON()), r && typeof r == "object") { var i = "", n = Array.isArray(r); i = n ? "[" : "{"; var a = !0; for (var o in r) { var u = typeof r[o] == "function" || !n && typeof r[o] > "u"; Object.hasOwnProperty.call(r, o) && !u && (a || (i += ","), a = !1, n ? r[o] == null ? i += "null" : i += t(r[o]) : r[o] !== void 0 && (i += t(o) + ":" + t(r[o]))); } return i += n ? "]" : "}", i; } else return typeof r == "string" ? JSON.stringify(/^:/.test(r) ? ":" + r : r) : typeof r > "u" ? "null" : JSON.stringify(r); }, "stringify"), e.parse = function(t) { return JSON.parse(t, function(r, i) { return typeof i == "string" ? /^:base64:/.test(i) ? Buffer.from(i.substring(8), "base64") : /^:/.test(i) ? i.substring(1) : i : i; }); }; } }), Ase = vt({ "node_modules/.pnpm/keyv@4.5.2/node_modules/keyv/src/index.js"(e, t) { "use strict"; var r = require("events"), i = wse(), n = /* @__PURE__ */ s((u) => { let l = { redis: "@keyv/redis", rediss: "@keyv/redis", mongodb: "@keyv/mongo", mongo: "@keyv/mongo", sqlite: "@keyv/sqlite", postgresql: "@keyv/postgres", postgres: "@keyv/postgres", mysql: "@keyv/mysql", etcd: "@keyv/etcd", offline: "@keyv/offline", tiered: "@keyv/tiered" }; if (u.adapter || u.uri) { let c = u.adapter || /^[^:+]*/.exec(u.uri)[0]; return new (require(l[c]))(u); } return /* @__PURE__ */ new Map(); }, "loadStore"), a = [ "sqlite", "postgres", "mysql", "mongo", "redis", "tiered" ], o = class extends r { static { s(this, "Keyv2"); } constructor(u, { emitErrors: l = !0, ...c } = {}) { if (super(), this.opts = { namespace: "keyv", serialize: i.stringify, deserialize: i.parse, ...typeof u == "string" ? { uri: u } : u, ...c }, !this.opts.store) { let m = { ...this.opts }; this.opts.store = n(m); } if (this.opts.compression) { let m = this.opts.compression; this.opts.serialize = m.serialize.bind(m), this.opts.deserialize = m.deserialize.bind(m); } typeof this.opts.store.on == "function" && l && this.opts.store.on("error", (m) => this.emit("error", m)), this.opts.store.namespace = this.opts.namespace; let f = /* @__PURE__ */ s((m) => async function* () { for await (let [h, d] of typeof m == "function" ? m(this.opts.store.namespace) : m) { let y = this.opts.deserialize(d); if (!(this.opts.store.namespace && !h.includes(this.opts.store.namespace))) { if (typeof y.expires == "number" && Date.now() > y.expires) { this.delete(h); continue; } yield [this._getKeyUnprefix(h), y.value]; } } }, "generateIterator"); typeof this.opts.store[Symbol.iterator] == "function" && this.opts.store instanceof Map ? this.iterator = f(this.opts.store) : typeof this. opts.store.iterator == "function" && this.opts.store.opts && this._checkIterableAdaptar() && (this.iterator = f(this.opts.store.iterator. bind(this.opts.store))); } _checkIterableAdaptar() { return a.includes(this.opts.store.opts.dialect) || a.findIndex((u) => this.opts.store.opts.url.includes(u)) >= 0; } _getKeyPrefix(u) { return `${this.opts.namespace}:${u}`; } _getKeyPrefixArray(u) { return u.map((l) => `${this.opts.namespace}:${l}`); } _getKeyUnprefix(u) { return u.split(":").splice(1).join(":"); } get(u, l) { let { store: c } = this.opts, f = Array.isArray(u), m = f ? this._getKeyPrefixArray(u) : this._getKeyPrefix(u); if (f && c.getMany === void 0) { let h = []; for (let d of m) h.push( Promise.resolve().then(() => c.get(d)).then((y) => typeof y == "string" ? this.opts.deserialize(y) : this.opts.compression ? this.opts.deserialize(y) : y).then((y) => { if (y != null) return typeof y.expires == "number" && Date.now() > y.expires ? this.delete(d).then(() => { }) : l && l.raw ? y : y.value; }) ); return Promise.allSettled(h).then((d) => { let y = []; for (let p of d) y.push(p.value); return y; }); } return Promise.resolve().then(() => f ? c.getMany(m) : c.get(m)).then((h) => typeof h == "string" ? this.opts.deserialize(h) : this. opts.compression ? this.opts.deserialize(h) : h).then((h) => { if (h != null) { if (f) { let d = []; for (let y of h) { if (typeof y == "string" && (y = this.opts.deserialize(y)), y == null) { d.push(void 0); continue; } typeof y.expires == "number" && Date.now() > y.expires ? (this.delete(u).then(() => { }), d.push(void 0)) : d.push(l && l.raw ? y : y.value); } return d; } return typeof h.expires == "number" && Date.now() > h.expires ? this.delete(u).then(() => { }) : l && l.raw ? h : h.value; } }); } set(u, l, c) { let f = this._getKeyPrefix(u); typeof c > "u" && (c = this.opts.ttl), c === 0 && (c = void 0); let { store: m } = this.opts; return Promise.resolve().then(() => { let h = typeof c == "number" ? Date.now() + c : null; return typeof l == "symbol" && this.emit("error", "symbol cannot be serialized"), l = { value: l, expires: h }, this.opts.serialize( l); }).then((h) => m.set(f, h, c)).then(() => !0); } delete(u) { let { store: l } = this.opts; if (Array.isArray(u)) { let f = this._getKeyPrefixArray(u); if (l.deleteMany === void 0) { let m = []; for (let h of f) m.push(l.delete(h)); return Promise.allSettled(m).then((h) => h.every((d) => d.value === !0)); } return Promise.resolve().then(() => l.deleteMany(f)); } let c = this._getKeyPrefix(u); return Promise.resolve().then(() => l.delete(c)); } clear() { let { store: u } = this.opts; return Promise.resolve().then(() => u.clear()); } has(u) { let l = this._getKeyPrefix(u), { store: c } = this.opts; return Promise.resolve().then(async () => typeof c.has == "function" ? c.has(l) : await c.get(l) !== void 0); } disconnect() { let { store: u } = this.opts; if (typeof u.disconnect == "function") return u.disconnect(); } }; t.exports = o; } }), _se = vt({ "node_modules/.pnpm/mimic-response@3.1.0/node_modules/mimic-response/index.js"(e, t) { "use strict"; var r = [ "aborted", "complete", "headers", "httpVersion", "httpVersionMinor", "httpVersionMajor", "method", "rawHeaders", "rawTrailers", "setTimeout", "socket", "statusCode", "statusMessage", "trailers", "url" ]; t.exports = (i, n) => { if (n._readableState.autoDestroy) throw new Error("The second stream must have the `autoDestroy` option set to `false`"); let a = new Set(Object.keys(i).concat(r)), o = {}; for (let u of a) u in n || (o[u] = { get() { let l = i[u]; return typeof l == "function" ? l.bind(i) : l; }, set(l) { i[u] = l; }, enumerable: !0, configurable: !1 }); return Object.defineProperties(n, o), i.once("aborted", () => { n.destroy(), n.emit("aborted"); }), i.once("close", () => { i.complete && n.readable ? n.once("end", () => { n.emit("close"); }) : n.emit("close"); }), n; }; } }), Pse = vt({ "node_modules/.pnpm/decompress-response@6.0.0/node_modules/decompress-response/index.js"(e, t) { "use strict"; var { Transform: r, PassThrough: i } = require("stream"), n = require("zlib"), a = _se(); t.exports = (o) => { let u = (o.headers["content-encoding"] || "").toLowerCase(); if (!["gzip", "deflate", "br"].includes(u)) return o; let l = u === "br"; if (l && typeof n.createBrotliDecompress != "function") return o.destroy(new Error("Brotli is not supported on Node.js < 12")), o; let c = !0, f = new r({ transform(d, y, p) { c = !1, p(null, d); }, flush(d) { d(); } }), m = new i({ autoDestroy: !1, destroy(d, y) { o.destroy(), y(d); } }), h = l ? n.createBrotliDecompress() : n.createUnzip(); return h.once("error", (d) => { if (c && !o.readable) { m.end(); return; } m.destroy(d); }), a(o, m), o.pipe(f).pipe(h).pipe(m), m; }; } }), _4 = vt({ "node_modules/.pnpm/quick-lru@5.1.1/node_modules/quick-lru/index.js"(e, t) { "use strict"; var r = class { static { s(this, "QuickLRU"); } constructor(i = {}) { if (!(i.maxSize && i.maxSize > 0)) throw new TypeError("`maxSize` must be a number greater than 0"); this.maxSize = i.maxSize, this.onEviction = i.onEviction, this.cache = /* @__PURE__ */ new Map(), this.oldCache = /* @__PURE__ */ new Map(), this._size = 0; } _set(i, n) { if (this.cache.set(i, n), this._size++, this._size >= this.maxSize) { if (this._size = 0, typeof this.onEviction == "function") for (let [a, o] of this.oldCache.entries()) this.onEviction(a, o); this.oldCache = this.cache, this.cache = /* @__PURE__ */ new Map(); } } get(i) { if (this.cache.has(i)) return this.cache.get(i); if (this.oldCache.has(i)) { let n = this.oldCache.get(i); return this.oldCache.delete(i), this._set(i, n), n; } } set(i, n) { return this.cache.has(i) ? this.cache.set(i, n) : this._set(i, n), this; } has(i) { return this.cache.has(i) || this.oldCache.has(i); } peek(i) { if (this.cache.has(i)) return this.cache.get(i); if (this.oldCache.has(i)) return this.oldCache.get(i); } delete(i) { let n = this.cache.delete(i); return n && this._size--, this.oldCache.delete(i) || n; } clear() { this.cache.clear(), this.oldCache.clear(), this._size = 0; } *keys() { for (let [i] of this) yield i; } *values() { for (let [, i] of this) yield i; } *[Symbol.iterator]() { for (let i of this.cache) yield i; for (let i of this.oldCache) { let [n] = i; this.cache.has(n) || (yield i); } } get size() { let i = 0; for (let n of this.oldCache.keys()) this.cache.has(n) || i++; return Math.min(this._size + i, this.maxSize); } }; t.exports = r; } }), P4 = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/delay-async-destroy.js"(e, t) { "use strict"; t.exports = (r) => { if (r.listenerCount("error") !== 0) return r; r.__destroy = r._destroy, r._destroy = (...n) => { let a = n.pop(); r.__destroy(...n, async (o) => { await Promise.resolve(), a(o); }); }; let i = /* @__PURE__ */ s((n) => { Promise.resolve().then(() => { r.emit("error", n); }); }, "onError"); return r.once("error", i), Promise.resolve().then(() => { r.off("error", i); }), r; }; } }), xl = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/agent.js"(e, t) { "use strict"; var { URL: r } = require("url"), i = require("events"), n = require("tls"), a = require("http2"), o = _4(), u = P4(), l = Symbol("curr\ entStreamCount"), c = Symbol("request"), f = Symbol("cachedOriginSet"), m = Symbol("gracefullyClosing"), h = Symbol("length"), d = [ // Not an Agent option actually "createConnection", // `http2.connect()` options "maxDeflateDynamicTableSize", "maxSettings", "maxSessionMemory", "maxHeaderListPairs", "maxOutstandingPings", "maxReservedRemoteStreams", "maxSendHeaderBlockLength", "paddingStrategy", "peerMaxConcurrentStreams", "settings", // `tls.connect()` source options "family", "localAddress", "rejectUnauthorized", // `tls.connect()` secure context options "pskCallback", "minDHSize", // `tls.connect()` destination options // - `servername` is automatically validated, skip it // - `host` and `port` just describe the destination server, "path", "socket", // `tls.createSecureContext()` options "ca", "cert", "sigalgs", "ciphers", "clientCertEngine", "crl", "dhparam", "ecdhCurve", "honorCipherOrder", "key", "privateKeyEngine", "privateKeyIdentifier", "maxVersion", "minVersion", "pfx", "secureOptions", "secureProtocol", "sessionIdContext", "ticketKeys" ], y = /* @__PURE__ */ s((S, C, O) => { let k = 0, U = S.length; for (; k < U; ) { let j = k + U >>> 1; O(S[j], C) ? k = j + 1 : U = j; } return k; }, "getSortedIndex"), p = /* @__PURE__ */ s((S, C) => S.remoteSettings.maxConcurrentStreams > C.remoteSettings.maxConcurrentStreams, "\ compareSessions"), g = /* @__PURE__ */ s((S, C) => { for (let O = 0; O < S.length; O++) { let k = S[O]; // Unfortunately `.every()` returns true for an empty array k[f].length > 0 && k[f].length < C[f].length && k[f].every((U) => C[f].includes(U)) && k[l] + C[l] <= C.remoteSettings.maxConcurrentStreams && D(k); } }, "closeCoveredSessions"), b = /* @__PURE__ */ s((S, C) => { for (let O = 0; O < S.length; O++) { let k = S[O]; if (C[f].length > 0 && C[f].length < k[f].length && C[f].every((U) => k[f].includes(U)) && C[l] + k[l] <= k.remoteSettings.maxConcurrentStreams) return D(C), !0; } return !1; }, "closeSessionIfCovered"), D = /* @__PURE__ */ s((S) => { S[m] = !0, S[l] === 0 && S.close(); }, "gracefullyClose"), v = class extends i { static { s(this, "Agent"); } constructor({ timeout: S = 0, maxSessions: C = Number.POSITIVE_INFINITY, maxEmptySessions: O = 10, maxCachedTlsSessions: k = 100 } = {}) { super(), this.sessions = {}, this.queue = {}, this.timeout = S, this.maxSessions = C, this.maxEmptySessions = O, this._emptySessionCount = 0, this._sessionCount = 0, this.settings = { enablePush: !1, initialWindowSize: 1024 * 1024 * 32 // 32MB, see https://github.com/nodejs/node/issues/38426 }, this.tlsSessionCache = new o({ maxSize: k }); } get protocol() { return "https:"; } normalizeOptions(S) { let C = ""; for (let O = 0; O < d.length; O++) { let k = d[O]; C += ":", S && S[k] !== void 0 && (C += S[k]); } return C; } _processQueue() { if (this._sessionCount >= this.maxSessions) { this.closeEmptySessions(this.maxSessions - this._sessionCount + 1); return; } for (let S in this.queue) for (let C in this.queue[S]) { let O = this.queue[S][C]; O.completed || (O.completed = !0, O()); } } _isBetterSession(S, C) { return S > C; } _accept(S, C, O, k) { let U = 0; for (; U < C.length && S[l] < S.remoteSettings.maxConcurrentStreams; ) C[U].resolve(S), U++; C.splice(0, U), C.length > 0 && (this.getSession(O, k, C), C.length = 0); } getSession(S, C, O) { return new Promise((k, U) => { Array.isArray(O) && O.length > 0 ? (O = [...O], k()) : O = [{ resolve: k, reject: U }]; try { if (typeof S == "string") S = new r(S); else if (!(S instanceof r)) throw new TypeError("The `origin` argument needs to be a string or an URL object"); if (C) { let { servername: te } = C, { hostname: ee } = S; if (te && ee !== te) throw new Error(`Origin ${ee} differs from servername ${te}`); } } catch (te) { for (let ee = 0; ee < O.length; ee++) O[ee].reject(te); return; } let j = this.normalizeOptions(C), H = S.origin; if (j in this.sessions) { let te = this.sessions[j], ee = -1, Y = -1, re; for (let se = 0; se < te.length; se++) { let X = te[se], pe = X.remoteSettings.maxConcurrentStreams; if (pe < ee) break; if (!X[f].includes(H)) continue; let me = X[l]; me >= pe || X[m] || X.destroyed || (re || (ee = pe), this._isBetterSession(me, Y) && (re = X, Y = me)); } if (re) { this._accept(re, O, H, C); return; } } if (j in this.queue) { if (H in this.queue[j]) { this.queue[j][H].listeners.push(...O); return; } } else this.queue[j] = { [h]: 0 }; let R = /* @__PURE__ */ s(() => { j in this.queue && this.queue[j][H] === Q && (delete this.queue[j][H], --this.queue[j][h] === 0 && delete this.queue[j]); }, "removeFromQueue"), Q = /* @__PURE__ */ s(async () => { this._sessionCount++; let te = `${H}:${j}`, ee = !1, Y; try { let re = { ...C }; re.settings === void 0 && (re.settings = this.settings), re.session === void 0 && (re.session = this.tlsSessionCache.get(te)), Y = await (re.createConnection || this.createConnection).call(this, S, re), re.createConnection = () => Y; let X = a.connect(S, re); X[l] = 0, X[m] = !1; let pe = /* @__PURE__ */ s(() => { let { socket: fe } = X, ge; return fe.servername === !1 ? (fe.servername = fe.remoteAddress, ge = X.originSet, fe.servername = !1) : ge = X.originSet, ge; }, "getOriginSet"), me = /* @__PURE__ */ s(() => X[l] < X.remoteSettings.maxConcurrentStreams, "isFree"); X.socket.once("session", (fe) => { this.tlsSessionCache.set(te, fe); }), X.once("error", (fe) => { for (let ge = 0; ge < O.length; ge++) O[ge].reject(fe); this.tlsSessionCache.delete(te); }), X.setTimeout(this.timeout, () => { X.destroy(); }), X.once("close", () => { if (this._sessionCount--, ee) { this._emptySessionCount--; let fe = this.sessions[j]; fe.length === 1 ? delete this.sessions[j] : fe.splice(fe.indexOf(X), 1); } else { R(); let fe = new Error("Session closed without receiving a SETTINGS frame"); fe.code = "HTTP2WRAPPER_NOSETTINGS"; for (let ge = 0; ge < O.length; ge++) O[ge].reject(fe); } this._processQueue(); }); let ke = /* @__PURE__ */ s(() => { let fe = this.queue[j]; if (!fe) return; let ge = X[f]; for (let Ne = 0; Ne < ge.length; Ne++) { let gt = ge[Ne]; if (gt in fe) { let { listeners: Dt, completed: Wt } = fe[gt], Dr = 0; for (; Dr < Dt.length && me(); ) Dt[Dr].resolve(X), Dr++; if (fe[gt].listeners.splice(0, Dr), fe[gt].listeners.length === 0 && !Wt && (delete fe[gt], --fe[h] === 0)) { delete this.queue[j]; break; } if (!me()) break; } } }, "processListeners"); X.on("origin", () => { X[f] = pe() || [], X[m] = !1, b(this.sessions[j], X), !(X[m] || !me()) && (ke(), me() && g(this.sessions[j], X)); }), X.once("remoteSettings", () => { if (Q.destroyed) { let fe = new Error("Agent has been destroyed"); for (let ge = 0; ge < O.length; ge++) O[ge].reject(fe); X.destroy(); return; } if (X.setLocalWindowSize && X.setLocalWindowSize(1024 * 1024 * 4), X[f] = pe() || [], X.socket.encrypted) { let fe = X[f][0]; if (fe !== H) { let ge = new Error(`Requested origin ${H} does not match server ${fe}`); for (let Ne = 0; Ne < O.length; Ne++) O[Ne].reject(ge); X.destroy(); return; } } R(); { let fe = this.sessions; if (j in fe) { let ge = fe[j]; ge.splice(y(ge, X, p), 0, X); } else fe[j] = [X]; } ee = !0, this._emptySessionCount++, this.emit("session", X), this._accept(X, O, H, C), X[l] === 0 && this._emptySessionCount > this.maxEmptySessions && this.closeEmptySessions(this._emptySessionCount - this.maxEmptySessions), X.on("remoteSettings", () => { me() && (ke(), me() && g(this.sessions[j], X)); }); }), X[c] = X.request, X.request = (fe, ge) => { if (X[m]) throw new Error("The session is gracefully closing. No new streams are allowed."); let Ne = X[c](fe, ge); return X.ref(), X[l]++ === 0 && this._emptySessionCount--, Ne.once("close", () => { if (--X[l] === 0 && (this._emptySessionCount++, X.unref(), this._emptySessionCount > this.maxEmptySessions || X[m])) { X.close(); return; } X.destroyed || X.closed || me() && !b(this.sessions[j], X) && (g(this.sessions[j], X), ke(), X[l] === 0 && this._processQueue()); }), Ne; }; } catch (re) { R(), this._sessionCount--; for (let se = 0; se < O.length; se++) O[se].reject(re); } }, "entry"); Q.listeners = O, Q.completed = !1, Q.destroyed = !1, this.queue[j][H] = Q, this.queue[j][h]++, this._processQueue(); }); } request(S, C, O, k) { return new Promise((U, j) => { this.getSession(S, C, [{ reject: j, resolve: /* @__PURE__ */ s((H) => { try { let R = H.request(O, k); u(R), U(R); } catch (R) { j(R); } }, "resolve") }]); }); } async createConnection(S, C) { return v.connect(S, C); } static connect(S, C) { C.ALPNProtocols = ["h2"]; let O = S.port || 443, k = S.hostname; typeof C.servername > "u" && (C.servername = k); let U = n.connect(O, k, C); return C.socket && (U._peername = { family: void 0, address: void 0, port: O }), U; } closeEmptySessions(S = Number.POSITIVE_INFINITY) { let C = 0, { sessions: O } = this; for (let k in O) { let U = O[k]; for (let j = 0; j < U.length; j++) { let H = U[j]; if (H[l] === 0 && (C++, H.close(), C >= S)) return C; } } return C; } destroy(S) { let { sessions: C, queue: O } = this; for (let k in C) { let U = C[k]; for (let j = 0; j < U.length; j++) U[j].destroy(S); } for (let k in O) { let U = O[k]; for (let j in U) U[j].destroyed = !0; } this.queue = {}, this.tlsSessionCache.clear(); } get emptySessionCount() { return this._emptySessionCount; } get pendingSessionCount() { return this._sessionCount - this._emptySessionCount; } get sessionCount() { return this._sessionCount; } }; v.kCurrentStreamCount = l, v.kGracefullyClosing = m, t.exports = { Agent: v, globalAgent: new v() }; } }), F4 = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/incoming-message.js"(e, t) { "use strict"; var { Readable: r } = require("stream"), i = class extends r { static { s(this, "IncomingMessage"); } constructor(n, a) { super({ emitClose: !1, autoDestroy: !0, highWaterMark: a }), this.statusCode = null, this.statusMessage = "", this.httpVersion = "2.0", this.httpVersionMajor = 2, this.httpVersionMinor = 0, this.headers = {}, this.trailers = {}, this.req = null, this.aborted = !1, this.complete = !1, this.upgrade = null, this.rawHeaders = [], this.rawTrailers = [], this.socket = n, this._dumped = !1; } get connection() { return this.socket; } set connection(n) { this.socket = n; } _destroy(n, a) { this.readableEnded || (this.aborted = !0), a(), this.req._request.destroy(n); } setTimeout(n, a) { return this.req.setTimeout(n, a), this; } _dump() { this._dumped || (this._dumped = !0, this.removeAllListeners("data"), this.resume()); } _read() { this.req && this.req._request.resume(); } }; t.exports = i; } }), Fse = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/proxy-events.js"(e, t) { "use strict"; t.exports = (r, i, n) => { for (let a of n) r.on(a, (...o) => i.emit(a, ...o)); }; } }), Km = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/errors.js"(e, t) { "use strict"; var r = /* @__PURE__ */ s((i, n, a) => { t.exports[n] = class extends i { static { s(this, "NodeError"); } constructor(...u) { super(typeof a == "string" ? a : a(u)), this.name = `${super.name} [${n}]`, this.code = n; } }; }, "makeError"); r(TypeError, "ERR_INVALID_ARG_TYPE", (i) => { let n = i[0].includes(".") ? "property" : "argument", a = i[1], o = Array.isArray(a); return o && (a = `${a.slice(0, -1).join(", ")} or ${a.slice(-1)}`), `The "${i[0]}" ${n} must be ${o ? "one of" : "of"} type ${a}. Re\ ceived ${typeof i[2]}`; }), r( TypeError, "ERR_INVALID_PROTOCOL", (i) => `Protocol "${i[0]}" not supported. Expected "${i[1]}"` ), r( Error, "ERR_HTTP_HEADERS_SENT", (i) => `Cannot ${i[0]} headers after they are sent to the client` ), r( TypeError, "ERR_INVALID_HTTP_TOKEN", (i) => `${i[0]} must be a valid HTTP token [${i[1]}]` ), r( TypeError, "ERR_HTTP_INVALID_HEADER_VALUE", (i) => `Invalid value "${i[0]} for header "${i[1]}"` ), r( TypeError, "ERR_INVALID_CHAR", (i) => `Invalid character in ${i[0]} [${i[1]}]` ), r( Error, "ERR_HTTP2_NO_SOCKET_MANIPULATION", "HTTP/2 sockets should not be directly manipulated (e.g. read and written)" ); } }), Ise = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js"(e, t) { "use strict"; t.exports = (r) => { switch (r) { case ":method": case ":scheme": case ":authority": case ":path": return !0; default: return !1; } }; } }), I4 = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/validate-header-name.js"(e, t) { "use strict"; var { ERR_INVALID_HTTP_TOKEN: r } = Km(), i = Ise(), n = /^[\^`\-\w!#$%&*+.|~]+$/; t.exports = (a) => { if (typeof a != "string" || !n.test(a) && !i(a)) throw new r("Header name", a); }; } }), O4 = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/validate-header-value.js"(e, t) { "use strict"; var { ERR_HTTP_INVALID_HEADER_VALUE: r, ERR_INVALID_CHAR: i } = Km(), n = /[^\t\u0020-\u007E\u0080-\u00FF]/; t.exports = (a, o) => { if (typeof o > "u") throw new r(o, a); if (n.test(o)) throw new i("header content", a); }; } }), Ose = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/proxy-socket-handler.js"(e, t) { "use strict"; var { ERR_HTTP2_NO_SOCKET_MANIPULATION: r } = Km(), i = { has(n, a) { let o = n.session === void 0 ? n : n.session.socket; return a in n || a in o; }, get(n, a) { switch (a) { case "on": case "once": case "end": case "emit": case "destroy": return n[a].bind(n); case "writable": case "destroyed": return n[a]; case "readable": return n.destroyed ? !1 : n.readable; case "setTimeout": { let { session: o } = n; return o !== void 0 ? o.setTimeout.bind(o) : n.setTimeout.bind(n); } case "write": case "read": case "pause": case "resume": throw new r(); default: { let o = n.session === void 0 ? n : n.session.socket, u = o[a]; return typeof u == "function" ? u.bind(o) : u; } } }, getPrototypeOf(n) { return n.session !== void 0 ? Reflect.getPrototypeOf(n.session.socket) : Reflect.getPrototypeOf(n); }, set(n, a, o) { switch (a) { case "writable": case "readable": case "destroyed": case "on": case "once": case "end": case "emit": case "destroy": return n[a] = o, !0; case "setTimeout": { let { session: u } = n; return u === void 0 ? n.setTimeout = o : u.setTimeout = o, !0; } case "write": case "read": case "pause": case "resume": throw new r(); default: { let u = n.session === void 0 ? n : n.session.socket; return u[a] = o, !0; } } } }; t.exports = i; } }), k4 = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/client-request.js"(e, t) { "use strict"; var { URL: r, urlToHttpOptions: i } = require("url"), n = require("http2"), { Writable: a } = require("stream"), { Agent: o, globalAgent: u } = xl(), l = F4(), c = Fse(), { ERR_INVALID_ARG_TYPE: f, ERR_INVALID_PROTOCOL: m, ERR_HTTP_HEADERS_SENT: h } = Km(), d = I4(), y = O4(), p = Ose(), { HTTP2_HEADER_STATUS: g, HTTP2_HEADER_METHOD: b, HTTP2_HEADER_PATH: D, HTTP2_HEADER_AUTHORITY: v, HTTP2_METHOD_CONNECT: S } = n.constants, C = Symbol("headers"), O = Symbol("origin"), k = Symbol("session"), U = Symbol("options"), j = Symbol("flushedHeaders"), H = Symbol("jobs"), R = Symbol("pendingAgentPromise"), Q = class extends a { static { s(this, "ClientRequest"); } constructor(te, ee, Y) { if (super({ autoDestroy: !1, emitClose: !1 }), typeof te == "string" ? te = i(new r(te)) : te instanceof r ? te = i(te) : te = { ...te }, typeof ee == "function" || ee === void 0 ? (Y = ee, ee = te) : ee = Object.assign(te, ee), ee.h2session) { if (this[k] = ee.h2session, this[k].destroyed) throw new Error("The session has been closed already"); this.protocol = this[k].socket.encrypted ? "https:" : "http:"; } else if (ee.agent === !1) this.agent = new o({ maxEmptySessions: 0 }); else if (typeof ee.agent > "u" || ee.agent === null) this.agent = u; else if (typeof ee.agent.request == "function") this.agent = ee.agent; else throw new f("options.agent", ["http2wrapper.Agent-like Object", "undefined", "false"], ee.agent); if (this.agent && (this.protocol = this.agent.protocol), ee.protocol && ee.protocol !== this.protocol) throw new m(ee.protocol, this.protocol); ee.port || (ee.port = ee.defaultPort || this.agent && this.agent.defaultPort || 443), ee.host = ee.hostname || ee.host || "localho\ st", delete ee.hostname; let { timeout: re } = ee; ee.timeout = void 0, this[C] = /* @__PURE__ */ Object.create(null), this[H] = [], this[R] = void 0, this.socket = null, this.connection = null, this.method = ee.method || "GET", this.method === "CONNECT" && (ee.path === "/" || ee.path === void 0) || (this.path = ee.path), this.res = null, this.aborted = !1, this.reusedSocket = !1; let { headers: se } = ee; if (se) for (let pe in se) this.setHeader(pe, se[pe]); ee.auth && !("authorization" in this[C]) && (this[C].authorization = "Basic " + Buffer.from(ee.auth).toString("base64")), ee.session = ee.tlsSession, ee.path = ee.socketPath, this[U] = ee, this[O] = new r(`${this.protocol}//${ee.servername || ee.host}:${ee.port}`); let X = ee._reuseSocket; X && (ee.createConnection = (...pe) => X.destroyed ? this.agent.createConnection(...pe) : X, this.agent.getSession(this[O], this[U]). catch(() => { })), re && this.setTimeout(re), Y && this.once("response", Y), this[j] = !1; } get method() { return this[C][b]; } set method(te) { te && (this[C][b] = te.toUpperCase()); } get path() { let te = this.method === "CONNECT" ? v : D; return this[C][te]; } set path(te) { if (te) { let ee = this.method === "CONNECT" ? v : D; this[C][ee] = te; } } get host() { return this[O].hostname; } set host(te) { } get _mustNotHaveABody() { return this.method === "GET" || this.method === "HEAD" || this.method === "DELETE"; } _write(te, ee, Y) { if (this._mustNotHaveABody) { Y(new Error("The GET, HEAD and DELETE methods must NOT have a body")); return; } this.flushHeaders(); let re = /* @__PURE__ */ s(() => this._request.write(te, ee, Y), "callWrite"); this._request ? re() : this[H].push(re); } _final(te) { this.flushHeaders(); let ee = /* @__PURE__ */ s(() => { if (this._mustNotHaveABody || this.method === "CONNECT") { te(); return; } this._request.end(te); }, "callEnd"); this._request ? ee() : this[H].push(ee); } abort() { this.res && this.res.complete || (this.aborted || process.nextTick(() => this.emit("abort")), this.aborted = !0, this.destroy()); } async _destroy(te, ee) { this.res && this.res._dump(), this._request ? this._request.destroy() : process.nextTick(() => { this.emit("close"); }); try { await this[R]; } catch (Y) { this.aborted && (te = Y); } ee(te); } async flushHeaders() { if (this[j] || this.destroyed) return; this[j] = !0; let te = this.method === S, ee = /* @__PURE__ */ s((Y) => { if (this._request = Y, this.destroyed) { Y.destroy(); return; } te || c(Y, this, ["timeout", "continue"]), Y.once("error", (se) => { this.destroy(se); }), Y.once("aborted", () => { let { res: se } = this; se ? (se.aborted = !0, se.emit("aborted"), se.destroy()) : this.destroy(new Error("The server aborted the HTTP/2 stream")); }); let re = /* @__PURE__ */ s((se, X, pe) => { let me = new l(this.socket, Y.readableHighWaterMark); this.res = me, me.url = `${this[O].origin}${this.path}`, me.req = this, me.statusCode = se[g], me.headers = se, me.rawHeaders = pe, me.once("end", () => { me.complete = !0, me.socket = null, me.connection = null; }), te ? (me.upgrade = !0, this.emit("connect", me, Y, Buffer.alloc(0)) ? this.emit("close") : Y.destroy()) : (Y.on("data", (ke) => { !me._dumped && !me.push(ke) && Y.pause(); }), Y.once("end", () => { this.aborted || me.push(null); }), this.emit("response", me) || me._dump()); }, "onResponse"); Y.once("response", re), Y.once("headers", (se) => this.emit("information", { statusCode: se[g] })), Y.once("trailers", (se, X, pe) => { let { res: me } = this; if (me === null) { re(se, X, pe); return; } me.trailers = se, me.rawTrailers = pe; }), Y.once("close", () => { let { aborted: se, res: X } = this; if (X) { se && (X.aborted = !0, X.emit("aborted"), X.destroy()); let pe = /* @__PURE__ */ s(() => { X.emit("close"), this.destroy(), this.emit("close"); }, "finish"); X.readable ? X.once("end", pe) : pe(); return; } if (!this.destroyed) { this.destroy(new Error("The HTTP/2 stream has been early terminated")), this.emit("close"); return; } this.destroy(), this.emit("close"); }), this.socket = new Proxy(Y, p); for (let se of this[H]) se(); this[H].length = 0, this.emit("socket", this.socket); }, "onStream"); if (!(v in this[C]) && !te && (this[C][v] = this[O].host), this[k]) try { ee(this[k].request(this[C])); } catch (Y) { this.destroy(Y); } else { this.reusedSocket = !0; try { let Y = this.agent.request(this[O], this[U], this[C]); this[R] = Y, ee(await Y), this[R] = !1; } catch (Y) { this[R] = !1, this.destroy(Y); } } } get connection() { return this.socket; } set connection(te) { this.socket = te; } getHeaderNames() { return Object.keys(this[C]); } hasHeader(te) { if (typeof te != "string") throw new f("name", "string", te); return !!this[C][te.toLowerCase()]; } getHeader(te) { if (typeof te != "string") throw new f("name", "string", te); return this[C][te.toLowerCase()]; } get headersSent() { return this[j]; } removeHeader(te) { if (typeof te != "string") throw new f("name", "string", te); if (this.headersSent) throw new h("remove"); delete this[C][te.toLowerCase()]; } setHeader(te, ee) { if (this.headersSent) throw new h("set"); d(te), y(te, ee); let Y = te.toLowerCase(); if (Y === "connection") { if (ee.toLowerCase() === "keep-alive") return; throw new Error(`Invalid 'connection' header: ${ee}`); } Y === "host" && this.method === "CONNECT" ? this[C][v] = ee : this[C][Y] = ee; } setNoDelay() { } setSocketKeepAlive() { } setTimeout(te, ee) { let Y = /* @__PURE__ */ s(() => this._request.setTimeout(te, ee), "applyTimeout"); return this._request ? Y() : this[H].push(Y), this; } get maxHeadersCount() { if (!this.destroyed && this._request) return this._request.session.localSettings.maxHeaderListSize; } set maxHeadersCount(te) { } }; t.exports = Q; } }), kse = vt({ "node_modules/.pnpm/resolve-alpn@1.2.1/node_modules/resolve-alpn/index.js"(e, t) { "use strict"; var r = require("tls"); t.exports = (i = {}, n = r.connect) => new Promise((a, o) => { let u = !1, l, c = /* @__PURE__ */ s(async () => { await m, l.off("timeout", f), l.off("error", o), i.resolveSocket ? (a({ alpnProtocol: l.alpnProtocol, socket: l, timeout: u }), u && (await Promise.resolve(), l.emit("timeout"))) : (l.destroy(), a({ alpnProtocol: l.alpnProtocol, timeout: u })); }, "callback"), f = /* @__PURE__ */ s(async () => { u = !0, c(); }, "onTimeout"), m = (async () => { try { l = await n(i, c), l.on("error", o), l.once("timeout", f); } catch (h) { o(h); } })(); }); } }), Bse = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/calculate-server-name.js"(e, t) { "use strict"; var { isIP: r } = require("net"), i = require("assert"), n = /* @__PURE__ */ s((a) => { if (a[0] === "[") { let u = a.indexOf("]"); return i(u !== -1), a.slice(1, u); } let o = a.indexOf(":"); return o === -1 ? a : a.slice(0, o); }, "getHost"); t.exports = (a) => { let o = n(a); return r(o) ? "" : o; }; } }), Nse = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/auto.js"(e, t) { "use strict"; var { URL: r, urlToHttpOptions: i } = require("url"), n = require("http"), a = require("https"), o = kse(), u = _4(), { Agent: l, globalAgent: c } = xl(), f = k4(), m = Bse(), h = P4(), d = new u({ maxSize: 100 }), y = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ s((D, v, S) => { v._httpMessage = { shouldKeepAlive: !0 }; let C = /* @__PURE__ */ s(() => { D.emit("free", v, S); }, "onFree"); v.on("free", C); let O = /* @__PURE__ */ s(() => { D.removeSocket(v, S); }, "onClose"); v.on("close", O); let k = /* @__PURE__ */ s(() => { let { freeSockets: j } = D; for (let H of Object.values(j)) if (H.includes(v)) { v.destroy(); return; } }, "onTimeout"); v.on("timeout", k); let U = /* @__PURE__ */ s(() => { D.removeSocket(v, S), v.off("close", O), v.off("free", C), v.off("timeout", k), v.off("agentRemove", U); }, "onRemove"); v.on("agentRemove", U), D.emit("free", v, S); }, "installSocket"), g = /* @__PURE__ */ s((D, v = /* @__PURE__ */ new Map(), S = void 0) => async (C) => { let O = `${C.host}:${C.port}:${C.ALPNProtocols.sort()}`; if (!D.has(O)) { if (v.has(O)) return { alpnProtocol: (await v.get(O)).alpnProtocol }; let { path: k } = C; C.path = C.socketPath; let U = o(C, S); v.set(O, U); try { let j = await U; return D.set(O, j.alpnProtocol), v.delete(O), C.path = k, j; } catch (j) { throw v.delete(O), C.path = k, j; } } return { alpnProtocol: D.get(O) }; }, "createResolveProtocol"), b = g(d, y); t.exports = async (D, v, S) => { if (typeof D == "string" ? D = i(new r(D)) : D instanceof r ? D = i(D) : D = { ...D }, typeof v == "function" || v === void 0 ? (S = v, v = D) : v = Object.assign(D, v), v.ALPNProtocols = v.ALPNProtocols || ["h2", "http/1.1"], !Array.isArray(v.ALPNProtocols) || v.ALPNProtocols. length === 0) throw new Error("The `ALPNProtocols` option must be an Array with at least one entry"); v.protocol = v.protocol || "https:"; let C = v.protocol === "https:"; v.host = v.hostname || v.host || "localhost", v.session = v.tlsSession, v.servername = v.servername || m(v.headers && v.headers.host || v.host), v.port = v.port || (C ? 443 : 80), v._defaultAgent = C ? a.globalAgent : n.globalAgent; let O = v.resolveProtocol || b, { agent: k } = v; if (k !== void 0 && k !== !1 && k.constructor.name !== "Object") throw new Error("The `options.agent` can be only an object `http`, `https` or `http2` properties"); if (C) { v.resolveSocket = !0; let { socket: U, alpnProtocol: j, timeout: H } = await O(v); if (H) { U && U.destroy(); let Q = new Error(`Timed out resolving ALPN: ${v.timeout} ms`); throw Q.code = "ETIMEDOUT", Q.ms = v.timeout, Q; } U && v.createConnection && (U.destroy(), U = void 0), delete v.resolveSocket; let R = j === "h2"; if (k && (k = R ? k.http2 : k.https, v.agent = k), k === void 0 && (k = R ? c : a.globalAgent), U) if (k === !1) U.destroy(); else { let Q = (R ? l : a.Agent).prototype.createConnection; k.createConnection === Q ? R ? v._reuseSocket = U : p(k, U, v) : U.destroy(); } if (R) return h(new f(v, S)); } else k && (v.agent = k.http); return h(n.request(v, S)); }, t.exports.protocolCache = d, t.exports.resolveProtocol = b, t.exports.createResolveProtocol = g; } }), B4 = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/js-stream-socket.js"(e, t) { "use strict"; var r = require("stream"), i = require("tls"), n = new i.TLSSocket(new r.PassThrough())._handle._parentWrap.constructor; t.exports = n; } }), N4 = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/proxies/unexpected-status-code-error.js"(e, t) { "use strict"; var r = class extends Error { static { s(this, "UnexpectedStatusCodeError"); } constructor(i, n = "") { super(`The proxy server rejected the request with status code ${i} (${n || "empty status message"})`), this.statusCode = i, this.statusMessage = n; } }; t.exports = r; } }), Mse = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/check-type.js"(e, t) { "use strict"; var r = /* @__PURE__ */ s((i, n, a) => { if (!a.some((u) => typeof u === "string" ? typeof n === u : n instanceof u)) { let u = a.map((l) => typeof l == "string" ? l : l.name); throw new TypeError(`Expected '${i}' to be a type of ${u.join(" or ")}, got ${typeof n}`); } }, "checkType"); t.exports = r; } }), M4 = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/proxies/initialize.js"(e, t) { "use strict"; var { URL: r } = require("url"), i = Mse(); t.exports = (n, a) => { i("proxyOptions", a, ["object"]), i("proxyOptions.headers", a.headers, ["object", "undefined"]), i("proxyOptions.raw", a.raw, ["bool\ ean", "undefined"]), i("proxyOptions.url", a.url, [r, "string"]); let o = new r(a.url); n.proxyOptions = { raw: !0, ...a, headers: { ...a.headers }, url: o }; }; } }), wx = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/proxies/get-auth-headers.js"(e, t) { "use strict"; t.exports = (r) => { let { username: i, password: n } = r.proxyOptions.url; if (i || n) { let a = `${i}:${n}`, o = `Basic ${Buffer.from(a).toString("base64")}`; return { "proxy-authorization": o, authorization: o }; } return {}; }; } }), Rse = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/proxies/h1-over-h2.js"(e, t) { "use strict"; var r = require("tls"), i = require("http"), n = require("https"), a = B4(), { globalAgent: o } = xl(), u = N4(), l = M4(), c = wx(), f = /* @__PURE__ */ s( (d, y, p) => { (async () => { try { let { proxyOptions: g } = d, { url: b, headers: D, raw: v } = g, S = await o.request(b, g, { ...c(d), ...D, ":method": "CONNECT", ":authority": `${y.host}:${y.port}` }); S.once("error", p), S.once("response", (C) => { let O = C[":status"]; if (O !== 200) { p(new u(O, "")); return; } let k = d instanceof n.Agent; if (v && k) { y.socket = S; let j = r.connect(y); j.once("close", () => { S.destroy(); }), p(null, j); return; } let U = new a(S); U.encrypted = !1, U._handle.getpeername = (j) => { j.family = void 0, j.address = void 0, j.port = void 0; }, p(null, U); }); } catch (g) { p(g); } })(); }, "createConnection"), m = class extends i.Agent { static { s(this, "HttpOverHttp2"); } constructor(d) { super(d), l(this, d.proxyOptions); } createConnection(d, y) { f(this, d, y); } }, h = class extends n.Agent { static { s(this, "HttpsOverHttp2"); } constructor(d) { super(d), l(this, d.proxyOptions); } createConnection(d, y) { f(this, d, y); } }; t.exports = { HttpOverHttp2: m, HttpsOverHttp2: h }; } }), R4 = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/proxies/h2-over-hx.js"(e, t) { "use strict"; var { Agent: r } = xl(), i = B4(), n = N4(), a = M4(), o = class extends r { static { s(this, "Http2OverHttpX"); } constructor(u) { super(u), a(this, u.proxyOptions); } async createConnection(u, l) { let c = `${u.hostname}:${u.port || 443}`, [f, m, h] = await this._getProxyStream(c); if (m !== 200) throw new n(m, h); if (this.proxyOptions.raw) l.socket = f; else { let d = new i(f); return d.encrypted = !1, d._handle.getpeername = (y) => { y.family = void 0, y.address = void 0, y.port = void 0; }, d; } return super.createConnection(u, l); } }; t.exports = o; } }), jse = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/proxies/h2-over-h2.js"(e, t) { "use strict"; var { globalAgent: r } = xl(), i = R4(), n = wx(), a = /* @__PURE__ */ s((u) => new Promise((l, c) => { u.once("error", c), u.once("response", (f) => { u.off("error", c), l(f[":status"]); }); }), "getStatusCode"), o = class extends i { static { s(this, "Http2OverHttp2"); } async _getProxyStream(u) { let { proxyOptions: l } = this, c = { ...n(this), ...l.headers, ":method": "CONNECT", ":authority": u }, f = await r.request(l.url, l, c), m = await a(f); return [f, m, ""]; } }; t.exports = o; } }), Lse = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/proxies/h2-over-h1.js"(e, t) { "use strict"; var r = require("http"), i = require("https"), n = R4(), a = wx(), o = /* @__PURE__ */ s((l) => new Promise((c, f) => { let m = /* @__PURE__ */ s((h, d, y) => { d.unshift(y), l.off("error", f), c([d, h.statusCode, h.statusMessage]); }, "onConnect"); l.once("error", f), l.once("connect", m); }), "getStream2"), u = class extends n { static { s(this, "Http2OverHttp"); } async _getProxyStream(l) { let { proxyOptions: c } = this, { url: f, headers: m } = this.proxyOptions, d = (f.protocol === "https:" ? i : r).request({ ...c, hostname: f.hostname, port: f.port, path: l, headers: { ...a(this), ...m, host: l }, method: "CONNECT" }).end(); return o(d); } }; t.exports = { Http2OverHttp: u, Http2OverHttps: u }; } }), qse = vt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/index.js"(e, t) { "use strict"; var r = require("http2"), { Agent: i, globalAgent: n } = xl(), a = k4(), o = F4(), u = Nse(), { HttpOverHttp2: l, HttpsOverHttp2: c } = Rse(), f = jse(), { Http2OverHttp: m, Http2OverHttps: h } = Lse(), d = I4(), y = O4(), p = /* @__PURE__ */ s((b, D, v) => new a(b, D, v), "request"), g = /* @__PURE__ */ s((b, D, v) => { let S = new a(b, D, v); return S.end(), S; }, "get"); t.exports = { ...r, ClientRequest: a, IncomingMessage: o, Agent: i, globalAgent: n, request: p, get: g, auto: u, proxies: { HttpOverHttp2: l, HttpsOverHttp2: c, Http2OverHttp2: f, Http2OverHttp: m, Http2OverHttps: h }, validateHeaderName: d, validateHeaderValue: y }; } }), j4 = {}; Ese(j4, { default: /* @__PURE__ */ s(() => Uoe, "default") }); G4.exports = xse(j4); var Use = require("http"), Wse = require("https"), L4 = [ "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array", "BigInt64Array", "BigUint64Array" ]; function $se(e) { return L4.includes(e); } s($se, "isTypedArrayName"); var Vse = [ "Function", "Generator", "AsyncGenerator", "GeneratorFunction", "AsyncGeneratorFunction", "AsyncFunction", "Observable", "Array", "Buffer", "Blob", "Object", "RegExp", "Date", "Error", "Map", "Set", "WeakMap", "WeakSet", "WeakRef", "ArrayBuffer", "SharedArrayBuffer", "DataView", "Promise", "URL", "FormData", "URLSearchParams", "HTMLElement", "NaN", ...L4 ]; function Hse(e) { return Vse.includes(e); } s(Hse, "isObjectTypeName"); var Kse = [ "null", "undefined", "string", "number", "bigint", "boolean", "symbol" ]; function zse(e) { return Kse.includes(e); } s(zse, "isPrimitiveTypeName"); function Sl(e) { return (t) => typeof t === e; } s(Sl, "isOfType"); var { toString: Gse } = Object.prototype, Gf = /* @__PURE__ */ s((e) => { let t = Gse.call(e).slice(8, -1); if (/HTML\w+Element/.test(t) && M.domElement(e)) return "HTMLElement"; if (Hse(t)) return t; }, "getObjectType"), Nt = /* @__PURE__ */ s((e) => (t) => Gf(t) === e, "isObjectOfType"); function M(e) { if (e === null) return "null"; switch (typeof e) { case "undefined": return "undefined"; case "string": return "string"; case "number": return Number.isNaN(e) ? "NaN" : "number"; case "boolean": return "boolean"; case "function": return "Function"; case "bigint": return "bigint"; case "symbol": return "symbol"; default: } if (M.observable(e)) return "Observable"; if (M.array(e)) return "Array"; if (M.buffer(e)) return "Buffer"; let t = Gf(e); if (t) return t; if (e instanceof String || e instanceof Boolean || e instanceof Number) throw new TypeError("Please don't use object wrappers for primitive types"); return "Object"; } s(M, "is"); M.undefined = Sl("undefined"); M.string = Sl("string"); var Jse = Sl("number"); M.number = (e) => Jse(e) && !M.nan(e); M.bigint = Sl("bigint"); M.function_ = Sl("function"); M.null_ = (e) => e === null; M.class_ = (e) => M.function_(e) && e.toString().startsWith("class "); M.boolean = (e) => e === !0 || e === !1; M.symbol = Sl("symbol"); M.numericString = (e) => M.string(e) && !M.emptyStringOrWhitespace(e) && !Number.isNaN(Number(e)); M.array = (e, t) => Array.isArray(e) ? M.function_(t) ? e.every((r) => t(r)) : !0 : !1; M.buffer = (e) => { var t, r; return ((r = (t = e?.constructor) == null ? void 0 : t.isBuffer) == null ? void 0 : r.call(t, e)) ?? !1; }; M.blob = (e) => Nt("Blob")(e); M.nullOrUndefined = (e) => M.null_(e) || M.undefined(e); M.object = (e) => !M.null_(e) && (typeof e == "object" || M.function_(e)); M.iterable = (e) => M.function_(e?.[Symbol.iterator]); M.asyncIterable = (e) => M.function_(e?.[Symbol.asyncIterator]); M.generator = (e) => M.iterable(e) && M.function_(e?.next) && M.function_(e?.throw); M.asyncGenerator = (e) => M.asyncIterable(e) && M.function_(e.next) && M.function_(e.throw); M.nativePromise = (e) => Nt("Promise")(e); var Xse = /* @__PURE__ */ s((e) => M.function_(e?.then) && M.function_(e?.catch), "hasPromiseApi"); M.promise = (e) => M.nativePromise(e) || Xse(e); M.generatorFunction = Nt("GeneratorFunction"); M.asyncGeneratorFunction = (e) => Gf(e) === "AsyncGeneratorFunction"; M.asyncFunction = (e) => Gf(e) === "AsyncFunction"; M.boundFunction = (e) => M.function_(e) && !e.hasOwnProperty("prototype"); M.regExp = Nt("RegExp"); M.date = Nt("Date"); M.error = Nt("Error"); M.map = (e) => Nt("Map")(e); M.set = (e) => Nt("Set")(e); M.weakMap = (e) => Nt("WeakMap")(e); M.weakSet = (e) => Nt("WeakSet")(e); M.weakRef = (e) => Nt("WeakRef")(e); M.int8Array = Nt("Int8Array"); M.uint8Array = Nt("Uint8Array"); M.uint8ClampedArray = Nt("Uint8ClampedArray"); M.int16Array = Nt("Int16Array"); M.uint16Array = Nt("Uint16Array"); M.int32Array = Nt("Int32Array"); M.uint32Array = Nt("Uint32Array"); M.float32Array = Nt("Float32Array"); M.float64Array = Nt("Float64Array"); M.bigInt64Array = Nt("BigInt64Array"); M.bigUint64Array = Nt("BigUint64Array"); M.arrayBuffer = Nt("ArrayBuffer"); M.sharedArrayBuffer = Nt("SharedArrayBuffer"); M.dataView = Nt("DataView"); M.enumCase = (e, t) => Object.values(t).includes(e); M.directInstanceOf = (e, t) => Object.getPrototypeOf(e) === t.prototype; M.urlInstance = (e) => Nt("URL")(e); M.urlString = (e) => { if (!M.string(e)) return !1; try { return new URL(e), !0; } catch { return !1; } }; M.truthy = (e) => !!e; M.falsy = (e) => !e; M.nan = (e) => Number.isNaN(e); M.primitive = (e) => M.null_(e) || zse(typeof e); M.integer = (e) => Number.isInteger(e); M.safeInteger = (e) => Number.isSafeInteger(e); M.plainObject = (e) => { if (typeof e != "object" || e === null) return !1; let t = Object.getPrototypeOf(e); return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e); }; M.typedArray = (e) => $se(Gf(e)); var Yse = /* @__PURE__ */ s((e) => M.safeInteger(e) && e >= 0, "isValidLength"); M.arrayLike = (e) => !M.nullOrUndefined(e) && !M.function_(e) && Yse(e.length); M.inRange = (e, t) => { if (M.number(t)) return e >= Math.min(0, t) && e <= Math.max(t, 0); if (M.array(t) && t.length === 2) return e >= Math.min(...t) && e <= Math.max(...t); throw new TypeError(`Invalid range: ${JSON.stringify(t)}`); }; var Zse = 1, Qse = [ "innerHTML", "ownerDocument", "style", "attributes", "nodeValue" ]; M.domElement = (e) => M.object(e) && e.nodeType === Zse && M.string(e.nodeName) && !M.plainObject(e) && Qse.every((t) => t in e); M.observable = (e) => { var t, r; return e ? e === ((t = e[Symbol.observable]) == null ? void 0 : t.call(e)) || e === ((r = e["@@observable"]) == null ? void 0 : r.call(e)) : !1; }; M.nodeStream = (e) => M.object(e) && M.function_(e.pipe) && !M.observable(e); M.infinite = (e) => e === Number.POSITIVE_INFINITY || e === Number.NEGATIVE_INFINITY; var q4 = /* @__PURE__ */ s((e) => (t) => M.integer(t) && Math.abs(t % 2) === e, "isAbsoluteMod2"); M.evenInteger = q4(0); M.oddInteger = q4(1); M.emptyArray = (e) => M.array(e) && e.length === 0; M.nonEmptyArray = (e) => M.array(e) && e.length > 0; M.emptyString = (e) => M.string(e) && e.length === 0; var eae = /* @__PURE__ */ s((e) => M.string(e) && !/\S/.test(e), "isWhiteSpaceString"); M.emptyStringOrWhitespace = (e) => M.emptyString(e) || eae(e); M.nonEmptyString = (e) => M.string(e) && e.length > 0; M.nonEmptyStringAndNotWhitespace = (e) => M.string(e) && !M.emptyStringOrWhitespace(e); M.emptyObject = (e) => M.object(e) && !M.map(e) && !M.set(e) && Object.keys(e).length === 0; M.nonEmptyObject = (e) => M.object(e) && !M.map(e) && !M.set(e) && Object.keys(e).length > 0; M.emptySet = (e) => M.set(e) && e.size === 0; M.nonEmptySet = (e) => M.set(e) && e.size > 0; M.emptyMap = (e) => M.map(e) && e.size === 0; M.nonEmptyMap = (e) => M.map(e) && e.size > 0; M.propertyKey = (e) => M.any([M.string, M.number, M.symbol], e); M.formData = (e) => Nt("FormData")(e); M.urlSearchParams = (e) => Nt("URLSearchParams")(e); var U4 = /* @__PURE__ */ s((e, t, r) => { if (!M.function_(t)) throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`); if (r.length === 0) throw new TypeError("Invalid number of values"); return e.call(r, t); }, "predicateOnArray"); M.any = (e, ...t) => (M.array(e) ? e : [e]).some((i) => U4(Array.prototype.some, i, t)); M.all = (e, ...t) => U4(Array.prototype.every, e, t); var Ee = /* @__PURE__ */ s((e, t, r, i = {}) => { if (!e) { let { multipleValues: n } = i, a = n ? `received values of types ${[ ...new Set(r.map((o) => `\`${M(o)}\``)) ].join(", ")}` : `received value of type \`${M(r)}\``; throw new TypeError(`Expected value which is \`${t}\`, ${a}.`); } }, "assertType"), ce = { // Unknowns. undefined: /* @__PURE__ */ s((e) => Ee(M.undefined(e), "undefined", e), "undefined"), string: /* @__PURE__ */ s((e) => Ee(M.string(e), "string", e), "string"), number: /* @__PURE__ */ s((e) => Ee(M.number(e), "number", e), "number"), bigint: /* @__PURE__ */ s((e) => Ee(M.bigint(e), "bigint", e), "bigint"), // eslint-disable-next-line @typescript-eslint/ban-types function_: /* @__PURE__ */ s((e) => Ee(M.function_(e), "Function", e), "function_"), null_: /* @__PURE__ */ s((e) => Ee(M.null_(e), "null", e), "null_"), class_: /* @__PURE__ */ s((e) => Ee(M.class_(e), "Class", e), "class_"), boolean: /* @__PURE__ */ s((e) => Ee(M.boolean(e), "boolean", e), "boolean"), symbol: /* @__PURE__ */ s((e) => Ee(M.symbol(e), "symbol", e), "symbol"), numericString: /* @__PURE__ */ s((e) => Ee(M.numericString(e), "string with a number", e), "numericString"), array: /* @__PURE__ */ s((e, t) => { Ee(M.array(e), "Array", e), t && e.forEach(t); }, "array"), buffer: /* @__PURE__ */ s((e) => Ee(M.buffer(e), "Buffer", e), "buffer"), blob: /* @__PURE__ */ s((e) => Ee(M.blob(e), "Blob", e), "blob"), nullOrUndefined: /* @__PURE__ */ s((e) => Ee(M.nullOrUndefined(e), "null or undefined", e), "nullOrUndefined"), object: /* @__PURE__ */ s((e) => Ee(M.object(e), "Object", e), "object"), iterable: /* @__PURE__ */ s((e) => Ee(M.iterable(e), "Iterable", e), "iterable"), asyncIterable: /* @__PURE__ */ s((e) => Ee(M.asyncIterable(e), "AsyncIterable", e), "asyncIterable"), generator: /* @__PURE__ */ s((e) => Ee(M.generator(e), "Generator", e), "generator"), asyncGenerator: /* @__PURE__ */ s((e) => Ee(M.asyncGenerator(e), "AsyncGenerator", e), "asyncGenerator"), nativePromise: /* @__PURE__ */ s((e) => Ee(M.nativePromise(e), "native Promise", e), "nativePromise"), promise: /* @__PURE__ */ s((e) => Ee(M.promise(e), "Promise", e), "promise"), generatorFunction: /* @__PURE__ */ s((e) => Ee(M.generatorFunction(e), "GeneratorFunction", e), "generatorFunction"), asyncGeneratorFunction: /* @__PURE__ */ s((e) => Ee(M.asyncGeneratorFunction(e), "AsyncGeneratorFunction", e), "asyncGeneratorFunction"), // eslint-disable-next-line @typescript-eslint/ban-types asyncFunction: /* @__PURE__ */ s((e) => Ee(M.asyncFunction(e), "AsyncFunction", e), "asyncFunction"), // eslint-disable-next-line @typescript-eslint/ban-types boundFunction: /* @__PURE__ */ s((e) => Ee(M.boundFunction(e), "Function", e), "boundFunction"), regExp: /* @__PURE__ */ s((e) => Ee(M.regExp(e), "RegExp", e), "regExp"), date: /* @__PURE__ */ s((e) => Ee(M.date(e), "Date", e), "date"), error: /* @__PURE__ */ s((e) => Ee(M.error(e), "Error", e), "error"), map: /* @__PURE__ */ s((e) => Ee(M.map(e), "Map", e), "map"), set: /* @__PURE__ */ s((e) => Ee(M.set(e), "Set", e), "set"), weakMap: /* @__PURE__ */ s((e) => Ee(M.weakMap(e), "WeakMap", e), "weakMap"), weakSet: /* @__PURE__ */ s((e) => Ee(M.weakSet(e), "WeakSet", e), "weakSet"), weakRef: /* @__PURE__ */ s((e) => Ee(M.weakRef(e), "WeakRef", e), "weakRef"), int8Array: /* @__PURE__ */ s((e) => Ee(M.int8Array(e), "Int8Array", e), "int8Array"), uint8Array: /* @__PURE__ */ s((e) => Ee(M.uint8Array(e), "Uint8Array", e), "uint8Array"), uint8ClampedArray: /* @__PURE__ */ s((e) => Ee(M.uint8ClampedArray(e), "Uint8ClampedArray", e), "uint8ClampedArray"), int16Array: /* @__PURE__ */ s((e) => Ee(M.int16Array(e), "Int16Array", e), "int16Array"), uint16Array: /* @__PURE__ */ s((e) => Ee(M.uint16Array(e), "Uint16Array", e), "uint16Array"), int32Array: /* @__PURE__ */ s((e) => Ee(M.int32Array(e), "Int32Array", e), "int32Array"), uint32Array: /* @__PURE__ */ s((e) => Ee(M.uint32Array(e), "Uint32Array", e), "uint32Array"), float32Array: /* @__PURE__ */ s((e) => Ee(M.float32Array(e), "Float32Array", e), "float32Array"), float64Array: /* @__PURE__ */ s((e) => Ee(M.float64Array(e), "Float64Array", e), "float64Array"), bigInt64Array: /* @__PURE__ */ s((e) => Ee(M.bigInt64Array(e), "BigInt64Array", e), "bigInt64Array"), bigUint64Array: /* @__PURE__ */ s((e) => Ee(M.bigUint64Array(e), "BigUint64Array", e), "bigUint64Array"), arrayBuffer: /* @__PURE__ */ s((e) => Ee(M.arrayBuffer(e), "ArrayBuffer", e), "arrayBuffer"), sharedArrayBuffer: /* @__PURE__ */ s((e) => Ee(M.sharedArrayBuffer(e), "SharedArrayBuffer", e), "sharedArrayBuffer"), dataView: /* @__PURE__ */ s((e) => Ee(M.dataView(e), "DataView", e), "dataView"), enumCase: /* @__PURE__ */ s((e, t) => Ee(M.enumCase(e, t), "EnumCase", e), "enumCase"), urlInstance: /* @__PURE__ */ s((e) => Ee(M.urlInstance(e), "URL", e), "urlInstance"), urlString: /* @__PURE__ */ s((e) => Ee(M.urlString(e), "string with a URL", e), "urlString"), truthy: /* @__PURE__ */ s((e) => Ee(M.truthy(e), "truthy", e), "truthy"), falsy: /* @__PURE__ */ s((e) => Ee(M.falsy(e), "falsy", e), "falsy"), nan: /* @__PURE__ */ s((e) => Ee(M.nan(e), "NaN", e), "nan"), primitive: /* @__PURE__ */ s((e) => Ee(M.primitive(e), "primitive", e), "primitive"), integer: /* @__PURE__ */ s((e) => Ee(M.integer(e), "integer", e), "integer"), safeInteger: /* @__PURE__ */ s((e) => Ee(M.safeInteger(e), "integer", e), "safeInteger"), plainObject: /* @__PURE__ */ s((e) => Ee(M.plainObject(e), "plain object", e), "plainObject"), typedArray: /* @__PURE__ */ s((e) => Ee(M.typedArray(e), "TypedArray", e), "typedArray"), arrayLike: /* @__PURE__ */ s((e) => Ee(M.arrayLike(e), "array-like", e), "arrayLike"), domElement: /* @__PURE__ */ s((e) => Ee(M.domElement(e), "HTMLElement", e), "domElement"), observable: /* @__PURE__ */ s((e) => Ee(M.observable(e), "Observable", e), "observable"), nodeStream: /* @__PURE__ */ s((e) => Ee(M.nodeStream(e), "Node.js Stream", e), "nodeStream"), infinite: /* @__PURE__ */ s((e) => Ee(M.infinite(e), "infinite number", e), "infinite"), emptyArray: /* @__PURE__ */ s((e) => Ee(M.emptyArray(e), "empty array", e), "emptyArray"), nonEmptyArray: /* @__PURE__ */ s((e) => Ee(M.nonEmptyArray(e), "non-empty array", e), "nonEmptyArray"), emptyString: /* @__PURE__ */ s((e) => Ee(M.emptyString(e), "empty string", e), "emptyString"), emptyStringOrWhitespace: /* @__PURE__ */ s((e) => Ee(M.emptyStringOrWhitespace(e), "empty string or whitespace", e), "emptyStringOrWhite\ space"), nonEmptyString: /* @__PURE__ */ s((e) => Ee(M.nonEmptyString(e), "non-empty string", e), "nonEmptyString"), nonEmptyStringAndNotWhitespace: /* @__PURE__ */ s((e) => Ee(M.nonEmptyStringAndNotWhitespace(e), "non-empty string and not whitespace", e), "nonEmptyStringAndNotWhitespace"), emptyObject: /* @__PURE__ */ s((e) => Ee(M.emptyObject(e), "empty object", e), "emptyObject"), nonEmptyObject: /* @__PURE__ */ s((e) => Ee(M.nonEmptyObject(e), "non-empty object", e), "nonEmptyObject"), emptySet: /* @__PURE__ */ s((e) => Ee(M.emptySet(e), "empty set", e), "emptySet"), nonEmptySet: /* @__PURE__ */ s((e) => Ee(M.nonEmptySet(e), "non-empty set", e), "nonEmptySet"), emptyMap: /* @__PURE__ */ s((e) => Ee(M.emptyMap(e), "empty map", e), "emptyMap"), nonEmptyMap: /* @__PURE__ */ s((e) => Ee(M.nonEmptyMap(e), "non-empty map", e), "nonEmptyMap"), propertyKey: /* @__PURE__ */ s((e) => Ee(M.propertyKey(e), "PropertyKey", e), "propertyKey"), formData: /* @__PURE__ */ s((e) => Ee(M.formData(e), "FormData", e), "formData"), urlSearchParams: /* @__PURE__ */ s((e) => Ee(M.urlSearchParams(e), "URLSearchParams", e), "urlSearchParams"), // Numbers. evenInteger: /* @__PURE__ */ s((e) => Ee(M.evenInteger(e), "even integer", e), "evenInteger"), oddInteger: /* @__PURE__ */ s((e) => Ee(M.oddInteger(e), "odd integer", e), "oddInteger"), // Two arguments. directInstanceOf: /* @__PURE__ */ s((e, t) => Ee(M.directInstanceOf(e, t), "T", e), "directInstanceOf"), inRange: /* @__PURE__ */ s((e, t) => Ee(M.inRange(e, t), "in range", e), "inRange"), // Variadic functions. any: /* @__PURE__ */ s((e, ...t) => Ee(M.any(e, ...t), "predicate returns truthy for any value", t, { multipleValues: !0 }), "any"), all: /* @__PURE__ */ s((e, ...t) => Ee(M.all(e, ...t), "predicate returns truthy for all values", t, { multipleValues: !0 }), "all") }; Object.defineProperties(M, { class: { value: M.class_ }, function: { value: M.function_ }, null: { value: M.null_ } }); Object.defineProperties(ce, { class: { value: ce.class_ }, function: { value: ce.function_ }, null: { value: ce.null_ } }); var $ = M, tae = require("events"), rae = class extends Error { static { s(this, "CancelError"); } constructor(e) { super(e || "Promise was canceled"), this.name = "CancelError"; } get isCanceled() { return !0; } }, Ax = class { static { s(this, "PCancelable"); } static fn(e) { return (...t) => new Ax((r, i, n) => { t.push(n), e(...t).then(r, i); }); } constructor(e) { this._cancelHandlers = [], this._isPending = !0, this._isCanceled = !1, this._rejectOnCancel = !0, this._promise = new Promise((t, r) => { this._reject = r; let i = /* @__PURE__ */ s((o) => { (!this._isCanceled || !a.shouldReject) && (this._isPending = !1, t(o)); }, "onResolve"), n = /* @__PURE__ */ s((o) => { this._isPending = !1, r(o); }, "onReject"), a = /* @__PURE__ */ s((o) => { if (!this._isPending) throw new Error("The `onCancel` handler was attached after the promise settled."); this._cancelHandlers.push(o); }, "onCancel"); Object.defineProperties(a, { shouldReject: { get: /* @__PURE__ */ s(() => this._rejectOnCancel, "get"), set: /* @__PURE__ */ s((o) => { this._rejectOnCancel = o; }, "set") } }), e(i, n, a); }); } then(e, t) { return this._promise.then(e, t); } catch(e) { return this._promise.catch(e); } finally(e) { return this._promise.finally(e); } cancel(e) { if (!(!this._isPending || this._isCanceled)) { if (this._isCanceled = !0, this._cancelHandlers.length > 0) try { for (let t of this._cancelHandlers) t(); } catch (t) { this._reject(t); return; } this._rejectOnCancel && this._reject(new rae(e)); } } get isCanceled() { return this._isCanceled; } }; Object.setPrototypeOf(Ax.prototype, Promise.prototype); function iae(e) { return $.object(e) && "_onResponse" in e; } s(iae, "isRequest"); var _r = class extends Error { static { s(this, "RequestError"); } constructor(e, t, r) { var i; if (super(e), Object.defineProperty(this, "input", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "code", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "stack", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "response", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "request", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "timings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Error.captureStackTrace(this, this.constructor), this.name = "RequestError", this.code = t.code ?? "ERR_GOT_REQUEST_ERROR", this.input = t.input, iae(r) ? (Object.defineProperty(this, "request", { enumerable: !1, value: r }), Object.defineProperty(this, "response", { enumerable: !1, value: r.response }), this.options = r.options) : this.options = r, this.timings = (i = this.request) == null ? void 0 : i.timings, $.string(t.stack) && $.string(this.stack)) { let n = this.stack.indexOf(this.message) + this.message.length, a = this.stack.slice(n).split(` `).reverse(), o = t.stack.slice(t.stack.indexOf(t.message) + t.message.length).split(` `).reverse(); for (; o.length > 0 && o[0] === a[0]; ) a.shift(); this.stack = `${this.stack.slice(0, n)}${a.reverse().join(` `)}${o.reverse().join(` `)}`; } } }, nae = class extends _r { static { s(this, "MaxRedirectsError"); } constructor(e) { super(`Redirected ${e.options.maxRedirects} times. Aborting.`, {}, e), this.name = "MaxRedirectsError", this.code = "ERR_TOO_MANY_REDI\ RECTS"; } }, $m = class extends _r { static { s(this, "HTTPError"); } constructor(e) { super(`Response code ${e.statusCode} (${e.statusMessage})`, {}, e.request), this.name = "HTTPError", this.code = "ERR_NON_2XX_3XX_RESP\ ONSE"; } }, sae = class extends _r { static { s(this, "CacheError"); } constructor(e, t) { super(e.message, e, t), this.name = "CacheError", this.code = this.code === "ERR_GOT_REQUEST_ERROR" ? "ERR_CACHE_ACCESS" : this.code; } }, t4 = class extends _r { static { s(this, "UploadError"); } constructor(e, t) { super(e.message, e, t), this.name = "UploadError", this.code = this.code === "ERR_GOT_REQUEST_ERROR" ? "ERR_UPLOAD" : this.code; } }, aae = class extends _r { static { s(this, "TimeoutError"); } constructor(e, t, r) { super(e.message, e, r), Object.defineProperty(this, "timings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "event", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.name = "TimeoutError", this.event = e.event, this.timings = t; } }, r4 = class extends _r { static { s(this, "ReadError"); } constructor(e, t) { super(e.message, e, t), this.name = "ReadError", this.code = this.code === "ERR_GOT_REQUEST_ERROR" ? "ERR_READING_RESPONSE_STREAM" : this. code; } }, oae = class extends _r { static { s(this, "RetryError"); } constructor(e) { super("Retrying", {}, e), this.name = "RetryError", this.code = "ERR_RETRYING"; } }, uae = class extends _r { static { s(this, "AbortError"); } constructor(e) { super("This operation was aborted.", {}, e), this.code = "ERR_ABORTED", this.name = "AbortError"; } }, W4 = Tr(require("process"), 1), mx = require("buffer"), lae = require("stream"), i4 = require("url"), yx = Tr(require("http"), 1), cae = require("events"), fae = require("util"), dae = Tr(Sse(), 1), pae = /* @__PURE__ */ s((e) => { if (e.timings) return e.timings; let t = { start: Date.now(), socket: void 0, lookup: void 0, connect: void 0, secureConnect: void 0, upload: void 0, response: void 0, end: void 0, error: void 0, abort: void 0, phases: { wait: void 0, dns: void 0, tcp: void 0, tls: void 0, request: void 0, firstByte: void 0, download: void 0, total: void 0 } }; e.timings = t; let r = /* @__PURE__ */ s((o) => { o.once(cae.errorMonitor, () => { t.error = Date.now(), t.phases.total = t.error - t.start; }); }, "handleError"); r(e); let i = /* @__PURE__ */ s(() => { t.abort = Date.now(), t.phases.total = t.abort - t.start; }, "onAbort"); e.prependOnceListener("abort", i); let n = /* @__PURE__ */ s((o) => { if (t.socket = Date.now(), t.phases.wait = t.socket - t.start, fae.types.isProxy(o)) return; let u = /* @__PURE__ */ s(() => { t.lookup = Date.now(), t.phases.dns = t.lookup - t.socket; }, "lookupListener"); o.prependOnceListener("lookup", u), (0, dae.default)(o, { connect: /* @__PURE__ */ s(() => { t.connect = Date.now(), t.lookup === void 0 && (o.removeListener("lookup", u), t.lookup = t.connect, t.phases.dns = t.lookup - t.socket), t.phases.tcp = t.connect - t.lookup; }, "connect"), secureConnect: /* @__PURE__ */ s(() => { t.secureConnect = Date.now(), t.phases.tls = t.secureConnect - t.connect; }, "secureConnect") }); }, "onSocket"); e.socket ? n(e.socket) : e.prependOnceListener("socket", n); let a = /* @__PURE__ */ s(() => { t.upload = Date.now(), t.phases.request = t.upload - (t.secureConnect ?? t.connect); }, "onUpload"); return e.writableFinished ? a() : e.prependOnceListener("finish", a), e.prependOnceListener("response", (o) => { t.response = Date.now(), t.phases.firstByte = t.response - t.upload, o.timings = t, r(o), o.prependOnceListener("end", () => { e.off("abort", i), o.off("aborted", i), !t.phases.total && (t.end = Date.now(), t.phases.download = t.end - t.response, t.phases.total = t.end - t.start); }), o.prependOnceListener("aborted", i); }), t; }, "timer"), hae = pae, mae = Tr(require("events"), 1), Nm = Tr(require("url"), 1), yae = Tr(require("crypto"), 1), $4 = Tr(require("stream"), 1), gae = "text/plain", bae = "us-ascii", gx = /* @__PURE__ */ s((e, t) => t.some((r) => r instanceof RegExp ? r.test(e) : r === e), "test\ Parameter"), Dae = /* @__PURE__ */ new Set([ "https:", "http:", "file:" ]), vae = /* @__PURE__ */ s((e) => { try { let { protocol: t } = new URL(e); return t.endsWith(":") && !Dae.has(t); } catch { return !1; } }, "hasCustomProtocol"), Eae = /* @__PURE__ */ s((e, { stripHash: t }) => { var r; let i = /^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(e); if (!i) throw new Error(`Invalid URL: ${e}`); let { type: n, data: a, hash: o } = i.groups, u = n.split(";"); o = t ? "" : o; let l = !1; u[u.length - 1] === "base64" && (u.pop(), l = !0); let c = ((r = u.shift()) == null ? void 0 : r.toLowerCase()) ?? "", m = [ ...u.map((h) => { let [d, y = ""] = h.split("=").map((p) => p.trim()); return d === "charset" && (y = y.toLowerCase(), y === bae) ? "" : `${d}${y ? `=${y}` : ""}`; }).filter(Boolean) ]; return l && m.push("base64"), (m.length > 0 || c && c !== gae) && m.unshift(c), `data:${m.join(";")},${l ? a.trim() : a}${o ? `#${o}` : ""}`; }, "normalizeDataURL"); function xae(e, t) { if (t = { defaultProtocol: "http", normalizeProtocol: !0, forceHttp: !1, forceHttps: !1, stripAuthentication: !0, stripHash: !1, stripTextFragment: !0, stripWWW: !0, removeQueryParameters: [/^utm_\w+/i], removeTrailingSlash: !0, removeSingleSlash: !0, removeDirectoryIndex: !1, removeExplicitPort: !1, sortQueryParameters: !0, ...t }, typeof t.defaultProtocol == "string" && !t.defaultProtocol.endsWith(":") && (t.defaultProtocol = `${t.defaultProtocol}:`), e = e.trim(), /^data:/i.test(e)) return Eae(e, t); if (vae(e)) return e; let r = e.startsWith("//"); !r && /^\.*\//.test(e) || (e = e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//, t.defaultProtocol)); let n = new URL(e); if (t.forceHttp && t.forceHttps) throw new Error("The `forceHttp` and `forceHttps` options cannot be used together"); if (t.forceHttp && n.protocol === "https:" && (n.protocol = "http:"), t.forceHttps && n.protocol === "http:" && (n.protocol = "https:"), t.stripAuthentication && (n.username = "", n.password = ""), t.stripHash ? n.hash = "" : t.stripTextFragment && (n.hash = n.hash.replace( /#?:~:text.*?$/i, "")), n.pathname) { let o = /\b[a-z][a-z\d+\-.]{1,50}:\/\//g, u = 0, l = ""; for (; ; ) { let f = o.exec(n.pathname); if (!f) break; let m = f[0], h = f.index, d = n.pathname.slice(u, h); l += d.replace(/\/{2,}/g, "/"), l += m, u = h + m.length; } let c = n.pathname.slice(u, n.pathname.length); l += c.replace(/\/{2,}/g, "/"), n.pathname = l; } if (n.pathname) try { n.pathname = decodeURI(n.pathname); } catch { } if (t.removeDirectoryIndex === !0 && (t.removeDirectoryIndex = [/^index\.[a-z]+$/]), Array.isArray(t.removeDirectoryIndex) && t.removeDirectoryIndex. length > 0) { let o = n.pathname.split("/"), u = o[o.length - 1]; gx(u, t.removeDirectoryIndex) && (o = o.slice(0, -1), n.pathname = o.slice(1).join("/") + "/"); } if (n.hostname && (n.hostname = n.hostname.replace(/\.$/, ""), t.stripWWW && /^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(n. hostname) && (n.hostname = n.hostname.replace(/^www\./, ""))), Array.isArray(t.removeQueryParameters)) for (let o of [...n.searchParams.keys()]) gx(o, t.removeQueryParameters) && n.searchParams.delete(o); if (!Array.isArray(t.keepQueryParameters) && t.removeQueryParameters === !0 && (n.search = ""), Array.isArray(t.keepQueryParameters) && t. keepQueryParameters.length > 0) for (let o of [...n.searchParams.keys()]) gx(o, t.keepQueryParameters) || n.searchParams.delete(o); if (t.sortQueryParameters) { n.searchParams.sort(); try { n.search = decodeURIComponent(n.search); } catch { } } t.removeTrailingSlash && (n.pathname = n.pathname.replace(/\/$/, "")), t.removeExplicitPort && n.port && (n.port = ""); let a = e; return e = n.toString(), !t.removeSingleSlash && n.pathname === "/" && !a.endsWith("/") && n.hash === "" && (e = e.replace(/\/$/, "")), (t. removeTrailingSlash || n.pathname === "/") && n.hash === "" && t.removeSingleSlash && (e = e.replace(/\/$/, "")), r && !t.normalizeProtocol && (e = e.replace(/^http:\/\//, "//")), t.stripProtocol && (e = e.replace(/^(?:https?:)?\/\//, "")), e; } s(xae, "normalizeUrl"); var Sae = Tr(A4(), 1), bx = Tr(Cse(), 1), Tae = require("stream"); function Cx(e) { return Object.fromEntries(Object.entries(e).map(([t, r]) => [t.toLowerCase(), r])); } s(Cx, "lowercaseKeys"); var n4 = class extends Tae.Readable { static { s(this, "Response"); } statusCode; headers; body; url; constructor({ statusCode: e, headers: t, body: r, url: i }) { if (typeof e != "number") throw new TypeError("Argument `statusCode` should be a number"); if (typeof t != "object") throw new TypeError("Argument `headers` should be an object"); if (!(r instanceof Uint8Array)) throw new TypeError("Argument `body` should be a buffer"); if (typeof i != "string") throw new TypeError("Argument `url` should be a string"); super({ read() { this.push(r), this.push(null); } }), this.statusCode = e, this.headers = Cx(t), this.body = r, this.url = i; } }, Mm = Tr(Ase(), 1), Cae = [ "aborted", "complete", "headers", "httpVersion", "httpVersionMinor", "httpVersionMajor", "method", "rawHeaders", "rawTrailers", "setTimeout", "socket", "statusCode", "statusMessage", "trailers", "url" ]; function wae(e, t) { if (t._readableState.autoDestroy) throw new Error("The second stream must have the `autoDestroy` option set to `false`"); let r = /* @__PURE__ */ new Set([...Object.keys(e), ...Cae]), i = {}; for (let n of r) n in t || (i[n] = { get() { let a = e[n]; return typeof a == "function" ? a.bind(e) : a; }, set(a) { e[n] = a; }, enumerable: !0, configurable: !1 }); return Object.defineProperties(t, i), e.once("aborted", () => { t.destroy(), t.emit("aborted"); }), e.once("close", () => { e.complete && t.readable ? t.once("end", () => { t.emit("close"); }) : t.emit("close"); }), t; } s(wae, "mimicResponse"); var Aae = class extends Error { static { s(this, "RequestError2"); } constructor(e) { super(e.message), Object.assign(this, e); } }, zf = class extends Error { static { s(this, "CacheError2"); } constructor(e) { super(e.message), Object.assign(this, e); } }, _ae = class { static { s(this, "CacheableRequest"); } constructor(e, t) { this.hooks = /* @__PURE__ */ new Map(), this.request = () => (r, i) => { let n; if (typeof r == "string") n = Dx(Nm.default.parse(r)), r = {}; else if (r instanceof Nm.default.URL) n = Dx(Nm.default.parse(r.toString())), r = {}; else { let [m, ...h] = (r.path ?? "").split("?"), d = h.length > 0 ? `?${h.join("?")}` : ""; n = Dx({ ...r, pathname: m, search: d }); } r = { headers: {}, method: "GET", cache: !0, strictTtl: !1, automaticFailover: !1, ...r, ...Iae(n) }, r.headers = Object.fromEntries(Pae(r.headers).map(([m, h]) => [m.toLowerCase(), h])); let a = new mae.default(), o = xae(Nm.default.format(n), { stripWWW: !1, removeTrailingSlash: !1, stripAuthentication: !1 }), u = `${r.method}:${o}`; r.body && r.method !== void 0 && ["POST", "PATCH", "PUT"].includes(r.method) && (r.body instanceof $4.default.Readable ? r.cache = !1 : u += `:${yae.default.createHash("md5").update(r.body).digest("hex")}`); let l = !1, c = !1, f = /* @__PURE__ */ s((m) => { c = !0; let h = !1, d = /* @__PURE__ */ s(() => { }, "requestErrorCallback"), y = new Promise((g) => { d = /* @__PURE__ */ s(() => { h || (h = !0, g()); }, "requestErrorCallback"); }), p = /* @__PURE__ */ s(async (g) => { if (l) { g.status = g.statusCode; let D = bx.default.fromObject(l.cachePolicy).revalidatedPolicy(m, g); if (!D.modified) { g.resume(), await new Promise((S) => { g.once("end", S); }); let v = s4(D.policy.responseHeaders()); g = new n4({ statusCode: l.statusCode, headers: v, body: l.body, url: l.url }), g.cachePolicy = D.policy, g.fromCache = !0; } } g.fromCache || (g.cachePolicy = new bx.default(m, g, m), g.fromCache = !1); let b; m.cache && g.cachePolicy.storable() ? (b = Fae(g), (async () => { try { let D = Sae.default.buffer(g); await Promise.race([ y, new Promise((O) => g.once("end", O)), new Promise((O) => g.once("close", O)) // eslint-disable-line no-promise-executor-return ]); let v = await D, S = { url: g.url, statusCode: g.fromCache ? l.statusCode : g.statusCode, body: v, cachePolicy: g.cachePolicy.toObject() }, C = m.strictTtl ? g.cachePolicy.timeToLive() : void 0; if (m.maxTtl && (C = C ? Math.min(C, m.maxTtl) : m.maxTtl), this.hooks.size > 0) for (let O of this.hooks.keys()) S = await this.runHook(O, S, g); await this.cache.set(u, S, C); } catch (D) { a.emit("error", new zf(D)); } })()) : m.cache && l && (async () => { try { await this.cache.delete(u); } catch (D) { a.emit("error", new zf(D)); } })(), a.emit("response", b ?? g), typeof i == "function" && i(b ?? g); }, "handler"); try { let g = this.cacheRequest(m, p); g.once("error", d), g.once("abort", d), g.once("destroy", d), a.emit("request", g); } catch (g) { a.emit("error", new Aae(g)); } }, "makeRequest"); return (async () => { let m = /* @__PURE__ */ s(async (d) => { await Promise.resolve(); let y = d.cache ? await this.cache.get(u) : void 0; if (typeof y > "u" && !d.forceRefresh) { f(d); return; } let p = bx.default.fromObject(y.cachePolicy); if (p.satisfiesWithoutRevalidation(d) && !d.forceRefresh) { let g = s4(p.responseHeaders()), b = new n4({ statusCode: y.statusCode, headers: g, body: y.body, url: y.url }); b.cachePolicy = p, b.fromCache = !0, a.emit("response", b), typeof i == "function" && i(b); } else p.satisfiesWithoutRevalidation(d) && Date.now() >= p.timeToLive() && d.forceRefresh ? (await this.cache.delete(u), d.headers = p.revalidationHeaders(d), f(d)) : (l = y, d.headers = p.revalidationHeaders(d), f(d)); }, "get"), h = /* @__PURE__ */ s((d) => a.emit("error", new zf(d)), "errorHandler"); if (this.cache instanceof Mm.default) { let d = this.cache; d.once("error", h), a.on("error", () => d.removeListener("error", h)), a.on("response", () => d.removeListener("error", h)); } try { await m(r); } catch (d) { r.automaticFailover && !c && f(r), a.emit("error", new zf(d)); } })(), a; }, this.addHook = (r, i) => { this.hooks.has(r) || this.hooks.set(r, i); }, this.removeHook = (r) => this.hooks.delete(r), this.getHook = (r) => this.hooks.get(r), this.runHook = async (r, ...i) => { var n; return (n = this.hooks.get(r)) == null ? void 0 : n(...i); }, t instanceof Mm.default ? this.cache = t : typeof t == "string" ? this.cache = new Mm.default({ uri: t, namespace: "cacheable-request" }) : this.cache = new Mm.default({ store: t, namespace: "cacheable-request" }), this.request = this.request.bind(this), this.cacheRequest = e; } }, Pae = Object.entries, Fae = /* @__PURE__ */ s((e) => { let t = new $4.PassThrough({ autoDestroy: !1 }); return wae(e, t), e.pipe(t); }, "cloneResponse"), Iae = /* @__PURE__ */ s((e) => { let t = { ...e }; return t.path = `${e.pathname || "/"}${e.search || ""}`, delete t.pathname, delete t.search, t; }, "urlObjectToRequestOptions"), Dx = /* @__PURE__ */ s((e) => ( // If url was parsed by url.parse or new URL: // - hostname will be set // - host will be hostname[:port] // - port will be set if it was explicit in the parsed string // Otherwise, url was from request options: // - hostname or host may be set // - host shall not have port encoded { protocol: e.protocol, auth: e.auth, hostname: e.hostname || e.host || "localhost", port: e.port, pathname: e.pathname, search: e.search } ), "normalizeUrlObject"), s4 = /* @__PURE__ */ s((e) => { let t = []; for (let r of Object.keys(e)) t[r.toLowerCase()] = e[r]; return t; }, "convertHeaders"), Oae = _ae, kae = Tr(Pse(), 1), Bae = Tr(A4(), 1), Ns = /* @__PURE__ */ s((e) => typeof e == "function", "isFunction"), Nae = /* @__PURE__ */ s((e) => Ns(e[Symbol.asyncIterator]), "isAsyncIterable"); async function* Mae(e) { let t = e.getReader(); for (; ; ) { let { done: r, value: i } = await t.read(); if (r) break; yield i; } } s(Mae, "readStream"); var Rae = /* @__PURE__ */ s((e) => { if (Nae(e)) return e; if (Ns(e.getReader)) return Mae(e); throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable."); }, "getStreamIterator"), a4 = "abcdefghijklmnopqrstuvwxyz0123456789"; function jae() { let e = 16, t = ""; for (; e--; ) t += a4[Math.random() * a4.length << 0]; return t; } s(jae, "createBoundary"); var o4 = /* @__PURE__ */ s((e) => String(e).replace(/\r|\n/g, (t, r, i) => t === "\r" && i[r + 1] !== ` ` || t === ` ` && i[r - 1] !== "\r" ? `\r ` : t), "normalizeValue"), Lae = /* @__PURE__ */ s((e) => Object.prototype.toString.call(e).slice(8, -1).toLowerCase(), "getType"); function u4(e) { if (Lae(e) !== "object") return !1; let t = Object.getPrototypeOf(e); return t == null ? !0 : (t.constructor && t.constructor.toString()) === Object.toString(); } s(u4, "isPlainObject"); function l4(e, t) { if (typeof t == "string") { for (let [r, i] of Object.entries(e)) if (t.toLowerCase() === r.toLowerCase()) return i; } } s(l4, "getProperty"); var qae = /* @__PURE__ */ s((e) => new Proxy(e, { get: /* @__PURE__ */ s((t, r) => l4(t, r), "get"), has: /* @__PURE__ */ s((t, r) => l4(t, r) !== void 0, "has") }), "proxyHeaders"), _x = /* @__PURE__ */ s((e) => !!(e && Ns(e.constructor) && e[Symbol.toStringTag] === "FormData" && Ns(e.append) && Ns( e.getAll) && Ns(e.entries) && Ns(e[Symbol.iterator])), "isFormData"), c4 = /* @__PURE__ */ s((e) => String(e).replace(/\r/g, "%0D").replace( /\n/g, "%0A").replace(/"/g, "%22"), "escapeName"), Io = /* @__PURE__ */ s((e) => !!(e && typeof e == "object" && Ns(e.constructor) && e[Symbol. toStringTag] === "File" && Ns(e.stream) && e.name != null), "isFile"), Uf = /* @__PURE__ */ s(function(e, t, r, i, n) { if (i === "m") throw new TypeError("Private method is not writable"); if (i === "a" && !n) throw new TypeError("Private accessor was defined without a setter"); if (typeof t == "function" ? e !== t || !n : !t.has(e)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); return i === "a" ? n.call(e, r) : n ? n.value = r : t.set(e, r), r; }, "__classPrivateFieldSet"), Gt = /* @__PURE__ */ s(function(e, t, r, i) { if (r === "a" && !i) throw new TypeError("Private accessor was defined without a getter"); if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); return r === "m" ? i : r === "a" ? i.call(e) : i ? i.value : t.get(e); }, "__classPrivateFieldGet"), Wf, Aa, $f, Rm, Vf, Oo, Hf, Kf, jm, vx, f4, Uae = { enableAdditionalHeaders: !1 }, Lm = { writable: !1, configurable: !1 }, Wae = class { static { s(this, "FormDataEncoder"); } constructor(e, t, r) { if (Wf.add(this), Aa.set(this, `\r `), $f.set(this, void 0), Rm.set(this, void 0), Vf.set(this, "-".repeat(2)), Oo.set(this, new TextEncoder()), Hf.set(this, void 0), Kf.set(this, void 0), jm.set(this, void 0), !_x(e)) throw new TypeError("Expected first argument to be a FormData instance."); let i; if (u4(t) ? r = t : i = t, i || (i = jae()), typeof i != "string") throw new TypeError("Expected boundary argument to be a string."); if (r && !u4(r)) throw new TypeError("Expected options argument to be an object."); Uf(this, Kf, Array.from(e.entries()), "f"), Uf(this, jm, { ...Uae, ...r }, "f"), Uf(this, $f, Gt(this, Oo, "f").encode(Gt(this, Aa, "f")), "f"), Uf(this, Rm, Gt(this, $f, "f").byteLength, "f"), this.boundary = `form-data-boundary-${i}`, this.contentType = `multipart/form-d\ ata; boundary=${this.boundary}`, Uf(this, Hf, Gt(this, Oo, "f").encode(`${Gt(this, Vf, "f")}${this.boundary}${Gt(this, Vf, "f")}${Gt(this, Aa, "f").repeat(2)}`), "f"); let n = { "Content-Type": this.contentType }, a = Gt(this, Wf, "m", f4).call(this); a && (this.contentLength = a, n["Content-Length"] = a), this.headers = qae(Object.freeze(n)), Object.defineProperties(this, { boundary: Lm, contentType: Lm, contentLength: Lm, headers: Lm }); } getContentLength() { return this.contentLength == null ? void 0 : Number(this.contentLength); } *values() { for (let [e, t] of Gt(this, Kf, "f")) { let r = Io(t) ? t : Gt(this, Oo, "f").encode(o4(t)); yield Gt(this, Wf, "m", vx).call(this, e, r), yield r, yield Gt(this, $f, "f"); } yield Gt(this, Hf, "f"); } async *encode() { for (let e of this.values()) Io(e) ? yield* Rae(e.stream()) : yield e; } [(Aa = /* @__PURE__ */ new WeakMap(), $f = /* @__PURE__ */ new WeakMap(), Rm = /* @__PURE__ */ new WeakMap(), Vf = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), Hf = /* @__PURE__ */ new WeakMap(), Kf = /* @__PURE__ */ new WeakMap(), jm = /* @__PURE__ */ new WeakMap(), Wf = /* @__PURE__ */ new WeakSet(), vx = /* @__PURE__ */ s(function(t, r) { let i = ""; i += `${Gt(this, Vf, "f")}${this.boundary}${Gt(this, Aa, "f")}`, i += `Content-Disposition: form-data; name="${c4(t)}"`, Io(r) && (i += `; filename="${c4(r.name)}"${Gt(this, Aa, "f")}`, i += `Content-Type: ${r.type || "application/octet-stream"}`); let n = Io(r) ? r.size : r.byteLength; return Gt(this, jm, "f").enableAdditionalHeaders === !0 && n != null && !isNaN(n) && (i += `${Gt(this, Aa, "f")}Content-Length: ${Io(r) ? r.size : r.byteLength}`), Gt(this, Oo, "f").encode(`${i}${Gt(this, Aa, "f").repeat(2)}`); }, "_FormDataEncoder_getFieldHeader2"), f4 = /* @__PURE__ */ s(function() { let t = 0; for (let [r, i] of Gt(this, Kf, "f")) { let n = Io(i) ? i : Gt(this, Oo, "f").encode(o4(i)), a = Io(n) ? n.size : n.byteLength; if (a == null || isNaN(a)) return; t += Gt(this, Wf, "m", vx).call(this, r, n).byteLength, t += a, t += Gt(this, Rm, "f"); } return String(t + Gt(this, Hf, "f").byteLength); }, "_FormDataEncoder_getContentLength2"), Symbol.iterator)]() { return this.values(); } [Symbol.asyncIterator]() { return this.encode(); } }, $ae = require("buffer"), Vae = require("util"); function V4(e) { return $.nodeStream(e) && $.function_(e.getBoundary); } s(V4, "isFormData2"); async function Hae(e, t) { if (t && "content-length" in t) return Number(t["content-length"]); if (!e) return 0; if ($.string(e)) return $ae.Buffer.byteLength(e); if ($.buffer(e)) return e.length; if (V4(e)) return (0, Vae.promisify)(e.getLength.bind(e))(); } s(Hae, "getBodySize"); function H4(e, t, r) { let i = {}; for (let n of r) { let a = /* @__PURE__ */ s((...o) => { t.emit(n, ...o); }, "eventFunction"); i[n] = a, e.on(n, a); } return () => { for (let [n, a] of Object.entries(i)) e.off(n, a); }; } s(H4, "proxyEvents"); var Kae = Tr(require("net"), 1); function zae() { let e = []; return { once(t, r, i) { t.once(r, i), e.push({ origin: t, event: r, fn: i }); }, unhandleAll() { for (let t of e) { let { origin: r, event: i, fn: n } = t; r.removeListener(i, n); } e.length = 0; } }; } s(zae, "unhandle"); var d4 = Symbol("reentry"), Gae = /* @__PURE__ */ s(() => { }, "noop"), K4 = class extends Error { static { s(this, "TimeoutError2"); } constructor(e, t) { super(`Timeout awaiting '${t}' for ${e}ms`), Object.defineProperty(this, "event", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "code", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.name = "TimeoutError", this.code = "ETIMEDOUT"; } }; function Jae(e, t, r) { if (d4 in e) return Gae; e[d4] = !0; let i = [], { once: n, unhandleAll: a } = zae(), o = /* @__PURE__ */ s((p, g, b) => { var D; let v = setTimeout(g, p, p, b); (D = v.unref) == null || D.call(v); let S = /* @__PURE__ */ s(() => { clearTimeout(v); }, "cancel"); return i.push(S), S; }, "addTimeout"), { host: u, hostname: l } = r, c = /* @__PURE__ */ s((p, g) => { e.destroy(new K4(p, g)); }, "timeoutHandler"), f = /* @__PURE__ */ s(() => { for (let p of i) p(); a(); }, "cancelTimeouts"); if (e.once("error", (p) => { if (f(), e.listenerCount("error") === 0) throw p; }), typeof t.request < "u") { let p = o(t.request, c, "request"); n(e, "response", (g) => { n(g, "end", p); }); } if (typeof t.socket < "u") { let { socket: p } = t, g = /* @__PURE__ */ s(() => { c(p, "socket"); }, "socketTimeoutHandler"); e.setTimeout(p, g), i.push(() => { e.removeListener("timeout", g); }); } let m = typeof t.lookup < "u", h = typeof t.connect < "u", d = typeof t.secureConnect < "u", y = typeof t.send < "u"; return (m || h || d || y) && n(e, "socket", (p) => { let { socketPath: g } = e; if (p.connecting) { let b = !!(g ?? Kae.default.isIP(l ?? u ?? "") !== 0); if (m && !b && typeof p.address().address > "u") { let D = o(t.lookup, c, "lookup"); n(p, "lookup", D); } if (h) { let D = /* @__PURE__ */ s(() => o(t.connect, c, "connect"), "timeConnect"); b ? n(p, "connect", D()) : n(p, "lookup", (v) => { v === null && n(p, "connect", D()); }); } d && r.protocol === "https:" && n(p, "connect", () => { let D = o(t.secureConnect, c, "secureConnect"); n(p, "secureConnect", D); }); } if (y) { let b = /* @__PURE__ */ s(() => o(t.send, c, "send"), "timeRequest"); p.connecting ? n(p, "connect", () => { n(e, "upload-complete", b()); }) : n(e, "upload-complete", b()); } }), typeof t.response < "u" && n(e, "upload-complete", () => { let p = o(t.response, c, "response"); n(e, "response", p); }), typeof t.read < "u" && n(e, "response", (p) => { let g = o(t.read, c, "read"); n(p, "end", g); }), f; } s(Jae, "timedOut"); function Xae(e) { e = e; let t = { protocol: e.protocol, hostname: $.string(e.hostname) && e.hostname.startsWith("[") ? e.hostname.slice(1, -1) : e.hostname, host: e.host, hash: e.hash, search: e.search, pathname: e.pathname, href: e.href, path: `${e.pathname || ""}${e.search || ""}` }; return $.string(e.port) && e.port.length > 0 && (t.port = Number(e.port)), (e.username || e.password) && (t.auth = `${e.username || ""}:${e. password || ""}`), t; } s(Xae, "urlToOptions"); var Yae = class { static { s(this, "WeakableMap"); } constructor() { Object.defineProperty(this, "weakMap", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "map", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.weakMap = /* @__PURE__ */ new WeakMap(), this.map = /* @__PURE__ */ new Map(); } set(e, t) { typeof e == "object" ? this.weakMap.set(e, t) : this.map.set(e, t); } get(e) { return typeof e == "object" ? this.weakMap.get(e) : this.map.get(e); } has(e) { return typeof e == "object" ? this.weakMap.has(e) : this.map.has(e); } }, Zae = /* @__PURE__ */ s(({ attemptCount: e, retryOptions: t, error: r, retryAfter: i, computedValue: n }) => { if (r.name === "RetryError") return 1; if (e > t.limit) return 0; let a = t.methods.includes(r.options.method), o = t.errorCodes.includes(r.code), u = r.response && t.statusCodes.includes(r.response.statusCode); if (!a || !o && !u) return 0; if (r.response) { if (i) return i > n ? 0 : i; if (r.response.statusCode === 413) return 0; } let l = Math.random() * t.noise; return Math.min(2 ** (e - 1) * 1e3, t.backoffLimit) + l; }, "calculateRetryDelay"), Qae = Zae, eoe = Tr(require("process"), 1), Ex = require("util"), ko = require("url"), toe = require("tls"), roe = Tr( require("http"), 1), ioe = Tr(require("https"), 1), El = require("dns"), xx = require("util"), noe = Tr(require("os"), 1), { Resolver: p4 } = El. promises, vl = Symbol("cacheableLookupCreateConnection"), Sx = Symbol("cacheableLookupInstance"), h4 = Symbol("expires"), soe = typeof El. ALL == "number", m4 = /* @__PURE__ */ s((e) => { if (!(e && typeof e.createConnection == "function")) throw new Error("Expected an Agent instance as the first argument"); }, "verifyAgent"), aoe = /* @__PURE__ */ s((e) => { for (let t of e) t.family !== 6 && (t.address = `::ffff:${t.address}`, t.family = 6); }, "map4to6"), y4 = /* @__PURE__ */ s(() => { let e = !1, t = !1; for (let r of Object.values(noe.default.networkInterfaces())) for (let i of r) if (!i.internal && (i.family === "IPv6" ? t = !0 : e = !0, e && t)) return { has4: e, has6: t }; return { has4: e, has6: t }; }, "getIfaceInfo"), ooe = /* @__PURE__ */ s((e) => Symbol.iterator in e, "isIterable"), qm = /* @__PURE__ */ s((e) => e.catch((t) => { if (t.code === "ENODATA" || t.code === "ENOTFOUND" || t.code === "ENOENT") return []; throw t; }), "ignoreNoResultErrors"), g4 = { ttl: !0 }, uoe = { all: !0 }, loe = { all: !0, family: 4 }, coe = { all: !0, family: 6 }, foe = class { static { s(this, "CacheableLookup"); } constructor({ cache: e = /* @__PURE__ */ new Map(), maxTtl: t = 1 / 0, fallbackDuration: r = 3600, errorTtl: i = 0.15, resolver: n = new p4(), lookup: a = El.lookup } = {}) { if (this.maxTtl = t, this.errorTtl = i, this._cache = e, this._resolver = n, this._dnsLookup = a && (0, xx.promisify)(a), this.stats = { cache: 0, query: 0 }, this._resolver instanceof p4 ? (this._resolve4 = this._resolver.resolve4.bind(this._resolver), this._resolve6 = this._resolver.resolve6. bind(this._resolver)) : (this._resolve4 = (0, xx.promisify)(this._resolver.resolve4.bind(this._resolver)), this._resolve6 = (0, xx.promisify)( this._resolver.resolve6.bind(this._resolver))), this._iface = y4(), this._pending = {}, this._nextRemovalTime = !1, this._hostnamesToFallback = /* @__PURE__ */ new Set(), this.fallbackDuration = r, r > 0) { let o = setInterval(() => { this._hostnamesToFallback.clear(); }, r * 1e3); o.unref && o.unref(), this._fallbackInterval = o; } this.lookup = this.lookup.bind(this), this.lookupAsync = this.lookupAsync.bind(this); } set servers(e) { this.clear(), this._resolver.setServers(e); } get servers() { return this._resolver.getServers(); } lookup(e, t, r) { if (typeof t == "function" ? (r = t, t = {}) : typeof t == "number" && (t = { family: t }), !r) throw new Error("Callback must be a function."); this.lookupAsync(e, t).then((i) => { t.all ? r(null, i) : r(null, i.address, i.family, i.expires, i.ttl, i.source); }, r); } async lookupAsync(e, t = {}) { typeof t == "number" && (t = { family: t }); let r = await this.query(e); if (t.family === 6) { let i = r.filter((n) => n.family === 6); t.hints & El.V4MAPPED && (soe && t.hints & El.ALL || i.length === 0) ? aoe(r) : r = i; } else t.family === 4 && (r = r.filter((i) => i.family === 4)); if (t.hints & El.ADDRCONFIG) { let { _iface: i } = this; r = r.filter((n) => n.family === 6 ? i.has6 : i.has4); } if (r.length === 0) { let i = new Error(`cacheableLookup ENOTFOUND ${e}`); throw i.code = "ENOTFOUND", i.hostname = e, i; } return t.all ? r : r[0]; } async query(e) { let t = "cache", r = await this._cache.get(e); if (r && this.stats.cache++, !r) { let i = this._pending[e]; if (i) this.stats.cache++, r = await i; else { t = "query"; let n = this.queryAndCache(e); this._pending[e] = n, this.stats.query++; try { r = await n; } finally { delete this._pending[e]; } } } return r = r.map((i) => ({ ...i, source: t })), r; } async _resolve(e) { let [t, r] = await Promise.all([ qm(this._resolve4(e, g4)), qm(this._resolve6(e, g4)) ]), i = 0, n = 0, a = 0, o = Date.now(); for (let u of t) u.family = 4, u.expires = o + u.ttl * 1e3, i = Math.max(i, u.ttl); for (let u of r) u.family = 6, u.expires = o + u.ttl * 1e3, n = Math.max(n, u.ttl); return t.length > 0 ? r.length > 0 ? a = Math.min(i, n) : a = i : a = n, { entries: [ ...t, ...r ], cacheTtl: a }; } async _lookup(e) { try { let [t, r] = await Promise.all([ // Passing {all: true} doesn't return all IPv4 and IPv6 entries. // See https://github.com/szmarczak/cacheable-lookup/issues/42 qm(this._dnsLookup(e, loe)), qm(this._dnsLookup(e, coe)) ]); return { entries: [ ...t, ...r ], cacheTtl: 0 }; } catch { return { entries: [], cacheTtl: 0 }; } } async _set(e, t, r) { if (this.maxTtl > 0 && r > 0) { r = Math.min(r, this.maxTtl) * 1e3, t[h4] = Date.now() + r; try { await this._cache.set(e, t, r); } catch (i) { this.lookupAsync = async () => { let n = new Error("Cache Error. Please recreate the CacheableLookup instance."); throw n.cause = i, n; }; } ooe(this._cache) && this._tick(r); } } async queryAndCache(e) { if (this._hostnamesToFallback.has(e)) return this._dnsLookup(e, uoe); let t = await this._resolve(e); t.entries.length === 0 && this._dnsLookup && (t = await this._lookup(e), t.entries.length !== 0 && this.fallbackDuration > 0 && this._hostnamesToFallback. add(e)); let r = t.entries.length === 0 ? this.errorTtl : t.cacheTtl; return await this._set(e, t.entries, r), t.entries; } _tick(e) { let t = this._nextRemovalTime; (!t || e < t) && (clearTimeout(this._removalTimeout), this._nextRemovalTime = e, this._removalTimeout = setTimeout(() => { this._nextRemovalTime = !1; let r = 1 / 0, i = Date.now(); for (let [n, a] of this._cache) { let o = a[h4]; i >= o ? this._cache.delete(n) : o < r && (r = o); } r !== 1 / 0 && this._tick(r - i); }, e), this._removalTimeout.unref && this._removalTimeout.unref()); } install(e) { if (m4(e), vl in e) throw new Error("CacheableLookup has been already installed"); e[vl] = e.createConnection, e[Sx] = this, e.createConnection = (t, r) => ("lookup" in t || (t.lookup = this.lookup), e[vl](t, r)); } uninstall(e) { if (m4(e), e[vl]) { if (e[Sx] !== this) throw new Error("The agent is not owned by this CacheableLookup instance"); e.createConnection = e[vl], delete e[vl], delete e[Sx]; } } updateInterfaceInfo() { let { _iface: e } = this; this._iface = y4(), (e.has4 && !this._iface.has4 || e.has6 && !this._iface.has6) && this._cache.clear(); } clear(e) { if (e) { this._cache.delete(e); return; } this._cache.clear(); } }, doe = Tr(qse(), 1); function poe(e) { let t = [], r = e.split(","); for (let i of r) { let [n, ...a] = i.split(";"), o = n.trim(); if (o[0] !== "<" || o[o.length - 1] !== ">") throw new Error(`Invalid format of the Link header reference: ${o}`); let u = o.slice(1, -1), l = {}; if (a.length === 0) throw new Error(`Unexpected end of Link header parameters: ${a.join(";")}`); for (let c of a) { let f = c.trim(), m = f.indexOf("="); if (m === -1) throw new Error(`Failed to parse Link header: ${e}`); let h = f.slice(0, m).trim(), d = f.slice(m + 1).trim(); l[h] = d; } t.push({ reference: u, parameters: l }); } return t; } s(poe, "parseLinkHeader"); var [b4, hoe] = eoe.default.versions.node.split(".").map(Number); function moe(e) { for (let t in e) { let r = e[t]; ce.any([$.string, $.number, $.boolean, $.null_, $.undefined], r); } } s(moe, "validateSearchParameters"); var yoe = /* @__PURE__ */ new Map(), Um, goe = /* @__PURE__ */ s(() => Um || (Um = new foe(), Um), "getGlobalDnsCache"), boe = { request: void 0, agent: { http: void 0, https: void 0, http2: void 0 }, h2session: void 0, decompress: !0, timeout: { connect: void 0, lookup: void 0, read: void 0, request: void 0, response: void 0, secureConnect: void 0, send: void 0, socket: void 0 }, prefixUrl: "", body: void 0, form: void 0, json: void 0, cookieJar: void 0, ignoreInvalidCookies: !1, searchParams: void 0, dnsLookup: void 0, dnsCache: void 0, context: {}, hooks: { init: [], beforeRequest: [], beforeError: [], beforeRedirect: [], beforeRetry: [], afterResponse: [] }, followRedirect: !0, maxRedirects: 10, cache: void 0, throwHttpErrors: !0, username: "", password: "", http2: !1, allowGetBody: !1, headers: { "user-agent": "got (https://github.com/sindresorhus/got)" }, methodRewriting: !1, dnsLookupIpVersion: void 0, parseJson: JSON.parse, stringifyJson: JSON.stringify, retry: { limit: 2, methods: [ "GET", "PUT", "HEAD", "DELETE", "OPTIONS", "TRACE" ], statusCodes: [ 408, 413, 429, 500, 502, 503, 504, 521, 522, 524 ], errorCodes: [ "ETIMEDOUT", "ECONNRESET", "EADDRINUSE", "ECONNREFUSED", "EPIPE", "ENOTFOUND", "ENETUNREACH", "EAI_AGAIN" ], maxRetryAfter: void 0, calculateDelay: /* @__PURE__ */ s(({ computedValue: e }) => e, "calculateDelay"), backoffLimit: Number.POSITIVE_INFINITY, noise: 100 }, localAddress: void 0, method: "GET", createConnection: void 0, cacheOptions: { shared: void 0, cacheHeuristic: void 0, immutableMinTimeToLive: void 0, ignoreCargoCult: void 0 }, https: { alpnProtocols: void 0, rejectUnauthorized: void 0, checkServerIdentity: void 0, certificateAuthority: void 0, key: void 0, certificate: void 0, passphrase: void 0, pfx: void 0, ciphers: void 0, honorCipherOrder: void 0, minVersion: void 0, maxVersion: void 0, signatureAlgorithms: void 0, tlsSessionLifetime: void 0, dhparam: void 0, ecdhCurve: void 0, certificateRevocationLists: void 0 }, encoding: void 0, resolveBodyOnly: !1, isStream: !1, responseType: "text", url: void 0, pagination: { transform(e) { return e.request.options.responseType === "json" ? e.body : JSON.parse(e.body); }, paginate({ response: e }) { let t = e.headers.link; if (typeof t != "string" || t.trim() === "") return !1; let i = poe(t).find((n) => n.parameters.rel === "next" || n.parameters.rel === '"next"'); return i ? { url: new ko.URL(i.reference, e.url) } : !1; }, filter: /* @__PURE__ */ s(() => !0, "filter"), shouldContinue: /* @__PURE__ */ s(() => !0, "shouldContinue"), countLimit: Number.POSITIVE_INFINITY, backoff: 0, requestLimit: 1e4, stackAllItems: !1 }, setHost: !0, maxHeaderSize: void 0, signal: void 0, enableUnixSockets: !0 }, Doe = /* @__PURE__ */ s((e) => { let { hooks: t, retry: r } = e, i = { ...e, context: { ...e.context }, cacheOptions: { ...e.cacheOptions }, https: { ...e.https }, agent: { ...e.agent }, headers: { ...e.headers }, retry: { ...r, errorCodes: [...r.errorCodes], methods: [...r.methods], statusCodes: [...r.statusCodes] }, timeout: { ...e.timeout }, hooks: { init: [...t.init], beforeRequest: [...t.beforeRequest], beforeError: [...t.beforeError], beforeRedirect: [...t.beforeRedirect], beforeRetry: [...t.beforeRetry], afterResponse: [...t.afterResponse] }, searchParams: e.searchParams ? new ko.URLSearchParams(e.searchParams) : void 0, pagination: { ...e.pagination } }; return i.url !== void 0 && (i.prefixUrl = ""), i; }, "cloneInternals"), voe = /* @__PURE__ */ s((e) => { let { hooks: t, retry: r } = e, i = { ...e }; return $.object(e.context) && (i.context = { ...e.context }), $.object(e.cacheOptions) && (i.cacheOptions = { ...e.cacheOptions }), $.object( e.https) && (i.https = { ...e.https }), $.object(e.cacheOptions) && (i.cacheOptions = { ...i.cacheOptions }), $.object(e.agent) && (i.agent = { ...e.agent }), $.object(e.headers) && (i.headers = { ...e.headers }), $.object(r) && (i.retry = { ...r }, $.array(r.errorCodes) && (i. retry.errorCodes = [...r.errorCodes]), $.array(r.methods) && (i.retry.methods = [...r.methods]), $.array(r.statusCodes) && (i.retry.statusCodes = [...r.statusCodes])), $.object(e.timeout) && (i.timeout = { ...e.timeout }), $.object(t) && (i.hooks = { ...t }, $.array(t.init) && (i.hooks.init = [...t.init]), $.array(t.beforeRequest) && (i.hooks.beforeRequest = [...t.beforeRequest]), $.array( t.beforeError) && (i.hooks.beforeError = [...t.beforeError]), $.array(t.beforeRedirect) && (i.hooks.beforeRedirect = [...t.beforeRedirect]), $.array(t.beforeRetry) && (i.hooks.beforeRetry = [...t.beforeRetry]), $.array(t.afterResponse) && (i.hooks.afterResponse = [...t.afterResponse])), $.object(e.pagination) && (i.pagination = { ...e.pagination }), i; }, "cloneRaw"), Eoe = /* @__PURE__ */ s((e) => { let t = [e.timeout.socket, e.timeout.connect, e.timeout.lookup, e.timeout.request, e.timeout.secureConnect].filter((r) => typeof r == "n\ umber"); if (t.length > 0) return Math.min(...t); }, "getHttp2TimeoutOption"), D4 = /* @__PURE__ */ s((e, t, r) => { var i; let n = (i = e.hooks) == null ? void 0 : i.init; if (n) for (let a of n) a(t, r); }, "init"), Ms = class { static { s(this, "Options"); } constructor(e, t, r) { if (Object.defineProperty(this, "_unixOptions", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_internals", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_merging", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_init", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), ce.any([$.string, $.urlInstance, $.object, $.undefined], e), ce.any([$.object, $.undefined], t), ce.any([$.object, $.undefined], r), e instanceof Ms || t instanceof Ms) throw new TypeError("The defaults must be passed as the third argument"); this._internals = Doe(r?._internals ?? r ?? boe), this._init = [...r?._init ?? []], this._merging = !1, this._unixOptions = void 0; try { if ($.plainObject(e)) try { this.merge(e), this.merge(t); } finally { this.url = e.url; } else try { this.merge(t); } finally { if (t?.url !== void 0) if (e === void 0) this.url = t.url; else throw new TypeError("The `url` option is mutually exclusive with the `input` argument"); else e !== void 0 && (this.url = e); } } catch (i) { throw i.options = this, i; } } merge(e) { if (e) { if (e instanceof Ms) { for (let t of e._init) this.merge(t); return; } e = voe(e), D4(this, e, this), D4(e, e, this), this._merging = !0, "isStream" in e && (this.isStream = e.isStream); try { let t = !1; for (let r in e) if (!(r === "mutableDefaults" || r === "handlers") && r !== "url") { if (!(r in this)) throw new Error(`Unexpected option: ${r}`); this[r] = e[r], t = !0; } t && this._init.push(e); } finally { this._merging = !1; } } } /** Custom request function. The main purpose of this is to [support HTTP2 using a wrapper](https://github.com/szmarczak/http2-wrapper). @default http.request | https.request */ get request() { return this._internals.request; } set request(e) { ce.any([$.function_, $.undefined], e), this._internals.request = e; } /** An object representing `http`, `https` and `http2` keys for [`http.Agent`](https://nodejs.org/api/http.html#http_class_http_agent), [`https.Agent`](https://nodejs.org/api/https.html#https_class_https_agent) and [`http2wrapper.Agent`](https://github.com/szmarczak/http2-wrapper#new-http2agentoptions) instance. This is necessary because a request to one protocol might redirect to another. In such a scenario, Got will switch over to the right protocol agent for you. If a key is not present, it will default to a global agent. @example ``` import got from 'got'; import HttpAgent from 'agentkeepalive'; const {HttpsAgent} = HttpAgent; await got('https://sindresorhus.com', { agent: { http: new HttpAgent(), https: new HttpsAgent() } }); ``` */ get agent() { return this._internals.agent; } set agent(e) { ce.plainObject(e); for (let t in e) { if (!(t in this._internals.agent)) throw new TypeError(`Unexpected agent option: ${t}`); ce.any([$.object, $.undefined], e[t]); } this._merging ? Object.assign(this._internals.agent, e) : this._internals.agent = { ...e }; } get h2session() { return this._internals.h2session; } set h2session(e) { this._internals.h2session = e; } /** Decompress the response automatically. This will set the `accept-encoding` header to `gzip, deflate, br` unless you set it yourself. If this is disabled, a compressed response is returned as a `Buffer`. This may be useful if you want to handle decompression yourself or stream the raw compressed data. @default true */ get decompress() { return this._internals.decompress; } set decompress(e) { ce.boolean(e), this._internals.decompress = e; } /** Milliseconds to wait for the server to end the response before aborting the request with `got.TimeoutError` error (a.k.a. `request` property). By default, there's no timeout. This also accepts an `object` with the following fields to constrain the duration of each phase of the request lifecycle: - `lookup` starts when a socket is assigned and ends when the hostname has been resolved. Does not apply when using a Unix domain socket. - `connect` starts when `lookup` completes (or when the socket is assigned if lookup does not apply to the request) and ends when the socket is connected. - `secureConnect` starts when `connect` completes and ends when the handshaking process completes (HTTPS only). - `socket` starts when the socket is connected. See [request.setTimeout](https://nodejs.org/api/http.html#http_request_settimeout_timeout_callback). - `response` starts when the request has been written to the socket and ends when the response headers are received. - `send` starts when the socket is connected and ends with the request has been written to the socket. - `request` starts when the request is initiated and ends when the response's end event fires. */ get timeout() { return this._internals.timeout; } set timeout(e) { ce.plainObject(e); for (let t in e) { if (!(t in this._internals.timeout)) throw new Error(`Unexpected timeout option: ${t}`); ce.any([$.number, $.undefined], e[t]); } this._merging ? Object.assign(this._internals.timeout, e) : this._internals.timeout = { ...e }; } /** When specified, `prefixUrl` will be prepended to `url`. The prefix can be any valid URL, either relative or absolute. A trailing slash `/` is optional - one will be added automatically. __Note__: `prefixUrl` will be ignored if the `url` argument is a URL instance. __Note__: Leading slashes in `input` are disallowed when using this option to enforce consistency and avoid confusion. For example, when the prefix URL is `https://example.com/foo` and the input is `/bar`, there's ambiguity whether the resulting URL would become `https://example.com/foo/bar` or `https://example.com/bar`. The latter is used by browsers. __Tip__: Useful when used with `got.extend()` to create niche-specific Got instances. __Tip__: You can change `prefixUrl` using hooks as long as the URL still includes the `prefixUrl`. If the URL doesn't include it anymore, it will throw. @example ``` import got from 'got'; await got('unicorn', {prefixUrl: 'https://cats.com'}); //=> 'https://cats.com/unicorn' const instance = got.extend({ prefixUrl: 'https://google.com' }); await instance('unicorn', { hooks: { beforeRequest: [ options => { options.prefixUrl = 'https://cats.com'; } ] } }); //=> 'https://cats.com/unicorn' ``` */ get prefixUrl() { return this._internals.prefixUrl; } set prefixUrl(e) { if (ce.any([$.string, $.urlInstance], e), e === "") { this._internals.prefixUrl = ""; return; } if (e = e.toString(), e.endsWith("/") || (e += "/"), this._internals.prefixUrl && this._internals.url) { let { href: t } = this._internals.url; this._internals.url.href = e + t.slice(this._internals.prefixUrl.length); } this._internals.prefixUrl = e; } /** __Note #1__: The `body` option cannot be used with the `json` or `form` option. __Note #2__: If you provide this option, `got.stream()` will be read-only. __Note #3__: If you provide a payload with the `GET` or `HEAD` method, it will throw a `TypeError` unless the method is `GET` and the `allowGetBody` option is set to `true`. __Note #4__: This option is not enumerable and will not be merged with the instance defaults. The `content-length` header will be automatically set if `body` is a `string` / `Buffer` / [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`. Since Got 12, the `content-length` is not automatically set when `body` is a `fs.createReadStream`. */ get body() { return this._internals.body; } set body(e) { ce.any([$.string, $.buffer, $.nodeStream, $.generator, $.asyncGenerator, _x, $.undefined], e), $.nodeStream(e) && ce.truthy(e.readable), e !== void 0 && (ce.undefined(this._internals.form), ce.undefined(this._internals.json)), this._internals.body = e; } /** The form body is converted to a query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj). If the `Content-Type` header is not present, it will be set to `application/x-www-form-urlencoded`. __Note #1__: If you provide this option, `got.stream()` will be read-only. __Note #2__: This option is not enumerable and will not be merged with the instance defaults. */ get form() { return this._internals.form; } set form(e) { ce.any([$.plainObject, $.undefined], e), e !== void 0 && (ce.undefined(this._internals.body), ce.undefined(this._internals.json)), this. _internals.form = e; } /** JSON body. If the `Content-Type` header is not set, it will be set to `application/json`. __Note #1__: If you provide this option, `got.stream()` will be read-only. __Note #2__: This option is not enumerable and will not be merged with the instance defaults. */ get json() { return this._internals.json; } set json(e) { e !== void 0 && (ce.undefined(this._internals.body), ce.undefined(this._internals.form)), this._internals.json = e; } /** The URL to request, as a string, a [`https.request` options object](https://nodejs.org/api/https.html#https_https_request_options_callback), or a [WHATWG `URL`](https://nodejs.org/api/url.html#url_class_url). Properties from `options` will override properties in the parsed `url`. If no protocol is specified, it will throw a `TypeError`. __Note__: The query string is **not** parsed as search params. @example ``` await got('https://example.com/?query=a b'); //=> https://example.com/?query=a%20b await got('https://example.com/', {searchParams: {query: 'a b'}}); //=> https://example.com/?query=a+b // The query string is overridden by `searchParams` await got('https://example.com/?query=a b', {searchParams: {query: 'a b'}}); //=> https://example.com/?query=a+b ``` */ get url() { return this._internals.url; } set url(e) { if (ce.any([$.string, $.urlInstance, $.undefined], e), e === void 0) { this._internals.url = void 0; return; } if ($.string(e) && e.startsWith("/")) throw new Error("`url` must not start with a slash"); let t = `${this.prefixUrl}${e.toString()}`, r = new ko.URL(t); if (this._internals.url = r, decodeURI(t), r.protocol === "unix:" && (r.href = `http://unix${r.pathname}${r.search}`), r.protocol !== "\ http:" && r.protocol !== "https:") { let i = new Error(`Unsupported protocol: ${r.protocol}`); throw i.code = "ERR_UNSUPPORTED_PROTOCOL", i; } if (this._internals.username && (r.username = this._internals.username, this._internals.username = ""), this._internals.password && (r. password = this._internals.password, this._internals.password = ""), this._internals.searchParams && (r.search = this._internals.searchParams. toString(), this._internals.searchParams = void 0), r.hostname === "unix") { if (!this._internals.enableUnixSockets) throw new Error("Using UNIX domain sockets but option `enableUnixSockets` is not enabled"); let i = /(?.+?):(?.+)/.exec(`${r.pathname}${r.search}`); if (i?.groups) { let { socketPath: n, path: a } = i.groups; this._unixOptions = { socketPath: n, path: a, host: "" }; } else this._unixOptions = void 0; return; } this._unixOptions = void 0; } /** Cookie support. You don't have to care about parsing or how to store them. __Note__: If you provide this option, `options.headers.cookie` will be overridden. */ get cookieJar() { return this._internals.cookieJar; } set cookieJar(e) { if (ce.any([$.object, $.undefined], e), e === void 0) { this._internals.cookieJar = void 0; return; } let { setCookie: t, getCookieString: r } = e; ce.function_(t), ce.function_(r), t.length === 4 && r.length === 0 ? (t = (0, Ex.promisify)(t.bind(e)), r = (0, Ex.promisify)(r.bind(e)), this._internals.cookieJar = { setCookie: t, getCookieString: r }) : this._internals.cookieJar = e; } /** You can abort the `request` using [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController). *Requires Node.js 16 or later.* @example ``` import got from 'got'; const abortController = new AbortController(); const request = got('https://httpbin.org/anything', { signal: abortController.signal }); setTimeout(() => { abortController.abort(); }, 100); ``` */ // TODO: Replace `any` with `AbortSignal` when targeting Node 16. get signal() { return this._internals.signal; } // TODO: Replace `any` with `AbortSignal` when targeting Node 16. set signal(e) { ce.object(e), this._internals.signal = e; } /** Ignore invalid cookies instead of throwing an error. Only useful when the `cookieJar` option has been set. Not recommended. @default false */ get ignoreInvalidCookies() { return this._internals.ignoreInvalidCookies; } set ignoreInvalidCookies(e) { ce.boolean(e), this._internals.ignoreInvalidCookies = e; } /** Query string that will be added to the request URL. This will override the query string in `url`. If you need to pass in an array, you can do it using a `URLSearchParams` instance. @example ``` import got from 'got'; const searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]); await got('https://example.com', {searchParams}); console.log(searchParams.toString()); //=> 'key=a&key=b' ``` */ get searchParams() { return this._internals.url ? this._internals.url.searchParams : (this._internals.searchParams === void 0 && (this._internals.searchParams = new ko.URLSearchParams()), this._internals.searchParams); } set searchParams(e) { ce.any([$.string, $.object, $.undefined], e); let t = this._internals.url; if (e === void 0) { this._internals.searchParams = void 0, t && (t.search = ""); return; } let r = this.searchParams, i; if ($.string(e)) i = new ko.URLSearchParams(e); else if (e instanceof ko.URLSearchParams) i = e; else { moe(e), i = new ko.URLSearchParams(); for (let n in e) { let a = e[n]; a === null ? i.append(n, "") : a === void 0 ? r.delete(n) : i.append(n, a); } } if (this._merging) { for (let n of i.keys()) r.delete(n); for (let [n, a] of i) r.append(n, a); } else t ? t.search = r.toString() : this._internals.searchParams = r; } get searchParameters() { throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead."); } set searchParameters(e) { throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead."); } get dnsLookup() { return this._internals.dnsLookup; } set dnsLookup(e) { ce.any([$.function_, $.undefined], e), this._internals.dnsLookup = e; } /** An instance of [`CacheableLookup`](https://github.com/szmarczak/cacheable-lookup) used for making DNS lookups. Useful when making lots of requests to different *public* hostnames. `CacheableLookup` uses `dns.resolver4(..)` and `dns.resolver6(...)` under the hood and fall backs to `dns.lookup(...)` when the first two fail, which may lead to additional delay. __Note__: This should stay disabled when making requests to internal hostnames such as `localhost`, `database.local` etc. @default false */ get dnsCache() { return this._internals.dnsCache; } set dnsCache(e) { ce.any([$.object, $.boolean, $.undefined], e), e === !0 ? this._internals.dnsCache = goe() : e === !1 ? this._internals.dnsCache = void 0 : this._internals.dnsCache = e; } /** User data. `context` is shallow merged and enumerable. If it contains non-enumerable properties they will NOT be merged. @example ``` import got from 'got'; const instance = got.extend({ hooks: { beforeRequest: [ options => { if (!options.context || !options.context.token) { throw new Error('Token required'); } options.headers.token = options.context.token; } ] } }); const context = { token: 'secret' }; const response = await instance('https://httpbin.org/headers', {context}); // Let's see the headers console.log(response.body); ``` */ get context() { return this._internals.context; } set context(e) { ce.object(e), this._merging ? Object.assign(this._internals.context, e) : this._internals.context = { ...e }; } /** Hooks allow modifications during the request lifecycle. Hook functions may be async and are run serially. */ get hooks() { return this._internals.hooks; } set hooks(e) { ce.object(e); for (let t in e) { if (!(t in this._internals.hooks)) throw new Error(`Unexpected hook event: ${t}`); let r = t, i = e[r]; if (ce.any([$.array, $.undefined], i), i) for (let n of i) ce.function_(n); if (this._merging) i && this._internals.hooks[r].push(...i); else { if (!i) throw new Error(`Missing hook event: ${t}`); this._internals.hooks[t] = [...i]; } } } /** Defines if redirect responses should be followed automatically. Note that if a `303` is sent by the server in response to any request type (`POST`, `DELETE`, etc.), Got will automatically request the resource pointed to in the location header via `GET`. This is in accordance with [the spec](https://tools.ietf.org/html/rfc7231#section-6.4.4). You can optionally turn on this behavior also for other redirect codes - see `methodRewriting`. @default true */ get followRedirect() { return this._internals.followRedirect; } set followRedirect(e) { ce.boolean(e), this._internals.followRedirect = e; } get followRedirects() { throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead."); } set followRedirects(e) { throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead."); } /** If exceeded, the request will be aborted and a `MaxRedirectsError` will be thrown. @default 10 */ get maxRedirects() { return this._internals.maxRedirects; } set maxRedirects(e) { ce.number(e), this._internals.maxRedirects = e; } /** A cache adapter instance for storing cached response data. @default false */ get cache() { return this._internals.cache; } set cache(e) { ce.any([$.object, $.string, $.boolean, $.undefined], e), e === !0 ? this._internals.cache = yoe : e === !1 ? this._internals.cache = void 0 : this._internals.cache = e; } /** Determines if a `got.HTTPError` is thrown for unsuccessful responses. If this is disabled, requests that encounter an error status code will be resolved with the `response` instead of throwing. This may be useful if you are checking for resource availability and are expecting error responses. @default true */ get throwHttpErrors() { return this._internals.throwHttpErrors; } set throwHttpErrors(e) { ce.boolean(e), this._internals.throwHttpErrors = e; } get username() { let e = this._internals.url, t = e ? e.username : this._internals.username; return decodeURIComponent(t); } set username(e) { ce.string(e); let t = this._internals.url, r = encodeURIComponent(e); t ? t.username = r : this._internals.username = r; } get password() { let e = this._internals.url, t = e ? e.password : this._internals.password; return decodeURIComponent(t); } set password(e) { ce.string(e); let t = this._internals.url, r = encodeURIComponent(e); t ? t.password = r : this._internals.password = r; } /** If set to `true`, Got will additionally accept HTTP2 requests. It will choose either HTTP/1.1 or HTTP/2 depending on the ALPN protocol. __Note__: This option requires Node.js 15.10.0 or newer as HTTP/2 support on older Node.js versions is very buggy. __Note__: Overriding `options.request` will disable HTTP2 support. @default false @example ``` import got from 'got'; const {headers} = await got('https://nghttp2.org/httpbin/anything', {http2: true}); console.log(headers.via); //=> '2 nghttpx' ``` */ get http2() { return this._internals.http2; } set http2(e) { ce.boolean(e), this._internals.http2 = e; } /** Set this to `true` to allow sending body for the `GET` method. However, the [HTTP/2 specification](https://tools.ietf.org/html/rfc7540#section-8.1.3) says that `An HTTP GET request includes request header fields and no payload body`, therefore when using the HTTP/2 protocol this option will have no effect. This option is only meant to interact with non-compliant servers when you have no other choice. __Note__: The [RFC 7231](https://tools.ietf.org/html/rfc7231#section-4.3.1) doesn't specify any particular behavior for the GET method having a payload, therefore __it's considered an [anti-pattern](https://en.wikipedia.org/wiki/Anti-pattern)__. @default false */ get allowGetBody() { return this._internals.allowGetBody; } set allowGetBody(e) { ce.boolean(e), this._internals.allowGetBody = e; } /** Request headers. Existing headers will be overwritten. Headers set to `undefined` will be omitted. @default {} */ get headers() { return this._internals.headers; } set headers(e) { ce.plainObject(e), this._merging ? Object.assign(this._internals.headers, Cx(e)) : this._internals.headers = Cx(e); } /** Specifies if the HTTP request method should be [rewritten as `GET`](https://tools.ietf.org/html/rfc7231#section-6.4) on redirects. As the [specification](https://tools.ietf.org/html/rfc7231#section-6.4) prefers to rewrite the HTTP method only on `303` responses, this is Got's default behavior. Setting `methodRewriting` to `true` will also rewrite `301` and `302` responses, as allowed by the spec. This is the behavior followed by `curl` and browsers. __Note__: Got never performs method rewriting on `307` and `308` responses, as this is [explicitly prohibited by the specification](https://www.rfc-editor.org/rfc/rfc7231#section-6.4.7). @default false */ get methodRewriting() { return this._internals.methodRewriting; } set methodRewriting(e) { ce.boolean(e), this._internals.methodRewriting = e; } /** Indicates which DNS record family to use. Values: - `undefined`: IPv4 (if present) or IPv6 - `4`: Only IPv4 - `6`: Only IPv6 @default undefined */ get dnsLookupIpVersion() { return this._internals.dnsLookupIpVersion; } set dnsLookupIpVersion(e) { if (e !== void 0 && e !== 4 && e !== 6) throw new TypeError(`Invalid DNS lookup IP version: ${e}`); this._internals.dnsLookupIpVersion = e; } /** A function used to parse JSON responses. @example ``` import got from 'got'; import Bourne from '@hapi/bourne'; const parsed = await got('https://example.com', { parseJson: text => Bourne.parse(text) }).json(); console.log(parsed); ``` */ get parseJson() { return this._internals.parseJson; } set parseJson(e) { ce.function_(e), this._internals.parseJson = e; } /** A function used to stringify the body of JSON requests. @example ``` import got from 'got'; await got.post('https://example.com', { stringifyJson: object => JSON.stringify(object, (key, value) => { if (key.startsWith('_')) { return; } return value; }), json: { some: 'payload', _ignoreMe: 1234 } }); ``` @example ``` import got from 'got'; await got.post('https://example.com', { stringifyJson: object => JSON.stringify(object, (key, value) => { if (typeof value === 'number') { return value.toString(); } return value; }), json: { some: 'payload', number: 1 } }); ``` */ get stringifyJson() { return this._internals.stringifyJson; } set stringifyJson(e) { ce.function_(e), this._internals.stringifyJson = e; } /** An object representing `limit`, `calculateDelay`, `methods`, `statusCodes`, `maxRetryAfter` and `errorCodes` fields for maximum retry count, retry handler, allowed methods, allowed status codes, maximum [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After) time and allowed error codes. Delays between retries counts with function `1000 * Math.pow(2, retry) + Math.random() * 100`, where `retry` is attempt number (starts from 1). The `calculateDelay` property is a `function` that receives an object with `attemptCount`, `retryOptions`, `error` and `computedValue` properties for current retry count, the retry options, error and default computed value. The function must return a delay in milliseconds (or a Promise resolving with it) (`0` return value cancels retry). By default, it retries *only* on the specified methods, status codes, and on these network errors: - `ETIMEDOUT`: One of the [timeout](#timeout) limits were reached. - `ECONNRESET`: Connection was forcibly closed by a peer. - `EADDRINUSE`: Could not bind to any free port. - `ECONNREFUSED`: Connection was refused by the server. - `EPIPE`: The remote side of the stream being written has been closed. - `ENOTFOUND`: Couldn't resolve the hostname to an IP address. - `ENETUNREACH`: No internet connection. - `EAI_AGAIN`: DNS lookup timed out. __Note__: If `maxRetryAfter` is set to `undefined`, it will use `options.timeout`. __Note__: If [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After) header is greater than `maxRetryAfter`, it will cancel the request. */ get retry() { return this._internals.retry; } set retry(e) { if (ce.plainObject(e), ce.any([$.function_, $.undefined], e.calculateDelay), ce.any([$.number, $.undefined], e.maxRetryAfter), ce.any( [$.number, $.undefined], e.limit), ce.any([$.array, $.undefined], e.methods), ce.any([$.array, $.undefined], e.statusCodes), ce.any([$. array, $.undefined], e.errorCodes), ce.any([$.number, $.undefined], e.noise), e.noise && Math.abs(e.noise) > 100) throw new Error(`The maximum acceptable retry noise is +/- 100ms, got ${e.noise}`); for (let r in e) if (!(r in this._internals.retry)) throw new Error(`Unexpected retry option: ${r}`); this._merging ? Object.assign(this._internals.retry, e) : this._internals.retry = { ...e }; let { retry: t } = this._internals; t.methods = [...new Set(t.methods.map((r) => r.toUpperCase()))], t.statusCodes = [...new Set(t.statusCodes)], t.errorCodes = [...new Set( t.errorCodes)]; } /** From `http.RequestOptions`. The IP address used to send the request from. */ get localAddress() { return this._internals.localAddress; } set localAddress(e) { ce.any([$.string, $.undefined], e), this._internals.localAddress = e; } /** The HTTP method used to make the request. @default 'GET' */ get method() { return this._internals.method; } set method(e) { ce.string(e), this._internals.method = e.toUpperCase(); } get createConnection() { return this._internals.createConnection; } set createConnection(e) { ce.any([$.function_, $.undefined], e), this._internals.createConnection = e; } /** From `http-cache-semantics` @default {} */ get cacheOptions() { return this._internals.cacheOptions; } set cacheOptions(e) { ce.plainObject(e), ce.any([$.boolean, $.undefined], e.shared), ce.any([$.number, $.undefined], e.cacheHeuristic), ce.any([$.number, $. undefined], e.immutableMinTimeToLive), ce.any([$.boolean, $.undefined], e.ignoreCargoCult); for (let t in e) if (!(t in this._internals.cacheOptions)) throw new Error(`Cache option \`${t}\` does not exist`); this._merging ? Object.assign(this._internals.cacheOptions, e) : this._internals.cacheOptions = { ...e }; } /** Options for the advanced HTTPS API. */ get https() { return this._internals.https; } set https(e) { ce.plainObject(e), ce.any([$.boolean, $.undefined], e.rejectUnauthorized), ce.any([$.function_, $.undefined], e.checkServerIdentity), ce. any([$.string, $.object, $.array, $.undefined], e.certificateAuthority), ce.any([$.string, $.object, $.array, $.undefined], e.key), ce. any([$.string, $.object, $.array, $.undefined], e.certificate), ce.any([$.string, $.undefined], e.passphrase), ce.any([$.string, $.buffer, $.array, $.undefined], e.pfx), ce.any([$.array, $.undefined], e.alpnProtocols), ce.any([$.string, $.undefined], e.ciphers), ce.any([$. string, $.buffer, $.undefined], e.dhparam), ce.any([$.string, $.undefined], e.signatureAlgorithms), ce.any([$.string, $.undefined], e. minVersion), ce.any([$.string, $.undefined], e.maxVersion), ce.any([$.boolean, $.undefined], e.honorCipherOrder), ce.any([$.number, $. undefined], e.tlsSessionLifetime), ce.any([$.string, $.undefined], e.ecdhCurve), ce.any([$.string, $.buffer, $.array, $.undefined], e. certificateRevocationLists); for (let t in e) if (!(t in this._internals.https)) throw new Error(`HTTPS option \`${t}\` does not exist`); this._merging ? Object.assign(this._internals.https, e) : this._internals.https = { ...e }; } /** [Encoding](https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings) to be used on `setEncoding` of the response data. To get a [`Buffer`](https://nodejs.org/api/buffer.html), you need to set `responseType` to `buffer` instead. Don't set this option to `null`. __Note__: This doesn't affect streams! Instead, you need to do `got.stream(...).setEncoding(encoding)`. @default 'utf-8' */ get encoding() { return this._internals.encoding; } set encoding(e) { if (e === null) throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead"); ce.any([$.string, $.undefined], e), this._internals.encoding = e; } /** When set to `true` the promise will return the Response body instead of the Response object. @default false */ get resolveBodyOnly() { return this._internals.resolveBodyOnly; } set resolveBodyOnly(e) { ce.boolean(e), this._internals.resolveBodyOnly = e; } /** Returns a `Stream` instead of a `Promise`. This is equivalent to calling `got.stream(url, options?)`. @default false */ get isStream() { return this._internals.isStream; } set isStream(e) { ce.boolean(e), this._internals.isStream = e; } /** The parsing method. The promise also has `.text()`, `.json()` and `.buffer()` methods which return another Got promise for the parsed body. It's like setting the options to `{responseType: 'json', resolveBodyOnly: true}` but without affecting the main Got promise. __Note__: When using streams, this option is ignored. @example ``` const responsePromise = got(url); const bufferPromise = responsePromise.buffer(); const jsonPromise = responsePromise.json(); const [response, buffer, json] = Promise.all([responsePromise, bufferPromise, jsonPromise]); // `response` is an instance of Got Response // `buffer` is an instance of Buffer // `json` is an object ``` @example ``` // This const body = await got(url).json(); // is semantically the same as this const body = await got(url, {responseType: 'json', resolveBodyOnly: true}); ``` */ get responseType() { return this._internals.responseType; } set responseType(e) { if (e === void 0) { this._internals.responseType = "text"; return; } if (e !== "text" && e !== "buffer" && e !== "json") throw new Error(`Invalid \`responseType\` option: ${e}`); this._internals.responseType = e; } get pagination() { return this._internals.pagination; } set pagination(e) { ce.object(e), this._merging ? Object.assign(this._internals.pagination, e) : this._internals.pagination = e; } get auth() { throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead."); } set auth(e) { throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead."); } get setHost() { return this._internals.setHost; } set setHost(e) { ce.boolean(e), this._internals.setHost = e; } get maxHeaderSize() { return this._internals.maxHeaderSize; } set maxHeaderSize(e) { ce.any([$.number, $.undefined], e), this._internals.maxHeaderSize = e; } get enableUnixSockets() { return this._internals.enableUnixSockets; } set enableUnixSockets(e) { ce.boolean(e), this._internals.enableUnixSockets = e; } // eslint-disable-next-line @typescript-eslint/naming-convention toJSON() { return { ...this._internals }; } [Symbol.for("nodejs.util.inspect.custom")](e, t) { return (0, Ex.inspect)(this._internals, t); } createNativeRequestOptions() { var e; let t = this._internals, r = t.url, i; r.protocol === "https:" ? i = t.http2 ? t.agent : t.agent.https : i = t.agent.http; let { https: n } = t, { pfx: a } = n; return $.array(a) && $.plainObject(a[0]) && (a = a.map((o) => ({ buf: o.buffer, passphrase: o.passphrase }))), { ...t.cacheOptions, ...this._unixOptions, // HTTPS options // eslint-disable-next-line @typescript-eslint/naming-convention ALPNProtocols: n.alpnProtocols, ca: n.certificateAuthority, cert: n.certificate, key: n.key, passphrase: n.passphrase, pfx: n.pfx, rejectUnauthorized: n.rejectUnauthorized, checkServerIdentity: n.checkServerIdentity ?? toe.checkServerIdentity, ciphers: n.ciphers, honorCipherOrder: n.honorCipherOrder, minVersion: n.minVersion, maxVersion: n.maxVersion, sigalgs: n.signatureAlgorithms, sessionTimeout: n.tlsSessionLifetime, dhparam: n.dhparam, ecdhCurve: n.ecdhCurve, crl: n.certificateRevocationLists, // HTTP options lookup: t.dnsLookup ?? ((e = t.dnsCache) == null ? void 0 : e.lookup), family: t.dnsLookupIpVersion, agent: i, setHost: t.setHost, method: t.method, maxHeaderSize: t.maxHeaderSize, localAddress: t.localAddress, headers: t.headers, createConnection: t.createConnection, timeout: t.http2 ? Eoe(t) : void 0, // HTTP/2 options h2session: t.h2session }; } getRequestFunction() { let e = this._internals.url, { request: t } = this._internals; return !t && e ? this.getFallbackRequestFunction() : t; } getFallbackRequestFunction() { let e = this._internals.url; if (e) { if (e.protocol === "https:") { if (this._internals.http2) { if (b4 < 15 || b4 === 15 && hoe < 10) { let t = new Error("To use the `http2` option, install Node.js 15.10.0 or above"); throw t.code = "EUNSUPPORTED", t; } return doe.default.auto; } return ioe.default.request; } return roe.default.request; } } freeze() { let e = this._internals; Object.freeze(e), Object.freeze(e.hooks), Object.freeze(e.hooks.afterResponse), Object.freeze(e.hooks.beforeError), Object.freeze(e.hooks. beforeRedirect), Object.freeze(e.hooks.beforeRequest), Object.freeze(e.hooks.beforeRetry), Object.freeze(e.hooks.init), Object.freeze( e.https), Object.freeze(e.cacheOptions), Object.freeze(e.agent), Object.freeze(e.headers), Object.freeze(e.timeout), Object.freeze(e.retry), Object.freeze(e.retry.errorCodes), Object.freeze(e.retry.methods), Object.freeze(e.retry.statusCodes); } }, Vm = /* @__PURE__ */ s((e) => { let { statusCode: t } = e, r = e.request.options.followRedirect ? 299 : 399; return t >= 200 && t <= r || t === 304; }, "isResponseOk"), v4 = class extends _r { static { s(this, "ParseError"); } constructor(e, t) { let { options: r } = t.request; super(`${e.message} in "${r.url.toString()}"`, e, t.request), this.name = "ParseError", this.code = "ERR_BODY_PARSE_FAILURE"; } }, E4 = /* @__PURE__ */ s((e, t, r, i) => { let { rawBody: n } = e; try { if (t === "text") return n.toString(i); if (t === "json") return n.length === 0 ? "" : r(n.toString(i)); if (t === "buffer") return n; } catch (a) { throw new v4(a, e); } throw new v4({ message: `Unknown body type '${t}'`, name: "Error" }, e); }, "parseBody"); function xoe(e) { return e.writable && !e.writableEnded; } s(xoe, "isClientRequest"); var Soe = xoe; function x4(e) { return e.protocol === "unix:" || e.hostname === "unix"; } s(x4, "isUnixSocketURL"); var Toe = $.string(W4.default.versions.brotli), Coe = /* @__PURE__ */ new Set(["GET", "HEAD"]), Tx = new Yae(), woe = /* @__PURE__ */ new Set( [300, 301, 302, 303, 304, 307, 308]), Aoe = [ "socket", "connect", "continue", "information", "upgrade" ], Wm = /* @__PURE__ */ s(() => { }, "noop2"), Px = class extends lae.Duplex { static { s(this, "Request"); } constructor(e, t, r) { super({ // Don't destroy immediately, as the error may be emitted on unsuccessful retry autoDestroy: !1, // It needs to be zero because we're just proxying the data to another stream highWaterMark: 0 }), Object.defineProperty(this, "constructor", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_noPipe", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "options", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "response", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "requestUrl", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "redirectUrls", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "retryCount", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_stopRetry", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_downloadedSize", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_uploadedSize", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_stopReading", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_pipedServerResponses", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_request", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_responseSize", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_bodySize", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_unproxyEvents", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_isFromCache", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_cannotHaveBody", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_triggerRead", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_cancelTimeouts", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_removeListeners", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_nativeResponse", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_flushed", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_aborted", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_requestInitialized", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._downloadedSize = 0, this._uploadedSize = 0, this._stopReading = !1, this._pipedServerResponses = /* @__PURE__ */ new Set(), this. _cannotHaveBody = !1, this._unproxyEvents = Wm, this._triggerRead = !1, this._cancelTimeouts = Wm, this._removeListeners = Wm, this._jobs = [], this._flushed = !1, this._requestInitialized = !1, this._aborted = !1, this.redirectUrls = [], this.retryCount = 0, this._stopRetry = Wm, this.on("pipe", (n) => { n.headers && Object.assign(this.options.headers, n.headers); }), this.on("newListener", (n) => { if (n === "retry" && this.listenerCount("retry") > 0) throw new Error("A retry listener has been attached already."); }); try { if (this.options = new Ms(e, t, r), !this.options.url) { if (this.options.prefixUrl === "") throw new TypeError("Missing `url` property"); this.options.url = ""; } this.requestUrl = this.options.url; } catch (n) { let { options: a } = n; a && (this.options = a), this.flush = async () => { this.flush = async () => { }, this.destroy(n); }; return; } let { body: i } = this.options; if ($.nodeStream(i) && i.once("error", (n) => { this._flushed ? this._beforeError(new t4(n, this)) : this.flush = async () => { this.flush = async () => { }, this._beforeError(new t4(n, this)); }; }), this.options.signal) { let n = /* @__PURE__ */ s(() => { this.destroy(new uae(this)); }, "abort"); this.options.signal.aborted ? n() : (this.options.signal.addEventListener("abort", n), this._removeListeners = () => { this.options.signal.removeEventListener("abort", n); }); } } async flush() { var e; if (!this._flushed) { this._flushed = !0; try { if (await this._finalizeBody(), this.destroyed) return; if (await this._makeRequest(), this.destroyed) { (e = this._request) == null || e.destroy(); return; } for (let t of this._jobs) t(); this._jobs.length = 0, this._requestInitialized = !0; } catch (t) { this._beforeError(t); } } } _beforeError(e) { if (this._stopReading) return; let { response: t, options: r } = this, i = this.retryCount + (e.name === "RetryError" ? 0 : 1); this._stopReading = !0, e instanceof _r || (e = new _r(e.message, e, this)); let n = e; (async () => { var a, o; if (t?.readable && !t.rawBody && !((o = (a = this._request) == null ? void 0 : a.socket) != null && o.destroyed) && (t.setEncoding(this. readableEncoding), await this._setRawBody(t) && (t.body = t.rawBody.toString())), this.listenerCount("retry") !== 0) { let u; try { let l; t && "retry-after" in t.headers && (l = Number(t.headers["retry-after"]), Number.isNaN(l) ? (l = Date.parse(t.headers["retry-aft\ er"]) - Date.now(), l <= 0 && (l = 1)) : l *= 1e3); let c = r.retry; u = await c.calculateDelay({ attemptCount: i, retryOptions: c, error: n, retryAfter: l, computedValue: Qae({ attemptCount: i, retryOptions: c, error: n, retryAfter: l, computedValue: c.maxRetryAfter ?? r.timeout.request ?? Number.POSITIVE_INFINITY }) }); } catch (l) { this._error(new _r(l.message, l, this)); return; } if (u) { if (await new Promise((l) => { let c = setTimeout(l, u); this._stopRetry = () => { clearTimeout(c), l(); }; }), this.destroyed) return; try { for (let l of this.options.hooks.beforeRetry) await l(n, this.retryCount + 1); } catch (l) { this._error(new _r(l.message, e, this)); return; } if (this.destroyed) return; this.destroy(), this.emit("retry", this.retryCount + 1, e, (l) => { let c = new Px(r.url, l, r); return c.retryCount = this.retryCount + 1, W4.default.nextTick(() => { c.flush(); }), c; }); return; } } this._error(n); })(); } _read() { this._triggerRead = !0; let { response: e } = this; if (e && !this._stopReading) { e.readableLength && (this._triggerRead = !1); let t; for (; (t = e.read()) !== null; ) { this._downloadedSize += t.length; let r = this.downloadProgress; r.percent < 1 && this.emit("downloadProgress", r), this.push(t); } } } _write(e, t, r) { let i = /* @__PURE__ */ s(() => { this._writeRequest(e, t, r); }, "write"); this._requestInitialized ? i() : this._jobs.push(i); } _final(e) { let t = /* @__PURE__ */ s(() => { if (!this._request || this._request.destroyed) { e(); return; } this._request.end((r) => { var i; (i = this._request._writableState) != null && i.errored || (r || (this._bodySize = this._uploadedSize, this.emit("uploadProgress", this.uploadProgress), this._request.emit("upload-complete")), e(r)); }); }, "endRequest"); this._requestInitialized ? t() : this._jobs.push(t); } _destroy(e, t) { if (this._stopReading = !0, this.flush = async () => { }, this._stopRetry(), this._cancelTimeouts(), this._removeListeners(), this.options) { let { body: r } = this.options; $.nodeStream(r) && r.destroy(); } this._request && this._request.destroy(), e !== null && !$.undefined(e) && !(e instanceof _r) && (e = new _r(e.message, e, this)), t(e); } pipe(e, t) { return e instanceof yx.ServerResponse && this._pipedServerResponses.add(e), super.pipe(e, t); } unpipe(e) { return e instanceof yx.ServerResponse && this._pipedServerResponses.delete(e), super.unpipe(e), this; } async _finalizeBody() { let { options: e } = this, { headers: t } = e, r = !$.undefined(e.form), i = !$.undefined(e.json), n = !$.undefined(e.body), a = Coe.has( e.method) && !(e.method === "GET" && e.allowGetBody); if (this._cannotHaveBody = a, r || i || n) { if (a) throw new TypeError(`The \`${e.method}\` method cannot be used with a body`); let o = !$.string(t["content-type"]); if (n) { if (_x(e.body)) { let l = new Wae(e.body); o && (t["content-type"] = l.headers["Content-Type"]), "Content-Length" in l.headers && (t["content-length"] = l.headers["Content\ -Length"]), e.body = l.encode(); } V4(e.body) && o && (t["content-type"] = `multipart/form-data; boundary=${e.body.getBoundary()}`); } else if (r) { o && (t["content-type"] = "application/x-www-form-urlencoded"); let { form: l } = e; e.form = void 0, e.body = new i4.URLSearchParams(l).toString(); } else { o && (t["content-type"] = "application/json"); let { json: l } = e; e.json = void 0, e.body = e.stringifyJson(l); } let u = await Hae(e.body, e.headers); $.undefined(t["content-length"]) && $.undefined(t["transfer-encoding"]) && !a && !$.undefined(u) && (t["content-length"] = String(u)); } e.responseType === "json" && !("accept" in e.headers) && (e.headers.accept = "application/json"), this._bodySize = Number(t["content-l\ ength"]) || void 0; } async _onResponseBase(e) { if (this.isAborted) return; let { options: t } = this, { url: r } = t; this._nativeResponse = e, t.decompress && (e = (0, kae.default)(e)); let i = e.statusCode, n = e; n.statusMessage = n.statusMessage ? n.statusMessage : yx.default.STATUS_CODES[i], n.url = t.url.toString(), n.requestUrl = this.requestUrl, n.redirectUrls = this.redirectUrls, n.request = this, n.isFromCache = this._nativeResponse.fromCache ?? !1, n.ip = this.ip, n.retryCount = this.retryCount, n.ok = Vm(n), this._isFromCache = n.isFromCache, this._responseSize = Number(e.headers["content-length"]) || void 0, this. response = n, e.once("end", () => { this._responseSize = this._downloadedSize, this.emit("downloadProgress", this.downloadProgress); }), e.once("error", (o) => { this._aborted = !0, e.destroy(), this._beforeError(new r4(o, this)); }), e.once("aborted", () => { this._aborted = !0, this._beforeError(new r4({ name: "Error", message: "The server aborted pending request", code: "ECONNRESET" }, this)); }), this.emit("downloadProgress", this.downloadProgress); let a = e.headers["set-cookie"]; if ($.object(t.cookieJar) && a) { let o = a.map(async (u) => t.cookieJar.setCookie(u, r.toString())); t.ignoreInvalidCookies && (o = o.map(async (u) => { try { await u; } catch { } })); try { await Promise.all(o); } catch (u) { this._beforeError(u); return; } } if (!this.isAborted) { if (t.followRedirect && e.headers.location && woe.has(i)) { if (e.resume(), this._cancelTimeouts(), this._unproxyEvents(), this.redirectUrls.length >= t.maxRedirects) { this._beforeError(new nae(this)); return; } this._request = void 0; let o = new Ms(void 0, void 0, this.options), u = i === 303 && o.method !== "GET" && o.method !== "HEAD", l = i !== 307 && i !== 308, c = o.methodRewriting && l; (u || c) && (o.method = "GET", o.body = void 0, o.json = void 0, o.form = void 0, delete o.headers["content-length"]); try { let f = mx.Buffer.from(e.headers.location, "binary").toString(), m = new i4.URL(f, r); if (!x4(r) && x4(m)) { this._beforeError(new _r("Cannot redirect to UNIX socket", {}, this)); return; } m.hostname !== r.hostname || m.port !== r.port ? ("host" in o.headers && delete o.headers.host, "cookie" in o.headers && delete o. headers.cookie, "authorization" in o.headers && delete o.headers.authorization, (o.username || o.password) && (o.username = "", o. password = "")) : (m.username = o.username, m.password = o.password), this.redirectUrls.push(m), o.prefixUrl = "", o.url = m; for (let h of o.hooks.beforeRedirect) await h(o, n); this.emit("redirect", o, n), this.options = o, await this._makeRequest(); } catch (f) { this._beforeError(f); return; } return; } if (t.isStream && t.throwHttpErrors && !Vm(n)) { this._beforeError(new $m(n)); return; } if (e.on("readable", () => { this._triggerRead && this._read(); }), this.on("resume", () => { e.resume(); }), this.on("pause", () => { e.pause(); }), e.once("end", () => { this.push(null); }), this._noPipe) { await this._setRawBody() && this.emit("response", e); return; } this.emit("response", e); for (let o of this._pipedServerResponses) if (!o.headersSent) { for (let u in e.headers) { let l = t.decompress ? u !== "content-encoding" : !0, c = e.headers[u]; l && o.setHeader(u, c); } o.statusCode = i; } } } async _setRawBody(e = this) { if (e.readableEnded) return !1; try { let t = await (0, Bae.buffer)(e); if (!this.isAborted) return this.response.rawBody = t, !0; } catch { } return !1; } async _onResponse(e) { try { await this._onResponseBase(e); } catch (t) { this._beforeError(t); } } _onRequest(e) { let { options: t } = this, { timeout: r, url: i } = t; hae(e), this.options.http2 && e.setTimeout(0), this._cancelTimeouts = Jae(e, r, i); let n = t.cache ? "cacheableResponse" : "response"; e.once(n, (a) => { this._onResponse(a); }), e.once("error", (a) => { this._aborted = !0, e.destroy(), a = a instanceof K4 ? new aae(a, this.timings, this) : new _r(a.message, a, this), this._beforeError( a); }), this._unproxyEvents = H4(e, this, Aoe), this._request = e, this.emit("uploadProgress", this.uploadProgress), this._sendBody(), this. emit("request", e); } async _asyncWrite(e) { return new Promise((t, r) => { super.write(e, (i) => { if (i) { r(i); return; } t(); }); }); } _sendBody() { let { body: e } = this.options, t = this.redirectUrls.length === 0 ? this : this._request ?? this; $.nodeStream(e) ? e.pipe(t) : $.generator(e) || $.asyncGenerator(e) ? (async () => { try { for await (let r of e) await this._asyncWrite(r); super.end(); } catch (r) { this._beforeError(r); } })() : $.undefined(e) ? (this._cannotHaveBody || this._noPipe) && t.end() : (this._writeRequest(e, void 0, () => { }), t.end()); } _prepareCache(e) { if (!Tx.has(e)) { let t = new Oae((r, i) => { let n = r._request(r, i); return $.promise(n) && (n.once = (a, o) => { if (a === "error") (async () => { try { await n; } catch (u) { o(u); } })(); else if (a === "abort") (async () => { try { (await n).once("abort", o); } catch { } })(); else throw new Error(`Unknown HTTP2 promise event: ${a}`); return n; }), n; }, e); Tx.set(e, t.request()); } } async _createCacheableRequest(e, t) { return new Promise((r, i) => { Object.assign(t, Xae(e)); let n, a = Tx.get(t.cache)(t, async (o) => { if (o._readableState.autoDestroy = !1, n) { let u = /* @__PURE__ */ s(() => { o.req && (o.complete = o.req.res.complete); }, "fix"); o.prependOnceListener("end", u), u(), (await n).emit("cacheableResponse", o); } r(o); }); a.once("error", i), a.once("request", async (o) => { n = o, r(n); }); }); } async _makeRequest() { let { options: e } = this, { headers: t, username: r, password: i } = e, n = e.cookieJar; for (let l in t) if ($.undefined(t[l])) delete t[l]; else if ($.null_(t[l])) throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${l}\` header`); if (e.decompress && $.undefined(t["accept-encoding"]) && (t["accept-encoding"] = Toe ? "gzip, deflate, br" : "gzip, deflate"), r || i) { let l = mx.Buffer.from(`${r}:${i}`).toString("base64"); t.authorization = `Basic ${l}`; } if (n) { let l = await n.getCookieString(e.url.toString()); $.nonEmptyString(l) && (t.cookie = l); } e.prefixUrl = ""; let a; for (let l of e.hooks.beforeRequest) { let c = await l(e); if (!$.undefined(c)) { a = /* @__PURE__ */ s(() => c, "request"); break; } } a || (a = e.getRequestFunction()); let o = e.url; this._requestOptions = e.createNativeRequestOptions(), e.cache && (this._requestOptions._request = a, this._requestOptions.cache = e.cache, this._requestOptions.body = e.body, this._prepareCache(e.cache)); let u = e.cache ? this._createCacheableRequest : a; try { let l = u(o, this._requestOptions); $.promise(l) && (l = await l), $.undefined(l) && (l = e.getFallbackRequestFunction()(o, this._requestOptions), $.promise(l) && (l = await l)), Soe(l) ? this._onRequest(l) : this.writable ? (this.once("finish", () => { this._onResponse(l); }), this._sendBody()) : this._onResponse(l); } catch (l) { throw l instanceof zf ? new sae(l, this) : l; } } async _error(e) { try { if (!(e instanceof $m && !this.options.throwHttpErrors)) for (let t of this.options.hooks.beforeError) e = await t(e); } catch (t) { e = new _r(t.message, t, this); } this.destroy(e); } _writeRequest(e, t, r) { !this._request || this._request.destroyed || this._request.write(e, t, (i) => { if (!i && !this._request.destroyed) { this._uploadedSize += mx.Buffer.byteLength(e, t); let n = this.uploadProgress; n.percent < 1 && this.emit("uploadProgress", n); } r(i); }); } /** The remote IP address. */ get ip() { var e; return (e = this.socket) == null ? void 0 : e.remoteAddress; } /** Indicates whether the request has been aborted or not. */ get isAborted() { return this._aborted; } get socket() { var e; return ((e = this._request) == null ? void 0 : e.socket) ?? void 0; } /** Progress event for downloading (receiving a response). */ get downloadProgress() { let e; return this._responseSize ? e = this._downloadedSize / this._responseSize : this._responseSize === this._downloadedSize ? e = 1 : e = 0, { percent: e, transferred: this._downloadedSize, total: this._responseSize }; } /** Progress event for uploading (sending a request). */ get uploadProgress() { let e; return this._bodySize ? e = this._uploadedSize / this._bodySize : this._bodySize === this._uploadedSize ? e = 1 : e = 0, { percent: e, transferred: this._uploadedSize, total: this._bodySize }; } /** The object contains the following properties: - `start` - Time when the request started. - `socket` - Time when a socket was assigned to the request. - `lookup` - Time when the DNS lookup finished. - `connect` - Time when the socket successfully connected. - `secureConnect` - Time when the socket securely connected. - `upload` - Time when the request finished uploading. - `response` - Time when the request fired `response` event. - `end` - Time when the response fired `end` event. - `error` - Time when the request fired `error` event. - `abort` - Time when the request fired `abort` event. - `phases` - `wait` - `timings.socket - timings.start` - `dns` - `timings.lookup - timings.socket` - `tcp` - `timings.connect - timings.lookup` - `tls` - `timings.secureConnect - timings.connect` - `request` - `timings.upload - (timings.secureConnect || timings.connect)` - `firstByte` - `timings.response - timings.upload` - `download` - `timings.end - timings.response` - `total` - `(timings.end || timings.error || timings.abort) - timings.start` If something has not been measured yet, it will be `undefined`. __Note__: The time is a `number` representing the milliseconds elapsed since the UNIX epoch. */ get timings() { var e; return (e = this._request) == null ? void 0 : e.timings; } /** Whether the response was retrieved from the cache. */ get isFromCache() { return this._isFromCache; } get reusedSocket() { var e; return (e = this._request) == null ? void 0 : e.reusedSocket; } }, _oe = class extends _r { static { s(this, "CancelError2"); } constructor(e) { super("Promise was canceled", {}, e), this.name = "CancelError", this.code = "ERR_CANCELED"; } /** Whether the promise is canceled. */ get isCanceled() { return !0; } }, Poe = [ "request", "response", "redirect", "uploadProgress", "downloadProgress" ]; function S4(e) { let t, r, i, n = new tae.EventEmitter(), a = new Ax((u, l, c) => { c(() => { t.destroy(); }), c.shouldReject = !1, c(() => { l(new _oe(t)); }); let f = /* @__PURE__ */ s((m) => { var h; c(() => { }); let d = e ?? new Px(void 0, void 0, i); d.retryCount = m, d._noPipe = !0, t = d, d.once("response", async (g) => { let b = (g.headers["content-encoding"] ?? "").toLowerCase(), D = b === "gzip" || b === "deflate" || b === "br", { options: v } = d; if (D && !v.decompress) g.body = g.rawBody; else try { g.body = E4(g, v.responseType, v.parseJson, v.encoding); } catch (S) { if (g.body = g.rawBody.toString(), Vm(g)) { d._beforeError(S); return; } } try { let S = v.hooks.afterResponse; for (let [C, O] of S.entries()) if (g = await O(g, async (k) => { throw v.merge(k), v.prefixUrl = "", k.url && (v.url = k.url), v.hooks.afterResponse = v.hooks.afterResponse.slice(0, C), new oae( d); }), !($.object(g) && $.number(g.statusCode) && !$.nullOrUndefined(g.body))) throw new TypeError("The `afterResponse` hook returned an invalid value"); } catch (S) { d._beforeError(S); return; } if (r = g, !Vm(g)) { d._beforeError(new $m(g)); return; } d.destroy(), u(d.options.resolveBodyOnly ? g.body : g); }); let y = /* @__PURE__ */ s((g) => { if (a.isCanceled) return; let { options: b } = d; if (g instanceof $m && !b.throwHttpErrors) { let { response: D } = g; d.destroy(), u(d.options.resolveBodyOnly ? D.body : D); return; } l(g); }, "onError"); d.once("error", y); let p = (h = d.options) == null ? void 0 : h.body; d.once("retry", (g, b) => { e = void 0; let D = d.options.body; if (p === D && $.nodeStream(D)) { b.message = "Cannot retry with consumed body stream", y(b); return; } i = d.options, f(g); }), H4(d, n, Poe), $.undefined(e) && d.flush(); }, "makeRequest"); f(0); }); a.on = (u, l) => (n.on(u, l), a), a.off = (u, l) => (n.off(u, l), a); let o = /* @__PURE__ */ s((u) => { let l = (async () => { await a; let { options: c } = r.request; return E4(r, u, c.parseJson, c.encoding); })(); return Object.defineProperties(l, Object.getOwnPropertyDescriptors(a)), l; }, "shortcut"); return a.json = () => { if (t.options) { let { headers: u } = t.options; !t.writableFinished && !("accept" in u) && (u.accept = "application/json"); } return o("json"); }, a.buffer = () => o("buffer"), a.text = () => o("text"), a; } s(S4, "asPromise"); var Foe = /* @__PURE__ */ s(async (e) => new Promise((t) => { setTimeout(t, e); }), "delay"), Ioe = /* @__PURE__ */ s((e) => $.function_(e), "isGotInstance"), Ooe = [ "get", "post", "put", "patch", "head", "delete" ], z4 = /* @__PURE__ */ s((e) => { e = { options: new Ms(void 0, void 0, e.options), handlers: [...e.handlers], mutableDefaults: e.mutableDefaults }, Object.defineProperty(e, "mutableDefaults", { enumerable: !0, configurable: !1, writable: !1 }); let t = /* @__PURE__ */ s((i, n, a = e.options) => { let o = new Px(i, n, a), u, l = /* @__PURE__ */ s((m) => (o.options = m, o._noPipe = !m.isStream, o.flush(), m.isStream ? o : (u || (u = S4(o)), u)), "lastHandler"), c = 0, f = /* @__PURE__ */ s((m) => { let d = (e.handlers[c++] ?? l)(m, f); if ($.promise(d) && !o.options.isStream && (u || (u = S4(o)), d !== u)) { let y = Object.getOwnPropertyDescriptors(u); for (let p in y) p in d && delete y[p]; Object.defineProperties(d, y), d.cancel = u.cancel; } return d; }, "iterateHandlers"); return f(o.options); }, "got2"); t.extend = (...i) => { let n = new Ms(void 0, void 0, e.options), a = [...e.handlers], o; for (let u of i) Ioe(u) ? (n.merge(u.defaults.options), a.push(...u.defaults.handlers), o = u.defaults.mutableDefaults) : (n.merge(u), u.handlers && a. push(...u.handlers), o = u.mutableDefaults); return z4({ options: n, handlers: a, mutableDefaults: !!o }); }; let r = /* @__PURE__ */ s(async function* (i, n) { let a = new Ms(i, n, e.options); a.resolveBodyOnly = !1; let { pagination: o } = a; ce.function_(o.transform), ce.function_(o.shouldContinue), ce.function_(o.filter), ce.function_(o.paginate), ce.number(o.countLimit), ce. number(o.requestLimit), ce.number(o.backoff); let u = [], { countLimit: l } = o, c = 0; for (; c < o.requestLimit; ) { c !== 0 && await Foe(o.backoff); let f = await t(void 0, void 0, a), m = await o.transform(f), h = []; ce.array(m); for (let y of m) if (o.filter({ item: y, currentItems: h, allItems: u }) && (!o.shouldContinue({ item: y, currentItems: h, allItems: u }) || (yield y, o.stackAllItems && u.push(y), h.push(y), --l <= 0))) return; let d = o.paginate({ response: f, currentItems: h, allItems: u }); if (d === !1) return; d === f.request.options ? a = f.request.options : (a.merge(d), ce.any([$.urlInstance, $.undefined], d.url), d.url !== void 0 && (a.prefixUrl = "", a.url = d.url)), c++; } }, "paginateEach"); t.paginate = r, t.paginate.all = async (i, n) => { let a = []; for await (let o of r(i, n)) a.push(o); return a; }, t.paginate.each = r, t.stream = (i, n) => t(i, { ...n, isStream: !0 }); for (let i of Ooe) t[i] = (n, a) => t(n, { ...a, method: i }), t.stream[i] = (n, a) => t(n, { ...a, method: i, isStream: !0 }); return e.mutableDefaults || (Object.freeze(e.handlers), e.options.freeze()), Object.defineProperty(t, "defaults", { value: e, writable: !1, configurable: !1, enumerable: !0 }), t; }, "create"), koe = z4, Boe = { options: new Ms(), handlers: [], mutableDefaults: !1 }, Noe = koe(Boe), Moe = Noe, Roe = Tr(wv()), joe = oN(), Loe = Tr(e4()), T4 = { keepAlive: !0, maxSockets: 20 }, qoe = { http: new Use.Agent(T4), https: new Wse.Agent(T4) }; async function Uoe({ url: e, gotOpts: t, extractOpts: r, dir: i }) { return new Promise((n, a) => { let o = /* @__PURE__ */ s((u) => { u ? a(u) : n(); }, "callback"); (0, Roe.default)( Moe.stream(e, Object.assign({ agent: qoe }, t)), (0, Loe.default)(), (0, joe.extract)(i, r), o ); }); } s(Uoe, "download"); }); // ../node_modules/get-npm-tarball-url/lib/index.js var Z4 = E((nit, Y4) => { var Fx = Object.defineProperty, Woe = Object.getOwnPropertyDescriptor, $oe = Object.getOwnPropertyNames, Voe = Object.prototype.hasOwnProperty, Hoe = /* @__PURE__ */ s((e, t) => { for (var r in t) Fx(e, r, { get: t[r], enumerable: !0 }); }, "__export"), Koe = /* @__PURE__ */ s((e, t, r, i) => { if (t && typeof t == "object" || typeof t == "function") for (let n of $oe(t)) !Voe.call(e, n) && n !== r && Fx(e, n, { get: /* @__PURE__ */ s(() => t[n], "get"), enumerable: !(i = Woe(t, n)) || i.enumerable }); return e; }, "__copyProps"), zoe = /* @__PURE__ */ s((e) => Koe(Fx({}, "__esModule", { value: !0 }), e), "__toCommonJS"), X4 = {}; Hoe(X4, { default: /* @__PURE__ */ s(() => Goe, "default") }); Y4.exports = zoe(X4); function Goe(e, t, r) { let i; r?.registry ? i = r.registry.endsWith("/") ? r.registry : `${r.registry}/` : i = "https://registry.npmjs.org/"; let n = Xoe(e); return `${i}${e}/-/${n}-${Joe(t)}.tgz`; } s(Goe, "src_default"); function Joe(e) { let t = e.indexOf("+"); return t === -1 ? e : e.substring(0, t); } s(Joe, "removeBuildMetadataFromVersion"); function Xoe(e) { return e[0] !== "@" ? e : e.split("/")[1]; } s(Xoe, "getScopelessName"); }); // ../node_modules/eastasianwidth/eastasianwidth.js var Wx = E((_it, Ux) => { var Pa = {}; typeof Ux > "u" ? window.eastasianwidth = Pa : Ux.exports = Pa; Pa.eastAsianWidth = function(e) { var t = e.charCodeAt(0), r = e.length == 2 ? e.charCodeAt(1) : 0, i = t; return 55296 <= t && t <= 56319 && 56320 <= r && r <= 57343 && (t &= 1023, r &= 1023, i = t << 10 | r, i += 65536), i == 12288 || 65281 <= i && i <= 65376 || 65504 <= i && i <= 65510 ? "F" : i == 8361 || 65377 <= i && i <= 65470 || 65474 <= i && i <= 65479 || 65482 <= i && i <= 65487 || 65490 <= i && i <= 65495 || 65498 <= i && i <= 65500 || 65512 <= i && i <= 65518 ? "H" : 4352 <= i && i <= 4447 || 4515 <= i && i <= 4519 || 4602 <= i && i <= 4607 || 9001 <= i && i <= 9002 || 11904 <= i && i <= 11929 || 11931 <= i && i <= 12019 || 12032 <= i && i <= 12245 || 12272 <= i && i <= 12283 || 12289 <= i && i <= 12350 || 12353 <= i && i <= 12438 || 12441 <= i && i <= 12543 || 12549 <= i && i <= 12589 || 12593 <= i && i <= 12686 || 12688 <= i && i <= 12730 || 12736 <= i && i <= 12771 || 12784 <= i && i <= 12830 || 12832 <= i && i <= 12871 || 12880 <= i && i <= 13054 || 13056 <= i && i <= 19903 || 19968 <= i && i <= 42124 || 42128 <= i && i <= 42182 || 43360 <= i && i <= 43388 || 44032 <= i && i <= 55203 || 55216 <= i && i <= 55238 || 55243 <= i && i <= 55291 || 63744 <= i && i <= 64255 || 65040 <= i && i <= 65049 || 65072 <= i && i <= 65106 || 65108 <= i && i <= 65126 || 65128 <= i && i <= 65131 || 110592 <= i && i <= 110593 || 127488 <= i && i <= 127490 || 127504 <= i && i <= 127546 || 127552 <= i && i <= 127560 || 127568 <= i && i <= 127569 || 131072 <= i && i <= 194367 || 177984 <= i && i <= 196605 || 196608 <= i && i <= 262141 ? "W" : 32 <= i && i <= 126 || 162 <= i && i <= 163 || 165 <= i && i <= 166 || i == 172 || i == 175 || 10214 <= i && i <= 10221 || 10629 <= i && i <= 10630 ? "Na" : i == 161 || i == 164 || 167 <= i && i <= 168 || i == 170 || 173 <= i && i <= 174 || 176 <= i && i <= 180 || 182 <= i && i <= 186 || 188 <= i && i <= 191 || i == 198 || i == 208 || 215 <= i && i <= 216 || 222 <= i && i <= 225 || i == 230 || 232 <= i && i <= 234 || 236 <= i && i <= 237 || i == 240 || 242 <= i && i <= 243 || 247 <= i && i <= 250 || i == 252 || i == 254 || i == 257 || i == 273 || i == 275 || i == 283 || 294 <= i && i <= 295 || i == 299 || 305 <= i && i <= 307 || i == 312 || 319 <= i && i <= 322 || i == 324 || 328 <= i && i <= 331 || i == 333 || 338 <= i && i <= 339 || 358 <= i && i <= 359 || i == 363 || i == 462 || i == 464 || i == 466 || i == 468 || i == 470 || i == 472 || i == 474 || i == 476 || i == 593 || i == 609 || i == 708 || i == 711 || 713 <= i && i <= 715 || i == 717 || i == 720 || 728 <= i && i <= 731 || i == 733 || i == 735 || 768 <= i && i <= 879 || 913 <= i && i <= 929 || 931 <= i && i <= 937 || 945 <= i && i <= 961 || 963 <= i && i <= 969 || i == 1025 || 1040 <= i && i <= 1103 || i == 1105 || i == 8208 || 8211 <= i && i <= 8214 || 8216 <= i && i <= 8217 || 8220 <= i && i <= 8221 || 8224 <= i && i <= 8226 || 8228 <= i && i <= 8231 || i == 8240 || 8242 <= i && i <= 8243 || i == 8245 || i == 8251 || i == 8254 || i == 8308 || i == 8319 || 8321 <= i && i <= 8324 || i == 8364 || i == 8451 || i == 8453 || i == 8457 || i == 8467 || i == 8470 || 8481 <= i && i <= 8482 || i == 8486 || i == 8491 || 8531 <= i && i <= 8532 || 8539 <= i && i <= 8542 || 8544 <= i && i <= 8555 || 8560 <= i && i <= 8569 || i == 8585 || 8592 <= i && i <= 8601 || 8632 <= i && i <= 8633 || i == 8658 || i == 8660 || i == 8679 || i == 8704 || 8706 <= i && i <= 8707 || 8711 <= i && i <= 8712 || i == 8715 || i == 8719 || i == 8721 || i == 8725 || i == 8730 || 8733 <= i && i <= 8736 || i == 8739 || i == 8741 || 8743 <= i && i <= 8748 || i == 8750 || 8756 <= i && i <= 8759 || 8764 <= i && i <= 8765 || i == 8776 || i == 8780 || i == 8786 || 8800 <= i && i <= 8801 || 8804 <= i && i <= 8807 || 8810 <= i && i <= 8811 || 8814 <= i && i <= 8815 || 8834 <= i && i <= 8835 || 8838 <= i && i <= 8839 || i == 8853 || i == 8857 || i == 8869 || i == 8895 || i == 8978 || 9312 <= i && i <= 9449 || 9451 <= i && i <= 9547 || 9552 <= i && i <= 9587 || 9600 <= i && i <= 9615 || 9618 <= i && i <= 9621 || 9632 <= i && i <= 9633 || 9635 <= i && i <= 9641 || 9650 <= i && i <= 9651 || 9654 <= i && i <= 9655 || 9660 <= i && i <= 9661 || 9664 <= i && i <= 9665 || 9670 <= i && i <= 9672 || i == 9675 || 9678 <= i && i <= 9681 || 9698 <= i && i <= 9701 || i == 9711 || 9733 <= i && i <= 9734 || i == 9737 || 9742 <= i && i <= 9743 || 9748 <= i && i <= 9749 || i == 9756 || i == 9758 || i == 9792 || i == 9794 || 9824 <= i && i <= 9825 || 9827 <= i && i <= 9829 || 9831 <= i && i <= 9834 || 9836 <= i && i <= 9837 || i == 9839 || 9886 <= i && i <= 9887 || 9918 <= i && i <= 9919 || 9924 <= i && i <= 9933 || 9935 <= i && i <= 9953 || i == 9955 || 9960 <= i && i <= 9983 || i == 10045 || i == 10071 || 10102 <= i && i <= 10111 || 11093 <= i && i <= 11097 || 12872 <= i && i <= 12879 || 57344 <= i && i <= 63743 || 65024 <= i && i <= 65039 || i == 65533 || 127232 <= i && i <= 127242 || 127248 <= i && i <= 127277 || 127280 <= i && i <= 127337 || 127344 <= i && i <= 127386 || 917760 <= i && i <= 917999 || 983040 <= i && i <= 1048573 || 1048576 <= i && i <= 1114109 ? "A" : "N"; }; Pa.characterLength = function(e) { var t = this.eastAsianWidth(e); return t == "F" || t == "W" || t == "A" ? 2 : 1; }; function lM(e) { return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || []; } s(lM, "stringToArray"); Pa.length = function(e) { for (var t = lM(e), r = 0, i = 0; i < t.length; i++) r = r + this.characterLength(t[i]); return r; }; Pa.slice = function(e, t, r) { textLen = Pa.length(e), t = t || 0, r = r || 1, t < 0 && (t = textLen + t), r < 0 && (r = textLen + r); for (var i = "", n = 0, a = lM(e), o = 0; o < a.length; o++) { var u = a[o], l = Pa.length(u); if (n >= t - (l == 2 ? 1 : 0)) if (n + l <= r) i += u; else break; n += l; } return i; }; }); // ../node_modules/emoji-regex/index.js var $x = E((Fit, cM) => { "use strict"; cM.exports = function() { return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g; }; }); // ../node_modules/cli-boxes/boxes.json var TM = E((Yit, Lue) => { Lue.exports = { single: { topLeft: "\u250C", top: "\u2500", topRight: "\u2510", right: "\u2502", bottomRight: "\u2518", bottom: "\u2500", bottomLeft: "\u2514", left: "\u2502" }, double: { topLeft: "\u2554", top: "\u2550", topRight: "\u2557", right: "\u2551", bottomRight: "\u255D", bottom: "\u2550", bottomLeft: "\u255A", left: "\u2551" }, round: { topLeft: "\u256D", top: "\u2500", topRight: "\u256E", right: "\u2502", bottomRight: "\u256F", bottom: "\u2500", bottomLeft: "\u2570", left: "\u2502" }, bold: { topLeft: "\u250F", top: "\u2501", topRight: "\u2513", right: "\u2503", bottomRight: "\u251B", bottom: "\u2501", bottomLeft: "\u2517", left: "\u2503" }, singleDouble: { topLeft: "\u2553", top: "\u2500", topRight: "\u2556", right: "\u2551", bottomRight: "\u255C", bottom: "\u2500", bottomLeft: "\u2559", left: "\u2551" }, doubleSingle: { topLeft: "\u2552", top: "\u2550", topRight: "\u2555", right: "\u2502", bottomRight: "\u255B", bottom: "\u2550", bottomLeft: "\u2558", left: "\u2502" }, classic: { topLeft: "+", top: "-", topRight: "+", right: "|", bottomRight: "+", bottom: "-", bottomLeft: "+", left: "|" }, arrow: { topLeft: "\u2198", top: "\u2193", topRight: "\u2199", right: "\u2190", bottomRight: "\u2196", bottom: "\u2191", bottomLeft: "\u2197", left: "\u2192" } }; }); // ../node_modules/cli-boxes/index.js var Jx = E((Zit, Gx) => { "use strict"; var CM = TM(); Gx.exports = CM; Gx.exports.default = CM; }); // ../node_modules/string-width/node_modules/ansi-regex/index.js var IM = E((tnt, FM) => { "use strict"; FM.exports = ({ onlyFirst: e = !1 } = {}) => { let t = [ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))" ].join("|"); return new RegExp(t, e ? void 0 : "g"); }; }); // ../node_modules/string-width/node_modules/strip-ansi/index.js var kM = E((rnt, OM) => { "use strict"; var Kue = IM(); OM.exports = (e) => typeof e == "string" ? e.replace(Kue(), "") : e; }); // ../node_modules/is-fullwidth-code-point/index.js var NM = E((int, Zx) => { "use strict"; var BM = /* @__PURE__ */ s((e) => Number.isNaN(e) ? !1 : e >= 4352 && (e <= 4447 || // Hangul Jamo e === 9001 || // LEFT-POINTING ANGLE BRACKET e === 9002 || // RIGHT-POINTING ANGLE BRACKET // CJK Radicals Supplement .. Enclosed CJK Letters and Months 11904 <= e && e <= 12871 && e !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A 12880 <= e && e <= 19903 || // CJK Unified Ideographs .. Yi Radicals 19968 <= e && e <= 42182 || // Hangul Jamo Extended-A 43360 <= e && e <= 43388 || // Hangul Syllables 44032 <= e && e <= 55203 || // CJK Compatibility Ideographs 63744 <= e && e <= 64255 || // Vertical Forms 65040 <= e && e <= 65049 || // CJK Compatibility Forms .. Small Form Variants 65072 <= e && e <= 65131 || // Halfwidth and Fullwidth Forms 65281 <= e && e <= 65376 || 65504 <= e && e <= 65510 || // Kana Supplement 110592 <= e && e <= 110593 || // Enclosed Ideographic Supplement 127488 <= e && e <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane 131072 <= e && e <= 262141), "isFullwidthCodePoint"); Zx.exports = BM; Zx.exports.default = BM; }); // ../node_modules/string-width/node_modules/emoji-regex/index.js var RM = E((snt, MM) => { "use strict"; MM.exports = function() { return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g; }; }); // ../node_modules/string-width/index.js var LM = E((ant, Qx) => { "use strict"; var zue = kM(), Gue = NM(), Jue = RM(), jM = /* @__PURE__ */ s((e) => { if (typeof e != "string" || e.length === 0 || (e = zue(e), e.length === 0)) return 0; e = e.replace(Jue(), " "); let t = 0; for (let r = 0; r < e.length; r++) { let i = e.codePointAt(r); i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879 || (i > 65535 && r++, t += Gue(i) ? 2 : 1); } return t; }, "stringWidth"); Qx.exports = jM; Qx.exports.default = jM; }); // ../node_modules/ansi-align/index.js var UM = E((unt, qM) => { "use strict"; var Xue = LM(); function Ro(e, t) { if (!e) return e; t = t || {}; let r = t.align || "center"; if (r === "left") return e; let i = t.split || ` `, n = t.pad || " ", a = r !== "right" ? Yue : Zue, o = !1; Array.isArray(e) || (o = !0, e = String(e).split(i)); let u, l = 0; return e = e.map(function(c) { return c = String(c), u = Xue(c), l = Math.max(u, l), { str: c, width: u }; }).map(function(c) { return new Array(a(l, c.width) + 1).join(n) + c.str; }), o ? e.join(i) : e; } s(Ro, "ansiAlign"); Ro.left = /* @__PURE__ */ s(function(t) { return Ro(t, { align: "left" }); }, "left"); Ro.center = /* @__PURE__ */ s(function(t) { return Ro(t, { align: "center" }); }, "center"); Ro.right = /* @__PURE__ */ s(function(t) { return Ro(t, { align: "right" }); }, "right"); qM.exports = Ro; function Yue(e, t) { return Math.floor((e - t) / 2); } s(Yue, "halfDiff"); function Zue(e, t) { return e - t; } s(Zue, "fullDiff"); }); // ../node_modules/ts-dedent/dist/index.js var iy = E((id) => { "use strict"; Object.defineProperty(id, "__esModule", { value: !0 }); id.dedent = void 0; function iR(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; var i = Array.from(typeof e == "string" ? [e] : e); i[i.length - 1] = i[i.length - 1].replace(/\r?\n([\t ]*)$/, ""); var n = i.reduce(function(u, l) { var c = l.match(/\n([\t ]+|(?!\s).)/g); return c ? u.concat(c.map(function(f) { var m, h; return (h = (m = f.match(/[\t ]/g)) === null || m === void 0 ? void 0 : m.length) !== null && h !== void 0 ? h : 0; })) : u; }, []); if (n.length) { var a = new RegExp(` [ ]{` + Math.min.apply(Math, n) + "}", "g"); i = i.map(function(u) { return u.replace(a, ` `); }); } i[0] = i[0].replace(/^\r?\n/, ""); var o = i[0]; return t.forEach(function(u, l) { var c = o.match(/(?:^|\n)( *)$/), f = c ? c[1] : "", m = u; typeof u == "string" && u.includes(` `) && (m = String(u).split(` `).map(function(h, d) { return d === 0 ? h : "" + f + h; }).join(` `)), o += m + i[l + 1]; }), o; } s(iR, "dedent"); id.dedent = iR; id.default = iR; }); // ../node_modules/esprima/dist/esprima.js var oR = E((sd, l1) => { (/* @__PURE__ */ s(function(t, r) { typeof sd == "object" && typeof l1 == "object" ? l1.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof sd == "object" ? sd.esprima = r() : t.esprima = r(); }, "webpackUniversalModuleDefinition"))(sd, function() { return ( /******/ function(e) { var t = {}; function r(i) { if (t[i]) return t[i].exports; var n = t[i] = { /******/ exports: {}, /******/ id: i, /******/ loaded: !1 /******/ }; return e[i].call(n.exports, n, n.exports, r), n.loaded = !0, n.exports; } return s(r, "__webpack_require__"), r.m = e, r.c = t, r.p = "", r(0); }([ /* 0 */ /***/ function(e, t, r) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(1), n = r(3), a = r(8), o = r(15); function u(h, d, y) { var p = null, g = /* @__PURE__ */ s(function(U, j) { y && y(U, j), p && p.visit(U, j); }, "proxyDelegate"), b = typeof y == "function" ? g : null, D = !1; if (d) { D = typeof d.comment == "boolean" && d.comment; var v = typeof d.attachComment == "boolean" && d.attachComment; (D || v) && (p = new i.CommentHandler(), p.attach = v, d.comment = !0, b = g); } var S = !1; d && typeof d.sourceType == "string" && (S = d.sourceType === "module"); var C; d && typeof d.jsx == "boolean" && d.jsx ? C = new n.JSXParser(h, d, b) : C = new a.Parser(h, d, b); var O = S ? C.parseModule() : C.parseScript(), k = O; return D && p && (k.comments = p.comments), C.config.tokens && (k.tokens = C.tokens), C.config.tolerant && (k.errors = C.errorHandler. errors), k; } s(u, "parse"), t.parse = u; function l(h, d, y) { var p = d || {}; return p.sourceType = "module", u(h, p, y); } s(l, "parseModule"), t.parseModule = l; function c(h, d, y) { var p = d || {}; return p.sourceType = "script", u(h, p, y); } s(c, "parseScript"), t.parseScript = c; function f(h, d, y) { var p = new o.Tokenizer(h, d), g; g = []; try { for (; ; ) { var b = p.getNextToken(); if (!b) break; y && (b = y(b)), g.push(b); } } catch (D) { p.errorHandler.tolerate(D); } return p.errorHandler.tolerant && (g.errors = p.errors()), g; } s(f, "tokenize"), t.tokenize = f; var m = r(2); t.Syntax = m.Syntax, t.version = "4.0.1"; }, /* 1 */ /***/ function(e, t, r) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(2), n = function() { function a() { this.attach = !1, this.comments = [], this.stack = [], this.leading = [], this.trailing = []; } return s(a, "CommentHandler"), a.prototype.insertInnerComments = function(o, u) { if (o.type === i.Syntax.BlockStatement && o.body.length === 0) { for (var l = [], c = this.leading.length - 1; c >= 0; --c) { var f = this.leading[c]; u.end.offset >= f.start && (l.unshift(f.comment), this.leading.splice(c, 1), this.trailing.splice(c, 1)); } l.length && (o.innerComments = l); } }, a.prototype.findTrailingComments = function(o) { var u = []; if (this.trailing.length > 0) { for (var l = this.trailing.length - 1; l >= 0; --l) { var c = this.trailing[l]; c.start >= o.end.offset && u.unshift(c.comment); } return this.trailing.length = 0, u; } var f = this.stack[this.stack.length - 1]; if (f && f.node.trailingComments) { var m = f.node.trailingComments[0]; m && m.range[0] >= o.end.offset && (u = f.node.trailingComments, delete f.node.trailingComments); } return u; }, a.prototype.findLeadingComments = function(o) { for (var u = [], l; this.stack.length > 0; ) { var c = this.stack[this.stack.length - 1]; if (c && c.start >= o.start.offset) l = c.node, this.stack.pop(); else break; } if (l) { for (var f = l.leadingComments ? l.leadingComments.length : 0, m = f - 1; m >= 0; --m) { var h = l.leadingComments[m]; h.range[1] <= o.start.offset && (u.unshift(h), l.leadingComments.splice(m, 1)); } return l.leadingComments && l.leadingComments.length === 0 && delete l.leadingComments, u; } for (var m = this.leading.length - 1; m >= 0; --m) { var c = this.leading[m]; c.start <= o.start.offset && (u.unshift(c.comment), this.leading.splice(m, 1)); } return u; }, a.prototype.visitNode = function(o, u) { if (!(o.type === i.Syntax.Program && o.body.length > 0)) { this.insertInnerComments(o, u); var l = this.findTrailingComments(u), c = this.findLeadingComments(u); c.length > 0 && (o.leadingComments = c), l.length > 0 && (o.trailingComments = l), this.stack.push({ node: o, start: u.start.offset }); } }, a.prototype.visitComment = function(o, u) { var l = o.type[0] === "L" ? "Line" : "Block", c = { type: l, value: o.value }; if (o.range && (c.range = o.range), o.loc && (c.loc = o.loc), this.comments.push(c), this.attach) { var f = { comment: { type: l, value: o.value, range: [u.start.offset, u.end.offset] }, start: u.start.offset }; o.loc && (f.comment.loc = o.loc), o.type = l, this.leading.push(f), this.trailing.push(f); } }, a.prototype.visit = function(o, u) { o.type === "LineComment" ? this.visitComment(o, u) : o.type === "BlockComment" ? this.visitComment(o, u) : this.attach && this. visitNode(o, u); }, a; }(); t.CommentHandler = n; }, /* 2 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), t.Syntax = { AssignmentExpression: "AssignmentExpression", AssignmentPattern: "AssignmentPattern", ArrayExpression: "ArrayExpression", ArrayPattern: "ArrayPattern", ArrowFunctionExpression: "ArrowFunctionExpression", AwaitExpression: "AwaitExpression", BlockStatement: "BlockStatement", BinaryExpression: "BinaryExpression", BreakStatement: "BreakStatement", CallExpression: "CallExpression", CatchClause: "CatchClause", ClassBody: "ClassBody", ClassDeclaration: "ClassDeclaration", ClassExpression: "ClassExpression", ConditionalExpression: "ConditionalExpression", ContinueStatement: "ContinueStatement", DoWhileStatement: "DoWhileStatement", DebuggerStatement: "DebuggerStatement", EmptyStatement: "EmptyStatement", ExportAllDeclaration: "ExportAllDeclaration", ExportDefaultDeclaration: "ExportDefaultDeclaration", ExportNamedDeclaration: "ExportNamedDeclaration", ExportSpecifier: "ExportSpecifier", ExpressionStatement: "ExpressionStatement", ForStatement: "ForStatement", ForOfStatement: "ForOfStatement", ForInStatement: "ForInStatement", FunctionDeclaration: "FunctionDeclaration", FunctionExpression: "FunctionExpression", Identifier: "Identifier", IfStatement: "IfStatement", ImportDeclaration: "ImportDeclaration", ImportDefaultSpecifier: "ImportDefaultSpecifier", ImportNamespaceSpecifier: "ImportNamespaceSpecifier", ImportSpecifier: "ImportSpecifier", Literal: "Literal", LabeledStatement: "LabeledStatement", LogicalExpression: "LogicalExpression", MemberExpression: "MemberExpression", MetaProperty: "MetaProperty", MethodDefinition: "MethodDefinition", NewExpression: "NewExpression", ObjectExpression: "ObjectExpression", ObjectPattern: "ObjectPattern", Program: "Program", Property: "Property", RestElement: "RestElement", ReturnStatement: "ReturnStatement", SequenceExpression: "SequenceExpression", SpreadElement: "SpreadElement", Super: "Super", SwitchCase: "SwitchCase", SwitchStatement: "SwitchStatement", TaggedTemplateExpression: "TaggedTemplateExpression", TemplateElement: "TemplateElement", TemplateLiteral: "TemplateLiteral", ThisExpression: "ThisExpression", ThrowStatement: "ThrowStatement", TryStatement: "TryStatement", UnaryExpression: "UnaryExpression", UpdateExpression: "UpdateExpression", VariableDeclaration: "VariableDeclaration", VariableDeclarator: "VariableDeclarator", WhileStatement: "WhileStatement", WithStatement: "WithStatement", YieldExpression: "YieldExpression" }; }, /* 3 */ /***/ function(e, t, r) { "use strict"; var i = this && this.__extends || function() { var d = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(y, p) { y.__proto__ = p; } || function(y, p) { for (var g in p) p.hasOwnProperty(g) && (y[g] = p[g]); }; return function(y, p) { d(y, p); function g() { this.constructor = y; } s(g, "__"), y.prototype = p === null ? Object.create(p) : (g.prototype = p.prototype, new g()); }; }(); Object.defineProperty(t, "__esModule", { value: !0 }); var n = r(4), a = r(5), o = r(6), u = r(7), l = r(8), c = r(13), f = r(14); c.TokenName[ 100 /* Identifier */ ] = "JSXIdentifier", c.TokenName[ 101 /* Text */ ] = "JSXText"; function m(d) { var y; switch (d.type) { case o.JSXSyntax.JSXIdentifier: var p = d; y = p.name; break; case o.JSXSyntax.JSXNamespacedName: var g = d; y = m(g.namespace) + ":" + m(g.name); break; case o.JSXSyntax.JSXMemberExpression: var b = d; y = m(b.object) + "." + m(b.property); break; /* istanbul ignore next */ default: break; } return y; } s(m, "getQualifiedElementName"); var h = function(d) { i(y, d); function y(p, g, b) { return d.call(this, p, g, b) || this; } return s(y, "JSXParser"), y.prototype.parsePrimaryExpression = function() { return this.match("<") ? this.parseJSXRoot() : d.prototype.parsePrimaryExpression.call(this); }, y.prototype.startJSX = function() { this.scanner.index = this.startMarker.index, this.scanner.lineNumber = this.startMarker.line, this.scanner.lineStart = this.startMarker. index - this.startMarker.column; }, y.prototype.finishJSX = function() { this.nextToken(); }, y.prototype.reenterJSX = function() { this.startJSX(), this.expectJSX("}"), this.config.tokens && this.tokens.pop(); }, y.prototype.createJSXNode = function() { return this.collectComments(), { index: this.scanner.index, line: this.scanner.lineNumber, column: this.scanner.index - this.scanner.lineStart }; }, y.prototype.createJSXChildNode = function() { return { index: this.scanner.index, line: this.scanner.lineNumber, column: this.scanner.index - this.scanner.lineStart }; }, y.prototype.scanXHTMLEntity = function(p) { for (var g = "&", b = !0, D = !1, v = !1, S = !1; !this.scanner.eof() && b && !D; ) { var C = this.scanner.source[this.scanner.index]; if (C === p) break; if (D = C === ";", g += C, ++this.scanner.index, !D) switch (g.length) { case 2: v = C === "#"; break; case 3: v && (S = C === "x", b = S || n.Character.isDecimalDigit(C.charCodeAt(0)), v = v && !S); break; default: b = b && !(v && !n.Character.isDecimalDigit(C.charCodeAt(0))), b = b && !(S && !n.Character.isHexDigit(C.charCodeAt(0))); break; } } if (b && D && g.length > 2) { var O = g.substr(1, g.length - 2); v && O.length > 1 ? g = String.fromCharCode(parseInt(O.substr(1), 10)) : S && O.length > 2 ? g = String.fromCharCode(parseInt( "0" + O.substr(1), 16)) : !v && !S && f.XHTMLEntities[O] && (g = f.XHTMLEntities[O]); } return g; }, y.prototype.lexJSX = function() { var p = this.scanner.source.charCodeAt(this.scanner.index); if (p === 60 || p === 62 || p === 47 || p === 58 || p === 61 || p === 123 || p === 125) { var g = this.scanner.source[this.scanner.index++]; return { type: 7, value: g, lineNumber: this.scanner.lineNumber, lineStart: this.scanner.lineStart, start: this.scanner.index - 1, end: this.scanner.index }; } if (p === 34 || p === 39) { for (var b = this.scanner.index, D = this.scanner.source[this.scanner.index++], v = ""; !this.scanner.eof(); ) { var S = this.scanner.source[this.scanner.index++]; if (S === D) break; S === "&" ? v += this.scanXHTMLEntity(D) : v += S; } return { type: 8, value: v, lineNumber: this.scanner.lineNumber, lineStart: this.scanner.lineStart, start: b, end: this.scanner.index }; } if (p === 46) { var C = this.scanner.source.charCodeAt(this.scanner.index + 1), O = this.scanner.source.charCodeAt(this.scanner.index + 2), g = C === 46 && O === 46 ? "..." : ".", b = this.scanner.index; return this.scanner.index += g.length, { type: 7, value: g, lineNumber: this.scanner.lineNumber, lineStart: this.scanner.lineStart, start: b, end: this.scanner.index }; } if (p === 96) return { type: 10, value: "", lineNumber: this.scanner.lineNumber, lineStart: this.scanner.lineStart, start: this.scanner.index, end: this.scanner.index }; if (n.Character.isIdentifierStart(p) && p !== 92) { var b = this.scanner.index; for (++this.scanner.index; !this.scanner.eof(); ) { var S = this.scanner.source.charCodeAt(this.scanner.index); if (n.Character.isIdentifierPart(S) && S !== 92) ++this.scanner.index; else if (S === 45) ++this.scanner.index; else break; } var k = this.scanner.source.slice(b, this.scanner.index); return { type: 100, value: k, lineNumber: this.scanner.lineNumber, lineStart: this.scanner.lineStart, start: b, end: this.scanner.index }; } return this.scanner.lex(); }, y.prototype.nextJSXToken = function() { this.collectComments(), this.startMarker.index = this.scanner.index, this.startMarker.line = this.scanner.lineNumber, this.startMarker. column = this.scanner.index - this.scanner.lineStart; var p = this.lexJSX(); return this.lastMarker.index = this.scanner.index, this.lastMarker.line = this.scanner.lineNumber, this.lastMarker.column = this. scanner.index - this.scanner.lineStart, this.config.tokens && this.tokens.push(this.convertToken(p)), p; }, y.prototype.nextJSXText = function() { this.startMarker.index = this.scanner.index, this.startMarker.line = this.scanner.lineNumber, this.startMarker.column = this.scanner. index - this.scanner.lineStart; for (var p = this.scanner.index, g = ""; !this.scanner.eof(); ) { var b = this.scanner.source[this.scanner.index]; if (b === "{" || b === "<") break; ++this.scanner.index, g += b, n.Character.isLineTerminator(b.charCodeAt(0)) && (++this.scanner.lineNumber, b === "\r" && this. scanner.source[this.scanner.index] === ` ` && ++this.scanner.index, this.scanner.lineStart = this.scanner.index); } this.lastMarker.index = this.scanner.index, this.lastMarker.line = this.scanner.lineNumber, this.lastMarker.column = this.scanner. index - this.scanner.lineStart; var D = { type: 101, value: g, lineNumber: this.scanner.lineNumber, lineStart: this.scanner.lineStart, start: p, end: this.scanner.index }; return g.length > 0 && this.config.tokens && this.tokens.push(this.convertToken(D)), D; }, y.prototype.peekJSXToken = function() { var p = this.scanner.saveState(); this.scanner.scanComments(); var g = this.lexJSX(); return this.scanner.restoreState(p), g; }, y.prototype.expectJSX = function(p) { var g = this.nextJSXToken(); (g.type !== 7 || g.value !== p) && this.throwUnexpectedToken(g); }, y.prototype.matchJSX = function(p) { var g = this.peekJSXToken(); return g.type === 7 && g.value === p; }, y.prototype.parseJSXIdentifier = function() { var p = this.createJSXNode(), g = this.nextJSXToken(); return g.type !== 100 && this.throwUnexpectedToken(g), this.finalize(p, new a.JSXIdentifier(g.value)); }, y.prototype.parseJSXElementName = function() { var p = this.createJSXNode(), g = this.parseJSXIdentifier(); if (this.matchJSX(":")) { var b = g; this.expectJSX(":"); var D = this.parseJSXIdentifier(); g = this.finalize(p, new a.JSXNamespacedName(b, D)); } else if (this.matchJSX(".")) for (; this.matchJSX("."); ) { var v = g; this.expectJSX("."); var S = this.parseJSXIdentifier(); g = this.finalize(p, new a.JSXMemberExpression(v, S)); } return g; }, y.prototype.parseJSXAttributeName = function() { var p = this.createJSXNode(), g, b = this.parseJSXIdentifier(); if (this.matchJSX(":")) { var D = b; this.expectJSX(":"); var v = this.parseJSXIdentifier(); g = this.finalize(p, new a.JSXNamespacedName(D, v)); } else g = b; return g; }, y.prototype.parseJSXStringLiteralAttribute = function() { var p = this.createJSXNode(), g = this.nextJSXToken(); g.type !== 8 && this.throwUnexpectedToken(g); var b = this.getTokenRaw(g); return this.finalize(p, new u.Literal(g.value, b)); }, y.prototype.parseJSXExpressionAttribute = function() { var p = this.createJSXNode(); this.expectJSX("{"), this.finishJSX(), this.match("}") && this.tolerateError("JSX attributes must only be assigned a non-empty\ expression"); var g = this.parseAssignmentExpression(); return this.reenterJSX(), this.finalize(p, new a.JSXExpressionContainer(g)); }, y.prototype.parseJSXAttributeValue = function() { return this.matchJSX("{") ? this.parseJSXExpressionAttribute() : this.matchJSX("<") ? this.parseJSXElement() : this.parseJSXStringLiteralAttribute(); }, y.prototype.parseJSXNameValueAttribute = function() { var p = this.createJSXNode(), g = this.parseJSXAttributeName(), b = null; return this.matchJSX("=") && (this.expectJSX("="), b = this.parseJSXAttributeValue()), this.finalize(p, new a.JSXAttribute(g, b)); }, y.prototype.parseJSXSpreadAttribute = function() { var p = this.createJSXNode(); this.expectJSX("{"), this.expectJSX("..."), this.finishJSX(); var g = this.parseAssignmentExpression(); return this.reenterJSX(), this.finalize(p, new a.JSXSpreadAttribute(g)); }, y.prototype.parseJSXAttributes = function() { for (var p = []; !this.matchJSX("/") && !this.matchJSX(">"); ) { var g = this.matchJSX("{") ? this.parseJSXSpreadAttribute() : this.parseJSXNameValueAttribute(); p.push(g); } return p; }, y.prototype.parseJSXOpeningElement = function() { var p = this.createJSXNode(); this.expectJSX("<"); var g = this.parseJSXElementName(), b = this.parseJSXAttributes(), D = this.matchJSX("/"); return D && this.expectJSX("/"), this.expectJSX(">"), this.finalize(p, new a.JSXOpeningElement(g, D, b)); }, y.prototype.parseJSXBoundaryElement = function() { var p = this.createJSXNode(); if (this.expectJSX("<"), this.matchJSX("/")) { this.expectJSX("/"); var g = this.parseJSXElementName(); return this.expectJSX(">"), this.finalize(p, new a.JSXClosingElement(g)); } var b = this.parseJSXElementName(), D = this.parseJSXAttributes(), v = this.matchJSX("/"); return v && this.expectJSX("/"), this.expectJSX(">"), this.finalize(p, new a.JSXOpeningElement(b, v, D)); }, y.prototype.parseJSXEmptyExpression = function() { var p = this.createJSXChildNode(); return this.collectComments(), this.lastMarker.index = this.scanner.index, this.lastMarker.line = this.scanner.lineNumber, this. lastMarker.column = this.scanner.index - this.scanner.lineStart, this.finalize(p, new a.JSXEmptyExpression()); }, y.prototype.parseJSXExpressionContainer = function() { var p = this.createJSXNode(); this.expectJSX("{"); var g; return this.matchJSX("}") ? (g = this.parseJSXEmptyExpression(), this.expectJSX("}")) : (this.finishJSX(), g = this.parseAssignmentExpression(), this.reenterJSX()), this.finalize(p, new a.JSXExpressionContainer(g)); }, y.prototype.parseJSXChildren = function() { for (var p = []; !this.scanner.eof(); ) { var g = this.createJSXChildNode(), b = this.nextJSXText(); if (b.start < b.end) { var D = this.getTokenRaw(b), v = this.finalize(g, new a.JSXText(b.value, D)); p.push(v); } if (this.scanner.source[this.scanner.index] === "{") { var S = this.parseJSXExpressionContainer(); p.push(S); } else break; } return p; }, y.prototype.parseComplexJSXElement = function(p) { for (var g = []; !this.scanner.eof(); ) { p.children = p.children.concat(this.parseJSXChildren()); var b = this.createJSXChildNode(), D = this.parseJSXBoundaryElement(); if (D.type === o.JSXSyntax.JSXOpeningElement) { var v = D; if (v.selfClosing) { var S = this.finalize(b, new a.JSXElement(v, [], null)); p.children.push(S); } else g.push(p), p = { node: b, opening: v, closing: null, children: [] }; } if (D.type === o.JSXSyntax.JSXClosingElement) { p.closing = D; var C = m(p.opening.name), O = m(p.closing.name); if (C !== O && this.tolerateError("Expected corresponding JSX closing tag for %0", C), g.length > 0) { var S = this.finalize(p.node, new a.JSXElement(p.opening, p.children, p.closing)); p = g[g.length - 1], p.children.push(S), g.pop(); } else break; } } return p; }, y.prototype.parseJSXElement = function() { var p = this.createJSXNode(), g = this.parseJSXOpeningElement(), b = [], D = null; if (!g.selfClosing) { var v = this.parseComplexJSXElement({ node: p, opening: g, closing: D, children: b }); b = v.children, D = v.closing; } return this.finalize(p, new a.JSXElement(g, b, D)); }, y.prototype.parseJSXRoot = function() { this.config.tokens && this.tokens.pop(), this.startJSX(); var p = this.parseJSXElement(); return this.finishJSX(), p; }, y.prototype.isStartOfExpression = function() { return d.prototype.isStartOfExpression.call(this) || this.match("<"); }, y; }(l.Parser); t.JSXParser = h; }, /* 4 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = { // Unicode v8.0.0 NonAsciiIdentifierStart: NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/, // Unicode v8.0.0 NonAsciiIdentifierPart: NonAsciiIdentifierPart: /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/ }; t.Character = { /* tslint:disable:no-bitwise */ fromCodePoint: /* @__PURE__ */ s(function(i) { return i < 65536 ? String.fromCharCode(i) : String.fromCharCode(55296 + (i - 65536 >> 10)) + String.fromCharCode(56320 + (i - 65536 & 1023)); }, "fromCodePoint"), // https://tc39.github.io/ecma262/#sec-white-space isWhiteSpace: /* @__PURE__ */ s(function(i) { return i === 32 || i === 9 || i === 11 || i === 12 || i === 160 || i >= 5760 && [5760, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199, 8200, 8201, 8202, 8239, 8287, 12288, 65279].indexOf(i) >= 0; }, "isWhiteSpace"), // https://tc39.github.io/ecma262/#sec-line-terminators isLineTerminator: /* @__PURE__ */ s(function(i) { return i === 10 || i === 13 || i === 8232 || i === 8233; }, "isLineTerminator"), // https://tc39.github.io/ecma262/#sec-names-and-keywords isIdentifierStart: /* @__PURE__ */ s(function(i) { return i === 36 || i === 95 || i >= 65 && i <= 90 || i >= 97 && i <= 122 || i === 92 || i >= 128 && r.NonAsciiIdentifierStart. test(t.Character.fromCodePoint(i)); }, "isIdentifierStart"), isIdentifierPart: /* @__PURE__ */ s(function(i) { return i === 36 || i === 95 || i >= 65 && i <= 90 || i >= 97 && i <= 122 || i >= 48 && i <= 57 || i === 92 || i >= 128 && r.NonAsciiIdentifierPart. test(t.Character.fromCodePoint(i)); }, "isIdentifierPart"), // https://tc39.github.io/ecma262/#sec-literals-numeric-literals isDecimalDigit: /* @__PURE__ */ s(function(i) { return i >= 48 && i <= 57; }, "isDecimalDigit"), isHexDigit: /* @__PURE__ */ s(function(i) { return i >= 48 && i <= 57 || i >= 65 && i <= 70 || i >= 97 && i <= 102; }, "isHexDigit"), isOctalDigit: /* @__PURE__ */ s(function(i) { return i >= 48 && i <= 55; }, "isOctalDigit") }; }, /* 5 */ /***/ function(e, t, r) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(6), n = function() { function p(g) { this.type = i.JSXSyntax.JSXClosingElement, this.name = g; } return s(p, "JSXClosingElement"), p; }(); t.JSXClosingElement = n; var a = function() { function p(g, b, D) { this.type = i.JSXSyntax.JSXElement, this.openingElement = g, this.children = b, this.closingElement = D; } return s(p, "JSXElement"), p; }(); t.JSXElement = a; var o = function() { function p() { this.type = i.JSXSyntax.JSXEmptyExpression; } return s(p, "JSXEmptyExpression"), p; }(); t.JSXEmptyExpression = o; var u = function() { function p(g) { this.type = i.JSXSyntax.JSXExpressionContainer, this.expression = g; } return s(p, "JSXExpressionContainer"), p; }(); t.JSXExpressionContainer = u; var l = function() { function p(g) { this.type = i.JSXSyntax.JSXIdentifier, this.name = g; } return s(p, "JSXIdentifier"), p; }(); t.JSXIdentifier = l; var c = function() { function p(g, b) { this.type = i.JSXSyntax.JSXMemberExpression, this.object = g, this.property = b; } return s(p, "JSXMemberExpression"), p; }(); t.JSXMemberExpression = c; var f = function() { function p(g, b) { this.type = i.JSXSyntax.JSXAttribute, this.name = g, this.value = b; } return s(p, "JSXAttribute"), p; }(); t.JSXAttribute = f; var m = function() { function p(g, b) { this.type = i.JSXSyntax.JSXNamespacedName, this.namespace = g, this.name = b; } return s(p, "JSXNamespacedName"), p; }(); t.JSXNamespacedName = m; var h = function() { function p(g, b, D) { this.type = i.JSXSyntax.JSXOpeningElement, this.name = g, this.selfClosing = b, this.attributes = D; } return s(p, "JSXOpeningElement"), p; }(); t.JSXOpeningElement = h; var d = function() { function p(g) { this.type = i.JSXSyntax.JSXSpreadAttribute, this.argument = g; } return s(p, "JSXSpreadAttribute"), p; }(); t.JSXSpreadAttribute = d; var y = function() { function p(g, b) { this.type = i.JSXSyntax.JSXText, this.value = g, this.raw = b; } return s(p, "JSXText"), p; }(); t.JSXText = y; }, /* 6 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), t.JSXSyntax = { JSXAttribute: "JSXAttribute", JSXClosingElement: "JSXClosingElement", JSXElement: "JSXElement", JSXEmptyExpression: "JSXEmptyExpression", JSXExpressionContainer: "JSXExpressionContainer", JSXIdentifier: "JSXIdentifier", JSXMemberExpression: "JSXMemberExpression", JSXNamespacedName: "JSXNamespacedName", JSXOpeningElement: "JSXOpeningElement", JSXSpreadAttribute: "JSXSpreadAttribute", JSXText: "JSXText" }; }, /* 7 */ /***/ function(e, t, r) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(2), n = function() { function J(Z) { this.type = i.Syntax.ArrayExpression, this.elements = Z; } return s(J, "ArrayExpression"), J; }(); t.ArrayExpression = n; var a = function() { function J(Z) { this.type = i.Syntax.ArrayPattern, this.elements = Z; } return s(J, "ArrayPattern"), J; }(); t.ArrayPattern = a; var o = function() { function J(Z, he, Je) { this.type = i.Syntax.ArrowFunctionExpression, this.id = null, this.params = Z, this.body = he, this.generator = !1, this.expression = Je, this.async = !1; } return s(J, "ArrowFunctionExpression"), J; }(); t.ArrowFunctionExpression = o; var u = function() { function J(Z, he, Je) { this.type = i.Syntax.AssignmentExpression, this.operator = Z, this.left = he, this.right = Je; } return s(J, "AssignmentExpression"), J; }(); t.AssignmentExpression = u; var l = function() { function J(Z, he) { this.type = i.Syntax.AssignmentPattern, this.left = Z, this.right = he; } return s(J, "AssignmentPattern"), J; }(); t.AssignmentPattern = l; var c = function() { function J(Z, he, Je) { this.type = i.Syntax.ArrowFunctionExpression, this.id = null, this.params = Z, this.body = he, this.generator = !1, this.expression = Je, this.async = !0; } return s(J, "AsyncArrowFunctionExpression"), J; }(); t.AsyncArrowFunctionExpression = c; var f = function() { function J(Z, he, Je) { this.type = i.Syntax.FunctionDeclaration, this.id = Z, this.params = he, this.body = Je, this.generator = !1, this.expression = !1, this.async = !0; } return s(J, "AsyncFunctionDeclaration"), J; }(); t.AsyncFunctionDeclaration = f; var m = function() { function J(Z, he, Je) { this.type = i.Syntax.FunctionExpression, this.id = Z, this.params = he, this.body = Je, this.generator = !1, this.expression = !1, this.async = !0; } return s(J, "AsyncFunctionExpression"), J; }(); t.AsyncFunctionExpression = m; var h = function() { function J(Z) { this.type = i.Syntax.AwaitExpression, this.argument = Z; } return s(J, "AwaitExpression"), J; }(); t.AwaitExpression = h; var d = function() { function J(Z, he, Je) { var Yr = Z === "||" || Z === "&&"; this.type = Yr ? i.Syntax.LogicalExpression : i.Syntax.BinaryExpression, this.operator = Z, this.left = he, this.right = Je; } return s(J, "BinaryExpression"), J; }(); t.BinaryExpression = d; var y = function() { function J(Z) { this.type = i.Syntax.BlockStatement, this.body = Z; } return s(J, "BlockStatement"), J; }(); t.BlockStatement = y; var p = function() { function J(Z) { this.type = i.Syntax.BreakStatement, this.label = Z; } return s(J, "BreakStatement"), J; }(); t.BreakStatement = p; var g = function() { function J(Z, he) { this.type = i.Syntax.CallExpression, this.callee = Z, this.arguments = he; } return s(J, "CallExpression"), J; }(); t.CallExpression = g; var b = function() { function J(Z, he) { this.type = i.Syntax.CatchClause, this.param = Z, this.body = he; } return s(J, "CatchClause"), J; }(); t.CatchClause = b; var D = function() { function J(Z) { this.type = i.Syntax.ClassBody, this.body = Z; } return s(J, "ClassBody"), J; }(); t.ClassBody = D; var v = function() { function J(Z, he, Je) { this.type = i.Syntax.ClassDeclaration, this.id = Z, this.superClass = he, this.body = Je; } return s(J, "ClassDeclaration"), J; }(); t.ClassDeclaration = v; var S = function() { function J(Z, he, Je) { this.type = i.Syntax.ClassExpression, this.id = Z, this.superClass = he, this.body = Je; } return s(J, "ClassExpression"), J; }(); t.ClassExpression = S; var C = function() { function J(Z, he) { this.type = i.Syntax.MemberExpression, this.computed = !0, this.object = Z, this.property = he; } return s(J, "ComputedMemberExpression"), J; }(); t.ComputedMemberExpression = C; var O = function() { function J(Z, he, Je) { this.type = i.Syntax.ConditionalExpression, this.test = Z, this.consequent = he, this.alternate = Je; } return s(J, "ConditionalExpression"), J; }(); t.ConditionalExpression = O; var k = function() { function J(Z) { this.type = i.Syntax.ContinueStatement, this.label = Z; } return s(J, "ContinueStatement"), J; }(); t.ContinueStatement = k; var U = function() { function J() { this.type = i.Syntax.DebuggerStatement; } return s(J, "DebuggerStatement"), J; }(); t.DebuggerStatement = U; var j = function() { function J(Z, he) { this.type = i.Syntax.ExpressionStatement, this.expression = Z, this.directive = he; } return s(J, "Directive"), J; }(); t.Directive = j; var H = function() { function J(Z, he) { this.type = i.Syntax.DoWhileStatement, this.body = Z, this.test = he; } return s(J, "DoWhileStatement"), J; }(); t.DoWhileStatement = H; var R = function() { function J() { this.type = i.Syntax.EmptyStatement; } return s(J, "EmptyStatement"), J; }(); t.EmptyStatement = R; var Q = function() { function J(Z) { this.type = i.Syntax.ExportAllDeclaration, this.source = Z; } return s(J, "ExportAllDeclaration"), J; }(); t.ExportAllDeclaration = Q; var te = function() { function J(Z) { this.type = i.Syntax.ExportDefaultDeclaration, this.declaration = Z; } return s(J, "ExportDefaultDeclaration"), J; }(); t.ExportDefaultDeclaration = te; var ee = function() { function J(Z, he, Je) { this.type = i.Syntax.ExportNamedDeclaration, this.declaration = Z, this.specifiers = he, this.source = Je; } return s(J, "ExportNamedDeclaration"), J; }(); t.ExportNamedDeclaration = ee; var Y = function() { function J(Z, he) { this.type = i.Syntax.ExportSpecifier, this.exported = he, this.local = Z; } return s(J, "ExportSpecifier"), J; }(); t.ExportSpecifier = Y; var re = function() { function J(Z) { this.type = i.Syntax.ExpressionStatement, this.expression = Z; } return s(J, "ExpressionStatement"), J; }(); t.ExpressionStatement = re; var se = function() { function J(Z, he, Je) { this.type = i.Syntax.ForInStatement, this.left = Z, this.right = he, this.body = Je, this.each = !1; } return s(J, "ForInStatement"), J; }(); t.ForInStatement = se; var X = function() { function J(Z, he, Je) { this.type = i.Syntax.ForOfStatement, this.left = Z, this.right = he, this.body = Je; } return s(J, "ForOfStatement"), J; }(); t.ForOfStatement = X; var pe = function() { function J(Z, he, Je, Yr) { this.type = i.Syntax.ForStatement, this.init = Z, this.test = he, this.update = Je, this.body = Yr; } return s(J, "ForStatement"), J; }(); t.ForStatement = pe; var me = function() { function J(Z, he, Je, Yr) { this.type = i.Syntax.FunctionDeclaration, this.id = Z, this.params = he, this.body = Je, this.generator = Yr, this.expression = !1, this.async = !1; } return s(J, "FunctionDeclaration"), J; }(); t.FunctionDeclaration = me; var ke = function() { function J(Z, he, Je, Yr) { this.type = i.Syntax.FunctionExpression, this.id = Z, this.params = he, this.body = Je, this.generator = Yr, this.expression = !1, this.async = !1; } return s(J, "FunctionExpression"), J; }(); t.FunctionExpression = ke; var fe = function() { function J(Z) { this.type = i.Syntax.Identifier, this.name = Z; } return s(J, "Identifier"), J; }(); t.Identifier = fe; var ge = function() { function J(Z, he, Je) { this.type = i.Syntax.IfStatement, this.test = Z, this.consequent = he, this.alternate = Je; } return s(J, "IfStatement"), J; }(); t.IfStatement = ge; var Ne = function() { function J(Z, he) { this.type = i.Syntax.ImportDeclaration, this.specifiers = Z, this.source = he; } return s(J, "ImportDeclaration"), J; }(); t.ImportDeclaration = Ne; var gt = function() { function J(Z) { this.type = i.Syntax.ImportDefaultSpecifier, this.local = Z; } return s(J, "ImportDefaultSpecifier"), J; }(); t.ImportDefaultSpecifier = gt; var Dt = function() { function J(Z) { this.type = i.Syntax.ImportNamespaceSpecifier, this.local = Z; } return s(J, "ImportNamespaceSpecifier"), J; }(); t.ImportNamespaceSpecifier = Dt; var Wt = function() { function J(Z, he) { this.type = i.Syntax.ImportSpecifier, this.local = Z, this.imported = he; } return s(J, "ImportSpecifier"), J; }(); t.ImportSpecifier = Wt; var Dr = function() { function J(Z, he) { this.type = i.Syntax.LabeledStatement, this.label = Z, this.body = he; } return s(J, "LabeledStatement"), J; }(); t.LabeledStatement = Dr; var Fr = function() { function J(Z, he) { this.type = i.Syntax.Literal, this.value = Z, this.raw = he; } return s(J, "Literal"), J; }(); t.Literal = Fr; var vr = function() { function J(Z, he) { this.type = i.Syntax.MetaProperty, this.meta = Z, this.property = he; } return s(J, "MetaProperty"), J; }(); t.MetaProperty = vr; var $t = function() { function J(Z, he, Je, Yr, go) { this.type = i.Syntax.MethodDefinition, this.key = Z, this.computed = he, this.value = Je, this.kind = Yr, this.static = go; } return s(J, "MethodDefinition"), J; }(); t.MethodDefinition = $t; var Lr = function() { function J(Z) { this.type = i.Syntax.Program, this.body = Z, this.sourceType = "module"; } return s(J, "Module"), J; }(); t.Module = Lr; var li = function() { function J(Z, he) { this.type = i.Syntax.NewExpression, this.callee = Z, this.arguments = he; } return s(J, "NewExpression"), J; }(); t.NewExpression = li; var ha = function() { function J(Z) { this.type = i.Syntax.ObjectExpression, this.properties = Z; } return s(J, "ObjectExpression"), J; }(); t.ObjectExpression = ha; var $i = function() { function J(Z) { this.type = i.Syntax.ObjectPattern, this.properties = Z; } return s(J, "ObjectPattern"), J; }(); t.ObjectPattern = $i; var Te = function() { function J(Z, he, Je, Yr, go, ys) { this.type = i.Syntax.Property, this.key = he, this.computed = Je, this.value = Yr, this.kind = Z, this.method = go, this.shorthand = ys; } return s(J, "Property"), J; }(); t.Property = Te; var ye = function() { function J(Z, he, Je, Yr) { this.type = i.Syntax.Literal, this.value = Z, this.raw = he, this.regex = { pattern: Je, flags: Yr }; } return s(J, "RegexLiteral"), J; }(); t.RegexLiteral = ye; var Ke = function() { function J(Z) { this.type = i.Syntax.RestElement, this.argument = Z; } return s(J, "RestElement"), J; }(); t.RestElement = Ke; var Ft = function() { function J(Z) { this.type = i.Syntax.ReturnStatement, this.argument = Z; } return s(J, "ReturnStatement"), J; }(); t.ReturnStatement = Ft; var Vt = function() { function J(Z) { this.type = i.Syntax.Program, this.body = Z, this.sourceType = "script"; } return s(J, "Script"), J; }(); t.Script = Vt; var G = function() { function J(Z) { this.type = i.Syntax.SequenceExpression, this.expressions = Z; } return s(J, "SequenceExpression"), J; }(); t.SequenceExpression = G; var ne = function() { function J(Z) { this.type = i.Syntax.SpreadElement, this.argument = Z; } return s(J, "SpreadElement"), J; }(); t.SpreadElement = ne; var ue = function() { function J(Z, he) { this.type = i.Syntax.MemberExpression, this.computed = !1, this.object = Z, this.property = he; } return s(J, "StaticMemberExpression"), J; }(); t.StaticMemberExpression = ue; var de = function() { function J() { this.type = i.Syntax.Super; } return s(J, "Super"), J; }(); t.Super = de; var _e = function() { function J(Z, he) { this.type = i.Syntax.SwitchCase, this.test = Z, this.consequent = he; } return s(J, "SwitchCase"), J; }(); t.SwitchCase = _e; var we = function() { function J(Z, he) { this.type = i.Syntax.SwitchStatement, this.discriminant = Z, this.cases = he; } return s(J, "SwitchStatement"), J; }(); t.SwitchStatement = we; var Ue = function() { function J(Z, he) { this.type = i.Syntax.TaggedTemplateExpression, this.tag = Z, this.quasi = he; } return s(J, "TaggedTemplateExpression"), J; }(); t.TaggedTemplateExpression = Ue; var ot = function() { function J(Z, he) { this.type = i.Syntax.TemplateElement, this.value = Z, this.tail = he; } return s(J, "TemplateElement"), J; }(); t.TemplateElement = ot; var We = function() { function J(Z, he) { this.type = i.Syntax.TemplateLiteral, this.quasis = Z, this.expressions = he; } return s(J, "TemplateLiteral"), J; }(); t.TemplateLiteral = We; var Ge = function() { function J() { this.type = i.Syntax.ThisExpression; } return s(J, "ThisExpression"), J; }(); t.ThisExpression = Ge; var Bt = function() { function J(Z) { this.type = i.Syntax.ThrowStatement, this.argument = Z; } return s(J, "ThrowStatement"), J; }(); t.ThrowStatement = Bt; var dt = function() { function J(Z, he, Je) { this.type = i.Syntax.TryStatement, this.block = Z, this.handler = he, this.finalizer = Je; } return s(J, "TryStatement"), J; }(); t.TryStatement = dt; var pt = function() { function J(Z, he) { this.type = i.Syntax.UnaryExpression, this.operator = Z, this.argument = he, this.prefix = !0; } return s(J, "UnaryExpression"), J; }(); t.UnaryExpression = pt; var gr = function() { function J(Z, he, Je) { this.type = i.Syntax.UpdateExpression, this.operator = Z, this.argument = he, this.prefix = Je; } return s(J, "UpdateExpression"), J; }(); t.UpdateExpression = gr; var Ei = function() { function J(Z, he) { this.type = i.Syntax.VariableDeclaration, this.declarations = Z, this.kind = he; } return s(J, "VariableDeclaration"), J; }(); t.VariableDeclaration = Ei; var mn = function() { function J(Z, he) { this.type = i.Syntax.VariableDeclarator, this.id = Z, this.init = he; } return s(J, "VariableDeclarator"), J; }(); t.VariableDeclarator = mn; var yn = function() { function J(Z, he) { this.type = i.Syntax.WhileStatement, this.test = Z, this.body = he; } return s(J, "WhileStatement"), J; }(); t.WhileStatement = yn; var gn = function() { function J(Z, he) { this.type = i.Syntax.WithStatement, this.object = Z, this.body = he; } return s(J, "WithStatement"), J; }(); t.WithStatement = gn; var ma = function() { function J(Z, he) { this.type = i.Syntax.YieldExpression, this.argument = Z, this.delegate = he; } return s(J, "YieldExpression"), J; }(); t.YieldExpression = ma; }, /* 8 */ /***/ function(e, t, r) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(9), n = r(10), a = r(11), o = r(7), u = r(12), l = r(2), c = r(13), f = "ArrowParameterPlaceHolder", m = function() { function h(d, y, p) { y === void 0 && (y = {}), this.config = { range: typeof y.range == "boolean" && y.range, loc: typeof y.loc == "boolean" && y.loc, source: null, tokens: typeof y.tokens == "boolean" && y.tokens, comment: typeof y.comment == "boolean" && y.comment, tolerant: typeof y.tolerant == "boolean" && y.tolerant }, this.config.loc && y.source && y.source !== null && (this.config.source = String(y.source)), this.delegate = p, this.errorHandler = new n.ErrorHandler(), this.errorHandler.tolerant = this.config.tolerant, this.scanner = new u.Scanner(d, this.errorHandler), this. scanner.trackComment = this.config.comment, this.operatorPrecedence = { ")": 0, ";": 0, ",": 0, "=": 0, "]": 0, "||": 1, "&&": 2, "|": 3, "^": 4, "&": 5, "==": 6, "!=": 6, "===": 6, "!==": 6, "<": 7, ">": 7, "<=": 7, ">=": 7, "<<": 8, ">>": 8, ">>>": 8, "+": 9, "-": 9, "*": 11, "/": 11, "%": 11 }, this.lookahead = { type: 2, value: "", lineNumber: this.scanner.lineNumber, lineStart: 0, start: 0, end: 0 }, this.hasLineTerminator = !1, this.context = { isModule: !1, await: !1, allowIn: !0, allowStrictDirective: !0, allowYield: !0, firstCoverInitializedNameError: null, isAssignmentTarget: !1, isBindingElement: !1, inFunctionBody: !1, inIteration: !1, inSwitch: !1, labelSet: {}, strict: !1 }, this.tokens = [], this.startMarker = { index: 0, line: this.scanner.lineNumber, column: 0 }, this.lastMarker = { index: 0, line: this.scanner.lineNumber, column: 0 }, this.nextToken(), this.lastMarker = { index: this.scanner.index, line: this.scanner.lineNumber, column: this.scanner.index - this.scanner.lineStart }; } return s(h, "Parser"), h.prototype.throwError = function(d) { for (var y = [], p = 1; p < arguments.length; p++) y[p - 1] = arguments[p]; var g = Array.prototype.slice.call(arguments, 1), b = d.replace(/%(\d)/g, function(C, O) { return i.assert(O < g.length, "Message reference must be in range"), g[O]; }), D = this.lastMarker.index, v = this.lastMarker.line, S = this.lastMarker.column + 1; throw this.errorHandler.createError(D, v, S, b); }, h.prototype.tolerateError = function(d) { for (var y = [], p = 1; p < arguments.length; p++) y[p - 1] = arguments[p]; var g = Array.prototype.slice.call(arguments, 1), b = d.replace(/%(\d)/g, function(C, O) { return i.assert(O < g.length, "Message reference must be in range"), g[O]; }), D = this.lastMarker.index, v = this.scanner.lineNumber, S = this.lastMarker.column + 1; this.errorHandler.tolerateError(D, v, S, b); }, h.prototype.unexpectedTokenError = function(d, y) { var p = y || a.Messages.UnexpectedToken, g; if (d ? (y || (p = d.type === 2 ? a.Messages.UnexpectedEOS : d.type === 3 ? a.Messages.UnexpectedIdentifier : d.type === 6 ? a. Messages.UnexpectedNumber : d.type === 8 ? a.Messages.UnexpectedString : d.type === 10 ? a.Messages.UnexpectedTemplate : a.Messages. UnexpectedToken, d.type === 4 && (this.scanner.isFutureReservedWord(d.value) ? p = a.Messages.UnexpectedReserved : this.context. strict && this.scanner.isStrictModeReservedWord(d.value) && (p = a.Messages.StrictReservedWord))), g = d.value) : g = "ILLEGAL", p = p.replace("%0", g), d && typeof d.lineNumber == "number") { var b = d.start, D = d.lineNumber, v = this.lastMarker.index - this.lastMarker.column, S = d.start - v + 1; return this.errorHandler.createError(b, D, S, p); } else { var b = this.lastMarker.index, D = this.lastMarker.line, S = this.lastMarker.column + 1; return this.errorHandler.createError(b, D, S, p); } }, h.prototype.throwUnexpectedToken = function(d, y) { throw this.unexpectedTokenError(d, y); }, h.prototype.tolerateUnexpectedToken = function(d, y) { this.errorHandler.tolerate(this.unexpectedTokenError(d, y)); }, h.prototype.collectComments = function() { if (!this.config.comment) this.scanner.scanComments(); else { var d = this.scanner.scanComments(); if (d.length > 0 && this.delegate) for (var y = 0; y < d.length; ++y) { var p = d[y], g = void 0; g = { type: p.multiLine ? "BlockComment" : "LineComment", value: this.scanner.source.slice(p.slice[0], p.slice[1]) }, this.config.range && (g.range = p.range), this.config.loc && (g.loc = p.loc); var b = { start: { line: p.loc.start.line, column: p.loc.start.column, offset: p.range[0] }, end: { line: p.loc.end.line, column: p.loc.end.column, offset: p.range[1] } }; this.delegate(g, b); } } }, h.prototype.getTokenRaw = function(d) { return this.scanner.source.slice(d.start, d.end); }, h.prototype.convertToken = function(d) { var y = { type: c.TokenName[d.type], value: this.getTokenRaw(d) }; if (this.config.range && (y.range = [d.start, d.end]), this.config.loc && (y.loc = { start: { line: this.startMarker.line, column: this.startMarker.column }, end: { line: this.scanner.lineNumber, column: this.scanner.index - this.scanner.lineStart } }), d.type === 9) { var p = d.pattern, g = d.flags; y.regex = { pattern: p, flags: g }; } return y; }, h.prototype.nextToken = function() { var d = this.lookahead; this.lastMarker.index = this.scanner.index, this.lastMarker.line = this.scanner.lineNumber, this.lastMarker.column = this.scanner. index - this.scanner.lineStart, this.collectComments(), this.scanner.index !== this.startMarker.index && (this.startMarker.index = this.scanner.index, this.startMarker.line = this.scanner.lineNumber, this.startMarker.column = this.scanner.index - this.scanner. lineStart); var y = this.scanner.lex(); return this.hasLineTerminator = d.lineNumber !== y.lineNumber, y && this.context.strict && y.type === 3 && this.scanner.isStrictModeReservedWord( y.value) && (y.type = 4), this.lookahead = y, this.config.tokens && y.type !== 2 && this.tokens.push(this.convertToken(y)), d; }, h.prototype.nextRegexToken = function() { this.collectComments(); var d = this.scanner.scanRegExp(); return this.config.tokens && (this.tokens.pop(), this.tokens.push(this.convertToken(d))), this.lookahead = d, this.nextToken(), d; }, h.prototype.createNode = function() { return { index: this.startMarker.index, line: this.startMarker.line, column: this.startMarker.column }; }, h.prototype.startNode = function(d, y) { y === void 0 && (y = 0); var p = d.start - d.lineStart, g = d.lineNumber; return p < 0 && (p += y, g--), { index: d.start, line: g, column: p }; }, h.prototype.finalize = function(d, y) { if (this.config.range && (y.range = [d.index, this.lastMarker.index]), this.config.loc && (y.loc = { start: { line: d.line, column: d.column }, end: { line: this.lastMarker.line, column: this.lastMarker.column } }, this.config.source && (y.loc.source = this.config.source)), this.delegate) { var p = { start: { line: d.line, column: d.column, offset: d.index }, end: { line: this.lastMarker.line, column: this.lastMarker.column, offset: this.lastMarker.index } }; this.delegate(y, p); } return y; }, h.prototype.expect = function(d) { var y = this.nextToken(); (y.type !== 7 || y.value !== d) && this.throwUnexpectedToken(y); }, h.prototype.expectCommaSeparator = function() { if (this.config.tolerant) { var d = this.lookahead; d.type === 7 && d.value === "," ? this.nextToken() : d.type === 7 && d.value === ";" ? (this.nextToken(), this.tolerateUnexpectedToken( d)) : this.tolerateUnexpectedToken(d, a.Messages.UnexpectedToken); } else this.expect(","); }, h.prototype.expectKeyword = function(d) { var y = this.nextToken(); (y.type !== 4 || y.value !== d) && this.throwUnexpectedToken(y); }, h.prototype.match = function(d) { return this.lookahead.type === 7 && this.lookahead.value === d; }, h.prototype.matchKeyword = function(d) { return this.lookahead.type === 4 && this.lookahead.value === d; }, h.prototype.matchContextualKeyword = function(d) { return this.lookahead.type === 3 && this.lookahead.value === d; }, h.prototype.matchAssign = function() { if (this.lookahead.type !== 7) return !1; var d = this.lookahead.value; return d === "=" || d === "*=" || d === "**=" || d === "/=" || d === "%=" || d === "+=" || d === "-=" || d === "<<=" || d === "\ >>=" || d === ">>>=" || d === "&=" || d === "^=" || d === "|="; }, h.prototype.isolateCoverGrammar = function(d) { var y = this.context.isBindingElement, p = this.context.isAssignmentTarget, g = this.context.firstCoverInitializedNameError; this.context.isBindingElement = !0, this.context.isAssignmentTarget = !0, this.context.firstCoverInitializedNameError = null; var b = d.call(this); return this.context.firstCoverInitializedNameError !== null && this.throwUnexpectedToken(this.context.firstCoverInitializedNameError), this.context.isBindingElement = y, this.context.isAssignmentTarget = p, this.context.firstCoverInitializedNameError = g, b; }, h.prototype.inheritCoverGrammar = function(d) { var y = this.context.isBindingElement, p = this.context.isAssignmentTarget, g = this.context.firstCoverInitializedNameError; this.context.isBindingElement = !0, this.context.isAssignmentTarget = !0, this.context.firstCoverInitializedNameError = null; var b = d.call(this); return this.context.isBindingElement = this.context.isBindingElement && y, this.context.isAssignmentTarget = this.context.isAssignmentTarget && p, this.context.firstCoverInitializedNameError = g || this.context.firstCoverInitializedNameError, b; }, h.prototype.consumeSemicolon = function() { this.match(";") ? this.nextToken() : this.hasLineTerminator || (this.lookahead.type !== 2 && !this.match("}") && this.throwUnexpectedToken( this.lookahead), this.lastMarker.index = this.startMarker.index, this.lastMarker.line = this.startMarker.line, this.lastMarker. column = this.startMarker.column); }, h.prototype.parsePrimaryExpression = function() { var d = this.createNode(), y, p, g; switch (this.lookahead.type) { case 3: (this.context.isModule || this.context.await) && this.lookahead.value === "await" && this.tolerateUnexpectedToken(this.lookahead), y = this.matchAsyncFunction() ? this.parseFunctionExpression() : this.finalize(d, new o.Identifier(this.nextToken().value)); break; case 6: case 8: this.context.strict && this.lookahead.octal && this.tolerateUnexpectedToken(this.lookahead, a.Messages.StrictOctalLiteral), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, p = this.nextToken(), g = this.getTokenRaw(p), y = this.finalize(d, new o.Literal(p.value, g)); break; case 1: this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, p = this.nextToken(), g = this.getTokenRaw(p), y = this.finalize(d, new o.Literal(p.value === "true", g)); break; case 5: this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, p = this.nextToken(), g = this.getTokenRaw(p), y = this.finalize(d, new o.Literal(null, g)); break; case 10: y = this.parseTemplateLiteral(); break; case 7: switch (this.lookahead.value) { case "(": this.context.isBindingElement = !1, y = this.inheritCoverGrammar(this.parseGroupExpression); break; case "[": y = this.inheritCoverGrammar(this.parseArrayInitializer); break; case "{": y = this.inheritCoverGrammar(this.parseObjectInitializer); break; case "/": case "/=": this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, this.scanner.index = this.startMarker.index, p = this.nextRegexToken(), g = this.getTokenRaw(p), y = this.finalize(d, new o.RegexLiteral(p.regex, g, p.pattern, p.flags)); break; default: y = this.throwUnexpectedToken(this.nextToken()); } break; case 4: !this.context.strict && this.context.allowYield && this.matchKeyword("yield") ? y = this.parseIdentifierName() : !this.context. strict && this.matchKeyword("let") ? y = this.finalize(d, new o.Identifier(this.nextToken().value)) : (this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, this.matchKeyword("function") ? y = this.parseFunctionExpression() : this.matchKeyword( "this") ? (this.nextToken(), y = this.finalize(d, new o.ThisExpression())) : this.matchKeyword("class") ? y = this.parseClassExpression() : y = this.throwUnexpectedToken(this.nextToken())); break; default: y = this.throwUnexpectedToken(this.nextToken()); } return y; }, h.prototype.parseSpreadElement = function() { var d = this.createNode(); this.expect("..."); var y = this.inheritCoverGrammar(this.parseAssignmentExpression); return this.finalize(d, new o.SpreadElement(y)); }, h.prototype.parseArrayInitializer = function() { var d = this.createNode(), y = []; for (this.expect("["); !this.match("]"); ) if (this.match(",")) this.nextToken(), y.push(null); else if (this.match("...")) { var p = this.parseSpreadElement(); this.match("]") || (this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, this.expect(",")), y.push(p); } else y.push(this.inheritCoverGrammar(this.parseAssignmentExpression)), this.match("]") || this.expect(","); return this.expect("]"), this.finalize(d, new o.ArrayExpression(y)); }, h.prototype.parsePropertyMethod = function(d) { this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; var y = this.context.strict, p = this.context.allowStrictDirective; this.context.allowStrictDirective = d.simple; var g = this.isolateCoverGrammar(this.parseFunctionSourceElements); return this.context.strict && d.firstRestricted && this.tolerateUnexpectedToken(d.firstRestricted, d.message), this.context.strict && d.stricted && this.tolerateUnexpectedToken(d.stricted, d.message), this.context.strict = y, this.context.allowStrictDirective = p, g; }, h.prototype.parsePropertyMethodFunction = function() { var d = !1, y = this.createNode(), p = this.context.allowYield; this.context.allowYield = !0; var g = this.parseFormalParameters(), b = this.parsePropertyMethod(g); return this.context.allowYield = p, this.finalize(y, new o.FunctionExpression(null, g.params, b, d)); }, h.prototype.parsePropertyMethodAsyncFunction = function() { var d = this.createNode(), y = this.context.allowYield, p = this.context.await; this.context.allowYield = !1, this.context.await = !0; var g = this.parseFormalParameters(), b = this.parsePropertyMethod(g); return this.context.allowYield = y, this.context.await = p, this.finalize(d, new o.AsyncFunctionExpression(null, g.params, b)); }, h.prototype.parseObjectPropertyKey = function() { var d = this.createNode(), y = this.nextToken(), p; switch (y.type) { case 8: case 6: this.context.strict && y.octal && this.tolerateUnexpectedToken(y, a.Messages.StrictOctalLiteral); var g = this.getTokenRaw(y); p = this.finalize(d, new o.Literal(y.value, g)); break; case 3: case 1: case 5: case 4: p = this.finalize(d, new o.Identifier(y.value)); break; case 7: y.value === "[" ? (p = this.isolateCoverGrammar(this.parseAssignmentExpression), this.expect("]")) : p = this.throwUnexpectedToken( y); break; default: p = this.throwUnexpectedToken(y); } return p; }, h.prototype.isPropertyKey = function(d, y) { return d.type === l.Syntax.Identifier && d.name === y || d.type === l.Syntax.Literal && d.value === y; }, h.prototype.parseObjectProperty = function(d) { var y = this.createNode(), p = this.lookahead, g, b = null, D = null, v = !1, S = !1, C = !1, O = !1; if (p.type === 3) { var k = p.value; this.nextToken(), v = this.match("["), O = !this.hasLineTerminator && k === "async" && !this.match(":") && !this.match("(") && !this.match("*") && !this.match(","), b = O ? this.parseObjectPropertyKey() : this.finalize(y, new o.Identifier(k)); } else this.match("*") ? this.nextToken() : (v = this.match("["), b = this.parseObjectPropertyKey()); var U = this.qualifiedPropertyName(this.lookahead); if (p.type === 3 && !O && p.value === "get" && U) g = "get", v = this.match("["), b = this.parseObjectPropertyKey(), this.context.allowYield = !1, D = this.parseGetterMethod(); else if (p.type === 3 && !O && p.value === "set" && U) g = "set", v = this.match("["), b = this.parseObjectPropertyKey(), D = this.parseSetterMethod(); else if (p.type === 7 && p.value === "*" && U) g = "init", v = this.match("["), b = this.parseObjectPropertyKey(), D = this.parseGeneratorMethod(), S = !0; else if (b || this.throwUnexpectedToken(this.lookahead), g = "init", this.match(":") && !O) !v && this.isPropertyKey(b, "__proto__") && (d.value && this.tolerateError(a.Messages.DuplicateProtoProperty), d.value = !0), this.nextToken(), D = this.inheritCoverGrammar(this.parseAssignmentExpression); else if (this.match("(")) D = O ? this.parsePropertyMethodAsyncFunction() : this.parsePropertyMethodFunction(), S = !0; else if (p.type === 3) { var k = this.finalize(y, new o.Identifier(p.value)); if (this.match("=")) { this.context.firstCoverInitializedNameError = this.lookahead, this.nextToken(), C = !0; var j = this.isolateCoverGrammar(this.parseAssignmentExpression); D = this.finalize(y, new o.AssignmentPattern(k, j)); } else C = !0, D = k; } else this.throwUnexpectedToken(this.nextToken()); return this.finalize(y, new o.Property(g, b, v, D, S, C)); }, h.prototype.parseObjectInitializer = function() { var d = this.createNode(); this.expect("{"); for (var y = [], p = { value: !1 }; !this.match("}"); ) y.push(this.parseObjectProperty(p)), this.match("}") || this.expectCommaSeparator(); return this.expect("}"), this.finalize(d, new o.ObjectExpression(y)); }, h.prototype.parseTemplateHead = function() { i.assert(this.lookahead.head, "Template literal must start with a template head"); var d = this.createNode(), y = this.nextToken(), p = y.value, g = y.cooked; return this.finalize(d, new o.TemplateElement({ raw: p, cooked: g }, y.tail)); }, h.prototype.parseTemplateElement = function() { this.lookahead.type !== 10 && this.throwUnexpectedToken(); var d = this.createNode(), y = this.nextToken(), p = y.value, g = y.cooked; return this.finalize(d, new o.TemplateElement({ raw: p, cooked: g }, y.tail)); }, h.prototype.parseTemplateLiteral = function() { var d = this.createNode(), y = [], p = [], g = this.parseTemplateHead(); for (p.push(g); !g.tail; ) y.push(this.parseExpression()), g = this.parseTemplateElement(), p.push(g); return this.finalize(d, new o.TemplateLiteral(p, y)); }, h.prototype.reinterpretExpressionAsPattern = function(d) { switch (d.type) { case l.Syntax.Identifier: case l.Syntax.MemberExpression: case l.Syntax.RestElement: case l.Syntax.AssignmentPattern: break; case l.Syntax.SpreadElement: d.type = l.Syntax.RestElement, this.reinterpretExpressionAsPattern(d.argument); break; case l.Syntax.ArrayExpression: d.type = l.Syntax.ArrayPattern; for (var y = 0; y < d.elements.length; y++) d.elements[y] !== null && this.reinterpretExpressionAsPattern(d.elements[y]); break; case l.Syntax.ObjectExpression: d.type = l.Syntax.ObjectPattern; for (var y = 0; y < d.properties.length; y++) this.reinterpretExpressionAsPattern(d.properties[y].value); break; case l.Syntax.AssignmentExpression: d.type = l.Syntax.AssignmentPattern, delete d.operator, this.reinterpretExpressionAsPattern(d.left); break; default: break; } }, h.prototype.parseGroupExpression = function() { var d; if (this.expect("("), this.match(")")) this.nextToken(), this.match("=>") || this.expect("=>"), d = { type: f, params: [], async: !1 }; else { var y = this.lookahead, p = []; if (this.match("...")) d = this.parseRestElement(p), this.expect(")"), this.match("=>") || this.expect("=>"), d = { type: f, params: [d], async: !1 }; else { var g = !1; if (this.context.isBindingElement = !0, d = this.inheritCoverGrammar(this.parseAssignmentExpression), this.match(",")) { var b = []; for (this.context.isAssignmentTarget = !1, b.push(d); this.lookahead.type !== 2 && this.match(","); ) { if (this.nextToken(), this.match(")")) { this.nextToken(); for (var D = 0; D < b.length; D++) this.reinterpretExpressionAsPattern(b[D]); g = !0, d = { type: f, params: b, async: !1 }; } else if (this.match("...")) { this.context.isBindingElement || this.throwUnexpectedToken(this.lookahead), b.push(this.parseRestElement(p)), this.expect( ")"), this.match("=>") || this.expect("=>"), this.context.isBindingElement = !1; for (var D = 0; D < b.length; D++) this.reinterpretExpressionAsPattern(b[D]); g = !0, d = { type: f, params: b, async: !1 }; } else b.push(this.inheritCoverGrammar(this.parseAssignmentExpression)); if (g) break; } g || (d = this.finalize(this.startNode(y), new o.SequenceExpression(b))); } if (!g) { if (this.expect(")"), this.match("=>") && (d.type === l.Syntax.Identifier && d.name === "yield" && (g = !0, d = { type: f, params: [d], async: !1 }), !g)) { if (this.context.isBindingElement || this.throwUnexpectedToken(this.lookahead), d.type === l.Syntax.SequenceExpression) for (var D = 0; D < d.expressions.length; D++) this.reinterpretExpressionAsPattern(d.expressions[D]); else this.reinterpretExpressionAsPattern(d); var v = d.type === l.Syntax.SequenceExpression ? d.expressions : [d]; d = { type: f, params: v, async: !1 }; } this.context.isBindingElement = !1; } } } return d; }, h.prototype.parseArguments = function() { this.expect("("); var d = []; if (!this.match(")")) for (; ; ) { var y = this.match("...") ? this.parseSpreadElement() : this.isolateCoverGrammar(this.parseAssignmentExpression); if (d.push(y), this.match(")") || (this.expectCommaSeparator(), this.match(")"))) break; } return this.expect(")"), d; }, h.prototype.isIdentifierName = function(d) { return d.type === 3 || d.type === 4 || d.type === 1 || d.type === 5; }, h.prototype.parseIdentifierName = function() { var d = this.createNode(), y = this.nextToken(); return this.isIdentifierName(y) || this.throwUnexpectedToken(y), this.finalize(d, new o.Identifier(y.value)); }, h.prototype.parseNewExpression = function() { var d = this.createNode(), y = this.parseIdentifierName(); i.assert(y.name === "new", "New expression must start with `new`"); var p; if (this.match(".")) if (this.nextToken(), this.lookahead.type === 3 && this.context.inFunctionBody && this.lookahead.value === "target") { var g = this.parseIdentifierName(); p = new o.MetaProperty(y, g); } else this.throwUnexpectedToken(this.lookahead); else { var b = this.isolateCoverGrammar(this.parseLeftHandSideExpression), D = this.match("(") ? this.parseArguments() : []; p = new o.NewExpression(b, D), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; } return this.finalize(d, p); }, h.prototype.parseAsyncArgument = function() { var d = this.parseAssignmentExpression(); return this.context.firstCoverInitializedNameError = null, d; }, h.prototype.parseAsyncArguments = function() { this.expect("("); var d = []; if (!this.match(")")) for (; ; ) { var y = this.match("...") ? this.parseSpreadElement() : this.isolateCoverGrammar(this.parseAsyncArgument); if (d.push(y), this.match(")") || (this.expectCommaSeparator(), this.match(")"))) break; } return this.expect(")"), d; }, h.prototype.parseLeftHandSideExpressionAllowCall = function() { var d = this.lookahead, y = this.matchContextualKeyword("async"), p = this.context.allowIn; this.context.allowIn = !0; var g; for (this.matchKeyword("super") && this.context.inFunctionBody ? (g = this.createNode(), this.nextToken(), g = this.finalize(g, new o.Super()), !this.match("(") && !this.match(".") && !this.match("[") && this.throwUnexpectedToken(this.lookahead)) : g = this. inheritCoverGrammar(this.matchKeyword("new") ? this.parseNewExpression : this.parsePrimaryExpression); ; ) if (this.match(".")) { this.context.isBindingElement = !1, this.context.isAssignmentTarget = !0, this.expect("."); var b = this.parseIdentifierName(); g = this.finalize(this.startNode(d), new o.StaticMemberExpression(g, b)); } else if (this.match("(")) { var D = y && d.lineNumber === this.lookahead.lineNumber; this.context.isBindingElement = !1, this.context.isAssignmentTarget = !1; var v = D ? this.parseAsyncArguments() : this.parseArguments(); if (g = this.finalize(this.startNode(d), new o.CallExpression(g, v)), D && this.match("=>")) { for (var S = 0; S < v.length; ++S) this.reinterpretExpressionAsPattern(v[S]); g = { type: f, params: v, async: !0 }; } } else if (this.match("[")) { this.context.isBindingElement = !1, this.context.isAssignmentTarget = !0, this.expect("["); var b = this.isolateCoverGrammar(this.parseExpression); this.expect("]"), g = this.finalize(this.startNode(d), new o.ComputedMemberExpression(g, b)); } else if (this.lookahead.type === 10 && this.lookahead.head) { var C = this.parseTemplateLiteral(); g = this.finalize(this.startNode(d), new o.TaggedTemplateExpression(g, C)); } else break; return this.context.allowIn = p, g; }, h.prototype.parseSuper = function() { var d = this.createNode(); return this.expectKeyword("super"), !this.match("[") && !this.match(".") && this.throwUnexpectedToken(this.lookahead), this.finalize( d, new o.Super()); }, h.prototype.parseLeftHandSideExpression = function() { i.assert(this.context.allowIn, "callee of new expression always allow in keyword."); for (var d = this.startNode(this.lookahead), y = this.matchKeyword("super") && this.context.inFunctionBody ? this.parseSuper() : this.inheritCoverGrammar(this.matchKeyword("new") ? this.parseNewExpression : this.parsePrimaryExpression); ; ) if (this.match("[")) { this.context.isBindingElement = !1, this.context.isAssignmentTarget = !0, this.expect("["); var p = this.isolateCoverGrammar(this.parseExpression); this.expect("]"), y = this.finalize(d, new o.ComputedMemberExpression(y, p)); } else if (this.match(".")) { this.context.isBindingElement = !1, this.context.isAssignmentTarget = !0, this.expect("."); var p = this.parseIdentifierName(); y = this.finalize(d, new o.StaticMemberExpression(y, p)); } else if (this.lookahead.type === 10 && this.lookahead.head) { var g = this.parseTemplateLiteral(); y = this.finalize(d, new o.TaggedTemplateExpression(y, g)); } else break; return y; }, h.prototype.parseUpdateExpression = function() { var d, y = this.lookahead; if (this.match("++") || this.match("--")) { var p = this.startNode(y), g = this.nextToken(); d = this.inheritCoverGrammar(this.parseUnaryExpression), this.context.strict && d.type === l.Syntax.Identifier && this.scanner. isRestrictedWord(d.name) && this.tolerateError(a.Messages.StrictLHSPrefix), this.context.isAssignmentTarget || this.tolerateError( a.Messages.InvalidLHSInAssignment); var b = !0; d = this.finalize(p, new o.UpdateExpression(g.value, d, b)), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; } else if (d = this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall), !this.hasLineTerminator && this.lookahead. type === 7 && (this.match("++") || this.match("--"))) { this.context.strict && d.type === l.Syntax.Identifier && this.scanner.isRestrictedWord(d.name) && this.tolerateError(a.Messages. StrictLHSPostfix), this.context.isAssignmentTarget || this.tolerateError(a.Messages.InvalidLHSInAssignment), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; var D = this.nextToken().value, b = !1; d = this.finalize(this.startNode(y), new o.UpdateExpression(D, d, b)); } return d; }, h.prototype.parseAwaitExpression = function() { var d = this.createNode(); this.nextToken(); var y = this.parseUnaryExpression(); return this.finalize(d, new o.AwaitExpression(y)); }, h.prototype.parseUnaryExpression = function() { var d; if (this.match("+") || this.match("-") || this.match("~") || this.match("!") || this.matchKeyword("delete") || this.matchKeyword( "void") || this.matchKeyword("typeof")) { var y = this.startNode(this.lookahead), p = this.nextToken(); d = this.inheritCoverGrammar(this.parseUnaryExpression), d = this.finalize(y, new o.UnaryExpression(p.value, d)), this.context. strict && d.operator === "delete" && d.argument.type === l.Syntax.Identifier && this.tolerateError(a.Messages.StrictDelete), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; } else this.context.await && this.matchContextualKeyword("await") ? d = this.parseAwaitExpression() : d = this.parseUpdateExpression(); return d; }, h.prototype.parseExponentiationExpression = function() { var d = this.lookahead, y = this.inheritCoverGrammar(this.parseUnaryExpression); if (y.type !== l.Syntax.UnaryExpression && this.match("**")) { this.nextToken(), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; var p = y, g = this.isolateCoverGrammar(this.parseExponentiationExpression); y = this.finalize(this.startNode(d), new o.BinaryExpression("**", p, g)); } return y; }, h.prototype.binaryPrecedence = function(d) { var y = d.value, p; return d.type === 7 ? p = this.operatorPrecedence[y] || 0 : d.type === 4 ? p = y === "instanceof" || this.context.allowIn && y === "in" ? 7 : 0 : p = 0, p; }, h.prototype.parseBinaryExpression = function() { var d = this.lookahead, y = this.inheritCoverGrammar(this.parseExponentiationExpression), p = this.lookahead, g = this.binaryPrecedence( p); if (g > 0) { this.nextToken(), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; for (var b = [d, this.lookahead], D = y, v = this.isolateCoverGrammar(this.parseExponentiationExpression), S = [D, p.value, v], C = [g]; g = this.binaryPrecedence(this.lookahead), !(g <= 0); ) { for (; S.length > 2 && g <= C[C.length - 1]; ) { v = S.pop(); var O = S.pop(); C.pop(), D = S.pop(), b.pop(); var k = this.startNode(b[b.length - 1]); S.push(this.finalize(k, new o.BinaryExpression(O, D, v))); } S.push(this.nextToken().value), C.push(g), b.push(this.lookahead), S.push(this.isolateCoverGrammar(this.parseExponentiationExpression)); } var U = S.length - 1; y = S[U]; for (var j = b.pop(); U > 1; ) { var H = b.pop(), R = j && j.lineStart, k = this.startNode(H, R), O = S[U - 1]; y = this.finalize(k, new o.BinaryExpression(O, S[U - 2], y)), U -= 2, j = H; } } return y; }, h.prototype.parseConditionalExpression = function() { var d = this.lookahead, y = this.inheritCoverGrammar(this.parseBinaryExpression); if (this.match("?")) { this.nextToken(); var p = this.context.allowIn; this.context.allowIn = !0; var g = this.isolateCoverGrammar(this.parseAssignmentExpression); this.context.allowIn = p, this.expect(":"); var b = this.isolateCoverGrammar(this.parseAssignmentExpression); y = this.finalize(this.startNode(d), new o.ConditionalExpression(y, g, b)), this.context.isAssignmentTarget = !1, this.context. isBindingElement = !1; } return y; }, h.prototype.checkPatternParam = function(d, y) { switch (y.type) { case l.Syntax.Identifier: this.validateParam(d, y, y.name); break; case l.Syntax.RestElement: this.checkPatternParam(d, y.argument); break; case l.Syntax.AssignmentPattern: this.checkPatternParam(d, y.left); break; case l.Syntax.ArrayPattern: for (var p = 0; p < y.elements.length; p++) y.elements[p] !== null && this.checkPatternParam(d, y.elements[p]); break; case l.Syntax.ObjectPattern: for (var p = 0; p < y.properties.length; p++) this.checkPatternParam(d, y.properties[p].value); break; default: break; } d.simple = d.simple && y instanceof o.Identifier; }, h.prototype.reinterpretAsCoverFormalsList = function(d) { var y = [d], p, g = !1; switch (d.type) { case l.Syntax.Identifier: break; case f: y = d.params, g = d.async; break; default: return null; } p = { simple: !0, paramSet: {} }; for (var b = 0; b < y.length; ++b) { var D = y[b]; D.type === l.Syntax.AssignmentPattern ? D.right.type === l.Syntax.YieldExpression && (D.right.argument && this.throwUnexpectedToken( this.lookahead), D.right.type = l.Syntax.Identifier, D.right.name = "yield", delete D.right.argument, delete D.right.delegate) : g && D.type === l.Syntax.Identifier && D.name === "await" && this.throwUnexpectedToken(this.lookahead), this.checkPatternParam( p, D), y[b] = D; } if (this.context.strict || !this.context.allowYield) for (var b = 0; b < y.length; ++b) { var D = y[b]; D.type === l.Syntax.YieldExpression && this.throwUnexpectedToken(this.lookahead); } if (p.message === a.Messages.StrictParamDupe) { var v = this.context.strict ? p.stricted : p.firstRestricted; this.throwUnexpectedToken(v, p.message); } return { simple: p.simple, params: y, stricted: p.stricted, firstRestricted: p.firstRestricted, message: p.message }; }, h.prototype.parseAssignmentExpression = function() { var d; if (!this.context.allowYield && this.matchKeyword("yield")) d = this.parseYieldExpression(); else { var y = this.lookahead, p = y; if (d = this.parseConditionalExpression(), p.type === 3 && p.lineNumber === this.lookahead.lineNumber && p.value === "async" && (this.lookahead.type === 3 || this.matchKeyword("yield"))) { var g = this.parsePrimaryExpression(); this.reinterpretExpressionAsPattern(g), d = { type: f, params: [g], async: !0 }; } if (d.type === f || this.match("=>")) { this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; var b = d.async, D = this.reinterpretAsCoverFormalsList(d); if (D) { this.hasLineTerminator && this.tolerateUnexpectedToken(this.lookahead), this.context.firstCoverInitializedNameError = null; var v = this.context.strict, S = this.context.allowStrictDirective; this.context.allowStrictDirective = D.simple; var C = this.context.allowYield, O = this.context.await; this.context.allowYield = !0, this.context.await = b; var k = this.startNode(y); this.expect("=>"); var U = void 0; if (this.match("{")) { var j = this.context.allowIn; this.context.allowIn = !0, U = this.parseFunctionSourceElements(), this.context.allowIn = j; } else U = this.isolateCoverGrammar(this.parseAssignmentExpression); var H = U.type !== l.Syntax.BlockStatement; this.context.strict && D.firstRestricted && this.throwUnexpectedToken(D.firstRestricted, D.message), this.context.strict && D.stricted && this.tolerateUnexpectedToken(D.stricted, D.message), d = b ? this.finalize(k, new o.AsyncArrowFunctionExpression( D.params, U, H)) : this.finalize(k, new o.ArrowFunctionExpression(D.params, U, H)), this.context.strict = v, this.context. allowStrictDirective = S, this.context.allowYield = C, this.context.await = O; } } else if (this.matchAssign()) { if (this.context.isAssignmentTarget || this.tolerateError(a.Messages.InvalidLHSInAssignment), this.context.strict && d.type === l.Syntax.Identifier) { var R = d; this.scanner.isRestrictedWord(R.name) && this.tolerateUnexpectedToken(p, a.Messages.StrictLHSAssignment), this.scanner.isStrictModeReservedWord( R.name) && this.tolerateUnexpectedToken(p, a.Messages.StrictReservedWord); } this.match("=") ? this.reinterpretExpressionAsPattern(d) : (this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1), p = this.nextToken(); var Q = p.value, te = this.isolateCoverGrammar(this.parseAssignmentExpression); d = this.finalize(this.startNode(y), new o.AssignmentExpression(Q, d, te)), this.context.firstCoverInitializedNameError = null; } } return d; }, h.prototype.parseExpression = function() { var d = this.lookahead, y = this.isolateCoverGrammar(this.parseAssignmentExpression); if (this.match(",")) { var p = []; for (p.push(y); this.lookahead.type !== 2 && this.match(","); ) this.nextToken(), p.push(this.isolateCoverGrammar(this.parseAssignmentExpression)); y = this.finalize(this.startNode(d), new o.SequenceExpression(p)); } return y; }, h.prototype.parseStatementListItem = function() { var d; if (this.context.isAssignmentTarget = !0, this.context.isBindingElement = !0, this.lookahead.type === 4) switch (this.lookahead.value) { case "export": this.context.isModule || this.tolerateUnexpectedToken(this.lookahead, a.Messages.IllegalExportDeclaration), d = this.parseExportDeclaration(); break; case "import": this.context.isModule || this.tolerateUnexpectedToken(this.lookahead, a.Messages.IllegalImportDeclaration), d = this.parseImportDeclaration(); break; case "const": d = this.parseLexicalDeclaration({ inFor: !1 }); break; case "function": d = this.parseFunctionDeclaration(); break; case "class": d = this.parseClassDeclaration(); break; case "let": d = this.isLexicalDeclaration() ? this.parseLexicalDeclaration({ inFor: !1 }) : this.parseStatement(); break; default: d = this.parseStatement(); break; } else d = this.parseStatement(); return d; }, h.prototype.parseBlock = function() { var d = this.createNode(); this.expect("{"); for (var y = []; !this.match("}"); ) y.push(this.parseStatementListItem()); return this.expect("}"), this.finalize(d, new o.BlockStatement(y)); }, h.prototype.parseLexicalBinding = function(d, y) { var p = this.createNode(), g = [], b = this.parsePattern(g, d); this.context.strict && b.type === l.Syntax.Identifier && this.scanner.isRestrictedWord(b.name) && this.tolerateError(a.Messages. StrictVarName); var D = null; return d === "const" ? !this.matchKeyword("in") && !this.matchContextualKeyword("of") && (this.match("=") ? (this.nextToken(), D = this.isolateCoverGrammar(this.parseAssignmentExpression)) : this.throwError(a.Messages.DeclarationMissingInitializer, "con\ st")) : (!y.inFor && b.type !== l.Syntax.Identifier || this.match("=")) && (this.expect("="), D = this.isolateCoverGrammar(this.parseAssignmentExpression)), this.finalize(p, new o.VariableDeclarator(b, D)); }, h.prototype.parseBindingList = function(d, y) { for (var p = [this.parseLexicalBinding(d, y)]; this.match(","); ) this.nextToken(), p.push(this.parseLexicalBinding(d, y)); return p; }, h.prototype.isLexicalDeclaration = function() { var d = this.scanner.saveState(); this.scanner.scanComments(); var y = this.scanner.lex(); return this.scanner.restoreState(d), y.type === 3 || y.type === 7 && y.value === "[" || y.type === 7 && y.value === "{" || y.type === 4 && y.value === "let" || y.type === 4 && y.value === "yield"; }, h.prototype.parseLexicalDeclaration = function(d) { var y = this.createNode(), p = this.nextToken().value; i.assert(p === "let" || p === "const", "Lexical declaration must be either let or const"); var g = this.parseBindingList(p, d); return this.consumeSemicolon(), this.finalize(y, new o.VariableDeclaration(g, p)); }, h.prototype.parseBindingRestElement = function(d, y) { var p = this.createNode(); this.expect("..."); var g = this.parsePattern(d, y); return this.finalize(p, new o.RestElement(g)); }, h.prototype.parseArrayPattern = function(d, y) { var p = this.createNode(); this.expect("["); for (var g = []; !this.match("]"); ) if (this.match(",")) this.nextToken(), g.push(null); else { if (this.match("...")) { g.push(this.parseBindingRestElement(d, y)); break; } else g.push(this.parsePatternWithDefault(d, y)); this.match("]") || this.expect(","); } return this.expect("]"), this.finalize(p, new o.ArrayPattern(g)); }, h.prototype.parsePropertyPattern = function(d, y) { var p = this.createNode(), g = !1, b = !1, D = !1, v, S; if (this.lookahead.type === 3) { var C = this.lookahead; v = this.parseVariableIdentifier(); var O = this.finalize(p, new o.Identifier(C.value)); if (this.match("=")) { d.push(C), b = !0, this.nextToken(); var k = this.parseAssignmentExpression(); S = this.finalize(this.startNode(C), new o.AssignmentPattern(O, k)); } else this.match(":") ? (this.expect(":"), S = this.parsePatternWithDefault(d, y)) : (d.push(C), b = !0, S = O); } else g = this.match("["), v = this.parseObjectPropertyKey(), this.expect(":"), S = this.parsePatternWithDefault(d, y); return this.finalize(p, new o.Property("init", v, g, S, D, b)); }, h.prototype.parseObjectPattern = function(d, y) { var p = this.createNode(), g = []; for (this.expect("{"); !this.match("}"); ) g.push(this.parsePropertyPattern(d, y)), this.match("}") || this.expect(","); return this.expect("}"), this.finalize(p, new o.ObjectPattern(g)); }, h.prototype.parsePattern = function(d, y) { var p; return this.match("[") ? p = this.parseArrayPattern(d, y) : this.match("{") ? p = this.parseObjectPattern(d, y) : (this.matchKeyword( "let") && (y === "const" || y === "let") && this.tolerateUnexpectedToken(this.lookahead, a.Messages.LetInLexicalBinding), d.push( this.lookahead), p = this.parseVariableIdentifier(y)), p; }, h.prototype.parsePatternWithDefault = function(d, y) { var p = this.lookahead, g = this.parsePattern(d, y); if (this.match("=")) { this.nextToken(); var b = this.context.allowYield; this.context.allowYield = !0; var D = this.isolateCoverGrammar(this.parseAssignmentExpression); this.context.allowYield = b, g = this.finalize(this.startNode(p), new o.AssignmentPattern(g, D)); } return g; }, h.prototype.parseVariableIdentifier = function(d) { var y = this.createNode(), p = this.nextToken(); return p.type === 4 && p.value === "yield" ? this.context.strict ? this.tolerateUnexpectedToken(p, a.Messages.StrictReservedWord) : this.context.allowYield || this.throwUnexpectedToken(p) : p.type !== 3 ? this.context.strict && p.type === 4 && this.scanner.isStrictModeReservedWord( p.value) ? this.tolerateUnexpectedToken(p, a.Messages.StrictReservedWord) : (this.context.strict || p.value !== "let" || d !== "var") && this.throwUnexpectedToken(p) : (this.context.isModule || this.context.await) && p.type === 3 && p.value === "await" && this.tolerateUnexpectedToken(p), this.finalize(y, new o.Identifier(p.value)); }, h.prototype.parseVariableDeclaration = function(d) { var y = this.createNode(), p = [], g = this.parsePattern(p, "var"); this.context.strict && g.type === l.Syntax.Identifier && this.scanner.isRestrictedWord(g.name) && this.tolerateError(a.Messages. StrictVarName); var b = null; return this.match("=") ? (this.nextToken(), b = this.isolateCoverGrammar(this.parseAssignmentExpression)) : g.type !== l.Syntax. Identifier && !d.inFor && this.expect("="), this.finalize(y, new o.VariableDeclarator(g, b)); }, h.prototype.parseVariableDeclarationList = function(d) { var y = { inFor: d.inFor }, p = []; for (p.push(this.parseVariableDeclaration(y)); this.match(","); ) this.nextToken(), p.push(this.parseVariableDeclaration(y)); return p; }, h.prototype.parseVariableStatement = function() { var d = this.createNode(); this.expectKeyword("var"); var y = this.parseVariableDeclarationList({ inFor: !1 }); return this.consumeSemicolon(), this.finalize(d, new o.VariableDeclaration(y, "var")); }, h.prototype.parseEmptyStatement = function() { var d = this.createNode(); return this.expect(";"), this.finalize(d, new o.EmptyStatement()); }, h.prototype.parseExpressionStatement = function() { var d = this.createNode(), y = this.parseExpression(); return this.consumeSemicolon(), this.finalize(d, new o.ExpressionStatement(y)); }, h.prototype.parseIfClause = function() { return this.context.strict && this.matchKeyword("function") && this.tolerateError(a.Messages.StrictFunction), this.parseStatement(); }, h.prototype.parseIfStatement = function() { var d = this.createNode(), y, p = null; this.expectKeyword("if"), this.expect("("); var g = this.parseExpression(); return !this.match(")") && this.config.tolerant ? (this.tolerateUnexpectedToken(this.nextToken()), y = this.finalize(this.createNode(), new o.EmptyStatement())) : (this.expect(")"), y = this.parseIfClause(), this.matchKeyword("else") && (this.nextToken(), p = this. parseIfClause())), this.finalize(d, new o.IfStatement(g, y, p)); }, h.prototype.parseDoWhileStatement = function() { var d = this.createNode(); this.expectKeyword("do"); var y = this.context.inIteration; this.context.inIteration = !0; var p = this.parseStatement(); this.context.inIteration = y, this.expectKeyword("while"), this.expect("("); var g = this.parseExpression(); return !this.match(")") && this.config.tolerant ? this.tolerateUnexpectedToken(this.nextToken()) : (this.expect(")"), this.match( ";") && this.nextToken()), this.finalize(d, new o.DoWhileStatement(p, g)); }, h.prototype.parseWhileStatement = function() { var d = this.createNode(), y; this.expectKeyword("while"), this.expect("("); var p = this.parseExpression(); if (!this.match(")") && this.config.tolerant) this.tolerateUnexpectedToken(this.nextToken()), y = this.finalize(this.createNode(), new o.EmptyStatement()); else { this.expect(")"); var g = this.context.inIteration; this.context.inIteration = !0, y = this.parseStatement(), this.context.inIteration = g; } return this.finalize(d, new o.WhileStatement(p, y)); }, h.prototype.parseForStatement = function() { var d = null, y = null, p = null, g = !0, b, D, v = this.createNode(); if (this.expectKeyword("for"), this.expect("("), this.match(";")) this.nextToken(); else if (this.matchKeyword("var")) { d = this.createNode(), this.nextToken(); var S = this.context.allowIn; this.context.allowIn = !1; var C = this.parseVariableDeclarationList({ inFor: !0 }); if (this.context.allowIn = S, C.length === 1 && this.matchKeyword("in")) { var O = C[0]; O.init && (O.id.type === l.Syntax.ArrayPattern || O.id.type === l.Syntax.ObjectPattern || this.context.strict) && this.tolerateError( a.Messages.ForInOfLoopInitializer, "for-in"), d = this.finalize(d, new o.VariableDeclaration(C, "var")), this.nextToken(), b = d, D = this.parseExpression(), d = null; } else C.length === 1 && C[0].init === null && this.matchContextualKeyword("of") ? (d = this.finalize(d, new o.VariableDeclaration( C, "var")), this.nextToken(), b = d, D = this.parseAssignmentExpression(), d = null, g = !1) : (d = this.finalize(d, new o.VariableDeclaration( C, "var")), this.expect(";")); } else if (this.matchKeyword("const") || this.matchKeyword("let")) { d = this.createNode(); var k = this.nextToken().value; if (!this.context.strict && this.lookahead.value === "in") d = this.finalize(d, new o.Identifier(k)), this.nextToken(), b = d, D = this.parseExpression(), d = null; else { var S = this.context.allowIn; this.context.allowIn = !1; var C = this.parseBindingList(k, { inFor: !0 }); this.context.allowIn = S, C.length === 1 && C[0].init === null && this.matchKeyword("in") ? (d = this.finalize(d, new o.VariableDeclaration( C, k)), this.nextToken(), b = d, D = this.parseExpression(), d = null) : C.length === 1 && C[0].init === null && this.matchContextualKeyword( "of") ? (d = this.finalize(d, new o.VariableDeclaration(C, k)), this.nextToken(), b = d, D = this.parseAssignmentExpression(), d = null, g = !1) : (this.consumeSemicolon(), d = this.finalize(d, new o.VariableDeclaration(C, k))); } } else { var U = this.lookahead, S = this.context.allowIn; if (this.context.allowIn = !1, d = this.inheritCoverGrammar(this.parseAssignmentExpression), this.context.allowIn = S, this. matchKeyword("in")) (!this.context.isAssignmentTarget || d.type === l.Syntax.AssignmentExpression) && this.tolerateError(a.Messages.InvalidLHSInForIn), this.nextToken(), this.reinterpretExpressionAsPattern(d), b = d, D = this.parseExpression(), d = null; else if (this.matchContextualKeyword("of")) (!this.context.isAssignmentTarget || d.type === l.Syntax.AssignmentExpression) && this.tolerateError(a.Messages.InvalidLHSInForLoop), this.nextToken(), this.reinterpretExpressionAsPattern(d), b = d, D = this.parseAssignmentExpression(), d = null, g = !1; else { if (this.match(",")) { for (var j = [d]; this.match(","); ) this.nextToken(), j.push(this.isolateCoverGrammar(this.parseAssignmentExpression)); d = this.finalize(this.startNode(U), new o.SequenceExpression(j)); } this.expect(";"); } } typeof b > "u" && (this.match(";") || (y = this.parseExpression()), this.expect(";"), this.match(")") || (p = this.parseExpression())); var H; if (!this.match(")") && this.config.tolerant) this.tolerateUnexpectedToken(this.nextToken()), H = this.finalize(this.createNode(), new o.EmptyStatement()); else { this.expect(")"); var R = this.context.inIteration; this.context.inIteration = !0, H = this.isolateCoverGrammar(this.parseStatement), this.context.inIteration = R; } return typeof b > "u" ? this.finalize(v, new o.ForStatement(d, y, p, H)) : g ? this.finalize(v, new o.ForInStatement(b, D, H)) : this.finalize(v, new o.ForOfStatement(b, D, H)); }, h.prototype.parseContinueStatement = function() { var d = this.createNode(); this.expectKeyword("continue"); var y = null; if (this.lookahead.type === 3 && !this.hasLineTerminator) { var p = this.parseVariableIdentifier(); y = p; var g = "$" + p.name; Object.prototype.hasOwnProperty.call(this.context.labelSet, g) || this.throwError(a.Messages.UnknownLabel, p.name); } return this.consumeSemicolon(), y === null && !this.context.inIteration && this.throwError(a.Messages.IllegalContinue), this.finalize( d, new o.ContinueStatement(y)); }, h.prototype.parseBreakStatement = function() { var d = this.createNode(); this.expectKeyword("break"); var y = null; if (this.lookahead.type === 3 && !this.hasLineTerminator) { var p = this.parseVariableIdentifier(), g = "$" + p.name; Object.prototype.hasOwnProperty.call(this.context.labelSet, g) || this.throwError(a.Messages.UnknownLabel, p.name), y = p; } return this.consumeSemicolon(), y === null && !this.context.inIteration && !this.context.inSwitch && this.throwError(a.Messages. IllegalBreak), this.finalize(d, new o.BreakStatement(y)); }, h.prototype.parseReturnStatement = function() { this.context.inFunctionBody || this.tolerateError(a.Messages.IllegalReturn); var d = this.createNode(); this.expectKeyword("return"); var y = !this.match(";") && !this.match("}") && !this.hasLineTerminator && this.lookahead.type !== 2 || this.lookahead.type === 8 || this.lookahead.type === 10, p = y ? this.parseExpression() : null; return this.consumeSemicolon(), this.finalize(d, new o.ReturnStatement(p)); }, h.prototype.parseWithStatement = function() { this.context.strict && this.tolerateError(a.Messages.StrictModeWith); var d = this.createNode(), y; this.expectKeyword("with"), this.expect("("); var p = this.parseExpression(); return !this.match(")") && this.config.tolerant ? (this.tolerateUnexpectedToken(this.nextToken()), y = this.finalize(this.createNode(), new o.EmptyStatement())) : (this.expect(")"), y = this.parseStatement()), this.finalize(d, new o.WithStatement(p, y)); }, h.prototype.parseSwitchCase = function() { var d = this.createNode(), y; this.matchKeyword("default") ? (this.nextToken(), y = null) : (this.expectKeyword("case"), y = this.parseExpression()), this.expect( ":"); for (var p = []; !(this.match("}") || this.matchKeyword("default") || this.matchKeyword("case")); ) p.push(this.parseStatementListItem()); return this.finalize(d, new o.SwitchCase(y, p)); }, h.prototype.parseSwitchStatement = function() { var d = this.createNode(); this.expectKeyword("switch"), this.expect("("); var y = this.parseExpression(); this.expect(")"); var p = this.context.inSwitch; this.context.inSwitch = !0; var g = [], b = !1; for (this.expect("{"); !this.match("}"); ) { var D = this.parseSwitchCase(); D.test === null && (b && this.throwError(a.Messages.MultipleDefaultsInSwitch), b = !0), g.push(D); } return this.expect("}"), this.context.inSwitch = p, this.finalize(d, new o.SwitchStatement(y, g)); }, h.prototype.parseLabelledStatement = function() { var d = this.createNode(), y = this.parseExpression(), p; if (y.type === l.Syntax.Identifier && this.match(":")) { this.nextToken(); var g = y, b = "$" + g.name; Object.prototype.hasOwnProperty.call(this.context.labelSet, b) && this.throwError(a.Messages.Redeclaration, "Label", g.name), this.context.labelSet[b] = !0; var D = void 0; if (this.matchKeyword("class")) this.tolerateUnexpectedToken(this.lookahead), D = this.parseClassDeclaration(); else if (this.matchKeyword("function")) { var v = this.lookahead, S = this.parseFunctionDeclaration(); this.context.strict ? this.tolerateUnexpectedToken(v, a.Messages.StrictFunction) : S.generator && this.tolerateUnexpectedToken( v, a.Messages.GeneratorInLegacyContext), D = S; } else D = this.parseStatement(); delete this.context.labelSet[b], p = new o.LabeledStatement(g, D); } else this.consumeSemicolon(), p = new o.ExpressionStatement(y); return this.finalize(d, p); }, h.prototype.parseThrowStatement = function() { var d = this.createNode(); this.expectKeyword("throw"), this.hasLineTerminator && this.throwError(a.Messages.NewlineAfterThrow); var y = this.parseExpression(); return this.consumeSemicolon(), this.finalize(d, new o.ThrowStatement(y)); }, h.prototype.parseCatchClause = function() { var d = this.createNode(); this.expectKeyword("catch"), this.expect("("), this.match(")") && this.throwUnexpectedToken(this.lookahead); for (var y = [], p = this.parsePattern(y), g = {}, b = 0; b < y.length; b++) { var D = "$" + y[b].value; Object.prototype.hasOwnProperty.call(g, D) && this.tolerateError(a.Messages.DuplicateBinding, y[b].value), g[D] = !0; } this.context.strict && p.type === l.Syntax.Identifier && this.scanner.isRestrictedWord(p.name) && this.tolerateError(a.Messages. StrictCatchVariable), this.expect(")"); var v = this.parseBlock(); return this.finalize(d, new o.CatchClause(p, v)); }, h.prototype.parseFinallyClause = function() { return this.expectKeyword("finally"), this.parseBlock(); }, h.prototype.parseTryStatement = function() { var d = this.createNode(); this.expectKeyword("try"); var y = this.parseBlock(), p = this.matchKeyword("catch") ? this.parseCatchClause() : null, g = this.matchKeyword("finally") ? this.parseFinallyClause() : null; return !p && !g && this.throwError(a.Messages.NoCatchOrFinally), this.finalize(d, new o.TryStatement(y, p, g)); }, h.prototype.parseDebuggerStatement = function() { var d = this.createNode(); return this.expectKeyword("debugger"), this.consumeSemicolon(), this.finalize(d, new o.DebuggerStatement()); }, h.prototype.parseStatement = function() { var d; switch (this.lookahead.type) { case 1: case 5: case 6: case 8: case 10: case 9: d = this.parseExpressionStatement(); break; case 7: var y = this.lookahead.value; y === "{" ? d = this.parseBlock() : y === "(" ? d = this.parseExpressionStatement() : y === ";" ? d = this.parseEmptyStatement() : d = this.parseExpressionStatement(); break; case 3: d = this.matchAsyncFunction() ? this.parseFunctionDeclaration() : this.parseLabelledStatement(); break; case 4: switch (this.lookahead.value) { case "break": d = this.parseBreakStatement(); break; case "continue": d = this.parseContinueStatement(); break; case "debugger": d = this.parseDebuggerStatement(); break; case "do": d = this.parseDoWhileStatement(); break; case "for": d = this.parseForStatement(); break; case "function": d = this.parseFunctionDeclaration(); break; case "if": d = this.parseIfStatement(); break; case "return": d = this.parseReturnStatement(); break; case "switch": d = this.parseSwitchStatement(); break; case "throw": d = this.parseThrowStatement(); break; case "try": d = this.parseTryStatement(); break; case "var": d = this.parseVariableStatement(); break; case "while": d = this.parseWhileStatement(); break; case "with": d = this.parseWithStatement(); break; default: d = this.parseExpressionStatement(); break; } break; default: d = this.throwUnexpectedToken(this.lookahead); } return d; }, h.prototype.parseFunctionSourceElements = function() { var d = this.createNode(); this.expect("{"); var y = this.parseDirectivePrologues(), p = this.context.labelSet, g = this.context.inIteration, b = this.context.inSwitch, D = this. context.inFunctionBody; for (this.context.labelSet = {}, this.context.inIteration = !1, this.context.inSwitch = !1, this.context.inFunctionBody = !0; this. lookahead.type !== 2 && !this.match("}"); ) y.push(this.parseStatementListItem()); return this.expect("}"), this.context.labelSet = p, this.context.inIteration = g, this.context.inSwitch = b, this.context.inFunctionBody = D, this.finalize(d, new o.BlockStatement(y)); }, h.prototype.validateParam = function(d, y, p) { var g = "$" + p; this.context.strict ? (this.scanner.isRestrictedWord(p) && (d.stricted = y, d.message = a.Messages.StrictParamName), Object.prototype. hasOwnProperty.call(d.paramSet, g) && (d.stricted = y, d.message = a.Messages.StrictParamDupe)) : d.firstRestricted || (this.scanner. isRestrictedWord(p) ? (d.firstRestricted = y, d.message = a.Messages.StrictParamName) : this.scanner.isStrictModeReservedWord( p) ? (d.firstRestricted = y, d.message = a.Messages.StrictReservedWord) : Object.prototype.hasOwnProperty.call(d.paramSet, g) && (d.stricted = y, d.message = a.Messages.StrictParamDupe)), typeof Object.defineProperty == "function" ? Object.defineProperty( d.paramSet, g, { value: !0, enumerable: !0, writable: !0, configurable: !0 }) : d.paramSet[g] = !0; }, h.prototype.parseRestElement = function(d) { var y = this.createNode(); this.expect("..."); var p = this.parsePattern(d); return this.match("=") && this.throwError(a.Messages.DefaultRestParameter), this.match(")") || this.throwError(a.Messages.ParameterAfterRestParameter), this.finalize(y, new o.RestElement(p)); }, h.prototype.parseFormalParameter = function(d) { for (var y = [], p = this.match("...") ? this.parseRestElement(y) : this.parsePatternWithDefault(y), g = 0; g < y.length; g++) this.validateParam(d, y[g], y[g].value); d.simple = d.simple && p instanceof o.Identifier, d.params.push(p); }, h.prototype.parseFormalParameters = function(d) { var y; if (y = { simple: !0, params: [], firstRestricted: d }, this.expect("("), !this.match(")")) for (y.paramSet = {}; this.lookahead.type !== 2 && (this.parseFormalParameter(y), !(this.match(")") || (this.expect(","), this. match(")")))); ) ; return this.expect(")"), { simple: y.simple, params: y.params, stricted: y.stricted, firstRestricted: y.firstRestricted, message: y.message }; }, h.prototype.matchAsyncFunction = function() { var d = this.matchContextualKeyword("async"); if (d) { var y = this.scanner.saveState(); this.scanner.scanComments(); var p = this.scanner.lex(); this.scanner.restoreState(y), d = y.lineNumber === p.lineNumber && p.type === 4 && p.value === "function"; } return d; }, h.prototype.parseFunctionDeclaration = function(d) { var y = this.createNode(), p = this.matchContextualKeyword("async"); p && this.nextToken(), this.expectKeyword("function"); var g = p ? !1 : this.match("*"); g && this.nextToken(); var b, D = null, v = null; if (!d || !this.match("(")) { var S = this.lookahead; D = this.parseVariableIdentifier(), this.context.strict ? this.scanner.isRestrictedWord(S.value) && this.tolerateUnexpectedToken( S, a.Messages.StrictFunctionName) : this.scanner.isRestrictedWord(S.value) ? (v = S, b = a.Messages.StrictFunctionName) : this. scanner.isStrictModeReservedWord(S.value) && (v = S, b = a.Messages.StrictReservedWord); } var C = this.context.await, O = this.context.allowYield; this.context.await = p, this.context.allowYield = !g; var k = this.parseFormalParameters(v), U = k.params, j = k.stricted; v = k.firstRestricted, k.message && (b = k.message); var H = this.context.strict, R = this.context.allowStrictDirective; this.context.allowStrictDirective = k.simple; var Q = this.parseFunctionSourceElements(); return this.context.strict && v && this.throwUnexpectedToken(v, b), this.context.strict && j && this.tolerateUnexpectedToken(j, b), this.context.strict = H, this.context.allowStrictDirective = R, this.context.await = C, this.context.allowYield = O, p ? this. finalize(y, new o.AsyncFunctionDeclaration(D, U, Q)) : this.finalize(y, new o.FunctionDeclaration(D, U, Q, g)); }, h.prototype.parseFunctionExpression = function() { var d = this.createNode(), y = this.matchContextualKeyword("async"); y && this.nextToken(), this.expectKeyword("function"); var p = y ? !1 : this.match("*"); p && this.nextToken(); var g, b = null, D, v = this.context.await, S = this.context.allowYield; if (this.context.await = y, this.context.allowYield = !p, !this.match("(")) { var C = this.lookahead; b = !this.context.strict && !p && this.matchKeyword("yield") ? this.parseIdentifierName() : this.parseVariableIdentifier(), this. context.strict ? this.scanner.isRestrictedWord(C.value) && this.tolerateUnexpectedToken(C, a.Messages.StrictFunctionName) : this. scanner.isRestrictedWord(C.value) ? (D = C, g = a.Messages.StrictFunctionName) : this.scanner.isStrictModeReservedWord(C.value) && (D = C, g = a.Messages.StrictReservedWord); } var O = this.parseFormalParameters(D), k = O.params, U = O.stricted; D = O.firstRestricted, O.message && (g = O.message); var j = this.context.strict, H = this.context.allowStrictDirective; this.context.allowStrictDirective = O.simple; var R = this.parseFunctionSourceElements(); return this.context.strict && D && this.throwUnexpectedToken(D, g), this.context.strict && U && this.tolerateUnexpectedToken(U, g), this.context.strict = j, this.context.allowStrictDirective = H, this.context.await = v, this.context.allowYield = S, y ? this. finalize(d, new o.AsyncFunctionExpression(b, k, R)) : this.finalize(d, new o.FunctionExpression(b, k, R, p)); }, h.prototype.parseDirective = function() { var d = this.lookahead, y = this.createNode(), p = this.parseExpression(), g = p.type === l.Syntax.Literal ? this.getTokenRaw( d).slice(1, -1) : null; return this.consumeSemicolon(), this.finalize(y, g ? new o.Directive(p, g) : new o.ExpressionStatement(p)); }, h.prototype.parseDirectivePrologues = function() { for (var d = null, y = []; ; ) { var p = this.lookahead; if (p.type !== 8) break; var g = this.parseDirective(); y.push(g); var b = g.directive; if (typeof b != "string") break; b === "use strict" ? (this.context.strict = !0, d && this.tolerateUnexpectedToken(d, a.Messages.StrictOctalLiteral), this.context. allowStrictDirective || this.tolerateUnexpectedToken(p, a.Messages.IllegalLanguageModeDirective)) : !d && p.octal && (d = p); } return y; }, h.prototype.qualifiedPropertyName = function(d) { switch (d.type) { case 3: case 8: case 1: case 5: case 6: case 4: return !0; case 7: return d.value === "["; default: break; } return !1; }, h.prototype.parseGetterMethod = function() { var d = this.createNode(), y = !1, p = this.context.allowYield; this.context.allowYield = !y; var g = this.parseFormalParameters(); g.params.length > 0 && this.tolerateError(a.Messages.BadGetterArity); var b = this.parsePropertyMethod(g); return this.context.allowYield = p, this.finalize(d, new o.FunctionExpression(null, g.params, b, y)); }, h.prototype.parseSetterMethod = function() { var d = this.createNode(), y = !1, p = this.context.allowYield; this.context.allowYield = !y; var g = this.parseFormalParameters(); g.params.length !== 1 ? this.tolerateError(a.Messages.BadSetterArity) : g.params[0] instanceof o.RestElement && this.tolerateError( a.Messages.BadSetterRestParameter); var b = this.parsePropertyMethod(g); return this.context.allowYield = p, this.finalize(d, new o.FunctionExpression(null, g.params, b, y)); }, h.prototype.parseGeneratorMethod = function() { var d = this.createNode(), y = !0, p = this.context.allowYield; this.context.allowYield = !0; var g = this.parseFormalParameters(); this.context.allowYield = !1; var b = this.parsePropertyMethod(g); return this.context.allowYield = p, this.finalize(d, new o.FunctionExpression(null, g.params, b, y)); }, h.prototype.isStartOfExpression = function() { var d = !0, y = this.lookahead.value; switch (this.lookahead.type) { case 7: d = y === "[" || y === "(" || y === "{" || y === "+" || y === "-" || y === "!" || y === "~" || y === "++" || y === "--" || y === "/" || y === "/="; break; case 4: d = y === "class" || y === "delete" || y === "function" || y === "let" || y === "new" || y === "super" || y === "this" || y === "typeof" || y === "void" || y === "yield"; break; default: break; } return d; }, h.prototype.parseYieldExpression = function() { var d = this.createNode(); this.expectKeyword("yield"); var y = null, p = !1; if (!this.hasLineTerminator) { var g = this.context.allowYield; this.context.allowYield = !1, p = this.match("*"), p ? (this.nextToken(), y = this.parseAssignmentExpression()) : this.isStartOfExpression() && (y = this.parseAssignmentExpression()), this.context.allowYield = g; } return this.finalize(d, new o.YieldExpression(y, p)); }, h.prototype.parseClassElement = function(d) { var y = this.lookahead, p = this.createNode(), g = "", b = null, D = null, v = !1, S = !1, C = !1, O = !1; if (this.match("*")) this.nextToken(); else { v = this.match("["), b = this.parseObjectPropertyKey(); var k = b; if (k.name === "static" && (this.qualifiedPropertyName(this.lookahead) || this.match("*")) && (y = this.lookahead, C = !0, v = this.match("["), this.match("*") ? this.nextToken() : b = this.parseObjectPropertyKey()), y.type === 3 && !this.hasLineTerminator && y.value === "async") { var U = this.lookahead.value; U !== ":" && U !== "(" && U !== "*" && (O = !0, y = this.lookahead, b = this.parseObjectPropertyKey(), y.type === 3 && y.value === "constructor" && this.tolerateUnexpectedToken(y, a.Messages.ConstructorIsAsync)); } } var j = this.qualifiedPropertyName(this.lookahead); return y.type === 3 ? y.value === "get" && j ? (g = "get", v = this.match("["), b = this.parseObjectPropertyKey(), this.context. allowYield = !1, D = this.parseGetterMethod()) : y.value === "set" && j && (g = "set", v = this.match("["), b = this.parseObjectPropertyKey(), D = this.parseSetterMethod()) : y.type === 7 && y.value === "*" && j && (g = "init", v = this.match("["), b = this.parseObjectPropertyKey(), D = this.parseGeneratorMethod(), S = !0), !g && b && this.match("(") && (g = "init", D = O ? this.parsePropertyMethodAsyncFunction() : this.parsePropertyMethodFunction(), S = !0), g || this.throwUnexpectedToken(this.lookahead), g === "init" && (g = "method"), v || (C && this.isPropertyKey(b, "prototype") && this.throwUnexpectedToken(y, a.Messages.StaticPrototype), !C && this.isPropertyKey( b, "constructor") && ((g !== "method" || !S || D && D.generator) && this.throwUnexpectedToken(y, a.Messages.ConstructorSpecialMethod), d.value ? this.throwUnexpectedToken(y, a.Messages.DuplicateConstructor) : d.value = !0, g = "constructor")), this.finalize(p, new o. MethodDefinition(b, v, D, g, C)); }, h.prototype.parseClassElementList = function() { var d = [], y = { value: !1 }; for (this.expect("{"); !this.match("}"); ) this.match(";") ? this.nextToken() : d.push(this.parseClassElement(y)); return this.expect("}"), d; }, h.prototype.parseClassBody = function() { var d = this.createNode(), y = this.parseClassElementList(); return this.finalize(d, new o.ClassBody(y)); }, h.prototype.parseClassDeclaration = function(d) { var y = this.createNode(), p = this.context.strict; this.context.strict = !0, this.expectKeyword("class"); var g = d && this.lookahead.type !== 3 ? null : this.parseVariableIdentifier(), b = null; this.matchKeyword("extends") && (this.nextToken(), b = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall)); var D = this.parseClassBody(); return this.context.strict = p, this.finalize(y, new o.ClassDeclaration(g, b, D)); }, h.prototype.parseClassExpression = function() { var d = this.createNode(), y = this.context.strict; this.context.strict = !0, this.expectKeyword("class"); var p = this.lookahead.type === 3 ? this.parseVariableIdentifier() : null, g = null; this.matchKeyword("extends") && (this.nextToken(), g = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall)); var b = this.parseClassBody(); return this.context.strict = y, this.finalize(d, new o.ClassExpression(p, g, b)); }, h.prototype.parseModule = function() { this.context.strict = !0, this.context.isModule = !0, this.scanner.isModule = !0; for (var d = this.createNode(), y = this.parseDirectivePrologues(); this.lookahead.type !== 2; ) y.push(this.parseStatementListItem()); return this.finalize(d, new o.Module(y)); }, h.prototype.parseScript = function() { for (var d = this.createNode(), y = this.parseDirectivePrologues(); this.lookahead.type !== 2; ) y.push(this.parseStatementListItem()); return this.finalize(d, new o.Script(y)); }, h.prototype.parseModuleSpecifier = function() { var d = this.createNode(); this.lookahead.type !== 8 && this.throwError(a.Messages.InvalidModuleSpecifier); var y = this.nextToken(), p = this.getTokenRaw(y); return this.finalize(d, new o.Literal(y.value, p)); }, h.prototype.parseImportSpecifier = function() { var d = this.createNode(), y, p; return this.lookahead.type === 3 ? (y = this.parseVariableIdentifier(), p = y, this.matchContextualKeyword("as") && (this.nextToken(), p = this.parseVariableIdentifier())) : (y = this.parseIdentifierName(), p = y, this.matchContextualKeyword("as") ? (this.nextToken(), p = this.parseVariableIdentifier()) : this.throwUnexpectedToken(this.nextToken())), this.finalize(d, new o.ImportSpecifier(p, y)); }, h.prototype.parseNamedImports = function() { this.expect("{"); for (var d = []; !this.match("}"); ) d.push(this.parseImportSpecifier()), this.match("}") || this.expect(","); return this.expect("}"), d; }, h.prototype.parseImportDefaultSpecifier = function() { var d = this.createNode(), y = this.parseIdentifierName(); return this.finalize(d, new o.ImportDefaultSpecifier(y)); }, h.prototype.parseImportNamespaceSpecifier = function() { var d = this.createNode(); this.expect("*"), this.matchContextualKeyword("as") || this.throwError(a.Messages.NoAsAfterImportNamespace), this.nextToken(); var y = this.parseIdentifierName(); return this.finalize(d, new o.ImportNamespaceSpecifier(y)); }, h.prototype.parseImportDeclaration = function() { this.context.inFunctionBody && this.throwError(a.Messages.IllegalImportDeclaration); var d = this.createNode(); this.expectKeyword("import"); var y, p = []; if (this.lookahead.type === 8) y = this.parseModuleSpecifier(); else { if (this.match("{") ? p = p.concat(this.parseNamedImports()) : this.match("*") ? p.push(this.parseImportNamespaceSpecifier()) : this.isIdentifierName(this.lookahead) && !this.matchKeyword("default") ? (p.push(this.parseImportDefaultSpecifier()), this.match( ",") && (this.nextToken(), this.match("*") ? p.push(this.parseImportNamespaceSpecifier()) : this.match("{") ? p = p.concat(this. parseNamedImports()) : this.throwUnexpectedToken(this.lookahead))) : this.throwUnexpectedToken(this.nextToken()), !this.matchContextualKeyword( "from")) { var g = this.lookahead.value ? a.Messages.UnexpectedToken : a.Messages.MissingFromClause; this.throwError(g, this.lookahead.value); } this.nextToken(), y = this.parseModuleSpecifier(); } return this.consumeSemicolon(), this.finalize(d, new o.ImportDeclaration(p, y)); }, h.prototype.parseExportSpecifier = function() { var d = this.createNode(), y = this.parseIdentifierName(), p = y; return this.matchContextualKeyword("as") && (this.nextToken(), p = this.parseIdentifierName()), this.finalize(d, new o.ExportSpecifier( y, p)); }, h.prototype.parseExportDeclaration = function() { this.context.inFunctionBody && this.throwError(a.Messages.IllegalExportDeclaration); var d = this.createNode(); this.expectKeyword("export"); var y; if (this.matchKeyword("default")) if (this.nextToken(), this.matchKeyword("function")) { var p = this.parseFunctionDeclaration(!0); y = this.finalize(d, new o.ExportDefaultDeclaration(p)); } else if (this.matchKeyword("class")) { var p = this.parseClassDeclaration(!0); y = this.finalize(d, new o.ExportDefaultDeclaration(p)); } else if (this.matchContextualKeyword("async")) { var p = this.matchAsyncFunction() ? this.parseFunctionDeclaration(!0) : this.parseAssignmentExpression(); y = this.finalize(d, new o.ExportDefaultDeclaration(p)); } else { this.matchContextualKeyword("from") && this.throwError(a.Messages.UnexpectedToken, this.lookahead.value); var p = this.match("{") ? this.parseObjectInitializer() : this.match("[") ? this.parseArrayInitializer() : this.parseAssignmentExpression(); this.consumeSemicolon(), y = this.finalize(d, new o.ExportDefaultDeclaration(p)); } else if (this.match("*")) { if (this.nextToken(), !this.matchContextualKeyword("from")) { var g = this.lookahead.value ? a.Messages.UnexpectedToken : a.Messages.MissingFromClause; this.throwError(g, this.lookahead.value); } this.nextToken(); var b = this.parseModuleSpecifier(); this.consumeSemicolon(), y = this.finalize(d, new o.ExportAllDeclaration(b)); } else if (this.lookahead.type === 4) { var p = void 0; switch (this.lookahead.value) { case "let": case "const": p = this.parseLexicalDeclaration({ inFor: !1 }); break; case "var": case "class": case "function": p = this.parseStatementListItem(); break; default: this.throwUnexpectedToken(this.lookahead); } y = this.finalize(d, new o.ExportNamedDeclaration(p, [], null)); } else if (this.matchAsyncFunction()) { var p = this.parseFunctionDeclaration(); y = this.finalize(d, new o.ExportNamedDeclaration(p, [], null)); } else { var D = [], v = null, S = !1; for (this.expect("{"); !this.match("}"); ) S = S || this.matchKeyword("default"), D.push(this.parseExportSpecifier()), this.match("}") || this.expect(","); if (this.expect("}"), this.matchContextualKeyword("from")) this.nextToken(), v = this.parseModuleSpecifier(), this.consumeSemicolon(); else if (S) { var g = this.lookahead.value ? a.Messages.UnexpectedToken : a.Messages.MissingFromClause; this.throwError(g, this.lookahead.value); } else this.consumeSemicolon(); y = this.finalize(d, new o.ExportNamedDeclaration(null, D, v)); } return y; }, h; }(); t.Parser = m; }, /* 9 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); function r(i, n) { if (!i) throw new Error("ASSERT: " + n); } s(r, "assert"), t.assert = r; }, /* 10 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = function() { function i() { this.errors = [], this.tolerant = !1; } return s(i, "ErrorHandler"), i.prototype.recordError = function(n) { this.errors.push(n); }, i.prototype.tolerate = function(n) { if (this.tolerant) this.recordError(n); else throw n; }, i.prototype.constructError = function(n, a) { var o = new Error(n); try { throw o; } catch (u) { Object.create && Object.defineProperty && (o = Object.create(u), Object.defineProperty(o, "column", { value: a })); } return o; }, i.prototype.createError = function(n, a, o, u) { var l = "Line " + a + ": " + u, c = this.constructError(l, o); return c.index = n, c.lineNumber = a, c.description = u, c; }, i.prototype.throwError = function(n, a, o, u) { throw this.createError(n, a, o, u); }, i.prototype.tolerateError = function(n, a, o, u) { var l = this.createError(n, a, o, u); if (this.tolerant) this.recordError(l); else throw l; }, i; }(); t.ErrorHandler = r; }, /* 11 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), t.Messages = { BadGetterArity: "Getter must not have any formal parameters", BadSetterArity: "Setter must have exactly one formal parameter", BadSetterRestParameter: "Setter function argument must not be a rest parameter", ConstructorIsAsync: "Class constructor may not be an async method", ConstructorSpecialMethod: "Class constructor may not be an accessor", DeclarationMissingInitializer: "Missing initializer in %0 declaration", DefaultRestParameter: "Unexpected token =", DuplicateBinding: "Duplicate binding %0", DuplicateConstructor: "A class may only have one constructor", DuplicateProtoProperty: "Duplicate __proto__ fields are not allowed in object literals", ForInOfLoopInitializer: "%0 loop variable declaration may not have an initializer", GeneratorInLegacyContext: "Generator declarations are not allowed in legacy contexts", IllegalBreak: "Illegal break statement", IllegalContinue: "Illegal continue statement", IllegalExportDeclaration: "Unexpected token", IllegalImportDeclaration: "Unexpected token", IllegalLanguageModeDirective: "Illegal 'use strict' directive in function with non-simple parameter list", IllegalReturn: "Illegal return statement", InvalidEscapedReservedWord: "Keyword must not contain escaped characters", InvalidHexEscapeSequence: "Invalid hexadecimal escape sequence", InvalidLHSInAssignment: "Invalid left-hand side in assignment", InvalidLHSInForIn: "Invalid left-hand side in for-in", InvalidLHSInForLoop: "Invalid left-hand side in for-loop", InvalidModuleSpecifier: "Unexpected token", InvalidRegExp: "Invalid regular expression", LetInLexicalBinding: "let is disallowed as a lexically bound name", MissingFromClause: "Unexpected token", MultipleDefaultsInSwitch: "More than one default clause in switch statement", NewlineAfterThrow: "Illegal newline after throw", NoAsAfterImportNamespace: "Unexpected token", NoCatchOrFinally: "Missing catch or finally after try", ParameterAfterRestParameter: "Rest parameter must be last formal parameter", Redeclaration: "%0 '%1' has already been declared", StaticPrototype: "Classes may not have static property named prototype", StrictCatchVariable: "Catch variable may not be eval or arguments in strict mode", StrictDelete: "Delete of an unqualified identifier in strict mode.", StrictFunction: "In strict mode code, functions can only be declared at top level or inside a block", StrictFunctionName: "Function name may not be eval or arguments in strict mode", StrictLHSAssignment: "Assignment to eval or arguments is not allowed in strict mode", StrictLHSPostfix: "Postfix increment/decrement may not have eval or arguments operand in strict mode", StrictLHSPrefix: "Prefix increment/decrement may not have eval or arguments operand in strict mode", StrictModeWith: "Strict mode code may not include a with statement", StrictOctalLiteral: "Octal literals are not allowed in strict mode.", StrictParamDupe: "Strict mode function may not have duplicate parameter names", StrictParamName: "Parameter name eval or arguments is not allowed in strict mode", StrictReservedWord: "Use of future reserved word in strict mode", StrictVarName: "Variable name may not be eval or arguments in strict mode", TemplateOctalLiteral: "Octal literals are not allowed in template strings.", UnexpectedEOS: "Unexpected end of input", UnexpectedIdentifier: "Unexpected identifier", UnexpectedNumber: "Unexpected number", UnexpectedReserved: "Unexpected reserved word", UnexpectedString: "Unexpected string", UnexpectedTemplate: "Unexpected quasi %0", UnexpectedToken: "Unexpected token %0", UnexpectedTokenIllegal: "Unexpected token ILLEGAL", UnknownLabel: "Undefined label '%0'", UnterminatedRegExp: "Invalid regular expression: missing /" }; }, /* 12 */ /***/ function(e, t, r) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(9), n = r(4), a = r(11); function o(c) { return "0123456789abcdef".indexOf(c.toLowerCase()); } s(o, "hexValue"); function u(c) { return "01234567".indexOf(c); } s(u, "octalValue"); var l = function() { function c(f, m) { this.source = f, this.errorHandler = m, this.trackComment = !1, this.isModule = !1, this.length = f.length, this.index = 0, this. lineNumber = f.length > 0 ? 1 : 0, this.lineStart = 0, this.curlyStack = []; } return s(c, "Scanner"), c.prototype.saveState = function() { return { index: this.index, lineNumber: this.lineNumber, lineStart: this.lineStart }; }, c.prototype.restoreState = function(f) { this.index = f.index, this.lineNumber = f.lineNumber, this.lineStart = f.lineStart; }, c.prototype.eof = function() { return this.index >= this.length; }, c.prototype.throwUnexpectedToken = function(f) { return f === void 0 && (f = a.Messages.UnexpectedTokenIllegal), this.errorHandler.throwError(this.index, this.lineNumber, this. index - this.lineStart + 1, f); }, c.prototype.tolerateUnexpectedToken = function(f) { f === void 0 && (f = a.Messages.UnexpectedTokenIllegal), this.errorHandler.tolerateError(this.index, this.lineNumber, this.index - this.lineStart + 1, f); }, c.prototype.skipSingleLineComment = function(f) { var m = [], h, d; for (this.trackComment && (m = [], h = this.index - f, d = { start: { line: this.lineNumber, column: this.index - this.lineStart - f }, end: {} }); !this.eof(); ) { var y = this.source.charCodeAt(this.index); if (++this.index, n.Character.isLineTerminator(y)) { if (this.trackComment) { d.end = { line: this.lineNumber, column: this.index - this.lineStart - 1 }; var p = { multiLine: !1, slice: [h + f, this.index - 1], range: [h, this.index - 1], loc: d }; m.push(p); } return y === 13 && this.source.charCodeAt(this.index) === 10 && ++this.index, ++this.lineNumber, this.lineStart = this.index, m; } } if (this.trackComment) { d.end = { line: this.lineNumber, column: this.index - this.lineStart }; var p = { multiLine: !1, slice: [h + f, this.index], range: [h, this.index], loc: d }; m.push(p); } return m; }, c.prototype.skipMultiLineComment = function() { var f = [], m, h; for (this.trackComment && (f = [], m = this.index - 2, h = { start: { line: this.lineNumber, column: this.index - this.lineStart - 2 }, end: {} }); !this.eof(); ) { var d = this.source.charCodeAt(this.index); if (n.Character.isLineTerminator(d)) d === 13 && this.source.charCodeAt(this.index + 1) === 10 && ++this.index, ++this.lineNumber, ++this.index, this.lineStart = this.index; else if (d === 42) { if (this.source.charCodeAt(this.index + 1) === 47) { if (this.index += 2, this.trackComment) { h.end = { line: this.lineNumber, column: this.index - this.lineStart }; var y = { multiLine: !0, slice: [m + 2, this.index - 2], range: [m, this.index], loc: h }; f.push(y); } return f; } ++this.index; } else ++this.index; } if (this.trackComment) { h.end = { line: this.lineNumber, column: this.index - this.lineStart }; var y = { multiLine: !0, slice: [m + 2, this.index], range: [m, this.index], loc: h }; f.push(y); } return this.tolerateUnexpectedToken(), f; }, c.prototype.scanComments = function() { var f; this.trackComment && (f = []); for (var m = this.index === 0; !this.eof(); ) { var h = this.source.charCodeAt(this.index); if (n.Character.isWhiteSpace(h)) ++this.index; else if (n.Character.isLineTerminator(h)) ++this.index, h === 13 && this.source.charCodeAt(this.index) === 10 && ++this.index, ++this.lineNumber, this.lineStart = this. index, m = !0; else if (h === 47) if (h = this.source.charCodeAt(this.index + 1), h === 47) { this.index += 2; var d = this.skipSingleLineComment(2); this.trackComment && (f = f.concat(d)), m = !0; } else if (h === 42) { this.index += 2; var d = this.skipMultiLineComment(); this.trackComment && (f = f.concat(d)); } else break; else if (m && h === 45) if (this.source.charCodeAt(this.index + 1) === 45 && this.source.charCodeAt(this.index + 2) === 62) { this.index += 3; var d = this.skipSingleLineComment(3); this.trackComment && (f = f.concat(d)); } else break; else if (h === 60 && !this.isModule) if (this.source.slice(this.index + 1, this.index + 4) === "!--") { this.index += 4; var d = this.skipSingleLineComment(4); this.trackComment && (f = f.concat(d)); } else break; else break; } return f; }, c.prototype.isFutureReservedWord = function(f) { switch (f) { case "enum": case "export": case "import": case "super": return !0; default: return !1; } }, c.prototype.isStrictModeReservedWord = function(f) { switch (f) { case "implements": case "interface": case "package": case "private": case "protected": case "public": case "static": case "yield": case "let": return !0; default: return !1; } }, c.prototype.isRestrictedWord = function(f) { return f === "eval" || f === "arguments"; }, c.prototype.isKeyword = function(f) { switch (f.length) { case 2: return f === "if" || f === "in" || f === "do"; case 3: return f === "var" || f === "for" || f === "new" || f === "try" || f === "let"; case 4: return f === "this" || f === "else" || f === "case" || f === "void" || f === "with" || f === "enum"; case 5: return f === "while" || f === "break" || f === "catch" || f === "throw" || f === "const" || f === "yield" || f === "class" || f === "super"; case 6: return f === "return" || f === "typeof" || f === "delete" || f === "switch" || f === "export" || f === "import"; case 7: return f === "default" || f === "finally" || f === "extends"; case 8: return f === "function" || f === "continue" || f === "debugger"; case 10: return f === "instanceof"; default: return !1; } }, c.prototype.codePointAt = function(f) { var m = this.source.charCodeAt(f); if (m >= 55296 && m <= 56319) { var h = this.source.charCodeAt(f + 1); if (h >= 56320 && h <= 57343) { var d = m; m = (d - 55296) * 1024 + h - 56320 + 65536; } } return m; }, c.prototype.scanHexEscape = function(f) { for (var m = f === "u" ? 4 : 2, h = 0, d = 0; d < m; ++d) if (!this.eof() && n.Character.isHexDigit(this.source.charCodeAt(this.index))) h = h * 16 + o(this.source[this.index++]); else return null; return String.fromCharCode(h); }, c.prototype.scanUnicodeCodePointEscape = function() { var f = this.source[this.index], m = 0; for (f === "}" && this.throwUnexpectedToken(); !this.eof() && (f = this.source[this.index++], !!n.Character.isHexDigit(f.charCodeAt( 0))); ) m = m * 16 + o(f); return (m > 1114111 || f !== "}") && this.throwUnexpectedToken(), n.Character.fromCodePoint(m); }, c.prototype.getIdentifier = function() { for (var f = this.index++; !this.eof(); ) { var m = this.source.charCodeAt(this.index); if (m === 92) return this.index = f, this.getComplexIdentifier(); if (m >= 55296 && m < 57343) return this.index = f, this.getComplexIdentifier(); if (n.Character.isIdentifierPart(m)) ++this.index; else break; } return this.source.slice(f, this.index); }, c.prototype.getComplexIdentifier = function() { var f = this.codePointAt(this.index), m = n.Character.fromCodePoint(f); this.index += m.length; var h; for (f === 92 && (this.source.charCodeAt(this.index) !== 117 && this.throwUnexpectedToken(), ++this.index, this.source[this.index] === "{" ? (++this.index, h = this.scanUnicodeCodePointEscape()) : (h = this.scanHexEscape("u"), (h === null || h === "\\" || !n.Character. isIdentifierStart(h.charCodeAt(0))) && this.throwUnexpectedToken()), m = h); !this.eof() && (f = this.codePointAt(this.index), !!n.Character.isIdentifierPart(f)); ) h = n.Character.fromCodePoint(f), m += h, this.index += h.length, f === 92 && (m = m.substr(0, m.length - 1), this.source.charCodeAt( this.index) !== 117 && this.throwUnexpectedToken(), ++this.index, this.source[this.index] === "{" ? (++this.index, h = this. scanUnicodeCodePointEscape()) : (h = this.scanHexEscape("u"), (h === null || h === "\\" || !n.Character.isIdentifierPart(h.charCodeAt( 0))) && this.throwUnexpectedToken()), m += h); return m; }, c.prototype.octalToDecimal = function(f) { var m = f !== "0", h = u(f); return !this.eof() && n.Character.isOctalDigit(this.source.charCodeAt(this.index)) && (m = !0, h = h * 8 + u(this.source[this. index++]), "0123".indexOf(f) >= 0 && !this.eof() && n.Character.isOctalDigit(this.source.charCodeAt(this.index)) && (h = h * 8 + u(this.source[this.index++]))), { code: h, octal: m }; }, c.prototype.scanIdentifier = function() { var f, m = this.index, h = this.source.charCodeAt(m) === 92 ? this.getComplexIdentifier() : this.getIdentifier(); if (h.length === 1 ? f = 3 : this.isKeyword(h) ? f = 4 : h === "null" ? f = 5 : h === "true" || h === "false" ? f = 1 : f = 3, f !== 3 && m + h.length !== this.index) { var d = this.index; this.index = m, this.tolerateUnexpectedToken(a.Messages.InvalidEscapedReservedWord), this.index = d; } return { type: f, value: h, lineNumber: this.lineNumber, lineStart: this.lineStart, start: m, end: this.index }; }, c.prototype.scanPunctuator = function() { var f = this.index, m = this.source[this.index]; switch (m) { case "(": case "{": m === "{" && this.curlyStack.push("{"), ++this.index; break; case ".": ++this.index, this.source[this.index] === "." && this.source[this.index + 1] === "." && (this.index += 2, m = "..."); break; case "}": ++this.index, this.curlyStack.pop(); break; case ")": case ";": case ",": case "[": case "]": case ":": case "?": case "~": ++this.index; break; default: m = this.source.substr(this.index, 4), m === ">>>=" ? this.index += 4 : (m = m.substr(0, 3), m === "===" || m === "!==" || m === ">>>" || m === "<<=" || m === ">>=" || m === "**=" ? this.index += 3 : (m = m.substr(0, 2), m === "&&" || m === "||" || m === "==" || m === "!=" || m === "+=" || m === "-=" || m === "*=" || m === "/=" || m === "++" || m === "--" || m === "<<" || m === ">>" || m === "&=" || m === "|=" || m === "^=" || m === "%=" || m === "<=" || m === ">=" || m === "=>" || m === "**" ? this.index += 2 : (m = this.source[this.index], "<>=!+-*%&|^/".indexOf(m) >= 0 && ++this.index))); } return this.index === f && this.throwUnexpectedToken(), { type: 7, value: m, lineNumber: this.lineNumber, lineStart: this.lineStart, start: f, end: this.index }; }, c.prototype.scanHexLiteral = function(f) { for (var m = ""; !this.eof() && n.Character.isHexDigit(this.source.charCodeAt(this.index)); ) m += this.source[this.index++]; return m.length === 0 && this.throwUnexpectedToken(), n.Character.isIdentifierStart(this.source.charCodeAt(this.index)) && this. throwUnexpectedToken(), { type: 6, value: parseInt("0x" + m, 16), lineNumber: this.lineNumber, lineStart: this.lineStart, start: f, end: this.index }; }, c.prototype.scanBinaryLiteral = function(f) { for (var m = "", h; !this.eof() && (h = this.source[this.index], !(h !== "0" && h !== "1")); ) m += this.source[this.index++]; return m.length === 0 && this.throwUnexpectedToken(), this.eof() || (h = this.source.charCodeAt(this.index), (n.Character.isIdentifierStart( h) || n.Character.isDecimalDigit(h)) && this.throwUnexpectedToken()), { type: 6, value: parseInt(m, 2), lineNumber: this.lineNumber, lineStart: this.lineStart, start: f, end: this.index }; }, c.prototype.scanOctalLiteral = function(f, m) { var h = "", d = !1; for (n.Character.isOctalDigit(f.charCodeAt(0)) ? (d = !0, h = "0" + this.source[this.index++]) : ++this.index; !this.eof() && n. Character.isOctalDigit(this.source.charCodeAt(this.index)); ) h += this.source[this.index++]; return !d && h.length === 0 && this.throwUnexpectedToken(), (n.Character.isIdentifierStart(this.source.charCodeAt(this.index)) || n.Character.isDecimalDigit(this.source.charCodeAt(this.index))) && this.throwUnexpectedToken(), { type: 6, value: parseInt(h, 8), octal: d, lineNumber: this.lineNumber, lineStart: this.lineStart, start: m, end: this.index }; }, c.prototype.isImplicitOctalLiteral = function() { for (var f = this.index + 1; f < this.length; ++f) { var m = this.source[f]; if (m === "8" || m === "9") return !1; if (!n.Character.isOctalDigit(m.charCodeAt(0))) return !0; } return !0; }, c.prototype.scanNumericLiteral = function() { var f = this.index, m = this.source[f]; i.assert(n.Character.isDecimalDigit(m.charCodeAt(0)) || m === ".", "Numeric literal must start with a decimal digit or a decim\ al point"); var h = ""; if (m !== ".") { if (h = this.source[this.index++], m = this.source[this.index], h === "0") { if (m === "x" || m === "X") return ++this.index, this.scanHexLiteral(f); if (m === "b" || m === "B") return ++this.index, this.scanBinaryLiteral(f); if (m === "o" || m === "O") return this.scanOctalLiteral(m, f); if (m && n.Character.isOctalDigit(m.charCodeAt(0)) && this.isImplicitOctalLiteral()) return this.scanOctalLiteral(m, f); } for (; n.Character.isDecimalDigit(this.source.charCodeAt(this.index)); ) h += this.source[this.index++]; m = this.source[this.index]; } if (m === ".") { for (h += this.source[this.index++]; n.Character.isDecimalDigit(this.source.charCodeAt(this.index)); ) h += this.source[this.index++]; m = this.source[this.index]; } if (m === "e" || m === "E") if (h += this.source[this.index++], m = this.source[this.index], (m === "+" || m === "-") && (h += this.source[this.index++]), n.Character.isDecimalDigit(this.source.charCodeAt(this.index))) for (; n.Character.isDecimalDigit(this.source.charCodeAt(this.index)); ) h += this.source[this.index++]; else this.throwUnexpectedToken(); return n.Character.isIdentifierStart(this.source.charCodeAt(this.index)) && this.throwUnexpectedToken(), { type: 6, value: parseFloat(h), lineNumber: this.lineNumber, lineStart: this.lineStart, start: f, end: this.index }; }, c.prototype.scanStringLiteral = function() { var f = this.index, m = this.source[f]; i.assert(m === "'" || m === '"', "String literal must starts with a quote"), ++this.index; for (var h = !1, d = ""; !this.eof(); ) { var y = this.source[this.index++]; if (y === m) { m = ""; break; } else if (y === "\\") if (y = this.source[this.index++], !y || !n.Character.isLineTerminator(y.charCodeAt(0))) switch (y) { case "u": if (this.source[this.index] === "{") ++this.index, d += this.scanUnicodeCodePointEscape(); else { var p = this.scanHexEscape(y); p === null && this.throwUnexpectedToken(), d += p; } break; case "x": var g = this.scanHexEscape(y); g === null && this.throwUnexpectedToken(a.Messages.InvalidHexEscapeSequence), d += g; break; case "n": d += ` `; break; case "r": d += "\r"; break; case "t": d += " "; break; case "b": d += "\b"; break; case "f": d += "\f"; break; case "v": d += "\v"; break; case "8": case "9": d += y, this.tolerateUnexpectedToken(); break; default: if (y && n.Character.isOctalDigit(y.charCodeAt(0))) { var b = this.octalToDecimal(y); h = b.octal || h, d += String.fromCharCode(b.code); } else d += y; break; } else ++this.lineNumber, y === "\r" && this.source[this.index] === ` ` && ++this.index, this.lineStart = this.index; else { if (n.Character.isLineTerminator(y.charCodeAt(0))) break; d += y; } } return m !== "" && (this.index = f, this.throwUnexpectedToken()), { type: 8, value: d, octal: h, lineNumber: this.lineNumber, lineStart: this.lineStart, start: f, end: this.index }; }, c.prototype.scanTemplate = function() { var f = "", m = !1, h = this.index, d = this.source[h] === "`", y = !1, p = 2; for (++this.index; !this.eof(); ) { var g = this.source[this.index++]; if (g === "`") { p = 1, y = !0, m = !0; break; } else if (g === "$") { if (this.source[this.index] === "{") { this.curlyStack.push("${"), ++this.index, m = !0; break; } f += g; } else if (g === "\\") if (g = this.source[this.index++], n.Character.isLineTerminator(g.charCodeAt(0))) ++this.lineNumber, g === "\r" && this.source[this.index] === ` ` && ++this.index, this.lineStart = this.index; else switch (g) { case "n": f += ` `; break; case "r": f += "\r"; break; case "t": f += " "; break; case "u": if (this.source[this.index] === "{") ++this.index, f += this.scanUnicodeCodePointEscape(); else { var b = this.index, D = this.scanHexEscape(g); D !== null ? f += D : (this.index = b, f += g); } break; case "x": var v = this.scanHexEscape(g); v === null && this.throwUnexpectedToken(a.Messages.InvalidHexEscapeSequence), f += v; break; case "b": f += "\b"; break; case "f": f += "\f"; break; case "v": f += "\v"; break; default: g === "0" ? (n.Character.isDecimalDigit(this.source.charCodeAt(this.index)) && this.throwUnexpectedToken(a.Messages. TemplateOctalLiteral), f += "\0") : n.Character.isOctalDigit(g.charCodeAt(0)) ? this.throwUnexpectedToken(a.Messages. TemplateOctalLiteral) : f += g; break; } else n.Character.isLineTerminator(g.charCodeAt(0)) ? (++this.lineNumber, g === "\r" && this.source[this.index] === ` ` && ++this.index, this.lineStart = this.index, f += ` `) : f += g; } return m || this.throwUnexpectedToken(), d || this.curlyStack.pop(), { type: 10, value: this.source.slice(h + 1, this.index - p), cooked: f, head: d, tail: y, lineNumber: this.lineNumber, lineStart: this.lineStart, start: h, end: this.index }; }, c.prototype.testRegExp = function(f, m) { var h = "\uFFFF", d = f, y = this; m.indexOf("u") >= 0 && (d = d.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g, function(p, g, b) { var D = parseInt(g || b, 16); return D > 1114111 && y.throwUnexpectedToken(a.Messages.InvalidRegExp), D <= 65535 ? String.fromCharCode(D) : h; }).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, h)); try { RegExp(d); } catch { this.throwUnexpectedToken(a.Messages.InvalidRegExp); } try { return new RegExp(f, m); } catch { return null; } }, c.prototype.scanRegExpBody = function() { var f = this.source[this.index]; i.assert(f === "/", "Regular expression literal must start with a slash"); for (var m = this.source[this.index++], h = !1, d = !1; !this.eof(); ) if (f = this.source[this.index++], m += f, f === "\\") f = this.source[this.index++], n.Character.isLineTerminator(f.charCodeAt(0)) && this.throwUnexpectedToken(a.Messages.UnterminatedRegExp), m += f; else if (n.Character.isLineTerminator(f.charCodeAt(0))) this.throwUnexpectedToken(a.Messages.UnterminatedRegExp); else if (h) f === "]" && (h = !1); else if (f === "/") { d = !0; break; } else f === "[" && (h = !0); return d || this.throwUnexpectedToken(a.Messages.UnterminatedRegExp), m.substr(1, m.length - 2); }, c.prototype.scanRegExpFlags = function() { for (var f = "", m = ""; !this.eof(); ) { var h = this.source[this.index]; if (!n.Character.isIdentifierPart(h.charCodeAt(0))) break; if (++this.index, h === "\\" && !this.eof()) if (h = this.source[this.index], h === "u") { ++this.index; var d = this.index, y = this.scanHexEscape("u"); if (y !== null) for (m += y, f += "\\u"; d < this.index; ++d) f += this.source[d]; else this.index = d, m += "u", f += "\\u"; this.tolerateUnexpectedToken(); } else f += "\\", this.tolerateUnexpectedToken(); else m += h, f += h; } return m; }, c.prototype.scanRegExp = function() { var f = this.index, m = this.scanRegExpBody(), h = this.scanRegExpFlags(), d = this.testRegExp(m, h); return { type: 9, value: "", pattern: m, flags: h, regex: d, lineNumber: this.lineNumber, lineStart: this.lineStart, start: f, end: this.index }; }, c.prototype.lex = function() { if (this.eof()) return { type: 2, value: "", lineNumber: this.lineNumber, lineStart: this.lineStart, start: this.index, end: this.index }; var f = this.source.charCodeAt(this.index); return n.Character.isIdentifierStart(f) ? this.scanIdentifier() : f === 40 || f === 41 || f === 59 ? this.scanPunctuator() : f === 39 || f === 34 ? this.scanStringLiteral() : f === 46 ? n.Character.isDecimalDigit(this.source.charCodeAt(this.index + 1)) ? this. scanNumericLiteral() : this.scanPunctuator() : n.Character.isDecimalDigit(f) ? this.scanNumericLiteral() : f === 96 || f === 125 && this.curlyStack[this.curlyStack.length - 1] === "${" ? this.scanTemplate() : f >= 55296 && f < 57343 && n.Character.isIdentifierStart( this.codePointAt(this.index)) ? this.scanIdentifier() : this.scanPunctuator(); }, c; }(); t.Scanner = l; }, /* 13 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), t.TokenName = {}, t.TokenName[ 1 /* BooleanLiteral */ ] = "Boolean", t.TokenName[ 2 /* EOF */ ] = "", t.TokenName[ 3 /* Identifier */ ] = "Identifier", t.TokenName[ 4 /* Keyword */ ] = "Keyword", t.TokenName[ 5 /* NullLiteral */ ] = "Null", t.TokenName[ 6 /* NumericLiteral */ ] = "Numeric", t.TokenName[ 7 /* Punctuator */ ] = "Punctuator", t.TokenName[ 8 /* StringLiteral */ ] = "String", t.TokenName[ 9 /* RegularExpression */ ] = "RegularExpression", t.TokenName[ 10 /* Template */ ] = "Template"; }, /* 14 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), t.XHTMLEntities = { quot: '"', amp: "&", apos: "'", gt: ">", nbsp: "\xA0", iexcl: "\xA1", cent: "\xA2", pound: "\xA3", curren: "\xA4", yen: "\xA5", brvbar: "\xA6", sect: "\xA7", uml: "\xA8", copy: "\xA9", ordf: "\xAA", laquo: "\xAB", not: "\xAC", shy: "\xAD", reg: "\xAE", macr: "\xAF", deg: "\xB0", plusmn: "\xB1", sup2: "\xB2", sup3: "\xB3", acute: "\xB4", micro: "\xB5", para: "\xB6", middot: "\xB7", cedil: "\xB8", sup1: "\xB9", ordm: "\xBA", raquo: "\xBB", frac14: "\xBC", frac12: "\xBD", frac34: "\xBE", iquest: "\xBF", Agrave: "\xC0", Aacute: "\xC1", Acirc: "\xC2", Atilde: "\xC3", Auml: "\xC4", Aring: "\xC5", AElig: "\xC6", Ccedil: "\xC7", Egrave: "\xC8", Eacute: "\xC9", Ecirc: "\xCA", Euml: "\xCB", Igrave: "\xCC", Iacute: "\xCD", Icirc: "\xCE", Iuml: "\xCF", ETH: "\xD0", Ntilde: "\xD1", Ograve: "\xD2", Oacute: "\xD3", Ocirc: "\xD4", Otilde: "\xD5", Ouml: "\xD6", times: "\xD7", Oslash: "\xD8", Ugrave: "\xD9", Uacute: "\xDA", Ucirc: "\xDB", Uuml: "\xDC", Yacute: "\xDD", THORN: "\xDE", szlig: "\xDF", agrave: "\xE0", aacute: "\xE1", acirc: "\xE2", atilde: "\xE3", auml: "\xE4", aring: "\xE5", aelig: "\xE6", ccedil: "\xE7", egrave: "\xE8", eacute: "\xE9", ecirc: "\xEA", euml: "\xEB", igrave: "\xEC", iacute: "\xED", icirc: "\xEE", iuml: "\xEF", eth: "\xF0", ntilde: "\xF1", ograve: "\xF2", oacute: "\xF3", ocirc: "\xF4", otilde: "\xF5", ouml: "\xF6", divide: "\xF7", oslash: "\xF8", ugrave: "\xF9", uacute: "\xFA", ucirc: "\xFB", uuml: "\xFC", yacute: "\xFD", thorn: "\xFE", yuml: "\xFF", OElig: "\u0152", oelig: "\u0153", Scaron: "\u0160", scaron: "\u0161", Yuml: "\u0178", fnof: "\u0192", circ: "\u02C6", tilde: "\u02DC", Alpha: "\u0391", Beta: "\u0392", Gamma: "\u0393", Delta: "\u0394", Epsilon: "\u0395", Zeta: "\u0396", Eta: "\u0397", Theta: "\u0398", Iota: "\u0399", Kappa: "\u039A", Lambda: "\u039B", Mu: "\u039C", Nu: "\u039D", Xi: "\u039E", Omicron: "\u039F", Pi: "\u03A0", Rho: "\u03A1", Sigma: "\u03A3", Tau: "\u03A4", Upsilon: "\u03A5", Phi: "\u03A6", Chi: "\u03A7", Psi: "\u03A8", Omega: "\u03A9", alpha: "\u03B1", beta: "\u03B2", gamma: "\u03B3", delta: "\u03B4", epsilon: "\u03B5", zeta: "\u03B6", eta: "\u03B7", theta: "\u03B8", iota: "\u03B9", kappa: "\u03BA", lambda: "\u03BB", mu: "\u03BC", nu: "\u03BD", xi: "\u03BE", omicron: "\u03BF", pi: "\u03C0", rho: "\u03C1", sigmaf: "\u03C2", sigma: "\u03C3", tau: "\u03C4", upsilon: "\u03C5", phi: "\u03C6", chi: "\u03C7", psi: "\u03C8", omega: "\u03C9", thetasym: "\u03D1", upsih: "\u03D2", piv: "\u03D6", ensp: "\u2002", emsp: "\u2003", thinsp: "\u2009", zwnj: "\u200C", zwj: "\u200D", lrm: "\u200E", rlm: "\u200F", ndash: "\u2013", mdash: "\u2014", lsquo: "\u2018", rsquo: "\u2019", sbquo: "\u201A", ldquo: "\u201C", rdquo: "\u201D", bdquo: "\u201E", dagger: "\u2020", Dagger: "\u2021", bull: "\u2022", hellip: "\u2026", permil: "\u2030", prime: "\u2032", Prime: "\u2033", lsaquo: "\u2039", rsaquo: "\u203A", oline: "\u203E", frasl: "\u2044", euro: "\u20AC", image: "\u2111", weierp: "\u2118", real: "\u211C", trade: "\u2122", alefsym: "\u2135", larr: "\u2190", uarr: "\u2191", rarr: "\u2192", darr: "\u2193", harr: "\u2194", crarr: "\u21B5", lArr: "\u21D0", uArr: "\u21D1", rArr: "\u21D2", dArr: "\u21D3", hArr: "\u21D4", forall: "\u2200", part: "\u2202", exist: "\u2203", empty: "\u2205", nabla: "\u2207", isin: "\u2208", notin: "\u2209", ni: "\u220B", prod: "\u220F", sum: "\u2211", minus: "\u2212", lowast: "\u2217", radic: "\u221A", prop: "\u221D", infin: "\u221E", ang: "\u2220", and: "\u2227", or: "\u2228", cap: "\u2229", cup: "\u222A", int: "\u222B", there4: "\u2234", sim: "\u223C", cong: "\u2245", asymp: "\u2248", ne: "\u2260", equiv: "\u2261", le: "\u2264", ge: "\u2265", sub: "\u2282", sup: "\u2283", nsub: "\u2284", sube: "\u2286", supe: "\u2287", oplus: "\u2295", otimes: "\u2297", perp: "\u22A5", sdot: "\u22C5", lceil: "\u2308", rceil: "\u2309", lfloor: "\u230A", rfloor: "\u230B", loz: "\u25CA", spades: "\u2660", clubs: "\u2663", hearts: "\u2665", diams: "\u2666", lang: "\u27E8", rang: "\u27E9" }; }, /* 15 */ /***/ function(e, t, r) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(10), n = r(12), a = r(13), o = function() { function l() { this.values = [], this.curly = this.paren = -1; } return s(l, "Reader"), l.prototype.beforeFunctionExpression = function(c) { return [ "(", "{", "[", "in", "typeof", "instanceof", "new", "return", "case", "delete", "throw", "void", // assignment operators "=", "+=", "-=", "*=", "**=", "/=", "%=", "<<=", ">>=", ">>>=", "&=", "|=", "^=", ",", // binary/unary operators "+", "-", "*", "**", "/", "%", "++", "--", "<<", ">>", ">>>", "&", "|", "^", "!", "~", "&&", "||", "?", ":", "===", "==", ">=", "<=", "<", ">", "!=", "!==" ].indexOf(c) >= 0; }, l.prototype.isRegexStart = function() { var c = this.values[this.values.length - 1], f = c !== null; switch (c) { case "this": case "]": f = !1; break; case ")": var m = this.values[this.paren - 1]; f = m === "if" || m === "while" || m === "for" || m === "with"; break; case "}": if (f = !1, this.values[this.curly - 3] === "function") { var h = this.values[this.curly - 4]; f = h ? !this.beforeFunctionExpression(h) : !1; } else if (this.values[this.curly - 4] === "function") { var h = this.values[this.curly - 5]; f = h ? !this.beforeFunctionExpression(h) : !0; } break; default: break; } return f; }, l.prototype.push = function(c) { c.type === 7 || c.type === 4 ? (c.value === "{" ? this.curly = this.values.length : c.value === "(" && (this.paren = this.values. length), this.values.push(c.value)) : this.values.push(null); }, l; }(), u = function() { function l(c, f) { this.errorHandler = new i.ErrorHandler(), this.errorHandler.tolerant = f ? typeof f.tolerant == "boolean" && f.tolerant : !1, this. scanner = new n.Scanner(c, this.errorHandler), this.scanner.trackComment = f ? typeof f.comment == "boolean" && f.comment : !1, this.trackRange = f ? typeof f.range == "boolean" && f.range : !1, this.trackLoc = f ? typeof f.loc == "boolean" && f.loc : !1, this.buffer = [], this.reader = new o(); } return s(l, "Tokenizer"), l.prototype.errors = function() { return this.errorHandler.errors; }, l.prototype.getNextToken = function() { if (this.buffer.length === 0) { var c = this.scanner.scanComments(); if (this.scanner.trackComment) for (var f = 0; f < c.length; ++f) { var m = c[f], h = this.scanner.source.slice(m.slice[0], m.slice[1]), d = { type: m.multiLine ? "BlockComment" : "LineComment", value: h }; this.trackRange && (d.range = m.range), this.trackLoc && (d.loc = m.loc), this.buffer.push(d); } if (!this.scanner.eof()) { var y = void 0; this.trackLoc && (y = { start: { line: this.scanner.lineNumber, column: this.scanner.index - this.scanner.lineStart }, end: {} }); var p = this.scanner.source[this.scanner.index] === "/" && this.reader.isRegexStart(), g = p ? this.scanner.scanRegExp() : this.scanner.lex(); this.reader.push(g); var b = { type: a.TokenName[g.type], value: this.scanner.source.slice(g.start, g.end) }; if (this.trackRange && (b.range = [g.start, g.end]), this.trackLoc && (y.end = { line: this.scanner.lineNumber, column: this.scanner.index - this.scanner.lineStart }, b.loc = y), g.type === 9) { var D = g.pattern, v = g.flags; b.regex = { pattern: D, flags: v }; } this.buffer.push(b); } } return this.buffer.shift(); }, l; }(); t.Tokenizer = u; } /******/ ]) ); }); }); // ../node_modules/array-timsort/src/index.js var mR = E((Nnt, hR) => { var uR = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9], je, lR = /* @__PURE__ */ s((e) => e < 1e5 ? e < 100 ? e < 10 ? 0 : 1 : e < 1e4 ? e < 1e3 ? 2 : 3 : 4 : e < 1e7 ? e < 1e6 ? 5 : 6 : e < 1e9 ? e < 1e8 ? 7 : 8 : 9, "log10"); function cR(e, t) { if (e === t) return 0; if (~~e === e && ~~t === t) { if (e === 0 || t === 0) return e < t ? -1 : 1; if (e < 0 || t < 0) { if (t >= 0) return -1; if (e >= 0) return 1; e = -e, t = -t; } let n = lR(e), a = lR(t), o = 0; return n < a ? (e *= uR[a - n - 1], t /= 10, o = -1) : n > a && (t *= uR[n - a - 1], e /= 10, o = 1), e === t ? o : e < t ? -1 : 1; } let r = String(e), i = String(t); return r === i ? 0 : r < i ? -1 : 1; } s(cR, "alphabeticalCompare"); function Dle(e) { let t = 0; for (; e >= 32; ) t |= e & 1, e >>= 1; return e + t; } s(Dle, "minRunLength"); function fR(e, t, r, i) { let n = t + 1; if (n === r) return 1; if (i(e[n++], e[t]) < 0) { for (; n < r && i(e[n], e[n - 1]) < 0; ) n++; dR(e, t, n), dR(je, t, n); } else for (; n < r && i(e[n], e[n - 1]) >= 0; ) n++; return n - t; } s(fR, "makeAscendingRun"); function dR(e, t, r) { for (r--; t < r; ) { let i = e[t]; e[t++] = e[r], e[r--] = i; } } s(dR, "reverseRun"); function pR(e, t, r, i, n) { for (i === t && i++; i < r; i++) { let a = e[i], o = je[i], u = t, l = i; for (; u < l; ) { let f = u + l >>> 1; n(a, e[f]) < 0 ? l = f : u = f + 1; } let c = i - u; switch (c) { case 3: e[u + 3] = e[u + 2], je[u + 3] = je[u + 2]; /* falls through */ case 2: e[u + 2] = e[u + 1], je[u + 2] = je[u + 1]; /* falls through */ case 1: e[u + 1] = e[u], je[u + 1] = je[u]; break; default: for (; c > 0; ) e[u + c] = e[u + c - 1], je[u + c] = je[u + c - 1], c--; } e[u] = a, je[u] = o; } } s(pR, "binaryInsertionSort"); function c1(e, t, r, i, n, a) { let o = 0, u = 0, l = 1; if (a(e, t[r + n]) > 0) { for (u = i - n; l < u && a(e, t[r + n + l]) > 0; ) o = l, l = (l << 1) + 1, l <= 0 && (l = u); l > u && (l = u), o += n, l += n; } else { for (u = n + 1; l < u && a(e, t[r + n - l]) <= 0; ) o = l, l = (l << 1) + 1, l <= 0 && (l = u); l > u && (l = u); let c = o; o = n - l, l = n - c; } for (o++; o < l; ) { let c = o + (l - o >>> 1); a(e, t[r + c]) > 0 ? o = c + 1 : l = c; } return l; } s(c1, "gallopLeft"); function f1(e, t, r, i, n, a) { let o = 0, u = 0, l = 1; if (a(e, t[r + n]) < 0) { for (u = n + 1; l < u && a(e, t[r + n - l]) < 0; ) o = l, l = (l << 1) + 1, l <= 0 && (l = u); l > u && (l = u); let c = o; o = n - l, l = n - c; } else { for (u = i - n; l < u && a(e, t[r + n + l]) >= 0; ) o = l, l = (l << 1) + 1, l <= 0 && (l = u); l > u && (l = u), o += n, l += n; } for (o++; o < l; ) { let c = o + (l - o >>> 1); a(e, t[r + c]) < 0 ? l = c : o = c + 1; } return l; } s(f1, "gallopRight"); var d1 = class { static { s(this, "TimSort"); } constructor(t, r) { this.array = t, this.compare = r; let { length: i } = t; this.length = i, this.minGallop = 7, this.tmpStorageLength = i < 2 * 256 ? i >>> 1 : 256, this.tmp = new Array(this.tmpStorageLength), this.tmpIndex = new Array(this.tmpStorageLength), this.stackLength = i < 120 ? 5 : i < 1542 ? 10 : i < 119151 ? 19 : 40, this.runStart = new Array(this.stackLength), this.runLength = new Array(this.stackLength), this.stackSize = 0; } /** * Push a new run on TimSort's stack. * * @param {number} runStart - Start index of the run in the original array. * @param {number} runLength - Length of the run; */ pushRun(t, r) { this.runStart[this.stackSize] = t, this.runLength[this.stackSize] = r, this.stackSize += 1; } /** * Merge runs on TimSort's stack so that the following holds for all i: * 1) runLength[i - 3] > runLength[i - 2] + runLength[i - 1] * 2) runLength[i - 2] > runLength[i - 1] */ mergeRuns() { for (; this.stackSize > 1; ) { let t = this.stackSize - 2; if (t >= 1 && this.runLength[t - 1] <= this.runLength[t] + this.runLength[t + 1] || t >= 2 && this.runLength[t - 2] <= this.runLength[t] + this.runLength[t - 1]) this.runLength[t - 1] < this.runLength[t + 1] && t--; else if (this.runLength[t] > this.runLength[t + 1]) break; this.mergeAt(t); } } /** * Merge all runs on TimSort's stack until only one remains. */ forceMergeRuns() { for (; this.stackSize > 1; ) { let t = this.stackSize - 2; t > 0 && this.runLength[t - 1] < this.runLength[t + 1] && t--, this.mergeAt(t); } } /** * Merge the runs on the stack at positions i and i+1. Must be always be called * with i=stackSize-2 or i=stackSize-3 (that is, we merge on top of the stack). * * @param {number} i - Index of the run to merge in TimSort's stack. */ mergeAt(t) { let { compare: r } = this, { array: i } = this, n = this.runStart[t], a = this.runLength[t], o = this.runStart[t + 1], u = this.runLength[t + 1]; this.runLength[t] = a + u, t === this.stackSize - 3 && (this.runStart[t + 1] = this.runStart[t + 2], this.runLength[t + 1] = this.runLength[t + 2]), this.stackSize--; let l = f1(i[o], i, n, a, 0, r); n += l, a -= l, a !== 0 && (u = c1( i[n + a - 1], i, o, u, u - 1, r ), u !== 0 && (a <= u ? this.mergeLow(n, a, o, u) : this.mergeHigh(n, a, o, u))); } /** * Merge two adjacent runs in a stable way. The runs must be such that the * first element of run1 is bigger than the first element in run2 and the * last element of run1 is greater than all the elements in run2. * The method should be called when run1.length <= run2.length as it uses * TimSort temporary array to store run1. Use mergeHigh if run1.length > * run2.length. * * @param {number} start1 - First element in run1. * @param {number} length1 - Length of run1. * @param {number} start2 - First element in run2. * @param {number} length2 - Length of run2. */ mergeLow(t, r, i, n) { let { compare: a } = this, { array: o } = this, { tmp: u } = this, { tmpIndex: l } = this, c = 0; for (c = 0; c < r; c++) u[c] = o[t + c], l[c] = je[t + c]; let f = 0, m = i, h = t; if (o[h] = o[m], je[h] = je[m], h++, m++, --n === 0) { for (c = 0; c < r; c++) o[h + c] = u[f + c], je[h + c] = l[f + c]; return; } if (r === 1) { for (c = 0; c < n; c++) o[h + c] = o[m + c], je[h + c] = je[m + c]; o[h + n] = u[f], je[h + n] = l[f]; return; } let { minGallop: d } = this; for (; ; ) { let y = 0, p = 0, g = !1; do if (a(o[m], u[f]) < 0) { if (o[h] = o[m], je[h] = je[m], h++, m++, p++, y = 0, --n === 0) { g = !0; break; } } else if (o[h] = u[f], je[h] = l[f], h++, f++, y++, p = 0, --r === 1) { g = !0; break; } while ((y | p) < d); if (g) break; do { if (y = f1(o[m], u, f, r, 0, a), y !== 0) { for (c = 0; c < y; c++) o[h + c] = u[f + c], je[h + c] = l[f + c]; if (h += y, f += y, r -= y, r <= 1) { g = !0; break; } } if (o[h] = o[m], je[h] = je[m], h++, m++, --n === 0) { g = !0; break; } if (p = c1(u[f], o, m, n, 0, a), p !== 0) { for (c = 0; c < p; c++) o[h + c] = o[m + c], je[h + c] = je[m + c]; if (h += p, m += p, n -= p, n === 0) { g = !0; break; } } if (o[h] = u[f], je[h] = l[f], h++, f++, --r === 1) { g = !0; break; } d--; } while (y >= 7 || p >= 7); if (g) break; d < 0 && (d = 0), d += 2; } if (this.minGallop = d, d < 1 && (this.minGallop = 1), r === 1) { for (c = 0; c < n; c++) o[h + c] = o[m + c], je[h + c] = je[m + c]; o[h + n] = u[f], je[h + n] = l[f]; } else { if (r === 0) throw new Error("mergeLow preconditions were not respected"); for (c = 0; c < r; c++) o[h + c] = u[f + c], je[h + c] = l[f + c]; } } /** * Merge two adjacent runs in a stable way. The runs must be such that the * first element of run1 is bigger than the first element in run2 and the * last element of run1 is greater than all the elements in run2. * The method should be called when run1.length > run2.length as it uses * TimSort temporary array to store run2. Use mergeLow if run1.length <= * run2.length. * * @param {number} start1 - First element in run1. * @param {number} length1 - Length of run1. * @param {number} start2 - First element in run2. * @param {number} length2 - Length of run2. */ mergeHigh(t, r, i, n) { let { compare: a } = this, { array: o } = this, { tmp: u } = this, { tmpIndex: l } = this, c = 0; for (c = 0; c < n; c++) u[c] = o[i + c], l[c] = je[i + c]; let f = t + r - 1, m = n - 1, h = i + n - 1, d = 0, y = 0; if (o[h] = o[f], je[h] = je[f], h--, f--, --r === 0) { for (d = h - (n - 1), c = 0; c < n; c++) o[d + c] = u[c], je[d + c] = l[c]; return; } if (n === 1) { for (h -= r, f -= r, y = h + 1, d = f + 1, c = r - 1; c >= 0; c--) o[y + c] = o[d + c], je[y + c] = je[d + c]; o[h] = u[m], je[h] = l[m]; return; } let { minGallop: p } = this; for (; ; ) { let g = 0, b = 0, D = !1; do if (a(u[m], o[f]) < 0) { if (o[h] = o[f], je[h] = je[f], h--, f--, g++, b = 0, --r === 0) { D = !0; break; } } else if (o[h] = u[m], je[h] = l[m], h--, m--, b++, g = 0, --n === 1) { D = !0; break; } while ((g | b) < p); if (D) break; do { if (g = r - f1( u[m], o, t, r, r - 1, a ), g !== 0) { for (h -= g, f -= g, r -= g, y = h + 1, d = f + 1, c = g - 1; c >= 0; c--) o[y + c] = o[d + c], je[y + c] = je[d + c]; if (r === 0) { D = !0; break; } } if (o[h] = u[m], je[h] = l[m], h--, m--, --n === 1) { D = !0; break; } if (b = n - c1( o[f], u, 0, n, n - 1, a ), b !== 0) { for (h -= b, m -= b, n -= b, y = h + 1, d = m + 1, c = 0; c < b; c++) o[y + c] = u[d + c], je[y + c] = l[d + c]; if (n <= 1) { D = !0; break; } } if (o[h] = o[f], je[h] = je[f], h--, f--, --r === 0) { D = !0; break; } p--; } while (g >= 7 || b >= 7); if (D) break; p < 0 && (p = 0), p += 2; } if (this.minGallop = p, p < 1 && (this.minGallop = 1), n === 1) { for (h -= r, f -= r, y = h + 1, d = f + 1, c = r - 1; c >= 0; c--) o[y + c] = o[d + c], je[y + c] = je[d + c]; o[h] = u[m], je[h] = l[m]; } else { if (n === 0) throw new Error("mergeHigh preconditions were not respected"); for (d = h - (n - 1), c = 0; c < n; c++) o[d + c] = u[c], je[d + c] = l[c]; } } }; function vle(e, t, r, i) { if (!Array.isArray(e)) throw new TypeError( `The "array" argument must be an array. Received ${e}` ); je = []; let { length: n } = e, a = 0; for (; a < n; ) je[a] = a++; t ? typeof t != "function" && (i = r, r = t, t = cR) : t = cR, r || (r = 0), i || (i = n); let o = i - r; if (o < 2) return je; let u = 0; if (o < 32) return u = fR(e, r, i, t), pR(e, r, i, r + u, t), je; let l = new d1(e, t), c = Dle(o); do { if (u = fR(e, r, i, t), u < c) { let f = o; f > c && (f = c), pR(e, r, r + f, r + u, t), u = f; } l.pushRun(r, u), l.mergeRuns(), o -= u, r += u; } while (o !== 0); return l.forceMergeRuns(), je; } s(vle, "sort"); hR.exports = { sort: vle }; }); // ../node_modules/has-own-prop/index.js var gR = E((Rnt, yR) => { "use strict"; var Ele = Object.prototype.hasOwnProperty; yR.exports = (e, t) => Ele.call(e, t); }); // ../node_modules/comment-json/src/common.js var od = E((jnt, _R) => { var m1 = gR(), { isObject: bR, isArray: xle, isString: Sle, isNumber: Tle } = Ar(), y1 = "before", vR = "after-prop", ER = "after-colon", xR = "after-value", SR = "after", TR = "before-all", CR = "after-all", Cle = "\ [", wle = "]", Ale = "{", _le = "}", Ple = ",", Fle = "", Ile = "-", g1 = [ y1, vR, ER, xR, SR ], Ole = [ y1, TR, CR ].map(Symbol.for), wR = ":", DR = void 0, ad = /* @__PURE__ */ s((e, t) => Symbol.for(e + wR + t), "symbol"), ny = /* @__PURE__ */ s((e, t, r) => Object. defineProperty(e, t, { value: r, writable: !0, configurable: !0 }), "define"), h1 = /* @__PURE__ */ s((e, t, r, i, n, a) => { let o = ad(n, i); if (!m1(t, o)) return; let u = r === i ? o : ad(n, r); ny(e, u, t[o]), a && delete t[o]; }, "copy_comments_by_kind"), AR = /* @__PURE__ */ s((e, t, r, i, n) => { g1.forEach((a) => { h1( e, t, r, i, a, n ); }); }, "copy_comments"), kle = /* @__PURE__ */ s((e, t, r) => { t !== r && g1.forEach((i) => { let n = ad(i, r); if (!m1(e, n)) { h1(e, e, r, t, i, !0); return; } let a = e[n]; delete e[n], h1(e, e, r, t, i, !0), ny(e, ad(i, t), a); }); }, "swap_comments"), p1 = /* @__PURE__ */ s((e, t) => { Ole.forEach((r) => { let i = t[r]; i && ny(e, r, i); }); }, "assign_non_prop_comments"), Ble = /* @__PURE__ */ s((e, t, r) => (r.forEach((i) => { !Sle(i) && !Tle(i) || m1(t, i) && (e[i] = t[i], AR(e, t, i, i)); }), e), "assign"); _R.exports = { SYMBOL_PREFIXES: g1, PREFIX_BEFORE: y1, PREFIX_AFTER_PROP: vR, PREFIX_AFTER_COLON: ER, PREFIX_AFTER_VALUE: xR, PREFIX_AFTER: SR, PREFIX_BEFORE_ALL: TR, PREFIX_AFTER_ALL: CR, BRACKET_OPEN: Cle, BRACKET_CLOSE: wle, CURLY_BRACKET_OPEN: Ale, CURLY_BRACKET_CLOSE: _le, COLON: wR, COMMA: Ple, MINUS: Ile, EMPTY: Fle, UNDEFINED: DR, symbol: ad, define: ny, copy_comments: AR, swap_comments: kle, assign_non_prop_comments: p1, assign(e, t, r) { if (!bR(e)) throw new TypeError("Cannot convert undefined or null to object"); if (!bR(t)) return e; if (r === DR) r = Object.keys(t), p1(e, t); else if (xle(r)) r.length === 0 && p1(e, t); else throw new TypeError("keys must be array or undefined"); return Ble(e, t, r); } }; }); // ../node_modules/comment-json/src/array.js var D1 = E((qnt, kR) => { var { isArray: Nle } = Ar(), { sort: Mle } = mR(), { SYMBOL_PREFIXES: Rle, UNDEFINED: PR, symbol: jle, copy_comments: Lle, swap_comments: OR } = od(), qle = /* @__PURE__ */ s((e) => { let { length: t } = e, r = 0, i = t / 2; for (; r < i; r++) OR(e, r, t - r - 1); }, "reverse_comments"), FR = /* @__PURE__ */ s((e, t, r, i, n) => { Lle(e, t, r + i, r, n); }, "move_comment"), _l = /* @__PURE__ */ s((e, t, r, i, n, a) => { if (n > 0) { let u = i; for (; u-- > 0; ) FR(e, t, r + u, n, a); return; } let o = 0; for (; o < i; ) { let u = o++; FR(e, t, r + u, n, a); } }, "move_comments"), IR = /* @__PURE__ */ s((e, t) => { Rle.forEach((r) => { let i = jle(r, t); delete e[i]; }); }, "remove_comments"), Ule = /* @__PURE__ */ s((e, t) => { let r = t; for (; r in e; ) r = e[r]; return r; }, "get_mapped"), b1 = class e extends Array { static { s(this, "CommentArray"); } // - deleteCount + items.length // We should avoid `splice(begin, deleteCount, ...items)`, // because `splice(0, undefined)` is not equivalent to `splice(0)`, // as well as: // - slice splice(...t) { let { length: r } = this, i = super.splice(...t), [n, a, ...o] = t; n < 0 && (n += r), arguments.length === 1 ? a = r - n : a = Math.min(r - n, a); let { length: u } = o, l = u - a, c = n + a, f = r - c; return _l(this, this, c, f, l, !0), i; } slice(...t) { let { length: r } = this, i = super.slice(...t); if (!i.length) return new e(); let [n, a] = t; return a === PR ? a = r : a < 0 && (a += r), n < 0 ? n += r : n === PR && (n = 0), _l(i, this, n, a - n, -n), i; } unshift(...t) { let { length: r } = this, i = super.unshift(...t), { length: n } = t; return n > 0 && _l(this, this, 0, r, n, !0), i; } shift() { let t = super.shift(), { length: r } = this; return IR(this, 0), _l(this, this, 1, r, -1, !0), t; } reverse() { return super.reverse(), qle(this), this; } pop() { let t = super.pop(); return IR(this, this.length), t; } concat(...t) { let { length: r } = this, i = super.concat(...t); return t.length && (_l(i, this, 0, this.length, 0), t.forEach((n) => { let a = r; r += Nle(n) ? n.length : 1, n instanceof e && _l(i, n, 0, n.length, a); })), i; } sort(...t) { let r = Mle( this, ...t.slice(0, 1) ), i = /* @__PURE__ */ Object.create(null); return r.forEach((n, a) => { if (n === a) return; let o = Ule(i, n); o !== a && (i[a] = o, OR(this, a, o)); }), this; } }; kR.exports = { CommentArray: b1 }; }); // ../node_modules/comment-json/src/parse.js var XR = E((Wnt, JR) => { var Wle = oR(), { CommentArray: $le } = D1(), { PREFIX_BEFORE: ay, PREFIX_AFTER_PROP: Vle, PREFIX_AFTER_COLON: Hle, PREFIX_AFTER_VALUE: RR, PREFIX_AFTER: E1, PREFIX_BEFORE_ALL: Kle, PREFIX_AFTER_ALL: zle, BRACKET_OPEN: Gle, BRACKET_CLOSE: BR, CURLY_BRACKET_OPEN: Jle, CURLY_BRACKET_CLOSE: NR, COLON: jR, COMMA: LR, MINUS: MR, EMPTY: Xle, UNDEFINED: ly, define: x1, assign_non_prop_comments: Yle } = od(), qR = /* @__PURE__ */ s((e) => Wle.tokenize(e, { comment: !0, loc: !0 }), "tokenize"), S1 = [], Oa = null, Xn = null, T1 = [], ka, UR = !1, WR = !1, ud = null, ld = null, ti = null, $R, oy = null, VR = /* @__PURE__ */ s( () => { T1.length = S1.length = 0, ld = null, ka = ly; }, "clean"), Zle = /* @__PURE__ */ s(() => { VR(), ud.length = 0, Xn = Oa = ud = ld = ti = oy = null; }, "free"), C1 = /* @__PURE__ */ s((e) => Symbol.for( ka !== ly ? e + jR + ka : e ), "symbolFor"), w1 = /* @__PURE__ */ s((e, t) => oy ? oy(e, t) : t, "transform"), HR = /* @__PURE__ */ s(() => { let e = new SyntaxError(`Unexpected token ${ti.value.slice(0, 1)}`); throw Object.assign(e, ti.loc.start), e; }, "unexpected"), KR = /* @__PURE__ */ s(() => { let e = new SyntaxError("Unexpected end of JSON input"); throw Object.assign(e, ld ? ld.loc.end : { line: 1, column: 0 }), e; }, "unexpected_end"), Ji = /* @__PURE__ */ s(() => { let e = ud[++$R]; WR = ti && e && ti.loc.end.line === e.loc.start.line || !1, ld = ti, ti = e; }, "next"), v1 = /* @__PURE__ */ s(() => (ti || KR(), ti.type === "Punctuator" ? ti.value : ti.type), "type"), Lo = /* @__PURE__ */ s((e) => v1() === e, "is"), sy = /* @__PURE__ */ s((e) => { Lo(e) || HR(); }, "expect"), A1 = /* @__PURE__ */ s((e) => { S1.push(Oa), Oa = e; }, "set_comments_host"), _1 = /* @__PURE__ */ s(() => { Oa = S1.pop(); }, "restore_comments_host"), zR = /* @__PURE__ */ s(() => { if (!Xn) return; let e = []; for (let r of Xn) if (r.inline) e.push(r); else break; let { length: t } = e; t && (t === Xn.length ? Xn = null : Xn.splice(0, t), x1(Oa, C1(E1), e)); }, "assign_after_comments"), Ia = /* @__PURE__ */ s((e) => { Xn && (x1(Oa, C1(e), Xn), Xn = null); }, "assign_comments"), Yn = /* @__PURE__ */ s((e) => { let t = []; for (; ti && (Lo("LineComment") || Lo("BlockComment")); ) { let r = { ...ti, inline: WR }; t.push(r), Ji(); } if (!UR && t.length) { if (e) { x1(Oa, C1(e), t); return; } Xn = t; } }, "parse_comments"), uy = /* @__PURE__ */ s((e, t) => { t && T1.push(ka), ka = e; }, "set_prop"), GR = /* @__PURE__ */ s(() => { ka = T1.pop(); }, "restore_prop"), Qle = /* @__PURE__ */ s(() => { let e = {}; A1(e), uy(ly, !0); let t = !1, r; for (Yn(); !Lo(NR) && !(t && (Ia(RR), sy(LR), Ji(), Yn(), zR(), Lo(NR))); ) t = !0, sy("String"), r = JSON.parse(ti.value), uy(r), Ia(ay), Ji(), Yn(Vle), sy(jR), Ji(), Yn(Hle), e[r] = w1(r, P1()), Yn(); return t && Ia(E1), Ji(), ka = void 0, t || Ia(ay), _1(), GR(), e; }, "parse_object"), ece = /* @__PURE__ */ s(() => { let e = new $le(); A1(e), uy(ly, !0); let t = !1, r = 0; for (Yn(); !Lo(BR) && !(t && (Ia(RR), sy(LR), Ji(), Yn(), zR(), Lo(BR))); ) t = !0, uy(r), Ia(ay), e[r] = w1(r, P1()), r++, Yn(); return t && Ia(E1), Ji(), ka = void 0, t || Ia(ay), _1(), GR(), e; }, "parse_array"); function P1() { let e = v1(); if (e === Jle) return Ji(), Qle(); if (e === Gle) return Ji(), ece(); let t = Xle; e === MR && (Ji(), e = v1(), t = MR); let r; switch (e) { case "String": case "Boolean": case "Null": case "Numeric": return r = ti.value, Ji(), JSON.parse(t + r); default: } } s(P1, "walk"); var tce = /* @__PURE__ */ s((e) => Object(e) === e, "isObject"), rce = /* @__PURE__ */ s((e, t, r) => { VR(), ud = qR(e), oy = t, UR = r, ud.length || KR(), $R = -1, Ji(), A1({}), Yn(Kle); let i = P1(); return Yn(zle), ti && HR(), !r && i !== null && (tce(i) || (i = new Object(i)), Yle(i, Oa)), _1(), i = w1("", i), Zle(), i; }, "parse"); JR.exports = { parse: rce, tokenize: qR }; }); // ../node_modules/repeat-string/index.js var ZR = E((Vnt, YR) => { "use strict"; var Rs = "", F1; YR.exports = ice; function ice(e, t) { if (typeof e != "string") throw new TypeError("expected a string"); if (t === 1) return e; if (t === 2) return e + e; var r = e.length * t; if (F1 !== e || typeof F1 > "u") F1 = e, Rs = ""; else if (Rs.length >= r) return Rs.substr(0, r); for (; r > Rs.length && t > 1; ) t & 1 && (Rs += e), t >>= 1, e += e; return Rs += e, Rs = Rs.substr(0, r), Rs; } s(ice, "repeat"); }); // ../node_modules/comment-json/src/stringify.js var lj = E((Knt, uj) => { var { isArray: k1, isObject: QR, isFunction: O1, isNumber: nce, isString: sce } = Ar(), ace = ZR(), { PREFIX_BEFORE_ALL: oce, PREFIX_BEFORE: ej, PREFIX_AFTER_PROP: uce, PREFIX_AFTER_COLON: lce, PREFIX_AFTER_VALUE: cce, PREFIX_AFTER: B1, PREFIX_AFTER_ALL: fce, BRACKET_OPEN: dce, BRACKET_CLOSE: pce, CURLY_BRACKET_OPEN: hce, CURLY_BRACKET_CLOSE: mce, COLON: yce, COMMA: tj, EMPTY: ki, UNDEFINED: gce } = od(), I1 = /[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, N1 = "\ ", qo = ` `, rj = "null", ij = /* @__PURE__ */ s((e) => `${ej}:${e}`, "BEFORE"), bce = /* @__PURE__ */ s((e) => `${uce}:${e}`, "AFTER_PROP"), Dce = /* @__PURE__ */ s( (e) => `${lce}:${e}`, "AFTER_COLON"), nj = /* @__PURE__ */ s((e) => `${cce}:${e}`, "AFTER_VALUE"), sj = /* @__PURE__ */ s((e) => `${B1}:${e}`, "AFTER"), vce = { "\b": "\\b", " ": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" }, Ece = /* @__PURE__ */ s((e) => (I1.lastIndex = 0, I1.test(e) ? e.replace(I1, (t) => { let r = vce[t]; return typeof r == "string" ? r : t; }) : e), "escape"), aj = /* @__PURE__ */ s((e) => `"${Ece(e)}"`, "quote"), xce = /* @__PURE__ */ s((e, t) => t ? `//${e}` : `/*${e}*/`, "c\ omment_stringify"), Oi = /* @__PURE__ */ s((e, t, r, i) => { let n = e[Symbol.for(t)]; if (!n || !n.length) return ki; let a = !1, o = n.reduce((u, { inline: l, type: c, value: f }) => { let m = l ? N1 : qo + r; return a = c === "LineComment", u + m + xce(f, a); }, ki); return i || a ? o + qo + r : o; }, "process_comments"), Pl = null, fd = ki, Sce = /* @__PURE__ */ s(() => { Pl = null, fd = ki; }, "clean"), cd = /* @__PURE__ */ s((e, t, r) => e ? t ? e + t.trim() + qo + r : e.trimRight() + qo + r : t ? t.trimRight() + qo + r : ki, "join"), oj = /* @__PURE__ */ s((e, t, r) => { let i = Oi(t, ej, r + fd, !0); return cd(i, e, r); }, "join_content"), Tce = /* @__PURE__ */ s((e, t) => { let r = t + fd, { length: i } = e, n = ki, a = ki; for (let o = 0; o < i; o++) { o !== 0 && (n += tj); let u = cd( a, Oi(e, ij(o), r), r ); n += u || qo + r, n += M1(o, e, r) || rj, n += Oi(e, nj(o), r), a = Oi(e, sj(o), r); } return n += cd( a, Oi(e, B1, r), r ), dce + oj(n, e, t) + pce; }, "array_stringify"), Cce = /* @__PURE__ */ s((e, t) => { if (!e) return "null"; let r = t + fd, i = ki, n = ki, a = !0, o = k1(Pl) ? Pl : Object.keys(e), u = /* @__PURE__ */ s((l) => { let c = M1(l, e, r); if (c === gce) return; a || (i += tj), a = !1; let f = cd( n, Oi(e, ij(l), r), r ); i += f || qo + r, i += aj(l) + Oi(e, bce(l), r) + yce + Oi(e, Dce(l), r) + N1 + c + Oi(e, nj(l), r), n = Oi(e, sj(l), r); }, "iteratee"); return o.forEach(u), i += cd( n, Oi(e, B1, r), r ), hce + oj(i, e, t) + mce; }, "object_stringify"); function M1(e, t, r) { let i = t[e]; switch (QR(i) && O1(i.toJSON) && (i = i.toJSON(e)), O1(Pl) && (i = Pl.call(t, e, i)), typeof i) { case "string": return aj(i); case "number": return Number.isFinite(i) ? String(i) : rj; case "boolean": case "null": return String(i); // If the type is 'object', we might be dealing with an object or an array or // null. case "object": return k1(i) ? Tce(i, r) : Cce(i, r); // undefined default: } } s(M1, "stringify"); var wce = /* @__PURE__ */ s((e) => sce(e) ? e : nce(e) ? ace(N1, e) : ki, "get_indent"), { toString: Ace } = Object.prototype, _ce = [ "[object Number]", "[object String]", "[object Boolean]" ], Pce = /* @__PURE__ */ s((e) => { if (typeof e != "object") return !1; let t = Ace.call(e); return _ce.includes(t); }, "is_primitive_object"); uj.exports = (e, t, r) => { let i = wce(r); if (!i) return JSON.stringify(e, t); !O1(t) && !k1(t) && (t = null), Pl = t, fd = i; let n = Pce(e) ? JSON.stringify(e) : M1("", { "": e }, ki); return Sce(), QR(e) ? Oi(e, oce, ki).trimLeft() + n + Oi(e, fce, ki).trimRight() : n; }; }); // ../node_modules/comment-json/src/index.js var fj = E((Gnt, cj) => { var { parse: Fce, tokenize: Ice } = XR(), Oce = lj(), { CommentArray: kce } = D1(), { assign: Bce } = od(); cj.exports = { parse: Fce, stringify: Oce, tokenize: Ice, CommentArray: kce, assign: Bce }; }); // ../node_modules/@babel/types/lib/utils/shallowEqual.js var cy = E((j1) => { "use strict"; Object.defineProperty(j1, "__esModule", { value: !0 }); j1.default = qce; function qce(e, t) { let r = Object.keys(t); for (let i of r) if (e[i] !== t[i]) return !1; return !0; } s(qce, "shallowEqual"); }); // ../node_modules/@babel/types/lib/utils/deprecationWarning.js var pd = E((L1) => { "use strict"; Object.defineProperty(L1, "__esModule", { value: !0 }); L1.default = Uce; var hj = /* @__PURE__ */ new Set(); function Uce(e, t, r = "") { if (hj.has(e)) return; hj.add(e); let { internal: i, trace: n } = Wce(1, 2); i || console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\` ${n}`); } s(Uce, "deprecationWarning"); function Wce(e, t) { let { stackTraceLimit: r, prepareStackTrace: i } = Error, n; if (Error.stackTraceLimit = 1 + e + t, Error.prepareStackTrace = function(o, u) { n = u; }, new Error().stack, Error.stackTraceLimit = r, Error.prepareStackTrace = i, !n) return { internal: !1, trace: "" }; let a = n.slice(1 + e, 1 + e + t); return { internal: /[\\/]@babel[\\/]/.test(a[1].getFileName()), trace: a.map((o) => ` at ${o}`).join(` `) }; } s(Wce, "captureShortStackTrace"); }); // ../node_modules/@babel/types/lib/validators/generated/index.js var cr = E((w) => { "use strict"; Object.defineProperty(w, "__esModule", { value: !0 }); w.isAccessor = nye; w.isAnyTypeAnnotation = Tde; w.isArgumentPlaceholder = Qpe; w.isArrayExpression = $ce; w.isArrayPattern = Ufe; w.isArrayTypeAnnotation = Cde; w.isArrowFunctionExpression = Wfe; w.isAssignmentExpression = Vce; w.isAssignmentPattern = qfe; w.isAwaitExpression = fde; w.isBigIntLiteral = pde; w.isBinary = Ame; w.isBinaryExpression = Hce; w.isBindExpression = ehe; w.isBlock = Fme; w.isBlockParent = Pme; w.isBlockStatement = Jce; w.isBooleanLiteral = yfe; w.isBooleanLiteralTypeAnnotation = Ade; w.isBooleanTypeAnnotation = wde; w.isBreakStatement = Xce; w.isCallExpression = Yce; w.isCatchClause = Zce; w.isClass = tye; w.isClassAccessorProperty = bde; w.isClassBody = $fe; w.isClassDeclaration = Hfe; w.isClassExpression = Vfe; w.isClassImplements = Pde; w.isClassMethod = ide; w.isClassPrivateMethod = vde; w.isClassPrivateProperty = Dde; w.isClassProperty = gde; w.isCompletionStatement = kme; w.isConditional = Bme; w.isConditionalExpression = Qce; w.isContinueStatement = efe; w.isDebuggerStatement = tfe; w.isDecimalLiteral = ahe; w.isDeclaration = $me; w.isDeclareClass = Fde; w.isDeclareExportAllDeclaration = Lde; w.isDeclareExportDeclaration = jde; w.isDeclareFunction = Ide; w.isDeclareInterface = Ode; w.isDeclareModule = kde; w.isDeclareModuleExports = Bde; w.isDeclareOpaqueType = Mde; w.isDeclareTypeAlias = Nde; w.isDeclareVariable = Rde; w.isDeclaredPredicate = qde; w.isDecorator = the; w.isDirective = zce; w.isDirectiveLiteral = Gce; w.isDoExpression = rhe; w.isDoWhileStatement = rfe; w.isEmptyStatement = ife; w.isEmptyTypeAnnotation = Yde; w.isEnumBody = fye; w.isEnumBooleanBody = Cpe; w.isEnumBooleanMember = Ppe; w.isEnumDeclaration = Tpe; w.isEnumDefaultedMember = Ope; w.isEnumMember = dye; w.isEnumNumberBody = wpe; w.isEnumNumberMember = Fpe; w.isEnumStringBody = Ape; w.isEnumStringMember = Ipe; w.isEnumSymbolBody = _pe; w.isExistsTypeAnnotation = Ude; w.isExportAllDeclaration = Kfe; w.isExportDeclaration = rye; w.isExportDefaultDeclaration = zfe; w.isExportDefaultSpecifier = ihe; w.isExportNamedDeclaration = Gfe; w.isExportNamespaceSpecifier = hde; w.isExportSpecifier = Jfe; w.isExpression = wme; w.isExpressionStatement = nfe; w.isExpressionWrapper = Rme; w.isFile = sfe; w.isFlow = aye; w.isFlowBaseAnnotation = uye; w.isFlowDeclaration = lye; w.isFlowPredicate = cye; w.isFlowType = oye; w.isFor = jme; w.isForInStatement = afe; w.isForOfStatement = Xfe; w.isForStatement = ofe; w.isForXStatement = Lme; w.isFunction = qme; w.isFunctionDeclaration = ufe; w.isFunctionExpression = lfe; w.isFunctionParent = Ume; w.isFunctionTypeAnnotation = Wde; w.isFunctionTypeParam = $de; w.isGenericTypeAnnotation = Vde; w.isIdentifier = cfe; w.isIfStatement = ffe; w.isImmutable = Gme; w.isImport = dde; w.isImportAttribute = Sde; w.isImportDeclaration = Yfe; w.isImportDefaultSpecifier = Zfe; w.isImportExpression = tde; w.isImportNamespaceSpecifier = Qfe; w.isImportOrExportDeclaration = mj; w.isImportSpecifier = ede; w.isIndexedAccessType = kpe; w.isInferredPredicate = Hde; w.isInterfaceDeclaration = zde; w.isInterfaceExtends = Kde; w.isInterfaceTypeAnnotation = Gde; w.isInterpreterDirective = Kce; w.isIntersectionTypeAnnotation = Jde; w.isJSX = pye; w.isJSXAttribute = Npe; w.isJSXClosingElement = Mpe; w.isJSXClosingFragment = Jpe; w.isJSXElement = Rpe; w.isJSXEmptyExpression = jpe; w.isJSXExpressionContainer = Lpe; w.isJSXFragment = zpe; w.isJSXIdentifier = Upe; w.isJSXMemberExpression = Wpe; w.isJSXNamespacedName = $pe; w.isJSXOpeningElement = Vpe; w.isJSXOpeningFragment = Gpe; w.isJSXSpreadAttribute = Hpe; w.isJSXSpreadChild = qpe; w.isJSXText = Kpe; w.isLVal = Hme; w.isLabeledStatement = dfe; w.isLiteral = zme; w.isLogicalExpression = bfe; w.isLoop = Nme; w.isMemberExpression = Dfe; w.isMetaProperty = rde; w.isMethod = Xme; w.isMiscellaneous = hye; w.isMixedTypeAnnotation = Xde; w.isModuleDeclaration = Sye; w.isModuleExpression = ohe; w.isModuleSpecifier = iye; w.isNewExpression = vfe; w.isNoop = Xpe; w.isNullLiteral = mfe; w.isNullLiteralTypeAnnotation = _de; w.isNullableTypeAnnotation = Zde; w.isNumberLiteral = Dye; w.isNumberLiteralTypeAnnotation = Qde; w.isNumberTypeAnnotation = epe; w.isNumericLiteral = hfe; w.isObjectExpression = xfe; w.isObjectMember = Yme; w.isObjectMethod = Sfe; w.isObjectPattern = nde; w.isObjectProperty = Tfe; w.isObjectTypeAnnotation = tpe; w.isObjectTypeCallProperty = ipe; w.isObjectTypeIndexer = npe; w.isObjectTypeInternalSlot = rpe; w.isObjectTypeProperty = spe; w.isObjectTypeSpreadProperty = ape; w.isOpaqueType = ope; w.isOptionalCallExpression = yde; w.isOptionalIndexedAccessType = Bpe; w.isOptionalMemberExpression = mde; w.isParenthesizedExpression = _fe; w.isPattern = eye; w.isPatternLike = Vme; w.isPipelineBareFunction = che; w.isPipelinePrimaryTopicReference = fhe; w.isPipelineTopicExpression = lhe; w.isPlaceholder = Ype; w.isPrivate = sye; w.isPrivateName = Ede; w.isProgram = Efe; w.isProperty = Zme; w.isPureish = Wme; w.isQualifiedTypeIdentifier = upe; w.isRecordExpression = nhe; w.isRegExpLiteral = gfe; w.isRegexLiteral = vye; w.isRestElement = Cfe; w.isRestProperty = Eye; w.isReturnStatement = wfe; w.isScopable = _me; w.isSequenceExpression = Afe; w.isSpreadElement = sde; w.isSpreadProperty = xye; w.isStandardized = Cme; w.isStatement = Ime; w.isStaticBlock = xde; w.isStringLiteral = pfe; w.isStringLiteralTypeAnnotation = lpe; w.isStringTypeAnnotation = cpe; w.isSuper = ade; w.isSwitchCase = Pfe; w.isSwitchStatement = Ffe; w.isSymbolTypeAnnotation = fpe; w.isTSAnyKeyword = Ehe; w.isTSArrayType = Uhe; w.isTSAsExpression = ome; w.isTSBaseType = bye; w.isTSBigIntKeyword = She; w.isTSBooleanKeyword = xhe; w.isTSCallSignatureDeclaration = yhe; w.isTSConditionalType = Ghe; w.isTSConstructSignatureDeclaration = ghe; w.isTSConstructorType = Mhe; w.isTSDeclareFunction = phe; w.isTSDeclareMethod = hhe; w.isTSEntityName = Kme; w.isTSEnumBody = cme; w.isTSEnumDeclaration = fme; w.isTSEnumMember = dme; w.isTSExportAssignment = Dme; w.isTSExpressionWithTypeArguments = rme; w.isTSExternalModuleReference = gme; w.isTSFunctionType = Nhe; w.isTSImportEqualsDeclaration = yme; w.isTSImportType = mme; w.isTSIndexSignature = vhe; w.isTSIndexedAccessType = Zhe; w.isTSInferType = Jhe; w.isTSInstantiationExpression = ame; w.isTSInterfaceBody = nme; w.isTSInterfaceDeclaration = ime; w.isTSIntersectionType = zhe; w.isTSIntrinsicKeyword = The; w.isTSLiteralType = tme; w.isTSMappedType = Qhe; w.isTSMethodSignature = Dhe; w.isTSModuleBlock = hme; w.isTSModuleDeclaration = pme; w.isTSNamedTupleMember = Hhe; w.isTSNamespaceExportDeclaration = vme; w.isTSNeverKeyword = Che; w.isTSNonNullExpression = bme; w.isTSNullKeyword = whe; w.isTSNumberKeyword = Ahe; w.isTSObjectKeyword = _he; w.isTSOptionalType = $he; w.isTSParameterProperty = dhe; w.isTSParenthesizedType = Xhe; w.isTSPropertySignature = bhe; w.isTSQualifiedName = mhe; w.isTSRestType = Vhe; w.isTSSatisfiesExpression = ume; w.isTSStringKeyword = Phe; w.isTSSymbolKeyword = Fhe; w.isTSTemplateLiteralType = eme; w.isTSThisType = Bhe; w.isTSTupleType = Whe; w.isTSType = gye; w.isTSTypeAliasDeclaration = sme; w.isTSTypeAnnotation = Eme; w.isTSTypeAssertion = lme; w.isTSTypeElement = yye; w.isTSTypeLiteral = qhe; w.isTSTypeOperator = Yhe; w.isTSTypeParameter = Tme; w.isTSTypeParameterDeclaration = Sme; w.isTSTypeParameterInstantiation = xme; w.isTSTypePredicate = jhe; w.isTSTypeQuery = Lhe; w.isTSTypeReference = Rhe; w.isTSUndefinedKeyword = Ihe; w.isTSUnionType = Khe; w.isTSUnknownKeyword = Ohe; w.isTSVoidKeyword = khe; w.isTaggedTemplateExpression = ode; w.isTemplateElement = ude; w.isTemplateLiteral = lde; w.isTerminatorless = Ome; w.isThisExpression = Ife; w.isThisTypeAnnotation = dpe; w.isThrowStatement = Ofe; w.isTopicReference = uhe; w.isTryStatement = kfe; w.isTupleExpression = she; w.isTupleTypeAnnotation = ppe; w.isTypeAlias = mpe; w.isTypeAnnotation = ype; w.isTypeCastExpression = gpe; w.isTypeParameter = bpe; w.isTypeParameterDeclaration = Dpe; w.isTypeParameterInstantiation = vpe; w.isTypeScript = mye; w.isTypeofTypeAnnotation = hpe; w.isUnaryExpression = Bfe; w.isUnaryLike = Qme; w.isUnionTypeAnnotation = Epe; w.isUpdateExpression = Nfe; w.isUserWhitespacable = Jme; w.isV8IntrinsicIdentifier = Zpe; w.isVariableDeclaration = Mfe; w.isVariableDeclarator = Rfe; w.isVariance = xpe; w.isVoidTypeAnnotation = Spe; w.isWhile = Mme; w.isWhileStatement = jfe; w.isWithStatement = Lfe; w.isYieldExpression = cde; var P = cy(), hd = pd(); function $ce(e, t) { return !e || e.type !== "ArrayExpression" ? !1 : t == null || (0, P.default)(e, t); } s($ce, "isArrayExpression"); function Vce(e, t) { return !e || e.type !== "AssignmentExpression" ? !1 : t == null || (0, P.default)(e, t); } s(Vce, "isAssignmentExpression"); function Hce(e, t) { return !e || e.type !== "BinaryExpression" ? !1 : t == null || (0, P.default)(e, t); } s(Hce, "isBinaryExpression"); function Kce(e, t) { return !e || e.type !== "InterpreterDirective" ? !1 : t == null || (0, P.default)(e, t); } s(Kce, "isInterpreterDirective"); function zce(e, t) { return !e || e.type !== "Directive" ? !1 : t == null || (0, P.default)(e, t); } s(zce, "isDirective"); function Gce(e, t) { return !e || e.type !== "DirectiveLiteral" ? !1 : t == null || (0, P.default)(e, t); } s(Gce, "isDirectiveLiteral"); function Jce(e, t) { return !e || e.type !== "BlockStatement" ? !1 : t == null || (0, P.default)(e, t); } s(Jce, "isBlockStatement"); function Xce(e, t) { return !e || e.type !== "BreakStatement" ? !1 : t == null || (0, P.default)(e, t); } s(Xce, "isBreakStatement"); function Yce(e, t) { return !e || e.type !== "CallExpression" ? !1 : t == null || (0, P.default)(e, t); } s(Yce, "isCallExpression"); function Zce(e, t) { return !e || e.type !== "CatchClause" ? !1 : t == null || (0, P.default)(e, t); } s(Zce, "isCatchClause"); function Qce(e, t) { return !e || e.type !== "ConditionalExpression" ? !1 : t == null || (0, P.default)(e, t); } s(Qce, "isConditionalExpression"); function efe(e, t) { return !e || e.type !== "ContinueStatement" ? !1 : t == null || (0, P.default)(e, t); } s(efe, "isContinueStatement"); function tfe(e, t) { return !e || e.type !== "DebuggerStatement" ? !1 : t == null || (0, P.default)(e, t); } s(tfe, "isDebuggerStatement"); function rfe(e, t) { return !e || e.type !== "DoWhileStatement" ? !1 : t == null || (0, P.default)(e, t); } s(rfe, "isDoWhileStatement"); function ife(e, t) { return !e || e.type !== "EmptyStatement" ? !1 : t == null || (0, P.default)(e, t); } s(ife, "isEmptyStatement"); function nfe(e, t) { return !e || e.type !== "ExpressionStatement" ? !1 : t == null || (0, P.default)(e, t); } s(nfe, "isExpressionStatement"); function sfe(e, t) { return !e || e.type !== "File" ? !1 : t == null || (0, P.default)(e, t); } s(sfe, "isFile"); function afe(e, t) { return !e || e.type !== "ForInStatement" ? !1 : t == null || (0, P.default)(e, t); } s(afe, "isForInStatement"); function ofe(e, t) { return !e || e.type !== "ForStatement" ? !1 : t == null || (0, P.default)(e, t); } s(ofe, "isForStatement"); function ufe(e, t) { return !e || e.type !== "FunctionDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(ufe, "isFunctionDeclaration"); function lfe(e, t) { return !e || e.type !== "FunctionExpression" ? !1 : t == null || (0, P.default)(e, t); } s(lfe, "isFunctionExpression"); function cfe(e, t) { return !e || e.type !== "Identifier" ? !1 : t == null || (0, P.default)(e, t); } s(cfe, "isIdentifier"); function ffe(e, t) { return !e || e.type !== "IfStatement" ? !1 : t == null || (0, P.default)(e, t); } s(ffe, "isIfStatement"); function dfe(e, t) { return !e || e.type !== "LabeledStatement" ? !1 : t == null || (0, P.default)(e, t); } s(dfe, "isLabeledStatement"); function pfe(e, t) { return !e || e.type !== "StringLiteral" ? !1 : t == null || (0, P.default)(e, t); } s(pfe, "isStringLiteral"); function hfe(e, t) { return !e || e.type !== "NumericLiteral" ? !1 : t == null || (0, P.default)(e, t); } s(hfe, "isNumericLiteral"); function mfe(e, t) { return !e || e.type !== "NullLiteral" ? !1 : t == null || (0, P.default)(e, t); } s(mfe, "isNullLiteral"); function yfe(e, t) { return !e || e.type !== "BooleanLiteral" ? !1 : t == null || (0, P.default)(e, t); } s(yfe, "isBooleanLiteral"); function gfe(e, t) { return !e || e.type !== "RegExpLiteral" ? !1 : t == null || (0, P.default)(e, t); } s(gfe, "isRegExpLiteral"); function bfe(e, t) { return !e || e.type !== "LogicalExpression" ? !1 : t == null || (0, P.default)(e, t); } s(bfe, "isLogicalExpression"); function Dfe(e, t) { return !e || e.type !== "MemberExpression" ? !1 : t == null || (0, P.default)(e, t); } s(Dfe, "isMemberExpression"); function vfe(e, t) { return !e || e.type !== "NewExpression" ? !1 : t == null || (0, P.default)(e, t); } s(vfe, "isNewExpression"); function Efe(e, t) { return !e || e.type !== "Program" ? !1 : t == null || (0, P.default)(e, t); } s(Efe, "isProgram"); function xfe(e, t) { return !e || e.type !== "ObjectExpression" ? !1 : t == null || (0, P.default)(e, t); } s(xfe, "isObjectExpression"); function Sfe(e, t) { return !e || e.type !== "ObjectMethod" ? !1 : t == null || (0, P.default)(e, t); } s(Sfe, "isObjectMethod"); function Tfe(e, t) { return !e || e.type !== "ObjectProperty" ? !1 : t == null || (0, P.default)(e, t); } s(Tfe, "isObjectProperty"); function Cfe(e, t) { return !e || e.type !== "RestElement" ? !1 : t == null || (0, P.default)(e, t); } s(Cfe, "isRestElement"); function wfe(e, t) { return !e || e.type !== "ReturnStatement" ? !1 : t == null || (0, P.default)(e, t); } s(wfe, "isReturnStatement"); function Afe(e, t) { return !e || e.type !== "SequenceExpression" ? !1 : t == null || (0, P.default)(e, t); } s(Afe, "isSequenceExpression"); function _fe(e, t) { return !e || e.type !== "ParenthesizedExpression" ? !1 : t == null || (0, P.default)(e, t); } s(_fe, "isParenthesizedExpression"); function Pfe(e, t) { return !e || e.type !== "SwitchCase" ? !1 : t == null || (0, P.default)(e, t); } s(Pfe, "isSwitchCase"); function Ffe(e, t) { return !e || e.type !== "SwitchStatement" ? !1 : t == null || (0, P.default)(e, t); } s(Ffe, "isSwitchStatement"); function Ife(e, t) { return !e || e.type !== "ThisExpression" ? !1 : t == null || (0, P.default)(e, t); } s(Ife, "isThisExpression"); function Ofe(e, t) { return !e || e.type !== "ThrowStatement" ? !1 : t == null || (0, P.default)(e, t); } s(Ofe, "isThrowStatement"); function kfe(e, t) { return !e || e.type !== "TryStatement" ? !1 : t == null || (0, P.default)(e, t); } s(kfe, "isTryStatement"); function Bfe(e, t) { return !e || e.type !== "UnaryExpression" ? !1 : t == null || (0, P.default)(e, t); } s(Bfe, "isUnaryExpression"); function Nfe(e, t) { return !e || e.type !== "UpdateExpression" ? !1 : t == null || (0, P.default)(e, t); } s(Nfe, "isUpdateExpression"); function Mfe(e, t) { return !e || e.type !== "VariableDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(Mfe, "isVariableDeclaration"); function Rfe(e, t) { return !e || e.type !== "VariableDeclarator" ? !1 : t == null || (0, P.default)(e, t); } s(Rfe, "isVariableDeclarator"); function jfe(e, t) { return !e || e.type !== "WhileStatement" ? !1 : t == null || (0, P.default)(e, t); } s(jfe, "isWhileStatement"); function Lfe(e, t) { return !e || e.type !== "WithStatement" ? !1 : t == null || (0, P.default)(e, t); } s(Lfe, "isWithStatement"); function qfe(e, t) { return !e || e.type !== "AssignmentPattern" ? !1 : t == null || (0, P.default)(e, t); } s(qfe, "isAssignmentPattern"); function Ufe(e, t) { return !e || e.type !== "ArrayPattern" ? !1 : t == null || (0, P.default)(e, t); } s(Ufe, "isArrayPattern"); function Wfe(e, t) { return !e || e.type !== "ArrowFunctionExpression" ? !1 : t == null || (0, P.default)(e, t); } s(Wfe, "isArrowFunctionExpression"); function $fe(e, t) { return !e || e.type !== "ClassBody" ? !1 : t == null || (0, P.default)(e, t); } s($fe, "isClassBody"); function Vfe(e, t) { return !e || e.type !== "ClassExpression" ? !1 : t == null || (0, P.default)(e, t); } s(Vfe, "isClassExpression"); function Hfe(e, t) { return !e || e.type !== "ClassDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(Hfe, "isClassDeclaration"); function Kfe(e, t) { return !e || e.type !== "ExportAllDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(Kfe, "isExportAllDeclaration"); function zfe(e, t) { return !e || e.type !== "ExportDefaultDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(zfe, "isExportDefaultDeclaration"); function Gfe(e, t) { return !e || e.type !== "ExportNamedDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(Gfe, "isExportNamedDeclaration"); function Jfe(e, t) { return !e || e.type !== "ExportSpecifier" ? !1 : t == null || (0, P.default)(e, t); } s(Jfe, "isExportSpecifier"); function Xfe(e, t) { return !e || e.type !== "ForOfStatement" ? !1 : t == null || (0, P.default)(e, t); } s(Xfe, "isForOfStatement"); function Yfe(e, t) { return !e || e.type !== "ImportDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(Yfe, "isImportDeclaration"); function Zfe(e, t) { return !e || e.type !== "ImportDefaultSpecifier" ? !1 : t == null || (0, P.default)(e, t); } s(Zfe, "isImportDefaultSpecifier"); function Qfe(e, t) { return !e || e.type !== "ImportNamespaceSpecifier" ? !1 : t == null || (0, P.default)(e, t); } s(Qfe, "isImportNamespaceSpecifier"); function ede(e, t) { return !e || e.type !== "ImportSpecifier" ? !1 : t == null || (0, P.default)(e, t); } s(ede, "isImportSpecifier"); function tde(e, t) { return !e || e.type !== "ImportExpression" ? !1 : t == null || (0, P.default)(e, t); } s(tde, "isImportExpression"); function rde(e, t) { return !e || e.type !== "MetaProperty" ? !1 : t == null || (0, P.default)(e, t); } s(rde, "isMetaProperty"); function ide(e, t) { return !e || e.type !== "ClassMethod" ? !1 : t == null || (0, P.default)(e, t); } s(ide, "isClassMethod"); function nde(e, t) { return !e || e.type !== "ObjectPattern" ? !1 : t == null || (0, P.default)(e, t); } s(nde, "isObjectPattern"); function sde(e, t) { return !e || e.type !== "SpreadElement" ? !1 : t == null || (0, P.default)(e, t); } s(sde, "isSpreadElement"); function ade(e, t) { return !e || e.type !== "Super" ? !1 : t == null || (0, P.default)(e, t); } s(ade, "isSuper"); function ode(e, t) { return !e || e.type !== "TaggedTemplateExpression" ? !1 : t == null || (0, P.default)(e, t); } s(ode, "isTaggedTemplateExpression"); function ude(e, t) { return !e || e.type !== "TemplateElement" ? !1 : t == null || (0, P.default)(e, t); } s(ude, "isTemplateElement"); function lde(e, t) { return !e || e.type !== "TemplateLiteral" ? !1 : t == null || (0, P.default)(e, t); } s(lde, "isTemplateLiteral"); function cde(e, t) { return !e || e.type !== "YieldExpression" ? !1 : t == null || (0, P.default)(e, t); } s(cde, "isYieldExpression"); function fde(e, t) { return !e || e.type !== "AwaitExpression" ? !1 : t == null || (0, P.default)(e, t); } s(fde, "isAwaitExpression"); function dde(e, t) { return !e || e.type !== "Import" ? !1 : t == null || (0, P.default)(e, t); } s(dde, "isImport"); function pde(e, t) { return !e || e.type !== "BigIntLiteral" ? !1 : t == null || (0, P.default)(e, t); } s(pde, "isBigIntLiteral"); function hde(e, t) { return !e || e.type !== "ExportNamespaceSpecifier" ? !1 : t == null || (0, P.default)(e, t); } s(hde, "isExportNamespaceSpecifier"); function mde(e, t) { return !e || e.type !== "OptionalMemberExpression" ? !1 : t == null || (0, P.default)(e, t); } s(mde, "isOptionalMemberExpression"); function yde(e, t) { return !e || e.type !== "OptionalCallExpression" ? !1 : t == null || (0, P.default)(e, t); } s(yde, "isOptionalCallExpression"); function gde(e, t) { return !e || e.type !== "ClassProperty" ? !1 : t == null || (0, P.default)(e, t); } s(gde, "isClassProperty"); function bde(e, t) { return !e || e.type !== "ClassAccessorProperty" ? !1 : t == null || (0, P.default)(e, t); } s(bde, "isClassAccessorProperty"); function Dde(e, t) { return !e || e.type !== "ClassPrivateProperty" ? !1 : t == null || (0, P.default)(e, t); } s(Dde, "isClassPrivateProperty"); function vde(e, t) { return !e || e.type !== "ClassPrivateMethod" ? !1 : t == null || (0, P.default)(e, t); } s(vde, "isClassPrivateMethod"); function Ede(e, t) { return !e || e.type !== "PrivateName" ? !1 : t == null || (0, P.default)(e, t); } s(Ede, "isPrivateName"); function xde(e, t) { return !e || e.type !== "StaticBlock" ? !1 : t == null || (0, P.default)(e, t); } s(xde, "isStaticBlock"); function Sde(e, t) { return !e || e.type !== "ImportAttribute" ? !1 : t == null || (0, P.default)(e, t); } s(Sde, "isImportAttribute"); function Tde(e, t) { return !e || e.type !== "AnyTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Tde, "isAnyTypeAnnotation"); function Cde(e, t) { return !e || e.type !== "ArrayTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Cde, "isArrayTypeAnnotation"); function wde(e, t) { return !e || e.type !== "BooleanTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(wde, "isBooleanTypeAnnotation"); function Ade(e, t) { return !e || e.type !== "BooleanLiteralTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Ade, "isBooleanLiteralTypeAnnotation"); function _de(e, t) { return !e || e.type !== "NullLiteralTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(_de, "isNullLiteralTypeAnnotation"); function Pde(e, t) { return !e || e.type !== "ClassImplements" ? !1 : t == null || (0, P.default)(e, t); } s(Pde, "isClassImplements"); function Fde(e, t) { return !e || e.type !== "DeclareClass" ? !1 : t == null || (0, P.default)(e, t); } s(Fde, "isDeclareClass"); function Ide(e, t) { return !e || e.type !== "DeclareFunction" ? !1 : t == null || (0, P.default)(e, t); } s(Ide, "isDeclareFunction"); function Ode(e, t) { return !e || e.type !== "DeclareInterface" ? !1 : t == null || (0, P.default)(e, t); } s(Ode, "isDeclareInterface"); function kde(e, t) { return !e || e.type !== "DeclareModule" ? !1 : t == null || (0, P.default)(e, t); } s(kde, "isDeclareModule"); function Bde(e, t) { return !e || e.type !== "DeclareModuleExports" ? !1 : t == null || (0, P.default)(e, t); } s(Bde, "isDeclareModuleExports"); function Nde(e, t) { return !e || e.type !== "DeclareTypeAlias" ? !1 : t == null || (0, P.default)(e, t); } s(Nde, "isDeclareTypeAlias"); function Mde(e, t) { return !e || e.type !== "DeclareOpaqueType" ? !1 : t == null || (0, P.default)(e, t); } s(Mde, "isDeclareOpaqueType"); function Rde(e, t) { return !e || e.type !== "DeclareVariable" ? !1 : t == null || (0, P.default)(e, t); } s(Rde, "isDeclareVariable"); function jde(e, t) { return !e || e.type !== "DeclareExportDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(jde, "isDeclareExportDeclaration"); function Lde(e, t) { return !e || e.type !== "DeclareExportAllDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(Lde, "isDeclareExportAllDeclaration"); function qde(e, t) { return !e || e.type !== "DeclaredPredicate" ? !1 : t == null || (0, P.default)(e, t); } s(qde, "isDeclaredPredicate"); function Ude(e, t) { return !e || e.type !== "ExistsTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Ude, "isExistsTypeAnnotation"); function Wde(e, t) { return !e || e.type !== "FunctionTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Wde, "isFunctionTypeAnnotation"); function $de(e, t) { return !e || e.type !== "FunctionTypeParam" ? !1 : t == null || (0, P.default)(e, t); } s($de, "isFunctionTypeParam"); function Vde(e, t) { return !e || e.type !== "GenericTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Vde, "isGenericTypeAnnotation"); function Hde(e, t) { return !e || e.type !== "InferredPredicate" ? !1 : t == null || (0, P.default)(e, t); } s(Hde, "isInferredPredicate"); function Kde(e, t) { return !e || e.type !== "InterfaceExtends" ? !1 : t == null || (0, P.default)(e, t); } s(Kde, "isInterfaceExtends"); function zde(e, t) { return !e || e.type !== "InterfaceDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(zde, "isInterfaceDeclaration"); function Gde(e, t) { return !e || e.type !== "InterfaceTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Gde, "isInterfaceTypeAnnotation"); function Jde(e, t) { return !e || e.type !== "IntersectionTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Jde, "isIntersectionTypeAnnotation"); function Xde(e, t) { return !e || e.type !== "MixedTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Xde, "isMixedTypeAnnotation"); function Yde(e, t) { return !e || e.type !== "EmptyTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Yde, "isEmptyTypeAnnotation"); function Zde(e, t) { return !e || e.type !== "NullableTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Zde, "isNullableTypeAnnotation"); function Qde(e, t) { return !e || e.type !== "NumberLiteralTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Qde, "isNumberLiteralTypeAnnotation"); function epe(e, t) { return !e || e.type !== "NumberTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(epe, "isNumberTypeAnnotation"); function tpe(e, t) { return !e || e.type !== "ObjectTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(tpe, "isObjectTypeAnnotation"); function rpe(e, t) { return !e || e.type !== "ObjectTypeInternalSlot" ? !1 : t == null || (0, P.default)(e, t); } s(rpe, "isObjectTypeInternalSlot"); function ipe(e, t) { return !e || e.type !== "ObjectTypeCallProperty" ? !1 : t == null || (0, P.default)(e, t); } s(ipe, "isObjectTypeCallProperty"); function npe(e, t) { return !e || e.type !== "ObjectTypeIndexer" ? !1 : t == null || (0, P.default)(e, t); } s(npe, "isObjectTypeIndexer"); function spe(e, t) { return !e || e.type !== "ObjectTypeProperty" ? !1 : t == null || (0, P.default)(e, t); } s(spe, "isObjectTypeProperty"); function ape(e, t) { return !e || e.type !== "ObjectTypeSpreadProperty" ? !1 : t == null || (0, P.default)(e, t); } s(ape, "isObjectTypeSpreadProperty"); function ope(e, t) { return !e || e.type !== "OpaqueType" ? !1 : t == null || (0, P.default)(e, t); } s(ope, "isOpaqueType"); function upe(e, t) { return !e || e.type !== "QualifiedTypeIdentifier" ? !1 : t == null || (0, P.default)(e, t); } s(upe, "isQualifiedTypeIdentifier"); function lpe(e, t) { return !e || e.type !== "StringLiteralTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(lpe, "isStringLiteralTypeAnnotation"); function cpe(e, t) { return !e || e.type !== "StringTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(cpe, "isStringTypeAnnotation"); function fpe(e, t) { return !e || e.type !== "SymbolTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(fpe, "isSymbolTypeAnnotation"); function dpe(e, t) { return !e || e.type !== "ThisTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(dpe, "isThisTypeAnnotation"); function ppe(e, t) { return !e || e.type !== "TupleTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(ppe, "isTupleTypeAnnotation"); function hpe(e, t) { return !e || e.type !== "TypeofTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(hpe, "isTypeofTypeAnnotation"); function mpe(e, t) { return !e || e.type !== "TypeAlias" ? !1 : t == null || (0, P.default)(e, t); } s(mpe, "isTypeAlias"); function ype(e, t) { return !e || e.type !== "TypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(ype, "isTypeAnnotation"); function gpe(e, t) { return !e || e.type !== "TypeCastExpression" ? !1 : t == null || (0, P.default)(e, t); } s(gpe, "isTypeCastExpression"); function bpe(e, t) { return !e || e.type !== "TypeParameter" ? !1 : t == null || (0, P.default)(e, t); } s(bpe, "isTypeParameter"); function Dpe(e, t) { return !e || e.type !== "TypeParameterDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(Dpe, "isTypeParameterDeclaration"); function vpe(e, t) { return !e || e.type !== "TypeParameterInstantiation" ? !1 : t == null || (0, P.default)(e, t); } s(vpe, "isTypeParameterInstantiation"); function Epe(e, t) { return !e || e.type !== "UnionTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Epe, "isUnionTypeAnnotation"); function xpe(e, t) { return !e || e.type !== "Variance" ? !1 : t == null || (0, P.default)(e, t); } s(xpe, "isVariance"); function Spe(e, t) { return !e || e.type !== "VoidTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Spe, "isVoidTypeAnnotation"); function Tpe(e, t) { return !e || e.type !== "EnumDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(Tpe, "isEnumDeclaration"); function Cpe(e, t) { return !e || e.type !== "EnumBooleanBody" ? !1 : t == null || (0, P.default)(e, t); } s(Cpe, "isEnumBooleanBody"); function wpe(e, t) { return !e || e.type !== "EnumNumberBody" ? !1 : t == null || (0, P.default)(e, t); } s(wpe, "isEnumNumberBody"); function Ape(e, t) { return !e || e.type !== "EnumStringBody" ? !1 : t == null || (0, P.default)(e, t); } s(Ape, "isEnumStringBody"); function _pe(e, t) { return !e || e.type !== "EnumSymbolBody" ? !1 : t == null || (0, P.default)(e, t); } s(_pe, "isEnumSymbolBody"); function Ppe(e, t) { return !e || e.type !== "EnumBooleanMember" ? !1 : t == null || (0, P.default)(e, t); } s(Ppe, "isEnumBooleanMember"); function Fpe(e, t) { return !e || e.type !== "EnumNumberMember" ? !1 : t == null || (0, P.default)(e, t); } s(Fpe, "isEnumNumberMember"); function Ipe(e, t) { return !e || e.type !== "EnumStringMember" ? !1 : t == null || (0, P.default)(e, t); } s(Ipe, "isEnumStringMember"); function Ope(e, t) { return !e || e.type !== "EnumDefaultedMember" ? !1 : t == null || (0, P.default)(e, t); } s(Ope, "isEnumDefaultedMember"); function kpe(e, t) { return !e || e.type !== "IndexedAccessType" ? !1 : t == null || (0, P.default)(e, t); } s(kpe, "isIndexedAccessType"); function Bpe(e, t) { return !e || e.type !== "OptionalIndexedAccessType" ? !1 : t == null || (0, P.default)(e, t); } s(Bpe, "isOptionalIndexedAccessType"); function Npe(e, t) { return !e || e.type !== "JSXAttribute" ? !1 : t == null || (0, P.default)(e, t); } s(Npe, "isJSXAttribute"); function Mpe(e, t) { return !e || e.type !== "JSXClosingElement" ? !1 : t == null || (0, P.default)(e, t); } s(Mpe, "isJSXClosingElement"); function Rpe(e, t) { return !e || e.type !== "JSXElement" ? !1 : t == null || (0, P.default)(e, t); } s(Rpe, "isJSXElement"); function jpe(e, t) { return !e || e.type !== "JSXEmptyExpression" ? !1 : t == null || (0, P.default)(e, t); } s(jpe, "isJSXEmptyExpression"); function Lpe(e, t) { return !e || e.type !== "JSXExpressionContainer" ? !1 : t == null || (0, P.default)(e, t); } s(Lpe, "isJSXExpressionContainer"); function qpe(e, t) { return !e || e.type !== "JSXSpreadChild" ? !1 : t == null || (0, P.default)(e, t); } s(qpe, "isJSXSpreadChild"); function Upe(e, t) { return !e || e.type !== "JSXIdentifier" ? !1 : t == null || (0, P.default)(e, t); } s(Upe, "isJSXIdentifier"); function Wpe(e, t) { return !e || e.type !== "JSXMemberExpression" ? !1 : t == null || (0, P.default)(e, t); } s(Wpe, "isJSXMemberExpression"); function $pe(e, t) { return !e || e.type !== "JSXNamespacedName" ? !1 : t == null || (0, P.default)(e, t); } s($pe, "isJSXNamespacedName"); function Vpe(e, t) { return !e || e.type !== "JSXOpeningElement" ? !1 : t == null || (0, P.default)(e, t); } s(Vpe, "isJSXOpeningElement"); function Hpe(e, t) { return !e || e.type !== "JSXSpreadAttribute" ? !1 : t == null || (0, P.default)(e, t); } s(Hpe, "isJSXSpreadAttribute"); function Kpe(e, t) { return !e || e.type !== "JSXText" ? !1 : t == null || (0, P.default)(e, t); } s(Kpe, "isJSXText"); function zpe(e, t) { return !e || e.type !== "JSXFragment" ? !1 : t == null || (0, P.default)(e, t); } s(zpe, "isJSXFragment"); function Gpe(e, t) { return !e || e.type !== "JSXOpeningFragment" ? !1 : t == null || (0, P.default)(e, t); } s(Gpe, "isJSXOpeningFragment"); function Jpe(e, t) { return !e || e.type !== "JSXClosingFragment" ? !1 : t == null || (0, P.default)(e, t); } s(Jpe, "isJSXClosingFragment"); function Xpe(e, t) { return !e || e.type !== "Noop" ? !1 : t == null || (0, P.default)(e, t); } s(Xpe, "isNoop"); function Ype(e, t) { return !e || e.type !== "Placeholder" ? !1 : t == null || (0, P.default)(e, t); } s(Ype, "isPlaceholder"); function Zpe(e, t) { return !e || e.type !== "V8IntrinsicIdentifier" ? !1 : t == null || (0, P.default)(e, t); } s(Zpe, "isV8IntrinsicIdentifier"); function Qpe(e, t) { return !e || e.type !== "ArgumentPlaceholder" ? !1 : t == null || (0, P.default)(e, t); } s(Qpe, "isArgumentPlaceholder"); function ehe(e, t) { return !e || e.type !== "BindExpression" ? !1 : t == null || (0, P.default)(e, t); } s(ehe, "isBindExpression"); function the(e, t) { return !e || e.type !== "Decorator" ? !1 : t == null || (0, P.default)(e, t); } s(the, "isDecorator"); function rhe(e, t) { return !e || e.type !== "DoExpression" ? !1 : t == null || (0, P.default)(e, t); } s(rhe, "isDoExpression"); function ihe(e, t) { return !e || e.type !== "ExportDefaultSpecifier" ? !1 : t == null || (0, P.default)(e, t); } s(ihe, "isExportDefaultSpecifier"); function nhe(e, t) { return !e || e.type !== "RecordExpression" ? !1 : t == null || (0, P.default)(e, t); } s(nhe, "isRecordExpression"); function she(e, t) { return !e || e.type !== "TupleExpression" ? !1 : t == null || (0, P.default)(e, t); } s(she, "isTupleExpression"); function ahe(e, t) { return !e || e.type !== "DecimalLiteral" ? !1 : t == null || (0, P.default)(e, t); } s(ahe, "isDecimalLiteral"); function ohe(e, t) { return !e || e.type !== "ModuleExpression" ? !1 : t == null || (0, P.default)(e, t); } s(ohe, "isModuleExpression"); function uhe(e, t) { return !e || e.type !== "TopicReference" ? !1 : t == null || (0, P.default)(e, t); } s(uhe, "isTopicReference"); function lhe(e, t) { return !e || e.type !== "PipelineTopicExpression" ? !1 : t == null || (0, P.default)(e, t); } s(lhe, "isPipelineTopicExpression"); function che(e, t) { return !e || e.type !== "PipelineBareFunction" ? !1 : t == null || (0, P.default)(e, t); } s(che, "isPipelineBareFunction"); function fhe(e, t) { return !e || e.type !== "PipelinePrimaryTopicReference" ? !1 : t == null || (0, P.default)(e, t); } s(fhe, "isPipelinePrimaryTopicReference"); function dhe(e, t) { return !e || e.type !== "TSParameterProperty" ? !1 : t == null || (0, P.default)(e, t); } s(dhe, "isTSParameterProperty"); function phe(e, t) { return !e || e.type !== "TSDeclareFunction" ? !1 : t == null || (0, P.default)(e, t); } s(phe, "isTSDeclareFunction"); function hhe(e, t) { return !e || e.type !== "TSDeclareMethod" ? !1 : t == null || (0, P.default)(e, t); } s(hhe, "isTSDeclareMethod"); function mhe(e, t) { return !e || e.type !== "TSQualifiedName" ? !1 : t == null || (0, P.default)(e, t); } s(mhe, "isTSQualifiedName"); function yhe(e, t) { return !e || e.type !== "TSCallSignatureDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(yhe, "isTSCallSignatureDeclaration"); function ghe(e, t) { return !e || e.type !== "TSConstructSignatureDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(ghe, "isTSConstructSignatureDeclaration"); function bhe(e, t) { return !e || e.type !== "TSPropertySignature" ? !1 : t == null || (0, P.default)(e, t); } s(bhe, "isTSPropertySignature"); function Dhe(e, t) { return !e || e.type !== "TSMethodSignature" ? !1 : t == null || (0, P.default)(e, t); } s(Dhe, "isTSMethodSignature"); function vhe(e, t) { return !e || e.type !== "TSIndexSignature" ? !1 : t == null || (0, P.default)(e, t); } s(vhe, "isTSIndexSignature"); function Ehe(e, t) { return !e || e.type !== "TSAnyKeyword" ? !1 : t == null || (0, P.default)(e, t); } s(Ehe, "isTSAnyKeyword"); function xhe(e, t) { return !e || e.type !== "TSBooleanKeyword" ? !1 : t == null || (0, P.default)(e, t); } s(xhe, "isTSBooleanKeyword"); function She(e, t) { return !e || e.type !== "TSBigIntKeyword" ? !1 : t == null || (0, P.default)(e, t); } s(She, "isTSBigIntKeyword"); function The(e, t) { return !e || e.type !== "TSIntrinsicKeyword" ? !1 : t == null || (0, P.default)(e, t); } s(The, "isTSIntrinsicKeyword"); function Che(e, t) { return !e || e.type !== "TSNeverKeyword" ? !1 : t == null || (0, P.default)(e, t); } s(Che, "isTSNeverKeyword"); function whe(e, t) { return !e || e.type !== "TSNullKeyword" ? !1 : t == null || (0, P.default)(e, t); } s(whe, "isTSNullKeyword"); function Ahe(e, t) { return !e || e.type !== "TSNumberKeyword" ? !1 : t == null || (0, P.default)(e, t); } s(Ahe, "isTSNumberKeyword"); function _he(e, t) { return !e || e.type !== "TSObjectKeyword" ? !1 : t == null || (0, P.default)(e, t); } s(_he, "isTSObjectKeyword"); function Phe(e, t) { return !e || e.type !== "TSStringKeyword" ? !1 : t == null || (0, P.default)(e, t); } s(Phe, "isTSStringKeyword"); function Fhe(e, t) { return !e || e.type !== "TSSymbolKeyword" ? !1 : t == null || (0, P.default)(e, t); } s(Fhe, "isTSSymbolKeyword"); function Ihe(e, t) { return !e || e.type !== "TSUndefinedKeyword" ? !1 : t == null || (0, P.default)(e, t); } s(Ihe, "isTSUndefinedKeyword"); function Ohe(e, t) { return !e || e.type !== "TSUnknownKeyword" ? !1 : t == null || (0, P.default)(e, t); } s(Ohe, "isTSUnknownKeyword"); function khe(e, t) { return !e || e.type !== "TSVoidKeyword" ? !1 : t == null || (0, P.default)(e, t); } s(khe, "isTSVoidKeyword"); function Bhe(e, t) { return !e || e.type !== "TSThisType" ? !1 : t == null || (0, P.default)(e, t); } s(Bhe, "isTSThisType"); function Nhe(e, t) { return !e || e.type !== "TSFunctionType" ? !1 : t == null || (0, P.default)(e, t); } s(Nhe, "isTSFunctionType"); function Mhe(e, t) { return !e || e.type !== "TSConstructorType" ? !1 : t == null || (0, P.default)(e, t); } s(Mhe, "isTSConstructorType"); function Rhe(e, t) { return !e || e.type !== "TSTypeReference" ? !1 : t == null || (0, P.default)(e, t); } s(Rhe, "isTSTypeReference"); function jhe(e, t) { return !e || e.type !== "TSTypePredicate" ? !1 : t == null || (0, P.default)(e, t); } s(jhe, "isTSTypePredicate"); function Lhe(e, t) { return !e || e.type !== "TSTypeQuery" ? !1 : t == null || (0, P.default)(e, t); } s(Lhe, "isTSTypeQuery"); function qhe(e, t) { return !e || e.type !== "TSTypeLiteral" ? !1 : t == null || (0, P.default)(e, t); } s(qhe, "isTSTypeLiteral"); function Uhe(e, t) { return !e || e.type !== "TSArrayType" ? !1 : t == null || (0, P.default)(e, t); } s(Uhe, "isTSArrayType"); function Whe(e, t) { return !e || e.type !== "TSTupleType" ? !1 : t == null || (0, P.default)(e, t); } s(Whe, "isTSTupleType"); function $he(e, t) { return !e || e.type !== "TSOptionalType" ? !1 : t == null || (0, P.default)(e, t); } s($he, "isTSOptionalType"); function Vhe(e, t) { return !e || e.type !== "TSRestType" ? !1 : t == null || (0, P.default)(e, t); } s(Vhe, "isTSRestType"); function Hhe(e, t) { return !e || e.type !== "TSNamedTupleMember" ? !1 : t == null || (0, P.default)(e, t); } s(Hhe, "isTSNamedTupleMember"); function Khe(e, t) { return !e || e.type !== "TSUnionType" ? !1 : t == null || (0, P.default)(e, t); } s(Khe, "isTSUnionType"); function zhe(e, t) { return !e || e.type !== "TSIntersectionType" ? !1 : t == null || (0, P.default)(e, t); } s(zhe, "isTSIntersectionType"); function Ghe(e, t) { return !e || e.type !== "TSConditionalType" ? !1 : t == null || (0, P.default)(e, t); } s(Ghe, "isTSConditionalType"); function Jhe(e, t) { return !e || e.type !== "TSInferType" ? !1 : t == null || (0, P.default)(e, t); } s(Jhe, "isTSInferType"); function Xhe(e, t) { return !e || e.type !== "TSParenthesizedType" ? !1 : t == null || (0, P.default)(e, t); } s(Xhe, "isTSParenthesizedType"); function Yhe(e, t) { return !e || e.type !== "TSTypeOperator" ? !1 : t == null || (0, P.default)(e, t); } s(Yhe, "isTSTypeOperator"); function Zhe(e, t) { return !e || e.type !== "TSIndexedAccessType" ? !1 : t == null || (0, P.default)(e, t); } s(Zhe, "isTSIndexedAccessType"); function Qhe(e, t) { return !e || e.type !== "TSMappedType" ? !1 : t == null || (0, P.default)(e, t); } s(Qhe, "isTSMappedType"); function eme(e, t) { return !e || e.type !== "TSTemplateLiteralType" ? !1 : t == null || (0, P.default)(e, t); } s(eme, "isTSTemplateLiteralType"); function tme(e, t) { return !e || e.type !== "TSLiteralType" ? !1 : t == null || (0, P.default)(e, t); } s(tme, "isTSLiteralType"); function rme(e, t) { return !e || e.type !== "TSExpressionWithTypeArguments" ? !1 : t == null || (0, P.default)(e, t); } s(rme, "isTSExpressionWithTypeArguments"); function ime(e, t) { return !e || e.type !== "TSInterfaceDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(ime, "isTSInterfaceDeclaration"); function nme(e, t) { return !e || e.type !== "TSInterfaceBody" ? !1 : t == null || (0, P.default)(e, t); } s(nme, "isTSInterfaceBody"); function sme(e, t) { return !e || e.type !== "TSTypeAliasDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(sme, "isTSTypeAliasDeclaration"); function ame(e, t) { return !e || e.type !== "TSInstantiationExpression" ? !1 : t == null || (0, P.default)(e, t); } s(ame, "isTSInstantiationExpression"); function ome(e, t) { return !e || e.type !== "TSAsExpression" ? !1 : t == null || (0, P.default)(e, t); } s(ome, "isTSAsExpression"); function ume(e, t) { return !e || e.type !== "TSSatisfiesExpression" ? !1 : t == null || (0, P.default)(e, t); } s(ume, "isTSSatisfiesExpression"); function lme(e, t) { return !e || e.type !== "TSTypeAssertion" ? !1 : t == null || (0, P.default)(e, t); } s(lme, "isTSTypeAssertion"); function cme(e, t) { return !e || e.type !== "TSEnumBody" ? !1 : t == null || (0, P.default)(e, t); } s(cme, "isTSEnumBody"); function fme(e, t) { return !e || e.type !== "TSEnumDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(fme, "isTSEnumDeclaration"); function dme(e, t) { return !e || e.type !== "TSEnumMember" ? !1 : t == null || (0, P.default)(e, t); } s(dme, "isTSEnumMember"); function pme(e, t) { return !e || e.type !== "TSModuleDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(pme, "isTSModuleDeclaration"); function hme(e, t) { return !e || e.type !== "TSModuleBlock" ? !1 : t == null || (0, P.default)(e, t); } s(hme, "isTSModuleBlock"); function mme(e, t) { return !e || e.type !== "TSImportType" ? !1 : t == null || (0, P.default)(e, t); } s(mme, "isTSImportType"); function yme(e, t) { return !e || e.type !== "TSImportEqualsDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(yme, "isTSImportEqualsDeclaration"); function gme(e, t) { return !e || e.type !== "TSExternalModuleReference" ? !1 : t == null || (0, P.default)(e, t); } s(gme, "isTSExternalModuleReference"); function bme(e, t) { return !e || e.type !== "TSNonNullExpression" ? !1 : t == null || (0, P.default)(e, t); } s(bme, "isTSNonNullExpression"); function Dme(e, t) { return !e || e.type !== "TSExportAssignment" ? !1 : t == null || (0, P.default)(e, t); } s(Dme, "isTSExportAssignment"); function vme(e, t) { return !e || e.type !== "TSNamespaceExportDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(vme, "isTSNamespaceExportDeclaration"); function Eme(e, t) { return !e || e.type !== "TSTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } s(Eme, "isTSTypeAnnotation"); function xme(e, t) { return !e || e.type !== "TSTypeParameterInstantiation" ? !1 : t == null || (0, P.default)(e, t); } s(xme, "isTSTypeParameterInstantiation"); function Sme(e, t) { return !e || e.type !== "TSTypeParameterDeclaration" ? !1 : t == null || (0, P.default)(e, t); } s(Sme, "isTSTypeParameterDeclaration"); function Tme(e, t) { return !e || e.type !== "TSTypeParameter" ? !1 : t == null || (0, P.default)(e, t); } s(Tme, "isTSTypeParameter"); function Cme(e, t) { if (!e) return !1; switch (e.type) { case "ArrayExpression": case "AssignmentExpression": case "BinaryExpression": case "InterpreterDirective": case "Directive": case "DirectiveLiteral": case "BlockStatement": case "BreakStatement": case "CallExpression": case "CatchClause": case "ConditionalExpression": case "ContinueStatement": case "DebuggerStatement": case "DoWhileStatement": case "EmptyStatement": case "ExpressionStatement": case "File": case "ForInStatement": case "ForStatement": case "FunctionDeclaration": case "FunctionExpression": case "Identifier": case "IfStatement": case "LabeledStatement": case "StringLiteral": case "NumericLiteral": case "NullLiteral": case "BooleanLiteral": case "RegExpLiteral": case "LogicalExpression": case "MemberExpression": case "NewExpression": case "Program": case "ObjectExpression": case "ObjectMethod": case "ObjectProperty": case "RestElement": case "ReturnStatement": case "SequenceExpression": case "ParenthesizedExpression": case "SwitchCase": case "SwitchStatement": case "ThisExpression": case "ThrowStatement": case "TryStatement": case "UnaryExpression": case "UpdateExpression": case "VariableDeclaration": case "VariableDeclarator": case "WhileStatement": case "WithStatement": case "AssignmentPattern": case "ArrayPattern": case "ArrowFunctionExpression": case "ClassBody": case "ClassExpression": case "ClassDeclaration": case "ExportAllDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": case "ExportSpecifier": case "ForOfStatement": case "ImportDeclaration": case "ImportDefaultSpecifier": case "ImportNamespaceSpecifier": case "ImportSpecifier": case "ImportExpression": case "MetaProperty": case "ClassMethod": case "ObjectPattern": case "SpreadElement": case "Super": case "TaggedTemplateExpression": case "TemplateElement": case "TemplateLiteral": case "YieldExpression": case "AwaitExpression": case "Import": case "BigIntLiteral": case "ExportNamespaceSpecifier": case "OptionalMemberExpression": case "OptionalCallExpression": case "ClassProperty": case "ClassAccessorProperty": case "ClassPrivateProperty": case "ClassPrivateMethod": case "PrivateName": case "StaticBlock": case "ImportAttribute": break; case "Placeholder": switch (e.expectedNode) { case "Identifier": case "StringLiteral": case "BlockStatement": case "ClassBody": break; default: return !1; } break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Cme, "isStandardized"); function wme(e, t) { if (!e) return !1; switch (e.type) { case "ArrayExpression": case "AssignmentExpression": case "BinaryExpression": case "CallExpression": case "ConditionalExpression": case "FunctionExpression": case "Identifier": case "StringLiteral": case "NumericLiteral": case "NullLiteral": case "BooleanLiteral": case "RegExpLiteral": case "LogicalExpression": case "MemberExpression": case "NewExpression": case "ObjectExpression": case "SequenceExpression": case "ParenthesizedExpression": case "ThisExpression": case "UnaryExpression": case "UpdateExpression": case "ArrowFunctionExpression": case "ClassExpression": case "ImportExpression": case "MetaProperty": case "Super": case "TaggedTemplateExpression": case "TemplateLiteral": case "YieldExpression": case "AwaitExpression": case "Import": case "BigIntLiteral": case "OptionalMemberExpression": case "OptionalCallExpression": case "TypeCastExpression": case "JSXElement": case "JSXFragment": case "BindExpression": case "DoExpression": case "RecordExpression": case "TupleExpression": case "DecimalLiteral": case "ModuleExpression": case "TopicReference": case "PipelineTopicExpression": case "PipelineBareFunction": case "PipelinePrimaryTopicReference": case "TSInstantiationExpression": case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSNonNullExpression": break; case "Placeholder": switch (e.expectedNode) { case "Expression": case "Identifier": case "StringLiteral": break; default: return !1; } break; default: return !1; } return t == null || (0, P.default)(e, t); } s(wme, "isExpression"); function Ame(e, t) { if (!e) return !1; switch (e.type) { case "BinaryExpression": case "LogicalExpression": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Ame, "isBinary"); function _me(e, t) { if (!e) return !1; switch (e.type) { case "BlockStatement": case "CatchClause": case "DoWhileStatement": case "ForInStatement": case "ForStatement": case "FunctionDeclaration": case "FunctionExpression": case "Program": case "ObjectMethod": case "SwitchStatement": case "WhileStatement": case "ArrowFunctionExpression": case "ClassExpression": case "ClassDeclaration": case "ForOfStatement": case "ClassMethod": case "ClassPrivateMethod": case "StaticBlock": case "TSModuleBlock": break; case "Placeholder": if (e.expectedNode === "BlockStatement") break; default: return !1; } return t == null || (0, P.default)(e, t); } s(_me, "isScopable"); function Pme(e, t) { if (!e) return !1; switch (e.type) { case "BlockStatement": case "CatchClause": case "DoWhileStatement": case "ForInStatement": case "ForStatement": case "FunctionDeclaration": case "FunctionExpression": case "Program": case "ObjectMethod": case "SwitchStatement": case "WhileStatement": case "ArrowFunctionExpression": case "ForOfStatement": case "ClassMethod": case "ClassPrivateMethod": case "StaticBlock": case "TSModuleBlock": break; case "Placeholder": if (e.expectedNode === "BlockStatement") break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Pme, "isBlockParent"); function Fme(e, t) { if (!e) return !1; switch (e.type) { case "BlockStatement": case "Program": case "TSModuleBlock": break; case "Placeholder": if (e.expectedNode === "BlockStatement") break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Fme, "isBlock"); function Ime(e, t) { if (!e) return !1; switch (e.type) { case "BlockStatement": case "BreakStatement": case "ContinueStatement": case "DebuggerStatement": case "DoWhileStatement": case "EmptyStatement": case "ExpressionStatement": case "ForInStatement": case "ForStatement": case "FunctionDeclaration": case "IfStatement": case "LabeledStatement": case "ReturnStatement": case "SwitchStatement": case "ThrowStatement": case "TryStatement": case "VariableDeclaration": case "WhileStatement": case "WithStatement": case "ClassDeclaration": case "ExportAllDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": case "ForOfStatement": case "ImportDeclaration": case "DeclareClass": case "DeclareFunction": case "DeclareInterface": case "DeclareModule": case "DeclareModuleExports": case "DeclareTypeAlias": case "DeclareOpaqueType": case "DeclareVariable": case "DeclareExportDeclaration": case "DeclareExportAllDeclaration": case "InterfaceDeclaration": case "OpaqueType": case "TypeAlias": case "EnumDeclaration": case "TSDeclareFunction": case "TSInterfaceDeclaration": case "TSTypeAliasDeclaration": case "TSEnumDeclaration": case "TSModuleDeclaration": case "TSImportEqualsDeclaration": case "TSExportAssignment": case "TSNamespaceExportDeclaration": break; case "Placeholder": switch (e.expectedNode) { case "Statement": case "Declaration": case "BlockStatement": break; default: return !1; } break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Ime, "isStatement"); function Ome(e, t) { if (!e) return !1; switch (e.type) { case "BreakStatement": case "ContinueStatement": case "ReturnStatement": case "ThrowStatement": case "YieldExpression": case "AwaitExpression": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Ome, "isTerminatorless"); function kme(e, t) { if (!e) return !1; switch (e.type) { case "BreakStatement": case "ContinueStatement": case "ReturnStatement": case "ThrowStatement": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(kme, "isCompletionStatement"); function Bme(e, t) { if (!e) return !1; switch (e.type) { case "ConditionalExpression": case "IfStatement": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Bme, "isConditional"); function Nme(e, t) { if (!e) return !1; switch (e.type) { case "DoWhileStatement": case "ForInStatement": case "ForStatement": case "WhileStatement": case "ForOfStatement": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Nme, "isLoop"); function Mme(e, t) { if (!e) return !1; switch (e.type) { case "DoWhileStatement": case "WhileStatement": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Mme, "isWhile"); function Rme(e, t) { if (!e) return !1; switch (e.type) { case "ExpressionStatement": case "ParenthesizedExpression": case "TypeCastExpression": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Rme, "isExpressionWrapper"); function jme(e, t) { if (!e) return !1; switch (e.type) { case "ForInStatement": case "ForStatement": case "ForOfStatement": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(jme, "isFor"); function Lme(e, t) { if (!e) return !1; switch (e.type) { case "ForInStatement": case "ForOfStatement": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Lme, "isForXStatement"); function qme(e, t) { if (!e) return !1; switch (e.type) { case "FunctionDeclaration": case "FunctionExpression": case "ObjectMethod": case "ArrowFunctionExpression": case "ClassMethod": case "ClassPrivateMethod": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(qme, "isFunction"); function Ume(e, t) { if (!e) return !1; switch (e.type) { case "FunctionDeclaration": case "FunctionExpression": case "ObjectMethod": case "ArrowFunctionExpression": case "ClassMethod": case "ClassPrivateMethod": case "StaticBlock": case "TSModuleBlock": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Ume, "isFunctionParent"); function Wme(e, t) { if (!e) return !1; switch (e.type) { case "FunctionDeclaration": case "FunctionExpression": case "StringLiteral": case "NumericLiteral": case "NullLiteral": case "BooleanLiteral": case "RegExpLiteral": case "ArrowFunctionExpression": case "BigIntLiteral": case "DecimalLiteral": break; case "Placeholder": if (e.expectedNode === "StringLiteral") break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Wme, "isPureish"); function $me(e, t) { if (!e) return !1; switch (e.type) { case "FunctionDeclaration": case "VariableDeclaration": case "ClassDeclaration": case "ExportAllDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": case "ImportDeclaration": case "DeclareClass": case "DeclareFunction": case "DeclareInterface": case "DeclareModule": case "DeclareModuleExports": case "DeclareTypeAlias": case "DeclareOpaqueType": case "DeclareVariable": case "DeclareExportDeclaration": case "DeclareExportAllDeclaration": case "InterfaceDeclaration": case "OpaqueType": case "TypeAlias": case "EnumDeclaration": case "TSDeclareFunction": case "TSInterfaceDeclaration": case "TSTypeAliasDeclaration": case "TSEnumDeclaration": case "TSModuleDeclaration": case "TSImportEqualsDeclaration": break; case "Placeholder": if (e.expectedNode === "Declaration") break; default: return !1; } return t == null || (0, P.default)(e, t); } s($me, "isDeclaration"); function Vme(e, t) { if (!e) return !1; switch (e.type) { case "Identifier": case "RestElement": case "AssignmentPattern": case "ArrayPattern": case "ObjectPattern": case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSNonNullExpression": break; case "Placeholder": switch (e.expectedNode) { case "Pattern": case "Identifier": break; default: return !1; } break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Vme, "isPatternLike"); function Hme(e, t) { if (!e) return !1; switch (e.type) { case "Identifier": case "MemberExpression": case "RestElement": case "AssignmentPattern": case "ArrayPattern": case "ObjectPattern": case "TSParameterProperty": case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSNonNullExpression": break; case "Placeholder": switch (e.expectedNode) { case "Pattern": case "Identifier": break; default: return !1; } break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Hme, "isLVal"); function Kme(e, t) { if (!e) return !1; switch (e.type) { case "Identifier": case "TSQualifiedName": break; case "Placeholder": if (e.expectedNode === "Identifier") break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Kme, "isTSEntityName"); function zme(e, t) { if (!e) return !1; switch (e.type) { case "StringLiteral": case "NumericLiteral": case "NullLiteral": case "BooleanLiteral": case "RegExpLiteral": case "TemplateLiteral": case "BigIntLiteral": case "DecimalLiteral": break; case "Placeholder": if (e.expectedNode === "StringLiteral") break; default: return !1; } return t == null || (0, P.default)(e, t); } s(zme, "isLiteral"); function Gme(e, t) { if (!e) return !1; switch (e.type) { case "StringLiteral": case "NumericLiteral": case "NullLiteral": case "BooleanLiteral": case "BigIntLiteral": case "JSXAttribute": case "JSXClosingElement": case "JSXElement": case "JSXExpressionContainer": case "JSXSpreadChild": case "JSXOpeningElement": case "JSXText": case "JSXFragment": case "JSXOpeningFragment": case "JSXClosingFragment": case "DecimalLiteral": break; case "Placeholder": if (e.expectedNode === "StringLiteral") break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Gme, "isImmutable"); function Jme(e, t) { if (!e) return !1; switch (e.type) { case "ObjectMethod": case "ObjectProperty": case "ObjectTypeInternalSlot": case "ObjectTypeCallProperty": case "ObjectTypeIndexer": case "ObjectTypeProperty": case "ObjectTypeSpreadProperty": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Jme, "isUserWhitespacable"); function Xme(e, t) { if (!e) return !1; switch (e.type) { case "ObjectMethod": case "ClassMethod": case "ClassPrivateMethod": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Xme, "isMethod"); function Yme(e, t) { if (!e) return !1; switch (e.type) { case "ObjectMethod": case "ObjectProperty": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Yme, "isObjectMember"); function Zme(e, t) { if (!e) return !1; switch (e.type) { case "ObjectProperty": case "ClassProperty": case "ClassAccessorProperty": case "ClassPrivateProperty": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Zme, "isProperty"); function Qme(e, t) { if (!e) return !1; switch (e.type) { case "UnaryExpression": case "SpreadElement": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(Qme, "isUnaryLike"); function eye(e, t) { if (!e) return !1; switch (e.type) { case "AssignmentPattern": case "ArrayPattern": case "ObjectPattern": break; case "Placeholder": if (e.expectedNode === "Pattern") break; default: return !1; } return t == null || (0, P.default)(e, t); } s(eye, "isPattern"); function tye(e, t) { if (!e) return !1; switch (e.type) { case "ClassExpression": case "ClassDeclaration": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(tye, "isClass"); function mj(e, t) { if (!e) return !1; switch (e.type) { case "ExportAllDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": case "ImportDeclaration": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(mj, "isImportOrExportDeclaration"); function rye(e, t) { if (!e) return !1; switch (e.type) { case "ExportAllDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(rye, "isExportDeclaration"); function iye(e, t) { if (!e) return !1; switch (e.type) { case "ExportSpecifier": case "ImportDefaultSpecifier": case "ImportNamespaceSpecifier": case "ImportSpecifier": case "ExportNamespaceSpecifier": case "ExportDefaultSpecifier": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(iye, "isModuleSpecifier"); function nye(e, t) { if (!e) return !1; switch (e.type) { case "ClassAccessorProperty": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(nye, "isAccessor"); function sye(e, t) { if (!e) return !1; switch (e.type) { case "ClassPrivateProperty": case "ClassPrivateMethod": case "PrivateName": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(sye, "isPrivate"); function aye(e, t) { if (!e) return !1; switch (e.type) { case "AnyTypeAnnotation": case "ArrayTypeAnnotation": case "BooleanTypeAnnotation": case "BooleanLiteralTypeAnnotation": case "NullLiteralTypeAnnotation": case "ClassImplements": case "DeclareClass": case "DeclareFunction": case "DeclareInterface": case "DeclareModule": case "DeclareModuleExports": case "DeclareTypeAlias": case "DeclareOpaqueType": case "DeclareVariable": case "DeclareExportDeclaration": case "DeclareExportAllDeclaration": case "DeclaredPredicate": case "ExistsTypeAnnotation": case "FunctionTypeAnnotation": case "FunctionTypeParam": case "GenericTypeAnnotation": case "InferredPredicate": case "InterfaceExtends": case "InterfaceDeclaration": case "InterfaceTypeAnnotation": case "IntersectionTypeAnnotation": case "MixedTypeAnnotation": case "EmptyTypeAnnotation": case "NullableTypeAnnotation": case "NumberLiteralTypeAnnotation": case "NumberTypeAnnotation": case "ObjectTypeAnnotation": case "ObjectTypeInternalSlot": case "ObjectTypeCallProperty": case "ObjectTypeIndexer": case "ObjectTypeProperty": case "ObjectTypeSpreadProperty": case "OpaqueType": case "QualifiedTypeIdentifier": case "StringLiteralTypeAnnotation": case "StringTypeAnnotation": case "SymbolTypeAnnotation": case "ThisTypeAnnotation": case "TupleTypeAnnotation": case "TypeofTypeAnnotation": case "TypeAlias": case "TypeAnnotation": case "TypeCastExpression": case "TypeParameter": case "TypeParameterDeclaration": case "TypeParameterInstantiation": case "UnionTypeAnnotation": case "Variance": case "VoidTypeAnnotation": case "EnumDeclaration": case "EnumBooleanBody": case "EnumNumberBody": case "EnumStringBody": case "EnumSymbolBody": case "EnumBooleanMember": case "EnumNumberMember": case "EnumStringMember": case "EnumDefaultedMember": case "IndexedAccessType": case "OptionalIndexedAccessType": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(aye, "isFlow"); function oye(e, t) { if (!e) return !1; switch (e.type) { case "AnyTypeAnnotation": case "ArrayTypeAnnotation": case "BooleanTypeAnnotation": case "BooleanLiteralTypeAnnotation": case "NullLiteralTypeAnnotation": case "ExistsTypeAnnotation": case "FunctionTypeAnnotation": case "GenericTypeAnnotation": case "InterfaceTypeAnnotation": case "IntersectionTypeAnnotation": case "MixedTypeAnnotation": case "EmptyTypeAnnotation": case "NullableTypeAnnotation": case "NumberLiteralTypeAnnotation": case "NumberTypeAnnotation": case "ObjectTypeAnnotation": case "StringLiteralTypeAnnotation": case "StringTypeAnnotation": case "SymbolTypeAnnotation": case "ThisTypeAnnotation": case "TupleTypeAnnotation": case "TypeofTypeAnnotation": case "UnionTypeAnnotation": case "VoidTypeAnnotation": case "IndexedAccessType": case "OptionalIndexedAccessType": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(oye, "isFlowType"); function uye(e, t) { if (!e) return !1; switch (e.type) { case "AnyTypeAnnotation": case "BooleanTypeAnnotation": case "NullLiteralTypeAnnotation": case "MixedTypeAnnotation": case "EmptyTypeAnnotation": case "NumberTypeAnnotation": case "StringTypeAnnotation": case "SymbolTypeAnnotation": case "ThisTypeAnnotation": case "VoidTypeAnnotation": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(uye, "isFlowBaseAnnotation"); function lye(e, t) { if (!e) return !1; switch (e.type) { case "DeclareClass": case "DeclareFunction": case "DeclareInterface": case "DeclareModule": case "DeclareModuleExports": case "DeclareTypeAlias": case "DeclareOpaqueType": case "DeclareVariable": case "DeclareExportDeclaration": case "DeclareExportAllDeclaration": case "InterfaceDeclaration": case "OpaqueType": case "TypeAlias": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(lye, "isFlowDeclaration"); function cye(e, t) { if (!e) return !1; switch (e.type) { case "DeclaredPredicate": case "InferredPredicate": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(cye, "isFlowPredicate"); function fye(e, t) { if (!e) return !1; switch (e.type) { case "EnumBooleanBody": case "EnumNumberBody": case "EnumStringBody": case "EnumSymbolBody": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(fye, "isEnumBody"); function dye(e, t) { if (!e) return !1; switch (e.type) { case "EnumBooleanMember": case "EnumNumberMember": case "EnumStringMember": case "EnumDefaultedMember": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(dye, "isEnumMember"); function pye(e, t) { if (!e) return !1; switch (e.type) { case "JSXAttribute": case "JSXClosingElement": case "JSXElement": case "JSXEmptyExpression": case "JSXExpressionContainer": case "JSXSpreadChild": case "JSXIdentifier": case "JSXMemberExpression": case "JSXNamespacedName": case "JSXOpeningElement": case "JSXSpreadAttribute": case "JSXText": case "JSXFragment": case "JSXOpeningFragment": case "JSXClosingFragment": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(pye, "isJSX"); function hye(e, t) { if (!e) return !1; switch (e.type) { case "Noop": case "Placeholder": case "V8IntrinsicIdentifier": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(hye, "isMiscellaneous"); function mye(e, t) { if (!e) return !1; switch (e.type) { case "TSParameterProperty": case "TSDeclareFunction": case "TSDeclareMethod": case "TSQualifiedName": case "TSCallSignatureDeclaration": case "TSConstructSignatureDeclaration": case "TSPropertySignature": case "TSMethodSignature": case "TSIndexSignature": case "TSAnyKeyword": case "TSBooleanKeyword": case "TSBigIntKeyword": case "TSIntrinsicKeyword": case "TSNeverKeyword": case "TSNullKeyword": case "TSNumberKeyword": case "TSObjectKeyword": case "TSStringKeyword": case "TSSymbolKeyword": case "TSUndefinedKeyword": case "TSUnknownKeyword": case "TSVoidKeyword": case "TSThisType": case "TSFunctionType": case "TSConstructorType": case "TSTypeReference": case "TSTypePredicate": case "TSTypeQuery": case "TSTypeLiteral": case "TSArrayType": case "TSTupleType": case "TSOptionalType": case "TSRestType": case "TSNamedTupleMember": case "TSUnionType": case "TSIntersectionType": case "TSConditionalType": case "TSInferType": case "TSParenthesizedType": case "TSTypeOperator": case "TSIndexedAccessType": case "TSMappedType": case "TSTemplateLiteralType": case "TSLiteralType": case "TSExpressionWithTypeArguments": case "TSInterfaceDeclaration": case "TSInterfaceBody": case "TSTypeAliasDeclaration": case "TSInstantiationExpression": case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSEnumBody": case "TSEnumDeclaration": case "TSEnumMember": case "TSModuleDeclaration": case "TSModuleBlock": case "TSImportType": case "TSImportEqualsDeclaration": case "TSExternalModuleReference": case "TSNonNullExpression": case "TSExportAssignment": case "TSNamespaceExportDeclaration": case "TSTypeAnnotation": case "TSTypeParameterInstantiation": case "TSTypeParameterDeclaration": case "TSTypeParameter": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(mye, "isTypeScript"); function yye(e, t) { if (!e) return !1; switch (e.type) { case "TSCallSignatureDeclaration": case "TSConstructSignatureDeclaration": case "TSPropertySignature": case "TSMethodSignature": case "TSIndexSignature": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(yye, "isTSTypeElement"); function gye(e, t) { if (!e) return !1; switch (e.type) { case "TSAnyKeyword": case "TSBooleanKeyword": case "TSBigIntKeyword": case "TSIntrinsicKeyword": case "TSNeverKeyword": case "TSNullKeyword": case "TSNumberKeyword": case "TSObjectKeyword": case "TSStringKeyword": case "TSSymbolKeyword": case "TSUndefinedKeyword": case "TSUnknownKeyword": case "TSVoidKeyword": case "TSThisType": case "TSFunctionType": case "TSConstructorType": case "TSTypeReference": case "TSTypePredicate": case "TSTypeQuery": case "TSTypeLiteral": case "TSArrayType": case "TSTupleType": case "TSOptionalType": case "TSRestType": case "TSUnionType": case "TSIntersectionType": case "TSConditionalType": case "TSInferType": case "TSParenthesizedType": case "TSTypeOperator": case "TSIndexedAccessType": case "TSMappedType": case "TSTemplateLiteralType": case "TSLiteralType": case "TSExpressionWithTypeArguments": case "TSImportType": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(gye, "isTSType"); function bye(e, t) { if (!e) return !1; switch (e.type) { case "TSAnyKeyword": case "TSBooleanKeyword": case "TSBigIntKeyword": case "TSIntrinsicKeyword": case "TSNeverKeyword": case "TSNullKeyword": case "TSNumberKeyword": case "TSObjectKeyword": case "TSStringKeyword": case "TSSymbolKeyword": case "TSUndefinedKeyword": case "TSUnknownKeyword": case "TSVoidKeyword": case "TSThisType": case "TSTemplateLiteralType": case "TSLiteralType": break; default: return !1; } return t == null || (0, P.default)(e, t); } s(bye, "isTSBaseType"); function Dye(e, t) { return (0, hd.default)("isNumberLiteral", "isNumericLiteral"), !e || e.type !== "NumberLiteral" ? !1 : t == null || (0, P.default)(e, t); } s(Dye, "isNumberLiteral"); function vye(e, t) { return (0, hd.default)("isRegexLiteral", "isRegExpLiteral"), !e || e.type !== "RegexLiteral" ? !1 : t == null || (0, P.default)(e, t); } s(vye, "isRegexLiteral"); function Eye(e, t) { return (0, hd.default)("isRestProperty", "isRestElement"), !e || e.type !== "RestProperty" ? !1 : t == null || (0, P.default)(e, t); } s(Eye, "isRestProperty"); function xye(e, t) { return (0, hd.default)("isSpreadProperty", "isSpreadElement"), !e || e.type !== "SpreadProperty" ? !1 : t == null || (0, P.default)(e, t); } s(xye, "isSpreadProperty"); function Sye(e, t) { return (0, hd.default)("isModuleDeclaration", "isImportOrExportDeclaration"), mj(e, t); } s(Sye, "isModuleDeclaration"); }); // ../node_modules/@babel/types/lib/validators/matchesPattern.js var U1 = E((q1) => { "use strict"; Object.defineProperty(q1, "__esModule", { value: !0 }); q1.default = Tye; var md = cr(); function Tye(e, t, r) { if (!(0, md.isMemberExpression)(e)) return !1; let i = Array.isArray(t) ? t : t.split("."), n = [], a; for (a = e; (0, md.isMemberExpression)(a); a = a.object) n.push(a.property); if (n.push(a), n.length < i.length || !r && n.length > i.length) return !1; for (let o = 0, u = n.length - 1; o < i.length; o++, u--) { let l = n[u], c; if ((0, md.isIdentifier)(l)) c = l.name; else if ((0, md.isStringLiteral)(l)) c = l.value; else if ((0, md.isThisExpression)(l)) c = "this"; else return !1; if (i[o] !== c) return !1; } return !0; } s(Tye, "matchesPattern"); }); // ../node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js var $1 = E((W1) => { "use strict"; Object.defineProperty(W1, "__esModule", { value: !0 }); W1.default = wye; var Cye = U1(); function wye(e, t) { let r = e.split("."); return (i) => (0, Cye.default)(i, r, t); } s(wye, "buildMatchMemberExpression"); }); // ../node_modules/@babel/types/lib/validators/react/isReactComponent.js var yj = E((fy) => { "use strict"; Object.defineProperty(fy, "__esModule", { value: !0 }); fy.default = void 0; var Aye = $1(), _ye = (0, Aye.default)("React.Component"), ost = fy.default = _ye; }); // ../node_modules/@babel/types/lib/validators/react/isCompatTag.js var gj = E((V1) => { "use strict"; Object.defineProperty(V1, "__esModule", { value: !0 }); V1.default = Pye; function Pye(e) { return !!e && /^[a-z]/.test(e); } s(Pye, "isCompatTag"); }); // ../node_modules/@babel/types/lib/validators/isType.js var dy = E((H1) => { "use strict"; Object.defineProperty(H1, "__esModule", { value: !0 }); H1.default = Fye; var bj = Xi(); function Fye(e, t) { if (e === t) return !0; if (e == null || bj.ALIAS_KEYS[t]) return !1; let r = bj.FLIPPED_ALIAS_KEYS[t]; return !!(r != null && r.includes(e)); } s(Fye, "isType"); }); // ../node_modules/@babel/types/lib/validators/isPlaceholderType.js var z1 = E((K1) => { "use strict"; Object.defineProperty(K1, "__esModule", { value: !0 }); K1.default = Oye; var Iye = Xi(); function Oye(e, t) { if (e === t) return !0; let r = Iye.PLACEHOLDERS_ALIAS[e]; return !!(r != null && r.includes(t)); } s(Oye, "isPlaceholderType"); }); // ../node_modules/@babel/types/lib/validators/is.js var Fl = E((G1) => { "use strict"; Object.defineProperty(G1, "__esModule", { value: !0 }); G1.default = Rye; var kye = cy(), Bye = dy(), Nye = z1(), Mye = Xi(); function Rye(e, t, r) { return t ? (0, Bye.default)(t.type, e) ? r === void 0 ? !0 : (0, kye.default)(t, r) : !r && t.type === "Placeholder" && e in Mye.FLIPPED_ALIAS_KEYS ? (0, Nye.default)(t.expectedNode, e) : !1 : !1; } s(Rye, "is"); }); // ../node_modules/@babel/helper-validator-identifier/lib/identifier.js var Sj = E((yd) => { "use strict"; Object.defineProperty(yd, "__esModule", { value: !0 }); yd.isIdentifierChar = xj; yd.isIdentifierName = Uye; yd.isIdentifierStart = Ej; var X1 = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993\ -\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\ \u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\ \u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\ \u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\ \u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01\ -\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", Dj = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\ \u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\ \u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6\ -\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20\ -\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65", jye = new RegExp("[" + X1 + "]"), Lye = new RegExp("[" + X1 + Dj + "]"); X1 = Dj = null; var vj = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], qye = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; function J1(e, t) { let r = 65536; for (let i = 0, n = t.length; i < n; i += 2) { if (r += t[i], r > e) return !1; if (r += t[i + 1], r >= e) return !0; } return !1; } s(J1, "isInAstralSet"); function Ej(e) { return e < 65 ? e === 36 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && jye.test(String.fromCharCode(e)) : J1(e, vj); } s(Ej, "isIdentifierStart"); function xj(e) { return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && Lye.test( String.fromCharCode(e)) : J1(e, vj) || J1(e, qye); } s(xj, "isIdentifierChar"); function Uye(e) { let t = !0; for (let r = 0; r < e.length; r++) { let i = e.charCodeAt(r); if ((i & 64512) === 55296 && r + 1 < e.length) { let n = e.charCodeAt(++r); (n & 64512) === 56320 && (i = 65536 + ((i & 1023) << 10) + (n & 1023)); } if (t) { if (t = !1, !Ej(i)) return !1; } else if (!xj(i)) return !1; } return !t; } s(Uye, "isIdentifierName"); }); // ../node_modules/@babel/helper-validator-identifier/lib/keyword.js var Aj = E((Uo) => { "use strict"; Object.defineProperty(Uo, "__esModule", { value: !0 }); Uo.isKeyword = Kye; Uo.isReservedWord = Tj; Uo.isStrictBindOnlyReservedWord = wj; Uo.isStrictBindReservedWord = Hye; Uo.isStrictReservedWord = Cj; var Y1 = { keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "swit\ ch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], strictBind: ["eval", "arguments"] }, Wye = new Set(Y1.keyword), $ye = new Set(Y1.strict), Vye = new Set(Y1.strictBind); function Tj(e, t) { return t && e === "await" || e === "enum"; } s(Tj, "isReservedWord"); function Cj(e, t) { return Tj(e, t) || $ye.has(e); } s(Cj, "isStrictReservedWord"); function wj(e) { return Vye.has(e); } s(wj, "isStrictBindOnlyReservedWord"); function Hye(e, t) { return Cj(e, t) || wj(e); } s(Hye, "isStrictBindReservedWord"); function Kye(e) { return Wye.has(e); } s(Kye, "isKeyword"); }); // ../node_modules/@babel/helper-validator-identifier/lib/index.js var Il = E((Zn) => { "use strict"; Object.defineProperty(Zn, "__esModule", { value: !0 }); Object.defineProperty(Zn, "isIdentifierChar", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Z1.isIdentifierChar; }, "get") }); Object.defineProperty(Zn, "isIdentifierName", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Z1.isIdentifierName; }, "get") }); Object.defineProperty(Zn, "isIdentifierStart", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Z1.isIdentifierStart; }, "get") }); Object.defineProperty(Zn, "isKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return gd.isKeyword; }, "get") }); Object.defineProperty(Zn, "isReservedWord", { enumerable: !0, get: /* @__PURE__ */ s(function() { return gd.isReservedWord; }, "get") }); Object.defineProperty(Zn, "isStrictBindOnlyReservedWord", { enumerable: !0, get: /* @__PURE__ */ s(function() { return gd.isStrictBindOnlyReservedWord; }, "get") }); Object.defineProperty(Zn, "isStrictBindReservedWord", { enumerable: !0, get: /* @__PURE__ */ s(function() { return gd.isStrictBindReservedWord; }, "get") }); Object.defineProperty(Zn, "isStrictReservedWord", { enumerable: !0, get: /* @__PURE__ */ s(function() { return gd.isStrictReservedWord; }, "get") }); var Z1 = Sj(), gd = Aj(); }); // ../node_modules/@babel/types/lib/validators/isValidIdentifier.js var Ol = E((eS) => { "use strict"; Object.defineProperty(eS, "__esModule", { value: !0 }); eS.default = zye; var Q1 = Il(); function zye(e, t = !0) { return typeof e != "string" || t && ((0, Q1.isKeyword)(e) || (0, Q1.isStrictReservedWord)(e, !0)) ? !1 : (0, Q1.isIdentifierName)(e); } s(zye, "isValidIdentifier"); }); // ../node_modules/@babel/helper-string-parser/lib/index.js var Ij = E((bd) => { "use strict"; Object.defineProperty(bd, "__esModule", { value: !0 }); bd.readCodePoint = Fj; bd.readInt = Pj; bd.readStringContents = Jye; var Gye = /* @__PURE__ */ s(function(t) { return t >= 48 && t <= 57; }, "isDigit"), _j = { decBinOct: /* @__PURE__ */ new Set([46, 66, 69, 79, 95, 98, 101, 111]), hex: /* @__PURE__ */ new Set([46, 88, 95, 120]) }, py = { bin: /* @__PURE__ */ s((e) => e === 48 || e === 49, "bin"), oct: /* @__PURE__ */ s((e) => e >= 48 && e <= 55, "oct"), dec: /* @__PURE__ */ s((e) => e >= 48 && e <= 57, "dec"), hex: /* @__PURE__ */ s((e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, "hex") }; function Jye(e, t, r, i, n, a) { let o = r, u = i, l = n, c = "", f = null, m = r, { length: h } = t; for (; ; ) { if (r >= h) { a.unterminated(o, u, l), c += t.slice(m, r); break; } let d = t.charCodeAt(r); if (Xye(e, d, t, r)) { c += t.slice(m, r); break; } if (d === 92) { c += t.slice(m, r); let y = Yye(t, r, i, n, e === "template", a); y.ch === null && !f ? f = { pos: r, lineStart: i, curLine: n } : c += y.ch, { pos: r, lineStart: i, curLine: n } = y, m = r; } else d === 8232 || d === 8233 ? (++r, ++n, i = r) : d === 10 || d === 13 ? e === "template" ? (c += t.slice(m, r) + ` `, ++r, d === 13 && t.charCodeAt(r) === 10 && ++r, ++n, m = i = r) : a.unterminated(o, u, l) : ++r; } return { pos: r, str: c, firstInvalidLoc: f, lineStart: i, curLine: n, containsInvalid: !!f }; } s(Jye, "readStringContents"); function Xye(e, t, r, i) { return e === "template" ? t === 96 || t === 36 && r.charCodeAt(i + 1) === 123 : t === (e === "double" ? 34 : 39); } s(Xye, "isStringEnd"); function Yye(e, t, r, i, n, a) { let o = !n; t++; let u = /* @__PURE__ */ s((c) => ({ pos: t, ch: c, lineStart: r, curLine: i }), "res"), l = e.charCodeAt(t++); switch (l) { case 110: return u(` `); case 114: return u("\r"); case 120: { let c; return { code: c, pos: t } = tS(e, t, r, i, 2, !1, o, a), u(c === null ? null : String.fromCharCode(c)); } case 117: { let c; return { code: c, pos: t } = Fj(e, t, r, i, o, a), u(c === null ? null : String.fromCodePoint(c)); } case 116: return u(" "); case 98: return u("\b"); case 118: return u("\v"); case 102: return u("\f"); case 13: e.charCodeAt(t) === 10 && ++t; case 10: r = t, ++i; case 8232: case 8233: return u(""); case 56: case 57: if (n) return u(null); a.strictNumericEscape(t - 1, r, i); default: if (l >= 48 && l <= 55) { let c = t - 1, m = /^[0-7]+/.exec(e.slice(c, t + 2))[0], h = parseInt(m, 8); h > 255 && (m = m.slice(0, -1), h = parseInt(m, 8)), t += m.length - 1; let d = e.charCodeAt(t); if (m !== "0" || d === 56 || d === 57) { if (n) return u(null); a.strictNumericEscape(c, r, i); } return u(String.fromCharCode(h)); } return u(String.fromCharCode(l)); } } s(Yye, "readEscapedChar"); function tS(e, t, r, i, n, a, o, u) { let l = t, c; return { n: c, pos: t } = Pj(e, t, r, i, 16, n, a, !1, u, !o), c === null && (o ? u.invalidEscapeSequence(l, r, i) : t = l - 1), { code: c, pos: t }; } s(tS, "readHexChar"); function Pj(e, t, r, i, n, a, o, u, l, c) { let f = t, m = n === 16 ? _j.hex : _j.decBinOct, h = n === 16 ? py.hex : n === 10 ? py.dec : n === 8 ? py.oct : py.bin, d = !1, y = 0; for (let p = 0, g = a ?? 1 / 0; p < g; ++p) { let b = e.charCodeAt(t), D; if (b === 95 && u !== "bail") { let v = e.charCodeAt(t - 1), S = e.charCodeAt(t + 1); if (u) { if (Number.isNaN(S) || !h(S) || m.has(v) || m.has(S)) { if (c) return { n: null, pos: t }; l.unexpectedNumericSeparator(t, r, i); } } else { if (c) return { n: null, pos: t }; l.numericSeparatorInEscapeSequence(t, r, i); } ++t; continue; } if (b >= 97 ? D = b - 97 + 10 : b >= 65 ? D = b - 65 + 10 : Gye(b) ? D = b - 48 : D = 1 / 0, D >= n) { if (D <= 9 && c) return { n: null, pos: t }; if (D <= 9 && l.invalidDigit(t, r, i, n)) D = 0; else if (o) D = 0, d = !0; else break; } ++t, y = y * n + D; } return t === f || a != null && t - f !== a || d ? { n: null, pos: t } : { n: y, pos: t }; } s(Pj, "readInt"); function Fj(e, t, r, i, n, a) { let o = e.charCodeAt(t), u; if (o === 123) { if (++t, { code: u, pos: t } = tS(e, t, r, i, e.indexOf("}", t) - t, !0, n, a), ++t, u !== null && u > 1114111) if (n) a.invalidCodePoint(t, r, i); else return { code: null, pos: t }; } else ({ code: u, pos: t } = tS(e, t, r, i, 4, !1, n, a)); return { code: u, pos: t }; } s(Fj, "readCodePoint"); }); // ../node_modules/@babel/types/lib/constants/index.js var kl = E((et) => { "use strict"; Object.defineProperty(et, "__esModule", { value: !0 }); et.UPDATE_OPERATORS = et.UNARY_OPERATORS = et.STRING_UNARY_OPERATORS = et.STATEMENT_OR_BLOCK_KEYS = et.NUMBER_UNARY_OPERATORS = et.NUMBER_BINARY_OPERATORS = et.LOGICAL_OPERATORS = et.INHERIT_KEYS = et.FOR_INIT_KEYS = et.FLATTENABLE_KEYS = et.EQUALITY_BINARY_OPERATORS = et.COMPARISON_BINARY_OPERATORS = et.COMMENT_KEYS = et.BOOLEAN_UNARY_OPERATORS = et.BOOLEAN_NUMBER_BINARY_OPERATORS = et.BOOLEAN_BINARY_OPERATORS = et.BINARY_OPERATORS = et. ASSIGNMENT_OPERATORS = void 0; var Ast = et.STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"], _st = et.FLATTENABLE_KEYS = ["body", "expressions"], Pst = et. FOR_INIT_KEYS = ["left", "init"], Fst = et.COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"], Zye = et.LOGICAL_OPERATORS = ["||", "&&", "??"], Ist = et.UPDATE_OPERATORS = ["++", "--"], Qye = et.BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="], e0e = et. EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="], t0e = et.COMPARISON_BINARY_OPERATORS = [...e0e, "in", "instanceof"], r0e = et.BOOLEAN_BINARY_OPERATORS = [...t0e, ...Qye], Oj = et.NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"], Ost = et.BINARY_OPERATORS = ["+", ...Oj, ...r0e, "|>"], kst = et.ASSIGNMENT_OPERATORS = ["=", "+=", ...Oj.map((e) => e + "="), ...Zye.map((e) => e + "=")], i0e = et.BOOLEAN_UNARY_OPERATORS = ["delete", "!"], n0e = et.NUMBER_UNARY_OPERATORS = ["+", "-", "~"], s0e = et.STRING_UNARY_OPERATORS = ["typeof"], Bst = et.UNARY_OPERATORS = ["void", "throw", ...i0e, ...n0e, ...s0e], Nst = et.INHERIT_KEYS = { optional: ["typeAnnotation", "typeParameters", "returnType"], force: ["start", "loc", "end"] }; et.BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped"), et.NOT_LOCAL_BINDING = Symbol.for("should not be considered a local bi\ nding"); }); // ../node_modules/@babel/types/lib/definitions/utils.js var Qn = E((ht) => { "use strict"; Object.defineProperty(ht, "__esModule", { value: !0 }); ht.allExpandedTypes = ht.VISITOR_KEYS = ht.NODE_PARENT_VALIDATIONS = ht.NODE_FIELDS = ht.FLIPPED_ALIAS_KEYS = ht.DEPRECATED_KEYS = ht.BUILDER_KEYS = ht.ALIAS_KEYS = void 0; ht.arrayOf = Bj; ht.arrayOfType = Nj; ht.assertEach = Mj; ht.assertNodeOrValueType = b0e; ht.assertNodeType = my; ht.assertOneOf = y0e; ht.assertOptionalChainStart = v0e; ht.assertShape = D0e; ht.assertValueType = sS; ht.chain = Rj; ht.default = jj; ht.defineAliasedType = S0e; ht.validate = nS; ht.validateArrayOfType = m0e; ht.validateOptional = p0e; ht.validateOptionalType = h0e; ht.validateType = d0e; var kj = Fl(), Dd = yy(), a0e = ht.VISITOR_KEYS = {}, o0e = ht.ALIAS_KEYS = {}, rS = ht.FLIPPED_ALIAS_KEYS = {}, u0e = ht.NODE_FIELDS = {}, l0e = ht.BUILDER_KEYS = {}, c0e = ht.DEPRECATED_KEYS = {}, f0e = ht.NODE_PARENT_VALIDATIONS = {}; function hy(e) { return Array.isArray(e) ? "array" : e === null ? "null" : typeof e; } s(hy, "getType"); function nS(e) { return { validate: e }; } s(nS, "validate"); function d0e(...e) { return nS(my(...e)); } s(d0e, "validateType"); function p0e(e) { return { validate: e, optional: !0 }; } s(p0e, "validateOptional"); function h0e(...e) { return { validate: my(...e), optional: !0 }; } s(h0e, "validateOptionalType"); function Bj(e) { return Rj(sS("array"), Mj(e)); } s(Bj, "arrayOf"); function Nj(...e) { return Bj(my(...e)); } s(Nj, "arrayOfType"); function m0e(...e) { return nS(Nj(...e)); } s(m0e, "validateArrayOfType"); function Mj(e) { let t = process.env.BABEL_TYPES_8_BREAKING ? Dd.validateChild : () => { }; function r(i, n, a) { if (!Array.isArray(a)) return; let o = 0, u = { toString() { return `${n}[${o}]`; } }; for (; o < a.length; o++) { let l = a[o]; e(i, u, l), t(i, u, l); } } return s(r, "validator"), r.each = e, r; } s(Mj, "assertEach"); function y0e(...e) { function t(r, i, n) { if (!e.includes(n)) throw new TypeError(`Property ${i} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(n)}`); } return s(t, "validate"), t.oneOf = e, t; } s(y0e, "assertOneOf"); var g0e = ht.allExpandedTypes = []; function my(...e) { let t = /* @__PURE__ */ new Set(); g0e.push({ types: e, set: t }); function r(i, n, a) { let o = a?.type; if (o != null) { if (t.has(o)) { (0, Dd.validateChild)(i, n, a); return; } if (o === "Placeholder") { for (let u of e) if ((0, kj.default)(u, a)) { (0, Dd.validateChild)(i, n, a); return; } } } throw new TypeError(`Property ${n} of ${i.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(o)}`); } return s(r, "validate"), r.oneOfNodeTypes = e, r; } s(my, "assertNodeType"); function b0e(...e) { function t(r, i, n) { let a = hy(n); for (let o of e) if (a === o || (0, kj.default)(o, n)) { (0, Dd.validateChild)(r, i, n); return; } throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(n?. type)}`); } return s(t, "validate"), t.oneOfNodeOrValueTypes = e, t; } s(b0e, "assertNodeOrValueType"); function sS(e) { function t(r, i, n) { if (hy(n) !== e) throw new TypeError(`Property ${i} expected type of ${e} but got ${hy(n)}`); } return s(t, "validate"), t.type = e, t; } s(sS, "assertValueType"); function D0e(e) { let t = Object.keys(e); function r(i, n, a) { let o = []; for (let u of t) try { (0, Dd.validateField)(i, u, a[u], e[u]); } catch (l) { if (l instanceof TypeError) { o.push(l.message); continue; } throw l; } if (o.length) throw new TypeError(`Property ${n} of ${i.type} expected to have the following: ${o.join(` `)}`); } return s(r, "validate"), r.shapeOf = e, r; } s(D0e, "assertShape"); function v0e() { function e(t) { var r; let i = t; for (; t; ) { let { type: n } = i; if (n === "OptionalCallExpression") { if (i.optional) return; i = i.callee; continue; } if (n === "OptionalMemberExpression") { if (i.optional) return; i = i.object; continue; } break; } throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chai\ n from ${(r = i) == null ? void 0 : r.type}`); } return s(e, "validate"), e; } s(v0e, "assertOptionalChainStart"); function Rj(...e) { function t(...r) { for (let i of e) i(...r); } if (s(t, "validate"), t.chainOf = e, e.length >= 2 && "type" in e[0] && e[0].type === "array" && !("each" in e[1])) throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.'); return t; } s(Rj, "chain"); var E0e = /* @__PURE__ */ new Set(["aliases", "builder", "deprecatedAlias", "fields", "inherits", "visitor", "validate"]), x0e = /* @__PURE__ */ new Set( ["default", "optional", "deprecated", "validate"]), iS = {}; function S0e(...e) { return (t, r = {}) => { let i = r.aliases; if (!i) { var n; r.inherits && (i = (n = iS[r.inherits].aliases) == null ? void 0 : n.slice()), i ?? (i = []), r.aliases = i; } let a = e.filter((o) => !i.includes(o)); i.unshift(...a), jj(t, r); }; } s(S0e, "defineAliasedType"); function jj(e, t = {}) { let r = t.inherits && iS[t.inherits] || {}, i = t.fields; if (!i && (i = {}, r.fields)) { let u = Object.getOwnPropertyNames(r.fields); for (let l of u) { let c = r.fields[l], f = c.default; if (Array.isArray(f) ? f.length > 0 : f && typeof f == "object") throw new Error("field defaults can only be primitives or empty arrays currently"); i[l] = { default: Array.isArray(f) ? [] : f, optional: c.optional, deprecated: c.deprecated, validate: c.validate }; } } let n = t.visitor || r.visitor || [], a = t.aliases || r.aliases || [], o = t.builder || r.builder || t.visitor || []; for (let u of Object.keys(t)) if (!E0e.has(u)) throw new Error(`Unknown type option "${u}" on ${e}`); t.deprecatedAlias && (c0e[t.deprecatedAlias] = e); for (let u of n.concat(o)) i[u] = i[u] || {}; for (let u of Object.keys(i)) { let l = i[u]; l.default !== void 0 && !o.includes(u) && (l.optional = !0), l.default === void 0 ? l.default = null : !l.validate && l.default != null && (l.validate = sS(hy(l.default))); for (let c of Object.keys(l)) if (!x0e.has(c)) throw new Error(`Unknown field key "${c}" on ${e}.${u}`); } a0e[e] = t.visitor = n, l0e[e] = t.builder = o, u0e[e] = t.fields = i, o0e[e] = t.aliases = a, a.forEach((u) => { rS[u] = rS[u] || [], rS[u].push(e); }), t.validate && (f0e[e] = t.validate), iS[e] = t; } s(jj, "defineType"); }); // ../node_modules/@babel/types/lib/definitions/core.js var Ed = E((ri) => { "use strict"; Object.defineProperty(ri, "__esModule", { value: !0 }); ri.patternLikeCommon = ri.importAttributes = ri.functionTypeAnnotationCommon = ri.functionDeclarationCommon = ri.functionCommon = ri.classMethodOrPropertyCommon = ri.classMethodOrDeclareMethodCommon = void 0; var di = Fl(), T0e = Ol(), Lj = Il(), C0e = Ij(), vd = kl(), I = Qn(), be = (0, I.defineAliasedType)("Standardized"); be("ArrayExpression", { fields: { elements: { validate: (0, I.arrayOf)((0, I.assertNodeOrValueType)("null", "Expression", "SpreadElement")), default: process.env.BABEL_TYPES_8_BREAKING ? void 0 : [] } }, visitor: ["elements"], aliases: ["Expression"] }); be("AssignmentExpression", { fields: { operator: { validate: process.env.BABEL_TYPES_8_BREAKING ? Object.assign(function() { let e = (0, I.assertOneOf)(...vd.ASSIGNMENT_OPERATORS), t = (0, I.assertOneOf)("="); return function(r, i, n) { ((0, di.default)("Pattern", r.left) ? t : e)(r, i, n); }; }(), { type: "string" }) : (0, I.assertValueType)("string") }, left: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.assertNodeType)("Identifier", "MemberExpression", "OptionalMemberExpression", "\ ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, I.assertNodeType)( "LVal", "OptionalMemberExpression") }, right: { validate: (0, I.assertNodeType)("Expression") } }, builder: ["operator", "left", "right"], visitor: ["left", "right"], aliases: ["Expression"] }); be("BinaryExpression", { builder: ["operator", "left", "right"], fields: { operator: { validate: (0, I.assertOneOf)(...vd.BINARY_OPERATORS) }, left: { validate: function() { let e = (0, I.assertNodeType)("Expression"), t = (0, I.assertNodeType)("Expression", "PrivateName"); return Object.assign(function(i, n, a) { (i.operator === "in" ? t : e)(i, n, a); }, { oneOfNodeTypes: ["Expression", "PrivateName"] }); }() }, right: { validate: (0, I.assertNodeType)("Expression") } }, visitor: ["left", "right"], aliases: ["Binary", "Expression"] }); be("InterpreterDirective", { builder: ["value"], fields: { value: { validate: (0, I.assertValueType)("string") } } }); be("Directive", { visitor: ["value"], fields: { value: { validate: (0, I.assertNodeType)("DirectiveLiteral") } } }); be("DirectiveLiteral", { builder: ["value"], fields: { value: { validate: (0, I.assertValueType)("string") } } }); be("BlockStatement", { builder: ["body", "directives"], visitor: ["directives", "body"], fields: { directives: { validate: (0, I.arrayOfType)("Directive"), default: [] }, body: (0, I.validateArrayOfType)("Statement") }, aliases: ["Scopable", "BlockParent", "Block", "Statement"] }); be("BreakStatement", { visitor: ["label"], fields: { label: { validate: (0, I.assertNodeType)("Identifier"), optional: !0 } }, aliases: ["Statement", "Terminatorless", "CompletionStatement"] }); be("CallExpression", { visitor: ["callee", "arguments", "typeParameters", "typeArguments"], builder: ["callee", "arguments"], aliases: ["Expression"], fields: Object.assign({ callee: { validate: (0, I.assertNodeType)("Expression", "Super", "V8IntrinsicIdentifier") }, arguments: (0, I.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"), typeArguments: { validate: (0, I.assertNodeType)("TypeParameterInstantiation"), optional: !0 } }, { optional: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, typeParameters: { validate: (0, I.assertNodeType)("TSTypeParameterInstantiation"), optional: !0 } }, process.env.BABEL_TYPES_8_BREAKING ? {} : { optional: { validate: (0, I.assertValueType)("boolean"), optional: !0 } }) }); be("CatchClause", { visitor: ["param", "body"], fields: { param: { validate: (0, I.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern"), optional: !0 }, body: { validate: (0, I.assertNodeType)("BlockStatement") } }, aliases: ["Scopable", "BlockParent"] }); be("ConditionalExpression", { visitor: ["test", "consequent", "alternate"], fields: { test: { validate: (0, I.assertNodeType)("Expression") }, consequent: { validate: (0, I.assertNodeType)("Expression") }, alternate: { validate: (0, I.assertNodeType)("Expression") } }, aliases: ["Expression", "Conditional"] }); be("ContinueStatement", { visitor: ["label"], fields: { label: { validate: (0, I.assertNodeType)("Identifier"), optional: !0 } }, aliases: ["Statement", "Terminatorless", "CompletionStatement"] }); be("DebuggerStatement", { aliases: ["Statement"] }); be("DoWhileStatement", { builder: ["test", "body"], visitor: ["body", "test"], fields: { test: { validate: (0, I.assertNodeType)("Expression") }, body: { validate: (0, I.assertNodeType)("Statement") } }, aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"] }); be("EmptyStatement", { aliases: ["Statement"] }); be("ExpressionStatement", { visitor: ["expression"], fields: { expression: { validate: (0, I.assertNodeType)("Expression") } }, aliases: ["Statement", "ExpressionWrapper"] }); be("File", { builder: ["program", "comments", "tokens"], visitor: ["program"], fields: { program: { validate: (0, I.assertNodeType)("Program") }, comments: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.assertEach)((0, I.assertNodeType)("CommentBlock", "CommentLine")) : Object.assign( () => { }, { each: { oneOfNodeTypes: ["CommentBlock", "CommentLine"] } }), optional: !0 }, tokens: { validate: (0, I.assertEach)(Object.assign(() => { }, { type: "any" })), optional: !0 } } }); be("ForInStatement", { visitor: ["left", "right", "body"], aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"], fields: { left: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.assertNodeType)("VariableDeclaration", "Identifier", "MemberExpression", "Array\ Pattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, I.assertNodeType)("Var\ iableDeclaration", "LVal") }, right: { validate: (0, I.assertNodeType)("Expression") }, body: { validate: (0, I.assertNodeType)("Statement") } } }); be("ForStatement", { visitor: ["init", "test", "update", "body"], aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop"], fields: { init: { validate: (0, I.assertNodeType)("VariableDeclaration", "Expression"), optional: !0 }, test: { validate: (0, I.assertNodeType)("Expression"), optional: !0 }, update: { validate: (0, I.assertNodeType)("Expression"), optional: !0 }, body: { validate: (0, I.assertNodeType)("Statement") } } }); var Bl = /* @__PURE__ */ s(() => ({ params: (0, I.validateArrayOfType)("Identifier", "Pattern", "RestElement"), generator: { default: !1 }, async: { default: !1 } }), "functionCommon"); ri.functionCommon = Bl; var Wo = /* @__PURE__ */ s(() => ({ returnType: { validate: (0, I.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, typeParameters: { validate: (0, I.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), optional: !0 } }), "functionTypeAnnotationCommon"); ri.functionTypeAnnotationCommon = Wo; var qj = /* @__PURE__ */ s(() => Object.assign({}, Bl(), { declare: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, id: { validate: (0, I.assertNodeType)("Identifier"), optional: !0 } }), "functionDeclarationCommon"); ri.functionDeclarationCommon = qj; be("FunctionDeclaration", { builder: ["id", "params", "body", "generator", "async"], visitor: ["id", "typeParameters", "params", "predicate", "returnType", "body"], fields: Object.assign({}, qj(), Wo(), { body: { validate: (0, I.assertNodeType)("BlockStatement") }, predicate: { validate: (0, I.assertNodeType)("DeclaredPredicate", "InferredPredicate"), optional: !0 } }), aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Statement", "Pureish", "Declaration"], validate: process.env.BABEL_TYPES_8_BREAKING ? function() { let e = (0, I.assertNodeType)("Identifier"); return function(t, r, i) { (0, di.default)("ExportDefaultDeclaration", t) || e(i, "id", i.id); }; }() : void 0 }); be("FunctionExpression", { inherits: "FunctionDeclaration", aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"], fields: Object.assign({}, Bl(), Wo(), { id: { validate: (0, I.assertNodeType)("Identifier"), optional: !0 }, body: { validate: (0, I.assertNodeType)("BlockStatement") }, predicate: { validate: (0, I.assertNodeType)("DeclaredPredicate", "InferredPredicate"), optional: !0 } }) }); var Nl = /* @__PURE__ */ s(() => ({ typeAnnotation: { validate: (0, I.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, optional: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 } }), "patternLikeCommon"); ri.patternLikeCommon = Nl; be("Identifier", { builder: ["name"], visitor: ["typeAnnotation", "decorators"], aliases: ["Expression", "PatternLike", "LVal", "TSEntityName"], fields: Object.assign({}, Nl(), { name: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertValueType)("string"), Object.assign(function(e, t, r) { if (!(0, T0e.default)(r, !1)) throw new TypeError(`"${r}" is not a valid identifier name`); }, { type: "string" })) : (0, I.assertValueType)("string") } }), validate: process.env.BABEL_TYPES_8_BREAKING ? function(e, t, r) { let i = /\.(\w+)$/.exec(t.toString()); if (!i) return; let [, n] = i, a = { computed: !1 }; if (n === "property") { if ((0, di.default)("MemberExpression", e, a) || (0, di.default)("OptionalMemberExpression", e, a)) return; } else if (n === "key") { if ((0, di.default)("Property", e, a) || (0, di.default)("Method", e, a)) return; } else if (n === "exported") { if ((0, di.default)("ExportSpecifier", e)) return; } else if (n === "imported") { if ((0, di.default)("ImportSpecifier", e, { imported: r })) return; } else if (n === "meta" && (0, di.default)("MetaProperty", e, { meta: r })) return; if (((0, Lj.isKeyword)(r.name) || (0, Lj.isReservedWord)(r.name, !1)) && r.name !== "this") throw new TypeError(`"${r.name}" is not a valid identifier`); } : void 0 }); be("IfStatement", { visitor: ["test", "consequent", "alternate"], aliases: ["Statement", "Conditional"], fields: { test: { validate: (0, I.assertNodeType)("Expression") }, consequent: { validate: (0, I.assertNodeType)("Statement") }, alternate: { optional: !0, validate: (0, I.assertNodeType)("Statement") } } }); be("LabeledStatement", { visitor: ["label", "body"], aliases: ["Statement"], fields: { label: { validate: (0, I.assertNodeType)("Identifier") }, body: { validate: (0, I.assertNodeType)("Statement") } } }); be("StringLiteral", { builder: ["value"], fields: { value: { validate: (0, I.assertValueType)("string") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); be("NumericLiteral", { builder: ["value"], deprecatedAlias: "NumberLiteral", fields: { value: { validate: (0, I.chain)((0, I.assertValueType)("number"), Object.assign(function(e, t, r) { if (1 / r < 0 || !Number.isFinite(r)) { let i = new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`); } }, { type: "number" })) } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); be("NullLiteral", { aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); be("BooleanLiteral", { builder: ["value"], fields: { value: { validate: (0, I.assertValueType)("boolean") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); be("RegExpLiteral", { builder: ["pattern", "flags"], deprecatedAlias: "RegexLiteral", aliases: ["Expression", "Pureish", "Literal"], fields: { pattern: { validate: (0, I.assertValueType)("string") }, flags: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertValueType)("string"), Object.assign(function(e, t, r) { let i = /[^gimsuy]/.exec(r); if (i) throw new TypeError(`"${i[0]}" is not a valid RegExp flag`); }, { type: "string" })) : (0, I.assertValueType)("string"), default: "" } } }); be("LogicalExpression", { builder: ["operator", "left", "right"], visitor: ["left", "right"], aliases: ["Binary", "Expression"], fields: { operator: { validate: (0, I.assertOneOf)(...vd.LOGICAL_OPERATORS) }, left: { validate: (0, I.assertNodeType)("Expression") }, right: { validate: (0, I.assertNodeType)("Expression") } } }); be("MemberExpression", { builder: ["object", "property", "computed", ...process.env.BABEL_TYPES_8_BREAKING ? [] : ["optional"]], visitor: ["object", "property"], aliases: ["Expression", "LVal"], fields: Object.assign({ object: { validate: (0, I.assertNodeType)("Expression", "Super") }, property: { validate: function() { let e = (0, I.assertNodeType)("Identifier", "PrivateName"), t = (0, I.assertNodeType)("Expression"), r = /* @__PURE__ */ s(function(i, n, a) { (i.computed ? t : e)(i, n, a); }, "validator"); return r.oneOfNodeTypes = ["Expression", "Identifier", "PrivateName"], r; }() }, computed: { default: !1 } }, process.env.BABEL_TYPES_8_BREAKING ? {} : { optional: { validate: (0, I.assertValueType)("boolean"), optional: !0 } }) }); be("NewExpression", { inherits: "CallExpression" }); be("Program", { visitor: ["directives", "body"], builder: ["body", "directives", "sourceType", "interpreter"], fields: { sourceType: { validate: (0, I.assertOneOf)("script", "module"), default: "script" }, interpreter: { validate: (0, I.assertNodeType)("InterpreterDirective"), default: null, optional: !0 }, directives: { validate: (0, I.arrayOfType)("Directive"), default: [] }, body: (0, I.validateArrayOfType)("Statement") }, aliases: ["Scopable", "BlockParent", "Block"] }); be("ObjectExpression", { visitor: ["properties"], aliases: ["Expression"], fields: { properties: (0, I.validateArrayOfType)("ObjectMethod", "ObjectProperty", "SpreadElement") } }); be("ObjectMethod", { builder: ["kind", "key", "params", "body", "computed", "generator", "async"], visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"], fields: Object.assign({}, Bl(), Wo(), { kind: Object.assign({ validate: (0, I.assertOneOf)("method", "get", "set") }, process.env.BABEL_TYPES_8_BREAKING ? {} : { default: "method" }), computed: { default: !1 }, key: { validate: function() { let e = (0, I.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"), t = (0, I.assertNodeType)("Expres\ sion"), r = /* @__PURE__ */ s(function(i, n, a) { (i.computed ? t : e)(i, n, a); }, "validator"); return r.oneOfNodeTypes = ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"], r; }() }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 }, body: { validate: (0, I.assertNodeType)("BlockStatement") } }), aliases: ["UserWhitespacable", "Function", "Scopable", "BlockParent", "FunctionParent", "Method", "ObjectMember"] }); be("ObjectProperty", { builder: ["key", "value", "computed", "shorthand", ...process.env.BABEL_TYPES_8_BREAKING ? [] : ["decorators"]], fields: { computed: { default: !1 }, key: { validate: function() { let e = (0, I.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"), t = (0, I. assertNodeType)("Expression"); return Object.assign(function(i, n, a) { (i.computed ? t : e)(i, n, a); }, { oneOfNodeTypes: ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"] }); }() }, value: { validate: (0, I.assertNodeType)("Expression", "PatternLike") }, shorthand: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertValueType)("boolean"), Object.assign(function(e, t, r) { if (r) { if (e.computed) throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true"); if (!(0, di.default)("Identifier", e.key)) throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier"); } }, { type: "boolean" })) : (0, I.assertValueType)("boolean"), default: !1 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 } }, visitor: ["key", "value", "decorators"], aliases: ["UserWhitespacable", "Property", "ObjectMember"], validate: process.env.BABEL_TYPES_8_BREAKING ? function() { let e = (0, I.assertNodeType)("Identifier", "Pattern", "TSAsExpression", "TSSatisfiesExpression", "TSNonNullExpression", "TSTypeAssert\ ion"), t = (0, I.assertNodeType)("Expression"); return function(r, i, n) { ((0, di.default)("ObjectPattern", r) ? e : t)(n, "value", n.value); }; }() : void 0 }); be("RestElement", { visitor: ["argument", "typeAnnotation"], builder: ["argument"], aliases: ["LVal", "PatternLike"], deprecatedAlias: "RestProperty", fields: Object.assign({}, Nl(), { argument: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpressio\ n", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, I.assertNodeType)("LVal") } }), validate: process.env.BABEL_TYPES_8_BREAKING ? function(e, t) { let r = /(\w+)\[(\d+)\]/.exec(t.toString()); if (!r) throw new Error("Internal Babel error: malformed key."); let [, i, n] = r; if (e[i].length > +n + 1) throw new TypeError(`RestElement must be last element of ${i}`); } : void 0 }); be("ReturnStatement", { visitor: ["argument"], aliases: ["Statement", "Terminatorless", "CompletionStatement"], fields: { argument: { validate: (0, I.assertNodeType)("Expression"), optional: !0 } } }); be("SequenceExpression", { visitor: ["expressions"], fields: { expressions: (0, I.validateArrayOfType)("Expression") }, aliases: ["Expression"] }); be("ParenthesizedExpression", { visitor: ["expression"], aliases: ["Expression", "ExpressionWrapper"], fields: { expression: { validate: (0, I.assertNodeType)("Expression") } } }); be("SwitchCase", { visitor: ["test", "consequent"], fields: { test: { validate: (0, I.assertNodeType)("Expression"), optional: !0 }, consequent: (0, I.validateArrayOfType)("Statement") } }); be("SwitchStatement", { visitor: ["discriminant", "cases"], aliases: ["Statement", "BlockParent", "Scopable"], fields: { discriminant: { validate: (0, I.assertNodeType)("Expression") }, cases: (0, I.validateArrayOfType)("SwitchCase") } }); be("ThisExpression", { aliases: ["Expression"] }); be("ThrowStatement", { visitor: ["argument"], aliases: ["Statement", "Terminatorless", "CompletionStatement"], fields: { argument: { validate: (0, I.assertNodeType)("Expression") } } }); be("TryStatement", { visitor: ["block", "handler", "finalizer"], aliases: ["Statement"], fields: { block: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertNodeType)("BlockStatement"), Object.assign(function(e) { if (!e.handler && !e.finalizer) throw new TypeError("TryStatement expects either a handler or finalizer, or both"); }, { oneOfNodeTypes: ["BlockStatement"] })) : (0, I.assertNodeType)("BlockStatement") }, handler: { optional: !0, validate: (0, I.assertNodeType)("CatchClause") }, finalizer: { optional: !0, validate: (0, I.assertNodeType)("BlockStatement") } } }); be("UnaryExpression", { builder: ["operator", "argument", "prefix"], fields: { prefix: { default: !0 }, argument: { validate: (0, I.assertNodeType)("Expression") }, operator: { validate: (0, I.assertOneOf)(...vd.UNARY_OPERATORS) } }, visitor: ["argument"], aliases: ["UnaryLike", "Expression"] }); be("UpdateExpression", { builder: ["operator", "argument", "prefix"], fields: { prefix: { default: !1 }, argument: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.assertNodeType)("Identifier", "MemberExpression") : (0, I.assertNodeType)("Expr\ ession") }, operator: { validate: (0, I.assertOneOf)(...vd.UPDATE_OPERATORS) } }, visitor: ["argument"], aliases: ["Expression"] }); be("VariableDeclaration", { builder: ["kind", "declarations"], visitor: ["declarations"], aliases: ["Statement", "Declaration"], fields: { declare: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, kind: { validate: (0, I.assertOneOf)("var", "let", "const", "using", "await using") }, declarations: (0, I.validateArrayOfType)("VariableDeclarator") }, validate: process.env.BABEL_TYPES_8_BREAKING ? (() => { let e = (0, I.assertNodeType)("Identifier"); return function(t, r, i) { if ((0, di.default)("ForXStatement", t, { left: i })) { if (i.declarations.length !== 1) throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${t.type}`); } else i.declarations.forEach((n) => { n.init || e(n, "id", n.id); }); }; })() : void 0 }); be("VariableDeclarator", { visitor: ["id", "init"], fields: { id: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern") : (0, I.assertNodeType)( "LVal") }, definite: { optional: !0, validate: (0, I.assertValueType)("boolean") }, init: { optional: !0, validate: (0, I.assertNodeType)("Expression") } } }); be("WhileStatement", { visitor: ["test", "body"], aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"], fields: { test: { validate: (0, I.assertNodeType)("Expression") }, body: { validate: (0, I.assertNodeType)("Statement") } } }); be("WithStatement", { visitor: ["object", "body"], aliases: ["Statement"], fields: { object: { validate: (0, I.assertNodeType)("Expression") }, body: { validate: (0, I.assertNodeType)("Statement") } } }); be("AssignmentPattern", { visitor: ["left", "right", "decorators"], builder: ["left", "right"], aliases: ["Pattern", "PatternLike", "LVal"], fields: Object.assign({}, Nl(), { left: { validate: (0, I.assertNodeType)("Identifier", "ObjectPattern", "ArrayPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExp\ ression", "TSTypeAssertion", "TSNonNullExpression") }, right: { validate: (0, I.assertNodeType)("Expression") }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 } }) }); be("ArrayPattern", { visitor: ["elements", "typeAnnotation"], builder: ["elements"], aliases: ["Pattern", "PatternLike", "LVal"], fields: Object.assign({}, Nl(), { elements: { validate: (0, I.chain)((0, I.assertValueType)("array"), (0, I.assertEach)((0, I.assertNodeOrValueType)("null", "PatternLike", "LVal"))) } }) }); be("ArrowFunctionExpression", { builder: ["params", "body", "async"], visitor: ["typeParameters", "params", "predicate", "returnType", "body"], aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"], fields: Object.assign({}, Bl(), Wo(), { expression: { validate: (0, I.assertValueType)("boolean") }, body: { validate: (0, I.assertNodeType)("BlockStatement", "Expression") }, predicate: { validate: (0, I.assertNodeType)("DeclaredPredicate", "InferredPredicate"), optional: !0 } }) }); be("ClassBody", { visitor: ["body"], fields: { body: (0, I.validateArrayOfType)("ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassPrivateProperty", "ClassAccessorProperty", "TSDeclareMethod", "TSIndexSignature", "StaticBlock") } }); be("ClassExpression", { builder: ["id", "superClass", "body", "decorators"], visitor: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body"], aliases: ["Scopable", "Class", "Expression"], fields: { id: { validate: (0, I.assertNodeType)("Identifier"), optional: !0 }, typeParameters: { validate: (0, I.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), optional: !0 }, body: { validate: (0, I.assertNodeType)("ClassBody") }, superClass: { optional: !0, validate: (0, I.assertNodeType)("Expression") }, superTypeParameters: { validate: (0, I.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), optional: !0 }, implements: { validate: (0, I.arrayOfType)("TSExpressionWithTypeArguments", "ClassImplements"), optional: !0 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 }, mixins: { validate: (0, I.assertNodeType)("InterfaceExtends"), optional: !0 } } }); be("ClassDeclaration", { inherits: "ClassExpression", aliases: ["Scopable", "Class", "Statement", "Declaration"], fields: { id: { validate: (0, I.assertNodeType)("Identifier"), optional: !0 }, typeParameters: { validate: (0, I.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), optional: !0 }, body: { validate: (0, I.assertNodeType)("ClassBody") }, superClass: { optional: !0, validate: (0, I.assertNodeType)("Expression") }, superTypeParameters: { validate: (0, I.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), optional: !0 }, implements: { validate: (0, I.arrayOfType)("TSExpressionWithTypeArguments", "ClassImplements"), optional: !0 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 }, mixins: { validate: (0, I.assertNodeType)("InterfaceExtends"), optional: !0 }, declare: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, abstract: { validate: (0, I.assertValueType)("boolean"), optional: !0 } }, validate: process.env.BABEL_TYPES_8_BREAKING ? function() { let e = (0, I.assertNodeType)("Identifier"); return function(t, r, i) { (0, di.default)("ExportDefaultDeclaration", t) || e(i, "id", i.id); }; }() : void 0 }); var aS = ri.importAttributes = { attributes: { optional: !0, validate: (0, I.arrayOfType)("ImportAttribute") }, assertions: { deprecated: !0, optional: !0, validate: (0, I.arrayOfType)("ImportAttribute") } }; be("ExportAllDeclaration", { builder: ["source"], visitor: ["source", "attributes", "assertions"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"], fields: Object.assign({ source: { validate: (0, I.assertNodeType)("StringLiteral") }, exportKind: (0, I.validateOptional)((0, I.assertOneOf)("type", "value")) }, aS) }); be("ExportDefaultDeclaration", { visitor: ["declaration"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"], fields: { declaration: (0, I.validateType)("TSDeclareFunction", "FunctionDeclaration", "ClassDeclaration", "Expression"), exportKind: (0, I.validateOptional)((0, I.assertOneOf)("value")) } }); be("ExportNamedDeclaration", { builder: ["declaration", "specifiers", "source"], visitor: process.env ? ["declaration", "specifiers", "source", "attributes"] : ["declaration", "specifiers", "source", "attributes", "as\ sertions"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"], fields: Object.assign({ declaration: { optional: !0, validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertNodeType)("Declaration"), Object.assign(function(e, t, r) { if (r && e.specifiers.length) throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration"); if (r && e.source) throw new TypeError("Cannot export a declaration from a source"); }, { oneOfNodeTypes: ["Declaration"] })) : (0, I.assertNodeType)("Declaration") } }, aS, { specifiers: { default: [], validate: (0, I.arrayOf)(function() { let e = (0, I.assertNodeType)("ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"), t = (0, I.assertNodeType)( "ExportSpecifier"); return process.env.BABEL_TYPES_8_BREAKING ? Object.assign(function(r, i, n) { (r.source ? e : t)(r, i, n); }, { oneOfNodeTypes: ["ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"] }) : e; }()) }, source: { validate: (0, I.assertNodeType)("StringLiteral"), optional: !0 }, exportKind: (0, I.validateOptional)((0, I.assertOneOf)("type", "value")) }) }); be("ExportSpecifier", { visitor: ["local", "exported"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, I.assertNodeType)("Identifier") }, exported: { validate: (0, I.assertNodeType)("Identifier", "StringLiteral") }, exportKind: { validate: (0, I.assertOneOf)("type", "value"), optional: !0 } } }); be("ForOfStatement", { visitor: ["left", "right", "body"], builder: ["left", "right", "body", "await"], aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"], fields: { left: { validate: function() { if (!process.env.BABEL_TYPES_8_BREAKING) return (0, I.assertNodeType)("VariableDeclaration", "LVal"); let e = (0, I.assertNodeType)("VariableDeclaration"), t = (0, I.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "\ ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression"); return Object.assign(function(r, i, n) { (0, di.default)("VariableDeclaration", n) ? e(r, i, n) : t(r, i, n); }, { oneOfNodeTypes: ["VariableDeclaration", "Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TS\ SatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression"] }); }() }, right: { validate: (0, I.assertNodeType)("Expression") }, body: { validate: (0, I.assertNodeType)("Statement") }, await: { default: !1 } } }); be("ImportDeclaration", { builder: ["specifiers", "source"], visitor: ["specifiers", "source", "attributes", "assertions"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration"], fields: Object.assign({}, aS, { module: { optional: !0, validate: (0, I.assertValueType)("boolean") }, phase: { default: null, validate: (0, I.assertOneOf)("source", "defer") }, specifiers: (0, I.validateArrayOfType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier"), source: { validate: (0, I.assertNodeType)("StringLiteral") }, importKind: { validate: (0, I.assertOneOf)("type", "typeof", "value"), optional: !0 } }) }); be("ImportDefaultSpecifier", { visitor: ["local"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, I.assertNodeType)("Identifier") } } }); be("ImportNamespaceSpecifier", { visitor: ["local"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, I.assertNodeType)("Identifier") } } }); be("ImportSpecifier", { visitor: ["imported", "local"], builder: ["local", "imported"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, I.assertNodeType)("Identifier") }, imported: { validate: (0, I.assertNodeType)("Identifier", "StringLiteral") }, importKind: { validate: (0, I.assertOneOf)("type", "typeof", "value"), optional: !0 } } }); be("ImportExpression", { visitor: ["source", "options"], aliases: ["Expression"], fields: { phase: { default: null, validate: (0, I.assertOneOf)("source", "defer") }, source: { validate: (0, I.assertNodeType)("Expression") }, options: { validate: (0, I.assertNodeType)("Expression"), optional: !0 } } }); be("MetaProperty", { visitor: ["meta", "property"], aliases: ["Expression"], fields: { meta: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertNodeType)("Identifier"), Object.assign(function(e, t, r) { let i; switch (r.name) { case "function": i = "sent"; break; case "new": i = "target"; break; case "import": i = "meta"; break; } if (!(0, di.default)("Identifier", e.property, { name: i })) throw new TypeError("Unrecognised MetaProperty"); }, { oneOfNodeTypes: ["Identifier"] })) : (0, I.assertNodeType)("Identifier") }, property: { validate: (0, I.assertNodeType)("Identifier") } } }); var gy = /* @__PURE__ */ s(() => ({ abstract: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, accessibility: { validate: (0, I.assertOneOf)("public", "private", "protected"), optional: !0 }, static: { default: !1 }, override: { default: !1 }, computed: { default: !1 }, optional: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, key: { validate: (0, I.chain)(function() { let e = (0, I.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"), t = (0, I.assertNodeType)("Expressi\ on"); return function(r, i, n) { (r.computed ? t : e)(r, i, n); }; }(), (0, I.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression")) } }), "classMethodOrPropertyCommon"); ri.classMethodOrPropertyCommon = gy; var oS = /* @__PURE__ */ s(() => Object.assign({}, Bl(), gy(), { params: (0, I.validateArrayOfType)("Identifier", "Pattern", "RestElement", "TSParameterProperty"), kind: { validate: (0, I.assertOneOf)("get", "set", "method", "constructor"), default: "method" }, access: { validate: (0, I.chain)((0, I.assertValueType)("string"), (0, I.assertOneOf)("public", "private", "protected")), optional: !0 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 } }), "classMethodOrDeclareMethodCommon"); ri.classMethodOrDeclareMethodCommon = oS; be("ClassMethod", { aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"], builder: ["kind", "key", "params", "body", "computed", "static", "generator", "async"], visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"], fields: Object.assign({}, oS(), Wo(), { body: { validate: (0, I.assertNodeType)("BlockStatement") } }) }); be("ObjectPattern", { visitor: ["properties", "typeAnnotation", "decorators"], builder: ["properties"], aliases: ["Pattern", "PatternLike", "LVal"], fields: Object.assign({}, Nl(), { properties: (0, I.validateArrayOfType)("RestElement", "ObjectProperty") }) }); be("SpreadElement", { visitor: ["argument"], aliases: ["UnaryLike"], deprecatedAlias: "SpreadProperty", fields: { argument: { validate: (0, I.assertNodeType)("Expression") } } }); be("Super", { aliases: ["Expression"] }); be("TaggedTemplateExpression", { visitor: ["tag", "typeParameters", "quasi"], builder: ["tag", "quasi"], aliases: ["Expression"], fields: { tag: { validate: (0, I.assertNodeType)("Expression") }, quasi: { validate: (0, I.assertNodeType)("TemplateLiteral") }, typeParameters: { validate: (0, I.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), optional: !0 } } }); be("TemplateElement", { builder: ["value", "tail"], fields: { value: { validate: (0, I.chain)((0, I.assertShape)({ raw: { validate: (0, I.assertValueType)("string") }, cooked: { validate: (0, I.assertValueType)("string"), optional: !0 } }), /* @__PURE__ */ s(function(t) { let r = t.value.raw, i = !1, n = /* @__PURE__ */ s(() => { throw new Error("Internal @babel/types error."); }, "error"), { str: a, firstInvalidLoc: o } = (0, C0e.readStringContents)("template", r, 0, 0, 0, { unterminated() { i = !0; }, strictNumericEscape: n, invalidEscapeSequence: n, numericSeparatorInEscapeSequence: n, unexpectedNumericSeparator: n, invalidDigit: n, invalidCodePoint: n }); if (!i) throw new Error("Invalid raw"); t.value.cooked = o ? null : a; }, "templateElementCookedValidator")) }, tail: { default: !1 } } }); be("TemplateLiteral", { visitor: ["quasis", "expressions"], aliases: ["Expression", "Literal"], fields: { quasis: (0, I.validateArrayOfType)("TemplateElement"), expressions: { validate: (0, I.chain)((0, I.assertValueType)("array"), (0, I.assertEach)((0, I.assertNodeType)("Expression", "TSType")), function(e, t, r) { if (e.quasis.length !== r.length + 1) throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions. Expected ${r.length + 1} quasis but got ${e.quasis.length}`); }) } } }); be("YieldExpression", { builder: ["argument", "delegate"], visitor: ["argument"], aliases: ["Expression", "Terminatorless"], fields: { delegate: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertValueType)("boolean"), Object.assign(function(e, t, r) { if (r && !e.argument) throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument"); }, { type: "boolean" })) : (0, I.assertValueType)("boolean"), default: !1 }, argument: { optional: !0, validate: (0, I.assertNodeType)("Expression") } } }); be("AwaitExpression", { builder: ["argument"], visitor: ["argument"], aliases: ["Expression", "Terminatorless"], fields: { argument: { validate: (0, I.assertNodeType)("Expression") } } }); be("Import", { aliases: ["Expression"] }); be("BigIntLiteral", { builder: ["value"], fields: { value: { validate: (0, I.assertValueType)("string") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); be("ExportNamespaceSpecifier", { visitor: ["exported"], aliases: ["ModuleSpecifier"], fields: { exported: { validate: (0, I.assertNodeType)("Identifier") } } }); be("OptionalMemberExpression", { builder: ["object", "property", "computed", "optional"], visitor: ["object", "property"], aliases: ["Expression"], fields: { object: { validate: (0, I.assertNodeType)("Expression") }, property: { validate: function() { let e = (0, I.assertNodeType)("Identifier"), t = (0, I.assertNodeType)("Expression"); return Object.assign(function(i, n, a) { (i.computed ? t : e)(i, n, a); }, { oneOfNodeTypes: ["Expression", "Identifier"] }); }() }, computed: { default: !1 }, optional: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertValueType)("boolean"), (0, I.assertOptionalChainStart)()) : (0, I. assertValueType)("boolean") } } }); be("OptionalCallExpression", { visitor: ["callee", "arguments", "typeParameters", "typeArguments"], builder: ["callee", "arguments", "optional"], aliases: ["Expression"], fields: Object.assign({ callee: { validate: (0, I.assertNodeType)("Expression") }, arguments: (0, I.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"), optional: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertValueType)("boolean"), (0, I.assertOptionalChainStart)()) : (0, I. assertValueType)("boolean") }, typeArguments: { validate: (0, I.assertNodeType)("TypeParameterInstantiation"), optional: !0 } }, { typeParameters: { validate: (0, I.assertNodeType)("TSTypeParameterInstantiation"), optional: !0 } }) }); be("ClassProperty", { visitor: ["decorators", "variance", "key", "typeAnnotation", "value"], builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"], aliases: ["Property"], fields: Object.assign({}, gy(), { value: { validate: (0, I.assertNodeType)("Expression"), optional: !0 }, definite: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, typeAnnotation: { validate: (0, I.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 }, readonly: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, declare: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, variance: { validate: (0, I.assertNodeType)("Variance"), optional: !0 } }) }); be("ClassAccessorProperty", { visitor: ["decorators", "key", "typeAnnotation", "value"], builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"], aliases: ["Property", "Accessor"], fields: Object.assign({}, gy(), { key: { validate: (0, I.chain)(function() { let e = (0, I.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName"), t = (0, I.assertNodeType)( "Expression"); return function(r, i, n) { (r.computed ? t : e)(r, i, n); }; }(), (0, I.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression", "PrivateName")) }, value: { validate: (0, I.assertNodeType)("Expression"), optional: !0 }, definite: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, typeAnnotation: { validate: (0, I.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 }, readonly: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, declare: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, variance: { validate: (0, I.assertNodeType)("Variance"), optional: !0 } }) }); be("ClassPrivateProperty", { visitor: ["decorators", "variance", "key", "typeAnnotation", "value"], builder: ["key", "value", "decorators", "static"], aliases: ["Property", "Private"], fields: { key: { validate: (0, I.assertNodeType)("PrivateName") }, value: { validate: (0, I.assertNodeType)("Expression"), optional: !0 }, typeAnnotation: { validate: (0, I.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 }, static: { validate: (0, I.assertValueType)("boolean"), default: !1 }, readonly: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, optional: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, definite: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, variance: { validate: (0, I.assertNodeType)("Variance"), optional: !0 } } }); be("ClassPrivateMethod", { builder: ["kind", "key", "params", "body", "static"], visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"], aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method", "Private"], fields: Object.assign({}, oS(), Wo(), { kind: { validate: (0, I.assertOneOf)("get", "set", "method"), default: "method" }, key: { validate: (0, I.assertNodeType)("PrivateName") }, body: { validate: (0, I.assertNodeType)("BlockStatement") } }) }); be("PrivateName", { visitor: ["id"], aliases: ["Private"], fields: { id: { validate: (0, I.assertNodeType)("Identifier") } } }); be("StaticBlock", { visitor: ["body"], fields: { body: (0, I.validateArrayOfType)("Statement") }, aliases: ["Scopable", "BlockParent", "FunctionParent"] }); be("ImportAttribute", { visitor: ["key", "value"], fields: { key: { validate: (0, I.assertNodeType)("Identifier", "StringLiteral") }, value: { validate: (0, I.assertNodeType)("StringLiteral") } } }); }); // ../node_modules/@babel/types/lib/definitions/flow.js var Wj = E(() => { "use strict"; var Uj = Ed(), z = Qn(), Fe = (0, z.defineAliasedType)("Flow"), uS = /* @__PURE__ */ s((e) => { let t = e === "DeclareClass"; Fe(e, { builder: ["id", "typeParameters", "extends", "body"], visitor: ["id", "typeParameters", "extends", ...t ? ["mixins", "implements"] : [], "body"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: Object.assign({ id: (0, z.validateType)("Identifier"), typeParameters: (0, z.validateOptionalType)("TypeParameterDeclaration"), extends: (0, z.validateOptional)((0, z.arrayOfType)("InterfaceExtends")) }, t ? { mixins: (0, z.validateOptional)((0, z.arrayOfType)("InterfaceExtends")), implements: (0, z.validateOptional)((0, z.arrayOfType)("ClassImplements")) } : {}, { body: (0, z.validateType)("ObjectTypeAnnotation") }) }); }, "defineInterfaceishType"); Fe("AnyTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); Fe("ArrayTypeAnnotation", { visitor: ["elementType"], aliases: ["FlowType"], fields: { elementType: (0, z.validateType)("FlowType") } }); Fe("BooleanTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); Fe("BooleanLiteralTypeAnnotation", { builder: ["value"], aliases: ["FlowType"], fields: { value: (0, z.validate)((0, z.assertValueType)("boolean")) } }); Fe("NullLiteralTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); Fe("ClassImplements", { visitor: ["id", "typeParameters"], fields: { id: (0, z.validateType)("Identifier"), typeParameters: (0, z.validateOptionalType)("TypeParameterInstantiation") } }); uS("DeclareClass"); Fe("DeclareFunction", { builder: ["id"], visitor: ["id", "predicate"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, z.validateType)("Identifier"), predicate: (0, z.validateOptionalType)("DeclaredPredicate") } }); uS("DeclareInterface"); Fe("DeclareModule", { builder: ["id", "body", "kind"], visitor: ["id", "body"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, z.validateType)("Identifier", "StringLiteral"), body: (0, z.validateType)("BlockStatement"), kind: (0, z.validateOptional)((0, z.assertOneOf)("CommonJS", "ES")) } }); Fe("DeclareModuleExports", { visitor: ["typeAnnotation"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { typeAnnotation: (0, z.validateType)("TypeAnnotation") } }); Fe("DeclareTypeAlias", { visitor: ["id", "typeParameters", "right"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, z.validateType)("Identifier"), typeParameters: (0, z.validateOptionalType)("TypeParameterDeclaration"), right: (0, z.validateType)("FlowType") } }); Fe("DeclareOpaqueType", { visitor: ["id", "typeParameters", "supertype"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, z.validateType)("Identifier"), typeParameters: (0, z.validateOptionalType)("TypeParameterDeclaration"), supertype: (0, z.validateOptionalType)("FlowType"), impltype: (0, z.validateOptionalType)("FlowType") } }); Fe("DeclareVariable", { visitor: ["id"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, z.validateType)("Identifier") } }); Fe("DeclareExportDeclaration", { visitor: ["declaration", "specifiers", "source", "attributes"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: Object.assign({ declaration: (0, z.validateOptionalType)("Flow"), specifiers: (0, z.validateOptional)((0, z.arrayOfType)("ExportSpecifier", "ExportNamespaceSpecifier")), source: (0, z.validateOptionalType)("StringLiteral"), default: (0, z.validateOptional)((0, z.assertValueType)("boolean")) }, Uj.importAttributes) }); Fe("DeclareExportAllDeclaration", { visitor: ["source", "attributes"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: Object.assign({ source: (0, z.validateType)("StringLiteral"), exportKind: (0, z.validateOptional)((0, z.assertOneOf)("type", "value")) }, Uj.importAttributes) }); Fe("DeclaredPredicate", { visitor: ["value"], aliases: ["FlowPredicate"], fields: { value: (0, z.validateType)("Flow") } }); Fe("ExistsTypeAnnotation", { aliases: ["FlowType"] }); Fe("FunctionTypeAnnotation", { builder: ["typeParameters", "params", "rest", "returnType"], visitor: ["typeParameters", "this", "params", "rest", "returnType"], aliases: ["FlowType"], fields: { typeParameters: (0, z.validateOptionalType)("TypeParameterDeclaration"), params: (0, z.validateArrayOfType)("FunctionTypeParam"), rest: (0, z.validateOptionalType)("FunctionTypeParam"), this: (0, z.validateOptionalType)("FunctionTypeParam"), returnType: (0, z.validateType)("FlowType") } }); Fe("FunctionTypeParam", { visitor: ["name", "typeAnnotation"], fields: { name: (0, z.validateOptionalType)("Identifier"), typeAnnotation: (0, z.validateType)("FlowType"), optional: (0, z.validateOptional)((0, z.assertValueType)("boolean")) } }); Fe("GenericTypeAnnotation", { visitor: ["id", "typeParameters"], aliases: ["FlowType"], fields: { id: (0, z.validateType)("Identifier", "QualifiedTypeIdentifier"), typeParameters: (0, z.validateOptionalType)("TypeParameterInstantiation") } }); Fe("InferredPredicate", { aliases: ["FlowPredicate"] }); Fe("InterfaceExtends", { visitor: ["id", "typeParameters"], fields: { id: (0, z.validateType)("Identifier", "QualifiedTypeIdentifier"), typeParameters: (0, z.validateOptionalType)("TypeParameterInstantiation") } }); uS("InterfaceDeclaration"); Fe("InterfaceTypeAnnotation", { visitor: ["extends", "body"], aliases: ["FlowType"], fields: { extends: (0, z.validateOptional)((0, z.arrayOfType)("InterfaceExtends")), body: (0, z.validateType)("ObjectTypeAnnotation") } }); Fe("IntersectionTypeAnnotation", { visitor: ["types"], aliases: ["FlowType"], fields: { types: (0, z.validate)((0, z.arrayOfType)("FlowType")) } }); Fe("MixedTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); Fe("EmptyTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); Fe("NullableTypeAnnotation", { visitor: ["typeAnnotation"], aliases: ["FlowType"], fields: { typeAnnotation: (0, z.validateType)("FlowType") } }); Fe("NumberLiteralTypeAnnotation", { builder: ["value"], aliases: ["FlowType"], fields: { value: (0, z.validate)((0, z.assertValueType)("number")) } }); Fe("NumberTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); Fe("ObjectTypeAnnotation", { visitor: ["properties", "indexers", "callProperties", "internalSlots"], aliases: ["FlowType"], builder: ["properties", "indexers", "callProperties", "internalSlots", "exact"], fields: { properties: (0, z.validate)((0, z.arrayOfType)("ObjectTypeProperty", "ObjectTypeSpreadProperty")), indexers: { validate: (0, z.arrayOfType)("ObjectTypeIndexer"), optional: !0, default: [] }, callProperties: { validate: (0, z.arrayOfType)("ObjectTypeCallProperty"), optional: !0, default: [] }, internalSlots: { validate: (0, z.arrayOfType)("ObjectTypeInternalSlot"), optional: !0, default: [] }, exact: { validate: (0, z.assertValueType)("boolean"), default: !1 }, inexact: (0, z.validateOptional)((0, z.assertValueType)("boolean")) } }); Fe("ObjectTypeInternalSlot", { visitor: ["id", "value"], builder: ["id", "value", "optional", "static", "method"], aliases: ["UserWhitespacable"], fields: { id: (0, z.validateType)("Identifier"), value: (0, z.validateType)("FlowType"), optional: (0, z.validate)((0, z.assertValueType)("boolean")), static: (0, z.validate)((0, z.assertValueType)("boolean")), method: (0, z.validate)((0, z.assertValueType)("boolean")) } }); Fe("ObjectTypeCallProperty", { visitor: ["value"], aliases: ["UserWhitespacable"], fields: { value: (0, z.validateType)("FlowType"), static: (0, z.validate)((0, z.assertValueType)("boolean")) } }); Fe("ObjectTypeIndexer", { visitor: ["variance", "id", "key", "value"], builder: ["id", "key", "value", "variance"], aliases: ["UserWhitespacable"], fields: { id: (0, z.validateOptionalType)("Identifier"), key: (0, z.validateType)("FlowType"), value: (0, z.validateType)("FlowType"), static: (0, z.validate)((0, z.assertValueType)("boolean")), variance: (0, z.validateOptionalType)("Variance") } }); Fe("ObjectTypeProperty", { visitor: ["key", "value", "variance"], aliases: ["UserWhitespacable"], fields: { key: (0, z.validateType)("Identifier", "StringLiteral"), value: (0, z.validateType)("FlowType"), kind: (0, z.validate)((0, z.assertOneOf)("init", "get", "set")), static: (0, z.validate)((0, z.assertValueType)("boolean")), proto: (0, z.validate)((0, z.assertValueType)("boolean")), optional: (0, z.validate)((0, z.assertValueType)("boolean")), variance: (0, z.validateOptionalType)("Variance"), method: (0, z.validate)((0, z.assertValueType)("boolean")) } }); Fe("ObjectTypeSpreadProperty", { visitor: ["argument"], aliases: ["UserWhitespacable"], fields: { argument: (0, z.validateType)("FlowType") } }); Fe("OpaqueType", { visitor: ["id", "typeParameters", "supertype", "impltype"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, z.validateType)("Identifier"), typeParameters: (0, z.validateOptionalType)("TypeParameterDeclaration"), supertype: (0, z.validateOptionalType)("FlowType"), impltype: (0, z.validateType)("FlowType") } }); Fe("QualifiedTypeIdentifier", { visitor: ["qualification", "id"], builder: ["id", "qualification"], fields: { id: (0, z.validateType)("Identifier"), qualification: (0, z.validateType)("Identifier", "QualifiedTypeIdentifier") } }); Fe("StringLiteralTypeAnnotation", { builder: ["value"], aliases: ["FlowType"], fields: { value: (0, z.validate)((0, z.assertValueType)("string")) } }); Fe("StringTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); Fe("SymbolTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); Fe("ThisTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); Fe("TupleTypeAnnotation", { visitor: ["types"], aliases: ["FlowType"], fields: { types: (0, z.validate)((0, z.arrayOfType)("FlowType")) } }); Fe("TypeofTypeAnnotation", { visitor: ["argument"], aliases: ["FlowType"], fields: { argument: (0, z.validateType)("FlowType") } }); Fe("TypeAlias", { visitor: ["id", "typeParameters", "right"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, z.validateType)("Identifier"), typeParameters: (0, z.validateOptionalType)("TypeParameterDeclaration"), right: (0, z.validateType)("FlowType") } }); Fe("TypeAnnotation", { visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, z.validateType)("FlowType") } }); Fe("TypeCastExpression", { visitor: ["expression", "typeAnnotation"], aliases: ["ExpressionWrapper", "Expression"], fields: { expression: (0, z.validateType)("Expression"), typeAnnotation: (0, z.validateType)("TypeAnnotation") } }); Fe("TypeParameter", { visitor: ["bound", "default", "variance"], fields: { name: (0, z.validate)((0, z.assertValueType)("string")), bound: (0, z.validateOptionalType)("TypeAnnotation"), default: (0, z.validateOptionalType)("FlowType"), variance: (0, z.validateOptionalType)("Variance") } }); Fe("TypeParameterDeclaration", { visitor: ["params"], fields: { params: (0, z.validate)((0, z.arrayOfType)("TypeParameter")) } }); Fe("TypeParameterInstantiation", { visitor: ["params"], fields: { params: (0, z.validate)((0, z.arrayOfType)("FlowType")) } }); Fe("UnionTypeAnnotation", { visitor: ["types"], aliases: ["FlowType"], fields: { types: (0, z.validate)((0, z.arrayOfType)("FlowType")) } }); Fe("Variance", { builder: ["kind"], fields: { kind: (0, z.validate)((0, z.assertOneOf)("minus", "plus")) } }); Fe("VoidTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); Fe("EnumDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "body"], fields: { id: (0, z.validateType)("Identifier"), body: (0, z.validateType)("EnumBooleanBody", "EnumNumberBody", "EnumStringBody", "EnumSymbolBody") } }); Fe("EnumBooleanBody", { aliases: ["EnumBody"], visitor: ["members"], fields: { explicitType: (0, z.validate)((0, z.assertValueType)("boolean")), members: (0, z.validateArrayOfType)("EnumBooleanMember"), hasUnknownMembers: (0, z.validate)((0, z.assertValueType)("boolean")) } }); Fe("EnumNumberBody", { aliases: ["EnumBody"], visitor: ["members"], fields: { explicitType: (0, z.validate)((0, z.assertValueType)("boolean")), members: (0, z.validateArrayOfType)("EnumNumberMember"), hasUnknownMembers: (0, z.validate)((0, z.assertValueType)("boolean")) } }); Fe("EnumStringBody", { aliases: ["EnumBody"], visitor: ["members"], fields: { explicitType: (0, z.validate)((0, z.assertValueType)("boolean")), members: (0, z.validateArrayOfType)("EnumStringMember", "EnumDefaultedMember"), hasUnknownMembers: (0, z.validate)((0, z.assertValueType)("boolean")) } }); Fe("EnumSymbolBody", { aliases: ["EnumBody"], visitor: ["members"], fields: { members: (0, z.validateArrayOfType)("EnumDefaultedMember"), hasUnknownMembers: (0, z.validate)((0, z.assertValueType)("boolean")) } }); Fe("EnumBooleanMember", { aliases: ["EnumMember"], builder: ["id"], visitor: ["id", "init"], fields: { id: (0, z.validateType)("Identifier"), init: (0, z.validateType)("BooleanLiteral") } }); Fe("EnumNumberMember", { aliases: ["EnumMember"], visitor: ["id", "init"], fields: { id: (0, z.validateType)("Identifier"), init: (0, z.validateType)("NumericLiteral") } }); Fe("EnumStringMember", { aliases: ["EnumMember"], visitor: ["id", "init"], fields: { id: (0, z.validateType)("Identifier"), init: (0, z.validateType)("StringLiteral") } }); Fe("EnumDefaultedMember", { aliases: ["EnumMember"], visitor: ["id"], fields: { id: (0, z.validateType)("Identifier") } }); Fe("IndexedAccessType", { visitor: ["objectType", "indexType"], aliases: ["FlowType"], fields: { objectType: (0, z.validateType)("FlowType"), indexType: (0, z.validateType)("FlowType") } }); Fe("OptionalIndexedAccessType", { visitor: ["objectType", "indexType"], aliases: ["FlowType"], fields: { objectType: (0, z.validateType)("FlowType"), indexType: (0, z.validateType)("FlowType"), optional: (0, z.validate)((0, z.assertValueType)("boolean")) } }); }); // ../node_modules/@babel/types/lib/definitions/jsx.js var $j = E(() => { "use strict"; var tr = Qn(), pi = (0, tr.defineAliasedType)("JSX"); pi("JSXAttribute", { visitor: ["name", "value"], aliases: ["Immutable"], fields: { name: { validate: (0, tr.assertNodeType)("JSXIdentifier", "JSXNamespacedName") }, value: { optional: !0, validate: (0, tr.assertNodeType)("JSXElement", "JSXFragment", "StringLiteral", "JSXExpressionContainer") } } }); pi("JSXClosingElement", { visitor: ["name"], aliases: ["Immutable"], fields: { name: { validate: (0, tr.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName") } } }); pi("JSXElement", { builder: ["openingElement", "closingElement", "children", "selfClosing"], visitor: ["openingElement", "children", "closingElement"], aliases: ["Immutable", "Expression"], fields: Object.assign({ openingElement: { validate: (0, tr.assertNodeType)("JSXOpeningElement") }, closingElement: { optional: !0, validate: (0, tr.assertNodeType)("JSXClosingElement") }, children: (0, tr.validateArrayOfType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment") }, { selfClosing: { validate: (0, tr.assertValueType)("boolean"), optional: !0 } }) }); pi("JSXEmptyExpression", {}); pi("JSXExpressionContainer", { visitor: ["expression"], aliases: ["Immutable"], fields: { expression: { validate: (0, tr.assertNodeType)("Expression", "JSXEmptyExpression") } } }); pi("JSXSpreadChild", { visitor: ["expression"], aliases: ["Immutable"], fields: { expression: { validate: (0, tr.assertNodeType)("Expression") } } }); pi("JSXIdentifier", { builder: ["name"], fields: { name: { validate: (0, tr.assertValueType)("string") } } }); pi("JSXMemberExpression", { visitor: ["object", "property"], fields: { object: { validate: (0, tr.assertNodeType)("JSXMemberExpression", "JSXIdentifier") }, property: { validate: (0, tr.assertNodeType)("JSXIdentifier") } } }); pi("JSXNamespacedName", { visitor: ["namespace", "name"], fields: { namespace: { validate: (0, tr.assertNodeType)("JSXIdentifier") }, name: { validate: (0, tr.assertNodeType)("JSXIdentifier") } } }); pi("JSXOpeningElement", { builder: ["name", "attributes", "selfClosing"], visitor: ["name", "typeParameters", "typeArguments", "attributes"], aliases: ["Immutable"], fields: Object.assign({ name: { validate: (0, tr.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName") }, selfClosing: { default: !1 }, attributes: (0, tr.validateArrayOfType)("JSXAttribute", "JSXSpreadAttribute"), typeArguments: { validate: (0, tr.assertNodeType)("TypeParameterInstantiation"), optional: !0 } }, { typeParameters: { validate: (0, tr.assertNodeType)("TSTypeParameterInstantiation"), optional: !0 } }) }); pi("JSXSpreadAttribute", { visitor: ["argument"], fields: { argument: { validate: (0, tr.assertNodeType)("Expression") } } }); pi("JSXText", { aliases: ["Immutable"], builder: ["value"], fields: { value: { validate: (0, tr.assertValueType)("string") } } }); pi("JSXFragment", { builder: ["openingFragment", "closingFragment", "children"], visitor: ["openingFragment", "children", "closingFragment"], aliases: ["Immutable", "Expression"], fields: { openingFragment: { validate: (0, tr.assertNodeType)("JSXOpeningFragment") }, closingFragment: { validate: (0, tr.assertNodeType)("JSXClosingFragment") }, children: (0, tr.validateArrayOfType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment") } }); pi("JSXOpeningFragment", { aliases: ["Immutable"] }); pi("JSXClosingFragment", { aliases: ["Immutable"] }); }); // ../node_modules/@babel/types/lib/definitions/placeholders.js var fS = E((Ba) => { "use strict"; Object.defineProperty(Ba, "__esModule", { value: !0 }); Ba.PLACEHOLDERS_FLIPPED_ALIAS = Ba.PLACEHOLDERS_ALIAS = Ba.PLACEHOLDERS = void 0; var w0e = Qn(), A0e = Ba.PLACEHOLDERS = ["Identifier", "StringLiteral", "Expression", "Statement", "Declaration", "BlockStatement", "Class\ Body", "Pattern"], cS = Ba.PLACEHOLDERS_ALIAS = { Declaration: ["Statement"], Pattern: ["PatternLike", "LVal"] }; for (let e of A0e) { let t = w0e.ALIAS_KEYS[e]; t != null && t.length && (cS[e] = t); } var lS = Ba.PLACEHOLDERS_FLIPPED_ALIAS = {}; Object.keys(cS).forEach((e) => { cS[e].forEach((t) => { hasOwnProperty.call(lS, t) || (lS[t] = []), lS[t].push(e); }); }); }); // ../node_modules/@babel/types/lib/definitions/misc.js var Vj = E(() => { "use strict"; var by = Qn(), _0e = fS(), P0e = Ed(), dS = (0, by.defineAliasedType)("Miscellaneous"); dS("Noop", { visitor: [] }); dS("Placeholder", { visitor: [], builder: ["expectedNode", "name"], fields: Object.assign({ name: { validate: (0, by.assertNodeType)("Identifier") }, expectedNode: { validate: (0, by.assertOneOf)(..._0e.PLACEHOLDERS) } }, (0, P0e.patternLikeCommon)()) }); dS("V8IntrinsicIdentifier", { builder: ["name"], fields: { name: { validate: (0, by.assertValueType)("string") } } }); }); // ../node_modules/@babel/types/lib/definitions/experimental.js var Hj = E(() => { "use strict"; var Jt = Qn(); (0, Jt.default)("ArgumentPlaceholder", {}); (0, Jt.default)("BindExpression", { visitor: ["object", "callee"], aliases: ["Expression"], fields: process.env.BABEL_TYPES_8_BREAKING ? { object: { validate: (0, Jt.assertNodeType)("Expression") }, callee: { validate: (0, Jt.assertNodeType)("Expression") } } : { object: { validate: Object.assign(() => { }, { oneOfNodeTypes: ["Expression"] }) }, callee: { validate: Object.assign(() => { }, { oneOfNodeTypes: ["Expression"] }) } } }); (0, Jt.default)("Decorator", { visitor: ["expression"], fields: { expression: { validate: (0, Jt.assertNodeType)("Expression") } } }); (0, Jt.default)("DoExpression", { visitor: ["body"], builder: ["body", "async"], aliases: ["Expression"], fields: { body: { validate: (0, Jt.assertNodeType)("BlockStatement") }, async: { validate: (0, Jt.assertValueType)("boolean"), default: !1 } } }); (0, Jt.default)("ExportDefaultSpecifier", { visitor: ["exported"], aliases: ["ModuleSpecifier"], fields: { exported: { validate: (0, Jt.assertNodeType)("Identifier") } } }); (0, Jt.default)("RecordExpression", { visitor: ["properties"], aliases: ["Expression"], fields: { properties: (0, Jt.validateArrayOfType)("ObjectProperty", "SpreadElement") } }); (0, Jt.default)("TupleExpression", { fields: { elements: { validate: (0, Jt.arrayOfType)("Expression", "SpreadElement"), default: [] } }, visitor: ["elements"], aliases: ["Expression"] }); (0, Jt.default)("DecimalLiteral", { builder: ["value"], fields: { value: { validate: (0, Jt.assertValueType)("string") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); (0, Jt.default)("ModuleExpression", { visitor: ["body"], fields: { body: { validate: (0, Jt.assertNodeType)("Program") } }, aliases: ["Expression"] }); (0, Jt.default)("TopicReference", { aliases: ["Expression"] }); (0, Jt.default)("PipelineTopicExpression", { builder: ["expression"], visitor: ["expression"], fields: { expression: { validate: (0, Jt.assertNodeType)("Expression") } }, aliases: ["Expression"] }); (0, Jt.default)("PipelineBareFunction", { builder: ["callee"], visitor: ["callee"], fields: { callee: { validate: (0, Jt.assertNodeType)("Expression") } }, aliases: ["Expression"] }); (0, Jt.default)("PipelinePrimaryTopicReference", { aliases: ["Expression"] }); }); // ../node_modules/@babel/types/lib/definitions/typescript.js var Qj = E(() => { "use strict"; var ie = Qn(), Kj = Ed(), F0e = Fl(), Le = (0, ie.defineAliasedType)("TypeScript"), Ti = (0, ie.assertValueType)("boolean"), zj = /* @__PURE__ */ s( () => ({ returnType: { validate: (0, ie.assertNodeType)("TSTypeAnnotation", "Noop"), optional: !0 }, typeParameters: { validate: (0, ie.assertNodeType)("TSTypeParameterDeclaration", "Noop"), optional: !0 } }), "tSFunctionTypeAnnotationCommon"); Le("TSParameterProperty", { aliases: ["LVal"], visitor: ["parameter"], fields: { accessibility: { validate: (0, ie.assertOneOf)("public", "private", "protected"), optional: !0 }, readonly: { validate: (0, ie.assertValueType)("boolean"), optional: !0 }, parameter: { validate: (0, ie.assertNodeType)("Identifier", "AssignmentPattern") }, override: { validate: (0, ie.assertValueType)("boolean"), optional: !0 }, decorators: { validate: (0, ie.arrayOfType)("Decorator"), optional: !0 } } }); Le("TSDeclareFunction", { aliases: ["Statement", "Declaration"], visitor: ["id", "typeParameters", "params", "returnType"], fields: Object.assign({}, (0, Kj.functionDeclarationCommon)(), zj()) }); Le("TSDeclareMethod", { visitor: ["decorators", "key", "typeParameters", "params", "returnType"], fields: Object.assign({}, (0, Kj.classMethodOrDeclareMethodCommon)(), zj()) }); Le("TSQualifiedName", { aliases: ["TSEntityName"], visitor: ["left", "right"], fields: { left: (0, ie.validateType)("TSEntityName"), right: (0, ie.validateType)("Identifier") } }); var Dy = /* @__PURE__ */ s(() => ({ typeParameters: (0, ie.validateOptionalType)("TSTypeParameterDeclaration"), parameters: (0, ie.validateArrayOfType)("ArrayPattern", "Identifier", "ObjectPattern", "RestElement"), typeAnnotation: (0, ie.validateOptionalType)("TSTypeAnnotation") }), "signatureDeclarationCommon"), Gj = { aliases: ["TSTypeElement"], visitor: ["typeParameters", "parameters", "typeAnnotation"], fields: Dy() }; Le("TSCallSignatureDeclaration", Gj); Le("TSConstructSignatureDeclaration", Gj); var Jj = /* @__PURE__ */ s(() => ({ key: (0, ie.validateType)("Expression"), computed: { default: !1 }, optional: (0, ie.validateOptional)(Ti) }), "namedTypeElementCommon"); Le("TSPropertySignature", { aliases: ["TSTypeElement"], visitor: ["key", "typeAnnotation"], fields: Object.assign({}, Jj(), { readonly: (0, ie.validateOptional)(Ti), typeAnnotation: (0, ie.validateOptionalType)("TSTypeAnnotation"), kind: { optional: !0, validate: (0, ie.assertOneOf)("get", "set") } }) }); Le("TSMethodSignature", { aliases: ["TSTypeElement"], visitor: ["key", "typeParameters", "parameters", "typeAnnotation"], fields: Object.assign({}, Dy(), Jj(), { kind: { validate: (0, ie.assertOneOf)("method", "get", "set") } }) }); Le("TSIndexSignature", { aliases: ["TSTypeElement"], visitor: ["parameters", "typeAnnotation"], fields: { readonly: (0, ie.validateOptional)(Ti), static: (0, ie.validateOptional)(Ti), parameters: (0, ie.validateArrayOfType)("Identifier"), typeAnnotation: (0, ie.validateOptionalType)("TSTypeAnnotation") } }); var I0e = ["TSAnyKeyword", "TSBooleanKeyword", "TSBigIntKeyword", "TSIntrinsicKeyword", "TSNeverKeyword", "TSNullKeyword", "TSNumberKeywor\ d", "TSObjectKeyword", "TSStringKeyword", "TSSymbolKeyword", "TSUndefinedKeyword", "TSUnknownKeyword", "TSVoidKeyword"]; for (let e of I0e) Le(e, { aliases: ["TSType", "TSBaseType"], visitor: [], fields: {} }); Le("TSThisType", { aliases: ["TSType", "TSBaseType"], visitor: [], fields: {} }); var Xj = { aliases: ["TSType"], visitor: ["typeParameters", "parameters", "typeAnnotation"] }; Le("TSFunctionType", Object.assign({}, Xj, { fields: Dy() })); Le("TSConstructorType", Object.assign({}, Xj, { fields: Object.assign({}, Dy(), { abstract: (0, ie.validateOptional)(Ti) }) })); Le("TSTypeReference", { aliases: ["TSType"], visitor: ["typeName", "typeParameters"], fields: { typeName: (0, ie.validateType)("TSEntityName"), typeParameters: (0, ie.validateOptionalType)("TSTypeParameterInstantiation") } }); Le("TSTypePredicate", { aliases: ["TSType"], visitor: ["parameterName", "typeAnnotation"], builder: ["parameterName", "typeAnnotation", "asserts"], fields: { parameterName: (0, ie.validateType)("Identifier", "TSThisType"), typeAnnotation: (0, ie.validateOptionalType)("TSTypeAnnotation"), asserts: (0, ie.validateOptional)(Ti) } }); Le("TSTypeQuery", { aliases: ["TSType"], visitor: ["exprName", "typeParameters"], fields: { exprName: (0, ie.validateType)("TSEntityName", "TSImportType"), typeParameters: (0, ie.validateOptionalType)("TSTypeParameterInstantiation") } }); Le("TSTypeLiteral", { aliases: ["TSType"], visitor: ["members"], fields: { members: (0, ie.validateArrayOfType)("TSTypeElement") } }); Le("TSArrayType", { aliases: ["TSType"], visitor: ["elementType"], fields: { elementType: (0, ie.validateType)("TSType") } }); Le("TSTupleType", { aliases: ["TSType"], visitor: ["elementTypes"], fields: { elementTypes: (0, ie.validateArrayOfType)("TSType", "TSNamedTupleMember") } }); Le("TSOptionalType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, ie.validateType)("TSType") } }); Le("TSRestType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, ie.validateType)("TSType") } }); Le("TSNamedTupleMember", { visitor: ["label", "elementType"], builder: ["label", "elementType", "optional"], fields: { label: (0, ie.validateType)("Identifier"), optional: { validate: Ti, default: !1 }, elementType: (0, ie.validateType)("TSType") } }); var Yj = { aliases: ["TSType"], visitor: ["types"], fields: { types: (0, ie.validateArrayOfType)("TSType") } }; Le("TSUnionType", Yj); Le("TSIntersectionType", Yj); Le("TSConditionalType", { aliases: ["TSType"], visitor: ["checkType", "extendsType", "trueType", "falseType"], fields: { checkType: (0, ie.validateType)("TSType"), extendsType: (0, ie.validateType)("TSType"), trueType: (0, ie.validateType)("TSType"), falseType: (0, ie.validateType)("TSType") } }); Le("TSInferType", { aliases: ["TSType"], visitor: ["typeParameter"], fields: { typeParameter: (0, ie.validateType)("TSTypeParameter") } }); Le("TSParenthesizedType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, ie.validateType)("TSType") } }); Le("TSTypeOperator", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { operator: (0, ie.validate)((0, ie.assertValueType)("string")), typeAnnotation: (0, ie.validateType)("TSType") } }); Le("TSIndexedAccessType", { aliases: ["TSType"], visitor: ["objectType", "indexType"], fields: { objectType: (0, ie.validateType)("TSType"), indexType: (0, ie.validateType)("TSType") } }); Le("TSMappedType", { aliases: ["TSType"], visitor: ["typeParameter", "nameType", "typeAnnotation"], builder: ["typeParameter", "typeAnnotation", "nameType"], fields: Object.assign({}, { typeParameter: (0, ie.validateType)("TSTypeParameter") }, { readonly: (0, ie.validateOptional)((0, ie.assertOneOf)(!0, !1, "+", "-")), optional: (0, ie.validateOptional)((0, ie.assertOneOf)(!0, !1, "+", "-")), typeAnnotation: (0, ie.validateOptionalType)("TSType"), nameType: (0, ie.validateOptionalType)("TSType") }) }); Le("TSTemplateLiteralType", { aliases: ["TSType", "TSBaseType"], visitor: ["quasis", "types"], fields: { quasis: (0, ie.validateArrayOfType)("TemplateElement"), types: { validate: (0, ie.chain)((0, ie.assertValueType)("array"), (0, ie.assertEach)((0, ie.assertNodeType)("TSType")), function(e, t, r) { if (e.quasis.length !== r.length + 1) throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types. Expected ${r.length + 1} quasis but got ${e.quasis.length}`); }) } } }); Le("TSLiteralType", { aliases: ["TSType", "TSBaseType"], visitor: ["literal"], fields: { literal: { validate: function() { let e = (0, ie.assertNodeType)("NumericLiteral", "BigIntLiteral"), t = (0, ie.assertOneOf)("-"), r = (0, ie.assertNodeType)("Numer\ icLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral"); function i(n, a, o) { (0, F0e.default)("UnaryExpression", o) ? (t(o, "operator", o.operator), e(o, "argument", o.argument)) : r(n, a, o); } return s(i, "validator"), i.oneOfNodeTypes = ["NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiter\ al", "UnaryExpression"], i; }() } } }); Le("TSExpressionWithTypeArguments", { aliases: ["TSType"], visitor: ["expression", "typeParameters"], fields: { expression: (0, ie.validateType)("TSEntityName"), typeParameters: (0, ie.validateOptionalType)("TSTypeParameterInstantiation") } }); Le("TSInterfaceDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "typeParameters", "extends", "body"], fields: { declare: (0, ie.validateOptional)(Ti), id: (0, ie.validateType)("Identifier"), typeParameters: (0, ie.validateOptionalType)("TSTypeParameterDeclaration"), extends: (0, ie.validateOptional)((0, ie.arrayOfType)("TSExpressionWithTypeArguments")), body: (0, ie.validateType)("TSInterfaceBody") } }); Le("TSInterfaceBody", { visitor: ["body"], fields: { body: (0, ie.validateArrayOfType)("TSTypeElement") } }); Le("TSTypeAliasDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "typeParameters", "typeAnnotation"], fields: { declare: (0, ie.validateOptional)(Ti), id: (0, ie.validateType)("Identifier"), typeParameters: (0, ie.validateOptionalType)("TSTypeParameterDeclaration"), typeAnnotation: (0, ie.validateType)("TSType") } }); Le("TSInstantiationExpression", { aliases: ["Expression"], visitor: ["expression", "typeParameters"], fields: { expression: (0, ie.validateType)("Expression"), typeParameters: (0, ie.validateOptionalType)("TSTypeParameterInstantiation") } }); var Zj = { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["expression", "typeAnnotation"], fields: { expression: (0, ie.validateType)("Expression"), typeAnnotation: (0, ie.validateType)("TSType") } }; Le("TSAsExpression", Zj); Le("TSSatisfiesExpression", Zj); Le("TSTypeAssertion", { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["typeAnnotation", "expression"], fields: { typeAnnotation: (0, ie.validateType)("TSType"), expression: (0, ie.validateType)("Expression") } }); Le("TSEnumBody", { visitor: ["members"], fields: { members: (0, ie.validateArrayOfType)("TSEnumMember") } }); Le("TSEnumDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "members"], fields: { declare: (0, ie.validateOptional)(Ti), const: (0, ie.validateOptional)(Ti), id: (0, ie.validateType)("Identifier"), members: (0, ie.validateArrayOfType)("TSEnumMember"), initializer: (0, ie.validateOptionalType)("Expression"), body: (0, ie.validateOptionalType)("TSEnumBody") } }); Le("TSEnumMember", { visitor: ["id", "initializer"], fields: { id: (0, ie.validateType)("Identifier", "StringLiteral"), initializer: (0, ie.validateOptionalType)("Expression") } }); Le("TSModuleDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "body"], fields: Object.assign({ kind: { validate: (0, ie.assertOneOf)("global", "module", "namespace") }, declare: (0, ie.validateOptional)(Ti) }, { global: (0, ie.validateOptional)(Ti) }, { id: (0, ie.validateType)("Identifier", "StringLiteral"), body: (0, ie.validateType)("TSModuleBlock", "TSModuleDeclaration") }) }); Le("TSModuleBlock", { aliases: ["Scopable", "Block", "BlockParent", "FunctionParent"], visitor: ["body"], fields: { body: (0, ie.validateArrayOfType)("Statement") } }); Le("TSImportType", { aliases: ["TSType"], builder: ["argument", "qualifier", "typeParameters"], visitor: ["argument", "options", "qualifier", "typeParameters"], fields: { argument: (0, ie.validateType)("StringLiteral"), qualifier: (0, ie.validateOptionalType)("TSEntityName"), typeParameters: (0, ie.validateOptionalType)("TSTypeParameterInstantiation"), options: { validate: (0, ie.assertNodeType)("Expression"), optional: !0 } } }); Le("TSImportEqualsDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "moduleReference"], fields: Object.assign({}, { isExport: (0, ie.validate)(Ti) }, { id: (0, ie.validateType)("Identifier"), moduleReference: (0, ie.validateType)("TSEntityName", "TSExternalModuleReference"), importKind: { validate: (0, ie.assertOneOf)("type", "value"), optional: !0 } }) }); Le("TSExternalModuleReference", { visitor: ["expression"], fields: { expression: (0, ie.validateType)("StringLiteral") } }); Le("TSNonNullExpression", { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["expression"], fields: { expression: (0, ie.validateType)("Expression") } }); Le("TSExportAssignment", { aliases: ["Statement"], visitor: ["expression"], fields: { expression: (0, ie.validateType)("Expression") } }); Le("TSNamespaceExportDeclaration", { aliases: ["Statement"], visitor: ["id"], fields: { id: (0, ie.validateType)("Identifier") } }); Le("TSTypeAnnotation", { visitor: ["typeAnnotation"], fields: { typeAnnotation: { validate: (0, ie.assertNodeType)("TSType") } } }); Le("TSTypeParameterInstantiation", { visitor: ["params"], fields: { params: (0, ie.validateArrayOfType)("TSType") } }); Le("TSTypeParameterDeclaration", { visitor: ["params"], fields: { params: (0, ie.validateArrayOfType)("TSTypeParameter") } }); Le("TSTypeParameter", { builder: ["constraint", "default", "name"], visitor: ["constraint", "default"], fields: { name: { validate: (0, ie.assertValueType)("string") }, in: { validate: (0, ie.assertValueType)("boolean"), optional: !0 }, out: { validate: (0, ie.assertValueType)("boolean"), optional: !0 }, const: { validate: (0, ie.assertValueType)("boolean"), optional: !0 }, constraint: { validate: (0, ie.assertNodeType)("TSType"), optional: !0 }, default: { validate: (0, ie.assertNodeType)("TSType"), optional: !0 } } }); }); // ../node_modules/@babel/types/lib/definitions/deprecated-aliases.js var eL = E((vy) => { "use strict"; Object.defineProperty(vy, "__esModule", { value: !0 }); vy.DEPRECATED_ALIASES = void 0; var eat = vy.DEPRECATED_ALIASES = { ModuleDeclaration: "ImportOrExportDeclaration" }; }); // ../node_modules/@babel/types/lib/definitions/index.js var Xi = E((hi) => { "use strict"; Object.defineProperty(hi, "__esModule", { value: !0 }); Object.defineProperty(hi, "ALIAS_KEYS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Ci.ALIAS_KEYS; }, "get") }); Object.defineProperty(hi, "BUILDER_KEYS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Ci.BUILDER_KEYS; }, "get") }); Object.defineProperty(hi, "DEPRECATED_ALIASES", { enumerable: !0, get: /* @__PURE__ */ s(function() { return pS.DEPRECATED_ALIASES; }, "get") }); Object.defineProperty(hi, "DEPRECATED_KEYS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Ci.DEPRECATED_KEYS; }, "get") }); Object.defineProperty(hi, "FLIPPED_ALIAS_KEYS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Ci.FLIPPED_ALIAS_KEYS; }, "get") }); Object.defineProperty(hi, "NODE_FIELDS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Ci.NODE_FIELDS; }, "get") }); Object.defineProperty(hi, "NODE_PARENT_VALIDATIONS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Ci.NODE_PARENT_VALIDATIONS; }, "get") }); Object.defineProperty(hi, "PLACEHOLDERS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return hS.PLACEHOLDERS; }, "get") }); Object.defineProperty(hi, "PLACEHOLDERS_ALIAS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return hS.PLACEHOLDERS_ALIAS; }, "get") }); Object.defineProperty(hi, "PLACEHOLDERS_FLIPPED_ALIAS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return hS.PLACEHOLDERS_FLIPPED_ALIAS; }, "get") }); hi.TYPES = void 0; Object.defineProperty(hi, "VISITOR_KEYS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Ci.VISITOR_KEYS; }, "get") }); Ed(); Wj(); $j(); Vj(); Hj(); Qj(); var Ci = Qn(), hS = fS(), pS = eL(); Object.keys(pS.DEPRECATED_ALIASES).forEach((e) => { Ci.FLIPPED_ALIAS_KEYS[e] = Ci.FLIPPED_ALIAS_KEYS[pS.DEPRECATED_ALIASES[e]]; }); for (let { types: e, set: t } of Ci.allExpandedTypes) for (let r of e) { let i = Ci.FLIPPED_ALIAS_KEYS[r]; i ? i.forEach(t.add, t) : t.add(r); } var rat = hi.TYPES = [].concat(Object.keys(Ci.VISITOR_KEYS), Object.keys(Ci.FLIPPED_ALIAS_KEYS), Object.keys(Ci.DEPRECATED_KEYS)); }); // ../node_modules/@babel/types/lib/validators/validate.js var yy = E((Ml) => { "use strict"; Object.defineProperty(Ml, "__esModule", { value: !0 }); Ml.default = O0e; Ml.validateChild = rL; Ml.validateField = tL; Ml.validateInternal = k0e; var xd = Xi(); function O0e(e, t, r) { if (!e) return; let i = xd.NODE_FIELDS[e.type]; if (!i) return; let n = i[t]; tL(e, t, r, n), rL(e, t, r); } s(O0e, "validate"); function k0e(e, t, r, i, n) { if (e != null && e.validate && !(e.optional && i == null) && (e.validate(t, r, i), n)) { var a; let o = i.type; if (o == null) return; (a = xd.NODE_PARENT_VALIDATIONS[o]) == null || a.call(xd.NODE_PARENT_VALIDATIONS, t, r, i); } } s(k0e, "validateInternal"); function tL(e, t, r, i) { i != null && i.validate && (i.optional && r == null || i.validate(e, t, r)); } s(tL, "validateField"); function rL(e, t, r) { var i; let n = r?.type; n != null && ((i = xd.NODE_PARENT_VALIDATIONS[n]) == null || i.call(xd.NODE_PARENT_VALIDATIONS, e, t, r)); } s(rL, "validateChild"); }); // ../node_modules/@babel/types/lib/builders/generated/lowercase.js var mS = E((T) => { "use strict"; Object.defineProperty(T, "__esModule", { value: !0 }); T.anyTypeAnnotation = pbe; T.argumentPlaceholder = WDe; T.arrayExpression = M0e; T.arrayPattern = Ige; T.arrayTypeAnnotation = hbe; T.arrowFunctionExpression = Oge; T.assignmentExpression = R0e; T.assignmentPattern = Fge; T.awaitExpression = ebe; T.bigIntLiteral = rbe; T.binaryExpression = j0e; T.bindExpression = $De; T.blockStatement = W0e; T.booleanLiteral = uge; T.booleanLiteralTypeAnnotation = ybe; T.booleanTypeAnnotation = mbe; T.breakStatement = $0e; T.callExpression = V0e; T.catchClause = H0e; T.classAccessorProperty = obe; T.classBody = kge; T.classDeclaration = Nge; T.classExpression = Bge; T.classImplements = bbe; T.classMethod = zge; T.classPrivateMethod = lbe; T.classPrivateProperty = ube; T.classProperty = abe; T.conditionalExpression = K0e; T.continueStatement = z0e; T.debuggerStatement = G0e; T.decimalLiteral = JDe; T.declareClass = Dbe; T.declareExportAllDeclaration = _be; T.declareExportDeclaration = Abe; T.declareFunction = vbe; T.declareInterface = Ebe; T.declareModule = xbe; T.declareModuleExports = Sbe; T.declareOpaqueType = Cbe; T.declareTypeAlias = Tbe; T.declareVariable = wbe; T.declaredPredicate = Pbe; T.decorator = VDe; T.directive = q0e; T.directiveLiteral = U0e; T.doExpression = HDe; T.doWhileStatement = J0e; T.emptyStatement = X0e; T.emptyTypeAnnotation = qbe; T.enumBooleanBody = hDe; T.enumBooleanMember = bDe; T.enumDeclaration = pDe; T.enumDefaultedMember = EDe; T.enumNumberBody = mDe; T.enumNumberMember = DDe; T.enumStringBody = yDe; T.enumStringMember = vDe; T.enumSymbolBody = gDe; T.existsTypeAnnotation = Fbe; T.exportAllDeclaration = Mge; T.exportDefaultDeclaration = Rge; T.exportDefaultSpecifier = KDe; T.exportNamedDeclaration = jge; T.exportNamespaceSpecifier = ibe; T.exportSpecifier = Lge; T.expressionStatement = Y0e; T.file = Z0e; T.forInStatement = Q0e; T.forOfStatement = qge; T.forStatement = ege; T.functionDeclaration = tge; T.functionExpression = rge; T.functionTypeAnnotation = Ibe; T.functionTypeParam = Obe; T.genericTypeAnnotation = kbe; T.identifier = ige; T.ifStatement = nge; T.import = tbe; T.importAttribute = dbe; T.importDeclaration = Uge; T.importDefaultSpecifier = Wge; T.importExpression = Hge; T.importNamespaceSpecifier = $ge; T.importSpecifier = Vge; T.indexedAccessType = xDe; T.inferredPredicate = Bbe; T.interfaceDeclaration = Mbe; T.interfaceExtends = Nbe; T.interfaceTypeAnnotation = Rbe; T.interpreterDirective = L0e; T.intersectionTypeAnnotation = jbe; T.jSXAttribute = T.jsxAttribute = TDe; T.jSXClosingElement = T.jsxClosingElement = CDe; T.jSXClosingFragment = T.jsxClosingFragment = jDe; T.jSXElement = T.jsxElement = wDe; T.jSXEmptyExpression = T.jsxEmptyExpression = ADe; T.jSXExpressionContainer = T.jsxExpressionContainer = _De; T.jSXFragment = T.jsxFragment = MDe; T.jSXIdentifier = T.jsxIdentifier = FDe; T.jSXMemberExpression = T.jsxMemberExpression = IDe; T.jSXNamespacedName = T.jsxNamespacedName = ODe; T.jSXOpeningElement = T.jsxOpeningElement = kDe; T.jSXOpeningFragment = T.jsxOpeningFragment = RDe; T.jSXSpreadAttribute = T.jsxSpreadAttribute = BDe; T.jSXSpreadChild = T.jsxSpreadChild = PDe; T.jSXText = T.jsxText = NDe; T.labeledStatement = sge; T.logicalExpression = lge; T.memberExpression = cge; T.metaProperty = Kge; T.mixedTypeAnnotation = Lbe; T.moduleExpression = XDe; T.newExpression = fge; T.noop = LDe; T.nullLiteral = oge; T.nullLiteralTypeAnnotation = gbe; T.nullableTypeAnnotation = Ube; T.numberLiteral = hEe; T.numberLiteralTypeAnnotation = Wbe; T.numberTypeAnnotation = $be; T.numericLiteral = iL; T.objectExpression = pge; T.objectMethod = hge; T.objectPattern = Gge; T.objectProperty = mge; T.objectTypeAnnotation = Vbe; T.objectTypeCallProperty = Kbe; T.objectTypeIndexer = zbe; T.objectTypeInternalSlot = Hbe; T.objectTypeProperty = Gbe; T.objectTypeSpreadProperty = Jbe; T.opaqueType = Xbe; T.optionalCallExpression = sbe; T.optionalIndexedAccessType = SDe; T.optionalMemberExpression = nbe; T.parenthesizedExpression = bge; T.pipelineBareFunction = QDe; T.pipelinePrimaryTopicReference = eve; T.pipelineTopicExpression = ZDe; T.placeholder = qDe; T.privateName = cbe; T.program = dge; T.qualifiedTypeIdentifier = Ybe; T.recordExpression = zDe; T.regExpLiteral = nL; T.regexLiteral = mEe; T.restElement = sL; T.restProperty = yEe; T.returnStatement = yge; T.sequenceExpression = gge; T.spreadElement = aL; T.spreadProperty = gEe; T.staticBlock = fbe; T.stringLiteral = age; T.stringLiteralTypeAnnotation = Zbe; T.stringTypeAnnotation = Qbe; T.super = Jge; T.switchCase = Dge; T.switchStatement = vge; T.symbolTypeAnnotation = eDe; T.taggedTemplateExpression = Xge; T.templateElement = Yge; T.templateLiteral = Zge; T.thisExpression = Ege; T.thisTypeAnnotation = tDe; T.throwStatement = xge; T.topicReference = YDe; T.tryStatement = Sge; T.tSAnyKeyword = T.tsAnyKeyword = cve; T.tSArrayType = T.tsArrayType = Fve; T.tSAsExpression = T.tsAsExpression = Xve; T.tSBigIntKeyword = T.tsBigIntKeyword = dve; T.tSBooleanKeyword = T.tsBooleanKeyword = fve; T.tSCallSignatureDeclaration = T.tsCallSignatureDeclaration = sve; T.tSConditionalType = T.tsConditionalType = Rve; T.tSConstructSignatureDeclaration = T.tsConstructSignatureDeclaration = ave; T.tSConstructorType = T.tsConstructorType = Cve; T.tSDeclareFunction = T.tsDeclareFunction = rve; T.tSDeclareMethod = T.tsDeclareMethod = ive; T.tSEnumBody = T.tsEnumBody = Qve; T.tSEnumDeclaration = T.tsEnumDeclaration = eEe; T.tSEnumMember = T.tsEnumMember = tEe; T.tSExportAssignment = T.tsExportAssignment = uEe; T.tSExpressionWithTypeArguments = T.tsExpressionWithTypeArguments = Hve; T.tSExternalModuleReference = T.tsExternalModuleReference = aEe; T.tSFunctionType = T.tsFunctionType = Tve; T.tSImportEqualsDeclaration = T.tsImportEqualsDeclaration = sEe; T.tSImportType = T.tsImportType = nEe; T.tSIndexSignature = T.tsIndexSignature = lve; T.tSIndexedAccessType = T.tsIndexedAccessType = Uve; T.tSInferType = T.tsInferType = jve; T.tSInstantiationExpression = T.tsInstantiationExpression = Jve; T.tSInterfaceBody = T.tsInterfaceBody = zve; T.tSInterfaceDeclaration = T.tsInterfaceDeclaration = Kve; T.tSIntersectionType = T.tsIntersectionType = Mve; T.tSIntrinsicKeyword = T.tsIntrinsicKeyword = pve; T.tSLiteralType = T.tsLiteralType = Vve; T.tSMappedType = T.tsMappedType = Wve; T.tSMethodSignature = T.tsMethodSignature = uve; T.tSModuleBlock = T.tsModuleBlock = iEe; T.tSModuleDeclaration = T.tsModuleDeclaration = rEe; T.tSNamedTupleMember = T.tsNamedTupleMember = Bve; T.tSNamespaceExportDeclaration = T.tsNamespaceExportDeclaration = lEe; T.tSNeverKeyword = T.tsNeverKeyword = hve; T.tSNonNullExpression = T.tsNonNullExpression = oEe; T.tSNullKeyword = T.tsNullKeyword = mve; T.tSNumberKeyword = T.tsNumberKeyword = yve; T.tSObjectKeyword = T.tsObjectKeyword = gve; T.tSOptionalType = T.tsOptionalType = Ove; T.tSParameterProperty = T.tsParameterProperty = tve; T.tSParenthesizedType = T.tsParenthesizedType = Lve; T.tSPropertySignature = T.tsPropertySignature = ove; T.tSQualifiedName = T.tsQualifiedName = nve; T.tSRestType = T.tsRestType = kve; T.tSSatisfiesExpression = T.tsSatisfiesExpression = Yve; T.tSStringKeyword = T.tsStringKeyword = bve; T.tSSymbolKeyword = T.tsSymbolKeyword = Dve; T.tSTemplateLiteralType = T.tsTemplateLiteralType = $ve; T.tSThisType = T.tsThisType = Sve; T.tSTupleType = T.tsTupleType = Ive; T.tSTypeAliasDeclaration = T.tsTypeAliasDeclaration = Gve; T.tSTypeAnnotation = T.tsTypeAnnotation = cEe; T.tSTypeAssertion = T.tsTypeAssertion = Zve; T.tSTypeLiteral = T.tsTypeLiteral = Pve; T.tSTypeOperator = T.tsTypeOperator = qve; T.tSTypeParameter = T.tsTypeParameter = pEe; T.tSTypeParameterDeclaration = T.tsTypeParameterDeclaration = dEe; T.tSTypeParameterInstantiation = T.tsTypeParameterInstantiation = fEe; T.tSTypePredicate = T.tsTypePredicate = Ave; T.tSTypeQuery = T.tsTypeQuery = _ve; T.tSTypeReference = T.tsTypeReference = wve; T.tSUndefinedKeyword = T.tsUndefinedKeyword = vve; T.tSUnionType = T.tsUnionType = Nve; T.tSUnknownKeyword = T.tsUnknownKeyword = Eve; T.tSVoidKeyword = T.tsVoidKeyword = xve; T.tupleExpression = GDe; T.tupleTypeAnnotation = rDe; T.typeAlias = nDe; T.typeAnnotation = sDe; T.typeCastExpression = aDe; T.typeParameter = oDe; T.typeParameterDeclaration = uDe; T.typeParameterInstantiation = lDe; T.typeofTypeAnnotation = iDe; T.unaryExpression = Tge; T.unionTypeAnnotation = cDe; T.updateExpression = Cge; T.v8IntrinsicIdentifier = UDe; T.variableDeclaration = wge; T.variableDeclarator = Age; T.variance = fDe; T.voidTypeAnnotation = dDe; T.whileStatement = _ge; T.withStatement = Pge; T.yieldExpression = Qge; var B0e = yy(), Ey = pd(), N0e = Qn(), { validateInternal: x } = B0e, { NODE_FIELDS: q } = N0e; function M0e(e = []) { let t = { type: "ArrayExpression", elements: e }, r = q.ArrayExpression; return x(r.elements, t, "elements", e, 1), t; } s(M0e, "arrayExpression"); function R0e(e, t, r) { let i = { type: "AssignmentExpression", operator: e, left: t, right: r }, n = q.AssignmentExpression; return x(n.operator, i, "operator", e), x(n.left, i, "left", t, 1), x(n.right, i, "right", r, 1), i; } s(R0e, "assignmentExpression"); function j0e(e, t, r) { let i = { type: "BinaryExpression", operator: e, left: t, right: r }, n = q.BinaryExpression; return x(n.operator, i, "operator", e), x(n.left, i, "left", t, 1), x(n.right, i, "right", r, 1), i; } s(j0e, "binaryExpression"); function L0e(e) { let t = { type: "InterpreterDirective", value: e }, r = q.InterpreterDirective; return x(r.value, t, "value", e), t; } s(L0e, "interpreterDirective"); function q0e(e) { let t = { type: "Directive", value: e }, r = q.Directive; return x(r.value, t, "value", e, 1), t; } s(q0e, "directive"); function U0e(e) { let t = { type: "DirectiveLiteral", value: e }, r = q.DirectiveLiteral; return x(r.value, t, "value", e), t; } s(U0e, "directiveLiteral"); function W0e(e, t = []) { let r = { type: "BlockStatement", body: e, directives: t }, i = q.BlockStatement; return x(i.body, r, "body", e, 1), x(i.directives, r, "directives", t, 1), r; } s(W0e, "blockStatement"); function $0e(e = null) { let t = { type: "BreakStatement", label: e }, r = q.BreakStatement; return x(r.label, t, "label", e, 1), t; } s($0e, "breakStatement"); function V0e(e, t) { let r = { type: "CallExpression", callee: e, arguments: t }, i = q.CallExpression; return x(i.callee, r, "callee", e, 1), x(i.arguments, r, "arguments", t, 1), r; } s(V0e, "callExpression"); function H0e(e = null, t) { let r = { type: "CatchClause", param: e, body: t }, i = q.CatchClause; return x(i.param, r, "param", e, 1), x(i.body, r, "body", t, 1), r; } s(H0e, "catchClause"); function K0e(e, t, r) { let i = { type: "ConditionalExpression", test: e, consequent: t, alternate: r }, n = q.ConditionalExpression; return x(n.test, i, "test", e, 1), x(n.consequent, i, "consequent", t, 1), x(n.alternate, i, "alternate", r, 1), i; } s(K0e, "conditionalExpression"); function z0e(e = null) { let t = { type: "ContinueStatement", label: e }, r = q.ContinueStatement; return x(r.label, t, "label", e, 1), t; } s(z0e, "continueStatement"); function G0e() { return { type: "DebuggerStatement" }; } s(G0e, "debuggerStatement"); function J0e(e, t) { let r = { type: "DoWhileStatement", test: e, body: t }, i = q.DoWhileStatement; return x(i.test, r, "test", e, 1), x(i.body, r, "body", t, 1), r; } s(J0e, "doWhileStatement"); function X0e() { return { type: "EmptyStatement" }; } s(X0e, "emptyStatement"); function Y0e(e) { let t = { type: "ExpressionStatement", expression: e }, r = q.ExpressionStatement; return x(r.expression, t, "expression", e, 1), t; } s(Y0e, "expressionStatement"); function Z0e(e, t = null, r = null) { let i = { type: "File", program: e, comments: t, tokens: r }, n = q.File; return x(n.program, i, "program", e, 1), x(n.comments, i, "comments", t, 1), x(n.tokens, i, "tokens", r), i; } s(Z0e, "file"); function Q0e(e, t, r) { let i = { type: "ForInStatement", left: e, right: t, body: r }, n = q.ForInStatement; return x(n.left, i, "left", e, 1), x(n.right, i, "right", t, 1), x(n.body, i, "body", r, 1), i; } s(Q0e, "forInStatement"); function ege(e = null, t = null, r = null, i) { let n = { type: "ForStatement", init: e, test: t, update: r, body: i }, a = q.ForStatement; return x(a.init, n, "init", e, 1), x(a.test, n, "test", t, 1), x(a.update, n, "update", r, 1), x(a.body, n, "body", i, 1), n; } s(ege, "forStatement"); function tge(e = null, t, r, i = !1, n = !1) { let a = { type: "FunctionDeclaration", id: e, params: t, body: r, generator: i, async: n }, o = q.FunctionDeclaration; return x(o.id, a, "id", e, 1), x(o.params, a, "params", t, 1), x(o.body, a, "body", r, 1), x(o.generator, a, "generator", i), x(o.async, a, "async", n), a; } s(tge, "functionDeclaration"); function rge(e = null, t, r, i = !1, n = !1) { let a = { type: "FunctionExpression", id: e, params: t, body: r, generator: i, async: n }, o = q.FunctionExpression; return x(o.id, a, "id", e, 1), x(o.params, a, "params", t, 1), x(o.body, a, "body", r, 1), x(o.generator, a, "generator", i), x(o.async, a, "async", n), a; } s(rge, "functionExpression"); function ige(e) { let t = { type: "Identifier", name: e }, r = q.Identifier; return x(r.name, t, "name", e), t; } s(ige, "identifier"); function nge(e, t, r = null) { let i = { type: "IfStatement", test: e, consequent: t, alternate: r }, n = q.IfStatement; return x(n.test, i, "test", e, 1), x(n.consequent, i, "consequent", t, 1), x(n.alternate, i, "alternate", r, 1), i; } s(nge, "ifStatement"); function sge(e, t) { let r = { type: "LabeledStatement", label: e, body: t }, i = q.LabeledStatement; return x(i.label, r, "label", e, 1), x(i.body, r, "body", t, 1), r; } s(sge, "labeledStatement"); function age(e) { let t = { type: "StringLiteral", value: e }, r = q.StringLiteral; return x(r.value, t, "value", e), t; } s(age, "stringLiteral"); function iL(e) { let t = { type: "NumericLiteral", value: e }, r = q.NumericLiteral; return x(r.value, t, "value", e), t; } s(iL, "numericLiteral"); function oge() { return { type: "NullLiteral" }; } s(oge, "nullLiteral"); function uge(e) { let t = { type: "BooleanLiteral", value: e }, r = q.BooleanLiteral; return x(r.value, t, "value", e), t; } s(uge, "booleanLiteral"); function nL(e, t = "") { let r = { type: "RegExpLiteral", pattern: e, flags: t }, i = q.RegExpLiteral; return x(i.pattern, r, "pattern", e), x(i.flags, r, "flags", t), r; } s(nL, "regExpLiteral"); function lge(e, t, r) { let i = { type: "LogicalExpression", operator: e, left: t, right: r }, n = q.LogicalExpression; return x(n.operator, i, "operator", e), x(n.left, i, "left", t, 1), x(n.right, i, "right", r, 1), i; } s(lge, "logicalExpression"); function cge(e, t, r = !1, i = null) { let n = { type: "MemberExpression", object: e, property: t, computed: r, optional: i }, a = q.MemberExpression; return x(a.object, n, "object", e, 1), x(a.property, n, "property", t, 1), x(a.computed, n, "computed", r), x(a.optional, n, "optional", i), n; } s(cge, "memberExpression"); function fge(e, t) { let r = { type: "NewExpression", callee: e, arguments: t }, i = q.NewExpression; return x(i.callee, r, "callee", e, 1), x(i.arguments, r, "arguments", t, 1), r; } s(fge, "newExpression"); function dge(e, t = [], r = "script", i = null) { let n = { type: "Program", body: e, directives: t, sourceType: r, interpreter: i }, a = q.Program; return x(a.body, n, "body", e, 1), x(a.directives, n, "directives", t, 1), x(a.sourceType, n, "sourceType", r), x(a.interpreter, n, "int\ erpreter", i, 1), n; } s(dge, "program"); function pge(e) { let t = { type: "ObjectExpression", properties: e }, r = q.ObjectExpression; return x(r.properties, t, "properties", e, 1), t; } s(pge, "objectExpression"); function hge(e = "method", t, r, i, n = !1, a = !1, o = !1) { let u = { type: "ObjectMethod", kind: e, key: t, params: r, body: i, computed: n, generator: a, async: o }, l = q.ObjectMethod; return x(l.kind, u, "kind", e), x(l.key, u, "key", t, 1), x(l.params, u, "params", r, 1), x(l.body, u, "body", i, 1), x(l.computed, u, "\ computed", n), x(l.generator, u, "generator", a), x(l.async, u, "async", o), u; } s(hge, "objectMethod"); function mge(e, t, r = !1, i = !1, n = null) { let a = { type: "ObjectProperty", key: e, value: t, computed: r, shorthand: i, decorators: n }, o = q.ObjectProperty; return x(o.key, a, "key", e, 1), x(o.value, a, "value", t, 1), x(o.computed, a, "computed", r), x(o.shorthand, a, "shorthand", i), x(o.decorators, a, "decorators", n, 1), a; } s(mge, "objectProperty"); function sL(e) { let t = { type: "RestElement", argument: e }, r = q.RestElement; return x(r.argument, t, "argument", e, 1), t; } s(sL, "restElement"); function yge(e = null) { let t = { type: "ReturnStatement", argument: e }, r = q.ReturnStatement; return x(r.argument, t, "argument", e, 1), t; } s(yge, "returnStatement"); function gge(e) { let t = { type: "SequenceExpression", expressions: e }, r = q.SequenceExpression; return x(r.expressions, t, "expressions", e, 1), t; } s(gge, "sequenceExpression"); function bge(e) { let t = { type: "ParenthesizedExpression", expression: e }, r = q.ParenthesizedExpression; return x(r.expression, t, "expression", e, 1), t; } s(bge, "parenthesizedExpression"); function Dge(e = null, t) { let r = { type: "SwitchCase", test: e, consequent: t }, i = q.SwitchCase; return x(i.test, r, "test", e, 1), x(i.consequent, r, "consequent", t, 1), r; } s(Dge, "switchCase"); function vge(e, t) { let r = { type: "SwitchStatement", discriminant: e, cases: t }, i = q.SwitchStatement; return x(i.discriminant, r, "discriminant", e, 1), x(i.cases, r, "cases", t, 1), r; } s(vge, "switchStatement"); function Ege() { return { type: "ThisExpression" }; } s(Ege, "thisExpression"); function xge(e) { let t = { type: "ThrowStatement", argument: e }, r = q.ThrowStatement; return x(r.argument, t, "argument", e, 1), t; } s(xge, "throwStatement"); function Sge(e, t = null, r = null) { let i = { type: "TryStatement", block: e, handler: t, finalizer: r }, n = q.TryStatement; return x(n.block, i, "block", e, 1), x(n.handler, i, "handler", t, 1), x(n.finalizer, i, "finalizer", r, 1), i; } s(Sge, "tryStatement"); function Tge(e, t, r = !0) { let i = { type: "UnaryExpression", operator: e, argument: t, prefix: r }, n = q.UnaryExpression; return x(n.operator, i, "operator", e), x(n.argument, i, "argument", t, 1), x(n.prefix, i, "prefix", r), i; } s(Tge, "unaryExpression"); function Cge(e, t, r = !1) { let i = { type: "UpdateExpression", operator: e, argument: t, prefix: r }, n = q.UpdateExpression; return x(n.operator, i, "operator", e), x(n.argument, i, "argument", t, 1), x(n.prefix, i, "prefix", r), i; } s(Cge, "updateExpression"); function wge(e, t) { let r = { type: "VariableDeclaration", kind: e, declarations: t }, i = q.VariableDeclaration; return x(i.kind, r, "kind", e), x(i.declarations, r, "declarations", t, 1), r; } s(wge, "variableDeclaration"); function Age(e, t = null) { let r = { type: "VariableDeclarator", id: e, init: t }, i = q.VariableDeclarator; return x(i.id, r, "id", e, 1), x(i.init, r, "init", t, 1), r; } s(Age, "variableDeclarator"); function _ge(e, t) { let r = { type: "WhileStatement", test: e, body: t }, i = q.WhileStatement; return x(i.test, r, "test", e, 1), x(i.body, r, "body", t, 1), r; } s(_ge, "whileStatement"); function Pge(e, t) { let r = { type: "WithStatement", object: e, body: t }, i = q.WithStatement; return x(i.object, r, "object", e, 1), x(i.body, r, "body", t, 1), r; } s(Pge, "withStatement"); function Fge(e, t) { let r = { type: "AssignmentPattern", left: e, right: t }, i = q.AssignmentPattern; return x(i.left, r, "left", e, 1), x(i.right, r, "right", t, 1), r; } s(Fge, "assignmentPattern"); function Ige(e) { let t = { type: "ArrayPattern", elements: e }, r = q.ArrayPattern; return x(r.elements, t, "elements", e, 1), t; } s(Ige, "arrayPattern"); function Oge(e, t, r = !1) { let i = { type: "ArrowFunctionExpression", params: e, body: t, async: r, expression: null }, n = q.ArrowFunctionExpression; return x(n.params, i, "params", e, 1), x(n.body, i, "body", t, 1), x(n.async, i, "async", r), i; } s(Oge, "arrowFunctionExpression"); function kge(e) { let t = { type: "ClassBody", body: e }, r = q.ClassBody; return x(r.body, t, "body", e, 1), t; } s(kge, "classBody"); function Bge(e = null, t = null, r, i = null) { let n = { type: "ClassExpression", id: e, superClass: t, body: r, decorators: i }, a = q.ClassExpression; return x(a.id, n, "id", e, 1), x(a.superClass, n, "superClass", t, 1), x(a.body, n, "body", r, 1), x(a.decorators, n, "decorators", i, 1), n; } s(Bge, "classExpression"); function Nge(e = null, t = null, r, i = null) { let n = { type: "ClassDeclaration", id: e, superClass: t, body: r, decorators: i }, a = q.ClassDeclaration; return x(a.id, n, "id", e, 1), x(a.superClass, n, "superClass", t, 1), x(a.body, n, "body", r, 1), x(a.decorators, n, "decorators", i, 1), n; } s(Nge, "classDeclaration"); function Mge(e) { let t = { type: "ExportAllDeclaration", source: e }, r = q.ExportAllDeclaration; return x(r.source, t, "source", e, 1), t; } s(Mge, "exportAllDeclaration"); function Rge(e) { let t = { type: "ExportDefaultDeclaration", declaration: e }, r = q.ExportDefaultDeclaration; return x(r.declaration, t, "declaration", e, 1), t; } s(Rge, "exportDefaultDeclaration"); function jge(e = null, t = [], r = null) { let i = { type: "ExportNamedDeclaration", declaration: e, specifiers: t, source: r }, n = q.ExportNamedDeclaration; return x(n.declaration, i, "declaration", e, 1), x(n.specifiers, i, "specifiers", t, 1), x(n.source, i, "source", r, 1), i; } s(jge, "exportNamedDeclaration"); function Lge(e, t) { let r = { type: "ExportSpecifier", local: e, exported: t }, i = q.ExportSpecifier; return x(i.local, r, "local", e, 1), x(i.exported, r, "exported", t, 1), r; } s(Lge, "exportSpecifier"); function qge(e, t, r, i = !1) { let n = { type: "ForOfStatement", left: e, right: t, body: r, await: i }, a = q.ForOfStatement; return x(a.left, n, "left", e, 1), x(a.right, n, "right", t, 1), x(a.body, n, "body", r, 1), x(a.await, n, "await", i), n; } s(qge, "forOfStatement"); function Uge(e, t) { let r = { type: "ImportDeclaration", specifiers: e, source: t }, i = q.ImportDeclaration; return x(i.specifiers, r, "specifiers", e, 1), x(i.source, r, "source", t, 1), r; } s(Uge, "importDeclaration"); function Wge(e) { let t = { type: "ImportDefaultSpecifier", local: e }, r = q.ImportDefaultSpecifier; return x(r.local, t, "local", e, 1), t; } s(Wge, "importDefaultSpecifier"); function $ge(e) { let t = { type: "ImportNamespaceSpecifier", local: e }, r = q.ImportNamespaceSpecifier; return x(r.local, t, "local", e, 1), t; } s($ge, "importNamespaceSpecifier"); function Vge(e, t) { let r = { type: "ImportSpecifier", local: e, imported: t }, i = q.ImportSpecifier; return x(i.local, r, "local", e, 1), x(i.imported, r, "imported", t, 1), r; } s(Vge, "importSpecifier"); function Hge(e, t = null) { let r = { type: "ImportExpression", source: e, options: t }, i = q.ImportExpression; return x(i.source, r, "source", e, 1), x(i.options, r, "options", t, 1), r; } s(Hge, "importExpression"); function Kge(e, t) { let r = { type: "MetaProperty", meta: e, property: t }, i = q.MetaProperty; return x(i.meta, r, "meta", e, 1), x(i.property, r, "property", t, 1), r; } s(Kge, "metaProperty"); function zge(e = "method", t, r, i, n = !1, a = !1, o = !1, u = !1) { let l = { type: "ClassMethod", kind: e, key: t, params: r, body: i, computed: n, static: a, generator: o, async: u }, c = q.ClassMethod; return x(c.kind, l, "kind", e), x(c.key, l, "key", t, 1), x(c.params, l, "params", r, 1), x(c.body, l, "body", i, 1), x(c.computed, l, "\ computed", n), x(c.static, l, "static", a), x(c.generator, l, "generator", o), x(c.async, l, "async", u), l; } s(zge, "classMethod"); function Gge(e) { let t = { type: "ObjectPattern", properties: e }, r = q.ObjectPattern; return x(r.properties, t, "properties", e, 1), t; } s(Gge, "objectPattern"); function aL(e) { let t = { type: "SpreadElement", argument: e }, r = q.SpreadElement; return x(r.argument, t, "argument", e, 1), t; } s(aL, "spreadElement"); function Jge() { return { type: "Super" }; } s(Jge, "_super"); function Xge(e, t) { let r = { type: "TaggedTemplateExpression", tag: e, quasi: t }, i = q.TaggedTemplateExpression; return x(i.tag, r, "tag", e, 1), x(i.quasi, r, "quasi", t, 1), r; } s(Xge, "taggedTemplateExpression"); function Yge(e, t = !1) { let r = { type: "TemplateElement", value: e, tail: t }, i = q.TemplateElement; return x(i.value, r, "value", e), x(i.tail, r, "tail", t), r; } s(Yge, "templateElement"); function Zge(e, t) { let r = { type: "TemplateLiteral", quasis: e, expressions: t }, i = q.TemplateLiteral; return x(i.quasis, r, "quasis", e, 1), x(i.expressions, r, "expressions", t, 1), r; } s(Zge, "templateLiteral"); function Qge(e = null, t = !1) { let r = { type: "YieldExpression", argument: e, delegate: t }, i = q.YieldExpression; return x(i.argument, r, "argument", e, 1), x(i.delegate, r, "delegate", t), r; } s(Qge, "yieldExpression"); function ebe(e) { let t = { type: "AwaitExpression", argument: e }, r = q.AwaitExpression; return x(r.argument, t, "argument", e, 1), t; } s(ebe, "awaitExpression"); function tbe() { return { type: "Import" }; } s(tbe, "_import"); function rbe(e) { let t = { type: "BigIntLiteral", value: e }, r = q.BigIntLiteral; return x(r.value, t, "value", e), t; } s(rbe, "bigIntLiteral"); function ibe(e) { let t = { type: "ExportNamespaceSpecifier", exported: e }, r = q.ExportNamespaceSpecifier; return x(r.exported, t, "exported", e, 1), t; } s(ibe, "exportNamespaceSpecifier"); function nbe(e, t, r = !1, i) { let n = { type: "OptionalMemberExpression", object: e, property: t, computed: r, optional: i }, a = q.OptionalMemberExpression; return x(a.object, n, "object", e, 1), x(a.property, n, "property", t, 1), x(a.computed, n, "computed", r), x(a.optional, n, "optional", i), n; } s(nbe, "optionalMemberExpression"); function sbe(e, t, r) { let i = { type: "OptionalCallExpression", callee: e, arguments: t, optional: r }, n = q.OptionalCallExpression; return x(n.callee, i, "callee", e, 1), x(n.arguments, i, "arguments", t, 1), x(n.optional, i, "optional", r), i; } s(sbe, "optionalCallExpression"); function abe(e, t = null, r = null, i = null, n = !1, a = !1) { let o = { type: "ClassProperty", key: e, value: t, typeAnnotation: r, decorators: i, computed: n, static: a }, u = q.ClassProperty; return x(u.key, o, "key", e, 1), x(u.value, o, "value", t, 1), x(u.typeAnnotation, o, "typeAnnotation", r, 1), x(u.decorators, o, "decor\ ators", i, 1), x(u.computed, o, "computed", n), x(u.static, o, "static", a), o; } s(abe, "classProperty"); function obe(e, t = null, r = null, i = null, n = !1, a = !1) { let o = { type: "ClassAccessorProperty", key: e, value: t, typeAnnotation: r, decorators: i, computed: n, static: a }, u = q.ClassAccessorProperty; return x(u.key, o, "key", e, 1), x(u.value, o, "value", t, 1), x(u.typeAnnotation, o, "typeAnnotation", r, 1), x(u.decorators, o, "decor\ ators", i, 1), x(u.computed, o, "computed", n), x(u.static, o, "static", a), o; } s(obe, "classAccessorProperty"); function ube(e, t = null, r = null, i = !1) { let n = { type: "ClassPrivateProperty", key: e, value: t, decorators: r, static: i }, a = q.ClassPrivateProperty; return x(a.key, n, "key", e, 1), x(a.value, n, "value", t, 1), x(a.decorators, n, "decorators", r, 1), x(a.static, n, "static", i), n; } s(ube, "classPrivateProperty"); function lbe(e = "method", t, r, i, n = !1) { let a = { type: "ClassPrivateMethod", kind: e, key: t, params: r, body: i, static: n }, o = q.ClassPrivateMethod; return x(o.kind, a, "kind", e), x(o.key, a, "key", t, 1), x(o.params, a, "params", r, 1), x(o.body, a, "body", i, 1), x(o.static, a, "st\ atic", n), a; } s(lbe, "classPrivateMethod"); function cbe(e) { let t = { type: "PrivateName", id: e }, r = q.PrivateName; return x(r.id, t, "id", e, 1), t; } s(cbe, "privateName"); function fbe(e) { let t = { type: "StaticBlock", body: e }, r = q.StaticBlock; return x(r.body, t, "body", e, 1), t; } s(fbe, "staticBlock"); function dbe(e, t) { let r = { type: "ImportAttribute", key: e, value: t }, i = q.ImportAttribute; return x(i.key, r, "key", e, 1), x(i.value, r, "value", t, 1), r; } s(dbe, "importAttribute"); function pbe() { return { type: "AnyTypeAnnotation" }; } s(pbe, "anyTypeAnnotation"); function hbe(e) { let t = { type: "ArrayTypeAnnotation", elementType: e }, r = q.ArrayTypeAnnotation; return x(r.elementType, t, "elementType", e, 1), t; } s(hbe, "arrayTypeAnnotation"); function mbe() { return { type: "BooleanTypeAnnotation" }; } s(mbe, "booleanTypeAnnotation"); function ybe(e) { let t = { type: "BooleanLiteralTypeAnnotation", value: e }, r = q.BooleanLiteralTypeAnnotation; return x(r.value, t, "value", e), t; } s(ybe, "booleanLiteralTypeAnnotation"); function gbe() { return { type: "NullLiteralTypeAnnotation" }; } s(gbe, "nullLiteralTypeAnnotation"); function bbe(e, t = null) { let r = { type: "ClassImplements", id: e, typeParameters: t }, i = q.ClassImplements; return x(i.id, r, "id", e, 1), x(i.typeParameters, r, "typeParameters", t, 1), r; } s(bbe, "classImplements"); function Dbe(e, t = null, r = null, i) { let n = { type: "DeclareClass", id: e, typeParameters: t, extends: r, body: i }, a = q.DeclareClass; return x(a.id, n, "id", e, 1), x(a.typeParameters, n, "typeParameters", t, 1), x(a.extends, n, "extends", r, 1), x(a.body, n, "body", i, 1), n; } s(Dbe, "declareClass"); function vbe(e) { let t = { type: "DeclareFunction", id: e }, r = q.DeclareFunction; return x(r.id, t, "id", e, 1), t; } s(vbe, "declareFunction"); function Ebe(e, t = null, r = null, i) { let n = { type: "DeclareInterface", id: e, typeParameters: t, extends: r, body: i }, a = q.DeclareInterface; return x(a.id, n, "id", e, 1), x(a.typeParameters, n, "typeParameters", t, 1), x(a.extends, n, "extends", r, 1), x(a.body, n, "body", i, 1), n; } s(Ebe, "declareInterface"); function xbe(e, t, r = null) { let i = { type: "DeclareModule", id: e, body: t, kind: r }, n = q.DeclareModule; return x(n.id, i, "id", e, 1), x(n.body, i, "body", t, 1), x(n.kind, i, "kind", r), i; } s(xbe, "declareModule"); function Sbe(e) { let t = { type: "DeclareModuleExports", typeAnnotation: e }, r = q.DeclareModuleExports; return x(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } s(Sbe, "declareModuleExports"); function Tbe(e, t = null, r) { let i = { type: "DeclareTypeAlias", id: e, typeParameters: t, right: r }, n = q.DeclareTypeAlias; return x(n.id, i, "id", e, 1), x(n.typeParameters, i, "typeParameters", t, 1), x(n.right, i, "right", r, 1), i; } s(Tbe, "declareTypeAlias"); function Cbe(e, t = null, r = null) { let i = { type: "DeclareOpaqueType", id: e, typeParameters: t, supertype: r }, n = q.DeclareOpaqueType; return x(n.id, i, "id", e, 1), x(n.typeParameters, i, "typeParameters", t, 1), x(n.supertype, i, "supertype", r, 1), i; } s(Cbe, "declareOpaqueType"); function wbe(e) { let t = { type: "DeclareVariable", id: e }, r = q.DeclareVariable; return x(r.id, t, "id", e, 1), t; } s(wbe, "declareVariable"); function Abe(e = null, t = null, r = null, i = null) { let n = { type: "DeclareExportDeclaration", declaration: e, specifiers: t, source: r, attributes: i }, a = q.DeclareExportDeclaration; return x(a.declaration, n, "declaration", e, 1), x(a.specifiers, n, "specifiers", t, 1), x(a.source, n, "source", r, 1), x(a.attributes, n, "attributes", i, 1), n; } s(Abe, "declareExportDeclaration"); function _be(e, t = null) { let r = { type: "DeclareExportAllDeclaration", source: e, attributes: t }, i = q.DeclareExportAllDeclaration; return x(i.source, r, "source", e, 1), x(i.attributes, r, "attributes", t, 1), r; } s(_be, "declareExportAllDeclaration"); function Pbe(e) { let t = { type: "DeclaredPredicate", value: e }, r = q.DeclaredPredicate; return x(r.value, t, "value", e, 1), t; } s(Pbe, "declaredPredicate"); function Fbe() { return { type: "ExistsTypeAnnotation" }; } s(Fbe, "existsTypeAnnotation"); function Ibe(e = null, t, r = null, i) { let n = { type: "FunctionTypeAnnotation", typeParameters: e, params: t, rest: r, returnType: i }, a = q.FunctionTypeAnnotation; return x(a.typeParameters, n, "typeParameters", e, 1), x(a.params, n, "params", t, 1), x(a.rest, n, "rest", r, 1), x(a.returnType, n, "r\ eturnType", i, 1), n; } s(Ibe, "functionTypeAnnotation"); function Obe(e = null, t) { let r = { type: "FunctionTypeParam", name: e, typeAnnotation: t }, i = q.FunctionTypeParam; return x(i.name, r, "name", e, 1), x(i.typeAnnotation, r, "typeAnnotation", t, 1), r; } s(Obe, "functionTypeParam"); function kbe(e, t = null) { let r = { type: "GenericTypeAnnotation", id: e, typeParameters: t }, i = q.GenericTypeAnnotation; return x(i.id, r, "id", e, 1), x(i.typeParameters, r, "typeParameters", t, 1), r; } s(kbe, "genericTypeAnnotation"); function Bbe() { return { type: "InferredPredicate" }; } s(Bbe, "inferredPredicate"); function Nbe(e, t = null) { let r = { type: "InterfaceExtends", id: e, typeParameters: t }, i = q.InterfaceExtends; return x(i.id, r, "id", e, 1), x(i.typeParameters, r, "typeParameters", t, 1), r; } s(Nbe, "interfaceExtends"); function Mbe(e, t = null, r = null, i) { let n = { type: "InterfaceDeclaration", id: e, typeParameters: t, extends: r, body: i }, a = q.InterfaceDeclaration; return x(a.id, n, "id", e, 1), x(a.typeParameters, n, "typeParameters", t, 1), x(a.extends, n, "extends", r, 1), x(a.body, n, "body", i, 1), n; } s(Mbe, "interfaceDeclaration"); function Rbe(e = null, t) { let r = { type: "InterfaceTypeAnnotation", extends: e, body: t }, i = q.InterfaceTypeAnnotation; return x(i.extends, r, "extends", e, 1), x(i.body, r, "body", t, 1), r; } s(Rbe, "interfaceTypeAnnotation"); function jbe(e) { let t = { type: "IntersectionTypeAnnotation", types: e }, r = q.IntersectionTypeAnnotation; return x(r.types, t, "types", e, 1), t; } s(jbe, "intersectionTypeAnnotation"); function Lbe() { return { type: "MixedTypeAnnotation" }; } s(Lbe, "mixedTypeAnnotation"); function qbe() { return { type: "EmptyTypeAnnotation" }; } s(qbe, "emptyTypeAnnotation"); function Ube(e) { let t = { type: "NullableTypeAnnotation", typeAnnotation: e }, r = q.NullableTypeAnnotation; return x(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } s(Ube, "nullableTypeAnnotation"); function Wbe(e) { let t = { type: "NumberLiteralTypeAnnotation", value: e }, r = q.NumberLiteralTypeAnnotation; return x(r.value, t, "value", e), t; } s(Wbe, "numberLiteralTypeAnnotation"); function $be() { return { type: "NumberTypeAnnotation" }; } s($be, "numberTypeAnnotation"); function Vbe(e, t = [], r = [], i = [], n = !1) { let a = { type: "ObjectTypeAnnotation", properties: e, indexers: t, callProperties: r, internalSlots: i, exact: n }, o = q.ObjectTypeAnnotation; return x(o.properties, a, "properties", e, 1), x(o.indexers, a, "indexers", t, 1), x(o.callProperties, a, "callProperties", r, 1), x(o.internalSlots, a, "internalSlots", i, 1), x(o.exact, a, "exact", n), a; } s(Vbe, "objectTypeAnnotation"); function Hbe(e, t, r, i, n) { let a = { type: "ObjectTypeInternalSlot", id: e, value: t, optional: r, static: i, method: n }, o = q.ObjectTypeInternalSlot; return x(o.id, a, "id", e, 1), x(o.value, a, "value", t, 1), x(o.optional, a, "optional", r), x(o.static, a, "static", i), x(o.method, a, "method", n), a; } s(Hbe, "objectTypeInternalSlot"); function Kbe(e) { let t = { type: "ObjectTypeCallProperty", value: e, static: null }, r = q.ObjectTypeCallProperty; return x(r.value, t, "value", e, 1), t; } s(Kbe, "objectTypeCallProperty"); function zbe(e = null, t, r, i = null) { let n = { type: "ObjectTypeIndexer", id: e, key: t, value: r, variance: i, static: null }, a = q.ObjectTypeIndexer; return x(a.id, n, "id", e, 1), x(a.key, n, "key", t, 1), x(a.value, n, "value", r, 1), x(a.variance, n, "variance", i, 1), n; } s(zbe, "objectTypeIndexer"); function Gbe(e, t, r = null) { let i = { type: "ObjectTypeProperty", key: e, value: t, variance: r, kind: null, method: null, optional: null, proto: null, static: null }, n = q.ObjectTypeProperty; return x(n.key, i, "key", e, 1), x(n.value, i, "value", t, 1), x(n.variance, i, "variance", r, 1), i; } s(Gbe, "objectTypeProperty"); function Jbe(e) { let t = { type: "ObjectTypeSpreadProperty", argument: e }, r = q.ObjectTypeSpreadProperty; return x(r.argument, t, "argument", e, 1), t; } s(Jbe, "objectTypeSpreadProperty"); function Xbe(e, t = null, r = null, i) { let n = { type: "OpaqueType", id: e, typeParameters: t, supertype: r, impltype: i }, a = q.OpaqueType; return x(a.id, n, "id", e, 1), x(a.typeParameters, n, "typeParameters", t, 1), x(a.supertype, n, "supertype", r, 1), x(a.impltype, n, "i\ mpltype", i, 1), n; } s(Xbe, "opaqueType"); function Ybe(e, t) { let r = { type: "QualifiedTypeIdentifier", id: e, qualification: t }, i = q.QualifiedTypeIdentifier; return x(i.id, r, "id", e, 1), x(i.qualification, r, "qualification", t, 1), r; } s(Ybe, "qualifiedTypeIdentifier"); function Zbe(e) { let t = { type: "StringLiteralTypeAnnotation", value: e }, r = q.StringLiteralTypeAnnotation; return x(r.value, t, "value", e), t; } s(Zbe, "stringLiteralTypeAnnotation"); function Qbe() { return { type: "StringTypeAnnotation" }; } s(Qbe, "stringTypeAnnotation"); function eDe() { return { type: "SymbolTypeAnnotation" }; } s(eDe, "symbolTypeAnnotation"); function tDe() { return { type: "ThisTypeAnnotation" }; } s(tDe, "thisTypeAnnotation"); function rDe(e) { let t = { type: "TupleTypeAnnotation", types: e }, r = q.TupleTypeAnnotation; return x(r.types, t, "types", e, 1), t; } s(rDe, "tupleTypeAnnotation"); function iDe(e) { let t = { type: "TypeofTypeAnnotation", argument: e }, r = q.TypeofTypeAnnotation; return x(r.argument, t, "argument", e, 1), t; } s(iDe, "typeofTypeAnnotation"); function nDe(e, t = null, r) { let i = { type: "TypeAlias", id: e, typeParameters: t, right: r }, n = q.TypeAlias; return x(n.id, i, "id", e, 1), x(n.typeParameters, i, "typeParameters", t, 1), x(n.right, i, "right", r, 1), i; } s(nDe, "typeAlias"); function sDe(e) { let t = { type: "TypeAnnotation", typeAnnotation: e }, r = q.TypeAnnotation; return x(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } s(sDe, "typeAnnotation"); function aDe(e, t) { let r = { type: "TypeCastExpression", expression: e, typeAnnotation: t }, i = q.TypeCastExpression; return x(i.expression, r, "expression", e, 1), x(i.typeAnnotation, r, "typeAnnotation", t, 1), r; } s(aDe, "typeCastExpression"); function oDe(e = null, t = null, r = null) { let i = { type: "TypeParameter", bound: e, default: t, variance: r, name: null }, n = q.TypeParameter; return x(n.bound, i, "bound", e, 1), x(n.default, i, "default", t, 1), x(n.variance, i, "variance", r, 1), i; } s(oDe, "typeParameter"); function uDe(e) { let t = { type: "TypeParameterDeclaration", params: e }, r = q.TypeParameterDeclaration; return x(r.params, t, "params", e, 1), t; } s(uDe, "typeParameterDeclaration"); function lDe(e) { let t = { type: "TypeParameterInstantiation", params: e }, r = q.TypeParameterInstantiation; return x(r.params, t, "params", e, 1), t; } s(lDe, "typeParameterInstantiation"); function cDe(e) { let t = { type: "UnionTypeAnnotation", types: e }, r = q.UnionTypeAnnotation; return x(r.types, t, "types", e, 1), t; } s(cDe, "unionTypeAnnotation"); function fDe(e) { let t = { type: "Variance", kind: e }, r = q.Variance; return x(r.kind, t, "kind", e), t; } s(fDe, "variance"); function dDe() { return { type: "VoidTypeAnnotation" }; } s(dDe, "voidTypeAnnotation"); function pDe(e, t) { let r = { type: "EnumDeclaration", id: e, body: t }, i = q.EnumDeclaration; return x(i.id, r, "id", e, 1), x(i.body, r, "body", t, 1), r; } s(pDe, "enumDeclaration"); function hDe(e) { let t = { type: "EnumBooleanBody", members: e, explicitType: null, hasUnknownMembers: null }, r = q.EnumBooleanBody; return x(r.members, t, "members", e, 1), t; } s(hDe, "enumBooleanBody"); function mDe(e) { let t = { type: "EnumNumberBody", members: e, explicitType: null, hasUnknownMembers: null }, r = q.EnumNumberBody; return x(r.members, t, "members", e, 1), t; } s(mDe, "enumNumberBody"); function yDe(e) { let t = { type: "EnumStringBody", members: e, explicitType: null, hasUnknownMembers: null }, r = q.EnumStringBody; return x(r.members, t, "members", e, 1), t; } s(yDe, "enumStringBody"); function gDe(e) { let t = { type: "EnumSymbolBody", members: e, hasUnknownMembers: null }, r = q.EnumSymbolBody; return x(r.members, t, "members", e, 1), t; } s(gDe, "enumSymbolBody"); function bDe(e) { let t = { type: "EnumBooleanMember", id: e, init: null }, r = q.EnumBooleanMember; return x(r.id, t, "id", e, 1), t; } s(bDe, "enumBooleanMember"); function DDe(e, t) { let r = { type: "EnumNumberMember", id: e, init: t }, i = q.EnumNumberMember; return x(i.id, r, "id", e, 1), x(i.init, r, "init", t, 1), r; } s(DDe, "enumNumberMember"); function vDe(e, t) { let r = { type: "EnumStringMember", id: e, init: t }, i = q.EnumStringMember; return x(i.id, r, "id", e, 1), x(i.init, r, "init", t, 1), r; } s(vDe, "enumStringMember"); function EDe(e) { let t = { type: "EnumDefaultedMember", id: e }, r = q.EnumDefaultedMember; return x(r.id, t, "id", e, 1), t; } s(EDe, "enumDefaultedMember"); function xDe(e, t) { let r = { type: "IndexedAccessType", objectType: e, indexType: t }, i = q.IndexedAccessType; return x(i.objectType, r, "objectType", e, 1), x(i.indexType, r, "indexType", t, 1), r; } s(xDe, "indexedAccessType"); function SDe(e, t) { let r = { type: "OptionalIndexedAccessType", objectType: e, indexType: t, optional: null }, i = q.OptionalIndexedAccessType; return x(i.objectType, r, "objectType", e, 1), x(i.indexType, r, "indexType", t, 1), r; } s(SDe, "optionalIndexedAccessType"); function TDe(e, t = null) { let r = { type: "JSXAttribute", name: e, value: t }, i = q.JSXAttribute; return x(i.name, r, "name", e, 1), x(i.value, r, "value", t, 1), r; } s(TDe, "jsxAttribute"); function CDe(e) { let t = { type: "JSXClosingElement", name: e }, r = q.JSXClosingElement; return x(r.name, t, "name", e, 1), t; } s(CDe, "jsxClosingElement"); function wDe(e, t = null, r, i = null) { let n = { type: "JSXElement", openingElement: e, closingElement: t, children: r, selfClosing: i }, a = q.JSXElement; return x(a.openingElement, n, "openingElement", e, 1), x(a.closingElement, n, "closingElement", t, 1), x(a.children, n, "children", r, 1), x(a.selfClosing, n, "selfClosing", i), n; } s(wDe, "jsxElement"); function ADe() { return { type: "JSXEmptyExpression" }; } s(ADe, "jsxEmptyExpression"); function _De(e) { let t = { type: "JSXExpressionContainer", expression: e }, r = q.JSXExpressionContainer; return x(r.expression, t, "expression", e, 1), t; } s(_De, "jsxExpressionContainer"); function PDe(e) { let t = { type: "JSXSpreadChild", expression: e }, r = q.JSXSpreadChild; return x(r.expression, t, "expression", e, 1), t; } s(PDe, "jsxSpreadChild"); function FDe(e) { let t = { type: "JSXIdentifier", name: e }, r = q.JSXIdentifier; return x(r.name, t, "name", e), t; } s(FDe, "jsxIdentifier"); function IDe(e, t) { let r = { type: "JSXMemberExpression", object: e, property: t }, i = q.JSXMemberExpression; return x(i.object, r, "object", e, 1), x(i.property, r, "property", t, 1), r; } s(IDe, "jsxMemberExpression"); function ODe(e, t) { let r = { type: "JSXNamespacedName", namespace: e, name: t }, i = q.JSXNamespacedName; return x(i.namespace, r, "namespace", e, 1), x(i.name, r, "name", t, 1), r; } s(ODe, "jsxNamespacedName"); function kDe(e, t, r = !1) { let i = { type: "JSXOpeningElement", name: e, attributes: t, selfClosing: r }, n = q.JSXOpeningElement; return x(n.name, i, "name", e, 1), x(n.attributes, i, "attributes", t, 1), x(n.selfClosing, i, "selfClosing", r), i; } s(kDe, "jsxOpeningElement"); function BDe(e) { let t = { type: "JSXSpreadAttribute", argument: e }, r = q.JSXSpreadAttribute; return x(r.argument, t, "argument", e, 1), t; } s(BDe, "jsxSpreadAttribute"); function NDe(e) { let t = { type: "JSXText", value: e }, r = q.JSXText; return x(r.value, t, "value", e), t; } s(NDe, "jsxText"); function MDe(e, t, r) { let i = { type: "JSXFragment", openingFragment: e, closingFragment: t, children: r }, n = q.JSXFragment; return x(n.openingFragment, i, "openingFragment", e, 1), x(n.closingFragment, i, "closingFragment", t, 1), x(n.children, i, "children", r, 1), i; } s(MDe, "jsxFragment"); function RDe() { return { type: "JSXOpeningFragment" }; } s(RDe, "jsxOpeningFragment"); function jDe() { return { type: "JSXClosingFragment" }; } s(jDe, "jsxClosingFragment"); function LDe() { return { type: "Noop" }; } s(LDe, "noop"); function qDe(e, t) { let r = { type: "Placeholder", expectedNode: e, name: t }, i = q.Placeholder; return x(i.expectedNode, r, "expectedNode", e), x(i.name, r, "name", t, 1), r; } s(qDe, "placeholder"); function UDe(e) { let t = { type: "V8IntrinsicIdentifier", name: e }, r = q.V8IntrinsicIdentifier; return x(r.name, t, "name", e), t; } s(UDe, "v8IntrinsicIdentifier"); function WDe() { return { type: "ArgumentPlaceholder" }; } s(WDe, "argumentPlaceholder"); function $De(e, t) { let r = { type: "BindExpression", object: e, callee: t }, i = q.BindExpression; return x(i.object, r, "object", e, 1), x(i.callee, r, "callee", t, 1), r; } s($De, "bindExpression"); function VDe(e) { let t = { type: "Decorator", expression: e }, r = q.Decorator; return x(r.expression, t, "expression", e, 1), t; } s(VDe, "decorator"); function HDe(e, t = !1) { let r = { type: "DoExpression", body: e, async: t }, i = q.DoExpression; return x(i.body, r, "body", e, 1), x(i.async, r, "async", t), r; } s(HDe, "doExpression"); function KDe(e) { let t = { type: "ExportDefaultSpecifier", exported: e }, r = q.ExportDefaultSpecifier; return x(r.exported, t, "exported", e, 1), t; } s(KDe, "exportDefaultSpecifier"); function zDe(e) { let t = { type: "RecordExpression", properties: e }, r = q.RecordExpression; return x(r.properties, t, "properties", e, 1), t; } s(zDe, "recordExpression"); function GDe(e = []) { let t = { type: "TupleExpression", elements: e }, r = q.TupleExpression; return x(r.elements, t, "elements", e, 1), t; } s(GDe, "tupleExpression"); function JDe(e) { let t = { type: "DecimalLiteral", value: e }, r = q.DecimalLiteral; return x(r.value, t, "value", e), t; } s(JDe, "decimalLiteral"); function XDe(e) { let t = { type: "ModuleExpression", body: e }, r = q.ModuleExpression; return x(r.body, t, "body", e, 1), t; } s(XDe, "moduleExpression"); function YDe() { return { type: "TopicReference" }; } s(YDe, "topicReference"); function ZDe(e) { let t = { type: "PipelineTopicExpression", expression: e }, r = q.PipelineTopicExpression; return x(r.expression, t, "expression", e, 1), t; } s(ZDe, "pipelineTopicExpression"); function QDe(e) { let t = { type: "PipelineBareFunction", callee: e }, r = q.PipelineBareFunction; return x(r.callee, t, "callee", e, 1), t; } s(QDe, "pipelineBareFunction"); function eve() { return { type: "PipelinePrimaryTopicReference" }; } s(eve, "pipelinePrimaryTopicReference"); function tve(e) { let t = { type: "TSParameterProperty", parameter: e }, r = q.TSParameterProperty; return x(r.parameter, t, "parameter", e, 1), t; } s(tve, "tsParameterProperty"); function rve(e = null, t = null, r, i = null) { let n = { type: "TSDeclareFunction", id: e, typeParameters: t, params: r, returnType: i }, a = q.TSDeclareFunction; return x(a.id, n, "id", e, 1), x(a.typeParameters, n, "typeParameters", t, 1), x(a.params, n, "params", r, 1), x(a.returnType, n, "retur\ nType", i, 1), n; } s(rve, "tsDeclareFunction"); function ive(e = null, t, r = null, i, n = null) { let a = { type: "TSDeclareMethod", decorators: e, key: t, typeParameters: r, params: i, returnType: n }, o = q.TSDeclareMethod; return x(o.decorators, a, "decorators", e, 1), x(o.key, a, "key", t, 1), x(o.typeParameters, a, "typeParameters", r, 1), x(o.params, a, "\ params", i, 1), x(o.returnType, a, "returnType", n, 1), a; } s(ive, "tsDeclareMethod"); function nve(e, t) { let r = { type: "TSQualifiedName", left: e, right: t }, i = q.TSQualifiedName; return x(i.left, r, "left", e, 1), x(i.right, r, "right", t, 1), r; } s(nve, "tsQualifiedName"); function sve(e = null, t, r = null) { let i = { type: "TSCallSignatureDeclaration", typeParameters: e, parameters: t, typeAnnotation: r }, n = q.TSCallSignatureDeclaration; return x(n.typeParameters, i, "typeParameters", e, 1), x(n.parameters, i, "parameters", t, 1), x(n.typeAnnotation, i, "typeAnnotation", r, 1), i; } s(sve, "tsCallSignatureDeclaration"); function ave(e = null, t, r = null) { let i = { type: "TSConstructSignatureDeclaration", typeParameters: e, parameters: t, typeAnnotation: r }, n = q.TSConstructSignatureDeclaration; return x(n.typeParameters, i, "typeParameters", e, 1), x(n.parameters, i, "parameters", t, 1), x(n.typeAnnotation, i, "typeAnnotation", r, 1), i; } s(ave, "tsConstructSignatureDeclaration"); function ove(e, t = null) { let r = { type: "TSPropertySignature", key: e, typeAnnotation: t }, i = q.TSPropertySignature; return x(i.key, r, "key", e, 1), x(i.typeAnnotation, r, "typeAnnotation", t, 1), r; } s(ove, "tsPropertySignature"); function uve(e, t = null, r, i = null) { let n = { type: "TSMethodSignature", key: e, typeParameters: t, parameters: r, typeAnnotation: i, kind: null }, a = q.TSMethodSignature; return x(a.key, n, "key", e, 1), x(a.typeParameters, n, "typeParameters", t, 1), x(a.parameters, n, "parameters", r, 1), x(a.typeAnnotation, n, "typeAnnotation", i, 1), n; } s(uve, "tsMethodSignature"); function lve(e, t = null) { let r = { type: "TSIndexSignature", parameters: e, typeAnnotation: t }, i = q.TSIndexSignature; return x(i.parameters, r, "parameters", e, 1), x(i.typeAnnotation, r, "typeAnnotation", t, 1), r; } s(lve, "tsIndexSignature"); function cve() { return { type: "TSAnyKeyword" }; } s(cve, "tsAnyKeyword"); function fve() { return { type: "TSBooleanKeyword" }; } s(fve, "tsBooleanKeyword"); function dve() { return { type: "TSBigIntKeyword" }; } s(dve, "tsBigIntKeyword"); function pve() { return { type: "TSIntrinsicKeyword" }; } s(pve, "tsIntrinsicKeyword"); function hve() { return { type: "TSNeverKeyword" }; } s(hve, "tsNeverKeyword"); function mve() { return { type: "TSNullKeyword" }; } s(mve, "tsNullKeyword"); function yve() { return { type: "TSNumberKeyword" }; } s(yve, "tsNumberKeyword"); function gve() { return { type: "TSObjectKeyword" }; } s(gve, "tsObjectKeyword"); function bve() { return { type: "TSStringKeyword" }; } s(bve, "tsStringKeyword"); function Dve() { return { type: "TSSymbolKeyword" }; } s(Dve, "tsSymbolKeyword"); function vve() { return { type: "TSUndefinedKeyword" }; } s(vve, "tsUndefinedKeyword"); function Eve() { return { type: "TSUnknownKeyword" }; } s(Eve, "tsUnknownKeyword"); function xve() { return { type: "TSVoidKeyword" }; } s(xve, "tsVoidKeyword"); function Sve() { return { type: "TSThisType" }; } s(Sve, "tsThisType"); function Tve(e = null, t, r = null) { let i = { type: "TSFunctionType", typeParameters: e, parameters: t, typeAnnotation: r }, n = q.TSFunctionType; return x(n.typeParameters, i, "typeParameters", e, 1), x(n.parameters, i, "parameters", t, 1), x(n.typeAnnotation, i, "typeAnnotation", r, 1), i; } s(Tve, "tsFunctionType"); function Cve(e = null, t, r = null) { let i = { type: "TSConstructorType", typeParameters: e, parameters: t, typeAnnotation: r }, n = q.TSConstructorType; return x(n.typeParameters, i, "typeParameters", e, 1), x(n.parameters, i, "parameters", t, 1), x(n.typeAnnotation, i, "typeAnnotation", r, 1), i; } s(Cve, "tsConstructorType"); function wve(e, t = null) { let r = { type: "TSTypeReference", typeName: e, typeParameters: t }, i = q.TSTypeReference; return x(i.typeName, r, "typeName", e, 1), x(i.typeParameters, r, "typeParameters", t, 1), r; } s(wve, "tsTypeReference"); function Ave(e, t = null, r = null) { let i = { type: "TSTypePredicate", parameterName: e, typeAnnotation: t, asserts: r }, n = q.TSTypePredicate; return x(n.parameterName, i, "parameterName", e, 1), x(n.typeAnnotation, i, "typeAnnotation", t, 1), x(n.asserts, i, "asserts", r), i; } s(Ave, "tsTypePredicate"); function _ve(e, t = null) { let r = { type: "TSTypeQuery", exprName: e, typeParameters: t }, i = q.TSTypeQuery; return x(i.exprName, r, "exprName", e, 1), x(i.typeParameters, r, "typeParameters", t, 1), r; } s(_ve, "tsTypeQuery"); function Pve(e) { let t = { type: "TSTypeLiteral", members: e }, r = q.TSTypeLiteral; return x(r.members, t, "members", e, 1), t; } s(Pve, "tsTypeLiteral"); function Fve(e) { let t = { type: "TSArrayType", elementType: e }, r = q.TSArrayType; return x(r.elementType, t, "elementType", e, 1), t; } s(Fve, "tsArrayType"); function Ive(e) { let t = { type: "TSTupleType", elementTypes: e }, r = q.TSTupleType; return x(r.elementTypes, t, "elementTypes", e, 1), t; } s(Ive, "tsTupleType"); function Ove(e) { let t = { type: "TSOptionalType", typeAnnotation: e }, r = q.TSOptionalType; return x(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } s(Ove, "tsOptionalType"); function kve(e) { let t = { type: "TSRestType", typeAnnotation: e }, r = q.TSRestType; return x(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } s(kve, "tsRestType"); function Bve(e, t, r = !1) { let i = { type: "TSNamedTupleMember", label: e, elementType: t, optional: r }, n = q.TSNamedTupleMember; return x(n.label, i, "label", e, 1), x(n.elementType, i, "elementType", t, 1), x(n.optional, i, "optional", r), i; } s(Bve, "tsNamedTupleMember"); function Nve(e) { let t = { type: "TSUnionType", types: e }, r = q.TSUnionType; return x(r.types, t, "types", e, 1), t; } s(Nve, "tsUnionType"); function Mve(e) { let t = { type: "TSIntersectionType", types: e }, r = q.TSIntersectionType; return x(r.types, t, "types", e, 1), t; } s(Mve, "tsIntersectionType"); function Rve(e, t, r, i) { let n = { type: "TSConditionalType", checkType: e, extendsType: t, trueType: r, falseType: i }, a = q.TSConditionalType; return x(a.checkType, n, "checkType", e, 1), x(a.extendsType, n, "extendsType", t, 1), x(a.trueType, n, "trueType", r, 1), x(a.falseType, n, "falseType", i, 1), n; } s(Rve, "tsConditionalType"); function jve(e) { let t = { type: "TSInferType", typeParameter: e }, r = q.TSInferType; return x(r.typeParameter, t, "typeParameter", e, 1), t; } s(jve, "tsInferType"); function Lve(e) { let t = { type: "TSParenthesizedType", typeAnnotation: e }, r = q.TSParenthesizedType; return x(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } s(Lve, "tsParenthesizedType"); function qve(e) { let t = { type: "TSTypeOperator", typeAnnotation: e, operator: null }, r = q.TSTypeOperator; return x(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } s(qve, "tsTypeOperator"); function Uve(e, t) { let r = { type: "TSIndexedAccessType", objectType: e, indexType: t }, i = q.TSIndexedAccessType; return x(i.objectType, r, "objectType", e, 1), x(i.indexType, r, "indexType", t, 1), r; } s(Uve, "tsIndexedAccessType"); function Wve(e, t = null, r = null) { let i = { type: "TSMappedType", typeParameter: e, typeAnnotation: t, nameType: r }, n = q.TSMappedType; return x(n.typeParameter, i, "typeParameter", e, 1), x(n.typeAnnotation, i, "typeAnnotation", t, 1), x(n.nameType, i, "nameType", r, 1), i; } s(Wve, "tsMappedType"); function $ve(e, t) { let r = { type: "TSTemplateLiteralType", quasis: e, types: t }, i = q.TSTemplateLiteralType; return x(i.quasis, r, "quasis", e, 1), x(i.types, r, "types", t, 1), r; } s($ve, "tsTemplateLiteralType"); function Vve(e) { let t = { type: "TSLiteralType", literal: e }, r = q.TSLiteralType; return x(r.literal, t, "literal", e, 1), t; } s(Vve, "tsLiteralType"); function Hve(e, t = null) { let r = { type: "TSExpressionWithTypeArguments", expression: e, typeParameters: t }, i = q.TSExpressionWithTypeArguments; return x(i.expression, r, "expression", e, 1), x(i.typeParameters, r, "typeParameters", t, 1), r; } s(Hve, "tsExpressionWithTypeArguments"); function Kve(e, t = null, r = null, i) { let n = { type: "TSInterfaceDeclaration", id: e, typeParameters: t, extends: r, body: i }, a = q.TSInterfaceDeclaration; return x(a.id, n, "id", e, 1), x(a.typeParameters, n, "typeParameters", t, 1), x(a.extends, n, "extends", r, 1), x(a.body, n, "body", i, 1), n; } s(Kve, "tsInterfaceDeclaration"); function zve(e) { let t = { type: "TSInterfaceBody", body: e }, r = q.TSInterfaceBody; return x(r.body, t, "body", e, 1), t; } s(zve, "tsInterfaceBody"); function Gve(e, t = null, r) { let i = { type: "TSTypeAliasDeclaration", id: e, typeParameters: t, typeAnnotation: r }, n = q.TSTypeAliasDeclaration; return x(n.id, i, "id", e, 1), x(n.typeParameters, i, "typeParameters", t, 1), x(n.typeAnnotation, i, "typeAnnotation", r, 1), i; } s(Gve, "tsTypeAliasDeclaration"); function Jve(e, t = null) { let r = { type: "TSInstantiationExpression", expression: e, typeParameters: t }, i = q.TSInstantiationExpression; return x(i.expression, r, "expression", e, 1), x(i.typeParameters, r, "typeParameters", t, 1), r; } s(Jve, "tsInstantiationExpression"); function Xve(e, t) { let r = { type: "TSAsExpression", expression: e, typeAnnotation: t }, i = q.TSAsExpression; return x(i.expression, r, "expression", e, 1), x(i.typeAnnotation, r, "typeAnnotation", t, 1), r; } s(Xve, "tsAsExpression"); function Yve(e, t) { let r = { type: "TSSatisfiesExpression", expression: e, typeAnnotation: t }, i = q.TSSatisfiesExpression; return x(i.expression, r, "expression", e, 1), x(i.typeAnnotation, r, "typeAnnotation", t, 1), r; } s(Yve, "tsSatisfiesExpression"); function Zve(e, t) { let r = { type: "TSTypeAssertion", typeAnnotation: e, expression: t }, i = q.TSTypeAssertion; return x(i.typeAnnotation, r, "typeAnnotation", e, 1), x(i.expression, r, "expression", t, 1), r; } s(Zve, "tsTypeAssertion"); function Qve(e) { let t = { type: "TSEnumBody", members: e }, r = q.TSEnumBody; return x(r.members, t, "members", e, 1), t; } s(Qve, "tsEnumBody"); function eEe(e, t) { let r = { type: "TSEnumDeclaration", id: e, members: t }, i = q.TSEnumDeclaration; return x(i.id, r, "id", e, 1), x(i.members, r, "members", t, 1), r; } s(eEe, "tsEnumDeclaration"); function tEe(e, t = null) { let r = { type: "TSEnumMember", id: e, initializer: t }, i = q.TSEnumMember; return x(i.id, r, "id", e, 1), x(i.initializer, r, "initializer", t, 1), r; } s(tEe, "tsEnumMember"); function rEe(e, t) { let r = { type: "TSModuleDeclaration", id: e, body: t, kind: null }, i = q.TSModuleDeclaration; return x(i.id, r, "id", e, 1), x(i.body, r, "body", t, 1), r; } s(rEe, "tsModuleDeclaration"); function iEe(e) { let t = { type: "TSModuleBlock", body: e }, r = q.TSModuleBlock; return x(r.body, t, "body", e, 1), t; } s(iEe, "tsModuleBlock"); function nEe(e, t = null, r = null) { let i = { type: "TSImportType", argument: e, qualifier: t, typeParameters: r }, n = q.TSImportType; return x(n.argument, i, "argument", e, 1), x(n.qualifier, i, "qualifier", t, 1), x(n.typeParameters, i, "typeParameters", r, 1), i; } s(nEe, "tsImportType"); function sEe(e, t) { let r = { type: "TSImportEqualsDeclaration", id: e, moduleReference: t, isExport: null }, i = q.TSImportEqualsDeclaration; return x(i.id, r, "id", e, 1), x(i.moduleReference, r, "moduleReference", t, 1), r; } s(sEe, "tsImportEqualsDeclaration"); function aEe(e) { let t = { type: "TSExternalModuleReference", expression: e }, r = q.TSExternalModuleReference; return x(r.expression, t, "expression", e, 1), t; } s(aEe, "tsExternalModuleReference"); function oEe(e) { let t = { type: "TSNonNullExpression", expression: e }, r = q.TSNonNullExpression; return x(r.expression, t, "expression", e, 1), t; } s(oEe, "tsNonNullExpression"); function uEe(e) { let t = { type: "TSExportAssignment", expression: e }, r = q.TSExportAssignment; return x(r.expression, t, "expression", e, 1), t; } s(uEe, "tsExportAssignment"); function lEe(e) { let t = { type: "TSNamespaceExportDeclaration", id: e }, r = q.TSNamespaceExportDeclaration; return x(r.id, t, "id", e, 1), t; } s(lEe, "tsNamespaceExportDeclaration"); function cEe(e) { let t = { type: "TSTypeAnnotation", typeAnnotation: e }, r = q.TSTypeAnnotation; return x(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } s(cEe, "tsTypeAnnotation"); function fEe(e) { let t = { type: "TSTypeParameterInstantiation", params: e }, r = q.TSTypeParameterInstantiation; return x(r.params, t, "params", e, 1), t; } s(fEe, "tsTypeParameterInstantiation"); function dEe(e) { let t = { type: "TSTypeParameterDeclaration", params: e }, r = q.TSTypeParameterDeclaration; return x(r.params, t, "params", e, 1), t; } s(dEe, "tsTypeParameterDeclaration"); function pEe(e = null, t = null, r) { let i = { type: "TSTypeParameter", constraint: e, default: t, name: r }, n = q.TSTypeParameter; return x(n.constraint, i, "constraint", e, 1), x(n.default, i, "default", t, 1), x(n.name, i, "name", r), i; } s(pEe, "tsTypeParameter"); function hEe(e) { return (0, Ey.default)("NumberLiteral", "NumericLiteral", "The node type "), iL(e); } s(hEe, "NumberLiteral"); function mEe(e, t = "") { return (0, Ey.default)("RegexLiteral", "RegExpLiteral", "The node type "), nL(e, t); } s(mEe, "RegexLiteral"); function yEe(e) { return (0, Ey.default)("RestProperty", "RestElement", "The node type "), sL(e); } s(yEe, "RestProperty"); function gEe(e) { return (0, Ey.default)("SpreadProperty", "SpreadElement", "The node type "), aL(e); } s(gEe, "SpreadProperty"); }); // ../node_modules/@babel/types/lib/builders/generated/uppercase.js var oL = E((B) => { "use strict"; Object.defineProperty(B, "__esModule", { value: !0 }); Object.defineProperty(B, "AnyTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.anyTypeAnnotation; }, "get") }); Object.defineProperty(B, "ArgumentPlaceholder", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.argumentPlaceholder; }, "get") }); Object.defineProperty(B, "ArrayExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.arrayExpression; }, "get") }); Object.defineProperty(B, "ArrayPattern", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.arrayPattern; }, "get") }); Object.defineProperty(B, "ArrayTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.arrayTypeAnnotation; }, "get") }); Object.defineProperty(B, "ArrowFunctionExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.arrowFunctionExpression; }, "get") }); Object.defineProperty(B, "AssignmentExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.assignmentExpression; }, "get") }); Object.defineProperty(B, "AssignmentPattern", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.assignmentPattern; }, "get") }); Object.defineProperty(B, "AwaitExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.awaitExpression; }, "get") }); Object.defineProperty(B, "BigIntLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.bigIntLiteral; }, "get") }); Object.defineProperty(B, "BinaryExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.binaryExpression; }, "get") }); Object.defineProperty(B, "BindExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.bindExpression; }, "get") }); Object.defineProperty(B, "BlockStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.blockStatement; }, "get") }); Object.defineProperty(B, "BooleanLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.booleanLiteral; }, "get") }); Object.defineProperty(B, "BooleanLiteralTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.booleanLiteralTypeAnnotation; }, "get") }); Object.defineProperty(B, "BooleanTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.booleanTypeAnnotation; }, "get") }); Object.defineProperty(B, "BreakStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.breakStatement; }, "get") }); Object.defineProperty(B, "CallExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.callExpression; }, "get") }); Object.defineProperty(B, "CatchClause", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.catchClause; }, "get") }); Object.defineProperty(B, "ClassAccessorProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.classAccessorProperty; }, "get") }); Object.defineProperty(B, "ClassBody", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.classBody; }, "get") }); Object.defineProperty(B, "ClassDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.classDeclaration; }, "get") }); Object.defineProperty(B, "ClassExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.classExpression; }, "get") }); Object.defineProperty(B, "ClassImplements", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.classImplements; }, "get") }); Object.defineProperty(B, "ClassMethod", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.classMethod; }, "get") }); Object.defineProperty(B, "ClassPrivateMethod", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.classPrivateMethod; }, "get") }); Object.defineProperty(B, "ClassPrivateProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.classPrivateProperty; }, "get") }); Object.defineProperty(B, "ClassProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.classProperty; }, "get") }); Object.defineProperty(B, "ConditionalExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.conditionalExpression; }, "get") }); Object.defineProperty(B, "ContinueStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.continueStatement; }, "get") }); Object.defineProperty(B, "DebuggerStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.debuggerStatement; }, "get") }); Object.defineProperty(B, "DecimalLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.decimalLiteral; }, "get") }); Object.defineProperty(B, "DeclareClass", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.declareClass; }, "get") }); Object.defineProperty(B, "DeclareExportAllDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.declareExportAllDeclaration; }, "get") }); Object.defineProperty(B, "DeclareExportDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.declareExportDeclaration; }, "get") }); Object.defineProperty(B, "DeclareFunction", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.declareFunction; }, "get") }); Object.defineProperty(B, "DeclareInterface", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.declareInterface; }, "get") }); Object.defineProperty(B, "DeclareModule", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.declareModule; }, "get") }); Object.defineProperty(B, "DeclareModuleExports", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.declareModuleExports; }, "get") }); Object.defineProperty(B, "DeclareOpaqueType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.declareOpaqueType; }, "get") }); Object.defineProperty(B, "DeclareTypeAlias", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.declareTypeAlias; }, "get") }); Object.defineProperty(B, "DeclareVariable", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.declareVariable; }, "get") }); Object.defineProperty(B, "DeclaredPredicate", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.declaredPredicate; }, "get") }); Object.defineProperty(B, "Decorator", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.decorator; }, "get") }); Object.defineProperty(B, "Directive", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.directive; }, "get") }); Object.defineProperty(B, "DirectiveLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.directiveLiteral; }, "get") }); Object.defineProperty(B, "DoExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.doExpression; }, "get") }); Object.defineProperty(B, "DoWhileStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.doWhileStatement; }, "get") }); Object.defineProperty(B, "EmptyStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.emptyStatement; }, "get") }); Object.defineProperty(B, "EmptyTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.emptyTypeAnnotation; }, "get") }); Object.defineProperty(B, "EnumBooleanBody", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.enumBooleanBody; }, "get") }); Object.defineProperty(B, "EnumBooleanMember", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.enumBooleanMember; }, "get") }); Object.defineProperty(B, "EnumDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.enumDeclaration; }, "get") }); Object.defineProperty(B, "EnumDefaultedMember", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.enumDefaultedMember; }, "get") }); Object.defineProperty(B, "EnumNumberBody", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.enumNumberBody; }, "get") }); Object.defineProperty(B, "EnumNumberMember", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.enumNumberMember; }, "get") }); Object.defineProperty(B, "EnumStringBody", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.enumStringBody; }, "get") }); Object.defineProperty(B, "EnumStringMember", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.enumStringMember; }, "get") }); Object.defineProperty(B, "EnumSymbolBody", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.enumSymbolBody; }, "get") }); Object.defineProperty(B, "ExistsTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.existsTypeAnnotation; }, "get") }); Object.defineProperty(B, "ExportAllDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.exportAllDeclaration; }, "get") }); Object.defineProperty(B, "ExportDefaultDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.exportDefaultDeclaration; }, "get") }); Object.defineProperty(B, "ExportDefaultSpecifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.exportDefaultSpecifier; }, "get") }); Object.defineProperty(B, "ExportNamedDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.exportNamedDeclaration; }, "get") }); Object.defineProperty(B, "ExportNamespaceSpecifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.exportNamespaceSpecifier; }, "get") }); Object.defineProperty(B, "ExportSpecifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.exportSpecifier; }, "get") }); Object.defineProperty(B, "ExpressionStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.expressionStatement; }, "get") }); Object.defineProperty(B, "File", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.file; }, "get") }); Object.defineProperty(B, "ForInStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.forInStatement; }, "get") }); Object.defineProperty(B, "ForOfStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.forOfStatement; }, "get") }); Object.defineProperty(B, "ForStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.forStatement; }, "get") }); Object.defineProperty(B, "FunctionDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.functionDeclaration; }, "get") }); Object.defineProperty(B, "FunctionExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.functionExpression; }, "get") }); Object.defineProperty(B, "FunctionTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.functionTypeAnnotation; }, "get") }); Object.defineProperty(B, "FunctionTypeParam", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.functionTypeParam; }, "get") }); Object.defineProperty(B, "GenericTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.genericTypeAnnotation; }, "get") }); Object.defineProperty(B, "Identifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.identifier; }, "get") }); Object.defineProperty(B, "IfStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.ifStatement; }, "get") }); Object.defineProperty(B, "Import", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.import; }, "get") }); Object.defineProperty(B, "ImportAttribute", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.importAttribute; }, "get") }); Object.defineProperty(B, "ImportDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.importDeclaration; }, "get") }); Object.defineProperty(B, "ImportDefaultSpecifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.importDefaultSpecifier; }, "get") }); Object.defineProperty(B, "ImportExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.importExpression; }, "get") }); Object.defineProperty(B, "ImportNamespaceSpecifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.importNamespaceSpecifier; }, "get") }); Object.defineProperty(B, "ImportSpecifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.importSpecifier; }, "get") }); Object.defineProperty(B, "IndexedAccessType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.indexedAccessType; }, "get") }); Object.defineProperty(B, "InferredPredicate", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.inferredPredicate; }, "get") }); Object.defineProperty(B, "InterfaceDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.interfaceDeclaration; }, "get") }); Object.defineProperty(B, "InterfaceExtends", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.interfaceExtends; }, "get") }); Object.defineProperty(B, "InterfaceTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.interfaceTypeAnnotation; }, "get") }); Object.defineProperty(B, "InterpreterDirective", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.interpreterDirective; }, "get") }); Object.defineProperty(B, "IntersectionTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.intersectionTypeAnnotation; }, "get") }); Object.defineProperty(B, "JSXAttribute", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxAttribute; }, "get") }); Object.defineProperty(B, "JSXClosingElement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxClosingElement; }, "get") }); Object.defineProperty(B, "JSXClosingFragment", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxClosingFragment; }, "get") }); Object.defineProperty(B, "JSXElement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxElement; }, "get") }); Object.defineProperty(B, "JSXEmptyExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxEmptyExpression; }, "get") }); Object.defineProperty(B, "JSXExpressionContainer", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxExpressionContainer; }, "get") }); Object.defineProperty(B, "JSXFragment", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxFragment; }, "get") }); Object.defineProperty(B, "JSXIdentifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxIdentifier; }, "get") }); Object.defineProperty(B, "JSXMemberExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxMemberExpression; }, "get") }); Object.defineProperty(B, "JSXNamespacedName", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxNamespacedName; }, "get") }); Object.defineProperty(B, "JSXOpeningElement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxOpeningElement; }, "get") }); Object.defineProperty(B, "JSXOpeningFragment", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxOpeningFragment; }, "get") }); Object.defineProperty(B, "JSXSpreadAttribute", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxSpreadAttribute; }, "get") }); Object.defineProperty(B, "JSXSpreadChild", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxSpreadChild; }, "get") }); Object.defineProperty(B, "JSXText", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.jsxText; }, "get") }); Object.defineProperty(B, "LabeledStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.labeledStatement; }, "get") }); Object.defineProperty(B, "LogicalExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.logicalExpression; }, "get") }); Object.defineProperty(B, "MemberExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.memberExpression; }, "get") }); Object.defineProperty(B, "MetaProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.metaProperty; }, "get") }); Object.defineProperty(B, "MixedTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.mixedTypeAnnotation; }, "get") }); Object.defineProperty(B, "ModuleExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.moduleExpression; }, "get") }); Object.defineProperty(B, "NewExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.newExpression; }, "get") }); Object.defineProperty(B, "Noop", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.noop; }, "get") }); Object.defineProperty(B, "NullLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.nullLiteral; }, "get") }); Object.defineProperty(B, "NullLiteralTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.nullLiteralTypeAnnotation; }, "get") }); Object.defineProperty(B, "NullableTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.nullableTypeAnnotation; }, "get") }); Object.defineProperty(B, "NumberLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.numberLiteral; }, "get") }); Object.defineProperty(B, "NumberLiteralTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.numberLiteralTypeAnnotation; }, "get") }); Object.defineProperty(B, "NumberTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.numberTypeAnnotation; }, "get") }); Object.defineProperty(B, "NumericLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.numericLiteral; }, "get") }); Object.defineProperty(B, "ObjectExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.objectExpression; }, "get") }); Object.defineProperty(B, "ObjectMethod", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.objectMethod; }, "get") }); Object.defineProperty(B, "ObjectPattern", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.objectPattern; }, "get") }); Object.defineProperty(B, "ObjectProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.objectProperty; }, "get") }); Object.defineProperty(B, "ObjectTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.objectTypeAnnotation; }, "get") }); Object.defineProperty(B, "ObjectTypeCallProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.objectTypeCallProperty; }, "get") }); Object.defineProperty(B, "ObjectTypeIndexer", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.objectTypeIndexer; }, "get") }); Object.defineProperty(B, "ObjectTypeInternalSlot", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.objectTypeInternalSlot; }, "get") }); Object.defineProperty(B, "ObjectTypeProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.objectTypeProperty; }, "get") }); Object.defineProperty(B, "ObjectTypeSpreadProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.objectTypeSpreadProperty; }, "get") }); Object.defineProperty(B, "OpaqueType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.opaqueType; }, "get") }); Object.defineProperty(B, "OptionalCallExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.optionalCallExpression; }, "get") }); Object.defineProperty(B, "OptionalIndexedAccessType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.optionalIndexedAccessType; }, "get") }); Object.defineProperty(B, "OptionalMemberExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.optionalMemberExpression; }, "get") }); Object.defineProperty(B, "ParenthesizedExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.parenthesizedExpression; }, "get") }); Object.defineProperty(B, "PipelineBareFunction", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.pipelineBareFunction; }, "get") }); Object.defineProperty(B, "PipelinePrimaryTopicReference", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.pipelinePrimaryTopicReference; }, "get") }); Object.defineProperty(B, "PipelineTopicExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.pipelineTopicExpression; }, "get") }); Object.defineProperty(B, "Placeholder", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.placeholder; }, "get") }); Object.defineProperty(B, "PrivateName", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.privateName; }, "get") }); Object.defineProperty(B, "Program", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.program; }, "get") }); Object.defineProperty(B, "QualifiedTypeIdentifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.qualifiedTypeIdentifier; }, "get") }); Object.defineProperty(B, "RecordExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.recordExpression; }, "get") }); Object.defineProperty(B, "RegExpLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.regExpLiteral; }, "get") }); Object.defineProperty(B, "RegexLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.regexLiteral; }, "get") }); Object.defineProperty(B, "RestElement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.restElement; }, "get") }); Object.defineProperty(B, "RestProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.restProperty; }, "get") }); Object.defineProperty(B, "ReturnStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.returnStatement; }, "get") }); Object.defineProperty(B, "SequenceExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.sequenceExpression; }, "get") }); Object.defineProperty(B, "SpreadElement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.spreadElement; }, "get") }); Object.defineProperty(B, "SpreadProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.spreadProperty; }, "get") }); Object.defineProperty(B, "StaticBlock", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.staticBlock; }, "get") }); Object.defineProperty(B, "StringLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.stringLiteral; }, "get") }); Object.defineProperty(B, "StringLiteralTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.stringLiteralTypeAnnotation; }, "get") }); Object.defineProperty(B, "StringTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.stringTypeAnnotation; }, "get") }); Object.defineProperty(B, "Super", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.super; }, "get") }); Object.defineProperty(B, "SwitchCase", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.switchCase; }, "get") }); Object.defineProperty(B, "SwitchStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.switchStatement; }, "get") }); Object.defineProperty(B, "SymbolTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.symbolTypeAnnotation; }, "get") }); Object.defineProperty(B, "TSAnyKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsAnyKeyword; }, "get") }); Object.defineProperty(B, "TSArrayType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsArrayType; }, "get") }); Object.defineProperty(B, "TSAsExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsAsExpression; }, "get") }); Object.defineProperty(B, "TSBigIntKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsBigIntKeyword; }, "get") }); Object.defineProperty(B, "TSBooleanKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsBooleanKeyword; }, "get") }); Object.defineProperty(B, "TSCallSignatureDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsCallSignatureDeclaration; }, "get") }); Object.defineProperty(B, "TSConditionalType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsConditionalType; }, "get") }); Object.defineProperty(B, "TSConstructSignatureDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsConstructSignatureDeclaration; }, "get") }); Object.defineProperty(B, "TSConstructorType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsConstructorType; }, "get") }); Object.defineProperty(B, "TSDeclareFunction", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsDeclareFunction; }, "get") }); Object.defineProperty(B, "TSDeclareMethod", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsDeclareMethod; }, "get") }); Object.defineProperty(B, "TSEnumBody", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsEnumBody; }, "get") }); Object.defineProperty(B, "TSEnumDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsEnumDeclaration; }, "get") }); Object.defineProperty(B, "TSEnumMember", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsEnumMember; }, "get") }); Object.defineProperty(B, "TSExportAssignment", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsExportAssignment; }, "get") }); Object.defineProperty(B, "TSExpressionWithTypeArguments", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsExpressionWithTypeArguments; }, "get") }); Object.defineProperty(B, "TSExternalModuleReference", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsExternalModuleReference; }, "get") }); Object.defineProperty(B, "TSFunctionType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsFunctionType; }, "get") }); Object.defineProperty(B, "TSImportEqualsDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsImportEqualsDeclaration; }, "get") }); Object.defineProperty(B, "TSImportType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsImportType; }, "get") }); Object.defineProperty(B, "TSIndexSignature", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsIndexSignature; }, "get") }); Object.defineProperty(B, "TSIndexedAccessType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsIndexedAccessType; }, "get") }); Object.defineProperty(B, "TSInferType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsInferType; }, "get") }); Object.defineProperty(B, "TSInstantiationExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsInstantiationExpression; }, "get") }); Object.defineProperty(B, "TSInterfaceBody", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsInterfaceBody; }, "get") }); Object.defineProperty(B, "TSInterfaceDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsInterfaceDeclaration; }, "get") }); Object.defineProperty(B, "TSIntersectionType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsIntersectionType; }, "get") }); Object.defineProperty(B, "TSIntrinsicKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsIntrinsicKeyword; }, "get") }); Object.defineProperty(B, "TSLiteralType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsLiteralType; }, "get") }); Object.defineProperty(B, "TSMappedType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsMappedType; }, "get") }); Object.defineProperty(B, "TSMethodSignature", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsMethodSignature; }, "get") }); Object.defineProperty(B, "TSModuleBlock", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsModuleBlock; }, "get") }); Object.defineProperty(B, "TSModuleDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsModuleDeclaration; }, "get") }); Object.defineProperty(B, "TSNamedTupleMember", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsNamedTupleMember; }, "get") }); Object.defineProperty(B, "TSNamespaceExportDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsNamespaceExportDeclaration; }, "get") }); Object.defineProperty(B, "TSNeverKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsNeverKeyword; }, "get") }); Object.defineProperty(B, "TSNonNullExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsNonNullExpression; }, "get") }); Object.defineProperty(B, "TSNullKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsNullKeyword; }, "get") }); Object.defineProperty(B, "TSNumberKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsNumberKeyword; }, "get") }); Object.defineProperty(B, "TSObjectKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsObjectKeyword; }, "get") }); Object.defineProperty(B, "TSOptionalType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsOptionalType; }, "get") }); Object.defineProperty(B, "TSParameterProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsParameterProperty; }, "get") }); Object.defineProperty(B, "TSParenthesizedType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsParenthesizedType; }, "get") }); Object.defineProperty(B, "TSPropertySignature", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsPropertySignature; }, "get") }); Object.defineProperty(B, "TSQualifiedName", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsQualifiedName; }, "get") }); Object.defineProperty(B, "TSRestType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsRestType; }, "get") }); Object.defineProperty(B, "TSSatisfiesExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsSatisfiesExpression; }, "get") }); Object.defineProperty(B, "TSStringKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsStringKeyword; }, "get") }); Object.defineProperty(B, "TSSymbolKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsSymbolKeyword; }, "get") }); Object.defineProperty(B, "TSTemplateLiteralType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsTemplateLiteralType; }, "get") }); Object.defineProperty(B, "TSThisType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsThisType; }, "get") }); Object.defineProperty(B, "TSTupleType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsTupleType; }, "get") }); Object.defineProperty(B, "TSTypeAliasDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsTypeAliasDeclaration; }, "get") }); Object.defineProperty(B, "TSTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsTypeAnnotation; }, "get") }); Object.defineProperty(B, "TSTypeAssertion", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsTypeAssertion; }, "get") }); Object.defineProperty(B, "TSTypeLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsTypeLiteral; }, "get") }); Object.defineProperty(B, "TSTypeOperator", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsTypeOperator; }, "get") }); Object.defineProperty(B, "TSTypeParameter", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsTypeParameter; }, "get") }); Object.defineProperty(B, "TSTypeParameterDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsTypeParameterDeclaration; }, "get") }); Object.defineProperty(B, "TSTypeParameterInstantiation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsTypeParameterInstantiation; }, "get") }); Object.defineProperty(B, "TSTypePredicate", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsTypePredicate; }, "get") }); Object.defineProperty(B, "TSTypeQuery", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsTypeQuery; }, "get") }); Object.defineProperty(B, "TSTypeReference", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsTypeReference; }, "get") }); Object.defineProperty(B, "TSUndefinedKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsUndefinedKeyword; }, "get") }); Object.defineProperty(B, "TSUnionType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsUnionType; }, "get") }); Object.defineProperty(B, "TSUnknownKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsUnknownKeyword; }, "get") }); Object.defineProperty(B, "TSVoidKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tsVoidKeyword; }, "get") }); Object.defineProperty(B, "TaggedTemplateExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.taggedTemplateExpression; }, "get") }); Object.defineProperty(B, "TemplateElement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.templateElement; }, "get") }); Object.defineProperty(B, "TemplateLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.templateLiteral; }, "get") }); Object.defineProperty(B, "ThisExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.thisExpression; }, "get") }); Object.defineProperty(B, "ThisTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.thisTypeAnnotation; }, "get") }); Object.defineProperty(B, "ThrowStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.throwStatement; }, "get") }); Object.defineProperty(B, "TopicReference", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.topicReference; }, "get") }); Object.defineProperty(B, "TryStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tryStatement; }, "get") }); Object.defineProperty(B, "TupleExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tupleExpression; }, "get") }); Object.defineProperty(B, "TupleTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.tupleTypeAnnotation; }, "get") }); Object.defineProperty(B, "TypeAlias", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.typeAlias; }, "get") }); Object.defineProperty(B, "TypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.typeAnnotation; }, "get") }); Object.defineProperty(B, "TypeCastExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.typeCastExpression; }, "get") }); Object.defineProperty(B, "TypeParameter", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.typeParameter; }, "get") }); Object.defineProperty(B, "TypeParameterDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.typeParameterDeclaration; }, "get") }); Object.defineProperty(B, "TypeParameterInstantiation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.typeParameterInstantiation; }, "get") }); Object.defineProperty(B, "TypeofTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.typeofTypeAnnotation; }, "get") }); Object.defineProperty(B, "UnaryExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.unaryExpression; }, "get") }); Object.defineProperty(B, "UnionTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.unionTypeAnnotation; }, "get") }); Object.defineProperty(B, "UpdateExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.updateExpression; }, "get") }); Object.defineProperty(B, "V8IntrinsicIdentifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.v8IntrinsicIdentifier; }, "get") }); Object.defineProperty(B, "VariableDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.variableDeclaration; }, "get") }); Object.defineProperty(B, "VariableDeclarator", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.variableDeclarator; }, "get") }); Object.defineProperty(B, "Variance", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.variance; }, "get") }); Object.defineProperty(B, "VoidTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.voidTypeAnnotation; }, "get") }); Object.defineProperty(B, "WhileStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.whileStatement; }, "get") }); Object.defineProperty(B, "WithStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.withStatement; }, "get") }); Object.defineProperty(B, "YieldExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N.yieldExpression; }, "get") }); var N = mS(); }); // ../node_modules/@babel/types/lib/builders/generated/index.js var wi = E((Na) => { "use strict"; Object.defineProperty(Na, "__esModule", { value: !0 }); var yS = mS(); Object.keys(yS).forEach(function(e) { e === "default" || e === "__esModule" || e in Na && Na[e] === yS[e] || Object.defineProperty(Na, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return yS[e]; }, "get") }); }); var gS = oL(); Object.keys(gS).forEach(function(e) { e === "default" || e === "__esModule" || e in Na && Na[e] === gS[e] || Object.defineProperty(Na, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return gS[e]; }, "get") }); }); }); // ../node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js var uL = E((bS) => { "use strict"; Object.defineProperty(bS, "__esModule", { value: !0 }); bS.default = vEe; var bEe = wi(), DEe = $e(); function vEe(e, t) { let r = e.value.split(/\r\n|\n|\r/), i = 0; for (let a = 0; a < r.length; a++) /[^ \t]/.exec(r[a]) && (i = a); let n = ""; for (let a = 0; a < r.length; a++) { let o = r[a], u = a === 0, l = a === r.length - 1, c = a === i, f = o.replace(/\t/g, " "); u || (f = f.replace(/^ +/, "")), l || (f = f.replace(/ +$/, "")), f && (c || (f += " "), n += f); } n && t.push((0, DEe.inherits)((0, bEe.stringLiteral)(n), e)); } s(vEe, "cleanJSXElementLiteralChild"); }); // ../node_modules/@babel/types/lib/builders/react/buildChildren.js var lL = E((vS) => { "use strict"; Object.defineProperty(vS, "__esModule", { value: !0 }); vS.default = xEe; var DS = cr(), EEe = uL(); function xEe(e) { let t = []; for (let r = 0; r < e.children.length; r++) { let i = e.children[r]; if ((0, DS.isJSXText)(i)) { (0, EEe.default)(i, t); continue; } (0, DS.isJSXExpressionContainer)(i) && (i = i.expression), !(0, DS.isJSXEmptyExpression)(i) && t.push(i); } return t; } s(xEe, "buildChildren"); }); // ../node_modules/@babel/types/lib/validators/isNode.js var xS = E((ES) => { "use strict"; Object.defineProperty(ES, "__esModule", { value: !0 }); ES.default = TEe; var SEe = Xi(); function TEe(e) { return !!(e && SEe.VISITOR_KEYS[e.type]); } s(TEe, "isNode"); }); // ../node_modules/@babel/types/lib/asserts/assertNode.js var cL = E((SS) => { "use strict"; Object.defineProperty(SS, "__esModule", { value: !0 }); SS.default = wEe; var CEe = xS(); function wEe(e) { if (!(0, CEe.default)(e)) { var t; let r = (t = e?.type) != null ? t : JSON.stringify(e); throw new TypeError(`Not a valid node of type "${r}"`); } } s(wEe, "assertNode"); }); // ../node_modules/@babel/types/lib/asserts/generated/index.js var fL = E((A) => { "use strict"; Object.defineProperty(A, "__esModule", { value: !0 }); A.assertAccessor = VCe; A.assertAnyTypeAnnotation = l1e; A.assertArgumentPlaceholder = jSe; A.assertArrayExpression = _Ee; A.assertArrayPattern = wxe; A.assertArrayTypeAnnotation = c1e; A.assertArrowFunctionExpression = Axe; A.assertAssignmentExpression = PEe; A.assertAssignmentPattern = Cxe; A.assertAwaitExpression = Xxe; A.assertBigIntLiteral = Zxe; A.assertBinary = dCe; A.assertBinaryExpression = FEe; A.assertBindExpression = LSe; A.assertBlock = mCe; A.assertBlockParent = hCe; A.assertBlockStatement = BEe; A.assertBooleanLiteral = txe; A.assertBooleanLiteralTypeAnnotation = d1e; A.assertBooleanTypeAnnotation = f1e; A.assertBreakStatement = NEe; A.assertCallExpression = MEe; A.assertCatchClause = REe; A.assertClass = qCe; A.assertClassAccessorProperty = i1e; A.assertClassBody = _xe; A.assertClassDeclaration = Fxe; A.assertClassExpression = Pxe; A.assertClassImplements = h1e; A.assertClassMethod = Wxe; A.assertClassPrivateMethod = s1e; A.assertClassPrivateProperty = n1e; A.assertClassProperty = r1e; A.assertCompletionStatement = bCe; A.assertConditional = DCe; A.assertConditionalExpression = jEe; A.assertContinueStatement = LEe; A.assertDebuggerStatement = qEe; A.assertDecimalLiteral = HSe; A.assertDeclaration = _Ce; A.assertDeclareClass = m1e; A.assertDeclareExportAllDeclaration = T1e; A.assertDeclareExportDeclaration = S1e; A.assertDeclareFunction = y1e; A.assertDeclareInterface = g1e; A.assertDeclareModule = b1e; A.assertDeclareModuleExports = D1e; A.assertDeclareOpaqueType = E1e; A.assertDeclareTypeAlias = v1e; A.assertDeclareVariable = x1e; A.assertDeclaredPredicate = C1e; A.assertDecorator = qSe; A.assertDirective = OEe; A.assertDirectiveLiteral = kEe; A.assertDoExpression = USe; A.assertDoWhileStatement = UEe; A.assertEmptyStatement = WEe; A.assertEmptyTypeAnnotation = M1e; A.assertEnumBody = YCe; A.assertEnumBooleanBody = cSe; A.assertEnumBooleanMember = hSe; A.assertEnumDeclaration = lSe; A.assertEnumDefaultedMember = gSe; A.assertEnumMember = ZCe; A.assertEnumNumberBody = fSe; A.assertEnumNumberMember = mSe; A.assertEnumStringBody = dSe; A.assertEnumStringMember = ySe; A.assertEnumSymbolBody = pSe; A.assertExistsTypeAnnotation = w1e; A.assertExportAllDeclaration = Ixe; A.assertExportDeclaration = WCe; A.assertExportDefaultDeclaration = Oxe; A.assertExportDefaultSpecifier = WSe; A.assertExportNamedDeclaration = kxe; A.assertExportNamespaceSpecifier = Qxe; A.assertExportSpecifier = Bxe; A.assertExpression = fCe; A.assertExpressionStatement = $Ee; A.assertExpressionWrapper = xCe; A.assertFile = VEe; A.assertFlow = KCe; A.assertFlowBaseAnnotation = GCe; A.assertFlowDeclaration = JCe; A.assertFlowPredicate = XCe; A.assertFlowType = zCe; A.assertFor = SCe; A.assertForInStatement = HEe; A.assertForOfStatement = Nxe; A.assertForStatement = KEe; A.assertForXStatement = TCe; A.assertFunction = CCe; A.assertFunctionDeclaration = zEe; A.assertFunctionExpression = GEe; A.assertFunctionParent = wCe; A.assertFunctionTypeAnnotation = A1e; A.assertFunctionTypeParam = _1e; A.assertGenericTypeAnnotation = P1e; A.assertIdentifier = JEe; A.assertIfStatement = XEe; A.assertImmutable = kCe; A.assertImport = Yxe; A.assertImportAttribute = u1e; A.assertImportDeclaration = Mxe; A.assertImportDefaultSpecifier = Rxe; A.assertImportExpression = qxe; A.assertImportNamespaceSpecifier = jxe; A.assertImportOrExportDeclaration = UCe; A.assertImportSpecifier = Lxe; A.assertIndexedAccessType = bSe; A.assertInferredPredicate = F1e; A.assertInterfaceDeclaration = O1e; A.assertInterfaceExtends = I1e; A.assertInterfaceTypeAnnotation = k1e; A.assertInterpreterDirective = IEe; A.assertIntersectionTypeAnnotation = B1e; A.assertJSX = QCe; A.assertJSXAttribute = vSe; A.assertJSXClosingElement = ESe; A.assertJSXClosingFragment = BSe; A.assertJSXElement = xSe; A.assertJSXEmptyExpression = SSe; A.assertJSXExpressionContainer = TSe; A.assertJSXFragment = OSe; A.assertJSXIdentifier = wSe; A.assertJSXMemberExpression = ASe; A.assertJSXNamespacedName = _Se; A.assertJSXOpeningElement = PSe; A.assertJSXOpeningFragment = kSe; A.assertJSXSpreadAttribute = FSe; A.assertJSXSpreadChild = CSe; A.assertJSXText = ISe; A.assertLVal = FCe; A.assertLabeledStatement = YEe; A.assertLiteral = OCe; A.assertLogicalExpression = ixe; A.assertLoop = vCe; A.assertMemberExpression = nxe; A.assertMetaProperty = Uxe; A.assertMethod = NCe; A.assertMiscellaneous = ewe; A.assertMixedTypeAnnotation = N1e; A.assertModuleDeclaration = lwe; A.assertModuleExpression = KSe; A.assertModuleSpecifier = $Ce; A.assertNewExpression = sxe; A.assertNoop = NSe; A.assertNullLiteral = exe; A.assertNullLiteralTypeAnnotation = p1e; A.assertNullableTypeAnnotation = R1e; A.assertNumberLiteral = swe; A.assertNumberLiteralTypeAnnotation = j1e; A.assertNumberTypeAnnotation = L1e; A.assertNumericLiteral = QEe; A.assertObjectExpression = oxe; A.assertObjectMember = MCe; A.assertObjectMethod = uxe; A.assertObjectPattern = $xe; A.assertObjectProperty = lxe; A.assertObjectTypeAnnotation = q1e; A.assertObjectTypeCallProperty = W1e; A.assertObjectTypeIndexer = $1e; A.assertObjectTypeInternalSlot = U1e; A.assertObjectTypeProperty = V1e; A.assertObjectTypeSpreadProperty = H1e; A.assertOpaqueType = K1e; A.assertOptionalCallExpression = t1e; A.assertOptionalIndexedAccessType = DSe; A.assertOptionalMemberExpression = e1e; A.assertParenthesizedExpression = pxe; A.assertPattern = LCe; A.assertPatternLike = PCe; A.assertPipelineBareFunction = JSe; A.assertPipelinePrimaryTopicReference = XSe; A.assertPipelineTopicExpression = GSe; A.assertPlaceholder = MSe; A.assertPrivate = HCe; A.assertPrivateName = a1e; A.assertProgram = axe; A.assertProperty = RCe; A.assertPureish = ACe; A.assertQualifiedTypeIdentifier = z1e; A.assertRecordExpression = $Se; A.assertRegExpLiteral = rxe; A.assertRegexLiteral = awe; A.assertRestElement = cxe; A.assertRestProperty = owe; A.assertReturnStatement = fxe; A.assertScopable = pCe; A.assertSequenceExpression = dxe; A.assertSpreadElement = Vxe; A.assertSpreadProperty = uwe; A.assertStandardized = cCe; A.assertStatement = yCe; A.assertStaticBlock = o1e; A.assertStringLiteral = ZEe; A.assertStringLiteralTypeAnnotation = G1e; A.assertStringTypeAnnotation = J1e; A.assertSuper = Hxe; A.assertSwitchCase = hxe; A.assertSwitchStatement = mxe; A.assertSymbolTypeAnnotation = X1e; A.assertTSAnyKeyword = aTe; A.assertTSArrayType = wTe; A.assertTSAsExpression = KTe; A.assertTSBaseType = nwe; A.assertTSBigIntKeyword = uTe; A.assertTSBooleanKeyword = oTe; A.assertTSCallSignatureDeclaration = tTe; A.assertTSConditionalType = kTe; A.assertTSConstructSignatureDeclaration = rTe; A.assertTSConstructorType = ETe; A.assertTSDeclareFunction = ZSe; A.assertTSDeclareMethod = QSe; A.assertTSEntityName = ICe; A.assertTSEnumBody = JTe; A.assertTSEnumDeclaration = XTe; A.assertTSEnumMember = YTe; A.assertTSExportAssignment = nCe; A.assertTSExpressionWithTypeArguments = UTe; A.assertTSExternalModuleReference = rCe; A.assertTSFunctionType = vTe; A.assertTSImportEqualsDeclaration = tCe; A.assertTSImportType = eCe; A.assertTSIndexSignature = sTe; A.assertTSIndexedAccessType = RTe; A.assertTSInferType = BTe; A.assertTSInstantiationExpression = HTe; A.assertTSInterfaceBody = $Te; A.assertTSInterfaceDeclaration = WTe; A.assertTSIntersectionType = OTe; A.assertTSIntrinsicKeyword = lTe; A.assertTSLiteralType = qTe; A.assertTSMappedType = jTe; A.assertTSMethodSignature = nTe; A.assertTSModuleBlock = QTe; A.assertTSModuleDeclaration = ZTe; A.assertTSNamedTupleMember = FTe; A.assertTSNamespaceExportDeclaration = sCe; A.assertTSNeverKeyword = cTe; A.assertTSNonNullExpression = iCe; A.assertTSNullKeyword = fTe; A.assertTSNumberKeyword = dTe; A.assertTSObjectKeyword = pTe; A.assertTSOptionalType = _Te; A.assertTSParameterProperty = YSe; A.assertTSParenthesizedType = NTe; A.assertTSPropertySignature = iTe; A.assertTSQualifiedName = eTe; A.assertTSRestType = PTe; A.assertTSSatisfiesExpression = zTe; A.assertTSStringKeyword = hTe; A.assertTSSymbolKeyword = mTe; A.assertTSTemplateLiteralType = LTe; A.assertTSThisType = DTe; A.assertTSTupleType = ATe; A.assertTSType = iwe; A.assertTSTypeAliasDeclaration = VTe; A.assertTSTypeAnnotation = aCe; A.assertTSTypeAssertion = GTe; A.assertTSTypeElement = rwe; A.assertTSTypeLiteral = CTe; A.assertTSTypeOperator = MTe; A.assertTSTypeParameter = lCe; A.assertTSTypeParameterDeclaration = uCe; A.assertTSTypeParameterInstantiation = oCe; A.assertTSTypePredicate = STe; A.assertTSTypeQuery = TTe; A.assertTSTypeReference = xTe; A.assertTSUndefinedKeyword = yTe; A.assertTSUnionType = ITe; A.assertTSUnknownKeyword = gTe; A.assertTSVoidKeyword = bTe; A.assertTaggedTemplateExpression = Kxe; A.assertTemplateElement = zxe; A.assertTemplateLiteral = Gxe; A.assertTerminatorless = gCe; A.assertThisExpression = yxe; A.assertThisTypeAnnotation = Y1e; A.assertThrowStatement = gxe; A.assertTopicReference = zSe; A.assertTryStatement = bxe; A.assertTupleExpression = VSe; A.assertTupleTypeAnnotation = Z1e; A.assertTypeAlias = eSe; A.assertTypeAnnotation = tSe; A.assertTypeCastExpression = rSe; A.assertTypeParameter = iSe; A.assertTypeParameterDeclaration = nSe; A.assertTypeParameterInstantiation = sSe; A.assertTypeScript = twe; A.assertTypeofTypeAnnotation = Q1e; A.assertUnaryExpression = Dxe; A.assertUnaryLike = jCe; A.assertUnionTypeAnnotation = aSe; A.assertUpdateExpression = vxe; A.assertUserWhitespacable = BCe; A.assertV8IntrinsicIdentifier = RSe; A.assertVariableDeclaration = Exe; A.assertVariableDeclarator = xxe; A.assertVariance = oSe; A.assertVoidTypeAnnotation = uSe; A.assertWhile = ECe; A.assertWhileStatement = Sxe; A.assertWithStatement = Txe; A.assertYieldExpression = Jxe; var AEe = Fl(), Sd = pd(); function _(e, t, r) { if (!(0, AEe.default)(e, t, r)) throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`); } s(_, "assert"); function _Ee(e, t) { _("ArrayExpression", e, t); } s(_Ee, "assertArrayExpression"); function PEe(e, t) { _("AssignmentExpression", e, t); } s(PEe, "assertAssignmentExpression"); function FEe(e, t) { _("BinaryExpression", e, t); } s(FEe, "assertBinaryExpression"); function IEe(e, t) { _("InterpreterDirective", e, t); } s(IEe, "assertInterpreterDirective"); function OEe(e, t) { _("Directive", e, t); } s(OEe, "assertDirective"); function kEe(e, t) { _("DirectiveLiteral", e, t); } s(kEe, "assertDirectiveLiteral"); function BEe(e, t) { _("BlockStatement", e, t); } s(BEe, "assertBlockStatement"); function NEe(e, t) { _("BreakStatement", e, t); } s(NEe, "assertBreakStatement"); function MEe(e, t) { _("CallExpression", e, t); } s(MEe, "assertCallExpression"); function REe(e, t) { _("CatchClause", e, t); } s(REe, "assertCatchClause"); function jEe(e, t) { _("ConditionalExpression", e, t); } s(jEe, "assertConditionalExpression"); function LEe(e, t) { _("ContinueStatement", e, t); } s(LEe, "assertContinueStatement"); function qEe(e, t) { _("DebuggerStatement", e, t); } s(qEe, "assertDebuggerStatement"); function UEe(e, t) { _("DoWhileStatement", e, t); } s(UEe, "assertDoWhileStatement"); function WEe(e, t) { _("EmptyStatement", e, t); } s(WEe, "assertEmptyStatement"); function $Ee(e, t) { _("ExpressionStatement", e, t); } s($Ee, "assertExpressionStatement"); function VEe(e, t) { _("File", e, t); } s(VEe, "assertFile"); function HEe(e, t) { _("ForInStatement", e, t); } s(HEe, "assertForInStatement"); function KEe(e, t) { _("ForStatement", e, t); } s(KEe, "assertForStatement"); function zEe(e, t) { _("FunctionDeclaration", e, t); } s(zEe, "assertFunctionDeclaration"); function GEe(e, t) { _("FunctionExpression", e, t); } s(GEe, "assertFunctionExpression"); function JEe(e, t) { _("Identifier", e, t); } s(JEe, "assertIdentifier"); function XEe(e, t) { _("IfStatement", e, t); } s(XEe, "assertIfStatement"); function YEe(e, t) { _("LabeledStatement", e, t); } s(YEe, "assertLabeledStatement"); function ZEe(e, t) { _("StringLiteral", e, t); } s(ZEe, "assertStringLiteral"); function QEe(e, t) { _("NumericLiteral", e, t); } s(QEe, "assertNumericLiteral"); function exe(e, t) { _("NullLiteral", e, t); } s(exe, "assertNullLiteral"); function txe(e, t) { _("BooleanLiteral", e, t); } s(txe, "assertBooleanLiteral"); function rxe(e, t) { _("RegExpLiteral", e, t); } s(rxe, "assertRegExpLiteral"); function ixe(e, t) { _("LogicalExpression", e, t); } s(ixe, "assertLogicalExpression"); function nxe(e, t) { _("MemberExpression", e, t); } s(nxe, "assertMemberExpression"); function sxe(e, t) { _("NewExpression", e, t); } s(sxe, "assertNewExpression"); function axe(e, t) { _("Program", e, t); } s(axe, "assertProgram"); function oxe(e, t) { _("ObjectExpression", e, t); } s(oxe, "assertObjectExpression"); function uxe(e, t) { _("ObjectMethod", e, t); } s(uxe, "assertObjectMethod"); function lxe(e, t) { _("ObjectProperty", e, t); } s(lxe, "assertObjectProperty"); function cxe(e, t) { _("RestElement", e, t); } s(cxe, "assertRestElement"); function fxe(e, t) { _("ReturnStatement", e, t); } s(fxe, "assertReturnStatement"); function dxe(e, t) { _("SequenceExpression", e, t); } s(dxe, "assertSequenceExpression"); function pxe(e, t) { _("ParenthesizedExpression", e, t); } s(pxe, "assertParenthesizedExpression"); function hxe(e, t) { _("SwitchCase", e, t); } s(hxe, "assertSwitchCase"); function mxe(e, t) { _("SwitchStatement", e, t); } s(mxe, "assertSwitchStatement"); function yxe(e, t) { _("ThisExpression", e, t); } s(yxe, "assertThisExpression"); function gxe(e, t) { _("ThrowStatement", e, t); } s(gxe, "assertThrowStatement"); function bxe(e, t) { _("TryStatement", e, t); } s(bxe, "assertTryStatement"); function Dxe(e, t) { _("UnaryExpression", e, t); } s(Dxe, "assertUnaryExpression"); function vxe(e, t) { _("UpdateExpression", e, t); } s(vxe, "assertUpdateExpression"); function Exe(e, t) { _("VariableDeclaration", e, t); } s(Exe, "assertVariableDeclaration"); function xxe(e, t) { _("VariableDeclarator", e, t); } s(xxe, "assertVariableDeclarator"); function Sxe(e, t) { _("WhileStatement", e, t); } s(Sxe, "assertWhileStatement"); function Txe(e, t) { _("WithStatement", e, t); } s(Txe, "assertWithStatement"); function Cxe(e, t) { _("AssignmentPattern", e, t); } s(Cxe, "assertAssignmentPattern"); function wxe(e, t) { _("ArrayPattern", e, t); } s(wxe, "assertArrayPattern"); function Axe(e, t) { _("ArrowFunctionExpression", e, t); } s(Axe, "assertArrowFunctionExpression"); function _xe(e, t) { _("ClassBody", e, t); } s(_xe, "assertClassBody"); function Pxe(e, t) { _("ClassExpression", e, t); } s(Pxe, "assertClassExpression"); function Fxe(e, t) { _("ClassDeclaration", e, t); } s(Fxe, "assertClassDeclaration"); function Ixe(e, t) { _("ExportAllDeclaration", e, t); } s(Ixe, "assertExportAllDeclaration"); function Oxe(e, t) { _("ExportDefaultDeclaration", e, t); } s(Oxe, "assertExportDefaultDeclaration"); function kxe(e, t) { _("ExportNamedDeclaration", e, t); } s(kxe, "assertExportNamedDeclaration"); function Bxe(e, t) { _("ExportSpecifier", e, t); } s(Bxe, "assertExportSpecifier"); function Nxe(e, t) { _("ForOfStatement", e, t); } s(Nxe, "assertForOfStatement"); function Mxe(e, t) { _("ImportDeclaration", e, t); } s(Mxe, "assertImportDeclaration"); function Rxe(e, t) { _("ImportDefaultSpecifier", e, t); } s(Rxe, "assertImportDefaultSpecifier"); function jxe(e, t) { _("ImportNamespaceSpecifier", e, t); } s(jxe, "assertImportNamespaceSpecifier"); function Lxe(e, t) { _("ImportSpecifier", e, t); } s(Lxe, "assertImportSpecifier"); function qxe(e, t) { _("ImportExpression", e, t); } s(qxe, "assertImportExpression"); function Uxe(e, t) { _("MetaProperty", e, t); } s(Uxe, "assertMetaProperty"); function Wxe(e, t) { _("ClassMethod", e, t); } s(Wxe, "assertClassMethod"); function $xe(e, t) { _("ObjectPattern", e, t); } s($xe, "assertObjectPattern"); function Vxe(e, t) { _("SpreadElement", e, t); } s(Vxe, "assertSpreadElement"); function Hxe(e, t) { _("Super", e, t); } s(Hxe, "assertSuper"); function Kxe(e, t) { _("TaggedTemplateExpression", e, t); } s(Kxe, "assertTaggedTemplateExpression"); function zxe(e, t) { _("TemplateElement", e, t); } s(zxe, "assertTemplateElement"); function Gxe(e, t) { _("TemplateLiteral", e, t); } s(Gxe, "assertTemplateLiteral"); function Jxe(e, t) { _("YieldExpression", e, t); } s(Jxe, "assertYieldExpression"); function Xxe(e, t) { _("AwaitExpression", e, t); } s(Xxe, "assertAwaitExpression"); function Yxe(e, t) { _("Import", e, t); } s(Yxe, "assertImport"); function Zxe(e, t) { _("BigIntLiteral", e, t); } s(Zxe, "assertBigIntLiteral"); function Qxe(e, t) { _("ExportNamespaceSpecifier", e, t); } s(Qxe, "assertExportNamespaceSpecifier"); function e1e(e, t) { _("OptionalMemberExpression", e, t); } s(e1e, "assertOptionalMemberExpression"); function t1e(e, t) { _("OptionalCallExpression", e, t); } s(t1e, "assertOptionalCallExpression"); function r1e(e, t) { _("ClassProperty", e, t); } s(r1e, "assertClassProperty"); function i1e(e, t) { _("ClassAccessorProperty", e, t); } s(i1e, "assertClassAccessorProperty"); function n1e(e, t) { _("ClassPrivateProperty", e, t); } s(n1e, "assertClassPrivateProperty"); function s1e(e, t) { _("ClassPrivateMethod", e, t); } s(s1e, "assertClassPrivateMethod"); function a1e(e, t) { _("PrivateName", e, t); } s(a1e, "assertPrivateName"); function o1e(e, t) { _("StaticBlock", e, t); } s(o1e, "assertStaticBlock"); function u1e(e, t) { _("ImportAttribute", e, t); } s(u1e, "assertImportAttribute"); function l1e(e, t) { _("AnyTypeAnnotation", e, t); } s(l1e, "assertAnyTypeAnnotation"); function c1e(e, t) { _("ArrayTypeAnnotation", e, t); } s(c1e, "assertArrayTypeAnnotation"); function f1e(e, t) { _("BooleanTypeAnnotation", e, t); } s(f1e, "assertBooleanTypeAnnotation"); function d1e(e, t) { _("BooleanLiteralTypeAnnotation", e, t); } s(d1e, "assertBooleanLiteralTypeAnnotation"); function p1e(e, t) { _("NullLiteralTypeAnnotation", e, t); } s(p1e, "assertNullLiteralTypeAnnotation"); function h1e(e, t) { _("ClassImplements", e, t); } s(h1e, "assertClassImplements"); function m1e(e, t) { _("DeclareClass", e, t); } s(m1e, "assertDeclareClass"); function y1e(e, t) { _("DeclareFunction", e, t); } s(y1e, "assertDeclareFunction"); function g1e(e, t) { _("DeclareInterface", e, t); } s(g1e, "assertDeclareInterface"); function b1e(e, t) { _("DeclareModule", e, t); } s(b1e, "assertDeclareModule"); function D1e(e, t) { _("DeclareModuleExports", e, t); } s(D1e, "assertDeclareModuleExports"); function v1e(e, t) { _("DeclareTypeAlias", e, t); } s(v1e, "assertDeclareTypeAlias"); function E1e(e, t) { _("DeclareOpaqueType", e, t); } s(E1e, "assertDeclareOpaqueType"); function x1e(e, t) { _("DeclareVariable", e, t); } s(x1e, "assertDeclareVariable"); function S1e(e, t) { _("DeclareExportDeclaration", e, t); } s(S1e, "assertDeclareExportDeclaration"); function T1e(e, t) { _("DeclareExportAllDeclaration", e, t); } s(T1e, "assertDeclareExportAllDeclaration"); function C1e(e, t) { _("DeclaredPredicate", e, t); } s(C1e, "assertDeclaredPredicate"); function w1e(e, t) { _("ExistsTypeAnnotation", e, t); } s(w1e, "assertExistsTypeAnnotation"); function A1e(e, t) { _("FunctionTypeAnnotation", e, t); } s(A1e, "assertFunctionTypeAnnotation"); function _1e(e, t) { _("FunctionTypeParam", e, t); } s(_1e, "assertFunctionTypeParam"); function P1e(e, t) { _("GenericTypeAnnotation", e, t); } s(P1e, "assertGenericTypeAnnotation"); function F1e(e, t) { _("InferredPredicate", e, t); } s(F1e, "assertInferredPredicate"); function I1e(e, t) { _("InterfaceExtends", e, t); } s(I1e, "assertInterfaceExtends"); function O1e(e, t) { _("InterfaceDeclaration", e, t); } s(O1e, "assertInterfaceDeclaration"); function k1e(e, t) { _("InterfaceTypeAnnotation", e, t); } s(k1e, "assertInterfaceTypeAnnotation"); function B1e(e, t) { _("IntersectionTypeAnnotation", e, t); } s(B1e, "assertIntersectionTypeAnnotation"); function N1e(e, t) { _("MixedTypeAnnotation", e, t); } s(N1e, "assertMixedTypeAnnotation"); function M1e(e, t) { _("EmptyTypeAnnotation", e, t); } s(M1e, "assertEmptyTypeAnnotation"); function R1e(e, t) { _("NullableTypeAnnotation", e, t); } s(R1e, "assertNullableTypeAnnotation"); function j1e(e, t) { _("NumberLiteralTypeAnnotation", e, t); } s(j1e, "assertNumberLiteralTypeAnnotation"); function L1e(e, t) { _("NumberTypeAnnotation", e, t); } s(L1e, "assertNumberTypeAnnotation"); function q1e(e, t) { _("ObjectTypeAnnotation", e, t); } s(q1e, "assertObjectTypeAnnotation"); function U1e(e, t) { _("ObjectTypeInternalSlot", e, t); } s(U1e, "assertObjectTypeInternalSlot"); function W1e(e, t) { _("ObjectTypeCallProperty", e, t); } s(W1e, "assertObjectTypeCallProperty"); function $1e(e, t) { _("ObjectTypeIndexer", e, t); } s($1e, "assertObjectTypeIndexer"); function V1e(e, t) { _("ObjectTypeProperty", e, t); } s(V1e, "assertObjectTypeProperty"); function H1e(e, t) { _("ObjectTypeSpreadProperty", e, t); } s(H1e, "assertObjectTypeSpreadProperty"); function K1e(e, t) { _("OpaqueType", e, t); } s(K1e, "assertOpaqueType"); function z1e(e, t) { _("QualifiedTypeIdentifier", e, t); } s(z1e, "assertQualifiedTypeIdentifier"); function G1e(e, t) { _("StringLiteralTypeAnnotation", e, t); } s(G1e, "assertStringLiteralTypeAnnotation"); function J1e(e, t) { _("StringTypeAnnotation", e, t); } s(J1e, "assertStringTypeAnnotation"); function X1e(e, t) { _("SymbolTypeAnnotation", e, t); } s(X1e, "assertSymbolTypeAnnotation"); function Y1e(e, t) { _("ThisTypeAnnotation", e, t); } s(Y1e, "assertThisTypeAnnotation"); function Z1e(e, t) { _("TupleTypeAnnotation", e, t); } s(Z1e, "assertTupleTypeAnnotation"); function Q1e(e, t) { _("TypeofTypeAnnotation", e, t); } s(Q1e, "assertTypeofTypeAnnotation"); function eSe(e, t) { _("TypeAlias", e, t); } s(eSe, "assertTypeAlias"); function tSe(e, t) { _("TypeAnnotation", e, t); } s(tSe, "assertTypeAnnotation"); function rSe(e, t) { _("TypeCastExpression", e, t); } s(rSe, "assertTypeCastExpression"); function iSe(e, t) { _("TypeParameter", e, t); } s(iSe, "assertTypeParameter"); function nSe(e, t) { _("TypeParameterDeclaration", e, t); } s(nSe, "assertTypeParameterDeclaration"); function sSe(e, t) { _("TypeParameterInstantiation", e, t); } s(sSe, "assertTypeParameterInstantiation"); function aSe(e, t) { _("UnionTypeAnnotation", e, t); } s(aSe, "assertUnionTypeAnnotation"); function oSe(e, t) { _("Variance", e, t); } s(oSe, "assertVariance"); function uSe(e, t) { _("VoidTypeAnnotation", e, t); } s(uSe, "assertVoidTypeAnnotation"); function lSe(e, t) { _("EnumDeclaration", e, t); } s(lSe, "assertEnumDeclaration"); function cSe(e, t) { _("EnumBooleanBody", e, t); } s(cSe, "assertEnumBooleanBody"); function fSe(e, t) { _("EnumNumberBody", e, t); } s(fSe, "assertEnumNumberBody"); function dSe(e, t) { _("EnumStringBody", e, t); } s(dSe, "assertEnumStringBody"); function pSe(e, t) { _("EnumSymbolBody", e, t); } s(pSe, "assertEnumSymbolBody"); function hSe(e, t) { _("EnumBooleanMember", e, t); } s(hSe, "assertEnumBooleanMember"); function mSe(e, t) { _("EnumNumberMember", e, t); } s(mSe, "assertEnumNumberMember"); function ySe(e, t) { _("EnumStringMember", e, t); } s(ySe, "assertEnumStringMember"); function gSe(e, t) { _("EnumDefaultedMember", e, t); } s(gSe, "assertEnumDefaultedMember"); function bSe(e, t) { _("IndexedAccessType", e, t); } s(bSe, "assertIndexedAccessType"); function DSe(e, t) { _("OptionalIndexedAccessType", e, t); } s(DSe, "assertOptionalIndexedAccessType"); function vSe(e, t) { _("JSXAttribute", e, t); } s(vSe, "assertJSXAttribute"); function ESe(e, t) { _("JSXClosingElement", e, t); } s(ESe, "assertJSXClosingElement"); function xSe(e, t) { _("JSXElement", e, t); } s(xSe, "assertJSXElement"); function SSe(e, t) { _("JSXEmptyExpression", e, t); } s(SSe, "assertJSXEmptyExpression"); function TSe(e, t) { _("JSXExpressionContainer", e, t); } s(TSe, "assertJSXExpressionContainer"); function CSe(e, t) { _("JSXSpreadChild", e, t); } s(CSe, "assertJSXSpreadChild"); function wSe(e, t) { _("JSXIdentifier", e, t); } s(wSe, "assertJSXIdentifier"); function ASe(e, t) { _("JSXMemberExpression", e, t); } s(ASe, "assertJSXMemberExpression"); function _Se(e, t) { _("JSXNamespacedName", e, t); } s(_Se, "assertJSXNamespacedName"); function PSe(e, t) { _("JSXOpeningElement", e, t); } s(PSe, "assertJSXOpeningElement"); function FSe(e, t) { _("JSXSpreadAttribute", e, t); } s(FSe, "assertJSXSpreadAttribute"); function ISe(e, t) { _("JSXText", e, t); } s(ISe, "assertJSXText"); function OSe(e, t) { _("JSXFragment", e, t); } s(OSe, "assertJSXFragment"); function kSe(e, t) { _("JSXOpeningFragment", e, t); } s(kSe, "assertJSXOpeningFragment"); function BSe(e, t) { _("JSXClosingFragment", e, t); } s(BSe, "assertJSXClosingFragment"); function NSe(e, t) { _("Noop", e, t); } s(NSe, "assertNoop"); function MSe(e, t) { _("Placeholder", e, t); } s(MSe, "assertPlaceholder"); function RSe(e, t) { _("V8IntrinsicIdentifier", e, t); } s(RSe, "assertV8IntrinsicIdentifier"); function jSe(e, t) { _("ArgumentPlaceholder", e, t); } s(jSe, "assertArgumentPlaceholder"); function LSe(e, t) { _("BindExpression", e, t); } s(LSe, "assertBindExpression"); function qSe(e, t) { _("Decorator", e, t); } s(qSe, "assertDecorator"); function USe(e, t) { _("DoExpression", e, t); } s(USe, "assertDoExpression"); function WSe(e, t) { _("ExportDefaultSpecifier", e, t); } s(WSe, "assertExportDefaultSpecifier"); function $Se(e, t) { _("RecordExpression", e, t); } s($Se, "assertRecordExpression"); function VSe(e, t) { _("TupleExpression", e, t); } s(VSe, "assertTupleExpression"); function HSe(e, t) { _("DecimalLiteral", e, t); } s(HSe, "assertDecimalLiteral"); function KSe(e, t) { _("ModuleExpression", e, t); } s(KSe, "assertModuleExpression"); function zSe(e, t) { _("TopicReference", e, t); } s(zSe, "assertTopicReference"); function GSe(e, t) { _("PipelineTopicExpression", e, t); } s(GSe, "assertPipelineTopicExpression"); function JSe(e, t) { _("PipelineBareFunction", e, t); } s(JSe, "assertPipelineBareFunction"); function XSe(e, t) { _("PipelinePrimaryTopicReference", e, t); } s(XSe, "assertPipelinePrimaryTopicReference"); function YSe(e, t) { _("TSParameterProperty", e, t); } s(YSe, "assertTSParameterProperty"); function ZSe(e, t) { _("TSDeclareFunction", e, t); } s(ZSe, "assertTSDeclareFunction"); function QSe(e, t) { _("TSDeclareMethod", e, t); } s(QSe, "assertTSDeclareMethod"); function eTe(e, t) { _("TSQualifiedName", e, t); } s(eTe, "assertTSQualifiedName"); function tTe(e, t) { _("TSCallSignatureDeclaration", e, t); } s(tTe, "assertTSCallSignatureDeclaration"); function rTe(e, t) { _("TSConstructSignatureDeclaration", e, t); } s(rTe, "assertTSConstructSignatureDeclaration"); function iTe(e, t) { _("TSPropertySignature", e, t); } s(iTe, "assertTSPropertySignature"); function nTe(e, t) { _("TSMethodSignature", e, t); } s(nTe, "assertTSMethodSignature"); function sTe(e, t) { _("TSIndexSignature", e, t); } s(sTe, "assertTSIndexSignature"); function aTe(e, t) { _("TSAnyKeyword", e, t); } s(aTe, "assertTSAnyKeyword"); function oTe(e, t) { _("TSBooleanKeyword", e, t); } s(oTe, "assertTSBooleanKeyword"); function uTe(e, t) { _("TSBigIntKeyword", e, t); } s(uTe, "assertTSBigIntKeyword"); function lTe(e, t) { _("TSIntrinsicKeyword", e, t); } s(lTe, "assertTSIntrinsicKeyword"); function cTe(e, t) { _("TSNeverKeyword", e, t); } s(cTe, "assertTSNeverKeyword"); function fTe(e, t) { _("TSNullKeyword", e, t); } s(fTe, "assertTSNullKeyword"); function dTe(e, t) { _("TSNumberKeyword", e, t); } s(dTe, "assertTSNumberKeyword"); function pTe(e, t) { _("TSObjectKeyword", e, t); } s(pTe, "assertTSObjectKeyword"); function hTe(e, t) { _("TSStringKeyword", e, t); } s(hTe, "assertTSStringKeyword"); function mTe(e, t) { _("TSSymbolKeyword", e, t); } s(mTe, "assertTSSymbolKeyword"); function yTe(e, t) { _("TSUndefinedKeyword", e, t); } s(yTe, "assertTSUndefinedKeyword"); function gTe(e, t) { _("TSUnknownKeyword", e, t); } s(gTe, "assertTSUnknownKeyword"); function bTe(e, t) { _("TSVoidKeyword", e, t); } s(bTe, "assertTSVoidKeyword"); function DTe(e, t) { _("TSThisType", e, t); } s(DTe, "assertTSThisType"); function vTe(e, t) { _("TSFunctionType", e, t); } s(vTe, "assertTSFunctionType"); function ETe(e, t) { _("TSConstructorType", e, t); } s(ETe, "assertTSConstructorType"); function xTe(e, t) { _("TSTypeReference", e, t); } s(xTe, "assertTSTypeReference"); function STe(e, t) { _("TSTypePredicate", e, t); } s(STe, "assertTSTypePredicate"); function TTe(e, t) { _("TSTypeQuery", e, t); } s(TTe, "assertTSTypeQuery"); function CTe(e, t) { _("TSTypeLiteral", e, t); } s(CTe, "assertTSTypeLiteral"); function wTe(e, t) { _("TSArrayType", e, t); } s(wTe, "assertTSArrayType"); function ATe(e, t) { _("TSTupleType", e, t); } s(ATe, "assertTSTupleType"); function _Te(e, t) { _("TSOptionalType", e, t); } s(_Te, "assertTSOptionalType"); function PTe(e, t) { _("TSRestType", e, t); } s(PTe, "assertTSRestType"); function FTe(e, t) { _("TSNamedTupleMember", e, t); } s(FTe, "assertTSNamedTupleMember"); function ITe(e, t) { _("TSUnionType", e, t); } s(ITe, "assertTSUnionType"); function OTe(e, t) { _("TSIntersectionType", e, t); } s(OTe, "assertTSIntersectionType"); function kTe(e, t) { _("TSConditionalType", e, t); } s(kTe, "assertTSConditionalType"); function BTe(e, t) { _("TSInferType", e, t); } s(BTe, "assertTSInferType"); function NTe(e, t) { _("TSParenthesizedType", e, t); } s(NTe, "assertTSParenthesizedType"); function MTe(e, t) { _("TSTypeOperator", e, t); } s(MTe, "assertTSTypeOperator"); function RTe(e, t) { _("TSIndexedAccessType", e, t); } s(RTe, "assertTSIndexedAccessType"); function jTe(e, t) { _("TSMappedType", e, t); } s(jTe, "assertTSMappedType"); function LTe(e, t) { _("TSTemplateLiteralType", e, t); } s(LTe, "assertTSTemplateLiteralType"); function qTe(e, t) { _("TSLiteralType", e, t); } s(qTe, "assertTSLiteralType"); function UTe(e, t) { _("TSExpressionWithTypeArguments", e, t); } s(UTe, "assertTSExpressionWithTypeArguments"); function WTe(e, t) { _("TSInterfaceDeclaration", e, t); } s(WTe, "assertTSInterfaceDeclaration"); function $Te(e, t) { _("TSInterfaceBody", e, t); } s($Te, "assertTSInterfaceBody"); function VTe(e, t) { _("TSTypeAliasDeclaration", e, t); } s(VTe, "assertTSTypeAliasDeclaration"); function HTe(e, t) { _("TSInstantiationExpression", e, t); } s(HTe, "assertTSInstantiationExpression"); function KTe(e, t) { _("TSAsExpression", e, t); } s(KTe, "assertTSAsExpression"); function zTe(e, t) { _("TSSatisfiesExpression", e, t); } s(zTe, "assertTSSatisfiesExpression"); function GTe(e, t) { _("TSTypeAssertion", e, t); } s(GTe, "assertTSTypeAssertion"); function JTe(e, t) { _("TSEnumBody", e, t); } s(JTe, "assertTSEnumBody"); function XTe(e, t) { _("TSEnumDeclaration", e, t); } s(XTe, "assertTSEnumDeclaration"); function YTe(e, t) { _("TSEnumMember", e, t); } s(YTe, "assertTSEnumMember"); function ZTe(e, t) { _("TSModuleDeclaration", e, t); } s(ZTe, "assertTSModuleDeclaration"); function QTe(e, t) { _("TSModuleBlock", e, t); } s(QTe, "assertTSModuleBlock"); function eCe(e, t) { _("TSImportType", e, t); } s(eCe, "assertTSImportType"); function tCe(e, t) { _("TSImportEqualsDeclaration", e, t); } s(tCe, "assertTSImportEqualsDeclaration"); function rCe(e, t) { _("TSExternalModuleReference", e, t); } s(rCe, "assertTSExternalModuleReference"); function iCe(e, t) { _("TSNonNullExpression", e, t); } s(iCe, "assertTSNonNullExpression"); function nCe(e, t) { _("TSExportAssignment", e, t); } s(nCe, "assertTSExportAssignment"); function sCe(e, t) { _("TSNamespaceExportDeclaration", e, t); } s(sCe, "assertTSNamespaceExportDeclaration"); function aCe(e, t) { _("TSTypeAnnotation", e, t); } s(aCe, "assertTSTypeAnnotation"); function oCe(e, t) { _("TSTypeParameterInstantiation", e, t); } s(oCe, "assertTSTypeParameterInstantiation"); function uCe(e, t) { _("TSTypeParameterDeclaration", e, t); } s(uCe, "assertTSTypeParameterDeclaration"); function lCe(e, t) { _("TSTypeParameter", e, t); } s(lCe, "assertTSTypeParameter"); function cCe(e, t) { _("Standardized", e, t); } s(cCe, "assertStandardized"); function fCe(e, t) { _("Expression", e, t); } s(fCe, "assertExpression"); function dCe(e, t) { _("Binary", e, t); } s(dCe, "assertBinary"); function pCe(e, t) { _("Scopable", e, t); } s(pCe, "assertScopable"); function hCe(e, t) { _("BlockParent", e, t); } s(hCe, "assertBlockParent"); function mCe(e, t) { _("Block", e, t); } s(mCe, "assertBlock"); function yCe(e, t) { _("Statement", e, t); } s(yCe, "assertStatement"); function gCe(e, t) { _("Terminatorless", e, t); } s(gCe, "assertTerminatorless"); function bCe(e, t) { _("CompletionStatement", e, t); } s(bCe, "assertCompletionStatement"); function DCe(e, t) { _("Conditional", e, t); } s(DCe, "assertConditional"); function vCe(e, t) { _("Loop", e, t); } s(vCe, "assertLoop"); function ECe(e, t) { _("While", e, t); } s(ECe, "assertWhile"); function xCe(e, t) { _("ExpressionWrapper", e, t); } s(xCe, "assertExpressionWrapper"); function SCe(e, t) { _("For", e, t); } s(SCe, "assertFor"); function TCe(e, t) { _("ForXStatement", e, t); } s(TCe, "assertForXStatement"); function CCe(e, t) { _("Function", e, t); } s(CCe, "assertFunction"); function wCe(e, t) { _("FunctionParent", e, t); } s(wCe, "assertFunctionParent"); function ACe(e, t) { _("Pureish", e, t); } s(ACe, "assertPureish"); function _Ce(e, t) { _("Declaration", e, t); } s(_Ce, "assertDeclaration"); function PCe(e, t) { _("PatternLike", e, t); } s(PCe, "assertPatternLike"); function FCe(e, t) { _("LVal", e, t); } s(FCe, "assertLVal"); function ICe(e, t) { _("TSEntityName", e, t); } s(ICe, "assertTSEntityName"); function OCe(e, t) { _("Literal", e, t); } s(OCe, "assertLiteral"); function kCe(e, t) { _("Immutable", e, t); } s(kCe, "assertImmutable"); function BCe(e, t) { _("UserWhitespacable", e, t); } s(BCe, "assertUserWhitespacable"); function NCe(e, t) { _("Method", e, t); } s(NCe, "assertMethod"); function MCe(e, t) { _("ObjectMember", e, t); } s(MCe, "assertObjectMember"); function RCe(e, t) { _("Property", e, t); } s(RCe, "assertProperty"); function jCe(e, t) { _("UnaryLike", e, t); } s(jCe, "assertUnaryLike"); function LCe(e, t) { _("Pattern", e, t); } s(LCe, "assertPattern"); function qCe(e, t) { _("Class", e, t); } s(qCe, "assertClass"); function UCe(e, t) { _("ImportOrExportDeclaration", e, t); } s(UCe, "assertImportOrExportDeclaration"); function WCe(e, t) { _("ExportDeclaration", e, t); } s(WCe, "assertExportDeclaration"); function $Ce(e, t) { _("ModuleSpecifier", e, t); } s($Ce, "assertModuleSpecifier"); function VCe(e, t) { _("Accessor", e, t); } s(VCe, "assertAccessor"); function HCe(e, t) { _("Private", e, t); } s(HCe, "assertPrivate"); function KCe(e, t) { _("Flow", e, t); } s(KCe, "assertFlow"); function zCe(e, t) { _("FlowType", e, t); } s(zCe, "assertFlowType"); function GCe(e, t) { _("FlowBaseAnnotation", e, t); } s(GCe, "assertFlowBaseAnnotation"); function JCe(e, t) { _("FlowDeclaration", e, t); } s(JCe, "assertFlowDeclaration"); function XCe(e, t) { _("FlowPredicate", e, t); } s(XCe, "assertFlowPredicate"); function YCe(e, t) { _("EnumBody", e, t); } s(YCe, "assertEnumBody"); function ZCe(e, t) { _("EnumMember", e, t); } s(ZCe, "assertEnumMember"); function QCe(e, t) { _("JSX", e, t); } s(QCe, "assertJSX"); function ewe(e, t) { _("Miscellaneous", e, t); } s(ewe, "assertMiscellaneous"); function twe(e, t) { _("TypeScript", e, t); } s(twe, "assertTypeScript"); function rwe(e, t) { _("TSTypeElement", e, t); } s(rwe, "assertTSTypeElement"); function iwe(e, t) { _("TSType", e, t); } s(iwe, "assertTSType"); function nwe(e, t) { _("TSBaseType", e, t); } s(nwe, "assertTSBaseType"); function swe(e, t) { (0, Sd.default)("assertNumberLiteral", "assertNumericLiteral"), _("NumberLiteral", e, t); } s(swe, "assertNumberLiteral"); function awe(e, t) { (0, Sd.default)("assertRegexLiteral", "assertRegExpLiteral"), _("RegexLiteral", e, t); } s(awe, "assertRegexLiteral"); function owe(e, t) { (0, Sd.default)("assertRestProperty", "assertRestElement"), _("RestProperty", e, t); } s(owe, "assertRestProperty"); function uwe(e, t) { (0, Sd.default)("assertSpreadProperty", "assertSpreadElement"), _("SpreadProperty", e, t); } s(uwe, "assertSpreadProperty"); function lwe(e, t) { (0, Sd.default)("assertModuleDeclaration", "assertImportOrExportDeclaration"), _("ModuleDeclaration", e, t); } s(lwe, "assertModuleDeclaration"); }); // ../node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js var dL = E((xy) => { "use strict"; Object.defineProperty(xy, "__esModule", { value: !0 }); xy.default = void 0; var Sn = wi(), Sat = xy.default = cwe; function cwe(e) { switch (e) { case "string": return (0, Sn.stringTypeAnnotation)(); case "number": return (0, Sn.numberTypeAnnotation)(); case "undefined": return (0, Sn.voidTypeAnnotation)(); case "boolean": return (0, Sn.booleanTypeAnnotation)(); case "function": return (0, Sn.genericTypeAnnotation)((0, Sn.identifier)("Function")); case "object": return (0, Sn.genericTypeAnnotation)((0, Sn.identifier)("Object")); case "symbol": return (0, Sn.genericTypeAnnotation)((0, Sn.identifier)("Symbol")); case "bigint": return (0, Sn.anyTypeAnnotation)(); } throw new Error("Invalid typeof value: " + e); } s(cwe, "createTypeAnnotationBasedOnTypeof"); }); // ../node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js var CS = E((TS) => { "use strict"; Object.defineProperty(TS, "__esModule", { value: !0 }); TS.default = hL; var Td = cr(); function pL(e) { return (0, Td.isIdentifier)(e) ? e.name : `${e.id.name}.${pL(e.qualification)}`; } s(pL, "getQualifiedName"); function hL(e) { let t = Array.from(e), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), a = []; for (let o = 0; o < t.length; o++) { let u = t[o]; if (u && !a.includes(u)) { if ((0, Td.isAnyTypeAnnotation)(u)) return [u]; if ((0, Td.isFlowBaseAnnotation)(u)) { i.set(u.type, u); continue; } if ((0, Td.isUnionTypeAnnotation)(u)) { n.has(u.types) || (t.push(...u.types), n.add(u.types)); continue; } if ((0, Td.isGenericTypeAnnotation)(u)) { let l = pL(u.id); if (r.has(l)) { let c = r.get(l); c.typeParameters ? u.typeParameters && (c.typeParameters.params.push(...u.typeParameters.params), c.typeParameters.params = hL(c. typeParameters.params)) : c = u.typeParameters; } else r.set(l, u); continue; } a.push(u); } } for (let [, o] of i) a.push(o); for (let [, o] of r) a.push(o); return a; } s(hL, "removeTypeDuplicates"); }); // ../node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js var mL = E((wS) => { "use strict"; Object.defineProperty(wS, "__esModule", { value: !0 }); wS.default = pwe; var fwe = wi(), dwe = CS(); function pwe(e) { let t = (0, dwe.default)(e); return t.length === 1 ? t[0] : (0, fwe.unionTypeAnnotation)(t); } s(pwe, "createFlowUnionType"); }); // ../node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js var bL = E((AS) => { "use strict"; Object.defineProperty(AS, "__esModule", { value: !0 }); AS.default = gL; var Rl = cr(); function yL(e) { return (0, Rl.isIdentifier)(e) ? e.name : (0, Rl.isThisExpression)(e) ? "this" : `${e.right.name}.${yL(e.left)}`; } s(yL, "getQualifiedName"); function gL(e) { let t = Array.from(e), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), a = []; for (let o = 0; o < t.length; o++) { let u = t[o]; if (!u || a.includes(u)) continue; if ((0, Rl.isTSAnyKeyword)(u)) return [u]; if ((0, Rl.isTSBaseType)(u)) { i.set(u.type, u); continue; } if ((0, Rl.isTSUnionType)(u)) { n.has(u.types) || (t.push(...u.types), n.add(u.types)); continue; } let l = "typeParameters"; if ((0, Rl.isTSTypeReference)(u) && u[l]) { let c = u[l], f = yL(u.typeName); if (r.has(f)) { let m = r.get(f), h = m[l]; h ? (h.params.push(...c.params), h.params = gL(h.params)) : m = c; } else r.set(f, u); continue; } a.push(u); } for (let [, o] of i) a.push(o); for (let [, o] of r) a.push(o); return a; } s(gL, "removeTypeDuplicates"); }); // ../node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js var DL = E((_S) => { "use strict"; Object.defineProperty(_S, "__esModule", { value: !0 }); _S.default = gwe; var hwe = wi(), mwe = bL(), ywe = cr(); function gwe(e) { let t = e.map((i) => (0, ywe.isTSTypeAnnotation)(i) ? i.typeAnnotation : i), r = (0, mwe.default)(t); return r.length === 1 ? r[0] : (0, hwe.tsUnionType)(r); } s(gwe, "createTSUnionType"); }); // ../node_modules/@babel/types/lib/builders/productions.js var FS = E((PS) => { "use strict"; Object.defineProperty(PS, "__esModule", { value: !0 }); PS.buildUndefinedNode = bwe; var vL = wi(); function bwe() { return (0, vL.unaryExpression)("void", (0, vL.numericLiteral)(0), !0); } s(bwe, "buildUndefinedNode"); }); // ../node_modules/@babel/types/lib/clone/cloneNode.js var Ma = E((OS) => { "use strict"; Object.defineProperty(OS, "__esModule", { value: !0 }); OS.default = Dwe; var EL = Xi(), xL = cr(), { hasOwn: es } = { hasOwn: Function.call.bind(Object.prototype.hasOwnProperty) }; function SL(e, t, r, i) { return e && typeof e.type == "string" ? TL(e, t, r, i) : e; } s(SL, "cloneIfNode"); function IS(e, t, r, i) { return Array.isArray(e) ? e.map((n) => SL(n, t, r, i)) : SL(e, t, r, i); } s(IS, "cloneIfNodeOrArray"); function Dwe(e, t = !0, r = !1) { return TL(e, t, r, /* @__PURE__ */ new Map()); } s(Dwe, "cloneNode"); function TL(e, t = !0, r = !1, i) { if (!e) return e; let { type: n } = e, a = { type: e.type }; if ((0, xL.isIdentifier)(e)) a.name = e.name, es(e, "optional") && typeof e.optional == "boolean" && (a.optional = e.optional), es(e, "typeAnnotation") && (a.typeAnnotation = t ? IS(e.typeAnnotation, !0, r, i) : e.typeAnnotation), es(e, "decorators") && (a.decorators = t ? IS(e.decorators, !0, r, i) : e.decorators); else if (es(EL.NODE_FIELDS, n)) for (let o of Object.keys(EL.NODE_FIELDS[n])) es(e, o) && (t ? a[o] = (0, xL.isFile)(e) && o === "comments" ? Sy(e.comments, t, r, i) : IS(e[o], !0, r, i) : a[o] = e[o]); else throw new Error(`Unknown node type: "${n}"`); return es(e, "loc") && (r ? a.loc = null : a.loc = e.loc), es(e, "leadingComments") && (a.leadingComments = Sy(e.leadingComments, t, r, i)), es(e, "innerComments") && (a.innerComments = Sy(e.innerComments, t, r, i)), es(e, "trailingComments") && (a.trailingComments = Sy(e.trailingComments, t, r, i)), es(e, "extra") && (a.extra = Object.assign({}, e.extra)), a; } s(TL, "cloneNodeInternal"); function Sy(e, t, r, i) { return !e || !t ? e : e.map((n) => { let a = i.get(n); if (a) return a; let { type: o, value: u, loc: l } = n, c = { type: o, value: u, loc: l }; return r && (c.loc = null), i.set(n, c), c; }); } s(Sy, "maybeCloneComments"); }); // ../node_modules/@babel/types/lib/clone/clone.js var CL = E((kS) => { "use strict"; Object.defineProperty(kS, "__esModule", { value: !0 }); kS.default = Ewe; var vwe = Ma(); function Ewe(e) { return (0, vwe.default)(e, !1); } s(Ewe, "clone"); }); // ../node_modules/@babel/types/lib/clone/cloneDeep.js var wL = E((BS) => { "use strict"; Object.defineProperty(BS, "__esModule", { value: !0 }); BS.default = Swe; var xwe = Ma(); function Swe(e) { return (0, xwe.default)(e); } s(Swe, "cloneDeep"); }); // ../node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js var AL = E((NS) => { "use strict"; Object.defineProperty(NS, "__esModule", { value: !0 }); NS.default = Cwe; var Twe = Ma(); function Cwe(e) { return (0, Twe.default)(e, !0, !0); } s(Cwe, "cloneDeepWithoutLoc"); }); // ../node_modules/@babel/types/lib/clone/cloneWithoutLoc.js var _L = E((MS) => { "use strict"; Object.defineProperty(MS, "__esModule", { value: !0 }); MS.default = Awe; var wwe = Ma(); function Awe(e) { return (0, wwe.default)(e, !1, !0); } s(Awe, "cloneWithoutLoc"); }); // ../node_modules/@babel/types/lib/comments/addComments.js var jS = E((RS) => { "use strict"; Object.defineProperty(RS, "__esModule", { value: !0 }); RS.default = _we; function _we(e, t, r) { if (!r || !e) return e; let i = `${t}Comments`; return e[i] ? t === "leading" ? e[i] = r.concat(e[i]) : e[i].push(...r) : e[i] = r, e; } s(_we, "addComments"); }); // ../node_modules/@babel/types/lib/comments/addComment.js var PL = E((LS) => { "use strict"; Object.defineProperty(LS, "__esModule", { value: !0 }); LS.default = Fwe; var Pwe = jS(); function Fwe(e, t, r, i) { return (0, Pwe.default)(e, t, [{ type: i ? "CommentLine" : "CommentBlock", value: r }]); } s(Fwe, "addComment"); }); // ../node_modules/@babel/types/lib/utils/inherit.js var Ty = E((qS) => { "use strict"; Object.defineProperty(qS, "__esModule", { value: !0 }); qS.default = Iwe; function Iwe(e, t, r) { t && r && (t[e] = Array.from(new Set([].concat(t[e], r[e]).filter(Boolean)))); } s(Iwe, "inherit"); }); // ../node_modules/@babel/types/lib/comments/inheritInnerComments.js var WS = E((US) => { "use strict"; Object.defineProperty(US, "__esModule", { value: !0 }); US.default = kwe; var Owe = Ty(); function kwe(e, t) { (0, Owe.default)("innerComments", e, t); } s(kwe, "inheritInnerComments"); }); // ../node_modules/@babel/types/lib/comments/inheritLeadingComments.js var VS = E(($S) => { "use strict"; Object.defineProperty($S, "__esModule", { value: !0 }); $S.default = Nwe; var Bwe = Ty(); function Nwe(e, t) { (0, Bwe.default)("leadingComments", e, t); } s(Nwe, "inheritLeadingComments"); }); // ../node_modules/@babel/types/lib/comments/inheritTrailingComments.js var KS = E((HS) => { "use strict"; Object.defineProperty(HS, "__esModule", { value: !0 }); HS.default = Rwe; var Mwe = Ty(); function Rwe(e, t) { (0, Mwe.default)("trailingComments", e, t); } s(Rwe, "inheritTrailingComments"); }); // ../node_modules/@babel/types/lib/comments/inheritsComments.js var GS = E((zS) => { "use strict"; Object.defineProperty(zS, "__esModule", { value: !0 }); zS.default = Uwe; var jwe = KS(), Lwe = VS(), qwe = WS(); function Uwe(e, t) { return (0, jwe.default)(e, t), (0, Lwe.default)(e, t), (0, qwe.default)(e, t), e; } s(Uwe, "inheritsComments"); }); // ../node_modules/@babel/types/lib/comments/removeComments.js var FL = E((JS) => { "use strict"; Object.defineProperty(JS, "__esModule", { value: !0 }); JS.default = $we; var Wwe = kl(); function $we(e) { return Wwe.COMMENT_KEYS.forEach((t) => { e[t] = null; }), e; } s($we, "removeComments"); }); // ../node_modules/@babel/types/lib/constants/generated/index.js var IL = E((le) => { "use strict"; Object.defineProperty(le, "__esModule", { value: !0 }); le.WHILE_TYPES = le.USERWHITESPACABLE_TYPES = le.UNARYLIKE_TYPES = le.TYPESCRIPT_TYPES = le.TSTYPE_TYPES = le.TSTYPEELEMENT_TYPES = le.TSENTITYNAME_TYPES = le.TSBASETYPE_TYPES = le.TERMINATORLESS_TYPES = le.STATEMENT_TYPES = le.STANDARDIZED_TYPES = le.SCOPABLE_TYPES = le.PUREISH_TYPES = le.PROPERTY_TYPES = le.PRIVATE_TYPES = le.PATTERN_TYPES = le.PATTERNLIKE_TYPES = le.OBJECTMEMBER_TYPES = le.MODULESPECIFIER_TYPES = le.MODULEDECLARATION_TYPES = le.MISCELLANEOUS_TYPES = le.METHOD_TYPES = le.LVAL_TYPES = le.LOOP_TYPES = le.LITERAL_TYPES = le.JSX_TYPES = le.IMPORTOREXPORTDECLARATION_TYPES = le.IMMUTABLE_TYPES = le.FUNCTION_TYPES = le.FUNCTIONPARENT_TYPES = le.FOR_TYPES = le.FORXSTATEMENT_TYPES = le.FLOW_TYPES = le.FLOWTYPE_TYPES = le.FLOWPREDICATE_TYPES = le.FLOWDECLARATION_TYPES = le.FLOWBASEANNOTATION_TYPES = le.EXPRESSION_TYPES = le.EXPRESSIONWRAPPER_TYPES = le.EXPORTDECLARATION_TYPES = le.ENUMMEMBER_TYPES = le.ENUMBODY_TYPES = le.DECLARATION_TYPES = le.CONDITIONAL_TYPES = le.COMPLETIONSTATEMENT_TYPES = le.CLASS_TYPES = le. BLOCK_TYPES = le.BLOCKPARENT_TYPES = le.BINARY_TYPES = le.ACCESSOR_TYPES = void 0; var He = Xi(), uot = le.STANDARDIZED_TYPES = He.FLIPPED_ALIAS_KEYS.Standardized, lot = le.EXPRESSION_TYPES = He.FLIPPED_ALIAS_KEYS.Expression, cot = le.BINARY_TYPES = He.FLIPPED_ALIAS_KEYS.Binary, fot = le.SCOPABLE_TYPES = He.FLIPPED_ALIAS_KEYS.Scopable, dot = le.BLOCKPARENT_TYPES = He.FLIPPED_ALIAS_KEYS.BlockParent, pot = le.BLOCK_TYPES = He.FLIPPED_ALIAS_KEYS.Block, hot = le.STATEMENT_TYPES = He.FLIPPED_ALIAS_KEYS.Statement, mot = le.TERMINATORLESS_TYPES = He.FLIPPED_ALIAS_KEYS.Terminatorless, yot = le.COMPLETIONSTATEMENT_TYPES = He.FLIPPED_ALIAS_KEYS.CompletionStatement, got = le.CONDITIONAL_TYPES = He.FLIPPED_ALIAS_KEYS.Conditional, bot = le.LOOP_TYPES = He.FLIPPED_ALIAS_KEYS.Loop, Dot = le.WHILE_TYPES = He. FLIPPED_ALIAS_KEYS.While, vot = le.EXPRESSIONWRAPPER_TYPES = He.FLIPPED_ALIAS_KEYS.ExpressionWrapper, Eot = le.FOR_TYPES = He.FLIPPED_ALIAS_KEYS. For, xot = le.FORXSTATEMENT_TYPES = He.FLIPPED_ALIAS_KEYS.ForXStatement, Sot = le.FUNCTION_TYPES = He.FLIPPED_ALIAS_KEYS.Function, Tot = le. FUNCTIONPARENT_TYPES = He.FLIPPED_ALIAS_KEYS.FunctionParent, Cot = le.PUREISH_TYPES = He.FLIPPED_ALIAS_KEYS.Pureish, wot = le.DECLARATION_TYPES = He.FLIPPED_ALIAS_KEYS.Declaration, Aot = le.PATTERNLIKE_TYPES = He.FLIPPED_ALIAS_KEYS.PatternLike, _ot = le.LVAL_TYPES = He.FLIPPED_ALIAS_KEYS. LVal, Pot = le.TSENTITYNAME_TYPES = He.FLIPPED_ALIAS_KEYS.TSEntityName, Fot = le.LITERAL_TYPES = He.FLIPPED_ALIAS_KEYS.Literal, Iot = le.IMMUTABLE_TYPES = He.FLIPPED_ALIAS_KEYS.Immutable, Oot = le.USERWHITESPACABLE_TYPES = He.FLIPPED_ALIAS_KEYS.UserWhitespacable, kot = le.METHOD_TYPES = He.FLIPPED_ALIAS_KEYS. Method, Bot = le.OBJECTMEMBER_TYPES = He.FLIPPED_ALIAS_KEYS.ObjectMember, Not = le.PROPERTY_TYPES = He.FLIPPED_ALIAS_KEYS.Property, Mot = le. UNARYLIKE_TYPES = He.FLIPPED_ALIAS_KEYS.UnaryLike, Rot = le.PATTERN_TYPES = He.FLIPPED_ALIAS_KEYS.Pattern, jot = le.CLASS_TYPES = He.FLIPPED_ALIAS_KEYS. Class, Vwe = le.IMPORTOREXPORTDECLARATION_TYPES = He.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration, Lot = le.EXPORTDECLARATION_TYPES = He.FLIPPED_ALIAS_KEYS. ExportDeclaration, qot = le.MODULESPECIFIER_TYPES = He.FLIPPED_ALIAS_KEYS.ModuleSpecifier, Uot = le.ACCESSOR_TYPES = He.FLIPPED_ALIAS_KEYS. Accessor, Wot = le.PRIVATE_TYPES = He.FLIPPED_ALIAS_KEYS.Private, $ot = le.FLOW_TYPES = He.FLIPPED_ALIAS_KEYS.Flow, Vot = le.FLOWTYPE_TYPES = He.FLIPPED_ALIAS_KEYS.FlowType, Hot = le.FLOWBASEANNOTATION_TYPES = He.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation, Kot = le.FLOWDECLARATION_TYPES = He.FLIPPED_ALIAS_KEYS.FlowDeclaration, zot = le.FLOWPREDICATE_TYPES = He.FLIPPED_ALIAS_KEYS.FlowPredicate, Got = le.ENUMBODY_TYPES = He.FLIPPED_ALIAS_KEYS. EnumBody, Jot = le.ENUMMEMBER_TYPES = He.FLIPPED_ALIAS_KEYS.EnumMember, Xot = le.JSX_TYPES = He.FLIPPED_ALIAS_KEYS.JSX, Yot = le.MISCELLANEOUS_TYPES = He.FLIPPED_ALIAS_KEYS.Miscellaneous, Zot = le.TYPESCRIPT_TYPES = He.FLIPPED_ALIAS_KEYS.TypeScript, Qot = le.TSTYPEELEMENT_TYPES = He.FLIPPED_ALIAS_KEYS. TSTypeElement, eut = le.TSTYPE_TYPES = He.FLIPPED_ALIAS_KEYS.TSType, tut = le.TSBASETYPE_TYPES = He.FLIPPED_ALIAS_KEYS.TSBaseType, rut = le. MODULEDECLARATION_TYPES = Vwe; }); // ../node_modules/@babel/types/lib/converters/toBlock.js var ZS = E((YS) => { "use strict"; Object.defineProperty(YS, "__esModule", { value: !0 }); YS.default = Hwe; var Cy = cr(), XS = wi(); function Hwe(e, t) { if ((0, Cy.isBlockStatement)(e)) return e; let r = []; return (0, Cy.isEmptyStatement)(e) ? r = [] : ((0, Cy.isStatement)(e) || ((0, Cy.isFunction)(t) ? e = (0, XS.returnStatement)(e) : e = (0, XS. expressionStatement)(e)), r = [e]), (0, XS.blockStatement)(r); } s(Hwe, "toBlock"); }); // ../node_modules/@babel/types/lib/converters/ensureBlock.js var OL = E((QS) => { "use strict"; Object.defineProperty(QS, "__esModule", { value: !0 }); QS.default = zwe; var Kwe = ZS(); function zwe(e, t = "body") { let r = (0, Kwe.default)(e[t], e); return e[t] = r, r; } s(zwe, "ensureBlock"); }); // ../node_modules/@babel/types/lib/converters/toIdentifier.js var tT = E((eT) => { "use strict"; Object.defineProperty(eT, "__esModule", { value: !0 }); eT.default = Xwe; var Gwe = Ol(), Jwe = Il(); function Xwe(e) { e = e + ""; let t = ""; for (let r of e) t += (0, Jwe.isIdentifierChar)(r.codePointAt(0)) ? r : "-"; return t = t.replace(/^[-0-9]+/, ""), t = t.replace(/[-\s]+(.)?/g, function(r, i) { return i ? i.toUpperCase() : ""; }), (0, Gwe.default)(t) || (t = `_${t}`), t || "_"; } s(Xwe, "toIdentifier"); }); // ../node_modules/@babel/types/lib/converters/toBindingIdentifierName.js var kL = E((rT) => { "use strict"; Object.defineProperty(rT, "__esModule", { value: !0 }); rT.default = Zwe; var Ywe = tT(); function Zwe(e) { return e = (0, Ywe.default)(e), (e === "eval" || e === "arguments") && (e = "_" + e), e; } s(Zwe, "toBindingIdentifierName"); }); // ../node_modules/@babel/types/lib/converters/toComputedKey.js var BL = E((iT) => { "use strict"; Object.defineProperty(iT, "__esModule", { value: !0 }); iT.default = tAe; var Qwe = cr(), eAe = wi(); function tAe(e, t = e.key || e.property) { return !e.computed && (0, Qwe.isIdentifier)(t) && (t = (0, eAe.stringLiteral)(t.name)), t; } s(tAe, "toComputedKey"); }); // ../node_modules/@babel/types/lib/converters/toExpression.js var NL = E((wy) => { "use strict"; Object.defineProperty(wy, "__esModule", { value: !0 }); wy.default = void 0; var Cd = cr(), hut = wy.default = rAe; function rAe(e) { if ((0, Cd.isExpressionStatement)(e) && (e = e.expression), (0, Cd.isExpression)(e)) return e; if ((0, Cd.isClass)(e) ? e.type = "ClassExpression" : (0, Cd.isFunction)(e) && (e.type = "FunctionExpression"), !(0, Cd.isExpression)(e)) throw new Error(`cannot turn ${e.type} to an expression`); return e; } s(rAe, "toExpression"); }); // ../node_modules/@babel/types/lib/traverse/traverseFast.js var sT = E((nT) => { "use strict"; Object.defineProperty(nT, "__esModule", { value: !0 }); nT.default = wd; var iAe = Xi(), ML = Symbol(), RL = Symbol(); function wd(e, t, r) { if (!e) return !1; let i = iAe.VISITOR_KEYS[e.type]; if (!i) return !1; r = r || {}; let n = t(e, r); if (n !== void 0) switch (n) { case ML: return !1; case RL: return !0; } for (let a of i) { let o = e[a]; if (o) { if (Array.isArray(o)) { for (let u of o) if (wd(u, t, r)) return !0; } else if (wd(o, t, r)) return !0; } } return !1; } s(wd, "traverseFast"); wd.skip = ML; wd.stop = RL; }); // ../node_modules/@babel/types/lib/modifications/removeProperties.js var oT = E((aT) => { "use strict"; Object.defineProperty(aT, "__esModule", { value: !0 }); aT.default = aAe; var nAe = kl(), jL = ["tokens", "start", "end", "loc", "raw", "rawValue"], sAe = [...nAe.COMMENT_KEYS, "comments", ...jL]; function aAe(e, t = {}) { let r = t.preserveComments ? jL : sAe; for (let n of r) e[n] != null && (e[n] = void 0); for (let n of Object.keys(e)) n[0] === "_" && e[n] != null && (e[n] = void 0); let i = Object.getOwnPropertySymbols(e); for (let n of i) e[n] = null; } s(aAe, "removeProperties"); }); // ../node_modules/@babel/types/lib/modifications/removePropertiesDeep.js var lT = E((uT) => { "use strict"; Object.defineProperty(uT, "__esModule", { value: !0 }); uT.default = lAe; var oAe = sT(), uAe = oT(); function lAe(e, t) { return (0, oAe.default)(e, uAe.default, t), e; } s(lAe, "removePropertiesDeep"); }); // ../node_modules/@babel/types/lib/converters/toKeyAlias.js var qL = E((cT) => { "use strict"; Object.defineProperty(cT, "__esModule", { value: !0 }); cT.default = $o; var LL = cr(), cAe = Ma(), fAe = lT(); function $o(e, t = e.key) { let r; return e.kind === "method" ? $o.increment() + "" : ((0, LL.isIdentifier)(t) ? r = t.name : (0, LL.isStringLiteral)(t) ? r = JSON.stringify( t.value) : r = JSON.stringify((0, fAe.default)((0, cAe.default)(t))), e.computed && (r = `[${r}]`), e.static && (r = `static:${r}`), r); } s($o, "toKeyAlias"); $o.uid = 0; $o.increment = function() { return $o.uid >= Number.MAX_SAFE_INTEGER ? $o.uid = 0 : $o.uid++; }; }); // ../node_modules/@babel/types/lib/converters/toStatement.js var UL = E((_y) => { "use strict"; Object.defineProperty(_y, "__esModule", { value: !0 }); _y.default = void 0; var Ay = cr(), dAe = wi(), Cut = _y.default = pAe; function pAe(e, t) { if ((0, Ay.isStatement)(e)) return e; let r = !1, i; if ((0, Ay.isClass)(e)) r = !0, i = "ClassDeclaration"; else if ((0, Ay.isFunction)(e)) r = !0, i = "FunctionDeclaration"; else if ((0, Ay.isAssignmentExpression)(e)) return (0, dAe.expressionStatement)(e); if (r && !e.id && (i = !1), !i) { if (t) return !1; throw new Error(`cannot turn ${e.type} to a statement`); } return e.type = i, e; } s(pAe, "toStatement"); }); // ../node_modules/@babel/types/lib/converters/valueToNode.js var WL = E((Py) => { "use strict"; Object.defineProperty(Py, "__esModule", { value: !0 }); Py.default = void 0; var hAe = Ol(), Ir = wi(), _ut = Py.default = fT, mAe = Function.call.bind(Object.prototype.toString); function yAe(e) { return mAe(e) === "[object RegExp]"; } s(yAe, "isRegExp"); function gAe(e) { if (typeof e != "object" || e === null || Object.prototype.toString.call(e) !== "[object Object]") return !1; let t = Object.getPrototypeOf(e); return t === null || Object.getPrototypeOf(t) === null; } s(gAe, "isPlainObject"); function fT(e) { if (e === void 0) return (0, Ir.identifier)("undefined"); if (e === !0 || e === !1) return (0, Ir.booleanLiteral)(e); if (e === null) return (0, Ir.nullLiteral)(); if (typeof e == "string") return (0, Ir.stringLiteral)(e); if (typeof e == "number") { let t; if (Number.isFinite(e)) t = (0, Ir.numericLiteral)(Math.abs(e)); else { let r; Number.isNaN(e) ? r = (0, Ir.numericLiteral)(0) : r = (0, Ir.numericLiteral)(1), t = (0, Ir.binaryExpression)("/", r, (0, Ir.numericLiteral)( 0)); } return (e < 0 || Object.is(e, -0)) && (t = (0, Ir.unaryExpression)("-", t)), t; } if (typeof e == "bigint") return (0, Ir.bigIntLiteral)(e.toString()); if (yAe(e)) { let t = e.source, r = /\/([a-z]*)$/.exec(e.toString())[1]; return (0, Ir.regExpLiteral)(t, r); } if (Array.isArray(e)) return (0, Ir.arrayExpression)(e.map(fT)); if (gAe(e)) { let t = []; for (let r of Object.keys(e)) { let i, n = !1; (0, hAe.default)(r) ? r === "__proto__" ? (n = !0, i = (0, Ir.stringLiteral)(r)) : i = (0, Ir.identifier)(r) : i = (0, Ir.stringLiteral)( r), t.push((0, Ir.objectProperty)(i, fT(e[r]), n)); } return (0, Ir.objectExpression)(t); } throw new Error("don't know how to turn this value into a node"); } s(fT, "valueToNode"); }); // ../node_modules/@babel/types/lib/modifications/appendToMemberExpression.js var $L = E((dT) => { "use strict"; Object.defineProperty(dT, "__esModule", { value: !0 }); dT.default = DAe; var bAe = wi(); function DAe(e, t, r = !1) { return e.object = (0, bAe.memberExpression)(e.object, e.property, e.computed), e.property = t, e.computed = !!r, e; } s(DAe, "appendToMemberExpression"); }); // ../node_modules/@babel/types/lib/modifications/inherits.js var HL = E((pT) => { "use strict"; Object.defineProperty(pT, "__esModule", { value: !0 }); pT.default = EAe; var VL = kl(), vAe = GS(); function EAe(e, t) { if (!e || !t) return e; for (let r of VL.INHERIT_KEYS.optional) e[r] == null && (e[r] = t[r]); for (let r of Object.keys(t)) r[0] === "_" && r !== "__clone" && (e[r] = t[r]); for (let r of VL.INHERIT_KEYS.force) e[r] = t[r]; return (0, vAe.default)(e, t), e; } s(EAe, "inherits"); }); // ../node_modules/@babel/types/lib/modifications/prependToMemberExpression.js var KL = E((hT) => { "use strict"; Object.defineProperty(hT, "__esModule", { value: !0 }); hT.default = TAe; var xAe = wi(), SAe = $e(); function TAe(e, t) { if ((0, SAe.isSuper)(e.object)) throw new Error("Cannot prepend node to super property access (`super.foo`)."); return e.object = (0, xAe.memberExpression)(t, e.object), e; } s(TAe, "prependToMemberExpression"); }); // ../node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js var zL = E((mT) => { "use strict"; Object.defineProperty(mT, "__esModule", { value: !0 }); mT.default = CAe; function CAe(e) { let t = [].concat(e), r = /* @__PURE__ */ Object.create(null); for (; t.length; ) { let i = t.pop(); if (i) switch (i.type) { case "ArrayPattern": t.push(...i.elements); break; case "AssignmentExpression": case "AssignmentPattern": case "ForInStatement": case "ForOfStatement": t.push(i.left); break; case "ObjectPattern": t.push(...i.properties); break; case "ObjectProperty": t.push(i.value); break; case "RestElement": case "UpdateExpression": t.push(i.argument); break; case "UnaryExpression": i.operator === "delete" && t.push(i.argument); break; case "Identifier": r[i.name] = i; break; default: break; } } return r; } s(CAe, "getAssignmentIdentifiers"); }); // ../node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js var Ad = E((gT) => { "use strict"; Object.defineProperty(gT, "__esModule", { value: !0 }); gT.default = yT; var js = cr(); function yT(e, t, r, i) { let n = [].concat(e), a = /* @__PURE__ */ Object.create(null); for (; n.length; ) { let o = n.shift(); if (!o || i && ((0, js.isAssignmentExpression)(o) || (0, js.isUnaryExpression)(o) || (0, js.isUpdateExpression)(o))) continue; if ((0, js.isIdentifier)(o)) { t ? (a[o.name] = a[o.name] || []).push(o) : a[o.name] = o; continue; } if ((0, js.isExportDeclaration)(o) && !(0, js.isExportAllDeclaration)(o)) { (0, js.isDeclaration)(o.declaration) && n.push(o.declaration); continue; } if (r) { if ((0, js.isFunctionDeclaration)(o)) { n.push(o.id); continue; } if ((0, js.isFunctionExpression)(o)) continue; } let u = yT.keys[o.type]; if (u) for (let l = 0; l < u.length; l++) { let c = u[l], f = o[c]; f && (Array.isArray(f) ? n.push(...f) : n.push(f)); } } return a; } s(yT, "getBindingIdentifiers"); var wAe = { DeclareClass: ["id"], DeclareFunction: ["id"], DeclareModule: ["id"], DeclareVariable: ["id"], DeclareInterface: ["id"], DeclareTypeAlias: ["id"], DeclareOpaqueType: ["id"], InterfaceDeclaration: ["id"], TypeAlias: ["id"], OpaqueType: ["id"], CatchClause: ["param"], LabeledStatement: ["label"], UnaryExpression: ["argument"], AssignmentExpression: ["left"], ImportSpecifier: ["local"], ImportNamespaceSpecifier: ["local"], ImportDefaultSpecifier: ["local"], ImportDeclaration: ["specifiers"], TSImportEqualsDeclaration: ["id"], ExportSpecifier: ["exported"], ExportNamespaceSpecifier: ["exported"], ExportDefaultSpecifier: ["exported"], FunctionDeclaration: ["id", "params"], FunctionExpression: ["id", "params"], ArrowFunctionExpression: ["params"], ObjectMethod: ["params"], ClassMethod: ["params"], ClassPrivateMethod: ["params"], ForInStatement: ["left"], ForOfStatement: ["left"], ClassDeclaration: ["id"], ClassExpression: ["id"], RestElement: ["argument"], UpdateExpression: ["argument"], ObjectProperty: ["value"], AssignmentPattern: ["left"], ArrayPattern: ["elements"], ObjectPattern: ["properties"], VariableDeclaration: ["declarations"], VariableDeclarator: ["id"] }; yT.keys = wAe; }); // ../node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js var GL = E((Fy) => { "use strict"; Object.defineProperty(Fy, "__esModule", { value: !0 }); Fy.default = void 0; var AAe = Ad(), Uut = Fy.default = _Ae; function _Ae(e, t) { return (0, AAe.default)(e, t, !0); } s(_Ae, "getOuterBindingIdentifiers"); }); // ../node_modules/@babel/types/lib/retrievers/getFunctionName.js var XL = E((bT) => { "use strict"; Object.defineProperty(bT, "__esModule", { value: !0 }); bT.default = FAe; var Yi = cr(); function PAe(e) { return (0, Yi.isNullLiteral)(e) ? "null" : (0, Yi.isRegExpLiteral)(e) ? `/${e.pattern}/${e.flags}` : (0, Yi.isTemplateLiteral)(e) ? e.quasis. map((t) => t.value.raw).join("") : e.value !== void 0 ? String(e.value) : null; } s(PAe, "getNameFromLiteralId"); function JL(e) { if (!e.computed || (0, Yi.isLiteral)(e.key)) return e.key; } s(JL, "getObjectMemberKey"); function FAe(e, t) { if ("id" in e && e.id) return { name: e.id.name, originalNode: e.id }; let r = "", i; if ((0, Yi.isObjectProperty)(t, { value: e }) ? i = JL(t) : (0, Yi.isObjectMethod)(e) || (0, Yi.isClassMethod)(e) ? (i = JL(e), e.kind === "get" ? r = "get " : e.kind === "set" && (r = "set ")) : (0, Yi.isVariableDeclarator)(t, { init: e }) ? i = t.id : (0, Yi.isAssignmentExpression)(t, { operator: "=", right: e }) && (i = t.left), !i) return null; let n = (0, Yi.isLiteral)(i) ? PAe(i) : (0, Yi.isIdentifier)(i) ? i.name : (0, Yi.isPrivateName)(i) ? i.id.name : null; return n == null ? null : { name: r + n, originalNode: i }; } s(FAe, "getFunctionName"); }); // ../node_modules/@babel/types/lib/traverse/traverse.js var YL = E((vT) => { "use strict"; Object.defineProperty(vT, "__esModule", { value: !0 }); vT.default = OAe; var IAe = Xi(); function OAe(e, t, r) { typeof t == "function" && (t = { enter: t }); let { enter: i, exit: n } = t; DT(e, i, n, r, []); } s(OAe, "traverse"); function DT(e, t, r, i, n) { let a = IAe.VISITOR_KEYS[e.type]; if (a) { t && t(e, n, i); for (let o of a) { let u = e[o]; if (Array.isArray(u)) for (let l = 0; l < u.length; l++) { let c = u[l]; c && (n.push({ node: e, key: o, index: l }), DT(c, t, r, i, n), n.pop()); } else u && (n.push({ node: e, key: o }), DT(u, t, r, i, n), n.pop()); } r && r(e, n, i); } } s(DT, "traverseSimpleImpl"); }); // ../node_modules/@babel/types/lib/validators/isBinding.js var ZL = E((ET) => { "use strict"; Object.defineProperty(ET, "__esModule", { value: !0 }); ET.default = BAe; var kAe = Ad(); function BAe(e, t, r) { if (r && e.type === "Identifier" && t.type === "ObjectProperty" && r.type === "ObjectExpression") return !1; let i = kAe.default.keys[t.type]; if (i) for (let n = 0; n < i.length; n++) { let a = i[n], o = t[a]; if (Array.isArray(o)) { if (o.includes(e)) return !0; } else if (o === e) return !0; } return !1; } s(BAe, "isBinding"); }); // ../node_modules/@babel/types/lib/validators/isLet.js var ST = E((xT) => { "use strict"; Object.defineProperty(xT, "__esModule", { value: !0 }); xT.default = MAe; var NAe = cr(); QL = Symbol.for("var used to be block scoped"); var QL; function MAe(e) { return (0, NAe.isVariableDeclaration)(e) && (e.kind !== "var" || e[QL]); } s(MAe, "isLet"); }); // ../node_modules/@babel/types/lib/validators/isBlockScoped.js var t9 = E((TT) => { "use strict"; Object.defineProperty(TT, "__esModule", { value: !0 }); TT.default = jAe; var e9 = cr(), RAe = ST(); function jAe(e) { return (0, e9.isFunctionDeclaration)(e) || (0, e9.isClassDeclaration)(e) || (0, RAe.default)(e); } s(jAe, "isBlockScoped"); }); // ../node_modules/@babel/types/lib/validators/isImmutable.js var r9 = E((CT) => { "use strict"; Object.defineProperty(CT, "__esModule", { value: !0 }); CT.default = UAe; var LAe = dy(), qAe = cr(); function UAe(e) { return (0, LAe.default)(e.type, "Immutable") ? !0 : (0, qAe.isIdentifier)(e) ? e.name === "undefined" : !1; } s(UAe, "isImmutable"); }); // ../node_modules/@babel/types/lib/validators/isNodesEquivalent.js var n9 = E((AT) => { "use strict"; Object.defineProperty(AT, "__esModule", { value: !0 }); AT.default = wT; var i9 = Xi(); function wT(e, t) { if (typeof e != "object" || typeof t != "object" || e == null || t == null) return e === t; if (e.type !== t.type) return !1; let r = Object.keys(i9.NODE_FIELDS[e.type] || e.type), i = i9.VISITOR_KEYS[e.type]; for (let n of r) { let a = e[n], o = t[n]; if (typeof a != typeof o) return !1; if (!(a == null && o == null)) { if (a == null || o == null) return !1; if (Array.isArray(a)) { if (!Array.isArray(o) || a.length !== o.length) return !1; for (let u = 0; u < a.length; u++) if (!wT(a[u], o[u])) return !1; continue; } if (typeof a == "object" && !(i != null && i.includes(n))) { for (let u of Object.keys(a)) if (a[u] !== o[u]) return !1; continue; } if (!wT(a, o)) return !1; } } return !0; } s(wT, "isNodesEquivalent"); }); // ../node_modules/@babel/types/lib/validators/isReferenced.js var s9 = E((_T) => { "use strict"; Object.defineProperty(_T, "__esModule", { value: !0 }); _T.default = WAe; function WAe(e, t, r) { switch (t.type) { case "MemberExpression": case "OptionalMemberExpression": return t.property === e ? !!t.computed : t.object === e; case "JSXMemberExpression": return t.object === e; case "VariableDeclarator": return t.init === e; case "ArrowFunctionExpression": return t.body === e; case "PrivateName": return !1; case "ClassMethod": case "ClassPrivateMethod": case "ObjectMethod": return t.key === e ? !!t.computed : !1; case "ObjectProperty": return t.key === e ? !!t.computed : !r || r.type !== "ObjectPattern"; case "ClassProperty": case "ClassAccessorProperty": return t.key === e ? !!t.computed : !0; case "ClassPrivateProperty": return t.key !== e; case "ClassDeclaration": case "ClassExpression": return t.superClass === e; case "AssignmentExpression": return t.right === e; case "AssignmentPattern": return t.right === e; case "LabeledStatement": return !1; case "CatchClause": return !1; case "RestElement": return !1; case "BreakStatement": case "ContinueStatement": return !1; case "FunctionDeclaration": case "FunctionExpression": return !1; case "ExportNamespaceSpecifier": case "ExportDefaultSpecifier": return !1; case "ExportSpecifier": return r != null && r.source ? !1 : t.local === e; case "ImportDefaultSpecifier": case "ImportNamespaceSpecifier": case "ImportSpecifier": return !1; case "ImportAttribute": return !1; case "JSXAttribute": return !1; case "ObjectPattern": case "ArrayPattern": return !1; case "MetaProperty": return !1; case "ObjectTypeProperty": return t.key !== e; case "TSEnumMember": return t.id !== e; case "TSPropertySignature": return t.key === e ? !!t.computed : !0; } return !0; } s(WAe, "isReferenced"); }); // ../node_modules/@babel/types/lib/validators/isScope.js var a9 = E((PT) => { "use strict"; Object.defineProperty(PT, "__esModule", { value: !0 }); PT.default = $Ae; var Vo = cr(); function $Ae(e, t) { return (0, Vo.isBlockStatement)(e) && ((0, Vo.isFunction)(t) || (0, Vo.isCatchClause)(t)) ? !1 : (0, Vo.isPattern)(e) && ((0, Vo.isFunction)( t) || (0, Vo.isCatchClause)(t)) ? !0 : (0, Vo.isScopable)(e); } s($Ae, "isScope"); }); // ../node_modules/@babel/types/lib/validators/isSpecifierDefault.js var u9 = E((FT) => { "use strict"; Object.defineProperty(FT, "__esModule", { value: !0 }); FT.default = VAe; var o9 = cr(); function VAe(e) { return (0, o9.isImportDefaultSpecifier)(e) || (0, o9.isIdentifier)(e.imported || e.exported, { name: "default" }); } s(VAe, "isSpecifierDefault"); }); // ../node_modules/@babel/types/lib/validators/isValidES3Identifier.js var l9 = E((IT) => { "use strict"; Object.defineProperty(IT, "__esModule", { value: !0 }); IT.default = zAe; var HAe = Ol(), KAe = /* @__PURE__ */ new Set(["abstract", "boolean", "byte", "char", "double", "enum", "final", "float", "goto", "impleme\ nts", "int", "interface", "long", "native", "package", "private", "protected", "public", "short", "static", "synchronized", "throws", "trans\ ient", "volatile"]); function zAe(e) { return (0, HAe.default)(e) && !KAe.has(e); } s(zAe, "isValidES3Identifier"); }); // ../node_modules/@babel/types/lib/validators/isVar.js var f9 = E((OT) => { "use strict"; Object.defineProperty(OT, "__esModule", { value: !0 }); OT.default = JAe; var GAe = cr(); c9 = Symbol.for("var used to be block scoped"); var c9; function JAe(e) { return (0, GAe.isVariableDeclaration)(e, { kind: "var" }) && !e[c9]; } s(JAe, "isVar"); }); // ../node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js var d9 = E((NT) => { "use strict"; Object.defineProperty(NT, "__esModule", { value: !0 }); NT.default = Iy; var XAe = Ad(), Ho = cr(), kT = wi(), BT = FS(), YAe = Ma(); function Iy(e, t) { let r = [], i = !0; for (let n of e) if ((0, Ho.isEmptyStatement)(n) || (i = !1), (0, Ho.isExpression)(n)) r.push(n); else if ((0, Ho.isExpressionStatement)(n)) r.push(n.expression); else if ((0, Ho.isVariableDeclaration)(n)) { if (n.kind !== "var") return; for (let a of n.declarations) { let o = (0, XAe.default)(a); for (let u of Object.keys(o)) t.push({ kind: n.kind, id: (0, YAe.default)(o[u]) }); a.init && r.push((0, kT.assignmentExpression)("=", a.id, a.init)); } i = !0; } else if ((0, Ho.isIfStatement)(n)) { let a = n.consequent ? Iy([n.consequent], t) : (0, BT.buildUndefinedNode)(), o = n.alternate ? Iy([n.alternate], t) : (0, BT.buildUndefinedNode)(); if (!a || !o) return; r.push((0, kT.conditionalExpression)(n.test, a, o)); } else if ((0, Ho.isBlockStatement)(n)) { let a = Iy(n.body, t); if (!a) return; r.push(a); } else if ((0, Ho.isEmptyStatement)(n)) e.indexOf(n) === 0 && (i = !0); else return; return i && r.push((0, BT.buildUndefinedNode)()), r.length === 1 ? r[0] : (0, kT.sequenceExpression)(r); } s(Iy, "gatherSequenceExpressions"); }); // ../node_modules/@babel/types/lib/converters/toSequenceExpression.js var p9 = E((MT) => { "use strict"; Object.defineProperty(MT, "__esModule", { value: !0 }); MT.default = QAe; var ZAe = d9(); function QAe(e, t) { if (!(e != null && e.length)) return; let r = [], i = (0, ZAe.default)(e, r); if (i) { for (let n of r) t.push(n); return i; } } s(QAe, "toSequenceExpression"); }); // ../node_modules/@babel/types/lib/index.js var $e = E((De) => { "use strict"; Object.defineProperty(De, "__esModule", { value: !0 }); var Ra = { react: !0, assertNode: !0, createTypeAnnotationBasedOnTypeof: !0, createUnionTypeAnnotation: !0, createFlowUnionType: !0, createTSUnionType: !0, cloneNode: !0, clone: !0, cloneDeep: !0, cloneDeepWithoutLoc: !0, cloneWithoutLoc: !0, addComment: !0, addComments: !0, inheritInnerComments: !0, inheritLeadingComments: !0, inheritsComments: !0, inheritTrailingComments: !0, removeComments: !0, ensureBlock: !0, toBindingIdentifierName: !0, toBlock: !0, toComputedKey: !0, toExpression: !0, toIdentifier: !0, toKeyAlias: !0, toStatement: !0, valueToNode: !0, appendToMemberExpression: !0, inherits: !0, prependToMemberExpression: !0, removeProperties: !0, removePropertiesDeep: !0, removeTypeDuplicates: !0, getAssignmentIdentifiers: !0, getBindingIdentifiers: !0, getOuterBindingIdentifiers: !0, getFunctionName: !0, traverse: !0, traverseFast: !0, shallowEqual: !0, is: !0, isBinding: !0, isBlockScoped: !0, isImmutable: !0, isLet: !0, isNode: !0, isNodesEquivalent: !0, isPlaceholderType: !0, isReferenced: !0, isScope: !0, isSpecifierDefault: !0, isType: !0, isValidES3Identifier: !0, isValidIdentifier: !0, isVar: !0, matchesPattern: !0, validate: !0, buildMatchMemberExpression: !0, __internal__deprecationWarning: !0 }; Object.defineProperty(De, "__internal__deprecationWarning", { enumerable: !0, get: /* @__PURE__ */ s(function() { return i2e.default; }, "get") }); Object.defineProperty(De, "addComment", { enumerable: !0, get: /* @__PURE__ */ s(function() { return f_e.default; }, "get") }); Object.defineProperty(De, "addComments", { enumerable: !0, get: /* @__PURE__ */ s(function() { return d_e.default; }, "get") }); Object.defineProperty(De, "appendToMemberExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return A_e.default; }, "get") }); Object.defineProperty(De, "assertNode", { enumerable: !0, get: /* @__PURE__ */ s(function() { return i_e.default; }, "get") }); Object.defineProperty(De, "buildMatchMemberExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return r2e.default; }, "get") }); Object.defineProperty(De, "clone", { enumerable: !0, get: /* @__PURE__ */ s(function() { return o_e.default; }, "get") }); Object.defineProperty(De, "cloneDeep", { enumerable: !0, get: /* @__PURE__ */ s(function() { return u_e.default; }, "get") }); Object.defineProperty(De, "cloneDeepWithoutLoc", { enumerable: !0, get: /* @__PURE__ */ s(function() { return l_e.default; }, "get") }); Object.defineProperty(De, "cloneNode", { enumerable: !0, get: /* @__PURE__ */ s(function() { return a_e.default; }, "get") }); Object.defineProperty(De, "cloneWithoutLoc", { enumerable: !0, get: /* @__PURE__ */ s(function() { return c_e.default; }, "get") }); Object.defineProperty(De, "createFlowUnionType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return h9.default; }, "get") }); Object.defineProperty(De, "createTSUnionType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return s_e.default; }, "get") }); Object.defineProperty(De, "createTypeAnnotationBasedOnTypeof", { enumerable: !0, get: /* @__PURE__ */ s(function() { return n_e.default; }, "get") }); Object.defineProperty(De, "createUnionTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return h9.default; }, "get") }); Object.defineProperty(De, "ensureBlock", { enumerable: !0, get: /* @__PURE__ */ s(function() { return b_e.default; }, "get") }); Object.defineProperty(De, "getAssignmentIdentifiers", { enumerable: !0, get: /* @__PURE__ */ s(function() { return k_e.default; }, "get") }); Object.defineProperty(De, "getBindingIdentifiers", { enumerable: !0, get: /* @__PURE__ */ s(function() { return B_e.default; }, "get") }); Object.defineProperty(De, "getFunctionName", { enumerable: !0, get: /* @__PURE__ */ s(function() { return M_e.default; }, "get") }); Object.defineProperty(De, "getOuterBindingIdentifiers", { enumerable: !0, get: /* @__PURE__ */ s(function() { return N_e.default; }, "get") }); Object.defineProperty(De, "inheritInnerComments", { enumerable: !0, get: /* @__PURE__ */ s(function() { return p_e.default; }, "get") }); Object.defineProperty(De, "inheritLeadingComments", { enumerable: !0, get: /* @__PURE__ */ s(function() { return h_e.default; }, "get") }); Object.defineProperty(De, "inheritTrailingComments", { enumerable: !0, get: /* @__PURE__ */ s(function() { return y_e.default; }, "get") }); Object.defineProperty(De, "inherits", { enumerable: !0, get: /* @__PURE__ */ s(function() { return __e.default; }, "get") }); Object.defineProperty(De, "inheritsComments", { enumerable: !0, get: /* @__PURE__ */ s(function() { return m_e.default; }, "get") }); Object.defineProperty(De, "is", { enumerable: !0, get: /* @__PURE__ */ s(function() { return L_e.default; }, "get") }); Object.defineProperty(De, "isBinding", { enumerable: !0, get: /* @__PURE__ */ s(function() { return q_e.default; }, "get") }); Object.defineProperty(De, "isBlockScoped", { enumerable: !0, get: /* @__PURE__ */ s(function() { return U_e.default; }, "get") }); Object.defineProperty(De, "isImmutable", { enumerable: !0, get: /* @__PURE__ */ s(function() { return W_e.default; }, "get") }); Object.defineProperty(De, "isLet", { enumerable: !0, get: /* @__PURE__ */ s(function() { return $_e.default; }, "get") }); Object.defineProperty(De, "isNode", { enumerable: !0, get: /* @__PURE__ */ s(function() { return V_e.default; }, "get") }); Object.defineProperty(De, "isNodesEquivalent", { enumerable: !0, get: /* @__PURE__ */ s(function() { return H_e.default; }, "get") }); Object.defineProperty(De, "isPlaceholderType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return K_e.default; }, "get") }); Object.defineProperty(De, "isReferenced", { enumerable: !0, get: /* @__PURE__ */ s(function() { return z_e.default; }, "get") }); Object.defineProperty(De, "isScope", { enumerable: !0, get: /* @__PURE__ */ s(function() { return G_e.default; }, "get") }); Object.defineProperty(De, "isSpecifierDefault", { enumerable: !0, get: /* @__PURE__ */ s(function() { return J_e.default; }, "get") }); Object.defineProperty(De, "isType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return X_e.default; }, "get") }); Object.defineProperty(De, "isValidES3Identifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Y_e.default; }, "get") }); Object.defineProperty(De, "isValidIdentifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Z_e.default; }, "get") }); Object.defineProperty(De, "isVar", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Q_e.default; }, "get") }); Object.defineProperty(De, "matchesPattern", { enumerable: !0, get: /* @__PURE__ */ s(function() { return e2e.default; }, "get") }); Object.defineProperty(De, "prependToMemberExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return P_e.default; }, "get") }); De.react = void 0; Object.defineProperty(De, "removeComments", { enumerable: !0, get: /* @__PURE__ */ s(function() { return g_e.default; }, "get") }); Object.defineProperty(De, "removeProperties", { enumerable: !0, get: /* @__PURE__ */ s(function() { return F_e.default; }, "get") }); Object.defineProperty(De, "removePropertiesDeep", { enumerable: !0, get: /* @__PURE__ */ s(function() { return I_e.default; }, "get") }); Object.defineProperty(De, "removeTypeDuplicates", { enumerable: !0, get: /* @__PURE__ */ s(function() { return O_e.default; }, "get") }); Object.defineProperty(De, "shallowEqual", { enumerable: !0, get: /* @__PURE__ */ s(function() { return j_e.default; }, "get") }); Object.defineProperty(De, "toBindingIdentifierName", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D_e.default; }, "get") }); Object.defineProperty(De, "toBlock", { enumerable: !0, get: /* @__PURE__ */ s(function() { return v_e.default; }, "get") }); Object.defineProperty(De, "toComputedKey", { enumerable: !0, get: /* @__PURE__ */ s(function() { return E_e.default; }, "get") }); Object.defineProperty(De, "toExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return x_e.default; }, "get") }); Object.defineProperty(De, "toIdentifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return S_e.default; }, "get") }); Object.defineProperty(De, "toKeyAlias", { enumerable: !0, get: /* @__PURE__ */ s(function() { return T_e.default; }, "get") }); Object.defineProperty(De, "toStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return C_e.default; }, "get") }); Object.defineProperty(De, "traverse", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Oy.default; }, "get") }); Object.defineProperty(De, "traverseFast", { enumerable: !0, get: /* @__PURE__ */ s(function() { return R_e.default; }, "get") }); Object.defineProperty(De, "validate", { enumerable: !0, get: /* @__PURE__ */ s(function() { return t2e.default; }, "get") }); Object.defineProperty(De, "valueToNode", { enumerable: !0, get: /* @__PURE__ */ s(function() { return w_e.default; }, "get") }); var e_e = yj(), t_e = gj(), r_e = lL(), i_e = cL(), RT = fL(); Object.keys(RT).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Ra, e) || e in De && De[e] === RT[e] || Object.defineProperty( De, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return RT[e]; }, "get") }); }); var n_e = dL(), h9 = mL(), s_e = DL(), jT = FS(); Object.keys(jT).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Ra, e) || e in De && De[e] === jT[e] || Object.defineProperty( De, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return jT[e]; }, "get") }); }); var LT = wi(); Object.keys(LT).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Ra, e) || e in De && De[e] === LT[e] || Object.defineProperty( De, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return LT[e]; }, "get") }); }); var a_e = Ma(), o_e = CL(), u_e = wL(), l_e = AL(), c_e = _L(), f_e = PL(), d_e = jS(), p_e = WS(), h_e = VS(), m_e = GS(), y_e = KS(), g_e = FL(), qT = IL(); Object.keys(qT).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Ra, e) || e in De && De[e] === qT[e] || Object.defineProperty( De, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return qT[e]; }, "get") }); }); var UT = kl(); Object.keys(UT).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Ra, e) || e in De && De[e] === UT[e] || Object.defineProperty( De, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return UT[e]; }, "get") }); }); var b_e = OL(), D_e = kL(), v_e = ZS(), E_e = BL(), x_e = NL(), S_e = tT(), T_e = qL(), C_e = UL(), w_e = WL(), WT = Xi(); Object.keys(WT).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Ra, e) || e in De && De[e] === WT[e] || Object.defineProperty( De, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return WT[e]; }, "get") }); }); var A_e = $L(), __e = HL(), P_e = KL(), F_e = oT(), I_e = lT(), O_e = CS(), k_e = zL(), B_e = Ad(), N_e = GL(), M_e = XL(), Oy = YL(); Object.keys(Oy).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Ra, e) || e in De && De[e] === Oy[e] || Object.defineProperty( De, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return Oy[e]; }, "get") }); }); var R_e = sT(), j_e = cy(), L_e = Fl(), q_e = ZL(), U_e = t9(), W_e = r9(), $_e = ST(), V_e = xS(), H_e = n9(), K_e = z1(), z_e = s9(), G_e = a9(), J_e = u9(), X_e = dy(), Y_e = l9(), Z_e = Ol(), Q_e = f9(), e2e = U1(), t2e = yy(), r2e = $1(), $T = cr(); Object.keys($T).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Ra, e) || e in De && De[e] === $T[e] || Object.defineProperty( De, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return $T[e]; }, "get") }); }); var i2e = pd(), n2e = p9(), blt = De.react = { isReactComponent: e_e.default, isCompatTag: t_e.default, buildChildren: r_e.default }; De.toSequenceExpression = n2e.default; process.env.BABEL_TYPES_8_BREAKING && console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-releas\ e instead!"); }); // ../node_modules/@babel/template/lib/formatters.js var m9 = E((Zi) => { "use strict"; Object.defineProperty(Zi, "__esModule", { value: !0 }); Zi.statements = Zi.statement = Zi.smart = Zi.program = Zi.expression = void 0; var s2e = $e(), { assertExpressionStatement: a2e } = s2e; function VT(e) { return { code: /* @__PURE__ */ s((t) => `/* @babel/template */; ${t}`, "code"), validate: /* @__PURE__ */ s(() => { }, "validate"), unwrap: /* @__PURE__ */ s((t) => e(t.program.body.slice(1)), "unwrap") }; } s(VT, "makeStatementFormatter"); var Elt = Zi.smart = VT((e) => e.length > 1 ? e : e[0]), xlt = Zi.statements = VT((e) => e), Slt = Zi.statement = VT((e) => { if (e.length === 0) throw new Error("Found nothing to return."); if (e.length > 1) throw new Error("Found multiple statements but wanted one"); return e[0]; }), o2e = Zi.expression = { code: /* @__PURE__ */ s((e) => `( ${e} )`, "code"), validate: /* @__PURE__ */ s((e) => { if (e.program.body.length > 1) throw new Error("Found multiple statements but wanted one"); if (o2e.unwrap(e).start === 0) throw new Error("Parse result included parens."); }, "validate"), unwrap: /* @__PURE__ */ s(({ program: e }) => { let [t] = e.body; return a2e(t), t.expression; }, "unwrap") }, Tlt = Zi.program = { code: /* @__PURE__ */ s((e) => e, "code"), validate: /* @__PURE__ */ s(() => { }, "validate"), unwrap: /* @__PURE__ */ s((e) => e.program, "unwrap") }; }); // ../node_modules/@babel/template/lib/options.js var ky = E((_d) => { "use strict"; Object.defineProperty(_d, "__esModule", { value: !0 }); _d.merge = c2e; _d.normalizeReplacements = d2e; _d.validate = f2e; var u2e = ["placeholderWhitelist", "placeholderPattern", "preserveComments", "syntacticPlaceholders"]; function l2e(e, t) { if (e == null) return {}; var r = {}; for (var i in e) if ({}.hasOwnProperty.call(e, i)) { if (t.indexOf(i) !== -1) continue; r[i] = e[i]; } return r; } s(l2e, "_objectWithoutPropertiesLoose"); function c2e(e, t) { let { placeholderWhitelist: r = e.placeholderWhitelist, placeholderPattern: i = e.placeholderPattern, preserveComments: n = e.preserveComments, syntacticPlaceholders: a = e.syntacticPlaceholders } = t; return { parser: Object.assign({}, e.parser, t.parser), placeholderWhitelist: r, placeholderPattern: i, preserveComments: n, syntacticPlaceholders: a }; } s(c2e, "merge"); function f2e(e) { if (e != null && typeof e != "object") throw new Error("Unknown template options."); let t = e || {}, { placeholderWhitelist: r, placeholderPattern: i, preserveComments: n, syntacticPlaceholders: a } = t, o = l2e(t, u2e); if (r != null && !(r instanceof Set)) throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined"); if (i != null && !(i instanceof RegExp) && i !== !1) throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined"); if (n != null && typeof n != "boolean") throw new Error("'.preserveComments' must be a boolean, null, or undefined"); if (a != null && typeof a != "boolean") throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined"); if (a === !0 && (r != null || i != null)) throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'"); return { parser: o, placeholderWhitelist: r || void 0, placeholderPattern: i ?? void 0, preserveComments: n ?? void 0, syntacticPlaceholders: a ?? void 0 }; } s(f2e, "validate"); function d2e(e) { if (Array.isArray(e)) return e.reduce((t, r, i) => (t["$" + i] = r, t), {}); if (typeof e == "object" || e == null) return e || void 0; throw new Error("Template replacements must be an array, object, null, or undefined"); } s(d2e, "normalizeReplacements"); }); // ../node_modules/@babel/parser/lib/index.js var Jo = E((jd) => { "use strict"; Object.defineProperty(jd, "__esModule", { value: !0 }); function p2e(e, t) { if (e == null) return {}; var r = {}; for (var i in e) if ({}.hasOwnProperty.call(e, i)) { if (t.indexOf(i) !== -1) continue; r[i] = e[i]; } return r; } s(p2e, "_objectWithoutPropertiesLoose"); var rs = class { static { s(this, "Position"); } constructor(t, r, i) { this.line = void 0, this.column = void 0, this.index = void 0, this.line = t, this.column = r, this.index = i; } }, Wl = class { static { s(this, "SourceLocation"); } constructor(t, r) { this.start = void 0, this.end = void 0, this.filename = void 0, this.identifierName = void 0, this.start = t, this.end = r; } }; function yi(e, t) { let { line: r, column: i, index: n } = e; return new rs(r, i + t, n + t); } s(yi, "createPositionWithColumnOffset"); var y9 = "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED", h2e = { ImportMetaOutsideModule: { message: `import.meta may appear only with 'sourceType: "module"'`, code: y9 }, ImportOutsideModule: { message: `'import' and 'export' may appear only with 'sourceType: "module"'`, code: y9 } }, g9 = { ArrayPattern: "array destructuring pattern", AssignmentExpression: "assignment expression", AssignmentPattern: "assignment expression", ArrowFunctionExpression: "arrow function expression", ConditionalExpression: "conditional expression", CatchClause: "catch clause", ForOfStatement: "for-of statement", ForInStatement: "for-in statement", ForStatement: "for-loop", FormalParameters: "function parameter list", Identifier: "identifier", ImportSpecifier: "import specifier", ImportDefaultSpecifier: "import default specifier", ImportNamespaceSpecifier: "import namespace specifier", ObjectPattern: "object destructuring pattern", ParenthesizedExpression: "parenthesized expression", RestElement: "rest element", UpdateExpression: { true: "prefix operation", false: "postfix operation" }, VariableDeclarator: "variable declaration", YieldExpression: "yield expression" }, My = /* @__PURE__ */ s((e) => e.type === "UpdateExpression" ? g9.UpdateExpression[`${e.prefix}`] : g9[e.type], "toNodeDescription"), m2e = { AccessorIsGenerator: /* @__PURE__ */ s(({ kind: e }) => `A ${e}ter cannot be a generator.`, "AccessorIsGenerator"), ArgumentsInClass: "'arguments' is only allowed in functions and class methods.", AsyncFunctionInSingleStatementContext: "Async functions can only be declared at the top level or inside a block.", AwaitBindingIdentifier: "Can not use 'await' as identifier inside an async function.", AwaitBindingIdentifierInStaticBlock: "Can not use 'await' as identifier inside a static block.", AwaitExpressionFormalParameter: "'await' is not allowed in async function parameters.", AwaitUsingNotInAsyncContext: "'await using' is only allowed within async functions and at the top levels of modules.", AwaitNotInAsyncContext: "'await' is only allowed within async functions and at the top levels of modules.", BadGetterArity: "A 'get' accessor must not have any formal parameters.", BadSetterArity: "A 'set' accessor must have exactly one formal parameter.", BadSetterRestParameter: "A 'set' accessor function argument must not be a rest parameter.", ConstructorClassField: "Classes may not have a field named 'constructor'.", ConstructorClassPrivateField: "Classes may not have a private field named '#constructor'.", ConstructorIsAccessor: "Class constructor may not be an accessor.", ConstructorIsAsync: "Constructor can't be an async function.", ConstructorIsGenerator: "Constructor can't be a generator.", DeclarationMissingInitializer: /* @__PURE__ */ s(({ kind: e }) => `Missing initializer in ${e} declaration.`, "DeclarationMissingInitializer"), DecoratorArgumentsOutsideParentheses: "Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(deco\ rator)(args)'.", DecoratorBeforeExport: "Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use\ the 'export @decorator class {}' syntax.", DecoratorsBeforeAfterExport: "Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the s\ ame time.", DecoratorConstructor: "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?", DecoratorExportClass: "Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use \ the '@decorator export class {}' syntax.", DecoratorSemicolon: "Decorators must not be followed by a semicolon.", DecoratorStaticBlock: "Decorators can't be used with a static block.", DeferImportRequiresNamespace: 'Only `import defer * as x from "./module"` is valid.', DeletePrivateField: "Deleting a private field is not allowed.", DestructureNamedImport: "ES2015 named imports do not destructure. Use another statement for destructuring after the import.", DuplicateConstructor: "Duplicate constructor in the same class.", DuplicateDefaultExport: "Only one default export allowed per module.", DuplicateExport: /* @__PURE__ */ s(({ exportName: e }) => `\`${e}\` has already been exported. Exported identifiers must be unique.`, "DuplicateExport"), DuplicateProto: "Redefinition of __proto__ property.", DuplicateRegExpFlags: "Duplicate regular expression flag.", DynamicImportPhaseRequiresImportExpressions: /* @__PURE__ */ s(({ phase: e }) => `'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`, "DynamicImportPhaseRequiresImportExpress\ ions"), ElementAfterRest: "Rest element must be last element.", EscapedCharNotAnIdentifier: "Invalid Unicode escape.", ExportBindingIsString: /* @__PURE__ */ s(({ localName: e, exportName: t }) => `A string literal cannot be used as an exported binding without \`from\`. - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`, "ExportBindingIsString"), ExportDefaultFromAsIdentifier: "'from' is not allowed as an identifier after 'export default'.", ForInOfLoopInitializer: /* @__PURE__ */ s(({ type: e }) => `'${e === "ForInStatement" ? "for-in" : "for-of"}' loop variable declaration may not have an initializer.`, "ForInOfLoopInitialize\ r"), ForInUsing: "For-in loop may not start with 'using' declaration.", ForOfAsync: "The left-hand side of a for-of loop may not be 'async'.", ForOfLet: "The left-hand side of a for-of loop may not start with 'let'.", GeneratorInSingleStatementContext: "Generators can only be declared at the top level or inside a block.", IllegalBreakContinue: /* @__PURE__ */ s(({ type: e }) => `Unsyntactic ${e === "BreakStatement" ? "break" : "continue"}.`, "IllegalBreakContinue"), IllegalLanguageModeDirective: "Illegal 'use strict' directive in function with non-simple parameter list.", IllegalReturn: "'return' outside of function.", ImportAttributesUseAssert: "The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You \ can enable the `deprecatedImportAssert` parser plugin to suppress this error.", ImportBindingIsString: /* @__PURE__ */ s(({ importName: e }) => `A string literal cannot be used as an imported binding. - Did you mean \`import { "${e}" as foo }\`?`, "ImportBindingIsString"), ImportCallArity: "`import()` requires exactly one or two arguments.", ImportCallNotNewExpression: "Cannot use new with import(...).", ImportCallSpreadArgument: "`...` is not allowed in `import()`.", ImportJSONBindingNotDefault: "A JSON module can only be imported with `default`.", ImportReflectionHasAssertion: "`import module x` cannot have assertions.", ImportReflectionNotBinding: 'Only `import module x from "./module"` is valid.', IncompatibleRegExpUVFlags: "The 'u' and 'v' regular expression flags cannot be enabled at the same time.", InvalidBigIntLiteral: "Invalid BigIntLiteral.", InvalidCodePoint: "Code point out of bounds.", InvalidCoverInitializedName: "Invalid shorthand property initializer.", InvalidDecimal: "Invalid decimal.", InvalidDigit: /* @__PURE__ */ s(({ radix: e }) => `Expected number in radix ${e}.`, "InvalidDigit"), InvalidEscapeSequence: "Bad character escape sequence.", InvalidEscapeSequenceTemplate: "Invalid escape sequence in template.", InvalidEscapedReservedWord: /* @__PURE__ */ s(({ reservedWord: e }) => `Escape sequence in keyword ${e}.`, "InvalidEscapedReservedWord"), InvalidIdentifier: /* @__PURE__ */ s(({ identifierName: e }) => `Invalid identifier ${e}.`, "InvalidIdentifier"), InvalidLhs: /* @__PURE__ */ s(({ ancestor: e }) => `Invalid left-hand side in ${My(e)}.`, "InvalidLhs"), InvalidLhsBinding: /* @__PURE__ */ s(({ ancestor: e }) => `Binding invalid left-hand side in ${My(e)}.`, "InvalidLhsBinding"), InvalidLhsOptionalChaining: /* @__PURE__ */ s(({ ancestor: e }) => `Invalid optional chaining in the left-hand side of ${My(e)}.`, "InvalidLhsOptionalChaining"), InvalidNumber: "Invalid number.", InvalidOrMissingExponent: "Floating-point numbers require a valid exponent after the 'e'.", InvalidOrUnexpectedToken: /* @__PURE__ */ s(({ unexpected: e }) => `Unexpected character '${e}'.`, "InvalidOrUnexpectedToken"), InvalidParenthesizedAssignment: "Invalid parenthesized assignment pattern.", InvalidPrivateFieldResolution: /* @__PURE__ */ s(({ identifierName: e }) => `Private name #${e} is not defined.`, "InvalidPrivateFieldResolution"), InvalidPropertyBindingPattern: "Binding member expression.", InvalidRecordProperty: "Only properties and spread elements are allowed in record definitions.", InvalidRestAssignmentPattern: "Invalid rest operator's argument.", LabelRedeclaration: /* @__PURE__ */ s(({ labelName: e }) => `Label '${e}' is already declared.`, "LabelRedeclaration"), LetInLexicalBinding: "'let' is disallowed as a lexically bound name.", LineTerminatorBeforeArrow: "No line break is allowed before '=>'.", MalformedRegExpFlags: "Invalid regular expression flag.", MissingClassName: "A class name is required.", MissingEqInAssignment: "Only '=' operator can be used for specifying default value.", MissingSemicolon: "Missing semicolon.", MissingPlugin: /* @__PURE__ */ s(({ missingPlugin: e }) => `This experimental syntax requires enabling the parser plugin: ${e.map((t) => JSON.stringify(t)).join(", ")}.`, "MissingPlugin"), MissingOneOfPlugins: /* @__PURE__ */ s(({ missingPlugin: e }) => `This experimental syntax requires enabling one of the following parser plugin(s): ${e.map((t) => JSON.stringify(t)).join(", ")}.`, "MissingOneOfPlugins"), MissingUnicodeEscape: "Expecting Unicode escape sequence \\uXXXX.", MixingCoalesceWithLogical: "Nullish coalescing operator(??) requires parens when mixing with logical operators.", ModuleAttributeDifferentFromType: "The only accepted module attribute is `type`.", ModuleAttributeInvalidValue: "Only string literals are allowed as module attribute values.", ModuleAttributesWithDuplicateKeys: /* @__PURE__ */ s(({ key: e }) => `Duplicate key "${e}" is not allowed in module attributes.`, "ModuleAttributesWithDuplicateKeys"), ModuleExportNameHasLoneSurrogate: /* @__PURE__ */ s(({ surrogateCharCode: e }) => `An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`, "ModuleExportNameHasLoneSurrogate"), ModuleExportUndefined: /* @__PURE__ */ s(({ localName: e }) => `Export '${e}' is not defined.`, "ModuleExportUndefined"), MultipleDefaultsInSwitch: "Multiple default clauses.", NewlineAfterThrow: "Illegal newline after throw.", NoCatchOrFinally: "Missing catch or finally clause.", NumberIdentifier: "Identifier directly after number.", NumericSeparatorInEscapeSequence: "Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.", ObsoleteAwaitStar: "'await*' has been removed from the async functions proposal. Use Promise.all() instead.", OptionalChainingNoNew: "Constructors in/after an Optional Chain are not allowed.", OptionalChainingNoTemplate: "Tagged Template Literals are not allowed in optionalChain.", OverrideOnConstructor: "'override' modifier cannot appear on a constructor declaration.", ParamDupe: "Argument name clash.", PatternHasAccessor: "Object pattern can't contain getter or setter.", PatternHasMethod: "Object pattern can't contain methods.", PrivateInExpectedIn: /* @__PURE__ */ s(({ identifierName: e }) => `Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`, "PrivateInExpe\ ctedIn"), PrivateNameRedeclaration: /* @__PURE__ */ s(({ identifierName: e }) => `Duplicate private name #${e}.`, "PrivateNameRedeclaration"), RecordExpressionBarIncorrectEndSyntaxType: "Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 're\ cordAndTuple' plugin is set to 'bar'.", RecordExpressionBarIncorrectStartSyntaxType: "Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the\ 'recordAndTuple' plugin is set to 'bar'.", RecordExpressionHashIncorrectStartSyntaxType: "Record expressions starting with '#{' are only allowed when the 'syntaxType' option of th\ e 'recordAndTuple' plugin is set to 'hash'.", RecordNoProto: "'__proto__' is not allowed in Record expressions.", RestTrailingComma: "Unexpected trailing comma after rest element.", SloppyFunction: "In non-strict mode code, functions can only be declared at top level or inside a block.", SloppyFunctionAnnexB: "In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if sta\ tement.", SourcePhaseImportRequiresDefault: 'Only `import source x from "./module"` is valid.', StaticPrototype: "Classes may not have static property named prototype.", SuperNotAllowed: "`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or n\ ot extending another class?", SuperPrivateField: "Private fields can't be accessed on super.", TrailingDecorator: "Decorators must be attached to a class element.", TupleExpressionBarIncorrectEndSyntaxType: "Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'reco\ rdAndTuple' plugin is set to 'bar'.", TupleExpressionBarIncorrectStartSyntaxType: "Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the '\ recordAndTuple' plugin is set to 'bar'.", TupleExpressionHashIncorrectStartSyntaxType: "Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the \ 'recordAndTuple' plugin is set to 'hash'.", UnexpectedArgumentPlaceholder: "Unexpected argument placeholder.", UnexpectedAwaitAfterPipelineBody: 'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.', UnexpectedDigitAfterHash: "Unexpected digit after hash token.", UnexpectedImportExport: "'import' and 'export' may only appear at the top level.", UnexpectedKeyword: /* @__PURE__ */ s(({ keyword: e }) => `Unexpected keyword '${e}'.`, "UnexpectedKeyword"), UnexpectedLeadingDecorator: "Leading decorators must be attached to a class declaration.", UnexpectedLexicalDeclaration: "Lexical declaration cannot appear in a single-statement context.", UnexpectedNewTarget: "`new.target` can only be used in functions or class properties.", UnexpectedNumericSeparator: "A numeric separator is only allowed between two digits.", UnexpectedPrivateField: "Unexpected private name.", UnexpectedReservedWord: /* @__PURE__ */ s(({ reservedWord: e }) => `Unexpected reserved word '${e}'.`, "UnexpectedReservedWord"), UnexpectedSuper: "'super' is only allowed in object methods and classes.", UnexpectedToken: /* @__PURE__ */ s(({ expected: e, unexpected: t }) => `Unexpected token${t ? ` '${t}'.` : ""}${e ? `, expected "${e}"` : ""}`, "UnexpectedToken"), UnexpectedTokenUnaryExponentiation: "Illegal expression. Wrap left hand side or entire exponentiation in parentheses.", UnexpectedUsingDeclaration: "Using declaration cannot appear in the top level when source type is `script`.", UnsupportedBind: "Binding should be performed on object property.", UnsupportedDecoratorExport: "A decorated export must export a class declaration.", UnsupportedDefaultExport: "Only expressions, functions or classes are allowed as the `default` export.", UnsupportedImport: "`import` can only be used in `import()` or `import.meta`.", UnsupportedMetaProperty: /* @__PURE__ */ s(({ target: e, onlyValidPropertyName: t }) => `The only valid meta property for ${e} is ${e}.${t}.`, "UnsupportedMetaProperty"), UnsupportedParameterDecorator: "Decorators cannot be used to decorate parameters.", UnsupportedPropertyDecorator: "Decorators cannot be used to decorate object literal properties.", UnsupportedSuper: "'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).", UnterminatedComment: "Unterminated comment.", UnterminatedRegExp: "Unterminated regular expression.", UnterminatedString: "Unterminated string constant.", UnterminatedTemplate: "Unterminated template.", UsingDeclarationExport: "Using declaration cannot be exported.", UsingDeclarationHasBindingPattern: "Using declaration cannot have destructuring patterns.", VarRedeclaration: /* @__PURE__ */ s(({ identifierName: e }) => `Identifier '${e}' has already been declared.`, "VarRedeclaration"), YieldBindingIdentifier: "Can not use 'yield' as identifier inside a generator.", YieldInParameter: "Yield expression is not allowed in formal parameters.", YieldNotInGeneratorFunction: "'yield' is only allowed within generator functions.", ZeroDigitNumericSeparator: "Numeric separator can not be used after leading 0." }, y2e = { StrictDelete: "Deleting local variable in strict mode.", StrictEvalArguments: /* @__PURE__ */ s(({ referenceName: e }) => `Assigning to '${e}' in strict mode.`, "StrictEvalArguments"), StrictEvalArgumentsBinding: /* @__PURE__ */ s(({ bindingName: e }) => `Binding '${e}' in strict mode.`, "StrictEvalArgumentsBinding"), StrictFunction: "In strict mode code, functions can only be declared at top level or inside a block.", StrictNumericEscape: "The only valid numeric escape in strict mode is '\\0'.", StrictOctalLiteral: "Legacy octal literals are not allowed in strict mode.", StrictWith: "'with' in strict mode." }, g2e = /* @__PURE__ */ new Set(["ArrowFunctionExpression", "AssignmentExpression", "ConditionalExpression", "YieldExpression"]), b2e = Object. assign({ PipeBodyIsTighter: "Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due \ to its loose operator precedence.", PipeTopicRequiresHackPipes: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" opt\ ion.', PipeTopicUnbound: "Topic reference is unbound; it must be inside a pipe body.", PipeTopicUnconfiguredToken: /* @__PURE__ */ s(({ token: e }) => `Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "propo\ sal": "hack", "topicToken": "${e}" }.`, "PipeTopicUnconfiguredToken"), PipeTopicUnused: "Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.", PipeUnparenthesizedBody: /* @__PURE__ */ s(({ type: e }) => `Hack-style pipe body cannot be an unparenthesized ${My({ type: e })}; please wrap it in parentheses.`, "PipeUnparenthesizedBody") }, { PipelineBodyNoArrow: 'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.', PipelineBodySequenceExpression: "Pipeline body may not be a comma-separated sequence expression.", PipelineHeadSequenceExpression: "Pipeline head should not be a comma-separated sequence expression.", PipelineTopicUnused: "Pipeline is in topic style but does not use topic reference.", PrimaryTopicNotAllowed: "Topic reference was used in a lexical context without topic binding.", PrimaryTopicRequiresSmartPipeline: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "sma\ rt" option.' }), D2e = ["message"]; function b9(e, t, r) { Object.defineProperty(e, t, { enumerable: !1, configurable: !0, value: r }); } s(b9, "defineHidden"); function v2e({ toMessage: e, code: t, reasonCode: r, syntaxPlugin: i }) { let n = r === "MissingPlugin" || r === "MissingOneOfPlugins"; { let a = { AccessorCannotDeclareThisParameter: "AccesorCannotDeclareThisParameter", AccessorCannotHaveTypeParameters: "AccesorCannotHaveTypeParameters", ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumRefer\ ence", SetAccessorCannotHaveOptionalParameter: "SetAccesorCannotHaveOptionalParameter", SetAccessorCannotHaveRestParameter: "SetAccesorCannotHaveRestParameter", SetAccessorCannotHaveReturnType: "SetAccesorCannotHaveReturnType" }; a[r] && (r = a[r]); } return /* @__PURE__ */ s(function a(o, u) { let l = new SyntaxError(); return l.code = t, l.reasonCode = r, l.loc = o, l.pos = o.index, l.syntaxPlugin = i, n && (l.missingPlugin = u.missingPlugin), b9(l, "\ clone", /* @__PURE__ */ s(function(f = {}) { var m; let { line: h, column: d, index: y } = (m = f.loc) != null ? m : o; return a(new rs(h, d, y), Object.assign({}, u, f.details)); }, "clone")), b9(l, "details", u), Object.defineProperty(l, "message", { configurable: !0, get() { let c = `${e(u)} (${o.line}:${o.column})`; return this.message = c, c; }, set(c) { Object.defineProperty(this, "message", { value: c, writable: !0 }); } }), l; }, "constructor"); } s(v2e, "toParseErrorConstructor"); function Ws(e, t) { if (Array.isArray(e)) return (i) => Ws(i, e[0]); let r = {}; for (let i of Object.keys(e)) { let n = e[i], a = typeof n == "string" ? { message: /* @__PURE__ */ s(() => n, "message") } : typeof n == "function" ? { message: n } : n, { message: o } = a, u = p2e(a, D2e), l = typeof o == "string" ? () => o : o; r[i] = v2e(Object.assign({ code: "BABEL_PARSER_SYNTAX_ERROR", reasonCode: i, toMessage: l }, t ? { syntaxPlugin: t } : {}, u)); } return r; } s(Ws, "ParseErrorEnum"); var L = Object.assign({}, Ws(h2e), Ws(m2e), Ws(y2e), Ws`pipelineOperator`(b2e)); function E2e() { return { sourceType: "script", sourceFilename: void 0, startIndex: 0, startColumn: 0, startLine: 1, allowAwaitOutsideFunction: !1, allowReturnOutsideFunction: !1, allowNewTargetOutsideFunction: !1, allowImportExportEverywhere: !1, allowSuperOutsideMethod: !1, allowUndeclaredExports: !1, allowYieldOutsideFunction: !1, plugins: [], strictMode: null, ranges: !1, tokens: !1, createImportExpressions: !1, createParenthesizedExpressions: !1, errorRecovery: !1, attachComment: !0, annexB: !0 }; } s(E2e, "createDefaultOptions"); function x2e(e) { let t = E2e(); if (e == null) return t; if (e.annexB != null && e.annexB !== !1) throw new Error("The `annexB` option can only be set to `false`."); for (let r of Object.keys(t)) e[r] != null && (t[r] = e[r]); if (t.startLine === 1) e.startIndex == null && t.startColumn > 0 ? t.startIndex = t.startColumn : e.startColumn == null && t.startIndex > 0 && (t.startColumn = t.startIndex); else if ((e.startColumn == null || e.startIndex == null) && e.startIndex != null) throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`."); return t; } s(x2e, "getOptions"); var { defineProperty: S2e } = Object, D9 = /* @__PURE__ */ s((e, t) => { e && S2e(e, t, { enumerable: !1, value: e[t] }); }, "toUnenumerable"); function Pd(e) { return D9(e.loc.start, "index"), D9(e.loc.end, "index"), e; } s(Pd, "toESTreeLocation"); var T2e = /* @__PURE__ */ s((e) => class extends e { static { s(this, "ESTreeParserMixin"); } parse() { let r = Pd(super.parse()); return this.optionFlags & 256 && (r.tokens = r.tokens.map(Pd)), r; } parseRegExpLiteral({ pattern: r, flags: i }) { let n = null; try { n = new RegExp(r, i); } catch { } let a = this.estreeParseLiteral(n); return a.regex = { pattern: r, flags: i }, a; } parseBigIntLiteral(r) { let i; try { i = BigInt(r); } catch { i = null; } let n = this.estreeParseLiteral(i); return n.bigint = String(n.value || r), n; } parseDecimalLiteral(r) { let n = this.estreeParseLiteral(null); return n.decimal = String(n.value || r), n; } estreeParseLiteral(r) { return this.parseLiteral(r, "Literal"); } parseStringLiteral(r) { return this.estreeParseLiteral(r); } parseNumericLiteral(r) { return this.estreeParseLiteral(r); } parseNullLiteral() { return this.estreeParseLiteral(null); } parseBooleanLiteral(r) { return this.estreeParseLiteral(r); } directiveToStmt(r) { let i = r.value; delete r.value, i.type = "Literal", i.raw = i.extra.raw, i.value = i.extra.expressionValue; let n = r; return n.type = "ExpressionStatement", n.expression = i, n.directive = i.extra.rawValue, delete i.extra, n; } initFunction(r, i) { super.initFunction(r, i), r.expression = !1; } checkDeclaration(r) { r != null && this.isObjectProperty(r) ? this.checkDeclaration(r.value) : super.checkDeclaration(r); } getObjectOrClassMethodParams(r) { return r.value.params; } isValidDirective(r) { var i; return r.type === "ExpressionStatement" && r.expression.type === "Literal" && typeof r.expression.value == "string" && !((i = r.expression. extra) != null && i.parenthesized); } parseBlockBody(r, i, n, a, o) { super.parseBlockBody(r, i, n, a, o); let u = r.directives.map((l) => this.directiveToStmt(l)); r.body = u.concat(r.body), delete r.directives; } parsePrivateName() { let r = super.parsePrivateName(); return this.getPluginOption("estree", "classFeatures") ? this.convertPrivateNameToPrivateIdentifier(r) : r; } convertPrivateNameToPrivateIdentifier(r) { let i = super.getPrivateNameSV(r); return r = r, delete r.id, r.name = i, r.type = "PrivateIdentifier", r; } isPrivateName(r) { return this.getPluginOption("estree", "classFeatures") ? r.type === "PrivateIdentifier" : super.isPrivateName(r); } getPrivateNameSV(r) { return this.getPluginOption("estree", "classFeatures") ? r.name : super.getPrivateNameSV(r); } parseLiteral(r, i) { let n = super.parseLiteral(r, i); return n.raw = n.extra.raw, delete n.extra, n; } parseFunctionBody(r, i, n = !1) { super.parseFunctionBody(r, i, n), r.expression = r.body.type !== "BlockStatement"; } parseMethod(r, i, n, a, o, u, l = !1) { let c = this.startNode(); c.kind = r.kind, c = super.parseMethod(c, i, n, a, o, u, l), c.type = "FunctionExpression", delete c.kind, r.value = c; let { typeParameters: f } = r; return f && (delete r.typeParameters, c.typeParameters = f, this.resetStartLocationFromNode(c, f)), u === "ClassPrivateMethod" && (r.computed = !1), this.finishNode(r, "MethodDefinition"); } nameIsConstructor(r) { return r.type === "Literal" ? r.value === "constructor" : super.nameIsConstructor(r); } parseClassProperty(...r) { let i = super.parseClassProperty(...r); return this.getPluginOption("estree", "classFeatures") && (i.type = "PropertyDefinition"), i; } parseClassPrivateProperty(...r) { let i = super.parseClassPrivateProperty(...r); return this.getPluginOption("estree", "classFeatures") && (i.type = "PropertyDefinition", i.computed = !1), i; } parseClassAccessorProperty(r) { let i = super.parseClassAccessorProperty(r); return this.getPluginOption("estree", "classFeatures") && (i.type = "AccessorProperty"), i; } parseObjectMethod(r, i, n, a, o) { let u = super.parseObjectMethod(r, i, n, a, o); return u && (u.type = "Property", u.kind === "method" && (u.kind = "init"), u.shorthand = !1), u; } parseObjectProperty(r, i, n, a) { let o = super.parseObjectProperty(r, i, n, a); return o && (o.kind = "init", o.type = "Property"), o; } isValidLVal(r, i, n) { return r === "Property" ? "value" : super.isValidLVal(r, i, n); } isAssignable(r, i) { return r != null && this.isObjectProperty(r) ? this.isAssignable(r.value, i) : super.isAssignable(r, i); } toAssignable(r, i = !1) { if (r != null && this.isObjectProperty(r)) { let { key: n, value: a } = r; this.isPrivateName(n) && this.classScope.usePrivateName(this.getPrivateNameSV(n), n.loc.start), this.toAssignable(a, i); } else super.toAssignable(r, i); } toAssignableObjectExpressionProp(r, i, n) { r.type === "Property" && (r.kind === "get" || r.kind === "set") ? this.raise(L.PatternHasAccessor, r.key) : r.type === "Property" && r. method ? this.raise(L.PatternHasMethod, r.key) : super.toAssignableObjectExpressionProp(r, i, n); } finishCallExpression(r, i) { let n = super.finishCallExpression(r, i); if (n.callee.type === "Import") { var a, o; n.type = "ImportExpression", n.source = n.arguments[0], n.options = (a = n.arguments[1]) != null ? a : null, n.attributes = (o = n.arguments[1]) != null ? o : null, delete n.arguments, delete n.callee; } return n; } toReferencedArguments(r) { r.type !== "ImportExpression" && super.toReferencedArguments(r); } parseExport(r, i) { let n = this.state.lastTokStartLoc, a = super.parseExport(r, i); switch (a.type) { case "ExportAllDeclaration": a.exported = null; break; case "ExportNamedDeclaration": a.specifiers.length === 1 && a.specifiers[0].type === "ExportNamespaceSpecifier" && (a.type = "ExportAllDeclaration", a.exported = a.specifiers[0].exported, delete a.specifiers); case "ExportDefaultDeclaration": { var o; let { declaration: u } = a; u?.type === "ClassDeclaration" && ((o = u.decorators) == null ? void 0 : o.length) > 0 && u.start === a.start && this.resetStartLocation( a, n); } break; } return a; } parseSubscript(r, i, n, a) { let o = super.parseSubscript(r, i, n, a); if (a.optionalChainMember) { if ((o.type === "OptionalMemberExpression" || o.type === "OptionalCallExpression") && (o.type = o.type.substring(8)), a.stop) { let u = this.startNodeAtNode(o); return u.expression = o, this.finishNode(u, "ChainExpression"); } } else (o.type === "MemberExpression" || o.type === "CallExpression") && (o.optional = !1); return o; } isOptionalMemberExpression(r) { return r.type === "ChainExpression" ? r.expression.type === "MemberExpression" : super.isOptionalMemberExpression(r); } hasPropertyAsPrivateName(r) { return r.type === "ChainExpression" && (r = r.expression), super.hasPropertyAsPrivateName(r); } isObjectProperty(r) { return r.type === "Property" && r.kind === "init" && !r.method; } isObjectMethod(r) { return r.type === "Property" && (r.method || r.kind === "get" || r.kind === "set"); } finishNodeAt(r, i, n) { return Pd(super.finishNodeAt(r, i, n)); } resetStartLocation(r, i) { super.resetStartLocation(r, i), Pd(r); } resetEndLocation(r, i = this.state.lastTokEndLoc) { super.resetEndLocation(r, i), Pd(r); } }, "estree"), Go = class { static { s(this, "TokContext"); } constructor(t, r) { this.token = void 0, this.preserveSpace = void 0, this.token = t, this.preserveSpace = !!r; } }, Et = { brace: new Go("{"), j_oTag: new Go("...", !0) }; Et.template = new Go("`", !0); var nt = !0, Se = !0, HT = !0, Fd = !0, ja = !0, C2e = !0, Ly = class { static { s(this, "ExportedTokenType"); } constructor(t, r = {}) { this.label = void 0, this.keyword = void 0, this.beforeExpr = void 0, this.startsExpr = void 0, this.rightAssociative = void 0, this.isLoop = void 0, this.isAssign = void 0, this.prefix = void 0, this.postfix = void 0, this.binop = void 0, this.label = t, this.keyword = r.keyword, this.beforeExpr = !!r.beforeExpr, this.startsExpr = !!r.startsExpr, this.rightAssociative = !!r.rightAssociative, this.isLoop = !!r.isLoop, this.isAssign = !!r.isAssign, this.prefix = !!r.prefix, this.postfix = !!r.postfix, this.binop = r.binop != null ? r.binop : null, this. updateContext = null; } }, mC = /* @__PURE__ */ new Map(); function mt(e, t = {}) { t.keyword = e; let r = Me(e, t); return mC.set(e, r), r; } s(mt, "createKeyword"); function mi(e, t) { return Me(e, { beforeExpr: nt, binop: t }); } s(mi, "createBinop"); var Bd = -1, qs = [], yC = [], gC = [], bC = [], DC = [], vC = []; function Me(e, t = {}) { var r, i, n, a; return ++Bd, yC.push(e), gC.push((r = t.binop) != null ? r : -1), bC.push((i = t.beforeExpr) != null ? i : !1), DC.push((n = t.startsExpr) != null ? n : !1), vC.push((a = t.prefix) != null ? a : !1), qs.push(new Ly(e, t)), Bd; } s(Me, "createToken"); function it(e, t = {}) { var r, i, n, a; return ++Bd, mC.set(e, Bd), yC.push(e), gC.push((r = t.binop) != null ? r : -1), bC.push((i = t.beforeExpr) != null ? i : !1), DC.push((n = t.startsExpr) != null ? n : !1), vC.push((a = t.prefix) != null ? a : !1), qs.push(new Ly("name", t)), Bd; } s(it, "createKeywordLike"); var w2e = { bracketL: Me("[", { beforeExpr: nt, startsExpr: Se }), bracketHashL: Me("#[", { beforeExpr: nt, startsExpr: Se }), bracketBarL: Me("[|", { beforeExpr: nt, startsExpr: Se }), bracketR: Me("]"), bracketBarR: Me("|]"), braceL: Me("{", { beforeExpr: nt, startsExpr: Se }), braceBarL: Me("{|", { beforeExpr: nt, startsExpr: Se }), braceHashL: Me("#{", { beforeExpr: nt, startsExpr: Se }), braceR: Me("}"), braceBarR: Me("|}"), parenL: Me("(", { beforeExpr: nt, startsExpr: Se }), parenR: Me(")"), comma: Me(",", { beforeExpr: nt }), semi: Me(";", { beforeExpr: nt }), colon: Me(":", { beforeExpr: nt }), doubleColon: Me("::", { beforeExpr: nt }), dot: Me("."), question: Me("?", { beforeExpr: nt }), questionDot: Me("?."), arrow: Me("=>", { beforeExpr: nt }), template: Me("template"), ellipsis: Me("...", { beforeExpr: nt }), backQuote: Me("`", { startsExpr: Se }), dollarBraceL: Me("${", { beforeExpr: nt, startsExpr: Se }), templateTail: Me("...`", { startsExpr: Se }), templateNonTail: Me("...${", { beforeExpr: nt, startsExpr: Se }), at: Me("@"), hash: Me("#", { startsExpr: Se }), interpreterDirective: Me("#!..."), eq: Me("=", { beforeExpr: nt, isAssign: Fd }), assign: Me("_=", { beforeExpr: nt, isAssign: Fd }), slashAssign: Me("_=", { beforeExpr: nt, isAssign: Fd }), xorAssign: Me("_=", { beforeExpr: nt, isAssign: Fd }), moduloAssign: Me("_=", { beforeExpr: nt, isAssign: Fd }), incDec: Me("++/--", { prefix: ja, postfix: C2e, startsExpr: Se }), bang: Me("!", { beforeExpr: nt, prefix: ja, startsExpr: Se }), tilde: Me("~", { beforeExpr: nt, prefix: ja, startsExpr: Se }), doubleCaret: Me("^^", { startsExpr: Se }), doubleAt: Me("@@", { startsExpr: Se }), pipeline: mi("|>", 0), nullishCoalescing: mi("??", 1), logicalOR: mi("||", 1), logicalAND: mi("&&", 2), bitwiseOR: mi("|", 3), bitwiseXOR: mi("^", 4), bitwiseAND: mi("&", 5), equality: mi("==/!=/===/!==", 6), lt: mi("/<=/>=", 7), gt: mi("/<=/>=", 7), relational: mi("/<=/>=", 7), bitShift: mi("<>/>>>", 8), bitShiftL: mi("<>/>>>", 8), bitShiftR: mi("<>/>>>", 8), plusMin: Me("+/-", { beforeExpr: nt, binop: 9, prefix: ja, startsExpr: Se }), modulo: Me("%", { binop: 10, startsExpr: Se }), star: Me("*", { binop: 10 }), slash: mi("/", 10), exponent: Me("**", { beforeExpr: nt, binop: 11, rightAssociative: !0 }), _in: mt("in", { beforeExpr: nt, binop: 7 }), _instanceof: mt("instanceof", { beforeExpr: nt, binop: 7 }), _break: mt("break"), _case: mt("case", { beforeExpr: nt }), _catch: mt("catch"), _continue: mt("continue"), _debugger: mt("debugger"), _default: mt("default", { beforeExpr: nt }), _else: mt("else", { beforeExpr: nt }), _finally: mt("finally"), _function: mt("function", { startsExpr: Se }), _if: mt("if"), _return: mt("return", { beforeExpr: nt }), _switch: mt("switch"), _throw: mt("throw", { beforeExpr: nt, prefix: ja, startsExpr: Se }), _try: mt("try"), _var: mt("var"), _const: mt("const"), _with: mt("with"), _new: mt("new", { beforeExpr: nt, startsExpr: Se }), _this: mt("this", { startsExpr: Se }), _super: mt("super", { startsExpr: Se }), _class: mt("class", { startsExpr: Se }), _extends: mt("extends", { beforeExpr: nt }), _export: mt("export"), _import: mt("import", { startsExpr: Se }), _null: mt("null", { startsExpr: Se }), _true: mt("true", { startsExpr: Se }), _false: mt("false", { startsExpr: Se }), _typeof: mt("typeof", { beforeExpr: nt, prefix: ja, startsExpr: Se }), _void: mt("void", { beforeExpr: nt, prefix: ja, startsExpr: Se }), _delete: mt("delete", { beforeExpr: nt, prefix: ja, startsExpr: Se }), _do: mt("do", { isLoop: HT, beforeExpr: nt }), _for: mt("for", { isLoop: HT }), _while: mt("while", { isLoop: HT }), _as: it("as", { startsExpr: Se }), _assert: it("assert", { startsExpr: Se }), _async: it("async", { startsExpr: Se }), _await: it("await", { startsExpr: Se }), _defer: it("defer", { startsExpr: Se }), _from: it("from", { startsExpr: Se }), _get: it("get", { startsExpr: Se }), _let: it("let", { startsExpr: Se }), _meta: it("meta", { startsExpr: Se }), _of: it("of", { startsExpr: Se }), _sent: it("sent", { startsExpr: Se }), _set: it("set", { startsExpr: Se }), _source: it("source", { startsExpr: Se }), _static: it("static", { startsExpr: Se }), _using: it("using", { startsExpr: Se }), _yield: it("yield", { startsExpr: Se }), _asserts: it("asserts", { startsExpr: Se }), _checks: it("checks", { startsExpr: Se }), _exports: it("exports", { startsExpr: Se }), _global: it("global", { startsExpr: Se }), _implements: it("implements", { startsExpr: Se }), _intrinsic: it("intrinsic", { startsExpr: Se }), _infer: it("infer", { startsExpr: Se }), _is: it("is", { startsExpr: Se }), _mixins: it("mixins", { startsExpr: Se }), _proto: it("proto", { startsExpr: Se }), _require: it("require", { startsExpr: Se }), _satisfies: it("satisfies", { startsExpr: Se }), _keyof: it("keyof", { startsExpr: Se }), _readonly: it("readonly", { startsExpr: Se }), _unique: it("unique", { startsExpr: Se }), _abstract: it("abstract", { startsExpr: Se }), _declare: it("declare", { startsExpr: Se }), _enum: it("enum", { startsExpr: Se }), _module: it("module", { startsExpr: Se }), _namespace: it("namespace", { startsExpr: Se }), _interface: it("interface", { startsExpr: Se }), _type: it("type", { startsExpr: Se }), _opaque: it("opaque", { startsExpr: Se }), name: Me("name", { startsExpr: Se }), placeholder: Me("%%", { startsExpr: !0 }), string: Me("string", { startsExpr: Se }), num: Me("num", { startsExpr: Se }), bigint: Me("bigint", { startsExpr: Se }), decimal: Me("decimal", { startsExpr: Se }), regexp: Me("regexp", { startsExpr: Se }), privateName: Me("#name", { startsExpr: Se }), eof: Me("eof"), jsxName: Me("jsxName"), jsxText: Me("jsxText", { beforeExpr: !0 }), jsxTagStart: Me("jsxTagStart", { startsExpr: !0 }), jsxTagEnd: Me("jsxTagEnd") }; function xt(e) { return e >= 93 && e <= 133; } s(xt, "tokenIsIdentifier"); function A2e(e) { return e <= 92; } s(A2e, "tokenKeywordOrIdentifierIsKeyword"); function Tn(e) { return e >= 58 && e <= 133; } s(Tn, "tokenIsKeywordOrIdentifier"); function I9(e) { return e >= 58 && e <= 137; } s(I9, "tokenIsLiteralPropertyName"); function _2e(e) { return bC[e]; } s(_2e, "tokenComesBeforeExpression"); function Od(e) { return DC[e]; } s(Od, "tokenCanStartExpression"); function P2e(e) { return e >= 29 && e <= 33; } s(P2e, "tokenIsAssignment"); function v9(e) { return e >= 129 && e <= 131; } s(v9, "tokenIsFlowInterfaceOrTypeOrOpaque"); function F2e(e) { return e >= 90 && e <= 92; } s(F2e, "tokenIsLoop"); function EC(e) { return e >= 58 && e <= 92; } s(EC, "tokenIsKeyword"); function I2e(e) { return e >= 39 && e <= 59; } s(I2e, "tokenIsOperator"); function O2e(e) { return e === 34; } s(O2e, "tokenIsPostfix"); function k2e(e) { return vC[e]; } s(k2e, "tokenIsPrefix"); function B2e(e) { return e >= 121 && e <= 123; } s(B2e, "tokenIsTSTypeOperator"); function N2e(e) { return e >= 124 && e <= 130; } s(N2e, "tokenIsTSDeclarationStart"); function qa(e) { return yC[e]; } s(qa, "tokenLabelName"); function Ry(e) { return gC[e]; } s(Ry, "tokenOperatorPrecedence"); function M2e(e) { return e === 57; } s(M2e, "tokenIsRightAssociative"); function qy(e) { return e >= 24 && e <= 25; } s(qy, "tokenIsTemplate"); function Ls(e) { return qs[e]; } s(Ls, "getExportedToken"); qs[8].updateContext = (e) => { e.pop(); }, qs[5].updateContext = qs[7].updateContext = qs[23].updateContext = (e) => { e.push(Et.brace); }, qs[22].updateContext = (e) => { e[e.length - 1] === Et.template ? e.pop() : e.push(Et.template); }, qs[143].updateContext = (e) => { e.push(Et.j_expr, Et.j_oTag); }; var xC = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993\ -\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\ \u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\ \u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\ \u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\ \u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01\ -\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", O9 = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\ \u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\ \u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6\ -\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20\ -\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65", R2e = new RegExp("[" + xC + "]"), j2e = new RegExp("[" + xC + O9 + "]"); xC = O9 = null; var k9 = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], L2e = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; function XT(e, t) { let r = 65536; for (let i = 0, n = t.length; i < n; i += 2) { if (r += t[i], r > e) return !1; if (r += t[i + 1], r >= e) return !0; } return !1; } s(XT, "isInAstralSet"); function Us(e) { return e < 65 ? e === 36 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && R2e.test(String.fromCharCode(e)) : XT(e, k9); } s(Us, "isIdentifierStart"); function Ll(e) { return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && j2e.test( String.fromCharCode(e)) : XT(e, k9) || XT(e, L2e); } s(Ll, "isIdentifierChar"); var SC = { keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "swit\ ch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], strictBind: ["eval", "arguments"] }, q2e = new Set(SC.keyword), U2e = new Set(SC.strict), W2e = new Set(SC.strictBind); function B9(e, t) { return t && e === "await" || e === "enum"; } s(B9, "isReservedWord"); function N9(e, t) { return B9(e, t) || U2e.has(e); } s(N9, "isStrictReservedWord"); function M9(e) { return W2e.has(e); } s(M9, "isStrictBindOnlyReservedWord"); function R9(e, t) { return N9(e, t) || M9(e); } s(R9, "isStrictBindReservedWord"); function $2e(e) { return q2e.has(e); } s($2e, "isKeyword"); function V2e(e, t, r) { return e === 64 && t === 64 && Us(r); } s(V2e, "isIteratorStart"); var H2e = /* @__PURE__ */ new Set(["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete", "implements", "interface", "let", "package", "private", "protecte\ d", "public", "static", "yield", "eval", "arguments", "enum", "await"]); function K2e(e) { return H2e.has(e); } s(K2e, "canBeReservedWord"); var Nd = class { static { s(this, "Scope"); } constructor(t) { this.flags = 0, this.names = /* @__PURE__ */ new Map(), this.firstLexicalName = "", this.flags = t; } }, Md = class { static { s(this, "ScopeHandler"); } constructor(t, r) { this.parser = void 0, this.scopeStack = [], this.inModule = void 0, this.undefinedExports = /* @__PURE__ */ new Map(), this.parser = t, this.inModule = r; } get inTopLevel() { return (this.currentScope().flags & 1) > 0; } get inFunction() { return (this.currentVarScopeFlags() & 2) > 0; } get allowSuper() { return (this.currentThisScopeFlags() & 16) > 0; } get allowDirectSuper() { return (this.currentThisScopeFlags() & 32) > 0; } get inClass() { return (this.currentThisScopeFlags() & 64) > 0; } get inClassAndNotInNonArrowFunction() { let t = this.currentThisScopeFlags(); return (t & 64) > 0 && (t & 2) === 0; } get inStaticBlock() { for (let t = this.scopeStack.length - 1; ; t--) { let { flags: r } = this.scopeStack[t]; if (r & 128) return !0; if (r & 451) return !1; } } get inNonArrowFunction() { return (this.currentThisScopeFlags() & 2) > 0; } get treatFunctionsAsVar() { return this.treatFunctionsAsVarInScope(this.currentScope()); } createScope(t) { return new Nd(t); } enter(t) { this.scopeStack.push(this.createScope(t)); } exit() { return this.scopeStack.pop().flags; } treatFunctionsAsVarInScope(t) { return !!(t.flags & 130 || !this.parser.inModule && t.flags & 1); } declareName(t, r, i) { let n = this.currentScope(); if (r & 8 || r & 16) { this.checkRedeclarationInScope(n, t, r, i); let a = n.names.get(t) || 0; r & 16 ? a = a | 4 : (n.firstLexicalName || (n.firstLexicalName = t), a = a | 2), n.names.set(t, a), r & 8 && this.maybeExportDefined( n, t); } else if (r & 4) for (let a = this.scopeStack.length - 1; a >= 0 && (n = this.scopeStack[a], this.checkRedeclarationInScope(n, t, r, i), n.names.set( t, (n.names.get(t) || 0) | 1), this.maybeExportDefined(n, t), !(n.flags & 387)); --a) ; this.parser.inModule && n.flags & 1 && this.undefinedExports.delete(t); } maybeExportDefined(t, r) { this.parser.inModule && t.flags & 1 && this.undefinedExports.delete(r); } checkRedeclarationInScope(t, r, i, n) { this.isRedeclaredInScope(t, r, i) && this.parser.raise(L.VarRedeclaration, n, { identifierName: r }); } isRedeclaredInScope(t, r, i) { if (!(i & 1)) return !1; if (i & 8) return t.names.has(r); let n = t.names.get(r); return i & 16 ? (n & 2) > 0 || !this.treatFunctionsAsVarInScope(t) && (n & 1) > 0 : (n & 2) > 0 && !(t.flags & 8 && t.firstLexicalName === r) || !this.treatFunctionsAsVarInScope(t) && (n & 4) > 0; } checkLocalExport(t) { let { name: r } = t; this.scopeStack[0].names.has(r) || this.undefinedExports.set(r, t.loc.start); } currentScope() { return this.scopeStack[this.scopeStack.length - 1]; } currentVarScopeFlags() { for (let t = this.scopeStack.length - 1; ; t--) { let { flags: r } = this.scopeStack[t]; if (r & 387) return r; } } currentThisScopeFlags() { for (let t = this.scopeStack.length - 1; ; t--) { let { flags: r } = this.scopeStack[t]; if (r & 451 && !(r & 4)) return r; } } }, YT = class extends Nd { static { s(this, "FlowScope"); } constructor(...t) { super(...t), this.declareFunctions = /* @__PURE__ */ new Set(); } }, ZT = class extends Md { static { s(this, "FlowScopeHandler"); } createScope(t) { return new YT(t); } declareName(t, r, i) { let n = this.currentScope(); if (r & 2048) { this.checkRedeclarationInScope(n, t, r, i), this.maybeExportDefined(n, t), n.declareFunctions.add(t); return; } super.declareName(t, r, i); } isRedeclaredInScope(t, r, i) { if (super.isRedeclaredInScope(t, r, i)) return !0; if (i & 2048 && !t.declareFunctions.has(r)) { let n = t.names.get(r); return (n & 4) > 0 || (n & 2) > 0; } return !1; } checkLocalExport(t) { this.scopeStack[0].declareFunctions.has(t.name) || super.checkLocalExport(t); } }, QT = class { static { s(this, "BaseParser"); } constructor() { this.sawUnambiguousESM = !1, this.ambiguousScriptDifferentAst = !1; } sourceToOffsetPos(t) { return t + this.startIndex; } offsetToSourcePos(t) { return t - this.startIndex; } hasPlugin(t) { if (typeof t == "string") return this.plugins.has(t); { let [r, i] = t; if (!this.hasPlugin(r)) return !1; let n = this.plugins.get(r); for (let a of Object.keys(i)) if (n?.[a] !== i[a]) return !1; return !0; } } getPluginOption(t, r) { var i; return (i = this.plugins.get(t)) == null ? void 0 : i[r]; } }; function j9(e, t) { e.trailingComments === void 0 ? e.trailingComments = t : e.trailingComments.unshift(...t); } s(j9, "setTrailingComments"); function z2e(e, t) { e.leadingComments === void 0 ? e.leadingComments = t : e.leadingComments.unshift(...t); } s(z2e, "setLeadingComments"); function Rd(e, t) { e.innerComments === void 0 ? e.innerComments = t : e.innerComments.unshift(...t); } s(Rd, "setInnerComments"); function Ko(e, t, r) { let i = null, n = t.length; for (; i === null && n > 0; ) i = t[--n]; i === null || i.start > r.start ? Rd(e, r.comments) : j9(i, r.comments); } s(Ko, "adjustInnerComments"); var eC = class extends QT { static { s(this, "CommentsParser"); } addComment(t) { this.filename && (t.loc.filename = this.filename); let { commentsLen: r } = this.state; this.comments.length !== r && (this.comments.length = r), this.comments.push(t), this.state.commentsLen++; } processComment(t) { let { commentStack: r } = this.state, i = r.length; if (i === 0) return; let n = i - 1, a = r[n]; a.start === t.end && (a.leadingNode = t, n--); let { start: o } = t; for (; n >= 0; n--) { let u = r[n], l = u.end; if (l > o) u.containingNode = t, this.finalizeComment(u), r.splice(n, 1); else { l === o && (u.trailingNode = t); break; } } } finalizeComment(t) { let { comments: r } = t; if (t.leadingNode !== null || t.trailingNode !== null) t.leadingNode !== null && j9(t.leadingNode, r), t.trailingNode !== null && z2e(t.trailingNode, r); else { let { containingNode: i, start: n } = t; if (this.input.charCodeAt(this.offsetToSourcePos(n) - 1) === 44) switch (i.type) { case "ObjectExpression": case "ObjectPattern": case "RecordExpression": Ko(i, i.properties, t); break; case "CallExpression": case "OptionalCallExpression": Ko(i, i.arguments, t); break; case "FunctionDeclaration": case "FunctionExpression": case "ArrowFunctionExpression": case "ObjectMethod": case "ClassMethod": case "ClassPrivateMethod": Ko(i, i.params, t); break; case "ArrayExpression": case "ArrayPattern": case "TupleExpression": Ko(i, i.elements, t); break; case "ExportNamedDeclaration": case "ImportDeclaration": Ko(i, i.specifiers, t); break; case "TSEnumDeclaration": Ko(i, i.members, t); break; case "TSEnumBody": Ko(i, i.members, t); break; default: Rd(i, r); } else Rd(i, r); } } finalizeRemainingComments() { let { commentStack: t } = this.state; for (let r = t.length - 1; r >= 0; r--) this.finalizeComment(t[r]); this.state.commentStack = []; } resetPreviousNodeTrailingComments(t) { let { commentStack: r } = this.state, { length: i } = r; if (i === 0) return; let n = r[i - 1]; n.leadingNode === t && (n.leadingNode = null); } resetPreviousIdentifierLeadingComments(t) { let { commentStack: r } = this.state, { length: i } = r; i !== 0 && (r[i - 1].trailingNode === t ? r[i - 1].trailingNode = null : i >= 2 && r[i - 2].trailingNode === t && (r[i - 2].trailingNode = null)); } takeSurroundingComments(t, r, i) { let { commentStack: n } = this.state, a = n.length; if (a === 0) return; let o = a - 1; for (; o >= 0; o--) { let u = n[o], l = u.end; if (u.start === i) u.leadingNode = t; else if (l === r) u.trailingNode = t; else if (l < r) break; } } }, G2e = /\r\n|[\r\n\u2028\u2029]/, By = new RegExp(G2e.source, "g"); function ql(e) { switch (e) { case 10: case 13: case 8232: case 8233: return !0; default: return !1; } } s(ql, "isNewLine"); function E9(e, t, r) { for (let i = t; i < r; i++) if (ql(e.charCodeAt(i))) return !0; return !1; } s(E9, "hasNewLine"); var KT = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, zT = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g; function J2e(e) { switch (e) { case 9: case 11: case 12: case 32: case 160: case 5760: case 8192: case 8193: case 8194: case 8195: case 8196: case 8197: case 8198: case 8199: case 8200: case 8201: case 8202: case 8239: case 8287: case 12288: case 65279: return !0; default: return !1; } } s(J2e, "isWhitespace"); var tC = class e { static { s(this, "State"); } constructor() { this.flags = 1024, this.startIndex = void 0, this.curLine = void 0, this.lineStart = void 0, this.startLoc = void 0, this.endLoc = void 0, this.errors = [], this.potentialArrowAt = -1, this.noArrowAt = [], this.noArrowParamsConversionAt = [], this.topicContext = { maxNumOfResolvableTopics: 0, maxTopicIndex: null }, this.labels = [], this.commentsLen = 0, this.commentStack = [], this.pos = 0, this.type = 140, this.value = null, this.start = 0, this. end = 0, this.lastTokEndLoc = null, this.lastTokStartLoc = null, this.context = [Et.brace], this.firstInvalidTemplateEscapePos = null, this.strictErrors = /* @__PURE__ */ new Map(), this.tokensLength = 0; } get strict() { return (this.flags & 1) > 0; } set strict(t) { t ? this.flags |= 1 : this.flags &= -2; } init({ strictMode: t, sourceType: r, startIndex: i, startLine: n, startColumn: a }) { this.strict = t === !1 ? !1 : t === !0 ? !0 : r === "module", this.startIndex = i, this.curLine = n, this.lineStart = -a, this.startLoc = this.endLoc = new rs(n, a, i); } get maybeInArrowParameters() { return (this.flags & 2) > 0; } set maybeInArrowParameters(t) { t ? this.flags |= 2 : this.flags &= -3; } get inType() { return (this.flags & 4) > 0; } set inType(t) { t ? this.flags |= 4 : this.flags &= -5; } get noAnonFunctionType() { return (this.flags & 8) > 0; } set noAnonFunctionType(t) { t ? this.flags |= 8 : this.flags &= -9; } get hasFlowComment() { return (this.flags & 16) > 0; } set hasFlowComment(t) { t ? this.flags |= 16 : this.flags &= -17; } get isAmbientContext() { return (this.flags & 32) > 0; } set isAmbientContext(t) { t ? this.flags |= 32 : this.flags &= -33; } get inAbstractClass() { return (this.flags & 64) > 0; } set inAbstractClass(t) { t ? this.flags |= 64 : this.flags &= -65; } get inDisallowConditionalTypesContext() { return (this.flags & 128) > 0; } set inDisallowConditionalTypesContext(t) { t ? this.flags |= 128 : this.flags &= -129; } get soloAwait() { return (this.flags & 256) > 0; } set soloAwait(t) { t ? this.flags |= 256 : this.flags &= -257; } get inFSharpPipelineDirectBody() { return (this.flags & 512) > 0; } set inFSharpPipelineDirectBody(t) { t ? this.flags |= 512 : this.flags &= -513; } get canStartJSXElement() { return (this.flags & 1024) > 0; } set canStartJSXElement(t) { t ? this.flags |= 1024 : this.flags &= -1025; } get containsEsc() { return (this.flags & 2048) > 0; } set containsEsc(t) { t ? this.flags |= 2048 : this.flags &= -2049; } get hasTopLevelAwait() { return (this.flags & 4096) > 0; } set hasTopLevelAwait(t) { t ? this.flags |= 4096 : this.flags &= -4097; } curPosition() { return new rs(this.curLine, this.pos - this.lineStart, this.pos + this.startIndex); } clone() { let t = new e(); return t.flags = this.flags, t.startIndex = this.startIndex, t.curLine = this.curLine, t.lineStart = this.lineStart, t.startLoc = this. startLoc, t.endLoc = this.endLoc, t.errors = this.errors.slice(), t.potentialArrowAt = this.potentialArrowAt, t.noArrowAt = this.noArrowAt. slice(), t.noArrowParamsConversionAt = this.noArrowParamsConversionAt.slice(), t.topicContext = this.topicContext, t.labels = this.labels. slice(), t.commentsLen = this.commentsLen, t.commentStack = this.commentStack.slice(), t.pos = this.pos, t.type = this.type, t.value = this.value, t.start = this.start, t.end = this.end, t.lastTokEndLoc = this.lastTokEndLoc, t.lastTokStartLoc = this.lastTokStartLoc, t. context = this.context.slice(), t.firstInvalidTemplateEscapePos = this.firstInvalidTemplateEscapePos, t.strictErrors = this.strictErrors, t.tokensLength = this.tokensLength, t; } }, X2e = /* @__PURE__ */ s(function(t) { return t >= 48 && t <= 57; }, "isDigit"), x9 = { decBinOct: /* @__PURE__ */ new Set([46, 66, 69, 79, 95, 98, 101, 111]), hex: /* @__PURE__ */ new Set([46, 88, 95, 120]) }, Ny = { bin: /* @__PURE__ */ s((e) => e === 48 || e === 49, "bin"), oct: /* @__PURE__ */ s((e) => e >= 48 && e <= 55, "oct"), dec: /* @__PURE__ */ s((e) => e >= 48 && e <= 57, "dec"), hex: /* @__PURE__ */ s((e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, "hex") }; function S9(e, t, r, i, n, a) { let o = r, u = i, l = n, c = "", f = null, m = r, { length: h } = t; for (; ; ) { if (r >= h) { a.unterminated(o, u, l), c += t.slice(m, r); break; } let d = t.charCodeAt(r); if (Y2e(e, d, t, r)) { c += t.slice(m, r); break; } if (d === 92) { c += t.slice(m, r); let y = Z2e(t, r, i, n, e === "template", a); y.ch === null && !f ? f = { pos: r, lineStart: i, curLine: n } : c += y.ch, { pos: r, lineStart: i, curLine: n } = y, m = r; } else d === 8232 || d === 8233 ? (++r, ++n, i = r) : d === 10 || d === 13 ? e === "template" ? (c += t.slice(m, r) + ` `, ++r, d === 13 && t.charCodeAt(r) === 10 && ++r, ++n, m = i = r) : a.unterminated(o, u, l) : ++r; } return { pos: r, str: c, firstInvalidLoc: f, lineStart: i, curLine: n, containsInvalid: !!f }; } s(S9, "readStringContents"); function Y2e(e, t, r, i) { return e === "template" ? t === 96 || t === 36 && r.charCodeAt(i + 1) === 123 : t === (e === "double" ? 34 : 39); } s(Y2e, "isStringEnd"); function Z2e(e, t, r, i, n, a) { let o = !n; t++; let u = /* @__PURE__ */ s((c) => ({ pos: t, ch: c, lineStart: r, curLine: i }), "res"), l = e.charCodeAt(t++); switch (l) { case 110: return u(` `); case 114: return u("\r"); case 120: { let c; return { code: c, pos: t } = rC(e, t, r, i, 2, !1, o, a), u(c === null ? null : String.fromCharCode(c)); } case 117: { let c; return { code: c, pos: t } = q9(e, t, r, i, o, a), u(c === null ? null : String.fromCodePoint(c)); } case 116: return u(" "); case 98: return u("\b"); case 118: return u("\v"); case 102: return u("\f"); case 13: e.charCodeAt(t) === 10 && ++t; case 10: r = t, ++i; case 8232: case 8233: return u(""); case 56: case 57: if (n) return u(null); a.strictNumericEscape(t - 1, r, i); default: if (l >= 48 && l <= 55) { let c = t - 1, m = /^[0-7]+/.exec(e.slice(c, t + 2))[0], h = parseInt(m, 8); h > 255 && (m = m.slice(0, -1), h = parseInt(m, 8)), t += m.length - 1; let d = e.charCodeAt(t); if (m !== "0" || d === 56 || d === 57) { if (n) return u(null); a.strictNumericEscape(c, r, i); } return u(String.fromCharCode(h)); } return u(String.fromCharCode(l)); } } s(Z2e, "readEscapedChar"); function rC(e, t, r, i, n, a, o, u) { let l = t, c; return { n: c, pos: t } = L9(e, t, r, i, 16, n, a, !1, u, !o), c === null && (o ? u.invalidEscapeSequence(l, r, i) : t = l - 1), { code: c, pos: t }; } s(rC, "readHexChar"); function L9(e, t, r, i, n, a, o, u, l, c) { let f = t, m = n === 16 ? x9.hex : x9.decBinOct, h = n === 16 ? Ny.hex : n === 10 ? Ny.dec : n === 8 ? Ny.oct : Ny.bin, d = !1, y = 0; for (let p = 0, g = a ?? 1 / 0; p < g; ++p) { let b = e.charCodeAt(t), D; if (b === 95 && u !== "bail") { let v = e.charCodeAt(t - 1), S = e.charCodeAt(t + 1); if (u) { if (Number.isNaN(S) || !h(S) || m.has(v) || m.has(S)) { if (c) return { n: null, pos: t }; l.unexpectedNumericSeparator(t, r, i); } } else { if (c) return { n: null, pos: t }; l.numericSeparatorInEscapeSequence(t, r, i); } ++t; continue; } if (b >= 97 ? D = b - 97 + 10 : b >= 65 ? D = b - 65 + 10 : X2e(b) ? D = b - 48 : D = 1 / 0, D >= n) { if (D <= 9 && c) return { n: null, pos: t }; if (D <= 9 && l.invalidDigit(t, r, i, n)) D = 0; else if (o) D = 0, d = !0; else break; } ++t, y = y * n + D; } return t === f || a != null && t - f !== a || d ? { n: null, pos: t } : { n: y, pos: t }; } s(L9, "readInt"); function q9(e, t, r, i, n, a) { let o = e.charCodeAt(t), u; if (o === 123) { if (++t, { code: u, pos: t } = rC(e, t, r, i, e.indexOf("}", t) - t, !0, n, a), ++t, u !== null && u > 1114111) if (n) a.invalidCodePoint(t, r, i); else return { code: null, pos: t }; } else ({ code: u, pos: t } = rC(e, t, r, i, 4, !1, n, a)); return { code: u, pos: t }; } s(q9, "readCodePoint"); function Id(e, t, r) { return new rs(r, e - t, e); } s(Id, "buildPosition"); var Q2e = /* @__PURE__ */ new Set([103, 109, 115, 105, 121, 117, 100, 118]), ts = class { static { s(this, "Token"); } constructor(t) { let r = t.startIndex || 0; this.type = t.type, this.value = t.value, this.start = r + t.start, this.end = r + t.end, this.loc = new Wl(t.startLoc, t.endLoc); } }, iC = class extends eC { static { s(this, "Tokenizer"); } constructor(t, r) { super(), this.isLookahead = void 0, this.tokens = [], this.errorHandlers_readInt = { invalidDigit: /* @__PURE__ */ s((i, n, a, o) => this.optionFlags & 2048 ? (this.raise(L.InvalidDigit, Id(i, n, a), { radix: o }), !0) : !1, "invalidDigit"), numericSeparatorInEscapeSequence: this.errorBuilder(L.NumericSeparatorInEscapeSequence), unexpectedNumericSeparator: this.errorBuilder(L.UnexpectedNumericSeparator) }, this.errorHandlers_readCodePoint = Object.assign({}, this.errorHandlers_readInt, { invalidEscapeSequence: this.errorBuilder(L.InvalidEscapeSequence), invalidCodePoint: this.errorBuilder(L.InvalidCodePoint) }), this.errorHandlers_readStringContents_string = Object.assign({}, this.errorHandlers_readCodePoint, { strictNumericEscape: /* @__PURE__ */ s((i, n, a) => { this.recordStrictModeErrors(L.StrictNumericEscape, Id(i, n, a)); }, "strictNumericEscape"), unterminated: /* @__PURE__ */ s((i, n, a) => { throw this.raise(L.UnterminatedString, Id(i - 1, n, a)); }, "unterminated") }), this.errorHandlers_readStringContents_template = Object.assign({}, this.errorHandlers_readCodePoint, { strictNumericEscape: this.errorBuilder(L.StrictNumericEscape), unterminated: /* @__PURE__ */ s((i, n, a) => { throw this.raise(L.UnterminatedTemplate, Id(i, n, a)); }, "unterminated") }), this.state = new tC(), this.state.init(t), this.input = r, this.length = r.length, this.comments = [], this.isLookahead = !1; } pushToken(t) { this.tokens.length = this.state.tokensLength, this.tokens.push(t), ++this.state.tokensLength; } next() { this.checkKeywordEscapes(), this.optionFlags & 256 && this.pushToken(new ts(this.state)), this.state.lastTokEndLoc = this.state.endLoc, this.state.lastTokStartLoc = this.state.startLoc, this.nextToken(); } eat(t) { return this.match(t) ? (this.next(), !0) : !1; } match(t) { return this.state.type === t; } createLookaheadState(t) { return { pos: t.pos, value: null, type: t.type, start: t.start, end: t.end, context: [this.curContext()], inType: t.inType, startLoc: t.startLoc, lastTokEndLoc: t.lastTokEndLoc, curLine: t.curLine, lineStart: t.lineStart, curPosition: t.curPosition }; } lookahead() { let t = this.state; this.state = this.createLookaheadState(t), this.isLookahead = !0, this.nextToken(), this.isLookahead = !1; let r = this.state; return this.state = t, r; } nextTokenStart() { return this.nextTokenStartSince(this.state.pos); } nextTokenStartSince(t) { return KT.lastIndex = t, KT.test(this.input) ? KT.lastIndex : t; } lookaheadCharCode() { return this.input.charCodeAt(this.nextTokenStart()); } nextTokenInLineStart() { return this.nextTokenInLineStartSince(this.state.pos); } nextTokenInLineStartSince(t) { return zT.lastIndex = t, zT.test(this.input) ? zT.lastIndex : t; } lookaheadInLineCharCode() { return this.input.charCodeAt(this.nextTokenInLineStart()); } codePointAtPos(t) { let r = this.input.charCodeAt(t); if ((r & 64512) === 55296 && ++t < this.input.length) { let i = this.input.charCodeAt(t); (i & 64512) === 56320 && (r = 65536 + ((r & 1023) << 10) + (i & 1023)); } return r; } setStrict(t) { this.state.strict = t, t && (this.state.strictErrors.forEach(([r, i]) => this.raise(r, i)), this.state.strictErrors.clear()); } curContext() { return this.state.context[this.state.context.length - 1]; } nextToken() { if (this.skipSpace(), this.state.start = this.state.pos, this.isLookahead || (this.state.startLoc = this.state.curPosition()), this.state. pos >= this.length) { this.finishToken(140); return; } this.getTokenFromCode(this.codePointAtPos(this.state.pos)); } skipBlockComment(t) { let r; this.isLookahead || (r = this.state.curPosition()); let i = this.state.pos, n = this.input.indexOf(t, i + 2); if (n === -1) throw this.raise(L.UnterminatedComment, this.state.curPosition()); for (this.state.pos = n + t.length, By.lastIndex = i + 2; By.test(this.input) && By.lastIndex <= n; ) ++this.state.curLine, this.state.lineStart = By.lastIndex; if (this.isLookahead) return; let a = { type: "CommentBlock", value: this.input.slice(i + 2, n), start: this.sourceToOffsetPos(i), end: this.sourceToOffsetPos(n + t.length), loc: new Wl(r, this.state.curPosition()) }; return this.optionFlags & 256 && this.pushToken(a), a; } skipLineComment(t) { let r = this.state.pos, i; this.isLookahead || (i = this.state.curPosition()); let n = this.input.charCodeAt(this.state.pos += t); if (this.state.pos < this.length) for (; !ql(n) && ++this.state.pos < this.length; ) n = this.input.charCodeAt(this.state.pos); if (this.isLookahead) return; let a = this.state.pos, u = { type: "CommentLine", value: this.input.slice(r + t, a), start: this.sourceToOffsetPos(r), end: this.sourceToOffsetPos(a), loc: new Wl(i, this.state.curPosition()) }; return this.optionFlags & 256 && this.pushToken(u), u; } skipSpace() { let t = this.state.pos, r = this.optionFlags & 4096 ? [] : null; e: for (; this.state.pos < this.length; ) { let i = this.input.charCodeAt(this.state.pos); switch (i) { case 32: case 160: case 9: ++this.state.pos; break; case 13: this.input.charCodeAt(this.state.pos + 1) === 10 && ++this.state.pos; case 10: case 8232: case 8233: ++this.state.pos, ++this.state.curLine, this.state.lineStart = this.state.pos; break; case 47: switch (this.input.charCodeAt(this.state.pos + 1)) { case 42: { let n = this.skipBlockComment("*/"); n !== void 0 && (this.addComment(n), r?.push(n)); break; } case 47: { let n = this.skipLineComment(2); n !== void 0 && (this.addComment(n), r?.push(n)); break; } default: break e; } break; default: if (J2e(i)) ++this.state.pos; else if (i === 45 && !this.inModule && this.optionFlags & 8192) { let n = this.state.pos; if (this.input.charCodeAt(n + 1) === 45 && this.input.charCodeAt(n + 2) === 62 && (t === 0 || this.state.lineStart > t)) { let a = this.skipLineComment(3); a !== void 0 && (this.addComment(a), r?.push(a)); } else break e; } else if (i === 60 && !this.inModule && this.optionFlags & 8192) { let n = this.state.pos; if (this.input.charCodeAt(n + 1) === 33 && this.input.charCodeAt(n + 2) === 45 && this.input.charCodeAt(n + 3) === 45) { let a = this.skipLineComment(4); a !== void 0 && (this.addComment(a), r?.push(a)); } else break e; } else break e; } } if (r?.length > 0) { let i = this.state.pos, n = { start: this.sourceToOffsetPos(t), end: this.sourceToOffsetPos(i), comments: r, leadingNode: null, trailingNode: null, containingNode: null }; this.state.commentStack.push(n); } } finishToken(t, r) { this.state.end = this.state.pos, this.state.endLoc = this.state.curPosition(); let i = this.state.type; this.state.type = t, this.state.value = r, this.isLookahead || this.updateContext(i); } replaceToken(t) { this.state.type = t, this.updateContext(); } readToken_numberSign() { if (this.state.pos === 0 && this.readToken_interpreter()) return; let t = this.state.pos + 1, r = this.codePointAtPos(t); if (r >= 48 && r <= 57) throw this.raise(L.UnexpectedDigitAfterHash, this.state.curPosition()); if (r === 123 || r === 91 && this.hasPlugin("recordAndTuple")) { if (this.expectPlugin("recordAndTuple"), this.getPluginOption("recordAndTuple", "syntaxType") === "bar") throw this.raise(r === 123 ? L.RecordExpressionHashIncorrectStartSyntaxType : L.TupleExpressionHashIncorrectStartSyntaxType, this. state.curPosition()); this.state.pos += 2, r === 123 ? this.finishToken(7) : this.finishToken(1); } else Us(r) ? (++this.state.pos, this.finishToken(139, this.readWord1(r))) : r === 92 ? (++this.state.pos, this.finishToken(139, this. readWord1())) : this.finishOp(27, 1); } readToken_dot() { let t = this.input.charCodeAt(this.state.pos + 1); if (t >= 48 && t <= 57) { this.readNumber(!0); return; } t === 46 && this.input.charCodeAt(this.state.pos + 2) === 46 ? (this.state.pos += 3, this.finishToken(21)) : (++this.state.pos, this.finishToken( 16)); } readToken_slash() { this.input.charCodeAt(this.state.pos + 1) === 61 ? this.finishOp(31, 2) : this.finishOp(56, 1); } readToken_interpreter() { if (this.state.pos !== 0 || this.length < 2) return !1; let t = this.input.charCodeAt(this.state.pos + 1); if (t !== 33) return !1; let r = this.state.pos; for (this.state.pos += 1; !ql(t) && ++this.state.pos < this.length; ) t = this.input.charCodeAt(this.state.pos); let i = this.input.slice(r + 2, this.state.pos); return this.finishToken(28, i), !0; } readToken_mult_modulo(t) { let r = t === 42 ? 55 : 54, i = 1, n = this.input.charCodeAt(this.state.pos + 1); t === 42 && n === 42 && (i++, n = this.input.charCodeAt(this.state.pos + 2), r = 57), n === 61 && !this.state.inType && (i++, r = t === 37 ? 33 : 30), this.finishOp(r, i); } readToken_pipe_amp(t) { let r = this.input.charCodeAt(this.state.pos + 1); if (r === t) { this.input.charCodeAt(this.state.pos + 2) === 61 ? this.finishOp(30, 3) : this.finishOp(t === 124 ? 41 : 42, 2); return; } if (t === 124) { if (r === 62) { this.finishOp(39, 2); return; } if (this.hasPlugin("recordAndTuple") && r === 125) { if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") throw this.raise(L.RecordExpressionBarIncorrectEndSyntaxType, this.state.curPosition()); this.state.pos += 2, this.finishToken(9); return; } if (this.hasPlugin("recordAndTuple") && r === 93) { if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") throw this.raise(L.TupleExpressionBarIncorrectEndSyntaxType, this.state.curPosition()); this.state.pos += 2, this.finishToken(4); return; } } if (r === 61) { this.finishOp(30, 2); return; } this.finishOp(t === 124 ? 43 : 45, 1); } readToken_caret() { let t = this.input.charCodeAt(this.state.pos + 1); t === 61 && !this.state.inType ? this.finishOp(32, 2) : t === 94 && this.hasPlugin(["pipelineOperator", { proposal: "hack", topicToken: "^^" }]) ? (this.finishOp(37, 2), this.input.codePointAt(this.state.pos) === 94 && this.unexpected()) : this.finishOp(44, 1); } readToken_atSign() { this.input.charCodeAt(this.state.pos + 1) === 64 && this.hasPlugin(["pipelineOperator", { proposal: "hack", topicToken: "@@" }]) ? this.finishOp(38, 2) : this.finishOp(26, 1); } readToken_plus_min(t) { let r = this.input.charCodeAt(this.state.pos + 1); if (r === t) { this.finishOp(34, 2); return; } r === 61 ? this.finishOp(30, 2) : this.finishOp(53, 1); } readToken_lt() { let { pos: t } = this.state, r = this.input.charCodeAt(t + 1); if (r === 60) { if (this.input.charCodeAt(t + 2) === 61) { this.finishOp(30, 3); return; } this.finishOp(51, 2); return; } if (r === 61) { this.finishOp(49, 2); return; } this.finishOp(47, 1); } readToken_gt() { let { pos: t } = this.state, r = this.input.charCodeAt(t + 1); if (r === 62) { let i = this.input.charCodeAt(t + 2) === 62 ? 3 : 2; if (this.input.charCodeAt(t + i) === 61) { this.finishOp(30, i + 1); return; } this.finishOp(52, i); return; } if (r === 61) { this.finishOp(49, 2); return; } this.finishOp(48, 1); } readToken_eq_excl(t) { let r = this.input.charCodeAt(this.state.pos + 1); if (r === 61) { this.finishOp(46, this.input.charCodeAt(this.state.pos + 2) === 61 ? 3 : 2); return; } if (t === 61 && r === 62) { this.state.pos += 2, this.finishToken(19); return; } this.finishOp(t === 61 ? 29 : 35, 1); } readToken_question() { let t = this.input.charCodeAt(this.state.pos + 1), r = this.input.charCodeAt(this.state.pos + 2); t === 63 ? r === 61 ? this.finishOp(30, 3) : this.finishOp(40, 2) : t === 46 && !(r >= 48 && r <= 57) ? (this.state.pos += 2, this.finishToken( 18)) : (++this.state.pos, this.finishToken(17)); } getTokenFromCode(t) { switch (t) { case 46: this.readToken_dot(); return; case 40: ++this.state.pos, this.finishToken(10); return; case 41: ++this.state.pos, this.finishToken(11); return; case 59: ++this.state.pos, this.finishToken(13); return; case 44: ++this.state.pos, this.finishToken(12); return; case 91: if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) { if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") throw this.raise(L.TupleExpressionBarIncorrectStartSyntaxType, this.state.curPosition()); this.state.pos += 2, this.finishToken(2); } else ++this.state.pos, this.finishToken(0); return; case 93: ++this.state.pos, this.finishToken(3); return; case 123: if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) { if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") throw this.raise(L.RecordExpressionBarIncorrectStartSyntaxType, this.state.curPosition()); this.state.pos += 2, this.finishToken(6); } else ++this.state.pos, this.finishToken(5); return; case 125: ++this.state.pos, this.finishToken(8); return; case 58: this.hasPlugin("functionBind") && this.input.charCodeAt(this.state.pos + 1) === 58 ? this.finishOp(15, 2) : (++this.state.pos, this. finishToken(14)); return; case 63: this.readToken_question(); return; case 96: this.readTemplateToken(); return; case 48: { let r = this.input.charCodeAt(this.state.pos + 1); if (r === 120 || r === 88) { this.readRadixNumber(16); return; } if (r === 111 || r === 79) { this.readRadixNumber(8); return; } if (r === 98 || r === 66) { this.readRadixNumber(2); return; } } case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: this.readNumber(!1); return; case 34: case 39: this.readString(t); return; case 47: this.readToken_slash(); return; case 37: case 42: this.readToken_mult_modulo(t); return; case 124: case 38: this.readToken_pipe_amp(t); return; case 94: this.readToken_caret(); return; case 43: case 45: this.readToken_plus_min(t); return; case 60: this.readToken_lt(); return; case 62: this.readToken_gt(); return; case 61: case 33: this.readToken_eq_excl(t); return; case 126: this.finishOp(36, 1); return; case 64: this.readToken_atSign(); return; case 35: this.readToken_numberSign(); return; case 92: this.readWord(); return; default: if (Us(t)) { this.readWord(t); return; } } throw this.raise(L.InvalidOrUnexpectedToken, this.state.curPosition(), { unexpected: String.fromCodePoint(t) }); } finishOp(t, r) { let i = this.input.slice(this.state.pos, this.state.pos + r); this.state.pos += r, this.finishToken(t, i); } readRegexp() { let t = this.state.startLoc, r = this.state.start + 1, i, n, { pos: a } = this.state; for (; ; ++a) { if (a >= this.length) throw this.raise(L.UnterminatedRegExp, yi(t, 1)); let c = this.input.charCodeAt(a); if (ql(c)) throw this.raise(L.UnterminatedRegExp, yi(t, 1)); if (i) i = !1; else { if (c === 91) n = !0; else if (c === 93 && n) n = !1; else if (c === 47 && !n) break; i = c === 92; } } let o = this.input.slice(r, a); ++a; let u = "", l = /* @__PURE__ */ s(() => yi(t, a + 2 - r), "nextPos"); for (; a < this.length; ) { let c = this.codePointAtPos(a), f = String.fromCharCode(c); if (Q2e.has(c)) c === 118 ? u.includes("u") && this.raise(L.IncompatibleRegExpUVFlags, l()) : c === 117 && u.includes("v") && this.raise(L.IncompatibleRegExpUVFlags, l()), u.includes(f) && this.raise(L.DuplicateRegExpFlags, l()); else if (Ll(c) || c === 92) this.raise(L.MalformedRegExpFlags, l()); else break; ++a, u += f; } this.state.pos = a, this.finishToken(138, { pattern: o, flags: u }); } readInt(t, r, i = !1, n = !0) { let { n: a, pos: o } = L9(this.input, this.state.pos, this.state.lineStart, this.state.curLine, t, r, i, n, this.errorHandlers_readInt, !1); return this.state.pos = o, a; } readRadixNumber(t) { let r = this.state.pos, i = this.state.curPosition(), n = !1; this.state.pos += 2; let a = this.readInt(t); a == null && this.raise(L.InvalidDigit, yi(i, 2), { radix: t }); let o = this.input.charCodeAt(this.state.pos); if (o === 110) ++this.state.pos, n = !0; else if (o === 109) throw this.raise(L.InvalidDecimal, i); if (Us(this.codePointAtPos(this.state.pos))) throw this.raise(L.NumberIdentifier, this.state.curPosition()); if (n) { let u = this.input.slice(r, this.state.pos).replace(/[_n]/g, ""); this.finishToken(136, u); return; } this.finishToken(135, a); } readNumber(t) { let r = this.state.pos, i = this.state.curPosition(), n = !1, a = !1, o = !1, u = !1; !t && this.readInt(10) === null && this.raise(L.InvalidNumber, this.state.curPosition()); let l = this.state.pos - r >= 2 && this.input.charCodeAt(r) === 48; if (l) { let d = this.input.slice(r, this.state.pos); if (this.recordStrictModeErrors(L.StrictOctalLiteral, i), !this.state.strict) { let y = d.indexOf("_"); y > 0 && this.raise(L.ZeroDigitNumericSeparator, yi(i, y)); } u = l && !/[89]/.test(d); } let c = this.input.charCodeAt(this.state.pos); if (c === 46 && !u && (++this.state.pos, this.readInt(10), n = !0, c = this.input.charCodeAt(this.state.pos)), (c === 69 || c === 101) && !u && (c = this.input.charCodeAt(++this.state.pos), (c === 43 || c === 45) && ++this.state.pos, this.readInt(10) === null && this.raise( L.InvalidOrMissingExponent, i), n = !0, o = !0, c = this.input.charCodeAt(this.state.pos)), c === 110 && ((n || l) && this.raise(L.InvalidBigIntLiteral, i), ++this.state.pos, a = !0), c === 109) { this.expectPlugin("decimal", this.state.curPosition()), (o || l) && this.raise(L.InvalidDecimal, i), ++this.state.pos; var f = !0; } if (Us(this.codePointAtPos(this.state.pos))) throw this.raise(L.NumberIdentifier, this.state.curPosition()); let m = this.input.slice(r, this.state.pos).replace(/[_mn]/g, ""); if (a) { this.finishToken(136, m); return; } if (f) { this.finishToken(137, m); return; } let h = u ? parseInt(m, 8) : parseFloat(m); this.finishToken(135, h); } readCodePoint(t) { let { code: r, pos: i } = q9(this.input, this.state.pos, this.state.lineStart, this.state.curLine, t, this.errorHandlers_readCodePoint); return this.state.pos = i, r; } readString(t) { let { str: r, pos: i, curLine: n, lineStart: a } = S9(t === 34 ? "double" : "single", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_string); this.state.pos = i + 1, this.state.lineStart = a, this.state.curLine = n, this.finishToken(134, r); } readTemplateContinuation() { this.match(8) || this.unexpected(null, 8), this.state.pos--, this.readTemplateToken(); } readTemplateToken() { let t = this.input[this.state.pos], { str: r, firstInvalidLoc: i, pos: n, curLine: a, lineStart: o } = S9("template", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_template); this.state.pos = n + 1, this.state.lineStart = o, this.state.curLine = a, i && (this.state.firstInvalidTemplateEscapePos = new rs(i.curLine, i.pos - i.lineStart, this.sourceToOffsetPos(i.pos))), this.input.codePointAt(n) === 96 ? this.finishToken(24, i ? null : t + r + "`") : (this.state.pos++, this.finishToken(25, i ? null : t + r + "${")); } recordStrictModeErrors(t, r) { let i = r.index; this.state.strict && !this.state.strictErrors.has(i) ? this.raise(t, r) : this.state.strictErrors.set(i, [t, r]); } readWord1(t) { this.state.containsEsc = !1; let r = "", i = this.state.pos, n = this.state.pos; for (t !== void 0 && (this.state.pos += t <= 65535 ? 1 : 2); this.state.pos < this.length; ) { let a = this.codePointAtPos(this.state.pos); if (Ll(a)) this.state.pos += a <= 65535 ? 1 : 2; else if (a === 92) { this.state.containsEsc = !0, r += this.input.slice(n, this.state.pos); let o = this.state.curPosition(), u = this.state.pos === i ? Us : Ll; if (this.input.charCodeAt(++this.state.pos) !== 117) { this.raise(L.MissingUnicodeEscape, this.state.curPosition()), n = this.state.pos - 1; continue; } ++this.state.pos; let l = this.readCodePoint(!0); l !== null && (u(l) || this.raise(L.EscapedCharNotAnIdentifier, o), r += String.fromCodePoint(l)), n = this.state.pos; } else break; } return r + this.input.slice(n, this.state.pos); } readWord(t) { let r = this.readWord1(t), i = mC.get(r); i !== void 0 ? this.finishToken(i, qa(i)) : this.finishToken(132, r); } checkKeywordEscapes() { let { type: t } = this.state; EC(t) && this.state.containsEsc && this.raise(L.InvalidEscapedReservedWord, this.state.startLoc, { reservedWord: qa(t) }); } raise(t, r, i = {}) { let n = r instanceof rs ? r : r.loc.start, a = t(n, i); if (!(this.optionFlags & 2048)) throw a; return this.isLookahead || this.state.errors.push(a), a; } raiseOverwrite(t, r, i = {}) { let n = r instanceof rs ? r : r.loc.start, a = n.index, o = this.state.errors; for (let u = o.length - 1; u >= 0; u--) { let l = o[u]; if (l.loc.index === a) return o[u] = t(n, i); if (l.loc.index < a) break; } return this.raise(t, r, i); } updateContext(t) { } unexpected(t, r) { throw this.raise(L.UnexpectedToken, t ?? this.state.startLoc, { expected: r ? qa(r) : null }); } expectPlugin(t, r) { if (this.hasPlugin(t)) return !0; throw this.raise(L.MissingPlugin, r ?? this.state.startLoc, { missingPlugin: [t] }); } expectOnePlugin(t) { if (!t.some((r) => this.hasPlugin(r))) throw this.raise(L.MissingOneOfPlugins, this.state.startLoc, { missingPlugin: t }); } errorBuilder(t) { return (r, i, n) => { this.raise(t, Id(r, i, n)); }; } }, nC = class { static { s(this, "ClassScope"); } constructor() { this.privateNames = /* @__PURE__ */ new Set(), this.loneAccessors = /* @__PURE__ */ new Map(), this.undefinedPrivateNames = /* @__PURE__ */ new Map(); } }, sC = class { static { s(this, "ClassScopeHandler"); } constructor(t) { this.parser = void 0, this.stack = [], this.undefinedPrivateNames = /* @__PURE__ */ new Map(), this.parser = t; } current() { return this.stack[this.stack.length - 1]; } enter() { this.stack.push(new nC()); } exit() { let t = this.stack.pop(), r = this.current(); for (let [i, n] of Array.from(t.undefinedPrivateNames)) r ? r.undefinedPrivateNames.has(i) || r.undefinedPrivateNames.set(i, n) : this.parser.raise(L.InvalidPrivateFieldResolution, n, { identifierName: i }); } declarePrivateName(t, r, i) { let { privateNames: n, loneAccessors: a, undefinedPrivateNames: o } = this.current(), u = n.has(t); if (r & 3) { let l = u && a.get(t); if (l) { let c = l & 4, f = r & 4, m = l & 3, h = r & 3; u = m === h || c !== f, u || a.delete(t); } else u || a.set(t, r); } u && this.parser.raise(L.PrivateNameRedeclaration, i, { identifierName: t }), n.add(t), o.delete(t); } usePrivateName(t, r) { let i; for (i of this.stack) if (i.privateNames.has(t)) return; i ? i.undefinedPrivateNames.set(t, r) : this.parser.raise(L.InvalidPrivateFieldResolution, r, { identifierName: t }); } }, $l = class { static { s(this, "ExpressionScope"); } constructor(t = 0) { this.type = t; } canBeArrowParameterDeclaration() { return this.type === 2 || this.type === 1; } isCertainlyParameterDeclaration() { return this.type === 3; } }, Uy = class extends $l { static { s(this, "ArrowHeadParsingScope"); } constructor(t) { super(t), this.declarationErrors = /* @__PURE__ */ new Map(); } recordDeclarationError(t, r) { let i = r.index; this.declarationErrors.set(i, [t, r]); } clearDeclarationError(t) { this.declarationErrors.delete(t); } iterateErrors(t) { this.declarationErrors.forEach(t); } }, aC = class { static { s(this, "ExpressionScopeHandler"); } constructor(t) { this.parser = void 0, this.stack = [new $l()], this.parser = t; } enter(t) { this.stack.push(t); } exit() { this.stack.pop(); } recordParameterInitializerError(t, r) { let i = r.loc.start, { stack: n } = this, a = n.length - 1, o = n[a]; for (; !o.isCertainlyParameterDeclaration(); ) { if (o.canBeArrowParameterDeclaration()) o.recordDeclarationError(t, i); else return; o = n[--a]; } this.parser.raise(t, i); } recordArrowParameterBindingError(t, r) { let { stack: i } = this, n = i[i.length - 1], a = r.loc.start; if (n.isCertainlyParameterDeclaration()) this.parser.raise(t, a); else if (n.canBeArrowParameterDeclaration()) n.recordDeclarationError(t, a); else return; } recordAsyncArrowParametersError(t) { let { stack: r } = this, i = r.length - 1, n = r[i]; for (; n.canBeArrowParameterDeclaration(); ) n.type === 2 && n.recordDeclarationError(L.AwaitBindingIdentifier, t), n = r[--i]; } validateAsPattern() { let { stack: t } = this, r = t[t.length - 1]; r.canBeArrowParameterDeclaration() && r.iterateErrors(([i, n]) => { this.parser.raise(i, n); let a = t.length - 2, o = t[a]; for (; o.canBeArrowParameterDeclaration(); ) o.clearDeclarationError(n.index), o = t[--a]; }); } }; function ePe() { return new $l(3); } s(ePe, "newParameterDeclarationScope"); function tPe() { return new Uy(1); } s(tPe, "newArrowHeadScope"); function rPe() { return new Uy(2); } s(rPe, "newAsyncArrowScope"); function U9() { return new $l(); } s(U9, "newExpressionScope"); var oC = class { static { s(this, "ProductionParameterHandler"); } constructor() { this.stacks = []; } enter(t) { this.stacks.push(t); } exit() { this.stacks.pop(); } currentFlags() { return this.stacks[this.stacks.length - 1]; } get hasAwait() { return (this.currentFlags() & 2) > 0; } get hasYield() { return (this.currentFlags() & 1) > 0; } get hasReturn() { return (this.currentFlags() & 4) > 0; } get hasIn() { return (this.currentFlags() & 8) > 0; } }; function jy(e, t) { return (e ? 2 : 0) | (t ? 1 : 0); } s(jy, "functionFlags"); var uC = class extends iC { static { s(this, "UtilParser"); } addExtra(t, r, i, n = !0) { if (!t) return; let { extra: a } = t; a == null && (a = {}, t.extra = a), n ? a[r] = i : Object.defineProperty(a, r, { enumerable: n, value: i }); } isContextual(t) { return this.state.type === t && !this.state.containsEsc; } isUnparsedContextual(t, r) { let i = t + r.length; if (this.input.slice(t, i) === r) { let n = this.input.charCodeAt(i); return !(Ll(n) || (n & 64512) === 55296); } return !1; } isLookaheadContextual(t) { let r = this.nextTokenStart(); return this.isUnparsedContextual(r, t); } eatContextual(t) { return this.isContextual(t) ? (this.next(), !0) : !1; } expectContextual(t, r) { if (!this.eatContextual(t)) { if (r != null) throw this.raise(r, this.state.startLoc); this.unexpected(null, t); } } canInsertSemicolon() { return this.match(140) || this.match(8) || this.hasPrecedingLineBreak(); } hasPrecedingLineBreak() { return E9(this.input, this.offsetToSourcePos(this.state.lastTokEndLoc.index), this.state.start); } hasFollowingLineBreak() { return E9(this.input, this.state.end, this.nextTokenStart()); } isLineTerminator() { return this.eat(13) || this.canInsertSemicolon(); } semicolon(t = !0) { (t ? this.isLineTerminator() : this.eat(13)) || this.raise(L.MissingSemicolon, this.state.lastTokEndLoc); } expect(t, r) { this.eat(t) || this.unexpected(r, t); } tryParse(t, r = this.state.clone()) { let i = { node: null }; try { let n = t((a = null) => { throw i.node = a, i; }); if (this.state.errors.length > r.errors.length) { let a = this.state; return this.state = r, this.state.tokensLength = a.tokensLength, { node: n, error: a.errors[r.errors.length], thrown: !1, aborted: !1, failState: a }; } return { node: n, error: null, thrown: !1, aborted: !1, failState: null }; } catch (n) { let a = this.state; if (this.state = r, n instanceof SyntaxError) return { node: null, error: n, thrown: !0, aborted: !1, failState: a }; if (n === i) return { node: i.node, error: null, thrown: !1, aborted: !0, failState: a }; throw n; } } checkExpressionErrors(t, r) { if (!t) return !1; let { shorthandAssignLoc: i, doubleProtoLoc: n, privateKeyLoc: a, optionalParametersLoc: o } = t, u = !!i || !!n || !!o || !!a; if (!r) return u; i != null && this.raise(L.InvalidCoverInitializedName, i), n != null && this.raise(L.DuplicateProto, n), a != null && this.raise(L.UnexpectedPrivateField, a), o != null && this.unexpected(o); } isLiteralPropertyName() { return I9(this.state.type); } isPrivateName(t) { return t.type === "PrivateName"; } getPrivateNameSV(t) { return t.id.name; } hasPropertyAsPrivateName(t) { return (t.type === "MemberExpression" || t.type === "OptionalMemberExpression") && this.isPrivateName(t.property); } isObjectProperty(t) { return t.type === "ObjectProperty"; } isObjectMethod(t) { return t.type === "ObjectMethod"; } initializeScopes(t = this.options.sourceType === "module") { let r = this.state.labels; this.state.labels = []; let i = this.exportedIdentifiers; this.exportedIdentifiers = /* @__PURE__ */ new Set(); let n = this.inModule; this.inModule = t; let a = this.scope, o = this.getScopeHandler(); this.scope = new o(this, t); let u = this.prodParam; this.prodParam = new oC(); let l = this.classScope; this.classScope = new sC(this); let c = this.expressionScope; return this.expressionScope = new aC(this), () => { this.state.labels = r, this.exportedIdentifiers = i, this.inModule = n, this.scope = a, this.prodParam = u, this.classScope = l, this. expressionScope = c; }; } enterInitialScopes() { let t = 0; this.inModule && (t |= 2), this.optionFlags & 32 && (t |= 1), this.scope.enter(1), this.prodParam.enter(t); } checkDestructuringPrivate(t) { let { privateKeyLoc: r } = t; r !== null && this.expectPlugin("destructuringPrivate", r); } }, Ul = class { static { s(this, "ExpressionErrors"); } constructor() { this.shorthandAssignLoc = null, this.doubleProtoLoc = null, this.privateKeyLoc = null, this.optionalParametersLoc = null; } }, Vl = class { static { s(this, "Node"); } constructor(t, r, i) { this.type = "", this.start = r, this.end = 0, this.loc = new Wl(i), t?.optionFlags & 128 && (this.range = [r, 0]), t != null && t.filename && (this.loc.filename = t.filename); } }, TC = Vl.prototype; TC.__clone = function() { let e = new Vl(void 0, this.start, this.loc.start), t = Object.keys(this); for (let r = 0, i = t.length; r < i; r++) { let n = t[r]; n !== "leadingComments" && n !== "trailingComments" && n !== "innerComments" && (e[n] = this[n]); } return e; }; function iPe(e) { return $s(e); } s(iPe, "clonePlaceholder"); function $s(e) { let { type: t, start: r, end: i, loc: n, range: a, extra: o, name: u } = e, l = Object.create(TC); return l.type = t, l.start = r, l.end = i, l.loc = n, l.range = a, l.extra = o, l.name = u, t === "Placeholder" && (l.expectedNode = e.expectedNode), l; } s($s, "cloneIdentifier"); function nPe(e) { let { type: t, start: r, end: i, loc: n, range: a, extra: o } = e; if (t === "Placeholder") return iPe(e); let u = Object.create(TC); return u.type = t, u.start = r, u.end = i, u.loc = n, u.range = a, e.raw !== void 0 ? u.raw = e.raw : u.extra = o, u.value = e.value, u; } s(nPe, "cloneStringLiteral"); var lC = class extends uC { static { s(this, "NodeUtils"); } startNode() { let t = this.state.startLoc; return new Vl(this, t.index, t); } startNodeAt(t) { return new Vl(this, t.index, t); } startNodeAtNode(t) { return this.startNodeAt(t.loc.start); } finishNode(t, r) { return this.finishNodeAt(t, r, this.state.lastTokEndLoc); } finishNodeAt(t, r, i) { return t.type = r, t.end = i.index, t.loc.end = i, this.optionFlags & 128 && (t.range[1] = i.index), this.optionFlags & 4096 && this.processComment( t), t; } resetStartLocation(t, r) { t.start = r.index, t.loc.start = r, this.optionFlags & 128 && (t.range[0] = r.index); } resetEndLocation(t, r = this.state.lastTokEndLoc) { t.end = r.index, t.loc.end = r, this.optionFlags & 128 && (t.range[1] = r.index); } resetStartLocationFromNode(t, r) { this.resetStartLocation(t, r.loc.start); } }, sPe = /* @__PURE__ */ new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "sta\ tic", "string", "true", "typeof", "void"]), qe = Ws`flow`({ AmbiguousConditionalArrow: "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.", AmbiguousDeclareModuleKind: "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since \ they are either an ES module or they are a CommonJS module.", AssignReservedType: /* @__PURE__ */ s(({ reservedType: e }) => `Cannot overwrite reserved type ${e}.`, "AssignReservedType"), DeclareClassElement: "The `declare` modifier can only appear on class fields.", DeclareClassFieldInitializer: "Initializers are not allowed in fields with the `declare` modifier.", DuplicateDeclareModuleExports: "Duplicate `declare module.exports` statement.", EnumBooleanMemberNotInitialized: /* @__PURE__ */ s(({ memberName: e, enumName: t }) => `Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`, "EnumBooleanMem\ berNotInitialized"), EnumDuplicateMemberName: /* @__PURE__ */ s(({ memberName: e, enumName: t }) => `Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`, "EnumDuplicateMemberN\ ame"), EnumInconsistentMemberValues: /* @__PURE__ */ s(({ enumName: e }) => `Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, num\ bers, or strings) for all member initializers.`, "EnumInconsistentMemberValues"), EnumInvalidExplicitType: /* @__PURE__ */ s(({ invalidEnumType: e, enumName: t }) => `Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`, "EnumInvalidEx\ plicitType"), EnumInvalidExplicitTypeUnknownSupplied: /* @__PURE__ */ s(({ enumName: e }) => `Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`, "EnumInvalidEx\ plicitTypeUnknownSupplied"), EnumInvalidMemberInitializerPrimaryType: /* @__PURE__ */ s(({ enumName: e, memberName: t, explicitType: r }) => `Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`, "EnumInvalidMemberInitializerPrimar\ yType"), EnumInvalidMemberInitializerSymbolType: /* @__PURE__ */ s(({ enumName: e, memberName: t }) => `Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`, "EnumInvalidMemberInitializerSymbolType"), EnumInvalidMemberInitializerUnknownType: /* @__PURE__ */ s(({ enumName: e, memberName: t }) => `The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`, "EnumInv\ alidMemberInitializerUnknownType"), EnumInvalidMemberName: /* @__PURE__ */ s(({ enumName: e, memberName: t, suggestion: r }) => `Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\ \`.`, "EnumInvalidMemberName"), EnumNumberMemberNotInitialized: /* @__PURE__ */ s(({ enumName: e, memberName: t }) => `Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`, "EnumNumberMemberNotInitialized"), EnumStringMemberInconsistentlyInitialized: /* @__PURE__ */ s(({ enumName: e }) => `String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`, "EnumStringMemb\ erInconsistentlyInitialized"), GetterMayNotHaveThisParam: "A getter cannot have a `this` parameter.", ImportReflectionHasImportType: "An `import module` declaration can not use `type` or `typeof` keyword.", ImportTypeShorthandOnlyInPureImport: "The `type` and `typeof` keywords on named imports can only be used on regular `import` statements.\ It cannot be used with `import type` or `import typeof` statements.", InexactInsideExact: "Explicit inexact syntax cannot appear inside an explicit exact object type.", InexactInsideNonObject: "Explicit inexact syntax cannot appear in class or interface definitions.", InexactVariance: "Explicit inexact syntax cannot have variance.", InvalidNonTypeImportInDeclareModule: "Imports within a `declare module` body must always be `import type` or `import typeof`.", MissingTypeParamDefault: "Type parameter declaration needs a default, since a preceding type parameter declaration has a default.", NestedDeclareModule: "`declare module` cannot be used inside another `declare module`.", NestedFlowComment: "Cannot have a flow comment inside another flow comment.", PatternIsOptional: Object.assign({ message: "A binding pattern parameter cannot be optional in an implementation signature." }, { reasonCode: "OptionalBindingPattern" }), SetterMayNotHaveThisParam: "A setter cannot have a `this` parameter.", SpreadVariance: "Spread properties cannot have variance.", ThisParamAnnotationRequired: "A type annotation is required for the `this` parameter.", ThisParamBannedInConstructor: "Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.", ThisParamMayNotBeOptional: "The `this` parameter cannot be optional.", ThisParamMustBeFirst: "The `this` parameter must be the first function parameter.", ThisParamNoDefault: "The `this` parameter may not have a default value.", TypeBeforeInitializer: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`\ .", TypeCastInPattern: "The type cast expression is expected to be wrapped with parenthesis.", UnexpectedExplicitInexactInObject: "Explicit inexact syntax must appear at the end of an inexact object.", UnexpectedReservedType: /* @__PURE__ */ s(({ reservedType: e }) => `Unexpected reserved type ${e}.`, "UnexpectedReservedType"), UnexpectedReservedUnderscore: "`_` is only allowed as a type argument to call or new.", UnexpectedSpaceBetweenModuloChecks: "Spaces between `%` and `checks` are not allowed here.", UnexpectedSpreadType: "Spread operator cannot appear in class or interface definitions.", UnexpectedSubtractionOperand: 'Unexpected token, expected "number" or "bigint".', UnexpectedTokenAfterTypeParameter: "Expected an arrow function after this type parameter declaration.", UnexpectedTypeParameterBeforeAsyncArrowFunction: "Type parameters must come after the async keyword, e.g. instead of ` async () => {}\ `, use `async () => {}`.", UnsupportedDeclareExportKind: /* @__PURE__ */ s(({ unsupportedExportKind: e, suggestion: t }) => `\`declare export ${e}\` is not supported. Use \`${t}\` instead.`, "UnsupportedDeclareExportKind"), UnsupportedStatementInDeclareModule: "Only declares and type imports are allowed inside declare module.", UnterminatedFlowComment: "Unterminated flow-comment." }); function aPe(e) { return e.type === "DeclareExportAllDeclaration" || e.type === "DeclareExportDeclaration" && (!e.declaration || e.declaration.type !== "T\ ypeAlias" && e.declaration.type !== "InterfaceDeclaration"); } s(aPe, "isEsModuleType"); function T9(e) { return e.importKind === "type" || e.importKind === "typeof"; } s(T9, "hasTypeImportKind"); var oPe = { const: "declare export var", let: "declare export var", type: "export type", interface: "export interface" }; function uPe(e, t) { let r = [], i = []; for (let n = 0; n < e.length; n++) (t(e[n], n, e) ? r : i).push(e[n]); return [r, i]; } s(uPe, "partition"); var lPe = /\*?\s*@((?:no)?flow)\b/, cPe = /* @__PURE__ */ s((e) => class extends e { static { s(this, "FlowParserMixin"); } constructor(...r) { super(...r), this.flowPragma = void 0; } getScopeHandler() { return ZT; } shouldParseTypes() { return this.getPluginOption("flow", "all") || this.flowPragma === "flow"; } finishToken(r, i) { r !== 134 && r !== 13 && r !== 28 && this.flowPragma === void 0 && (this.flowPragma = null), super.finishToken(r, i); } addComment(r) { if (this.flowPragma === void 0) { let i = lPe.exec(r.value); if (i) if (i[1] === "flow") this.flowPragma = "flow"; else if (i[1] === "noflow") this.flowPragma = "noflow"; else throw new Error("Unexpected flow pragma"); } super.addComment(r); } flowParseTypeInitialiser(r) { let i = this.state.inType; this.state.inType = !0, this.expect(r || 14); let n = this.flowParseType(); return this.state.inType = i, n; } flowParsePredicate() { let r = this.startNode(), i = this.state.startLoc; return this.next(), this.expectContextual(110), this.state.lastTokStartLoc.index > i.index + 1 && this.raise(qe.UnexpectedSpaceBetweenModuloChecks, i), this.eat(10) ? (r.value = super.parseExpression(), this.expect(11), this.finishNode(r, "DeclaredPredicate")) : this.finishNode(r, "\ InferredPredicate"); } flowParseTypeAndPredicateInitialiser() { let r = this.state.inType; this.state.inType = !0, this.expect(14); let i = null, n = null; return this.match(54) ? (this.state.inType = r, n = this.flowParsePredicate()) : (i = this.flowParseType(), this.state.inType = r, this. match(54) && (n = this.flowParsePredicate())), [i, n]; } flowParseDeclareClass(r) { return this.next(), this.flowParseInterfaceish(r, !0), this.finishNode(r, "DeclareClass"); } flowParseDeclareFunction(r) { this.next(); let i = r.id = this.parseIdentifier(), n = this.startNode(), a = this.startNode(); this.match(47) ? n.typeParameters = this.flowParseTypeParameterDeclaration() : n.typeParameters = null, this.expect(10); let o = this.flowParseFunctionTypeParams(); return n.params = o.params, n.rest = o.rest, n.this = o._this, this.expect(11), [n.returnType, r.predicate] = this.flowParseTypeAndPredicateInitialiser(), a.typeAnnotation = this.finishNode(n, "FunctionTypeAnnotation"), i.typeAnnotation = this.finishNode(a, "TypeAnnotation"), this.resetEndLocation( i), this.semicolon(), this.scope.declareName(r.id.name, 2048, r.id.loc.start), this.finishNode(r, "DeclareFunction"); } flowParseDeclare(r, i) { if (this.match(80)) return this.flowParseDeclareClass(r); if (this.match(68)) return this.flowParseDeclareFunction(r); if (this.match(74)) return this.flowParseDeclareVariable(r); if (this.eatContextual(127)) return this.match(16) ? this.flowParseDeclareModuleExports(r) : (i && this.raise(qe.NestedDeclareModule, this.state.lastTokStartLoc), this.flowParseDeclareModule(r)); if (this.isContextual(130)) return this.flowParseDeclareTypeAlias(r); if (this.isContextual(131)) return this.flowParseDeclareOpaqueType(r); if (this.isContextual(129)) return this.flowParseDeclareInterface(r); if (this.match(82)) return this.flowParseDeclareExportDeclaration(r, i); this.unexpected(); } flowParseDeclareVariable(r) { return this.next(), r.id = this.flowParseTypeAnnotatableIdentifier(!0), this.scope.declareName(r.id.name, 5, r.id.loc.start), this.semicolon(), this.finishNode(r, "DeclareVariable"); } flowParseDeclareModule(r) { this.scope.enter(0), this.match(134) ? r.id = super.parseExprAtom() : r.id = this.parseIdentifier(); let i = r.body = this.startNode(), n = i.body = []; for (this.expect(5); !this.match(8); ) { let u = this.startNode(); this.match(83) ? (this.next(), !this.isContextual(130) && !this.match(87) && this.raise(qe.InvalidNonTypeImportInDeclareModule, this. state.lastTokStartLoc), super.parseImport(u)) : (this.expectContextual(125, qe.UnsupportedStatementInDeclareModule), u = this.flowParseDeclare( u, !0)), n.push(u); } this.scope.exit(), this.expect(8), this.finishNode(i, "BlockStatement"); let a = null, o = !1; return n.forEach((u) => { aPe(u) ? (a === "CommonJS" && this.raise(qe.AmbiguousDeclareModuleKind, u), a = "ES") : u.type === "DeclareModuleExports" && (o && this. raise(qe.DuplicateDeclareModuleExports, u), a === "ES" && this.raise(qe.AmbiguousDeclareModuleKind, u), a = "CommonJS", o = !0); }), r.kind = a || "CommonJS", this.finishNode(r, "DeclareModule"); } flowParseDeclareExportDeclaration(r, i) { if (this.expect(82), this.eat(65)) return this.match(68) || this.match(80) ? r.declaration = this.flowParseDeclare(this.startNode()) : (r.declaration = this.flowParseType(), this.semicolon()), r.default = !0, this.finishNode(r, "DeclareExportDeclaration"); if (this.match(75) || this.isLet() || (this.isContextual(130) || this.isContextual(129)) && !i) { let n = this.state.value; throw this.raise(qe.UnsupportedDeclareExportKind, this.state.startLoc, { unsupportedExportKind: n, suggestion: oPe[n] }); } if (this.match(74) || this.match(68) || this.match(80) || this.isContextual(131)) return r.declaration = this.flowParseDeclare(this.startNode()), r.default = !1, this.finishNode(r, "DeclareExportDeclaration"); if (this.match(55) || this.match(5) || this.isContextual(129) || this.isContextual(130) || this.isContextual(131)) return r = this.parseExport(r, null), r.type === "ExportNamedDeclaration" && (r.type = "ExportDeclaration", r.default = !1, delete r. exportKind), r.type = "Declare" + r.type, r; this.unexpected(); } flowParseDeclareModuleExports(r) { return this.next(), this.expectContextual(111), r.typeAnnotation = this.flowParseTypeAnnotation(), this.semicolon(), this.finishNode(r, "DeclareModuleExports"); } flowParseDeclareTypeAlias(r) { this.next(); let i = this.flowParseTypeAlias(r); return i.type = "DeclareTypeAlias", i; } flowParseDeclareOpaqueType(r) { this.next(); let i = this.flowParseOpaqueType(r, !0); return i.type = "DeclareOpaqueType", i; } flowParseDeclareInterface(r) { return this.next(), this.flowParseInterfaceish(r, !1), this.finishNode(r, "DeclareInterface"); } flowParseInterfaceish(r, i) { if (r.id = this.flowParseRestrictedIdentifier(!i, !0), this.scope.declareName(r.id.name, i ? 17 : 8201, r.id.loc.start), this.match(47) ? r.typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.extends = [], this.eat(81)) do r.extends.push(this.flowParseInterfaceExtends()); while (!i && this.eat(12)); if (i) { if (r.implements = [], r.mixins = [], this.eatContextual(117)) do r.mixins.push(this.flowParseInterfaceExtends()); while (this.eat(12)); if (this.eatContextual(113)) do r.implements.push(this.flowParseInterfaceExtends()); while (this.eat(12)); } r.body = this.flowParseObjectType({ allowStatic: i, allowExact: !1, allowSpread: !1, allowProto: i, allowInexact: !1 }); } flowParseInterfaceExtends() { let r = this.startNode(); return r.id = this.flowParseQualifiedTypeIdentifier(), this.match(47) ? r.typeParameters = this.flowParseTypeParameterInstantiation() : r.typeParameters = null, this.finishNode(r, "InterfaceExtends"); } flowParseInterface(r) { return this.flowParseInterfaceish(r, !1), this.finishNode(r, "InterfaceDeclaration"); } checkNotUnderscore(r) { r === "_" && this.raise(qe.UnexpectedReservedUnderscore, this.state.startLoc); } checkReservedType(r, i, n) { sPe.has(r) && this.raise(n ? qe.AssignReservedType : qe.UnexpectedReservedType, i, { reservedType: r }); } flowParseRestrictedIdentifier(r, i) { return this.checkReservedType(this.state.value, this.state.startLoc, i), this.parseIdentifier(r); } flowParseTypeAlias(r) { return r.id = this.flowParseRestrictedIdentifier(!1, !0), this.scope.declareName(r.id.name, 8201, r.id.loc.start), this.match(47) ? r. typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.right = this.flowParseTypeInitialiser(29), this. semicolon(), this.finishNode(r, "TypeAlias"); } flowParseOpaqueType(r, i) { return this.expectContextual(130), r.id = this.flowParseRestrictedIdentifier(!0, !0), this.scope.declareName(r.id.name, 8201, r.id.loc. start), this.match(47) ? r.typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.supertype = null, this. match(14) && (r.supertype = this.flowParseTypeInitialiser(14)), r.impltype = null, i || (r.impltype = this.flowParseTypeInitialiser(29)), this.semicolon(), this.finishNode(r, "OpaqueType"); } flowParseTypeParameter(r = !1) { let i = this.state.startLoc, n = this.startNode(), a = this.flowParseVariance(), o = this.flowParseTypeAnnotatableIdentifier(); return n.name = o.name, n.variance = a, n.bound = o.typeAnnotation, this.match(29) ? (this.eat(29), n.default = this.flowParseType()) : r && this.raise(qe.MissingTypeParamDefault, i), this.finishNode(n, "TypeParameter"); } flowParseTypeParameterDeclaration() { let r = this.state.inType, i = this.startNode(); i.params = [], this.state.inType = !0, this.match(47) || this.match(143) ? this.next() : this.unexpected(); let n = !1; do { let a = this.flowParseTypeParameter(n); i.params.push(a), a.default && (n = !0), this.match(48) || this.expect(12); } while (!this.match(48)); return this.expect(48), this.state.inType = r, this.finishNode(i, "TypeParameterDeclaration"); } flowInTopLevelContext(r) { if (this.curContext() !== Et.brace) { let i = this.state.context; this.state.context = [i[0]]; try { return r(); } finally { this.state.context = i; } } else return r(); } flowParseTypeParameterInstantiationInExpression() { if (this.reScan_lt() === 47) return this.flowParseTypeParameterInstantiation(); } flowParseTypeParameterInstantiation() { let r = this.startNode(), i = this.state.inType; return this.state.inType = !0, r.params = [], this.flowInTopLevelContext(() => { this.expect(47); let n = this.state.noAnonFunctionType; for (this.state.noAnonFunctionType = !1; !this.match(48); ) r.params.push(this.flowParseType()), this.match(48) || this.expect(12); this.state.noAnonFunctionType = n; }), this.state.inType = i, !this.state.inType && this.curContext() === Et.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode( r, "TypeParameterInstantiation"); } flowParseTypeParameterInstantiationCallOrNew() { if (this.reScan_lt() !== 47) return; let r = this.startNode(), i = this.state.inType; for (r.params = [], this.state.inType = !0, this.expect(47); !this.match(48); ) r.params.push(this.flowParseTypeOrImplicitInstantiation()), this.match(48) || this.expect(12); return this.expect(48), this.state.inType = i, this.finishNode(r, "TypeParameterInstantiation"); } flowParseInterfaceType() { let r = this.startNode(); if (this.expectContextual(129), r.extends = [], this.eat(81)) do r.extends.push(this.flowParseInterfaceExtends()); while (this.eat(12)); return r.body = this.flowParseObjectType({ allowStatic: !1, allowExact: !1, allowSpread: !1, allowProto: !1, allowInexact: !1 }), this.finishNode(r, "InterfaceTypeAnnotation"); } flowParseObjectPropertyKey() { return this.match(135) || this.match(134) ? super.parseExprAtom() : this.parseIdentifier(!0); } flowParseObjectTypeIndexer(r, i, n) { return r.static = i, this.lookahead().type === 14 ? (r.id = this.flowParseObjectPropertyKey(), r.key = this.flowParseTypeInitialiser()) : (r.id = null, r.key = this.flowParseType()), this.expect(3), r.value = this.flowParseTypeInitialiser(), r.variance = n, this.finishNode( r, "ObjectTypeIndexer"); } flowParseObjectTypeInternalSlot(r, i) { return r.static = i, r.id = this.flowParseObjectPropertyKey(), this.expect(3), this.expect(3), this.match(47) || this.match(10) ? (r.method = !0, r.optional = !1, r.value = this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))) : (r.method = !1, this.eat(17) && (r. optional = !0), r.value = this.flowParseTypeInitialiser()), this.finishNode(r, "ObjectTypeInternalSlot"); } flowParseObjectTypeMethodish(r) { for (r.params = [], r.rest = null, r.typeParameters = null, r.this = null, this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration()), this.expect(10), this.match(78) && (r.this = this.flowParseFunctionTypeParam(!0), r.this.name = null, this.match(11) || this.expect(12)); !this. match(11) && !this.match(21); ) r.params.push(this.flowParseFunctionTypeParam(!1)), this.match(11) || this.expect(12); return this.eat(21) && (r.rest = this.flowParseFunctionTypeParam(!1)), this.expect(11), r.returnType = this.flowParseTypeInitialiser(), this.finishNode(r, "FunctionTypeAnnotation"); } flowParseObjectTypeCallProperty(r, i) { let n = this.startNode(); return r.static = i, r.value = this.flowParseObjectTypeMethodish(n), this.finishNode(r, "ObjectTypeCallProperty"); } flowParseObjectType({ allowStatic: r, allowExact: i, allowSpread: n, allowProto: a, allowInexact: o }) { let u = this.state.inType; this.state.inType = !0; let l = this.startNode(); l.callProperties = [], l.properties = [], l.indexers = [], l.internalSlots = []; let c, f, m = !1; for (i && this.match(6) ? (this.expect(6), c = 9, f = !0) : (this.expect(5), c = 8, f = !1), l.exact = f; !this.match(c); ) { let d = !1, y = null, p = null, g = this.startNode(); if (a && this.isContextual(118)) { let D = this.lookahead(); D.type !== 14 && D.type !== 17 && (this.next(), y = this.state.startLoc, r = !1); } if (r && this.isContextual(106)) { let D = this.lookahead(); D.type !== 14 && D.type !== 17 && (this.next(), d = !0); } let b = this.flowParseVariance(); if (this.eat(0)) y != null && this.unexpected(y), this.eat(0) ? (b && this.unexpected(b.loc.start), l.internalSlots.push(this.flowParseObjectTypeInternalSlot( g, d))) : l.indexers.push(this.flowParseObjectTypeIndexer(g, d, b)); else if (this.match(10) || this.match(47)) y != null && this.unexpected(y), b && this.unexpected(b.loc.start), l.callProperties.push(this.flowParseObjectTypeCallProperty(g, d)); else { let D = "init"; if (this.isContextual(99) || this.isContextual(104)) { let S = this.lookahead(); I9(S.type) && (D = this.state.value, this.next()); } let v = this.flowParseObjectTypeProperty(g, d, y, b, D, n, o ?? !f); v === null ? (m = !0, p = this.state.lastTokStartLoc) : l.properties.push(v); } this.flowObjectTypeSemicolon(), p && !this.match(8) && !this.match(9) && this.raise(qe.UnexpectedExplicitInexactInObject, p); } this.expect(c), n && (l.inexact = m); let h = this.finishNode(l, "ObjectTypeAnnotation"); return this.state.inType = u, h; } flowParseObjectTypeProperty(r, i, n, a, o, u, l) { if (this.eat(21)) return this.match(12) || this.match(13) || this.match(8) || this.match(9) ? (u ? l || this.raise(qe.InexactInsideExact, this.state.lastTokStartLoc) : this.raise(qe.InexactInsideNonObject, this.state.lastTokStartLoc), a && this.raise(qe.InexactVariance, a), null) : (u || this.raise( qe.UnexpectedSpreadType, this.state.lastTokStartLoc), n != null && this.unexpected(n), a && this.raise(qe.SpreadVariance, a), r.argument = this.flowParseType(), this.finishNode(r, "ObjectTypeSpreadProperty")); { r.key = this.flowParseObjectPropertyKey(), r.static = i, r.proto = n != null, r.kind = o; let c = !1; return this.match(47) || this.match(10) ? (r.method = !0, n != null && this.unexpected(n), a && this.unexpected(a.loc.start), r.value = this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)), (o === "get" || o === "set") && this.flowCheckGetterSetterParams(r), !u && r.key.name === "constructor" && r.value.this && this.raise(qe.ThisParamBannedInConstructor, r.value.this)) : (o !== "init" && this. unexpected(), r.method = !1, this.eat(17) && (c = !0), r.value = this.flowParseTypeInitialiser(), r.variance = a), r.optional = c, this. finishNode(r, "ObjectTypeProperty"); } } flowCheckGetterSetterParams(r) { let i = r.kind === "get" ? 0 : 1, n = r.value.params.length + (r.value.rest ? 1 : 0); r.value.this && this.raise(r.kind === "get" ? qe.GetterMayNotHaveThisParam : qe.SetterMayNotHaveThisParam, r.value.this), n !== i && this. raise(r.kind === "get" ? L.BadGetterArity : L.BadSetterArity, r), r.kind === "set" && r.value.rest && this.raise(L.BadSetterRestParameter, r); } flowObjectTypeSemicolon() { !this.eat(13) && !this.eat(12) && !this.match(8) && !this.match(9) && this.unexpected(); } flowParseQualifiedTypeIdentifier(r, i) { r ?? (r = this.state.startLoc); let n = i || this.flowParseRestrictedIdentifier(!0); for (; this.eat(16); ) { let a = this.startNodeAt(r); a.qualification = n, a.id = this.flowParseRestrictedIdentifier(!0), n = this.finishNode(a, "QualifiedTypeIdentifier"); } return n; } flowParseGenericType(r, i) { let n = this.startNodeAt(r); return n.typeParameters = null, n.id = this.flowParseQualifiedTypeIdentifier(r, i), this.match(47) && (n.typeParameters = this.flowParseTypeParameterInstantiation()), this.finishNode(n, "GenericTypeAnnotation"); } flowParseTypeofType() { let r = this.startNode(); return this.expect(87), r.argument = this.flowParsePrimaryType(), this.finishNode(r, "TypeofTypeAnnotation"); } flowParseTupleType() { let r = this.startNode(); for (r.types = [], this.expect(0); this.state.pos < this.length && !this.match(3) && (r.types.push(this.flowParseType()), !this.match( 3)); ) this.expect(12); return this.expect(3), this.finishNode(r, "TupleTypeAnnotation"); } flowParseFunctionTypeParam(r) { let i = null, n = !1, a = null, o = this.startNode(), u = this.lookahead(), l = this.state.type === 78; return u.type === 14 || u.type === 17 ? (l && !r && this.raise(qe.ThisParamMustBeFirst, o), i = this.parseIdentifier(l), this.eat(17) && (n = !0, l && this.raise(qe.ThisParamMayNotBeOptional, o)), a = this.flowParseTypeInitialiser()) : a = this.flowParseType(), o.name = i, o.optional = n, o.typeAnnotation = a, this.finishNode(o, "FunctionTypeParam"); } reinterpretTypeAsFunctionTypeParam(r) { let i = this.startNodeAt(r.loc.start); return i.name = null, i.optional = !1, i.typeAnnotation = r, this.finishNode(i, "FunctionTypeParam"); } flowParseFunctionTypeParams(r = []) { let i = null, n = null; for (this.match(78) && (n = this.flowParseFunctionTypeParam(!0), n.name = null, this.match(11) || this.expect(12)); !this.match(11) && !this.match(21); ) r.push(this.flowParseFunctionTypeParam(!1)), this.match(11) || this.expect(12); return this.eat(21) && (i = this.flowParseFunctionTypeParam(!1)), { params: r, rest: i, _this: n }; } flowIdentToTypeAnnotation(r, i, n) { switch (n.name) { case "any": return this.finishNode(i, "AnyTypeAnnotation"); case "bool": case "boolean": return this.finishNode(i, "BooleanTypeAnnotation"); case "mixed": return this.finishNode(i, "MixedTypeAnnotation"); case "empty": return this.finishNode(i, "EmptyTypeAnnotation"); case "number": return this.finishNode(i, "NumberTypeAnnotation"); case "string": return this.finishNode(i, "StringTypeAnnotation"); case "symbol": return this.finishNode(i, "SymbolTypeAnnotation"); default: return this.checkNotUnderscore(n.name), this.flowParseGenericType(r, n); } } flowParsePrimaryType() { let r = this.state.startLoc, i = this.startNode(), n, a, o = !1, u = this.state.noAnonFunctionType; switch (this.state.type) { case 5: return this.flowParseObjectType({ allowStatic: !1, allowExact: !1, allowSpread: !0, allowProto: !1, allowInexact: !0 }); case 6: return this.flowParseObjectType({ allowStatic: !1, allowExact: !0, allowSpread: !0, allowProto: !1, allowInexact: !1 }); case 0: return this.state.noAnonFunctionType = !1, a = this.flowParseTupleType(), this.state.noAnonFunctionType = u, a; case 47: { let l = this.startNode(); return l.typeParameters = this.flowParseTypeParameterDeclaration(), this.expect(10), n = this.flowParseFunctionTypeParams(), l.params = n.params, l.rest = n.rest, l.this = n._this, this.expect(11), this.expect(19), l.returnType = this.flowParseType(), this.finishNode( l, "FunctionTypeAnnotation"); } case 10: { let l = this.startNode(); if (this.next(), !this.match(11) && !this.match(21)) if (xt(this.state.type) || this.match(78)) { let c = this.lookahead().type; o = c !== 17 && c !== 14; } else o = !0; if (o) { if (this.state.noAnonFunctionType = !1, a = this.flowParseType(), this.state.noAnonFunctionType = u, this.state.noAnonFunctionType || !(this.match(12) || this.match(11) && this.lookahead().type === 19)) return this.expect(11), a; this.eat(12); } return a ? n = this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(a)]) : n = this.flowParseFunctionTypeParams(), l.params = n.params, l.rest = n.rest, l.this = n._this, this.expect(11), this.expect(19), l.returnType = this.flowParseType(), l.typeParameters = null, this.finishNode(l, "FunctionTypeAnnotation"); } case 134: return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation"); case 85: case 86: return i.value = this.match(85), this.next(), this.finishNode(i, "BooleanLiteralTypeAnnotation"); case 53: if (this.state.value === "-") { if (this.next(), this.match(135)) return this.parseLiteralAtNode(-this.state.value, "NumberLiteralTypeAnnotation", i); if (this.match(136)) return this.parseLiteralAtNode(-this.state.value, "BigIntLiteralTypeAnnotation", i); throw this.raise(qe.UnexpectedSubtractionOperand, this.state.startLoc); } this.unexpected(); return; case 135: return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation"); case 136: return this.parseLiteral(this.state.value, "BigIntLiteralTypeAnnotation"); case 88: return this.next(), this.finishNode(i, "VoidTypeAnnotation"); case 84: return this.next(), this.finishNode(i, "NullLiteralTypeAnnotation"); case 78: return this.next(), this.finishNode(i, "ThisTypeAnnotation"); case 55: return this.next(), this.finishNode(i, "ExistsTypeAnnotation"); case 87: return this.flowParseTypeofType(); default: if (EC(this.state.type)) { let l = qa(this.state.type); return this.next(), super.createIdentifier(i, l); } else if (xt(this.state.type)) return this.isContextual(129) ? this.flowParseInterfaceType() : this.flowIdentToTypeAnnotation(r, i, this.parseIdentifier()); } this.unexpected(); } flowParsePostfixType() { let r = this.state.startLoc, i = this.flowParsePrimaryType(), n = !1; for (; (this.match(0) || this.match(18)) && !this.canInsertSemicolon(); ) { let a = this.startNodeAt(r), o = this.eat(18); n = n || o, this.expect(0), !o && this.match(3) ? (a.elementType = i, this.next(), i = this.finishNode(a, "ArrayTypeAnnotation")) : (a. objectType = i, a.indexType = this.flowParseType(), this.expect(3), n ? (a.optional = o, i = this.finishNode(a, "OptionalIndexedAcce\ ssType")) : i = this.finishNode(a, "IndexedAccessType")); } return i; } flowParsePrefixType() { let r = this.startNode(); return this.eat(17) ? (r.typeAnnotation = this.flowParsePrefixType(), this.finishNode(r, "NullableTypeAnnotation")) : this.flowParsePostfixType(); } flowParseAnonFunctionWithoutParens() { let r = this.flowParsePrefixType(); if (!this.state.noAnonFunctionType && this.eat(19)) { let i = this.startNodeAt(r.loc.start); return i.params = [this.reinterpretTypeAsFunctionTypeParam(r)], i.rest = null, i.this = null, i.returnType = this.flowParseType(), i. typeParameters = null, this.finishNode(i, "FunctionTypeAnnotation"); } return r; } flowParseIntersectionType() { let r = this.startNode(); this.eat(45); let i = this.flowParseAnonFunctionWithoutParens(); for (r.types = [i]; this.eat(45); ) r.types.push(this.flowParseAnonFunctionWithoutParens()); return r.types.length === 1 ? i : this.finishNode(r, "IntersectionTypeAnnotation"); } flowParseUnionType() { let r = this.startNode(); this.eat(43); let i = this.flowParseIntersectionType(); for (r.types = [i]; this.eat(43); ) r.types.push(this.flowParseIntersectionType()); return r.types.length === 1 ? i : this.finishNode(r, "UnionTypeAnnotation"); } flowParseType() { let r = this.state.inType; this.state.inType = !0; let i = this.flowParseUnionType(); return this.state.inType = r, i; } flowParseTypeOrImplicitInstantiation() { if (this.state.type === 132 && this.state.value === "_") { let r = this.state.startLoc, i = this.parseIdentifier(); return this.flowParseGenericType(r, i); } else return this.flowParseType(); } flowParseTypeAnnotation() { let r = this.startNode(); return r.typeAnnotation = this.flowParseTypeInitialiser(), this.finishNode(r, "TypeAnnotation"); } flowParseTypeAnnotatableIdentifier(r) { let i = r ? this.parseIdentifier() : this.flowParseRestrictedIdentifier(); return this.match(14) && (i.typeAnnotation = this.flowParseTypeAnnotation(), this.resetEndLocation(i)), i; } typeCastToParameter(r) { return r.expression.typeAnnotation = r.typeAnnotation, this.resetEndLocation(r.expression, r.typeAnnotation.loc.end), r.expression; } flowParseVariance() { let r = null; return this.match(53) ? (r = this.startNode(), this.state.value === "+" ? r.kind = "plus" : r.kind = "minus", this.next(), this.finishNode( r, "Variance")) : r; } parseFunctionBody(r, i, n = !1) { if (i) { this.forwardNoArrowParamsConversionAt(r, () => super.parseFunctionBody(r, !0, n)); return; } super.parseFunctionBody(r, !1, n); } parseFunctionBodyAndFinish(r, i, n = !1) { if (this.match(14)) { let a = this.startNode(); [a.typeAnnotation, r.predicate] = this.flowParseTypeAndPredicateInitialiser(), r.returnType = a.typeAnnotation ? this.finishNode(a, "\ TypeAnnotation") : null; } return super.parseFunctionBodyAndFinish(r, i, n); } parseStatementLike(r) { if (this.state.strict && this.isContextual(129)) { let n = this.lookahead(); if (Tn(n.type)) { let a = this.startNode(); return this.next(), this.flowParseInterface(a); } } else if (this.isContextual(126)) { let n = this.startNode(); return this.next(), this.flowParseEnumDeclaration(n); } let i = super.parseStatementLike(r); return this.flowPragma === void 0 && !this.isValidDirective(i) && (this.flowPragma = null), i; } parseExpressionStatement(r, i, n) { if (i.type === "Identifier") { if (i.name === "declare") { if (this.match(80) || xt(this.state.type) || this.match(68) || this.match(74) || this.match(82)) return this.flowParseDeclare(r); } else if (xt(this.state.type)) { if (i.name === "interface") return this.flowParseInterface(r); if (i.name === "type") return this.flowParseTypeAlias(r); if (i.name === "opaque") return this.flowParseOpaqueType(r, !1); } } return super.parseExpressionStatement(r, i, n); } shouldParseExportDeclaration() { let { type: r } = this.state; return r === 126 || v9(r) ? !this.state.containsEsc : super.shouldParseExportDeclaration(); } isExportDefaultSpecifier() { let { type: r } = this.state; return r === 126 || v9(r) ? this.state.containsEsc : super.isExportDefaultSpecifier(); } parseExportDefaultExpression() { if (this.isContextual(126)) { let r = this.startNode(); return this.next(), this.flowParseEnumDeclaration(r); } return super.parseExportDefaultExpression(); } parseConditional(r, i, n) { if (!this.match(17)) return r; if (this.state.maybeInArrowParameters) { let h = this.lookaheadCharCode(); if (h === 44 || h === 61 || h === 58 || h === 41) return this.setOptionalParametersError(n), r; } this.expect(17); let a = this.state.clone(), o = this.state.noArrowAt, u = this.startNodeAt(i), { consequent: l, failed: c } = this.tryParseConditionalConsequent(), [f, m] = this.getArrowLikeExpressions(l); if (c || m.length > 0) { let h = [...o]; if (m.length > 0) { this.state = a, this.state.noArrowAt = h; for (let d = 0; d < m.length; d++) h.push(m[d].start); ({ consequent: l, failed: c } = this.tryParseConditionalConsequent()), [f, m] = this.getArrowLikeExpressions(l); } c && f.length > 1 && this.raise(qe.AmbiguousConditionalArrow, a.startLoc), c && f.length === 1 && (this.state = a, h.push(f[0].start), this.state.noArrowAt = h, { consequent: l, failed: c } = this.tryParseConditionalConsequent()); } return this.getArrowLikeExpressions(l, !0), this.state.noArrowAt = o, this.expect(14), u.test = r, u.consequent = l, u.alternate = this. forwardNoArrowParamsConversionAt(u, () => this.parseMaybeAssign(void 0, void 0)), this.finishNode(u, "ConditionalExpression"); } tryParseConditionalConsequent() { this.state.noArrowParamsConversionAt.push(this.state.start); let r = this.parseMaybeAssignAllowIn(), i = !this.match(14); return this.state.noArrowParamsConversionAt.pop(), { consequent: r, failed: i }; } getArrowLikeExpressions(r, i) { let n = [r], a = []; for (; n.length !== 0; ) { let o = n.pop(); o.type === "ArrowFunctionExpression" && o.body.type !== "BlockStatement" ? (o.typeParameters || !o.returnType ? this.finishArrowValidation( o) : a.push(o), n.push(o.body)) : o.type === "ConditionalExpression" && (n.push(o.consequent), n.push(o.alternate)); } return i ? (a.forEach((o) => this.finishArrowValidation(o)), [a, []]) : uPe(a, (o) => o.params.every((u) => this.isAssignable(u, !0))); } finishArrowValidation(r) { var i; this.toAssignableList(r.params, (i = r.extra) == null ? void 0 : i.trailingCommaLoc, !1), this.scope.enter(6), super.checkParams(r, !1, !0), this.scope.exit(); } forwardNoArrowParamsConversionAt(r, i) { let n; return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)) ? (this.state.noArrowParamsConversionAt.push(this. state.start), n = i(), this.state.noArrowParamsConversionAt.pop()) : n = i(), n; } parseParenItem(r, i) { let n = super.parseParenItem(r, i); if (this.eat(17) && (n.optional = !0, this.resetEndLocation(r)), this.match(14)) { let a = this.startNodeAt(i); return a.expression = n, a.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(a, "TypeCastExpression"); } return n; } assertModuleNodeAllowed(r) { r.type === "ImportDeclaration" && (r.importKind === "type" || r.importKind === "typeof") || r.type === "ExportNamedDeclaration" && r.exportKind === "type" || r.type === "ExportAllDeclaration" && r.exportKind === "type" || super.assertModuleNodeAllowed(r); } parseExportDeclaration(r) { if (this.isContextual(130)) { r.exportKind = "type"; let i = this.startNode(); return this.next(), this.match(5) ? (r.specifiers = this.parseExportSpecifiers(!0), super.parseExportFrom(r), null) : this.flowParseTypeAlias( i); } else if (this.isContextual(131)) { r.exportKind = "type"; let i = this.startNode(); return this.next(), this.flowParseOpaqueType(i, !1); } else if (this.isContextual(129)) { r.exportKind = "type"; let i = this.startNode(); return this.next(), this.flowParseInterface(i); } else if (this.isContextual(126)) { r.exportKind = "value"; let i = this.startNode(); return this.next(), this.flowParseEnumDeclaration(i); } else return super.parseExportDeclaration(r); } eatExportStar(r) { return super.eatExportStar(r) ? !0 : this.isContextual(130) && this.lookahead().type === 55 ? (r.exportKind = "type", this.next(), this. next(), !0) : !1; } maybeParseExportNamespaceSpecifier(r) { let { startLoc: i } = this.state, n = super.maybeParseExportNamespaceSpecifier(r); return n && r.exportKind === "type" && this.unexpected(i), n; } parseClassId(r, i, n) { super.parseClassId(r, i, n), this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration()); } parseClassMember(r, i, n) { let { startLoc: a } = this.state; if (this.isContextual(125)) { if (super.parseClassMemberFromModifier(r, i)) return; i.declare = !0; } super.parseClassMember(r, i, n), i.declare && (i.type !== "ClassProperty" && i.type !== "ClassPrivateProperty" && i.type !== "Property\ Definition" ? this.raise(qe.DeclareClassElement, a) : i.value && this.raise(qe.DeclareClassFieldInitializer, i.value)); } isIterator(r) { return r === "iterator" || r === "asyncIterator"; } readIterator() { let r = super.readWord1(), i = "@@" + r; (!this.isIterator(r) || !this.state.inType) && this.raise(L.InvalidIdentifier, this.state.curPosition(), { identifierName: i }), this.finishToken(132, i); } getTokenFromCode(r) { let i = this.input.charCodeAt(this.state.pos + 1); r === 123 && i === 124 ? this.finishOp(6, 2) : this.state.inType && (r === 62 || r === 60) ? this.finishOp(r === 62 ? 48 : 47, 1) : this. state.inType && r === 63 ? i === 46 ? this.finishOp(18, 2) : this.finishOp(17, 1) : V2e(r, i, this.input.charCodeAt(this.state.pos + 2)) ? (this.state.pos += 2, this.readIterator()) : super.getTokenFromCode(r); } isAssignable(r, i) { return r.type === "TypeCastExpression" ? this.isAssignable(r.expression, i) : super.isAssignable(r, i); } toAssignable(r, i = !1) { !i && r.type === "AssignmentExpression" && r.left.type === "TypeCastExpression" && (r.left = this.typeCastToParameter(r.left)), super. toAssignable(r, i); } toAssignableList(r, i, n) { for (let a = 0; a < r.length; a++) { let o = r[a]; o?.type === "TypeCastExpression" && (r[a] = this.typeCastToParameter(o)); } super.toAssignableList(r, i, n); } toReferencedList(r, i) { for (let a = 0; a < r.length; a++) { var n; let o = r[a]; o && o.type === "TypeCastExpression" && !((n = o.extra) != null && n.parenthesized) && (r.length > 1 || !i) && this.raise(qe.TypeCastInPattern, o.typeAnnotation); } return r; } parseArrayLike(r, i, n, a) { let o = super.parseArrayLike(r, i, n, a); return i && !this.state.maybeInArrowParameters && this.toReferencedList(o.elements), o; } isValidLVal(r, i, n) { return r === "TypeCastExpression" || super.isValidLVal(r, i, n); } parseClassProperty(r) { return this.match(14) && (r.typeAnnotation = this.flowParseTypeAnnotation()), super.parseClassProperty(r); } parseClassPrivateProperty(r) { return this.match(14) && (r.typeAnnotation = this.flowParseTypeAnnotation()), super.parseClassPrivateProperty(r); } isClassMethod() { return this.match(47) || super.isClassMethod(); } isClassProperty() { return this.match(14) || super.isClassProperty(); } isNonstaticConstructor(r) { return !this.match(14) && super.isNonstaticConstructor(r); } pushClassMethod(r, i, n, a, o, u) { if (i.variance && this.unexpected(i.variance.loc.start), delete i.variance, this.match(47) && (i.typeParameters = this.flowParseTypeParameterDeclaration()), super.pushClassMethod(r, i, n, a, o, u), i.params && o) { let l = i.params; l.length > 0 && this.isThisParam(l[0]) && this.raise(qe.ThisParamBannedInConstructor, i); } else if (i.type === "MethodDefinition" && o && i.value.params) { let l = i.value.params; l.length > 0 && this.isThisParam(l[0]) && this.raise(qe.ThisParamBannedInConstructor, i); } } pushClassPrivateMethod(r, i, n, a) { i.variance && this.unexpected(i.variance.loc.start), delete i.variance, this.match(47) && (i.typeParameters = this.flowParseTypeParameterDeclaration()), super.pushClassPrivateMethod(r, i, n, a); } parseClassSuper(r) { if (super.parseClassSuper(r), r.superClass && (this.match(47) || this.match(51)) && (r.superTypeParameters = this.flowParseTypeParameterInstantiationInExpression()), this.isContextual(113)) { this.next(); let i = r.implements = []; do { let n = this.startNode(); n.id = this.flowParseRestrictedIdentifier(!0), this.match(47) ? n.typeParameters = this.flowParseTypeParameterInstantiation() : n. typeParameters = null, i.push(this.finishNode(n, "ClassImplements")); } while (this.eat(12)); } } checkGetterSetterParams(r) { super.checkGetterSetterParams(r); let i = this.getObjectOrClassMethodParams(r); if (i.length > 0) { let n = i[0]; this.isThisParam(n) && r.kind === "get" ? this.raise(qe.GetterMayNotHaveThisParam, n) : this.isThisParam(n) && this.raise(qe.SetterMayNotHaveThisParam, n); } } parsePropertyNamePrefixOperator(r) { r.variance = this.flowParseVariance(); } parseObjPropValue(r, i, n, a, o, u, l) { r.variance && this.unexpected(r.variance.loc.start), delete r.variance; let c; this.match(47) && !u && (c = this.flowParseTypeParameterDeclaration(), this.match(10) || this.unexpected()); let f = super.parseObjPropValue(r, i, n, a, o, u, l); return c && ((f.value || f).typeParameters = c), f; } parseFunctionParamType(r) { return this.eat(17) && (r.type !== "Identifier" && this.raise(qe.PatternIsOptional, r), this.isThisParam(r) && this.raise(qe.ThisParamMayNotBeOptional, r), r.optional = !0), this.match(14) ? r.typeAnnotation = this.flowParseTypeAnnotation() : this.isThisParam(r) && this.raise(qe.ThisParamAnnotationRequired, r), this.match(29) && this.isThisParam(r) && this.raise(qe.ThisParamNoDefault, r), this.resetEndLocation(r), r; } parseMaybeDefault(r, i) { let n = super.parseMaybeDefault(r, i); return n.type === "AssignmentPattern" && n.typeAnnotation && n.right.start < n.typeAnnotation.start && this.raise(qe.TypeBeforeInitializer, n.typeAnnotation), n; } checkImportReflection(r) { super.checkImportReflection(r), r.module && r.importKind !== "value" && this.raise(qe.ImportReflectionHasImportType, r.specifiers[0].loc. start); } parseImportSpecifierLocal(r, i, n) { i.local = T9(r) ? this.flowParseRestrictedIdentifier(!0, !0) : this.parseIdentifier(), r.specifiers.push(this.finishImportSpecifier(i, n)); } isPotentialImportPhase(r) { if (super.isPotentialImportPhase(r)) return !0; if (this.isContextual(130)) { if (!r) return !0; let i = this.lookaheadCharCode(); return i === 123 || i === 42; } return !r && this.isContextual(87); } applyImportPhase(r, i, n, a) { if (super.applyImportPhase(r, i, n, a), i) { if (!n && this.match(65)) return; r.exportKind = n === "type" ? n : "value"; } else n === "type" && this.match(55) && this.unexpected(), r.importKind = n === "type" || n === "typeof" ? n : "value"; } parseImportSpecifier(r, i, n, a, o) { let u = r.imported, l = null; u.type === "Identifier" && (u.name === "type" ? l = "type" : u.name === "typeof" && (l = "typeof")); let c = !1; if (this.isContextual(93) && !this.isLookaheadContextual("as")) { let m = this.parseIdentifier(!0); l !== null && !Tn(this.state.type) ? (r.imported = m, r.importKind = l, r.local = $s(m)) : (r.imported = u, r.importKind = null, r.local = this.parseIdentifier()); } else { if (l !== null && Tn(this.state.type)) r.imported = this.parseIdentifier(!0), r.importKind = l; else { if (i) throw this.raise(L.ImportBindingIsString, r, { importName: u.value }); r.imported = u, r.importKind = null; } this.eatContextual(93) ? r.local = this.parseIdentifier() : (c = !0, r.local = $s(r.imported)); } let f = T9(r); return n && f && this.raise(qe.ImportTypeShorthandOnlyInPureImport, r), (n || f) && this.checkReservedType(r.local.name, r.local.loc.start, !0), c && !n && !f && this.checkReservedWord(r.local.name, r.loc.start, !0, !0), this.finishImportSpecifier(r, "ImportSpecifier"); } parseBindingAtom() { switch (this.state.type) { case 78: return this.parseIdentifier(!0); default: return super.parseBindingAtom(); } } parseFunctionParams(r, i) { let n = r.kind; n !== "get" && n !== "set" && this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration()), super.parseFunctionParams( r, i); } parseVarId(r, i) { super.parseVarId(r, i), this.match(14) && (r.id.typeAnnotation = this.flowParseTypeAnnotation(), this.resetEndLocation(r.id)); } parseAsyncArrowFromCallExpression(r, i) { if (this.match(14)) { let n = this.state.noAnonFunctionType; this.state.noAnonFunctionType = !0, r.returnType = this.flowParseTypeAnnotation(), this.state.noAnonFunctionType = n; } return super.parseAsyncArrowFromCallExpression(r, i); } shouldParseAsyncArrow() { return this.match(14) || super.shouldParseAsyncArrow(); } parseMaybeAssign(r, i) { var n; let a = null, o; if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) { if (a = this.state.clone(), o = this.tryParse(() => super.parseMaybeAssign(r, i), a), !o.error) return o.node; let { context: c } = this.state, f = c[c.length - 1]; (f === Et.j_oTag || f === Et.j_expr) && c.pop(); } if ((n = o) != null && n.error || this.match(47)) { var u, l; a = a || this.state.clone(); let c, f = this.tryParse((h) => { var d; c = this.flowParseTypeParameterDeclaration(); let y = this.forwardNoArrowParamsConversionAt(c, () => { let g = super.parseMaybeAssign(r, i); return this.resetStartLocationFromNode(g, c), g; }); (d = y.extra) != null && d.parenthesized && h(); let p = this.maybeUnwrapTypeCastExpression(y); return p.type !== "ArrowFunctionExpression" && h(), p.typeParameters = c, this.resetStartLocationFromNode(p, c), y; }, a), m = null; if (f.node && this.maybeUnwrapTypeCastExpression(f.node).type === "ArrowFunctionExpression") { if (!f.error && !f.aborted) return f.node.async && this.raise(qe.UnexpectedTypeParameterBeforeAsyncArrowFunction, c), f.node; m = f.node; } if ((u = o) != null && u.node) return this.state = o.failState, o.node; if (m) return this.state = f.failState, m; throw (l = o) != null && l.thrown ? o.error : f.thrown ? f.error : this.raise(qe.UnexpectedTokenAfterTypeParameter, c); } return super.parseMaybeAssign(r, i); } parseArrow(r) { if (this.match(14)) { let i = this.tryParse(() => { let n = this.state.noAnonFunctionType; this.state.noAnonFunctionType = !0; let a = this.startNode(); return [a.typeAnnotation, r.predicate] = this.flowParseTypeAndPredicateInitialiser(), this.state.noAnonFunctionType = n, this.canInsertSemicolon() && this.unexpected(), this.match(19) || this.unexpected(), a; }); if (i.thrown) return null; i.error && (this.state = i.failState), r.returnType = i.node.typeAnnotation ? this.finishNode(i.node, "TypeAnnotation") : null; } return super.parseArrow(r); } shouldParseArrow(r) { return this.match(14) || super.shouldParseArrow(r); } setArrowFunctionParameters(r, i) { this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)) ? r.params = i : super.setArrowFunctionParameters(r, i); } checkParams(r, i, n, a = !0) { if (!(n && this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))) { for (let o = 0; o < r.params.length; o++) this.isThisParam(r.params[o]) && o > 0 && this.raise(qe.ThisParamMustBeFirst, r.params[o]); super.checkParams(r, i, n, a); } } parseParenAndDistinguishExpression(r) { return super.parseParenAndDistinguishExpression(r && !this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start))); } parseSubscripts(r, i, n) { if (r.type === "Identifier" && r.name === "async" && this.state.noArrowAt.includes(i.index)) { this.next(); let a = this.startNodeAt(i); a.callee = r, a.arguments = super.parseCallExpressionArguments(11), r = this.finishNode(a, "CallExpression"); } else if (r.type === "Identifier" && r.name === "async" && this.match(47)) { let a = this.state.clone(), o = this.tryParse((l) => this.parseAsyncArrowWithTypeParameters(i) || l(), a); if (!o.error && !o.aborted) return o.node; let u = this.tryParse(() => super.parseSubscripts(r, i, n), a); if (u.node && !u.error) return u.node; if (o.node) return this.state = o.failState, o.node; if (u.node) return this.state = u.failState, u.node; throw o.error || u.error; } return super.parseSubscripts(r, i, n); } parseSubscript(r, i, n, a) { if (this.match(18) && this.isLookaheadToken_lt()) { if (a.optionalChainMember = !0, n) return a.stop = !0, r; this.next(); let o = this.startNodeAt(i); return o.callee = r, o.typeArguments = this.flowParseTypeParameterInstantiationInExpression(), this.expect(10), o.arguments = this.parseCallExpressionArguments( 11), o.optional = !0, this.finishCallExpression(o, !0); } else if (!n && this.shouldParseTypes() && (this.match(47) || this.match(51))) { let o = this.startNodeAt(i); o.callee = r; let u = this.tryParse(() => (o.typeArguments = this.flowParseTypeParameterInstantiationCallOrNew(), this.expect(10), o.arguments = super. parseCallExpressionArguments(11), a.optionalChainMember && (o.optional = !1), this.finishCallExpression(o, a.optionalChainMember))); if (u.node) return u.error && (this.state = u.failState), u.node; } return super.parseSubscript(r, i, n, a); } parseNewCallee(r) { super.parseNewCallee(r); let i = null; this.shouldParseTypes() && this.match(47) && (i = this.tryParse(() => this.flowParseTypeParameterInstantiationCallOrNew()).node), r.typeArguments = i; } parseAsyncArrowWithTypeParameters(r) { let i = this.startNodeAt(r); if (this.parseFunctionParams(i, !1), !!this.parseArrow(i)) return super.parseArrowExpression(i, void 0, !0); } readToken_mult_modulo(r) { let i = this.input.charCodeAt(this.state.pos + 1); if (r === 42 && i === 47 && this.state.hasFlowComment) { this.state.hasFlowComment = !1, this.state.pos += 2, this.nextToken(); return; } super.readToken_mult_modulo(r); } readToken_pipe_amp(r) { let i = this.input.charCodeAt(this.state.pos + 1); if (r === 124 && i === 125) { this.finishOp(9, 2); return; } super.readToken_pipe_amp(r); } parseTopLevel(r, i) { let n = super.parseTopLevel(r, i); return this.state.hasFlowComment && this.raise(qe.UnterminatedFlowComment, this.state.curPosition()), n; } skipBlockComment() { if (this.hasPlugin("flowComments") && this.skipFlowComment()) { if (this.state.hasFlowComment) throw this.raise(qe.NestedFlowComment, this.state.startLoc); this.hasFlowCommentCompletion(); let r = this.skipFlowComment(); r && (this.state.pos += r, this.state.hasFlowComment = !0); return; } return super.skipBlockComment(this.state.hasFlowComment ? "*-/" : "*/"); } skipFlowComment() { let { pos: r } = this.state, i = 2; for (; [32, 9].includes(this.input.charCodeAt(r + i)); ) i++; let n = this.input.charCodeAt(i + r), a = this.input.charCodeAt(i + r + 1); return n === 58 && a === 58 ? i + 2 : this.input.slice(i + r, i + r + 12) === "flow-include" ? i + 12 : n === 58 && a !== 58 ? i : !1; } hasFlowCommentCompletion() { if (this.input.indexOf("*/", this.state.pos) === -1) throw this.raise(L.UnterminatedComment, this.state.curPosition()); } flowEnumErrorBooleanMemberNotInitialized(r, { enumName: i, memberName: n }) { this.raise(qe.EnumBooleanMemberNotInitialized, r, { memberName: n, enumName: i }); } flowEnumErrorInvalidMemberInitializer(r, i) { return this.raise(i.explicitType ? i.explicitType === "symbol" ? qe.EnumInvalidMemberInitializerSymbolType : qe.EnumInvalidMemberInitializerPrimaryType : qe.EnumInvalidMemberInitializerUnknownType, r, i); } flowEnumErrorNumberMemberNotInitialized(r, i) { this.raise(qe.EnumNumberMemberNotInitialized, r, i); } flowEnumErrorStringMemberInconsistentlyInitialized(r, i) { this.raise(qe.EnumStringMemberInconsistentlyInitialized, r, i); } flowEnumMemberInit() { let r = this.state.startLoc, i = /* @__PURE__ */ s(() => this.match(12) || this.match(8), "endOfInit"); switch (this.state.type) { case 135: { let n = this.parseNumericLiteral(this.state.value); return i() ? { type: "number", loc: n.loc.start, value: n } : { type: "invalid", loc: r }; } case 134: { let n = this.parseStringLiteral(this.state.value); return i() ? { type: "string", loc: n.loc.start, value: n } : { type: "invalid", loc: r }; } case 85: case 86: { let n = this.parseBooleanLiteral(this.match(85)); return i() ? { type: "boolean", loc: n.loc.start, value: n } : { type: "invalid", loc: r }; } default: return { type: "invalid", loc: r }; } } flowEnumMemberRaw() { let r = this.state.startLoc, i = this.parseIdentifier(!0), n = this.eat(29) ? this.flowEnumMemberInit() : { type: "none", loc: r }; return { id: i, init: n }; } flowEnumCheckExplicitTypeMismatch(r, i, n) { let { explicitType: a } = i; a !== null && a !== n && this.flowEnumErrorInvalidMemberInitializer(r, i); } flowEnumMembers({ enumName: r, explicitType: i }) { let n = /* @__PURE__ */ new Set(), a = { booleanMembers: [], numberMembers: [], stringMembers: [], defaultedMembers: [] }, o = !1; for (; !this.match(8); ) { if (this.eat(21)) { o = !0; break; } let u = this.startNode(), { id: l, init: c } = this.flowEnumMemberRaw(), f = l.name; if (f === "") continue; /^[a-z]/.test(f) && this.raise(qe.EnumInvalidMemberName, l, { memberName: f, suggestion: f[0].toUpperCase() + f.slice(1), enumName: r }), n.has(f) && this.raise(qe.EnumDuplicateMemberName, l, { memberName: f, enumName: r }), n.add(f); let m = { enumName: r, explicitType: i, memberName: f }; switch (u.id = l, c.type) { case "boolean": { this.flowEnumCheckExplicitTypeMismatch(c.loc, m, "boolean"), u.init = c.value, a.booleanMembers.push(this.finishNode(u, "EnumBoo\ leanMember")); break; } case "number": { this.flowEnumCheckExplicitTypeMismatch(c.loc, m, "number"), u.init = c.value, a.numberMembers.push(this.finishNode(u, "EnumNumbe\ rMember")); break; } case "string": { this.flowEnumCheckExplicitTypeMismatch(c.loc, m, "string"), u.init = c.value, a.stringMembers.push(this.finishNode(u, "EnumStrin\ gMember")); break; } case "invalid": throw this.flowEnumErrorInvalidMemberInitializer(c.loc, m); case "none": switch (i) { case "boolean": this.flowEnumErrorBooleanMemberNotInitialized(c.loc, m); break; case "number": this.flowEnumErrorNumberMemberNotInitialized(c.loc, m); break; default: a.defaultedMembers.push(this.finishNode(u, "EnumDefaultedMember")); } } this.match(8) || this.expect(12); } return { members: a, hasUnknownMembers: o }; } flowEnumStringMembers(r, i, { enumName: n }) { if (r.length === 0) return i; if (i.length === 0) return r; if (i.length > r.length) { for (let a of r) this.flowEnumErrorStringMemberInconsistentlyInitialized(a, { enumName: n }); return i; } else { for (let a of i) this.flowEnumErrorStringMemberInconsistentlyInitialized(a, { enumName: n }); return r; } } flowEnumParseExplicitType({ enumName: r }) { if (!this.eatContextual(102)) return null; if (!xt(this.state.type)) throw this.raise(qe.EnumInvalidExplicitTypeUnknownSupplied, this.state.startLoc, { enumName: r }); let { value: i } = this.state; return this.next(), i !== "boolean" && i !== "number" && i !== "string" && i !== "symbol" && this.raise(qe.EnumInvalidExplicitType, this. state.startLoc, { enumName: r, invalidEnumType: i }), i; } flowEnumBody(r, i) { let n = i.name, a = i.loc.start, o = this.flowEnumParseExplicitType({ enumName: n }); this.expect(5); let { members: u, hasUnknownMembers: l } = this.flowEnumMembers({ enumName: n, explicitType: o }); switch (r.hasUnknownMembers = l, o) { case "boolean": return r.explicitType = !0, r.members = u.booleanMembers, this.expect(8), this.finishNode(r, "EnumBooleanBody"); case "number": return r.explicitType = !0, r.members = u.numberMembers, this.expect(8), this.finishNode(r, "EnumNumberBody"); case "string": return r.explicitType = !0, r.members = this.flowEnumStringMembers(u.stringMembers, u.defaultedMembers, { enumName: n }), this.expect(8), this.finishNode(r, "EnumStringBody"); case "symbol": return r.members = u.defaultedMembers, this.expect(8), this.finishNode(r, "EnumSymbolBody"); default: { let c = /* @__PURE__ */ s(() => (r.members = [], this.expect(8), this.finishNode(r, "EnumStringBody")), "empty"); r.explicitType = !1; let f = u.booleanMembers.length, m = u.numberMembers.length, h = u.stringMembers.length, d = u.defaultedMembers.length; if (!f && !m && !h && !d) return c(); if (!f && !m) return r.members = this.flowEnumStringMembers(u.stringMembers, u.defaultedMembers, { enumName: n }), this.expect(8), this.finishNode(r, "EnumStringBody"); if (!m && !h && f >= d) { for (let y of u.defaultedMembers) this.flowEnumErrorBooleanMemberNotInitialized(y.loc.start, { enumName: n, memberName: y.id.name }); return r.members = u.booleanMembers, this.expect(8), this.finishNode(r, "EnumBooleanBody"); } else if (!f && !h && m >= d) { for (let y of u.defaultedMembers) this.flowEnumErrorNumberMemberNotInitialized(y.loc.start, { enumName: n, memberName: y.id.name }); return r.members = u.numberMembers, this.expect(8), this.finishNode(r, "EnumNumberBody"); } else return this.raise(qe.EnumInconsistentMemberValues, a, { enumName: n }), c(); } } } flowParseEnumDeclaration(r) { let i = this.parseIdentifier(); return r.id = i, r.body = this.flowEnumBody(this.startNode(), i), this.finishNode(r, "EnumDeclaration"); } jsxParseOpeningElementAfterName(r) { return this.shouldParseTypes() && (this.match(47) || this.match(51)) && (r.typeArguments = this.flowParseTypeParameterInstantiationInExpression()), super.jsxParseOpeningElementAfterName(r); } isLookaheadToken_lt() { let r = this.nextTokenStart(); if (this.input.charCodeAt(r) === 60) { let i = this.input.charCodeAt(r + 1); return i !== 60 && i !== 61; } return !1; } reScan_lt_gt() { let { type: r } = this.state; r === 47 ? (this.state.pos -= 1, this.readToken_lt()) : r === 48 && (this.state.pos -= 1, this.readToken_gt()); } reScan_lt() { let { type: r } = this.state; return r === 51 ? (this.state.pos -= 2, this.finishOp(47, 1), 47) : r; } maybeUnwrapTypeCastExpression(r) { return r.type === "TypeCastExpression" ? r.expression : r; } }, "flow"), fPe = { __proto__: null, quot: '"', amp: "&", apos: "'", lt: "<", gt: ">", nbsp: "\xA0", iexcl: "\xA1", cent: "\xA2", pound: "\xA3", curren: "\xA4", yen: "\xA5", brvbar: "\xA6", sect: "\xA7", uml: "\xA8", copy: "\xA9", ordf: "\xAA", laquo: "\xAB", not: "\xAC", shy: "\xAD", reg: "\xAE", macr: "\xAF", deg: "\xB0", plusmn: "\xB1", sup2: "\xB2", sup3: "\xB3", acute: "\xB4", micro: "\xB5", para: "\xB6", middot: "\xB7", cedil: "\xB8", sup1: "\xB9", ordm: "\xBA", raquo: "\xBB", frac14: "\xBC", frac12: "\xBD", frac34: "\xBE", iquest: "\xBF", Agrave: "\xC0", Aacute: "\xC1", Acirc: "\xC2", Atilde: "\xC3", Auml: "\xC4", Aring: "\xC5", AElig: "\xC6", Ccedil: "\xC7", Egrave: "\xC8", Eacute: "\xC9", Ecirc: "\xCA", Euml: "\xCB", Igrave: "\xCC", Iacute: "\xCD", Icirc: "\xCE", Iuml: "\xCF", ETH: "\xD0", Ntilde: "\xD1", Ograve: "\xD2", Oacute: "\xD3", Ocirc: "\xD4", Otilde: "\xD5", Ouml: "\xD6", times: "\xD7", Oslash: "\xD8", Ugrave: "\xD9", Uacute: "\xDA", Ucirc: "\xDB", Uuml: "\xDC", Yacute: "\xDD", THORN: "\xDE", szlig: "\xDF", agrave: "\xE0", aacute: "\xE1", acirc: "\xE2", atilde: "\xE3", auml: "\xE4", aring: "\xE5", aelig: "\xE6", ccedil: "\xE7", egrave: "\xE8", eacute: "\xE9", ecirc: "\xEA", euml: "\xEB", igrave: "\xEC", iacute: "\xED", icirc: "\xEE", iuml: "\xEF", eth: "\xF0", ntilde: "\xF1", ograve: "\xF2", oacute: "\xF3", ocirc: "\xF4", otilde: "\xF5", ouml: "\xF6", divide: "\xF7", oslash: "\xF8", ugrave: "\xF9", uacute: "\xFA", ucirc: "\xFB", uuml: "\xFC", yacute: "\xFD", thorn: "\xFE", yuml: "\xFF", OElig: "\u0152", oelig: "\u0153", Scaron: "\u0160", scaron: "\u0161", Yuml: "\u0178", fnof: "\u0192", circ: "\u02C6", tilde: "\u02DC", Alpha: "\u0391", Beta: "\u0392", Gamma: "\u0393", Delta: "\u0394", Epsilon: "\u0395", Zeta: "\u0396", Eta: "\u0397", Theta: "\u0398", Iota: "\u0399", Kappa: "\u039A", Lambda: "\u039B", Mu: "\u039C", Nu: "\u039D", Xi: "\u039E", Omicron: "\u039F", Pi: "\u03A0", Rho: "\u03A1", Sigma: "\u03A3", Tau: "\u03A4", Upsilon: "\u03A5", Phi: "\u03A6", Chi: "\u03A7", Psi: "\u03A8", Omega: "\u03A9", alpha: "\u03B1", beta: "\u03B2", gamma: "\u03B3", delta: "\u03B4", epsilon: "\u03B5", zeta: "\u03B6", eta: "\u03B7", theta: "\u03B8", iota: "\u03B9", kappa: "\u03BA", lambda: "\u03BB", mu: "\u03BC", nu: "\u03BD", xi: "\u03BE", omicron: "\u03BF", pi: "\u03C0", rho: "\u03C1", sigmaf: "\u03C2", sigma: "\u03C3", tau: "\u03C4", upsilon: "\u03C5", phi: "\u03C6", chi: "\u03C7", psi: "\u03C8", omega: "\u03C9", thetasym: "\u03D1", upsih: "\u03D2", piv: "\u03D6", ensp: "\u2002", emsp: "\u2003", thinsp: "\u2009", zwnj: "\u200C", zwj: "\u200D", lrm: "\u200E", rlm: "\u200F", ndash: "\u2013", mdash: "\u2014", lsquo: "\u2018", rsquo: "\u2019", sbquo: "\u201A", ldquo: "\u201C", rdquo: "\u201D", bdquo: "\u201E", dagger: "\u2020", Dagger: "\u2021", bull: "\u2022", hellip: "\u2026", permil: "\u2030", prime: "\u2032", Prime: "\u2033", lsaquo: "\u2039", rsaquo: "\u203A", oline: "\u203E", frasl: "\u2044", euro: "\u20AC", image: "\u2111", weierp: "\u2118", real: "\u211C", trade: "\u2122", alefsym: "\u2135", larr: "\u2190", uarr: "\u2191", rarr: "\u2192", darr: "\u2193", harr: "\u2194", crarr: "\u21B5", lArr: "\u21D0", uArr: "\u21D1", rArr: "\u21D2", dArr: "\u21D3", hArr: "\u21D4", forall: "\u2200", part: "\u2202", exist: "\u2203", empty: "\u2205", nabla: "\u2207", isin: "\u2208", notin: "\u2209", ni: "\u220B", prod: "\u220F", sum: "\u2211", minus: "\u2212", lowast: "\u2217", radic: "\u221A", prop: "\u221D", infin: "\u221E", ang: "\u2220", and: "\u2227", or: "\u2228", cap: "\u2229", cup: "\u222A", int: "\u222B", there4: "\u2234", sim: "\u223C", cong: "\u2245", asymp: "\u2248", ne: "\u2260", equiv: "\u2261", le: "\u2264", ge: "\u2265", sub: "\u2282", sup: "\u2283", nsub: "\u2284", sube: "\u2286", supe: "\u2287", oplus: "\u2295", otimes: "\u2297", perp: "\u22A5", sdot: "\u22C5", lceil: "\u2308", rceil: "\u2309", lfloor: "\u230A", rfloor: "\u230B", lang: "\u2329", rang: "\u232A", loz: "\u25CA", spades: "\u2660", clubs: "\u2663", hearts: "\u2665", diams: "\u2666" }, zo = Ws`jsx`({ AttributeIsEmpty: "JSX attributes must only be assigned a non-empty expression.", MissingClosingTagElement: /* @__PURE__ */ s(({ openingTagName: e }) => `Expected corresponding JSX closing tag for <${e}>.`, "MissingClosingTagElement"), MissingClosingTagFragment: "Expected corresponding JSX closing tag for <>.", UnexpectedSequenceExpression: "Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?", UnexpectedToken: /* @__PURE__ */ s(({ unexpected: e, HTMLEntity: t }) => `Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`, "UnexpectedToken"), UnsupportedJsxValue: "JSX value should be either an expression or a quoted JSX text.", UnterminatedJsxContent: "Unterminated JSX contents.", UnwrappedAdjacentJSXElements: "Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?" }); function La(e) { return e ? e.type === "JSXOpeningFragment" || e.type === "JSXClosingFragment" : !1; } s(La, "isFragment"); function jl(e) { if (e.type === "JSXIdentifier") return e.name; if (e.type === "JSXNamespacedName") return e.namespace.name + ":" + e.name.name; if (e.type === "JSXMemberExpression") return jl(e.object) + "." + jl(e.property); throw new Error("Node had unexpected type: " + e.type); } s(jl, "getQualifiedJSXName"); var dPe = /* @__PURE__ */ s((e) => class extends e { static { s(this, "JSXParserMixin"); } jsxReadToken() { let r = "", i = this.state.pos; for (; ; ) { if (this.state.pos >= this.length) throw this.raise(zo.UnterminatedJsxContent, this.state.startLoc); let n = this.input.charCodeAt(this.state.pos); switch (n) { case 60: case 123: if (this.state.pos === this.state.start) { n === 60 && this.state.canStartJSXElement ? (++this.state.pos, this.finishToken(143)) : super.getTokenFromCode(n); return; } r += this.input.slice(i, this.state.pos), this.finishToken(142, r); return; case 38: r += this.input.slice(i, this.state.pos), r += this.jsxReadEntity(), i = this.state.pos; break; case 62: case 125: default: ql(n) ? (r += this.input.slice(i, this.state.pos), r += this.jsxReadNewLine(!0), i = this.state.pos) : ++this.state.pos; } } } jsxReadNewLine(r) { let i = this.input.charCodeAt(this.state.pos), n; return ++this.state.pos, i === 13 && this.input.charCodeAt(this.state.pos) === 10 ? (++this.state.pos, n = r ? ` ` : `\r `) : n = String.fromCharCode(i), ++this.state.curLine, this.state.lineStart = this.state.pos, n; } jsxReadString(r) { let i = "", n = ++this.state.pos; for (; ; ) { if (this.state.pos >= this.length) throw this.raise(L.UnterminatedString, this.state.startLoc); let a = this.input.charCodeAt(this.state.pos); if (a === r) break; a === 38 ? (i += this.input.slice(n, this.state.pos), i += this.jsxReadEntity(), n = this.state.pos) : ql(a) ? (i += this.input.slice( n, this.state.pos), i += this.jsxReadNewLine(!1), n = this.state.pos) : ++this.state.pos; } i += this.input.slice(n, this.state.pos++), this.finishToken(134, i); } jsxReadEntity() { let r = ++this.state.pos; if (this.codePointAtPos(this.state.pos) === 35) { ++this.state.pos; let i = 10; this.codePointAtPos(this.state.pos) === 120 && (i = 16, ++this.state.pos); let n = this.readInt(i, void 0, !1, "bail"); if (n !== null && this.codePointAtPos(this.state.pos) === 59) return ++this.state.pos, String.fromCodePoint(n); } else { let i = 0, n = !1; for (; i++ < 10 && this.state.pos < this.length && !(n = this.codePointAtPos(this.state.pos) === 59); ) ++this.state.pos; if (n) { let a = this.input.slice(r, this.state.pos), o = fPe[a]; if (++this.state.pos, o) return o; } } return this.state.pos = r, "&"; } jsxReadWord() { let r, i = this.state.pos; do r = this.input.charCodeAt(++this.state.pos); while (Ll(r) || r === 45); this.finishToken(141, this.input.slice(i, this.state.pos)); } jsxParseIdentifier() { let r = this.startNode(); return this.match(141) ? r.name = this.state.value : EC(this.state.type) ? r.name = qa(this.state.type) : this.unexpected(), this.next(), this.finishNode(r, "JSXIdentifier"); } jsxParseNamespacedName() { let r = this.state.startLoc, i = this.jsxParseIdentifier(); if (!this.eat(14)) return i; let n = this.startNodeAt(r); return n.namespace = i, n.name = this.jsxParseIdentifier(), this.finishNode(n, "JSXNamespacedName"); } jsxParseElementName() { let r = this.state.startLoc, i = this.jsxParseNamespacedName(); if (i.type === "JSXNamespacedName") return i; for (; this.eat(16); ) { let n = this.startNodeAt(r); n.object = i, n.property = this.jsxParseIdentifier(), i = this.finishNode(n, "JSXMemberExpression"); } return i; } jsxParseAttributeValue() { let r; switch (this.state.type) { case 5: return r = this.startNode(), this.setContext(Et.brace), this.next(), r = this.jsxParseExpressionContainer(r, Et.j_oTag), r.expression. type === "JSXEmptyExpression" && this.raise(zo.AttributeIsEmpty, r), r; case 143: case 134: return this.parseExprAtom(); default: throw this.raise(zo.UnsupportedJsxValue, this.state.startLoc); } } jsxParseEmptyExpression() { let r = this.startNodeAt(this.state.lastTokEndLoc); return this.finishNodeAt(r, "JSXEmptyExpression", this.state.startLoc); } jsxParseSpreadChild(r) { return this.next(), r.expression = this.parseExpression(), this.setContext(Et.j_expr), this.state.canStartJSXElement = !0, this.expect( 8), this.finishNode(r, "JSXSpreadChild"); } jsxParseExpressionContainer(r, i) { if (this.match(8)) r.expression = this.jsxParseEmptyExpression(); else { let n = this.parseExpression(); r.expression = n; } return this.setContext(i), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(r, "JSXExpressionContainer"); } jsxParseAttribute() { let r = this.startNode(); return this.match(5) ? (this.setContext(Et.brace), this.next(), this.expect(21), r.argument = this.parseMaybeAssignAllowIn(), this.setContext( Et.j_oTag), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(r, "JSXSpreadAttribute")) : (r.name = this.jsxParseNamespacedName(), r.value = this.eat(29) ? this.jsxParseAttributeValue() : null, this.finishNode(r, "JSXAttribute")); } jsxParseOpeningElementAt(r) { let i = this.startNodeAt(r); return this.eat(144) ? this.finishNode(i, "JSXOpeningFragment") : (i.name = this.jsxParseElementName(), this.jsxParseOpeningElementAfterName( i)); } jsxParseOpeningElementAfterName(r) { let i = []; for (; !this.match(56) && !this.match(144); ) i.push(this.jsxParseAttribute()); return r.attributes = i, r.selfClosing = this.eat(56), this.expect(144), this.finishNode(r, "JSXOpeningElement"); } jsxParseClosingElementAt(r) { let i = this.startNodeAt(r); return this.eat(144) ? this.finishNode(i, "JSXClosingFragment") : (i.name = this.jsxParseElementName(), this.expect(144), this.finishNode( i, "JSXClosingElement")); } jsxParseElementAt(r) { let i = this.startNodeAt(r), n = [], a = this.jsxParseOpeningElementAt(r), o = null; if (!a.selfClosing) { e: for (; ; ) switch (this.state.type) { case 143: if (r = this.state.startLoc, this.next(), this.eat(56)) { o = this.jsxParseClosingElementAt(r); break e; } n.push(this.jsxParseElementAt(r)); break; case 142: n.push(this.parseLiteral(this.state.value, "JSXText")); break; case 5: { let u = this.startNode(); this.setContext(Et.brace), this.next(), this.match(21) ? n.push(this.jsxParseSpreadChild(u)) : n.push(this.jsxParseExpressionContainer( u, Et.j_expr)); break; } default: this.unexpected(); } La(a) && !La(o) && o !== null ? this.raise(zo.MissingClosingTagFragment, o) : !La(a) && La(o) ? this.raise(zo.MissingClosingTagElement, o, { openingTagName: jl(a.name) }) : !La(a) && !La(o) && jl(o.name) !== jl(a.name) && this.raise(zo.MissingClosingTagElement, o, { openingTagName: jl(a.name) }); } if (La(a) ? (i.openingFragment = a, i.closingFragment = o) : (i.openingElement = a, i.closingElement = o), i.children = n, this.match( 47)) throw this.raise(zo.UnwrappedAdjacentJSXElements, this.state.startLoc); return La(a) ? this.finishNode(i, "JSXFragment") : this.finishNode(i, "JSXElement"); } jsxParseElement() { let r = this.state.startLoc; return this.next(), this.jsxParseElementAt(r); } setContext(r) { let { context: i } = this.state; i[i.length - 1] = r; } parseExprAtom(r) { return this.match(143) ? this.jsxParseElement() : this.match(47) && this.input.charCodeAt(this.state.pos) !== 33 ? (this.replaceToken( 143), this.jsxParseElement()) : super.parseExprAtom(r); } skipSpace() { this.curContext().preserveSpace || super.skipSpace(); } getTokenFromCode(r) { let i = this.curContext(); if (i === Et.j_expr) { this.jsxReadToken(); return; } if (i === Et.j_oTag || i === Et.j_cTag) { if (Us(r)) { this.jsxReadWord(); return; } if (r === 62) { ++this.state.pos, this.finishToken(144); return; } if ((r === 34 || r === 39) && i === Et.j_oTag) { this.jsxReadString(r); return; } } if (r === 60 && this.state.canStartJSXElement && this.input.charCodeAt(this.state.pos + 1) !== 33) { ++this.state.pos, this.finishToken(143); return; } super.getTokenFromCode(r); } updateContext(r) { let { context: i, type: n } = this.state; if (n === 56 && r === 143) i.splice(-2, 2, Et.j_cTag), this.state.canStartJSXElement = !1; else if (n === 143) i.push(Et.j_oTag); else if (n === 144) { let a = i[i.length - 1]; a === Et.j_oTag && r === 56 || a === Et.j_cTag ? (i.pop(), this.state.canStartJSXElement = i[i.length - 1] === Et.j_expr) : (this.setContext( Et.j_expr), this.state.canStartJSXElement = !0); } else this.state.canStartJSXElement = _2e(n); } }, "jsx"), cC = class extends Nd { static { s(this, "TypeScriptScope"); } constructor(...t) { super(...t), this.tsNames = /* @__PURE__ */ new Map(); } }, fC = class extends Md { static { s(this, "TypeScriptScopeHandler"); } constructor(...t) { super(...t), this.importsStack = []; } createScope(t) { return this.importsStack.push(/* @__PURE__ */ new Set()), new cC(t); } enter(t) { t === 256 && this.importsStack.push(/* @__PURE__ */ new Set()), super.enter(t); } exit() { let t = super.exit(); return t === 256 && this.importsStack.pop(), t; } hasImport(t, r) { let i = this.importsStack.length; if (this.importsStack[i - 1].has(t)) return !0; if (!r && i > 1) { for (let n = 0; n < i - 1; n++) if (this.importsStack[n].has(t)) return !0; } return !1; } declareName(t, r, i) { if (r & 4096) { this.hasImport(t, !0) && this.parser.raise(L.VarRedeclaration, i, { identifierName: t }), this.importsStack[this.importsStack.length - 1].add(t); return; } let n = this.currentScope(), a = n.tsNames.get(t) || 0; if (r & 1024) { this.maybeExportDefined(n, t), n.tsNames.set(t, a | 16); return; } super.declareName(t, r, i), r & 2 && (r & 1 || (this.checkRedeclarationInScope(n, t, r, i), this.maybeExportDefined(n, t)), a = a | 1), r & 256 && (a = a | 2), r & 512 && (a = a | 4), r & 128 && (a = a | 8), a && n.tsNames.set(t, a); } isRedeclaredInScope(t, r, i) { let n = t.tsNames.get(r); if ((n & 2) > 0) { if (i & 256) { let a = !!(i & 512), o = (n & 4) > 0; return a !== o; } return !0; } return i & 128 && (n & 8) > 0 ? t.names.get(r) & 2 ? !!(i & 1) : !1 : i & 2 && (n & 1) > 0 ? !0 : super.isRedeclaredInScope(t, r, i); } checkLocalExport(t) { let { name: r } = t; if (this.hasImport(r)) return; let i = this.scopeStack.length; for (let n = i - 1; n >= 0; n--) { let o = this.scopeStack[n].tsNames.get(r); if ((o & 1) > 0 || (o & 16) > 0) return; } super.checkLocalExport(t); } }, W9 = /* @__PURE__ */ s((e) => e.type === "ParenthesizedExpression" ? W9(e.expression) : e, "unwrapParenthesizedExpression"), dC = class extends lC { static { s(this, "LValParser"); } toAssignable(t, r = !1) { var i, n; let a; switch ((t.type === "ParenthesizedExpression" || (i = t.extra) != null && i.parenthesized) && (a = W9(t), r ? a.type === "Identifier" ? this.expressionScope.recordArrowParameterBindingError(L.InvalidParenthesizedAssignment, t) : a.type !== "MemberExpression" && !this.isOptionalMemberExpression( a) && this.raise(L.InvalidParenthesizedAssignment, t) : this.raise(L.InvalidParenthesizedAssignment, t)), t.type) { case "Identifier": case "ObjectPattern": case "ArrayPattern": case "AssignmentPattern": case "RestElement": break; case "ObjectExpression": t.type = "ObjectPattern"; for (let u = 0, l = t.properties.length, c = l - 1; u < l; u++) { var o; let f = t.properties[u], m = u === c; this.toAssignableObjectExpressionProp(f, m, r), m && f.type === "RestElement" && (o = t.extra) != null && o.trailingCommaLoc && this. raise(L.RestTrailingComma, t.extra.trailingCommaLoc); } break; case "ObjectProperty": { let { key: u, value: l } = t; this.isPrivateName(u) && this.classScope.usePrivateName(this.getPrivateNameSV(u), u.loc.start), this.toAssignable(l, r); break; } case "SpreadElement": throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignabl\ e's caller."); case "ArrayExpression": t.type = "ArrayPattern", this.toAssignableList(t.elements, (n = t.extra) == null ? void 0 : n.trailingCommaLoc, r); break; case "AssignmentExpression": t.operator !== "=" && this.raise(L.MissingEqInAssignment, t.left.loc.end), t.type = "AssignmentPattern", delete t.operator, this.toAssignable( t.left, r); break; case "ParenthesizedExpression": this.toAssignable(a, r); break; } } toAssignableObjectExpressionProp(t, r, i) { if (t.type === "ObjectMethod") this.raise(t.kind === "get" || t.kind === "set" ? L.PatternHasAccessor : L.PatternHasMethod, t.key); else if (t.type === "SpreadElement") { t.type = "RestElement"; let n = t.argument; this.checkToRestConversion(n, !1), this.toAssignable(n, i), r || this.raise(L.RestTrailingComma, t); } else this.toAssignable(t, i); } toAssignableList(t, r, i) { let n = t.length - 1; for (let a = 0; a <= n; a++) { let o = t[a]; o && (this.toAssignableListItem(t, a, i), o.type === "RestElement" && (a < n ? this.raise(L.RestTrailingComma, o) : r && this.raise( L.RestTrailingComma, r))); } } toAssignableListItem(t, r, i) { let n = t[r]; if (n.type === "SpreadElement") { n.type = "RestElement"; let a = n.argument; this.checkToRestConversion(a, !0), this.toAssignable(a, i); } else this.toAssignable(n, i); } isAssignable(t, r) { switch (t.type) { case "Identifier": case "ObjectPattern": case "ArrayPattern": case "AssignmentPattern": case "RestElement": return !0; case "ObjectExpression": { let i = t.properties.length - 1; return t.properties.every((n, a) => n.type !== "ObjectMethod" && (a === i || n.type !== "SpreadElement") && this.isAssignable(n)); } case "ObjectProperty": return this.isAssignable(t.value); case "SpreadElement": return this.isAssignable(t.argument); case "ArrayExpression": return t.elements.every((i) => i === null || this.isAssignable(i)); case "AssignmentExpression": return t.operator === "="; case "ParenthesizedExpression": return this.isAssignable(t.expression); case "MemberExpression": case "OptionalMemberExpression": return !r; default: return !1; } } toReferencedList(t, r) { return t; } toReferencedListDeep(t, r) { this.toReferencedList(t, r); for (let i of t) i?.type === "ArrayExpression" && this.toReferencedListDeep(i.elements); } parseSpread(t) { let r = this.startNode(); return this.next(), r.argument = this.parseMaybeAssignAllowIn(t, void 0), this.finishNode(r, "SpreadElement"); } parseRestBinding() { let t = this.startNode(); return this.next(), t.argument = this.parseBindingAtom(), this.finishNode(t, "RestElement"); } parseBindingAtom() { switch (this.state.type) { case 0: { let t = this.startNode(); return this.next(), t.elements = this.parseBindingList(3, 93, 1), this.finishNode(t, "ArrayPattern"); } case 5: return this.parseObjectLike(8, !0); } return this.parseIdentifier(); } parseBindingList(t, r, i) { let n = i & 1, a = [], o = !0; for (; !this.eat(t); ) if (o ? o = !1 : this.expect(12), n && this.match(12)) a.push(null); else { if (this.eat(t)) break; if (this.match(21)) { let u = this.parseRestBinding(); if ((this.hasPlugin("flow") || i & 2) && (u = this.parseFunctionParamType(u)), a.push(u), !this.checkCommaAfterRest(r)) { this.expect(t); break; } } else { let u = []; if (i & 2) for (this.match(26) && this.hasPlugin("decorators") && this.raise(L.UnsupportedParameterDecorator, this.state.startLoc); this. match(26); ) u.push(this.parseDecorator()); a.push(this.parseBindingElement(i, u)); } } return a; } parseBindingRestProperty(t) { return this.next(), t.argument = this.parseIdentifier(), this.checkCommaAfterRest(125), this.finishNode(t, "RestElement"); } parseBindingProperty() { let { type: t, startLoc: r } = this.state; if (t === 21) return this.parseBindingRestProperty(this.startNode()); let i = this.startNode(); return t === 139 ? (this.expectPlugin("destructuringPrivate", r), this.classScope.usePrivateName(this.state.value, r), i.key = this.parsePrivateName()) : this.parsePropertyName(i), i.method = !1, this.parseObjPropValue(i, r, !1, !1, !0, !1); } parseBindingElement(t, r) { let i = this.parseMaybeDefault(); (this.hasPlugin("flow") || t & 2) && this.parseFunctionParamType(i); let n = this.parseMaybeDefault(i.loc.start, i); return r.length && (i.decorators = r), n; } parseFunctionParamType(t) { return t; } parseMaybeDefault(t, r) { if (t ?? (t = this.state.startLoc), r = r ?? this.parseBindingAtom(), !this.eat(29)) return r; let i = this.startNodeAt(t); return i.left = r, i.right = this.parseMaybeAssignAllowIn(), this.finishNode(i, "AssignmentPattern"); } isValidLVal(t, r, i) { switch (t) { case "AssignmentPattern": return "left"; case "RestElement": return "argument"; case "ObjectProperty": return "value"; case "ParenthesizedExpression": return "expression"; case "ArrayPattern": return "elements"; case "ObjectPattern": return "properties"; } return !1; } isOptionalMemberExpression(t) { return t.type === "OptionalMemberExpression"; } checkLVal(t, r, i = 64, n = !1, a = !1, o = !1) { var u; let l = t.type; if (this.isObjectMethod(t)) return; let c = this.isOptionalMemberExpression(t); if (c || l === "MemberExpression") { c && (this.expectPlugin("optionalChainingAssign", t.loc.start), r.type !== "AssignmentExpression" && this.raise(L.InvalidLhsOptionalChaining, t, { ancestor: r })), i !== 64 && this.raise(L.InvalidPropertyBindingPattern, t); return; } if (l === "Identifier") { this.checkIdentifier(t, i, a); let { name: p } = t; n && (n.has(p) ? this.raise(L.ParamDupe, t) : n.add(p)); return; } let f = this.isValidLVal(l, !(o || (u = t.extra) != null && u.parenthesized) && r.type === "AssignmentExpression", i); if (f === !0) return; if (f === !1) { let p = i === 64 ? L.InvalidLhs : L.InvalidLhsBinding; this.raise(p, t, { ancestor: r }); return; } let m, h; typeof f == "string" ? (m = f, h = l === "ParenthesizedExpression") : [m, h] = f; let d = l === "ArrayPattern" || l === "ObjectPattern" ? { type: l } : r, y = t[m]; if (Array.isArray(y)) for (let p of y) p && this.checkLVal(p, d, i, n, a, h); else y && this.checkLVal(y, d, i, n, a, h); } checkIdentifier(t, r, i = !1) { this.state.strict && (i ? R9(t.name, this.inModule) : M9(t.name)) && (r === 64 ? this.raise(L.StrictEvalArguments, t, { referenceName: t.name }) : this.raise(L.StrictEvalArgumentsBinding, t, { bindingName: t.name })), r & 8192 && t.name === "let" && this.raise(L.LetInLexicalBinding, t), r & 64 || this.declareNameFromIdentifier(t, r); } declareNameFromIdentifier(t, r) { this.scope.declareName(t.name, r, t.loc.start); } checkToRestConversion(t, r) { switch (t.type) { case "ParenthesizedExpression": this.checkToRestConversion(t.expression, r); break; case "Identifier": case "MemberExpression": break; case "ArrayExpression": case "ObjectExpression": if (r) break; default: this.raise(L.InvalidRestAssignmentPattern, t); } } checkCommaAfterRest(t) { return this.match(12) ? (this.raise(this.lookaheadCharCode() === t ? L.RestTrailingComma : L.ElementAfterRest, this.state.startLoc), !0) : !1; } }; function pPe(e) { if (e == null) throw new Error(`Unexpected ${e} value.`); return e; } s(pPe, "nonNull"); function C9(e) { if (!e) throw new Error("Assert fail"); } s(C9, "assert"); var Pe = Ws`typescript`({ AbstractMethodHasImplementation: /* @__PURE__ */ s(({ methodName: e }) => `Method '${e}' cannot have an implementation because it is marked abstract.`, "AbstractMethodHasImplementation"), AbstractPropertyHasInitializer: /* @__PURE__ */ s(({ propertyName: e }) => `Property '${e}' cannot have an initializer because it is marked abstract.`, "AbstractPropertyHasInitializer"), AccessorCannotBeOptional: "An 'accessor' property cannot be declared optional.", AccessorCannotDeclareThisParameter: "'get' and 'set' accessors cannot declare 'this' parameters.", AccessorCannotHaveTypeParameters: "An accessor cannot have type parameters.", ClassMethodHasDeclare: "Class methods cannot have the 'declare' modifier.", ClassMethodHasReadonly: "Class methods cannot have the 'readonly' modifier.", ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "A 'const' initializer in an ambient context must be a string or num\ eric literal or literal enum reference.", ConstructorHasTypeParameters: "Type parameters cannot appear on a constructor declaration.", DeclareAccessor: /* @__PURE__ */ s(({ kind: e }) => `'declare' is not allowed in ${e}ters.`, "DeclareAccessor"), DeclareClassFieldHasInitializer: "Initializers are not allowed in ambient contexts.", DeclareFunctionHasImplementation: "An implementation cannot be declared in ambient contexts.", DuplicateAccessibilityModifier: /* @__PURE__ */ s(({ modifier: e }) => "Accessibility modifier already seen.", "DuplicateAccessibilityModifier"), DuplicateModifier: /* @__PURE__ */ s(({ modifier: e }) => `Duplicate modifier: '${e}'.`, "DuplicateModifier"), EmptyHeritageClauseType: /* @__PURE__ */ s(({ token: e }) => `'${e}' list cannot be empty.`, "EmptyHeritageClauseType"), EmptyTypeArguments: "Type argument list cannot be empty.", EmptyTypeParameters: "Type parameter list cannot be empty.", ExpectedAmbientAfterExportDeclare: "'export declare' must be followed by an ambient declaration.", ImportAliasHasImportType: "An import alias can not use 'import type'.", ImportReflectionHasImportType: "An `import module` declaration can not use `type` modifier", IncompatibleModifiers: /* @__PURE__ */ s(({ modifiers: e }) => `'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`, "IncompatibleModifiers"), IndexSignatureHasAbstract: "Index signatures cannot have the 'abstract' modifier.", IndexSignatureHasAccessibility: /* @__PURE__ */ s(({ modifier: e }) => `Index signatures cannot have an accessibility modifier ('${e}').`, "IndexSignatureHasAccessibility"), IndexSignatureHasDeclare: "Index signatures cannot have the 'declare' modifier.", IndexSignatureHasOverride: "'override' modifier cannot appear on an index signature.", IndexSignatureHasStatic: "Index signatures cannot have the 'static' modifier.", InitializerNotAllowedInAmbientContext: "Initializers are not allowed in ambient contexts.", InvalidHeritageClauseType: /* @__PURE__ */ s(({ token: e }) => `'${e}' list can only include identifiers or qualified-names with optional type arguments.`, "InvalidHeritageClauseType"), InvalidModifierOnTypeMember: /* @__PURE__ */ s(({ modifier: e }) => `'${e}' modifier cannot appear on a type member.`, "InvalidModifierOnTypeMember"), InvalidModifierOnTypeParameter: /* @__PURE__ */ s(({ modifier: e }) => `'${e}' modifier cannot appear on a type parameter.`, "InvalidModifierOnTypeParameter"), InvalidModifierOnTypeParameterPositions: /* @__PURE__ */ s(({ modifier: e }) => `'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`, "InvalidModifierOnTypeParameterPositio\ ns"), InvalidModifiersOrder: /* @__PURE__ */ s(({ orderedModifiers: e }) => `'${e[0]}' modifier must precede '${e[1]}' modifier.`, "InvalidModifiersOrder"), InvalidPropertyAccessAfterInstantiationExpression: "Invalid property access after an instantiation expression. You can either wrap the i\ nstantiation expression in parentheses, or delete the type arguments.", InvalidTupleMemberLabel: "Tuple members must be labeled with a simple identifier.", MissingInterfaceName: "'interface' declarations must be followed by an identifier.", NonAbstractClassHasAbstractMethod: "Abstract methods can only appear within an abstract class.", NonClassMethodPropertyHasAbstractModifer: "'abstract' modifier can only appear on a class, method, or property declaration.", OptionalTypeBeforeRequired: "A required element cannot follow an optional element.", OverrideNotInSubClass: "This member cannot have an 'override' modifier because its containing class does not extend another class.", PatternIsOptional: "A binding pattern parameter cannot be optional in an implementation signature.", PrivateElementHasAbstract: "Private elements cannot have the 'abstract' modifier.", PrivateElementHasAccessibility: /* @__PURE__ */ s(({ modifier: e }) => `Private elements cannot have an accessibility modifier ('${e}').`, "PrivateElementHasAccessibility"), ReadonlyForMethodSignature: "'readonly' modifier can only appear on a property declaration or index signature.", ReservedArrowTypeParam: "This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.", ReservedTypeAssertion: "This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.", SetAccessorCannotHaveOptionalParameter: "A 'set' accessor cannot have an optional parameter.", SetAccessorCannotHaveRestParameter: "A 'set' accessor cannot have rest parameter.", SetAccessorCannotHaveReturnType: "A 'set' accessor cannot have a return type annotation.", SingleTypeParameterWithoutTrailingComma: /* @__PURE__ */ s(({ typeParameterName: e }) => `Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`, "SingleTypeParameterWithoutTrailingComma"), StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.", TupleOptionalAfterType: "A labeled tuple optional element must be declared using a question mark after the name and before the colon (`n\ ame?: type`), rather than after the type (`name: type?`).", TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number =\ 25`.", TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.", TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statemen\ t.", TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statemen\ t.", UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.", UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.", UnexpectedTypeAnnotation: "Did not expect a type annotation here.", UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.", UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.", UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.", UnsupportedSignatureParameterKind: /* @__PURE__ */ s(({ type: e }) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`, "UnsupportedSignatureParameterKind") }); function hPe(e) { switch (e) { case "any": return "TSAnyKeyword"; case "boolean": return "TSBooleanKeyword"; case "bigint": return "TSBigIntKeyword"; case "never": return "TSNeverKeyword"; case "number": return "TSNumberKeyword"; case "object": return "TSObjectKeyword"; case "string": return "TSStringKeyword"; case "symbol": return "TSSymbolKeyword"; case "undefined": return "TSUndefinedKeyword"; case "unknown": return "TSUnknownKeyword"; default: return; } } s(hPe, "keywordTypeFromName"); function w9(e) { return e === "private" || e === "public" || e === "protected"; } s(w9, "tsIsAccessModifier"); function mPe(e) { return e === "in" || e === "out"; } s(mPe, "tsIsVarianceAnnotations"); var yPe = /* @__PURE__ */ s((e) => class extends e { static { s(this, "TypeScriptParserMixin"); } constructor(...r) { super(...r), this.tsParseInOutModifiers = this.tsParseModifiers.bind(this, { allowedModifiers: ["in", "out"], disallowedModifiers: ["const", "public", "private", "protected", "readonly", "declare", "abstract", "override"], errorTemplate: Pe.InvalidModifierOnTypeParameter }), this.tsParseConstModifier = this.tsParseModifiers.bind(this, { allowedModifiers: ["const"], disallowedModifiers: ["in", "out"], errorTemplate: Pe.InvalidModifierOnTypeParameterPositions }), this.tsParseInOutConstModifiers = this.tsParseModifiers.bind(this, { allowedModifiers: ["in", "out", "const"], disallowedModifiers: ["public", "private", "protected", "readonly", "declare", "abstract", "override"], errorTemplate: Pe.InvalidModifierOnTypeParameter }); } getScopeHandler() { return fC; } tsIsIdentifier() { return xt(this.state.type); } tsTokenCanFollowModifier() { return this.match(0) || this.match(5) || this.match(55) || this.match(21) || this.match(139) || this.isLiteralPropertyName(); } tsNextTokenOnSameLineAndCanFollowModifier() { return this.next(), this.hasPrecedingLineBreak() ? !1 : this.tsTokenCanFollowModifier(); } tsNextTokenCanFollowModifier() { return this.match(106) ? (this.next(), this.tsTokenCanFollowModifier()) : this.tsNextTokenOnSameLineAndCanFollowModifier(); } tsParseModifier(r, i) { if (!xt(this.state.type) && this.state.type !== 58 && this.state.type !== 75) return; let n = this.state.value; if (r.includes(n)) { if (i && this.tsIsStartOfStaticBlocks()) return; if (this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))) return n; } } tsParseModifiers({ allowedModifiers: r, disallowedModifiers: i, stopOnStartOfClassStaticBlock: n, errorTemplate: a = Pe.InvalidModifierOnTypeMember }, o) { let u = /* @__PURE__ */ s((c, f, m, h) => { f === m && o[h] && this.raise(Pe.InvalidModifiersOrder, c, { orderedModifiers: [m, h] }); }, "enforceOrder"), l = /* @__PURE__ */ s((c, f, m, h) => { (o[m] && f === h || o[h] && f === m) && this.raise(Pe.IncompatibleModifiers, c, { modifiers: [m, h] }); }, "incompatible"); for (; ; ) { let { startLoc: c } = this.state, f = this.tsParseModifier(r.concat(i ?? []), n); if (!f) break; w9(f) ? o.accessibility ? this.raise(Pe.DuplicateAccessibilityModifier, c, { modifier: f }) : (u(c, f, f, "override"), u(c, f, f, "static"), u(c, f, f, "readonly"), o.accessibility = f) : mPe(f) ? (o[f] && this.raise(Pe.DuplicateModifier, c, { modifier: f }), o[f] = !0, u(c, f, "in", "out")) : (hasOwnProperty.call(o, f) ? this.raise(Pe.DuplicateModifier, c, { modifier: f }) : (u(c, f, "static", "readonly"), u(c, f, "static", "override"), u(c, f, "override", "readonly"), u(c, f, "abstract", "override"), l(c, f, "declare", "override"), l(c, f, "static", "abstract")), o[f] = !0), i != null && i.includes(f) && this.raise(a, c, { modifier: f }); } } tsIsListTerminator(r) { switch (r) { case "EnumMembers": case "TypeMembers": return this.match(8); case "HeritageClauseElement": return this.match(5); case "TupleElementTypes": return this.match(3); case "TypeParametersOrArguments": return this.match(48); } } tsParseList(r, i) { let n = []; for (; !this.tsIsListTerminator(r); ) n.push(i()); return n; } tsParseDelimitedList(r, i, n) { return pPe(this.tsParseDelimitedListWorker(r, i, !0, n)); } tsParseDelimitedListWorker(r, i, n, a) { let o = [], u = -1; for (; !this.tsIsListTerminator(r); ) { u = -1; let l = i(); if (l == null) return; if (o.push(l), this.eat(12)) { u = this.state.lastTokStartLoc.index; continue; } if (this.tsIsListTerminator(r)) break; n && this.expect(12); return; } return a && (a.value = u), o; } tsParseBracketedList(r, i, n, a, o) { a || (n ? this.expect(0) : this.expect(47)); let u = this.tsParseDelimitedList(r, i, o); return n ? this.expect(3) : this.expect(48), u; } tsParseImportType() { let r = this.startNode(); return this.expect(83), this.expect(10), this.match(134) ? r.argument = this.parseStringLiteral(this.state.value) : (this.raise(Pe.UnsupportedImportTypeArgument, this.state.startLoc), r.argument = super.parseExprAtom()), this.eat(12) && !this.match(11) ? (r.options = super.parseMaybeAssignAllowIn(), this.eat(12)) : r.options = null, this.expect(11), this.eat(16) && (r.qualifier = this.tsParseEntityName(3)), this.match(47) && (r.typeParameters = this.tsParseTypeArguments()), this.finishNode(r, "TSImportType"); } tsParseEntityName(r) { let i; if (r & 1 && this.match(78)) if (r & 2) i = this.parseIdentifier(!0); else { let n = this.startNode(); this.next(), i = this.finishNode(n, "ThisExpression"); } else i = this.parseIdentifier(!!(r & 1)); for (; this.eat(16); ) { let n = this.startNodeAtNode(i); n.left = i, n.right = this.parseIdentifier(!!(r & 1)), i = this.finishNode(n, "TSQualifiedName"); } return i; } tsParseTypeReference() { let r = this.startNode(); return r.typeName = this.tsParseEntityName(1), !this.hasPrecedingLineBreak() && this.match(47) && (r.typeParameters = this.tsParseTypeArguments()), this.finishNode(r, "TSTypeReference"); } tsParseThisTypePredicate(r) { this.next(); let i = this.startNodeAtNode(r); return i.parameterName = r, i.typeAnnotation = this.tsParseTypeAnnotation(!1), i.asserts = !1, this.finishNode(i, "TSTypePredicate"); } tsParseThisTypeNode() { let r = this.startNode(); return this.next(), this.finishNode(r, "TSThisType"); } tsParseTypeQuery() { let r = this.startNode(); return this.expect(87), this.match(83) ? r.exprName = this.tsParseImportType() : r.exprName = this.tsParseEntityName(3), !this.hasPrecedingLineBreak() && this.match(47) && (r.typeParameters = this.tsParseTypeArguments()), this.finishNode(r, "TSTypeQuery"); } tsParseTypeParameter(r) { let i = this.startNode(); return r(i), i.name = this.tsParseTypeParameterName(), i.constraint = this.tsEatThenParseType(81), i.default = this.tsEatThenParseType( 29), this.finishNode(i, "TSTypeParameter"); } tsTryParseTypeParameters(r) { if (this.match(47)) return this.tsParseTypeParameters(r); } tsParseTypeParameters(r) { let i = this.startNode(); this.match(47) || this.match(143) ? this.next() : this.unexpected(); let n = { value: -1 }; return i.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, r), !1, !0, n), i.params. length === 0 && this.raise(Pe.EmptyTypeParameters, i), n.value !== -1 && this.addExtra(i, "trailingComma", n.value), this.finishNode(i, "TSTypeParameterDeclaration"); } tsFillSignature(r, i) { let n = r === 19, a = "parameters", o = "typeAnnotation"; i.typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier), this.expect(10), i[a] = this.tsParseBindingListForSignature(), n ? i[o] = this.tsParseTypeOrTypePredicateAnnotation(r) : this.match(r) && (i[o] = this.tsParseTypeOrTypePredicateAnnotation(r)); } tsParseBindingListForSignature() { let r = super.parseBindingList(11, 41, 2); for (let i of r) { let { type: n } = i; (n === "AssignmentPattern" || n === "TSParameterProperty") && this.raise(Pe.UnsupportedSignatureParameterKind, i, { type: n }); } return r; } tsParseTypeMemberSemicolon() { !this.eat(12) && !this.isLineTerminator() && this.expect(13); } tsParseSignatureMember(r, i) { return this.tsFillSignature(14, i), this.tsParseTypeMemberSemicolon(), this.finishNode(i, r); } tsIsUnambiguouslyIndexSignature() { return this.next(), xt(this.state.type) ? (this.next(), this.match(14)) : !1; } tsTryParseIndexSignature(r) { if (!(this.match(0) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))) return; this.expect(0); let i = this.parseIdentifier(); i.typeAnnotation = this.tsParseTypeAnnotation(), this.resetEndLocation(i), this.expect(3), r.parameters = [i]; let n = this.tsTryParseTypeAnnotation(); return n && (r.typeAnnotation = n), this.tsParseTypeMemberSemicolon(), this.finishNode(r, "TSIndexSignature"); } tsParsePropertyOrMethodSignature(r, i) { this.eat(17) && (r.optional = !0); let n = r; if (this.match(10) || this.match(47)) { i && this.raise(Pe.ReadonlyForMethodSignature, r); let a = n; a.kind && this.match(47) && this.raise(Pe.AccessorCannotHaveTypeParameters, this.state.curPosition()), this.tsFillSignature(14, a), this. tsParseTypeMemberSemicolon(); let o = "parameters", u = "typeAnnotation"; if (a.kind === "get") a[o].length > 0 && (this.raise(L.BadGetterArity, this.state.curPosition()), this.isThisParam(a[o][0]) && this.raise(Pe.AccessorCannotDeclareThisParameter, this.state.curPosition())); else if (a.kind === "set") { if (a[o].length !== 1) this.raise(L.BadSetterArity, this.state.curPosition()); else { let l = a[o][0]; this.isThisParam(l) && this.raise(Pe.AccessorCannotDeclareThisParameter, this.state.curPosition()), l.type === "Identifier" && l. optional && this.raise(Pe.SetAccessorCannotHaveOptionalParameter, this.state.curPosition()), l.type === "RestElement" && this.raise( Pe.SetAccessorCannotHaveRestParameter, this.state.curPosition()); } a[u] && this.raise(Pe.SetAccessorCannotHaveReturnType, a[u]); } else a.kind = "method"; return this.finishNode(a, "TSMethodSignature"); } else { let a = n; i && (a.readonly = !0); let o = this.tsTryParseTypeAnnotation(); return o && (a.typeAnnotation = o), this.tsParseTypeMemberSemicolon(), this.finishNode(a, "TSPropertySignature"); } } tsParseTypeMember() { let r = this.startNode(); if (this.match(10) || this.match(47)) return this.tsParseSignatureMember("TSCallSignatureDeclaration", r); if (this.match(77)) { let n = this.startNode(); return this.next(), this.match(10) || this.match(47) ? this.tsParseSignatureMember("TSConstructSignatureDeclaration", r) : (r.key = this. createIdentifier(n, "new"), this.tsParsePropertyOrMethodSignature(r, !1)); } this.tsParseModifiers({ allowedModifiers: ["readonly"], disallowedModifiers: ["declare", "abstract", "private", "protected", "public", "static", "override"] }, r); let i = this.tsTryParseIndexSignature(r); return i || (super.parsePropertyName(r), !r.computed && r.key.type === "Identifier" && (r.key.name === "get" || r.key.name === "set") && this.tsTokenCanFollowModifier() && (r.kind = r.key.name, super.parsePropertyName(r)), this.tsParsePropertyOrMethodSignature(r, !!r.readonly)); } tsParseTypeLiteral() { let r = this.startNode(); return r.members = this.tsParseObjectTypeMembers(), this.finishNode(r, "TSTypeLiteral"); } tsParseObjectTypeMembers() { this.expect(5); let r = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this)); return this.expect(8), r; } tsIsStartOfMappedType() { return this.next(), this.eat(53) ? this.isContextual(122) : (this.isContextual(122) && this.next(), !this.match(0) || (this.next(), !this. tsIsIdentifier()) ? !1 : (this.next(), this.match(58))); } tsParseMappedType() { let r = this.startNode(); this.expect(5), this.match(53) ? (r.readonly = this.state.value, this.next(), this.expectContextual(122)) : this.eatContextual(122) && (r.readonly = !0), this.expect(0); { let i = this.startNode(); i.name = this.tsParseTypeParameterName(), i.constraint = this.tsExpectThenParseType(58), r.typeParameter = this.finishNode(i, "TSTyp\ eParameter"); } return r.nameType = this.eatContextual(93) ? this.tsParseType() : null, this.expect(3), this.match(53) ? (r.optional = this.state.value, this.next(), this.expect(17)) : this.eat(17) && (r.optional = !0), r.typeAnnotation = this.tsTryParseType(), this.semicolon(), this.expect( 8), this.finishNode(r, "TSMappedType"); } tsParseTupleType() { let r = this.startNode(); r.elementTypes = this.tsParseBracketedList("TupleElementTypes", this.tsParseTupleElementType.bind(this), !0, !1); let i = !1; return r.elementTypes.forEach((n) => { let { type: a } = n; i && a !== "TSRestType" && a !== "TSOptionalType" && !(a === "TSNamedTupleMember" && n.optional) && this.raise(Pe.OptionalTypeBeforeRequired, n), i || (i = a === "TSNamedTupleMember" && n.optional || a === "TSOptionalType"); }), this.finishNode(r, "TSTupleType"); } tsParseTupleElementType() { let r = this.state.startLoc, i = this.eat(21), { startLoc: n } = this.state, a, o, u, l, f = Tn(this.state.type) ? this.lookaheadCharCode() : null; if (f === 58) a = !0, u = !1, o = this.parseIdentifier(!0), this.expect(14), l = this.tsParseType(); else if (f === 63) { u = !0; let m = this.state.value, h = this.tsParseNonArrayType(); this.lookaheadCharCode() === 58 ? (a = !0, o = this.createIdentifier(this.startNodeAt(n), m), this.expect(17), this.expect(14), l = this. tsParseType()) : (a = !1, l = h, this.expect(17)); } else l = this.tsParseType(), u = this.eat(17), a = this.eat(14); if (a) { let m; o ? (m = this.startNodeAt(n), m.optional = u, m.label = o, m.elementType = l, this.eat(17) && (m.optional = !0, this.raise(Pe.TupleOptionalAfterType, this.state.lastTokStartLoc))) : (m = this.startNodeAt(n), m.optional = u, this.raise(Pe.InvalidTupleMemberLabel, l), m.label = l, m. elementType = this.tsParseType()), l = this.finishNode(m, "TSNamedTupleMember"); } else if (u) { let m = this.startNodeAt(n); m.typeAnnotation = l, l = this.finishNode(m, "TSOptionalType"); } if (i) { let m = this.startNodeAt(r); m.typeAnnotation = l, l = this.finishNode(m, "TSRestType"); } return l; } tsParseParenthesizedType() { let r = this.startNode(); return this.expect(10), r.typeAnnotation = this.tsParseType(), this.expect(11), this.finishNode(r, "TSParenthesizedType"); } tsParseFunctionOrConstructorType(r, i) { let n = this.startNode(); return r === "TSConstructorType" && (n.abstract = !!i, i && this.next(), this.next()), this.tsInAllowConditionalTypesContext(() => this. tsFillSignature(19, n)), this.finishNode(n, r); } tsParseLiteralTypeNode() { let r = this.startNode(); switch (this.state.type) { case 135: case 136: case 134: case 85: case 86: r.literal = super.parseExprAtom(); break; default: this.unexpected(); } return this.finishNode(r, "TSLiteralType"); } tsParseTemplateLiteralType() { { let r = this.startNode(); return r.literal = super.parseTemplate(!1), this.finishNode(r, "TSLiteralType"); } } parseTemplateSubstitution() { return this.state.inType ? this.tsParseType() : super.parseTemplateSubstitution(); } tsParseThisTypeOrThisTypePredicate() { let r = this.tsParseThisTypeNode(); return this.isContextual(116) && !this.hasPrecedingLineBreak() ? this.tsParseThisTypePredicate(r) : r; } tsParseNonArrayType() { switch (this.state.type) { case 134: case 135: case 136: case 85: case 86: return this.tsParseLiteralTypeNode(); case 53: if (this.state.value === "-") { let r = this.startNode(), i = this.lookahead(); return i.type !== 135 && i.type !== 136 && this.unexpected(), r.literal = this.parseMaybeUnary(), this.finishNode(r, "TSLiteralT\ ype"); } break; case 78: return this.tsParseThisTypeOrThisTypePredicate(); case 87: return this.tsParseTypeQuery(); case 83: return this.tsParseImportType(); case 5: return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this)) ? this.tsParseMappedType() : this.tsParseTypeLiteral(); case 0: return this.tsParseTupleType(); case 10: return this.tsParseParenthesizedType(); case 25: case 24: return this.tsParseTemplateLiteralType(); default: { let { type: r } = this.state; if (xt(r) || r === 88 || r === 84) { let i = r === 88 ? "TSVoidKeyword" : r === 84 ? "TSNullKeyword" : hPe(this.state.value); if (i !== void 0 && this.lookaheadCharCode() !== 46) { let n = this.startNode(); return this.next(), this.finishNode(n, i); } return this.tsParseTypeReference(); } } } this.unexpected(); } tsParseArrayTypeOrHigher() { let { startLoc: r } = this.state, i = this.tsParseNonArrayType(); for (; !this.hasPrecedingLineBreak() && this.eat(0); ) if (this.match(3)) { let n = this.startNodeAt(r); n.elementType = i, this.expect(3), i = this.finishNode(n, "TSArrayType"); } else { let n = this.startNodeAt(r); n.objectType = i, n.indexType = this.tsParseType(), this.expect(3), i = this.finishNode(n, "TSIndexedAccessType"); } return i; } tsParseTypeOperator() { let r = this.startNode(), i = this.state.value; return this.next(), r.operator = i, r.typeAnnotation = this.tsParseTypeOperatorOrHigher(), i === "readonly" && this.tsCheckTypeAnnotationForReadOnly( r), this.finishNode(r, "TSTypeOperator"); } tsCheckTypeAnnotationForReadOnly(r) { switch (r.typeAnnotation.type) { case "TSTupleType": case "TSArrayType": return; default: this.raise(Pe.UnexpectedReadonly, r); } } tsParseInferType() { let r = this.startNode(); this.expectContextual(115); let i = this.startNode(); return i.name = this.tsParseTypeParameterName(), i.constraint = this.tsTryParse(() => this.tsParseConstraintForInferType()), r.typeParameter = this.finishNode(i, "TSTypeParameter"), this.finishNode(r, "TSInferType"); } tsParseConstraintForInferType() { if (this.eat(81)) { let r = this.tsInDisallowConditionalTypesContext(() => this.tsParseType()); if (this.state.inDisallowConditionalTypesContext || !this.match(17)) return r; } } tsParseTypeOperatorOrHigher() { return B2e(this.state.type) && !this.state.containsEsc ? this.tsParseTypeOperator() : this.isContextual(115) ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(() => this.tsParseArrayTypeOrHigher()); } tsParseUnionOrIntersectionType(r, i, n) { let a = this.startNode(), o = this.eat(n), u = []; do u.push(i()); while (this.eat(n)); return u.length === 1 && !o ? u[0] : (a.types = u, this.finishNode(a, r)); } tsParseIntersectionTypeOrHigher() { return this.tsParseUnionOrIntersectionType("TSIntersectionType", this.tsParseTypeOperatorOrHigher.bind(this), 45); } tsParseUnionTypeOrHigher() { return this.tsParseUnionOrIntersectionType("TSUnionType", this.tsParseIntersectionTypeOrHigher.bind(this), 43); } tsIsStartOfFunctionType() { return this.match(47) ? !0 : this.match(10) && this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this)); } tsSkipParameterStart() { if (xt(this.state.type) || this.match(78)) return this.next(), !0; if (this.match(5)) { let { errors: r } = this.state, i = r.length; try { return this.parseObjectLike(8, !0), r.length === i; } catch { return !1; } } if (this.match(0)) { this.next(); let { errors: r } = this.state, i = r.length; try { return super.parseBindingList(3, 93, 1), r.length === i; } catch { return !1; } } return !1; } tsIsUnambiguouslyStartOfFunctionType() { return this.next(), !!(this.match(11) || this.match(21) || this.tsSkipParameterStart() && (this.match(14) || this.match(12) || this.match( 17) || this.match(29) || this.match(11) && (this.next(), this.match(19)))); } tsParseTypeOrTypePredicateAnnotation(r) { return this.tsInType(() => { let i = this.startNode(); this.expect(r); let n = this.startNode(), a = !!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this)); if (a && this.match(78)) { let l = this.tsParseThisTypeOrThisTypePredicate(); return l.type === "TSThisType" ? (n.parameterName = l, n.asserts = !0, n.typeAnnotation = null, l = this.finishNode(n, "TSTypePred\ icate")) : (this.resetStartLocationFromNode(l, n), l.asserts = !0), i.typeAnnotation = l, this.finishNode(i, "TSTypeAnnotation"); } let o = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this)); if (!o) return a ? (n.parameterName = this.parseIdentifier(), n.asserts = a, n.typeAnnotation = null, i.typeAnnotation = this.finishNode(n, "TSTypePredicate"), this.finishNode(i, "TSTypeAnnotation")) : this.tsParseTypeAnnotation(!1, i); let u = this.tsParseTypeAnnotation(!1); return n.parameterName = o, n.typeAnnotation = u, n.asserts = a, i.typeAnnotation = this.finishNode(n, "TSTypePredicate"), this.finishNode( i, "TSTypeAnnotation"); }); } tsTryParseTypeOrTypePredicateAnnotation() { if (this.match(14)) return this.tsParseTypeOrTypePredicateAnnotation(14); } tsTryParseTypeAnnotation() { if (this.match(14)) return this.tsParseTypeAnnotation(); } tsTryParseType() { return this.tsEatThenParseType(14); } tsParseTypePredicatePrefix() { let r = this.parseIdentifier(); if (this.isContextual(116) && !this.hasPrecedingLineBreak()) return this.next(), r; } tsParseTypePredicateAsserts() { if (this.state.type !== 109) return !1; let r = this.state.containsEsc; return this.next(), !xt(this.state.type) && !this.match(78) ? !1 : (r && this.raise(L.InvalidEscapedReservedWord, this.state.lastTokStartLoc, { reservedWord: "asserts" }), !0); } tsParseTypeAnnotation(r = !0, i = this.startNode()) { return this.tsInType(() => { r && this.expect(14), i.typeAnnotation = this.tsParseType(); }), this.finishNode(i, "TSTypeAnnotation"); } tsParseType() { C9(this.state.inType); let r = this.tsParseNonConditionalType(); if (this.state.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(81)) return r; let i = this.startNodeAtNode(r); return i.checkType = r, i.extendsType = this.tsInDisallowConditionalTypesContext(() => this.tsParseNonConditionalType()), this.expect( 17), i.trueType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()), this.expect(14), i.falseType = this.tsInAllowConditionalTypesContext( () => this.tsParseType()), this.finishNode(i, "TSConditionalType"); } isAbstractConstructorSignature() { return this.isContextual(124) && this.lookahead().type === 77; } tsParseNonConditionalType() { return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(77) ? this.tsParseFunctionOrConstructorType( "TSConstructorType") : this.isAbstractConstructorSignature() ? this.tsParseFunctionOrConstructorType("TSConstructorType", !0) : this.tsParseUnionTypeOrHigher(); } tsParseTypeAssertion() { this.getPluginOption("typescript", "disallowAmbiguousJSXLike") && this.raise(Pe.ReservedTypeAssertion, this.state.startLoc); let r = this.startNode(); return r.typeAnnotation = this.tsInType(() => (this.next(), this.match(75) ? this.tsParseTypeReference() : this.tsParseType())), this. expect(48), r.expression = this.parseMaybeUnary(), this.finishNode(r, "TSTypeAssertion"); } tsParseHeritageClause(r) { let i = this.state.startLoc, n = this.tsParseDelimitedList("HeritageClauseElement", () => { { let a = this.startNode(); return a.expression = this.tsParseEntityName(3), this.match(47) && (a.typeParameters = this.tsParseTypeArguments()), this.finishNode( a, "TSExpressionWithTypeArguments"); } }); return n.length || this.raise(Pe.EmptyHeritageClauseType, i, { token: r }), n; } tsParseInterfaceDeclaration(r, i = {}) { if (this.hasFollowingLineBreak()) return null; this.expectContextual(129), i.declare && (r.declare = !0), xt(this.state.type) ? (r.id = this.parseIdentifier(), this.checkIdentifier( r.id, 130)) : (r.id = null, this.raise(Pe.MissingInterfaceName, this.state.startLoc)), r.typeParameters = this.tsTryParseTypeParameters( this.tsParseInOutConstModifiers), this.eat(81) && (r.extends = this.tsParseHeritageClause("extends")); let n = this.startNode(); return n.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)), r.body = this.finishNode(n, "TSInterfaceBody"), this.finishNode( r, "TSInterfaceDeclaration"); } tsParseTypeAliasDeclaration(r) { return r.id = this.parseIdentifier(), this.checkIdentifier(r.id, 2), r.typeAnnotation = this.tsInType(() => { if (r.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers), this.expect(29), this.isContextual(114) && this.lookahead(). type !== 16) { let i = this.startNode(); return this.next(), this.finishNode(i, "TSIntrinsicKeyword"); } return this.tsParseType(); }), this.semicolon(), this.finishNode(r, "TSTypeAliasDeclaration"); } tsInTopLevelContext(r) { if (this.curContext() !== Et.brace) { let i = this.state.context; this.state.context = [i[0]]; try { return r(); } finally { this.state.context = i; } } else return r(); } tsInType(r) { let i = this.state.inType; this.state.inType = !0; try { return r(); } finally { this.state.inType = i; } } tsInDisallowConditionalTypesContext(r) { let i = this.state.inDisallowConditionalTypesContext; this.state.inDisallowConditionalTypesContext = !0; try { return r(); } finally { this.state.inDisallowConditionalTypesContext = i; } } tsInAllowConditionalTypesContext(r) { let i = this.state.inDisallowConditionalTypesContext; this.state.inDisallowConditionalTypesContext = !1; try { return r(); } finally { this.state.inDisallowConditionalTypesContext = i; } } tsEatThenParseType(r) { if (this.match(r)) return this.tsNextThenParseType(); } tsExpectThenParseType(r) { return this.tsInType(() => (this.expect(r), this.tsParseType())); } tsNextThenParseType() { return this.tsInType(() => (this.next(), this.tsParseType())); } tsParseEnumMember() { let r = this.startNode(); return r.id = this.match(134) ? super.parseStringLiteral(this.state.value) : this.parseIdentifier(!0), this.eat(29) && (r.initializer = super.parseMaybeAssignAllowIn()), this.finishNode(r, "TSEnumMember"); } tsParseEnumDeclaration(r, i = {}) { return i.const && (r.const = !0), i.declare && (r.declare = !0), this.expectContextual(126), r.id = this.parseIdentifier(), this.checkIdentifier( r.id, r.const ? 8971 : 8459), this.expect(5), r.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)), this.expect(8), this.finishNode(r, "TSEnumDeclaration"); } tsParseEnumBody() { let r = this.startNode(); return this.expect(5), r.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)), this.expect(8), this.finishNode( r, "TSEnumBody"); } tsParseModuleBlock() { let r = this.startNode(); return this.scope.enter(0), this.expect(5), super.parseBlockOrModuleBlockBody(r.body = [], void 0, !0, 8), this.scope.exit(), this.finishNode( r, "TSModuleBlock"); } tsParseModuleOrNamespaceDeclaration(r, i = !1) { if (r.id = this.parseIdentifier(), i || this.checkIdentifier(r.id, 1024), this.eat(16)) { let n = this.startNode(); this.tsParseModuleOrNamespaceDeclaration(n, !0), r.body = n; } else this.scope.enter(256), this.prodParam.enter(0), r.body = this.tsParseModuleBlock(), this.prodParam.exit(), this.scope.exit(); return this.finishNode(r, "TSModuleDeclaration"); } tsParseAmbientExternalModuleDeclaration(r) { return this.isContextual(112) ? (r.kind = "global", r.global = !0, r.id = this.parseIdentifier()) : this.match(134) ? (r.kind = "modul\ e", r.id = super.parseStringLiteral(this.state.value)) : this.unexpected(), this.match(5) ? (this.scope.enter(256), this.prodParam.enter(0), r.body = this.tsParseModuleBlock(), this.prodParam.exit(), this.scope.exit()) : this.semicolon(), this.finishNode(r, "TSModuleDeclarat\ ion"); } tsParseImportEqualsDeclaration(r, i, n) { r.isExport = n || !1, r.id = i || this.parseIdentifier(), this.checkIdentifier(r.id, 4096), this.expect(29); let a = this.tsParseModuleReference(); return r.importKind === "type" && a.type !== "TSExternalModuleReference" && this.raise(Pe.ImportAliasHasImportType, a), r.moduleReference = a, this.semicolon(), this.finishNode(r, "TSImportEqualsDeclaration"); } tsIsExternalModuleReference() { return this.isContextual(119) && this.lookaheadCharCode() === 40; } tsParseModuleReference() { return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(0); } tsParseExternalModuleReference() { let r = this.startNode(); return this.expectContextual(119), this.expect(10), this.match(134) || this.unexpected(), r.expression = super.parseExprAtom(), this.expect( 11), this.sawUnambiguousESM = !0, this.finishNode(r, "TSExternalModuleReference"); } tsLookAhead(r) { let i = this.state.clone(), n = r(); return this.state = i, n; } tsTryParseAndCatch(r) { let i = this.tryParse((n) => r() || n()); if (!(i.aborted || !i.node)) return i.error && (this.state = i.failState), i.node; } tsTryParse(r) { let i = this.state.clone(), n = r(); if (n !== void 0 && n !== !1) return n; this.state = i; } tsTryParseDeclare(r) { if (this.isLineTerminator()) return; let i = this.state.type, n; return this.isContextual(100) && (i = 74, n = "let"), this.tsInAmbientContext(() => { switch (i) { case 68: return r.declare = !0, super.parseFunctionStatement(r, !1, !1); case 80: return r.declare = !0, this.parseClass(r, !0, !1); case 126: return this.tsParseEnumDeclaration(r, { declare: !0 }); case 112: return this.tsParseAmbientExternalModuleDeclaration(r); case 75: case 74: return !this.match(75) || !this.isLookaheadContextual("enum") ? (r.declare = !0, this.parseVarStatement(r, n || this.state.value, !0)) : (this.expect(75), this.tsParseEnumDeclaration(r, { const: !0, declare: !0 })); case 129: { let a = this.tsParseInterfaceDeclaration(r, { declare: !0 }); if (a) return a; } default: if (xt(i)) return this.tsParseDeclaration(r, this.state.value, !0, null); } }); } tsTryParseExportDeclaration() { return this.tsParseDeclaration(this.startNode(), this.state.value, !0, null); } tsParseExpressionStatement(r, i, n) { switch (i.name) { case "declare": { let a = this.tsTryParseDeclare(r); return a && (a.declare = !0), a; } case "global": if (this.match(5)) { this.scope.enter(256), this.prodParam.enter(0); let a = r; return a.kind = "global", r.global = !0, a.id = i, a.body = this.tsParseModuleBlock(), this.scope.exit(), this.prodParam.exit(), this.finishNode(a, "TSModuleDeclaration"); } break; default: return this.tsParseDeclaration(r, i.name, !1, n); } } tsParseDeclaration(r, i, n, a) { switch (i) { case "abstract": if (this.tsCheckLineTerminator(n) && (this.match(80) || xt(this.state.type))) return this.tsParseAbstractDeclaration(r, a); break; case "module": if (this.tsCheckLineTerminator(n)) { if (this.match(134)) return this.tsParseAmbientExternalModuleDeclaration(r); if (xt(this.state.type)) return r.kind = "module", this.tsParseModuleOrNamespaceDeclaration(r); } break; case "namespace": if (this.tsCheckLineTerminator(n) && xt(this.state.type)) return r.kind = "namespace", this.tsParseModuleOrNamespaceDeclaration(r); break; case "type": if (this.tsCheckLineTerminator(n) && xt(this.state.type)) return this.tsParseTypeAliasDeclaration(r); break; } } tsCheckLineTerminator(r) { return r ? this.hasFollowingLineBreak() ? !1 : (this.next(), !0) : !this.isLineTerminator(); } tsTryParseGenericAsyncArrowFunction(r) { if (!this.match(47)) return; let i = this.state.maybeInArrowParameters; this.state.maybeInArrowParameters = !0; let n = this.tsTryParseAndCatch(() => { let a = this.startNodeAt(r); return a.typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier), super.parseFunctionParams(a), a.returnType = this.tsTryParseTypeOrTypePredicateAnnotation(), this.expect(19), a; }); if (this.state.maybeInArrowParameters = i, !!n) return super.parseArrowExpression(n, null, !0); } tsParseTypeArgumentsInExpression() { if (this.reScan_lt() === 47) return this.tsParseTypeArguments(); } tsParseTypeArguments() { let r = this.startNode(); return r.params = this.tsInType(() => this.tsInTopLevelContext(() => (this.expect(47), this.tsParseDelimitedList("TypeParametersOrArgu\ ments", this.tsParseType.bind(this))))), r.params.length === 0 ? this.raise(Pe.EmptyTypeArguments, r) : !this.state.inType && this.curContext() === Et.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode(r, "TSTypeParameterInstantiation"); } tsIsDeclarationStart() { return N2e(this.state.type); } isExportDefaultSpecifier() { return this.tsIsDeclarationStart() ? !1 : super.isExportDefaultSpecifier(); } parseBindingElement(r, i) { let n = this.state.startLoc, a = {}; this.tsParseModifiers({ allowedModifiers: ["public", "private", "protected", "override", "readonly"] }, a); let o = a.accessibility, u = a.override, l = a.readonly; !(r & 4) && (o || l || u) && this.raise(Pe.UnexpectedParameterModifier, n); let c = this.parseMaybeDefault(); r & 2 && this.parseFunctionParamType(c); let f = this.parseMaybeDefault(c.loc.start, c); if (o || l || u) { let m = this.startNodeAt(n); return i.length && (m.decorators = i), o && (m.accessibility = o), l && (m.readonly = l), u && (m.override = u), f.type !== "Identif\ ier" && f.type !== "AssignmentPattern" && this.raise(Pe.UnsupportedParameterPropertyKind, m), m.parameter = f, this.finishNode(m, "TSParamet\ erProperty"); } return i.length && (c.decorators = i), f; } isSimpleParameter(r) { return r.type === "TSParameterProperty" && super.isSimpleParameter(r.parameter) || super.isSimpleParameter(r); } tsDisallowOptionalPattern(r) { for (let i of r.params) i.type !== "Identifier" && i.optional && !this.state.isAmbientContext && this.raise(Pe.PatternIsOptional, i); } setArrowFunctionParameters(r, i, n) { super.setArrowFunctionParameters(r, i, n), this.tsDisallowOptionalPattern(r); } parseFunctionBodyAndFinish(r, i, n = !1) { this.match(14) && (r.returnType = this.tsParseTypeOrTypePredicateAnnotation(14)); let a = i === "FunctionDeclaration" ? "TSDeclareFunction" : i === "ClassMethod" || i === "ClassPrivateMethod" ? "TSDeclareMethod" : void 0; return a && !this.match(5) && this.isLineTerminator() ? this.finishNode(r, a) : a === "TSDeclareFunction" && this.state.isAmbientContext && (this.raise(Pe.DeclareFunctionHasImplementation, r), r.declare) ? super.parseFunctionBodyAndFinish(r, a, n) : (this.tsDisallowOptionalPattern( r), super.parseFunctionBodyAndFinish(r, i, n)); } registerFunctionStatementId(r) { !r.body && r.id ? this.checkIdentifier(r.id, 1024) : super.registerFunctionStatementId(r); } tsCheckForInvalidTypeCasts(r) { r.forEach((i) => { i?.type === "TSTypeCastExpression" && this.raise(Pe.UnexpectedTypeAnnotation, i.typeAnnotation); }); } toReferencedList(r, i) { return this.tsCheckForInvalidTypeCasts(r), r; } parseArrayLike(r, i, n, a) { let o = super.parseArrayLike(r, i, n, a); return o.type === "ArrayExpression" && this.tsCheckForInvalidTypeCasts(o.elements), o; } parseSubscript(r, i, n, a) { if (!this.hasPrecedingLineBreak() && this.match(35)) { this.state.canStartJSXElement = !1, this.next(); let u = this.startNodeAt(i); return u.expression = r, this.finishNode(u, "TSNonNullExpression"); } let o = !1; if (this.match(18) && this.lookaheadCharCode() === 60) { if (n) return a.stop = !0, r; a.optionalChainMember = o = !0, this.next(); } if (this.match(47) || this.match(51)) { let u, l = this.tsTryParseAndCatch(() => { if (!n && this.atPossibleAsyncArrow(r)) { let h = this.tsTryParseGenericAsyncArrowFunction(i); if (h) return h; } let c = this.tsParseTypeArgumentsInExpression(); if (!c) return; if (o && !this.match(10)) { u = this.state.curPosition(); return; } if (qy(this.state.type)) { let h = super.parseTaggedTemplateExpression(r, i, a); return h.typeParameters = c, h; } if (!n && this.eat(10)) { let h = this.startNodeAt(i); return h.callee = r, h.arguments = this.parseCallExpressionArguments(11), this.tsCheckForInvalidTypeCasts(h.arguments), h.typeParameters = c, a.optionalChainMember && (h.optional = o), this.finishCallExpression(h, a.optionalChainMember); } let f = this.state.type; if (f === 48 || f === 52 || f !== 10 && Od(f) && !this.hasPrecedingLineBreak()) return; let m = this.startNodeAt(i); return m.expression = r, m.typeParameters = c, this.finishNode(m, "TSInstantiationExpression"); }); if (u && this.unexpected(u, 10), l) return l.type === "TSInstantiationExpression" && (this.match(16) || this.match(18) && this.lookaheadCharCode() !== 40) && this.raise( Pe.InvalidPropertyAccessAfterInstantiationExpression, this.state.startLoc), l; } return super.parseSubscript(r, i, n, a); } parseNewCallee(r) { var i; super.parseNewCallee(r); let { callee: n } = r; n.type === "TSInstantiationExpression" && !((i = n.extra) != null && i.parenthesized) && (r.typeParameters = n.typeParameters, r.callee = n.expression); } parseExprOp(r, i, n) { let a; if (Ry(58) > n && !this.hasPrecedingLineBreak() && (this.isContextual(93) || (a = this.isContextual(120)))) { let o = this.startNodeAt(i); return o.expression = r, o.typeAnnotation = this.tsInType(() => (this.next(), this.match(75) ? (a && this.raise(L.UnexpectedKeyword, this.state.startLoc, { keyword: "const" }), this.tsParseTypeReference()) : this.tsParseType())), this.finishNode(o, a ? "TSSatisfiesExpression" : "TSAsExpression"), this.reScan_lt_gt(), this.parseExprOp(o, i, n); } return super.parseExprOp(r, i, n); } checkReservedWord(r, i, n, a) { this.state.isAmbientContext || super.checkReservedWord(r, i, n, a); } checkImportReflection(r) { super.checkImportReflection(r), r.module && r.importKind !== "value" && this.raise(Pe.ImportReflectionHasImportType, r.specifiers[0].loc. start); } checkDuplicateExports() { } isPotentialImportPhase(r) { if (super.isPotentialImportPhase(r)) return !0; if (this.isContextual(130)) { let i = this.lookaheadCharCode(); return r ? i === 123 || i === 42 : i !== 61; } return !r && this.isContextual(87); } applyImportPhase(r, i, n, a) { super.applyImportPhase(r, i, n, a), i ? r.exportKind = n === "type" ? "type" : "value" : r.importKind = n === "type" || n === "typeof" ? n : "value"; } parseImport(r) { if (this.match(134)) return r.importKind = "value", super.parseImport(r); let i; if (xt(this.state.type) && this.lookaheadCharCode() === 61) return r.importKind = "value", this.tsParseImportEqualsDeclaration(r); if (this.isContextual(130)) { let n = this.parseMaybeImportPhase(r, !1); if (this.lookaheadCharCode() === 61) return this.tsParseImportEqualsDeclaration(r, n); i = super.parseImportSpecifiersAndAfter(r, n); } else i = super.parseImport(r); return i.importKind === "type" && i.specifiers.length > 1 && i.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(Pe.TypeImportCannotSpecifyDefaultAndNamed, i), i; } parseExport(r, i) { if (this.match(83)) { let n = r; this.next(); let a = null; return this.isContextual(130) && this.isPotentialImportPhase(!1) ? a = this.parseMaybeImportPhase(n, !1) : n.importKind = "value", this. tsParseImportEqualsDeclaration(n, a, !0); } else if (this.eat(29)) { let n = r; return n.expression = super.parseExpression(), this.semicolon(), this.sawUnambiguousESM = !0, this.finishNode(n, "TSExportAssignment"); } else if (this.eatContextual(93)) { let n = r; return this.expectContextual(128), n.id = this.parseIdentifier(), this.semicolon(), this.finishNode(n, "TSNamespaceExportDeclaration"); } else return super.parseExport(r, i); } isAbstractClass() { return this.isContextual(124) && this.lookahead().type === 80; } parseExportDefaultExpression() { if (this.isAbstractClass()) { let r = this.startNode(); return this.next(), r.abstract = !0, this.parseClass(r, !0, !0); } if (this.match(129)) { let r = this.tsParseInterfaceDeclaration(this.startNode()); if (r) return r; } return super.parseExportDefaultExpression(); } parseVarStatement(r, i, n = !1) { let { isAmbientContext: a } = this.state, o = super.parseVarStatement(r, i, n || a); if (!a) return o; for (let { id: u, init: l } of o.declarations) l && (i !== "const" || u.typeAnnotation ? this.raise(Pe.InitializerNotAllowedInAmbientContext, l) : bPe(l, this.hasPlugin("estree")) || this.raise(Pe.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, l)); return o; } parseStatementContent(r, i) { if (this.match(75) && this.isLookaheadContextual("enum")) { let n = this.startNode(); return this.expect(75), this.tsParseEnumDeclaration(n, { const: !0 }); } if (this.isContextual(126)) return this.tsParseEnumDeclaration(this.startNode()); if (this.isContextual(129)) { let n = this.tsParseInterfaceDeclaration(this.startNode()); if (n) return n; } return super.parseStatementContent(r, i); } parseAccessModifier() { return this.tsParseModifier(["public", "protected", "private"]); } tsHasSomeModifiers(r, i) { return i.some((n) => w9(n) ? r.accessibility === n : !!r[n]); } tsIsStartOfStaticBlocks() { return this.isContextual(106) && this.lookaheadCharCode() === 123; } parseClassMember(r, i, n) { let a = ["declare", "private", "public", "protected", "override", "abstract", "readonly", "static"]; this.tsParseModifiers({ allowedModifiers: a, disallowedModifiers: ["in", "out"], stopOnStartOfClassStaticBlock: !0, errorTemplate: Pe.InvalidModifierOnTypeParameterPositions }, i); let o = /* @__PURE__ */ s(() => { this.tsIsStartOfStaticBlocks() ? (this.next(), this.next(), this.tsHasSomeModifiers(i, a) && this.raise(Pe.StaticBlockCannotHaveModifier, this.state.curPosition()), super.parseClassStaticBlock(r, i)) : this.parseClassMemberWithIsStatic(r, i, n, !!i.static); }, "callParseClassMemberWithIsStatic"); i.declare ? this.tsInAmbientContext(o) : o(); } parseClassMemberWithIsStatic(r, i, n, a) { let o = this.tsTryParseIndexSignature(i); if (o) { r.body.push(o), i.abstract && this.raise(Pe.IndexSignatureHasAbstract, i), i.accessibility && this.raise(Pe.IndexSignatureHasAccessibility, i, { modifier: i.accessibility }), i.declare && this.raise(Pe.IndexSignatureHasDeclare, i), i.override && this.raise(Pe.IndexSignatureHasOverride, i); return; } !this.state.inAbstractClass && i.abstract && this.raise(Pe.NonAbstractClassHasAbstractMethod, i), i.override && (n.hadSuperClass || this. raise(Pe.OverrideNotInSubClass, i)), super.parseClassMemberWithIsStatic(r, i, n, a); } parsePostMemberNameModifiers(r) { this.eat(17) && (r.optional = !0), r.readonly && this.match(10) && this.raise(Pe.ClassMethodHasReadonly, r), r.declare && this.match(10) && this.raise(Pe.ClassMethodHasDeclare, r); } parseExpressionStatement(r, i, n) { return (i.type === "Identifier" ? this.tsParseExpressionStatement(r, i, n) : void 0) || super.parseExpressionStatement(r, i, n); } shouldParseExportDeclaration() { return this.tsIsDeclarationStart() ? !0 : super.shouldParseExportDeclaration(); } parseConditional(r, i, n) { if (!this.match(17)) return r; if (this.state.maybeInArrowParameters) { let a = this.lookaheadCharCode(); if (a === 44 || a === 61 || a === 58 || a === 41) return this.setOptionalParametersError(n), r; } return super.parseConditional(r, i, n); } parseParenItem(r, i) { let n = super.parseParenItem(r, i); if (this.eat(17) && (n.optional = !0, this.resetEndLocation(r)), this.match(14)) { let a = this.startNodeAt(i); return a.expression = r, a.typeAnnotation = this.tsParseTypeAnnotation(), this.finishNode(a, "TSTypeCastExpression"); } return r; } parseExportDeclaration(r) { if (!this.state.isAmbientContext && this.isContextual(125)) return this.tsInAmbientContext(() => this.parseExportDeclaration(r)); let i = this.state.startLoc, n = this.eatContextual(125); if (n && (this.isContextual(125) || !this.shouldParseExportDeclaration())) throw this.raise(Pe.ExpectedAmbientAfterExportDeclare, this.state.startLoc); let o = xt(this.state.type) && this.tsTryParseExportDeclaration() || super.parseExportDeclaration(r); return o ? ((o.type === "TSInterfaceDeclaration" || o.type === "TSTypeAliasDeclaration" || n) && (r.exportKind = "type"), n && o.type !== "TSImportEqualsDeclaration" && (this.resetStartLocation(o, i), o.declare = !0), o) : null; } parseClassId(r, i, n, a) { if ((!i || n) && this.isContextual(113)) return; super.parseClassId(r, i, n, r.declare ? 1024 : 8331); let o = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers); o && (r.typeParameters = o); } parseClassPropertyAnnotation(r) { r.optional || (this.eat(35) ? r.definite = !0 : this.eat(17) && (r.optional = !0)); let i = this.tsTryParseTypeAnnotation(); i && (r.typeAnnotation = i); } parseClassProperty(r) { if (this.parseClassPropertyAnnotation(r), this.state.isAmbientContext && !(r.readonly && !r.typeAnnotation) && this.match(29) && this. raise(Pe.DeclareClassFieldHasInitializer, this.state.startLoc), r.abstract && this.match(29)) { let { key: i } = r; this.raise(Pe.AbstractPropertyHasInitializer, this.state.startLoc, { propertyName: i.type === "Identifier" && !r.computed ? i.name : `[${this.input.slice(this.offsetToSourcePos(i.start), this.offsetToSourcePos( i.end))}]` }); } return super.parseClassProperty(r); } parseClassPrivateProperty(r) { return r.abstract && this.raise(Pe.PrivateElementHasAbstract, r), r.accessibility && this.raise(Pe.PrivateElementHasAccessibility, r, { modifier: r.accessibility }), this.parseClassPropertyAnnotation(r), super.parseClassPrivateProperty(r); } parseClassAccessorProperty(r) { return this.parseClassPropertyAnnotation(r), r.optional && this.raise(Pe.AccessorCannotBeOptional, r), super.parseClassAccessorProperty( r); } pushClassMethod(r, i, n, a, o, u) { let l = this.tsTryParseTypeParameters(this.tsParseConstModifier); l && o && this.raise(Pe.ConstructorHasTypeParameters, l); let { declare: c = !1, kind: f } = i; c && (f === "get" || f === "set") && this.raise(Pe.DeclareAccessor, i, { kind: f }), l && (i.typeParameters = l), super.pushClassMethod(r, i, n, a, o, u); } pushClassPrivateMethod(r, i, n, a) { let o = this.tsTryParseTypeParameters(this.tsParseConstModifier); o && (i.typeParameters = o), super.pushClassPrivateMethod(r, i, n, a); } declareClassPrivateMethodInScope(r, i) { r.type !== "TSDeclareMethod" && (r.type === "MethodDefinition" && !hasOwnProperty.call(r.value, "body") || super.declareClassPrivateMethodInScope( r, i)); } parseClassSuper(r) { super.parseClassSuper(r), r.superClass && (this.match(47) || this.match(51)) && (r.superTypeParameters = this.tsParseTypeArgumentsInExpression()), this.eatContextual(113) && (r.implements = this.tsParseHeritageClause("implements")); } parseObjPropValue(r, i, n, a, o, u, l) { let c = this.tsTryParseTypeParameters(this.tsParseConstModifier); return c && (r.typeParameters = c), super.parseObjPropValue(r, i, n, a, o, u, l); } parseFunctionParams(r, i) { let n = this.tsTryParseTypeParameters(this.tsParseConstModifier); n && (r.typeParameters = n), super.parseFunctionParams(r, i); } parseVarId(r, i) { super.parseVarId(r, i), r.id.type === "Identifier" && !this.hasPrecedingLineBreak() && this.eat(35) && (r.definite = !0); let n = this.tsTryParseTypeAnnotation(); n && (r.id.typeAnnotation = n, this.resetEndLocation(r.id)); } parseAsyncArrowFromCallExpression(r, i) { return this.match(14) && (r.returnType = this.tsParseTypeAnnotation()), super.parseAsyncArrowFromCallExpression(r, i); } parseMaybeAssign(r, i) { var n, a, o, u, l; let c, f, m; if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) { if (c = this.state.clone(), f = this.tryParse(() => super.parseMaybeAssign(r, i), c), !f.error) return f.node; let { context: y } = this.state, p = y[y.length - 1]; (p === Et.j_oTag || p === Et.j_expr) && y.pop(); } if (!((n = f) != null && n.error) && !this.match(47)) return super.parseMaybeAssign(r, i); (!c || c === this.state) && (c = this.state.clone()); let h, d = this.tryParse((y) => { var p, g; h = this.tsParseTypeParameters(this.tsParseConstModifier); let b = super.parseMaybeAssign(r, i); return (b.type !== "ArrowFunctionExpression" || (p = b.extra) != null && p.parenthesized) && y(), ((g = h) == null ? void 0 : g.params. length) !== 0 && this.resetStartLocationFromNode(b, h), b.typeParameters = h, b; }, c); if (!d.error && !d.aborted) return h && this.reportReservedArrowTypeParam(h), d.node; if (!f && (C9(!this.hasPlugin("jsx")), m = this.tryParse(() => super.parseMaybeAssign(r, i), c), !m.error)) return m.node; if ((a = f) != null && a.node) return this.state = f.failState, f.node; if (d.node) return this.state = d.failState, h && this.reportReservedArrowTypeParam(h), d.node; if ((o = m) != null && o.node) return this.state = m.failState, m.node; throw ((u = f) == null ? void 0 : u.error) || d.error || ((l = m) == null ? void 0 : l.error); } reportReservedArrowTypeParam(r) { var i; r.params.length === 1 && !r.params[0].constraint && !((i = r.extra) != null && i.trailingComma) && this.getPluginOption("typescript", "\ disallowAmbiguousJSXLike") && this.raise(Pe.ReservedArrowTypeParam, r); } parseMaybeUnary(r, i) { return !this.hasPlugin("jsx") && this.match(47) ? this.tsParseTypeAssertion() : super.parseMaybeUnary(r, i); } parseArrow(r) { if (this.match(14)) { let i = this.tryParse((n) => { let a = this.tsParseTypeOrTypePredicateAnnotation(14); return (this.canInsertSemicolon() || !this.match(19)) && n(), a; }); if (i.aborted) return; i.thrown || (i.error && (this.state = i.failState), r.returnType = i.node); } return super.parseArrow(r); } parseFunctionParamType(r) { this.eat(17) && (r.optional = !0); let i = this.tsTryParseTypeAnnotation(); return i && (r.typeAnnotation = i), this.resetEndLocation(r), r; } isAssignable(r, i) { switch (r.type) { case "TSTypeCastExpression": return this.isAssignable(r.expression, i); case "TSParameterProperty": return !0; default: return super.isAssignable(r, i); } } toAssignable(r, i = !1) { switch (r.type) { case "ParenthesizedExpression": this.toAssignableParenthesizedExpression(r, i); break; case "TSAsExpression": case "TSSatisfiesExpression": case "TSNonNullExpression": case "TSTypeAssertion": i ? this.expressionScope.recordArrowParameterBindingError(Pe.UnexpectedTypeCastInParameter, r) : this.raise(Pe.UnexpectedTypeCastInParameter, r), this.toAssignable(r.expression, i); break; case "AssignmentExpression": !i && r.left.type === "TSTypeCastExpression" && (r.left = this.typeCastToParameter(r.left)); default: super.toAssignable(r, i); } } toAssignableParenthesizedExpression(r, i) { switch (r.expression.type) { case "TSAsExpression": case "TSSatisfiesExpression": case "TSNonNullExpression": case "TSTypeAssertion": case "ParenthesizedExpression": this.toAssignable(r.expression, i); break; default: super.toAssignable(r, i); } } checkToRestConversion(r, i) { switch (r.type) { case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSNonNullExpression": this.checkToRestConversion(r.expression, !1); break; default: super.checkToRestConversion(r, i); } } isValidLVal(r, i, n) { switch (r) { case "TSTypeCastExpression": return !0; case "TSParameterProperty": return "parameter"; case "TSNonNullExpression": return "expression"; case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": return (n !== 64 || !i) && ["expression", !0]; default: return super.isValidLVal(r, i, n); } } parseBindingAtom() { return this.state.type === 78 ? this.parseIdentifier(!0) : super.parseBindingAtom(); } parseMaybeDecoratorArguments(r, i) { if (this.match(47) || this.match(51)) { let n = this.tsParseTypeArgumentsInExpression(); if (this.match(10)) { let a = super.parseMaybeDecoratorArguments(r, i); return a.typeParameters = n, a; } this.unexpected(null, 10); } return super.parseMaybeDecoratorArguments(r, i); } checkCommaAfterRest(r) { return this.state.isAmbientContext && this.match(12) && this.lookaheadCharCode() === r ? (this.next(), !1) : super.checkCommaAfterRest( r); } isClassMethod() { return this.match(47) || super.isClassMethod(); } isClassProperty() { return this.match(35) || this.match(14) || super.isClassProperty(); } parseMaybeDefault(r, i) { let n = super.parseMaybeDefault(r, i); return n.type === "AssignmentPattern" && n.typeAnnotation && n.right.start < n.typeAnnotation.start && this.raise(Pe.TypeAnnotationAfterAssign, n.typeAnnotation), n; } getTokenFromCode(r) { if (this.state.inType) { if (r === 62) { this.finishOp(48, 1); return; } if (r === 60) { this.finishOp(47, 1); return; } } super.getTokenFromCode(r); } reScan_lt_gt() { let { type: r } = this.state; r === 47 ? (this.state.pos -= 1, this.readToken_lt()) : r === 48 && (this.state.pos -= 1, this.readToken_gt()); } reScan_lt() { let { type: r } = this.state; return r === 51 ? (this.state.pos -= 2, this.finishOp(47, 1), 47) : r; } toAssignableListItem(r, i, n) { let a = r[i]; a.type === "TSTypeCastExpression" && (r[i] = this.typeCastToParameter(a)), super.toAssignableListItem(r, i, n); } typeCastToParameter(r) { return r.expression.typeAnnotation = r.typeAnnotation, this.resetEndLocation(r.expression, r.typeAnnotation.loc.end), r.expression; } shouldParseArrow(r) { return this.match(14) ? r.every((i) => this.isAssignable(i, !0)) : super.shouldParseArrow(r); } shouldParseAsyncArrow() { return this.match(14) || super.shouldParseAsyncArrow(); } canHaveLeadingDecorator() { return super.canHaveLeadingDecorator() || this.isAbstractClass(); } jsxParseOpeningElementAfterName(r) { if (this.match(47) || this.match(51)) { let i = this.tsTryParseAndCatch(() => this.tsParseTypeArgumentsInExpression()); i && (r.typeParameters = i); } return super.jsxParseOpeningElementAfterName(r); } getGetterSetterExpectedParamCount(r) { let i = super.getGetterSetterExpectedParamCount(r), a = this.getObjectOrClassMethodParams(r)[0]; return a && this.isThisParam(a) ? i + 1 : i; } parseCatchClauseParam() { let r = super.parseCatchClauseParam(), i = this.tsTryParseTypeAnnotation(); return i && (r.typeAnnotation = i, this.resetEndLocation(r)), r; } tsInAmbientContext(r) { let { isAmbientContext: i, strict: n } = this.state; this.state.isAmbientContext = !0, this.state.strict = !1; try { return r(); } finally { this.state.isAmbientContext = i, this.state.strict = n; } } parseClass(r, i, n) { let a = this.state.inAbstractClass; this.state.inAbstractClass = !!r.abstract; try { return super.parseClass(r, i, n); } finally { this.state.inAbstractClass = a; } } tsParseAbstractDeclaration(r, i) { if (this.match(80)) return r.abstract = !0, this.maybeTakeDecorators(i, this.parseClass(r, !0, !1)); if (this.isContextual(129)) { if (!this.hasFollowingLineBreak()) return r.abstract = !0, this.raise(Pe.NonClassMethodPropertyHasAbstractModifer, r), this.tsParseInterfaceDeclaration(r); } else this.unexpected(null, 80); } parseMethod(r, i, n, a, o, u, l) { let c = super.parseMethod(r, i, n, a, o, u, l); if (c.abstract && (this.hasPlugin("estree") ? c.value : c).body) { let { key: h } = c; this.raise(Pe.AbstractMethodHasImplementation, c, { methodName: h.type === "Identifier" && !c.computed ? h.name : `[${this.input.slice(this.offsetToSourcePos(h.start), this.offsetToSourcePos( h.end))}]` }); } return c; } tsParseTypeParameterName() { return this.parseIdentifier().name; } shouldParseAsAmbientContext() { return !!this.getPluginOption("typescript", "dts"); } parse() { return this.shouldParseAsAmbientContext() && (this.state.isAmbientContext = !0), super.parse(); } getExpression() { return this.shouldParseAsAmbientContext() && (this.state.isAmbientContext = !0), super.getExpression(); } parseExportSpecifier(r, i, n, a) { return !i && a ? (this.parseTypeOnlyImportExportSpecifier(r, !1, n), this.finishNode(r, "ExportSpecifier")) : (r.exportKind = "value", super.parseExportSpecifier(r, i, n, a)); } parseImportSpecifier(r, i, n, a, o) { return !i && a ? (this.parseTypeOnlyImportExportSpecifier(r, !0, n), this.finishNode(r, "ImportSpecifier")) : (r.importKind = "value", super.parseImportSpecifier(r, i, n, a, n ? 4098 : 4096)); } parseTypeOnlyImportExportSpecifier(r, i, n) { let a = i ? "imported" : "local", o = i ? "local" : "exported", u = r[a], l, c = !1, f = !0, m = u.loc.start; if (this.isContextual(93)) { let d = this.parseIdentifier(); if (this.isContextual(93)) { let y = this.parseIdentifier(); Tn(this.state.type) ? (c = !0, u = d, l = i ? this.parseIdentifier() : this.parseModuleExportName(), f = !1) : (l = y, f = !1); } else Tn(this.state.type) ? (f = !1, l = i ? this.parseIdentifier() : this.parseModuleExportName()) : (c = !0, u = d); } else Tn(this.state.type) && (c = !0, i ? (u = this.parseIdentifier(!0), this.isContextual(93) || this.checkReservedWord(u.name, u.loc. start, !0, !0)) : u = this.parseModuleExportName()); c && n && this.raise(i ? Pe.TypeModifierIsUsedInTypeImports : Pe.TypeModifierIsUsedInTypeExports, m), r[a] = u, r[o] = l; let h = i ? "importKind" : "exportKind"; r[h] = c ? "type" : "value", f && this.eatContextual(93) && (r[o] = i ? this.parseIdentifier() : this.parseModuleExportName()), r[o] || (r[o] = $s(r[a])), i && this.checkIdentifier(r[o], c ? 4098 : 4096); } }, "typescript"); function gPe(e) { if (e.type !== "MemberExpression") return !1; let { computed: t, property: r } = e; return t && r.type !== "StringLiteral" && (r.type !== "TemplateLiteral" || r.expressions.length > 0) ? !1 : V9(e.object); } s(gPe, "isPossiblyLiteralEnum"); function bPe(e, t) { var r; let { type: i } = e; if ((r = e.extra) != null && r.parenthesized) return !1; if (t) { if (i === "Literal") { let { value: n } = e; if (typeof n == "string" || typeof n == "boolean") return !0; } } else if (i === "StringLiteral" || i === "BooleanLiteral") return !0; return !!($9(e, t) || DPe(e, t) || i === "TemplateLiteral" && e.expressions.length === 0 || gPe(e)); } s(bPe, "isValidAmbientConstInitializer"); function $9(e, t) { return t ? e.type === "Literal" && (typeof e.value == "number" || "bigint" in e) : e.type === "NumericLiteral" || e.type === "BigIntLite\ ral"; } s($9, "isNumber"); function DPe(e, t) { if (e.type === "UnaryExpression") { let { operator: r, argument: i } = e; if (r === "-" && $9(i, t)) return !0; } return !1; } s(DPe, "isNegativeNumber"); function V9(e) { return e.type === "Identifier" ? !0 : e.type !== "MemberExpression" || e.computed ? !1 : V9(e.object); } s(V9, "isUncomputedMemberExpressionChain"); var A9 = Ws`placeholders`({ ClassNameIsRequired: "A class name is required.", UnexpectedSpace: "Unexpected space in placeholder." }), vPe = /* @__PURE__ */ s((e) => class extends e { static { s(this, "PlaceholdersParserMixin"); } parsePlaceholder(r) { if (this.match(133)) { let i = this.startNode(); return this.next(), this.assertNoSpace(), i.name = super.parseIdentifier(!0), this.assertNoSpace(), this.expect(133), this.finishPlaceholder( i, r); } } finishPlaceholder(r, i) { let n = r; return (!n.expectedNode || !n.type) && (n = this.finishNode(n, "Placeholder")), n.expectedNode = i, n; } getTokenFromCode(r) { r === 37 && this.input.charCodeAt(this.state.pos + 1) === 37 ? this.finishOp(133, 2) : super.getTokenFromCode(r); } parseExprAtom(r) { return this.parsePlaceholder("Expression") || super.parseExprAtom(r); } parseIdentifier(r) { return this.parsePlaceholder("Identifier") || super.parseIdentifier(r); } checkReservedWord(r, i, n, a) { r !== void 0 && super.checkReservedWord(r, i, n, a); } parseBindingAtom() { return this.parsePlaceholder("Pattern") || super.parseBindingAtom(); } isValidLVal(r, i, n) { return r === "Placeholder" || super.isValidLVal(r, i, n); } toAssignable(r, i) { r && r.type === "Placeholder" && r.expectedNode === "Expression" ? r.expectedNode = "Pattern" : super.toAssignable(r, i); } chStartsBindingIdentifier(r, i) { return !!(super.chStartsBindingIdentifier(r, i) || this.lookahead().type === 133); } verifyBreakContinue(r, i) { r.label && r.label.type === "Placeholder" || super.verifyBreakContinue(r, i); } parseExpressionStatement(r, i) { var n; if (i.type !== "Placeholder" || (n = i.extra) != null && n.parenthesized) return super.parseExpressionStatement(r, i); if (this.match(14)) { let o = r; return o.label = this.finishPlaceholder(i, "Identifier"), this.next(), o.body = super.parseStatementOrSloppyAnnexBFunctionDeclaration(), this.finishNode(o, "LabeledStatement"); } this.semicolon(); let a = r; return a.name = i.name, this.finishPlaceholder(a, "Statement"); } parseBlock(r, i, n) { return this.parsePlaceholder("BlockStatement") || super.parseBlock(r, i, n); } parseFunctionId(r) { return this.parsePlaceholder("Identifier") || super.parseFunctionId(r); } parseClass(r, i, n) { let a = i ? "ClassDeclaration" : "ClassExpression"; this.next(); let o = this.state.strict, u = this.parsePlaceholder("Identifier"); if (u) if (this.match(81) || this.match(133) || this.match(5)) r.id = u; else { if (n || !i) return r.id = null, r.body = this.finishPlaceholder(u, "ClassBody"), this.finishNode(r, a); throw this.raise(A9.ClassNameIsRequired, this.state.startLoc); } else this.parseClassId(r, i, n); return super.parseClassSuper(r), r.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!r.superClass, o), this.finishNode( r, a); } parseExport(r, i) { let n = this.parsePlaceholder("Identifier"); if (!n) return super.parseExport(r, i); let a = r; if (!this.isContextual(98) && !this.match(12)) return a.specifiers = [], a.source = null, a.declaration = this.finishPlaceholder(n, "Declaration"), this.finishNode(a, "ExportNamed\ Declaration"); this.expectPlugin("exportDefaultFrom"); let o = this.startNode(); return o.exported = n, a.specifiers = [this.finishNode(o, "ExportDefaultSpecifier")], super.parseExport(a, i); } isExportDefaultSpecifier() { if (this.match(65)) { let r = this.nextTokenStart(); if (this.isUnparsedContextual(r, "from") && this.input.startsWith(qa(133), this.nextTokenStartSince(r + 4))) return !0; } return super.isExportDefaultSpecifier(); } maybeParseExportDefaultSpecifier(r, i) { var n; return (n = r.specifiers) != null && n.length ? !0 : super.maybeParseExportDefaultSpecifier(r, i); } checkExport(r) { let { specifiers: i } = r; i != null && i.length && (r.specifiers = i.filter((n) => n.exported.type === "Placeholder")), super.checkExport(r), r.specifiers = i; } parseImport(r) { let i = this.parsePlaceholder("Identifier"); if (!i) return super.parseImport(r); if (r.specifiers = [], !this.isContextual(98) && !this.match(12)) return r.source = this.finishPlaceholder(i, "StringLiteral"), this.semicolon(), this.finishNode(r, "ImportDeclaration"); let n = this.startNodeAtNode(i); return n.local = i, r.specifiers.push(this.finishNode(n, "ImportDefaultSpecifier")), this.eat(12) && (this.maybeParseStarImportSpecifier( r) || this.parseNamedImportSpecifiers(r)), this.expectContextual(98), r.source = this.parseImportSource(), this.semicolon(), this.finishNode( r, "ImportDeclaration"); } parseImportSource() { return this.parsePlaceholder("StringLiteral") || super.parseImportSource(); } assertNoSpace() { this.state.start > this.offsetToSourcePos(this.state.lastTokEndLoc.index) && this.raise(A9.UnexpectedSpace, this.state.lastTokEndLoc); } }, "placeholders"), EPe = /* @__PURE__ */ s((e) => class extends e { static { s(this, "V8IntrinsicMixin"); } parseV8Intrinsic() { if (this.match(54)) { let r = this.state.startLoc, i = this.startNode(); if (this.next(), xt(this.state.type)) { let n = this.parseIdentifierName(), a = this.createIdentifier(i, n); if (a.type = "V8IntrinsicIdentifier", this.match(10)) return a; } this.unexpected(r); } } parseExprAtom(r) { return this.parseV8Intrinsic() || super.parseExprAtom(r); } }, "v8intrinsic"), _9 = ["minimal", "fsharp", "hack", "smart"], P9 = ["^^", "@@", "^", "%", "#"]; function xPe(e) { if (e.has("decorators")) { if (e.has("decorators-legacy")) throw new Error("Cannot use the decorators and decorators-legacy plugin together"); let r = e.get("decorators").decoratorsBeforeExport; if (r != null && typeof r != "boolean") throw new Error("'decoratorsBeforeExport' must be a boolean, if specified."); let i = e.get("decorators").allowCallParenthesized; if (i != null && typeof i != "boolean") throw new Error("'allowCallParenthesized' must be a boolean."); } if (e.has("flow") && e.has("typescript")) throw new Error("Cannot combine flow and typescript plugins."); if (e.has("placeholders") && e.has("v8intrinsic")) throw new Error("Cannot combine placeholders and v8intrinsic plugins."); if (e.has("pipelineOperator")) { var t; let r = e.get("pipelineOperator").proposal; if (!_9.includes(r)) { let n = _9.map((a) => `"${a}"`).join(", "); throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${n}.`); } let i = ((t = e.get("recordAndTuple")) == null ? void 0 : t.syntaxType) === "hash"; if (r === "hack") { if (e.has("placeholders")) throw new Error("Cannot combine placeholders plugin and Hack-style pipes."); if (e.has("v8intrinsic")) throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes."); let n = e.get("pipelineOperator").topicToken; if (!P9.includes(n)) { let a = P9.map((o) => `"${o}"`).join(", "); throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${a}\ .`); } if (n === "#" && i) throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["\ recordAndTuple", e.get("recordAndTuple")])}\`.`); } else if (r === "smart" && i) throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple", e. get("recordAndTuple")])}\`.`); } if (e.has("moduleAttributes")) { if (e.has("deprecatedImportAssert") || e.has("importAssertions")) throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins."); if (e.get("moduleAttributes").version !== "may-2020") throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the on\ ly supported value is 'may-2020'."); } if (e.has("importAssertions") && e.has("deprecatedImportAssert")) throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins."); if (!e.has("deprecatedImportAssert") && e.has("importAttributes") && e.get("importAttributes").deprecatedAssertSyntax && e.set("deprecat\ edImportAssert", {}), e.has("recordAndTuple")) { let r = e.get("recordAndTuple").syntaxType; if (r != null) { let i = ["hash", "bar"]; if (!i.includes(r)) throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + i.map((n) => `'${n}'`).join(", ")); } } if (e.has("asyncDoExpressions") && !e.has("doExpressions")) { let r = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins."); throw r.missingPlugins = "doExpressions", r; } if (e.has("optionalChainingAssign") && e.get("optionalChainingAssign").version !== "2023-07") throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, th\ e only supported value is '2023-07'."); } s(xPe, "validatePlugins"); var H9 = { estree: T2e, jsx: dPe, flow: cPe, typescript: yPe, v8intrinsic: EPe, placeholders: vPe }, SPe = Object.keys(H9), pC = class extends dC { static { s(this, "ExpressionParser"); } checkProto(t, r, i, n) { if (t.type === "SpreadElement" || this.isObjectMethod(t) || t.computed || t.shorthand) return i; let a = t.key; return (a.type === "Identifier" ? a.name : a.value) === "__proto__" ? r ? (this.raise(L.RecordNoProto, a), !0) : (i && (n ? n.doubleProtoLoc === null && (n.doubleProtoLoc = a.loc.start) : this.raise(L.DuplicateProto, a)), !0) : i; } shouldExitDescending(t, r) { return t.type === "ArrowFunctionExpression" && this.offsetToSourcePos(t.start) === r; } getExpression() { this.enterInitialScopes(), this.nextToken(); let t = this.parseExpression(); return this.match(140) || this.unexpected(), this.finalizeRemainingComments(), t.comments = this.comments, t.errors = this.state.errors, this.optionFlags & 256 && (t.tokens = this.tokens), t; } parseExpression(t, r) { return t ? this.disallowInAnd(() => this.parseExpressionBase(r)) : this.allowInAnd(() => this.parseExpressionBase(r)); } parseExpressionBase(t) { let r = this.state.startLoc, i = this.parseMaybeAssign(t); if (this.match(12)) { let n = this.startNodeAt(r); for (n.expressions = [i]; this.eat(12); ) n.expressions.push(this.parseMaybeAssign(t)); return this.toReferencedList(n.expressions), this.finishNode(n, "SequenceExpression"); } return i; } parseMaybeAssignDisallowIn(t, r) { return this.disallowInAnd(() => this.parseMaybeAssign(t, r)); } parseMaybeAssignAllowIn(t, r) { return this.allowInAnd(() => this.parseMaybeAssign(t, r)); } setOptionalParametersError(t) { t.optionalParametersLoc = this.state.startLoc; } parseMaybeAssign(t, r) { let i = this.state.startLoc, n = this.isContextual(108); if (n && this.prodParam.hasYield) { this.next(); let l = this.parseYield(i); return r && (l = r.call(this, l, i)), l; } let a; t ? a = !1 : (t = new Ul(), a = !0); let { type: o } = this.state; (o === 10 || xt(o)) && (this.state.potentialArrowAt = this.state.start); let u = this.parseMaybeConditional(t); if (r && (u = r.call(this, u, i)), P2e(this.state.type)) { let l = this.startNodeAt(i), c = this.state.value; if (l.operator = c, this.match(29)) { this.toAssignable(u, !0), l.left = u; let f = i.index; t.doubleProtoLoc != null && t.doubleProtoLoc.index >= f && (t.doubleProtoLoc = null), t.shorthandAssignLoc != null && t.shorthandAssignLoc. index >= f && (t.shorthandAssignLoc = null), t.privateKeyLoc != null && t.privateKeyLoc.index >= f && (this.checkDestructuringPrivate( t), t.privateKeyLoc = null); } else l.left = u; return this.next(), l.right = this.parseMaybeAssign(), this.checkLVal(u, this.finishNode(l, "AssignmentExpression")), l; } else a && this.checkExpressionErrors(t, !0); if (n) { let { type: l } = this.state; if ((this.hasPlugin("v8intrinsic") ? Od(l) : Od(l) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier()) return this.raiseOverwrite(L.YieldNotInGeneratorFunction, i), this.parseYield(i); } return u; } parseMaybeConditional(t) { let r = this.state.startLoc, i = this.state.potentialArrowAt, n = this.parseExprOps(t); return this.shouldExitDescending(n, i) ? n : this.parseConditional(n, r, t); } parseConditional(t, r, i) { if (this.eat(17)) { let n = this.startNodeAt(r); return n.test = t, n.consequent = this.parseMaybeAssignAllowIn(), this.expect(14), n.alternate = this.parseMaybeAssign(), this.finishNode( n, "ConditionalExpression"); } return t; } parseMaybeUnaryOrPrivate(t) { return this.match(139) ? this.parsePrivateName() : this.parseMaybeUnary(t); } parseExprOps(t) { let r = this.state.startLoc, i = this.state.potentialArrowAt, n = this.parseMaybeUnaryOrPrivate(t); return this.shouldExitDescending(n, i) ? n : this.parseExprOp(n, r, -1); } parseExprOp(t, r, i) { if (this.isPrivateName(t)) { let a = this.getPrivateNameSV(t); (i >= Ry(58) || !this.prodParam.hasIn || !this.match(58)) && this.raise(L.PrivateInExpectedIn, t, { identifierName: a }), this.classScope.usePrivateName(a, t.loc.start); } let n = this.state.type; if (I2e(n) && (this.prodParam.hasIn || !this.match(58))) { let a = Ry(n); if (a > i) { if (n === 39) { if (this.expectPlugin("pipelineOperator"), this.state.inFSharpPipelineDirectBody) return t; this.checkPipelineAtInfixOperator(t, r); } let o = this.startNodeAt(r); o.left = t, o.operator = this.state.value; let u = n === 41 || n === 42, l = n === 40; if (l && (a = Ry(42)), this.next(), n === 39 && this.hasPlugin(["pipelineOperator", { proposal: "minimal" }]) && this.state.type === 96 && this.prodParam.hasAwait) throw this.raise(L.UnexpectedAwaitAfterPipelineBody, this.state.startLoc); o.right = this.parseExprOpRightExpr(n, a); let c = this.finishNode(o, u || l ? "LogicalExpression" : "BinaryExpression"), f = this.state.type; if (l && (f === 41 || f === 42) || u && f === 40) throw this.raise(L.MixingCoalesceWithLogical, this.state.startLoc); return this.parseExprOp(c, r, i); } } return t; } parseExprOpRightExpr(t, r) { let i = this.state.startLoc; switch (t) { case 39: switch (this.getPluginOption("pipelineOperator", "proposal")) { case "hack": return this.withTopicBindingContext(() => this.parseHackPipeBody()); case "fsharp": return this.withSoloAwaitPermittingContext(() => this.parseFSharpPipelineBody(r)); } if (this.getPluginOption("pipelineOperator", "proposal") === "smart") return this.withTopicBindingContext(() => { if (this.prodParam.hasYield && this.isContextual(108)) throw this.raise(L.PipeBodyIsTighter, this.state.startLoc); return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t, r), i); }); default: return this.parseExprOpBaseRightExpr(t, r); } } parseExprOpBaseRightExpr(t, r) { let i = this.state.startLoc; return this.parseExprOp(this.parseMaybeUnaryOrPrivate(), i, M2e(t) ? r - 1 : r); } parseHackPipeBody() { var t; let { startLoc: r } = this.state, i = this.parseMaybeAssign(); return g2e.has(i.type) && !((t = i.extra) != null && t.parenthesized) && this.raise(L.PipeUnparenthesizedBody, r, { type: i.type }), this.topicReferenceWasUsedInCurrentContext() || this.raise(L.PipeTopicUnused, r), i; } checkExponentialAfterUnary(t) { this.match(57) && this.raise(L.UnexpectedTokenUnaryExponentiation, t.argument); } parseMaybeUnary(t, r) { let i = this.state.startLoc, n = this.isContextual(96); if (n && this.recordAwaitIfAllowed()) { this.next(); let l = this.parseAwait(i); return r || this.checkExponentialAfterUnary(l), l; } let a = this.match(34), o = this.startNode(); if (k2e(this.state.type)) { o.operator = this.state.value, o.prefix = !0, this.match(72) && this.expectPlugin("throwExpressions"); let l = this.match(89); if (this.next(), o.argument = this.parseMaybeUnary(null, !0), this.checkExpressionErrors(t, !0), this.state.strict && l) { let c = o.argument; c.type === "Identifier" ? this.raise(L.StrictDelete, o) : this.hasPropertyAsPrivateName(c) && this.raise(L.DeletePrivateField, o); } if (!a) return r || this.checkExponentialAfterUnary(o), this.finishNode(o, "UnaryExpression"); } let u = this.parseUpdate(o, a, t); if (n) { let { type: l } = this.state; if ((this.hasPlugin("v8intrinsic") ? Od(l) : Od(l) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier()) return this.raiseOverwrite(L.AwaitNotInAsyncContext, i), this.parseAwait(i); } return u; } parseUpdate(t, r, i) { if (r) { let o = t; return this.checkLVal(o.argument, this.finishNode(o, "UpdateExpression")), t; } let n = this.state.startLoc, a = this.parseExprSubscripts(i); if (this.checkExpressionErrors(i, !1)) return a; for (; O2e(this.state.type) && !this.canInsertSemicolon(); ) { let o = this.startNodeAt(n); o.operator = this.state.value, o.prefix = !1, o.argument = a, this.next(), this.checkLVal(a, a = this.finishNode(o, "UpdateExpressio\ n")); } return a; } parseExprSubscripts(t) { let r = this.state.startLoc, i = this.state.potentialArrowAt, n = this.parseExprAtom(t); return this.shouldExitDescending(n, i) ? n : this.parseSubscripts(n, r); } parseSubscripts(t, r, i) { let n = { optionalChainMember: !1, maybeAsyncArrow: this.atPossibleAsyncArrow(t), stop: !1 }; do t = this.parseSubscript(t, r, i, n), n.maybeAsyncArrow = !1; while (!n.stop); return t; } parseSubscript(t, r, i, n) { let { type: a } = this.state; if (!i && a === 15) return this.parseBind(t, r, i, n); if (qy(a)) return this.parseTaggedTemplateExpression(t, r, n); let o = !1; if (a === 18) { if (i && (this.raise(L.OptionalChainingNoNew, this.state.startLoc), this.lookaheadCharCode() === 40)) return n.stop = !0, t; n.optionalChainMember = o = !0, this.next(); } if (!i && this.match(10)) return this.parseCoverCallAndAsyncArrowHead(t, r, n, o); { let u = this.eat(0); return u || o || this.eat(16) ? this.parseMember(t, r, n, u, o) : (n.stop = !0, t); } } parseMember(t, r, i, n, a) { let o = this.startNodeAt(r); return o.object = t, o.computed = n, n ? (o.property = this.parseExpression(), this.expect(3)) : this.match(139) ? (t.type === "Super" && this.raise(L.SuperPrivateField, r), this.classScope.usePrivateName(this.state.value, this.state.startLoc), o.property = this.parsePrivateName()) : o.property = this.parseIdentifier(!0), i.optionalChainMember ? (o.optional = a, this.finishNode(o, "OptionalMemberExpression")) : this. finishNode(o, "MemberExpression"); } parseBind(t, r, i, n) { let a = this.startNodeAt(r); return a.object = t, this.next(), a.callee = this.parseNoCallExpr(), n.stop = !0, this.parseSubscripts(this.finishNode(a, "BindExpress\ ion"), r, i); } parseCoverCallAndAsyncArrowHead(t, r, i, n) { let a = this.state.maybeInArrowParameters, o = null; this.state.maybeInArrowParameters = !0, this.next(); let u = this.startNodeAt(r); u.callee = t; let { maybeAsyncArrow: l, optionalChainMember: c } = i; l && (this.expressionScope.enter(rPe()), o = new Ul()), c && (u.optional = n), n ? u.arguments = this.parseCallExpressionArguments(11) : u.arguments = this.parseCallExpressionArguments(11, t.type !== "Super", u, o); let f = this.finishCallExpression(u, c); return l && this.shouldParseAsyncArrow() && !n ? (i.stop = !0, this.checkDestructuringPrivate(o), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), f = this.parseAsyncArrowFromCallExpression(this.startNodeAt(r), f)) : (l && (this.checkExpressionErrors(o, !0), this.expressionScope.exit()), this.toReferencedArguments(f)), this.state.maybeInArrowParameters = a, f; } toReferencedArguments(t, r) { this.toReferencedListDeep(t.arguments, r); } parseTaggedTemplateExpression(t, r, i) { let n = this.startNodeAt(r); return n.tag = t, n.quasi = this.parseTemplate(!0), i.optionalChainMember && this.raise(L.OptionalChainingNoTemplate, r), this.finishNode( n, "TaggedTemplateExpression"); } atPossibleAsyncArrow(t) { return t.type === "Identifier" && t.name === "async" && this.state.lastTokEndLoc.index === t.end && !this.canInsertSemicolon() && t.end - t.start === 5 && this.offsetToSourcePos(t.start) === this.state.potentialArrowAt; } finishCallExpression(t, r) { if (t.callee.type === "Import") if (t.arguments.length === 0 || t.arguments.length > 2) this.raise(L.ImportCallArity, t); else for (let i of t.arguments) i.type === "SpreadElement" && this.raise(L.ImportCallSpreadArgument, i); return this.finishNode(t, r ? "OptionalCallExpression" : "CallExpression"); } parseCallExpressionArguments(t, r, i, n) { let a = [], o = !0, u = this.state.inFSharpPipelineDirectBody; for (this.state.inFSharpPipelineDirectBody = !1; !this.eat(t); ) { if (o) o = !1; else if (this.expect(12), this.match(t)) { i && this.addTrailingCommaExtraToNode(i), this.next(); break; } a.push(this.parseExprListItem(!1, n, r)); } return this.state.inFSharpPipelineDirectBody = u, a; } shouldParseAsyncArrow() { return this.match(19) && !this.canInsertSemicolon(); } parseAsyncArrowFromCallExpression(t, r) { var i; return this.resetPreviousNodeTrailingComments(r), this.expect(19), this.parseArrowExpression(t, r.arguments, !0, (i = r.extra) == null ? void 0 : i.trailingCommaLoc), r.innerComments && Rd(t, r.innerComments), r.callee.trailingComments && Rd(t, r.callee.trailingComments), t; } parseNoCallExpr() { let t = this.state.startLoc; return this.parseSubscripts(this.parseExprAtom(), t, !0); } parseExprAtom(t) { let r, i = null, { type: n } = this.state; switch (n) { case 79: return this.parseSuper(); case 83: return r = this.startNode(), this.next(), this.match(16) ? this.parseImportMetaProperty(r) : this.match(10) ? this.optionFlags & 512 ? this.parseImportCall(r) : this.finishNode(r, "Import") : (this.raise(L.UnsupportedImport, this.state.lastTokStartLoc), this.finishNode( r, "Import")); case 78: return r = this.startNode(), this.next(), this.finishNode(r, "ThisExpression"); case 90: return this.parseDo(this.startNode(), !1); case 56: case 31: return this.readRegexp(), this.parseRegExpLiteral(this.state.value); case 135: return this.parseNumericLiteral(this.state.value); case 136: return this.parseBigIntLiteral(this.state.value); case 134: return this.parseStringLiteral(this.state.value); case 84: return this.parseNullLiteral(); case 85: return this.parseBooleanLiteral(!0); case 86: return this.parseBooleanLiteral(!1); case 10: { let a = this.state.potentialArrowAt === this.state.start; return this.parseParenAndDistinguishExpression(a); } case 2: case 1: return this.parseArrayLike(this.state.type === 2 ? 4 : 3, !1, !0); case 0: return this.parseArrayLike(3, !0, !1, t); case 6: case 7: return this.parseObjectLike(this.state.type === 6 ? 9 : 8, !1, !0); case 5: return this.parseObjectLike(8, !1, !1, t); case 68: return this.parseFunctionOrFunctionSent(); case 26: i = this.parseDecorators(); case 80: return this.parseClass(this.maybeTakeDecorators(i, this.startNode()), !1); case 77: return this.parseNewOrNewTarget(); case 25: case 24: return this.parseTemplate(!1); case 15: { r = this.startNode(), this.next(), r.object = null; let a = r.callee = this.parseNoCallExpr(); if (a.type === "MemberExpression") return this.finishNode(r, "BindExpression"); throw this.raise(L.UnsupportedBind, a); } case 139: return this.raise(L.PrivateInExpectedIn, this.state.startLoc, { identifierName: this.state.value }), this.parsePrivateName(); case 33: return this.parseTopicReferenceThenEqualsSign(54, "%"); case 32: return this.parseTopicReferenceThenEqualsSign(44, "^"); case 37: case 38: return this.parseTopicReference("hack"); case 44: case 54: case 27: { let a = this.getPluginOption("pipelineOperator", "proposal"); if (a) return this.parseTopicReference(a); this.unexpected(); break; } case 47: { let a = this.input.codePointAt(this.nextTokenStart()); Us(a) || a === 62 ? this.expectOnePlugin(["jsx", "flow", "typescript"]) : this.unexpected(); break; } default: if (n === 137) return this.parseDecimalLiteral(this.state.value); if (xt(n)) { if (this.isContextual(127) && this.lookaheadInLineCharCode() === 123) return this.parseModuleExpression(); let a = this.state.potentialArrowAt === this.state.start, o = this.state.containsEsc, u = this.parseIdentifier(); if (!o && u.name === "async" && !this.canInsertSemicolon()) { let { type: l } = this.state; if (l === 68) return this.resetPreviousNodeTrailingComments(u), this.next(), this.parseAsyncFunctionExpression(this.startNodeAtNode(u)); if (xt(l)) return this.lookaheadCharCode() === 61 ? this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(u)) : u; if (l === 90) return this.resetPreviousNodeTrailingComments(u), this.parseDo(this.startNodeAtNode(u), !0); } return a && this.match(19) && !this.canInsertSemicolon() ? (this.next(), this.parseArrowExpression(this.startNodeAtNode(u), [u], !1)) : u; } else this.unexpected(); } } parseTopicReferenceThenEqualsSign(t, r) { let i = this.getPluginOption("pipelineOperator", "proposal"); if (i) return this.state.type = t, this.state.value = r, this.state.pos--, this.state.end--, this.state.endLoc = yi(this.state.endLoc, -1), this.parseTopicReference(i); this.unexpected(); } parseTopicReference(t) { let r = this.startNode(), i = this.state.startLoc, n = this.state.type; return this.next(), this.finishTopicReference(r, i, t, n); } finishTopicReference(t, r, i, n) { if (this.testTopicReferenceConfiguration(i, r, n)) return i === "hack" ? (this.topicReferenceIsAllowedInCurrentContext() || this.raise(L.PipeTopicUnbound, r), this.registerTopicReference(), this.finishNode(t, "TopicReference")) : (this.topicReferenceIsAllowedInCurrentContext() || this.raise(L.PrimaryTopicNotAllowed, r), this. registerTopicReference(), this.finishNode(t, "PipelinePrimaryTopicReference")); throw this.raise(L.PipeTopicUnconfiguredToken, r, { token: qa(n) }); } testTopicReferenceConfiguration(t, r, i) { switch (t) { case "hack": return this.hasPlugin(["pipelineOperator", { topicToken: qa(i) }]); case "smart": return i === 27; default: throw this.raise(L.PipeTopicRequiresHackPipes, r); } } parseAsyncArrowUnaryFunction(t) { this.prodParam.enter(jy(!0, this.prodParam.hasYield)); let r = [this.parseIdentifier()]; return this.prodParam.exit(), this.hasPrecedingLineBreak() && this.raise(L.LineTerminatorBeforeArrow, this.state.curPosition()), this. expect(19), this.parseArrowExpression(t, r, !0); } parseDo(t, r) { this.expectPlugin("doExpressions"), r && this.expectPlugin("asyncDoExpressions"), t.async = r, this.next(); let i = this.state.labels; return this.state.labels = [], r ? (this.prodParam.enter(2), t.body = this.parseBlock(), this.prodParam.exit()) : t.body = this.parseBlock(), this.state.labels = i, this.finishNode(t, "DoExpression"); } parseSuper() { let t = this.startNode(); return this.next(), this.match(10) && !this.scope.allowDirectSuper && !(this.optionFlags & 16) ? this.raise(L.SuperNotAllowed, t) : !this. scope.allowSuper && !(this.optionFlags & 16) && this.raise(L.UnexpectedSuper, t), !this.match(10) && !this.match(0) && !this.match(16) && this.raise(L.UnsupportedSuper, t), this.finishNode(t, "Super"); } parsePrivateName() { let t = this.startNode(), r = this.startNodeAt(yi(this.state.startLoc, 1)), i = this.state.value; return this.next(), t.id = this.createIdentifier(r, i), this.finishNode(t, "PrivateName"); } parseFunctionOrFunctionSent() { let t = this.startNode(); if (this.next(), this.prodParam.hasYield && this.match(16)) { let r = this.createIdentifier(this.startNodeAtNode(t), "function"); return this.next(), this.match(103) ? this.expectPlugin("functionSent") : this.hasPlugin("functionSent") || this.unexpected(), this. parseMetaProperty(t, r, "sent"); } return this.parseFunction(t); } parseMetaProperty(t, r, i) { t.meta = r; let n = this.state.containsEsc; return t.property = this.parseIdentifier(!0), (t.property.name !== i || n) && this.raise(L.UnsupportedMetaProperty, t.property, { target: r.name, onlyValidPropertyName: i }), this.finishNode(t, "MetaProperty"); } parseImportMetaProperty(t) { let r = this.createIdentifier(this.startNodeAtNode(t), "import"); if (this.next(), this.isContextual(101)) this.inModule || this.raise(L.ImportMetaOutsideModule, r), this.sawUnambiguousESM = !0; else if (this.isContextual(105) || this.isContextual(97)) { let i = this.isContextual(105); if (this.expectPlugin(i ? "sourcePhaseImports" : "deferredImportEvaluation"), !(this.optionFlags & 512)) throw this.raise(L.DynamicImportPhaseRequiresImportExpressions, this.state.startLoc, { phase: this.state.value }); return this.next(), t.phase = i ? "source" : "defer", this.parseImportCall(t); } return this.parseMetaProperty(t, r, "meta"); } parseLiteralAtNode(t, r, i) { return this.addExtra(i, "rawValue", t), this.addExtra(i, "raw", this.input.slice(this.offsetToSourcePos(i.start), this.state.end)), i. value = t, this.next(), this.finishNode(i, r); } parseLiteral(t, r) { let i = this.startNode(); return this.parseLiteralAtNode(t, r, i); } parseStringLiteral(t) { return this.parseLiteral(t, "StringLiteral"); } parseNumericLiteral(t) { return this.parseLiteral(t, "NumericLiteral"); } parseBigIntLiteral(t) { return this.parseLiteral(t, "BigIntLiteral"); } parseDecimalLiteral(t) { return this.parseLiteral(t, "DecimalLiteral"); } parseRegExpLiteral(t) { let r = this.startNode(); return this.addExtra(r, "raw", this.input.slice(this.offsetToSourcePos(r.start), this.state.end)), r.pattern = t.pattern, r.flags = t. flags, this.next(), this.finishNode(r, "RegExpLiteral"); } parseBooleanLiteral(t) { let r = this.startNode(); return r.value = t, this.next(), this.finishNode(r, "BooleanLiteral"); } parseNullLiteral() { let t = this.startNode(); return this.next(), this.finishNode(t, "NullLiteral"); } parseParenAndDistinguishExpression(t) { let r = this.state.startLoc, i; this.next(), this.expressionScope.enter(tPe()); let n = this.state.maybeInArrowParameters, a = this.state.inFSharpPipelineDirectBody; this.state.maybeInArrowParameters = !0, this.state.inFSharpPipelineDirectBody = !1; let o = this.state.startLoc, u = [], l = new Ul(), c = !0, f, m; for (; !this.match(11); ) { if (c) c = !1; else if (this.expect(12, l.optionalParametersLoc === null ? null : l.optionalParametersLoc), this.match(11)) { m = this.state.startLoc; break; } if (this.match(21)) { let y = this.state.startLoc; if (f = this.state.startLoc, u.push(this.parseParenItem(this.parseRestBinding(), y)), !this.checkCommaAfterRest(41)) break; } else u.push(this.parseMaybeAssignAllowIn(l, this.parseParenItem)); } let h = this.state.lastTokEndLoc; this.expect(11), this.state.maybeInArrowParameters = n, this.state.inFSharpPipelineDirectBody = a; let d = this.startNodeAt(r); return t && this.shouldParseArrow(u) && (d = this.parseArrow(d)) ? (this.checkDestructuringPrivate(l), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), this.parseArrowExpression(d, u, !1), d) : (this.expressionScope.exit(), u.length || this.unexpected(this. state.lastTokStartLoc), m && this.unexpected(m), f && this.unexpected(f), this.checkExpressionErrors(l, !0), this.toReferencedListDeep( u, !0), u.length > 1 ? (i = this.startNodeAt(o), i.expressions = u, this.finishNode(i, "SequenceExpression"), this.resetEndLocation(i, h)) : i = u[0], this.wrapParenthesis(r, i)); } wrapParenthesis(t, r) { if (!(this.optionFlags & 1024)) return this.addExtra(r, "parenthesized", !0), this.addExtra(r, "parenStart", t.index), this.takeSurroundingComments(r, t.index, this. state.lastTokEndLoc.index), r; let i = this.startNodeAt(t); return i.expression = r, this.finishNode(i, "ParenthesizedExpression"); } shouldParseArrow(t) { return !this.canInsertSemicolon(); } parseArrow(t) { if (this.eat(19)) return t; } parseParenItem(t, r) { return t; } parseNewOrNewTarget() { let t = this.startNode(); if (this.next(), this.match(16)) { let r = this.createIdentifier(this.startNodeAtNode(t), "new"); this.next(); let i = this.parseMetaProperty(t, r, "target"); return !this.scope.inNonArrowFunction && !this.scope.inClass && !(this.optionFlags & 4) && this.raise(L.UnexpectedNewTarget, i), i; } return this.parseNew(t); } parseNew(t) { if (this.parseNewCallee(t), this.eat(10)) { let r = this.parseExprList(11); this.toReferencedList(r), t.arguments = r; } else t.arguments = []; return this.finishNode(t, "NewExpression"); } parseNewCallee(t) { let r = this.match(83), i = this.parseNoCallExpr(); t.callee = i, r && (i.type === "Import" || i.type === "ImportExpression") && this.raise(L.ImportCallNotNewExpression, i); } parseTemplateElement(t) { let { start: r, startLoc: i, end: n, value: a } = this.state, o = r + 1, u = this.startNodeAt(yi(i, 1)); a === null && (t || this.raise(L.InvalidEscapeSequenceTemplate, yi(this.state.firstInvalidTemplateEscapePos, 1))); let l = this.match(24), c = l ? -1 : -2, f = n + c; u.value = { raw: this.input.slice(o, f).replace(/\r\n?/g, ` `), cooked: a === null ? null : a.slice(1, c) }, u.tail = l, this.next(); let m = this.finishNode(u, "TemplateElement"); return this.resetEndLocation(m, yi(this.state.lastTokEndLoc, c)), m; } parseTemplate(t) { let r = this.startNode(), i = this.parseTemplateElement(t), n = [i], a = []; for (; !i.tail; ) a.push(this.parseTemplateSubstitution()), this.readTemplateContinuation(), n.push(i = this.parseTemplateElement(t)); return r.expressions = a, r.quasis = n, this.finishNode(r, "TemplateLiteral"); } parseTemplateSubstitution() { return this.parseExpression(); } parseObjectLike(t, r, i, n) { i && this.expectPlugin("recordAndTuple"); let a = this.state.inFSharpPipelineDirectBody; this.state.inFSharpPipelineDirectBody = !1; let o = !1, u = !0, l = this.startNode(); for (l.properties = [], this.next(); !this.match(t); ) { if (u) u = !1; else if (this.expect(12), this.match(t)) { this.addTrailingCommaExtraToNode(l); break; } let f; r ? f = this.parseBindingProperty() : (f = this.parsePropertyDefinition(n), o = this.checkProto(f, i, o, n)), i && !this.isObjectProperty( f) && f.type !== "SpreadElement" && this.raise(L.InvalidRecordProperty, f), f.shorthand && this.addExtra(f, "shorthand", !0), l.properties. push(f); } this.next(), this.state.inFSharpPipelineDirectBody = a; let c = "ObjectExpression"; return r ? c = "ObjectPattern" : i && (c = "RecordExpression"), this.finishNode(l, c); } addTrailingCommaExtraToNode(t) { this.addExtra(t, "trailingComma", this.state.lastTokStartLoc.index), this.addExtra(t, "trailingCommaLoc", this.state.lastTokStartLoc, !1); } maybeAsyncOrAccessorProp(t) { return !t.computed && t.key.type === "Identifier" && (this.isLiteralPropertyName() || this.match(0) || this.match(55)); } parsePropertyDefinition(t) { let r = []; if (this.match(26)) for (this.hasPlugin("decorators") && this.raise(L.UnsupportedPropertyDecorator, this.state.startLoc); this.match(26); ) r.push(this.parseDecorator()); let i = this.startNode(), n = !1, a = !1, o; if (this.match(21)) return r.length && this.unexpected(), this.parseSpread(); r.length && (i.decorators = r, r = []), i.method = !1, t && (o = this.state.startLoc); let u = this.eat(55); this.parsePropertyNamePrefixOperator(i); let l = this.state.containsEsc; if (this.parsePropertyName(i, t), !u && !l && this.maybeAsyncOrAccessorProp(i)) { let { key: c } = i, f = c.name; f === "async" && !this.hasPrecedingLineBreak() && (n = !0, this.resetPreviousNodeTrailingComments(c), u = this.eat(55), this.parsePropertyName( i)), (f === "get" || f === "set") && (a = !0, this.resetPreviousNodeTrailingComments(c), i.kind = f, this.match(55) && (u = !0, this. raise(L.AccessorIsGenerator, this.state.curPosition(), { kind: f }), this.next()), this.parsePropertyName(i)); } return this.parseObjPropValue(i, o, u, n, !1, a, t); } getGetterSetterExpectedParamCount(t) { return t.kind === "get" ? 0 : 1; } getObjectOrClassMethodParams(t) { return t.params; } checkGetterSetterParams(t) { var r; let i = this.getGetterSetterExpectedParamCount(t), n = this.getObjectOrClassMethodParams(t); n.length !== i && this.raise(t.kind === "get" ? L.BadGetterArity : L.BadSetterArity, t), t.kind === "set" && ((r = n[n.length - 1]) == null ? void 0 : r.type) === "RestElement" && this.raise(L.BadSetterRestParameter, t); } parseObjectMethod(t, r, i, n, a) { if (a) { let o = this.parseMethod(t, r, !1, !1, !1, "ObjectMethod"); return this.checkGetterSetterParams(o), o; } if (i || r || this.match(10)) return n && this.unexpected(), t.kind = "method", t.method = !0, this.parseMethod(t, r, i, !1, !1, "ObjectMethod"); } parseObjectProperty(t, r, i, n) { if (t.shorthand = !1, this.eat(14)) return t.value = i ? this.parseMaybeDefault(this.state.startLoc) : this.parseMaybeAssignAllowIn(n), this.finishNode(t, "ObjectProper\ ty"); if (!t.computed && t.key.type === "Identifier") { if (this.checkReservedWord(t.key.name, t.key.loc.start, !0, !1), i) t.value = this.parseMaybeDefault(r, $s(t.key)); else if (this.match(29)) { let a = this.state.startLoc; n != null ? n.shorthandAssignLoc === null && (n.shorthandAssignLoc = a) : this.raise(L.InvalidCoverInitializedName, a), t.value = this. parseMaybeDefault(r, $s(t.key)); } else t.value = $s(t.key); return t.shorthand = !0, this.finishNode(t, "ObjectProperty"); } } parseObjPropValue(t, r, i, n, a, o, u) { let l = this.parseObjectMethod(t, i, n, a, o) || this.parseObjectProperty(t, r, a, u); return l || this.unexpected(), l; } parsePropertyName(t, r) { if (this.eat(0)) t.computed = !0, t.key = this.parseMaybeAssignAllowIn(), this.expect(3); else { let { type: i, value: n } = this.state, a; if (Tn(i)) a = this.parseIdentifier(!0); else switch (i) { case 135: a = this.parseNumericLiteral(n); break; case 134: a = this.parseStringLiteral(n); break; case 136: a = this.parseBigIntLiteral(n); break; case 139: { let o = this.state.startLoc; r != null ? r.privateKeyLoc === null && (r.privateKeyLoc = o) : this.raise(L.UnexpectedPrivateField, o), a = this.parsePrivateName(); break; } default: if (i === 137) { a = this.parseDecimalLiteral(n); break; } this.unexpected(); } t.key = a, i !== 139 && (t.computed = !1); } } initFunction(t, r) { t.id = null, t.generator = !1, t.async = r; } parseMethod(t, r, i, n, a, o, u = !1) { this.initFunction(t, i), t.generator = r, this.scope.enter(18 | (u ? 64 : 0) | (a ? 32 : 0)), this.prodParam.enter(jy(i, t.generator)), this.parseFunctionParams(t, n); let l = this.parseFunctionBodyAndFinish(t, o, !0); return this.prodParam.exit(), this.scope.exit(), l; } parseArrayLike(t, r, i, n) { i && this.expectPlugin("recordAndTuple"); let a = this.state.inFSharpPipelineDirectBody; this.state.inFSharpPipelineDirectBody = !1; let o = this.startNode(); return this.next(), o.elements = this.parseExprList(t, !i, n, o), this.state.inFSharpPipelineDirectBody = a, this.finishNode(o, i ? "T\ upleExpression" : "ArrayExpression"); } parseArrowExpression(t, r, i, n) { this.scope.enter(6); let a = jy(i, !1); !this.match(5) && this.prodParam.hasIn && (a |= 8), this.prodParam.enter(a), this.initFunction(t, i); let o = this.state.maybeInArrowParameters; return r && (this.state.maybeInArrowParameters = !0, this.setArrowFunctionParameters(t, r, n)), this.state.maybeInArrowParameters = !1, this.parseFunctionBody(t, !0), this.prodParam.exit(), this.scope.exit(), this.state.maybeInArrowParameters = o, this.finishNode(t, "Ar\ rowFunctionExpression"); } setArrowFunctionParameters(t, r, i) { this.toAssignableList(r, i, !1), t.params = r; } parseFunctionBodyAndFinish(t, r, i = !1) { return this.parseFunctionBody(t, !1, i), this.finishNode(t, r); } parseFunctionBody(t, r, i = !1) { let n = r && !this.match(5); if (this.expressionScope.enter(U9()), n) t.body = this.parseMaybeAssign(), this.checkParams(t, !1, r, !1); else { let a = this.state.strict, o = this.state.labels; this.state.labels = [], this.prodParam.enter(this.prodParam.currentFlags() | 4), t.body = this.parseBlock(!0, !1, (u) => { let l = !this.isSimpleParamList(t.params); u && l && this.raise(L.IllegalLanguageModeDirective, (t.kind === "method" || t.kind === "constructor") && t.key ? t.key.loc.end : t); let c = !a && this.state.strict; this.checkParams(t, !this.state.strict && !r && !i && !l, r, c), this.state.strict && t.id && this.checkIdentifier(t.id, 65, c); }), this.prodParam.exit(), this.state.labels = o; } this.expressionScope.exit(); } isSimpleParameter(t) { return t.type === "Identifier"; } isSimpleParamList(t) { for (let r = 0, i = t.length; r < i; r++) if (!this.isSimpleParameter(t[r])) return !1; return !0; } checkParams(t, r, i, n = !0) { let a = !r && /* @__PURE__ */ new Set(), o = { type: "FormalParameters" }; for (let u of t.params) this.checkLVal(u, o, 5, a, n); } parseExprList(t, r, i, n) { let a = [], o = !0; for (; !this.eat(t); ) { if (o) o = !1; else if (this.expect(12), this.match(t)) { n && this.addTrailingCommaExtraToNode(n), this.next(); break; } a.push(this.parseExprListItem(r, i)); } return a; } parseExprListItem(t, r, i) { let n; if (this.match(12)) t || this.raise(L.UnexpectedToken, this.state.curPosition(), { unexpected: "," }), n = null; else if (this.match(21)) { let a = this.state.startLoc; n = this.parseParenItem(this.parseSpread(r), a); } else if (this.match(17)) { this.expectPlugin("partialApplication"), i || this.raise(L.UnexpectedArgumentPlaceholder, this.state.startLoc); let a = this.startNode(); this.next(), n = this.finishNode(a, "ArgumentPlaceholder"); } else n = this.parseMaybeAssignAllowIn(r, this.parseParenItem); return n; } parseIdentifier(t) { let r = this.startNode(), i = this.parseIdentifierName(t); return this.createIdentifier(r, i); } createIdentifier(t, r) { return t.name = r, t.loc.identifierName = r, this.finishNode(t, "Identifier"); } parseIdentifierName(t) { let r, { startLoc: i, type: n } = this.state; Tn(n) ? r = this.state.value : this.unexpected(); let a = A2e(n); return t ? a && this.replaceToken(132) : this.checkReservedWord(r, i, a, !1), this.next(), r; } checkReservedWord(t, r, i, n) { if (t.length > 10 || !K2e(t)) return; if (i && $2e(t)) { this.raise(L.UnexpectedKeyword, r, { keyword: t }); return; } if ((this.state.strict ? n ? R9 : N9 : B9)(t, this.inModule)) { this.raise(L.UnexpectedReservedWord, r, { reservedWord: t }); return; } else if (t === "yield") { if (this.prodParam.hasYield) { this.raise(L.YieldBindingIdentifier, r); return; } } else if (t === "await") { if (this.prodParam.hasAwait) { this.raise(L.AwaitBindingIdentifier, r); return; } if (this.scope.inStaticBlock) { this.raise(L.AwaitBindingIdentifierInStaticBlock, r); return; } this.expressionScope.recordAsyncArrowParametersError(r); } else if (t === "arguments" && this.scope.inClassAndNotInNonArrowFunction) { this.raise(L.ArgumentsInClass, r); return; } } recordAwaitIfAllowed() { let t = this.prodParam.hasAwait || this.optionFlags & 1 && !this.scope.inFunction; return t && !this.scope.inFunction && (this.state.hasTopLevelAwait = !0), t; } parseAwait(t) { let r = this.startNodeAt(t); return this.expressionScope.recordParameterInitializerError(L.AwaitExpressionFormalParameter, r), this.eat(55) && this.raise(L.ObsoleteAwaitStar, r), !this.scope.inFunction && !(this.optionFlags & 1) && (this.isAmbiguousPrefixOrIdentifier() ? this.ambiguousScriptDifferentAst = !0 : this.sawUnambiguousESM = !0), this.state.soloAwait || (r.argument = this.parseMaybeUnary(null, !0)), this.finishNode(r, "AwaitExpressi\ on"); } isAmbiguousPrefixOrIdentifier() { if (this.hasPrecedingLineBreak()) return !0; let { type: t } = this.state; return t === 53 || t === 10 || t === 0 || qy(t) || t === 102 && !this.state.containsEsc || t === 138 || t === 56 || this.hasPlugin("v8\ intrinsic") && t === 54; } parseYield(t) { let r = this.startNodeAt(t); this.expressionScope.recordParameterInitializerError(L.YieldInParameter, r); let i = !1, n = null; if (!this.hasPrecedingLineBreak()) switch (i = this.eat(55), this.state.type) { case 13: case 140: case 8: case 11: case 3: case 9: case 14: case 12: if (!i) break; default: n = this.parseMaybeAssign(); } return r.delegate = i, r.argument = n, this.finishNode(r, "YieldExpression"); } parseImportCall(t) { if (this.next(), t.source = this.parseMaybeAssignAllowIn(), t.options = null, this.eat(12) && !this.match(11) && (t.options = this.parseMaybeAssignAllowIn(), this.eat(12) && !this.match(11))) { do this.parseMaybeAssignAllowIn(); while (this.eat(12) && !this.match(11)); this.raise(L.ImportCallArity, t); } return this.expect(11), this.finishNode(t, "ImportExpression"); } checkPipelineAtInfixOperator(t, r) { this.hasPlugin(["pipelineOperator", { proposal: "smart" }]) && t.type === "SequenceExpression" && this.raise(L.PipelineHeadSequenceExpression, r); } parseSmartPipelineBodyInStyle(t, r) { if (this.isSimpleReference(t)) { let i = this.startNodeAt(r); return i.callee = t, this.finishNode(i, "PipelineBareFunction"); } else { let i = this.startNodeAt(r); return this.checkSmartPipeTopicBodyEarlyErrors(r), i.expression = t, this.finishNode(i, "PipelineTopicExpression"); } } isSimpleReference(t) { switch (t.type) { case "MemberExpression": return !t.computed && this.isSimpleReference(t.object); case "Identifier": return !0; default: return !1; } } checkSmartPipeTopicBodyEarlyErrors(t) { if (this.match(19)) throw this.raise(L.PipelineBodyNoArrow, this.state.startLoc); this.topicReferenceWasUsedInCurrentContext() || this.raise(L.PipelineTopicUnused, t); } withTopicBindingContext(t) { let r = this.state.topicContext; this.state.topicContext = { maxNumOfResolvableTopics: 1, maxTopicIndex: null }; try { return t(); } finally { this.state.topicContext = r; } } withSmartMixTopicForbiddingContext(t) { if (this.hasPlugin(["pipelineOperator", { proposal: "smart" }])) { let r = this.state.topicContext; this.state.topicContext = { maxNumOfResolvableTopics: 0, maxTopicIndex: null }; try { return t(); } finally { this.state.topicContext = r; } } else return t(); } withSoloAwaitPermittingContext(t) { let r = this.state.soloAwait; this.state.soloAwait = !0; try { return t(); } finally { this.state.soloAwait = r; } } allowInAnd(t) { let r = this.prodParam.currentFlags(); if (8 & ~r) { this.prodParam.enter(r | 8); try { return t(); } finally { this.prodParam.exit(); } } return t(); } disallowInAnd(t) { let r = this.prodParam.currentFlags(); if (8 & r) { this.prodParam.enter(r & -9); try { return t(); } finally { this.prodParam.exit(); } } return t(); } registerTopicReference() { this.state.topicContext.maxTopicIndex = 0; } topicReferenceIsAllowedInCurrentContext() { return this.state.topicContext.maxNumOfResolvableTopics >= 1; } topicReferenceWasUsedInCurrentContext() { return this.state.topicContext.maxTopicIndex != null && this.state.topicContext.maxTopicIndex >= 0; } parseFSharpPipelineBody(t) { let r = this.state.startLoc; this.state.potentialArrowAt = this.state.start; let i = this.state.inFSharpPipelineDirectBody; this.state.inFSharpPipelineDirectBody = !0; let n = this.parseExprOp(this.parseMaybeUnaryOrPrivate(), r, t); return this.state.inFSharpPipelineDirectBody = i, n; } parseModuleExpression() { this.expectPlugin("moduleBlocks"); let t = this.startNode(); this.next(), this.match(5) || this.unexpected(null, 5); let r = this.startNodeAt(this.state.endLoc); this.next(); let i = this.initializeScopes(!0); this.enterInitialScopes(); try { t.body = this.parseProgram(r, 8, "module"); } finally { i(); } return this.finishNode(t, "ModuleExpression"); } parsePropertyNamePrefixOperator(t) { } }, GT = { kind: 1 }, TPe = { kind: 2 }, CPe = /[\uD800-\uDFFF]/u, JT = /in(?:stanceof)?/y; function wPe(e, t, r) { for (let i = 0; i < e.length; i++) { let n = e[i], { type: a } = n; if (typeof a == "number") { { if (a === 139) { let { loc: o, start: u, value: l, end: c } = n, f = u + 1, m = yi(o.start, 1); e.splice(i, 1, new ts({ type: Ls(27), value: "#", start: u, end: f, startLoc: o.start, endLoc: m }), new ts({ type: Ls(132), value: l, start: f, end: c, startLoc: m, endLoc: o.end })), i++; continue; } if (qy(a)) { let { loc: o, start: u, value: l, end: c } = n, f = u + 1, m = yi(o.start, 1), h; t.charCodeAt(u - r) === 96 ? h = new ts({ type: Ls(22), value: "`", start: u, end: f, startLoc: o.start, endLoc: m }) : h = new ts({ type: Ls(8), value: "}", start: u, end: f, startLoc: o.start, endLoc: m }); let d, y, p, g; a === 24 ? (y = c - 1, p = yi(o.end, -1), d = l === null ? null : l.slice(1, -1), g = new ts({ type: Ls(22), value: "`", start: y, end: c, startLoc: p, endLoc: o.end })) : (y = c - 2, p = yi(o.end, -2), d = l === null ? null : l.slice(1, -2), g = new ts({ type: Ls(23), value: "${", start: y, end: c, startLoc: p, endLoc: o.end })), e.splice(i, 1, h, new ts({ type: Ls(20), value: d, start: f, end: y, startLoc: m, endLoc: p }), g), i += 2; continue; } } n.type = Ls(a); } } return e; } s(wPe, "babel7CompatTokens"); var hC = class extends pC { static { s(this, "StatementParser"); } parseTopLevel(t, r) { return t.program = this.parseProgram(r), t.comments = this.comments, this.optionFlags & 256 && (t.tokens = wPe(this.tokens, this.input, this.startIndex)), this.finishNode(t, "File"); } parseProgram(t, r = 140, i = this.options.sourceType) { if (t.sourceType = i, t.interpreter = this.parseInterpreterDirective(), this.parseBlockBody(t, !0, !0, r), this.inModule) { if (!(this.optionFlags & 64) && this.scope.undefinedExports.size > 0) for (let [a, o] of Array.from(this.scope.undefinedExports)) this.raise(L.ModuleExportUndefined, o, { localName: a }); this.addExtra(t, "topLevelAwait", this.state.hasTopLevelAwait); } let n; return r === 140 ? n = this.finishNode(t, "Program") : n = this.finishNodeAt(t, "Program", yi(this.state.startLoc, -1)), n; } stmtToDirective(t) { let r = t; r.type = "Directive", r.value = r.expression, delete r.expression; let i = r.value, n = i.value, a = this.input.slice(this.offsetToSourcePos(i.start), this.offsetToSourcePos(i.end)), o = i.value = a.slice( 1, -1); return this.addExtra(i, "raw", a), this.addExtra(i, "rawValue", o), this.addExtra(i, "expressionValue", n), i.type = "DirectiveLiteral", r; } parseInterpreterDirective() { if (!this.match(28)) return null; let t = this.startNode(); return t.value = this.state.value, this.next(), this.finishNode(t, "InterpreterDirective"); } isLet() { return this.isContextual(100) ? this.hasFollowingBindingAtom() : !1; } chStartsBindingIdentifier(t, r) { if (Us(t)) { if (JT.lastIndex = r, JT.test(this.input)) { let i = this.codePointAtPos(JT.lastIndex); if (!Ll(i) && i !== 92) return !1; } return !0; } else return t === 92; } chStartsBindingPattern(t) { return t === 91 || t === 123; } hasFollowingBindingAtom() { let t = this.nextTokenStart(), r = this.codePointAtPos(t); return this.chStartsBindingPattern(r) || this.chStartsBindingIdentifier(r, t); } hasInLineFollowingBindingIdentifierOrBrace() { let t = this.nextTokenInLineStart(), r = this.codePointAtPos(t); return r === 123 || this.chStartsBindingIdentifier(r, t); } startsUsingForOf() { let { type: t, containsEsc: r } = this.lookahead(); if (t === 102 && !r) return !1; if (xt(t) && !this.hasFollowingLineBreak()) return this.expectPlugin("explicitResourceManagement"), !0; } startsAwaitUsing() { let t = this.nextTokenInLineStart(); if (this.isUnparsedContextual(t, "using")) { t = this.nextTokenInLineStartSince(t + 5); let r = this.codePointAtPos(t); if (this.chStartsBindingIdentifier(r, t)) return this.expectPlugin("explicitResourceManagement"), !0; } return !1; } parseModuleItem() { return this.parseStatementLike(15); } parseStatementListItem() { return this.parseStatementLike(6 | (!this.options.annexB || this.state.strict ? 0 : 8)); } parseStatementOrSloppyAnnexBFunctionDeclaration(t = !1) { let r = 0; return this.options.annexB && !this.state.strict && (r |= 4, t && (r |= 8)), this.parseStatementLike(r); } parseStatement() { return this.parseStatementLike(0); } parseStatementLike(t) { let r = null; return this.match(26) && (r = this.parseDecorators(!0)), this.parseStatementContent(t, r); } parseStatementContent(t, r) { let i = this.state.type, n = this.startNode(), a = !!(t & 2), o = !!(t & 4), u = t & 1; switch (i) { case 60: return this.parseBreakContinueStatement(n, !0); case 63: return this.parseBreakContinueStatement(n, !1); case 64: return this.parseDebuggerStatement(n); case 90: return this.parseDoWhileStatement(n); case 91: return this.parseForStatement(n); case 68: if (this.lookaheadCharCode() === 46) break; return o || this.raise(this.state.strict ? L.StrictFunction : this.options.annexB ? L.SloppyFunctionAnnexB : L.SloppyFunction, this. state.startLoc), this.parseFunctionStatement(n, !1, !a && o); case 80: return a || this.unexpected(), this.parseClass(this.maybeTakeDecorators(r, n), !0); case 69: return this.parseIfStatement(n); case 70: return this.parseReturnStatement(n); case 71: return this.parseSwitchStatement(n); case 72: return this.parseThrowStatement(n); case 73: return this.parseTryStatement(n); case 96: if (!this.state.containsEsc && this.startsAwaitUsing()) return this.recordAwaitIfAllowed() ? a || this.raise(L.UnexpectedLexicalDeclaration, n) : this.raise(L.AwaitUsingNotInAsyncContext, n), this.next(), this.parseVarStatement(n, "await using"); break; case 107: if (this.state.containsEsc || !this.hasInLineFollowingBindingIdentifierOrBrace()) break; return this.expectPlugin("explicitResourceManagement"), !this.scope.inModule && this.scope.inTopLevel ? this.raise(L.UnexpectedUsingDeclaration, this.state.startLoc) : a || this.raise(L.UnexpectedLexicalDeclaration, this.state.startLoc), this.parseVarStatement(n, "using"); case 100: { if (this.state.containsEsc) break; let f = this.nextTokenStart(), m = this.codePointAtPos(f); if (m !== 91 && (!a && this.hasFollowingLineBreak() || !this.chStartsBindingIdentifier(m, f) && m !== 123)) break; } case 75: a || this.raise(L.UnexpectedLexicalDeclaration, this.state.startLoc); case 74: { let f = this.state.value; return this.parseVarStatement(n, f); } case 92: return this.parseWhileStatement(n); case 76: return this.parseWithStatement(n); case 5: return this.parseBlock(); case 13: return this.parseEmptyStatement(n); case 83: { let f = this.lookaheadCharCode(); if (f === 40 || f === 46) break; } case 82: { !(this.optionFlags & 8) && !u && this.raise(L.UnexpectedImportExport, this.state.startLoc), this.next(); let f; return i === 83 ? f = this.parseImport(n) : f = this.parseExport(n, r), this.assertModuleNodeAllowed(f), f; } default: if (this.isAsyncFunction()) return a || this.raise(L.AsyncFunctionInSingleStatementContext, this.state.startLoc), this.next(), this.parseFunctionStatement(n, !0, !a && o); } let l = this.state.value, c = this.parseExpression(); return xt(i) && c.type === "Identifier" && this.eat(14) ? this.parseLabeledStatement(n, l, c, t) : this.parseExpressionStatement(n, c, r); } assertModuleNodeAllowed(t) { !(this.optionFlags & 8) && !this.inModule && this.raise(L.ImportOutsideModule, t); } decoratorsEnabledBeforeExport() { return this.hasPlugin("decorators-legacy") ? !0 : this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBefore\ Export") !== !1; } maybeTakeDecorators(t, r, i) { if (t) { var n; (n = r.decorators) != null && n.length ? (typeof this.getPluginOption("decorators", "decoratorsBeforeExport") != "boolean" && this.raise( L.DecoratorsBeforeAfterExport, r.decorators[0]), r.decorators.unshift(...t)) : r.decorators = t, this.resetStartLocationFromNode(r, t[0]), i && this.resetStartLocationFromNode(i, r); } return r; } canHaveLeadingDecorator() { return this.match(80); } parseDecorators(t) { let r = []; do r.push(this.parseDecorator()); while (this.match(26)); if (this.match(82)) t || this.unexpected(), this.decoratorsEnabledBeforeExport() || this.raise(L.DecoratorExportClass, this.state.startLoc); else if (!this.canHaveLeadingDecorator()) throw this.raise(L.UnexpectedLeadingDecorator, this.state.startLoc); return r; } parseDecorator() { this.expectOnePlugin(["decorators", "decorators-legacy"]); let t = this.startNode(); if (this.next(), this.hasPlugin("decorators")) { let r = this.state.startLoc, i; if (this.match(10)) { let n = this.state.startLoc; this.next(), i = this.parseExpression(), this.expect(11), i = this.wrapParenthesis(n, i); let a = this.state.startLoc; t.expression = this.parseMaybeDecoratorArguments(i, n), this.getPluginOption("decorators", "allowCallParenthesized") === !1 && t.expression !== i && this.raise(L.DecoratorArgumentsOutsideParentheses, a); } else { for (i = this.parseIdentifier(!1); this.eat(16); ) { let n = this.startNodeAt(r); n.object = i, this.match(139) ? (this.classScope.usePrivateName(this.state.value, this.state.startLoc), n.property = this.parsePrivateName()) : n.property = this.parseIdentifier(!0), n.computed = !1, i = this.finishNode(n, "MemberExpression"); } t.expression = this.parseMaybeDecoratorArguments(i, r); } } else t.expression = this.parseExprSubscripts(); return this.finishNode(t, "Decorator"); } parseMaybeDecoratorArguments(t, r) { if (this.eat(10)) { let i = this.startNodeAt(r); return i.callee = t, i.arguments = this.parseCallExpressionArguments(11), this.toReferencedList(i.arguments), this.finishNode(i, "Ca\ llExpression"); } return t; } parseBreakContinueStatement(t, r) { return this.next(), this.isLineTerminator() ? t.label = null : (t.label = this.parseIdentifier(), this.semicolon()), this.verifyBreakContinue( t, r), this.finishNode(t, r ? "BreakStatement" : "ContinueStatement"); } verifyBreakContinue(t, r) { let i; for (i = 0; i < this.state.labels.length; ++i) { let n = this.state.labels[i]; if ((t.label == null || n.name === t.label.name) && (n.kind != null && (r || n.kind === 1) || t.label && r)) break; } if (i === this.state.labels.length) { let n = r ? "BreakStatement" : "ContinueStatement"; this.raise(L.IllegalBreakContinue, t, { type: n }); } } parseDebuggerStatement(t) { return this.next(), this.semicolon(), this.finishNode(t, "DebuggerStatement"); } parseHeaderExpression() { this.expect(10); let t = this.parseExpression(); return this.expect(11), t; } parseDoWhileStatement(t) { return this.next(), this.state.labels.push(GT), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.state. labels.pop(), this.expect(92), t.test = this.parseHeaderExpression(), this.eat(13), this.finishNode(t, "DoWhileStatement"); } parseForStatement(t) { this.next(), this.state.labels.push(GT); let r = null; if (this.isContextual(96) && this.recordAwaitIfAllowed() && (r = this.state.startLoc, this.next()), this.scope.enter(0), this.expect(10), this.match(13)) return r !== null && this.unexpected(r), this.parseFor(t, null); let i = this.isContextual(100); { let l = this.isContextual(96) && this.startsAwaitUsing(), c = l || this.isContextual(107) && this.startsUsingForOf(), f = i && this. hasFollowingBindingAtom() || c; if (this.match(74) || this.match(75) || f) { let m = this.startNode(), h; l ? (h = "await using", this.recordAwaitIfAllowed() || this.raise(L.AwaitUsingNotInAsyncContext, this.state.startLoc), this.next()) : h = this.state.value, this.next(), this.parseVar(m, !0, h); let d = this.finishNode(m, "VariableDeclaration"), y = this.match(58); return y && c && this.raise(L.ForInUsing, d), (y || this.isContextual(102)) && d.declarations.length === 1 ? this.parseForIn(t, d, r) : (r !== null && this.unexpected(r), this.parseFor(t, d)); } } let n = this.isContextual(95), a = new Ul(), o = this.parseExpression(!0, a), u = this.isContextual(102); if (u && (i && this.raise(L.ForOfLet, o), r === null && n && o.type === "Identifier" && this.raise(L.ForOfAsync, o)), u || this.match( 58)) { this.checkDestructuringPrivate(a), this.toAssignable(o, !0); let l = u ? "ForOfStatement" : "ForInStatement"; return this.checkLVal(o, { type: l }), this.parseForIn(t, o, r); } else this.checkExpressionErrors(a, !0); return r !== null && this.unexpected(r), this.parseFor(t, o); } parseFunctionStatement(t, r, i) { return this.next(), this.parseFunction(t, 1 | (i ? 2 : 0) | (r ? 8 : 0)); } parseIfStatement(t) { return this.next(), t.test = this.parseHeaderExpression(), t.consequent = this.parseStatementOrSloppyAnnexBFunctionDeclaration(), t.alternate = this.eat(66) ? this.parseStatementOrSloppyAnnexBFunctionDeclaration() : null, this.finishNode(t, "IfStatement"); } parseReturnStatement(t) { return !this.prodParam.hasReturn && !(this.optionFlags & 2) && this.raise(L.IllegalReturn, this.state.startLoc), this.next(), this.isLineTerminator() ? t.argument = null : (t.argument = this.parseExpression(), this.semicolon()), this.finishNode(t, "ReturnStatement"); } parseSwitchStatement(t) { this.next(), t.discriminant = this.parseHeaderExpression(); let r = t.cases = []; this.expect(5), this.state.labels.push(TPe), this.scope.enter(0); let i; for (let n; !this.match(8); ) if (this.match(61) || this.match(65)) { let a = this.match(61); i && this.finishNode(i, "SwitchCase"), r.push(i = this.startNode()), i.consequent = [], this.next(), a ? i.test = this.parseExpression() : (n && this.raise(L.MultipleDefaultsInSwitch, this.state.lastTokStartLoc), n = !0, i.test = null), this.expect(14); } else i ? i.consequent.push(this.parseStatementListItem()) : this.unexpected(); return this.scope.exit(), i && this.finishNode(i, "SwitchCase"), this.next(), this.state.labels.pop(), this.finishNode(t, "SwitchState\ ment"); } parseThrowStatement(t) { return this.next(), this.hasPrecedingLineBreak() && this.raise(L.NewlineAfterThrow, this.state.lastTokEndLoc), t.argument = this.parseExpression(), this.semicolon(), this.finishNode(t, "ThrowStatement"); } parseCatchClauseParam() { let t = this.parseBindingAtom(); return this.scope.enter(this.options.annexB && t.type === "Identifier" ? 8 : 0), this.checkLVal(t, { type: "CatchClause" }, 9), t; } parseTryStatement(t) { if (this.next(), t.block = this.parseBlock(), t.handler = null, this.match(62)) { let r = this.startNode(); this.next(), this.match(10) ? (this.expect(10), r.param = this.parseCatchClauseParam(), this.expect(11)) : (r.param = null, this.scope. enter(0)), r.body = this.withSmartMixTopicForbiddingContext(() => this.parseBlock(!1, !1)), this.scope.exit(), t.handler = this.finishNode( r, "CatchClause"); } return t.finalizer = this.eat(67) ? this.parseBlock() : null, !t.handler && !t.finalizer && this.raise(L.NoCatchOrFinally, t), this.finishNode( t, "TryStatement"); } parseVarStatement(t, r, i = !1) { return this.next(), this.parseVar(t, !1, r, i), this.semicolon(), this.finishNode(t, "VariableDeclaration"); } parseWhileStatement(t) { return this.next(), t.test = this.parseHeaderExpression(), this.state.labels.push(GT), t.body = this.withSmartMixTopicForbiddingContext( () => this.parseStatement()), this.state.labels.pop(), this.finishNode(t, "WhileStatement"); } parseWithStatement(t) { return this.state.strict && this.raise(L.StrictWith, this.state.startLoc), this.next(), t.object = this.parseHeaderExpression(), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.finishNode(t, "WithStatement"); } parseEmptyStatement(t) { return this.next(), this.finishNode(t, "EmptyStatement"); } parseLabeledStatement(t, r, i, n) { for (let o of this.state.labels) o.name === r && this.raise(L.LabelRedeclaration, i, { labelName: r }); let a = F2e(this.state.type) ? 1 : this.match(71) ? 2 : null; for (let o = this.state.labels.length - 1; o >= 0; o--) { let u = this.state.labels[o]; if (u.statementStart === t.start) u.statementStart = this.sourceToOffsetPos(this.state.start), u.kind = a; else break; } return this.state.labels.push({ name: r, kind: a, statementStart: this.sourceToOffsetPos(this.state.start) }), t.body = n & 8 ? this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0) : this.parseStatement(), this.state.labels.pop(), t.label = i, this.finishNode(t, "LabeledStatement"); } parseExpressionStatement(t, r, i) { return t.expression = r, this.semicolon(), this.finishNode(t, "ExpressionStatement"); } parseBlock(t = !1, r = !0, i) { let n = this.startNode(); return t && this.state.strictErrors.clear(), this.expect(5), r && this.scope.enter(0), this.parseBlockBody(n, t, !1, 8, i), r && this. scope.exit(), this.finishNode(n, "BlockStatement"); } isValidDirective(t) { return t.type === "ExpressionStatement" && t.expression.type === "StringLiteral" && !t.expression.extra.parenthesized; } parseBlockBody(t, r, i, n, a) { let o = t.body = [], u = t.directives = []; this.parseBlockOrModuleBlockBody(o, r ? u : void 0, i, n, a); } parseBlockOrModuleBlockBody(t, r, i, n, a) { let o = this.state.strict, u = !1, l = !1; for (; !this.match(n); ) { let c = i ? this.parseModuleItem() : this.parseStatementListItem(); if (r && !l) { if (this.isValidDirective(c)) { let f = this.stmtToDirective(c); r.push(f), !u && f.value.value === "use strict" && (u = !0, this.setStrict(!0)); continue; } l = !0, this.state.strictErrors.clear(); } t.push(c); } a?.call(this, u), o || this.setStrict(!1), this.next(); } parseFor(t, r) { return t.init = r, this.semicolon(!1), t.test = this.match(13) ? null : this.parseExpression(), this.semicolon(!1), t.update = this.match( 11) ? null : this.parseExpression(), this.expect(11), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this. scope.exit(), this.state.labels.pop(), this.finishNode(t, "ForStatement"); } parseForIn(t, r, i) { let n = this.match(58); return this.next(), n ? i !== null && this.unexpected(i) : t.await = i !== null, r.type === "VariableDeclaration" && r.declarations[0]. init != null && (!n || !this.options.annexB || this.state.strict || r.kind !== "var" || r.declarations[0].id.type !== "Identifier") && this.raise(L.ForInOfLoopInitializer, r, { type: n ? "ForInStatement" : "ForOfStatement" }), r.type === "AssignmentPattern" && this.raise(L.InvalidLhs, r, { ancestor: { type: "ForStatement" } }), t.left = r, t.right = n ? this.parseExpression() : this.parseMaybeAssignAllowIn(), this.expect(11), t.body = this.withSmartMixTopicForbiddingContext( () => this.parseStatement()), this.scope.exit(), this.state.labels.pop(), this.finishNode(t, n ? "ForInStatement" : "ForOfStatement"); } parseVar(t, r, i, n = !1) { let a = t.declarations = []; for (t.kind = i; ; ) { let o = this.startNode(); if (this.parseVarId(o, i), o.init = this.eat(29) ? r ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn() : null, o. init === null && !n && (o.id.type !== "Identifier" && !(r && (this.match(58) || this.isContextual(102))) ? this.raise(L.DeclarationMissingInitializer, this.state.lastTokEndLoc, { kind: "destructuring" }) : (i === "const" || i === "using" || i === "await using") && !(this.match(58) || this.isContextual(102)) && this.raise(L.DeclarationMissingInitializer, this.state.lastTokEndLoc, { kind: i })), a.push(this.finishNode(o, "VariableDeclarator")), !this.eat(12)) break; } return t; } parseVarId(t, r) { let i = this.parseBindingAtom(); (r === "using" || r === "await using") && (i.type === "ArrayPattern" || i.type === "ObjectPattern") && this.raise(L.UsingDeclarationHasBindingPattern, i.loc.start), this.checkLVal(i, { type: "VariableDeclarator" }, r === "var" ? 5 : 8201), t.id = i; } parseAsyncFunctionExpression(t) { return this.parseFunction(t, 8); } parseFunction(t, r = 0) { let i = r & 2, n = !!(r & 1), a = n && !(r & 4), o = !!(r & 8); this.initFunction(t, o), this.match(55) && (i && this.raise(L.GeneratorInSingleStatementContext, this.state.startLoc), this.next(), t. generator = !0), n && (t.id = this.parseFunctionId(a)); let u = this.state.maybeInArrowParameters; return this.state.maybeInArrowParameters = !1, this.scope.enter(2), this.prodParam.enter(jy(o, t.generator)), n || (t.id = this.parseFunctionId()), this.parseFunctionParams(t, !1), this.withSmartMixTopicForbiddingContext(() => { this.parseFunctionBodyAndFinish(t, n ? "FunctionDeclaration" : "FunctionExpression"); }), this.prodParam.exit(), this.scope.exit(), n && !i && this.registerFunctionStatementId(t), this.state.maybeInArrowParameters = u, t; } parseFunctionId(t) { return t || xt(this.state.type) ? this.parseIdentifier() : null; } parseFunctionParams(t, r) { this.expect(10), this.expressionScope.enter(ePe()), t.params = this.parseBindingList(11, 41, 2 | (r ? 4 : 0)), this.expressionScope.exit(); } registerFunctionStatementId(t) { t.id && this.scope.declareName(t.id.name, !this.options.annexB || this.state.strict || t.generator || t.async ? this.scope.treatFunctionsAsVar ? 5 : 8201 : 17, t.id.loc.start); } parseClass(t, r, i) { this.next(); let n = this.state.strict; return this.state.strict = !0, this.parseClassId(t, r, i), this.parseClassSuper(t), t.body = this.parseClassBody(!!t.superClass, n), this. finishNode(t, r ? "ClassDeclaration" : "ClassExpression"); } isClassProperty() { return this.match(29) || this.match(13) || this.match(8); } isClassMethod() { return this.match(10); } nameIsConstructor(t) { return t.type === "Identifier" && t.name === "constructor" || t.type === "StringLiteral" && t.value === "constructor"; } isNonstaticConstructor(t) { return !t.computed && !t.static && this.nameIsConstructor(t.key); } parseClassBody(t, r) { this.classScope.enter(); let i = { hadConstructor: !1, hadSuperClass: t }, n = [], a = this.startNode(); if (a.body = [], this.expect(5), this.withSmartMixTopicForbiddingContext(() => { for (; !this.match(8); ) { if (this.eat(13)) { if (n.length > 0) throw this.raise(L.DecoratorSemicolon, this.state.lastTokEndLoc); continue; } if (this.match(26)) { n.push(this.parseDecorator()); continue; } let o = this.startNode(); n.length && (o.decorators = n, this.resetStartLocationFromNode(o, n[0]), n = []), this.parseClassMember(a, o, i), o.kind === "cons\ tructor" && o.decorators && o.decorators.length > 0 && this.raise(L.DecoratorConstructor, o); } }), this.state.strict = r, this.next(), n.length) throw this.raise(L.TrailingDecorator, this.state.startLoc); return this.classScope.exit(), this.finishNode(a, "ClassBody"); } parseClassMemberFromModifier(t, r) { let i = this.parseIdentifier(!0); if (this.isClassMethod()) { let n = r; return n.kind = "method", n.computed = !1, n.key = i, n.static = !1, this.pushClassMethod(t, n, !1, !1, !1, !1), !0; } else if (this.isClassProperty()) { let n = r; return n.computed = !1, n.key = i, n.static = !1, t.body.push(this.parseClassProperty(n)), !0; } return this.resetPreviousNodeTrailingComments(i), !1; } parseClassMember(t, r, i) { let n = this.isContextual(106); if (n) { if (this.parseClassMemberFromModifier(t, r)) return; if (this.eat(5)) { this.parseClassStaticBlock(t, r); return; } } this.parseClassMemberWithIsStatic(t, r, i, n); } parseClassMemberWithIsStatic(t, r, i, n) { let a = r, o = r, u = r, l = r, c = r, f = a, m = a; if (r.static = n, this.parsePropertyNamePrefixOperator(r), this.eat(55)) { f.kind = "method"; let b = this.match(139); if (this.parseClassElementName(f), b) { this.pushClassPrivateMethod(t, o, !0, !1); return; } this.isNonstaticConstructor(a) && this.raise(L.ConstructorIsGenerator, a.key), this.pushClassMethod(t, a, !0, !1, !1, !1); return; } let h = !this.state.containsEsc && xt(this.state.type), d = this.parseClassElementName(r), y = h ? d.name : null, p = this.isPrivateName( d), g = this.state.startLoc; if (this.parsePostMemberNameModifiers(m), this.isClassMethod()) { if (f.kind = "method", p) { this.pushClassPrivateMethod(t, o, !1, !1); return; } let b = this.isNonstaticConstructor(a), D = !1; b && (a.kind = "constructor", i.hadConstructor && !this.hasPlugin("typescript") && this.raise(L.DuplicateConstructor, d), b && this. hasPlugin("typescript") && r.override && this.raise(L.OverrideOnConstructor, d), i.hadConstructor = !0, D = i.hadSuperClass), this.pushClassMethod( t, a, !1, !1, b, D); } else if (this.isClassProperty()) p ? this.pushClassPrivateProperty(t, l) : this.pushClassProperty(t, u); else if (y === "async" && !this.isLineTerminator()) { this.resetPreviousNodeTrailingComments(d); let b = this.eat(55); m.optional && this.unexpected(g), f.kind = "method"; let D = this.match(139); this.parseClassElementName(f), this.parsePostMemberNameModifiers(m), D ? this.pushClassPrivateMethod(t, o, b, !0) : (this.isNonstaticConstructor( a) && this.raise(L.ConstructorIsAsync, a.key), this.pushClassMethod(t, a, b, !0, !1, !1)); } else if ((y === "get" || y === "set") && !(this.match(55) && this.isLineTerminator())) { this.resetPreviousNodeTrailingComments(d), f.kind = y; let b = this.match(139); this.parseClassElementName(a), b ? this.pushClassPrivateMethod(t, o, !1, !1) : (this.isNonstaticConstructor(a) && this.raise(L.ConstructorIsAccessor, a.key), this.pushClassMethod(t, a, !1, !1, !1, !1)), this.checkGetterSetterParams(a); } else if (y === "accessor" && !this.isLineTerminator()) { this.expectPlugin("decoratorAutoAccessors"), this.resetPreviousNodeTrailingComments(d); let b = this.match(139); this.parseClassElementName(u), this.pushClassAccessorProperty(t, c, b); } else this.isLineTerminator() ? p ? this.pushClassPrivateProperty(t, l) : this.pushClassProperty(t, u) : this.unexpected(); } parseClassElementName(t) { let { type: r, value: i } = this.state; if ((r === 132 || r === 134) && t.static && i === "prototype" && this.raise(L.StaticPrototype, this.state.startLoc), r === 139) { i === "constructor" && this.raise(L.ConstructorClassPrivateField, this.state.startLoc); let n = this.parsePrivateName(); return t.key = n, n; } return this.parsePropertyName(t), t.key; } parseClassStaticBlock(t, r) { var i; this.scope.enter(208); let n = this.state.labels; this.state.labels = [], this.prodParam.enter(0); let a = r.body = []; this.parseBlockOrModuleBlockBody(a, void 0, !1, 8), this.prodParam.exit(), this.scope.exit(), this.state.labels = n, t.body.push(this. finishNode(r, "StaticBlock")), (i = r.decorators) != null && i.length && this.raise(L.DecoratorStaticBlock, r); } pushClassProperty(t, r) { !r.computed && this.nameIsConstructor(r.key) && this.raise(L.ConstructorClassField, r.key), t.body.push(this.parseClassProperty(r)); } pushClassPrivateProperty(t, r) { let i = this.parseClassPrivateProperty(r); t.body.push(i), this.classScope.declarePrivateName(this.getPrivateNameSV(i.key), 0, i.key.loc.start); } pushClassAccessorProperty(t, r, i) { !i && !r.computed && this.nameIsConstructor(r.key) && this.raise(L.ConstructorClassField, r.key); let n = this.parseClassAccessorProperty(r); t.body.push(n), i && this.classScope.declarePrivateName(this.getPrivateNameSV(n.key), 0, n.key.loc.start); } pushClassMethod(t, r, i, n, a, o) { t.body.push(this.parseMethod(r, i, n, a, o, "ClassMethod", !0)); } pushClassPrivateMethod(t, r, i, n) { let a = this.parseMethod(r, i, n, !1, !1, "ClassPrivateMethod", !0); t.body.push(a); let o = a.kind === "get" ? a.static ? 6 : 2 : a.kind === "set" ? a.static ? 5 : 1 : 0; this.declareClassPrivateMethodInScope(a, o); } declareClassPrivateMethodInScope(t, r) { this.classScope.declarePrivateName(this.getPrivateNameSV(t.key), r, t.key.loc.start); } parsePostMemberNameModifiers(t) { } parseClassPrivateProperty(t) { return this.parseInitializer(t), this.semicolon(), this.finishNode(t, "ClassPrivateProperty"); } parseClassProperty(t) { return this.parseInitializer(t), this.semicolon(), this.finishNode(t, "ClassProperty"); } parseClassAccessorProperty(t) { return this.parseInitializer(t), this.semicolon(), this.finishNode(t, "ClassAccessorProperty"); } parseInitializer(t) { this.scope.enter(80), this.expressionScope.enter(U9()), this.prodParam.enter(0), t.value = this.eat(29) ? this.parseMaybeAssignAllowIn() : null, this.expressionScope.exit(), this.prodParam.exit(), this.scope.exit(); } parseClassId(t, r, i, n = 8331) { if (xt(this.state.type)) t.id = this.parseIdentifier(), r && this.declareNameFromIdentifier(t.id, n); else if (i || !r) t.id = null; else throw this.raise(L.MissingClassName, this.state.startLoc); } parseClassSuper(t) { t.superClass = this.eat(81) ? this.parseExprSubscripts() : null; } parseExport(t, r) { let i = this.parseMaybeImportPhase(t, !0), n = this.maybeParseExportDefaultSpecifier(t, i), a = !n || this.eat(12), o = a && this.eatExportStar( t), u = o && this.maybeParseExportNamespaceSpecifier(t), l = a && (!u || this.eat(12)), c = n || o; if (o && !u) { if (n && this.unexpected(), r) throw this.raise(L.UnsupportedDecoratorExport, t); return this.parseExportFrom(t, !0), this.sawUnambiguousESM = !0, this.finishNode(t, "ExportAllDeclaration"); } let f = this.maybeParseExportNamedSpecifiers(t); n && a && !o && !f && this.unexpected(null, 5), u && l && this.unexpected(null, 98); let m; if (c || f) { if (m = !1, r) throw this.raise(L.UnsupportedDecoratorExport, t); this.parseExportFrom(t, c); } else m = this.maybeParseExportDeclaration(t); if (c || f || m) { var h; let d = t; if (this.checkExport(d, !0, !1, !!d.source), ((h = d.declaration) == null ? void 0 : h.type) === "ClassDeclaration") this.maybeTakeDecorators(r, d.declaration, d); else if (r) throw this.raise(L.UnsupportedDecoratorExport, t); return this.sawUnambiguousESM = !0, this.finishNode(d, "ExportNamedDeclaration"); } if (this.eat(65)) { let d = t, y = this.parseExportDefaultExpression(); if (d.declaration = y, y.type === "ClassDeclaration") this.maybeTakeDecorators(r, y, d); else if (r) throw this.raise(L.UnsupportedDecoratorExport, t); return this.checkExport(d, !0, !0), this.sawUnambiguousESM = !0, this.finishNode(d, "ExportDefaultDeclaration"); } this.unexpected(null, 5); } eatExportStar(t) { return this.eat(55); } maybeParseExportDefaultSpecifier(t, r) { if (r || this.isExportDefaultSpecifier()) { this.expectPlugin("exportDefaultFrom", r?.loc.start); let i = r || this.parseIdentifier(!0), n = this.startNodeAtNode(i); return n.exported = i, t.specifiers = [this.finishNode(n, "ExportDefaultSpecifier")], !0; } return !1; } maybeParseExportNamespaceSpecifier(t) { if (this.isContextual(93)) { var r, i; (i = (r = t).specifiers) != null || (r.specifiers = []); let n = this.startNodeAt(this.state.lastTokStartLoc); return this.next(), n.exported = this.parseModuleExportName(), t.specifiers.push(this.finishNode(n, "ExportNamespaceSpecifier")), !0; } return !1; } maybeParseExportNamedSpecifiers(t) { if (this.match(5)) { let r = t; r.specifiers || (r.specifiers = []); let i = r.exportKind === "type"; return r.specifiers.push(...this.parseExportSpecifiers(i)), r.source = null, this.hasPlugin("importAssertions") ? r.assertions = [] : r.attributes = [], r.declaration = null, !0; } return !1; } maybeParseExportDeclaration(t) { return this.shouldParseExportDeclaration() ? (t.specifiers = [], t.source = null, this.hasPlugin("importAssertions") ? t.assertions = [] : t.attributes = [], t.declaration = this.parseExportDeclaration(t), !0) : !1; } isAsyncFunction() { if (!this.isContextual(95)) return !1; let t = this.nextTokenInLineStart(); return this.isUnparsedContextual(t, "function"); } parseExportDefaultExpression() { let t = this.startNode(); if (this.match(68)) return this.next(), this.parseFunction(t, 5); if (this.isAsyncFunction()) return this.next(), this.next(), this.parseFunction(t, 13); if (this.match(80)) return this.parseClass(t, !0, !0); if (this.match(26)) return this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") === !0 && this.raise(L.DecoratorBeforeExport, this.state.startLoc), this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1), this.startNode()), !0, !0); if (this.match(75) || this.match(74) || this.isLet()) throw this.raise(L.UnsupportedDefaultExport, this.state.startLoc); let r = this.parseMaybeAssignAllowIn(); return this.semicolon(), r; } parseExportDeclaration(t) { return this.match(80) ? this.parseClass(this.startNode(), !0, !1) : this.parseStatementListItem(); } isExportDefaultSpecifier() { let { type: t } = this.state; if (xt(t)) { if (t === 95 && !this.state.containsEsc || t === 100) return !1; if ((t === 130 || t === 129) && !this.state.containsEsc) { let { type: n } = this.lookahead(); if (xt(n) && n !== 98 || n === 5) return this.expectOnePlugin(["flow", "typescript"]), !1; } } else if (!this.match(65)) return !1; let r = this.nextTokenStart(), i = this.isUnparsedContextual(r, "from"); if (this.input.charCodeAt(r) === 44 || xt(this.state.type) && i) return !0; if (this.match(65) && i) { let n = this.input.charCodeAt(this.nextTokenStartSince(r + 4)); return n === 34 || n === 39; } return !1; } parseExportFrom(t, r) { this.eatContextual(98) ? (t.source = this.parseImportSource(), this.checkExport(t), this.maybeParseImportAttributes(t), this.checkJSONModuleImport( t)) : r && this.unexpected(), this.semicolon(); } shouldParseExportDeclaration() { let { type: t } = this.state; return t === 26 && (this.expectOnePlugin(["decorators", "decorators-legacy"]), this.hasPlugin("decorators")) ? (this.getPluginOption("\ decorators", "decoratorsBeforeExport") === !0 && this.raise(L.DecoratorBeforeExport, this.state.startLoc), !0) : this.isContextual(107) ? (this. raise(L.UsingDeclarationExport, this.state.startLoc), !0) : this.isContextual(96) && this.startsAwaitUsing() ? (this.raise(L.UsingDeclarationExport, this.state.startLoc), !0) : t === 74 || t === 75 || t === 68 || t === 80 || this.isLet() || this.isAsyncFunction(); } checkExport(t, r, i, n) { if (r) { var a; if (i) { if (this.checkDuplicateExports(t, "default"), this.hasPlugin("exportDefaultFrom")) { var o; let u = t.declaration; u.type === "Identifier" && u.name === "from" && u.end - u.start === 4 && !((o = u.extra) != null && o.parenthesized) && this.raise( L.ExportDefaultFromAsIdentifier, u); } } else if ((a = t.specifiers) != null && a.length) for (let u of t.specifiers) { let { exported: l } = u, c = l.type === "Identifier" ? l.name : l.value; if (this.checkDuplicateExports(u, c), !n && u.local) { let { local: f } = u; f.type !== "Identifier" ? this.raise(L.ExportBindingIsString, u, { localName: f.value, exportName: c }) : (this.checkReservedWord(f.name, f.loc.start, !0, !1), this.scope.checkLocalExport(f)); } } else if (t.declaration) { let u = t.declaration; if (u.type === "FunctionDeclaration" || u.type === "ClassDeclaration") { let { id: l } = u; if (!l) throw new Error("Assertion failure"); this.checkDuplicateExports(t, l.name); } else if (u.type === "VariableDeclaration") for (let l of u.declarations) this.checkDeclaration(l.id); } } } checkDeclaration(t) { if (t.type === "Identifier") this.checkDuplicateExports(t, t.name); else if (t.type === "ObjectPattern") for (let r of t.properties) this.checkDeclaration(r); else if (t.type === "ArrayPattern") for (let r of t.elements) r && this.checkDeclaration(r); else t.type === "ObjectProperty" ? this.checkDeclaration(t.value) : t.type === "RestElement" ? this.checkDeclaration(t.argument) : t.type === "AssignmentPattern" && this.checkDeclaration(t.left); } checkDuplicateExports(t, r) { this.exportedIdentifiers.has(r) && (r === "default" ? this.raise(L.DuplicateDefaultExport, t) : this.raise(L.DuplicateExport, t, { exportName: r })), this.exportedIdentifiers.add(r); } parseExportSpecifiers(t) { let r = [], i = !0; for (this.expect(5); !this.eat(8); ) { if (i) i = !1; else if (this.expect(12), this.eat(8)) break; let n = this.isContextual(130), a = this.match(134), o = this.startNode(); o.local = this.parseModuleExportName(), r.push(this.parseExportSpecifier(o, a, t, n)); } return r; } parseExportSpecifier(t, r, i, n) { return this.eatContextual(93) ? t.exported = this.parseModuleExportName() : r ? t.exported = nPe(t.local) : t.exported || (t.exported = $s(t.local)), this.finishNode(t, "ExportSpecifier"); } parseModuleExportName() { if (this.match(134)) { let t = this.parseStringLiteral(this.state.value), r = CPe.exec(t.value); return r && this.raise(L.ModuleExportNameHasLoneSurrogate, t, { surrogateCharCode: r[0].charCodeAt(0) }), t; } return this.parseIdentifier(!0); } isJSONModuleImport(t) { return t.assertions != null ? t.assertions.some(({ key: r, value: i }) => i.value === "json" && (r.type === "Identifier" ? r.name === "type" : r.value === "type")) : !1; } checkImportReflection(t) { let { specifiers: r } = t, i = r.length === 1 ? r[0].type : null; if (t.phase === "source") i !== "ImportDefaultSpecifier" && this.raise(L.SourcePhaseImportRequiresDefault, r[0].loc.start); else if (t.phase === "defer") i !== "ImportNamespaceSpecifier" && this.raise(L.DeferImportRequiresNamespace, r[0].loc.start); else if (t.module) { var n; i !== "ImportDefaultSpecifier" && this.raise(L.ImportReflectionNotBinding, r[0].loc.start), ((n = t.assertions) == null ? void 0 : n. length) > 0 && this.raise(L.ImportReflectionHasAssertion, r[0].loc.start); } } checkJSONModuleImport(t) { if (this.isJSONModuleImport(t) && t.type !== "ExportAllDeclaration") { let { specifiers: r } = t; if (r != null) { let i = r.find((n) => { let a; if (n.type === "ExportSpecifier" ? a = n.local : n.type === "ImportSpecifier" && (a = n.imported), a !== void 0) return a.type === "Identifier" ? a.name !== "default" : a.value !== "default"; }); i !== void 0 && this.raise(L.ImportJSONBindingNotDefault, i.loc.start); } } } isPotentialImportPhase(t) { return t ? !1 : this.isContextual(105) || this.isContextual(97) || this.isContextual(127); } applyImportPhase(t, r, i, n) { r || (i === "module" ? (this.expectPlugin("importReflection", n), t.module = !0) : this.hasPlugin("importReflection") && (t.module = !1), i === "source" ? (this.expectPlugin("sourcePhaseImports", n), t.phase = "source") : i === "defer" ? (this.expectPlugin("deferredImport\ Evaluation", n), t.phase = "defer") : this.hasPlugin("sourcePhaseImports") && (t.phase = null)); } parseMaybeImportPhase(t, r) { if (!this.isPotentialImportPhase(r)) return this.applyImportPhase(t, r, null), null; let i = this.parseIdentifier(!0), { type: n } = this.state; return (Tn(n) ? n !== 98 || this.lookaheadCharCode() === 102 : n !== 12) ? (this.resetPreviousIdentifierLeadingComments(i), this.applyImportPhase( t, r, i.name, i.loc.start), null) : (this.applyImportPhase(t, r, null), i); } isPrecedingIdImportPhase(t) { let { type: r } = this.state; return xt(r) ? r !== 98 || this.lookaheadCharCode() === 102 : r !== 12; } parseImport(t) { return this.match(134) ? this.parseImportSourceAndAttributes(t) : this.parseImportSpecifiersAndAfter(t, this.parseMaybeImportPhase(t, !1)); } parseImportSpecifiersAndAfter(t, r) { t.specifiers = []; let n = !this.maybeParseDefaultImportSpecifier(t, r) || this.eat(12), a = n && this.maybeParseStarImportSpecifier(t); return n && !a && this.parseNamedImportSpecifiers(t), this.expectContextual(98), this.parseImportSourceAndAttributes(t); } parseImportSourceAndAttributes(t) { var r; return (r = t.specifiers) != null || (t.specifiers = []), t.source = this.parseImportSource(), this.maybeParseImportAttributes(t), this. checkImportReflection(t), this.checkJSONModuleImport(t), this.semicolon(), this.sawUnambiguousESM = !0, this.finishNode(t, "ImportDecl\ aration"); } parseImportSource() { return this.match(134) || this.unexpected(), this.parseExprAtom(); } parseImportSpecifierLocal(t, r, i) { r.local = this.parseIdentifier(), t.specifiers.push(this.finishImportSpecifier(r, i)); } finishImportSpecifier(t, r, i = 8201) { return this.checkLVal(t.local, { type: r }, i), this.finishNode(t, r); } parseImportAttributes() { this.expect(5); let t = [], r = /* @__PURE__ */ new Set(); do { if (this.match(8)) break; let i = this.startNode(), n = this.state.value; if (r.has(n) && this.raise(L.ModuleAttributesWithDuplicateKeys, this.state.startLoc, { key: n }), r.add(n), this.match(134) ? i.key = this.parseStringLiteral(n) : i.key = this.parseIdentifier(!0), this.expect(14), !this.match( 134)) throw this.raise(L.ModuleAttributeInvalidValue, this.state.startLoc); i.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(i, "ImportAttribute")); } while (this.eat(12)); return this.expect(8), t; } parseModuleAttributes() { let t = [], r = /* @__PURE__ */ new Set(); do { let i = this.startNode(); if (i.key = this.parseIdentifier(!0), i.key.name !== "type" && this.raise(L.ModuleAttributeDifferentFromType, i.key), r.has(i.key.name) && this.raise(L.ModuleAttributesWithDuplicateKeys, i.key, { key: i.key.name }), r.add(i.key.name), this.expect(14), !this.match(134)) throw this.raise(L.ModuleAttributeInvalidValue, this.state.startLoc); i.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(i, "ImportAttribute")); } while (this.eat(12)); return t; } maybeParseImportAttributes(t) { let r; var i = !1; if (this.match(76)) { if (this.hasPrecedingLineBreak() && this.lookaheadCharCode() === 40) return; this.next(), this.hasPlugin("moduleAttributes") ? (r = this.parseModuleAttributes(), this.addExtra(t, "deprecatedWithLegacySyntax", !0)) : r = this.parseImportAttributes(), i = !0; } else this.isContextual(94) && !this.hasPrecedingLineBreak() ? (!this.hasPlugin("deprecatedImportAssert") && !this.hasPlugin("importA\ ssertions") && this.raise(L.ImportAttributesUseAssert, this.state.startLoc), this.hasPlugin("importAssertions") || this.addExtra(t, "depreca\ tedAssertSyntax", !0), this.next(), r = this.parseImportAttributes()) : r = []; !i && this.hasPlugin("importAssertions") ? t.assertions = r : t.attributes = r; } maybeParseDefaultImportSpecifier(t, r) { if (r) { let i = this.startNodeAtNode(r); return i.local = r, t.specifiers.push(this.finishImportSpecifier(i, "ImportDefaultSpecifier")), !0; } else if (Tn(this.state.type)) return this.parseImportSpecifierLocal(t, this.startNode(), "ImportDefaultSpecifier"), !0; return !1; } maybeParseStarImportSpecifier(t) { if (this.match(55)) { let r = this.startNode(); return this.next(), this.expectContextual(93), this.parseImportSpecifierLocal(t, r, "ImportNamespaceSpecifier"), !0; } return !1; } parseNamedImportSpecifiers(t) { let r = !0; for (this.expect(5); !this.eat(8); ) { if (r) r = !1; else { if (this.eat(14)) throw this.raise(L.DestructureNamedImport, this.state.startLoc); if (this.expect(12), this.eat(8)) break; } let i = this.startNode(), n = this.match(134), a = this.isContextual(130); i.imported = this.parseModuleExportName(); let o = this.parseImportSpecifier(i, n, t.importKind === "type" || t.importKind === "typeof", a, void 0); t.specifiers.push(o); } } parseImportSpecifier(t, r, i, n, a) { if (this.eatContextual(93)) t.local = this.parseIdentifier(); else { let { imported: o } = t; if (r) throw this.raise(L.ImportBindingIsString, t, { importName: o.value }); this.checkReservedWord(o.name, t.loc.start, !0, !0), t.local || (t.local = $s(o)); } return this.finishImportSpecifier(t, "ImportSpecifier", a); } isThisParam(t) { return t.type === "Identifier" && t.name === "this"; } }, Wy = class extends hC { static { s(this, "Parser"); } constructor(t, r, i) { t = x2e(t), super(t, r), this.options = t, this.initializeScopes(), this.plugins = i, this.filename = t.sourceFilename, this.startIndex = t.startIndex; let n = 0; t.allowAwaitOutsideFunction && (n |= 1), t.allowReturnOutsideFunction && (n |= 2), t.allowImportExportEverywhere && (n |= 8), t.allowSuperOutsideMethod && (n |= 16), t.allowUndeclaredExports && (n |= 64), t.allowNewTargetOutsideFunction && (n |= 4), t.allowYieldOutsideFunction && (n |= 32), t.ranges && (n |= 128), t.tokens && (n |= 256), t.createImportExpressions && (n |= 512), t.createParenthesizedExpressions && (n |= 1024), t.errorRecovery && (n |= 2048), t.attachComment && (n |= 4096), t.annexB && (n |= 8192), this.optionFlags = n; } getScopeHandler() { return Md; } parse() { this.enterInitialScopes(); let t = this.startNode(), r = this.startNode(); return this.nextToken(), t.errors = null, this.parseTopLevel(t, r), t.errors = this.state.errors, t.comments.length = this.state.commentsLen, t; } }; function APe(e, t) { var r; if (((r = t) == null ? void 0 : r.sourceType) === "unambiguous") { t = Object.assign({}, t); try { t.sourceType = "module"; let i = kd(t, e), n = i.parse(); if (i.sawUnambiguousESM) return n; if (i.ambiguousScriptDifferentAst) try { return t.sourceType = "script", kd(t, e).parse(); } catch { } else n.program.sourceType = "script"; return n; } catch (i) { try { return t.sourceType = "script", kd(t, e).parse(); } catch { } throw i; } } else return kd(t, e).parse(); } s(APe, "parse"); function _Pe(e, t) { let r = kd(t, e); return r.options.strictMode && (r.state.strict = !0), r.getExpression(); } s(_Pe, "parseExpression"); function PPe(e) { let t = {}; for (let r of Object.keys(e)) t[r] = Ls(e[r]); return t; } s(PPe, "generateExportedTokenTypes"); var FPe = PPe(w2e); function kd(e, t) { let r = Wy, i = /* @__PURE__ */ new Map(); if (e != null && e.plugins) { for (let n of e.plugins) { let a, o; typeof n == "string" ? a = n : [a, o] = n, i.has(a) || i.set(a, o || {}); } xPe(i), r = IPe(i); } return new r(e, t, i); } s(kd, "getParser"); var F9 = /* @__PURE__ */ new Map(); function IPe(e) { let t = []; for (let n of SPe) e.has(n) && t.push(n); let r = t.join("|"), i = F9.get(r); if (!i) { i = Wy; for (let n of t) i = H9[n](i); F9.set(r, i); } return i; } s(IPe, "getParserClass"); jd.parse = APe; jd.parseExpression = _Pe; jd.tokTypes = FPe; }); // ../node_modules/js-tokens/index.js var K9 = E(($y) => { Object.defineProperty($y, "__esModule", { value: !0 }); $y.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g; $y.matchToToken = function(e) { var t = { type: "invalid", value: e[0], closed: void 0 }; return e[1] ? (t.type = "string", t.closed = !!(e[3] || e[4])) : e[5] ? t.type = "comment" : e[6] ? (t.type = "comment", t.closed = !!e[7]) : e[8] ? t.type = "regex" : e[9] ? t.type = "number" : e[10] ? t.type = "name" : e[11] ? t.type = "punctuator" : e[12] && (t.type = "white\ space"), t; }; }); // ../node_modules/@babel/code-frame/lib/index.js var qd = E((Ld) => { "use strict"; Object.defineProperty(Ld, "__esModule", { value: !0 }); var CC = Sh(), z9 = K9(), G9 = Il(); function OPe() { return typeof process == "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? !1 : CC.isColorSupported; } s(OPe, "isColorSupported"); var Vy = /* @__PURE__ */ s((e, t) => (r) => e(t(r)), "compose"); function Y9(e) { return { keyword: e.cyan, capitalized: e.yellow, jsxIdentifier: e.yellow, punctuator: e.yellow, number: e.magenta, string: e.green, regex: e.magenta, comment: e.gray, invalid: Vy(Vy(e.white, e.bgRed), e.bold), gutter: e.gray, marker: Vy(e.red, e.bold), message: Vy(e.red, e.bold), reset: e.reset }; } s(Y9, "buildDefs"); var kPe = Y9(CC.createColors(!0)), BPe = Y9(CC.createColors(!1)); function Z9(e) { return e ? kPe : BPe; } s(Z9, "getDefs"); var NPe = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]), MPe = /\r\n|[\n\r\u2028\u2029]/, RPe = /^[()[\]{}]$/, Q9; { let e = /^[a-z][\w-]*$/i, t = /* @__PURE__ */ s(function(r, i, n) { if (r.type === "name") { if (G9.isKeyword(r.value) || G9.isStrictReservedWord(r.value, !0) || NPe.has(r.value)) return "keyword"; if (e.test(r.value) && (n[i - 1] === "<" || n.slice(i - 2, i) === " t[i](a)).join(` `) : r += n; return r; } s(e7, "highlight"); var J9 = !1, X9 = /\r\n|[\n\r\u2028\u2029]/; function jPe(e, t, r) { let i = Object.assign({ column: 0, line: -1 }, e.start), n = Object.assign({}, i, e.end), { linesAbove: a = 2, linesBelow: o = 3 } = r || {}, u = i.line, l = i.column, c = n.line, f = n.column, m = Math.max(u - (a + 1), 0), h = Math.min(t.length, c + o); u === -1 && (m = 0), c === -1 && (h = t.length); let d = c - u, y = {}; if (d) for (let p = 0; p <= d; p++) { let g = p + u; if (!l) y[g] = !0; else if (p === 0) { let b = t[g - 1].length; y[g] = [l, b - l + 1]; } else if (p === d) y[g] = [0, f]; else { let b = t[g - p].length; y[g] = [0, b]; } } else l === f ? l ? y[u] = [l, 0] : y[u] = !0 : y[u] = [l, f - l]; return { start: m, end: h, markerLines: y }; } s(jPe, "getMarkerLines"); function t7(e, t, r = {}) { let i = r.forceColor || OPe() && r.highlightCode, n = Z9(i), a = e.split(X9), { start: o, end: u, markerLines: l } = jPe(t, a, r), c = t.start && typeof t.start.column == "number", f = String(u).length, h = (i ? e7(e) : e).split(X9, u).slice(o, u).map( (d, y) => { let p = o + 1 + y, b = ` ${` ${p}`.slice(-f)} |`, D = l[p], v = !l[p + 1]; if (D) { let S = ""; if (Array.isArray(D)) { let C = d.slice(0, Math.max(D[0] - 1, 0)).replace(/[^\t]/g, " "), O = D[1] || 1; S = [` `, n.gutter(b.replace(/\d/g, " ")), " ", C, n.marker("^").repeat(O)].join(""), v && r.message && (S += " " + n.message(r.message)); } return [n.marker(">"), n.gutter(b), d.length > 0 ? ` ${d}` : "", S].join(""); } else return ` ${n.gutter(b)}${d.length > 0 ? ` ${d}` : ""}`; }).join(` `); return r.message && !c && (h = `${" ".repeat(f + 1)}${r.message} ${h}`), i ? n.reset(h) : h; } s(t7, "codeFrameColumns"); function LPe(e, t, r, i = {}) { if (!J9) { J9 = !0; let a = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`."; if (process.emitWarning) process.emitWarning(a, "DeprecationWarning"); else { let o = new Error(a); o.name = "DeprecationWarning", console.warn(new Error(a)); } } return r = Math.max(r, 0), t7(e, { start: { column: r, line: t } }, i); } s(LPe, "index"); Ld.codeFrameColumns = t7; Ld.default = LPe; Ld.highlight = e7; }); // ../node_modules/@babel/template/lib/parse.js var AC = E((wC) => { "use strict"; Object.defineProperty(wC, "__esModule", { value: !0 }); wC.default = QPe; var qPe = $e(), UPe = Jo(), WPe = qd(), { isCallExpression: $Pe, isExpressionStatement: VPe, isFunction: HPe, isIdentifier: KPe, isJSXIdentifier: zPe, isNewExpression: GPe, isPlaceholder: Hy, isStatement: JPe, isStringLiteral: r7, removePropertiesDeep: XPe, traverse: YPe } = qPe, ZPe = /^[_$A-Z0-9]+$/; function QPe(e, t, r) { let { placeholderWhitelist: i, placeholderPattern: n, preserveComments: a, syntacticPlaceholders: o } = r, u = rFe(t, r.parser, o); XPe(u, { preserveComments: a }), e.validate(u); let l = { syntactic: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, legacy: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, placeholderWhitelist: i, placeholderPattern: n, syntacticPlaceholders: o }; return YPe(u, eFe, l), Object.assign({ ast: u }, l.syntactic.placeholders.length ? l.syntactic : l.legacy); } s(QPe, "parseAndBuildMetadata"); function eFe(e, t, r) { var i; let n, a = r.syntactic.placeholders.length > 0; if (Hy(e)) { if (r.syntacticPlaceholders === !1) throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false."); n = e.name.name, a = !0; } else { if (a || r.syntacticPlaceholders) return; if (KPe(e) || zPe(e)) n = e.name; else if (r7(e)) n = e.value; else return; } if (a && (r.placeholderPattern != null || r.placeholderWhitelist != null)) throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'"); if (!a && (r.placeholderPattern === !1 || !(r.placeholderPattern || ZPe).test(n)) && !((i = r.placeholderWhitelist) != null && i.has(n))) return; t = t.slice(); let { node: o, key: u } = t[t.length - 1], l; r7(e) || Hy(e, { expectedNode: "StringLiteral" }) ? l = "string" : GPe(o) && u === "arguments" || $Pe(o) && u === "arguments" || HPe(o) && u === "params" ? l = "param" : VPe(o) && !Hy( e) ? (l = "statement", t = t.slice(0, -1)) : JPe(e) && Hy(e) ? l = "statement" : l = "other"; let { placeholders: c, placeholderNames: f } = a ? r.syntactic : r.legacy; c.push({ name: n, type: l, resolve: /* @__PURE__ */ s((m) => tFe(m, t), "resolve"), isDuplicate: f.has(n) }), f.add(n); } s(eFe, "placeholderVisitorHandler"); function tFe(e, t) { let r = e; for (let a = 0; a < t.length - 1; a++) { let { key: o, index: u } = t[a]; u === void 0 ? r = r[o] : r = r[o][u]; } let { key: i, index: n } = t[t.length - 1]; return { parent: r, key: i, index: n }; } s(tFe, "resolveAncestors"); function rFe(e, t, r) { let i = (t.plugins || []).slice(); r !== !1 && i.push("placeholders"), t = Object.assign({ allowAwaitOutsideFunction: !0, allowReturnOutsideFunction: !0, allowNewTargetOutsideFunction: !0, allowSuperOutsideMethod: !0, allowYieldOutsideFunction: !0, sourceType: "module" }, t, { plugins: i }); try { return (0, UPe.parse)(e, t); } catch (n) { let a = n.loc; throw a && (n.message += ` ` + (0, WPe.codeFrameColumns)(e, { start: a }), n.code = "BABEL_TEMPLATE_PARSE_ERROR"), n; } } s(rFe, "parseWithCodeFrame"); }); // ../node_modules/@babel/template/lib/populate.js var IC = E((FC) => { "use strict"; Object.defineProperty(FC, "__esModule", { value: !0 }); FC.default = uFe; var iFe = $e(), { blockStatement: nFe, cloneNode: PC, emptyStatement: sFe, expressionStatement: _C, identifier: Ky, isStatement: i7, isStringLiteral: aFe, stringLiteral: oFe, validate: n7 } = iFe; function uFe(e, t) { let r = PC(e.ast); return t && (e.placeholders.forEach((i) => { if (!hasOwnProperty.call(t, i.name)) { let n = i.name; throw new Error(`Error: No substitution given for "${n}". If this is not meant to be a placeholder you may want to consider passing one of the following options to @babel/template: - { placeholderPattern: false, placeholderWhitelist: new Set(['${n}'])} - { placeholderPattern: /^${n}$/ }`); } }), Object.keys(t).forEach((i) => { if (!e.placeholderNames.has(i)) throw new Error(`Unknown substitution "${i}" given`); })), e.placeholders.slice().reverse().forEach((i) => { try { lFe(i, r, t && t[i.name] || null); } catch (n) { throw n.message = `@babel/template placeholder "${i.name}": ${n.message}`, n; } }), r; } s(uFe, "populatePlaceholders"); function lFe(e, t, r) { e.isDuplicate && (Array.isArray(r) ? r = r.map((u) => PC(u)) : typeof r == "object" && (r = PC(r))); let { parent: i, key: n, index: a } = e.resolve(t); if (e.type === "string") { if (typeof r == "string" && (r = oFe(r)), !r || !aFe(r)) throw new Error("Expected string substitution"); } else if (e.type === "statement") a === void 0 ? r ? Array.isArray(r) ? r = nFe(r) : typeof r == "string" ? r = _C(Ky(r)) : i7(r) || (r = _C(r)) : r = sFe() : r && !Array. isArray(r) && (typeof r == "string" && (r = Ky(r)), i7(r) || (r = _C(r))); else if (e.type === "param") { if (typeof r == "string" && (r = Ky(r)), a === void 0) throw new Error("Assertion failure."); } else if (typeof r == "string" && (r = Ky(r)), Array.isArray(r)) throw new Error("Cannot replace single expression with an array."); function o(u, l, c) { let f = u[l]; u[l] = c, (f.type === "Identifier" || f.type === "Placeholder") && (f.typeAnnotation && (c.typeAnnotation = f.typeAnnotation), f.optional && (c.optional = f.optional), f.decorators && (c.decorators = f.decorators)); } if (s(o, "set"), a === void 0) n7(i, n, r), o(i, n, r); else { let u = i[n].slice(); e.type === "statement" || e.type === "param" ? r == null ? u.splice(a, 1) : Array.isArray(r) ? u.splice(a, 1, ...r) : o(u, a, r) : o(u, a, r), n7(i, n, u), i[n] = u; } } s(lFe, "applyReplacement"); }); // ../node_modules/@babel/template/lib/string.js var s7 = E((OC) => { "use strict"; Object.defineProperty(OC, "__esModule", { value: !0 }); OC.default = pFe; var cFe = ky(), fFe = AC(), dFe = IC(); function pFe(e, t, r) { t = e.code(t); let i; return (n) => { let a = (0, cFe.normalizeReplacements)(n); return i || (i = (0, fFe.default)(e, t, r)), e.unwrap((0, dFe.default)(i, a)); }; } s(pFe, "stringTemplate"); }); // ../node_modules/@babel/template/lib/literal.js var a7 = E((kC) => { "use strict"; Object.defineProperty(kC, "__esModule", { value: !0 }); kC.default = gFe; var hFe = ky(), mFe = AC(), yFe = IC(); function gFe(e, t, r) { let { metadata: i, names: n } = bFe(e, t, r); return (a) => { let o = {}; return a.forEach((u, l) => { o[n[l]] = u; }), (u) => { let l = (0, hFe.normalizeReplacements)(u); return l && Object.keys(l).forEach((c) => { if (hasOwnProperty.call(o, c)) throw new Error("Unexpected replacement overlap."); }), e.unwrap((0, yFe.default)(i, l ? Object.assign(l, o) : o)); }; }; } s(gFe, "literalTemplate"); function bFe(e, t, r) { let i = "BABEL_TPL$", n = t.join(""); do i = "$$" + i; while (n.includes(i)); let { names: a, code: o } = DFe(t, i); return { metadata: (0, mFe.default)(e, e.code(o), { parser: r.parser, placeholderWhitelist: new Set(a.concat(r.placeholderWhitelist ? Array.from(r.placeholderWhitelist) : [])), placeholderPattern: r.placeholderPattern, preserveComments: r.preserveComments, syntacticPlaceholders: r.syntacticPlaceholders }), names: a }; } s(bFe, "buildLiteralData"); function DFe(e, t) { let r = [], i = e[0]; for (let n = 1; n < e.length; n++) { let a = `${t}${n - 1}`; r.push(a), i += a + e[n]; } return { names: r, code: i }; } s(DFe, "buildTemplateCode"); }); // ../node_modules/@babel/template/lib/builder.js var d7 = E((BC) => { "use strict"; Object.defineProperty(BC, "__esModule", { value: !0 }); BC.default = f7; var is = ky(), o7 = s7(), u7 = a7(), l7 = (0, is.validate)({ placeholderPattern: !1 }); function f7(e, t) { let r = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap(), n = t || (0, is.validate)(null); return Object.assign((a, ...o) => { if (typeof a == "string") { if (o.length > 1) throw new Error("Unexpected extra params."); return c7((0, o7.default)(e, a, (0, is.merge)(n, (0, is.validate)(o[0])))); } else if (Array.isArray(a)) { let u = r.get(a); return u || (u = (0, u7.default)(e, a, n), r.set(a, u)), c7(u(o)); } else if (typeof a == "object" && a) { if (o.length > 0) throw new Error("Unexpected extra params."); return f7(e, (0, is.merge)(n, (0, is.validate)(a))); } throw new Error(`Unexpected template param ${typeof a}`); }, { ast: /* @__PURE__ */ s((a, ...o) => { if (typeof a == "string") { if (o.length > 1) throw new Error("Unexpected extra params."); return (0, o7.default)(e, a, (0, is.merge)((0, is.merge)(n, (0, is.validate)(o[0])), l7))(); } else if (Array.isArray(a)) { let u = i.get(a); return u || (u = (0, u7.default)(e, a, (0, is.merge)(n, l7)), i.set(a, u)), u(o)(); } throw new Error(`Unexpected template param ${typeof a}`); }, "ast") }); } s(f7, "createTemplateBuilder"); function c7(e) { let t = ""; try { throw new Error(); } catch (r) { r.stack && (t = r.stack.split(` `).slice(3).join(` `)); } return (r) => { try { return e(r); } catch (i) { throw i.stack += ` ============= ${t}`, i; } }; } s(c7, "extendedTrace"); }); // ../node_modules/@babel/template/lib/index.js var $d = E((Ai) => { "use strict"; Object.defineProperty(Ai, "__esModule", { value: !0 }); Ai.statements = Ai.statement = Ai.smart = Ai.program = Ai.expression = Ai.default = void 0; var Ud = m9(), Wd = d7(), NC = Ai.smart = (0, Wd.default)(Ud.smart), vFe = Ai.statement = (0, Wd.default)(Ud.statement), EFe = Ai.statements = (0, Wd.default)(Ud.statements), xFe = Ai.expression = (0, Wd.default)(Ud.expression), SFe = Ai.program = (0, Wd.default)(Ud.program), Xlt = Ai. default = Object.assign(NC.bind(void 0), { smart: NC, statement: vFe, statements: EFe, expression: xFe, program: SFe, ast: NC.ast }); }); // ../node_modules/@babel/helpers/lib/helpers-generated.js var p7 = E((zy) => { "use strict"; Object.defineProperty(zy, "__esModule", { value: !0 }); zy.default = void 0; var TFe = $d(); function ae(e, t, r) { return Object.freeze({ minVersion: e, ast: /* @__PURE__ */ s(() => TFe.default.program.ast(t, { preserveComments: !0 }), "ast"), metadata: r }); } s(ae, "helper"); var CFe = zy.default = { __proto__: null, OverloadYield: ae("7.18.14", "function _OverloadYield(e,d){this.v=e,this.k=d}", { globals: [], locals: { _OverloadYield: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_OverloadYield", dependencies: {} }), applyDecoratedDescriptor: ae("7.0.0-beta.0", 'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach((func\ tion(i){a[i]=n[i]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().r\ everse().reduce((function(r,n){return n(i,e,r)||r}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.init\ ializer=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}', { globals: ["Object"], locals: { _applyDecoratedDescriptor: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_applyDecoratedDescriptor", dependencies: {} }), applyDecs2311: ae("7.24.0", 'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Ob\ ject.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["fie\ ld","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted t\ o call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,\ "class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?func\ tion(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.g\ et,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N\ .init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or in\ it properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,\ s,0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:\ !0,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;i\ r.length)&&(a=r.length);for(var e=0,n=Array(a);e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:F}}throw new TypeError("Invalid att\ empt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1\ ;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return|\ |t.return()}finally{if(u)throw o}}}}', { globals: ["Symbol", "Array", "TypeError"], locals: { _createForOfIteratorHelper: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_createForOfIteratorHelper", dependencies: { unsupportedIterableToArray: ["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"] } }), createForOfIteratorHelperLoose: ae("7.9.0", 'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.it\ erator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeo\ f r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError("Invalid attempt to \ iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}', { globals: ["Symbol", "Array", "TypeError"], locals: { _createForOfIteratorHelperLoose: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_createForOfIteratorHelperLoose", dependencies: { unsupportedIterableToArray: ["body.0.body.body.2.test.left.right.right.callee"] } }), createSuper: ae("7.9.0", "function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){va\ r s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this\ ,e)}}", { globals: ["Reflect"], locals: { _createSuper: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_createSuper", dependencies: { getPrototypeOf: ["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee", "body.0.body.body.1.argument.body.body.1.cons\ equent.body.0.declarations.0.init.object.callee"], isNativeReflectConstruct: ["body.0.body.body.0.declarations.0.init.callee"], possibleConstructorReturn: ["body.0.body.body.1.argument.body.body.2.argument.callee"] } }), decorate: ae("7.1.5", `function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||\ a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p=0\ ;i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.eleme\ nts){e=n.elements;for(var s=0;s1){for(var t=Array(n),f=0;f=0;--o){var i=this.tryEntries[o],a=i.completion;if("r\ oot"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.\ prev=0;--e){var r=this.tryEntries[e];if(r.finallyLo\ c===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var \ r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal ca\ tch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.ar\ g=t),y}},e}`, { globals: ["Object", "Symbol", "Error", "TypeError", "isNaN", "Promise"], locals: { _regeneratorRuntime: ["body.0.id", "body.0.body.body.0.expression.left"] }, exportBindingAssignments: ["body.0.body.body.0.expression"], exportName: "_regeneratorRuntime", dependencies: {} }), set: ae("7.0.0-beta.0", 'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i\ =superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getO\ wnPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}\ function _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}', { globals: ["Reflect", "Object", "TypeError"], locals: { set: ["body.0.id", "body.0.body.body.0.argument.expressions.1.callee", "body.1.body.body.0.test.left.argument.callee", "body.0.body.\ body.0.argument.expressions.0.left"], _set: ["body.1.id"] }, exportBindingAssignments: [], exportName: "_set", dependencies: { superPropBase: ["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"], defineProperty: ["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"] } }), setFunctionName: ae("7.23.6", 'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineP\ roperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}', { globals: ["Object"], locals: { setFunctionName: ["body.0.id"] }, exportBindingAssignments: [], exportName: "setFunctionName", dependencies: {} }), setPrototypeOf: ae("7.0.0-beta.0", "function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bin\ d():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}", { globals: ["Object"], locals: { _setPrototypeOf: ["body.0.id", "body.0.body.body.0.argument.expressions.1.callee", "body.0.body.body.0.argument.expressions.0.left"] }, exportBindingAssignments: ["body.0.body.body.0.argument.expressions.0"], exportName: "_setPrototypeOf", dependencies: {} }), skipFirstGeneratorNext: ae("7.0.0-beta.0", "function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r\ .next(),r}}", { globals: [], locals: { _skipFirstGeneratorNext: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_skipFirstGeneratorNext", dependencies: {} }), slicedToArray: ae("7.0.0-beta.0", "function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterable\ ToArray(r,e)||nonIterableRest()}", { globals: [], locals: { _slicedToArray: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_slicedToArray", dependencies: { arrayWithHoles: ["body.0.body.body.0.argument.left.left.left.callee"], iterableToArrayLimit: ["body.0.body.body.0.argument.left.left.right.callee"], unsupportedIterableToArray: ["body.0.body.body.0.argument.left.right.callee"], nonIterableRest: ["body.0.body.body.0.argument.right.callee"] } }), superPropBase: ae("7.0.0-beta.0", "function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return\ t}", { globals: [], locals: { _superPropBase: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_superPropBase", dependencies: { getPrototypeOf: ["body.0.body.body.0.test.right.right.right.callee"] } }), superPropGet: ae("7.25.0", 'function _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typ\ eof p?function(t){return p.apply(e,t)}:p}', { globals: [], locals: { _superPropGet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_superPropGet", dependencies: { get: ["body.0.body.body.0.declarations.0.init.callee"], getPrototypeOf: ["body.0.body.body.0.declarations.0.init.arguments.0.callee"] } }), superPropSet: ae("7.25.0", "function _superPropSet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}", { globals: [], locals: { _superPropSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_superPropSet", dependencies: { set: ["body.0.body.body.0.argument.callee"], getPrototypeOf: ["body.0.body.body.0.argument.arguments.0.callee"] } }), taggedTemplateLiteral: ae("7.0.0-beta.0", "function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProp\ erties(e,{raw:{value:Object.freeze(t)}}))}", { globals: ["Object"], locals: { _taggedTemplateLiteral: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_taggedTemplateLiteral", dependencies: {} }), taggedTemplateLiteralLoose: ae("7.0.0-beta.0", "function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}", { globals: [], locals: { _taggedTemplateLiteralLoose: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_taggedTemplateLiteralLoose", dependencies: {} }), tdz: ae("7.5.5", 'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}', { globals: ["ReferenceError"], locals: { _tdzError: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_tdzError", dependencies: {} }), temporalRef: ae("7.0.0-beta.0", "function _temporalRef(r,e){return r===undef?err(e):r}", { globals: [], locals: { _temporalRef: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_temporalRef", dependencies: { temporalUndefined: ["body.0.body.body.0.argument.test.right"], tdz: ["body.0.body.body.0.argument.consequent.callee"] } }), temporalUndefined: ae("7.0.0-beta.0", "function _temporalUndefined(){}", { globals: [], locals: { _temporalUndefined: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_temporalUndefined", dependencies: {} }), toArray: ae("7.0.0-beta.0", "function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterab\ leRest()}", { globals: [], locals: { _toArray: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_toArray", dependencies: { arrayWithHoles: ["body.0.body.body.0.argument.left.left.left.callee"], iterableToArray: ["body.0.body.body.0.argument.left.left.right.callee"], unsupportedIterableToArray: ["body.0.body.body.0.argument.left.right.callee"], nonIterableRest: ["body.0.body.body.0.argument.right.callee"] } }), toConsumableArray: ae("7.0.0-beta.0", "function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterab\ leToArray(r)||nonIterableSpread()}", { globals: [], locals: { _toConsumableArray: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_toConsumableArray", dependencies: { arrayWithoutHoles: ["body.0.body.body.0.argument.left.left.left.callee"], iterableToArray: ["body.0.body.body.0.argument.left.left.right.callee"], unsupportedIterableToArray: ["body.0.body.body.0.argument.left.right.callee"], nonIterableSpread: ["body.0.body.body.0.argument.right.callee"] } }), toPrimitive: ae("7.1.5", 'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=\ e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===\ r?String:Number)(t)}', { globals: ["Symbol", "TypeError", "String", "Number"], locals: { toPrimitive: ["body.0.id"] }, exportBindingAssignments: [], exportName: "toPrimitive", dependencies: {} }), toPropertyKey: ae("7.1.5", 'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}', { globals: [], locals: { toPropertyKey: ["body.0.id"] }, exportBindingAssignments: [], exportName: "toPropertyKey", dependencies: { toPrimitive: ["body.0.body.body.0.declarations.0.init.callee"] } }), toSetter: ae("7.24.0", 'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o\ ,t.apply(n,e)}})}', { globals: ["Object"], locals: { _toSetter: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_toSetter", dependencies: {} }), tsRewriteRelativeImportExtensions: ae("7.27.0", 'function tsRewriteRelativeImportExtensions(t,e){return"string"==typeof t&&/^\\.\\.?\\//.te\ st(t)?t.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+)?)\\.([cm]?)ts$/i,(function(t,s,r,n,o){return s?e?".jsx":".js":!r||n&&o?r+n+"."+o.toLowerCas\ e()+"js":t})):t}', { globals: [], locals: { tsRewriteRelativeImportExtensions: ["body.0.id"] }, exportBindingAssignments: [], exportName: "tsRewriteRelativeImportExtensions", dependencies: {} }), typeof: ae("7.0.0-beta.0", 'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Sym\ bol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"sym\ bol":typeof o},_typeof(o)}', { globals: ["Symbol"], locals: { _typeof: ["body.0.id", "body.0.body.body.0.argument.expressions.1.callee", "body.0.body.body.0.argument.expressions.0.left"] }, exportBindingAssignments: ["body.0.body.body.0.argument.expressions.0"], exportName: "_typeof", dependencies: {} }), unsupportedIterableToArray: ae("7.9.0", 'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r\ ,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Argu\ ments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}', { globals: ["Array"], locals: { _unsupportedIterableToArray: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_unsupportedIterableToArray", dependencies: { arrayLikeToArray: ["body.0.body.body.0.consequent.body.0.consequent.argument.callee", "body.0.body.body.0.consequent.body.2.argument\ .expressions.1.alternate.consequent.callee"] } }), usingCtx: ae("7.23.9", 'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return\ n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using \ declarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispo\ se")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is no\ t disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e\ }return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)r\ eturn s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}\ catch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):\ n,next()}return next()}}}', { globals: ["SuppressedError", "Error", "Object", "TypeError", "Symbol", "Promise"], locals: { _usingCtx: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_usingCtx", dependencies: {} }), wrapAsyncGenerator: ae("7.0.0-beta.0", 'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,argumen\ ts))}}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v\ :o).then((function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"no\ rmal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done\ :!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e\ ,n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=type\ of e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){re\ turn this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._\ invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};', { globals: ["Promise", "Symbol"], locals: { _wrapAsyncGenerator: ["body.0.id"], AsyncGenerator: ["body.1.id", "body.0.body.body.0.argument.body.body.0.argument.callee", "body.2.expression.expressions.0.left.objec\ t.object", "body.2.expression.expressions.1.left.object.object", "body.2.expression.expressions.2.left.object.object", "body.2.expression.ex\ pressions.3.left.object.object"] }, exportBindingAssignments: [], exportName: "_wrapAsyncGenerator", dependencies: { OverloadYield: ["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"] } }), wrapNativeSuper: ae("7.0.0-beta.0", 'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=fu\ nction(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a \ function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).\ constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),set\ PrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}', { globals: ["Map", "TypeError", "Object"], locals: { _wrapNativeSuper: ["body.0.id", "body.0.body.body.1.argument.expressions.1.callee", "body.0.body.body.1.argument.expressions.0.left"] }, exportBindingAssignments: ["body.0.body.body.1.argument.expressions.0"], exportName: "_wrapNativeSuper", dependencies: { getPrototypeOf: ["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"], setPrototypeOf: ["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"], isNativeFunction: ["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"], construct: ["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"] } }), wrapRegExp: ae("7.19.0", 'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=\ new WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function build\ Groups(e,t){var p=r.get(t);return Object.keys(p).reduce((function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===\ e[o[i]]&&i+1]+)(\ >|$)/g,(function(e,r,t){if(""===t)return e;var p=o[r];return Array.isArray(p)?"$"+p.join("$"):"number"==typeof p?"$"+p:""})))}if("function"=\ =typeof p){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.cal\ l(e)).push(buildGroups(e,i)),p.apply(this,e)}))}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}', { globals: ["RegExp", "WeakMap", "Object", "Symbol", "Array"], locals: { _wrapRegExp: ["body.0.id", "body.0.body.body.4.argument.expressions.3.callee.object", "body.0.body.body.0.expression.left"] }, exportBindingAssignments: ["body.0.body.body.0.expression"], exportName: "_wrapRegExp", dependencies: { setPrototypeOf: ["body.0.body.body.2.body.body.1.argument.expressions.1.callee"], inherits: ["body.0.body.body.4.argument.expressions.0.callee"] } }), writeOnlyError: ae("7.12.13", `function _writeOnlyError(r){throw new TypeError('"'+r+'" is write-only')}`, { globals: ["TypeError"], locals: { _writeOnlyError: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_writeOnlyError", dependencies: {} }) }; Object.assign(CFe, { AwaitValue: ae("7.0.0-beta.0", "function _AwaitValue(t){this.wrapped=t}", { globals: [], locals: { _AwaitValue: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_AwaitValue", dependencies: {} }), applyDecs: ae("7.17.8", 'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"\ getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.pr\ ivate;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_\ assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.pub\ lic={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataM\ apToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:\ 1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b\ )))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r3,m=v>=5;if(m?(u=t,f=r,0!=\ (v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw\ Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not \ currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}\ old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var a=0;a0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{\ var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),\ d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,(function(){for(var e=0;e=0;v--){var g;void 0!==(f=memberD\ ec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==\ g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typ\ eof l){var y=l;l=function(e,t){for(var r=t,a=0;a3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g\ &&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public me\ thod/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberD\ ec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length\ -1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&\ (assertValidReturnValue(10,c),n=c)}e.push(n,(function(){for(var e=0;e=0;g--){var y;void 0!==(p=memberDec(\ v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&\ (void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof\ l){var m=l;l=function(e,t){for(var r=t,n=0;n3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0\ ===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorate\ d public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}a\ pplyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push((function(e){f\ or(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitiali\ zerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get|\ |p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0==\ =l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=funct\ ion(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===\ b&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor\ . This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,\ y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=\ [],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}f\ inally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e=0;j-=r?2:1){va\ r D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function\ (e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(nul\ l,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e)\ ,w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.acces\ s={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof\ P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!\ ==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method\ ")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push((function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].c\ all(e,t);return t})),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function \ u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.l\ ength>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=func\ tion(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)th\ row Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is n\ ot currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyK\ ey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.len\ gth&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}', { globals: ["TypeError", "Array", "Object", "Error", "Symbol", "Map"], locals: { applyDecs2305: ["body.0.id"] }, exportBindingAssignments: [], exportName: "applyDecs2305", dependencies: { checkInRHS: ["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"], setFunctionName: ["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.\ 0.value.callee", "body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"], toPropertyKey: ["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alte\ rnate.callee"] } }), classApplyDescriptorDestructureSet: ae("7.13.10", 'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t\ .__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");ret\ urn t}', { globals: ["TypeError"], locals: { _classApplyDescriptorDestructureSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classApplyDescriptorDestructureSet", dependencies: {} }), classApplyDescriptorGet: ae("7.13.10", "function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}", { globals: [], locals: { _classApplyDescriptorGet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classApplyDescriptorGet", dependencies: {} }), classApplyDescriptorSet: ae("7.13.10", 'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new \ TypeError("attempted to set read only private field");t.value=l}}', { globals: ["TypeError"], locals: { _classApplyDescriptorSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classApplyDescriptorSet", dependencies: {} }), classCheckPrivateStaticAccess: ae("7.13.10", "function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}", { globals: [], locals: { _classCheckPrivateStaticAccess: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classCheckPrivateStaticAccess", dependencies: { assertClassBrand: ["body.0.body.body.0.argument.callee"] } }), classCheckPrivateStaticFieldDescriptor: ae("7.13.10", 'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new Typ\ eError("attempted to "+e+" private static field before its declaration")}', { globals: ["TypeError"], locals: { _classCheckPrivateStaticFieldDescriptor: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classCheckPrivateStaticFieldDescriptor", dependencies: {} }), classExtractFieldDescriptor: ae("7.13.10", "function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}", { globals: [], locals: { _classExtractFieldDescriptor: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classExtractFieldDescriptor", dependencies: { classPrivateFieldGet2: ["body.0.body.body.0.argument.callee"] } }), classPrivateFieldDestructureSet: ae("7.4.4", "function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return cla\ ssApplyDescriptorDestructureSet(e,r)}", { globals: [], locals: { _classPrivateFieldDestructureSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classPrivateFieldDestructureSet", dependencies: { classApplyDescriptorDestructureSet: ["body.0.body.body.1.argument.callee"], classPrivateFieldGet2: ["body.0.body.body.0.declarations.0.init.callee"] } }), classPrivateFieldGet: ae("7.0.0-beta.0", "function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescript\ orGet(e,r)}", { globals: [], locals: { _classPrivateFieldGet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classPrivateFieldGet", dependencies: { classApplyDescriptorGet: ["body.0.body.body.1.argument.callee"], classPrivateFieldGet2: ["body.0.body.body.0.declarations.0.init.callee"] } }), classPrivateFieldSet: ae("7.0.0-beta.0", "function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescri\ ptorSet(e,s,r),r}", { globals: [], locals: { _classPrivateFieldSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classPrivateFieldSet", dependencies: { classApplyDescriptorSet: ["body.0.body.body.1.argument.expressions.0.callee"], classPrivateFieldGet2: ["body.0.body.body.0.declarations.0.init.callee"] } }), classPrivateMethodGet: ae("7.1.6", "function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}", { globals: [], locals: { _classPrivateMethodGet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classPrivateMethodGet", dependencies: { assertClassBrand: ["body.0.body.body.0.argument.expressions.0.callee"] } }), classPrivateMethodSet: ae("7.1.6", 'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}', { globals: ["TypeError"], locals: { _classPrivateMethodSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classPrivateMethodSet", dependencies: {} }), classStaticPrivateFieldDestructureSet: ae("7.13.10", 'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t\ ),classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}', { globals: [], locals: { _classStaticPrivateFieldDestructureSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classStaticPrivateFieldDestructureSet", dependencies: { classApplyDescriptorDestructureSet: ["body.0.body.body.0.argument.expressions.2.callee"], assertClassBrand: ["body.0.body.body.0.argument.expressions.0.callee"], classCheckPrivateStaticFieldDescriptor: ["body.0.body.body.0.argument.expressions.1.callee"] } }), classStaticPrivateFieldSpecGet: ae("7.0.2", 'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPriv\ ateStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}', { globals: [], locals: { _classStaticPrivateFieldSpecGet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classStaticPrivateFieldSpecGet", dependencies: { classApplyDescriptorGet: ["body.0.body.body.0.argument.expressions.2.callee"], assertClassBrand: ["body.0.body.body.0.argument.expressions.0.callee"], classCheckPrivateStaticFieldDescriptor: ["body.0.body.body.0.argument.expressions.1.callee"] } }), classStaticPrivateFieldSpecSet: ae("7.0.2", 'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPr\ ivateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}', { globals: [], locals: { _classStaticPrivateFieldSpecSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classStaticPrivateFieldSpecSet", dependencies: { classApplyDescriptorSet: ["body.0.body.body.0.argument.expressions.2.callee"], assertClassBrand: ["body.0.body.body.0.argument.expressions.0.callee"], classCheckPrivateStaticFieldDescriptor: ["body.0.body.body.0.argument.expressions.1.callee"] } }), classStaticPrivateMethodSet: ae("7.3.2", 'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static\ private field")}', { globals: ["TypeError"], locals: { _classStaticPrivateMethodSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classStaticPrivateMethodSet", dependencies: {} }), defineEnumerableProperties: ae("7.0.0-beta.0", 'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.en\ umerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols\ (r),b=0;b0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catc\ h(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}', { globals: ["SuppressedError", "Error", "Object", "Promise"], locals: { dispose_SuppressedError: ["body.0.id", "body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object", "body.0.body\ .body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value", "body.0.body.body.0.argumen\ t.expressions.1.callee", "body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee", "body.0.body.body.0.argument.expre\ ssions.0.consequent.left", "body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"], _dispose: ["body.1.id"] }, exportBindingAssignments: [], exportName: "_dispose", dependencies: {} }), objectSpread: ae("7.0.0-beta.0", 'function _objectSpread(e){for(var r=1;r { "use strict"; Object.defineProperty(ns, "__esModule", { value: !0 }); ns.default = void 0; ns.get = y7; ns.getDependencies = FFe; ns.list = void 0; ns.minVersion = PFe; var wFe = $e(), m7 = p7(), { cloneNode: AFe, identifier: h7 } = wFe; function Gy(e, t, r) { try { let i = t.split("."), n = i.shift(); for (; i.length > 0; ) e = e[n], n = i.shift(); if (arguments.length > 2) e[n] = r; else return e[n]; } catch (i) { throw i.message += ` (when accessing ${t})`, i; } } s(Gy, "deep"); function _Fe(e, t, r, i, n, a) { let { locals: o, dependencies: u, exportBindingAssignments: l, exportName: c } = t, f = new Set(i || []); r && f.add(r); for (let [m, h] of (Object.entries || ((d) => Object.keys(d).map((y) => [y, d[y]])))(o)) { let d = m; if (r && m === c) d = r; else for (; f.has(d); ) d = "_" + d; if (d !== m) for (let y of h) Gy(e, y, h7(d)); } for (let [m, h] of (Object.entries || ((d) => Object.keys(d).map((y) => [y, d[y]])))(u)) { let d = typeof n == "function" && n(m) || h7(m); for (let y of h) Gy(e, y, AFe(d)); } a?.(e, c, (m) => { l.forEach((h) => Gy(e, h, m(Gy(e, h)))); }); } s(_Fe, "permuteHelperAST"); var MC = /* @__PURE__ */ Object.create(null); function Jy(e) { if (!MC[e]) { let t = m7.default[e]; if (!t) throw Object.assign(new ReferenceError(`Unknown helper ${e}`), { code: "BABEL_HELPER_UNKNOWN", helper: e }); MC[e] = { minVersion: t.minVersion, build(r, i, n, a) { let o = t.ast(); return _Fe(o, t.metadata, i, n, r, a), { nodes: o.body, globals: t.metadata.globals }; }, getDependencies() { return Object.keys(t.metadata.dependencies); } }; } return MC[e]; } s(Jy, "loadHelper"); function y7(e, t, r, i, n) { if (typeof r == "object") { let a = r; a?.type === "Identifier" ? r = a.name : r = void 0; } return Jy(e).build(t, r, i, n); } s(y7, "get"); function PFe(e) { return Jy(e).minVersion; } s(PFe, "minVersion"); function FFe(e) { return Jy(e).getDependencies(); } s(FFe, "getDependencies"); ns.ensure = (e) => { Jy(e); }; var ect = ns.list = Object.keys(m7.default).map((e) => e.replace(/^_/, "")), tct = ns.default = y7; }); // ../node_modules/@babel/traverse/lib/path/lib/virtual-types.js var jC = E((at) => { "use strict"; Object.defineProperty(at, "__esModule", { value: !0 }); at.Var = at.User = at.Statement = at.SpreadProperty = at.Scope = at.RestProperty = at.ReferencedMemberExpression = at.ReferencedIdentifier = at.Referenced = at.Pure = at.NumericLiteralTypeAnnotation = at.Generated = at.ForAwaitStatement = at.Flow = at.Expression = at.ExistentialTypeParam = at.BlockScoped = at.BindingIdentifier = void 0; var nct = at.ReferencedIdentifier = ["Identifier", "JSXIdentifier"], sct = at.ReferencedMemberExpression = ["MemberExpression"], act = at. BindingIdentifier = ["Identifier"], oct = at.Statement = ["Statement"], uct = at.Expression = ["Expression"], lct = at.Scope = ["Scopable", "Pattern"], cct = at.Referenced = null, fct = at.BlockScoped = null, dct = at.Var = ["VariableDeclaration"], pct = at.User = null, hct = at. Generated = null, mct = at.Pure = null, yct = at.Flow = ["Flow", "ImportDeclaration", "ExportDeclaration", "ImportSpecifier"], gct = at.RestProperty = ["RestElement"], bct = at.SpreadProperty = ["RestElement"], Dct = at.ExistentialTypeParam = ["ExistsTypeAnnotation"], vct = at.NumericLiteralTypeAnnotation = ["NumberLiteralTypeAnnotation"], Ect = at.ForAwaitStatement = ["ForOfStatement"]; }); // ../node_modules/ms/index.js var b7 = E((Sct, g7) => { var Hl = 1e3, Kl = Hl * 60, zl = Kl * 60, Xo = zl * 24, IFe = Xo * 7, OFe = Xo * 365.25; g7.exports = function(e, t) { t = t || {}; var r = typeof e; if (r === "string" && e.length > 0) return kFe(e); if (r === "number" && isFinite(e)) return t.long ? NFe(e) : BFe(e); throw new Error( "val is not a non-empty string or a valid number. val=" + JSON.stringify(e) ); }; function kFe(e) { if (e = String(e), !(e.length > 100)) { var t = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i. exec( e ); if (t) { var r = parseFloat(t[1]), i = (t[2] || "ms").toLowerCase(); switch (i) { case "years": case "year": case "yrs": case "yr": case "y": return r * OFe; case "weeks": case "week": case "w": return r * IFe; case "days": case "day": case "d": return r * Xo; case "hours": case "hour": case "hrs": case "hr": case "h": return r * zl; case "minutes": case "minute": case "mins": case "min": case "m": return r * Kl; case "seconds": case "second": case "secs": case "sec": case "s": return r * Hl; case "milliseconds": case "millisecond": case "msecs": case "msec": case "ms": return r; default: return; } } } } s(kFe, "parse"); function BFe(e) { var t = Math.abs(e); return t >= Xo ? Math.round(e / Xo) + "d" : t >= zl ? Math.round(e / zl) + "h" : t >= Kl ? Math.round(e / Kl) + "m" : t >= Hl ? Math.round( e / Hl) + "s" : e + "ms"; } s(BFe, "fmtShort"); function NFe(e) { var t = Math.abs(e); return t >= Xo ? Xy(e, t, Xo, "day") : t >= zl ? Xy(e, t, zl, "hour") : t >= Kl ? Xy(e, t, Kl, "minute") : t >= Hl ? Xy(e, t, Hl, "secon\ d") : e + " ms"; } s(NFe, "fmtLong"); function Xy(e, t, r, i) { var n = t >= r * 1.5; return Math.round(e / r) + " " + i + (n ? "s" : ""); } s(Xy, "plural"); }); // ../node_modules/debug/src/common.js var LC = E((Cct, D7) => { function MFe(e) { r.debug = r, r.default = r, r.coerce = l, r.disable = o, r.enable = n, r.enabled = u, r.humanize = b7(), r.destroy = c, Object.keys(e).forEach( (f) => { r[f] = e[f]; }), r.names = [], r.skips = [], r.formatters = {}; function t(f) { let m = 0; for (let h = 0; h < f.length; h++) m = (m << 5) - m + f.charCodeAt(h), m |= 0; return r.colors[Math.abs(m) % r.colors.length]; } s(t, "selectColor"), r.selectColor = t; function r(f) { let m, h = null, d, y; function p(...g) { if (!p.enabled) return; let b = p, D = Number(/* @__PURE__ */ new Date()), v = D - (m || D); b.diff = v, b.prev = m, b.curr = D, m = D, g[0] = r.coerce(g[0]), typeof g[0] != "string" && g.unshift("%O"); let S = 0; g[0] = g[0].replace(/%([a-zA-Z%])/g, (O, k) => { if (O === "%%") return "%"; S++; let U = r.formatters[k]; if (typeof U == "function") { let j = g[S]; O = U.call(b, j), g.splice(S, 1), S--; } return O; }), r.formatArgs.call(b, g), (b.log || r.log).apply(b, g); } return s(p, "debug"), p.namespace = f, p.useColors = r.useColors(), p.color = r.selectColor(f), p.extend = i, p.destroy = r.destroy, Object. defineProperty(p, "enabled", { enumerable: !0, configurable: !1, get: /* @__PURE__ */ s(() => h !== null ? h : (d !== r.namespaces && (d = r.namespaces, y = r.enabled(f)), y), "get"), set: /* @__PURE__ */ s((g) => { h = g; }, "set") }), typeof r.init == "function" && r.init(p), p; } s(r, "createDebug"); function i(f, m) { let h = r(this.namespace + (typeof m > "u" ? ":" : m) + f); return h.log = this.log, h; } s(i, "extend"); function n(f) { r.save(f), r.namespaces = f, r.names = [], r.skips = []; let m = (typeof f == "string" ? f : "").trim().replace(" ", ",").split(",").filter(Boolean); for (let h of m) h[0] === "-" ? r.skips.push(h.slice(1)) : r.names.push(h); } s(n, "enable"); function a(f, m) { let h = 0, d = 0, y = -1, p = 0; for (; h < f.length; ) if (d < m.length && (m[d] === f[h] || m[d] === "*")) m[d] === "*" ? (y = d, p = h, d++) : (h++, d++); else if (y !== -1) d = y + 1, p++, h = p; else return !1; for (; d < m.length && m[d] === "*"; ) d++; return d === m.length; } s(a, "matchesTemplate"); function o() { let f = [ ...r.names, ...r.skips.map((m) => "-" + m) ].join(","); return r.enable(""), f; } s(o, "disable"); function u(f) { for (let m of r.skips) if (a(f, m)) return !1; for (let m of r.names) if (a(f, m)) return !0; return !1; } s(u, "enabled"); function l(f) { return f instanceof Error ? f.stack || f.message : f; } s(l, "coerce"); function c() { console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major versio\ n of `debug`."); } return s(c, "destroy"), r.enable(r.load()), r; } s(MFe, "setup"); D7.exports = MFe; }); // ../node_modules/debug/src/browser.js var v7 = E((Bi, Yy) => { Bi.formatArgs = jFe; Bi.save = LFe; Bi.load = qFe; Bi.useColors = RFe; Bi.storage = UFe(); Bi.destroy = /* @__PURE__ */ (() => { let e = !1; return () => { e || (e = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the nex\ t major version of `debug`.")); }; })(); Bi.colors = [ "#0000CC", "#0000FF", "#0033CC", "#0033FF", "#0066CC", "#0066FF", "#0099CC", "#0099FF", "#00CC00", "#00CC33", "#00CC66", "#00CC99", "#00CCCC", "#00CCFF", "#3300CC", "#3300FF", "#3333CC", "#3333FF", "#3366CC", "#3366FF", "#3399CC", "#3399FF", "#33CC00", "#33CC33", "#33CC66", "#33CC99", "#33CCCC", "#33CCFF", "#6600CC", "#6600FF", "#6633CC", "#6633FF", "#66CC00", "#66CC33", "#9900CC", "#9900FF", "#9933CC", "#9933FF", "#99CC00", "#99CC33", "#CC0000", "#CC0033", "#CC0066", "#CC0099", "#CC00CC", "#CC00FF", "#CC3300", "#CC3333", "#CC3366", "#CC3399", "#CC33CC", "#CC33FF", "#CC6600", "#CC6633", "#CC9900", "#CC9933", "#CCCC00", "#CCCC33", "#FF0000", "#FF0033", "#FF0066", "#FF0099", "#FF00CC", "#FF00FF", "#FF3300", "#FF3333", "#FF3366", "#FF3399", "#FF33CC", "#FF33FF", "#FF6600", "#FF6633", "#FF9900", "#FF9933", "#FFCC00", "#FFCC33" ]; function RFe() { if (typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return !0; if (typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return !1; let e; return typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773 typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31? // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages typeof navigator < "u" && navigator.userAgent && (e = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(e[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); } s(RFe, "useColors"); function jFe(e) { if (e[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + e[0] + (this.useColors ? "%c " : " ") + "+" + Yy.exports.humanize(this.diff), !this.useColors) return; let t = "color: " + this.color; e.splice(1, 0, t, "color: inherit"); let r = 0, i = 0; e[0].replace(/%[a-zA-Z%]/g, (n) => { n !== "%%" && (r++, n === "%c" && (i = r)); }), e.splice(i, 0, t); } s(jFe, "formatArgs"); Bi.log = console.debug || console.log || (() => { }); function LFe(e) { try { e ? Bi.storage.setItem("debug", e) : Bi.storage.removeItem("debug"); } catch { } } s(LFe, "save"); function qFe() { let e; try { e = Bi.storage.getItem("debug"); } catch { } return !e && typeof process < "u" && "env" in process && (e = process.env.DEBUG), e; } s(qFe, "load"); function UFe() { try { return localStorage; } catch { } } s(UFe, "localstorage"); Yy.exports = LC()(Bi); var { formatters: WFe } = Yy.exports; WFe.j = function(e) { try { return JSON.stringify(e); } catch (t) { return "[UnexpectedJSONParseError]: " + t.message; } }; }); // ../node_modules/has-flag/index.js var x7 = E((_ct, E7) => { "use strict"; E7.exports = (e, t = process.argv) => { let r = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--", i = t.indexOf(r + e), n = t.indexOf("--"); return i !== -1 && (n === -1 || i < n); }; }); // ../node_modules/supports-color/index.js var C7 = E((Pct, T7) => { "use strict"; var $Fe = require("os"), S7 = require("tty"), Qi = x7(), { env: Or } = process, Ua; Qi("no-color") || Qi("no-colors") || Qi("color=false") || Qi("color=never") ? Ua = 0 : (Qi("color") || Qi("colors") || Qi("color=true") || Qi("color=always")) && (Ua = 1); "FORCE_COLOR" in Or && (Or.FORCE_COLOR === "true" ? Ua = 1 : Or.FORCE_COLOR === "false" ? Ua = 0 : Ua = Or.FORCE_COLOR.length === 0 ? 1 : Math. min(parseInt(Or.FORCE_COLOR, 10), 3)); function qC(e) { return e === 0 ? !1 : { level: e, hasBasic: !0, has256: e >= 2, has16m: e >= 3 }; } s(qC, "translateLevel"); function UC(e, t) { if (Ua === 0) return 0; if (Qi("color=16m") || Qi("color=full") || Qi("color=truecolor")) return 3; if (Qi("color=256")) return 2; if (e && !t && Ua === void 0) return 0; let r = Ua || 0; if (Or.TERM === "dumb") return r; if (process.platform === "win32") { let i = $Fe.release().split("."); return Number(i[0]) >= 10 && Number(i[2]) >= 10586 ? Number(i[2]) >= 14931 ? 3 : 2 : 1; } if ("CI" in Or) return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((i) => i in Or) || Or.CI_NAME === "codeship" ? 1 : r; if ("TEAMCITY_VERSION" in Or) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Or.TEAMCITY_VERSION) ? 1 : 0; if (Or.COLORTERM === "truecolor") return 3; if ("TERM_PROGRAM" in Or) { let i = parseInt((Or.TERM_PROGRAM_VERSION || "").split(".")[0], 10); switch (Or.TERM_PROGRAM) { case "iTerm.app": return i >= 3 ? 3 : 2; case "Apple_Terminal": return 2; } } return /-256(color)?$/i.test(Or.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Or.TERM) || "COLORTERM" in Or ? 1 : r; } s(UC, "supportsColor"); function VFe(e) { let t = UC(e, e && e.isTTY); return qC(t); } s(VFe, "getSupportLevel"); T7.exports = { supportsColor: VFe, stdout: qC(UC(!0, S7.isatty(1))), stderr: qC(UC(!0, S7.isatty(2))) }; }); // ../node_modules/debug/src/node.js var A7 = E((kr, Qy) => { var HFe = require("tty"), Zy = require("util"); kr.init = ZFe; kr.log = JFe; kr.formatArgs = zFe; kr.save = XFe; kr.load = YFe; kr.useColors = KFe; kr.destroy = Zy.deprecate( () => { }, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`." ); kr.colors = [6, 2, 3, 4, 5, 1]; try { let e = C7(); e && (e.stderr || e).level >= 2 && (kr.colors = [ 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221 ]); } catch { } kr.inspectOpts = Object.keys(process.env).filter((e) => /^debug_/i.test(e)).reduce((e, t) => { let r = t.substring(6).toLowerCase().replace(/_([a-z])/g, (n, a) => a.toUpperCase()), i = process.env[t]; return /^(yes|on|true|enabled)$/i.test(i) ? i = !0 : /^(no|off|false|disabled)$/i.test(i) ? i = !1 : i === "null" ? i = null : i = Number( i), e[r] = i, e; }, {}); function KFe() { return "colors" in kr.inspectOpts ? !!kr.inspectOpts.colors : HFe.isatty(process.stderr.fd); } s(KFe, "useColors"); function zFe(e) { let { namespace: t, useColors: r } = this; if (r) { let i = this.color, n = "\x1B[3" + (i < 8 ? i : "8;5;" + i), a = ` ${n};1m${t} \x1B[0m`; e[0] = a + e[0].split(` `).join(` ` + a), e.push(n + "m+" + Qy.exports.humanize(this.diff) + "\x1B[0m"); } else e[0] = GFe() + t + " " + e[0]; } s(zFe, "formatArgs"); function GFe() { return kr.inspectOpts.hideDate ? "" : (/* @__PURE__ */ new Date()).toISOString() + " "; } s(GFe, "getDate"); function JFe(...e) { return process.stderr.write(Zy.formatWithOptions(kr.inspectOpts, ...e) + ` `); } s(JFe, "log"); function XFe(e) { e ? process.env.DEBUG = e : delete process.env.DEBUG; } s(XFe, "save"); function YFe() { return process.env.DEBUG; } s(YFe, "load"); function ZFe(e) { e.inspectOpts = {}; let t = Object.keys(kr.inspectOpts); for (let r = 0; r < t.length; r++) e.inspectOpts[t[r]] = kr.inspectOpts[t[r]]; } s(ZFe, "init"); Qy.exports = LC()(kr); var { formatters: w7 } = Qy.exports; w7.o = function(e) { return this.inspectOpts.colors = this.useColors, Zy.inspect(e, this.inspectOpts).split(` `).map((t) => t.trim()).join(" "); }; w7.O = function(e) { return this.inspectOpts.colors = this.useColors, Zy.inspect(e, this.inspectOpts); }; }); // ../node_modules/debug/src/index.js var Yo = E((Oct, WC) => { typeof process > "u" || process.type === "renderer" || process.browser === !0 || process.__nwjs ? WC.exports = v7() : WC.exports = A7(); }); // ../node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js var VC = E((Cr) => { "use strict"; Object.defineProperty(Cr, "__esModule", { value: !0 }); Cr.isBindingIdentifier = EIe; Cr.isBlockScoped = wIe; Cr.isExpression = SIe; Cr.isFlow = IIe; Cr.isForAwaitStatement = BIe; Cr.isGenerated = PIe; Cr.isPure = FIe; Cr.isReferenced = CIe; Cr.isReferencedIdentifier = DIe; Cr.isReferencedMemberExpression = vIe; Cr.isRestProperty = OIe; Cr.isScope = TIe; Cr.isSpreadProperty = kIe; Cr.isStatement = xIe; Cr.isUser = _Ie; Cr.isVar = AIe; var QFe = $e(), { isBinding: eIe, isBlockScoped: tIe, isExportDeclaration: rIe, isExpression: iIe, isFlow: nIe, isForStatement: sIe, isForXStatement: aIe, isIdentifier: _7, isImportDeclaration: oIe, isImportSpecifier: uIe, isJSXIdentifier: lIe, isJSXMemberExpression: cIe, isMemberExpression: fIe, isRestElement: P7, isReferenced: $C, isScope: dIe, isStatement: pIe, isVar: hIe, isVariableDeclaration: mIe, react: yIe, isForOfStatement: gIe } = QFe, { isCompatTag: bIe } = yIe; function DIe(e) { let { node: t, parent: r } = this; if (!_7(t, e) && !cIe(r, e)) if (lIe(t, e)) { if (bIe(t.name)) return !1; } else return !1; return $C(t, r, this.parentPath.parent); } s(DIe, "isReferencedIdentifier"); function vIe() { let { node: e, parent: t } = this; return fIe(e) && $C(e, t); } s(vIe, "isReferencedMemberExpression"); function EIe() { let { node: e, parent: t } = this, r = this.parentPath.parent; return _7(e) && eIe(e, t, r); } s(EIe, "isBindingIdentifier"); function xIe() { let { node: e, parent: t } = this; return pIe(e) ? !(mIe(e) && (aIe(t, { left: e }) || sIe(t, { init: e }))) : !1; } s(xIe, "isStatement"); function SIe() { return this.isIdentifier() ? this.isReferencedIdentifier() : iIe(this.node); } s(SIe, "isExpression"); function TIe() { return dIe(this.node, this.parent); } s(TIe, "isScope"); function CIe() { return $C(this.node, this.parent); } s(CIe, "isReferenced"); function wIe() { return tIe(this.node); } s(wIe, "isBlockScoped"); function AIe() { return hIe(this.node); } s(AIe, "isVar"); function _Ie() { return this.node && !!this.node.loc; } s(_Ie, "isUser"); function PIe() { return !this.isUser(); } s(PIe, "isGenerated"); function FIe(e) { return this.scope.isPure(this.node, e); } s(FIe, "isPure"); function IIe() { let { node: e } = this; return nIe(e) ? !0 : oIe(e) ? e.importKind === "type" || e.importKind === "typeof" : rIe(e) ? e.exportKind === "type" : uIe(e) ? e.importKind === "type" || e.importKind === "typeof" : !1; } s(IIe, "isFlow"); function OIe() { var e; return P7(this.node) && ((e = this.parentPath) == null ? void 0 : e.isObjectPattern()); } s(OIe, "isRestProperty"); function kIe() { var e; return P7(this.node) && ((e = this.parentPath) == null ? void 0 : e.isObjectExpression()); } s(kIe, "isSpreadProperty"); function BIe() { return gIe(this.node, { await: !0 }); } s(BIe, "isForAwaitStatement"); Cr.isExistentialTypeParam = /* @__PURE__ */ s(function() { throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7."); }, "isExistentialTypeParam"), Cr.isNumericLiteralTypeAnnotation = /* @__PURE__ */ s(function() { throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7."); }, "isNumericLiteralTypeAnnotation"); }); // ../node_modules/@babel/traverse/lib/visitors.js var e0 = E((Qo) => { "use strict"; Object.defineProperty(Qo, "__esModule", { value: !0 }); Qo.environmentVisitor = WIe; Qo.explode = q7; Qo.isExplodedVisitor = L7; Qo.merge = W7; Qo.verify = U7; var j7 = jC(), NIe = VC(), MIe = $e(), F7 = ss(), { DEPRECATED_KEYS: I7, DEPRECATED_ALIASES: O7, FLIPPED_ALIAS_KEYS: k7, TYPES: RIe, __internal__deprecationWarning: B7 } = MIe; function jIe(e) { return e in j7; } s(jIe, "isVirtualType"); function L7(e) { return e?._exploded; } s(L7, "isExplodedVisitor"); function q7(e) { if (L7(e)) return e; e._exploded = !0; for (let t of Object.keys(e)) { if (Zo(t)) continue; let r = t.split("|"); if (r.length === 1) continue; let i = e[t]; delete e[t]; for (let n of r) e[n] = i; } U7(e), delete e.__esModule, LIe(e), R7(e); for (let t of Object.keys(e)) { if (Zo(t) || !jIe(t)) continue; let r = e[t]; for (let n of Object.keys(r)) r[n] = qIe(t, r[n]); delete e[t]; let i = j7[t]; if (i !== null) for (let n of i) e[n] ? Vd(e[n], r) : e[n] = r; else Vd(e, r); } for (let t of Object.keys(e)) { if (Zo(t)) continue; let r = k7[t]; if (t in I7) { let n = I7[t]; B7(t, n, "Visitor "), r = [n]; } else if (t in O7) { let n = O7[t]; B7(t, n, "Visitor "), r = k7[n]; } if (!r) continue; let i = e[t]; delete e[t]; for (let n of r) { let a = e[n]; a ? Vd(a, i) : e[n] = Object.assign({}, i); } } for (let t of Object.keys(e)) Zo(t) || R7(e[t]); return e; } s(q7, "explode$1"); function U7(e) { if (!e._verified) { if (typeof e == "function") throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Functi\ on }`?"); for (let t of Object.keys(e)) { if ((t === "enter" || t === "exit") && N7(t, e[t]), Zo(t)) continue; if (!RIe.includes(t)) throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.27.0`); let r = e[t]; if (typeof r == "object") for (let i of Object.keys(r)) if (i === "enter" || i === "exit") N7(`${t}.${i}`, r[i]); else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${i}`); } e._verified = !0; } } s(U7, "verify$1"); function N7(e, t) { let r = [].concat(t); for (let i of r) if (typeof i != "function") throw new TypeError(`Non-function found defined in ${e} with type ${typeof i}`); } s(N7, "validateVisitorMethods"); function W7(e, t = [], r) { let i = { _verified: !0, _exploded: !0 }; Object.defineProperty(i, "_exploded", { enumerable: !1 }), Object.defineProperty(i, "_verified", { enumerable: !1 }); for (let n = 0; n < e.length; n++) { let a = q7(e[n]), o = t[n], u = a; (o || r) && (u = M7(u, o, r)), Vd(i, u); for (let l of Object.keys(a)) { if (Zo(l)) continue; let c = a[l]; (o || r) && (c = M7(c, o, r)); let f = i[l] || (i[l] = {}); Vd(f, c); } } return i; } s(W7, "merge"); function M7(e, t, r) { let i = {}; for (let n of ["enter", "exit"]) { let a = e[n]; Array.isArray(a) && (a = a.map(function(o) { let u = o; return t && (u = /* @__PURE__ */ s(function(l) { o.call(t, l, t); }, "newFn")), r && (u = r(t?.key, n, u)), u !== o && (u.toString = () => o.toString()), u; }), i[n] = a); } return i; } s(M7, "wrapWithStateOrWrapper"); function LIe(e) { for (let t of Object.keys(e)) { if (Zo(t)) continue; let r = e[t]; typeof r == "function" && (e[t] = { enter: r }); } } s(LIe, "ensureEntranceObjects"); function R7(e) { e.enter && !Array.isArray(e.enter) && (e.enter = [e.enter]), e.exit && !Array.isArray(e.exit) && (e.exit = [e.exit]); } s(R7, "ensureCallbackArrays"); function qIe(e, t) { let r = `is${e}`, i = NIe[r], n = /* @__PURE__ */ s(function(a) { if (i.call(a)) return t.apply(this, arguments); }, "newFn"); return n.toString = () => t.toString(), n; } s(qIe, "wrapCheck"); function Zo(e) { return e[0] === "_" || e === "enter" || e === "exit" || e === "shouldSkip" || e === "denylist" || e === "noScope" || e === "skipKeys" || e === "blacklist"; } s(Zo, "shouldIgnoreKey"); function Vd(e, t) { for (let r of ["enter", "exit"]) t[r] && (e[r] = [].concat(e[r] || [], t[r])); } s(Vd, "mergePair"); var UIe = { FunctionParent(e) { e.isArrowFunctionExpression() || (e.skip(), e.isMethod() && (e.requeueComputedKeyAndDecorators ? e.requeueComputedKeyAndDecorators() : F7.requeueComputedKeyAndDecorators.call(e))); }, Property(e) { e.isObjectProperty() || (e.skip(), e.requeueComputedKeyAndDecorators ? e.requeueComputedKeyAndDecorators() : F7.requeueComputedKeyAndDecorators. call(e)); } }; function WIe(e) { return W7([UIe, e]); } s(WIe, "environmentVisitor"); }); // ../node_modules/@babel/traverse/lib/scope/lib/renamer.js var $7 = E((r0) => { "use strict"; Object.defineProperty(r0, "__esModule", { value: !0 }); r0.default = void 0; var t0 = $e(), $Ie = t0, VIe = i0(), HIe = e0(), KIe = ss(), { getAssignmentIdentifiers: zIe } = $Ie, GIe = { ReferencedIdentifier({ node: e }, t) { e.name === t.oldName && (e.name = t.newName); }, Scope(e, t) { e.scope.bindingIdentifierEquals(t.oldName, t.binding.identifier) || (e.skip(), e.isMethod() && (e.requeueComputedKeyAndDecorators ? e. requeueComputedKeyAndDecorators() : KIe.requeueComputedKeyAndDecorators.call(e))); }, ObjectProperty({ node: e, scope: t }, r) { let { name: i } = e.key; if (e.shorthand && (i === r.oldName || i === r.newName) && t.getBindingIdentifier(i) === r.binding.identifier) { e.shorthand = !1; { var n; (n = e.extra) != null && n.shorthand && (e.extra.shorthand = !1); } } }, "AssignmentExpression|Declaration|VariableDeclarator"(e, t) { if (e.isVariableDeclaration()) return; let r = e.isAssignmentExpression() ? zIe(e.node) : e.getOuterBindingIdentifiers(); for (let i in r) i === t.oldName && (r[i].name = t.newName); } }, HC = class { static { s(this, "Renamer"); } constructor(t, r, i) { this.newName = i, this.oldName = r, this.binding = t; } maybeConvertFromExportDeclaration(t) { let r = t.parentPath; if (r.isExportDeclaration()) { if (r.isExportDefaultDeclaration()) { let { declaration: i } = r.node; if (t0.isDeclaration(i) && !i.id) return; } r.isExportAllDeclaration() || r.splitExportDeclaration(); } } maybeConvertFromClassFunctionDeclaration(t) { return t; } maybeConvertFromClassFunctionExpression(t) { return t; } rename() { let { binding: t, oldName: r, newName: i } = this, { scope: n, path: a } = t, o = a.find((c) => c.isDeclaration() || c.isFunctionExpression() || c.isClassExpression()); o && o.getOuterBindingIdentifiers()[r] === t.identifier && this.maybeConvertFromExportDeclaration(o); let u = arguments[0] || n.block, l = { discriminant: !0 }; t0.isMethod(u) && (u.computed && (l.key = !0), t0.isObjectMethod(u) || (l.decorators = !0)), (0, VIe.traverseNode)(u, (0, HIe.explode)( GIe), n, this, n.path, l), arguments[0] || (n.removeOwnBinding(r), n.bindings[i] = t, this.binding.identifier.name = i), o && (this.maybeConvertFromClassFunctionDeclaration( a), this.maybeConvertFromClassFunctionExpression(a)); } }; r0.default = HC; }); // ../node_modules/@babel/traverse/lib/scope/binding.js var V7 = E((n0) => { "use strict"; Object.defineProperty(n0, "__esModule", { value: !0 }); n0.default = void 0; var KC = class { static { s(this, "Binding"); } constructor({ identifier: t, scope: r, path: i, kind: n }) { this.identifier = void 0, this.scope = void 0, this.path = void 0, this.kind = void 0, this.constantViolations = [], this.constant = !0, this.referencePaths = [], this.referenced = !1, this.references = 0, this.identifier = t, this.scope = r, this.path = i, this.kind = n, (n === "var" || n === "hoisted") && JIe(i) && this.reassign(i), this.clearValue(); } deoptValue() { this.clearValue(), this.hasDeoptedValue = !0; } setValue(t) { this.hasDeoptedValue || (this.hasValue = !0, this.value = t); } clearValue() { this.hasDeoptedValue = !1, this.hasValue = !1, this.value = null; } reassign(t) { this.constant = !1, !this.constantViolations.includes(t) && this.constantViolations.push(t); } reference(t) { this.referencePaths.includes(t) || (this.referenced = !0, this.references++, this.referencePaths.push(t)); } dereference() { this.references--, this.referenced = !!this.references; } }; n0.default = KC; function JIe(e) { let t = !e.isVariableDeclarator() || e.node.init; for (let { parentPath: r, key: i } = e; r; { parentPath: r, key: i } = r) { if (r.isFunctionParent()) return !1; if (i === "left" && r.isForXStatement() || t && i === "body" && r.isLoop()) return !0; } return !1; } s(JIe, "isInitInLoop"); }); // ../node_modules/@babel/traverse/node_modules/globals/globals.json var H7 = E((Uct, XIe) => { XIe.exports = { builtin: { Array: !1, ArrayBuffer: !1, Atomics: !1, BigInt: !1, BigInt64Array: !1, BigUint64Array: !1, Boolean: !1, constructor: !1, DataView: !1, Date: !1, decodeURI: !1, decodeURIComponent: !1, encodeURI: !1, encodeURIComponent: !1, Error: !1, escape: !1, eval: !1, EvalError: !1, Float32Array: !1, Float64Array: !1, Function: !1, globalThis: !1, hasOwnProperty: !1, Infinity: !1, Int16Array: !1, Int32Array: !1, Int8Array: !1, isFinite: !1, isNaN: !1, isPrototypeOf: !1, JSON: !1, Map: !1, Math: !1, NaN: !1, Number: !1, Object: !1, parseFloat: !1, parseInt: !1, Promise: !1, propertyIsEnumerable: !1, Proxy: !1, RangeError: !1, ReferenceError: !1, Reflect: !1, RegExp: !1, Set: !1, SharedArrayBuffer: !1, String: !1, Symbol: !1, SyntaxError: !1, toLocaleString: !1, toString: !1, TypeError: !1, Uint16Array: !1, Uint32Array: !1, Uint8Array: !1, Uint8ClampedArray: !1, undefined: !1, unescape: !1, URIError: !1, valueOf: !1, WeakMap: !1, WeakSet: !1 }, es5: { Array: !1, Boolean: !1, constructor: !1, Date: !1, decodeURI: !1, decodeURIComponent: !1, encodeURI: !1, encodeURIComponent: !1, Error: !1, escape: !1, eval: !1, EvalError: !1, Function: !1, hasOwnProperty: !1, Infinity: !1, isFinite: !1, isNaN: !1, isPrototypeOf: !1, JSON: !1, Math: !1, NaN: !1, Number: !1, Object: !1, parseFloat: !1, parseInt: !1, propertyIsEnumerable: !1, RangeError: !1, ReferenceError: !1, RegExp: !1, String: !1, SyntaxError: !1, toLocaleString: !1, toString: !1, TypeError: !1, undefined: !1, unescape: !1, URIError: !1, valueOf: !1 }, es2015: { Array: !1, ArrayBuffer: !1, Boolean: !1, constructor: !1, DataView: !1, Date: !1, decodeURI: !1, decodeURIComponent: !1, encodeURI: !1, encodeURIComponent: !1, Error: !1, escape: !1, eval: !1, EvalError: !1, Float32Array: !1, Float64Array: !1, Function: !1, hasOwnProperty: !1, Infinity: !1, Int16Array: !1, Int32Array: !1, Int8Array: !1, isFinite: !1, isNaN: !1, isPrototypeOf: !1, JSON: !1, Map: !1, Math: !1, NaN: !1, Number: !1, Object: !1, parseFloat: !1, parseInt: !1, Promise: !1, propertyIsEnumerable: !1, Proxy: !1, RangeError: !1, ReferenceError: !1, Reflect: !1, RegExp: !1, Set: !1, String: !1, Symbol: !1, SyntaxError: !1, toLocaleString: !1, toString: !1, TypeError: !1, Uint16Array: !1, Uint32Array: !1, Uint8Array: !1, Uint8ClampedArray: !1, undefined: !1, unescape: !1, URIError: !1, valueOf: !1, WeakMap: !1, WeakSet: !1 }, es2017: { Array: !1, ArrayBuffer: !1, Atomics: !1, Boolean: !1, constructor: !1, DataView: !1, Date: !1, decodeURI: !1, decodeURIComponent: !1, encodeURI: !1, encodeURIComponent: !1, Error: !1, escape: !1, eval: !1, EvalError: !1, Float32Array: !1, Float64Array: !1, Function: !1, hasOwnProperty: !1, Infinity: !1, Int16Array: !1, Int32Array: !1, Int8Array: !1, isFinite: !1, isNaN: !1, isPrototypeOf: !1, JSON: !1, Map: !1, Math: !1, NaN: !1, Number: !1, Object: !1, parseFloat: !1, parseInt: !1, Promise: !1, propertyIsEnumerable: !1, Proxy: !1, RangeError: !1, ReferenceError: !1, Reflect: !1, RegExp: !1, Set: !1, SharedArrayBuffer: !1, String: !1, Symbol: !1, SyntaxError: !1, toLocaleString: !1, toString: !1, TypeError: !1, Uint16Array: !1, Uint32Array: !1, Uint8Array: !1, Uint8ClampedArray: !1, undefined: !1, unescape: !1, URIError: !1, valueOf: !1, WeakMap: !1, WeakSet: !1 }, browser: { AbortController: !1, AbortSignal: !1, addEventListener: !1, alert: !1, AnalyserNode: !1, Animation: !1, AnimationEffectReadOnly: !1, AnimationEffectTiming: !1, AnimationEffectTimingReadOnly: !1, AnimationEvent: !1, AnimationPlaybackEvent: !1, AnimationTimeline: !1, applicationCache: !1, ApplicationCache: !1, ApplicationCacheErrorEvent: !1, atob: !1, Attr: !1, Audio: !1, AudioBuffer: !1, AudioBufferSourceNode: !1, AudioContext: !1, AudioDestinationNode: !1, AudioListener: !1, AudioNode: !1, AudioParam: !1, AudioProcessingEvent: !1, AudioScheduledSourceNode: !1, "AudioWorkletGlobalScope ": !1, AudioWorkletNode: !1, AudioWorkletProcessor: !1, BarProp: !1, BaseAudioContext: !1, BatteryManager: !1, BeforeUnloadEvent: !1, BiquadFilterNode: !1, Blob: !1, BlobEvent: !1, blur: !1, BroadcastChannel: !1, btoa: !1, BudgetService: !1, ByteLengthQueuingStrategy: !1, Cache: !1, caches: !1, CacheStorage: !1, cancelAnimationFrame: !1, cancelIdleCallback: !1, CanvasCaptureMediaStreamTrack: !1, CanvasGradient: !1, CanvasPattern: !1, CanvasRenderingContext2D: !1, ChannelMergerNode: !1, ChannelSplitterNode: !1, CharacterData: !1, clearInterval: !1, clearTimeout: !1, clientInformation: !1, ClipboardEvent: !1, close: !1, closed: !1, CloseEvent: !1, Comment: !1, CompositionEvent: !1, confirm: !1, console: !1, ConstantSourceNode: !1, ConvolverNode: !1, CountQueuingStrategy: !1, createImageBitmap: !1, Credential: !1, CredentialsContainer: !1, crypto: !1, Crypto: !1, CryptoKey: !1, CSS: !1, CSSConditionRule: !1, CSSFontFaceRule: !1, CSSGroupingRule: !1, CSSImportRule: !1, CSSKeyframeRule: !1, CSSKeyframesRule: !1, CSSMediaRule: !1, CSSNamespaceRule: !1, CSSPageRule: !1, CSSRule: !1, CSSRuleList: !1, CSSStyleDeclaration: !1, CSSStyleRule: !1, CSSStyleSheet: !1, CSSSupportsRule: !1, CustomElementRegistry: !1, customElements: !1, CustomEvent: !1, DataTransfer: !1, DataTransferItem: !1, DataTransferItemList: !1, defaultstatus: !1, defaultStatus: !1, DelayNode: !1, DeviceMotionEvent: !1, DeviceOrientationEvent: !1, devicePixelRatio: !1, dispatchEvent: !1, document: !1, Document: !1, DocumentFragment: !1, DocumentType: !1, DOMError: !1, DOMException: !1, DOMImplementation: !1, DOMMatrix: !1, DOMMatrixReadOnly: !1, DOMParser: !1, DOMPoint: !1, DOMPointReadOnly: !1, DOMQuad: !1, DOMRect: !1, DOMRectReadOnly: !1, DOMStringList: !1, DOMStringMap: !1, DOMTokenList: !1, DragEvent: !1, DynamicsCompressorNode: !1, Element: !1, ErrorEvent: !1, event: !1, Event: !1, EventSource: !1, EventTarget: !1, external: !1, fetch: !1, File: !1, FileList: !1, FileReader: !1, find: !1, focus: !1, FocusEvent: !1, FontFace: !1, FontFaceSetLoadEvent: !1, FormData: !1, frameElement: !1, frames: !1, GainNode: !1, Gamepad: !1, GamepadButton: !1, GamepadEvent: !1, getComputedStyle: !1, getSelection: !1, HashChangeEvent: !1, Headers: !1, history: !1, History: !1, HTMLAllCollection: !1, HTMLAnchorElement: !1, HTMLAreaElement: !1, HTMLAudioElement: !1, HTMLBaseElement: !1, HTMLBodyElement: !1, HTMLBRElement: !1, HTMLButtonElement: !1, HTMLCanvasElement: !1, HTMLCollection: !1, HTMLContentElement: !1, HTMLDataElement: !1, HTMLDataListElement: !1, HTMLDetailsElement: !1, HTMLDialogElement: !1, HTMLDirectoryElement: !1, HTMLDivElement: !1, HTMLDListElement: !1, HTMLDocument: !1, HTMLElement: !1, HTMLEmbedElement: !1, HTMLFieldSetElement: !1, HTMLFontElement: !1, HTMLFormControlsCollection: !1, HTMLFormElement: !1, HTMLFrameElement: !1, HTMLFrameSetElement: !1, HTMLHeadElement: !1, HTMLHeadingElement: !1, HTMLHRElement: !1, HTMLHtmlElement: !1, HTMLIFrameElement: !1, HTMLImageElement: !1, HTMLInputElement: !1, HTMLLabelElement: !1, HTMLLegendElement: !1, HTMLLIElement: !1, HTMLLinkElement: !1, HTMLMapElement: !1, HTMLMarqueeElement: !1, HTMLMediaElement: !1, HTMLMenuElement: !1, HTMLMetaElement: !1, HTMLMeterElement: !1, HTMLModElement: !1, HTMLObjectElement: !1, HTMLOListElement: !1, HTMLOptGroupElement: !1, HTMLOptionElement: !1, HTMLOptionsCollection: !1, HTMLOutputElement: !1, HTMLParagraphElement: !1, HTMLParamElement: !1, HTMLPictureElement: !1, HTMLPreElement: !1, HTMLProgressElement: !1, HTMLQuoteElement: !1, HTMLScriptElement: !1, HTMLSelectElement: !1, HTMLShadowElement: !1, HTMLSlotElement: !1, HTMLSourceElement: !1, HTMLSpanElement: !1, HTMLStyleElement: !1, HTMLTableCaptionElement: !1, HTMLTableCellElement: !1, HTMLTableColElement: !1, HTMLTableElement: !1, HTMLTableRowElement: !1, HTMLTableSectionElement: !1, HTMLTemplateElement: !1, HTMLTextAreaElement: !1, HTMLTimeElement: !1, HTMLTitleElement: !1, HTMLTrackElement: !1, HTMLUListElement: !1, HTMLUnknownElement: !1, HTMLVideoElement: !1, IDBCursor: !1, IDBCursorWithValue: !1, IDBDatabase: !1, IDBFactory: !1, IDBIndex: !1, IDBKeyRange: !1, IDBObjectStore: !1, IDBOpenDBRequest: !1, IDBRequest: !1, IDBTransaction: !1, IDBVersionChangeEvent: !1, IdleDeadline: !1, IIRFilterNode: !1, Image: !1, ImageBitmap: !1, ImageBitmapRenderingContext: !1, ImageCapture: !1, ImageData: !1, indexedDB: !1, innerHeight: !1, innerWidth: !1, InputEvent: !1, IntersectionObserver: !1, IntersectionObserverEntry: !1, Intl: !1, isSecureContext: !1, KeyboardEvent: !1, KeyframeEffect: !1, KeyframeEffectReadOnly: !1, length: !1, localStorage: !1, location: !0, Location: !1, locationbar: !1, matchMedia: !1, MediaDeviceInfo: !1, MediaDevices: !1, MediaElementAudioSourceNode: !1, MediaEncryptedEvent: !1, MediaError: !1, MediaKeyMessageEvent: !1, MediaKeySession: !1, MediaKeyStatusMap: !1, MediaKeySystemAccess: !1, MediaList: !1, MediaQueryList: !1, MediaQueryListEvent: !1, MediaRecorder: !1, MediaSettingsRange: !1, MediaSource: !1, MediaStream: !1, MediaStreamAudioDestinationNode: !1, MediaStreamAudioSourceNode: !1, MediaStreamEvent: !1, MediaStreamTrack: !1, MediaStreamTrackEvent: !1, menubar: !1, MessageChannel: !1, MessageEvent: !1, MessagePort: !1, MIDIAccess: !1, MIDIConnectionEvent: !1, MIDIInput: !1, MIDIInputMap: !1, MIDIMessageEvent: !1, MIDIOutput: !1, MIDIOutputMap: !1, MIDIPort: !1, MimeType: !1, MimeTypeArray: !1, MouseEvent: !1, moveBy: !1, moveTo: !1, MutationEvent: !1, MutationObserver: !1, MutationRecord: !1, name: !1, NamedNodeMap: !1, NavigationPreloadManager: !1, navigator: !1, Navigator: !1, NetworkInformation: !1, Node: !1, NodeFilter: !1, NodeIterator: !1, NodeList: !1, Notification: !1, OfflineAudioCompletionEvent: !1, OfflineAudioContext: !1, offscreenBuffering: !1, OffscreenCanvas: !0, onabort: !0, onafterprint: !0, onanimationend: !0, onanimationiteration: !0, onanimationstart: !0, onappinstalled: !0, onauxclick: !0, onbeforeinstallprompt: !0, onbeforeprint: !0, onbeforeunload: !0, onblur: !0, oncancel: !0, oncanplay: !0, oncanplaythrough: !0, onchange: !0, onclick: !0, onclose: !0, oncontextmenu: !0, oncuechange: !0, ondblclick: !0, ondevicemotion: !0, ondeviceorientation: !0, ondeviceorientationabsolute: !0, ondrag: !0, ondragend: !0, ondragenter: !0, ondragleave: !0, ondragover: !0, ondragstart: !0, ondrop: !0, ondurationchange: !0, onemptied: !0, onended: !0, onerror: !0, onfocus: !0, ongotpointercapture: !0, onhashchange: !0, oninput: !0, oninvalid: !0, onkeydown: !0, onkeypress: !0, onkeyup: !0, onlanguagechange: !0, onload: !0, onloadeddata: !0, onloadedmetadata: !0, onloadstart: !0, onlostpointercapture: !0, onmessage: !0, onmessageerror: !0, onmousedown: !0, onmouseenter: !0, onmouseleave: !0, onmousemove: !0, onmouseout: !0, onmouseover: !0, onmouseup: !0, onmousewheel: !0, onoffline: !0, ononline: !0, onpagehide: !0, onpageshow: !0, onpause: !0, onplay: !0, onplaying: !0, onpointercancel: !0, onpointerdown: !0, onpointerenter: !0, onpointerleave: !0, onpointermove: !0, onpointerout: !0, onpointerover: !0, onpointerup: !0, onpopstate: !0, onprogress: !0, onratechange: !0, onrejectionhandled: !0, onreset: !0, onresize: !0, onscroll: !0, onsearch: !0, onseeked: !0, onseeking: !0, onselect: !0, onstalled: !0, onstorage: !0, onsubmit: !0, onsuspend: !0, ontimeupdate: !0, ontoggle: !0, ontransitionend: !0, onunhandledrejection: !0, onunload: !0, onvolumechange: !0, onwaiting: !0, onwheel: !0, open: !1, openDatabase: !1, opener: !1, Option: !1, origin: !1, OscillatorNode: !1, outerHeight: !1, outerWidth: !1, PageTransitionEvent: !1, pageXOffset: !1, pageYOffset: !1, PannerNode: !1, parent: !1, Path2D: !1, PaymentAddress: !1, PaymentRequest: !1, PaymentRequestUpdateEvent: !1, PaymentResponse: !1, performance: !1, Performance: !1, PerformanceEntry: !1, PerformanceLongTaskTiming: !1, PerformanceMark: !1, PerformanceMeasure: !1, PerformanceNavigation: !1, PerformanceNavigationTiming: !1, PerformanceObserver: !1, PerformanceObserverEntryList: !1, PerformancePaintTiming: !1, PerformanceResourceTiming: !1, PerformanceTiming: !1, PeriodicWave: !1, Permissions: !1, PermissionStatus: !1, personalbar: !1, PhotoCapabilities: !1, Plugin: !1, PluginArray: !1, PointerEvent: !1, PopStateEvent: !1, postMessage: !1, Presentation: !1, PresentationAvailability: !1, PresentationConnection: !1, PresentationConnectionAvailableEvent: !1, PresentationConnectionCloseEvent: !1, PresentationConnectionList: !1, PresentationReceiver: !1, PresentationRequest: !1, print: !1, ProcessingInstruction: !1, ProgressEvent: !1, PromiseRejectionEvent: !1, prompt: !1, PushManager: !1, PushSubscription: !1, PushSubscriptionOptions: !1, queueMicrotask: !1, RadioNodeList: !1, Range: !1, ReadableStream: !1, registerProcessor: !1, RemotePlayback: !1, removeEventListener: !1, Request: !1, requestAnimationFrame: !1, requestIdleCallback: !1, resizeBy: !1, ResizeObserver: !1, ResizeObserverEntry: !1, resizeTo: !1, Response: !1, RTCCertificate: !1, RTCDataChannel: !1, RTCDataChannelEvent: !1, RTCDtlsTransport: !1, RTCIceCandidate: !1, RTCIceGatherer: !1, RTCIceTransport: !1, RTCPeerConnection: !1, RTCPeerConnectionIceEvent: !1, RTCRtpContributingSource: !1, RTCRtpReceiver: !1, RTCRtpSender: !1, RTCSctpTransport: !1, RTCSessionDescription: !1, RTCStatsReport: !1, RTCTrackEvent: !1, screen: !1, Screen: !1, screenLeft: !1, ScreenOrientation: !1, screenTop: !1, screenX: !1, screenY: !1, ScriptProcessorNode: !1, scroll: !1, scrollbars: !1, scrollBy: !1, scrollTo: !1, scrollX: !1, scrollY: !1, SecurityPolicyViolationEvent: !1, Selection: !1, self: !1, ServiceWorker: !1, ServiceWorkerContainer: !1, ServiceWorkerRegistration: !1, sessionStorage: !1, setInterval: !1, setTimeout: !1, ShadowRoot: !1, SharedWorker: !1, SourceBuffer: !1, SourceBufferList: !1, speechSynthesis: !1, SpeechSynthesisEvent: !1, SpeechSynthesisUtterance: !1, StaticRange: !1, status: !1, statusbar: !1, StereoPannerNode: !1, stop: !1, Storage: !1, StorageEvent: !1, StorageManager: !1, styleMedia: !1, StyleSheet: !1, StyleSheetList: !1, SubtleCrypto: !1, SVGAElement: !1, SVGAngle: !1, SVGAnimatedAngle: !1, SVGAnimatedBoolean: !1, SVGAnimatedEnumeration: !1, SVGAnimatedInteger: !1, SVGAnimatedLength: !1, SVGAnimatedLengthList: !1, SVGAnimatedNumber: !1, SVGAnimatedNumberList: !1, SVGAnimatedPreserveAspectRatio: !1, SVGAnimatedRect: !1, SVGAnimatedString: !1, SVGAnimatedTransformList: !1, SVGAnimateElement: !1, SVGAnimateMotionElement: !1, SVGAnimateTransformElement: !1, SVGAnimationElement: !1, SVGCircleElement: !1, SVGClipPathElement: !1, SVGComponentTransferFunctionElement: !1, SVGDefsElement: !1, SVGDescElement: !1, SVGDiscardElement: !1, SVGElement: !1, SVGEllipseElement: !1, SVGFEBlendElement: !1, SVGFEColorMatrixElement: !1, SVGFEComponentTransferElement: !1, SVGFECompositeElement: !1, SVGFEConvolveMatrixElement: !1, SVGFEDiffuseLightingElement: !1, SVGFEDisplacementMapElement: !1, SVGFEDistantLightElement: !1, SVGFEDropShadowElement: !1, SVGFEFloodElement: !1, SVGFEFuncAElement: !1, SVGFEFuncBElement: !1, SVGFEFuncGElement: !1, SVGFEFuncRElement: !1, SVGFEGaussianBlurElement: !1, SVGFEImageElement: !1, SVGFEMergeElement: !1, SVGFEMergeNodeElement: !1, SVGFEMorphologyElement: !1, SVGFEOffsetElement: !1, SVGFEPointLightElement: !1, SVGFESpecularLightingElement: !1, SVGFESpotLightElement: !1, SVGFETileElement: !1, SVGFETurbulenceElement: !1, SVGFilterElement: !1, SVGForeignObjectElement: !1, SVGGElement: !1, SVGGeometryElement: !1, SVGGradientElement: !1, SVGGraphicsElement: !1, SVGImageElement: !1, SVGLength: !1, SVGLengthList: !1, SVGLinearGradientElement: !1, SVGLineElement: !1, SVGMarkerElement: !1, SVGMaskElement: !1, SVGMatrix: !1, SVGMetadataElement: !1, SVGMPathElement: !1, SVGNumber: !1, SVGNumberList: !1, SVGPathElement: !1, SVGPatternElement: !1, SVGPoint: !1, SVGPointList: !1, SVGPolygonElement: !1, SVGPolylineElement: !1, SVGPreserveAspectRatio: !1, SVGRadialGradientElement: !1, SVGRect: !1, SVGRectElement: !1, SVGScriptElement: !1, SVGSetElement: !1, SVGStopElement: !1, SVGStringList: !1, SVGStyleElement: !1, SVGSVGElement: !1, SVGSwitchElement: !1, SVGSymbolElement: !1, SVGTextContentElement: !1, SVGTextElement: !1, SVGTextPathElement: !1, SVGTextPositioningElement: !1, SVGTitleElement: !1, SVGTransform: !1, SVGTransformList: !1, SVGTSpanElement: !1, SVGUnitTypes: !1, SVGUseElement: !1, SVGViewElement: !1, TaskAttributionTiming: !1, Text: !1, TextDecoder: !1, TextEncoder: !1, TextEvent: !1, TextMetrics: !1, TextTrack: !1, TextTrackCue: !1, TextTrackCueList: !1, TextTrackList: !1, TimeRanges: !1, toolbar: !1, top: !1, Touch: !1, TouchEvent: !1, TouchList: !1, TrackEvent: !1, TransitionEvent: !1, TreeWalker: !1, UIEvent: !1, URL: !1, URLSearchParams: !1, ValidityState: !1, visualViewport: !1, VisualViewport: !1, VTTCue: !1, WaveShaperNode: !1, WebAssembly: !1, WebGL2RenderingContext: !1, WebGLActiveInfo: !1, WebGLBuffer: !1, WebGLContextEvent: !1, WebGLFramebuffer: !1, WebGLProgram: !1, WebGLQuery: !1, WebGLRenderbuffer: !1, WebGLRenderingContext: !1, WebGLSampler: !1, WebGLShader: !1, WebGLShaderPrecisionFormat: !1, WebGLSync: !1, WebGLTexture: !1, WebGLTransformFeedback: !1, WebGLUniformLocation: !1, WebGLVertexArrayObject: !1, WebSocket: !1, WheelEvent: !1, window: !1, Window: !1, Worker: !1, WritableStream: !1, XMLDocument: !1, XMLHttpRequest: !1, XMLHttpRequestEventTarget: !1, XMLHttpRequestUpload: !1, XMLSerializer: !1, XPathEvaluator: !1, XPathExpression: !1, XPathResult: !1, XSLTProcessor: !1 }, worker: { addEventListener: !1, applicationCache: !1, atob: !1, Blob: !1, BroadcastChannel: !1, btoa: !1, Cache: !1, caches: !1, clearInterval: !1, clearTimeout: !1, close: !0, console: !1, fetch: !1, FileReaderSync: !1, FormData: !1, Headers: !1, IDBCursor: !1, IDBCursorWithValue: !1, IDBDatabase: !1, IDBFactory: !1, IDBIndex: !1, IDBKeyRange: !1, IDBObjectStore: !1, IDBOpenDBRequest: !1, IDBRequest: !1, IDBTransaction: !1, IDBVersionChangeEvent: !1, ImageData: !1, importScripts: !0, indexedDB: !1, location: !1, MessageChannel: !1, MessagePort: !1, name: !1, navigator: !1, Notification: !1, onclose: !0, onconnect: !0, onerror: !0, onlanguagechange: !0, onmessage: !0, onoffline: !0, ononline: !0, onrejectionhandled: !0, onunhandledrejection: !0, performance: !1, Performance: !1, PerformanceEntry: !1, PerformanceMark: !1, PerformanceMeasure: !1, PerformanceNavigation: !1, PerformanceResourceTiming: !1, PerformanceTiming: !1, postMessage: !0, Promise: !1, queueMicrotask: !1, removeEventListener: !1, Request: !1, Response: !1, self: !0, ServiceWorkerRegistration: !1, setInterval: !1, setTimeout: !1, TextDecoder: !1, TextEncoder: !1, URL: !1, URLSearchParams: !1, WebSocket: !1, Worker: !1, WorkerGlobalScope: !1, XMLHttpRequest: !1 }, node: { __dirname: !1, __filename: !1, Buffer: !1, clearImmediate: !1, clearInterval: !1, clearTimeout: !1, console: !1, exports: !0, global: !1, Intl: !1, module: !1, process: !1, queueMicrotask: !1, require: !1, setImmediate: !1, setInterval: !1, setTimeout: !1, TextDecoder: !1, TextEncoder: !1, URL: !1, URLSearchParams: !1 }, commonjs: { exports: !0, global: !1, module: !1, require: !1 }, amd: { define: !1, require: !1 }, mocha: { after: !1, afterEach: !1, before: !1, beforeEach: !1, context: !1, describe: !1, it: !1, mocha: !1, run: !1, setup: !1, specify: !1, suite: !1, suiteSetup: !1, suiteTeardown: !1, teardown: !1, test: !1, xcontext: !1, xdescribe: !1, xit: !1, xspecify: !1 }, jasmine: { afterAll: !1, afterEach: !1, beforeAll: !1, beforeEach: !1, describe: !1, expect: !1, fail: !1, fdescribe: !1, fit: !1, it: !1, jasmine: !1, pending: !1, runs: !1, spyOn: !1, spyOnProperty: !1, waits: !1, waitsFor: !1, xdescribe: !1, xit: !1 }, jest: { afterAll: !1, afterEach: !1, beforeAll: !1, beforeEach: !1, describe: !1, expect: !1, fdescribe: !1, fit: !1, it: !1, jest: !1, pit: !1, require: !1, test: !1, xdescribe: !1, xit: !1, xtest: !1 }, qunit: { asyncTest: !1, deepEqual: !1, equal: !1, expect: !1, module: !1, notDeepEqual: !1, notEqual: !1, notOk: !1, notPropEqual: !1, notStrictEqual: !1, ok: !1, propEqual: !1, QUnit: !1, raises: !1, start: !1, stop: !1, strictEqual: !1, test: !1, throws: !1 }, phantomjs: { console: !0, exports: !0, phantom: !0, require: !0, WebPage: !0 }, couch: { emit: !1, exports: !1, getRow: !1, log: !1, module: !1, provides: !1, require: !1, respond: !1, send: !1, start: !1, sum: !1 }, rhino: { defineClass: !1, deserialize: !1, gc: !1, help: !1, importClass: !1, importPackage: !1, java: !1, load: !1, loadClass: !1, Packages: !1, print: !1, quit: !1, readFile: !1, readUrl: !1, runCommand: !1, seal: !1, serialize: !1, spawn: !1, sync: !1, toint32: !1, version: !1 }, nashorn: { __DIR__: !1, __FILE__: !1, __LINE__: !1, com: !1, edu: !1, exit: !1, java: !1, Java: !1, javafx: !1, JavaImporter: !1, javax: !1, JSAdapter: !1, load: !1, loadWithNewGlobal: !1, org: !1, Packages: !1, print: !1, quit: !1 }, wsh: { ActiveXObject: !0, Enumerator: !0, GetObject: !0, ScriptEngine: !0, ScriptEngineBuildVersion: !0, ScriptEngineMajorVersion: !0, ScriptEngineMinorVersion: !0, VBArray: !0, WScript: !0, WSH: !0, XDomainRequest: !0 }, jquery: { $: !1, jQuery: !1 }, yui: { YAHOO: !1, YAHOO_config: !1, YUI: !1, YUI_config: !1 }, shelljs: { cat: !1, cd: !1, chmod: !1, config: !1, cp: !1, dirs: !1, echo: !1, env: !1, error: !1, exec: !1, exit: !1, find: !1, grep: !1, ln: !1, ls: !1, mkdir: !1, mv: !1, popd: !1, pushd: !1, pwd: !1, rm: !1, sed: !1, set: !1, target: !1, tempdir: !1, test: !1, touch: !1, which: !1 }, prototypejs: { $: !1, $$: !1, $A: !1, $break: !1, $continue: !1, $F: !1, $H: !1, $R: !1, $w: !1, Abstract: !1, Ajax: !1, Autocompleter: !1, Builder: !1, Class: !1, Control: !1, Draggable: !1, Draggables: !1, Droppables: !1, Effect: !1, Element: !1, Enumerable: !1, Event: !1, Field: !1, Form: !1, Hash: !1, Insertion: !1, ObjectRange: !1, PeriodicalExecuter: !1, Position: !1, Prototype: !1, Scriptaculous: !1, Selector: !1, Sortable: !1, SortableObserver: !1, Sound: !1, Template: !1, Toggle: !1, Try: !1 }, meteor: { _: !1, $: !1, Accounts: !1, AccountsClient: !1, AccountsCommon: !1, AccountsServer: !1, App: !1, Assets: !1, Blaze: !1, check: !1, Cordova: !1, DDP: !1, DDPRateLimiter: !1, DDPServer: !1, Deps: !1, EJSON: !1, Email: !1, HTTP: !1, Log: !1, Match: !1, Meteor: !1, Mongo: !1, MongoInternals: !1, Npm: !1, Package: !1, Plugin: !1, process: !1, Random: !1, ReactiveDict: !1, ReactiveVar: !1, Router: !1, ServiceConfiguration: !1, Session: !1, share: !1, Spacebars: !1, Template: !1, Tinytest: !1, Tracker: !1, UI: !1, Utils: !1, WebApp: !1, WebAppInternals: !1 }, mongo: { _isWindows: !1, _rand: !1, BulkWriteResult: !1, cat: !1, cd: !1, connect: !1, db: !1, getHostName: !1, getMemInfo: !1, hostname: !1, ISODate: !1, listFiles: !1, load: !1, ls: !1, md5sumFile: !1, mkdir: !1, Mongo: !1, NumberInt: !1, NumberLong: !1, ObjectId: !1, PlanCache: !1, print: !1, printjson: !1, pwd: !1, quit: !1, removeFile: !1, rs: !1, sh: !1, UUID: !1, version: !1, WriteResult: !1 }, applescript: { $: !1, Application: !1, Automation: !1, console: !1, delay: !1, Library: !1, ObjC: !1, ObjectSpecifier: !1, Path: !1, Progress: !1, Ref: !1 }, serviceworker: { addEventListener: !1, applicationCache: !1, atob: !1, Blob: !1, BroadcastChannel: !1, btoa: !1, Cache: !1, caches: !1, CacheStorage: !1, clearInterval: !1, clearTimeout: !1, Client: !1, clients: !1, Clients: !1, close: !0, console: !1, ExtendableEvent: !1, ExtendableMessageEvent: !1, fetch: !1, FetchEvent: !1, FileReaderSync: !1, FormData: !1, Headers: !1, IDBCursor: !1, IDBCursorWithValue: !1, IDBDatabase: !1, IDBFactory: !1, IDBIndex: !1, IDBKeyRange: !1, IDBObjectStore: !1, IDBOpenDBRequest: !1, IDBRequest: !1, IDBTransaction: !1, IDBVersionChangeEvent: !1, ImageData: !1, importScripts: !1, indexedDB: !1, location: !1, MessageChannel: !1, MessagePort: !1, name: !1, navigator: !1, Notification: !1, onclose: !0, onconnect: !0, onerror: !0, onfetch: !0, oninstall: !0, onlanguagechange: !0, onmessage: !0, onmessageerror: !0, onnotificationclick: !0, onnotificationclose: !0, onoffline: !0, ononline: !0, onpush: !0, onpushsubscriptionchange: !0, onrejectionhandled: !0, onsync: !0, onunhandledrejection: !0, performance: !1, Performance: !1, PerformanceEntry: !1, PerformanceMark: !1, PerformanceMeasure: !1, PerformanceNavigation: !1, PerformanceResourceTiming: !1, PerformanceTiming: !1, postMessage: !0, Promise: !1, queueMicrotask: !1, registration: !1, removeEventListener: !1, Request: !1, Response: !1, self: !1, ServiceWorker: !1, ServiceWorkerContainer: !1, ServiceWorkerGlobalScope: !1, ServiceWorkerMessageEvent: !1, ServiceWorkerRegistration: !1, setInterval: !1, setTimeout: !1, skipWaiting: !1, TextDecoder: !1, TextEncoder: !1, URL: !1, URLSearchParams: !1, WebSocket: !1, WindowClient: !1, Worker: !1, WorkerGlobalScope: !1, XMLHttpRequest: !1 }, atomtest: { advanceClock: !1, fakeClearInterval: !1, fakeClearTimeout: !1, fakeSetInterval: !1, fakeSetTimeout: !1, resetTimeouts: !1, waitsForPromise: !1 }, embertest: { andThen: !1, click: !1, currentPath: !1, currentRouteName: !1, currentURL: !1, fillIn: !1, find: !1, findAll: !1, findWithAssert: !1, keyEvent: !1, pauseTest: !1, resumeTest: !1, triggerEvent: !1, visit: !1, wait: !1 }, protractor: { $: !1, $$: !1, browser: !1, by: !1, By: !1, DartObject: !1, element: !1, protractor: !1 }, "shared-node-browser": { clearInterval: !1, clearTimeout: !1, console: !1, setInterval: !1, setTimeout: !1, URL: !1, URLSearchParams: !1 }, webextensions: { browser: !1, chrome: !1, opr: !1 }, greasemonkey: { cloneInto: !1, createObjectIn: !1, exportFunction: !1, GM: !1, GM_addStyle: !1, GM_deleteValue: !1, GM_getResourceText: !1, GM_getResourceURL: !1, GM_getValue: !1, GM_info: !1, GM_listValues: !1, GM_log: !1, GM_openInTab: !1, GM_registerMenuCommand: !1, GM_setClipboard: !1, GM_setValue: !1, GM_xmlhttpRequest: !1, unsafeWindow: !1 }, devtools: { $: !1, $_: !1, $$: !1, $0: !1, $1: !1, $2: !1, $3: !1, $4: !1, $x: !1, chrome: !1, clear: !1, copy: !1, debug: !1, dir: !1, dirxml: !1, getEventListeners: !1, inspect: !1, keys: !1, monitor: !1, monitorEvents: !1, profile: !1, profileEnd: !1, queryObjects: !1, table: !1, undebug: !1, unmonitor: !1, unmonitorEvents: !1, values: !1 } }; }); // ../node_modules/@babel/traverse/node_modules/globals/index.js var z7 = E((Wct, K7) => { "use strict"; K7.exports = H7(); }); // ../node_modules/@babel/traverse/lib/cache.js var eu = E((Ni) => { "use strict"; Object.defineProperty(Ni, "__esModule", { value: !0 }); Ni.clear = ZIe; Ni.clearPath = G7; Ni.clearScope = J7; Ni.getCachedPaths = QIe; Ni.getOrCreateCachedPaths = eOe; Ni.scope = Ni.path = void 0; var s0 = Ni.path = /* @__PURE__ */ new WeakMap(), YIe = Ni.scope = /* @__PURE__ */ new WeakMap(); function ZIe() { G7(), J7(); } s(ZIe, "clear"); function G7() { Ni.path = s0 = /* @__PURE__ */ new WeakMap(); } s(G7, "clearPath"); function J7() { Ni.scope = YIe = /* @__PURE__ */ new WeakMap(); } s(J7, "clearScope"); var zC = Object.freeze({}); function QIe(e, t) { var r; return e = null, (r = s0.get(e ?? zC)) == null ? void 0 : r.get(t); } s(QIe, "getCachedPaths"); function eOe(e, t) { e = null; let r = s0.get(e ?? zC); r || s0.set(e ?? zC, r = /* @__PURE__ */ new WeakMap()); let i = r.get(t); return i || r.set(t, i = /* @__PURE__ */ new Map()), i; } s(eOe, "getOrCreateCachedPaths"); }); // ../node_modules/@babel/traverse/lib/scope/index.js var ZC = E((a0) => { "use strict"; Object.defineProperty(a0, "__esModule", { value: !0 }); a0.default = void 0; var tOe = $7(), n5 = wr(), rOe = V7(), iOe = z7(), s5 = $e(), a5 = s5, X7 = eu(), { assignmentExpression: nOe, callExpression: Y7, cloneNode: Z7, getBindingIdentifiers: o5, identifier: ru, isArrayExpression: u5, isBinary: sOe, isCallExpression: Q7, isClass: aOe, isClassBody: oOe, isClassDeclaration: uOe, isExportAllDeclaration: l5, isExportDefaultDeclaration: lOe, isExportNamedDeclaration: GC, isFunctionDeclaration: cOe, isIdentifier: tu, isImportDeclaration: JC, isLiteral: fOe, isMemberExpression: dOe, isMethod: pOe, isModuleSpecifier: hOe, isNullLiteral: mOe, isObjectExpression: yOe, isProperty: gOe, isPureish: bOe, isRegExpLiteral: DOe, isSuper: vOe, isTaggedTemplateExpression: EOe, isTemplateLiteral: c5, isThisExpression: e5, isUnaryExpression: xOe, isVariableDeclaration: SOe, expressionStatement: TOe, matchesPattern: t5, memberExpression: XC, numericLiteral: COe, toIdentifier: wOe, variableDeclaration: AOe, variableDeclarator: _Oe, isRecordExpression: POe, isTupleExpression: FOe, isObjectProperty: IOe, isTopicReference: r5, isMetaProperty: OOe, isPrivateName: kOe, isExportDeclaration: BOe, buildUndefinedNode: NOe, sequenceExpression: MOe } = s5; function qt(e, t) { switch (e?.type) { default: if (JC(e) || BOe(e)) { var r; if ((l5(e) || GC(e) || JC(e)) && e.source) qt(e.source, t); else if ((GC(e) || JC(e)) && (r = e.specifiers) != null && r.length) for (let i of e.specifiers) qt(i, t); else (lOe(e) || GC(e)) && e.declaration && qt(e.declaration, t); } else hOe(e) ? qt(e.local, t) : fOe(e) && !mOe(e) && !DOe(e) && !c5(e) && t.push(e.value); break; case "MemberExpression": case "OptionalMemberExpression": case "JSXMemberExpression": qt(e.object, t), qt(e.property, t); break; case "Identifier": case "JSXIdentifier": t.push(e.name); break; case "CallExpression": case "OptionalCallExpression": case "NewExpression": qt(e.callee, t); break; case "ObjectExpression": case "ObjectPattern": for (let i of e.properties) qt(i, t); break; case "SpreadElement": case "RestElement": qt(e.argument, t); break; case "ObjectProperty": case "ObjectMethod": case "ClassProperty": case "ClassMethod": case "ClassPrivateProperty": case "ClassPrivateMethod": qt(e.key, t); break; case "ThisExpression": t.push("this"); break; case "Super": t.push("super"); break; case "Import": t.push("import"); break; case "DoExpression": t.push("do"); break; case "YieldExpression": t.push("yield"), qt(e.argument, t); break; case "AwaitExpression": t.push("await"), qt(e.argument, t); break; case "AssignmentExpression": qt(e.left, t); break; case "VariableDeclarator": qt(e.id, t); break; case "FunctionExpression": case "FunctionDeclaration": case "ClassExpression": case "ClassDeclaration": qt(e.id, t); break; case "PrivateName": qt(e.id, t); break; case "ParenthesizedExpression": qt(e.expression, t); break; case "UnaryExpression": case "UpdateExpression": qt(e.argument, t); break; case "MetaProperty": qt(e.meta, t), qt(e.property, t); break; case "JSXElement": qt(e.openingElement, t); break; case "JSXOpeningElement": qt(e.name, t); break; case "JSXFragment": qt(e.openingFragment, t); break; case "JSXOpeningFragment": t.push("Fragment"); break; case "JSXNamespacedName": qt(e.namespace, t), qt(e.name, t); break; } } s(qt, "gatherNodeParts"); function i5(e) { e.references = /* @__PURE__ */ Object.create(null), e.bindings = /* @__PURE__ */ Object.create(null), e.globals = /* @__PURE__ */ Object. create(null), e.uids = /* @__PURE__ */ Object.create(null); } s(i5, "resetScope"); YC = Symbol.for("should not be considered a local binding"); var YC, ROe = { ForStatement(e) { let t = e.get("init"); if (t.isVar()) { let { scope: r } = e; (r.getFunctionParent() || r.getProgramParent()).registerBinding("var", t); } }, Declaration(e) { if (e.isBlockScoped() || e.isImportDeclaration() || e.isExportDeclaration()) return; (e.scope.getFunctionParent() || e.scope.getProgramParent()).registerDeclaration(e); }, ImportDeclaration(e) { e.scope.getBlockParent().registerDeclaration(e); }, TSImportEqualsDeclaration(e) { e.scope.getBlockParent().registerDeclaration(e); }, ReferencedIdentifier(e, t) { a5.isTSQualifiedName(e.parent) && e.parent.right === e.node || e.parentPath.isTSImportEqualsDeclaration() || t.references.push(e); }, ForXStatement(e, t) { let r = e.get("left"); if (r.isPattern() || r.isIdentifier()) t.constantViolations.push(e); else if (r.isVar()) { let { scope: i } = e; (i.getFunctionParent() || i.getProgramParent()).registerBinding("var", r); } }, ExportDeclaration: { exit(e) { let { node: t, scope: r } = e; if (l5(t)) return; let i = t.declaration; if (uOe(i) || cOe(i)) { let n = i.id; if (!n) return; let a = r.getBinding(n.name); a?.reference(e); } else if (SOe(i)) for (let n of i.declarations) for (let a of Object.keys(o5(n))) { let o = r.getBinding(a); o?.reference(e); } } }, LabeledStatement(e) { e.scope.getBlockParent().registerDeclaration(e); }, AssignmentExpression(e, t) { t.assignments.push(e); }, UpdateExpression(e, t) { t.constantViolations.push(e); }, UnaryExpression(e, t) { e.node.operator === "delete" && t.constantViolations.push(e); }, BlockScoped(e) { let t = e.scope; if (t.path === e && (t = t.parent), t.getBlockParent().registerDeclaration(e), e.isClassDeclaration() && e.node.id) { let n = e.node.id.name; e.scope.bindings[n] = e.scope.parent.getBinding(n); } }, CatchClause(e) { e.scope.registerBinding("let", e); }, Function(e) { let t = e.get("params"); for (let r of t) e.scope.registerBinding("param", r); e.isFunctionExpression() && e.node.id && !e.node.id[YC] && e.scope.registerBinding("local", e.get("id"), e); }, ClassExpression(e) { e.node.id && !e.node.id[YC] && e.scope.registerBinding("local", e.get("id"), e); }, TSTypeAnnotation(e) { e.skip(); } }, Hd, jOe = 0, Cn = class e { static { s(this, "Scope"); } constructor(t) { this.uid = void 0, this.path = void 0, this.block = void 0, this.inited = void 0, this.labels = void 0, this.bindings = void 0, this.references = void 0, this.globals = void 0, this.uids = void 0, this.data = void 0, this.crawling = void 0; let { node: r } = t, i = X7.scope.get(r); if (i?.path === t) return i; X7.scope.set(r, this), this.uid = jOe++, this.block = r, this.path = t, this.labels = /* @__PURE__ */ new Map(), this.inited = !1; } get parent() { var t; let r, i = this.path; do { var n; let a = i.key === "key" || i.listKey === "decorators"; i = i.parentPath, a && i.isMethod() && (i = i.parentPath), (n = i) != null && n.isScope() && (r = i); } while (i && !r); return (t = r) == null ? void 0 : t.scope; } generateDeclaredUidIdentifier(t) { let r = this.generateUidIdentifier(t); return this.push({ id: r }), Z7(r); } generateUidIdentifier(t) { return ru(this.generateUid(t)); } generateUid(t = "temp") { t = wOe(t).replace(/^_+/, "").replace(/\d+$/g, ""); let r, i = 1; do r = `_${t}`, i > 1 && (r += i), i++; while (this.hasLabel(r) || this.hasBinding(r) || this.hasGlobal(r) || this.hasReference(r)); let n = this.getProgramParent(); return n.references[r] = !0, n.uids[r] = !0, r; } generateUidBasedOnNode(t, r) { let i = []; qt(t, i); let n = i.join("$"); return n = n.replace(/^_/, "") || r || "ref", this.generateUid(n.slice(0, 20)); } generateUidIdentifierBasedOnNode(t, r) { return ru(this.generateUidBasedOnNode(t, r)); } isStatic(t) { if (e5(t) || vOe(t) || r5(t)) return !0; if (tu(t)) { let r = this.getBinding(t.name); return r ? r.constant : this.hasBinding(t.name); } return !1; } maybeGenerateMemoised(t, r) { if (this.isStatic(t)) return null; { let i = this.generateUidIdentifierBasedOnNode(t); return r ? i : (this.push({ id: i }), Z7(i)); } } checkBlockScopedCollisions(t, r, i, n) { if (r === "param" || t.kind === "local") return; if (r === "let" || t.kind === "let" || t.kind === "const" || t.kind === "module" || t.kind === "param" && r === "const") throw this.path.hub.buildError(n, `Duplicate declaration "${i}"`, TypeError); } rename(t, r) { let i = this.getBinding(t); i && (r || (r = this.generateUidIdentifier(t).name), new tOe.default(i, t, r).rename(arguments[2])); } dump() { let t = "-".repeat(60); console.log(t); let r = this; do { console.log("#", r.block.type); for (let i of Object.keys(r.bindings)) { let n = r.bindings[i]; console.log(" -", i, { constant: n.constant, references: n.references, violations: n.constantViolations.length, kind: n.kind }); } } while (r = r.parent); console.log(t); } hasLabel(t) { return !!this.getLabel(t); } getLabel(t) { return this.labels.get(t); } registerLabel(t) { this.labels.set(t.node.label.name, t); } registerDeclaration(t) { if (t.isLabeledStatement()) this.registerLabel(t); else if (t.isFunctionDeclaration()) this.registerBinding("hoisted", t.get("id"), t); else if (t.isVariableDeclaration()) { let r = t.get("declarations"), { kind: i } = t.node; for (let n of r) this.registerBinding(i === "using" || i === "await using" ? "const" : i, n); } else if (t.isClassDeclaration()) { if (t.node.declare) return; this.registerBinding("let", t); } else if (t.isImportDeclaration()) { let r = t.node.importKind === "type" || t.node.importKind === "typeof", i = t.get("specifiers"); for (let n of i) { let a = r || n.isImportSpecifier() && (n.node.importKind === "type" || n.node.importKind === "typeof"); this.registerBinding(a ? "unknown" : "module", n); } } else if (t.isExportDeclaration()) { let r = t.get("declaration"); (r.isClassDeclaration() || r.isFunctionDeclaration() || r.isVariableDeclaration()) && this.registerDeclaration(r); } else this.registerBinding("unknown", t); } buildUndefinedNode() { return NOe(); } registerConstantViolation(t) { let r = t.getAssignmentIdentifiers(); for (let n of Object.keys(r)) { var i; (i = this.getBinding(n)) == null || i.reassign(t); } } registerBinding(t, r, i = r) { if (!t) throw new ReferenceError("no `kind`"); if (r.isVariableDeclaration()) { let o = r.get("declarations"); for (let u of o) this.registerBinding(t, u); return; } let n = this.getProgramParent(), a = r.getOuterBindingIdentifiers(!0); for (let o of Object.keys(a)) { n.references[o] = !0; for (let u of a[o]) { let l = this.getOwnBinding(o); if (l) { if (l.identifier === u) continue; this.checkBlockScopedCollisions(l, t, o, u); } l ? l.reassign(i) : this.bindings[o] = new rOe.default({ identifier: u, scope: this, path: i, kind: t }); } } } addGlobal(t) { this.globals[t.name] = t; } hasUid(t) { let r = this; do if (r.uids[t]) return !0; while (r = r.parent); return !1; } hasGlobal(t) { let r = this; do if (r.globals[t]) return !0; while (r = r.parent); return !1; } hasReference(t) { return !!this.getProgramParent().references[t]; } isPure(t, r) { if (tu(t)) { let o = this.getBinding(t.name); return o ? r ? o.constant : !0 : !1; } else { if (e5(t) || OOe(t) || r5(t) || kOe(t)) return !0; if (aOe(t)) { var i; return t.superClass && !this.isPure(t.superClass, r) || ((i = t.decorators) == null ? void 0 : i.length) > 0 ? !1 : this.isPure(t. body, r); } else if (oOe(t)) { for (let o of t.body) if (!this.isPure(o, r)) return !1; return !0; } else { if (sOe(t)) return this.isPure(t.left, r) && this.isPure(t.right, r); if (u5(t) || FOe(t)) { for (let o of t.elements) if (o !== null && !this.isPure(o, r)) return !1; return !0; } else if (yOe(t) || POe(t)) { for (let o of t.properties) if (!this.isPure(o, r)) return !1; return !0; } else if (pOe(t)) { var n; return !(t.computed && !this.isPure(t.key, r) || ((n = t.decorators) == null ? void 0 : n.length) > 0); } else if (gOe(t)) { var a; return !(t.computed && !this.isPure(t.key, r) || ((a = t.decorators) == null ? void 0 : a.length) > 0 || (IOe(t) || t.static) && t.value !== null && !this.isPure(t.value, r)); } else { if (xOe(t)) return this.isPure(t.argument, r); if (c5(t)) { for (let o of t.expressions) if (!this.isPure(o, r)) return !1; return !0; } else return EOe(t) ? t5(t.tag, "String.raw") && !this.hasBinding("String", { noGlobals: !0 }) && this.isPure(t.quasi, r) : dOe(t) ? !t.computed && tu(t.object) && t.object.name === "Symbol" && tu(t.property) && t.property. name !== "for" && !this.hasBinding("Symbol", { noGlobals: !0 }) : Q7(t) ? t5(t.callee, "Symbol.for") && !this.hasBinding("Symbol", { noGlobals: !0 }) && t.arguments.length === 1 && a5.isStringLiteral(t.arguments[0]) : bOe(t); } } } } setData(t, r) { return this.data[t] = r; } getData(t) { let r = this; do { let i = r.data[t]; if (i != null) return i; } while (r = r.parent); } removeData(t) { let r = this; do r.data[t] != null && (r.data[t] = null); while (r = r.parent); } init() { this.inited || (this.inited = !0, this.crawl()); } crawl() { let t = this.path; i5(this), this.data = /* @__PURE__ */ Object.create(null); let r = this; do { if (r.crawling) return; if (r.path.isProgram()) break; } while (r = r.parent); let i = r, n = { references: [], constantViolations: [], assignments: [] }; if (this.crawling = !0, Hd || (Hd = n5.default.visitors.merge([{ Scope(a) { i5(a.scope); } }, ROe])), t.type !== "Program") { for (let o of Hd.enter) o.call(n, t, n); let a = Hd[t.type]; if (a) for (let o of a.enter) o.call(n, t, n); } t.traverse(Hd, n), this.crawling = !1; for (let a of n.assignments) { let o = a.getAssignmentIdentifiers(); for (let u of Object.keys(o)) a.scope.getBinding(u) || i.addGlobal(o[u]); a.scope.registerConstantViolation(a); } for (let a of n.references) { let o = a.scope.getBinding(a.node.name); o ? o.reference(a) : i.addGlobal(a.node); } for (let a of n.constantViolations) a.scope.registerConstantViolation(a); } push(t) { let r = this.path; r.isPattern() ? r = this.getPatternParent().path : !r.isBlockStatement() && !r.isProgram() && (r = this.getBlockParent().path), r.isSwitchStatement() && (r = (this.getFunctionParent() || this.getProgramParent()).path); let { init: i, unique: n, kind: a = "var", id: o } = t; if (!i && !n && (a === "var" || a === "let") && r.isFunction() && !r.node.name && Q7(r.parent, { callee: r.node }) && r.parent.arguments.length <= r.node.params.length && tu(o)) { r.pushContainer("params", o), r.scope.registerBinding("param", r.get("params")[r.node.params.length - 1]); return; } (r.isLoop() || r.isCatchClause() || r.isFunction()) && (r.ensureBlock(), r = r.get("body")); let u = t._blockHoist == null ? 2 : t._blockHoist, l = `declaration:${a}:${u}`, c = !n && r.getData(l); if (!c) { let h = AOe(a, []); h._blockHoist = u, [c] = r.unshiftContainer("body", [h]), n || r.setData(l, c); } let f = _Oe(o, i), m = c.node.declarations.push(f); r.scope.registerBinding(a, c.get("declarations")[m - 1]); } getProgramParent() { let t = this; do if (t.path.isProgram()) return t; while (t = t.parent); throw new Error("Couldn't find a Program"); } getFunctionParent() { let t = this; do if (t.path.isFunctionParent()) return t; while (t = t.parent); return null; } getBlockParent() { let t = this; do if (t.path.isBlockParent()) return t; while (t = t.parent); throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program..."); } getPatternParent() { let t = this; do if (!t.path.isPattern()) return t.getBlockParent(); while (t = t.parent.parent); throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program..."); } getAllBindings() { let t = /* @__PURE__ */ Object.create(null), r = this; do { for (let i of Object.keys(r.bindings)) i in t || (t[i] = r.bindings[i]); r = r.parent; } while (r); return t; } bindingIdentifierEquals(t, r) { return this.getBindingIdentifier(t) === r; } getBinding(t) { let r = this, i; do { let a = r.getOwnBinding(t); if (a) { var n; if (!((n = i) != null && n.isPattern() && a.kind !== "param" && a.kind !== "local")) return a; } else if (!a && t === "arguments" && r.path.isFunction() && !r.path.isArrowFunctionExpression()) break; i = r.path; } while (r = r.parent); } getOwnBinding(t) { return this.bindings[t]; } getBindingIdentifier(t) { var r; return (r = this.getBinding(t)) == null ? void 0 : r.identifier; } getOwnBindingIdentifier(t) { let r = this.bindings[t]; return r?.identifier; } hasOwnBinding(t) { return !!this.getOwnBinding(t); } hasBinding(t, r) { if (!t) return !1; let i, n, a; typeof r == "object" ? (i = r.noGlobals, n = r.noUids, a = r.upToScope) : typeof r == "boolean" && (i = r); let o = this; do { if (a === o) break; if (o.hasOwnBinding(t)) return !0; } while (o = o.parent); return !!(!n && this.hasUid(t) || !i && e.globals.includes(t) || !i && e.contextVariables.includes(t)); } parentHasBinding(t, r) { var i; return (i = this.parent) == null ? void 0 : i.hasBinding(t, r); } moveBindingTo(t, r) { let i = this.getBinding(t); i && (i.scope.removeOwnBinding(t), i.scope = r, r.bindings[t] = i); } removeOwnBinding(t) { delete this.bindings[t]; } removeBinding(t) { var r; (r = this.getBinding(t)) == null || r.scope.removeOwnBinding(t); let i = this; do i.uids[t] && (i.uids[t] = !1); while (i = i.parent); } hoistVariables(t = (r) => this.push({ id: r })) { this.crawl(); let r = /* @__PURE__ */ new Set(); for (let i of Object.keys(this.bindings)) { let n = this.bindings[i]; if (!n) continue; let { path: a } = n; if (!a.isVariableDeclarator()) continue; let { parent: o, parentPath: u } = a; if (o.kind !== "var" || r.has(o)) continue; r.add(a.parent); let l, c = []; for (let f of o.declarations) { l ?? (l = f.id), f.init && c.push(nOe("=", f.id, f.init)); let m = Object.keys(o5(f, !1, !0, !0)); for (let h of m) t(ru(h), f.init != null); } if (u.parentPath.isFor({ left: o })) u.replaceWith(l); else if (c.length === 0) u.remove(); else { let f = c.length === 1 ? c[0] : MOe(c); u.parentPath.isForStatement({ init: o }) ? u.replaceWith(f) : u.replaceWith(TOe(f)); } } } }; a0.default = Cn; Cn.globals = Object.keys(iOe.builtin); Cn.contextVariables = ["arguments", "undefined", "Infinity", "NaN"]; Cn.prototype._renameFromMap = /* @__PURE__ */ s(function(t, r, i, n) { t[r] && (t[i] = n, t[r] = null); }, "_renameFromMap"), Cn.prototype.traverse = function(e, t, r) { (0, n5.default)(e, t, this, r, this.path); }, Cn.prototype._generateUid = /* @__PURE__ */ s(function(t, r) { let i = t; return r > 1 && (i += r), `_${i}`; }, "_generateUid"), Cn.prototype.toArray = /* @__PURE__ */ s(function(t, r, i) { if (tu(t)) { let o = this.getBinding(t.name); if (o != null && o.constant && o.path.isGenericType("Array")) return t; } if (u5(t)) return t; if (tu(t, { name: "arguments" })) return Y7(XC(XC(XC(ru("Array"), ru("prototype")), ru("slice")), ru("call")), [t]); let n, a = [t]; return r === !0 ? n = "toConsumableArray" : typeof r == "number" ? (a.push(COe(r)), n = "slicedToArray") : n = "toArray", i && (a.unshift( this.path.hub.addHelper(n)), n = "maybeArrayLike"), Y7(this.path.hub.addHelper(n), a); }, "toArray"), Cn.prototype.getAllBindingsOfKind = /* @__PURE__ */ s(function(...t) { let r = /* @__PURE__ */ Object.create(null); for (let i of t) { let n = this; do { for (let a of Object.keys(n.bindings)) { let o = n.bindings[a]; o.kind === i && (r[a] = o); } n = n.parent; } while (n); } return r; }, "getAllBindingsOfKind"), Object.defineProperties(Cn.prototype, { parentBlock: { configurable: !0, enumerable: !0, get() { return this.path.parent; } }, hub: { configurable: !0, enumerable: !0, get() { return this.path.hub; } } }); }); // ../node_modules/@jridgewell/set-array/dist/set-array.umd.js var d5 = E((o0, f5) => { (function(e, t) { typeof o0 == "object" && typeof f5 < "u" ? t(o0) : typeof define == "function" && define.amd ? define(["exports"], t) : (e = typeof globalThis < "u" ? globalThis : e || self, t(e.setArray = {})); })(o0, function(e) { "use strict"; class t { static { s(this, "SetArray"); } constructor() { this._indexes = { __proto__: null }, this.array = []; } } function r(u) { return u; } s(r, "cast"); function i(u, l) { return u._indexes[l]; } s(i, "get"); function n(u, l) { let c = i(u, l); if (c !== void 0) return c; let { array: f, _indexes: m } = u, h = f.push(l); return m[l] = h - 1; } s(n, "put"); function a(u) { let { array: l, _indexes: c } = u; if (l.length === 0) return; let f = l.pop(); c[f] = void 0; } s(a, "pop"); function o(u, l) { let c = i(u, l); if (c === void 0) return; let { array: f, _indexes: m } = u; for (let h = c + 1; h < f.length; h++) { let d = f[h]; f[h - 1] = d, m[d]--; } m[l] = void 0, f.pop(); } s(o, "remove"), e.SetArray = t, e.get = i, e.pop = a, e.put = n, e.remove = o, Object.defineProperty(e, "__esModule", { value: !0 }); }); }); // ../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js var QC = E((u0, p5) => { (function(e, t) { typeof u0 == "object" && typeof p5 < "u" ? t(u0) : typeof define == "function" && define.amd ? define(["exports"], t) : (e = typeof globalThis < "u" ? globalThis : e || self, t(e.sourcemapCodec = {})); })(u0, function(e) { "use strict"; let i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = new Uint8Array(64), a = new Uint8Array(128); for (let j = 0; j < i.length; j++) { let H = i.charCodeAt(j); n[j] = H, a[H] = j; } function o(j, H) { let R = 0, Q = 0, te = 0; do { let Y = j.next(); te = a[Y], R |= (te & 31) << Q, Q += 5; } while (te & 32); let ee = R & 1; return R >>>= 1, ee && (R = -2147483648 | -R), H + R; } s(o, "decodeInteger"); function u(j, H, R) { let Q = H - R; Q = Q < 0 ? -Q << 1 | 1 : Q << 1; do { let te = Q & 31; Q >>>= 5, Q > 0 && (te |= 32), j.write(n[te]); } while (Q > 0); return H; } s(u, "encodeInteger"); function l(j, H) { return j.pos >= H ? !1 : j.peek() !== 44; } s(l, "hasMoreVlq"); let c = 1024 * 16, f = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? { decode(j) { return Buffer.from(j.buffer, j.byteOffset, j.byteLength).toString(); } } : { decode(j) { let H = ""; for (let R = 0; R < j.length; R++) H += String.fromCharCode(j[R]); return H; } }; class m { static { s(this, "StringWriter"); } constructor() { this.pos = 0, this.out = "", this.buffer = new Uint8Array(c); } write(H) { let { buffer: R } = this; R[this.pos++] = H, this.pos === c && (this.out += f.decode(R), this.pos = 0); } flush() { let { buffer: H, out: R, pos: Q } = this; return Q > 0 ? R + f.decode(H.subarray(0, Q)) : R; } } class h { static { s(this, "StringReader"); } constructor(H) { this.pos = 0, this.buffer = H; } next() { return this.buffer.charCodeAt(this.pos++); } peek() { return this.buffer.charCodeAt(this.pos); } indexOf(H) { let { buffer: R, pos: Q } = this, te = R.indexOf(H, Q); return te === -1 ? R.length : te; } } let d = []; function y(j) { let { length: H } = j, R = new h(j), Q = [], te = [], ee = 0; for (; R.pos < H; R.pos++) { ee = o(R, ee); let Y = o(R, 0); if (!l(R, H)) { let ke = te.pop(); ke[2] = ee, ke[3] = Y; continue; } let re = o(R, 0), pe = o(R, 0) & 1 ? [ee, Y, 0, 0, re, o(R, 0)] : [ee, Y, 0, 0, re], me = d; if (l(R, H)) { me = []; do { let ke = o(R, 0); me.push(ke); } while (l(R, H)); } pe.vars = me, Q.push(pe), te.push(pe); } return Q; } s(y, "decodeOriginalScopes"); function p(j) { let H = new m(); for (let R = 0; R < j.length; ) R = g(j, R, H, [0]); return H.flush(); } s(p, "encodeOriginalScopes"); function g(j, H, R, Q) { let te = j[H], { 0: ee, 1: Y, 2: re, 3: se, 4: X, vars: pe } = te; H > 0 && R.write(44), Q[0] = u(R, ee, Q[0]), u(R, Y, 0), u(R, X, 0); let me = te.length === 6 ? 1 : 0; u(R, me, 0), te.length === 6 && u(R, te[5], 0); for (let ke of pe) u(R, ke, 0); for (H++; H < j.length; ) { let ke = j[H], { 0: fe, 1: ge } = ke; if (fe > re || fe === re && ge >= se) break; H = g(j, H, R, Q); } return R.write(44), Q[0] = u(R, re, Q[0]), u(R, se, 0), H; } s(g, "_encodeOriginalScopes"); function b(j) { let { length: H } = j, R = new h(j), Q = [], te = [], ee = 0, Y = 0, re = 0, se = 0, X = 0, pe = 0, me = 0, ke = 0; do { let fe = R.indexOf(";"), ge = 0; for (; R.pos < fe; R.pos++) { if (ge = o(R, ge), !l(R, fe)) { let $t = te.pop(); $t[2] = ee, $t[3] = ge; continue; } let Ne = o(R, 0), gt = Ne & 1, Dt = Ne & 2, Wt = Ne & 4, Dr = null, Fr = d, vr; if (gt) { let $t = o(R, Y); re = o(R, Y === $t ? re : 0), Y = $t, vr = [ee, ge, 0, 0, $t, re]; } else vr = [ee, ge, 0, 0]; if (vr.isScope = !!Wt, Dt) { let $t = se, Lr = X; se = o(R, se); let li = $t === se; X = o(R, li ? X : 0), pe = o(R, li && Lr === X ? pe : 0), Dr = [se, X, pe]; } if (vr.callsite = Dr, l(R, fe)) { Fr = []; do { me = ee, ke = ge; let $t = o(R, 0), Lr; if ($t < -1) { Lr = [[o(R, 0)]]; for (let li = -1; li > $t; li--) { let ha = me; me = o(R, me), ke = o(R, me === ha ? ke : 0); let $i = o(R, 0); Lr.push([$i, me, ke]); } } else Lr = [[$t]]; Fr.push(Lr); } while (l(R, fe)); } vr.bindings = Fr, Q.push(vr), te.push(vr); } ee++, R.pos = fe + 1; } while (R.pos < H); return Q; } s(b, "decodeGeneratedRanges"); function D(j) { if (j.length === 0) return ""; let H = new m(); for (let R = 0; R < j.length; ) R = v(j, R, H, [0, 0, 0, 0, 0, 0, 0]); return H.flush(); } s(D, "encodeGeneratedRanges"); function v(j, H, R, Q) { let te = j[H], { 0: ee, 1: Y, 2: re, 3: se, isScope: X, callsite: pe, bindings: me } = te; Q[0] < ee ? (S(R, Q[0], ee), Q[0] = ee, Q[1] = 0) : H > 0 && R.write(44), Q[1] = u(R, te[1], Q[1]); let ke = (te.length === 6 ? 1 : 0) | (pe ? 2 : 0) | (X ? 4 : 0); if (u(R, ke, 0), te.length === 6) { let { 4: fe, 5: ge } = te; fe !== Q[2] && (Q[3] = 0), Q[2] = u(R, fe, Q[2]), Q[3] = u(R, ge, Q[3]); } if (pe) { let { 0: fe, 1: ge, 2: Ne } = te.callsite; fe !== Q[4] ? (Q[5] = 0, Q[6] = 0) : ge !== Q[5] && (Q[6] = 0), Q[4] = u(R, fe, Q[4]), Q[5] = u(R, ge, Q[5]), Q[6] = u(R, Ne, Q[6]); } if (me) for (let fe of me) { fe.length > 1 && u(R, -fe.length, 0); let ge = fe[0][0]; u(R, ge, 0); let Ne = ee, gt = Y; for (let Dt = 1; Dt < fe.length; Dt++) { let Wt = fe[Dt]; Ne = u(R, Wt[1], Ne), gt = u(R, Wt[2], gt), u(R, Wt[0], 0); } } for (H++; H < j.length; ) { let fe = j[H], { 0: ge, 1: Ne } = fe; if (ge > re || ge === re && Ne >= se) break; H = v(j, H, R, Q); } return Q[0] < re ? (S(R, Q[0], re), Q[0] = re, Q[1] = 0) : R.write(44), Q[1] = u(R, se, Q[1]), H; } s(v, "_encodeGeneratedRanges"); function S(j, H, R) { do j.write(59); while (++H < R); } s(S, "catchupLine"); function C(j) { let { length: H } = j, R = new h(j), Q = [], te = 0, ee = 0, Y = 0, re = 0, se = 0; do { let X = R.indexOf(";"), pe = [], me = !0, ke = 0; for (te = 0; R.pos < X; ) { let fe; te = o(R, te), te < ke && (me = !1), ke = te, l(R, X) ? (ee = o(R, ee), Y = o(R, Y), re = o(R, re), l(R, X) ? (se = o(R, se), fe = [te, ee, Y, re, se]) : fe = [te, ee, Y, re]) : fe = [te], pe.push(fe), R.pos++; } me || O(pe), Q.push(pe), R.pos = X + 1; } while (R.pos <= H); return Q; } s(C, "decode"); function O(j) { j.sort(k); } s(O, "sort"); function k(j, H) { return j[0] - H[0]; } s(k, "sortComparator"); function U(j) { let H = new m(), R = 0, Q = 0, te = 0, ee = 0; for (let Y = 0; Y < j.length; Y++) { let re = j[Y]; if (Y > 0 && H.write(59), re.length === 0) continue; let se = 0; for (let X = 0; X < re.length; X++) { let pe = re[X]; X > 0 && H.write(44), se = u(H, pe[0], se), pe.length !== 1 && (R = u(H, pe[1], R), Q = u(H, pe[2], Q), te = u(H, pe[3], te), pe.length !== 4 && (ee = u(H, pe[4], ee))); } } return H.flush(); } s(U, "encode"), e.decode = C, e.decodeGeneratedRanges = b, e.decodeOriginalScopes = y, e.encode = U, e.encodeGeneratedRanges = D, e.encodeOriginalScopes = p, Object.defineProperty(e, "__esModule", { value: !0 }); }); }); // ../node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js var h5 = E((ew, tw) => { (function(e, t) { typeof ew == "object" && typeof tw < "u" ? tw.exports = t() : typeof define == "function" && define.amd ? define(t) : (e = typeof globalThis < "u" ? globalThis : e || self, e.resolveURI = t()); })(ew, function() { "use strict"; let e = /^[\w+.-]+:\/\//, t = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/, r = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; function i(g) { return e.test(g); } s(i, "isAbsoluteUrl"); function n(g) { return g.startsWith("//"); } s(n, "isSchemeRelativeUrl"); function a(g) { return g.startsWith("/"); } s(a, "isAbsolutePath"); function o(g) { return g.startsWith("file:"); } s(o, "isFileUrl"); function u(g) { return /^[.?#]/.test(g); } s(u, "isRelative"); function l(g) { let b = t.exec(g); return f(b[1], b[2] || "", b[3], b[4] || "", b[5] || "/", b[6] || "", b[7] || ""); } s(l, "parseAbsoluteUrl"); function c(g) { let b = r.exec(g), D = b[2]; return f("file:", "", b[1] || "", "", a(D) ? D : "/" + D, b[3] || "", b[4] || ""); } s(c, "parseFileUrl"); function f(g, b, D, v, S, C, O) { return { scheme: g, user: b, host: D, port: v, path: S, query: C, hash: O, type: 7 }; } s(f, "makeUrl"); function m(g) { if (n(g)) { let D = l("http:" + g); return D.scheme = "", D.type = 6, D; } if (a(g)) { let D = l("http://foo.com" + g); return D.scheme = "", D.host = "", D.type = 5, D; } if (o(g)) return c(g); if (i(g)) return l(g); let b = l("http://foo.com/" + g); return b.scheme = "", b.host = "", b.type = g ? g.startsWith("?") ? 3 : g.startsWith("#") ? 2 : 4 : 1, b; } s(m, "parseUrl"); function h(g) { if (g.endsWith("/..")) return g; let b = g.lastIndexOf("/"); return g.slice(0, b + 1); } s(h, "stripPathFilename"); function d(g, b) { y(b, b.type), g.path === "/" ? g.path = b.path : g.path = h(b.path) + g.path; } s(d, "mergePaths"); function y(g, b) { let D = b <= 4, v = g.path.split("/"), S = 1, C = 0, O = !1; for (let U = 1; U < v.length; U++) { let j = v[U]; if (!j) { O = !0; continue; } if (O = !1, j !== ".") { if (j === "..") { C ? (O = !0, C--, S--) : D && (v[S++] = j); continue; } v[S++] = j, C++; } } let k = ""; for (let U = 1; U < S; U++) k += "/" + v[U]; (!k || O && !k.endsWith("/..")) && (k += "/"), g.path = k; } s(y, "normalizePath"); function p(g, b) { if (!g && !b) return ""; let D = m(g), v = D.type; if (b && v !== 7) { let C = m(b), O = C.type; switch (v) { case 1: D.hash = C.hash; // fall through case 2: D.query = C.query; // fall through case 3: case 4: d(D, C); // fall through case 5: D.user = C.user, D.host = C.host, D.port = C.port; // fall through case 6: D.scheme = C.scheme; } O > v && (v = O); } y(D, v); let S = D.query + D.hash; switch (v) { // This is impossible, because of the empty checks at the start of the function. // case UrlType.Empty: case 2: case 3: return S; case 4: { let C = D.path.slice(1); return C ? u(b || g) && !u(C) ? "./" + C + S : C + S : S || "."; } case 5: return D.path + S; default: return D.scheme + "//" + D.user + D.host + D.port + D.path + S; } } return s(p, "resolve"), p; }); }); // ../node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js var c0 = E((l0, m5) => { (function(e, t) { typeof l0 == "object" && typeof m5 < "u" ? t(l0, QC(), h5()) : typeof define == "function" && define.amd ? define(["exports", "@jridgewe\ ll/sourcemap-codec", "@jridgewell/resolve-uri"], t) : (e = typeof globalThis < "u" ? globalThis : e || self, t(e.traceMapping = {}, e.sourcemapCodec, e.resolveURI)); })(l0, function(e, t, r) { "use strict"; function i(G, ne) { return ne && !ne.endsWith("/") && (ne += "/"), r(G, ne); } s(i, "resolve"); function n(G) { if (!G) return ""; let ne = G.lastIndexOf("/"); return G.slice(0, ne + 1); } s(n, "stripFilename"); let a = 0, o = 1, u = 2, l = 3, c = 4, f = 1, m = 2; function h(G, ne) { let ue = d(G, 0); if (ue === G.length) return G; ne || (G = G.slice()); for (let de = ue; de < G.length; de = d(G, de + 1)) G[de] = p(G[de], ne); return G; } s(h, "maybeSort"); function d(G, ne) { for (let ue = ne; ue < G.length; ue++) if (!y(G[ue])) return ue; return G.length; } s(d, "nextUnsortedSegmentLine"); function y(G) { for (let ne = 1; ne < G.length; ne++) if (G[ne][a] < G[ne - 1][a]) return !1; return !0; } s(y, "isSorted"); function p(G, ne) { return ne || (G = G.slice()), G.sort(g); } s(p, "sortSegments"); function g(G, ne) { return G[a] - ne[a]; } s(g, "sortComparator"); let b = !1; function D(G, ne, ue, de) { for (; ue <= de; ) { let _e = ue + (de - ue >> 1), we = G[_e][a] - ne; if (we === 0) return b = !0, _e; we < 0 ? ue = _e + 1 : de = _e - 1; } return b = !1, ue - 1; } s(D, "binarySearch"); function v(G, ne, ue) { for (let de = ue + 1; de < G.length && G[de][a] === ne; ue = de++) ; return ue; } s(v, "upperBound"); function S(G, ne, ue) { for (let de = ue - 1; de >= 0 && G[de][a] === ne; ue = de--) ; return ue; } s(S, "lowerBound"); function C() { return { lastKey: -1, lastNeedle: -1, lastIndex: -1 }; } s(C, "memoizedState"); function O(G, ne, ue, de) { let { lastKey: _e, lastNeedle: we, lastIndex: Ue } = ue, ot = 0, We = G.length - 1; if (de === _e) { if (ne === we) return b = Ue !== -1 && G[Ue][a] === ne, Ue; ne >= we ? ot = Ue === -1 ? 0 : Ue : We = Ue; } return ue.lastKey = de, ue.lastNeedle = ne, ue.lastIndex = D(G, ne, ot, We); } s(O, "memoizedBinarySearch"); function k(G, ne) { let ue = ne.map(j); for (let de = 0; de < G.length; de++) { let _e = G[de]; for (let we = 0; we < _e.length; we++) { let Ue = _e[we]; if (Ue.length === 1) continue; let ot = Ue[o], We = Ue[u], Ge = Ue[l], Bt = ue[ot], dt = Bt[We] || (Bt[We] = []), pt = ne[ot], gr = v(dt, Ge, O(dt, Ge, pt, We)); pt.lastIndex = ++gr, U(dt, gr, [Ge, de, Ue[a]]); } } return ue; } s(k, "buildBySources"); function U(G, ne, ue) { for (let de = G.length; de > ne; de--) G[de] = G[de - 1]; G[ne] = ue; } s(U, "insert"); function j() { return { __proto__: null }; } s(j, "buildNullArray"); let H = /* @__PURE__ */ s(function(G, ne) { let ue = R(G); if (!("sections" in ue)) return new me(ue, ne); let de = [], _e = [], we = [], Ue = [], ot = []; Q(ue, ne, de, _e, we, Ue, ot, 0, 0, 1 / 0, 1 / 0); let We = { version: 3, file: ue.file, names: Ue, sources: _e, sourcesContent: we, mappings: de, ignoreList: ot }; return Lr(We); }, "AnyMap"); function R(G) { return typeof G == "string" ? JSON.parse(G) : G; } s(R, "parse"); function Q(G, ne, ue, de, _e, we, Ue, ot, We, Ge, Bt) { let { sections: dt } = G; for (let pt = 0; pt < dt.length; pt++) { let { map: gr, offset: Ei } = dt[pt], mn = Ge, yn = Bt; if (pt + 1 < dt.length) { let gn = dt[pt + 1].offset; mn = Math.min(Ge, ot + gn.line), mn === Ge ? yn = Math.min(Bt, We + gn.column) : mn < Ge && (yn = We + gn.column); } te(gr, ne, ue, de, _e, we, Ue, ot + Ei.line, We + Ei.column, mn, yn); } } s(Q, "recurse"); function te(G, ne, ue, de, _e, we, Ue, ot, We, Ge, Bt) { let dt = R(G); if ("sections" in dt) return Q(...arguments); let pt = new me(dt, ne), gr = de.length, Ei = we.length, mn = ge(pt), { resolvedSources: yn, sourcesContent: gn, ignoreList: ma } = pt; if (ee(de, yn), ee(we, pt.names), gn) ee(_e, gn); else for (let J = 0; J < yn.length; J++) _e.push(null); if (ma) for (let J = 0; J < ma.length; J++) Ue.push(ma[J] + gr); for (let J = 0; J < mn.length; J++) { let Z = ot + J; if (Z > Ge) return; let he = Y(ue, Z), Je = J === 0 ? We : 0, Yr = mn[J]; for (let go = 0; go < Yr.length; go++) { let ys = Yr[go], rh = Je + ys[a]; if (Z === Ge && rh >= Bt) return; if (ys.length === 1) { he.push([rh]); continue; } let SF = gr + ys[o], TF = ys[u], CF = ys[l]; he.push(ys.length === 4 ? [rh, SF, TF, CF] : [rh, SF, TF, CF, Ei + ys[c]]); } } } s(te, "addSection"); function ee(G, ne) { for (let ue = 0; ue < ne.length; ue++) G.push(ne[ue]); } s(ee, "append"); function Y(G, ne) { for (let ue = G.length; ue <= ne; ue++) G[ue] = []; return G[ne]; } s(Y, "getLine"); let re = "`line` must be greater than 0 (lines start at line 1)", se = "`column` must be greater than or equal to 0 (columns start at co\ lumn 0)", X = -1, pe = 1; class me { static { s(this, "TraceMap"); } constructor(ne, ue) { let de = typeof ne == "string"; if (!de && ne._decodedMemo) return ne; let _e = de ? JSON.parse(ne) : ne, { version: we, file: Ue, names: ot, sourceRoot: We, sources: Ge, sourcesContent: Bt } = _e; this.version = we, this.file = Ue, this.names = ot || [], this.sourceRoot = We, this.sources = Ge, this.sourcesContent = Bt, this.ignoreList = _e.ignoreList || _e.x_google_ignoreList || void 0; let dt = i(We || "", n(ue)); this.resolvedSources = Ge.map((gr) => i(gr || "", dt)); let { mappings: pt } = _e; typeof pt == "string" ? (this._encoded = pt, this._decoded = void 0) : (this._encoded = void 0, this._decoded = h(pt, de)), this._decodedMemo = C(), this._bySources = void 0, this._bySourceMemos = void 0; } } function ke(G) { return G; } s(ke, "cast"); function fe(G) { var ne, ue; return (ne = (ue = G)._encoded) !== null && ne !== void 0 ? ne : ue._encoded = t.encode(G._decoded); } s(fe, "encodedMappings"); function ge(G) { var ne; return (ne = G)._decoded || (ne._decoded = t.decode(G._encoded)); } s(ge, "decodedMappings"); function Ne(G, ne, ue) { let de = ge(G); if (ne >= de.length) return null; let _e = de[ne], we = Ke(_e, G._decodedMemo, ne, ue, pe); return we === -1 ? null : _e[we]; } s(Ne, "traceSegment"); function gt(G, ne) { let { line: ue, column: de, bias: _e } = ne; if (ue--, ue < 0) throw new Error(re); if (de < 0) throw new Error(se); let we = ge(G); if (ue >= we.length) return Te(null, null, null, null); let Ue = we[ue], ot = Ke(Ue, G._decodedMemo, ue, de, _e || pe); if (ot === -1) return Te(null, null, null, null); let We = Ue[ot]; if (We.length === 1) return Te(null, null, null, null); let { names: Ge, resolvedSources: Bt } = G; return Te(Bt[We[o]], We[u] + 1, We[l], We.length === 5 ? Ge[We[c]] : null); } s(gt, "originalPositionFor"); function Dt(G, ne) { let { source: ue, line: de, column: _e, bias: we } = ne; return Vt(G, ue, de, _e, we || pe, !1); } s(Dt, "generatedPositionFor"); function Wt(G, ne) { let { source: ue, line: de, column: _e, bias: we } = ne; return Vt(G, ue, de, _e, we || X, !0); } s(Wt, "allGeneratedPositionsFor"); function Dr(G, ne) { let ue = ge(G), { names: de, resolvedSources: _e } = G; for (let we = 0; we < ue.length; we++) { let Ue = ue[we]; for (let ot = 0; ot < Ue.length; ot++) { let We = Ue[ot], Ge = we + 1, Bt = We[0], dt = null, pt = null, gr = null, Ei = null; We.length !== 1 && (dt = _e[We[1]], pt = We[2] + 1, gr = We[3]), We.length === 5 && (Ei = de[We[4]]), ne({ generatedLine: Ge, generatedColumn: Bt, source: dt, originalLine: pt, originalColumn: gr, name: Ei }); } } } s(Dr, "eachMapping"); function Fr(G, ne) { let { sources: ue, resolvedSources: de } = G, _e = ue.indexOf(ne); return _e === -1 && (_e = de.indexOf(ne)), _e; } s(Fr, "sourceIndex"); function vr(G, ne) { let { sourcesContent: ue } = G; if (ue == null) return null; let de = Fr(G, ne); return de === -1 ? null : ue[de]; } s(vr, "sourceContentFor"); function $t(G, ne) { let { ignoreList: ue } = G; if (ue == null) return !1; let de = Fr(G, ne); return de === -1 ? !1 : ue.includes(de); } s($t, "isIgnored"); function Lr(G, ne) { let ue = new me($i(G, []), ne); return ue._decoded = G.mappings, ue; } s(Lr, "presortedDecodedMap"); function li(G) { return $i(G, ge(G)); } s(li, "decodedMap"); function ha(G) { return $i(G, fe(G)); } s(ha, "encodedMap"); function $i(G, ne) { return { version: G.version, file: G.file, names: G.names, sourceRoot: G.sourceRoot, sources: G.sources, sourcesContent: G.sourcesContent, mappings: ne, ignoreList: G.ignoreList || G.x_google_ignoreList }; } s($i, "clone"); function Te(G, ne, ue, de) { return { source: G, line: ne, column: ue, name: de }; } s(Te, "OMapping"); function ye(G, ne) { return { line: G, column: ne }; } s(ye, "GMapping"); function Ke(G, ne, ue, de, _e) { let we = O(G, de, ne, ue); return b ? we = (_e === X ? v : S)(G, de, we) : _e === X && we++, we === -1 || we === G.length ? -1 : we; } s(Ke, "traceSegmentInternal"); function Ft(G, ne, ue, de, _e) { let we = Ke(G, ne, ue, de, pe); if (!b && _e === X && we++, we === -1 || we === G.length) return []; let Ue = b ? de : G[we][a]; b || (we = S(G, Ue, we)); let ot = v(G, Ue, we), We = []; for (; we <= ot; we++) { let Ge = G[we]; We.push(ye(Ge[f] + 1, Ge[m])); } return We; } s(Ft, "sliceGeneratedPositions"); function Vt(G, ne, ue, de, _e, we) { var Ue; if (ue--, ue < 0) throw new Error(re); if (de < 0) throw new Error(se); let { sources: ot, resolvedSources: We } = G, Ge = ot.indexOf(ne); if (Ge === -1 && (Ge = We.indexOf(ne)), Ge === -1) return we ? [] : ye(null, null); let dt = ((Ue = G)._bySources || (Ue._bySources = k(ge(G), G._bySourceMemos = ot.map(C))))[Ge][ue]; if (dt == null) return we ? [] : ye(null, null); let pt = G._bySourceMemos[Ge]; if (we) return Ft(dt, pt, ue, de, _e); let gr = Ke(dt, pt, ue, de, _e); if (gr === -1) return ye(null, null); let Ei = dt[gr]; return ye(Ei[f] + 1, Ei[m]); } s(Vt, "generatedPosition"), e.AnyMap = H, e.GREATEST_LOWER_BOUND = pe, e.LEAST_UPPER_BOUND = X, e.TraceMap = me, e.allGeneratedPositionsFor = Wt, e.decodedMap = li, e.decodedMappings = ge, e.eachMapping = Dr, e.encodedMap = ha, e.encodedMappings = fe, e.generatedPositionFor = Dt, e.isIgnored = $t, e.originalPositionFor = gt, e.presortedDecodedMap = Lr, e.sourceContentFor = vr, e.traceSegment = Ne; }); }); // ../node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js var rw = E((f0, y5) => { (function(e, t) { typeof f0 == "object" && typeof y5 < "u" ? t(f0, d5(), QC(), c0()) : typeof define == "function" && define.amd ? define(["exports", "@jr\ idgewell/set-array", "@jridgewell/sourcemap-codec", "@jridgewell/trace-mapping"], t) : (e = typeof globalThis < "u" ? globalThis : e || self, t(e.genMapping = {}, e.setArray, e.sourcemapCodec, e.traceMapping)); })(f0, function(e, t, r, i) { "use strict"; class f { static { s(this, "GenMapping"); } constructor({ file: re, sourceRoot: se } = {}) { this._names = new t.SetArray(), this._sources = new t.SetArray(), this._sourcesContent = [], this._mappings = [], this.file = re, this. sourceRoot = se, this._ignoreList = new t.SetArray(); } } function m(Y) { return Y; } s(m, "cast"); function h(Y, re, se, X, pe, me, ke, fe) { return O(!1, Y, re, se, X, pe, me, ke, fe); } s(h, "addSegment"); function d(Y, re) { return ee(!1, Y, re); } s(d, "addMapping"); let y = /* @__PURE__ */ s((Y, re, se, X, pe, me, ke, fe) => O(!0, Y, re, se, X, pe, me, ke, fe), "maybeAddSegment"), p = /* @__PURE__ */ s( (Y, re) => ee(!0, Y, re), "maybeAddMapping"); function g(Y, re, se) { let { _sources: X, _sourcesContent: pe } = Y, me = t.put(X, re); pe[me] = se; } s(g, "setSourceContent"); function b(Y, re, se = !0) { let { _sources: X, _sourcesContent: pe, _ignoreList: me } = Y, ke = t.put(X, re); ke === pe.length && (pe[ke] = null), se ? t.put(me, ke) : t.remove(me, ke); } s(b, "setIgnore"); function D(Y) { let { _mappings: re, _sources: se, _sourcesContent: X, _names: pe, _ignoreList: me } = Y; return H(re), { version: 3, file: Y.file || void 0, names: pe.array, sourceRoot: Y.sourceRoot || void 0, sources: se.array, sourcesContent: X, mappings: re, ignoreList: me.array }; } s(D, "toDecodedMap"); function v(Y) { let re = D(Y); return Object.assign(Object.assign({}, re), { mappings: r.encode(re.mappings) }); } s(v, "toEncodedMap"); function S(Y) { let re = new i.TraceMap(Y), se = new f({ file: re.file, sourceRoot: re.sourceRoot }); return R(se._names, re.names), R(se._sources, re.sources), se._sourcesContent = re.sourcesContent || re.sources.map(() => null), se._mappings = i.decodedMappings(re), re.ignoreList && R(se._ignoreList, re.ignoreList), se; } s(S, "fromMap"); function C(Y) { let re = [], { _mappings: se, _sources: X, _names: pe } = Y; for (let me = 0; me < se.length; me++) { let ke = se[me]; for (let fe = 0; fe < ke.length; fe++) { let ge = ke[fe], Ne = { line: me + 1, column: ge[0] }, gt, Dt, Wt; ge.length !== 1 && (gt = X.array[ge[1]], Dt = { line: ge[2] + 1, column: ge[3] }, ge.length === 5 && (Wt = pe.array[ge[4]])), re.push( { generated: Ne, source: gt, original: Dt, name: Wt }); } } return re; } s(C, "allMappings"); function O(Y, re, se, X, pe, me, ke, fe, ge) { let { _mappings: Ne, _sources: gt, _sourcesContent: Dt, _names: Wt } = re, Dr = k(Ne, se), Fr = U(Dr, X); if (!pe) return Y && Q(Dr, Fr) ? void 0 : j(Dr, Fr, [X]); let vr = t.put(gt, pe), $t = fe ? t.put(Wt, fe) : -1; if (vr === Dt.length && (Dt[vr] = ge ?? null), !(Y && te(Dr, Fr, vr, me, ke, $t))) return j(Dr, Fr, fe ? [X, vr, me, ke, $t] : [X, vr, me, ke]); } s(O, "addSegmentInternal"); function k(Y, re) { for (let se = Y.length; se <= re; se++) Y[se] = []; return Y[re]; } s(k, "getLine"); function U(Y, re) { let se = Y.length; for (let X = se - 1; X >= 0; se = X--) { let pe = Y[X]; if (re >= pe[0]) break; } return se; } s(U, "getColumnIndex"); function j(Y, re, se) { for (let X = Y.length; X > re; X--) Y[X] = Y[X - 1]; Y[re] = se; } s(j, "insert"); function H(Y) { let { length: re } = Y, se = re; for (let X = se - 1; X >= 0 && !(Y[X].length > 0); se = X, X--) ; se < re && (Y.length = se); } s(H, "removeEmptyFinalLines"); function R(Y, re) { for (let se = 0; se < re.length; se++) t.put(Y, re[se]); } s(R, "putAll"); function Q(Y, re) { return re === 0 ? !0 : Y[re - 1].length === 1; } s(Q, "skipSourceless"); function te(Y, re, se, X, pe, me) { if (re === 0) return !1; let ke = Y[re - 1]; return ke.length === 1 ? !1 : se === ke[1] && X === ke[2] && pe === ke[3] && me === (ke.length === 5 ? ke[4] : -1); } s(te, "skipSource"); function ee(Y, re, se) { let { generated: X, source: pe, original: me, name: ke, content: fe } = se; return pe ? O(Y, re, X.line - 1, X.column, pe, me.line - 1, me.column, ke, fe) : O(Y, re, X.line - 1, X.column, null, null, null, null, null); } s(ee, "addMappingInternal"), e.GenMapping = f, e.addMapping = d, e.addSegment = h, e.allMappings = C, e.fromMap = S, e.maybeAddMapping = p, e.maybeAddSegment = y, e.setIgnore = b, e.setSourceContent = g, e.toDecodedMap = D, e.toEncodedMap = v, Object.defineProperty(e, "__e\ sModule", { value: !0 }); }); }); // ../node_modules/@babel/generator/lib/source-map.js var g5 = E((d0) => { "use strict"; Object.defineProperty(d0, "__esModule", { value: !0 }); d0.default = void 0; var Wa = rw(), iw = c0(), nw = class { static { s(this, "SourceMap"); } constructor(t, r) { var i; this._map = void 0, this._rawMappings = void 0, this._sourceFileName = void 0, this._lastGenLine = 0, this._lastSourceLine = 0, this._lastSourceColumn = 0, this._inputMap = void 0; let n = this._map = new Wa.GenMapping({ sourceRoot: t.sourceRoot }); if (this._sourceFileName = (i = t.sourceFileName) == null ? void 0 : i.replace(/\\/g, "/"), this._rawMappings = void 0, t.inputSourceMap) { this._inputMap = new iw.TraceMap(t.inputSourceMap); let o = this._inputMap.resolvedSources; if (o.length) for (let u = 0; u < o.length; u++) { var a; (0, Wa.setSourceContent)(n, o[u], (a = this._inputMap.sourcesContent) == null ? void 0 : a[u]); } } if (typeof r == "string" && !t.inputSourceMap) (0, Wa.setSourceContent)(n, this._sourceFileName, r); else if (typeof r == "object") for (let o of Object.keys(r)) (0, Wa.setSourceContent)(n, o.replace(/\\/g, "/"), r[o]); } get() { return (0, Wa.toEncodedMap)(this._map); } getDecoded() { return (0, Wa.toDecodedMap)(this._map); } getRawMappings() { return this._rawMappings || (this._rawMappings = (0, Wa.allMappings)(this._map)); } mark(t, r, i, n, a, o) { var u; this._rawMappings = void 0; let l; if (r != null) if (this._inputMap) { if (l = (0, iw.originalPositionFor)(this._inputMap, { line: r, column: i }), !l.name && a) { let c = (0, iw.originalPositionFor)(this._inputMap, a); c.name && (n = c.name); } } else l = { source: o?.replace(/\\/g, "/") || this._sourceFileName, line: r, column: i }; (0, Wa.maybeAddMapping)(this._map, { name: n, generated: t, source: (u = l) == null ? void 0 : u.source, original: l }); } }; d0.default = nw; }); // ../node_modules/@babel/generator/lib/buffer.js var b5 = E((p0) => { "use strict"; Object.defineProperty(p0, "__esModule", { value: !0 }); p0.default = void 0; var sw = class { static { s(this, "Buffer"); } constructor(t, r) { this._map = null, this._buf = "", this._str = "", this._appendCount = 0, this._last = 0, this._queue = [], this._queueCursor = 0, this. _canMarkIdName = !0, this._indentChar = "", this._fastIndentations = [], this._position = { line: 1, column: 0 }, this._sourcePosition = { identifierName: void 0, identifierNamePos: void 0, line: void 0, column: void 0, filename: void 0 }, this._map = t, this._indentChar = r; for (let i = 0; i < 64; i++) this._fastIndentations.push(r.repeat(i)); this._allocQueue(); } _allocQueue() { let t = this._queue; for (let r = 0; r < 16; r++) t.push({ char: 0, repeat: 1, line: void 0, column: void 0, identifierName: void 0, identifierNamePos: void 0, filename: "" }); } _pushQueue(t, r, i, n, a) { let o = this._queueCursor; o === this._queue.length && this._allocQueue(); let u = this._queue[o]; u.char = t, u.repeat = r, u.line = i, u.column = n, u.filename = a, this._queueCursor++; } _popQueue() { if (this._queueCursor === 0) throw new Error("Cannot pop from empty queue"); return this._queue[--this._queueCursor]; } get() { this._flush(); let t = this._map, r = { code: (this._buf + this._str).trimRight(), decodedMap: t?.getDecoded(), get __mergedMap() { return this.map; }, get map() { let i = t ? t.get() : null; return r.map = i, i; }, set map(i) { Object.defineProperty(r, "map", { value: i, writable: !0 }); }, get rawMappings() { let i = t?.getRawMappings(); return r.rawMappings = i, i; }, set rawMappings(i) { Object.defineProperty(r, "rawMappings", { value: i, writable: !0 }); } }; return r; } append(t, r) { this._flush(), this._append(t, this._sourcePosition, r); } appendChar(t) { this._flush(), this._appendChar(t, 1, this._sourcePosition); } queue(t) { if (t === 10) for (; this._queueCursor !== 0; ) { let i = this._queue[this._queueCursor - 1].char; if (i !== 32 && i !== 9) break; this._queueCursor--; } let r = this._sourcePosition; this._pushQueue(t, 1, r.line, r.column, r.filename); } queueIndentation(t) { t !== 0 && this._pushQueue(-1, t, void 0, void 0, void 0); } _flush() { let t = this._queueCursor, r = this._queue; for (let i = 0; i < t; i++) { let n = r[i]; this._appendChar(n.char, n.repeat, n); } this._queueCursor = 0; } _appendChar(t, r, i) { if (this._last = t, t === -1) { let n = this._fastIndentations[r]; n !== void 0 ? this._str += n : this._str += r > 1 ? this._indentChar.repeat(r) : this._indentChar; } else this._str += r > 1 ? String.fromCharCode(t).repeat(r) : String.fromCharCode(t); t !== 10 ? (this._mark(i.line, i.column, i.identifierName, i.identifierNamePos, i.filename), this._position.column += r) : (this._position. line++, this._position.column = 0), this._canMarkIdName && (i.identifierName = void 0, i.identifierNamePos = void 0); } _append(t, r, i) { let n = t.length, a = this._position; if (this._last = t.charCodeAt(n - 1), ++this._appendCount > 4096 ? (+this._str, this._buf += this._str, this._str = t, this._appendCount = 0) : this._str += t, !i && !this._map) { a.column += n; return; } let { column: o, identifierName: u, identifierNamePos: l, filename: c } = r, f = r.line; (u != null || l != null) && this._canMarkIdName && (r.identifierName = void 0, r.identifierNamePos = void 0); let m = t.indexOf(` `), h = 0; for (m !== 0 && this._mark(f, o, u, l, c); m !== -1; ) a.line++, a.column = 0, h = m + 1, h < n && f !== void 0 && this._mark(++f, 0, null, null, c), m = t.indexOf(` `, h); a.column += n - h; } _mark(t, r, i, n, a) { var o; (o = this._map) == null || o.mark(this._position, t, r, i, n, a); } removeTrailingNewline() { let t = this._queueCursor; t !== 0 && this._queue[t - 1].char === 10 && this._queueCursor--; } removeLastSemicolon() { let t = this._queueCursor; t !== 0 && this._queue[t - 1].char === 59 && this._queueCursor--; } getLastChar() { let t = this._queueCursor; return t !== 0 ? this._queue[t - 1].char : this._last; } getNewlineCount() { let t = this._queueCursor, r = 0; if (t === 0) return this._last === 10 ? 1 : 0; for (let i = t - 1; i >= 0 && this._queue[i].char === 10; i--) r++; return r === t && this._last === 10 ? r + 1 : r; } endsWithCharAndNewline() { let t = this._queue, r = this._queueCursor; if (r !== 0) return t[r - 1].char !== 10 ? void 0 : r > 1 ? t[r - 2].char : this._last; } hasContent() { return this._queueCursor !== 0 || !!this._last; } exactSource(t, r) { if (!this._map) { r(); return; } this.source("start", t); let i = t.identifierName, n = this._sourcePosition; i && (this._canMarkIdName = !1, n.identifierName = i), r(), i && (this._canMarkIdName = !0, n.identifierName = void 0, n.identifierNamePos = void 0), this.source("end", t); } source(t, r) { this._map && this._normalizePosition(t, r, 0); } sourceWithOffset(t, r, i) { this._map && this._normalizePosition(t, r, i); } _normalizePosition(t, r, i) { let n = r[t], a = this._sourcePosition; n && (a.line = n.line, a.column = Math.max(n.column + i, 0), a.filename = r.filename); } getCurrentColumn() { let t = this._queue, r = this._queueCursor, i = -1, n = 0; for (let a = 0; a < r; a++) { let o = t[a]; o.char === 10 && (i = n), n += o.repeat; } return i === -1 ? this._position.column + n : n - 1 - i; } getCurrentLine() { let t = 0, r = this._queue; for (let i = 0; i < this._queueCursor; i++) r[i].char === 10 && t++; return this._position.line + t; } }; p0.default = sw; }); // ../node_modules/@babel/generator/lib/node/whitespace.js var S5 = E((m0) => { "use strict"; Object.defineProperty(m0, "__esModule", { value: !0 }); m0.nodes = void 0; var LOe = $e(), { FLIPPED_ALIAS_KEYS: qOe, isArrayExpression: UOe, isAssignmentExpression: v5, isBinary: E5, isBlockStatement: WOe, isCallExpression: x5, isFunction: Kd, isIdentifier: h0, isLiteral: $Oe, isMemberExpression: aw, isObjectExpression: VOe, isOptionalCallExpression: HOe, isOptionalMemberExpression: KOe, isStringLiteral: zOe } = LOe; function Gl(e, t) { return e && (aw(e) || KOe(e) ? (Gl(e.object, t), e.computed && Gl(e.property, t)) : E5(e) || v5(e) ? (Gl(e.left, t), Gl(e.right, t)) : x5( e) || HOe(e) ? (t.hasCall = !0, Gl(e.callee, t)) : Kd(e) ? t.hasFunction = !0 : h0(e) && (t.hasHelper = t.hasHelper || e.callee && Vs(e. callee))), t; } s(Gl, "crawlInternal"); function D5(e) { return Gl(e, { hasCall: !1, hasFunction: !1, hasHelper: !1 }); } s(D5, "crawl"); function Vs(e) { return e ? aw(e) ? Vs(e.object) || Vs(e.property) : h0(e) ? e.name === "require" || e.name.charCodeAt(0) === 95 : x5(e) ? Vs(e.callee) : E5(e) || v5(e) ? h0(e.left) && Vs(e.left) || Vs(e.right) : !1 : !1; } s(Vs, "isHelper"); function GOe(e) { return $Oe(e) || VOe(e) || UOe(e) || h0(e) || aw(e); } s(GOe, "isType"); var iu = m0.nodes = { AssignmentExpression(e) { let t = D5(e.right); if (t.hasCall && t.hasHelper || t.hasFunction) return t.hasFunction ? 3 : 2; }, SwitchCase(e, t) { return (e.consequent.length || t.cases[0] === e ? 1 : 0) | (!e.consequent.length && t.cases[t.cases.length - 1] === e ? 2 : 0); }, LogicalExpression(e) { if (Kd(e.left) || Kd(e.right)) return 2; }, Literal(e) { if (zOe(e) && e.value === "use strict") return 2; }, CallExpression(e) { if (Kd(e.callee) || Vs(e)) return 3; }, OptionalCallExpression(e) { if (Kd(e.callee)) return 3; }, VariableDeclaration(e) { for (let t = 0; t < e.declarations.length; t++) { let r = e.declarations[t], i = Vs(r.id) && !GOe(r.init); if (!i && r.init) { let n = D5(r.init); i = Vs(r.init) && n.hasCall || n.hasFunction; } if (i) return 3; } }, IfStatement(e) { if (WOe(e.consequent)) return 3; } }; iu.ObjectProperty = iu.ObjectTypeProperty = iu.ObjectMethod = function(e, t) { if (t.properties[0] === e) return 1; }; iu.ObjectTypeCallProperty = function(e, t) { var r; if (t.callProperties[0] === e && !((r = t.properties) != null && r.length)) return 1; }; iu.ObjectTypeIndexer = function(e, t) { var r, i; if (t.indexers[0] === e && !((r = t.properties) != null && r.length) && !((i = t.callProperties) != null && i.length)) return 1; }; iu.ObjectTypeInternalSlot = function(e, t) { var r, i, n; if (t.internalSlots[0] === e && !((r = t.properties) != null && r.length) && !((i = t.callProperties) != null && i.length) && !((n = t.indexers) != null && n.length)) return 1; }; [["Function", !0], ["Class", !0], ["Loop", !0], ["LabeledStatement", !0], ["SwitchStatement", !0], ["TryStatement", !0]].forEach(function([ e, t]) { [e].concat(qOe[e] || []).forEach(function(r) { let i = t ? 3 : 0; iu[r] = () => i; }); }); }); // ../node_modules/@babel/generator/lib/node/parentheses.js var I5 = E((ut) => { "use strict"; Object.defineProperty(ut, "__esModule", { value: !0 }); ut.AssignmentExpression = w3e; ut.Binary = _5; ut.BinaryExpression = v3e; ut.ClassExpression = S3e; ut.ArrowFunctionExpression = ut.ConditionalExpression = F5; ut.DoExpression = l3e; ut.FunctionExpression = T3e; ut.FunctionTypeAnnotation = a3e; ut.Identifier = _3e; ut.LogicalExpression = A3e; ut.NullableTypeAnnotation = s3e; ut.ObjectExpression = u3e; ut.OptionalIndexedAccessType = f3e; ut.OptionalCallExpression = ut.OptionalMemberExpression = C3e; ut.SequenceExpression = E3e; ut.TSSatisfiesExpression = ut.TSAsExpression = d3e; ut.TSConditionalType = p3e; ut.TSConstructorType = ut.TSFunctionType = D3e; ut.TSInferType = y3e; ut.TSInstantiationExpression = b3e; ut.TSIntersectionType = m3e; ut.UnaryLike = ut.TSTypeAssertion = P5; ut.TSTypeOperator = g3e; ut.TSUnionType = h3e; ut.IntersectionTypeAnnotation = ut.UnionTypeAnnotation = c3e; ut.UpdateExpression = o3e; ut.AwaitExpression = ut.YieldExpression = x3e; var JOe = $e(), en = $a(), { isArrayTypeAnnotation: XOe, isBinaryExpression: YOe, isCallExpression: ZOe, isForOfStatement: QOe, isIndexedAccessType: e3e, isMemberExpression: w5, isObjectPattern: t3e, isOptionalMemberExpression: r3e, isYieldExpression: i3e, isStatement: n3e } = JOe, T5 = /* @__PURE__ */ new Map([["||", 0], ["??", 0], ["|>", 0], ["&&", 1], ["|", 2], ["^", 3], ["&", 4], ["==", 5], ["===", 5], ["\ !=", 5], ["!==", 5], ["<", 6], [">", 6], ["<=", 6], [">=", 6], ["in", 6], ["instanceof", 6], [">>", 7], ["<<", 7], [">>>", 7], ["+", 8], ["-", 8], ["*", 9], ["/", 9], ["%", 9], ["**", 10]]); function C5(e, t) { if (t === "BinaryExpression" || t === "LogicalExpression") return T5.get(e.operator); if (t === "TSAsExpression" || t === "TSSatisfiesExpression") return T5.get("in"); } s(C5, "getBinaryPrecedence"); function ow(e) { return e === "TSAsExpression" || e === "TSSatisfiesExpression" || e === "TSTypeAssertion"; } s(ow, "isTSTypeExpression"); var y0 = /* @__PURE__ */ s((e, t) => { let r = t.type; return (r === "ClassDeclaration" || r === "ClassExpression") && t.superClass === e; }, "isClassExtendsClause"), g0 = /* @__PURE__ */ s((e, t) => { let r = t.type; return (r === "MemberExpression" || r === "OptionalMemberExpression") && t.object === e || (r === "CallExpression" || r === "OptionalCal\ lExpression" || r === "NewExpression") && t.callee === e || r === "TaggedTemplateExpression" && t.tag === e || r === "TSNonNullExpression"; }, "hasPostfixPart"); function s3e(e, t) { return XOe(t); } s(s3e, "NullableTypeAnnotation"); function a3e(e, t, r) { let i = t.type; return i === "UnionTypeAnnotation" || i === "IntersectionTypeAnnotation" || i === "ArrayTypeAnnotation" || !!(r & en.TokenContext.arrowFlowReturnType); } s(a3e, "FunctionTypeAnnotation"); function o3e(e, t) { return g0(e, t) || y0(e, t); } s(o3e, "UpdateExpression"); function A5(e) { return !!(e & (en.TokenContext.expressionStatement | en.TokenContext.arrowBody)); } s(A5, "needsParenBeforeExpressionBrace"); function u3e(e, t, r) { return A5(r); } s(u3e, "ObjectExpression"); function l3e(e, t, r) { return !e.async && !!(r & en.TokenContext.expressionStatement); } s(l3e, "DoExpression"); function _5(e, t) { let r = t.type; if (e.type === "BinaryExpression" && e.operator === "**" && r === "BinaryExpression" && t.operator === "**") return t.left === e; if (y0(e, t) || g0(e, t) || r === "UnaryExpression" || r === "SpreadElement" || r === "AwaitExpression") return !0; let i = C5(t, r); if (i != null) { let n = C5(e, e.type); if (i === n && r === "BinaryExpression" && t.right === e || i > n) return !0; } } s(_5, "Binary"); function c3e(e, t) { let r = t.type; return r === "ArrayTypeAnnotation" || r === "NullableTypeAnnotation" || r === "IntersectionTypeAnnotation" || r === "UnionTypeAnnotation"; } s(c3e, "UnionTypeAnnotation"); function f3e(e, t) { return e3e(t) && t.objectType === e; } s(f3e, "OptionalIndexedAccessType"); function d3e(e, t) { return (t.type === "AssignmentExpression" || t.type === "AssignmentPattern") && t.left === e || t.type === "BinaryExpression" && (t.operator === "|" || t.operator === "&") && e === t.left ? !0 : _5(e, t); } s(d3e, "TSAsExpression"); function p3e(e, t) { let r = t.type; return r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType" || r === "TSTypeOperator" || r === "TSTypeParameter" || (r === "TSIntersectionType" || r === "TSUnionType") && t.types[0] === e || r === "TSConditionalType" && (t.checkType === e || t.extendsType === e); } s(p3e, "TSConditionalType"); function h3e(e, t) { let r = t.type; return r === "TSIntersectionType" || r === "TSTypeOperator" || r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType"; } s(h3e, "TSUnionType"); function m3e(e, t) { let r = t.type; return r === "TSTypeOperator" || r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType"; } s(m3e, "TSIntersectionType"); function y3e(e, t) { let r = t.type; return !!(r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType" || e.typeParameter.constraint && (r === "TSIntersectionType" || r === "TSUnionType") && t.types[0] === e); } s(y3e, "TSInferType"); function g3e(e, t) { let r = t.type; return r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType"; } s(g3e, "TSTypeOperator"); function b3e(e, t) { let r = t.type; return (r === "CallExpression" || r === "OptionalCallExpression" || r === "NewExpression" || r === "TSInstantiationExpression") && !!t.typeParameters; } s(b3e, "TSInstantiationExpression"); function D3e(e, t) { let r = t.type; return r === "TSIntersectionType" || r === "TSUnionType" || r === "TSTypeOperator" || r === "TSOptionalType" || r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSConditionalType" && (t.checkType === e || t.extendsType === e); } s(D3e, "TSFunctionType"); function v3e(e, t, r, i) { return e.operator === "in" && i; } s(v3e, "BinaryExpression"); function E3e(e, t) { let r = t.type; return r === "SequenceExpression" || r === "ParenthesizedExpression" || r === "MemberExpression" && t.property === e || r === "OptionalM\ emberExpression" && t.property === e || r === "TemplateLiteral" ? !1 : r === "ClassDeclaration" ? !0 : r === "ForOfStatement" ? t.right === e : r === "ExportDefaultDeclaration" ? !0 : !n3e(t); } s(E3e, "SequenceExpression"); function x3e(e, t) { let r = t.type; return r === "BinaryExpression" || r === "LogicalExpression" || r === "UnaryExpression" || r === "SpreadElement" || g0(e, t) || r === "A\ waitExpression" && i3e(e) || r === "ConditionalExpression" && e === t.test || y0(e, t) || ow(r); } s(x3e, "YieldExpression"); function S3e(e, t, r) { return !!(r & (en.TokenContext.expressionStatement | en.TokenContext.exportDefault)); } s(S3e, "ClassExpression"); function P5(e, t) { return g0(e, t) || YOe(t) && t.operator === "**" && t.left === e || y0(e, t); } s(P5, "UnaryLike"); function T3e(e, t, r) { return !!(r & (en.TokenContext.expressionStatement | en.TokenContext.exportDefault)); } s(T3e, "FunctionExpression"); function F5(e, t) { let r = t.type; return r === "UnaryExpression" || r === "SpreadElement" || r === "BinaryExpression" || r === "LogicalExpression" || r === "ConditionalEx\ pression" && t.test === e || r === "AwaitExpression" || ow(r) ? !0 : P5(e, t); } s(F5, "ConditionalExpression"); function C3e(e, t) { return ZOe(t) && t.callee === e || w5(t) && t.object === e; } s(C3e, "OptionalMemberExpression"); function w3e(e, t, r) { return A5(r) && t3e(e.left) ? !0 : F5(e, t); } s(w3e, "AssignmentExpression"); function A3e(e, t) { let r = t.type; if (ow(r)) return !0; if (r !== "LogicalExpression") return !1; switch (e.operator) { case "||": return t.operator === "??" || t.operator === "&&"; case "&&": return t.operator === "??"; case "??": return t.operator !== "??"; } } s(A3e, "LogicalExpression"); function _3e(e, t, r, i, n) { var a; let o = t.type; if ((a = e.extra) != null && a.parenthesized && o === "AssignmentExpression" && t.left === e) { let u = t.right.type; if ((u === "FunctionExpression" || u === "ClassExpression") && t.right.id == null) return !0; } return n && n(e) !== e.name ? !1 : e.name === "let" ? (w5(t, { object: e, computed: !0 }) || r3e(t, { object: e, computed: !0, optional: !1 })) && r & (en.TokenContext.expressionStatement | en.TokenContext.forHead | en.TokenContext.forInHead) ? !0 : !!(r & en.TokenContext.forOfHead) : e.name === "async" && QOe(t, { left: e, await: !1 }); } s(_3e, "Identifier"); }); // ../node_modules/@babel/generator/lib/node/index.js var $a = E((Hs) => { "use strict"; Object.defineProperty(Hs, "__esModule", { value: !0 }); Hs.TokenContext = void 0; Hs.isLastChild = V3e; Hs.needsParens = $3e; Hs.needsWhitespace = lw; Hs.needsWhitespaceAfter = W3e; Hs.needsWhitespaceBefore = U3e; var P3e = S5(), F3e = I5(), I3e = $e(), { FLIPPED_ALIAS_KEYS: O3e, VISITOR_KEYS: k3e, isCallExpression: O5, isDecorator: B3e, isExpressionStatement: N3e, isMemberExpression: M3e, isNewExpression: R3e, isParenthesizedExpression: j3e } = I3e, aft = Hs.TokenContext = { expressionStatement: 1, arrowBody: 2, exportDefault: 4, forHead: 8, forInHead: 16, forOfHead: 32, arrowFlowReturnType: 64 }; function k5(e) { let t = /* @__PURE__ */ new Map(); function r(i, n) { let a = t.get(i); t.set(i, a ? function(o, u, l, c, f) { var m; return (m = a(o, u, l, c, f)) != null ? m : n(o, u, l, c, f); } : n); } s(r, "add"); for (let i of Object.keys(e)) { let n = O3e[i]; if (n) for (let a of n) r(a, e[i]); else r(i, e[i]); } return t; } s(k5, "expandAliases"); var L3e = k5(F3e), q3e = k5(P3e.nodes); function B5(e) { return O5(e) ? !0 : M3e(e) && B5(e.object); } s(B5, "isOrHasCallExpression"); function lw(e, t, r) { var i; if (!e) return !1; N3e(e) && (e = e.expression); let n = (i = q3e.get(e.type)) == null ? void 0 : i(e, t); return typeof n == "number" ? (n & r) !== 0 : !1; } s(lw, "needsWhitespace"); function U3e(e, t) { return lw(e, t, 1); } s(U3e, "needsWhitespaceBefore"); function W3e(e, t) { return lw(e, t, 2); } s(W3e, "needsWhitespaceAfter"); function $3e(e, t, r, i, n) { var a; return t ? R3e(t) && t.callee === e && B5(e) ? !0 : B3e(t) ? !uw(e) && !(O5(e) && uw(e.callee)) && !j3e(e) : (a = L3e.get(e.type)) == null ? void 0 : a(e, t, r, i, n) : !1; } s($3e, "needsParens"); function uw(e) { switch (e.type) { case "Identifier": return !0; case "MemberExpression": return !e.computed && e.property.type === "Identifier" && uw(e.object); default: return !1; } } s(uw, "isDecoratorMemberExpression"); function V3e(e, t) { let r = k3e[e.type]; for (let i = r.length - 1; i >= 0; i--) { let n = e[r[i]]; if (n === t) return !0; if (Array.isArray(n)) { let a = n.length - 1; for (; a >= 0 && n[a] === null; ) a--; return a >= 0 && n[a] === t; } else if (n) return !1; } return !1; } s(V3e, "isLastChild"); }); // ../node_modules/@babel/generator/lib/token-map.js var N5 = E((b0) => { "use strict"; Object.defineProperty(b0, "__esModule", { value: !0 }); b0.TokenMap = void 0; var H3e = $e(), { traverseFast: K3e, VISITOR_KEYS: z3e } = H3e, cw = class { static { s(this, "TokenMap"); } constructor(t, r, i) { this._tokens = void 0, this._source = void 0, this._nodesToTokenIndexes = /* @__PURE__ */ new Map(), this._nodesOccurrencesCountCache = /* @__PURE__ */ new Map(), this._tokensCache = /* @__PURE__ */ new Map(), this._tokens = r, this._source = i, K3e(t, (n) => { let a = this._getTokensIndexesOfNode(n); a.length > 0 && this._nodesToTokenIndexes.set(n, a); }), this._tokensCache = null; } has(t) { return this._nodesToTokenIndexes.has(t); } getIndexes(t) { return this._nodesToTokenIndexes.get(t); } find(t, r) { let i = this._nodesToTokenIndexes.get(t); if (i) for (let n = 0; n < i.length; n++) { let a = i[n], o = this._tokens[a]; if (r(o, a)) return o; } return null; } findLastIndex(t, r) { let i = this._nodesToTokenIndexes.get(t); if (i) for (let n = i.length - 1; n >= 0; n--) { let a = i[n], o = this._tokens[a]; if (r(o, a)) return a; } return -1; } findMatching(t, r, i = 0) { let n = this._nodesToTokenIndexes.get(t); if (n) { let a = 0, o = i; if (o > 1) { let u = this._nodesOccurrencesCountCache.get(t); u && u.test === r && u.count < o && (a = u.i + 1, i -= u.count + 1); } for (; a < n.length; a++) { let u = this._tokens[n[a]]; if (this.matchesOriginal(u, r)) { if (i === 0) return o > 0 && this._nodesOccurrencesCountCache.set(t, { test: r, count: o, i: a }), u; i--; } } } return null; } matchesOriginal(t, r) { return t.end - t.start !== r.length ? !1 : t.value != null ? t.value === r : this._source.startsWith(r, t.start); } startMatches(t, r) { let i = this._nodesToTokenIndexes.get(t); if (!i) return !1; let n = this._tokens[i[0]]; return n.start !== t.start ? !1 : this.matchesOriginal(n, r); } endMatches(t, r) { let i = this._nodesToTokenIndexes.get(t); if (!i) return !1; let n = this._tokens[i[i.length - 1]]; return n.end !== t.end ? !1 : this.matchesOriginal(n, r); } _getTokensIndexesOfNode(t) { if (t.start == null || t.end == null) return []; let { first: r, last: i } = this._findTokensOfNode(t, 0, this._tokens.length - 1), n = r, a = G3e(t); (t.type === "ExportNamedDeclaration" || t.type === "ExportDefaultDeclaration") && t.declaration && t.declaration.type === "ClassDeclar\ ation" && a.next(); let o = []; for (let u of a) { if (u == null || u.start == null || u.end == null) continue; let l = this._findTokensOfNode(u, n, i), c = l.first; for (let f = n; f < c; f++) o.push(f); n = l.last + 1; } for (let u = n; u <= i; u++) o.push(u); return o; } _findTokensOfNode(t, r, i) { let n = this._tokensCache.get(t); if (n) return n; let a = this._findFirstTokenOfNode(t.start, r, i), o = this._findLastTokenOfNode(t.end, a, i); return this._tokensCache.set(t, { first: a, last: o }), { first: a, last: o }; } _findFirstTokenOfNode(t, r, i) { for (; r <= i; ) { let n = i + r >> 1; if (t < this._tokens[n].start) i = n - 1; else if (t > this._tokens[n].start) r = n + 1; else return n; } return r; } _findLastTokenOfNode(t, r, i) { for (; r <= i; ) { let n = i + r >> 1; if (t < this._tokens[n].end) i = n - 1; else if (t > this._tokens[n].end) r = n + 1; else return n; } return i; } }; b0.TokenMap = cw; function* G3e(e) { if (e.type === "TemplateLiteral") { yield e.quasis[0]; for (let r = 1; r < e.quasis.length; r++) yield e.expressions[r - 1], yield e.quasis[r]; return; } let t = z3e[e.type]; for (let r of t) { let i = e[r]; i && (Array.isArray(i) ? yield* i : yield i); } } s(G3e, "childrenIterator"); }); // ../node_modules/@babel/generator/lib/generators/template-literals.js var M5 = E((Jl) => { "use strict"; Object.defineProperty(Jl, "__esModule", { value: !0 }); Jl.TaggedTemplateExpression = J3e; Jl.TemplateElement = X3e; Jl.TemplateLiteral = Z3e; Jl._printTemplate = Y3e; function J3e(e) { this.print(e.tag), this.print(e.typeParameters), this.print(e.quasi); } s(J3e, "TaggedTemplateExpression"); function X3e() { throw new Error("TemplateElement printing is handled in TemplateLiteral"); } s(X3e, "TemplateElement"); function Y3e(e, t) { let r = e.quasis, i = "`"; for (let n = 0; n < r.length - 1; n++) if (i += r[n].value.raw, this.token(i + "${", !0), this.print(t[n]), i = "}", this.tokenMap) { let a = this.tokenMap.findMatching(e, "}", n); a && this._catchUpTo(a.loc.start); } i += r[r.length - 1].value.raw, this.token(i + "`", !0); } s(Y3e, "_printTemplate"); function Z3e(e) { this._printTemplate(e, e.expressions); } s(Z3e, "TemplateLiteral"); }); // ../node_modules/@babel/generator/lib/generators/expressions.js var j5 = E((Pt) => { "use strict"; Object.defineProperty(Pt, "__esModule", { value: !0 }); Pt.LogicalExpression = Pt.BinaryExpression = Pt.AssignmentExpression = Tke; Pt.AssignmentPattern = Ske; Pt.AwaitExpression = Dke; Pt.BindExpression = Cke; Pt.CallExpression = gke; Pt.ConditionalExpression = uke; Pt.Decorator = hke; Pt.DoExpression = ske; Pt.EmptyStatement = Eke; Pt.ExpressionStatement = xke; Pt.Import = bke; Pt.MemberExpression = wke; Pt.MetaProperty = Ake; Pt.ModuleExpression = Fke; Pt.NewExpression = lke; Pt.OptionalCallExpression = yke; Pt.OptionalMemberExpression = mke; Pt.ParenthesizedExpression = ake; Pt.PrivateName = _ke; Pt.SequenceExpression = cke; Pt.Super = dke; Pt.ThisExpression = fke; Pt.UnaryExpression = nke; Pt.UpdateExpression = oke; Pt.V8IntrinsicIdentifier = Pke; Pt.YieldExpression = vke; Pt._shouldPrintDecoratorsBeforeExport = pke; var Q3e = $e(), eke = $a(), { isCallExpression: tke, isLiteral: R5, isMemberExpression: fw, isNewExpression: rke, isPattern: ike } = Q3e; function nke(e) { let { operator: t } = e; t === "void" || t === "delete" || t === "typeof" || t === "throw" ? (this.word(t), this.space()) : this.token(t), this.print(e.argument); } s(nke, "UnaryExpression"); function ske(e) { e.async && (this.word("async", !0), this.space()), this.word("do"), this.space(), this.print(e.body); } s(ske, "DoExpression"); function ake(e) { this.tokenChar(40); let t = this.enterDelimited(); this.print(e.expression), t(), this.rightParens(e); } s(ake, "ParenthesizedExpression"); function oke(e) { e.prefix ? (this.token(e.operator), this.print(e.argument)) : (this.print(e.argument, !0), this.token(e.operator)); } s(oke, "UpdateExpression"); function uke(e) { this.print(e.test), this.space(), this.tokenChar(63), this.space(), this.print(e.consequent), this.space(), this.tokenChar(58), this.space(), this.print(e.alternate); } s(uke, "ConditionalExpression"); function lke(e, t) { if (this.word("new"), this.space(), this.print(e.callee), this.format.minified && e.arguments.length === 0 && !e.optional && !tke(t, { callee: e }) && !fw(t) && !rke(t) || (this.print(e.typeArguments), this.print(e.typeParameters), e.optional && this.token("?."), e.arguments.length === 0 && this.tokenMap && !this.tokenMap.endMatches(e, ")"))) return; this.tokenChar(40); let r = this.enterDelimited(); this.printList(e.arguments, this.shouldPrintTrailingComma(")")), r(), this.rightParens(e); } s(lke, "NewExpression"); function cke(e) { this.printList(e.expressions); } s(cke, "SequenceExpression"); function fke() { this.word("this"); } s(fke, "ThisExpression"); function dke() { this.word("super"); } s(dke, "Super"); function pke(e) { return typeof this.format.decoratorsBeforeExport == "boolean" ? this.format.decoratorsBeforeExport : typeof e.start == "number" && e.start === e.declaration.start; } s(pke, "_shouldPrintDecoratorsBeforeExport"); function hke(e) { this.tokenChar(64), this.print(e.expression), this.newline(); } s(hke, "Decorator"); function mke(e) { let { computed: t } = e, { optional: r, property: i } = e; if (this.print(e.object), !t && fw(i)) throw new TypeError("Got a MemberExpression for MemberExpression property"); R5(i) && typeof i.value == "number" && (t = !0), r && this.token("?."), t ? (this.tokenChar(91), this.print(i), this.tokenChar(93)) : (r || this.tokenChar(46), this.print(i)); } s(mke, "OptionalMemberExpression"); function yke(e) { this.print(e.callee), this.print(e.typeParameters), e.optional && this.token("?."), this.print(e.typeArguments), this.tokenChar(40); let t = this.enterDelimited(); this.printList(e.arguments), t(), this.rightParens(e); } s(yke, "OptionalCallExpression"); function gke(e) { this.print(e.callee), this.print(e.typeArguments), this.print(e.typeParameters), this.tokenChar(40); let t = this.enterDelimited(); this.printList(e.arguments, this.shouldPrintTrailingComma(")")), t(), this.rightParens(e); } s(gke, "CallExpression"); function bke() { this.word("import"); } s(bke, "Import"); function Dke(e) { this.word("await"), e.argument && (this.space(), this.printTerminatorless(e.argument)); } s(Dke, "AwaitExpression"); function vke(e) { this.word("yield", !0), e.delegate ? (this.tokenChar(42), e.argument && (this.space(), this.print(e.argument))) : e.argument && (this.space(), this.printTerminatorless(e.argument)); } s(vke, "YieldExpression"); function Eke() { this.semicolon(!0); } s(Eke, "EmptyStatement"); function xke(e) { this.tokenContext |= eke.TokenContext.expressionStatement, this.print(e.expression), this.semicolon(); } s(xke, "ExpressionStatement"); function Ske(e) { this.print(e.left), (e.left.type === "Identifier" || ike(e.left)) && (e.left.optional && this.tokenChar(63), this.print(e.left.typeAnnotation)), this.space(), this.tokenChar(61), this.space(), this.print(e.right); } s(Ske, "AssignmentPattern"); function Tke(e) { this.print(e.left), this.space(), e.operator === "in" || e.operator === "instanceof" ? this.word(e.operator) : (this.token(e.operator), this. _endsWithDiv = e.operator === "/"), this.space(), this.print(e.right); } s(Tke, "AssignmentExpression"); function Cke(e) { this.print(e.object), this.token("::"), this.print(e.callee); } s(Cke, "BindExpression"); function wke(e) { if (this.print(e.object), !e.computed && fw(e.property)) throw new TypeError("Got a MemberExpression for MemberExpression property"); let t = e.computed; if (R5(e.property) && typeof e.property.value == "number" && (t = !0), t) { let r = this.enterDelimited(); this.tokenChar(91), this.print(e.property), this.tokenChar(93), r(); } else this.tokenChar(46), this.print(e.property); } s(wke, "MemberExpression"); function Ake(e) { this.print(e.meta), this.tokenChar(46), this.print(e.property); } s(Ake, "MetaProperty"); function _ke(e) { this.tokenChar(35), this.print(e.id); } s(_ke, "PrivateName"); function Pke(e) { this.tokenChar(37), this.word(e.name); } s(Pke, "V8IntrinsicIdentifier"); function Fke(e) { this.word("module", !0), this.space(), this.tokenChar(123), this.indent(); let { body: t } = e; (t.body.length || t.directives.length) && this.newline(), this.print(t), this.dedent(), this.rightBrace(e); } s(Fke, "ModuleExpression"); }); // ../node_modules/@babel/generator/lib/generators/statements.js var W5 = E((or) => { "use strict"; Object.defineProperty(or, "__esModule", { value: !0 }); or.BreakStatement = qke; or.CatchClause = Kke; or.ContinueStatement = Uke; or.DebuggerStatement = Jke; or.DoWhileStatement = Lke; or.ForOfStatement = or.ForInStatement = void 0; or.ForStatement = Rke; or.IfStatement = Mke; or.LabeledStatement = Vke; or.ReturnStatement = Wke; or.SwitchCase = Gke; or.SwitchStatement = zke; or.ThrowStatement = $ke; or.TryStatement = Hke; or.VariableDeclaration = Xke; or.VariableDeclarator = Yke; or.WhileStatement = jke; or.WithStatement = Nke; var Ike = $e(), dw = $a(), { isFor: L5, isForStatement: Oke, isIfStatement: kke, isStatement: Bke } = Ike; function Nke(e) { this.word("with"), this.space(), this.tokenChar(40), this.print(e.object), this.tokenChar(41), this.printBlock(e); } s(Nke, "WithStatement"); function Mke(e) { this.word("if"), this.space(), this.tokenChar(40), this.print(e.test), this.tokenChar(41), this.space(); let t = e.alternate && kke(q5(e.consequent)); t && (this.tokenChar(123), this.newline(), this.indent()), this.printAndIndentOnComments(e.consequent), t && (this.dedent(), this.newline(), this.tokenChar(125)), e.alternate && (this.endsWith(125) && this.space(), this.word("else"), this.space(), this.printAndIndentOnComments( e.alternate)); } s(Mke, "IfStatement"); function q5(e) { let { body: t } = e; return Bke(t) === !1 ? e : q5(t); } s(q5, "getLastStatement"); function Rke(e) { this.word("for"), this.space(), this.tokenChar(40); { let t = this.enterForStatementInit(); this.tokenContext |= dw.TokenContext.forHead, this.print(e.init), t(); } this.tokenChar(59), e.test && (this.space(), this.print(e.test)), this.token(";", !1, 1), e.update && (this.space(), this.print(e.update)), this.tokenChar(41), this.printBlock(e); } s(Rke, "ForStatement"); function jke(e) { this.word("while"), this.space(), this.tokenChar(40), this.print(e.test), this.tokenChar(41), this.printBlock(e); } s(jke, "WhileStatement"); function U5(e) { this.word("for"), this.space(); let t = e.type === "ForOfStatement"; t && e.await && (this.word("await"), this.space()), this.noIndentInnerCommentsHere(), this.tokenChar(40); { let r = t ? null : this.enterForStatementInit(); this.tokenContext |= t ? dw.TokenContext.forOfHead : dw.TokenContext.forInHead, this.print(e.left), r?.(); } this.space(), this.word(t ? "of" : "in"), this.space(), this.print(e.right), this.tokenChar(41), this.printBlock(e); } s(U5, "ForXStatement"); var mft = or.ForInStatement = U5, yft = or.ForOfStatement = U5; function Lke(e) { this.word("do"), this.space(), this.print(e.body), this.space(), this.word("while"), this.space(), this.tokenChar(40), this.print(e.test), this.tokenChar(41), this.semicolon(); } s(Lke, "DoWhileStatement"); function D0(e, t) { t && (e.space(), e.printTerminatorless(t)), e.semicolon(); } s(D0, "printStatementAfterKeyword"); function qke(e) { this.word("break"), D0(this, e.label); } s(qke, "BreakStatement"); function Uke(e) { this.word("continue"), D0(this, e.label); } s(Uke, "ContinueStatement"); function Wke(e) { this.word("return"), D0(this, e.argument); } s(Wke, "ReturnStatement"); function $ke(e) { this.word("throw"), D0(this, e.argument); } s($ke, "ThrowStatement"); function Vke(e) { this.print(e.label), this.tokenChar(58), this.space(), this.print(e.body); } s(Vke, "LabeledStatement"); function Hke(e) { this.word("try"), this.space(), this.print(e.block), this.space(), e.handlers ? this.print(e.handlers[0]) : this.print(e.handler), e.finalizer && (this.space(), this.word("finally"), this.space(), this.print(e.finalizer)); } s(Hke, "TryStatement"); function Kke(e) { this.word("catch"), this.space(), e.param && (this.tokenChar(40), this.print(e.param), this.print(e.param.typeAnnotation), this.tokenChar( 41), this.space()), this.print(e.body); } s(Kke, "CatchClause"); function zke(e) { this.word("switch"), this.space(), this.tokenChar(40), this.print(e.discriminant), this.tokenChar(41), this.space(), this.tokenChar(123), this.printSequence(e.cases, !0, void 0, /* @__PURE__ */ s(function(r, i) { if (!r && e.cases[e.cases.length - 1] === i) return -1; }, "addNewlines")), this.rightBrace(e); } s(zke, "SwitchStatement"); function Gke(e) { e.test ? (this.word("case"), this.space(), this.print(e.test), this.tokenChar(58)) : (this.word("default"), this.tokenChar(58)), e.consequent. length && (this.newline(), this.printSequence(e.consequent, !0)); } s(Gke, "SwitchCase"); function Jke() { this.word("debugger"), this.semicolon(); } s(Jke, "DebuggerStatement"); function Xke(e, t) { e.declare && (this.word("declare"), this.space()); let { kind: r } = e; r === "await using" ? (this.word("await"), this.space(), this.word("using", !0)) : this.word(r, r === "using"), this.space(); let i = !1; if (!L5(t)) for (let n of e.declarations) n.init && (i = !0); if (this.printList(e.declarations, void 0, void 0, e.declarations.length > 1, i ? function(n) { this.token(",", !1, n), this.newline(); } : void 0), L5(t)) { if (Oke(t)) { if (t.init === e) return; } else if (t.left === e) return; } this.semicolon(); } s(Xke, "VariableDeclaration"); function Yke(e) { this.print(e.id), e.definite && this.tokenChar(33), this.print(e.id.typeAnnotation), e.init && (this.space(), this.tokenChar(61), this.space(), this.print(e.init)); } s(Yke, "VariableDeclarator"); }); // ../node_modules/@babel/generator/lib/generators/classes.js var $5 = E((tn) => { "use strict"; Object.defineProperty(tn, "__esModule", { value: !0 }); tn.ClassAccessorProperty = sBe; tn.ClassBody = rBe; tn.ClassExpression = tn.ClassDeclaration = tBe; tn.ClassMethod = oBe; tn.ClassPrivateMethod = uBe; tn.ClassPrivateProperty = aBe; tn.ClassProperty = nBe; tn.StaticBlock = cBe; tn._classMethodHead = lBe; var Zke = $e(), { isExportDefaultDeclaration: Qke, isExportNamedDeclaration: eBe } = Zke; function tBe(e, t) { (!(Qke(t) || eBe(t)) || !this._shouldPrintDecoratorsBeforeExport(t)) && this.printJoin(e.decorators), e.declare && (this.word("declare"), this.space()), e.abstract && (this.word("abstract"), this.space()), this.word("class"), e.id && (this.space(), this.print(e.id)), this.print( e.typeParameters), e.superClass && (this.space(), this.word("extends"), this.space(), this.print(e.superClass), this.print(e.superTypeParameters)), e.implements && (this.space(), this.word("implements"), this.space(), this.printList(e.implements)), this.space(), this.print(e.body); } s(tBe, "ClassDeclaration"); function rBe(e) { if (this.tokenChar(123), e.body.length === 0) this.tokenChar(125); else { this.newline(); let t = iBe(this, e); t?.(-1); let r = this.enterDelimited(); this.printJoin(e.body, !0, !0, t, !0), r(), this.endsWith(10) || this.newline(), this.rightBrace(e); } } s(rBe, "ClassBody"); function iBe(e, t) { if (!e.tokenMap || t.start == null || t.end == null) return null; let r = e.tokenMap.getIndexes(t); if (!r) return null; let i = 1, n = 0, a = 0, o = /* @__PURE__ */ s(() => { for (; a < t.body.length && t.body[a].start == null; ) a++; }, "advanceNextLocIndex"); return o(), (u) => { a <= u && (a = u + 1, o()); let l = a === t.body.length ? t.end : t.body[a].start, c; for (; i < r.length && e.tokenMap.matchesOriginal(c = e._tokens[r[i]], ";") && c.start < l; ) e.token(";", void 0, n++), i++; }; } s(iBe, "classBodyEmptySemicolonsPrinter"); function nBe(e) { if (this.printJoin(e.decorators), !e.static && !this.format.preserveFormat) { var t; let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line; r && this.catchUp(r); } this.tsPrintClassMemberModifiers(e), e.computed ? (this.tokenChar(91), this.print(e.key), this.tokenChar(93)) : (this._variance(e), this. print(e.key)), e.optional && this.tokenChar(63), e.definite && this.tokenChar(33), this.print(e.typeAnnotation), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon(); } s(nBe, "ClassProperty"); function sBe(e) { var t; this.printJoin(e.decorators); let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line; r && this.catchUp(r), this.tsPrintClassMemberModifiers(e), this.word("accessor", !0), this.space(), e.computed ? (this.tokenChar(91), this. print(e.key), this.tokenChar(93)) : (this._variance(e), this.print(e.key)), e.optional && this.tokenChar(63), e.definite && this.tokenChar( 33), this.print(e.typeAnnotation), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon(); } s(sBe, "ClassAccessorProperty"); function aBe(e) { this.printJoin(e.decorators), this.tsPrintClassMemberModifiers(e), this.print(e.key), e.optional && this.tokenChar(63), e.definite && this. tokenChar(33), this.print(e.typeAnnotation), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon(); } s(aBe, "ClassPrivateProperty"); function oBe(e) { this._classMethodHead(e), this.space(), this.print(e.body); } s(oBe, "ClassMethod"); function uBe(e) { this._classMethodHead(e), this.space(), this.print(e.body); } s(uBe, "ClassPrivateMethod"); function lBe(e) { if (this.printJoin(e.decorators), !this.format.preserveFormat) { var t; let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line; r && this.catchUp(r); } this.tsPrintClassMemberModifiers(e), this._methodHead(e); } s(lBe, "_classMethodHead"); function cBe(e) { this.word("static"), this.space(), this.tokenChar(123), e.body.length === 0 ? this.tokenChar(125) : (this.newline(), this.printSequence( e.body, !0), this.rightBrace(e)); } s(cBe, "StaticBlock"); }); // ../node_modules/@babel/generator/lib/generators/methods.js var V5 = E((rn) => { "use strict"; Object.defineProperty(rn, "__esModule", { value: !0 }); rn.ArrowFunctionExpression = EBe; rn.FunctionDeclaration = rn.FunctionExpression = vBe; rn._functionHead = DBe; rn._methodHead = gBe; rn._param = yBe; rn._parameters = mBe; rn._params = hBe; rn._predicate = bBe; rn._shouldPrintArrowParamsParens = xBe; var fBe = $e(), dBe = $a(), { isIdentifier: pBe } = fBe; function hBe(e, t, r) { this.print(e.typeParameters); let i = SBe.call(this, t, r); i && this.sourceIdentifierName(i.name, i.pos), this.tokenChar(40), this._parameters(e.params, ")"); let n = e.type === "ArrowFunctionExpression"; this.print(e.returnType, n), this._noLineTerminator = n; } s(hBe, "_params"); function mBe(e, t) { let r = this.enterDelimited(), i = this.shouldPrintTrailingComma(t), n = e.length; for (let a = 0; a < n; a++) this._param(e[a]), (i || a < n - 1) && (this.token(",", null, a), this.space()); this.token(t), r(); } s(mBe, "_parameters"); function yBe(e) { this.printJoin(e.decorators), this.print(e), e.optional && this.tokenChar(63), this.print(e.typeAnnotation); } s(yBe, "_param"); function gBe(e) { let t = e.kind, r = e.key; (t === "get" || t === "set") && (this.word(t), this.space()), e.async && (this.word("async", !0), this.space()), (t === "method" || t === "init") && e.generator && this.tokenChar(42), e.computed ? (this.tokenChar(91), this.print(r), this.tokenChar(93)) : this.print(r), e.optional && this.tokenChar(63), this._params(e, e.computed && e.key.type !== "StringLiteral" ? void 0 : e.key, void 0); } s(gBe, "_methodHead"); function bBe(e, t) { e.predicate && (e.returnType || this.tokenChar(58), this.space(), this.print(e.predicate, t)); } s(bBe, "_predicate"); function DBe(e, t) { e.async && (this.word("async"), this.format.preserveFormat || (this._endsWithInnerRaw = !1), this.space()), this.word("function"), e.generator && (this.format.preserveFormat || (this._endsWithInnerRaw = !1), this.tokenChar(42)), this.space(), e.id && this.print(e.id), this._params( e, e.id, t), e.type !== "TSDeclareFunction" && this._predicate(e); } s(DBe, "_functionHead"); function vBe(e, t) { this._functionHead(e, t), this.space(), this.print(e.body); } s(vBe, "FunctionExpression"); function EBe(e, t) { e.async && (this.word("async", !0), this.space()), this._shouldPrintArrowParamsParens(e) ? this._params(e, void 0, t) : this.print(e.params[0], !0), this._predicate(e, !0), this.space(), this.printInnerComments(), this.token("=>"), this.space(), this.tokenContext |= dBe.TokenContext. arrowBody, this.print(e.body); } s(EBe, "ArrowFunctionExpression"); function xBe(e) { var t, r; if (e.params.length !== 1 || e.typeParameters || e.returnType || e.predicate) return !0; let i = e.params[0]; if (!pBe(i) || i.typeAnnotation || i.optional || (t = i.leadingComments) != null && t.length || (r = i.trailingComments) != null && r.length) return !0; if (this.tokenMap) { if (e.loc == null || this.tokenMap.findMatching(e, "(") !== null) return !0; let n = this.tokenMap.findMatching(e, "=>"); return n?.loc == null ? !0 : n.loc.start.line !== e.loc.start.line; } return !!this.format.retainLines; } s(xBe, "_shouldPrintArrowParamsParens"); function SBe(e, t) { let r = e; if (!r && t) { let l = t.type; l === "VariableDeclarator" ? r = t.id : l === "AssignmentExpression" || l === "AssignmentPattern" ? r = t.left : l === "ObjectProperty" || l === "ClassProperty" ? (!t.computed || t.key.type === "StringLiteral") && (r = t.key) : (l === "ClassPrivateProperty" || l === "Class\ AccessorProperty") && (r = t.key); } if (!r) return; let i; if (r.type === "Identifier") { var n, a; i = { pos: (n = r.loc) == null ? void 0 : n.start, name: ((a = r.loc) == null ? void 0 : a.identifierName) || r.name }; } else if (r.type === "PrivateName") { var o; i = { pos: (o = r.loc) == null ? void 0 : o.start, name: "#" + r.id.name }; } else if (r.type === "StringLiteral") { var u; i = { pos: (u = r.loc) == null ? void 0 : u.start, name: r.value }; } return i; } s(SBe, "_getFuncIdName"); }); // ../node_modules/@babel/generator/lib/generators/modules.js var pw = E((gi) => { "use strict"; Object.defineProperty(gi, "__esModule", { value: !0 }); gi.ExportAllDeclaration = RBe; gi.ExportDefaultDeclaration = LBe; gi.ExportDefaultSpecifier = kBe; gi.ExportNamedDeclaration = jBe; gi.ExportNamespaceSpecifier = NBe; gi.ExportSpecifier = BBe; gi.ImportAttribute = UBe; gi.ImportDeclaration = qBe; gi.ImportDefaultSpecifier = OBe; gi.ImportExpression = $Be; gi.ImportNamespaceSpecifier = WBe; gi.ImportSpecifier = IBe; gi._printAttributes = MBe; var TBe = $e(), CBe = $a(), { isClassDeclaration: wBe, isExportDefaultSpecifier: ABe, isExportNamespaceSpecifier: _Be, isImportDefaultSpecifier: PBe, isImportNamespaceSpecifier: FBe, isStatement: K5 } = TBe; function IBe(e) { (e.importKind === "type" || e.importKind === "typeof") && (this.word(e.importKind), this.space()), this.print(e.imported), e.local && e. local.name !== e.imported.name && (this.space(), this.word("as"), this.space(), this.print(e.local)); } s(IBe, "ImportSpecifier"); function OBe(e) { this.print(e.local); } s(OBe, "ImportDefaultSpecifier"); function kBe(e) { this.print(e.exported); } s(kBe, "ExportDefaultSpecifier"); function BBe(e) { e.exportKind === "type" && (this.word("type"), this.space()), this.print(e.local), e.exported && e.local.name !== e.exported.name && (this. space(), this.word("as"), this.space(), this.print(e.exported)); } s(BBe, "ExportSpecifier"); function NBe(e) { this.tokenChar(42), this.space(), this.word("as"), this.space(), this.print(e.exported); } s(NBe, "ExportNamespaceSpecifier"); var H5 = !1; function MBe(e, t) { var r; let { importAttributesKeyword: i } = this.format, { attributes: n, assertions: a } = e; n && !i && e.extra && (e.extra.deprecatedAssertSyntax || e.extra.deprecatedWithLegacySyntax) && !H5 && (H5 = !0, console.warn('You are u\ sing import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose v\ alue can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { typ\ e: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n')); let o = i === "assert" || !i && a; if (this.word(o ? "assert" : "with"), this.space(), !o && (i === "with-legacy" || !i && (r = e.extra) != null && r.deprecatedWithLegacySyntax)) { this.printList(n || a); return; } let u = t ? 1 : 0; this.token("{", null, u), this.space(), this.printList(n || a, this.shouldPrintTrailingComma("}")), this.space(), this.token("}", null, u); } s(MBe, "_printAttributes"); function RBe(e) { var t, r; this.word("export"), this.space(), e.exportKind === "type" && (this.word("type"), this.space()), this.tokenChar(42), this.space(), this. word("from"), this.space(), (t = e.attributes) != null && t.length || (r = e.assertions) != null && r.length ? (this.print(e.source, !0), this.space(), this._printAttributes(e, !1)) : this.print(e.source), this.semicolon(); } s(RBe, "ExportAllDeclaration"); function z5(e, t) { wBe(t.declaration) && e._shouldPrintDecoratorsBeforeExport(t) && e.printJoin(t.declaration.decorators); } s(z5, "maybePrintDecoratorsBeforeExport"); function jBe(e) { if (z5(this, e), this.word("export"), this.space(), e.declaration) { let i = e.declaration; this.print(i), K5(i) || this.semicolon(); } else { e.exportKind === "type" && (this.word("type"), this.space()); let i = e.specifiers.slice(0), n = !1; for (; ; ) { let o = i[0]; if (ABe(o) || _Be(o)) n = !0, this.print(i.shift()), i.length && (this.tokenChar(44), this.space()); else break; } let a = !1; if ((i.length || !i.length && !n) && (a = !0, this.tokenChar(123), i.length && (this.space(), this.printList(i, this.shouldPrintTrailingComma( "}")), this.space()), this.tokenChar(125)), e.source) { var t, r; this.space(), this.word("from"), this.space(), (t = e.attributes) != null && t.length || (r = e.assertions) != null && r.length ? (this. print(e.source, !0), this.space(), this._printAttributes(e, a)) : this.print(e.source); } this.semicolon(); } } s(jBe, "ExportNamedDeclaration"); function LBe(e) { z5(this, e), this.word("export"), this.noIndentInnerCommentsHere(), this.space(), this.word("default"), this.space(), this.tokenContext |= CBe.TokenContext.exportDefault; let t = e.declaration; this.print(t), K5(t) || this.semicolon(); } s(LBe, "ExportDefaultDeclaration"); function qBe(e) { var t, r; this.word("import"), this.space(); let i = e.importKind === "type" || e.importKind === "typeof"; i ? (this.noIndentInnerCommentsHere(), this.word(e.importKind), this.space()) : e.module ? (this.noIndentInnerCommentsHere(), this.word( "module"), this.space()) : e.phase && (this.noIndentInnerCommentsHere(), this.word(e.phase), this.space()); let n = e.specifiers.slice(0), a = !!n.length; for (; a; ) { let u = n[0]; if (PBe(u) || FBe(u)) this.print(n.shift()), n.length && (this.tokenChar(44), this.space()); else break; } let o = !1; n.length ? (o = !0, this.tokenChar(123), this.space(), this.printList(n, this.shouldPrintTrailingComma("}")), this.space(), this.tokenChar( 125)) : i && !a && (o = !0, this.tokenChar(123), this.tokenChar(125)), (a || i) && (this.space(), this.word("from"), this.space()), (t = e.attributes) != null && t.length || (r = e.assertions) != null && r.length ? (this.print(e.source, !0), this.space(), this._printAttributes( e, o)) : this.print(e.source), this.semicolon(); } s(qBe, "ImportDeclaration"); function UBe(e) { this.print(e.key), this.tokenChar(58), this.space(), this.print(e.value); } s(UBe, "ImportAttribute"); function WBe(e) { this.tokenChar(42), this.space(), this.word("as"), this.space(), this.print(e.local); } s(WBe, "ImportNamespaceSpecifier"); function $Be(e) { this.word("import"), e.phase && (this.tokenChar(46), this.word(e.phase)), this.tokenChar(40), this.print(e.source), e.options != null && (this.tokenChar(44), this.space(), this.print(e.options)), this.tokenChar(41); } s($Be, "ImportExpression"); }); // ../node_modules/jsesc/jsesc.js var Y5 = E((Cft, X5) => { "use strict"; var G5 = {}, VBe = G5.hasOwnProperty, J5 = /* @__PURE__ */ s((e, t) => { for (let r in e) VBe.call(e, r) && t(r, e[r]); }, "forOwn"), HBe = /* @__PURE__ */ s((e, t) => (t && J5(t, (r, i) => { e[r] = i; }), e), "extend"), KBe = /* @__PURE__ */ s((e, t) => { let r = e.length, i = -1; for (; ++i < r; ) t(e[i]); }, "forEach"), v0 = /* @__PURE__ */ s((e) => "\\u" + ("0000" + e).slice(-4), "fourHexEscape"), zd = /* @__PURE__ */ s((e, t) => { let r = e.toString(16); return t ? r : r.toUpperCase(); }, "hexadecimal"), Gd = G5.toString, zBe = Array.isArray, GBe = /* @__PURE__ */ s((e) => typeof Buffer == "function" && Buffer.isBuffer(e), "isBuffer"), JBe = /* @__PURE__ */ s((e) => Gd.call(e) == "[object Object]", "isObject"), XBe = /* @__PURE__ */ s((e) => typeof e == "stri\ ng" || Gd.call(e) == "[object String]", "isString"), YBe = /* @__PURE__ */ s((e) => typeof e == "number" || Gd.call(e) == "[object Number]", "isNumber"), hw = /* @__PURE__ */ s((e) => typeof e == "bigint", "isBigInt"), ZBe = /* @__PURE__ */ s((e) => typeof e == "function", "isFu\ nction"), QBe = /* @__PURE__ */ s((e) => Gd.call(e) == "[object Map]", "isMap"), eNe = /* @__PURE__ */ s((e) => Gd.call(e) == "[object Set]", "isSet"), tNe = { "\\": "\\\\", "\b": "\\b", "\f": "\\f", "\n": "\\n", "\r": "\\r", " ": "\\t" // `\v` is omitted intentionally, because in IE < 9, '\v' == 'v'. // '\v': '\\x0B' }, rNe = /[\\\b\f\n\r\t]/, iNe = /[0-9]/, nNe = /[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, sNe = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g, aNe = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g, Va = /* @__PURE__ */ s((e, t) => { let r = /* @__PURE__ */ s(() => { c = l, ++t.indentLevel, l = t.indent.repeat(t.indentLevel); }, "increaseIndentation"), i = { escapeEverything: !1, minimal: !1, isScriptContext: !1, quotes: "single", wrap: !1, es6: !1, json: !1, compact: !0, lowercaseHex: !1, numbers: "decimal", indent: " ", indentLevel: 0, __inline1__: !1, __inline2__: !1 }, n = t && t.json; n && (i.quotes = "double", i.wrap = !0), t = HBe(i, t), t.quotes != "single" && t.quotes != "double" && t.quotes != "backtick" && (t.quotes = "single"); let a = t.quotes == "double" ? '"' : t.quotes == "backtick" ? "`" : "'", o = t.compact, u = t.lowercaseHex, l = t.indent.repeat(t.indentLevel), c = "", f = t.__inline1__, m = t.__inline2__, h = o ? "" : ` `, d, y = !0, p = t.numbers == "binary", g = t.numbers == "octal", b = t.numbers == "decimal", D = t.numbers == "hexadecimal"; if (n && e && ZBe(e.toJSON) && (e = e.toJSON()), !XBe(e)) { if (QBe(e)) return e.size == 0 ? "new Map()" : (o || (t.__inline1__ = !0, t.__inline2__ = !1), "new Map(" + Va(Array.from(e), t) + ")"); if (eNe(e)) return e.size == 0 ? "new Set()" : "new Set(" + Va(Array.from(e), t) + ")"; if (GBe(e)) return e.length == 0 ? "Buffer.from([])" : "Buffer.from(" + Va(Array.from(e), t) + ")"; if (zBe(e)) return d = [], t.wrap = !0, f && (t.__inline1__ = !1, t.__inline2__ = !0), m || r(), KBe(e, (S) => { y = !1, m && (t.__inline2__ = !1), d.push( (o || m ? "" : l) + Va(S, t) ); }), y ? "[]" : m ? "[" + d.join(", ") + "]" : "[" + h + d.join("," + h) + h + (o ? "" : c) + "]"; if (YBe(e) || hw(e)) { if (n) return JSON.stringify(Number(e)); let S; if (b) S = String(e); else if (D) { let C = e.toString(16); u || (C = C.toUpperCase()), S = "0x" + C; } else p ? S = "0b" + e.toString(2) : g && (S = "0o" + e.toString(8)); return hw(e) ? S + "n" : S; } else return hw(e) ? n ? JSON.stringify(Number(e)) : e + "n" : JBe(e) ? (d = [], t.wrap = !0, r(), J5(e, (S, C) => { y = !1, d.push( (o ? "" : l) + Va(S, t) + ":" + (o ? "" : " ") + Va(C, t) ); }), y ? "{}" : "{" + h + d.join("," + h) + h + (o ? "" : c) + "}") : n ? JSON.stringify(e) || "null" : String(e); } let v = t.escapeEverything ? sNe : aNe; return d = e.replace(v, (S, C, O, k, U, j) => { if (C) { if (t.minimal) return C; let R = C.charCodeAt(0), Q = C.charCodeAt(1); if (t.es6) { let te = (R - 55296) * 1024 + Q - 56320 + 65536; return "\\u{" + zd(te, u) + "}"; } return v0(zd(R, u)) + v0(zd(Q, u)); } if (O) return v0(zd(O.charCodeAt(0), u)); if (S == "\0" && !n && !iNe.test(j.charAt(U + 1))) return "\\0"; if (k) return k == a || t.escapeEverything ? "\\" + k : k; if (rNe.test(S)) return tNe[S]; if (t.minimal && !nNe.test(S)) return S; let H = zd(S.charCodeAt(0), u); return n || H.length > 2 ? v0(H) : "\\x" + ("00" + H).slice(-2); }), a == "`" && (d = d.replace(/\$\{/g, "\\${")), t.isScriptContext && (d = d.replace(/<\/(script|style)/gi, "<\\/$1").replace(/