@rpgjs/client 5.0.0-beta.16 → 5.0.0-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/Game/Map.js +3 -3
  3. package/dist/Gui/Gui.js +1 -1
  4. package/dist/RpgClientEngine.js +1 -1
  5. package/dist/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/decorate.js +1 -1
  6. package/dist/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/decorateMetadata.js +1 -1
  7. package/dist/_virtual/_rolldown/runtime.js +13 -0
  8. package/dist/components/animations/animation.ce.js +4 -2
  9. package/dist/components/animations/animation.ce.js.map +1 -1
  10. package/dist/components/animations/fx.ce.js +4 -2
  11. package/dist/components/animations/fx.ce.js.map +1 -1
  12. package/dist/components/animations/hit.ce.js +6 -4
  13. package/dist/components/animations/hit.ce.js.map +1 -1
  14. package/dist/components/character.ce.js +6 -3
  15. package/dist/components/character.ce.js.map +1 -1
  16. package/dist/components/dynamics/bar.ce.js +4 -2
  17. package/dist/components/dynamics/bar.ce.js.map +1 -1
  18. package/dist/components/dynamics/image.ce.js +4 -2
  19. package/dist/components/dynamics/image.ce.js.map +1 -1
  20. package/dist/components/dynamics/shape.ce.js +4 -2
  21. package/dist/components/dynamics/shape.ce.js.map +1 -1
  22. package/dist/components/dynamics/text.ce.js +4 -2
  23. package/dist/components/dynamics/text.ce.js.map +1 -1
  24. package/dist/components/gui/box.ce.js +4 -2
  25. package/dist/components/gui/box.ce.js.map +1 -1
  26. package/dist/components/gui/dialogbox/index.ce.js +2 -1
  27. package/dist/components/gui/dialogbox/index.ce.js.map +1 -1
  28. package/dist/components/gui/gameover.ce.js +2 -1
  29. package/dist/components/gui/gameover.ce.js.map +1 -1
  30. package/dist/components/gui/hud/hud.ce.js +2 -1
  31. package/dist/components/gui/hud/hud.ce.js.map +1 -1
  32. package/dist/components/gui/menu/equip-menu.ce.js +2 -1
  33. package/dist/components/gui/menu/equip-menu.ce.js.map +1 -1
  34. package/dist/components/gui/menu/exit-menu.ce.js +2 -1
  35. package/dist/components/gui/menu/exit-menu.ce.js.map +1 -1
  36. package/dist/components/gui/menu/items-menu.ce.js +2 -1
  37. package/dist/components/gui/menu/items-menu.ce.js.map +1 -1
  38. package/dist/components/gui/menu/main-menu.ce.js +2 -1
  39. package/dist/components/gui/menu/main-menu.ce.js.map +1 -1
  40. package/dist/components/gui/menu/options-menu.ce.js +2 -1
  41. package/dist/components/gui/menu/options-menu.ce.js.map +1 -1
  42. package/dist/components/gui/menu/skills-menu.ce.js +2 -1
  43. package/dist/components/gui/menu/skills-menu.ce.js.map +1 -1
  44. package/dist/components/gui/mobile/mobile.ce.js +2 -1
  45. package/dist/components/gui/mobile/mobile.ce.js.map +1 -1
  46. package/dist/components/gui/notification/notification.ce.js +2 -1
  47. package/dist/components/gui/notification/notification.ce.js.map +1 -1
  48. package/dist/components/gui/save-load.ce.js +2 -1
  49. package/dist/components/gui/save-load.ce.js.map +1 -1
  50. package/dist/components/gui/shop/shop.ce.js +2 -1
  51. package/dist/components/gui/shop/shop.ce.js.map +1 -1
  52. package/dist/components/gui/title-screen.ce.js +2 -1
  53. package/dist/components/gui/title-screen.ce.js.map +1 -1
  54. package/dist/components/interaction-components.ce.js +4 -2
  55. package/dist/components/interaction-components.ce.js.map +1 -1
  56. package/dist/components/player-components.ce.js +4 -2
  57. package/dist/components/player-components.ce.js.map +1 -1
  58. package/dist/components/prebuilt/hp-bar.ce.js +5 -3
  59. package/dist/components/prebuilt/hp-bar.ce.js.map +1 -1
  60. package/dist/components/prebuilt/light-halo.ce.js +4 -2
  61. package/dist/components/prebuilt/light-halo.ce.js.map +1 -1
  62. package/dist/components/scenes/canvas.ce.js +2 -1
  63. package/dist/components/scenes/canvas.ce.js.map +1 -1
  64. package/dist/components/scenes/draw-map.ce.js +4 -2
  65. package/dist/components/scenes/draw-map.ce.js.map +1 -1
  66. package/dist/components/scenes/event-layer.ce.js +2 -1
  67. package/dist/components/scenes/event-layer.ce.js.map +1 -1
  68. package/dist/core/inject.js +1 -1
  69. package/dist/core/setup.js +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/module.js +1 -1
  72. package/dist/node_modules/.pnpm/{@signe_di@3.0.1 → @signe_di@3.1.0}/node_modules/@signe/di/dist/index.js +1 -1
  73. package/dist/node_modules/.pnpm/{@signe_di@3.0.1 → @signe_di@3.1.0}/node_modules/@signe/di/dist/index.js.map +1 -1
  74. package/dist/node_modules/.pnpm/{@signe_reactive@3.0.1 → @signe_reactive@3.1.0}/node_modules/@signe/reactive/dist/index.js +1 -1
  75. package/dist/node_modules/.pnpm/{@signe_reactive@3.0.1 → @signe_reactive@3.1.0}/node_modules/@signe/reactive/dist/index.js.map +1 -1
  76. package/dist/node_modules/.pnpm/{@signe_room@3.0.1 → @signe_room@3.1.0_react@19.2.7}/node_modules/@signe/room/dist/chunk-EUXUH3YW.js +1 -1
  77. package/dist/node_modules/.pnpm/@signe_room@3.1.0_react@19.2.7/node_modules/@signe/room/dist/chunk-EUXUH3YW.js.map +1 -0
  78. package/dist/node_modules/.pnpm/{@signe_room@3.0.1 → @signe_room@3.1.0_react@19.2.7}/node_modules/@signe/room/dist/index.js +33 -31
  79. package/dist/node_modules/.pnpm/@signe_room@3.1.0_react@19.2.7/node_modules/@signe/room/dist/index.js.map +1 -0
  80. package/dist/node_modules/.pnpm/{@signe_sync@3.0.1 → @signe_sync@3.1.0_react@19.2.7}/node_modules/@signe/sync/dist/client/index.js +2 -3
  81. package/dist/node_modules/.pnpm/@signe_sync@3.1.0_react@19.2.7/node_modules/@signe/sync/dist/client/index.js.map +1 -0
  82. package/dist/node_modules/.pnpm/{@signe_sync@3.0.1 → @signe_sync@3.1.0_react@19.2.7}/node_modules/@signe/sync/dist/index.js +2 -2
  83. package/dist/node_modules/.pnpm/@signe_sync@3.1.0_react@19.2.7/node_modules/@signe/sync/dist/index.js.map +1 -0
  84. package/dist/node_modules/.pnpm/{partysocket@1.1.3/node_modules/partysocket/dist/chunk-HAC622V3.js → partysocket@1.2.0_react@19.2.7/node_modules/partysocket/dist/index.js} +30 -17
  85. package/dist/node_modules/.pnpm/partysocket@1.2.0_react@19.2.7/node_modules/partysocket/dist/index.js.map +1 -0
  86. package/dist/node_modules/.pnpm/{partysocket@1.1.3/node_modules/partysocket/dist/chunk-S74YV6PU.js → partysocket@1.2.0_react@19.2.7/node_modules/partysocket/dist/ws.js} +65 -34
  87. package/dist/node_modules/.pnpm/partysocket@1.2.0_react@19.2.7/node_modules/partysocket/dist/ws.js.map +1 -0
  88. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js +13 -0
  89. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js.map +1 -0
  90. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js +106 -0
  91. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js.map +1 -0
  92. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js +13 -0
  93. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js.map +1 -0
  94. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js +121 -0
  95. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js.map +1 -0
  96. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js +10 -0
  97. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js.map +1 -0
  98. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js +110 -0
  99. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js.map +1 -0
  100. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js +99 -0
  101. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js.map +1 -0
  102. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js +82 -0
  103. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js.map +1 -0
  104. package/dist/node_modules/.pnpm/{zod@3.24.2/node_modules/zod/lib/index.js → zod@3.25.76/node_modules/zod/v3/types.js} +93 -630
  105. package/dist/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js.map +1 -0
  106. package/dist/services/loadMap.js +1 -1
  107. package/dist/services/mmorpg.js +1 -1
  108. package/dist/services/standalone.js +1 -1
  109. package/package.json +13 -13
  110. package/src/components/character.ce +2 -1
  111. package/dist/node_modules/.pnpm/@signe_room@3.0.1/node_modules/@signe/room/dist/chunk-EUXUH3YW.js.map +0 -1
  112. package/dist/node_modules/.pnpm/@signe_room@3.0.1/node_modules/@signe/room/dist/index.js.map +0 -1
  113. package/dist/node_modules/.pnpm/@signe_sync@3.0.1/node_modules/@signe/sync/dist/client/index.js.map +0 -1
  114. package/dist/node_modules/.pnpm/@signe_sync@3.0.1/node_modules/@signe/sync/dist/index.js.map +0 -1
  115. package/dist/node_modules/.pnpm/partysocket@1.1.3/node_modules/partysocket/dist/chunk-HAC622V3.js.map +0 -1
  116. package/dist/node_modules/.pnpm/partysocket@1.1.3/node_modules/partysocket/dist/chunk-S74YV6PU.js.map +0 -1
  117. package/dist/node_modules/.pnpm/partysocket@1.1.3/node_modules/partysocket/dist/index.js +0 -2
  118. package/dist/node_modules/.pnpm/zod@3.24.2/node_modules/zod/lib/index.js.map +0 -1
