@inline-openclaw/inline 0.0.33 → 0.0.34
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.
- package/README.md +1 -1
- package/dist/index.js +778 -1309
- package/dist/index.js.map +27 -30
- package/dist/inline/actions.d.ts.map +1 -1
- package/dist/inline/config-schema.d.ts +14 -14
- package/dist/inline/monitor.d.ts.map +1 -1
- package/dist/openclaw-compat.d.ts +2 -2
- package/dist/openclaw-compat.d.ts.map +1 -1
- package/openclaw.plugin.json +72 -451
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -5560,6 +5560,13 @@ var import_runtime = __toESM(require_commonjs(), 1);
|
|
|
5560
5560
|
var import_runtime2 = __toESM(require_commonjs(), 1);
|
|
5561
5561
|
var import_runtime3 = __toESM(require_commonjs(), 1);
|
|
5562
5562
|
var import_runtime4 = __toESM(require_commonjs(), 1);
|
|
5563
|
+
var ConnectionError_Reason;
|
|
5564
|
+
(function(ConnectionError_Reason2) {
|
|
5565
|
+
ConnectionError_Reason2[ConnectionError_Reason2["REASON_UNSPECIFIED"] = 0] = "REASON_UNSPECIFIED";
|
|
5566
|
+
ConnectionError_Reason2[ConnectionError_Reason2["UNAUTHORIZED"] = 1] = "UNAUTHORIZED";
|
|
5567
|
+
ConnectionError_Reason2[ConnectionError_Reason2["INVALID_AUTH"] = 2] = "INVALID_AUTH";
|
|
5568
|
+
ConnectionError_Reason2[ConnectionError_Reason2["SESSION_REVOKED"] = 3] = "SESSION_REVOKED";
|
|
5569
|
+
})(ConnectionError_Reason || (ConnectionError_Reason = {}));
|
|
5563
5570
|
var MessageEntity_Type;
|
|
5564
5571
|
(function(MessageEntity_Type2) {
|
|
5565
5572
|
MessageEntity_Type2[MessageEntity_Type2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
@@ -5719,6 +5726,7 @@ var Method;
|
|
|
5719
5726
|
Method2[Method2["RESERVE_CHAT_IDS"] = 47] = "RESERVE_CHAT_IDS";
|
|
5720
5727
|
Method2[Method2["INVOKE_MESSAGE_ACTION"] = 48] = "INVOKE_MESSAGE_ACTION";
|
|
5721
5728
|
Method2[Method2["ANSWER_MESSAGE_ACTION"] = 49] = "ANSWER_MESSAGE_ACTION";
|
|
5729
|
+
Method2[Method2["REVOKE_SESSION"] = 50] = "REVOKE_SESSION";
|
|
5722
5730
|
})(Method || (Method = {}));
|
|
5723
5731
|
var PushNotificationProvider;
|
|
5724
5732
|
(function(PushNotificationProvider2) {
|
|
@@ -6161,18 +6169,39 @@ var ConnectionOpen = new ConnectionOpen$Type;
|
|
|
6161
6169
|
|
|
6162
6170
|
class ConnectionError$Type extends import_runtime4.MessageType {
|
|
6163
6171
|
constructor() {
|
|
6164
|
-
super("ConnectionError", [
|
|
6172
|
+
super("ConnectionError", [
|
|
6173
|
+
{ no: 1, name: "reason", kind: "enum", T: () => ["ConnectionError.Reason", ConnectionError_Reason] }
|
|
6174
|
+
]);
|
|
6165
6175
|
}
|
|
6166
6176
|
create(value) {
|
|
6167
6177
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
6178
|
+
message.reason = 0;
|
|
6168
6179
|
if (value !== undefined)
|
|
6169
6180
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
6170
6181
|
return message;
|
|
6171
6182
|
}
|
|
6172
6183
|
internalBinaryRead(reader, length, options, target) {
|
|
6173
|
-
|
|
6184
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6185
|
+
while (reader.pos < end) {
|
|
6186
|
+
let [fieldNo, wireType] = reader.tag();
|
|
6187
|
+
switch (fieldNo) {
|
|
6188
|
+
case 1:
|
|
6189
|
+
message.reason = reader.int32();
|
|
6190
|
+
break;
|
|
6191
|
+
default:
|
|
6192
|
+
let u = options.readUnknownField;
|
|
6193
|
+
if (u === "throw")
|
|
6194
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
6195
|
+
let d = reader.skip(wireType);
|
|
6196
|
+
if (u !== false)
|
|
6197
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
6198
|
+
}
|
|
6199
|
+
}
|
|
6200
|
+
return message;
|
|
6174
6201
|
}
|
|
6175
6202
|
internalBinaryWrite(message, writer, options) {
|
|
6203
|
+
if (message.reason !== 0)
|
|
6204
|
+
writer.tag(1, import_runtime.WireType.Varint).int32(message.reason);
|
|
6176
6205
|
let u = options.writeUnknownFields;
|
|
6177
6206
|
if (u !== false)
|
|
6178
6207
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -9370,7 +9399,8 @@ class RpcCall$Type extends import_runtime4.MessageType {
|
|
|
9370
9399
|
{ no: 47, name: "showChatInSidebar", kind: "message", oneof: "input", T: () => ShowChatInSidebarInput },
|
|
9371
9400
|
{ no: 48, name: "reserveChatIds", kind: "message", oneof: "input", T: () => ReserveChatIdsInput },
|
|
9372
9401
|
{ no: 49, name: "invokeMessageAction", kind: "message", oneof: "input", T: () => InvokeMessageActionInput },
|
|
9373
|
-
{ no: 50, name: "answerMessageAction", kind: "message", oneof: "input", T: () => AnswerMessageActionInput }
|
|
9402
|
+
{ no: 50, name: "answerMessageAction", kind: "message", oneof: "input", T: () => AnswerMessageActionInput },
|
|
9403
|
+
{ no: 51, name: "revokeSession", kind: "message", oneof: "input", T: () => RevokeSessionInput }
|
|
9374
9404
|
]);
|
|
9375
9405
|
}
|
|
9376
9406
|
create(value) {
|
|
@@ -9683,6 +9713,12 @@ class RpcCall$Type extends import_runtime4.MessageType {
|
|
|
9683
9713
|
answerMessageAction: AnswerMessageActionInput.internalBinaryRead(reader, reader.uint32(), options, message.input.answerMessageAction)
|
|
9684
9714
|
};
|
|
9685
9715
|
break;
|
|
9716
|
+
case 51:
|
|
9717
|
+
message.input = {
|
|
9718
|
+
oneofKind: "revokeSession",
|
|
9719
|
+
revokeSession: RevokeSessionInput.internalBinaryRead(reader, reader.uint32(), options, message.input.revokeSession)
|
|
9720
|
+
};
|
|
9721
|
+
break;
|
|
9686
9722
|
default:
|
|
9687
9723
|
let u = options.readUnknownField;
|
|
9688
9724
|
if (u === "throw")
|
|
@@ -9795,6 +9831,8 @@ class RpcCall$Type extends import_runtime4.MessageType {
|
|
|
9795
9831
|
InvokeMessageActionInput.internalBinaryWrite(message.input.invokeMessageAction, writer.tag(49, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
9796
9832
|
if (message.input.oneofKind === "answerMessageAction")
|
|
9797
9833
|
AnswerMessageActionInput.internalBinaryWrite(message.input.answerMessageAction, writer.tag(50, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
9834
|
+
if (message.input.oneofKind === "revokeSession")
|
|
9835
|
+
RevokeSessionInput.internalBinaryWrite(message.input.revokeSession, writer.tag(51, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
9798
9836
|
let u = options.writeUnknownFields;
|
|
9799
9837
|
if (u !== false)
|
|
9800
9838
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -9855,7 +9893,8 @@ class RpcResult$Type extends import_runtime4.MessageType {
|
|
|
9855
9893
|
{ no: 47, name: "showChatInSidebar", kind: "message", oneof: "result", T: () => ShowChatInSidebarResult },
|
|
9856
9894
|
{ no: 48, name: "reserveChatIds", kind: "message", oneof: "result", T: () => ReserveChatIdsResult },
|
|
9857
9895
|
{ no: 49, name: "invokeMessageAction", kind: "message", oneof: "result", T: () => InvokeMessageActionResult },
|
|
9858
|
-
{ no: 50, name: "answerMessageAction", kind: "message", oneof: "result", T: () => AnswerMessageActionResult }
|
|
9896
|
+
{ no: 50, name: "answerMessageAction", kind: "message", oneof: "result", T: () => AnswerMessageActionResult },
|
|
9897
|
+
{ no: 51, name: "revokeSession", kind: "message", oneof: "result", T: () => RevokeSessionResult }
|
|
9859
9898
|
]);
|
|
9860
9899
|
}
|
|
9861
9900
|
create(value) {
|
|
@@ -10168,6 +10207,12 @@ class RpcResult$Type extends import_runtime4.MessageType {
|
|
|
10168
10207
|
answerMessageAction: AnswerMessageActionResult.internalBinaryRead(reader, reader.uint32(), options, message.result.answerMessageAction)
|
|
10169
10208
|
};
|
|
10170
10209
|
break;
|
|
10210
|
+
case 51:
|
|
10211
|
+
message.result = {
|
|
10212
|
+
oneofKind: "revokeSession",
|
|
10213
|
+
revokeSession: RevokeSessionResult.internalBinaryRead(reader, reader.uint32(), options, message.result.revokeSession)
|
|
10214
|
+
};
|
|
10215
|
+
break;
|
|
10171
10216
|
default:
|
|
10172
10217
|
let u = options.readUnknownField;
|
|
10173
10218
|
if (u === "throw")
|
|
@@ -10280,6 +10325,8 @@ class RpcResult$Type extends import_runtime4.MessageType {
|
|
|
10280
10325
|
InvokeMessageActionResult.internalBinaryWrite(message.result.invokeMessageAction, writer.tag(49, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
10281
10326
|
if (message.result.oneofKind === "answerMessageAction")
|
|
10282
10327
|
AnswerMessageActionResult.internalBinaryWrite(message.result.answerMessageAction, writer.tag(50, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
10328
|
+
if (message.result.oneofKind === "revokeSession")
|
|
10329
|
+
RevokeSessionResult.internalBinaryWrite(message.result.revokeSession, writer.tag(51, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
10283
10330
|
let u = options.writeUnknownFields;
|
|
10284
10331
|
if (u !== false)
|
|
10285
10332
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -11417,6 +11464,99 @@ class ListBotsResult$Type extends import_runtime4.MessageType {
|
|
|
11417
11464
|
}
|
|
11418
11465
|
var ListBotsResult = new ListBotsResult$Type;
|
|
11419
11466
|
|
|
11467
|
+
class RevokeSessionInput$Type extends import_runtime4.MessageType {
|
|
11468
|
+
constructor() {
|
|
11469
|
+
super("RevokeSessionInput", [
|
|
11470
|
+
{ no: 1, name: "session_id", kind: "scalar", T: 3, L: 0 }
|
|
11471
|
+
]);
|
|
11472
|
+
}
|
|
11473
|
+
create(value) {
|
|
11474
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
11475
|
+
message.sessionId = 0n;
|
|
11476
|
+
if (value !== undefined)
|
|
11477
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
11478
|
+
return message;
|
|
11479
|
+
}
|
|
11480
|
+
internalBinaryRead(reader, length, options, target) {
|
|
11481
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
11482
|
+
while (reader.pos < end) {
|
|
11483
|
+
let [fieldNo, wireType] = reader.tag();
|
|
11484
|
+
switch (fieldNo) {
|
|
11485
|
+
case 1:
|
|
11486
|
+
message.sessionId = reader.int64().toBigInt();
|
|
11487
|
+
break;
|
|
11488
|
+
default:
|
|
11489
|
+
let u = options.readUnknownField;
|
|
11490
|
+
if (u === "throw")
|
|
11491
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
11492
|
+
let d = reader.skip(wireType);
|
|
11493
|
+
if (u !== false)
|
|
11494
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
11495
|
+
}
|
|
11496
|
+
}
|
|
11497
|
+
return message;
|
|
11498
|
+
}
|
|
11499
|
+
internalBinaryWrite(message, writer, options) {
|
|
11500
|
+
if (message.sessionId !== 0n)
|
|
11501
|
+
writer.tag(1, import_runtime.WireType.Varint).int64(message.sessionId);
|
|
11502
|
+
let u = options.writeUnknownFields;
|
|
11503
|
+
if (u !== false)
|
|
11504
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
11505
|
+
return writer;
|
|
11506
|
+
}
|
|
11507
|
+
}
|
|
11508
|
+
var RevokeSessionInput = new RevokeSessionInput$Type;
|
|
11509
|
+
|
|
11510
|
+
class RevokeSessionResult$Type extends import_runtime4.MessageType {
|
|
11511
|
+
constructor() {
|
|
11512
|
+
super("RevokeSessionResult", [
|
|
11513
|
+
{ no: 1, name: "revoked", kind: "scalar", T: 8 },
|
|
11514
|
+
{ no: 2, name: "already_revoked", kind: "scalar", T: 8 }
|
|
11515
|
+
]);
|
|
11516
|
+
}
|
|
11517
|
+
create(value) {
|
|
11518
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
11519
|
+
message.revoked = false;
|
|
11520
|
+
message.alreadyRevoked = false;
|
|
11521
|
+
if (value !== undefined)
|
|
11522
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
11523
|
+
return message;
|
|
11524
|
+
}
|
|
11525
|
+
internalBinaryRead(reader, length, options, target) {
|
|
11526
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
11527
|
+
while (reader.pos < end) {
|
|
11528
|
+
let [fieldNo, wireType] = reader.tag();
|
|
11529
|
+
switch (fieldNo) {
|
|
11530
|
+
case 1:
|
|
11531
|
+
message.revoked = reader.bool();
|
|
11532
|
+
break;
|
|
11533
|
+
case 2:
|
|
11534
|
+
message.alreadyRevoked = reader.bool();
|
|
11535
|
+
break;
|
|
11536
|
+
default:
|
|
11537
|
+
let u = options.readUnknownField;
|
|
11538
|
+
if (u === "throw")
|
|
11539
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
11540
|
+
let d = reader.skip(wireType);
|
|
11541
|
+
if (u !== false)
|
|
11542
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
11543
|
+
}
|
|
11544
|
+
}
|
|
11545
|
+
return message;
|
|
11546
|
+
}
|
|
11547
|
+
internalBinaryWrite(message, writer, options) {
|
|
11548
|
+
if (message.revoked !== false)
|
|
11549
|
+
writer.tag(1, import_runtime.WireType.Varint).bool(message.revoked);
|
|
11550
|
+
if (message.alreadyRevoked !== false)
|
|
11551
|
+
writer.tag(2, import_runtime.WireType.Varint).bool(message.alreadyRevoked);
|
|
11552
|
+
let u = options.writeUnknownFields;
|
|
11553
|
+
if (u !== false)
|
|
11554
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
11555
|
+
return writer;
|
|
11556
|
+
}
|
|
11557
|
+
}
|
|
11558
|
+
var RevokeSessionResult = new RevokeSessionResult$Type;
|
|
11559
|
+
|
|
11420
11560
|
class BotCommand$Type extends import_runtime4.MessageType {
|
|
11421
11561
|
constructor() {
|
|
11422
11562
|
super("BotCommand", [
|
|
@@ -20225,7 +20365,7 @@ class JsonFileStateStore {
|
|
|
20225
20365
|
await rename(tempPath, this.path);
|
|
20226
20366
|
}
|
|
20227
20367
|
}
|
|
20228
|
-
// ../../node_modules/.bun/zod@4.
|
|
20368
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
20229
20369
|
var exports_external = {};
|
|
20230
20370
|
__export(exports_external, {
|
|
20231
20371
|
xor: () => xor,
|
|
@@ -20327,7 +20467,6 @@ __export(exports_external, {
|
|
|
20327
20467
|
iso: () => exports_iso,
|
|
20328
20468
|
ipv6: () => ipv62,
|
|
20329
20469
|
ipv4: () => ipv42,
|
|
20330
|
-
invertCodec: () => invertCodec,
|
|
20331
20470
|
intersection: () => intersection,
|
|
20332
20471
|
int64: () => int64,
|
|
20333
20472
|
int32: () => int32,
|
|
@@ -20406,7 +20545,6 @@ __export(exports_external, {
|
|
|
20406
20545
|
ZodRealError: () => ZodRealError,
|
|
20407
20546
|
ZodReadonly: () => ZodReadonly,
|
|
20408
20547
|
ZodPromise: () => ZodPromise,
|
|
20409
|
-
ZodPreprocess: () => ZodPreprocess,
|
|
20410
20548
|
ZodPrefault: () => ZodPrefault,
|
|
20411
20549
|
ZodPipe: () => ZodPipe,
|
|
20412
20550
|
ZodOptional: () => ZodOptional,
|
|
@@ -20468,7 +20606,7 @@ __export(exports_external, {
|
|
|
20468
20606
|
$brand: () => $brand
|
|
20469
20607
|
});
|
|
20470
20608
|
|
|
20471
|
-
// ../../node_modules/.bun/zod@4.
|
|
20609
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/index.js
|
|
20472
20610
|
var exports_core2 = {};
|
|
20473
20611
|
__export(exports_core2, {
|
|
20474
20612
|
version: () => version,
|
|
@@ -20667,7 +20805,6 @@ __export(exports_core2, {
|
|
|
20667
20805
|
$ZodRealError: () => $ZodRealError,
|
|
20668
20806
|
$ZodReadonly: () => $ZodReadonly,
|
|
20669
20807
|
$ZodPromise: () => $ZodPromise,
|
|
20670
|
-
$ZodPreprocess: () => $ZodPreprocess,
|
|
20671
20808
|
$ZodPrefault: () => $ZodPrefault,
|
|
20672
20809
|
$ZodPipe: () => $ZodPipe,
|
|
20673
20810
|
$ZodOptional: () => $ZodOptional,
|
|
@@ -20747,9 +20884,8 @@ __export(exports_core2, {
|
|
|
20747
20884
|
$ZodAny: () => $ZodAny
|
|
20748
20885
|
});
|
|
20749
20886
|
|
|
20750
|
-
// ../../node_modules/.bun/zod@4.
|
|
20751
|
-
var
|
|
20752
|
-
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
20887
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
20888
|
+
var NEVER = Object.freeze({
|
|
20753
20889
|
status: "aborted"
|
|
20754
20890
|
});
|
|
20755
20891
|
function $constructor(name, initializer, params) {
|
|
@@ -20784,10 +20920,10 @@ function $constructor(name, initializer, params) {
|
|
|
20784
20920
|
}
|
|
20785
20921
|
Object.defineProperty(Definition, "name", { value: name });
|
|
20786
20922
|
function _(def) {
|
|
20787
|
-
var
|
|
20923
|
+
var _a;
|
|
20788
20924
|
const inst = params?.Parent ? new Definition : this;
|
|
20789
20925
|
init(inst, def);
|
|
20790
|
-
(
|
|
20926
|
+
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
20791
20927
|
for (const fn of inst._zod.deferred) {
|
|
20792
20928
|
fn();
|
|
20793
20929
|
}
|
|
@@ -20818,14 +20954,13 @@ class $ZodEncodeError extends Error {
|
|
|
20818
20954
|
this.name = "ZodEncodeError";
|
|
20819
20955
|
}
|
|
20820
20956
|
}
|
|
20821
|
-
|
|
20822
|
-
var globalConfig = globalThis.__zod_globalConfig;
|
|
20957
|
+
var globalConfig = {};
|
|
20823
20958
|
function config(newConfig) {
|
|
20824
20959
|
if (newConfig)
|
|
20825
20960
|
Object.assign(globalConfig, newConfig);
|
|
20826
20961
|
return globalConfig;
|
|
20827
20962
|
}
|
|
20828
|
-
// ../../node_modules/.bun/zod@4.
|
|
20963
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
20829
20964
|
var exports_util = {};
|
|
20830
20965
|
__export(exports_util, {
|
|
20831
20966
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -20867,7 +21002,6 @@ __export(exports_util, {
|
|
|
20867
21002
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
20868
21003
|
finalizeIssue: () => finalizeIssue,
|
|
20869
21004
|
extend: () => extend,
|
|
20870
|
-
explicitlyAborted: () => explicitlyAborted,
|
|
20871
21005
|
escapeRegex: () => escapeRegex,
|
|
20872
21006
|
esc: () => esc,
|
|
20873
21007
|
defineLazy: () => defineLazy,
|
|
@@ -20938,14 +21072,21 @@ function cleanRegex(source) {
|
|
|
20938
21072
|
return source.slice(start, end);
|
|
20939
21073
|
}
|
|
20940
21074
|
function floatSafeRemainder(val, step) {
|
|
20941
|
-
const
|
|
20942
|
-
const
|
|
20943
|
-
|
|
20944
|
-
if (
|
|
20945
|
-
|
|
20946
|
-
|
|
20947
|
-
|
|
20948
|
-
|
|
21075
|
+
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
21076
|
+
const stepString = step.toString();
|
|
21077
|
+
let stepDecCount = (stepString.split(".")[1] || "").length;
|
|
21078
|
+
if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
|
|
21079
|
+
const match = stepString.match(/\d?e-(\d?)/);
|
|
21080
|
+
if (match?.[1]) {
|
|
21081
|
+
stepDecCount = Number.parseInt(match[1]);
|
|
21082
|
+
}
|
|
21083
|
+
}
|
|
21084
|
+
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
21085
|
+
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
21086
|
+
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
21087
|
+
return valInt % stepInt / 10 ** decCount;
|
|
21088
|
+
}
|
|
21089
|
+
var EVALUATING = Symbol("evaluating");
|
|
20949
21090
|
function defineLazy(object, key, getter) {
|
|
20950
21091
|
let value = undefined;
|
|
20951
21092
|
Object.defineProperty(object, key, {
|
|
@@ -21023,10 +21164,7 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
|
|
|
21023
21164
|
function isObject(data) {
|
|
21024
21165
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
21025
21166
|
}
|
|
21026
|
-
var allowsEval =
|
|
21027
|
-
if (globalConfig.jitless) {
|
|
21028
|
-
return false;
|
|
21029
|
-
}
|
|
21167
|
+
var allowsEval = cached2(() => {
|
|
21030
21168
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
21031
21169
|
return false;
|
|
21032
21170
|
}
|
|
@@ -21059,10 +21197,6 @@ function shallowClone(o) {
|
|
|
21059
21197
|
return { ...o };
|
|
21060
21198
|
if (Array.isArray(o))
|
|
21061
21199
|
return [...o];
|
|
21062
|
-
if (o instanceof Map)
|
|
21063
|
-
return new Map(o);
|
|
21064
|
-
if (o instanceof Set)
|
|
21065
|
-
return new Set(o);
|
|
21066
21200
|
return o;
|
|
21067
21201
|
}
|
|
21068
21202
|
function numKeys(data) {
|
|
@@ -21118,15 +21252,8 @@ var getParsedType = (data) => {
|
|
|
21118
21252
|
throw new Error(`Unknown data type: ${t}`);
|
|
21119
21253
|
}
|
|
21120
21254
|
};
|
|
21121
|
-
var propertyKeyTypes =
|
|
21122
|
-
var primitiveTypes =
|
|
21123
|
-
"string",
|
|
21124
|
-
"number",
|
|
21125
|
-
"bigint",
|
|
21126
|
-
"boolean",
|
|
21127
|
-
"symbol",
|
|
21128
|
-
"undefined"
|
|
21129
|
-
]);
|
|
21255
|
+
var propertyKeyTypes = new Set(["string", "number", "symbol"]);
|
|
21256
|
+
var primitiveTypes = new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
|
|
21130
21257
|
function escapeRegex(str) {
|
|
21131
21258
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
21132
21259
|
}
|
|
@@ -21295,9 +21422,6 @@ function safeExtend(schema, shape) {
|
|
|
21295
21422
|
return clone(schema, def);
|
|
21296
21423
|
}
|
|
21297
21424
|
function merge(a, b) {
|
|
21298
|
-
if (a._zod.def.checks?.length) {
|
|
21299
|
-
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
21300
|
-
}
|
|
21301
21425
|
const def = mergeDefs(a._zod.def, {
|
|
21302
21426
|
get shape() {
|
|
21303
21427
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -21307,7 +21431,7 @@ function merge(a, b) {
|
|
|
21307
21431
|
get catchall() {
|
|
21308
21432
|
return b._zod.def.catchall;
|
|
21309
21433
|
},
|
|
21310
|
-
checks:
|
|
21434
|
+
checks: []
|
|
21311
21435
|
});
|
|
21312
21436
|
return clone(a, def);
|
|
21313
21437
|
}
|
|
@@ -21390,20 +21514,10 @@ function aborted(x, startIndex = 0) {
|
|
|
21390
21514
|
}
|
|
21391
21515
|
return false;
|
|
21392
21516
|
}
|
|
21393
|
-
function explicitlyAborted(x, startIndex = 0) {
|
|
21394
|
-
if (x.aborted === true)
|
|
21395
|
-
return true;
|
|
21396
|
-
for (let i = startIndex;i < x.issues.length; i++) {
|
|
21397
|
-
if (x.issues[i]?.continue === false) {
|
|
21398
|
-
return true;
|
|
21399
|
-
}
|
|
21400
|
-
}
|
|
21401
|
-
return false;
|
|
21402
|
-
}
|
|
21403
21517
|
function prefixIssues(path, issues) {
|
|
21404
21518
|
return issues.map((iss) => {
|
|
21405
|
-
var
|
|
21406
|
-
(
|
|
21519
|
+
var _a;
|
|
21520
|
+
(_a = iss).path ?? (_a.path = []);
|
|
21407
21521
|
iss.path.unshift(path);
|
|
21408
21522
|
return iss;
|
|
21409
21523
|
});
|
|
@@ -21412,14 +21526,17 @@ function unwrapMessage(message) {
|
|
|
21412
21526
|
return typeof message === "string" ? message : message?.message;
|
|
21413
21527
|
}
|
|
21414
21528
|
function finalizeIssue(iss, ctx, config2) {
|
|
21415
|
-
const
|
|
21416
|
-
|
|
21417
|
-
|
|
21418
|
-
|
|
21419
|
-
|
|
21420
|
-
|
|
21529
|
+
const full = { ...iss, path: iss.path ?? [] };
|
|
21530
|
+
if (!iss.message) {
|
|
21531
|
+
const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
|
|
21532
|
+
full.message = message;
|
|
21533
|
+
}
|
|
21534
|
+
delete full.inst;
|
|
21535
|
+
delete full.continue;
|
|
21536
|
+
if (!ctx?.reportInput) {
|
|
21537
|
+
delete full.input;
|
|
21421
21538
|
}
|
|
21422
|
-
return
|
|
21539
|
+
return full;
|
|
21423
21540
|
}
|
|
21424
21541
|
function getSizableOrigin(input) {
|
|
21425
21542
|
if (input instanceof Set)
|
|
@@ -21517,7 +21634,7 @@ class Class {
|
|
|
21517
21634
|
constructor(..._args) {}
|
|
21518
21635
|
}
|
|
21519
21636
|
|
|
21520
|
-
// ../../node_modules/.bun/zod@4.
|
|
21637
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/errors.js
|
|
21521
21638
|
var initializer = (inst, def) => {
|
|
21522
21639
|
inst.name = "$ZodError";
|
|
21523
21640
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -21551,33 +21668,30 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
|
|
|
21551
21668
|
}
|
|
21552
21669
|
function formatError(error, mapper = (issue2) => issue2.message) {
|
|
21553
21670
|
const fieldErrors = { _errors: [] };
|
|
21554
|
-
const processError = (error2
|
|
21671
|
+
const processError = (error2) => {
|
|
21555
21672
|
for (const issue2 of error2.issues) {
|
|
21556
21673
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
21557
|
-
issue2.errors.map((issues) => processError({ issues }
|
|
21674
|
+
issue2.errors.map((issues) => processError({ issues }));
|
|
21558
21675
|
} else if (issue2.code === "invalid_key") {
|
|
21559
|
-
processError({ issues: issue2.issues }
|
|
21676
|
+
processError({ issues: issue2.issues });
|
|
21560
21677
|
} else if (issue2.code === "invalid_element") {
|
|
21561
|
-
processError({ issues: issue2.issues }
|
|
21678
|
+
processError({ issues: issue2.issues });
|
|
21679
|
+
} else if (issue2.path.length === 0) {
|
|
21680
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
21562
21681
|
} else {
|
|
21563
|
-
|
|
21564
|
-
|
|
21565
|
-
|
|
21566
|
-
|
|
21567
|
-
|
|
21568
|
-
|
|
21569
|
-
|
|
21570
|
-
|
|
21571
|
-
|
|
21572
|
-
|
|
21573
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
21574
|
-
} else {
|
|
21575
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
21576
|
-
curr[el]._errors.push(mapper(issue2));
|
|
21577
|
-
}
|
|
21578
|
-
curr = curr[el];
|
|
21579
|
-
i++;
|
|
21682
|
+
let curr = fieldErrors;
|
|
21683
|
+
let i = 0;
|
|
21684
|
+
while (i < issue2.path.length) {
|
|
21685
|
+
const el = issue2.path[i];
|
|
21686
|
+
const terminal = i === issue2.path.length - 1;
|
|
21687
|
+
if (!terminal) {
|
|
21688
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
21689
|
+
} else {
|
|
21690
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
21691
|
+
curr[el]._errors.push(mapper(issue2));
|
|
21580
21692
|
}
|
|
21693
|
+
curr = curr[el];
|
|
21694
|
+
i++;
|
|
21581
21695
|
}
|
|
21582
21696
|
}
|
|
21583
21697
|
}
|
|
@@ -21588,14 +21702,14 @@ function formatError(error, mapper = (issue2) => issue2.message) {
|
|
|
21588
21702
|
function treeifyError(error, mapper = (issue2) => issue2.message) {
|
|
21589
21703
|
const result = { errors: [] };
|
|
21590
21704
|
const processError = (error2, path = []) => {
|
|
21591
|
-
var
|
|
21705
|
+
var _a, _b;
|
|
21592
21706
|
for (const issue2 of error2.issues) {
|
|
21593
21707
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
21594
|
-
issue2.errors.map((issues) => processError({ issues },
|
|
21708
|
+
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
21595
21709
|
} else if (issue2.code === "invalid_key") {
|
|
21596
|
-
processError({ issues: issue2.issues },
|
|
21710
|
+
processError({ issues: issue2.issues }, issue2.path);
|
|
21597
21711
|
} else if (issue2.code === "invalid_element") {
|
|
21598
|
-
processError({ issues: issue2.issues },
|
|
21712
|
+
processError({ issues: issue2.issues }, issue2.path);
|
|
21599
21713
|
} else {
|
|
21600
21714
|
const fullpath = [...path, ...issue2.path];
|
|
21601
21715
|
if (fullpath.length === 0) {
|
|
@@ -21609,7 +21723,7 @@ function treeifyError(error, mapper = (issue2) => issue2.message) {
|
|
|
21609
21723
|
const terminal = i === fullpath.length - 1;
|
|
21610
21724
|
if (typeof el === "string") {
|
|
21611
21725
|
curr.properties ?? (curr.properties = {});
|
|
21612
|
-
(
|
|
21726
|
+
(_a = curr.properties)[el] ?? (_a[el] = { errors: [] });
|
|
21613
21727
|
curr = curr.properties[el];
|
|
21614
21728
|
} else {
|
|
21615
21729
|
curr.items ?? (curr.items = []);
|
|
@@ -21657,9 +21771,9 @@ function prettifyError(error) {
|
|
|
21657
21771
|
`);
|
|
21658
21772
|
}
|
|
21659
21773
|
|
|
21660
|
-
// ../../node_modules/.bun/zod@4.
|
|
21774
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/parse.js
|
|
21661
21775
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
21662
|
-
const ctx = _ctx ?
|
|
21776
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
21663
21777
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
21664
21778
|
if (result instanceof Promise) {
|
|
21665
21779
|
throw new $ZodAsyncError;
|
|
@@ -21673,7 +21787,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
21673
21787
|
};
|
|
21674
21788
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
21675
21789
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
21676
|
-
const ctx = _ctx ?
|
|
21790
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
21677
21791
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
21678
21792
|
if (result instanceof Promise)
|
|
21679
21793
|
result = await result;
|
|
@@ -21698,7 +21812,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
21698
21812
|
};
|
|
21699
21813
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
21700
21814
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
21701
|
-
const ctx = _ctx ?
|
|
21815
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
21702
21816
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
21703
21817
|
if (result instanceof Promise)
|
|
21704
21818
|
result = await result;
|
|
@@ -21709,7 +21823,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
21709
21823
|
};
|
|
21710
21824
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
21711
21825
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
21712
|
-
const ctx = _ctx ?
|
|
21826
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
21713
21827
|
return _parse(_Err)(schema, value, ctx);
|
|
21714
21828
|
};
|
|
21715
21829
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -21718,7 +21832,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
|
|
|
21718
21832
|
};
|
|
21719
21833
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
21720
21834
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
21721
|
-
const ctx = _ctx ?
|
|
21835
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
21722
21836
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
21723
21837
|
};
|
|
21724
21838
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -21727,7 +21841,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
21727
21841
|
};
|
|
21728
21842
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
21729
21843
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
21730
|
-
const ctx = _ctx ?
|
|
21844
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
21731
21845
|
return _safeParse(_Err)(schema, value, ctx);
|
|
21732
21846
|
};
|
|
21733
21847
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -21736,7 +21850,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
|
21736
21850
|
};
|
|
21737
21851
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
21738
21852
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
21739
|
-
const ctx = _ctx ?
|
|
21853
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
21740
21854
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
21741
21855
|
};
|
|
21742
21856
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -21744,7 +21858,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
21744
21858
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
21745
21859
|
};
|
|
21746
21860
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
21747
|
-
// ../../node_modules/.bun/zod@4.
|
|
21861
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/regexes.js
|
|
21748
21862
|
var exports_regexes = {};
|
|
21749
21863
|
__export(exports_regexes, {
|
|
21750
21864
|
xid: () => xid,
|
|
@@ -21784,7 +21898,6 @@ __export(exports_regexes, {
|
|
|
21784
21898
|
ipv4: () => ipv4,
|
|
21785
21899
|
integer: () => integer,
|
|
21786
21900
|
idnEmail: () => idnEmail,
|
|
21787
|
-
httpProtocol: () => httpProtocol,
|
|
21788
21901
|
html5Email: () => html5Email,
|
|
21789
21902
|
hostname: () => hostname,
|
|
21790
21903
|
hex: () => hex,
|
|
@@ -21807,7 +21920,7 @@ __export(exports_regexes, {
|
|
|
21807
21920
|
base64url: () => base64url,
|
|
21808
21921
|
base64: () => base64
|
|
21809
21922
|
});
|
|
21810
|
-
var cuid = /^[cC][
|
|
21923
|
+
var cuid = /^[cC][^\s-]{8,}$/;
|
|
21811
21924
|
var cuid2 = /^[0-9a-z]+$/;
|
|
21812
21925
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
21813
21926
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -21846,7 +21959,6 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
21846
21959
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
21847
21960
|
var hostname = /^(?=.{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])?)*\.?$/;
|
|
21848
21961
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
21849
|
-
var httpProtocol = /^https?$/;
|
|
21850
21962
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
21851
21963
|
var dateSource = `(?:(?:\\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])))`;
|
|
21852
21964
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -21903,12 +22015,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
21903
22015
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
21904
22016
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
21905
22017
|
|
|
21906
|
-
// ../../node_modules/.bun/zod@4.
|
|
22018
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/checks.js
|
|
21907
22019
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
21908
|
-
var
|
|
22020
|
+
var _a;
|
|
21909
22021
|
inst._zod ?? (inst._zod = {});
|
|
21910
22022
|
inst._zod.def = def;
|
|
21911
|
-
(
|
|
22023
|
+
(_a = inst._zod).onattach ?? (_a.onattach = []);
|
|
21912
22024
|
});
|
|
21913
22025
|
var numericOriginMap = {
|
|
21914
22026
|
number: "number",
|
|
@@ -21974,8 +22086,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
21974
22086
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
21975
22087
|
$ZodCheck.init(inst, def);
|
|
21976
22088
|
inst._zod.onattach.push((inst2) => {
|
|
21977
|
-
var
|
|
21978
|
-
(
|
|
22089
|
+
var _a;
|
|
22090
|
+
(_a = inst2._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
|
|
21979
22091
|
});
|
|
21980
22092
|
inst._zod.check = (payload) => {
|
|
21981
22093
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -22108,9 +22220,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
22108
22220
|
};
|
|
22109
22221
|
});
|
|
22110
22222
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
22111
|
-
var
|
|
22223
|
+
var _a;
|
|
22112
22224
|
$ZodCheck.init(inst, def);
|
|
22113
|
-
(
|
|
22225
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
22114
22226
|
const val = payload.value;
|
|
22115
22227
|
return !nullish(val) && val.size !== undefined;
|
|
22116
22228
|
});
|
|
@@ -22136,9 +22248,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
22136
22248
|
};
|
|
22137
22249
|
});
|
|
22138
22250
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
22139
|
-
var
|
|
22251
|
+
var _a;
|
|
22140
22252
|
$ZodCheck.init(inst, def);
|
|
22141
|
-
(
|
|
22253
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
22142
22254
|
const val = payload.value;
|
|
22143
22255
|
return !nullish(val) && val.size !== undefined;
|
|
22144
22256
|
});
|
|
@@ -22164,9 +22276,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
22164
22276
|
};
|
|
22165
22277
|
});
|
|
22166
22278
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
22167
|
-
var
|
|
22279
|
+
var _a;
|
|
22168
22280
|
$ZodCheck.init(inst, def);
|
|
22169
|
-
(
|
|
22281
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
22170
22282
|
const val = payload.value;
|
|
22171
22283
|
return !nullish(val) && val.size !== undefined;
|
|
22172
22284
|
});
|
|
@@ -22194,9 +22306,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
22194
22306
|
};
|
|
22195
22307
|
});
|
|
22196
22308
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
22197
|
-
var
|
|
22309
|
+
var _a;
|
|
22198
22310
|
$ZodCheck.init(inst, def);
|
|
22199
|
-
(
|
|
22311
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
22200
22312
|
const val = payload.value;
|
|
22201
22313
|
return !nullish(val) && val.length !== undefined;
|
|
22202
22314
|
});
|
|
@@ -22223,9 +22335,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
22223
22335
|
};
|
|
22224
22336
|
});
|
|
22225
22337
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
22226
|
-
var
|
|
22338
|
+
var _a;
|
|
22227
22339
|
$ZodCheck.init(inst, def);
|
|
22228
|
-
(
|
|
22340
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
22229
22341
|
const val = payload.value;
|
|
22230
22342
|
return !nullish(val) && val.length !== undefined;
|
|
22231
22343
|
});
|
|
@@ -22252,9 +22364,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
22252
22364
|
};
|
|
22253
22365
|
});
|
|
22254
22366
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
22255
|
-
var
|
|
22367
|
+
var _a;
|
|
22256
22368
|
$ZodCheck.init(inst, def);
|
|
22257
|
-
(
|
|
22369
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
22258
22370
|
const val = payload.value;
|
|
22259
22371
|
return !nullish(val) && val.length !== undefined;
|
|
22260
22372
|
});
|
|
@@ -22283,7 +22395,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
22283
22395
|
};
|
|
22284
22396
|
});
|
|
22285
22397
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
22286
|
-
var
|
|
22398
|
+
var _a, _b;
|
|
22287
22399
|
$ZodCheck.init(inst, def);
|
|
22288
22400
|
inst._zod.onattach.push((inst2) => {
|
|
22289
22401
|
const bag = inst2._zod.bag;
|
|
@@ -22294,7 +22406,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
22294
22406
|
}
|
|
22295
22407
|
});
|
|
22296
22408
|
if (def.pattern)
|
|
22297
|
-
(
|
|
22409
|
+
(_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
22298
22410
|
def.pattern.lastIndex = 0;
|
|
22299
22411
|
if (def.pattern.test(payload.value))
|
|
22300
22412
|
return;
|
|
@@ -22450,7 +22562,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
22450
22562
|
};
|
|
22451
22563
|
});
|
|
22452
22564
|
|
|
22453
|
-
// ../../node_modules/.bun/zod@4.
|
|
22565
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/doc.js
|
|
22454
22566
|
class Doc {
|
|
22455
22567
|
constructor(args = []) {
|
|
22456
22568
|
this.content = [];
|
|
@@ -22488,16 +22600,16 @@ class Doc {
|
|
|
22488
22600
|
}
|
|
22489
22601
|
}
|
|
22490
22602
|
|
|
22491
|
-
// ../../node_modules/.bun/zod@4.
|
|
22603
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/versions.js
|
|
22492
22604
|
var version = {
|
|
22493
22605
|
major: 4,
|
|
22494
|
-
minor:
|
|
22495
|
-
patch:
|
|
22606
|
+
minor: 3,
|
|
22607
|
+
patch: 6
|
|
22496
22608
|
};
|
|
22497
22609
|
|
|
22498
|
-
// ../../node_modules/.bun/zod@4.
|
|
22610
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.js
|
|
22499
22611
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
22500
|
-
var
|
|
22612
|
+
var _a;
|
|
22501
22613
|
inst ?? (inst = {});
|
|
22502
22614
|
inst._zod.def = def;
|
|
22503
22615
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -22512,7 +22624,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
22512
22624
|
}
|
|
22513
22625
|
}
|
|
22514
22626
|
if (checks.length === 0) {
|
|
22515
|
-
(
|
|
22627
|
+
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
22516
22628
|
inst._zod.deferred?.push(() => {
|
|
22517
22629
|
inst._zod.run = inst._zod.parse;
|
|
22518
22630
|
});
|
|
@@ -22522,8 +22634,6 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
22522
22634
|
let asyncResult;
|
|
22523
22635
|
for (const ch of checks2) {
|
|
22524
22636
|
if (ch._zod.def.when) {
|
|
22525
|
-
if (explicitlyAborted(payload))
|
|
22526
|
-
continue;
|
|
22527
22637
|
const shouldRun = ch._zod.def.when(payload);
|
|
22528
22638
|
if (!shouldRun)
|
|
22529
22639
|
continue;
|
|
@@ -22663,19 +22773,6 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
22663
22773
|
inst._zod.check = (payload) => {
|
|
22664
22774
|
try {
|
|
22665
22775
|
const trimmed = payload.value.trim();
|
|
22666
|
-
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
22667
|
-
if (!/^https?:\/\//i.test(trimmed)) {
|
|
22668
|
-
payload.issues.push({
|
|
22669
|
-
code: "invalid_format",
|
|
22670
|
-
format: "url",
|
|
22671
|
-
note: "Invalid URL format",
|
|
22672
|
-
input: payload.value,
|
|
22673
|
-
inst,
|
|
22674
|
-
continue: !def.abort
|
|
22675
|
-
});
|
|
22676
|
-
return;
|
|
22677
|
-
}
|
|
22678
|
-
}
|
|
22679
22776
|
const url = new URL(trimmed);
|
|
22680
22777
|
if (def.hostname) {
|
|
22681
22778
|
def.hostname.lastIndex = 0;
|
|
@@ -22829,8 +22926,6 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
22829
22926
|
function isValidBase64(data) {
|
|
22830
22927
|
if (data === "")
|
|
22831
22928
|
return true;
|
|
22832
|
-
if (/\s/.test(data))
|
|
22833
|
-
return false;
|
|
22834
22929
|
if (data.length % 4 !== 0)
|
|
22835
22930
|
return false;
|
|
22836
22931
|
try {
|
|
@@ -23020,6 +23115,8 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
|
|
|
23020
23115
|
$ZodType.init(inst, def);
|
|
23021
23116
|
inst._zod.pattern = _undefined;
|
|
23022
23117
|
inst._zod.values = new Set([undefined]);
|
|
23118
|
+
inst._zod.optin = "optional";
|
|
23119
|
+
inst._zod.optout = "optional";
|
|
23023
23120
|
inst._zod.parse = (payload, _ctx) => {
|
|
23024
23121
|
const input = payload.value;
|
|
23025
23122
|
if (typeof input === "undefined")
|
|
@@ -23147,27 +23244,15 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
23147
23244
|
return payload;
|
|
23148
23245
|
};
|
|
23149
23246
|
});
|
|
23150
|
-
function handlePropertyResult(result, final, key, input,
|
|
23151
|
-
const isPresent = key in input;
|
|
23247
|
+
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
23152
23248
|
if (result.issues.length) {
|
|
23153
|
-
if (
|
|
23249
|
+
if (isOptionalOut && !(key in input)) {
|
|
23154
23250
|
return;
|
|
23155
23251
|
}
|
|
23156
23252
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
23157
23253
|
}
|
|
23158
|
-
if (!isPresent && !isOptionalIn) {
|
|
23159
|
-
if (!result.issues.length) {
|
|
23160
|
-
final.issues.push({
|
|
23161
|
-
code: "invalid_type",
|
|
23162
|
-
expected: "nonoptional",
|
|
23163
|
-
input: undefined,
|
|
23164
|
-
path: [key]
|
|
23165
|
-
});
|
|
23166
|
-
}
|
|
23167
|
-
return;
|
|
23168
|
-
}
|
|
23169
23254
|
if (result.value === undefined) {
|
|
23170
|
-
if (
|
|
23255
|
+
if (key in input) {
|
|
23171
23256
|
final.value[key] = undefined;
|
|
23172
23257
|
}
|
|
23173
23258
|
} else {
|
|
@@ -23195,11 +23280,8 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
23195
23280
|
const keySet = def.keySet;
|
|
23196
23281
|
const _catchall = def.catchall._zod;
|
|
23197
23282
|
const t = _catchall.def.type;
|
|
23198
|
-
const isOptionalIn = _catchall.optin === "optional";
|
|
23199
23283
|
const isOptionalOut = _catchall.optout === "optional";
|
|
23200
23284
|
for (const key in input) {
|
|
23201
|
-
if (key === "__proto__")
|
|
23202
|
-
continue;
|
|
23203
23285
|
if (keySet.has(key))
|
|
23204
23286
|
continue;
|
|
23205
23287
|
if (t === "never") {
|
|
@@ -23208,9 +23290,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
23208
23290
|
}
|
|
23209
23291
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
23210
23292
|
if (r instanceof Promise) {
|
|
23211
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input,
|
|
23293
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
23212
23294
|
} else {
|
|
23213
|
-
handlePropertyResult(r, payload, key, input,
|
|
23295
|
+
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
23214
23296
|
}
|
|
23215
23297
|
}
|
|
23216
23298
|
if (unrecognized.length) {
|
|
@@ -23276,13 +23358,12 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
23276
23358
|
const shape = value.shape;
|
|
23277
23359
|
for (const key of value.keys) {
|
|
23278
23360
|
const el = shape[key];
|
|
23279
|
-
const isOptionalIn = el._zod.optin === "optional";
|
|
23280
23361
|
const isOptionalOut = el._zod.optout === "optional";
|
|
23281
23362
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
23282
23363
|
if (r instanceof Promise) {
|
|
23283
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input,
|
|
23364
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
23284
23365
|
} else {
|
|
23285
|
-
handlePropertyResult(r, payload, key, input,
|
|
23366
|
+
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
23286
23367
|
}
|
|
23287
23368
|
}
|
|
23288
23369
|
if (!catchall) {
|
|
@@ -23313,10 +23394,9 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
23313
23394
|
const id = ids[key];
|
|
23314
23395
|
const k = esc(key);
|
|
23315
23396
|
const schema = shape[key];
|
|
23316
|
-
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
23317
23397
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
23318
23398
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
23319
|
-
if (
|
|
23399
|
+
if (isOptionalOut) {
|
|
23320
23400
|
doc.write(`
|
|
23321
23401
|
if (${id}.issues.length) {
|
|
23322
23402
|
if (${k} in input) {
|
|
@@ -23335,33 +23415,6 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
23335
23415
|
newResult[${k}] = ${id}.value;
|
|
23336
23416
|
}
|
|
23337
23417
|
|
|
23338
|
-
`);
|
|
23339
|
-
} else if (!isOptionalIn) {
|
|
23340
|
-
doc.write(`
|
|
23341
|
-
const ${id}_present = ${k} in input;
|
|
23342
|
-
if (${id}.issues.length) {
|
|
23343
|
-
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
23344
|
-
...iss,
|
|
23345
|
-
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
23346
|
-
})));
|
|
23347
|
-
}
|
|
23348
|
-
if (!${id}_present && !${id}.issues.length) {
|
|
23349
|
-
payload.issues.push({
|
|
23350
|
-
code: "invalid_type",
|
|
23351
|
-
expected: "nonoptional",
|
|
23352
|
-
input: undefined,
|
|
23353
|
-
path: [${k}]
|
|
23354
|
-
});
|
|
23355
|
-
}
|
|
23356
|
-
|
|
23357
|
-
if (${id}_present) {
|
|
23358
|
-
if (${id}.value === undefined) {
|
|
23359
|
-
newResult[${k}] = undefined;
|
|
23360
|
-
} else {
|
|
23361
|
-
newResult[${k}] = ${id}.value;
|
|
23362
|
-
}
|
|
23363
|
-
}
|
|
23364
|
-
|
|
23365
23418
|
`);
|
|
23366
23419
|
} else {
|
|
23367
23420
|
doc.write(`
|
|
@@ -23455,9 +23508,10 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
23455
23508
|
}
|
|
23456
23509
|
return;
|
|
23457
23510
|
});
|
|
23458
|
-
const
|
|
23511
|
+
const single = def.options.length === 1;
|
|
23512
|
+
const first = def.options[0]._zod.run;
|
|
23459
23513
|
inst._zod.parse = (payload, ctx) => {
|
|
23460
|
-
if (
|
|
23514
|
+
if (single) {
|
|
23461
23515
|
return first(payload, ctx);
|
|
23462
23516
|
}
|
|
23463
23517
|
let async = false;
|
|
@@ -23510,9 +23564,10 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
|
23510
23564
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
23511
23565
|
$ZodUnion.init(inst, def);
|
|
23512
23566
|
def.inclusive = false;
|
|
23513
|
-
const
|
|
23567
|
+
const single = def.options.length === 1;
|
|
23568
|
+
const first = def.options[0]._zod.run;
|
|
23514
23569
|
inst._zod.parse = (payload, ctx) => {
|
|
23515
|
-
if (
|
|
23570
|
+
if (single) {
|
|
23516
23571
|
return first(payload, ctx);
|
|
23517
23572
|
}
|
|
23518
23573
|
let async = false;
|
|
@@ -23587,7 +23642,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
23587
23642
|
if (opt) {
|
|
23588
23643
|
return opt._zod.run(payload, ctx);
|
|
23589
23644
|
}
|
|
23590
|
-
if (def.unionFallback
|
|
23645
|
+
if (def.unionFallback) {
|
|
23591
23646
|
return _super(payload, ctx);
|
|
23592
23647
|
}
|
|
23593
23648
|
payload.issues.push({
|
|
@@ -23595,7 +23650,6 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
23595
23650
|
errors: [],
|
|
23596
23651
|
note: "No matching discriminator",
|
|
23597
23652
|
discriminator: def.discriminator,
|
|
23598
|
-
options: Array.from(disc.value.keys()),
|
|
23599
23653
|
input,
|
|
23600
23654
|
path: [def.discriminator],
|
|
23601
23655
|
inst
|
|
@@ -23717,96 +23771,64 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
23717
23771
|
}
|
|
23718
23772
|
payload.value = [];
|
|
23719
23773
|
const proms = [];
|
|
23720
|
-
const
|
|
23721
|
-
const
|
|
23774
|
+
const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
|
|
23775
|
+
const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
|
|
23722
23776
|
if (!def.rest) {
|
|
23723
|
-
|
|
23777
|
+
const tooBig = input.length > items.length;
|
|
23778
|
+
const tooSmall = input.length < optStart - 1;
|
|
23779
|
+
if (tooBig || tooSmall) {
|
|
23724
23780
|
payload.issues.push({
|
|
23725
|
-
code: "too_small",
|
|
23726
|
-
minimum: optinStart,
|
|
23727
|
-
inclusive: true,
|
|
23781
|
+
...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
|
|
23728
23782
|
input,
|
|
23729
23783
|
inst,
|
|
23730
23784
|
origin: "array"
|
|
23731
23785
|
});
|
|
23732
23786
|
return payload;
|
|
23733
23787
|
}
|
|
23734
|
-
if (input.length > items.length) {
|
|
23735
|
-
payload.issues.push({
|
|
23736
|
-
code: "too_big",
|
|
23737
|
-
maximum: items.length,
|
|
23738
|
-
inclusive: true,
|
|
23739
|
-
input,
|
|
23740
|
-
inst,
|
|
23741
|
-
origin: "array"
|
|
23742
|
-
});
|
|
23743
|
-
}
|
|
23744
23788
|
}
|
|
23745
|
-
|
|
23746
|
-
for (
|
|
23747
|
-
|
|
23748
|
-
if (
|
|
23749
|
-
|
|
23750
|
-
|
|
23751
|
-
|
|
23789
|
+
let i = -1;
|
|
23790
|
+
for (const item of items) {
|
|
23791
|
+
i++;
|
|
23792
|
+
if (i >= input.length) {
|
|
23793
|
+
if (i >= optStart)
|
|
23794
|
+
continue;
|
|
23795
|
+
}
|
|
23796
|
+
const result = item._zod.run({
|
|
23797
|
+
value: input[i],
|
|
23798
|
+
issues: []
|
|
23799
|
+
}, ctx);
|
|
23800
|
+
if (result instanceof Promise) {
|
|
23801
|
+
proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
|
|
23752
23802
|
} else {
|
|
23753
|
-
|
|
23803
|
+
handleTupleResult(result, payload, i);
|
|
23754
23804
|
}
|
|
23755
23805
|
}
|
|
23756
23806
|
if (def.rest) {
|
|
23757
|
-
let i = items.length - 1;
|
|
23758
23807
|
const rest = input.slice(items.length);
|
|
23759
23808
|
for (const el of rest) {
|
|
23760
23809
|
i++;
|
|
23761
|
-
const result = def.rest._zod.run({
|
|
23810
|
+
const result = def.rest._zod.run({
|
|
23811
|
+
value: el,
|
|
23812
|
+
issues: []
|
|
23813
|
+
}, ctx);
|
|
23762
23814
|
if (result instanceof Promise) {
|
|
23763
|
-
proms.push(result.then((
|
|
23815
|
+
proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
|
|
23764
23816
|
} else {
|
|
23765
23817
|
handleTupleResult(result, payload, i);
|
|
23766
23818
|
}
|
|
23767
23819
|
}
|
|
23768
23820
|
}
|
|
23769
|
-
if (proms.length)
|
|
23770
|
-
return Promise.all(proms).then(() =>
|
|
23771
|
-
|
|
23772
|
-
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
23821
|
+
if (proms.length)
|
|
23822
|
+
return Promise.all(proms).then(() => payload);
|
|
23823
|
+
return payload;
|
|
23773
23824
|
};
|
|
23774
23825
|
});
|
|
23775
|
-
function getTupleOptStart(items, key) {
|
|
23776
|
-
for (let i = items.length - 1;i >= 0; i--) {
|
|
23777
|
-
if (items[i]._zod[key] !== "optional")
|
|
23778
|
-
return i + 1;
|
|
23779
|
-
}
|
|
23780
|
-
return 0;
|
|
23781
|
-
}
|
|
23782
23826
|
function handleTupleResult(result, final, index) {
|
|
23783
23827
|
if (result.issues.length) {
|
|
23784
23828
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
23785
23829
|
}
|
|
23786
23830
|
final.value[index] = result.value;
|
|
23787
23831
|
}
|
|
23788
|
-
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
23789
|
-
for (let i = 0;i < items.length; i++) {
|
|
23790
|
-
const r = itemResults[i];
|
|
23791
|
-
const isPresent = i < input.length;
|
|
23792
|
-
if (r.issues.length) {
|
|
23793
|
-
if (!isPresent && i >= optoutStart) {
|
|
23794
|
-
final.value.length = i;
|
|
23795
|
-
break;
|
|
23796
|
-
}
|
|
23797
|
-
final.issues.push(...prefixIssues(i, r.issues));
|
|
23798
|
-
}
|
|
23799
|
-
final.value[i] = r.value;
|
|
23800
|
-
}
|
|
23801
|
-
for (let i = final.value.length - 1;i >= input.length; i--) {
|
|
23802
|
-
if (items[i]._zod.optout === "optional" && final.value[i] === undefined) {
|
|
23803
|
-
final.value.length = i;
|
|
23804
|
-
} else {
|
|
23805
|
-
break;
|
|
23806
|
-
}
|
|
23807
|
-
}
|
|
23808
|
-
return final;
|
|
23809
|
-
}
|
|
23810
23832
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
23811
23833
|
$ZodType.init(inst, def);
|
|
23812
23834
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -23828,35 +23850,19 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
23828
23850
|
for (const key of values) {
|
|
23829
23851
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
23830
23852
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
23831
|
-
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
23832
|
-
if (keyResult instanceof Promise) {
|
|
23833
|
-
throw new Error("Async schemas not supported in object keys currently");
|
|
23834
|
-
}
|
|
23835
|
-
if (keyResult.issues.length) {
|
|
23836
|
-
payload.issues.push({
|
|
23837
|
-
code: "invalid_key",
|
|
23838
|
-
origin: "record",
|
|
23839
|
-
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
23840
|
-
input: key,
|
|
23841
|
-
path: [key],
|
|
23842
|
-
inst
|
|
23843
|
-
});
|
|
23844
|
-
continue;
|
|
23845
|
-
}
|
|
23846
|
-
const outKey = keyResult.value;
|
|
23847
23853
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
23848
23854
|
if (result instanceof Promise) {
|
|
23849
23855
|
proms.push(result.then((result2) => {
|
|
23850
23856
|
if (result2.issues.length) {
|
|
23851
23857
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
23852
23858
|
}
|
|
23853
|
-
payload.value[
|
|
23859
|
+
payload.value[key] = result2.value;
|
|
23854
23860
|
}));
|
|
23855
23861
|
} else {
|
|
23856
23862
|
if (result.issues.length) {
|
|
23857
23863
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
23858
23864
|
}
|
|
23859
|
-
payload.value[
|
|
23865
|
+
payload.value[key] = result.value;
|
|
23860
23866
|
}
|
|
23861
23867
|
}
|
|
23862
23868
|
}
|
|
@@ -23880,8 +23886,6 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
23880
23886
|
for (const key of Reflect.ownKeys(input)) {
|
|
23881
23887
|
if (key === "__proto__")
|
|
23882
23888
|
continue;
|
|
23883
|
-
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
23884
|
-
continue;
|
|
23885
23889
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
23886
23890
|
if (keyResult instanceof Promise) {
|
|
23887
23891
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -24086,7 +24090,6 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
|
|
|
24086
24090
|
});
|
|
24087
24091
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
24088
24092
|
$ZodType.init(inst, def);
|
|
24089
|
-
inst._zod.optin = "optional";
|
|
24090
24093
|
inst._zod.parse = (payload, ctx) => {
|
|
24091
24094
|
if (ctx.direction === "backward") {
|
|
24092
24095
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -24096,7 +24099,6 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
24096
24099
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
24097
24100
|
return output.then((output2) => {
|
|
24098
24101
|
payload.value = output2;
|
|
24099
|
-
payload.fallback = true;
|
|
24100
24102
|
return payload;
|
|
24101
24103
|
});
|
|
24102
24104
|
}
|
|
@@ -24104,12 +24106,11 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
24104
24106
|
throw new $ZodAsyncError;
|
|
24105
24107
|
}
|
|
24106
24108
|
payload.value = _out;
|
|
24107
|
-
payload.fallback = true;
|
|
24108
24109
|
return payload;
|
|
24109
24110
|
};
|
|
24110
24111
|
});
|
|
24111
24112
|
function handleOptionalResult(result, input) {
|
|
24112
|
-
if (
|
|
24113
|
+
if (result.issues.length && input === undefined) {
|
|
24113
24114
|
return { issues: [], value: undefined };
|
|
24114
24115
|
}
|
|
24115
24116
|
return result;
|
|
@@ -24127,11 +24128,10 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
24127
24128
|
});
|
|
24128
24129
|
inst._zod.parse = (payload, ctx) => {
|
|
24129
24130
|
if (def.innerType._zod.optin === "optional") {
|
|
24130
|
-
const input = payload.value;
|
|
24131
24131
|
const result = def.innerType._zod.run(payload, ctx);
|
|
24132
24132
|
if (result instanceof Promise)
|
|
24133
|
-
return result.then((r) => handleOptionalResult(r,
|
|
24134
|
-
return handleOptionalResult(result,
|
|
24133
|
+
return result.then((r) => handleOptionalResult(r, payload.value));
|
|
24134
|
+
return handleOptionalResult(result, payload.value);
|
|
24135
24135
|
}
|
|
24136
24136
|
if (payload.value === undefined) {
|
|
24137
24137
|
return payload;
|
|
@@ -24247,7 +24247,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
24247
24247
|
});
|
|
24248
24248
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
24249
24249
|
$ZodType.init(inst, def);
|
|
24250
|
-
inst._zod
|
|
24250
|
+
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
24251
24251
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
24252
24252
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
24253
24253
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -24267,7 +24267,6 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
24267
24267
|
input: payload.value
|
|
24268
24268
|
});
|
|
24269
24269
|
payload.issues = [];
|
|
24270
|
-
payload.fallback = true;
|
|
24271
24270
|
}
|
|
24272
24271
|
return payload;
|
|
24273
24272
|
});
|
|
@@ -24282,7 +24281,6 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
24282
24281
|
input: payload.value
|
|
24283
24282
|
});
|
|
24284
24283
|
payload.issues = [];
|
|
24285
|
-
payload.fallback = true;
|
|
24286
24284
|
}
|
|
24287
24285
|
return payload;
|
|
24288
24286
|
};
|
|
@@ -24328,7 +24326,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
24328
24326
|
left.aborted = true;
|
|
24329
24327
|
return left;
|
|
24330
24328
|
}
|
|
24331
|
-
return next._zod.run({ value: left.value, issues: left.issues
|
|
24329
|
+
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
24332
24330
|
}
|
|
24333
24331
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
24334
24332
|
$ZodType.init(inst, def);
|
|
@@ -24380,9 +24378,6 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
|
24380
24378
|
}
|
|
24381
24379
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
24382
24380
|
}
|
|
24383
|
-
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
24384
|
-
$ZodPipe.init(inst, def);
|
|
24385
|
-
});
|
|
24386
24381
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
24387
24382
|
$ZodType.init(inst, def);
|
|
24388
24383
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -24534,12 +24529,7 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
24534
24529
|
});
|
|
24535
24530
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
24536
24531
|
$ZodType.init(inst, def);
|
|
24537
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
24538
|
-
const d = def;
|
|
24539
|
-
if (!d._cachedInner)
|
|
24540
|
-
d._cachedInner = def.getter();
|
|
24541
|
-
return d._cachedInner;
|
|
24542
|
-
});
|
|
24532
|
+
defineLazy(inst._zod, "innerType", () => def.getter());
|
|
24543
24533
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
24544
24534
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
24545
24535
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? undefined);
|
|
@@ -24579,7 +24569,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
24579
24569
|
payload.issues.push(issue(_iss));
|
|
24580
24570
|
}
|
|
24581
24571
|
}
|
|
24582
|
-
// ../../node_modules/.bun/zod@4.
|
|
24572
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/index.js
|
|
24583
24573
|
var exports_locales = {};
|
|
24584
24574
|
__export(exports_locales, {
|
|
24585
24575
|
zhTW: () => zh_TW_default,
|
|
@@ -24596,7 +24586,6 @@ __export(exports_locales, {
|
|
|
24596
24586
|
sv: () => sv_default,
|
|
24597
24587
|
sl: () => sl_default,
|
|
24598
24588
|
ru: () => ru_default,
|
|
24599
|
-
ro: () => ro_default,
|
|
24600
24589
|
pt: () => pt_default,
|
|
24601
24590
|
ps: () => ps_default,
|
|
24602
24591
|
pl: () => pl_default,
|
|
@@ -24616,7 +24605,6 @@ __export(exports_locales, {
|
|
|
24616
24605
|
id: () => id_default,
|
|
24617
24606
|
hy: () => hy_default,
|
|
24618
24607
|
hu: () => hu_default,
|
|
24619
|
-
hr: () => hr_default,
|
|
24620
24608
|
he: () => he_default,
|
|
24621
24609
|
frCA: () => fr_CA_default,
|
|
24622
24610
|
fr: () => fr_default,
|
|
@@ -24625,7 +24613,6 @@ __export(exports_locales, {
|
|
|
24625
24613
|
es: () => es_default,
|
|
24626
24614
|
eo: () => eo_default,
|
|
24627
24615
|
en: () => en_default,
|
|
24628
|
-
el: () => el_default,
|
|
24629
24616
|
de: () => de_default,
|
|
24630
24617
|
da: () => da_default,
|
|
24631
24618
|
cs: () => cs_default,
|
|
@@ -24636,7 +24623,7 @@ __export(exports_locales, {
|
|
|
24636
24623
|
ar: () => ar_default
|
|
24637
24624
|
});
|
|
24638
24625
|
|
|
24639
|
-
// ../../node_modules/.bun/zod@4.
|
|
24626
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ar.js
|
|
24640
24627
|
var error = () => {
|
|
24641
24628
|
const Sizable = {
|
|
24642
24629
|
string: { unit: "حرف", verb: "أن يحوي" },
|
|
@@ -24742,7 +24729,7 @@ function ar_default() {
|
|
|
24742
24729
|
localeError: error()
|
|
24743
24730
|
};
|
|
24744
24731
|
}
|
|
24745
|
-
// ../../node_modules/.bun/zod@4.
|
|
24732
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/az.js
|
|
24746
24733
|
var error2 = () => {
|
|
24747
24734
|
const Sizable = {
|
|
24748
24735
|
string: { unit: "simvol", verb: "olmalıdır" },
|
|
@@ -24847,7 +24834,7 @@ function az_default() {
|
|
|
24847
24834
|
localeError: error2()
|
|
24848
24835
|
};
|
|
24849
24836
|
}
|
|
24850
|
-
// ../../node_modules/.bun/zod@4.
|
|
24837
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/be.js
|
|
24851
24838
|
function getBelarusianPlural(count, one, few, many) {
|
|
24852
24839
|
const absCount = Math.abs(count);
|
|
24853
24840
|
const lastDigit = absCount % 10;
|
|
@@ -25003,7 +24990,7 @@ function be_default() {
|
|
|
25003
24990
|
localeError: error3()
|
|
25004
24991
|
};
|
|
25005
24992
|
}
|
|
25006
|
-
// ../../node_modules/.bun/zod@4.
|
|
24993
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/bg.js
|
|
25007
24994
|
var error4 = () => {
|
|
25008
24995
|
const Sizable = {
|
|
25009
24996
|
string: { unit: "символа", verb: "да съдържа" },
|
|
@@ -25123,7 +25110,7 @@ function bg_default() {
|
|
|
25123
25110
|
localeError: error4()
|
|
25124
25111
|
};
|
|
25125
25112
|
}
|
|
25126
|
-
// ../../node_modules/.bun/zod@4.
|
|
25113
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ca.js
|
|
25127
25114
|
var error5 = () => {
|
|
25128
25115
|
const Sizable = {
|
|
25129
25116
|
string: { unit: "caràcters", verb: "contenir" },
|
|
@@ -25230,7 +25217,7 @@ function ca_default() {
|
|
|
25230
25217
|
localeError: error5()
|
|
25231
25218
|
};
|
|
25232
25219
|
}
|
|
25233
|
-
// ../../node_modules/.bun/zod@4.
|
|
25220
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/cs.js
|
|
25234
25221
|
var error6 = () => {
|
|
25235
25222
|
const Sizable = {
|
|
25236
25223
|
string: { unit: "znaků", verb: "mít" },
|
|
@@ -25341,7 +25328,7 @@ function cs_default() {
|
|
|
25341
25328
|
localeError: error6()
|
|
25342
25329
|
};
|
|
25343
25330
|
}
|
|
25344
|
-
// ../../node_modules/.bun/zod@4.
|
|
25331
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/da.js
|
|
25345
25332
|
var error7 = () => {
|
|
25346
25333
|
const Sizable = {
|
|
25347
25334
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -25456,7 +25443,7 @@ function da_default() {
|
|
|
25456
25443
|
localeError: error7()
|
|
25457
25444
|
};
|
|
25458
25445
|
}
|
|
25459
|
-
// ../../node_modules/.bun/zod@4.
|
|
25446
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/de.js
|
|
25460
25447
|
var error8 = () => {
|
|
25461
25448
|
const Sizable = {
|
|
25462
25449
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -25564,117 +25551,8 @@ function de_default() {
|
|
|
25564
25551
|
localeError: error8()
|
|
25565
25552
|
};
|
|
25566
25553
|
}
|
|
25567
|
-
// ../../node_modules/.bun/zod@4.
|
|
25554
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/en.js
|
|
25568
25555
|
var error9 = () => {
|
|
25569
|
-
const Sizable = {
|
|
25570
|
-
string: { unit: "χαρακτήρες", verb: "να έχει" },
|
|
25571
|
-
file: { unit: "bytes", verb: "να έχει" },
|
|
25572
|
-
array: { unit: "στοιχεία", verb: "να έχει" },
|
|
25573
|
-
set: { unit: "στοιχεία", verb: "να έχει" },
|
|
25574
|
-
map: { unit: "καταχωρήσεις", verb: "να έχει" }
|
|
25575
|
-
};
|
|
25576
|
-
function getSizing(origin) {
|
|
25577
|
-
return Sizable[origin] ?? null;
|
|
25578
|
-
}
|
|
25579
|
-
const FormatDictionary = {
|
|
25580
|
-
regex: "είσοδος",
|
|
25581
|
-
email: "διεύθυνση email",
|
|
25582
|
-
url: "URL",
|
|
25583
|
-
emoji: "emoji",
|
|
25584
|
-
uuid: "UUID",
|
|
25585
|
-
uuidv4: "UUIDv4",
|
|
25586
|
-
uuidv6: "UUIDv6",
|
|
25587
|
-
nanoid: "nanoid",
|
|
25588
|
-
guid: "GUID",
|
|
25589
|
-
cuid: "cuid",
|
|
25590
|
-
cuid2: "cuid2",
|
|
25591
|
-
ulid: "ULID",
|
|
25592
|
-
xid: "XID",
|
|
25593
|
-
ksuid: "KSUID",
|
|
25594
|
-
datetime: "ISO ημερομηνία και ώρα",
|
|
25595
|
-
date: "ISO ημερομηνία",
|
|
25596
|
-
time: "ISO ώρα",
|
|
25597
|
-
duration: "ISO διάρκεια",
|
|
25598
|
-
ipv4: "διεύθυνση IPv4",
|
|
25599
|
-
ipv6: "διεύθυνση IPv6",
|
|
25600
|
-
mac: "διεύθυνση MAC",
|
|
25601
|
-
cidrv4: "εύρος IPv4",
|
|
25602
|
-
cidrv6: "εύρος IPv6",
|
|
25603
|
-
base64: "συμβολοσειρά κωδικοποιημένη σε base64",
|
|
25604
|
-
base64url: "συμβολοσειρά κωδικοποιημένη σε base64url",
|
|
25605
|
-
json_string: "συμβολοσειρά JSON",
|
|
25606
|
-
e164: "αριθμός E.164",
|
|
25607
|
-
jwt: "JWT",
|
|
25608
|
-
template_literal: "είσοδος"
|
|
25609
|
-
};
|
|
25610
|
-
const TypeDictionary = {
|
|
25611
|
-
nan: "NaN"
|
|
25612
|
-
};
|
|
25613
|
-
return (issue2) => {
|
|
25614
|
-
switch (issue2.code) {
|
|
25615
|
-
case "invalid_type": {
|
|
25616
|
-
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
25617
|
-
const receivedType = parsedType(issue2.input);
|
|
25618
|
-
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
25619
|
-
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
25620
|
-
return `Μη έγκυρη είσοδος: αναμενόταν instanceof ${issue2.expected}, λήφθηκε ${received}`;
|
|
25621
|
-
}
|
|
25622
|
-
return `Μη έγκυρη είσοδος: αναμενόταν ${expected}, λήφθηκε ${received}`;
|
|
25623
|
-
}
|
|
25624
|
-
case "invalid_value":
|
|
25625
|
-
if (issue2.values.length === 1)
|
|
25626
|
-
return `Μη έγκυρη είσοδος: αναμενόταν ${stringifyPrimitive(issue2.values[0])}`;
|
|
25627
|
-
return `Μη έγκυρη επιλογή: αναμενόταν ένα από ${joinValues(issue2.values, "|")}`;
|
|
25628
|
-
case "too_big": {
|
|
25629
|
-
const adj = issue2.inclusive ? "<=" : "<";
|
|
25630
|
-
const sizing = getSizing(issue2.origin);
|
|
25631
|
-
if (sizing)
|
|
25632
|
-
return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να έχει ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "στοιχεία"}`;
|
|
25633
|
-
return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να είναι ${adj}${issue2.maximum.toString()}`;
|
|
25634
|
-
}
|
|
25635
|
-
case "too_small": {
|
|
25636
|
-
const adj = issue2.inclusive ? ">=" : ">";
|
|
25637
|
-
const sizing = getSizing(issue2.origin);
|
|
25638
|
-
if (sizing) {
|
|
25639
|
-
return `Πολύ μικρό: αναμενόταν ${issue2.origin} να έχει ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
25640
|
-
}
|
|
25641
|
-
return `Πολύ μικρό: αναμενόταν ${issue2.origin} να είναι ${adj}${issue2.minimum.toString()}`;
|
|
25642
|
-
}
|
|
25643
|
-
case "invalid_format": {
|
|
25644
|
-
const _issue = issue2;
|
|
25645
|
-
if (_issue.format === "starts_with") {
|
|
25646
|
-
return `Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${_issue.prefix}"`;
|
|
25647
|
-
}
|
|
25648
|
-
if (_issue.format === "ends_with")
|
|
25649
|
-
return `Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${_issue.suffix}"`;
|
|
25650
|
-
if (_issue.format === "includes")
|
|
25651
|
-
return `Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${_issue.includes}"`;
|
|
25652
|
-
if (_issue.format === "regex")
|
|
25653
|
-
return `Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${_issue.pattern}`;
|
|
25654
|
-
return `Μη έγκυρο: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
25655
|
-
}
|
|
25656
|
-
case "not_multiple_of":
|
|
25657
|
-
return `Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${issue2.divisor}`;
|
|
25658
|
-
case "unrecognized_keys":
|
|
25659
|
-
return `Άγνωστ${issue2.keys.length > 1 ? "α" : "ο"} κλειδ${issue2.keys.length > 1 ? "ιά" : "ί"}: ${joinValues(issue2.keys, ", ")}`;
|
|
25660
|
-
case "invalid_key":
|
|
25661
|
-
return `Μη έγκυρο κλειδί στο ${issue2.origin}`;
|
|
25662
|
-
case "invalid_union":
|
|
25663
|
-
return "Μη έγκυρη είσοδος";
|
|
25664
|
-
case "invalid_element":
|
|
25665
|
-
return `Μη έγκυρη τιμή στο ${issue2.origin}`;
|
|
25666
|
-
default:
|
|
25667
|
-
return `Μη έγκυρη είσοδος`;
|
|
25668
|
-
}
|
|
25669
|
-
};
|
|
25670
|
-
};
|
|
25671
|
-
function el_default() {
|
|
25672
|
-
return {
|
|
25673
|
-
localeError: error9()
|
|
25674
|
-
};
|
|
25675
|
-
}
|
|
25676
|
-
// ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
25677
|
-
var error10 = () => {
|
|
25678
25556
|
const Sizable = {
|
|
25679
25557
|
string: { unit: "characters", verb: "to have" },
|
|
25680
25558
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -25766,10 +25644,6 @@ var error10 = () => {
|
|
|
25766
25644
|
case "invalid_key":
|
|
25767
25645
|
return `Invalid key in ${issue2.origin}`;
|
|
25768
25646
|
case "invalid_union":
|
|
25769
|
-
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
25770
|
-
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
25771
|
-
return `Invalid discriminator value. Expected ${opts}`;
|
|
25772
|
-
}
|
|
25773
25647
|
return "Invalid input";
|
|
25774
25648
|
case "invalid_element":
|
|
25775
25649
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -25780,11 +25654,11 @@ var error10 = () => {
|
|
|
25780
25654
|
};
|
|
25781
25655
|
function en_default() {
|
|
25782
25656
|
return {
|
|
25783
|
-
localeError:
|
|
25657
|
+
localeError: error9()
|
|
25784
25658
|
};
|
|
25785
25659
|
}
|
|
25786
|
-
// ../../node_modules/.bun/zod@4.
|
|
25787
|
-
var
|
|
25660
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/eo.js
|
|
25661
|
+
var error10 = () => {
|
|
25788
25662
|
const Sizable = {
|
|
25789
25663
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
25790
25664
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -25889,11 +25763,11 @@ var error11 = () => {
|
|
|
25889
25763
|
};
|
|
25890
25764
|
function eo_default() {
|
|
25891
25765
|
return {
|
|
25892
|
-
localeError:
|
|
25766
|
+
localeError: error10()
|
|
25893
25767
|
};
|
|
25894
25768
|
}
|
|
25895
|
-
// ../../node_modules/.bun/zod@4.
|
|
25896
|
-
var
|
|
25769
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/es.js
|
|
25770
|
+
var error11 = () => {
|
|
25897
25771
|
const Sizable = {
|
|
25898
25772
|
string: { unit: "caracteres", verb: "tener" },
|
|
25899
25773
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -26021,11 +25895,11 @@ var error12 = () => {
|
|
|
26021
25895
|
};
|
|
26022
25896
|
function es_default() {
|
|
26023
25897
|
return {
|
|
26024
|
-
localeError:
|
|
25898
|
+
localeError: error11()
|
|
26025
25899
|
};
|
|
26026
25900
|
}
|
|
26027
|
-
// ../../node_modules/.bun/zod@4.
|
|
26028
|
-
var
|
|
25901
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fa.js
|
|
25902
|
+
var error12 = () => {
|
|
26029
25903
|
const Sizable = {
|
|
26030
25904
|
string: { unit: "کاراکتر", verb: "داشته باشد" },
|
|
26031
25905
|
file: { unit: "بایت", verb: "داشته باشد" },
|
|
@@ -26135,11 +26009,11 @@ var error13 = () => {
|
|
|
26135
26009
|
};
|
|
26136
26010
|
function fa_default() {
|
|
26137
26011
|
return {
|
|
26138
|
-
localeError:
|
|
26012
|
+
localeError: error12()
|
|
26139
26013
|
};
|
|
26140
26014
|
}
|
|
26141
|
-
// ../../node_modules/.bun/zod@4.
|
|
26142
|
-
var
|
|
26015
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fi.js
|
|
26016
|
+
var error13 = () => {
|
|
26143
26017
|
const Sizable = {
|
|
26144
26018
|
string: { unit: "merkkiä", subject: "merkkijonon" },
|
|
26145
26019
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -26247,11 +26121,11 @@ var error14 = () => {
|
|
|
26247
26121
|
};
|
|
26248
26122
|
function fi_default() {
|
|
26249
26123
|
return {
|
|
26250
|
-
localeError:
|
|
26124
|
+
localeError: error13()
|
|
26251
26125
|
};
|
|
26252
26126
|
}
|
|
26253
|
-
// ../../node_modules/.bun/zod@4.
|
|
26254
|
-
var
|
|
26127
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr.js
|
|
26128
|
+
var error14 = () => {
|
|
26255
26129
|
const Sizable = {
|
|
26256
26130
|
string: { unit: "caractères", verb: "avoir" },
|
|
26257
26131
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -26292,27 +26166,9 @@ var error15 = () => {
|
|
|
26292
26166
|
template_literal: "entrée"
|
|
26293
26167
|
};
|
|
26294
26168
|
const TypeDictionary = {
|
|
26295
|
-
string: "chaîne",
|
|
26296
|
-
number: "nombre",
|
|
26297
|
-
int: "entier",
|
|
26298
|
-
boolean: "booléen",
|
|
26299
|
-
bigint: "grand entier",
|
|
26300
|
-
symbol: "symbole",
|
|
26301
|
-
undefined: "indéfini",
|
|
26302
|
-
null: "null",
|
|
26303
|
-
never: "jamais",
|
|
26304
|
-
void: "vide",
|
|
26305
|
-
date: "date",
|
|
26306
|
-
array: "tableau",
|
|
26307
|
-
object: "objet",
|
|
26308
|
-
tuple: "tuple",
|
|
26309
|
-
record: "enregistrement",
|
|
26310
|
-
map: "carte",
|
|
26311
|
-
set: "ensemble",
|
|
26312
|
-
file: "fichier",
|
|
26313
|
-
nonoptional: "non-optionnel",
|
|
26314
26169
|
nan: "NaN",
|
|
26315
|
-
|
|
26170
|
+
number: "nombre",
|
|
26171
|
+
array: "tableau"
|
|
26316
26172
|
};
|
|
26317
26173
|
return (issue2) => {
|
|
26318
26174
|
switch (issue2.code) {
|
|
@@ -26333,15 +26189,16 @@ var error15 = () => {
|
|
|
26333
26189
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
26334
26190
|
const sizing = getSizing(issue2.origin);
|
|
26335
26191
|
if (sizing)
|
|
26336
|
-
return `Trop grand : ${
|
|
26337
|
-
return `Trop grand : ${
|
|
26192
|
+
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
|
|
26193
|
+
return `Trop grand : ${issue2.origin ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
|
|
26338
26194
|
}
|
|
26339
26195
|
case "too_small": {
|
|
26340
26196
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
26341
26197
|
const sizing = getSizing(issue2.origin);
|
|
26342
|
-
if (sizing)
|
|
26343
|
-
return `Trop petit : ${
|
|
26344
|
-
|
|
26198
|
+
if (sizing) {
|
|
26199
|
+
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
26200
|
+
}
|
|
26201
|
+
return `Trop petit : ${issue2.origin} doit être ${adj}${issue2.minimum.toString()}`;
|
|
26345
26202
|
}
|
|
26346
26203
|
case "invalid_format": {
|
|
26347
26204
|
const _issue = issue2;
|
|
@@ -26372,11 +26229,11 @@ var error15 = () => {
|
|
|
26372
26229
|
};
|
|
26373
26230
|
function fr_default() {
|
|
26374
26231
|
return {
|
|
26375
|
-
localeError:
|
|
26232
|
+
localeError: error14()
|
|
26376
26233
|
};
|
|
26377
26234
|
}
|
|
26378
|
-
// ../../node_modules/.bun/zod@4.
|
|
26379
|
-
var
|
|
26235
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
|
|
26236
|
+
var error15 = () => {
|
|
26380
26237
|
const Sizable = {
|
|
26381
26238
|
string: { unit: "caractères", verb: "avoir" },
|
|
26382
26239
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -26479,11 +26336,11 @@ var error16 = () => {
|
|
|
26479
26336
|
};
|
|
26480
26337
|
function fr_CA_default() {
|
|
26481
26338
|
return {
|
|
26482
|
-
localeError:
|
|
26339
|
+
localeError: error15()
|
|
26483
26340
|
};
|
|
26484
26341
|
}
|
|
26485
|
-
// ../../node_modules/.bun/zod@4.
|
|
26486
|
-
var
|
|
26342
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/he.js
|
|
26343
|
+
var error16 = () => {
|
|
26487
26344
|
const TypeNames = {
|
|
26488
26345
|
string: { label: "מחרוזת", gender: "f" },
|
|
26489
26346
|
number: { label: "מספר", gender: "m" },
|
|
@@ -26672,133 +26529,11 @@ var error17 = () => {
|
|
|
26672
26529
|
};
|
|
26673
26530
|
function he_default() {
|
|
26674
26531
|
return {
|
|
26675
|
-
localeError:
|
|
26676
|
-
};
|
|
26677
|
-
}
|
|
26678
|
-
// ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hr.js
|
|
26679
|
-
var error18 = () => {
|
|
26680
|
-
const Sizable = {
|
|
26681
|
-
string: { unit: "znakova", verb: "imati" },
|
|
26682
|
-
file: { unit: "bajtova", verb: "imati" },
|
|
26683
|
-
array: { unit: "stavki", verb: "imati" },
|
|
26684
|
-
set: { unit: "stavki", verb: "imati" }
|
|
26685
|
-
};
|
|
26686
|
-
function getSizing(origin) {
|
|
26687
|
-
return Sizable[origin] ?? null;
|
|
26688
|
-
}
|
|
26689
|
-
const FormatDictionary = {
|
|
26690
|
-
regex: "unos",
|
|
26691
|
-
email: "email adresa",
|
|
26692
|
-
url: "URL",
|
|
26693
|
-
emoji: "emoji",
|
|
26694
|
-
uuid: "UUID",
|
|
26695
|
-
uuidv4: "UUIDv4",
|
|
26696
|
-
uuidv6: "UUIDv6",
|
|
26697
|
-
nanoid: "nanoid",
|
|
26698
|
-
guid: "GUID",
|
|
26699
|
-
cuid: "cuid",
|
|
26700
|
-
cuid2: "cuid2",
|
|
26701
|
-
ulid: "ULID",
|
|
26702
|
-
xid: "XID",
|
|
26703
|
-
ksuid: "KSUID",
|
|
26704
|
-
datetime: "ISO datum i vrijeme",
|
|
26705
|
-
date: "ISO datum",
|
|
26706
|
-
time: "ISO vrijeme",
|
|
26707
|
-
duration: "ISO trajanje",
|
|
26708
|
-
ipv4: "IPv4 adresa",
|
|
26709
|
-
ipv6: "IPv6 adresa",
|
|
26710
|
-
cidrv4: "IPv4 raspon",
|
|
26711
|
-
cidrv6: "IPv6 raspon",
|
|
26712
|
-
base64: "base64 kodirani tekst",
|
|
26713
|
-
base64url: "base64url kodirani tekst",
|
|
26714
|
-
json_string: "JSON tekst",
|
|
26715
|
-
e164: "E.164 broj",
|
|
26716
|
-
jwt: "JWT",
|
|
26717
|
-
template_literal: "unos"
|
|
26718
|
-
};
|
|
26719
|
-
const TypeDictionary = {
|
|
26720
|
-
nan: "NaN",
|
|
26721
|
-
string: "tekst",
|
|
26722
|
-
number: "broj",
|
|
26723
|
-
boolean: "boolean",
|
|
26724
|
-
array: "niz",
|
|
26725
|
-
object: "objekt",
|
|
26726
|
-
set: "skup",
|
|
26727
|
-
file: "datoteka",
|
|
26728
|
-
date: "datum",
|
|
26729
|
-
bigint: "bigint",
|
|
26730
|
-
symbol: "simbol",
|
|
26731
|
-
undefined: "undefined",
|
|
26732
|
-
null: "null",
|
|
26733
|
-
function: "funkcija",
|
|
26734
|
-
map: "mapa"
|
|
26735
|
-
};
|
|
26736
|
-
return (issue2) => {
|
|
26737
|
-
switch (issue2.code) {
|
|
26738
|
-
case "invalid_type": {
|
|
26739
|
-
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
26740
|
-
const receivedType = parsedType(issue2.input);
|
|
26741
|
-
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
26742
|
-
if (/^[A-Z]/.test(issue2.expected)) {
|
|
26743
|
-
return `Neispravan unos: očekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
|
|
26744
|
-
}
|
|
26745
|
-
return `Neispravan unos: očekuje se ${expected}, a primljeno je ${received}`;
|
|
26746
|
-
}
|
|
26747
|
-
case "invalid_value":
|
|
26748
|
-
if (issue2.values.length === 1)
|
|
26749
|
-
return `Neispravna vrijednost: očekivano ${stringifyPrimitive(issue2.values[0])}`;
|
|
26750
|
-
return `Neispravna opcija: očekivano jedno od ${joinValues(issue2.values, "|")}`;
|
|
26751
|
-
case "too_big": {
|
|
26752
|
-
const adj = issue2.inclusive ? "<=" : "<";
|
|
26753
|
-
const sizing = getSizing(issue2.origin);
|
|
26754
|
-
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
26755
|
-
if (sizing)
|
|
26756
|
-
return `Preveliko: očekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
26757
|
-
return `Preveliko: očekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
|
|
26758
|
-
}
|
|
26759
|
-
case "too_small": {
|
|
26760
|
-
const adj = issue2.inclusive ? ">=" : ">";
|
|
26761
|
-
const sizing = getSizing(issue2.origin);
|
|
26762
|
-
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
26763
|
-
if (sizing) {
|
|
26764
|
-
return `Premalo: očekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
26765
|
-
}
|
|
26766
|
-
return `Premalo: očekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
26767
|
-
}
|
|
26768
|
-
case "invalid_format": {
|
|
26769
|
-
const _issue = issue2;
|
|
26770
|
-
if (_issue.format === "starts_with")
|
|
26771
|
-
return `Neispravan tekst: mora započinjati s "${_issue.prefix}"`;
|
|
26772
|
-
if (_issue.format === "ends_with")
|
|
26773
|
-
return `Neispravan tekst: mora završavati s "${_issue.suffix}"`;
|
|
26774
|
-
if (_issue.format === "includes")
|
|
26775
|
-
return `Neispravan tekst: mora sadržavati "${_issue.includes}"`;
|
|
26776
|
-
if (_issue.format === "regex")
|
|
26777
|
-
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
26778
|
-
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
26779
|
-
}
|
|
26780
|
-
case "not_multiple_of":
|
|
26781
|
-
return `Neispravan broj: mora biti višekratnik od ${issue2.divisor}`;
|
|
26782
|
-
case "unrecognized_keys":
|
|
26783
|
-
return `Neprepoznat${issue2.keys.length > 1 ? "i ključevi" : " ključ"}: ${joinValues(issue2.keys, ", ")}`;
|
|
26784
|
-
case "invalid_key":
|
|
26785
|
-
return `Neispravan ključ u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
26786
|
-
case "invalid_union":
|
|
26787
|
-
return "Neispravan unos";
|
|
26788
|
-
case "invalid_element":
|
|
26789
|
-
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
26790
|
-
default:
|
|
26791
|
-
return `Neispravan unos`;
|
|
26792
|
-
}
|
|
26793
|
-
};
|
|
26794
|
-
};
|
|
26795
|
-
function hr_default() {
|
|
26796
|
-
return {
|
|
26797
|
-
localeError: error18()
|
|
26532
|
+
localeError: error16()
|
|
26798
26533
|
};
|
|
26799
26534
|
}
|
|
26800
|
-
// ../../node_modules/.bun/zod@4.
|
|
26801
|
-
var
|
|
26535
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hu.js
|
|
26536
|
+
var error17 = () => {
|
|
26802
26537
|
const Sizable = {
|
|
26803
26538
|
string: { unit: "karakter", verb: "legyen" },
|
|
26804
26539
|
file: { unit: "byte", verb: "legyen" },
|
|
@@ -26902,10 +26637,10 @@ var error19 = () => {
|
|
|
26902
26637
|
};
|
|
26903
26638
|
function hu_default() {
|
|
26904
26639
|
return {
|
|
26905
|
-
localeError:
|
|
26640
|
+
localeError: error17()
|
|
26906
26641
|
};
|
|
26907
26642
|
}
|
|
26908
|
-
// ../../node_modules/.bun/zod@4.
|
|
26643
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hy.js
|
|
26909
26644
|
function getArmenianPlural(count, one, many) {
|
|
26910
26645
|
return Math.abs(count) === 1 ? one : many;
|
|
26911
26646
|
}
|
|
@@ -26916,7 +26651,7 @@ function withDefiniteArticle(word) {
|
|
|
26916
26651
|
const lastChar = word[word.length - 1];
|
|
26917
26652
|
return word + (vowels.includes(lastChar) ? "ն" : "ը");
|
|
26918
26653
|
}
|
|
26919
|
-
var
|
|
26654
|
+
var error18 = () => {
|
|
26920
26655
|
const Sizable = {
|
|
26921
26656
|
string: {
|
|
26922
26657
|
unit: {
|
|
@@ -27049,11 +26784,11 @@ var error20 = () => {
|
|
|
27049
26784
|
};
|
|
27050
26785
|
function hy_default() {
|
|
27051
26786
|
return {
|
|
27052
|
-
localeError:
|
|
26787
|
+
localeError: error18()
|
|
27053
26788
|
};
|
|
27054
26789
|
}
|
|
27055
|
-
// ../../node_modules/.bun/zod@4.
|
|
27056
|
-
var
|
|
26790
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/id.js
|
|
26791
|
+
var error19 = () => {
|
|
27057
26792
|
const Sizable = {
|
|
27058
26793
|
string: { unit: "karakter", verb: "memiliki" },
|
|
27059
26794
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -27155,11 +26890,11 @@ var error21 = () => {
|
|
|
27155
26890
|
};
|
|
27156
26891
|
function id_default() {
|
|
27157
26892
|
return {
|
|
27158
|
-
localeError:
|
|
26893
|
+
localeError: error19()
|
|
27159
26894
|
};
|
|
27160
26895
|
}
|
|
27161
|
-
// ../../node_modules/.bun/zod@4.
|
|
27162
|
-
var
|
|
26896
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/is.js
|
|
26897
|
+
var error20 = () => {
|
|
27163
26898
|
const Sizable = {
|
|
27164
26899
|
string: { unit: "stafi", verb: "að hafa" },
|
|
27165
26900
|
file: { unit: "bæti", verb: "að hafa" },
|
|
@@ -27264,11 +26999,11 @@ var error22 = () => {
|
|
|
27264
26999
|
};
|
|
27265
27000
|
function is_default() {
|
|
27266
27001
|
return {
|
|
27267
|
-
localeError:
|
|
27002
|
+
localeError: error20()
|
|
27268
27003
|
};
|
|
27269
27004
|
}
|
|
27270
|
-
// ../../node_modules/.bun/zod@4.
|
|
27271
|
-
var
|
|
27005
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/it.js
|
|
27006
|
+
var error21 = () => {
|
|
27272
27007
|
const Sizable = {
|
|
27273
27008
|
string: { unit: "caratteri", verb: "avere" },
|
|
27274
27009
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -27353,7 +27088,7 @@ var error23 = () => {
|
|
|
27353
27088
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
27354
27089
|
if (_issue.format === "regex")
|
|
27355
27090
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
27356
|
-
return `
|
|
27091
|
+
return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
27357
27092
|
}
|
|
27358
27093
|
case "not_multiple_of":
|
|
27359
27094
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -27372,11 +27107,11 @@ var error23 = () => {
|
|
|
27372
27107
|
};
|
|
27373
27108
|
function it_default() {
|
|
27374
27109
|
return {
|
|
27375
|
-
localeError:
|
|
27110
|
+
localeError: error21()
|
|
27376
27111
|
};
|
|
27377
27112
|
}
|
|
27378
|
-
// ../../node_modules/.bun/zod@4.
|
|
27379
|
-
var
|
|
27113
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ja.js
|
|
27114
|
+
var error22 = () => {
|
|
27380
27115
|
const Sizable = {
|
|
27381
27116
|
string: { unit: "文字", verb: "である" },
|
|
27382
27117
|
file: { unit: "バイト", verb: "である" },
|
|
@@ -27479,11 +27214,11 @@ var error24 = () => {
|
|
|
27479
27214
|
};
|
|
27480
27215
|
function ja_default() {
|
|
27481
27216
|
return {
|
|
27482
|
-
localeError:
|
|
27217
|
+
localeError: error22()
|
|
27483
27218
|
};
|
|
27484
27219
|
}
|
|
27485
|
-
// ../../node_modules/.bun/zod@4.
|
|
27486
|
-
var
|
|
27220
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ka.js
|
|
27221
|
+
var error23 = () => {
|
|
27487
27222
|
const Sizable = {
|
|
27488
27223
|
string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
|
|
27489
27224
|
file: { unit: "ბაიტი", verb: "უნდა შეიცავდეს" },
|
|
@@ -27516,9 +27251,9 @@ var error25 = () => {
|
|
|
27516
27251
|
ipv6: "IPv6 მისამართი",
|
|
27517
27252
|
cidrv4: "IPv4 დიაპაზონი",
|
|
27518
27253
|
cidrv6: "IPv6 დიაპაზონი",
|
|
27519
|
-
base64: "base64-კოდირებული
|
|
27520
|
-
base64url: "base64url-კოდირებული
|
|
27521
|
-
json_string: "JSON
|
|
27254
|
+
base64: "base64-კოდირებული სტრინგი",
|
|
27255
|
+
base64url: "base64url-კოდირებული სტრინგი",
|
|
27256
|
+
json_string: "JSON სტრინგი",
|
|
27522
27257
|
e164: "E.164 ნომერი",
|
|
27523
27258
|
jwt: "JWT",
|
|
27524
27259
|
template_literal: "შეყვანა"
|
|
@@ -27526,7 +27261,7 @@ var error25 = () => {
|
|
|
27526
27261
|
const TypeDictionary = {
|
|
27527
27262
|
nan: "NaN",
|
|
27528
27263
|
number: "რიცხვი",
|
|
27529
|
-
string: "
|
|
27264
|
+
string: "სტრინგი",
|
|
27530
27265
|
boolean: "ბულეანი",
|
|
27531
27266
|
function: "ფუნქცია",
|
|
27532
27267
|
array: "მასივი"
|
|
@@ -27564,14 +27299,14 @@ var error25 = () => {
|
|
|
27564
27299
|
case "invalid_format": {
|
|
27565
27300
|
const _issue = issue2;
|
|
27566
27301
|
if (_issue.format === "starts_with") {
|
|
27567
|
-
return `არასწორი
|
|
27302
|
+
return `არასწორი სტრინგი: უნდა იწყებოდეს "${_issue.prefix}"-ით`;
|
|
27568
27303
|
}
|
|
27569
27304
|
if (_issue.format === "ends_with")
|
|
27570
|
-
return `არასწორი
|
|
27305
|
+
return `არასწორი სტრინგი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`;
|
|
27571
27306
|
if (_issue.format === "includes")
|
|
27572
|
-
return `არასწორი
|
|
27307
|
+
return `არასწორი სტრინგი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
|
|
27573
27308
|
if (_issue.format === "regex")
|
|
27574
|
-
return `არასწორი
|
|
27309
|
+
return `არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
|
|
27575
27310
|
return `არასწორი ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
27576
27311
|
}
|
|
27577
27312
|
case "not_multiple_of":
|
|
@@ -27591,11 +27326,11 @@ var error25 = () => {
|
|
|
27591
27326
|
};
|
|
27592
27327
|
function ka_default() {
|
|
27593
27328
|
return {
|
|
27594
|
-
localeError:
|
|
27329
|
+
localeError: error23()
|
|
27595
27330
|
};
|
|
27596
27331
|
}
|
|
27597
|
-
// ../../node_modules/.bun/zod@4.
|
|
27598
|
-
var
|
|
27332
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/km.js
|
|
27333
|
+
var error24 = () => {
|
|
27599
27334
|
const Sizable = {
|
|
27600
27335
|
string: { unit: "តួអក្សរ", verb: "គួរមាន" },
|
|
27601
27336
|
file: { unit: "បៃ", verb: "គួរមាន" },
|
|
@@ -27701,16 +27436,16 @@ var error26 = () => {
|
|
|
27701
27436
|
};
|
|
27702
27437
|
function km_default() {
|
|
27703
27438
|
return {
|
|
27704
|
-
localeError:
|
|
27439
|
+
localeError: error24()
|
|
27705
27440
|
};
|
|
27706
27441
|
}
|
|
27707
27442
|
|
|
27708
|
-
// ../../node_modules/.bun/zod@4.
|
|
27443
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/kh.js
|
|
27709
27444
|
function kh_default() {
|
|
27710
27445
|
return km_default();
|
|
27711
27446
|
}
|
|
27712
|
-
// ../../node_modules/.bun/zod@4.
|
|
27713
|
-
var
|
|
27447
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ko.js
|
|
27448
|
+
var error25 = () => {
|
|
27714
27449
|
const Sizable = {
|
|
27715
27450
|
string: { unit: "문자", verb: "to have" },
|
|
27716
27451
|
file: { unit: "바이트", verb: "to have" },
|
|
@@ -27817,10 +27552,10 @@ var error27 = () => {
|
|
|
27817
27552
|
};
|
|
27818
27553
|
function ko_default() {
|
|
27819
27554
|
return {
|
|
27820
|
-
localeError:
|
|
27555
|
+
localeError: error25()
|
|
27821
27556
|
};
|
|
27822
27557
|
}
|
|
27823
|
-
// ../../node_modules/.bun/zod@4.
|
|
27558
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/lt.js
|
|
27824
27559
|
var capitalizeFirstCharacter = (text) => {
|
|
27825
27560
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
27826
27561
|
};
|
|
@@ -27834,7 +27569,7 @@ function getUnitTypeFromNumber(number2) {
|
|
|
27834
27569
|
return "one";
|
|
27835
27570
|
return "few";
|
|
27836
27571
|
}
|
|
27837
|
-
var
|
|
27572
|
+
var error26 = () => {
|
|
27838
27573
|
const Sizable = {
|
|
27839
27574
|
string: {
|
|
27840
27575
|
unit: {
|
|
@@ -28020,11 +27755,11 @@ var error28 = () => {
|
|
|
28020
27755
|
};
|
|
28021
27756
|
function lt_default() {
|
|
28022
27757
|
return {
|
|
28023
|
-
localeError:
|
|
27758
|
+
localeError: error26()
|
|
28024
27759
|
};
|
|
28025
27760
|
}
|
|
28026
|
-
// ../../node_modules/.bun/zod@4.
|
|
28027
|
-
var
|
|
27761
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/mk.js
|
|
27762
|
+
var error27 = () => {
|
|
28028
27763
|
const Sizable = {
|
|
28029
27764
|
string: { unit: "знаци", verb: "да имаат" },
|
|
28030
27765
|
file: { unit: "бајти", verb: "да имаат" },
|
|
@@ -28129,11 +27864,11 @@ var error29 = () => {
|
|
|
28129
27864
|
};
|
|
28130
27865
|
function mk_default() {
|
|
28131
27866
|
return {
|
|
28132
|
-
localeError:
|
|
27867
|
+
localeError: error27()
|
|
28133
27868
|
};
|
|
28134
27869
|
}
|
|
28135
|
-
// ../../node_modules/.bun/zod@4.
|
|
28136
|
-
var
|
|
27870
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ms.js
|
|
27871
|
+
var error28 = () => {
|
|
28137
27872
|
const Sizable = {
|
|
28138
27873
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
28139
27874
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -28236,11 +27971,11 @@ var error30 = () => {
|
|
|
28236
27971
|
};
|
|
28237
27972
|
function ms_default() {
|
|
28238
27973
|
return {
|
|
28239
|
-
localeError:
|
|
27974
|
+
localeError: error28()
|
|
28240
27975
|
};
|
|
28241
27976
|
}
|
|
28242
|
-
// ../../node_modules/.bun/zod@4.
|
|
28243
|
-
var
|
|
27977
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/nl.js
|
|
27978
|
+
var error29 = () => {
|
|
28244
27979
|
const Sizable = {
|
|
28245
27980
|
string: { unit: "tekens", verb: "heeft" },
|
|
28246
27981
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -28346,11 +28081,11 @@ var error31 = () => {
|
|
|
28346
28081
|
};
|
|
28347
28082
|
function nl_default() {
|
|
28348
28083
|
return {
|
|
28349
|
-
localeError:
|
|
28084
|
+
localeError: error29()
|
|
28350
28085
|
};
|
|
28351
28086
|
}
|
|
28352
|
-
// ../../node_modules/.bun/zod@4.
|
|
28353
|
-
var
|
|
28087
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/no.js
|
|
28088
|
+
var error30 = () => {
|
|
28354
28089
|
const Sizable = {
|
|
28355
28090
|
string: { unit: "tegn", verb: "å ha" },
|
|
28356
28091
|
file: { unit: "bytes", verb: "å ha" },
|
|
@@ -28454,11 +28189,11 @@ var error32 = () => {
|
|
|
28454
28189
|
};
|
|
28455
28190
|
function no_default() {
|
|
28456
28191
|
return {
|
|
28457
|
-
localeError:
|
|
28192
|
+
localeError: error30()
|
|
28458
28193
|
};
|
|
28459
28194
|
}
|
|
28460
|
-
// ../../node_modules/.bun/zod@4.
|
|
28461
|
-
var
|
|
28195
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ota.js
|
|
28196
|
+
var error31 = () => {
|
|
28462
28197
|
const Sizable = {
|
|
28463
28198
|
string: { unit: "harf", verb: "olmalıdır" },
|
|
28464
28199
|
file: { unit: "bayt", verb: "olmalıdır" },
|
|
@@ -28563,11 +28298,11 @@ var error33 = () => {
|
|
|
28563
28298
|
};
|
|
28564
28299
|
function ota_default() {
|
|
28565
28300
|
return {
|
|
28566
|
-
localeError:
|
|
28301
|
+
localeError: error31()
|
|
28567
28302
|
};
|
|
28568
28303
|
}
|
|
28569
|
-
// ../../node_modules/.bun/zod@4.
|
|
28570
|
-
var
|
|
28304
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ps.js
|
|
28305
|
+
var error32 = () => {
|
|
28571
28306
|
const Sizable = {
|
|
28572
28307
|
string: { unit: "توکي", verb: "ولري" },
|
|
28573
28308
|
file: { unit: "بایټس", verb: "ولري" },
|
|
@@ -28677,11 +28412,11 @@ var error34 = () => {
|
|
|
28677
28412
|
};
|
|
28678
28413
|
function ps_default() {
|
|
28679
28414
|
return {
|
|
28680
|
-
localeError:
|
|
28415
|
+
localeError: error32()
|
|
28681
28416
|
};
|
|
28682
28417
|
}
|
|
28683
|
-
// ../../node_modules/.bun/zod@4.
|
|
28684
|
-
var
|
|
28418
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pl.js
|
|
28419
|
+
var error33 = () => {
|
|
28685
28420
|
const Sizable = {
|
|
28686
28421
|
string: { unit: "znaków", verb: "mieć" },
|
|
28687
28422
|
file: { unit: "bajtów", verb: "mieć" },
|
|
@@ -28786,11 +28521,11 @@ var error35 = () => {
|
|
|
28786
28521
|
};
|
|
28787
28522
|
function pl_default() {
|
|
28788
28523
|
return {
|
|
28789
|
-
localeError:
|
|
28524
|
+
localeError: error33()
|
|
28790
28525
|
};
|
|
28791
28526
|
}
|
|
28792
|
-
// ../../node_modules/.bun/zod@4.
|
|
28793
|
-
var
|
|
28527
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pt.js
|
|
28528
|
+
var error34 = () => {
|
|
28794
28529
|
const Sizable = {
|
|
28795
28530
|
string: { unit: "caracteres", verb: "ter" },
|
|
28796
28531
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -28894,129 +28629,10 @@ var error36 = () => {
|
|
|
28894
28629
|
};
|
|
28895
28630
|
function pt_default() {
|
|
28896
28631
|
return {
|
|
28897
|
-
localeError:
|
|
28898
|
-
};
|
|
28899
|
-
}
|
|
28900
|
-
// ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ro.js
|
|
28901
|
-
var error37 = () => {
|
|
28902
|
-
const Sizable = {
|
|
28903
|
-
string: { unit: "caractere", verb: "să aibă" },
|
|
28904
|
-
file: { unit: "octeți", verb: "să aibă" },
|
|
28905
|
-
array: { unit: "elemente", verb: "să aibă" },
|
|
28906
|
-
set: { unit: "elemente", verb: "să aibă" },
|
|
28907
|
-
map: { unit: "intrări", verb: "să aibă" }
|
|
28908
|
-
};
|
|
28909
|
-
function getSizing(origin) {
|
|
28910
|
-
return Sizable[origin] ?? null;
|
|
28911
|
-
}
|
|
28912
|
-
const FormatDictionary = {
|
|
28913
|
-
regex: "intrare",
|
|
28914
|
-
email: "adresă de email",
|
|
28915
|
-
url: "URL",
|
|
28916
|
-
emoji: "emoji",
|
|
28917
|
-
uuid: "UUID",
|
|
28918
|
-
uuidv4: "UUIDv4",
|
|
28919
|
-
uuidv6: "UUIDv6",
|
|
28920
|
-
nanoid: "nanoid",
|
|
28921
|
-
guid: "GUID",
|
|
28922
|
-
cuid: "cuid",
|
|
28923
|
-
cuid2: "cuid2",
|
|
28924
|
-
ulid: "ULID",
|
|
28925
|
-
xid: "XID",
|
|
28926
|
-
ksuid: "KSUID",
|
|
28927
|
-
datetime: "dată și oră ISO",
|
|
28928
|
-
date: "dată ISO",
|
|
28929
|
-
time: "oră ISO",
|
|
28930
|
-
duration: "durată ISO",
|
|
28931
|
-
ipv4: "adresă IPv4",
|
|
28932
|
-
ipv6: "adresă IPv6",
|
|
28933
|
-
mac: "adresă MAC",
|
|
28934
|
-
cidrv4: "interval IPv4",
|
|
28935
|
-
cidrv6: "interval IPv6",
|
|
28936
|
-
base64: "șir codat base64",
|
|
28937
|
-
base64url: "șir codat base64url",
|
|
28938
|
-
json_string: "șir JSON",
|
|
28939
|
-
e164: "număr E.164",
|
|
28940
|
-
jwt: "JWT",
|
|
28941
|
-
template_literal: "intrare"
|
|
28942
|
-
};
|
|
28943
|
-
const TypeDictionary = {
|
|
28944
|
-
nan: "NaN",
|
|
28945
|
-
string: "șir",
|
|
28946
|
-
number: "număr",
|
|
28947
|
-
boolean: "boolean",
|
|
28948
|
-
function: "funcție",
|
|
28949
|
-
array: "matrice",
|
|
28950
|
-
object: "obiect",
|
|
28951
|
-
undefined: "nedefinit",
|
|
28952
|
-
symbol: "simbol",
|
|
28953
|
-
bigint: "număr mare",
|
|
28954
|
-
void: "void",
|
|
28955
|
-
never: "never",
|
|
28956
|
-
map: "hartă",
|
|
28957
|
-
set: "set"
|
|
28958
|
-
};
|
|
28959
|
-
return (issue2) => {
|
|
28960
|
-
switch (issue2.code) {
|
|
28961
|
-
case "invalid_type": {
|
|
28962
|
-
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
28963
|
-
const receivedType = parsedType(issue2.input);
|
|
28964
|
-
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
28965
|
-
return `Intrare invalidă: așteptat ${expected}, primit ${received}`;
|
|
28966
|
-
}
|
|
28967
|
-
case "invalid_value":
|
|
28968
|
-
if (issue2.values.length === 1)
|
|
28969
|
-
return `Intrare invalidă: așteptat ${stringifyPrimitive(issue2.values[0])}`;
|
|
28970
|
-
return `Opțiune invalidă: așteptat una dintre ${joinValues(issue2.values, "|")}`;
|
|
28971
|
-
case "too_big": {
|
|
28972
|
-
const adj = issue2.inclusive ? "<=" : "<";
|
|
28973
|
-
const sizing = getSizing(issue2.origin);
|
|
28974
|
-
if (sizing)
|
|
28975
|
-
return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
28976
|
-
return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} să fie ${adj}${issue2.maximum.toString()}`;
|
|
28977
|
-
}
|
|
28978
|
-
case "too_small": {
|
|
28979
|
-
const adj = issue2.inclusive ? ">=" : ">";
|
|
28980
|
-
const sizing = getSizing(issue2.origin);
|
|
28981
|
-
if (sizing) {
|
|
28982
|
-
return `Prea mic: așteptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
28983
|
-
}
|
|
28984
|
-
return `Prea mic: așteptat ca ${issue2.origin} să fie ${adj}${issue2.minimum.toString()}`;
|
|
28985
|
-
}
|
|
28986
|
-
case "invalid_format": {
|
|
28987
|
-
const _issue = issue2;
|
|
28988
|
-
if (_issue.format === "starts_with") {
|
|
28989
|
-
return `Șir invalid: trebuie să înceapă cu "${_issue.prefix}"`;
|
|
28990
|
-
}
|
|
28991
|
-
if (_issue.format === "ends_with")
|
|
28992
|
-
return `Șir invalid: trebuie să se termine cu "${_issue.suffix}"`;
|
|
28993
|
-
if (_issue.format === "includes")
|
|
28994
|
-
return `Șir invalid: trebuie să includă "${_issue.includes}"`;
|
|
28995
|
-
if (_issue.format === "regex")
|
|
28996
|
-
return `Șir invalid: trebuie să se potrivească cu modelul ${_issue.pattern}`;
|
|
28997
|
-
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
28998
|
-
}
|
|
28999
|
-
case "not_multiple_of":
|
|
29000
|
-
return `Număr invalid: trebuie să fie multiplu de ${issue2.divisor}`;
|
|
29001
|
-
case "unrecognized_keys":
|
|
29002
|
-
return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
|
|
29003
|
-
case "invalid_key":
|
|
29004
|
-
return `Cheie invalidă în ${issue2.origin}`;
|
|
29005
|
-
case "invalid_union":
|
|
29006
|
-
return "Intrare invalidă";
|
|
29007
|
-
case "invalid_element":
|
|
29008
|
-
return `Valoare invalidă în ${issue2.origin}`;
|
|
29009
|
-
default:
|
|
29010
|
-
return `Intrare invalidă`;
|
|
29011
|
-
}
|
|
29012
|
-
};
|
|
29013
|
-
};
|
|
29014
|
-
function ro_default() {
|
|
29015
|
-
return {
|
|
29016
|
-
localeError: error37()
|
|
28632
|
+
localeError: error34()
|
|
29017
28633
|
};
|
|
29018
28634
|
}
|
|
29019
|
-
// ../../node_modules/.bun/zod@4.
|
|
28635
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ru.js
|
|
29020
28636
|
function getRussianPlural(count, one, few, many) {
|
|
29021
28637
|
const absCount = Math.abs(count);
|
|
29022
28638
|
const lastDigit = absCount % 10;
|
|
@@ -29032,7 +28648,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
29032
28648
|
}
|
|
29033
28649
|
return many;
|
|
29034
28650
|
}
|
|
29035
|
-
var
|
|
28651
|
+
var error35 = () => {
|
|
29036
28652
|
const Sizable = {
|
|
29037
28653
|
string: {
|
|
29038
28654
|
unit: {
|
|
@@ -29169,11 +28785,11 @@ var error38 = () => {
|
|
|
29169
28785
|
};
|
|
29170
28786
|
function ru_default() {
|
|
29171
28787
|
return {
|
|
29172
|
-
localeError:
|
|
28788
|
+
localeError: error35()
|
|
29173
28789
|
};
|
|
29174
28790
|
}
|
|
29175
|
-
// ../../node_modules/.bun/zod@4.
|
|
29176
|
-
var
|
|
28791
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sl.js
|
|
28792
|
+
var error36 = () => {
|
|
29177
28793
|
const Sizable = {
|
|
29178
28794
|
string: { unit: "znakov", verb: "imeti" },
|
|
29179
28795
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -29278,11 +28894,11 @@ var error39 = () => {
|
|
|
29278
28894
|
};
|
|
29279
28895
|
function sl_default() {
|
|
29280
28896
|
return {
|
|
29281
|
-
localeError:
|
|
28897
|
+
localeError: error36()
|
|
29282
28898
|
};
|
|
29283
28899
|
}
|
|
29284
|
-
// ../../node_modules/.bun/zod@4.
|
|
29285
|
-
var
|
|
28900
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sv.js
|
|
28901
|
+
var error37 = () => {
|
|
29286
28902
|
const Sizable = {
|
|
29287
28903
|
string: { unit: "tecken", verb: "att ha" },
|
|
29288
28904
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -29388,11 +29004,11 @@ var error40 = () => {
|
|
|
29388
29004
|
};
|
|
29389
29005
|
function sv_default() {
|
|
29390
29006
|
return {
|
|
29391
|
-
localeError:
|
|
29007
|
+
localeError: error37()
|
|
29392
29008
|
};
|
|
29393
29009
|
}
|
|
29394
|
-
// ../../node_modules/.bun/zod@4.
|
|
29395
|
-
var
|
|
29010
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ta.js
|
|
29011
|
+
var error38 = () => {
|
|
29396
29012
|
const Sizable = {
|
|
29397
29013
|
string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
29398
29014
|
file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
@@ -29498,11 +29114,11 @@ var error41 = () => {
|
|
|
29498
29114
|
};
|
|
29499
29115
|
function ta_default() {
|
|
29500
29116
|
return {
|
|
29501
|
-
localeError:
|
|
29117
|
+
localeError: error38()
|
|
29502
29118
|
};
|
|
29503
29119
|
}
|
|
29504
|
-
// ../../node_modules/.bun/zod@4.
|
|
29505
|
-
var
|
|
29120
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/th.js
|
|
29121
|
+
var error39 = () => {
|
|
29506
29122
|
const Sizable = {
|
|
29507
29123
|
string: { unit: "ตัวอักษร", verb: "ควรมี" },
|
|
29508
29124
|
file: { unit: "ไบต์", verb: "ควรมี" },
|
|
@@ -29608,11 +29224,11 @@ var error42 = () => {
|
|
|
29608
29224
|
};
|
|
29609
29225
|
function th_default() {
|
|
29610
29226
|
return {
|
|
29611
|
-
localeError:
|
|
29227
|
+
localeError: error39()
|
|
29612
29228
|
};
|
|
29613
29229
|
}
|
|
29614
|
-
// ../../node_modules/.bun/zod@4.
|
|
29615
|
-
var
|
|
29230
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/tr.js
|
|
29231
|
+
var error40 = () => {
|
|
29616
29232
|
const Sizable = {
|
|
29617
29233
|
string: { unit: "karakter", verb: "olmalı" },
|
|
29618
29234
|
file: { unit: "bayt", verb: "olmalı" },
|
|
@@ -29713,11 +29329,11 @@ var error43 = () => {
|
|
|
29713
29329
|
};
|
|
29714
29330
|
function tr_default() {
|
|
29715
29331
|
return {
|
|
29716
|
-
localeError:
|
|
29332
|
+
localeError: error40()
|
|
29717
29333
|
};
|
|
29718
29334
|
}
|
|
29719
|
-
// ../../node_modules/.bun/zod@4.
|
|
29720
|
-
var
|
|
29335
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uk.js
|
|
29336
|
+
var error41 = () => {
|
|
29721
29337
|
const Sizable = {
|
|
29722
29338
|
string: { unit: "символів", verb: "матиме" },
|
|
29723
29339
|
file: { unit: "байтів", verb: "матиме" },
|
|
@@ -29821,16 +29437,16 @@ var error44 = () => {
|
|
|
29821
29437
|
};
|
|
29822
29438
|
function uk_default() {
|
|
29823
29439
|
return {
|
|
29824
|
-
localeError:
|
|
29440
|
+
localeError: error41()
|
|
29825
29441
|
};
|
|
29826
29442
|
}
|
|
29827
29443
|
|
|
29828
|
-
// ../../node_modules/.bun/zod@4.
|
|
29444
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ua.js
|
|
29829
29445
|
function ua_default() {
|
|
29830
29446
|
return uk_default();
|
|
29831
29447
|
}
|
|
29832
|
-
// ../../node_modules/.bun/zod@4.
|
|
29833
|
-
var
|
|
29448
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ur.js
|
|
29449
|
+
var error42 = () => {
|
|
29834
29450
|
const Sizable = {
|
|
29835
29451
|
string: { unit: "حروف", verb: "ہونا" },
|
|
29836
29452
|
file: { unit: "بائٹس", verb: "ہونا" },
|
|
@@ -29936,17 +29552,16 @@ var error45 = () => {
|
|
|
29936
29552
|
};
|
|
29937
29553
|
function ur_default() {
|
|
29938
29554
|
return {
|
|
29939
|
-
localeError:
|
|
29555
|
+
localeError: error42()
|
|
29940
29556
|
};
|
|
29941
29557
|
}
|
|
29942
|
-
// ../../node_modules/.bun/zod@4.
|
|
29943
|
-
var
|
|
29558
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uz.js
|
|
29559
|
+
var error43 = () => {
|
|
29944
29560
|
const Sizable = {
|
|
29945
29561
|
string: { unit: "belgi", verb: "bo‘lishi kerak" },
|
|
29946
29562
|
file: { unit: "bayt", verb: "bo‘lishi kerak" },
|
|
29947
29563
|
array: { unit: "element", verb: "bo‘lishi kerak" },
|
|
29948
|
-
set: { unit: "element", verb: "bo‘lishi kerak" }
|
|
29949
|
-
map: { unit: "yozuv", verb: "bo‘lishi kerak" }
|
|
29564
|
+
set: { unit: "element", verb: "bo‘lishi kerak" }
|
|
29950
29565
|
};
|
|
29951
29566
|
function getSizing(origin) {
|
|
29952
29567
|
return Sizable[origin] ?? null;
|
|
@@ -30046,11 +29661,11 @@ var error46 = () => {
|
|
|
30046
29661
|
};
|
|
30047
29662
|
function uz_default() {
|
|
30048
29663
|
return {
|
|
30049
|
-
localeError:
|
|
29664
|
+
localeError: error43()
|
|
30050
29665
|
};
|
|
30051
29666
|
}
|
|
30052
|
-
// ../../node_modules/.bun/zod@4.
|
|
30053
|
-
var
|
|
29667
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/vi.js
|
|
29668
|
+
var error44 = () => {
|
|
30054
29669
|
const Sizable = {
|
|
30055
29670
|
string: { unit: "ký tự", verb: "có" },
|
|
30056
29671
|
file: { unit: "byte", verb: "có" },
|
|
@@ -30154,11 +29769,11 @@ var error47 = () => {
|
|
|
30154
29769
|
};
|
|
30155
29770
|
function vi_default() {
|
|
30156
29771
|
return {
|
|
30157
|
-
localeError:
|
|
29772
|
+
localeError: error44()
|
|
30158
29773
|
};
|
|
30159
29774
|
}
|
|
30160
|
-
// ../../node_modules/.bun/zod@4.
|
|
30161
|
-
var
|
|
29775
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
|
|
29776
|
+
var error45 = () => {
|
|
30162
29777
|
const Sizable = {
|
|
30163
29778
|
string: { unit: "字符", verb: "包含" },
|
|
30164
29779
|
file: { unit: "字节", verb: "包含" },
|
|
@@ -30263,11 +29878,11 @@ var error48 = () => {
|
|
|
30263
29878
|
};
|
|
30264
29879
|
function zh_CN_default() {
|
|
30265
29880
|
return {
|
|
30266
|
-
localeError:
|
|
29881
|
+
localeError: error45()
|
|
30267
29882
|
};
|
|
30268
29883
|
}
|
|
30269
|
-
// ../../node_modules/.bun/zod@4.
|
|
30270
|
-
var
|
|
29884
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
|
|
29885
|
+
var error46 = () => {
|
|
30271
29886
|
const Sizable = {
|
|
30272
29887
|
string: { unit: "字元", verb: "擁有" },
|
|
30273
29888
|
file: { unit: "位元組", verb: "擁有" },
|
|
@@ -30370,11 +29985,11 @@ var error49 = () => {
|
|
|
30370
29985
|
};
|
|
30371
29986
|
function zh_TW_default() {
|
|
30372
29987
|
return {
|
|
30373
|
-
localeError:
|
|
29988
|
+
localeError: error46()
|
|
30374
29989
|
};
|
|
30375
29990
|
}
|
|
30376
|
-
// ../../node_modules/.bun/zod@4.
|
|
30377
|
-
var
|
|
29991
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/yo.js
|
|
29992
|
+
var error47 = () => {
|
|
30378
29993
|
const Sizable = {
|
|
30379
29994
|
string: { unit: "àmi", verb: "ní" },
|
|
30380
29995
|
file: { unit: "bytes", verb: "ní" },
|
|
@@ -30477,11 +30092,11 @@ var error50 = () => {
|
|
|
30477
30092
|
};
|
|
30478
30093
|
function yo_default() {
|
|
30479
30094
|
return {
|
|
30480
|
-
localeError:
|
|
30095
|
+
localeError: error47()
|
|
30481
30096
|
};
|
|
30482
30097
|
}
|
|
30483
|
-
// ../../node_modules/.bun/zod@4.
|
|
30484
|
-
var
|
|
30098
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
30099
|
+
var _a;
|
|
30485
30100
|
var $output = Symbol("ZodOutput");
|
|
30486
30101
|
var $input = Symbol("ZodInput");
|
|
30487
30102
|
|
|
@@ -30528,9 +30143,9 @@ class $ZodRegistry {
|
|
|
30528
30143
|
function registry() {
|
|
30529
30144
|
return new $ZodRegistry;
|
|
30530
30145
|
}
|
|
30531
|
-
(
|
|
30146
|
+
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
30532
30147
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
30533
|
-
// ../../node_modules/.bun/zod@4.
|
|
30148
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/api.js
|
|
30534
30149
|
function _string(Class2, params) {
|
|
30535
30150
|
return new Class2({
|
|
30536
30151
|
type: "string",
|
|
@@ -31334,7 +30949,7 @@ function _refine(Class2, fn, _params) {
|
|
|
31334
30949
|
});
|
|
31335
30950
|
return schema;
|
|
31336
30951
|
}
|
|
31337
|
-
function _superRefine(fn
|
|
30952
|
+
function _superRefine(fn) {
|
|
31338
30953
|
const ch = _check((payload) => {
|
|
31339
30954
|
payload.addIssue = (issue2) => {
|
|
31340
30955
|
if (typeof issue2 === "string") {
|
|
@@ -31351,7 +30966,7 @@ function _superRefine(fn, params) {
|
|
|
31351
30966
|
}
|
|
31352
30967
|
};
|
|
31353
30968
|
return fn(payload.value, payload);
|
|
31354
|
-
}
|
|
30969
|
+
});
|
|
31355
30970
|
return ch;
|
|
31356
30971
|
}
|
|
31357
30972
|
function _check(fn, params) {
|
|
@@ -31450,7 +31065,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
31450
31065
|
const inst = new Class2(def);
|
|
31451
31066
|
return inst;
|
|
31452
31067
|
}
|
|
31453
|
-
// ../../node_modules/.bun/zod@4.
|
|
31068
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
|
|
31454
31069
|
function initializeContext(params) {
|
|
31455
31070
|
let target = params?.target ?? "draft-2020-12";
|
|
31456
31071
|
if (target === "draft-4")
|
|
@@ -31472,7 +31087,7 @@ function initializeContext(params) {
|
|
|
31472
31087
|
};
|
|
31473
31088
|
}
|
|
31474
31089
|
function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
31475
|
-
var
|
|
31090
|
+
var _a2;
|
|
31476
31091
|
const def = schema._zod.def;
|
|
31477
31092
|
const seen = ctx.seen.get(schema);
|
|
31478
31093
|
if (seen) {
|
|
@@ -31519,8 +31134,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
31519
31134
|
delete result.schema.examples;
|
|
31520
31135
|
delete result.schema.default;
|
|
31521
31136
|
}
|
|
31522
|
-
if (ctx.io === "input" &&
|
|
31523
|
-
(
|
|
31137
|
+
if (ctx.io === "input" && result.schema._prefault)
|
|
31138
|
+
(_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
|
|
31524
31139
|
delete result.schema._prefault;
|
|
31525
31140
|
const _result = ctx.seen.get(schema);
|
|
31526
31141
|
return _result.schema;
|
|
@@ -31697,15 +31312,10 @@ function finalize(ctx, schema) {
|
|
|
31697
31312
|
result.$id = ctx.external.uri(id);
|
|
31698
31313
|
}
|
|
31699
31314
|
Object.assign(result, root.def ?? root.schema);
|
|
31700
|
-
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
31701
|
-
if (rootMetaId !== undefined && result.id === rootMetaId)
|
|
31702
|
-
delete result.id;
|
|
31703
31315
|
const defs = ctx.external?.defs ?? {};
|
|
31704
31316
|
for (const entry of ctx.seen.entries()) {
|
|
31705
31317
|
const seen = entry[1];
|
|
31706
31318
|
if (seen.def && seen.defId) {
|
|
31707
|
-
if (seen.def.id === seen.defId)
|
|
31708
|
-
delete seen.def.id;
|
|
31709
31319
|
defs[seen.defId] = seen.def;
|
|
31710
31320
|
}
|
|
31711
31321
|
}
|
|
@@ -31760,8 +31370,6 @@ function isTransforming(_schema, _ctx) {
|
|
|
31760
31370
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
31761
31371
|
}
|
|
31762
31372
|
if (def.type === "pipe") {
|
|
31763
|
-
if (_schema._zod.traits.has("$ZodCodec"))
|
|
31764
|
-
return true;
|
|
31765
31373
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
31766
31374
|
}
|
|
31767
31375
|
if (def.type === "object") {
|
|
@@ -31802,7 +31410,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
31802
31410
|
extractDefs(ctx, schema);
|
|
31803
31411
|
return finalize(ctx, schema);
|
|
31804
31412
|
};
|
|
31805
|
-
// ../../node_modules/.bun/zod@4.
|
|
31413
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
31806
31414
|
var formatMap = {
|
|
31807
31415
|
guid: "uuid",
|
|
31808
31416
|
url: "uri",
|
|
@@ -31849,28 +31457,39 @@ var numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
31849
31457
|
json.type = "integer";
|
|
31850
31458
|
else
|
|
31851
31459
|
json.type = "number";
|
|
31852
|
-
|
|
31853
|
-
|
|
31854
|
-
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
31855
|
-
if (exMin) {
|
|
31856
|
-
if (legacy) {
|
|
31460
|
+
if (typeof exclusiveMinimum === "number") {
|
|
31461
|
+
if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
|
|
31857
31462
|
json.minimum = exclusiveMinimum;
|
|
31858
31463
|
json.exclusiveMinimum = true;
|
|
31859
31464
|
} else {
|
|
31860
31465
|
json.exclusiveMinimum = exclusiveMinimum;
|
|
31861
31466
|
}
|
|
31862
|
-
}
|
|
31467
|
+
}
|
|
31468
|
+
if (typeof minimum === "number") {
|
|
31863
31469
|
json.minimum = minimum;
|
|
31470
|
+
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
31471
|
+
if (exclusiveMinimum >= minimum)
|
|
31472
|
+
delete json.minimum;
|
|
31473
|
+
else
|
|
31474
|
+
delete json.exclusiveMinimum;
|
|
31475
|
+
}
|
|
31864
31476
|
}
|
|
31865
|
-
if (
|
|
31866
|
-
if (
|
|
31477
|
+
if (typeof exclusiveMaximum === "number") {
|
|
31478
|
+
if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
|
|
31867
31479
|
json.maximum = exclusiveMaximum;
|
|
31868
31480
|
json.exclusiveMaximum = true;
|
|
31869
31481
|
} else {
|
|
31870
31482
|
json.exclusiveMaximum = exclusiveMaximum;
|
|
31871
31483
|
}
|
|
31872
|
-
}
|
|
31484
|
+
}
|
|
31485
|
+
if (typeof maximum === "number") {
|
|
31873
31486
|
json.maximum = maximum;
|
|
31487
|
+
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
31488
|
+
if (exclusiveMaximum <= maximum)
|
|
31489
|
+
delete json.maximum;
|
|
31490
|
+
else
|
|
31491
|
+
delete json.exclusiveMaximum;
|
|
31492
|
+
}
|
|
31874
31493
|
}
|
|
31875
31494
|
if (typeof multipleOf === "number")
|
|
31876
31495
|
json.multipleOf = multipleOf;
|
|
@@ -32038,10 +31657,7 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
32038
31657
|
if (typeof maximum === "number")
|
|
32039
31658
|
json.maxItems = maximum;
|
|
32040
31659
|
json.type = "array";
|
|
32041
|
-
json.items = process2(def.element, ctx, {
|
|
32042
|
-
...params,
|
|
32043
|
-
path: [...params.path, "items"]
|
|
32044
|
-
});
|
|
31660
|
+
json.items = process2(def.element, ctx, { ...params, path: [...params.path, "items"] });
|
|
32045
31661
|
};
|
|
32046
31662
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
32047
31663
|
const json = _json;
|
|
@@ -32234,8 +31850,7 @@ var catchProcessor = (schema, ctx, json, params) => {
|
|
|
32234
31850
|
};
|
|
32235
31851
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
32236
31852
|
const def = schema._zod.def;
|
|
32237
|
-
const
|
|
32238
|
-
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
31853
|
+
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
32239
31854
|
process2(innerType, ctx, params);
|
|
32240
31855
|
const seen = ctx.seen.get(schema);
|
|
32241
31856
|
seen.ref = innerType;
|
|
@@ -32340,7 +31955,7 @@ function toJSONSchema(input, params) {
|
|
|
32340
31955
|
extractDefs(ctx, input);
|
|
32341
31956
|
return finalize(ctx, input);
|
|
32342
31957
|
}
|
|
32343
|
-
// ../../node_modules/.bun/zod@4.
|
|
31958
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
|
|
32344
31959
|
class JSONSchemaGenerator {
|
|
32345
31960
|
get metadataRegistry() {
|
|
32346
31961
|
return this.ctx.metadataRegistry;
|
|
@@ -32399,9 +32014,9 @@ class JSONSchemaGenerator {
|
|
|
32399
32014
|
return plainResult;
|
|
32400
32015
|
}
|
|
32401
32016
|
}
|
|
32402
|
-
// ../../node_modules/.bun/zod@4.
|
|
32017
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
|
|
32403
32018
|
var exports_json_schema = {};
|
|
32404
|
-
// ../../node_modules/.bun/zod@4.
|
|
32019
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
32405
32020
|
var exports_schemas2 = {};
|
|
32406
32021
|
__export(exports_schemas2, {
|
|
32407
32022
|
xor: () => xor,
|
|
@@ -32461,7 +32076,6 @@ __export(exports_schemas2, {
|
|
|
32461
32076
|
json: () => json,
|
|
32462
32077
|
ipv6: () => ipv62,
|
|
32463
32078
|
ipv4: () => ipv42,
|
|
32464
|
-
invertCodec: () => invertCodec,
|
|
32465
32079
|
intersection: () => intersection,
|
|
32466
32080
|
int64: () => int64,
|
|
32467
32081
|
int32: () => int32,
|
|
@@ -32522,7 +32136,6 @@ __export(exports_schemas2, {
|
|
|
32522
32136
|
ZodRecord: () => ZodRecord,
|
|
32523
32137
|
ZodReadonly: () => ZodReadonly,
|
|
32524
32138
|
ZodPromise: () => ZodPromise,
|
|
32525
|
-
ZodPreprocess: () => ZodPreprocess,
|
|
32526
32139
|
ZodPrefault: () => ZodPrefault,
|
|
32527
32140
|
ZodPipe: () => ZodPipe,
|
|
32528
32141
|
ZodOptional: () => ZodOptional,
|
|
@@ -32572,7 +32185,7 @@ __export(exports_schemas2, {
|
|
|
32572
32185
|
ZodAny: () => ZodAny
|
|
32573
32186
|
});
|
|
32574
32187
|
|
|
32575
|
-
// ../../node_modules/.bun/zod@4.
|
|
32188
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/checks.js
|
|
32576
32189
|
var exports_checks2 = {};
|
|
32577
32190
|
__export(exports_checks2, {
|
|
32578
32191
|
uppercase: () => _uppercase,
|
|
@@ -32606,7 +32219,7 @@ __export(exports_checks2, {
|
|
|
32606
32219
|
endsWith: () => _endsWith
|
|
32607
32220
|
});
|
|
32608
32221
|
|
|
32609
|
-
// ../../node_modules/.bun/zod@4.
|
|
32222
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/iso.js
|
|
32610
32223
|
var exports_iso = {};
|
|
32611
32224
|
__export(exports_iso, {
|
|
32612
32225
|
time: () => time2,
|
|
@@ -32647,7 +32260,7 @@ function duration2(params) {
|
|
|
32647
32260
|
return _isoDuration(ZodISODuration, params);
|
|
32648
32261
|
}
|
|
32649
32262
|
|
|
32650
|
-
// ../../node_modules/.bun/zod@4.
|
|
32263
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/errors.js
|
|
32651
32264
|
var initializer2 = (inst, issues) => {
|
|
32652
32265
|
$ZodError.init(inst, issues);
|
|
32653
32266
|
inst.name = "ZodError";
|
|
@@ -32677,12 +32290,12 @@ var initializer2 = (inst, issues) => {
|
|
|
32677
32290
|
}
|
|
32678
32291
|
});
|
|
32679
32292
|
};
|
|
32680
|
-
var ZodError =
|
|
32681
|
-
var ZodRealError =
|
|
32293
|
+
var ZodError = $constructor("ZodError", initializer2);
|
|
32294
|
+
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
32682
32295
|
Parent: Error
|
|
32683
32296
|
});
|
|
32684
32297
|
|
|
32685
|
-
// ../../node_modules/.bun/zod@4.
|
|
32298
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/parse.js
|
|
32686
32299
|
var parse3 = /* @__PURE__ */ _parse(ZodRealError);
|
|
32687
32300
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
32688
32301
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -32696,44 +32309,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
32696
32309
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
32697
32310
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
32698
32311
|
|
|
32699
|
-
// ../../node_modules/.bun/zod@4.
|
|
32700
|
-
var _installedGroups = /* @__PURE__ */ new WeakMap;
|
|
32701
|
-
function _installLazyMethods(inst, group, methods) {
|
|
32702
|
-
const proto = Object.getPrototypeOf(inst);
|
|
32703
|
-
let installed = _installedGroups.get(proto);
|
|
32704
|
-
if (!installed) {
|
|
32705
|
-
installed = new Set;
|
|
32706
|
-
_installedGroups.set(proto, installed);
|
|
32707
|
-
}
|
|
32708
|
-
if (installed.has(group))
|
|
32709
|
-
return;
|
|
32710
|
-
installed.add(group);
|
|
32711
|
-
for (const key in methods) {
|
|
32712
|
-
const fn = methods[key];
|
|
32713
|
-
Object.defineProperty(proto, key, {
|
|
32714
|
-
configurable: true,
|
|
32715
|
-
enumerable: false,
|
|
32716
|
-
get() {
|
|
32717
|
-
const bound = fn.bind(this);
|
|
32718
|
-
Object.defineProperty(this, key, {
|
|
32719
|
-
configurable: true,
|
|
32720
|
-
writable: true,
|
|
32721
|
-
enumerable: true,
|
|
32722
|
-
value: bound
|
|
32723
|
-
});
|
|
32724
|
-
return bound;
|
|
32725
|
-
},
|
|
32726
|
-
set(v) {
|
|
32727
|
-
Object.defineProperty(this, key, {
|
|
32728
|
-
configurable: true,
|
|
32729
|
-
writable: true,
|
|
32730
|
-
enumerable: true,
|
|
32731
|
-
value: v
|
|
32732
|
-
});
|
|
32733
|
-
}
|
|
32734
|
-
});
|
|
32735
|
-
}
|
|
32736
|
-
}
|
|
32312
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
32737
32313
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
32738
32314
|
$ZodType.init(inst, def);
|
|
32739
32315
|
Object.assign(inst["~standard"], {
|
|
@@ -32746,6 +32322,23 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
32746
32322
|
inst.def = def;
|
|
32747
32323
|
inst.type = def.type;
|
|
32748
32324
|
Object.defineProperty(inst, "_def", { value: def });
|
|
32325
|
+
inst.check = (...checks2) => {
|
|
32326
|
+
return inst.clone(exports_util.mergeDefs(def, {
|
|
32327
|
+
checks: [
|
|
32328
|
+
...def.checks ?? [],
|
|
32329
|
+
...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
32330
|
+
]
|
|
32331
|
+
}), {
|
|
32332
|
+
parent: true
|
|
32333
|
+
});
|
|
32334
|
+
};
|
|
32335
|
+
inst.with = inst.check;
|
|
32336
|
+
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
32337
|
+
inst.brand = () => inst;
|
|
32338
|
+
inst.register = (reg, meta2) => {
|
|
32339
|
+
reg.add(inst, meta2);
|
|
32340
|
+
return inst;
|
|
32341
|
+
};
|
|
32749
32342
|
inst.parse = (data, params) => parse3(inst, data, params, { callee: inst.parse });
|
|
32750
32343
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
32751
32344
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -32759,108 +32352,45 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
32759
32352
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
32760
32353
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
32761
32354
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
32762
|
-
|
|
32763
|
-
|
|
32764
|
-
|
|
32765
|
-
|
|
32766
|
-
|
|
32767
|
-
|
|
32768
|
-
|
|
32769
|
-
|
|
32770
|
-
|
|
32771
|
-
|
|
32772
|
-
|
|
32773
|
-
|
|
32774
|
-
|
|
32775
|
-
|
|
32776
|
-
|
|
32777
|
-
|
|
32778
|
-
|
|
32779
|
-
|
|
32780
|
-
|
|
32781
|
-
|
|
32782
|
-
|
|
32783
|
-
|
|
32784
|
-
},
|
|
32785
|
-
refine(check, params) {
|
|
32786
|
-
return this.check(refine(check, params));
|
|
32787
|
-
},
|
|
32788
|
-
superRefine(refinement, params) {
|
|
32789
|
-
return this.check(superRefine(refinement, params));
|
|
32790
|
-
},
|
|
32791
|
-
overwrite(fn) {
|
|
32792
|
-
return this.check(_overwrite(fn));
|
|
32793
|
-
},
|
|
32794
|
-
optional() {
|
|
32795
|
-
return optional(this);
|
|
32796
|
-
},
|
|
32797
|
-
exactOptional() {
|
|
32798
|
-
return exactOptional(this);
|
|
32799
|
-
},
|
|
32800
|
-
nullable() {
|
|
32801
|
-
return nullable(this);
|
|
32802
|
-
},
|
|
32803
|
-
nullish() {
|
|
32804
|
-
return optional(nullable(this));
|
|
32805
|
-
},
|
|
32806
|
-
nonoptional(params) {
|
|
32807
|
-
return nonoptional(this, params);
|
|
32808
|
-
},
|
|
32809
|
-
array() {
|
|
32810
|
-
return array(this);
|
|
32811
|
-
},
|
|
32812
|
-
or(arg) {
|
|
32813
|
-
return union([this, arg]);
|
|
32814
|
-
},
|
|
32815
|
-
and(arg) {
|
|
32816
|
-
return intersection(this, arg);
|
|
32817
|
-
},
|
|
32818
|
-
transform(tx) {
|
|
32819
|
-
return pipe(this, transform(tx));
|
|
32820
|
-
},
|
|
32821
|
-
default(d) {
|
|
32822
|
-
return _default2(this, d);
|
|
32823
|
-
},
|
|
32824
|
-
prefault(d) {
|
|
32825
|
-
return prefault(this, d);
|
|
32826
|
-
},
|
|
32827
|
-
catch(params) {
|
|
32828
|
-
return _catch2(this, params);
|
|
32829
|
-
},
|
|
32830
|
-
pipe(target) {
|
|
32831
|
-
return pipe(this, target);
|
|
32832
|
-
},
|
|
32833
|
-
readonly() {
|
|
32834
|
-
return readonly(this);
|
|
32835
|
-
},
|
|
32836
|
-
describe(description) {
|
|
32837
|
-
const cl = this.clone();
|
|
32838
|
-
globalRegistry.add(cl, { description });
|
|
32839
|
-
return cl;
|
|
32840
|
-
},
|
|
32841
|
-
meta(...args) {
|
|
32842
|
-
if (args.length === 0)
|
|
32843
|
-
return globalRegistry.get(this);
|
|
32844
|
-
const cl = this.clone();
|
|
32845
|
-
globalRegistry.add(cl, args[0]);
|
|
32846
|
-
return cl;
|
|
32847
|
-
},
|
|
32848
|
-
isOptional() {
|
|
32849
|
-
return this.safeParse(undefined).success;
|
|
32850
|
-
},
|
|
32851
|
-
isNullable() {
|
|
32852
|
-
return this.safeParse(null).success;
|
|
32853
|
-
},
|
|
32854
|
-
apply(fn) {
|
|
32855
|
-
return fn(this);
|
|
32856
|
-
}
|
|
32857
|
-
});
|
|
32355
|
+
inst.refine = (check, params) => inst.check(refine(check, params));
|
|
32356
|
+
inst.superRefine = (refinement) => inst.check(superRefine(refinement));
|
|
32357
|
+
inst.overwrite = (fn) => inst.check(_overwrite(fn));
|
|
32358
|
+
inst.optional = () => optional(inst);
|
|
32359
|
+
inst.exactOptional = () => exactOptional(inst);
|
|
32360
|
+
inst.nullable = () => nullable(inst);
|
|
32361
|
+
inst.nullish = () => optional(nullable(inst));
|
|
32362
|
+
inst.nonoptional = (params) => nonoptional(inst, params);
|
|
32363
|
+
inst.array = () => array(inst);
|
|
32364
|
+
inst.or = (arg) => union([inst, arg]);
|
|
32365
|
+
inst.and = (arg) => intersection(inst, arg);
|
|
32366
|
+
inst.transform = (tx) => pipe(inst, transform(tx));
|
|
32367
|
+
inst.default = (def2) => _default2(inst, def2);
|
|
32368
|
+
inst.prefault = (def2) => prefault(inst, def2);
|
|
32369
|
+
inst.catch = (params) => _catch2(inst, params);
|
|
32370
|
+
inst.pipe = (target) => pipe(inst, target);
|
|
32371
|
+
inst.readonly = () => readonly(inst);
|
|
32372
|
+
inst.describe = (description) => {
|
|
32373
|
+
const cl = inst.clone();
|
|
32374
|
+
globalRegistry.add(cl, { description });
|
|
32375
|
+
return cl;
|
|
32376
|
+
};
|
|
32858
32377
|
Object.defineProperty(inst, "description", {
|
|
32859
32378
|
get() {
|
|
32860
32379
|
return globalRegistry.get(inst)?.description;
|
|
32861
32380
|
},
|
|
32862
32381
|
configurable: true
|
|
32863
32382
|
});
|
|
32383
|
+
inst.meta = (...args) => {
|
|
32384
|
+
if (args.length === 0) {
|
|
32385
|
+
return globalRegistry.get(inst);
|
|
32386
|
+
}
|
|
32387
|
+
const cl = inst.clone();
|
|
32388
|
+
globalRegistry.add(cl, args[0]);
|
|
32389
|
+
return cl;
|
|
32390
|
+
};
|
|
32391
|
+
inst.isOptional = () => inst.safeParse(undefined).success;
|
|
32392
|
+
inst.isNullable = () => inst.safeParse(null).success;
|
|
32393
|
+
inst.apply = (fn) => fn(inst);
|
|
32864
32394
|
return inst;
|
|
32865
32395
|
});
|
|
32866
32396
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -32871,53 +32401,21 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
32871
32401
|
inst.format = bag.format ?? null;
|
|
32872
32402
|
inst.minLength = bag.minimum ?? null;
|
|
32873
32403
|
inst.maxLength = bag.maximum ?? null;
|
|
32874
|
-
|
|
32875
|
-
|
|
32876
|
-
|
|
32877
|
-
|
|
32878
|
-
|
|
32879
|
-
|
|
32880
|
-
|
|
32881
|
-
|
|
32882
|
-
|
|
32883
|
-
|
|
32884
|
-
|
|
32885
|
-
|
|
32886
|
-
|
|
32887
|
-
|
|
32888
|
-
|
|
32889
|
-
},
|
|
32890
|
-
max(...args) {
|
|
32891
|
-
return this.check(_maxLength(...args));
|
|
32892
|
-
},
|
|
32893
|
-
length(...args) {
|
|
32894
|
-
return this.check(_length(...args));
|
|
32895
|
-
},
|
|
32896
|
-
nonempty(...args) {
|
|
32897
|
-
return this.check(_minLength(1, ...args));
|
|
32898
|
-
},
|
|
32899
|
-
lowercase(params) {
|
|
32900
|
-
return this.check(_lowercase(params));
|
|
32901
|
-
},
|
|
32902
|
-
uppercase(params) {
|
|
32903
|
-
return this.check(_uppercase(params));
|
|
32904
|
-
},
|
|
32905
|
-
trim() {
|
|
32906
|
-
return this.check(_trim());
|
|
32907
|
-
},
|
|
32908
|
-
normalize(...args) {
|
|
32909
|
-
return this.check(_normalize(...args));
|
|
32910
|
-
},
|
|
32911
|
-
toLowerCase() {
|
|
32912
|
-
return this.check(_toLowerCase());
|
|
32913
|
-
},
|
|
32914
|
-
toUpperCase() {
|
|
32915
|
-
return this.check(_toUpperCase());
|
|
32916
|
-
},
|
|
32917
|
-
slugify() {
|
|
32918
|
-
return this.check(_slugify());
|
|
32919
|
-
}
|
|
32920
|
-
});
|
|
32404
|
+
inst.regex = (...args) => inst.check(_regex(...args));
|
|
32405
|
+
inst.includes = (...args) => inst.check(_includes(...args));
|
|
32406
|
+
inst.startsWith = (...args) => inst.check(_startsWith(...args));
|
|
32407
|
+
inst.endsWith = (...args) => inst.check(_endsWith(...args));
|
|
32408
|
+
inst.min = (...args) => inst.check(_minLength(...args));
|
|
32409
|
+
inst.max = (...args) => inst.check(_maxLength(...args));
|
|
32410
|
+
inst.length = (...args) => inst.check(_length(...args));
|
|
32411
|
+
inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
|
|
32412
|
+
inst.lowercase = (params) => inst.check(_lowercase(params));
|
|
32413
|
+
inst.uppercase = (params) => inst.check(_uppercase(params));
|
|
32414
|
+
inst.trim = () => inst.check(_trim());
|
|
32415
|
+
inst.normalize = (...args) => inst.check(_normalize(...args));
|
|
32416
|
+
inst.toLowerCase = () => inst.check(_toLowerCase());
|
|
32417
|
+
inst.toUpperCase = () => inst.check(_toUpperCase());
|
|
32418
|
+
inst.slugify = () => inst.check(_slugify());
|
|
32921
32419
|
});
|
|
32922
32420
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
32923
32421
|
$ZodString.init(inst, def);
|
|
@@ -32996,7 +32494,7 @@ function url(params) {
|
|
|
32996
32494
|
}
|
|
32997
32495
|
function httpUrl(params) {
|
|
32998
32496
|
return _url(ZodURL, {
|
|
32999
|
-
protocol:
|
|
32497
|
+
protocol: /^https?$/,
|
|
33000
32498
|
hostname: exports_regexes.domain,
|
|
33001
32499
|
...exports_util.normalizeParams(params)
|
|
33002
32500
|
});
|
|
@@ -33138,53 +32636,21 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
33138
32636
|
$ZodNumber.init(inst, def);
|
|
33139
32637
|
ZodType.init(inst, def);
|
|
33140
32638
|
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
33141
|
-
|
|
33142
|
-
|
|
33143
|
-
|
|
33144
|
-
|
|
33145
|
-
|
|
33146
|
-
|
|
33147
|
-
|
|
33148
|
-
|
|
33149
|
-
|
|
33150
|
-
|
|
33151
|
-
|
|
33152
|
-
|
|
33153
|
-
|
|
33154
|
-
|
|
33155
|
-
|
|
33156
|
-
},
|
|
33157
|
-
max(value, params) {
|
|
33158
|
-
return this.check(_lte(value, params));
|
|
33159
|
-
},
|
|
33160
|
-
int(params) {
|
|
33161
|
-
return this.check(int(params));
|
|
33162
|
-
},
|
|
33163
|
-
safe(params) {
|
|
33164
|
-
return this.check(int(params));
|
|
33165
|
-
},
|
|
33166
|
-
positive(params) {
|
|
33167
|
-
return this.check(_gt(0, params));
|
|
33168
|
-
},
|
|
33169
|
-
nonnegative(params) {
|
|
33170
|
-
return this.check(_gte(0, params));
|
|
33171
|
-
},
|
|
33172
|
-
negative(params) {
|
|
33173
|
-
return this.check(_lt(0, params));
|
|
33174
|
-
},
|
|
33175
|
-
nonpositive(params) {
|
|
33176
|
-
return this.check(_lte(0, params));
|
|
33177
|
-
},
|
|
33178
|
-
multipleOf(value, params) {
|
|
33179
|
-
return this.check(_multipleOf(value, params));
|
|
33180
|
-
},
|
|
33181
|
-
step(value, params) {
|
|
33182
|
-
return this.check(_multipleOf(value, params));
|
|
33183
|
-
},
|
|
33184
|
-
finite() {
|
|
33185
|
-
return this;
|
|
33186
|
-
}
|
|
33187
|
-
});
|
|
32639
|
+
inst.gt = (value, params) => inst.check(_gt(value, params));
|
|
32640
|
+
inst.gte = (value, params) => inst.check(_gte(value, params));
|
|
32641
|
+
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
32642
|
+
inst.lt = (value, params) => inst.check(_lt(value, params));
|
|
32643
|
+
inst.lte = (value, params) => inst.check(_lte(value, params));
|
|
32644
|
+
inst.max = (value, params) => inst.check(_lte(value, params));
|
|
32645
|
+
inst.int = (params) => inst.check(int(params));
|
|
32646
|
+
inst.safe = (params) => inst.check(int(params));
|
|
32647
|
+
inst.positive = (params) => inst.check(_gt(0, params));
|
|
32648
|
+
inst.nonnegative = (params) => inst.check(_gte(0, params));
|
|
32649
|
+
inst.negative = (params) => inst.check(_lt(0, params));
|
|
32650
|
+
inst.nonpositive = (params) => inst.check(_lte(0, params));
|
|
32651
|
+
inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
|
|
32652
|
+
inst.step = (value, params) => inst.check(_multipleOf(value, params));
|
|
32653
|
+
inst.finite = () => inst;
|
|
33188
32654
|
const bag = inst._zod.bag;
|
|
33189
32655
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
33190
32656
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -33331,23 +32797,11 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
33331
32797
|
ZodType.init(inst, def);
|
|
33332
32798
|
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
33333
32799
|
inst.element = def.element;
|
|
33334
|
-
|
|
33335
|
-
|
|
33336
|
-
|
|
33337
|
-
|
|
33338
|
-
|
|
33339
|
-
return this.check(_minLength(1, params));
|
|
33340
|
-
},
|
|
33341
|
-
max(n, params) {
|
|
33342
|
-
return this.check(_maxLength(n, params));
|
|
33343
|
-
},
|
|
33344
|
-
length(n, params) {
|
|
33345
|
-
return this.check(_length(n, params));
|
|
33346
|
-
},
|
|
33347
|
-
unwrap() {
|
|
33348
|
-
return this.element;
|
|
33349
|
-
}
|
|
33350
|
-
});
|
|
32800
|
+
inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
|
|
32801
|
+
inst.nonempty = (params) => inst.check(_minLength(1, params));
|
|
32802
|
+
inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
|
|
32803
|
+
inst.length = (len, params) => inst.check(_length(len, params));
|
|
32804
|
+
inst.unwrap = () => inst.element;
|
|
33351
32805
|
});
|
|
33352
32806
|
function array(element, params) {
|
|
33353
32807
|
return _array(ZodArray, element, params);
|
|
@@ -33363,47 +32817,23 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
33363
32817
|
exports_util.defineLazy(inst, "shape", () => {
|
|
33364
32818
|
return def.shape;
|
|
33365
32819
|
});
|
|
33366
|
-
|
|
33367
|
-
|
|
33368
|
-
|
|
33369
|
-
|
|
33370
|
-
|
|
33371
|
-
|
|
33372
|
-
|
|
33373
|
-
|
|
33374
|
-
|
|
33375
|
-
|
|
33376
|
-
|
|
33377
|
-
|
|
33378
|
-
|
|
33379
|
-
|
|
33380
|
-
|
|
33381
|
-
|
|
33382
|
-
|
|
33383
|
-
return this.clone({ ...this._zod.def, catchall: undefined });
|
|
33384
|
-
},
|
|
33385
|
-
extend(incoming) {
|
|
33386
|
-
return exports_util.extend(this, incoming);
|
|
33387
|
-
},
|
|
33388
|
-
safeExtend(incoming) {
|
|
33389
|
-
return exports_util.safeExtend(this, incoming);
|
|
33390
|
-
},
|
|
33391
|
-
merge(other) {
|
|
33392
|
-
return exports_util.merge(this, other);
|
|
33393
|
-
},
|
|
33394
|
-
pick(mask) {
|
|
33395
|
-
return exports_util.pick(this, mask);
|
|
33396
|
-
},
|
|
33397
|
-
omit(mask) {
|
|
33398
|
-
return exports_util.omit(this, mask);
|
|
33399
|
-
},
|
|
33400
|
-
partial(...args) {
|
|
33401
|
-
return exports_util.partial(ZodOptional, this, args[0]);
|
|
33402
|
-
},
|
|
33403
|
-
required(...args) {
|
|
33404
|
-
return exports_util.required(ZodNonOptional, this, args[0]);
|
|
33405
|
-
}
|
|
33406
|
-
});
|
|
32820
|
+
inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
|
|
32821
|
+
inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
|
|
32822
|
+
inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
|
|
32823
|
+
inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
|
|
32824
|
+
inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
|
|
32825
|
+
inst.strip = () => inst.clone({ ...inst._zod.def, catchall: undefined });
|
|
32826
|
+
inst.extend = (incoming) => {
|
|
32827
|
+
return exports_util.extend(inst, incoming);
|
|
32828
|
+
};
|
|
32829
|
+
inst.safeExtend = (incoming) => {
|
|
32830
|
+
return exports_util.safeExtend(inst, incoming);
|
|
32831
|
+
};
|
|
32832
|
+
inst.merge = (other) => exports_util.merge(inst, other);
|
|
32833
|
+
inst.pick = (mask) => exports_util.pick(inst, mask);
|
|
32834
|
+
inst.omit = (mask) => exports_util.omit(inst, mask);
|
|
32835
|
+
inst.partial = (...args) => exports_util.partial(ZodOptional, inst, args[0]);
|
|
32836
|
+
inst.required = (...args) => exports_util.required(ZodNonOptional, inst, args[0]);
|
|
33407
32837
|
});
|
|
33408
32838
|
function object(shape, params) {
|
|
33409
32839
|
const def = {
|
|
@@ -33508,14 +32938,6 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
|
33508
32938
|
inst.valueType = def.valueType;
|
|
33509
32939
|
});
|
|
33510
32940
|
function record(keyType, valueType, params) {
|
|
33511
|
-
if (!valueType || !valueType._zod) {
|
|
33512
|
-
return new ZodRecord({
|
|
33513
|
-
type: "record",
|
|
33514
|
-
keyType: string2(),
|
|
33515
|
-
valueType: keyType,
|
|
33516
|
-
...exports_util.normalizeParams(valueType)
|
|
33517
|
-
});
|
|
33518
|
-
}
|
|
33519
32941
|
return new ZodRecord({
|
|
33520
32942
|
type: "record",
|
|
33521
32943
|
keyType,
|
|
@@ -33687,12 +33109,10 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
33687
33109
|
if (output instanceof Promise) {
|
|
33688
33110
|
return output.then((output2) => {
|
|
33689
33111
|
payload.value = output2;
|
|
33690
|
-
payload.fallback = true;
|
|
33691
33112
|
return payload;
|
|
33692
33113
|
});
|
|
33693
33114
|
}
|
|
33694
33115
|
payload.value = output;
|
|
33695
|
-
payload.fallback = true;
|
|
33696
33116
|
return payload;
|
|
33697
33117
|
};
|
|
33698
33118
|
});
|
|
@@ -33846,20 +33266,6 @@ function codec(in_, out, params) {
|
|
|
33846
33266
|
reverseTransform: params.encode
|
|
33847
33267
|
});
|
|
33848
33268
|
}
|
|
33849
|
-
function invertCodec(codec2) {
|
|
33850
|
-
const def = codec2._zod.def;
|
|
33851
|
-
return new ZodCodec({
|
|
33852
|
-
type: "pipe",
|
|
33853
|
-
in: def.out,
|
|
33854
|
-
out: def.in,
|
|
33855
|
-
transform: def.reverseTransform,
|
|
33856
|
-
reverseTransform: def.transform
|
|
33857
|
-
});
|
|
33858
|
-
}
|
|
33859
|
-
var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
33860
|
-
ZodPipe.init(inst, def);
|
|
33861
|
-
$ZodPreprocess.init(inst, def);
|
|
33862
|
-
});
|
|
33863
33269
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
33864
33270
|
$ZodReadonly.init(inst, def);
|
|
33865
33271
|
ZodType.init(inst, def);
|
|
@@ -33938,8 +33344,8 @@ function custom(fn, _params) {
|
|
|
33938
33344
|
function refine(fn, _params = {}) {
|
|
33939
33345
|
return _refine(ZodCustom, fn, _params);
|
|
33940
33346
|
}
|
|
33941
|
-
function superRefine(fn
|
|
33942
|
-
return _superRefine(fn
|
|
33347
|
+
function superRefine(fn) {
|
|
33348
|
+
return _superRefine(fn);
|
|
33943
33349
|
}
|
|
33944
33350
|
var describe2 = describe;
|
|
33945
33351
|
var meta2 = meta;
|
|
@@ -33977,13 +33383,9 @@ function json(params) {
|
|
|
33977
33383
|
return jsonSchema;
|
|
33978
33384
|
}
|
|
33979
33385
|
function preprocess(fn, schema) {
|
|
33980
|
-
return
|
|
33981
|
-
type: "pipe",
|
|
33982
|
-
in: transform(fn),
|
|
33983
|
-
out: schema
|
|
33984
|
-
});
|
|
33386
|
+
return pipe(transform(fn), schema);
|
|
33985
33387
|
}
|
|
33986
|
-
// ../../node_modules/.bun/zod@4.
|
|
33388
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/compat.js
|
|
33987
33389
|
var ZodIssueCode = {
|
|
33988
33390
|
invalid_type: "invalid_type",
|
|
33989
33391
|
too_big: "too_big",
|
|
@@ -34007,13 +33409,13 @@ function getErrorMap() {
|
|
|
34007
33409
|
}
|
|
34008
33410
|
var ZodFirstPartyTypeKind;
|
|
34009
33411
|
(function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
34010
|
-
// ../../node_modules/.bun/zod@4.
|
|
33412
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
|
|
34011
33413
|
var z = {
|
|
34012
33414
|
...exports_schemas2,
|
|
34013
33415
|
...exports_checks2,
|
|
34014
33416
|
iso: exports_iso
|
|
34015
33417
|
};
|
|
34016
|
-
var RECOGNIZED_KEYS =
|
|
33418
|
+
var RECOGNIZED_KEYS = new Set([
|
|
34017
33419
|
"$schema",
|
|
34018
33420
|
"$ref",
|
|
34019
33421
|
"$defs",
|
|
@@ -34387,6 +33789,12 @@ function convertBaseSchema(schema, ctx) {
|
|
|
34387
33789
|
default:
|
|
34388
33790
|
throw new Error(`Unsupported type: ${type}`);
|
|
34389
33791
|
}
|
|
33792
|
+
if (schema.description) {
|
|
33793
|
+
zodSchema = zodSchema.describe(schema.description);
|
|
33794
|
+
}
|
|
33795
|
+
if (schema.default !== undefined) {
|
|
33796
|
+
zodSchema = zodSchema.default(schema.default);
|
|
33797
|
+
}
|
|
34390
33798
|
return zodSchema;
|
|
34391
33799
|
}
|
|
34392
33800
|
function convertSchema(schema, ctx) {
|
|
@@ -34423,9 +33831,6 @@ function convertSchema(schema, ctx) {
|
|
|
34423
33831
|
if (schema.readOnly === true) {
|
|
34424
33832
|
baseSchema = z.readonly(baseSchema);
|
|
34425
33833
|
}
|
|
34426
|
-
if (schema.default !== undefined) {
|
|
34427
|
-
baseSchema = baseSchema.default(schema.default);
|
|
34428
|
-
}
|
|
34429
33834
|
const extraMeta = {};
|
|
34430
33835
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
34431
33836
|
for (const key of coreMetadataKeys) {
|
|
@@ -34447,34 +33852,25 @@ function convertSchema(schema, ctx) {
|
|
|
34447
33852
|
if (Object.keys(extraMeta).length > 0) {
|
|
34448
33853
|
ctx.registry.add(baseSchema, extraMeta);
|
|
34449
33854
|
}
|
|
34450
|
-
if (schema.description) {
|
|
34451
|
-
baseSchema = baseSchema.describe(schema.description);
|
|
34452
|
-
}
|
|
34453
33855
|
return baseSchema;
|
|
34454
33856
|
}
|
|
34455
33857
|
function fromJSONSchema(schema, params) {
|
|
34456
33858
|
if (typeof schema === "boolean") {
|
|
34457
33859
|
return schema ? z.any() : z.never();
|
|
34458
33860
|
}
|
|
34459
|
-
|
|
34460
|
-
|
|
34461
|
-
normalized = JSON.parse(JSON.stringify(schema));
|
|
34462
|
-
} catch {
|
|
34463
|
-
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
34464
|
-
}
|
|
34465
|
-
const version2 = detectVersion(normalized, params?.defaultTarget);
|
|
34466
|
-
const defs = normalized.$defs || normalized.definitions || {};
|
|
33861
|
+
const version2 = detectVersion(schema, params?.defaultTarget);
|
|
33862
|
+
const defs = schema.$defs || schema.definitions || {};
|
|
34467
33863
|
const ctx = {
|
|
34468
33864
|
version: version2,
|
|
34469
33865
|
defs,
|
|
34470
33866
|
refs: new Map,
|
|
34471
33867
|
processing: new Set,
|
|
34472
|
-
rootSchema:
|
|
33868
|
+
rootSchema: schema,
|
|
34473
33869
|
registry: params?.registry ?? globalRegistry
|
|
34474
33870
|
};
|
|
34475
|
-
return convertSchema(
|
|
33871
|
+
return convertSchema(schema, ctx);
|
|
34476
33872
|
}
|
|
34477
|
-
// ../../node_modules/.bun/zod@4.
|
|
33873
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
|
|
34478
33874
|
var exports_coerce = {};
|
|
34479
33875
|
__export(exports_coerce, {
|
|
34480
33876
|
string: () => string3,
|
|
@@ -34499,7 +33895,7 @@ function date4(params) {
|
|
|
34499
33895
|
return _coercedDate(ZodDate, params);
|
|
34500
33896
|
}
|
|
34501
33897
|
|
|
34502
|
-
// ../../node_modules/.bun/zod@4.
|
|
33898
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
34503
33899
|
config(en_default());
|
|
34504
33900
|
// src/openclaw-compat.ts
|
|
34505
33901
|
var MB = 1024 * 1024;
|
|
@@ -34521,7 +33917,7 @@ function normalizeAccountId(value) {
|
|
|
34521
33917
|
return normalized;
|
|
34522
33918
|
}
|
|
34523
33919
|
function emptyPluginConfigSchema() {
|
|
34524
|
-
function
|
|
33920
|
+
function error48(message) {
|
|
34525
33921
|
return { success: false, error: { issues: [{ path: [], message }] } };
|
|
34526
33922
|
}
|
|
34527
33923
|
return {
|
|
@@ -34530,10 +33926,10 @@ function emptyPluginConfigSchema() {
|
|
|
34530
33926
|
return { success: true, data: undefined };
|
|
34531
33927
|
}
|
|
34532
33928
|
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
34533
|
-
return
|
|
33929
|
+
return error48("expected config object");
|
|
34534
33930
|
}
|
|
34535
33931
|
if (Object.keys(value).length > 0) {
|
|
34536
|
-
return
|
|
33932
|
+
return error48("config must be empty");
|
|
34537
33933
|
}
|
|
34538
33934
|
return { success: true, data: value };
|
|
34539
33935
|
},
|
|
@@ -34775,11 +34171,11 @@ var InlineAccountSchemaBase = exports_external.object({
|
|
|
34775
34171
|
token: exports_external.string().optional(),
|
|
34776
34172
|
tokenFile: exports_external.string().optional(),
|
|
34777
34173
|
capabilities: InlineCapabilitiesSchema.optional(),
|
|
34778
|
-
dmPolicy: DmPolicySchema.default("pairing")
|
|
34174
|
+
dmPolicy: DmPolicySchema.optional().default("pairing"),
|
|
34779
34175
|
allowFrom: exports_external.array(exports_external.string()).optional(),
|
|
34780
34176
|
systemPrompt: exports_external.string().optional(),
|
|
34781
34177
|
groupAllowFrom: exports_external.array(exports_external.string()).optional(),
|
|
34782
|
-
groupPolicy: GroupPolicySchema.default("allowlist")
|
|
34178
|
+
groupPolicy: GroupPolicySchema.optional().default("allowlist"),
|
|
34783
34179
|
groups: exports_external.record(exports_external.string(), InlineGroupSchema.optional()).optional(),
|
|
34784
34180
|
requireMention: exports_external.boolean().optional(),
|
|
34785
34181
|
replyToBotWithoutMention: exports_external.boolean().optional(),
|
|
@@ -35464,10 +34860,10 @@ function describeInlineMediaContext(params) {
|
|
|
35464
34860
|
parts.push(`uploadFileName=${params.uploadFileName}`);
|
|
35465
34861
|
return parts.join(", ");
|
|
35466
34862
|
}
|
|
35467
|
-
function extractErrorMessage2(
|
|
35468
|
-
if (
|
|
35469
|
-
return
|
|
35470
|
-
return String(
|
|
34863
|
+
function extractErrorMessage2(error48) {
|
|
34864
|
+
if (error48 instanceof Error)
|
|
34865
|
+
return error48.message;
|
|
34866
|
+
return String(error48);
|
|
35471
34867
|
}
|
|
35472
34868
|
function resolveMediaMaxBytes(params) {
|
|
35473
34869
|
return resolveChannelMediaMaxBytes({
|
|
@@ -35502,11 +34898,11 @@ async function uploadInlineMediaFromUrl(params) {
|
|
|
35502
34898
|
try {
|
|
35503
34899
|
try {
|
|
35504
34900
|
loaded = await runtimeMedia.loadWebMedia(params.mediaUrl, maxBytes);
|
|
35505
|
-
} catch (
|
|
35506
|
-
const message = String(
|
|
34901
|
+
} catch (error48) {
|
|
34902
|
+
const message = String(error48);
|
|
35507
34903
|
const deniedLocalPath = /not under an allowed directory/i.test(message);
|
|
35508
34904
|
if (!deniedLocalPath || !looksLikeLocalMediaSource(params.mediaUrl)) {
|
|
35509
|
-
throw
|
|
34905
|
+
throw error48;
|
|
35510
34906
|
}
|
|
35511
34907
|
loaded = await loadWebMediaCompat(params.mediaUrl, maxBytes, {
|
|
35512
34908
|
localRoots: "any"
|
|
@@ -35546,7 +34942,7 @@ async function uploadInlineMediaFromUrl(params) {
|
|
|
35546
34942
|
uploadType,
|
|
35547
34943
|
result: upload
|
|
35548
34944
|
});
|
|
35549
|
-
} catch (
|
|
34945
|
+
} catch (error48) {
|
|
35550
34946
|
const context = describeInlineMediaContext({
|
|
35551
34947
|
...params.accountId !== undefined ? { accountId: params.accountId } : {},
|
|
35552
34948
|
mediaUrl: params.mediaUrl,
|
|
@@ -35558,8 +34954,8 @@ async function uploadInlineMediaFromUrl(params) {
|
|
|
35558
34954
|
...uploadType ? { uploadType } : {},
|
|
35559
34955
|
...fileName ? { uploadFileName: fileName } : {}
|
|
35560
34956
|
});
|
|
35561
|
-
throw new Error(`inline media upload failed (${extractErrorMessage2(
|
|
35562
|
-
cause:
|
|
34957
|
+
throw new Error(`inline media upload failed (${extractErrorMessage2(error48)}; ${context})`, {
|
|
34958
|
+
cause: error48
|
|
35563
34959
|
});
|
|
35564
34960
|
}
|
|
35565
34961
|
}
|
|
@@ -36158,7 +35554,9 @@ function resolveInlineReplyActions(payload) {
|
|
|
36158
35554
|
}
|
|
36159
35555
|
if (!hasExplicitButtons)
|
|
36160
35556
|
return;
|
|
36161
|
-
const rows = normalizeReplyMarkupButtonsWith(rawButtons,
|
|
35557
|
+
const rows = normalizeReplyMarkupButtonsWith(rawButtons, {
|
|
35558
|
+
...mapCallbackData ? { mapCallbackData } : {}
|
|
35559
|
+
});
|
|
36162
35560
|
return {
|
|
36163
35561
|
rows: rows.map((row, rowIndex) => ({
|
|
36164
35562
|
actions: row.map((button, buttonIndex) => ({
|
|
@@ -36379,11 +35777,12 @@ function resolveInlineSenderLabel(params) {
|
|
|
36379
35777
|
label = username;
|
|
36380
35778
|
}
|
|
36381
35779
|
const id = senderId ? `id:${senderId}` : undefined;
|
|
35780
|
+
const fallback = senderId ? `user:${senderId}` : undefined;
|
|
36382
35781
|
if (label && id)
|
|
36383
35782
|
return `${label} ${id}`;
|
|
36384
35783
|
if (label)
|
|
36385
35784
|
return label;
|
|
36386
|
-
return
|
|
35785
|
+
return fallback ?? "id:unknown";
|
|
36387
35786
|
}
|
|
36388
35787
|
function resolveInlineConversationLabel(params) {
|
|
36389
35788
|
if (!params.isGroup)
|
|
@@ -36514,6 +35913,47 @@ ${params.currentEntityText}` : null
|
|
|
36514
35913
|
|
|
36515
35914
|
`) || params.rawBody;
|
|
36516
35915
|
}
|
|
35916
|
+
function normalizeInlineAgentMetadataValue(value) {
|
|
35917
|
+
if (typeof value === "boolean")
|
|
35918
|
+
return value;
|
|
35919
|
+
const normalized = value?.replace(/\r\n|\r|\n/g, " ").replace(/\s+/g, " ").trim();
|
|
35920
|
+
return normalized || undefined;
|
|
35921
|
+
}
|
|
35922
|
+
function buildInlineBodyForAgentPrompt(params) {
|
|
35923
|
+
const metadata = {
|
|
35924
|
+
schema: "inline.current_message.v1",
|
|
35925
|
+
channel: normalizeInlineAgentMetadataValue(params.channel),
|
|
35926
|
+
surface: normalizeInlineAgentMetadataValue(params.surface),
|
|
35927
|
+
chat_type: normalizeInlineAgentMetadataValue(params.chatType),
|
|
35928
|
+
chat_id: normalizeInlineAgentMetadataValue(params.chatId),
|
|
35929
|
+
chat_ref: normalizeInlineAgentMetadataValue(params.chatRef),
|
|
35930
|
+
conversation_label: normalizeInlineAgentMetadataValue(params.conversationLabel),
|
|
35931
|
+
message_id: normalizeInlineAgentMetadataValue(params.messageId),
|
|
35932
|
+
event_type: normalizeInlineAgentMetadataValue(params.eventType),
|
|
35933
|
+
sender_id: normalizeInlineAgentMetadataValue(params.senderId),
|
|
35934
|
+
sender_label: normalizeInlineAgentMetadataValue(params.senderLabel),
|
|
35935
|
+
sender_name: normalizeInlineAgentMetadataValue(params.senderName ?? undefined),
|
|
35936
|
+
sender_username: normalizeInlineAgentMetadataValue(params.senderUsername ?? undefined),
|
|
35937
|
+
was_mentioned: params.wasMentioned,
|
|
35938
|
+
reply_to_id: normalizeInlineAgentMetadataValue(params.replyToId ?? undefined),
|
|
35939
|
+
reply_to_sender_id: normalizeInlineAgentMetadataValue(params.replyToSenderId ?? undefined),
|
|
35940
|
+
reply_to_was_bot: params.replyToWasBot === undefined ? undefined : normalizeInlineAgentMetadataValue(params.replyToWasBot),
|
|
35941
|
+
thread_id: normalizeInlineAgentMetadataValue(params.threadId ?? undefined),
|
|
35942
|
+
thread_label: normalizeInlineAgentMetadataValue(params.threadLabel ?? undefined),
|
|
35943
|
+
message_action_interaction_id: normalizeInlineAgentMetadataValue(params.messageActionInteractionId ?? undefined),
|
|
35944
|
+
message_action_id: normalizeInlineAgentMetadataValue(params.messageActionId ?? undefined)
|
|
35945
|
+
};
|
|
35946
|
+
const payload = Object.fromEntries(Object.entries(metadata).filter(([, value]) => value !== undefined));
|
|
35947
|
+
return [
|
|
35948
|
+
"Inline current message metadata (generated by the Inline channel adapter):",
|
|
35949
|
+
"```json",
|
|
35950
|
+
JSON.stringify(payload, null, 2),
|
|
35951
|
+
"```",
|
|
35952
|
+
params.body
|
|
35953
|
+
].filter(Boolean).join(`
|
|
35954
|
+
|
|
35955
|
+
`);
|
|
35956
|
+
}
|
|
36517
35957
|
function resolveInlineMediaMaxBytes(params) {
|
|
36518
35958
|
return resolveChannelMediaMaxBytes({
|
|
36519
35959
|
cfg: params.cfg,
|
|
@@ -36741,7 +36181,7 @@ async function monitorInlineProvider(params) {
|
|
|
36741
36181
|
let client = null;
|
|
36742
36182
|
const pushDiagnostics = (patch) => {
|
|
36743
36183
|
statusSink?.({
|
|
36744
|
-
...patch,
|
|
36184
|
+
...patch ?? {},
|
|
36745
36185
|
...client ? { diagnostics: client.getDiagnostics() } : {}
|
|
36746
36186
|
});
|
|
36747
36187
|
};
|
|
@@ -36872,14 +36312,16 @@ async function monitorInlineProvider(params) {
|
|
|
36872
36312
|
const senderUsername = senderProfile?.username;
|
|
36873
36313
|
const senderName = senderProfile?.name ?? (!isGroup ? chatInfo.title ?? undefined : undefined);
|
|
36874
36314
|
if (reactionEvent) {
|
|
36315
|
+
const actor = senderUsername != null && senderUsername.length > 0 ? `@${senderUsername}` : senderName ?? `user:${senderId}`;
|
|
36875
36316
|
const emoji3 = reactionEvent.emoji.trim() || "a reaction";
|
|
36876
36317
|
const messageId = String(reactionEvent.targetMessageId);
|
|
36877
36318
|
if (reactionEvent.action === "added") {
|
|
36878
|
-
rawBody =
|
|
36319
|
+
rawBody = `${actor} reacted with ${emoji3} to your message #${messageId}`;
|
|
36879
36320
|
} else {
|
|
36880
|
-
rawBody =
|
|
36321
|
+
rawBody = `${actor} removed ${emoji3} from your message #${messageId}`;
|
|
36881
36322
|
}
|
|
36882
36323
|
} else if (callbackActionEvent) {
|
|
36324
|
+
const actor = senderUsername != null && senderUsername.length > 0 ? `@${senderUsername}` : senderName ?? `user:${senderId}`;
|
|
36883
36325
|
const payload = {
|
|
36884
36326
|
type: "inline_message_action_callback",
|
|
36885
36327
|
interaction_id: String(callbackActionEvent.interactionId),
|
|
@@ -36890,7 +36332,7 @@ async function monitorInlineProvider(params) {
|
|
|
36890
36332
|
data_base64: callbackDataToBase64(callbackActionEvent.data),
|
|
36891
36333
|
data_utf8: callbackDataToUtf8(callbackActionEvent.data) ?? null
|
|
36892
36334
|
};
|
|
36893
|
-
rawBody =
|
|
36335
|
+
rawBody = `${actor} pressed a button on message #${String(callbackActionEvent.targetMessageId)}
|
|
36894
36336
|
${JSON.stringify(payload)}`;
|
|
36895
36337
|
}
|
|
36896
36338
|
const dmPolicy = account.config.dmPolicy ?? "pairing";
|
|
@@ -36920,8 +36362,8 @@ ${JSON.stringify(payload)}`;
|
|
|
36920
36362
|
callbackActionAnswered = true;
|
|
36921
36363
|
};
|
|
36922
36364
|
if (callbackActionEvent) {
|
|
36923
|
-
await answerCallbackIfNeeded().catch((
|
|
36924
|
-
runtime2.error?.(`inline callback answer failed: ${String(
|
|
36365
|
+
await answerCallbackIfNeeded().catch((error48) => {
|
|
36366
|
+
runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
|
|
36925
36367
|
});
|
|
36926
36368
|
}
|
|
36927
36369
|
const shouldEditCallbackTargetInPlace = callbackActionEvent != null;
|
|
@@ -36944,8 +36386,8 @@ ${JSON.stringify(payload)}`;
|
|
|
36944
36386
|
if (isGroup) {
|
|
36945
36387
|
if (groupPolicy === "disabled") {
|
|
36946
36388
|
log?.info(`[${account.accountId}] inline: drop group chat=${String(chatId)} (groupPolicy=disabled)`);
|
|
36947
|
-
await answerCallbackIfNeeded().catch((
|
|
36948
|
-
runtime2.error?.(`inline callback answer failed: ${String(
|
|
36389
|
+
await answerCallbackIfNeeded().catch((error48) => {
|
|
36390
|
+
runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
|
|
36949
36391
|
});
|
|
36950
36392
|
return;
|
|
36951
36393
|
}
|
|
@@ -36953,8 +36395,8 @@ ${JSON.stringify(payload)}`;
|
|
|
36953
36395
|
const allowed = allowlistMatch({ allowFrom: effectiveGroupAllowFrom, senderId });
|
|
36954
36396
|
if (!allowed) {
|
|
36955
36397
|
log?.info(`[${account.accountId}] inline: drop group sender=${senderId} (groupPolicy=allowlist)`);
|
|
36956
|
-
await answerCallbackIfNeeded().catch((
|
|
36957
|
-
runtime2.error?.(`inline callback answer failed: ${String(
|
|
36398
|
+
await answerCallbackIfNeeded().catch((error48) => {
|
|
36399
|
+
runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
|
|
36958
36400
|
});
|
|
36959
36401
|
return;
|
|
36960
36402
|
}
|
|
@@ -36962,8 +36404,8 @@ ${JSON.stringify(payload)}`;
|
|
|
36962
36404
|
} else {
|
|
36963
36405
|
if (dmPolicy === "disabled") {
|
|
36964
36406
|
log?.info(`[${account.accountId}] inline: drop DM sender=${senderId} (dmPolicy=disabled)`);
|
|
36965
|
-
await answerCallbackIfNeeded().catch((
|
|
36966
|
-
runtime2.error?.(`inline callback answer failed: ${String(
|
|
36407
|
+
await answerCallbackIfNeeded().catch((error48) => {
|
|
36408
|
+
runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
|
|
36967
36409
|
});
|
|
36968
36410
|
return;
|
|
36969
36411
|
}
|
|
@@ -36995,8 +36437,8 @@ ${JSON.stringify(payload)}`;
|
|
|
36995
36437
|
}
|
|
36996
36438
|
}
|
|
36997
36439
|
log?.info(`[${account.accountId}] inline: drop DM sender=${senderId} (dmPolicy=${dmPolicy})`);
|
|
36998
|
-
await answerCallbackIfNeeded().catch((
|
|
36999
|
-
runtime2.error?.(`inline callback answer failed: ${String(
|
|
36440
|
+
await answerCallbackIfNeeded().catch((error48) => {
|
|
36441
|
+
runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
|
|
37000
36442
|
});
|
|
37001
36443
|
return;
|
|
37002
36444
|
}
|
|
@@ -37009,8 +36451,8 @@ ${JSON.stringify(payload)}`;
|
|
|
37009
36451
|
reason: "control command (unauthorized)",
|
|
37010
36452
|
target: senderId
|
|
37011
36453
|
});
|
|
37012
|
-
await answerCallbackIfNeeded().catch((
|
|
37013
|
-
runtime2.error?.(`inline callback answer failed: ${String(
|
|
36454
|
+
await answerCallbackIfNeeded().catch((error48) => {
|
|
36455
|
+
runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
|
|
37014
36456
|
});
|
|
37015
36457
|
return;
|
|
37016
36458
|
}
|
|
@@ -37099,8 +36541,8 @@ ${JSON.stringify(payload)}`;
|
|
|
37099
36541
|
messageId: String(msg.id)
|
|
37100
36542
|
} : null
|
|
37101
36543
|
});
|
|
37102
|
-
await answerCallbackIfNeeded().catch((
|
|
37103
|
-
runtime2.error?.(`inline callback answer failed: ${String(
|
|
36544
|
+
await answerCallbackIfNeeded().catch((error48) => {
|
|
36545
|
+
runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
|
|
37104
36546
|
});
|
|
37105
36547
|
return;
|
|
37106
36548
|
}
|
|
@@ -37134,8 +36576,8 @@ ${JSON.stringify(payload)}`;
|
|
|
37134
36576
|
throw new Error(`inline native command menu: expected editMessage result, got ${String(result.oneofKind)}`);
|
|
37135
36577
|
}
|
|
37136
36578
|
deliveredNativeMenu = true;
|
|
37137
|
-
} catch (
|
|
37138
|
-
runtime2.error?.(`inline native command menu edit failed; falling back to send (${String(
|
|
36579
|
+
} catch (error48) {
|
|
36580
|
+
runtime2.error?.(`inline native command menu edit failed; falling back to send (${String(error48)})`);
|
|
37139
36581
|
}
|
|
37140
36582
|
}
|
|
37141
36583
|
if (!deliveredNativeMenu) {
|
|
@@ -37149,8 +36591,8 @@ ${JSON.stringify(payload)}`;
|
|
|
37149
36591
|
}
|
|
37150
36592
|
}
|
|
37151
36593
|
statusSink?.({ lastOutboundAt: Date.now() });
|
|
37152
|
-
await answerCallbackIfNeeded().catch((
|
|
37153
|
-
runtime2.error?.(`inline callback answer failed: ${String(
|
|
36594
|
+
await answerCallbackIfNeeded().catch((error48) => {
|
|
36595
|
+
runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
|
|
37154
36596
|
});
|
|
37155
36597
|
return;
|
|
37156
36598
|
}
|
|
@@ -37179,8 +36621,8 @@ ${JSON.stringify(payload)}`;
|
|
|
37179
36621
|
if (result.oneofKind !== "editMessage") {
|
|
37180
36622
|
throw new Error(`inline model picker edit: expected editMessage result, got ${String(result.oneofKind)}`);
|
|
37181
36623
|
}
|
|
37182
|
-
} catch (
|
|
37183
|
-
runtime2.error?.(`inline model picker edit failed; falling back to send (${String(
|
|
36624
|
+
} catch (error48) {
|
|
36625
|
+
runtime2.error?.(`inline model picker edit failed; falling back to send (${String(error48)})`);
|
|
37184
36626
|
const sent = await client.sendMessage({
|
|
37185
36627
|
chatId,
|
|
37186
36628
|
text,
|
|
@@ -37239,14 +36681,14 @@ Select a provider:`, providerButtons);
|
|
|
37239
36681
|
await deliverModelPickerEdit(`✅ Model ${actionText}
|
|
37240
36682
|
|
|
37241
36683
|
This model will be used for your next message.`, []);
|
|
37242
|
-
} catch (
|
|
37243
|
-
await deliverModelPickerEdit(`❌ Failed to change model: ${String(
|
|
36684
|
+
} catch (error48) {
|
|
36685
|
+
await deliverModelPickerEdit(`❌ Failed to change model: ${String(error48)}`, []);
|
|
37244
36686
|
}
|
|
37245
36687
|
}
|
|
37246
36688
|
}
|
|
37247
36689
|
statusSink?.({ lastOutboundAt: Date.now() });
|
|
37248
|
-
await answerCallbackIfNeeded().catch((
|
|
37249
|
-
runtime2.error?.(`inline callback answer failed: ${String(
|
|
36690
|
+
await answerCallbackIfNeeded().catch((error48) => {
|
|
36691
|
+
runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
|
|
37250
36692
|
});
|
|
37251
36693
|
return;
|
|
37252
36694
|
}
|
|
@@ -37318,15 +36760,45 @@ This model will be used for your next message.`, []);
|
|
|
37318
36760
|
pendingEntries: groupPendingHistories.get(groupHistoryKey) ?? [],
|
|
37319
36761
|
limit: historyLimit
|
|
37320
36762
|
}) : [];
|
|
37321
|
-
const bodyForAgent = currentBody;
|
|
37322
36763
|
const effectiveSurface = shouldUseTelegramSurfaceForModelCommands(normalizedCommandBody) ? "telegram" : CHANNEL_ID;
|
|
37323
36764
|
const systemPrompt = resolveInlineSystemPrompt({
|
|
37324
36765
|
account,
|
|
37325
36766
|
...isGroup ? { groupId: String(effectiveChatId) } : {}
|
|
37326
36767
|
});
|
|
36768
|
+
const messageSid = buildInlineInboundMessageSid({
|
|
36769
|
+
msgId: msg.id,
|
|
36770
|
+
...callbackActionEvent ? { callbackActionEvent } : {}
|
|
36771
|
+
});
|
|
36772
|
+
const eventType = callbackActionEvent ? "message_action" : reactionEvent ? `reaction_${reactionEvent.action}` : "message";
|
|
36773
|
+
const bodyForAgent = buildInlineBodyForAgentPrompt({
|
|
36774
|
+
body,
|
|
36775
|
+
channel: CHANNEL_ID,
|
|
36776
|
+
surface: effectiveSurface,
|
|
36777
|
+
chatType: isGroup ? "group" : "direct",
|
|
36778
|
+
chatId: String(effectiveChatId),
|
|
36779
|
+
chatRef: `inline:${String(effectiveChatId)}`,
|
|
36780
|
+
conversationLabel: fromLabel,
|
|
36781
|
+
messageId: messageSid,
|
|
36782
|
+
eventType,
|
|
36783
|
+
senderId,
|
|
36784
|
+
senderLabel,
|
|
36785
|
+
wasMentioned: mentionGate.effectiveWasMentioned,
|
|
36786
|
+
...senderName ? { senderName } : {},
|
|
36787
|
+
...senderUsername ? { senderUsername } : {},
|
|
36788
|
+
...msg.replyToMsgId != null ? { replyToId: String(msg.replyToMsgId) } : {},
|
|
36789
|
+
...effectiveHistoryContext.replyToSenderId != null ? { replyToSenderId: effectiveHistoryContext.replyToSenderId } : {},
|
|
36790
|
+
...msg.replyToMsgId != null ? { replyToWasBot: effectiveHistoryContext.repliedToBot } : {},
|
|
36791
|
+
...replyThreadContext ? { threadId: String(replyThreadContext.childChatId) } : {},
|
|
36792
|
+
...replyThreadContext?.threadLabel ? { threadLabel: replyThreadContext.threadLabel } : {},
|
|
36793
|
+
...callbackActionEvent ? {
|
|
36794
|
+
messageActionInteractionId: String(callbackActionEvent.interactionId),
|
|
36795
|
+
messageActionId: callbackActionEvent.actionId
|
|
36796
|
+
} : {}
|
|
36797
|
+
});
|
|
37327
36798
|
const ctxPayload = core3.channel.reply.finalizeInboundContext({
|
|
37328
36799
|
Body: body,
|
|
37329
36800
|
BodyForAgent: bodyForAgent,
|
|
36801
|
+
BodyForCommands: normalizedCommandBody,
|
|
37330
36802
|
...isGroup ? { InboundHistory: inboundHistory } : {},
|
|
37331
36803
|
RawBody: rawBody,
|
|
37332
36804
|
CommandBody: normalizedCommandBody,
|
|
@@ -37343,10 +36815,7 @@ This model will be used for your next message.`, []);
|
|
|
37343
36815
|
...senderUsername ? { SenderUsername: senderUsername } : {},
|
|
37344
36816
|
Provider: CHANNEL_ID,
|
|
37345
36817
|
Surface: effectiveSurface,
|
|
37346
|
-
MessageSid:
|
|
37347
|
-
msgId: msg.id,
|
|
37348
|
-
...callbackActionEvent ? { callbackActionEvent } : {}
|
|
37349
|
-
}),
|
|
36818
|
+
MessageSid: messageSid,
|
|
37350
36819
|
...replyThreadContext ? { MessageThreadId: String(replyThreadContext.childChatId) } : {},
|
|
37351
36820
|
...replyThreadContext?.threadLabel ? { ThreadLabel: replyThreadContext.threadLabel } : {},
|
|
37352
36821
|
...msg.replyToMsgId != null ? { ReplyToId: String(msg.replyToMsgId) } : {},
|
|
@@ -37484,9 +36953,9 @@ This model will be used for your next message.`, []);
|
|
|
37484
36953
|
}
|
|
37485
36954
|
editStreamState.accumulatedText = nextText;
|
|
37486
36955
|
statusSink?.({ lastOutboundAt: Date.now() });
|
|
37487
|
-
} catch (
|
|
36956
|
+
} catch (error48) {
|
|
37488
36957
|
editStreamState.failed = true;
|
|
37489
|
-
runtime2.error?.(`inline edit stream failed: ${String(
|
|
36958
|
+
runtime2.error?.(`inline edit stream failed: ${String(error48)}`);
|
|
37490
36959
|
}
|
|
37491
36960
|
});
|
|
37492
36961
|
await editStreamState.opChain;
|
|
@@ -37669,8 +37138,8 @@ This model will be used for your next message.`, []);
|
|
|
37669
37138
|
});
|
|
37670
37139
|
rememberSent(sent.messageId);
|
|
37671
37140
|
delivered = true;
|
|
37672
|
-
} catch (
|
|
37673
|
-
runtime2.error?.(`inline media upload failed; falling back to url text (${String(
|
|
37141
|
+
} catch (error48) {
|
|
37142
|
+
runtime2.error?.(`inline media upload failed; falling back to url text (${String(error48)})`);
|
|
37674
37143
|
const fallbackText = caption ? `${caption}
|
|
37675
37144
|
|
|
37676
37145
|
Attachment: ${mediaUrl}` : `Attachment: ${mediaUrl}`;
|
|
@@ -37691,9 +37160,9 @@ Attachment: ${mediaUrl}` : `Attachment: ${mediaUrl}`;
|
|
|
37691
37160
|
},
|
|
37692
37161
|
replyOptions
|
|
37693
37162
|
});
|
|
37694
|
-
} catch (
|
|
37695
|
-
dispatchError =
|
|
37696
|
-
runtime2.error?.(`inline dispatch failed: ${String(
|
|
37163
|
+
} catch (error48) {
|
|
37164
|
+
dispatchError = error48;
|
|
37165
|
+
runtime2.error?.(`inline dispatch failed: ${String(error48)}`);
|
|
37697
37166
|
}
|
|
37698
37167
|
if (!delivered && streamViaEditMessage && editStreamState.messageId != null) {
|
|
37699
37168
|
delivered = true;
|
|
@@ -37715,8 +37184,8 @@ Attachment: ${mediaUrl}` : `Attachment: ${mediaUrl}`;
|
|
|
37715
37184
|
if (callbackActionEvent && !callbackActionAnswered) {
|
|
37716
37185
|
try {
|
|
37717
37186
|
await answerCallbackIfNeeded();
|
|
37718
|
-
} catch (
|
|
37719
|
-
runtime2.error?.(`inline callback answer failed: ${String(
|
|
37187
|
+
} catch (error48) {
|
|
37188
|
+
runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
|
|
37720
37189
|
}
|
|
37721
37190
|
}
|
|
37722
37191
|
}
|
|
@@ -38565,18 +38034,18 @@ async function loadMessageReactions(params) {
|
|
|
38565
38034
|
}
|
|
38566
38035
|
return Array.from(byEmoji.values());
|
|
38567
38036
|
}
|
|
38568
|
-
function getErrorMessage(
|
|
38569
|
-
if (
|
|
38570
|
-
return
|
|
38571
|
-
if (typeof
|
|
38572
|
-
return
|
|
38573
|
-
if (
|
|
38574
|
-
return
|
|
38037
|
+
function getErrorMessage(error48) {
|
|
38038
|
+
if (error48 instanceof Error)
|
|
38039
|
+
return error48.message;
|
|
38040
|
+
if (typeof error48 === "string")
|
|
38041
|
+
return error48;
|
|
38042
|
+
if (error48 && typeof error48 === "object" && "message" in error48 && typeof error48.message === "string") {
|
|
38043
|
+
return error48.message;
|
|
38575
38044
|
}
|
|
38576
|
-
return String(
|
|
38045
|
+
return String(error48);
|
|
38577
38046
|
}
|
|
38578
|
-
function isDuplicateReactionError(
|
|
38579
|
-
const text = getErrorMessage(
|
|
38047
|
+
function isDuplicateReactionError(error48) {
|
|
38048
|
+
const text = getErrorMessage(error48).toLowerCase();
|
|
38580
38049
|
return text.includes("unique_reaction_per_emoji") || text.includes("duplicate") && text.includes("reaction") || text.includes("duplicate key value violates unique constraint");
|
|
38581
38050
|
}
|
|
38582
38051
|
async function reactionAlreadyExists(params) {
|
|
@@ -38980,8 +38449,8 @@ var inlineMessageActions = {
|
|
|
38980
38449
|
if (result.oneofKind !== "addReaction") {
|
|
38981
38450
|
throw new Error(`inline action: expected addReaction result, got ${String(result.oneofKind)}`);
|
|
38982
38451
|
}
|
|
38983
|
-
} catch (
|
|
38984
|
-
if (!isDuplicateReactionError(
|
|
38452
|
+
} catch (error48) {
|
|
38453
|
+
if (!isDuplicateReactionError(error48)) {
|
|
38985
38454
|
return jsonResult({
|
|
38986
38455
|
ok: false,
|
|
38987
38456
|
reason: "error",
|
|
@@ -39708,9 +39177,9 @@ async function withTimeout(promise2, timeoutMs) {
|
|
|
39708
39177
|
promise2.then((value) => {
|
|
39709
39178
|
clearTimeout(timer);
|
|
39710
39179
|
resolve(value);
|
|
39711
|
-
}, (
|
|
39180
|
+
}, (error48) => {
|
|
39712
39181
|
clearTimeout(timer);
|
|
39713
|
-
reject(
|
|
39182
|
+
reject(error48);
|
|
39714
39183
|
});
|
|
39715
39184
|
});
|
|
39716
39185
|
}
|
|
@@ -39751,11 +39220,11 @@ async function probeInlineAccountDirect(account) {
|
|
|
39751
39220
|
await client.close().catch(() => {});
|
|
39752
39221
|
}
|
|
39753
39222
|
}
|
|
39754
|
-
function toErrorText(
|
|
39755
|
-
if (
|
|
39756
|
-
return
|
|
39223
|
+
function toErrorText(error48) {
|
|
39224
|
+
if (error48 instanceof Error && error48.message.trim()) {
|
|
39225
|
+
return error48.message;
|
|
39757
39226
|
}
|
|
39758
|
-
return String(
|
|
39227
|
+
return String(error48);
|
|
39759
39228
|
}
|
|
39760
39229
|
async function probeInlineAccount(account, timeoutMs) {
|
|
39761
39230
|
if (!account.configured) {
|
|
@@ -39768,12 +39237,12 @@ async function probeInlineAccount(account, timeoutMs) {
|
|
|
39768
39237
|
}
|
|
39769
39238
|
try {
|
|
39770
39239
|
return await withTimeout(probeInlineAccountDirect(account), timeoutMs);
|
|
39771
|
-
} catch (
|
|
39240
|
+
} catch (error48) {
|
|
39772
39241
|
return {
|
|
39773
39242
|
ok: false,
|
|
39774
39243
|
accountId: account.accountId,
|
|
39775
39244
|
baseUrl: account.baseUrl,
|
|
39776
|
-
error: toErrorText(
|
|
39245
|
+
error: toErrorText(error48)
|
|
39777
39246
|
};
|
|
39778
39247
|
}
|
|
39779
39248
|
}
|
|
@@ -39789,9 +39258,9 @@ function readInlineProbeSummary(value) {
|
|
|
39789
39258
|
if (typeof value.ok === "boolean") {
|
|
39790
39259
|
summary.ok = value.ok;
|
|
39791
39260
|
}
|
|
39792
|
-
const
|
|
39793
|
-
if (
|
|
39794
|
-
summary.error =
|
|
39261
|
+
const error48 = asString(value.error);
|
|
39262
|
+
if (error48) {
|
|
39263
|
+
summary.error = error48;
|
|
39795
39264
|
}
|
|
39796
39265
|
return summary;
|
|
39797
39266
|
}
|
|
@@ -40134,10 +39603,10 @@ async function resolveInlineOutboundTarget(params) {
|
|
|
40134
39603
|
}
|
|
40135
39604
|
return target;
|
|
40136
39605
|
}
|
|
40137
|
-
function isChatInvalidError(
|
|
40138
|
-
if (
|
|
39606
|
+
function isChatInvalidError(error48) {
|
|
39607
|
+
if (error48 == null)
|
|
40139
39608
|
return false;
|
|
40140
|
-
const text =
|
|
39609
|
+
const text = error48 instanceof Error ? error48.message : String(error48);
|
|
40141
39610
|
return text.toUpperCase().includes("CHAT_INVALID");
|
|
40142
39611
|
}
|
|
40143
39612
|
function wrapInlineTargetError(params) {
|
|
@@ -40337,9 +39806,9 @@ async function sendMessageInline(params) {
|
|
|
40337
39806
|
text: params.text,
|
|
40338
39807
|
...replyToMsgId != null ? { replyToMsgId } : {},
|
|
40339
39808
|
parseMarkdown: account.config.parseMarkdown ?? true
|
|
40340
|
-
}).catch((
|
|
39809
|
+
}).catch((error48) => {
|
|
40341
39810
|
throw wrapInlineTargetError({
|
|
40342
|
-
error:
|
|
39811
|
+
error: error48,
|
|
40343
39812
|
context: "sendText",
|
|
40344
39813
|
target,
|
|
40345
39814
|
resolvedTarget
|
|
@@ -40395,9 +39864,9 @@ async function sendMediaInline(params) {
|
|
|
40395
39864
|
media,
|
|
40396
39865
|
...replyToMsgId != null ? { replyToMsgId } : {},
|
|
40397
39866
|
...caption ? { parseMarkdown: account.config.parseMarkdown ?? true } : {}
|
|
40398
|
-
}).catch((
|
|
39867
|
+
}).catch((error48) => {
|
|
40399
39868
|
throw wrapInlineTargetError({
|
|
40400
|
-
error:
|
|
39869
|
+
error: error48,
|
|
40401
39870
|
context: "sendMedia",
|
|
40402
39871
|
target,
|
|
40403
39872
|
resolvedTarget
|
|
@@ -40497,7 +39966,7 @@ var inlineChannelPlugin = {
|
|
|
40497
39966
|
blockStreamingCoalesceDefaults: { minChars: 1500, idleMs: 1000 }
|
|
40498
39967
|
},
|
|
40499
39968
|
reload: { configPrefixes: ["channels.inline"] },
|
|
40500
|
-
configSchema: buildChannelConfigSchema(
|
|
39969
|
+
configSchema: buildChannelConfigSchema(InlineConfigSchema),
|
|
40501
39970
|
setup: inlineSetupAdapter,
|
|
40502
39971
|
setupWizard: inlineSetupWizard,
|
|
40503
39972
|
config: {
|
|
@@ -41611,11 +41080,11 @@ async function uploadProfilePhoto(client, rawSource) {
|
|
|
41611
41080
|
let loaded;
|
|
41612
41081
|
try {
|
|
41613
41082
|
loaded = await runtimeMedia.loadWebMedia(rawSource);
|
|
41614
|
-
} catch (
|
|
41615
|
-
const message = String(
|
|
41083
|
+
} catch (error48) {
|
|
41084
|
+
const message = String(error48);
|
|
41616
41085
|
const deniedLocalPath = /not under an allowed directory/i.test(message);
|
|
41617
41086
|
if (!deniedLocalPath || !looksLikeLocalMediaSource2(rawSource)) {
|
|
41618
|
-
throw
|
|
41087
|
+
throw error48;
|
|
41619
41088
|
}
|
|
41620
41089
|
loaded = await loadWebMediaCompat(rawSource, undefined, { localRoots: "any" });
|
|
41621
41090
|
}
|
|
@@ -41709,8 +41178,8 @@ async function callInlineBotApi(params) {
|
|
|
41709
41178
|
let response;
|
|
41710
41179
|
try {
|
|
41711
41180
|
response = await fetch(url2, request);
|
|
41712
|
-
} catch (
|
|
41713
|
-
throw new Error(`inline_bot_commands: ${params.method} ${redactInlineBotApiUrl(url2)} fetch failed: ${summarizeInlineBotApiError(
|
|
41181
|
+
} catch (error48) {
|
|
41182
|
+
throw new Error(`inline_bot_commands: ${params.method} ${redactInlineBotApiUrl(url2)} fetch failed: ${summarizeInlineBotApiError(error48)}`);
|
|
41714
41183
|
}
|
|
41715
41184
|
const payload = await response.json().catch(() => null);
|
|
41716
41185
|
return { response, payload };
|
|
@@ -41741,11 +41210,11 @@ async function callInlineBotApi(params) {
|
|
|
41741
41210
|
}
|
|
41742
41211
|
return resolve(headerResult);
|
|
41743
41212
|
}
|
|
41744
|
-
function summarizeInlineBotApiError(
|
|
41745
|
-
if (
|
|
41746
|
-
return `${
|
|
41213
|
+
function summarizeInlineBotApiError(error48) {
|
|
41214
|
+
if (error48 instanceof Error) {
|
|
41215
|
+
return `${error48.name}: ${error48.message}`;
|
|
41747
41216
|
}
|
|
41748
|
-
return String(
|
|
41217
|
+
return String(error48);
|
|
41749
41218
|
}
|
|
41750
41219
|
function redactInlineBotApiUrl(raw) {
|
|
41751
41220
|
try {
|
|
@@ -42094,5 +41563,5 @@ export {
|
|
|
42094
41563
|
src_default as default
|
|
42095
41564
|
};
|
|
42096
41565
|
|
|
42097
|
-
//# debugId=
|
|
41566
|
+
//# debugId=B33FF7937CAA205D64756E2164756E21
|
|
42098
41567
|
//# sourceMappingURL=index.js.map
|