@ariestools/cli 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -648,8 +648,8 @@ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
648
648
  //#endregion
649
649
  //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
650
650
  var regexes_exports = /* @__PURE__ */ __exportAll({
651
- base64: () => base64$2,
652
- base64url: () => base64url$2,
651
+ base64: () => base64$1,
652
+ base64url: () => base64url$1,
653
653
  bigint: () => bigint$2,
654
654
  boolean: () => boolean$2,
655
655
  browserEmail: () => browserEmail,
@@ -666,7 +666,7 @@ var regexes_exports = /* @__PURE__ */ __exportAll({
666
666
  emoji: () => emoji$1,
667
667
  extendedDuration: () => extendedDuration,
668
668
  guid: () => guid$1,
669
- hex: () => hex$3,
669
+ hex: () => hex$2,
670
670
  hostname: () => hostname$1,
671
671
  html5Email: () => html5Email,
672
672
  httpProtocol: () => httpProtocol,
@@ -757,8 +757,8 @@ const mac$1 = (delimiter) => {
757
757
  };
758
758
  const cidrv4$1 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
759
759
  const cidrv6$1 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
760
- const base64$2 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
761
- const base64url$2 = /^[A-Za-z0-9_-]*$/;
760
+ const base64$1 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
761
+ const base64url$1 = /^[A-Za-z0-9_-]*$/;
762
762
  const hostname$1 = /^(?=.{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])?)*\.?$/;
763
763
  const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
764
764
  const httpProtocol = /^https?$/;
@@ -792,7 +792,7 @@ const _null$3 = /^null$/i;
792
792
  const _undefined$2 = /^undefined$/i;
793
793
  const lowercase = /^[^A-Z]*$/;
794
794
  const uppercase = /^[^a-z]*$/;
795
- const hex$3 = /^[0-9a-fA-F]*$/;
795
+ const hex$2 = /^[0-9a-fA-F]*$/;
796
796
  function fixedBase64(bodyLength, padding) {
797
797
  return new RegExp(`^[A-Za-z0-9+/]{${bodyLength}}${padding}$`);
798
798
  }
@@ -1672,7 +1672,7 @@ function isValidBase64(data) {
1672
1672
  }
1673
1673
  }
1674
1674
  const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => {
1675
- def.pattern ?? (def.pattern = base64$2);
1675
+ def.pattern ?? (def.pattern = base64$1);
1676
1676
  $ZodStringFormat.init(inst, def);
1677
1677
  inst._zod.bag.contentEncoding = "base64";
1678
1678
  inst._zod.check = (payload) => {
@@ -1687,12 +1687,12 @@ const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => {
1687
1687
  };
1688
1688
  });
1689
1689
  function isValidBase64URL(data) {
1690
- if (!base64url$2.test(data)) return false;
1690
+ if (!base64url$1.test(data)) return false;
1691
1691
  const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
1692
1692
  return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "="));
1693
1693
  }
