@xyo-network/hash 5.0.2 → 5.0.4
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
CHANGED
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
// ../../../../../../node_modules/.store/@xylabs-platform-npm-5.0.
|
|
48
|
+
// ../../../../../../node_modules/.store/@xylabs-platform-npm-5.0.7-005dd2549f/package/dist/browser/index-browser.mjs
|
|
49
49
|
var subtle = globalThis.crypto.subtle;
|
|
50
50
|
|
|
51
|
-
// ../../../../../../node_modules/.store/@xylabs-threads-npm-5.0.
|
|
51
|
+
// ../../../../../../node_modules/.store/@xylabs-threads-npm-5.0.7-714fac05c7/package/dist/browser/worker/worker.browser.mjs
|
|
52
52
|
var import_is_observable_2_1_0 = __toESM(require_package(), 1);
|
|
53
53
|
var __defProp2 = Object.defineProperty;
|
|
54
54
|
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
@@ -132,19 +132,19 @@
|
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
__name(Transfer, "Transfer");
|
|
135
|
-
var MasterMessageType = /* @__PURE__ */ function(MasterMessageType2) {
|
|
135
|
+
var MasterMessageType = /* @__PURE__ */ (function(MasterMessageType2) {
|
|
136
136
|
MasterMessageType2["cancel"] = "cancel";
|
|
137
137
|
MasterMessageType2["run"] = "run";
|
|
138
138
|
return MasterMessageType2;
|
|
139
|
-
}({});
|
|
140
|
-
var WorkerMessageType = /* @__PURE__ */ function(WorkerMessageType2) {
|
|
139
|
+
})({});
|
|
140
|
+
var WorkerMessageType = /* @__PURE__ */ (function(WorkerMessageType2) {
|
|
141
141
|
WorkerMessageType2["error"] = "error";
|
|
142
142
|
WorkerMessageType2["init"] = "init";
|
|
143
143
|
WorkerMessageType2["result"] = "result";
|
|
144
144
|
WorkerMessageType2["running"] = "running";
|
|
145
145
|
WorkerMessageType2["uncaughtError"] = "uncaughtError";
|
|
146
146
|
return WorkerMessageType2;
|
|
147
|
-
}({});
|
|
147
|
+
})({});
|
|
148
148
|
var isErrorEvent = /* @__PURE__ */ __name((value) => value && value.error, "isErrorEvent");
|
|
149
149
|
function createExpose(implementation, self2) {
|
|
150
150
|
let exposeCalled = false;
|
|
@@ -49,18 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
// ../../../../../../node_modules/.store
|
|
53
|
-
function isUndefined(value) {
|
|
54
|
-
return value === void 0;
|
|
55
|
-
}
|
|
56
|
-
function isString(value) {
|
|
57
|
-
return typeof value === "string";
|
|
58
|
-
}
|
|
59
|
-
function isNumber(value) {
|
|
60
|
-
return typeof value === "number";
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.15-0197501092/package/v4/classic/external.js
|
|
52
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/classic/external.js
|
|
64
53
|
var external_exports = {};
|
|
65
54
|
__export(external_exports, {
|
|
66
55
|
$brand: () => $brand,
|
|
@@ -274,7 +263,7 @@
|
|
|
274
263
|
xid: () => xid2
|
|
275
264
|
});
|
|
276
265
|
|
|
277
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
266
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/index.js
|
|
278
267
|
var core_exports2 = {};
|
|
279
268
|
__export(core_exports2, {
|
|
280
269
|
$ZodAny: () => $ZodAny,
|
|
@@ -520,7 +509,7 @@
|
|
|
520
509
|
version: () => version
|
|
521
510
|
});
|
|
522
511
|
|
|
523
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
512
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/core.js
|
|
524
513
|
var NEVER = Object.freeze({
|
|
525
514
|
status: "aborted"
|
|
526
515
|
});
|
|
@@ -580,7 +569,7 @@
|
|
|
580
569
|
return globalConfig;
|
|
581
570
|
}
|
|
582
571
|
|
|
583
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
572
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/util.js
|
|
584
573
|
var util_exports = {};
|
|
585
574
|
__export(util_exports, {
|
|
586
575
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -633,6 +622,7 @@
|
|
|
633
622
|
propertyKeyTypes: () => propertyKeyTypes,
|
|
634
623
|
randomString: () => randomString,
|
|
635
624
|
required: () => required,
|
|
625
|
+
shallowClone: () => shallowClone,
|
|
636
626
|
stringifyPrimitive: () => stringifyPrimitive,
|
|
637
627
|
unwrapMessage: () => unwrapMessage
|
|
638
628
|
});
|
|
@@ -801,6 +791,11 @@
|
|
|
801
791
|
}
|
|
802
792
|
return true;
|
|
803
793
|
}
|
|
794
|
+
function shallowClone(o) {
|
|
795
|
+
if (isPlainObject(o))
|
|
796
|
+
return { ...o };
|
|
797
|
+
return o;
|
|
798
|
+
}
|
|
804
799
|
function numKeys(data) {
|
|
805
800
|
let keyCount = 0;
|
|
806
801
|
for (const key in data) {
|
|
@@ -1140,7 +1135,7 @@
|
|
|
1140
1135
|
}
|
|
1141
1136
|
};
|
|
1142
1137
|
|
|
1143
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
1138
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/errors.js
|
|
1144
1139
|
var initializer = (inst, def) => {
|
|
1145
1140
|
inst.name = "$ZodError";
|
|
1146
1141
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1282,7 +1277,7 @@
|
|
|
1282
1277
|
return lines.join("\n");
|
|
1283
1278
|
}
|
|
1284
1279
|
|
|
1285
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
1280
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/parse.js
|
|
1286
1281
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1287
1282
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
1288
1283
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -1334,7 +1329,7 @@
|
|
|
1334
1329
|
};
|
|
1335
1330
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
1336
1331
|
|
|
1337
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
1332
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/regexes.js
|
|
1338
1333
|
var regexes_exports = {};
|
|
1339
1334
|
__export(regexes_exports, {
|
|
1340
1335
|
base64: () => base64,
|
|
@@ -1448,7 +1443,7 @@
|
|
|
1448
1443
|
var lowercase = /^[^A-Z]*$/;
|
|
1449
1444
|
var uppercase = /^[^a-z]*$/;
|
|
1450
1445
|
|
|
1451
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
1446
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/checks.js
|
|
1452
1447
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1453
1448
|
var _a2;
|
|
1454
1449
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1988,7 +1983,7 @@
|
|
|
1988
1983
|
};
|
|
1989
1984
|
});
|
|
1990
1985
|
|
|
1991
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
1986
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/doc.js
|
|
1992
1987
|
var Doc = class {
|
|
1993
1988
|
constructor(args = []) {
|
|
1994
1989
|
this.content = [];
|
|
@@ -2024,14 +2019,14 @@
|
|
|
2024
2019
|
}
|
|
2025
2020
|
};
|
|
2026
2021
|
|
|
2027
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
2022
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/versions.js
|
|
2028
2023
|
var version = {
|
|
2029
2024
|
major: 4,
|
|
2030
2025
|
minor: 0,
|
|
2031
|
-
patch:
|
|
2026
|
+
patch: 17
|
|
2032
2027
|
};
|
|
2033
2028
|
|
|
2034
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
2029
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/schemas.js
|
|
2035
2030
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2036
2031
|
var _a2;
|
|
2037
2032
|
inst ?? (inst = {});
|
|
@@ -2667,7 +2662,7 @@
|
|
|
2667
2662
|
const _normalized = cached(() => {
|
|
2668
2663
|
const keys = Object.keys(def.shape);
|
|
2669
2664
|
for (const k of keys) {
|
|
2670
|
-
if (!
|
|
2665
|
+
if (!def.shape[k]._zod.traits.has("$ZodType")) {
|
|
2671
2666
|
throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
|
|
2672
2667
|
}
|
|
2673
2668
|
}
|
|
@@ -3559,7 +3554,7 @@
|
|
|
3559
3554
|
$ZodType.init(inst, def);
|
|
3560
3555
|
const regexParts = [];
|
|
3561
3556
|
for (const part of def.parts) {
|
|
3562
|
-
if (part
|
|
3557
|
+
if (typeof part === "object" && part !== null) {
|
|
3563
3558
|
if (!part._zod.pattern) {
|
|
3564
3559
|
throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);
|
|
3565
3560
|
}
|
|
@@ -3652,7 +3647,7 @@
|
|
|
3652
3647
|
}
|
|
3653
3648
|
}
|
|
3654
3649
|
|
|
3655
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
3650
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/index.js
|
|
3656
3651
|
var locales_exports = {};
|
|
3657
3652
|
__export(locales_exports, {
|
|
3658
3653
|
ar: () => ar_default,
|
|
@@ -3699,7 +3694,7 @@
|
|
|
3699
3694
|
zhTW: () => zh_TW_default
|
|
3700
3695
|
});
|
|
3701
3696
|
|
|
3702
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
3697
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/ar.js
|
|
3703
3698
|
var error = () => {
|
|
3704
3699
|
const Sizable = {
|
|
3705
3700
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -3816,7 +3811,7 @@
|
|
|
3816
3811
|
};
|
|
3817
3812
|
}
|
|
3818
3813
|
|
|
3819
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
3814
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/az.js
|
|
3820
3815
|
var error2 = () => {
|
|
3821
3816
|
const Sizable = {
|
|
3822
3817
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -3932,7 +3927,7 @@
|
|
|
3932
3927
|
};
|
|
3933
3928
|
}
|
|
3934
3929
|
|
|
3935
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
3930
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/be.js
|
|
3936
3931
|
function getBelarusianPlural(count, one, few, many) {
|
|
3937
3932
|
const absCount = Math.abs(count);
|
|
3938
3933
|
const lastDigit = absCount % 10;
|
|
@@ -4097,7 +4092,7 @@
|
|
|
4097
4092
|
};
|
|
4098
4093
|
}
|
|
4099
4094
|
|
|
4100
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
4095
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/ca.js
|
|
4101
4096
|
var error4 = () => {
|
|
4102
4097
|
const Sizable = {
|
|
4103
4098
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -4217,7 +4212,7 @@
|
|
|
4217
4212
|
};
|
|
4218
4213
|
}
|
|
4219
4214
|
|
|
4220
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
4215
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/cs.js
|
|
4221
4216
|
var error5 = () => {
|
|
4222
4217
|
const Sizable = {
|
|
4223
4218
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -4353,7 +4348,7 @@
|
|
|
4353
4348
|
};
|
|
4354
4349
|
}
|
|
4355
4350
|
|
|
4356
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
4351
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/da.js
|
|
4357
4352
|
var error6 = () => {
|
|
4358
4353
|
const Sizable = {
|
|
4359
4354
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -4485,7 +4480,7 @@
|
|
|
4485
4480
|
};
|
|
4486
4481
|
}
|
|
4487
4482
|
|
|
4488
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
4483
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/de.js
|
|
4489
4484
|
var error7 = () => {
|
|
4490
4485
|
const Sizable = {
|
|
4491
4486
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -4602,7 +4597,7 @@
|
|
|
4602
4597
|
};
|
|
4603
4598
|
}
|
|
4604
4599
|
|
|
4605
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
4600
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/en.js
|
|
4606
4601
|
var parsedType = (data) => {
|
|
4607
4602
|
const t = typeof data;
|
|
4608
4603
|
switch (t) {
|
|
@@ -4720,7 +4715,7 @@
|
|
|
4720
4715
|
};
|
|
4721
4716
|
}
|
|
4722
4717
|
|
|
4723
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
4718
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/eo.js
|
|
4724
4719
|
var parsedType2 = (data) => {
|
|
4725
4720
|
const t = typeof data;
|
|
4726
4721
|
switch (t) {
|
|
@@ -4837,7 +4832,7 @@
|
|
|
4837
4832
|
};
|
|
4838
4833
|
}
|
|
4839
4834
|
|
|
4840
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
4835
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/es.js
|
|
4841
4836
|
var error10 = () => {
|
|
4842
4837
|
const Sizable = {
|
|
4843
4838
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -4955,7 +4950,7 @@
|
|
|
4955
4950
|
};
|
|
4956
4951
|
}
|
|
4957
4952
|
|
|
4958
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
4953
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/fa.js
|
|
4959
4954
|
var error11 = () => {
|
|
4960
4955
|
const Sizable = {
|
|
4961
4956
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -5078,7 +5073,7 @@
|
|
|
5078
5073
|
};
|
|
5079
5074
|
}
|
|
5080
5075
|
|
|
5081
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
5076
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/fi.js
|
|
5082
5077
|
var error12 = () => {
|
|
5083
5078
|
const Sizable = {
|
|
5084
5079
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -5201,7 +5196,7 @@
|
|
|
5201
5196
|
};
|
|
5202
5197
|
}
|
|
5203
5198
|
|
|
5204
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
5199
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/fr.js
|
|
5205
5200
|
var error13 = () => {
|
|
5206
5201
|
const Sizable = {
|
|
5207
5202
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -5318,7 +5313,7 @@
|
|
|
5318
5313
|
};
|
|
5319
5314
|
}
|
|
5320
5315
|
|
|
5321
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
5316
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/fr-CA.js
|
|
5322
5317
|
var error14 = () => {
|
|
5323
5318
|
const Sizable = {
|
|
5324
5319
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -5436,7 +5431,7 @@
|
|
|
5436
5431
|
};
|
|
5437
5432
|
}
|
|
5438
5433
|
|
|
5439
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
5434
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/he.js
|
|
5440
5435
|
var error15 = () => {
|
|
5441
5436
|
const Sizable = {
|
|
5442
5437
|
string: { unit: "\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
|
|
@@ -5554,7 +5549,7 @@
|
|
|
5554
5549
|
};
|
|
5555
5550
|
}
|
|
5556
5551
|
|
|
5557
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
5552
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/hu.js
|
|
5558
5553
|
var error16 = () => {
|
|
5559
5554
|
const Sizable = {
|
|
5560
5555
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -5672,7 +5667,7 @@
|
|
|
5672
5667
|
};
|
|
5673
5668
|
}
|
|
5674
5669
|
|
|
5675
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
5670
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/id.js
|
|
5676
5671
|
var error17 = () => {
|
|
5677
5672
|
const Sizable = {
|
|
5678
5673
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -5789,7 +5784,7 @@
|
|
|
5789
5784
|
};
|
|
5790
5785
|
}
|
|
5791
5786
|
|
|
5792
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
5787
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/is.js
|
|
5793
5788
|
var parsedType3 = (data) => {
|
|
5794
5789
|
const t = typeof data;
|
|
5795
5790
|
switch (t) {
|
|
@@ -5907,7 +5902,7 @@
|
|
|
5907
5902
|
};
|
|
5908
5903
|
}
|
|
5909
5904
|
|
|
5910
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
5905
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/it.js
|
|
5911
5906
|
var error19 = () => {
|
|
5912
5907
|
const Sizable = {
|
|
5913
5908
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -6025,7 +6020,7 @@
|
|
|
6025
6020
|
};
|
|
6026
6021
|
}
|
|
6027
6022
|
|
|
6028
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
6023
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/ja.js
|
|
6029
6024
|
var error20 = () => {
|
|
6030
6025
|
const Sizable = {
|
|
6031
6026
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -6141,7 +6136,7 @@
|
|
|
6141
6136
|
};
|
|
6142
6137
|
}
|
|
6143
6138
|
|
|
6144
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
6139
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/kh.js
|
|
6145
6140
|
var error21 = () => {
|
|
6146
6141
|
const Sizable = {
|
|
6147
6142
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -6259,7 +6254,7 @@
|
|
|
6259
6254
|
};
|
|
6260
6255
|
}
|
|
6261
6256
|
|
|
6262
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
6257
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/ko.js
|
|
6263
6258
|
var error22 = () => {
|
|
6264
6259
|
const Sizable = {
|
|
6265
6260
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -6381,7 +6376,7 @@
|
|
|
6381
6376
|
};
|
|
6382
6377
|
}
|
|
6383
6378
|
|
|
6384
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
6379
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/mk.js
|
|
6385
6380
|
var error23 = () => {
|
|
6386
6381
|
const Sizable = {
|
|
6387
6382
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -6500,7 +6495,7 @@
|
|
|
6500
6495
|
};
|
|
6501
6496
|
}
|
|
6502
6497
|
|
|
6503
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
6498
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/ms.js
|
|
6504
6499
|
var error24 = () => {
|
|
6505
6500
|
const Sizable = {
|
|
6506
6501
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -6617,7 +6612,7 @@
|
|
|
6617
6612
|
};
|
|
6618
6613
|
}
|
|
6619
6614
|
|
|
6620
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
6615
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/nl.js
|
|
6621
6616
|
var error25 = () => {
|
|
6622
6617
|
const Sizable = {
|
|
6623
6618
|
string: { unit: "tekens" },
|
|
@@ -6735,7 +6730,7 @@
|
|
|
6735
6730
|
};
|
|
6736
6731
|
}
|
|
6737
6732
|
|
|
6738
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
6733
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/no.js
|
|
6739
6734
|
var error26 = () => {
|
|
6740
6735
|
const Sizable = {
|
|
6741
6736
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -6852,7 +6847,7 @@
|
|
|
6852
6847
|
};
|
|
6853
6848
|
}
|
|
6854
6849
|
|
|
6855
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
6850
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/ota.js
|
|
6856
6851
|
var error27 = () => {
|
|
6857
6852
|
const Sizable = {
|
|
6858
6853
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -6970,7 +6965,7 @@
|
|
|
6970
6965
|
};
|
|
6971
6966
|
}
|
|
6972
6967
|
|
|
6973
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
6968
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/ps.js
|
|
6974
6969
|
var error28 = () => {
|
|
6975
6970
|
const Sizable = {
|
|
6976
6971
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -7093,7 +7088,7 @@
|
|
|
7093
7088
|
};
|
|
7094
7089
|
}
|
|
7095
7090
|
|
|
7096
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
7091
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/pl.js
|
|
7097
7092
|
var error29 = () => {
|
|
7098
7093
|
const Sizable = {
|
|
7099
7094
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -7211,7 +7206,7 @@
|
|
|
7211
7206
|
};
|
|
7212
7207
|
}
|
|
7213
7208
|
|
|
7214
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
7209
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/pt.js
|
|
7215
7210
|
var error30 = () => {
|
|
7216
7211
|
const Sizable = {
|
|
7217
7212
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -7328,7 +7323,7 @@
|
|
|
7328
7323
|
};
|
|
7329
7324
|
}
|
|
7330
7325
|
|
|
7331
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
7326
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/ru.js
|
|
7332
7327
|
function getRussianPlural(count, one, few, many) {
|
|
7333
7328
|
const absCount = Math.abs(count);
|
|
7334
7329
|
const lastDigit = absCount % 10;
|
|
@@ -7493,7 +7488,7 @@
|
|
|
7493
7488
|
};
|
|
7494
7489
|
}
|
|
7495
7490
|
|
|
7496
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
7491
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/sl.js
|
|
7497
7492
|
var error32 = () => {
|
|
7498
7493
|
const Sizable = {
|
|
7499
7494
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -7611,7 +7606,7 @@
|
|
|
7611
7606
|
};
|
|
7612
7607
|
}
|
|
7613
7608
|
|
|
7614
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
7609
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/sv.js
|
|
7615
7610
|
var error33 = () => {
|
|
7616
7611
|
const Sizable = {
|
|
7617
7612
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -7730,7 +7725,7 @@
|
|
|
7730
7725
|
};
|
|
7731
7726
|
}
|
|
7732
7727
|
|
|
7733
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
7728
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/ta.js
|
|
7734
7729
|
var error34 = () => {
|
|
7735
7730
|
const Sizable = {
|
|
7736
7731
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -7848,7 +7843,7 @@
|
|
|
7848
7843
|
};
|
|
7849
7844
|
}
|
|
7850
7845
|
|
|
7851
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
7846
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/th.js
|
|
7852
7847
|
var error35 = () => {
|
|
7853
7848
|
const Sizable = {
|
|
7854
7849
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -7966,7 +7961,7 @@
|
|
|
7966
7961
|
};
|
|
7967
7962
|
}
|
|
7968
7963
|
|
|
7969
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
7964
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/tr.js
|
|
7970
7965
|
var parsedType4 = (data) => {
|
|
7971
7966
|
const t = typeof data;
|
|
7972
7967
|
switch (t) {
|
|
@@ -8082,7 +8077,7 @@
|
|
|
8082
8077
|
};
|
|
8083
8078
|
}
|
|
8084
8079
|
|
|
8085
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
8080
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/ua.js
|
|
8086
8081
|
var error37 = () => {
|
|
8087
8082
|
const Sizable = {
|
|
8088
8083
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -8200,7 +8195,7 @@
|
|
|
8200
8195
|
};
|
|
8201
8196
|
}
|
|
8202
8197
|
|
|
8203
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
8198
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/ur.js
|
|
8204
8199
|
var error38 = () => {
|
|
8205
8200
|
const Sizable = {
|
|
8206
8201
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -8318,7 +8313,7 @@
|
|
|
8318
8313
|
};
|
|
8319
8314
|
}
|
|
8320
8315
|
|
|
8321
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
8316
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/vi.js
|
|
8322
8317
|
var error39 = () => {
|
|
8323
8318
|
const Sizable = {
|
|
8324
8319
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -8435,7 +8430,7 @@
|
|
|
8435
8430
|
};
|
|
8436
8431
|
}
|
|
8437
8432
|
|
|
8438
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
8433
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/zh-CN.js
|
|
8439
8434
|
var error40 = () => {
|
|
8440
8435
|
const Sizable = {
|
|
8441
8436
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -8552,7 +8547,7 @@
|
|
|
8552
8547
|
};
|
|
8553
8548
|
}
|
|
8554
8549
|
|
|
8555
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
8550
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/zh-TW.js
|
|
8556
8551
|
var error41 = () => {
|
|
8557
8552
|
const Sizable = {
|
|
8558
8553
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -8670,7 +8665,7 @@
|
|
|
8670
8665
|
};
|
|
8671
8666
|
}
|
|
8672
8667
|
|
|
8673
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
8668
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/locales/yo.js
|
|
8674
8669
|
var error42 = () => {
|
|
8675
8670
|
const Sizable = {
|
|
8676
8671
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -8786,7 +8781,7 @@
|
|
|
8786
8781
|
};
|
|
8787
8782
|
}
|
|
8788
8783
|
|
|
8789
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
8784
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/registries.js
|
|
8790
8785
|
var $output = Symbol("ZodOutput");
|
|
8791
8786
|
var $input = Symbol("ZodInput");
|
|
8792
8787
|
var $ZodRegistry = class {
|
|
@@ -8837,7 +8832,7 @@
|
|
|
8837
8832
|
}
|
|
8838
8833
|
var globalRegistry = /* @__PURE__ */ registry();
|
|
8839
8834
|
|
|
8840
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
8835
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/api.js
|
|
8841
8836
|
function _string(Class2, params) {
|
|
8842
8837
|
return new Class2({
|
|
8843
8838
|
type: "string",
|
|
@@ -9548,7 +9543,7 @@
|
|
|
9548
9543
|
type: "default",
|
|
9549
9544
|
innerType,
|
|
9550
9545
|
get defaultValue() {
|
|
9551
|
-
return typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
9546
|
+
return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
|
|
9552
9547
|
}
|
|
9553
9548
|
});
|
|
9554
9549
|
}
|
|
@@ -9724,7 +9719,7 @@
|
|
|
9724
9719
|
return inst;
|
|
9725
9720
|
}
|
|
9726
9721
|
|
|
9727
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
9722
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/function.js
|
|
9728
9723
|
var $ZodFunction = class {
|
|
9729
9724
|
constructor(def) {
|
|
9730
9725
|
this._def = def;
|
|
@@ -9734,28 +9729,28 @@
|
|
|
9734
9729
|
if (typeof func !== "function") {
|
|
9735
9730
|
throw new Error("implement() must be called with a function");
|
|
9736
9731
|
}
|
|
9737
|
-
const impl = (...args) => {
|
|
9732
|
+
const impl = ((...args) => {
|
|
9738
9733
|
const parsedArgs = this._def.input ? parse(this._def.input, args, void 0, { callee: impl }) : args;
|
|
9739
9734
|
if (!Array.isArray(parsedArgs)) {
|
|
9740
9735
|
throw new Error("Invalid arguments schema: not an array or tuple schema.");
|
|
9741
9736
|
}
|
|
9742
9737
|
const output = func(...parsedArgs);
|
|
9743
9738
|
return this._def.output ? parse(this._def.output, output, void 0, { callee: impl }) : output;
|
|
9744
|
-
};
|
|
9739
|
+
});
|
|
9745
9740
|
return impl;
|
|
9746
9741
|
}
|
|
9747
9742
|
implementAsync(func) {
|
|
9748
9743
|
if (typeof func !== "function") {
|
|
9749
9744
|
throw new Error("implement() must be called with a function");
|
|
9750
9745
|
}
|
|
9751
|
-
const impl = async (...args) => {
|
|
9746
|
+
const impl = (async (...args) => {
|
|
9752
9747
|
const parsedArgs = this._def.input ? await parseAsync(this._def.input, args, void 0, { callee: impl }) : args;
|
|
9753
9748
|
if (!Array.isArray(parsedArgs)) {
|
|
9754
9749
|
throw new Error("Invalid arguments schema: not an array or tuple schema.");
|
|
9755
9750
|
}
|
|
9756
9751
|
const output = await func(...parsedArgs);
|
|
9757
9752
|
return this._def.output ? parseAsync(this._def.output, output, void 0, { callee: impl }) : output;
|
|
9758
|
-
};
|
|
9753
|
+
});
|
|
9759
9754
|
return impl;
|
|
9760
9755
|
}
|
|
9761
9756
|
input(...args) {
|
|
@@ -9794,7 +9789,7 @@
|
|
|
9794
9789
|
});
|
|
9795
9790
|
}
|
|
9796
9791
|
|
|
9797
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
9792
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/to-json-schema.js
|
|
9798
9793
|
var JSONSchemaGenerator = class {
|
|
9799
9794
|
constructor(params) {
|
|
9800
9795
|
this.counter = 0;
|
|
@@ -10584,10 +10579,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
10584
10579
|
throw new Error(`Unknown schema type: ${def.type}`);
|
|
10585
10580
|
}
|
|
10586
10581
|
|
|
10587
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
10582
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/core/json-schema.js
|
|
10588
10583
|
var json_schema_exports = {};
|
|
10589
10584
|
|
|
10590
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
10585
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/classic/iso.js
|
|
10591
10586
|
var iso_exports = {};
|
|
10592
10587
|
__export(iso_exports, {
|
|
10593
10588
|
ZodISODate: () => ZodISODate,
|
|
@@ -10628,7 +10623,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
10628
10623
|
return _isoDuration(ZodISODuration, params);
|
|
10629
10624
|
}
|
|
10630
10625
|
|
|
10631
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
10626
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/classic/errors.js
|
|
10632
10627
|
var initializer2 = (inst, issues) => {
|
|
10633
10628
|
$ZodError.init(inst, issues);
|
|
10634
10629
|
inst.name = "ZodError";
|
|
@@ -10668,13 +10663,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
10668
10663
|
Parent: Error
|
|
10669
10664
|
});
|
|
10670
10665
|
|
|
10671
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
10666
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/classic/parse.js
|
|
10672
10667
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
10673
10668
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
10674
10669
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
10675
10670
|
var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
10676
10671
|
|
|
10677
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
10672
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/classic/schemas.js
|
|
10678
10673
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
10679
10674
|
$ZodType.init(inst, def);
|
|
10680
10675
|
inst.def = def;
|
|
@@ -10693,10 +10688,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
10693
10688
|
};
|
|
10694
10689
|
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
10695
10690
|
inst.brand = () => inst;
|
|
10696
|
-
inst.register = (reg, meta) => {
|
|
10691
|
+
inst.register = ((reg, meta) => {
|
|
10697
10692
|
reg.add(inst, meta);
|
|
10698
10693
|
return inst;
|
|
10699
|
-
};
|
|
10694
|
+
});
|
|
10700
10695
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
10701
10696
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
10702
10697
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -11117,7 +11112,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11117
11112
|
}
|
|
11118
11113
|
function keyof(schema) {
|
|
11119
11114
|
const shape = schema._zod.def.shape;
|
|
11120
|
-
return
|
|
11115
|
+
return _enum2(Object.keys(shape));
|
|
11121
11116
|
}
|
|
11122
11117
|
var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
11123
11118
|
$ZodObject.init(inst, def);
|
|
@@ -11430,7 +11425,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11430
11425
|
type: "default",
|
|
11431
11426
|
innerType,
|
|
11432
11427
|
get defaultValue() {
|
|
11433
|
-
return typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
11428
|
+
return typeof defaultValue === "function" ? defaultValue() : util_exports.shallowClone(defaultValue);
|
|
11434
11429
|
}
|
|
11435
11430
|
});
|
|
11436
11431
|
}
|
|
@@ -11444,7 +11439,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11444
11439
|
type: "prefault",
|
|
11445
11440
|
innerType,
|
|
11446
11441
|
get defaultValue() {
|
|
11447
|
-
return typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
11442
|
+
return typeof defaultValue === "function" ? defaultValue() : util_exports.shallowClone(defaultValue);
|
|
11448
11443
|
}
|
|
11449
11444
|
});
|
|
11450
11445
|
}
|
|
@@ -11599,7 +11594,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11599
11594
|
return pipe(transform(fn), schema);
|
|
11600
11595
|
}
|
|
11601
11596
|
|
|
11602
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
11597
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/classic/compat.js
|
|
11603
11598
|
var ZodIssueCode = {
|
|
11604
11599
|
invalid_type: "invalid_type",
|
|
11605
11600
|
too_big: "too_big",
|
|
@@ -11625,7 +11620,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11625
11620
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
11626
11621
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
11627
11622
|
|
|
11628
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
11623
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/classic/coerce.js
|
|
11629
11624
|
var coerce_exports = {};
|
|
11630
11625
|
__export(coerce_exports, {
|
|
11631
11626
|
bigint: () => bigint3,
|
|
@@ -11650,13 +11645,32 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11650
11645
|
return _coercedDate(ZodDate, params);
|
|
11651
11646
|
}
|
|
11652
11647
|
|
|
11653
|
-
// ../../../../../../node_modules/.store/zod-npm-4.0.
|
|
11648
|
+
// ../../../../../../node_modules/.store/zod-npm-4.0.17-c6c059c49a/package/v4/classic/external.js
|
|
11654
11649
|
config(en_default());
|
|
11655
11650
|
|
|
11656
|
-
// ../../../../../../node_modules/.store
|
|
11657
|
-
|
|
11651
|
+
// ../../../../../../node_modules/.store/@xylabs-typeof-npm-5.0.7-51af89fa48/package/dist/neutral/index.mjs
|
|
11652
|
+
function isUndefined(value) {
|
|
11653
|
+
return value === void 0;
|
|
11654
|
+
}
|
|
11655
|
+
function isString(value) {
|
|
11656
|
+
return typeof value === "string";
|
|
11657
|
+
}
|
|
11658
|
+
function isNumber(value) {
|
|
11659
|
+
return typeof value === "number";
|
|
11660
|
+
}
|
|
11658
11661
|
|
|
11659
|
-
// ../../../../../../node_modules/.store/@xylabs-hex-npm-5.0.
|
|
11662
|
+
// ../../../../../../node_modules/.store/@xylabs-hex-npm-5.0.7-9026b4390c/package/dist/neutral/index.mjs
|
|
11663
|
+
var HexRegExMinMax = (minBytes = 0, maxBytes = Number.MAX_SAFE_INTEGER / 2) => {
|
|
11664
|
+
return new RegExp(`^[a-f0-9]{${minBytes * 2},${maxBytes * 2}}$`);
|
|
11665
|
+
};
|
|
11666
|
+
var HexRegExMinMaxMixedCaseWithPrefix = (minBytes = 0, maxBytes = Number.MAX_SAFE_INTEGER / 2) => {
|
|
11667
|
+
return new RegExp(`^0x[a-fA-F0-9]{${minBytes * 2},${maxBytes * 2}}$`);
|
|
11668
|
+
};
|
|
11669
|
+
var HexRegEx = /^[0-9a-f]+$/;
|
|
11670
|
+
var HexRegExWithPrefix = /^0x[0-9a-f]+$/;
|
|
11671
|
+
var ADDRESS_LENGTH = 40;
|
|
11672
|
+
var AddressRegEx = HexRegExMinMax(ADDRESS_LENGTH / 2, ADDRESS_LENGTH / 2);
|
|
11673
|
+
var AddressZod = external_exports.string().regex(AddressRegEx, { message: "Invalid hex format" });
|
|
11660
11674
|
var assertError = (value, assert2, defaultMessage) => {
|
|
11661
11675
|
if (!isUndefined(assert2)) {
|
|
11662
11676
|
const assertString = typeof assert2 === "string" ? assert2 : typeof assert2 === "boolean" ? defaultMessage : assert2(value, defaultMessage);
|
|
@@ -11666,14 +11680,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11666
11680
|
}
|
|
11667
11681
|
return void 0;
|
|
11668
11682
|
};
|
|
11669
|
-
var HexRegExMinMax = (minBytes = 0, maxBytes = Number.MAX_SAFE_INTEGER / 2) => {
|
|
11670
|
-
return new RegExp(`^[a-f0-9]{${minBytes * 2},${maxBytes * 2}}$`);
|
|
11671
|
-
};
|
|
11672
|
-
var HexRegExMinMaxMixedCaseWithPrefix = (minBytes = 0, maxBytes = Number.MAX_SAFE_INTEGER / 2) => {
|
|
11673
|
-
return new RegExp(`^0x[a-fA-F0-9]{${minBytes * 2},${maxBytes * 2}}$`);
|
|
11674
|
-
};
|
|
11675
|
-
var HexRegEx = /^[0-9a-f]+$/;
|
|
11676
|
-
var HexRegExWithPrefix = /^0x[0-9a-f]+$/;
|
|
11677
11683
|
var bitsToNibbles = (value) => {
|
|
11678
11684
|
const nibbles = value >> 2;
|
|
11679
11685
|
if (value !== nibbles << 2) throw new Error("Bits for nibbles must multiple of 4");
|
|
@@ -11731,21 +11737,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11731
11737
|
}
|
|
11732
11738
|
}
|
|
11733
11739
|
};
|
|
11734
|
-
var HexZod =
|
|
11735
|
-
var
|
|
11736
|
-
|
|
11737
|
-
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
|
|
11740
|
+
var HexZod = external_exports.string().regex(HexRegEx, { message: "Invalid hex format" });
|
|
11741
|
+
var toHex = (value, config2 = {}) => {
|
|
11742
|
+
const { prefix = false } = config2;
|
|
11743
|
+
return hexFrom(value, { prefix, ...config2 });
|
|
11744
|
+
};
|
|
11745
|
+
var AddressValidationZod = external_exports.string().refine((x) => HexZod.safeParse(x)).refine((x) => x.length === ADDRESS_LENGTH, { error: (e) => new Error(`Address must have 40 characters [${e.input}]`) }).transform((v) => v);
|
|
11746
|
+
var AddressTransformZod = external_exports.union([external_exports.string(), external_exports.bigint(), external_exports.number()]).transform((value) => {
|
|
11747
|
+
switch (typeof value) {
|
|
11748
|
+
case "bigint": {
|
|
11749
|
+
return value.toString(16).padStart(ADDRESS_LENGTH, "0");
|
|
11750
|
+
}
|
|
11751
|
+
case "string": {
|
|
11752
|
+
if (value.startsWith("0x")) {
|
|
11753
|
+
return value.slice(2);
|
|
11754
|
+
}
|
|
11755
|
+
return value;
|
|
11756
|
+
}
|
|
11757
|
+
case "number": {
|
|
11758
|
+
return BigInt(value).toString(16).padStart(ADDRESS_LENGTH, "0");
|
|
11759
|
+
}
|
|
11742
11760
|
}
|
|
11743
|
-
|
|
11744
|
-
}).refine((x) => AddressZodValidation.safeParse(x).data).transform((x) => x);
|
|
11745
|
-
var AddressRegEx = HexRegExMinMax(20, 20);
|
|
11746
|
-
var AddressToStringZod = package_default.string().regex(AddressRegEx);
|
|
11747
|
-
var AddressFromStringZod = package_default.string().toLowerCase().regex(AddressRegEx).transform((v) => toAddress(v));
|
|
11748
|
-
var ADDRESS_LENGTH = 40;
|
|
11761
|
+
}).refine((x) => AddressValidationZod.safeParse(x).data).transform((x) => x);
|
|
11749
11762
|
var toAddress = (value, config2 = {}) => {
|
|
11750
11763
|
const { bitLength = 160, prefix = false } = config2;
|
|
11751
11764
|
return hexFrom(value, {
|
|
@@ -11754,9 +11767,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11754
11767
|
...config2
|
|
11755
11768
|
});
|
|
11756
11769
|
};
|
|
11770
|
+
var AddressToStringZod = external_exports.string().regex(AddressRegEx);
|
|
11771
|
+
var AddressFromStringZod = external_exports.string().toLowerCase().regex(AddressRegEx).transform((v) => toAddress(v));
|
|
11757
11772
|
var EthAddressRegEx = HexRegExMinMaxMixedCaseWithPrefix(20, 20);
|
|
11758
|
-
var
|
|
11759
|
-
var
|
|
11773
|
+
var EthAddressToStringZod = external_exports.string().regex(EthAddressRegEx);
|
|
11774
|
+
var EthAddressFromStringZod = external_exports.string().regex(EthAddressRegEx).transform((v) => toEthAddress(v));
|
|
11760
11775
|
var toEthAddress = (value, config2 = {}) => {
|
|
11761
11776
|
const { bitLength = 160, prefix = false } = config2;
|
|
11762
11777
|
return `0x${hexFrom(value, {
|
|
@@ -11769,16 +11784,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11769
11784
|
const { bitLength = 160, prefix = true } = config2;
|
|
11770
11785
|
return isHex(value, { bitLength, prefix });
|
|
11771
11786
|
};
|
|
11772
|
-
var EthAddressZod =
|
|
11787
|
+
var EthAddressZod = external_exports.string().regex(EthAddressRegEx, { message: "Invalid address format" }).refine(
|
|
11773
11788
|
isEthAddress
|
|
11774
11789
|
);
|
|
11775
|
-
var HashRegEx = HexRegExMinMax(32, 32);
|
|
11776
11790
|
var isHash = (value, bitLength = 256) => {
|
|
11777
11791
|
return isHex(value, { bitLength });
|
|
11778
11792
|
};
|
|
11779
|
-
var HashZod = package_default.string().toLowerCase().regex(HashRegEx, { message: "Invalid hash format" }).refine(
|
|
11780
|
-
isHash
|
|
11781
|
-
);
|
|
11782
11793
|
function asHash(value, assert2) {
|
|
11783
11794
|
let stringValue = void 0;
|
|
11784
11795
|
switch (typeof value) {
|
|
@@ -11792,8 +11803,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11792
11803
|
}
|
|
11793
11804
|
return isHash(stringValue) ? stringValue : assertError(value, assert2, `Value is not a Hash [${value}]`);
|
|
11794
11805
|
}
|
|
11806
|
+
var HASH_LENGTH = 32;
|
|
11807
|
+
var HashRegEx = HexRegExMinMax(HASH_LENGTH, HASH_LENGTH);
|
|
11808
|
+
var HashZod = external_exports.string().regex(HashRegEx, { message: "Invalid hex format" });
|
|
11809
|
+
var HashToJsonZod = HashZod.transform((v) => v);
|
|
11810
|
+
var JsonToHashZod = external_exports.string().transform((v) => asHash(v, true));
|
|
11811
|
+
function hexToBigInt(hex) {
|
|
11812
|
+
return BigInt(hexFromHexString(hex, { prefix: true }));
|
|
11813
|
+
}
|
|
11814
|
+
var BigIntToJsonZod = external_exports.bigint().nonnegative().transform((x) => toHex(x));
|
|
11815
|
+
var JsonToBigIntZod = external_exports.string().transform((x) => toHex(x)).transform((x) => hexToBigInt(x));
|
|
11795
11816
|
|
|
11796
|
-
// ../../../../../../node_modules/.store/@xylabs-threads-npm-5.0.
|
|
11817
|
+
// ../../../../../../node_modules/.store/@xylabs-threads-npm-5.0.7-714fac05c7/package/dist/browser/worker/worker.browser.mjs
|
|
11797
11818
|
var import_is_observable_2_1_0 = __toESM(require_package(), 1);
|
|
11798
11819
|
var __defProp2 = Object.defineProperty;
|
|
11799
11820
|
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
@@ -11877,19 +11898,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11877
11898
|
};
|
|
11878
11899
|
}
|
|
11879
11900
|
__name(Transfer, "Transfer");
|
|
11880
|
-
var MasterMessageType = /* @__PURE__ */ function(MasterMessageType2) {
|
|
11901
|
+
var MasterMessageType = /* @__PURE__ */ (function(MasterMessageType2) {
|
|
11881
11902
|
MasterMessageType2["cancel"] = "cancel";
|
|
11882
11903
|
MasterMessageType2["run"] = "run";
|
|
11883
11904
|
return MasterMessageType2;
|
|
11884
|
-
}({});
|
|
11885
|
-
var WorkerMessageType = /* @__PURE__ */ function(WorkerMessageType2) {
|
|
11905
|
+
})({});
|
|
11906
|
+
var WorkerMessageType = /* @__PURE__ */ (function(WorkerMessageType2) {
|
|
11886
11907
|
WorkerMessageType2["error"] = "error";
|
|
11887
11908
|
WorkerMessageType2["init"] = "init";
|
|
11888
11909
|
WorkerMessageType2["result"] = "result";
|
|
11889
11910
|
WorkerMessageType2["running"] = "running";
|
|
11890
11911
|
WorkerMessageType2["uncaughtError"] = "uncaughtError";
|
|
11891
11912
|
return WorkerMessageType2;
|
|
11892
|
-
}({});
|
|
11913
|
+
})({});
|
|
11893
11914
|
var isErrorEvent = /* @__PURE__ */ __name((value) => value && value.error, "isErrorEvent");
|
|
11894
11915
|
function createExpose(implementation, self2) {
|
|
11895
11916
|
let exposeCalled = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/hash",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -54,21 +54,21 @@
|
|
|
54
54
|
"wasmHashBundle": "esbuild src/worker/wasmHash.ts --bundle --outfile=dist/browser/worker/wasmHash-bundle.mjs --target=chrome120,firefox120,safari14,edge120"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@xylabs/assert": "~5.0.
|
|
58
|
-
"@xylabs/hex": "~5.0.
|
|
59
|
-
"@xylabs/object": "~5.0.
|
|
60
|
-
"@xylabs/platform": "~5.0.
|
|
61
|
-
"@xylabs/threads": "~5.0.
|
|
62
|
-
"@xylabs/typeof": "~5.0.
|
|
63
|
-
"@xyo-network/wasm": "~5.0.
|
|
57
|
+
"@xylabs/assert": "~5.0.7",
|
|
58
|
+
"@xylabs/hex": "~5.0.7",
|
|
59
|
+
"@xylabs/object": "~5.0.7",
|
|
60
|
+
"@xylabs/platform": "~5.0.7",
|
|
61
|
+
"@xylabs/threads": "~5.0.7",
|
|
62
|
+
"@xylabs/typeof": "~5.0.7",
|
|
63
|
+
"@xyo-network/wasm": "~5.0.4",
|
|
64
64
|
"hash-wasm": "~4.12.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@xylabs/delay": "~5.0.
|
|
67
|
+
"@xylabs/delay": "~5.0.7",
|
|
68
68
|
"@xylabs/ts-scripts-yarn3": "~7.1.0",
|
|
69
69
|
"@xylabs/tsconfig": "~7.1.0",
|
|
70
|
-
"@xylabs/vitest-extended": "~5.0.
|
|
71
|
-
"esbuild": "~0.25.
|
|
70
|
+
"@xylabs/vitest-extended": "~5.0.7",
|
|
71
|
+
"esbuild": "~0.25.9",
|
|
72
72
|
"publint": "~0.3.12",
|
|
73
73
|
"typescript": "~5.9.2",
|
|
74
74
|
"vitest": "~3.2.4"
|