@@ -0,0 +1,121 @@
1
+ import { __exportAll } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { ZodParsedType, getParsedType, objectUtil, util } from "./helpers/util.js";
3
+ import { ZodError, ZodIssueCode, quotelessJson } from "./ZodError.js";
4
+ import errorMap from "./locales/en.js";
5
+ import { getErrorMap, setErrorMap } from "./errors.js";
6
+ import { DIRTY, EMPTY_PATH, INVALID, OK, ParseStatus, addIssueToContext, isAborted, isAsync, isDirty, isValid, makeIssue } from "./helpers/parseUtil.js";
7
+ import { BRAND, NEVER, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodBranded, ZodCatch, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEffects, ZodEnum, ZodFirstPartyTypeKind, ZodFunction, ZodIntersection, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNativeEnum, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodPipeline, ZodPromise, ZodReadonly, ZodRecord, ZodSet, ZodString, ZodSymbol, ZodTuple, ZodType, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, anyType, arrayType, bigIntType, booleanType, coerce, custom, dateType, datetimeRegex, discriminatedUnionType, effectsType, enumType, functionType, instanceOfType, intersectionType, late, lazyType, literalType, mapType, nanType, nativeEnumType, neverType, nullType, nullableType, numberType, objectType, oboolean, onumber, optionalType, ostring, pipelineType, preprocessType, promiseType, recordType, setType, strictObjectType, stringType, symbolType, tupleType, undefinedType, unionType, unknownType, voidType } from "./types.js";
8
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
9
+ var external_exports = /* @__PURE__ */ __exportAll({
10
+ BRAND: () => BRAND,
11
+ DIRTY: () => DIRTY,
12
+ EMPTY_PATH: () => EMPTY_PATH,
13
+ INVALID: () => INVALID,
14
+ NEVER: () => NEVER,
15
+ OK: () => OK,
16
+ ParseStatus: () => ParseStatus,
17
+ Schema: () => ZodType,
18
+ ZodAny: () => ZodAny,
19
+ ZodArray: () => ZodArray,
20
+ ZodBigInt: () => ZodBigInt,
21
+ ZodBoolean: () => ZodBoolean,
22
+ ZodBranded: () => ZodBranded,
23
+ ZodCatch: () => ZodCatch,
24
+ ZodDate: () => ZodDate,
25
+ ZodDefault: () => ZodDefault,
26
+ ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
27
+ ZodEffects: () => ZodEffects,
28
+ ZodEnum: () => ZodEnum,
29
+ ZodError: () => ZodError,
30
+ ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
31
+ ZodFunction: () => ZodFunction,
32
+ ZodIntersection: () => ZodIntersection,
33
+ ZodIssueCode: () => ZodIssueCode,
34
+ ZodLazy: () => ZodLazy,
35
+ ZodLiteral: () => ZodLiteral,
36
+ ZodMap: () => ZodMap,
37
+ ZodNaN: () => ZodNaN,
38
+ ZodNativeEnum: () => ZodNativeEnum,
39
+ ZodNever: () => ZodNever,
40
+ ZodNull: () => ZodNull,
41
+ ZodNullable: () => ZodNullable,
42
+ ZodNumber: () => ZodNumber,
43
+ ZodObject: () => ZodObject,
44
+ ZodOptional: () => ZodOptional,
45
+ ZodParsedType: () => ZodParsedType,
46
+ ZodPipeline: () => ZodPipeline,
47
+ ZodPromise: () => ZodPromise,
48
+ ZodReadonly: () => ZodReadonly,
49
+ ZodRecord: () => ZodRecord,
50
+ ZodSchema: () => ZodType,
51
+ ZodSet: () => ZodSet,
52
+ ZodString: () => ZodString,
53
+ ZodSymbol: () => ZodSymbol,
54
+ ZodTransformer: () => ZodEffects,
55
+ ZodTuple: () => ZodTuple,
56
+ ZodType: () => ZodType,
57
+ ZodUndefined: () => ZodUndefined,
58
+ ZodUnion: () => ZodUnion,
59
+ ZodUnknown: () => ZodUnknown,
60
+ ZodVoid: () => ZodVoid,
61
+ addIssueToContext: () => addIssueToContext,
62
+ any: () => anyType,
63
+ array: () => arrayType,
64
+ bigint: () => bigIntType,
65
+ boolean: () => booleanType,
66
+ coerce: () => coerce,
67
+ custom: () => custom,
68
+ date: () => dateType,
69
+ datetimeRegex: () => datetimeRegex,
70
+ defaultErrorMap: () => errorMap,
71
+ discriminatedUnion: () => discriminatedUnionType,
72
+ effect: () => effectsType,
73
+ enum: () => enumType,
74
+ function: () => functionType,
75
+ getErrorMap: () => getErrorMap,
76
+ getParsedType: () => getParsedType,
77
+ instanceof: () => instanceOfType,
78
+ intersection: () => intersectionType,
79
+ isAborted: () => isAborted,
80
+ isAsync: () => isAsync,
81
+ isDirty: () => isDirty,
82
+ isValid: () => isValid,
83
+ late: () => late,
84
+ lazy: () => lazyType,
85
+ literal: () => literalType,
86
+ makeIssue: () => makeIssue,
87
+ map: () => mapType,
88
+ nan: () => nanType,
89
+ nativeEnum: () => nativeEnumType,
90
+ never: () => neverType,
91
+ null: () => nullType,
92
+ nullable: () => nullableType,
93
+ number: () => numberType,
94
+ object: () => objectType,
95
+ objectUtil: () => objectUtil,
96
+ oboolean: () => oboolean,
97
+ onumber: () => onumber,
98
+ optional: () => optionalType,
99
+ ostring: () => ostring,
100
+ pipeline: () => pipelineType,
101
+ preprocess: () => preprocessType,
102
+ promise: () => promiseType,
103
+ quotelessJson: () => quotelessJson,
104
+ record: () => recordType,
105
+ set: () => setType,
106
+ setErrorMap: () => setErrorMap,
107
+ strictObject: () => strictObjectType,
108
+ string: () => stringType,
109
+ symbol: () => symbolType,
110
+ transformer: () => effectsType,
111
+ tuple: () => tupleType,
112
+ undefined: () => undefinedType,
113
+ union: () => unionType,
114
+ unknown: () => unknownType,
115
+ util: () => util,
116
+ void: () => voidType
117
+ });
118
+ //#endregion
119
+ export { external_exports };
120
+
121
+ //# sourceMappingURL=external.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js"],"sourcesContent":["export * from \"./errors.js\";\nexport * from \"./helpers/parseUtil.js\";\nexport * from \"./helpers/typeAliases.js\";\nexport * from \"./helpers/util.js\";\nexport * from \"./types.js\";\nexport * from \"./ZodError.js\";\n"],"x_google_ignoreList":[0],"mappings":""}
@@ -0,0 +1,10 @@
1
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
2
+ var errorUtil;
3
+ (function(errorUtil) {
4
+ errorUtil.errToObj = (message) => typeof message === "string" ? { message } : message || {};
5
+ errorUtil.toString = (message) => typeof message === "string" ? message : message?.message;
6
+ })(errorUtil || (errorUtil = {}));
7
+ //#endregion
8
+ export { errorUtil };
9
+
10
+ //# sourceMappingURL=errorUtil.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorUtil.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js"],"sourcesContent":["export var errorUtil;\n(function (errorUtil) {\n errorUtil.errToObj = (message) => typeof message === \"string\" ? { message } : message || {};\n // biome-ignore lint:\n errorUtil.toString = (message) => typeof message === \"string\" ? message : message?.message;\n})(errorUtil || (errorUtil = {}));\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAW;CACV,SAAU,WAAW;CAClB,UAAU,YAAY,YAAY,OAAO,YAAY,WAAW,EAAE,QAAQ,IAAI,WAAW,CAAC;CAE1F,UAAU,YAAY,YAAY,OAAO,YAAY,WAAW,UAAU,SAAS;AACvF,GAAG,cAAc,YAAY,CAAC,EAAE"}
@@ -0,0 +1,110 @@
1
+ import errorMap from "../locales/en.js";
2
+ import { getErrorMap } from "../errors.js";
3
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
4
+ var makeIssue = (params) => {
5
+ const { data, path, errorMaps, issueData } = params;
6
+ const fullPath = [...path, ...issueData.path || []];
7
+ const fullIssue = {
8
+ ...issueData,
9
+ path: fullPath
10
+ };
11
+ if (issueData.message !== void 0) return {
12
+ ...issueData,
13
+ path: fullPath,
14
+ message: issueData.message
15
+ };
16
+ let errorMessage = "";
17
+ const maps = errorMaps.filter((m) => !!m).slice().reverse();
18
+ for (const map of maps) errorMessage = map(fullIssue, {
19
+ data,
20
+ defaultError: errorMessage
21
+ }).message;
22
+ return {
23
+ ...issueData,
24
+ path: fullPath,
25
+ message: errorMessage
26
+ };
27
+ };
28
+ var EMPTY_PATH = [];
29
+ function addIssueToContext(ctx, issueData) {
30
+ const overrideMap = getErrorMap();
31
+ const issue = makeIssue({
32
+ issueData,
33
+ data: ctx.data,
34
+ path: ctx.path,
35
+ errorMaps: [
36
+ ctx.common.contextualErrorMap,
37
+ ctx.schemaErrorMap,
38
+ overrideMap,
39
+ overrideMap === errorMap ? void 0 : errorMap
40
+ ].filter((x) => !!x)
41
+ });
42
+ ctx.common.issues.push(issue);
43
+ }
44
+ var ParseStatus = class ParseStatus {
45
+ constructor() {
46
+ this.value = "valid";
47
+ }
48
+ dirty() {
49
+ if (this.value === "valid") this.value = "dirty";
50
+ }
51
+ abort() {
52
+ if (this.value !== "aborted") this.value = "aborted";
53
+ }
54
+ static mergeArray(status, results) {
55
+ const arrayValue = [];
56
+ for (const s of results) {
57
+ if (s.status === "aborted") return INVALID;
58
+ if (s.status === "dirty") status.dirty();
59
+ arrayValue.push(s.value);
60
+ }
61
+ return {
62
+ status: status.value,
63
+ value: arrayValue
64
+ };
65
+ }
66
+ static async mergeObjectAsync(status, pairs) {
67
+ const syncPairs = [];
68
+ for (const pair of pairs) {
69
+ const key = await pair.key;
70
+ const value = await pair.value;
71
+ syncPairs.push({
72
+ key,
73
+ value
74
+ });
75
+ }
76
+ return ParseStatus.mergeObjectSync(status, syncPairs);
77
+ }
78
+ static mergeObjectSync(status, pairs) {
79
+ const finalObject = {};
80
+ for (const pair of pairs) {
81
+ const { key, value } = pair;
82
+ if (key.status === "aborted") return INVALID;
83
+ if (value.status === "aborted") return INVALID;
84
+ if (key.status === "dirty") status.dirty();
85
+ if (value.status === "dirty") status.dirty();
86
+ if (key.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) finalObject[key.value] = value.value;
87
+ }
88
+ return {
89
+ status: status.value,
90
+ value: finalObject
91
+ };
92
+ }
93
+ };
94
+ var INVALID = Object.freeze({ status: "aborted" });
95
+ var DIRTY = (value) => ({
96
+ status: "dirty",
97
+ value
98
+ });
99
+ var OK = (value) => ({
100
+ status: "valid",
101
+ value
102
+ });
103
+ var isAborted = (x) => x.status === "aborted";
104
+ var isDirty = (x) => x.status === "dirty";
105
+ var isValid = (x) => x.status === "valid";
106
+ var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
107
+ //#endregion
108
+ export { DIRTY, EMPTY_PATH, INVALID, OK, ParseStatus, addIssueToContext, isAborted, isAsync, isDirty, isValid, makeIssue };
109
+
110
+ //# sourceMappingURL=parseUtil.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseUtil.js","names":["defaultErrorMap"],"sources":["../../../../../../../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js"],"sourcesContent":["import { getErrorMap } from \"../errors.js\";\nimport defaultErrorMap from \"../locales/en.js\";\nexport const makeIssue = (params) => {\n const { data, path, errorMaps, issueData } = params;\n const fullPath = [...path, ...(issueData.path || [])];\n const fullIssue = {\n ...issueData,\n path: fullPath,\n };\n if (issueData.message !== undefined) {\n return {\n ...issueData,\n path: fullPath,\n message: issueData.message,\n };\n }\n let errorMessage = \"\";\n const maps = errorMaps\n .filter((m) => !!m)\n .slice()\n .reverse();\n for (const map of maps) {\n errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;\n }\n return {\n ...issueData,\n path: fullPath,\n message: errorMessage,\n };\n};\nexport const EMPTY_PATH = [];\nexport function addIssueToContext(ctx, issueData) {\n const overrideMap = getErrorMap();\n const issue = makeIssue({\n issueData: issueData,\n data: ctx.data,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap, // contextual error map is first priority\n ctx.schemaErrorMap, // then schema-bound map if available\n overrideMap, // then global override map\n overrideMap === defaultErrorMap ? undefined : defaultErrorMap, // then global default map\n ].filter((x) => !!x),\n });\n ctx.common.issues.push(issue);\n}\nexport class ParseStatus {\n constructor() {\n this.value = \"valid\";\n }\n dirty() {\n if (this.value === \"valid\")\n this.value = \"dirty\";\n }\n abort() {\n if (this.value !== \"aborted\")\n this.value = \"aborted\";\n }\n static mergeArray(status, results) {\n const arrayValue = [];\n for (const s of results) {\n if (s.status === \"aborted\")\n return INVALID;\n if (s.status === \"dirty\")\n status.dirty();\n arrayValue.push(s.value);\n }\n return { status: status.value, value: arrayValue };\n }\n static async mergeObjectAsync(status, pairs) {\n const syncPairs = [];\n for (const pair of pairs) {\n const key = await pair.key;\n const value = await pair.value;\n syncPairs.push({\n key,\n value,\n });\n }\n return ParseStatus.mergeObjectSync(status, syncPairs);\n }\n static mergeObjectSync(status, pairs) {\n const finalObject = {};\n for (const pair of pairs) {\n const { key, value } = pair;\n if (key.status === \"aborted\")\n return INVALID;\n if (value.status === \"aborted\")\n return INVALID;\n if (key.status === \"dirty\")\n status.dirty();\n if (value.status === \"dirty\")\n status.dirty();\n if (key.value !== \"__proto__\" && (typeof value.value !== \"undefined\" || pair.alwaysSet)) {\n finalObject[key.value] = value.value;\n }\n }\n return { status: status.value, value: finalObject };\n }\n}\nexport const INVALID = Object.freeze({\n status: \"aborted\",\n});\nexport const DIRTY = (value) => ({ status: \"dirty\", value });\nexport const OK = (value) => ({ status: \"valid\", value });\nexport const isAborted = (x) => x.status === \"aborted\";\nexport const isDirty = (x) => x.status === \"dirty\";\nexport const isValid = (x) => x.status === \"valid\";\nexport const isAsync = (x) => typeof Promise !== \"undefined\" && x instanceof Promise;\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAa,aAAa,WAAW;CACjC,MAAM,EAAE,MAAM,MAAM,WAAW,cAAc;CAC7C,MAAM,WAAW,CAAC,GAAG,MAAM,GAAI,UAAU,QAAQ,CAAC,CAAE;CACpD,MAAM,YAAY;EACd,GAAG;EACH,MAAM;CACV;CACA,IAAI,UAAU,YAAY,KAAA,GACtB,OAAO;EACH,GAAG;EACH,MAAM;EACN,SAAS,UAAU;CACvB;CAEJ,IAAI,eAAe;CACnB,MAAM,OAAO,UACR,QAAQ,MAAM,CAAC,CAAC,CAAC,EACjB,MAAM,EACN,QAAQ;CACb,KAAK,MAAM,OAAO,MACd,eAAe,IAAI,WAAW;EAAE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AAO;GACX,IAAI,MAAM,WAAW,WACjB,OAAO;GACX,IAAI,IAAI,WAAW,SACf,OAAO,MAAM;GACjB,IAAI,MAAM,WAAW,SACjB,OAAO,MAAM;GACjB,IAAI,IAAI,UAAU,gBAAgB,OAAO,MAAM,UAAU,eAAe,KAAK,YACzE,YAAY,IAAI,SAAS,MAAM;EAEvC;EACA,OAAO;GAAE,QAAQ,OAAO;GAAO,OAAO;EAAY;CACtD;AACJ;AACA,IAAa,UAAU,OAAO,OAAO,EACjC,QAAQ,UACZ,CAAC;AACD,IAAa,SAAS,WAAW;CAAE,QAAQ;CAAS;AAAM;AAC1D,IAAa,MAAM,WAAW;CAAE,QAAQ;CAAS;AAAM;AACvD,IAAa,aAAa,MAAM,EAAE,WAAW;AAC7C,IAAa,WAAW,MAAM,EAAE,WAAW;AAC3C,IAAa,WAAW,MAAM,EAAE,WAAW;AAC3C,IAAa,WAAW,MAAM,OAAO,YAAY,eAAe,aAAa"}
@@ -0,0 +1,99 @@
1
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js
2
+ var util;
3
+ (function(util) {
4
+ util.assertEqual = (_) => {};
5
+ function assertIs(_arg) {}
6
+ util.assertIs = assertIs;
7
+ function assertNever(_x) {
8
+ throw new Error();
9
+ }
10
+ util.assertNever = assertNever;
11
+ util.arrayToEnum = (items) => {
12
+ const obj = {};
13
+ for (const item of items) obj[item] = item;
14
+ return obj;
15
+ };
16
+ util.getValidEnumValues = (obj) => {
17
+ const validKeys = util.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
18
+ const filtered = {};
19
+ for (const k of validKeys) filtered[k] = obj[k];
20
+ return util.objectValues(filtered);
21
+ };
22
+ util.objectValues = (obj) => {
23
+ return util.objectKeys(obj).map(function(e) {
24
+ return obj[e];
25
+ });
26
+ };
27
+ util.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {
28
+ const keys = [];
29
+ for (const key in object) if (Object.prototype.hasOwnProperty.call(object, key)) keys.push(key);
30
+ return keys;
31
+ };
32
+ util.find = (arr, checker) => {
33
+ for (const item of arr) if (checker(item)) return item;
34
+ };
35
+ util.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
36
+ function joinValues(array, separator = " | ") {
37
+ return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
38
+ }
39
+ util.joinValues = joinValues;
40
+ util.jsonStringifyReplacer = (_, value) => {
41
+ if (typeof value === "bigint") return value.toString();
42
+ return value;
43
+ };
44
+ })(util || (util = {}));
45
+ var objectUtil;
46
+ (function(objectUtil) {
47
+ objectUtil.mergeShapes = (first, second) => {
48
+ return {
49
+ ...first,
50
+ ...second
51
+ };
52
+ };
53
+ })(objectUtil || (objectUtil = {}));
54
+ var ZodParsedType = util.arrayToEnum([
55
+ "string",
56
+ "nan",
57
+ "number",
58
+ "integer",
59
+ "float",
60
+ "boolean",
61
+ "date",
62
+ "bigint",
63
+ "symbol",
64
+ "function",
65
+ "undefined",
66
+ "null",
67
+ "array",
68
+ "object",
69
+ "unknown",
70
+ "promise",
71
+ "void",
72
+ "never",
73
+ "map",
74
+ "set"
75
+ ]);
76
+ var getParsedType = (data) => {
77
+ switch (typeof data) {
78
+ case "undefined": return ZodParsedType.undefined;
79
+ case "string": return ZodParsedType.string;
80
+ case "number": return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
81
+ case "boolean": return ZodParsedType.boolean;
82
+ case "function": return ZodParsedType.function;
83
+ case "bigint": return ZodParsedType.bigint;
84
+ case "symbol": return ZodParsedType.symbol;
85
+ case "object":
86
+ if (Array.isArray(data)) return ZodParsedType.array;
87
+ if (data === null) return ZodParsedType.null;
88
+ if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") return ZodParsedType.promise;
89
+ if (typeof Map !== "undefined" && data instanceof Map) return ZodParsedType.map;
90
+ if (typeof Set !== "undefined" && data instanceof Set) return ZodParsedType.set;
91
+ if (typeof Date !== "undefined" && data instanceof Date) return ZodParsedType.date;
92
+ return ZodParsedType.object;
93
+ default: return ZodParsedType.unknown;
94
+ }
95
+ };
96
+ //#endregion
97
+ export { ZodParsedType, getParsedType, objectUtil, util };
98
+
99
+ //# sourceMappingURL=util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js"],"sourcesContent":["export var util;\n(function (util) {\n util.assertEqual = (_) => { };\n function assertIs(_arg) { }\n util.assertIs = assertIs;\n function assertNever(_x) {\n throw new Error();\n }\n util.assertNever = assertNever;\n util.arrayToEnum = (items) => {\n const obj = {};\n for (const item of items) {\n obj[item] = item;\n }\n return obj;\n };\n util.getValidEnumValues = (obj) => {\n const validKeys = util.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== \"number\");\n const filtered = {};\n for (const k of validKeys) {\n filtered[k] = obj[k];\n }\n return util.objectValues(filtered);\n };\n util.objectValues = (obj) => {\n return util.objectKeys(obj).map(function (e) {\n return obj[e];\n });\n };\n util.objectKeys = typeof Object.keys === \"function\" // eslint-disable-line ban/ban\n ? (obj) => Object.keys(obj) // eslint-disable-line ban/ban\n : (object) => {\n const keys = [];\n for (const key in object) {\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n keys.push(key);\n }\n }\n return keys;\n };\n util.find = (arr, checker) => {\n for (const item of arr) {\n if (checker(item))\n return item;\n }\n return undefined;\n };\n util.isInteger = typeof Number.isInteger === \"function\"\n ? (val) => Number.isInteger(val) // eslint-disable-line ban/ban\n : (val) => typeof val === \"number\" && Number.isFinite(val) && Math.floor(val) === val;\n function joinValues(array, separator = \" | \") {\n return array.map((val) => (typeof val === \"string\" ? `'${val}'` : val)).join(separator);\n }\n util.joinValues = joinValues;\n util.jsonStringifyReplacer = (_, value) => {\n if (typeof value === \"bigint\") {\n return value.toString();\n }\n return value;\n };\n})(util || (util = {}));\nexport var objectUtil;\n(function (objectUtil) {\n objectUtil.mergeShapes = (first, second) => {\n return {\n ...first,\n ...second, // second overwrites first\n };\n };\n})(objectUtil || (objectUtil = {}));\nexport const ZodParsedType = util.arrayToEnum([\n \"string\",\n \"nan\",\n \"number\",\n \"integer\",\n \"float\",\n \"boolean\",\n \"date\",\n \"bigint\",\n \"symbol\",\n \"function\",\n \"undefined\",\n \"null\",\n \"array\",\n \"object\",\n \"unknown\",\n \"promise\",\n \"void\",\n \"never\",\n \"map\",\n \"set\",\n]);\nexport const getParsedType = (data) => {\n const t = typeof data;\n switch (t) {\n case \"undefined\":\n return ZodParsedType.undefined;\n case \"string\":\n return ZodParsedType.string;\n case \"number\":\n return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;\n case \"boolean\":\n return ZodParsedType.boolean;\n case \"function\":\n return ZodParsedType.function;\n case \"bigint\":\n return ZodParsedType.bigint;\n case \"symbol\":\n return ZodParsedType.symbol;\n case \"object\":\n if (Array.isArray(data)) {\n return ZodParsedType.array;\n }\n if (data === null) {\n return ZodParsedType.null;\n }\n if (data.then && typeof data.then === \"function\" && data.catch && typeof data.catch === \"function\") {\n return ZodParsedType.promise;\n }\n if (typeof Map !== \"undefined\" && data instanceof Map) {\n return ZodParsedType.map;\n }\n if (typeof Set !== \"undefined\" && data instanceof Set) {\n return ZodParsedType.set;\n }\n if (typeof Date !== \"undefined\" && data instanceof Date) {\n return ZodParsedType.date;\n }\n return ZodParsedType.object;\n default:\n return ZodParsedType.unknown;\n }\n};\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAW;CACV,SAAU,MAAM;CACb,KAAK,eAAe,MAAM,CAAE;CAC5B,SAAS,SAAS,MAAM,CAAE;CAC1B,KAAK,WAAW;CAChB,SAAS,YAAY,IAAI;EACrB,MAAM,IAAI,MAAM;CACpB;CACA,KAAK,cAAc;CACnB,KAAK,eAAe,UAAU;EAC1B,MAAM,MAAM,CAAC;EACb,KAAK,MAAM,QAAQ,OACf,I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AAG,eAAe,aAAa,CAAC,EAAE;AAClC,IAAa,gBAAgB,KAAK,YAAY;CAC1C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ,CAAC;AACD,IAAa,iBAAiB,SAAS;CAEnC,QAAQ,OADS,MACjB;EACI,KAAK,aACD,OAAO,cAAc;EACzB,KAAK,UACD,OAAO,cAAc;EACzB,KAAK,UACD,OAAO,OAAO,MAAM,IAAI,IAAI,cAAc,MAAM,cAAc;EAClE,KAAK,WACD,OAAO,cAAc;EACzB,KAAK,YACD,OAAO,cAAc;EACzB,KAAK,UACD,OAAO,cAAc;EACzB,KAAK,UACD,OAAO,cAAc;EACzB,KAAK;GACD,IAAI,MAAM,QAAQ,IAAI,GAClB,OAAO,cAAc;GAEzB,IAAI,SAAS,MACT,OAAO,cAAc;GAEzB,IAAI,KAAK,QAAQ,OAAO,KAAK,SAAS,cAAc,KAAK,SAAS,OAAO,KAAK,UAAU,YACpF,OAAO,cAAc;GAEzB,IAAI,OAAO,QAAQ,eAAe,gBAAgB,KAC9C,OAAO,cAAc;GAEzB,IAAI,OAAO,QAAQ,eAAe,gBAAgB,KAC9C,OAAO,cAAc;GAEzB,IAAI,OAAO,SAAS,eAAe,gBAAgB,MAC/C,OAAO,cAAc;GAEzB,OAAO,cAAc;EACzB,SACI,OAAO,cAAc;CAC7B;AACJ"}
@@ -0,0 +1,82 @@
1
+ import { ZodParsedType, util } from "../helpers/util.js";
2
+ import { ZodIssueCode } from "../ZodError.js";
3
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js
4
+ var errorMap = (issue, _ctx) => {
5
+ let message;
6
+ switch (issue.code) {
7
+ case ZodIssueCode.invalid_type:
8
+ if (issue.received === ZodParsedType.undefined) message = "Required";
9
+ else message = `Expected ${issue.expected}, received ${issue.received}`;
10
+ break;
11
+ case ZodIssueCode.invalid_literal:
12
+ message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;
13
+ break;
14
+ case ZodIssueCode.unrecognized_keys:
15
+ message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;
16
+ break;
17
+ case ZodIssueCode.invalid_union:
18
+ message = `Invalid input`;
19
+ break;
20
+ case ZodIssueCode.invalid_union_discriminator:
21
+ message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;
22
+ break;
23
+ case ZodIssueCode.invalid_enum_value:
24
+ message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;
25
+ break;
26
+ case ZodIssueCode.invalid_arguments:
27
+ message = `Invalid function arguments`;
28
+ break;
29
+ case ZodIssueCode.invalid_return_type:
30
+ message = `Invalid function return type`;
31
+ break;
32
+ case ZodIssueCode.invalid_date:
33
+ message = `Invalid date`;
34
+ break;
35
+ case ZodIssueCode.invalid_string:
36
+ if (typeof issue.validation === "object") if ("includes" in issue.validation) {
37
+ message = `Invalid input: must include "${issue.validation.includes}"`;
38
+ if (typeof issue.validation.position === "number") message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
39
+ } else if ("startsWith" in issue.validation) message = `Invalid input: must start with "${issue.validation.startsWith}"`;
40
+ else if ("endsWith" in issue.validation) message = `Invalid input: must end with "${issue.validation.endsWith}"`;
41
+ else util.assertNever(issue.validation);
42
+ else if (issue.validation !== "regex") message = `Invalid ${issue.validation}`;
43
+ else message = "Invalid";
44
+ break;
45
+ case ZodIssueCode.too_small:
46
+ if (issue.type === "array") message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;
47
+ else if (issue.type === "string") message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
48
+ else if (issue.type === "number") message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
49
+ else if (issue.type === "bigint") message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
50
+ else if (issue.type === "date") message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
51
+ else message = "Invalid input";
52
+ break;
53
+ case ZodIssueCode.too_big:
54
+ if (issue.type === "array") message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;
55
+ else if (issue.type === "string") message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;
56
+ else if (issue.type === "number") message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
57
+ else if (issue.type === "bigint") message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
58
+ else if (issue.type === "date") message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;
59
+ else message = "Invalid input";
60
+ break;
61
+ case ZodIssueCode.custom:
62
+ message = `Invalid input`;
63
+ break;
64
+ case ZodIssueCode.invalid_intersection_types:
65
+ message = `Intersection results could not be merged`;
66
+ break;
67
+ case ZodIssueCode.not_multiple_of:
68
+ message = `Number must be a multiple of ${issue.multipleOf}`;
69
+ break;
70
+ case ZodIssueCode.not_finite:
71
+ message = "Number must be finite";
72
+ break;
73
+ default:
74
+ message = _ctx.defaultError;
75
+ util.assertNever(issue);
76
+ }
77
+ return { message };
78
+ };
79
+ //#endregion
80
+ export { errorMap as default };
81
+
82
+ //# sourceMappingURL=en.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js"],"sourcesContent":["import { ZodIssueCode } from \"../ZodError.js\";\nimport { util, ZodParsedType } from \"../helpers/util.js\";\nconst errorMap = (issue, _ctx) => {\n let message;\n switch (issue.code) {\n case ZodIssueCode.invalid_type:\n if (issue.received === ZodParsedType.undefined) {\n message = \"Required\";\n }\n else {\n message = `Expected ${issue.expected}, received ${issue.received}`;\n }\n break;\n case ZodIssueCode.invalid_literal:\n message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;\n break;\n case ZodIssueCode.unrecognized_keys:\n message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, \", \")}`;\n break;\n case ZodIssueCode.invalid_union:\n message = `Invalid input`;\n break;\n case ZodIssueCode.invalid_union_discriminator:\n message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;\n break;\n case ZodIssueCode.invalid_enum_value:\n message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;\n break;\n case ZodIssueCode.invalid_arguments:\n message = `Invalid function arguments`;\n break;\n case ZodIssueCode.invalid_return_type:\n message = `Invalid function return type`;\n break;\n case ZodIssueCode.invalid_date:\n message = `Invalid date`;\n break;\n case ZodIssueCode.invalid_string:\n if (typeof issue.validation === \"object\") {\n if (\"includes\" in issue.validation) {\n message = `Invalid input: must include \"${issue.validation.includes}\"`;\n if (typeof issue.validation.position === \"number\") {\n message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;\n }\n }\n else if (\"startsWith\" in issue.validation) {\n message = `Invalid input: must start with \"${issue.validation.startsWith}\"`;\n }\n else if (\"endsWith\" in issue.validation) {\n message = `Invalid input: must end with \"${issue.validation.endsWith}\"`;\n }\n else {\n util.assertNever(issue.validation);\n }\n }\n else if (issue.validation !== \"regex\") {\n message = `Invalid ${issue.validation}`;\n }\n else {\n message = \"Invalid\";\n }\n break;\n case ZodIssueCode.too_small:\n if (issue.type === \"array\")\n message = `Array must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;\n else if (issue.type === \"string\")\n message = `String must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;\n else if (issue.type === \"number\")\n message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;\n else if (issue.type === \"bigint\")\n message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;\n else if (issue.type === \"date\")\n message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;\n else\n message = \"Invalid input\";\n break;\n case ZodIssueCode.too_big:\n if (issue.type === \"array\")\n message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;\n else if (issue.type === \"string\")\n message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;\n else if (issue.type === \"number\")\n message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;\n else if (issue.type === \"bigint\")\n message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;\n else if (issue.type === \"date\")\n message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;\n else\n message = \"Invalid input\";\n break;\n case ZodIssueCode.custom:\n message = `Invalid input`;\n break;\n case ZodIssueCode.invalid_intersection_types:\n message = `Intersection results could not be merged`;\n break;\n case ZodIssueCode.not_multiple_of:\n message = `Number must be a multiple of ${issue.multipleOf}`;\n break;\n case ZodIssueCode.not_finite:\n message = \"Number must be finite\";\n break;\n default:\n message = _ctx.defaultError;\n util.assertNever(issue);\n }\n return { message };\n};\nexport default errorMap;\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAM,YAAY,OAAO,SAAS;CAC9B,IAAI;CACJ,QAAQ,MAAM,MAAd;EACI,KAAK,aA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