1694
1694
  const $ZodBase64URL = /*@__PURE__*/ $constructor("$ZodBase64URL", (inst, def) => {
1695
- def.pattern ?? (def.pattern = base64url$2);
1695
+ def.pattern ?? (def.pattern = base64url$1);
1696
1696
  $ZodStringFormat.init(inst, def);
1697
1697
  inst._zod.bag.contentEncoding = "base64url";
1698
1698
  inst._zod.check = (payload) => {
@@ -6786,7 +6786,7 @@ var init_esm = __esmMin((() => {
6786
6786
  };
6787
6787
  }));
6788
6788
  //#endregion
6789
- //#region ../../node_modules/.pnpm/@ariestools+telemetry@8.1.8_@opentelemetry+api@1.9.1/node_modules/@ariestools/telemetry/dist/neutral/index.mjs
6789
+ //#region ../../node_modules/.pnpm/@ariestools+telemetry@8.1.9_@opentelemetry+api@1.9.1/node_modules/@ariestools/telemetry/dist/neutral/index.mjs
6790
6790
  init_esm();
6791
6791
  async function timeBudget(name, logger, func, budget, status = false) {
6792
6792
  const start = Date.now();
@@ -6952,7 +6952,7 @@ function spanDurationInMillis(span2) {
6952
6952
  }
6953
6953
  });
6954
6954
  //#endregion
6955
- //#region ../../node_modules/.pnpm/@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3/node_modules/@ariestools/sdk/dist/node/index.mjs
6955
+ //#region ../../node_modules/.pnpm/@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3/node_modules/@ariestools/sdk/dist/node/index.mjs
6956
6956
  var __defProp$14 = Object.defineProperty;
6957
6957
  var __getOwnPropDesc$14 = Object.getOwnPropertyDescriptor;
6958
6958
  var __decorateClass$14 = (decorators, target, key, kind) => {
@@ -8848,11 +8848,16 @@ function staticImplements() {
8848
8848
  return (constructor) => {};
8849
8849
  }
8850
8850
  //#endregion
8851
- //#region ../../node_modules/.pnpm/@scure+base@2.2.0/node_modules/@scure/base/index.js
8851
+ //#region ../../node_modules/.pnpm/@scure+base@2.3.0/node_modules/@scure/base/index.js
8852
8852
  /*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
8853
+ const freeze = (fn) => Object.freeze(fn());
8853
8854
  function isBytes$1(a) {
8854
8855
  return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in a && a.BYTES_PER_ELEMENT === 1;
8855
8856
  }
8857
+ /** Asserts something is Uint8Array. */
8858
+ function abytes$1(b) {
8859
+ if (!isBytes$1(b)) throw new TypeError("Uint8Array expected");
8860
+ }
8856
8861
  function isArrayOf(isString, arr) {
8857
8862
  if (!Array.isArray(arr)) return false;
8858
8863
  if (arr.length === 0) return true;
@@ -8867,22 +8872,13 @@ function astr(label, input) {
8867
8872
  if (typeof input !== "string") throw new TypeError(`${label}: string expected`);
8868
8873
  return true;
8869
8874
  }
8870
- function anumber$1(n) {
8871
- if (typeof n !== "number") throw new TypeError(`number expected, got ${typeof n}`);
8872
- if (!Number.isSafeInteger(n)) throw new RangeError(`invalid integer: ${n}`);
8873
- }
8874
- function aArr(input) {
8875
- if (!Array.isArray(input)) throw new TypeError("array expected");
8876
- }
8877
- function astrArr(label, input) {
8878
- if (!isArrayOf(true, input)) throw new TypeError(`${label}: array of strings expected`);
8875
+ function anumber$1(n, title = "number") {
8876
+ if (typeof n !== "number") throw new TypeError(`${title}: expected number, got ${typeof n}`);
8877
+ if (!Number.isSafeInteger(n)) throw new RangeError(`${title}: expected safe integer, got ${n}`);
8879
8878
  }
8880
8879
  function anumArr(label, input) {
8881
8880
  if (!isArrayOf(false, input)) throw new TypeError(`${label}: array of numbers expected`);
8882
8881
  }
8883
- /**
8884
- * @__NO_SIDE_EFFECTS__
8885
- */
8886
8882
  function chain(...args) {
8887
8883
  const id = (a) => a;
8888
8884
  const wrap = (a, b) => (c) => a(b(c));
@@ -8891,193 +8887,129 @@ function chain(...args) {
8891
8887
  decode: args.map((x) => x.decode).reduce(wrap, id)
8892
8888
  };
8893
8889
  }
8894
- /**
8895
- * Encodes integer radix representation to array of strings using alphabet and back.
8896
- * Could also be array of strings.
8897
- * @__NO_SIDE_EFFECTS__
8898
- */
8899
- function alphabet(letters) {
8900
- const lettersA = typeof letters === "string" ? letters.split("") : letters;
8901
- const len = lettersA.length;
8902
- astrArr("alphabet", lettersA);
8903
- const indexes = new Map(lettersA.map((l, i) => [l, i]));
8904
- return {
8905
- encode: (digits) => {
8906
- aArr(digits);
8907
- return digits.map((i) => {
8908
- if (!Number.isSafeInteger(i) || i < 0 || i >= len) throw new Error(`alphabet.encode: digit index outside alphabet "${i}". Allowed: ${letters}`);
8909
- return lettersA[i];
8910
- });
8911
- },
8912
- decode: (input) => {
8913
- aArr(input);
8914
- return input.map((letter) => {
8915
- astr("alphabet.decode", letter);
8916
- const i = indexes.get(letter);
8917
- if (i === void 0) throw new Error(`Unknown letter: "${letter}". Allowed: ${letters}`);
8918
- return i;
8919
- });
8920
- }
8921
- };
8922
- }
8923
- /**
8924
- * @__NO_SIDE_EFFECTS__
8925
- */
8926
- function join$2(separator = "") {
8927
- astr("join", separator);
8928
- return {
8929
- encode: (from) => {
8930
- astrArr("join.decode", from);
8931
- return from.join(separator);
8932
- },
8933
- decode: (to) => {
8934
- astr("join.decode", to);
8935
- return to.split(separator);
8936
- }
8937
- };
8938
- }
8939
- /**
8940
- * Pad strings array so it has integer number of bits
8941
- * @__NO_SIDE_EFFECTS__
8942
- */
8943
- function padding$1(bits, chr = "=") {
8944
- anumber$1(bits);
8945
- astr("padding", chr);
8946
- return {
8947
- encode(data) {
8948
- astrArr("padding.encode", data);
8949
- while (data.length * bits % 8) data.push(chr);
8950
- return data;
8951
- },
8952
- decode(input) {
8953
- astrArr("padding.decode", input);
8954
- let end = input.length;
8955
- if (end * bits % 8) throw new Error("padding: invalid, string should have whole number of bytes");
8956
- for (; end > 0 && input[end - 1] === chr; end--) if ((end - 1) * bits % 8 === 0) throw new Error("padding: invalid, string has too much padding");
8957
- return input.slice(0, end);
8958
- }
8959
- };
8960
- }
8961
- /**
8962
- * @__NO_SIDE_EFFECTS__
8963
- */
8964
- function normalize(fn) {
8965
- afn(fn);
8966
- return {
8967
- encode: (from) => from,
8968
- decode: (to) => fn(to)
8969
- };
8970
- }
8971
- /**
8972
- * Slow: O(n^2) time complexity
8973
- */
8974
- function convertRadix(data, from, to) {
8975
- if (from < 2) throw new RangeError(`convertRadix: invalid from=${from}, base cannot be less than 2`);
8976
- if (to < 2) throw new RangeError(`convertRadix: invalid to=${to}, base cannot be less than 2`);
8977
- aArr(data);
8978
- if (!data.length) return [];
8979
- let pos = 0;
8980
- const res = [];
8981
- const digits = Array.from(data, (d) => {
8982
- anumber$1(d);
8983
- if (d < 0 || d >= from) throw new Error(`invalid integer: ${d}`);
8984
- return d;
8985
- });
8986
- const dlen = digits.length;
8987
- while (true) {
8988
- let carry = 0;
8989
- let done = true;
8990
- for (let i = pos; i < dlen; i++) {
8991
- const digit = digits[i];
8992
- const fromCarry = from * carry;
8993
- const digitBase = fromCarry + digit;
8994
- if (!Number.isSafeInteger(digitBase) || fromCarry / from !== carry || digitBase - digit !== fromCarry) throw new Error("convertRadix: carry overflow");
8995
- const div = digitBase / to;
8996
- carry = digitBase % to;
8997
- const rounded = Math.floor(div);
8998
- digits[i] = rounded;
8999
- if (!Number.isSafeInteger(rounded) || rounded * to + carry !== digitBase) throw new Error("convertRadix: carry overflow");
9000
- if (!done) continue;
9001
- else if (!rounded) pos = i;
9002
- else done = false;
9003
- }
9004
- res.push(carry);
9005
- if (done) break;
9006
- }
9007
- for (let i = 0; i < data.length - 1 && data[i] === 0; i++) res.push(0);
9008
- return res.reverse();
9009
- }
9010
- const gcd = (a, b) => b === 0 ? a : gcd(b, a % b);
9011
- const radix2carry = /* @__NO_SIDE_EFFECTS__ */ (from, to) => from + (to - gcd(from, to));
9012
8890
  const powers = /* @__PURE__ */ (() => {
9013
8891
  let res = [];
9014
8892
  for (let i = 0; i < 40; i++) res.push(2 ** i);
9015
8893
  return res;
9016
8894
  })();
9017
- /**
9018
- * Implemented with numbers, because BigInt is 5x slower
9019
- */
9020
- function convertRadix2(data, from, to, padding) {
9021
- aArr(data);
9022
- if (from <= 0 || from > 32) throw new RangeError(`convertRadix2: wrong from=${from}`);
9023
- if (to <= 0 || to > 32) throw new RangeError(`convertRadix2: wrong to=${to}`);
9024
- if (/* @__PURE__ */ radix2carry(from, to) > 32) throw new Error(`convertRadix2: carry overflow from=${from} to=${to} carryBits=${/* @__PURE__ */ radix2carry(from, to)}`);
9025
- let carry = 0;
9026
- let pos = 0;
9027
- const max = powers[from];
9028
- const mask = powers[to] - 1;
9029
- const res = [];
9030
- for (const n of data) {
9031
- anumber$1(n);
9032
- if (n >= max) throw new Error(`convertRadix2: invalid data word=${n} from=${from}`);
9033
- carry = carry << from | n;
9034
- if (pos + from > 32) throw new Error(`convertRadix2: carry overflow pos=${pos} from=${from}`);
9035
- pos += from;
9036
- for (; pos >= to; pos -= to) res.push((carry >> pos - to & mask) >>> 0);
9037
- const pow = powers[pos];
9038
- if (pow === void 0) throw new Error("invalid carry");
9039
- carry &= pow - 1;
9040
- }
9041
- carry = carry << to - pos & mask;
9042
- if (!padding && pos >= from) throw new Error("Excess padding");
9043
- if (!padding && carry > 0) throw new Error(`Non-zero padding: ${carry}`);
9044
- if (padding && pos > 0) res.push(carry >>> 0);
8895
+ function u8ToNumArr(u8, len = u8.length) {
8896
+ const res = new Array(len);
8897
+ for (let i = 0; i < len; i++) res[i] = u8[i];
8898
+ return res;
8899
+ }
8900
+ const asciiDecoder = /* @__PURE__ */ (() => {
8901
+ try {
8902
+ const decoder = new TextDecoder();
8903
+ return decoder.decode(Uint8Array.of(65, 48, 43, 127)) === "A0+" ? decoder : void 0;
8904
+ } catch (e) {
8905
+ return;
8906
+ }
8907
+ })();
8908
+ const B2S_CHUNK = 8192;
8909
+ function charcodesToString(codes) {
8910
+ const len = codes.length;
8911
+ if (asciiDecoder !== void 0 && len >= 12) return asciiDecoder.decode(codes);
8912
+ if (len <= B2S_CHUNK) return String.fromCharCode.apply(null, codes);
8913
+ let res = "";
8914
+ for (let i = 0; i < len; i += B2S_CHUNK) res += String.fromCharCode.apply(null, codes.subarray(i, i + B2S_CHUNK));
9045
8915
  return res;
9046
8916
  }
9047
8917
  /**
9048
- * @__NO_SIDE_EFFECTS__
8918
+ * Linear 8 <-> bits regrouping (radix2Slow semantics), with Uint8Array digits and
8919
+ * preallocated output.
9049
8920
  */
9050
- function radix(num) {
9051
- anumber$1(num);
9052
- const _256 = 256;
8921
+ function radix2(bits) {
8922
+ anumber$1(bits);
8923
+ if (bits <= 0 || bits > 8) throw new RangeError("radix2: bits should be in (0..8]");
8924
+ const mask = powers[bits] - 1;
9053
8925
  return {
9054
8926
  encode: (bytes) => {
9055
- if (!isBytes$1(bytes)) throw new TypeError("radix.encode input should be Uint8Array");
9056
- return convertRadix(Array.from(bytes), _256, num);
8927
+ abytes$1(bytes);
8928
+ const len = bytes.length;
8929
+ const res = new Uint8Array(Math.ceil(len * 8 / bits));
8930
+ let carry = 0;
8931
+ let pos = 0;
8932
+ let j = 0;
8933
+ for (let i = 0; i < len;) {
8934
+ if (i + 2 < len) {
8935
+ carry = carry << 24 | bytes[i] << 16 | bytes[i + 1] << 8 | bytes[i + 2];
8936
+ pos += 24;
8937
+ i += 3;
8938
+ } else {
8939
+ carry = (carry << 8 | bytes[i]) & 65535;
8940
+ pos += 8;
8941
+ i++;
8942
+ }
8943
+ for (;;) {
8944
+ pos -= bits;
8945
+ res[j++] = carry >> pos & mask;
8946
+ if (pos < bits) break;
8947
+ }
8948
+ }
8949
+ if (pos > 0) res[j] = carry << bits - pos & mask;
8950
+ return res;
9057
8951
  },
9058
8952
  decode: (digits) => {
9059
- anumArr("radix.decode", digits);
9060
- return Uint8Array.from(convertRadix(digits, num, _256));
8953
+ const len = digits.length;
8954
+ const res = new Uint8Array(Math.floor(len * bits / 8));
8955
+ let carry = 0;
8956
+ let pos = 0;
8957
+ let j = 0;
8958
+ for (let i = 0; i < len; i++) {
8959
+ carry = (carry << bits | digits[i]) & 65535;
8960
+ pos += bits;
8961
+ for (; pos >= 8; pos -= 8) res[j++] = carry >> pos - 8 & 255;
8962
+ }
8963
+ carry = carry << 8 - pos & 255;
8964
+ if (pos >= bits) throw new Error("Excess padding");
8965
+ if (carry > 0) throw new Error(`Non-zero padding: ${carry}`);
8966
+ return res;
9061
8967
  }
9062
8968
  };
9063
8969
  }
9064
8970
  /**
9065
- * If both bases are power of same number (like `2**8 <-> 2**64`),
9066
- * there is a linear algorithm. For now we have implementation for power-of-two bases only.
9067
- * @__NO_SIDE_EFFECTS__
8971
+ * Digit <-> letter mapping fused with string join (chain(alphabetSlow(letters), join(''))
8972
+ * semantics), via char-code lookup tables.
9068
8973
  */
9069
- function radix2(bits, revPadding = false) {
9070
- anumber$1(bits);
9071
- if (bits <= 0 || bits > 32) throw new RangeError("radix2: bits should be in (0..32]");
9072
- if (/* @__PURE__ */ radix2carry(8, bits) > 32 || /* @__PURE__ */ radix2carry(bits, 8) > 32) throw new RangeError("radix2: carry overflow");
8974
+ function alphabet(letters, aliases) {
8975
+ const len = letters.length;
8976
+ if (len > 128) throw new Error("alphabet: max 128 letters");
8977
+ const encTable = new Uint8Array(len);
8978
+ const decTable = (/* @__PURE__ */ new Int8Array(128)).fill(-1);
8979
+ for (let i = 0; i < len; i++) {
8980
+ const code = letters.charCodeAt(i);
8981
+ if (letters.codePointAt(i) !== code || code > 127) throw new Error("alphabet: single-char ASCII letters only");
8982
+ encTable[i] = code;
8983
+ decTable[code] = i;
8984
+ }
8985
+ if (aliases !== void 0) for (const alias of Object.keys(aliases)) {
8986
+ const code = alias.charCodeAt(0);
8987
+ const target = decTable[aliases[alias].charCodeAt(0)];
8988
+ if (alias.length !== 1 || code > 127 || target === void 0 || target === -1) throw new Error(`alphabet: invalid alias ${alias}`);
8989
+ decTable[code] = target;
8990
+ }
9073
8991
  return {
9074
- encode: (bytes) => {
9075
- if (!isBytes$1(bytes)) throw new TypeError("radix2.encode input should be Uint8Array");
9076
- return convertRadix2(Array.from(bytes), 8, bits, !revPadding);
8992
+ encode: (digits) => {
8993
+ const codes = new Uint8Array(digits.length);
8994
+ for (let i = 0; i < digits.length; i++) {
8995
+ const d = digits[i];
8996
+ const code = encTable[d];
8997
+ if (code === void 0) throw new Error(`alphabet.encode: invalid digit ${d}`);
8998
+ codes[i] = code;
8999
+ }
9000
+ return charcodesToString(codes);
9077
9001
  },
9078
- decode: (digits) => {
9079
- anumArr("radix2.decode", digits);
9080
- return Uint8Array.from(convertRadix2(digits, bits, 8, revPadding));
9002
+ decode: (input) => {
9003
+ astr("decode", input);
9004
+ const slen = input.length;
9005
+ const digits = new Uint8Array(slen);
9006
+ for (let i = 0; i < slen; i++) {
9007
+ const code = input.charCodeAt(i);
9008
+ const digit = code < 128 ? decTable[code] : -1;
9009
+ if (digit === -1) throw new Error(`Unknown letter "${input[i]}". Allowed: ${letters}`);
9010
+ digits[i] = digit;
9011
+ }
9012
+ return digits;
9081
9013
  }
9082
9014
  };
9083
9015
  }
@@ -9089,50 +9021,6 @@ function unsafeWrapper(fn) {
9089
9021
  } catch (e) {}
9090
9022
  };
9091
9023
  }
9092
- function checksum$6(len, fn) {
9093
- anumber$1(len);
9094
- if (len <= 0) throw new RangeError(`checksum length must be positive: ${len}`);
9095
- afn(fn);
9096
- const _fn = fn;
9097
- return {
9098
- encode(data) {
9099
- if (!isBytes$1(data)) throw new TypeError("checksum.encode: input should be Uint8Array");
9100
- const sum = _fn(data).slice(0, len);
9101
- const res = new Uint8Array(data.length + len);
9102
- res.set(data);
9103
- res.set(sum, data.length);
9104
- return res;
9105
- },
9106
- decode(data) {
9107
- if (!isBytes$1(data)) throw new TypeError("checksum.decode: input should be Uint8Array");
9108
- const payload = data.slice(0, -len);
9109
- const oldChecksum = data.slice(-len);
9110
- const newChecksum = _fn(payload).slice(0, len);
9111
- for (let i = 0; i < len; i++) if (newChecksum[i] !== oldChecksum[i]) throw new Error("Invalid checksum");
9112
- return payload;
9113
- }
9114
- };
9115
- }
9116
- /**
9117
- * Low-level building blocks used by the exported codecs.
9118
- * @example
9119
- * Build a radix-32 coder from the low-level helpers.
9120
- * ```ts
9121
- * import { utils } from '@scure/base';
9122
- * utils.radix2(5).encode(Uint8Array.from([1, 2, 3]));
9123
- * ```
9124
- */
9125
- const utils = /* @__PURE__ */ Object.freeze({
9126
- alphabet,
9127
- chain,
9128
- checksum: checksum$6,
9129
- convertRadix,
9130
- convertRadix2,
9131
- radix,
9132
- radix2,
9133
- join: join$2,
9134
- padding: padding$1
9135
- });
9136
9024
  /**
9137
9025
  * base16 encoding from RFC 4648.
9138
9026
  * This codec uses RFC 4648 Table 5's uppercase alphabet directly.
@@ -9144,16 +9032,7 @@ const utils = /* @__PURE__ */ Object.freeze({
9144
9032
  * // => '12AB'
9145
9033
  * ```
9146
9034
  */
9147
- const base16 = /* @__PURE__ */ Object.freeze(chain(radix2(4), alphabet("0123456789ABCDEF"), join$2("")));
9148
- chain(radix2(5), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"), padding$1(5), join$2(""));
9149
- chain(radix2(5), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"), join$2(""));
9150
- chain(radix2(5), alphabet("0123456789ABCDEFGHIJKLMNOPQRSTUV"), padding$1(5), join$2(""));
9151
- chain(radix2(5), alphabet("0123456789ABCDEFGHIJKLMNOPQRSTUV"), join$2(""));
9152
- chain(radix2(5), alphabet("0123456789ABCDEFGHJKMNPQRSTVWXYZ"), join$2(""), normalize((s) => s.toUpperCase().replace(/O/g, "0").replace(/[IL]/g, "1")));
9153
- const hasBase64Builtin = /* @__PURE__ */ (() => typeof Uint8Array.from([]).toBase64 === "function" && typeof Uint8Array.fromBase64 === "function")();
9154
- hasBase64Builtin || chain(radix2(6), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), padding$1(6), join$2(""));
9155
- chain(radix2(6), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), join$2(""));
9156
- hasBase64Builtin || chain(radix2(6), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"), padding$1(6), join$2(""));
9035
+ const base16 = /* @__PURE__ */ freeze(() => chain(radix2(4), alphabet("0123456789ABCDEF")));
9157
9036
  /**
9158
9037
  * base64 from RFC 4648, using URL-safe alphabet. No padding.
9159
9038
  * Use `base64url` for padded version.
@@ -9165,8 +9044,92 @@ hasBase64Builtin || chain(radix2(6), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefg
9165
9044
  * // => Uint8Array.from([0x12, 0xab])
9166
9045
  * ```
9167
9046
  */
9168
- const base64urlnopad = /* @__PURE__ */ Object.freeze(chain(radix2(6), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"), join$2("")));
9169
- const genBase58 = /* @__NO_SIDE_EFFECTS__ */ (abc) => chain(radix(58), alphabet(abc), join$2(""));
9047
+ const base64urlnopad = /* @__PURE__ */ freeze(() => chain(radix2(6), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_")));
9048
+ const B58_GROUP = 656356768;
9049
+ const radix58 = {
9050
+ encode: (bytes) => {
9051
+ abytes$1(bytes);
9052
+ const blen = bytes.length;
9053
+ if (blen === 0) return /* @__PURE__ */ new Uint8Array(0);
9054
+ let zeros = 0;
9055
+ while (zeros < blen - 1 && bytes[zeros] === 0) zeros++;
9056
+ const nlimbs = Math.ceil(blen / 2);
9057
+ const limbs = new Uint16Array(nlimbs);
9058
+ const odd = blen & 1;
9059
+ if (odd) limbs[0] = bytes[0];
9060
+ for (let i = odd, j = odd; i < blen; i += 2, j++) limbs[j] = bytes[i] << 8 | bytes[i + 1];
9061
+ const groups = [];
9062
+ let pos = 0;
9063
+ while (pos < nlimbs) {
9064
+ let carry = 0;
9065
+ for (let i = pos; i < nlimbs; i++) {
9066
+ const cur = carry * 65536 + limbs[i];
9067
+ const q = Math.floor(cur / B58_GROUP);
9068
+ carry = cur - q * B58_GROUP;
9069
+ limbs[i] = q;
9070
+ if (q === 0 && i === pos) pos++;
9071
+ }
9072
+ groups.push(carry);
9073
+ }
9074
+ const top = groups.length - 1;
9075
+ let sig = top * 5;
9076
+ for (let v = groups[top];; v = Math.floor(v / 58)) {
9077
+ sig++;
9078
+ if (v < 58) break;
9079
+ }
9080
+ const res = new Uint8Array(zeros + sig);
9081
+ let j = res.length - 1;
9082
+ for (let g = 0; g < top; g++) {
9083
+ let v = groups[g];
9084
+ for (let k = 0; k < 5; k++) {
9085
+ res[j--] = v % 58;
9086
+ v = Math.floor(v / 58);
9087
+ }
9088
+ }
9089
+ for (let v = groups[top]; j >= zeros; v = Math.floor(v / 58)) res[j--] = v % 58;
9090
+ return res;
9091
+ },
9092
+ decode: (digits) => {
9093
+ abytes$1(digits);
9094
+ const dlen = digits.length;
9095
+ if (dlen === 0) return /* @__PURE__ */ new Uint8Array(0);
9096
+ if (dlen >= 65536) throw new Error("invalid length");
9097
+ let zeros = 0;
9098
+ while (zeros < dlen - 1 && digits[zeros] === 0) zeros++;
9099
+ const limbs = new Uint16Array(Math.ceil(dlen * 6 / 16) + 1);
9100
+ let used = 0;
9101
+ let i = 0;
9102
+ let group = dlen % 5 || 5;
9103
+ while (i < dlen) {
9104
+ let gval = 0;
9105
+ let factor = 1;
9106
+ for (const end = i + group; i < end; i++) {
9107
+ const d = digits[i];
9108
+ if (d >= 58) throw new Error(`invalid integer: ${d}`);
9109
+ gval = gval * 58 + d;
9110
+ factor *= 58;
9111
+ }
9112
+ group = 5;
9113
+ let carry = gval;
9114
+ for (let k = 0; k < used; k++) {
9115
+ const cur = limbs[k] * factor + carry;
9116
+ carry = Math.floor(cur / 65536);
9117
+ limbs[k] = cur - carry * 65536;
9118
+ }
9119
+ for (; carry > 0; carry = Math.floor(carry / 65536)) limbs[used++] = carry % 65536;
9120
+ }
9121
+ const valueBytes = used === 0 ? 1 : used * 2 - (limbs[used - 1] < 256 ? 1 : 0);
9122
+ const res = new Uint8Array(zeros + valueBytes);
9123
+ let j = res.length - 1;
9124
+ for (let k = 0; k < used; k++) {
9125
+ const limb = limbs[k];
9126
+ res[j--] = limb & 255;
9127
+ if (j >= zeros) res[j--] = limb >> 8;
9128
+ }
9129
+ return res;
9130
+ }
9131
+ };
9132
+ const genBase58 = (abc) => chain(radix58, alphabet(abc));
9170
9133
  /**
9171
9134
  * base58: base64 without ambigous characters +, /, 0, O, I, l.
9172
9135
  * Quadratic (O(n^2)) - so, can't be used on large inputs.
@@ -9177,8 +9140,18 @@ const genBase58 = /* @__NO_SIDE_EFFECTS__ */ (abc) => chain(radix(58), alphabet(
9177
9140
  * // => Uint8Array.from([0, 1, 2])
9178
9141
  * ```
9179
9142
  */
9180
- const base58$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ genBase58("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"));
9181
- const BECH_ALPHABET = chain(alphabet("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), join$2(""));
9143
+ const base58$1 = /* @__PURE__ */ freeze(() => genBase58("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"));
9144
+ const BECH_ALPHABET = /* @__PURE__ */ alphabet("qpzry9x8gf2tvdw0s3jn54khce6mua7l");
9145
+ function wordsToU8(words) {
9146
+ const len = words.length;
9147
+ const res = new Uint8Array(len);
9148
+ for (let i = 0; i < len; i++) {
9149
+ const w = words[i];
9150
+ if (w < 0 || w >= 32) throw new Error(`alphabet.encode: invalid digit ${w}`);
9151
+ res[i] = w;
9152
+ }
9153
+ return res;
9154
+ }
9182
9155
  const POLYMOD_GENERATORS = [
9183
9156
  996825010,
9184
9157
  642813549,
@@ -9205,20 +9178,44 @@ function bechChecksum(prefix, words, encodingConst = 1) {
9205
9178
  for (let v of words) chk = bech32Polymod(chk) ^ v;
9206
9179
  for (let i = 0; i < 6; i++) chk = bech32Polymod(chk);
9207
9180
  chk ^= encodingConst;
9208
- return BECH_ALPHABET.encode(convertRadix2([chk % powers[30]], 30, 5, false));
9181
+ const sum = /* @__PURE__ */ new Uint8Array(6);
9182
+ for (let i = 0; i < 6; i++) sum[i] = chk >>> 5 * (5 - i) & 31;
9183
+ return BECH_ALPHABET.encode(sum);
9209
9184
  }
9210
- /**
9211
- * @__NO_SIDE_EFFECTS__
9212
- */
9213
9185
  function genBech32(encoding) {
9214
9186
  const ENCODING_CONST = encoding === "bech32" ? 1 : 734539939;
9215
9187
  const _words = radix2(5);
9216
- const fromWords = _words.decode;
9217
- const toWords = _words.encode;
9188
+ const toWords = (from) => {
9189
+ abytes$1(from);
9190
+ const len = from.length;
9191
+ const res = new Array(Math.ceil(len * 8 / 5));
9192
+ let carry = 0;
9193
+ let pos = 0;
9194
+ let j = 0;
9195
+ for (let i = 0; i < len; i++) {
9196
+ carry = carry << 8 | from[i];
9197
+ pos += 8;
9198
+ for (; pos >= 5; pos -= 5) res[j++] = carry >> pos - 5 & 31;
9199
+ }
9200
+ if (pos > 0) res[j] = carry << 5 - pos & 31;
9201
+ return res;
9202
+ };
9203
+ const fromWords = (to) => {
9204
+ anumArr("radix2.decode", to);
9205
+ const len = to.length;
9206
+ const digits = new Uint8Array(len);
9207
+ for (let i = 0; i < len; i++) {
9208
+ const w = to[i];
9209
+ if (w < 0 || w >= 32) throw new Error(`convertRadix2: invalid word=${w}`);
9210
+ digits[i] = w;
9211
+ }
9212
+ return _words.decode(digits);
9213
+ };
9218
9214
  const fromWordsUnsafe = unsafeWrapper(fromWords);
9219
9215
  function encode(prefix, words, limit = 90) {
9220
9216
  astr("bech32.encode prefix", prefix);
9221
- if (isBytes$1(words)) words = Array.from(words);
9217
+ if (limit !== false) anumber$1(limit, "limit");
9218
+ if (isBytes$1(words)) words = u8ToNumArr(words);
9222
9219
  anumArr("bech32.encode", words);
9223
9220
  const plen = prefix.length;
9224
9221
  if (plen === 0) throw new TypeError(`Invalid prefix length ${plen}`);
@@ -9226,22 +9223,24 @@ function genBech32(encoding) {
9226
9223
  if (limit !== false && actualLength > limit) throw new TypeError(`Length ${actualLength} exceeds limit ${limit}`);
9227
9224
  const lowered = prefix.toLowerCase();
9228
9225
  const sum = bechChecksum(lowered, words, ENCODING_CONST);
9229
- return `${lowered}1${BECH_ALPHABET.encode(words)}${sum}`;
9226
+ return `${lowered}1${BECH_ALPHABET.encode(wordsToU8(words))}${sum}`;
9230
9227
  }
9231
9228
  function decode(str, limit = 90) {
9232
9229
  astr("bech32.decode input", str);
9230
+ if (limit !== false) anumber$1(limit, "limit");
9233
9231
  const slen = str.length;
9234
- if (slen < 8 || limit !== false && slen > limit) throw new TypeError(`invalid string length: ${slen} (${str}). Expected (8..${limit})`);
9232
+ if (slen < 8 || limit !== false && slen > limit) throw new TypeError(`invalid string length ${slen}, expected (8..${limit})`);
9235
9233
  const lowered = str.toLowerCase();
9236
- if (str !== lowered && str !== str.toUpperCase()) throw new Error(`String must be lowercase or uppercase`);
9234
+ if (str !== lowered && str !== str.toUpperCase()) throw new Error(`mixed-case string not allowed`);
9237
9235
  const sepIndex = lowered.lastIndexOf("1");
9238
- if (sepIndex === 0 || sepIndex === -1) throw new Error(`Letter "1" must be present between prefix and data only`);
9236
+ if (sepIndex === 0 || sepIndex === -1) throw new Error(`invalid separator "1"`);
9239
9237
  const prefix = lowered.slice(0, sepIndex);
9240
9238
  const data = lowered.slice(sepIndex + 1);
9241
- if (data.length < 6) throw new Error("Data must be at least 6 characters long");
9242
- const words = BECH_ALPHABET.decode(data).slice(0, -6);
9239
+ if (data.length < 6) throw new Error("invalid data length");
9240
+ const digits = BECH_ALPHABET.decode(data);
9241
+ const words = u8ToNumArr(digits, digits.length - 6);
9243
9242
  const sum = bechChecksum(prefix, words, ENCODING_CONST);
9244
- if (!data.endsWith(sum)) throw new Error(`Invalid checksum in ${str}: expected "${sum}"`);
9243
+ if (!data.endsWith(sum)) throw new Error(`Invalid checksum in ${str}`);
9245
9244
  return {
9246
9245
  prefix,
9247
9246
  words
@@ -9270,7 +9269,6 @@ function genBech32(encoding) {
9270
9269
  toWords
9271
9270
  };
9272
9271
  }
9273
- genBech32("bech32");
9274
9272
  /**
9275
9273
  * bech32m from BIP 350. Operates on words.
9276
9274
  * It was to mitigate `bech32` weaknesses.
@@ -9283,13 +9281,9 @@ genBech32("bech32");
9283
9281
  * bech32m.decode(text);
9284
9282
  * ```
9285
9283
  */
9286
- const bech32m = /* @__PURE__ */ Object.freeze(genBech32("bech32m"));
9287
- /* @__PURE__ */ (() => typeof Uint8Array.from([]).toHex === "function" && typeof Uint8Array.fromHex === "function")() || chain(radix2(4), alphabet("0123456789abcdef"), join$2(""), normalize((s) => {
9288
- if (typeof s !== "string" || s.length % 2 !== 0) throw new TypeError(`hex.decode: expected string, got ${typeof s} with length ${s.length}`);
9289
- return s.toLowerCase();
9290
- }));
9284
+ const bech32m = /* @__PURE__ */ freeze(() => genBech32("bech32m"));
9291
9285
  //#endregion
9292
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/address.mjs
9286
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/address.mjs
9293
9287
  var XyoLegacyAddressZod = AddressZod;
9294
9288
  function encodeQuantAddress(hrp, bytes) {
9295
9289
  return bech32m.encodeFromBytes(hrp, toUint8Array(bytes));
@@ -9310,7 +9304,7 @@ var XyoQuantAddressZod = /* @__PURE__ */ pipe$1((/* @__PURE__ */ string$2()).che
9310
9304
  var XyoAddressRegEx = /^(?:[0-9a-f]{40}|[a-z0-9]{1,83}1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38})$/;
9311
9305
  var XyoAddressZod = /* @__PURE__ */ union$2([XyoLegacyAddressZod, XyoQuantAddressZod]);
9312
9306
  //#endregion
9313
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/account-model.mjs
9307
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/account-model.mjs
9314
9308
  var isPhraseInitializationConfig = (value) => {
9315
9309
  if (typeof value === "object" && value !== null) return typeof value.phrase === "string";
9316
9310
  return false;
@@ -38994,7 +38988,7 @@ var Hash = class {
38994
38988
  }
38995
38989
  };
38996
38990
  const toStr = {}.toString;
38997
- function checkOpts(defaults, opts) {
38991
+ function checkOpts$1(defaults, opts) {
38998
38992
  if (opts !== void 0 && toStr.call(opts) !== "[object Object]") throw new Error("Options should be object or undefined");
38999
38993
  return Object.assign(defaults, opts);
39000
38994
  }
@@ -39872,7 +39866,7 @@ hmac.create = (hash, key) => new HMAC(hash, key);
39872
39866
  //#region ../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/pbkdf2.js
39873
39867
  function pbkdf2Init(hash, _password, _salt, _opts) {
39874
39868
  hash$1(hash);
39875
- const { c, dkLen, asyncTick } = checkOpts({
39869
+ const { c, dkLen, asyncTick } = checkOpts$1({
39876
39870
  dkLen: 32,
39877
39871
  asyncTick: 10
39878
39872
  }, _opts);
@@ -40000,7 +39994,7 @@ function BlockMix(input, ii, out, oi, r) {
40000
39994
  }
40001
39995
  }
40002
39996
  function scryptInit(password, salt, _opts) {
40003
- const { N, r, p, dkLen, asyncTick, maxmem, onProgress } = checkOpts({
39997
+ const { N, r, p, dkLen, asyncTick, maxmem, onProgress } = checkOpts$1({
40004
39998
  dkLen: 32,
40005
39999
  asyncTick: 10,
40006
40000
  maxmem: 1024 ** 3 + 1024
@@ -40320,7 +40314,7 @@ var utils_exports = /* @__PURE__ */ __exportAll({
40320
40314
  numberToHexUnpadded: () => numberToHexUnpadded,
40321
40315
  numberToVarBytesBE: () => numberToVarBytesBE,
40322
40316
  utf8ToBytes: () => utf8ToBytes,
40323
- validateObject: () => validateObject
40317
+ validateObject: () => validateObject$1
40324
40318
  });
40325
40319
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
40326
40320
  const _0n$4 = BigInt(0);
@@ -40515,7 +40509,7 @@ const validatorFns = {
40515
40509
  field: (val, object) => object.Fp.isValid(val),
40516
40510
  hash: (val) => typeof val === "function" && Number.isSafeInteger(val.outputLen)
40517
40511
  };
40518
- function validateObject(object, validators, optValidators = {}) {
40512
+ function validateObject$1(object, validators, optValidators = {}) {
40519
40513
  const checkField = (fieldName, type, isOptional) => {
40520
40514
  const checkVal = validatorFns[type];
40521
40515
  if (typeof checkVal !== "function") throw new Error(`Invalid validator "${type}", expected function`);
@@ -40671,7 +40665,7 @@ const FIELD_FIELDS = [
40671
40665
  "sqrN"
40672
40666
  ];
40673
40667
  function validateField(field) {
40674
- return validateObject(field, FIELD_FIELDS.reduce((map, val) => {
40668
+ return validateObject$1(field, FIELD_FIELDS.reduce((map, val) => {
40675
40669
  map[val] = "function";
40676
40670
  return map;
40677
40671
  }, {
@@ -40923,7 +40917,7 @@ function wNAF(c, bits) {
40923
40917
  }
40924
40918
  function validateBasic(curve) {
40925
40919
  validateField(curve.Fp);
40926
- validateObject(curve, {
40920
+ validateObject$1(curve, {
40927
40921
  n: "bigint",
40928
40922
  h: "bigint",
40929
40923
  Gx: "field",
@@ -40943,7 +40937,7 @@ function validateBasic(curve) {
40943
40937
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
40944
40938
  function validatePointOpts(curve) {
40945
40939
  const opts = validateBasic(curve);
40946
- validateObject(opts, {
40940
+ validateObject$1(opts, {
40947
40941
  a: "field",
40948
40942
  b: "field"
40949
40943
  }, {
@@ -41375,7 +41369,7 @@ function weierstrassPoints(opts) {
41375
41369
  }
41376
41370
  function validateOpts$1(curve) {
41377
41371
  const opts = validateBasic(curve);
41378
- validateObject(opts, {
41372
+ validateObject$1(opts, {
41379
41373
  hash: "hash",
41380
41374
  hmac: "function",
41381
41375
  randomBytes: "function"
@@ -55223,7 +55217,7 @@ var LangZh = class LangZh extends Wordlist {
55223
55217
  };
55224
55218
  LangCz.wordlist(), LangEn.wordlist(), LangEs.wordlist(), LangFr.wordlist(), LangIt.wordlist(), LangPt.wordlist(), LangJa.wordlist(), LangKo.wordlist(), LangZh.wordlist("cn"), LangZh.wordlist("tw");
55225
55219
  //#endregion
55226
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/data.mjs
55220
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/data.mjs
55227
55221
  var AbstractData = class {
55228
55222
  /** Type guard for {@link AbstractData} instances. */
55229
55223
  static is(value) {
@@ -55278,7 +55272,7 @@ var Data = class _Data extends AbstractData {
55278
55272
  }
55279
55273
  };
55280
55274
  //#endregion
55281
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/wasm.mjs
55275
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/wasm.mjs
55282
55276
  var validate = (bytes) => Promise.resolve(WebAssembly.validate(new Uint8Array(bytes)));
55283
55277
  var bigInt = async () => {
55284
55278
  try {
@@ -55864,7 +55858,7 @@ var WasmSupport = class _WasmSupport {
55864
55858
  }
55865
55859
  };
55866
55860
  //#endregion
55867
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/elliptic.mjs
55861
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/elliptic.mjs
55868
55862
  var wasmSupportStatic$1 = new WasmSupport([
55869
55863
  "bigInt",
55870
55864
  "mutableGlobals",
@@ -55989,7 +55983,7 @@ var Elliptic = class {
55989
55983
  }
55990
55984
  };
55991
55985
  //#endregion
55992
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/account.mjs
55986
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/account.mjs
55993
55987
  var __defProp$13 = Object.defineProperty;
55994
55988
  var __getOwnPropDesc$13 = Object.getOwnPropertyDescriptor;
55995
55989
  var __defNormalProp$11 = (obj, key, value) => key in obj ? __defProp$13(obj, key, {
@@ -56515,7 +56509,7 @@ __publicField$11(Account, "_addressMap", {});
56515
56509
  __publicField$11(Account, "_protectedConstructorKey", /* @__PURE__ */ Symbol());
56516
56510
  Account = __decorateClass$13([staticImplements()], Account);
56517
56511
  //#endregion
56518
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/payload-model.mjs
56512
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/payload-model.mjs
56519
56513
  var SchemaRegEx = /^(?:[a-z0-9]+\.)*[a-z0-9]+$/;
56520
56514
  var SchemaZod = /* @__PURE__ */ pipe$1((/* @__PURE__ */ string$2()).check(/* @__PURE__ */ _regex(SchemaRegEx)), /* @__PURE__ */ transform$1((v) => v));
56521
56515
  var isSchema = zodIsFactory(SchemaZod);
@@ -56747,7 +56741,7 @@ var QueryFieldsZod = /* @__PURE__ */ object$2({
56747
56741
  minBid: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
56748
56742
  });
56749
56743
  //#endregion
56750
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/boundwitness-model.mjs
56744
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/boundwitness-model.mjs
56751
56745
  var BoundWitnessSchema = asSchema("network.xyo.boundwitness", true);
56752
56746
  var SignaturesMetaZod = /* @__PURE__ */ object$2({ $signatures: /* @__PURE__ */ array$1(/* @__PURE__ */ union$2([HexZod, /* @__PURE__ */ _null$1()])) });
56753
56747
  var UnsignedSignaturesMetaZod = /* @__PURE__ */ object$2({ $signatures: /* @__PURE__ */ array$1(/* @__PURE__ */ _null$1()) });
@@ -58121,7 +58115,7 @@ function multicast(coldObservable) {
58121
58115
  });
58122
58116
  }
58123
58117
  //#endregion
58124
- //#region ../../node_modules/.pnpm/@ariestools+threads@8.1.6_@opentelemetry+api@1.9.1_observable-fns@0.6.1_supports-color@10.2.2_zod@4.4.3/node_modules/@ariestools/threads/dist/node/master/index-node.mjs
58118
+ //#region ../../node_modules/.pnpm/@ariestools+threads@8.1.9_@opentelemetry+api@1.9.1_observable-fns@0.6.1_supports-color@10.2.2_zod@4.4.3/node_modules/@ariestools/threads/dist/node/master/index-node.mjs
58125
58119
  cpus().length;
58126
58120
  function resolveScriptPath(scriptPath, baseURL) {
58127
58121
  const makeAbsolute = (filePath) => {
@@ -58821,7 +58815,7 @@ var Worker2 = getWorkerImplementation().default;
58821
58815
  * @license MIT
58822
58816
  */
58823
58817
  //#endregion
58824
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/node/hash.mjs
58818
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/node/hash.mjs
58825
58819
  var import_index_umd = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
58826
58820
  (function(global, factory) {
58827
58821
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.hashwasm = {}));
@@ -61291,7 +61285,7 @@ var NodeObjectHasher = class extends ObjectHasher {
61291
61285
  static createNodeWorker = createNodeWorker;
61292
61286
  };
61293
61287
  //#endregion
61294
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/payload-builder.mjs
61288
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/payload-builder.mjs
61295
61289
  var omitSchema = (payload) => {
61296
61290
  const result = structuredClone(payload);
61297
61291
  delete result.schema;
@@ -61565,7 +61559,7 @@ var PayloadBuilder = class _PayloadBuilder {
61565
61559
  }
61566
61560
  };
61567
61561
  //#endregion
61568
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/schema-name-validator.mjs
61562
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/schema-name-validator.mjs
61569
61563
  var SchemaNameValidator = class {
61570
61564
  _parts;
61571
61565
  _rootDomain;
@@ -61633,7 +61627,7 @@ function domainLevel(validator, level) {
61633
61627
  return validator.parts?.slice(0, level + 1).toReversed().join(".");
61634
61628
  }
61635
61629
  //#endregion
61636
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/payload-validator.mjs
61630
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/payload-validator.mjs
61637
61631
  var defaultSchemaNameValidatorFactory = (schema) => new SchemaNameValidator(schema);
61638
61632
  var PayloadValidator = class _PayloadValidator extends ValidatorBase {
61639
61633
  static schemaNameValidatorFactory = defaultSchemaNameValidatorFactory;
@@ -61682,7 +61676,7 @@ var PayloadValidator = class _PayloadValidator extends ValidatorBase {
61682
61676
  }
61683
61677
  };
61684
61678
  //#endregion
61685
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/payload-wrapper.mjs
61679
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/payload-wrapper.mjs
61686
61680
  var isPayloadWrapperBase = (value) => {
61687
61681
  return value instanceof PayloadWrapperBase;
61688
61682
  };
@@ -61867,7 +61861,7 @@ var payloadJsonSchema = {
61867
61861
  type: "object"
61868
61862
  };
61869
61863
  //#endregion
61870
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/boundwitness-builder.mjs
61864
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/boundwitness-builder.mjs
61871
61865
  var isSigningParty = (party) => "sign" in party;
61872
61866
  var GeneratedBoundWitnessFields = [
61873
61867
  "addresses",
@@ -62211,7 +62205,7 @@ var QueryBoundWitnessBuilder = class extends BoundWitnessBuilder {
62211
62205
  }
62212
62206
  };
62213
62207
  //#endregion
62214
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/boundwitness-validator.mjs
62208
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/boundwitness-validator.mjs
62215
62209
  var validateArraysSameLength = (a, b, message = "Array length mismatch") => {
62216
62210
  return a.length == b.length ? [] : [/* @__PURE__ */ new Error(`${message} [${a.length} !== ${b.length}]`)];
62217
62211
  };
@@ -62337,7 +62331,7 @@ var BoundWitnessValidator = class _BoundWitnessValidator extends PayloadValidato
62337
62331
  }
62338
62332
  };
62339
62333
  //#endregion
62340
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/boundwitness-wrapper.mjs
62334
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/boundwitness-wrapper.mjs
62341
62335
  var isBoundWitnessWrapper = (value) => {
62342
62336
  if (isPayloadWrapperBase(value)) return typeof value.payloadsDataHashMap === "function";
62343
62337
  return false;
@@ -62640,7 +62634,7 @@ var SignatureRegEx = HexRegExMinMax(64, 5261);
62640
62634
  ({ ...payloadJsonSchema.properties }), XyoAddressRegEx.source, HashRegEx.source, SchemaRegEx.source, HashRegEx.source, HashRegEx.source, HashRegEx.source, HashRegEx.source, HashRegEx.source, SignatureRegEx.source;
62641
62635
  ({ ...payloadJsonSchema }), [...payloadJsonSchema.required];
62642
62636
  //#endregion
62643
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/config-payload-plugin.mjs
62637
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/config-payload-plugin.mjs
62644
62638
  var ConfigSchema = asSchema("network.xyo.config", true);
62645
62639
  asSchema("network.xyo.schema", true);
62646
62640
  asSchema("network.xyo.domain.config", true);
@@ -62667,11 +62661,11 @@ DomainConfigFieldsZod.shape;
62667
62661
  DomainConfigFieldsZod.shape;
62668
62662
  asSchema("network.xyo.id", true);
62669
62663
  //#endregion
62670
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/query-payload-plugin.mjs
62664
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/query-payload-plugin.mjs
62671
62665
  var QuerySchema = asSchema("network.xyo.query", true);
62672
62666
  asSchema("network.xyo.value", true);
62673
62667
  //#endregion
62674
- //#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/utils.js
62668
+ //#region ../../node_modules/.pnpm/@noble+hashes@2.3.0/node_modules/@noble/hashes/utils.js
62675
62669
  /**
62676
62670
  * Checks if something is Uint8Array. Be careful: nodejs Buffer will return true.
62677
62671
  * @param a - value to test
@@ -62685,10 +62679,12 @@ asSchema("network.xyo.value", true);
62685
62679
  function isBytes(a) {
62686
62680
  return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in a && a.BYTES_PER_ELEMENT === 1;
62687
62681
  }
62682
+ const atitle$1 = (title) => title ? `"${title}" ` : "";
62688
62683
  /**
62689
62684
  * Asserts something is a non-negative integer.
62690
62685
  * @param n - number to validate
62691
62686
  * @param title - label included in thrown errors
62687
+ * @returns The validated number.
62692
62688
  * @throws On wrong argument types. {@link TypeError}
62693
62689
  * @throws On wrong argument ranges or values. {@link RangeError}
62694
62690
  * @example
@@ -62698,14 +62694,25 @@ function isBytes(a) {
62698
62694
  * ```
62699
62695
  */
62700
62696
  function anumber(n, title = "") {
62701
- if (typeof n !== "number") {
62702
- const prefix = title && `"${title}" `;
62703
- throw new TypeError(`${prefix}expected number, got ${typeof n}`);
62704
- }
62705
- if (!Number.isSafeInteger(n) || n < 0) {
62706
- const prefix = title && `"${title}" `;
62707
- throw new RangeError(`${prefix}expected integer >= 0, got ${n}`);
62708
- }
62697
+ if (typeof n !== "number") throw new TypeError(atitle$1(title) + "expected number, got " + typeof n);
62698
+ if (!Number.isSafeInteger(n) || n < 0) throw new RangeError(atitle$1(title) + "expected integer >= 0, got " + n);
62699
+ return n;
62700
+ }
62701
+ /**
62702
+ * Asserts something is a boolean.
62703
+ * @param value - value to validate
62704
+ * @param title - label included in thrown errors
62705
+ * @returns The validated boolean.
62706
+ * @throws On wrong argument types. {@link TypeError}
62707
+ * @example
62708
+ * Validate a boolean option.
62709
+ * ```ts
62710
+ * abool(true, 'enableXOF');
62711
+ * ```
62712
+ */
62713
+ function abool$1(value, title = "") {
62714
+ if (typeof value !== "boolean") throw new TypeError(atitle$1(title) + "expected boolean, got type=" + typeof value);
62715
+ return value;
62709
62716
  }
62710
62717
  /**
62711
62718
  * Asserts something is Uint8Array.
@@ -62722,19 +62729,38 @@ function anumber(n, title = "") {
62722
62729
  * ```
62723
62730
  */
62724
62731
  function abytes(value, length, title = "") {
62732
+ if (isBytes(value) && (length === void 0 || value.length === length)) return value;
62733
+ if (length !== void 0) anumber(length, "length");
62725
62734
  const bytes = isBytes(value);
62726
- const len = value?.length;
62727
- const needsLen = length !== void 0;
62728
- if (!bytes || needsLen && len !== length) {
62729
- const prefix = title && `"${title}" `;
62730
- const ofLen = needsLen ? ` of length ${length}` : "";
62731
- const got = bytes ? `length=${len}` : `type=${typeof value}`;
62732
- const message = prefix + "expected Uint8Array" + ofLen + ", got " + got;
62733
- if (!bytes) throw new TypeError(message);
62734
- throw new RangeError(message);
62735
- }
62736
- return value;
62735
+ const ofLen = length !== void 0 ? ` of length ${length}` : "";
62736
+ const got = bytes ? `length=${value.length}` : `type=${typeof value}`;
62737
+ const message = atitle$1(title) + "expected Uint8Array" + ofLen + ", got " + got;
62738
+ if (!bytes) throw new TypeError(message);
62739
+ throw new RangeError(message);
62740
+ }
62741
+ /**
62742
+ * Asserts something is a wrapped hash constructor.
62743
+ * @param h - hash constructor to validate
62744
+ * @throws On wrong argument types or invalid hash wrapper shape. {@link TypeError}
62745
+ * @throws On invalid hash metadata ranges or values. {@link RangeError}
62746
+ * @throws If the hash metadata allows empty outputs or block sizes. {@link Error}
62747
+ * @example
62748
+ * Validate a callable hash wrapper.
62749
+ * ```ts
62750
+ * import { ahash } from '@noble/hashes/utils.js';
62751
+ * import { sha256 } from '@noble/hashes/sha2.js';
62752
+ * ahash(sha256);
62753
+ * ```
62754
+ */
62755
+ function ahash(h) {
62756
+ if (typeof h !== "function" || typeof h.create !== "function") throw new TypeError("expected hash wrapped by utils.createHasher");
62757
+ anumber(h.outputLen);
62758
+ anumber(h.blockLen);
62759
+ if (h.outputLen < 1 || h.blockLen < 1) throw new Error("hash blockLen / outputLen must be >= 1");
62737
62760
  }
62761
+ const aobject$2 = (value, label) => {
62762
+ if (value === null || typeof value !== "object" || Array.isArray(value)) throw new TypeError((label === "object" ? "" : `"${label}" `) + "expected object, got type=" + typeof value);
62763
+ };
62738
62764
  /**
62739
62765
  * Asserts a hash instance has not been destroyed or finished.
62740
62766
  * @param instance - hash instance to validate
@@ -62750,8 +62776,8 @@ function abytes(value, length, title = "") {
62750
62776
  * ```
62751
62777
  */
62752
62778
  function aexists(instance, checkFinished = true) {
62753
- if (instance.destroyed) throw new Error("Hash instance has been destroyed");
62754
- if (checkFinished && instance.finished) throw new Error("Hash#digest() has already been called");
62779
+ if (instance.destroyed) throw new Error("hash was destroyed");
62780
+ if (checkFinished && instance.finished) throw new Error("digest() was already called");
62755
62781
  }
62756
62782
  /**
62757
62783
  * Asserts output is a sufficiently-sized byte array.
@@ -62770,9 +62796,9 @@ function aexists(instance, checkFinished = true) {
62770
62796
  * ```
62771
62797
  */
62772
62798
  function aoutput(out, instance) {
62773
- abytes(out, void 0, "digestInto() output");
62799
+ abytes(out, void 0, "output");
62774
62800
  const min = instance.outputLen;
62775
- if (out.length < min) throw new RangeError("\"digestInto() output\" expected to be of length >=" + min);
62801
+ if (!(out.length >= min)) throw new RangeError("\"output\" expected length >= " + min);
62776
62802
  }
62777
62803
  /**
62778
62804
  * Casts a typed array view to Uint32Array.
@@ -62896,6 +62922,24 @@ function concatBytes(...arrays) {
62896
62922
  return res;
62897
62923
  }
62898
62924
  /**
62925
+ * Merges default options and passed options.
62926
+ * @param defaults - base option object
62927
+ * @param opts - user overrides
62928
+ * @param title - label included in thrown override errors
62929
+ * @returns Merged option object. The merge mutates `defaults` in place.
62930
+ * @throws On wrong argument types. {@link TypeError}
62931
+ * @example
62932
+ * Merge user overrides onto default options.
62933
+ * ```ts
62934
+ * checkOpts({ dkLen: 32 }, { asyncTick: 10 });
62935
+ * ```
62936
+ */
62937
+ function checkOpts(defaults, opts, title = "opts") {
62938
+ aobject$2(defaults, "defaults");
62939
+ if (opts !== void 0) aobject$2(opts, title);
62940
+ return Object.assign(defaults, opts);
62941
+ }
62942
+ /**
62899
62943
  * Creates a callable hash function from a stateful class constructor.
62900
62944
  * @param hashCons - hash constructor or factory
62901
62945
  * @param info - optional metadata such as DER OID
@@ -62903,6 +62947,7 @@ function concatBytes(...arrays) {
62903
62947
  * Wrapper construction eagerly calls `hashCons(undefined)` once to read
62904
62948
  * `outputLen` / `blockLen`, so constructor side effects happen at module
62905
62949
  * init time.
62950
+ * @throws On wrong argument types. {@link TypeError}
62906
62951
  * @example
62907
62952
  * Wrap a stateful hash constructor into a callable helper.
62908
62953
  * ```ts
@@ -62913,6 +62958,8 @@ function concatBytes(...arrays) {
62913
62958
  * ```
62914
62959
  */
62915
62960
  function createHasher(hashCons, info = {}) {
62961
+ if (typeof hashCons !== "function") throw new TypeError("\"hashCons\" expected function, got type=" + typeof hashCons);
62962
+ info = checkOpts({}, info, "info");
62916
62963
  const hashC = (msg, opts) => hashCons(opts).update(msg).digest();
62917
62964
  const tmp = hashCons(void 0);
62918
62965
  hashC.outputLen = tmp.outputLen;
@@ -62971,9 +63018,27 @@ const oidNist = (suffix) => ({ oid: Uint8Array.from([
62971
63018
  suffix
62972
63019
  ]) });
62973
63020
  //#endregion
62974
- //#region ../../node_modules/.pnpm/@noble+curves@2.2.0/node_modules/@noble/curves/utils.js
63021
+ //#region ../../node_modules/.pnpm/@noble+curves@2.3.0/node_modules/@noble/curves/utils.js
62975
63022
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
62976
63023
  /**
63024
+ * Asserts something is a plain object-ish value, not null or array.
63025
+ * @param value - Value to validate.
63026
+ * @param title - Label included in thrown errors.
63027
+ * @returns The validated object.
63028
+ * @throws On wrong argument types. {@link TypeError}
63029
+ * @example
63030
+ * Validate an options object before checking fields.
63031
+ *
63032
+ * ```ts
63033
+ * aobject({ flag: true });
63034
+ * ```
63035
+ */
63036
+ function aobject$1(value, title = "object") {
63037
+ if (value === null || typeof value !== "object" || Array.isArray(value)) throw new TypeError(title === "object" ? "expected valid options object" : `"${title}" expected object, got type=${typeof value}`);
63038
+ return value;
63039
+ }
63040
+ const atitle = (title) => title ? `"${title}" ` : "";
63041
+ /**
62977
63042
  * Validates that a flag is boolean.
62978
63043
  * @param value - Value to validate.
62979
63044
  * @param title - Optional field name.
@@ -62987,15 +63052,46 @@ const oidNist = (suffix) => ({ oid: Uint8Array.from([
62987
63052
  * ```
62988
63053
  */
62989
63054
  function abool(value, title = "") {
62990
- if (typeof value !== "boolean") {
62991
- const prefix = title && `"${title}" `;
62992
- throw new TypeError(prefix + "expected boolean, got type=" + typeof value);
62993
- }
63055
+ if (typeof value !== "boolean") throw new TypeError(atitle(title) + "expected boolean, got type=" + typeof value);
62994
63056
  return value;
62995
63057
  }
63058
+ /**
63059
+ * Validates declared required and optional field types on a plain object.
63060
+ * Extra keys are intentionally ignored because many callers validate only the subset they use from
63061
+ * richer option bags or runtime objects.
63062
+ * This walks field schemas and formats detailed errors, so avoid it on hot paths; use direct
63063
+ * one-line guards such as `aobject()`, `afunction()`, `abool()`, or `asafenumber()` instead.
63064
+ * @param object - Object to validate.
63065
+ * @param fields - Required field types.
63066
+ * @param optFields - Optional field types.
63067
+ * @param title - Object label included in thrown errors.
63068
+ * @throws On wrong argument types. {@link TypeError}
63069
+ * @example
63070
+ * Check user options before building a curve helper.
63071
+ *
63072
+ * ```ts
63073
+ * validateObject({ flag: true }, { flag: 'boolean' });
63074
+ * ```
63075
+ */
63076
+ function validateObject(object, fields = {}, optFields = {}, title = "object") {
63077
+ aobject$1(object, title);
63078
+ aobject$1(fields, "fields");
63079
+ aobject$1(optFields, "optFields");
63080
+ function checkField(fieldName, expectedType, isOpt) {
63081
+ const label = title === "object" ? `param "${String(fieldName)}"` : `"${title}.${String(fieldName)}"`;
63082
+ const val = object[fieldName];
63083
+ if (!Object.hasOwn(object, fieldName) && (isOpt ? val !== void 0 : expectedType !== "function")) throw new TypeError(`${label} is invalid: expected own property`);
63084
+ if (isOpt && val === void 0) return;
63085
+ const current = typeof val;
63086
+ if (current !== expectedType || val === null) throw new TypeError(`${label} is invalid: expected ${expectedType}, got ${current}`);
63087
+ }
63088
+ const iter = (f, isOpt) => Object.entries(f).forEach(([k, v]) => checkField(k, v, isOpt));
63089
+ iter(fields, false);
63090
+ iter(optFields, true);
63091
+ }
62996
63092
  //#endregion
62997
- //#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/_u64.js
62998
- const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
63093
+ //#region ../../node_modules/.pnpm/@noble+hashes@2.3.0/node_modules/@noble/hashes/_u64.js
63094
+ const U32_MASK64 = /* @__PURE__ */ (() => BigInt(2 ** 32 - 1))();
62999
63095
  const _32n = /* @__PURE__ */ BigInt(32);
63000
63096
  function fromBig(n, le = false) {
63001
63097
  if (le) return {
@@ -63017,12 +63113,16 @@ function split(lst, le = false) {
63017
63113
  }
63018
63114
  return [Ah, Al];
63019
63115
  }
63020
- const rotlSH = (h, l, s) => h << s | l >>> 32 - s;
63021
- const rotlSL = (h, l, s) => l << s | h >>> 32 - s;
63022
- const rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
63023
- const rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
63116
+ const fromNumH = (n) => n / 2 ** 32 | 0;
63117
+ const fromNumL = (n) => n >>> 0;
63118
+ function setU64FromNum(view, byteOffset, n, isLE) {
63119
+ const h = fromNumH(n);
63120
+ const l = fromNumL(n);
63121
+ view.setUint32(byteOffset, isLE ? l : h, isLE);
63122
+ view.setUint32(byteOffset + 4, isLE ? h : l, isLE);
63123
+ }
63024
63124
  //#endregion
63025
- //#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/sha3.js
63125
+ //#region ../../node_modules/.pnpm/@noble+hashes@2.3.0/node_modules/@noble/hashes/sha3.js
63026
63126
  /**
63027
63127
  * SHA3 (keccak) hash function, based on a new "Sponge function" design.
63028
63128
  * Different from older hashes, the internal state is bigger than output size.
@@ -63059,13 +63159,20 @@ for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
63059
63159
  const IOTAS = split(_SHA3_IOTA, true);
63060
63160
  const SHA3_IOTA_H = IOTAS[0];
63061
63161
  const SHA3_IOTA_L = IOTAS[1];
63162
+ const rotlSH = (h, l, s) => h << s | l >>> 32 - s;
63163
+ const rotlSL = (h, l, s) => l << s | h >>> 32 - s;
63164
+ const rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
63165
+ const rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
63062
63166
  const rotlH = (h, l, s) => s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s);
63063
63167
  const rotlL = (h, l, s) => s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s);
63168
+ const B = /* @__PURE__ */ new Uint32Array(10);
63064
63169
  /**
63065
63170
  * `keccakf1600` internal permutation, additionally allows adjusting the round count.
63066
63171
  * @param s - 5x5 Keccak state encoded as 25 lanes split into 50 uint32 words
63067
63172
  * in this file's local little-endian lane-word order
63068
63173
  * @param rounds - number of rounds to execute
63174
+ * @throws On wrong argument types. {@link TypeError}
63175
+ * @throws On wrong argument ranges or values. {@link RangeError}
63069
63176
  * @throws If `rounds` is outside the supported `1..24` range. {@link Error}
63070
63177
  * @example
63071
63178
  * Permute a Keccak state with the default 24 rounds.
@@ -63074,9 +63181,10 @@ const rotlL = (h, l, s) => s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s);
63074
63181
  * ```
63075
63182
  */
63076
63183
  function keccakP(s, rounds = 24) {
63184
+ if (!(s instanceof Uint32Array)) throw new TypeError("\"s\" expected Uint32Array(50), got type=" + typeof s);
63185
+ if (s.length !== 50) throw new RangeError("\"s\" expected Uint32Array(50), got length=" + s.length);
63077
63186
  anumber(rounds, "rounds");
63078
63187
  if (rounds < 1 || rounds > 24) throw new Error("\"rounds\" expected integer 1..24");
63079
- const B = /* @__PURE__ */ new Uint32Array(10);
63080
63188
  for (let round = 24 - rounds; round < 24; round++) {
63081
63189
  for (let x = 0; x < 10; x++) B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40];
63082
63190
  for (let x = 0; x < 10; x += 2) {
@@ -63152,6 +63260,10 @@ var Keccak = class Keccak {
63152
63260
  enableXOF = false;
63153
63261
  rounds;
63154
63262
  constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
63263
+ anumber(blockLen, "blockLen");
63264
+ anumber(suffix, "suffix");
63265
+ anumber(rounds, "rounds");
63266
+ abool$1(enableXOF, "enableXOF");
63155
63267
  this.blockLen = blockLen;
63156
63268
  this.suffix = suffix;
63157
63269
  this.outputLen = outputLen;
@@ -63159,7 +63271,7 @@ var Keccak = class Keccak {
63159
63271
  this.canXOF = enableXOF;
63160
63272
  this.rounds = rounds;
63161
63273
  anumber(outputLen, "outputLen");
63162
- if (!(0 < blockLen && blockLen < 200)) throw new Error("only keccak-f1600 function is supported");
63274
+ if (!(0 < blockLen && blockLen < 200)) throw new Error("\"blockLen\" must be 1..199");
63163
63275
  this.state = /* @__PURE__ */ new Uint8Array(200);
63164
63276
  this.state32 = u32(this.state);
63165
63277
  }
@@ -63176,9 +63288,19 @@ var Keccak = class Keccak {
63176
63288
  update(data) {
63177
63289
  aexists(this);
63178
63290
  abytes(data);
63179
- const { blockLen, state } = this;
63291
+ const { blockLen, state, state32 } = this;
63180
63292
  const len = data.length;
63293
+ const canUseU32 = blockLen % 4 === 0 && data.byteOffset % 4 === 0;
63294
+ const blockLen32 = blockLen / 4;
63295
+ const data32 = canUseU32 && len >= blockLen ? u32(data) : void 0;
63181
63296
  for (let pos = 0; pos < len;) {
63297
+ if (data32 !== void 0 && this.pos === 0 && pos % 4 === 0 && len - pos >= blockLen) {
63298
+ for (let i = 0, o = pos / 4; i < blockLen32; i++) state32[i] ^= data32[o + i];
63299
+ pos += blockLen;
63300
+ this.pos = blockLen;
63301
+ this.keccak();
63302
+ continue;
63303
+ }
63182
63304
  const take = Math.min(blockLen - this.pos, len - pos);
63183
63305
  for (let i = 0; i < take; i++) state[this.pos++] ^= data[pos++];
63184
63306
  if (this.pos === blockLen) this.keccak();
@@ -63210,7 +63332,7 @@ var Keccak = class Keccak {
63210
63332
  return out;
63211
63333
  }
63212
63334
  xofInto(out) {
63213
- if (!this.enableXOF) throw new Error("XOF is not possible for this instance");
63335
+ if (!this.enableXOF) throw new Error("XOF is not enabled");
63214
63336
  return this.writeInto(out);
63215
63337
  }
63216
63338
  xof(bytes) {
@@ -63220,7 +63342,7 @@ var Keccak = class Keccak {
63220
63342
  digestInto(out) {
63221
63343
  aoutput(out, this);
63222
63344
  if (this.finished) throw new Error("digest() was already called");
63223
- this.writeInto(out.subarray(0, this.outputLen));
63345
+ this.writeInto(out.length === this.outputLen ? out : out.subarray(0, this.outputLen));
63224
63346
  this.destroy();
63225
63347
  }
63226
63348
  digest() {
@@ -63249,7 +63371,10 @@ var Keccak = class Keccak {
63249
63371
  return to;
63250
63372
  }
63251
63373
  };
63252
- const genShake = (suffix, blockLen, outputLen, info = {}) => createHasher((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === void 0 ? outputLen : opts.dkLen, true), info);
63374
+ const genShake = (suffix, blockLen, outputLen, info = {}) => createHasher((opts = {}) => {
63375
+ opts = checkOpts({}, opts);
63376
+ return new Keccak(blockLen, suffix, opts.dkLen === void 0 ? outputLen : opts.dkLen, true);
63377
+ }, info);
63253
63378
  /**
63254
63379
  * SHAKE128 XOF with 128-bit security and a 16-byte default output.
63255
63380
  * @param msg - message bytes to hash
@@ -63275,16 +63400,24 @@ const shake128 = /* @__PURE__ */ genShake(31, 168, 16, /* @__PURE__ */ oidNist(1
63275
63400
  */
63276
63401
  const shake256 = /* @__PURE__ */ genShake(31, 136, 32, /* @__PURE__ */ oidNist(12));
63277
63402
  //#endregion
63278
- //#region ../../node_modules/.pnpm/@noble+curves@2.2.0/node_modules/@noble/curves/abstract/fft.js
63279
- function checkU32(n) {
63280
- if (!Number.isSafeInteger(n) || n < 0 || n > 4294967295) throw new Error("wrong u32 integer:" + n);
63403
+ //#region ../../node_modules/.pnpm/@noble+curves@2.3.0/node_modules/@noble/curves/abstract/modular.js
63404
+ /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
63405
+ //#endregion
63406
+ //#region ../../node_modules/.pnpm/@noble+curves@2.3.0/node_modules/@noble/curves/abstract/fft.js
63407
+ /**
63408
+ * Experimental implementation of NTT / FFT (Fast Fourier Transform) over finite fields.
63409
+ * API may change at any time. The code has not been audited. Feature requests are welcome.
63410
+ * @module
63411
+ */
63412
+ function checkU32(n, title = "n") {
63413
+ if (typeof n !== "number") throw new TypeError(`wrong u32 integer "${title}": expected number, got type=${typeof n}`);
63414
+ if (!Number.isSafeInteger(n) || n < 0 || n > 4294967295) throw new RangeError(`wrong u32 integer "${title}": expected 0..4294967295, got ${n}`);
63281
63415
  return n;
63282
63416
  }
63283
63417
  /**
63284
63418
  * Checks if integer is in form of `1 << X`.
63285
63419
  * @param x - Integer to inspect.
63286
63420
  * @returns `true` when the value is a power of two.
63287
- * @throws If `x` is not a valid unsigned 32-bit integer. {@link Error}
63288
63421
  * @example
63289
63422
  * Validate that an FFT size is a power of two.
63290
63423
  *
@@ -63293,7 +63426,7 @@ function checkU32(n) {
63293
63426
  * ```
63294
63427
  */
63295
63428
  function isPowerOfTwo(x) {
63296
- checkU32(x);
63429
+ checkU32(x, "x");
63297
63430
  return (x & x - 1) === 0 && x !== 0;
63298
63431
  }
63299
63432
  /**
@@ -63310,6 +63443,7 @@ function isPowerOfTwo(x) {
63310
63443
  */
63311
63444
  function reverseBits(n, bits) {
63312
63445
  checkU32(n);
63446
+ if (typeof bits !== "number") throw new TypeError("\"bits\" expected number, got type=" + typeof bits);
63313
63447
  if (!Number.isSafeInteger(bits) || bits < 0 || bits > 32) throw new Error(`expected integer 0 <= bits <= 32, got ${bits}`);
63314
63448
  let reversed = 0;
63315
63449
  for (let i = 0; i < bits; i++, n >>>= 1) reversed = reversed << 1 | n & 1;
@@ -63319,7 +63453,6 @@ function reverseBits(n, bits) {
63319
63453
  * Similar to `bitLen(x)-1` but much faster for small integers, like indices.
63320
63454
  * @param n - Input value.
63321
63455
  * @returns Base-2 logarithm. For `n = 0`, the current implementation returns `-1`.
63322
- * @throws If `n` is not a valid unsigned 32-bit integer. {@link Error}
63323
63456
  * @example
63324
63457
  * Compute the radix-2 stage count for one transform size.
63325
63458
  *
@@ -63347,6 +63480,7 @@ function log2(n) {
63347
63480
  * ```
63348
63481
  */
63349
63482
  function bitReversalInplace(values) {
63483
+ if (!values || typeof values !== "object" || typeof values.length !== "number") throw new TypeError("\"values\" expected array-like, got type=" + typeof values);
63350
63484
  const n = values.length;
63351
63485
  if (!isPowerOfTwo(n)) throw new Error("expected positive power-of-two length, got " + n);
63352
63486
  const bits = log2(n);
@@ -63363,7 +63497,7 @@ function bitReversalInplace(values) {
63363
63497
  /**
63364
63498
  * Constructs different flavors of FFT. radix2 implementation of low level mutating API. Flavors:
63365
63499
  *
63366
- * - DIT (Decimation-in-Time): Bottom-Up (leaves to root), Cool-Turkey
63500
+ * - DIT (Decimation-in-Time): Bottom-Up (leaves to root), Cooley-Tukey
63367
63501
  * - DIF (Decimation-in-Frequency): Top-Down (root to leaves), Gentleman-Sande
63368
63502
  *
63369
63503
  * DIT takes brp input, returns natural output.
@@ -63375,8 +63509,16 @@ function bitReversalInplace(values) {
63375
63509
  *
63376
63510
  * Cyclic NTT: Rq = Zq[x]/(x^n-1). butterfly_DIT+loop_DIT OR butterfly_DIF+loop_DIT, roots are omega
63377
63511
  * Negacyclic NTT: Rq = Zq[x]/(x^n+1). butterfly_DIT+loop_DIF, at least for mlkem / mldsa
63512
+ *
63513
+ * `invertButterflies` indexes roots by a per-butterfly-group counter (`grp`): forward
63514
+ * (`dit: false`) reads `roots[grp]` with grp = 1..; inverse (`dit: true`) reads `roots[N - grp]`
63515
+ * with grp restarting at 1. With `skipStages: 0` one table serves both directions (ωᴺ = 1 makes
63516
+ * the reversed walk self-inverse). With `skipStages > 0` the inverse walk starts at `N - 1`
63517
+ * instead of continuing where the skipped stages would have left off, so the caller must supply
63518
+ * a table shaped for that (ML-KEM: `ζ^BitRev7(i)` over all N=256 indices, whose aliased upper
63519
+ * half is exactly the FIPS 203 inverse walk).
63378
63520
  * @param F - Field operations.
63379
- * @param coreOpts - FFT configuration:
63521
+ * @param coreOpts - FFT configuration. See {@link FFTCoreOpts}:
63380
63522
  * - `N`: Transform size. Must be a power of two.
63381
63523
  * - `roots`: Stage roots for the selected transform size.
63382
63524
  * - `dit`: Whether to run the DIT variant instead of DIF.
@@ -63398,9 +63540,22 @@ function bitReversalInplace(values) {
63398
63540
  * ```
63399
63541
  */
63400
63542
  const FFTCore = (F, coreOpts) => {
63543
+ validateObject(coreOpts, {
63544
+ N: "number",
63545
+ roots: "object",
63546
+ dit: "boolean"
63547
+ }, {
63548
+ invertButterflies: "boolean",
63549
+ skipStages: "number",
63550
+ brp: "boolean"
63551
+ }, "coreOpts");
63401
63552
  const { N, roots, dit, invertButterflies = false, skipStages = 0, brp = true } = coreOpts;
63553
+ checkU32(N, "coreOpts.N");
63402
63554
  const bits = log2(N);
63403
63555
  if (!isPowerOfTwo(N)) throw new Error("FFT: Polynomial size should be power of two");
63556
+ checkU32(skipStages, "coreOpts.skipStages");
63557
+ const maxSkipStages = bits === 0 ? 0 : bits - 1;
63558
+ if (skipStages > maxSkipStages) throw new Error(`FFT: wrong skipStages: expected 0 <= skipStages <= ${maxSkipStages}`);
63404
63559
  if (roots.length !== N) throw new Error(`FFT: wrong roots length: expected ${N}, got ${roots.length}`);
63405
63560
  const isDit = dit !== invertButterflies;
63406
63561
  return (values) => {
@@ -63436,7 +63591,7 @@ const FFTCore = (F, coreOpts) => {
63436
63591
  };
63437
63592
  };
63438
63593
  //#endregion
63439
- //#region ../../node_modules/.pnpm/@noble+post-quantum@0.6.1/node_modules/@noble/post-quantum/utils.js
63594
+ //#region ../../node_modules/.pnpm/@noble+post-quantum@0.7.0/node_modules/@noble/post-quantum/utils.js
63440
63595
  /**
63441
63596
  * Utilities for hex, bytearray and number handling.
63442
63597
  * @module
@@ -63469,9 +63624,18 @@ const abytesDoc = abytes;
63469
63624
  * ```
63470
63625
  */
63471
63626
  const randomBytes$1 = randomBytes$2;
63627
+ function aarray(item, title, inner = () => {}) {
63628
+ if (!Array.isArray(item)) throw new TypeError(`"${title}" expected array, got type=${typeof item}`);
63629
+ for (let i = 0; i < item.length; i++) inner(item[i], `${title}[${i}]`);
63630
+ return item;
63631
+ }
63632
+ function aobject(value, title = "object") {
63633
+ if (value === null || typeof value !== "object" || Array.isArray(value)) throw new TypeError(title === "object" ? "expected valid options object" : `"${title}" expected object, got type=${typeof value}`);
63634
+ return value;
63635
+ }
63472
63636
  /**
63473
63637
  * Compares two byte arrays in a length-constant way for equal lengths.
63474
- * Unequal lengths return `false` immediately, and there is no runtime type validation.
63638
+ * Inputs are validated as byte arrays; unequal lengths return `false` immediately.
63475
63639
  * @param a - First byte array.
63476
63640
  * @param b - Second byte array.
63477
63641
  * @returns Whether both arrays contain the same bytes.
@@ -63482,6 +63646,8 @@ const randomBytes$1 = randomBytes$2;
63482
63646
  * ```
63483
63647
  */
63484
63648
  function equalBytes(a, b) {
63649
+ a = abytes(a);
63650
+ b = abytes(b);
63485
63651
  if (a.length !== b.length) return false;
63486
63652
  let diff = 0;
63487
63653
  for (let i = 0; i < a.length; i++) diff |= a[i] ^ b[i];
@@ -63498,7 +63664,8 @@ function equalBytes(a, b) {
63498
63664
  * ```
63499
63665
  */
63500
63666
  function validateOpts(opts) {
63501
- if (Object.prototype.toString.call(opts) !== "[object Object]") throw new TypeError("expected valid options object");
63667
+ if (isBytes(opts)) throw new TypeError("\"opts\" expected object, got Uint8Array");
63668
+ aobject(opts, "opts");
63502
63669
  }
63503
63670
  /**
63504
63671
  * Validates common verification options.
@@ -63603,10 +63770,11 @@ function vecCoder(c, vecLen) {
63603
63770
  return {
63604
63771
  bytesLen,
63605
63772
  encode: (u) => {
63606
- if (u.length !== vecLen) throw new RangeError(`vecCoder.encode: wrong length=${u.length}. Expected: ${vecLen}`);
63773
+ const uArr = aarray(u, "u");
63774
+ if (uArr.length !== vecLen) throw new RangeError(`vecCoder.encode: wrong length=${uArr.length}. Expected: ${vecLen}`);
63607
63775
  const res = new Uint8Array(bytesLen);
63608
- for (let i = 0, pos = 0; i < u.length; i++) {
63609
- const b = coder.encode(u[i]);
63776
+ for (let i = 0, pos = 0; i < uArr.length; i++) {
63777
+ const b = coder.encode(uArr[i]);
63610
63778
  res.set(b, pos);
63611
63779
  b.fill(0);
63612
63780
  pos += b.length;
@@ -63640,6 +63808,7 @@ function cleanBytes(...list) {
63640
63808
  * Creates a 32-bit mask with the lowest `bits` bits set.
63641
63809
  * @param bits - Number of low bits to keep.
63642
63810
  * @returns Bit mask with `bits` ones.
63811
+ * @throws On wrong argument types. {@link TypeError}
63643
63812
  * @throws On wrong argument ranges or values. {@link RangeError}
63644
63813
  * @example
63645
63814
  * Create a low-bit mask for packed-field operations.
@@ -63648,7 +63817,8 @@ function cleanBytes(...list) {
63648
63817
  * ```
63649
63818
  */
63650
63819
  function getMask(bits) {
63651
- if (!Number.isSafeInteger(bits) || bits < 0 || bits > 32) throw new RangeError(`expected bits in [0..32], got ${bits}`);
63820
+ anumber(bits, "bits");
63821
+ if (bits > 32) throw new RangeError("\"bits\" expected <= 32, got " + bits);
63652
63822
  return bits === 32 ? 4294967295 : ~(-1 << bits) >>> 0;
63653
63823
  }
63654
63824
  /** Shared empty byte array used as the default context. */
@@ -63667,8 +63837,8 @@ const EMPTY = /* @__PURE__ */ Uint8Array.of();
63667
63837
  * ```
63668
63838
  */
63669
63839
  function getMessage(msg, ctx = EMPTY) {
63670
- abytes(msg);
63671
- abytes(ctx);
63840
+ abytes(msg, void 0, "msg");
63841
+ abytes(ctx, void 0, "ctx");
63672
63842
  if (ctx.length > 255) throw new RangeError("context should be 255 bytes or less");
63673
63843
  return concatBytes(new Uint8Array([0, ctx.length]), ctx, msg);
63674
63844
  }
@@ -63702,7 +63872,12 @@ const oidNistP = /* @__PURE__ */ Uint8Array.from([
63702
63872
  * ```
63703
63873
  */
63704
63874
  function checkHash(hash, requiredStrength = 0) {
63705
- if (!hash.oid || !equalBytes(hash.oid.subarray(0, 10), oidNistP)) throw new Error("hash.oid is invalid: expected NIST hash");
63875
+ if (typeof hash !== "function" || typeof hash.create !== "function") throw new TypeError("\"hash\" expected hash function, got type=" + typeof hash);
63876
+ ahash(hash);
63877
+ anumber(requiredStrength, "requiredStrength");
63878
+ const oid = hash.oid;
63879
+ abytes(oid, void 0, "hash.oid");
63880
+ if (!equalBytes(oid.subarray(0, 10), oidNistP)) throw new Error("\"hash.oid\" is invalid: expected NIST hash");
63706
63881
  const collisionResistance = hash.outputLen * 8 / 2;
63707
63882
  if (requiredStrength > collisionResistance) throw new Error("Pre-hash security strength too low: " + collisionResistance + ", required: " + requiredStrength);
63708
63883
  }
@@ -63725,14 +63900,15 @@ function checkHash(hash, requiredStrength = 0) {
63725
63900
  * ```
63726
63901
  */
63727
63902
  function getMessagePrehash(hash, msg, ctx = EMPTY) {
63728
- abytes(msg);
63729
- abytes(ctx);
63903
+ checkHash(hash);
63904
+ abytes(msg, void 0, "msg");
63905
+ abytes(ctx, void 0, "ctx");
63730
63906
  if (ctx.length > 255) throw new RangeError("context should be 255 bytes or less");
63731
63907
  const hashed = hash(msg);
63732
63908
  return concatBytes(new Uint8Array([1, ctx.length]), ctx, hash.oid, hashed);
63733
63909
  }
63734
63910
  //#endregion
63735
- //#region ../../node_modules/.pnpm/@noble+post-quantum@0.6.1/node_modules/@noble/post-quantum/_crystals.js
63911
+ //#region ../../node_modules/.pnpm/@noble+post-quantum@0.7.0/node_modules/@noble/post-quantum/_crystals.js
63736
63912
  /**
63737
63913
  * Internal methods for lattice-based ML-KEM and ML-DSA.
63738
63914
  * @module
@@ -63777,13 +63953,25 @@ const genCrystals = (opts) => {
63777
63953
  return out;
63778
63954
  }
63779
63955
  const nttZetas = getZettas();
63780
- const field = {
63956
+ const inv = (_a) => {
63957
+ throw new Error("not implemented");
63958
+ };
63959
+ const field = isKyber ? {
63960
+ add: (a, b) => {
63961
+ const r = a + b | 0;
63962
+ return r >= Q ? r - Q | 0 : r;
63963
+ },
63964
+ sub: (a, b) => {
63965
+ const r = a - b | 0;
63966
+ return r < 0 ? r + Q | 0 : r;
63967
+ },
63968
+ mul: (a, b) => mod((a | 0) * (b | 0)) | 0,
63969
+ inv
63970
+ } : {
63781
63971
  add: (a, b) => mod((a | 0) + (b | 0)) | 0,
63782
63972
  sub: (a, b) => mod((a | 0) - (b | 0)) | 0,
63783
63973
  mul: (a, b) => mod((a | 0) * (b | 0)) | 0,
63784
- inv: (_a) => {
63785
- throw new Error("not implemented");
63786
- }
63974
+ inv
63787
63975
  };
63788
63976
  const nttOpts = {
63789
63977
  N,
@@ -63811,6 +63999,11 @@ const genCrystals = (opts) => {
63811
63999
  }
63812
64000
  };
63813
64001
  const bitsCoder = (d, c) => {
64002
+ for (let i = 0, bufLen = 0; i < N; i++) {
64003
+ bufLen += d;
64004
+ if (bufLen > 32) getMask(bufLen);
64005
+ bufLen %= 8;
64006
+ }
63814
64007
  const mask = getMask(d);
63815
64008
  const bytesLen = d * (N / 8);
63816
64009
  return {
@@ -63821,7 +64014,7 @@ const genCrystals = (opts) => {
63821
64014
  for (let i = 0, buf = 0, bufLen = 0, pos = 0; i < poly.length; i++) {
63822
64015
  buf |= (c.encode(poly[i]) & mask) << bufLen;
63823
64016
  bufLen += d;
63824
- for (; bufLen >= 8; bufLen -= 8, buf >>= 8) r[pos++] = buf & getMask(bufLen);
64017
+ for (; bufLen >= 8; bufLen -= 8, buf >>= 8) r[pos++] = buf & 255;
63825
64018
  }
63826
64019
  return r;
63827
64020
  },
@@ -63913,7 +64106,7 @@ const XOF128 = /* @__PURE__ */ createXofShake(shake128);
63913
64106
  */
63914
64107
  const XOF256 = /* @__PURE__ */ createXofShake(shake256);
63915
64108
  //#endregion
63916
- //#region ../../node_modules/.pnpm/@noble+post-quantum@0.6.1/node_modules/@noble/post-quantum/ml-dsa.js
64109
+ //#region ../../node_modules/.pnpm/@noble+post-quantum@0.7.0/node_modules/@noble/post-quantum/ml-dsa.js
63917
64110
  /**
63918
64111
  * ML-DSA: Module Lattice-based Digital Signature Algorithm from
63919
64112
  * [FIPS-204](https://csrc.nist.gov/pubs/fips/204/ipd). A.k.a. CRYSTALS-Dilithium.
@@ -64055,10 +64248,10 @@ function getDilithium(opts_) {
64055
64248
  const MakeHint = (z, r) => {
64056
64249
  return z <= GAMMA2 || z > Q - GAMMA2 || z === Q - GAMMA2 && r === 0 ? 0 : 1;
64057
64250
  };
64251
+ const HINT_M = Math.floor(8380416 / (2 * GAMMA2));
64058
64252
  const UseHint = (h, r) => {
64059
- const m = Math.floor(8380416 / (2 * GAMMA2));
64060
64253
  const { r1, r0 } = decompose(r);
64061
- if (h === 1) return r0 > 0 ? crystals.mod(r1 + 1, m) | 0 : crystals.mod(r1 - 1, m) | 0;
64254
+ if (h === 1) return r0 > 0 ? crystals.mod(r1 + 1, HINT_M) | 0 : crystals.mod(r1 - 1, HINT_M) | 0;
64062
64255
  return r1 | 0;
64063
64256
  };
64064
64257
  const Power2Round = (r) => {
@@ -64266,8 +64459,19 @@ function getDilithium(opts_) {
64266
64459
  sign: (msg, secretKey, opts = {}) => {
64267
64460
  validateSigOpts(opts);
64268
64461
  validateInternalOpts(opts);
64269
- let { extraEntropy: random, externalMu = false } = opts;
64270
- const [rho, _K, tr, s1, s2, t0] = secretCoder.decode(secretKey);
64462
+ const { extraEntropy: random, externalMu = false } = opts;
64463
+ if (externalMu) abytesDoc(msg, CRH_BYTES, "mu");
64464
+ const ownRnd = random === false || random === void 0;
64465
+ const rnd = random === false ? /* @__PURE__ */ new Uint8Array(32) : random === void 0 ? randomBytes$1(signRandBytes) : random;
64466
+ abytesDoc(rnd, 32, "extraEntropy");
64467
+ const [rho, _K, tr, s1, s2, t0] = (() => {
64468
+ try {
64469
+ return secretCoder.decode(secretKey);
64470
+ } catch (error) {
64471
+ if (ownRnd) cleanBytes(rnd);
64472
+ throw error;
64473
+ }
64474
+ })();
64271
64475
  const A = [];
64272
64476
  const xof = XOF128(rho);
64273
64477
  for (let i = 0; i < K; i++) {
@@ -64282,9 +64486,8 @@ function getDilithium(opts_) {
64282
64486
  crystals.NTT.encode(t0[i]);
64283
64487
  }
64284
64488
  const mu = externalMu ? msg : shake256.create({ dkLen: CRH_BYTES }).update(tr).update(msg).digest();
64285
- const rnd = random === false ? /* @__PURE__ */ new Uint8Array(32) : random === void 0 ? randomBytes$1(signRandBytes) : random;
64286
- abytesDoc(rnd, 32, "extraEntropy");
64287
64489
  const rhoprime = shake256.create({ dkLen: CRH_BYTES }).update(_K).update(rnd).update(mu).digest();
64490
+ if (ownRnd) cleanBytes(rnd);
64288
64491
  abytesDoc(rhoprime, CRH_BYTES);
64289
64492
  const x256 = XOF256(rhoprime, ZCoder.bytesLen);
64290
64493
  main_loop: for (let kappa = 0;;) {
@@ -64335,6 +64538,7 @@ function getDilithium(opts_) {
64335
64538
  verify: (sig, msg, publicKey, opts = {}) => {
64336
64539
  validateInternalOpts(opts);
64337
64540
  const { externalMu = false } = opts;
64541
+ if (externalMu) abytesDoc(msg, CRH_BYTES, "mu");
64338
64542
  const [rho, t1] = publicCoder.decode(publicKey);
64339
64543
  const tr = shake256(publicKey, { dkLen: TR_BYTES });
64340
64544
  if (sig.length !== sigCoder.bytesLen) return false;
@@ -64380,10 +64584,12 @@ function getDilithium(opts_) {
64380
64584
  },
64381
64585
  verify: (sig, msg, publicKey, opts = {}) => {
64382
64586
  validateVerOpts(opts);
64587
+ abytesDoc(sig, void 0, "signature");
64383
64588
  return internal.verify(sig, getMessage(msg, opts.context), publicKey);
64384
64589
  },
64385
64590
  prehash: (hash) => {
64386
64591
  checkHash(hash, securityLevel);
64592
+ const rawHash = hash;
64387
64593
  return Object.freeze({
64388
64594
  info: Object.freeze({ type: "hashml-dsa" }),
64389
64595
  securityLevel,
@@ -64392,14 +64598,15 @@ function getDilithium(opts_) {
64392
64598
  getPublicKey: internal.getPublicKey,
64393
64599
  sign: (msg, secretKey, opts = {}) => {
64394
64600
  validateSigOpts(opts);
64395
- const M = getMessagePrehash(hash, msg, opts.context);
64601
+ const M = getMessagePrehash(rawHash, msg, opts.context);
64396
64602
  const res = internal.sign(M, secretKey, opts);
64397
64603
  cleanBytes(M);
64398
64604
  return res;
64399
64605
  },
64400
64606
  verify: (sig, msg, publicKey, opts = {}) => {
64401
64607
  validateVerOpts(opts);
64402
- return internal.verify(sig, getMessagePrehash(hash, msg, opts.context), publicKey);
64608
+ abytesDoc(sig, void 0, "signature");
64609
+ return internal.verify(sig, getMessagePrehash(rawHash, msg, opts.context), publicKey);
64403
64610
  }
64404
64611
  });
64405
64612
  }
@@ -64416,7 +64623,7 @@ const ml_dsa65 = /* @__PURE__ */ (() => getDilithium({
64416
64623
  securityLevel: 192
64417
64624
  }))();
64418
64625
  //#endregion
64419
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/pqc.mjs
64626
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/pqc.mjs
64420
64627
  var MlDsa = class {
64421
64628
  /** Concatenated public key + signature length in bytes. */
64422
64629
  static bundleLength = 5261;
@@ -64693,7 +64900,7 @@ replaceTraps((oldTraps) => ({
64693
64900
  }
64694
64901
  }));
64695
64902
  //#endregion
64696
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/previous-hash-store-storage.mjs
64903
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/previous-hash-store-storage.mjs
64697
64904
  var InMemoryBackend = class {
64698
64905
  data = /* @__PURE__ */ new Map();
64699
64906
  get(key) {
@@ -64708,7 +64915,7 @@ var InMemoryBackend = class {
64708
64915
  };
64709
64916
  new InMemoryBackend();
64710
64917
  //#endregion
64711
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/quant-account.mjs
64918
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/quant-account.mjs
64712
64919
  var __defProp$12 = Object.defineProperty;
64713
64920
  var __getOwnPropDesc$12 = Object.getOwnPropertyDescriptor;
64714
64921
  var __defNormalProp$10 = (obj, key, value) => key in obj ? __defProp$12(obj, key, {
@@ -64922,7 +65129,7 @@ __publicField$10(QuantAccount, "_addressMap", {});
64922
65129
  __publicField$10(QuantAccount, "_protectedConstructorKey", /* @__PURE__ */ Symbol());
64923
65130
  QuantAccount = __decorateClass$12([staticImplements()], QuantAccount);
64924
65131
  //#endregion
64925
- //#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/_md.js
65132
+ //#region ../../node_modules/.pnpm/@noble+hashes@2.3.0/node_modules/@noble/hashes/_md.js
64926
65133
  /**
64927
65134
  * Internal Merkle-Damgard hash utils.
64928
65135
  * @module
@@ -65004,23 +65211,26 @@ var HashMD = class {
65004
65211
  abytes(data);
65005
65212
  const { view, buffer, blockLen } = this;
65006
65213
  const len = data.length;
65214
+ let processed = false;
65007
65215
  for (let pos = 0; pos < len;) {
65008
65216
  const take = Math.min(blockLen - this.pos, len - pos);
65009
65217
  if (take === blockLen) {
65010
65218
  const dataView = createView(data);
65011
65219
  for (; blockLen <= len - pos; pos += blockLen) this.process(dataView, pos);
65220
+ processed = true;
65012
65221
  continue;
65013
65222
  }
65014
- buffer.set(data.subarray(pos, pos + take), this.pos);
65223
+ buffer.set(pos === 0 && take === len ? data : data.subarray(pos, pos + take), this.pos);
65015
65224
  this.pos += take;
65016
65225
  pos += take;
65017
65226
  if (this.pos === blockLen) {
65018
65227
  this.process(view, 0);
65019
65228
  this.pos = 0;
65229
+ processed = true;
65020
65230
  }
65021
65231
  }
65022
65232
  this.length += data.length;
65023
- this.roundClean();
65233
+ if (processed) this.roundClean();
65024
65234
  return this;
65025
65235
  }
65026
65236
  digestInto(out) {
@@ -65030,20 +65240,19 @@ var HashMD = class {
65030
65240
  const { buffer, view, blockLen, isLE } = this;
65031
65241
  let { pos } = this;
65032
65242
  buffer[pos++] = 128;
65033
- clean(this.buffer.subarray(pos));
65243
+ buffer.fill(0, pos);
65034
65244
  if (this.padOffset > blockLen - pos) {
65035
65245
  this.process(view, 0);
65036
- pos = 0;
65246
+ buffer.fill(0);
65037
65247
  }
65038
- for (let i = pos; i < blockLen; i++) buffer[i] = 0;
65039
- view.setBigUint64(blockLen - 8, BigInt(this.length * 8), isLE);
65248
+ setU64FromNum(view, blockLen - 8, this.length * 8, isLE);
65040
65249
  this.process(view, 0);
65041
- const oview = createView(out);
65250
+ this.roundClean();
65251
+ const oview = out === buffer ? view : createView(out);
65042
65252
  const len = this.outputLen;
65043
- if (len % 4) throw new Error("_sha2: outputLen must be aligned to 32bit");
65044
65253
  const outLen = len / 4;
65045
65254
  const state = this.get();
65046
- if (outLen > state.length) throw new Error("_sha2: outputLen bigger than state");
65255
+ if (len % 4 || outLen > state.length) throw new Error("invalid outputLen");
65047
65256
  for (let i = 0; i < outLen; i++) oview.setUint32(4 * i, state[i], isLE);
65048
65257
  }
65049
65258
  digest() {
@@ -65053,15 +65262,13 @@ var HashMD = class {
65053
65262
  this.destroy();
65054
65263
  return res;
65055
65264
  }
65056
- _cloneInto(to) {
65057
- to ||= new this.constructor();
65058
- to.set(...this.get());
65059
- const { blockLen, buffer, length, finished, destroyed, pos } = this;
65265
+ _cloneIntoMeta(to) {
65266
+ const { buffer, length, finished, destroyed, pos } = this;
65060
65267
  to.destroyed = destroyed;
65061
65268
  to.finished = finished;
65062
65269
  to.length = length;
65063
65270
  to.pos = pos;
65064
- if (length % blockLen) to.buffer.set(buffer);
65271
+ if (pos) to.buffer.set(buffer);
65065
65272
  return to;
65066
65273
  }
65067
65274
  clone() {
@@ -65086,7 +65293,7 @@ const SHA256_IV = /* @__PURE__ */ Uint32Array.from([
65086
65293
  1541459225
65087
65294
  ]);
65088
65295
  //#endregion
65089
- //#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/sha2.js
65296
+ //#region ../../node_modules/.pnpm/@noble+hashes@2.3.0/node_modules/@noble/hashes/sha2.js
65090
65297
  /**
65091
65298
  * SHA2 hash function. A.k.a. sha256, sha384, sha512, sha512_224, sha512_256.
65092
65299
  * SHA256 is the fastest hash implementable in JS, even faster than Blake3.
@@ -65168,8 +65375,24 @@ const SHA256_K = /* @__PURE__ */ Uint32Array.from([
65168
65375
  const SHA256_W = /* @__PURE__ */ new Uint32Array(64);
65169
65376
  /** Internal SHA-224 / SHA-256 compression engine from RFC 6234 §6.2. */
65170
65377
  var SHA2_32B = class extends HashMD {
65171
- constructor(outputLen) {
65378
+ A = 0;
65379
+ B = 0;
65380
+ C = 0;
65381
+ D = 0;
65382
+ E = 0;
65383
+ F = 0;
65384
+ G = 0;
65385
+ H = 0;
65386
+ constructor(outputLen, IV) {
65172
65387
  super(64, outputLen, 8, false);
65388
+ this.A = IV[0] | 0;
65389
+ this.B = IV[1] | 0;
65390
+ this.C = IV[2] | 0;
65391
+ this.D = IV[3] | 0;
65392
+ this.E = IV[4] | 0;
65393
+ this.F = IV[5] | 0;
65394
+ this.G = IV[6] | 0;
65395
+ this.H = IV[7] | 0;
65173
65396
  }
65174
65397
  get() {
65175
65398
  const { A, B, C, D, E, F, G, H } = this;
@@ -65194,6 +65417,10 @@ var SHA2_32B = class extends HashMD {
65194
65417
  this.G = G | 0;
65195
65418
  this.H = H | 0;
65196
65419
  }
65420
+ _cloneInto(to) {
65421
+ (to ||= new this.constructor()).set(...this.get());
65422
+ return this._cloneIntoMeta(to);
65423
+ }
65197
65424
  process(view, offset) {
65198
65425
  for (let i = 0; i < 16; i++, offset += 4) SHA256_W[i] = view.getUint32(offset, false);
65199
65426
  for (let i = 16; i < 64; i++) {
@@ -65238,16 +65465,8 @@ var SHA2_32B = class extends HashMD {
65238
65465
  };
65239
65466
  /** Internal SHA-256 hash class grounded in RFC 6234 §6.2. */
65240
65467
  var _SHA256 = class extends SHA2_32B {
65241
- A = SHA256_IV[0] | 0;
65242
- B = SHA256_IV[1] | 0;
65243
- C = SHA256_IV[2] | 0;
65244
- D = SHA256_IV[3] | 0;
65245
- E = SHA256_IV[4] | 0;
65246
- F = SHA256_IV[5] | 0;
65247
- G = SHA256_IV[6] | 0;
65248
- H = SHA256_IV[7] | 0;
65249
65468
  constructor() {
65250
- super(32);
65469
+ super(32, SHA256_IV);
65251
65470
  }
65252
65471
  };
65253
65472
  /**
@@ -65258,6 +65477,7 @@ var _SHA256 = class extends SHA2_32B {
65258
65477
  * - Each sha256 hash is executing 2^18 bit operations.
65259
65478
  * - Good 2024 ASICs can do 200Th/sec with 3500 watts of power, corresponding to 2^36 hashes/joule.
65260
65479
  * @param msg - message bytes to hash
65480
+ * @param opts - Reserved hash options.
65261
65481
  * @returns Digest bytes.
65262
65482
  * @example
65263
65483
  * Hash a message with SHA2-256.
@@ -65267,7 +65487,7 @@ var _SHA256 = class extends SHA2_32B {
65267
65487
  */
65268
65488
  const sha256 = /* @__PURE__ */ createHasher(() => new _SHA256(), /* @__PURE__ */ oidNist(1));
65269
65489
  //#endregion
65270
- //#region ../../node_modules/.pnpm/@scure+bip39@2.2.0/node_modules/@scure/bip39/index.js
65490
+ //#region ../../node_modules/.pnpm/@scure+bip39@2.3.0/node_modules/@scure/bip39/index.js
65271
65491
  /*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */
65272
65492
  const isJapanese = (wordlist) => wordlist[0] === "あいこくしん";
65273
65493
  function aentropy(ent) {
@@ -65303,14 +65523,32 @@ function generateMnemonic(wordlist, strength = 128) {
65303
65523
  }
65304
65524
  const calcChecksum = (entropy) => {
65305
65525
  const bitsLeft = 8 - entropy.length / 4;
65306
- return new Uint8Array([sha256(entropy)[0] >> bitsLeft << bitsLeft]);
65526
+ return sha256(entropy)[0] >> bitsLeft << bitsLeft;
65307
65527
  };
65308
- function getCoder(wordlist) {
65528
+ function awordlist(wordlist) {
65309
65529
  if (!Array.isArray(wordlist) || wordlist.length !== 2048 || typeof wordlist[0] !== "string") throw new TypeError("Wordlist: expected array of 2048 strings");
65310
65530
  wordlist.forEach((i) => {
65311
65531
  if (typeof i !== "string") throw new TypeError("wordlist: non-string element: " + i);
65312
65532
  });
65313
- return utils.chain(utils.checksum(1, calcChecksum), utils.radix2(11, true), utils.alphabet(wordlist));
65533
+ }
65534
+ function encodeWords(entropy, wordlist) {
65535
+ awordlist(wordlist);
65536
+ const bytes = new Uint8Array(entropy.length + 1);
65537
+ bytes.set(entropy);
65538
+ bytes[entropy.length] = calcChecksum(entropy);
65539
+ const words = [];
65540
+ let carry = 0;
65541
+ let bits = 0;
65542
+ for (const byte of bytes) {
65543
+ carry = carry << 8 | byte;
65544
+ bits += 8;
65545
+ if (bits >= 11) {
65546
+ bits -= 11;
65547
+ words.push(wordlist[carry >>> bits & 2047]);
65548
+ carry &= (1 << bits) - 1;
65549
+ }
65550
+ }
65551
+ return words;
65314
65552
  }
65315
65553
  /**
65316
65554
  * Reversible: Converts raw entropy in form of byte array to mnemonic string.
@@ -65334,10 +65572,10 @@ function getCoder(wordlist) {
65334
65572
  */
65335
65573
  function entropyToMnemonic(entropy, wordlist) {
65336
65574
  aentropy(entropy);
65337
- return getCoder(wordlist).encode(entropy).join(isJapanese(wordlist) ? " " : " ");
65575
+ return encodeWords(entropy, wordlist).join(isJapanese(wordlist) ? " " : " ");
65338
65576
  }
65339
65577
  //#endregion
65340
- //#region ../../node_modules/.pnpm/@scure+bip39@2.2.0/node_modules/@scure/bip39/wordlists/english.js
65578
+ //#region ../../node_modules/.pnpm/@scure+bip39@2.3.0/node_modules/@scure/bip39/wordlists/english.js
65341
65579
  /** English BIP39 wordlist. */
65342
65580
  const wordlist = /* @__PURE__ */ Object.freeze(`abandon
65343
65581
  ability
@@ -67388,7 +67626,7 @@ zero
67388
67626
  zone
67389
67627
  zoo`.split("\n"));
67390
67628
  //#endregion
67391
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/wallet.mjs
67629
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/wallet.mjs
67392
67630
  var __defProp$11 = Object.defineProperty;
67393
67631
  var __getOwnPropDesc$11 = Object.getOwnPropertyDescriptor;
67394
67632
  var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$11(obj, key, {
@@ -67596,7 +67834,7 @@ var NodeManifestPayloadSchema = asSchema("network.xyo.node.manifest", true);
67596
67834
  asSchema("network.xyo.network.node", true);
67597
67835
  asSchema("network.xyo.network", true);
67598
67836
  //#endregion
67599
- //#region ../../node_modules/.pnpm/@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3/node_modules/@ariestools/sdk/dist/neutral/geo.mjs
67837
+ //#region ../../node_modules/.pnpm/@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3/node_modules/@ariestools/sdk/dist/neutral/geo.mjs
67600
67838
  var boundingBoxToBoundary = (box) => {
67601
67839
  return [
67602
67840
  box.getNorthWest(),
@@ -67872,7 +68110,7 @@ var GeoJson = class _GeoJson {
67872
68110
  }
67873
68111
  };
67874
68112
  //#endregion
67875
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/quadkey.mjs
68113
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/quadkey.mjs
67876
68114
  var RelativeDirectionConstantLookup = {
67877
68115
  e: 1,
67878
68116
  n: -2,
@@ -68197,7 +68435,7 @@ function gridOffsetForDigit(digit, blockSize) {
68197
68435
  }
68198
68436
  });
68199
68437
  //#endregion
68200
- //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod_c4def984fd25c7ba2389661f144eef4d/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/quant-wallet.mjs
68438
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.4_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod_14a6919fde991fc75cc198abebccb44a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/quant-wallet.mjs
68201
68439
  var __defProp$10 = Object.defineProperty;
68202
68440
  var __getOwnPropDesc$10 = Object.getOwnPropertyDescriptor;
68203
68441
  var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$10(obj, key, {
@@ -75051,7 +75289,7 @@ var I = class d {
75051
75289
  }
75052
75290
  };
75053
75291
  //#endregion
75054
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/module-model.mjs
75292
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/module-model.mjs
75055
75293
  var ArchivingModuleConfigZod = /* @__PURE__ */ object$2({ archiving: /* @__PURE__ */ optional$1(/* @__PURE__ */ object$2({
75056
75294
  archivists: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ custom$1())),
75057
75295
  queries: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ custom$1()))
@@ -75266,7 +75504,7 @@ var isAttachableArchivistInstance = new IsObjectFactory().create({}, [isArchivis
75266
75504
  AsObjectFactory.create(isAttachableArchivistInstance);
75267
75505
  var ArchivistConfigSchema = asSchema("network.xyo.archivist.config", true);
75268
75506
  //#endregion
75269
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/diviner-model.mjs
75507
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/diviner-model.mjs
75270
75508
  var DivinerDivineQuerySchema = asSchema("network.xyo.query.diviner.divine", true);
75271
75509
  ({ ...QueryFieldsZod.shape });
75272
75510
  var isDivinerInstance = new IsInstanceFactory().create({ divine: "function" }, [isModuleInstance]);
@@ -75279,7 +75517,7 @@ var isAttachableDivinerInstance = new IsObjectFactory().create({}, [isDivinerIns
75279
75517
  AsObjectFactory.create(isAttachableDivinerInstance);
75280
75518
  var DivinerConfigSchema = asSchema("network.xyo.diviner.config", true);
75281
75519
  //#endregion
75282
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/diviner-payload-model.mjs
75520
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/diviner-payload-model.mjs
75283
75521
  var PayloadDivinerSchema = asSchema("network.xyo.diviner.payload", true);
75284
75522
  var PayloadDivinerConfigSchema = asSchema(`${PayloadDivinerSchema}.config`, true);
75285
75523
  var asPayloadDivinerQueryPayload = zodAsFactory(/* @__PURE__ */ extend(PayloadZodOfSchema(asSchema(`${PayloadDivinerSchema}.query`, true)), {
@@ -75290,7 +75528,7 @@ var asPayloadDivinerQueryPayload = zodAsFactory(/* @__PURE__ */ extend(PayloadZo
75290
75528
  schemas: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ custom$1()))
75291
75529
  }), "asPayloadDivinerQueryPayload");
75292
75530
  //#endregion
75293
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/module-resolver.mjs
75531
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/module-resolver.mjs
75294
75532
  var AbstractModuleResolver = class extends Base {
75295
75533
  get priority() {
75296
75534
  return this.params.priority ?? ObjectResolverPriority.Normal;
@@ -75735,7 +75973,7 @@ var CompositeModuleResolver = class _CompositeModuleResolver extends AbstractMod
75735
75973
  }
75736
75974
  };
75737
75975
  //#endregion
75738
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/node-model.mjs
75976
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/node-model.mjs
75739
75977
  var NodeAttachQuerySchema = asSchema("network.xyo.query.node.attach", true);
75740
75978
  ({ ...QueryFieldsZod.shape });
75741
75979
  var NodeAttachedQuerySchema = asSchema("network.xyo.query.node.attached", true);
@@ -75763,7 +76001,7 @@ var asAttachableNodeInstance = AsObjectFactory.create(isAttachableNodeInstance);
75763
76001
  var ChildCertificationSchema = asSchema("network.xyo.child.certification", true);
75764
76002
  var NodeConfigSchema = asSchema("network.xyo.node.config", true);
75765
76003
  //#endregion
75766
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/module-abstract.mjs
76004
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/module-abstract.mjs
75767
76005
  var isDetermineAccountFromAccountParams = (params) => {
75768
76006
  assertEx(isUndefined(params.accountPath), () => "accountPath may not be provided when account is provided");
75769
76007
  return isDefined(params.account);
@@ -76524,7 +76762,7 @@ var AbstractModuleInstance = class _AbstractModuleInstance extends AbstractModul
76524
76762
  }
76525
76763
  };
76526
76764
  //#endregion
76527
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/archivist-abstract.mjs
76765
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/archivist-abstract.mjs
76528
76766
  var StorageClassLabel = "network.xyo.storage.class";
76529
76767
  var NOT_IMPLEMENTED = "Not implemented";
76530
76768
  var AbstractArchivist = class _AbstractArchivist extends AbstractModuleInstance {
@@ -76997,7 +77235,7 @@ var AbstractArchivist = class _AbstractArchivist extends AbstractModuleInstance
76997
77235
  }
76998
77236
  };
76999
77237
  //#endregion
77000
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/archivist-generic.mjs
77238
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/archivist-generic.mjs
77001
77239
  var __defProp$9 = Object.defineProperty;
77002
77240
  var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
77003
77241
  var __getProtoOf$5 = Object.getPrototypeOf;
@@ -77080,7 +77318,7 @@ __publicField$7(GenericArchivist, "labels", {
77080
77318
  });
77081
77319
  GenericArchivist = __decorateClass$9([creatableModule()], GenericArchivist);
77082
77320
  //#endregion
77083
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/archivist-view.mjs
77321
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/archivist-view.mjs
77084
77322
  var __defProp$8 = Object.defineProperty;
77085
77323
  var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
77086
77324
  var __getProtoOf$4 = Object.getPrototypeOf;
@@ -77139,7 +77377,7 @@ __publicField$6(ViewArchivist, "labels", {
77139
77377
  });
77140
77378
  ViewArchivist = __decorateClass$8([labeledCreatableModule()], ViewArchivist);
77141
77379
  //#endregion
77142
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/bridge-model.mjs
77380
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/bridge-model.mjs
77143
77381
  var BridgeConnectQuerySchema = asSchema("network.xyo.query.bridge.connect", true);
77144
77382
  ({ ...QueryFieldsZod.shape });
77145
77383
  var BridgeDisconnectQuerySchema = asSchema("network.xyo.query.bridge.disconnect", true);
@@ -77159,7 +77397,7 @@ var isAttachableBridgeInstance = new IsObjectFactory().create({}, [isBridgeInsta
77159
77397
  AsObjectFactory.create(isAttachableBridgeInstance);
77160
77398
  var BridgeConfigSchema = asSchema("network.xyo.bridge.config", true);
77161
77399
  //#endregion
77162
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/module-wrapper.mjs
77400
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/module-wrapper.mjs
77163
77401
  var __defProp$7 = Object.defineProperty;
77164
77402
  var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
77165
77403
  var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$7(obj, key, {
@@ -77611,7 +77849,7 @@ var NodeWrapper = class extends ModuleWrapper {
77611
77849
  }
77612
77850
  };
77613
77851
  //#endregion
77614
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/sentinel-model.mjs
77852
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/sentinel-model.mjs
77615
77853
  var SentinelReportQuerySchema = asSchema("network.xyo.query.sentinel.report", true);
77616
77854
  ({ ...QueryFieldsZod.shape });
77617
77855
  var isSentinelInstance = new IsInstanceFactory().create({ report: "function" }, [isModuleInstance]);
@@ -77666,7 +77904,7 @@ var SentinelWrapper = class extends ModuleWrapper {
77666
77904
  }
77667
77905
  };
77668
77906
  //#endregion
77669
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/witness-model.mjs
77907
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/witness-model.mjs
77670
77908
  var WitnessObserveQuerySchema = asSchema("network.xyo.query.witness.observe", true);
77671
77909
  ({ ...QueryFieldsZod.shape });
77672
77910
  var isWitnessInstance = new IsInstanceFactory().create({ observe: "function" }, [isModuleInstance]);
@@ -77692,7 +77930,7 @@ var WitnessWrapper = class extends ModuleWrapper {
77692
77930
  }
77693
77931
  };
77694
77932
  //#endregion
77695
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/bridge-abstract.mjs
77933
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/bridge-abstract.mjs
77696
77934
  var AbstractBridge = class extends AbstractModuleInstance {
77697
77935
  static configSchemas = [...super.configSchemas, BridgeConfigSchema];
77698
77936
  static defaultConfigSchema = BridgeConfigSchema;
@@ -78102,7 +78340,7 @@ var AbstractModuleProxy = class extends AbstractModuleInstance {
78102
78340
  }
78103
78341
  };
78104
78342
  //#endregion
78105
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/bridge-http.mjs
78343
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/bridge-http.mjs
78106
78344
  var __defProp$6 = Object.defineProperty;
78107
78345
  var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
78108
78346
  var __getProtoOf$3 = Object.getPrototypeOf;
@@ -78377,7 +78615,7 @@ __publicField$4(HttpBridge, "fetchClient", new FetchJsonClient());
78377
78615
  __publicField$4(HttpBridge, "maxFailureCacheSize", 1e3);
78378
78616
  HttpBridge = __decorateClass$6([creatableModule()], HttpBridge);
78379
78617
  //#endregion
78380
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/diviner-abstract.mjs
78618
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/diviner-abstract.mjs
78381
78619
  var delayedResolve = async (parent, id, closure, as = asModuleInstance, timeout = 3e4, logger) => {
78382
78620
  const start = Date.now();
78383
78621
  let result;
@@ -78492,7 +78730,7 @@ var AbstractDiviner = class extends AbstractModuleInstance {
78492
78730
  }
78493
78731
  };
78494
78732
  //#endregion
78495
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/diviner-boundwitness.mjs
78733
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/diviner-boundwitness.mjs
78496
78734
  var BoundWitnessDivinerSchema$1 = asSchema("network.xyo.diviner.boundwitness", true);
78497
78735
  var BoundWitnessDivinerConfigSchema$1 = asSchema(`${BoundWitnessDivinerSchema$1}.config`, true);
78498
78736
  (class extends AbstractDiviner {
@@ -78501,7 +78739,7 @@ var BoundWitnessDivinerConfigSchema$1 = asSchema(`${BoundWitnessDivinerSchema$1}
78501
78739
  });
78502
78740
  asSchema(`${BoundWitnessDivinerSchema$1}.query`, true), { ...QueryFieldsZod.shape };
78503
78741
  //#endregion
78504
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/diviner-identity.mjs
78742
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/diviner-identity.mjs
78505
78743
  var __defProp$5 = Object.defineProperty;
78506
78744
  var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
78507
78745
  var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
@@ -78525,13 +78763,13 @@ var IdentityDiviner = class extends AbstractDiviner {
78525
78763
  __publicField$3(IdentityDiviner, "targetSchema", asSchema("network.xyo.test", true));
78526
78764
  IdentityDiviner = __decorateClass$5([creatableModule()], IdentityDiviner);
78527
78765
  //#endregion
78528
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/diviner-payload-abstract.mjs
78766
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/diviner-payload-abstract.mjs
78529
78767
  var PayloadDiviner = class extends AbstractDiviner {
78530
78768
  static configSchemas = [...super.configSchemas, PayloadDivinerConfigSchema];
78531
78769
  static defaultConfigSchema = PayloadDivinerConfigSchema;
78532
78770
  };
78533
78771
  //#endregion
78534
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/diviner-payload-generic.mjs
78772
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/diviner-payload-generic.mjs
78535
78773
  var __defProp$4 = Object.defineProperty;
78536
78774
  var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
78537
78775
  var __getProtoOf$2 = Object.getPrototypeOf;
@@ -78676,7 +78914,7 @@ asSchema("network.xyo.location.range.query", true);
78676
78914
  asSchema("network.xyo.location.range.answer", true);
78677
78915
  asSchema("network.xyo.diviner.remote.config", true);
78678
78916
  //#endregion
78679
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/archivist-memory.mjs
78917
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/archivist-memory.mjs
78680
78918
  var __defProp$3 = Object.defineProperty;
78681
78919
  var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
78682
78920
  var __getProtoOf$1 = Object.getPrototypeOf;
@@ -78815,7 +79053,7 @@ __publicField$1(MemoryArchivist, "labels", {
78815
79053
  });
78816
79054
  MemoryArchivist = __decorateClass$3([creatableModule()], MemoryArchivist);
78817
79055
  //#endregion
78818
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/node-abstract.mjs
79056
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/node-abstract.mjs
78819
79057
  var AbstractNode = class extends AbstractModuleInstance {
78820
79058
  static configSchemas = [...super.configSchemas, NodeConfigSchema];
78821
79059
  static defaultConfigSchema = NodeConfigSchema;
@@ -79017,7 +79255,7 @@ var NodeHelper = {
79017
79255
  attachedPublicModules
79018
79256
  };
79019
79257
  //#endregion
79020
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/node-memory.mjs
79258
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/node-memory.mjs
79021
79259
  var __defProp$2 = Object.defineProperty;
79022
79260
  var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
79023
79261
  var __decorateClass$2 = (decorators, target, key, kind) => {
@@ -79240,7 +79478,7 @@ var MemoryNodeHelper = {
79240
79478
  flatAttachToNewNode
79241
79479
  };
79242
79480
  //#endregion
79243
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/diviner-boundwitness.memory.mjs
79481
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/diviner-boundwitness.memory.mjs
79244
79482
  var applyBoundWitnessDivinerQueryPayload = (filter, payloads = []) => {
79245
79483
  if (!filter) return [];
79246
79484
  const { addresses, cursor, destination, limit, order = "desc", payload_hashes, payload_schemas, sourceQuery } = filter;
@@ -79279,7 +79517,7 @@ var MemoryBoundWitnessDiviner = class extends BoundWitnessDiviner {
79279
79517
  }
79280
79518
  };
79281
79519
  //#endregion
79282
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/node-view.mjs
79520
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/node-view.mjs
79283
79521
  var __defProp$1 = Object.defineProperty;
79284
79522
  var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
79285
79523
  var __getProtoOf = Object.getPrototypeOf;
@@ -79377,7 +79615,7 @@ __publicField(ViewNode, "defaultConfigSchema", ViewNodeConfigSchema);
79377
79615
  __publicField(ViewNode, "labels", { ...ModuleLimitationViewLabel });
79378
79616
  ViewNode = __decorateClass$1([creatableModule()], ViewNode);
79379
79617
  //#endregion
79380
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/sentinel-abstract.mjs
79618
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/sentinel-abstract.mjs
79381
79619
  var AbstractSentinel = class extends AbstractModuleInstance {
79382
79620
  static configSchemas = [...super.configSchemas, SentinelConfigSchema];
79383
79621
  static defaultConfigSchema = SentinelConfigSchema;
@@ -79482,7 +79720,7 @@ var AbstractSentinel = class extends AbstractModuleInstance {
79482
79720
  }
79483
79721
  };
79484
79722
  //#endregion
79485
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/sentinel-memory.mjs
79723
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/sentinel-memory.mjs
79486
79724
  var SentinelIntervalAutomationWrapper = class extends PayloadWrapper {
79487
79725
  constructor(payload) {
79488
79726
  super(payload);
@@ -79753,7 +79991,7 @@ var MemorySentinel = class extends AbstractSentinel {
79753
79991
  }
79754
79992
  };
79755
79993
  //#endregion
79756
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/witness-abstract.mjs
79994
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/witness-abstract.mjs
79757
79995
  var AbstractWitness = class extends AbstractModuleInstance {
79758
79996
  static configSchemas = [...super.configSchemas, WitnessConfigSchema];
79759
79997
  static defaultConfigSchema = WitnessConfigSchema;
@@ -79820,7 +80058,7 @@ var AbstractWitness = class extends AbstractModuleInstance {
79820
80058
  }
79821
80059
  };
79822
80060
  //#endregion
79823
- //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_e573edf9555f2a031ec021042a28e458/node_modules/@xyo-network/sdk/dist/neutral/witness-adhoc.mjs
80061
+ //#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.3_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_ce13df1366b1dcdb54b499e52dce1569/node_modules/@xyo-network/sdk/dist/neutral/witness-adhoc.mjs
79824
80062
  var AdhocWitnessConfigSchema = asSchema("network.xyo.witness.adhoc.config", true);
79825
80063
  var AdhocWitness = class extends AbstractWitness {
79826
80064
  static configSchemas = [...super.configSchemas, AdhocWitnessConfigSchema];
@@ -80671,7 +80909,7 @@ function hostname(_params) {
80671
80909
  return /* @__PURE__ */ _stringFormat(ZodCustomStringFormat, "hostname", hostname$1, _params);
80672
80910
  }
80673
80911
  function hex(_params) {
80674
- return /* @__PURE__ */ _stringFormat(ZodCustomStringFormat, "hex", hex$3, _params);
80912
+ return /* @__PURE__ */ _stringFormat(ZodCustomStringFormat, "hex", hex$2, _params);
80675
80913
  }
80676
80914
  function hash(alg, params) {
80677
80915
  const format = `${alg}_${params?.enc ?? "hex"}`;
@@ -81561,7 +81799,7 @@ var ProviderConfigFieldsZod = object({
81561
81799
  providerBindings: record(string(), ProviderBindingConfigZod).default({})
81562
81800
  });
81563
81801
  //#endregion
81564
- //#region ../../node_modules/.pnpm/@ariestools+actor@1.3.0_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3__@opentelemetry+api@1.9.1_zod@4.4.3/node_modules/@ariestools/actor/dist/neutral/index.mjs
81802
+ //#region ../../node_modules/.pnpm/@ariestools+actor@1.3.0_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3__@opentelemetry+api@1.9.1_zod@4.4.3/node_modules/@ariestools/actor/dist/neutral/index.mjs
81565
81803
  var __defProp = Object.defineProperty;
81566
81804
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
81567
81805
  var __decorateClass = (decorators, target, key, kind) => {
@@ -81814,7 +82052,7 @@ ${err.stack}` : "";
81814
82052
  return String(err);
81815
82053
  }
81816
82054
  //#endregion
81817
- //#region ../../node_modules/.pnpm/@ariestools+actor-system@1.3.0_@ariestools+sdk@8.1.8_@opentelemetry+api@1.9.1_zod@4.4.3_5374244572814f47c6382c850d661068/node_modules/@ariestools/actor-system/dist/neutral/index.mjs
82055
+ //#region ../../node_modules/.pnpm/@ariestools+actor-system@1.3.0_@ariestools+sdk@8.1.9_@opentelemetry+api@1.9.1_zod@4.4.3_99589d3d6b11ec18e4a82403e89fc88c/node_modules/@ariestools/actor-system/dist/neutral/index.mjs
81818
82056
  var ActorSystemSelectionZod = strictObject({
81819
82057
  config: unknown().optional(),
81820
82058
  host: string().min(1).optional(),
@@ -81835,7 +82073,7 @@ var ActorSystemSelectionZod = strictObject({
81835
82073
  });
81836
82074
  ProviderConfigFieldsZod.extend({ actors: array(ActorSystemSelectionZod).default([]) });
81837
82075
  //#endregion
81838
- //#region ../../node_modules/.pnpm/@ariestools+cli-kit@1.2.3_@ariestools+actor-model@1.3.0_@ariestools+sdk@8.1.8_@opentele_e6dacac6295f7f446cf52dba46bacf15/node_modules/@ariestools/cli-kit/dist/node/index.mjs
82076
+ //#region ../../node_modules/.pnpm/@ariestools+cli-kit@1.2.3_@ariestools+actor-model@1.3.0_@ariestools+sdk@8.1.9_@opentele_37d14ccaa0e676b5af069d15cfccb615/node_modules/@ariestools/cli-kit/dist/node/index.mjs
81839
82077
  async function runServiceUntilInterrupt(host, stop) {
81840
82078
  await new Promise((resolve, reject) => {
81841
82079
  const dispose = host.onInterrupt(async () => {
@@ -81850,7 +82088,7 @@ async function runServiceUntilInterrupt(host, stop) {
81850
82088
  });
81851
82089
  }
81852
82090
  //#endregion
81853
- //#region ../../node_modules/.pnpm/@ariestools+cli-kit-node@1.2.3_@ariestools+actor-model@1.3.0_@ariestools+sdk@8.1.8_@ope_99519b4cdd6c77abe2e2f6ffb79ab7a0/node_modules/@ariestools/cli-kit-node/dist/node/index.mjs
82091
+ //#region ../../node_modules/.pnpm/@ariestools+cli-kit-node@1.2.3_@ariestools+actor-model@1.3.0_@ariestools+sdk@8.1.9_@ope_f0f84665a1b2bbb14be202b1673ab94b/node_modules/@ariestools/cli-kit-node/dist/node/index.mjs
81854
82092
  function resolveEnvironmentValue(key, layers) {
81855
82093
  for (const layer of layers) {
81856
82094
  if (!Object.hasOwn(layer, key)) continue;
@@ -86561,7 +86799,7 @@ var require_avvio = /* @__PURE__ */ __commonJSMin(((exports, module) => {
86561
86799
  module.exports = Boot;
86562
86800
  }));
86563
86801
  //#endregion
86564
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/symbols.js
86802
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/symbols.js
86565
86803
  var require_symbols$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
86566
86804
  module.exports = {
86567
86805
  kAvvioBoot: Symbol("fastify.avvioBoot"),
@@ -86629,7 +86867,7 @@ var require_symbols$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
86629
86867
  };
86630
86868
  }));
86631
86869
  //#endregion
86632
- //#region ../../node_modules/.pnpm/process-warning@5.0.0/node_modules/process-warning/index.js
86870
+ //#region ../../node_modules/.pnpm/process-warning@5.1.0/node_modules/process-warning/index.js
86633
86871
  var require_process_warning$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
86634
86872
  const { format: format$1 } = __require$1("node:util");
86635
86873
  /**
@@ -86646,6 +86884,7 @@ var require_process_warning$1 = /* @__PURE__ */ __commonJSMin(((exports, module)
86646
86884
  * @property {string} message - The warning message.
86647
86885
  * @property {boolean} emitted - Indicates if the warning has been emitted.
86648
86886
  * @property {function} format - Formats the warning message.
86887
+ * @returns {boolean} emit - Indicates if the warning has been emitted by this call.
86649
86888
  */
86650
86889
  /**
86651
86890
  * Options for creating a process warning.
@@ -86660,7 +86899,57 @@ var require_process_warning$1 = /* @__PURE__ */ __commonJSMin(((exports, module)
86660
86899
  * @typedef {Object} ProcessWarning
86661
86900
  * @property {function} createWarning - Creates a warning item.
86662
86901
  * @property {function} createDeprecation - Creates a deprecation warning item.
86902
+ * @property {function} spyWarning - Spy a warning item.
86903
+ */
86904
+ /**
86905
+ * Represents the spy data.
86906
+ * @typedef {Object} WarningSpyData
86907
+ * @property {object} calls - Arguments of WarningItem calls with.
86908
+ * @property {function} callCount - Number of counts called the WarningItem.
86909
+ * @property {function} reset - Reset the calls data and state of WarningItem.
86910
+ * @property {function} restore - Remove spy from WarningItem.
86663
86911
  */
86912
+ const kWarningFn = Symbol("process-warning.fn");
86913
+ const kWarningSpyData = Symbol("process-warning.spyData");
86914
+ /**
86915
+ * Spy a warning item.
86916
+ * @function
86917
+ * @memberof processWarning
86918
+ * @param {WarningItem} warning - The warning item to spy.
86919
+ * @returns {WarningSpyData} The created spy data.
86920
+ */
86921
+ function spyWarning(warning) {
86922
+ if (warning[kWarningSpyData] === null) {
86923
+ const warningFn = warning[kWarningFn];
86924
+ warning[kWarningFn] = function(a, b, c) {
86925
+ const args = [];
86926
+ if (c) args.push(a, b, c);
86927
+ else if (b) args.push(a, b);
86928
+ else if (a) args.push(a);
86929
+ warning[kWarningSpyData].calls.push({
86930
+ arguments: args,
86931
+ result: warningFn(a, b, c)
86932
+ });
86933
+ };
86934
+ const spyData = {
86935
+ calls: [],
86936
+ callCount() {
86937
+ return spyData.calls.length;
86938
+ },
86939
+ reset() {
86940
+ warning.emitted = false;
86941
+ spyData.calls.length = 0;
86942
+ },
86943
+ restore() {
86944
+ spyData.reset();
86945
+ warning[kWarningFn] = warningFn;
86946
+ warning[kWarningSpyData] = null;
86947
+ }
86948
+ };
86949
+ warning[kWarningSpyData] = spyData;
86950
+ }
86951
+ return warning[kWarningSpyData];
86952
+ }
86664
86953
  /**
86665
86954
  * Creates a deprecation warning item.
86666
86955
  * @function
@@ -86688,20 +86977,25 @@ var require_process_warning$1 = /* @__PURE__ */ __commonJSMin(((exports, module)
86688
86977
  if (!message) throw new Error("Warning message must not be empty");
86689
86978
  if (typeof unlimited !== "boolean") throw new Error("Warning opts.unlimited must be a boolean");
86690
86979
  code = code.toUpperCase();
86691
- let warningContainer = { [name]: function(a, b, c) {
86692
- if (warning.emitted === true && warning.unlimited !== true) return;
86980
+ const warningFn = unlimited === true ? function(a, b, c) {
86693
86981
  warning.emitted = true;
86694
86982
  process.emitWarning(warning.format(a, b, c), warning.name, warning.code);
86695
- } };
86696
- if (unlimited) warningContainer = { [name]: function(a, b, c) {
86983
+ return true;
86984
+ } : function(a, b, c) {
86985
+ if (warning.emitted === true && warning.unlimited !== true) return false;
86697
86986
  warning.emitted = true;
86698
86987
  process.emitWarning(warning.format(a, b, c), warning.name, warning.code);
86699
- } };
86700
- const warning = warningContainer[name];
86988
+ return true;
86989
+ };
86990
+ const warning = { [name]: function(a, b, c) {
86991
+ return warning[kWarningFn](a, b, c);
86992
+ } }[name];
86701
86993
  warning.emitted = false;
86702
86994
  warning.message = message;
86703
86995
  warning.unlimited = unlimited;
86704
86996
  warning.code = code;
86997
+ warning[kWarningFn] = warningFn;
86998
+ warning[kWarningSpyData] = null;
86705
86999
  /**
86706
87000
  * Formats the warning message.
86707
87001
  * @param {*} [a] Possible message interpolation value.
@@ -86724,18 +87018,20 @@ var require_process_warning$1 = /* @__PURE__ */ __commonJSMin(((exports, module)
86724
87018
  * @namespace
86725
87019
  * @property {function} createWarning - Creates a warning item.
86726
87020
  * @property {function} createDeprecation - Creates a deprecation warning item.
87021
+ * @property {function} spyWarning - Spy a warning item.
86727
87022
  * @property {ProcessWarning} processWarning - Represents the process warning functionality.
86728
87023
  */
86729
87024
  const out = {
86730
87025
  createWarning,
86731
- createDeprecation
87026
+ createDeprecation,
87027
+ spyWarning
86732
87028
  };
86733
87029
  module.exports = out;
86734
87030
  module.exports.default = out;
86735
87031
  module.exports.processWarning = out;
86736
87032
  }));
86737
87033
  //#endregion
86738
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/warnings.js
87034
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/warnings.js
86739
87035
  var require_warnings = /* @__PURE__ */ __commonJSMin(((exports, module) => {
86740
87036
  const { createWarning } = require_process_warning$1();
86741
87037
  module.exports = {
@@ -86790,7 +87086,7 @@ var require_warnings = /* @__PURE__ */ __commonJSMin(((exports, module) => {
86790
87086
  };
86791
87087
  }));
86792
87088
  //#endregion
86793
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/errors.js
87089
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/errors.js
86794
87090
  var require_errors$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
86795
87091
  const createError = require_error$1();
86796
87092
  const codes = {
@@ -86944,7 +87240,7 @@ var require_errors$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
86944
87240
  };
86945
87241
  }));
86946
87242
  //#endregion
86947
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/hooks.js
87243
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/hooks.js
86948
87244
  var require_hooks = /* @__PURE__ */ __commonJSMin(((exports, module) => {
86949
87245
  const applicationHooks = [
86950
87246
  "onRoute",
@@ -87264,7 +87560,7 @@ var require_hooks = /* @__PURE__ */ __commonJSMin(((exports, module) => {
87264
87560
  };
87265
87561
  }));
87266
87562
  //#endregion
87267
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/noop-set.js
87563
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/noop-set.js
87268
87564
  var require_noop_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
87269
87565
  module.exports = function noopSet() {
87270
87566
  return {
@@ -87278,7 +87574,7 @@ var require_noop_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
87278
87574
  };
87279
87575
  }));
87280
87576
  //#endregion
87281
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/promise.js
87577
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/promise.js
87282
87578
  var require_promise = /* @__PURE__ */ __commonJSMin(((exports, module) => {
87283
87579
  const { kTestInternals } = require_symbols$1();
87284
87580
  function withResolvers() {
@@ -87298,7 +87594,7 @@ var require_promise = /* @__PURE__ */ __commonJSMin(((exports, module) => {
87298
87594
  };
87299
87595
  }));
87300
87596
  //#endregion
87301
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/server.js
87597
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/server.js
87302
87598
  var require_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
87303
87599
  const http$3 = __require$1("node:http");
87304
87600
  const https$1 = __require$1("node:https");
@@ -87575,7 +87871,7 @@ var require_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
87575
87871
  }
87576
87872
  }));
87577
87873
  //#endregion
87578
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/error-status.js
87874
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/error-status.js
87579
87875
  var require_error_status = /* @__PURE__ */ __commonJSMin(((exports, module) => {
87580
87876
  const { kReplyHasStatusCode } = require_symbols$1();
87581
87877
  function setErrorStatusCode(reply, err) {
@@ -87587,7 +87883,7 @@ var require_error_status = /* @__PURE__ */ __commonJSMin(((exports, module) => {
87587
87883
  module.exports = { setErrorStatusCode };
87588
87884
  }));
87589
87885
  //#endregion
87590
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/wrap-thenable.js
87886
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/wrap-thenable.js
87591
87887
  var require_wrap_thenable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
87592
87888
  const { kReplyIsError, kReplyHijacked } = require_symbols$1();
87593
87889
  const { setErrorStatusCode } = require_error_status();
@@ -87631,7 +87927,7 @@ var require_wrap_thenable = /* @__PURE__ */ __commonJSMin(((exports, module) =>
87631
87927
  module.exports = wrapThenable;
87632
87928
  }));
87633
87929
  //#endregion
87634
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/validation.js
87930
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/validation.js
87635
87931
  var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
87636
87932
  const { kSchemaHeaders: headersSchema, kSchemaParams: paramsSchema, kSchemaQuerystring: querystringSchema, kSchemaBody: bodySchema, kSchemaResponse: responseSchema } = require_symbols$1();
87637
87933
  const scChecker = /^[1-5](?:\d{2}|xx)$|^default$/;
@@ -88422,7 +88718,7 @@ var require_toad_cache = /* @__PURE__ */ __commonJSMin(((exports) => {
88422
88718
  exports.LruObjectHitStatistics = LruObjectHitStatistics;
88423
88719
  }));
88424
88720
  //#endregion
88425
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/content-type.js
88721
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/content-type.js
88426
88722
  var require_content_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88427
88723
  const { LruMap: Lru } = require_toad_cache();
88428
88724
  /**
@@ -88560,6 +88856,7 @@ var require_content_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88560
88856
  return this.#valid;
88561
88857
  }
88562
88858
  get mediaType() {
88859
+ if (this.#valid === false) return void 0;
88563
88860
  return `${this.#type}/${this.#subtype}`;
88564
88861
  }
88565
88862
  get type() {
@@ -88591,7 +88888,7 @@ var require_content_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88591
88888
  };
88592
88889
  }));
88593
88890
  //#endregion
88594
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/handle-request.js
88891
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/handle-request.js
88595
88892
  var require_handle_request = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88596
88893
  const diagnostics$1 = __require$1("node:diagnostics_channel");
88597
88894
  const wrapThenable = require_wrap_thenable();
@@ -88743,7 +89040,7 @@ var require_handle_request = /* @__PURE__ */ __commonJSMin(((exports, module) =>
88743
89040
  };
88744
89041
  }));
88745
89042
  //#endregion
88746
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/config-validator.js
89043
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/config-validator.js
88747
89044
  /* c8 ignore start */
88748
89045
  var require_config_validator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88749
89046
  module.exports = validate10;
@@ -90185,7 +90482,7 @@ var require_rfdc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90185
90482
  }
90186
90483
  }));
90187
90484
  //#endregion
90188
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/initial-config-validation.js
90485
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/initial-config-validation.js
90189
90486
  var require_initial_config_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90190
90487
  const validate = require_config_validator$1();
90191
90488
  const deepClone = require_rfdc()({
@@ -90216,7 +90513,7 @@ var require_initial_config_validation = /* @__PURE__ */ __commonJSMin(((exports,
90216
90513
  module.exports.utils = { deepFreezeObject };
90217
90514
  }));
90218
90515
  //#endregion
90219
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/log-controller.js
90516
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/log-controller.js
90220
90517
  var require_log_controller = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90221
90518
  const { defaultInitOptions } = require_initial_config_validation();
90222
90519
  /**
@@ -93949,7 +94246,7 @@ var require_pino = /* @__PURE__ */ __commonJSMin(((exports, module) => {
93949
94246
  module.exports.pino = pino;
93950
94247
  }));
93951
94248
  //#endregion
93952
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/logger-pino.js
94249
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/logger-pino.js
93953
94250
  var require_logger_pino = /* @__PURE__ */ __commonJSMin(((exports, module) => {
93954
94251
  /**
93955
94252
  * Code imported from `pino-http`
@@ -93999,7 +94296,7 @@ var require_logger_pino = /* @__PURE__ */ __commonJSMin(((exports, module) => {
93999
94296
  };
94000
94297
  }));
94001
94298
  //#endregion
94002
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/logger-factory.js
94299
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/logger-factory.js
94003
94300
  var require_logger_factory = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94004
94301
  const { performance: performance$1 } = __require$1("node:perf_hooks");
94005
94302
  const { FST_ERR_LOG_LOGGER_AND_LOGGER_INSTANCE_PROVIDED, FST_ERR_LOG_INVALID_LOGGER_CONFIG, FST_ERR_LOG_INVALID_LOGGER_INSTANCE, FST_ERR_LOG_INVALID_LOGGER, FST_ERR_LOG_INVALID_LOG_CONTROLLER } = require_errors$1();
@@ -94118,7 +94415,7 @@ var require_logger_factory = /* @__PURE__ */ __commonJSMin(((exports, module) =>
94118
94415
  };
94119
94416
  }));
94120
94417
  //#endregion
94121
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/schemas.js
94418
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/schemas.js
94122
94419
  var require_schemas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94123
94420
  const fastClone = require_rfdc()({
94124
94421
  circles: false,
@@ -94348,7 +94645,7 @@ var require_serializer$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94348
94645
  };
94349
94646
  }));
94350
94647
  //#endregion
94351
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/error-serializer.js
94648
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/error-serializer.js
94352
94649
  /* c8 ignore start */
94353
94650
  var require_error_serializer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94354
94651
  module.exports = function anonymous(validator, serializer) {
@@ -94413,7 +94710,7 @@ var require_error_serializer = /* @__PURE__ */ __commonJSMin(((exports, module)
94413
94710
  }));
94414
94711
  /* c8 ignore stop */
94415
94712
  //#endregion
94416
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/error-handler.js
94713
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/error-handler.js
94417
94714
  var require_error_handler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94418
94715
  const statusCodes = __require$1("node:http").STATUS_CODES;
94419
94716
  const wrapThenable = require_wrap_thenable();
@@ -94521,7 +94818,7 @@ var require_error_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
94521
94818
  };
94522
94819
  }));
94523
94820
  //#endregion
94524
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/decorate.js
94821
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/decorate.js
94525
94822
  var require_decorate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94526
94823
  const { kReply, kRequest, kState, kHasBeenDecorated } = require_symbols$1();
94527
94824
  const { FST_ERR_DEC_ALREADY_PRESENT, FST_ERR_DEC_MISSING_DEPENDENCY, FST_ERR_DEC_AFTER_START, FST_ERR_DEC_REFERENCE_TYPE, FST_ERR_DEC_DEPENDENCY_INVALID_TYPE, FST_ERR_DEC_UNDECLARED } = require_errors$1();
@@ -94620,7 +94917,7 @@ var require_decorate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94620
94917
  };
94621
94918
  }));
94622
94919
  //#endregion
94623
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/reply.js
94920
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/reply.js
94624
94921
  var require_reply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94625
94922
  const eos = __require$1("node:stream").finished;
94626
94923
  const { kFourOhFourContext, kReplyErrorHandlerCalled, kReplyHijacked, kReplyStartTime, kReplyEndTime, kReplySerializer, kReplySerializerDefault, kReplyIsError, kReplyHeaders, kReplyTrailers, kReplyHasStatusCode, kReplyIsRunningOnErrorHook, kReplyNextErrorHandler, kSchemaResponse, kReplyCacheSerializeFns, kSchemaController, kOptions, kRouteContext, kTimeoutTimer, kOnAbort, kRequestSignal, kLogController } = require_symbols$1();
@@ -94666,6 +94963,10 @@ var require_reply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94666
94963
  if (this[kReplyStartTime] === void 0) return 0;
94667
94964
  return (this[kReplyEndTime] || now()) - this[kReplyStartTime];
94668
94965
  } },
94966
+ mediaType: { get() {
94967
+ const contentTypeHeader = this[kReplyHeaders]["content-type"];
94968
+ return ContentType.from(contentTypeHeader).mediaType;
94969
+ } },
94669
94970
  server: { get() {
94670
94971
  return this.request[kRouteContext].server;
94671
94972
  } },
@@ -94778,7 +95079,9 @@ var require_reply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94778
95079
  return this[kReplyHeaders][key] !== void 0 || this.raw.hasHeader(key);
94779
95080
  };
94780
95081
  Reply.prototype.removeHeader = function(key) {
94781
- delete this[kReplyHeaders][key.toLowerCase()];
95082
+ key = key.toLowerCase();
95083
+ delete this[kReplyHeaders][key];
95084
+ if (!this.raw.headersSent) this.raw.removeHeader(key);
94782
95085
  return this;
94783
95086
  };
94784
95087
  Reply.prototype.header = function(key, value = "") {
@@ -96482,7 +96785,7 @@ var require_proxy_addr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96482
96785
  }
96483
96786
  }));
96484
96787
  //#endregion
96485
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/request.js
96788
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/request.js
96486
96789
  var require_request$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96487
96790
  const proxyAddr = require_proxy_addr();
96488
96791
  const { kHasBeenDecorated, kSchemaBody, kSchemaHeaders, kSchemaParams, kSchemaQuerystring, kSchemaController, kOptions, kRequestCacheValidateFns, kRequestContentType, kRouteContext, kRequestOriginalUrl, kRequestSignal, kOnAbort } = require_symbols$1();
@@ -96728,7 +97031,7 @@ var require_request$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96728
97031
  module.exports.buildRequest = buildRequest;
96729
97032
  }));
96730
97033
  //#endregion
96731
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/context.js
97034
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/context.js
96732
97035
  var require_context = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96733
97036
  const { kFourOhFourContext, kReplySerializerDefault, kSchemaErrorFormatter, kErrorHandler, kChildLoggerFactory, kReply, kRequest, kBodyLimit, kLogLevel, kContentTypeParser, kRouteByFastify, kRequestCacheValidateFns, kReplyCacheSerializeFns, kHandlerTimeout } = require_symbols$1();
96734
97037
  function Context({ schema, handler, config, childLoggerFactory, errorHandler, bodyLimit, logLevel, logSerializers, attachValidation, validatorCompiler, serializerCompiler, replySerializer, schemaErrorFormatter, exposeHeadRoute, prefixTrailingSlash, server, isFastify, handlerTimeout }) {
@@ -96892,7 +97195,7 @@ var require_secure_json_parse = /* @__PURE__ */ __commonJSMin(((exports, module)
96892
97195
  module.exports.scan = filter;
96893
97196
  }));
96894
97197
  //#endregion
96895
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/content-type-parser.js
97198
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/content-type-parser.js
96896
97199
  var require_content_type_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96897
97200
  const { AsyncResource } = __require$1("node:async_hooks");
96898
97201
  const { FifoMap: Fifo } = require_toad_cache();
@@ -103400,7 +103703,7 @@ var require_fast_json_stringify_compiler = /* @__PURE__ */ __commonJSMin(((expor
103400
103703
  module.exports.StandaloneSerializer = StandaloneSerializer;
103401
103704
  }));
103402
103705
  //#endregion
103403
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/schema-controller.js
103706
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/schema-controller.js
103404
103707
  var require_schema_controller = /* @__PURE__ */ __commonJSMin(((exports, module) => {
103405
103708
  const { buildSchemas } = require_schemas();
103406
103709
  /**
@@ -104895,7 +105198,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
104895
105198
  };
104896
105199
  }));
104897
105200
  //#endregion
104898
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/plugin-utils.js
105201
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/plugin-utils.js
104899
105202
  var require_plugin_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
104900
105203
  const semver = require_semver();
104901
105204
  const assert$6 = __require$1("node:assert");
@@ -105003,7 +105306,7 @@ var require_plugin_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
105003
105306
  };
105004
105307
  }));
105005
105308
  //#endregion
105006
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/req-id-gen-factory.js
105309
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/req-id-gen-factory.js
105007
105310
  var require_req_id_gen_factory = /* @__PURE__ */ __commonJSMin(((exports, module) => {
105008
105311
  const { kGenReqId } = require_symbols$1();
105009
105312
  /**
@@ -107946,7 +108249,7 @@ var require_find_my_way = /* @__PURE__ */ __commonJSMin(((exports, module) => {
107946
108249
  }
107947
108250
  }));
107948
108251
  //#endregion
107949
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/head-route.js
108252
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/head-route.js
107950
108253
  var require_head_route = /* @__PURE__ */ __commonJSMin(((exports, module) => {
107951
108254
  function headRouteOnSendHandler(req, reply, payload, done) {
107952
108255
  if (payload === void 0) {
@@ -107980,7 +108283,7 @@ var require_head_route = /* @__PURE__ */ __commonJSMin(((exports, module) => {
107980
108283
  module.exports = { parseHeadOnSendHandlers };
107981
108284
  }));
107982
108285
  //#endregion
107983
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/route.js
108286
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/route.js
107984
108287
  var require_route = /* @__PURE__ */ __commonJSMin(((exports, module) => {
107985
108288
  const FindMyWay = require_find_my_way();
107986
108289
  const Context = require_context();
@@ -108409,7 +108712,7 @@ var require_route = /* @__PURE__ */ __commonJSMin(((exports, module) => {
108409
108712
  };
108410
108713
  }));
108411
108714
  //#endregion
108412
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/four-oh-four.js
108715
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/four-oh-four.js
108413
108716
  var require_four_oh_four = /* @__PURE__ */ __commonJSMin(((exports, module) => {
108414
108717
  const FindMyWay = require_find_my_way();
108415
108718
  const Reply = require_reply();
@@ -108545,7 +108848,7 @@ var require_four_oh_four = /* @__PURE__ */ __commonJSMin(((exports, module) => {
108545
108848
  module.exports = fourOhFour;
108546
108849
  }));
108547
108850
  //#endregion
108548
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/lib/plugin-override.js
108851
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/lib/plugin-override.js
108549
108852
  var require_plugin_override = /* @__PURE__ */ __commonJSMin(((exports, module) => {
108550
108853
  const { kAvvioBoot, kChildren, kRoutePrefix, kLogLevel, kLogSerializers, kHooks, kSchemaController, kContentTypeParser, kReply, kRequest, kFourOhFour, kPluginNameChain, kErrorHandlerAlreadySet } = require_symbols$1();
108551
108854
  const Reply = require_reply();
@@ -110652,9 +110955,9 @@ var require_light_my_request = /* @__PURE__ */ __commonJSMin(((exports, module)
110652
110955
  module.exports.isInjection = isInjection;
110653
110956
  }));
110654
110957
  //#endregion
110655
- //#region ../../node_modules/.pnpm/fastify@5.11.3/node_modules/fastify/fastify.js
110958
+ //#region ../../node_modules/.pnpm/fastify@5.12.0/node_modules/fastify/fastify.js
110656
110959
  var require_fastify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
110657
- const VERSION = "5.11.3";
110960
+ const VERSION = "5.12.0";
110658
110961
  const Avvio = require_avvio();
110659
110962
  const http$1 = __require$1("node:http");
110660
110963
  const diagnostics = __require$1("node:diagnostics_channel");