// Metro module 12124 (f12125). import * as _mergeDefs from "./mergeDefs"; const r2 = (this ? this.__createBinding : this) || (Object.create ? function(a0, a1, a2, a3) { const r6 = a3 === void 0 ? a2 : a3; let r9 = Object.getOwnPropertyDescriptor(a1, a2); if (!(r9 ? !("get" in r9 ? !a1.__esModule : r9.writable || r9.configurable) : r9)) { r9 = { enumerable: true, get: function get() { return a1[a2]; } }; } Object.defineProperty(a0, r6, r9); } : function(a0, a1, a2, a3) { a0[a3 === void 0 ? a2 : a3] = a1[a2]; }); let c8356_2, error; let c8356_0 = r2; let c8356_1 = (this ? this.__setModuleDefault : this) || (Object.create ? function(a0, a1) { Object.defineProperty(a0, "default", { enumerable: true, value: a1 }); } : function(a0, a1) { a0.default = a1; }); const r5 = (this ? this.__importStar : this) || function(a0) { if (a0 && a0.__esModule) { return a0; } const r15 = {}; if (a0 != null) { for (const key in a0) { if (key !== "default" && Object.prototype.hasOwnProperty.call(a0, key)) { c8356_0(r15, a0, key); } } } c8356_1(r15, a0); return r15; }; export default function default_1() { let c19578_0 = { string: { unit: "caracteres", verb: "ter" }, file: { unit: "bytes", verb: "ter" }, array: { unit: "itens", verb: "ter" }, set: { unit: "itens", verb: "ter" } }; let c19578_1 = { 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" }; let c19578_2 = { nan: "NaN", number: "número", null: "nulo" }; return { localeError: (a0) => { let r67, r133; switch (a0.code) { case "invalid_type": let r174 = c19578_2[a0.expected]; if (r174 == null) { r174 = a0.expected; } const r180 = c8356_2.parsedType(a0.input); let r181 = c19578_2[r180]; if (r181 == null) { r181 = r180; } return /^[A-Z]/.test(a0.expected) ? `Tipo inválido: esperado instanceof ${a0.expected}, recebido ${r181}` : `Tipo inválido: esperado ${r174}, recebido ${r181}`; case "invalid_value": return a0.values.length === 1 ? `Entrada inválida: esperado ${c8356_2.stringifyPrimitive(a0.values[0])}` : `Opção inválida: esperada uma das ${c8356_2.joinValues(a0.values, "|")}`; case "too_big": const r116 = a0.inclusive ? "<=" : "<"; let r119 = c19578_0[a0.origin]; if (r119 == null) { r119 = null; } let origin2 = a0.origin; if (r119) { if (origin2 == null) { origin2 = "valor"; } const r136 = a0.maximum.toString(); let unit = r119.unit; if (unit == null) { unit = "elementos"; } r133 = `Muito grande: esperado que ${origin2} tivesse ${r116}${r136} ${unit}`; } else { r133 = `Muito grande: esperado que ${origin2 == null ? "valor" : origin2} fosse ${r116}${a0.maximum.toString()}`; } return r133; case "too_small": const r12 = a0.inclusive ? ">=" : ">"; let r93 = c19578_0[a0.origin]; if (r93 == null) { r93 = null; } const origin = a0.origin; const r97 = a0.minimum.toString(); return r93 ? `Muito pequeno: esperado que ${origin} tivesse ${r12}${r97} ${r93.unit}` : `Muito pequeno: esperado que ${origin} fosse ${r12}${r97}`; case "invalid_format": if (a0.format === "starts_with") { r67 = `Texto inválido: deve começar com "${a0.prefix}"`; } else if (a0.format === "ends_with") { r67 = `Texto inválido: deve terminar com "${a0.suffix}"`; } else if (a0.format === "includes") { r67 = `Texto inválido: deve incluir "${a0.includes}"`; } else if (a0.format === "regex") { r67 = `Texto inválido: deve corresponder ao padrão ${a0.pattern}`; } else { let r60 = c19578_1[a0.format]; if (r60 == null) { r60 = a0.format; } r67 = `${r60} inválido`; } return r67; case "not_multiple_of": return `Número inválido: deve ser múltiplo de ${a0.divisor}`; case "unrecognized_keys": const r1 = a0.keys.length > 1; let r10 = ""; const r9 = r1 ? "s" : ""; if (a0.keys.length > 1) { r10 = "s"; } return `Chave${r9} desconhecida${r10}: ${c8356_2.joinValues(a0.keys, ", ")}`; case "invalid_key": return `Chave inválida em ${a0.origin}`; case "invalid_union": return "Entrada inválida"; case "invalid_element": return `Valor inválido em ${a0.origin}`; default: return "Campo inválido"; } } }; }; c8356_2 = r5(_mergeDefs); error = () => {}; module.exports = exports.default;