// Metro module 12111 (f12112). 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 c8343_2, error; let c8343_0 = r2; let c8343_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)) { c8343_0(r15, a0, key); } } } c8343_1(r15, a0); return r15; }; export default function default_1() { let c19554_0 = { string: { unit: "文字", verb: "である" }, file: { unit: "バイト", verb: "である" }, array: { unit: "要素", verb: "である" }, set: { unit: "要素", verb: "である" } }; let c19554_1 = { 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: "入力値" }; let c19554_2 = { nan: "NaN", number: "数値", array: "配列" }; return { localeError: (a0) => { let r68, r130; L56: { switch (a0.code) { case "invalid_type": let r173 = c19554_2[a0.expected]; if (r173 == null) { r173 = a0.expected; } const r179 = c8343_2.parsedType(a0.input); let r180 = c19554_2[r179]; if (r180 == null) { r180 = r179; } return /^[A-Z]/.test(a0.expected) ? `無効な入力: instanceof ${a0.expected}が期待されましたが、${r180}が入力されました` : `無効な入力: ${r173}が期待されましたが、${r180}が入力されました`; case "invalid_value": return a0.values.length === 1 ? `無効な入力: ${c8343_2.stringifyPrimitive(a0.values[0])}が期待されました` : `無効な選択: ${c8343_2.joinValues(a0.values, "、")}のいずれかである必要があります`; case "too_big": const r112 = a0.inclusive ? "以下である" : "より小さい"; let r115 = c19554_0[a0.origin]; if (r115 == null) { r115 = null; } let origin2 = a0.origin; if (r115) { if (origin2 == null) { origin2 = "値"; } const r133 = a0.maximum.toString(); let unit = r115.unit; if (unit == null) { unit = "要素"; } r130 = `大きすぎる値: ${origin2}は${r133}${unit}${r112}必要があります`; } else { r130 = `大きすぎる値: ${origin2 == null ? "値" : origin2}は${a0.maximum.toString()}${r112}必要があります`; } return r130; case "too_small": const r12 = a0.inclusive ? "以上である" : "より大きい"; let r96 = c19554_0[a0.origin]; if (r96 == null) { r96 = null; } const origin = a0.origin; const r10 = a0.minimum.toString(); return r96 ? `小さすぎる値: ${origin}は${r10}${r96.unit}${r12}必要があります` : `小さすぎる値: ${origin}は${r10}${r12}必要があります`; case "invalid_format": if (a0.format === "starts_with") { r68 = `無効な文字列: "${a0.prefix}"で始まる必要があります`; } else if (a0.format === "ends_with") { r68 = `無効な文字列: "${a0.suffix}"で終わる必要があります`; } else if (a0.format === "includes") { r68 = `無効な文字列: "${a0.includes}"を含む必要があります`; } else if (a0.format === "regex") { r68 = `無効な文字列: パターン${a0.pattern}に一致する必要があります`; } else { let r62 = c19554_1[a0.format]; if (r62 == null) { r62 = a0.format; } r68 = `無効な${r62}`; } return r68; case "not_multiple_of": return `無効な数値: ${a0.divisor}の倍数である必要があります`; case "unrecognized_keys": return `認識されていないキー${a0.keys.length > 1 ? "群" : ""}: ${c8343_2.joinValues(a0.keys, "、")}`; case "invalid_key": return `${a0.origin}内の無効なキー`; case "invalid_union": default: break L56; case "invalid_element": return `${a0.origin}内の無効な値`; } } return "無効な入力"; } }; }; c8343_2 = r5(_mergeDefs); error = () => {}; module.exports = exports.default;