@learncard/render-method-plugin 4.0.2 → 4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  DEFAULT_TEMPLATE_ID: () => DEFAULT_TEMPLATE_ID,
25
25
  RENDER_METHOD_CONTEXT: () => RENDER_METHOD_CONTEXT,
26
26
  attachRenderMethod: () => attachRenderMethod,
@@ -36,7 +36,7 @@ __export(src_exports, {
36
36
  isSvgMustacheRenderMethod: () => isSvgMustacheRenderMethod,
37
37
  isTemplateRenderMethod: () => isTemplateRenderMethod
38
38
  });
39
- module.exports = __toCommonJS(src_exports);
39
+ module.exports = __toCommonJS(index_exports);
40
40
 
41
41
  // src/types.ts
42
42
  var RENDER_METHOD_CONTEXT = "https://digitalbazaar.github.io/vc-render-method-context/contexts/v2rc2.jsonld";
@@ -46,6 +46,7 @@ var NOTHING = Symbol.for("immer-nothing");
46
46
  var DRAFTABLE = Symbol.for("immer-draftable");
47
47
  var DRAFT_STATE = Symbol.for("immer-state");
48
48
  var errors = true ? [
49
+ // All error codes, starting by 0:
49
50
  function(plugin) {
50
51
  return `The plugin for '${plugin}' has not been loaded into Immer. To enable the plugin, import and call \`enable${plugin}()\` when initializing your application.`;
51
52
  },
@@ -72,6 +73,8 @@ var errors = true ? [
72
73
  function(thing) {
73
74
  return `'original' expects a draft, got: ${thing}`;
74
75
  }
76
+ // Note: if more errors are added, the errorOffset in Patches.ts should be increased
77
+ // See Patches.ts for additional errors
75
78
  ] : [];
76
79
  function die(error51, ...args) {
77
80
  if (true) {
@@ -191,6 +194,7 @@ function shallowCopy(base, strict) {
191
194
  descriptors[key] = {
192
195
  configurable: true,
193
196
  writable: true,
197
+ // could live with !!desc.set as well here...
194
198
  enumerable: desc.enumerable,
195
199
  value: base[key]
196
200
  };
@@ -255,6 +259,8 @@ function createScope(parent_, immer_) {
255
259
  drafts_: [],
256
260
  parent_,
257
261
  immer_,
262
+ // Whenever the modified draft contains a draft from another scope, we
263
+ // need to prevent auto-freezing so the unowned draft can be finalized.
258
264
  canAutoFreeze_: true,
259
265
  unfinalizedDrafts_: 0
260
266
  };
@@ -395,7 +401,8 @@ function finalizeProperty(rootScope, parentState, targetObject, prop, childValue
395
401
  if (childValue === targetObject)
396
402
  die(5);
397
403
  if (isDraft(childValue)) {
398
- const path = rootPath && parentState && parentState.type_ !== 3 && !has(parentState.assigned_, prop) ? rootPath.concat(prop) : void 0;
404
+ const path = rootPath && parentState && parentState.type_ !== 3 && // Set objects are atomic since they have no keys.
405
+ !has(parentState.assigned_, prop) ? rootPath.concat(prop) : void 0;
399
406
  const res = finalize(rootScope, childValue, path);
400
407
  set(targetObject, prop, res);
401
408
  if (isDraft(res)) {
@@ -428,14 +435,24 @@ function createProxyProxy(base, parent) {
428
435
  const isArray = Array.isArray(base);
429
436
  const state = {
430
437
  type_: isArray ? 1 : 0,
438
+ // Track which produce call this is associated with.
431
439
  scope_: parent ? parent.scope_ : getCurrentScope(),
440
+ // True for both shallow and deep changes.
432
441
  modified_: false,
442
+ // Used during finalization.
433
443
  finalized_: false,
444
+ // Track which properties have been assigned (true) or deleted (false).
434
445
  assigned_: {},
446
+ // The parent draft state.
435
447
  parent_: parent,
448
+ // The base state.
436
449
  base_: base,
450
+ // The base proxy.
437
451
  draft_: null,
452
+ // set below
453
+ // The base copy with any updated values.
438
454
  copy_: null,
455
+ // Called by the `produce` function.
439
456
  revoke_: null,
440
457
  isManual_: false
441
458
  };
@@ -494,7 +511,9 @@ var objectTraps = {
494
511
  prepareCopy(state);
495
512
  markChanged(state);
496
513
  }
497
- if (state.copy_[prop] === value && (value !== void 0 || prop in state.copy_) || Number.isNaN(value) && Number.isNaN(state.copy_[prop]))
514
+ if (state.copy_[prop] === value && // special case: handle new props with value 'undefined'
515
+ (value !== void 0 || prop in state.copy_) || // special case: NaN
516
+ Number.isNaN(value) && Number.isNaN(state.copy_[prop]))
498
517
  return true;
499
518
  state.copy_[prop] = value;
500
519
  state.assigned_[prop] = true;
@@ -513,6 +532,8 @@ var objectTraps = {
513
532
  }
514
533
  return true;
515
534
  },
535
+ // Note: We never coerce `desc.value` into an Immer draft, because we can't make
536
+ // the same guarantee in ES5 mode.
516
537
  getOwnPropertyDescriptor(state, prop) {
517
538
  const owner = latest(state);
518
539
  const desc = Reflect.getOwnPropertyDescriptor(owner, prop);
@@ -560,7 +581,11 @@ function peek(draft, prop) {
560
581
  __name(peek, "peek");
561
582
  function readPropFromProto(state, source, prop) {
562
583
  const desc = getDescriptorFromProto(source, prop);
563
- return desc ? `value` in desc ? desc.value : desc.get?.call(state.draft_) : void 0;
584
+ return desc ? `value` in desc ? desc.value : (
585
+ // This is a very special case, if the prop is a getter defined by the
586
+ // prototype, we should invoke it with the draft as context!
587
+ desc.get?.call(state.draft_)
588
+ ) : void 0;
564
589
  }
565
590
  __name(readPropFromProto, "readPropFromProto");
566
591
  function getDescriptorFromProto(source, prop) {
@@ -594,7 +619,8 @@ function prepareCopy(state) {
594
619
  }
595
620
  }
596
621
  __name(prepareCopy, "prepareCopy");
597
- var Immer2 = /* @__PURE__ */ __name(class {
622
+ var _a;
623
+ var Immer2 = (_a = class {
598
624
  constructor(config2) {
599
625
  this.autoFreeze_ = true;
600
626
  this.useStrictShallowCopy_ = false;
@@ -683,12 +709,28 @@ var Immer2 = /* @__PURE__ */ __name(class {
683
709
  usePatchesInScope(scope, patchListener);
684
710
  return processResult(void 0, scope);
685
711
  }
712
+ /**
713
+ * Pass true to automatically freeze all copies created by Immer.
714
+ *
715
+ * By default, auto-freezing is enabled.
716
+ */
686
717
  setAutoFreeze(value) {
687
718
  this.autoFreeze_ = value;
688
719
  }
720
+ /**
721
+ * Pass true to enable strict shallow copy.
722
+ *
723
+ * By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties.
724
+ */
689
725
  setUseStrictShallowCopy(value) {
690
726
  this.useStrictShallowCopy_ = value;
691
727
  }
728
+ /**
729
+ * Pass false to use faster iteration that skips non-enumerable properties
730
+ * but still handles symbols for compatibility.
731
+ *
732
+ * By default, strict iteration is enabled (includes all own properties).
733
+ */
692
734
  setUseStrictIteration(value) {
693
735
  this.useStrictIteration_ = value;
694
736
  }
@@ -716,7 +758,7 @@ var Immer2 = /* @__PURE__ */ __name(class {
716
758
  (draft) => applyPatchesImpl(draft, patches)
717
759
  );
718
760
  }
719
- }, "Immer2");
761
+ }, __name(_a, "Immer2"), _a);
720
762
  function createProxy(value, parent) {
721
763
  const draft = isMap(value) ? getPlugin("MapSet").proxyMap_(value, parent) : isSet(value) ? getPlugin("MapSet").proxySet_(value, parent) : createProxyProxy(value, parent);
722
764
  const scope = parent ? parent.scope_ : getCurrentScope();
@@ -1284,10 +1326,11 @@ __export(core_exports2, {
1284
1326
  });
1285
1327
 
1286
1328
  // ../../../node_modules/zod/v4/core/core.js
1287
- var _a;
1329
+ var _a2;
1288
1330
  var NEVER = /* @__PURE__ */ Object.freeze({
1289
1331
  status: "aborted"
1290
1332
  });
1333
+ // @__NO_SIDE_EFFECTS__
1291
1334
  function $constructor(name, initializer3, params) {
1292
1335
  function init(inst, def) {
1293
1336
  if (!inst._zod) {
@@ -1316,15 +1359,16 @@ function $constructor(name, initializer3, params) {
1316
1359
  }
1317
1360
  __name(init, "init");
1318
1361
  const Parent = params?.Parent ?? Object;
1319
- class Definition extends Parent {
1320
- }
1321
- __name(Definition, "Definition");
1362
+ const _Definition = class _Definition extends Parent {
1363
+ };
1364
+ __name(_Definition, "Definition");
1365
+ let Definition = _Definition;
1322
1366
  Object.defineProperty(Definition, "name", { value: name });
1323
1367
  function _(def) {
1324
- var _a4;
1368
+ var _a5;
1325
1369
  const inst = params?.Parent ? new Definition() : this;
1326
1370
  init(inst, def);
1327
- (_a4 = inst._zod).deferred ?? (_a4.deferred = []);
1371
+ (_a5 = inst._zod).deferred ?? (_a5.deferred = []);
1328
1372
  for (const fn of inst._zod.deferred) {
1329
1373
  fn();
1330
1374
  }
@@ -1333,31 +1377,33 @@ function $constructor(name, initializer3, params) {
1333
1377
  __name(_, "_");
1334
1378
  Object.defineProperty(_, "init", { value: init });
1335
1379
  Object.defineProperty(_, Symbol.hasInstance, {
1336
- value: (inst) => {
1380
+ value: /* @__PURE__ */ __name((inst) => {
1337
1381
  if (params?.Parent && inst instanceof params.Parent)
1338
1382
  return true;
1339
1383
  return inst?._zod?.traits?.has(name);
1340
- }
1384
+ }, "value")
1341
1385
  });
1342
1386
  Object.defineProperty(_, "name", { value: name });
1343
1387
  return _;
1344
1388
  }
1345
1389
  __name($constructor, "$constructor");
1346
1390
  var $brand = Symbol("zod_brand");
1347
- var $ZodAsyncError = class extends Error {
1391
+ var _$ZodAsyncError = class _$ZodAsyncError extends Error {
1348
1392
  constructor() {
1349
1393
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
1350
1394
  }
1351
1395
  };
1352
- __name($ZodAsyncError, "$ZodAsyncError");
1353
- var $ZodEncodeError = class extends Error {
1396
+ __name(_$ZodAsyncError, "$ZodAsyncError");
1397
+ var $ZodAsyncError = _$ZodAsyncError;
1398
+ var _$ZodEncodeError = class _$ZodEncodeError extends Error {
1354
1399
  constructor(name) {
1355
1400
  super(`Encountered unidirectional transform during encode: ${name}`);
1356
1401
  this.name = "ZodEncodeError";
1357
1402
  }
1358
1403
  };
1359
- __name($ZodEncodeError, "$ZodEncodeError");
1360
- (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
1404
+ __name(_$ZodEncodeError, "$ZodEncodeError");
1405
+ var $ZodEncodeError = _$ZodEncodeError;
1406
+ (_a2 = globalThis).__zod_globalConfig ?? (_a2.__zod_globalConfig = {});
1361
1407
  var globalConfig = globalThis.__zod_globalConfig;
1362
1408
  function config(newConfig) {
1363
1409
  if (newConfig)
@@ -1517,6 +1563,7 @@ function defineLazy(object2, key, getter) {
1517
1563
  set(v) {
1518
1564
  Object.defineProperty(object2, key, {
1519
1565
  value: v
1566
+ // configurable: true,
1520
1567
  });
1521
1568
  },
1522
1569
  configurable: true
@@ -1713,7 +1760,7 @@ function normalizeParams(_params) {
1713
1760
  if (!params)
1714
1761
  return {};
1715
1762
  if (typeof params === "string")
1716
- return { error: () => params };
1763
+ return { error: /* @__PURE__ */ __name(() => params, "error") };
1717
1764
  if (params?.message !== void 0) {
1718
1765
  if (params?.error !== void 0)
1719
1766
  throw new Error("Cannot specify both `message` and `error` params");
@@ -1721,7 +1768,7 @@ function normalizeParams(_params) {
1721
1768
  }
1722
1769
  delete params.message;
1723
1770
  if (typeof params.error === "string")
1724
- return { ...params, error: () => params.error };
1771
+ return { ...params, error: /* @__PURE__ */ __name(() => params.error, "error") };
1725
1772
  return params;
1726
1773
  }
1727
1774
  __name(normalizeParams, "normalizeParams");
@@ -1987,8 +2034,8 @@ function explicitlyAborted(x, startIndex = 0) {
1987
2034
  __name(explicitlyAborted, "explicitlyAborted");
1988
2035
  function prefixIssues(path, issues) {
1989
2036
  return issues.map((iss) => {
1990
- var _a4;
1991
- (_a4 = iss).path ?? (_a4.path = []);
2037
+ var _a5;
2038
+ (_a5 = iss).path ?? (_a5.path = []);
1992
2039
  iss.path.unshift(path);
1993
2040
  return iss;
1994
2041
  });
@@ -2111,11 +2158,12 @@ function uint8ArrayToHex(bytes) {
2111
2158
  return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
2112
2159
  }
2113
2160
  __name(uint8ArrayToHex, "uint8ArrayToHex");
2114
- var Class = class {
2161
+ var _Class = class _Class {
2115
2162
  constructor(..._args) {
2116
2163
  }
2117
2164
  };
2118
- __name(Class, "Class");
2165
+ __name(_Class, "Class");
2166
+ var Class = _Class;
2119
2167
 
2120
2168
  // ../../../node_modules/zod/v4/core/errors.js
2121
2169
  var initializer = /* @__PURE__ */ __name((inst, def) => {
@@ -2130,7 +2178,7 @@ var initializer = /* @__PURE__ */ __name((inst, def) => {
2130
2178
  });
2131
2179
  inst.message = JSON.stringify(def, jsonStringifyReplacer, 2);
2132
2180
  Object.defineProperty(inst, "toString", {
2133
- value: () => inst.message,
2181
+ value: /* @__PURE__ */ __name(() => inst.message, "value"),
2134
2182
  enumerable: false
2135
2183
  });
2136
2184
  }, "initializer");
@@ -2190,7 +2238,7 @@ __name(formatError, "formatError");
2190
2238
  function treeifyError(error51, mapper = (issue2) => issue2.message) {
2191
2239
  const result = { errors: [] };
2192
2240
  const processError = /* @__PURE__ */ __name((error52, path = []) => {
2193
- var _a4, _b;
2241
+ var _a5, _b;
2194
2242
  for (const issue2 of error52.issues) {
2195
2243
  if (issue2.code === "invalid_union" && issue2.errors.length) {
2196
2244
  issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
@@ -2211,7 +2259,7 @@ function treeifyError(error51, mapper = (issue2) => issue2.message) {
2211
2259
  const terminal = i === fullpath.length - 1;
2212
2260
  if (typeof el === "string") {
2213
2261
  curr.properties ?? (curr.properties = {});
2214
- (_a4 = curr.properties)[el] ?? (_a4[el] = { errors: [] });
2262
+ (_a5 = curr.properties)[el] ?? (_a5[el] = { errors: [] });
2215
2263
  curr = curr.properties[el];
2216
2264
  } else {
2217
2265
  curr.items ?? (curr.items = []);
@@ -2516,10 +2564,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
2516
2564
 
2517
2565
  // ../../../node_modules/zod/v4/core/checks.js
2518
2566
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
2519
- var _a4;
2567
+ var _a5;
2520
2568
  inst._zod ?? (inst._zod = {});
2521
2569
  inst._zod.def = def;
2522
- (_a4 = inst._zod).onattach ?? (_a4.onattach = []);
2570
+ (_a5 = inst._zod).onattach ?? (_a5.onattach = []);
2523
2571
  });
2524
2572
  var numericOriginMap = {
2525
2573
  number: "number",
@@ -2585,8 +2633,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
2585
2633
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
2586
2634
  $ZodCheck.init(inst, def);
2587
2635
  inst._zod.onattach.push((inst2) => {
2588
- var _a4;
2589
- (_a4 = inst2._zod.bag).multipleOf ?? (_a4.multipleOf = def.value);
2636
+ var _a5;
2637
+ (_a5 = inst2._zod.bag).multipleOf ?? (_a5.multipleOf = def.value);
2590
2638
  });
2591
2639
  inst._zod.check = (payload) => {
2592
2640
  if (typeof payload.value !== typeof def.value)
@@ -2719,9 +2767,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
2719
2767
  };
2720
2768
  });
2721
2769
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
2722
- var _a4;
2770
+ var _a5;
2723
2771
  $ZodCheck.init(inst, def);
2724
- (_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
2772
+ (_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
2725
2773
  const val = payload.value;
2726
2774
  return !nullish(val) && val.size !== void 0;
2727
2775
  });
@@ -2747,9 +2795,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
2747
2795
  };
2748
2796
  });
2749
2797
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
2750
- var _a4;
2798
+ var _a5;
2751
2799
  $ZodCheck.init(inst, def);
2752
- (_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
2800
+ (_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
2753
2801
  const val = payload.value;
2754
2802
  return !nullish(val) && val.size !== void 0;
2755
2803
  });
@@ -2775,9 +2823,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
2775
2823
  };
2776
2824
  });
2777
2825
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
2778
- var _a4;
2826
+ var _a5;
2779
2827
  $ZodCheck.init(inst, def);
2780
- (_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
2828
+ (_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
2781
2829
  const val = payload.value;
2782
2830
  return !nullish(val) && val.size !== void 0;
2783
2831
  });
@@ -2805,9 +2853,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
2805
2853
  };
2806
2854
  });
2807
2855
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
2808
- var _a4;
2856
+ var _a5;
2809
2857
  $ZodCheck.init(inst, def);
2810
- (_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
2858
+ (_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
2811
2859
  const val = payload.value;
2812
2860
  return !nullish(val) && val.length !== void 0;
2813
2861
  });
@@ -2834,9 +2882,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
2834
2882
  };
2835
2883
  });
2836
2884
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
2837
- var _a4;
2885
+ var _a5;
2838
2886
  $ZodCheck.init(inst, def);
2839
- (_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
2887
+ (_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
2840
2888
  const val = payload.value;
2841
2889
  return !nullish(val) && val.length !== void 0;
2842
2890
  });
@@ -2863,9 +2911,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
2863
2911
  };
2864
2912
  });
2865
2913
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
2866
- var _a4;
2914
+ var _a5;
2867
2915
  $ZodCheck.init(inst, def);
2868
- (_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
2916
+ (_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
2869
2917
  const val = payload.value;
2870
2918
  return !nullish(val) && val.length !== void 0;
2871
2919
  });
@@ -2894,7 +2942,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
2894
2942
  };
2895
2943
  });
2896
2944
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
2897
- var _a4, _b;
2945
+ var _a5, _b;
2898
2946
  $ZodCheck.init(inst, def);
2899
2947
  inst._zod.onattach.push((inst2) => {
2900
2948
  const bag = inst2._zod.bag;
@@ -2905,7 +2953,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
2905
2953
  }
2906
2954
  });
2907
2955
  if (def.pattern)
2908
- (_a4 = inst._zod).check ?? (_a4.check = (payload) => {
2956
+ (_a5 = inst._zod).check ?? (_a5.check = (payload) => {
2909
2957
  def.pattern.lastIndex = 0;
2910
2958
  if (def.pattern.test(payload.value))
2911
2959
  return;
@@ -3064,7 +3112,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
3064
3112
  });
3065
3113
 
3066
3114
  // ../../../node_modules/zod/v4/core/doc.js
3067
- var Doc = class {
3115
+ var _Doc = class _Doc {
3068
3116
  constructor(args = []) {
3069
3117
  this.content = [];
3070
3118
  this.indent = 0;
@@ -3098,7 +3146,8 @@ var Doc = class {
3098
3146
  return new F(...args, lines.join("\n"));
3099
3147
  }
3100
3148
  };
3101
- __name(Doc, "Doc");
3149
+ __name(_Doc, "Doc");
3150
+ var Doc = _Doc;
3102
3151
 
3103
3152
  // ../../../node_modules/zod/v4/core/versions.js
3104
3153
  var version = {
@@ -3109,7 +3158,7 @@ var version = {
3109
3158
 
3110
3159
  // ../../../node_modules/zod/v4/core/schemas.js
3111
3160
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3112
- var _a4;
3161
+ var _a5;
3113
3162
  inst ?? (inst = {});
3114
3163
  inst._zod.def = def;
3115
3164
  inst._zod.bag = inst._zod.bag || {};
@@ -3124,7 +3173,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3124
3173
  }
3125
3174
  }
3126
3175
  if (checks.length === 0) {
3127
- (_a4 = inst._zod).deferred ?? (_a4.deferred = []);
3176
+ (_a5 = inst._zod).deferred ?? (_a5.deferred = []);
3128
3177
  inst._zod.deferred?.push(() => {
3129
3178
  inst._zod.run = inst._zod.parse;
3130
3179
  });
@@ -3207,14 +3256,14 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3207
3256
  };
3208
3257
  }
3209
3258
  defineLazy(inst, "~standard", () => ({
3210
- validate: (value) => {
3259
+ validate: /* @__PURE__ */ __name((value) => {
3211
3260
  try {
3212
3261
  const r = safeParse(inst, value);
3213
3262
  return r.success ? { value: r.data } : { issues: r.error?.issues };
3214
3263
  } catch (_) {
3215
3264
  return safeParseAsync(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues });
3216
3265
  }
3217
- },
3266
+ }, "validate"),
3218
3267
  vendor: "zod",
3219
3268
  version: 1
3220
3269
  }));
@@ -3857,13 +3906,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3857
3906
  if (!desc?.get) {
3858
3907
  const sh = def.shape;
3859
3908
  Object.defineProperty(def, "shape", {
3860
- get: () => {
3909
+ get: /* @__PURE__ */ __name(() => {
3861
3910
  const newSh = { ...sh };
3862
3911
  Object.defineProperty(def, "shape", {
3863
3912
  value: newSh
3864
3913
  });
3865
3914
  return newSh;
3866
- }
3915
+ }, "get")
3867
3916
  });
3868
3917
  }
3869
3918
  const _normalized = cached(() => normalizeDef(def));
@@ -5211,8 +5260,11 @@ function handleRefineResult(result, payload, input, inst) {
5211
5260
  code: "custom",
5212
5261
  input,
5213
5262
  inst,
5263
+ // incorporates params.error into issue reporting
5214
5264
  path: [...inst._zod.def.path ?? []],
5265
+ // incorporates params.error into issue reporting
5215
5266
  continue: !inst._zod.def.abort
5267
+ // params: inst._zod.def.params,
5216
5268
  };
5217
5269
  if (inst._zod.def.params)
5218
5270
  _iss.params = inst._zod.def.params;
@@ -5874,6 +5926,7 @@ var error5 = /* @__PURE__ */ __name(() => {
5874
5926
  return `Clau inv\xE0lida a ${issue2.origin}`;
5875
5927
  case "invalid_union":
5876
5928
  return "Entrada inv\xE0lida";
5929
+ // Could also be "Tipus d'unió invàlid" but "Entrada invàlida" is more general
5877
5930
  case "invalid_element":
5878
5931
  return `Element inv\xE0lid a ${issue2.origin}`;
5879
5932
  default:
@@ -6388,7 +6441,9 @@ var error10 = /* @__PURE__ */ __name(() => {
6388
6441
  template_literal: "input"
6389
6442
  };
6390
6443
  const TypeDictionary = {
6444
+ // Compatibility: "nan" -> "NaN" for display
6391
6445
  nan: "NaN"
6446
+ // All other type names omitted - they fall back to raw values via ?? operator
6392
6447
  };
6393
6448
  return (issue2) => {
6394
6449
  switch (issue2.code) {
@@ -7201,6 +7256,7 @@ var error17 = /* @__PURE__ */ __name(() => {
7201
7256
  array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
7202
7257
  set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
7203
7258
  number: { unit: "", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" }
7259
+ // no unit
7204
7260
  };
7205
7261
  const typeEntry = /* @__PURE__ */ __name((t) => t ? TypeNames[t] : void 0, "typeEntry");
7206
7262
  const typeLabel = /* @__PURE__ */ __name((t) => {
@@ -11279,10 +11335,10 @@ function yo_default() {
11279
11335
  __name(yo_default, "default");
11280
11336
 
11281
11337
  // ../../../node_modules/zod/v4/core/registries.js
11282
- var _a2;
11338
+ var _a3;
11283
11339
  var $output = Symbol("ZodOutput");
11284
11340
  var $input = Symbol("ZodInput");
11285
- var $ZodRegistry = class {
11341
+ var _$ZodRegistry = class _$ZodRegistry {
11286
11342
  constructor() {
11287
11343
  this._map = /* @__PURE__ */ new WeakMap();
11288
11344
  this._idmap = /* @__PURE__ */ new Map();
@@ -11322,15 +11378,17 @@ var $ZodRegistry = class {
11322
11378
  return this._map.has(schema);
11323
11379
  }
11324
11380
  };
11325
- __name($ZodRegistry, "$ZodRegistry");
11381
+ __name(_$ZodRegistry, "$ZodRegistry");
11382
+ var $ZodRegistry = _$ZodRegistry;
11326
11383
  function registry() {
11327
11384
  return new $ZodRegistry();
11328
11385
  }
11329
11386
  __name(registry, "registry");
11330
- (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
11387
+ (_a3 = globalThis).__zod_globalRegistry ?? (_a3.__zod_globalRegistry = registry());
11331
11388
  var globalRegistry = globalThis.__zod_globalRegistry;
11332
11389
 
11333
11390
  // ../../../node_modules/zod/v4/core/api.js
11391
+ // @__NO_SIDE_EFFECTS__
11334
11392
  function _string(Class2, params) {
11335
11393
  return new Class2({
11336
11394
  type: "string",
@@ -11338,6 +11396,7 @@ function _string(Class2, params) {
11338
11396
  });
11339
11397
  }
11340
11398
  __name(_string, "_string");
11399
+ // @__NO_SIDE_EFFECTS__
11341
11400
  function _coercedString(Class2, params) {
11342
11401
  return new Class2({
11343
11402
  type: "string",
@@ -11346,6 +11405,7 @@ function _coercedString(Class2, params) {
11346
11405
  });
11347
11406
  }
11348
11407
  __name(_coercedString, "_coercedString");
11408
+ // @__NO_SIDE_EFFECTS__
11349
11409
  function _email(Class2, params) {
11350
11410
  return new Class2({
11351
11411
  type: "string",
@@ -11356,6 +11416,7 @@ function _email(Class2, params) {
11356
11416
  });
11357
11417
  }
11358
11418
  __name(_email, "_email");
11419
+ // @__NO_SIDE_EFFECTS__
11359
11420
  function _guid(Class2, params) {
11360
11421
  return new Class2({
11361
11422
  type: "string",
@@ -11366,6 +11427,7 @@ function _guid(Class2, params) {
11366
11427
  });
11367
11428
  }
11368
11429
  __name(_guid, "_guid");
11430
+ // @__NO_SIDE_EFFECTS__
11369
11431
  function _uuid(Class2, params) {
11370
11432
  return new Class2({
11371
11433
  type: "string",
@@ -11376,6 +11438,7 @@ function _uuid(Class2, params) {
11376
11438
  });
11377
11439
  }
11378
11440
  __name(_uuid, "_uuid");
11441
+ // @__NO_SIDE_EFFECTS__
11379
11442
  function _uuidv4(Class2, params) {
11380
11443
  return new Class2({
11381
11444
  type: "string",
@@ -11387,6 +11450,7 @@ function _uuidv4(Class2, params) {
11387
11450
  });
11388
11451
  }
11389
11452
  __name(_uuidv4, "_uuidv4");
11453
+ // @__NO_SIDE_EFFECTS__
11390
11454
  function _uuidv6(Class2, params) {
11391
11455
  return new Class2({
11392
11456
  type: "string",
@@ -11398,6 +11462,7 @@ function _uuidv6(Class2, params) {
11398
11462
  });
11399
11463
  }
11400
11464
  __name(_uuidv6, "_uuidv6");
11465
+ // @__NO_SIDE_EFFECTS__
11401
11466
  function _uuidv7(Class2, params) {
11402
11467
  return new Class2({
11403
11468
  type: "string",
@@ -11409,6 +11474,7 @@ function _uuidv7(Class2, params) {
11409
11474
  });
11410
11475
  }
11411
11476
  __name(_uuidv7, "_uuidv7");
11477
+ // @__NO_SIDE_EFFECTS__
11412
11478
  function _url(Class2, params) {
11413
11479
  return new Class2({
11414
11480
  type: "string",
@@ -11419,6 +11485,7 @@ function _url(Class2, params) {
11419
11485
  });
11420
11486
  }
11421
11487
  __name(_url, "_url");
11488
+ // @__NO_SIDE_EFFECTS__
11422
11489
  function _emoji2(Class2, params) {
11423
11490
  return new Class2({
11424
11491
  type: "string",
@@ -11429,6 +11496,7 @@ function _emoji2(Class2, params) {
11429
11496
  });
11430
11497
  }
11431
11498
  __name(_emoji2, "_emoji");
11499
+ // @__NO_SIDE_EFFECTS__
11432
11500
  function _nanoid(Class2, params) {
11433
11501
  return new Class2({
11434
11502
  type: "string",
@@ -11439,6 +11507,7 @@ function _nanoid(Class2, params) {
11439
11507
  });
11440
11508
  }
11441
11509
  __name(_nanoid, "_nanoid");
11510
+ // @__NO_SIDE_EFFECTS__
11442
11511
  function _cuid(Class2, params) {
11443
11512
  return new Class2({
11444
11513
  type: "string",
@@ -11449,6 +11518,7 @@ function _cuid(Class2, params) {
11449
11518
  });
11450
11519
  }
11451
11520
  __name(_cuid, "_cuid");
11521
+ // @__NO_SIDE_EFFECTS__
11452
11522
  function _cuid2(Class2, params) {
11453
11523
  return new Class2({
11454
11524
  type: "string",
@@ -11459,6 +11529,7 @@ function _cuid2(Class2, params) {
11459
11529
  });
11460
11530
  }
11461
11531
  __name(_cuid2, "_cuid2");
11532
+ // @__NO_SIDE_EFFECTS__
11462
11533
  function _ulid(Class2, params) {
11463
11534
  return new Class2({
11464
11535
  type: "string",
@@ -11469,6 +11540,7 @@ function _ulid(Class2, params) {
11469
11540
  });
11470
11541
  }
11471
11542
  __name(_ulid, "_ulid");
11543
+ // @__NO_SIDE_EFFECTS__
11472
11544
  function _xid(Class2, params) {
11473
11545
  return new Class2({
11474
11546
  type: "string",
@@ -11479,6 +11551,7 @@ function _xid(Class2, params) {
11479
11551
  });
11480
11552
  }
11481
11553
  __name(_xid, "_xid");
11554
+ // @__NO_SIDE_EFFECTS__
11482
11555
  function _ksuid(Class2, params) {
11483
11556
  return new Class2({
11484
11557
  type: "string",
@@ -11489,6 +11562,7 @@ function _ksuid(Class2, params) {
11489
11562
  });
11490
11563
  }
11491
11564
  __name(_ksuid, "_ksuid");
11565
+ // @__NO_SIDE_EFFECTS__
11492
11566
  function _ipv4(Class2, params) {
11493
11567
  return new Class2({
11494
11568
  type: "string",
@@ -11499,6 +11573,7 @@ function _ipv4(Class2, params) {
11499
11573
  });
11500
11574
  }
11501
11575
  __name(_ipv4, "_ipv4");
11576
+ // @__NO_SIDE_EFFECTS__
11502
11577
  function _ipv6(Class2, params) {
11503
11578
  return new Class2({
11504
11579
  type: "string",
@@ -11509,6 +11584,7 @@ function _ipv6(Class2, params) {
11509
11584
  });
11510
11585
  }
11511
11586
  __name(_ipv6, "_ipv6");
11587
+ // @__NO_SIDE_EFFECTS__
11512
11588
  function _mac(Class2, params) {
11513
11589
  return new Class2({
11514
11590
  type: "string",
@@ -11519,6 +11595,7 @@ function _mac(Class2, params) {
11519
11595
  });
11520
11596
  }
11521
11597
  __name(_mac, "_mac");
11598
+ // @__NO_SIDE_EFFECTS__
11522
11599
  function _cidrv4(Class2, params) {
11523
11600
  return new Class2({
11524
11601
  type: "string",
@@ -11529,6 +11606,7 @@ function _cidrv4(Class2, params) {
11529
11606
  });
11530
11607
  }
11531
11608
  __name(_cidrv4, "_cidrv4");
11609
+ // @__NO_SIDE_EFFECTS__
11532
11610
  function _cidrv6(Class2, params) {
11533
11611
  return new Class2({
11534
11612
  type: "string",
@@ -11539,6 +11617,7 @@ function _cidrv6(Class2, params) {
11539
11617
  });
11540
11618
  }
11541
11619
  __name(_cidrv6, "_cidrv6");
11620
+ // @__NO_SIDE_EFFECTS__
11542
11621
  function _base64(Class2, params) {
11543
11622
  return new Class2({
11544
11623
  type: "string",
@@ -11549,6 +11628,7 @@ function _base64(Class2, params) {
11549
11628
  });
11550
11629
  }
11551
11630
  __name(_base64, "_base64");
11631
+ // @__NO_SIDE_EFFECTS__
11552
11632
  function _base64url(Class2, params) {
11553
11633
  return new Class2({
11554
11634
  type: "string",
@@ -11559,6 +11639,7 @@ function _base64url(Class2, params) {
11559
11639
  });
11560
11640
  }
11561
11641
  __name(_base64url, "_base64url");
11642
+ // @__NO_SIDE_EFFECTS__
11562
11643
  function _e164(Class2, params) {
11563
11644
  return new Class2({
11564
11645
  type: "string",
@@ -11569,6 +11650,7 @@ function _e164(Class2, params) {
11569
11650
  });
11570
11651
  }
11571
11652
  __name(_e164, "_e164");
11653
+ // @__NO_SIDE_EFFECTS__
11572
11654
  function _jwt(Class2, params) {
11573
11655
  return new Class2({
11574
11656
  type: "string",
@@ -11586,6 +11668,7 @@ var TimePrecision = {
11586
11668
  Millisecond: 3,
11587
11669
  Microsecond: 6
11588
11670
  };
11671
+ // @__NO_SIDE_EFFECTS__
11589
11672
  function _isoDateTime(Class2, params) {
11590
11673
  return new Class2({
11591
11674
  type: "string",
@@ -11598,6 +11681,7 @@ function _isoDateTime(Class2, params) {
11598
11681
  });
11599
11682
  }
11600
11683
  __name(_isoDateTime, "_isoDateTime");
11684
+ // @__NO_SIDE_EFFECTS__
11601
11685
  function _isoDate(Class2, params) {
11602
11686
  return new Class2({
11603
11687
  type: "string",
@@ -11607,6 +11691,7 @@ function _isoDate(Class2, params) {
11607
11691
  });
11608
11692
  }
11609
11693
  __name(_isoDate, "_isoDate");
11694
+ // @__NO_SIDE_EFFECTS__
11610
11695
  function _isoTime(Class2, params) {
11611
11696
  return new Class2({
11612
11697
  type: "string",
@@ -11617,6 +11702,7 @@ function _isoTime(Class2, params) {
11617
11702
  });
11618
11703
  }
11619
11704
  __name(_isoTime, "_isoTime");
11705
+ // @__NO_SIDE_EFFECTS__
11620
11706
  function _isoDuration(Class2, params) {
11621
11707
  return new Class2({
11622
11708
  type: "string",
@@ -11626,6 +11712,7 @@ function _isoDuration(Class2, params) {
11626
11712
  });
11627
11713
  }
11628
11714
  __name(_isoDuration, "_isoDuration");
11715
+ // @__NO_SIDE_EFFECTS__
11629
11716
  function _number(Class2, params) {
11630
11717
  return new Class2({
11631
11718
  type: "number",
@@ -11634,6 +11721,7 @@ function _number(Class2, params) {
11634
11721
  });
11635
11722
  }
11636
11723
  __name(_number, "_number");
11724
+ // @__NO_SIDE_EFFECTS__
11637
11725
  function _coercedNumber(Class2, params) {
11638
11726
  return new Class2({
11639
11727
  type: "number",
@@ -11643,6 +11731,7 @@ function _coercedNumber(Class2, params) {
11643
11731
  });
11644
11732
  }
11645
11733
  __name(_coercedNumber, "_coercedNumber");
11734
+ // @__NO_SIDE_EFFECTS__
11646
11735
  function _int(Class2, params) {
11647
11736
  return new Class2({
11648
11737
  type: "number",
@@ -11653,6 +11742,7 @@ function _int(Class2, params) {
11653
11742
  });
11654
11743
  }
11655
11744
  __name(_int, "_int");
11745
+ // @__NO_SIDE_EFFECTS__
11656
11746
  function _float32(Class2, params) {
11657
11747
  return new Class2({
11658
11748
  type: "number",
@@ -11663,6 +11753,7 @@ function _float32(Class2, params) {
11663
11753
  });
11664
11754
  }
11665
11755
  __name(_float32, "_float32");
11756
+ // @__NO_SIDE_EFFECTS__
11666
11757
  function _float64(Class2, params) {
11667
11758
  return new Class2({
11668
11759
  type: "number",
@@ -11673,6 +11764,7 @@ function _float64(Class2, params) {
11673
11764
  });
11674
11765
  }
11675
11766
  __name(_float64, "_float64");
11767
+ // @__NO_SIDE_EFFECTS__
11676
11768
  function _int32(Class2, params) {
11677
11769
  return new Class2({
11678
11770
  type: "number",
@@ -11683,6 +11775,7 @@ function _int32(Class2, params) {
11683
11775
  });
11684
11776
  }
11685
11777
  __name(_int32, "_int32");
11778
+ // @__NO_SIDE_EFFECTS__
11686
11779
  function _uint32(Class2, params) {
11687
11780
  return new Class2({
11688
11781
  type: "number",
@@ -11693,6 +11786,7 @@ function _uint32(Class2, params) {
11693
11786
  });
11694
11787
  }
11695
11788
  __name(_uint32, "_uint32");
11789
+ // @__NO_SIDE_EFFECTS__
11696
11790
  function _boolean(Class2, params) {
11697
11791
  return new Class2({
11698
11792
  type: "boolean",
@@ -11700,6 +11794,7 @@ function _boolean(Class2, params) {
11700
11794
  });
11701
11795
  }
11702
11796
  __name(_boolean, "_boolean");
11797
+ // @__NO_SIDE_EFFECTS__
11703
11798
  function _coercedBoolean(Class2, params) {
11704
11799
  return new Class2({
11705
11800
  type: "boolean",
@@ -11708,6 +11803,7 @@ function _coercedBoolean(Class2, params) {
11708
11803
  });
11709
11804
  }
11710
11805
  __name(_coercedBoolean, "_coercedBoolean");
11806
+ // @__NO_SIDE_EFFECTS__
11711
11807
  function _bigint(Class2, params) {
11712
11808
  return new Class2({
11713
11809
  type: "bigint",
@@ -11715,6 +11811,7 @@ function _bigint(Class2, params) {
11715
11811
  });
11716
11812
  }
11717
11813
  __name(_bigint, "_bigint");
11814
+ // @__NO_SIDE_EFFECTS__
11718
11815
  function _coercedBigint(Class2, params) {
11719
11816
  return new Class2({
11720
11817
  type: "bigint",
@@ -11723,6 +11820,7 @@ function _coercedBigint(Class2, params) {
11723
11820
  });
11724
11821
  }
11725
11822
  __name(_coercedBigint, "_coercedBigint");
11823
+ // @__NO_SIDE_EFFECTS__
11726
11824
  function _int64(Class2, params) {
11727
11825
  return new Class2({
11728
11826
  type: "bigint",
@@ -11733,6 +11831,7 @@ function _int64(Class2, params) {
11733
11831
  });
11734
11832
  }
11735
11833
  __name(_int64, "_int64");
11834
+ // @__NO_SIDE_EFFECTS__
11736
11835
  function _uint64(Class2, params) {
11737
11836
  return new Class2({
11738
11837
  type: "bigint",
@@ -11743,6 +11842,7 @@ function _uint64(Class2, params) {
11743
11842
  });
11744
11843
  }
11745
11844
  __name(_uint64, "_uint64");
11845
+ // @__NO_SIDE_EFFECTS__
11746
11846
  function _symbol(Class2, params) {
11747
11847
  return new Class2({
11748
11848
  type: "symbol",
@@ -11750,6 +11850,7 @@ function _symbol(Class2, params) {
11750
11850
  });
11751
11851
  }
11752
11852
  __name(_symbol, "_symbol");
11853
+ // @__NO_SIDE_EFFECTS__
11753
11854
  function _undefined2(Class2, params) {
11754
11855
  return new Class2({
11755
11856
  type: "undefined",
@@ -11757,6 +11858,7 @@ function _undefined2(Class2, params) {
11757
11858
  });
11758
11859
  }
11759
11860
  __name(_undefined2, "_undefined");
11861
+ // @__NO_SIDE_EFFECTS__
11760
11862
  function _null2(Class2, params) {
11761
11863
  return new Class2({
11762
11864
  type: "null",
@@ -11764,18 +11866,21 @@ function _null2(Class2, params) {
11764
11866
  });
11765
11867
  }
11766
11868
  __name(_null2, "_null");
11869
+ // @__NO_SIDE_EFFECTS__
11767
11870
  function _any(Class2) {
11768
11871
  return new Class2({
11769
11872
  type: "any"
11770
11873
  });
11771
11874
  }
11772
11875
  __name(_any, "_any");
11876
+ // @__NO_SIDE_EFFECTS__
11773
11877
  function _unknown(Class2) {
11774
11878
  return new Class2({
11775
11879
  type: "unknown"
11776
11880
  });
11777
11881
  }
11778
11882
  __name(_unknown, "_unknown");
11883
+ // @__NO_SIDE_EFFECTS__
11779
11884
  function _never(Class2, params) {
11780
11885
  return new Class2({
11781
11886
  type: "never",
@@ -11783,6 +11888,7 @@ function _never(Class2, params) {
11783
11888
  });
11784
11889
  }
11785
11890
  __name(_never, "_never");
11891
+ // @__NO_SIDE_EFFECTS__
11786
11892
  function _void(Class2, params) {
11787
11893
  return new Class2({
11788
11894
  type: "void",
@@ -11790,6 +11896,7 @@ function _void(Class2, params) {
11790
11896
  });
11791
11897
  }
11792
11898
  __name(_void, "_void");
11899
+ // @__NO_SIDE_EFFECTS__
11793
11900
  function _date(Class2, params) {
11794
11901
  return new Class2({
11795
11902
  type: "date",
@@ -11797,6 +11904,7 @@ function _date(Class2, params) {
11797
11904
  });
11798
11905
  }
11799
11906
  __name(_date, "_date");
11907
+ // @__NO_SIDE_EFFECTS__
11800
11908
  function _coercedDate(Class2, params) {
11801
11909
  return new Class2({
11802
11910
  type: "date",
@@ -11805,6 +11913,7 @@ function _coercedDate(Class2, params) {
11805
11913
  });
11806
11914
  }
11807
11915
  __name(_coercedDate, "_coercedDate");
11916
+ // @__NO_SIDE_EFFECTS__
11808
11917
  function _nan(Class2, params) {
11809
11918
  return new Class2({
11810
11919
  type: "nan",
@@ -11812,6 +11921,7 @@ function _nan(Class2, params) {
11812
11921
  });
11813
11922
  }
11814
11923
  __name(_nan, "_nan");
11924
+ // @__NO_SIDE_EFFECTS__
11815
11925
  function _lt(value, params) {
11816
11926
  return new $ZodCheckLessThan({
11817
11927
  check: "less_than",
@@ -11821,6 +11931,7 @@ function _lt(value, params) {
11821
11931
  });
11822
11932
  }
11823
11933
  __name(_lt, "_lt");
11934
+ // @__NO_SIDE_EFFECTS__
11824
11935
  function _lte(value, params) {
11825
11936
  return new $ZodCheckLessThan({
11826
11937
  check: "less_than",
@@ -11830,6 +11941,7 @@ function _lte(value, params) {
11830
11941
  });
11831
11942
  }
11832
11943
  __name(_lte, "_lte");
11944
+ // @__NO_SIDE_EFFECTS__
11833
11945
  function _gt(value, params) {
11834
11946
  return new $ZodCheckGreaterThan({
11835
11947
  check: "greater_than",
@@ -11839,6 +11951,7 @@ function _gt(value, params) {
11839
11951
  });
11840
11952
  }
11841
11953
  __name(_gt, "_gt");
11954
+ // @__NO_SIDE_EFFECTS__
11842
11955
  function _gte(value, params) {
11843
11956
  return new $ZodCheckGreaterThan({
11844
11957
  check: "greater_than",
@@ -11848,22 +11961,27 @@ function _gte(value, params) {
11848
11961
  });
11849
11962
  }
11850
11963
  __name(_gte, "_gte");
11964
+ // @__NO_SIDE_EFFECTS__
11851
11965
  function _positive(params) {
11852
- return _gt(0, params);
11966
+ return /* @__PURE__ */ _gt(0, params);
11853
11967
  }
11854
11968
  __name(_positive, "_positive");
11969
+ // @__NO_SIDE_EFFECTS__
11855
11970
  function _negative(params) {
11856
- return _lt(0, params);
11971
+ return /* @__PURE__ */ _lt(0, params);
11857
11972
  }
11858
11973
  __name(_negative, "_negative");
11974
+ // @__NO_SIDE_EFFECTS__
11859
11975
  function _nonpositive(params) {
11860
- return _lte(0, params);
11976
+ return /* @__PURE__ */ _lte(0, params);
11861
11977
  }
11862
11978
  __name(_nonpositive, "_nonpositive");
11979
+ // @__NO_SIDE_EFFECTS__
11863
11980
  function _nonnegative(params) {
11864
- return _gte(0, params);
11981
+ return /* @__PURE__ */ _gte(0, params);
11865
11982
  }
11866
11983
  __name(_nonnegative, "_nonnegative");
11984
+ // @__NO_SIDE_EFFECTS__
11867
11985
  function _multipleOf(value, params) {
11868
11986
  return new $ZodCheckMultipleOf({
11869
11987
  check: "multiple_of",
@@ -11872,6 +11990,7 @@ function _multipleOf(value, params) {
11872
11990
  });
11873
11991
  }
11874
11992
  __name(_multipleOf, "_multipleOf");
11993
+ // @__NO_SIDE_EFFECTS__
11875
11994
  function _maxSize(maximum, params) {
11876
11995
  return new $ZodCheckMaxSize({
11877
11996
  check: "max_size",
@@ -11880,6 +11999,7 @@ function _maxSize(maximum, params) {
11880
11999
  });
11881
12000
  }
11882
12001
  __name(_maxSize, "_maxSize");
12002
+ // @__NO_SIDE_EFFECTS__
11883
12003
  function _minSize(minimum, params) {
11884
12004
  return new $ZodCheckMinSize({
11885
12005
  check: "min_size",
@@ -11888,6 +12008,7 @@ function _minSize(minimum, params) {
11888
12008
  });
11889
12009
  }
11890
12010
  __name(_minSize, "_minSize");
12011
+ // @__NO_SIDE_EFFECTS__
11891
12012
  function _size(size, params) {
11892
12013
  return new $ZodCheckSizeEquals({
11893
12014
  check: "size_equals",
@@ -11896,6 +12017,7 @@ function _size(size, params) {
11896
12017
  });
11897
12018
  }
11898
12019
  __name(_size, "_size");
12020
+ // @__NO_SIDE_EFFECTS__
11899
12021
  function _maxLength(maximum, params) {
11900
12022
  const ch = new $ZodCheckMaxLength({
11901
12023
  check: "max_length",
@@ -11905,6 +12027,7 @@ function _maxLength(maximum, params) {
11905
12027
  return ch;
11906
12028
  }
11907
12029
  __name(_maxLength, "_maxLength");
12030
+ // @__NO_SIDE_EFFECTS__
11908
12031
  function _minLength(minimum, params) {
11909
12032
  return new $ZodCheckMinLength({
11910
12033
  check: "min_length",
@@ -11913,6 +12036,7 @@ function _minLength(minimum, params) {
11913
12036
  });
11914
12037
  }
11915
12038
  __name(_minLength, "_minLength");
12039
+ // @__NO_SIDE_EFFECTS__
11916
12040
  function _length(length, params) {
11917
12041
  return new $ZodCheckLengthEquals({
11918
12042
  check: "length_equals",
@@ -11921,6 +12045,7 @@ function _length(length, params) {
11921
12045
  });
11922
12046
  }
11923
12047
  __name(_length, "_length");
12048
+ // @__NO_SIDE_EFFECTS__
11924
12049
  function _regex(pattern, params) {
11925
12050
  return new $ZodCheckRegex({
11926
12051
  check: "string_format",
@@ -11930,6 +12055,7 @@ function _regex(pattern, params) {
11930
12055
  });
11931
12056
  }
11932
12057
  __name(_regex, "_regex");
12058
+ // @__NO_SIDE_EFFECTS__
11933
12059
  function _lowercase(params) {
11934
12060
  return new $ZodCheckLowerCase({
11935
12061
  check: "string_format",
@@ -11938,6 +12064,7 @@ function _lowercase(params) {
11938
12064
  });
11939
12065
  }
11940
12066
  __name(_lowercase, "_lowercase");
12067
+ // @__NO_SIDE_EFFECTS__
11941
12068
  function _uppercase(params) {
11942
12069
  return new $ZodCheckUpperCase({
11943
12070
  check: "string_format",
@@ -11946,6 +12073,7 @@ function _uppercase(params) {
11946
12073
  });
11947
12074
  }
11948
12075
  __name(_uppercase, "_uppercase");
12076
+ // @__NO_SIDE_EFFECTS__
11949
12077
  function _includes(includes, params) {
11950
12078
  return new $ZodCheckIncludes({
11951
12079
  check: "string_format",
@@ -11955,6 +12083,7 @@ function _includes(includes, params) {
11955
12083
  });
11956
12084
  }
11957
12085
  __name(_includes, "_includes");
12086
+ // @__NO_SIDE_EFFECTS__
11958
12087
  function _startsWith(prefix, params) {
11959
12088
  return new $ZodCheckStartsWith({
11960
12089
  check: "string_format",
@@ -11964,6 +12093,7 @@ function _startsWith(prefix, params) {
11964
12093
  });
11965
12094
  }
11966
12095
  __name(_startsWith, "_startsWith");
12096
+ // @__NO_SIDE_EFFECTS__
11967
12097
  function _endsWith(suffix, params) {
11968
12098
  return new $ZodCheckEndsWith({
11969
12099
  check: "string_format",
@@ -11973,6 +12103,7 @@ function _endsWith(suffix, params) {
11973
12103
  });
11974
12104
  }
11975
12105
  __name(_endsWith, "_endsWith");
12106
+ // @__NO_SIDE_EFFECTS__
11976
12107
  function _property(property, schema, params) {
11977
12108
  return new $ZodCheckProperty({
11978
12109
  check: "property",
@@ -11982,6 +12113,7 @@ function _property(property, schema, params) {
11982
12113
  });
11983
12114
  }
11984
12115
  __name(_property, "_property");
12116
+ // @__NO_SIDE_EFFECTS__
11985
12117
  function _mime(types, params) {
11986
12118
  return new $ZodCheckMimeType({
11987
12119
  check: "mime_type",
@@ -11990,6 +12122,7 @@ function _mime(types, params) {
11990
12122
  });
11991
12123
  }
11992
12124
  __name(_mime, "_mime");
12125
+ // @__NO_SIDE_EFFECTS__
11993
12126
  function _overwrite(tx) {
11994
12127
  return new $ZodCheckOverwrite({
11995
12128
  check: "overwrite",
@@ -11997,34 +12130,44 @@ function _overwrite(tx) {
11997
12130
  });
11998
12131
  }
11999
12132
  __name(_overwrite, "_overwrite");
12133
+ // @__NO_SIDE_EFFECTS__
12000
12134
  function _normalize(form) {
12001
- return _overwrite((input) => input.normalize(form));
12135
+ return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
12002
12136
  }
12003
12137
  __name(_normalize, "_normalize");
12138
+ // @__NO_SIDE_EFFECTS__
12004
12139
  function _trim() {
12005
- return _overwrite((input) => input.trim());
12140
+ return /* @__PURE__ */ _overwrite((input) => input.trim());
12006
12141
  }
12007
12142
  __name(_trim, "_trim");
12143
+ // @__NO_SIDE_EFFECTS__
12008
12144
  function _toLowerCase() {
12009
- return _overwrite((input) => input.toLowerCase());
12145
+ return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
12010
12146
  }
12011
12147
  __name(_toLowerCase, "_toLowerCase");
12148
+ // @__NO_SIDE_EFFECTS__
12012
12149
  function _toUpperCase() {
12013
- return _overwrite((input) => input.toUpperCase());
12150
+ return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
12014
12151
  }
12015
12152
  __name(_toUpperCase, "_toUpperCase");
12153
+ // @__NO_SIDE_EFFECTS__
12016
12154
  function _slugify() {
12017
- return _overwrite((input) => slugify(input));
12155
+ return /* @__PURE__ */ _overwrite((input) => slugify(input));
12018
12156
  }
12019
12157
  __name(_slugify, "_slugify");
12158
+ // @__NO_SIDE_EFFECTS__
12020
12159
  function _array(Class2, element, params) {
12021
12160
  return new Class2({
12022
12161
  type: "array",
12023
12162
  element,
12163
+ // get element() {
12164
+ // return element;
12165
+ // },
12024
12166
  ...normalizeParams(params)
12025
12167
  });
12026
12168
  }
12027
12169
  __name(_array, "_array");
12170
+ // @__NO_SIDE_EFFECTS__
12028
12171
  function _union(Class2, options, params) {
12029
12172
  return new Class2({
12030
12173
  type: "union",
@@ -12042,6 +12185,7 @@ function _xor(Class2, options, params) {
12042
12185
  });
12043
12186
  }
12044
12187
  __name(_xor, "_xor");
12188
+ // @__NO_SIDE_EFFECTS__
12045
12189
  function _discriminatedUnion(Class2, discriminator, options, params) {
12046
12190
  return new Class2({
12047
12191
  type: "union",
@@ -12051,6 +12195,7 @@ function _discriminatedUnion(Class2, discriminator, options, params) {
12051
12195
  });
12052
12196
  }
12053
12197
  __name(_discriminatedUnion, "_discriminatedUnion");
12198
+ // @__NO_SIDE_EFFECTS__
12054
12199
  function _intersection(Class2, left, right) {
12055
12200
  return new Class2({
12056
12201
  type: "intersection",
@@ -12059,6 +12204,7 @@ function _intersection(Class2, left, right) {
12059
12204
  });
12060
12205
  }
12061
12206
  __name(_intersection, "_intersection");
12207
+ // @__NO_SIDE_EFFECTS__
12062
12208
  function _tuple(Class2, items, _paramsOrRest, _params) {
12063
12209
  const hasRest = _paramsOrRest instanceof $ZodType;
12064
12210
  const params = hasRest ? _params : _paramsOrRest;
@@ -12071,6 +12217,7 @@ function _tuple(Class2, items, _paramsOrRest, _params) {
12071
12217
  });
12072
12218
  }
12073
12219
  __name(_tuple, "_tuple");
12220
+ // @__NO_SIDE_EFFECTS__
12074
12221
  function _record(Class2, keyType, valueType, params) {
12075
12222
  return new Class2({
12076
12223
  type: "record",
@@ -12080,6 +12227,7 @@ function _record(Class2, keyType, valueType, params) {
12080
12227
  });
12081
12228
  }
12082
12229
  __name(_record, "_record");
12230
+ // @__NO_SIDE_EFFECTS__
12083
12231
  function _map(Class2, keyType, valueType, params) {
12084
12232
  return new Class2({
12085
12233
  type: "map",
@@ -12089,6 +12237,7 @@ function _map(Class2, keyType, valueType, params) {
12089
12237
  });
12090
12238
  }
12091
12239
  __name(_map, "_map");
12240
+ // @__NO_SIDE_EFFECTS__
12092
12241
  function _set(Class2, valueType, params) {
12093
12242
  return new Class2({
12094
12243
  type: "set",
@@ -12097,6 +12246,7 @@ function _set(Class2, valueType, params) {
12097
12246
  });
12098
12247
  }
12099
12248
  __name(_set, "_set");
12249
+ // @__NO_SIDE_EFFECTS__
12100
12250
  function _enum(Class2, values, params) {
12101
12251
  const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
12102
12252
  return new Class2({
@@ -12106,6 +12256,7 @@ function _enum(Class2, values, params) {
12106
12256
  });
12107
12257
  }
12108
12258
  __name(_enum, "_enum");
12259
+ // @__NO_SIDE_EFFECTS__
12109
12260
  function _nativeEnum(Class2, entries, params) {
12110
12261
  return new Class2({
12111
12262
  type: "enum",
@@ -12114,6 +12265,7 @@ function _nativeEnum(Class2, entries, params) {
12114
12265
  });
12115
12266
  }
12116
12267
  __name(_nativeEnum, "_nativeEnum");
12268
+ // @__NO_SIDE_EFFECTS__
12117
12269
  function _literal(Class2, value, params) {
12118
12270
  return new Class2({
12119
12271
  type: "literal",
@@ -12122,6 +12274,7 @@ function _literal(Class2, value, params) {
12122
12274
  });
12123
12275
  }
12124
12276
  __name(_literal, "_literal");
12277
+ // @__NO_SIDE_EFFECTS__
12125
12278
  function _file(Class2, params) {
12126
12279
  return new Class2({
12127
12280
  type: "file",
@@ -12129,6 +12282,7 @@ function _file(Class2, params) {
12129
12282
  });
12130
12283
  }
12131
12284
  __name(_file, "_file");
12285
+ // @__NO_SIDE_EFFECTS__
12132
12286
  function _transform(Class2, fn) {
12133
12287
  return new Class2({
12134
12288
  type: "transform",
@@ -12136,6 +12290,7 @@ function _transform(Class2, fn) {
12136
12290
  });
12137
12291
  }
12138
12292
  __name(_transform, "_transform");
12293
+ // @__NO_SIDE_EFFECTS__
12139
12294
  function _optional(Class2, innerType) {
12140
12295
  return new Class2({
12141
12296
  type: "optional",
@@ -12143,6 +12298,7 @@ function _optional(Class2, innerType) {
12143
12298
  });
12144
12299
  }
12145
12300
  __name(_optional, "_optional");
12301
+ // @__NO_SIDE_EFFECTS__
12146
12302
  function _nullable(Class2, innerType) {
12147
12303
  return new Class2({
12148
12304
  type: "nullable",
@@ -12150,6 +12306,7 @@ function _nullable(Class2, innerType) {
12150
12306
  });
12151
12307
  }
12152
12308
  __name(_nullable, "_nullable");
12309
+ // @__NO_SIDE_EFFECTS__
12153
12310
  function _default(Class2, innerType, defaultValue) {
12154
12311
  return new Class2({
12155
12312
  type: "default",
@@ -12160,6 +12317,7 @@ function _default(Class2, innerType, defaultValue) {
12160
12317
  });
12161
12318
  }
12162
12319
  __name(_default, "_default");
12320
+ // @__NO_SIDE_EFFECTS__
12163
12321
  function _nonoptional(Class2, innerType, params) {
12164
12322
  return new Class2({
12165
12323
  type: "nonoptional",
@@ -12168,6 +12326,7 @@ function _nonoptional(Class2, innerType, params) {
12168
12326
  });
12169
12327
  }
12170
12328
  __name(_nonoptional, "_nonoptional");
12329
+ // @__NO_SIDE_EFFECTS__
12171
12330
  function _success(Class2, innerType) {
12172
12331
  return new Class2({
12173
12332
  type: "success",
@@ -12175,6 +12334,7 @@ function _success(Class2, innerType) {
12175
12334
  });
12176
12335
  }
12177
12336
  __name(_success, "_success");
12337
+ // @__NO_SIDE_EFFECTS__
12178
12338
  function _catch(Class2, innerType, catchValue) {
12179
12339
  return new Class2({
12180
12340
  type: "catch",
@@ -12183,6 +12343,7 @@ function _catch(Class2, innerType, catchValue) {
12183
12343
  });
12184
12344
  }
12185
12345
  __name(_catch, "_catch");
12346
+ // @__NO_SIDE_EFFECTS__
12186
12347
  function _pipe(Class2, in_, out) {
12187
12348
  return new Class2({
12188
12349
  type: "pipe",
@@ -12191,6 +12352,7 @@ function _pipe(Class2, in_, out) {
12191
12352
  });
12192
12353
  }
12193
12354
  __name(_pipe, "_pipe");
12355
+ // @__NO_SIDE_EFFECTS__
12194
12356
  function _readonly(Class2, innerType) {
12195
12357
  return new Class2({
12196
12358
  type: "readonly",
@@ -12198,6 +12360,7 @@ function _readonly(Class2, innerType) {
12198
12360
  });
12199
12361
  }
12200
12362
  __name(_readonly, "_readonly");
12363
+ // @__NO_SIDE_EFFECTS__
12201
12364
  function _templateLiteral(Class2, parts, params) {
12202
12365
  return new Class2({
12203
12366
  type: "template_literal",
@@ -12206,6 +12369,7 @@ function _templateLiteral(Class2, parts, params) {
12206
12369
  });
12207
12370
  }
12208
12371
  __name(_templateLiteral, "_templateLiteral");
12372
+ // @__NO_SIDE_EFFECTS__
12209
12373
  function _lazy(Class2, getter) {
12210
12374
  return new Class2({
12211
12375
  type: "lazy",
@@ -12213,6 +12377,7 @@ function _lazy(Class2, getter) {
12213
12377
  });
12214
12378
  }
12215
12379
  __name(_lazy, "_lazy");
12380
+ // @__NO_SIDE_EFFECTS__
12216
12381
  function _promise(Class2, innerType) {
12217
12382
  return new Class2({
12218
12383
  type: "promise",
@@ -12220,6 +12385,7 @@ function _promise(Class2, innerType) {
12220
12385
  });
12221
12386
  }
12222
12387
  __name(_promise, "_promise");
12388
+ // @__NO_SIDE_EFFECTS__
12223
12389
  function _custom(Class2, fn, _params) {
12224
12390
  const norm = normalizeParams(_params);
12225
12391
  norm.abort ?? (norm.abort = true);
@@ -12232,6 +12398,7 @@ function _custom(Class2, fn, _params) {
12232
12398
  return schema;
12233
12399
  }
12234
12400
  __name(_custom, "_custom");
12401
+ // @__NO_SIDE_EFFECTS__
12235
12402
  function _refine(Class2, fn, _params) {
12236
12403
  const schema = new Class2({
12237
12404
  type: "custom",
@@ -12242,8 +12409,9 @@ function _refine(Class2, fn, _params) {
12242
12409
  return schema;
12243
12410
  }
12244
12411
  __name(_refine, "_refine");
12412
+ // @__NO_SIDE_EFFECTS__
12245
12413
  function _superRefine(fn, params) {
12246
- const ch = _check((payload) => {
12414
+ const ch = /* @__PURE__ */ _check((payload) => {
12247
12415
  payload.addIssue = (issue2) => {
12248
12416
  if (typeof issue2 === "string") {
12249
12417
  payload.issues.push(issue(issue2, payload.value, ch._zod.def));
@@ -12263,6 +12431,7 @@ function _superRefine(fn, params) {
12263
12431
  return ch;
12264
12432
  }
12265
12433
  __name(_superRefine, "_superRefine");
12434
+ // @__NO_SIDE_EFFECTS__
12266
12435
  function _check(fn, params) {
12267
12436
  const ch = new $ZodCheck({
12268
12437
  check: "custom",
@@ -12272,6 +12441,7 @@ function _check(fn, params) {
12272
12441
  return ch;
12273
12442
  }
12274
12443
  __name(_check, "_check");
12444
+ // @__NO_SIDE_EFFECTS__
12275
12445
  function describe(description) {
12276
12446
  const ch = new $ZodCheck({ check: "describe" });
12277
12447
  ch._zod.onattach = [
@@ -12285,6 +12455,7 @@ function describe(description) {
12285
12455
  return ch;
12286
12456
  }
12287
12457
  __name(describe, "describe");
12458
+ // @__NO_SIDE_EFFECTS__
12288
12459
  function meta(metadata) {
12289
12460
  const ch = new $ZodCheck({ check: "meta" });
12290
12461
  ch._zod.onattach = [
@@ -12298,6 +12469,7 @@ function meta(metadata) {
12298
12469
  return ch;
12299
12470
  }
12300
12471
  __name(meta, "meta");
12472
+ // @__NO_SIDE_EFFECTS__
12301
12473
  function _stringbool(Classes, _params) {
12302
12474
  const params = normalizeParams(_params);
12303
12475
  let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
@@ -12317,7 +12489,7 @@ function _stringbool(Classes, _params) {
12317
12489
  type: "pipe",
12318
12490
  in: stringSchema,
12319
12491
  out: booleanSchema,
12320
- transform: (input, payload) => {
12492
+ transform: /* @__PURE__ */ __name(((input, payload) => {
12321
12493
  let data = input;
12322
12494
  if (params.case !== "sensitive")
12323
12495
  data = data.toLowerCase();
@@ -12336,19 +12508,20 @@ function _stringbool(Classes, _params) {
12336
12508
  });
12337
12509
  return {};
12338
12510
  }
12339
- },
12340
- reverseTransform: (input, _payload) => {
12511
+ }), "transform"),
12512
+ reverseTransform: /* @__PURE__ */ __name(((input, _payload) => {
12341
12513
  if (input === true) {
12342
12514
  return truthyArray[0] || "true";
12343
12515
  } else {
12344
12516
  return falsyArray[0] || "false";
12345
12517
  }
12346
- },
12518
+ }), "reverseTransform"),
12347
12519
  error: params.error
12348
12520
  });
12349
12521
  return codec2;
12350
12522
  }
12351
12523
  __name(_stringbool, "_stringbool");
12524
+ // @__NO_SIDE_EFFECTS__
12352
12525
  function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
12353
12526
  const params = normalizeParams(_params);
12354
12527
  const def = {
@@ -12391,7 +12564,7 @@ function initializeContext(params) {
12391
12564
  }
12392
12565
  __name(initializeContext, "initializeContext");
12393
12566
  function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
12394
- var _a4;
12567
+ var _a5;
12395
12568
  const def = schema._zod.def;
12396
12569
  const seen = ctx.seen.get(schema);
12397
12570
  if (seen) {
@@ -12439,7 +12612,7 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
12439
12612
  delete result.schema.default;
12440
12613
  }
12441
12614
  if (ctx.io === "input" && "_prefault" in result.schema)
12442
- (_a4 = result.schema).default ?? (_a4.default = result.schema._prefault);
12615
+ (_a5 = result.schema).default ?? (_a5.default = result.schema._prefault);
12443
12616
  delete result.schema._prefault;
12444
12617
  const _result = ctx.seen.get(schema);
12445
12618
  return _result.schema;
@@ -12738,6 +12911,7 @@ var formatMap = {
12738
12911
  datetime: "date-time",
12739
12912
  json_string: "json-string",
12740
12913
  regex: ""
12914
+ // do not set
12741
12915
  };
12742
12916
  var stringProcessor = /* @__PURE__ */ __name((schema, ctx, _json, _params) => {
12743
12917
  const json2 = _json;
@@ -13276,28 +13450,35 @@ function toJSONSchema(input, params) {
13276
13450
  __name(toJSONSchema, "toJSONSchema");
13277
13451
 
13278
13452
  // ../../../node_modules/zod/v4/core/json-schema-generator.js
13279
- var JSONSchemaGenerator = class {
13453
+ var _JSONSchemaGenerator = class _JSONSchemaGenerator {
13454
+ /** @deprecated Access via ctx instead */
13280
13455
  get metadataRegistry() {
13281
13456
  return this.ctx.metadataRegistry;
13282
13457
  }
13458
+ /** @deprecated Access via ctx instead */
13283
13459
  get target() {
13284
13460
  return this.ctx.target;
13285
13461
  }
13462
+ /** @deprecated Access via ctx instead */
13286
13463
  get unrepresentable() {
13287
13464
  return this.ctx.unrepresentable;
13288
13465
  }
13466
+ /** @deprecated Access via ctx instead */
13289
13467
  get override() {
13290
13468
  return this.ctx.override;
13291
13469
  }
13470
+ /** @deprecated Access via ctx instead */
13292
13471
  get io() {
13293
13472
  return this.ctx.io;
13294
13473
  }
13474
+ /** @deprecated Access via ctx instead */
13295
13475
  get counter() {
13296
13476
  return this.ctx.counter;
13297
13477
  }
13298
13478
  set counter(value) {
13299
13479
  this.ctx.counter = value;
13300
13480
  }
13481
+ /** @deprecated Access via ctx instead */
13301
13482
  get seen() {
13302
13483
  return this.ctx.seen;
13303
13484
  }
@@ -13316,9 +13497,17 @@ var JSONSchemaGenerator = class {
13316
13497
  ...params?.io && { io: params.io }
13317
13498
  });
13318
13499
  }
13500
+ /**
13501
+ * Process a schema to prepare it for JSON Schema generation.
13502
+ * This must be called before emit().
13503
+ */
13319
13504
  process(schema, _params = { path: [], schemaPath: [] }) {
13320
13505
  return process2(schema, this.ctx, _params);
13321
13506
  }
13507
+ /**
13508
+ * Emit the final JSON Schema after processing.
13509
+ * Must call process() first.
13510
+ */
13322
13511
  emit(schema, _params) {
13323
13512
  if (_params) {
13324
13513
  if (_params.cycles)
@@ -13334,7 +13523,8 @@ var JSONSchemaGenerator = class {
13334
13523
  return plainResult;
13335
13524
  }
13336
13525
  };
13337
- __name(JSONSchemaGenerator, "JSONSchemaGenerator");
13526
+ __name(_JSONSchemaGenerator, "JSONSchemaGenerator");
13527
+ var JSONSchemaGenerator = _JSONSchemaGenerator;
13338
13528
 
13339
13529
  // ../../../node_modules/zod/v4/core/json-schema.js
13340
13530
  var json_schema_exports = {};
@@ -13595,27 +13785,32 @@ var initializer2 = /* @__PURE__ */ __name((inst, issues) => {
13595
13785
  inst.name = "ZodError";
13596
13786
  Object.defineProperties(inst, {
13597
13787
  format: {
13598
- value: (mapper) => formatError(inst, mapper)
13788
+ value: /* @__PURE__ */ __name((mapper) => formatError(inst, mapper), "value")
13789
+ // enumerable: false,
13599
13790
  },
13600
13791
  flatten: {
13601
- value: (mapper) => flattenError(inst, mapper)
13792
+ value: /* @__PURE__ */ __name((mapper) => flattenError(inst, mapper), "value")
13793
+ // enumerable: false,
13602
13794
  },
13603
13795
  addIssue: {
13604
- value: (issue2) => {
13796
+ value: /* @__PURE__ */ __name((issue2) => {
13605
13797
  inst.issues.push(issue2);
13606
13798
  inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
13607
- }
13799
+ }, "value")
13800
+ // enumerable: false,
13608
13801
  },
13609
13802
  addIssues: {
13610
- value: (issues2) => {
13803
+ value: /* @__PURE__ */ __name((issues2) => {
13611
13804
  inst.issues.push(...issues2);
13612
13805
  inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
13613
- }
13806
+ }, "value")
13807
+ // enumerable: false,
13614
13808
  },
13615
13809
  isEmpty: {
13616
13810
  get() {
13617
13811
  return inst.issues.length === 0;
13618
13812
  }
13813
+ // enumerable: false,
13619
13814
  }
13620
13815
  });
13621
13816
  }, "initializer");
@@ -14851,6 +15046,7 @@ function pipe(in_, out) {
14851
15046
  type: "pipe",
14852
15047
  in: in_,
14853
15048
  out
15049
+ // ...util.normalizeParams(params),
14854
15050
  });
14855
15051
  }
14856
15052
  __name(pipe, "pipe");
@@ -14956,6 +15152,7 @@ var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
14956
15152
  function check(fn) {
14957
15153
  const ch = new $ZodCheck({
14958
15154
  check: "custom"
15155
+ // ...util.normalizeParams(params),
14959
15156
  });
14960
15157
  ch._zod.check = fn;
14961
15158
  return ch;
@@ -14979,7 +15176,7 @@ function _instanceof(cls, params = {}) {
14979
15176
  const inst = new ZodCustom({
14980
15177
  type: "custom",
14981
15178
  check: "custom",
14982
- fn: (data) => data instanceof cls,
15179
+ fn: /* @__PURE__ */ __name((data) => data instanceof cls, "fn"),
14983
15180
  abort: true,
14984
15181
  ...util_exports.normalizeParams(params)
14985
15182
  });
@@ -15044,7 +15241,7 @@ function getErrorMap() {
15044
15241
  }
15045
15242
  __name(getErrorMap, "getErrorMap");
15046
15243
  var ZodFirstPartyTypeKind;
15047
- (function(ZodFirstPartyTypeKind2) {
15244
+ /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
15048
15245
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
15049
15246
 
15050
15247
  // ../../../node_modules/zod/v4/classic/from-json-schema.js
@@ -15054,10 +15251,12 @@ var z = {
15054
15251
  iso: iso_exports
15055
15252
  };
15056
15253
  var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
15254
+ // Schema identification
15057
15255
  "$schema",
15058
15256
  "$ref",
15059
15257
  "$defs",
15060
15258
  "definitions",
15259
+ // Core schema keywords
15061
15260
  "$id",
15062
15261
  "id",
15063
15262
  "$comment",
@@ -15065,13 +15264,16 @@ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
15065
15264
  "$vocabulary",
15066
15265
  "$dynamicRef",
15067
15266
  "$dynamicAnchor",
15267
+ // Type
15068
15268
  "type",
15069
15269
  "enum",
15070
15270
  "const",
15271
+ // Composition
15071
15272
  "anyOf",
15072
15273
  "oneOf",
15073
15274
  "allOf",
15074
15275
  "not",
15276
+ // Object
15075
15277
  "properties",
15076
15278
  "required",
15077
15279
  "additionalProperties",
@@ -15079,6 +15281,7 @@ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
15079
15281
  "propertyNames",
15080
15282
  "minProperties",
15081
15283
  "maxProperties",
15284
+ // Array
15082
15285
  "items",
15083
15286
  "prefixItems",
15084
15287
  "additionalItems",
@@ -15088,20 +15291,25 @@ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
15088
15291
  "contains",
15089
15292
  "minContains",
15090
15293
  "maxContains",
15294
+ // String
15091
15295
  "minLength",
15092
15296
  "maxLength",
15093
15297
  "pattern",
15094
15298
  "format",
15299
+ // Number
15095
15300
  "minimum",
15096
15301
  "maximum",
15097
15302
  "exclusiveMinimum",
15098
15303
  "exclusiveMaximum",
15099
15304
  "multipleOf",
15305
+ // Already handled metadata
15100
15306
  "description",
15101
15307
  "default",
15308
+ // Content
15102
15309
  "contentEncoding",
15103
15310
  "contentMediaType",
15104
15311
  "contentSchema",
15312
+ // Unsupported (error-throwing)
15105
15313
  "unevaluatedItems",
15106
15314
  "unevaluatedProperties",
15107
15315
  "if",
@@ -15109,6 +15317,7 @@ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
15109
15317
  "else",
15110
15318
  "dependentSchemas",
15111
15319
  "dependentRequired",
15320
+ // OpenAPI
15112
15321
  "nullable",
15113
15322
  "readOnly"
15114
15323
  ]);
@@ -15738,18 +15947,22 @@ var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
15738
15947
  if (from && typeof from === "object" || typeof from === "function") {
15739
15948
  for (let key of __getOwnPropNames2(from))
15740
15949
  if (!__hasOwnProp2.call(to, key) && key !== except)
15741
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
15950
+ __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
15742
15951
  }
15743
15952
  return to;
15744
15953
  }, "__copyProps");
15745
15954
  var __toESM = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps2(
15955
+ // If the importer is in node compatibility mode or this is not an ESM
15956
+ // file that has been converted to a CommonJS file using a Babel-
15957
+ // compatible transform (i.e. "__esModule" has not been set), then set
15958
+ // "default" to the CommonJS "module.exports" for node compatibility.
15746
15959
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
15747
15960
  mod
15748
15961
  )), "__toESM");
15749
15962
  var require_types_cjs_development = __commonJS({
15750
15963
  "../learn-card-types/dist/types.cjs.development.cjs"(exports, module2) {
15751
- var _a5, _b, _c, _d, _e, _f, _g;
15752
15964
  "use strict";
15965
+ var _a6, _b, _c, _d, _e, _f, _g;
15753
15966
  var __defProp22 = Object.defineProperty;
15754
15967
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
15755
15968
  var __getOwnPropNames22 = Object.getOwnPropertyNames;
@@ -15768,8 +15981,8 @@ var require_types_cjs_development = __commonJS({
15768
15981
  return to;
15769
15982
  }, "__copyProps");
15770
15983
  var __toCommonJS2 = /* @__PURE__ */ __name2((mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod), "__toCommonJS");
15771
- var index_exports = {};
15772
- __export22(index_exports, {
15984
+ var index_exports2 = {};
15985
+ __export22(index_exports2, {
15773
15986
  AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX: /* @__PURE__ */ __name2(() => AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2, "AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX"),
15774
15987
  AchievementCredentialValidator: /* @__PURE__ */ __name2(() => AchievementCredentialValidator2, "AchievementCredentialValidator"),
15775
15988
  AchievementCriteriaValidator: /* @__PURE__ */ __name2(() => AchievementCriteriaValidator2, "AchievementCriteriaValidator"),
@@ -15912,6 +16125,12 @@ var require_types_cjs_development = __commonJS({
15912
16125
  LCNBoostClaimLinkSigningAuthorityValidator: /* @__PURE__ */ __name2(() => LCNBoostClaimLinkSigningAuthorityValidator2, "LCNBoostClaimLinkSigningAuthorityValidator"),
15913
16126
  LCNBoostStatus: /* @__PURE__ */ __name2(() => LCNBoostStatus2, "LCNBoostStatus"),
15914
16127
  LCNConnectionProfileValidator: /* @__PURE__ */ __name2(() => LCNConnectionProfileValidator2, "LCNConnectionProfileValidator"),
16128
+ LCNConnectionPromptActionResultValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptActionResultValidator2, "LCNConnectionPromptActionResultValidator"),
16129
+ LCNConnectionPromptActionStatusValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptActionStatusValidator2, "LCNConnectionPromptActionStatusValidator"),
16130
+ LCNConnectionPromptMetadataValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptMetadataValidator2, "LCNConnectionPromptMetadataValidator"),
16131
+ LCNConnectionPromptStatusValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptStatusValidator2, "LCNConnectionPromptStatusValidator"),
16132
+ LCNConnectionPromptSurfaceValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptSurfaceValidator2, "LCNConnectionPromptSurfaceValidator"),
16133
+ LCNConnectionPromptValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptValidator2, "LCNConnectionPromptValidator"),
15915
16134
  LCNDomainOrOriginValidator: /* @__PURE__ */ __name2(() => LCNDomainOrOriginValidator2, "LCNDomainOrOriginValidator"),
15916
16135
  LCNInboxContactMethodValidator: /* @__PURE__ */ __name2(() => LCNInboxContactMethodValidator2, "LCNInboxContactMethodValidator"),
15917
16136
  LCNInboxStatusEnumValidator: /* @__PURE__ */ __name2(() => LCNInboxStatusEnumValidator2, "LCNInboxStatusEnumValidator"),
@@ -15923,6 +16142,7 @@ var require_types_cjs_development = __commonJS({
15923
16142
  LCNNotificationDataValidator: /* @__PURE__ */ __name2(() => LCNNotificationDataValidator2, "LCNNotificationDataValidator"),
15924
16143
  LCNNotificationInboxValidator: /* @__PURE__ */ __name2(() => LCNNotificationInboxValidator2, "LCNNotificationInboxValidator"),
15925
16144
  LCNNotificationMessageValidator: /* @__PURE__ */ __name2(() => LCNNotificationMessageValidator2, "LCNNotificationMessageValidator"),
16145
+ LCNNotificationMetadataValidator: /* @__PURE__ */ __name2(() => LCNNotificationMetadataValidator2, "LCNNotificationMetadataValidator"),
15926
16146
  LCNNotificationTypeEnumValidator: /* @__PURE__ */ __name2(() => LCNNotificationTypeEnumValidator2, "LCNNotificationTypeEnumValidator"),
15927
16147
  LCNNotificationValidator: /* @__PURE__ */ __name2(() => LCNNotificationValidator2, "LCNNotificationValidator"),
15928
16148
  LCNProfileConnectionStatusEnum: /* @__PURE__ */ __name2(() => LCNProfileConnectionStatusEnum2, "LCNProfileConnectionStatusEnum"),
@@ -16052,7 +16272,7 @@ var require_types_cjs_development = __commonJS({
16052
16272
  rolePredicateValidator: /* @__PURE__ */ __name2(() => rolePredicateValidator2, "rolePredicateValidator"),
16053
16273
  versionPredicateValidator: /* @__PURE__ */ __name2(() => versionPredicateValidator2, "versionPredicateValidator")
16054
16274
  });
16055
- module2.exports = __toCommonJS2(index_exports);
16275
+ module2.exports = __toCommonJS2(index_exports2);
16056
16276
  var external_exports2 = {};
16057
16277
  __export22(external_exports2, {
16058
16278
  $brand: /* @__PURE__ */ __name2(() => $brand2, "$brand"),
@@ -16571,10 +16791,11 @@ var require_types_cjs_development = __commonJS({
16571
16791
  util: /* @__PURE__ */ __name2(() => util_exports2, "util"),
16572
16792
  version: /* @__PURE__ */ __name2(() => version3, "version")
16573
16793
  });
16574
- var _a4;
16794
+ var _a5;
16575
16795
  var NEVER2 = /* @__PURE__ */ Object.freeze({
16576
16796
  status: "aborted"
16577
16797
  });
16798
+ // @__NO_SIDE_EFFECTS__
16578
16799
  function $constructor2(name, initializer32, params) {
16579
16800
  function init(inst, def) {
16580
16801
  if (!inst._zod) {
@@ -16605,16 +16826,12 @@ var require_types_cjs_development = __commonJS({
16605
16826
  __name2(init, "init");
16606
16827
  __name22(init, "init");
16607
16828
  const Parent = params?.Parent ?? Object;
16608
- const _Definition = class extends Parent {
16829
+ const _Definition = class _Definition extends Parent {
16609
16830
  };
16831
+ __name(_Definition, "Definition");
16832
+ __name2(_Definition, "Definition");
16833
+ __name22(_Definition, "Definition");
16610
16834
  let Definition = _Definition;
16611
- __name(Definition, "Definition");
16612
- (() => {
16613
- __name2(_Definition, "Definition");
16614
- })();
16615
- (() => {
16616
- __name22(_Definition, "Definition");
16617
- })();
16618
16835
  Object.defineProperty(Definition, "name", { value: name });
16619
16836
  function _(def) {
16620
16837
  var _a32;
@@ -16644,26 +16861,18 @@ var require_types_cjs_development = __commonJS({
16644
16861
  __name2($constructor2, "$constructor");
16645
16862
  __name22($constructor2, "$constructor");
16646
16863
  var $brand2 = /* @__PURE__ */ Symbol("zod_brand");
16647
- var $ZodAsyncError2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_a5 = class extends Error {
16864
+ var $ZodAsyncError2 = (_a6 = class extends Error {
16648
16865
  constructor() {
16649
16866
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
16650
16867
  }
16651
- }, "_this"), (() => {
16652
- __name2(_a5, "$ZodAsyncError");
16653
- })(), (() => {
16654
- __name22(_a5, "$ZodAsyncError");
16655
- })(), _a5), "$ZodAsyncError");
16656
- var $ZodEncodeError2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_b = class extends Error {
16868
+ }, __name(_a6, "$ZodAsyncError"), __name2(_a6, "$ZodAsyncError"), __name22(_a6, "$ZodAsyncError"), _a6);
16869
+ var $ZodEncodeError2 = (_b = class extends Error {
16657
16870
  constructor(name) {
16658
16871
  super(`Encountered unidirectional transform during encode: ${name}`);
16659
16872
  this.name = "ZodEncodeError";
16660
16873
  }
16661
- }, "_this"), (() => {
16662
- __name2(_b, "$ZodEncodeError");
16663
- })(), (() => {
16664
- __name22(_b, "$ZodEncodeError");
16665
- })(), _b), "$ZodEncodeError");
16666
- (_a4 = globalThis).__zod_globalConfig ?? (_a4.__zod_globalConfig = {});
16874
+ }, __name(_b, "$ZodEncodeError"), __name2(_b, "$ZodEncodeError"), __name22(_b, "$ZodEncodeError"), _b);
16875
+ (_a5 = globalThis).__zod_globalConfig ?? (_a5.__zod_globalConfig = {});
16667
16876
  var globalConfig2 = globalThis.__zod_globalConfig;
16668
16877
  function config2(newConfig) {
16669
16878
  if (newConfig)
@@ -16847,6 +17056,7 @@ var require_types_cjs_development = __commonJS({
16847
17056
  set(v) {
16848
17057
  Object.defineProperty(object22, key, {
16849
17058
  value: v
17059
+ // configurable: true,
16850
17060
  });
16851
17061
  },
16852
17062
  configurable: true
@@ -17527,14 +17737,10 @@ var require_types_cjs_development = __commonJS({
17527
17737
  __name(uint8ArrayToHex2, "uint8ArrayToHex");
17528
17738
  __name2(uint8ArrayToHex2, "uint8ArrayToHex");
17529
17739
  __name22(uint8ArrayToHex2, "uint8ArrayToHex");
17530
- var Class2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_c = class {
17740
+ var Class2 = (_c = class {
17531
17741
  constructor(..._args) {
17532
17742
  }
17533
- }, "_this"), (() => {
17534
- __name2(_c, "Class");
17535
- })(), (() => {
17536
- __name22(_c, "Class");
17537
- })(), _c), "Class");
17743
+ }, __name(_c, "Class"), __name2(_c, "Class"), __name22(_c, "Class"), _c);
17538
17744
  var initializer3 = /* @__PURE__ */ __name22((inst, def) => {
17539
17745
  inst.name = "$ZodError";
17540
17746
  Object.defineProperty(inst, "_zod", {
@@ -18497,7 +18703,7 @@ var require_types_cjs_development = __commonJS({
18497
18703
  payload.value = def.tx(payload.value);
18498
18704
  };
18499
18705
  });
18500
- var Doc2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_d = class {
18706
+ var Doc2 = (_d = class {
18501
18707
  constructor(args = []) {
18502
18708
  this.content = [];
18503
18709
  this.indent = 0;
@@ -18530,11 +18736,7 @@ var require_types_cjs_development = __commonJS({
18530
18736
  const lines = [...content.map((x) => ` ${x}`)];
18531
18737
  return new F(...args, lines.join("\n"));
18532
18738
  }
18533
- }, "_this"), (() => {
18534
- __name2(_d, "Doc");
18535
- })(), (() => {
18536
- __name22(_d, "Doc");
18537
- })(), _d), "Doc");
18739
+ }, __name(_d, "Doc"), __name2(_d, "Doc"), __name22(_d, "Doc"), _d);
18538
18740
  var version3 = {
18539
18741
  major: 4,
18540
18742
  minor: 4,
@@ -20689,8 +20891,11 @@ var require_types_cjs_development = __commonJS({
20689
20891
  code: "custom",
20690
20892
  input,
20691
20893
  inst,
20894
+ // incorporates params.error into issue reporting
20692
20895
  path: [...inst._zod.def.path ?? []],
20896
+ // incorporates params.error into issue reporting
20693
20897
  continue: !inst._zod.def.abort
20898
+ // params: inst._zod.def.params,
20694
20899
  };
20695
20900
  if (inst._zod.def.params)
20696
20901
  _iss.params = inst._zod.def.params;
@@ -21362,6 +21567,7 @@ var require_types_cjs_development = __commonJS({
21362
21567
  return `Clau inv\xE0lida a ${issue22.origin}`;
21363
21568
  case "invalid_union":
21364
21569
  return "Entrada inv\xE0lida";
21570
+ // Could also be "Tipus d'unió invàlid" but "Entrada invàlida" is more general
21365
21571
  case "invalid_element":
21366
21572
  return `Element inv\xE0lid a ${issue22.origin}`;
21367
21573
  default:
@@ -21886,7 +22092,9 @@ var require_types_cjs_development = __commonJS({
21886
22092
  template_literal: "input"
21887
22093
  };
21888
22094
  const TypeDictionary = {
22095
+ // Compatibility: "nan" -> "NaN" for display
21889
22096
  nan: "NaN"
22097
+ // All other type names omitted - they fall back to raw values via ?? operator
21890
22098
  };
21891
22099
  return (issue22) => {
21892
22100
  switch (issue22.code) {
@@ -22711,6 +22919,7 @@ var require_types_cjs_development = __commonJS({
22711
22919
  array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
22712
22920
  set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
22713
22921
  number: { unit: "", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" }
22922
+ // no unit
22714
22923
  };
22715
22924
  const typeEntry = /* @__PURE__ */ __name22((t) => t ? TypeNames[t] : void 0, "typeEntry");
22716
22925
  const typeLabel = /* @__PURE__ */ __name22((t) => {
@@ -26866,7 +27075,7 @@ var require_types_cjs_development = __commonJS({
26866
27075
  var _a22;
26867
27076
  var $output2 = /* @__PURE__ */ Symbol("ZodOutput");
26868
27077
  var $input2 = /* @__PURE__ */ Symbol("ZodInput");
26869
- var $ZodRegistry2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_e = class {
27078
+ var $ZodRegistry2 = (_e = class {
26870
27079
  constructor() {
26871
27080
  this._map = /* @__PURE__ */ new WeakMap();
26872
27081
  this._idmap = /* @__PURE__ */ new Map();
@@ -26905,11 +27114,7 @@ var require_types_cjs_development = __commonJS({
26905
27114
  has(schema) {
26906
27115
  return this._map.has(schema);
26907
27116
  }
26908
- }, "_this"), (() => {
26909
- __name2(_e, "$ZodRegistry");
26910
- })(), (() => {
26911
- __name22(_e, "$ZodRegistry");
26912
- })(), _e), "$ZodRegistry");
27117
+ }, __name(_e, "$ZodRegistry"), __name2(_e, "$ZodRegistry"), __name22(_e, "$ZodRegistry"), _e);
26913
27118
  function registry2() {
26914
27119
  return new $ZodRegistry2();
26915
27120
  }
@@ -26918,6 +27123,7 @@ var require_types_cjs_development = __commonJS({
26918
27123
  __name22(registry2, "registry");
26919
27124
  (_a22 = globalThis).__zod_globalRegistry ?? (_a22.__zod_globalRegistry = registry2());
26920
27125
  var globalRegistry2 = globalThis.__zod_globalRegistry;
27126
+ // @__NO_SIDE_EFFECTS__
26921
27127
  function _string2(Class22, params) {
26922
27128
  return new Class22({
26923
27129
  type: "string",
@@ -26927,6 +27133,7 @@ var require_types_cjs_development = __commonJS({
26927
27133
  __name(_string2, "_string");
26928
27134
  __name2(_string2, "_string");
26929
27135
  __name22(_string2, "_string");
27136
+ // @__NO_SIDE_EFFECTS__
26930
27137
  function _coercedString2(Class22, params) {
26931
27138
  return new Class22({
26932
27139
  type: "string",
@@ -26937,6 +27144,7 @@ var require_types_cjs_development = __commonJS({
26937
27144
  __name(_coercedString2, "_coercedString");
26938
27145
  __name2(_coercedString2, "_coercedString");
26939
27146
  __name22(_coercedString2, "_coercedString");
27147
+ // @__NO_SIDE_EFFECTS__
26940
27148
  function _email2(Class22, params) {
26941
27149
  return new Class22({
26942
27150
  type: "string",
@@ -26949,6 +27157,7 @@ var require_types_cjs_development = __commonJS({
26949
27157
  __name(_email2, "_email");
26950
27158
  __name2(_email2, "_email");
26951
27159
  __name22(_email2, "_email");
27160
+ // @__NO_SIDE_EFFECTS__
26952
27161
  function _guid2(Class22, params) {
26953
27162
  return new Class22({
26954
27163
  type: "string",
@@ -26961,6 +27170,7 @@ var require_types_cjs_development = __commonJS({
26961
27170
  __name(_guid2, "_guid");
26962
27171
  __name2(_guid2, "_guid");
26963
27172
  __name22(_guid2, "_guid");
27173
+ // @__NO_SIDE_EFFECTS__
26964
27174
  function _uuid2(Class22, params) {
26965
27175
  return new Class22({
26966
27176
  type: "string",
@@ -26973,6 +27183,7 @@ var require_types_cjs_development = __commonJS({
26973
27183
  __name(_uuid2, "_uuid");
26974
27184
  __name2(_uuid2, "_uuid");
26975
27185
  __name22(_uuid2, "_uuid");
27186
+ // @__NO_SIDE_EFFECTS__
26976
27187
  function _uuidv42(Class22, params) {
26977
27188
  return new Class22({
26978
27189
  type: "string",
@@ -26986,6 +27197,7 @@ var require_types_cjs_development = __commonJS({
26986
27197
  __name(_uuidv42, "_uuidv4");
26987
27198
  __name2(_uuidv42, "_uuidv4");
26988
27199
  __name22(_uuidv42, "_uuidv4");
27200
+ // @__NO_SIDE_EFFECTS__
26989
27201
  function _uuidv62(Class22, params) {
26990
27202
  return new Class22({
26991
27203
  type: "string",
@@ -26999,6 +27211,7 @@ var require_types_cjs_development = __commonJS({
26999
27211
  __name(_uuidv62, "_uuidv6");
27000
27212
  __name2(_uuidv62, "_uuidv6");
27001
27213
  __name22(_uuidv62, "_uuidv6");
27214
+ // @__NO_SIDE_EFFECTS__
27002
27215
  function _uuidv72(Class22, params) {
27003
27216
  return new Class22({
27004
27217
  type: "string",
@@ -27012,6 +27225,7 @@ var require_types_cjs_development = __commonJS({
27012
27225
  __name(_uuidv72, "_uuidv7");
27013
27226
  __name2(_uuidv72, "_uuidv7");
27014
27227
  __name22(_uuidv72, "_uuidv7");
27228
+ // @__NO_SIDE_EFFECTS__
27015
27229
  function _url2(Class22, params) {
27016
27230
  return new Class22({
27017
27231
  type: "string",
@@ -27024,6 +27238,7 @@ var require_types_cjs_development = __commonJS({
27024
27238
  __name(_url2, "_url");
27025
27239
  __name2(_url2, "_url");
27026
27240
  __name22(_url2, "_url");
27241
+ // @__NO_SIDE_EFFECTS__
27027
27242
  function _emoji22(Class22, params) {
27028
27243
  return new Class22({
27029
27244
  type: "string",
@@ -27036,6 +27251,7 @@ var require_types_cjs_development = __commonJS({
27036
27251
  __name(_emoji22, "_emoji2");
27037
27252
  __name2(_emoji22, "_emoji2");
27038
27253
  __name22(_emoji22, "_emoji");
27254
+ // @__NO_SIDE_EFFECTS__
27039
27255
  function _nanoid2(Class22, params) {
27040
27256
  return new Class22({
27041
27257
  type: "string",
@@ -27048,6 +27264,7 @@ var require_types_cjs_development = __commonJS({
27048
27264
  __name(_nanoid2, "_nanoid");
27049
27265
  __name2(_nanoid2, "_nanoid");
27050
27266
  __name22(_nanoid2, "_nanoid");
27267
+ // @__NO_SIDE_EFFECTS__
27051
27268
  function _cuid3(Class22, params) {
27052
27269
  return new Class22({
27053
27270
  type: "string",
@@ -27060,6 +27277,7 @@ var require_types_cjs_development = __commonJS({
27060
27277
  __name(_cuid3, "_cuid");
27061
27278
  __name2(_cuid3, "_cuid");
27062
27279
  __name22(_cuid3, "_cuid");
27280
+ // @__NO_SIDE_EFFECTS__
27063
27281
  function _cuid22(Class22, params) {
27064
27282
  return new Class22({
27065
27283
  type: "string",
@@ -27072,6 +27290,7 @@ var require_types_cjs_development = __commonJS({
27072
27290
  __name(_cuid22, "_cuid2");
27073
27291
  __name2(_cuid22, "_cuid2");
27074
27292
  __name22(_cuid22, "_cuid2");
27293
+ // @__NO_SIDE_EFFECTS__
27075
27294
  function _ulid2(Class22, params) {
27076
27295
  return new Class22({
27077
27296
  type: "string",
@@ -27084,6 +27303,7 @@ var require_types_cjs_development = __commonJS({
27084
27303
  __name(_ulid2, "_ulid");
27085
27304
  __name2(_ulid2, "_ulid");
27086
27305
  __name22(_ulid2, "_ulid");
27306
+ // @__NO_SIDE_EFFECTS__
27087
27307
  function _xid2(Class22, params) {
27088
27308
  return new Class22({
27089
27309
  type: "string",
@@ -27096,6 +27316,7 @@ var require_types_cjs_development = __commonJS({
27096
27316
  __name(_xid2, "_xid");
27097
27317
  __name2(_xid2, "_xid");
27098
27318
  __name22(_xid2, "_xid");
27319
+ // @__NO_SIDE_EFFECTS__
27099
27320
  function _ksuid2(Class22, params) {
27100
27321
  return new Class22({
27101
27322
  type: "string",
@@ -27108,6 +27329,7 @@ var require_types_cjs_development = __commonJS({
27108
27329
  __name(_ksuid2, "_ksuid");
27109
27330
  __name2(_ksuid2, "_ksuid");
27110
27331
  __name22(_ksuid2, "_ksuid");
27332
+ // @__NO_SIDE_EFFECTS__
27111
27333
  function _ipv42(Class22, params) {
27112
27334
  return new Class22({
27113
27335
  type: "string",
@@ -27120,6 +27342,7 @@ var require_types_cjs_development = __commonJS({
27120
27342
  __name(_ipv42, "_ipv4");
27121
27343
  __name2(_ipv42, "_ipv4");
27122
27344
  __name22(_ipv42, "_ipv4");
27345
+ // @__NO_SIDE_EFFECTS__
27123
27346
  function _ipv62(Class22, params) {
27124
27347
  return new Class22({
27125
27348
  type: "string",
@@ -27132,6 +27355,7 @@ var require_types_cjs_development = __commonJS({
27132
27355
  __name(_ipv62, "_ipv6");
27133
27356
  __name2(_ipv62, "_ipv6");
27134
27357
  __name22(_ipv62, "_ipv6");
27358
+ // @__NO_SIDE_EFFECTS__
27135
27359
  function _mac2(Class22, params) {
27136
27360
  return new Class22({
27137
27361
  type: "string",
@@ -27144,6 +27368,7 @@ var require_types_cjs_development = __commonJS({
27144
27368
  __name(_mac2, "_mac");
27145
27369
  __name2(_mac2, "_mac");
27146
27370
  __name22(_mac2, "_mac");
27371
+ // @__NO_SIDE_EFFECTS__
27147
27372
  function _cidrv42(Class22, params) {
27148
27373
  return new Class22({
27149
27374
  type: "string",
@@ -27156,6 +27381,7 @@ var require_types_cjs_development = __commonJS({
27156
27381
  __name(_cidrv42, "_cidrv4");
27157
27382
  __name2(_cidrv42, "_cidrv4");
27158
27383
  __name22(_cidrv42, "_cidrv4");
27384
+ // @__NO_SIDE_EFFECTS__
27159
27385
  function _cidrv62(Class22, params) {
27160
27386
  return new Class22({
27161
27387
  type: "string",
@@ -27168,6 +27394,7 @@ var require_types_cjs_development = __commonJS({
27168
27394
  __name(_cidrv62, "_cidrv6");
27169
27395
  __name2(_cidrv62, "_cidrv6");
27170
27396
  __name22(_cidrv62, "_cidrv6");
27397
+ // @__NO_SIDE_EFFECTS__
27171
27398
  function _base642(Class22, params) {
27172
27399
  return new Class22({
27173
27400
  type: "string",
@@ -27180,6 +27407,7 @@ var require_types_cjs_development = __commonJS({
27180
27407
  __name(_base642, "_base64");
27181
27408
  __name2(_base642, "_base64");
27182
27409
  __name22(_base642, "_base64");
27410
+ // @__NO_SIDE_EFFECTS__
27183
27411
  function _base64url2(Class22, params) {
27184
27412
  return new Class22({
27185
27413
  type: "string",
@@ -27192,6 +27420,7 @@ var require_types_cjs_development = __commonJS({
27192
27420
  __name(_base64url2, "_base64url");
27193
27421
  __name2(_base64url2, "_base64url");
27194
27422
  __name22(_base64url2, "_base64url");
27423
+ // @__NO_SIDE_EFFECTS__
27195
27424
  function _e1642(Class22, params) {
27196
27425
  return new Class22({
27197
27426
  type: "string",
@@ -27204,6 +27433,7 @@ var require_types_cjs_development = __commonJS({
27204
27433
  __name(_e1642, "_e164");
27205
27434
  __name2(_e1642, "_e164");
27206
27435
  __name22(_e1642, "_e164");
27436
+ // @__NO_SIDE_EFFECTS__
27207
27437
  function _jwt2(Class22, params) {
27208
27438
  return new Class22({
27209
27439
  type: "string",
@@ -27223,6 +27453,7 @@ var require_types_cjs_development = __commonJS({
27223
27453
  Millisecond: 3,
27224
27454
  Microsecond: 6
27225
27455
  };
27456
+ // @__NO_SIDE_EFFECTS__
27226
27457
  function _isoDateTime2(Class22, params) {
27227
27458
  return new Class22({
27228
27459
  type: "string",
@@ -27237,6 +27468,7 @@ var require_types_cjs_development = __commonJS({
27237
27468
  __name(_isoDateTime2, "_isoDateTime");
27238
27469
  __name2(_isoDateTime2, "_isoDateTime");
27239
27470
  __name22(_isoDateTime2, "_isoDateTime");
27471
+ // @__NO_SIDE_EFFECTS__
27240
27472
  function _isoDate2(Class22, params) {
27241
27473
  return new Class22({
27242
27474
  type: "string",
@@ -27248,6 +27480,7 @@ var require_types_cjs_development = __commonJS({
27248
27480
  __name(_isoDate2, "_isoDate");
27249
27481
  __name2(_isoDate2, "_isoDate");
27250
27482
  __name22(_isoDate2, "_isoDate");
27483
+ // @__NO_SIDE_EFFECTS__
27251
27484
  function _isoTime2(Class22, params) {
27252
27485
  return new Class22({
27253
27486
  type: "string",
@@ -27260,6 +27493,7 @@ var require_types_cjs_development = __commonJS({
27260
27493
  __name(_isoTime2, "_isoTime");
27261
27494
  __name2(_isoTime2, "_isoTime");
27262
27495
  __name22(_isoTime2, "_isoTime");
27496
+ // @__NO_SIDE_EFFECTS__
27263
27497
  function _isoDuration2(Class22, params) {
27264
27498
  return new Class22({
27265
27499
  type: "string",
@@ -27271,6 +27505,7 @@ var require_types_cjs_development = __commonJS({
27271
27505
  __name(_isoDuration2, "_isoDuration");
27272
27506
  __name2(_isoDuration2, "_isoDuration");
27273
27507
  __name22(_isoDuration2, "_isoDuration");
27508
+ // @__NO_SIDE_EFFECTS__
27274
27509
  function _number2(Class22, params) {
27275
27510
  return new Class22({
27276
27511
  type: "number",
@@ -27281,6 +27516,7 @@ var require_types_cjs_development = __commonJS({
27281
27516
  __name(_number2, "_number");
27282
27517
  __name2(_number2, "_number");
27283
27518
  __name22(_number2, "_number");
27519
+ // @__NO_SIDE_EFFECTS__
27284
27520
  function _coercedNumber2(Class22, params) {
27285
27521
  return new Class22({
27286
27522
  type: "number",
@@ -27292,6 +27528,7 @@ var require_types_cjs_development = __commonJS({
27292
27528
  __name(_coercedNumber2, "_coercedNumber");
27293
27529
  __name2(_coercedNumber2, "_coercedNumber");
27294
27530
  __name22(_coercedNumber2, "_coercedNumber");
27531
+ // @__NO_SIDE_EFFECTS__
27295
27532
  function _int2(Class22, params) {
27296
27533
  return new Class22({
27297
27534
  type: "number",
@@ -27304,6 +27541,7 @@ var require_types_cjs_development = __commonJS({
27304
27541
  __name(_int2, "_int");
27305
27542
  __name2(_int2, "_int");
27306
27543
  __name22(_int2, "_int");
27544
+ // @__NO_SIDE_EFFECTS__
27307
27545
  function _float322(Class22, params) {
27308
27546
  return new Class22({
27309
27547
  type: "number",
@@ -27316,6 +27554,7 @@ var require_types_cjs_development = __commonJS({
27316
27554
  __name(_float322, "_float32");
27317
27555
  __name2(_float322, "_float32");
27318
27556
  __name22(_float322, "_float32");
27557
+ // @__NO_SIDE_EFFECTS__
27319
27558
  function _float642(Class22, params) {
27320
27559
  return new Class22({
27321
27560
  type: "number",
@@ -27328,6 +27567,7 @@ var require_types_cjs_development = __commonJS({
27328
27567
  __name(_float642, "_float64");
27329
27568
  __name2(_float642, "_float64");
27330
27569
  __name22(_float642, "_float64");
27570
+ // @__NO_SIDE_EFFECTS__
27331
27571
  function _int322(Class22, params) {
27332
27572
  return new Class22({
27333
27573
  type: "number",
@@ -27340,6 +27580,7 @@ var require_types_cjs_development = __commonJS({
27340
27580
  __name(_int322, "_int32");
27341
27581
  __name2(_int322, "_int32");
27342
27582
  __name22(_int322, "_int32");
27583
+ // @__NO_SIDE_EFFECTS__
27343
27584
  function _uint322(Class22, params) {
27344
27585
  return new Class22({
27345
27586
  type: "number",
@@ -27352,6 +27593,7 @@ var require_types_cjs_development = __commonJS({
27352
27593
  __name(_uint322, "_uint32");
27353
27594
  __name2(_uint322, "_uint32");
27354
27595
  __name22(_uint322, "_uint32");
27596
+ // @__NO_SIDE_EFFECTS__
27355
27597
  function _boolean2(Class22, params) {
27356
27598
  return new Class22({
27357
27599
  type: "boolean",
@@ -27361,6 +27603,7 @@ var require_types_cjs_development = __commonJS({
27361
27603
  __name(_boolean2, "_boolean");
27362
27604
  __name2(_boolean2, "_boolean");
27363
27605
  __name22(_boolean2, "_boolean");
27606
+ // @__NO_SIDE_EFFECTS__
27364
27607
  function _coercedBoolean2(Class22, params) {
27365
27608
  return new Class22({
27366
27609
  type: "boolean",
@@ -27371,6 +27614,7 @@ var require_types_cjs_development = __commonJS({
27371
27614
  __name(_coercedBoolean2, "_coercedBoolean");
27372
27615
  __name2(_coercedBoolean2, "_coercedBoolean");
27373
27616
  __name22(_coercedBoolean2, "_coercedBoolean");
27617
+ // @__NO_SIDE_EFFECTS__
27374
27618
  function _bigint2(Class22, params) {
27375
27619
  return new Class22({
27376
27620
  type: "bigint",
@@ -27380,6 +27624,7 @@ var require_types_cjs_development = __commonJS({
27380
27624
  __name(_bigint2, "_bigint");
27381
27625
  __name2(_bigint2, "_bigint");
27382
27626
  __name22(_bigint2, "_bigint");
27627
+ // @__NO_SIDE_EFFECTS__
27383
27628
  function _coercedBigint2(Class22, params) {
27384
27629
  return new Class22({
27385
27630
  type: "bigint",
@@ -27390,6 +27635,7 @@ var require_types_cjs_development = __commonJS({
27390
27635
  __name(_coercedBigint2, "_coercedBigint");
27391
27636
  __name2(_coercedBigint2, "_coercedBigint");
27392
27637
  __name22(_coercedBigint2, "_coercedBigint");
27638
+ // @__NO_SIDE_EFFECTS__
27393
27639
  function _int642(Class22, params) {
27394
27640
  return new Class22({
27395
27641
  type: "bigint",
@@ -27402,6 +27648,7 @@ var require_types_cjs_development = __commonJS({
27402
27648
  __name(_int642, "_int64");
27403
27649
  __name2(_int642, "_int64");
27404
27650
  __name22(_int642, "_int64");
27651
+ // @__NO_SIDE_EFFECTS__
27405
27652
  function _uint642(Class22, params) {
27406
27653
  return new Class22({
27407
27654
  type: "bigint",
@@ -27414,6 +27661,7 @@ var require_types_cjs_development = __commonJS({
27414
27661
  __name(_uint642, "_uint64");
27415
27662
  __name2(_uint642, "_uint64");
27416
27663
  __name22(_uint642, "_uint64");
27664
+ // @__NO_SIDE_EFFECTS__
27417
27665
  function _symbol2(Class22, params) {
27418
27666
  return new Class22({
27419
27667
  type: "symbol",
@@ -27423,6 +27671,7 @@ var require_types_cjs_development = __commonJS({
27423
27671
  __name(_symbol2, "_symbol");
27424
27672
  __name2(_symbol2, "_symbol");
27425
27673
  __name22(_symbol2, "_symbol");
27674
+ // @__NO_SIDE_EFFECTS__
27426
27675
  function _undefined22(Class22, params) {
27427
27676
  return new Class22({
27428
27677
  type: "undefined",
@@ -27432,6 +27681,7 @@ var require_types_cjs_development = __commonJS({
27432
27681
  __name(_undefined22, "_undefined2");
27433
27682
  __name2(_undefined22, "_undefined2");
27434
27683
  __name22(_undefined22, "_undefined");
27684
+ // @__NO_SIDE_EFFECTS__
27435
27685
  function _null22(Class22, params) {
27436
27686
  return new Class22({
27437
27687
  type: "null",
@@ -27441,6 +27691,7 @@ var require_types_cjs_development = __commonJS({
27441
27691
  __name(_null22, "_null2");
27442
27692
  __name2(_null22, "_null2");
27443
27693
  __name22(_null22, "_null");
27694
+ // @__NO_SIDE_EFFECTS__
27444
27695
  function _any2(Class22) {
27445
27696
  return new Class22({
27446
27697
  type: "any"
@@ -27449,6 +27700,7 @@ var require_types_cjs_development = __commonJS({
27449
27700
  __name(_any2, "_any");
27450
27701
  __name2(_any2, "_any");
27451
27702
  __name22(_any2, "_any");
27703
+ // @__NO_SIDE_EFFECTS__
27452
27704
  function _unknown2(Class22) {
27453
27705
  return new Class22({
27454
27706
  type: "unknown"
@@ -27457,6 +27709,7 @@ var require_types_cjs_development = __commonJS({
27457
27709
  __name(_unknown2, "_unknown");
27458
27710
  __name2(_unknown2, "_unknown");
27459
27711
  __name22(_unknown2, "_unknown");
27712
+ // @__NO_SIDE_EFFECTS__
27460
27713
  function _never2(Class22, params) {
27461
27714
  return new Class22({
27462
27715
  type: "never",
@@ -27466,6 +27719,7 @@ var require_types_cjs_development = __commonJS({
27466
27719
  __name(_never2, "_never");
27467
27720
  __name2(_never2, "_never");
27468
27721
  __name22(_never2, "_never");
27722
+ // @__NO_SIDE_EFFECTS__
27469
27723
  function _void3(Class22, params) {
27470
27724
  return new Class22({
27471
27725
  type: "void",
@@ -27475,6 +27729,7 @@ var require_types_cjs_development = __commonJS({
27475
27729
  __name(_void3, "_void");
27476
27730
  __name2(_void3, "_void");
27477
27731
  __name22(_void3, "_void");
27732
+ // @__NO_SIDE_EFFECTS__
27478
27733
  function _date2(Class22, params) {
27479
27734
  return new Class22({
27480
27735
  type: "date",
@@ -27484,6 +27739,7 @@ var require_types_cjs_development = __commonJS({
27484
27739
  __name(_date2, "_date");
27485
27740
  __name2(_date2, "_date");
27486
27741
  __name22(_date2, "_date");
27742
+ // @__NO_SIDE_EFFECTS__
27487
27743
  function _coercedDate2(Class22, params) {
27488
27744
  return new Class22({
27489
27745
  type: "date",
@@ -27494,6 +27750,7 @@ var require_types_cjs_development = __commonJS({
27494
27750
  __name(_coercedDate2, "_coercedDate");
27495
27751
  __name2(_coercedDate2, "_coercedDate");
27496
27752
  __name22(_coercedDate2, "_coercedDate");
27753
+ // @__NO_SIDE_EFFECTS__
27497
27754
  function _nan2(Class22, params) {
27498
27755
  return new Class22({
27499
27756
  type: "nan",
@@ -27503,6 +27760,7 @@ var require_types_cjs_development = __commonJS({
27503
27760
  __name(_nan2, "_nan");
27504
27761
  __name2(_nan2, "_nan");
27505
27762
  __name22(_nan2, "_nan");
27763
+ // @__NO_SIDE_EFFECTS__
27506
27764
  function _lt2(value, params) {
27507
27765
  return new $ZodCheckLessThan2({
27508
27766
  check: "less_than",
@@ -27514,6 +27772,7 @@ var require_types_cjs_development = __commonJS({
27514
27772
  __name(_lt2, "_lt");
27515
27773
  __name2(_lt2, "_lt");
27516
27774
  __name22(_lt2, "_lt");
27775
+ // @__NO_SIDE_EFFECTS__
27517
27776
  function _lte2(value, params) {
27518
27777
  return new $ZodCheckLessThan2({
27519
27778
  check: "less_than",
@@ -27525,6 +27784,7 @@ var require_types_cjs_development = __commonJS({
27525
27784
  __name(_lte2, "_lte");
27526
27785
  __name2(_lte2, "_lte");
27527
27786
  __name22(_lte2, "_lte");
27787
+ // @__NO_SIDE_EFFECTS__
27528
27788
  function _gt2(value, params) {
27529
27789
  return new $ZodCheckGreaterThan2({
27530
27790
  check: "greater_than",
@@ -27536,6 +27796,7 @@ var require_types_cjs_development = __commonJS({
27536
27796
  __name(_gt2, "_gt");
27537
27797
  __name2(_gt2, "_gt");
27538
27798
  __name22(_gt2, "_gt");
27799
+ // @__NO_SIDE_EFFECTS__
27539
27800
  function _gte2(value, params) {
27540
27801
  return new $ZodCheckGreaterThan2({
27541
27802
  check: "greater_than",
@@ -27547,30 +27808,35 @@ var require_types_cjs_development = __commonJS({
27547
27808
  __name(_gte2, "_gte");
27548
27809
  __name2(_gte2, "_gte");
27549
27810
  __name22(_gte2, "_gte");
27811
+ // @__NO_SIDE_EFFECTS__
27550
27812
  function _positive2(params) {
27551
27813
  return /* @__PURE__ */ _gt2(0, params);
27552
27814
  }
27553
27815
  __name(_positive2, "_positive");
27554
27816
  __name2(_positive2, "_positive");
27555
27817
  __name22(_positive2, "_positive");
27818
+ // @__NO_SIDE_EFFECTS__
27556
27819
  function _negative2(params) {
27557
27820
  return /* @__PURE__ */ _lt2(0, params);
27558
27821
  }
27559
27822
  __name(_negative2, "_negative");
27560
27823
  __name2(_negative2, "_negative");
27561
27824
  __name22(_negative2, "_negative");
27825
+ // @__NO_SIDE_EFFECTS__
27562
27826
  function _nonpositive2(params) {
27563
27827
  return /* @__PURE__ */ _lte2(0, params);
27564
27828
  }
27565
27829
  __name(_nonpositive2, "_nonpositive");
27566
27830
  __name2(_nonpositive2, "_nonpositive");
27567
27831
  __name22(_nonpositive2, "_nonpositive");
27832
+ // @__NO_SIDE_EFFECTS__
27568
27833
  function _nonnegative2(params) {
27569
27834
  return /* @__PURE__ */ _gte2(0, params);
27570
27835
  }
27571
27836
  __name(_nonnegative2, "_nonnegative");
27572
27837
  __name2(_nonnegative2, "_nonnegative");
27573
27838
  __name22(_nonnegative2, "_nonnegative");
27839
+ // @__NO_SIDE_EFFECTS__
27574
27840
  function _multipleOf2(value, params) {
27575
27841
  return new $ZodCheckMultipleOf2({
27576
27842
  check: "multiple_of",
@@ -27581,6 +27847,7 @@ var require_types_cjs_development = __commonJS({
27581
27847
  __name(_multipleOf2, "_multipleOf");
27582
27848
  __name2(_multipleOf2, "_multipleOf");
27583
27849
  __name22(_multipleOf2, "_multipleOf");
27850
+ // @__NO_SIDE_EFFECTS__
27584
27851
  function _maxSize2(maximum, params) {
27585
27852
  return new $ZodCheckMaxSize2({
27586
27853
  check: "max_size",
@@ -27591,6 +27858,7 @@ var require_types_cjs_development = __commonJS({
27591
27858
  __name(_maxSize2, "_maxSize");
27592
27859
  __name2(_maxSize2, "_maxSize");
27593
27860
  __name22(_maxSize2, "_maxSize");
27861
+ // @__NO_SIDE_EFFECTS__
27594
27862
  function _minSize2(minimum, params) {
27595
27863
  return new $ZodCheckMinSize2({
27596
27864
  check: "min_size",
@@ -27601,6 +27869,7 @@ var require_types_cjs_development = __commonJS({
27601
27869
  __name(_minSize2, "_minSize");
27602
27870
  __name2(_minSize2, "_minSize");
27603
27871
  __name22(_minSize2, "_minSize");
27872
+ // @__NO_SIDE_EFFECTS__
27604
27873
  function _size2(size, params) {
27605
27874
  return new $ZodCheckSizeEquals2({
27606
27875
  check: "size_equals",
@@ -27611,6 +27880,7 @@ var require_types_cjs_development = __commonJS({
27611
27880
  __name(_size2, "_size");
27612
27881
  __name2(_size2, "_size");
27613
27882
  __name22(_size2, "_size");
27883
+ // @__NO_SIDE_EFFECTS__
27614
27884
  function _maxLength2(maximum, params) {
27615
27885
  const ch = new $ZodCheckMaxLength2({
27616
27886
  check: "max_length",
@@ -27622,6 +27892,7 @@ var require_types_cjs_development = __commonJS({
27622
27892
  __name(_maxLength2, "_maxLength");
27623
27893
  __name2(_maxLength2, "_maxLength");
27624
27894
  __name22(_maxLength2, "_maxLength");
27895
+ // @__NO_SIDE_EFFECTS__
27625
27896
  function _minLength2(minimum, params) {
27626
27897
  return new $ZodCheckMinLength2({
27627
27898
  check: "min_length",
@@ -27632,6 +27903,7 @@ var require_types_cjs_development = __commonJS({
27632
27903
  __name(_minLength2, "_minLength");
27633
27904
  __name2(_minLength2, "_minLength");
27634
27905
  __name22(_minLength2, "_minLength");
27906
+ // @__NO_SIDE_EFFECTS__
27635
27907
  function _length2(length, params) {
27636
27908
  return new $ZodCheckLengthEquals2({
27637
27909
  check: "length_equals",
@@ -27642,6 +27914,7 @@ var require_types_cjs_development = __commonJS({
27642
27914
  __name(_length2, "_length");
27643
27915
  __name2(_length2, "_length");
27644
27916
  __name22(_length2, "_length");
27917
+ // @__NO_SIDE_EFFECTS__
27645
27918
  function _regex2(pattern, params) {
27646
27919
  return new $ZodCheckRegex2({
27647
27920
  check: "string_format",
@@ -27653,6 +27926,7 @@ var require_types_cjs_development = __commonJS({
27653
27926
  __name(_regex2, "_regex");
27654
27927
  __name2(_regex2, "_regex");
27655
27928
  __name22(_regex2, "_regex");
27929
+ // @__NO_SIDE_EFFECTS__
27656
27930
  function _lowercase2(params) {
27657
27931
  return new $ZodCheckLowerCase2({
27658
27932
  check: "string_format",
@@ -27663,6 +27937,7 @@ var require_types_cjs_development = __commonJS({
27663
27937
  __name(_lowercase2, "_lowercase");
27664
27938
  __name2(_lowercase2, "_lowercase");
27665
27939
  __name22(_lowercase2, "_lowercase");
27940
+ // @__NO_SIDE_EFFECTS__
27666
27941
  function _uppercase2(params) {
27667
27942
  return new $ZodCheckUpperCase2({
27668
27943
  check: "string_format",
@@ -27673,6 +27948,7 @@ var require_types_cjs_development = __commonJS({
27673
27948
  __name(_uppercase2, "_uppercase");
27674
27949
  __name2(_uppercase2, "_uppercase");
27675
27950
  __name22(_uppercase2, "_uppercase");
27951
+ // @__NO_SIDE_EFFECTS__
27676
27952
  function _includes2(includes, params) {
27677
27953
  return new $ZodCheckIncludes2({
27678
27954
  check: "string_format",
@@ -27684,6 +27960,7 @@ var require_types_cjs_development = __commonJS({
27684
27960
  __name(_includes2, "_includes");
27685
27961
  __name2(_includes2, "_includes");
27686
27962
  __name22(_includes2, "_includes");
27963
+ // @__NO_SIDE_EFFECTS__
27687
27964
  function _startsWith2(prefix, params) {
27688
27965
  return new $ZodCheckStartsWith2({
27689
27966
  check: "string_format",
@@ -27695,6 +27972,7 @@ var require_types_cjs_development = __commonJS({
27695
27972
  __name(_startsWith2, "_startsWith");
27696
27973
  __name2(_startsWith2, "_startsWith");
27697
27974
  __name22(_startsWith2, "_startsWith");
27975
+ // @__NO_SIDE_EFFECTS__
27698
27976
  function _endsWith2(suffix, params) {
27699
27977
  return new $ZodCheckEndsWith2({
27700
27978
  check: "string_format",
@@ -27706,6 +27984,7 @@ var require_types_cjs_development = __commonJS({
27706
27984
  __name(_endsWith2, "_endsWith");
27707
27985
  __name2(_endsWith2, "_endsWith");
27708
27986
  __name22(_endsWith2, "_endsWith");
27987
+ // @__NO_SIDE_EFFECTS__
27709
27988
  function _property2(property, schema, params) {
27710
27989
  return new $ZodCheckProperty2({
27711
27990
  check: "property",
@@ -27717,6 +27996,7 @@ var require_types_cjs_development = __commonJS({
27717
27996
  __name(_property2, "_property");
27718
27997
  __name2(_property2, "_property");
27719
27998
  __name22(_property2, "_property");
27999
+ // @__NO_SIDE_EFFECTS__
27720
28000
  function _mime2(types, params) {
27721
28001
  return new $ZodCheckMimeType2({
27722
28002
  check: "mime_type",
@@ -27727,6 +28007,7 @@ var require_types_cjs_development = __commonJS({
27727
28007
  __name(_mime2, "_mime");
27728
28008
  __name2(_mime2, "_mime");
27729
28009
  __name22(_mime2, "_mime");
28010
+ // @__NO_SIDE_EFFECTS__
27730
28011
  function _overwrite2(tx) {
27731
28012
  return new $ZodCheckOverwrite2({
27732
28013
  check: "overwrite",
@@ -27736,46 +28017,56 @@ var require_types_cjs_development = __commonJS({
27736
28017
  __name(_overwrite2, "_overwrite");
27737
28018
  __name2(_overwrite2, "_overwrite");
27738
28019
  __name22(_overwrite2, "_overwrite");
28020
+ // @__NO_SIDE_EFFECTS__
27739
28021
  function _normalize2(form) {
27740
28022
  return /* @__PURE__ */ _overwrite2((input) => input.normalize(form));
27741
28023
  }
27742
28024
  __name(_normalize2, "_normalize");
27743
28025
  __name2(_normalize2, "_normalize");
27744
28026
  __name22(_normalize2, "_normalize");
28027
+ // @__NO_SIDE_EFFECTS__
27745
28028
  function _trim2() {
27746
28029
  return /* @__PURE__ */ _overwrite2((input) => input.trim());
27747
28030
  }
27748
28031
  __name(_trim2, "_trim");
27749
28032
  __name2(_trim2, "_trim");
27750
28033
  __name22(_trim2, "_trim");
28034
+ // @__NO_SIDE_EFFECTS__
27751
28035
  function _toLowerCase2() {
27752
28036
  return /* @__PURE__ */ _overwrite2((input) => input.toLowerCase());
27753
28037
  }
27754
28038
  __name(_toLowerCase2, "_toLowerCase");
27755
28039
  __name2(_toLowerCase2, "_toLowerCase");
27756
28040
  __name22(_toLowerCase2, "_toLowerCase");
28041
+ // @__NO_SIDE_EFFECTS__
27757
28042
  function _toUpperCase2() {
27758
28043
  return /* @__PURE__ */ _overwrite2((input) => input.toUpperCase());
27759
28044
  }
27760
28045
  __name(_toUpperCase2, "_toUpperCase");
27761
28046
  __name2(_toUpperCase2, "_toUpperCase");
27762
28047
  __name22(_toUpperCase2, "_toUpperCase");
28048
+ // @__NO_SIDE_EFFECTS__
27763
28049
  function _slugify2() {
27764
28050
  return /* @__PURE__ */ _overwrite2((input) => slugify2(input));
27765
28051
  }
27766
28052
  __name(_slugify2, "_slugify");
27767
28053
  __name2(_slugify2, "_slugify");
27768
28054
  __name22(_slugify2, "_slugify");
28055
+ // @__NO_SIDE_EFFECTS__
27769
28056
  function _array2(Class22, element, params) {
27770
28057
  return new Class22({
27771
28058
  type: "array",
27772
28059
  element,
28060
+ // get element() {
28061
+ // return element;
28062
+ // },
27773
28063
  ...normalizeParams2(params)
27774
28064
  });
27775
28065
  }
27776
28066
  __name(_array2, "_array");
27777
28067
  __name2(_array2, "_array");
27778
28068
  __name22(_array2, "_array");
28069
+ // @__NO_SIDE_EFFECTS__
27779
28070
  function _union2(Class22, options, params) {
27780
28071
  return new Class22({
27781
28072
  type: "union",
@@ -27797,6 +28088,7 @@ var require_types_cjs_development = __commonJS({
27797
28088
  __name(_xor2, "_xor");
27798
28089
  __name2(_xor2, "_xor");
27799
28090
  __name22(_xor2, "_xor");
28091
+ // @__NO_SIDE_EFFECTS__
27800
28092
  function _discriminatedUnion2(Class22, discriminator, options, params) {
27801
28093
  return new Class22({
27802
28094
  type: "union",
@@ -27808,6 +28100,7 @@ var require_types_cjs_development = __commonJS({
27808
28100
  __name(_discriminatedUnion2, "_discriminatedUnion");
27809
28101
  __name2(_discriminatedUnion2, "_discriminatedUnion");
27810
28102
  __name22(_discriminatedUnion2, "_discriminatedUnion");
28103
+ // @__NO_SIDE_EFFECTS__
27811
28104
  function _intersection2(Class22, left, right) {
27812
28105
  return new Class22({
27813
28106
  type: "intersection",
@@ -27818,6 +28111,7 @@ var require_types_cjs_development = __commonJS({
27818
28111
  __name(_intersection2, "_intersection");
27819
28112
  __name2(_intersection2, "_intersection");
27820
28113
  __name22(_intersection2, "_intersection");
28114
+ // @__NO_SIDE_EFFECTS__
27821
28115
  function _tuple2(Class22, items, _paramsOrRest, _params) {
27822
28116
  const hasRest = _paramsOrRest instanceof $ZodType2;
27823
28117
  const params = hasRest ? _params : _paramsOrRest;
@@ -27832,6 +28126,7 @@ var require_types_cjs_development = __commonJS({
27832
28126
  __name(_tuple2, "_tuple");
27833
28127
  __name2(_tuple2, "_tuple");
27834
28128
  __name22(_tuple2, "_tuple");
28129
+ // @__NO_SIDE_EFFECTS__
27835
28130
  function _record2(Class22, keyType, valueType, params) {
27836
28131
  return new Class22({
27837
28132
  type: "record",
@@ -27843,6 +28138,7 @@ var require_types_cjs_development = __commonJS({
27843
28138
  __name(_record2, "_record");
27844
28139
  __name2(_record2, "_record");
27845
28140
  __name22(_record2, "_record");
28141
+ // @__NO_SIDE_EFFECTS__
27846
28142
  function _map2(Class22, keyType, valueType, params) {
27847
28143
  return new Class22({
27848
28144
  type: "map",
@@ -27854,6 +28150,7 @@ var require_types_cjs_development = __commonJS({
27854
28150
  __name(_map2, "_map");
27855
28151
  __name2(_map2, "_map");
27856
28152
  __name22(_map2, "_map");
28153
+ // @__NO_SIDE_EFFECTS__
27857
28154
  function _set2(Class22, valueType, params) {
27858
28155
  return new Class22({
27859
28156
  type: "set",
@@ -27864,6 +28161,7 @@ var require_types_cjs_development = __commonJS({
27864
28161
  __name(_set2, "_set");
27865
28162
  __name2(_set2, "_set");
27866
28163
  __name22(_set2, "_set");
28164
+ // @__NO_SIDE_EFFECTS__
27867
28165
  function _enum3(Class22, values, params) {
27868
28166
  const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
27869
28167
  return new Class22({
@@ -27875,6 +28173,7 @@ var require_types_cjs_development = __commonJS({
27875
28173
  __name(_enum3, "_enum");
27876
28174
  __name2(_enum3, "_enum");
27877
28175
  __name22(_enum3, "_enum");
28176
+ // @__NO_SIDE_EFFECTS__
27878
28177
  function _nativeEnum2(Class22, entries, params) {
27879
28178
  return new Class22({
27880
28179
  type: "enum",
@@ -27885,6 +28184,7 @@ var require_types_cjs_development = __commonJS({
27885
28184
  __name(_nativeEnum2, "_nativeEnum");
27886
28185
  __name2(_nativeEnum2, "_nativeEnum");
27887
28186
  __name22(_nativeEnum2, "_nativeEnum");
28187
+ // @__NO_SIDE_EFFECTS__
27888
28188
  function _literal2(Class22, value, params) {
27889
28189
  return new Class22({
27890
28190
  type: "literal",
@@ -27895,6 +28195,7 @@ var require_types_cjs_development = __commonJS({
27895
28195
  __name(_literal2, "_literal");
27896
28196
  __name2(_literal2, "_literal");
27897
28197
  __name22(_literal2, "_literal");
28198
+ // @__NO_SIDE_EFFECTS__
27898
28199
  function _file2(Class22, params) {
27899
28200
  return new Class22({
27900
28201
  type: "file",
@@ -27904,6 +28205,7 @@ var require_types_cjs_development = __commonJS({
27904
28205
  __name(_file2, "_file");
27905
28206
  __name2(_file2, "_file");
27906
28207
  __name22(_file2, "_file");
28208
+ // @__NO_SIDE_EFFECTS__
27907
28209
  function _transform2(Class22, fn) {
27908
28210
  return new Class22({
27909
28211
  type: "transform",
@@ -27913,6 +28215,7 @@ var require_types_cjs_development = __commonJS({
27913
28215
  __name(_transform2, "_transform");
27914
28216
  __name2(_transform2, "_transform");
27915
28217
  __name22(_transform2, "_transform");
28218
+ // @__NO_SIDE_EFFECTS__
27916
28219
  function _optional2(Class22, innerType) {
27917
28220
  return new Class22({
27918
28221
  type: "optional",
@@ -27922,6 +28225,7 @@ var require_types_cjs_development = __commonJS({
27922
28225
  __name(_optional2, "_optional");
27923
28226
  __name2(_optional2, "_optional");
27924
28227
  __name22(_optional2, "_optional");
28228
+ // @__NO_SIDE_EFFECTS__
27925
28229
  function _nullable2(Class22, innerType) {
27926
28230
  return new Class22({
27927
28231
  type: "nullable",
@@ -27931,6 +28235,7 @@ var require_types_cjs_development = __commonJS({
27931
28235
  __name(_nullable2, "_nullable");
27932
28236
  __name2(_nullable2, "_nullable");
27933
28237
  __name22(_nullable2, "_nullable");
28238
+ // @__NO_SIDE_EFFECTS__
27934
28239
  function _default3(Class22, innerType, defaultValue) {
27935
28240
  return new Class22({
27936
28241
  type: "default",
@@ -27943,6 +28248,7 @@ var require_types_cjs_development = __commonJS({
27943
28248
  __name(_default3, "_default");
27944
28249
  __name2(_default3, "_default");
27945
28250
  __name22(_default3, "_default");
28251
+ // @__NO_SIDE_EFFECTS__
27946
28252
  function _nonoptional2(Class22, innerType, params) {
27947
28253
  return new Class22({
27948
28254
  type: "nonoptional",
@@ -27953,6 +28259,7 @@ var require_types_cjs_development = __commonJS({
27953
28259
  __name(_nonoptional2, "_nonoptional");
27954
28260
  __name2(_nonoptional2, "_nonoptional");
27955
28261
  __name22(_nonoptional2, "_nonoptional");
28262
+ // @__NO_SIDE_EFFECTS__
27956
28263
  function _success2(Class22, innerType) {
27957
28264
  return new Class22({
27958
28265
  type: "success",
@@ -27962,6 +28269,7 @@ var require_types_cjs_development = __commonJS({
27962
28269
  __name(_success2, "_success");
27963
28270
  __name2(_success2, "_success");
27964
28271
  __name22(_success2, "_success");
28272
+ // @__NO_SIDE_EFFECTS__
27965
28273
  function _catch3(Class22, innerType, catchValue) {
27966
28274
  return new Class22({
27967
28275
  type: "catch",
@@ -27972,6 +28280,7 @@ var require_types_cjs_development = __commonJS({
27972
28280
  __name(_catch3, "_catch");
27973
28281
  __name2(_catch3, "_catch");
27974
28282
  __name22(_catch3, "_catch");
28283
+ // @__NO_SIDE_EFFECTS__
27975
28284
  function _pipe2(Class22, in_, out) {
27976
28285
  return new Class22({
27977
28286
  type: "pipe",
@@ -27982,6 +28291,7 @@ var require_types_cjs_development = __commonJS({
27982
28291
  __name(_pipe2, "_pipe");
27983
28292
  __name2(_pipe2, "_pipe");
27984
28293
  __name22(_pipe2, "_pipe");
28294
+ // @__NO_SIDE_EFFECTS__
27985
28295
  function _readonly2(Class22, innerType) {
27986
28296
  return new Class22({
27987
28297
  type: "readonly",
@@ -27991,6 +28301,7 @@ var require_types_cjs_development = __commonJS({
27991
28301
  __name(_readonly2, "_readonly");
27992
28302
  __name2(_readonly2, "_readonly");
27993
28303
  __name22(_readonly2, "_readonly");
28304
+ // @__NO_SIDE_EFFECTS__
27994
28305
  function _templateLiteral2(Class22, parts, params) {
27995
28306
  return new Class22({
27996
28307
  type: "template_literal",
@@ -28001,6 +28312,7 @@ var require_types_cjs_development = __commonJS({
28001
28312
  __name(_templateLiteral2, "_templateLiteral");
28002
28313
  __name2(_templateLiteral2, "_templateLiteral");
28003
28314
  __name22(_templateLiteral2, "_templateLiteral");
28315
+ // @__NO_SIDE_EFFECTS__
28004
28316
  function _lazy2(Class22, getter) {
28005
28317
  return new Class22({
28006
28318
  type: "lazy",
@@ -28010,6 +28322,7 @@ var require_types_cjs_development = __commonJS({
28010
28322
  __name(_lazy2, "_lazy");
28011
28323
  __name2(_lazy2, "_lazy");
28012
28324
  __name22(_lazy2, "_lazy");
28325
+ // @__NO_SIDE_EFFECTS__
28013
28326
  function _promise2(Class22, innerType) {
28014
28327
  return new Class22({
28015
28328
  type: "promise",
@@ -28019,6 +28332,7 @@ var require_types_cjs_development = __commonJS({
28019
28332
  __name(_promise2, "_promise");
28020
28333
  __name2(_promise2, "_promise");
28021
28334
  __name22(_promise2, "_promise");
28335
+ // @__NO_SIDE_EFFECTS__
28022
28336
  function _custom2(Class22, fn, _params) {
28023
28337
  const norm = normalizeParams2(_params);
28024
28338
  norm.abort ?? (norm.abort = true);
@@ -28033,6 +28347,7 @@ var require_types_cjs_development = __commonJS({
28033
28347
  __name(_custom2, "_custom");
28034
28348
  __name2(_custom2, "_custom");
28035
28349
  __name22(_custom2, "_custom");
28350
+ // @__NO_SIDE_EFFECTS__
28036
28351
  function _refine2(Class22, fn, _params) {
28037
28352
  const schema = new Class22({
28038
28353
  type: "custom",
@@ -28045,6 +28360,7 @@ var require_types_cjs_development = __commonJS({
28045
28360
  __name(_refine2, "_refine");
28046
28361
  __name2(_refine2, "_refine");
28047
28362
  __name22(_refine2, "_refine");
28363
+ // @__NO_SIDE_EFFECTS__
28048
28364
  function _superRefine2(fn, params) {
28049
28365
  const ch = /* @__PURE__ */ _check2((payload) => {
28050
28366
  payload.addIssue = (issue22) => {
@@ -28068,6 +28384,7 @@ var require_types_cjs_development = __commonJS({
28068
28384
  __name(_superRefine2, "_superRefine");
28069
28385
  __name2(_superRefine2, "_superRefine");
28070
28386
  __name22(_superRefine2, "_superRefine");
28387
+ // @__NO_SIDE_EFFECTS__
28071
28388
  function _check2(fn, params) {
28072
28389
  const ch = new $ZodCheck2({
28073
28390
  check: "custom",
@@ -28079,6 +28396,7 @@ var require_types_cjs_development = __commonJS({
28079
28396
  __name(_check2, "_check");
28080
28397
  __name2(_check2, "_check");
28081
28398
  __name22(_check2, "_check");
28399
+ // @__NO_SIDE_EFFECTS__
28082
28400
  function describe3(description) {
28083
28401
  const ch = new $ZodCheck2({ check: "describe" });
28084
28402
  ch._zod.onattach = [
@@ -28094,6 +28412,7 @@ var require_types_cjs_development = __commonJS({
28094
28412
  __name(describe3, "describe");
28095
28413
  __name2(describe3, "describe");
28096
28414
  __name22(describe3, "describe");
28415
+ // @__NO_SIDE_EFFECTS__
28097
28416
  function meta3(metadata) {
28098
28417
  const ch = new $ZodCheck2({ check: "meta" });
28099
28418
  ch._zod.onattach = [
@@ -28109,6 +28428,7 @@ var require_types_cjs_development = __commonJS({
28109
28428
  __name(meta3, "meta");
28110
28429
  __name2(meta3, "meta");
28111
28430
  __name22(meta3, "meta");
28431
+ // @__NO_SIDE_EFFECTS__
28112
28432
  function _stringbool2(Classes, _params) {
28113
28433
  const params = normalizeParams2(_params);
28114
28434
  let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
@@ -28128,7 +28448,7 @@ var require_types_cjs_development = __commonJS({
28128
28448
  type: "pipe",
28129
28449
  in: stringSchema,
28130
28450
  out: booleanSchema,
28131
- transform: /* @__PURE__ */ __name22((input, payload) => {
28451
+ transform: /* @__PURE__ */ __name22(((input, payload) => {
28132
28452
  let data = input;
28133
28453
  if (params.case !== "sensitive")
28134
28454
  data = data.toLowerCase();
@@ -28147,14 +28467,14 @@ var require_types_cjs_development = __commonJS({
28147
28467
  });
28148
28468
  return {};
28149
28469
  }
28150
- }, "transform"),
28151
- reverseTransform: /* @__PURE__ */ __name22((input, _payload) => {
28470
+ }), "transform"),
28471
+ reverseTransform: /* @__PURE__ */ __name22(((input, _payload) => {
28152
28472
  if (input === true) {
28153
28473
  return truthyArray[0] || "true";
28154
28474
  } else {
28155
28475
  return falsyArray[0] || "false";
28156
28476
  }
28157
- }, "reverseTransform"),
28477
+ }), "reverseTransform"),
28158
28478
  error: params.error
28159
28479
  });
28160
28480
  return codec22;
@@ -28162,6 +28482,7 @@ var require_types_cjs_development = __commonJS({
28162
28482
  __name(_stringbool2, "_stringbool");
28163
28483
  __name2(_stringbool2, "_stringbool");
28164
28484
  __name22(_stringbool2, "_stringbool");
28485
+ // @__NO_SIDE_EFFECTS__
28165
28486
  function _stringFormat2(Class22, format, fnOrRegex, _params = {}) {
28166
28487
  const params = normalizeParams2(_params);
28167
28488
  const def = {
@@ -28559,6 +28880,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
28559
28880
  datetime: "date-time",
28560
28881
  json_string: "json-string",
28561
28882
  regex: ""
28883
+ // do not set
28562
28884
  };
28563
28885
  var stringProcessor2 = /* @__PURE__ */ __name22((schema, ctx, _json, _params) => {
28564
28886
  const json22 = _json;
@@ -29097,28 +29419,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29097
29419
  __name(toJSONSchema2, "toJSONSchema");
29098
29420
  __name2(toJSONSchema2, "toJSONSchema");
29099
29421
  __name22(toJSONSchema2, "toJSONSchema");
29100
- var JSONSchemaGenerator2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_f = class {
29422
+ var JSONSchemaGenerator2 = (_f = class {
29423
+ /** @deprecated Access via ctx instead */
29101
29424
  get metadataRegistry() {
29102
29425
  return this.ctx.metadataRegistry;
29103
29426
  }
29427
+ /** @deprecated Access via ctx instead */
29104
29428
  get target() {
29105
29429
  return this.ctx.target;
29106
29430
  }
29431
+ /** @deprecated Access via ctx instead */
29107
29432
  get unrepresentable() {
29108
29433
  return this.ctx.unrepresentable;
29109
29434
  }
29435
+ /** @deprecated Access via ctx instead */
29110
29436
  get override() {
29111
29437
  return this.ctx.override;
29112
29438
  }
29439
+ /** @deprecated Access via ctx instead */
29113
29440
  get io() {
29114
29441
  return this.ctx.io;
29115
29442
  }
29443
+ /** @deprecated Access via ctx instead */
29116
29444
  get counter() {
29117
29445
  return this.ctx.counter;
29118
29446
  }
29119
29447
  set counter(value) {
29120
29448
  this.ctx.counter = value;
29121
29449
  }
29450
+ /** @deprecated Access via ctx instead */
29122
29451
  get seen() {
29123
29452
  return this.ctx.seen;
29124
29453
  }
@@ -29137,9 +29466,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29137
29466
  ...params?.io && { io: params.io }
29138
29467
  });
29139
29468
  }
29469
+ /**
29470
+ * Process a schema to prepare it for JSON Schema generation.
29471
+ * This must be called before emit().
29472
+ */
29140
29473
  process(schema, _params = { path: [], schemaPath: [] }) {
29141
29474
  return process22(schema, this.ctx, _params);
29142
29475
  }
29476
+ /**
29477
+ * Emit the final JSON Schema after processing.
29478
+ * Must call process() first.
29479
+ */
29143
29480
  emit(schema, _params) {
29144
29481
  if (_params) {
29145
29482
  if (_params.cycles)
@@ -29154,11 +29491,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29154
29491
  const { "~standard": _, ...plainResult } = result;
29155
29492
  return plainResult;
29156
29493
  }
29157
- }, "_this"), (() => {
29158
- __name2(_f, "JSONSchemaGenerator");
29159
- })(), (() => {
29160
- __name22(_f, "JSONSchemaGenerator");
29161
- })(), _f), "JSONSchemaGenerator");
29494
+ }, __name(_f, "JSONSchemaGenerator"), __name2(_f, "JSONSchemaGenerator"), __name22(_f, "JSONSchemaGenerator"), _f);
29162
29495
  var json_schema_exports2 = {};
29163
29496
  var schemas_exports22 = {};
29164
29497
  __export22(schemas_exports22, {
@@ -29418,26 +29751,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29418
29751
  Object.defineProperties(inst, {
29419
29752
  format: {
29420
29753
  value: /* @__PURE__ */ __name22((mapper) => formatError2(inst, mapper), "value")
29754
+ // enumerable: false,
29421
29755
  },
29422
29756
  flatten: {
29423
29757
  value: /* @__PURE__ */ __name22((mapper) => flattenError2(inst, mapper), "value")
29758
+ // enumerable: false,
29424
29759
  },
29425
29760
  addIssue: {
29426
29761
  value: /* @__PURE__ */ __name22((issue22) => {
29427
29762
  inst.issues.push(issue22);
29428
29763
  inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer2, 2);
29429
29764
  }, "value")
29765
+ // enumerable: false,
29430
29766
  },
29431
29767
  addIssues: {
29432
29768
  value: /* @__PURE__ */ __name22((issues2) => {
29433
29769
  inst.issues.push(...issues2);
29434
29770
  inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer2, 2);
29435
29771
  }, "value")
29772
+ // enumerable: false,
29436
29773
  },
29437
29774
  isEmpty: {
29438
29775
  get() {
29439
29776
  return inst.issues.length === 0;
29440
29777
  }
29778
+ // enumerable: false,
29441
29779
  }
29442
29780
  });
29443
29781
  }, "initializer");
@@ -30825,6 +31163,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30825
31163
  type: "pipe",
30826
31164
  in: in_,
30827
31165
  out
31166
+ // ...util.normalizeParams(params),
30828
31167
  });
30829
31168
  }
30830
31169
  __name(pipe2, "pipe");
@@ -30946,6 +31285,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30946
31285
  function check2(fn) {
30947
31286
  const ch = new $ZodCheck2({
30948
31287
  check: "custom"
31288
+ // ...util.normalizeParams(params),
30949
31289
  });
30950
31290
  ch._zod.check = fn;
30951
31291
  return ch;
@@ -31058,10 +31398,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31058
31398
  iso: iso_exports2
31059
31399
  };
31060
31400
  var RECOGNIZED_KEYS2 = /* @__PURE__ */ new Set([
31401
+ // Schema identification
31061
31402
  "$schema",
31062
31403
  "$ref",
31063
31404
  "$defs",
31064
31405
  "definitions",
31406
+ // Core schema keywords
31065
31407
  "$id",
31066
31408
  "id",
31067
31409
  "$comment",
@@ -31069,13 +31411,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31069
31411
  "$vocabulary",
31070
31412
  "$dynamicRef",
31071
31413
  "$dynamicAnchor",
31414
+ // Type
31072
31415
  "type",
31073
31416
  "enum",
31074
31417
  "const",
31418
+ // Composition
31075
31419
  "anyOf",
31076
31420
  "oneOf",
31077
31421
  "allOf",
31078
31422
  "not",
31423
+ // Object
31079
31424
  "properties",
31080
31425
  "required",
31081
31426
  "additionalProperties",
@@ -31083,6 +31428,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31083
31428
  "propertyNames",
31084
31429
  "minProperties",
31085
31430
  "maxProperties",
31431
+ // Array
31086
31432
  "items",
31087
31433
  "prefixItems",
31088
31434
  "additionalItems",
@@ -31092,20 +31438,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31092
31438
  "contains",
31093
31439
  "minContains",
31094
31440
  "maxContains",
31441
+ // String
31095
31442
  "minLength",
31096
31443
  "maxLength",
31097
31444
  "pattern",
31098
31445
  "format",
31446
+ // Number
31099
31447
  "minimum",
31100
31448
  "maximum",
31101
31449
  "exclusiveMinimum",
31102
31450
  "exclusiveMaximum",
31103
31451
  "multipleOf",
31452
+ // Already handled metadata
31104
31453
  "description",
31105
31454
  "default",
31455
+ // Content
31106
31456
  "contentEncoding",
31107
31457
  "contentMediaType",
31108
31458
  "contentSchema",
31459
+ // Unsupported (error-throwing)
31109
31460
  "unevaluatedItems",
31110
31461
  "unevaluatedProperties",
31111
31462
  "if",
@@ -31113,6 +31464,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31113
31464
  "else",
31114
31465
  "dependentSchemas",
31115
31466
  "dependentRequired",
31467
+ // OpenAPI
31116
31468
  "nullable",
31117
31469
  "readOnly"
31118
31470
  ]);
@@ -31634,12 +31986,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31634
31986
  phone: external_exports2.string().optional(),
31635
31987
  description: external_exports2.string().optional(),
31636
31988
  endorsement: external_exports2.any().array().optional(),
31989
+ // Recursive type
31637
31990
  image: ImageValidator2.optional(),
31638
31991
  email: external_exports2.string().email().optional(),
31639
31992
  address: AddressValidator2.optional(),
31640
31993
  otherIdentifier: IdentifierEntryValidator2.array().optional(),
31641
31994
  official: external_exports2.string().optional(),
31642
31995
  parentOrg: external_exports2.any().optional(),
31996
+ // Recursive types are annoying =(
31643
31997
  familyName: external_exports2.string().optional(),
31644
31998
  givenName: external_exports2.string().optional(),
31645
31999
  additionalName: external_exports2.string().optional(),
@@ -31687,11 +32041,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31687
32041
  credentialSchema: CredentialSchemaValidator2.or(
31688
32042
  CredentialSchemaValidator2.array()
31689
32043
  ).optional(),
32044
+ // V1
31690
32045
  issuanceDate: external_exports2.string().optional(),
31691
32046
  expirationDate: external_exports2.string().optional(),
31692
32047
  credentialStatus: CredentialStatusValidator2.or(
31693
32048
  CredentialStatusValidator2.array()
31694
32049
  ).optional(),
32050
+ // V2
31695
32051
  name: external_exports2.string().optional(),
31696
32052
  description: external_exports2.string().optional(),
31697
32053
  validFrom: external_exports2.string().optional(),
@@ -32020,26 +32376,59 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32020
32376
  data: external_exports2.string()
32021
32377
  }).passthrough();
32022
32378
  var isStoredCredentialEnvelope2 = /* @__PURE__ */ __name22((value) => {
32023
- if (!value || typeof value !== "object")
32024
- return false;
32379
+ if (!value || typeof value !== "object") return false;
32025
32380
  const candidate = value;
32026
- if (typeof candidate.format !== "string")
32027
- return false;
32028
- if (!CredentialFormatValidator2.safeParse(candidate.format).success)
32029
- return false;
32381
+ if (typeof candidate.format !== "string") return false;
32382
+ if (!CredentialFormatValidator2.safeParse(candidate.format).success) return false;
32030
32383
  return typeof candidate.data === "string" || candidate.data instanceof Uint8Array;
32031
32384
  }, "isStoredCredentialEnvelope");
32032
32385
  var StatusCheckEntryValidator2 = external_exports2.object({
32386
+ /**
32387
+ * The `credentialStatus.type` as it appeared on the credential.
32388
+ * One of `BitstringStatusListEntry`, `StatusList2021Entry`,
32389
+ * `RevocationList2020Status`, or any future custom status type.
32390
+ */
32033
32391
  entryType: external_exports2.string(),
32392
+ /**
32393
+ * The claimed purpose of the entry. Standard values are
32394
+ * `"revocation"` and `"suspension"`; the spec allows arbitrary
32395
+ * strings.
32396
+ */
32034
32397
  statusPurpose: external_exports2.string(),
32398
+ /**
32399
+ * Whether the bit at the credential's index in the status list
32400
+ * bitstring was set.
32401
+ */
32035
32402
  isSet: external_exports2.boolean(),
32403
+ /** URL of the status list credential, when known. */
32036
32404
  statusListCredential: external_exports2.string().optional(),
32405
+ /** Original (string) index within the status list. */
32037
32406
  statusListIndex: external_exports2.string().optional()
32038
32407
  });
32039
32408
  var VerificationCheckValidator2 = external_exports2.object({
32409
+ /**
32410
+ * Checks that completed successfully. This does not imply that warnings can be ignored.
32411
+ */
32040
32412
  checks: external_exports2.string().array(),
32413
+ /**
32414
+ * Security-relevant conditions that did not prevent the requested cryptographic checks from
32415
+ * completing. In particular, a non-DID issuer warning means the signature is valid but the
32416
+ * named URL issuer's authorization of that signing key was not established.
32417
+ */
32041
32418
  warnings: external_exports2.string().array(),
32419
+ /** Verification failures that prevented one or more requested checks from succeeding. */
32042
32420
  errors: external_exports2.string().array(),
32421
+ /**
32422
+ * Per-entry results for the `credentialStatus` check, populated
32423
+ * by `@learncard/didkit-plugin` when the verified credential
32424
+ * carries one or more `credentialStatus` entries. Empty / absent
32425
+ * for credentials without a status entry.
32426
+ *
32427
+ * Marked `.optional()` because the underlying `ssi-ldp`
32428
+ * serializer omits the field when empty (`skip_serializing_if`),
32429
+ * so older WASM builds that pre-date the structured-status
32430
+ * change still validate against this schema.
32431
+ */
32043
32432
  status: StatusCheckEntryValidator2.array().optional()
32044
32433
  });
32045
32434
  var VerificationStatusValidator2 = external_exports2.enum(["Success", "Failed", "Error"]);
@@ -32085,8 +32474,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32085
32474
  });
32086
32475
  var parseRegexString2 = /* @__PURE__ */ __name22((regexStr) => {
32087
32476
  const match = regexStr.match(/^\/(.*)\/([gimsuy]*)$/);
32088
- if (!match)
32089
- throw new Error("Invalid RegExp string format");
32477
+ if (!match) throw new Error("Invalid RegExp string format");
32090
32478
  return { pattern: match[1], flags: match[2] };
32091
32479
  }, "parseRegexString");
32092
32480
  var RegExpStringValidator2 = external_exports2.string().refine(
@@ -32172,6 +32560,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32172
32560
  isServiceProfile: true,
32173
32561
  display: true
32174
32562
  });
32563
+ var LCNConnectionPromptStatusValidator2 = external_exports2.enum(["PENDING", "SKIPPED", "CONNECTED"]);
32564
+ var LCNConnectionPromptSurfaceValidator2 = external_exports2.enum(["POST_CLAIM", "NOTIFICATION"]);
32565
+ var LCNConnectionPromptActionStatusValidator2 = external_exports2.enum([
32566
+ "PENDING",
32567
+ "SKIPPED",
32568
+ "CONNECTED",
32569
+ "STALE"
32570
+ ]);
32571
+ var LCNConnectionPromptValidator2 = external_exports2.object({
32572
+ promptId: external_exports2.string().uuid(),
32573
+ status: LCNConnectionPromptStatusValidator2,
32574
+ surface: LCNConnectionPromptSurfaceValidator2,
32575
+ triggerId: external_exports2.string(),
32576
+ triggeredAt: external_exports2.iso.datetime(),
32577
+ updatedAt: external_exports2.iso.datetime(),
32578
+ counterpart: LCNPublicProfileValidator2
32579
+ });
32580
+ var LCNConnectionPromptActionResultValidator2 = external_exports2.object({
32581
+ promptId: external_exports2.string().uuid(),
32582
+ status: LCNConnectionPromptActionStatusValidator2
32583
+ });
32584
+ var LCNConnectionPromptMetadataValidator2 = external_exports2.object({
32585
+ promptId: external_exports2.string().uuid(),
32586
+ counterpartProfileId: external_exports2.string()
32587
+ });
32175
32588
  var LCNAuthedProfileValidator2 = LCNPublicProfileValidator2.extend({
32176
32589
  bio: LCNProfileValidator2.shape.bio,
32177
32590
  websiteLink: LCNProfileValidator2.shape.websiteLink,
@@ -32722,7 +33135,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32722
33135
  "PENDING",
32723
33136
  "ISSUED",
32724
33137
  "EXPIRED",
33138
+ /* DEPRECATED — use ISSUED */
32725
33139
  "DELIVERED",
33140
+ /* DEPRECATED — use ISSUED */
32726
33141
  "CLAIMED"
32727
33142
  ]);
32728
33143
  var LCNNotificationInboxValidator2 = external_exports2.object({
@@ -32734,12 +33149,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32734
33149
  }),
32735
33150
  timestamp: external_exports2.iso.datetime().optional()
32736
33151
  });
33152
+ var LCNNotificationMetadataValidator2 = external_exports2.object({
33153
+ connectionPrompt: LCNConnectionPromptMetadataValidator2.optional()
33154
+ }).catchall(external_exports2.unknown());
32737
33155
  var LCNNotificationDataValidator2 = external_exports2.object({
32738
33156
  vcUris: external_exports2.array(external_exports2.string()).optional(),
32739
33157
  vpUris: external_exports2.array(external_exports2.string()).optional(),
32740
33158
  transaction: ConsentFlowTransactionValidator2.optional(),
32741
33159
  inbox: LCNNotificationInboxValidator2.optional(),
32742
- metadata: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional()
33160
+ metadata: LCNNotificationMetadataValidator2.optional()
32743
33161
  }).loose();
32744
33162
  var LCNNotificationValidator2 = external_exports2.object({
32745
33163
  type: LCNNotificationTypeEnumValidator2,
@@ -32758,8 +33176,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32758
33176
  challenge: external_exports2.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
32759
33177
  status: external_exports2.enum(["revoked", "active"], {
32760
33178
  error: /* @__PURE__ */ __name22((issue22) => {
32761
- if (issue22.code === "invalid_value")
32762
- return "Status must be either active or revoked";
33179
+ if (issue22.code === "invalid_value") return "Status must be either active or revoked";
32763
33180
  return "Status is required";
32764
33181
  }, "error")
32765
33182
  }),
@@ -32790,6 +33207,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32790
33207
  external_exports2.object({
32791
33208
  type: external_exports2.literal("phone"),
32792
33209
  value: external_exports2.string()
33210
+ // Can be improved with a regex later
32793
33211
  }).merge(contactMethodBase2)
32794
33212
  ]);
32795
33213
  var createContactMethodBase2 = external_exports2.object({
@@ -32850,6 +33268,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32850
33268
  endpoint: external_exports2.string().optional(),
32851
33269
  name: external_exports2.string().optional()
32852
33270
  }).optional(),
33271
+ // Guardian gate fields (all optional — absent on pre-existing credentials)
32853
33272
  guardianEmail: external_exports2.string().email().optional(),
32854
33273
  guardianStatus: GuardianStatusValidator2.optional(),
32855
33274
  guardianApprovedAt: external_exports2.string().optional(),
@@ -32873,13 +33292,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32873
33292
  name: external_exports2.string()
32874
33293
  });
32875
33294
  var IssueInboxCredentialValidator2 = external_exports2.object({
33295
+ // === CORE DATA (Required) ===
33296
+ // WHAT is being sent and WHO is it for?
32876
33297
  recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
33298
+ // Either credential OR templateUri must be provided
32877
33299
  credential: VCValidator2.or(VPValidator2).or(UnsignedVCValidator2).optional().describe(
32878
33300
  "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
32879
33301
  ),
32880
33302
  templateUri: external_exports2.string().optional().describe(
32881
33303
  "URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
32882
33304
  ),
33305
+ // === OPTIONAL FEATURES ===
33306
+ // Add major, distinct features at the top level.
33307
+ //consentRequest: ConsentRequestValidator.optional(),
33308
+ // === PROCESS CONFIGURATION (Optional) ===
33309
+ // HOW should this issuance be handled?
32883
33310
  configuration: external_exports2.object({
32884
33311
  signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
32885
33312
  "The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."
@@ -32889,6 +33316,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32889
33316
  templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional().describe(
32890
33317
  "Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
32891
33318
  ),
33319
+ // --- For User-Facing Delivery (Email/SMS) ---
32892
33320
  delivery: external_exports2.object({
32893
33321
  suppress: external_exports2.boolean().optional().default(false).describe(
32894
33322
  "Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."
@@ -32971,9 +33399,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32971
33399
  description: external_exports2.string().optional(),
32972
33400
  publishableKey: external_exports2.string(),
32973
33401
  whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator2).default([]),
33402
+ // Setup/onboarding status
32974
33403
  status: LCNIntegrationStatusEnum2.default("setup"),
32975
33404
  guideType: external_exports2.string().optional(),
32976
33405
  guideState: external_exports2.record(external_exports2.string(), external_exports2.any()).optional(),
33406
+ // Timestamps
32977
33407
  createdAt: external_exports2.string().optional(),
32978
33408
  updatedAt: external_exports2.string().optional()
32979
33409
  });
@@ -32988,6 +33418,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32988
33418
  description: external_exports2.string().optional(),
32989
33419
  whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator2).optional(),
32990
33420
  rotatePublishableKey: external_exports2.boolean().optional(),
33421
+ // Setup/onboarding updates
32991
33422
  status: LCNIntegrationStatusEnum2.optional(),
32992
33423
  guideType: external_exports2.string().optional(),
32993
33424
  guideState: external_exports2.record(external_exports2.string(), external_exports2.any()).optional()
@@ -33454,17 +33885,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33454
33885
  failed: external_exports2.number(),
33455
33886
  claimRate: external_exports2.number()
33456
33887
  });
33457
- var AuthSessionError2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_g = class extends Error {
33888
+ var AuthSessionError2 = (_g = class extends Error {
33458
33889
  constructor(message, reason) {
33459
33890
  super(message);
33460
33891
  this.reason = reason;
33461
33892
  this.name = "AuthSessionError";
33462
33893
  }
33463
- }, "_this"), (() => {
33464
- __name2(_g, "AuthSessionError");
33465
- })(), (() => {
33466
- __name22(_g, "AuthSessionError");
33467
- })(), _g), "AuthSessionError");
33894
+ }, __name(_g, "AuthSessionError"), __name2(_g, "AuthSessionError"), __name22(_g, "AuthSessionError"), _g);
33468
33895
  var BITSTRING_STATUS_PURPOSES2 = ["revocation", "suspension"];
33469
33896
  var DEFAULT_BITSTRING_STATUS_LIST_SIZE = 131072;
33470
33897
  var BitstringStatusPurposeValidator2 = external_exports2.enum(BITSTRING_STATUS_PURPOSES2);
@@ -33532,12 +33959,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33532
33959
  label: external_exports2.string(),
33533
33960
  style: inAppMessageActionStyleValidator2,
33534
33961
  action: inAppMessageActionTargetValidator2,
33962
+ /** When true, the message closes after this action runs (default true). */
33535
33963
  closeOnComplete: external_exports2.boolean().default(true)
33536
33964
  }).passthrough();
33537
33965
  var inAppMessageMediaValidator2 = external_exports2.object({
33538
33966
  type: external_exports2.enum(["youtube", "image", "gif"]),
33539
33967
  url: external_exports2.string(),
33968
+ /** Aspect ratio hint, e.g. "16:9" or "1:1". Defaults to 16:9. */
33540
33969
  aspect: external_exports2.string().default("16:9"),
33970
+ /** Alt text for images/gifs (accessibility). */
33541
33971
  alt: external_exports2.string().optional()
33542
33972
  }).passthrough();
33543
33973
  var inAppMessageFrequencyValidator2 = external_exports2.union([
@@ -33548,17 +33978,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33548
33978
  ]).default("once");
33549
33979
  var inAppMessagePresentationValidator2 = external_exports2.enum(["modal", "banner", "toast"]).default("modal");
33550
33980
  var inAppMessageValidator2 = external_exports2.object({
33981
+ /** Stable identifier — used to persist dismissal / frequency state. */
33551
33982
  id: external_exports2.string(),
33983
+ /** Higher priority wins when multiple messages match. Default 0. */
33552
33984
  priority: external_exports2.number().default(0),
33985
+ /** When false, the message is required/blocking (no dismiss affordance). */
33553
33986
  dismissible: external_exports2.boolean().default(true),
33554
33987
  frequency: inAppMessageFrequencyValidator2,
33555
33988
  presentation: inAppMessagePresentationValidator2,
33556
33989
  media: inAppMessageMediaValidator2.optional(),
33990
+ /** Optional emoji hero glyph — rendered only when `media` is not set. */
33557
33991
  emoji: external_exports2.string().optional(),
33558
33992
  title: external_exports2.string(),
33559
33993
  body: external_exports2.string().optional(),
33560
33994
  actions: external_exports2.array(inAppMessageActionValidator2).default([]),
33995
+ /** Targeting predicate tree. Omitted → matches everyone. */
33561
33996
  targeting: inAppMessagePredicateValidator2.optional(),
33997
+ /** Allow disabling a message without removing it from the flag. */
33562
33998
  enabled: external_exports2.boolean().default(true)
33563
33999
  }).passthrough();
33564
34000
  var inAppMessagesFlagValidator2 = external_exports2.object({
@@ -33585,17 +34021,17 @@ var require_dist = __commonJS({
33585
34021
  var import_types2 = __toESM(require_dist());
33586
34022
  var filestack_helpers_exports = {};
33587
34023
  __export2(filestack_helpers_exports, {
33588
- changeQuality: () => changeQuality,
33589
- fileTypeSupportsPreview: () => fileTypeSupportsPreview,
33590
- fixSrcSetString: () => fixSrcSetString,
33591
- fixUrl: () => fixUrl,
33592
- generateSrcSet: () => generateSrcSet,
33593
- getFileType: () => getFileType,
33594
- getFilestackHandle: () => getFilestackHandle,
33595
- getUrlFromUrlParams: () => getUrlFromUrlParams,
33596
- getUrlParams: () => getUrlParams,
33597
- resizeAndChangeQuality: () => resizeAndChangeQuality,
33598
- resizeUrl: () => resizeUrl
34024
+ changeQuality: /* @__PURE__ */ __name(() => changeQuality, "changeQuality"),
34025
+ fileTypeSupportsPreview: /* @__PURE__ */ __name(() => fileTypeSupportsPreview, "fileTypeSupportsPreview"),
34026
+ fixSrcSetString: /* @__PURE__ */ __name(() => fixSrcSetString, "fixSrcSetString"),
34027
+ fixUrl: /* @__PURE__ */ __name(() => fixUrl, "fixUrl"),
34028
+ generateSrcSet: /* @__PURE__ */ __name(() => generateSrcSet, "generateSrcSet"),
34029
+ getFileType: /* @__PURE__ */ __name(() => getFileType, "getFileType"),
34030
+ getFilestackHandle: /* @__PURE__ */ __name(() => getFilestackHandle, "getFilestackHandle"),
34031
+ getUrlFromUrlParams: /* @__PURE__ */ __name(() => getUrlFromUrlParams, "getUrlFromUrlParams"),
34032
+ getUrlParams: /* @__PURE__ */ __name(() => getUrlParams, "getUrlParams"),
34033
+ resizeAndChangeQuality: /* @__PURE__ */ __name(() => resizeAndChangeQuality, "resizeAndChangeQuality"),
34034
+ resizeUrl: /* @__PURE__ */ __name(() => resizeUrl, "resizeUrl")
33599
34035
  });
33600
34036
  var getUrlParams = /* @__PURE__ */ __name2((url2) => url2.split(".com/")[1].split("/"), "getUrlParams");
33601
34037
  var getUrlFromUrlParams = /* @__PURE__ */ __name2((urlParams) => `https://cdn.filestackcontent.com/${urlParams.join("/")}`, "getUrlFromUrlParams");
@@ -33616,20 +34052,20 @@ var getFileType = /* @__PURE__ */ __name2(async (url2) => {
33616
34052
  var fileTypeSupportsPreview = /* @__PURE__ */ __name2((fileType) => {
33617
34053
  const unsupportedFileTypes = [
33618
34054
  "application/vnd.apple.pages",
34055
+ // .pages
33619
34056
  "application/vnd.apple.numbers",
34057
+ // .numbers
33620
34058
  "application/x-iwork-keynote-sffkey"
34059
+ // .key
33621
34060
  ];
33622
34061
  return !unsupportedFileTypes.includes(fileType);
33623
34062
  }, "fileTypeSupportsPreview");
33624
34063
  var fixUrl = /* @__PURE__ */ __name2((url2, mimetype, webp = false) => {
33625
- if (url2.split(" ").length > 1)
33626
- return fixSrcSetString(url2, mimetype, webp);
34064
+ if (url2.split(" ").length > 1) return fixSrcSetString(url2, mimetype, webp);
33627
34065
  const urlParams = getUrlParams(url2).filter((param) => param !== "rotate=deg:exif");
33628
34066
  urlParams.splice(0, 0, "rotate=deg:exif");
33629
- if (mimetype !== "image/gif")
33630
- urlParams.splice(-1, 0, "auto_image");
33631
- if (webp)
33632
- urlParams.splice(-1, 0, "output=format:webp");
34067
+ if (mimetype !== "image/gif") urlParams.splice(-1, 0, "auto_image");
34068
+ if (webp) urlParams.splice(-1, 0, "output=format:webp");
33633
34069
  return getUrlFromUrlParams(urlParams);
33634
34070
  }, "fixUrl");
33635
34071
  var fixSrcSetString = /* @__PURE__ */ __name2((srcSetString, mimetype, webp = false) => {
@@ -33638,18 +34074,14 @@ var fixSrcSetString = /* @__PURE__ */ __name2((srcSetString, mimetype, webp = fa
33638
34074
  }, "fixSrcSetString");
33639
34075
  var resizeUrl = /* @__PURE__ */ __name2((url2, size) => {
33640
34076
  const urlParams = getUrlParams(url2).filter((param) => !param.match(/resize.*/));
33641
- if (urlParams.includes("rotate=deg:exif"))
33642
- urlParams.splice(1, 0, `resize=width:${size}`);
33643
- else
33644
- urlParams.splice(0, 0, `resize=width:${size}`);
34077
+ if (urlParams.includes("rotate=deg:exif")) urlParams.splice(1, 0, `resize=width:${size}`);
34078
+ else urlParams.splice(0, 0, `resize=width:${size}`);
33645
34079
  return getUrlFromUrlParams(urlParams);
33646
34080
  }, "resizeUrl");
33647
34081
  var changeQuality = /* @__PURE__ */ __name2((url2, quality) => {
33648
34082
  const urlParams = getUrlParams(url2).filter((param) => !param.match(/quality.*/));
33649
- if (urlParams.includes("rotate=deg:exif"))
33650
- urlParams.splice(1, 0, `quality=value:${quality}`);
33651
- else
33652
- urlParams.splice(0, 0, `quality=value:${quality}`);
34083
+ if (urlParams.includes("rotate=deg:exif")) urlParams.splice(1, 0, `quality=value:${quality}`);
34084
+ else urlParams.splice(0, 0, `quality=value:${quality}`);
33653
34085
  return getUrlFromUrlParams(urlParams);
33654
34086
  }, "changeQuality");
33655
34087
  var resizeAndChangeQuality = /* @__PURE__ */ __name2((url2, size, quality, {
@@ -33670,12 +34102,12 @@ var generateSrcSet = /* @__PURE__ */ __name2((url2, resolutions, {
33670
34102
  }, "generateSrcSet");
33671
34103
  var unsplash_helpers_exports = {};
33672
34104
  __export2(unsplash_helpers_exports, {
33673
- changeQuality: () => changeQuality2,
33674
- fixSrcSetString: () => fixSrcSetString2,
33675
- fixUrl: () => fixUrl2,
33676
- generateSrcSet: () => generateSrcSet2,
33677
- resizeAndChangeQuality: () => resizeAndChangeQuality2,
33678
- resizeUrl: () => resizeUrl2
34105
+ changeQuality: /* @__PURE__ */ __name(() => changeQuality2, "changeQuality"),
34106
+ fixSrcSetString: /* @__PURE__ */ __name(() => fixSrcSetString2, "fixSrcSetString"),
34107
+ fixUrl: /* @__PURE__ */ __name(() => fixUrl2, "fixUrl"),
34108
+ generateSrcSet: /* @__PURE__ */ __name(() => generateSrcSet2, "generateSrcSet"),
34109
+ resizeAndChangeQuality: /* @__PURE__ */ __name(() => resizeAndChangeQuality2, "resizeAndChangeQuality"),
34110
+ resizeUrl: /* @__PURE__ */ __name(() => resizeUrl2, "resizeUrl")
33679
34111
  });
33680
34112
  var parseUrl = /* @__PURE__ */ __name2((input) => {
33681
34113
  const hashIndex = input.indexOf("#");
@@ -33685,8 +34117,7 @@ var parseUrl = /* @__PURE__ */ __name2((input) => {
33685
34117
  const url2 = queryIndex === -1 ? withoutFragment : withoutFragment.slice(0, queryIndex);
33686
34118
  const search = queryIndex === -1 ? "" : withoutFragment.slice(queryIndex + 1);
33687
34119
  const query = {};
33688
- for (const [key, value] of new URLSearchParams(search))
33689
- query[key] = value;
34120
+ for (const [key, value] of new URLSearchParams(search)) query[key] = value;
33690
34121
  return {
33691
34122
  url: url2,
33692
34123
  query,
@@ -33696,8 +34127,7 @@ var parseUrl = /* @__PURE__ */ __name2((input) => {
33696
34127
  var stringifyUrl = /* @__PURE__ */ __name2((parsed) => {
33697
34128
  const params = new URLSearchParams();
33698
34129
  for (const [key, value] of Object.entries(parsed.query)) {
33699
- if (value === void 0 || value === null)
33700
- continue;
34130
+ if (value === void 0 || value === null) continue;
33701
34131
  params.append(key, String(value));
33702
34132
  }
33703
34133
  const search = params.toString().replace(/\+/g, "%20");
@@ -33709,8 +34139,7 @@ var fixSrcSetString2 = /* @__PURE__ */ __name2((srcSetString, _mimetype, _webp =
33709
34139
  return urls.map(([url2, width]) => `${fixUrl2(url2)} ${width}`).join(", ");
33710
34140
  }, "fixSrcSetString");
33711
34141
  var fixUrl2 = /* @__PURE__ */ __name2((url2, _mimetype, _webp = false) => {
33712
- if (url2.split(" ").length > 1)
33713
- return fixSrcSetString2(url2);
34142
+ if (url2.split(" ").length > 1) return fixSrcSetString2(url2);
33714
34143
  const parsedUrl = parseUrl(url2);
33715
34144
  parsedUrl.query.auto = "format";
33716
34145
  return stringifyUrl(parsedUrl);
@@ -33735,18 +34164,17 @@ var generateSrcSet2 = /* @__PURE__ */ __name2((url2, resolutions, { fix = false
33735
34164
  }, "generateSrcSet");
33736
34165
  var discord_helpers_exports = {};
33737
34166
  __export2(discord_helpers_exports, {
33738
- VALID_DISCORD_SIZES: () => VALID_DISCORD_SIZES,
33739
- changeQuality: () => changeQuality3,
33740
- fixSrcSetString: () => fixSrcSetString3,
33741
- fixUrl: () => fixUrl3,
33742
- generateSrcSet: () => generateSrcSet3,
33743
- resizeAndChangeQuality: () => resizeAndChangeQuality3,
33744
- resizeUrl: () => resizeUrl3
34167
+ VALID_DISCORD_SIZES: /* @__PURE__ */ __name(() => VALID_DISCORD_SIZES, "VALID_DISCORD_SIZES"),
34168
+ changeQuality: /* @__PURE__ */ __name(() => changeQuality3, "changeQuality"),
34169
+ fixSrcSetString: /* @__PURE__ */ __name(() => fixSrcSetString3, "fixSrcSetString"),
34170
+ fixUrl: /* @__PURE__ */ __name(() => fixUrl3, "fixUrl"),
34171
+ generateSrcSet: /* @__PURE__ */ __name(() => generateSrcSet3, "generateSrcSet"),
34172
+ resizeAndChangeQuality: /* @__PURE__ */ __name(() => resizeAndChangeQuality3, "resizeAndChangeQuality"),
34173
+ resizeUrl: /* @__PURE__ */ __name(() => resizeUrl3, "resizeUrl")
33745
34174
  });
33746
34175
  var quantizeValue = /* @__PURE__ */ __name2((value, array2) => {
33747
34176
  const foundIndex = array2.findIndex((number4) => number4 === value);
33748
- if (foundIndex > -1)
33749
- return array2[foundIndex];
34177
+ if (foundIndex > -1) return array2[foundIndex];
33750
34178
  const closestIndex = array2.reduce(
33751
34179
  (closest, current2, index) => {
33752
34180
  const currentDistance = Math.abs(current2 - value);
@@ -33784,8 +34212,7 @@ var generateSrcSet3 = /* @__PURE__ */ __name2((url2, resolutions, { fix = false
33784
34212
  }, "generateSrcSet");
33785
34213
  var getUrlsFromSrcSet = /* @__PURE__ */ __name2((srcSet) => {
33786
34214
  return srcSet.split(/,? /).reduce((accumulator, current2, index, array2) => {
33787
- if (index % 2 === 0)
33788
- return accumulator;
34215
+ if (index % 2 === 0) return accumulator;
33789
34216
  accumulator.push([array2[index - 1], current2]);
33790
34217
  return accumulator;
33791
34218
  }, []);
@@ -33794,18 +34221,14 @@ function innerImmerOuterImmer(setState, field, value) {
33794
34221
  if (value === void 0) {
33795
34222
  return (innerValue) => {
33796
34223
  setState((oldState) => {
33797
- if (typeof innerValue === "function")
33798
- innerValue(oldState[field]);
33799
- else
33800
- oldState[field] = innerValue;
34224
+ if (typeof innerValue === "function") innerValue(oldState[field]);
34225
+ else oldState[field] = innerValue;
33801
34226
  });
33802
34227
  };
33803
34228
  }
33804
34229
  setState((oldState) => {
33805
- if (typeof value === "function")
33806
- value(oldState[field]);
33807
- else
33808
- oldState[field] = value;
34230
+ if (typeof value === "function") value(oldState[field]);
34231
+ else oldState[field] = value;
33809
34232
  });
33810
34233
  }
33811
34234
  __name(innerImmerOuterImmer, "innerImmerOuterImmer");
@@ -33815,10 +34238,8 @@ function innerReactOuterImmer(setState, field, value) {
33815
34238
  if (value === void 0) {
33816
34239
  return (innerValue) => {
33817
34240
  setState((oldState) => {
33818
- if (typeof innerValue === "function")
33819
- innerValue(oldState[field]);
33820
- else
33821
- oldState[field] = innerValue;
34241
+ if (typeof innerValue === "function") innerValue(oldState[field]);
34242
+ else oldState[field] = innerValue;
33822
34243
  });
33823
34244
  };
33824
34245
  }
@@ -33834,14 +34255,12 @@ function innerImmerOuterReact(setState, field, value) {
33834
34255
  return (innerValue) => {
33835
34256
  if (typeof innerValue === "function") {
33836
34257
  setState(produce((oldState) => innerValue(oldState[field])));
33837
- } else
33838
- setState((oldState) => ({ ...oldState, [field]: innerValue }));
34258
+ } else setState((oldState) => ({ ...oldState, [field]: innerValue }));
33839
34259
  };
33840
34260
  }
33841
34261
  if (typeof value === "function") {
33842
34262
  setState(produce((oldState) => value(oldState[field])));
33843
- } else
33844
- setState((oldState) => ({ ...oldState, [field]: value }));
34263
+ } else setState((oldState) => ({ ...oldState, [field]: value }));
33845
34264
  }
33846
34265
  __name(innerImmerOuterReact, "innerImmerOuterReact");
33847
34266
  __name2(innerImmerOuterReact, "innerImmerOuterReact");
@@ -33954,12 +34373,14 @@ var ProfileValidator = external_exports.string().or(
33954
34373
  phone: external_exports.string().optional(),
33955
34374
  description: external_exports.string().optional(),
33956
34375
  endorsement: external_exports.any().array().optional(),
34376
+ // Recursive type
33957
34377
  image: ImageValidator.optional(),
33958
34378
  email: external_exports.string().email().optional(),
33959
34379
  address: AddressValidator.optional(),
33960
34380
  otherIdentifier: IdentifierEntryValidator.array().optional(),
33961
34381
  official: external_exports.string().optional(),
33962
34382
  parentOrg: external_exports.any().optional(),
34383
+ // Recursive types are annoying =(
33963
34384
  familyName: external_exports.string().optional(),
33964
34385
  givenName: external_exports.string().optional(),
33965
34386
  additionalName: external_exports.string().optional(),
@@ -34007,11 +34428,13 @@ var UnsignedVCValidator = external_exports.object({
34007
34428
  credentialSchema: CredentialSchemaValidator.or(
34008
34429
  CredentialSchemaValidator.array()
34009
34430
  ).optional(),
34431
+ // V1
34010
34432
  issuanceDate: external_exports.string().optional(),
34011
34433
  expirationDate: external_exports.string().optional(),
34012
34434
  credentialStatus: CredentialStatusValidator.or(
34013
34435
  CredentialStatusValidator.array()
34014
34436
  ).optional(),
34437
+ // V2
34015
34438
  name: external_exports.string().optional(),
34016
34439
  description: external_exports.string().optional(),
34017
34440
  validFrom: external_exports.string().optional(),
@@ -34340,16 +34763,52 @@ var StoredCredentialEnvelopeValidator = external_exports.object({
34340
34763
  data: external_exports.string()
34341
34764
  }).passthrough();
34342
34765
  var StatusCheckEntryValidator = external_exports.object({
34766
+ /**
34767
+ * The `credentialStatus.type` as it appeared on the credential.
34768
+ * One of `BitstringStatusListEntry`, `StatusList2021Entry`,
34769
+ * `RevocationList2020Status`, or any future custom status type.
34770
+ */
34343
34771
  entryType: external_exports.string(),
34772
+ /**
34773
+ * The claimed purpose of the entry. Standard values are
34774
+ * `"revocation"` and `"suspension"`; the spec allows arbitrary
34775
+ * strings.
34776
+ */
34344
34777
  statusPurpose: external_exports.string(),
34778
+ /**
34779
+ * Whether the bit at the credential's index in the status list
34780
+ * bitstring was set.
34781
+ */
34345
34782
  isSet: external_exports.boolean(),
34783
+ /** URL of the status list credential, when known. */
34346
34784
  statusListCredential: external_exports.string().optional(),
34785
+ /** Original (string) index within the status list. */
34347
34786
  statusListIndex: external_exports.string().optional()
34348
34787
  });
34349
34788
  var VerificationCheckValidator = external_exports.object({
34789
+ /**
34790
+ * Checks that completed successfully. This does not imply that warnings can be ignored.
34791
+ */
34350
34792
  checks: external_exports.string().array(),
34793
+ /**
34794
+ * Security-relevant conditions that did not prevent the requested cryptographic checks from
34795
+ * completing. In particular, a non-DID issuer warning means the signature is valid but the
34796
+ * named URL issuer's authorization of that signing key was not established.
34797
+ */
34351
34798
  warnings: external_exports.string().array(),
34799
+ /** Verification failures that prevented one or more requested checks from succeeding. */
34352
34800
  errors: external_exports.string().array(),
34801
+ /**
34802
+ * Per-entry results for the `credentialStatus` check, populated
34803
+ * by `@learncard/didkit-plugin` when the verified credential
34804
+ * carries one or more `credentialStatus` entries. Empty / absent
34805
+ * for credentials without a status entry.
34806
+ *
34807
+ * Marked `.optional()` because the underlying `ssi-ldp`
34808
+ * serializer omits the field when empty (`skip_serializing_if`),
34809
+ * so older WASM builds that pre-date the structured-status
34810
+ * change still validate against this schema.
34811
+ */
34353
34812
  status: StatusCheckEntryValidator.array().optional()
34354
34813
  });
34355
34814
  var VerificationStatusValidator = external_exports.enum(["Success", "Failed", "Error"]);
@@ -34395,8 +34854,7 @@ var PaginatedEncryptedCredentialRecordsValidator = PaginationResponseValidator.e
34395
34854
  });
34396
34855
  var parseRegexString = /* @__PURE__ */ __name3((regexStr) => {
34397
34856
  const match = regexStr.match(/^\/(.*)\/([gimsuy]*)$/);
34398
- if (!match)
34399
- throw new Error("Invalid RegExp string format");
34857
+ if (!match) throw new Error("Invalid RegExp string format");
34400
34858
  return { pattern: match[1], flags: match[2] };
34401
34859
  }, "parseRegexString");
34402
34860
  var RegExpStringValidator = external_exports.string().refine(
@@ -34482,6 +34940,31 @@ var LCNPublicProfileValidator = LCNProfileValidator.pick({
34482
34940
  isServiceProfile: true,
34483
34941
  display: true
34484
34942
  });
34943
+ var LCNConnectionPromptStatusValidator = external_exports.enum(["PENDING", "SKIPPED", "CONNECTED"]);
34944
+ var LCNConnectionPromptSurfaceValidator = external_exports.enum(["POST_CLAIM", "NOTIFICATION"]);
34945
+ var LCNConnectionPromptActionStatusValidator = external_exports.enum([
34946
+ "PENDING",
34947
+ "SKIPPED",
34948
+ "CONNECTED",
34949
+ "STALE"
34950
+ ]);
34951
+ var LCNConnectionPromptValidator = external_exports.object({
34952
+ promptId: external_exports.string().uuid(),
34953
+ status: LCNConnectionPromptStatusValidator,
34954
+ surface: LCNConnectionPromptSurfaceValidator,
34955
+ triggerId: external_exports.string(),
34956
+ triggeredAt: external_exports.iso.datetime(),
34957
+ updatedAt: external_exports.iso.datetime(),
34958
+ counterpart: LCNPublicProfileValidator
34959
+ });
34960
+ var LCNConnectionPromptActionResultValidator = external_exports.object({
34961
+ promptId: external_exports.string().uuid(),
34962
+ status: LCNConnectionPromptActionStatusValidator
34963
+ });
34964
+ var LCNConnectionPromptMetadataValidator = external_exports.object({
34965
+ promptId: external_exports.string().uuid(),
34966
+ counterpartProfileId: external_exports.string()
34967
+ });
34485
34968
  var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
34486
34969
  bio: LCNProfileValidator.shape.bio,
34487
34970
  websiteLink: LCNProfileValidator.shape.websiteLink,
@@ -35032,7 +35515,9 @@ var LCNInboxStatusEnumValidator = external_exports.enum([
35032
35515
  "PENDING",
35033
35516
  "ISSUED",
35034
35517
  "EXPIRED",
35518
+ /* DEPRECATED — use ISSUED */
35035
35519
  "DELIVERED",
35520
+ /* DEPRECATED — use ISSUED */
35036
35521
  "CLAIMED"
35037
35522
  ]);
35038
35523
  var LCNNotificationInboxValidator = external_exports.object({
@@ -35044,12 +35529,15 @@ var LCNNotificationInboxValidator = external_exports.object({
35044
35529
  }),
35045
35530
  timestamp: external_exports.iso.datetime().optional()
35046
35531
  });
35532
+ var LCNNotificationMetadataValidator = external_exports.object({
35533
+ connectionPrompt: LCNConnectionPromptMetadataValidator.optional()
35534
+ }).catchall(external_exports.unknown());
35047
35535
  var LCNNotificationDataValidator = external_exports.object({
35048
35536
  vcUris: external_exports.array(external_exports.string()).optional(),
35049
35537
  vpUris: external_exports.array(external_exports.string()).optional(),
35050
35538
  transaction: ConsentFlowTransactionValidator.optional(),
35051
35539
  inbox: LCNNotificationInboxValidator.optional(),
35052
- metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
35540
+ metadata: LCNNotificationMetadataValidator.optional()
35053
35541
  }).loose();
35054
35542
  var LCNNotificationValidator = external_exports.object({
35055
35543
  type: LCNNotificationTypeEnumValidator,
@@ -35068,8 +35556,7 @@ var AuthGrantValidator = external_exports.object({
35068
35556
  challenge: external_exports.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
35069
35557
  status: external_exports.enum(["revoked", "active"], {
35070
35558
  error: /* @__PURE__ */ __name3((issue2) => {
35071
- if (issue2.code === "invalid_value")
35072
- return "Status must be either active or revoked";
35559
+ if (issue2.code === "invalid_value") return "Status must be either active or revoked";
35073
35560
  return "Status is required";
35074
35561
  }, "error")
35075
35562
  }),
@@ -35100,6 +35587,7 @@ var ContactMethodValidator = external_exports.discriminatedUnion("type", [
35100
35587
  external_exports.object({
35101
35588
  type: external_exports.literal("phone"),
35102
35589
  value: external_exports.string()
35590
+ // Can be improved with a regex later
35103
35591
  }).merge(contactMethodBase)
35104
35592
  ]);
35105
35593
  var createContactMethodBase = external_exports.object({
@@ -35160,6 +35648,7 @@ var InboxCredentialValidator = external_exports.object({
35160
35648
  endpoint: external_exports.string().optional(),
35161
35649
  name: external_exports.string().optional()
35162
35650
  }).optional(),
35651
+ // Guardian gate fields (all optional — absent on pre-existing credentials)
35163
35652
  guardianEmail: external_exports.string().email().optional(),
35164
35653
  guardianStatus: GuardianStatusValidator.optional(),
35165
35654
  guardianApprovedAt: external_exports.string().optional(),
@@ -35183,13 +35672,21 @@ var IssueInboxSigningAuthorityValidator = external_exports.object({
35183
35672
  name: external_exports.string()
35184
35673
  });
35185
35674
  var IssueInboxCredentialValidator = external_exports.object({
35675
+ // === CORE DATA (Required) ===
35676
+ // WHAT is being sent and WHO is it for?
35186
35677
  recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
35678
+ // Either credential OR templateUri must be provided
35187
35679
  credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).optional().describe(
35188
35680
  "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
35189
35681
  ),
35190
35682
  templateUri: external_exports.string().optional().describe(
35191
35683
  "URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
35192
35684
  ),
35685
+ // === OPTIONAL FEATURES ===
35686
+ // Add major, distinct features at the top level.
35687
+ //consentRequest: ConsentRequestValidator.optional(),
35688
+ // === PROCESS CONFIGURATION (Optional) ===
35689
+ // HOW should this issuance be handled?
35193
35690
  configuration: external_exports.object({
35194
35691
  signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
35195
35692
  "The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."
@@ -35199,6 +35696,7 @@ var IssueInboxCredentialValidator = external_exports.object({
35199
35696
  templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional().describe(
35200
35697
  "Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
35201
35698
  ),
35699
+ // --- For User-Facing Delivery (Email/SMS) ---
35202
35700
  delivery: external_exports.object({
35203
35701
  suppress: external_exports.boolean().optional().default(false).describe(
35204
35702
  "Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."
@@ -35281,9 +35779,11 @@ var LCNIntegrationValidator = external_exports.object({
35281
35779
  description: external_exports.string().optional(),
35282
35780
  publishableKey: external_exports.string(),
35283
35781
  whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([]),
35782
+ // Setup/onboarding status
35284
35783
  status: LCNIntegrationStatusEnum.default("setup"),
35285
35784
  guideType: external_exports.string().optional(),
35286
35785
  guideState: external_exports.record(external_exports.string(), external_exports.any()).optional(),
35786
+ // Timestamps
35287
35787
  createdAt: external_exports.string().optional(),
35288
35788
  updatedAt: external_exports.string().optional()
35289
35789
  });
@@ -35298,6 +35798,7 @@ var LCNIntegrationUpdateValidator = external_exports.object({
35298
35798
  description: external_exports.string().optional(),
35299
35799
  whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).optional(),
35300
35800
  rotatePublishableKey: external_exports.boolean().optional(),
35801
+ // Setup/onboarding updates
35301
35802
  status: LCNIntegrationStatusEnum.optional(),
35302
35803
  guideType: external_exports.string().optional(),
35303
35804
  guideState: external_exports.record(external_exports.string(), external_exports.any()).optional()
@@ -35764,16 +36265,14 @@ var CredentialActivityStatsValidator = external_exports.object({
35764
36265
  failed: external_exports.number(),
35765
36266
  claimRate: external_exports.number()
35766
36267
  });
35767
- var _a3;
35768
- var AuthSessionError = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_a3 = class extends Error {
36268
+ var _a4;
36269
+ var AuthSessionError = (_a4 = class extends Error {
35769
36270
  constructor(message, reason) {
35770
36271
  super(message);
35771
36272
  this.reason = reason;
35772
36273
  this.name = "AuthSessionError";
35773
36274
  }
35774
- }, "_this"), (() => {
35775
- __name3(_a3, "AuthSessionError");
35776
- })(), _a3), "AuthSessionError");
36275
+ }, __name(_a4, "AuthSessionError"), __name3(_a4, "AuthSessionError"), _a4);
35777
36276
  var BITSTRING_STATUS_PURPOSES = ["revocation", "suspension"];
35778
36277
  var BitstringStatusPurposeValidator = external_exports.enum(BITSTRING_STATUS_PURPOSES);
35779
36278
  var BitstringStatusListEntryValidator = external_exports.object({
@@ -35840,12 +36339,15 @@ var inAppMessageActionValidator = external_exports.object({
35840
36339
  label: external_exports.string(),
35841
36340
  style: inAppMessageActionStyleValidator,
35842
36341
  action: inAppMessageActionTargetValidator,
36342
+ /** When true, the message closes after this action runs (default true). */
35843
36343
  closeOnComplete: external_exports.boolean().default(true)
35844
36344
  }).passthrough();
35845
36345
  var inAppMessageMediaValidator = external_exports.object({
35846
36346
  type: external_exports.enum(["youtube", "image", "gif"]),
35847
36347
  url: external_exports.string(),
36348
+ /** Aspect ratio hint, e.g. "16:9" or "1:1". Defaults to 16:9. */
35848
36349
  aspect: external_exports.string().default("16:9"),
36350
+ /** Alt text for images/gifs (accessibility). */
35849
36351
  alt: external_exports.string().optional()
35850
36352
  }).passthrough();
35851
36353
  var inAppMessageFrequencyValidator = external_exports.union([
@@ -35856,17 +36358,23 @@ var inAppMessageFrequencyValidator = external_exports.union([
35856
36358
  ]).default("once");
35857
36359
  var inAppMessagePresentationValidator = external_exports.enum(["modal", "banner", "toast"]).default("modal");
35858
36360
  var inAppMessageValidator = external_exports.object({
36361
+ /** Stable identifier — used to persist dismissal / frequency state. */
35859
36362
  id: external_exports.string(),
36363
+ /** Higher priority wins when multiple messages match. Default 0. */
35860
36364
  priority: external_exports.number().default(0),
36365
+ /** When false, the message is required/blocking (no dismiss affordance). */
35861
36366
  dismissible: external_exports.boolean().default(true),
35862
36367
  frequency: inAppMessageFrequencyValidator,
35863
36368
  presentation: inAppMessagePresentationValidator,
35864
36369
  media: inAppMessageMediaValidator.optional(),
36370
+ /** Optional emoji hero glyph — rendered only when `media` is not set. */
35865
36371
  emoji: external_exports.string().optional(),
35866
36372
  title: external_exports.string(),
35867
36373
  body: external_exports.string().optional(),
35868
36374
  actions: external_exports.array(inAppMessageActionValidator).default([]),
36375
+ /** Targeting predicate tree. Omitted → matches everyone. */
35869
36376
  targeting: inAppMessagePredicateValidator.optional(),
36377
+ /** Allow disabling a message without removing it from the flag. */
35870
36378
  enabled: external_exports.boolean().default(true)
35871
36379
  }).passthrough();
35872
36380
  var inAppMessagesFlagValidator = external_exports.object({
@@ -35883,14 +36391,12 @@ var isSvgMustacheRenderMethod = /* @__PURE__ */ __name((rm) => {
35883
36391
  var getRenderMethods = /* @__PURE__ */ __name((vc) => {
35884
36392
  const effective = unwrapBoostCredential(vc) ?? vc;
35885
36393
  const raw = effective?.renderMethod;
35886
- if (!raw)
35887
- return [];
36394
+ if (!raw) return [];
35888
36395
  return Array.isArray(raw) ? raw : [raw];
35889
36396
  }, "getRenderMethods");
35890
36397
  function findRenderMethod(vc, predicate) {
35891
36398
  for (const entry of getRenderMethods(vc)) {
35892
- if (predicate(entry))
35893
- return entry;
36399
+ if (predicate(entry)) return entry;
35894
36400
  }
35895
36401
  return null;
35896
36402
  }
@@ -35923,11 +36429,9 @@ var findTemplateRenderMethods = /* @__PURE__ */ __name((vc, suite) => {
35923
36429
  var getSvgMustacheRenderMethod = /* @__PURE__ */ __name((vc) => findTemplateRenderMethod(vc, "svg-mustache"), "getSvgMustacheRenderMethod");
35924
36430
  var isUnsafeKey = /* @__PURE__ */ __name((key) => key === "__proto__" || key === "constructor" || key === "prototype", "isUnsafeKey");
35925
36431
  var resolvePointer = /* @__PURE__ */ __name((obj, pointer) => {
35926
- if (!pointer || pointer === "/")
35927
- return obj;
36432
+ if (!pointer || pointer === "/") return obj;
35928
36433
  const parts = pointer.replace(/^\//, "").split("/").map((p) => p.replace(/~1/g, "/").replace(/~0/g, "~"));
35929
- if (parts.some(isUnsafeKey))
35930
- return void 0;
36434
+ if (parts.some(isUnsafeKey)) return void 0;
35931
36435
  let current2 = obj;
35932
36436
  for (const part of parts) {
35933
36437
  if (current2 === null || current2 === void 0 || typeof current2 !== "object")
@@ -35941,11 +36445,9 @@ var buildRenderDataFromPointers = /* @__PURE__ */ __name((vc, pointers) => {
35941
36445
  const isUnsafeKey2 = /* @__PURE__ */ __name((key) => key === "__proto__" || key === "constructor" || key === "prototype", "isUnsafeKey");
35942
36446
  for (const pointer of pointers) {
35943
36447
  const value = resolvePointer(vc, pointer);
35944
- if (value === void 0)
35945
- continue;
36448
+ if (value === void 0) continue;
35946
36449
  const parts = pointer.replace(/^\//, "").split("/").map((p) => p.replace(/~1/g, "/").replace(/~0/g, "~"));
35947
- if (parts.some(isUnsafeKey2))
35948
- continue;
36450
+ if (parts.some(isUnsafeKey2)) continue;
35949
36451
  let current2 = result;
35950
36452
  for (let i = 0; i < parts.length - 1; i++) {
35951
36453
  const part = parts[i];
@@ -35955,8 +36457,7 @@ var buildRenderDataFromPointers = /* @__PURE__ */ __name((vc, pointers) => {
35955
36457
  current2 = current2[part];
35956
36458
  }
35957
36459
  const lastPart = parts[parts.length - 1];
35958
- if (isUnsafeKey2(lastPart))
35959
- continue;
36460
+ if (isUnsafeKey2(lastPart)) continue;
35960
36461
  current2[lastPart] = value;
35961
36462
  }
35962
36463
  return result;
@@ -35969,8 +36470,7 @@ var buildRenderData = /* @__PURE__ */ __name((vc, renderProperty) => {
35969
36470
  credential,
35970
36471
  credentialSubjects: Array.isArray(credential.credentialSubject) ? credential.credentialSubject : [credential.credentialSubject].filter(Boolean)
35971
36472
  };
35972
- if (!renderProperty || renderProperty.length === 0)
35973
- return base;
36473
+ if (!renderProperty || renderProperty.length === 0) return base;
35974
36474
  return {
35975
36475
  ...base,
35976
36476
  ...buildRenderDataFromPointers(vc, renderProperty),
@@ -35981,8 +36481,7 @@ var buildRenderData = /* @__PURE__ */ __name((vc, renderProperty) => {
35981
36481
  // src/plugin.ts
35982
36482
  var DEFAULT_TEMPLATE_ID = "https://templates.learncard.com/svg/card/card-1.0.0.svg";
35983
36483
  var isValidTemplateId = /* @__PURE__ */ __name((templateId) => {
35984
- if (!templateId || !templateId.trim())
35985
- return false;
36484
+ if (!templateId || !templateId.trim()) return false;
35986
36485
  return /^https?:\/\//i.test(templateId);
35987
36486
  }, "isValidTemplateId");
35988
36487
  var buildTemplateRenderMethod = /* @__PURE__ */ __name((config2) => {
@@ -36008,15 +36507,17 @@ var buildTemplateRenderMethod = /* @__PURE__ */ __name((config2) => {
36008
36507
  }
36009
36508
  return {
36010
36509
  type: "TemplateRenderMethod",
36510
+ // TODO: Add other render suites (e.g., WebRenderingTemplate2022, HtmlMustacheRenderingTemplate)
36011
36511
  renderSuite: "svg-mustache",
36012
36512
  template,
36513
+ // Only include renderProperty when explicitly provided to avoid overriding VC defaults
36013
36514
  ...config2.renderProperty ? { renderProperty: config2.renderProperty } : {},
36515
+ // TODO: Make mediaType configurable per renderSuite once additional suites are supported
36014
36516
  outputPreference: { mediaType: "image/svg+xml" }
36015
36517
  };
36016
36518
  }, "buildTemplateRenderMethod");
36017
36519
  var attachRenderMethod = /* @__PURE__ */ __name((vc, config2) => {
36018
- if (!config2)
36019
- return vc;
36520
+ if (!config2) return vc;
36020
36521
  const renderMethod = buildTemplateRenderMethod(config2);
36021
36522
  const context = Array.isArray(vc["@context"]) ? vc["@context"] : [vc["@context"]];
36022
36523
  const updatedContext = context.includes(RENDER_METHOD_CONTEXT) ? context : [...context, RENDER_METHOD_CONTEXT];
@@ -36040,15 +36541,15 @@ var getRenderMethodPlugin = /* @__PURE__ */ __name((_learnCard) => ({
36040
36541
  displayName: "Render Method Plugin",
36041
36542
  description: "Attaches W3C renderMethod to Verifiable Credentials for standards-based rendering",
36042
36543
  methods: {
36043
- attachRenderMethod: (_lc, vc, config2) => attachRenderMethod(vc, config2),
36044
- buildTemplateRenderMethod: (_lc, config2) => buildTemplateRenderMethod(config2),
36045
- getRenderMethods: (_lc, vc) => getRenderMethods(vc),
36046
- findRenderMethod: (_lc, vc, predicate) => findRenderMethod(vc, predicate),
36047
- findRenderMethods: (_lc, vc, predicate) => findRenderMethods(vc, predicate),
36048
- findTemplateRenderMethod: (_lc, vc, suite) => findTemplateRenderMethod(vc, suite),
36049
- findTemplateRenderMethods: (_lc, vc, suite) => findTemplateRenderMethods(vc, suite),
36050
- getSvgMustacheRenderMethod: (_lc, vc) => getSvgMustacheRenderMethod(vc),
36051
- buildRenderData: (_lc, vc, renderProperty) => buildRenderData(vc, renderProperty)
36544
+ attachRenderMethod: /* @__PURE__ */ __name((_lc, vc, config2) => attachRenderMethod(vc, config2), "attachRenderMethod"),
36545
+ buildTemplateRenderMethod: /* @__PURE__ */ __name((_lc, config2) => buildTemplateRenderMethod(config2), "buildTemplateRenderMethod"),
36546
+ getRenderMethods: /* @__PURE__ */ __name((_lc, vc) => getRenderMethods(vc), "getRenderMethods"),
36547
+ findRenderMethod: /* @__PURE__ */ __name((_lc, vc, predicate) => findRenderMethod(vc, predicate), "findRenderMethod"),
36548
+ findRenderMethods: /* @__PURE__ */ __name((_lc, vc, predicate) => findRenderMethods(vc, predicate), "findRenderMethods"),
36549
+ findTemplateRenderMethod: /* @__PURE__ */ __name((_lc, vc, suite) => findTemplateRenderMethod(vc, suite), "findTemplateRenderMethod"),
36550
+ findTemplateRenderMethods: /* @__PURE__ */ __name((_lc, vc, suite) => findTemplateRenderMethods(vc, suite), "findTemplateRenderMethods"),
36551
+ getSvgMustacheRenderMethod: /* @__PURE__ */ __name((_lc, vc) => getSvgMustacheRenderMethod(vc), "getSvgMustacheRenderMethod"),
36552
+ buildRenderData: /* @__PURE__ */ __name((_lc, vc, renderProperty) => buildRenderData(vc, renderProperty), "buildRenderData")
36052
36553
  }
36053
36554
  }), "getRenderMethodPlugin");
36054
36555
  //# sourceMappingURL=render-method-plugin.cjs.development.cjs.map