vue-componentes/dist/eli-vue.es.js
2026-02-16 10:17:07 -03:00

13820 lines
479 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@font-face{font-family:Google Sans;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://paiol.idz.one/estaticos/GoogleSans/GoogleSans-VariableFont_GRAD,opsz,wght.ttf) format("truetype")}@font-face{font-family:Google Sans;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://paiol.idz.one/estaticos/GoogleSans/GoogleSans-Italic-VariableFont_GRAD,opsz,wght.ttf) format("truetype")}:root{--eli-font-family: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;--v-font-family: var(--eli-font-family)}html,body{font-family:var(--eli-font-family)}:where([class^=eli-],[class*=" eli-"]){font-family:var(--eli-font-family);--v-font-family: var(--eli-font-family)}button,input,select,textarea{font-family:inherit}.eli-badge .v-badge__badge,.eli-badge .v-badge__content{border-radius:var(--eli-badge-radius)!important}.eli-cartao{border-radius:12px}.eli-cartao__titulo{display:flex;align-items:center;justify-content:space-between;gap:12px}.eli-cartao__titulo-texto{min-width:0}.eli-cartao__conteudo{padding-top:8px}.eli-cartao__acoes{padding-top:0}.eli-cartao--cancelado{opacity:.85}.eli-data-hora{width:100%}.eli-entrada__prefixo,.eli-entrada__sufixo{opacity:.75;font-size:.9em;white-space:nowrap}.eli-entrada__prefixo{margin-right:6px}.eli-entrada__sufixo{margin-left:6px}.eli-tabela__celula-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.eli-tabela__celula-tag{cursor:default}.eli-tabela__celula-tag-icone{margin-right:6px}.eli-tabela__texto-truncado{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top}.eli-tabela__celula-link{all:unset;display:inline;color:#2563eb;cursor:pointer;text-decoration:underline;text-decoration-color:#2563eb8c;text-underline-offset:2px}.eli-tabela__celula-link:hover{color:#1d4ed8;text-decoration-color:#1d4ed8bf}.eli-tabela__celula-link:focus-visible{outline:2px solid rgba(37,99,235,.45);outline-offset:2px;border-radius:4px}.eli-tabela__busca{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.eli-tabela__busca-input-wrapper{display:inline-flex;align-items:stretch;border-radius:var(--eli-tabela-cabecalho-controle-radius, 8px);border:1px solid rgba(15,23,42,.15);overflow:hidden;background:#fff;height:var(--eli-tabela-cabecalho-controle-altura, 34px)}.eli-tabela__busca-input{height:100%;padding:0 12px;border:none;outline:none;font-size:.875rem;color:#0f172ad9}.eli-tabela__busca-input::-webkit-search-cancel-button,.eli-tabela__busca-input::-webkit-search-decoration{-webkit-appearance:none}.eli-tabela__busca-input::placeholder{color:#6b7280d9}.eli-tabela__busca-botao{display:inline-flex;align-items:center;justify-content:center;border:none;background:#2563eb1f;color:#2563ebf2;height:100%;padding:0 12px;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__busca-botao-icone{display:block}.eli-tabela__busca-botao:hover,.eli-tabela__busca-botao:focus-visible{background:#2563eb33;color:#2563eb}.eli-tabela__busca-botao:focus-visible{outline:2px solid rgba(37,99,235,.35);outline-offset:2px}.eli-tabela__busca-grupo{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.eli-tabela-modal-colunas__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px}.eli-tabela-modal-colunas__modal{width:min(860px,100%);background:#fff;border-radius:14px;border:1px solid rgba(15,23,42,.1);box-shadow:0 18px 60px #0f172a40;overflow:hidden}.eli-tabela-modal-colunas__header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-colunas__titulo{font-size:1rem;margin:0}.eli-tabela-modal-colunas__fechar{width:34px;height:34px;border-radius:10px;border:none;background:transparent;cursor:pointer;font-size:22px;line-height:1;color:#0f172acc}.eli-tabela-modal-colunas__fechar:hover,.eli-tabela-modal-colunas__fechar:focus-visible{background:#0f172a0f}.eli-tabela-modal-colunas__conteudo{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px}.eli-tabela-modal-colunas__coluna-titulo{font-weight:600;margin-bottom:8px}.eli-tabela-modal-colunas__lista{min-height:260px;border:1px solid rgba(15,23,42,.12);border-radius:12px;padding:10px;background:#0f172a03}.eli-tabela-modal-colunas__item{display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;border:1px solid rgba(15,23,42,.08);background:#fff;cursor:grab;-webkit-user-select:none;user-select:none}.eli-tabela-modal-colunas__item+.eli-tabela-modal-colunas__item{margin-top:8px}.eli-tabela-modal-colunas__item:active{cursor:grabbing}.eli-tabela-modal-colunas__item-handle{color:#0f172a8c;font-size:14px}.eli-tabela-modal-colunas__item-texto{flex:1;min-width:0}.eli-tabela-modal-colunas__footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 16px;border-top:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-colunas__botao{height:34px;padding:0 14px;border-radius:10px;border:1px solid rgba(15,23,42,.12);background:#fff;cursor:pointer;font-size:.9rem}.eli-tabela-modal-colunas__botao--sec:hover,.eli-tabela-modal-colunas__botao--sec:focus-visible{background:#0f172a0f}.eli-tabela-modal-colunas__botao--prim{border:none;background:#2563ebf2;color:#fff}.eli-tabela-modal-colunas__botao--prim:hover,.eli-tabela-modal-colunas__botao--prim:focus-visible{background:#2563eb}@media(max-width:720px){.eli-tabela-modal-colunas__conteudo{grid-template-columns:1fr}}.eli-tabela-modal-filtro__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px}.eli-tabela-modal-filtro__modal{width:min(980px,100%);background:#fff;border-radius:14px;border:1px solid rgba(15,23,42,.1);box-shadow:0 18px 60px #0f172a40;overflow:hidden}.eli-tabela-modal-filtro__header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-filtro__titulo{font-size:1rem;margin:0}.eli-tabela-modal-filtro__fechar{width:34px;height:34px;border-radius:10px;border:none;background:transparent;cursor:pointer;font-size:22px;line-height:1;color:#0f172acc}.eli-tabela-modal-filtro__fechar:hover,.eli-tabela-modal-filtro__fechar:focus-visible{background:#0f172a0f}.eli-tabela-modal-filtro__conteudo{padding:16px}.eli-tabela-modal-filtro__vazio{opacity:.75;font-size:.9rem}.eli-tabela-modal-filtro__lista{display:grid;gap:10px}.eli-tabela-modal-filtro__linha{display:grid;grid-template-columns:1fr 34px;gap:10px;align-items:center}.eli-tabela-modal-filtro__select{height:34px;border-radius:10px;border:1px solid rgba(15,23,42,.12);padding:0 10px;background:#fff}.eli-tabela-modal-filtro__entrada{min-width:0}.eli-tabela-modal-filtro__remover{width:34px;height:34px;border-radius:10px;border:1px solid rgba(15,23,42,.12);background:#fff;cursor:pointer;font-size:18px;line-height:1;color:#0f172acc}.eli-tabela-modal-filtro__remover:hover,.eli-tabela-modal-filtro__remover:focus-visible{background:#0f172a0f}.eli-tabela-modal-filtro__acoes{margin-top:12px}.eli-tabela-modal-filtro__footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 16px;border-top:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-filtro__botao{height:34px;padding:0 14px;border-radius:10px;border:1px solid rgba(15,23,42,.12);background:#fff;cursor:pointer;font-size:.9rem}.eli-tabela-modal-filtro__botao:disabled{opacity:.55;cursor:not-allowed}.eli-tabela-modal-filtro__botao--sec:hover,.eli-tabela-modal-filtro__botao--sec:focus-visible{background:#0f172a0f}.eli-tabela-modal-filtro__botao--prim{border:none;background:#2563ebf2;color:#fff}.eli-tabela-modal-filtro__botao--prim:hover,.eli-tabela-modal-filtro__botao--prim:focus-visible{background:#2563eb}@media(max-width:880px){.eli-tabela-modal-filtro__linha{grid-template-columns:1fr}}.eli-tabela__paginacao{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}.eli-tabela__pagina-botao{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 14px;border-radius:9999px;border:1px solid rgba(15,23,42,.12);background:#fff;font-size:.875rem;font-weight:500;color:#0f172ad1;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.eli-tabela__pagina-botao:hover,.eli-tabela__pagina-botao:focus-visible{background-color:#2563eb14;border-color:#2563eb66;color:#2563ebf2}.eli-tabela__pagina-botao:focus-visible{outline:2px solid rgba(37,99,235,.45);outline-offset:2px}.eli-tabela__pagina-botao:disabled{cursor:default;opacity:.5;background:#94a3b814;border-color:#94a3b82e;color:#475569bf}.eli-tabela__pagina-botao--ativo{background:#2563eb1f;border-color:#2563eb66;color:#2563ebf2}.eli-tabela__pagina-ellipsis{display:inline-flex;align-items:center;justify-content:center;width:32px;color:#6b7280d9;font-size:.9rem}.eli-tabela__acao-inferior{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:8px;border:1px solid #16a34a;background:#fff;color:#16a34a;font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acao-inferior:hover,.eli-tabela__acao-inferior:focus-visible{background-color:#f0fdf4}.eli-tabela__acao-inferior:focus-visible{outline:2px solid #16a34a;outline-offset:2px}.eli-tabela{width:100%}.eli-tabela__table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid rgba(0,0,0,.12);border-radius:12px;overflow:visible}.eli-tabela__tbody{overflow:visible}.eli-tabela__tbody .eli-tabela__tr--zebra .eli-tabela__td{background:#0f172a05}.eli-tabela__th,.eli-tabela__td{padding:10px 12px;border-bottom:1px solid rgba(0,0,0,.08);vertical-align:top}.eli-tabela__th{text-align:left;font-weight:600;background:#00000008}.eli-tabela__th--ordenavel{padding:0}.eli-tabela__th--ordenavel .eli-tabela__th-botao{padding:10px 12px}.eli-tabela__th-botao{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;background:transparent;border:none;font:inherit;color:inherit;cursor:pointer;text-align:left;transition:color .2s ease}.eli-tabela__th-botao:hover,.eli-tabela__th-botao:focus-visible{color:#0f172ad9}.eli-tabela__th-botao:focus-visible{outline:2px solid rgba(37,99,235,.45);outline-offset:2px}.eli-tabela__th-botao--ativo{color:#2563ebf2}.eli-tabela__th-texto{flex:1;min-width:0;white-space:nowrap}.eli-tabela__th-icone{flex-shrink:0}.eli-tabela__th-icone--oculto{opacity:0}.eli-tabela__tr:last-child .eli-tabela__td{border-bottom:none}.eli-tabela__td--clicavel{cursor:pointer}.eli-tabela__td--clicavel:hover{background:#00000008}.eli-tabela--erro{border:1px solid rgba(220,53,69,.35);border-radius:12px;padding:12px}.eli-tabela--carregando{border:1px dashed rgba(0,0,0,.25);border-radius:12px;padding:12px;opacity:.8}.eli-tabela__erro-titulo{font-weight:700;margin-bottom:4px}.eli-tabela__erro-mensagem{opacity:.9}.eli-tabela--vazio{border:1px dashed rgba(0,0,0,.25);border-radius:12px;padding:12px;opacity:.8}.eli-tabela__th--acoes{text-align:right;white-space:nowrap}.eli-tabela__td--acoes{white-space:nowrap;overflow:visible}.eli-tabela__acoes-container{display:flex;justify-content:flex-end;position:relative;z-index:1}.eli-tabela__acoes-container--aberto{z-index:200}.eli-tabela__rodape{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}.eli-tabela__paginacao{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:0;flex-wrap:wrap}.eli-tabela__acoes-inferiores{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}.eli-tabela__cabecalho{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:12px;flex-wrap:wrap;--eli-tabela-cabecalho-controle-altura: 34px;--eli-tabela-cabecalho-controle-radius: 8px}.eli-tabela__acoes-cabecalho{display:inline-flex;gap:8px;flex-wrap:wrap}.eli-tabela__acoes-cabecalho-botao{display:inline-flex;align-items:center;gap:6px;height:var(--eli-tabela-cabecalho-controle-altura);padding:0 14px;border-radius:var(--eli-tabela-cabecalho-controle-radius);border:none;background:#2563eb1f;color:#2563ebf2;font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acoes-cabecalho-botao:hover,.eli-tabela__acoes-cabecalho-botao:focus-visible{background:#2563eb33}.eli-tabela__acoes-cabecalho-botao:focus-visible{outline:2px solid rgba(37,99,235,.35);outline-offset:2px}.eli-tabela__acoes-cabecalho-icone{display:inline-block}.eli-tabela__acoes-cabecalho-rotulo{line-height:1}.eli-tabela__acoes-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9999px;border:none;background:transparent;color:#0f172ab8;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acoes-toggle-icone{display:block}.eli-tabela__acoes-toggle:hover,.eli-tabela__acoes-toggle:focus-visible{background-color:#0f172a14;color:#0f172af2}.eli-tabela__acoes-toggle:focus-visible{outline:2px solid rgba(37,99,235,.45);outline-offset:2px}.eli-tabela__acoes-toggle:disabled{cursor:default;color:#94a3b8cc;background:transparent}.eli-tabela__acoes-menu{min-width:180px;padding:6px 0;margin:0;list-style:none;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:10px;box-shadow:0 12px 30px #0f172a2e;z-index:1000}.eli-tabela__acoes-item{margin:0}.eli-tabela__acoes-item-botao{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;border:none;background:transparent;font-size:.9rem;cursor:pointer;transition:background-color .2s ease}.eli-tabela__acoes-item-botao:hover,.eli-tabela__acoes-item-botao:focus-visible{background-color:#0f172a0f}.eli-tabela__acoes-item-botao:focus-visible{outline:2px solid currentColor;outline-offset:-2px}.eli-tabela__acoes-item-icone{flex-shrink:0}.eli-tabela__acoes-item-texto{flex:1;text-align:left}.eli-tabela__th--expander,.eli-tabela__td--expander{width:42px;padding:6px 8px;text-align:center;vertical-align:middle}.eli-tabela__expander-botao{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9999px;border:none;background:transparent;color:#0f172ab8;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__expander-botao:hover,.eli-tabela__expander-botao:focus-visible{background-color:#0f172a14;color:#0f172af2}.eli-tabela__expander-botao:focus-visible{outline:2px solid rgba(37,99,235,.45);outline-offset:2px}.eli-tabela__expander-botao--ativo{background-color:#0f172a0f;color:#0f172af2}.eli-tabela__td--detalhes{padding:12px}.eli-tabela__tr--detalhes .eli-tabela__td{border-bottom:1px solid rgba(0,0,0,.08)}.eli-tabela__detalhes{display:grid;gap:10px;padding-left:4px}.eli-tabela__detalhe{display:grid;grid-template-columns:180px 1fr;gap:10px;align-items:start}.eli-tabela__detalhe-rotulo{font-weight:600;color:#0f172ad9}.eli-tabela__detalhe-valor{min-width:0}@media(max-width:720px){.eli-tabela__detalhe{grid-template-columns:1fr}}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
import { defineComponent as ie, openBlock as S, createBlock as fe, mergeProps as ot, withCtx as ye, renderSlot as st, computed as N, resolveComponent as be, createVNode as re, createElementVNode as D, createTextVNode as pn, toDisplayString as G, createCommentVNode as ge, createElementBlock as j, ref as H, watch as Be, createSlots as Zf, onMounted as ya, h as Dr, withModifiers as je, Fragment as De, renderList as Ee, resolveDynamicComponent as at, normalizeClass as lt, withDirectives as ka, withKeys as Cf, vModelText as Mf, normalizeStyle as zn, Teleport as Ff, vModelSelect as Lf, onBeforeUnmount as Rf } from "vue";
import { VBtn as Bf } from "vuetify/components/VBtn";
import { VBadge as Jf } from "vuetify/components/VBadge";
import { VCard as Sa, VCardTitle as Ia, VCardText as wa, VCardActions as za } from "vuetify/components/VCard";
import { VTextField as Nr } from "vuetify/components/VTextField";
import { VTextarea as Vf, VSelect as qf, VChip as Yf } from "vuetify/components";
import { VTextarea as Kf } from "vuetify/components/VTextarea";
import { VSelect as Wf } from "vuetify/components/VSelect";
import { VChip as Gf } from "vuetify/components/VChip";
import { VContainer as Hf } from "vuetify/components/VGrid";
const Xf = ie({
name: "EliBotao",
inheritAttrs: !1,
props: {
color: {
type: String,
default: "primary"
},
variant: {
type: String,
default: "elevated"
},
size: {
type: String,
default: "default"
},
disabled: {
type: Boolean,
default: !1
},
loading: {
type: Boolean,
default: !1
}
}
}), oe = (e, n) => {
const r = e.__vccOpts || e;
for (const [o, t] of n)
r[o] = t;
return r;
};
function Qf(e, n, r, o, t, i) {
return S(), fe(Bf, ot({
color: e.color,
variant: e.variant,
size: e.size,
disabled: e.disabled,
loading: e.loading
}, e.$attrs, { class: "eli-botao text-none pt-1" }), {
default: ye(() => [
st(e.$slots, "default")
]),
_: 3
}, 16, ["color", "variant", "size", "disabled", "loading"]);
}
const xa = /* @__PURE__ */ oe(Xf, [["render", Qf]]), Ao = {
suave: "4px",
pill: "10px"
}, em = ie({
name: "EliBadge",
inheritAttrs: !1,
props: {
color: {
type: String,
default: "primary"
},
location: {
type: String,
default: "top right"
},
offsetX: {
type: String,
default: "0"
},
offsetY: {
type: String,
default: "0"
},
dot: {
type: Boolean,
default: !1
},
visible: {
type: Boolean,
default: !0
},
badge: {
type: [String, Number],
default: void 0
},
/** 🔥 NOVO: controla só o radius */
radius: {
type: String,
default: "suave"
}
},
setup(e) {
const n = N(() => e.radius in Ao ? Ao[e.radius] : e.radius), r = N(() => e.dot || e.badge !== void 0 ? e.visible : !1), o = N(() => ({
"--eli-badge-radius": n.value
}));
return { showBadge: r, badgeStyle: o };
}
});
function tm(e, n, r, o, t, i) {
return e.showBadge ? (S(), fe(Jf, ot({
key: 0,
color: e.color
}, e.$attrs, {
location: e.location,
"offset-x": e.offsetX,
"offset-y": e.offsetY,
dot: e.dot,
content: e.badge,
style: e.badgeStyle,
class: "eli-badge"
}), {
default: ye(() => [
st(e.$slots, "default")
]),
_: 3
}, 16, ["color", "location", "offset-x", "offset-y", "dot", "content", "style"])) : st(e.$slots, "default", { key: 1 });
}
const Ar = /* @__PURE__ */ oe(em, [["render", tm]]), nm = ie({
name: "EliCartao",
components: { EliBadge: Ar },
inheritAttrs: !1,
props: {
/** Título de fallback caso o slot `titulo` não seja usado. */
titulo: {
type: String,
default: ""
},
/**
* Status semântico do cartão.
* Usado para cor/label e para permitir filtros por status.
*/
status: {
type: String,
required: !0
},
/** Variante visual do v-card (Vuetify). */
variant: {
type: String,
default: "outlined"
}
},
emits: {
/** Emit opcional para padronizar clique no cartão. */
clicar: (e) => !0
},
setup(e, { emit: n }) {
const r = N(() => e.status), o = N(() => {
switch (e.status) {
case "novo":
return "primary";
case "rascunho":
return "secondary";
case "vendido":
return "success";
case "cancelado":
return "error";
}
}), t = N(() => `eli-cartao--${e.status}`);
function i() {
n("clicar", e.status);
}
return {
rotuloStatus: r,
corStatus: o,
classeStatus: t,
onClick: i
};
}
}), rm = { class: "eli-cartao__titulo-texto" }, im = { class: "eli-cartao__status" };
function om(e, n, r, o, t, i) {
const a = be("EliBadge");
return S(), fe(Sa, ot({
class: ["eli-cartao", e.classeStatus],
variant: e.variant
}, e.$attrs), {
default: ye(() => [
re(Ia, { class: "eli-cartao__titulo" }, {
default: ye(() => [
D("div", rm, [
st(e.$slots, "titulo", {}, () => [
pn(G(e.titulo), 1)
])
]),
D("div", im, [
re(a, {
badge: e.rotuloStatus,
radius: "pill",
color: e.corStatus
}, {
default: ye(() => [...n[0] || (n[0] = [
D("span", null, null, -1)
])]),
_: 1
}, 8, ["badge", "color"])
])
]),
_: 3
}),
re(wa, { class: "eli-cartao__conteudo" }, {
default: ye(() => [
st(e.$slots, "default")
]),
_: 3
}),
e.$slots.acoes ? (S(), fe(za, {
key: 0,
class: "eli-cartao__acoes"
}, {
default: ye(() => [
st(e.$slots, "acoes")
]),
_: 3
})) : ge("", !0)
]),
_: 3
}, 16, ["variant", "class"]);
}
const am = /* @__PURE__ */ oe(nm, [["render", om]]), Da = Object.freeze({
status: "aborted"
});
function v(e, n, r) {
function o(u, c) {
if (u._zod || Object.defineProperty(u, "_zod", {
value: {
def: c,
constr: a,
traits: /* @__PURE__ */ new Set()
},
enumerable: !1
}), u._zod.traits.has(e))
return;
u._zod.traits.add(e), n(u, c);
const l = a.prototype, s = Object.keys(l);
for (let d = 0; d < s.length; d++) {
const m = s[d];
m in u || (u[m] = l[m].bind(u));
}
}
const t = (r == null ? void 0 : r.Parent) ?? Object;
class i extends t {
}
Object.defineProperty(i, "name", { value: e });
function a(u) {
var c;
const l = r != null && r.Parent ? new i() : this;
o(l, u), (c = l._zod).deferred ?? (c.deferred = []);
for (const s of l._zod.deferred)
s();
return l;
}
return Object.defineProperty(a, "init", { value: o }), Object.defineProperty(a, Symbol.hasInstance, {
value: (u) => {
var c, l;
return r != null && r.Parent && u instanceof r.Parent ? !0 : (l = (c = u == null ? void 0 : u._zod) == null ? void 0 : c.traits) == null ? void 0 : l.has(e);
}
}), Object.defineProperty(a, "name", { value: e }), a;
}
const Oa = Symbol("zod_brand");
class dt extends Error {
constructor() {
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
}
}
class Nn extends Error {
constructor(n) {
super(`Encountered unidirectional transform during encode: ${n}`), this.name = "ZodEncodeError";
}
}
const xn = {};
function Ie(e) {
return e && Object.assign(xn, e), xn;
}
function um(e) {
return e;
}
function lm(e) {
return e;
}
function cm(e) {
}
function sm(e) {
throw new Error("Unexpected value in exhaustive check");
}
function dm(e) {
}
function Zr(e) {
const n = Object.values(e).filter((o) => typeof o == "number");
return Object.entries(e).filter(([o, t]) => n.indexOf(+o) === -1).map(([o, t]) => t);
}
function k(e, n = "|") {
return e.map((r) => M(r)).join(n);
}
function Dn(e, n) {
return typeof n == "bigint" ? n.toString() : n;
}
function Ft(e) {
return {
get value() {
{
const n = e();
return Object.defineProperty(this, "value", { value: n }), n;
}
}
};
}
function pt(e) {
return e == null;
}
function An(e) {
const n = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length;
return e.slice(n, r);
}
function ja(e, n) {
const r = (e.toString().split(".")[1] || "").length, o = n.toString();
let t = (o.split(".")[1] || "").length;
if (t === 0 && /\d?e-\d?/.test(o)) {
const c = o.match(/\d?e-(\d?)/);
c != null && c[1] && (t = Number.parseInt(c[1]));
}
const i = r > t ? r : t, a = Number.parseInt(e.toFixed(i).replace(".", "")), u = Number.parseInt(n.toFixed(i).replace(".", ""));
return a % u / 10 ** i;
}
const Zo = Symbol("evaluating");
function K(e, n, r) {
let o;
Object.defineProperty(e, n, {
get() {
if (o !== Zo)
return o === void 0 && (o = Zo, o = r()), o;
},
set(t) {
Object.defineProperty(e, n, {
value: t
// configurable: true,
});
},
configurable: !0
});
}
function fm(e) {
return Object.create(Object.getPrototypeOf(e), Object.getOwnPropertyDescriptors(e));
}
function ut(e, n, r) {
Object.defineProperty(e, n, {
value: r,
writable: !0,
enumerable: !0,
configurable: !0
});
}
function Ye(...e) {
const n = {};
for (const r of e) {
const o = Object.getOwnPropertyDescriptors(r);
Object.assign(n, o);
}
return Object.defineProperties({}, n);
}
function mm(e) {
return Ye(e._zod.def);
}
function vm(e, n) {
return n ? n.reduce((r, o) => r == null ? void 0 : r[o], e) : e;
}
function pm(e) {
const n = Object.keys(e), r = n.map((o) => e[o]);
return Promise.all(r).then((o) => {
const t = {};
for (let i = 0; i < n.length; i++)
t[n[i]] = o[i];
return t;
});
}
function gm(e = 10) {
const n = "abcdefghijklmnopqrstuvwxyz";
let r = "";
for (let o = 0; o < e; o++)
r += n[Math.floor(Math.random() * n.length)];
return r;
}
function Or(e) {
return JSON.stringify(e);
}
function Ua(e) {
return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
}
const Cr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
};
function bt(e) {
return typeof e == "object" && e !== null && !Array.isArray(e);
}
const Ta = Ft(() => {
var e;
if (typeof navigator < "u" && ((e = navigator == null ? void 0 : navigator.userAgent) != null && e.includes("Cloudflare")))
return !1;
try {
const n = Function;
return new n(""), !0;
} catch {
return !1;
}
});
function ft(e) {
if (bt(e) === !1)
return !1;
const n = e.constructor;
if (n === void 0 || typeof n != "function")
return !0;
const r = n.prototype;
return !(bt(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
}
function Zn(e) {
return ft(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
}
function hm(e) {
let n = 0;
for (const r in e)
Object.prototype.hasOwnProperty.call(e, r) && n++;
return n;
}
const $m = (e) => {
const n = typeof e;
switch (n) {
case "undefined":
return "undefined";
case "string":
return "string";
case "number":
return Number.isNaN(e) ? "nan" : "number";
case "boolean":
return "boolean";
case "function":
return "function";
case "bigint":
return "bigint";
case "symbol":
return "symbol";
case "object":
return Array.isArray(e) ? "array" : e === null ? "null" : e.then && typeof e.then == "function" && e.catch && typeof e.catch == "function" ? "promise" : typeof Map < "u" && e instanceof Map ? "map" : typeof Set < "u" && e instanceof Set ? "set" : typeof Date < "u" && e instanceof Date ? "date" : typeof File < "u" && e instanceof File ? "file" : "object";
default:
throw new Error(`Unknown data type: ${n}`);
}
}, On = /* @__PURE__ */ new Set(["string", "number", "symbol"]), Ea = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
function Ge(e) {
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
}
function Me(e, n, r) {
const o = new e._zod.constr(n ?? e._zod.def);
return (!n || r != null && r.parent) && (o._zod.parent = e), o;
}
function $(e) {
const n = e;
if (!n)
return {};
if (typeof n == "string")
return { error: () => n };
if ((n == null ? void 0 : n.message) !== void 0) {
if ((n == null ? void 0 : n.error) !== void 0)
throw new Error("Cannot specify both `message` and `error` params");
n.error = n.message;
}
return delete n.message, typeof n.error == "string" ? { ...n, error: () => n.error } : n;
}
function bm(e) {
let n;
return new Proxy({}, {
get(r, o, t) {
return n ?? (n = e()), Reflect.get(n, o, t);
},
set(r, o, t, i) {
return n ?? (n = e()), Reflect.set(n, o, t, i);
},
has(r, o) {
return n ?? (n = e()), Reflect.has(n, o);
},
deleteProperty(r, o) {
return n ?? (n = e()), Reflect.deleteProperty(n, o);
},
ownKeys(r) {
return n ?? (n = e()), Reflect.ownKeys(n);
},
getOwnPropertyDescriptor(r, o) {
return n ?? (n = e()), Reflect.getOwnPropertyDescriptor(n, o);
},
defineProperty(r, o, t) {
return n ?? (n = e()), Reflect.defineProperty(n, o, t);
}
});
}
function M(e) {
return typeof e == "bigint" ? e.toString() + "n" : typeof e == "string" ? `"${e}"` : `${e}`;
}
function Pa(e) {
return Object.keys(e).filter((n) => e[n]._zod.optin === "optional" && e[n]._zod.optout === "optional");
}
const Na = {
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
int32: [-2147483648, 2147483647],
uint32: [0, 4294967295],
float32: [-34028234663852886e22, 34028234663852886e22],
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
}, Aa = {
int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
};
function Za(e, n) {
const r = e._zod.def, o = r.checks;
if (o && o.length > 0)
throw new Error(".pick() cannot be used on object schemas containing refinements");
const i = Ye(e._zod.def, {
get shape() {
const a = {};
for (const u in n) {
if (!(u in r.shape))
throw new Error(`Unrecognized key: "${u}"`);
n[u] && (a[u] = r.shape[u]);
}
return ut(this, "shape", a), a;
},
checks: []
});
return Me(e, i);
}
function Ca(e, n) {
const r = e._zod.def, o = r.checks;
if (o && o.length > 0)
throw new Error(".omit() cannot be used on object schemas containing refinements");
const i = Ye(e._zod.def, {
get shape() {
const a = { ...e._zod.def.shape };
for (const u in n) {
if (!(u in r.shape))
throw new Error(`Unrecognized key: "${u}"`);
n[u] && delete a[u];
}
return ut(this, "shape", a), a;
},
checks: []
});
return Me(e, i);
}
function Ma(e, n) {
if (!ft(n))
throw new Error("Invalid input to extend: expected a plain object");
const r = e._zod.def.checks;
if (r && r.length > 0) {
const i = e._zod.def.shape;
for (const a in n)
if (Object.getOwnPropertyDescriptor(i, a) !== void 0)
throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
}
const t = Ye(e._zod.def, {
get shape() {
const i = { ...e._zod.def.shape, ...n };
return ut(this, "shape", i), i;
}
});
return Me(e, t);
}
function Fa(e, n) {
if (!ft(n))
throw new Error("Invalid input to safeExtend: expected a plain object");
const r = Ye(e._zod.def, {
get shape() {
const o = { ...e._zod.def.shape, ...n };
return ut(this, "shape", o), o;
}
});
return Me(e, r);
}
function La(e, n) {
const r = Ye(e._zod.def, {
get shape() {
const o = { ...e._zod.def.shape, ...n._zod.def.shape };
return ut(this, "shape", o), o;
},
get catchall() {
return n._zod.def.catchall;
},
checks: []
// delete existing checks
});
return Me(e, r);
}
function Ra(e, n, r) {
const t = n._zod.def.checks;
if (t && t.length > 0)
throw new Error(".partial() cannot be used on object schemas containing refinements");
const a = Ye(n._zod.def, {
get shape() {
const u = n._zod.def.shape, c = { ...u };
if (r)
for (const l in r) {
if (!(l in u))
throw new Error(`Unrecognized key: "${l}"`);
r[l] && (c[l] = e ? new e({
type: "optional",
innerType: u[l]
}) : u[l]);
}
else
for (const l in u)
c[l] = e ? new e({
type: "optional",
innerType: u[l]
}) : u[l];
return ut(this, "shape", c), c;
},
checks: []
});
return Me(n, a);
}
function Ba(e, n, r) {
const o = Ye(n._zod.def, {
get shape() {
const t = n._zod.def.shape, i = { ...t };
if (r)
for (const a in r) {
if (!(a in i))
throw new Error(`Unrecognized key: "${a}"`);
r[a] && (i[a] = new e({
type: "nonoptional",
innerType: t[a]
}));
}
else
for (const a in t)
i[a] = new e({
type: "nonoptional",
innerType: t[a]
});
return ut(this, "shape", i), i;
}
});
return Me(n, o);
}
function ct(e, n = 0) {
var r;
if (e.aborted === !0)
return !0;
for (let o = n; o < e.issues.length; o++)
if (((r = e.issues[o]) == null ? void 0 : r.continue) !== !0)
return !0;
return !1;
}
function Je(e, n) {
return n.map((r) => {
var o;
return (o = r).path ?? (o.path = []), r.path.unshift(e), r;
});
}
function Et(e) {
return typeof e == "string" ? e : e == null ? void 0 : e.message;
}
function Ce(e, n, r) {
var t, i, a, u, c, l;
const o = { ...e, path: e.path ?? [] };
if (!e.message) {
const s = Et((a = (i = (t = e.inst) == null ? void 0 : t._zod.def) == null ? void 0 : i.error) == null ? void 0 : a.call(i, e)) ?? Et((u = n == null ? void 0 : n.error) == null ? void 0 : u.call(n, e)) ?? Et((c = r.customError) == null ? void 0 : c.call(r, e)) ?? Et((l = r.localeError) == null ? void 0 : l.call(r, e)) ?? "Invalid input";
o.message = s;
}
return delete o.inst, delete o.continue, n != null && n.reportInput || delete o.input, o;
}
function Cn(e) {
return e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof File ? "file" : "unknown";
}
function Mn(e) {
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
}
function F(e) {
const n = typeof e;
switch (n) {
case "number":
return Number.isNaN(e) ? "nan" : "number";
case "object": {
if (e === null)
return "null";
if (Array.isArray(e))
return "array";
const r = e;
if (r && Object.getPrototypeOf(r) !== Object.prototype && "constructor" in r && r.constructor)
return r.constructor.name;
}
}
return n;
}
function _t(...e) {
const [n, r, o] = e;
return typeof n == "string" ? {
message: n,
code: "custom",
input: r,
inst: o
} : { ...n };
}
function _m(e) {
return Object.entries(e).filter(([n, r]) => Number.isNaN(Number.parseInt(n, 10))).map((n) => n[1]);
}
function Ja(e) {
const n = atob(e), r = new Uint8Array(n.length);
for (let o = 0; o < n.length; o++)
r[o] = n.charCodeAt(o);
return r;
}
function Va(e) {
let n = "";
for (let r = 0; r < e.length; r++)
n += String.fromCharCode(e[r]);
return btoa(n);
}
function ym(e) {
const n = e.replace(/-/g, "+").replace(/_/g, "/"), r = "=".repeat((4 - n.length % 4) % 4);
return Ja(n + r);
}
function km(e) {
return Va(e).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
}
function Sm(e) {
const n = e.replace(/^0x/, "");
if (n.length % 2 !== 0)
throw new Error("Invalid hex string length");
const r = new Uint8Array(n.length / 2);
for (let o = 0; o < n.length; o += 2)
r[o / 2] = Number.parseInt(n.slice(o, o + 2), 16);
return r;
}
function Im(e) {
return Array.from(e).map((n) => n.toString(16).padStart(2, "0")).join("");
}
class wm {
constructor(...n) {
}
}
const qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
BIGINT_FORMAT_RANGES: Aa,
Class: wm,
NUMBER_FORMAT_RANGES: Na,
aborted: ct,
allowsEval: Ta,
assert: dm,
assertEqual: um,
assertIs: cm,
assertNever: sm,
assertNotEqual: lm,
assignProp: ut,
base64ToUint8Array: Ja,
base64urlToUint8Array: ym,
cached: Ft,
captureStackTrace: Cr,
cleanEnum: _m,
cleanRegex: An,
clone: Me,
cloneDef: mm,
createTransparentProxy: bm,
defineLazy: K,
esc: Or,
escapeRegex: Ge,
extend: Ma,
finalizeIssue: Ce,
floatSafeRemainder: ja,
getElementAtPath: vm,
getEnumValues: Zr,
getLengthableOrigin: Mn,
getParsedType: $m,
getSizableOrigin: Cn,
hexToUint8Array: Sm,
isObject: bt,
isPlainObject: ft,
issue: _t,
joinValues: k,
jsonStringifyReplacer: Dn,
merge: La,
mergeDefs: Ye,
normalizeParams: $,
nullish: pt,
numKeys: hm,
objectClone: fm,
omit: Ca,
optionalKeys: Pa,
parsedType: F,
partial: Ra,
pick: Za,
prefixIssues: Je,
primitiveTypes: Ea,
promiseAllObject: pm,
propertyKeyTypes: On,
randomString: gm,
required: Ba,
safeExtend: Fa,
shallowClone: Zn,
slugify: Ua,
stringifyPrimitive: M,
uint8ArrayToBase64: Va,
uint8ArrayToBase64url: km,
uint8ArrayToHex: Im,
unwrapMessage: Et
}, Symbol.toStringTag, { value: "Module" })), Ya = (e, n) => {
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
value: e._zod,
enumerable: !1
}), Object.defineProperty(e, "issues", {
value: n,
enumerable: !1
}), e.message = JSON.stringify(n, Dn, 2), Object.defineProperty(e, "toString", {
value: () => e.message,
enumerable: !1
});
}, Mr = v("$ZodError", Ya), Pe = v("$ZodError", Ya, { Parent: Error });
function Fr(e, n = (r) => r.message) {
const r = {}, o = [];
for (const t of e.issues)
t.path.length > 0 ? (r[t.path[0]] = r[t.path[0]] || [], r[t.path[0]].push(n(t))) : o.push(n(t));
return { formErrors: o, fieldErrors: r };
}
function Lr(e, n = (r) => r.message) {
const r = { _errors: [] }, o = (t) => {
for (const i of t.issues)
if (i.code === "invalid_union" && i.errors.length)
i.errors.map((a) => o({ issues: a }));
else if (i.code === "invalid_key")
o({ issues: i.issues });
else if (i.code === "invalid_element")
o({ issues: i.issues });
else if (i.path.length === 0)
r._errors.push(n(i));
else {
let a = r, u = 0;
for (; u < i.path.length; ) {
const c = i.path[u];
u === i.path.length - 1 ? (a[c] = a[c] || { _errors: [] }, a[c]._errors.push(n(i))) : a[c] = a[c] || { _errors: [] }, a = a[c], u++;
}
}
};
return o(e), r;
}
function Ka(e, n = (r) => r.message) {
const r = { errors: [] }, o = (t, i = []) => {
var a, u;
for (const c of t.issues)
if (c.code === "invalid_union" && c.errors.length)
c.errors.map((l) => o({ issues: l }, c.path));
else if (c.code === "invalid_key")
o({ issues: c.issues }, c.path);
else if (c.code === "invalid_element")
o({ issues: c.issues }, c.path);
else {
const l = [...i, ...c.path];
if (l.length === 0) {
r.errors.push(n(c));
continue;
}
let s = r, d = 0;
for (; d < l.length; ) {
const m = l[d], p = d === l.length - 1;
typeof m == "string" ? (s.properties ?? (s.properties = {}), (a = s.properties)[m] ?? (a[m] = { errors: [] }), s = s.properties[m]) : (s.items ?? (s.items = []), (u = s.items)[m] ?? (u[m] = { errors: [] }), s = s.items[m]), p && s.errors.push(n(c)), d++;
}
}
};
return o(e), r;
}
function Wa(e) {
const n = [], r = e.map((o) => typeof o == "object" ? o.key : o);
for (const o of r)
typeof o == "number" ? n.push(`[${o}]`) : typeof o == "symbol" ? n.push(`[${JSON.stringify(String(o))}]`) : /[^\w$]/.test(o) ? n.push(`[${JSON.stringify(o)}]`) : (n.length && n.push("."), n.push(o));
return n.join("");
}
function Ga(e) {
var o;
const n = [], r = [...e.issues].sort((t, i) => (t.path ?? []).length - (i.path ?? []).length);
for (const t of r)
n.push(`${t.message}`), (o = t.path) != null && o.length && n.push(` → at ${Wa(t.path)}`);
return n.join(`
`);
}
const Lt = (e) => (n, r, o, t) => {
const i = o ? Object.assign(o, { async: !1 }) : { async: !1 }, a = n._zod.run({ value: r, issues: [] }, i);
if (a instanceof Promise)
throw new dt();
if (a.issues.length) {
const u = new ((t == null ? void 0 : t.Err) ?? e)(a.issues.map((c) => Ce(c, i, Ie())));
throw Cr(u, t == null ? void 0 : t.callee), u;
}
return a.value;
}, jr = /* @__PURE__ */ Lt(Pe), Rt = (e) => async (n, r, o, t) => {
const i = o ? Object.assign(o, { async: !0 }) : { async: !0 };
let a = n._zod.run({ value: r, issues: [] }, i);
if (a instanceof Promise && (a = await a), a.issues.length) {
const u = new ((t == null ? void 0 : t.Err) ?? e)(a.issues.map((c) => Ce(c, i, Ie())));
throw Cr(u, t == null ? void 0 : t.callee), u;
}
return a.value;
}, Ur = /* @__PURE__ */ Rt(Pe), Bt = (e) => (n, r, o) => {
const t = o ? { ...o, async: !1 } : { async: !1 }, i = n._zod.run({ value: r, issues: [] }, t);
if (i instanceof Promise)
throw new dt();
return i.issues.length ? {
success: !1,
error: new (e ?? Mr)(i.issues.map((a) => Ce(a, t, Ie())))
} : { success: !0, data: i.value };
}, Ha = /* @__PURE__ */ Bt(Pe), Jt = (e) => async (n, r, o) => {
const t = o ? Object.assign(o, { async: !0 }) : { async: !0 };
let i = n._zod.run({ value: r, issues: [] }, t);
return i instanceof Promise && (i = await i), i.issues.length ? {
success: !1,
error: new e(i.issues.map((a) => Ce(a, t, Ie())))
} : { success: !0, data: i.value };
}, Xa = /* @__PURE__ */ Jt(Pe), Rr = (e) => (n, r, o) => {
const t = o ? Object.assign(o, { direction: "backward" }) : { direction: "backward" };
return Lt(e)(n, r, t);
}, zm = /* @__PURE__ */ Rr(Pe), Br = (e) => (n, r, o) => Lt(e)(n, r, o), xm = /* @__PURE__ */ Br(Pe), Jr = (e) => async (n, r, o) => {
const t = o ? Object.assign(o, { direction: "backward" }) : { direction: "backward" };
return Rt(e)(n, r, t);
}, Dm = /* @__PURE__ */ Jr(Pe), Vr = (e) => async (n, r, o) => Rt(e)(n, r, o), Om = /* @__PURE__ */ Vr(Pe), qr = (e) => (n, r, o) => {
const t = o ? Object.assign(o, { direction: "backward" }) : { direction: "backward" };
return Bt(e)(n, r, t);
}, jm = /* @__PURE__ */ qr(Pe), Yr = (e) => (n, r, o) => Bt(e)(n, r, o), Um = /* @__PURE__ */ Yr(Pe), Kr = (e) => async (n, r, o) => {
const t = o ? Object.assign(o, { direction: "backward" }) : { direction: "backward" };
return Jt(e)(n, r, t);
}, Tm = /* @__PURE__ */ Kr(Pe), Wr = (e) => async (n, r, o) => Jt(e)(n, r, o), Em = /* @__PURE__ */ Wr(Pe), Qa = /^[cC][^\s-]{8,}$/, eu = /^[0-9a-z]+$/, tu = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, nu = /^[0-9a-vA-V]{20}$/, ru = /^[A-Za-z0-9]{27}$/, iu = /^[a-zA-Z0-9_-]{21}$/, ou = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Pm = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, au = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, yt = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Nm = /* @__PURE__ */ yt(4), Am = /* @__PURE__ */ yt(6), Zm = /* @__PURE__ */ yt(7), uu = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Cm = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, Mm = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, lu = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u, Fm = lu, Lm = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, Rm = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
function cu() {
return new RegExp(Rm, "u");
}
const su = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, du = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, fu = (e) => {
const n = Ge(e ?? ":");
return new RegExp(`^(?:[0-9A-F]{2}${n}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${n}){5}[0-9a-f]{2}$`);
}, mu = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, vu = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, pu = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Gr = /^[A-Za-z0-9_-]*$/, gu = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, hu = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/, $u = /^\+[1-9]\d{6,14}$/, bu = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", _u = /* @__PURE__ */ new RegExp(`^${bu}$`);
function yu(e) {
const n = "(?:[01]\\d|2[0-3]):[0-5]\\d";
return typeof e.precision == "number" ? e.precision === -1 ? `${n}` : e.precision === 0 ? `${n}:[0-5]\\d` : `${n}:[0-5]\\d\\.\\d{${e.precision}}` : `${n}(?::[0-5]\\d(?:\\.\\d+)?)?`;
}
function ku(e) {
return new RegExp(`^${yu(e)}$`);
}
function Su(e) {
const n = yu({ precision: e.precision }), r = ["Z"];
e.local && r.push(""), e.offset && r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
const o = `${n}(?:${r.join("|")})`;
return new RegExp(`^${bu}T(?:${o})$`);
}
const Iu = (e) => {
const n = e ? `[\\s\\S]{${(e == null ? void 0 : e.minimum) ?? 0},${(e == null ? void 0 : e.maximum) ?? ""}}` : "[\\s\\S]*";
return new RegExp(`^${n}$`);
}, wu = /^-?\d+n?$/, zu = /^-?\d+$/, Hr = /^-?\d+(?:\.\d+)?$/, xu = /^(?:true|false)$/i, Du = /^null$/i, Ou = /^undefined$/i, ju = /^[^A-Z]*$/, Uu = /^[^a-z]*$/, Tu = /^[0-9a-fA-F]*$/;
function Vt(e, n) {
return new RegExp(`^[A-Za-z0-9+/]{${e}}${n}$`);
}
function qt(e) {
return new RegExp(`^[A-Za-z0-9_-]{${e}}$`);
}
const Bm = /^[0-9a-fA-F]{32}$/, Jm = /* @__PURE__ */ Vt(22, "=="), Vm = /* @__PURE__ */ qt(22), qm = /^[0-9a-fA-F]{40}$/, Ym = /* @__PURE__ */ Vt(27, "="), Km = /* @__PURE__ */ qt(27), Wm = /^[0-9a-fA-F]{64}$/, Gm = /* @__PURE__ */ Vt(43, "="), Hm = /* @__PURE__ */ qt(43), Xm = /^[0-9a-fA-F]{96}$/, Qm = /* @__PURE__ */ Vt(64, ""), ev = /* @__PURE__ */ qt(64), tv = /^[0-9a-fA-F]{128}$/, nv = /* @__PURE__ */ Vt(86, "=="), rv = /* @__PURE__ */ qt(86), Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
base64: pu,
base64url: Gr,
bigint: wu,
boolean: xu,
browserEmail: Lm,
cidrv4: mu,
cidrv6: vu,
cuid: Qa,
cuid2: eu,
date: _u,
datetime: Su,
domain: hu,
duration: ou,
e164: $u,
email: uu,
emoji: cu,
extendedDuration: Pm,
guid: au,
hex: Tu,
hostname: gu,
html5Email: Cm,
idnEmail: Fm,
integer: zu,
ipv4: su,
ipv6: du,
ksuid: ru,
lowercase: ju,
mac: fu,
md5_base64: Jm,
md5_base64url: Vm,
md5_hex: Bm,
nanoid: iu,
null: Du,
number: Hr,
rfc5322Email: Mm,
sha1_base64: Ym,
sha1_base64url: Km,
sha1_hex: qm,
sha256_base64: Gm,
sha256_base64url: Hm,
sha256_hex: Wm,
sha384_base64: Qm,
sha384_base64url: ev,
sha384_hex: Xm,
sha512_base64: nv,
sha512_base64url: rv,
sha512_hex: tv,
string: Iu,
time: ku,
ulid: tu,
undefined: Ou,
unicodeEmail: lu,
uppercase: Uu,
uuid: yt,
uuid4: Nm,
uuid6: Am,
uuid7: Zm,
xid: nu
}, Symbol.toStringTag, { value: "Module" })), se = /* @__PURE__ */ v("$ZodCheck", (e, n) => {
var r;
e._zod ?? (e._zod = {}), e._zod.def = n, (r = e._zod).onattach ?? (r.onattach = []);
}), Eu = {
number: "number",
bigint: "bigint",
object: "date"
}, Qr = /* @__PURE__ */ v("$ZodCheckLessThan", (e, n) => {
se.init(e, n);
const r = Eu[typeof n.value];
e._zod.onattach.push((o) => {
const t = o._zod.bag, i = (n.inclusive ? t.maximum : t.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
n.value < i && (n.inclusive ? t.maximum = n.value : t.exclusiveMaximum = n.value);
}), e._zod.check = (o) => {
(n.inclusive ? o.value <= n.value : o.value < n.value) || o.issues.push({
origin: r,
code: "too_big",
maximum: typeof n.value == "object" ? n.value.getTime() : n.value,
input: o.value,
inclusive: n.inclusive,
inst: e,
continue: !n.abort
});
};
}), ei = /* @__PURE__ */ v("$ZodCheckGreaterThan", (e, n) => {
se.init(e, n);
const r = Eu[typeof n.value];
e._zod.onattach.push((o) => {
const t = o._zod.bag, i = (n.inclusive ? t.minimum : t.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
n.value > i && (n.inclusive ? t.minimum = n.value : t.exclusiveMinimum = n.value);
}), e._zod.check = (o) => {
(n.inclusive ? o.value >= n.value : o.value > n.value) || o.issues.push({
origin: r,
code: "too_small",
minimum: typeof n.value == "object" ? n.value.getTime() : n.value,
input: o.value,
inclusive: n.inclusive,
inst: e,
continue: !n.abort
});
};
}), Pu = /* @__PURE__ */ v("$ZodCheckMultipleOf", (e, n) => {
se.init(e, n), e._zod.onattach.push((r) => {
var o;
(o = r._zod.bag).multipleOf ?? (o.multipleOf = n.value);
}), e._zod.check = (r) => {
if (typeof r.value != typeof n.value)
throw new Error("Cannot mix number and bigint in multiple_of check.");
(typeof r.value == "bigint" ? r.value % n.value === BigInt(0) : ja(r.value, n.value) === 0) || r.issues.push({
origin: typeof r.value,
code: "not_multiple_of",
divisor: n.value,
input: r.value,
inst: e,
continue: !n.abort
});
};
}), Nu = /* @__PURE__ */ v("$ZodCheckNumberFormat", (e, n) => {
var a;
se.init(e, n), n.format = n.format || "float64";
const r = (a = n.format) == null ? void 0 : a.includes("int"), o = r ? "int" : "number", [t, i] = Na[n.format];
e._zod.onattach.push((u) => {
const c = u._zod.bag;
c.format = n.format, c.minimum = t, c.maximum = i, r && (c.pattern = zu);
}), e._zod.check = (u) => {
const c = u.value;
if (r) {
if (!Number.isInteger(c)) {
u.issues.push({
expected: o,
format: n.format,
code: "invalid_type",
continue: !1,
input: c,
inst: e
});
return;
}
if (!Number.isSafeInteger(c)) {
c > 0 ? u.issues.push({
input: c,
code: "too_big",
maximum: Number.MAX_SAFE_INTEGER,
note: "Integers must be within the safe integer range.",
inst: e,
origin: o,
inclusive: !0,
continue: !n.abort
}) : u.issues.push({
input: c,
code: "too_small",
minimum: Number.MIN_SAFE_INTEGER,
note: "Integers must be within the safe integer range.",
inst: e,
origin: o,
inclusive: !0,
continue: !n.abort
});
return;
}
}
c < t && u.issues.push({
origin: "number",
input: c,
code: "too_small",
minimum: t,
inclusive: !0,
inst: e,
continue: !n.abort
}), c > i && u.issues.push({
origin: "number",
input: c,
code: "too_big",
maximum: i,
inclusive: !0,
inst: e,
continue: !n.abort
});
};
}), Au = /* @__PURE__ */ v("$ZodCheckBigIntFormat", (e, n) => {
se.init(e, n);
const [r, o] = Aa[n.format];
e._zod.onattach.push((t) => {
const i = t._zod.bag;
i.format = n.format, i.minimum = r, i.maximum = o;
}), e._zod.check = (t) => {
const i = t.value;
i < r && t.issues.push({
origin: "bigint",
input: i,
code: "too_small",
minimum: r,
inclusive: !0,
inst: e,
continue: !n.abort
}), i > o && t.issues.push({
origin: "bigint",
input: i,
code: "too_big",
maximum: o,
inclusive: !0,
inst: e,
continue: !n.abort
});
};
}), Zu = /* @__PURE__ */ v("$ZodCheckMaxSize", (e, n) => {
var r;
se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => {
const t = o.value;
return !pt(t) && t.size !== void 0;
}), e._zod.onattach.push((o) => {
const t = o._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
n.maximum < t && (o._zod.bag.maximum = n.maximum);
}), e._zod.check = (o) => {
const t = o.value;
t.size <= n.maximum || o.issues.push({
origin: Cn(t),
code: "too_big",
maximum: n.maximum,
inclusive: !0,
input: t,
inst: e,
continue: !n.abort
});
};
}), Cu = /* @__PURE__ */ v("$ZodCheckMinSize", (e, n) => {
var r;
se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => {
const t = o.value;
return !pt(t) && t.size !== void 0;
}), e._zod.onattach.push((o) => {
const t = o._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
n.minimum > t && (o._zod.bag.minimum = n.minimum);
}), e._zod.check = (o) => {
const t = o.value;
t.size >= n.minimum || o.issues.push({
origin: Cn(t),
code: "too_small",
minimum: n.minimum,
inclusive: !0,
input: t,
inst: e,
continue: !n.abort
});
};
}), Mu = /* @__PURE__ */ v("$ZodCheckSizeEquals", (e, n) => {
var r;
se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => {
const t = o.value;
return !pt(t) && t.size !== void 0;
}), e._zod.onattach.push((o) => {
const t = o._zod.bag;
t.minimum = n.size, t.maximum = n.size, t.size = n.size;
}), e._zod.check = (o) => {
const t = o.value, i = t.size;
if (i === n.size)
return;
const a = i > n.size;
o.issues.push({
origin: Cn(t),
...a ? { code: "too_big", maximum: n.size } : { code: "too_small", minimum: n.size },
inclusive: !0,
exact: !0,
input: o.value,
inst: e,
continue: !n.abort
});
};
}), Fu = /* @__PURE__ */ v("$ZodCheckMaxLength", (e, n) => {
var r;
se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => {
const t = o.value;
return !pt(t) && t.length !== void 0;
}), e._zod.onattach.push((o) => {
const t = o._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
n.maximum < t && (o._zod.bag.maximum = n.maximum);
}), e._zod.check = (o) => {
const t = o.value;
if (t.length <= n.maximum)
return;
const a = Mn(t);
o.issues.push({
origin: a,
code: "too_big",
maximum: n.maximum,
inclusive: !0,
input: t,
inst: e,
continue: !n.abort
});
};
}), Lu = /* @__PURE__ */ v("$ZodCheckMinLength", (e, n) => {
var r;
se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => {
const t = o.value;
return !pt(t) && t.length !== void 0;
}), e._zod.onattach.push((o) => {
const t = o._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
n.minimum > t && (o._zod.bag.minimum = n.minimum);
}), e._zod.check = (o) => {
const t = o.value;
if (t.length >= n.minimum)
return;
const a = Mn(t);
o.issues.push({
origin: a,
code: "too_small",
minimum: n.minimum,
inclusive: !0,
input: t,
inst: e,
continue: !n.abort
});
};
}), Ru = /* @__PURE__ */ v("$ZodCheckLengthEquals", (e, n) => {
var r;
se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => {
const t = o.value;
return !pt(t) && t.length !== void 0;
}), e._zod.onattach.push((o) => {
const t = o._zod.bag;
t.minimum = n.length, t.maximum = n.length, t.length = n.length;
}), e._zod.check = (o) => {
const t = o.value, i = t.length;
if (i === n.length)
return;
const a = Mn(t), u = i > n.length;
o.issues.push({
origin: a,
...u ? { code: "too_big", maximum: n.length } : { code: "too_small", minimum: n.length },
inclusive: !0,
exact: !0,
input: o.value,
inst: e,
continue: !n.abort
});
};
}), Yt = /* @__PURE__ */ v("$ZodCheckStringFormat", (e, n) => {
var r, o;
se.init(e, n), e._zod.onattach.push((t) => {
const i = t._zod.bag;
i.format = n.format, n.pattern && (i.patterns ?? (i.patterns = /* @__PURE__ */ new Set()), i.patterns.add(n.pattern));
}), n.pattern ? (r = e._zod).check ?? (r.check = (t) => {
n.pattern.lastIndex = 0, !n.pattern.test(t.value) && t.issues.push({
origin: "string",
code: "invalid_format",
format: n.format,
input: t.value,
...n.pattern ? { pattern: n.pattern.toString() } : {},
inst: e,
continue: !n.abort
});
}) : (o = e._zod).check ?? (o.check = () => {
});
}), Bu = /* @__PURE__ */ v("$ZodCheckRegex", (e, n) => {
Yt.init(e, n), e._zod.check = (r) => {
n.pattern.lastIndex = 0, !n.pattern.test(r.value) && r.issues.push({
origin: "string",
code: "invalid_format",
format: "regex",
input: r.value,
pattern: n.pattern.toString(),
inst: e,
continue: !n.abort
});
};
}), Ju = /* @__PURE__ */ v("$ZodCheckLowerCase", (e, n) => {
n.pattern ?? (n.pattern = ju), Yt.init(e, n);
}), Vu = /* @__PURE__ */ v("$ZodCheckUpperCase", (e, n) => {
n.pattern ?? (n.pattern = Uu), Yt.init(e, n);
}), qu = /* @__PURE__ */ v("$ZodCheckIncludes", (e, n) => {
se.init(e, n);
const r = Ge(n.includes), o = new RegExp(typeof n.position == "number" ? `^.{${n.position}}${r}` : r);
n.pattern = o, e._zod.onattach.push((t) => {
const i = t._zod.bag;
i.patterns ?? (i.patterns = /* @__PURE__ */ new Set()), i.patterns.add(o);
}), e._zod.check = (t) => {
t.value.includes(n.includes, n.position) || t.issues.push({
origin: "string",
code: "invalid_format",
format: "includes",
includes: n.includes,
input: t.value,
inst: e,
continue: !n.abort
});
};
}), Yu = /* @__PURE__ */ v("$ZodCheckStartsWith", (e, n) => {
se.init(e, n);
const r = new RegExp(`^${Ge(n.prefix)}.*`);
n.pattern ?? (n.pattern = r), e._zod.onattach.push((o) => {
const t = o._zod.bag;
t.patterns ?? (t.patterns = /* @__PURE__ */ new Set()), t.patterns.add(r);
}), e._zod.check = (o) => {
o.value.startsWith(n.prefix) || o.issues.push({
origin: "string",
code: "invalid_format",
format: "starts_with",
prefix: n.prefix,
input: o.value,
inst: e,
continue: !n.abort
});
};
}), Ku = /* @__PURE__ */ v("$ZodCheckEndsWith", (e, n) => {
se.init(e, n);
const r = new RegExp(`.*${Ge(n.suffix)}$`);
n.pattern ?? (n.pattern = r), e._zod.onattach.push((o) => {
const t = o._zod.bag;
t.patterns ?? (t.patterns = /* @__PURE__ */ new Set()), t.patterns.add(r);
}), e._zod.check = (o) => {
o.value.endsWith(n.suffix) || o.issues.push({
origin: "string",
code: "invalid_format",
format: "ends_with",
suffix: n.suffix,
input: o.value,
inst: e,
continue: !n.abort
});
};
});
function Co(e, n, r) {
e.issues.length && n.issues.push(...Je(r, e.issues));
}
const Wu = /* @__PURE__ */ v("$ZodCheckProperty", (e, n) => {
se.init(e, n), e._zod.check = (r) => {
const o = n.schema._zod.run({
value: r.value[n.property],
issues: []
}, {});
if (o instanceof Promise)
return o.then((t) => Co(t, r, n.property));
Co(o, r, n.property);
};
}), Gu = /* @__PURE__ */ v("$ZodCheckMimeType", (e, n) => {
se.init(e, n);
const r = new Set(n.mime);
e._zod.onattach.push((o) => {
o._zod.bag.mime = n.mime;
}), e._zod.check = (o) => {
r.has(o.value.type) || o.issues.push({
code: "invalid_value",
values: n.mime,
input: o.value.type,
inst: e,
continue: !n.abort
});
};
}), Hu = /* @__PURE__ */ v("$ZodCheckOverwrite", (e, n) => {
se.init(e, n), e._zod.check = (r) => {
r.value = n.tx(r.value);
};
});
class Xu {
constructor(n = []) {
this.content = [], this.indent = 0, this && (this.args = n);
}
indented(n) {
this.indent += 1, n(this), this.indent -= 1;
}
write(n) {
if (typeof n == "function") {
n(this, { execution: "sync" }), n(this, { execution: "async" });
return;
}
const o = n.split(`
`).filter((a) => a), t = Math.min(...o.map((a) => a.length - a.trimStart().length)), i = o.map((a) => a.slice(t)).map((a) => " ".repeat(this.indent * 2) + a);
for (const a of i)
this.content.push(a);
}
compile() {
const n = Function, r = this == null ? void 0 : this.args, t = [...((this == null ? void 0 : this.content) ?? [""]).map((i) => ` ${i}`)];
return new n(...r, t.join(`
`));
}
}
const Qu = {
major: 4,
minor: 3,
patch: 6
}, R = /* @__PURE__ */ v("$ZodType", (e, n) => {
var t;
var r;
e ?? (e = {}), e._zod.def = n, e._zod.bag = e._zod.bag || {}, e._zod.version = Qu;
const o = [...e._zod.def.checks ?? []];
e._zod.traits.has("$ZodCheck") && o.unshift(e);
for (const i of o)
for (const a of i._zod.onattach)
a(e);
if (o.length === 0)
(r = e._zod).deferred ?? (r.deferred = []), (t = e._zod.deferred) == null || t.push(() => {
e._zod.run = e._zod.parse;
});
else {
const i = (u, c, l) => {
let s = ct(u), d;
for (const m of c) {
if (m._zod.def.when) {
if (!m._zod.def.when(u))
continue;
} else if (s)
continue;
const p = u.issues.length, g = m._zod.check(u);
if (g instanceof Promise && (l == null ? void 0 : l.async) === !1)
throw new dt();
if (d || g instanceof Promise)
d = (d ?? Promise.resolve()).then(async () => {
await g, u.issues.length !== p && (s || (s = ct(u, p)));
});
else {
if (u.issues.length === p)
continue;
s || (s = ct(u, p));
}
}
return d ? d.then(() => u) : u;
}, a = (u, c, l) => {
if (ct(u))
return u.aborted = !0, u;
const s = i(c, o, l);
if (s instanceof Promise) {
if (l.async === !1)
throw new dt();
return s.then((d) => e._zod.parse(d, l));
}
return e._zod.parse(s, l);
};
e._zod.run = (u, c) => {
if (c.skipChecks)
return e._zod.parse(u, c);
if (c.direction === "backward") {
const s = e._zod.parse({ value: u.value, issues: [] }, { ...c, skipChecks: !0 });
return s instanceof Promise ? s.then((d) => a(d, u, c)) : a(s, u, c);
}
const l = e._zod.parse(u, c);
if (l instanceof Promise) {
if (c.async === !1)
throw new dt();
return l.then((s) => i(s, o, c));
}
return i(l, o, c);
};
}
K(e, "~standard", () => ({
validate: (i) => {
var a;
try {
const u = Ha(e, i);
return u.success ? { value: u.data } : { issues: (a = u.error) == null ? void 0 : a.issues };
} catch {
return Xa(e, i).then((c) => {
var l;
return c.success ? { value: c.data } : { issues: (l = c.error) == null ? void 0 : l.issues };
});
}
},
vendor: "zod",
version: 1
}));
}), Kt = /* @__PURE__ */ v("$ZodString", (e, n) => {
var r;
R.init(e, n), e._zod.pattern = [...((r = e == null ? void 0 : e._zod.bag) == null ? void 0 : r.patterns) ?? []].pop() ?? Iu(e._zod.bag), e._zod.parse = (o, t) => {
if (n.coerce)
try {
o.value = String(o.value);
} catch {
}
return typeof o.value == "string" || o.issues.push({
expected: "string",
code: "invalid_type",
input: o.value,
inst: e
}), o;
};
}), ae = /* @__PURE__ */ v("$ZodStringFormat", (e, n) => {
Yt.init(e, n), Kt.init(e, n);
}), el = /* @__PURE__ */ v("$ZodGUID", (e, n) => {
n.pattern ?? (n.pattern = au), ae.init(e, n);
}), tl = /* @__PURE__ */ v("$ZodUUID", (e, n) => {
if (n.version) {
const o = {
v1: 1,
v2: 2,
v3: 3,
v4: 4,
v5: 5,
v6: 6,
v7: 7,
v8: 8
}[n.version];
if (o === void 0)
throw new Error(`Invalid UUID version: "${n.version}"`);
n.pattern ?? (n.pattern = yt(o));
} else
n.pattern ?? (n.pattern = yt());
ae.init(e, n);
}), nl = /* @__PURE__ */ v("$ZodEmail", (e, n) => {
n.pattern ?? (n.pattern = uu), ae.init(e, n);
}), rl = /* @__PURE__ */ v("$ZodURL", (e, n) => {
ae.init(e, n), e._zod.check = (r) => {
try {
const o = r.value.trim(), t = new URL(o);
n.hostname && (n.hostname.lastIndex = 0, n.hostname.test(t.hostname) || r.issues.push({
code: "invalid_format",
format: "url",
note: "Invalid hostname",
pattern: n.hostname.source,
input: r.value,
inst: e,
continue: !n.abort
})), n.protocol && (n.protocol.lastIndex = 0, n.protocol.test(t.protocol.endsWith(":") ? t.protocol.slice(0, -1) : t.protocol) || r.issues.push({
code: "invalid_format",
format: "url",
note: "Invalid protocol",
pattern: n.protocol.source,
input: r.value,
inst: e,
continue: !n.abort
})), n.normalize ? r.value = t.href : r.value = o;
return;
} catch {
r.issues.push({
code: "invalid_format",
format: "url",
input: r.value,
inst: e,
continue: !n.abort
});
}
};
}), il = /* @__PURE__ */ v("$ZodEmoji", (e, n) => {
n.pattern ?? (n.pattern = cu()), ae.init(e, n);
}), ol = /* @__PURE__ */ v("$ZodNanoID", (e, n) => {
n.pattern ?? (n.pattern = iu), ae.init(e, n);
}), al = /* @__PURE__ */ v("$ZodCUID", (e, n) => {
n.pattern ?? (n.pattern = Qa), ae.init(e, n);
}), ul = /* @__PURE__ */ v("$ZodCUID2", (e, n) => {
n.pattern ?? (n.pattern = eu), ae.init(e, n);
}), ll = /* @__PURE__ */ v("$ZodULID", (e, n) => {
n.pattern ?? (n.pattern = tu), ae.init(e, n);
}), cl = /* @__PURE__ */ v("$ZodXID", (e, n) => {
n.pattern ?? (n.pattern = nu), ae.init(e, n);
}), sl = /* @__PURE__ */ v("$ZodKSUID", (e, n) => {
n.pattern ?? (n.pattern = ru), ae.init(e, n);
}), dl = /* @__PURE__ */ v("$ZodISODateTime", (e, n) => {
n.pattern ?? (n.pattern = Su(n)), ae.init(e, n);
}), fl = /* @__PURE__ */ v("$ZodISODate", (e, n) => {
n.pattern ?? (n.pattern = _u), ae.init(e, n);
}), ml = /* @__PURE__ */ v("$ZodISOTime", (e, n) => {
n.pattern ?? (n.pattern = ku(n)), ae.init(e, n);
}), vl = /* @__PURE__ */ v("$ZodISODuration", (e, n) => {
n.pattern ?? (n.pattern = ou), ae.init(e, n);
}), pl = /* @__PURE__ */ v("$ZodIPv4", (e, n) => {
n.pattern ?? (n.pattern = su), ae.init(e, n), e._zod.bag.format = "ipv4";
}), gl = /* @__PURE__ */ v("$ZodIPv6", (e, n) => {
n.pattern ?? (n.pattern = du), ae.init(e, n), e._zod.bag.format = "ipv6", e._zod.check = (r) => {
try {
new URL(`http://[${r.value}]`);
} catch {
r.issues.push({
code: "invalid_format",
format: "ipv6",
input: r.value,
inst: e,
continue: !n.abort
});
}
};
}), hl = /* @__PURE__ */ v("$ZodMAC", (e, n) => {
n.pattern ?? (n.pattern = fu(n.delimiter)), ae.init(e, n), e._zod.bag.format = "mac";
}), $l = /* @__PURE__ */ v("$ZodCIDRv4", (e, n) => {
n.pattern ?? (n.pattern = mu), ae.init(e, n);
}), bl = /* @__PURE__ */ v("$ZodCIDRv6", (e, n) => {
n.pattern ?? (n.pattern = vu), ae.init(e, n), e._zod.check = (r) => {
const o = r.value.split("/");
try {
if (o.length !== 2)
throw new Error();
const [t, i] = o;
if (!i)
throw new Error();
const a = Number(i);
if (`${a}` !== i)
throw new Error();
if (a < 0 || a > 128)
throw new Error();
new URL(`http://[${t}]`);
} catch {
r.issues.push({
code: "invalid_format",
format: "cidrv6",
input: r.value,
inst: e,
continue: !n.abort
});
}
};
});
function ti(e) {
if (e === "")
return !0;
if (e.length % 4 !== 0)
return !1;
try {
return atob(e), !0;
} catch {
return !1;
}
}
const _l = /* @__PURE__ */ v("$ZodBase64", (e, n) => {
n.pattern ?? (n.pattern = pu), ae.init(e, n), e._zod.bag.contentEncoding = "base64", e._zod.check = (r) => {
ti(r.value) || r.issues.push({
code: "invalid_format",
format: "base64",
input: r.value,
inst: e,
continue: !n.abort
});
};
});
function yl(e) {
if (!Gr.test(e))
return !1;
const n = e.replace(/[-_]/g, (o) => o === "-" ? "+" : "/"), r = n.padEnd(Math.ceil(n.length / 4) * 4, "=");
return ti(r);
}
const kl = /* @__PURE__ */ v("$ZodBase64URL", (e, n) => {
n.pattern ?? (n.pattern = Gr), ae.init(e, n), e._zod.bag.contentEncoding = "base64url", e._zod.check = (r) => {
yl(r.value) || r.issues.push({
code: "invalid_format",
format: "base64url",
input: r.value,
inst: e,
continue: !n.abort
});
};
}), Sl = /* @__PURE__ */ v("$ZodE164", (e, n) => {
n.pattern ?? (n.pattern = $u), ae.init(e, n);
});
function Il(e, n = null) {
try {
const r = e.split(".");
if (r.length !== 3)
return !1;
const [o] = r;
if (!o)
return !1;
const t = JSON.parse(atob(o));
return !("typ" in t && (t == null ? void 0 : t.typ) !== "JWT" || !t.alg || n && (!("alg" in t) || t.alg !== n));
} catch {
return !1;
}
}
const wl = /* @__PURE__ */ v("$ZodJWT", (e, n) => {
ae.init(e, n), e._zod.check = (r) => {
Il(r.value, n.alg) || r.issues.push({
code: "invalid_format",
format: "jwt",
input: r.value,
inst: e,
continue: !n.abort
});
};
}), zl = /* @__PURE__ */ v("$ZodCustomStringFormat", (e, n) => {
ae.init(e, n), e._zod.check = (r) => {
n.fn(r.value) || r.issues.push({
code: "invalid_format",
format: n.format,
input: r.value,
inst: e,
continue: !n.abort
});
};
}), ni = /* @__PURE__ */ v("$ZodNumber", (e, n) => {
R.init(e, n), e._zod.pattern = e._zod.bag.pattern ?? Hr, e._zod.parse = (r, o) => {
if (n.coerce)
try {
r.value = Number(r.value);
} catch {
}
const t = r.value;
if (typeof t == "number" && !Number.isNaN(t) && Number.isFinite(t))
return r;
const i = typeof t == "number" ? Number.isNaN(t) ? "NaN" : Number.isFinite(t) ? void 0 : "Infinity" : void 0;
return r.issues.push({
expected: "number",
code: "invalid_type",
input: t,
inst: e,
...i ? { received: i } : {}
}), r;
};
}), xl = /* @__PURE__ */ v("$ZodNumberFormat", (e, n) => {
Nu.init(e, n), ni.init(e, n);
}), ri = /* @__PURE__ */ v("$ZodBoolean", (e, n) => {
R.init(e, n), e._zod.pattern = xu, e._zod.parse = (r, o) => {
if (n.coerce)
try {
r.value = !!r.value;
} catch {
}
const t = r.value;
return typeof t == "boolean" || r.issues.push({
expected: "boolean",
code: "invalid_type",
input: t,
inst: e
}), r;
};
}), ii = /* @__PURE__ */ v("$ZodBigInt", (e, n) => {
R.init(e, n), e._zod.pattern = wu, e._zod.parse = (r, o) => {
if (n.coerce)
try {
r.value = BigInt(r.value);
} catch {
}
return typeof r.value == "bigint" || r.issues.push({
expected: "bigint",
code: "invalid_type",
input: r.value,
inst: e
}), r;
};
}), Dl = /* @__PURE__ */ v("$ZodBigIntFormat", (e, n) => {
Au.init(e, n), ii.init(e, n);
}), Ol = /* @__PURE__ */ v("$ZodSymbol", (e, n) => {
R.init(e, n), e._zod.parse = (r, o) => {
const t = r.value;
return typeof t == "symbol" || r.issues.push({
expected: "symbol",
code: "invalid_type",
input: t,
inst: e
}), r;
};
}), jl = /* @__PURE__ */ v("$ZodUndefined", (e, n) => {
R.init(e, n), e._zod.pattern = Ou, e._zod.values = /* @__PURE__ */ new Set([void 0]), e._zod.optin = "optional", e._zod.optout = "optional", e._zod.parse = (r, o) => {
const t = r.value;
return typeof t > "u" || r.issues.push({
expected: "undefined",
code: "invalid_type",
input: t,
inst: e
}), r;
};
}), Ul = /* @__PURE__ */ v("$ZodNull", (e, n) => {
R.init(e, n), e._zod.pattern = Du, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, o) => {
const t = r.value;
return t === null || r.issues.push({
expected: "null",
code: "invalid_type",
input: t,
inst: e
}), r;
};
}), Tl = /* @__PURE__ */ v("$ZodAny", (e, n) => {
R.init(e, n), e._zod.parse = (r) => r;
}), El = /* @__PURE__ */ v("$ZodUnknown", (e, n) => {
R.init(e, n), e._zod.parse = (r) => r;
}), Pl = /* @__PURE__ */ v("$ZodNever", (e, n) => {
R.init(e, n), e._zod.parse = (r, o) => (r.issues.push({
expected: "never",
code: "invalid_type",
input: r.value,
inst: e
}), r);
}), Nl = /* @__PURE__ */ v("$ZodVoid", (e, n) => {
R.init(e, n), e._zod.parse = (r, o) => {
const t = r.value;
return typeof t > "u" || r.issues.push({
expected: "void",
code: "invalid_type",
input: t,
inst: e
}), r;
};
}), Al = /* @__PURE__ */ v("$ZodDate", (e, n) => {
R.init(e, n), e._zod.parse = (r, o) => {
if (n.coerce)
try {
r.value = new Date(r.value);
} catch {
}
const t = r.value, i = t instanceof Date;
return i && !Number.isNaN(t.getTime()) || r.issues.push({
expected: "date",
code: "invalid_type",
input: t,
...i ? { received: "Invalid Date" } : {},
inst: e
}), r;
};
});
function Mo(e, n, r) {
e.issues.length && n.issues.push(...Je(r, e.issues)), n.value[r] = e.value;
}
const Zl = /* @__PURE__ */ v("$ZodArray", (e, n) => {
R.init(e, n), e._zod.parse = (r, o) => {
const t = r.value;
if (!Array.isArray(t))
return r.issues.push({
expected: "array",
code: "invalid_type",
input: t,
inst: e
}), r;
r.value = Array(t.length);
const i = [];
for (let a = 0; a < t.length; a++) {
const u = t[a], c = n.element._zod.run({
value: u,
issues: []
}, o);
c instanceof Promise ? i.push(c.then((l) => Mo(l, r, a))) : Mo(c, r, a);
}
return i.length ? Promise.all(i).then(() => r) : r;
};
});
function jn(e, n, r, o, t) {
if (e.issues.length) {
if (t && !(r in o))
return;
n.issues.push(...Je(r, e.issues));
}
e.value === void 0 ? r in o && (n.value[r] = void 0) : n.value[r] = e.value;
}
function Cl(e) {
var o, t, i, a;
const n = Object.keys(e.shape);
for (const u of n)
if (!((a = (i = (t = (o = e.shape) == null ? void 0 : o[u]) == null ? void 0 : t._zod) == null ? void 0 : i.traits) != null && a.has("$ZodType")))
throw new Error(`Invalid element at key "${u}": expected a Zod schema`);
const r = Pa(e.shape);
return {
...e,
keys: n,
keySet: new Set(n),
numKeys: n.length,
optionalKeys: new Set(r)
};
}
function Ml(e, n, r, o, t, i) {
const a = [], u = t.keySet, c = t.catchall._zod, l = c.def.type, s = c.optout === "optional";
for (const d in n) {
if (u.has(d))
continue;
if (l === "never") {
a.push(d);
continue;
}
const m = c.run({ value: n[d], issues: [] }, o);
m instanceof Promise ? e.push(m.then((p) => jn(p, r, d, n, s))) : jn(m, r, d, n, s);
}
return a.length && r.issues.push({
code: "unrecognized_keys",
keys: a,
input: n,
inst: i
}), e.length ? Promise.all(e).then(() => r) : r;
}
const Fl = /* @__PURE__ */ v("$ZodObject", (e, n) => {
R.init(e, n);
const r = Object.getOwnPropertyDescriptor(n, "shape");
if (!(r != null && r.get)) {
const u = n.shape;
Object.defineProperty(n, "shape", {
get: () => {
const c = { ...u };
return Object.defineProperty(n, "shape", {
value: c
}), c;
}
});
}
const o = Ft(() => Cl(n));
K(e._zod, "propValues", () => {
const u = n.shape, c = {};
for (const l in u) {
const s = u[l]._zod;
if (s.values) {
c[l] ?? (c[l] = /* @__PURE__ */ new Set());
for (const d of s.values)
c[l].add(d);
}
}
return c;
});
const t = bt, i = n.catchall;
let a;
e._zod.parse = (u, c) => {
a ?? (a = o.value);
const l = u.value;
if (!t(l))
return u.issues.push({
expected: "object",
code: "invalid_type",
input: l,
inst: e
}), u;
u.value = {};
const s = [], d = a.shape;
for (const m of a.keys) {
const p = d[m], g = p._zod.optout === "optional", f = p._zod.run({ value: l[m], issues: [] }, c);
f instanceof Promise ? s.push(f.then((h) => jn(h, u, m, l, g))) : jn(f, u, m, l, g);
}
return i ? Ml(s, l, u, c, o.value, e) : s.length ? Promise.all(s).then(() => u) : u;
};
}), Ll = /* @__PURE__ */ v("$ZodObjectJIT", (e, n) => {
Fl.init(e, n);
const r = e._zod.parse, o = Ft(() => Cl(n)), t = (m) => {
var C;
const p = new Xu(["shape", "payload", "ctx"]), g = o.value, f = (B) => {
const A = Or(B);
return `shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`;
};
p.write("const input = payload.value;");
const h = /* @__PURE__ */ Object.create(null);
let b = 0;
for (const B of g.keys)
h[B] = `key_${b++}`;
p.write("const newResult = {};");
for (const B of g.keys) {
const A = h[B], U = Or(B), I = m[B], _ = ((C = I == null ? void 0 : I._zod) == null ? void 0 : C.optout) === "optional";
p.write(`const ${A} = ${f(B)};`), _ ? p.write(`
if (${A}.issues.length) {
if (${U} in input) {
payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
...iss,
path: iss.path ? [${U}, ...iss.path] : [${U}]
})));
}
}
if (${A}.value === undefined) {
if (${U} in input) {
newResult[${U}] = undefined;
}
} else {
newResult[${U}] = ${A}.value;
}
`) : p.write(`
if (${A}.issues.length) {
payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
...iss,
path: iss.path ? [${U}, ...iss.path] : [${U}]
})));
}
if (${A}.value === undefined) {
if (${U} in input) {
newResult[${U}] = undefined;
}
} else {
newResult[${U}] = ${A}.value;
}
`);
}
p.write("payload.value = newResult;"), p.write("return payload;");
const y = p.compile();
return (B, A) => y(m, B, A);
};
let i;
const a = bt, u = !xn.jitless, l = u && Ta.value, s = n.catchall;
let d;
e._zod.parse = (m, p) => {
d ?? (d = o.value);
const g = m.value;
return a(g) ? u && l && (p == null ? void 0 : p.async) === !1 && p.jitless !== !0 ? (i || (i = t(n.shape)), m = i(m, p), s ? Ml([], g, m, p, d, e) : m) : r(m, p) : (m.issues.push({
expected: "object",
code: "invalid_type",
input: g,
inst: e
}), m);
};
});
function Fo(e, n, r, o) {
for (const i of e)
if (i.issues.length === 0)
return n.value = i.value, n;
const t = e.filter((i) => !ct(i));
return t.length === 1 ? (n.value = t[0].value, t[0]) : (n.issues.push({
code: "invalid_union",
input: n.value,
inst: r,
errors: e.map((i) => i.issues.map((a) => Ce(a, o, Ie())))
}), n);
}
const Fn = /* @__PURE__ */ v("$ZodUnion", (e, n) => {
R.init(e, n), K(e._zod, "optin", () => n.options.some((t) => t._zod.optin === "optional") ? "optional" : void 0), K(e._zod, "optout", () => n.options.some((t) => t._zod.optout === "optional") ? "optional" : void 0), K(e._zod, "values", () => {
if (n.options.every((t) => t._zod.values))
return new Set(n.options.flatMap((t) => Array.from(t._zod.values)));
}), K(e._zod, "pattern", () => {
if (n.options.every((t) => t._zod.pattern)) {
const t = n.options.map((i) => i._zod.pattern);
return new RegExp(`^(${t.map((i) => An(i.source)).join("|")})$`);
}
});
const r = n.options.length === 1, o = n.options[0]._zod.run;
e._zod.parse = (t, i) => {
if (r)
return o(t, i);
let a = !1;
const u = [];
for (const c of n.options) {
const l = c._zod.run({
value: t.value,
issues: []
}, i);
if (l instanceof Promise)
u.push(l), a = !0;
else {
if (l.issues.length === 0)
return l;
u.push(l);
}
}
return a ? Promise.all(u).then((c) => Fo(c, t, e, i)) : Fo(u, t, e, i);
};
});
function Lo(e, n, r, o) {
const t = e.filter((i) => i.issues.length === 0);
return t.length === 1 ? (n.value = t[0].value, n) : (t.length === 0 ? n.issues.push({
code: "invalid_union",
input: n.value,
inst: r,
errors: e.map((i) => i.issues.map((a) => Ce(a, o, Ie())))
}) : n.issues.push({
code: "invalid_union",
input: n.value,
inst: r,
errors: [],
inclusive: !1
}), n);
}
const Rl = /* @__PURE__ */ v("$ZodXor", (e, n) => {
Fn.init(e, n), n.inclusive = !1;
const r = n.options.length === 1, o = n.options[0]._zod.run;
e._zod.parse = (t, i) => {
if (r)
return o(t, i);
let a = !1;
const u = [];
for (const c of n.options) {
const l = c._zod.run({
value: t.value,
issues: []
}, i);
l instanceof Promise ? (u.push(l), a = !0) : u.push(l);
}
return a ? Promise.all(u).then((c) => Lo(c, t, e, i)) : Lo(u, t, e, i);
};
}), Bl = /* @__PURE__ */ v("$ZodDiscriminatedUnion", (e, n) => {
n.inclusive = !1, Fn.init(e, n);
const r = e._zod.parse;
K(e._zod, "propValues", () => {
const t = {};
for (const i of n.options) {
const a = i._zod.propValues;
if (!a || Object.keys(a).length === 0)
throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(i)}"`);
for (const [u, c] of Object.entries(a)) {
t[u] || (t[u] = /* @__PURE__ */ new Set());
for (const l of c)
t[u].add(l);
}
}
return t;
});
const o = Ft(() => {
var a;
const t = n.options, i = /* @__PURE__ */ new Map();
for (const u of t) {
const c = (a = u._zod.propValues) == null ? void 0 : a[n.discriminator];
if (!c || c.size === 0)
throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(u)}"`);
for (const l of c) {
if (i.has(l))
throw new Error(`Duplicate discriminator value "${String(l)}"`);
i.set(l, u);
}
}
return i;
});
e._zod.parse = (t, i) => {
const a = t.value;
if (!bt(a))
return t.issues.push({
code: "invalid_type",
expected: "object",
input: a,
inst: e
}), t;
const u = o.value.get(a == null ? void 0 : a[n.discriminator]);
return u ? u._zod.run(t, i) : n.unionFallback ? r(t, i) : (t.issues.push({
code: "invalid_union",
errors: [],
note: "No matching discriminator",
discriminator: n.discriminator,
input: a,
path: [n.discriminator],
inst: e
}), t);
};
}), Jl = /* @__PURE__ */ v("$ZodIntersection", (e, n) => {
R.init(e, n), e._zod.parse = (r, o) => {
const t = r.value, i = n.left._zod.run({ value: t, issues: [] }, o), a = n.right._zod.run({ value: t, issues: [] }, o);
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([c, l]) => Ro(r, c, l)) : Ro(r, i, a);
};
});
function Tr(e, n) {
if (e === n)
return { valid: !0, data: e };
if (e instanceof Date && n instanceof Date && +e == +n)
return { valid: !0, data: e };
if (ft(e) && ft(n)) {
const r = Object.keys(n), o = Object.keys(e).filter((i) => r.indexOf(i) !== -1), t = { ...e, ...n };
for (const i of o) {
const a = Tr(e[i], n[i]);
if (!a.valid)
return {
valid: !1,
mergeErrorPath: [i, ...a.mergeErrorPath]
};
t[i] = a.data;
}
return { valid: !0, data: t };
}
if (Array.isArray(e) && Array.isArray(n)) {
if (e.length !== n.length)
return { valid: !1, mergeErrorPath: [] };
const r = [];
for (let o = 0; o < e.length; o++) {
const t = e[o], i = n[o], a = Tr(t, i);
if (!a.valid)
return {
valid: !1,
mergeErrorPath: [o, ...a.mergeErrorPath]
};
r.push(a.data);
}
return { valid: !0, data: r };
}
return { valid: !1, mergeErrorPath: [] };
}
function Ro(e, n, r) {
const o = /* @__PURE__ */ new Map();
let t;
for (const u of n.issues)
if (u.code === "unrecognized_keys") {
t ?? (t = u);
for (const c of u.keys)
o.has(c) || o.set(c, {}), o.get(c).l = !0;
} else
e.issues.push(u);
for (const u of r.issues)
if (u.code === "unrecognized_keys")
for (const c of u.keys)
o.has(c) || o.set(c, {}), o.get(c).r = !0;
else
e.issues.push(u);
const i = [...o].filter(([, u]) => u.l && u.r).map(([u]) => u);
if (i.length && t && e.issues.push({ ...t, keys: i }), ct(e))
return e;
const a = Tr(n.value, r.value);
if (!a.valid)
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);
return e.value = a.data, e;
}
const oi = /* @__PURE__ */ v("$ZodTuple", (e, n) => {
R.init(e, n);
const r = n.items;
e._zod.parse = (o, t) => {
const i = o.value;
if (!Array.isArray(i))
return o.issues.push({
input: i,
inst: e,
expected: "tuple",
code: "invalid_type"
}), o;
o.value = [];
const a = [], u = [...r].reverse().findIndex((s) => s._zod.optin !== "optional"), c = u === -1 ? 0 : r.length - u;
if (!n.rest) {
const s = i.length > r.length, d = i.length < c - 1;
if (s || d)
return o.issues.push({
...s ? { code: "too_big", maximum: r.length, inclusive: !0 } : { code: "too_small", minimum: r.length },
input: i,
inst: e,
origin: "array"
}), o;
}
let l = -1;
for (const s of r) {
if (l++, l >= i.length && l >= c)
continue;
const d = s._zod.run({
value: i[l],
issues: []
}, t);
d instanceof Promise ? a.push(d.then((m) => dn(m, o, l))) : dn(d, o, l);
}
if (n.rest) {
const s = i.slice(r.length);
for (const d of s) {
l++;
const m = n.rest._zod.run({
value: d,
issues: []
}, t);
m instanceof Promise ? a.push(m.then((p) => dn(p, o, l))) : dn(m, o, l);
}
}
return a.length ? Promise.all(a).then(() => o) : o;
};
});
function dn(e, n, r) {
e.issues.length && n.issues.push(...Je(r, e.issues)), n.value[r] = e.value;
}
const Vl = /* @__PURE__ */ v("$ZodRecord", (e, n) => {
R.init(e, n), e._zod.parse = (r, o) => {
const t = r.value;
if (!ft(t))
return r.issues.push({
expected: "record",
code: "invalid_type",
input: t,
inst: e
}), r;
const i = [], a = n.keyType._zod.values;
if (a) {
r.value = {};
const u = /* @__PURE__ */ new Set();
for (const l of a)
if (typeof l == "string" || typeof l == "number" || typeof l == "symbol") {
u.add(typeof l == "number" ? l.toString() : l);
const s = n.valueType._zod.run({ value: t[l], issues: [] }, o);
s instanceof Promise ? i.push(s.then((d) => {
d.issues.length && r.issues.push(...Je(l, d.issues)), r.value[l] = d.value;
})) : (s.issues.length && r.issues.push(...Je(l, s.issues)), r.value[l] = s.value);
}
let c;
for (const l in t)
u.has(l) || (c = c ?? [], c.push(l));
c && c.length > 0 && r.issues.push({
code: "unrecognized_keys",
input: t,
inst: e,
keys: c
});
} else {
r.value = {};
for (const u of Reflect.ownKeys(t)) {
if (u === "__proto__")
continue;
let c = n.keyType._zod.run({ value: u, issues: [] }, o);
if (c instanceof Promise)
throw new Error("Async schemas not supported in object keys currently");
if (typeof u == "string" && Hr.test(u) && c.issues.length) {
const d = n.keyType._zod.run({ value: Number(u), issues: [] }, o);
if (d instanceof Promise)
throw new Error("Async schemas not supported in object keys currently");
d.issues.length === 0 && (c = d);
}
if (c.issues.length) {
n.mode === "loose" ? r.value[u] = t[u] : r.issues.push({
code: "invalid_key",
origin: "record",
issues: c.issues.map((d) => Ce(d, o, Ie())),
input: u,
path: [u],
inst: e
});
continue;
}
const s = n.valueType._zod.run({ value: t[u], issues: [] }, o);
s instanceof Promise ? i.push(s.then((d) => {
d.issues.length && r.issues.push(...Je(u, d.issues)), r.value[c.value] = d.value;
})) : (s.issues.length && r.issues.push(...Je(u, s.issues)), r.value[c.value] = s.value);
}
}
return i.length ? Promise.all(i).then(() => r) : r;
};
}), ql = /* @__PURE__ */ v("$ZodMap", (e, n) => {
R.init(e, n), e._zod.parse = (r, o) => {
const t = r.value;
if (!(t instanceof Map))
return r.issues.push({
expected: "map",
code: "invalid_type",
input: t,
inst: e
}), r;
const i = [];
r.value = /* @__PURE__ */ new Map();
for (const [a, u] of t) {
const c = n.keyType._zod.run({ value: a, issues: [] }, o), l = n.valueType._zod.run({ value: u, issues: [] }, o);
c instanceof Promise || l instanceof Promise ? i.push(Promise.all([c, l]).then(([s, d]) => {
Bo(s, d, r, a, t, e, o);
})) : Bo(c, l, r, a, t, e, o);
}
return i.length ? Promise.all(i).then(() => r) : r;
};
});
function Bo(e, n, r, o, t, i, a) {
e.issues.length && (On.has(typeof o) ? r.issues.push(...Je(o, e.issues)) : r.issues.push({
code: "invalid_key",
origin: "map",
input: t,
inst: i,
issues: e.issues.map((u) => Ce(u, a, Ie()))
})), n.issues.length && (On.has(typeof o) ? r.issues.push(...Je(o, n.issues)) : r.issues.push({
origin: "map",
code: "invalid_element",
input: t,
inst: i,
key: o,
issues: n.issues.map((u) => Ce(u, a, Ie()))
})), r.value.set(e.value, n.value);
}
const Yl = /* @__PURE__ */ v("$ZodSet", (e, n) => {
R.init(e, n), e._zod.parse = (r, o) => {
const t = r.value;
if (!(t instanceof Set))
return r.issues.push({
input: t,
inst: e,
expected: "set",
code: "invalid_type"
}), r;
const i = [];
r.value = /* @__PURE__ */ new Set();
for (const a of t) {
const u = n.valueType._zod.run({ value: a, issues: [] }, o);
u instanceof Promise ? i.push(u.then((c) => Jo(c, r))) : Jo(u, r);
}
return i.length ? Promise.all(i).then(() => r) : r;
};
});
function Jo(e, n) {
e.issues.length && n.issues.push(...e.issues), n.value.add(e.value);
}
const Kl = /* @__PURE__ */ v("$ZodEnum", (e, n) => {
R.init(e, n);
const r = Zr(n.entries), o = new Set(r);
e._zod.values = o, e._zod.pattern = new RegExp(`^(${r.filter((t) => On.has(typeof t)).map((t) => typeof t == "string" ? Ge(t) : t.toString()).join("|")})$`), e._zod.parse = (t, i) => {
const a = t.value;
return o.has(a) || t.issues.push({
code: "invalid_value",
values: r,
input: a,
inst: e
}), t;
};
}), Wl = /* @__PURE__ */ v("$ZodLiteral", (e, n) => {
if (R.init(e, n), n.values.length === 0)
throw new Error("Cannot create literal schema with no valid values");
const r = new Set(n.values);
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.values.map((o) => typeof o == "string" ? Ge(o) : o ? Ge(o.toString()) : String(o)).join("|")})$`), e._zod.parse = (o, t) => {
const i = o.value;
return r.has(i) || o.issues.push({
code: "invalid_value",
values: n.values,
input: i,
inst: e
}), o;
};
}), Gl = /* @__PURE__ */ v("$ZodFile", (e, n) => {
R.init(e, n), e._zod.parse = (r, o) => {
const t = r.value;
return t instanceof File || r.issues.push({
expected: "file",
code: "invalid_type",
input: t,
inst: e
}), r;
};
}), Hl = /* @__PURE__ */ v("$ZodTransform", (e, n) => {
R.init(e, n), e._zod.parse = (r, o) => {
if (o.direction === "backward")
throw new Nn(e.constructor.name);
const t = n.transform(r.value, r);
if (o.async)
return (t instanceof Promise ? t : Promise.resolve(t)).then((a) => (r.value = a, r));
if (t instanceof Promise)
throw new dt();
return r.value = t, r;
};
});
function Vo(e, n) {
return e.issues.length && n === void 0 ? { issues: [], value: void 0 } : e;
}
const ai = /* @__PURE__ */ v("$ZodOptional", (e, n) => {
R.init(e, n), e._zod.optin = "optional", e._zod.optout = "optional", K(e._zod, "values", () => n.innerType._zod.values ? /* @__PURE__ */ new Set([...n.innerType._zod.values, void 0]) : void 0), K(e._zod, "pattern", () => {
const r = n.innerType._zod.pattern;
return r ? new RegExp(`^(${An(r.source)})?$`) : void 0;
}), e._zod.parse = (r, o) => {
if (n.innerType._zod.optin === "optional") {
const t = n.innerType._zod.run(r, o);
return t instanceof Promise ? t.then((i) => Vo(i, r.value)) : Vo(t, r.value);
}
return r.value === void 0 ? r : n.innerType._zod.run(r, o);
};
}), Xl = /* @__PURE__ */ v("$ZodExactOptional", (e, n) => {
ai.init(e, n), K(e._zod, "values", () => n.innerType._zod.values), K(e._zod, "pattern", () => n.innerType._zod.pattern), e._zod.parse = (r, o) => n.innerType._zod.run(r, o);
}), Ql = /* @__PURE__ */ v("$ZodNullable", (e, n) => {
R.init(e, n), K(e._zod, "optin", () => n.innerType._zod.optin), K(e._zod, "optout", () => n.innerType._zod.optout), K(e._zod, "pattern", () => {
const r = n.innerType._zod.pattern;
return r ? new RegExp(`^(${An(r.source)}|null)$`) : void 0;
}), K(e._zod, "values", () => n.innerType._zod.values ? /* @__PURE__ */ new Set([...n.innerType._zod.values, null]) : void 0), e._zod.parse = (r, o) => r.value === null ? r : n.innerType._zod.run(r, o);
}), ec = /* @__PURE__ */ v("$ZodDefault", (e, n) => {
R.init(e, n), e._zod.optin = "optional", K(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => {
if (o.direction === "backward")
return n.innerType._zod.run(r, o);
if (r.value === void 0)
return r.value = n.defaultValue, r;
const t = n.innerType._zod.run(r, o);
return t instanceof Promise ? t.then((i) => qo(i, n)) : qo(t, n);
};
});
function qo(e, n) {
return e.value === void 0 && (e.value = n.defaultValue), e;
}
const tc = /* @__PURE__ */ v("$ZodPrefault", (e, n) => {
R.init(e, n), e._zod.optin = "optional", K(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => (o.direction === "backward" || r.value === void 0 && (r.value = n.defaultValue), n.innerType._zod.run(r, o));
}), nc = /* @__PURE__ */ v("$ZodNonOptional", (e, n) => {
R.init(e, n), K(e._zod, "values", () => {
const r = n.innerType._zod.values;
return r ? new Set([...r].filter((o) => o !== void 0)) : void 0;
}), e._zod.parse = (r, o) => {
const t = n.innerType._zod.run(r, o);
return t instanceof Promise ? t.then((i) => Yo(i, e)) : Yo(t, e);
};
});
function Yo(e, n) {
return !e.issues.length && e.value === void 0 && e.issues.push({
code: "invalid_type",
expected: "nonoptional",
input: e.value,
inst: n
}), e;
}
const rc = /* @__PURE__ */ v("$ZodSuccess", (e, n) => {
R.init(e, n), e._zod.parse = (r, o) => {
if (o.direction === "backward")
throw new Nn("ZodSuccess");
const t = n.innerType._zod.run(r, o);
return t instanceof Promise ? t.then((i) => (r.value = i.issues.length === 0, r)) : (r.value = t.issues.length === 0, r);
};
}), ic = /* @__PURE__ */ v("$ZodCatch", (e, n) => {
R.init(e, n), K(e._zod, "optin", () => n.innerType._zod.optin), K(e._zod, "optout", () => n.innerType._zod.optout), K(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => {
if (o.direction === "backward")
return n.innerType._zod.run(r, o);
const t = n.innerType._zod.run(r, o);
return t instanceof Promise ? t.then((i) => (r.value = i.value, i.issues.length && (r.value = n.catchValue({
...r,
error: {
issues: i.issues.map((a) => Ce(a, o, Ie()))
},
input: r.value
}), r.issues = []), r)) : (r.value = t.value, t.issues.length && (r.value = n.catchValue({
...r,
error: {
issues: t.issues.map((i) => Ce(i, o, Ie()))
},
input: r.value
}), r.issues = []), r);
};
}), oc = /* @__PURE__ */ v("$ZodNaN", (e, n) => {
R.init(e, n), e._zod.parse = (r, o) => ((typeof r.value != "number" || !Number.isNaN(r.value)) && r.issues.push({
input: r.value,
inst: e,
expected: "nan",
code: "invalid_type"
}), r);
}), ac = /* @__PURE__ */ v("$ZodPipe", (e, n) => {
R.init(e, n), K(e._zod, "values", () => n.in._zod.values), K(e._zod, "optin", () => n.in._zod.optin), K(e._zod, "optout", () => n.out._zod.optout), K(e._zod, "propValues", () => n.in._zod.propValues), e._zod.parse = (r, o) => {
if (o.direction === "backward") {
const i = n.out._zod.run(r, o);
return i instanceof Promise ? i.then((a) => fn(a, n.in, o)) : fn(i, n.in, o);
}
const t = n.in._zod.run(r, o);
return t instanceof Promise ? t.then((i) => fn(i, n.out, o)) : fn(t, n.out, o);
};
});
function fn(e, n, r) {
return e.issues.length ? (e.aborted = !0, e) : n._zod.run({ value: e.value, issues: e.issues }, r);
}
const ui = /* @__PURE__ */ v("$ZodCodec", (e, n) => {
R.init(e, n), K(e._zod, "values", () => n.in._zod.values), K(e._zod, "optin", () => n.in._zod.optin), K(e._zod, "optout", () => n.out._zod.optout), K(e._zod, "propValues", () => n.in._zod.propValues), e._zod.parse = (r, o) => {
if ((o.direction || "forward") === "forward") {
const i = n.in._zod.run(r, o);
return i instanceof Promise ? i.then((a) => mn(a, n, o)) : mn(i, n, o);
} else {
const i = n.out._zod.run(r, o);
return i instanceof Promise ? i.then((a) => mn(a, n, o)) : mn(i, n, o);
}
};
});
function mn(e, n, r) {
if (e.issues.length)
return e.aborted = !0, e;
if ((r.direction || "forward") === "forward") {
const t = n.transform(e.value, e);
return t instanceof Promise ? t.then((i) => vn(e, i, n.out, r)) : vn(e, t, n.out, r);
} else {
const t = n.reverseTransform(e.value, e);
return t instanceof Promise ? t.then((i) => vn(e, i, n.in, r)) : vn(e, t, n.in, r);
}
}
function vn(e, n, r, o) {
return e.issues.length ? (e.aborted = !0, e) : r._zod.run({ value: n, issues: e.issues }, o);
}
const uc = /* @__PURE__ */ v("$ZodReadonly", (e, n) => {
R.init(e, n), K(e._zod, "propValues", () => n.innerType._zod.propValues), K(e._zod, "values", () => n.innerType._zod.values), K(e._zod, "optin", () => {
var r, o;
return (o = (r = n.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optin;
}), K(e._zod, "optout", () => {
var r, o;
return (o = (r = n.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optout;
}), e._zod.parse = (r, o) => {
if (o.direction === "backward")
return n.innerType._zod.run(r, o);
const t = n.innerType._zod.run(r, o);
return t instanceof Promise ? t.then(Ko) : Ko(t);
};
});
function Ko(e) {
return e.value = Object.freeze(e.value), e;
}
const lc = /* @__PURE__ */ v("$ZodTemplateLiteral", (e, n) => {
R.init(e, n);
const r = [];
for (const o of n.parts)
if (typeof o == "object" && o !== null) {
if (!o._zod.pattern)
throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);
const t = o._zod.pattern instanceof RegExp ? o._zod.pattern.source : o._zod.pattern;
if (!t)
throw new Error(`Invalid template literal part: ${o._zod.traits}`);
const i = t.startsWith("^") ? 1 : 0, a = t.endsWith("$") ? t.length - 1 : t.length;
r.push(t.slice(i, a));
} else if (o === null || Ea.has(typeof o))
r.push(Ge(`${o}`));
else
throw new Error(`Invalid template literal part: ${o}`);
e._zod.pattern = new RegExp(`^${r.join("")}$`), e._zod.parse = (o, t) => typeof o.value != "string" ? (o.issues.push({
input: o.value,
inst: e,
expected: "string",
code: "invalid_type"
}), o) : (e._zod.pattern.lastIndex = 0, e._zod.pattern.test(o.value) || o.issues.push({
input: o.value,
inst: e,
code: "invalid_format",
format: n.format ?? "template_literal",
pattern: e._zod.pattern.source
}), o);
}), cc = /* @__PURE__ */ v("$ZodFunction", (e, n) => (R.init(e, n), e._def = n, e._zod.def = n, e.implement = (r) => {
if (typeof r != "function")
throw new Error("implement() must be called with a function");
return function(...o) {
const t = e._def.input ? jr(e._def.input, o) : o, i = Reflect.apply(r, this, t);
return e._def.output ? jr(e._def.output, i) : i;
};
}, e.implementAsync = (r) => {
if (typeof r != "function")
throw new Error("implementAsync() must be called with a function");
return async function(...o) {
const t = e._def.input ? await Ur(e._def.input, o) : o, i = await Reflect.apply(r, this, t);
return e._def.output ? await Ur(e._def.output, i) : i;
};
}, e._zod.parse = (r, o) => typeof r.value != "function" ? (r.issues.push({
code: "invalid_type",
expected: "function",
input: r.value,
inst: e
}), r) : (e._def.output && e._def.output._zod.def.type === "promise" ? r.value = e.implementAsync(r.value) : r.value = e.implement(r.value), r), e.input = (...r) => {
const o = e.constructor;
return Array.isArray(r[0]) ? new o({
type: "function",
input: new oi({
type: "tuple",
items: r[0],
rest: r[1]
}),
output: e._def.output
}) : new o({
type: "function",
input: r[0],
output: e._def.output
});
}, e.output = (r) => {
const o = e.constructor;
return new o({
type: "function",
input: e._def.input,
output: r
});
}, e)), sc = /* @__PURE__ */ v("$ZodPromise", (e, n) => {
R.init(e, n), e._zod.parse = (r, o) => Promise.resolve(r.value).then((t) => n.innerType._zod.run({ value: t, issues: [] }, o));
}), dc = /* @__PURE__ */ v("$ZodLazy", (e, n) => {
R.init(e, n), K(e._zod, "innerType", () => n.getter()), K(e._zod, "pattern", () => {
var r, o;
return (o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.pattern;
}), K(e._zod, "propValues", () => {
var r, o;
return (o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.propValues;
}), K(e._zod, "optin", () => {
var r, o;
return ((o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optin) ?? void 0;
}), K(e._zod, "optout", () => {
var r, o;
return ((o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optout) ?? void 0;
}), e._zod.parse = (r, o) => e._zod.innerType._zod.run(r, o);
}), fc = /* @__PURE__ */ v("$ZodCustom", (e, n) => {
se.init(e, n), R.init(e, n), e._zod.parse = (r, o) => r, e._zod.check = (r) => {
const o = r.value, t = n.fn(o);
if (t instanceof Promise)
return t.then((i) => Wo(i, r, o, e));
Wo(t, r, o, e);
};
});
function Wo(e, n, r, o) {
if (!e) {
const t = {
code: "custom",
input: r,
inst: o,
// incorporates params.error into issue reporting
path: [...o._zod.def.path ?? []],
// incorporates params.error into issue reporting
continue: !o._zod.def.abort
// params: inst._zod.def.params,
};
o._zod.def.params && (t.params = o._zod.def.params), n.issues.push(_t(t));
}
}
const iv = () => {
const e = {
string: { unit: "حرف", verb: "أن يحوي" },
file: { unit: "بايت", verb: "أن يحوي" },
array: { unit: "عنصر", verb: "أن يحوي" },
set: { unit: "عنصر", verb: "أن يحوي" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "مدخل",
email: "بريد إلكتروني",
url: "رابط",
emoji: "إيموجي",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "تاريخ ووقت بمعيار ISO",
date: "تاريخ بمعيار ISO",
time: "وقت بمعيار ISO",
duration: "مدة بمعيار ISO",
ipv4: "عنوان IPv4",
ipv6: "عنوان IPv6",
cidrv4: "مدى عناوين بصيغة IPv4",
cidrv6: "مدى عناوين بصيغة IPv6",
base64: "نَص بترميز base64-encoded",
base64url: "نَص بترميز base64url-encoded",
json_string: "نَص على هيئة JSON",
e164: "رقم هاتف بمعيار E.164",
jwt: "JWT",
template_literal: "مدخل"
}, o = {
nan: "NaN"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `مدخلات غير مقبولة: يفترض إدخال instanceof ${t.expected}، ولكن تم إدخال ${u}` : `مدخلات غير مقبولة: يفترض إدخال ${i}، ولكن تم إدخال ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `مدخلات غير مقبولة: يفترض إدخال ${M(t.values[0])}` : `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? ` أكبر من اللازم: يفترض أن تكون ${t.origin ?? "القيمة"} ${i} ${t.maximum.toString()} ${a.unit ?? "عنصر"}` : `أكبر من اللازم: يفترض أن تكون ${t.origin ?? "القيمة"} ${i} ${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${i} ${t.minimum.toString()} ${a.unit}` : `أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${i} ${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `نَص غير مقبول: يجب أن يبدأ بـ "${t.prefix}"` : i.format === "ends_with" ? `نَص غير مقبول: يجب أن ينتهي بـ "${i.suffix}"` : i.format === "includes" ? `نَص غير مقبول: يجب أن يتضمَّن "${i.includes}"` : i.format === "regex" ? `نَص غير مقبول: يجب أن يطابق النمط ${i.pattern}` : `${r[i.format] ?? t.format} غير مقبول`;
}
case "not_multiple_of":
return `رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`;
case "unrecognized_keys":
return `معرف${t.keys.length > 1 ? "ات" : ""} غريب${t.keys.length > 1 ? "ة" : ""}: ${k(t.keys, "، ")}`;
case "invalid_key":
return `معرف غير مقبول في ${t.origin}`;
case "invalid_union":
return "مدخل غير مقبول";
case "invalid_element":
return `مدخل غير مقبول في ${t.origin}`;
default:
return "مدخل غير مقبول";
}
};
};
function ov() {
return {
localeError: iv()
};
}
const av = () => {
const e = {
string: { unit: "simvol", verb: "olmalıdır" },
file: { unit: "bayt", verb: "olmalıdır" },
array: { unit: "element", verb: "olmalıdır" },
set: { unit: "element", verb: "olmalıdır" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "input",
email: "email address",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO datetime",
date: "ISO date",
time: "ISO time",
duration: "ISO duration",
ipv4: "IPv4 address",
ipv6: "IPv6 address",
cidrv4: "IPv4 range",
cidrv6: "IPv6 range",
base64: "base64-encoded string",
base64url: "base64url-encoded string",
json_string: "JSON string",
e164: "E.164 number",
jwt: "JWT",
template_literal: "input"
}, o = {
nan: "NaN"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Yanlış dəyər: gözlənilən instanceof ${t.expected}, daxil olan ${u}` : `Yanlış dəyər: gözlənilən ${i}, daxil olan ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Yanlış dəyər: gözlənilən ${M(t.values[0])}` : `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Çox böyük: gözlənilən ${t.origin ?? "dəyər"} ${i}${t.maximum.toString()} ${a.unit ?? "element"}` : `Çox böyük: gözlənilən ${t.origin ?? "dəyər"} ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Çox kiçik: gözlənilən ${t.origin} ${i}${t.minimum.toString()} ${a.unit}` : `Çox kiçik: gözlənilən ${t.origin} ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Yanlış mətn: "${i.prefix}" ilə başlamalıdır` : i.format === "ends_with" ? `Yanlış mətn: "${i.suffix}" ilə bitməlidir` : i.format === "includes" ? `Yanlış mətn: "${i.includes}" daxil olmalıdır` : i.format === "regex" ? `Yanlış mətn: ${i.pattern} şablonuna uyğun olmalıdır` : `Yanlış ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`;
case "unrecognized_keys":
return `Tanınmayan açar${t.keys.length > 1 ? "lar" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `${t.origin} daxilində yanlış açar`;
case "invalid_union":
return "Yanlış dəyər";
case "invalid_element":
return `${t.origin} daxilində yanlış dəyər`;
default:
return "Yanlış dəyər";
}
};
};
function uv() {
return {
localeError: av()
};
}
function Go(e, n, r, o) {
const t = Math.abs(e), i = t % 10, a = t % 100;
return a >= 11 && a <= 19 ? o : i === 1 ? n : i >= 2 && i <= 4 ? r : o;
}
const lv = () => {
const e = {
string: {
unit: {
one: "сімвал",
few: "сімвалы",
many: "сімвалаў"
},
verb: "мець"
},
array: {
unit: {
one: "элемент",
few: "элементы",
many: "элементаў"
},
verb: "мець"
},
set: {
unit: {
one: "элемент",
few: "элементы",
many: "элементаў"
},
verb: "мець"
},
file: {
unit: {
one: "байт",
few: "байты",
many: "байтаў"
},
verb: "мець"
}
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "увод",
email: "email адрас",
url: "URL",
emoji: "эмодзі",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO дата і час",
date: "ISO дата",
time: "ISO час",
duration: "ISO працягласць",
ipv4: "IPv4 адрас",
ipv6: "IPv6 адрас",
cidrv4: "IPv4 дыяпазон",
cidrv6: "IPv6 дыяпазон",
base64: "радок у фармаце base64",
base64url: "радок у фармаце base64url",
json_string: "JSON радок",
e164: "нумар E.164",
jwt: "JWT",
template_literal: "увод"
}, o = {
nan: "NaN",
number: "лік",
array: "масіў"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Няправільны ўвод: чакаўся instanceof ${t.expected}, атрымана ${u}` : `Няправільны ўвод: чакаўся ${i}, атрымана ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Няправільны ўвод: чакалася ${M(t.values[0])}` : `Няправільны варыянт: чакаўся адзін з ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
if (a) {
const u = Number(t.maximum), c = Go(u, a.unit.one, a.unit.few, a.unit.many);
return `Занадта вялікі: чакалася, што ${t.origin ?? "значэнне"} павінна ${a.verb} ${i}${t.maximum.toString()} ${c}`;
}
return `Занадта вялікі: чакалася, што ${t.origin ?? "значэнне"} павінна быць ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
if (a) {
const u = Number(t.minimum), c = Go(u, a.unit.one, a.unit.few, a.unit.many);
return `Занадта малы: чакалася, што ${t.origin} павінна ${a.verb} ${i}${t.minimum.toString()} ${c}`;
}
return `Занадта малы: чакалася, што ${t.origin} павінна быць ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Няправільны радок: павінен пачынацца з "${i.prefix}"` : i.format === "ends_with" ? `Няправільны радок: павінен заканчвацца на "${i.suffix}"` : i.format === "includes" ? `Няправільны радок: павінен змяшчаць "${i.includes}"` : i.format === "regex" ? `Няправільны радок: павінен адпавядаць шаблону ${i.pattern}` : `Няправільны ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Няправільны лік: павінен быць кратным ${t.divisor}`;
case "unrecognized_keys":
return `Нераспазнаны ${t.keys.length > 1 ? "ключы" : "ключ"}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Няправільны ключ у ${t.origin}`;
case "invalid_union":
return "Няправільны ўвод";
case "invalid_element":
return `Няправільнае значэнне ў ${t.origin}`;
default:
return "Няправільны ўвод";
}
};
};
function cv() {
return {
localeError: lv()
};
}
const sv = () => {
const e = {
string: { unit: "символа", verb: "да съдържа" },
file: { unit: "байта", verb: "да съдържа" },
array: { unit: "елемента", verb: "да съдържа" },
set: { unit: "елемента", verb: "да съдържа" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "вход",
email: "имейл адрес",
url: "URL",
emoji: "емоджи",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO време",
date: "ISO дата",
time: "ISO време",
duration: "ISO продължителност",
ipv4: "IPv4 адрес",
ipv6: "IPv6 адрес",
cidrv4: "IPv4 диапазон",
cidrv6: "IPv6 диапазон",
base64: "base64-кодиран низ",
base64url: "base64url-кодиран низ",
json_string: "JSON низ",
e164: "E.164 номер",
jwt: "JWT",
template_literal: "вход"
}, o = {
nan: "NaN",
number: "число",
array: "масив"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Невалиден вход: очакван instanceof ${t.expected}, получен ${u}` : `Невалиден вход: очакван ${i}, получен ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Невалиден вход: очакван ${M(t.values[0])}` : `Невалидна опция: очаквано едно от ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Твърде голямо: очаква се ${t.origin ?? "стойност"} да съдържа ${i}${t.maximum.toString()} ${a.unit ?? "елемента"}` : `Твърде голямо: очаква се ${t.origin ?? "стойност"} да бъде ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Твърде малко: очаква се ${t.origin} да съдържа ${i}${t.minimum.toString()} ${a.unit}` : `Твърде малко: очаква се ${t.origin} да бъде ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
if (i.format === "starts_with")
return `Невалиден низ: трябва да започва с "${i.prefix}"`;
if (i.format === "ends_with")
return `Невалиден низ: трябва да завършва с "${i.suffix}"`;
if (i.format === "includes")
return `Невалиден низ: трябва да включва "${i.includes}"`;
if (i.format === "regex")
return `Невалиден низ: трябва да съвпада с ${i.pattern}`;
let a = "Невалиден";
return i.format === "emoji" && (a = "Невалидно"), i.format === "datetime" && (a = "Невалидно"), i.format === "date" && (a = "Невалидна"), i.format === "time" && (a = "Невалидно"), i.format === "duration" && (a = "Невалидна"), `${a} ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Невалидно число: трябва да бъде кратно на ${t.divisor}`;
case "unrecognized_keys":
return `Неразпознат${t.keys.length > 1 ? "и" : ""} ключ${t.keys.length > 1 ? "ове" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Невалиден ключ в ${t.origin}`;
case "invalid_union":
return "Невалиден вход";
case "invalid_element":
return `Невалидна стойност в ${t.origin}`;
default:
return "Невалиден вход";
}
};
};
function dv() {
return {
localeError: sv()
};
}
const fv = () => {
const e = {
string: { unit: "caràcters", verb: "contenir" },
file: { unit: "bytes", verb: "contenir" },
array: { unit: "elements", verb: "contenir" },
set: { unit: "elements", verb: "contenir" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "entrada",
email: "adreça electrònica",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "data i hora ISO",
date: "data ISO",
time: "hora ISO",
duration: "durada ISO",
ipv4: "adreça IPv4",
ipv6: "adreça IPv6",
cidrv4: "rang IPv4",
cidrv6: "rang IPv6",
base64: "cadena codificada en base64",
base64url: "cadena codificada en base64url",
json_string: "cadena JSON",
e164: "número E.164",
jwt: "JWT",
template_literal: "entrada"
}, o = {
nan: "NaN"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Tipus invàlid: s'esperava instanceof ${t.expected}, s'ha rebut ${u}` : `Tipus invàlid: s'esperava ${i}, s'ha rebut ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Valor invàlid: s'esperava ${M(t.values[0])}` : `Opció invàlida: s'esperava una de ${k(t.values, " o ")}`;
case "too_big": {
const i = t.inclusive ? "com a màxim" : "menys de", a = n(t.origin);
return a ? `Massa gran: s'esperava que ${t.origin ?? "el valor"} contingués ${i} ${t.maximum.toString()} ${a.unit ?? "elements"}` : `Massa gran: s'esperava que ${t.origin ?? "el valor"} fos ${i} ${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? "com a mínim" : "més de", a = n(t.origin);
return a ? `Massa petit: s'esperava que ${t.origin} contingués ${i} ${t.minimum.toString()} ${a.unit}` : `Massa petit: s'esperava que ${t.origin} fos ${i} ${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Format invàlid: ha de començar amb "${i.prefix}"` : i.format === "ends_with" ? `Format invàlid: ha d'acabar amb "${i.suffix}"` : i.format === "includes" ? `Format invàlid: ha d'incloure "${i.includes}"` : i.format === "regex" ? `Format invàlid: ha de coincidir amb el patró ${i.pattern}` : `Format invàlid per a ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Número invàlid: ha de ser múltiple de ${t.divisor}`;
case "unrecognized_keys":
return `Clau${t.keys.length > 1 ? "s" : ""} no reconeguda${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Clau invàlida a ${t.origin}`;
case "invalid_union":
return "Entrada invàlida";
// Could also be "Tipus d'unió invàlid" but "Entrada invàlida" is more general
case "invalid_element":
return `Element invàlid a ${t.origin}`;
default:
return "Entrada invàlida";
}
};
};
function mv() {
return {
localeError: fv()
};
}
const vv = () => {
const e = {
string: { unit: "znaků", verb: "mít" },
file: { unit: "bajtů", verb: "mít" },
array: { unit: "prvků", verb: "mít" },
set: { unit: "prvků", verb: "mít" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "regulární výraz",
email: "e-mailová adresa",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "datum a čas ve formátu ISO",
date: "datum ve formátu ISO",
time: "čas ve formátu ISO",
duration: "doba trvání ISO",
ipv4: "IPv4 adresa",
ipv6: "IPv6 adresa",
cidrv4: "rozsah IPv4",
cidrv6: "rozsah IPv6",
base64: "řetězec zakódovaný ve formátu base64",
base64url: "řetězec zakódovaný ve formátu base64url",
json_string: "řetězec ve formátu JSON",
e164: "číslo E.164",
jwt: "JWT",
template_literal: "vstup"
}, o = {
nan: "NaN",
number: "číslo",
string: "řetězec",
function: "funkce",
array: "pole"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Neplatný vstup: očekáváno instanceof ${t.expected}, obdrženo ${u}` : `Neplatný vstup: očekáváno ${i}, obdrženo ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Neplatný vstup: očekáváno ${M(t.values[0])}` : `Neplatná možnost: očekávána jedna z hodnot ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Hodnota je příliš velká: ${t.origin ?? "hodnota"} musí mít ${i}${t.maximum.toString()} ${a.unit ?? "prvků"}` : `Hodnota je příliš velká: ${t.origin ?? "hodnota"} musí být ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Hodnota je příliš malá: ${t.origin ?? "hodnota"} musí mít ${i}${t.minimum.toString()} ${a.unit ?? "prvků"}` : `Hodnota je příliš malá: ${t.origin ?? "hodnota"} musí být ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Neplatný řetězec: musí začínat na "${i.prefix}"` : i.format === "ends_with" ? `Neplatný řetězec: musí končit na "${i.suffix}"` : i.format === "includes" ? `Neplatný řetězec: musí obsahovat "${i.includes}"` : i.format === "regex" ? `Neplatný řetězec: musí odpovídat vzoru ${i.pattern}` : `Neplatný formát ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Neplatné číslo: musí být násobkem ${t.divisor}`;
case "unrecognized_keys":
return `Neznámé klíče: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Neplatný klíč v ${t.origin}`;
case "invalid_union":
return "Neplatný vstup";
case "invalid_element":
return `Neplatná hodnota v ${t.origin}`;
default:
return "Neplatný vstup";
}
};
};
function pv() {
return {
localeError: vv()
};
}
const gv = () => {
const e = {
string: { unit: "tegn", verb: "havde" },
file: { unit: "bytes", verb: "havde" },
array: { unit: "elementer", verb: "indeholdt" },
set: { unit: "elementer", verb: "indeholdt" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "input",
email: "e-mailadresse",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO dato- og klokkeslæt",
date: "ISO-dato",
time: "ISO-klokkeslæt",
duration: "ISO-varighed",
ipv4: "IPv4-område",
ipv6: "IPv6-område",
cidrv4: "IPv4-spektrum",
cidrv6: "IPv6-spektrum",
base64: "base64-kodet streng",
base64url: "base64url-kodet streng",
json_string: "JSON-streng",
e164: "E.164-nummer",
jwt: "JWT",
template_literal: "input"
}, o = {
nan: "NaN",
string: "streng",
number: "tal",
boolean: "boolean",
array: "liste",
object: "objekt",
set: "sæt",
file: "fil"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Ugyldigt input: forventede instanceof ${t.expected}, fik ${u}` : `Ugyldigt input: forventede ${i}, fik ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Ugyldig værdi: forventede ${M(t.values[0])}` : `Ugyldigt valg: forventede en af følgende ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin), u = o[t.origin] ?? t.origin;
return a ? `For stor: forventede ${u ?? "value"} ${a.verb} ${i} ${t.maximum.toString()} ${a.unit ?? "elementer"}` : `For stor: forventede ${u ?? "value"} havde ${i} ${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin), u = o[t.origin] ?? t.origin;
return a ? `For lille: forventede ${u} ${a.verb} ${i} ${t.minimum.toString()} ${a.unit}` : `For lille: forventede ${u} havde ${i} ${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Ugyldig streng: skal starte med "${i.prefix}"` : i.format === "ends_with" ? `Ugyldig streng: skal ende med "${i.suffix}"` : i.format === "includes" ? `Ugyldig streng: skal indeholde "${i.includes}"` : i.format === "regex" ? `Ugyldig streng: skal matche mønsteret ${i.pattern}` : `Ugyldig ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Ugyldigt tal: skal være deleligt med ${t.divisor}`;
case "unrecognized_keys":
return `${t.keys.length > 1 ? "Ukendte nøgler" : "Ukendt nøgle"}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Ugyldig nøgle i ${t.origin}`;
case "invalid_union":
return "Ugyldigt input: matcher ingen af de tilladte typer";
case "invalid_element":
return `Ugyldig værdi i ${t.origin}`;
default:
return "Ugyldigt input";
}
};
};
function hv() {
return {
localeError: gv()
};
}
const $v = () => {
const e = {
string: { unit: "Zeichen", verb: "zu haben" },
file: { unit: "Bytes", verb: "zu haben" },
array: { unit: "Elemente", verb: "zu haben" },
set: { unit: "Elemente", verb: "zu haben" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "Eingabe",
email: "E-Mail-Adresse",
url: "URL",
emoji: "Emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO-Datum und -Uhrzeit",
date: "ISO-Datum",
time: "ISO-Uhrzeit",
duration: "ISO-Dauer",
ipv4: "IPv4-Adresse",
ipv6: "IPv6-Adresse",
cidrv4: "IPv4-Bereich",
cidrv6: "IPv6-Bereich",
base64: "Base64-codierter String",
base64url: "Base64-URL-codierter String",
json_string: "JSON-String",
e164: "E.164-Nummer",
jwt: "JWT",
template_literal: "Eingabe"
}, o = {
nan: "NaN",
number: "Zahl",
array: "Array"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Ungültige Eingabe: erwartet instanceof ${t.expected}, erhalten ${u}` : `Ungültige Eingabe: erwartet ${i}, erhalten ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Ungültige Eingabe: erwartet ${M(t.values[0])}` : `Ungültige Option: erwartet eine von ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Zu groß: erwartet, dass ${t.origin ?? "Wert"} ${i}${t.maximum.toString()} ${a.unit ?? "Elemente"} hat` : `Zu groß: erwartet, dass ${t.origin ?? "Wert"} ${i}${t.maximum.toString()} ist`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ${a.unit} hat` : `Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ist`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Ungültiger String: muss mit "${i.prefix}" beginnen` : i.format === "ends_with" ? `Ungültiger String: muss mit "${i.suffix}" enden` : i.format === "includes" ? `Ungültiger String: muss "${i.includes}" enthalten` : i.format === "regex" ? `Ungültiger String: muss dem Muster ${i.pattern} entsprechen` : `Ungültig: ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`;
case "unrecognized_keys":
return `${t.keys.length > 1 ? "Unbekannte Schlüssel" : "Unbekannter Schlüssel"}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Ungültiger Schlüssel in ${t.origin}`;
case "invalid_union":
return "Ungültige Eingabe";
case "invalid_element":
return `Ungültiger Wert in ${t.origin}`;
default:
return "Ungültige Eingabe";
}
};
};
function bv() {
return {
localeError: $v()
};
}
const _v = () => {
const e = {
string: { unit: "characters", verb: "to have" },
file: { unit: "bytes", verb: "to have" },
array: { unit: "items", verb: "to have" },
set: { unit: "items", verb: "to have" },
map: { unit: "entries", verb: "to have" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "input",
email: "email address",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO datetime",
date: "ISO date",
time: "ISO time",
duration: "ISO duration",
ipv4: "IPv4 address",
ipv6: "IPv6 address",
mac: "MAC address",
cidrv4: "IPv4 range",
cidrv6: "IPv6 range",
base64: "base64-encoded string",
base64url: "base64url-encoded string",
json_string: "JSON string",
e164: "E.164 number",
jwt: "JWT",
template_literal: "input"
}, o = {
// Compatibility: "nan" -> "NaN" for display
nan: "NaN"
// All other type names omitted - they fall back to raw values via ?? operator
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return `Invalid input: expected ${i}, received ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Invalid input: expected ${M(t.values[0])}` : `Invalid option: expected one of ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Too big: expected ${t.origin ?? "value"} to have ${i}${t.maximum.toString()} ${a.unit ?? "elements"}` : `Too big: expected ${t.origin ?? "value"} to be ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Too small: expected ${t.origin} to have ${i}${t.minimum.toString()} ${a.unit}` : `Too small: expected ${t.origin} to be ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Invalid string: must start with "${i.prefix}"` : i.format === "ends_with" ? `Invalid string: must end with "${i.suffix}"` : i.format === "includes" ? `Invalid string: must include "${i.includes}"` : i.format === "regex" ? `Invalid string: must match pattern ${i.pattern}` : `Invalid ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Invalid number: must be a multiple of ${t.divisor}`;
case "unrecognized_keys":
return `Unrecognized key${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Invalid key in ${t.origin}`;
case "invalid_union":
return "Invalid input";
case "invalid_element":
return `Invalid value in ${t.origin}`;
default:
return "Invalid input";
}
};
};
function mc() {
return {
localeError: _v()
};
}
const yv = () => {
const e = {
string: { unit: "karaktrojn", verb: "havi" },
file: { unit: "bajtojn", verb: "havi" },
array: { unit: "elementojn", verb: "havi" },
set: { unit: "elementojn", verb: "havi" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "enigo",
email: "retadreso",
url: "URL",
emoji: "emoĝio",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO-datotempo",
date: "ISO-dato",
time: "ISO-tempo",
duration: "ISO-daŭro",
ipv4: "IPv4-adreso",
ipv6: "IPv6-adreso",
cidrv4: "IPv4-rango",
cidrv6: "IPv6-rango",
base64: "64-ume kodita karaktraro",
base64url: "URL-64-ume kodita karaktraro",
json_string: "JSON-karaktraro",
e164: "E.164-nombro",
jwt: "JWT",
template_literal: "enigo"
}, o = {
nan: "NaN",
number: "nombro",
array: "tabelo",
null: "senvalora"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Nevalida enigo: atendiĝis instanceof ${t.expected}, riceviĝis ${u}` : `Nevalida enigo: atendiĝis ${i}, riceviĝis ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Nevalida enigo: atendiĝis ${M(t.values[0])}` : `Nevalida opcio: atendiĝis unu el ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Tro granda: atendiĝis ke ${t.origin ?? "valoro"} havu ${i}${t.maximum.toString()} ${a.unit ?? "elementojn"}` : `Tro granda: atendiĝis ke ${t.origin ?? "valoro"} havu ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Tro malgranda: atendiĝis ke ${t.origin} havu ${i}${t.minimum.toString()} ${a.unit}` : `Tro malgranda: atendiĝis ke ${t.origin} estu ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Nevalida karaktraro: devas komenciĝi per "${i.prefix}"` : i.format === "ends_with" ? `Nevalida karaktraro: devas finiĝi per "${i.suffix}"` : i.format === "includes" ? `Nevalida karaktraro: devas inkluzivi "${i.includes}"` : i.format === "regex" ? `Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}` : `Nevalida ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Nevalida nombro: devas esti oblo de ${t.divisor}`;
case "unrecognized_keys":
return `Nekonata${t.keys.length > 1 ? "j" : ""} ŝlosilo${t.keys.length > 1 ? "j" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Nevalida ŝlosilo en ${t.origin}`;
case "invalid_union":
return "Nevalida enigo";
case "invalid_element":
return `Nevalida valoro en ${t.origin}`;
default:
return "Nevalida enigo";
}
};
};
function kv() {
return {
localeError: yv()
};
}
const Sv = () => {
const e = {
string: { unit: "caracteres", verb: "tener" },
file: { unit: "bytes", verb: "tener" },
array: { unit: "elementos", verb: "tener" },
set: { unit: "elementos", verb: "tener" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "entrada",
email: "dirección de correo electrónico",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "fecha y hora ISO",
date: "fecha ISO",
time: "hora ISO",
duration: "duración ISO",
ipv4: "dirección IPv4",
ipv6: "dirección IPv6",
cidrv4: "rango IPv4",
cidrv6: "rango IPv6",
base64: "cadena codificada en base64",
base64url: "URL codificada en base64",
json_string: "cadena JSON",
e164: "número E.164",
jwt: "JWT",
template_literal: "entrada"
}, o = {
nan: "NaN",
string: "texto",
number: "número",
boolean: "booleano",
array: "arreglo",
object: "objeto",
set: "conjunto",
file: "archivo",
date: "fecha",
bigint: "número grande",
symbol: "símbolo",
undefined: "indefinido",
null: "nulo",
function: "función",
map: "mapa",
record: "registro",
tuple: "tupla",
enum: "enumeración",
union: "unión",
literal: "literal",
promise: "promesa",
void: "vacío",
never: "nunca",
unknown: "desconocido",
any: "cualquiera"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Entrada inválida: se esperaba instanceof ${t.expected}, recibido ${u}` : `Entrada inválida: se esperaba ${i}, recibido ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Entrada inválida: se esperaba ${M(t.values[0])}` : `Opción inválida: se esperaba una de ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin), u = o[t.origin] ?? t.origin;
return a ? `Demasiado grande: se esperaba que ${u ?? "valor"} tuviera ${i}${t.maximum.toString()} ${a.unit ?? "elementos"}` : `Demasiado grande: se esperaba que ${u ?? "valor"} fuera ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin), u = o[t.origin] ?? t.origin;
return a ? `Demasiado pequeño: se esperaba que ${u} tuviera ${i}${t.minimum.toString()} ${a.unit}` : `Demasiado pequeño: se esperaba que ${u} fuera ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Cadena inválida: debe comenzar con "${i.prefix}"` : i.format === "ends_with" ? `Cadena inválida: debe terminar en "${i.suffix}"` : i.format === "includes" ? `Cadena inválida: debe incluir "${i.includes}"` : i.format === "regex" ? `Cadena inválida: debe coincidir con el patrón ${i.pattern}` : `Inválido ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Número inválido: debe ser múltiplo de ${t.divisor}`;
case "unrecognized_keys":
return `Llave${t.keys.length > 1 ? "s" : ""} desconocida${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Llave inválida en ${o[t.origin] ?? t.origin}`;
case "invalid_union":
return "Entrada inválida";
case "invalid_element":
return `Valor inválido en ${o[t.origin] ?? t.origin}`;
default:
return "Entrada inválida";
}
};
};
function Iv() {
return {
localeError: Sv()
};
}
const wv = () => {
const e = {
string: { unit: "کاراکتر", verb: "داشته باشد" },
file: { unit: "بایت", verb: "داشته باشد" },
array: { unit: "آیتم", verb: "داشته باشد" },
set: { unit: "آیتم", verb: "داشته باشد" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "ورودی",
email: "آدرس ایمیل",
url: "URL",
emoji: "ایموجی",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "تاریخ و زمان ایزو",
date: "تاریخ ایزو",
time: "زمان ایزو",
duration: "مدت زمان ایزو",
ipv4: "IPv4 آدرس",
ipv6: "IPv6 آدرس",
cidrv4: "IPv4 دامنه",
cidrv6: "IPv6 دامنه",
base64: "base64-encoded رشته",
base64url: "base64url-encoded رشته",
json_string: "JSON رشته",
e164: "E.164 عدد",
jwt: "JWT",
template_literal: "ورودی"
}, o = {
nan: "NaN",
number: "عدد",
array: "آرایه"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `ورودی نامعتبر: می‌بایست instanceof ${t.expected} می‌بود، ${u} دریافت شد` : `ورودی نامعتبر: می‌بایست ${i} می‌بود، ${u} دریافت شد`;
}
case "invalid_value":
return t.values.length === 1 ? `ورودی نامعتبر: می‌بایست ${M(t.values[0])} می‌بود` : `گزینه نامعتبر: می‌بایست یکی از ${k(t.values, "|")} می‌بود`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `خیلی بزرگ: ${t.origin ?? "مقدار"} باید ${i}${t.maximum.toString()} ${a.unit ?? "عنصر"} باشد` : `خیلی بزرگ: ${t.origin ?? "مقدار"} باید ${i}${t.maximum.toString()} باشد`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `خیلی کوچک: ${t.origin} باید ${i}${t.minimum.toString()} ${a.unit} باشد` : `خیلی کوچک: ${t.origin} باید ${i}${t.minimum.toString()} باشد`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `رشته نامعتبر: باید با "${i.prefix}" شروع شود` : i.format === "ends_with" ? `رشته نامعتبر: باید با "${i.suffix}" تمام شود` : i.format === "includes" ? `رشته نامعتبر: باید شامل "${i.includes}" باشد` : i.format === "regex" ? `رشته نامعتبر: باید با الگوی ${i.pattern} مطابقت داشته باشد` : `${r[i.format] ?? t.format} نامعتبر`;
}
case "not_multiple_of":
return `عدد نامعتبر: باید مضرب ${t.divisor} باشد`;
case "unrecognized_keys":
return `کلید${t.keys.length > 1 ? "های" : ""} ناشناس: ${k(t.keys, ", ")}`;
case "invalid_key":
return `کلید ناشناس در ${t.origin}`;
case "invalid_union":
return "ورودی نامعتبر";
case "invalid_element":
return `مقدار نامعتبر در ${t.origin}`;
default:
return "ورودی نامعتبر";
}
};
};
function zv() {
return {
localeError: wv()
};
}
const xv = () => {
const e = {
string: { unit: "merkkiä", subject: "merkkijonon" },
file: { unit: "tavua", subject: "tiedoston" },
array: { unit: "alkiota", subject: "listan" },
set: { unit: "alkiota", subject: "joukon" },
number: { unit: "", subject: "luvun" },
bigint: { unit: "", subject: "suuren kokonaisluvun" },
int: { unit: "", subject: "kokonaisluvun" },
date: { unit: "", subject: "päivämäärän" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "säännöllinen lauseke",
email: "sähköpostiosoite",
url: "URL-osoite",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO-aikaleima",
date: "ISO-päivämäärä",
time: "ISO-aika",
duration: "ISO-kesto",
ipv4: "IPv4-osoite",
ipv6: "IPv6-osoite",
cidrv4: "IPv4-alue",
cidrv6: "IPv6-alue",
base64: "base64-koodattu merkkijono",
base64url: "base64url-koodattu merkkijono",
json_string: "JSON-merkkijono",
e164: "E.164-luku",
jwt: "JWT",
template_literal: "templaattimerkkijono"
}, o = {
nan: "NaN"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${u}` : `Virheellinen tyyppi: odotettiin ${i}, oli ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Virheellinen syöte: täytyy olla ${M(t.values[0])}` : `Virheellinen valinta: täytyy olla yksi seuraavista: ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Liian suuri: ${a.subject} täytyy olla ${i}${t.maximum.toString()} ${a.unit}`.trim() : `Liian suuri: arvon täytyy olla ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Liian pieni: ${a.subject} täytyy olla ${i}${t.minimum.toString()} ${a.unit}`.trim() : `Liian pieni: arvon täytyy olla ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Virheellinen syöte: täytyy alkaa "${i.prefix}"` : i.format === "ends_with" ? `Virheellinen syöte: täytyy loppua "${i.suffix}"` : i.format === "includes" ? `Virheellinen syöte: täytyy sisältää "${i.includes}"` : i.format === "regex" ? `Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${i.pattern}` : `Virheellinen ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`;
case "unrecognized_keys":
return `${t.keys.length > 1 ? "Tuntemattomat avaimet" : "Tuntematon avain"}: ${k(t.keys, ", ")}`;
case "invalid_key":
return "Virheellinen avain tietueessa";
case "invalid_union":
return "Virheellinen unioni";
case "invalid_element":
return "Virheellinen arvo joukossa";
default:
return "Virheellinen syöte";
}
};
};
function Dv() {
return {
localeError: xv()
};
}
const Ov = () => {
const e = {
string: { unit: "caractères", verb: "avoir" },
file: { unit: "octets", verb: "avoir" },
array: { unit: "éléments", verb: "avoir" },
set: { unit: "éléments", verb: "avoir" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "entrée",
email: "adresse e-mail",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "date et heure ISO",
date: "date ISO",
time: "heure ISO",
duration: "durée ISO",
ipv4: "adresse IPv4",
ipv6: "adresse IPv6",
cidrv4: "plage IPv4",
cidrv6: "plage IPv6",
base64: "chaîne encodée en base64",
base64url: "chaîne encodée en base64url",
json_string: "chaîne JSON",
e164: "numéro E.164",
jwt: "JWT",
template_literal: "entrée"
}, o = {
nan: "NaN",
number: "nombre",
array: "tableau"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Entrée invalide : instanceof ${t.expected} attendu, ${u} reçu` : `Entrée invalide : ${i} attendu, ${u} reçu`;
}
case "invalid_value":
return t.values.length === 1 ? `Entrée invalide : ${M(t.values[0])} attendu` : `Option invalide : une valeur parmi ${k(t.values, "|")} attendue`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Trop grand : ${t.origin ?? "valeur"} doit ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "élément(s)"}` : `Trop grand : ${t.origin ?? "valeur"} doit être ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Trop petit : ${t.origin} doit ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Trop petit : ${t.origin} doit être ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Chaîne invalide : doit commencer par "${i.prefix}"` : i.format === "ends_with" ? `Chaîne invalide : doit se terminer par "${i.suffix}"` : i.format === "includes" ? `Chaîne invalide : doit inclure "${i.includes}"` : i.format === "regex" ? `Chaîne invalide : doit correspondre au modèle ${i.pattern}` : `${r[i.format] ?? t.format} invalide`;
}
case "not_multiple_of":
return `Nombre invalide : doit être un multiple de ${t.divisor}`;
case "unrecognized_keys":
return `Clé${t.keys.length > 1 ? "s" : ""} non reconnue${t.keys.length > 1 ? "s" : ""} : ${k(t.keys, ", ")}`;
case "invalid_key":
return `Clé invalide dans ${t.origin}`;
case "invalid_union":
return "Entrée invalide";
case "invalid_element":
return `Valeur invalide dans ${t.origin}`;
default:
return "Entrée invalide";
}
};
};
function jv() {
return {
localeError: Ov()
};
}
const Uv = () => {
const e = {
string: { unit: "caractères", verb: "avoir" },
file: { unit: "octets", verb: "avoir" },
array: { unit: "éléments", verb: "avoir" },
set: { unit: "éléments", verb: "avoir" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "entrée",
email: "adresse courriel",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "date-heure ISO",
date: "date ISO",
time: "heure ISO",
duration: "durée ISO",
ipv4: "adresse IPv4",
ipv6: "adresse IPv6",
cidrv4: "plage IPv4",
cidrv6: "plage IPv6",
base64: "chaîne encodée en base64",
base64url: "chaîne encodée en base64url",
json_string: "chaîne JSON",
e164: "numéro E.164",
jwt: "JWT",
template_literal: "entrée"
}, o = {
nan: "NaN"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Entrée invalide : attendu instanceof ${t.expected}, reçu ${u}` : `Entrée invalide : attendu ${i}, reçu ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Entrée invalide : attendu ${M(t.values[0])}` : `Option invalide : attendu l'une des valeurs suivantes ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "≤" : "<", a = n(t.origin);
return a ? `Trop grand : attendu que ${t.origin ?? "la valeur"} ait ${i}${t.maximum.toString()} ${a.unit}` : `Trop grand : attendu que ${t.origin ?? "la valeur"} soit ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? "≥" : ">", a = n(t.origin);
return a ? `Trop petit : attendu que ${t.origin} ait ${i}${t.minimum.toString()} ${a.unit}` : `Trop petit : attendu que ${t.origin} soit ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Chaîne invalide : doit commencer par "${i.prefix}"` : i.format === "ends_with" ? `Chaîne invalide : doit se terminer par "${i.suffix}"` : i.format === "includes" ? `Chaîne invalide : doit inclure "${i.includes}"` : i.format === "regex" ? `Chaîne invalide : doit correspondre au motif ${i.pattern}` : `${r[i.format] ?? t.format} invalide`;
}
case "not_multiple_of":
return `Nombre invalide : doit être un multiple de ${t.divisor}`;
case "unrecognized_keys":
return `Clé${t.keys.length > 1 ? "s" : ""} non reconnue${t.keys.length > 1 ? "s" : ""} : ${k(t.keys, ", ")}`;
case "invalid_key":
return `Clé invalide dans ${t.origin}`;
case "invalid_union":
return "Entrée invalide";
case "invalid_element":
return `Valeur invalide dans ${t.origin}`;
default:
return "Entrée invalide";
}
};
};
function Tv() {
return {
localeError: Uv()
};
}
const Ev = () => {
const e = {
string: { label: "מחרוזת", gender: "f" },
number: { label: "מספר", gender: "m" },
boolean: { label: "ערך בוליאני", gender: "m" },
bigint: { label: "BigInt", gender: "m" },
date: { label: "תאריך", gender: "m" },
array: { label: "מערך", gender: "m" },
object: { label: "אובייקט", gender: "m" },
null: { label: "ערך ריק (null)", gender: "m" },
undefined: { label: "ערך לא מוגדר (undefined)", gender: "m" },
symbol: { label: "סימבול (Symbol)", gender: "m" },
function: { label: "פונקציה", gender: "f" },
map: { label: "מפה (Map)", gender: "f" },
set: { label: "קבוצה (Set)", gender: "f" },
file: { label: "קובץ", gender: "m" },
promise: { label: "Promise", gender: "m" },
NaN: { label: "NaN", gender: "m" },
unknown: { label: "ערך לא ידוע", gender: "m" },
value: { label: "ערך", gender: "m" }
}, n = {
string: { unit: "תווים", shortLabel: "קצר", longLabel: "ארוך" },
file: { unit: "בייטים", shortLabel: "קטן", longLabel: "גדול" },
array: { unit: "פריטים", shortLabel: "קטן", longLabel: "גדול" },
set: { unit: "פריטים", shortLabel: "קטן", longLabel: "גדול" },
number: { unit: "", shortLabel: "קטן", longLabel: "גדול" }
// no unit
}, r = (l) => l ? e[l] : void 0, o = (l) => {
const s = r(l);
return s ? s.label : l ?? e.unknown.label;
}, t = (l) => `ה${o(l)}`, i = (l) => {
const s = r(l);
return ((s == null ? void 0 : s.gender) ?? "m") === "f" ? "צריכה להיות" : "צריך להיות";
}, a = (l) => l ? n[l] ?? null : null, u = {
regex: { label: "קלט", gender: "m" },
email: { label: "כתובת אימייל", gender: "f" },
url: { label: "כתובת רשת", gender: "f" },
emoji: { label: "אימוג'י", gender: "m" },
uuid: { label: "UUID", gender: "m" },
nanoid: { label: "nanoid", gender: "m" },
guid: { label: "GUID", gender: "m" },
cuid: { label: "cuid", gender: "m" },
cuid2: { label: "cuid2", gender: "m" },
ulid: { label: "ULID", gender: "m" },
xid: { label: "XID", gender: "m" },
ksuid: { label: "KSUID", gender: "m" },
datetime: { label: "תאריך וזמן ISO", gender: "m" },
date: { label: "תאריך ISO", gender: "m" },
time: { label: "זמן ISO", gender: "m" },
duration: { label: "משך זמן ISO", gender: "m" },
ipv4: { label: "כתובת IPv4", gender: "f" },
ipv6: { label: "כתובת IPv6", gender: "f" },
cidrv4: { label: "טווח IPv4", gender: "m" },
cidrv6: { label: "טווח IPv6", gender: "m" },
base64: { label: "מחרוזת בבסיס 64", gender: "f" },
base64url: { label: "מחרוזת בבסיס 64 לכתובות רשת", gender: "f" },
json_string: { label: "מחרוזת JSON", gender: "f" },
e164: { label: "מספר E.164", gender: "m" },
jwt: { label: "JWT", gender: "m" },
ends_with: { label: "קלט", gender: "m" },
includes: { label: "קלט", gender: "m" },
lowercase: { label: "קלט", gender: "m" },
starts_with: { label: "קלט", gender: "m" },
uppercase: { label: "קלט", gender: "m" }
}, c = {
nan: "NaN"
};
return (l) => {
var s;
switch (l.code) {
case "invalid_type": {
const d = l.expected, m = c[d ?? ""] ?? o(d), p = F(l.input), g = c[p] ?? ((s = e[p]) == null ? void 0 : s.label) ?? p;
return /^[A-Z]/.test(l.expected) ? `קלט לא תקין: צריך להיות instanceof ${l.expected}, התקבל ${g}` : `קלט לא תקין: צריך להיות ${m}, התקבל ${g}`;
}
case "invalid_value": {
if (l.values.length === 1)
return `ערך לא תקין: הערך חייב להיות ${M(l.values[0])}`;
const d = l.values.map((g) => M(g));
if (l.values.length === 2)
return `ערך לא תקין: האפשרויות המתאימות הן ${d[0]} או ${d[1]}`;
const m = d[d.length - 1];
return `ערך לא תקין: האפשרויות המתאימות הן ${d.slice(0, -1).join(", ")} או ${m}`;
}
case "too_big": {
const d = a(l.origin), m = t(l.origin ?? "value");
if (l.origin === "string")
return `${(d == null ? void 0 : d.longLabel) ?? "ארוך"} מדי: ${m} צריכה להכיל ${l.maximum.toString()} ${(d == null ? void 0 : d.unit) ?? ""} ${l.inclusive ? "או פחות" : "לכל היותר"}`.trim();
if (l.origin === "number") {
const f = l.inclusive ? `קטן או שווה ל-${l.maximum}` : `קטן מ-${l.maximum}`;
return `גדול מדי: ${m} צריך להיות ${f}`;
}
if (l.origin === "array" || l.origin === "set") {
const f = l.origin === "set" ? "צריכה" : "צריך", h = l.inclusive ? `${l.maximum} ${(d == null ? void 0 : d.unit) ?? ""} או פחות` : `פחות מ-${l.maximum} ${(d == null ? void 0 : d.unit) ?? ""}`;
return `גדול מדי: ${m} ${f} להכיל ${h}`.trim();
}
const p = l.inclusive ? "<=" : "<", g = i(l.origin ?? "value");
return d != null && d.unit ? `${d.longLabel} מדי: ${m} ${g} ${p}${l.maximum.toString()} ${d.unit}` : `${(d == null ? void 0 : d.longLabel) ?? "גדול"} מדי: ${m} ${g} ${p}${l.maximum.toString()}`;
}
case "too_small": {
const d = a(l.origin), m = t(l.origin ?? "value");
if (l.origin === "string")
return `${(d == null ? void 0 : d.shortLabel) ?? "קצר"} מדי: ${m} צריכה להכיל ${l.minimum.toString()} ${(d == null ? void 0 : d.unit) ?? ""} ${l.inclusive ? "או יותר" : "לפחות"}`.trim();
if (l.origin === "number") {
const f = l.inclusive ? `גדול או שווה ל-${l.minimum}` : `גדול מ-${l.minimum}`;
return `קטן מדי: ${m} צריך להיות ${f}`;
}
if (l.origin === "array" || l.origin === "set") {
const f = l.origin === "set" ? "צריכה" : "צריך";
if (l.minimum === 1 && l.inclusive) {
const b = (l.origin === "set", "לפחות פריט אחד");
return `קטן מדי: ${m} ${f} להכיל ${b}`;
}
const h = l.inclusive ? `${l.minimum} ${(d == null ? void 0 : d.unit) ?? ""} או יותר` : `יותר מ-${l.minimum} ${(d == null ? void 0 : d.unit) ?? ""}`;
return `קטן מדי: ${m} ${f} להכיל ${h}`.trim();
}
const p = l.inclusive ? ">=" : ">", g = i(l.origin ?? "value");
return d != null && d.unit ? `${d.shortLabel} מדי: ${m} ${g} ${p}${l.minimum.toString()} ${d.unit}` : `${(d == null ? void 0 : d.shortLabel) ?? "קטן"} מדי: ${m} ${g} ${p}${l.minimum.toString()}`;
}
case "invalid_format": {
const d = l;
if (d.format === "starts_with")
return `המחרוזת חייבת להתחיל ב "${d.prefix}"`;
if (d.format === "ends_with")
return `המחרוזת חייבת להסתיים ב "${d.suffix}"`;
if (d.format === "includes")
return `המחרוזת חייבת לכלול "${d.includes}"`;
if (d.format === "regex")
return `המחרוזת חייבת להתאים לתבנית ${d.pattern}`;
const m = u[d.format], p = (m == null ? void 0 : m.label) ?? d.format, f = ((m == null ? void 0 : m.gender) ?? "m") === "f" ? "תקינה" : "תקין";
return `${p} לא ${f}`;
}
case "not_multiple_of":
return `מספר לא תקין: חייב להיות מכפלה של ${l.divisor}`;
case "unrecognized_keys":
return `מפתח${l.keys.length > 1 ? "ות" : ""} לא מזוה${l.keys.length > 1 ? "ים" : "ה"}: ${k(l.keys, ", ")}`;
case "invalid_key":
return "שדה לא תקין באובייקט";
case "invalid_union":
return "קלט לא תקין";
case "invalid_element":
return `ערך לא תקין ב${t(l.origin ?? "array")}`;
default:
return "קלט לא תקין";
}
};
};
function Pv() {
return {
localeError: Ev()
};
}
const Nv = () => {
const e = {
string: { unit: "karakter", verb: "legyen" },
file: { unit: "byte", verb: "legyen" },
array: { unit: "elem", verb: "legyen" },
set: { unit: "elem", verb: "legyen" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "bemenet",
email: "email cím",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO időbélyeg",
date: "ISO dátum",
time: "ISO idő",
duration: "ISO időintervallum",
ipv4: "IPv4 cím",
ipv6: "IPv6 cím",
cidrv4: "IPv4 tartomány",
cidrv6: "IPv6 tartomány",
base64: "base64-kódolt string",
base64url: "base64url-kódolt string",
json_string: "JSON string",
e164: "E.164 szám",
jwt: "JWT",
template_literal: "bemenet"
}, o = {
nan: "NaN",
number: "szám",
array: "tömb"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Érvénytelen bemenet: a várt érték instanceof ${t.expected}, a kapott érték ${u}` : `Érvénytelen bemenet: a várt érték ${i}, a kapott érték ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Érvénytelen bemenet: a várt érték ${M(t.values[0])}` : `Érvénytelen opció: valamelyik érték várt ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Túl nagy: ${t.origin ?? "érték"} mérete túl nagy ${i}${t.maximum.toString()} ${a.unit ?? "elem"}` : `Túl nagy: a bemeneti érték ${t.origin ?? "érték"} túl nagy: ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Túl kicsi: a bemeneti érték ${t.origin} mérete túl kicsi ${i}${t.minimum.toString()} ${a.unit}` : `Túl kicsi: a bemeneti érték ${t.origin} túl kicsi ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Érvénytelen string: "${i.prefix}" értékkel kell kezdődnie` : i.format === "ends_with" ? `Érvénytelen string: "${i.suffix}" értékkel kell végződnie` : i.format === "includes" ? `Érvénytelen string: "${i.includes}" értéket kell tartalmaznia` : i.format === "regex" ? `Érvénytelen string: ${i.pattern} mintának kell megfelelnie` : `Érvénytelen ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Érvénytelen szám: ${t.divisor} többszörösének kell lennie`;
case "unrecognized_keys":
return `Ismeretlen kulcs${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Érvénytelen kulcs ${t.origin}`;
case "invalid_union":
return "Érvénytelen bemenet";
case "invalid_element":
return `Érvénytelen érték: ${t.origin}`;
default:
return "Érvénytelen bemenet";
}
};
};
function Av() {
return {
localeError: Nv()
};
}
function Ho(e, n, r) {
return Math.abs(e) === 1 ? n : r;
}
function $t(e) {
if (!e)
return "";
const n = ["ա", "ե", "ը", "ի", "ո", "ու", "օ"], r = e[e.length - 1];
return e + (n.includes(r) ? "ն" : "ը");
}
const Zv = () => {
const e = {
string: {
unit: {
one: "նշան",
many: "նշաններ"
},
verb: "ունենալ"
},
file: {
unit: {
one: "բայթ",
many: "բայթեր"
},
verb: "ունենալ"
},
array: {
unit: {
one: "տարր",
many: "տարրեր"
},
verb: "ունենալ"
},
set: {
unit: {
one: "տարր",
many: "տարրեր"
},
verb: "ունենալ"
}
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "մուտք",
email: "էլ. հասցե",
url: "URL",
emoji: "էմոջի",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO ամսաթիվ և ժամ",
date: "ISO ամսաթիվ",
time: "ISO ժամ",
duration: "ISO տևողություն",
ipv4: "IPv4 հասցե",
ipv6: "IPv6 հասցե",
cidrv4: "IPv4 միջակայք",
cidrv6: "IPv6 միջակայք",
base64: "base64 ձևաչափով տող",
base64url: "base64url ձևաչափով տող",
json_string: "JSON տող",
e164: "E.164 համար",
jwt: "JWT",
template_literal: "մուտք"
}, o = {
nan: "NaN",
number: "թիվ",
array: "զանգված"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Սխալ մուտքագրում․ սպասվում էր instanceof ${t.expected}, ստացվել է ${u}` : `Սխալ մուտքագրում․ սպասվում էր ${i}, ստացվել է ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Սխալ մուտքագրում․ սպասվում էր ${M(t.values[1])}` : `Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
if (a) {
const u = Number(t.maximum), c = Ho(u, a.unit.one, a.unit.many);
return `Չափազանց մեծ արժեք․ սպասվում է, որ ${$t(t.origin ?? "արժեք")} կունենա ${i}${t.maximum.toString()} ${c}`;
}
return `Չափազանց մեծ արժեք․ սպասվում է, որ ${$t(t.origin ?? "արժեք")} լինի ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
if (a) {
const u = Number(t.minimum), c = Ho(u, a.unit.one, a.unit.many);
return `Չափազանց փոքր արժեք․ սպասվում է, որ ${$t(t.origin)} կունենա ${i}${t.minimum.toString()} ${c}`;
}
return `Չափազանց փոքր արժեք․ սպասվում է, որ ${$t(t.origin)} լինի ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Սխալ տող․ պետք է սկսվի "${i.prefix}"-ով` : i.format === "ends_with" ? `Սխալ տող․ պետք է ավարտվի "${i.suffix}"-ով` : i.format === "includes" ? `Սխալ տող․ պետք է պարունակի "${i.includes}"` : i.format === "regex" ? `Սխալ տող․ պետք է համապատասխանի ${i.pattern} ձևաչափին` : `Սխալ ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Սխալ թիվ․ պետք է բազմապատիկ լինի ${t.divisor}`;
case "unrecognized_keys":
return `Չճանաչված բանալի${t.keys.length > 1 ? "ներ" : ""}. ${k(t.keys, ", ")}`;
case "invalid_key":
return `Սխալ բանալի ${$t(t.origin)}-ում`;
case "invalid_union":
return "Սխալ մուտքագրում";
case "invalid_element":
return `Սխալ արժեք ${$t(t.origin)}-ում`;
default:
return "Սխալ մուտքագրում";
}
};
};
function Cv() {
return {
localeError: Zv()
};
}
const Mv = () => {
const e = {
string: { unit: "karakter", verb: "memiliki" },
file: { unit: "byte", verb: "memiliki" },
array: { unit: "item", verb: "memiliki" },
set: { unit: "item", verb: "memiliki" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "input",
email: "alamat email",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "tanggal dan waktu format ISO",
date: "tanggal format ISO",
time: "jam format ISO",
duration: "durasi format ISO",
ipv4: "alamat IPv4",
ipv6: "alamat IPv6",
cidrv4: "rentang alamat IPv4",
cidrv6: "rentang alamat IPv6",
base64: "string dengan enkode base64",
base64url: "string dengan enkode base64url",
json_string: "string JSON",
e164: "angka E.164",
jwt: "JWT",
template_literal: "input"
}, o = {
nan: "NaN"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${u}` : `Input tidak valid: diharapkan ${i}, diterima ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Input tidak valid: diharapkan ${M(t.values[0])}` : `Pilihan tidak valid: diharapkan salah satu dari ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Terlalu besar: diharapkan ${t.origin ?? "value"} memiliki ${i}${t.maximum.toString()} ${a.unit ?? "elemen"}` : `Terlalu besar: diharapkan ${t.origin ?? "value"} menjadi ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Terlalu kecil: diharapkan ${t.origin} memiliki ${i}${t.minimum.toString()} ${a.unit}` : `Terlalu kecil: diharapkan ${t.origin} menjadi ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `String tidak valid: harus dimulai dengan "${i.prefix}"` : i.format === "ends_with" ? `String tidak valid: harus berakhir dengan "${i.suffix}"` : i.format === "includes" ? `String tidak valid: harus menyertakan "${i.includes}"` : i.format === "regex" ? `String tidak valid: harus sesuai pola ${i.pattern}` : `${r[i.format] ?? t.format} tidak valid`;
}
case "not_multiple_of":
return `Angka tidak valid: harus kelipatan dari ${t.divisor}`;
case "unrecognized_keys":
return `Kunci tidak dikenali ${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Kunci tidak valid di ${t.origin}`;
case "invalid_union":
return "Input tidak valid";
case "invalid_element":
return `Nilai tidak valid di ${t.origin}`;
default:
return "Input tidak valid";
}
};
};
function Fv() {
return {
localeError: Mv()
};
}
const Lv = () => {
const e = {
string: { unit: "stafi", verb: "að hafa" },
file: { unit: "bæti", verb: "að hafa" },
array: { unit: "hluti", verb: "að hafa" },
set: { unit: "hluti", verb: "að hafa" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "gildi",
email: "netfang",
url: "vefslóð",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO dagsetning og tími",
date: "ISO dagsetning",
time: "ISO tími",
duration: "ISO tímalengd",
ipv4: "IPv4 address",
ipv6: "IPv6 address",
cidrv4: "IPv4 range",
cidrv6: "IPv6 range",
base64: "base64-encoded strengur",
base64url: "base64url-encoded strengur",
json_string: "JSON strengur",
e164: "E.164 tölugildi",
jwt: "JWT",
template_literal: "gildi"
}, o = {
nan: "NaN",
number: "númer",
array: "fylki"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Rangt gildi: Þú slóst inn ${u} þar sem á að vera instanceof ${t.expected}` : `Rangt gildi: Þú slóst inn ${u} þar sem á að vera ${i}`;
}
case "invalid_value":
return t.values.length === 1 ? `Rangt gildi: gert ráð fyrir ${M(t.values[0])}` : `Ógilt val: má vera eitt af eftirfarandi ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Of stórt: gert er ráð fyrir að ${t.origin ?? "gildi"} hafi ${i}${t.maximum.toString()} ${a.unit ?? "hluti"}` : `Of stórt: gert er ráð fyrir að ${t.origin ?? "gildi"}${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Of lítið: gert er ráð fyrir að ${t.origin} hafi ${i}${t.minimum.toString()} ${a.unit}` : `Of lítið: gert er ráð fyrir að ${t.origin}${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Ógildur strengur: verður að byrja á "${i.prefix}"` : i.format === "ends_with" ? `Ógildur strengur: verður að enda á "${i.suffix}"` : i.format === "includes" ? `Ógildur strengur: verður að innihalda "${i.includes}"` : i.format === "regex" ? `Ógildur strengur: verður að fylgja mynstri ${i.pattern}` : `Rangt ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Röng tala: verður að vera margfeldi af ${t.divisor}`;
case "unrecognized_keys":
return `Óþekkt ${t.keys.length > 1 ? "ir lyklar" : "ur lykill"}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Rangur lykill í ${t.origin}`;
case "invalid_union":
return "Rangt gildi";
case "invalid_element":
return `Rangt gildi í ${t.origin}`;
default:
return "Rangt gildi";
}
};
};
function Rv() {
return {
localeError: Lv()
};
}
const Bv = () => {
const e = {
string: { unit: "caratteri", verb: "avere" },
file: { unit: "byte", verb: "avere" },
array: { unit: "elementi", verb: "avere" },
set: { unit: "elementi", verb: "avere" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "input",
email: "indirizzo email",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "data e ora ISO",
date: "data ISO",
time: "ora ISO",
duration: "durata ISO",
ipv4: "indirizzo IPv4",
ipv6: "indirizzo IPv6",
cidrv4: "intervallo IPv4",
cidrv6: "intervallo IPv6",
base64: "stringa codificata in base64",
base64url: "URL codificata in base64",
json_string: "stringa JSON",
e164: "numero E.164",
jwt: "JWT",
template_literal: "input"
}, o = {
nan: "NaN",
number: "numero",
array: "vettore"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Input non valido: atteso instanceof ${t.expected}, ricevuto ${u}` : `Input non valido: atteso ${i}, ricevuto ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Input non valido: atteso ${M(t.values[0])}` : `Opzione non valida: atteso uno tra ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Troppo grande: ${t.origin ?? "valore"} deve avere ${i}${t.maximum.toString()} ${a.unit ?? "elementi"}` : `Troppo grande: ${t.origin ?? "valore"} deve essere ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Troppo piccolo: ${t.origin} deve avere ${i}${t.minimum.toString()} ${a.unit}` : `Troppo piccolo: ${t.origin} deve essere ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Stringa non valida: deve iniziare con "${i.prefix}"` : i.format === "ends_with" ? `Stringa non valida: deve terminare con "${i.suffix}"` : i.format === "includes" ? `Stringa non valida: deve includere "${i.includes}"` : i.format === "regex" ? `Stringa non valida: deve corrispondere al pattern ${i.pattern}` : `Invalid ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Numero non valido: deve essere un multiplo di ${t.divisor}`;
case "unrecognized_keys":
return `Chiav${t.keys.length > 1 ? "i" : "e"} non riconosciut${t.keys.length > 1 ? "e" : "a"}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Chiave non valida in ${t.origin}`;
case "invalid_union":
return "Input non valido";
case "invalid_element":
return `Valore non valido in ${t.origin}`;
default:
return "Input non valido";
}
};
};
function Jv() {
return {
localeError: Bv()
};
}
const Vv = () => {
const e = {
string: { unit: "文字", verb: "である" },
file: { unit: "バイト", verb: "である" },
array: { unit: "要素", verb: "である" },
set: { unit: "要素", verb: "である" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "入力値",
email: "メールアドレス",
url: "URL",
emoji: "絵文字",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO日時",
date: "ISO日付",
time: "ISO時刻",
duration: "ISO期間",
ipv4: "IPv4アドレス",
ipv6: "IPv6アドレス",
cidrv4: "IPv4範囲",
cidrv6: "IPv6範囲",
base64: "base64エンコード文字列",
base64url: "base64urlエンコード文字列",
json_string: "JSON文字列",
e164: "E.164番号",
jwt: "JWT",
template_literal: "入力値"
}, o = {
nan: "NaN",
number: "数値",
array: "配列"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `無効な入力: instanceof ${t.expected}が期待されましたが、${u}が入力されました` : `無効な入力: ${i}が期待されましたが、${u}が入力されました`;
}
case "invalid_value":
return t.values.length === 1 ? `無効な入力: ${M(t.values[0])}が期待されました` : `無効な選択: ${k(t.values, "、")}のいずれかである必要があります`;
case "too_big": {
const i = t.inclusive ? "以下である" : "より小さい", a = n(t.origin);
return a ? `大きすぎる値: ${t.origin ?? "値"}${t.maximum.toString()}${a.unit ?? "要素"}${i}必要があります` : `大きすぎる値: ${t.origin ?? "値"}${t.maximum.toString()}${i}必要があります`;
}
case "too_small": {
const i = t.inclusive ? "以上である" : "より大きい", a = n(t.origin);
return a ? `小さすぎる値: ${t.origin}${t.minimum.toString()}${a.unit}${i}必要があります` : `小さすぎる値: ${t.origin}${t.minimum.toString()}${i}必要があります`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `無効な文字列: "${i.prefix}"で始まる必要があります` : i.format === "ends_with" ? `無効な文字列: "${i.suffix}"で終わる必要があります` : i.format === "includes" ? `無効な文字列: "${i.includes}"を含む必要があります` : i.format === "regex" ? `無効な文字列: パターン${i.pattern}に一致する必要があります` : `無効な${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `無効な数値: ${t.divisor}の倍数である必要があります`;
case "unrecognized_keys":
return `認識されていないキー${t.keys.length > 1 ? "群" : ""}: ${k(t.keys, "、")}`;
case "invalid_key":
return `${t.origin}内の無効なキー`;
case "invalid_union":
return "無効な入力";
case "invalid_element":
return `${t.origin}内の無効な値`;
default:
return "無効な入力";
}
};
};
function qv() {
return {
localeError: Vv()
};
}
const Yv = () => {
const e = {
string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
file: { unit: "ბაიტი", verb: "უნდა შეიცავდეს" },
array: { unit: "ელემენტი", verb: "უნდა შეიცავდეს" },
set: { unit: "ელემენტი", verb: "უნდა შეიცავდეს" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "შეყვანა",
email: "ელ-ფოსტის მისამართი",
url: "URL",
emoji: "ემოჯი",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "თარიღი-დრო",
date: "თარიღი",
time: "დრო",
duration: "ხანგრძლივობა",
ipv4: "IPv4 მისამართი",
ipv6: "IPv6 მისამართი",
cidrv4: "IPv4 დიაპაზონი",
cidrv6: "IPv6 დიაპაზონი",
base64: "base64-კოდირებული სტრინგი",
base64url: "base64url-კოდირებული სტრინგი",
json_string: "JSON სტრინგი",
e164: "E.164 ნომერი",
jwt: "JWT",
template_literal: "შეყვანა"
}, o = {
nan: "NaN",
number: "რიცხვი",
string: "სტრინგი",
boolean: "ბულეანი",
function: "ფუნქცია",
array: "მასივი"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `არასწორი შეყვანა: მოსალოდნელი instanceof ${t.expected}, მიღებული ${u}` : `არასწორი შეყვანა: მოსალოდნელი ${i}, მიღებული ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `არასწორი შეყვანა: მოსალოდნელი ${M(t.values[0])}` : `არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${k(t.values, "|")}-დან`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `ზედმეტად დიდი: მოსალოდნელი ${t.origin ?? "მნიშვნელობა"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit}` : `ზედმეტად დიდი: მოსალოდნელი ${t.origin ?? "მნიშვნელობა"} იყოს ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `ზედმეტად პატარა: მოსალოდნელი ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `ზედმეტად პატარა: მოსალოდნელი ${t.origin} იყოს ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `არასწორი სტრინგი: უნდა იწყებოდეს "${i.prefix}"-ით` : i.format === "ends_with" ? `არასწორი სტრინგი: უნდა მთავრდებოდეს "${i.suffix}"-ით` : i.format === "includes" ? `არასწორი სტრინგი: უნდა შეიცავდეს "${i.includes}"-ს` : i.format === "regex" ? `არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${i.pattern}` : `არასწორი ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `არასწორი რიცხვი: უნდა იყოს ${t.divisor}-ის ჯერადი`;
case "unrecognized_keys":
return `უცნობი გასაღებ${t.keys.length > 1 ? "ები" : "ი"}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `არასწორი გასაღები ${t.origin}-ში`;
case "invalid_union":
return "არასწორი შეყვანა";
case "invalid_element":
return `არასწორი მნიშვნელობა ${t.origin}-ში`;
default:
return "არასწორი შეყვანა";
}
};
};
function Kv() {
return {
localeError: Yv()
};
}
const Wv = () => {
const e = {
string: { unit: "តួអក្សរ", verb: "គួរមាន" },
file: { unit: "បៃ", verb: "គួរមាន" },
array: { unit: "ធាតុ", verb: "គួរមាន" },
set: { unit: "ធាតុ", verb: "គួរមាន" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "ទិន្នន័យបញ្ចូល",
email: "អាសយដ្ឋានអ៊ីមែល",
url: "URL",
emoji: "សញ្ញាអារម្មណ៍",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "កាលបរិច្ឆេទ និងម៉ោង ISO",
date: "កាលបរិច្ឆេទ ISO",
time: "ម៉ោង ISO",
duration: "រយៈពេល ISO",
ipv4: "អាសយដ្ឋាន IPv4",
ipv6: "អាសយដ្ឋាន IPv6",
cidrv4: "ដែនអាសយដ្ឋាន IPv4",
cidrv6: "ដែនអាសយដ្ឋាន IPv6",
base64: "ខ្សែអក្សរអ៊ិកូដ base64",
base64url: "ខ្សែអក្សរអ៊ិកូដ base64url",
json_string: "ខ្សែអក្សរ JSON",
e164: "លេខ E.164",
jwt: "JWT",
template_literal: "ទិន្នន័យបញ្ចូល"
}, o = {
nan: "NaN",
number: "លេខ",
array: "អារេ (Array)",
null: "គ្មានតម្លៃ (null)"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${t.expected} ប៉ុន្តែទទួលបាន ${u}` : `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${i} ប៉ុន្តែទទួលបាន ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${M(t.values[0])}` : `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `ធំពេក៖ ត្រូវការ ${t.origin ?? "តម្លៃ"} ${i} ${t.maximum.toString()} ${a.unit ?? "ធាតុ"}` : `ធំពេក៖ ត្រូវការ ${t.origin ?? "តម្លៃ"} ${i} ${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `តូចពេក៖ ត្រូវការ ${t.origin} ${i} ${t.minimum.toString()} ${a.unit}` : `តូចពេក៖ ត្រូវការ ${t.origin} ${i} ${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${i.prefix}"` : i.format === "ends_with" ? `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${i.suffix}"` : i.format === "includes" ? `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${i.includes}"` : i.format === "regex" ? `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${i.pattern}` : `មិនត្រឹមត្រូវ៖ ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`;
case "unrecognized_keys":
return `រកឃើញសោមិនស្គាល់៖ ${k(t.keys, ", ")}`;
case "invalid_key":
return `សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;
case "invalid_union":
return "ទិន្នន័យមិនត្រឹមត្រូវ";
case "invalid_element":
return `ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;
default:
return "ទិន្នន័យមិនត្រឹមត្រូវ";
}
};
};
function vc() {
return {
localeError: Wv()
};
}
function Gv() {
return vc();
}
const Hv = () => {
const e = {
string: { unit: "문자", verb: "to have" },
file: { unit: "바이트", verb: "to have" },
array: { unit: "개", verb: "to have" },
set: { unit: "개", verb: "to have" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "입력",
email: "이메일 주소",
url: "URL",
emoji: "이모지",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO 날짜시간",
date: "ISO 날짜",
time: "ISO 시간",
duration: "ISO 기간",
ipv4: "IPv4 주소",
ipv6: "IPv6 주소",
cidrv4: "IPv4 범위",
cidrv6: "IPv6 범위",
base64: "base64 인코딩 문자열",
base64url: "base64url 인코딩 문자열",
json_string: "JSON 문자열",
e164: "E.164 번호",
jwt: "JWT",
template_literal: "입력"
}, o = {
nan: "NaN"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `잘못된 입력: 예상 타입은 instanceof ${t.expected}, 받은 타입은 ${u}입니다` : `잘못된 입력: 예상 타입은 ${i}, 받은 타입은 ${u}입니다`;
}
case "invalid_value":
return t.values.length === 1 ? `잘못된 입력: 값은 ${M(t.values[0])} 이어야 합니다` : `잘못된 옵션: ${k(t.values, "또는 ")} 중 하나여야 합니다`;
case "too_big": {
const i = t.inclusive ? "이하" : "미만", a = i === "미만" ? "이어야 합니다" : "여야 합니다", u = n(t.origin), c = (u == null ? void 0 : u.unit) ?? "요소";
return u ? `${t.origin ?? "값"}이 너무 큽니다: ${t.maximum.toString()}${c} ${i}${a}` : `${t.origin ?? "값"}이 너무 큽니다: ${t.maximum.toString()} ${i}${a}`;
}
case "too_small": {
const i = t.inclusive ? "이상" : "초과", a = i === "이상" ? "이어야 합니다" : "여야 합니다", u = n(t.origin), c = (u == null ? void 0 : u.unit) ?? "요소";
return u ? `${t.origin ?? "값"}이 너무 작습니다: ${t.minimum.toString()}${c} ${i}${a}` : `${t.origin ?? "값"}이 너무 작습니다: ${t.minimum.toString()} ${i}${a}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `잘못된 문자열: "${i.prefix}"(으)로 시작해야 합니다` : i.format === "ends_with" ? `잘못된 문자열: "${i.suffix}"(으)로 끝나야 합니다` : i.format === "includes" ? `잘못된 문자열: "${i.includes}"을(를) 포함해야 합니다` : i.format === "regex" ? `잘못된 문자열: 정규식 ${i.pattern} 패턴과 일치해야 합니다` : `잘못된 ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `잘못된 숫자: ${t.divisor}의 배수여야 합니다`;
case "unrecognized_keys":
return `인식할 수 없는 키: ${k(t.keys, ", ")}`;
case "invalid_key":
return `잘못된 키: ${t.origin}`;
case "invalid_union":
return "잘못된 입력";
case "invalid_element":
return `잘못된 값: ${t.origin}`;
default:
return "잘못된 입력";
}
};
};
function Xv() {
return {
localeError: Hv()
};
}
const Ut = (e) => e.charAt(0).toUpperCase() + e.slice(1);
function Xo(e) {
const n = Math.abs(e), r = n % 10, o = n % 100;
return o >= 11 && o <= 19 || r === 0 ? "many" : r === 1 ? "one" : "few";
}
const Qv = () => {
const e = {
string: {
unit: {
one: "simbolis",
few: "simboliai",
many: "simbolių"
},
verb: {
smaller: {
inclusive: "turi būti ne ilgesnė kaip",
notInclusive: "turi būti trumpesnė kaip"
},
bigger: {
inclusive: "turi būti ne trumpesnė kaip",
notInclusive: "turi būti ilgesnė kaip"
}
}
},
file: {
unit: {
one: "baitas",
few: "baitai",
many: "baitų"
},
verb: {
smaller: {
inclusive: "turi būti ne didesnis kaip",
notInclusive: "turi būti mažesnis kaip"
},
bigger: {
inclusive: "turi būti ne mažesnis kaip",
notInclusive: "turi būti didesnis kaip"
}
}
},
array: {
unit: {
one: "elementą",
few: "elementus",
many: "elementų"
},
verb: {
smaller: {
inclusive: "turi turėti ne daugiau kaip",
notInclusive: "turi turėti mažiau kaip"
},
bigger: {
inclusive: "turi turėti ne mažiau kaip",
notInclusive: "turi turėti daugiau kaip"
}
}
},
set: {
unit: {
one: "elementą",
few: "elementus",
many: "elementų"
},
verb: {
smaller: {
inclusive: "turi turėti ne daugiau kaip",
notInclusive: "turi turėti mažiau kaip"
},
bigger: {
inclusive: "turi turėti ne mažiau kaip",
notInclusive: "turi turėti daugiau kaip"
}
}
}
};
function n(t, i, a, u) {
const c = e[t] ?? null;
return c === null ? c : {
unit: c.unit[i],
verb: c.verb[u][a ? "inclusive" : "notInclusive"]
};
}
const r = {
regex: "įvestis",
email: "el. pašto adresas",
url: "URL",
emoji: "jaustukas",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO data ir laikas",
date: "ISO data",
time: "ISO laikas",
duration: "ISO trukmė",
ipv4: "IPv4 adresas",
ipv6: "IPv6 adresas",
cidrv4: "IPv4 tinklo prefiksas (CIDR)",
cidrv6: "IPv6 tinklo prefiksas (CIDR)",
base64: "base64 užkoduota eilutė",
base64url: "base64url užkoduota eilutė",
json_string: "JSON eilutė",
e164: "E.164 numeris",
jwt: "JWT",
template_literal: "įvestis"
}, o = {
nan: "NaN",
number: "skaičius",
bigint: "sveikasis skaičius",
string: "eilutė",
boolean: "loginė reikšmė",
undefined: "neapibrėžta reikšmė",
function: "funkcija",
symbol: "simbolis",
array: "masyvas",
object: "objektas",
null: "nulinė reikšmė"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Gautas tipas ${u}, o tikėtasi - instanceof ${t.expected}` : `Gautas tipas ${u}, o tikėtasi - ${i}`;
}
case "invalid_value":
return t.values.length === 1 ? `Privalo būti ${M(t.values[0])}` : `Privalo būti vienas iš ${k(t.values, "|")} pasirinkimų`;
case "too_big": {
const i = o[t.origin] ?? t.origin, a = n(t.origin, Xo(Number(t.maximum)), t.inclusive ?? !1, "smaller");
if (a != null && a.verb)
return `${Ut(i ?? t.origin ?? "reikšmė")} ${a.verb} ${t.maximum.toString()} ${a.unit ?? "elementų"}`;
const u = t.inclusive ? "ne didesnis kaip" : "mažesnis kaip";
return `${Ut(i ?? t.origin ?? "reikšmė")} turi būti ${u} ${t.maximum.toString()} ${a == null ? void 0 : a.unit}`;
}
case "too_small": {
const i = o[t.origin] ?? t.origin, a = n(t.origin, Xo(Number(t.minimum)), t.inclusive ?? !1, "bigger");
if (a != null && a.verb)
return `${Ut(i ?? t.origin ?? "reikšmė")} ${a.verb} ${t.minimum.toString()} ${a.unit ?? "elementų"}`;
const u = t.inclusive ? "ne mažesnis kaip" : "didesnis kaip";
return `${Ut(i ?? t.origin ?? "reikšmė")} turi būti ${u} ${t.minimum.toString()} ${a == null ? void 0 : a.unit}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Eilutė privalo prasidėti "${i.prefix}"` : i.format === "ends_with" ? `Eilutė privalo pasibaigti "${i.suffix}"` : i.format === "includes" ? `Eilutė privalo įtraukti "${i.includes}"` : i.format === "regex" ? `Eilutė privalo atitikti ${i.pattern}` : `Neteisingas ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Skaičius privalo būti ${t.divisor} kartotinis.`;
case "unrecognized_keys":
return `Neatpažint${t.keys.length > 1 ? "i" : "as"} rakt${t.keys.length > 1 ? "ai" : "as"}: ${k(t.keys, ", ")}`;
case "invalid_key":
return "Rastas klaidingas raktas";
case "invalid_union":
return "Klaidinga įvestis";
case "invalid_element": {
const i = o[t.origin] ?? t.origin;
return `${Ut(i ?? t.origin ?? "reikšmė")} turi klaidingą įvestį`;
}
default:
return "Klaidinga įvestis";
}
};
};
function ep() {
return {
localeError: Qv()
};
}
const tp = () => {
const e = {
string: { unit: "знаци", verb: "да имаат" },
file: { unit: "бајти", verb: "да имаат" },
array: { unit: "ставки", verb: "да имаат" },
set: { unit: "ставки", verb: "да имаат" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "внес",
email: "адреса на е-пошта",
url: "URL",
emoji: "емоџи",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO датум и време",
date: "ISO датум",
time: "ISO време",
duration: "ISO времетраење",
ipv4: "IPv4 адреса",
ipv6: "IPv6 адреса",
cidrv4: "IPv4 опсег",
cidrv6: "IPv6 опсег",
base64: "base64-енкодирана низа",
base64url: "base64url-енкодирана низа",
json_string: "JSON низа",
e164: "E.164 број",
jwt: "JWT",
template_literal: "внес"
}, o = {
nan: "NaN",
number: "број",
array: "низа"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Грешен внес: се очекува instanceof ${t.expected}, примено ${u}` : `Грешен внес: се очекува ${i}, примено ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Invalid input: expected ${M(t.values[0])}` : `Грешана опција: се очекува една ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Премногу голем: се очекува ${t.origin ?? "вредноста"} да има ${i}${t.maximum.toString()} ${a.unit ?? "елементи"}` : `Премногу голем: се очекува ${t.origin ?? "вредноста"} да биде ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Премногу мал: се очекува ${t.origin} да има ${i}${t.minimum.toString()} ${a.unit}` : `Премногу мал: се очекува ${t.origin} да биде ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Неважечка низа: мора да започнува со "${i.prefix}"` : i.format === "ends_with" ? `Неважечка низа: мора да завршува со "${i.suffix}"` : i.format === "includes" ? `Неважечка низа: мора да вклучува "${i.includes}"` : i.format === "regex" ? `Неважечка низа: мора да одгоара на патернот ${i.pattern}` : `Invalid ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Грешен број: мора да биде делив со ${t.divisor}`;
case "unrecognized_keys":
return `${t.keys.length > 1 ? "Непрепознаени клучеви" : "Непрепознаен клуч"}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Грешен клуч во ${t.origin}`;
case "invalid_union":
return "Грешен внес";
case "invalid_element":
return `Грешна вредност во ${t.origin}`;
default:
return "Грешен внес";
}
};
};
function np() {
return {
localeError: tp()
};
}
const rp = () => {
const e = {
string: { unit: "aksara", verb: "mempunyai" },
file: { unit: "bait", verb: "mempunyai" },
array: { unit: "elemen", verb: "mempunyai" },
set: { unit: "elemen", verb: "mempunyai" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "input",
email: "alamat e-mel",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "tarikh masa ISO",
date: "tarikh ISO",
time: "masa ISO",
duration: "tempoh ISO",
ipv4: "alamat IPv4",
ipv6: "alamat IPv6",
cidrv4: "julat IPv4",
cidrv6: "julat IPv6",
base64: "string dikodkan base64",
base64url: "string dikodkan base64url",
json_string: "string JSON",
e164: "nombor E.164",
jwt: "JWT",
template_literal: "input"
}, o = {
nan: "NaN",
number: "nombor"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Input tidak sah: dijangka instanceof ${t.expected}, diterima ${u}` : `Input tidak sah: dijangka ${i}, diterima ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Input tidak sah: dijangka ${M(t.values[0])}` : `Pilihan tidak sah: dijangka salah satu daripada ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Terlalu besar: dijangka ${t.origin ?? "nilai"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "elemen"}` : `Terlalu besar: dijangka ${t.origin ?? "nilai"} adalah ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Terlalu kecil: dijangka ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Terlalu kecil: dijangka ${t.origin} adalah ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `String tidak sah: mesti bermula dengan "${i.prefix}"` : i.format === "ends_with" ? `String tidak sah: mesti berakhir dengan "${i.suffix}"` : i.format === "includes" ? `String tidak sah: mesti mengandungi "${i.includes}"` : i.format === "regex" ? `String tidak sah: mesti sepadan dengan corak ${i.pattern}` : `${r[i.format] ?? t.format} tidak sah`;
}
case "not_multiple_of":
return `Nombor tidak sah: perlu gandaan ${t.divisor}`;
case "unrecognized_keys":
return `Kunci tidak dikenali: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Kunci tidak sah dalam ${t.origin}`;
case "invalid_union":
return "Input tidak sah";
case "invalid_element":
return `Nilai tidak sah dalam ${t.origin}`;
default:
return "Input tidak sah";
}
};
};
function ip() {
return {
localeError: rp()
};
}
const op = () => {
const e = {
string: { unit: "tekens", verb: "heeft" },
file: { unit: "bytes", verb: "heeft" },
array: { unit: "elementen", verb: "heeft" },
set: { unit: "elementen", verb: "heeft" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "invoer",
email: "emailadres",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO datum en tijd",
date: "ISO datum",
time: "ISO tijd",
duration: "ISO duur",
ipv4: "IPv4-adres",
ipv6: "IPv6-adres",
cidrv4: "IPv4-bereik",
cidrv6: "IPv6-bereik",
base64: "base64-gecodeerde tekst",
base64url: "base64 URL-gecodeerde tekst",
json_string: "JSON string",
e164: "E.164-nummer",
jwt: "JWT",
template_literal: "invoer"
}, o = {
nan: "NaN",
number: "getal"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${u}` : `Ongeldige invoer: verwacht ${i}, ontving ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Ongeldige invoer: verwacht ${M(t.values[0])}` : `Ongeldige optie: verwacht één van ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin), u = t.origin === "date" ? "laat" : t.origin === "string" ? "lang" : "groot";
return a ? `Te ${u}: verwacht dat ${t.origin ?? "waarde"} ${i}${t.maximum.toString()} ${a.unit ?? "elementen"} ${a.verb}` : `Te ${u}: verwacht dat ${t.origin ?? "waarde"} ${i}${t.maximum.toString()} is`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin), u = t.origin === "date" ? "vroeg" : t.origin === "string" ? "kort" : "klein";
return a ? `Te ${u}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ${a.verb}` : `Te ${u}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} is`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Ongeldige tekst: moet met "${i.prefix}" beginnen` : i.format === "ends_with" ? `Ongeldige tekst: moet op "${i.suffix}" eindigen` : i.format === "includes" ? `Ongeldige tekst: moet "${i.includes}" bevatten` : i.format === "regex" ? `Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}` : `Ongeldig: ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;
case "unrecognized_keys":
return `Onbekende key${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Ongeldige key in ${t.origin}`;
case "invalid_union":
return "Ongeldige invoer";
case "invalid_element":
return `Ongeldige waarde in ${t.origin}`;
default:
return "Ongeldige invoer";
}
};
};
function ap() {
return {
localeError: op()
};
}
const up = () => {
const e = {
string: { unit: "tegn", verb: "å ha" },
file: { unit: "bytes", verb: "å ha" },
array: { unit: "elementer", verb: "å inneholde" },
set: { unit: "elementer", verb: "å inneholde" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "input",
email: "e-postadresse",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO dato- og klokkeslett",
date: "ISO-dato",
time: "ISO-klokkeslett",
duration: "ISO-varighet",
ipv4: "IPv4-område",
ipv6: "IPv6-område",
cidrv4: "IPv4-spekter",
cidrv6: "IPv6-spekter",
base64: "base64-enkodet streng",
base64url: "base64url-enkodet streng",
json_string: "JSON-streng",
e164: "E.164-nummer",
jwt: "JWT",
template_literal: "input"
}, o = {
nan: "NaN",
number: "tall",
array: "liste"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Ugyldig input: forventet instanceof ${t.expected}, fikk ${u}` : `Ugyldig input: forventet ${i}, fikk ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Ugyldig verdi: forventet ${M(t.values[0])}` : `Ugyldig valg: forventet en av ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `For stor(t): forventet ${t.origin ?? "value"} til å ha ${i}${t.maximum.toString()} ${a.unit ?? "elementer"}` : `For stor(t): forventet ${t.origin ?? "value"} til å ha ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `For lite(n): forventet ${t.origin} til å ha ${i}${t.minimum.toString()} ${a.unit}` : `For lite(n): forventet ${t.origin} til å ha ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Ugyldig streng: må starte med "${i.prefix}"` : i.format === "ends_with" ? `Ugyldig streng: må ende med "${i.suffix}"` : i.format === "includes" ? `Ugyldig streng: må inneholde "${i.includes}"` : i.format === "regex" ? `Ugyldig streng: må matche mønsteret ${i.pattern}` : `Ugyldig ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Ugyldig tall: må være et multiplum av ${t.divisor}`;
case "unrecognized_keys":
return `${t.keys.length > 1 ? "Ukjente nøkler" : "Ukjent nøkkel"}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Ugyldig nøkkel i ${t.origin}`;
case "invalid_union":
return "Ugyldig input";
case "invalid_element":
return `Ugyldig verdi i ${t.origin}`;
default:
return "Ugyldig input";
}
};
};
function lp() {
return {
localeError: up()
};
}
const cp = () => {
const e = {
string: { unit: "harf", verb: "olmalıdır" },
file: { unit: "bayt", verb: "olmalıdır" },
array: { unit: "unsur", verb: "olmalıdır" },
set: { unit: "unsur", verb: "olmalıdır" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "giren",
email: "epostagâh",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO hengâmı",
date: "ISO tarihi",
time: "ISO zamanı",
duration: "ISO müddeti",
ipv4: "IPv4 nişânı",
ipv6: "IPv6 nişânı",
cidrv4: "IPv4 menzili",
cidrv6: "IPv6 menzili",
base64: "base64-şifreli metin",
base64url: "base64url-şifreli metin",
json_string: "JSON metin",
e164: "E.164 sayısı",
jwt: "JWT",
template_literal: "giren"
}, o = {
nan: "NaN",
number: "numara",
array: "saf",
null: "gayb"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Fâsit giren: umulan instanceof ${t.expected}, alınan ${u}` : `Fâsit giren: umulan ${i}, alınan ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Fâsit giren: umulan ${M(t.values[0])}` : `Fâsit tercih: mûteberler ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Fazla büyük: ${t.origin ?? "value"}, ${i}${t.maximum.toString()} ${a.unit ?? "elements"} sahip olmalıydı.` : `Fazla büyük: ${t.origin ?? "value"}, ${i}${t.maximum.toString()} olmalıydı.`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Fazla küçük: ${t.origin}, ${i}${t.minimum.toString()} ${a.unit} sahip olmalıydı.` : `Fazla küçük: ${t.origin}, ${i}${t.minimum.toString()} olmalıydı.`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Fâsit metin: "${i.prefix}" ile başlamalı.` : i.format === "ends_with" ? `Fâsit metin: "${i.suffix}" ile bitmeli.` : i.format === "includes" ? `Fâsit metin: "${i.includes}" ihtivâ etmeli.` : i.format === "regex" ? `Fâsit metin: ${i.pattern} nakşına uymalı.` : `Fâsit ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Fâsit sayı: ${t.divisor} katı olmalıydı.`;
case "unrecognized_keys":
return `Tanınmayan anahtar ${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `${t.origin} için tanınmayan anahtar var.`;
case "invalid_union":
return "Giren tanınamadı.";
case "invalid_element":
return `${t.origin} için tanınmayan kıymet var.`;
default:
return "Kıymet tanınamadı.";
}
};
};
function sp() {
return {
localeError: cp()
};
}
const dp = () => {
const e = {
string: { unit: "توکي", verb: "ولري" },
file: { unit: "بایټس", verb: "ولري" },
array: { unit: "توکي", verb: "ولري" },
set: { unit: "توکي", verb: "ولري" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "ورودي",
email: "بریښنالیک",
url: "یو آر ال",
emoji: "ایموجي",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "نیټه او وخت",
date: "نېټه",
time: "وخت",
duration: "موده",
ipv4: "د IPv4 پته",
ipv6: "د IPv6 پته",
cidrv4: "د IPv4 ساحه",
cidrv6: "د IPv6 ساحه",
base64: "base64-encoded متن",
base64url: "base64url-encoded متن",
json_string: "JSON متن",
e164: "د E.164 شمېره",
jwt: "JWT",
template_literal: "ورودي"
}, o = {
nan: "NaN",
number: "عدد",
array: "ارې"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `ناسم ورودي: باید instanceof ${t.expected} وای, مګر ${u} ترلاسه شو` : `ناسم ورودي: باید ${i} وای, مګر ${u} ترلاسه شو`;
}
case "invalid_value":
return t.values.length === 1 ? `ناسم ورودي: باید ${M(t.values[0])} وای` : `ناسم انتخاب: باید یو له ${k(t.values, "|")} څخه وای`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `ډیر لوی: ${t.origin ?? "ارزښت"} باید ${i}${t.maximum.toString()} ${a.unit ?? "عنصرونه"} ولري` : `ډیر لوی: ${t.origin ?? "ارزښت"} باید ${i}${t.maximum.toString()} وي`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `ډیر کوچنی: ${t.origin} باید ${i}${t.minimum.toString()} ${a.unit} ولري` : `ډیر کوچنی: ${t.origin} باید ${i}${t.minimum.toString()} وي`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `ناسم متن: باید د "${i.prefix}" سره پیل شي` : i.format === "ends_with" ? `ناسم متن: باید د "${i.suffix}" سره پای ته ورسيږي` : i.format === "includes" ? `ناسم متن: باید "${i.includes}" ولري` : i.format === "regex" ? `ناسم متن: باید د ${i.pattern} سره مطابقت ولري` : `${r[i.format] ?? t.format} ناسم دی`;
}
case "not_multiple_of":
return `ناسم عدد: باید د ${t.divisor} مضرب وي`;
case "unrecognized_keys":
return `ناسم ${t.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `ناسم کلیډ په ${t.origin} کې`;
case "invalid_union":
return "ناسمه ورودي";
case "invalid_element":
return `ناسم عنصر په ${t.origin} کې`;
default:
return "ناسمه ورودي";
}
};
};
function fp() {
return {
localeError: dp()
};
}
const mp = () => {
const e = {
string: { unit: "znaków", verb: "mieć" },
file: { unit: "bajtów", verb: "mieć" },
array: { unit: "elementów", verb: "mieć" },
set: { unit: "elementów", verb: "mieć" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "wyrażenie",
email: "adres email",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "data i godzina w formacie ISO",
date: "data w formacie ISO",
time: "godzina w formacie ISO",
duration: "czas trwania ISO",
ipv4: "adres IPv4",
ipv6: "adres IPv6",
cidrv4: "zakres IPv4",
cidrv6: "zakres IPv6",
base64: "ciąg znaków zakodowany w formacie base64",
base64url: "ciąg znaków zakodowany w formacie base64url",
json_string: "ciąg znaków w formacie JSON",
e164: "liczba E.164",
jwt: "JWT",
template_literal: "wejście"
}, o = {
nan: "NaN",
number: "liczba",
array: "tablica"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Nieprawidłowe dane wejściowe: oczekiwano instanceof ${t.expected}, otrzymano ${u}` : `Nieprawidłowe dane wejściowe: oczekiwano ${i}, otrzymano ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Nieprawidłowe dane wejściowe: oczekiwano ${M(t.values[0])}` : `Nieprawidłowa opcja: oczekiwano jednej z wartości ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Za duża wartość: oczekiwano, że ${t.origin ?? "wartość"} będzie mieć ${i}${t.maximum.toString()} ${a.unit ?? "elementów"}` : `Zbyt duż(y/a/e): oczekiwano, że ${t.origin ?? "wartość"} będzie wynosić ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Za mała wartość: oczekiwano, że ${t.origin ?? "wartość"} będzie mieć ${i}${t.minimum.toString()} ${a.unit ?? "elementów"}` : `Zbyt mał(y/a/e): oczekiwano, że ${t.origin ?? "wartość"} będzie wynosić ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Nieprawidłowy ciąg znaków: musi zaczynać się od "${i.prefix}"` : i.format === "ends_with" ? `Nieprawidłowy ciąg znaków: musi kończyć się na "${i.suffix}"` : i.format === "includes" ? `Nieprawidłowy ciąg znaków: musi zawierać "${i.includes}"` : i.format === "regex" ? `Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${i.pattern}` : `Nieprawidłow(y/a/e) ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`;
case "unrecognized_keys":
return `Nierozpoznane klucze${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Nieprawidłowy klucz w ${t.origin}`;
case "invalid_union":
return "Nieprawidłowe dane wejściowe";
case "invalid_element":
return `Nieprawidłowa wartość w ${t.origin}`;
default:
return "Nieprawidłowe dane wejściowe";
}
};
};
function vp() {
return {
localeError: mp()
};
}
const pp = () => {
const e = {
string: { unit: "caracteres", verb: "ter" },
file: { unit: "bytes", verb: "ter" },
array: { unit: "itens", verb: "ter" },
set: { unit: "itens", verb: "ter" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "padrão",
email: "endereço de e-mail",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "data e hora ISO",
date: "data ISO",
time: "hora ISO",
duration: "duração ISO",
ipv4: "endereço IPv4",
ipv6: "endereço IPv6",
cidrv4: "faixa de IPv4",
cidrv6: "faixa de IPv6",
base64: "texto codificado em base64",
base64url: "URL codificada em base64",
json_string: "texto JSON",
e164: "número E.164",
jwt: "JWT",
template_literal: "entrada"
}, o = {
nan: "NaN",
number: "número",
null: "nulo"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Tipo inválido: esperado instanceof ${t.expected}, recebido ${u}` : `Tipo inválido: esperado ${i}, recebido ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Entrada inválida: esperado ${M(t.values[0])}` : `Opção inválida: esperada uma das ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Muito grande: esperado que ${t.origin ?? "valor"} tivesse ${i}${t.maximum.toString()} ${a.unit ?? "elementos"}` : `Muito grande: esperado que ${t.origin ?? "valor"} fosse ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Muito pequeno: esperado que ${t.origin} tivesse ${i}${t.minimum.toString()} ${a.unit}` : `Muito pequeno: esperado que ${t.origin} fosse ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Texto inválido: deve começar com "${i.prefix}"` : i.format === "ends_with" ? `Texto inválido: deve terminar com "${i.suffix}"` : i.format === "includes" ? `Texto inválido: deve incluir "${i.includes}"` : i.format === "regex" ? `Texto inválido: deve corresponder ao padrão ${i.pattern}` : `${r[i.format] ?? t.format} inválido`;
}
case "not_multiple_of":
return `Número inválido: deve ser múltiplo de ${t.divisor}`;
case "unrecognized_keys":
return `Chave${t.keys.length > 1 ? "s" : ""} desconhecida${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Chave inválida em ${t.origin}`;
case "invalid_union":
return "Entrada inválida";
case "invalid_element":
return `Valor inválido em ${t.origin}`;
default:
return "Campo inválido";
}
};
};
function gp() {
return {
localeError: pp()
};
}
function Qo(e, n, r, o) {
const t = Math.abs(e), i = t % 10, a = t % 100;
return a >= 11 && a <= 19 ? o : i === 1 ? n : i >= 2 && i <= 4 ? r : o;
}
const hp = () => {
const e = {
string: {
unit: {
one: "символ",
few: "символа",
many: "символов"
},
verb: "иметь"
},
file: {
unit: {
one: "байт",
few: "байта",
many: "байт"
},
verb: "иметь"
},
array: {
unit: {
one: "элемент",
few: "элемента",
many: "элементов"
},
verb: "иметь"
},
set: {
unit: {
one: "элемент",
few: "элемента",
many: "элементов"
},
verb: "иметь"
}
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "ввод",
email: "email адрес",
url: "URL",
emoji: "эмодзи",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO дата и время",
date: "ISO дата",
time: "ISO время",
duration: "ISO длительность",
ipv4: "IPv4 адрес",
ipv6: "IPv6 адрес",
cidrv4: "IPv4 диапазон",
cidrv6: "IPv6 диапазон",
base64: "строка в формате base64",
base64url: "строка в формате base64url",
json_string: "JSON строка",
e164: "номер E.164",
jwt: "JWT",
template_literal: "ввод"
}, o = {
nan: "NaN",
number: "число",
array: "массив"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Неверный ввод: ожидалось instanceof ${t.expected}, получено ${u}` : `Неверный ввод: ожидалось ${i}, получено ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Неверный ввод: ожидалось ${M(t.values[0])}` : `Неверный вариант: ожидалось одно из ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
if (a) {
const u = Number(t.maximum), c = Qo(u, a.unit.one, a.unit.few, a.unit.many);
return `Слишком большое значение: ожидалось, что ${t.origin ?? "значение"} будет иметь ${i}${t.maximum.toString()} ${c}`;
}
return `Слишком большое значение: ожидалось, что ${t.origin ?? "значение"} будет ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
if (a) {
const u = Number(t.minimum), c = Qo(u, a.unit.one, a.unit.few, a.unit.many);
return `Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${i}${t.minimum.toString()} ${c}`;
}
return `Слишком маленькое значение: ожидалось, что ${t.origin} будет ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Неверная строка: должна начинаться с "${i.prefix}"` : i.format === "ends_with" ? `Неверная строка: должна заканчиваться на "${i.suffix}"` : i.format === "includes" ? `Неверная строка: должна содержать "${i.includes}"` : i.format === "regex" ? `Неверная строка: должна соответствовать шаблону ${i.pattern}` : `Неверный ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Неверное число: должно быть кратным ${t.divisor}`;
case "unrecognized_keys":
return `Нераспознанн${t.keys.length > 1 ? "ые" : "ый"} ключ${t.keys.length > 1 ? "и" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Неверный ключ в ${t.origin}`;
case "invalid_union":
return "Неверные входные данные";
case "invalid_element":
return `Неверное значение в ${t.origin}`;
default:
return "Неверные входные данные";
}
};
};
function $p() {
return {
localeError: hp()
};
}
const bp = () => {
const e = {
string: { unit: "znakov", verb: "imeti" },
file: { unit: "bajtov", verb: "imeti" },
array: { unit: "elementov", verb: "imeti" },
set: { unit: "elementov", verb: "imeti" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "vnos",
email: "e-poštni naslov",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO datum in čas",
date: "ISO datum",
time: "ISO čas",
duration: "ISO trajanje",
ipv4: "IPv4 naslov",
ipv6: "IPv6 naslov",
cidrv4: "obseg IPv4",
cidrv6: "obseg IPv6",
base64: "base64 kodiran niz",
base64url: "base64url kodiran niz",
json_string: "JSON niz",
e164: "E.164 številka",
jwt: "JWT",
template_literal: "vnos"
}, o = {
nan: "NaN",
number: "število",
array: "tabela"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Neveljaven vnos: pričakovano instanceof ${t.expected}, prejeto ${u}` : `Neveljaven vnos: pričakovano ${i}, prejeto ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Neveljaven vnos: pričakovano ${M(t.values[0])}` : `Neveljavna možnost: pričakovano eno izmed ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Preveliko: pričakovano, da bo ${t.origin ?? "vrednost"} imelo ${i}${t.maximum.toString()} ${a.unit ?? "elementov"}` : `Preveliko: pričakovano, da bo ${t.origin ?? "vrednost"} ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Premajhno: pričakovano, da bo ${t.origin} imelo ${i}${t.minimum.toString()} ${a.unit}` : `Premajhno: pričakovano, da bo ${t.origin} ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Neveljaven niz: mora se začeti z "${i.prefix}"` : i.format === "ends_with" ? `Neveljaven niz: mora se končati z "${i.suffix}"` : i.format === "includes" ? `Neveljaven niz: mora vsebovati "${i.includes}"` : i.format === "regex" ? `Neveljaven niz: mora ustrezati vzorcu ${i.pattern}` : `Neveljaven ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Neveljavno število: mora biti večkratnik ${t.divisor}`;
case "unrecognized_keys":
return `Neprepoznan${t.keys.length > 1 ? "i ključi" : " ključ"}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Neveljaven ključ v ${t.origin}`;
case "invalid_union":
return "Neveljaven vnos";
case "invalid_element":
return `Neveljavna vrednost v ${t.origin}`;
default:
return "Neveljaven vnos";
}
};
};
function _p() {
return {
localeError: bp()
};
}
const yp = () => {
const e = {
string: { unit: "tecken", verb: "att ha" },
file: { unit: "bytes", verb: "att ha" },
array: { unit: "objekt", verb: "att innehålla" },
set: { unit: "objekt", verb: "att innehålla" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "reguljärt uttryck",
email: "e-postadress",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO-datum och tid",
date: "ISO-datum",
time: "ISO-tid",
duration: "ISO-varaktighet",
ipv4: "IPv4-intervall",
ipv6: "IPv6-intervall",
cidrv4: "IPv4-spektrum",
cidrv6: "IPv6-spektrum",
base64: "base64-kodad sträng",
base64url: "base64url-kodad sträng",
json_string: "JSON-sträng",
e164: "E.164-nummer",
jwt: "JWT",
template_literal: "mall-literal"
}, o = {
nan: "NaN",
number: "antal",
array: "lista"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Ogiltig inmatning: förväntat instanceof ${t.expected}, fick ${u}` : `Ogiltig inmatning: förväntat ${i}, fick ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Ogiltig inmatning: förväntat ${M(t.values[0])}` : `Ogiltigt val: förväntade en av ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `För stor(t): förväntade ${t.origin ?? "värdet"} att ha ${i}${t.maximum.toString()} ${a.unit ?? "element"}` : `För stor(t): förväntat ${t.origin ?? "värdet"} att ha ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `För lite(t): förväntade ${t.origin ?? "värdet"} att ha ${i}${t.minimum.toString()} ${a.unit}` : `För lite(t): förväntade ${t.origin ?? "värdet"} att ha ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Ogiltig sträng: måste börja med "${i.prefix}"` : i.format === "ends_with" ? `Ogiltig sträng: måste sluta med "${i.suffix}"` : i.format === "includes" ? `Ogiltig sträng: måste innehålla "${i.includes}"` : i.format === "regex" ? `Ogiltig sträng: måste matcha mönstret "${i.pattern}"` : `Ogiltig(t) ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Ogiltigt tal: måste vara en multipel av ${t.divisor}`;
case "unrecognized_keys":
return `${t.keys.length > 1 ? "Okända nycklar" : "Okänd nyckel"}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Ogiltig nyckel i ${t.origin ?? "värdet"}`;
case "invalid_union":
return "Ogiltig input";
case "invalid_element":
return `Ogiltigt värde i ${t.origin ?? "värdet"}`;
default:
return "Ogiltig input";
}
};
};
function kp() {
return {
localeError: yp()
};
}
const Sp = () => {
const e = {
string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" },
array: { unit: "உறுப்புகள்", verb: "கொண்டிருக்க வேண்டும்" },
set: { unit: "உறுப்புகள்", verb: "கொண்டிருக்க வேண்டும்" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "உள்ளீடு",
email: "மின்னஞ்சல் முகவரி",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO தேதி நேரம்",
date: "ISO தேதி",
time: "ISO நேரம்",
duration: "ISO கால அளவு",
ipv4: "IPv4 முகவரி",
ipv6: "IPv6 முகவரி",
cidrv4: "IPv4 வரம்பு",
cidrv6: "IPv6 வரம்பு",
base64: "base64-encoded சரம்",
base64url: "base64url-encoded சரம்",
json_string: "JSON சரம்",
e164: "E.164 எண்",
jwt: "JWT",
template_literal: "input"
}, o = {
nan: "NaN",
number: "எண்",
array: "அணி",
null: "வெறுமை"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${t.expected}, பெறப்பட்டது ${u}` : `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${i}, பெறப்பட்டது ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${M(t.values[0])}` : `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${k(t.values, "|")} இல் ஒன்று`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin ?? "மதிப்பு"} ${i}${t.maximum.toString()} ${a.unit ?? "உறுப்புகள்"} ஆக இருக்க வேண்டும்` : `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin ?? "மதிப்பு"} ${i}${t.maximum.toString()} ஆக இருக்க வேண்டும்`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்` : `மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${i}${t.minimum.toString()} ஆக இருக்க வேண்டும்`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `தவறான சரம்: "${i.prefix}" இல் தொடங்க வேண்டும்` : i.format === "ends_with" ? `தவறான சரம்: "${i.suffix}" இல் முடிவடைய வேண்டும்` : i.format === "includes" ? `தவறான சரம்: "${i.includes}" ஐ உள்ளடக்க வேண்டும்` : i.format === "regex" ? `தவறான சரம்: ${i.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்` : `தவறான ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`;
case "unrecognized_keys":
return `அடையாளம் தெரியாத விசை${t.keys.length > 1 ? "கள்" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `${t.origin} இல் தவறான விசை`;
case "invalid_union":
return "தவறான உள்ளீடு";
case "invalid_element":
return `${t.origin} இல் தவறான மதிப்பு`;
default:
return "தவறான உள்ளீடு";
}
};
};
function Ip() {
return {
localeError: Sp()
};
}
const wp = () => {
const e = {
string: { unit: "ตัวอักษร", verb: "ควรมี" },
file: { unit: "ไบต์", verb: "ควรมี" },
array: { unit: "รายการ", verb: "ควรมี" },
set: { unit: "รายการ", verb: "ควรมี" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "ข้อมูลที่ป้อน",
email: "ที่อยู่อีเมล",
url: "URL",
emoji: "อิโมจิ",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "วันที่เวลาแบบ ISO",
date: "วันที่แบบ ISO",
time: "เวลาแบบ ISO",
duration: "ช่วงเวลาแบบ ISO",
ipv4: "ที่อยู่ IPv4",
ipv6: "ที่อยู่ IPv6",
cidrv4: "ช่วง IP แบบ IPv4",
cidrv6: "ช่วง IP แบบ IPv6",
base64: "ข้อความแบบ Base64",
base64url: "ข้อความแบบ Base64 สำหรับ URL",
json_string: "ข้อความแบบ JSON",
e164: "เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",
jwt: "โทเคน JWT",
template_literal: "ข้อมูลที่ป้อน"
}, o = {
nan: "NaN",
number: "ตัวเลข",
array: "อาร์เรย์ (Array)",
null: "ไม่มีค่า (null)"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${t.expected} แต่ได้รับ ${u}` : `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${i} แต่ได้รับ ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `ค่าไม่ถูกต้อง: ควรเป็น ${M(t.values[0])}` : `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "ไม่เกิน" : "น้อยกว่า", a = n(t.origin);
return a ? `เกินกำหนด: ${t.origin ?? "ค่า"} ควรมี${i} ${t.maximum.toString()} ${a.unit ?? "รายการ"}` : `เกินกำหนด: ${t.origin ?? "ค่า"} ควรมี${i} ${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? "อย่างน้อย" : "มากกว่า", a = n(t.origin);
return a ? `น้อยกว่ากำหนด: ${t.origin} ควรมี${i} ${t.minimum.toString()} ${a.unit}` : `น้อยกว่ากำหนด: ${t.origin} ควรมี${i} ${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${i.prefix}"` : i.format === "ends_with" ? `รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${i.suffix}"` : i.format === "includes" ? `รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${i.includes}" อยู่ในข้อความ` : i.format === "regex" ? `รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${i.pattern}` : `รูปแบบไม่ถูกต้อง: ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`;
case "unrecognized_keys":
return `พบคีย์ที่ไม่รู้จัก: ${k(t.keys, ", ")}`;
case "invalid_key":
return `คีย์ไม่ถูกต้องใน ${t.origin}`;
case "invalid_union":
return "ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";
case "invalid_element":
return `ข้อมูลไม่ถูกต้องใน ${t.origin}`;
default:
return "ข้อมูลไม่ถูกต้อง";
}
};
};
function zp() {
return {
localeError: wp()
};
}
const xp = () => {
const e = {
string: { unit: "karakter", verb: "olmalı" },
file: { unit: "bayt", verb: "olmalı" },
array: { unit: "öğe", verb: "olmalı" },
set: { unit: "öğe", verb: "olmalı" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "girdi",
email: "e-posta adresi",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO tarih ve saat",
date: "ISO tarih",
time: "ISO saat",
duration: "ISO süre",
ipv4: "IPv4 adresi",
ipv6: "IPv6 adresi",
cidrv4: "IPv4 aralığı",
cidrv6: "IPv6 aralığı",
base64: "base64 ile şifrelenmiş metin",
base64url: "base64url ile şifrelenmiş metin",
json_string: "JSON dizesi",
e164: "E.164 sayısı",
jwt: "JWT",
template_literal: "Şablon dizesi"
}, o = {
nan: "NaN"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Geçersiz değer: beklenen instanceof ${t.expected}, alınan ${u}` : `Geçersiz değer: beklenen ${i}, alınan ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Geçersiz değer: beklenen ${M(t.values[0])}` : `Geçersiz seçenek: aşağıdakilerden biri olmalı: ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Çok büyük: beklenen ${t.origin ?? "değer"} ${i}${t.maximum.toString()} ${a.unit ?? "öğe"}` : `Çok büyük: beklenen ${t.origin ?? "değer"} ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Çok küçük: beklenen ${t.origin} ${i}${t.minimum.toString()} ${a.unit}` : `Çok küçük: beklenen ${t.origin} ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Geçersiz metin: "${i.prefix}" ile başlamalı` : i.format === "ends_with" ? `Geçersiz metin: "${i.suffix}" ile bitmeli` : i.format === "includes" ? `Geçersiz metin: "${i.includes}" içermeli` : i.format === "regex" ? `Geçersiz metin: ${i.pattern} desenine uymalı` : `Geçersiz ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Geçersiz sayı: ${t.divisor} ile tam bölünebilmeli`;
case "unrecognized_keys":
return `Tanınmayan anahtar${t.keys.length > 1 ? "lar" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `${t.origin} içinde geçersiz anahtar`;
case "invalid_union":
return "Geçersiz değer";
case "invalid_element":
return `${t.origin} içinde geçersiz değer`;
default:
return "Geçersiz değer";
}
};
};
function Dp() {
return {
localeError: xp()
};
}
const Op = () => {
const e = {
string: { unit: "символів", verb: "матиме" },
file: { unit: "байтів", verb: "матиме" },
array: { unit: "елементів", verb: "матиме" },
set: { unit: "елементів", verb: "матиме" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "вхідні дані",
email: "адреса електронної пошти",
url: "URL",
emoji: "емодзі",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "дата та час ISO",
date: "дата ISO",
time: "час ISO",
duration: "тривалість ISO",
ipv4: "адреса IPv4",
ipv6: "адреса IPv6",
cidrv4: "діапазон IPv4",
cidrv6: "діапазон IPv6",
base64: "рядок у кодуванні base64",
base64url: "рядок у кодуванні base64url",
json_string: "рядок JSON",
e164: "номер E.164",
jwt: "JWT",
template_literal: "вхідні дані"
}, o = {
nan: "NaN",
number: "число",
array: "масив"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Неправильні вхідні дані: очікується instanceof ${t.expected}, отримано ${u}` : `Неправильні вхідні дані: очікується ${i}, отримано ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Неправильні вхідні дані: очікується ${M(t.values[0])}` : `Неправильна опція: очікується одне з ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Занадто велике: очікується, що ${t.origin ?? "значення"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "елементів"}` : `Занадто велике: очікується, що ${t.origin ?? "значення"} буде ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Занадто мале: очікується, що ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Занадто мале: очікується, що ${t.origin} буде ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Неправильний рядок: повинен починатися з "${i.prefix}"` : i.format === "ends_with" ? `Неправильний рядок: повинен закінчуватися на "${i.suffix}"` : i.format === "includes" ? `Неправильний рядок: повинен містити "${i.includes}"` : i.format === "regex" ? `Неправильний рядок: повинен відповідати шаблону ${i.pattern}` : `Неправильний ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Неправильне число: повинно бути кратним ${t.divisor}`;
case "unrecognized_keys":
return `Нерозпізнаний ключ${t.keys.length > 1 ? "і" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Неправильний ключ у ${t.origin}`;
case "invalid_union":
return "Неправильні вхідні дані";
case "invalid_element":
return `Неправильне значення у ${t.origin}`;
default:
return "Неправильні вхідні дані";
}
};
};
function pc() {
return {
localeError: Op()
};
}
function jp() {
return pc();
}
const Up = () => {
const e = {
string: { unit: "حروف", verb: "ہونا" },
file: { unit: "بائٹس", verb: "ہونا" },
array: { unit: "آئٹمز", verb: "ہونا" },
set: { unit: "آئٹمز", verb: "ہونا" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "ان پٹ",
email: "ای میل ایڈریس",
url: "یو آر ایل",
emoji: "ایموجی",
uuid: "یو یو آئی ڈی",
uuidv4: "یو یو آئی ڈی وی 4",
uuidv6: "یو یو آئی ڈی وی 6",
nanoid: "نینو آئی ڈی",
guid: "جی یو آئی ڈی",
cuid: "سی یو آئی ڈی",
cuid2: "سی یو آئی ڈی 2",
ulid: "یو ایل آئی ڈی",
xid: "ایکس آئی ڈی",
ksuid: "کے ایس یو آئی ڈی",
datetime: "آئی ایس او ڈیٹ ٹائم",
date: "آئی ایس او تاریخ",
time: "آئی ایس او وقت",
duration: "آئی ایس او مدت",
ipv4: "آئی پی وی 4 ایڈریس",
ipv6: "آئی پی وی 6 ایڈریس",
cidrv4: "آئی پی وی 4 رینج",
cidrv6: "آئی پی وی 6 رینج",
base64: "بیس 64 ان کوڈڈ سٹرنگ",
base64url: "بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",
json_string: "جے ایس او این سٹرنگ",
e164: "ای 164 نمبر",
jwt: "جے ڈبلیو ٹی",
template_literal: "ان پٹ"
}, o = {
nan: "NaN",
number: "نمبر",
array: "آرے",
null: "نل"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `غلط ان پٹ: instanceof ${t.expected} متوقع تھا، ${u} موصول ہوا` : `غلط ان پٹ: ${i} متوقع تھا، ${u} موصول ہوا`;
}
case "invalid_value":
return t.values.length === 1 ? `غلط ان پٹ: ${M(t.values[0])} متوقع تھا` : `غلط آپشن: ${k(t.values, "|")} میں سے ایک متوقع تھا`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `بہت بڑا: ${t.origin ?? "ویلیو"} کے ${i}${t.maximum.toString()} ${a.unit ?? "عناصر"} ہونے متوقع تھے` : `بہت بڑا: ${t.origin ?? "ویلیو"} کا ${i}${t.maximum.toString()} ہونا متوقع تھا`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `بہت چھوٹا: ${t.origin} کے ${i}${t.minimum.toString()} ${a.unit} ہونے متوقع تھے` : `بہت چھوٹا: ${t.origin} کا ${i}${t.minimum.toString()} ہونا متوقع تھا`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `غلط سٹرنگ: "${i.prefix}" سے شروع ہونا چاہیے` : i.format === "ends_with" ? `غلط سٹرنگ: "${i.suffix}" پر ختم ہونا چاہیے` : i.format === "includes" ? `غلط سٹرنگ: "${i.includes}" شامل ہونا چاہیے` : i.format === "regex" ? `غلط سٹرنگ: پیٹرن ${i.pattern} سے میچ ہونا چاہیے` : `غلط ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`;
case "unrecognized_keys":
return `غیر تسلیم شدہ کی${t.keys.length > 1 ? "ز" : ""}: ${k(t.keys, "، ")}`;
case "invalid_key":
return `${t.origin} میں غلط کی`;
case "invalid_union":
return "غلط ان پٹ";
case "invalid_element":
return `${t.origin} میں غلط ویلیو`;
default:
return "غلط ان پٹ";
}
};
};
function Tp() {
return {
localeError: Up()
};
}
const Ep = () => {
const e = {
string: { unit: "belgi", verb: "bolishi kerak" },
file: { unit: "bayt", verb: "bolishi kerak" },
array: { unit: "element", verb: "bolishi kerak" },
set: { unit: "element", verb: "bolishi kerak" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "kirish",
email: "elektron pochta manzili",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO sana va vaqti",
date: "ISO sana",
time: "ISO vaqt",
duration: "ISO davomiylik",
ipv4: "IPv4 manzil",
ipv6: "IPv6 manzil",
mac: "MAC manzil",
cidrv4: "IPv4 diapazon",
cidrv6: "IPv6 diapazon",
base64: "base64 kodlangan satr",
base64url: "base64url kodlangan satr",
json_string: "JSON satr",
e164: "E.164 raqam",
jwt: "JWT",
template_literal: "kirish"
}, o = {
nan: "NaN",
number: "raqam",
array: "massiv"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Notogri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${u}` : `Notogri kirish: kutilgan ${i}, qabul qilingan ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Notogri kirish: kutilgan ${M(t.values[0])}` : `Notogri variant: quyidagilardan biri kutilgan ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Juda katta: kutilgan ${t.origin ?? "qiymat"} ${i}${t.maximum.toString()} ${a.unit} ${a.verb}` : `Juda katta: kutilgan ${t.origin ?? "qiymat"} ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ${a.verb}` : `Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Notogri satr: "${i.prefix}" bilan boshlanishi kerak` : i.format === "ends_with" ? `Notogri satr: "${i.suffix}" bilan tugashi kerak` : i.format === "includes" ? `Notogri satr: "${i.includes}" ni oz ichiga olishi kerak` : i.format === "regex" ? `Notogri satr: ${i.pattern} shabloniga mos kelishi kerak` : `Notogri ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Notogri raqam: ${t.divisor} ning karralisi bolishi kerak`;
case "unrecognized_keys":
return `Nomalum kalit${t.keys.length > 1 ? "lar" : ""}: ${k(t.keys, ", ")}`;
case "invalid_key":
return `${t.origin} dagi kalit notogri`;
case "invalid_union":
return "Notogri kirish";
case "invalid_element":
return `${t.origin} da notogri qiymat`;
default:
return "Notogri kirish";
}
};
};
function Pp() {
return {
localeError: Ep()
};
}
const Np = () => {
const e = {
string: { unit: "ký tự", verb: "có" },
file: { unit: "byte", verb: "có" },
array: { unit: "phần tử", verb: "có" },
set: { unit: "phần tử", verb: "có" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "đầu vào",
email: "địa chỉ email",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ngày giờ ISO",
date: "ngày ISO",
time: "giờ ISO",
duration: "khoảng thời gian ISO",
ipv4: "địa chỉ IPv4",
ipv6: "địa chỉ IPv6",
cidrv4: "dải IPv4",
cidrv6: "dải IPv6",
base64: "chuỗi mã hóa base64",
base64url: "chuỗi mã hóa base64url",
json_string: "chuỗi JSON",
e164: "số E.164",
jwt: "JWT",
template_literal: "đầu vào"
}, o = {
nan: "NaN",
number: "số",
array: "mảng"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Đầu vào không hợp lệ: mong đợi instanceof ${t.expected}, nhận được ${u}` : `Đầu vào không hợp lệ: mong đợi ${i}, nhận được ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Đầu vào không hợp lệ: mong đợi ${M(t.values[0])}` : `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Quá lớn: mong đợi ${t.origin ?? "giá trị"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "phần tử"}` : `Quá lớn: mong đợi ${t.origin ?? "giá trị"} ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Quá nhỏ: mong đợi ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Quá nhỏ: mong đợi ${t.origin} ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Chuỗi không hợp lệ: phải bắt đầu bằng "${i.prefix}"` : i.format === "ends_with" ? `Chuỗi không hợp lệ: phải kết thúc bằng "${i.suffix}"` : i.format === "includes" ? `Chuỗi không hợp lệ: phải bao gồm "${i.includes}"` : i.format === "regex" ? `Chuỗi không hợp lệ: phải khớp với mẫu ${i.pattern}` : `${r[i.format] ?? t.format} không hợp lệ`;
}
case "not_multiple_of":
return `Số không hợp lệ: phải là bội số của ${t.divisor}`;
case "unrecognized_keys":
return `Khóa không được nhận dạng: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Khóa không hợp lệ trong ${t.origin}`;
case "invalid_union":
return "Đầu vào không hợp lệ";
case "invalid_element":
return `Giá trị không hợp lệ trong ${t.origin}`;
default:
return "Đầu vào không hợp lệ";
}
};
};
function Ap() {
return {
localeError: Np()
};
}
const Zp = () => {
const e = {
string: { unit: "字符", verb: "包含" },
file: { unit: "字节", verb: "包含" },
array: { unit: "项", verb: "包含" },
set: { unit: "项", verb: "包含" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "输入",
email: "电子邮件",
url: "URL",
emoji: "表情符号",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO日期时间",
date: "ISO日期",
time: "ISO时间",
duration: "ISO时长",
ipv4: "IPv4地址",
ipv6: "IPv6地址",
cidrv4: "IPv4网段",
cidrv6: "IPv6网段",
base64: "base64编码字符串",
base64url: "base64url编码字符串",
json_string: "JSON字符串",
e164: "E.164号码",
jwt: "JWT",
template_literal: "输入"
}, o = {
nan: "NaN",
number: "数字",
array: "数组",
null: "空值(null)"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `无效输入:期望 instanceof ${t.expected},实际接收 ${u}` : `无效输入:期望 ${i},实际接收 ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `无效输入:期望 ${M(t.values[0])}` : `无效选项:期望以下之一 ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `数值过大:期望 ${t.origin ?? "值"} ${i}${t.maximum.toString()} ${a.unit ?? "个元素"}` : `数值过大:期望 ${t.origin ?? "值"} ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `数值过小:期望 ${t.origin} ${i}${t.minimum.toString()} ${a.unit}` : `数值过小:期望 ${t.origin} ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `无效字符串:必须以 "${i.prefix}" 开头` : i.format === "ends_with" ? `无效字符串:必须以 "${i.suffix}" 结尾` : i.format === "includes" ? `无效字符串:必须包含 "${i.includes}"` : i.format === "regex" ? `无效字符串:必须满足正则表达式 ${i.pattern}` : `无效${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `无效数字:必须是 ${t.divisor} 的倍数`;
case "unrecognized_keys":
return `出现未知的键(key): ${k(t.keys, ", ")}`;
case "invalid_key":
return `${t.origin} 中的键(key)无效`;
case "invalid_union":
return "无效输入";
case "invalid_element":
return `${t.origin} 中包含无效值(value)`;
default:
return "无效输入";
}
};
};
function Cp() {
return {
localeError: Zp()
};
}
const Mp = () => {
const e = {
string: { unit: "字元", verb: "擁有" },
file: { unit: "位元組", verb: "擁有" },
array: { unit: "項目", verb: "擁有" },
set: { unit: "項目", verb: "擁有" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "輸入",
email: "郵件地址",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO 日期時間",
date: "ISO 日期",
time: "ISO 時間",
duration: "ISO 期間",
ipv4: "IPv4 位址",
ipv6: "IPv6 位址",
cidrv4: "IPv4 範圍",
cidrv6: "IPv6 範圍",
base64: "base64 編碼字串",
base64url: "base64url 編碼字串",
json_string: "JSON 字串",
e164: "E.164 數值",
jwt: "JWT",
template_literal: "輸入"
}, o = {
nan: "NaN"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `無效的輸入值:預期為 instanceof ${t.expected},但收到 ${u}` : `無效的輸入值:預期為 ${i},但收到 ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `無效的輸入值:預期為 ${M(t.values[0])}` : `無效的選項:預期為以下其中之一 ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `數值過大:預期 ${t.origin ?? "值"} 應為 ${i}${t.maximum.toString()} ${a.unit ?? "個元素"}` : `數值過大:預期 ${t.origin ?? "值"} 應為 ${i}${t.maximum.toString()}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `數值過小:預期 ${t.origin} 應為 ${i}${t.minimum.toString()} ${a.unit}` : `數值過小:預期 ${t.origin} 應為 ${i}${t.minimum.toString()}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `無效的字串:必須以 "${i.prefix}" 開頭` : i.format === "ends_with" ? `無效的字串:必須以 "${i.suffix}" 結尾` : i.format === "includes" ? `無效的字串:必須包含 "${i.includes}"` : i.format === "regex" ? `無效的字串:必須符合格式 ${i.pattern}` : `無效的 ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `無效的數字:必須為 ${t.divisor} 的倍數`;
case "unrecognized_keys":
return `無法識別的鍵值${t.keys.length > 1 ? "們" : ""}${k(t.keys, "、")}`;
case "invalid_key":
return `${t.origin} 中有無效的鍵值`;
case "invalid_union":
return "無效的輸入值";
case "invalid_element":
return `${t.origin} 中有無效的值`;
default:
return "無效的輸入值";
}
};
};
function Fp() {
return {
localeError: Mp()
};
}
const Lp = () => {
const e = {
string: { unit: "àmi", verb: "ní" },
file: { unit: "bytes", verb: "ní" },
array: { unit: "nkan", verb: "ní" },
set: { unit: "nkan", verb: "ní" }
};
function n(t) {
return e[t] ?? null;
}
const r = {
regex: "ẹ̀rọ ìbáwọlé",
email: "àdírẹ́sì ìmẹ́lì",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "àkókò ISO",
date: "ọjọ́ ISO",
time: "àkókò ISO",
duration: "àkókò tó pé ISO",
ipv4: "àdírẹ́sì IPv4",
ipv6: "àdírẹ́sì IPv6",
cidrv4: "àgbègbè IPv4",
cidrv6: "àgbègbè IPv6",
base64: "ọ̀rọ̀ tí a kọ́ ní base64",
base64url: "ọ̀rọ̀ base64url",
json_string: "ọ̀rọ̀ JSON",
e164: "nọ́mbà E.164",
jwt: "JWT",
template_literal: "ẹ̀rọ ìbáwọlé"
}, o = {
nan: "NaN",
number: "nọ́mbà",
array: "akopọ"
};
return (t) => {
switch (t.code) {
case "invalid_type": {
const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a;
return /^[A-Z]/.test(t.expected) ? `Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${t.expected}, àmọ̀ a rí ${u}` : `Ìbáwọlé aṣìṣe: a ní láti fi ${i}, àmọ̀ a rí ${u}`;
}
case "invalid_value":
return t.values.length === 1 ? `Ìbáwọlé aṣìṣe: a ní láti fi ${M(t.values[0])}` : `Àṣàyàn aṣìṣe: yan ọ̀kan lára ${k(t.values, "|")}`;
case "too_big": {
const i = t.inclusive ? "<=" : "<", a = n(t.origin);
return a ? `Tó pọ̀ jù: a ní láti jẹ́ pé ${t.origin ?? "iye"} ${a.verb} ${i}${t.maximum} ${a.unit}` : `Tó pọ̀ jù: a ní láti jẹ́ ${i}${t.maximum}`;
}
case "too_small": {
const i = t.inclusive ? ">=" : ">", a = n(t.origin);
return a ? `Kéré ju: a ní láti jẹ́ pé ${t.origin} ${a.verb} ${i}${t.minimum} ${a.unit}` : `Kéré ju: a ní láti jẹ́ ${i}${t.minimum}`;
}
case "invalid_format": {
const i = t;
return i.format === "starts_with" ? `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${i.prefix}"` : i.format === "ends_with" ? `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${i.suffix}"` : i.format === "includes" ? `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${i.includes}"` : i.format === "regex" ? `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${i.pattern}` : `Aṣìṣe: ${r[i.format] ?? t.format}`;
}
case "not_multiple_of":
return `Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${t.divisor}`;
case "unrecognized_keys":
return `Bọtìnì àìmọ̀: ${k(t.keys, ", ")}`;
case "invalid_key":
return `Bọtìnì aṣìṣe nínú ${t.origin}`;
case "invalid_union":
return "Ìbáwọlé aṣìṣe";
case "invalid_element":
return `Iye aṣìṣe nínú ${t.origin}`;
default:
return "Ìbáwọlé aṣìṣe";
}
};
};
function Rp() {
return {
localeError: Lp()
};
}
const gc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
ar: ov,
az: uv,
be: cv,
bg: dv,
ca: mv,
cs: pv,
da: hv,
de: bv,
en: mc,
eo: kv,
es: Iv,
fa: zv,
fi: Dv,
fr: jv,
frCA: Tv,
he: Pv,
hu: Av,
hy: Cv,
id: Fv,
is: Rv,
it: Jv,
ja: qv,
ka: Kv,
kh: Gv,
km: vc,
ko: Xv,
lt: ep,
mk: np,
ms: ip,
nl: ap,
no: lp,
ota: sp,
pl: vp,
ps: fp,
pt: gp,
ru: $p,
sl: _p,
sv: kp,
ta: Ip,
th: zp,
tr: Dp,
ua: jp,
uk: pc,
ur: Tp,
uz: Pp,
vi: Ap,
yo: Rp,
zhCN: Cp,
zhTW: Fp
}, Symbol.toStringTag, { value: "Module" }));
var ea;
const hc = Symbol("ZodOutput"), $c = Symbol("ZodInput");
class bc {
constructor() {
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
}
add(n, ...r) {
const o = r[0];
return this._map.set(n, o), o && typeof o == "object" && "id" in o && this._idmap.set(o.id, n), this;
}
clear() {
return this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(), this;
}
remove(n) {
const r = this._map.get(n);
return r && typeof r == "object" && "id" in r && this._idmap.delete(r.id), this._map.delete(n), this;
}
get(n) {
const r = n._zod.parent;
if (r) {
const o = { ...this.get(r) ?? {} };
delete o.id;
const t = { ...o, ...this._map.get(n) };
return Object.keys(t).length ? t : void 0;
}
return this._map.get(n);
}
has(n) {
return this._map.has(n);
}
}
function li() {
return new bc();
}
(ea = globalThis).__zod_globalRegistry ?? (ea.__zod_globalRegistry = li());
const Ae = globalThis.__zod_globalRegistry;
// @__NO_SIDE_EFFECTS__
function _c(e, n) {
return new e({
type: "string",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function yc(e, n) {
return new e({
type: "string",
coerce: !0,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function ci(e, n) {
return new e({
type: "string",
format: "email",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Un(e, n) {
return new e({
type: "string",
format: "guid",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function si(e, n) {
return new e({
type: "string",
format: "uuid",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function di(e, n) {
return new e({
type: "string",
format: "uuid",
check: "string_format",
abort: !1,
version: "v4",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function fi(e, n) {
return new e({
type: "string",
format: "uuid",
check: "string_format",
abort: !1,
version: "v6",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function mi(e, n) {
return new e({
type: "string",
format: "uuid",
check: "string_format",
abort: !1,
version: "v7",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Ln(e, n) {
return new e({
type: "string",
format: "url",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function vi(e, n) {
return new e({
type: "string",
format: "emoji",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function pi(e, n) {
return new e({
type: "string",
format: "nanoid",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function gi(e, n) {
return new e({
type: "string",
format: "cuid",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function hi(e, n) {
return new e({
type: "string",
format: "cuid2",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function $i(e, n) {
return new e({
type: "string",
format: "ulid",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function bi(e, n) {
return new e({
type: "string",
format: "xid",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function _i(e, n) {
return new e({
type: "string",
format: "ksuid",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function yi(e, n) {
return new e({
type: "string",
format: "ipv4",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function ki(e, n) {
return new e({
type: "string",
format: "ipv6",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function kc(e, n) {
return new e({
type: "string",
format: "mac",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Si(e, n) {
return new e({
type: "string",
format: "cidrv4",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Ii(e, n) {
return new e({
type: "string",
format: "cidrv6",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function wi(e, n) {
return new e({
type: "string",
format: "base64",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function zi(e, n) {
return new e({
type: "string",
format: "base64url",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function xi(e, n) {
return new e({
type: "string",
format: "e164",
check: "string_format",
abort: !1,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Di(e, n) {
return new e({
type: "string",
format: "jwt",
check: "string_format",
abort: !1,
...$(n)
});
}
const Sc = {
Any: null,
Minute: -1,
Second: 0,
Millisecond: 3,
Microsecond: 6
};
// @__NO_SIDE_EFFECTS__
function Ic(e, n) {
return new e({
type: "string",
format: "datetime",
check: "string_format",
offset: !1,
local: !1,
precision: null,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function wc(e, n) {
return new e({
type: "string",
format: "date",
check: "string_format",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function zc(e, n) {
return new e({
type: "string",
format: "time",
check: "string_format",
precision: null,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function xc(e, n) {
return new e({
type: "string",
format: "duration",
check: "string_format",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Dc(e, n) {
return new e({
type: "number",
checks: [],
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Oc(e, n) {
return new e({
type: "number",
coerce: !0,
checks: [],
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function jc(e, n) {
return new e({
type: "number",
check: "number_format",
abort: !1,
format: "safeint",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Uc(e, n) {
return new e({
type: "number",
check: "number_format",
abort: !1,
format: "float32",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Tc(e, n) {
return new e({
type: "number",
check: "number_format",
abort: !1,
format: "float64",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Ec(e, n) {
return new e({
type: "number",
check: "number_format",
abort: !1,
format: "int32",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Pc(e, n) {
return new e({
type: "number",
check: "number_format",
abort: !1,
format: "uint32",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Nc(e, n) {
return new e({
type: "boolean",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Ac(e, n) {
return new e({
type: "boolean",
coerce: !0,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Zc(e, n) {
return new e({
type: "bigint",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Cc(e, n) {
return new e({
type: "bigint",
coerce: !0,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Mc(e, n) {
return new e({
type: "bigint",
check: "bigint_format",
abort: !1,
format: "int64",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Fc(e, n) {
return new e({
type: "bigint",
check: "bigint_format",
abort: !1,
format: "uint64",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Lc(e, n) {
return new e({
type: "symbol",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Rc(e, n) {
return new e({
type: "undefined",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Bc(e, n) {
return new e({
type: "null",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Jc(e) {
return new e({
type: "any"
});
}
// @__NO_SIDE_EFFECTS__
function Vc(e) {
return new e({
type: "unknown"
});
}
// @__NO_SIDE_EFFECTS__
function qc(e, n) {
return new e({
type: "never",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Yc(e, n) {
return new e({
type: "void",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Kc(e, n) {
return new e({
type: "date",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Wc(e, n) {
return new e({
type: "date",
coerce: !0,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function Gc(e, n) {
return new e({
type: "nan",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function nt(e, n) {
return new Qr({
check: "less_than",
...$(n),
value: e,
inclusive: !1
});
}
// @__NO_SIDE_EFFECTS__
function Ze(e, n) {
return new Qr({
check: "less_than",
...$(n),
value: e,
inclusive: !0
});
}
// @__NO_SIDE_EFFECTS__
function rt(e, n) {
return new ei({
check: "greater_than",
...$(n),
value: e,
inclusive: !1
});
}
// @__NO_SIDE_EFFECTS__
function Ue(e, n) {
return new ei({
check: "greater_than",
...$(n),
value: e,
inclusive: !0
});
}
// @__NO_SIDE_EFFECTS__
function Oi(e) {
return /* @__PURE__ */ rt(0, e);
}
// @__NO_SIDE_EFFECTS__
function ji(e) {
return /* @__PURE__ */ nt(0, e);
}
// @__NO_SIDE_EFFECTS__
function Ui(e) {
return /* @__PURE__ */ Ze(0, e);
}
// @__NO_SIDE_EFFECTS__
function Ti(e) {
return /* @__PURE__ */ Ue(0, e);
}
// @__NO_SIDE_EFFECTS__
function kt(e, n) {
return new Pu({
check: "multiple_of",
...$(n),
value: e
});
}
// @__NO_SIDE_EFFECTS__
function xt(e, n) {
return new Zu({
check: "max_size",
...$(n),
maximum: e
});
}
// @__NO_SIDE_EFFECTS__
function it(e, n) {
return new Cu({
check: "min_size",
...$(n),
minimum: e
});
}
// @__NO_SIDE_EFFECTS__
function Wt(e, n) {
return new Mu({
check: "size_equals",
...$(n),
size: e
});
}
// @__NO_SIDE_EFFECTS__
function Gt(e, n) {
return new Fu({
check: "max_length",
...$(n),
maximum: e
});
}
// @__NO_SIDE_EFFECTS__
function mt(e, n) {
return new Lu({
check: "min_length",
...$(n),
minimum: e
});
}
// @__NO_SIDE_EFFECTS__
function Ht(e, n) {
return new Ru({
check: "length_equals",
...$(n),
length: e
});
}
// @__NO_SIDE_EFFECTS__
function Rn(e, n) {
return new Bu({
check: "string_format",
format: "regex",
...$(n),
pattern: e
});
}
// @__NO_SIDE_EFFECTS__
function Bn(e) {
return new Ju({
check: "string_format",
format: "lowercase",
...$(e)
});
}
// @__NO_SIDE_EFFECTS__
function Jn(e) {
return new Vu({
check: "string_format",
format: "uppercase",
...$(e)
});
}
// @__NO_SIDE_EFFECTS__
function Vn(e, n) {
return new qu({
check: "string_format",
format: "includes",
...$(n),
includes: e
});
}
// @__NO_SIDE_EFFECTS__
function qn(e, n) {
return new Yu({
check: "string_format",
format: "starts_with",
...$(n),
prefix: e
});
}
// @__NO_SIDE_EFFECTS__
function Yn(e, n) {
return new Ku({
check: "string_format",
format: "ends_with",
...$(n),
suffix: e
});
}
// @__NO_SIDE_EFFECTS__
function Ei(e, n, r) {
return new Wu({
check: "property",
property: e,
schema: n,
...$(r)
});
}
// @__NO_SIDE_EFFECTS__
function Kn(e, n) {
return new Gu({
check: "mime_type",
mime: e,
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function He(e) {
return new Hu({
check: "overwrite",
tx: e
});
}
// @__NO_SIDE_EFFECTS__
function Wn(e) {
return /* @__PURE__ */ He((n) => n.normalize(e));
}
// @__NO_SIDE_EFFECTS__
function Gn() {
return /* @__PURE__ */ He((e) => e.trim());
}
// @__NO_SIDE_EFFECTS__
function Hn() {
return /* @__PURE__ */ He((e) => e.toLowerCase());
}
// @__NO_SIDE_EFFECTS__
function Xn() {
return /* @__PURE__ */ He((e) => e.toUpperCase());
}
// @__NO_SIDE_EFFECTS__
function Qn() {
return /* @__PURE__ */ He((e) => Ua(e));
}
// @__NO_SIDE_EFFECTS__
function Hc(e, n, r) {
return new e({
type: "array",
element: n,
// get element() {
// return element;
// },
...$(r)
});
}
// @__NO_SIDE_EFFECTS__
function Bp(e, n, r) {
return new e({
type: "union",
options: n,
...$(r)
});
}
function Jp(e, n, r) {
return new e({
type: "union",
options: n,
inclusive: !1,
...$(r)
});
}
// @__NO_SIDE_EFFECTS__
function Vp(e, n, r, o) {
return new e({
type: "union",
options: r,
discriminator: n,
...$(o)
});
}
// @__NO_SIDE_EFFECTS__
function qp(e, n, r) {
return new e({
type: "intersection",
left: n,
right: r
});
}
// @__NO_SIDE_EFFECTS__
function Yp(e, n, r, o) {
const t = r instanceof R, i = t ? o : r, a = t ? r : null;
return new e({
type: "tuple",
items: n,
rest: a,
...$(i)
});
}
// @__NO_SIDE_EFFECTS__
function Kp(e, n, r, o) {
return new e({
type: "record",
keyType: n,
valueType: r,
...$(o)
});
}
// @__NO_SIDE_EFFECTS__
function Wp(e, n, r, o) {
return new e({
type: "map",
keyType: n,
valueType: r,
...$(o)
});
}
// @__NO_SIDE_EFFECTS__
function Gp(e, n, r) {
return new e({
type: "set",
valueType: n,
...$(r)
});
}
// @__NO_SIDE_EFFECTS__
function Hp(e, n, r) {
const o = Array.isArray(n) ? Object.fromEntries(n.map((t) => [t, t])) : n;
return new e({
type: "enum",
entries: o,
...$(r)
});
}
// @__NO_SIDE_EFFECTS__
function Xp(e, n, r) {
return new e({
type: "enum",
entries: n,
...$(r)
});
}
// @__NO_SIDE_EFFECTS__
function Qp(e, n, r) {
return new e({
type: "literal",
values: Array.isArray(n) ? n : [n],
...$(r)
});
}
// @__NO_SIDE_EFFECTS__
function Xc(e, n) {
return new e({
type: "file",
...$(n)
});
}
// @__NO_SIDE_EFFECTS__
function eg(e, n) {
return new e({
type: "transform",
transform: n
});
}
// @__NO_SIDE_EFFECTS__
function tg(e, n) {
return new e({
type: "optional",
innerType: n
});
}
// @__NO_SIDE_EFFECTS__
function ng(e, n) {
return new e({
type: "nullable",
innerType: n
});
}
// @__NO_SIDE_EFFECTS__
function rg(e, n, r) {
return new e({
type: "default",
innerType: n,
get defaultValue() {
return typeof r == "function" ? r() : Zn(r);
}
});
}
// @__NO_SIDE_EFFECTS__
function ig(e, n, r) {
return new e({
type: "nonoptional",
innerType: n,
...$(r)
});
}
// @__NO_SIDE_EFFECTS__
function og(e, n) {
return new e({
type: "success",
innerType: n
});
}
// @__NO_SIDE_EFFECTS__
function ag(e, n, r) {
return new e({
type: "catch",
innerType: n,
catchValue: typeof r == "function" ? r : () => r
});
}
// @__NO_SIDE_EFFECTS__
function ug(e, n, r) {
return new e({
type: "pipe",
in: n,
out: r
});
}
// @__NO_SIDE_EFFECTS__
function lg(e, n) {
return new e({
type: "readonly",
innerType: n
});
}
// @__NO_SIDE_EFFECTS__
function cg(e, n, r) {
return new e({
type: "template_literal",
parts: n,
...$(r)
});
}
// @__NO_SIDE_EFFECTS__
function sg(e, n) {
return new e({
type: "lazy",
getter: n
});
}
// @__NO_SIDE_EFFECTS__
function dg(e, n) {
return new e({
type: "promise",
innerType: n
});
}
// @__NO_SIDE_EFFECTS__
function Qc(e, n, r) {
const o = $(r);
return o.abort ?? (o.abort = !0), new e({
type: "custom",
check: "custom",
fn: n,
...o
});
}
// @__NO_SIDE_EFFECTS__
function es(e, n, r) {
return new e({
type: "custom",
check: "custom",
fn: n,
...$(r)
});
}
// @__NO_SIDE_EFFECTS__
function ts(e) {
const n = /* @__PURE__ */ ns((r) => (r.addIssue = (o) => {
if (typeof o == "string")
r.issues.push(_t(o, r.value, n._zod.def));
else {
const t = o;
t.fatal && (t.continue = !1), t.code ?? (t.code = "custom"), t.input ?? (t.input = r.value), t.inst ?? (t.inst = n), t.continue ?? (t.continue = !n._zod.def.abort), r.issues.push(_t(t));
}
}, e(r.value, r)));
return n;
}
// @__NO_SIDE_EFFECTS__
function ns(e, n) {
const r = new se({
check: "custom",
...$(n)
});
return r._zod.check = e, r;
}
// @__NO_SIDE_EFFECTS__
function rs(e) {
const n = new se({ check: "describe" });
return n._zod.onattach = [
(r) => {
const o = Ae.get(r) ?? {};
Ae.add(r, { ...o, description: e });
}
], n._zod.check = () => {
}, n;
}
// @__NO_SIDE_EFFECTS__
function is(e) {
const n = new se({ check: "meta" });
return n._zod.onattach = [
(r) => {
const o = Ae.get(r) ?? {};
Ae.add(r, { ...o, ...e });
}
], n._zod.check = () => {
}, n;
}
// @__NO_SIDE_EFFECTS__
function os(e, n) {
const r = $(n);
let o = r.truthy ?? ["true", "1", "yes", "on", "y", "enabled"], t = r.falsy ?? ["false", "0", "no", "off", "n", "disabled"];
r.case !== "sensitive" && (o = o.map((p) => typeof p == "string" ? p.toLowerCase() : p), t = t.map((p) => typeof p == "string" ? p.toLowerCase() : p));
const i = new Set(o), a = new Set(t), u = e.Codec ?? ui, c = e.Boolean ?? ri, l = e.String ?? Kt, s = new l({ type: "string", error: r.error }), d = new c({ type: "boolean", error: r.error }), m = new u({
type: "pipe",
in: s,
out: d,
transform: ((p, g) => {
let f = p;
return r.case !== "sensitive" && (f = f.toLowerCase()), i.has(f) ? !0 : a.has(f) ? !1 : (g.issues.push({
code: "invalid_value",
expected: "stringbool",
values: [...i, ...a],
input: g.value,
inst: m,
continue: !1
}), {});
}),
reverseTransform: ((p, g) => p === !0 ? o[0] || "true" : t[0] || "false"),
error: r.error
});
return m;
}
// @__NO_SIDE_EFFECTS__
function Xt(e, n, r, o = {}) {
const t = $(o), i = {
...$(o),
check: "string_format",
type: "string",
format: n,
fn: typeof r == "function" ? r : (u) => r.test(u),
...t
};
return r instanceof RegExp && (i.pattern = r), new e(i);
}
function St(e) {
let n = (e == null ? void 0 : e.target) ?? "draft-2020-12";
return n === "draft-4" && (n = "draft-04"), n === "draft-7" && (n = "draft-07"), {
processors: e.processors ?? {},
metadataRegistry: (e == null ? void 0 : e.metadata) ?? Ae,
target: n,
unrepresentable: (e == null ? void 0 : e.unrepresentable) ?? "throw",
override: (e == null ? void 0 : e.override) ?? (() => {
}),
io: (e == null ? void 0 : e.io) ?? "output",
counter: 0,
seen: /* @__PURE__ */ new Map(),
cycles: (e == null ? void 0 : e.cycles) ?? "ref",
reused: (e == null ? void 0 : e.reused) ?? "inline",
external: (e == null ? void 0 : e.external) ?? void 0
};
}
function te(e, n, r = { path: [], schemaPath: [] }) {
var s, d;
var o;
const t = e._zod.def, i = n.seen.get(e);
if (i)
return i.count++, r.schemaPath.includes(e) && (i.cycle = r.path), i.schema;
const a = { schema: {}, count: 1, cycle: void 0, path: r.path };
n.seen.set(e, a);
const u = (d = (s = e._zod).toJSONSchema) == null ? void 0 : d.call(s);
if (u)
a.schema = u;
else {
const m = {
...r,
schemaPath: [...r.schemaPath, e],
path: r.path
};
if (e._zod.processJSONSchema)
e._zod.processJSONSchema(n, a.schema, m);
else {
const g = a.schema, f = n.processors[t.type];
if (!f)
throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);
f(e, n, g, m);
}
const p = e._zod.parent;
p && (a.ref || (a.ref = p), te(p, n, m), n.seen.get(p).isParent = !0);
}
const c = n.metadataRegistry.get(e);
return c && Object.assign(a.schema, c), n.io === "input" && xe(e) && (delete a.schema.examples, delete a.schema.default), n.io === "input" && a.schema._prefault && ((o = a.schema).default ?? (o.default = a.schema._prefault)), delete a.schema._prefault, n.seen.get(e).schema;
}
function It(e, n) {
var a, u, c, l;
const r = e.seen.get(n);
if (!r)
throw new Error("Unprocessed schema. This is a bug in Zod.");
const o = /* @__PURE__ */ new Map();
for (const s of e.seen.entries()) {
const d = (a = e.metadataRegistry.get(s[0])) == null ? void 0 : a.id;
if (d) {
const m = o.get(d);
if (m && m !== s[0])
throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
o.set(d, s[0]);
}
}
const t = (s) => {
var f;
const d = e.target === "draft-2020-12" ? "$defs" : "definitions";
if (e.external) {
const h = (f = e.external.registry.get(s[0])) == null ? void 0 : f.id, b = e.external.uri ?? ((C) => C);
if (h)
return { ref: b(h) };
const y = s[1].defId ?? s[1].schema.id ?? `schema${e.counter++}`;
return s[1].defId = y, { defId: y, ref: `${b("__shared")}#/${d}/${y}` };
}
if (s[1] === r)
return { ref: "#" };
const p = `#/${d}/`, g = s[1].schema.id ?? `__schema${e.counter++}`;
return { defId: g, ref: p + g };
}, i = (s) => {
if (s[1].schema.$ref)
return;
const d = s[1], { ref: m, defId: p } = t(s);
d.def = { ...d.schema }, p && (d.defId = p);
const g = d.schema;
for (const f in g)
delete g[f];
g.$ref = m;
};
if (e.cycles === "throw")
for (const s of e.seen.entries()) {
const d = s[1];
if (d.cycle)
throw new Error(`Cycle detected: #/${(u = d.cycle) == null ? void 0 : u.join("/")}/<root>
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
}
for (const s of e.seen.entries()) {
const d = s[1];
if (n === s[0]) {
i(s);
continue;
}
if (e.external) {
const p = (c = e.external.registry.get(s[0])) == null ? void 0 : c.id;
if (n !== s[0] && p) {
i(s);
continue;
}
}
if ((l = e.metadataRegistry.get(s[0])) == null ? void 0 : l.id) {
i(s);
continue;
}
if (d.cycle) {
i(s);
continue;
}
if (d.count > 1 && e.reused === "ref") {
i(s);
continue;
}
}
}
function wt(e, n) {
var a, u, c;
const r = e.seen.get(n);
if (!r)
throw new Error("Unprocessed schema. This is a bug in Zod.");
const o = (l) => {
const s = e.seen.get(l);
if (s.ref === null)
return;
const d = s.def ?? s.schema, m = { ...d }, p = s.ref;
if (s.ref = null, p) {
o(p);
const f = e.seen.get(p), h = f.schema;
if (h.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (d.allOf = d.allOf ?? [], d.allOf.push(h)) : Object.assign(d, h), Object.assign(d, m), l._zod.parent === p)
for (const y in d)
y === "$ref" || y === "allOf" || y in m || delete d[y];
if (h.$ref && f.def)
for (const y in d)
y === "$ref" || y === "allOf" || y in f.def && JSON.stringify(d[y]) === JSON.stringify(f.def[y]) && delete d[y];
}
const g = l._zod.parent;
if (g && g !== p) {
o(g);
const f = e.seen.get(g);
if (f != null && f.schema.$ref && (d.$ref = f.schema.$ref, f.def))
for (const h in d)
h === "$ref" || h === "allOf" || h in f.def && JSON.stringify(d[h]) === JSON.stringify(f.def[h]) && delete d[h];
}
e.override({
zodSchema: l,
jsonSchema: d,
path: s.path ?? []
});
};
for (const l of [...e.seen.entries()].reverse())
o(l[0]);
const t = {};
if (e.target === "draft-2020-12" ? t.$schema = "https://json-schema.org/draft/2020-12/schema" : e.target === "draft-07" ? t.$schema = "http://json-schema.org/draft-07/schema#" : e.target === "draft-04" ? t.$schema = "http://json-schema.org/draft-04/schema#" : e.target, (a = e.external) != null && a.uri) {
const l = (u = e.external.registry.get(n)) == null ? void 0 : u.id;
if (!l)
throw new Error("Schema is missing an `id` property");
t.$id = e.external.uri(l);
}
Object.assign(t, r.def ?? r.schema);
const i = ((c = e.external) == null ? void 0 : c.defs) ?? {};
for (const l of e.seen.entries()) {
const s = l[1];
s.def && s.defId && (i[s.defId] = s.def);
}
e.external || Object.keys(i).length > 0 && (e.target === "draft-2020-12" ? t.$defs = i : t.definitions = i);
try {
const l = JSON.parse(JSON.stringify(t));
return Object.defineProperty(l, "~standard", {
value: {
...n["~standard"],
jsonSchema: {
input: Nt(n, "input", e.processors),
output: Nt(n, "output", e.processors)
}
},
enumerable: !1,
writable: !1
}), l;
} catch {
throw new Error("Error converting schema to JSON.");
}
}
function xe(e, n) {
const r = n ?? { seen: /* @__PURE__ */ new Set() };
if (r.seen.has(e))
return !1;
r.seen.add(e);
const o = e._zod.def;
if (o.type === "transform")
return !0;
if (o.type === "array")
return xe(o.element, r);
if (o.type === "set")
return xe(o.valueType, r);
if (o.type === "lazy")
return xe(o.getter(), r);
if (o.type === "promise" || o.type === "optional" || o.type === "nonoptional" || o.type === "nullable" || o.type === "readonly" || o.type === "default" || o.type === "prefault")
return xe(o.innerType, r);
if (o.type === "intersection")
return xe(o.left, r) || xe(o.right, r);
if (o.type === "record" || o.type === "map")
return xe(o.keyType, r) || xe(o.valueType, r);
if (o.type === "pipe")
return xe(o.in, r) || xe(o.out, r);
if (o.type === "object") {
for (const t in o.shape)
if (xe(o.shape[t], r))
return !0;
return !1;
}
if (o.type === "union") {
for (const t of o.options)
if (xe(t, r))
return !0;
return !1;
}
if (o.type === "tuple") {
for (const t of o.items)
if (xe(t, r))
return !0;
return !!(o.rest && xe(o.rest, r));
}
return !1;
}
const as = (e, n = {}) => (r) => {
const o = St({ ...r, processors: n });
return te(e, o), It(o, e), wt(o, e);
}, Nt = (e, n, r = {}) => (o) => {
const { libraryOptions: t, target: i } = o ?? {}, a = St({ ...t ?? {}, target: i, io: n, processors: r });
return te(e, a), It(a, e), wt(a, e);
}, fg = {
guid: "uuid",
url: "uri",
datetime: "date-time",
json_string: "json-string",
regex: ""
// do not set
}, us = (e, n, r, o) => {
const t = r;
t.type = "string";
const { minimum: i, maximum: a, format: u, patterns: c, contentEncoding: l } = e._zod.bag;
if (typeof i == "number" && (t.minLength = i), typeof a == "number" && (t.maxLength = a), u && (t.format = fg[u] ?? u, t.format === "" && delete t.format, u === "time" && delete t.format), l && (t.contentEncoding = l), c && c.size > 0) {
const s = [...c];
s.length === 1 ? t.pattern = s[0].source : s.length > 1 && (t.allOf = [
...s.map((d) => ({
...n.target === "draft-07" || n.target === "draft-04" || n.target === "openapi-3.0" ? { type: "string" } : {},
pattern: d.source
}))
]);
}
}, ls = (e, n, r, o) => {
const t = r, { minimum: i, maximum: a, format: u, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: s } = e._zod.bag;
typeof u == "string" && u.includes("int") ? t.type = "integer" : t.type = "number", typeof s == "number" && (n.target === "draft-04" || n.target === "openapi-3.0" ? (t.minimum = s, t.exclusiveMinimum = !0) : t.exclusiveMinimum = s), typeof i == "number" && (t.minimum = i, typeof s == "number" && n.target !== "draft-04" && (s >= i ? delete t.minimum : delete t.exclusiveMinimum)), typeof l == "number" && (n.target === "draft-04" || n.target === "openapi-3.0" ? (t.maximum = l, t.exclusiveMaximum = !0) : t.exclusiveMaximum = l), typeof a == "number" && (t.maximum = a, typeof l == "number" && n.target !== "draft-04" && (l <= a ? delete t.maximum : delete t.exclusiveMaximum)), typeof c == "number" && (t.multipleOf = c);
}, cs = (e, n, r, o) => {
r.type = "boolean";
}, ss = (e, n, r, o) => {
if (n.unrepresentable === "throw")
throw new Error("BigInt cannot be represented in JSON Schema");
}, ds = (e, n, r, o) => {
if (n.unrepresentable === "throw")
throw new Error("Symbols cannot be represented in JSON Schema");
}, fs = (e, n, r, o) => {
n.target === "openapi-3.0" ? (r.type = "string", r.nullable = !0, r.enum = [null]) : r.type = "null";
}, ms = (e, n, r, o) => {
if (n.unrepresentable === "throw")
throw new Error("Undefined cannot be represented in JSON Schema");
}, vs = (e, n, r, o) => {
if (n.unrepresentable === "throw")
throw new Error("Void cannot be represented in JSON Schema");
}, ps = (e, n, r, o) => {
r.not = {};
}, gs = (e, n, r, o) => {
}, hs = (e, n, r, o) => {
}, $s = (e, n, r, o) => {
if (n.unrepresentable === "throw")
throw new Error("Date cannot be represented in JSON Schema");
}, bs = (e, n, r, o) => {
const t = e._zod.def, i = Zr(t.entries);
i.every((a) => typeof a == "number") && (r.type = "number"), i.every((a) => typeof a == "string") && (r.type = "string"), r.enum = i;
}, _s = (e, n, r, o) => {
const t = e._zod.def, i = [];
for (const a of t.values)
if (a === void 0) {
if (n.unrepresentable === "throw")
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
} else if (typeof a == "bigint") {
if (n.unrepresentable === "throw")
throw new Error("BigInt literals cannot be represented in JSON Schema");
i.push(Number(a));
} else
i.push(a);
if (i.length !== 0) if (i.length === 1) {
const a = i[0];
r.type = a === null ? "null" : typeof a, n.target === "draft-04" || n.target === "openapi-3.0" ? r.enum = [a] : r.const = a;
} else
i.every((a) => typeof a == "number") && (r.type = "number"), i.every((a) => typeof a == "string") && (r.type = "string"), i.every((a) => typeof a == "boolean") && (r.type = "boolean"), i.every((a) => a === null) && (r.type = "null"), r.enum = i;
}, ys = (e, n, r, o) => {
if (n.unrepresentable === "throw")
throw new Error("NaN cannot be represented in JSON Schema");
}, ks = (e, n, r, o) => {
const t = r, i = e._zod.pattern;
if (!i)
throw new Error("Pattern not found in template literal");
t.type = "string", t.pattern = i.source;
}, Ss = (e, n, r, o) => {
const t = r, i = {
type: "string",
format: "binary",
contentEncoding: "binary"
}, { minimum: a, maximum: u, mime: c } = e._zod.bag;
a !== void 0 && (i.minLength = a), u !== void 0 && (i.maxLength = u), c ? c.length === 1 ? (i.contentMediaType = c[0], Object.assign(t, i)) : (Object.assign(t, i), t.anyOf = c.map((l) => ({ contentMediaType: l }))) : Object.assign(t, i);
}, Is = (e, n, r, o) => {
r.type = "boolean";
}, ws = (e, n, r, o) => {
if (n.unrepresentable === "throw")
throw new Error("Custom types cannot be represented in JSON Schema");
}, zs = (e, n, r, o) => {
if (n.unrepresentable === "throw")
throw new Error("Function types cannot be represented in JSON Schema");
}, xs = (e, n, r, o) => {
if (n.unrepresentable === "throw")
throw new Error("Transforms cannot be represented in JSON Schema");
}, Ds = (e, n, r, o) => {
if (n.unrepresentable === "throw")
throw new Error("Map cannot be represented in JSON Schema");
}, Os = (e, n, r, o) => {
if (n.unrepresentable === "throw")
throw new Error("Set cannot be represented in JSON Schema");
}, js = (e, n, r, o) => {
const t = r, i = e._zod.def, { minimum: a, maximum: u } = e._zod.bag;
typeof a == "number" && (t.minItems = a), typeof u == "number" && (t.maxItems = u), t.type = "array", t.items = te(i.element, n, { ...o, path: [...o.path, "items"] });
}, Us = (e, n, r, o) => {
var l;
const t = r, i = e._zod.def;
t.type = "object", t.properties = {};
const a = i.shape;
for (const s in a)
t.properties[s] = te(a[s], n, {
...o,
path: [...o.path, "properties", s]
});
const u = new Set(Object.keys(a)), c = new Set([...u].filter((s) => {
const d = i.shape[s]._zod;
return n.io === "input" ? d.optin === void 0 : d.optout === void 0;
}));
c.size > 0 && (t.required = Array.from(c)), ((l = i.catchall) == null ? void 0 : l._zod.def.type) === "never" ? t.additionalProperties = !1 : i.catchall ? i.catchall && (t.additionalProperties = te(i.catchall, n, {
...o,
path: [...o.path, "additionalProperties"]
})) : n.io === "output" && (t.additionalProperties = !1);
}, Pi = (e, n, r, o) => {
const t = e._zod.def, i = t.inclusive === !1, a = t.options.map((u, c) => te(u, n, {
...o,
path: [...o.path, i ? "oneOf" : "anyOf", c]
}));
i ? r.oneOf = a : r.anyOf = a;
}, Ts = (e, n, r, o) => {
const t = e._zod.def, i = te(t.left, n, {
...o,
path: [...o.path, "allOf", 0]
}), a = te(t.right, n, {
...o,
path: [...o.path, "allOf", 1]
}), u = (l) => "allOf" in l && Object.keys(l).length === 1, c = [
...u(i) ? i.allOf : [i],
...u(a) ? a.allOf : [a]
];
r.allOf = c;
}, Es = (e, n, r, o) => {
const t = r, i = e._zod.def;
t.type = "array";
const a = n.target === "draft-2020-12" ? "prefixItems" : "items", u = n.target === "draft-2020-12" || n.target === "openapi-3.0" ? "items" : "additionalItems", c = i.items.map((m, p) => te(m, n, {
...o,
path: [...o.path, a, p]
})), l = i.rest ? te(i.rest, n, {
...o,
path: [...o.path, u, ...n.target === "openapi-3.0" ? [i.items.length] : []]
}) : null;
n.target === "draft-2020-12" ? (t.prefixItems = c, l && (t.items = l)) : n.target === "openapi-3.0" ? (t.items = {
anyOf: c
}, l && t.items.anyOf.push(l), t.minItems = c.length, l || (t.maxItems = c.length)) : (t.items = c, l && (t.additionalItems = l));
const { minimum: s, maximum: d } = e._zod.bag;
typeof s == "number" && (t.minItems = s), typeof d == "number" && (t.maxItems = d);
}, Ps = (e, n, r, o) => {
const t = r, i = e._zod.def;
t.type = "object";
const a = i.keyType, u = a._zod.bag, c = u == null ? void 0 : u.patterns;
if (i.mode === "loose" && c && c.size > 0) {
const s = te(i.valueType, n, {
...o,
path: [...o.path, "patternProperties", "*"]
});
t.patternProperties = {};
for (const d of c)
t.patternProperties[d.source] = s;
} else
(n.target === "draft-07" || n.target === "draft-2020-12") && (t.propertyNames = te(i.keyType, n, {
...o,
path: [...o.path, "propertyNames"]
})), t.additionalProperties = te(i.valueType, n, {
...o,
path: [...o.path, "additionalProperties"]
});
const l = a._zod.values;
if (l) {
const s = [...l].filter((d) => typeof d == "string" || typeof d == "number");
s.length > 0 && (t.required = s);
}
}, Ns = (e, n, r, o) => {
const t = e._zod.def, i = te(t.innerType, n, o), a = n.seen.get(e);
n.target === "openapi-3.0" ? (a.ref = t.innerType, r.nullable = !0) : r.anyOf = [i, { type: "null" }];
}, As = (e, n, r, o) => {
const t = e._zod.def;
te(t.innerType, n, o);
const i = n.seen.get(e);
i.ref = t.innerType;
}, Zs = (e, n, r, o) => {
const t = e._zod.def;
te(t.innerType, n, o);
const i = n.seen.get(e);
i.ref = t.innerType, r.default = JSON.parse(JSON.stringify(t.defaultValue));
}, Cs = (e, n, r, o) => {
const t = e._zod.def;
te(t.innerType, n, o);
const i = n.seen.get(e);
i.ref = t.innerType, n.io === "input" && (r._prefault = JSON.parse(JSON.stringify(t.defaultValue)));
}, Ms = (e, n, r, o) => {
const t = e._zod.def;
te(t.innerType, n, o);
const i = n.seen.get(e);
i.ref = t.innerType;
let a;
try {
a = t.catchValue(void 0);
} catch {
throw new Error("Dynamic catch values are not supported in JSON Schema");
}
r.default = a;
}, Fs = (e, n, r, o) => {
const t = e._zod.def, i = n.io === "input" ? t.in._zod.def.type === "transform" ? t.out : t.in : t.out;
te(i, n, o);
const a = n.seen.get(e);
a.ref = i;
}, Ls = (e, n, r, o) => {
const t = e._zod.def;
te(t.innerType, n, o);
const i = n.seen.get(e);
i.ref = t.innerType, r.readOnly = !0;
}, Rs = (e, n, r, o) => {
const t = e._zod.def;
te(t.innerType, n, o);
const i = n.seen.get(e);
i.ref = t.innerType;
}, Ni = (e, n, r, o) => {
const t = e._zod.def;
te(t.innerType, n, o);
const i = n.seen.get(e);
i.ref = t.innerType;
}, Bs = (e, n, r, o) => {
const t = e._zod.innerType;
te(t, n, o);
const i = n.seen.get(e);
i.ref = t;
}, Er = {
string: us,
number: ls,
boolean: cs,
bigint: ss,
symbol: ds,
null: fs,
undefined: ms,
void: vs,
never: ps,
any: gs,
unknown: hs,
date: $s,
enum: bs,
literal: _s,
nan: ys,
template_literal: ks,
file: Ss,
success: Is,
custom: ws,
function: zs,
transform: xs,
map: Ds,
set: Os,
array: js,
object: Us,
union: Pi,
intersection: Ts,
tuple: Es,
record: Ps,
nullable: Ns,
nonoptional: As,
default: Zs,
prefault: Cs,
catch: Ms,
pipe: Fs,
readonly: Ls,
promise: Rs,
optional: Ni,
lazy: Bs
};
function Js(e, n) {
if ("_idmap" in e) {
const o = e, t = St({ ...n, processors: Er }), i = {};
for (const c of o._idmap.entries()) {
const [l, s] = c;
te(s, t);
}
const a = {}, u = {
registry: o,
uri: n == null ? void 0 : n.uri,
defs: i
};
t.external = u;
for (const c of o._idmap.entries()) {
const [l, s] = c;
It(t, s), a[l] = wt(t, s);
}
if (Object.keys(i).length > 0) {
const c = t.target === "draft-2020-12" ? "$defs" : "definitions";
a.__shared = {
[c]: i
};
}
return { schemas: a };
}
const r = St({ ...n, processors: Er });
return te(e, r), It(r, e), wt(r, e);
}
class mg {
/** @deprecated Access via ctx instead */
get metadataRegistry() {
return this.ctx.metadataRegistry;
}
/** @deprecated Access via ctx instead */
get target() {
return this.ctx.target;
}
/** @deprecated Access via ctx instead */
get unrepresentable() {
return this.ctx.unrepresentable;
}
/** @deprecated Access via ctx instead */
get override() {
return this.ctx.override;
}
/** @deprecated Access via ctx instead */
get io() {
return this.ctx.io;
}
/** @deprecated Access via ctx instead */
get counter() {
return this.ctx.counter;
}
set counter(n) {
this.ctx.counter = n;
}
/** @deprecated Access via ctx instead */
get seen() {
return this.ctx.seen;
}
constructor(n) {
let r = (n == null ? void 0 : n.target) ?? "draft-2020-12";
r === "draft-4" && (r = "draft-04"), r === "draft-7" && (r = "draft-07"), this.ctx = St({
processors: Er,
target: r,
...(n == null ? void 0 : n.metadata) && { metadata: n.metadata },
...(n == null ? void 0 : n.unrepresentable) && { unrepresentable: n.unrepresentable },
...(n == null ? void 0 : n.override) && { override: n.override },
...(n == null ? void 0 : n.io) && { io: n.io }
});
}
/**
* Process a schema to prepare it for JSON Schema generation.
* This must be called before emit().
*/
process(n, r = { path: [], schemaPath: [] }) {
return te(n, this.ctx, r);
}
/**
* Emit the final JSON Schema after processing.
* Must call process() first.
*/
emit(n, r) {
r && (r.cycles && (this.ctx.cycles = r.cycles), r.reused && (this.ctx.reused = r.reused), r.external && (this.ctx.external = r.external)), It(this.ctx, n);
const o = wt(this.ctx, n), { "~standard": t, ...i } = o;
return i;
}
}
const vg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null
}, Symbol.toStringTag, { value: "Module" })), pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
$ZodAny: Tl,
$ZodArray: Zl,
$ZodAsyncError: dt,
$ZodBase64: _l,
$ZodBase64URL: kl,
$ZodBigInt: ii,
$ZodBigIntFormat: Dl,
$ZodBoolean: ri,
$ZodCIDRv4: $l,
$ZodCIDRv6: bl,
$ZodCUID: al,
$ZodCUID2: ul,
$ZodCatch: ic,
$ZodCheck: se,
$ZodCheckBigIntFormat: Au,
$ZodCheckEndsWith: Ku,
$ZodCheckGreaterThan: ei,
$ZodCheckIncludes: qu,
$ZodCheckLengthEquals: Ru,
$ZodCheckLessThan: Qr,
$ZodCheckLowerCase: Ju,
$ZodCheckMaxLength: Fu,
$ZodCheckMaxSize: Zu,
$ZodCheckMimeType: Gu,
$ZodCheckMinLength: Lu,
$ZodCheckMinSize: Cu,
$ZodCheckMultipleOf: Pu,
$ZodCheckNumberFormat: Nu,
$ZodCheckOverwrite: Hu,
$ZodCheckProperty: Wu,
$ZodCheckRegex: Bu,
$ZodCheckSizeEquals: Mu,
$ZodCheckStartsWith: Yu,
$ZodCheckStringFormat: Yt,
$ZodCheckUpperCase: Vu,
$ZodCodec: ui,
$ZodCustom: fc,
$ZodCustomStringFormat: zl,
$ZodDate: Al,
$ZodDefault: ec,
$ZodDiscriminatedUnion: Bl,
$ZodE164: Sl,
$ZodEmail: nl,
$ZodEmoji: il,
$ZodEncodeError: Nn,
$ZodEnum: Kl,
$ZodError: Mr,
$ZodExactOptional: Xl,
$ZodFile: Gl,
$ZodFunction: cc,
$ZodGUID: el,
$ZodIPv4: pl,
$ZodIPv6: gl,
$ZodISODate: fl,
$ZodISODateTime: dl,
$ZodISODuration: vl,
$ZodISOTime: ml,
$ZodIntersection: Jl,
$ZodJWT: wl,
$ZodKSUID: sl,
$ZodLazy: dc,
$ZodLiteral: Wl,
$ZodMAC: hl,
$ZodMap: ql,
$ZodNaN: oc,
$ZodNanoID: ol,
$ZodNever: Pl,
$ZodNonOptional: nc,
$ZodNull: Ul,
$ZodNullable: Ql,
$ZodNumber: ni,
$ZodNumberFormat: xl,
$ZodObject: Fl,
$ZodObjectJIT: Ll,
$ZodOptional: ai,
$ZodPipe: ac,
$ZodPrefault: tc,
$ZodPromise: sc,
$ZodReadonly: uc,
$ZodRealError: Pe,
$ZodRecord: Vl,
$ZodRegistry: bc,
$ZodSet: Yl,
$ZodString: Kt,
$ZodStringFormat: ae,
$ZodSuccess: rc,
$ZodSymbol: Ol,
$ZodTemplateLiteral: lc,
$ZodTransform: Hl,
$ZodTuple: oi,
$ZodType: R,
$ZodULID: ll,
$ZodURL: rl,
$ZodUUID: tl,
$ZodUndefined: jl,
$ZodUnion: Fn,
$ZodUnknown: El,
$ZodVoid: Nl,
$ZodXID: cl,
$ZodXor: Rl,
$brand: Oa,
$constructor: v,
$input: $c,
$output: hc,
Doc: Xu,
JSONSchema: vg,
JSONSchemaGenerator: mg,
NEVER: Da,
TimePrecision: Sc,
_any: Jc,
_array: Hc,
_base64: wi,
_base64url: zi,
_bigint: Zc,
_boolean: Nc,
_catch: ag,
_check: ns,
_cidrv4: Si,
_cidrv6: Ii,
_coercedBigint: Cc,
_coercedBoolean: Ac,
_coercedDate: Wc,
_coercedNumber: Oc,
_coercedString: yc,
_cuid: gi,
_cuid2: hi,
_custom: Qc,
_date: Kc,
_decode: Br,
_decodeAsync: Vr,
_default: rg,
_discriminatedUnion: Vp,
_e164: xi,
_email: ci,
_emoji: vi,
_encode: Rr,
_encodeAsync: Jr,
_endsWith: Yn,
_enum: Hp,
_file: Xc,
_float32: Uc,
_float64: Tc,
_gt: rt,
_gte: Ue,
_guid: Un,
_includes: Vn,
_int: jc,
_int32: Ec,
_int64: Mc,
_intersection: qp,
_ipv4: yi,
_ipv6: ki,
_isoDate: wc,
_isoDateTime: Ic,
_isoDuration: xc,
_isoTime: zc,
_jwt: Di,
_ksuid: _i,
_lazy: sg,
_length: Ht,
_literal: Qp,
_lowercase: Bn,
_lt: nt,
_lte: Ze,
_mac: kc,
_map: Wp,
_max: Ze,
_maxLength: Gt,
_maxSize: xt,
_mime: Kn,
_min: Ue,
_minLength: mt,
_minSize: it,
_multipleOf: kt,
_nan: Gc,
_nanoid: pi,
_nativeEnum: Xp,
_negative: ji,
_never: qc,
_nonnegative: Ti,
_nonoptional: ig,
_nonpositive: Ui,
_normalize: Wn,
_null: Bc,
_nullable: ng,
_number: Dc,
_optional: tg,
_overwrite: He,
_parse: Lt,
_parseAsync: Rt,
_pipe: ug,
_positive: Oi,
_promise: dg,
_property: Ei,
_readonly: lg,
_record: Kp,
_refine: es,
_regex: Rn,
_safeDecode: Yr,
_safeDecodeAsync: Wr,
_safeEncode: qr,
_safeEncodeAsync: Kr,
_safeParse: Bt,
_safeParseAsync: Jt,
_set: Gp,
_size: Wt,
_slugify: Qn,
_startsWith: qn,
_string: _c,
_stringFormat: Xt,
_stringbool: os,
_success: og,
_superRefine: ts,
_symbol: Lc,
_templateLiteral: cg,
_toLowerCase: Hn,
_toUpperCase: Xn,
_transform: eg,
_trim: Gn,
_tuple: Yp,
_uint32: Pc,
_uint64: Fc,
_ulid: $i,
_undefined: Rc,
_union: Bp,
_unknown: Vc,
_uppercase: Jn,
_url: Ln,
_uuid: si,
_uuidv4: di,
_uuidv6: fi,
_uuidv7: mi,
_void: Yc,
_xid: bi,
_xor: Jp,
clone: Me,
config: Ie,
createStandardJSONSchemaMethod: Nt,
createToJSONSchemaMethod: as,
decode: xm,
decodeAsync: Om,
describe: rs,
encode: zm,
encodeAsync: Dm,
extractDefs: It,
finalize: wt,
flattenError: Fr,
formatError: Lr,
globalConfig: xn,
globalRegistry: Ae,
initializeContext: St,
isValidBase64: ti,
isValidBase64URL: yl,
isValidJWT: Il,
locales: gc,
meta: is,
parse: jr,
parseAsync: Ur,
prettifyError: Ga,
process: te,
regexes: Xr,
registry: li,
safeDecode: Um,
safeDecodeAsync: Em,
safeEncode: jm,
safeEncodeAsync: Tm,
safeParse: Ha,
safeParseAsync: Xa,
toDotPath: Wa,
toJSONSchema: Js,
treeifyError: Ka,
util: qa,
version: Qu
}, Symbol.toStringTag, { value: "Module" })), gg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
endsWith: Yn,
gt: rt,
gte: Ue,
includes: Vn,
length: Ht,
lowercase: Bn,
lt: nt,
lte: Ze,
maxLength: Gt,
maxSize: xt,
mime: Kn,
minLength: mt,
minSize: it,
multipleOf: kt,
negative: ji,
nonnegative: Ti,
nonpositive: Ui,
normalize: Wn,
overwrite: He,
positive: Oi,
property: Ei,
regex: Rn,
size: Wt,
slugify: Qn,
startsWith: qn,
toLowerCase: Hn,
toUpperCase: Xn,
trim: Gn,
uppercase: Jn
}, Symbol.toStringTag, { value: "Module" })), Ai = /* @__PURE__ */ v("ZodISODateTime", (e, n) => {
dl.init(e, n), ue.init(e, n);
});
function Vs(e) {
return /* @__PURE__ */ Ic(Ai, e);
}
const Zi = /* @__PURE__ */ v("ZodISODate", (e, n) => {
fl.init(e, n), ue.init(e, n);
});
function qs(e) {
return /* @__PURE__ */ wc(Zi, e);
}
const Ci = /* @__PURE__ */ v("ZodISOTime", (e, n) => {
ml.init(e, n), ue.init(e, n);
});
function Ys(e) {
return /* @__PURE__ */ zc(Ci, e);
}
const Mi = /* @__PURE__ */ v("ZodISODuration", (e, n) => {
vl.init(e, n), ue.init(e, n);
});
function Ks(e) {
return /* @__PURE__ */ xc(Mi, e);
}
const Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
ZodISODate: Zi,
ZodISODateTime: Ai,
ZodISODuration: Mi,
ZodISOTime: Ci,
date: qs,
datetime: Vs,
duration: Ks,
time: Ys
}, Symbol.toStringTag, { value: "Module" })), Gs = (e, n) => {
Mr.init(e, n), e.name = "ZodError", Object.defineProperties(e, {
format: {
value: (r) => Lr(e, r)
// enumerable: false,
},
flatten: {
value: (r) => Fr(e, r)
// enumerable: false,
},
addIssue: {
value: (r) => {
e.issues.push(r), e.message = JSON.stringify(e.issues, Dn, 2);
}
// enumerable: false,
},
addIssues: {
value: (r) => {
e.issues.push(...r), e.message = JSON.stringify(e.issues, Dn, 2);
}
// enumerable: false,
},
isEmpty: {
get() {
return e.issues.length === 0;
}
// enumerable: false,
}
});
}, hg = v("ZodError", Gs), Ne = v("ZodError", Gs, {
Parent: Error
}), Hs = /* @__PURE__ */ Lt(Ne), Xs = /* @__PURE__ */ Rt(Ne), Qs = /* @__PURE__ */ Bt(Ne), ed = /* @__PURE__ */ Jt(Ne), td = /* @__PURE__ */ Rr(Ne), nd = /* @__PURE__ */ Br(Ne), rd = /* @__PURE__ */ Jr(Ne), id = /* @__PURE__ */ Vr(Ne), od = /* @__PURE__ */ qr(Ne), ad = /* @__PURE__ */ Yr(Ne), ud = /* @__PURE__ */ Kr(Ne), ld = /* @__PURE__ */ Wr(Ne), q = /* @__PURE__ */ v("ZodType", (e, n) => (R.init(e, n), Object.assign(e["~standard"], {
jsonSchema: {
input: Nt(e, "input"),
output: Nt(e, "output")
}
}), e.toJSONSchema = as(e, {}), e.def = n, e.type = n.type, Object.defineProperty(e, "_def", { value: n }), e.check = (...r) => e.clone(Ye(n, {
checks: [
...n.checks ?? [],
...r.map((o) => typeof o == "function" ? { _zod: { check: o, def: { check: "custom" }, onattach: [] } } : o)
]
}), {
parent: !0
}), e.with = e.check, e.clone = (r, o) => Me(e, r, o), e.brand = () => e, e.register = ((r, o) => (r.add(e, o), e)), e.parse = (r, o) => Hs(e, r, o, { callee: e.parse }), e.safeParse = (r, o) => Qs(e, r, o), e.parseAsync = async (r, o) => Xs(e, r, o, { callee: e.parseAsync }), e.safeParseAsync = async (r, o) => ed(e, r, o), e.spa = e.safeParseAsync, e.encode = (r, o) => td(e, r, o), e.decode = (r, o) => nd(e, r, o), e.encodeAsync = async (r, o) => rd(e, r, o), e.decodeAsync = async (r, o) => id(e, r, o), e.safeEncode = (r, o) => od(e, r, o), e.safeDecode = (r, o) => ad(e, r, o), e.safeEncodeAsync = async (r, o) => ud(e, r, o), e.safeDecodeAsync = async (r, o) => ld(e, r, o), e.refine = (r, o) => e.check(jo(r, o)), e.superRefine = (r) => e.check(Uo(r)), e.overwrite = (r) => e.check(/* @__PURE__ */ He(r)), e.optional = () => Zt(e), e.exactOptional = () => fo(e), e.nullable = () => Ct(e), e.nullish = () => Zt(Ct(e)), e.nonoptional = (r) => $o(e, r), e.array = () => on(e), e.or = (r) => _r([e, r]), e.and = (r) => to(e, r), e.transform = (r) => Mt(e, kr(r)), e.default = (r) => po(e, r), e.prefault = (r) => ho(e, r), e.catch = (r) => yo(e, r), e.pipe = (r) => Mt(e, r), e.readonly = () => Io(e), e.describe = (r) => {
const o = e.clone();
return Ae.add(o, { description: r }), o;
}, Object.defineProperty(e, "description", {
get() {
var r;
return (r = Ae.get(e)) == null ? void 0 : r.description;
},
configurable: !0
}), e.meta = (...r) => {
if (r.length === 0)
return Ae.get(e);
const o = e.clone();
return Ae.add(o, r[0]), o;
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (r) => r(e), e)), er = /* @__PURE__ */ v("_ZodString", (e, n) => {
Kt.init(e, n), q.init(e, n), e._zod.processJSONSchema = (o, t, i) => us(e, o, t);
const r = e._zod.bag;
e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...o) => e.check(/* @__PURE__ */ Rn(...o)), e.includes = (...o) => e.check(/* @__PURE__ */ Vn(...o)), e.startsWith = (...o) => e.check(/* @__PURE__ */ qn(...o)), e.endsWith = (...o) => e.check(/* @__PURE__ */ Yn(...o)), e.min = (...o) => e.check(/* @__PURE__ */ mt(...o)), e.max = (...o) => e.check(/* @__PURE__ */ Gt(...o)), e.length = (...o) => e.check(/* @__PURE__ */ Ht(...o)), e.nonempty = (...o) => e.check(/* @__PURE__ */ mt(1, ...o)), e.lowercase = (o) => e.check(/* @__PURE__ */ Bn(o)), e.uppercase = (o) => e.check(/* @__PURE__ */ Jn(o)), e.trim = () => e.check(/* @__PURE__ */ Gn()), e.normalize = (...o) => e.check(/* @__PURE__ */ Wn(...o)), e.toLowerCase = () => e.check(/* @__PURE__ */ Hn()), e.toUpperCase = () => e.check(/* @__PURE__ */ Xn()), e.slugify = () => e.check(/* @__PURE__ */ Qn());
}), Qt = /* @__PURE__ */ v("ZodString", (e, n) => {
Kt.init(e, n), er.init(e, n), e.email = (r) => e.check(/* @__PURE__ */ ci(tr, r)), e.url = (r) => e.check(/* @__PURE__ */ Ln(en, r)), e.jwt = (r) => e.check(/* @__PURE__ */ Di(gr, r)), e.emoji = (r) => e.check(/* @__PURE__ */ vi(nr, r)), e.guid = (r) => e.check(/* @__PURE__ */ Un(At, r)), e.uuid = (r) => e.check(/* @__PURE__ */ si(qe, r)), e.uuidv4 = (r) => e.check(/* @__PURE__ */ di(qe, r)), e.uuidv6 = (r) => e.check(/* @__PURE__ */ fi(qe, r)), e.uuidv7 = (r) => e.check(/* @__PURE__ */ mi(qe, r)), e.nanoid = (r) => e.check(/* @__PURE__ */ pi(rr, r)), e.guid = (r) => e.check(/* @__PURE__ */ Un(At, r)), e.cuid = (r) => e.check(/* @__PURE__ */ gi(ir, r)), e.cuid2 = (r) => e.check(/* @__PURE__ */ hi(or, r)), e.ulid = (r) => e.check(/* @__PURE__ */ $i(ar, r)), e.base64 = (r) => e.check(/* @__PURE__ */ wi(mr, r)), e.base64url = (r) => e.check(/* @__PURE__ */ zi(vr, r)), e.xid = (r) => e.check(/* @__PURE__ */ bi(ur, r)), e.ksuid = (r) => e.check(/* @__PURE__ */ _i(lr, r)), e.ipv4 = (r) => e.check(/* @__PURE__ */ yi(cr, r)), e.ipv6 = (r) => e.check(/* @__PURE__ */ ki(sr, r)), e.cidrv4 = (r) => e.check(/* @__PURE__ */ Si(dr, r)), e.cidrv6 = (r) => e.check(/* @__PURE__ */ Ii(fr, r)), e.e164 = (r) => e.check(/* @__PURE__ */ xi(pr, r)), e.datetime = (r) => e.check(Vs(r)), e.date = (r) => e.check(qs(r)), e.time = (r) => e.check(Ys(r)), e.duration = (r) => e.check(Ks(r));
});
function Tn(e) {
return /* @__PURE__ */ _c(Qt, e);
}
const ue = /* @__PURE__ */ v("ZodStringFormat", (e, n) => {
ae.init(e, n), er.init(e, n);
}), tr = /* @__PURE__ */ v("ZodEmail", (e, n) => {
nl.init(e, n), ue.init(e, n);
});
function cd(e) {
return /* @__PURE__ */ ci(tr, e);
}
const At = /* @__PURE__ */ v("ZodGUID", (e, n) => {
el.init(e, n), ue.init(e, n);
});
function sd(e) {
return /* @__PURE__ */ Un(At, e);
}
const qe = /* @__PURE__ */ v("ZodUUID", (e, n) => {
tl.init(e, n), ue.init(e, n);
});
function dd(e) {
return /* @__PURE__ */ si(qe, e);
}
function fd(e) {
return /* @__PURE__ */ di(qe, e);
}
function md(e) {
return /* @__PURE__ */ fi(qe, e);
}
function vd(e) {
return /* @__PURE__ */ mi(qe, e);
}
const en = /* @__PURE__ */ v("ZodURL", (e, n) => {
rl.init(e, n), ue.init(e, n);
});
function pd(e) {
return /* @__PURE__ */ Ln(en, e);
}
function gd(e) {
return /* @__PURE__ */ Ln(en, {
protocol: /^https?$/,
hostname: hu,
...$(e)
});
}
const nr = /* @__PURE__ */ v("ZodEmoji", (e, n) => {
il.init(e, n), ue.init(e, n);
});
function hd(e) {
return /* @__PURE__ */ vi(nr, e);
}
const rr = /* @__PURE__ */ v("ZodNanoID", (e, n) => {
ol.init(e, n), ue.init(e, n);
});
function $d(e) {
return /* @__PURE__ */ pi(rr, e);
}
const ir = /* @__PURE__ */ v("ZodCUID", (e, n) => {
al.init(e, n), ue.init(e, n);
});
function bd(e) {
return /* @__PURE__ */ gi(ir, e);
}
const or = /* @__PURE__ */ v("ZodCUID2", (e, n) => {
ul.init(e, n), ue.init(e, n);
});
function _d(e) {
return /* @__PURE__ */ hi(or, e);
}
const ar = /* @__PURE__ */ v("ZodULID", (e, n) => {
ll.init(e, n), ue.init(e, n);
});
function yd(e) {
return /* @__PURE__ */ $i(ar, e);
}
const ur = /* @__PURE__ */ v("ZodXID", (e, n) => {
cl.init(e, n), ue.init(e, n);
});
function kd(e) {
return /* @__PURE__ */ bi(ur, e);
}
const lr = /* @__PURE__ */ v("ZodKSUID", (e, n) => {
sl.init(e, n), ue.init(e, n);
});
function Sd(e) {
return /* @__PURE__ */ _i(lr, e);
}
const cr = /* @__PURE__ */ v("ZodIPv4", (e, n) => {
pl.init(e, n), ue.init(e, n);
});
function Id(e) {
return /* @__PURE__ */ yi(cr, e);
}
const Fi = /* @__PURE__ */ v("ZodMAC", (e, n) => {
hl.init(e, n), ue.init(e, n);
});
function wd(e) {
return /* @__PURE__ */ kc(Fi, e);
}
const sr = /* @__PURE__ */ v("ZodIPv6", (e, n) => {
gl.init(e, n), ue.init(e, n);
});
function zd(e) {
return /* @__PURE__ */ ki(sr, e);
}
const dr = /* @__PURE__ */ v("ZodCIDRv4", (e, n) => {
$l.init(e, n), ue.init(e, n);
});
function xd(e) {
return /* @__PURE__ */ Si(dr, e);
}
const fr = /* @__PURE__ */ v("ZodCIDRv6", (e, n) => {
bl.init(e, n), ue.init(e, n);
});
function Dd(e) {
return /* @__PURE__ */ Ii(fr, e);
}
const mr = /* @__PURE__ */ v("ZodBase64", (e, n) => {
_l.init(e, n), ue.init(e, n);
});
function Od(e) {
return /* @__PURE__ */ wi(mr, e);
}
const vr = /* @__PURE__ */ v("ZodBase64URL", (e, n) => {
kl.init(e, n), ue.init(e, n);
});
function jd(e) {
return /* @__PURE__ */ zi(vr, e);
}
const pr = /* @__PURE__ */ v("ZodE164", (e, n) => {
Sl.init(e, n), ue.init(e, n);
});
function Ud(e) {
return /* @__PURE__ */ xi(pr, e);
}
const gr = /* @__PURE__ */ v("ZodJWT", (e, n) => {
wl.init(e, n), ue.init(e, n);
});
function Td(e) {
return /* @__PURE__ */ Di(gr, e);
}
const Dt = /* @__PURE__ */ v("ZodCustomStringFormat", (e, n) => {
zl.init(e, n), ue.init(e, n);
});
function Ed(e, n, r = {}) {
return /* @__PURE__ */ Xt(Dt, e, n, r);
}
function Pd(e) {
return /* @__PURE__ */ Xt(Dt, "hostname", gu, e);
}
function Nd(e) {
return /* @__PURE__ */ Xt(Dt, "hex", Tu, e);
}
function Ad(e, n) {
const r = (n == null ? void 0 : n.enc) ?? "hex", o = `${e}_${r}`, t = Xr[o];
if (!t)
throw new Error(`Unrecognized hash format: ${o}`);
return /* @__PURE__ */ Xt(Dt, o, t, n);
}
const tn = /* @__PURE__ */ v("ZodNumber", (e, n) => {
ni.init(e, n), q.init(e, n), e._zod.processJSONSchema = (o, t, i) => ls(e, o, t), e.gt = (o, t) => e.check(/* @__PURE__ */ rt(o, t)), e.gte = (o, t) => e.check(/* @__PURE__ */ Ue(o, t)), e.min = (o, t) => e.check(/* @__PURE__ */ Ue(o, t)), e.lt = (o, t) => e.check(/* @__PURE__ */ nt(o, t)), e.lte = (o, t) => e.check(/* @__PURE__ */ Ze(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Ze(o, t)), e.int = (o) => e.check(En(o)), e.safe = (o) => e.check(En(o)), e.positive = (o) => e.check(/* @__PURE__ */ rt(0, o)), e.nonnegative = (o) => e.check(/* @__PURE__ */ Ue(0, o)), e.negative = (o) => e.check(/* @__PURE__ */ nt(0, o)), e.nonpositive = (o) => e.check(/* @__PURE__ */ Ze(0, o)), e.multipleOf = (o, t) => e.check(/* @__PURE__ */ kt(o, t)), e.step = (o, t) => e.check(/* @__PURE__ */ kt(o, t)), e.finite = () => e;
const r = e._zod.bag;
e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null;
});
function Li(e) {
return /* @__PURE__ */ Dc(tn, e);
}
const gt = /* @__PURE__ */ v("ZodNumberFormat", (e, n) => {
xl.init(e, n), tn.init(e, n);
});
function En(e) {
return /* @__PURE__ */ jc(gt, e);
}
function Zd(e) {
return /* @__PURE__ */ Uc(gt, e);
}
function Cd(e) {
return /* @__PURE__ */ Tc(gt, e);
}
function Md(e) {
return /* @__PURE__ */ Ec(gt, e);
}
function Fd(e) {
return /* @__PURE__ */ Pc(gt, e);
}
const nn = /* @__PURE__ */ v("ZodBoolean", (e, n) => {
ri.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => cs(e, r, o);
});
function Ri(e) {
return /* @__PURE__ */ Nc(nn, e);
}
const rn = /* @__PURE__ */ v("ZodBigInt", (e, n) => {
ii.init(e, n), q.init(e, n), e._zod.processJSONSchema = (o, t, i) => ss(e, o), e.gte = (o, t) => e.check(/* @__PURE__ */ Ue(o, t)), e.min = (o, t) => e.check(/* @__PURE__ */ Ue(o, t)), e.gt = (o, t) => e.check(/* @__PURE__ */ rt(o, t)), e.gte = (o, t) => e.check(/* @__PURE__ */ Ue(o, t)), e.min = (o, t) => e.check(/* @__PURE__ */ Ue(o, t)), e.lt = (o, t) => e.check(/* @__PURE__ */ nt(o, t)), e.lte = (o, t) => e.check(/* @__PURE__ */ Ze(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Ze(o, t)), e.positive = (o) => e.check(/* @__PURE__ */ rt(BigInt(0), o)), e.negative = (o) => e.check(/* @__PURE__ */ nt(BigInt(0), o)), e.nonpositive = (o) => e.check(/* @__PURE__ */ Ze(BigInt(0), o)), e.nonnegative = (o) => e.check(/* @__PURE__ */ Ue(BigInt(0), o)), e.multipleOf = (o, t) => e.check(/* @__PURE__ */ kt(o, t));
const r = e._zod.bag;
e.minValue = r.minimum ?? null, e.maxValue = r.maximum ?? null, e.format = r.format ?? null;
});
function Ld(e) {
return /* @__PURE__ */ Zc(rn, e);
}
const hr = /* @__PURE__ */ v("ZodBigIntFormat", (e, n) => {
Dl.init(e, n), rn.init(e, n);
});
function Rd(e) {
return /* @__PURE__ */ Mc(hr, e);
}
function Bd(e) {
return /* @__PURE__ */ Fc(hr, e);
}
const Bi = /* @__PURE__ */ v("ZodSymbol", (e, n) => {
Ol.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => ds(e, r);
});
function Jd(e) {
return /* @__PURE__ */ Lc(Bi, e);
}
const Ji = /* @__PURE__ */ v("ZodUndefined", (e, n) => {
jl.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => ms(e, r);
});
function Vd(e) {
return /* @__PURE__ */ Rc(Ji, e);
}
const Vi = /* @__PURE__ */ v("ZodNull", (e, n) => {
Ul.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => fs(e, r, o);
});
function qi(e) {
return /* @__PURE__ */ Bc(Vi, e);
}
const Yi = /* @__PURE__ */ v("ZodAny", (e, n) => {
Tl.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => gs();
});
function qd() {
return /* @__PURE__ */ Jc(Yi);
}
const Ki = /* @__PURE__ */ v("ZodUnknown", (e, n) => {
El.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => hs();
});
function vt() {
return /* @__PURE__ */ Vc(Ki);
}
const Wi = /* @__PURE__ */ v("ZodNever", (e, n) => {
Pl.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => ps(e, r, o);
});
function $r(e) {
return /* @__PURE__ */ qc(Wi, e);
}
const Gi = /* @__PURE__ */ v("ZodVoid", (e, n) => {
Nl.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => vs(e, r);
});
function Yd(e) {
return /* @__PURE__ */ Yc(Gi, e);
}
const br = /* @__PURE__ */ v("ZodDate", (e, n) => {
Al.init(e, n), q.init(e, n), e._zod.processJSONSchema = (o, t, i) => $s(e, o), e.min = (o, t) => e.check(/* @__PURE__ */ Ue(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Ze(o, t));
const r = e._zod.bag;
e.minDate = r.minimum ? new Date(r.minimum) : null, e.maxDate = r.maximum ? new Date(r.maximum) : null;
});
function Kd(e) {
return /* @__PURE__ */ Kc(br, e);
}
const Hi = /* @__PURE__ */ v("ZodArray", (e, n) => {
Zl.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => js(e, r, o, t), e.element = n.element, e.min = (r, o) => e.check(/* @__PURE__ */ mt(r, o)), e.nonempty = (r) => e.check(/* @__PURE__ */ mt(1, r)), e.max = (r, o) => e.check(/* @__PURE__ */ Gt(r, o)), e.length = (r, o) => e.check(/* @__PURE__ */ Ht(r, o)), e.unwrap = () => e.element;
});
function on(e, n) {
return /* @__PURE__ */ Hc(Hi, e, n);
}
function Wd(e) {
const n = e._zod.def.shape;
return yr(Object.keys(n));
}
const an = /* @__PURE__ */ v("ZodObject", (e, n) => {
Ll.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Us(e, r, o, t), K(e, "shape", () => n.shape), e.keyof = () => yr(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: vt() }), e.loose = () => e.clone({ ...e._zod.def, catchall: vt() }), e.strict = () => e.clone({ ...e._zod.def, catchall: $r() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Ma(e, r), e.safeExtend = (r) => Fa(e, r), e.merge = (r) => La(e, r), e.pick = (r) => Za(e, r), e.omit = (r) => Ca(e, r), e.partial = (...r) => Ra(Sr, e, r[0]), e.required = (...r) => Ba(Ir, e, r[0]);
});
function Gd(e, n) {
const r = {
type: "object",
shape: e ?? {},
...$(n)
};
return new an(r);
}
function Hd(e, n) {
return new an({
type: "object",
shape: e,
catchall: $r(),
...$(n)
});
}
function Xd(e, n) {
return new an({
type: "object",
shape: e,
catchall: vt(),
...$(n)
});
}
const un = /* @__PURE__ */ v("ZodUnion", (e, n) => {
Fn.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Pi(e, r, o, t), e.options = n.options;
});
function _r(e, n) {
return new un({
type: "union",
options: e,
...$(n)
});
}
const Xi = /* @__PURE__ */ v("ZodXor", (e, n) => {
un.init(e, n), Rl.init(e, n), e._zod.processJSONSchema = (r, o, t) => Pi(e, r, o, t), e.options = n.options;
});
function Qd(e, n) {
return new Xi({
type: "union",
options: e,
inclusive: !1,
...$(n)
});
}
const Qi = /* @__PURE__ */ v("ZodDiscriminatedUnion", (e, n) => {
un.init(e, n), Bl.init(e, n);
});
function ef(e, n, r) {
return new Qi({
type: "union",
options: n,
discriminator: e,
...$(r)
});
}
const eo = /* @__PURE__ */ v("ZodIntersection", (e, n) => {
Jl.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ts(e, r, o, t);
});
function to(e, n) {
return new eo({
type: "intersection",
left: e,
right: n
});
}
const no = /* @__PURE__ */ v("ZodTuple", (e, n) => {
oi.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Es(e, r, o, t), e.rest = (r) => e.clone({
...e._zod.def,
rest: r
});
});
function ro(e, n, r) {
const o = n instanceof R, t = o ? r : n, i = o ? n : null;
return new no({
type: "tuple",
items: e,
rest: i,
...$(t)
});
}
const ln = /* @__PURE__ */ v("ZodRecord", (e, n) => {
Vl.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ps(e, r, o, t), e.keyType = n.keyType, e.valueType = n.valueType;
});
function io(e, n, r) {
return new ln({
type: "record",
keyType: e,
valueType: n,
...$(r)
});
}
function tf(e, n, r) {
const o = Me(e);
return o._zod.values = void 0, new ln({
type: "record",
keyType: o,
valueType: n,
...$(r)
});
}
function nf(e, n, r) {
return new ln({
type: "record",
keyType: e,
valueType: n,
mode: "loose",
...$(r)
});
}
const oo = /* @__PURE__ */ v("ZodMap", (e, n) => {
ql.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ds(e, r), e.keyType = n.keyType, e.valueType = n.valueType, e.min = (...r) => e.check(/* @__PURE__ */ it(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ it(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ xt(...r)), e.size = (...r) => e.check(/* @__PURE__ */ Wt(...r));
});
function rf(e, n, r) {
return new oo({
type: "map",
keyType: e,
valueType: n,
...$(r)
});
}
const ao = /* @__PURE__ */ v("ZodSet", (e, n) => {
Yl.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Os(e, r), e.min = (...r) => e.check(/* @__PURE__ */ it(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ it(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ xt(...r)), e.size = (...r) => e.check(/* @__PURE__ */ Wt(...r));
});
function of(e, n) {
return new ao({
type: "set",
valueType: e,
...$(n)
});
}
const zt = /* @__PURE__ */ v("ZodEnum", (e, n) => {
Kl.init(e, n), q.init(e, n), e._zod.processJSONSchema = (o, t, i) => bs(e, o, t), e.enum = n.entries, e.options = Object.values(n.entries);
const r = new Set(Object.keys(n.entries));
e.extract = (o, t) => {
const i = {};
for (const a of o)
if (r.has(a))
i[a] = n.entries[a];
else
throw new Error(`Key ${a} not found in enum`);
return new zt({
...n,
checks: [],
...$(t),
entries: i
});
}, e.exclude = (o, t) => {
const i = { ...n.entries };
for (const a of o)
if (r.has(a))
delete i[a];
else
throw new Error(`Key ${a} not found in enum`);
return new zt({
...n,
checks: [],
...$(t),
entries: i
});
};
});
function yr(e, n) {
const r = Array.isArray(e) ? Object.fromEntries(e.map((o) => [o, o])) : e;
return new zt({
type: "enum",
entries: r,
...$(n)
});
}
function af(e, n) {
return new zt({
type: "enum",
entries: e,
...$(n)
});
}
const uo = /* @__PURE__ */ v("ZodLiteral", (e, n) => {
Wl.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => _s(e, r, o), e.values = new Set(n.values), Object.defineProperty(e, "value", {
get() {
if (n.values.length > 1)
throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
return n.values[0];
}
});
});
function uf(e, n) {
return new uo({
type: "literal",
values: Array.isArray(e) ? e : [e],
...$(n)
});
}
const lo = /* @__PURE__ */ v("ZodFile", (e, n) => {
Gl.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ss(e, r, o), e.min = (r, o) => e.check(/* @__PURE__ */ it(r, o)), e.max = (r, o) => e.check(/* @__PURE__ */ xt(r, o)), e.mime = (r, o) => e.check(/* @__PURE__ */ Kn(Array.isArray(r) ? r : [r], o));
});
function lf(e) {
return /* @__PURE__ */ Xc(lo, e);
}
const co = /* @__PURE__ */ v("ZodTransform", (e, n) => {
Hl.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => xs(e, r), e._zod.parse = (r, o) => {
if (o.direction === "backward")
throw new Nn(e.constructor.name);
r.addIssue = (i) => {
if (typeof i == "string")
r.issues.push(_t(i, r.value, n));
else {
const a = i;
a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = r.value), a.inst ?? (a.inst = e), r.issues.push(_t(a));
}
};
const t = n.transform(r.value, r);
return t instanceof Promise ? t.then((i) => (r.value = i, r)) : (r.value = t, r);
};
});
function kr(e) {
return new co({
type: "transform",
transform: e
});
}
const Sr = /* @__PURE__ */ v("ZodOptional", (e, n) => {
ai.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ni(e, r, o, t), e.unwrap = () => e._zod.def.innerType;
});
function Zt(e) {
return new Sr({
type: "optional",
innerType: e
});
}
const so = /* @__PURE__ */ v("ZodExactOptional", (e, n) => {
Xl.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ni(e, r, o, t), e.unwrap = () => e._zod.def.innerType;
});
function fo(e) {
return new so({
type: "optional",
innerType: e
});
}
const mo = /* @__PURE__ */ v("ZodNullable", (e, n) => {
Ql.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ns(e, r, o, t), e.unwrap = () => e._zod.def.innerType;
});
function Ct(e) {
return new mo({
type: "nullable",
innerType: e
});
}
function cf(e) {
return Zt(Ct(e));
}
const vo = /* @__PURE__ */ v("ZodDefault", (e, n) => {
ec.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Zs(e, r, o, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
});
function po(e, n) {
return new vo({
type: "default",
innerType: e,
get defaultValue() {
return typeof n == "function" ? n() : Zn(n);
}
});
}
const go = /* @__PURE__ */ v("ZodPrefault", (e, n) => {
tc.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Cs(e, r, o, t), e.unwrap = () => e._zod.def.innerType;
});
function ho(e, n) {
return new go({
type: "prefault",
innerType: e,
get defaultValue() {
return typeof n == "function" ? n() : Zn(n);
}
});
}
const Ir = /* @__PURE__ */ v("ZodNonOptional", (e, n) => {
nc.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => As(e, r, o, t), e.unwrap = () => e._zod.def.innerType;
});
function $o(e, n) {
return new Ir({
type: "nonoptional",
innerType: e,
...$(n)
});
}
const bo = /* @__PURE__ */ v("ZodSuccess", (e, n) => {
rc.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Is(e, r, o), e.unwrap = () => e._zod.def.innerType;
});
function sf(e) {
return new bo({
type: "success",
innerType: e
});
}
const _o = /* @__PURE__ */ v("ZodCatch", (e, n) => {
ic.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ms(e, r, o, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
});
function yo(e, n) {
return new _o({
type: "catch",
innerType: e,
catchValue: typeof n == "function" ? n : () => n
});
}
const ko = /* @__PURE__ */ v("ZodNaN", (e, n) => {
oc.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => ys(e, r);
});
function df(e) {
return /* @__PURE__ */ Gc(ko, e);
}
const wr = /* @__PURE__ */ v("ZodPipe", (e, n) => {
ac.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Fs(e, r, o, t), e.in = n.in, e.out = n.out;
});
function Mt(e, n) {
return new wr({
type: "pipe",
in: e,
out: n
// ...util.normalizeParams(params),
});
}
const zr = /* @__PURE__ */ v("ZodCodec", (e, n) => {
wr.init(e, n), ui.init(e, n);
});
function ff(e, n, r) {
return new zr({
type: "pipe",
in: e,
out: n,
transform: r.decode,
reverseTransform: r.encode
});
}
const So = /* @__PURE__ */ v("ZodReadonly", (e, n) => {
uc.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ls(e, r, o, t), e.unwrap = () => e._zod.def.innerType;
});
function Io(e) {
return new So({
type: "readonly",
innerType: e
});
}
const wo = /* @__PURE__ */ v("ZodTemplateLiteral", (e, n) => {
lc.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => ks(e, r, o);
});
function mf(e, n) {
return new wo({
type: "template_literal",
parts: e,
...$(n)
});
}
const zo = /* @__PURE__ */ v("ZodLazy", (e, n) => {
dc.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Bs(e, r, o, t), e.unwrap = () => e._zod.def.getter();
});
function xo(e) {
return new zo({
type: "lazy",
getter: e
});
}
const Do = /* @__PURE__ */ v("ZodPromise", (e, n) => {
sc.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => Rs(e, r, o, t), e.unwrap = () => e._zod.def.innerType;
});
function vf(e) {
return new Do({
type: "promise",
innerType: e
});
}
const Oo = /* @__PURE__ */ v("ZodFunction", (e, n) => {
cc.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => zs(e, r);
});
function Pn(e) {
return new Oo({
type: "function",
input: Array.isArray(e == null ? void 0 : e.input) ? ro(e == null ? void 0 : e.input) : (e == null ? void 0 : e.input) ?? on(vt()),
output: (e == null ? void 0 : e.output) ?? vt()
});
}
const cn = /* @__PURE__ */ v("ZodCustom", (e, n) => {
fc.init(e, n), q.init(e, n), e._zod.processJSONSchema = (r, o, t) => ws(e, r);
});
function pf(e) {
const n = new se({
check: "custom"
// ...util.normalizeParams(params),
});
return n._zod.check = e, n;
}
function gf(e, n) {
return /* @__PURE__ */ Qc(cn, e ?? (() => !0), n);
}
function jo(e, n = {}) {
return /* @__PURE__ */ es(cn, e, n);
}
function Uo(e) {
return /* @__PURE__ */ ts(e);
}
const hf = rs, $f = is;
function bf(e, n = {}) {
const r = new cn({
type: "custom",
check: "custom",
fn: (o) => o instanceof e,
abort: !0,
...$(n)
});
return r._zod.bag.Class = e, r._zod.check = (o) => {
o.value instanceof e || o.issues.push({
code: "invalid_type",
expected: e.name,
input: o.value,
inst: r,
path: [...r._zod.def.path ?? []]
});
}, r;
}
const _f = (...e) => /* @__PURE__ */ os({
Codec: zr,
Boolean: nn,
String: Qt
}, ...e);
function yf(e) {
const n = xo(() => _r([Tn(e), Li(), Ri(), qi(), on(n), io(Tn(), n)]));
return n;
}
function kf(e, n) {
return Mt(kr(e), n);
}
const $g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
ZodAny: Yi,
ZodArray: Hi,
ZodBase64: mr,
ZodBase64URL: vr,
ZodBigInt: rn,
ZodBigIntFormat: hr,
ZodBoolean: nn,
ZodCIDRv4: dr,
ZodCIDRv6: fr,
ZodCUID: ir,
ZodCUID2: or,
ZodCatch: _o,
ZodCodec: zr,
ZodCustom: cn,
ZodCustomStringFormat: Dt,
ZodDate: br,
ZodDefault: vo,
ZodDiscriminatedUnion: Qi,
ZodE164: pr,
ZodEmail: tr,
ZodEmoji: nr,
ZodEnum: zt,
ZodExactOptional: so,
ZodFile: lo,
ZodFunction: Oo,
ZodGUID: At,
ZodIPv4: cr,
ZodIPv6: sr,
ZodIntersection: eo,
ZodJWT: gr,
ZodKSUID: lr,
ZodLazy: zo,
ZodLiteral: uo,
ZodMAC: Fi,
ZodMap: oo,
ZodNaN: ko,
ZodNanoID: rr,
ZodNever: Wi,
ZodNonOptional: Ir,
ZodNull: Vi,
ZodNullable: mo,
ZodNumber: tn,
ZodNumberFormat: gt,
ZodObject: an,
ZodOptional: Sr,
ZodPipe: wr,
ZodPrefault: go,
ZodPromise: Do,
ZodReadonly: So,
ZodRecord: ln,
ZodSet: ao,
ZodString: Qt,
ZodStringFormat: ue,
ZodSuccess: bo,
ZodSymbol: Bi,
ZodTemplateLiteral: wo,
ZodTransform: co,
ZodTuple: no,
ZodType: q,
ZodULID: ar,
ZodURL: en,
ZodUUID: qe,
ZodUndefined: Ji,
ZodUnion: un,
ZodUnknown: Ki,
ZodVoid: Gi,
ZodXID: ur,
ZodXor: Xi,
_ZodString: er,
_default: po,
_function: Pn,
any: qd,
array: on,
base64: Od,
base64url: jd,
bigint: Ld,
boolean: Ri,
catch: yo,
check: pf,
cidrv4: xd,
cidrv6: Dd,
codec: ff,
cuid: bd,
cuid2: _d,
custom: gf,
date: Kd,
describe: hf,
discriminatedUnion: ef,
e164: Ud,
email: cd,
emoji: hd,
enum: yr,
exactOptional: fo,
file: lf,
float32: Zd,
float64: Cd,
function: Pn,
guid: sd,
hash: Ad,
hex: Nd,
hostname: Pd,
httpUrl: gd,
instanceof: bf,
int: En,
int32: Md,
int64: Rd,
intersection: to,
ipv4: Id,
ipv6: zd,
json: yf,
jwt: Td,
keyof: Wd,
ksuid: Sd,
lazy: xo,
literal: uf,
looseObject: Xd,
looseRecord: nf,
mac: wd,
map: rf,
meta: $f,
nan: df,
nanoid: $d,
nativeEnum: af,
never: $r,
nonoptional: $o,
null: qi,
nullable: Ct,
nullish: cf,
number: Li,
object: Gd,
optional: Zt,
partialRecord: tf,
pipe: Mt,
prefault: ho,
preprocess: kf,
promise: vf,
readonly: Io,
record: io,
refine: jo,
set: of,
strictObject: Hd,
string: Tn,
stringFormat: Ed,
stringbool: _f,
success: sf,
superRefine: Uo,
symbol: Jd,
templateLiteral: mf,
transform: kr,
tuple: ro,
uint32: Fd,
uint64: Bd,
ulid: yd,
undefined: Vd,
union: _r,
unknown: vt,
url: pd,
uuid: dd,
uuidv4: fd,
uuidv6: md,
uuidv7: vd,
void: Yd,
xid: kd,
xor: Qd
}, Symbol.toStringTag, { value: "Module" })), bg = {
invalid_type: "invalid_type",
too_big: "too_big",
too_small: "too_small",
invalid_format: "invalid_format",
not_multiple_of: "not_multiple_of",
unrecognized_keys: "unrecognized_keys",
invalid_union: "invalid_union",
invalid_key: "invalid_key",
invalid_element: "invalid_element",
invalid_value: "invalid_value",
custom: "custom"
};
function _g(e) {
Ie({
customError: e
});
}
function yg() {
return Ie().customError;
}
var Pr;
Pr || (Pr = {});
const z = {
...$g,
...gg,
iso: Ws
}, kg = /* @__PURE__ */ new Set([
// Schema identification
"$schema",
"$ref",
"$defs",
"definitions",
// Core schema keywords
"$id",
"id",
"$comment",
"$anchor",
"$vocabulary",
"$dynamicRef",
"$dynamicAnchor",
// Type
"type",
"enum",
"const",
// Composition
"anyOf",
"oneOf",
"allOf",
"not",
// Object
"properties",
"required",
"additionalProperties",
"patternProperties",
"propertyNames",
"minProperties",
"maxProperties",
// Array
"items",
"prefixItems",
"additionalItems",
"minItems",
"maxItems",
"uniqueItems",
"contains",
"minContains",
"maxContains",
// String
"minLength",
"maxLength",
"pattern",
"format",
// Number
"minimum",
"maximum",
"exclusiveMinimum",
"exclusiveMaximum",
"multipleOf",
// Already handled metadata
"description",
"default",
// Content
"contentEncoding",
"contentMediaType",
"contentSchema",
// Unsupported (error-throwing)
"unevaluatedItems",
"unevaluatedProperties",
"if",
"then",
"else",
"dependentSchemas",
"dependentRequired",
// OpenAPI
"nullable",
"readOnly"
]);
function Sg(e, n) {
const r = e.$schema;
return r === "https://json-schema.org/draft/2020-12/schema" ? "draft-2020-12" : r === "http://json-schema.org/draft-07/schema#" ? "draft-7" : r === "http://json-schema.org/draft-04/schema#" ? "draft-4" : n ?? "draft-2020-12";
}
function Ig(e, n) {
if (!e.startsWith("#"))
throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
const r = e.slice(1).split("/").filter(Boolean);
if (r.length === 0)
return n.rootSchema;
const o = n.version === "draft-2020-12" ? "$defs" : "definitions";
if (r[0] === o) {
const t = r[1];
if (!t || !n.defs[t])
throw new Error(`Reference not found: ${e}`);
return n.defs[t];
}
throw new Error(`Reference not found: ${e}`);
}
function Sf(e, n) {
if (e.not !== void 0) {
if (typeof e.not == "object" && Object.keys(e.not).length === 0)
return z.never();
throw new Error("not is not supported in Zod (except { not: {} } for never)");
}
if (e.unevaluatedItems !== void 0)
throw new Error("unevaluatedItems is not supported");
if (e.unevaluatedProperties !== void 0)
throw new Error("unevaluatedProperties is not supported");
if (e.if !== void 0 || e.then !== void 0 || e.else !== void 0)
throw new Error("Conditional schemas (if/then/else) are not supported");
if (e.dependentSchemas !== void 0 || e.dependentRequired !== void 0)
throw new Error("dependentSchemas and dependentRequired are not supported");
if (e.$ref) {
const t = e.$ref;
if (n.refs.has(t))
return n.refs.get(t);
if (n.processing.has(t))
return z.lazy(() => {
if (!n.refs.has(t))
throw new Error(`Circular reference not resolved: ${t}`);
return n.refs.get(t);
});
n.processing.add(t);
const i = Ig(t, n), a = ke(i, n);
return n.refs.set(t, a), n.processing.delete(t), a;
}
if (e.enum !== void 0) {
const t = e.enum;
if (n.version === "openapi-3.0" && e.nullable === !0 && t.length === 1 && t[0] === null)
return z.null();
if (t.length === 0)
return z.never();
if (t.length === 1)
return z.literal(t[0]);
if (t.every((a) => typeof a == "string"))
return z.enum(t);
const i = t.map((a) => z.literal(a));
return i.length < 2 ? i[0] : z.union([i[0], i[1], ...i.slice(2)]);
}
if (e.const !== void 0)
return z.literal(e.const);
const r = e.type;
if (Array.isArray(r)) {
const t = r.map((i) => {
const a = { ...e, type: i };
return Sf(a, n);
});
return t.length === 0 ? z.never() : t.length === 1 ? t[0] : z.union(t);
}
if (!r)
return z.any();
let o;
switch (r) {
case "string": {
let t = z.string();
if (e.format) {
const i = e.format;
i === "email" ? t = t.check(z.email()) : i === "uri" || i === "uri-reference" ? t = t.check(z.url()) : i === "uuid" || i === "guid" ? t = t.check(z.uuid()) : i === "date-time" ? t = t.check(z.iso.datetime()) : i === "date" ? t = t.check(z.iso.date()) : i === "time" ? t = t.check(z.iso.time()) : i === "duration" ? t = t.check(z.iso.duration()) : i === "ipv4" ? t = t.check(z.ipv4()) : i === "ipv6" ? t = t.check(z.ipv6()) : i === "mac" ? t = t.check(z.mac()) : i === "cidr" ? t = t.check(z.cidrv4()) : i === "cidr-v6" ? t = t.check(z.cidrv6()) : i === "base64" ? t = t.check(z.base64()) : i === "base64url" ? t = t.check(z.base64url()) : i === "e164" ? t = t.check(z.e164()) : i === "jwt" ? t = t.check(z.jwt()) : i === "emoji" ? t = t.check(z.emoji()) : i === "nanoid" ? t = t.check(z.nanoid()) : i === "cuid" ? t = t.check(z.cuid()) : i === "cuid2" ? t = t.check(z.cuid2()) : i === "ulid" ? t = t.check(z.ulid()) : i === "xid" ? t = t.check(z.xid()) : i === "ksuid" && (t = t.check(z.ksuid()));
}
typeof e.minLength == "number" && (t = t.min(e.minLength)), typeof e.maxLength == "number" && (t = t.max(e.maxLength)), e.pattern && (t = t.regex(new RegExp(e.pattern))), o = t;
break;
}
case "number":
case "integer": {
let t = r === "integer" ? z.number().int() : z.number();
typeof e.minimum == "number" && (t = t.min(e.minimum)), typeof e.maximum == "number" && (t = t.max(e.maximum)), typeof e.exclusiveMinimum == "number" ? t = t.gt(e.exclusiveMinimum) : e.exclusiveMinimum === !0 && typeof e.minimum == "number" && (t = t.gt(e.minimum)), typeof e.exclusiveMaximum == "number" ? t = t.lt(e.exclusiveMaximum) : e.exclusiveMaximum === !0 && typeof e.maximum == "number" && (t = t.lt(e.maximum)), typeof e.multipleOf == "number" && (t = t.multipleOf(e.multipleOf)), o = t;
break;
}
case "boolean": {
o = z.boolean();
break;
}
case "null": {
o = z.null();
break;
}
case "object": {
const t = {}, i = e.properties || {}, a = new Set(e.required || []);
for (const [c, l] of Object.entries(i)) {
const s = ke(l, n);
t[c] = a.has(c) ? s : s.optional();
}
if (e.propertyNames) {
const c = ke(e.propertyNames, n), l = e.additionalProperties && typeof e.additionalProperties == "object" ? ke(e.additionalProperties, n) : z.any();
if (Object.keys(t).length === 0) {
o = z.record(c, l);
break;
}
const s = z.object(t).passthrough(), d = z.looseRecord(c, l);
o = z.intersection(s, d);
break;
}
if (e.patternProperties) {
const c = e.patternProperties, l = Object.keys(c), s = [];
for (const m of l) {
const p = ke(c[m], n), g = z.string().regex(new RegExp(m));
s.push(z.looseRecord(g, p));
}
const d = [];
if (Object.keys(t).length > 0 && d.push(z.object(t).passthrough()), d.push(...s), d.length === 0)
o = z.object({}).passthrough();
else if (d.length === 1)
o = d[0];
else {
let m = z.intersection(d[0], d[1]);
for (let p = 2; p < d.length; p++)
m = z.intersection(m, d[p]);
o = m;
}
break;
}
const u = z.object(t);
e.additionalProperties === !1 ? o = u.strict() : typeof e.additionalProperties == "object" ? o = u.catchall(ke(e.additionalProperties, n)) : o = u.passthrough();
break;
}
case "array": {
const t = e.prefixItems, i = e.items;
if (t && Array.isArray(t)) {
const a = t.map((c) => ke(c, n)), u = i && typeof i == "object" && !Array.isArray(i) ? ke(i, n) : void 0;
u ? o = z.tuple(a).rest(u) : o = z.tuple(a), typeof e.minItems == "number" && (o = o.check(z.minLength(e.minItems))), typeof e.maxItems == "number" && (o = o.check(z.maxLength(e.maxItems)));
} else if (Array.isArray(i)) {
const a = i.map((c) => ke(c, n)), u = e.additionalItems && typeof e.additionalItems == "object" ? ke(e.additionalItems, n) : void 0;
u ? o = z.tuple(a).rest(u) : o = z.tuple(a), typeof e.minItems == "number" && (o = o.check(z.minLength(e.minItems))), typeof e.maxItems == "number" && (o = o.check(z.maxLength(e.maxItems)));
} else if (i !== void 0) {
const a = ke(i, n);
let u = z.array(a);
typeof e.minItems == "number" && (u = u.min(e.minItems)), typeof e.maxItems == "number" && (u = u.max(e.maxItems)), o = u;
} else
o = z.array(z.any());
break;
}
default:
throw new Error(`Unsupported type: ${r}`);
}
return e.description && (o = o.describe(e.description)), e.default !== void 0 && (o = o.default(e.default)), o;
}
function ke(e, n) {
if (typeof e == "boolean")
return e ? z.any() : z.never();
let r = Sf(e, n);
const o = e.type || e.enum !== void 0 || e.const !== void 0;
if (e.anyOf && Array.isArray(e.anyOf)) {
const u = e.anyOf.map((l) => ke(l, n)), c = z.union(u);
r = o ? z.intersection(r, c) : c;
}
if (e.oneOf && Array.isArray(e.oneOf)) {
const u = e.oneOf.map((l) => ke(l, n)), c = z.xor(u);
r = o ? z.intersection(r, c) : c;
}
if (e.allOf && Array.isArray(e.allOf))
if (e.allOf.length === 0)
r = o ? r : z.any();
else {
let u = o ? r : ke(e.allOf[0], n);
const c = o ? 0 : 1;
for (let l = c; l < e.allOf.length; l++)
u = z.intersection(u, ke(e.allOf[l], n));
r = u;
}
e.nullable === !0 && n.version === "openapi-3.0" && (r = z.nullable(r)), e.readOnly === !0 && (r = z.readonly(r));
const t = {}, i = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
for (const u of i)
u in e && (t[u] = e[u]);
const a = ["contentEncoding", "contentMediaType", "contentSchema"];
for (const u of a)
u in e && (t[u] = e[u]);
for (const u of Object.keys(e))
kg.has(u) || (t[u] = e[u]);
return Object.keys(t).length > 0 && n.registry.add(r, t), r;
}
function wg(e, n) {
if (typeof e == "boolean")
return e ? z.any() : z.never();
const r = Sg(e, n == null ? void 0 : n.defaultTarget), o = e.$defs || e.definitions || {}, t = {
version: r,
defs: o,
refs: /* @__PURE__ */ new Map(),
processing: /* @__PURE__ */ new Set(),
rootSchema: e,
registry: (n == null ? void 0 : n.registry) ?? Ae
};
return ke(e, t);
}
function zg(e) {
return /* @__PURE__ */ yc(Qt, e);
}
function xg(e) {
return /* @__PURE__ */ Oc(tn, e);
}
function Dg(e) {
return /* @__PURE__ */ Ac(nn, e);
}
function Og(e) {
return /* @__PURE__ */ Cc(rn, e);
}
function jg(e) {
return /* @__PURE__ */ Wc(br, e);
}
const Ug = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
bigint: Og,
boolean: Dg,
date: jg,
number: xg,
string: zg
}, Symbol.toStringTag, { value: "Module" }));
Ie(mc());
const Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
$brand: Oa,
$input: $c,
$output: hc,
NEVER: Da,
TimePrecision: Sc,
ZodAny: Yi,
ZodArray: Hi,
ZodBase64: mr,
ZodBase64URL: vr,
ZodBigInt: rn,
ZodBigIntFormat: hr,
ZodBoolean: nn,
ZodCIDRv4: dr,
ZodCIDRv6: fr,
ZodCUID: ir,
ZodCUID2: or,
ZodCatch: _o,
ZodCodec: zr,
ZodCustom: cn,
ZodCustomStringFormat: Dt,
ZodDate: br,
ZodDefault: vo,
ZodDiscriminatedUnion: Qi,
ZodE164: pr,
ZodEmail: tr,
ZodEmoji: nr,
ZodEnum: zt,
ZodError: hg,
ZodExactOptional: so,
ZodFile: lo,
get ZodFirstPartyTypeKind() {
return Pr;
},
ZodFunction: Oo,
ZodGUID: At,
ZodIPv4: cr,
ZodIPv6: sr,
ZodISODate: Zi,
ZodISODateTime: Ai,
ZodISODuration: Mi,
ZodISOTime: Ci,
ZodIntersection: eo,
ZodIssueCode: bg,
ZodJWT: gr,
ZodKSUID: lr,
ZodLazy: zo,
ZodLiteral: uo,
ZodMAC: Fi,
ZodMap: oo,
ZodNaN: ko,
ZodNanoID: rr,
ZodNever: Wi,
ZodNonOptional: Ir,
ZodNull: Vi,
ZodNullable: mo,
ZodNumber: tn,
ZodNumberFormat: gt,
ZodObject: an,
ZodOptional: Sr,
ZodPipe: wr,
ZodPrefault: go,
ZodPromise: Do,
ZodReadonly: So,
ZodRealError: Ne,
ZodRecord: ln,
ZodSet: ao,
ZodString: Qt,
ZodStringFormat: ue,
ZodSuccess: bo,
ZodSymbol: Bi,
ZodTemplateLiteral: wo,
ZodTransform: co,
ZodTuple: no,
ZodType: q,
ZodULID: ar,
ZodURL: en,
ZodUUID: qe,
ZodUndefined: Ji,
ZodUnion: un,
ZodUnknown: Ki,
ZodVoid: Gi,
ZodXID: ur,
ZodXor: Xi,
_ZodString: er,
_default: po,
_function: Pn,
any: qd,
array: on,
base64: Od,
base64url: jd,
bigint: Ld,
boolean: Ri,
catch: yo,
check: pf,
cidrv4: xd,
cidrv6: Dd,
clone: Me,
codec: ff,
coerce: Ug,
config: Ie,
core: pg,
cuid: bd,
cuid2: _d,
custom: gf,
date: Kd,
decode: nd,
decodeAsync: id,
describe: hf,
discriminatedUnion: ef,
e164: Ud,
email: cd,
emoji: hd,
encode: td,
encodeAsync: rd,
endsWith: Yn,
enum: yr,
exactOptional: fo,
file: lf,
flattenError: Fr,
float32: Zd,
float64: Cd,
formatError: Lr,
fromJSONSchema: wg,
function: Pn,
getErrorMap: yg,
globalRegistry: Ae,
gt: rt,
gte: Ue,
guid: sd,
hash: Ad,
hex: Nd,
hostname: Pd,
httpUrl: gd,
includes: Vn,
instanceof: bf,
int: En,
int32: Md,
int64: Rd,
intersection: to,
ipv4: Id,
ipv6: zd,
iso: Ws,
json: yf,
jwt: Td,
keyof: Wd,
ksuid: Sd,
lazy: xo,
length: Ht,
literal: uf,
locales: gc,
looseObject: Xd,
looseRecord: nf,
lowercase: Bn,
lt: nt,
lte: Ze,
mac: wd,
map: rf,
maxLength: Gt,
maxSize: xt,
meta: $f,
mime: Kn,
minLength: mt,
minSize: it,
multipleOf: kt,
nan: df,
nanoid: $d,
nativeEnum: af,
negative: ji,
never: $r,
nonnegative: Ti,
nonoptional: $o,
nonpositive: Ui,
normalize: Wn,
null: qi,
nullable: Ct,
nullish: cf,
number: Li,
object: Gd,
optional: Zt,
overwrite: He,
parse: Hs,
parseAsync: Xs,
partialRecord: tf,
pipe: Mt,
positive: Oi,
prefault: ho,
preprocess: kf,
prettifyError: Ga,
promise: vf,
property: Ei,
readonly: Io,
record: io,
refine: jo,
regex: Rn,
regexes: Xr,
registry: li,
safeDecode: ad,
safeDecodeAsync: ld,
safeEncode: od,
safeEncodeAsync: ud,
safeParse: Qs,
safeParseAsync: ed,
set: of,
setErrorMap: _g,
size: Wt,
slugify: Qn,
startsWith: qn,
strictObject: Hd,
string: Tn,
stringFormat: Ed,
stringbool: _f,
success: sf,
superRefine: Uo,
symbol: Jd,
templateLiteral: mf,
toJSONSchema: Js,
toLowerCase: Hn,
toUpperCase: Xn,
transform: kr,
treeifyError: Ka,
trim: Gn,
tuple: ro,
uint32: Fd,
uint64: Bd,
ulid: yd,
undefined: Vd,
union: _r,
unknown: vt,
uppercase: Jn,
url: pd,
util: qa,
uuid: dd,
uuidv4: fd,
uuidv6: md,
uuidv7: vd,
void: Yd,
xid: kd,
xor: Qd
}, Symbol.toStringTag, { value: "Module" }));
function Xe(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var gn = { exports: {} }, Tg = gn.exports, ta;
function If() {
return ta || (ta = 1, (function(e, n) {
(function(r, o) {
e.exports = o();
})(Tg, (function() {
var r = 1e3, o = 6e4, t = 36e5, i = "millisecond", a = "second", u = "minute", c = "hour", l = "day", s = "week", d = "month", m = "quarter", p = "year", g = "date", f = "Invalid Date", h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|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, y = { 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(T) {
var O = ["th", "st", "nd", "rd"], w = T % 100;
return "[" + T + (O[(w - 20) % 10] || O[w] || O[0]) + "]";
} }, C = function(T, O, w) {
var P = String(T);
return !P || P.length >= O ? T : "" + Array(O + 1 - P.length).join(w) + T;
}, B = { s: C, z: function(T) {
var O = -T.utcOffset(), w = Math.abs(O), P = Math.floor(w / 60), x = w % 60;
return (O <= 0 ? "+" : "-") + C(P, 2, "0") + ":" + C(x, 2, "0");
}, m: function T(O, w) {
if (O.date() < w.date()) return -T(w, O);
var P = 12 * (w.year() - O.year()) + (w.month() - O.month()), x = O.clone().add(P, d), J = w - x < 0, V = O.clone().add(P + (J ? -1 : 1), d);
return +(-(P + (w - x) / (J ? x - V : V - x)) || 0);
}, a: function(T) {
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
}, p: function(T) {
return { M: d, y: p, w: s, d: l, D: g, h: c, m: u, s: a, ms: i, Q: m }[T] || String(T || "").toLowerCase().replace(/s$/, "");
}, u: function(T) {
return T === void 0;
} }, A = "en", U = {};
U[A] = y;
var I = "$isDayjsObject", _ = function(T) {
return T instanceof le || !(!T || !T[I]);
}, Y = function T(O, w, P) {
var x;
if (!O) return A;
if (typeof O == "string") {
var J = O.toLowerCase();
U[J] && (x = J), w && (U[J] = w, x = J);
var V = O.split("-");
if (!x && V.length > 1) return T(V[0]);
} else {
var Q = O.name;
U[Q] = O, x = Q;
}
return !P && x && (A = x), x || !P && A;
}, L = function(T, O) {
if (_(T)) return T.clone();
var w = typeof O == "object" ? O : {};
return w.date = T, w.args = arguments, new le(w);
}, Z = B;
Z.l = Y, Z.i = _, Z.w = function(T, O) {
return L(T, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
};
var le = (function() {
function T(w) {
this.$L = Y(w.locale, null, !0), this.parse(w), this.$x = this.$x || w.x || {}, this[I] = !0;
}
var O = T.prototype;
return O.parse = function(w) {
this.$d = (function(P) {
var x = P.date, J = P.utc;
if (x === null) return /* @__PURE__ */ new Date(NaN);
if (Z.u(x)) return /* @__PURE__ */ new Date();
if (x instanceof Date) return new Date(x);
if (typeof x == "string" && !/Z$/i.test(x)) {
var V = x.match(h);
if (V) {
var Q = V[2] - 1 || 0, de = (V[7] || "0").substring(0, 3);
return J ? new Date(Date.UTC(V[1], Q, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0, de)) : new Date(V[1], Q, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0, de);
}
}
return new Date(x);
})(w), this.init();
}, O.init = function() {
var w = this.$d;
this.$y = w.getFullYear(), this.$M = w.getMonth(), this.$D = w.getDate(), this.$W = w.getDay(), this.$H = w.getHours(), this.$m = w.getMinutes(), this.$s = w.getSeconds(), this.$ms = w.getMilliseconds();
}, O.$utils = function() {
return Z;
}, O.isValid = function() {
return this.$d.toString() !== f;
}, O.isSame = function(w, P) {
var x = L(w);
return this.startOf(P) <= x && x <= this.endOf(P);
}, O.isAfter = function(w, P) {
return L(w) < this.startOf(P);
}, O.isBefore = function(w, P) {
return this.endOf(P) < L(w);
}, O.$g = function(w, P, x) {
return Z.u(w) ? this[P] : this.set(x, w);
}, O.unix = function() {
return Math.floor(this.valueOf() / 1e3);
}, O.valueOf = function() {
return this.$d.getTime();
}, O.startOf = function(w, P) {
var x = this, J = !!Z.u(P) || P, V = Z.p(w), Q = function(We, $e) {
var Fe = Z.w(x.$u ? Date.UTC(x.$y, $e, We) : new Date(x.$y, $e, We), x);
return J ? Fe : Fe.endOf(l);
}, de = function(We, $e) {
return Z.w(x.toDate()[We].apply(x.toDate("s"), (J ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($e)), x);
}, he = this.$W, ve = this.$M, we = this.$D, Qe = "set" + (this.$u ? "UTC" : "");
switch (V) {
case p:
return J ? Q(1, 0) : Q(31, 11);
case d:
return J ? Q(1, ve) : Q(0, ve + 1);
case s:
var Ke = this.$locale().weekStart || 0, et = (he < Ke ? he + 7 : he) - Ke;
return Q(J ? we - et : we + (6 - et), ve);
case l:
case g:
return de(Qe + "Hours", 0);
case c:
return de(Qe + "Minutes", 1);
case u:
return de(Qe + "Seconds", 2);
case a:
return de(Qe + "Milliseconds", 3);
default:
return this.clone();
}
}, O.endOf = function(w) {
return this.startOf(w, !1);
}, O.$set = function(w, P) {
var x, J = Z.p(w), V = "set" + (this.$u ? "UTC" : ""), Q = (x = {}, x[l] = V + "Date", x[g] = V + "Date", x[d] = V + "Month", x[p] = V + "FullYear", x[c] = V + "Hours", x[u] = V + "Minutes", x[a] = V + "Seconds", x[i] = V + "Milliseconds", x)[J], de = J === l ? this.$D + (P - this.$W) : P;
if (J === d || J === p) {
var he = this.clone().set(g, 1);
he.$d[Q](de), he.init(), this.$d = he.set(g, Math.min(this.$D, he.daysInMonth())).$d;
} else Q && this.$d[Q](de);
return this.init(), this;
}, O.set = function(w, P) {
return this.clone().$set(w, P);
}, O.get = function(w) {
return this[Z.p(w)]();
}, O.add = function(w, P) {
var x, J = this;
w = Number(w);
var V = Z.p(P), Q = function(ve) {
var we = L(J);
return Z.w(we.date(we.date() + Math.round(ve * w)), J);
};
if (V === d) return this.set(d, this.$M + w);
if (V === p) return this.set(p, this.$y + w);
if (V === l) return Q(1);
if (V === s) return Q(7);
var de = (x = {}, x[u] = o, x[c] = t, x[a] = r, x)[V] || 1, he = this.$d.getTime() + w * de;
return Z.w(he, this);
}, O.subtract = function(w, P) {
return this.add(-1 * w, P);
}, O.format = function(w) {
var P = this, x = this.$locale();
if (!this.isValid()) return x.invalidDate || f;
var J = w || "YYYY-MM-DDTHH:mm:ssZ", V = Z.z(this), Q = this.$H, de = this.$m, he = this.$M, ve = x.weekdays, we = x.months, Qe = x.meridiem, Ke = function($e, Fe, tt, ht) {
return $e && ($e[Fe] || $e(P, J)) || tt[Fe].slice(0, ht);
}, et = function($e) {
return Z.s(Q % 12 || 12, $e, "0");
}, We = Qe || function($e, Fe, tt) {
var ht = $e < 12 ? "AM" : "PM";
return tt ? ht.toLowerCase() : ht;
};
return J.replace(b, (function($e, Fe) {
return Fe || (function(tt) {
switch (tt) {
case "YY":
return String(P.$y).slice(-2);
case "YYYY":
return Z.s(P.$y, 4, "0");
case "M":
return he + 1;
case "MM":
return Z.s(he + 1, 2, "0");
case "MMM":
return Ke(x.monthsShort, he, we, 3);
case "MMMM":
return Ke(we, he);
case "D":
return P.$D;
case "DD":
return Z.s(P.$D, 2, "0");
case "d":
return String(P.$W);
case "dd":
return Ke(x.weekdaysMin, P.$W, ve, 2);
case "ddd":
return Ke(x.weekdaysShort, P.$W, ve, 3);
case "dddd":
return ve[P.$W];
case "H":
return String(Q);
case "HH":
return Z.s(Q, 2, "0");
case "h":
return et(1);
case "hh":
return et(2);
case "a":
return We(Q, de, !0);
case "A":
return We(Q, de, !1);
case "m":
return String(de);
case "mm":
return Z.s(de, 2, "0");
case "s":
return String(P.$s);
case "ss":
return Z.s(P.$s, 2, "0");
case "SSS":
return Z.s(P.$ms, 3, "0");
case "Z":
return V;
}
return null;
})($e) || V.replace(":", "");
}));
}, O.utcOffset = function() {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}, O.diff = function(w, P, x) {
var J, V = this, Q = Z.p(P), de = L(w), he = (de.utcOffset() - this.utcOffset()) * o, ve = this - de, we = function() {
return Z.m(V, de);
};
switch (Q) {
case p:
J = we() / 12;
break;
case d:
J = we();
break;
case m:
J = we() / 3;
break;
case s:
J = (ve - he) / 6048e5;
break;
case l:
J = (ve - he) / 864e5;
break;
case c:
J = ve / t;
break;
case u:
J = ve / o;
break;
case a:
J = ve / r;
break;
default:
J = ve;
}
return x ? J : Z.a(J);
}, O.daysInMonth = function() {
return this.endOf(d).$D;
}, O.$locale = function() {
return U[this.$L];
}, O.locale = function(w, P) {
if (!w) return this.$L;
var x = this.clone(), J = Y(w, P, !0);
return J && (x.$L = J), x;
}, O.clone = function() {
return Z.w(this.$d, this);
}, O.toDate = function() {
return new Date(this.valueOf());
}, O.toJSON = function() {
return this.isValid() ? this.toISOString() : null;
}, O.toISOString = function() {
return this.$d.toISOString();
}, O.toString = function() {
return this.$d.toUTCString();
}, T;
})(), ne = le.prototype;
return L.prototype = ne, [["$ms", i], ["$s", a], ["$m", u], ["$H", c], ["$W", l], ["$M", d], ["$y", p], ["$D", g]].forEach((function(T) {
ne[T[1]] = function(O) {
return this.$g(O, T[0], T[1]);
};
})), L.extend = function(T, O) {
return T.$i || (T(O, le, L), T.$i = !0), L;
}, L.locale = Y, L.isDayjs = _, L.unix = function(T) {
return L(1e3 * T);
}, L.en = U[A], L.Ls = U, L.p = {}, L;
}));
})(gn)), gn.exports;
}
var Eg = If();
const Se = /* @__PURE__ */ Xe(Eg);
var hn = { exports: {} }, Pg = hn.exports, na;
function Ng() {
return na || (na = 1, (function(e, n) {
(function(r, o) {
e.exports = o();
})(Pg, (function() {
var r, o, t = 1e3, i = 6e4, a = 36e5, u = 864e5, c = /\[([^\]]+)]|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, l = 31536e6, s = 2628e6, d = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, m = { years: l, months: s, days: u, hours: a, minutes: i, seconds: t, milliseconds: 1, weeks: 6048e5 }, p = function(U) {
return U instanceof B;
}, g = function(U, I, _) {
return new B(U, _, I.$l);
}, f = function(U) {
return o.p(U) + "s";
}, h = function(U) {
return U < 0;
}, b = function(U) {
return h(U) ? Math.ceil(U) : Math.floor(U);
}, y = function(U) {
return Math.abs(U);
}, C = function(U, I) {
return U ? h(U) ? { negative: !0, format: "" + y(U) + I } : { negative: !1, format: "" + U + I } : { negative: !1, format: "" };
}, B = (function() {
function U(_, Y, L) {
var Z = this;
if (this.$d = {}, this.$l = L, _ === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), Y) return g(_ * m[f(Y)], this);
if (typeof _ == "number") return this.$ms = _, this.parseFromMilliseconds(), this;
if (typeof _ == "object") return Object.keys(_).forEach((function(T) {
Z.$d[f(T)] = _[T];
})), this.calMilliseconds(), this;
if (typeof _ == "string") {
var le = _.match(d);
if (le) {
var ne = le.slice(2).map((function(T) {
return T != null ? Number(T) : 0;
}));
return this.$d.years = ne[0], this.$d.months = ne[1], this.$d.weeks = ne[2], this.$d.days = ne[3], this.$d.hours = ne[4], this.$d.minutes = ne[5], this.$d.seconds = ne[6], this.calMilliseconds(), this;
}
}
return this;
}
var I = U.prototype;
return I.calMilliseconds = function() {
var _ = this;
this.$ms = Object.keys(this.$d).reduce((function(Y, L) {
return Y + (_.$d[L] || 0) * m[L];
}), 0);
}, I.parseFromMilliseconds = function() {
var _ = this.$ms;
this.$d.years = b(_ / l), _ %= l, this.$d.months = b(_ / s), _ %= s, this.$d.days = b(_ / u), _ %= u, this.$d.hours = b(_ / a), _ %= a, this.$d.minutes = b(_ / i), _ %= i, this.$d.seconds = b(_ / t), _ %= t, this.$d.milliseconds = _;
}, I.toISOString = function() {
var _ = C(this.$d.years, "Y"), Y = C(this.$d.months, "M"), L = +this.$d.days || 0;
this.$d.weeks && (L += 7 * this.$d.weeks);
var Z = C(L, "D"), le = C(this.$d.hours, "H"), ne = C(this.$d.minutes, "M"), T = this.$d.seconds || 0;
this.$d.milliseconds && (T += this.$d.milliseconds / 1e3, T = Math.round(1e3 * T) / 1e3);
var O = C(T, "S"), w = _.negative || Y.negative || Z.negative || le.negative || ne.negative || O.negative, P = le.format || ne.format || O.format ? "T" : "", x = (w ? "-" : "") + "P" + _.format + Y.format + Z.format + P + le.format + ne.format + O.format;
return x === "P" || x === "-P" ? "P0D" : x;
}, I.toJSON = function() {
return this.toISOString();
}, I.format = function(_) {
var Y = _ || "YYYY-MM-DDTHH:mm:ss", L = { Y: this.$d.years, YY: o.s(this.$d.years, 2, "0"), YYYY: o.s(this.$d.years, 4, "0"), M: this.$d.months, MM: o.s(this.$d.months, 2, "0"), D: this.$d.days, DD: o.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: o.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: o.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: o.s(this.$d.seconds, 2, "0"), SSS: o.s(this.$d.milliseconds, 3, "0") };
return Y.replace(c, (function(Z, le) {
return le || String(L[Z]);
}));
}, I.as = function(_) {
return this.$ms / m[f(_)];
}, I.get = function(_) {
var Y = this.$ms, L = f(_);
return L === "milliseconds" ? Y %= 1e3 : Y = L === "weeks" ? b(Y / m[L]) : this.$d[L], Y || 0;
}, I.add = function(_, Y, L) {
var Z;
return Z = Y ? _ * m[f(Y)] : p(_) ? _.$ms : g(_, this).$ms, g(this.$ms + Z * (L ? -1 : 1), this);
}, I.subtract = function(_, Y) {
return this.add(_, Y, !0);
}, I.locale = function(_) {
var Y = this.clone();
return Y.$l = _, Y;
}, I.clone = function() {
return g(this.$ms, this);
}, I.humanize = function(_) {
return r().add(this.$ms, "ms").locale(this.$l).fromNow(!_);
}, I.valueOf = function() {
return this.asMilliseconds();
}, I.milliseconds = function() {
return this.get("milliseconds");
}, I.asMilliseconds = function() {
return this.as("milliseconds");
}, I.seconds = function() {
return this.get("seconds");
}, I.asSeconds = function() {
return this.as("seconds");
}, I.minutes = function() {
return this.get("minutes");
}, I.asMinutes = function() {
return this.as("minutes");
}, I.hours = function() {
return this.get("hours");
}, I.asHours = function() {
return this.as("hours");
}, I.days = function() {
return this.get("days");
}, I.asDays = function() {
return this.as("days");
}, I.weeks = function() {
return this.get("weeks");
}, I.asWeeks = function() {
return this.as("weeks");
}, I.months = function() {
return this.get("months");
}, I.asMonths = function() {
return this.as("months");
}, I.years = function() {
return this.get("years");
}, I.asYears = function() {
return this.as("years");
}, U;
})(), A = function(U, I, _) {
return U.add(I.years() * _, "y").add(I.months() * _, "M").add(I.days() * _, "d").add(I.hours() * _, "h").add(I.minutes() * _, "m").add(I.seconds() * _, "s").add(I.milliseconds() * _, "ms");
};
return function(U, I, _) {
r = _, o = _().$utils(), _.duration = function(Z, le) {
var ne = _.locale();
return g(Z, { $l: ne }, le);
}, _.isDuration = p;
var Y = I.prototype.add, L = I.prototype.subtract;
I.prototype.add = function(Z, le) {
return p(Z) ? A(this, Z, 1) : Y.bind(this)(Z, le);
}, I.prototype.subtract = function(Z, le) {
return p(Z) ? A(this, Z, -1) : L.bind(this)(Z, le);
};
};
}));
})(hn)), hn.exports;
}
var Ag = Ng();
const Zg = /* @__PURE__ */ Xe(Ag);
var $n = { exports: {} }, Cg = $n.exports, ra;
function Mg() {
return ra || (ra = 1, (function(e, n) {
(function(r, o) {
e.exports = o();
})(Cg, (function() {
return function(r, o) {
o.prototype.isSameOrAfter = function(t, i) {
return this.isSame(t, i) || this.isAfter(t, i);
};
};
}));
})($n)), $n.exports;
}
var Fg = Mg();
const Lg = /* @__PURE__ */ Xe(Fg);
var bn = { exports: {} }, Rg = bn.exports, ia;
function Bg() {
return ia || (ia = 1, (function(e, n) {
(function(r, o) {
e.exports = o();
})(Rg, (function() {
return function(r, o) {
o.prototype.isSameOrBefore = function(t, i) {
return this.isSame(t, i) || this.isBefore(t, i);
};
};
}));
})(bn)), bn.exports;
}
var Jg = Bg();
const Vg = /* @__PURE__ */ Xe(Jg);
var _n = { exports: {} }, qg = _n.exports, oa;
function Yg() {
return oa || (oa = 1, (function(e, n) {
(function(r, o) {
e.exports = o();
})(qg, (function() {
return function(r, o, t) {
var i = function(a, u) {
if (!u || !u.length || u.length === 1 && !u[0] || u.length === 1 && Array.isArray(u[0]) && !u[0].length) return null;
var c;
u.length === 1 && u[0].length > 0 && (u = u[0]), c = (u = u.filter((function(s) {
return s;
})))[0];
for (var l = 1; l < u.length; l += 1) u[l].isValid() && !u[l][a](c) || (c = u[l]);
return c;
};
t.max = function() {
var a = [].slice.call(arguments, 0);
return i("isAfter", a);
}, t.min = function() {
var a = [].slice.call(arguments, 0);
return i("isBefore", a);
};
};
}));
})(_n)), _n.exports;
}
var Kg = Yg();
const Wg = /* @__PURE__ */ Xe(Kg);
var yn = { exports: {} }, Gg = yn.exports, aa;
function Hg() {
return aa || (aa = 1, (function(e, n) {
(function(r, o) {
e.exports = o();
})(Gg, (function() {
return function(r, o, t) {
r = r || {};
var i = o.prototype, a = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
function u(l, s, d, m) {
return i.fromToBase(l, s, d, m);
}
t.en.relativeTime = a, i.fromToBase = function(l, s, d, m, p) {
for (var g, f, h, b = d.$locale().relativeTime || a, y = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], C = y.length, B = 0; B < C; B += 1) {
var A = y[B];
A.d && (g = m ? t(l).diff(d, A.d, !0) : d.diff(l, A.d, !0));
var U = (r.rounding || Math.round)(Math.abs(g));
if (h = g > 0, U <= A.r || !A.r) {
U <= 1 && B > 0 && (A = y[B - 1]);
var I = b[A.l];
p && (U = p("" + U)), f = typeof I == "string" ? I.replace("%d", U) : I(U, s, A.l, h);
break;
}
}
if (s) return f;
var _ = h ? b.future : b.past;
return typeof _ == "function" ? _(f) : _.replace("%s", f);
}, i.to = function(l, s) {
return u(l, s, this, !0);
}, i.from = function(l, s) {
return u(l, s, this);
};
var c = function(l) {
return l.$u ? t.utc() : t();
};
i.toNow = function(l) {
return this.to(c(this), l);
}, i.fromNow = function(l) {
return this.from(c(this), l);
};
};
}));
})(yn)), yn.exports;
}
var Xg = Hg();
const Qg = /* @__PURE__ */ Xe(Xg);
var kn = { exports: {} }, eh = kn.exports, ua;
function th() {
return ua || (ua = 1, (function(e, n) {
(function(r, o) {
e.exports = o();
})(eh, (function() {
var r = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
return function(t, i, a) {
var u, c = function(m, p, g) {
g === void 0 && (g = {});
var f = new Date(m), h = (function(b, y) {
y === void 0 && (y = {});
var C = y.timeZoneName || "short", B = b + "|" + C, A = o[B];
return A || (A = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: b, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: C }), o[B] = A), A;
})(p, g);
return h.formatToParts(f);
}, l = function(m, p) {
for (var g = c(m, p), f = [], h = 0; h < g.length; h += 1) {
var b = g[h], y = b.type, C = b.value, B = r[y];
B >= 0 && (f[B] = parseInt(C, 10));
}
var A = f[3], U = A === 24 ? 0 : A, I = f[0] + "-" + f[1] + "-" + f[2] + " " + U + ":" + f[4] + ":" + f[5] + ":000", _ = +m;
return (a.utc(I).valueOf() - (_ -= _ % 1e3)) / 6e4;
}, s = i.prototype;
s.tz = function(m, p) {
m === void 0 && (m = u);
var g, f = this.utcOffset(), h = this.toDate(), b = h.toLocaleString("en-US", { timeZone: m }), y = Math.round((h - new Date(b)) / 1e3 / 60), C = 15 * -Math.round(h.getTimezoneOffset() / 15) - y;
if (!Number(C)) g = this.utcOffset(0, p);
else if (g = a(b, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(C, !0), p) {
var B = g.utcOffset();
g = g.add(f - B, "minute");
}
return g.$x.$timezone = m, g;
}, s.offsetName = function(m) {
var p = this.$x.$timezone || a.tz.guess(), g = c(this.valueOf(), p, { timeZoneName: m }).find((function(f) {
return f.type.toLowerCase() === "timezonename";
}));
return g && g.value;
};
var d = s.startOf;
s.startOf = function(m, p) {
if (!this.$x || !this.$x.$timezone) return d.call(this, m, p);
var g = a(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
return d.call(g, m, p).tz(this.$x.$timezone, !0);
}, a.tz = function(m, p, g) {
var f = g && p, h = g || p || u, b = l(+a(), h);
if (typeof m != "string") return a(m).tz(h);
var y = (function(U, I, _) {
var Y = U - 60 * I * 1e3, L = l(Y, _);
if (I === L) return [Y, I];
var Z = l(Y -= 60 * (L - I) * 1e3, _);
return L === Z ? [Y, L] : [U - 60 * Math.min(L, Z) * 1e3, Math.max(L, Z)];
})(a.utc(m, f).valueOf(), b, h), C = y[0], B = y[1], A = a(C).utcOffset(B);
return A.$x.$timezone = h, A;
}, a.tz.guess = function() {
return Intl.DateTimeFormat().resolvedOptions().timeZone;
}, a.tz.setDefault = function(m) {
u = m;
};
};
}));
})(kn)), kn.exports;
}
var nh = th();
const rh = /* @__PURE__ */ Xe(nh);
var Sn = { exports: {} }, ih = Sn.exports, la;
function oh() {
return la || (la = 1, (function(e, n) {
(function(r, o) {
e.exports = o();
})(ih, (function() {
var r = "minute", o = /[+-]\d\d(?::?\d\d)?/g, t = /([+-]|\d\d)/g;
return function(i, a, u) {
var c = a.prototype;
u.utc = function(f) {
var h = { date: f, utc: !0, args: arguments };
return new a(h);
}, c.utc = function(f) {
var h = u(this.toDate(), { locale: this.$L, utc: !0 });
return f ? h.add(this.utcOffset(), r) : h;
}, c.local = function() {
return u(this.toDate(), { locale: this.$L, utc: !1 });
};
var l = c.parse;
c.parse = function(f) {
f.utc && (this.$u = !0), this.$utils().u(f.$offset) || (this.$offset = f.$offset), l.call(this, f);
};
var s = c.init;
c.init = function() {
if (this.$u) {
var f = this.$d;
this.$y = f.getUTCFullYear(), this.$M = f.getUTCMonth(), this.$D = f.getUTCDate(), this.$W = f.getUTCDay(), this.$H = f.getUTCHours(), this.$m = f.getUTCMinutes(), this.$s = f.getUTCSeconds(), this.$ms = f.getUTCMilliseconds();
} else s.call(this);
};
var d = c.utcOffset;
c.utcOffset = function(f, h) {
var b = this.$utils().u;
if (b(f)) return this.$u ? 0 : b(this.$offset) ? d.call(this) : this.$offset;
if (typeof f == "string" && (f = (function(A) {
A === void 0 && (A = "");
var U = A.match(o);
if (!U) return null;
var I = ("" + U[0]).match(t) || ["-", 0, 0], _ = I[0], Y = 60 * +I[1] + +I[2];
return Y === 0 ? 0 : _ === "+" ? Y : -Y;
})(f), f === null)) return this;
var y = Math.abs(f) <= 16 ? 60 * f : f;
if (y === 0) return this.utc(h);
var C = this.clone();
if (h) return C.$offset = y, C.$u = !1, C;
var B = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
return (C = this.local().add(y + B, r)).$offset = y, C.$x.$localOffset = B, C;
};
var m = c.format;
c.format = function(f) {
var h = f || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
return m.call(this, h);
}, c.valueOf = function() {
var f = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
return this.$d.valueOf() - 6e4 * f;
}, c.isUTC = function() {
return !!this.$u;
}, c.toISOString = function() {
return this.toDate().toISOString();
}, c.toString = function() {
return this.toDate().toUTCString();
};
var p = c.toDate;
c.toDate = function(f) {
return f === "s" && this.$offset ? u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : p.call(this);
};
var g = c.diff;
c.diff = function(f, h, b) {
if (f && this.$u === f.$u) return g.call(this, f, h, b);
var y = this.local(), C = u(f).local();
return g.call(y, C, h, b);
};
};
}));
})(Sn)), Sn.exports;
}
var ah = oh();
const uh = /* @__PURE__ */ Xe(ah);
var In = { exports: {} }, lh = In.exports, ca;
function ch() {
return ca || (ca = 1, (function(e, n) {
(function(r, o) {
e.exports = o();
})(lh, (function() {
var r = "week", o = "year";
return function(t, i, a) {
var u = i.prototype;
u.week = function(c) {
if (c === void 0 && (c = null), c !== null) return this.add(7 * (c - this.week()), "day");
var l = this.$locale().yearStart || 1;
if (this.month() === 11 && this.date() > 25) {
var s = a(this).startOf(o).add(1, o).date(l), d = a(this).endOf(r);
if (s.isBefore(d)) return 1;
}
var m = a(this).startOf(o).date(l).startOf(r).subtract(1, "millisecond"), p = this.diff(m, r, !0);
return p < 0 ? a(this).startOf("week").week() : Math.ceil(p);
}, u.weeks = function(c) {
return c === void 0 && (c = null), this.week(c);
};
};
}));
})(In)), In.exports;
}
var sh = ch();
const dh = /* @__PURE__ */ Xe(sh);
var wn = { exports: {} }, fh = wn.exports, sa;
function mh() {
return sa || (sa = 1, (function(e, n) {
(function(r, o) {
e.exports = o(If());
})(fh, (function(r) {
function o(a) {
return a && typeof a == "object" && "default" in a ? a : { default: a };
}
var t = o(r), i = { name: "pt-br", weekdays: "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"), weekdaysShort: "dom_seg_ter_qua_qui_sex_sáb".split("_"), weekdaysMin: "Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"), months: "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"), monthsShort: "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"), ordinal: function(a) {
return a + "º";
}, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY [às] HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm" }, relativeTime: { future: "em %s", past: "há %s", s: "poucos segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um mês", MM: "%d meses", y: "um ano", yy: "%d anos" } };
return t.default.locale(i, null, !0), i;
}));
})(wn)), wn.exports;
}
mh();
var vh = {};
globalThis.cacheMemoria_cache = vh;
var ph = ((e) => (e.codigo = "codigo", e.excluido = "excluido", e.data_hora_criacao = "data_hora_criacao", e.data_hora_atualizacao = "data_hora_atualizacao", e.codigo_usuario_criacao = "codigo_usuario_criacao", e.codigo_usuario_atualizacao = "codigo_usuario_atualizacao", e.versao = "versao", e))(ph || {}), gh = ((e) => (e.token = "token", e))(gh || {}), hh = ((e) => (e.Usuario = "usuario", e.Fornecedor = "fornecedor", e))(hh || {}), $h = ((e) => (e["="] = "=", e["!="] = "!=", e[">"] = ">", e[">="] = ">=", e["<"] = "<", e["<="] = "<=", e.like = "like", e.in = "in", e.isNull = "isNull", e))($h || {}), bh = Pt.enum(["=", "!=", ">", ">=", "<", "<=", "like", "in", "isNull"]);
Pt.object({ coluna: Pt.string(), valor: Pt.any(), operador: bh, ou: Pt.boolean().optional() });
Se.locale("pt-br");
Se.extend(uh);
Se.extend(rh);
Se.extend(dh);
Se.extend(Vg);
Se.extend(Lg);
Se.extend(Wg);
Se.extend(Qg);
Se.extend(Zg);
var _h = ((e) => (e["e-licencie"] = "e-licencie", e["gov.e-licencie"] = "gov.e-licencie", e))(_h || {}), yh = ((e) => (e.modelo = "000_modelo", e.vencida = "100_vencida", e.expirado = "200_expirado", e.alerta = "300_alerta", e.protocoladafora = "350_protocoladafora", e.protocolada = "400_protocolada", e.protocoladaApenas = "430_protocolada", e.protocolada_alteracao = "450_protocolada", e.prazo = "500_prazo", e.emitida = "515_emitida", e.valida = "518_valida", e.novo = "520_novo", e.recebido = "521_recebido", e.em_andamento = "530_em_andamento", e.aguardando = "530_aguardando", e.aguardandoresposta = "540_aguardandoresposta", e.suspensaotemporaria = "540_suspensaotemporaria", e.cancelada = "550_cancelada", e.execucao = "560_execucao", e.pendente = "570_pendente", e.executadafora = "600_executadafora", e.executada = "700_executada", e.naoexecutada = "701_naoexecutada", e.concluida = "730_concluida", e.respondido_negado = "740_respondido_negado", e.respondido_aceito = "741_respondido_aceito", e.atendidoparcial = "742_atendidoparcial", e.naoatendido = "743_naoatendido", e.atendido = "744_atendido", e.renovada = "760_renovada", e.finalizada = "800_finalizada", e.emitirnota = "101_emitirnota", e.faturaatrasada = "301_faturaatrasada", e.pagarfatura = "302_pagarfatura", e.aguardandoconfirmacao = "531_aguardandoconfirmacao", e.agendado = "701_agendado", e.faturapaga = "801_faturapaga", e.excluida = "999_excluida", e.requerida = "401_requerida", e.vigente = "516_vigente", e.emrenovacao = "402_emrenovacao", e.arquivada = "801_arquivada", e.aguardando_sincronizacao = "999_aguardando_sincronizacao", e.nao_conforme = "710_nao_conforme", e.conforme = "720_conforme", e.nao_aplicavel = "730_nao_aplicavel", e.parcial = "715_parcial", e))(yh || {}), kh = ((e) => (e.UN = "UN", e.KG = "KG", e.TON = "TON", e.g = "g", e["M³"] = "M³", e.Lt = "Lt", e))(kh || {});
const Sh = ie({
name: "EliEntradaDataHora",
inheritAttrs: !1,
props: {
// --- Novo padrão EliEntrada ---
value: {
type: String,
default: void 0
},
opcoes: {
type: Object,
required: !1,
default: void 0
},
// --- Compatibilidade com componente antigo EliDataHora ---
modelValue: {
type: String,
default: null
},
modo: {
type: String,
default: void 0
},
rotulo: { type: String, default: void 0 },
placeholder: { type: String, default: void 0 },
desabilitado: { type: Boolean, default: void 0 },
limpavel: { type: Boolean, default: void 0 },
erro: { type: Boolean, default: void 0 },
mensagensErro: {
type: [String, Array],
default: void 0
},
dica: { type: String, default: void 0 },
dicaPersistente: { type: Boolean, default: void 0 },
densidade: { type: String, default: void 0 },
variante: { type: String, default: void 0 },
min: { type: String, default: void 0 },
max: { type: String, default: void 0 }
},
emits: {
// Novo padrão
"update:value": (e) => !0,
input: (e) => !0,
// compat Vue2
change: (e) => !0,
// Compat antigo
"update:modelValue": (e) => !0,
alterar: (e) => !0,
foco: () => !0,
desfoco: () => !0,
focus: () => !0,
blur: () => !0
},
setup(e, { emit: n, attrs: r }) {
const o = N(() => e.opcoes ? e.opcoes : {
rotulo: e.rotulo ?? "Data e hora",
placeholder: e.placeholder ?? "",
modo: e.modo ?? "dataHora",
limpavel: e.limpavel,
erro: e.erro,
mensagensErro: e.mensagensErro,
dica: e.dica,
dicaPersistente: e.dicaPersistente,
densidade: e.densidade,
variante: e.variante,
min: e.min,
max: e.max
}), t = N(
() => o.value.modo ?? "dataHora"
), i = N(
() => !!e.desabilitado
), a = N(
() => t.value === "data" ? "date" : "datetime-local"
);
function u(f) {
return t.value === "data" ? Se(f).format("YYYY-MM-DD") : Se(f).format("YYYY-MM-DDTHH:mm");
}
function c(f) {
return t.value === "data" ? Se(`${f}T00:00`).format() : Se(f).format();
}
const l = N(() => e.value !== void 0 ? e.value ?? null : e.modelValue), s = N({
get: () => l.value ? u(l.value) : "",
set: (f) => {
const h = f && f.length > 0 ? f : null;
if (!h) {
n("update:value", null), n("input", null), n("change", null), n("update:modelValue", null), n("alterar", null);
return;
}
const b = c(h);
n("update:value", b), n("input", b), n("change", b), n("update:modelValue", b), n("alterar", b);
}
}), d = N(() => {
const f = o.value.min;
if (f)
return u(f);
}), m = N(() => {
const f = o.value.max;
if (f)
return u(f);
});
function p() {
n("foco"), n("focus");
}
function g() {
n("desfoco"), n("blur");
}
return {
attrs: r,
valor: s,
tipoInput: a,
minLocal: d,
maxLocal: m,
opcoesEfetivas: o,
desabilitadoEfetivo: i,
emitCompatFocus: p,
emitCompatBlur: g
};
}
}), Ih = { class: "eli-data-hora" };
function wh(e, n, r, o, t, i) {
return S(), j("div", Ih, [
re(Nr, ot({
modelValue: e.valor,
"onUpdate:modelValue": n[0] || (n[0] = (a) => e.valor = a),
type: e.tipoInput,
label: e.opcoesEfetivas.rotulo,
placeholder: e.opcoesEfetivas.placeholder,
disabled: e.desabilitadoEfetivo,
clearable: !!e.opcoesEfetivas.limpavel,
error: !!e.opcoesEfetivas.erro,
"error-messages": e.opcoesEfetivas.mensagensErro,
hint: e.opcoesEfetivas.dica,
"persistent-hint": !!e.opcoesEfetivas.dicaPersistente,
density: e.opcoesEfetivas.densidade ?? "comfortable",
variant: e.opcoesEfetivas.variante ?? "outlined",
min: e.minLocal,
max: e.maxLocal
}, e.attrs, {
onFocus: e.emitCompatFocus,
onBlur: e.emitCompatBlur
}), null, 16, ["modelValue", "type", "label", "placeholder", "disabled", "clearable", "error", "error-messages", "hint", "persistent-hint", "density", "variant", "min", "max", "onFocus", "onBlur"])
]);
}
const wf = /* @__PURE__ */ oe(Sh, [["render", wh]]);
function zh(e) {
if (!Number.isFinite(e) || e <= 0 || e >= 1) return 0;
const n = e.toString();
if (n.includes("e-")) {
const [, t] = n.split("e-"), i = Number(t);
return Number.isFinite(i) ? i : 0;
}
const r = n.indexOf(".");
return r === -1 ? 0 : n.slice(r + 1).replace(/0+$/, "").length;
}
function xh(e) {
const n = (e ?? "").trim().replace(/,/g, ".");
if (!n) return null;
const r = Number(n);
return Number.isNaN(r) ? null : r;
}
function xr(e, n) {
return e == null ? "" : n === null ? String(e) : Number(e).toFixed(Math.max(0, n)).replace(/\./g, ",");
}
function da(e) {
return (e ?? "").replace(/\D+/g, "");
}
function Dh(e) {
const n = (e ?? "").replace(/[^0-9.,]+/g, ""), r = n.match(/[.,]/);
if (!r) return n;
const o = r[0], t = n.indexOf(o), i = n.slice(0, t).replace(/[.,]/g, ""), a = n.slice(t + 1).replace(/[.,]/g, "");
return `${i.length ? i : "0"}${o}${a}`;
}
function Oh(e, n) {
if (n === null) return e;
if (n <= 0) return e.replace(/[.,]/g, "");
const r = e.match(/[.,]/);
if (!r) return e;
const o = r[0], t = e.indexOf(o), i = e.slice(0, t), a = e.slice(t + 1);
return `${i}${o}${a.slice(0, n)}`;
}
function jh(e) {
const n = e.match(/^(\d+)[.,]$/);
if (!n) return null;
const r = Number(n[1]);
return Number.isNaN(r) ? null : r;
}
const Uh = ie({
name: "EliEntradaNumero",
inheritAttrs: !1,
props: {
/** Interface padrão (EliEntrada): value + opcoes. */
value: {
type: [Number, null],
default: void 0
},
opcoes: {
type: Object,
required: !0
}
},
emits: {
"update:value": (e) => !0,
/** Compat Vue2 (v-model padrão: value + input) */
input: (e) => !0,
change: (e) => !0,
focus: () => !0,
blur: () => !0
},
setup(e, { attrs: n, emit: r }) {
const o = N(() => {
var s;
const l = (s = e.opcoes) == null ? void 0 : s.precisao;
return l == null ? null : zh(l);
}), t = N(() => o.value === 0), i = N(() => {
const l = o.value;
return l !== null && l > 0;
}), a = H(""), u = H(void 0);
Be(
() => e.value,
(l) => {
l !== u.value && (a.value = xr(l, o.value), u.value = l);
},
{ immediate: !0 }
);
function c(l) {
if (i.value) {
const p = o.value ?? 0, g = da(l), f = g ? Number(g) : 0, h = 10 ** p, b = g ? f / h : null, y = b === null ? null : b;
u.value = y, r("update:value", y), r("input", y), r("change", y), a.value = xr(y, p);
return;
}
const s = t.value ? da(l) : Dh(l), d = t.value ? s : Oh(s, o.value);
let m = null;
if (d) {
const g = (t.value ? null : jh(d)) ?? xh(d);
m = g === null ? null : g;
}
u.value = m, r("update:value", m), r("input", m), r("change", m), a.value = xr(m, o.value);
}
return { attrs: n, emit: r, displayValue: a, isInteiro: t, onUpdateModelValue: c };
}
}), Th = { class: "eli-entrada__prefixo" }, Eh = { class: "eli-entrada__sufixo" };
function Ph(e, n, r, o, t, i) {
var a, u, c, l;
return S(), fe(Nr, ot({
"model-value": e.displayValue,
label: (a = e.opcoes) == null ? void 0 : a.rotulo,
placeholder: (u = e.opcoes) == null ? void 0 : u.placeholder,
type: e.isInteiro ? "number" : "text",
inputmode: e.isInteiro ? "numeric" : "decimal",
pattern: e.isInteiro ? "[0-9]*" : "[0-9.,]*"
}, e.attrs, {
"onUpdate:modelValue": e.onUpdateModelValue,
onFocus: n[0] || (n[0] = () => e.emit("focus")),
onBlur: n[1] || (n[1] = () => e.emit("blur"))
}), Zf({ _: 2 }, [
(c = e.opcoes) != null && c.prefixo ? {
name: "prepend-inner",
fn: ye(() => [
D("span", Th, G(e.opcoes.prefixo), 1)
]),
key: "0"
} : void 0,
(l = e.opcoes) != null && l.sufixo ? {
name: "append-inner",
fn: ye(() => [
D("span", Eh, G(e.opcoes.sufixo), 1)
]),
key: "1"
} : void 0
]), 1040, ["model-value", "label", "placeholder", "type", "inputmode", "pattern", "onUpdate:modelValue"]);
}
const zf = /* @__PURE__ */ oe(Uh, [["render", Ph]]), Nh = ie({
name: "EliEntradaParagrafo",
components: { VTextarea: Vf },
inheritAttrs: !1,
props: {
value: {
type: [String, null],
default: void 0
},
opcoes: {
type: Object,
required: !0
}
},
emits: {
"update:value": (e) => !0,
input: (e) => !0,
change: (e) => !0,
focus: () => !0,
blur: () => !0
},
setup(e, { attrs: n, emit: r }) {
const o = N({
get: () => e.value,
set: (t) => {
r("update:value", t), r("input", t), r("change", t);
}
});
return { attrs: n, emit: r, localValue: o };
}
});
function Ah(e, n, r, o, t, i) {
var a, u, c, l, s, d, m, p, g, f, h, b;
return S(), fe(Kf, ot({
modelValue: e.localValue,
"onUpdate:modelValue": n[0] || (n[0] = (y) => e.localValue = y),
label: (a = e.opcoes) == null ? void 0 : a.rotulo,
placeholder: (u = e.opcoes) == null ? void 0 : u.placeholder,
rows: ((c = e.opcoes) == null ? void 0 : c.linhas) ?? 4,
counter: (l = e.opcoes) == null ? void 0 : l.limiteCaracteres,
maxlength: (s = e.opcoes) == null ? void 0 : s.limiteCaracteres,
clearable: !!((d = e.opcoes) != null && d.limpavel),
error: !!((m = e.opcoes) != null && m.erro),
"error-messages": (p = e.opcoes) == null ? void 0 : p.mensagensErro,
hint: (g = e.opcoes) == null ? void 0 : g.dica,
"persistent-hint": !!((f = e.opcoes) != null && f.dicaPersistente),
density: ((h = e.opcoes) == null ? void 0 : h.densidade) ?? "comfortable",
variant: ((b = e.opcoes) == null ? void 0 : b.variante) ?? "outlined",
"auto-grow": ""
}, e.attrs, {
onFocus: n[1] || (n[1] = () => e.emit("focus")),
onBlur: n[2] || (n[2] = () => e.emit("blur"))
}), null, 16, ["modelValue", "label", "placeholder", "rows", "counter", "maxlength", "clearable", "error", "error-messages", "hint", "persistent-hint", "density", "variant"]);
}
const Zh = /* @__PURE__ */ oe(Nh, [["render", Ah]]), Ch = ie({
name: "EliEntradaSelecao",
components: { VSelect: qf },
inheritAttrs: !1,
props: {
value: {
type: [String, null],
default: void 0
},
opcoes: {
type: Object,
required: !0
}
},
emits: {
"update:value": (e) => !0,
input: (e) => !0,
change: (e) => !0,
focus: () => !0,
blur: () => !0
},
setup(e, { attrs: n, emit: r }) {
const o = H([]), t = H(!1), i = N({
get: () => e.value,
set: (u) => {
r("update:value", u), r("input", u), r("change", u);
}
});
async function a() {
t.value = !0;
try {
const u = await e.opcoes.itens(), c = Array.isArray(u) ? u : [];
o.value = [...c];
} finally {
t.value = !1;
}
}
return Be(
() => e.opcoes.itens,
() => {
a();
}
), ya(() => {
a();
}), Be(
o,
(u) => {
console.debug("[EliEntradaSelecao] itens:", u);
},
{ deep: !0 }
), { attrs: n, emit: r, localValue: i, itens: o, carregando: t };
}
});
function Mh(e, n, r, o, t, i) {
var a, u, c, l, s, d, m, p, g;
return S(), fe(Wf, ot({
modelValue: e.localValue,
"onUpdate:modelValue": n[0] || (n[0] = (f) => e.localValue = f),
label: (a = e.opcoes) == null ? void 0 : a.rotulo,
placeholder: (u = e.opcoes) == null ? void 0 : u.placeholder,
items: e.itens,
"item-title": "rotulo",
"item-value": "chave",
loading: e.carregando,
disabled: e.carregando,
"menu-props": { maxHeight: 320 },
clearable: !!((c = e.opcoes) != null && c.limpavel),
error: !!((l = e.opcoes) != null && l.erro),
"error-messages": (s = e.opcoes) == null ? void 0 : s.mensagensErro,
hint: (d = e.opcoes) == null ? void 0 : d.dica,
"persistent-hint": !!((m = e.opcoes) != null && m.dicaPersistente),
density: ((p = e.opcoes) == null ? void 0 : p.densidade) ?? "comfortable",
variant: ((g = e.opcoes) == null ? void 0 : g.variante) ?? "outlined"
}, e.attrs, {
onFocus: n[1] || (n[1] = () => e.emit("focus")),
onBlur: n[2] || (n[2] = () => e.emit("blur"))
}), null, 16, ["modelValue", "label", "placeholder", "items", "loading", "disabled", "clearable", "error", "error-messages", "hint", "persistent-hint", "density", "variant"]);
}
const Fh = /* @__PURE__ */ oe(Ch, [["render", Mh]]);
function Lh(e) {
return e.replace(/\D+/g, "");
}
function Rh(e) {
const n = Lh(e);
return n ? n.replace(/^(\d{5})(\d)/, "$1-$2").slice(0, 9) : "";
}
function Bh(e) {
return e.replace(/\D+/g, "");
}
function Jh(e) {
const n = Bh(e);
return n.length <= 11 ? n.replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2").slice(0, 14) : n.replace(/^(\d{2})(\d)/, "$1.$2").replace(/^(\d{2})\.(\d{3})(\d)/, "$1.$2.$3").replace(/\.(\d{3})(\d)/, ".$1/$2").replace(/(\d{4})(\d)/, "$1-$2").slice(0, 18);
}
function Vh(e) {
return e.replace(/\D+/g, "");
}
function qh(e) {
const n = Vh(e);
return n ? n.length <= 10 ? n.replace(/^(\d{2})(\d)/, "($1) $2").replace(/(\d{4})(\d)/, "$1-$2").slice(0, 14) : n.replace(/^(\d{2})(\d)/, "($1) $2").replace(/(\d{5})(\d)/, "$1-$2").slice(0, 15) : "";
}
const Yh = ie({
name: "EliEntradaTexto",
inheritAttrs: !1,
props: {
/** Interface padrão (EliEntrada): value + opcoes. */
value: {
type: [String, null],
default: void 0
},
opcoes: {
type: Object,
required: !0
}
},
emits: {
"update:value": (e) => !0,
/** Compat Vue2 (v-model padrão: value + input) */
input: (e) => !0,
change: (e) => !0,
focus: () => !0,
blur: () => !0
},
setup(e, { attrs: n, emit: r }) {
const o = N(() => {
var l;
return ((l = e.opcoes) == null ? void 0 : l.formato) ?? "texto";
}), t = N({
get: () => e.value,
set: (l) => {
r("update:value", l), r("input", l), r("change", l);
}
}), i = N(() => o.value === "email" ? "email" : o.value === "url" ? "url" : "text"), a = N(() => {
if (o.value === "telefone") return "tel";
if (o.value === "cpfCnpj" || o.value === "cep")
return "numeric";
});
function u(l) {
switch (o.value) {
case "telefone":
return qh(l);
case "cpfCnpj":
return Jh(l);
case "cep":
return Rh(l);
default:
return l;
}
}
function c(l) {
const s = l.target, d = u(s.value);
s.value = d, t.value = d;
}
return { attrs: n, emit: r, localValue: t, inputHtmlType: i, inputMode: a, onInput: c };
}
});
function Kh(e, n, r, o, t, i) {
var a, u, c, l;
return S(), fe(Nr, ot({
modelValue: e.localValue,
"onUpdate:modelValue": n[0] || (n[0] = (s) => e.localValue = s),
type: e.inputHtmlType,
inputmode: e.inputMode,
label: (a = e.opcoes) == null ? void 0 : a.rotulo,
placeholder: (u = e.opcoes) == null ? void 0 : u.placeholder,
counter: (c = e.opcoes) == null ? void 0 : c.limiteCaracteres,
maxlength: (l = e.opcoes) == null ? void 0 : l.limiteCaracteres
}, e.attrs, {
onFocus: n[1] || (n[1] = () => e.emit("focus")),
onBlur: n[2] || (n[2] = () => e.emit("blur")),
onInput: e.onInput
}), null, 16, ["modelValue", "type", "inputmode", "label", "placeholder", "counter", "maxlength", "onInput"]);
}
const To = /* @__PURE__ */ oe(Yh, [["render", Kh]]);
var xf = ((e) => (e[e.sucesso = 200] = "sucesso", e[e.erroConhecido = 400] = "erroConhecido", e[e.erroPermissao = 401] = "erroPermissao", e[e.erroNaoEncontrado = 404] = "erroNaoEncontrado", e[e.erroDesconhecido = 500] = "erroDesconhecido", e[e.tempoEsgotado = 504] = "tempoEsgotado", e))(xf || {});
const Wh = "eli:tabela";
function Df(e) {
return `${Wh}:${e}:colunas`;
}
function Of(e) {
if (!e || typeof e != "object")
return { visiveis: [], invisiveis: [] };
const n = e, r = Array.isArray(n.visiveis) ? (
// biome-ignore lint/suspicious/noExplicitAny: dynamic array item
n.visiveis.filter((t) => typeof t == "string")
) : [], o = Array.isArray(n.invisiveis) ? (
// biome-ignore lint/suspicious/noExplicitAny: dynamic array item
n.invisiveis.filter((t) => typeof t == "string")
) : [];
return { visiveis: r, invisiveis: o };
}
function fa(e) {
try {
const n = window.localStorage.getItem(Df(e));
return n ? Of(JSON.parse(n)) : { visiveis: [], invisiveis: [] };
} catch {
return { visiveis: [], invisiveis: [] };
}
}
function Gh(e, n) {
try {
window.localStorage.setItem(
Df(e),
JSON.stringify(Of(n))
);
} catch {
}
}
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const Hh = (e) => {
for (const n in e)
if (n.startsWith("aria-") || n === "role" || n === "title")
return !0;
return !1;
};
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const ma = (e) => e === "";
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const Xh = (...e) => e.filter((n, r, o) => !!n && n.trim() !== "" && o.indexOf(n) === r).join(" ").trim();
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const va = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const Qh = (e) => e.replace(
/^([A-Z])|[\s-_]+(\w)/g,
(n, r, o) => o ? o.toUpperCase() : r.toLowerCase()
);
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const e$ = (e) => {
const n = Qh(e);
return n.charAt(0).toUpperCase() + n.slice(1);
};
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
var Tt = {
xmlns: "http://www.w3.org/2000/svg",
width: 24,
height: 24,
viewBox: "0 0 24 24",
fill: "none",
stroke: "currentColor",
"stroke-width": 2,
"stroke-linecap": "round",
"stroke-linejoin": "round"
};
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const t$ = ({
name: e,
iconNode: n,
absoluteStrokeWidth: r,
"absolute-stroke-width": o,
strokeWidth: t,
"stroke-width": i,
size: a = Tt.width,
color: u = Tt.stroke,
...c
}, { slots: l }) => Dr(
"svg",
{
...Tt,
...c,
width: a,
height: a,
stroke: u,
"stroke-width": ma(r) || ma(o) || r === !0 || o === !0 ? Number(t || i || Tt["stroke-width"]) * 24 / Number(a) : t || i || Tt["stroke-width"],
class: Xh(
"lucide",
c.class,
...e ? [`lucide-${va(e$(e))}-icon`, `lucide-${va(e)}`] : ["lucide-icon"]
),
...!l.default && !Hh(c) && { "aria-hidden": "true" }
},
[...n.map((s) => Dr(...s)), ...l.default ? [l.default()] : []]
);
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const Ot = (e, n) => (r, { slots: o, attrs: t }) => Dr(
t$,
{
...t,
...r,
iconNode: n,
name: e
},
o
);
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const pa = Ot("arrow-down", [
["path", { d: "M12 5v14", key: "s699le" }],
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
]);
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const ga = Ot("arrow-up", [
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
["path", { d: "M12 19V5", key: "x0mq9r" }]
]);
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const ha = Ot("chevron-down", [
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
]);
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const $a = Ot("chevron-right", [
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
]);
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const n$ = Ot("ellipsis-vertical", [
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
]);
/**
* @license lucide-vue-next v0.563.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const r$ = Ot("search", [
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
]), i$ = ie({
name: "EliTabelaCelulaData",
props: {
dados: {
type: Object,
required: !1
}
},
setup({ dados: e }) {
const n = N(() => {
const r = e == null ? void 0 : e.valor;
if (!r) return "";
const o = (e == null ? void 0 : e.formato) ?? "data";
return o === "relativo" ? Se(r).fromNow() : o === "data_hora" ? Se(r).format("DD/MM/YYYY HH:mm") : Se(r).format("DD/MM/YYYY");
});
return { dados: e, textoData: n };
}
}), o$ = { key: 1 };
function a$(e, n, r, o, t, i) {
var a;
return (a = e.dados) != null && a.acao ? (S(), j("button", {
key: 0,
type: "button",
class: "eli-tabela__celula-link",
onClick: n[0] || (n[0] = je((u) => e.dados.acao(), ["stop", "prevent"]))
}, G(e.textoData), 1)) : (S(), j("span", o$, G(e.textoData), 1));
}
const u$ = /* @__PURE__ */ oe(i$, [["render", a$]]), l$ = ie({
name: "EliTabelaCelulaNumero",
components: {},
props: {
dados: {
type: Object
}
},
setup({ dados: e }) {
const n = N(() => {
var u, c;
const r = String(e == null ? void 0 : e.numero).replace(".", ","), o = (u = e == null ? void 0 : e.prefixo) == null ? void 0 : u.trim(), t = (c = e == null ? void 0 : e.sufixo) == null ? void 0 : c.trim(), i = o ? `${o} ` : "", a = t ? ` ${t}` : "";
return `${i}${r}${a}`;
});
return { dados: e, textoNumero: n };
}
}), c$ = { key: 1 };
function s$(e, n, r, o, t, i) {
var a;
return (a = e.dados) != null && a.acao ? (S(), j("button", {
key: 0,
type: "button",
class: "eli-tabela__celula-link",
onClick: n[0] || (n[0] = je((u) => e.dados.acao(), ["stop", "prevent"]))
}, G(e.textoNumero), 1)) : (S(), j("span", c$, G(e.textoNumero), 1));
}
const d$ = /* @__PURE__ */ oe(l$, [["render", s$]]), f$ = ie({
name: "EliTabelaCelulaTags",
components: { VChip: Yf },
props: {
dados: {
type: Object,
required: !1
}
},
setup({ dados: e }) {
return { dados: e };
}
}), m$ = { class: "eli-tabela__celula-tags" };
function v$(e, n, r, o, t, i) {
var a;
return S(), j("div", m$, [
(S(!0), j(De, null, Ee(((a = e.dados) == null ? void 0 : a.opcoes) ?? [], (u, c) => (S(), fe(Gf, {
key: c,
class: "eli-tabela__celula-tag",
size: "small",
variant: "tonal",
color: u.cor,
clickable: !!u.acao,
onClick: je((l) => {
var s;
return (s = u.acao) == null ? void 0 : s.call(u);
}, ["stop", "prevent"])
}, {
default: ye(() => [
u.icone ? (S(), fe(at(u.icone), {
key: 0,
class: "eli-tabela__celula-tag-icone",
size: 14
})) : ge("", !0),
D("span", null, G(u.rotulo), 1)
]),
_: 2
}, 1032, ["color", "clickable", "onClick"]))), 128))
]);
}
const p$ = /* @__PURE__ */ oe(f$, [["render", v$]]), g$ = ie({
name: "EliTabelaCelulaTextoSimples",
components: {},
props: {
dados: {
type: Object
}
},
data() {
return {};
},
methods: {},
setup({ dados: e }) {
return { dados: e };
}
}), h$ = { key: 1 };
function $$(e, n, r, o, t, i) {
var a, u, c;
return (a = e.dados) != null && a.acao ? (S(), j("button", {
key: 0,
type: "button",
class: "eli-tabela__celula-link",
onClick: n[0] || (n[0] = je((l) => e.dados.acao(), ["stop", "prevent"]))
}, G((u = e.dados) == null ? void 0 : u.texto), 1)) : (S(), j("span", h$, G((c = e.dados) == null ? void 0 : c.texto), 1));
}
const b$ = /* @__PURE__ */ oe(g$, [["render", $$]]), _$ = ie({
name: "EliTabelaCelulaTextoTruncado",
props: {
dados: {
type: Object
}
},
setup({ dados: e }) {
return { dados: e };
}
}), y$ = ["title"], k$ = ["title"];
function S$(e, n, r, o, t, i) {
var a, u, c, l, s;
return (a = e.dados) != null && a.acao ? (S(), j("button", {
key: 0,
type: "button",
class: "eli-tabela__texto-truncado eli-tabela__celula-link",
title: (u = e.dados) == null ? void 0 : u.texto,
onClick: n[0] || (n[0] = je((d) => {
var m, p;
return (p = (m = e.dados) == null ? void 0 : m.acao) == null ? void 0 : p.call(m);
}, ["stop", "prevent"]))
}, G((c = e.dados) == null ? void 0 : c.texto), 9, y$)) : (S(), j("span", {
key: 1,
class: "eli-tabela__texto-truncado",
title: (l = e.dados) == null ? void 0 : l.texto
}, G((s = e.dados) == null ? void 0 : s.texto), 9, k$));
}
const I$ = /* @__PURE__ */ oe(_$, [["render", S$]]), w$ = {
textoSimples: b$,
textoTruncado: I$,
numero: d$,
tags: p$,
data: u$
}, z$ = ie({
name: "EliTabelaCelula",
props: {
celula: {
// `ComponenteCelula` é uma tupla `readonly [tipo, dados]`.
type: Array,
required: !0
}
},
setup(e) {
const n = N(() => e.celula[0]), r = N(
() => e.celula[1]
), o = N(
() => w$[n.value]
), t = N(() => r.value);
return { Componente: o, dadosParaComponente: t };
}
});
function x$(e, n, r, o, t, i) {
return S(), fe(at(e.Componente), { dados: e.dadosParaComponente }, null, 8, ["dados"]);
}
const jf = /* @__PURE__ */ oe(z$, [["render", x$]]), D$ = ie({
name: "EliTabelaDetalhesLinha",
components: { EliTabelaCelula: jf },
props: {
linha: {
type: null,
required: !0
},
colunasInvisiveis: {
// biome-ignore lint/suspicious/noExplicitAny: dynamic column
type: Array,
required: !0
}
}
}), O$ = { class: "eli-tabela__detalhes" }, j$ = { class: "eli-tabela__detalhe-rotulo" }, U$ = { class: "eli-tabela__detalhe-valor" };
function T$(e, n, r, o, t, i) {
const a = be("EliTabelaCelula");
return S(), j("div", O$, [
(S(!0), j(De, null, Ee(e.colunasInvisiveis, (u, c) => (S(), j("div", {
key: `det-${c}-${u.rotulo}`,
class: "eli-tabela__detalhe"
}, [
D("div", j$, G(u.rotulo), 1),
D("div", U$, [
re(a, {
celula: u.celula(e.linha)
}, null, 8, ["celula"])
])
]))), 128))
]);
}
const E$ = /* @__PURE__ */ oe(D$, [["render", T$]]), P$ = ie({
name: "EliTabelaBody",
components: {
EliTabelaCelula: jf,
EliTabelaDetalhesLinha: E$,
MoreVertical: n$,
ChevronRight: $a,
ChevronDown: ha
},
props: {
colunas: {
// biome-ignore lint/suspicious/noExplicitAny: dynamic column
type: Array,
required: !0
},
colunasInvisiveis: {
// biome-ignore lint/suspicious/noExplicitAny: dynamic column
type: Array,
required: !0
},
temColunasInvisiveis: {
type: Boolean,
required: !0
},
linhasExpandidas: {
type: Object,
required: !0
},
linhas: {
type: Array,
required: !0
},
temAcoes: {
type: Boolean,
required: !0
},
menuAberto: {
type: Number,
required: !0
},
possuiAcoes: {
type: Function,
required: !0
},
toggleMenu: {
type: Function,
required: !0
},
alternarLinhaExpandida: {
type: Function,
required: !0
}
},
setup() {
return {
ChevronRight: $a,
ChevronDown: ha
};
}
}), N$ = { class: "eli-tabela__tbody" }, A$ = ["aria-expanded", "aria-label", "title", "onClick"], Z$ = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label", "title", "onClick"], C$ = ["colspan"];
function M$(e, n, r, o, t, i) {
const a = be("EliTabelaCelula"), u = be("MoreVertical"), c = be("EliTabelaDetalhesLinha");
return S(), j("tbody", N$, [
(S(!0), j(De, null, Ee(e.linhas, (l, s) => {
var d, m, p, g, f, h;
return S(), j(De, {
key: `grp-${s}`
}, [
D("tr", {
class: lt(["eli-tabela__tr", [s % 2 === 1 ? "eli-tabela__tr--zebra" : void 0]])
}, [
e.temColunasInvisiveis ? (S(), j("td", {
class: "eli-tabela__td eli-tabela__td--expander",
key: `td-${s}-exp`
}, [
D("button", {
type: "button",
class: lt(["eli-tabela__expander-botao", [(d = e.linhasExpandidas) != null && d[s] ? "eli-tabela__expander-botao--ativo" : void 0]]),
"aria-expanded": (m = e.linhasExpandidas) != null && m[s] ? "true" : "false",
"aria-label": (p = e.linhasExpandidas) != null && p[s] ? "Ocultar colunas ocultas" : "Mostrar colunas ocultas",
title: (g = e.linhasExpandidas) != null && g[s] ? "Ocultar detalhes" : "Mostrar detalhes",
onClick: je((b) => e.alternarLinhaExpandida(s), ["stop"])
}, [
(S(), fe(at((f = e.linhasExpandidas) != null && f[s] ? e.ChevronDown : e.ChevronRight), {
class: "eli-tabela__expander-icone",
size: 16,
"stroke-width": 2,
"aria-hidden": "true"
}))
], 10, A$)
])) : ge("", !0),
(S(!0), j(De, null, Ee(e.colunas, (b, y) => (S(), j("td", {
key: `td-${s}-${y}`,
class: "eli-tabela__td"
}, [
re(a, {
celula: b.celula(l)
}, null, 8, ["celula"])
]))), 128)),
e.temAcoes ? (S(), j("td", {
class: "eli-tabela__td eli-tabela__td--acoes",
key: `td-${s}-acoes`
}, [
D("div", {
class: lt(["eli-tabela__acoes-container", [e.menuAberto === s ? "eli-tabela__acoes-container--aberto" : void 0]])
}, [
D("button", {
class: "eli-tabela__acoes-toggle",
type: "button",
id: `eli-tabela-acoes-toggle-${s}`,
disabled: !e.possuiAcoes(s),
"aria-haspopup": "menu",
"aria-expanded": e.menuAberto === s ? "true" : "false",
"aria-controls": e.possuiAcoes(s) ? `eli-tabela-acoes-menu-${s}` : void 0,
"aria-label": e.possuiAcoes(s) ? "Ações da linha" : "Nenhuma ação disponível",
title: e.possuiAcoes(s) ? "Ações" : "Nenhuma ação disponível",
onClick: je((b) => e.toggleMenu(s, b), ["stop"])
}, [
re(u, {
class: "eli-tabela__acoes-toggle-icone",
size: 18,
"stroke-width": 2
})
], 8, Z$)
], 2)
])) : ge("", !0)
], 2),
e.temColunasInvisiveis && ((h = e.linhasExpandidas) != null && h[s]) ? (S(), j("tr", {
key: 0,
class: lt(["eli-tabela__tr eli-tabela__tr--detalhes", [s % 2 === 1 ? "eli-tabela__tr--zebra" : void 0]])
}, [
D("td", {
class: "eli-tabela__td eli-tabela__td--detalhes",
colspan: (e.temColunasInvisiveis ? 1 : 0) + e.colunas.length + (e.temAcoes ? 1 : 0)
}, [
re(c, {
linha: l,
colunasInvisiveis: e.colunasInvisiveis
}, null, 8, ["linha", "colunasInvisiveis"])
], 8, C$)
], 2)) : ge("", !0)
], 64);
}), 128))
]);
}
const F$ = /* @__PURE__ */ oe(P$, [["render", M$]]), L$ = ie({
name: "EliTabelaCaixaDeBusca",
components: { Search: r$ },
props: {
modelo: {
type: String,
required: !1,
default: ""
}
},
emits: {
buscar(e) {
return typeof e == "string";
}
},
setup(e, { emit: n }) {
const r = H(e.modelo ?? "");
Be(
() => e.modelo,
(t) => {
t !== void 0 && t !== r.value && (r.value = t);
}
);
function o() {
n("buscar", r.value.trim());
}
return { texto: r, emitirBusca: o };
}
}), R$ = { class: "eli-tabela__busca" }, B$ = { class: "eli-tabela__busca-input-wrapper" };
function J$(e, n, r, o, t, i) {
const a = be("Search");
return S(), j("div", R$, [
D("div", B$, [
ka(D("input", {
id: "eli-tabela-busca",
"onUpdate:modelValue": n[0] || (n[0] = (u) => e.texto = u),
type: "search",
class: "eli-tabela__busca-input",
placeholder: "Digite termos para filtrar",
onKeyup: n[1] || (n[1] = Cf((...u) => e.emitirBusca && e.emitirBusca(...u), ["enter"]))
}, null, 544), [
[Mf, e.texto]
]),
D("button", {
type: "button",
class: "eli-tabela__busca-botao",
"aria-label": "Buscar",
title: "Buscar",
onClick: n[2] || (n[2] = (...u) => e.emitirBusca && e.emitirBusca(...u))
}, [
re(a, {
class: "eli-tabela__busca-botao-icone",
size: 16,
"stroke-width": 2,
"aria-hidden": "true"
})
])
])
]);
}
const V$ = /* @__PURE__ */ oe(L$, [["render", J$]]), q$ = ie({
name: "EliTabelaCabecalho",
components: { EliTabelaCaixaDeBusca: V$ },
props: {
exibirBusca: {
type: Boolean,
required: !0
},
exibirBotaoColunas: {
type: Boolean,
required: !1,
default: !0
},
exibirBotaoFiltroAvancado: {
type: Boolean,
required: !1,
default: !1
},
valorBusca: {
type: String,
required: !0
},
parametrosConsulta: {
// biome-ignore lint/suspicious/noExplicitAny: dynamic params
type: Object,
required: !1
},
acoesCabecalho: {
type: Array,
required: !0
}
},
emits: {
buscar(e) {
return typeof e == "string";
},
colunas() {
return !0;
},
filtroAvancado() {
return !0;
}
},
setup(e, { emit: n }) {
const r = N(() => e.acoesCabecalho.length > 0);
function o(a) {
n("buscar", a);
}
function t() {
n("colunas");
}
function i() {
n("filtroAvancado");
}
return { temAcoesCabecalho: r, emitBuscar: o, emitColunas: t, emitFiltroAvancado: i };
}
}), Y$ = { class: "eli-tabela__cabecalho" }, K$ = {
key: 0,
class: "eli-tabela__busca-grupo"
}, W$ = {
key: 1,
class: "eli-tabela__acoes-cabecalho"
}, G$ = ["onClick"], H$ = { class: "eli-tabela__acoes-cabecalho-rotulo" };
function X$(e, n, r, o, t, i) {
const a = be("EliTabelaCaixaDeBusca");
return S(), j("div", Y$, [
e.exibirBusca ? (S(), j("div", K$, [
e.exibirBotaoColunas ? (S(), j("button", {
key: 0,
type: "button",
class: "eli-tabela__acoes-cabecalho-botao eli-tabela__acoes-cabecalho-botao--colunas",
onClick: n[0] || (n[0] = (...u) => e.emitColunas && e.emitColunas(...u))
}, " Colunas ")) : ge("", !0),
e.exibirBotaoFiltroAvancado ? (S(), j("button", {
key: 1,
type: "button",
class: "eli-tabela__acoes-cabecalho-botao eli-tabela__acoes-cabecalho-botao--filtro",
onClick: n[1] || (n[1] = (...u) => e.emitFiltroAvancado && e.emitFiltroAvancado(...u))
}, " Filtro ")) : ge("", !0),
re(a, {
modelo: e.valorBusca,
onBuscar: e.emitBuscar
}, null, 8, ["modelo", "onBuscar"])
])) : ge("", !0),
e.temAcoesCabecalho ? (S(), j("div", W$, [
(S(!0), j(De, null, Ee(e.acoesCabecalho, (u, c) => (S(), j("button", {
key: `${u.rotulo}-${c}`,
type: "button",
class: "eli-tabela__acoes-cabecalho-botao",
style: zn(u.cor ? { backgroundColor: u.cor, color: "#fff" } : void 0),
onClick: (l) => u.acao(e.parametrosConsulta)
}, [
u.icone ? (S(), fe(at(u.icone), {
key: 0,
class: "eli-tabela__acoes-cabecalho-icone",
size: 16,
"stroke-width": 2
})) : ge("", !0),
D("span", H$, G(u.rotulo), 1)
], 12, G$))), 128))
])) : ge("", !0)
]);
}
const Q$ = /* @__PURE__ */ oe(q$, [["render", X$]]), eb = ie({
name: "EliTabelaDebug",
props: {
isDev: {
type: Boolean,
required: !0
},
menuAberto: {
type: Number,
required: !0
},
menuPopupPos: {
type: Object,
required: !0
}
}
}), tb = {
key: 0,
style: { position: "fixed", left: "8px", bottom: "8px", "z-index": "999999", background: "rgba(185,28,28,0.9)", color: "#fff", padding: "6px 10px", "border-radius": "8px", "font-size": "12px", "max-width": "500px" }
};
function nb(e, n, r, o, t, i) {
return e.isDev ? (S(), j("div", tb, [
n[0] || (n[0] = D("div", null, [
D("b", null, "EliTabela debug")
], -1)),
D("div", null, "menuAberto: " + G(e.menuAberto), 1),
D("div", null, "menuPos: top=" + G(e.menuPopupPos.top) + ", left=" + G(e.menuPopupPos.left), 1),
st(e.$slots, "default")
])) : ge("", !0);
}
const rb = /* @__PURE__ */ oe(eb, [["render", nb]]), ib = ie({
name: "EliTabelaEstados",
props: {
carregando: {
type: Boolean,
required: !0
},
erro: {
type: String,
required: !0
},
mensagemVazio: {
type: String,
required: !1,
default: void 0
}
}
}), ob = {
key: 0,
class: "eli-tabela eli-tabela--carregando",
"aria-busy": "true"
}, ab = {
key: 1,
class: "eli-tabela eli-tabela--erro",
role: "alert"
}, ub = { class: "eli-tabela__erro-mensagem" }, lb = {
key: 2,
class: "eli-tabela eli-tabela--vazio"
};
function cb(e, n, r, o, t, i) {
return e.carregando ? (S(), j("div", ob, " Carregando... ")) : e.erro ? (S(), j("div", ab, [
n[0] || (n[0] = D("div", { class: "eli-tabela__erro-titulo" }, "Erro", -1)),
D("div", ub, G(e.erro), 1)
])) : (S(), j("div", lb, G(e.mensagemVazio ?? "Nenhum registro encontrado."), 1));
}
const sb = /* @__PURE__ */ oe(ib, [["render", cb]]), db = ie({
name: "EliTabelaHead",
components: { ArrowUp: ga, ArrowDown: pa },
props: {
colunas: {
// biome-ignore lint/suspicious/noExplicitAny: dynamic column
type: Array,
required: !0
},
temAcoes: {
type: Boolean,
required: !0
},
temColunasInvisiveis: {
type: Boolean,
required: !0
},
colunaOrdenacao: {
type: String,
required: !0
},
direcaoOrdenacao: {
type: String,
required: !0
}
},
emits: {
alternarOrdenacao(e) {
return typeof e == "string" && e.length > 0;
}
},
setup(e, { emit: n }) {
function r(t) {
return (t == null ? void 0 : t.coluna_ordem) !== void 0 && (t == null ? void 0 : t.coluna_ordem) !== null;
}
function o(t) {
n("alternarOrdenacao", t);
}
return {
ArrowUp: ga,
ArrowDown: pa,
isOrdenavel: r,
emitAlternarOrdenacao: o
};
}
}), fb = { class: "eli-tabela__thead" }, mb = { class: "eli-tabela__tr eli-tabela__tr--header" }, vb = {
key: 0,
class: "eli-tabela__th eli-tabela__th--expander",
scope: "col"
}, pb = ["onClick"], gb = { class: "eli-tabela__th-texto" }, hb = {
key: 1,
class: "eli-tabela__th-label"
}, $b = {
key: 1,
class: "eli-tabela__th eli-tabela__th--acoes",
scope: "col"
};
function bb(e, n, r, o, t, i) {
const a = be("ArrowUp");
return S(), j("thead", fb, [
D("tr", mb, [
e.temColunasInvisiveis ? (S(), j("th", vb)) : ge("", !0),
(S(!0), j(De, null, Ee(e.colunas, (u, c) => (S(), j("th", {
key: `th-${c}`,
class: lt(["eli-tabela__th", [e.isOrdenavel(u) ? "eli-tabela__th--ordenavel" : void 0]]),
scope: "col"
}, [
e.isOrdenavel(u) ? (S(), j("button", {
key: 0,
type: "button",
class: lt(["eli-tabela__th-botao", [
e.colunaOrdenacao === String(u.coluna_ordem) ? "eli-tabela__th-botao--ativo" : void 0
]]),
onClick: (l) => e.emitAlternarOrdenacao(String(u.coluna_ordem))
}, [
D("span", gb, G(u.rotulo), 1),
e.colunaOrdenacao === String(u.coluna_ordem) ? (S(), fe(at(e.direcaoOrdenacao === "asc" ? e.ArrowUp : e.ArrowDown), {
key: 0,
class: "eli-tabela__th-icone",
size: 16,
"stroke-width": 2,
"aria-hidden": "true"
})) : (S(), fe(a, {
key: 1,
class: "eli-tabela__th-icone eli-tabela__th-icone--oculto",
size: 16,
"stroke-width": 2,
"aria-hidden": "true"
}))
], 10, pb)) : (S(), j("span", hb, G(u.rotulo), 1))
], 2))), 128)),
e.temAcoes ? (S(), j("th", $b, " Ações ")) : ge("", !0)
])
]);
}
const _b = /* @__PURE__ */ oe(db, [["render", bb]]), yb = ie({
name: "EliTabelaMenuAcoes",
props: {
menuAberto: {
type: Number,
required: !0
},
posicao: {
type: Object,
required: !0
},
acoes: {
// biome-ignore lint/suspicious/noExplicitAny: dynamic typing needed
type: Array,
required: !0
},
linha: {
// Aceita qualquer tipo de linha (objeto, string, etc.) sem validação runtime.
type: null,
required: !0
}
},
emits: {
// biome-ignore lint/suspicious/noExplicitAny: dynamic typing needed
executar(e) {
return e !== null && typeof e == "object";
}
},
setup(e, { emit: n, expose: r }) {
const o = H(null);
r({ menuEl: o });
const t = N(() => e.acoes.length > 0);
function i(a) {
e.linha && n("executar", { acao: a.acao, linha: e.linha });
}
return { menuEl: o, possuiAcoes: t, emitExecutar: i };
}
}), kb = ["id", "aria-labelledby"], Sb = ["aria-label", "title", "onClick"], Ib = { class: "eli-tabela__acoes-item-texto" };
function wb(e, n, r, o, t, i) {
return S(), fe(Ff, { to: "body" }, [
e.menuAberto !== null && e.possuiAcoes ? (S(), j("ul", {
key: 0,
id: `eli-tabela-acoes-menu-${e.menuAberto}`,
ref: "menuEl",
class: "eli-tabela__acoes-menu",
role: "menu",
"aria-labelledby": `eli-tabela-acoes-toggle-${e.menuAberto}`,
style: zn({
position: "fixed",
top: `${e.posicao.top}px`,
left: `${e.posicao.left}px`,
zIndex: 999999
})
}, [
(S(!0), j(De, null, Ee(e.acoes, (a) => (S(), j("li", {
key: `acao-${e.menuAberto}-${a.indice}`,
class: "eli-tabela__acoes-item",
role: "none"
}, [
D("button", {
type: "button",
class: "eli-tabela__acoes-item-botao",
style: zn({ color: a.acao.cor }),
role: "menuitem",
"aria-label": a.acao.rotulo,
title: a.acao.rotulo,
onClick: je((u) => e.emitExecutar(a), ["stop"])
}, [
(S(), fe(at(a.acao.icone), {
class: "eli-tabela__acoes-item-icone",
size: 16,
"stroke-width": 2
})),
D("span", Ib, G(a.acao.rotulo), 1)
], 12, Sb)
]))), 128))
], 12, kb)) : ge("", !0)
]);
}
const zb = /* @__PURE__ */ oe(yb, [["render", wb]]), ba = "application/x-eli-tabela-coluna", xb = ie({
name: "EliTabelaModalColunas",
props: {
aberto: {
type: Boolean,
required: !0
},
rotulosColunas: {
type: Array,
required: !0
},
configInicial: {
type: Object,
required: !0
},
colunas: {
// biome-ignore lint/suspicious/noExplicitAny: dynamic typing needed
type: Array,
required: !0
}
},
emits: {
fechar() {
return !0;
},
salvar(e) {
return !0;
}
},
setup(e, { emit: n }) {
const r = H([]), o = H([]);
function t() {
var U, I;
const g = e.rotulosColunas, f = (((U = e.configInicial.visiveis) == null ? void 0 : U.length) ?? 0) > 0 || (((I = e.configInicial.invisiveis) == null ? void 0 : I.length) ?? 0) > 0, h = new Set(
e.colunas.filter((_) => _.visivel === !1).map((_) => _.rotulo)
), b = f ? new Set(e.configInicial.invisiveis ?? []) : h, y = g.filter((_) => !b.has(_)), C = e.configInicial.visiveis ?? [], B = new Set(y), A = [];
for (const _ of C)
B.has(_) && A.push(_);
for (const _ of y)
A.includes(_) || A.push(_);
r.value = A, o.value = g.filter((_) => b.has(_));
}
Be(
() => [
e.aberto,
e.rotulosColunas,
e.configInicial,
e.colunas
],
() => {
e.aberto && t();
},
{ deep: !0, immediate: !0 }
);
function i() {
n("fechar");
}
function a() {
n("salvar", {
visiveis: [...r.value],
invisiveis: [...o.value]
});
}
function u(g, f) {
var h, b;
try {
(h = g.dataTransfer) == null || h.setData(ba, JSON.stringify(f)), (b = g.dataTransfer) == null || b.setData("text/plain", f.rotulo), g.dataTransfer && (g.dataTransfer.effectAllowed = "move");
} catch {
}
}
function c(g) {
var f;
try {
const h = (f = g.dataTransfer) == null ? void 0 : f.getData(ba);
if (!h) return null;
const b = JSON.parse(h);
return !b || typeof b.rotulo != "string" || b.origem !== "visiveis" && b.origem !== "invisiveis" ? null : b;
} catch {
return null;
}
}
function l(g) {
const f = g.origem === "visiveis" ? r.value : o.value, h = f.indexOf(g.rotulo);
h >= 0 && f.splice(h, 1);
}
function s(g, f, h) {
const b = g === "visiveis" ? r.value : o.value, y = b.indexOf(f);
y >= 0 && b.splice(y, 1), h === null || h < 0 || h > b.length ? b.push(f) : b.splice(h, 0, f);
}
function d(g, f, h, b) {
u(g, { rotulo: f, origem: h, index: b });
}
function m(g, f, h) {
const b = c(g);
if (b)
if (l(b), s(f, b.rotulo, h), f === "visiveis") {
const y = o.value.indexOf(b.rotulo);
y >= 0 && o.value.splice(y, 1);
} else {
const y = r.value.indexOf(b.rotulo);
y >= 0 && r.value.splice(y, 1);
}
}
function p(g, f, h) {
const b = c(g);
if (b)
if (l(b), s(f, b.rotulo, null), f === "visiveis") {
const y = o.value.indexOf(b.rotulo);
y >= 0 && o.value.splice(y, 1);
} else {
const y = r.value.indexOf(b.rotulo);
y >= 0 && r.value.splice(y, 1);
}
}
return {
visiveisLocal: r,
invisiveisLocal: o,
emitFechar: i,
emitSalvar: a,
onDragStart: d,
onDropItem: m,
onDropLista: p
};
}
}), Db = {
class: "eli-tabela-modal-colunas__modal",
role: "dialog",
"aria-modal": "true",
"aria-label": "Configurar colunas"
}, Ob = { class: "eli-tabela-modal-colunas__header" }, jb = { class: "eli-tabela-modal-colunas__conteudo" }, Ub = { class: "eli-tabela-modal-colunas__coluna" }, Tb = ["onDragstart", "onDrop"], Eb = { class: "eli-tabela-modal-colunas__item-texto" }, Pb = { class: "eli-tabela-modal-colunas__coluna" }, Nb = ["onDragstart", "onDrop"], Ab = { class: "eli-tabela-modal-colunas__item-texto" }, Zb = { class: "eli-tabela-modal-colunas__footer" };
function Cb(e, n, r, o, t, i) {
return e.aberto ? (S(), j("div", {
key: 0,
class: "eli-tabela-modal-colunas__overlay",
role: "presentation",
onClick: n[9] || (n[9] = je((...a) => e.emitFechar && e.emitFechar(...a), ["self"]))
}, [
D("div", Db, [
D("header", Ob, [
n[10] || (n[10] = D("h3", { class: "eli-tabela-modal-colunas__titulo" }, "Colunas", -1)),
D("button", {
type: "button",
class: "eli-tabela-modal-colunas__fechar",
"aria-label": "Fechar",
onClick: n[0] || (n[0] = (...a) => e.emitFechar && e.emitFechar(...a))
}, " × ")
]),
D("div", jb, [
D("div", Ub, [
n[12] || (n[12] = D("div", { class: "eli-tabela-modal-colunas__coluna-titulo" }, "Visíveis", -1)),
D("div", {
class: "eli-tabela-modal-colunas__lista",
onDragover: n[2] || (n[2] = je(() => {
}, ["prevent"])),
onDrop: n[3] || (n[3] = (a) => e.onDropLista(a, "visiveis", null))
}, [
(S(!0), j(De, null, Ee(e.visiveisLocal, (a, u) => (S(), j("div", {
key: `vis-${a}`,
class: "eli-tabela-modal-colunas__item",
draggable: "true",
onDragstart: (c) => e.onDragStart(c, a, "visiveis", u),
onDragover: n[1] || (n[1] = je(() => {
}, ["prevent"])),
onDrop: (c) => e.onDropItem(c, "visiveis", u)
}, [
n[11] || (n[11] = D("span", {
class: "eli-tabela-modal-colunas__item-handle",
"aria-hidden": "true"
}, "⋮⋮", -1)),
D("span", Eb, G(a), 1)
], 40, Tb))), 128))
], 32)
]),
D("div", Pb, [
n[14] || (n[14] = D("div", { class: "eli-tabela-modal-colunas__coluna-titulo" }, "Invisíveis", -1)),
D("div", {
class: "eli-tabela-modal-colunas__lista",
onDragover: n[5] || (n[5] = je(() => {
}, ["prevent"])),
onDrop: n[6] || (n[6] = (a) => e.onDropLista(a, "invisiveis", null))
}, [
(S(!0), j(De, null, Ee(e.invisiveisLocal, (a, u) => (S(), j("div", {
key: `inv-${a}`,
class: "eli-tabela-modal-colunas__item",
draggable: "true",
onDragstart: (c) => e.onDragStart(c, a, "invisiveis", u),
onDragover: n[4] || (n[4] = je(() => {
}, ["prevent"])),
onDrop: (c) => e.onDropItem(c, "invisiveis", u)
}, [
n[13] || (n[13] = D("span", {
class: "eli-tabela-modal-colunas__item-handle",
"aria-hidden": "true"
}, "⋮⋮", -1)),
D("span", Ab, G(a), 1)
], 40, Nb))), 128))
], 32)
])
]),
D("footer", Zb, [
D("button", {
type: "button",
class: "eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--sec",
onClick: n[7] || (n[7] = (...a) => e.emitFechar && e.emitFechar(...a))
}, " Cancelar "),
D("button", {
type: "button",
class: "eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--prim",
onClick: n[8] || (n[8] = (...a) => e.emitSalvar && e.emitSalvar(...a))
}, " Salvar ")
])
])
])) : ge("", !0);
}
const Mb = /* @__PURE__ */ oe(xb, [["render", Cb]]);
function Fb(e) {
return e === "texto" || e === "numero" || e === "dataHora";
}
function Lb(e) {
var r, o;
const n = (o = (r = e == null ? void 0 : e.entrada) == null ? void 0 : r[1]) == null ? void 0 : o.rotulo;
return String(n || ((e == null ? void 0 : e.coluna) ?? "Filtro"));
}
const Rb = ie({
name: "EliTabelaModalFiltroAvancado",
props: {
aberto: { type: Boolean, required: !0 },
filtrosBase: {
// biome-ignore lint/suspicious/noExplicitAny: dynamic filter type
type: Array,
required: !0
},
modelo: {
// biome-ignore lint/suspicious/noExplicitAny: dynamic model
type: Array,
required: !0
}
},
emits: {
fechar: () => !0,
limpar: () => !0,
// biome-ignore lint/suspicious/noExplicitAny: dynamic lines
salvar: (e) => !0
},
setup(e, { emit: n }) {
const r = H([]), o = H(""), t = N(
() => (e.filtrosBase ?? []).map((f) => String(f.coluna))
), i = N(() => {
const f = new Set(r.value.map((h) => String(h.coluna)));
return (e.filtrosBase ?? []).filter(
(h) => !f.has(String(h.coluna))
);
});
function a(f) {
const h = f == null ? void 0 : f[0];
return h === "numero" ? zf : h === "dataHora" ? wf : To;
}
function u(f) {
return (f == null ? void 0 : f[1]) ?? { rotulo: "" };
}
function c(f) {
return (f == null ? void 0 : f[0]) === "numero" ? null : "";
}
function l() {
var b;
const f = e.filtrosBase ?? [], h = Array.isArray(e.modelo) ? e.modelo : [];
r.value = h.map((y) => {
const C = f.find((_) => String(_.coluna) === String(y.coluna)) ?? f[0], B = (C == null ? void 0 : C.entrada) ?? y.entrada, A = (C == null ? void 0 : C.coluna) ?? y.coluna, U = String((C == null ? void 0 : C.operador) ?? "="), I = y.valor ?? c(B);
return {
coluna: A,
operador: U,
entrada: B,
valor: I
// biome-ignore lint/suspicious/noExplicitAny: dynamic cast
};
});
for (const y of r.value)
t.value.includes(String(y.coluna)) && (y.operador = String(
((b = f.find((C) => String(C.coluna) === String(y.coluna))) == null ? void 0 : b.operador) ?? "="
), y.entrada && !Fb(y.entrada[0]) && (y.entrada = ["texto", { rotulo: "Valor" }]));
}
Be(
() => [e.aberto, e.filtrosBase, e.modelo],
() => {
e.aberto && l();
},
{ deep: !0, immediate: !0 }
);
function s() {
if (!o.value) return;
const f = (e.filtrosBase ?? []).find(
(h) => String(h.coluna) === String(o.value)
);
f && (r.value.some((h) => String(h.coluna) === String(f.coluna)) || (r.value.push({
// biome-ignore lint/suspicious/noExplicitAny: dynamic column
coluna: f.coluna,
entrada: f.entrada,
operador: String(f.operador ?? "="),
valor: c(f.entrada)
}), o.value = ""));
}
function d(f) {
r.value.splice(f, 1);
}
function m() {
n("fechar");
}
function p() {
n("limpar");
}
function g() {
n(
"salvar",
r.value.map((f) => ({
coluna: f.coluna,
valor: f.valor
}))
);
}
return {
linhas: r,
opcoesParaAdicionar: i,
colunaParaAdicionar: o,
componenteEntrada: a,
opcoesEntrada: u,
adicionar: s,
remover: d,
// exibimos operador fixo só como texto
emitFechar: m,
emitSalvar: g,
emitLimpar: p,
rotuloDoFiltro: Lb
};
}
}), Bb = {
class: "eli-tabela-modal-filtro__modal",
role: "dialog",
"aria-modal": "true",
"aria-label": "Filtro avançado"
}, Jb = { class: "eli-tabela-modal-filtro__header" }, Vb = { class: "eli-tabela-modal-filtro__conteudo" }, qb = {
key: 0,
class: "eli-tabela-modal-filtro__vazio"
}, Yb = {
key: 1,
class: "eli-tabela-modal-filtro__lista"
}, Kb = { class: "eli-tabela-modal-filtro__entrada" }, Wb = ["onClick"], Gb = { class: "eli-tabela-modal-filtro__acoes" }, Hb = ["disabled"], Xb = ["value"], Qb = ["disabled"], e_ = { class: "eli-tabela-modal-filtro__footer" };
function t_(e, n, r, o, t, i) {
return e.aberto ? (S(), j("div", {
key: 0,
class: "eli-tabela-modal-filtro__overlay",
role: "presentation",
onClick: n[6] || (n[6] = je((...a) => e.emitFechar && e.emitFechar(...a), ["self"]))
}, [
D("div", Bb, [
D("header", Jb, [
n[7] || (n[7] = D("h3", { class: "eli-tabela-modal-filtro__titulo" }, "Filtro avançado", -1)),
D("button", {
type: "button",
class: "eli-tabela-modal-filtro__fechar",
"aria-label": "Fechar",
onClick: n[0] || (n[0] = (...a) => e.emitFechar && e.emitFechar(...a))
}, " × ")
]),
D("div", Vb, [
e.filtrosBase.length ? (S(), j("div", Yb, [
(S(!0), j(De, null, Ee(e.linhas, (a, u) => (S(), j("div", {
key: String(a.coluna),
class: "eli-tabela-modal-filtro__linha"
}, [
D("div", Kb, [
(S(), fe(at(e.componenteEntrada(a.entrada)), {
value: a.valor,
"onUpdate:value": (c) => a.valor = c,
opcoes: e.opcoesEntrada(a.entrada),
density: "compact"
}, null, 40, ["value", "onUpdate:value", "opcoes"]))
]),
D("button", {
type: "button",
class: "eli-tabela-modal-filtro__remover",
title: "Remover",
"aria-label": "Remover",
onClick: (c) => e.remover(u)
}, " × ", 8, Wb)
]))), 128))
])) : (S(), j("div", qb, " Nenhum filtro configurado na tabela. ")),
D("div", Gb, [
ka(D("select", {
"onUpdate:modelValue": n[1] || (n[1] = (a) => e.colunaParaAdicionar = a),
class: "eli-tabela-modal-filtro__select",
disabled: !e.opcoesParaAdicionar.length
}, [
n[8] || (n[8] = D("option", {
disabled: "",
value: ""
}, "Selecione um filtro…", -1)),
(S(!0), j(De, null, Ee(e.opcoesParaAdicionar, (a) => (S(), j("option", {
key: String(a.coluna),
value: String(a.coluna)
}, G(e.rotuloDoFiltro(a)), 9, Xb))), 128))
], 8, Hb), [
[Lf, e.colunaParaAdicionar]
]),
D("button", {
type: "button",
class: "eli-tabela-modal-filtro__botao",
onClick: n[2] || (n[2] = (...a) => e.adicionar && e.adicionar(...a)),
disabled: !e.colunaParaAdicionar
}, " Adicionar ", 8, Qb)
])
]),
D("footer", e_, [
D("button", {
type: "button",
class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--sec",
onClick: n[3] || (n[3] = (...a) => e.emitLimpar && e.emitLimpar(...a))
}, " Limpar "),
D("button", {
type: "button",
class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--sec",
onClick: n[4] || (n[4] = (...a) => e.emitFechar && e.emitFechar(...a))
}, " Cancelar "),
D("button", {
type: "button",
class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--prim",
onClick: n[5] || (n[5] = (...a) => e.emitSalvar && e.emitSalvar(...a))
}, " Aplicar ")
])
])
])) : ge("", !0);
}
const n_ = /* @__PURE__ */ oe(Rb, [["render", t_]]), r_ = ie({
name: "EliTabelaPaginacao",
props: {
pagina: {
type: Number,
required: !0
},
totalPaginas: {
type: Number,
required: !0
},
maximoBotoes: {
type: Number,
required: !1
},
acoes: {
type: Array,
required: !1,
default: () => []
},
parametrosConsulta: {
// biome-ignore lint/suspicious/noExplicitAny: dynamic params
type: Object,
required: !1
}
},
emits: {
alterar(e) {
return Number.isFinite(e);
}
},
setup(e, { emit: n }) {
const r = N(() => {
const l = e.maximoBotoes;
return typeof l == "number" && l >= 5 ? Math.floor(l) : 7;
}), o = N(() => {
const l = e.totalPaginas, s = e.pagina, d = r.value, m = [], p = (y) => {
m.push({
label: String(y),
pagina: y,
ativo: y === s
});
}, g = () => {
m.push({ label: "…", ehEllipsis: !0 });
};
if (l <= d) {
for (let y = 1; y <= l; y += 1)
p(y);
return m;
}
const f = Math.max(3, d - 2);
let h = Math.max(2, s - Math.floor(f / 2)), b = h + f - 1;
b >= l && (b = l - 1, h = b - f + 1), p(1), h > 2 && g();
for (let y = h; y <= b; y += 1)
p(y);
return b < l - 1 && g(), p(l), m;
});
function t(l) {
if (!l)
return;
const s = Math.min(Math.max(1, l), e.totalPaginas);
s !== e.pagina && n("alterar", s);
}
const i = N(() => e.pagina <= 1), a = N(
() => e.pagina >= e.totalPaginas
), u = N(() => e.pagina), c = N(() => e.totalPaginas);
return {
botoes: o,
irParaPagina: t,
anteriorDesabilitado: i,
proximaDesabilitada: a,
paginaAtual: u,
totalPaginasExibidas: c
};
}
}), i_ = { class: "eli-tabela__rodape" }, o_ = {
key: 0,
class: "eli-tabela__acoes-inferiores",
style: { "margin-right": "auto" }
}, a_ = ["onClick"], u_ = { class: "eli-tabela__acoes-cabecalho-rotulo" }, l_ = {
key: 1,
class: "eli-tabela__paginacao",
role: "navigation",
"aria-label": "Paginação de resultados"
}, c_ = ["disabled"], s_ = {
key: 0,
class: "eli-tabela__pagina-ellipsis",
"aria-hidden": "true"
}, d_ = ["disabled", "aria-current", "aria-label", "onClick"], f_ = ["disabled"];
function m_(e, n, r, o, t, i) {
return S(), j("div", i_, [
e.acoes.length > 0 ? (S(), j("div", o_, [
(S(!0), j(De, null, Ee(e.acoes, (a, u) => (S(), j("button", {
key: `${a.rotulo}-${u}`,
type: "button",
class: "eli-tabela__acao-inferior",
style: zn(a.cor ? { borderColor: a.cor, color: a.cor } : void 0),
onClick: (c) => a.acao(e.parametrosConsulta)
}, [
a.icone ? (S(), fe(at(a.icone), {
key: 0,
class: "eli-tabela__acoes-cabecalho-icone",
size: 16,
"stroke-width": 2
})) : ge("", !0),
D("span", u_, G(a.rotulo), 1)
], 12, a_))), 128))
])) : ge("", !0),
e.totalPaginasExibidas > 1 ? (S(), j("nav", l_, [
D("button", {
type: "button",
class: "eli-tabela__pagina-botao",
disabled: e.anteriorDesabilitado,
"aria-label": "Página anterior",
onClick: n[0] || (n[0] = (a) => e.irParaPagina(e.paginaAtual - 1))
}, " << ", 8, c_),
(S(!0), j(De, null, Ee(e.botoes, (a, u) => (S(), j(De, {
key: `${a.label}-${u}`
}, [
a.ehEllipsis ? (S(), j("span", s_, G(a.label), 1)) : (S(), j("button", {
key: 1,
type: "button",
class: lt(["eli-tabela__pagina-botao", a.ativo ? "eli-tabela__pagina-botao--ativo" : void 0]),
disabled: a.ativo,
"aria-current": a.ativo ? "page" : void 0,
"aria-label": `Ir para página ${a.label}`,
onClick: (c) => e.irParaPagina(a.pagina)
}, G(a.label), 11, d_))
], 64))), 128)),
D("button", {
type: "button",
class: "eli-tabela__pagina-botao",
disabled: e.proximaDesabilitada,
"aria-label": "Próxima página",
onClick: n[1] || (n[1] = (a) => e.irParaPagina(e.paginaAtual + 1))
}, " >> ", 8, f_)
])) : ge("", !0)
]);
}
const v_ = /* @__PURE__ */ oe(r_, [["render", m_]]);
function Eo(e) {
return `eli_tabela:${e}:filtro_avancado`;
}
function _a(e) {
try {
const n = localStorage.getItem(Eo(e));
if (!n) return [];
const r = JSON.parse(n);
return Array.isArray(r) ? r : (
// biome-ignore lint/suspicious/noExplicitAny: dynamic cast
[]
);
} catch {
return [];
}
}
function p_(e, n) {
try {
localStorage.setItem(Eo(e), JSON.stringify(n ?? []));
} catch {
}
}
function g_(e) {
try {
localStorage.removeItem(Eo(e));
} catch {
}
}
const h_ = ie({
name: "EliTabela",
inheritAttrs: !1,
components: {
EliTabelaCabecalho: Q$,
EliTabelaEstados: sb,
EliTabelaDebug: rb,
EliTabelaHead: _b,
EliTabelaBody: F$,
EliTabelaMenuAcoes: zb,
EliTabelaPaginacao: v_,
EliTabelaModalColunas: Mb,
EliTabelaModalFiltroAvancado: n_
},
props: {
/** Configuração principal da tabela (colunas, consulta e ações) */
tabela: {
// biome-ignore lint/suspicious/noExplicitAny: dynamic table
type: Object,
required: !0
}
},
setup(e) {
const r = H(!1), o = H(null), t = H([]), i = H(0), a = H([]), u = H(null), c = H(
null
), l = H({ top: 0, left: 0 }), s = H(""), d = H(1), m = H(null), p = H("asc"), g = H(!1), f = H(
// biome-ignore lint/suspicious/noExplicitAny: dynamic load
_a(e.tabela.nome)
);
function h() {
g.value = !0;
}
function b() {
g.value = !1;
}
function y() {
f.value = [], g_(e.tabela.nome), g.value = !1, s.value = "", d.value !== 1 ? d.value = 1 : Le();
}
function C(E) {
f.value = E ?? [], p_(e.tabela.nome, E ?? []), g.value = !1, s.value = "", d.value !== 1 ? d.value = 1 : Le();
}
const B = N(() => {
const E = e.tabela.filtroAvancado ?? [];
return (f.value ?? []).filter((W) => W && W.coluna !== void 0).map((W) => {
const X = E.find((ee) => String(ee.coluna) === String(W.coluna));
return X ? {
coluna: String(X.coluna),
// biome-ignore lint/suspicious/noExplicitAny: dynamic operator
operador: X.operador,
// biome-ignore lint/suspicious/noExplicitAny: dynamic value
valor: W.valor
} : null;
}).filter(Boolean);
}), A = N(() => e.tabela), U = N(
() => !!e.tabela.mostrarCaixaDeBusca
), I = N(
() => (e.tabela.acoesTabela ?? []).filter((E) => E.posicao === "superior")
), _ = N(
() => (e.tabela.acoesTabela ?? []).filter((E) => E.posicao === "inferior")
), Y = N(() => I.value.length > 0), L = N(() => _.value.length > 0), Z = N(() => {
const E = Math.max(1, ve.value), X = {
offSet: (d.value - 1) * E,
limit: E
}, ee = (s.value ?? "").trim();
if (ee)
X.texto_busca = ee;
else {
const pe = B.value;
pe.length && (X.filtros = pe);
}
return m.value && (X.coluna_ordem = m.value, X.direcao_ordem = p.value), {
...X,
atualizarConsulta: async () => {
await Le();
},
// biome-ignore lint/suspicious/noExplicitAny: dynamic list update
editarLista: async (pe) => (t.value = pe, pe)
};
}), le = H(!1), ne = H(
fa(e.tabela.nome)
), T = H({}), O = N(
() => e.tabela.colunas.map((E) => E.rotulo)
), w = N(() => {
var ze, Oe;
const E = e.tabela.colunas, X = (((ze = ne.value.visiveis) == null ? void 0 : ze.length) ?? 0) > 0 || (((Oe = ne.value.invisiveis) == null ? void 0 : Oe.length) ?? 0) > 0 ? ne.value.invisiveis ?? [] : E.filter((me) => me.visivel === !1).map((me) => me.rotulo), ee = new Set(X), pe = E.filter((me) => ee.has(me.rotulo)), Te = X, Ve = /* @__PURE__ */ new Map();
for (const me of pe)
Ve.has(me.rotulo) || Ve.set(me.rotulo, me);
const _e = [];
for (const me of Te) {
const Re = Ve.get(me);
Re && _e.push(Re);
}
for (const me of pe)
_e.includes(me) || _e.push(me);
return _e;
}), P = N(
() => w.value.length > 0
), x = N(() => {
var me, Re;
const E = e.tabela.colunas, W = O.value, X = (((me = ne.value.visiveis) == null ? void 0 : me.length) ?? 0) > 0 || (((Re = ne.value.invisiveis) == null ? void 0 : Re.length) ?? 0) > 0, ee = X ? ne.value.invisiveis ?? [] : (
// biome-ignore lint/suspicious/noExplicitAny: dynamic column
e.tabela.colunas.filter((ce) => ce.visivel === !1).map((ce) => ce.rotulo)
), pe = new Set(ee), Te = W.filter(
(ce) => !pe.has(ce)
), Ve = new Set(Te), _e = X ? ne.value.visiveis ?? [] : [], ze = [];
for (const ce of _e)
Ve.has(ce) && ze.push(ce);
for (const ce of Te)
ze.includes(ce) || ze.push(ce);
const Oe = /* @__PURE__ */ new Map();
for (const ce of E)
Oe.has(ce.rotulo) || Oe.set(ce.rotulo, ce);
return ze.map((ce) => Oe.get(ce)).filter(Boolean);
}), J = N(() => x.value.length + (et.value ? 1 : 0) + (P.value ? 1 : 0));
function V() {
le.value = !0;
}
function Q() {
le.value = !1;
}
function de(E) {
ne.value = E, Gh(e.tabela.nome, E), le.value = !1, T.value = {};
}
function he(E) {
const W = !!T.value[E];
T.value = {
...T.value,
[E]: !W
};
}
const ve = N(() => {
const E = e.tabela.registros_por_consulta;
return typeof E == "number" && E > 0 ? Math.floor(E) : 10;
}), we = N(() => {
const E = ve.value;
if (!E || E <= 0) return 1;
const W = i.value ?? 0;
return W ? Math.max(1, Math.ceil(W / E)) : 1;
}), Qe = N(() => t.value ?? []), Ke = N(() => i.value ?? 0), et = N(() => (e.tabela.acoesLinha ?? []).length > 0), We = N(
() => (e.tabela.filtroAvancado ?? []).length > 0
);
let $e = 0;
function Fe(E) {
var _e, ze, Oe, me, Re, ce;
const W = E.getBoundingClientRect(), X = 8, ee = ((Oe = (ze = (_e = c.value) == null ? void 0 : _e.menuEl) == null ? void 0 : ze.value) == null ? void 0 : Oe.offsetHeight) ?? 0, pe = ((ce = (Re = (me = c.value) == null ? void 0 : me.menuEl) == null ? void 0 : Re.value) == null ? void 0 : ce.offsetWidth) ?? 180;
let Te = W.bottom + X;
const Ve = W.right - pe;
ee && Te + ee > window.innerHeight - X && (Te = W.top - X - ee), l.value = {
top: Math.max(X, Math.round(Te)),
left: Math.max(X, Math.round(Ve))
};
}
function tt(E) {
var X, ee, pe;
if (u.value === null) return;
const W = E.target;
(pe = (ee = (X = c.value) == null ? void 0 : X.menuEl) == null ? void 0 : ee.value) != null && pe.contains(W) || (u.value = null);
}
function ht(E) {
if (E) {
if (m.value === E) {
p.value = p.value === "asc" ? "desc" : "asc", Le();
return;
}
m.value = E, p.value = "asc", d.value !== 1 ? d.value = 1 : Le();
}
}
function Uf(E) {
s.value !== E && (s.value = E, d.value !== 1 ? d.value = 1 : Le());
}
function Tf(E) {
const W = Math.min(Math.max(1, E), we.value);
W !== d.value && (d.value = W);
}
function Po(E) {
const W = e.tabela.acoesLinha ?? [], X = a.value[E] ?? [];
return W.map((ee, pe) => {
const Te = ee.exibir === void 0 ? !0 : typeof ee.exibir == "boolean" ? ee.exibir : !1;
return {
acao: ee,
indice: pe,
visivel: X[pe] ?? Te
};
}).filter((ee) => ee.visivel);
}
function No(E) {
return Po(E).length > 0;
}
function Ef(E, W) {
if (!No(E)) return;
if (u.value === E) {
u.value = null;
return;
}
u.value = E;
const X = (W == null ? void 0 : W.currentTarget) ?? null;
X && (Fe(X), requestAnimationFrame(() => Fe(X)));
}
async function Le() {
var Te, Ve;
const E = ++$e;
r.value = !0, o.value = null, a.value = [], u.value = null, T.value = {};
const W = Math.max(1, ve.value), ee = {
offSet: (d.value - 1) * W,
limit: W
}, pe = (s.value ?? "").trim();
if (pe)
ee.texto_busca = pe;
else {
const _e = B.value;
_e.length && (ee.filtros = _e);
}
m.value && (ee.coluna_ordem = m.value, ee.direcao_ordem = p.value);
try {
const _e = e.tabela, ze = await _e.consulta(ee);
if (E !== $e) return;
if (ze.cod !== xf.sucesso) {
t.value = [], i.value = 0, o.value = ze.mensagem;
return;
}
const Oe = ((Te = ze.valor) == null ? void 0 : Te.valores) ?? [], me = ((Ve = ze.valor) == null ? void 0 : Ve.quantidade) ?? Oe.length;
t.value = Oe, i.value = Number(me) || 0;
const Re = Math.max(
1,
Math.ceil((i.value || 0) / W)
);
d.value > Re && (d.value = Re);
const ce = _e.acoesLinha ?? [];
if (!ce.length) {
a.value = [];
return;
}
const Pf = Oe.map(
() => ce.map((jt) => jt.exibir === void 0 ? !0 : typeof jt.exibir == "boolean" ? jt.exibir : !1)
);
a.value = Pf;
const Nf = await Promise.all(
Oe.map(
async (jt) => Promise.all(
ce.map(async (sn) => {
if (sn.exibir === void 0) return !0;
if (typeof sn.exibir == "boolean") return sn.exibir;
try {
const Af = sn.exibir(jt);
return !!await Promise.resolve(Af);
} catch {
return !1;
}
})
)
)
);
E === $e && (a.value = Nf);
} catch (_e) {
if (E !== $e) return;
t.value = [], i.value = 0, o.value = _e instanceof Error ? _e.message : "Erro ao carregar dados.";
} finally {
E === $e && (r.value = !1);
}
}
return ya(() => {
document.addEventListener("click", tt), Le();
}), Rf(() => {
document.removeEventListener("click", tt);
}), Be(
() => e.tabela.mostrarCaixaDeBusca,
(E) => {
!E && s.value && (s.value = "", d.value !== 1 ? d.value = 1 : Le());
}
), Be(d, (E, W) => {
E !== W && Le();
}), Be(
() => e.tabela,
() => {
u.value = null, m.value = null, p.value = "asc", s.value = "", le.value = !1, g.value = !1, ne.value = fa(e.tabela.nome), f.value = _a(e.tabela.nome), T.value = {}, d.value !== 1 ? d.value = 1 : Le();
}
), Be(
() => e.tabela.registros_por_consulta,
() => {
d.value !== 1 ? d.value = 1 : Le();
}
), Be(t, () => {
u.value = null, T.value = {};
}), {
// state
isDev: !1,
tabela: A,
carregando: r,
erro: o,
linhas: t,
linhasPaginadas: Qe,
filtrosAvancadosAtivos: B,
quantidadeFiltrada: Ke,
quantidade: i,
menuAberto: u,
valorBusca: s,
paginaAtual: d,
colunaOrdenacao: m,
direcaoOrdenacao: p,
totalPaginas: we,
registrosPorConsulta: ve,
// computed
exibirBusca: U,
exibirFiltroAvancado: We,
acoesSuperiores: I,
temAcoesSuperiores: Y,
acoesInferiores: _,
temAcoesInferiores: L,
parametrosConsultaAtuais: Z,
temAcoes: et,
totalColunas: J,
colunasEfetivas: x,
rotulosColunas: O,
modalColunasAberto: le,
configColunas: ne,
temColunasInvisiveis: P,
colunasInvisiveisEfetivas: w,
linhasExpandidas: T,
abrirModalColunas: V,
abrirModalFiltro: h,
fecharModalColunas: Q,
salvarModalColunas: de,
modalFiltroAberto: g,
filtrosUi: f,
salvarFiltrosAvancados: C,
limparFiltrosAvancados: y,
fecharModalFiltro: b,
alternarLinhaExpandida: he,
// actions
alternarOrdenacao: ht,
atualizarBusca: Uf,
irParaPagina: Tf,
acoesDisponiveisPorLinha: Po,
possuiAcoes: No,
toggleMenu: Ef,
// popup
menuPopup: c,
menuPopupPos: l
};
}
}), $_ = { class: "eli-tabela" }, b_ = { class: "eli-tabela__table" }, __ = { key: 0 }, y_ = ["colspan"];
function k_(e, n, r, o, t, i) {
const a = be("EliTabelaDebug"), u = be("EliTabelaCabecalho"), c = be("EliTabelaModalColunas"), l = be("EliTabelaModalFiltroAvancado"), s = be("EliTabelaHead"), d = be("EliTabelaEstados"), m = be("EliTabelaBody"), p = be("EliTabelaMenuAcoes"), g = be("EliTabelaPaginacao");
return S(), j("div", $_, [
re(a, {
isDev: e.isDev,
menuAberto: e.menuAberto,
menuPopupPos: e.menuPopupPos
}, {
default: ye(() => [
D("div", null, "paginaAtual: " + G(e.paginaAtual), 1),
D("div", null, "limit: " + G(e.registrosPorConsulta), 1),
D("div", null, "texto_busca: " + G((e.valorBusca || "").trim()), 1),
D("div", null, "filtrosAvancadosAtivos: " + G(JSON.stringify(e.filtrosAvancadosAtivos)), 1),
D("div", null, "quantidadeTotal: " + G(e.quantidade), 1)
]),
_: 1
}, 8, ["isDev", "menuAberto", "menuPopupPos"]),
e.exibirBusca || e.temAcoesSuperiores ? (S(), fe(u, {
key: 0,
exibirBusca: e.exibirBusca,
exibirBotaoFiltroAvancado: e.exibirFiltroAvancado,
valorBusca: e.valorBusca,
acoesCabecalho: e.acoesSuperiores,
parametrosConsulta: e.parametrosConsultaAtuais,
onBuscar: e.atualizarBusca,
onColunas: e.abrirModalColunas,
onFiltroAvancado: e.abrirModalFiltro
}, null, 8, ["exibirBusca", "exibirBotaoFiltroAvancado", "valorBusca", "acoesCabecalho", "parametrosConsulta", "onBuscar", "onColunas", "onFiltroAvancado"])) : ge("", !0),
re(c, {
aberto: e.modalColunasAberto,
rotulosColunas: e.rotulosColunas,
configInicial: e.configColunas,
colunas: e.tabela.colunas,
onFechar: e.fecharModalColunas,
onSalvar: e.salvarModalColunas
}, null, 8, ["aberto", "rotulosColunas", "configInicial", "colunas", "onFechar", "onSalvar"]),
re(l, {
aberto: e.modalFiltroAberto,
filtrosBase: e.tabela.filtroAvancado ?? [],
modelo: e.filtrosUi,
onFechar: e.fecharModalFiltro,
onLimpar: e.limparFiltrosAvancados,
onSalvar: e.salvarFiltrosAvancados
}, null, 8, ["aberto", "filtrosBase", "modelo", "onFechar", "onLimpar", "onSalvar"]),
D("table", b_, [
re(s, {
colunas: e.colunasEfetivas,
temAcoes: e.temAcoes,
temColunasInvisiveis: e.temColunasInvisiveis,
colunaOrdenacao: e.colunaOrdenacao,
direcaoOrdenacao: e.direcaoOrdenacao,
onAlternarOrdenacao: e.alternarOrdenacao
}, null, 8, ["colunas", "temAcoes", "temColunasInvisiveis", "colunaOrdenacao", "direcaoOrdenacao", "onAlternarOrdenacao"]),
e.carregando || e.erro || !e.linhas.length ? (S(), j("tbody", __, [
D("tr", null, [
D("td", {
colspan: e.totalColunas,
style: { padding: "0" }
}, [
re(d, {
carregando: e.carregando,
erro: e.erro,
mensagemVazio: e.tabela.mensagemVazio,
style: { border: "none", "border-radius": "0" }
}, null, 8, ["carregando", "erro", "mensagemVazio"])
], 8, y_)
])
])) : (S(), fe(m, {
key: 1,
colunas: e.colunasEfetivas,
colunasInvisiveis: e.colunasInvisiveisEfetivas,
temColunasInvisiveis: e.temColunasInvisiveis,
linhasExpandidas: e.linhasExpandidas,
linhas: e.linhasPaginadas,
temAcoes: e.temAcoes,
menuAberto: e.menuAberto,
possuiAcoes: e.possuiAcoes,
toggleMenu: e.toggleMenu,
alternarLinhaExpandida: e.alternarLinhaExpandida
}, null, 8, ["colunas", "colunasInvisiveis", "temColunasInvisiveis", "linhasExpandidas", "linhas", "temAcoes", "menuAberto", "possuiAcoes", "toggleMenu", "alternarLinhaExpandida"]))
]),
re(p, {
ref: "menuPopup",
menuAberto: e.menuAberto,
posicao: e.menuPopupPos,
acoes: e.menuAberto === null ? [] : e.acoesDisponiveisPorLinha(e.menuAberto),
linha: e.menuAberto === null ? null : e.linhasPaginadas[e.menuAberto],
onExecutar: n[0] || (n[0] = ({ acao: f, linha: h }) => {
e.menuAberto = null, f.acao(h);
})
}, null, 8, ["menuAberto", "posicao", "acoes", "linha"]),
e.totalPaginas > 1 && e.quantidadeFiltrada > 0 || e.temAcoesInferiores ? (S(), fe(g, {
key: 1,
pagina: e.paginaAtual,
totalPaginas: e.totalPaginas,
maximoBotoes: e.tabela.maximo_botoes_paginacao,
acoes: e.acoesInferiores,
parametrosConsulta: e.parametrosConsultaAtuais,
onAlterar: e.irParaPagina
}, null, 8, ["pagina", "totalPaginas", "maximoBotoes", "acoes", "parametrosConsulta", "onAlterar"])) : ge("", !0)
]);
}
const S_ = /* @__PURE__ */ oe(h_, [["render", k_]]), C_ = (e, n) => [e, n], I_ = ie({
name: "EliOlaMundo",
components: {
EliBotao: xa,
EliBadge: Ar,
EliEntradaTexto: To
},
setup() {
const e = H(""), n = H(""), r = H(""), o = H(""), t = H("");
return {
nome: e,
email: o,
documento: t,
telefone: r,
cep: n
};
}
}), w_ = { class: "grid-example" };
function z_(e, n, r, o, t, i) {
const a = be("EliBadge"), u = be("EliEntradaTexto"), c = be("EliBotao");
return S(), fe(Hf, null, {
default: ye(() => [
re(Sa, {
class: "mx-auto",
max_width: "400"
}, {
default: ye(() => [
re(Ia, null, {
default: ye(() => [
re(a, {
badge: "Novo",
"offset-x": "-15",
location: "right center"
}, {
default: ye(() => [...n[5] || (n[5] = [
pn(" Olá Mundo! ", -1)
])]),
_: 1
})
]),
_: 1
}),
re(wa, null, {
default: ye(() => [
n[6] || (n[6] = pn(" Este é um componente de exemplo integrado com Vuetify. ", -1)),
D("div", w_, [
re(u, {
value: e.nome,
"onUpdate:value": n[0] || (n[0] = (l) => e.nome = l),
opcoes: { rotulo: "Nome", placeholder: "Digite o nome" },
density: "compact"
}, null, 8, ["value"]),
re(u, {
value: e.telefone,
"onUpdate:value": n[1] || (n[1] = (l) => e.telefone = l),
opcoes: { rotulo: "Telefone", formato: "telefone" }
}, null, 8, ["value"]),
re(u, {
value: e.cep,
"onUpdate:value": n[2] || (n[2] = (l) => e.cep = l),
opcoes: { rotulo: "CEP", placeholder: "00000-000", formato: "cep" }
}, null, 8, ["value"]),
re(u, {
value: e.documento,
"onUpdate:value": n[3] || (n[3] = (l) => e.documento = l),
opcoes: { rotulo: "CPF / CNPJ", formato: "cpfCnpj" }
}, null, 8, ["value"]),
re(u, {
value: e.email,
"onUpdate:value": n[4] || (n[4] = (l) => e.email = l),
opcoes: { rotulo: "Email", placeholder: "email@exemplo.com", formato: "email" }
}, null, 8, ["value"])
])
]),
_: 1
}),
re(za, null, {
default: ye(() => [
re(c, {
color: "primary",
variant: "elevated",
block: ""
}, {
default: ye(() => [...n[7] || (n[7] = [
pn(" Botão Vuetify ", -1)
])]),
_: 1
})
]),
_: 1
})
]),
_: 1
})
]),
_: 1
});
}
const x_ = /* @__PURE__ */ oe(I_, [["render", z_]]), M_ = {
install(e) {
e.component("EliOlaMundo", x_), e.component("EliBotao", xa), e.component("EliBadge", Ar), e.component("EliCartao", am), e.component("EliTabela", S_), e.component("EliEntradaTexto", To), e.component("EliEntradaNumero", zf), e.component("EliEntradaDataHora", wf), e.component("EliEntradaParagrafo", Zh), e.component("EliEntradaSelecao", Fh);
}
};
export {
Ar as EliBadge,
xa as EliBotao,
am as EliCartao,
wf as EliEntradaDataHora,
zf as EliEntradaNumero,
Zh as EliEntradaParagrafo,
Fh as EliEntradaSelecao,
To as EliEntradaTexto,
x_ as EliOlaMundo,
S_ as EliTabela,
C_ as celulaTabela,
M_ as default
};