(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;position:relative;overflow:hidden}.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;transition:box-shadow .15s,opacity .15s,transform .15s}.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--arrastando{opacity:.1;background:#f8fafc;border-style:dashed}.list-move,.list-enter-active,.list-leave-active{transition:all .25s cubic-bezier(.4,0,.2,1)}.list-enter-from,.list-leave-to{opacity:0;transform:scale(.95)}.list-leave-active{position:absolute;width:calc(100% - 20px)}.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__table thead tr:first-child th:first-child{border-top-left-radius:11px}.eli-tabela__table thead tr:first-child th:last-child{border-top-right-radius:11px}.eli-tabela__table tbody tr:last-child td:first-child{border-bottom-left-radius:11px}.eli-tabela__table tbody tr:last-child td:last-child{border-bottom-right-radius:11px}.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:#0f172ad9}.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}}.eli-tabela__th--selecao,.eli-tabela__td--selecao{width:48px;min-width:48px;max-width:48px;text-align:center;padding:0 8px;vertical-align:middle}.eli-tabela__checkbox{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:15px;height:15px;cursor:pointer;border:2px solid rgba(0,0,0,.54);border-radius:2px;margin:0;vertical-align:middle;position:relative;transition:all .2s ease-in-out;background-color:transparent;outline:none}.eli-tabela__checkbox:hover{border-color:#000000de}.eli-tabela__checkbox:checked,.eli-tabela__checkbox:indeterminate{background-color:#1976d2;border-color:#1976d2}.eli-tabela__checkbox:checked:after{content:"";position:absolute;top:0;left:4px;width:4px;height:9px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.eli-tabela__checkbox:indeterminate:after{content:"";position:absolute;top:5px;left:2px;width:8px;height:2px;background-color:#fff;border-radius:1px}.eli-tabela__checkbox:focus-visible{box-shadow:0 0 0 2px #1976d24d}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})(); import { defineComponent as oe, openBlock as _, createBlock as de, mergeProps as at, withCtx as he, renderSlot as mt, computed as T, resolveComponent as ge, createVNode as ne, createElementVNode as j, createTextVNode as yn, toDisplayString as Q, createCommentVNode as ve, createElementBlock as E, ref as X, watch as Be, createSlots as om, onMounted as Ma, inject as am, h as Tr, withModifiers as _e, Fragment as Oe, renderList as Ee, resolveDynamicComponent as ut, normalizeClass as Xe, withDirectives as Fa, withKeys as um, vModelText as lm, normalizeStyle as En, Teleport as La, TransitionGroup as Ko, vModelSelect as cm, onBeforeUnmount as sm } from "vue"; import { VBtn as dm } from "vuetify/components/VBtn"; import { VBadge as fm } from "vuetify/components/VBadge"; import { VCard as Ra, VCardTitle as Ba, VCardText as Ja, VCardActions as Va } from "vuetify/components/VCard"; import { VTextField as Fr } from "vuetify/components/VTextField"; import { VTextarea as mm, VSelect as vm, VChip as pm } from "vuetify/components"; import { VTextarea as gm } from "vuetify/components/VTextarea"; import { VSelect as hm } from "vuetify/components/VSelect"; import { VChip as $m } from "vuetify/components/VChip"; import { VContainer as bm } from "vuetify/components/VGrid"; const _m = oe({ 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 } } }), ae = (e, n) => { const r = e.__vccOpts || e; for (const [o, t] of n) r[o] = t; return r; }; function ym(e, n, r, o, t, i) { return _(), de(dm, at({ 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: he(() => [ mt(e.$slots, "default") ]), _: 3 }, 16, ["color", "variant", "size", "disabled", "loading"]); } const qa = /* @__PURE__ */ ae(_m, [["render", ym]]), Go = { suave: "4px", pill: "10px" }, km = oe({ 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 = T(() => e.radius in Go ? Go[e.radius] : e.radius), r = T(() => e.dot || e.badge !== void 0 ? e.visible : !1), o = T(() => ({ "--eli-badge-radius": n.value })); return { showBadge: r, badgeStyle: o }; } }); function Sm(e, n, r, o, t, i) { return e.showBadge ? (_(), de(fm, at({ 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: he(() => [ mt(e.$slots, "default") ]), _: 3 }, 16, ["color", "location", "offset-x", "offset-y", "dot", "content", "style"])) : mt(e.$slots, "default", { key: 1 }); } const Lr = /* @__PURE__ */ ae(km, [["render", Sm]]), Im = oe({ name: "EliCartao", components: { EliBadge: Lr }, 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 = T(() => e.status), o = T(() => { switch (e.status) { case "novo": return "primary"; case "rascunho": return "secondary"; case "vendido": return "success"; case "cancelado": return "error"; } }), t = T(() => `eli-cartao--${e.status}`); function i() { n("clicar", e.status); } return { rotuloStatus: r, corStatus: o, classeStatus: t, onClick: i }; } }), zm = { class: "eli-cartao__titulo-texto" }, wm = { class: "eli-cartao__status" }; function xm(e, n, r, o, t, i) { const a = ge("EliBadge"); return _(), de(Ra, at({ class: ["eli-cartao", e.classeStatus], variant: e.variant }, e.$attrs), { default: he(() => [ ne(Ba, { class: "eli-cartao__titulo" }, { default: he(() => [ j("div", zm, [ mt(e.$slots, "titulo", {}, () => [ yn(Q(e.titulo), 1) ]) ]), j("div", wm, [ ne(a, { badge: e.rotuloStatus, radius: "pill", color: e.corStatus }, { default: he(() => [...n[0] || (n[0] = [ j("span", null, null, -1) ])]), _: 1 }, 8, ["badge", "color"]) ]) ]), _: 3 }), ne(Ja, { class: "eli-cartao__conteudo" }, { default: he(() => [ mt(e.$slots, "default") ]), _: 3 }), e.$slots.acoes ? (_(), de(Va, { key: 0, class: "eli-cartao__acoes" }, { default: he(() => [ mt(e.$slots, "acoes") ]), _: 3 })) : ve("", !0) ]), _: 3 }, 16, ["variant", "class"]); } const Dm = /* @__PURE__ */ ae(Im, [["render", xm]]); var Ho; const Ya = /* @__PURE__ */ Object.freeze({ status: "aborted" }); function p(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 f = s[d]; f in u || (u[f] = l[f].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 Wa = Symbol("zod_brand"); class vt extends Error { constructor() { super("Encountered Promise during synchronous parse. Use .parseAsync() instead."); } } class Fn extends Error { constructor(n) { super(`Encountered unidirectional transform during encode: ${n}`), this.name = "ZodEncodeError"; } } (Ho = globalThis).__zod_globalConfig ?? (Ho.__zod_globalConfig = {}); const Mt = globalThis.__zod_globalConfig; function ye(e) { return e && Object.assign(Mt, e), Mt; } function Om(e) { return e; } function jm(e) { return e; } function Um(e) { } function Em(e) { throw new Error("Unexpected value in exhaustive check"); } function Tm(e) { } function Rr(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 b(e, n = "|") { return e.map((r) => C(r)).join(n); } function Tn(e, n) { return typeof n == "bigint" ? n.toString() : n; } function Vt(e) { return { get value() { { const n = e(); return Object.defineProperty(this, "value", { value: n }), n; } } }; } function bt(e) { return e == null; } function Ln(e) { const n = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length; return e.slice(n, r); } function Ka(e, n) { const r = e / n, o = Math.round(r), t = Number.EPSILON * Math.max(Math.abs(r), 1); return Math.abs(r - o) < t ? 0 : r - o; } const Xo = /* @__PURE__ */ Symbol("evaluating"); function H(e, n, r) { let o; Object.defineProperty(e, n, { get() { if (o !== Xo) return o === void 0 && (o = Xo, o = r()), o; }, set(t) { Object.defineProperty(e, n, { value: t // configurable: true, }); }, configurable: !0 }); } function Pm(e) { return Object.create(Object.getPrototypeOf(e), Object.getOwnPropertyDescriptors(e)); } function lt(e, n, r) { Object.defineProperty(e, n, { value: r, writable: !0, enumerable: !0, configurable: !0 }); } function We(...e) { const n = {}; for (const r of e) { const o = Object.getOwnPropertyDescriptors(r); Object.assign(n, o); } return Object.defineProperties({}, n); } function Nm(e) { return We(e._zod.def); } function Am(e, n) { return n ? n.reduce((r, o) => r == null ? void 0 : r[o], e) : e; } function Zm(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 Cm(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 Pr(e) { return JSON.stringify(e); } function Ga(e) { return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, ""); } const Br = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => { }; function St(e) { return typeof e == "object" && e !== null && !Array.isArray(e); } const Ha = /* @__PURE__ */ Vt(() => { var e; if (Mt.jitless || 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 pt(e) { if (St(e) === !1) return !1; const n = e.constructor; if (n === void 0 || typeof n != "function") return !0; const r = n.prototype; return !(St(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1); } function Rn(e) { return pt(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e; } function Mm(e) { let n = 0; for (const r in e) Object.prototype.hasOwnProperty.call(e, r) && n++; return n; } const Fm = (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}`); } }, Pn = /* @__PURE__ */ new Set(["string", "number", "symbol"]), Xa = /* @__PURE__ */ new Set([ "string", "number", "bigint", "boolean", "symbol", "undefined" ]); function Qe(e) { return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } function Fe(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 h(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 Lm(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 C(e) { return typeof e == "bigint" ? e.toString() + "n" : typeof e == "string" ? `"${e}"` : `${e}`; } function Qa(e) { return Object.keys(e).filter((n) => e[n]._zod.optin === "optional" && e[n]._zod.optout === "optional"); } const eu = { 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] }, tu = { int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")], uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")] }; function nu(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 = We(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 lt(this, "shape", a), a; }, checks: [] }); return Fe(e, i); } function ru(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 = We(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 lt(this, "shape", a), a; }, checks: [] }); return Fe(e, i); } function iu(e, n) { if (!pt(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 = We(e._zod.def, { get shape() { const i = { ...e._zod.def.shape, ...n }; return lt(this, "shape", i), i; } }); return Fe(e, t); } function ou(e, n) { if (!pt(n)) throw new Error("Invalid input to safeExtend: expected a plain object"); const r = We(e._zod.def, { get shape() { const o = { ...e._zod.def.shape, ...n }; return lt(this, "shape", o), o; } }); return Fe(e, r); } function au(e, n) { var o; if ((o = e._zod.def.checks) != null && o.length) throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead."); const r = We(e._zod.def, { get shape() { const t = { ...e._zod.def.shape, ...n._zod.def.shape }; return lt(this, "shape", t), t; }, get catchall() { return n._zod.def.catchall; }, checks: n._zod.def.checks ?? [] }); return Fe(e, r); } function uu(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 = We(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 lt(this, "shape", c), c; }, checks: [] }); return Fe(n, a); } function lu(e, n, r) { const o = We(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 lt(this, "shape", i), i; } }); return Fe(n, o); } function ft(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 cu(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) === !1) return !0; return !1; } function Ze(e, n) { return n.map((r) => { var o; return (o = r).path ?? (o.path = []), r.path.unshift(e), r; }); } function Zt(e) { return typeof e == "string" ? e : e == null ? void 0 : e.message; } function Te(e, n, r) { var c, l, s, d, f, m; const o = e.message ? e.message : Zt((s = (l = (c = e.inst) == null ? void 0 : c._zod.def) == null ? void 0 : l.error) == null ? void 0 : s.call(l, e)) ?? Zt((d = n == null ? void 0 : n.error) == null ? void 0 : d.call(n, e)) ?? Zt((f = r.customError) == null ? void 0 : f.call(r, e)) ?? Zt((m = r.localeError) == null ? void 0 : m.call(r, e)) ?? "Invalid input", { inst: t, continue: i, input: a, ...u } = e; return u.path ?? (u.path = []), u.message = o, n != null && n.reportInput && (u.input = a), u; } function Bn(e) { return e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof File ? "file" : "unknown"; } function Jn(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 It(...e) { const [n, r, o] = e; return typeof n == "string" ? { message: n, code: "custom", input: r, inst: o } : { ...n }; } function Rm(e) { return Object.entries(e).filter(([n, r]) => Number.isNaN(Number.parseInt(n, 10))).map((n) => n[1]); } function su(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 du(e) { let n = ""; for (let r = 0; r < e.length; r++) n += String.fromCharCode(e[r]); return btoa(n); } function Bm(e) { const n = e.replace(/-/g, "+").replace(/_/g, "/"), r = "=".repeat((4 - n.length % 4) % 4); return su(n + r); } function Jm(e) { return du(e).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); } function Vm(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 qm(e) { return Array.from(e).map((n) => n.toString(16).padStart(2, "0")).join(""); } class Ym { constructor(...n) { } } const fu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, BIGINT_FORMAT_RANGES: tu, Class: Ym, NUMBER_FORMAT_RANGES: eu, aborted: ft, allowsEval: Ha, assert: Tm, assertEqual: Om, assertIs: Um, assertNever: Em, assertNotEqual: jm, assignProp: lt, base64ToUint8Array: su, base64urlToUint8Array: Bm, cached: Vt, captureStackTrace: Br, cleanEnum: Rm, cleanRegex: Ln, clone: Fe, cloneDef: Nm, createTransparentProxy: Lm, defineLazy: H, esc: Pr, escapeRegex: Qe, explicitlyAborted: cu, extend: iu, finalizeIssue: Te, floatSafeRemainder: Ka, getElementAtPath: Am, getEnumValues: Rr, getLengthableOrigin: Jn, getParsedType: Fm, getSizableOrigin: Bn, hexToUint8Array: Vm, isObject: St, isPlainObject: pt, issue: It, joinValues: b, jsonStringifyReplacer: Tn, merge: au, mergeDefs: We, normalizeParams: h, nullish: bt, numKeys: Mm, objectClone: Pm, omit: ru, optionalKeys: Qa, parsedType: F, partial: uu, pick: nu, prefixIssues: Ze, primitiveTypes: Xa, promiseAllObject: Zm, propertyKeyTypes: Pn, randomString: Cm, required: lu, safeExtend: ou, shallowClone: Rn, slugify: Ga, stringifyPrimitive: C, uint8ArrayToBase64: du, uint8ArrayToBase64url: Jm, uint8ArrayToHex: qm, unwrapMessage: Zt }, Symbol.toStringTag, { value: "Module" })), mu = (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, Tn, 2), Object.defineProperty(e, "toString", { value: () => e.message, enumerable: !1 }); }, Jr = p("$ZodError", mu), Pe = p("$ZodError", mu, { Parent: Error }); function Vr(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 qr(e, n = (r) => r.message) { const r = { _errors: [] }, o = (t, i = []) => { for (const a of t.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((u) => o({ issues: u }, [...i, ...a.path])); else if (a.code === "invalid_key") o({ issues: a.issues }, [...i, ...a.path]); else if (a.code === "invalid_element") o({ issues: a.issues }, [...i, ...a.path]); else { const u = [...i, ...a.path]; if (u.length === 0) r._errors.push(n(a)); else { let c = r, l = 0; for (; l < u.length; ) { const s = u[l]; l === u.length - 1 ? (c[s] = c[s] || { _errors: [] }, c[s]._errors.push(n(a))) : c[s] = c[s] || { _errors: [] }, c = c[s], l++; } } } }; return o(e), r; } function vu(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 }, [...i, ...c.path])); else if (c.code === "invalid_key") o({ issues: c.issues }, [...i, ...c.path]); else if (c.code === "invalid_element") o({ issues: c.issues }, [...i, ...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 f = l[d], m = d === l.length - 1; typeof f == "string" ? (s.properties ?? (s.properties = {}), (a = s.properties)[f] ?? (a[f] = { errors: [] }), s = s.properties[f]) : (s.items ?? (s.items = []), (u = s.items)[f] ?? (u[f] = { errors: [] }), s = s.items[f]), m && s.errors.push(n(c)), d++; } } }; return o(e), r; } function pu(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 gu(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 ${pu(t.path)}`); return n.join(` `); } const qt = (e) => (n, r, o, t) => { const i = o ? { ...o, async: !1 } : { async: !1 }, a = n._zod.run({ value: r, issues: [] }, i); if (a instanceof Promise) throw new vt(); if (a.issues.length) { const u = new ((t == null ? void 0 : t.Err) ?? e)(a.issues.map((c) => Te(c, i, ye()))); throw Br(u, t == null ? void 0 : t.callee), u; } return a.value; }, Nr = /* @__PURE__ */ qt(Pe), Yt = (e) => async (n, r, o, t) => { const i = o ? { ...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) => Te(c, i, ye()))); throw Br(u, t == null ? void 0 : t.callee), u; } return a.value; }, Ar = /* @__PURE__ */ Yt(Pe), Wt = (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 vt(); return i.issues.length ? { success: !1, error: new (e ?? Jr)(i.issues.map((a) => Te(a, t, ye()))) } : { success: !0, data: i.value }; }, hu = /* @__PURE__ */ Wt(Pe), Kt = (e) => async (n, r, o) => { const t = o ? { ...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) => Te(a, t, ye()))) } : { success: !0, data: i.value }; }, $u = /* @__PURE__ */ Kt(Pe), Yr = (e) => (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return qt(e)(n, r, t); }, Wm = /* @__PURE__ */ Yr(Pe), Wr = (e) => (n, r, o) => qt(e)(n, r, o), Km = /* @__PURE__ */ Wr(Pe), Kr = (e) => async (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return Yt(e)(n, r, t); }, Gm = /* @__PURE__ */ Kr(Pe), Gr = (e) => async (n, r, o) => Yt(e)(n, r, o), Hm = /* @__PURE__ */ Gr(Pe), Hr = (e) => (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return Wt(e)(n, r, t); }, Xm = /* @__PURE__ */ Hr(Pe), Xr = (e) => (n, r, o) => Wt(e)(n, r, o), Qm = /* @__PURE__ */ Xr(Pe), Qr = (e) => async (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return Kt(e)(n, r, t); }, ev = /* @__PURE__ */ Qr(Pe), ei = (e) => async (n, r, o) => Kt(e)(n, r, o), tv = /* @__PURE__ */ ei(Pe), bu = /^[cC][0-9a-z]{6,}$/, _u = /^[0-9a-z]+$/, yu = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ku = /^[0-9a-vA-V]{20}$/, Su = /^[A-Za-z0-9]{27}$/, Iu = /^[a-zA-Z0-9_-]{21}$/, zu = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, nv = /^[-+]?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)?)??$/, wu = /^([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})$/, zt = (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)$/, rv = /* @__PURE__ */ zt(4), iv = /* @__PURE__ */ zt(6), ov = /* @__PURE__ */ zt(7), xu = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, av = /^[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])?)*$/, uv = /^(([^<>()\[\]\\.,;:\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,}))$/, Du = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u, lv = Du, cv = /^[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])?)*$/, sv = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"; function Ou() { return new RegExp(sv, "u"); } const ju = /^(?:(?: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])$/, Uu = /^(([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}|:))$/, Eu = (e) => { const n = Qe(e ?? ":"); return new RegExp(`^(?:[0-9A-F]{2}${n}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${n}){5}[0-9a-f]{2}$`); }, Tu = /^((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])$/, Pu = /^(([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])$/, Nu = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, ti = /^[A-Za-z0-9_-]*$/, Au = /^(?=.{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])?)*\.?$/, Zu = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/, ni = /^https?$/, Cu = /^\+[1-9]\d{6,14}$/, Mu = "(?:(?:\\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])))", Fu = /* @__PURE__ */ new RegExp(`^${Mu}$`); function Lu(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 Ru(e) { return new RegExp(`^${Lu(e)}$`); } function Bu(e) { const n = Lu({ 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(`^${Mu}T(?:${o})$`); } const Ju = (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}$`); }, Vu = /^-?\d+n?$/, qu = /^-?\d+$/, ri = /^-?\d+(?:\.\d+)?$/, Yu = /^(?:true|false)$/i, Wu = /^null$/i, Ku = /^undefined$/i, Gu = /^[^A-Z]*$/, Hu = /^[^a-z]*$/, Xu = /^[0-9a-fA-F]*$/; function Gt(e, n) { return new RegExp(`^[A-Za-z0-9+/]{${e}}${n}$`); } function Ht(e) { return new RegExp(`^[A-Za-z0-9_-]{${e}}$`); } const dv = /^[0-9a-fA-F]{32}$/, fv = /* @__PURE__ */ Gt(22, "=="), mv = /* @__PURE__ */ Ht(22), vv = /^[0-9a-fA-F]{40}$/, pv = /* @__PURE__ */ Gt(27, "="), gv = /* @__PURE__ */ Ht(27), hv = /^[0-9a-fA-F]{64}$/, $v = /* @__PURE__ */ Gt(43, "="), bv = /* @__PURE__ */ Ht(43), _v = /^[0-9a-fA-F]{96}$/, yv = /* @__PURE__ */ Gt(64, ""), kv = /* @__PURE__ */ Ht(64), Sv = /^[0-9a-fA-F]{128}$/, Iv = /* @__PURE__ */ Gt(86, "=="), zv = /* @__PURE__ */ Ht(86), ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, base64: Nu, base64url: ti, bigint: Vu, boolean: Yu, browserEmail: cv, cidrv4: Tu, cidrv6: Pu, cuid: bu, cuid2: _u, date: Fu, datetime: Bu, domain: Zu, duration: zu, e164: Cu, email: xu, emoji: Ou, extendedDuration: nv, guid: wu, hex: Xu, hostname: Au, html5Email: av, httpProtocol: ni, idnEmail: lv, integer: qu, ipv4: ju, ipv6: Uu, ksuid: Su, lowercase: Gu, mac: Eu, md5_base64: fv, md5_base64url: mv, md5_hex: dv, nanoid: Iu, null: Wu, number: ri, rfc5322Email: uv, sha1_base64: pv, sha1_base64url: gv, sha1_hex: vv, sha256_base64: $v, sha256_base64url: bv, sha256_hex: hv, sha384_base64: yv, sha384_base64url: kv, sha384_hex: _v, sha512_base64: Iv, sha512_base64url: zv, sha512_hex: Sv, string: Ju, time: Ru, ulid: yu, undefined: Ku, unicodeEmail: Du, uppercase: Hu, uuid: zt, uuid4: rv, uuid6: iv, uuid7: ov, xid: ku }, Symbol.toStringTag, { value: "Module" })), fe = /* @__PURE__ */ p("$ZodCheck", (e, n) => { var r; e._zod ?? (e._zod = {}), e._zod.def = n, (r = e._zod).onattach ?? (r.onattach = []); }), Qu = { number: "number", bigint: "bigint", object: "date" }, oi = /* @__PURE__ */ p("$ZodCheckLessThan", (e, n) => { fe.init(e, n); const r = Qu[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 }); }; }), ai = /* @__PURE__ */ p("$ZodCheckGreaterThan", (e, n) => { fe.init(e, n); const r = Qu[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 }); }; }), el = /* @__PURE__ */ p("$ZodCheckMultipleOf", (e, n) => { fe.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) : Ka(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 }); }; }), tl = /* @__PURE__ */ p("$ZodCheckNumberFormat", (e, n) => { var a; fe.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] = eu[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 = qu); }), 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 }); }; }), nl = /* @__PURE__ */ p("$ZodCheckBigIntFormat", (e, n) => { fe.init(e, n); const [r, o] = tu[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 }); }; }), rl = /* @__PURE__ */ p("$ZodCheckMaxSize", (e, n) => { var r; fe.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !bt(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: Bn(t), code: "too_big", maximum: n.maximum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), il = /* @__PURE__ */ p("$ZodCheckMinSize", (e, n) => { var r; fe.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !bt(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: Bn(t), code: "too_small", minimum: n.minimum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), ol = /* @__PURE__ */ p("$ZodCheckSizeEquals", (e, n) => { var r; fe.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !bt(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: Bn(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 }); }; }), al = /* @__PURE__ */ p("$ZodCheckMaxLength", (e, n) => { var r; fe.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !bt(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 = Jn(t); o.issues.push({ origin: a, code: "too_big", maximum: n.maximum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), ul = /* @__PURE__ */ p("$ZodCheckMinLength", (e, n) => { var r; fe.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !bt(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 = Jn(t); o.issues.push({ origin: a, code: "too_small", minimum: n.minimum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), ll = /* @__PURE__ */ p("$ZodCheckLengthEquals", (e, n) => { var r; fe.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !bt(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 = Jn(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 }); }; }), Xt = /* @__PURE__ */ p("$ZodCheckStringFormat", (e, n) => { var r, o; fe.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 = () => { }); }), cl = /* @__PURE__ */ p("$ZodCheckRegex", (e, n) => { Xt.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 }); }; }), sl = /* @__PURE__ */ p("$ZodCheckLowerCase", (e, n) => { n.pattern ?? (n.pattern = Gu), Xt.init(e, n); }), dl = /* @__PURE__ */ p("$ZodCheckUpperCase", (e, n) => { n.pattern ?? (n.pattern = Hu), Xt.init(e, n); }), fl = /* @__PURE__ */ p("$ZodCheckIncludes", (e, n) => { fe.init(e, n); const r = Qe(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 }); }; }), ml = /* @__PURE__ */ p("$ZodCheckStartsWith", (e, n) => { fe.init(e, n); const r = new RegExp(`^${Qe(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 }); }; }), vl = /* @__PURE__ */ p("$ZodCheckEndsWith", (e, n) => { fe.init(e, n); const r = new RegExp(`.*${Qe(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 Qo(e, n, r) { e.issues.length && n.issues.push(...Ze(r, e.issues)); } const pl = /* @__PURE__ */ p("$ZodCheckProperty", (e, n) => { fe.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) => Qo(t, r, n.property)); Qo(o, r, n.property); }; }), gl = /* @__PURE__ */ p("$ZodCheckMimeType", (e, n) => { fe.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 }); }; }), hl = /* @__PURE__ */ p("$ZodCheckOverwrite", (e, n) => { fe.init(e, n), e._zod.check = (r) => { r.value = n.tx(r.value); }; }); class $l { 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 bl = { major: 4, minor: 4, patch: 3 }, V = /* @__PURE__ */ p("$ZodType", (e, n) => { var t; var r; e ?? (e = {}), e._zod.def = n, e._zod.bag = e._zod.bag || {}, e._zod.version = bl; 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 = ft(u), d; for (const f of c) { if (f._zod.def.when) { if (cu(u) || !f._zod.def.when(u)) continue; } else if (s) continue; const m = u.issues.length, g = f._zod.check(u); if (g instanceof Promise && (l == null ? void 0 : l.async) === !1) throw new vt(); if (d || g instanceof Promise) d = (d ?? Promise.resolve()).then(async () => { await g, u.issues.length !== m && (s || (s = ft(u, m))); }); else { if (u.issues.length === m) continue; s || (s = ft(u, m)); } } return d ? d.then(() => u) : u; }, a = (u, c, l) => { if (ft(u)) return u.aborted = !0, u; const s = i(c, o, l); if (s instanceof Promise) { if (l.async === !1) throw new vt(); 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 vt(); return l.then((s) => i(s, o, c)); } return i(l, o, c); }; } H(e, "~standard", () => ({ validate: (i) => { var a; try { const u = hu(e, i); return u.success ? { value: u.data } : { issues: (a = u.error) == null ? void 0 : a.issues }; } catch { return $u(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 })); }), Qt = /* @__PURE__ */ p("$ZodString", (e, n) => { var r; V.init(e, n), e._zod.pattern = [...((r = e == null ? void 0 : e._zod.bag) == null ? void 0 : r.patterns) ?? []].pop() ?? Ju(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; }; }), ue = /* @__PURE__ */ p("$ZodStringFormat", (e, n) => { Xt.init(e, n), Qt.init(e, n); }), _l = /* @__PURE__ */ p("$ZodGUID", (e, n) => { n.pattern ?? (n.pattern = wu), ue.init(e, n); }), yl = /* @__PURE__ */ p("$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 = zt(o)); } else n.pattern ?? (n.pattern = zt()); ue.init(e, n); }), kl = /* @__PURE__ */ p("$ZodEmail", (e, n) => { n.pattern ?? (n.pattern = xu), ue.init(e, n); }), Sl = /* @__PURE__ */ p("$ZodURL", (e, n) => { ue.init(e, n), e._zod.check = (r) => { var o; try { const t = r.value.trim(); if (!n.normalize && ((o = n.protocol) == null ? void 0 : o.source) === ni.source && !/^https?:\/\//i.test(t)) { r.issues.push({ code: "invalid_format", format: "url", note: "Invalid URL format", input: r.value, inst: e, continue: !n.abort }); return; } const i = new URL(t); n.hostname && (n.hostname.lastIndex = 0, n.hostname.test(i.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(i.protocol.endsWith(":") ? i.protocol.slice(0, -1) : i.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 = i.href : r.value = t; return; } catch { r.issues.push({ code: "invalid_format", format: "url", input: r.value, inst: e, continue: !n.abort }); } }; }), Il = /* @__PURE__ */ p("$ZodEmoji", (e, n) => { n.pattern ?? (n.pattern = Ou()), ue.init(e, n); }), zl = /* @__PURE__ */ p("$ZodNanoID", (e, n) => { n.pattern ?? (n.pattern = Iu), ue.init(e, n); }), wl = /* @__PURE__ */ p("$ZodCUID", (e, n) => { n.pattern ?? (n.pattern = bu), ue.init(e, n); }), xl = /* @__PURE__ */ p("$ZodCUID2", (e, n) => { n.pattern ?? (n.pattern = _u), ue.init(e, n); }), Dl = /* @__PURE__ */ p("$ZodULID", (e, n) => { n.pattern ?? (n.pattern = yu), ue.init(e, n); }), Ol = /* @__PURE__ */ p("$ZodXID", (e, n) => { n.pattern ?? (n.pattern = ku), ue.init(e, n); }), jl = /* @__PURE__ */ p("$ZodKSUID", (e, n) => { n.pattern ?? (n.pattern = Su), ue.init(e, n); }), Ul = /* @__PURE__ */ p("$ZodISODateTime", (e, n) => { n.pattern ?? (n.pattern = Bu(n)), ue.init(e, n); }), El = /* @__PURE__ */ p("$ZodISODate", (e, n) => { n.pattern ?? (n.pattern = Fu), ue.init(e, n); }), Tl = /* @__PURE__ */ p("$ZodISOTime", (e, n) => { n.pattern ?? (n.pattern = Ru(n)), ue.init(e, n); }), Pl = /* @__PURE__ */ p("$ZodISODuration", (e, n) => { n.pattern ?? (n.pattern = zu), ue.init(e, n); }), Nl = /* @__PURE__ */ p("$ZodIPv4", (e, n) => { n.pattern ?? (n.pattern = ju), ue.init(e, n), e._zod.bag.format = "ipv4"; }), Al = /* @__PURE__ */ p("$ZodIPv6", (e, n) => { n.pattern ?? (n.pattern = Uu), ue.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 }); } }; }), Zl = /* @__PURE__ */ p("$ZodMAC", (e, n) => { n.pattern ?? (n.pattern = Eu(n.delimiter)), ue.init(e, n), e._zod.bag.format = "mac"; }), Cl = /* @__PURE__ */ p("$ZodCIDRv4", (e, n) => { n.pattern ?? (n.pattern = Tu), ue.init(e, n); }), Ml = /* @__PURE__ */ p("$ZodCIDRv6", (e, n) => { n.pattern ?? (n.pattern = Pu), ue.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 ui(e) { if (e === "") return !0; if (/\s/.test(e) || e.length % 4 !== 0) return !1; try { return atob(e), !0; } catch { return !1; } } const Fl = /* @__PURE__ */ p("$ZodBase64", (e, n) => { n.pattern ?? (n.pattern = Nu), ue.init(e, n), e._zod.bag.contentEncoding = "base64", e._zod.check = (r) => { ui(r.value) || r.issues.push({ code: "invalid_format", format: "base64", input: r.value, inst: e, continue: !n.abort }); }; }); function Ll(e) { if (!ti.test(e)) return !1; const n = e.replace(/[-_]/g, (o) => o === "-" ? "+" : "/"), r = n.padEnd(Math.ceil(n.length / 4) * 4, "="); return ui(r); } const Rl = /* @__PURE__ */ p("$ZodBase64URL", (e, n) => { n.pattern ?? (n.pattern = ti), ue.init(e, n), e._zod.bag.contentEncoding = "base64url", e._zod.check = (r) => { Ll(r.value) || r.issues.push({ code: "invalid_format", format: "base64url", input: r.value, inst: e, continue: !n.abort }); }; }), Bl = /* @__PURE__ */ p("$ZodE164", (e, n) => { n.pattern ?? (n.pattern = Cu), ue.init(e, n); }); function Jl(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 Vl = /* @__PURE__ */ p("$ZodJWT", (e, n) => { ue.init(e, n), e._zod.check = (r) => { Jl(r.value, n.alg) || r.issues.push({ code: "invalid_format", format: "jwt", input: r.value, inst: e, continue: !n.abort }); }; }), ql = /* @__PURE__ */ p("$ZodCustomStringFormat", (e, n) => { ue.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 }); }; }), li = /* @__PURE__ */ p("$ZodNumber", (e, n) => { V.init(e, n), e._zod.pattern = e._zod.bag.pattern ?? ri, 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; }; }), Yl = /* @__PURE__ */ p("$ZodNumberFormat", (e, n) => { tl.init(e, n), li.init(e, n); }), ci = /* @__PURE__ */ p("$ZodBoolean", (e, n) => { V.init(e, n), e._zod.pattern = Yu, 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; }; }), si = /* @__PURE__ */ p("$ZodBigInt", (e, n) => { V.init(e, n), e._zod.pattern = Vu, 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; }; }), Wl = /* @__PURE__ */ p("$ZodBigIntFormat", (e, n) => { nl.init(e, n), si.init(e, n); }), Kl = /* @__PURE__ */ p("$ZodSymbol", (e, n) => { V.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; }; }), Gl = /* @__PURE__ */ p("$ZodUndefined", (e, n) => { V.init(e, n), e._zod.pattern = Ku, e._zod.values = /* @__PURE__ */ new Set([void 0]), 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; }; }), Hl = /* @__PURE__ */ p("$ZodNull", (e, n) => { V.init(e, n), e._zod.pattern = Wu, 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; }; }), Xl = /* @__PURE__ */ p("$ZodAny", (e, n) => { V.init(e, n), e._zod.parse = (r) => r; }), Ql = /* @__PURE__ */ p("$ZodUnknown", (e, n) => { V.init(e, n), e._zod.parse = (r) => r; }), ec = /* @__PURE__ */ p("$ZodNever", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => (r.issues.push({ expected: "never", code: "invalid_type", input: r.value, inst: e }), r); }), tc = /* @__PURE__ */ p("$ZodVoid", (e, n) => { V.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; }; }), nc = /* @__PURE__ */ p("$ZodDate", (e, n) => { V.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 ea(e, n, r) { e.issues.length && n.issues.push(...Ze(r, e.issues)), n.value[r] = e.value; } const rc = /* @__PURE__ */ p("$ZodArray", (e, n) => { V.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) => ea(l, r, a))) : ea(c, r, a); } return i.length ? Promise.all(i).then(() => r) : r; }; }); function Nn(e, n, r, o, t, i) { const a = r in o; if (e.issues.length) { if (t && i && !a) return; n.issues.push(...Ze(r, e.issues)); } if (!a && !t) { e.issues.length || n.issues.push({ code: "invalid_type", expected: "nonoptional", input: void 0, path: [r] }); return; } e.value === void 0 ? a && (n.value[r] = void 0) : n.value[r] = e.value; } function ic(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 = Qa(e.shape); return { ...e, keys: n, keySet: new Set(n), numKeys: n.length, optionalKeys: new Set(r) }; } function oc(e, n, r, o, t, i) { const a = [], u = t.keySet, c = t.catchall._zod, l = c.def.type, s = c.optin === "optional", d = c.optout === "optional"; for (const f in n) { if (f === "__proto__" || u.has(f)) continue; if (l === "never") { a.push(f); continue; } const m = c.run({ value: n[f], issues: [] }, o); m instanceof Promise ? e.push(m.then((g) => Nn(g, r, f, n, s, d))) : Nn(m, r, f, n, s, d); } return a.length && r.issues.push({ code: "unrecognized_keys", keys: a, input: n, inst: i }), e.length ? Promise.all(e).then(() => r) : r; } const ac = /* @__PURE__ */ p("$ZodObject", (e, n) => { V.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 = Vt(() => ic(n)); H(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 = St, 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 f of a.keys) { const m = d[f], g = m._zod.optin === "optional", v = m._zod.optout === "optional", $ = m._zod.run({ value: l[f], issues: [] }, c); $ instanceof Promise ? s.push($.then((y) => Nn(y, u, f, l, g, v))) : Nn($, u, f, l, g, v); } return i ? oc(s, l, u, c, o.value, e) : s.length ? Promise.all(s).then(() => u) : u; }; }), uc = /* @__PURE__ */ p("$ZodObjectJIT", (e, n) => { ac.init(e, n); const r = e._zod.parse, o = Vt(() => ic(n)), t = (f) => { var L, B; const m = new $l(["shape", "payload", "ctx"]), g = o.value, v = (A) => { const S = Pr(A); return `shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`; }; m.write("const input = payload.value;"); const $ = /* @__PURE__ */ Object.create(null); let y = 0; for (const A of g.keys) $[A] = `key_${y++}`; m.write("const newResult = {};"); for (const A of g.keys) { const S = $[A], I = Pr(A), k = f[A], R = ((L = k == null ? void 0 : k._zod) == null ? void 0 : L.optin) === "optional", M = ((B = k == null ? void 0 : k._zod) == null ? void 0 : B.optout) === "optional"; m.write(`const ${S} = ${v(A)};`), R && M ? m.write(` if (${S}.issues.length) { if (${I} in input) { payload.issues = payload.issues.concat(${S}.issues.map(iss => ({ ...iss, path: iss.path ? [${I}, ...iss.path] : [${I}] }))); } } if (${S}.value === undefined) { if (${I} in input) { newResult[${I}] = undefined; } } else { newResult[${I}] = ${S}.value; } `) : R ? m.write(` if (${S}.issues.length) { payload.issues = payload.issues.concat(${S}.issues.map(iss => ({ ...iss, path: iss.path ? [${I}, ...iss.path] : [${I}] }))); } if (${S}.value === undefined) { if (${I} in input) { newResult[${I}] = undefined; } } else { newResult[${I}] = ${S}.value; } `) : m.write(` const ${S}_present = ${I} in input; if (${S}.issues.length) { payload.issues = payload.issues.concat(${S}.issues.map(iss => ({ ...iss, path: iss.path ? [${I}, ...iss.path] : [${I}] }))); } if (!${S}_present && !${S}.issues.length) { payload.issues.push({ code: "invalid_type", expected: "nonoptional", input: undefined, path: [${I}] }); } if (${S}_present) { if (${S}.value === undefined) { newResult[${I}] = undefined; } else { newResult[${I}] = ${S}.value; } } `); } m.write("payload.value = newResult;"), m.write("return payload;"); const w = m.compile(); return (A, S) => w(f, A, S); }; let i; const a = St, u = !Mt.jitless, l = u && Ha.value, s = n.catchall; let d; e._zod.parse = (f, m) => { d ?? (d = o.value); const g = f.value; return a(g) ? u && l && (m == null ? void 0 : m.async) === !1 && m.jitless !== !0 ? (i || (i = t(n.shape)), f = i(f, m), s ? oc([], g, f, m, d, e) : f) : r(f, m) : (f.issues.push({ expected: "object", code: "invalid_type", input: g, inst: e }), f); }; }); function ta(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) => !ft(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) => Te(a, o, ye()))) }), n); } const Vn = /* @__PURE__ */ p("$ZodUnion", (e, n) => { V.init(e, n), H(e._zod, "optin", () => n.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), H(e._zod, "optout", () => n.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), H(e._zod, "values", () => { if (n.options.every((o) => o._zod.values)) return new Set(n.options.flatMap((o) => Array.from(o._zod.values))); }), H(e._zod, "pattern", () => { if (n.options.every((o) => o._zod.pattern)) { const o = n.options.map((t) => t._zod.pattern); return new RegExp(`^(${o.map((t) => Ln(t.source)).join("|")})$`); } }); const r = n.options.length === 1 ? n.options[0]._zod.run : null; e._zod.parse = (o, t) => { if (r) return r(o, t); let i = !1; const a = []; for (const u of n.options) { const c = u._zod.run({ value: o.value, issues: [] }, t); if (c instanceof Promise) a.push(c), i = !0; else { if (c.issues.length === 0) return c; a.push(c); } } return i ? Promise.all(a).then((u) => ta(u, o, e, t)) : ta(a, o, e, t); }; }); function na(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) => Te(a, o, ye()))) }) : n.issues.push({ code: "invalid_union", input: n.value, inst: r, errors: [], inclusive: !1 }), n); } const lc = /* @__PURE__ */ p("$ZodXor", (e, n) => { Vn.init(e, n), n.inclusive = !1; const r = n.options.length === 1 ? n.options[0]._zod.run : null; e._zod.parse = (o, t) => { if (r) return r(o, t); let i = !1; const a = []; for (const u of n.options) { const c = u._zod.run({ value: o.value, issues: [] }, t); c instanceof Promise ? (a.push(c), i = !0) : a.push(c); } return i ? Promise.all(a).then((u) => na(u, o, e, t)) : na(a, o, e, t); }; }), cc = /* @__PURE__ */ p("$ZodDiscriminatedUnion", (e, n) => { n.inclusive = !1, Vn.init(e, n); const r = e._zod.parse; H(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 = Vt(() => { 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 (!St(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 || i.direction === "backward" ? r(t, i) : (t.issues.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: n.discriminator, options: Array.from(o.value.keys()), input: a, path: [n.discriminator], inst: e }), t); }; }), sc = /* @__PURE__ */ p("$ZodIntersection", (e, n) => { V.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]) => ra(r, c, l)) : ra(r, i, a); }; }); function Zr(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 (pt(e) && pt(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 = Zr(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 = Zr(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 ra(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 }), ft(e)) return e; const a = Zr(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 di = /* @__PURE__ */ p("$ZodTuple", (e, n) => { V.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 = ia(r, "optin"), c = ia(r, "optout"); if (!n.rest) { if (i.length < u) return o.issues.push({ code: "too_small", minimum: u, inclusive: !0, input: i, inst: e, origin: "array" }), o; i.length > r.length && o.issues.push({ code: "too_big", maximum: r.length, inclusive: !0, input: i, inst: e, origin: "array" }); } const l = new Array(r.length); for (let s = 0; s < r.length; s++) { const d = r[s]._zod.run({ value: i[s], issues: [] }, t); d instanceof Promise ? a.push(d.then((f) => { l[s] = f; })) : l[s] = d; } if (n.rest) { let s = r.length - 1; const d = i.slice(r.length); for (const f of d) { s++; const m = n.rest._zod.run({ value: f, issues: [] }, t); m instanceof Promise ? a.push(m.then((g) => oa(g, o, s))) : oa(m, o, s); } } return a.length ? Promise.all(a).then(() => aa(l, o, r, i, c)) : aa(l, o, r, i, c); }; }); function ia(e, n) { for (let r = e.length - 1; r >= 0; r--) if (e[r]._zod[n] !== "optional") return r + 1; return 0; } function oa(e, n, r) { e.issues.length && n.issues.push(...Ze(r, e.issues)), n.value[r] = e.value; } function aa(e, n, r, o, t) { for (let i = 0; i < r.length; i++) { const a = e[i], u = i < o.length; if (a.issues.length) { if (!u && i >= t) { n.value.length = i; break; } n.issues.push(...Ze(i, a.issues)); } n.value[i] = a.value; } for (let i = n.value.length - 1; i >= o.length && (r[i]._zod.optout === "optional" && n.value[i] === void 0); i--) n.value.length = i; return n; } const dc = /* @__PURE__ */ p("$ZodRecord", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => { const t = r.value; if (!pt(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.keyType._zod.run({ value: l, issues: [] }, o); if (s instanceof Promise) throw new Error("Async schemas not supported in object keys currently"); if (s.issues.length) { r.issues.push({ code: "invalid_key", origin: "record", issues: s.issues.map((m) => Te(m, o, ye())), input: l, path: [l], inst: e }); continue; } const d = s.value, f = n.valueType._zod.run({ value: t[l], issues: [] }, o); f instanceof Promise ? i.push(f.then((m) => { m.issues.length && r.issues.push(...Ze(l, m.issues)), r.value[d] = m.value; })) : (f.issues.length && r.issues.push(...Ze(l, f.issues)), r.value[d] = f.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__" || !Object.prototype.propertyIsEnumerable.call(t, u)) 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" && ri.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) => Te(d, o, ye())), 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(...Ze(u, d.issues)), r.value[c.value] = d.value; })) : (s.issues.length && r.issues.push(...Ze(u, s.issues)), r.value[c.value] = s.value); } } return i.length ? Promise.all(i).then(() => r) : r; }; }), fc = /* @__PURE__ */ p("$ZodMap", (e, n) => { V.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]) => { ua(s, d, r, a, t, e, o); })) : ua(c, l, r, a, t, e, o); } return i.length ? Promise.all(i).then(() => r) : r; }; }); function ua(e, n, r, o, t, i, a) { e.issues.length && (Pn.has(typeof o) ? r.issues.push(...Ze(o, e.issues)) : r.issues.push({ code: "invalid_key", origin: "map", input: t, inst: i, issues: e.issues.map((u) => Te(u, a, ye())) })), n.issues.length && (Pn.has(typeof o) ? r.issues.push(...Ze(o, n.issues)) : r.issues.push({ origin: "map", code: "invalid_element", input: t, inst: i, key: o, issues: n.issues.map((u) => Te(u, a, ye())) })), r.value.set(e.value, n.value); } const mc = /* @__PURE__ */ p("$ZodSet", (e, n) => { V.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) => la(c, r))) : la(u, r); } return i.length ? Promise.all(i).then(() => r) : r; }; }); function la(e, n) { e.issues.length && n.issues.push(...e.issues), n.value.add(e.value); } const vc = /* @__PURE__ */ p("$ZodEnum", (e, n) => { V.init(e, n); const r = Rr(n.entries), o = new Set(r); e._zod.values = o, e._zod.pattern = new RegExp(`^(${r.filter((t) => Pn.has(typeof t)).map((t) => typeof t == "string" ? Qe(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; }; }), pc = /* @__PURE__ */ p("$ZodLiteral", (e, n) => { if (V.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" ? Qe(o) : o ? Qe(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; }; }), gc = /* @__PURE__ */ p("$ZodFile", (e, n) => { V.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; }; }), hc = /* @__PURE__ */ p("$ZodTransform", (e, n) => { V.init(e, n), e._zod.optin = "optional", e._zod.parse = (r, o) => { if (o.direction === "backward") throw new Fn(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.fallback = !0, r)); if (t instanceof Promise) throw new vt(); return r.value = t, r.fallback = !0, r; }; }); function ca(e, n) { return n === void 0 && (e.issues.length || e.fallback) ? { issues: [], value: void 0 } : e; } const fi = /* @__PURE__ */ p("$ZodOptional", (e, n) => { V.init(e, n), e._zod.optin = "optional", e._zod.optout = "optional", H(e._zod, "values", () => n.innerType._zod.values ? /* @__PURE__ */ new Set([...n.innerType._zod.values, void 0]) : void 0), H(e._zod, "pattern", () => { const r = n.innerType._zod.pattern; return r ? new RegExp(`^(${Ln(r.source)})?$`) : void 0; }), e._zod.parse = (r, o) => { if (n.innerType._zod.optin === "optional") { const t = r.value, i = n.innerType._zod.run(r, o); return i instanceof Promise ? i.then((a) => ca(a, t)) : ca(i, t); } return r.value === void 0 ? r : n.innerType._zod.run(r, o); }; }), $c = /* @__PURE__ */ p("$ZodExactOptional", (e, n) => { fi.init(e, n), H(e._zod, "values", () => n.innerType._zod.values), H(e._zod, "pattern", () => n.innerType._zod.pattern), e._zod.parse = (r, o) => n.innerType._zod.run(r, o); }), bc = /* @__PURE__ */ p("$ZodNullable", (e, n) => { V.init(e, n), H(e._zod, "optin", () => n.innerType._zod.optin), H(e._zod, "optout", () => n.innerType._zod.optout), H(e._zod, "pattern", () => { const r = n.innerType._zod.pattern; return r ? new RegExp(`^(${Ln(r.source)}|null)$`) : void 0; }), H(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); }), _c = /* @__PURE__ */ p("$ZodDefault", (e, n) => { V.init(e, n), e._zod.optin = "optional", H(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) => sa(i, n)) : sa(t, n); }; }); function sa(e, n) { return e.value === void 0 && (e.value = n.defaultValue), e; } const yc = /* @__PURE__ */ p("$ZodPrefault", (e, n) => { V.init(e, n), e._zod.optin = "optional", H(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)); }), kc = /* @__PURE__ */ p("$ZodNonOptional", (e, n) => { V.init(e, n), H(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) => da(i, e)) : da(t, e); }; }); function da(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 Sc = /* @__PURE__ */ p("$ZodSuccess", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => { if (o.direction === "backward") throw new Fn("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__ */ p("$ZodCatch", (e, n) => { V.init(e, n), e._zod.optin = "optional", H(e._zod, "optout", () => n.innerType._zod.optout), H(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) => Te(a, o, ye())) }, input: r.value }), r.issues = [], r.fallback = !0), r)) : (r.value = t.value, t.issues.length && (r.value = n.catchValue({ ...r, error: { issues: t.issues.map((i) => Te(i, o, ye())) }, input: r.value }), r.issues = [], r.fallback = !0), r); }; }), zc = /* @__PURE__ */ p("$ZodNaN", (e, n) => { V.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); }), mi = /* @__PURE__ */ p("$ZodPipe", (e, n) => { V.init(e, n), H(e._zod, "values", () => n.in._zod.values), H(e._zod, "optin", () => n.in._zod.optin), H(e._zod, "optout", () => n.out._zod.optout), H(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) => $n(a, n.in, o)) : $n(i, n.in, o); } const t = n.in._zod.run(r, o); return t instanceof Promise ? t.then((i) => $n(i, n.out, o)) : $n(t, n.out, o); }; }); function $n(e, n, r) { return e.issues.length ? (e.aborted = !0, e) : n._zod.run({ value: e.value, issues: e.issues, fallback: e.fallback }, r); } const vi = /* @__PURE__ */ p("$ZodCodec", (e, n) => { V.init(e, n), H(e._zod, "values", () => n.in._zod.values), H(e._zod, "optin", () => n.in._zod.optin), H(e._zod, "optout", () => n.out._zod.optout), H(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) => bn(a, n, o)) : bn(i, n, o); } else { const i = n.out._zod.run(r, o); return i instanceof Promise ? i.then((a) => bn(a, n, o)) : bn(i, n, o); } }; }); function bn(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) => _n(e, i, n.out, r)) : _n(e, t, n.out, r); } else { const t = n.reverseTransform(e.value, e); return t instanceof Promise ? t.then((i) => _n(e, i, n.in, r)) : _n(e, t, n.in, r); } } function _n(e, n, r, o) { return e.issues.length ? (e.aborted = !0, e) : r._zod.run({ value: n, issues: e.issues }, o); } const wc = /* @__PURE__ */ p("$ZodPreprocess", (e, n) => { mi.init(e, n); }), xc = /* @__PURE__ */ p("$ZodReadonly", (e, n) => { V.init(e, n), H(e._zod, "propValues", () => n.innerType._zod.propValues), H(e._zod, "values", () => n.innerType._zod.values), H(e._zod, "optin", () => { var r, o; return (o = (r = n.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optin; }), H(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(fa) : fa(t); }; }); function fa(e) { return e.value = Object.freeze(e.value), e; } const Dc = /* @__PURE__ */ p("$ZodTemplateLiteral", (e, n) => { V.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 || Xa.has(typeof o)) r.push(Qe(`${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); }), Oc = /* @__PURE__ */ p("$ZodFunction", (e, n) => (V.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 ? Nr(e._def.input, o) : o, i = Reflect.apply(r, this, t); return e._def.output ? Nr(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 Ar(e._def.input, o) : o, i = await Reflect.apply(r, this, t); return e._def.output ? await Ar(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 di({ 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)), jc = /* @__PURE__ */ p("$ZodPromise", (e, n) => { V.init(e, n), e._zod.parse = (r, o) => Promise.resolve(r.value).then((t) => n.innerType._zod.run({ value: t, issues: [] }, o)); }), Uc = /* @__PURE__ */ p("$ZodLazy", (e, n) => { V.init(e, n), H(e._zod, "innerType", () => { const r = n; return r._cachedInner || (r._cachedInner = n.getter()), r._cachedInner; }), H(e._zod, "pattern", () => { var r, o; return (o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.pattern; }), H(e._zod, "propValues", () => { var r, o; return (o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.propValues; }), H(e._zod, "optin", () => { var r, o; return ((o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optin) ?? void 0; }), H(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); }), Ec = /* @__PURE__ */ p("$ZodCustom", (e, n) => { fe.init(e, n), V.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) => ma(i, r, o, e)); ma(t, r, o, e); }; }); function ma(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(It(t)); } } 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: "رابط", 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 ? `مدخلات غير مقبولة: يفترض إدخال ${C(t.values[0])}` : `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${b(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 ? "ة" : ""}: ${b(t.keys, "، ")}`; case "invalid_key": return `معرف غير مقبول في ${t.origin}`; case "invalid_union": return "مدخل غير مقبول"; case "invalid_element": return `مدخل غير مقبول في ${t.origin}`; default: return "مدخل غير مقبول"; } }; }; function xv() { return { localeError: wv() }; } const Dv = () => { 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 ${C(t.values[0])}` : `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${b(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" : ""}: ${b(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 Ov() { return { localeError: Dv() }; } function va(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 jv = () => { 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 ? `Няправільны ўвод: чакалася ${C(t.values[0])}` : `Няправільны варыянт: чакаўся адзін з ${b(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { const u = Number(t.maximum), c = va(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 = va(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 ? "ключы" : "ключ"}: ${b(t.keys, ", ")}`; case "invalid_key": return `Няправільны ключ у ${t.origin}`; case "invalid_union": return "Няправільны ўвод"; case "invalid_element": return `Няправільнае значэнне ў ${t.origin}`; default: return "Няправільны ўвод"; } }; }; function Uv() { return { localeError: jv() }; } const Ev = () => { 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 ? `Невалиден вход: очакван ${C(t.values[0])}` : `Невалидна опция: очаквано едно от ${b(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 ? "ове" : ""}: ${b(t.keys, ", ")}`; case "invalid_key": return `Невалиден ключ в ${t.origin}`; case "invalid_union": return "Невалиден вход"; case "invalid_element": return `Невалидна стойност в ${t.origin}`; default: return "Невалиден вход"; } }; }; function Tv() { return { localeError: Ev() }; } const Pv = () => { 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 ${C(t.values[0])}` : `Opció invàlida: s'esperava una de ${b(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" : ""}: ${b(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 Nv() { return { localeError: Pv() }; } const Av = () => { 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 ${C(t.values[0])}` : `Neplatná možnost: očekávána jedna z hodnot ${b(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: ${b(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 Zv() { return { localeError: Av() }; } const Cv = () => { 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 ${C(t.values[0])}` : `Ugyldigt valg: forventede en af følgende ${b(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"}: ${b(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 Mv() { return { localeError: Cv() }; } const Fv = () => { 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 ${C(t.values[0])}` : `Ungültige Option: erwartet eine von ${b(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"}: ${b(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 Lv() { return { localeError: Fv() }; } const Rv = () => { const e = { string: { unit: "χαρακτήρες", verb: "να έχει" }, file: { unit: "bytes", verb: "να έχει" }, array: { unit: "στοιχεία", verb: "να έχει" }, set: { unit: "στοιχεία", verb: "να έχει" }, map: { unit: "καταχωρήσεις", verb: "να έχει" } }; function n(t) { return e[t] ?? null; } const r = { regex: "είσοδος", email: "διεύθυνση 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", mac: "διεύθυνση MAC", 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 typeof t.expected == "string" && /^[A-Z]/.test(t.expected) ? `Μη έγκυρη είσοδος: αναμενόταν instanceof ${t.expected}, λήφθηκε ${u}` : `Μη έγκυρη είσοδος: αναμενόταν ${i}, λήφθηκε ${u}`; } case "invalid_value": return t.values.length === 1 ? `Μη έγκυρη είσοδος: αναμενόταν ${C(t.values[0])}` : `Μη έγκυρη επιλογή: αναμενόταν ένα από ${b(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 ? "α" : "ο"} κλειδ${t.keys.length > 1 ? "ιά" : "ί"}: ${b(t.keys, ", ")}`; case "invalid_key": return `Μη έγκυρο κλειδί στο ${t.origin}`; case "invalid_union": return "Μη έγκυρη είσοδος"; case "invalid_element": return `Μη έγκυρη τιμή στο ${t.origin}`; default: return "Μη έγκυρη είσοδος"; } }; }; function Bv() { return { localeError: Rv() }; } const Jv = () => { 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 ${C(t.values[0])}` : `Invalid option: expected one of ${b(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" : ""}: ${b(t.keys, ", ")}`; case "invalid_key": return `Invalid key in ${t.origin}`; case "invalid_union": return t.options && Array.isArray(t.options) && t.options.length > 0 ? `Invalid discriminator value. Expected ${t.options.map((a) => `'${a}'`).join(" | ")}` : "Invalid input"; case "invalid_element": return `Invalid value in ${t.origin}`; default: return "Invalid input"; } }; }; function Tc() { return { localeError: Jv() }; } const Vv = () => { 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 ${C(t.values[0])}` : `Nevalida opcio: atendiĝis unu el ${b(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" : ""}: ${b(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 qv() { return { localeError: Vv() }; } const Yv = () => { 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 ${C(t.values[0])}` : `Opción inválida: se esperaba una de ${b(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" : ""}: ${b(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 Wv() { return { localeError: Yv() }; } const Kv = () => { 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 ? `ورودی نامعتبر: می‌بایست ${C(t.values[0])} می‌بود` : `گزینه نامعتبر: می‌بایست یکی از ${b(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 ? "های" : ""} ناشناس: ${b(t.keys, ", ")}`; case "invalid_key": return `کلید ناشناس در ${t.origin}`; case "invalid_union": return "ورودی نامعتبر"; case "invalid_element": return `مقدار نامعتبر در ${t.origin}`; default: return "ورودی نامعتبر"; } }; }; function Gv() { return { localeError: Kv() }; } const Hv = () => { 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 ${C(t.values[0])}` : `Virheellinen valinta: täytyy olla yksi seuraavista: ${b(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"}: ${b(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 Xv() { return { localeError: Hv() }; } const Qv = () => { 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 = { string: "chaîne", number: "nombre", int: "entier", boolean: "booléen", bigint: "grand entier", symbol: "symbole", undefined: "indéfini", null: "null", never: "jamais", void: "vide", date: "date", array: "tableau", object: "objet", tuple: "tuple", record: "enregistrement", map: "carte", set: "ensemble", file: "fichier", nonoptional: "non-optionnel", nan: "NaN", function: "fonction" }; 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 : ${C(t.values[0])} attendu` : `Option invalide : une valeur parmi ${b(t.values, "|")} attendue`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Trop grand : ${o[t.origin] ?? "valeur"} doit ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "élément(s)"}` : `Trop grand : ${o[t.origin] ?? "valeur"} doit être ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Trop petit : ${o[t.origin] ?? "valeur"} doit ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Trop petit : ${o[t.origin] ?? "valeur"} 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" : ""} : ${b(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 ep() { return { localeError: Qv() }; } const tp = () => { 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 ${C(t.values[0])}` : `Option invalide : attendu l'une des valeurs suivantes ${b(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" : ""} : ${b(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 np() { return { localeError: tp() }; } const rp = () => { 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, f = c[d ?? ""] ?? o(d), m = F(l.input), g = c[m] ?? ((s = e[m]) == null ? void 0 : s.label) ?? m; return /^[A-Z]/.test(l.expected) ? `קלט לא תקין: צריך להיות instanceof ${l.expected}, התקבל ${g}` : `קלט לא תקין: צריך להיות ${f}, התקבל ${g}`; } case "invalid_value": { if (l.values.length === 1) return `ערך לא תקין: הערך חייב להיות ${C(l.values[0])}`; const d = l.values.map((g) => C(g)); if (l.values.length === 2) return `ערך לא תקין: האפשרויות המתאימות הן ${d[0]} או ${d[1]}`; const f = d[d.length - 1]; return `ערך לא תקין: האפשרויות המתאימות הן ${d.slice(0, -1).join(", ")} או ${f}`; } case "too_big": { const d = a(l.origin), f = t(l.origin ?? "value"); if (l.origin === "string") return `${(d == null ? void 0 : d.longLabel) ?? "ארוך"} מדי: ${f} צריכה להכיל ${l.maximum.toString()} ${(d == null ? void 0 : d.unit) ?? ""} ${l.inclusive ? "או פחות" : "לכל היותר"}`.trim(); if (l.origin === "number") { const v = l.inclusive ? `קטן או שווה ל-${l.maximum}` : `קטן מ-${l.maximum}`; return `גדול מדי: ${f} צריך להיות ${v}`; } if (l.origin === "array" || l.origin === "set") { const v = l.origin === "set" ? "צריכה" : "צריך", $ = l.inclusive ? `${l.maximum} ${(d == null ? void 0 : d.unit) ?? ""} או פחות` : `פחות מ-${l.maximum} ${(d == null ? void 0 : d.unit) ?? ""}`; return `גדול מדי: ${f} ${v} להכיל ${$}`.trim(); } const m = l.inclusive ? "<=" : "<", g = i(l.origin ?? "value"); return d != null && d.unit ? `${d.longLabel} מדי: ${f} ${g} ${m}${l.maximum.toString()} ${d.unit}` : `${(d == null ? void 0 : d.longLabel) ?? "גדול"} מדי: ${f} ${g} ${m}${l.maximum.toString()}`; } case "too_small": { const d = a(l.origin), f = t(l.origin ?? "value"); if (l.origin === "string") return `${(d == null ? void 0 : d.shortLabel) ?? "קצר"} מדי: ${f} צריכה להכיל ${l.minimum.toString()} ${(d == null ? void 0 : d.unit) ?? ""} ${l.inclusive ? "או יותר" : "לפחות"}`.trim(); if (l.origin === "number") { const v = l.inclusive ? `גדול או שווה ל-${l.minimum}` : `גדול מ-${l.minimum}`; return `קטן מדי: ${f} צריך להיות ${v}`; } if (l.origin === "array" || l.origin === "set") { const v = l.origin === "set" ? "צריכה" : "צריך"; if (l.minimum === 1 && l.inclusive) { const y = (l.origin === "set", "לפחות פריט אחד"); return `קטן מדי: ${f} ${v} להכיל ${y}`; } const $ = l.inclusive ? `${l.minimum} ${(d == null ? void 0 : d.unit) ?? ""} או יותר` : `יותר מ-${l.minimum} ${(d == null ? void 0 : d.unit) ?? ""}`; return `קטן מדי: ${f} ${v} להכיל ${$}`.trim(); } const m = l.inclusive ? ">=" : ">", g = i(l.origin ?? "value"); return d != null && d.unit ? `${d.shortLabel} מדי: ${f} ${g} ${m}${l.minimum.toString()} ${d.unit}` : `${(d == null ? void 0 : d.shortLabel) ?? "קטן"} מדי: ${f} ${g} ${m}${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 f = u[d.format], m = (f == null ? void 0 : f.label) ?? d.format, v = ((f == null ? void 0 : f.gender) ?? "m") === "f" ? "תקינה" : "תקין"; return `${m} לא ${v}`; } case "not_multiple_of": return `מספר לא תקין: חייב להיות מכפלה של ${l.divisor}`; case "unrecognized_keys": return `מפתח${l.keys.length > 1 ? "ות" : ""} לא מזוה${l.keys.length > 1 ? "ים" : "ה"}: ${b(l.keys, ", ")}`; case "invalid_key": return "שדה לא תקין באובייקט"; case "invalid_union": return "קלט לא תקין"; case "invalid_element": return `ערך לא תקין ב${t(l.origin ?? "array")}`; default: return "קלט לא תקין"; } }; }; function ip() { return { localeError: rp() }; } const op = () => { const e = { string: { unit: "znakova", verb: "imati" }, file: { unit: "bajtova", verb: "imati" }, array: { unit: "stavki", verb: "imati" }, set: { unit: "stavki", verb: "imati" } }; function n(t) { return e[t] ?? null; } const r = { regex: "unos", email: "email 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: "ISO datum i vrijeme", date: "ISO datum", time: "ISO vrijeme", duration: "ISO trajanje", ipv4: "IPv4 adresa", ipv6: "IPv6 adresa", cidrv4: "IPv4 raspon", cidrv6: "IPv6 raspon", base64: "base64 kodirani tekst", base64url: "base64url kodirani tekst", json_string: "JSON tekst", e164: "E.164 broj", jwt: "JWT", template_literal: "unos" }, o = { nan: "NaN", string: "tekst", number: "broj", boolean: "boolean", array: "niz", object: "objekt", set: "skup", file: "datoteka", date: "datum", bigint: "bigint", symbol: "simbol", undefined: "undefined", null: "null", function: "funkcija", map: "mapa" }; 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) ? `Neispravan unos: očekuje se instanceof ${t.expected}, a primljeno je ${u}` : `Neispravan unos: očekuje se ${i}, a primljeno je ${u}`; } case "invalid_value": return t.values.length === 1 ? `Neispravna vrijednost: očekivano ${C(t.values[0])}` : `Neispravna opcija: očekivano jedno od ${b(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), u = o[t.origin] ?? t.origin; return a ? `Preveliko: očekivano da ${u ?? "vrijednost"} ima ${i}${t.maximum.toString()} ${a.unit ?? "elemenata"}` : `Preveliko: očekivano da ${u ?? "vrijednost"} bude ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin), u = o[t.origin] ?? t.origin; return a ? `Premalo: očekivano da ${u} ima ${i}${t.minimum.toString()} ${a.unit}` : `Premalo: očekivano da ${u} bude ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Neispravan tekst: mora započinjati s "${i.prefix}"` : i.format === "ends_with" ? `Neispravan tekst: mora završavati s "${i.suffix}"` : i.format === "includes" ? `Neispravan tekst: mora sadržavati "${i.includes}"` : i.format === "regex" ? `Neispravan tekst: mora odgovarati uzorku ${i.pattern}` : `Neispravna ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Neispravan broj: mora biti višekratnik od ${t.divisor}`; case "unrecognized_keys": return `Neprepoznat${t.keys.length > 1 ? "i ključevi" : " ključ"}: ${b(t.keys, ", ")}`; case "invalid_key": return `Neispravan ključ u ${o[t.origin] ?? t.origin}`; case "invalid_union": return "Neispravan unos"; case "invalid_element": return `Neispravna vrijednost u ${o[t.origin] ?? t.origin}`; default: return "Neispravan unos"; } }; }; function ap() { return { localeError: op() }; } const up = () => { 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 ${C(t.values[0])}` : `Érvénytelen opció: valamelyik érték várt ${b(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" : ""}: ${b(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 lp() { return { localeError: up() }; } function pa(e, n, r) { return Math.abs(e) === 1 ? n : r; } function yt(e) { if (!e) return ""; const n = ["ա", "ե", "ը", "ի", "ո", "ու", "օ"], r = e[e.length - 1]; return e + (n.includes(r) ? "ն" : "ը"); } const cp = () => { 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 ? `Սխալ մուտքագրում․ սպասվում էր ${C(t.values[1])}` : `Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${b(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { const u = Number(t.maximum), c = pa(u, a.unit.one, a.unit.many); return `Չափազանց մեծ արժեք․ սպասվում է, որ ${yt(t.origin ?? "արժեք")} կունենա ${i}${t.maximum.toString()} ${c}`; } return `Չափազանց մեծ արժեք․ սպասվում է, որ ${yt(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 = pa(u, a.unit.one, a.unit.many); return `Չափազանց փոքր արժեք․ սպասվում է, որ ${yt(t.origin)} կունենա ${i}${t.minimum.toString()} ${c}`; } return `Չափազանց փոքր արժեք․ սպասվում է, որ ${yt(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 ? "ներ" : ""}. ${b(t.keys, ", ")}`; case "invalid_key": return `Սխալ բանալի ${yt(t.origin)}-ում`; case "invalid_union": return "Սխալ մուտքագրում"; case "invalid_element": return `Սխալ արժեք ${yt(t.origin)}-ում`; default: return "Սխալ մուտքագրում"; } }; }; function sp() { return { localeError: cp() }; } const dp = () => { 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 ${C(t.values[0])}` : `Pilihan tidak valid: diharapkan salah satu dari ${b(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" : ""}: ${b(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 fp() { return { localeError: dp() }; } const mp = () => { 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 ${C(t.values[0])}` : `Ógilt val: má vera eitt af eftirfarandi ${b(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"} sé ${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} sé ${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"}: ${b(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 vp() { return { localeError: mp() }; } const pp = () => { 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 ${C(t.values[0])}` : `Opzione non valida: atteso uno tra ${b(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}` : `Input non valido: ${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"}: ${b(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 gp() { return { localeError: pp() }; } const hp = () => { 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 ? `無効な入力: ${C(t.values[0])}が期待されました` : `無効な選択: ${b(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 ? "群" : ""}: ${b(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: "სიმბოლო", 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 ? `არასწორი შეყვანა: მოსალოდნელი ${C(t.values[0])}` : `არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${b(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 ? "ები" : "ი"}: ${b(t.keys, ", ")}`; case "invalid_key": return `არასწორი გასაღები ${t.origin}-ში`; case "invalid_union": return "არასწორი შეყვანა"; case "invalid_element": return `არასწორი მნიშვნელობა ${t.origin}-ში`; default: return "არასწორი შეყვანა"; } }; }; function _p() { return { localeError: bp() }; } const yp = () => { 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 ? `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${C(t.values[0])}` : `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${b(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 `រកឃើញសោមិនស្គាល់៖ ${b(t.keys, ", ")}`; case "invalid_key": return `សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`; case "invalid_union": return "ទិន្នន័យមិនត្រឹមត្រូវ"; case "invalid_element": return `ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`; default: return "ទិន្នន័យមិនត្រឹមត្រូវ"; } }; }; function Pc() { return { localeError: yp() }; } function kp() { return Pc(); } const Sp = () => { 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 ? `잘못된 입력: 값은 ${C(t.values[0])} 이어야 합니다` : `잘못된 옵션: ${b(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 `인식할 수 없는 키: ${b(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 At = (e) => e.charAt(0).toUpperCase() + e.slice(1); function ga(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 zp = () => { 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 ${C(t.values[0])}` : `Privalo būti vienas iš ${b(t.values, "|")} pasirinkimų`; case "too_big": { const i = o[t.origin] ?? t.origin, a = n(t.origin, ga(Number(t.maximum)), t.inclusive ?? !1, "smaller"); if (a != null && a.verb) return `${At(i ?? t.origin ?? "reikšmė")} ${a.verb} ${t.maximum.toString()} ${a.unit ?? "elementų"}`; const u = t.inclusive ? "ne didesnis kaip" : "mažesnis kaip"; return `${At(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, ga(Number(t.minimum)), t.inclusive ?? !1, "bigger"); if (a != null && a.verb) return `${At(i ?? t.origin ?? "reikšmė")} ${a.verb} ${t.minimum.toString()} ${a.unit ?? "elementų"}`; const u = t.inclusive ? "ne mažesnis kaip" : "didesnis kaip"; return `${At(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"}: ${b(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 `${At(i ?? t.origin ?? "reikšmė")} turi klaidingą įvestį`; } default: return "Klaidinga įvestis"; } }; }; function wp() { return { localeError: zp() }; } const xp = () => { 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 ${C(t.values[0])}` : `Грешана опција: се очекува една ${b(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 ? "Непрепознаени клучеви" : "Непрепознаен клуч"}: ${b(t.keys, ", ")}`; case "invalid_key": return `Грешен клуч во ${t.origin}`; case "invalid_union": return "Грешен внес"; case "invalid_element": return `Грешна вредност во ${t.origin}`; default: return "Грешен внес"; } }; }; function Dp() { return { localeError: xp() }; } const Op = () => { 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 ${C(t.values[0])}` : `Pilihan tidak sah: dijangka salah satu daripada ${b(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: ${b(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 jp() { return { localeError: Op() }; } const Up = () => { 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 ${C(t.values[0])}` : `Ongeldige optie: verwacht één van ${b(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" : ""}: ${b(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 Ep() { return { localeError: Up() }; } const Tp = () => { 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 ${C(t.values[0])}` : `Ugyldig valg: forventet en av ${b(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"}: ${b(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 Pp() { return { localeError: Tp() }; } const Np = () => { 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 ${C(t.values[0])}` : `Fâsit tercih: mûteberler ${b(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" : ""}: ${b(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 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: "یو آر ال", 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 ? `ناسم ورودي: باید ${C(t.values[0])} وای` : `ناسم انتخاب: باید یو له ${b(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 ? "کلیډونه" : "کلیډ"}: ${b(t.keys, ", ")}`; case "invalid_key": return `ناسم کلیډ په ${t.origin} کې`; case "invalid_union": return "ناسمه ورودي"; case "invalid_element": return `ناسم عنصر په ${t.origin} کې`; default: return "ناسمه ورودي"; } }; }; function Cp() { return { localeError: Zp() }; } 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 ${C(t.values[0])}` : `Nieprawidłowa opcja: oczekiwano jednej z wartości ${b(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" : ""}: ${b(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 Fp() { return { localeError: Mp() }; } const Lp = () => { 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 ${C(t.values[0])}` : `Opção inválida: esperada uma das ${b(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" : ""}: ${b(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 Rp() { return { localeError: Lp() }; } const Bp = () => { const e = { string: { unit: "caractere", verb: "să aibă" }, file: { unit: "octeți", verb: "să aibă" }, array: { unit: "elemente", verb: "să aibă" }, set: { unit: "elemente", verb: "să aibă" }, map: { unit: "intrări", verb: "să aibă" } }; function n(t) { return e[t] ?? null; } const r = { regex: "intrare", email: "adresă de 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: "dată și oră ISO", date: "dată ISO", time: "oră ISO", duration: "durată ISO", ipv4: "adresă IPv4", ipv6: "adresă IPv6", mac: "adresă MAC", cidrv4: "interval IPv4", cidrv6: "interval IPv6", base64: "șir codat base64", base64url: "șir codat base64url", json_string: "șir JSON", e164: "număr E.164", jwt: "JWT", template_literal: "intrare" }, o = { nan: "NaN", string: "șir", number: "număr", boolean: "boolean", function: "funcție", array: "matrice", object: "obiect", undefined: "nedefinit", symbol: "simbol", bigint: "număr mare", void: "void", never: "never", map: "hartă", set: "set" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = F(t.input), u = o[a] ?? a; return `Intrare invalidă: așteptat ${i}, primit ${u}`; } case "invalid_value": return t.values.length === 1 ? `Intrare invalidă: așteptat ${C(t.values[0])}` : `Opțiune invalidă: așteptat una dintre ${b(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Prea mare: așteptat ca ${t.origin ?? "valoarea"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "elemente"}` : `Prea mare: așteptat ca ${t.origin ?? "valoarea"} să fie ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Prea mic: așteptat ca ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Prea mic: așteptat ca ${t.origin} să fie ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Șir invalid: trebuie să înceapă cu "${i.prefix}"` : i.format === "ends_with" ? `Șir invalid: trebuie să se termine cu "${i.suffix}"` : i.format === "includes" ? `Șir invalid: trebuie să includă "${i.includes}"` : i.format === "regex" ? `Șir invalid: trebuie să se potrivească cu modelul ${i.pattern}` : `Format invalid: ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Număr invalid: trebuie să fie multiplu de ${t.divisor}`; case "unrecognized_keys": return `Chei nerecunoscute: ${b(t.keys, ", ")}`; case "invalid_key": return `Cheie invalidă în ${t.origin}`; case "invalid_union": return "Intrare invalidă"; case "invalid_element": return `Valoare invalidă în ${t.origin}`; default: return "Intrare invalidă"; } }; }; function Jp() { return { localeError: Bp() }; } function ha(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 Vp = () => { 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 ? `Неверный ввод: ожидалось ${C(t.values[0])}` : `Неверный вариант: ожидалось одно из ${b(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { const u = Number(t.maximum), c = ha(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 = ha(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 ? "и" : ""}: ${b(t.keys, ", ")}`; case "invalid_key": return `Неверный ключ в ${t.origin}`; case "invalid_union": return "Неверные входные данные"; case "invalid_element": return `Неверное значение в ${t.origin}`; default: return "Неверные входные данные"; } }; }; function qp() { return { localeError: Vp() }; } const Yp = () => { 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 ${C(t.values[0])}` : `Neveljavna možnost: pričakovano eno izmed ${b(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č"}: ${b(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 Wp() { return { localeError: Yp() }; } const Kp = () => { 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 ${C(t.values[0])}` : `Ogiltigt val: förväntade en av ${b(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"}: ${b(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 Gp() { return { localeError: Kp() }; } const Hp = () => { 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 ? `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${C(t.values[0])}` : `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${b(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 ? "கள்" : ""}: ${b(t.keys, ", ")}`; case "invalid_key": return `${t.origin} இல் தவறான விசை`; case "invalid_union": return "தவறான உள்ளீடு"; case "invalid_element": return `${t.origin} இல் தவறான மதிப்பு`; default: return "தவறான உள்ளீடு"; } }; }; function Xp() { return { localeError: Hp() }; } const Qp = () => { 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 ? `ค่าไม่ถูกต้อง: ควรเป็น ${C(t.values[0])}` : `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${b(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 `พบคีย์ที่ไม่รู้จัก: ${b(t.keys, ", ")}`; case "invalid_key": return `คีย์ไม่ถูกต้องใน ${t.origin}`; case "invalid_union": return "ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้"; case "invalid_element": return `ข้อมูลไม่ถูกต้องใน ${t.origin}`; default: return "ข้อมูลไม่ถูกต้อง"; } }; }; function eg() { return { localeError: Qp() }; } const tg = () => { 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 ${C(t.values[0])}` : `Geçersiz seçenek: aşağıdakilerden biri olmalı: ${b(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" : ""}: ${b(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 ng() { return { localeError: tg() }; } const rg = () => { 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 ? `Неправильні вхідні дані: очікується ${C(t.values[0])}` : `Неправильна опція: очікується одне з ${b(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 ? "і" : ""}: ${b(t.keys, ", ")}`; case "invalid_key": return `Неправильний ключ у ${t.origin}`; case "invalid_union": return "Неправильні вхідні дані"; case "invalid_element": return `Неправильне значення у ${t.origin}`; default: return "Неправильні вхідні дані"; } }; }; function Nc() { return { localeError: rg() }; } function ig() { return Nc(); } const og = () => { 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 ? `غلط ان پٹ: ${C(t.values[0])} متوقع تھا` : `غلط آپشن: ${b(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 ? "ز" : ""}: ${b(t.keys, "، ")}`; case "invalid_key": return `${t.origin} میں غلط کی`; case "invalid_union": return "غلط ان پٹ"; case "invalid_element": return `${t.origin} میں غلط ویلیو`; default: return "غلط ان پٹ"; } }; }; function ag() { return { localeError: og() }; } const ug = () => { const e = { string: { unit: "belgi", verb: "bo‘lishi kerak" }, file: { unit: "bayt", verb: "bo‘lishi kerak" }, array: { unit: "element", verb: "bo‘lishi kerak" }, set: { unit: "element", verb: "bo‘lishi kerak" }, map: { unit: "yozuv", verb: "bo‘lishi 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) ? `Noto‘g‘ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${u}` : `Noto‘g‘ri kirish: kutilgan ${i}, qabul qilingan ${u}`; } case "invalid_value": return t.values.length === 1 ? `Noto‘g‘ri kirish: kutilgan ${C(t.values[0])}` : `Noto‘g‘ri variant: quyidagilardan biri kutilgan ${b(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" ? `Noto‘g‘ri satr: "${i.prefix}" bilan boshlanishi kerak` : i.format === "ends_with" ? `Noto‘g‘ri satr: "${i.suffix}" bilan tugashi kerak` : i.format === "includes" ? `Noto‘g‘ri satr: "${i.includes}" ni o‘z ichiga olishi kerak` : i.format === "regex" ? `Noto‘g‘ri satr: ${i.pattern} shabloniga mos kelishi kerak` : `Noto‘g‘ri ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Noto‘g‘ri raqam: ${t.divisor} ning karralisi bo‘lishi kerak`; case "unrecognized_keys": return `Noma’lum kalit${t.keys.length > 1 ? "lar" : ""}: ${b(t.keys, ", ")}`; case "invalid_key": return `${t.origin} dagi kalit noto‘g‘ri`; case "invalid_union": return "Noto‘g‘ri kirish"; case "invalid_element": return `${t.origin} da noto‘g‘ri qiymat`; default: return "Noto‘g‘ri kirish"; } }; }; function lg() { return { localeError: ug() }; } const cg = () => { 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 ${C(t.values[0])}` : `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${b(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: ${b(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 sg() { return { localeError: cg() }; } const dg = () => { 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 ? `无效输入:期望 ${C(t.values[0])}` : `无效选项:期望以下之一 ${b(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): ${b(t.keys, ", ")}`; case "invalid_key": return `${t.origin} 中的键(key)无效`; case "invalid_union": return "无效输入"; case "invalid_element": return `${t.origin} 中包含无效值(value)`; default: return "无效输入"; } }; }; function fg() { return { localeError: dg() }; } const mg = () => { 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 ? `無效的輸入值:預期為 ${C(t.values[0])}` : `無效的選項:預期為以下其中之一 ${b(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 ? "們" : ""}:${b(t.keys, "、")}`; case "invalid_key": return `${t.origin} 中有無效的鍵值`; case "invalid_union": return "無效的輸入值"; case "invalid_element": return `${t.origin} 中有無效的值`; default: return "無效的輸入值"; } }; }; function vg() { return { localeError: mg() }; } const pg = () => { 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 ${C(t.values[0])}` : `Àṣàyàn aṣìṣe: yan ọ̀kan lára ${b(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ọ̀: ${b(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 gg() { return { localeError: pg() }; } const Ac = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ar: xv, az: Ov, be: Uv, bg: Tv, ca: Nv, cs: Zv, da: Mv, de: Lv, el: Bv, en: Tc, eo: qv, es: Wv, fa: Gv, fi: Xv, fr: ep, frCA: np, he: ip, hr: ap, hu: lp, hy: sp, id: fp, is: vp, it: gp, ja: $p, ka: _p, kh: kp, km: Pc, ko: Ip, lt: wp, mk: Dp, ms: jp, nl: Ep, no: Pp, ota: Ap, pl: Fp, ps: Cp, pt: Rp, ro: Jp, ru: qp, sl: Wp, sv: Gp, ta: Xp, th: eg, tr: ng, ua: ig, uk: Nc, ur: ag, uz: lg, vi: sg, yo: gg, zhCN: fg, zhTW: vg }, Symbol.toStringTag, { value: "Module" })); var $a; const Zc = Symbol("ZodOutput"), Cc = Symbol("ZodInput"); class Mc { 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 pi() { return new Mc(); } ($a = globalThis).__zod_globalRegistry ?? ($a.__zod_globalRegistry = pi()); const Ce = globalThis.__zod_globalRegistry; // @__NO_SIDE_EFFECTS__ function Fc(e, n) { return new e({ type: "string", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Lc(e, n) { return new e({ type: "string", coerce: !0, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function gi(e, n) { return new e({ type: "string", format: "email", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function An(e, n) { return new e({ type: "string", format: "guid", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function hi(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function $i(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, version: "v4", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function bi(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, version: "v6", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function _i(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, version: "v7", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function qn(e, n) { return new e({ type: "string", format: "url", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function yi(e, n) { return new e({ type: "string", format: "emoji", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function ki(e, n) { return new e({ type: "string", format: "nanoid", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Si(e, n) { return new e({ type: "string", format: "cuid", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Ii(e, n) { return new e({ type: "string", format: "cuid2", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function zi(e, n) { return new e({ type: "string", format: "ulid", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function wi(e, n) { return new e({ type: "string", format: "xid", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function xi(e, n) { return new e({ type: "string", format: "ksuid", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Di(e, n) { return new e({ type: "string", format: "ipv4", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Oi(e, n) { return new e({ type: "string", format: "ipv6", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Rc(e, n) { return new e({ type: "string", format: "mac", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function ji(e, n) { return new e({ type: "string", format: "cidrv4", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Ui(e, n) { return new e({ type: "string", format: "cidrv6", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Ei(e, n) { return new e({ type: "string", format: "base64", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Ti(e, n) { return new e({ type: "string", format: "base64url", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Pi(e, n) { return new e({ type: "string", format: "e164", check: "string_format", abort: !1, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Ni(e, n) { return new e({ type: "string", format: "jwt", check: "string_format", abort: !1, ...h(n) }); } const Bc = { Any: null, Minute: -1, Second: 0, Millisecond: 3, Microsecond: 6 }; // @__NO_SIDE_EFFECTS__ function Jc(e, n) { return new e({ type: "string", format: "datetime", check: "string_format", offset: !1, local: !1, precision: null, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Vc(e, n) { return new e({ type: "string", format: "date", check: "string_format", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function qc(e, n) { return new e({ type: "string", format: "time", check: "string_format", precision: null, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Yc(e, n) { return new e({ type: "string", format: "duration", check: "string_format", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Wc(e, n) { return new e({ type: "number", checks: [], ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Kc(e, n) { return new e({ type: "number", coerce: !0, checks: [], ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Gc(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "safeint", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Hc(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "float32", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Xc(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "float64", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Qc(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "int32", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function es(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "uint32", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function ts(e, n) { return new e({ type: "boolean", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function ns(e, n) { return new e({ type: "boolean", coerce: !0, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function rs(e, n) { return new e({ type: "bigint", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function is(e, n) { return new e({ type: "bigint", coerce: !0, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function os(e, n) { return new e({ type: "bigint", check: "bigint_format", abort: !1, format: "int64", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function as(e, n) { return new e({ type: "bigint", check: "bigint_format", abort: !1, format: "uint64", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function us(e, n) { return new e({ type: "symbol", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function ls(e, n) { return new e({ type: "undefined", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function cs(e, n) { return new e({ type: "null", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function ss(e) { return new e({ type: "any" }); } // @__NO_SIDE_EFFECTS__ function ds(e) { return new e({ type: "unknown" }); } // @__NO_SIDE_EFFECTS__ function fs(e, n) { return new e({ type: "never", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function ms(e, n) { return new e({ type: "void", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function vs(e, n) { return new e({ type: "date", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function ps(e, n) { return new e({ type: "date", coerce: !0, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function gs(e, n) { return new e({ type: "nan", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function rt(e, n) { return new oi({ check: "less_than", ...h(n), value: e, inclusive: !1 }); } // @__NO_SIDE_EFFECTS__ function Me(e, n) { return new oi({ check: "less_than", ...h(n), value: e, inclusive: !0 }); } // @__NO_SIDE_EFFECTS__ function it(e, n) { return new ai({ check: "greater_than", ...h(n), value: e, inclusive: !1 }); } // @__NO_SIDE_EFFECTS__ function Ue(e, n) { return new ai({ check: "greater_than", ...h(n), value: e, inclusive: !0 }); } // @__NO_SIDE_EFFECTS__ function Ai(e) { return /* @__PURE__ */ it(0, e); } // @__NO_SIDE_EFFECTS__ function Zi(e) { return /* @__PURE__ */ rt(0, e); } // @__NO_SIDE_EFFECTS__ function Ci(e) { return /* @__PURE__ */ Me(0, e); } // @__NO_SIDE_EFFECTS__ function Mi(e) { return /* @__PURE__ */ Ue(0, e); } // @__NO_SIDE_EFFECTS__ function wt(e, n) { return new el({ check: "multiple_of", ...h(n), value: e }); } // @__NO_SIDE_EFFECTS__ function Et(e, n) { return new rl({ check: "max_size", ...h(n), maximum: e }); } // @__NO_SIDE_EFFECTS__ function ot(e, n) { return new il({ check: "min_size", ...h(n), minimum: e }); } // @__NO_SIDE_EFFECTS__ function en(e, n) { return new ol({ check: "size_equals", ...h(n), size: e }); } // @__NO_SIDE_EFFECTS__ function tn(e, n) { return new al({ check: "max_length", ...h(n), maximum: e }); } // @__NO_SIDE_EFFECTS__ function gt(e, n) { return new ul({ check: "min_length", ...h(n), minimum: e }); } // @__NO_SIDE_EFFECTS__ function nn(e, n) { return new ll({ check: "length_equals", ...h(n), length: e }); } // @__NO_SIDE_EFFECTS__ function Yn(e, n) { return new cl({ check: "string_format", format: "regex", ...h(n), pattern: e }); } // @__NO_SIDE_EFFECTS__ function Wn(e) { return new sl({ check: "string_format", format: "lowercase", ...h(e) }); } // @__NO_SIDE_EFFECTS__ function Kn(e) { return new dl({ check: "string_format", format: "uppercase", ...h(e) }); } // @__NO_SIDE_EFFECTS__ function Gn(e, n) { return new fl({ check: "string_format", format: "includes", ...h(n), includes: e }); } // @__NO_SIDE_EFFECTS__ function Hn(e, n) { return new ml({ check: "string_format", format: "starts_with", ...h(n), prefix: e }); } // @__NO_SIDE_EFFECTS__ function Xn(e, n) { return new vl({ check: "string_format", format: "ends_with", ...h(n), suffix: e }); } // @__NO_SIDE_EFFECTS__ function Fi(e, n, r) { return new pl({ check: "property", property: e, schema: n, ...h(r) }); } // @__NO_SIDE_EFFECTS__ function Qn(e, n) { return new gl({ check: "mime_type", mime: e, ...h(n) }); } // @__NO_SIDE_EFFECTS__ function et(e) { return new hl({ check: "overwrite", tx: e }); } // @__NO_SIDE_EFFECTS__ function er(e) { return /* @__PURE__ */ et((n) => n.normalize(e)); } // @__NO_SIDE_EFFECTS__ function tr() { return /* @__PURE__ */ et((e) => e.trim()); } // @__NO_SIDE_EFFECTS__ function nr() { return /* @__PURE__ */ et((e) => e.toLowerCase()); } // @__NO_SIDE_EFFECTS__ function rr() { return /* @__PURE__ */ et((e) => e.toUpperCase()); } // @__NO_SIDE_EFFECTS__ function ir() { return /* @__PURE__ */ et((e) => Ga(e)); } // @__NO_SIDE_EFFECTS__ function hs(e, n, r) { return new e({ type: "array", element: n, // get element() { // return element; // }, ...h(r) }); } // @__NO_SIDE_EFFECTS__ function hg(e, n, r) { return new e({ type: "union", options: n, ...h(r) }); } function $g(e, n, r) { return new e({ type: "union", options: n, inclusive: !1, ...h(r) }); } // @__NO_SIDE_EFFECTS__ function bg(e, n, r, o) { return new e({ type: "union", options: r, discriminator: n, ...h(o) }); } // @__NO_SIDE_EFFECTS__ function _g(e, n, r) { return new e({ type: "intersection", left: n, right: r }); } // @__NO_SIDE_EFFECTS__ function yg(e, n, r, o) { const t = r instanceof V, i = t ? o : r, a = t ? r : null; return new e({ type: "tuple", items: n, rest: a, ...h(i) }); } // @__NO_SIDE_EFFECTS__ function kg(e, n, r, o) { return new e({ type: "record", keyType: n, valueType: r, ...h(o) }); } // @__NO_SIDE_EFFECTS__ function Sg(e, n, r, o) { return new e({ type: "map", keyType: n, valueType: r, ...h(o) }); } // @__NO_SIDE_EFFECTS__ function Ig(e, n, r) { return new e({ type: "set", valueType: n, ...h(r) }); } // @__NO_SIDE_EFFECTS__ function zg(e, n, r) { const o = Array.isArray(n) ? Object.fromEntries(n.map((t) => [t, t])) : n; return new e({ type: "enum", entries: o, ...h(r) }); } // @__NO_SIDE_EFFECTS__ function wg(e, n, r) { return new e({ type: "enum", entries: n, ...h(r) }); } // @__NO_SIDE_EFFECTS__ function xg(e, n, r) { return new e({ type: "literal", values: Array.isArray(n) ? n : [n], ...h(r) }); } // @__NO_SIDE_EFFECTS__ function $s(e, n) { return new e({ type: "file", ...h(n) }); } // @__NO_SIDE_EFFECTS__ function Dg(e, n) { return new e({ type: "transform", transform: n }); } // @__NO_SIDE_EFFECTS__ function Og(e, n) { return new e({ type: "optional", innerType: n }); } // @__NO_SIDE_EFFECTS__ function jg(e, n) { return new e({ type: "nullable", innerType: n }); } // @__NO_SIDE_EFFECTS__ function Ug(e, n, r) { return new e({ type: "default", innerType: n, get defaultValue() { return typeof r == "function" ? r() : Rn(r); } }); } // @__NO_SIDE_EFFECTS__ function Eg(e, n, r) { return new e({ type: "nonoptional", innerType: n, ...h(r) }); } // @__NO_SIDE_EFFECTS__ function Tg(e, n) { return new e({ type: "success", innerType: n }); } // @__NO_SIDE_EFFECTS__ function Pg(e, n, r) { return new e({ type: "catch", innerType: n, catchValue: typeof r == "function" ? r : () => r }); } // @__NO_SIDE_EFFECTS__ function Ng(e, n, r) { return new e({ type: "pipe", in: n, out: r }); } // @__NO_SIDE_EFFECTS__ function Ag(e, n) { return new e({ type: "readonly", innerType: n }); } // @__NO_SIDE_EFFECTS__ function Zg(e, n, r) { return new e({ type: "template_literal", parts: n, ...h(r) }); } // @__NO_SIDE_EFFECTS__ function Cg(e, n) { return new e({ type: "lazy", getter: n }); } // @__NO_SIDE_EFFECTS__ function Mg(e, n) { return new e({ type: "promise", innerType: n }); } // @__NO_SIDE_EFFECTS__ function bs(e, n, r) { const o = h(r); return o.abort ?? (o.abort = !0), new e({ type: "custom", check: "custom", fn: n, ...o }); } // @__NO_SIDE_EFFECTS__ function _s(e, n, r) { return new e({ type: "custom", check: "custom", fn: n, ...h(r) }); } // @__NO_SIDE_EFFECTS__ function ys(e, n) { const r = /* @__PURE__ */ ks((o) => (o.addIssue = (t) => { if (typeof t == "string") o.issues.push(It(t, o.value, r._zod.def)); else { const i = t; i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = o.value), i.inst ?? (i.inst = r), i.continue ?? (i.continue = !r._zod.def.abort), o.issues.push(It(i)); } }, e(o.value, o)), n); return r; } // @__NO_SIDE_EFFECTS__ function ks(e, n) { const r = new fe({ check: "custom", ...h(n) }); return r._zod.check = e, r; } // @__NO_SIDE_EFFECTS__ function Ss(e) { const n = new fe({ check: "describe" }); return n._zod.onattach = [ (r) => { const o = Ce.get(r) ?? {}; Ce.add(r, { ...o, description: e }); } ], n._zod.check = () => { }, n; } // @__NO_SIDE_EFFECTS__ function Is(e) { const n = new fe({ check: "meta" }); return n._zod.onattach = [ (r) => { const o = Ce.get(r) ?? {}; Ce.add(r, { ...o, ...e }); } ], n._zod.check = () => { }, n; } // @__NO_SIDE_EFFECTS__ function zs(e, n) { const r = h(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((m) => typeof m == "string" ? m.toLowerCase() : m), t = t.map((m) => typeof m == "string" ? m.toLowerCase() : m)); const i = new Set(o), a = new Set(t), u = e.Codec ?? vi, c = e.Boolean ?? ci, l = e.String ?? Qt, s = new l({ type: "string", error: r.error }), d = new c({ type: "boolean", error: r.error }), f = new u({ type: "pipe", in: s, out: d, transform: ((m, g) => { let v = m; return r.case !== "sensitive" && (v = v.toLowerCase()), i.has(v) ? !0 : a.has(v) ? !1 : (g.issues.push({ code: "invalid_value", expected: "stringbool", values: [...i, ...a], input: g.value, inst: f, continue: !1 }), {}); }), reverseTransform: ((m, g) => m === !0 ? o[0] || "true" : t[0] || "false"), error: r.error }); return f; } // @__NO_SIDE_EFFECTS__ function rn(e, n, r, o = {}) { const t = h(o), i = { ...h(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 xt(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) ?? Ce, 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 re(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 f = { ...r, schemaPath: [...r.schemaPath, e], path: r.path }; if (e._zod.processJSONSchema) e._zod.processJSONSchema(n, a.schema, f); else { const g = a.schema, v = n.processors[t.type]; if (!v) throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`); v(e, n, g, f); } const m = e._zod.parent; m && (a.ref || (a.ref = m), re(m, n, f), n.seen.get(m).isParent = !0); } const c = n.metadataRegistry.get(e); return c && Object.assign(a.schema, c), n.io === "input" && De(e) && (delete a.schema.examples, delete a.schema.default), n.io === "input" && "_prefault" in a.schema && ((o = a.schema).default ?? (o.default = a.schema._prefault)), delete a.schema._prefault, n.seen.get(e).schema; } function Dt(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 f = o.get(d); if (f && f !== 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 v; const d = e.target === "draft-2020-12" ? "$defs" : "definitions"; if (e.external) { const $ = (v = e.external.registry.get(s[0])) == null ? void 0 : v.id, y = e.external.uri ?? ((L) => L); if ($) return { ref: y($) }; const w = s[1].defId ?? s[1].schema.id ?? `schema${e.counter++}`; return s[1].defId = w, { defId: w, ref: `${y("__shared")}#/${d}/${w}` }; } if (s[1] === r) return { ref: "#" }; const m = `#/${d}/`, g = s[1].schema.id ?? `__schema${e.counter++}`; return { defId: g, ref: m + g }; }, i = (s) => { if (s[1].schema.$ref) return; const d = s[1], { ref: f, defId: m } = t(s); d.def = { ...d.schema }, m && (d.defId = m); const g = d.schema; for (const v in g) delete g[v]; g.$ref = f; }; 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("/")}/ 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 m = (c = e.external.registry.get(s[0])) == null ? void 0 : c.id; if (n !== s[0] && m) { 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 Ot(e, n) { var u, c, l, s; const r = e.seen.get(n); if (!r) throw new Error("Unprocessed schema. This is a bug in Zod."); const o = (d) => { const f = e.seen.get(d); if (f.ref === null) return; const m = f.def ?? f.schema, g = { ...m }, v = f.ref; if (f.ref = null, v) { o(v); const y = e.seen.get(v), w = y.schema; if (w.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (m.allOf = m.allOf ?? [], m.allOf.push(w)) : Object.assign(m, w), Object.assign(m, g), d._zod.parent === v) for (const B in m) B === "$ref" || B === "allOf" || B in g || delete m[B]; if (w.$ref && y.def) for (const B in m) B === "$ref" || B === "allOf" || B in y.def && JSON.stringify(m[B]) === JSON.stringify(y.def[B]) && delete m[B]; } const $ = d._zod.parent; if ($ && $ !== v) { o($); const y = e.seen.get($); if (y != null && y.schema.$ref && (m.$ref = y.schema.$ref, y.def)) for (const w in m) w === "$ref" || w === "allOf" || w in y.def && JSON.stringify(m[w]) === JSON.stringify(y.def[w]) && delete m[w]; } e.override({ zodSchema: d, jsonSchema: m, path: f.path ?? [] }); }; for (const d of [...e.seen.entries()].reverse()) o(d[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, (u = e.external) != null && u.uri) { const d = (c = e.external.registry.get(n)) == null ? void 0 : c.id; if (!d) throw new Error("Schema is missing an `id` property"); t.$id = e.external.uri(d); } Object.assign(t, r.def ?? r.schema); const i = (l = e.metadataRegistry.get(n)) == null ? void 0 : l.id; i !== void 0 && t.id === i && delete t.id; const a = ((s = e.external) == null ? void 0 : s.defs) ?? {}; for (const d of e.seen.entries()) { const f = d[1]; f.def && f.defId && (f.def.id === f.defId && delete f.def.id, a[f.defId] = f.def); } e.external || Object.keys(a).length > 0 && (e.target === "draft-2020-12" ? t.$defs = a : t.definitions = a); try { const d = JSON.parse(JSON.stringify(t)); return Object.defineProperty(d, "~standard", { value: { ...n["~standard"], jsonSchema: { input: Ft(n, "input", e.processors), output: Ft(n, "output", e.processors) } }, enumerable: !1, writable: !1 }), d; } catch { throw new Error("Error converting schema to JSON."); } } function De(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 De(o.element, r); if (o.type === "set") return De(o.valueType, r); if (o.type === "lazy") return De(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 De(o.innerType, r); if (o.type === "intersection") return De(o.left, r) || De(o.right, r); if (o.type === "record" || o.type === "map") return De(o.keyType, r) || De(o.valueType, r); if (o.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : De(o.in, r) || De(o.out, r); if (o.type === "object") { for (const t in o.shape) if (De(o.shape[t], r)) return !0; return !1; } if (o.type === "union") { for (const t of o.options) if (De(t, r)) return !0; return !1; } if (o.type === "tuple") { for (const t of o.items) if (De(t, r)) return !0; return !!(o.rest && De(o.rest, r)); } return !1; } const ws = (e, n = {}) => (r) => { const o = xt({ ...r, processors: n }); return re(e, o), Dt(o, e), Ot(o, e); }, Ft = (e, n, r = {}) => (o) => { const { libraryOptions: t, target: i } = o ?? {}, a = xt({ ...t ?? {}, target: i, io: n, processors: r }); return re(e, a), Dt(a, e), Ot(a, e); }, Fg = { guid: "uuid", url: "uri", datetime: "date-time", json_string: "json-string", regex: "" // do not set }, xs = (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 })) ]); } }, Ds = (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"; const d = typeof s == "number" && s >= (i ?? Number.NEGATIVE_INFINITY), f = typeof l == "number" && l <= (a ?? Number.POSITIVE_INFINITY), m = n.target === "draft-04" || n.target === "openapi-3.0"; d ? m ? (t.minimum = s, t.exclusiveMinimum = !0) : t.exclusiveMinimum = s : typeof i == "number" && (t.minimum = i), f ? m ? (t.maximum = l, t.exclusiveMaximum = !0) : t.exclusiveMaximum = l : typeof a == "number" && (t.maximum = a), typeof c == "number" && (t.multipleOf = c); }, Os = (e, n, r, o) => { r.type = "boolean"; }, js = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("BigInt cannot be represented in JSON Schema"); }, Us = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Symbols cannot be represented in JSON Schema"); }, Es = (e, n, r, o) => { n.target === "openapi-3.0" ? (r.type = "string", r.nullable = !0, r.enum = [null]) : r.type = "null"; }, Ts = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Undefined cannot be represented in JSON Schema"); }, Ps = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Void cannot be represented in JSON Schema"); }, Ns = (e, n, r, o) => { r.not = {}; }, As = (e, n, r, o) => { }, Zs = (e, n, r, o) => { }, Cs = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Date cannot be represented in JSON Schema"); }, Ms = (e, n, r, o) => { const t = e._zod.def, i = Rr(t.entries); i.every((a) => typeof a == "number") && (r.type = "number"), i.every((a) => typeof a == "string") && (r.type = "string"), r.enum = i; }, Fs = (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; }, Ls = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("NaN cannot be represented in JSON Schema"); }, Rs = (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; }, Bs = (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); }, Js = (e, n, r, o) => { r.type = "boolean"; }, Vs = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Custom types cannot be represented in JSON Schema"); }, qs = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Function types cannot be represented in JSON Schema"); }, Ys = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Transforms cannot be represented in JSON Schema"); }, Ws = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Map cannot be represented in JSON Schema"); }, Ks = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Set cannot be represented in JSON Schema"); }, Gs = (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 = re(i.element, n, { ...o, path: [...o.path, "items"] }); }, Hs = (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] = re(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 = re(i.catchall, n, { ...o, path: [...o.path, "additionalProperties"] })) : n.io === "output" && (t.additionalProperties = !1); }, Li = (e, n, r, o) => { const t = e._zod.def, i = t.inclusive === !1, a = t.options.map((u, c) => re(u, n, { ...o, path: [...o.path, i ? "oneOf" : "anyOf", c] })); i ? r.oneOf = a : r.anyOf = a; }, Xs = (e, n, r, o) => { const t = e._zod.def, i = re(t.left, n, { ...o, path: [...o.path, "allOf", 0] }), a = re(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; }, Qs = (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((f, m) => re(f, n, { ...o, path: [...o.path, a, m] })), l = i.rest ? re(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); }, ed = (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 = re(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 = re(i.keyType, n, { ...o, path: [...o.path, "propertyNames"] })), t.additionalProperties = re(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); } }, td = (e, n, r, o) => { const t = e._zod.def, i = re(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" }]; }, nd = (e, n, r, o) => { const t = e._zod.def; re(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType; }, rd = (e, n, r, o) => { const t = e._zod.def; re(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType, r.default = JSON.parse(JSON.stringify(t.defaultValue)); }, id = (e, n, r, o) => { const t = e._zod.def; re(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))); }, od = (e, n, r, o) => { const t = e._zod.def; re(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; }, ad = (e, n, r, o) => { const t = e._zod.def, i = t.in._zod.traits.has("$ZodTransform"), a = n.io === "input" ? i ? t.out : t.in : t.out; re(a, n, o); const u = n.seen.get(e); u.ref = a; }, ud = (e, n, r, o) => { const t = e._zod.def; re(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType, r.readOnly = !0; }, ld = (e, n, r, o) => { const t = e._zod.def; re(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType; }, Ri = (e, n, r, o) => { const t = e._zod.def; re(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType; }, cd = (e, n, r, o) => { const t = e._zod.innerType; re(t, n, o); const i = n.seen.get(e); i.ref = t; }, Cr = { string: xs, number: Ds, boolean: Os, bigint: js, symbol: Us, null: Es, undefined: Ts, void: Ps, never: Ns, any: As, unknown: Zs, date: Cs, enum: Ms, literal: Fs, nan: Ls, template_literal: Rs, file: Bs, success: Js, custom: Vs, function: qs, transform: Ys, map: Ws, set: Ks, array: Gs, object: Hs, union: Li, intersection: Xs, tuple: Qs, record: ed, nullable: td, nonoptional: nd, default: rd, prefault: id, catch: od, pipe: ad, readonly: ud, promise: ld, optional: Ri, lazy: cd }; function sd(e, n) { if ("_idmap" in e) { const o = e, t = xt({ ...n, processors: Cr }), i = {}; for (const c of o._idmap.entries()) { const [l, s] = c; re(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; Dt(t, s), a[l] = Ot(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 = xt({ ...n, processors: Cr }); return re(e, r), Dt(r, e), Ot(r, e); } class Lg { /** @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 = xt({ processors: Cr, 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 re(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)), Dt(this.ctx, n); const o = Ot(this.ctx, n), { "~standard": t, ...i } = o; return i; } } const Rg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), Bg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, $ZodAny: Xl, $ZodArray: rc, $ZodAsyncError: vt, $ZodBase64: Fl, $ZodBase64URL: Rl, $ZodBigInt: si, $ZodBigIntFormat: Wl, $ZodBoolean: ci, $ZodCIDRv4: Cl, $ZodCIDRv6: Ml, $ZodCUID: wl, $ZodCUID2: xl, $ZodCatch: Ic, $ZodCheck: fe, $ZodCheckBigIntFormat: nl, $ZodCheckEndsWith: vl, $ZodCheckGreaterThan: ai, $ZodCheckIncludes: fl, $ZodCheckLengthEquals: ll, $ZodCheckLessThan: oi, $ZodCheckLowerCase: sl, $ZodCheckMaxLength: al, $ZodCheckMaxSize: rl, $ZodCheckMimeType: gl, $ZodCheckMinLength: ul, $ZodCheckMinSize: il, $ZodCheckMultipleOf: el, $ZodCheckNumberFormat: tl, $ZodCheckOverwrite: hl, $ZodCheckProperty: pl, $ZodCheckRegex: cl, $ZodCheckSizeEquals: ol, $ZodCheckStartsWith: ml, $ZodCheckStringFormat: Xt, $ZodCheckUpperCase: dl, $ZodCodec: vi, $ZodCustom: Ec, $ZodCustomStringFormat: ql, $ZodDate: nc, $ZodDefault: _c, $ZodDiscriminatedUnion: cc, $ZodE164: Bl, $ZodEmail: kl, $ZodEmoji: Il, $ZodEncodeError: Fn, $ZodEnum: vc, $ZodError: Jr, $ZodExactOptional: $c, $ZodFile: gc, $ZodFunction: Oc, $ZodGUID: _l, $ZodIPv4: Nl, $ZodIPv6: Al, $ZodISODate: El, $ZodISODateTime: Ul, $ZodISODuration: Pl, $ZodISOTime: Tl, $ZodIntersection: sc, $ZodJWT: Vl, $ZodKSUID: jl, $ZodLazy: Uc, $ZodLiteral: pc, $ZodMAC: Zl, $ZodMap: fc, $ZodNaN: zc, $ZodNanoID: zl, $ZodNever: ec, $ZodNonOptional: kc, $ZodNull: Hl, $ZodNullable: bc, $ZodNumber: li, $ZodNumberFormat: Yl, $ZodObject: ac, $ZodObjectJIT: uc, $ZodOptional: fi, $ZodPipe: mi, $ZodPrefault: yc, $ZodPreprocess: wc, $ZodPromise: jc, $ZodReadonly: xc, $ZodRealError: Pe, $ZodRecord: dc, $ZodRegistry: Mc, $ZodSet: mc, $ZodString: Qt, $ZodStringFormat: ue, $ZodSuccess: Sc, $ZodSymbol: Kl, $ZodTemplateLiteral: Dc, $ZodTransform: hc, $ZodTuple: di, $ZodType: V, $ZodULID: Dl, $ZodURL: Sl, $ZodUUID: yl, $ZodUndefined: Gl, $ZodUnion: Vn, $ZodUnknown: Ql, $ZodVoid: tc, $ZodXID: Ol, $ZodXor: lc, $brand: Wa, $constructor: p, $input: Cc, $output: Zc, Doc: $l, JSONSchema: Rg, JSONSchemaGenerator: Lg, NEVER: Ya, TimePrecision: Bc, _any: ss, _array: hs, _base64: Ei, _base64url: Ti, _bigint: rs, _boolean: ts, _catch: Pg, _check: ks, _cidrv4: ji, _cidrv6: Ui, _coercedBigint: is, _coercedBoolean: ns, _coercedDate: ps, _coercedNumber: Kc, _coercedString: Lc, _cuid: Si, _cuid2: Ii, _custom: bs, _date: vs, _decode: Wr, _decodeAsync: Gr, _default: Ug, _discriminatedUnion: bg, _e164: Pi, _email: gi, _emoji: yi, _encode: Yr, _encodeAsync: Kr, _endsWith: Xn, _enum: zg, _file: $s, _float32: Hc, _float64: Xc, _gt: it, _gte: Ue, _guid: An, _includes: Gn, _int: Gc, _int32: Qc, _int64: os, _intersection: _g, _ipv4: Di, _ipv6: Oi, _isoDate: Vc, _isoDateTime: Jc, _isoDuration: Yc, _isoTime: qc, _jwt: Ni, _ksuid: xi, _lazy: Cg, _length: nn, _literal: xg, _lowercase: Wn, _lt: rt, _lte: Me, _mac: Rc, _map: Sg, _max: Me, _maxLength: tn, _maxSize: Et, _mime: Qn, _min: Ue, _minLength: gt, _minSize: ot, _multipleOf: wt, _nan: gs, _nanoid: ki, _nativeEnum: wg, _negative: Zi, _never: fs, _nonnegative: Mi, _nonoptional: Eg, _nonpositive: Ci, _normalize: er, _null: cs, _nullable: jg, _number: Wc, _optional: Og, _overwrite: et, _parse: qt, _parseAsync: Yt, _pipe: Ng, _positive: Ai, _promise: Mg, _property: Fi, _readonly: Ag, _record: kg, _refine: _s, _regex: Yn, _safeDecode: Xr, _safeDecodeAsync: ei, _safeEncode: Hr, _safeEncodeAsync: Qr, _safeParse: Wt, _safeParseAsync: Kt, _set: Ig, _size: en, _slugify: ir, _startsWith: Hn, _string: Fc, _stringFormat: rn, _stringbool: zs, _success: Tg, _superRefine: ys, _symbol: us, _templateLiteral: Zg, _toLowerCase: nr, _toUpperCase: rr, _transform: Dg, _trim: tr, _tuple: yg, _uint32: es, _uint64: as, _ulid: zi, _undefined: ls, _union: hg, _unknown: ds, _uppercase: Kn, _url: qn, _uuid: hi, _uuidv4: $i, _uuidv6: bi, _uuidv7: _i, _void: ms, _xid: wi, _xor: $g, clone: Fe, config: ye, createStandardJSONSchemaMethod: Ft, createToJSONSchemaMethod: ws, decode: Km, decodeAsync: Hm, describe: Ss, encode: Wm, encodeAsync: Gm, extractDefs: Dt, finalize: Ot, flattenError: Vr, formatError: qr, globalConfig: Mt, globalRegistry: Ce, initializeContext: xt, isValidBase64: ui, isValidBase64URL: Ll, isValidJWT: Jl, locales: Ac, meta: Is, parse: Nr, parseAsync: Ar, prettifyError: gu, process: re, regexes: ii, registry: pi, safeDecode: Qm, safeDecodeAsync: tv, safeEncode: Xm, safeEncodeAsync: ev, safeParse: hu, safeParseAsync: $u, toDotPath: pu, toJSONSchema: sd, treeifyError: vu, util: fu, version: bl }, Symbol.toStringTag, { value: "Module" })), Jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, endsWith: Xn, gt: it, gte: Ue, includes: Gn, length: nn, lowercase: Wn, lt: rt, lte: Me, maxLength: tn, maxSize: Et, mime: Qn, minLength: gt, minSize: ot, multipleOf: wt, negative: Zi, nonnegative: Mi, nonpositive: Ci, normalize: er, overwrite: et, positive: Ai, property: Fi, regex: Yn, size: en, slugify: ir, startsWith: Hn, toLowerCase: nr, toUpperCase: rr, trim: tr, uppercase: Kn }, Symbol.toStringTag, { value: "Module" })), Bi = /* @__PURE__ */ p("ZodISODateTime", (e, n) => { Ul.init(e, n), le.init(e, n); }); function dd(e) { return /* @__PURE__ */ Jc(Bi, e); } const Ji = /* @__PURE__ */ p("ZodISODate", (e, n) => { El.init(e, n), le.init(e, n); }); function fd(e) { return /* @__PURE__ */ Vc(Ji, e); } const Vi = /* @__PURE__ */ p("ZodISOTime", (e, n) => { Tl.init(e, n), le.init(e, n); }); function md(e) { return /* @__PURE__ */ qc(Vi, e); } const qi = /* @__PURE__ */ p("ZodISODuration", (e, n) => { Pl.init(e, n), le.init(e, n); }); function vd(e) { return /* @__PURE__ */ Yc(qi, e); } const pd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ZodISODate: Ji, ZodISODateTime: Bi, ZodISODuration: qi, ZodISOTime: Vi, date: fd, datetime: dd, duration: vd, time: md }, Symbol.toStringTag, { value: "Module" })), gd = (e, n) => { Jr.init(e, n), e.name = "ZodError", Object.defineProperties(e, { format: { value: (r) => qr(e, r) // enumerable: false, }, flatten: { value: (r) => Vr(e, r) // enumerable: false, }, addIssue: { value: (r) => { e.issues.push(r), e.message = JSON.stringify(e.issues, Tn, 2); } // enumerable: false, }, addIssues: { value: (r) => { e.issues.push(...r), e.message = JSON.stringify(e.issues, Tn, 2); } // enumerable: false, }, isEmpty: { get() { return e.issues.length === 0; } // enumerable: false, } }); }, Vg = /* @__PURE__ */ p("ZodError", gd), Ne = /* @__PURE__ */ p("ZodError", gd, { Parent: Error }), hd = /* @__PURE__ */ qt(Ne), $d = /* @__PURE__ */ Yt(Ne), bd = /* @__PURE__ */ Wt(Ne), _d = /* @__PURE__ */ Kt(Ne), yd = /* @__PURE__ */ Yr(Ne), kd = /* @__PURE__ */ Wr(Ne), Sd = /* @__PURE__ */ Kr(Ne), Id = /* @__PURE__ */ Gr(Ne), zd = /* @__PURE__ */ Hr(Ne), wd = /* @__PURE__ */ Xr(Ne), xd = /* @__PURE__ */ Qr(Ne), Dd = /* @__PURE__ */ ei(Ne), ba = /* @__PURE__ */ new WeakMap(); function on(e, n, r) { const o = Object.getPrototypeOf(e); let t = ba.get(o); if (t || (t = /* @__PURE__ */ new Set(), ba.set(o, t)), !t.has(n)) { t.add(n); for (const i in r) { const a = r[i]; Object.defineProperty(o, i, { configurable: !0, enumerable: !1, get() { const u = a.bind(this); return Object.defineProperty(this, i, { configurable: !0, writable: !0, enumerable: !0, value: u }), u; }, set(u) { Object.defineProperty(this, i, { configurable: !0, writable: !0, enumerable: !0, value: u }); } }); } } } const K = /* @__PURE__ */ p("ZodType", (e, n) => (V.init(e, n), Object.assign(e["~standard"], { jsonSchema: { input: Ft(e, "input"), output: Ft(e, "output") } }), e.toJSONSchema = ws(e, {}), e.def = n, e.type = n.type, Object.defineProperty(e, "_def", { value: n }), e.parse = (r, o) => hd(e, r, o, { callee: e.parse }), e.safeParse = (r, o) => bd(e, r, o), e.parseAsync = async (r, o) => $d(e, r, o, { callee: e.parseAsync }), e.safeParseAsync = async (r, o) => _d(e, r, o), e.spa = e.safeParseAsync, e.encode = (r, o) => yd(e, r, o), e.decode = (r, o) => kd(e, r, o), e.encodeAsync = async (r, o) => Sd(e, r, o), e.decodeAsync = async (r, o) => Id(e, r, o), e.safeEncode = (r, o) => zd(e, r, o), e.safeDecode = (r, o) => wd(e, r, o), e.safeEncodeAsync = async (r, o) => xd(e, r, o), e.safeDecodeAsync = async (r, o) => Dd(e, r, o), on(e, "ZodType", { check(...r) { const o = this.def; return this.clone(We(o, { checks: [ ...o.checks ?? [], ...r.map((t) => typeof t == "function" ? { _zod: { check: t, def: { check: "custom" }, onattach: [] } } : t) ] }), { parent: !0 }); }, with(...r) { return this.check(...r); }, clone(r, o) { return Fe(this, r, o); }, brand() { return this; }, register(r, o) { return r.add(this, o), this; }, refine(r, o) { return this.check(Mo(r, o)); }, superRefine(r, o) { return this.check(Fo(r, o)); }, overwrite(r) { return this.check(/* @__PURE__ */ et(r)); }, optional() { return Bt(this); }, exactOptional() { return yo(this); }, nullable() { return Jt(this); }, nullish() { return Bt(Jt(this)); }, nonoptional(r) { return xo(this, r); }, array() { return $t(this); }, or(r) { return mn([this, r]); }, and(r) { return so(this, r); }, transform(r) { return Cn(this, xr(r)); }, default(r) { return Io(this, r); }, prefault(r) { return wo(this, r); }, catch(r) { return jo(this, r); }, pipe(r) { return Cn(this, r); }, readonly() { return Po(this); }, describe(r) { const o = this.clone(); return Ce.add(o, { description: r }), o; }, meta(...r) { if (r.length === 0) return Ce.get(this); const o = this.clone(); return Ce.add(o, r[0]), o; }, isOptional() { return this.safeParse(void 0).success; }, isNullable() { return this.safeParse(null).success; }, apply(r) { return r(this); } }), Object.defineProperty(e, "description", { get() { var r; return (r = Ce.get(e)) == null ? void 0 : r.description; }, configurable: !0 }), e)), or = /* @__PURE__ */ p("_ZodString", (e, n) => { Qt.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => xs(e, o, t); const r = e._zod.bag; e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, on(e, "_ZodString", { regex(...o) { return this.check(/* @__PURE__ */ Yn(...o)); }, includes(...o) { return this.check(/* @__PURE__ */ Gn(...o)); }, startsWith(...o) { return this.check(/* @__PURE__ */ Hn(...o)); }, endsWith(...o) { return this.check(/* @__PURE__ */ Xn(...o)); }, min(...o) { return this.check(/* @__PURE__ */ gt(...o)); }, max(...o) { return this.check(/* @__PURE__ */ tn(...o)); }, length(...o) { return this.check(/* @__PURE__ */ nn(...o)); }, nonempty(...o) { return this.check(/* @__PURE__ */ gt(1, ...o)); }, lowercase(o) { return this.check(/* @__PURE__ */ Wn(o)); }, uppercase(o) { return this.check(/* @__PURE__ */ Kn(o)); }, trim() { return this.check(/* @__PURE__ */ tr()); }, normalize(...o) { return this.check(/* @__PURE__ */ er(...o)); }, toLowerCase() { return this.check(/* @__PURE__ */ nr()); }, toUpperCase() { return this.check(/* @__PURE__ */ rr()); }, slugify() { return this.check(/* @__PURE__ */ ir()); } }); }), an = /* @__PURE__ */ p("ZodString", (e, n) => { Qt.init(e, n), or.init(e, n), e.email = (r) => e.check(/* @__PURE__ */ gi(ar, r)), e.url = (r) => e.check(/* @__PURE__ */ qn(un, r)), e.jwt = (r) => e.check(/* @__PURE__ */ Ni(yr, r)), e.emoji = (r) => e.check(/* @__PURE__ */ yi(ur, r)), e.guid = (r) => e.check(/* @__PURE__ */ An(Rt, r)), e.uuid = (r) => e.check(/* @__PURE__ */ hi(Ye, r)), e.uuidv4 = (r) => e.check(/* @__PURE__ */ $i(Ye, r)), e.uuidv6 = (r) => e.check(/* @__PURE__ */ bi(Ye, r)), e.uuidv7 = (r) => e.check(/* @__PURE__ */ _i(Ye, r)), e.nanoid = (r) => e.check(/* @__PURE__ */ ki(lr, r)), e.guid = (r) => e.check(/* @__PURE__ */ An(Rt, r)), e.cuid = (r) => e.check(/* @__PURE__ */ Si(cr, r)), e.cuid2 = (r) => e.check(/* @__PURE__ */ Ii(sr, r)), e.ulid = (r) => e.check(/* @__PURE__ */ zi(dr, r)), e.base64 = (r) => e.check(/* @__PURE__ */ Ei($r, r)), e.base64url = (r) => e.check(/* @__PURE__ */ Ti(br, r)), e.xid = (r) => e.check(/* @__PURE__ */ wi(fr, r)), e.ksuid = (r) => e.check(/* @__PURE__ */ xi(mr, r)), e.ipv4 = (r) => e.check(/* @__PURE__ */ Di(vr, r)), e.ipv6 = (r) => e.check(/* @__PURE__ */ Oi(pr, r)), e.cidrv4 = (r) => e.check(/* @__PURE__ */ ji(gr, r)), e.cidrv6 = (r) => e.check(/* @__PURE__ */ Ui(hr, r)), e.e164 = (r) => e.check(/* @__PURE__ */ Pi(_r, r)), e.datetime = (r) => e.check(dd(r)), e.date = (r) => e.check(fd(r)), e.time = (r) => e.check(md(r)), e.duration = (r) => e.check(vd(r)); }); function Lt(e) { return /* @__PURE__ */ Fc(an, e); } const le = /* @__PURE__ */ p("ZodStringFormat", (e, n) => { ue.init(e, n), or.init(e, n); }), ar = /* @__PURE__ */ p("ZodEmail", (e, n) => { kl.init(e, n), le.init(e, n); }); function Od(e) { return /* @__PURE__ */ gi(ar, e); } const Rt = /* @__PURE__ */ p("ZodGUID", (e, n) => { _l.init(e, n), le.init(e, n); }); function jd(e) { return /* @__PURE__ */ An(Rt, e); } const Ye = /* @__PURE__ */ p("ZodUUID", (e, n) => { yl.init(e, n), le.init(e, n); }); function Ud(e) { return /* @__PURE__ */ hi(Ye, e); } function Ed(e) { return /* @__PURE__ */ $i(Ye, e); } function Td(e) { return /* @__PURE__ */ bi(Ye, e); } function Pd(e) { return /* @__PURE__ */ _i(Ye, e); } const un = /* @__PURE__ */ p("ZodURL", (e, n) => { Sl.init(e, n), le.init(e, n); }); function Nd(e) { return /* @__PURE__ */ qn(un, e); } function Ad(e) { return /* @__PURE__ */ qn(un, { protocol: ni, hostname: Zu, ...h(e) }); } const ur = /* @__PURE__ */ p("ZodEmoji", (e, n) => { Il.init(e, n), le.init(e, n); }); function Zd(e) { return /* @__PURE__ */ yi(ur, e); } const lr = /* @__PURE__ */ p("ZodNanoID", (e, n) => { zl.init(e, n), le.init(e, n); }); function Cd(e) { return /* @__PURE__ */ ki(lr, e); } const cr = /* @__PURE__ */ p("ZodCUID", (e, n) => { wl.init(e, n), le.init(e, n); }); function Md(e) { return /* @__PURE__ */ Si(cr, e); } const sr = /* @__PURE__ */ p("ZodCUID2", (e, n) => { xl.init(e, n), le.init(e, n); }); function Fd(e) { return /* @__PURE__ */ Ii(sr, e); } const dr = /* @__PURE__ */ p("ZodULID", (e, n) => { Dl.init(e, n), le.init(e, n); }); function Ld(e) { return /* @__PURE__ */ zi(dr, e); } const fr = /* @__PURE__ */ p("ZodXID", (e, n) => { Ol.init(e, n), le.init(e, n); }); function Rd(e) { return /* @__PURE__ */ wi(fr, e); } const mr = /* @__PURE__ */ p("ZodKSUID", (e, n) => { jl.init(e, n), le.init(e, n); }); function Bd(e) { return /* @__PURE__ */ xi(mr, e); } const vr = /* @__PURE__ */ p("ZodIPv4", (e, n) => { Nl.init(e, n), le.init(e, n); }); function Jd(e) { return /* @__PURE__ */ Di(vr, e); } const Yi = /* @__PURE__ */ p("ZodMAC", (e, n) => { Zl.init(e, n), le.init(e, n); }); function Vd(e) { return /* @__PURE__ */ Rc(Yi, e); } const pr = /* @__PURE__ */ p("ZodIPv6", (e, n) => { Al.init(e, n), le.init(e, n); }); function qd(e) { return /* @__PURE__ */ Oi(pr, e); } const gr = /* @__PURE__ */ p("ZodCIDRv4", (e, n) => { Cl.init(e, n), le.init(e, n); }); function Yd(e) { return /* @__PURE__ */ ji(gr, e); } const hr = /* @__PURE__ */ p("ZodCIDRv6", (e, n) => { Ml.init(e, n), le.init(e, n); }); function Wd(e) { return /* @__PURE__ */ Ui(hr, e); } const $r = /* @__PURE__ */ p("ZodBase64", (e, n) => { Fl.init(e, n), le.init(e, n); }); function Kd(e) { return /* @__PURE__ */ Ei($r, e); } const br = /* @__PURE__ */ p("ZodBase64URL", (e, n) => { Rl.init(e, n), le.init(e, n); }); function Gd(e) { return /* @__PURE__ */ Ti(br, e); } const _r = /* @__PURE__ */ p("ZodE164", (e, n) => { Bl.init(e, n), le.init(e, n); }); function Hd(e) { return /* @__PURE__ */ Pi(_r, e); } const yr = /* @__PURE__ */ p("ZodJWT", (e, n) => { Vl.init(e, n), le.init(e, n); }); function Xd(e) { return /* @__PURE__ */ Ni(yr, e); } const Tt = /* @__PURE__ */ p("ZodCustomStringFormat", (e, n) => { ql.init(e, n), le.init(e, n); }); function Qd(e, n, r = {}) { return /* @__PURE__ */ rn(Tt, e, n, r); } function ef(e) { return /* @__PURE__ */ rn(Tt, "hostname", Au, e); } function tf(e) { return /* @__PURE__ */ rn(Tt, "hex", Xu, e); } function nf(e, n) { const r = (n == null ? void 0 : n.enc) ?? "hex", o = `${e}_${r}`, t = ii[o]; if (!t) throw new Error(`Unrecognized hash format: ${o}`); return /* @__PURE__ */ rn(Tt, o, t, n); } const ln = /* @__PURE__ */ p("ZodNumber", (e, n) => { li.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => Ds(e, o, t), on(e, "ZodNumber", { gt(o, t) { return this.check(/* @__PURE__ */ it(o, t)); }, gte(o, t) { return this.check(/* @__PURE__ */ Ue(o, t)); }, min(o, t) { return this.check(/* @__PURE__ */ Ue(o, t)); }, lt(o, t) { return this.check(/* @__PURE__ */ rt(o, t)); }, lte(o, t) { return this.check(/* @__PURE__ */ Me(o, t)); }, max(o, t) { return this.check(/* @__PURE__ */ Me(o, t)); }, int(o) { return this.check(Zn(o)); }, safe(o) { return this.check(Zn(o)); }, positive(o) { return this.check(/* @__PURE__ */ it(0, o)); }, nonnegative(o) { return this.check(/* @__PURE__ */ Ue(0, o)); }, negative(o) { return this.check(/* @__PURE__ */ rt(0, o)); }, nonpositive(o) { return this.check(/* @__PURE__ */ Me(0, o)); }, multipleOf(o, t) { return this.check(/* @__PURE__ */ wt(o, t)); }, step(o, t) { return this.check(/* @__PURE__ */ wt(o, t)); }, finite() { return this; } }); 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 Wi(e) { return /* @__PURE__ */ Wc(ln, e); } const _t = /* @__PURE__ */ p("ZodNumberFormat", (e, n) => { Yl.init(e, n), ln.init(e, n); }); function Zn(e) { return /* @__PURE__ */ Gc(_t, e); } function rf(e) { return /* @__PURE__ */ Hc(_t, e); } function of(e) { return /* @__PURE__ */ Xc(_t, e); } function af(e) { return /* @__PURE__ */ Qc(_t, e); } function uf(e) { return /* @__PURE__ */ es(_t, e); } const cn = /* @__PURE__ */ p("ZodBoolean", (e, n) => { ci.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Os(e, r, o); }); function Ki(e) { return /* @__PURE__ */ ts(cn, e); } const sn = /* @__PURE__ */ p("ZodBigInt", (e, n) => { si.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => js(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__ */ it(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__ */ rt(o, t)), e.lte = (o, t) => e.check(/* @__PURE__ */ Me(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Me(o, t)), e.positive = (o) => e.check(/* @__PURE__ */ it(BigInt(0), o)), e.negative = (o) => e.check(/* @__PURE__ */ rt(BigInt(0), o)), e.nonpositive = (o) => e.check(/* @__PURE__ */ Me(BigInt(0), o)), e.nonnegative = (o) => e.check(/* @__PURE__ */ Ue(BigInt(0), o)), e.multipleOf = (o, t) => e.check(/* @__PURE__ */ wt(o, t)); const r = e._zod.bag; e.minValue = r.minimum ?? null, e.maxValue = r.maximum ?? null, e.format = r.format ?? null; }); function lf(e) { return /* @__PURE__ */ rs(sn, e); } const kr = /* @__PURE__ */ p("ZodBigIntFormat", (e, n) => { Wl.init(e, n), sn.init(e, n); }); function cf(e) { return /* @__PURE__ */ os(kr, e); } function sf(e) { return /* @__PURE__ */ as(kr, e); } const Gi = /* @__PURE__ */ p("ZodSymbol", (e, n) => { Kl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Us(e, r); }); function df(e) { return /* @__PURE__ */ us(Gi, e); } const Hi = /* @__PURE__ */ p("ZodUndefined", (e, n) => { Gl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ts(e, r); }); function ff(e) { return /* @__PURE__ */ ls(Hi, e); } const Xi = /* @__PURE__ */ p("ZodNull", (e, n) => { Hl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Es(e, r, o); }); function Qi(e) { return /* @__PURE__ */ cs(Xi, e); } const eo = /* @__PURE__ */ p("ZodAny", (e, n) => { Xl.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => As(); }); function to() { return /* @__PURE__ */ ss(eo); } const no = /* @__PURE__ */ p("ZodUnknown", (e, n) => { Ql.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Zs(); }); function ht() { return /* @__PURE__ */ ds(no); } const ro = /* @__PURE__ */ p("ZodNever", (e, n) => { ec.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ns(e, r, o); }); function Sr(e) { return /* @__PURE__ */ fs(ro, e); } const io = /* @__PURE__ */ p("ZodVoid", (e, n) => { tc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ps(e, r); }); function mf(e) { return /* @__PURE__ */ ms(io, e); } const Ir = /* @__PURE__ */ p("ZodDate", (e, n) => { nc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => Cs(e, o), e.min = (o, t) => e.check(/* @__PURE__ */ Ue(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Me(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 vf(e) { return /* @__PURE__ */ vs(Ir, e); } const oo = /* @__PURE__ */ p("ZodArray", (e, n) => { rc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Gs(e, r, o, t), e.element = n.element, on(e, "ZodArray", { min(r, o) { return this.check(/* @__PURE__ */ gt(r, o)); }, nonempty(r) { return this.check(/* @__PURE__ */ gt(1, r)); }, max(r, o) { return this.check(/* @__PURE__ */ tn(r, o)); }, length(r, o) { return this.check(/* @__PURE__ */ nn(r, o)); }, unwrap() { return this.element; } }); }); function $t(e, n) { return /* @__PURE__ */ hs(oo, e, n); } function pf(e) { const n = e._zod.def.shape; return wr(Object.keys(n)); } const dn = /* @__PURE__ */ p("ZodObject", (e, n) => { uc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Hs(e, r, o, t), H(e, "shape", () => n.shape), on(e, "ZodObject", { keyof() { return wr(Object.keys(this._zod.def.shape)); }, catchall(r) { return this.clone({ ...this._zod.def, catchall: r }); }, passthrough() { return this.clone({ ...this._zod.def, catchall: ht() }); }, loose() { return this.clone({ ...this._zod.def, catchall: ht() }); }, strict() { return this.clone({ ...this._zod.def, catchall: Sr() }); }, strip() { return this.clone({ ...this._zod.def, catchall: void 0 }); }, extend(r) { return iu(this, r); }, safeExtend(r) { return ou(this, r); }, merge(r) { return au(this, r); }, pick(r) { return nu(this, r); }, omit(r) { return ru(this, r); }, partial(...r) { return uu(Dr, this, r[0]); }, required(...r) { return lu(Or, this, r[0]); } }); }); function ao(e, n) { const r = { type: "object", shape: e ?? {}, ...h(n) }; return new dn(r); } function gf(e, n) { return new dn({ type: "object", shape: e, catchall: Sr(), ...h(n) }); } function hf(e, n) { return new dn({ type: "object", shape: e, catchall: ht(), ...h(n) }); } const fn = /* @__PURE__ */ p("ZodUnion", (e, n) => { Vn.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Li(e, r, o, t), e.options = n.options; }); function mn(e, n) { return new fn({ type: "union", options: e, ...h(n) }); } const uo = /* @__PURE__ */ p("ZodXor", (e, n) => { fn.init(e, n), lc.init(e, n), e._zod.processJSONSchema = (r, o, t) => Li(e, r, o, t), e.options = n.options; }); function $f(e, n) { return new uo({ type: "union", options: e, inclusive: !1, ...h(n) }); } const lo = /* @__PURE__ */ p("ZodDiscriminatedUnion", (e, n) => { fn.init(e, n), cc.init(e, n); }); function bf(e, n, r) { return new lo({ type: "union", options: n, discriminator: e, ...h(r) }); } const co = /* @__PURE__ */ p("ZodIntersection", (e, n) => { sc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Xs(e, r, o, t); }); function so(e, n) { return new co({ type: "intersection", left: e, right: n }); } const fo = /* @__PURE__ */ p("ZodTuple", (e, n) => { di.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Qs(e, r, o, t), e.rest = (r) => e.clone({ ...e._zod.def, rest: r }); }); function mo(e, n, r) { const o = n instanceof V, t = o ? r : n, i = o ? n : null; return new fo({ type: "tuple", items: e, rest: i, ...h(t) }); } const jt = /* @__PURE__ */ p("ZodRecord", (e, n) => { dc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => ed(e, r, o, t), e.keyType = n.keyType, e.valueType = n.valueType; }); function zr(e, n, r) { return !n || !n._zod ? new jt({ type: "record", keyType: Lt(), valueType: e, ...h(n) }) : new jt({ type: "record", keyType: e, valueType: n, ...h(r) }); } function _f(e, n, r) { const o = Fe(e); return o._zod.values = void 0, new jt({ type: "record", keyType: o, valueType: n, ...h(r) }); } function yf(e, n, r) { return new jt({ type: "record", keyType: e, valueType: n, mode: "loose", ...h(r) }); } const vo = /* @__PURE__ */ p("ZodMap", (e, n) => { fc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ws(e, r), e.keyType = n.keyType, e.valueType = n.valueType, e.min = (...r) => e.check(/* @__PURE__ */ ot(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ ot(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ Et(...r)), e.size = (...r) => e.check(/* @__PURE__ */ en(...r)); }); function kf(e, n, r) { return new vo({ type: "map", keyType: e, valueType: n, ...h(r) }); } const po = /* @__PURE__ */ p("ZodSet", (e, n) => { mc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ks(e, r), e.min = (...r) => e.check(/* @__PURE__ */ ot(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ ot(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ Et(...r)), e.size = (...r) => e.check(/* @__PURE__ */ en(...r)); }); function Sf(e, n) { return new po({ type: "set", valueType: e, ...h(n) }); } const Ut = /* @__PURE__ */ p("ZodEnum", (e, n) => { vc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => Ms(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 Ut({ ...n, checks: [], ...h(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 Ut({ ...n, checks: [], ...h(t), entries: i }); }; }); function wr(e, n) { const r = Array.isArray(e) ? Object.fromEntries(e.map((o) => [o, o])) : e; return new Ut({ type: "enum", entries: r, ...h(n) }); } function go(e, n) { return new Ut({ type: "enum", entries: e, ...h(n) }); } const ho = /* @__PURE__ */ p("ZodLiteral", (e, n) => { pc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Fs(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 If(e, n) { return new ho({ type: "literal", values: Array.isArray(e) ? e : [e], ...h(n) }); } const $o = /* @__PURE__ */ p("ZodFile", (e, n) => { gc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Bs(e, r, o), e.min = (r, o) => e.check(/* @__PURE__ */ ot(r, o)), e.max = (r, o) => e.check(/* @__PURE__ */ Et(r, o)), e.mime = (r, o) => e.check(/* @__PURE__ */ Qn(Array.isArray(r) ? r : [r], o)); }); function zf(e) { return /* @__PURE__ */ $s($o, e); } const bo = /* @__PURE__ */ p("ZodTransform", (e, n) => { hc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ys(e, r), e._zod.parse = (r, o) => { if (o.direction === "backward") throw new Fn(e.constructor.name); r.addIssue = (i) => { if (typeof i == "string") r.issues.push(It(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(It(a)); } }; const t = n.transform(r.value, r); return t instanceof Promise ? t.then((i) => (r.value = i, r.fallback = !0, r)) : (r.value = t, r.fallback = !0, r); }; }); function xr(e) { return new bo({ type: "transform", transform: e }); } const Dr = /* @__PURE__ */ p("ZodOptional", (e, n) => { fi.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ri(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function Bt(e) { return new Dr({ type: "optional", innerType: e }); } const _o = /* @__PURE__ */ p("ZodExactOptional", (e, n) => { $c.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ri(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function yo(e) { return new _o({ type: "optional", innerType: e }); } const ko = /* @__PURE__ */ p("ZodNullable", (e, n) => { bc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => td(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function Jt(e) { return new ko({ type: "nullable", innerType: e }); } function wf(e) { return Bt(Jt(e)); } const So = /* @__PURE__ */ p("ZodDefault", (e, n) => { _c.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => rd(e, r, o, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap; }); function Io(e, n) { return new So({ type: "default", innerType: e, get defaultValue() { return typeof n == "function" ? n() : Rn(n); } }); } const zo = /* @__PURE__ */ p("ZodPrefault", (e, n) => { yc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => id(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function wo(e, n) { return new zo({ type: "prefault", innerType: e, get defaultValue() { return typeof n == "function" ? n() : Rn(n); } }); } const Or = /* @__PURE__ */ p("ZodNonOptional", (e, n) => { kc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => nd(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function xo(e, n) { return new Or({ type: "nonoptional", innerType: e, ...h(n) }); } const Do = /* @__PURE__ */ p("ZodSuccess", (e, n) => { Sc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Js(e, r, o), e.unwrap = () => e._zod.def.innerType; }); function xf(e) { return new Do({ type: "success", innerType: e }); } const Oo = /* @__PURE__ */ p("ZodCatch", (e, n) => { Ic.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => od(e, r, o, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap; }); function jo(e, n) { return new Oo({ type: "catch", innerType: e, catchValue: typeof n == "function" ? n : () => n }); } const Uo = /* @__PURE__ */ p("ZodNaN", (e, n) => { zc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ls(e, r); }); function Df(e) { return /* @__PURE__ */ gs(Uo, e); } const vn = /* @__PURE__ */ p("ZodPipe", (e, n) => { mi.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => ad(e, r, o, t), e.in = n.in, e.out = n.out; }); function Cn(e, n) { return new vn({ type: "pipe", in: e, out: n // ...util.normalizeParams(params), }); } const pn = /* @__PURE__ */ p("ZodCodec", (e, n) => { vn.init(e, n), vi.init(e, n); }); function Of(e, n, r) { return new pn({ type: "pipe", in: e, out: n, transform: r.decode, reverseTransform: r.encode }); } function jf(e) { const n = e._zod.def; return new pn({ type: "pipe", in: n.out, out: n.in, transform: n.reverseTransform, reverseTransform: n.transform }); } const Eo = /* @__PURE__ */ p("ZodPreprocess", (e, n) => { vn.init(e, n), wc.init(e, n); }), To = /* @__PURE__ */ p("ZodReadonly", (e, n) => { xc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => ud(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function Po(e) { return new To({ type: "readonly", innerType: e }); } const No = /* @__PURE__ */ p("ZodTemplateLiteral", (e, n) => { Dc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Rs(e, r, o); }); function Uf(e, n) { return new No({ type: "template_literal", parts: e, ...h(n) }); } const Ao = /* @__PURE__ */ p("ZodLazy", (e, n) => { Uc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => cd(e, r, o, t), e.unwrap = () => e._zod.def.getter(); }); function jr(e) { return new Ao({ type: "lazy", getter: e }); } const Zo = /* @__PURE__ */ p("ZodPromise", (e, n) => { jc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => ld(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function Ef(e) { return new Zo({ type: "promise", innerType: e }); } const Co = /* @__PURE__ */ p("ZodFunction", (e, n) => { Oc.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => qs(e, r); }); function Mn(e) { return new Co({ type: "function", input: Array.isArray(e == null ? void 0 : e.input) ? mo(e == null ? void 0 : e.input) : (e == null ? void 0 : e.input) ?? $t(ht()), output: (e == null ? void 0 : e.output) ?? ht() }); } const gn = /* @__PURE__ */ p("ZodCustom", (e, n) => { Ec.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Vs(e, r); }); function Tf(e) { const n = new fe({ check: "custom" // ...util.normalizeParams(params), }); return n._zod.check = e, n; } function Pf(e, n) { return /* @__PURE__ */ bs(gn, e ?? (() => !0), n); } function Mo(e, n = {}) { return /* @__PURE__ */ _s(gn, e, n); } function Fo(e, n) { return /* @__PURE__ */ ys(e, n); } const Nf = Ss, Af = Is; function Zf(e, n = {}) { const r = new gn({ type: "custom", check: "custom", fn: (o) => o instanceof e, abort: !0, ...h(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 Cf = (...e) => /* @__PURE__ */ zs({ Codec: pn, Boolean: cn, String: an }, ...e); function Mf(e) { const n = jr(() => mn([Lt(e), Wi(), Ki(), Qi(), $t(n), zr(Lt(), n)])); return n; } function Ff(e, n) { return new Eo({ type: "pipe", in: xr(e), out: n }); } const qg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ZodAny: eo, ZodArray: oo, ZodBase64: $r, ZodBase64URL: br, ZodBigInt: sn, ZodBigIntFormat: kr, ZodBoolean: cn, ZodCIDRv4: gr, ZodCIDRv6: hr, ZodCUID: cr, ZodCUID2: sr, ZodCatch: Oo, ZodCodec: pn, ZodCustom: gn, ZodCustomStringFormat: Tt, ZodDate: Ir, ZodDefault: So, ZodDiscriminatedUnion: lo, ZodE164: _r, ZodEmail: ar, ZodEmoji: ur, ZodEnum: Ut, ZodExactOptional: _o, ZodFile: $o, ZodFunction: Co, ZodGUID: Rt, ZodIPv4: vr, ZodIPv6: pr, ZodIntersection: co, ZodJWT: yr, ZodKSUID: mr, ZodLazy: Ao, ZodLiteral: ho, ZodMAC: Yi, ZodMap: vo, ZodNaN: Uo, ZodNanoID: lr, ZodNever: ro, ZodNonOptional: Or, ZodNull: Xi, ZodNullable: ko, ZodNumber: ln, ZodNumberFormat: _t, ZodObject: dn, ZodOptional: Dr, ZodPipe: vn, ZodPrefault: zo, ZodPreprocess: Eo, ZodPromise: Zo, ZodReadonly: To, ZodRecord: jt, ZodSet: po, ZodString: an, ZodStringFormat: le, ZodSuccess: Do, ZodSymbol: Gi, ZodTemplateLiteral: No, ZodTransform: bo, ZodTuple: fo, ZodType: K, ZodULID: dr, ZodURL: un, ZodUUID: Ye, ZodUndefined: Hi, ZodUnion: fn, ZodUnknown: no, ZodVoid: io, ZodXID: fr, ZodXor: uo, _ZodString: or, _default: Io, _function: Mn, any: to, array: $t, base64: Kd, base64url: Gd, bigint: lf, boolean: Ki, catch: jo, check: Tf, cidrv4: Yd, cidrv6: Wd, codec: Of, cuid: Md, cuid2: Fd, custom: Pf, date: vf, describe: Nf, discriminatedUnion: bf, e164: Hd, email: Od, emoji: Zd, enum: wr, exactOptional: yo, file: zf, float32: rf, float64: of, function: Mn, guid: jd, hash: nf, hex: tf, hostname: ef, httpUrl: Ad, instanceof: Zf, int: Zn, int32: af, int64: cf, intersection: so, invertCodec: jf, ipv4: Jd, ipv6: qd, json: Mf, jwt: Xd, keyof: pf, ksuid: Bd, lazy: jr, literal: If, looseObject: hf, looseRecord: yf, mac: Vd, map: kf, meta: Af, nan: Df, nanoid: Cd, nativeEnum: go, never: Sr, nonoptional: xo, null: Qi, nullable: Jt, nullish: wf, number: Wi, object: ao, optional: Bt, partialRecord: _f, pipe: Cn, prefault: wo, preprocess: Ff, promise: Ef, readonly: Po, record: zr, refine: Mo, set: Sf, strictObject: gf, string: Lt, stringFormat: Qd, stringbool: Cf, success: xf, superRefine: Fo, symbol: df, templateLiteral: Uf, transform: xr, tuple: mo, uint32: uf, uint64: sf, ulid: Ld, undefined: ff, union: mn, unknown: ht, url: Nd, uuid: Ud, uuidv4: Ed, uuidv6: Td, uuidv7: Pd, void: mf, xid: Rd, xor: $f }, Symbol.toStringTag, { value: "Module" })), Yg = { 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 Wg(e) { ye({ customError: e }); } function Kg() { return ye().customError; } var Mr; Mr || (Mr = {}); const D = { ...qg, ...Jg, iso: pd }, Gg = /* @__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 Hg(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 Xg(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 Lf(e, n) { if (e.not !== void 0) { if (typeof e.not == "object" && Object.keys(e.not).length === 0) return D.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 D.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 = Xg(t, n), a = Ie(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 D.null(); if (t.length === 0) return D.never(); if (t.length === 1) return D.literal(t[0]); if (t.every((a) => typeof a == "string")) return D.enum(t); const i = t.map((a) => D.literal(a)); return i.length < 2 ? i[0] : D.union([i[0], i[1], ...i.slice(2)]); } if (e.const !== void 0) return D.literal(e.const); const r = e.type; if (Array.isArray(r)) { const t = r.map((i) => { const a = { ...e, type: i }; return Lf(a, n); }); return t.length === 0 ? D.never() : t.length === 1 ? t[0] : D.union(t); } if (!r) return D.any(); let o; switch (r) { case "string": { let t = D.string(); if (e.format) { const i = e.format; i === "email" ? t = t.check(D.email()) : i === "uri" || i === "uri-reference" ? t = t.check(D.url()) : i === "uuid" || i === "guid" ? t = t.check(D.uuid()) : i === "date-time" ? t = t.check(D.iso.datetime()) : i === "date" ? t = t.check(D.iso.date()) : i === "time" ? t = t.check(D.iso.time()) : i === "duration" ? t = t.check(D.iso.duration()) : i === "ipv4" ? t = t.check(D.ipv4()) : i === "ipv6" ? t = t.check(D.ipv6()) : i === "mac" ? t = t.check(D.mac()) : i === "cidr" ? t = t.check(D.cidrv4()) : i === "cidr-v6" ? t = t.check(D.cidrv6()) : i === "base64" ? t = t.check(D.base64()) : i === "base64url" ? t = t.check(D.base64url()) : i === "e164" ? t = t.check(D.e164()) : i === "jwt" ? t = t.check(D.jwt()) : i === "emoji" ? t = t.check(D.emoji()) : i === "nanoid" ? t = t.check(D.nanoid()) : i === "cuid" ? t = t.check(D.cuid()) : i === "cuid2" ? t = t.check(D.cuid2()) : i === "ulid" ? t = t.check(D.ulid()) : i === "xid" ? t = t.check(D.xid()) : i === "ksuid" && (t = t.check(D.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" ? D.number().int() : D.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 = D.boolean(); break; } case "null": { o = D.null(); break; } case "object": { const t = {}, i = e.properties || {}, a = new Set(e.required || []); for (const [c, l] of Object.entries(i)) { const s = Ie(l, n); t[c] = a.has(c) ? s : s.optional(); } if (e.propertyNames) { const c = Ie(e.propertyNames, n), l = e.additionalProperties && typeof e.additionalProperties == "object" ? Ie(e.additionalProperties, n) : D.any(); if (Object.keys(t).length === 0) { o = D.record(c, l); break; } const s = D.object(t).passthrough(), d = D.looseRecord(c, l); o = D.intersection(s, d); break; } if (e.patternProperties) { const c = e.patternProperties, l = Object.keys(c), s = []; for (const f of l) { const m = Ie(c[f], n), g = D.string().regex(new RegExp(f)); s.push(D.looseRecord(g, m)); } const d = []; if (Object.keys(t).length > 0 && d.push(D.object(t).passthrough()), d.push(...s), d.length === 0) o = D.object({}).passthrough(); else if (d.length === 1) o = d[0]; else { let f = D.intersection(d[0], d[1]); for (let m = 2; m < d.length; m++) f = D.intersection(f, d[m]); o = f; } break; } const u = D.object(t); e.additionalProperties === !1 ? o = u.strict() : typeof e.additionalProperties == "object" ? o = u.catchall(Ie(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) => Ie(c, n)), u = i && typeof i == "object" && !Array.isArray(i) ? Ie(i, n) : void 0; u ? o = D.tuple(a).rest(u) : o = D.tuple(a), typeof e.minItems == "number" && (o = o.check(D.minLength(e.minItems))), typeof e.maxItems == "number" && (o = o.check(D.maxLength(e.maxItems))); } else if (Array.isArray(i)) { const a = i.map((c) => Ie(c, n)), u = e.additionalItems && typeof e.additionalItems == "object" ? Ie(e.additionalItems, n) : void 0; u ? o = D.tuple(a).rest(u) : o = D.tuple(a), typeof e.minItems == "number" && (o = o.check(D.minLength(e.minItems))), typeof e.maxItems == "number" && (o = o.check(D.maxLength(e.maxItems))); } else if (i !== void 0) { const a = Ie(i, n); let u = D.array(a); typeof e.minItems == "number" && (u = u.min(e.minItems)), typeof e.maxItems == "number" && (u = u.max(e.maxItems)), o = u; } else o = D.array(D.any()); break; } default: throw new Error(`Unsupported type: ${r}`); } return o; } function Ie(e, n) { if (typeof e == "boolean") return e ? D.any() : D.never(); let r = Lf(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) => Ie(l, n)), c = D.union(u); r = o ? D.intersection(r, c) : c; } if (e.oneOf && Array.isArray(e.oneOf)) { const u = e.oneOf.map((l) => Ie(l, n)), c = D.xor(u); r = o ? D.intersection(r, c) : c; } if (e.allOf && Array.isArray(e.allOf)) if (e.allOf.length === 0) r = o ? r : D.any(); else { let u = o ? r : Ie(e.allOf[0], n); const c = o ? 0 : 1; for (let l = c; l < e.allOf.length; l++) u = D.intersection(u, Ie(e.allOf[l], n)); r = u; } e.nullable === !0 && n.version === "openapi-3.0" && (r = D.nullable(r)), e.readOnly === !0 && (r = D.readonly(r)), e.default !== void 0 && (r = r.default(e.default)); 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)) Gg.has(u) || (t[u] = e[u]); return Object.keys(t).length > 0 && n.registry.add(r, t), e.description && (r = r.describe(e.description)), r; } function Qg(e, n) { if (typeof e == "boolean") return e ? D.any() : D.never(); let r; try { r = JSON.parse(JSON.stringify(e)); } catch { throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas"); } const o = Hg(r, n == null ? void 0 : n.defaultTarget), t = r.$defs || r.definitions || {}, i = { version: o, defs: t, refs: /* @__PURE__ */ new Map(), processing: /* @__PURE__ */ new Set(), rootSchema: r, registry: (n == null ? void 0 : n.registry) ?? Ce }; return Ie(r, i); } function eh(e) { return /* @__PURE__ */ Lc(an, e); } function th(e) { return /* @__PURE__ */ Kc(ln, e); } function nh(e) { return /* @__PURE__ */ ns(cn, e); } function rh(e) { return /* @__PURE__ */ is(sn, e); } function ih(e) { return /* @__PURE__ */ ps(Ir, e); } const oh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, bigint: rh, boolean: nh, date: ih, number: th, string: eh }, Symbol.toStringTag, { value: "Module" })); ye(Tc()); const Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, $brand: Wa, $input: Cc, $output: Zc, NEVER: Ya, TimePrecision: Bc, ZodAny: eo, ZodArray: oo, ZodBase64: $r, ZodBase64URL: br, ZodBigInt: sn, ZodBigIntFormat: kr, ZodBoolean: cn, ZodCIDRv4: gr, ZodCIDRv6: hr, ZodCUID: cr, ZodCUID2: sr, ZodCatch: Oo, ZodCodec: pn, ZodCustom: gn, ZodCustomStringFormat: Tt, ZodDate: Ir, ZodDefault: So, ZodDiscriminatedUnion: lo, ZodE164: _r, ZodEmail: ar, ZodEmoji: ur, ZodEnum: Ut, ZodError: Vg, ZodExactOptional: _o, ZodFile: $o, get ZodFirstPartyTypeKind() { return Mr; }, ZodFunction: Co, ZodGUID: Rt, ZodIPv4: vr, ZodIPv6: pr, ZodISODate: Ji, ZodISODateTime: Bi, ZodISODuration: qi, ZodISOTime: Vi, ZodIntersection: co, ZodIssueCode: Yg, ZodJWT: yr, ZodKSUID: mr, ZodLazy: Ao, ZodLiteral: ho, ZodMAC: Yi, ZodMap: vo, ZodNaN: Uo, ZodNanoID: lr, ZodNever: ro, ZodNonOptional: Or, ZodNull: Xi, ZodNullable: ko, ZodNumber: ln, ZodNumberFormat: _t, ZodObject: dn, ZodOptional: Dr, ZodPipe: vn, ZodPrefault: zo, ZodPreprocess: Eo, ZodPromise: Zo, ZodReadonly: To, ZodRealError: Ne, ZodRecord: jt, ZodSet: po, ZodString: an, ZodStringFormat: le, ZodSuccess: Do, ZodSymbol: Gi, ZodTemplateLiteral: No, ZodTransform: bo, ZodTuple: fo, ZodType: K, ZodULID: dr, ZodURL: un, ZodUUID: Ye, ZodUndefined: Hi, ZodUnion: fn, ZodUnknown: no, ZodVoid: io, ZodXID: fr, ZodXor: uo, _ZodString: or, _default: Io, _function: Mn, any: to, array: $t, base64: Kd, base64url: Gd, bigint: lf, boolean: Ki, catch: jo, check: Tf, cidrv4: Yd, cidrv6: Wd, clone: Fe, codec: Of, coerce: oh, config: ye, core: Bg, cuid: Md, cuid2: Fd, custom: Pf, date: vf, decode: kd, decodeAsync: Id, describe: Nf, discriminatedUnion: bf, e164: Hd, email: Od, emoji: Zd, encode: yd, encodeAsync: Sd, endsWith: Xn, enum: wr, exactOptional: yo, file: zf, flattenError: Vr, float32: rf, float64: of, formatError: qr, fromJSONSchema: Qg, function: Mn, getErrorMap: Kg, globalRegistry: Ce, gt: it, gte: Ue, guid: jd, hash: nf, hex: tf, hostname: ef, httpUrl: Ad, includes: Gn, instanceof: Zf, int: Zn, int32: af, int64: cf, intersection: so, invertCodec: jf, ipv4: Jd, ipv6: qd, iso: pd, json: Mf, jwt: Xd, keyof: pf, ksuid: Bd, lazy: jr, length: nn, literal: If, locales: Ac, looseObject: hf, looseRecord: yf, lowercase: Wn, lt: rt, lte: Me, mac: Vd, map: kf, maxLength: tn, maxSize: Et, meta: Af, mime: Qn, minLength: gt, minSize: ot, multipleOf: wt, nan: Df, nanoid: Cd, nativeEnum: go, negative: Zi, never: Sr, nonnegative: Mi, nonoptional: xo, nonpositive: Ci, normalize: er, null: Qi, nullable: Jt, nullish: wf, number: Wi, object: ao, optional: Bt, overwrite: et, parse: hd, parseAsync: $d, partialRecord: _f, pipe: Cn, positive: Ai, prefault: wo, preprocess: Ff, prettifyError: gu, promise: Ef, property: Fi, readonly: Po, record: zr, refine: Mo, regex: Yn, regexes: ii, registry: pi, safeDecode: wd, safeDecodeAsync: Dd, safeEncode: zd, safeEncodeAsync: xd, safeParse: bd, safeParseAsync: _d, set: Sf, setErrorMap: Wg, size: en, slugify: ir, startsWith: Hn, strictObject: gf, string: Lt, stringFormat: Qd, stringbool: Cf, success: xf, superRefine: Fo, symbol: df, templateLiteral: Uf, toJSONSchema: sd, toLowerCase: nr, toUpperCase: rr, transform: xr, treeifyError: vu, trim: tr, tuple: mo, uint32: uf, uint64: sf, ulid: Ld, undefined: ff, union: mn, unknown: ht, uppercase: Kn, url: Nd, util: fu, uuid: Ud, uuidv4: Ed, uuidv6: Td, uuidv7: Pd, void: mf, xid: Rd, xor: $f }, Symbol.toStringTag, { value: "Module" })); function tt(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var kn = { exports: {} }, ah = kn.exports, _a; function Rf() { return _a || (_a = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(ah, (function() { var r = 1e3, o = 6e4, t = 36e5, i = "millisecond", a = "second", u = "minute", c = "hour", l = "day", s = "week", d = "month", f = "quarter", m = "year", g = "date", v = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, w = { 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(N) { var U = ["th", "st", "nd", "rd"], x = N % 100; return "[" + N + (U[(x - 20) % 10] || U[x] || U[0]) + "]"; } }, L = function(N, U, x) { var P = String(N); return !P || P.length >= U ? N : "" + Array(U + 1 - P.length).join(x) + N; }, B = { s: L, z: function(N) { var U = -N.utcOffset(), x = Math.abs(U), P = Math.floor(x / 60), O = x % 60; return (U <= 0 ? "+" : "-") + L(P, 2, "0") + ":" + L(O, 2, "0"); }, m: function N(U, x) { if (U.date() < x.date()) return -N(x, U); var P = 12 * (x.year() - U.year()) + (x.month() - U.month()), O = U.clone().add(P, d), q = x - O < 0, Y = U.clone().add(P + (q ? -1 : 1), d); return +(-(P + (x - O) / (q ? O - Y : Y - O)) || 0); }, a: function(N) { return N < 0 ? Math.ceil(N) || 0 : Math.floor(N); }, p: function(N) { return { M: d, y: m, w: s, d: l, D: g, h: c, m: u, s: a, ms: i, Q: f }[N] || String(N || "").toLowerCase().replace(/s$/, ""); }, u: function(N) { return N === void 0; } }, A = "en", S = {}; S[A] = w; var I = "$isDayjsObject", k = function(N) { return N instanceof me || !(!N || !N[I]); }, R = function N(U, x, P) { var O; if (!U) return A; if (typeof U == "string") { var q = U.toLowerCase(); S[q] && (O = q), x && (S[q] = x, O = q); var Y = U.split("-"); if (!O && Y.length > 1) return N(Y[0]); } else { var ee = U.name; S[ee] = U, O = ee; } return !P && O && (A = O), O || !P && A; }, M = function(N, U) { if (k(N)) return N.clone(); var x = typeof U == "object" ? U : {}; return x.date = N, x.args = arguments, new me(x); }, Z = B; Z.l = R, Z.i = k, Z.w = function(N, U) { return M(N, { locale: U.$L, utc: U.$u, x: U.$x, $offset: U.$offset }); }; var me = (function() { function N(x) { this.$L = R(x.locale, null, !0), this.parse(x), this.$x = this.$x || x.x || {}, this[I] = !0; } var U = N.prototype; return U.parse = function(x) { this.$d = (function(P) { var O = P.date, q = P.utc; if (O === null) return /* @__PURE__ */ new Date(NaN); if (Z.u(O)) return /* @__PURE__ */ new Date(); if (O instanceof Date) return new Date(O); if (typeof O == "string" && !/Z$/i.test(O)) { var Y = O.match($); if (Y) { var ee = Y[2] - 1 || 0, te = (Y[7] || "0").substring(0, 3); return q ? new Date(Date.UTC(Y[1], ee, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, te)) : new Date(Y[1], ee, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, te); } } return new Date(O); })(x), this.init(); }, U.init = function() { var x = this.$d; this.$y = x.getFullYear(), this.$M = x.getMonth(), this.$D = x.getDate(), this.$W = x.getDay(), this.$H = x.getHours(), this.$m = x.getMinutes(), this.$s = x.getSeconds(), this.$ms = x.getMilliseconds(); }, U.$utils = function() { return Z; }, U.isValid = function() { return this.$d.toString() !== v; }, U.isSame = function(x, P) { var O = M(x); return this.startOf(P) <= O && O <= this.endOf(P); }, U.isAfter = function(x, P) { return M(x) < this.startOf(P); }, U.isBefore = function(x, P) { return this.endOf(P) < M(x); }, U.$g = function(x, P, O) { return Z.u(x) ? this[P] : this.set(O, x); }, U.unix = function() { return Math.floor(this.valueOf() / 1e3); }, U.valueOf = function() { return this.$d.getTime(); }, U.startOf = function(x, P) { var O = this, q = !!Z.u(P) || P, Y = Z.p(x), ee = function(Ge, ke) { var Ve = Z.w(O.$u ? Date.UTC(O.$y, ke, Ge) : new Date(O.$y, ke, Ge), O); return q ? Ve : Ve.endOf(l); }, te = function(Ge, ke) { return Z.w(O.toDate()[Ge].apply(O.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ke)), O); }, ie = this.$W, $e = this.$M, we = this.$D, Ke = "set" + (this.$u ? "UTC" : ""); switch (Y) { case m: return q ? ee(1, 0) : ee(31, 11); case d: return q ? ee(1, $e) : ee(0, $e + 1); case s: var Je = this.$locale().weekStart || 0, ct = (ie < Je ? ie + 7 : ie) - Je; return ee(q ? we - ct : we + (6 - ct), $e); case l: case g: return te(Ke + "Hours", 0); case c: return te(Ke + "Minutes", 1); case u: return te(Ke + "Seconds", 2); case a: return te(Ke + "Milliseconds", 3); default: return this.clone(); } }, U.endOf = function(x) { return this.startOf(x, !1); }, U.$set = function(x, P) { var O, q = Z.p(x), Y = "set" + (this.$u ? "UTC" : ""), ee = (O = {}, O[l] = Y + "Date", O[g] = Y + "Date", O[d] = Y + "Month", O[m] = Y + "FullYear", O[c] = Y + "Hours", O[u] = Y + "Minutes", O[a] = Y + "Seconds", O[i] = Y + "Milliseconds", O)[q], te = q === l ? this.$D + (P - this.$W) : P; if (q === d || q === m) { var ie = this.clone().set(g, 1); ie.$d[ee](te), ie.init(), this.$d = ie.set(g, Math.min(this.$D, ie.daysInMonth())).$d; } else ee && this.$d[ee](te); return this.init(), this; }, U.set = function(x, P) { return this.clone().$set(x, P); }, U.get = function(x) { return this[Z.p(x)](); }, U.add = function(x, P) { var O, q = this; x = Number(x); var Y = Z.p(P), ee = function($e) { var we = M(q); return Z.w(we.date(we.date() + Math.round($e * x)), q); }; if (Y === d) return this.set(d, this.$M + x); if (Y === m) return this.set(m, this.$y + x); if (Y === l) return ee(1); if (Y === s) return ee(7); var te = (O = {}, O[u] = o, O[c] = t, O[a] = r, O)[Y] || 1, ie = this.$d.getTime() + x * te; return Z.w(ie, this); }, U.subtract = function(x, P) { return this.add(-1 * x, P); }, U.format = function(x) { var P = this, O = this.$locale(); if (!this.isValid()) return O.invalidDate || v; var q = x || "YYYY-MM-DDTHH:mm:ssZ", Y = Z.z(this), ee = this.$H, te = this.$m, ie = this.$M, $e = O.weekdays, we = O.months, Ke = O.meridiem, Je = function(ke, Ve, st, He) { return ke && (ke[Ve] || ke(P, q)) || st[Ve].slice(0, He); }, ct = function(ke) { return Z.s(ee % 12 || 12, ke, "0"); }, Ge = Ke || function(ke, Ve, st) { var He = ke < 12 ? "AM" : "PM"; return st ? He.toLowerCase() : He; }; return q.replace(y, (function(ke, Ve) { return Ve || (function(st) { switch (st) { case "YY": return String(P.$y).slice(-2); case "YYYY": return Z.s(P.$y, 4, "0"); case "M": return ie + 1; case "MM": return Z.s(ie + 1, 2, "0"); case "MMM": return Je(O.monthsShort, ie, we, 3); case "MMMM": return Je(we, ie); case "D": return P.$D; case "DD": return Z.s(P.$D, 2, "0"); case "d": return String(P.$W); case "dd": return Je(O.weekdaysMin, P.$W, $e, 2); case "ddd": return Je(O.weekdaysShort, P.$W, $e, 3); case "dddd": return $e[P.$W]; case "H": return String(ee); case "HH": return Z.s(ee, 2, "0"); case "h": return ct(1); case "hh": return ct(2); case "a": return Ge(ee, te, !0); case "A": return Ge(ee, te, !1); case "m": return String(te); case "mm": return Z.s(te, 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 Y; } return null; })(ke) || Y.replace(":", ""); })); }, U.utcOffset = function() { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); }, U.diff = function(x, P, O) { var q, Y = this, ee = Z.p(P), te = M(x), ie = (te.utcOffset() - this.utcOffset()) * o, $e = this - te, we = function() { return Z.m(Y, te); }; switch (ee) { case m: q = we() / 12; break; case d: q = we(); break; case f: q = we() / 3; break; case s: q = ($e - ie) / 6048e5; break; case l: q = ($e - ie) / 864e5; break; case c: q = $e / t; break; case u: q = $e / o; break; case a: q = $e / r; break; default: q = $e; } return O ? q : Z.a(q); }, U.daysInMonth = function() { return this.endOf(d).$D; }, U.$locale = function() { return S[this.$L]; }, U.locale = function(x, P) { if (!x) return this.$L; var O = this.clone(), q = R(x, P, !0); return q && (O.$L = q), O; }, U.clone = function() { return Z.w(this.$d, this); }, U.toDate = function() { return new Date(this.valueOf()); }, U.toJSON = function() { return this.isValid() ? this.toISOString() : null; }, U.toISOString = function() { return this.$d.toISOString(); }, U.toString = function() { return this.$d.toUTCString(); }, N; })(), be = me.prototype; return M.prototype = be, [["$ms", i], ["$s", a], ["$m", u], ["$H", c], ["$W", l], ["$M", d], ["$y", m], ["$D", g]].forEach((function(N) { be[N[1]] = function(U) { return this.$g(U, N[0], N[1]); }; })), M.extend = function(N, U) { return N.$i || (N(U, me, M), N.$i = !0), M; }, M.locale = R, M.isDayjs = k, M.unix = function(N) { return M(1e3 * N); }, M.en = S[A], M.Ls = S, M.p = {}, M; })); })(kn)), kn.exports; } var uh = Rf(); const ze = /* @__PURE__ */ tt(uh); var Sn = { exports: {} }, lh = Sn.exports, ya; function ch() { return ya || (ya = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(lh, (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)?)?$/, f = { years: l, months: s, days: u, hours: a, minutes: i, seconds: t, milliseconds: 1, weeks: 6048e5 }, m = function(S) { return S instanceof B; }, g = function(S, I, k) { return new B(S, k, I.$l); }, v = function(S) { return o.p(S) + "s"; }, $ = function(S) { return S < 0; }, y = function(S) { return $(S) ? Math.ceil(S) : Math.floor(S); }, w = function(S) { return Math.abs(S); }, L = function(S, I) { return S ? $(S) ? { negative: !0, format: "" + w(S) + I } : { negative: !1, format: "" + S + I } : { negative: !1, format: "" }; }, B = (function() { function S(k, R, M) { var Z = this; if (this.$d = {}, this.$l = M, k === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), R) return g(k * f[v(R)], this); if (typeof k == "number") return this.$ms = k, this.parseFromMilliseconds(), this; if (typeof k == "object") return Object.keys(k).forEach((function(N) { Z.$d[v(N)] = k[N]; })), this.calMilliseconds(), this; if (typeof k == "string") { var me = k.match(d); if (me) { var be = me.slice(2).map((function(N) { return N != null ? Number(N) : 0; })); return this.$d.years = be[0], this.$d.months = be[1], this.$d.weeks = be[2], this.$d.days = be[3], this.$d.hours = be[4], this.$d.minutes = be[5], this.$d.seconds = be[6], this.calMilliseconds(), this; } } return this; } var I = S.prototype; return I.calMilliseconds = function() { var k = this; this.$ms = Object.keys(this.$d).reduce((function(R, M) { return R + (k.$d[M] || 0) * f[M]; }), 0); }, I.parseFromMilliseconds = function() { var k = this.$ms; this.$d.years = y(k / l), k %= l, this.$d.months = y(k / s), k %= s, this.$d.days = y(k / u), k %= u, this.$d.hours = y(k / a), k %= a, this.$d.minutes = y(k / i), k %= i, this.$d.seconds = y(k / t), k %= t, this.$d.milliseconds = k; }, I.toISOString = function() { var k = L(this.$d.years, "Y"), R = L(this.$d.months, "M"), M = +this.$d.days || 0; this.$d.weeks && (M += 7 * this.$d.weeks); var Z = L(M, "D"), me = L(this.$d.hours, "H"), be = L(this.$d.minutes, "M"), N = this.$d.seconds || 0; this.$d.milliseconds && (N += this.$d.milliseconds / 1e3, N = Math.round(1e3 * N) / 1e3); var U = L(N, "S"), x = k.negative || R.negative || Z.negative || me.negative || be.negative || U.negative, P = me.format || be.format || U.format ? "T" : "", O = (x ? "-" : "") + "P" + k.format + R.format + Z.format + P + me.format + be.format + U.format; return O === "P" || O === "-P" ? "P0D" : O; }, I.toJSON = function() { return this.toISOString(); }, I.format = function(k) { var R = k || "YYYY-MM-DDTHH:mm:ss", M = { 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 R.replace(c, (function(Z, me) { return me || String(M[Z]); })); }, I.as = function(k) { return this.$ms / f[v(k)]; }, I.get = function(k) { var R = this.$ms, M = v(k); return M === "milliseconds" ? R %= 1e3 : R = M === "weeks" ? y(R / f[M]) : this.$d[M], R || 0; }, I.add = function(k, R, M) { var Z; return Z = R ? k * f[v(R)] : m(k) ? k.$ms : g(k, this).$ms, g(this.$ms + Z * (M ? -1 : 1), this); }, I.subtract = function(k, R) { return this.add(k, R, !0); }, I.locale = function(k) { var R = this.clone(); return R.$l = k, R; }, I.clone = function() { return g(this.$ms, this); }, I.humanize = function(k) { return r().add(this.$ms, "ms").locale(this.$l).fromNow(!k); }, 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"); }, S; })(), A = function(S, I, k) { return S.add(I.years() * k, "y").add(I.months() * k, "M").add(I.days() * k, "d").add(I.hours() * k, "h").add(I.minutes() * k, "m").add(I.seconds() * k, "s").add(I.milliseconds() * k, "ms"); }; return function(S, I, k) { r = k, o = k().$utils(), k.duration = function(Z, me) { var be = k.locale(); return g(Z, { $l: be }, me); }, k.isDuration = m; var R = I.prototype.add, M = I.prototype.subtract; I.prototype.add = function(Z, me) { return m(Z) ? A(this, Z, 1) : R.bind(this)(Z, me); }, I.prototype.subtract = function(Z, me) { return m(Z) ? A(this, Z, -1) : M.bind(this)(Z, me); }; }; })); })(Sn)), Sn.exports; } var sh = ch(); const dh = /* @__PURE__ */ tt(sh); var In = { exports: {} }, fh = In.exports, ka; function mh() { return ka || (ka = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(fh, (function() { return function(r, o) { o.prototype.isSameOrAfter = function(t, i) { return this.isSame(t, i) || this.isAfter(t, i); }; }; })); })(In)), In.exports; } var vh = mh(); const ph = /* @__PURE__ */ tt(vh); var zn = { exports: {} }, gh = zn.exports, Sa; function hh() { return Sa || (Sa = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(gh, (function() { return function(r, o) { o.prototype.isSameOrBefore = function(t, i) { return this.isSame(t, i) || this.isBefore(t, i); }; }; })); })(zn)), zn.exports; } var $h = hh(); const bh = /* @__PURE__ */ tt($h); var wn = { exports: {} }, _h = wn.exports, Ia; function yh() { return Ia || (Ia = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(_h, (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); }; }; })); })(wn)), wn.exports; } var kh = yh(); const Sh = /* @__PURE__ */ tt(kh); var xn = { exports: {} }, Ih = xn.exports, za; function zh() { return za || (za = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(Ih, (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, f) { return i.fromToBase(l, s, d, f); } t.en.relativeTime = a, i.fromToBase = function(l, s, d, f, m) { for (var g, v, $, y = d.$locale().relativeTime || a, w = 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" }], L = w.length, B = 0; B < L; B += 1) { var A = w[B]; A.d && (g = f ? t(l).diff(d, A.d, !0) : d.diff(l, A.d, !0)); var S = (r.rounding || Math.round)(Math.abs(g)); if ($ = g > 0, S <= A.r || !A.r) { S <= 1 && B > 0 && (A = w[B - 1]); var I = y[A.l]; m && (S = m("" + S)), v = typeof I == "string" ? I.replace("%d", S) : I(S, s, A.l, $); break; } } if (s) return v; var k = $ ? y.future : y.past; return typeof k == "function" ? k(v) : k.replace("%s", v); }, 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); }; }; })); })(xn)), xn.exports; } var wh = zh(); const xh = /* @__PURE__ */ tt(wh); var Dn = { exports: {} }, Dh = Dn.exports, wa; function Oh() { return wa || (wa = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(Dh, (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(f, m, g) { g === void 0 && (g = {}); var v = new Date(f), $ = (function(y, w) { w === void 0 && (w = {}); var L = w.timeZoneName || "short", B = y + "|" + L, A = o[B]; return A || (A = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: y, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: L }), o[B] = A), A; })(m, g); return $.formatToParts(v); }, l = function(f, m) { for (var g = c(f, m), v = [], $ = 0; $ < g.length; $ += 1) { var y = g[$], w = y.type, L = y.value, B = r[w]; B >= 0 && (v[B] = parseInt(L, 10)); } var A = v[3], S = A === 24 ? 0 : A, I = v[0] + "-" + v[1] + "-" + v[2] + " " + S + ":" + v[4] + ":" + v[5] + ":000", k = +f; return (a.utc(I).valueOf() - (k -= k % 1e3)) / 6e4; }, s = i.prototype; s.tz = function(f, m) { f === void 0 && (f = u); var g, v = this.utcOffset(), $ = this.toDate(), y = $.toLocaleString("en-US", { timeZone: f }), w = Math.round(($ - new Date(y)) / 1e3 / 60), L = 15 * -Math.round($.getTimezoneOffset() / 15) - w; if (!Number(L)) g = this.utcOffset(0, m); else if (g = a(y, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(L, !0), m) { var B = g.utcOffset(); g = g.add(v - B, "minute"); } return g.$x.$timezone = f, g; }, s.offsetName = function(f) { var m = this.$x.$timezone || a.tz.guess(), g = c(this.valueOf(), m, { timeZoneName: f }).find((function(v) { return v.type.toLowerCase() === "timezonename"; })); return g && g.value; }; var d = s.startOf; s.startOf = function(f, m) { if (!this.$x || !this.$x.$timezone) return d.call(this, f, m); var g = a(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L }); return d.call(g, f, m).tz(this.$x.$timezone, !0); }, a.tz = function(f, m, g) { var v = g && m, $ = g || m || u, y = l(+a(), $); if (typeof f != "string") return a(f).tz($); var w = (function(S, I, k) { var R = S - 60 * I * 1e3, M = l(R, k); if (I === M) return [R, I]; var Z = l(R -= 60 * (M - I) * 1e3, k); return M === Z ? [R, M] : [S - 60 * Math.min(M, Z) * 1e3, Math.max(M, Z)]; })(a.utc(f, v).valueOf(), y, $), L = w[0], B = w[1], A = a(L).utcOffset(B); return A.$x.$timezone = $, A; }, a.tz.guess = function() { return Intl.DateTimeFormat().resolvedOptions().timeZone; }, a.tz.setDefault = function(f) { u = f; }; }; })); })(Dn)), Dn.exports; } var jh = Oh(); const Uh = /* @__PURE__ */ tt(jh); var On = { exports: {} }, Eh = On.exports, xa; function Th() { return xa || (xa = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(Eh, (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(v) { var $ = { date: v, utc: !0, args: arguments }; return new a($); }, c.utc = function(v) { var $ = u(this.toDate(), { locale: this.$L, utc: !0 }); return v ? $.add(this.utcOffset(), r) : $; }, c.local = function() { return u(this.toDate(), { locale: this.$L, utc: !1 }); }; var l = c.parse; c.parse = function(v) { v.utc && (this.$u = !0), this.$utils().u(v.$offset) || (this.$offset = v.$offset), l.call(this, v); }; var s = c.init; c.init = function() { if (this.$u) { var v = this.$d; this.$y = v.getUTCFullYear(), this.$M = v.getUTCMonth(), this.$D = v.getUTCDate(), this.$W = v.getUTCDay(), this.$H = v.getUTCHours(), this.$m = v.getUTCMinutes(), this.$s = v.getUTCSeconds(), this.$ms = v.getUTCMilliseconds(); } else s.call(this); }; var d = c.utcOffset; c.utcOffset = function(v, $) { var y = this.$utils().u; if (y(v)) return this.$u ? 0 : y(this.$offset) ? d.call(this) : this.$offset; if (typeof v == "string" && (v = (function(A) { A === void 0 && (A = ""); var S = A.match(o); if (!S) return null; var I = ("" + S[0]).match(t) || ["-", 0, 0], k = I[0], R = 60 * +I[1] + +I[2]; return R === 0 ? 0 : k === "+" ? R : -R; })(v), v === null)) return this; var w = Math.abs(v) <= 16 ? 60 * v : v; if (w === 0) return this.utc($); var L = this.clone(); if ($) return L.$offset = w, L.$u = !1, L; var B = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset(); return (L = this.local().add(w + B, r)).$offset = w, L.$x.$localOffset = B, L; }; var f = c.format; c.format = function(v) { var $ = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : ""); return f.call(this, $); }, c.valueOf = function() { var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset()); return this.$d.valueOf() - 6e4 * v; }, c.isUTC = function() { return !!this.$u; }, c.toISOString = function() { return this.toDate().toISOString(); }, c.toString = function() { return this.toDate().toUTCString(); }; var m = c.toDate; c.toDate = function(v) { return v === "s" && this.$offset ? u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : m.call(this); }; var g = c.diff; c.diff = function(v, $, y) { if (v && this.$u === v.$u) return g.call(this, v, $, y); var w = this.local(), L = u(v).local(); return g.call(w, L, $, y); }; }; })); })(On)), On.exports; } var Ph = Th(); const Nh = /* @__PURE__ */ tt(Ph); var jn = { exports: {} }, Ah = jn.exports, Da; function Zh() { return Da || (Da = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(Ah, (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 f = a(this).startOf(o).date(l).startOf(r).subtract(1, "millisecond"), m = this.diff(f, r, !0); return m < 0 ? a(this).startOf("week").week() : Math.ceil(m); }, u.weeks = function(c) { return c === void 0 && (c = null), this.week(c); }; }; })); })(jn)), jn.exports; } var Ch = Zh(); const Mh = /* @__PURE__ */ tt(Ch); var Un = { exports: {} }, Fh = Un.exports, Oa; function Lh() { return Oa || (Oa = 1, (function(e, n) { (function(r, o) { e.exports = o(Rf()); })(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; })); })(Un)), Un.exports; } Lh(); var Rh = {}; globalThis.cacheMemoria_cache = Rh; var Bh = ((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))(Bh || {}), Jh = ((e) => (e.token = "token", e))(Jh || {}), Vh = ((e) => (e.Usuario = "usuario", e.Fornecedor = "fornecedor", e))(Vh || {}), qh = ((e) => (e["="] = "=", e["!="] = "!=", e[">"] = ">", e[">="] = ">=", e["<"] = "<", e["<="] = "<=", e.like = "like", e.in = "in", e.isNull = "isNull", e))(qh || {}), Yh = Ct.enum(["=", "!=", ">", ">=", "<", "<=", "like", "in", "isNull"]); Ct.object({ coluna: Ct.string(), valor: Ct.any(), operador: Yh, ou: Ct.boolean().optional() }); ze.locale("pt-br"); ze.extend(Nh); ze.extend(Uh); ze.extend(Mh); ze.extend(bh); ze.extend(ph); ze.extend(Sh); ze.extend(xh); ze.extend(dh); var Wh = ((e) => (e["e-licencie"] = "e-licencie", e["gov.e-licencie"] = "gov.e-licencie", e))(Wh || {}), Kh = ((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))(Kh || {}), Bf = ((e) => (e["="] = "=", e["!="] = "!=", e[">"] = ">", e[">="] = ">=", e["<"] = "<", e["<="] = "<=", e.like = "like", e.in = "in", e))(Bf || {}), Gh = ((e) => (e.E = "E", e.OU = "OU", e))(Gh || {}), Hh = go(Bf), Xh = to(), Qh = zr(Hh, Xh), Ur = jr(() => ao({ E: $t(Ur).optional(), OU: $t(Ur).optional() }).catchall(mn([Qh, Ur]))), wy = (e) => e, e$ = ((e) => (e.UN = "UN", e.KG = "KG", e.TON = "TON", e.g = "g", e["M³"] = "M³", e.Lt = "Lt", e))(e$ || {}); const t$ = oe({ 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 = T(() => 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 = T( () => o.value.modo ?? "dataHora" ), i = T( () => !!e.desabilitado ), a = T( () => t.value === "data" ? "date" : "datetime-local" ); function u(v) { return t.value === "data" ? ze(v).format("YYYY-MM-DD") : ze(v).format("YYYY-MM-DDTHH:mm"); } function c(v) { return t.value === "data" ? ze(`${v}T00:00`).format() : ze(v).format(); } const l = T(() => e.value !== void 0 ? e.value ?? null : e.modelValue), s = T({ get: () => l.value ? u(l.value) : "", set: (v) => { const $ = v && v.length > 0 ? v : null; if (!$) { n("update:value", null), n("input", null), n("change", null), n("update:modelValue", null), n("alterar", null); return; } const y = c($); n("update:value", y), n("input", y), n("change", y), n("update:modelValue", y), n("alterar", y); } }), d = T(() => { const v = o.value.min; if (v) return u(v); }), f = T(() => { const v = o.value.max; if (v) return u(v); }); function m() { n("foco"), n("focus"); } function g() { n("desfoco"), n("blur"); } return { attrs: r, valor: s, tipoInput: a, minLocal: d, maxLocal: f, opcoesEfetivas: o, desabilitadoEfetivo: i, emitCompatFocus: m, emitCompatBlur: g }; } }), n$ = { class: "eli-data-hora" }; function r$(e, n, r, o, t, i) { return _(), E("div", n$, [ ne(Fr, at({ 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 Jf = /* @__PURE__ */ ae(t$, [["render", r$]]); function i$(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 o$(e) { const n = (e ?? "").trim().replace(/,/g, "."); if (!n) return null; const r = Number(n); return Number.isNaN(r) ? null : r; } function Er(e, n) { return e == null ? "" : n === null ? String(e).replace(/\./g, ",") : Number(e).toFixed(Math.max(0, n)).replace(/\./g, ","); } function ja(e) { return (e ?? "").replace(/\D+/g, ""); } function a$(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 u$(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 l$(e) { const n = e.match(/^(\d+)[.,]$/); if (!n) return null; const r = Number(n[1]); return Number.isNaN(r) ? null : r; } const c$ = oe({ 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 = T(() => { var s; const l = (s = e.opcoes) == null ? void 0 : s.precisao; return l == null ? null : i$(l); }), t = T(() => o.value === 0), i = T(() => { const l = o.value; return l !== null && l > 0; }), a = X(""), u = X(void 0); Be( () => e.value, (l) => { l !== u.value && (a.value = Er(l, o.value), u.value = l); }, { immediate: !0 } ); function c(l) { if (i.value) { const m = o.value ?? 0, g = ja(l), v = g ? Number(g) : 0, $ = 10 ** m, y = g ? v / $ : null, w = y === null ? null : y; u.value = w, r("update:value", w), r("input", w), r("change", w), a.value = Er(w, m); return; } const s = t.value ? ja(l) : a$(l), d = t.value ? s : u$(s, o.value); let f = null; if (d) { const g = (t.value ? null : l$(d)) ?? o$(d); f = g === null ? null : g; } u.value = f, r("update:value", f), r("input", f), r("change", f), o.value === null && d ? a.value = d.replace(/\./g, ",") : a.value = Er(f, o.value); } return { attrs: n, emit: r, displayValue: a, isInteiro: t, onUpdateModelValue: c }; } }), s$ = { class: "eli-entrada__prefixo" }, d$ = { class: "eli-entrada__sufixo" }; function f$(e, n, r, o, t, i) { var a, u, c, l; return _(), de(Fr, at({ "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")) }), om({ _: 2 }, [ (c = e.opcoes) != null && c.prefixo ? { name: "prepend-inner", fn: he(() => [ j("span", s$, Q(e.opcoes.prefixo), 1) ]), key: "0" } : void 0, (l = e.opcoes) != null && l.sufixo ? { name: "append-inner", fn: he(() => [ j("span", d$, Q(e.opcoes.sufixo), 1) ]), key: "1" } : void 0 ]), 1040, ["model-value", "label", "placeholder", "type", "inputmode", "pattern", "onUpdate:modelValue"]); } const Vf = /* @__PURE__ */ ae(c$, [["render", f$]]), m$ = oe({ name: "EliEntradaParagrafo", components: { VTextarea: mm }, 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 = T({ get: () => e.value, set: (t) => { r("update:value", t), r("input", t), r("change", t); } }); return { attrs: n, emit: r, localValue: o }; } }); function v$(e, n, r, o, t, i) { var a, u, c, l, s, d, f, m, g, v, $, y; return _(), de(gm, at({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (w) => e.localValue = w), 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: !!((f = e.opcoes) != null && f.erro), "error-messages": (m = e.opcoes) == null ? void 0 : m.mensagensErro, hint: (g = e.opcoes) == null ? void 0 : g.dica, "persistent-hint": !!((v = e.opcoes) != null && v.dicaPersistente), density: (($ = e.opcoes) == null ? void 0 : $.densidade) ?? "comfortable", variant: ((y = e.opcoes) == null ? void 0 : y.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 p$ = /* @__PURE__ */ ae(m$, [["render", v$]]), g$ = oe({ name: "EliEntradaSelecao", components: { VSelect: vm }, 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 = X([]), t = X(!1), i = T({ 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(); } ), Ma(() => { a(); }), Be( o, (u) => { console.debug("[EliEntradaSelecao] itens:", u); }, { deep: !0 } ), { attrs: n, emit: r, localValue: i, itens: o, carregando: t }; } }); function h$(e, n, r, o, t, i) { var a, u, c, l, s, d, f, m, g; return _(), de(hm, at({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (v) => e.localValue = v), 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, zIndex: 99999 }, 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": !!((f = e.opcoes) != null && f.dicaPersistente), density: ((m = e.opcoes) == null ? void 0 : m.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 $$ = /* @__PURE__ */ ae(g$, [["render", h$]]); function b$(e) { return e.replace(/\D+/g, ""); } function _$(e) { const n = b$(e); return n ? n.replace(/^(\d{5})(\d)/, "$1-$2").slice(0, 9) : ""; } function y$(e) { return e.replace(/\D+/g, ""); } function k$(e) { const n = y$(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 S$(e) { return e.replace(/\D+/g, ""); } function I$(e) { const n = S$(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 z$ = oe({ 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 = T(() => { var l; return ((l = e.opcoes) == null ? void 0 : l.formato) ?? "texto"; }), t = T({ get: () => e.value, set: (l) => { r("update:value", l), r("input", l), r("change", l); } }), i = T(() => o.value === "email" ? "email" : o.value === "url" ? "url" : "text"), a = T(() => { if (o.value === "telefone") return "tel"; if (o.value === "cpfCnpj" || o.value === "cep") return "numeric"; }); function u(l) { switch (o.value) { case "telefone": return I$(l); case "cpfCnpj": return k$(l); case "cep": return _$(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 w$(e, n, r, o, t, i) { var a, u, c, l; return _(), de(Fr, at({ 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 Lo = /* @__PURE__ */ ae(z$, [["render", w$]]); var qf = ((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))(qf || {}); const x$ = "eli:tabela"; function Yf(e) { return `${x$}:${e}:colunas`; } function Wf(e) { if (!e || typeof e != "object") return { visiveis: [], invisiveis: [] }; const n = e, r = Array.isArray(n.visiveis) ? n.visiveis.filter((t) => typeof t == "string") : [], o = Array.isArray(n.invisiveis) ? n.invisiveis.filter((t) => typeof t == "string") : []; return { visiveis: r, invisiveis: o }; } function Ua(e) { try { const n = window.localStorage.getItem(Yf(e)); return n ? Wf(JSON.parse(n)) : { visiveis: [], invisiveis: [] }; } catch { return { visiveis: [], invisiveis: [] }; } } function D$(e, n) { try { window.localStorage.setItem( Yf(e), JSON.stringify(Wf(n)) ); } catch { } } /** * @license @lucide/vue v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Ea = (e) => e === ""; /** * @license @lucide/vue v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const O$ = (...e) => e.filter((n, r, o) => !!n && n.trim() !== "" && o.indexOf(n) === r).join(" ").trim(); /** * @license @lucide/vue v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Ta = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(); /** * @license @lucide/vue v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const j$ = (e) => e.replace( /^([A-Z])|[\s-_]+(\w)/g, (n, r, o) => o ? o.toUpperCase() : r.toLowerCase() ); /** * @license @lucide/vue v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const U$ = (e) => { const n = j$(e); return n.charAt(0).toUpperCase() + n.slice(1); }; /** * @license @lucide/vue v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ var kt = { 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 v1.16.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$ = Symbol("lucide-icons"); function T$() { return am(E$, {}); } /** * @license @lucide/vue v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const P$ = ({ name: e, iconNode: n, absoluteStrokeWidth: r, "absolute-stroke-width": o, strokeWidth: t, "stroke-width": i, size: a, color: u, ...c }, { slots: l }) => { const { size: s, color: d, strokeWidth: f = 2, absoluteStrokeWidth: m = !1, class: g = "" } = T$(), v = T(() => { const $ = Ea(r) || Ea(o) || r === !0 || o === !0 || m === !0, y = t || i || f || kt["stroke-width"]; return $ ? Number(y) * 24 / Number(a ?? s ?? kt.width) : y; }); return Tr( "svg", { ...kt, ...c, width: a ?? s ?? kt.width, height: a ?? s ?? kt.height, stroke: u ?? d ?? kt.stroke, "stroke-width": v.value, class: O$( "lucide", g, ...e ? [`lucide-${Ta(U$(e))}-icon`, `lucide-${Ta(e)}`] : ["lucide-icon"] ) }, [...n.map(($) => Tr(...$)), ...l.default ? [l.default()] : []] ); }; /** * @license @lucide/vue v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Pt = (e, n) => (r, { slots: o, attrs: t }) => Tr( P$, { ...t, ...r, iconNode: n, name: e }, o.default ? { default: o.default } : void 0 ); /** * @license @lucide/vue v1.16.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$ = [ ["path", { d: "M12 5v14", key: "s699le" }], ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }] ], Pa = Pt("arrow-down", N$); /** * @license @lucide/vue v1.16.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$ = [ ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }], ["path", { d: "M12 19V5", key: "x0mq9r" }] ], Na = Pt("arrow-up", A$); /** * @license @lucide/vue v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Z$ = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Aa = Pt("chevron-down", Z$); /** * @license @lucide/vue v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const C$ = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Za = Pt("chevron-right", C$); /** * @license @lucide/vue v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const M$ = [ ["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" }] ], F$ = Pt("ellipsis-vertical", M$); /** * @license @lucide/vue v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const L$ = [ ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }], ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }] ], R$ = Pt("search", L$), B$ = oe({ name: "EliTabelaCelulaData", props: { dados: { type: Object, required: !1 } }, setup({ dados: e }) { const n = T(() => { const r = e == null ? void 0 : e.valor; if (!r) return ""; const o = (e == null ? void 0 : e.formato) ?? "data"; return o === "relativo" ? ze(r).fromNow() : o === "data_hora" ? ze(r).format("DD/MM/YYYY HH:mm") : ze(r).format("DD/MM/YYYY"); }); return { dados: e, textoData: n }; } }), J$ = { key: 1 }; function V$(e, n, r, o, t, i) { var a; return (a = e.dados) != null && a.acao ? (_(), E("button", { key: 0, type: "button", class: "eli-tabela__celula-link", onClick: n[0] || (n[0] = _e((u) => e.dados.acao(), ["stop", "prevent"])) }, Q(e.textoData), 1)) : (_(), E("span", J$, Q(e.textoData), 1)); } const q$ = /* @__PURE__ */ ae(B$, [["render", V$]]), Y$ = oe({ name: "EliTabelaCelulaNumero", components: {}, props: { dados: { type: Object } }, setup({ dados: e }) { const n = T(() => { 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 }; } }), W$ = { key: 1 }; function K$(e, n, r, o, t, i) { var a; return (a = e.dados) != null && a.acao ? (_(), E("button", { key: 0, type: "button", class: "eli-tabela__celula-link", onClick: n[0] || (n[0] = _e((u) => e.dados.acao(), ["stop", "prevent"])) }, Q(e.textoNumero), 1)) : (_(), E("span", W$, Q(e.textoNumero), 1)); } const G$ = /* @__PURE__ */ ae(Y$, [["render", K$]]), H$ = oe({ name: "EliTabelaCelulaTags", components: { VChip: pm }, props: { dados: { type: Object, required: !1 } }, setup({ dados: e }) { return { dados: e }; } }), X$ = { class: "eli-tabela__celula-tags" }; function Q$(e, n, r, o, t, i) { var a; return _(), E("div", X$, [ (_(!0), E(Oe, null, Ee(((a = e.dados) == null ? void 0 : a.opcoes) ?? [], (u, c) => (_(), de($m, { key: c, class: "eli-tabela__celula-tag", size: "small", variant: "tonal", color: u.cor, clickable: !!u.acao, onClick: _e((l) => { var s; return (s = u.acao) == null ? void 0 : s.call(u); }, ["stop", "prevent"]) }, { default: he(() => [ u.icone ? (_(), de(ut(u.icone), { key: 0, class: "eli-tabela__celula-tag-icone", size: 14 })) : ve("", !0), j("span", null, Q(u.rotulo), 1) ]), _: 2 }, 1032, ["color", "clickable", "onClick"]))), 128)) ]); } const eb = /* @__PURE__ */ ae(H$, [["render", Q$]]), tb = oe({ name: "EliTabelaCelulaTextoSimples", components: {}, props: { dados: { type: Object } }, data() { return {}; }, methods: {}, setup({ dados: e }) { return { dados: e }; } }), nb = { key: 1 }; function rb(e, n, r, o, t, i) { var a, u, c; return (a = e.dados) != null && a.acao ? (_(), E("button", { key: 0, type: "button", class: "eli-tabela__celula-link", onClick: n[0] || (n[0] = _e((l) => e.dados.acao(), ["stop", "prevent"])) }, Q((u = e.dados) == null ? void 0 : u.texto), 1)) : (_(), E("span", nb, Q((c = e.dados) == null ? void 0 : c.texto), 1)); } const ib = /* @__PURE__ */ ae(tb, [["render", rb]]), ob = oe({ name: "EliTabelaCelulaTextoTruncado", props: { dados: { type: Object } }, setup({ dados: e }) { return { dados: e }; } }), ab = ["title"], ub = ["title"]; function lb(e, n, r, o, t, i) { var a, u, c, l, s; return (a = e.dados) != null && a.acao ? (_(), E("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] = _e((d) => { var f, m; return (m = (f = e.dados) == null ? void 0 : f.acao) == null ? void 0 : m.call(f); }, ["stop", "prevent"])) }, Q((c = e.dados) == null ? void 0 : c.texto), 9, ab)) : (_(), E("span", { key: 1, class: "eli-tabela__texto-truncado", title: (l = e.dados) == null ? void 0 : l.texto }, Q((s = e.dados) == null ? void 0 : s.texto), 9, ub)); } const cb = /* @__PURE__ */ ae(ob, [["render", lb]]), sb = { textoSimples: ib, textoTruncado: cb, numero: G$, tags: eb, data: q$ }, db = oe({ name: "EliTabelaCelula", props: { celula: { // `ComponenteCelula` é uma tupla `readonly [tipo, dados]`. type: Array, required: !0 } }, setup(e) { const n = T(() => e.celula[0]), r = T( () => e.celula[1] ), o = T( () => sb[n.value] ), t = T(() => r.value); return { Componente: o, dadosParaComponente: t }; } }); function fb(e, n, r, o, t, i) { return _(), de(ut(e.Componente), { dados: e.dadosParaComponente }, null, 8, ["dados"]); } const Kf = /* @__PURE__ */ ae(db, [["render", fb]]), mb = oe({ name: "EliTabelaDetalhesLinha", components: { EliTabelaCelula: Kf }, props: { linha: { type: [Object, String, Number, Array], required: !0 }, colunasInvisiveis: { // biome-ignore lint/suspicious/noExplicitAny: dynamic column type: Array, required: !0 } } }), vb = { class: "eli-tabela__detalhes" }, pb = { class: "eli-tabela__detalhe-rotulo" }, gb = { class: "eli-tabela__detalhe-valor" }; function hb(e, n, r, o, t, i) { const a = ge("EliTabelaCelula"); return _(), E("div", vb, [ (_(!0), E(Oe, null, Ee(e.colunasInvisiveis, (u, c) => (_(), E("div", { key: `det-${c}-${u.rotulo}`, class: "eli-tabela__detalhe" }, [ j("div", pb, Q(u.rotulo), 1), j("div", gb, [ ne(a, { celula: u.celula(e.linha) }, null, 8, ["celula"]) ]) ]))), 128)) ]); } const $b = /* @__PURE__ */ ae(mb, [["render", hb]]), bb = oe({ name: "EliTabelaBody", components: { EliTabelaCelula: Kf, EliTabelaDetalhesLinha: $b, MoreVertical: F$, ChevronRight: Za, ChevronDown: Aa }, 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 }, mostrarSelecao: { type: Boolean, default: !1 }, isSelecionado: { type: Function, required: !0 }, alternarSelecao: { type: Function, required: !0 } }, setup() { return { ChevronRight: Za, ChevronDown: Aa }; } }), _b = { class: "eli-tabela__tbody" }, yb = ["aria-expanded", "aria-label", "title", "onClick"], kb = ["checked", "onChange"], Sb = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label", "title", "onClick"], Ib = ["colspan"]; function zb(e, n, r, o, t, i) { const a = ge("EliTabelaCelula"), u = ge("MoreVertical"), c = ge("EliTabelaDetalhesLinha"); return _(), E("tbody", _b, [ (_(!0), E(Oe, null, Ee(e.linhas, (l, s) => { var d, f, m, g, v, $; return _(), E(Oe, { key: `grp-${s}` }, [ j("tr", { class: Xe(["eli-tabela__tr", [s % 2 === 1 ? "eli-tabela__tr--zebra" : void 0]]) }, [ e.temColunasInvisiveis ? (_(), E("td", { class: "eli-tabela__td eli-tabela__td--expander", key: `td-${s}-exp` }, [ j("button", { type: "button", class: Xe(["eli-tabela__expander-botao", [(d = e.linhasExpandidas) != null && d[s] ? "eli-tabela__expander-botao--ativo" : void 0]]), "aria-expanded": (f = e.linhasExpandidas) != null && f[s] ? "true" : "false", "aria-label": (m = e.linhasExpandidas) != null && m[s] ? "Ocultar colunas ocultas" : "Mostrar colunas ocultas", title: (g = e.linhasExpandidas) != null && g[s] ? "Ocultar detalhes" : "Mostrar detalhes", onClick: _e((y) => e.alternarLinhaExpandida(s), ["stop"]) }, [ (_(), de(ut((v = e.linhasExpandidas) != null && v[s] ? e.ChevronDown : e.ChevronRight), { class: "eli-tabela__expander-icone", size: 16, "stroke-width": 2, "aria-hidden": "true" })) ], 10, yb) ])) : ve("", !0), e.mostrarSelecao ? (_(), E("td", { class: "eli-tabela__td eli-tabela__td--selecao", key: `td-${s}-selecao` }, [ j("input", { type: "checkbox", class: "eli-tabela__checkbox", checked: e.isSelecionado(l), onChange: (y) => e.alternarSelecao(l), onClick: n[0] || (n[0] = _e(() => { }, ["stop"])), "aria-label": "Selecionar linha" }, null, 40, kb) ])) : ve("", !0), (_(!0), E(Oe, null, Ee(e.colunas, (y, w) => (_(), E("td", { key: `td-${s}-${w}`, class: "eli-tabela__td" }, [ ne(a, { celula: y.celula(l) }, null, 8, ["celula"]) ]))), 128)), e.temAcoes ? (_(), E("td", { class: "eli-tabela__td eli-tabela__td--acoes", key: `td-${s}-acoes` }, [ j("div", { class: Xe(["eli-tabela__acoes-container", [e.menuAberto === s ? "eli-tabela__acoes-container--aberto" : void 0]]) }, [ j("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: _e((y) => e.toggleMenu(s, y), ["stop"]) }, [ ne(u, { class: "eli-tabela__acoes-toggle-icone", size: 18, "stroke-width": 2 }) ], 8, Sb) ], 2) ])) : ve("", !0) ], 2), e.temColunasInvisiveis && (($ = e.linhasExpandidas) != null && $[s]) ? (_(), E("tr", { key: 0, class: Xe(["eli-tabela__tr eli-tabela__tr--detalhes", [s % 2 === 1 ? "eli-tabela__tr--zebra" : void 0]]) }, [ j("td", { class: "eli-tabela__td eli-tabela__td--detalhes", colspan: (e.temColunasInvisiveis ? 1 : 0) + (e.mostrarSelecao ? 1 : 0) + e.colunas.length + (e.temAcoes ? 1 : 0) }, [ ne(c, { linha: l, colunasInvisiveis: e.colunasInvisiveis }, null, 8, ["linha", "colunasInvisiveis"]) ], 8, Ib) ], 2)) : ve("", !0) ], 64); }), 128)) ]); } const wb = /* @__PURE__ */ ae(bb, [["render", zb]]), xb = oe({ 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 = X(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 }; } }), Db = { class: "eli-tabela__busca" }, Ob = { class: "eli-tabela__busca-input-wrapper" }; function jb(e, n, r, o, t, i) { const a = ge("Search"); return _(), E("div", Db, [ j("div", Ob, [ Fa(j("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] = um((...u) => e.emitirBusca && e.emitirBusca(...u), ["enter"])) }, null, 544), [ [lm, e.texto] ]), j("button", { type: "button", class: "eli-tabela__busca-botao", "aria-label": "Buscar", title: "Buscar", onClick: n[2] || (n[2] = (...u) => e.emitirBusca && e.emitirBusca(...u)) }, [ ne(a, { class: "eli-tabela__busca-botao-icone", size: 16, "stroke-width": 2, "aria-hidden": "true" }) ]) ]) ]); } const Ub = /* @__PURE__ */ ae(xb, [["render", jb]]), Eb = oe({ name: "EliTabelaCabecalho", components: { EliTabelaCaixaDeBusca: Ub }, 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 = T(() => 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 }; } }), Tb = { class: "eli-tabela__cabecalho" }, Pb = { key: 0, class: "eli-tabela__busca-grupo" }, Nb = { key: 1, class: "eli-tabela__acoes-cabecalho" }, Ab = ["onClick"], Zb = { class: "eli-tabela__acoes-cabecalho-rotulo" }; function Cb(e, n, r, o, t, i) { const a = ge("EliTabelaCaixaDeBusca"); return _(), E("div", Tb, [ e.exibirBusca ? (_(), E("div", Pb, [ e.exibirBotaoColunas ? (_(), E("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 ")) : ve("", !0), e.exibirBotaoFiltroAvancado ? (_(), E("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 ")) : ve("", !0), ne(a, { modelo: e.valorBusca, onBuscar: e.emitBuscar }, null, 8, ["modelo", "onBuscar"]) ])) : ve("", !0), e.temAcoesCabecalho ? (_(), E("div", Nb, [ (_(!0), E(Oe, null, Ee(e.acoesCabecalho, (u, c) => (_(), E("button", { key: `${u.rotulo}-${c}`, type: "button", class: "eli-tabela__acoes-cabecalho-botao", style: En(u.cor ? { backgroundColor: u.cor, color: "#fff" } : void 0), onClick: (l) => u.acao(e.parametrosConsulta) }, [ u.icone ? (_(), de(ut(u.icone), { key: 0, class: "eli-tabela__acoes-cabecalho-icone", size: 16, "stroke-width": 2 })) : ve("", !0), j("span", Zb, Q(u.rotulo), 1) ], 12, Ab))), 128)) ])) : ve("", !0) ]); } const Mb = /* @__PURE__ */ ae(Eb, [["render", Cb]]), Fb = oe({ name: "EliTabelaDebug", props: { isDev: { type: Boolean, required: !0 }, menuAberto: { type: [Number, Object], default: null }, menuPopupPos: { type: Object, required: !0 } } }), Lb = { 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 Rb(e, n, r, o, t, i) { return e.isDev ? (_(), E("div", Lb, [ n[0] || (n[0] = j("div", null, [ j("b", null, "EliTabela debug") ], -1)), j("div", null, "menuAberto: " + Q(e.menuAberto), 1), j("div", null, "menuPos: top=" + Q(e.menuPopupPos.top) + ", left=" + Q(e.menuPopupPos.left), 1), mt(e.$slots, "default") ])) : ve("", !0); } const Bb = /* @__PURE__ */ ae(Fb, [["render", Rb]]), Jb = oe({ name: "EliTabelaEstados", props: { carregando: { type: Boolean, required: !0 }, erro: { type: [String, Object], default: null }, mensagemVazio: { type: String, required: !1, default: void 0 } } }), Vb = { key: 0, class: "eli-tabela eli-tabela--carregando", "aria-busy": "true" }, qb = { key: 1, class: "eli-tabela eli-tabela--erro", role: "alert" }, Yb = { class: "eli-tabela__erro-mensagem" }, Wb = { key: 2, class: "eli-tabela eli-tabela--vazio" }; function Kb(e, n, r, o, t, i) { return e.carregando ? (_(), E("div", Vb, " Carregando... ")) : e.erro ? (_(), E("div", qb, [ n[0] || (n[0] = j("div", { class: "eli-tabela__erro-titulo" }, "Erro", -1)), j("div", Yb, Q(e.erro), 1) ])) : (_(), E("div", Wb, Q(e.mensagemVazio ?? "Nenhum registro encontrado."), 1)); } const Gb = /* @__PURE__ */ ae(Jb, [["render", Kb]]), Hb = oe({ name: "EliTabelaHead", components: { ArrowUp: Na, 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, Object], default: null }, direcaoOrdenacao: { type: String, required: !0 }, mostrarSelecao: { type: Boolean, default: !1 }, todosSelecionados: { type: Boolean, default: !1 }, algunsSelecionados: { type: Boolean, default: !1 } }, emits: { alternarOrdenacao(e) { return typeof e == "string" && e.length > 0; }, "alternar-selecao-todos": () => !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: Na, ArrowDown: Pa, isOrdenavel: r, emitAlternarOrdenacao: o }; } }), Xb = { class: "eli-tabela__thead" }, Qb = { class: "eli-tabela__tr eli-tabela__tr--header" }, e_ = { key: 0, class: "eli-tabela__th eli-tabela__th--expander", scope: "col" }, t_ = { key: 1, class: "eli-tabela__th eli-tabela__th--selecao", scope: "col" }, n_ = ["checked", "indeterminate"], r_ = ["onClick"], i_ = { class: "eli-tabela__th-texto" }, o_ = { key: 1, class: "eli-tabela__th-label" }, a_ = { key: 2, class: "eli-tabela__th eli-tabela__th--acoes", scope: "col" }; function u_(e, n, r, o, t, i) { const a = ge("ArrowUp"); return _(), E("thead", Xb, [ j("tr", Qb, [ e.temColunasInvisiveis ? (_(), E("th", e_)) : ve("", !0), e.mostrarSelecao ? (_(), E("th", t_, [ j("input", { type: "checkbox", class: "eli-tabela__checkbox", checked: e.todosSelecionados, indeterminate: e.algunsSelecionados, onChange: n[0] || (n[0] = (u) => e.$emit("alternar-selecao-todos")), "aria-label": "Selecionar todos os itens da página" }, null, 40, n_) ])) : ve("", !0), (_(!0), E(Oe, null, Ee(e.colunas, (u, c) => (_(), E("th", { key: `th-${c}`, class: Xe(["eli-tabela__th", [e.isOrdenavel(u) ? "eli-tabela__th--ordenavel" : void 0]]), scope: "col" }, [ e.isOrdenavel(u) ? (_(), E("button", { key: 0, type: "button", class: Xe(["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)) }, [ j("span", i_, Q(u.rotulo), 1), e.colunaOrdenacao === String(u.coluna_ordem) ? (_(), de(ut(e.direcaoOrdenacao === "asc" ? e.ArrowUp : e.ArrowDown), { key: 0, class: "eli-tabela__th-icone", size: 16, "stroke-width": 2, "aria-hidden": "true" })) : (_(), de(a, { key: 1, class: "eli-tabela__th-icone eli-tabela__th-icone--oculto", size: 16, "stroke-width": 2, "aria-hidden": "true" })) ], 10, r_)) : (_(), E("span", o_, Q(u.rotulo), 1)) ], 2))), 128)), e.temAcoes ? (_(), E("th", a_, " Ações ")) : ve("", !0) ]) ]); } const l_ = /* @__PURE__ */ ae(Hb, [["render", u_]]), c_ = oe({ name: "EliTabelaMenuAcoes", props: { menuAberto: { type: [Number, Object], default: null }, 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: [Object, String, Number, Array], default: null } }, emits: { // biome-ignore lint/suspicious/noExplicitAny: dynamic typing needed executar(e) { return e !== null && typeof e == "object"; } }, setup(e, { emit: n }) { const r = X(null), o = T(() => e.acoes.length > 0); function t(i) { e.linha && n("executar", { acao: i.acao, linha: e.linha }); } return { menuEl: r, possuiAcoes: o, emitExecutar: t }; } }), s_ = { class: "eli-teleport-container" }, d_ = ["id", "aria-labelledby"], f_ = ["aria-label", "title", "onClick"], m_ = { class: "eli-tabela__acoes-item-texto" }; function v_(e, n, r, o, t, i) { return _(), E("div", s_, [ (_(), de(La, { to: "body" }, [ e.menuAberto !== null && e.possuiAcoes ? (_(), E("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: En({ position: "fixed", top: `${e.posicao.top}px`, left: `${e.posicao.left}px`, zIndex: 999999 }) }, [ (_(!0), E(Oe, null, Ee(e.acoes, (a) => (_(), E("li", { key: `acao-${e.menuAberto}-${a.indice}`, class: "eli-tabela__acoes-item", role: "none" }, [ j("button", { type: "button", class: "eli-tabela__acoes-item-botao", style: En({ color: a.acao.cor }), role: "menuitem", "aria-label": a.acao.rotulo, title: a.acao.rotulo, onClick: _e((u) => e.emitExecutar(a), ["stop"]) }, [ (_(), de(ut(a.acao.icone), { class: "eli-tabela__acoes-item-icone", size: 16, "stroke-width": 2 })), j("span", m_, Q(a.acao.rotulo), 1) ], 12, f_) ]))), 128)) ], 12, d_)) : ve("", !0) ])) ]); } const p_ = /* @__PURE__ */ ae(c_, [["render", v_]]), g_ = oe({ 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 = X([]), o = X([]), t = X(null); function i() { var B, A; const f = e.rotulosColunas, m = (((B = e.configInicial.visiveis) == null ? void 0 : B.length) ?? 0) > 0 || (((A = e.configInicial.invisiveis) == null ? void 0 : A.length) ?? 0) > 0, g = new Set( e.colunas.filter((S) => S.visivel === !1).map((S) => S.rotulo) ), v = m ? new Set(e.configInicial.invisiveis ?? []) : g, $ = f.filter((S) => !v.has(S)), y = e.configInicial.visiveis ?? [], w = new Set($), L = []; for (const S of y) w.has(S) && L.push(S); for (const S of $) L.includes(S) || L.push(S); r.value = L, o.value = f.filter((S) => v.has(S)); } Be( () => [ e.aberto, e.rotulosColunas, e.configInicial, e.colunas ], () => { e.aberto && i(); }, { deep: !0, immediate: !0 } ); function a() { n("fechar"); } function u() { n("salvar", { visiveis: [...r.value], invisiveis: [...o.value] }); } function c(f, m) { t.value = m, f.dataTransfer && (f.dataTransfer.setData("text/plain", m), f.dataTransfer.effectAllowed = "move"); } function l() { t.value = null; } function s(f, m) { const g = t.value; if (!g || g === f) return; const v = r.value.indexOf(g), $ = o.value.indexOf(g), y = v >= 0 ? "visiveis" : $ >= 0 ? "invisiveis" : null; if (!y) return; const w = y === "visiveis" ? r.value : o.value, L = m === "visiveis" ? r.value : o.value, B = w.indexOf(g), A = L.indexOf(f); w.splice(B, 1), L.splice(A, 0, g); } function d(f) { const m = t.value; if (!m) return; const g = f === "visiveis" ? r.value : o.value; if (g[g.length - 1] === m) return; const v = r.value.indexOf(m), $ = o.value.indexOf(m); v >= 0 && r.value.splice(v, 1), $ >= 0 && o.value.splice($, 1), g.push(m); } return { visiveisLocal: r, invisiveisLocal: o, itemSendoArrastado: t, emitFechar: a, emitSalvar: u, onDragStart: c, onDragEnd: l, onDragOverItem: s, onDragOverLista: d }; } }), h_ = { class: "eli-tabela-modal-colunas__modal", role: "dialog", "aria-modal": "true", "aria-label": "Configurar colunas" }, $_ = { class: "eli-tabela-modal-colunas__header" }, b_ = { class: "eli-tabela-modal-colunas__conteudo" }, __ = { class: "eli-tabela-modal-colunas__coluna" }, y_ = ["onDragstart", "onDragover"], k_ = { class: "eli-tabela-modal-colunas__item-texto" }, S_ = { class: "eli-tabela-modal-colunas__coluna" }, I_ = ["onDragstart", "onDragover"], z_ = { class: "eli-tabela-modal-colunas__item-texto" }, w_ = { class: "eli-tabela-modal-colunas__footer" }; function x_(e, n, r, o, t, i) { return _(), de(La, { to: "body" }, [ e.aberto ? (_(), E("div", { key: 0, class: "eli-tabela-modal-colunas__overlay", role: "presentation", onClick: n[9] || (n[9] = _e((...a) => e.emitFechar && e.emitFechar(...a), ["self"])) }, [ j("div", h_, [ j("header", $_, [ n[10] || (n[10] = j("h3", { class: "eli-tabela-modal-colunas__titulo" }, "Colunas", -1)), j("button", { type: "button", class: "eli-tabela-modal-colunas__fechar", "aria-label": "Fechar", onClick: n[0] || (n[0] = (...a) => e.emitFechar && e.emitFechar(...a)) }, " × ") ]), j("div", b_, [ j("div", __, [ n[12] || (n[12] = j("div", { class: "eli-tabela-modal-colunas__coluna-titulo" }, "Visíveis", -1)), ne(Ko, { name: "list", tag: "div", class: "eli-tabela-modal-colunas__lista", onDragover: n[3] || (n[3] = _e((a) => e.onDragOverLista("visiveis"), ["prevent"])), onDrop: e.onDragEnd }, { default: he(() => [ (_(!0), E(Oe, null, Ee(e.visiveisLocal, (a) => (_(), E("div", { key: `vis-${a}`, class: Xe(["eli-tabela-modal-colunas__item", { "eli-tabela-modal-colunas__item--arrastando": e.itemSendoArrastado === a }]), draggable: "true", onDragstart: (u) => e.onDragStart(u, a), onDragend: n[1] || (n[1] = (...u) => e.onDragEnd && e.onDragEnd(...u)), onDragover: _e((u) => e.onDragOverItem(a, "visiveis"), ["stop", "prevent"]), onDrop: n[2] || (n[2] = _e((...u) => e.onDragEnd && e.onDragEnd(...u), ["stop", "prevent"])) }, [ n[11] || (n[11] = j("span", { class: "eli-tabela-modal-colunas__item-handle", "aria-hidden": "true" }, "⋮⋮", -1)), j("span", k_, Q(a), 1) ], 42, y_))), 128)) ]), _: 1 }, 8, ["onDrop"]) ]), j("div", S_, [ n[14] || (n[14] = j("div", { class: "eli-tabela-modal-colunas__coluna-titulo" }, "Invisíveis", -1)), ne(Ko, { name: "list", tag: "div", class: "eli-tabela-modal-colunas__lista", onDragover: n[6] || (n[6] = _e((a) => e.onDragOverLista("invisiveis"), ["prevent"])), onDrop: e.onDragEnd }, { default: he(() => [ (_(!0), E(Oe, null, Ee(e.invisiveisLocal, (a) => (_(), E("div", { key: `inv-${a}`, class: Xe(["eli-tabela-modal-colunas__item", { "eli-tabela-modal-colunas__item--arrastando": e.itemSendoArrastado === a }]), draggable: "true", onDragstart: (u) => e.onDragStart(u, a), onDragend: n[4] || (n[4] = (...u) => e.onDragEnd && e.onDragEnd(...u)), onDragover: _e((u) => e.onDragOverItem(a, "invisiveis"), ["stop", "prevent"]), onDrop: n[5] || (n[5] = _e((...u) => e.onDragEnd && e.onDragEnd(...u), ["stop", "prevent"])) }, [ n[13] || (n[13] = j("span", { class: "eli-tabela-modal-colunas__item-handle", "aria-hidden": "true" }, "⋮⋮", -1)), j("span", z_, Q(a), 1) ], 42, I_))), 128)) ]), _: 1 }, 8, ["onDrop"]) ]) ]), j("footer", w_, [ j("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 "), j("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 ") ]) ]) ])) : ve("", !0) ]); } const D_ = /* @__PURE__ */ ae(g_, [["render", x_]]); function O_(e) { return e.rotulo; } const j_ = oe({ name: "EliTabelaModalFiltroAvancado", props: { aberto: { type: Boolean, required: !0 }, filtrosBase: { // biome-ignore lint/suspicious/noExplicitAny: generic component 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 = X([]), o = X(""), t = T( () => (e.filtrosBase ?? []).map((v) => String(v.chave)) ), i = T(() => { const v = new Set(r.value.map(($) => String($.chave))); return (e.filtrosBase ?? []).filter( ($) => !v.has(String($.chave)) ); }); function a(v) { const $ = v == null ? void 0 : v[0]; return $ === "numero" ? Vf : $ === "dataHora" ? Jf : Lo; } function u(v) { return (v == null ? void 0 : v[1]) ?? { rotulo: "" }; } function c(v) { return (v == null ? void 0 : v[0]) === "numero" ? null : ""; } function l() { const v = e.filtrosBase ?? [], $ = Array.isArray(e.modelo) ? e.modelo : []; r.value = $.map((y) => { const w = v.find((S) => String(S.chave) === String(y.chave)) ?? v[0]; if (!w) return null; const L = w.entrada ?? y.entrada, B = String(w.chave ?? y.chave), A = y.valor ?? c(L); return { chave: B, entrada: L, valor: A }; }).filter(Boolean), r.value = r.value.filter( (y) => t.value.includes(String(y.chave)) ); } Be( () => [e.aberto, e.filtrosBase, e.modelo], () => { e.aberto && l(); }, { deep: !0, immediate: !0 } ); function s() { if (!o.value) return; const v = (e.filtrosBase ?? []).find( ($) => String($.chave) === String(o.value) ); v && (r.value.some(($) => String($.chave) === String(v.chave)) || (r.value.push({ chave: String(v.chave), entrada: v.entrada, valor: c(v.entrada) }), o.value = "")); } function d(v) { r.value.splice(v, 1); } function f() { n("fechar"); } function m() { n("limpar"); } function g() { n( "salvar", r.value.map((v) => ({ chave: v.chave, valor: v.valor })) ); } return { linhas: r, opcoesParaAdicionar: i, chaveParaAdicionar: o, componenteEntrada: a, opcoesEntrada: u, adicionar: s, remover: d, emitFechar: f, emitSalvar: g, emitLimpar: m, rotuloDoFiltro: O_ }; } }), U_ = { class: "eli-tabela-modal-filtro__modal", role: "dialog", "aria-modal": "true", "aria-label": "Filtro avançado" }, E_ = { class: "eli-tabela-modal-filtro__header" }, T_ = { class: "eli-tabela-modal-filtro__conteudo" }, P_ = { key: 0, class: "eli-tabela-modal-filtro__vazio" }, N_ = { key: 1, class: "eli-tabela-modal-filtro__lista" }, A_ = { class: "eli-tabela-modal-filtro__entrada" }, Z_ = ["onClick"], C_ = { class: "eli-tabela-modal-filtro__acoes" }, M_ = ["disabled"], F_ = ["value"], L_ = ["disabled"], R_ = { class: "eli-tabela-modal-filtro__footer" }; function B_(e, n, r, o, t, i) { return e.aberto ? (_(), E("div", { key: 0, class: "eli-tabela-modal-filtro__overlay", role: "presentation", onClick: n[6] || (n[6] = _e((...a) => e.emitFechar && e.emitFechar(...a), ["self"])) }, [ j("div", U_, [ j("header", E_, [ n[7] || (n[7] = j("h3", { class: "eli-tabela-modal-filtro__titulo" }, "Filtro avançado", -1)), j("button", { type: "button", class: "eli-tabela-modal-filtro__fechar", "aria-label": "Fechar", onClick: n[0] || (n[0] = (...a) => e.emitFechar && e.emitFechar(...a)) }, " × ") ]), j("div", T_, [ e.filtrosBase.length ? (_(), E("div", N_, [ (_(!0), E(Oe, null, Ee(e.linhas, (a, u) => (_(), E("div", { key: String(a.chave), class: "eli-tabela-modal-filtro__linha" }, [ j("div", A_, [ (_(), de(ut(e.componenteEntrada(a.entrada)), { value: a.valor, "onUpdate:value": (c) => a.valor = c, onInput: (c) => a.valor = c, opcoes: e.opcoesEntrada(a.entrada), density: "compact" }, null, 40, ["value", "onUpdate:value", "onInput", "opcoes"])) ]), j("button", { type: "button", class: "eli-tabela-modal-filtro__remover", title: "Remover", "aria-label": "Remover", onClick: (c) => e.remover(u) }, " × ", 8, Z_) ]))), 128)) ])) : (_(), E("div", P_, " Nenhum filtro configurado na tabela. ")), j("div", C_, [ Fa(j("select", { "onUpdate:modelValue": n[1] || (n[1] = (a) => e.chaveParaAdicionar = a), class: "eli-tabela-modal-filtro__select", disabled: !e.opcoesParaAdicionar.length }, [ n[8] || (n[8] = j("option", { disabled: "", value: "" }, "Selecione um filtro…", -1)), (_(!0), E(Oe, null, Ee(e.opcoesParaAdicionar, (a) => (_(), E("option", { key: String(a.chave), value: String(a.chave) }, Q(e.rotuloDoFiltro(a)), 9, F_))), 128)) ], 8, M_), [ [cm, e.chaveParaAdicionar] ]), j("button", { type: "button", class: "eli-tabela-modal-filtro__botao", onClick: n[2] || (n[2] = (...a) => e.adicionar && e.adicionar(...a)), disabled: !e.chaveParaAdicionar }, " Adicionar ", 8, L_) ]) ]), j("footer", R_, [ j("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 "), j("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 "), j("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 ") ]) ]) ])) : ve("", !0); } const J_ = /* @__PURE__ */ ae(j_, [["render", B_]]), V_ = oe({ 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 = T(() => { const l = e.maximoBotoes; return typeof l == "number" && l >= 5 ? Math.floor(l) : 7; }), o = T(() => { const l = e.totalPaginas, s = e.pagina, d = r.value, f = [], m = (w) => { f.push({ label: String(w), pagina: w, ativo: w === s }); }, g = () => { f.push({ label: "…", ehEllipsis: !0 }); }; if (l <= d) { for (let w = 1; w <= l; w += 1) m(w); return f; } const v = Math.max(3, d - 2); let $ = Math.max(2, s - Math.floor(v / 2)), y = $ + v - 1; y >= l && (y = l - 1, $ = y - v + 1), m(1), $ > 2 && g(); for (let w = $; w <= y; w += 1) m(w); return y < l - 1 && g(), m(l), f; }); function t(l) { if (!l) return; const s = Math.min(Math.max(1, l), e.totalPaginas); s !== e.pagina && n("alterar", s); } const i = T(() => e.pagina <= 1), a = T( () => e.pagina >= e.totalPaginas ), u = T(() => e.pagina), c = T(() => e.totalPaginas); return { botoes: o, irParaPagina: t, anteriorDesabilitado: i, proximaDesabilitada: a, paginaAtual: u, totalPaginasExibidas: c }; } }), q_ = { class: "eli-tabela__rodape" }, Y_ = { key: 0, class: "eli-tabela__acoes-inferiores", style: { "margin-right": "auto" } }, W_ = ["onClick"], K_ = { class: "eli-tabela__acoes-cabecalho-rotulo" }, G_ = { key: 1, class: "eli-tabela__paginacao", role: "navigation", "aria-label": "Paginação de resultados" }, H_ = ["disabled"], X_ = { key: 0, class: "eli-tabela__pagina-ellipsis", "aria-hidden": "true" }, Q_ = ["disabled", "aria-current", "aria-label", "onClick"], ey = ["disabled"]; function ty(e, n, r, o, t, i) { return _(), E("div", q_, [ e.acoes.length > 0 ? (_(), E("div", Y_, [ (_(!0), E(Oe, null, Ee(e.acoes, (a, u) => (_(), E("button", { key: `${a.rotulo}-${u}`, type: "button", class: "eli-tabela__acao-inferior", style: En(a.cor ? { borderColor: a.cor, color: a.cor } : void 0), onClick: (c) => a.acao(e.parametrosConsulta) }, [ a.icone ? (_(), de(ut(a.icone), { key: 0, class: "eli-tabela__acoes-cabecalho-icone", size: 16, "stroke-width": 2 })) : ve("", !0), j("span", K_, Q(a.rotulo), 1) ], 12, W_))), 128)) ])) : ve("", !0), e.totalPaginasExibidas > 1 ? (_(), E("nav", G_, [ j("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, H_), (_(!0), E(Oe, null, Ee(e.botoes, (a, u) => (_(), E(Oe, { key: `${a.label}-${u}` }, [ a.ehEllipsis ? (_(), E("span", X_, Q(a.label), 1)) : (_(), E("button", { key: 1, type: "button", class: Xe(["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) }, Q(a.label), 11, Q_)) ], 64))), 128)), j("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, ey) ])) : ve("", !0) ]); } const ny = /* @__PURE__ */ ae(V_, [["render", ty]]); function Ro(e) { return `eli_tabela:${e}:filtro_avancado`; } function Ca(e) { try { const n = localStorage.getItem(Ro(e)); if (!n) return []; const r = JSON.parse(n); return Array.isArray(r) ? r : []; } catch { return []; } } function ry(e, n) { try { localStorage.setItem(Ro(e), JSON.stringify(n ?? [])); } catch { } } function iy(e) { try { localStorage.removeItem(Ro(e)); } catch { } } const oy = oe({ name: "EliTabela", inheritAttrs: !1, components: { EliTabelaCabecalho: Mb, EliTabelaEstados: Gb, EliTabelaDebug: Bb, EliTabelaHead: l_, EliTabelaBody: wb, EliTabelaMenuAcoes: p_, EliTabelaPaginacao: ny, EliTabelaModalColunas: D_, EliTabelaModalFiltroAvancado: J_ }, props: { /** Configuração principal da tabela (colunas, consulta e ações) */ tabela: { // biome-ignore lint/suspicious/noExplicitAny: dynamic table type: Object, required: !0 }, /** Array de itens selecionados (v-model:selecionados) */ selecionados: { type: Array, default: () => [] } }, emits: ["update:selecionados"], setup(e, { emit: n }) { const o = X(!1), t = X(null), i = X([]), a = X(0), u = X([]), c = X(null), l = X( null ), s = X({ top: 0, left: 0 }), d = X(""), f = X(1), m = X(null), g = X("asc"), v = X(!1), $ = X( // biome-ignore lint/suspicious/noExplicitAny: dynamic load Ca(e.tabela.nome) ); function y() { v.value = !0; } function w() { v.value = !1; } function L() { $.value = [], iy(e.tabela.nome), v.value = !1, d.value = "", f.value !== 1 ? f.value = 1 : Le(); } function B(z) { $.value = z ?? [], ry(e.tabela.nome, z ?? []), v.value = !1, d.value = "", f.value !== 1 ? f.value = 1 : Le(); } const A = T(() => { const z = e.tabela.filtroAvancado ?? []; return ($.value ?? []).filter((J) => J && J.chave !== void 0).map((J) => { const W = z.find((G) => String(G.chave) === String(J.chave)); return W ? W.filtro(J.valor) : null; }).filter(Boolean); }), S = T(() => e.tabela), I = T(() => !!e.tabela.mostrar_selecao), k = T( () => e.tabela.chave_selecao ); function R(z) { return k.value && z && typeof z == "object" ? z[k.value] : z; } function M(z) { const J = R(z); return k.value ? e.selecionados.some((W) => R(W) === J) : e.selecionados.includes(z); } function Z(z) { const J = [...e.selecionados], W = R(z); let G = -1; k.value ? G = J.findIndex((ce) => R(ce) === W) : G = J.indexOf(z), G === -1 ? J.push(z) : J.splice(G, 1), n("update:selecionados", J); } const me = T(() => dt.value.length === 0 ? !1 : dt.value.every((z) => M(z))), be = T(() => dt.value.length === 0 ? !1 : dt.value.some((z) => M(z)) && !me.value); function N(z) { const J = z ?? !me.value; let W = [...e.selecionados]; if (J) for (const G of dt.value) M(G) || W.push(G); else { const G = dt.value.map(R); k.value ? W = W.filter( (ce) => !G.includes(R(ce)) ) : W = W.filter((ce) => !G.includes(ce)); } n("update:selecionados", W); } const U = T( () => !!e.tabela.mostrarCaixaDeBusca ), x = T( () => (e.tabela.acoesTabela ?? []).filter((z) => z.posicao === "superior") ), P = T( () => (e.tabela.acoesTabela ?? []).filter((z) => z.posicao === "inferior") ), O = T(() => x.value.length > 0), q = T(() => P.value.length > 0), Y = T(() => { const z = Math.max(1, He.value), W = { offSet: (f.value - 1) * z, limit: z }, G = (d.value ?? "").trim(); if (G) W.texto_busca = G; else { const ce = A.value; ce.length && (W.filtros = ce); } return m.value && (W.coluna_ordem = m.value, W.direcao_ordem = g.value), { ...W, atualizarConsulta: async () => { await Le(); }, // biome-ignore lint/suspicious/noExplicitAny: dynamic list update editarLista: async (ce) => (i.value = ce, ce) }; }), ee = X(!1), te = X( Ua(e.tabela.nome) ), ie = X({}), $e = T( () => e.tabela.colunas.map((z) => z.rotulo) ), we = T(() => { var xe, je; const z = e.tabela.colunas, W = (((xe = te.value.visiveis) == null ? void 0 : xe.length) ?? 0) > 0 || (((je = te.value.invisiveis) == null ? void 0 : je.length) ?? 0) > 0 ? te.value.invisiveis ?? [] : z.filter((pe) => pe.visivel === !1).map((pe) => pe.rotulo), G = new Set(W), ce = z.filter((pe) => G.has(pe.rotulo)), Se = W, qe = /* @__PURE__ */ new Map(); for (const pe of ce) qe.has(pe.rotulo) || qe.set(pe.rotulo, pe); const Ae = []; for (const pe of Se) { const Re = qe.get(pe); Re && Ae.push(Re); } for (const pe of ce) Ae.includes(pe) || Ae.push(pe); return Ae; }), Ke = T( () => we.value.length > 0 ), Je = T(() => { var pe, Re; const z = e.tabela.colunas, J = $e.value, W = (((pe = te.value.visiveis) == null ? void 0 : pe.length) ?? 0) > 0 || (((Re = te.value.invisiveis) == null ? void 0 : Re.length) ?? 0) > 0, G = W ? te.value.invisiveis ?? [] : ( // biome-ignore lint/suspicious/noExplicitAny: dynamic column e.tabela.colunas.filter((se) => se.visivel === !1).map((se) => se.rotulo) ), ce = new Set(G), Se = J.filter( (se) => !ce.has(se) ), qe = new Set(Se), Ae = W ? te.value.visiveis ?? [] : [], xe = []; for (const se of Ae) qe.has(se) && xe.push(se); for (const se of Se) xe.includes(se) || xe.push(se); const je = /* @__PURE__ */ new Map(); for (const se of z) je.has(se.rotulo) || je.set(se.rotulo, se); return xe.map((se) => je.get(se)).filter(Boolean); }), ct = T(() => Je.value.length + (Jo.value ? 1 : 0) + (Ke.value ? 1 : 0)); function Ge() { ee.value = !0; } function ke() { ee.value = !1; } function Ve(z) { te.value = z, D$(e.tabela.nome, z), ee.value = !1, ie.value = {}; } function st(z) { const J = !!ie.value[z]; ie.value = { ...ie.value, [z]: !J }; } const He = T(() => { const z = e.tabela.registros_por_consulta; return typeof z == "number" && z > 0 ? Math.floor(z) : 10; }), Bo = T(() => { const z = He.value; if (!z || z <= 0) return 1; const J = a.value ?? 0; return J ? Math.max(1, Math.ceil(J / z)) : 1; }), dt = T(() => i.value ?? []), Gf = T(() => a.value ?? 0), Jo = T(() => (e.tabela.acoesLinha ?? []).length > 0), Hf = T( () => (e.tabela.filtroAvancado ?? []).length > 0 ); let Nt = 0; function Vo(z) { var Ae, xe, je, pe, Re, se; const J = z.getBoundingClientRect(), W = 8, G = ((je = (xe = (Ae = l.value) == null ? void 0 : Ae.menuEl) == null ? void 0 : xe.value) == null ? void 0 : je.offsetHeight) ?? 0, ce = ((se = (Re = (pe = l.value) == null ? void 0 : pe.menuEl) == null ? void 0 : Re.value) == null ? void 0 : se.offsetWidth) ?? 180; let Se = J.bottom + W; const qe = J.right - ce; G && Se + G > window.innerHeight - W && (Se = J.top - W - G), s.value = { top: Math.max(W, Math.round(Se)), left: Math.max(W, Math.round(qe)) }; } function qo(z) { var W, G, ce; if (c.value === null) return; const J = z.target; (ce = (G = (W = l.value) == null ? void 0 : W.menuEl) == null ? void 0 : G.value) != null && ce.contains(J) || (c.value = null); } function Xf(z) { if (z) { if (m.value === z) { g.value = g.value === "asc" ? "desc" : "asc", Le(); return; } m.value = z, g.value = "asc", f.value !== 1 ? f.value = 1 : Le(); } } function Qf(z) { d.value !== z && (d.value = z, f.value !== 1 ? f.value = 1 : Le()); } function em(z) { const J = Math.min(Math.max(1, z), Bo.value); J !== f.value && (f.value = J); } function Yo(z) { const J = e.tabela.acoesLinha ?? [], W = u.value[z] ?? []; return J.map((G, ce) => { const Se = G.exibir === void 0 ? !0 : typeof G.exibir == "boolean" ? G.exibir : !1; return { acao: G, indice: ce, visivel: W[ce] ?? Se }; }).filter((G) => G.visivel); } function Wo(z) { return Yo(z).length > 0; } function tm(z, J) { if (!Wo(z)) return; if (c.value === z) { c.value = null; return; } c.value = z; const W = (J == null ? void 0 : J.currentTarget) ?? null; W && (Vo(W), requestAnimationFrame(() => Vo(W))); } async function Le() { var J, W; const z = ++Nt; o.value = !0, t.value = null; try { u.value = [], c.value = null, ie.value = {}; const G = Math.max(1, He.value), Se = { offSet: (f.value - 1) * G, limit: G }, qe = (d.value ?? "").trim(); if (qe) Se.texto_busca = qe; else { const nt = A.value; nt.length && (Se.filtros = nt); } m.value && (Se.coluna_ordem = m.value, Se.direcao_ordem = g.value); const Ae = e.tabela, xe = await Ae.consulta(Se); if (z !== Nt) return; if (xe.cod !== qf.sucesso) { i.value = [], a.value = 0, t.value = xe.mensagem; return; } const je = ((J = xe.valor) == null ? void 0 : J.valores) ?? [], pe = ((W = xe.valor) == null ? void 0 : W.quantidade) ?? je.length; i.value = je, a.value = Number(pe) || 0; const Re = Math.max( 1, Math.ceil((a.value || 0) / G) ); f.value > Re && (f.value = Re); const se = Ae.acoesLinha ?? []; if (!se.length) { u.value = []; return; } const nm = je.map( () => se.map((nt) => nt.exibir === void 0 ? !0 : typeof nt.exibir == "boolean" ? nt.exibir : !1) ); u.value = nm; const rm = await Promise.all( je.map( async (nt) => Promise.all( se.map(async (hn) => { if (hn.exibir === void 0) return !0; if (typeof hn.exibir == "boolean") return hn.exibir; try { const im = hn.exibir(nt); return !!await Promise.resolve(im); } catch { return !1; } }) ) ) ); z === Nt && (u.value = rm); } catch (G) { if (console.error("[EliTabela] Erro capturado em carregar():", G), z !== Nt) return; i.value = [], a.value = 0, t.value = G instanceof Error ? G.message : "Erro ao carregar dados."; } finally { z === Nt && (o.value = !1); } } return Ma(() => { document.addEventListener("click", qo), Le(); }), sm(() => { document.removeEventListener("click", qo); }), Be( () => e.tabela.mostrarCaixaDeBusca, (z) => { !z && d.value && (d.value = "", f.value !== 1 ? f.value = 1 : Le()); } ), Be(f, (z, J) => { z !== J && Le(); }), Be( () => e.tabela, () => { c.value = null, m.value = null, g.value = "asc", d.value = "", ee.value = !1, v.value = !1, te.value = Ua(e.tabela.nome), $.value = Ca(e.tabela.nome), ie.value = {}, f.value !== 1 ? f.value = 1 : Le(); } ), Be( () => e.tabela.registros_por_consulta, () => { f.value !== 1 ? f.value = 1 : Le(); } ), Be(i, () => { c.value = null, ie.value = {}; }), { // state isDev: !1, tabela: S, carregando: o, erro: t, linhas: i, linhasPaginadas: dt, filtrosAvancadosAtivos: A, quantidadeFiltrada: Gf, quantidade: a, menuAberto: c, valorBusca: d, paginaAtual: f, colunaOrdenacao: m, direcaoOrdenacao: g, totalPaginas: Bo, registrosPorConsulta: He, // computed exibirBusca: U, exibirFiltroAvancado: Hf, acoesSuperiores: x, temAcoesSuperiores: O, acoesInferiores: P, temAcoesInferiores: q, parametrosConsultaAtuais: Y, temAcoes: Jo, totalColunas: ct, colunasEfetivas: Je, rotulosColunas: $e, modalColunasAberto: ee, configColunas: te, temColunasInvisiveis: Ke, colunasInvisiveisEfetivas: we, linhasExpandidas: ie, // selecao mostrarSelecao: I, isSelecionado: M, alternarSelecao: Z, todosSelecionados: me, algunsSelecionados: be, alternarSelecaoTodos: N, abrirModalColunas: Ge, abrirModalFiltro: y, fecharModalColunas: ke, salvarModalColunas: Ve, modalFiltroAberto: v, filtrosUi: $, salvarFiltrosAvancados: B, limparFiltrosAvancados: L, fecharModalFiltro: w, alternarLinhaExpandida: st, // actions alternarOrdenacao: Xf, atualizarBusca: Qf, irParaPagina: em, acoesDisponiveisPorLinha: Yo, possuiAcoes: Wo, toggleMenu: tm, // popup menuPopup: l, menuPopupPos: s }; } }), ay = { class: "eli-tabela" }, uy = { class: "eli-tabela__table" }, ly = { key: 0 }, cy = ["colspan"]; function sy(e, n, r, o, t, i) { const a = ge("EliTabelaDebug"), u = ge("EliTabelaCabecalho"), c = ge("EliTabelaModalColunas"), l = ge("EliTabelaModalFiltroAvancado"), s = ge("EliTabelaHead"), d = ge("EliTabelaEstados"), f = ge("EliTabelaBody"), m = ge("EliTabelaMenuAcoes"), g = ge("EliTabelaPaginacao"); return _(), E("div", ay, [ ne(a, { isDev: e.isDev, menuAberto: e.menuAberto, menuPopupPos: e.menuPopupPos }, { default: he(() => [ j("div", null, "paginaAtual: " + Q(e.paginaAtual), 1), j("div", null, "limit: " + Q(e.registrosPorConsulta), 1), j("div", null, "texto_busca: " + Q((e.valorBusca || "").trim()), 1), j("div", null, "filtrosAvancadosAtivos: " + Q(JSON.stringify(e.filtrosAvancadosAtivos)), 1), j("div", null, "quantidadeTotal: " + Q(e.quantidade), 1) ]), _: 1 }, 8, ["isDev", "menuAberto", "menuPopupPos"]), e.exibirBusca || e.temAcoesSuperiores ? (_(), de(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"])) : ve("", !0), ne(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"]), ne(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"]), j("table", uy, [ ne(s, { colunas: e.colunasEfetivas, temAcoes: e.temAcoes, temColunasInvisiveis: e.temColunasInvisiveis, colunaOrdenacao: e.colunaOrdenacao, direcaoOrdenacao: e.direcaoOrdenacao, mostrarSelecao: e.mostrarSelecao, todosSelecionados: e.todosSelecionados, algunsSelecionados: e.algunsSelecionados, onAlternarOrdenacao: e.alternarOrdenacao, onAlternarSelecaoTodos: e.alternarSelecaoTodos }, null, 8, ["colunas", "temAcoes", "temColunasInvisiveis", "colunaOrdenacao", "direcaoOrdenacao", "mostrarSelecao", "todosSelecionados", "algunsSelecionados", "onAlternarOrdenacao", "onAlternarSelecaoTodos"]), e.carregando || e.erro || !e.linhas.length ? (_(), E("tbody", ly, [ j("tr", null, [ j("td", { colspan: e.totalColunas, style: { padding: "0" } }, [ ne(d, { carregando: e.carregando, erro: e.erro, mensagemVazio: e.tabela.mensagemVazio, style: { border: "none", "border-radius": "0" } }, null, 8, ["carregando", "erro", "mensagemVazio"]) ], 8, cy) ]) ])) : (_(), de(f, { 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, mostrarSelecao: e.mostrarSelecao, isSelecionado: e.isSelecionado, alternarSelecao: e.alternarSelecao }, null, 8, ["colunas", "colunasInvisiveis", "temColunasInvisiveis", "linhasExpandidas", "linhas", "temAcoes", "menuAberto", "possuiAcoes", "toggleMenu", "alternarLinhaExpandida", "mostrarSelecao", "isSelecionado", "alternarSelecao"])) ]), ne(m, { 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: v, linha: $ }) => { e.menuAberto = null, v.acao($); }) }, null, 8, ["menuAberto", "posicao", "acoes", "linha"]), e.totalPaginas > 1 && e.quantidadeFiltrada > 0 || e.temAcoesInferiores ? (_(), de(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"])) : ve("", !0) ]); } const dy = /* @__PURE__ */ ae(oy, [["render", sy]]), xy = (e, n) => [e, n], fy = oe({ name: "EliOlaMundo", components: { EliBotao: qa, EliBadge: Lr, EliEntradaTexto: Lo }, setup() { const e = X(""), n = X(""), r = X(""), o = X(""), t = X(""); return { nome: e, email: o, documento: t, telefone: r, cep: n }; } }), my = { class: "grid-example" }; function vy(e, n, r, o, t, i) { const a = ge("EliBadge"), u = ge("EliEntradaTexto"), c = ge("EliBotao"); return _(), de(bm, null, { default: he(() => [ ne(Ra, { class: "mx-auto", max_width: "400" }, { default: he(() => [ ne(Ba, null, { default: he(() => [ ne(a, { badge: "Novo", "offset-x": "-15", location: "right center" }, { default: he(() => [...n[5] || (n[5] = [ yn(" Olá Mundo! ", -1) ])]), _: 1 }) ]), _: 1 }), ne(Ja, null, { default: he(() => [ n[6] || (n[6] = yn(" Este é um componente de exemplo integrado com Vuetify. ", -1)), j("div", my, [ ne(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"]), ne(u, { value: e.telefone, "onUpdate:value": n[1] || (n[1] = (l) => e.telefone = l), opcoes: { rotulo: "Telefone", formato: "telefone" } }, null, 8, ["value"]), ne(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"]), ne(u, { value: e.documento, "onUpdate:value": n[3] || (n[3] = (l) => e.documento = l), opcoes: { rotulo: "CPF / CNPJ", formato: "cpfCnpj" } }, null, 8, ["value"]), ne(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 }), ne(Va, null, { default: he(() => [ ne(c, { color: "primary", variant: "elevated", block: "" }, { default: he(() => [...n[7] || (n[7] = [ yn(" Botão Vuetify ", -1) ])]), _: 1 }) ]), _: 1 }) ]), _: 1 }) ]), _: 1 }); } const py = /* @__PURE__ */ ae(fy, [["render", vy]]), Dy = { install(e) { e.component("EliOlaMundo", py), e.component("EliBotao", qa), e.component("EliBadge", Lr), e.component("EliCartao", Dm), e.component("EliTabela", dy), e.component("EliEntradaTexto", Lo), e.component("EliEntradaNumero", Vf), e.component("EliEntradaDataHora", Jf), e.component("EliEntradaParagrafo", p$), e.component("EliEntradaSelecao", $$); } }; export { Lr as EliBadge, qa as EliBotao, Dm as EliCartao, Jf as EliEntradaDataHora, Vf as EliEntradaNumero, p$ as EliEntradaParagrafo, $$ as EliEntradaSelecao, Lo as EliEntradaTexto, py as EliOlaMundo, dy as EliTabela, xy as celulaTabela, wy as criarFiltro26, Dy as default };