UNPKG

vuersatile-components

Version:

[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/brugarolas)

1,641 lines 273 kB
var oi = Object.defineProperty; var li = (e, t, n) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n; var ce = (e, t, n) => (li(e, typeof t != "symbol" ? t + "" : t, n), n); import { h as _s, getCurrentInstance as cn, effectScope as ui, inject as ci, onMounted as di, onUnmounted as hi, ref as gt, computed as $e, watch as qt, Fragment as ye, isRef as fi, createVNode as X, Text as mi, reactive as gs, openBlock as m, createElementBlock as S, normalizeClass as J, resolveComponent as G, createElementVNode as L, mergeProps as Et, toDisplayString as U, createCommentVNode as $, createBlock as ae, renderSlot as ne, Transition as Dt, withCtx as te, withDirectives as pe, normalizeStyle as Ue, vShow as Se, TransitionGroup as dn, renderList as Oe, withModifiers as He, toHandlers as ys, resolveDirective as bs, withKeys as wt, defineComponent as hn, normalizeProps as ut, guardReactiveProps as ct, vModelCheckbox as pi } from "vue"; var fn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function mn(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var vs = { exports: {} }; (function(e, t) { (function(n, i) { e.exports = i(); })(fn, function() { var n = 1e3, i = 6e4, a = 36e5, s = "millisecond", r = "second", l = "minute", o = "hour", d = "day", T = "week", b = "month", f = "quarter", v = "year", I = "date", p = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(B) { var M = ["th", "st", "nd", "rd"], R = B % 100; return "[" + B + (M[(R - 20) % 10] || M[R] || M[0]) + "]"; } }, D = function(B, M, R) { var W = String(B); return !W || W.length >= M ? B : "" + Array(M + 1 - W.length).join(R) + B; }, y = { s: D, z: function(B) { var M = -B.utcOffset(), R = Math.abs(M), W = Math.floor(R / 60), A = R % 60; return (M <= 0 ? "+" : "-") + D(W, 2, "0") + ":" + D(A, 2, "0"); }, m: function B(M, R) { if (M.date() < R.date()) return -B(R, M); var W = 12 * (R.year() - M.year()) + (R.month() - M.month()), A = M.clone().add(W, b), H = R - A < 0, Y = M.clone().add(W + (H ? -1 : 1), b); return +(-(W + (R - A) / (H ? A - Y : Y - A)) || 0); }, a: function(B) { return B < 0 ? Math.ceil(B) || 0 : Math.floor(B); }, p: function(B) { return { M: b, y: v, w: T, d, D: I, h: o, m: l, s: r, ms: s, Q: f }[B] || String(B || "").toLowerCase().replace(/s$/, ""); }, u: function(B) { return B === void 0; } }, g = "en", k = {}; k[g] = _; var w = function(B) { return B instanceof le; }, q = function B(M, R, W) { var A; if (!M) return g; if (typeof M == "string") { var H = M.toLowerCase(); k[H] && (A = H), R && (k[H] = R, A = H); var Y = M.split("-"); if (!A && Y.length > 1) return B(Y[0]); } else { var Z = M.name; k[Z] = M, A = Z; } return !W && A && (g = A), A || !W && g; }, F = function(B, M) { if (w(B)) return B.clone(); var R = typeof M == "object" ? M : {}; return R.date = B, R.args = arguments, new le(R); }, x = y; x.l = q, x.i = w, x.w = function(B, M) { return F(B, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset }); }; var le = function() { function B(R) { this.$L = q(R.locale, null, !0), this.parse(R); } var M = B.prototype; return M.parse = function(R) { this.$d = function(W) { var A = W.date, H = W.utc; if (A === null) return /* @__PURE__ */ new Date(NaN); if (x.u(A)) return /* @__PURE__ */ new Date(); if (A instanceof Date) return new Date(A); if (typeof A == "string" && !/Z$/i.test(A)) { var Y = A.match(N); if (Y) { var Z = Y[2] - 1 || 0, oe = (Y[7] || "0").substring(0, 3); return H ? new Date(Date.UTC(Y[1], Z, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, oe)) : new Date(Y[1], Z, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, oe); } } return new Date(A); }(R), this.$x = R.x || {}, this.init(); }, M.init = function() { var R = this.$d; this.$y = R.getFullYear(), this.$M = R.getMonth(), this.$D = R.getDate(), this.$W = R.getDay(), this.$H = R.getHours(), this.$m = R.getMinutes(), this.$s = R.getSeconds(), this.$ms = R.getMilliseconds(); }, M.$utils = function() { return x; }, M.isValid = function() { return this.$d.toString() !== p; }, M.isSame = function(R, W) { var A = F(R); return this.startOf(W) <= A && A <= this.endOf(W); }, M.isAfter = function(R, W) { return F(R) < this.startOf(W); }, M.isBefore = function(R, W) { return this.endOf(W) < F(R); }, M.$g = function(R, W, A) { return x.u(R) ? this[W] : this.set(A, R); }, M.unix = function() { return Math.floor(this.valueOf() / 1e3); }, M.valueOf = function() { return this.$d.getTime(); }, M.startOf = function(R, W) { var A = this, H = !!x.u(W) || W, Y = x.p(R), Z = function(Me, fe) { var De = x.w(A.$u ? Date.UTC(A.$y, fe, Me) : new Date(A.$y, fe, Me), A); return H ? De : De.endOf(d); }, oe = function(Me, fe) { return x.w(A.toDate()[Me].apply(A.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(fe)), A); }, re = this.$W, he = this.$M, Ae = this.$D, we = "set" + (this.$u ? "UTC" : ""); switch (Y) { case v: return H ? Z(1, 0) : Z(31, 11); case b: return H ? Z(1, he) : Z(0, he + 1); case T: var je = this.$locale().weekStart || 0, ze = (re < je ? re + 7 : re) - je; return Z(H ? Ae - ze : Ae + (6 - ze), he); case d: case I: return oe(we + "Hours", 0); case o: return oe(we + "Minutes", 1); case l: return oe(we + "Seconds", 2); case r: return oe(we + "Milliseconds", 3); default: return this.clone(); } }, M.endOf = function(R) { return this.startOf(R, !1); }, M.$set = function(R, W) { var A, H = x.p(R), Y = "set" + (this.$u ? "UTC" : ""), Z = (A = {}, A[d] = Y + "Date", A[I] = Y + "Date", A[b] = Y + "Month", A[v] = Y + "FullYear", A[o] = Y + "Hours", A[l] = Y + "Minutes", A[r] = Y + "Seconds", A[s] = Y + "Milliseconds", A)[H], oe = H === d ? this.$D + (W - this.$W) : W; if (H === b || H === v) { var re = this.clone().set(I, 1); re.$d[Z](oe), re.init(), this.$d = re.set(I, Math.min(this.$D, re.daysInMonth())).$d; } else Z && this.$d[Z](oe); return this.init(), this; }, M.set = function(R, W) { return this.clone().$set(R, W); }, M.get = function(R) { return this[x.p(R)](); }, M.add = function(R, W) { var A, H = this; R = Number(R); var Y = x.p(W), Z = function(he) { var Ae = F(H); return x.w(Ae.date(Ae.date() + Math.round(he * R)), H); }; if (Y === b) return this.set(b, this.$M + R); if (Y === v) return this.set(v, this.$y + R); if (Y === d) return Z(1); if (Y === T) return Z(7); var oe = (A = {}, A[l] = i, A[o] = a, A[r] = n, A)[Y] || 1, re = this.$d.getTime() + R * oe; return x.w(re, this); }, M.subtract = function(R, W) { return this.add(-1 * R, W); }, M.format = function(R) { var W = this, A = this.$locale(); if (!this.isValid()) return A.invalidDate || p; var H = R || "YYYY-MM-DDTHH:mm:ssZ", Y = x.z(this), Z = this.$H, oe = this.$m, re = this.$M, he = A.weekdays, Ae = A.months, we = function(fe, De, qe, tt) { return fe && (fe[De] || fe(W, H)) || qe[De].slice(0, tt); }, je = function(fe) { return x.s(Z % 12 || 12, fe, "0"); }, ze = A.meridiem || function(fe, De, qe) { var tt = fe < 12 ? "AM" : "PM"; return qe ? tt.toLowerCase() : tt; }, Me = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: re + 1, MM: x.s(re + 1, 2, "0"), MMM: we(A.monthsShort, re, Ae, 3), MMMM: we(Ae, re), D: this.$D, DD: x.s(this.$D, 2, "0"), d: String(this.$W), dd: we(A.weekdaysMin, this.$W, he, 2), ddd: we(A.weekdaysShort, this.$W, he, 3), dddd: he[this.$W], H: String(Z), HH: x.s(Z, 2, "0"), h: je(1), hh: je(2), a: ze(Z, oe, !0), A: ze(Z, oe, !1), m: String(oe), mm: x.s(oe, 2, "0"), s: String(this.$s), ss: x.s(this.$s, 2, "0"), SSS: x.s(this.$ms, 3, "0"), Z: Y }; return H.replace(h, function(fe, De) { return De || Me[fe] || Y.replace(":", ""); }); }, M.utcOffset = function() { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); }, M.diff = function(R, W, A) { var H, Y = x.p(W), Z = F(R), oe = (Z.utcOffset() - this.utcOffset()) * i, re = this - Z, he = x.m(this, Z); return he = (H = {}, H[v] = he / 12, H[b] = he, H[f] = he / 3, H[T] = (re - oe) / 6048e5, H[d] = (re - oe) / 864e5, H[o] = re / a, H[l] = re / i, H[r] = re / n, H)[Y] || re, A ? he : x.a(he); }, M.daysInMonth = function() { return this.endOf(b).$D; }, M.$locale = function() { return k[this.$L]; }, M.locale = function(R, W) { if (!R) return this.$L; var A = this.clone(), H = q(R, W, !0); return H && (A.$L = H), A; }, M.clone = function() { return x.w(this.$d, this); }, M.toDate = function() { return new Date(this.valueOf()); }, M.toJSON = function() { return this.isValid() ? this.toISOString() : null; }, M.toISOString = function() { return this.$d.toISOString(); }, M.toString = function() { return this.$d.toUTCString(); }, B; }(), Ve = le.prototype; return F.prototype = Ve, [["$ms", s], ["$s", r], ["$m", l], ["$H", o], ["$W", d], ["$M", b], ["$y", v], ["$D", I]].forEach(function(B) { Ve[B[1]] = function(M) { return this.$g(M, B[0], B[1]); }; }), F.extend = function(B, M) { return B.$i || (B(M, le, F), B.$i = !0), F; }, F.locale = q, F.isDayjs = w, F.unix = function(B) { return F(1e3 * B); }, F.en = k[g], F.Ls = k, F.p = {}, F; }); })(vs); var _i = vs.exports; const st = /* @__PURE__ */ mn(_i); var Es = { exports: {} }; (function(e, t) { (function(n, i) { e.exports = i(); })(fn, function() { var n = "minute", i = /[+-]\d\d(?::?\d\d)?/g, a = /([+-]|\d\d)/g; return function(s, r, l) { var o = r.prototype; l.utc = function(p) { var N = { date: p, utc: !0, args: arguments }; return new r(N); }, o.utc = function(p) { var N = l(this.toDate(), { locale: this.$L, utc: !0 }); return p ? N.add(this.utcOffset(), n) : N; }, o.local = function() { return l(this.toDate(), { locale: this.$L, utc: !1 }); }; var d = o.parse; o.parse = function(p) { p.utc && (this.$u = !0), this.$utils().u(p.$offset) || (this.$offset = p.$offset), d.call(this, p); }; var T = o.init; o.init = function() { if (this.$u) { var p = this.$d; this.$y = p.getUTCFullYear(), this.$M = p.getUTCMonth(), this.$D = p.getUTCDate(), this.$W = p.getUTCDay(), this.$H = p.getUTCHours(), this.$m = p.getUTCMinutes(), this.$s = p.getUTCSeconds(), this.$ms = p.getUTCMilliseconds(); } else T.call(this); }; var b = o.utcOffset; o.utcOffset = function(p, N) { var h = this.$utils().u; if (h(p)) return this.$u ? 0 : h(this.$offset) ? b.call(this) : this.$offset; if (typeof p == "string" && (p = function(g) { g === void 0 && (g = ""); var k = g.match(i); if (!k) return null; var w = ("" + k[0]).match(a) || ["-", 0, 0], q = w[0], F = 60 * +w[1] + +w[2]; return F === 0 ? 0 : q === "+" ? F : -F; }(p), p === null)) return this; var _ = Math.abs(p) <= 16 ? 60 * p : p, D = this; if (N) return D.$offset = _, D.$u = p === 0, D; if (p !== 0) { var y = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset(); (D = this.local().add(_ + y, n)).$offset = _, D.$x.$localOffset = y; } else D = this.utc(); return D; }; var f = o.format; o.format = function(p) { var N = p || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : ""); return f.call(this, N); }, o.valueOf = function() { var p = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset()); return this.$d.valueOf() - 6e4 * p; }, o.isUTC = function() { return !!this.$u; }, o.toISOString = function() { return this.toDate().toISOString(); }, o.toString = function() { return this.toDate().toUTCString(); }; var v = o.toDate; o.toDate = function(p) { return p === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : v.call(this); }; var I = o.diff; o.diff = function(p, N, h) { if (p && this.$u === p.$u) return I.call(this, p, N, h); var _ = this.local(), D = l(p).local(); return I.call(_, D, N, h); }; }; }); })(Es); var gi = Es.exports; const yi = /* @__PURE__ */ mn(gi); var Ss = { exports: {} }; (function(e, t) { (function(n, i) { e.exports = i(); })(fn, function() { var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, i = {}; return function(a, s, r) { var l, o = function(f, v, I) { I === void 0 && (I = {}); var p = new Date(f), N = function(h, _) { _ === void 0 && (_ = {}); var D = _.timeZoneName || "short", y = h + "|" + D, g = i[y]; return g || (g = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: h, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: D }), i[y] = g), g; }(v, I); return N.formatToParts(p); }, d = function(f, v) { for (var I = o(f, v), p = [], N = 0; N < I.length; N += 1) { var h = I[N], _ = h.type, D = h.value, y = n[_]; y >= 0 && (p[y] = parseInt(D, 10)); } var g = p[3], k = g === 24 ? 0 : g, w = p[0] + "-" + p[1] + "-" + p[2] + " " + k + ":" + p[4] + ":" + p[5] + ":000", q = +f; return (r.utc(w).valueOf() - (q -= q % 1e3)) / 6e4; }, T = s.prototype; T.tz = function(f, v) { f === void 0 && (f = l); var I = this.utcOffset(), p = this.toDate(), N = p.toLocaleString("en-US", { timeZone: f }), h = Math.round((p - new Date(N)) / 1e3 / 60), _ = r(N).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(p.getTimezoneOffset() / 15) - h, !0); if (v) { var D = _.utcOffset(); _ = _.add(I - D, "minute"); } return _.$x.$timezone = f, _; }, T.offsetName = function(f) { var v = this.$x.$timezone || r.tz.guess(), I = o(this.valueOf(), v, { timeZoneName: f }).find(function(p) { return p.type.toLowerCase() === "timezonename"; }); return I && I.value; }; var b = T.startOf; T.startOf = function(f, v) { if (!this.$x || !this.$x.$timezone) return b.call(this, f, v); var I = r(this.format("YYYY-MM-DD HH:mm:ss:SSS")); return b.call(I, f, v).tz(this.$x.$timezone, !0); }, r.tz = function(f, v, I) { var p = I && v, N = I || v || l, h = d(+r(), N); if (typeof f != "string") return r(f).tz(N); var _ = function(k, w, q) { var F = k - 60 * w * 1e3, x = d(F, q); if (w === x) return [F, w]; var le = d(F -= 60 * (x - w) * 1e3, q); return x === le ? [F, x] : [k - 60 * Math.min(x, le) * 1e3, Math.max(x, le)]; }(r.utc(f, p).valueOf(), h, N), D = _[0], y = _[1], g = r(D).utcOffset(y); return g.$x.$timezone = N, g; }, r.tz.guess = function() { return Intl.DateTimeFormat().resolvedOptions().timeZone; }, r.tz.setDefault = function(f) { l = f; }; }; }); })(Ss); var bi = Ss.exports; const vi = /* @__PURE__ */ mn(bi); /*! * shared v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. */ const Ye = typeof window < "u"; let Le, rt; if (process.env.NODE_ENV !== "production") { const e = Ye && window.performance; e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (Le = (t) => e.mark(t), rt = (t, n, i) => { e.measure(t, n, i), e.clearMarks(n), e.clearMarks(i); }); } const Ei = /\{([0-9a-zA-Z]+)\}/g; function Rt(e, ...t) { return t.length === 1 && se(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ei, (n, i) => t.hasOwnProperty(i) ? t[i] : ""); } const Si = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", We = (e) => Si ? Symbol(e) : e, Oi = (e, t, n) => Di({ l: e, k: t, s: n }), Di = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), Ti = (e) => _n(e) === "[object Date]", It = (e) => _n(e) === "[object RegExp]", At = (e) => Q(e) && Object.keys(e).length === 0; function ot(e, t) { typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack)); } const ve = Object.assign; let Dn; const Ni = () => Dn || (Dn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}); function Tn(e) { return e.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;"); } const Ci = Object.prototype.hasOwnProperty; function pn(e, t) { return Ci.call(e, t); } const de = Array.isArray, _e = (e) => typeof e == "function", P = (e) => typeof e == "string", ue = (e) => typeof e == "boolean", se = (e) => ( // eslint-disable-line e !== null && typeof e == "object" ), Os = Object.prototype.toString, _n = (e) => Os.call(e), Q = (e) => _n(e) === "[object Object]", ki = (e) => e == null ? "" : de(e) || Q(e) && e.toString === Os ? JSON.stringify(e, null, 2) : String(e), Nn = 2; function wi(e, t = 0, n = e.length) { const i = e.split(/\r?\n/); let a = 0; const s = []; for (let r = 0; r < i.length; r++) if (a += i[r].length + 1, a >= t) { for (let l = r - Nn; l <= r + Nn || n > a; l++) { if (l < 0 || l >= i.length) continue; const o = l + 1; s.push(`${o}${" ".repeat(3 - String(o).length)}| ${i[l]}`); const d = i[l].length; if (l === r) { const T = t - (a - d) + 1, b = Math.max(1, n > a ? d - T : n - t); s.push(" | " + " ".repeat(T) + "^".repeat(b)); } else if (l > r) { if (n > a) { const T = Math.max(Math.min(n - a, d), 1); s.push(" | " + "^".repeat(T)); } a += d + 1; } } break; } return s.join(` `); } function Ds() { const e = /* @__PURE__ */ new Map(); return { events: e, on(n, i) { const a = e.get(n); a && a.push(i) || e.set(n, [i]); }, off(n, i) { const a = e.get(n); a && a.splice(a.indexOf(i) >>> 0, 1); }, emit(n, i) { (e.get(n) || []).slice().map((a) => a(i)), (e.get("*") || []).slice().map((a) => a(n, i)); } }; } /*! * message-compiler v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. */ const K = { // tokenizer error codes EXPECTED_TOKEN: 1, INVALID_TOKEN_IN_PLACEHOLDER: 2, UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3, UNKNOWN_ESCAPE_SEQUENCE: 4, INVALID_UNICODE_ESCAPE_SEQUENCE: 5, UNBALANCED_CLOSING_BRACE: 6, UNTERMINATED_CLOSING_BRACE: 7, EMPTY_PLACEHOLDER: 8, NOT_ALLOW_NEST_PLACEHOLDER: 9, INVALID_LINKED_FORMAT: 10, // parser error codes MUST_HAVE_MESSAGES_IN_PLURAL: 11, UNEXPECTED_EMPTY_LINKED_MODIFIER: 12, UNEXPECTED_EMPTY_LINKED_KEY: 13, UNEXPECTED_LEXICAL_ANALYSIS: 14, // Special value for higher-order compilers to pick up the last code // to avoid collision of error codes. This should always be kept as the last // item. __EXTEND_POINT__: 15 }, Ii = { // tokenizer error messages [K.EXPECTED_TOKEN]: "Expected token: '{0}'", [K.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'", [K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder", [K.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}", [K.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}", [K.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace", [K.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace", [K.EMPTY_PLACEHOLDER]: "Empty placeholder", [K.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder", [K.INVALID_LINKED_FORMAT]: "Invalid linked format", // parser error messages [K.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages", [K.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier", [K.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key", [K.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'" }; function Mt(e, t, n = {}) { const { domain: i, messages: a, args: s } = n, r = process.env.NODE_ENV !== "production" ? Rt((a || Ii)[e] || "", ...s || []) : e, l = new SyntaxError(String(r)); return l.code = e, t && (l.location = t), l.domain = i, l; } function Li(e) { throw e; } function Ri(e, t, n) { return { line: e, column: t, offset: n }; } function Xt(e, t, n) { const i = { start: e, end: t }; return n != null && (i.source = n), i; } const Je = " ", Ai = "\r", Ne = ` `, Mi = String.fromCharCode(8232), Vi = String.fromCharCode(8233); function Pi(e) { const t = e; let n = 0, i = 1, a = 1, s = 0; const r = (w) => t[w] === Ai && t[w + 1] === Ne, l = (w) => t[w] === Ne, o = (w) => t[w] === Vi, d = (w) => t[w] === Mi, T = (w) => r(w) || l(w) || o(w) || d(w), b = () => n, f = () => i, v = () => a, I = () => s, p = (w) => r(w) || o(w) || d(w) ? Ne : t[w], N = () => p(n), h = () => p(n + s); function _() { return s = 0, T(n) && (i++, a = 0), r(n) && n++, n++, a++, t[n]; } function D() { return r(n + s) && s++, s++, t[n + s]; } function y() { n = 0, i = 1, a = 1, s = 0; } function g(w = 0) { s = w; } function k() { const w = n + s; for (; w !== n; ) _(); s = 0; } return { index: b, line: f, column: v, peekOffset: I, charAt: p, currentChar: N, currentPeek: h, next: _, peek: D, reset: y, resetPeek: g, skipToPeek: k }; } const nt = void 0, Cn = "'", $i = "tokenizer"; function Fi(e, t = {}) { const n = t.location !== !1, i = Pi(e), a = () => i.index(), s = () => Ri(i.line(), i.column(), i.index()), r = s(), l = a(), o = { currentType: 14, offset: l, startLoc: r, endLoc: r, lastType: 14, lastOffset: l, lastStartLoc: r, lastEndLoc: r, braceNest: 0, inLinked: !1, text: "" }, d = () => o, { onError: T } = t; function b(u, c, O, ...V) { const j = d(); if (c.column += O, c.offset += O, T) { const ee = Xt(j.startLoc, c), Fe = Mt(u, ee, { domain: $i, args: V }); T(Fe); } } function f(u, c, O) { u.endLoc = s(), u.currentType = c; const V = { type: c }; return n && (V.loc = Xt(u.startLoc, u.endLoc)), O != null && (V.value = O), V; } const v = (u) => f( u, 14 /* EOF */ ); function I(u, c) { return u.currentChar() === c ? (u.next(), c) : (b(K.EXPECTED_TOKEN, s(), 0, c), ""); } function p(u) { let c = ""; for (; u.currentPeek() === Je || u.currentPeek() === Ne; ) c += u.currentPeek(), u.peek(); return c; } function N(u) { const c = p(u); return u.skipToPeek(), c; } function h(u) { if (u === nt) return !1; const c = u.charCodeAt(0); return c >= 97 && c <= 122 || // a-z c >= 65 && c <= 90 || // A-Z c === 95; } function _(u) { if (u === nt) return !1; const c = u.charCodeAt(0); return c >= 48 && c <= 57; } function D(u, c) { const { currentType: O } = c; if (O !== 2) return !1; p(u); const V = h(u.currentPeek()); return u.resetPeek(), V; } function y(u, c) { const { currentType: O } = c; if (O !== 2) return !1; p(u); const V = u.currentPeek() === "-" ? u.peek() : u.currentPeek(), j = _(V); return u.resetPeek(), j; } function g(u, c) { const { currentType: O } = c; if (O !== 2) return !1; p(u); const V = u.currentPeek() === Cn; return u.resetPeek(), V; } function k(u, c) { const { currentType: O } = c; if (O !== 8) return !1; p(u); const V = u.currentPeek() === "."; return u.resetPeek(), V; } function w(u, c) { const { currentType: O } = c; if (O !== 9) return !1; p(u); const V = h(u.currentPeek()); return u.resetPeek(), V; } function q(u, c) { const { currentType: O } = c; if (!(O === 8 || O === 12)) return !1; p(u); const V = u.currentPeek() === ":"; return u.resetPeek(), V; } function F(u, c) { const { currentType: O } = c; if (O !== 10) return !1; const V = () => { const ee = u.currentPeek(); return ee === "{" ? h(u.peek()) : ee === "@" || ee === "%" || ee === "|" || ee === ":" || ee === "." || ee === Je || !ee ? !1 : ee === Ne ? (u.peek(), V()) : h(ee); }, j = V(); return u.resetPeek(), j; } function x(u) { p(u); const c = u.currentPeek() === "|"; return u.resetPeek(), c; } function le(u) { const c = p(u), O = u.currentPeek() === "%" && u.peek() === "{"; return u.resetPeek(), { isModulo: O, hasSpace: c.length > 0 }; } function Ve(u, c = !0) { const O = (j = !1, ee = "", Fe = !1) => { const Xe = u.currentPeek(); return Xe === "{" ? ee === "%" ? !1 : j : Xe === "@" || !Xe ? ee === "%" ? !0 : j : Xe === "%" ? (u.peek(), O(j, "%", !0)) : Xe === "|" ? ee === "%" || Fe ? !0 : !(ee === Je || ee === Ne) : Xe === Je ? (u.peek(), O(!0, Je, Fe)) : Xe === Ne ? (u.peek(), O(!0, Ne, Fe)) : !0; }, V = O(); return c && u.resetPeek(), V; } function B(u, c) { const O = u.currentChar(); return O === nt ? nt : c(O) ? (u.next(), O) : null; } function M(u) { return B(u, (O) => { const V = O.charCodeAt(0); return V >= 97 && V <= 122 || // a-z V >= 65 && V <= 90 || // A-Z V >= 48 && V <= 57 || // 0-9 V === 95 || // _ V === 36; }); } function R(u) { return B(u, (O) => { const V = O.charCodeAt(0); return V >= 48 && V <= 57; }); } function W(u) { return B(u, (O) => { const V = O.charCodeAt(0); return V >= 48 && V <= 57 || // 0-9 V >= 65 && V <= 70 || // A-F V >= 97 && V <= 102; }); } function A(u) { let c = "", O = ""; for (; c = R(u); ) O += c; return O; } function H(u) { N(u); const c = u.currentChar(); return c !== "%" && b(K.EXPECTED_TOKEN, s(), 0, c), u.next(), "%"; } function Y(u) { let c = ""; for (; ; ) { const O = u.currentChar(); if (O === "{" || O === "}" || O === "@" || O === "|" || !O) break; if (O === "%") if (Ve(u)) c += O, u.next(); else break; else if (O === Je || O === Ne) if (Ve(u)) c += O, u.next(); else { if (x(u)) break; c += O, u.next(); } else c += O, u.next(); } return c; } function Z(u) { N(u); let c = "", O = ""; for (; c = M(u); ) O += c; return u.currentChar() === nt && b(K.UNTERMINATED_CLOSING_BRACE, s(), 0), O; } function oe(u) { N(u); let c = ""; return u.currentChar() === "-" ? (u.next(), c += `-${A(u)}`) : c += A(u), u.currentChar() === nt && b(K.UNTERMINATED_CLOSING_BRACE, s(), 0), c; } function re(u) { N(u), I(u, "'"); let c = "", O = ""; const V = (ee) => ee !== Cn && ee !== Ne; for (; c = B(u, V); ) c === "\\" ? O += he(u) : O += c; const j = u.currentChar(); return j === Ne || j === nt ? (b(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), j === Ne && (u.next(), I(u, "'")), O) : (I(u, "'"), O); } function he(u) { const c = u.currentChar(); switch (c) { case "\\": case "'": return u.next(), `\\${c}`; case "u": return Ae(u, c, 4); case "U": return Ae(u, c, 6); default: return b(K.UNKNOWN_ESCAPE_SEQUENCE, s(), 0, c), ""; } } function Ae(u, c, O) { I(u, c); let V = ""; for (let j = 0; j < O; j++) { const ee = W(u); if (!ee) { b(K.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${c}${V}${u.currentChar()}`); break; } V += ee; } return `\\${c}${V}`; } function we(u) { N(u); let c = "", O = ""; const V = (j) => j !== "{" && j !== "}" && j !== Je && j !== Ne; for (; c = B(u, V); ) O += c; return O; } function je(u) { let c = "", O = ""; for (; c = M(u); ) O += c; return O; } function ze(u) { const c = (O = !1, V) => { const j = u.currentChar(); return j === "{" || j === "%" || j === "@" || j === "|" || !j || j === Je ? V : j === Ne ? (V += j, u.next(), c(O, V)) : (V += j, u.next(), c(!0, V)); }; return c(!1, ""); } function Me(u) { N(u); const c = I( u, "|" /* Pipe */ ); return N(u), c; } function fe(u, c) { let O = null; switch (u.currentChar()) { case "{": return c.braceNest >= 1 && b(K.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0), u.next(), O = f( c, 2, "{" /* BraceLeft */ ), N(u), c.braceNest++, O; case "}": return c.braceNest > 0 && c.currentType === 2 && b(K.EMPTY_PLACEHOLDER, s(), 0), u.next(), O = f( c, 3, "}" /* BraceRight */ ), c.braceNest--, c.braceNest > 0 && N(u), c.inLinked && c.braceNest === 0 && (c.inLinked = !1), O; case "@": return c.braceNest > 0 && b(K.UNTERMINATED_CLOSING_BRACE, s(), 0), O = De(u, c) || v(c), c.braceNest = 0, O; default: let j = !0, ee = !0, Fe = !0; if (x(u)) return c.braceNest > 0 && b(K.UNTERMINATED_CLOSING_BRACE, s(), 0), O = f(c, 1, Me(u)), c.braceNest = 0, c.inLinked = !1, O; if (c.braceNest > 0 && (c.currentType === 5 || c.currentType === 6 || c.currentType === 7)) return b(K.UNTERMINATED_CLOSING_BRACE, s(), 0), c.braceNest = 0, qe(u, c); if (j = D(u, c)) return O = f(c, 5, Z(u)), N(u), O; if (ee = y(u, c)) return O = f(c, 6, oe(u)), N(u), O; if (Fe = g(u, c)) return O = f(c, 7, re(u)), N(u), O; if (!j && !ee && !Fe) return O = f(c, 13, we(u)), b(K.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, O.value), N(u), O; break; } return O; } function De(u, c) { const { currentType: O } = c; let V = null; const j = u.currentChar(); switch ((O === 8 || O === 9 || O === 12 || O === 10) && (j === Ne || j === Je) && b(K.INVALID_LINKED_FORMAT, s(), 0), j) { case "@": return u.next(), V = f( c, 8, "@" /* LinkedAlias */ ), c.inLinked = !0, V; case ".": return N(u), u.next(), f( c, 9, "." /* LinkedDot */ ); case ":": return N(u), u.next(), f( c, 10, ":" /* LinkedDelimiter */ ); default: return x(u) ? (V = f(c, 1, Me(u)), c.braceNest = 0, c.inLinked = !1, V) : k(u, c) || q(u, c) ? (N(u), De(u, c)) : w(u, c) ? (N(u), f(c, 12, je(u))) : F(u, c) ? (N(u), j === "{" ? fe(u, c) || V : f(c, 11, ze(u))) : (O === 8 && b(K.INVALID_LINKED_FORMAT, s(), 0), c.braceNest = 0, c.inLinked = !1, qe(u, c)); } } function qe(u, c) { let O = { type: 14 /* EOF */ }; if (c.braceNest > 0) return fe(u, c) || v(c); if (c.inLinked) return De(u, c) || v(c); switch (u.currentChar()) { case "{": return fe(u, c) || v(c); case "}": return b(K.UNBALANCED_CLOSING_BRACE, s(), 0), u.next(), f( c, 3, "}" /* BraceRight */ ); case "@": return De(u, c) || v(c); default: if (x(u)) return O = f(c, 1, Me(u)), c.braceNest = 0, c.inLinked = !1, O; const { isModulo: j, hasSpace: ee } = le(u); if (j) return ee ? f(c, 0, Y(u)) : f(c, 4, H(u)); if (Ve(u)) return f(c, 0, Y(u)); break; } return O; } function tt() { const { currentType: u, offset: c, startLoc: O, endLoc: V } = o; return o.lastType = u, o.lastOffset = c, o.lastStartLoc = O, o.lastEndLoc = V, o.offset = a(), o.startLoc = s(), i.currentChar() === nt ? f( o, 14 /* EOF */ ) : qe(i, o); } return { nextToken: tt, currentOffset: a, currentPosition: s, context: d }; } const xi = "parser", Bi = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g; function Ui(e, t, n) { switch (e) { case "\\\\": return "\\"; case "\\'": return "'"; default: { const i = parseInt(t || n, 16); return i <= 55295 || i >= 57344 ? String.fromCodePoint(i) : "�"; } } } function Hi(e = {}) { const t = e.location !== !1, { onError: n } = e; function i(h, _, D, y, ...g) { const k = h.currentPosition(); if (k.offset += y, k.column += y, n) { const w = Xt(D, k), q = Mt(_, w, { domain: xi, args: g }); n(q); } } function a(h, _, D) { const y = { type: h, start: _, end: _ }; return t && (y.loc = { start: D, end: D }), y; } function s(h, _, D, y) { h.end = _, y && (h.type = y), t && h.loc && (h.loc.end = D); } function r(h, _) { const D = h.context(), y = a(3, D.offset, D.startLoc); return y.value = _, s(y, h.currentOffset(), h.currentPosition()), y; } function l(h, _) { const D = h.context(), { lastOffset: y, lastStartLoc: g } = D, k = a(5, y, g); return k.index = parseInt(_, 10), h.nextToken(), s(k, h.currentOffset(), h.currentPosition()), k; } function o(h, _) { const D = h.context(), { lastOffset: y, lastStartLoc: g } = D, k = a(4, y, g); return k.key = _, h.nextToken(), s(k, h.currentOffset(), h.currentPosition()), k; } function d(h, _) { const D = h.context(), { lastOffset: y, lastStartLoc: g } = D, k = a(9, y, g); return k.value = _.replace(Bi, Ui), h.nextToken(), s(k, h.currentOffset(), h.currentPosition()), k; } function T(h) { const _ = h.nextToken(), D = h.context(), { lastOffset: y, lastStartLoc: g } = D, k = a(8, y, g); return _.type !== 12 ? (i(h, K.UNEXPECTED_EMPTY_LINKED_MODIFIER, D.lastStartLoc, 0), k.value = "", s(k, y, g), { nextConsumeToken: _, node: k }) : (_.value == null && i(h, K.UNEXPECTED_LEXICAL_ANALYSIS, D.lastStartLoc, 0, xe(_)), k.value = _.value || "", s(k, h.currentOffset(), h.currentPosition()), { node: k }); } function b(h, _) { const D = h.context(), y = a(7, D.offset, D.startLoc); return y.value = _, s(y, h.currentOffset(), h.currentPosition()), y; } function f(h) { const _ = h.context(), D = a(6, _.offset, _.startLoc); let y = h.nextToken(); if (y.type === 9) { const g = T(h); D.modifier = g.node, y = g.nextConsumeToken || h.nextToken(); } switch (y.type !== 10 && i(h, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, xe(y)), y = h.nextToken(), y.type === 2 && (y = h.nextToken()), y.type) { case 11: y.value == null && i(h, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, xe(y)), D.key = b(h, y.value || ""); break; case 5: y.value == null && i(h, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, xe(y)), D.key = o(h, y.value || ""); break; case 6: y.value == null && i(h, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, xe(y)), D.key = l(h, y.value || ""); break; case 7: y.value == null && i(h, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, xe(y)), D.key = d(h, y.value || ""); break; default: i(h, K.UNEXPECTED_EMPTY_LINKED_KEY, _.lastStartLoc, 0); const g = h.context(), k = a(7, g.offset, g.startLoc); return k.value = "", s(k, g.offset, g.startLoc), D.key = k, s(D, g.offset, g.startLoc), { nextConsumeToken: y, node: D }; } return s(D, h.currentOffset(), h.currentPosition()), { node: D }; } function v(h) { const _ = h.context(), D = _.currentType === 1 ? h.currentOffset() : _.offset, y = _.currentType === 1 ? _.endLoc : _.startLoc, g = a(2, D, y); g.items = []; let k = null; do { const F = k || h.nextToken(); switch (k = null, F.type) { case 0: F.value == null && i(h, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, xe(F)), g.items.push(r(h, F.value || "")); break; case 6: F.value == null && i(h, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, xe(F)), g.items.push(l(h, F.value || "")); break; case 5: F.value == null && i(h, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, xe(F)), g.items.push(o(h, F.value || "")); break; case 7: F.value == null && i(h, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, xe(F)), g.items.push(d(h, F.value || "")); break; case 8: const x = f(h); g.items.push(x.node), k = x.nextConsumeToken || null; break; } } while (_.currentType !== 14 && _.currentType !== 1); const w = _.currentType === 1 ? _.lastOffset : h.currentOffset(), q = _.currentType === 1 ? _.lastEndLoc : h.currentPosition(); return s(g, w, q), g; } function I(h, _, D, y) { const g = h.context(); let k = y.items.length === 0; const w = a(1, _, D); w.cases = [], w.cases.push(y); do { const q = v(h); k || (k = q.items.length === 0), w.cases.push(q); } while (g.currentType !== 14); return k && i(h, K.MUST_HAVE_MESSAGES_IN_PLURAL, D, 0), s(w, h.currentOffset(), h.currentPosition()), w; } function p(h) { const _ = h.context(), { offset: D, startLoc: y } = _, g = v(h); return _.currentType === 14 ? g : I(h, D, y, g); } function N(h) { const _ = Fi(h, ve({}, e)), D = _.context(), y = a(0, D.offset, D.startLoc); return t && y.loc && (y.loc.source = h), y.body = p(_), D.currentType !== 14 && i(_, K.UNEXPECTED_LEXICAL_ANALYSIS, D.lastStartLoc, 0, h[D.offset] || ""), s(y, _.currentOffset(), _.currentPosition()), y; } return { parse: N }; } function xe(e) { if (e.type === 14) return "EOF"; const t = (e.value || "").replace(/\r?\n/gu, "\\n"); return t.length > 10 ? t.slice(0, 9) + "…" : t; } function Yi(e, t = {}) { const n = { ast: e, helpers: /* @__PURE__ */ new Set() }; return { context: () => n, helper: (s) => (n.helpers.add(s), s) }; } function kn(e, t) { for (let n = 0; n < e.length; n++) gn(e[n], t); } function gn(e, t) { switch (e.type) { case 1: kn(e.cases, t), t.helper( "plural" /* PLURAL */ ); break; case 2: kn(e.items, t); break; case 6: gn(e.key, t), t.helper( "linked" /* LINKED */ ), t.helper( "type" /* TYPE */ ); break; case 5: t.helper( "interpolate" /* INTERPOLATE */ ), t.helper( "list" /* LIST */ ); break; case 4: t.helper( "interpolate" /* INTERPOLATE */ ), t.helper( "named" /* NAMED */ ); break; } } function Wi(e, t = {}) { const n = Yi(e); n.helper( "normalize" /* NORMALIZE */ ), e.body && gn(e.body, n); const i = n.context(); e.helpers = Array.from(i.helpers); } function Ki(e, t) { const { sourceMap: n, filename: i, breakLineCode: a, needIndent: s } = t, r = { source: e.loc.source, filename: i, code: "", column: 1, line: 1, offset: 0, map: void 0, breakLineCode: a, needIndent: s, indentLevel: 0 }, l = () => r; function o(p, N) { r.code += p; } function d(p, N = !0) { const h = N ? a : ""; o(s ? h + " ".repeat(p) : h); } function T(p = !0) { const N = ++r.indentLevel; p && d(N); } function b(p = !0) { const N = --r.indentLevel; p && d(N); } function f() { d(r.indentLevel); } return { context: l, push: o, indent: T, deindent: b, newline: f, helper: (p) => `_${p}`, needIndent: () => r.needIndent }; } function Gi(e, t) { const { helper: n } = e; e.push(`${n( "linked" /* LINKED */ )}(`), pt(e, t.key), t.modifier ? (e.push(", "), pt(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")"); } function ji(e, t) { const { helper: n, needIndent: i } = e; e.push(`${n( "normalize" /* NORMALIZE */ )}([`), e.indent(i()); const a = t.items.length; for (let s = 0; s < a && (pt(e, t.items[s]), s !== a - 1); s++) e.push(", "); e.deindent(i()), e.push("])"); } function zi(e, t) { const { helper: n, needIndent: i } = e; if (t.cases.length > 1) { e.push(`${n( "plural" /* PLURAL */ )}([`), e.indent(i()); const a = t.cases.length; for (let s = 0; s < a && (pt(e, t.cases[s]), s !== a - 1); s++) e.push(", "); e.deindent(i()), e.push("])"); } } function qi(e, t) { t.body ? pt(e, t.body) : e.push("null"); } function pt(e, t) { const { helper: n } = e; switch (t.type) { case 0: qi(e, t); break; case 1: zi(e, t); break; case 2: ji(e, t); break; case 6: Gi(e, t); break; case 8: e.push(JSON.stringify(t.value), t); break; case 7: e.push(JSON.stringify(t.value), t); break; case 5: e.push(`${n( "interpolate" /* INTERPOLATE */ )}(${n( "list" /* LIST */ )}(${t.index}))`, t); break; case 4: e.push(`${n( "interpolate" /* INTERPOLATE */ )}(${n( "named" /* NAMED */ )}(${JSON.stringify(t.key)}))`, t); break; case 9: e.push(JSON.stringify(t.value), t); break; case 3: e.push(JSON.stringify(t.value), t); break; default: if (process.env.NODE_ENV !== "production") throw new Error(`unhandled codegen node type: ${t.type}`); } } const Xi = (e, t = {}) => { const n = P(t.mode) ? t.mode : "normal", i = P(t.filename) ? t.filename : "message.intl", a = !!t.sourceMap, s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : ` `, r = t.needIndent ? t.needIndent : n !== "arrow", l = e.helpers || [], o = Ki(e, { mode: n, filename: i, sourceMap: a, breakLineCode: s, needIndent: r }); o.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), o.indent(r), l.length > 0 && (o.push(`const { ${l.map((b) => `${b}: _${b}`).join(", ")} } = ctx`), o.newline()), o.push("return "), pt(o, e), o.deindent(r), o.push("}"); const { code: d, map: T } = o.context(); return { ast: e, code: d, map: T ? T.toJSON() : void 0 // eslint-disable-line @typescript-eslint/no-explicit-any }; }; function Ji(e, t = {}) { const n = ve({}, t), a = Hi(n).parse(e); return Wi(a, n), Xi(a, n); } /*! * devtools-if v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. */ const Ts = { I18nInit: "i18n:init", FunctionTranslate: "function:translate" }; /*! * core-base v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. */ const it = []; it[ 0 /* BEFORE_PATH */ ] = { w: [ 0 /* BEFORE_PATH */ ], i: [ 3, 0 /* APPEND */ ], [ "[" /* LEFT_BRACKET */ ]: [ 4 /* IN_SUB_PATH */ ], o: [ 7 /* AFTER_PATH */ ] }; it[ 1 /* IN_PATH */ ] = { w: [ 1 /* IN_PATH */ ], [ "." /* DOT */ ]: [ 2 /* BEFORE_IDENT */ ], [ "[" /* LEFT_BRACKET */ ]: [ 4 /* IN_SUB_PATH */ ], o: [ 7 /* AFTER_PATH */ ] }; it[ 2 /* BEFORE_IDENT */ ] = { w: [ 2 /* BEFORE_IDENT */ ], i: [ 3, 0 /* APPEND */ ], [ 0 /* ZERO */ ]: [ 3, 0 /* APPEND */ ] }; it[ 3 /* IN_IDENT */ ] = { i: [ 3, 0 /* APPEND */ ], [ 0 /* ZERO */ ]: [ 3, 0 /* APPEND */ ], w: [ 1, 1 /* PUSH */ ], [ "." /* DOT */ ]: [ 2, 1 /* PUSH */ ], [ "[" /* LEFT_BRACKET */ ]: [ 4, 1 /* PUSH */ ], o: [ 7, 1 /* PUSH */ ] }; it[ 4 /* IN_SUB_PATH */ ] = { [ "'" /* SINGLE_QUOTE */ ]: [ 5, 0 /* APPEND */ ], [ '"' /* DOUBLE_QUOTE */ ]: [ 6, 0 /* APPEND */ ], [ "[" /* LEFT_BRACKET */ ]: [ 4, 2 /* INC_SUB_PATH_DEPTH */ ], [ "]" /* RIGHT_BRACKET */ ]: [ 1, 3 /* PUSH_SUB_PATH */ ], o: 8, l: [ 4, 0 /* APPEND */ ] }; it[ 5 /* IN_SINGLE_QUOTE */ ] = { [ "'" /* SINGLE_QUOTE */ ]: [ 4, 0 /* APPEND */ ], o: 8, l: [ 5, 0 /* APPEND */ ] }; it[ 6 /* IN_DOUBLE_QUOTE */ ] = { [ '"' /* DOUBLE_QUOTE */ ]: [ 4, 0 /* APPEND */ ], o: 8, l: [ 6, 0 /* APPEND */ ] }; const Qi = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/; function Zi(e) { return Qi.test(e); } function ea(e) { const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1); return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e; } function ta(e) { if (e == null) return "o"; switch (e.charCodeAt(0)) { case 91: case 93: case 46: case 34: case 39: return e; case 95: case 36: case 45: return "i"; case 9: case 10: case 13: case 160: case 65279: case 8232: case 8233: return "w"; } return "i"; } function na(e) { const t = e.trim(); return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Zi(t) ? ea(t) : "*" + t; } function sa(e) { const t = []; let n = -1, i = 0, a = 0, s, r, l, o, d, T, b; const f = []; f[ 0 /* APPEND */ ] = () => { r === void 0 ? r = l : r += l; }, f[ 1 /* PUSH */ ] = () => { r !== void 0 && (t.push(r), r = void 0); }, f[ 2 /* INC_SUB_PATH_DEPTH */ ] = () => { f[ 0 /* APPEND */ ](), a++; }, f[ 3 /* PUSH_SUB_PATH */ ] = () => { if (a > 0) a--, i = 4, f[ 0 /* APPEND */ ](); else { if (a = 0, r === void 0 || (r = na(r), r === !1)) return !1; f[ 1 /* PUSH */ ](); } }; function v() { const I = e[n + 1]; if (i === 5 && I === "'" || i === 6 && I === '"') return n++, l = "\\" + I, f[ 0 /* APPEND */ ](), !0; } for (; i !== null; ) if (n++, s = e[n], !(s === "\\" && v())) { if (o = ta(s), b = it[i], d = b[o] || b.l || 8, d === 8 || (i = d[0], d[1] !== void 0 && (T = f[d[1]], T && (l = s, T() === !1)))) return; if (i === 7) return t; } } const wn = /* @__PURE__ */ new Map(); function ia(e, t) { return se(e) ? e[t] : null; } function aa(e, t) { if (!se(e)) return null; let n = wn.get(t); if (n || (n = sa(t), n && wn.set(t, n)), !n) return null; const i = n.length; let a = e, s = 0; for (; s < i; ) { const r = a[n[s]]; if (r === void 0) return null; a = r, s++; } return a; } const ra = (e) => e, oa = (e) => "", la = "text", ua = (e) => e.length === 0 ? "" : e.join(""), ca = ki; function In(e, t) { return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0; } function da(e) { const t = ge(e.pluralIndex) ? e.pluralIndex : -1; return e.named && (ge(e.named.count) || ge(e.named.n)) ? ge(e.named.count) ? e.named.count : ge(e.named.n) ? e.named.n : t : t; } function ha(e, t) { t.count || (t.count = e), t.n || (t.n = e); } function fa(e = {}) { const t = e.locale, n = da(e), i = se(e.pluralRules) && P(t) && _e(e.pluralRules[t]) ? e.pluralRules[t] : In, a = se(e.pluralRules) && P(t) && _e(e.pluralRules[t]) ? In : void 0, s = (h) => h[i(n, h.length, a)], r = e.list || [], l = (h) => r[h], o = e.named || {}; ge(e.pluralIndex) && ha(n, o); const d = (h) => o[h]; function T(h) { const _ = _e(e.message