UNPKG

@uozi-admin/curd

Version:
1,770 lines 251 kB
import { cloneDeep as qn, get as It, set as ho, isNumber as Xr, debounce as ha, isObject as As, isArray as _a, isNil as mr, isEqual as ks, merge as Cs } from "lodash-es"; import { getCurrentInstance as bn, inject as _o, ref as de, shallowRef as Ps, computed as ve, watch as nt, onMounted as qr, onUnmounted as Rs, effectScope as Ms, isRef as Fs, defineComponent as ge, h as rr, Fragment as gt, createVNode as B, Text as $s, toRaw as Us, reactive as en, createBlock as re, openBlock as G, unref as S, mergeProps as Oe, withCtx as z, createElementBlock as $e, renderList as ar, createCommentVNode as Pe, mergeModels as Se, useModel as Te, createTextVNode as xe, toDisplayString as fe, readonly as vo, toRef as xs, customRef as Vs, nextTick as go, renderSlot as Fe, normalizeProps as Eo, guardReactiveProps as bo, createElementVNode as ut, normalizeClass as Ar, watchEffect as Ws, createSlots as Ys, withDirectives as Bs, vShow as Hs } from "vue"; import { Descriptions as Gs, DescriptionsItem as Ks, Cascader as js, CheckboxGroup as Xs, DatePicker as qs, Input as yo, InputNumber as zs, InputGroup as Qs, InputPassword as Js, Button as dt, RadioGroup as To, RangePicker as Zs, Rate as el, Select as So, Form as or, FormItem as No, Flex as pn, Table as tl, Popconfirm as pr, Modal as kr, Slider as nl, Switch as rl, TimePicker as al, FormItemRest as Io, RadioButton as va, UploadDragger as ol, Progress as sl, Textarea as ll, Row as il, Col as ul, Card as cl, Spin as dl, Checkbox as fl, Divider as ml, message as xt, Image as pl } from "ant-design-vue"; import { useConfigContextInject as hl } from "ant-design-vue/es/config-provider/context"; import { useRouter as _l, useRoute as Oo } from "vue-router"; import { utils as hr, writeFile as vl } from "xlsx"; import { HolderOutlined as gl, FileOutlined as ga, FolderOutlined as El, InboxOutlined as bl, DeleteOutlined as yl } from "@ant-design/icons-vue"; /*! * shared v11.1.3 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */ const pt = typeof window < "u"; let rt, Ht; if (process.env.NODE_ENV !== "production") { const e = pt && window.performance; e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat e.clearMeasures && (rt = (t) => { e.mark(t); }, Ht = (t, n, r) => { e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r); }); } const Tl = /\{([0-9a-zA-Z]+)\}/g; function sr(e, ...t) { return t.length === 1 && le(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Tl, (n, r) => t.hasOwnProperty(r) ? t[r] : ""); } const Tt = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Sl = (e, t, n) => Nl({ l: e, k: t, s: n }), Nl = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Me = (e) => typeof e == "number" && isFinite(e), Il = (e) => zr(e) === "[object Date]", nn = (e) => zr(e) === "[object RegExp]", lr = (e) => ne(e) && Object.keys(e).length === 0, Ue = Object.assign, Ol = Object.create, me = (e = null) => Ol(e); let Ea; const Bt = () => Ea || (Ea = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : me()); function ba(e) { return e.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;"); } const wl = Object.prototype.hasOwnProperty; function ft(e, t) { return wl.call(e, t); } const Ae = Array.isArray, pe = (e) => typeof e == "function", $ = (e) => typeof e == "string", ie = (e) => typeof e == "boolean", le = (e) => e !== null && typeof e == "object", Dl = (e) => le(e) && pe(e.then) && pe(e.catch), wo = Object.prototype.toString, zr = (e) => wo.call(e), ne = (e) => zr(e) === "[object Object]", Ll = (e) => e == null ? "" : Ae(e) || ne(e) && e.toString === wo ? JSON.stringify(e, null, 2) : String(e); function Qr(e, t = "") { return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, ""); } const ya = 2; function Al(e, t = 0, n = e.length) { const r = e.split(/\r?\n/); let a = 0; const o = []; for (let s = 0; s < r.length; s++) if (a += r[s].length + 1, a >= t) { for (let l = s - ya; l <= s + ya || n > a; l++) { if (l < 0 || l >= r.length) continue; const i = l + 1; o.push(`${i}${" ".repeat(3 - String(i).length)}| ${r[l]}`); const c = r[l].length; if (l === s) { const f = t - (a - c) + 1, u = Math.max(1, n > a ? c - f : n - t); o.push(" | " + " ".repeat(f) + "^".repeat(u)); } else if (l > s) { if (n > a) { const f = Math.max(Math.min(n - a, c), 1); o.push(" | " + "^".repeat(f)); } a += c + 1; } } break; } return o.join(` `); } function Pt(e, t) { typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack)); } const Ta = {}; function Jr(e) { Ta[e] || (Ta[e] = !0, Pt(e)); } function Zr() { const e = /* @__PURE__ */ new Map(); return { events: e, on(n, r) { const a = e.get(n); a && a.push(r) || e.set(n, [r]); }, off(n, r) { const a = e.get(n); a && a.splice(a.indexOf(r) >>> 0, 1); }, emit(n, r) { (e.get(n) || []).slice().map((a) => a(r)), (e.get("*") || []).slice().map((a) => a(n, r)); } }; } const Cn = (e) => !le(e) || Ae(e); function Vn(e, t) { if (Cn(e) || Cn(t)) throw new Error("Invalid value"); const n = [{ src: e, des: t }]; for (; n.length; ) { const { src: r, des: a } = n.pop(); Object.keys(r).forEach((o) => { o !== "__proto__" && (le(r[o]) && !le(a[o]) && (a[o] = Array.isArray(r[o]) ? [] : me()), Cn(a[o]) || Cn(r[o]) ? a[o] = r[o] : n.push({ src: r[o], des: a[o] })); }); } } /*! * message-compiler v11.1.3 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */ function kl(e, t, n) { return { line: e, column: t, offset: n }; } function Cr(e, t, n) { return { start: e, end: t }; } const Z = { // 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, // generator error codes UNHANDLED_CODEGEN_NODE_TYPE: 15, // minifier error codes UNHANDLED_MINIFIER_NODE_TYPE: 16 }, Cl = 17, Pl = { // tokenizer error messages [Z.EXPECTED_TOKEN]: "Expected token: '{0}'", [Z.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'", [Z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder", [Z.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}", [Z.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}", [Z.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace", [Z.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace", [Z.EMPTY_PLACEHOLDER]: "Empty placeholder", [Z.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder", [Z.INVALID_LINKED_FORMAT]: "Invalid linked format", // parser error messages [Z.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages", [Z.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier", [Z.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key", [Z.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'", // generator error messages [Z.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'", // minimizer error messages [Z.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'" }; function on(e, t, n = {}) { const { domain: r, messages: a, args: o } = n, s = process.env.NODE_ENV !== "production" ? sr((a || Pl)[e] || "", ...o || []) : e, l = new SyntaxError(String(s)); return l.code = e, t && (l.location = t), l.domain = r, l; } function Rl(e) { throw e; } const Ml = /<\/?[\w\s="/.':;#-\/]+>/, Fl = (e) => Ml.test(e), St = " ", $l = "\r", Ge = ` `, Ul = "\u2028", xl = "\u2029"; function Vl(e) { const t = e; let n = 0, r = 1, a = 1, o = 0; const s = (I) => t[I] === $l && t[I + 1] === Ge, l = (I) => t[I] === Ge, i = (I) => t[I] === xl, c = (I) => t[I] === Ul, f = (I) => s(I) || l(I) || i(I) || c(I), u = () => n, d = () => r, v = () => a, T = () => o, y = (I) => s(I) || i(I) || c(I) ? Ge : t[I], w = () => y(n), h = () => y(n + o); function _() { return o = 0, f(n) && (r++, a = 0), s(n) && n++, n++, a++, t[n]; } function E() { return s(n + o) && o++, o++, t[n + o]; } function b() { n = 0, r = 1, a = 1, o = 0; } function D(I = 0) { o = I; } function O() { const I = n + o; for (; I !== n; ) _(); o = 0; } return { index: u, line: d, column: v, peekOffset: T, charAt: y, currentChar: w, currentPeek: h, next: _, peek: E, reset: b, resetPeek: D, skipToPeek: O }; } const Lt = void 0, Wl = ".", Sa = "'", Yl = "tokenizer"; function Bl(e, t = {}) { const n = t.location !== !1, r = Vl(e), a = () => r.index(), o = () => kl(r.line(), r.column(), r.index()), s = o(), l = a(), i = { currentType: 13, offset: l, startLoc: s, endLoc: s, lastType: 13, lastOffset: l, lastStartLoc: s, lastEndLoc: s, braceNest: 0, inLinked: !1, text: "" }, c = () => i, { onError: f } = t; function u(m, p, L, ...K) { const we = c(); if (p.column += L, p.offset += L, f) { const De = n ? Cr(we.startLoc, p) : null, ue = on(m, De, { domain: Yl, args: K }); f(ue); } } function d(m, p, L) { m.endLoc = o(), m.currentType = p; const K = { type: p }; return n && (K.loc = Cr(m.startLoc, m.endLoc)), L != null && (K.value = L), K; } const v = (m) => d( m, 13 /* TokenTypes.EOF */ ); function T(m, p) { return m.currentChar() === p ? (m.next(), p) : (u(Z.EXPECTED_TOKEN, o(), 0, p), ""); } function y(m) { let p = ""; for (; m.currentPeek() === St || m.currentPeek() === Ge; ) p += m.currentPeek(), m.peek(); return p; } function w(m) { const p = y(m); return m.skipToPeek(), p; } function h(m) { if (m === Lt) return !1; const p = m.charCodeAt(0); return p >= 97 && p <= 122 || // a-z p >= 65 && p <= 90 || // A-Z p === 95; } function _(m) { if (m === Lt) return !1; const p = m.charCodeAt(0); return p >= 48 && p <= 57; } function E(m, p) { const { currentType: L } = p; if (L !== 2) return !1; y(m); const K = h(m.currentPeek()); return m.resetPeek(), K; } function b(m, p) { const { currentType: L } = p; if (L !== 2) return !1; y(m); const K = m.currentPeek() === "-" ? m.peek() : m.currentPeek(), we = _(K); return m.resetPeek(), we; } function D(m, p) { const { currentType: L } = p; if (L !== 2) return !1; y(m); const K = m.currentPeek() === Sa; return m.resetPeek(), K; } function O(m, p) { const { currentType: L } = p; if (L !== 7) return !1; y(m); const K = m.currentPeek() === "."; return m.resetPeek(), K; } function I(m, p) { const { currentType: L } = p; if (L !== 8) return !1; y(m); const K = h(m.currentPeek()); return m.resetPeek(), K; } function x(m, p) { const { currentType: L } = p; if (!(L === 7 || L === 11)) return !1; y(m); const K = m.currentPeek() === ":"; return m.resetPeek(), K; } function V(m, p) { const { currentType: L } = p; if (L !== 9) return !1; const K = () => { const De = m.currentPeek(); return De === "{" ? h(m.peek()) : De === "@" || De === "|" || De === ":" || De === "." || De === St || !De ? !1 : De === Ge ? (m.peek(), K()) : X(m, !1); }, we = K(); return m.resetPeek(), we; } function j(m) { y(m); const p = m.currentPeek() === "|"; return m.resetPeek(), p; } function X(m, p = !0) { const L = (we = !1, De = "") => { const ue = m.currentPeek(); return ue === "{" || ue === "@" || !ue ? we : ue === "|" ? !(De === St || De === Ge) : ue === St ? (m.peek(), L(!0, St)) : ue === Ge ? (m.peek(), L(!0, Ge)) : !0; }, K = L(); return p && m.resetPeek(), K; } function se(m, p) { const L = m.currentChar(); return L === Lt ? Lt : p(L) ? (m.next(), L) : null; } function Ee(m) { const p = m.charCodeAt(0); return p >= 97 && p <= 122 || // a-z p >= 65 && p <= 90 || // A-Z p >= 48 && p <= 57 || // 0-9 p === 95 || // _ p === 36; } function Y(m) { return se(m, Ee); } function F(m) { const p = m.charCodeAt(0); return p >= 97 && p <= 122 || // a-z p >= 65 && p <= 90 || // A-Z p >= 48 && p <= 57 || // 0-9 p === 95 || // _ p === 36 || // $ p === 45; } function P(m) { return se(m, F); } function U(m) { const p = m.charCodeAt(0); return p >= 48 && p <= 57; } function M(m) { return se(m, U); } function q(m) { const p = m.charCodeAt(0); return p >= 48 && p <= 57 || // 0-9 p >= 65 && p <= 70 || // A-F p >= 97 && p <= 102; } function H(m) { return se(m, q); } function te(m) { let p = "", L = ""; for (; p = M(m); ) L += p; return L; } function g(m) { let p = ""; for (; ; ) { const L = m.currentChar(); if (L === "{" || L === "}" || L === "@" || L === "|" || !L) break; if (L === St || L === Ge) if (X(m)) p += L, m.next(); else { if (j(m)) break; p += L, m.next(); } else p += L, m.next(); } return p; } function A(m) { w(m); let p = "", L = ""; for (; p = P(m); ) L += p; return m.currentChar() === Lt && u(Z.UNTERMINATED_CLOSING_BRACE, o(), 0), L; } function k(m) { w(m); let p = ""; return m.currentChar() === "-" ? (m.next(), p += `-${te(m)}`) : p += te(m), m.currentChar() === Lt && u(Z.UNTERMINATED_CLOSING_BRACE, o(), 0), p; } function W(m) { return m !== Sa && m !== Ge; } function ke(m) { w(m), T(m, "'"); let p = "", L = ""; for (; p = se(m, W); ) p === "\\" ? L += Ke(m) : L += p; const K = m.currentChar(); return K === Ge || K === Lt ? (u(Z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), K === Ge && (m.next(), T(m, "'")), L) : (T(m, "'"), L); } function Ke(m) { const p = m.currentChar(); switch (p) { case "\\": case "'": return m.next(), `\\${p}`; case "u": return je(m, p, 4); case "U": return je(m, p, 6); default: return u(Z.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, p), ""; } } function je(m, p, L) { T(m, p); let K = ""; for (let we = 0; we < L; we++) { const De = H(m); if (!De) { u(Z.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${p}${K}${m.currentChar()}`); break; } K += De; } return `\\${p}${K}`; } function Je(m) { return m !== "{" && m !== "}" && m !== St && m !== Ge; } function he(m) { w(m); let p = "", L = ""; for (; p = se(m, Je); ) L += p; return L; } function Be(m) { let p = "", L = ""; for (; p = Y(m); ) L += p; return L; } function at(m) { const p = (L) => { const K = m.currentChar(); return K === "{" || K === "@" || K === "|" || K === "(" || K === ")" || !K || K === St ? L : (L += K, m.next(), p(L)); }; return p(""); } function Ze(m) { w(m); const p = T( m, "|" /* TokenChars.Pipe */ ); return w(m), p; } function sn(m, p) { let L = null; switch (m.currentChar()) { case "{": return p.braceNest >= 1 && u(Z.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), m.next(), L = d( p, 2, "{" /* TokenChars.BraceLeft */ ), w(m), p.braceNest++, L; case "}": return p.braceNest > 0 && p.currentType === 2 && u(Z.EMPTY_PLACEHOLDER, o(), 0), m.next(), L = d( p, 3, "}" /* TokenChars.BraceRight */ ), p.braceNest--, p.braceNest > 0 && w(m), p.inLinked && p.braceNest === 0 && (p.inLinked = !1), L; case "@": return p.braceNest > 0 && u(Z.UNTERMINATED_CLOSING_BRACE, o(), 0), L = Ft(m, p) || v(p), p.braceNest = 0, L; default: { let we = !0, De = !0, ue = !0; if (j(m)) return p.braceNest > 0 && u(Z.UNTERMINATED_CLOSING_BRACE, o(), 0), L = d(p, 1, Ze(m)), p.braceNest = 0, p.inLinked = !1, L; if (p.braceNest > 0 && (p.currentType === 4 || p.currentType === 5 || p.currentType === 6)) return u(Z.UNTERMINATED_CLOSING_BRACE, o(), 0), p.braceNest = 0, ln(m, p); if (we = E(m, p)) return L = d(p, 4, A(m)), w(m), L; if (De = b(m, p)) return L = d(p, 5, k(m)), w(m), L; if (ue = D(m, p)) return L = d(p, 6, ke(m)), w(m), L; if (!we && !De && !ue) return L = d(p, 12, he(m)), u(Z.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, L.value), w(m), L; break; } } return L; } function Ft(m, p) { const { currentType: L } = p; let K = null; const we = m.currentChar(); switch ((L === 7 || L === 8 || L === 11 || L === 9) && (we === Ge || we === St) && u(Z.INVALID_LINKED_FORMAT, o(), 0), we) { case "@": return m.next(), K = d( p, 7, "@" /* TokenChars.LinkedAlias */ ), p.inLinked = !0, K; case ".": return w(m), m.next(), d( p, 8, "." /* TokenChars.LinkedDot */ ); case ":": return w(m), m.next(), d( p, 9, ":" /* TokenChars.LinkedDelimiter */ ); default: return j(m) ? (K = d(p, 1, Ze(m)), p.braceNest = 0, p.inLinked = !1, K) : O(m, p) || x(m, p) ? (w(m), Ft(m, p)) : I(m, p) ? (w(m), d(p, 11, Be(m))) : V(m, p) ? (w(m), we === "{" ? sn(m, p) || K : d(p, 10, at(m))) : (L === 7 && u(Z.INVALID_LINKED_FORMAT, o(), 0), p.braceNest = 0, p.inLinked = !1, ln(m, p)); } } function ln(m, p) { let L = { type: 13 /* TokenTypes.EOF */ }; if (p.braceNest > 0) return sn(m, p) || v(p); if (p.inLinked) return Ft(m, p) || v(p); switch (m.currentChar()) { case "{": return sn(m, p) || v(p); case "}": return u(Z.UNBALANCED_CLOSING_BRACE, o(), 0), m.next(), d( p, 3, "}" /* TokenChars.BraceRight */ ); case "@": return Ft(m, p) || v(p); default: { if (j(m)) return L = d(p, 1, Ze(m)), p.braceNest = 0, p.inLinked = !1, L; if (X(m)) return d(p, 0, g(m)); break; } } return L; } function fr() { const { currentType: m, offset: p, startLoc: L, endLoc: K } = i; return i.lastType = m, i.lastOffset = p, i.lastStartLoc = L, i.lastEndLoc = K, i.offset = a(), i.startLoc = o(), r.currentChar() === Lt ? d( i, 13 /* TokenTypes.EOF */ ) : ln(r, i); } return { nextToken: fr, currentOffset: a, currentPosition: o, context: c }; } const Hl = "parser", Gl = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g; function Kl(e, t, n) { switch (e) { case "\\\\": return "\\"; // eslint-disable-next-line no-useless-escape case "\\'": return "'"; default: { const r = parseInt(t || n, 16); return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�"; } } } function jl(e = {}) { const t = e.location !== !1, { onError: n } = e; function r(h, _, E, b, ...D) { const O = h.currentPosition(); if (O.offset += b, O.column += b, n) { const I = t ? Cr(E, O) : null, x = on(_, I, { domain: Hl, args: D }); n(x); } } function a(h, _, E) { const b = { type: h }; return t && (b.start = _, b.end = _, b.loc = { start: E, end: E }), b; } function o(h, _, E, b) { t && (h.end = _, h.loc && (h.loc.end = E)); } function s(h, _) { const E = h.context(), b = a(3, E.offset, E.startLoc); return b.value = _, o(b, h.currentOffset(), h.currentPosition()), b; } function l(h, _) { const E = h.context(), { lastOffset: b, lastStartLoc: D } = E, O = a(5, b, D); return O.index = parseInt(_, 10), h.nextToken(), o(O, h.currentOffset(), h.currentPosition()), O; } function i(h, _) { const E = h.context(), { lastOffset: b, lastStartLoc: D } = E, O = a(4, b, D); return O.key = _, h.nextToken(), o(O, h.currentOffset(), h.currentPosition()), O; } function c(h, _) { const E = h.context(), { lastOffset: b, lastStartLoc: D } = E, O = a(9, b, D); return O.value = _.replace(Gl, Kl), h.nextToken(), o(O, h.currentOffset(), h.currentPosition()), O; } function f(h) { const _ = h.nextToken(), E = h.context(), { lastOffset: b, lastStartLoc: D } = E, O = a(8, b, D); return _.type !== 11 ? (r(h, Z.UNEXPECTED_EMPTY_LINKED_MODIFIER, E.lastStartLoc, 0), O.value = "", o(O, b, D), { nextConsumeToken: _, node: O }) : (_.value == null && r(h, Z.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, _t(_)), O.value = _.value || "", o(O, h.currentOffset(), h.currentPosition()), { node: O }); } function u(h, _) { const E = h.context(), b = a(7, E.offset, E.startLoc); return b.value = _, o(b, h.currentOffset(), h.currentPosition()), b; } function d(h) { const _ = h.context(), E = a(6, _.offset, _.startLoc); let b = h.nextToken(); if (b.type === 8) { const D = f(h); E.modifier = D.node, b = D.nextConsumeToken || h.nextToken(); } switch (b.type !== 9 && r(h, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(b)), b = h.nextToken(), b.type === 2 && (b = h.nextToken()), b.type) { case 10: b.value == null && r(h, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(b)), E.key = u(h, b.value || ""); break; case 4: b.value == null && r(h, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(b)), E.key = i(h, b.value || ""); break; case 5: b.value == null && r(h, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(b)), E.key = l(h, b.value || ""); break; case 6: b.value == null && r(h, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(b)), E.key = c(h, b.value || ""); break; default: { r(h, Z.UNEXPECTED_EMPTY_LINKED_KEY, _.lastStartLoc, 0); const D = h.context(), O = a(7, D.offset, D.startLoc); return O.value = "", o(O, D.offset, D.startLoc), E.key = O, o(E, D.offset, D.startLoc), { nextConsumeToken: b, node: E }; } } return o(E, h.currentOffset(), h.currentPosition()), { node: E }; } function v(h) { const _ = h.context(), E = _.currentType === 1 ? h.currentOffset() : _.offset, b = _.currentType === 1 ? _.endLoc : _.startLoc, D = a(2, E, b); D.items = []; let O = null; do { const V = O || h.nextToken(); switch (O = null, V.type) { case 0: V.value == null && r(h, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(V)), D.items.push(s(h, V.value || "")); break; case 5: V.value == null && r(h, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(V)), D.items.push(l(h, V.value || "")); break; case 4: V.value == null && r(h, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(V)), D.items.push(i(h, V.value || "")); break; case 6: V.value == null && r(h, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(V)), D.items.push(c(h, V.value || "")); break; case 7: { const j = d(h); D.items.push(j.node), O = j.nextConsumeToken || null; break; } } } while (_.currentType !== 13 && _.currentType !== 1); const I = _.currentType === 1 ? _.lastOffset : h.currentOffset(), x = _.currentType === 1 ? _.lastEndLoc : h.currentPosition(); return o(D, I, x), D; } function T(h, _, E, b) { const D = h.context(); let O = b.items.length === 0; const I = a(1, _, E); I.cases = [], I.cases.push(b); do { const x = v(h); O || (O = x.items.length === 0), I.cases.push(x); } while (D.currentType !== 13); return O && r(h, Z.MUST_HAVE_MESSAGES_IN_PLURAL, E, 0), o(I, h.currentOffset(), h.currentPosition()), I; } function y(h) { const _ = h.context(), { offset: E, startLoc: b } = _, D = v(h); return _.currentType === 13 ? D : T(h, E, b, D); } function w(h) { const _ = Bl(h, Ue({}, e)), E = _.context(), b = a(0, E.offset, E.startLoc); return t && b.loc && (b.loc.source = h), b.body = y(_), e.onCacheKey && (b.cacheKey = e.onCacheKey(h)), E.currentType !== 13 && r(_, Z.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, h[E.offset] || ""), o(b, _.currentOffset(), _.currentPosition()), b; } return { parse: w }; } function _t(e) { if (e.type === 13) return "EOF"; const t = (e.value || "").replace(/\r?\n/gu, "\\n"); return t.length > 10 ? t.slice(0, 9) + "…" : t; } function Xl(e, t = {}) { const n = { ast: e, helpers: /* @__PURE__ */ new Set() }; return { context: () => n, helper: (o) => (n.helpers.add(o), o) }; } function Na(e, t) { for (let n = 0; n < e.length; n++) ea(e[n], t); } function ea(e, t) { switch (e.type) { case 1: Na(e.cases, t), t.helper( "plural" /* HelperNameMap.PLURAL */ ); break; case 2: Na(e.items, t); break; case 6: { ea(e.key, t), t.helper( "linked" /* HelperNameMap.LINKED */ ), t.helper( "type" /* HelperNameMap.TYPE */ ); break; } case 5: t.helper( "interpolate" /* HelperNameMap.INTERPOLATE */ ), t.helper( "list" /* HelperNameMap.LIST */ ); break; case 4: t.helper( "interpolate" /* HelperNameMap.INTERPOLATE */ ), t.helper( "named" /* HelperNameMap.NAMED */ ); break; } } function ql(e, t = {}) { const n = Xl(e); n.helper( "normalize" /* HelperNameMap.NORMALIZE */ ), e.body && ea(e.body, n); const r = n.context(); e.helpers = Array.from(r.helpers); } function zl(e) { const t = e.body; return t.type === 2 ? Ia(t) : t.cases.forEach((n) => Ia(n)), e; } function Ia(e) { if (e.items.length === 1) { const t = e.items[0]; (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value); } else { const t = []; for (let n = 0; n < e.items.length; n++) { const r = e.items[n]; if (!(r.type === 3 || r.type === 9) || r.value == null) break; t.push(r.value); } if (t.length === e.items.length) { e.static = Qr(t); for (let n = 0; n < e.items.length; n++) { const r = e.items[n]; (r.type === 3 || r.type === 9) && delete r.value; } } } } const Ql = "minifier"; function Qt(e) { switch (e.t = e.type, e.type) { case 0: { const t = e; Qt(t.body), t.b = t.body, delete t.body; break; } case 1: { const t = e, n = t.cases; for (let r = 0; r < n.length; r++) Qt(n[r]); t.c = n, delete t.cases; break; } case 2: { const t = e, n = t.items; for (let r = 0; r < n.length; r++) Qt(n[r]); t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static); break; } case 3: case 9: case 8: case 7: { const t = e; t.value && (t.v = t.value, delete t.value); break; } case 6: { const t = e; Qt(t.key), t.k = t.key, delete t.key, t.modifier && (Qt(t.modifier), t.m = t.modifier, delete t.modifier); break; } case 5: { const t = e; t.i = t.index, delete t.index; break; } case 4: { const t = e; t.k = t.key, delete t.key; break; } default: if (process.env.NODE_ENV !== "production") throw on(Z.UNHANDLED_MINIFIER_NODE_TYPE, null, { domain: Ql, args: [e.type] }); } delete e.type; } const Jl = "parser"; function Zl(e, t) { const { filename: n, breakLineCode: r, needIndent: a } = t, o = t.location !== !1, s = { filename: n, code: "", column: 1, line: 1, offset: 0, map: void 0, breakLineCode: r, needIndent: a, indentLevel: 0 }; o && e.loc && (s.source = e.loc.source); const l = () => s; function i(y, w) { s.code += y; } function c(y, w = !0) { const h = w ? r : ""; i(a ? h + " ".repeat(y) : h); } function f(y = !0) { const w = ++s.indentLevel; y && c(w); } function u(y = !0) { const w = --s.indentLevel; y && c(w); } function d() { c(s.indentLevel); } return { context: l, push: i, indent: f, deindent: u, newline: d, helper: (y) => `_${y}`, needIndent: () => s.needIndent }; } function ei(e, t) { const { helper: n } = e; e.push(`${n( "linked" /* HelperNameMap.LINKED */ )}(`), rn(e, t.key), t.modifier ? (e.push(", "), rn(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")"); } function ti(e, t) { const { helper: n, needIndent: r } = e; e.push(`${n( "normalize" /* HelperNameMap.NORMALIZE */ )}([`), e.indent(r()); const a = t.items.length; for (let o = 0; o < a && (rn(e, t.items[o]), o !== a - 1); o++) e.push(", "); e.deindent(r()), e.push("])"); } function ni(e, t) { const { helper: n, needIndent: r } = e; if (t.cases.length > 1) { e.push(`${n( "plural" /* HelperNameMap.PLURAL */ )}([`), e.indent(r()); const a = t.cases.length; for (let o = 0; o < a && (rn(e, t.cases[o]), o !== a - 1); o++) e.push(", "); e.deindent(r()), e.push("])"); } } function ri(e, t) { t.body ? rn(e, t.body) : e.push("null"); } function rn(e, t) { const { helper: n } = e; switch (t.type) { case 0: ri(e, t); break; case 1: ni(e, t); break; case 2: ti(e, t); break; case 6: ei(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" /* HelperNameMap.INTERPOLATE */ )}(${n( "list" /* HelperNameMap.LIST */ )}(${t.index}))`, t); break; case 4: e.push(`${n( "interpolate" /* HelperNameMap.INTERPOLATE */ )}(${n( "named" /* HelperNameMap.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 on(Z.UNHANDLED_CODEGEN_NODE_TYPE, null, { domain: Jl, args: [t.type] }); } } const ai = (e, t = {}) => { const n = $(t.mode) ? t.mode : "normal", r = $(t.filename) ? t.filename : "message.intl"; t.sourceMap; const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : ` `, o = t.needIndent ? t.needIndent : n !== "arrow", s = e.helpers || [], l = Zl(e, { filename: r, breakLineCode: a, needIndent: o }); l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(o), s.length > 0 && (l.push(`const { ${Qr(s.map((f) => `${f}: _${f}`), ", ")} } = ctx`), l.newline()), l.push("return "), rn(l, e), l.deindent(o), l.push("}"), delete e.helpers; const { code: i, map: c } = l.context(); return { ast: e, code: i, map: c ? c.toJSON() : void 0 // eslint-disable-line @typescript-eslint/no-explicit-any }; }; function oi(e, t = {}) { const n = Ue({}, t), r = !!n.jit, a = !!n.minify, o = n.optimize == null ? !0 : n.optimize, l = jl(n).parse(e); return r ? (o && zl(l), a && Qt(l), { ast: l, code: "" }) : (ql(l, n), ai(l, n)); } /*! * core-base v11.1.3 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */ function si() { typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Bt().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Bt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1); } function lt(e) { return le(e) && ta(e) === 0 && (ft(e, "b") || ft(e, "body")); } const Do = ["b", "body"]; function li(e) { return Rt(e, Do); } const Lo = ["c", "cases"]; function ii(e) { return Rt(e, Lo, []); } const Ao = ["s", "static"]; function ui(e) { return Rt(e, Ao); } const ko = ["i", "items"]; function ci(e) { return Rt(e, ko, []); } const Co = ["t", "type"]; function ta(e) { return Rt(e, Co); } const Po = ["v", "value"]; function Pn(e, t) { const n = Rt(e, Po); if (n != null) return n; throw yn(t); } const Ro = ["m", "modifier"]; function di(e) { return Rt(e, Ro); } const Mo = ["k", "key"]; function fi(e) { const t = Rt(e, Mo); if (t) return t; throw yn( 6 /* NodeTypes.Linked */ ); } function Rt(e, t, n) { for (let r = 0; r < t.length; r++) { const a = t[r]; if (ft(e, a) && e[a] != null) return e[a]; } return n; } const Fo = [ ...Do, ...Lo, ...Ao, ...ko, ...Mo, ...Ro, ...Po, ...Co ]; function yn(e) { return new Error(`unhandled node type: ${e}`); } function _r(e) { return (n) => mi(n, e); } function mi(e, t) { const n = li(t); if (n == null) throw yn( 0 /* NodeTypes.Resource */ ); if (ta(n) === 1) { const o = ii(n); return e.plural(o.reduce((s, l) => [ ...s, Oa(e, l) ], [])); } else return Oa(e, n); } function Oa(e, t) { const n = ui(t); if (n != null) return e.type === "text" ? n : e.normalize([n]); { const r = ci(t).reduce((a, o) => [...a, Pr(e, o)], []); return e.normalize(r); } } function Pr(e, t) { const n = ta(t); switch (n) { case 3: return Pn(t, n); case 9: return Pn(t, n); case 4: { const r = t; if (ft(r, "k") && r.k) return e.interpolate(e.named(r.k)); if (ft(r, "key") && r.key) return e.interpolate(e.named(r.key)); throw yn(n); } case 5: { const r = t; if (ft(r, "i") && Me(r.i)) return e.interpolate(e.list(r.i)); if (ft(r, "index") && Me(r.index)) return e.interpolate(e.list(r.index)); throw yn(n); } case 6: { const r = t, a = di(r), o = fi(r); return e.linked(Pr(e, o), a ? Pr(e, a) : void 0, e.type); } case 7: return Pn(t, n); case 8: return Pn(t, n); default: throw new Error(`unhandled node on format message part: ${n}`); } } const pi = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS."; function hi(e, t) { t && Fl(e) && Pt(sr(pi, { source: e })); } const _i = (e) => e; let Rn = me(); function vi(e, t = {}) { let n = !1; const r = t.onError || Rl; return t.onError = (a) => { n = !0, r(a); }, { ...oi(e, t), detectError: n }; } // @__NO_SIDE_EFFECTS__ function gi(e, t) { if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && $(e)) { const n = ie(t.warnHtmlMessage) ? t.warnHtmlMessage : !0; process.env.NODE_ENV !== "production" && hi(e, n); const a = (t.onCacheKey || _i)(e), o = Rn[a]; if (o) return o; const { ast: s, detectError: l } = vi(e, { ...t, location: process.env.NODE_ENV !== "production", jit: !0 }), i = _r(s); return l ? i : Rn[a] = i; } else { if (process.env.NODE_ENV !== "production" && !lt(e)) return Pt(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e; const n = e.cacheKey; if (n) { const r = Rn[n]; return r || (Rn[n] = _r(e)); } else return _r(e); } } let Tn = null; function Ei(e) { Tn = e; } function bi(e, t, n) { Tn && Tn.emit("i18n:init", { timestamp: Date.now(), i18n: e, version: t, meta: n }); } const yi = /* @__PURE__ */ Ti("function:translate"); function Ti(e) { return (t) => Tn && Tn.emit(e, t); } const Ye = { INVALID_ARGUMENT: Cl, // 17 INVALID_DATE_ARGUMENT: 18, INVALID_ISO_DATE_ARGUMENT: 19, NOT_SUPPORT_NON_STRING_MESSAGE: 20, NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21, NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22, NOT_SUPPORT_LOCALE_TYPE: 23 }, Si = 24; function Nt(e) { return on(e, null, process.env.NODE_ENV !== "production" ? { messages: Ni } : void 0); } const Ni = { [Ye.INVALID_ARGUMENT]: "Invalid arguments", [Ye.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.", [Ye.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string", [Ye.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message", [Ye.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value", [Ye.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function", [Ye.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type" }; function na(e, t) { return t.locale != null ? wa(t.locale) : wa(e.locale); } let vr; function wa(e) { if ($(e)) return e; if (pe(e)) { if (e.resolvedOnce && vr != null) return vr; if (e.constructor.name === "Function") { const t = e(); if (Dl(t)) throw Nt(Ye.NOT_SUPPORT_LOCALE_PROMISE_VALUE); return vr = t; } else throw Nt(Ye.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION); } else throw Nt(Ye.NOT_SUPPORT_LOCALE_TYPE); } function Ii(e, t, n) { return [.../* @__PURE__ */ new Set([ n, ...Ae(t) ? t : le(t) ? Object.keys(t) : $(t) ? [t] : [n] ])]; } function $o(e, t, n) { const r = $(n) ? n : Sn, a = e; a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map()); let o = a.__localeChainCache.get(r); if (!o) { o = []; let s = [n]; for (; Ae(s); ) s = Da(o, s, t); const l = Ae(t) || !ne(t) ? t : t.default ? t.default : null; s = $(l) ? [l] : l, Ae(s) && Da(o, s, !1), a.__localeChainCache.set(r, o); } return o; } function Da(e, t, n) { let r = !0; for (let a = 0; a < t.length && ie(r); a++) { const o = t[a]; $(o) && (r = Oi(e, t[a], n)); } return r; } function Oi(e, t, n) { let r; const a = t.split("-"); do { const o = a.join("-"); r = wi(e, o, n), a.splice(-1, 1); } while (a.length && r === !0); return r; } function wi(e, t, n) { let r = !1; if (!e.includes(t) && (r = !0, t)) { r = t[t.length - 1] !== "!"; const a = t.replace(/!/g, ""); e.push(a), (Ae(n) || ne(n)) && n[a] && (r = n[a]); } return r; } const Mt = []; Mt[ 0 /* States.BEFORE_PATH */ ] = { w: [ 0 /* States.BEFORE_PATH */ ], i: [ 3, 0 /* Actions.APPEND */ ], "[": [ 4 /* States.IN_SUB_PATH */ ], o: [ 7 /* States.AFTER_PATH */ ] }; Mt[ 1 /* States.IN_PATH */ ] = { w: [ 1 /* States.IN_PATH */ ], ".": [ 2 /* States.BEFORE_IDENT */ ], "[": [ 4 /* States.IN_SUB_PATH */ ], o: [ 7 /* States.AFTER_PATH */ ] }; Mt[ 2 /* States.BEFORE_IDENT */ ] = { w: [ 2 /* States.BEFORE_IDENT */ ], i: [ 3, 0 /* Actions.APPEND */ ], 0: [ 3, 0 /* Actions.APPEND */ ] }; Mt[ 3 /* States.IN_IDENT */ ] = { i: [ 3, 0 /* Actions.APPEND */ ], 0: [ 3, 0 /* Actions.APPEND */ ], w: [ 1, 1 /* Actions.PUSH */ ], ".": [ 2, 1 /* Actions.PUSH */ ], "[": [ 4, 1 /* Actions.PUSH */ ], o: [ 7, 1 /* Actions.PUSH */ ] }; Mt[ 4 /* States.IN_SUB_PATH */ ] = { "'": [ 5, 0 /* Actions.APPEND */ ], '"': [ 6, 0 /* Actions.APPEND */ ], "[": [ 4, 2 /* Actions.INC_SUB_PATH_DEPTH */ ], "]": [ 1, 3 /* Actions.PUSH_SUB_PATH */ ], o: 8, l: [ 4, 0 /* Actions.APPEND */ ] }; Mt[ 5 /* States.IN_SINGLE_QUOTE */ ] = { "'": [ 4, 0 /* Actions.APPEND */ ], o: 8, l: [ 5, 0 /* Actions.APPEND */ ] }; Mt[ 6 /* States.IN_DOUBLE_QUOTE */ ] = { '"': [ 4, 0 /* Actions.APPEND */ ], o: 8, l: [ 6, 0 /* Actions.APPEND */ ] }; const Di = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/; function Li(e) { return Di.test(e); } function Ai(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 ki(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: // Tab (HT) case 10: // Newline (LF) case 13: // Return (CR) case 160: // No-break space (NBSP) case 65279: // Byte Order Mark (BOM) case 8232: // Line Separator (LS) case 8233: return "w"; } return "i"; } function Ci(e) { const t = e.trim(); return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Li(t) ? Ai(t) : "*" + t; } function Pi(e) { const t = []; let n = -1, r = 0, a = 0, o, s, l, i, c, f, u; const d = []; d[ 0 /* Actions.APPEND */ ] = () => { s === void 0 ? s = l : s += l; }, d[ 1 /* Actions.PUSH */ ] = () => { s !== void 0 && (t.push(s), s = void 0); }, d[ 2 /* Actions.INC_SUB_PATH_DEPTH */ ] = () => { d[ 0 /* Actions.APPEND */ ](), a++; }, d[ 3 /* Actions.PUSH_SUB_PATH */ ] = () => { if (a > 0) a--, r = 4, d[ 0 /* Actions.APPEND */ ](); else { if (a = 0, s === void 0 || (s = Ci(s), s === !1)) return !1; d[ 1 /* Actions.PUSH */ ](); } }; function v() { const T = e[n + 1]; if (r === 5 && T === "'" || r === 6 && T === '"') return n++, l = "\\" + T, d[ 0 /* Actions.APPEND */ ](), !0; } for (; r !== null; ) if (n++, o = e[n], !(o === "\\" && v())) { if (i = ki(o), u = Mt[r], c = u[i] || u.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (f = d[c[1]], f && (l = o, f() === !1)))) return; if (r === 7) return t; } } const La = /* @__PURE__ */ new Map(); function Ri(e, t) { return le(e) ? e[t] : null; } function Mi(e, t) { if (!le(e)) return null; let n = La.get(t); if (n || (n = Pi(t), n && La.set(t, n)), !n) return null; const r = n.length; let a = e, o = 0; for (; o < r; ) { const s = n[o]; if (Fo.includes(s) && lt(a)) return null; const l = a[s]; if (l === void 0 || pe(a)) return null; a = l, o++; } return a; } const qe = { NOT_FOUND_KEY: 1, FALLBACK_TO_TRANSLATE: 2, CANNOT_FORMAT_NUMBER: 3, FALLBACK_TO_NUMBER_FORMAT: 4, CANNOT_FORMAT_DATE: 5, FALLBACK_TO_DATE_FORMAT: 6, EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7 }, Fi = 8, $i = { [qe.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.", [qe.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.", [qe.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.", [qe.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.", [qe.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.", [qe.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.", [qe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future." }; function Gt(e, ...t) { return sr($i[e], ...t); } const Ui = "11.1.3", ir = -1, Sn = "en-US", zn = "", Aa = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`; function xi() { return { upper: (e, t) => t === "text" && $(e) ? e.toUpperCase() : t === "vnode" && le(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e, lower: (e, t) => t === "text" && $(e) ? e.toLowerCase() : t === "vnode" && le(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e, capitalize: (e, t) => t === "text" && $(e) ? Aa(e) : t === "vnode" && le(e) && "__v_isVNode" in e ? Aa(e.children) : e }; } let Uo; function Vi(e) { Uo = e; } let xo; function Wi(e) { xo = e; } let Vo; function Yi(e) { Vo = e; } let Wo = null; const Bi = /* @__NO_SIDE_EFFECTS__ */ (e) => { Wo = e; }, Hi = /* @__NO_SIDE_EFFECTS__ */ () => Wo; let Yo = null; const ka = (e) => { Yo = e; }, Gi = () => Yo; let Ca = 0; function Ki(e = {}) { const t = pe(e.onWarn) ? e.onWarn : Pt, n = $(e.version) ? e.version : Ui, r = $(e.locale) || pe(e.locale) ? e.locale : Sn, a = pe(r) ? Sn : r, o = Ae(e.fallbackLocale) || ne(e.fallbackLocale) || $(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, s = ne(e.messages) ? e.messages : gr(a), l = ne(e.datetimeFormats) ? e.datetimeFormats : gr(a), i = ne(e.numberFormats) ? e.numberFormats : gr(a), c = Ue(me(), e.modifiers, xi()), f = e.pluralRules || me(), u = pe(e.missing) ? e.missing : null, d = ie(e.missingWarn) || nn(e.missingWarn) ? e.missingWarn : !0, v = ie(e.fallbackWarn) || nn(e.fallbackWarn) ? e.fallbackWarn : !0, T = !!e.fallbackFormat, y = !!e.unresolving, w = pe(e.postTranslation) ? e.postTranslation : null, h = ne(e.processor) ? e.processor : null, _ = ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter, b = pe(e.messageCompiler) ? e.messageCompiler : Uo; process.env.NODE_ENV !== "production" && pe(e.messageCompiler) && Jr(Gt(qe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER)); const D = pe(e.messageResolver) ? e.messageResolver : xo || Ri, O = pe(e.localeFallbacker) ? e.localeFallbacker : Vo || Ii, I = le(e.fallbackContext) ? e.fallbackContext : void 0, x = e, V = le(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), j = le(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), X = le(x.__meta) ? x.__meta : {}; Ca++; const se = { version: n, cid: Ca, locale: r, fallbackLocale: o, messages: s, modifiers: c, pluralRules: f, missing: u, missingWarn: d, fallbackWarn: v, fallbackFormat: T, unresolving: y, postTranslation: w, processor: h, warnHtmlMessage: _, escapeParameter: E, messageCompiler: b, messageResolver: D, localeFallbacker: O, fallbackContext: I, onWarn: t, __meta: X }; return se.datetimeFormats = l, se.numberFormats = i, se.__datetimeFormatters = V, se.__numberFormatters = j, process.env.NODE_ENV !== "production" && (se.__v_emitter = x.__v_emitter != null ? x.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && bi(se, n, X), se; } const gr = (e) => ({ [e]: me() }); function ur(e, t) { return e instanceof RegExp ? e.test(t) : e; } function Bo(e, t) { return e instanceof RegExp ? e.test(t) : e; } function ra(e, t, n, r, a) { const { missing: o, onWarn: s } = e; if (process.env.NODE_ENV !== "production") { const l = e.__v_emitter; l && l.emit("missing", { locale: n, key: t, type: a, groupId: `${a}:${t}` }); } if (o !== null) { const l = o(e, n, t, a); return $(l) ? l : t; } else return process.env.NODE_ENV !== "production" && Bo(r, t) && s(Gt(qe.NOT_FOUND_KEY, { key: t, locale: n })), t; } function un(e, t, n) { const r = e; r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t); } function Ho(e, t) { return e === t ? !1 : e.split("-")[0] === t.split("-")[0]; } function ji(e, t) { const n = t.indexOf(e); if (n === -1) return !1; for (let r = n + 1; r < t.length; r++) if (Ho(e, t[r])) return !0; return !1; } const Pa = typeof Intl < "u", Go = { dateTimeFormat: Pa && typeof Intl.DateTimeFormat < "u", numberFormat: Pa && typeof Intl.NumberFormat < "u" }; function Ra(e, ...t) { const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: s } = e, { __datetimeFormatters: l } = e; if (process.env.NODE_ENV !== "production" && !Go.dateTimeFormat) return o(Gt(qe.CANNOT_FORMAT_DATE)), zn; const [i, c, f, u] = Rr(...t), d = ie(f.missingWarn) ? f.missingWarn : e.missingWarn, v = ie(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, T = !!f.part, y = na(e, f), w = s( e, // eslint-disable-line @typescript-eslint/no-explicit-any a, y ); if (!$(i) || i === "") return new Intl.DateTimeFormat(y, u).format(c); let h = {}, _, E = null, b = y, D = null; const O = "datetime format"; for (let V = 0; V < w.length; V++) { if (_ = D = w[V], process.env.NODE_ENV !== "production" && y !== _ && ur(v, i) && o(Gt(qe.FALLBACK_TO_DATE_FORMAT, { key: i, target: _ })), process.env.NODE_ENV !== "production" && y !== _) { const j = e.__v_emitter; j && j.emit("fallback", { type: O, key: i, from: b, to: D, groupId: `${O}:${i}` }); } if (h = n[_] || {}, E = h[i], ne(E)) break; ra(e, i, _, d, O), b = D; } if (!ne(E) || !$(_)) return r ? ir :