UNPKG

@shopify/create-app

Version:

A CLI tool to create a new Shopify app.

781 lines (780 loc) • 194 kB
import { __esm, init_cjs_shims } from "./chunk-PKR7KJ6P.js"; // ../../node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/plugins/acorn.mjs function je(e, t) { for (var i = 65536, s = 0; s < t.length; s += 2) { if (i += t[s], i > e) return !1; if (i += t[s + 1], i >= e) return !0; } return !1; } function j(e, t) { return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Ui.test(String.fromCharCode(e)) : t === !1 ? !1 : je(e, dt); } function X(e, t) { return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Gi.test(String.fromCharCode(e)) : t === !1 ? !1 : je(e, dt) || je(e, Di); } function V(e, t) { return new C(e, { beforeExpr: !0, binop: t }); } function _(e, t) { return t === void 0 && (t = {}), t.keyword = e, Je[e] = new C(e, t); } function Y(e) { return e === 10 || e === 13 || e === 8232 || e === 8233; } function xt(e, t, i) { i === void 0 && (i = e.length); for (var s = t; s < i; s++) { var r = e.charCodeAt(s); if (Y(r)) return s < i - 1 && r === 13 && e.charCodeAt(s + 1) === 10 ? s + 2 : s + 1; } return -1; } function H(e) { return pt[e] || (pt[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$")); } function q(e) { return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320)); } function vt(e, t) { for (var i = 1, s = 0; ; ) { var r = xt(e, s, t); if (r < 0) return new ne(i, t - s); ++i, s = r; } } function Xi(e) { var t = {}; for (var i in Ue) t[i] = e && $(e, i) ? e[i] : Ue[i]; if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!ct && typeof console == "object" && console.warn && (ct = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), ht(t.onToken)) { var s = t.onToken; t.onToken = function(r) { return s.push(r); }; } return ht(t.onComment) && (t.onComment = Wi(t, t.onComment)), t; } function Wi(e, t) { return function(i, s, r, o, u, p) { var h = { type: i ? "Block" : "Line", value: s, start: r, end: o }; e.locations && (h.loc = new be(this, u, p)), e.ranges && (h.range = [r, o]), t.push(h); }; } function Xe(e, t) { return Z | (e ? Ke : 0) | (t ? bt : 0); } function $i(e, t) { var i = t.key.name, s = e[i], r = "true"; return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (r = (t.static ? "s" : "i") + t.kind), s === "iget" && r === "iset" || s === "iset" && r === "iget" || s === "sget" && r === "sset" || s === "sset" && r === "sget" ? (e[i] = "true", !1) : s ? !0 : (e[i] = r, !1); } function ye(e, t) { var i = e.computed, s = e.key; return !i && (s.type === "Identifier" && s.name === t || s.type === "Literal" && s.value === t); } function kt(e) { return e.type === "Identifier" || e.type === "ParenthesizedExpression" && kt(e.expression); } function qe(e) { return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && qe(e.expression) || e.type === "ParenthesizedExpression" && qe(e.expression); } function wt(e, t, i, s) { return e.type = t, e.end = i, this.options.locations && (e.loc.end = s), this.options.ranges && (e.range[1] = i), e; } function us(e) { var t = Ft[e] = { binary: H(ss[e] + " " + lt), binaryOfStrings: H(as[e]), nonBinary: { General_Category: H(lt), Script: H(os[e]) } }; t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions; } function hs(e) { for (var t in e) return !0; return !1; } function ps(e) { return e === 105 || e === 109 || e === 115; } function jt(e) { return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125; } function cs(e) { return j(e, !0) || e === 36 || e === 95; } function ls(e) { return X(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205; } function Ut(e) { return e >= 65 && e <= 90 || e >= 97 && e <= 122; } function fs(e) { return e >= 0 && e <= 1114111; } function ds(e) { return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87; } function qt(e) { return Ut(e) || e === 95; } function ms(e) { return qt(e) || Ee(e); } function xs(e) { return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126; } function ys(e) { return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125; } function gs(e) { return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126; } function Ee(e) { return e >= 48 && e <= 57; } function Jt(e) { return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102; } function Kt(e) { return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48; } function Ht(e) { return e >= 48 && e <= 55; } function vs(e, t) { return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, "")); } function Xt(e) { return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, "")); } function As(e, t) { let i = new SyntaxError(e + " (" + t.loc.start.line + ":" + t.loc.start.column + ")"); return Object.assign(i, t); } function ke(e) { let t = []; for (let i of e) try { return i(); } catch (s) { t.push(s); } throw Object.assign(new Error("All combinations failed"), { errors: t }); } function Ps(e) { return this[e < 0 ? this.length + e : e]; } function M(e) { let t = e.range?.[0] ?? e.start, i = (e.declaration?.decorators ?? e.decorators)?.[0]; return i ? Math.min(M(i), t) : t; } function R(e) { return e.range?.[1] ?? e.end; } function Ns(e) { let t = new Set(e); return (i) => t.has(i?.type); } function Vs(e) { return Ze.has(e) || Ze.set(e, re(e) && e.value[0] === "*" && /@(?:type|satisfies)\b/u.test(e.value)), Ze.get(e); } function Os(e) { if (!re(e)) return !1; let t = `*${e.value}*`.split(` `); return t.length > 1 && t.every((i) => i.trimStart()[0] === "*"); } function Bs(e) { return et.has(e) || et.set(e, Os(e)), et.get(e); } function Ds(e) { if (e.length < 2) return; let t; for (let i = e.length - 1; i >= 0; i--) { let s = e[i]; if (t && R(s) === M(t) && tt(s) && tt(t) && (e.splice(i + 1, 1), s.value += "*//*" + t.value, s.range = [M(s), R(t)]), !ei(s) && !re(s)) throw new TypeError(`Unknown comment type: "${s.type}".`); t = s; } } function Ms(e) { return e !== null && typeof e == "object"; } function le(e) { if (ce !== null && typeof ce.property) { let t = ce; return ce = le.prototype = null, t; } return ce = le.prototype = e ?? /* @__PURE__ */ Object.create(null), new le(); } function it(e) { return le(e); } function js(e, t = "type") { it(e); function i(s) { let r = s[t], o = e[r]; if (!Array.isArray(o)) throw Object.assign(new Error(`Missing visitor keys for '${r}'.`), { node: s }); return o; } return i; } function we(e, t) { if (!si(e)) return e; if (Array.isArray(e)) { for (let s = 0; s < e.length; s++) e[s] = we(e[s], t); return e; } if (t.onEnter) { let s = t.onEnter(e) ?? e; if (s !== e) return we(s, t); e = s; } let i = ni(e); for (let s = 0; s < i.length; s++) e[i[s]] = we(e[i[s]], t); return t.onLeave && (e = t.onLeave(e) || e), e; } function Gs(e, t) { let { parser: i, text: s } = t, { comments: r } = e, o = i === "oxc" && t.oxcAstType === "ts"; ii(r); let u = e.type === "File" ? e.program : e; u.interpreter && (r.unshift(u.interpreter), delete u.interpreter), o && e.hashbang && (r.unshift(e.hashbang), delete e.hashbang), e.type === "Program" && (e.range = [0, s.length]); let p; return e = oi(e, { onEnter(h) { switch (h.type) { case "ParenthesizedExpression": { let { expression: l } = h, m = M(h); if (l.type === "TypeCastExpression") return l.range = [m, R(h)], l; let S = !1; if (!o) { if (!p) { p = []; for (let c of r) ti(c) && p.push(R(c)); } let E = Zt(0, p, (c) => c <= m); S = E && s.slice(E, m).trim().length === 0; } return S ? void 0 : (l.extra = { ...l.extra, parenthesized: !0 }, l); } case "TemplateLiteral": if (h.expressions.length !== h.quasis.length - 1) throw new Error("Malformed template literal."); break; case "TemplateElement": if (i === "flow" || i === "hermes" || i === "espree" || i === "typescript" || o) { let l = M(h) + 1, m = R(h) - (h.tail ? 1 : 2); h.range = [l, m]; } break; case "VariableDeclaration": { let l = ie(0, h.declarations, -1); l?.init && s[R(l)] !== ";" && (h.range = [M(h), R(l)]); break; } case "TSParenthesizedType": return h.typeAnnotation; case "TopicReference": e.extra = { ...e.extra, __isUsingHackPipeline: !0 }; break; case "TSUnionType": case "TSIntersectionType": if (h.types.length === 1) return h.types[0]; break; case "ImportExpression": i === "hermes" && h.attributes && !h.options && (h.options = h.attributes); break; } }, onLeave(h) { switch (h.type) { case "LogicalExpression": if (ui(h)) return st(h); break; case "TSImportType": !h.source && h.argument.type === "TSLiteralType" && (h.source = h.argument.literal, delete h.argument); break; } } }), e; } function ui(e) { return e.type === "LogicalExpression" && e.right.type === "LogicalExpression" && e.operator === e.right.operator; } function st(e) { return ui(e) ? st({ type: "LogicalExpression", operator: e.operator, left: st({ type: "LogicalExpression", operator: e.operator, left: e.left, right: e.right.left, range: [M(e.left), R(e.right.left)] }), right: e.right.right, range: [M(e), R(e)] }) : e; } function ci(e) { let t = e.match(Xs); return t ? t[0].trimStart() : ""; } function li(e) { e = fe(0, e.replace(Hs, "").replace(Ks, ""), Qs, "$1"); let i = ""; for (; i !== e; ) i = e, e = fe(0, e, zs, ` $1 $2 `); e = e.replace(hi, "").trimEnd(); let s = /* @__PURE__ */ Object.create(null), r = fe(0, e, pi, "").replace(hi, "").trimEnd(), o; for (; o = pi.exec(e); ) { let u = fe(0, o[2], Ws, ""); if (typeof s[o[1]] == "string" || Array.isArray(s[o[1]])) { let p = s[o[1]]; s[o[1]] = [...Ys, ...Array.isArray(p) ? p : [p], u]; } else s[o[1]] = u; } return { comments: r, pragmas: s }; } function $s(e) { if (!e.startsWith("#!")) return ""; let t = e.indexOf(` `); return t === -1 ? e : e.slice(0, t); } function xi(e) { let t = mi(e); t && (e = e.slice(t.length + 1)); let i = ci(e), { pragmas: s, comments: r } = li(i); return { shebang: t, text: e, pragmas: s, comments: r }; } function yi(e) { let { pragmas: t } = xi(e); return di.some((i) => Object.prototype.hasOwnProperty.call(t, i)); } function gi(e) { let { pragmas: t } = xi(e); return fi.some((i) => Object.prototype.hasOwnProperty.call(t, i)); } function Zs(e) { return e = typeof e == "function" ? { parse: e } : e, { astFormat: "estree", hasPragma: yi, hasIgnorePragma: gi, locStart: M, locEnd: R, ...e }; } function Ve(e) { if (typeof e == "string") { if (e = e.toLowerCase(), /\.(?:mjs|mts)$/iu.test(e)) return Ne; if (/\.(?:cjs|cts)$/iu.test(e)) return Le; } } function tr(e) { let { message: t, loc: i } = e; if (!i) return e; let { line: s, column: r } = i; return Ae(t.replace(/ \(\d+:\d+\)$/u, ""), { loc: { start: { line: s, column: r + 1 } }, cause: e }); } function sr(e, t) { let i = ir(), s = [], r = i.parse(e, { ...er, sourceType: t === Le ? vi : t, allowImportExportEverywhere: t === Ne, onComment: s }); return r.comments = s, r; } function rr(e, t) { let i = Ve(t?.filepath), s = (i ? [i] : Re).map((o) => () => sr(e, o)), r; try { r = ke(s); } catch ({ errors: [o] }) { throw tr(o); } return Pe(r, { text: e }); } function ar(e, t) { let i = e[0], s = ie(0, e, -1), r = { type: P.Template, value: t.slice(i.start, s.end) }; return i.loc && (r.loc = { start: i.loc.start, end: s.loc.end }), i.range && (r.start = i.range[0], r.end = s.range[1], r.range = [r.start, r.end]), r; } function rt(e, t) { this._acornTokTypes = e, this._tokens = [], this._curlyBrace = null, this._code = t; } function nr() { return ie(0, Ti, -1); } function or(e = 5) { let t = e === "latest" ? nr() : e; if (typeof t != "number") throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`); if (t >= 2015 && (t -= 2009), !Ti.includes(t)) throw new Error("Invalid ecmaVersion."); return t; } function ur(e = "script") { if (e === "script" || e === "module") return e; if (e === "commonjs") return "script"; throw new Error("Invalid sourceType."); } function Ei(e) { let t = or(e.ecmaVersion), i = ur(e.sourceType), s = e.range === !0, r = e.loc === !0; if (t !== 3 && e.allowReserved) throw new Error("`allowReserved` is only supported when ecmaVersion is 3"); if (typeof e.allowReserved < "u" && typeof e.allowReserved != "boolean") throw new Error("`allowReserved`, when present, must be `true` or `false`"); let o = t === 3 ? e.allowReserved || "never" : !1, u = e.ecmaFeatures || {}, p = e.sourceType === "commonjs" || !!u.globalReturn; if (i === "module" && t < 6) throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options."); return Object.assign({}, e, { ecmaVersion: t, sourceType: i, ranges: s, locations: r, allowReserved: o, allowReturnOutsideFunction: p }); } function hr(e, t, i, s, r, o, u) { let p; e ? p = "Block" : u.slice(i, i + 2) === "#!" ? p = "Hashbang" : p = "Line"; let h = { type: p, value: t }; return typeof i == "number" && (h.start = i, h.end = s, h.range = [i, s]), typeof r == "object" && (h.loc = { start: r, end: o }), h; } function ki(e, t) { let i = pr.get(t); return new i(t, e).parse(); } function lr(e) { let { message: t, lineNumber: i, column: s } = e; return typeof i != "number" ? e : Ae(t, { loc: { start: { line: i, column: s } }, cause: e }); } function fr(e, t) { let i = Ve(t?.filepath), s = (i ? [i] : Re).map((o) => () => ki(e, { ...cr, sourceType: o })), r; try { r = ke(s); } catch ({ errors: [o] }) { throw lr(o); } return Pe(r, { parser: "espree", text: e }); } var Ii, Be, Ni, Li, Ri, Vi, ot, Oi, Bi, ut, Qt, $e, Pi, Di, dt, Mi, mt, De, Me, Fi, ji, Ui, Gi, C, O, N, Je, a, L, qi, yt, k, gt, Ji, Ki, $, ht, pt, Hi, ne, be, Ue, ct, oe, Z, Ke, bt, He, St, Se, _t, z, ue, _e, xe, We, K, Ct, Tt, Et, A, U, w, zi, Ce, d, ze, Qi, Yi, ae, Ge, At, D, F, T, ee, g, Zi, ge, W, es, Te, he, ts, Pt, It, Nt, Lt, Rt, is, ss, rs, as, lt, Vt, Ot, Bt, Dt, Mt, ns, os, Ft, ft, me, Fe, f, ve, G, Gt, J, B, Qe, b, Wt, bs, Si, Ae, te, ks, ws, Zt, Is, ie, se, Ls, re, Rs, ei, Ze, ti, et, tt, ii, si, ce, Fs, ri, n, ai, Us, ni, oi, aa, Pe, qs, Js, fe, Ks, Hs, Xs, Ws, hi, zs, pi, Qs, Ys, fi, di, mi, Ie, Ne, vi, Le, Re, er, bi, ir, _i, Ai, P, Ci, Ti, Q, at, nt, pr, cr, wi, dr, init_acorn = __esm({ "../../node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/plugins/acorn.mjs"() { init_cjs_shims(); Ii = Object.create, Be = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor, Li = Object.getOwnPropertyNames, Ri = Object.getPrototypeOf, Vi = Object.prototype.hasOwnProperty, ot = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Oi = (e, t) => { for (var i in t) Be(e, i, { get: t[i], enumerable: !0 }); }, Bi = (e, t, i, s) => { if (t && typeof t == "object" || typeof t == "function") for (let r of Li(t)) !Vi.call(e, r) && r !== i && Be(e, r, { get: () => t[r], enumerable: !(s = Ni(t, r)) || s.enumerable }); return e; }, ut = (e, t, i) => (i = e != null ? Ii(Ri(e)) : {}, Bi(t || !e || !e.__esModule ? Be(i, "default", { value: e, enumerable: !0 }) : i, e)), Qt = ot((xr, zt) => { zt.exports = {}; }), $e = ot((yr, Ye) => { "use strict"; var _s = Qt(), Cs = /^[\da-fA-F]+$/, Ts = /^\d+$/, Yt = /* @__PURE__ */ new WeakMap(); function $t(e) { e = e.Parser.acorn || e; let t = Yt.get(e); if (!t) { let i = e.tokTypes, s = e.TokContext, r = e.TokenType, o = new s("<tag", !1), u = new s("</tag", !1), p = new s("<tag>...</tag>", !0, !0), h = { tc_oTag: o, tc_cTag: u, tc_expr: p }, l = { jsxName: new r("jsxName"), jsxText: new r("jsxText", { beforeExpr: !0 }), jsxTagStart: new r("jsxTagStart", { startsExpr: !0 }), jsxTagEnd: new r("jsxTagEnd") }; l.jsxTagStart.updateContext = function() { this.context.push(p), this.context.push(o), this.exprAllowed = !1; }, l.jsxTagEnd.updateContext = function(m) { let S = this.context.pop(); S === o && m === i.slash || S === u ? (this.context.pop(), this.exprAllowed = this.curContext() === p) : this.exprAllowed = !0; }, t = { tokContexts: h, tokTypes: l }, Yt.set(e, t); } return t; } function pe(e) { if (!e) return e; if (e.type === "JSXIdentifier") return e.name; if (e.type === "JSXNamespacedName") return e.namespace.name + ":" + e.name.name; if (e.type === "JSXMemberExpression") return pe(e.object) + "." + pe(e.property); } Ye.exports = function(e) { return e = e || {}, function(t) { return Es({ allowNamespaces: e.allowNamespaces !== !1, allowNamespacedObjects: !!e.allowNamespacedObjects }, t); }; }, Object.defineProperty(Ye.exports, "tokTypes", { get: function() { return $t(void 0).tokTypes; }, configurable: !0, enumerable: !0 }); function Es(e, t) { let i = t.acorn || void 0, s = $t(i), r = i.tokTypes, o = s.tokTypes, u = i.tokContexts, p = s.tokContexts.tc_oTag, h = s.tokContexts.tc_cTag, l = s.tokContexts.tc_expr, m = i.isNewLine, S = i.isIdentifierStart, E = i.isIdentifierChar; return class extends t { static get acornJsx() { return s; } jsx_readToken() { let c = "", x = this.pos; for (; ; ) { this.pos >= this.input.length && this.raise(this.start, "Unterminated JSX contents"); let y = this.input.charCodeAt(this.pos); switch (y) { case 60: case 123: return this.pos === this.start ? y === 60 && this.exprAllowed ? (++this.pos, this.finishToken(o.jsxTagStart)) : this.getTokenFromCode(y) : (c += this.input.slice(x, this.pos), this.finishToken(o.jsxText, c)); case 38: c += this.input.slice(x, this.pos), c += this.jsx_readEntity(), x = this.pos; break; case 62: case 125: this.raise(this.pos, "Unexpected token `" + this.input[this.pos] + "`. Did you mean `" + (y === 62 ? "&gt;" : "&rbrace;") + '` or `{"' + this.input[this.pos] + '"}`?'); default: m(y) ? (c += this.input.slice(x, this.pos), c += this.jsx_readNewLine(!0), x = this.pos) : ++this.pos; } } } jsx_readNewLine(c) { let x = this.input.charCodeAt(this.pos), y; return ++this.pos, x === 13 && this.input.charCodeAt(this.pos) === 10 ? (++this.pos, y = c ? ` ` : `\r `) : y = String.fromCharCode(x), this.options.locations && (++this.curLine, this.lineStart = this.pos), y; } jsx_readString(c) { let x = "", y = ++this.pos; for (; ; ) { this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant"); let v = this.input.charCodeAt(this.pos); if (v === c) break; v === 38 ? (x += this.input.slice(y, this.pos), x += this.jsx_readEntity(), y = this.pos) : m(v) ? (x += this.input.slice(y, this.pos), x += this.jsx_readNewLine(!1), y = this.pos) : ++this.pos; } return x += this.input.slice(y, this.pos++), this.finishToken(r.string, x); } jsx_readEntity() { let c = "", x = 0, y, v = this.input[this.pos]; v !== "&" && this.raise(this.pos, "Entity must start with an ampersand"); let I = ++this.pos; for (; this.pos < this.input.length && x++ < 10; ) { if (v = this.input[this.pos++], v === ";") { c[0] === "#" ? c[1] === "x" ? (c = c.substr(2), Cs.test(c) && (y = String.fromCharCode(parseInt(c, 16)))) : (c = c.substr(1), Ts.test(c) && (y = String.fromCharCode(parseInt(c, 10)))) : y = _s[c]; break; } c += v; } return y || (this.pos = I, "&"); } jsx_readWord() { let c, x = this.pos; do c = this.input.charCodeAt(++this.pos); while (E(c) || c === 45); return this.finishToken(o.jsxName, this.input.slice(x, this.pos)); } jsx_parseIdentifier() { let c = this.startNode(); return this.type === o.jsxName ? c.name = this.value : this.type.keyword ? c.name = this.type.keyword : this.unexpected(), this.next(), this.finishNode(c, "JSXIdentifier"); } jsx_parseNamespacedName() { let c = this.start, x = this.startLoc, y = this.jsx_parseIdentifier(); if (!e.allowNamespaces || !this.eat(r.colon)) return y; var v = this.startNodeAt(c, x); return v.namespace = y, v.name = this.jsx_parseIdentifier(), this.finishNode(v, "JSXNamespacedName"); } jsx_parseElementName() { if (this.type === o.jsxTagEnd) return ""; let c = this.start, x = this.startLoc, y = this.jsx_parseNamespacedName(); for (this.type === r.dot && y.type === "JSXNamespacedName" && !e.allowNamespacedObjects && this.unexpected(); this.eat(r.dot); ) { let v = this.startNodeAt(c, x); v.object = y, v.property = this.jsx_parseIdentifier(), y = this.finishNode(v, "JSXMemberExpression"); } return y; } jsx_parseAttributeValue() { switch (this.type) { case r.braceL: let c = this.jsx_parseExpressionContainer(); return c.expression.type === "JSXEmptyExpression" && this.raise(c.start, "JSX attributes must only be assigned a non-empty expression"), c; case o.jsxTagStart: case r.string: return this.parseExprAtom(); default: this.raise(this.start, "JSX value should be either an expression or a quoted JSX text"); } } jsx_parseEmptyExpression() { let c = this.startNodeAt(this.lastTokEnd, this.lastTokEndLoc); return this.finishNodeAt(c, "JSXEmptyExpression", this.start, this.startLoc); } jsx_parseExpressionContainer() { let c = this.startNode(); return this.next(), c.expression = this.type === r.braceR ? this.jsx_parseEmptyExpression() : this.parseExpression(), this.expect(r.braceR), this.finishNode(c, "JSXExpressionContainer"); } jsx_parseAttribute() { let c = this.startNode(); return this.eat(r.braceL) ? (this.expect(r.ellipsis), c.argument = this.parseMaybeAssign(), this.expect(r.braceR), this.finishNode(c, "JSXSpreadAttribute")) : (c.name = this.jsx_parseNamespacedName(), c.value = this.eat(r.eq) ? this.jsx_parseAttributeValue() : null, this.finishNode(c, "JSXAttribute")); } jsx_parseOpeningElementAt(c, x) { let y = this.startNodeAt(c, x); y.attributes = []; let v = this.jsx_parseElementName(); for (v && (y.name = v); this.type !== r.slash && this.type !== o.jsxTagEnd; ) y.attributes.push(this.jsx_parseAttribute()); return y.selfClosing = this.eat(r.slash), this.expect(o.jsxTagEnd), this.finishNode(y, v ? "JSXOpeningElement" : "JSXOpeningFragment"); } jsx_parseClosingElementAt(c, x) { let y = this.startNodeAt(c, x), v = this.jsx_parseElementName(); return v && (y.name = v), this.expect(o.jsxTagEnd), this.finishNode(y, v ? "JSXClosingElement" : "JSXClosingFragment"); } jsx_parseElementAt(c, x) { let y = this.startNodeAt(c, x), v = [], I = this.jsx_parseOpeningElementAt(c, x), de = null; if (!I.selfClosing) { e: for (; ; ) switch (this.type) { case o.jsxTagStart: if (c = this.start, x = this.startLoc, this.next(), this.eat(r.slash)) { de = this.jsx_parseClosingElementAt(c, x); break e; } v.push(this.jsx_parseElementAt(c, x)); break; case o.jsxText: v.push(this.parseExprAtom()); break; case r.braceL: v.push(this.jsx_parseExpressionContainer()); break; default: this.unexpected(); } pe(de.name) !== pe(I.name) && this.raise(de.start, "Expected corresponding JSX closing tag for <" + pe(I.name) + ">"); } let Oe = I.name ? "Element" : "Fragment"; return y["opening" + Oe] = I, y["closing" + Oe] = de, y.children = v, this.type === r.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(y, "JSX" + Oe); } jsx_parseText() { let c = this.parseLiteral(this.value); return c.type = "JSXText", c; } jsx_parseElement() { let c = this.start, x = this.startLoc; return this.next(), this.jsx_parseElementAt(c, x); } parseExprAtom(c) { return this.type === o.jsxText ? this.jsx_parseText() : this.type === o.jsxTagStart ? this.jsx_parseElement() : super.parseExprAtom(c); } readToken(c) { let x = this.curContext(); if (x === l) return this.jsx_readToken(); if (x === p || x === h) { if (S(c)) return this.jsx_readWord(); if (c == 62) return ++this.pos, this.finishToken(o.jsxTagEnd); if ((c === 34 || c === 39) && x == p) return this.jsx_readString(c); } return c === 60 && this.exprAllowed && this.input.charCodeAt(this.pos + 1) !== 33 ? (++this.pos, this.finishToken(o.jsxTagStart)) : super.readToken(c); } updateContext(c) { if (this.type == r.braceL) { var x = this.curContext(); x == p ? this.context.push(u.b_expr) : x == l ? this.context.push(u.b_tmpl) : super.updateContext(c), this.exprAllowed = !0; } else if (this.type === r.slash && c === o.jsxTagStart) this.context.length -= 2, this.context.push(h), this.exprAllowed = !1; else return super.updateContext(c); } }; } }), Pi = {}; Oi(Pi, { parsers: () => dr }); Di = [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], dt = [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], Mi = "\u200C\u200D\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", mt = "\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", De = { 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", 5: "class enum extends super const export import", 6: "enum", strict: "implements interface let package private protected public static yield", strictBind: "eval arguments" }, Me = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", Fi = { 5: Me, "5module": Me + " export import", 6: Me + " const class extends export import super" }, ji = /^in(stanceof)?$/, Ui = new RegExp("[" + mt + "]"), Gi = new RegExp("[" + mt + Mi + "]"); C = function(t, i) { i === void 0 && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null; }; O = { beforeExpr: !0 }, N = { startsExpr: !0 }, Je = {}; a = { num: new C("num", N), regexp: new C("regexp", N), string: new C("string", N), name: new C("name", N), privateId: new C("privateId", N), eof: new C("eof"), bracketL: new C("[", { beforeExpr: !0, startsExpr: !0 }), bracketR: new C("]"), braceL: new C("{", { beforeExpr: !0, startsExpr: !0 }), braceR: new C("}"), parenL: new C("(", { beforeExpr: !0, startsExpr: !0 }), parenR: new C(")"), comma: new C(",", O), semi: new C(";", O), colon: new C(":", O), dot: new C("."), question: new C("?", O), questionDot: new C("?."), arrow: new C("=>", O), template: new C("template"), invalidTemplate: new C("invalidTemplate"), ellipsis: new C("...", O), backQuote: new C("`", N), dollarBraceL: new C("${", { beforeExpr: !0, startsExpr: !0 }), eq: new C("=", { beforeExpr: !0, isAssign: !0 }), assign: new C("_=", { beforeExpr: !0, isAssign: !0 }), incDec: new C("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }), prefix: new C("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), logicalOR: V("||", 1), logicalAND: V("&&", 2), bitwiseOR: V("|", 3), bitwiseXOR: V("^", 4), bitwiseAND: V("&", 5), equality: V("==/!=/===/!==", 6), relational: V("</>/<=/>=", 7), bitShift: V("<</>>/>>>", 8), plusMin: new C("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }), modulo: V("%", 10), star: V("*", 10), slash: V("/", 10), starstar: new C("**", { beforeExpr: !0 }), coalesce: V("??", 1), _break: _("break"), _case: _("case", O), _catch: _("catch"), _continue: _("continue"), _debugger: _("debugger"), _default: _("default", O), _do: _("do", { isLoop: !0, beforeExpr: !0 }), _else: _("else", O), _finally: _("finally"), _for: _("for", { isLoop: !0 }), _function: _("function", N), _if: _("if"), _return: _("return", O), _switch: _("switch"), _throw: _("throw", O), _try: _("try"), _var: _("var"), _const: _("const"), _while: _("while", { isLoop: !0 }), _with: _("with"), _new: _("new", { beforeExpr: !0, startsExpr: !0 }), _this: _("this", N), _super: _("super", N), _class: _("class", N), _extends: _("extends", O), _export: _("export"), _import: _("import", N), _null: _("null", N), _true: _("true", N), _false: _("false", N), _in: _("in", { beforeExpr: !0, binop: 7 }), _instanceof: _("instanceof", { beforeExpr: !0, binop: 7 }), _typeof: _("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), _void: _("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), _delete: _("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 }) }, L = /\r\n?|\n|\u2028|\u2029/, qi = new RegExp(L.source, "g"); yt = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, k = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, gt = Object.prototype, Ji = gt.hasOwnProperty, Ki = gt.toString, $ = Object.hasOwn || (function(e, t) { return Ji.call(e, t); }), ht = Array.isArray || (function(e) { return Ki.call(e) === "[object Array]"; }), pt = /* @__PURE__ */ Object.create(null); Hi = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, ne = function(t, i) { this.line = t, this.column = i; }; ne.prototype.offset = function(t) { return new ne(this.line, this.column + t); }; be = function(t, i, s) { this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile); }; Ue = { ecmaVersion: null, sourceType: "script", onInsertedSemicolon: null, onTrailingComma: null, allowReserved: null, allowReturnOutsideFunction: !1, allowImportExportEverywhere: !1, allowAwaitOutsideFunction: null, allowSuperOutsideMethod: null, allowHashBang: !1, checkPrivateFields: !0, locations: !1, onToken: null, onComment: null, ranges: !1, program: null, sourceFile: null, directSourceFile: null, preserveParens: !1 }, ct = !1; oe = 1, Z = 2, Ke = 4, bt = 8, He = 16, St = 32, Se = 64, _t = 128, z = 256, ue = 512, _e = oe | Z | z; xe = 0, We = 1, K = 2, Ct = 3, Tt = 4, Et = 5, A = function(t, i, s) { this.options = t = Xi(t), this.sourceFile = t.sourceFile, this.keywords = H(Fi[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]); var r = ""; t.allowReserved !== !0 && (r = De[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = H(r); var o = (r ? r + " " : "") + De.strict; this.reservedWordsStrict = H(o), this.reservedWordsStrictBind = H(o + " " + De.strictBind), this.input = String(i), this.containsEsc = !1, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(` `, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(L).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = a.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(oe), this.regexpState = null, this.privateNameStack = []; }, U = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } }; A.prototype.parse = function() { var t = this.options.program || this.startNode(); return this.nextToken(), this.parseTopLevel(t); }; U.inFunction.get = function() { return (this.currentVarScope().flags & Z) > 0; }; U.inGenerator.get = function() { return (this.currentVarScope().flags & bt) > 0; }; U.inAsync.get = function() { return (this.currentVarScope().flags & Ke) > 0; }; U.canAwait.get = function() { for (var e = this.scopeStack.length - 1; e >= 0; e--) { var t = this.scopeStack[e], i = t.flags; if (i & (z | ue)) return !1; if (i & Z) return (i & Ke) > 0; } return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction; }; U.allowSuper.get = function() { var e = this.currentThisScope(), t = e.flags; return (t & Se) > 0 || this.options.allowSuperOutsideMethod; }; U.allowDirectSuper.get = function() { return (this.currentThisScope().flags & _t) > 0; }; U.treatFunctionsAsVar.get = function() { return this.treatFunctionsAsVarInScope(this.currentScope()); }; U.allowNewDotTarget.get = function() { for (var e = this.scopeStack.length - 1; e >= 0; e--) { var t = this.scopeStack[e], i = t.flags; if (i & (z | ue) || i & Z && !(i & He)) return !0; } return !1; }; U.inClassStaticBlock.get = function() { return (this.currentVarScope().flags & z) > 0; }; A.extend = function() { for (var t = [], i = arguments.length; i--; ) t[i] = arguments[i]; for (var s = this, r = 0; r < t.length; r++) s = t[r](s); return s; }; A.parse = function(t, i) { return new this(i, t).parse(); }; A.parseExpressionAt = function(t, i, s) { var r = new this(s, t, i); return r.nextToken(), r.parseExpression(); }; A.tokenizer = function(t, i) { return new this(i, t); }; Object.defineProperties(A.prototype, U); w = A.prototype, zi = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/; w.strictDirective = function(e) { if (this.options.ecmaVersion < 5) return !1; for (; ; ) { k.lastIndex = e, e += k.exec(this.input)[0].length; var t = zi.exec(this.input.slice(e)); if (!t) return !1; if ((t[1] || t[2]) === "use strict") { k.lastIndex = e + t[0].length; var i = k.exec(this.input), s = i.index + i[0].length, r = this.input.charAt(s); return r === ";" || r === "}" || L.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r) || r === "!" && this.input.charAt(s + 1) === "="); } e += t[0].length, k.lastIndex = e, e += k.exec(this.input)[0].length, this.input[e] === ";" && e++; } }; w.eat = function(e) { return this.type === e ? (this.next(), !0) : !1; }; w.isContextual = function(e) { return this.type === a.name && this.value === e && !this.containsEsc; }; w.eatContextual = function(e) { return this.isContextual(e) ? (this.next(), !0) : !1; }; w.expectContextual = function(e) { this.eatContextual(e) || this.unexpected(); }; w.canInsertSemicolon = function() { return this.type === a.eof || this.type === a.braceR || L.test(this.input.slice(this.lastTokEnd, this.start)); }; w.insertSemicolon = function() { if (this.canInsertSemicolon()) return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), !0; }; w.semicolon = function() { !this.eat(a.semi) && !this.insertSemicolon() && this.unexpected(); }; w.afterTrailingComma = function(e, t) { if (this.type === e) return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t || this.next(), !0; }; w.expect = function(e) { this.eat(e) || this.unexpected(); }; w.unexpected = function(e) { this.raise(e ?? this.start, "Unexpected token"); }; Ce = function() { this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1; }; w.checkPatternErrors = function(e, t) { if (e) { e.trailingComma > -1 && this.raiseRecoverable(e.trailingComma, "Comma is not permitted after the rest element"); var i = t ? e.parenthesizedAssign : e.parenthesizedBind; i > -1 && this.raiseRecoverable(i, t ? "Assigning to rvalue" : "Parenthesized pattern"); } }; w.checkExpressionErrors = function(e, t) { if (!e) return !1; var i = e.shorthandAssign, s = e.doubleProto; if (!t) return i >= 0 || s >= 0; i >= 0 && this.raise(i, "Shorthand property assignments are valid only in destructuring patterns"), s >= 0 && this.raiseRecoverable(s, "Redefinition of __pr