@quickflo/quickforms-vue 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { provide as ta, inject as ra, computed as G, defineComponent as fe, ref as ae, createElementBlock as I, openBlock as j, createElementVNode as F, withDirectives as we, createCommentVNode as C, createTextVNode as je, toDisplayString as X, vModelText as yt, normalizeClass as xn, vModelDynamic as Er, vModelCheckbox as na, Fragment as ke, renderList as Le, vModelSelect as sa, createBlock as vt, resolveDynamicComponent as aa, createVNode as Wn, watch as Ae, onMounted as Pr, mergeModels as bn, useModel as oa, reactive as ia, markRaw as la, toRaw as $n, nextTick as ot, renderSlot as da, vShow as ca } from "vue";
1
+ import { provide as ta, inject as ra, computed as G, defineComponent as me, ref as ae, createElementBlock as I, openBlock as j, createElementVNode as F, withDirectives as ke, createCommentVNode as V, createTextVNode as qe, toDisplayString as X, vModelText as vt, normalizeClass as xn, vModelDynamic as Er, vModelCheckbox as na, Fragment as Se, renderList as He, vModelSelect as sa, createBlock as _t, resolveDynamicComponent as aa, createVNode as Wn, watch as Fe, onMounted as Pr, mergeModels as bn, useModel as oa, reactive as ia, markRaw as la, toRaw as $n, nextTick as Pt, renderSlot as da, vShow as ca } from "vue";
2
2
  import { useField as ua, useForm as fa } from "vee-validate";
3
3
  class ma {
4
4
  constructor() {
@@ -57,13 +57,13 @@ class ma {
57
57
  this.components.clear();
58
58
  }
59
59
  }
60
- const pe = (e, t) => t ? e : -1, et = (e) => e.type === "string" || e.const !== void 0 && typeof e.const == "string", ha = (e) => e.type === "number" || e.type === "integer" || e.const !== void 0 && typeof e.const == "number", lm = (e) => e.type === "integer", pa = (e) => e.type === "boolean" || e.const !== void 0 && typeof e.const == "boolean", ya = (e) => e.type === "object" || e.type === void 0 && e.properties !== void 0, va = (e) => e.type === "array", _a = (e) => e.type === "object" && e.additionalProperties !== void 0 && typeof e.additionalProperties == "object" && Object.keys(e.additionalProperties).length > 0 && // Has typed additionalProperties
60
+ const ye = (e, t) => t ? e : -1, rt = (e) => e.type === "string" || e.const !== void 0 && typeof e.const == "string", ha = (e) => e.type === "number" || e.type === "integer" || e.const !== void 0 && typeof e.const == "number", lm = (e) => e.type === "integer", pa = (e) => e.type === "boolean" || e.const !== void 0 && typeof e.const == "boolean", ya = (e) => e.type === "object" || e.type === void 0 && e.properties !== void 0, va = (e) => e.type === "array", _a = (e) => e.type === "object" && e.additionalProperties !== void 0 && typeof e.additionalProperties == "object" && Object.keys(e.additionalProperties).length > 0 && // Has typed additionalProperties
61
61
  (!e.properties || Object.keys(e.properties).length === 0), ga = (e) => e["x-render"] === "jsoneditor" ? !0 : e.type === "object" && e.additionalProperties !== void 0 && typeof e.additionalProperties == "object" && Object.keys(e.additionalProperties).length === 0 && // Empty = freeform
62
- (!e.properties || Object.keys(e.properties).length === 0), dm = (e) => e.type === "null", ba = (e) => e.const !== void 0, $a = (e) => Array.isArray(e.enum) && e.enum.length > 0, cm = (e) => (t) => t.format === e, um = (e) => et(e) && e.format === "email", wa = (e) => et(e) && e.format === "date", fm = (e) => et(e) && e.format === "time", mm = (e) => et(e) && e.format === "date-time", hm = (e) => et(e) && (e.format === "url" || e.format === "uri"), Zn = (e) => Array.isArray(e.oneOf) && e.oneOf.length > 0, ka = (e) => Array.isArray(e.anyOf) && e.anyOf.length > 0, Sa = (e) => Array.isArray(e.allOf) && e.allOf.length > 0, pm = (e) => Zn(e) && e.discriminator !== void 0, ym = (e) => e.if !== void 0, vm = (e) => (t) => t[e] !== void 0, _m = (...e) => (t) => e.every((n) => n(t)), gm = (...e) => (t) => e.some((n) => n(t)), bm = (e) => (t) => !e(t);
62
+ (!e.properties || Object.keys(e.properties).length === 0), dm = (e) => e.type === "null", ba = (e) => e.const !== void 0, $a = (e) => Array.isArray(e.enum) && e.enum.length > 0, cm = (e) => (t) => t.format === e, um = (e) => rt(e) && e.format === "email", wa = (e) => rt(e) && e.format === "date", fm = (e) => rt(e) && e.format === "time", mm = (e) => rt(e) && e.format === "date-time", hm = (e) => rt(e) && (e.format === "url" || e.format === "uri"), Zn = (e) => Array.isArray(e.oneOf) && e.oneOf.length > 0, ka = (e) => Array.isArray(e.anyOf) && e.anyOf.length > 0, Sa = (e) => Array.isArray(e.allOf) && e.allOf.length > 0, pm = (e) => Zn(e) && e.discriminator !== void 0, ym = (e) => e.if !== void 0, vm = (e) => (t) => t[e] !== void 0, _m = (...e) => (t) => e.every((n) => n(t)), gm = (...e) => (t) => e.some((n) => n(t)), bm = (e) => (t) => !e(t);
63
63
  function Yn(e) {
64
64
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
65
65
  }
66
- var yr = { exports: {} }, Qn = {}, $e = {}, Qe = {}, gt = {}, K = {}, _t = {};
66
+ var yr = { exports: {} }, Qn = {}, we = {}, et = {}, bt = {}, B = {}, gt = {};
67
67
  (function(e) {
68
68
  Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
69
69
  class t {
@@ -183,11 +183,11 @@ var yr = { exports: {} }, Qn = {}, $e = {}, Qe = {}, gt = {}, K = {}, _t = {};
183
183
  return new r(m.toString());
184
184
  }
185
185
  e.regexpCode = p;
186
- })(_t);
186
+ })(gt);
187
187
  var vr = {};
188
188
  (function(e) {
189
189
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
190
- const t = _t;
190
+ const t = gt;
191
191
  class n extends Error {
192
192
  constructor(c) {
193
193
  super(`CodeGen: "code" for ${c} not defined`), this.value = c.value;
@@ -307,8 +307,8 @@ var vr = {};
307
307
  })(vr);
308
308
  (function(e) {
309
309
  Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
310
- const t = _t, n = vr;
311
- var r = _t;
310
+ const t = gt, n = vr;
311
+ var r = gt;
312
312
  Object.defineProperty(e, "_", { enumerable: !0, get: function() {
313
313
  return r._;
314
314
  } }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
@@ -365,7 +365,7 @@ var vr = {};
365
365
  }
366
366
  optimizeNames(l, h) {
367
367
  if (l[this.name.str])
368
- return this.rhs && (this.rhs = ee(this.rhs, l, h)), this;
368
+ return this.rhs && (this.rhs = re(this.rhs, l, h)), this;
369
369
  }
370
370
  get names() {
371
371
  return this.rhs instanceof t._CodeOrName ? this.rhs.names : {};
@@ -380,11 +380,11 @@ var vr = {};
380
380
  }
381
381
  optimizeNames(l, h) {
382
382
  if (!(this.lhs instanceof t.Name && !l[this.lhs.str] && !this.sideEffects))
383
- return this.rhs = ee(this.rhs, l, h), this;
383
+ return this.rhs = re(this.rhs, l, h), this;
384
384
  }
385
385
  get names() {
386
386
  const l = this.lhs instanceof t.Name ? {} : { ...this.lhs.names };
387
- return B(l, this.rhs);
387
+ return ne(l, this.rhs);
388
388
  }
389
389
  }
390
390
  class d extends i {
@@ -433,7 +433,7 @@ var vr = {};
433
433
  return `${this.code}` ? this : void 0;
434
434
  }
435
435
  optimizeNames(l, h) {
436
- return this.code = ee(this.code, l, h), this;
436
+ return this.code = re(this.code, l, h), this;
437
437
  }
438
438
  get names() {
439
439
  return this.code instanceof t._CodeOrName ? this.code.names : {};
@@ -460,7 +460,7 @@ var vr = {};
460
460
  let A = E.length;
461
461
  for (; A--; ) {
462
462
  const D = E[A];
463
- D.optimizeNames(l, h) || (he(l, D.names), E.splice(A, 1));
463
+ D.optimizeNames(l, h) || (x(l, D.names), E.splice(A, 1));
464
464
  }
465
465
  return E.length > 0 ? this : void 0;
466
466
  }
@@ -497,18 +497,18 @@ var vr = {};
497
497
  h = this.else = Array.isArray(E) ? new p(E) : E;
498
498
  }
499
499
  if (h)
500
- return l === !1 ? h instanceof m ? h : h.nodes : this.nodes.length ? this : new m(St(l), h instanceof m ? [h] : h.nodes);
500
+ return l === !1 ? h instanceof m ? h : h.nodes : this.nodes.length ? this : new m(pe(l), h instanceof m ? [h] : h.nodes);
501
501
  if (!(l === !1 || !this.nodes.length))
502
502
  return this;
503
503
  }
504
504
  optimizeNames(l, h) {
505
505
  var E;
506
506
  if (this.else = (E = this.else) === null || E === void 0 ? void 0 : E.optimizeNames(l, h), !!(super.optimizeNames(l, h) || this.else))
507
- return this.condition = ee(this.condition, l, h), this;
507
+ return this.condition = re(this.condition, l, h), this;
508
508
  }
509
509
  get names() {
510
510
  const l = super.names;
511
- return B(l, this.condition), this.else && U(l, this.else.names), l;
511
+ return ne(l, this.condition), this.else && U(l, this.else.names), l;
512
512
  }
513
513
  }
514
514
  m.kind = "if";
@@ -524,7 +524,7 @@ var vr = {};
524
524
  }
525
525
  optimizeNames(l, h) {
526
526
  if (super.optimizeNames(l, h))
527
- return this.iteration = ee(this.iteration, l, h), this;
527
+ return this.iteration = re(this.iteration, l, h), this;
528
528
  }
529
529
  get names() {
530
530
  return U(super.names, this.iteration.names);
@@ -539,8 +539,8 @@ var vr = {};
539
539
  return `for(${h} ${E}=${A}; ${E}<${D}; ${E}++)` + super.render(l);
540
540
  }
541
541
  get names() {
542
- const l = B(super.names, this.from);
543
- return B(l, this.to);
542
+ const l = ne(super.names, this.from);
543
+ return ne(l, this.to);
544
544
  }
545
545
  }
546
546
  class O extends y {
@@ -552,13 +552,13 @@ var vr = {};
552
552
  }
553
553
  optimizeNames(l, h) {
554
554
  if (super.optimizeNames(l, h))
555
- return this.iterable = ee(this.iterable, l, h), this;
555
+ return this.iterable = re(this.iterable, l, h), this;
556
556
  }
557
557
  get names() {
558
558
  return U(super.names, this.iterable.names);
559
559
  }
560
560
  }
561
- class V extends _ {
561
+ class C extends _ {
562
562
  constructor(l, h, E) {
563
563
  super(), this.name = l, this.args = h, this.async = E;
564
564
  }
@@ -566,13 +566,13 @@ var vr = {};
566
566
  return `${this.async ? "async " : ""}function ${this.name}(${this.args})` + super.render(l);
567
567
  }
568
568
  }
569
- V.kind = "func";
570
- class x extends $ {
569
+ C.kind = "func";
570
+ class H extends $ {
571
571
  render(l) {
572
572
  return "return " + super.render(l);
573
573
  }
574
574
  }
575
- x.kind = "return";
575
+ H.kind = "return";
576
576
  class M extends _ {
577
577
  render(l) {
578
578
  let h = "try" + super.render(l);
@@ -740,10 +740,10 @@ var vr = {};
740
740
  }
741
741
  // `return` statement
742
742
  return(l) {
743
- const h = new x();
743
+ const h = new H();
744
744
  if (this._blockNode(h), this.code(l), h.nodes.length !== 1)
745
745
  throw new Error('CodeGen: "return" should have one node');
746
- return this._endBlockNode(x);
746
+ return this._endBlockNode(H);
747
747
  }
748
748
  // `try` statement
749
749
  try(l, h, E) {
@@ -776,11 +776,11 @@ var vr = {};
776
776
  }
777
777
  // `function` heading (or definition if funcBody is passed)
778
778
  func(l, h = t.nil, E, A) {
779
- return this._blockNode(new V(l, h, E)), A && this.code(A).endFunc(), this;
779
+ return this._blockNode(new C(l, h, E)), A && this.code(A).endFunc(), this;
780
780
  }
781
781
  // end function definition
782
782
  endFunc() {
783
- return this._endBlockNode(V);
783
+ return this._endBlockNode(C);
784
784
  }
785
785
  optimize(l = 1) {
786
786
  for (; l-- > 0; )
@@ -822,10 +822,10 @@ var vr = {};
822
822
  w[h] = (w[h] || 0) + (l[h] || 0);
823
823
  return w;
824
824
  }
825
- function B(w, l) {
825
+ function ne(w, l) {
826
826
  return l instanceof t._CodeOrName ? U(w, l.names) : w;
827
827
  }
828
- function ee(w, l, h) {
828
+ function re(w, l, h) {
829
829
  if (w instanceof t.Name)
830
830
  return E(w);
831
831
  if (!A(w))
@@ -839,17 +839,17 @@ var vr = {};
839
839
  return D instanceof t._Code && D._items.some((Y) => Y instanceof t.Name && l[Y.str] === 1 && h[Y.str] !== void 0);
840
840
  }
841
841
  }
842
- function he(w, l) {
842
+ function x(w, l) {
843
843
  for (const h in l)
844
844
  w[h] = (w[h] || 0) - (l[h] || 0);
845
845
  }
846
- function St(w) {
846
+ function pe(w) {
847
847
  return typeof w == "boolean" || typeof w == "number" || w === null ? !w : (0, t._)`!${P(w)}`;
848
848
  }
849
- e.not = St;
850
- const Wt = v(e.operators.AND);
849
+ e.not = pe;
850
+ const Ge = v(e.operators.AND);
851
851
  function Zt(...w) {
852
- return w.reduce(Wt);
852
+ return w.reduce(Ge);
853
853
  }
854
854
  e.and = Zt;
855
855
  const Et = v(e.operators.OR);
@@ -863,11 +863,11 @@ var vr = {};
863
863
  function P(w) {
864
864
  return w instanceof t.Name ? w : (0, t._)`(${w})`;
865
865
  }
866
- })(K);
866
+ })(B);
867
867
  var N = {};
868
868
  Object.defineProperty(N, "__esModule", { value: !0 });
869
869
  N.checkStrictMode = N.getErrorPath = N.Type = N.useFunc = N.setEvaluated = N.evaluatedPropsToName = N.mergeEvaluated = N.eachItem = N.unescapeJsonPointer = N.escapeJsonPointer = N.escapeFragment = N.unescapeFragment = N.schemaRefOrVal = N.schemaHasRulesButRef = N.schemaHasRules = N.checkUnknownRules = N.alwaysValidSchema = N.toHash = void 0;
870
- const Q = K, Ea = _t;
870
+ const Q = B, Ea = gt;
871
871
  function Pa(e) {
872
872
  const t = {};
873
873
  for (const n of e)
@@ -1003,54 +1003,54 @@ function ns(e, t, n = e.opts.strictSchema) {
1003
1003
  }
1004
1004
  }
1005
1005
  N.checkStrictMode = ns;
1006
- var qe = {};
1007
- Object.defineProperty(qe, "__esModule", { value: !0 });
1008
- const le = K, Aa = {
1006
+ var Ie = {};
1007
+ Object.defineProperty(Ie, "__esModule", { value: !0 });
1008
+ const de = B, Aa = {
1009
1009
  // validation function arguments
1010
- data: new le.Name("data"),
1010
+ data: new de.Name("data"),
1011
1011
  // data passed to validation function
1012
1012
  // args passed from referencing schema
1013
- valCxt: new le.Name("valCxt"),
1013
+ valCxt: new de.Name("valCxt"),
1014
1014
  // validation/data context - should not be used directly, it is destructured to the names below
1015
- instancePath: new le.Name("instancePath"),
1016
- parentData: new le.Name("parentData"),
1017
- parentDataProperty: new le.Name("parentDataProperty"),
1018
- rootData: new le.Name("rootData"),
1015
+ instancePath: new de.Name("instancePath"),
1016
+ parentData: new de.Name("parentData"),
1017
+ parentDataProperty: new de.Name("parentDataProperty"),
1018
+ rootData: new de.Name("rootData"),
1019
1019
  // root data - same as the data passed to the first/top validation function
1020
- dynamicAnchors: new le.Name("dynamicAnchors"),
1020
+ dynamicAnchors: new de.Name("dynamicAnchors"),
1021
1021
  // used to support recursiveRef and dynamicRef
1022
1022
  // function scoped variables
1023
- vErrors: new le.Name("vErrors"),
1023
+ vErrors: new de.Name("vErrors"),
1024
1024
  // null or array of validation errors
1025
- errors: new le.Name("errors"),
1025
+ errors: new de.Name("errors"),
1026
1026
  // counter of validation errors
1027
- this: new le.Name("this"),
1027
+ this: new de.Name("this"),
1028
1028
  // "globals"
1029
- self: new le.Name("self"),
1030
- scope: new le.Name("scope"),
1029
+ self: new de.Name("self"),
1030
+ scope: new de.Name("scope"),
1031
1031
  // JTD serialize/parse name for JSON string and position
1032
- json: new le.Name("json"),
1033
- jsonPos: new le.Name("jsonPos"),
1034
- jsonLen: new le.Name("jsonLen"),
1035
- jsonPart: new le.Name("jsonPart")
1032
+ json: new de.Name("json"),
1033
+ jsonPos: new de.Name("jsonPos"),
1034
+ jsonLen: new de.Name("jsonLen"),
1035
+ jsonPart: new de.Name("jsonPart")
1036
1036
  };
1037
- qe.default = Aa;
1037
+ Ie.default = Aa;
1038
1038
  (function(e) {
1039
1039
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
1040
- const t = K, n = N, r = qe;
1040
+ const t = B, n = N, r = Ie;
1041
1041
  e.keywordError = {
1042
1042
  message: ({ keyword: p }) => (0, t.str)`must pass "${p}" keyword validation`
1043
1043
  }, e.keyword$DataError = {
1044
1044
  message: ({ keyword: p, schemaType: m }) => m ? (0, t.str)`"${p}" keyword must be ${m} ($data)` : (0, t.str)`"${p}" keyword is invalid ($data)`
1045
1045
  };
1046
1046
  function s(p, m = e.keywordError, y, k) {
1047
- const { it: S } = p, { gen: O, compositeRule: V, allErrors: x } = S, M = f(p, m, y);
1048
- k ?? (V || x) ? d(O, M) : c(S, (0, t._)`[${M}]`);
1047
+ const { it: S } = p, { gen: O, compositeRule: C, allErrors: H } = S, M = f(p, m, y);
1048
+ k ?? (C || H) ? d(O, M) : c(S, (0, t._)`[${M}]`);
1049
1049
  }
1050
1050
  e.reportError = s;
1051
1051
  function a(p, m = e.keywordError, y) {
1052
- const { it: k } = p, { gen: S, compositeRule: O, allErrors: V } = k, x = f(p, m, y);
1053
- d(S, x), O || V || c(k, r.default.vErrors);
1052
+ const { it: k } = p, { gen: S, compositeRule: O, allErrors: C } = k, H = f(p, m, y);
1053
+ d(S, H), O || C || c(k, r.default.vErrors);
1054
1054
  }
1055
1055
  e.reportExtraError = a;
1056
1056
  function o(p, m) {
@@ -1060,9 +1060,9 @@ qe.default = Aa;
1060
1060
  function i({ gen: p, keyword: m, schemaValue: y, data: k, errsCount: S, it: O }) {
1061
1061
  if (S === void 0)
1062
1062
  throw new Error("ajv implementation error");
1063
- const V = p.name("err");
1064
- p.forRange("i", S, r.default.errors, (x) => {
1065
- p.const(V, (0, t._)`${r.default.vErrors}[${x}]`), p.if((0, t._)`${V}.instancePath === undefined`, () => p.assign((0, t._)`${V}.instancePath`, (0, t.strConcat)(r.default.instancePath, O.errorPath))), p.assign((0, t._)`${V}.schemaPath`, (0, t.str)`${O.errSchemaPath}/${m}`), O.opts.verbose && (p.assign((0, t._)`${V}.schema`, y), p.assign((0, t._)`${V}.data`, k));
1063
+ const C = p.name("err");
1064
+ p.forRange("i", S, r.default.errors, (H) => {
1065
+ p.const(C, (0, t._)`${r.default.vErrors}[${H}]`), p.if((0, t._)`${C}.instancePath === undefined`, () => p.assign((0, t._)`${C}.instancePath`, (0, t.strConcat)(r.default.instancePath, O.errorPath))), p.assign((0, t._)`${C}.schemaPath`, (0, t.str)`${O.errSchemaPath}/${m}`), O.opts.verbose && (p.assign((0, t._)`${C}.schema`, y), p.assign((0, t._)`${C}.data`, k));
1066
1066
  });
1067
1067
  }
1068
1068
  e.extendErrors = i;
@@ -1104,25 +1104,25 @@ qe.default = Aa;
1104
1104
  return y && (S = (0, t.str)`${S}${(0, n.getErrorPath)(y, n.Type.Str)}`), [u.schemaPath, S];
1105
1105
  }
1106
1106
  function g(p, { params: m, message: y }, k) {
1107
- const { keyword: S, data: O, schemaValue: V, it: x } = p, { opts: M, propertyName: T, topSchemaRef: z, schemaPath: W } = x;
1108
- k.push([u.keyword, S], [u.params, typeof m == "function" ? m(p) : m || (0, t._)`{}`]), M.messages && k.push([u.message, typeof y == "function" ? y(p) : y]), M.verbose && k.push([u.schema, V], [u.parentSchema, (0, t._)`${z}${W}`], [r.default.data, O]), T && k.push([u.propertyName, T]);
1107
+ const { keyword: S, data: O, schemaValue: C, it: H } = p, { opts: M, propertyName: T, topSchemaRef: z, schemaPath: W } = H;
1108
+ k.push([u.keyword, S], [u.params, typeof m == "function" ? m(p) : m || (0, t._)`{}`]), M.messages && k.push([u.message, typeof y == "function" ? y(p) : y]), M.verbose && k.push([u.schema, C], [u.parentSchema, (0, t._)`${z}${W}`], [r.default.data, O]), T && k.push([u.propertyName, T]);
1109
1109
  }
1110
- })(gt);
1111
- Object.defineProperty(Qe, "__esModule", { value: !0 });
1112
- Qe.boolOrEmptySchema = Qe.topBoolOrEmptySchema = void 0;
1113
- const Fa = gt, Da = K, Ca = qe, Va = {
1110
+ })(bt);
1111
+ Object.defineProperty(et, "__esModule", { value: !0 });
1112
+ et.boolOrEmptySchema = et.topBoolOrEmptySchema = void 0;
1113
+ const Fa = bt, Ca = B, Da = Ie, Va = {
1114
1114
  message: "boolean schema is false"
1115
1115
  };
1116
1116
  function za(e) {
1117
1117
  const { gen: t, schema: n, validateName: r } = e;
1118
- n === !1 ? ss(e, !1) : typeof n == "object" && n.$async === !0 ? t.return(Ca.default.data) : (t.assign((0, Da._)`${r}.errors`, null), t.return(!0));
1118
+ n === !1 ? ss(e, !1) : typeof n == "object" && n.$async === !0 ? t.return(Da.default.data) : (t.assign((0, Ca._)`${r}.errors`, null), t.return(!0));
1119
1119
  }
1120
- Qe.topBoolOrEmptySchema = za;
1120
+ et.topBoolOrEmptySchema = za;
1121
1121
  function Ua(e, t) {
1122
1122
  const { gen: n, schema: r } = e;
1123
1123
  r === !1 ? (n.var(t, !1), ss(e)) : n.var(t, !0);
1124
1124
  }
1125
- Qe.boolOrEmptySchema = Ua;
1125
+ et.boolOrEmptySchema = Ua;
1126
1126
  function ss(e, t) {
1127
1127
  const { gen: n, data: r } = e, s = {
1128
1128
  gen: n,
@@ -1136,14 +1136,14 @@ function ss(e, t) {
1136
1136
  };
1137
1137
  (0, Fa.reportError)(s, Va, void 0, t);
1138
1138
  }
1139
- var ne = {}, He = {};
1140
- Object.defineProperty(He, "__esModule", { value: !0 });
1141
- He.getRules = He.isJSONType = void 0;
1139
+ var se = {}, Ke = {};
1140
+ Object.defineProperty(Ke, "__esModule", { value: !0 });
1141
+ Ke.getRules = Ke.isJSONType = void 0;
1142
1142
  const La = ["string", "number", "integer", "boolean", "null", "object", "array"], Ha = new Set(La);
1143
1143
  function Ka(e) {
1144
1144
  return typeof e == "string" && Ha.has(e);
1145
1145
  }
1146
- He.isJSONType = Ka;
1146
+ Ke.isJSONType = Ka;
1147
1147
  function Ba() {
1148
1148
  const e = {
1149
1149
  number: { type: "number", rules: [] },
@@ -1159,31 +1159,31 @@ function Ba() {
1159
1159
  keywords: {}
1160
1160
  };
1161
1161
  }
1162
- He.getRules = Ba;
1163
- var Ie = {};
1164
- Object.defineProperty(Ie, "__esModule", { value: !0 });
1165
- Ie.shouldUseRule = Ie.shouldUseGroup = Ie.schemaHasRulesForType = void 0;
1162
+ Ke.getRules = Ba;
1163
+ var Ne = {};
1164
+ Object.defineProperty(Ne, "__esModule", { value: !0 });
1165
+ Ne.shouldUseRule = Ne.shouldUseGroup = Ne.schemaHasRulesForType = void 0;
1166
1166
  function Ga({ schema: e, self: t }, n) {
1167
1167
  const r = t.RULES.types[n];
1168
1168
  return r && r !== !0 && as(e, r);
1169
1169
  }
1170
- Ie.schemaHasRulesForType = Ga;
1170
+ Ne.schemaHasRulesForType = Ga;
1171
1171
  function as(e, t) {
1172
1172
  return t.rules.some((n) => os(e, n));
1173
1173
  }
1174
- Ie.shouldUseGroup = as;
1174
+ Ne.shouldUseGroup = as;
1175
1175
  function os(e, t) {
1176
1176
  var n;
1177
1177
  return e[t.keyword] !== void 0 || ((n = t.definition.implements) === null || n === void 0 ? void 0 : n.some((r) => e[r] !== void 0));
1178
1178
  }
1179
- Ie.shouldUseRule = os;
1180
- Object.defineProperty(ne, "__esModule", { value: !0 });
1181
- ne.reportTypeError = ne.checkDataTypes = ne.checkDataType = ne.coerceAndCheckDataType = ne.getJSONTypes = ne.getSchemaTypes = ne.DataType = void 0;
1182
- const Ja = He, xa = Ie, Wa = gt, H = K, is = N;
1183
- var Ze;
1179
+ Ne.shouldUseRule = os;
1180
+ Object.defineProperty(se, "__esModule", { value: !0 });
1181
+ se.reportTypeError = se.checkDataTypes = se.checkDataType = se.coerceAndCheckDataType = se.getJSONTypes = se.getSchemaTypes = se.DataType = void 0;
1182
+ const Ja = Ke, xa = Ne, Wa = bt, K = B, is = N;
1183
+ var Qe;
1184
1184
  (function(e) {
1185
1185
  e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
1186
- })(Ze || (ne.DataType = Ze = {}));
1186
+ })(Qe || (se.DataType = Qe = {}));
1187
1187
  function Za(e) {
1188
1188
  const t = ls(e.type);
1189
1189
  if (t.includes("null")) {
@@ -1196,117 +1196,117 @@ function Za(e) {
1196
1196
  }
1197
1197
  return t;
1198
1198
  }
1199
- ne.getSchemaTypes = Za;
1199
+ se.getSchemaTypes = Za;
1200
1200
  function ls(e) {
1201
1201
  const t = Array.isArray(e) ? e : e ? [e] : [];
1202
1202
  if (t.every(Ja.isJSONType))
1203
1203
  return t;
1204
1204
  throw new Error("type must be JSONType or JSONType[]: " + t.join(","));
1205
1205
  }
1206
- ne.getJSONTypes = ls;
1206
+ se.getJSONTypes = ls;
1207
1207
  function Ya(e, t) {
1208
1208
  const { gen: n, data: r, opts: s } = e, a = Qa(t, s.coerceTypes), o = t.length > 0 && !(a.length === 0 && t.length === 1 && (0, xa.schemaHasRulesForType)(e, t[0]));
1209
1209
  if (o) {
1210
- const i = qr(t, r, s.strictNumbers, Ze.Wrong);
1210
+ const i = qr(t, r, s.strictNumbers, Qe.Wrong);
1211
1211
  n.if(i, () => {
1212
1212
  a.length ? Xa(e, t, a) : Ir(e);
1213
1213
  });
1214
1214
  }
1215
1215
  return o;
1216
1216
  }
1217
- ne.coerceAndCheckDataType = Ya;
1217
+ se.coerceAndCheckDataType = Ya;
1218
1218
  const ds = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
1219
1219
  function Qa(e, t) {
1220
1220
  return t ? e.filter((n) => ds.has(n) || t === "array" && n === "array") : [];
1221
1221
  }
1222
1222
  function Xa(e, t, n) {
1223
- const { gen: r, data: s, opts: a } = e, o = r.let("dataType", (0, H._)`typeof ${s}`), i = r.let("coerced", (0, H._)`undefined`);
1224
- a.coerceTypes === "array" && r.if((0, H._)`${o} == 'object' && Array.isArray(${s}) && ${s}.length == 1`, () => r.assign(s, (0, H._)`${s}[0]`).assign(o, (0, H._)`typeof ${s}`).if(qr(t, s, a.strictNumbers), () => r.assign(i, s))), r.if((0, H._)`${i} !== undefined`);
1223
+ const { gen: r, data: s, opts: a } = e, o = r.let("dataType", (0, K._)`typeof ${s}`), i = r.let("coerced", (0, K._)`undefined`);
1224
+ a.coerceTypes === "array" && r.if((0, K._)`${o} == 'object' && Array.isArray(${s}) && ${s}.length == 1`, () => r.assign(s, (0, K._)`${s}[0]`).assign(o, (0, K._)`typeof ${s}`).if(qr(t, s, a.strictNumbers), () => r.assign(i, s))), r.if((0, K._)`${i} !== undefined`);
1225
1225
  for (const c of n)
1226
1226
  (ds.has(c) || c === "array" && a.coerceTypes === "array") && d(c);
1227
- r.else(), Ir(e), r.endIf(), r.if((0, H._)`${i} !== undefined`, () => {
1227
+ r.else(), Ir(e), r.endIf(), r.if((0, K._)`${i} !== undefined`, () => {
1228
1228
  r.assign(s, i), eo(e, i);
1229
1229
  });
1230
1230
  function d(c) {
1231
1231
  switch (c) {
1232
1232
  case "string":
1233
- r.elseIf((0, H._)`${o} == "number" || ${o} == "boolean"`).assign(i, (0, H._)`"" + ${s}`).elseIf((0, H._)`${s} === null`).assign(i, (0, H._)`""`);
1233
+ r.elseIf((0, K._)`${o} == "number" || ${o} == "boolean"`).assign(i, (0, K._)`"" + ${s}`).elseIf((0, K._)`${s} === null`).assign(i, (0, K._)`""`);
1234
1234
  return;
1235
1235
  case "number":
1236
- r.elseIf((0, H._)`${o} == "boolean" || ${s} === null
1237
- || (${o} == "string" && ${s} && ${s} == +${s})`).assign(i, (0, H._)`+${s}`);
1236
+ r.elseIf((0, K._)`${o} == "boolean" || ${s} === null
1237
+ || (${o} == "string" && ${s} && ${s} == +${s})`).assign(i, (0, K._)`+${s}`);
1238
1238
  return;
1239
1239
  case "integer":
1240
- r.elseIf((0, H._)`${o} === "boolean" || ${s} === null
1241
- || (${o} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(i, (0, H._)`+${s}`);
1240
+ r.elseIf((0, K._)`${o} === "boolean" || ${s} === null
1241
+ || (${o} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(i, (0, K._)`+${s}`);
1242
1242
  return;
1243
1243
  case "boolean":
1244
- r.elseIf((0, H._)`${s} === "false" || ${s} === 0 || ${s} === null`).assign(i, !1).elseIf((0, H._)`${s} === "true" || ${s} === 1`).assign(i, !0);
1244
+ r.elseIf((0, K._)`${s} === "false" || ${s} === 0 || ${s} === null`).assign(i, !1).elseIf((0, K._)`${s} === "true" || ${s} === 1`).assign(i, !0);
1245
1245
  return;
1246
1246
  case "null":
1247
- r.elseIf((0, H._)`${s} === "" || ${s} === 0 || ${s} === false`), r.assign(i, null);
1247
+ r.elseIf((0, K._)`${s} === "" || ${s} === 0 || ${s} === false`), r.assign(i, null);
1248
1248
  return;
1249
1249
  case "array":
1250
- r.elseIf((0, H._)`${o} === "string" || ${o} === "number"
1251
- || ${o} === "boolean" || ${s} === null`).assign(i, (0, H._)`[${s}]`);
1250
+ r.elseIf((0, K._)`${o} === "string" || ${o} === "number"
1251
+ || ${o} === "boolean" || ${s} === null`).assign(i, (0, K._)`[${s}]`);
1252
1252
  }
1253
1253
  }
1254
1254
  }
1255
1255
  function eo({ gen: e, parentData: t, parentDataProperty: n }, r) {
1256
- e.if((0, H._)`${t} !== undefined`, () => e.assign((0, H._)`${t}[${n}]`, r));
1256
+ e.if((0, K._)`${t} !== undefined`, () => e.assign((0, K._)`${t}[${n}]`, r));
1257
1257
  }
1258
- function gr(e, t, n, r = Ze.Correct) {
1259
- const s = r === Ze.Correct ? H.operators.EQ : H.operators.NEQ;
1258
+ function gr(e, t, n, r = Qe.Correct) {
1259
+ const s = r === Qe.Correct ? K.operators.EQ : K.operators.NEQ;
1260
1260
  let a;
1261
1261
  switch (e) {
1262
1262
  case "null":
1263
- return (0, H._)`${t} ${s} null`;
1263
+ return (0, K._)`${t} ${s} null`;
1264
1264
  case "array":
1265
- a = (0, H._)`Array.isArray(${t})`;
1265
+ a = (0, K._)`Array.isArray(${t})`;
1266
1266
  break;
1267
1267
  case "object":
1268
- a = (0, H._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;
1268
+ a = (0, K._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;
1269
1269
  break;
1270
1270
  case "integer":
1271
- a = o((0, H._)`!(${t} % 1) && !isNaN(${t})`);
1271
+ a = o((0, K._)`!(${t} % 1) && !isNaN(${t})`);
1272
1272
  break;
1273
1273
  case "number":
1274
1274
  a = o();
1275
1275
  break;
1276
1276
  default:
1277
- return (0, H._)`typeof ${t} ${s} ${e}`;
1277
+ return (0, K._)`typeof ${t} ${s} ${e}`;
1278
1278
  }
1279
- return r === Ze.Correct ? a : (0, H.not)(a);
1280
- function o(i = H.nil) {
1281
- return (0, H.and)((0, H._)`typeof ${t} == "number"`, i, n ? (0, H._)`isFinite(${t})` : H.nil);
1279
+ return r === Qe.Correct ? a : (0, K.not)(a);
1280
+ function o(i = K.nil) {
1281
+ return (0, K.and)((0, K._)`typeof ${t} == "number"`, i, n ? (0, K._)`isFinite(${t})` : K.nil);
1282
1282
  }
1283
1283
  }
1284
- ne.checkDataType = gr;
1284
+ se.checkDataType = gr;
1285
1285
  function qr(e, t, n, r) {
1286
1286
  if (e.length === 1)
1287
1287
  return gr(e[0], t, n, r);
1288
1288
  let s;
1289
1289
  const a = (0, is.toHash)(e);
1290
1290
  if (a.array && a.object) {
1291
- const o = (0, H._)`typeof ${t} != "object"`;
1292
- s = a.null ? o : (0, H._)`!${t} || ${o}`, delete a.null, delete a.array, delete a.object;
1291
+ const o = (0, K._)`typeof ${t} != "object"`;
1292
+ s = a.null ? o : (0, K._)`!${t} || ${o}`, delete a.null, delete a.array, delete a.object;
1293
1293
  } else
1294
- s = H.nil;
1294
+ s = K.nil;
1295
1295
  a.number && delete a.integer;
1296
1296
  for (const o in a)
1297
- s = (0, H.and)(s, gr(o, t, n, r));
1297
+ s = (0, K.and)(s, gr(o, t, n, r));
1298
1298
  return s;
1299
1299
  }
1300
- ne.checkDataTypes = qr;
1300
+ se.checkDataTypes = qr;
1301
1301
  const to = {
1302
1302
  message: ({ schema: e }) => `must be ${e}`,
1303
- params: ({ schema: e, schemaValue: t }) => typeof e == "string" ? (0, H._)`{type: ${e}}` : (0, H._)`{type: ${t}}`
1303
+ params: ({ schema: e, schemaValue: t }) => typeof e == "string" ? (0, K._)`{type: ${e}}` : (0, K._)`{type: ${t}}`
1304
1304
  };
1305
1305
  function Ir(e) {
1306
1306
  const t = ro(e);
1307
1307
  (0, Wa.reportError)(t, to);
1308
1308
  }
1309
- ne.reportTypeError = Ir;
1309
+ se.reportTypeError = Ir;
1310
1310
  function ro(e) {
1311
1311
  const { gen: t, data: n, schema: r } = e, s = (0, is.schemaRefOrVal)(e, r, "type");
1312
1312
  return {
@@ -1321,10 +1321,10 @@ function ro(e) {
1321
1321
  it: e
1322
1322
  };
1323
1323
  }
1324
- var Ht = {};
1325
- Object.defineProperty(Ht, "__esModule", { value: !0 });
1326
- Ht.assignDefaults = void 0;
1327
- const Ge = K, no = N;
1324
+ var Kt = {};
1325
+ Object.defineProperty(Kt, "__esModule", { value: !0 });
1326
+ Kt.assignDefaults = void 0;
1327
+ const xe = B, no = N;
1328
1328
  function so(e, t) {
1329
1329
  const { properties: n, items: r } = e.schema;
1330
1330
  if (t === "object" && n)
@@ -1332,32 +1332,32 @@ function so(e, t) {
1332
1332
  Sn(e, s, n[s].default);
1333
1333
  else t === "array" && Array.isArray(r) && r.forEach((s, a) => Sn(e, a, s.default));
1334
1334
  }
1335
- Ht.assignDefaults = so;
1335
+ Kt.assignDefaults = so;
1336
1336
  function Sn(e, t, n) {
1337
1337
  const { gen: r, compositeRule: s, data: a, opts: o } = e;
1338
1338
  if (n === void 0)
1339
1339
  return;
1340
- const i = (0, Ge._)`${a}${(0, Ge.getProperty)(t)}`;
1340
+ const i = (0, xe._)`${a}${(0, xe.getProperty)(t)}`;
1341
1341
  if (s) {
1342
1342
  (0, no.checkStrictMode)(e, `default is ignored for: ${i}`);
1343
1343
  return;
1344
1344
  }
1345
- let d = (0, Ge._)`${i} === undefined`;
1346
- o.useDefaults === "empty" && (d = (0, Ge._)`${d} || ${i} === null || ${i} === ""`), r.if(d, (0, Ge._)`${i} = ${(0, Ge.stringify)(n)}`);
1345
+ let d = (0, xe._)`${i} === undefined`;
1346
+ o.useDefaults === "empty" && (d = (0, xe._)`${d} || ${i} === null || ${i} === ""`), r.if(d, (0, xe._)`${i} = ${(0, xe.stringify)(n)}`);
1347
1347
  }
1348
- var Pe = {}, J = {};
1348
+ var Oe = {}, J = {};
1349
1349
  Object.defineProperty(J, "__esModule", { value: !0 });
1350
1350
  J.validateUnion = J.validateArray = J.usePattern = J.callValidateCode = J.schemaProperties = J.allSchemaProperties = J.noPropertyInData = J.propertyInData = J.isOwnProperty = J.hasPropFunc = J.reportMissingProp = J.checkMissingProp = J.checkReportMissingProp = void 0;
1351
- const te = K, Nr = N, Te = qe, ao = N;
1351
+ const ee = B, Nr = N, Re = Ie, ao = N;
1352
1352
  function oo(e, t) {
1353
1353
  const { gen: n, data: r, it: s } = e;
1354
1354
  n.if(Tr(n, r, t, s.opts.ownProperties), () => {
1355
- e.setParams({ missingProperty: (0, te._)`${t}` }, !0), e.error();
1355
+ e.setParams({ missingProperty: (0, ee._)`${t}` }, !0), e.error();
1356
1356
  });
1357
1357
  }
1358
1358
  J.checkReportMissingProp = oo;
1359
1359
  function io({ gen: e, data: t, it: { opts: n } }, r, s) {
1360
- return (0, te.or)(...r.map((a) => (0, te.and)(Tr(e, t, a, n.ownProperties), (0, te._)`${s} = ${a}`)));
1360
+ return (0, ee.or)(...r.map((a) => (0, ee.and)(Tr(e, t, a, n.ownProperties), (0, ee._)`${s} = ${a}`)));
1361
1361
  }
1362
1362
  J.checkMissingProp = io;
1363
1363
  function lo(e, t) {
@@ -1368,22 +1368,22 @@ function cs(e) {
1368
1368
  return e.scopeValue("func", {
1369
1369
  // eslint-disable-next-line @typescript-eslint/unbound-method
1370
1370
  ref: Object.prototype.hasOwnProperty,
1371
- code: (0, te._)`Object.prototype.hasOwnProperty`
1371
+ code: (0, ee._)`Object.prototype.hasOwnProperty`
1372
1372
  });
1373
1373
  }
1374
1374
  J.hasPropFunc = cs;
1375
1375
  function Mr(e, t, n) {
1376
- return (0, te._)`${cs(e)}.call(${t}, ${n})`;
1376
+ return (0, ee._)`${cs(e)}.call(${t}, ${n})`;
1377
1377
  }
1378
1378
  J.isOwnProperty = Mr;
1379
1379
  function co(e, t, n, r) {
1380
- const s = (0, te._)`${t}${(0, te.getProperty)(n)} !== undefined`;
1381
- return r ? (0, te._)`${s} && ${Mr(e, t, n)}` : s;
1380
+ const s = (0, ee._)`${t}${(0, ee.getProperty)(n)} !== undefined`;
1381
+ return r ? (0, ee._)`${s} && ${Mr(e, t, n)}` : s;
1382
1382
  }
1383
1383
  J.propertyInData = co;
1384
1384
  function Tr(e, t, n, r) {
1385
- const s = (0, te._)`${t}${(0, te.getProperty)(n)} === undefined`;
1386
- return r ? (0, te.or)(s, (0, te.not)(Mr(e, t, n))) : s;
1385
+ const s = (0, ee._)`${t}${(0, ee.getProperty)(n)} === undefined`;
1386
+ return r ? (0, ee.or)(s, (0, ee.not)(Mr(e, t, n))) : s;
1387
1387
  }
1388
1388
  J.noPropertyInData = Tr;
1389
1389
  function us(e) {
@@ -1395,24 +1395,24 @@ function uo(e, t) {
1395
1395
  }
1396
1396
  J.schemaProperties = uo;
1397
1397
  function fo({ schemaCode: e, data: t, it: { gen: n, topSchemaRef: r, schemaPath: s, errorPath: a }, it: o }, i, d, c) {
1398
- const u = c ? (0, te._)`${e}, ${t}, ${r}${s}` : t, f = [
1399
- [Te.default.instancePath, (0, te.strConcat)(Te.default.instancePath, a)],
1400
- [Te.default.parentData, o.parentData],
1401
- [Te.default.parentDataProperty, o.parentDataProperty],
1402
- [Te.default.rootData, Te.default.rootData]
1398
+ const u = c ? (0, ee._)`${e}, ${t}, ${r}${s}` : t, f = [
1399
+ [Re.default.instancePath, (0, ee.strConcat)(Re.default.instancePath, a)],
1400
+ [Re.default.parentData, o.parentData],
1401
+ [Re.default.parentDataProperty, o.parentDataProperty],
1402
+ [Re.default.rootData, Re.default.rootData]
1403
1403
  ];
1404
- o.opts.dynamicRef && f.push([Te.default.dynamicAnchors, Te.default.dynamicAnchors]);
1405
- const b = (0, te._)`${u}, ${n.object(...f)}`;
1406
- return d !== te.nil ? (0, te._)`${i}.call(${d}, ${b})` : (0, te._)`${i}(${b})`;
1404
+ o.opts.dynamicRef && f.push([Re.default.dynamicAnchors, Re.default.dynamicAnchors]);
1405
+ const b = (0, ee._)`${u}, ${n.object(...f)}`;
1406
+ return d !== ee.nil ? (0, ee._)`${i}.call(${d}, ${b})` : (0, ee._)`${i}(${b})`;
1407
1407
  }
1408
1408
  J.callValidateCode = fo;
1409
- const mo = (0, te._)`new RegExp`;
1409
+ const mo = (0, ee._)`new RegExp`;
1410
1410
  function ho({ gen: e, it: { opts: t } }, n) {
1411
1411
  const r = t.unicodeRegExp ? "u" : "", { regExp: s } = t.code, a = s(n, r);
1412
1412
  return e.scopeValue("pattern", {
1413
1413
  key: a.toString(),
1414
1414
  ref: a,
1415
- code: (0, te._)`${s.code === "new RegExp" ? mo : (0, ao.useFunc)(e, s)}(${n}, ${r})`
1415
+ code: (0, ee._)`${s.code === "new RegExp" ? mo : (0, ao.useFunc)(e, s)}(${n}, ${r})`
1416
1416
  });
1417
1417
  }
1418
1418
  J.usePattern = ho;
@@ -1424,13 +1424,13 @@ function po(e) {
1424
1424
  }
1425
1425
  return t.var(a, !0), o(() => t.break()), a;
1426
1426
  function o(i) {
1427
- const d = t.const("len", (0, te._)`${n}.length`);
1427
+ const d = t.const("len", (0, ee._)`${n}.length`);
1428
1428
  t.forRange("i", 0, d, (c) => {
1429
1429
  e.subschema({
1430
1430
  keyword: r,
1431
1431
  dataProp: c,
1432
1432
  dataPropType: Nr.Type.Num
1433
- }, a), t.if((0, te.not)(a), i);
1433
+ }, a), t.if((0, ee.not)(a), i);
1434
1434
  });
1435
1435
  }
1436
1436
  }
@@ -1448,26 +1448,26 @@ function yo(e) {
1448
1448
  schemaProp: c,
1449
1449
  compositeRule: !0
1450
1450
  }, i);
1451
- t.assign(o, (0, te._)`${o} || ${i}`), e.mergeValidEvaluated(u, i) || t.if((0, te.not)(o));
1451
+ t.assign(o, (0, ee._)`${o} || ${i}`), e.mergeValidEvaluated(u, i) || t.if((0, ee.not)(o));
1452
1452
  })), e.result(o, () => e.reset(), () => e.error(!0));
1453
1453
  }
1454
1454
  J.validateUnion = yo;
1455
- Object.defineProperty(Pe, "__esModule", { value: !0 });
1456
- Pe.validateKeywordUsage = Pe.validSchemaType = Pe.funcKeywordCode = Pe.macroKeywordCode = void 0;
1457
- const de = K, Ve = qe, vo = J, _o = gt;
1455
+ Object.defineProperty(Oe, "__esModule", { value: !0 });
1456
+ Oe.validateKeywordUsage = Oe.validSchemaType = Oe.funcKeywordCode = Oe.macroKeywordCode = void 0;
1457
+ const ce = B, ze = Ie, vo = J, _o = bt;
1458
1458
  function go(e, t) {
1459
1459
  const { gen: n, keyword: r, schema: s, parentSchema: a, it: o } = e, i = t.macro.call(o.self, s, a, o), d = fs(n, r, i);
1460
1460
  o.opts.validateSchema !== !1 && o.self.validateSchema(i, !0);
1461
1461
  const c = n.name("valid");
1462
1462
  e.subschema({
1463
1463
  schema: i,
1464
- schemaPath: de.nil,
1464
+ schemaPath: ce.nil,
1465
1465
  errSchemaPath: `${o.errSchemaPath}/${r}`,
1466
1466
  topSchemaRef: d,
1467
1467
  compositeRule: !0
1468
1468
  }, c), e.pass(c, () => e.error(!0));
1469
1469
  }
1470
- Pe.macroKeywordCode = go;
1470
+ Oe.macroKeywordCode = go;
1471
1471
  function bo(e, t) {
1472
1472
  var n;
1473
1473
  const { gen: r, keyword: s, schema: a, parentSchema: o, $data: i, it: d } = e;
@@ -1484,30 +1484,30 @@ function bo(e, t) {
1484
1484
  }
1485
1485
  function $() {
1486
1486
  const m = r.let("ruleErrs", null);
1487
- return r.try(() => g((0, de._)`await `), (y) => r.assign(f, !1).if((0, de._)`${y} instanceof ${d.ValidationError}`, () => r.assign(m, (0, de._)`${y}.errors`), () => r.throw(y))), m;
1487
+ return r.try(() => g((0, ce._)`await `), (y) => r.assign(f, !1).if((0, ce._)`${y} instanceof ${d.ValidationError}`, () => r.assign(m, (0, ce._)`${y}.errors`), () => r.throw(y))), m;
1488
1488
  }
1489
1489
  function _() {
1490
- const m = (0, de._)`${u}.errors`;
1491
- return r.assign(m, null), g(de.nil), m;
1490
+ const m = (0, ce._)`${u}.errors`;
1491
+ return r.assign(m, null), g(ce.nil), m;
1492
1492
  }
1493
- function g(m = t.async ? (0, de._)`await ` : de.nil) {
1494
- const y = d.opts.passContext ? Ve.default.this : Ve.default.self, k = !("compile" in t && !i || t.schema === !1);
1495
- r.assign(f, (0, de._)`${m}${(0, vo.callValidateCode)(e, u, y, k)}`, t.modifying);
1493
+ function g(m = t.async ? (0, ce._)`await ` : ce.nil) {
1494
+ const y = d.opts.passContext ? ze.default.this : ze.default.self, k = !("compile" in t && !i || t.schema === !1);
1495
+ r.assign(f, (0, ce._)`${m}${(0, vo.callValidateCode)(e, u, y, k)}`, t.modifying);
1496
1496
  }
1497
1497
  function p(m) {
1498
1498
  var y;
1499
- r.if((0, de.not)((y = t.valid) !== null && y !== void 0 ? y : f), m);
1499
+ r.if((0, ce.not)((y = t.valid) !== null && y !== void 0 ? y : f), m);
1500
1500
  }
1501
1501
  }
1502
- Pe.funcKeywordCode = bo;
1502
+ Oe.funcKeywordCode = bo;
1503
1503
  function En(e) {
1504
1504
  const { gen: t, data: n, it: r } = e;
1505
- t.if(r.parentData, () => t.assign(n, (0, de._)`${r.parentData}[${r.parentDataProperty}]`));
1505
+ t.if(r.parentData, () => t.assign(n, (0, ce._)`${r.parentData}[${r.parentDataProperty}]`));
1506
1506
  }
1507
1507
  function $o(e, t) {
1508
1508
  const { gen: n } = e;
1509
- n.if((0, de._)`Array.isArray(${t})`, () => {
1510
- n.assign(Ve.default.vErrors, (0, de._)`${Ve.default.vErrors} === null ? ${t} : ${Ve.default.vErrors}.concat(${t})`).assign(Ve.default.errors, (0, de._)`${Ve.default.vErrors}.length`), (0, _o.extendErrors)(e);
1509
+ n.if((0, ce._)`Array.isArray(${t})`, () => {
1510
+ n.assign(ze.default.vErrors, (0, ce._)`${ze.default.vErrors} === null ? ${t} : ${ze.default.vErrors}.concat(${t})`).assign(ze.default.errors, (0, ce._)`${ze.default.vErrors}.length`), (0, _o.extendErrors)(e);
1511
1511
  }, () => e.error());
1512
1512
  }
1513
1513
  function wo({ schemaEnv: e }, t) {
@@ -1517,12 +1517,12 @@ function wo({ schemaEnv: e }, t) {
1517
1517
  function fs(e, t, n) {
1518
1518
  if (n === void 0)
1519
1519
  throw new Error(`keyword "${t}" failed to compile`);
1520
- return e.scopeValue("keyword", typeof n == "function" ? { ref: n } : { ref: n, code: (0, de.stringify)(n) });
1520
+ return e.scopeValue("keyword", typeof n == "function" ? { ref: n } : { ref: n, code: (0, ce.stringify)(n) });
1521
1521
  }
1522
1522
  function ko(e, t, n = !1) {
1523
1523
  return !t.length || t.some((r) => r === "array" ? Array.isArray(e) : r === "object" ? e && typeof e == "object" && !Array.isArray(e) : typeof e == r || n && typeof e > "u");
1524
1524
  }
1525
- Pe.validSchemaType = ko;
1525
+ Oe.validSchemaType = ko;
1526
1526
  function So({ schema: e, opts: t, self: n, errSchemaPath: r }, s, a) {
1527
1527
  if (Array.isArray(s.keyword) ? !s.keyword.includes(a) : s.keyword !== a)
1528
1528
  throw new Error("ajv implementation error");
@@ -1537,11 +1537,11 @@ function So({ schema: e, opts: t, self: n, errSchemaPath: r }, s, a) {
1537
1537
  throw new Error(d);
1538
1538
  }
1539
1539
  }
1540
- Pe.validateKeywordUsage = So;
1540
+ Oe.validateKeywordUsage = So;
1541
1541
  var De = {};
1542
1542
  Object.defineProperty(De, "__esModule", { value: !0 });
1543
1543
  De.extendSubschemaMode = De.extendSubschemaData = De.getSubschema = void 0;
1544
- const Ee = K, ms = N;
1544
+ const Pe = B, ms = N;
1545
1545
  function Eo(e, { keyword: t, schemaProp: n, schema: r, schemaPath: s, errSchemaPath: a, topSchemaRef: o }) {
1546
1546
  if (t !== void 0 && r !== void 0)
1547
1547
  throw new Error('both "keyword" and "schema" passed, only one allowed');
@@ -1549,11 +1549,11 @@ function Eo(e, { keyword: t, schemaProp: n, schema: r, schemaPath: s, errSchemaP
1549
1549
  const i = e.schema[t];
1550
1550
  return n === void 0 ? {
1551
1551
  schema: i,
1552
- schemaPath: (0, Ee._)`${e.schemaPath}${(0, Ee.getProperty)(t)}`,
1552
+ schemaPath: (0, Pe._)`${e.schemaPath}${(0, Pe.getProperty)(t)}`,
1553
1553
  errSchemaPath: `${e.errSchemaPath}/${t}`
1554
1554
  } : {
1555
1555
  schema: i[n],
1556
- schemaPath: (0, Ee._)`${e.schemaPath}${(0, Ee.getProperty)(t)}${(0, Ee.getProperty)(n)}`,
1556
+ schemaPath: (0, Pe._)`${e.schemaPath}${(0, Pe.getProperty)(t)}${(0, Pe.getProperty)(n)}`,
1557
1557
  errSchemaPath: `${e.errSchemaPath}/${t}/${(0, ms.escapeFragment)(n)}`
1558
1558
  };
1559
1559
  }
@@ -1575,11 +1575,11 @@ function Po(e, t, { dataProp: n, dataPropType: r, data: s, dataTypes: a, propert
1575
1575
  throw new Error('both "data" and "dataProp" passed, only one allowed');
1576
1576
  const { gen: i } = t;
1577
1577
  if (n !== void 0) {
1578
- const { errorPath: c, dataPathArr: u, opts: f } = t, b = i.let("data", (0, Ee._)`${t.data}${(0, Ee.getProperty)(n)}`, !0);
1579
- d(b), e.errorPath = (0, Ee.str)`${c}${(0, ms.getErrorPath)(n, r, f.jsPropertySyntax)}`, e.parentDataProperty = (0, Ee._)`${n}`, e.dataPathArr = [...u, e.parentDataProperty];
1578
+ const { errorPath: c, dataPathArr: u, opts: f } = t, b = i.let("data", (0, Pe._)`${t.data}${(0, Pe.getProperty)(n)}`, !0);
1579
+ d(b), e.errorPath = (0, Pe.str)`${c}${(0, ms.getErrorPath)(n, r, f.jsPropertySyntax)}`, e.parentDataProperty = (0, Pe._)`${n}`, e.dataPathArr = [...u, e.parentDataProperty];
1580
1580
  }
1581
1581
  if (s !== void 0) {
1582
- const c = s instanceof Ee.Name ? s : i.let("data", s, !0);
1582
+ const c = s instanceof Pe.Name ? s : i.let("data", s, !0);
1583
1583
  d(c), o !== void 0 && (e.propertyName = o);
1584
1584
  }
1585
1585
  a && (e.dataTypes = a);
@@ -1592,7 +1592,7 @@ function Oo(e, { jtdDiscriminator: t, jtdMetadata: n, compositeRule: r, createEr
1592
1592
  r !== void 0 && (e.compositeRule = r), s !== void 0 && (e.createErrors = s), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
1593
1593
  }
1594
1594
  De.extendSubschemaMode = Oo;
1595
- var ie = {}, hs = function e(t, n) {
1595
+ var le = {}, hs = function e(t, n) {
1596
1596
  if (t === n) return !0;
1597
1597
  if (t && n && typeof t == "object" && typeof n == "object") {
1598
1598
  if (t.constructor !== n.constructor) return !1;
@@ -1616,14 +1616,14 @@ var ie = {}, hs = function e(t, n) {
1616
1616
  return !0;
1617
1617
  }
1618
1618
  return t !== t && n !== n;
1619
- }, ps = { exports: {} }, Fe = ps.exports = function(e, t, n) {
1619
+ }, ps = { exports: {} }, Ce = ps.exports = function(e, t, n) {
1620
1620
  typeof t == "function" && (n = t, t = {}), n = t.cb || n;
1621
1621
  var r = typeof n == "function" ? n : n.pre || function() {
1622
1622
  }, s = n.post || function() {
1623
1623
  };
1624
- Mt(t, r, s, e, "", e);
1624
+ Tt(t, r, s, e, "", e);
1625
1625
  };
1626
- Fe.keywords = {
1626
+ Ce.keywords = {
1627
1627
  additionalItems: !0,
1628
1628
  items: !0,
1629
1629
  contains: !0,
@@ -1634,20 +1634,20 @@ Fe.keywords = {
1634
1634
  then: !0,
1635
1635
  else: !0
1636
1636
  };
1637
- Fe.arrayKeywords = {
1637
+ Ce.arrayKeywords = {
1638
1638
  items: !0,
1639
1639
  allOf: !0,
1640
1640
  anyOf: !0,
1641
1641
  oneOf: !0
1642
1642
  };
1643
- Fe.propsKeywords = {
1643
+ Ce.propsKeywords = {
1644
1644
  $defs: !0,
1645
1645
  definitions: !0,
1646
1646
  properties: !0,
1647
1647
  patternProperties: !0,
1648
1648
  dependencies: !0
1649
1649
  };
1650
- Fe.skipKeywords = {
1650
+ Ce.skipKeywords = {
1651
1651
  default: !0,
1652
1652
  enum: !0,
1653
1653
  const: !0,
@@ -1667,20 +1667,20 @@ Fe.skipKeywords = {
1667
1667
  maxProperties: !0,
1668
1668
  minProperties: !0
1669
1669
  };
1670
- function Mt(e, t, n, r, s, a, o, i, d, c) {
1670
+ function Tt(e, t, n, r, s, a, o, i, d, c) {
1671
1671
  if (r && typeof r == "object" && !Array.isArray(r)) {
1672
1672
  t(r, s, a, o, i, d, c);
1673
1673
  for (var u in r) {
1674
1674
  var f = r[u];
1675
1675
  if (Array.isArray(f)) {
1676
- if (u in Fe.arrayKeywords)
1676
+ if (u in Ce.arrayKeywords)
1677
1677
  for (var b = 0; b < f.length; b++)
1678
- Mt(e, t, n, f[b], s + "/" + u + "/" + b, a, s, u, r, b);
1679
- } else if (u in Fe.propsKeywords) {
1678
+ Tt(e, t, n, f[b], s + "/" + u + "/" + b, a, s, u, r, b);
1679
+ } else if (u in Ce.propsKeywords) {
1680
1680
  if (f && typeof f == "object")
1681
1681
  for (var $ in f)
1682
- Mt(e, t, n, f[$], s + "/" + u + "/" + jo($), a, s, u, r, $);
1683
- } else (u in Fe.keywords || e.allKeys && !(u in Fe.skipKeywords)) && Mt(e, t, n, f, s + "/" + u, a, s, u, r);
1682
+ Tt(e, t, n, f[$], s + "/" + u + "/" + jo($), a, s, u, r, $);
1683
+ } else (u in Ce.keywords || e.allKeys && !(u in Ce.skipKeywords)) && Tt(e, t, n, f, s + "/" + u, a, s, u, r);
1684
1684
  }
1685
1685
  n(r, s, a, o, i, d, c);
1686
1686
  }
@@ -1689,8 +1689,8 @@ function jo(e) {
1689
1689
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
1690
1690
  }
1691
1691
  var qo = ps.exports;
1692
- Object.defineProperty(ie, "__esModule", { value: !0 });
1693
- ie.getSchemaRefs = ie.resolveUrl = ie.normalizeId = ie._getFullPath = ie.getFullPath = ie.inlineRef = void 0;
1692
+ Object.defineProperty(le, "__esModule", { value: !0 });
1693
+ le.getSchemaRefs = le.resolveUrl = le.normalizeId = le._getFullPath = le.getFullPath = le.inlineRef = void 0;
1694
1694
  const Io = N, No = hs, Mo = qo, To = /* @__PURE__ */ new Set([
1695
1695
  "type",
1696
1696
  "format",
@@ -1712,7 +1712,7 @@ const Io = N, No = hs, Mo = qo, To = /* @__PURE__ */ new Set([
1712
1712
  function Ro(e, t = !0) {
1713
1713
  return typeof e == "boolean" ? !0 : t === !0 ? !br(e) : t ? ys(e) <= t : !1;
1714
1714
  }
1715
- ie.inlineRef = Ro;
1715
+ le.inlineRef = Ro;
1716
1716
  const Ao = /* @__PURE__ */ new Set([
1717
1717
  "$ref",
1718
1718
  "$recursiveRef",
@@ -1741,29 +1741,29 @@ function ys(e) {
1741
1741
  return t;
1742
1742
  }
1743
1743
  function vs(e, t = "", n) {
1744
- n !== !1 && (t = Ye(t));
1744
+ n !== !1 && (t = Xe(t));
1745
1745
  const r = e.parse(t);
1746
1746
  return _s(e, r);
1747
1747
  }
1748
- ie.getFullPath = vs;
1748
+ le.getFullPath = vs;
1749
1749
  function _s(e, t) {
1750
1750
  return e.serialize(t).split("#")[0] + "#";
1751
1751
  }
1752
- ie._getFullPath = _s;
1752
+ le._getFullPath = _s;
1753
1753
  const Fo = /#\/?$/;
1754
- function Ye(e) {
1754
+ function Xe(e) {
1755
1755
  return e ? e.replace(Fo, "") : "";
1756
1756
  }
1757
- ie.normalizeId = Ye;
1758
- function Do(e, t, n) {
1759
- return n = Ye(n), e.resolve(t, n);
1757
+ le.normalizeId = Xe;
1758
+ function Co(e, t, n) {
1759
+ return n = Xe(n), e.resolve(t, n);
1760
1760
  }
1761
- ie.resolveUrl = Do;
1762
- const Co = /^[a-z_][-a-z0-9._]*$/i;
1761
+ le.resolveUrl = Co;
1762
+ const Do = /^[a-z_][-a-z0-9._]*$/i;
1763
1763
  function Vo(e, t) {
1764
1764
  if (typeof e == "boolean")
1765
1765
  return {};
1766
- const { schemaId: n, uriResolver: r } = this.opts, s = Ye(e[n] || t), a = { "": s }, o = vs(r, s, !1), i = {}, d = /* @__PURE__ */ new Set();
1766
+ const { schemaId: n, uriResolver: r } = this.opts, s = Xe(e[n] || t), a = { "": s }, o = vs(r, s, !1), i = {}, d = /* @__PURE__ */ new Set();
1767
1767
  return Mo(e, { allKeys: !0 }, (f, b, $, _) => {
1768
1768
  if (_ === void 0)
1769
1769
  return;
@@ -1772,15 +1772,15 @@ function Vo(e, t) {
1772
1772
  typeof f[n] == "string" && (p = m.call(this, f[n])), y.call(this, f.$anchor), y.call(this, f.$dynamicAnchor), a[b] = p;
1773
1773
  function m(k) {
1774
1774
  const S = this.opts.uriResolver.resolve;
1775
- if (k = Ye(p ? S(p, k) : k), d.has(k))
1775
+ if (k = Xe(p ? S(p, k) : k), d.has(k))
1776
1776
  throw u(k);
1777
1777
  d.add(k);
1778
1778
  let O = this.refs[k];
1779
- return typeof O == "string" && (O = this.refs[O]), typeof O == "object" ? c(f, O.schema, k) : k !== Ye(g) && (k[0] === "#" ? (c(f, i[k], k), i[k] = f) : this.refs[k] = g), k;
1779
+ return typeof O == "string" && (O = this.refs[O]), typeof O == "object" ? c(f, O.schema, k) : k !== Xe(g) && (k[0] === "#" ? (c(f, i[k], k), i[k] = f) : this.refs[k] = g), k;
1780
1780
  }
1781
1781
  function y(k) {
1782
1782
  if (typeof k == "string") {
1783
- if (!Co.test(k))
1783
+ if (!Do.test(k))
1784
1784
  throw new Error(`invalid anchor "${k}"`);
1785
1785
  m.call(this, `#${k}`);
1786
1786
  }
@@ -1794,10 +1794,10 @@ function Vo(e, t) {
1794
1794
  return new Error(`reference "${f}" resolves to more than one schema`);
1795
1795
  }
1796
1796
  }
1797
- ie.getSchemaRefs = Vo;
1798
- Object.defineProperty($e, "__esModule", { value: !0 });
1799
- $e.getData = $e.KeywordCxt = $e.validateFunctionCode = void 0;
1800
- const gs = Qe, Pn = ne, Rr = Ie, Dt = ne, zo = Ht, ut = Pe, ur = De, R = K, L = qe, Uo = ie, Ne = N, it = gt;
1797
+ le.getSchemaRefs = Vo;
1798
+ Object.defineProperty(we, "__esModule", { value: !0 });
1799
+ we.getData = we.KeywordCxt = we.validateFunctionCode = void 0;
1800
+ const gs = et, Pn = se, Rr = Ne, Dt = se, zo = Kt, ft = Oe, ur = De, R = B, L = Ie, Uo = le, Me = N, lt = bt;
1801
1801
  function Lo(e) {
1802
1802
  if (ws(e) && (ks(e), $s(e))) {
1803
1803
  Bo(e);
@@ -1805,7 +1805,7 @@ function Lo(e) {
1805
1805
  }
1806
1806
  bs(e, () => (0, gs.topBoolOrEmptySchema)(e));
1807
1807
  }
1808
- $e.validateFunctionCode = Lo;
1808
+ we.validateFunctionCode = Lo;
1809
1809
  function bs({ gen: e, validateName: t, schema: n, schemaEnv: r, opts: s }, a) {
1810
1810
  s.code.es5 ? e.func(t, (0, R._)`${L.default.data}, ${L.default.valCxt}`, r.$async, () => {
1811
1811
  e.code((0, R._)`"use strict"; ${On(n, s)}`), Ko(e, s), e.code(a);
@@ -1860,7 +1860,7 @@ function xo(e, t) {
1860
1860
  Ss(e, a), r.var(t, (0, R._)`${a} === ${L.default.errors}`);
1861
1861
  }
1862
1862
  function ks(e) {
1863
- (0, Ne.checkUnknownRules)(e), Wo(e);
1863
+ (0, Me.checkUnknownRules)(e), Wo(e);
1864
1864
  }
1865
1865
  function Ss(e, t) {
1866
1866
  if (e.opts.jtd)
@@ -1870,11 +1870,11 @@ function Ss(e, t) {
1870
1870
  }
1871
1871
  function Wo(e) {
1872
1872
  const { schema: t, errSchemaPath: n, opts: r, self: s } = e;
1873
- t.$ref && r.ignoreKeywordsWithRef && (0, Ne.schemaHasRulesButRef)(t, s.RULES) && s.logger.warn(`$ref: keywords ignored in schema at path "${n}"`);
1873
+ t.$ref && r.ignoreKeywordsWithRef && (0, Me.schemaHasRulesButRef)(t, s.RULES) && s.logger.warn(`$ref: keywords ignored in schema at path "${n}"`);
1874
1874
  }
1875
1875
  function Zo(e) {
1876
1876
  const { schema: t, opts: n } = e;
1877
- t.default !== void 0 && n.useDefaults && n.strictSchema && (0, Ne.checkStrictMode)(e, "default is ignored in the schema root");
1877
+ t.default !== void 0 && n.useDefaults && n.strictSchema && (0, Me.checkStrictMode)(e, "default is ignored in the schema root");
1878
1878
  }
1879
1879
  function Yo(e) {
1880
1880
  const t = e.schema[e.opts.schemaId];
@@ -1902,7 +1902,7 @@ function ei({ gen: e, evaluated: t, props: n, items: r }) {
1902
1902
  }
1903
1903
  function jn(e, t, n, r) {
1904
1904
  const { gen: s, schema: a, data: o, allErrors: i, opts: d, self: c } = e, { RULES: u } = c;
1905
- if (a.$ref && (d.ignoreKeywordsWithRef || !(0, Ne.schemaHasRulesButRef)(a, u))) {
1905
+ if (a.$ref && (d.ignoreKeywordsWithRef || !(0, Me.schemaHasRulesButRef)(a, u))) {
1906
1906
  s.block(() => js(e, "$ref", u.all.$ref.definition));
1907
1907
  return;
1908
1908
  }
@@ -1963,13 +1963,13 @@ function oi(e, t) {
1963
1963
  }
1964
1964
  function Ar(e, t) {
1965
1965
  const n = e.schemaEnv.baseId + e.errSchemaPath;
1966
- t += ` at "${n}" (strictTypes)`, (0, Ne.checkStrictMode)(e, t, e.opts.strictTypes);
1966
+ t += ` at "${n}" (strictTypes)`, (0, Me.checkStrictMode)(e, t, e.opts.strictTypes);
1967
1967
  }
1968
1968
  class Os {
1969
1969
  constructor(t, n, r) {
1970
- if ((0, ut.validateKeywordUsage)(t, n, r), this.gen = t.gen, this.allErrors = t.allErrors, this.keyword = r, this.data = t.data, this.schema = t.schema[r], this.$data = n.$data && t.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, Ne.schemaRefOrVal)(t, this.schema, r, this.$data), this.schemaType = n.schemaType, this.parentSchema = t.schema, this.params = {}, this.it = t, this.def = n, this.$data)
1970
+ if ((0, ft.validateKeywordUsage)(t, n, r), this.gen = t.gen, this.allErrors = t.allErrors, this.keyword = r, this.data = t.data, this.schema = t.schema[r], this.$data = n.$data && t.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, Me.schemaRefOrVal)(t, this.schema, r, this.$data), this.schemaType = n.schemaType, this.parentSchema = t.schema, this.params = {}, this.it = t, this.def = n, this.$data)
1971
1971
  this.schemaCode = t.gen.const("vSchema", qs(this.$data, t));
1972
- else if (this.schemaCode = this.schemaValue, !(0, ut.validSchemaType)(this.schema, n.schemaType, n.allowUndefined))
1972
+ else if (this.schemaCode = this.schemaValue, !(0, ft.validSchemaType)(this.schema, n.schemaType, n.allowUndefined))
1973
1973
  throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);
1974
1974
  ("code" in n ? n.trackErrors : n.errors !== !1) && (this.errsCount = t.gen.const("_errs", L.default.errors));
1975
1975
  }
@@ -2003,15 +2003,15 @@ class Os {
2003
2003
  this._error(t, r);
2004
2004
  }
2005
2005
  _error(t, n) {
2006
- (t ? it.reportExtraError : it.reportError)(this, this.def.error, n);
2006
+ (t ? lt.reportExtraError : lt.reportError)(this, this.def.error, n);
2007
2007
  }
2008
2008
  $dataError() {
2009
- (0, it.reportError)(this, this.def.$dataError || it.keyword$DataError);
2009
+ (0, lt.reportError)(this, this.def.$dataError || lt.keyword$DataError);
2010
2010
  }
2011
2011
  reset() {
2012
2012
  if (this.errsCount === void 0)
2013
2013
  throw new Error('add "trackErrors" to keyword definition');
2014
- (0, it.resetErrorsCount)(this.gen, this.errsCount);
2014
+ (0, lt.resetErrorsCount)(this.gen, this.errsCount);
2015
2015
  }
2016
2016
  ok(t) {
2017
2017
  this.allErrors || this.gen.if(t);
@@ -2058,7 +2058,7 @@ class Os {
2058
2058
  }
2059
2059
  mergeEvaluated(t, n) {
2060
2060
  const { it: r, gen: s } = this;
2061
- r.opts.unevaluated && (r.props !== !0 && t.props !== void 0 && (r.props = Ne.mergeEvaluated.props(s, t.props, r.props, n)), r.items !== !0 && t.items !== void 0 && (r.items = Ne.mergeEvaluated.items(s, t.items, r.items, n)));
2061
+ r.opts.unevaluated && (r.props !== !0 && t.props !== void 0 && (r.props = Me.mergeEvaluated.props(s, t.props, r.props, n)), r.items !== !0 && t.items !== void 0 && (r.items = Me.mergeEvaluated.items(s, t.items, r.items, n)));
2062
2062
  }
2063
2063
  mergeValidEvaluated(t, n) {
2064
2064
  const { it: r, gen: s } = this;
@@ -2066,10 +2066,10 @@ class Os {
2066
2066
  return s.if(n, () => this.mergeEvaluated(t, R.Name)), !0;
2067
2067
  }
2068
2068
  }
2069
- $e.KeywordCxt = Os;
2069
+ we.KeywordCxt = Os;
2070
2070
  function js(e, t, n, r) {
2071
2071
  const s = new Os(e, n, t);
2072
- "code" in n ? n.code(s, r) : s.$data && n.validate ? (0, ut.funcKeywordCode)(s, n) : "macro" in n ? (0, ut.macroKeywordCode)(s, n) : (n.compile || n.validate) && (0, ut.funcKeywordCode)(s, n);
2072
+ "code" in n ? n.code(s, r) : s.$data && n.validate ? (0, ft.funcKeywordCode)(s, n) : "macro" in n ? (0, ft.macroKeywordCode)(s, n) : (n.compile || n.validate) && (0, ft.funcKeywordCode)(s, n);
2073
2073
  }
2074
2074
  const ii = /^\/(?:[^~]|~0|~1)*$/, li = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
2075
2075
  function qs(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
@@ -2098,77 +2098,77 @@ function qs(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
2098
2098
  let o = a;
2099
2099
  const i = s.split("/");
2100
2100
  for (const c of i)
2101
- c && (a = (0, R._)`${a}${(0, R.getProperty)((0, Ne.unescapeJsonPointer)(c))}`, o = (0, R._)`${o} && ${a}`);
2101
+ c && (a = (0, R._)`${a}${(0, R.getProperty)((0, Me.unescapeJsonPointer)(c))}`, o = (0, R._)`${o} && ${a}`);
2102
2102
  return o;
2103
2103
  function d(c, u) {
2104
2104
  return `Cannot access ${c} ${u} levels up, current level is ${t}`;
2105
2105
  }
2106
2106
  }
2107
- $e.getData = qs;
2108
- var bt = {};
2109
- Object.defineProperty(bt, "__esModule", { value: !0 });
2107
+ we.getData = qs;
2108
+ var $t = {};
2109
+ Object.defineProperty($t, "__esModule", { value: !0 });
2110
2110
  class di extends Error {
2111
2111
  constructor(t) {
2112
2112
  super("validation failed"), this.errors = t, this.ajv = this.validation = !0;
2113
2113
  }
2114
2114
  }
2115
- bt.default = di;
2116
- var tt = {};
2117
- Object.defineProperty(tt, "__esModule", { value: !0 });
2118
- const fr = ie;
2115
+ $t.default = di;
2116
+ var nt = {};
2117
+ Object.defineProperty(nt, "__esModule", { value: !0 });
2118
+ const fr = le;
2119
2119
  class ci extends Error {
2120
2120
  constructor(t, n, r, s) {
2121
2121
  super(s || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, fr.resolveUrl)(t, n, r), this.missingSchema = (0, fr.normalizeId)((0, fr.getFullPath)(t, this.missingRef));
2122
2122
  }
2123
2123
  }
2124
- tt.default = ci;
2125
- var ue = {};
2126
- Object.defineProperty(ue, "__esModule", { value: !0 });
2127
- ue.resolveSchema = ue.getCompilingSchema = ue.resolveRef = ue.compileSchema = ue.SchemaEnv = void 0;
2128
- const _e = K, ui = bt, Ce = qe, be = ie, In = N, fi = $e;
2129
- class Kt {
2124
+ nt.default = ci;
2125
+ var fe = {};
2126
+ Object.defineProperty(fe, "__esModule", { value: !0 });
2127
+ fe.resolveSchema = fe.getCompilingSchema = fe.resolveRef = fe.compileSchema = fe.SchemaEnv = void 0;
2128
+ const ge = B, ui = $t, Ve = Ie, $e = le, In = N, fi = we;
2129
+ class Bt {
2130
2130
  constructor(t) {
2131
2131
  var n;
2132
2132
  this.refs = {}, this.dynamicAnchors = {};
2133
2133
  let r;
2134
- typeof t.schema == "object" && (r = t.schema), this.schema = t.schema, this.schemaId = t.schemaId, this.root = t.root || this, this.baseId = (n = t.baseId) !== null && n !== void 0 ? n : (0, be.normalizeId)(r == null ? void 0 : r[t.schemaId || "$id"]), this.schemaPath = t.schemaPath, this.localRefs = t.localRefs, this.meta = t.meta, this.$async = r == null ? void 0 : r.$async, this.refs = {};
2134
+ typeof t.schema == "object" && (r = t.schema), this.schema = t.schema, this.schemaId = t.schemaId, this.root = t.root || this, this.baseId = (n = t.baseId) !== null && n !== void 0 ? n : (0, $e.normalizeId)(r == null ? void 0 : r[t.schemaId || "$id"]), this.schemaPath = t.schemaPath, this.localRefs = t.localRefs, this.meta = t.meta, this.$async = r == null ? void 0 : r.$async, this.refs = {};
2135
2135
  }
2136
2136
  }
2137
- ue.SchemaEnv = Kt;
2137
+ fe.SchemaEnv = Bt;
2138
2138
  function Fr(e) {
2139
2139
  const t = Is.call(this, e);
2140
2140
  if (t)
2141
2141
  return t;
2142
- const n = (0, be.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: r, lines: s } = this.opts.code, { ownProperties: a } = this.opts, o = new _e.CodeGen(this.scope, { es5: r, lines: s, ownProperties: a });
2142
+ const n = (0, $e.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: r, lines: s } = this.opts.code, { ownProperties: a } = this.opts, o = new ge.CodeGen(this.scope, { es5: r, lines: s, ownProperties: a });
2143
2143
  let i;
2144
2144
  e.$async && (i = o.scopeValue("Error", {
2145
2145
  ref: ui.default,
2146
- code: (0, _e._)`require("ajv/dist/runtime/validation_error").default`
2146
+ code: (0, ge._)`require("ajv/dist/runtime/validation_error").default`
2147
2147
  }));
2148
2148
  const d = o.scopeName("validate");
2149
2149
  e.validateName = d;
2150
2150
  const c = {
2151
2151
  gen: o,
2152
2152
  allErrors: this.opts.allErrors,
2153
- data: Ce.default.data,
2154
- parentData: Ce.default.parentData,
2155
- parentDataProperty: Ce.default.parentDataProperty,
2156
- dataNames: [Ce.default.data],
2157
- dataPathArr: [_e.nil],
2153
+ data: Ve.default.data,
2154
+ parentData: Ve.default.parentData,
2155
+ parentDataProperty: Ve.default.parentDataProperty,
2156
+ dataNames: [Ve.default.data],
2157
+ dataPathArr: [ge.nil],
2158
2158
  // TODO can its length be used as dataLevel if nil is removed?
2159
2159
  dataLevel: 0,
2160
2160
  dataTypes: [],
2161
2161
  definedProperties: /* @__PURE__ */ new Set(),
2162
- topSchemaRef: o.scopeValue("schema", this.opts.code.source === !0 ? { ref: e.schema, code: (0, _e.stringify)(e.schema) } : { ref: e.schema }),
2162
+ topSchemaRef: o.scopeValue("schema", this.opts.code.source === !0 ? { ref: e.schema, code: (0, ge.stringify)(e.schema) } : { ref: e.schema }),
2163
2163
  validateName: d,
2164
2164
  ValidationError: i,
2165
2165
  schema: e.schema,
2166
2166
  schemaEnv: e,
2167
2167
  rootId: n,
2168
2168
  baseId: e.baseId || n,
2169
- schemaPath: _e.nil,
2169
+ schemaPath: ge.nil,
2170
2170
  errSchemaPath: e.schemaPath || (this.opts.jtd ? "" : "#"),
2171
- errorPath: (0, _e._)`""`,
2171
+ errorPath: (0, ge._)`""`,
2172
2172
  opts: this.opts,
2173
2173
  self: this
2174
2174
  };
@@ -2176,16 +2176,16 @@ function Fr(e) {
2176
2176
  try {
2177
2177
  this._compilations.add(e), (0, fi.validateFunctionCode)(c), o.optimize(this.opts.code.optimize);
2178
2178
  const f = o.toString();
2179
- u = `${o.scopeRefs(Ce.default.scope)}return ${f}`, this.opts.code.process && (u = this.opts.code.process(u, e));
2180
- const $ = new Function(`${Ce.default.self}`, `${Ce.default.scope}`, u)(this, this.scope.get());
2179
+ u = `${o.scopeRefs(Ve.default.scope)}return ${f}`, this.opts.code.process && (u = this.opts.code.process(u, e));
2180
+ const $ = new Function(`${Ve.default.self}`, `${Ve.default.scope}`, u)(this, this.scope.get());
2181
2181
  if (this.scope.value(d, { ref: $ }), $.errors = null, $.schema = e.schema, $.schemaEnv = e, e.$async && ($.$async = !0), this.opts.code.source === !0 && ($.source = { validateName: d, validateCode: f, scopeValues: o._values }), this.opts.unevaluated) {
2182
2182
  const { props: _, items: g } = c;
2183
2183
  $.evaluated = {
2184
- props: _ instanceof _e.Name ? void 0 : _,
2185
- items: g instanceof _e.Name ? void 0 : g,
2186
- dynamicProps: _ instanceof _e.Name,
2187
- dynamicItems: g instanceof _e.Name
2188
- }, $.source && ($.source.evaluated = (0, _e.stringify)($.evaluated));
2184
+ props: _ instanceof ge.Name ? void 0 : _,
2185
+ items: g instanceof ge.Name ? void 0 : g,
2186
+ dynamicProps: _ instanceof ge.Name,
2187
+ dynamicItems: g instanceof ge.Name
2188
+ }, $.source && ($.source.evaluated = (0, ge.stringify)($.evaluated));
2189
2189
  }
2190
2190
  return e.validate = $, e;
2191
2191
  } catch (f) {
@@ -2194,31 +2194,31 @@ function Fr(e) {
2194
2194
  this._compilations.delete(e);
2195
2195
  }
2196
2196
  }
2197
- ue.compileSchema = Fr;
2197
+ fe.compileSchema = Fr;
2198
2198
  function mi(e, t, n) {
2199
2199
  var r;
2200
- n = (0, be.resolveUrl)(this.opts.uriResolver, t, n);
2200
+ n = (0, $e.resolveUrl)(this.opts.uriResolver, t, n);
2201
2201
  const s = e.refs[n];
2202
2202
  if (s)
2203
2203
  return s;
2204
2204
  let a = yi.call(this, e, n);
2205
2205
  if (a === void 0) {
2206
2206
  const o = (r = e.localRefs) === null || r === void 0 ? void 0 : r[n], { schemaId: i } = this.opts;
2207
- o && (a = new Kt({ schema: o, schemaId: i, root: e, baseId: t }));
2207
+ o && (a = new Bt({ schema: o, schemaId: i, root: e, baseId: t }));
2208
2208
  }
2209
2209
  if (a !== void 0)
2210
2210
  return e.refs[n] = hi.call(this, a);
2211
2211
  }
2212
- ue.resolveRef = mi;
2212
+ fe.resolveRef = mi;
2213
2213
  function hi(e) {
2214
- return (0, be.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : Fr.call(this, e);
2214
+ return (0, $e.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : Fr.call(this, e);
2215
2215
  }
2216
2216
  function Is(e) {
2217
2217
  for (const t of this._compilations)
2218
2218
  if (pi(t, e))
2219
2219
  return t;
2220
2220
  }
2221
- ue.getCompilingSchema = Is;
2221
+ fe.getCompilingSchema = Is;
2222
2222
  function pi(e, t) {
2223
2223
  return e.schema === t.schema && e.root === t.root && e.baseId === t.baseId;
2224
2224
  }
@@ -2226,27 +2226,27 @@ function yi(e, t) {
2226
2226
  let n;
2227
2227
  for (; typeof (n = this.refs[t]) == "string"; )
2228
2228
  t = n;
2229
- return n || this.schemas[t] || Bt.call(this, e, t);
2229
+ return n || this.schemas[t] || Gt.call(this, e, t);
2230
2230
  }
2231
- function Bt(e, t) {
2232
- const n = this.opts.uriResolver.parse(t), r = (0, be._getFullPath)(this.opts.uriResolver, n);
2233
- let s = (0, be.getFullPath)(this.opts.uriResolver, e.baseId, void 0);
2231
+ function Gt(e, t) {
2232
+ const n = this.opts.uriResolver.parse(t), r = (0, $e._getFullPath)(this.opts.uriResolver, n);
2233
+ let s = (0, $e.getFullPath)(this.opts.uriResolver, e.baseId, void 0);
2234
2234
  if (Object.keys(e.schema).length > 0 && r === s)
2235
2235
  return mr.call(this, n, e);
2236
- const a = (0, be.normalizeId)(r), o = this.refs[a] || this.schemas[a];
2236
+ const a = (0, $e.normalizeId)(r), o = this.refs[a] || this.schemas[a];
2237
2237
  if (typeof o == "string") {
2238
- const i = Bt.call(this, e, o);
2238
+ const i = Gt.call(this, e, o);
2239
2239
  return typeof (i == null ? void 0 : i.schema) != "object" ? void 0 : mr.call(this, n, i);
2240
2240
  }
2241
2241
  if (typeof (o == null ? void 0 : o.schema) == "object") {
2242
- if (o.validate || Fr.call(this, o), a === (0, be.normalizeId)(t)) {
2242
+ if (o.validate || Fr.call(this, o), a === (0, $e.normalizeId)(t)) {
2243
2243
  const { schema: i } = o, { schemaId: d } = this.opts, c = i[d];
2244
- return c && (s = (0, be.resolveUrl)(this.opts.uriResolver, s, c)), new Kt({ schema: i, schemaId: d, root: e, baseId: s });
2244
+ return c && (s = (0, $e.resolveUrl)(this.opts.uriResolver, s, c)), new Bt({ schema: i, schemaId: d, root: e, baseId: s });
2245
2245
  }
2246
2246
  return mr.call(this, n, o);
2247
2247
  }
2248
2248
  }
2249
- ue.resolveSchema = Bt;
2249
+ fe.resolveSchema = Gt;
2250
2250
  const vi = /* @__PURE__ */ new Set([
2251
2251
  "properties",
2252
2252
  "patternProperties",
@@ -2266,15 +2266,15 @@ function mr(e, { baseId: t, schema: n, root: r }) {
2266
2266
  return;
2267
2267
  n = d;
2268
2268
  const c = typeof n == "object" && n[this.opts.schemaId];
2269
- !vi.has(i) && c && (t = (0, be.resolveUrl)(this.opts.uriResolver, t, c));
2269
+ !vi.has(i) && c && (t = (0, $e.resolveUrl)(this.opts.uriResolver, t, c));
2270
2270
  }
2271
2271
  let a;
2272
2272
  if (typeof n != "boolean" && n.$ref && !(0, In.schemaHasRulesButRef)(n, this.RULES)) {
2273
- const i = (0, be.resolveUrl)(this.opts.uriResolver, t, n.$ref);
2274
- a = Bt.call(this, r, i);
2273
+ const i = (0, $e.resolveUrl)(this.opts.uriResolver, t, n.$ref);
2274
+ a = Gt.call(this, r, i);
2275
2275
  }
2276
2276
  const { schemaId: o } = this.opts;
2277
- if (a = a || new Kt({ schema: n, schemaId: o, root: r, baseId: t }), a.schema !== a.root.schema)
2277
+ if (a = a || new Bt({ schema: n, schemaId: o, root: r, baseId: t }), a.schema !== a.root.schema)
2278
2278
  return a;
2279
2279
  }
2280
2280
  const _i = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", gi = "Meta-schema for $data reference (JSON AnySchema extension proposal)", bi = "object", $i = [
@@ -2299,7 +2299,7 @@ const _i = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/
2299
2299
  properties: wi,
2300
2300
  additionalProperties: ki
2301
2301
  };
2302
- var Dr = {}, Gt = { exports: {} };
2302
+ var Cr = {}, Jt = { exports: {} };
2303
2303
  const Ei = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), Ns = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
2304
2304
  function Ms(e) {
2305
2305
  let t = "", n = 0, r = 0;
@@ -2466,7 +2466,7 @@ function As(e) {
2466
2466
  function Fs(e) {
2467
2467
  return e.host || (e.error = e.error || "HTTP URIs must have a host."), e;
2468
2468
  }
2469
- function Ds(e) {
2469
+ function Cs(e) {
2470
2470
  const t = String(e.scheme).toLowerCase() === "https";
2471
2471
  return (e.port === (t ? 443 : 80) || e.port === "") && (e.port = void 0), e.path || (e.path = "/"), e;
2472
2472
  }
@@ -2480,23 +2480,23 @@ function Fi(e) {
2480
2480
  }
2481
2481
  return e.fragment = void 0, e;
2482
2482
  }
2483
- function Di(e, t) {
2483
+ function Ci(e, t) {
2484
2484
  if (!e.path)
2485
2485
  return e.error = "URN can not be parsed", e;
2486
2486
  const n = e.path.match(Ri);
2487
2487
  if (n) {
2488
2488
  const r = t.scheme || e.scheme || "urn";
2489
2489
  e.nid = n[1].toLowerCase(), e.nss = n[2];
2490
- const s = `${r}:${t.nid || e.nid}`, a = Cr(s);
2490
+ const s = `${r}:${t.nid || e.nid}`, a = Dr(s);
2491
2491
  e.path = void 0, a && (e = a.parse(e, t));
2492
2492
  } else
2493
2493
  e.error = e.error || "URN can not be parsed.";
2494
2494
  return e;
2495
2495
  }
2496
- function Ci(e, t) {
2496
+ function Di(e, t) {
2497
2497
  if (e.nid === void 0)
2498
2498
  throw new Error("URN without nid cannot be serialized");
2499
- const n = t.scheme || e.scheme || "urn", r = e.nid.toLowerCase(), s = `${n}:${t.nid || r}`, a = Cr(s);
2499
+ const n = t.scheme || e.scheme || "urn", r = e.nid.toLowerCase(), s = `${n}:${t.nid || r}`, a = Dr(s);
2500
2500
  a && (e = a.serialize(e, t));
2501
2501
  const o = e, i = e.nss;
2502
2502
  return o.path = `${r || t.nid}:${i}`, t.skipEscape = !0, o;
@@ -2509,23 +2509,23 @@ function zi(e) {
2509
2509
  const t = e;
2510
2510
  return t.nss = (e.uuid || "").toLowerCase(), t;
2511
2511
  }
2512
- const Cs = (
2512
+ const Ds = (
2513
2513
  /** @type {SchemeHandler} */
2514
2514
  {
2515
2515
  scheme: "http",
2516
2516
  domainHost: !0,
2517
2517
  parse: Fs,
2518
- serialize: Ds
2518
+ serialize: Cs
2519
2519
  }
2520
2520
  ), Ui = (
2521
2521
  /** @type {SchemeHandler} */
2522
2522
  {
2523
2523
  scheme: "https",
2524
- domainHost: Cs.domainHost,
2524
+ domainHost: Ds.domainHost,
2525
2525
  parse: Fs,
2526
- serialize: Ds
2526
+ serialize: Cs
2527
2527
  }
2528
- ), Tt = (
2528
+ ), Rt = (
2529
2529
  /** @type {SchemeHandler} */
2530
2530
  {
2531
2531
  scheme: "ws",
@@ -2537,16 +2537,16 @@ const Cs = (
2537
2537
  /** @type {SchemeHandler} */
2538
2538
  {
2539
2539
  scheme: "wss",
2540
- domainHost: Tt.domainHost,
2541
- parse: Tt.parse,
2542
- serialize: Tt.serialize
2540
+ domainHost: Rt.domainHost,
2541
+ parse: Rt.parse,
2542
+ serialize: Rt.serialize
2543
2543
  }
2544
2544
  ), Hi = (
2545
2545
  /** @type {SchemeHandler} */
2546
2546
  {
2547
2547
  scheme: "urn",
2548
- parse: Di,
2549
- serialize: Ci,
2548
+ parse: Ci,
2549
+ serialize: Di,
2550
2550
  skipNormalize: !0
2551
2551
  }
2552
2552
  ), Ki = (
@@ -2557,49 +2557,49 @@ const Cs = (
2557
2557
  serialize: zi,
2558
2558
  skipNormalize: !0
2559
2559
  }
2560
- ), Ct = (
2560
+ ), Vt = (
2561
2561
  /** @type {Record<SchemeName, SchemeHandler>} */
2562
2562
  {
2563
- http: Cs,
2563
+ http: Ds,
2564
2564
  https: Ui,
2565
- ws: Tt,
2565
+ ws: Rt,
2566
2566
  wss: Li,
2567
2567
  urn: Hi,
2568
2568
  "urn:uuid": Ki
2569
2569
  }
2570
2570
  );
2571
- Object.setPrototypeOf(Ct, null);
2572
- function Cr(e) {
2573
- return e && (Ct[
2571
+ Object.setPrototypeOf(Vt, null);
2572
+ function Dr(e) {
2573
+ return e && (Vt[
2574
2574
  /** @type {SchemeName} */
2575
2575
  e
2576
- ] || Ct[
2576
+ ] || Vt[
2577
2577
  /** @type {SchemeName} */
2578
2578
  e.toLowerCase()
2579
2579
  ]) || void 0;
2580
2580
  }
2581
2581
  var Bi = {
2582
- SCHEMES: Ct,
2583
- getSchemeHandler: Cr
2582
+ SCHEMES: Vt,
2583
+ getSchemeHandler: Dr
2584
2584
  };
2585
- const { normalizeIPv6: Gi, removeDotSegments: dt, recomposeAuthority: Ji, normalizeComponentEncoding: Pt, isIPv4: xi, nonSimpleDomain: Wi } = Rs, { SCHEMES: Zi, getSchemeHandler: Vs } = Bi;
2585
+ const { normalizeIPv6: Gi, removeDotSegments: ct, recomposeAuthority: Ji, normalizeComponentEncoding: Ot, isIPv4: xi, nonSimpleDomain: Wi } = Rs, { SCHEMES: Zi, getSchemeHandler: Vs } = Bi;
2586
2586
  function Yi(e, t) {
2587
2587
  return typeof e == "string" ? e = /** @type {T} */
2588
- Oe(Me(e, t), t) : typeof e == "object" && (e = /** @type {T} */
2589
- Me(Oe(e, t), t)), e;
2588
+ je(Te(e, t), t) : typeof e == "object" && (e = /** @type {T} */
2589
+ Te(je(e, t), t)), e;
2590
2590
  }
2591
2591
  function Qi(e, t, n) {
2592
- const r = n ? Object.assign({ scheme: "null" }, n) : { scheme: "null" }, s = zs(Me(e, r), Me(t, r), r, !0);
2593
- return r.skipEscape = !0, Oe(s, r);
2592
+ const r = n ? Object.assign({ scheme: "null" }, n) : { scheme: "null" }, s = zs(Te(e, r), Te(t, r), r, !0);
2593
+ return r.skipEscape = !0, je(s, r);
2594
2594
  }
2595
2595
  function zs(e, t, n, r) {
2596
2596
  const s = {};
2597
- return r || (e = Me(Oe(e, n), n), t = Me(Oe(t, n), n)), n = n || {}, !n.tolerant && t.scheme ? (s.scheme = t.scheme, s.userinfo = t.userinfo, s.host = t.host, s.port = t.port, s.path = dt(t.path || ""), s.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (s.userinfo = t.userinfo, s.host = t.host, s.port = t.port, s.path = dt(t.path || ""), s.query = t.query) : (t.path ? (t.path[0] === "/" ? s.path = dt(t.path) : ((e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0) && !e.path ? s.path = "/" + t.path : e.path ? s.path = e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : s.path = t.path, s.path = dt(s.path)), s.query = t.query) : (s.path = e.path, t.query !== void 0 ? s.query = t.query : s.query = e.query), s.userinfo = e.userinfo, s.host = e.host, s.port = e.port), s.scheme = e.scheme), s.fragment = t.fragment, s;
2597
+ return r || (e = Te(je(e, n), n), t = Te(je(t, n), n)), n = n || {}, !n.tolerant && t.scheme ? (s.scheme = t.scheme, s.userinfo = t.userinfo, s.host = t.host, s.port = t.port, s.path = ct(t.path || ""), s.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (s.userinfo = t.userinfo, s.host = t.host, s.port = t.port, s.path = ct(t.path || ""), s.query = t.query) : (t.path ? (t.path[0] === "/" ? s.path = ct(t.path) : ((e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0) && !e.path ? s.path = "/" + t.path : e.path ? s.path = e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : s.path = t.path, s.path = ct(s.path)), s.query = t.query) : (s.path = e.path, t.query !== void 0 ? s.query = t.query : s.query = e.query), s.userinfo = e.userinfo, s.host = e.host, s.port = e.port), s.scheme = e.scheme), s.fragment = t.fragment, s;
2598
2598
  }
2599
2599
  function Xi(e, t, n) {
2600
- return typeof e == "string" ? (e = unescape(e), e = Oe(Pt(Me(e, n), !0), { ...n, skipEscape: !0 })) : typeof e == "object" && (e = Oe(Pt(e, !0), { ...n, skipEscape: !0 })), typeof t == "string" ? (t = unescape(t), t = Oe(Pt(Me(t, n), !0), { ...n, skipEscape: !0 })) : typeof t == "object" && (t = Oe(Pt(t, !0), { ...n, skipEscape: !0 })), e.toLowerCase() === t.toLowerCase();
2600
+ return typeof e == "string" ? (e = unescape(e), e = je(Ot(Te(e, n), !0), { ...n, skipEscape: !0 })) : typeof e == "object" && (e = je(Ot(e, !0), { ...n, skipEscape: !0 })), typeof t == "string" ? (t = unescape(t), t = je(Ot(Te(t, n), !0), { ...n, skipEscape: !0 })) : typeof t == "object" && (t = je(Ot(t, !0), { ...n, skipEscape: !0 })), e.toLowerCase() === t.toLowerCase();
2601
2601
  }
2602
- function Oe(e, t) {
2602
+ function je(e, t) {
2603
2603
  const n = {
2604
2604
  host: e.host,
2605
2605
  scheme: e.scheme,
@@ -2620,12 +2620,12 @@ function Oe(e, t) {
2620
2620
  const o = Ji(n);
2621
2621
  if (o !== void 0 && (r.reference !== "suffix" && s.push("//"), s.push(o), n.path && n.path[0] !== "/" && s.push("/")), n.path !== void 0) {
2622
2622
  let i = n.path;
2623
- !r.absolutePath && (!a || !a.absolutePath) && (i = dt(i)), o === void 0 && i[0] === "/" && i[1] === "/" && (i = "/%2F" + i.slice(2)), s.push(i);
2623
+ !r.absolutePath && (!a || !a.absolutePath) && (i = ct(i)), o === void 0 && i[0] === "/" && i[1] === "/" && (i = "/%2F" + i.slice(2)), s.push(i);
2624
2624
  }
2625
2625
  return n.query !== void 0 && s.push("?", n.query), n.fragment !== void 0 && s.push("#", n.fragment), s.join("");
2626
2626
  }
2627
2627
  const el = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
2628
- function Me(e, t) {
2628
+ function Te(e, t) {
2629
2629
  const n = Object.assign({}, t), r = {
2630
2630
  scheme: void 0,
2631
2631
  userinfo: void 0,
@@ -2664,24 +2664,24 @@ const Vr = {
2664
2664
  resolve: Qi,
2665
2665
  resolveComponent: zs,
2666
2666
  equal: Xi,
2667
- serialize: Oe,
2668
- parse: Me
2667
+ serialize: je,
2668
+ parse: Te
2669
2669
  };
2670
- Gt.exports = Vr;
2671
- Gt.exports.default = Vr;
2672
- Gt.exports.fastUri = Vr;
2673
- var tl = Gt.exports;
2674
- Object.defineProperty(Dr, "__esModule", { value: !0 });
2670
+ Jt.exports = Vr;
2671
+ Jt.exports.default = Vr;
2672
+ Jt.exports.fastUri = Vr;
2673
+ var tl = Jt.exports;
2674
+ Object.defineProperty(Cr, "__esModule", { value: !0 });
2675
2675
  const Us = tl;
2676
2676
  Us.code = 'require("ajv/dist/runtime/uri").default';
2677
- Dr.default = Us;
2677
+ Cr.default = Us;
2678
2678
  (function(e) {
2679
2679
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
2680
- var t = $e;
2680
+ var t = we;
2681
2681
  Object.defineProperty(e, "KeywordCxt", { enumerable: !0, get: function() {
2682
2682
  return t.KeywordCxt;
2683
2683
  } });
2684
- var n = K;
2684
+ var n = B;
2685
2685
  Object.defineProperty(e, "_", { enumerable: !0, get: function() {
2686
2686
  return n._;
2687
2687
  } }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
@@ -2695,7 +2695,7 @@ Dr.default = Us;
2695
2695
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
2696
2696
  return n.CodeGen;
2697
2697
  } });
2698
- const r = bt, s = tt, a = He, o = ue, i = K, d = ie, c = ne, u = N, f = Si, b = Dr, $ = (q, v) => new RegExp(q, v);
2698
+ const r = $t, s = nt, a = Ke, o = fe, i = B, d = le, c = se, u = N, f = Si, b = Cr, $ = (q, v) => new RegExp(q, v);
2699
2699
  $.code = "new RegExp";
2700
2700
  const _ = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
2701
2701
  "validate",
@@ -2733,14 +2733,14 @@ Dr.default = Us;
2733
2733
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
2734
2734
  }, y = 200;
2735
2735
  function k(q) {
2736
- var v, P, w, l, h, E, A, D, Y, Z, se, Be, Yt, Qt, Xt, er, tr, rr, nr, sr, ar, or, ir, lr, dr;
2737
- const at = q.strict, cr = (v = q.code) === null || v === void 0 ? void 0 : v.optimize, _n = cr === !0 || cr === void 0 ? 1 : cr || 0, gn = (w = (P = q.code) === null || P === void 0 ? void 0 : P.regExp) !== null && w !== void 0 ? w : $, ea = (l = q.uriResolver) !== null && l !== void 0 ? l : b.default;
2736
+ var v, P, w, l, h, E, A, D, Y, Z, oe, Je, Yt, Qt, Xt, er, tr, rr, nr, sr, ar, or, ir, lr, dr;
2737
+ const it = q.strict, cr = (v = q.code) === null || v === void 0 ? void 0 : v.optimize, _n = cr === !0 || cr === void 0 ? 1 : cr || 0, gn = (w = (P = q.code) === null || P === void 0 ? void 0 : P.regExp) !== null && w !== void 0 ? w : $, ea = (l = q.uriResolver) !== null && l !== void 0 ? l : b.default;
2738
2738
  return {
2739
- strictSchema: (E = (h = q.strictSchema) !== null && h !== void 0 ? h : at) !== null && E !== void 0 ? E : !0,
2740
- strictNumbers: (D = (A = q.strictNumbers) !== null && A !== void 0 ? A : at) !== null && D !== void 0 ? D : !0,
2741
- strictTypes: (Z = (Y = q.strictTypes) !== null && Y !== void 0 ? Y : at) !== null && Z !== void 0 ? Z : "log",
2742
- strictTuples: (Be = (se = q.strictTuples) !== null && se !== void 0 ? se : at) !== null && Be !== void 0 ? Be : "log",
2743
- strictRequired: (Qt = (Yt = q.strictRequired) !== null && Yt !== void 0 ? Yt : at) !== null && Qt !== void 0 ? Qt : !1,
2739
+ strictSchema: (E = (h = q.strictSchema) !== null && h !== void 0 ? h : it) !== null && E !== void 0 ? E : !0,
2740
+ strictNumbers: (D = (A = q.strictNumbers) !== null && A !== void 0 ? A : it) !== null && D !== void 0 ? D : !0,
2741
+ strictTypes: (Z = (Y = q.strictTypes) !== null && Y !== void 0 ? Y : it) !== null && Z !== void 0 ? Z : "log",
2742
+ strictTuples: (Je = (oe = q.strictTuples) !== null && oe !== void 0 ? oe : it) !== null && Je !== void 0 ? Je : "log",
2743
+ strictRequired: (Qt = (Yt = q.strictRequired) !== null && Yt !== void 0 ? Yt : it) !== null && Qt !== void 0 ? Qt : !1,
2744
2744
  code: q.code ? { ...q.code, optimize: _n, regExp: gn } : { optimize: _n, regExp: gn },
2745
2745
  loopRequired: (Xt = q.loopRequired) !== null && Xt !== void 0 ? Xt : y,
2746
2746
  loopEnum: (er = q.loopEnum) !== null && er !== void 0 ? er : y,
@@ -2762,7 +2762,7 @@ Dr.default = Us;
2762
2762
  const { es5: P, lines: w } = this.opts.code;
2763
2763
  this.scope = new i.ValueScope({ scope: {}, prefixes: g, es5: P, lines: w }), this.logger = U(v.logger);
2764
2764
  const l = v.validateFormats;
2765
- v.validateFormats = !1, this.RULES = (0, a.getRules)(), O.call(this, p, v, "NOT SUPPORTED"), O.call(this, m, v, "DEPRECATED", "warn"), this._metaOpts = z.call(this), v.formats && M.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), v.keywords && T.call(this, v.keywords), typeof v.meta == "object" && this.addMetaSchema(v.meta), x.call(this), v.validateFormats = l;
2765
+ v.validateFormats = !1, this.RULES = (0, a.getRules)(), O.call(this, p, v, "NOT SUPPORTED"), O.call(this, m, v, "DEPRECATED", "warn"), this._metaOpts = z.call(this), v.formats && M.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), v.keywords && T.call(this, v.keywords), typeof v.meta == "object" && this.addMetaSchema(v.meta), H.call(this), v.validateFormats = l;
2766
2766
  }
2767
2767
  _addVocabularies() {
2768
2768
  this.addKeyword("$async");
@@ -2795,10 +2795,10 @@ Dr.default = Us;
2795
2795
  throw new Error("options.loadSchema should be a function");
2796
2796
  const { loadSchema: w } = this.opts;
2797
2797
  return l.call(this, v, P);
2798
- async function l(Z, se) {
2798
+ async function l(Z, oe) {
2799
2799
  await h.call(this, Z.$schema);
2800
- const Be = this._addSchema(Z, se);
2801
- return Be.validate || E.call(this, Be);
2800
+ const Je = this._addSchema(Z, oe);
2801
+ return Je.validate || E.call(this, Je);
2802
2802
  }
2803
2803
  async function h(Z) {
2804
2804
  Z && !this.getSchema(Z) && await l.call(this, { $ref: Z }, !0);
@@ -2806,24 +2806,24 @@ Dr.default = Us;
2806
2806
  async function E(Z) {
2807
2807
  try {
2808
2808
  return this._compileSchemaEnv(Z);
2809
- } catch (se) {
2810
- if (!(se instanceof s.default))
2811
- throw se;
2812
- return A.call(this, se), await D.call(this, se.missingSchema), E.call(this, Z);
2809
+ } catch (oe) {
2810
+ if (!(oe instanceof s.default))
2811
+ throw oe;
2812
+ return A.call(this, oe), await D.call(this, oe.missingSchema), E.call(this, Z);
2813
2813
  }
2814
2814
  }
2815
- function A({ missingSchema: Z, missingRef: se }) {
2815
+ function A({ missingSchema: Z, missingRef: oe }) {
2816
2816
  if (this.refs[Z])
2817
- throw new Error(`AnySchema ${Z} is loaded but ${se} cannot be resolved`);
2817
+ throw new Error(`AnySchema ${Z} is loaded but ${oe} cannot be resolved`);
2818
2818
  }
2819
2819
  async function D(Z) {
2820
- const se = await Y.call(this, Z);
2821
- this.refs[Z] || await h.call(this, se.$schema), this.refs[Z] || this.addSchema(se, Z, P);
2820
+ const oe = await Y.call(this, Z);
2821
+ this.refs[Z] || await h.call(this, oe.$schema), this.refs[Z] || this.addSchema(oe, Z, P);
2822
2822
  }
2823
2823
  async function Y(Z) {
2824
- const se = this._loading[Z];
2825
- if (se)
2826
- return se;
2824
+ const oe = this._loading[Z];
2825
+ if (oe)
2826
+ return oe;
2827
2827
  try {
2828
2828
  return await (this._loading[Z] = w(Z));
2829
2829
  } finally {
@@ -2874,7 +2874,7 @@ Dr.default = Us;
2874
2874
  // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)
2875
2875
  getSchema(v) {
2876
2876
  let P;
2877
- for (; typeof (P = V.call(this, v)) == "string"; )
2877
+ for (; typeof (P = C.call(this, v)) == "string"; )
2878
2878
  v = P;
2879
2879
  if (P === void 0) {
2880
2880
  const { schemaId: w } = this.opts, l = new o.SchemaEnv({ schema: {}, schemaId: w });
@@ -2895,7 +2895,7 @@ Dr.default = Us;
2895
2895
  case "undefined":
2896
2896
  return this._removeAllSchemas(this.schemas), this._removeAllSchemas(this.refs), this._cache.clear(), this;
2897
2897
  case "string": {
2898
- const P = V.call(this, v);
2898
+ const P = C.call(this, v);
2899
2899
  return typeof P == "object" && this._cache.delete(P.schema), delete this.schemas[v], delete this.refs[v], this;
2900
2900
  }
2901
2901
  case "object": {
@@ -2923,15 +2923,15 @@ Dr.default = Us;
2923
2923
  throw new Error("addKeywords: keyword must be string or non-empty array");
2924
2924
  } else
2925
2925
  throw new Error("invalid addKeywords parameters");
2926
- if (ee.call(this, w, P), !P)
2927
- return (0, u.eachItem)(w, (h) => he.call(this, h)), this;
2928
- Wt.call(this, P);
2926
+ if (re.call(this, w, P), !P)
2927
+ return (0, u.eachItem)(w, (h) => x.call(this, h)), this;
2928
+ Ge.call(this, P);
2929
2929
  const l = {
2930
2930
  ...P,
2931
2931
  type: (0, c.getJSONTypes)(P.type),
2932
2932
  schemaType: (0, c.getJSONTypes)(P.schemaType)
2933
2933
  };
2934
- return (0, u.eachItem)(w, l.type.length === 0 ? (h) => he.call(this, h, l) : (h) => l.type.forEach((E) => he.call(this, h, l, E))), this;
2934
+ return (0, u.eachItem)(w, l.type.length === 0 ? (h) => x.call(this, h, l) : (h) => l.type.forEach((E) => x.call(this, h, l, E))), this;
2935
2935
  }
2936
2936
  getKeyword(v) {
2937
2937
  const P = this.RULES.all[v];
@@ -3022,10 +3022,10 @@ Dr.default = Us;
3022
3022
  h in v && this.logger[w](`${P}: option ${l}. ${q[h]}`);
3023
3023
  }
3024
3024
  }
3025
- function V(q) {
3025
+ function C(q) {
3026
3026
  return q = (0, d.normalizeId)(q), this.schemas[q] || this.refs[q];
3027
3027
  }
3028
- function x() {
3028
+ function H() {
3029
3029
  const q = this.opts.schemas;
3030
3030
  if (q)
3031
3031
  if (Array.isArray(q))
@@ -3070,18 +3070,18 @@ Dr.default = Us;
3070
3070
  return q;
3071
3071
  throw new Error("logger must implement log, warn and error methods");
3072
3072
  }
3073
- const B = /^[a-z_$][a-z0-9_$:-]*$/i;
3074
- function ee(q, v) {
3073
+ const ne = /^[a-z_$][a-z0-9_$:-]*$/i;
3074
+ function re(q, v) {
3075
3075
  const { RULES: P } = this;
3076
3076
  if ((0, u.eachItem)(q, (w) => {
3077
3077
  if (P.keywords[w])
3078
3078
  throw new Error(`Keyword ${w} is already defined`);
3079
- if (!B.test(w))
3079
+ if (!ne.test(w))
3080
3080
  throw new Error(`Keyword ${w} has invalid name`);
3081
3081
  }), !!v && v.$data && !("code" in v || "validate" in v))
3082
3082
  throw new Error('$data keyword must have "code" or "validate" function');
3083
3083
  }
3084
- function he(q, v, P) {
3084
+ function x(q, v, P) {
3085
3085
  var w;
3086
3086
  const l = v == null ? void 0 : v.post;
3087
3087
  if (P && l)
@@ -3098,13 +3098,13 @@ Dr.default = Us;
3098
3098
  schemaType: (0, c.getJSONTypes)(v.schemaType)
3099
3099
  }
3100
3100
  };
3101
- v.before ? St.call(this, E, A, v.before) : E.rules.push(A), h.all[q] = A, (w = v.implements) === null || w === void 0 || w.forEach((D) => this.addKeyword(D));
3101
+ v.before ? pe.call(this, E, A, v.before) : E.rules.push(A), h.all[q] = A, (w = v.implements) === null || w === void 0 || w.forEach((D) => this.addKeyword(D));
3102
3102
  }
3103
- function St(q, v, P) {
3103
+ function pe(q, v, P) {
3104
3104
  const w = q.rules.findIndex((l) => l.keyword === P);
3105
3105
  w >= 0 ? q.rules.splice(w, 0, v) : (q.rules.push(v), this.logger.warn(`rule ${P} is not defined`));
3106
3106
  }
3107
- function Wt(q) {
3107
+ function Ge(q) {
3108
3108
  let { metaSchema: v } = q;
3109
3109
  v !== void 0 && (q.$data && this.opts.$data && (v = Et(v)), q.validateSchema = this.compile(v, !0));
3110
3110
  }
@@ -3124,10 +3124,10 @@ const rl = {
3124
3124
  }
3125
3125
  };
3126
3126
  Lr.default = rl;
3127
- var Ke = {};
3128
- Object.defineProperty(Ke, "__esModule", { value: !0 });
3129
- Ke.callRef = Ke.getValidate = void 0;
3130
- const nl = tt, Mn = J, ce = K, Je = qe, Tn = ue, Ot = N, sl = {
3127
+ var Be = {};
3128
+ Object.defineProperty(Be, "__esModule", { value: !0 });
3129
+ Be.callRef = Be.getValidate = void 0;
3130
+ const nl = nt, Mn = J, ue = B, We = Ie, Tn = fe, jt = N, sl = {
3131
3131
  keyword: "$ref",
3132
3132
  schemaType: "string",
3133
3133
  code(e) {
@@ -3142,19 +3142,19 @@ const nl = tt, Mn = J, ce = K, Je = qe, Tn = ue, Ot = N, sl = {
3142
3142
  return $(u);
3143
3143
  function f() {
3144
3144
  if (a === c)
3145
- return Rt(e, o, a, a.$async);
3145
+ return At(e, o, a, a.$async);
3146
3146
  const _ = t.scopeValue("root", { ref: c });
3147
- return Rt(e, (0, ce._)`${_}.validate`, c, c.$async);
3147
+ return At(e, (0, ue._)`${_}.validate`, c, c.$async);
3148
3148
  }
3149
3149
  function b(_) {
3150
3150
  const g = Ls(e, _);
3151
- Rt(e, g, _, _.$async);
3151
+ At(e, g, _, _.$async);
3152
3152
  }
3153
3153
  function $(_) {
3154
- const g = t.scopeValue("schema", i.code.source === !0 ? { ref: _, code: (0, ce.stringify)(_) } : { ref: _ }), p = t.name("valid"), m = e.subschema({
3154
+ const g = t.scopeValue("schema", i.code.source === !0 ? { ref: _, code: (0, ue.stringify)(_) } : { ref: _ }), p = t.name("valid"), m = e.subschema({
3155
3155
  schema: _,
3156
3156
  dataTypes: [],
3157
- schemaPath: ce.nil,
3157
+ schemaPath: ue.nil,
3158
3158
  topSchemaRef: g,
3159
3159
  errSchemaPath: n
3160
3160
  }, p);
@@ -3164,28 +3164,28 @@ const nl = tt, Mn = J, ce = K, Je = qe, Tn = ue, Ot = N, sl = {
3164
3164
  };
3165
3165
  function Ls(e, t) {
3166
3166
  const { gen: n } = e;
3167
- return t.validate ? n.scopeValue("validate", { ref: t.validate }) : (0, ce._)`${n.scopeValue("wrapper", { ref: t })}.validate`;
3167
+ return t.validate ? n.scopeValue("validate", { ref: t.validate }) : (0, ue._)`${n.scopeValue("wrapper", { ref: t })}.validate`;
3168
3168
  }
3169
- Ke.getValidate = Ls;
3170
- function Rt(e, t, n, r) {
3171
- const { gen: s, it: a } = e, { allErrors: o, schemaEnv: i, opts: d } = a, c = d.passContext ? Je.default.this : ce.nil;
3169
+ Be.getValidate = Ls;
3170
+ function At(e, t, n, r) {
3171
+ const { gen: s, it: a } = e, { allErrors: o, schemaEnv: i, opts: d } = a, c = d.passContext ? We.default.this : ue.nil;
3172
3172
  r ? u() : f();
3173
3173
  function u() {
3174
3174
  if (!i.$async)
3175
3175
  throw new Error("async schema referenced by sync schema");
3176
3176
  const _ = s.let("valid");
3177
3177
  s.try(() => {
3178
- s.code((0, ce._)`await ${(0, Mn.callValidateCode)(e, t, c)}`), $(t), o || s.assign(_, !0);
3178
+ s.code((0, ue._)`await ${(0, Mn.callValidateCode)(e, t, c)}`), $(t), o || s.assign(_, !0);
3179
3179
  }, (g) => {
3180
- s.if((0, ce._)`!(${g} instanceof ${a.ValidationError})`, () => s.throw(g)), b(g), o || s.assign(_, !1);
3180
+ s.if((0, ue._)`!(${g} instanceof ${a.ValidationError})`, () => s.throw(g)), b(g), o || s.assign(_, !1);
3181
3181
  }), e.ok(_);
3182
3182
  }
3183
3183
  function f() {
3184
3184
  e.result((0, Mn.callValidateCode)(e, t, c), () => $(t), () => b(t));
3185
3185
  }
3186
3186
  function b(_) {
3187
- const g = (0, ce._)`${_}.errors`;
3188
- s.assign(Je.default.vErrors, (0, ce._)`${Je.default.vErrors} === null ? ${g} : ${Je.default.vErrors}.concat(${g})`), s.assign(Je.default.errors, (0, ce._)`${Je.default.vErrors}.length`);
3187
+ const g = (0, ue._)`${_}.errors`;
3188
+ s.assign(We.default.vErrors, (0, ue._)`${We.default.vErrors} === null ? ${g} : ${We.default.vErrors}.concat(${g})`), s.assign(We.default.errors, (0, ue._)`${We.default.vErrors}.length`);
3189
3189
  }
3190
3190
  function $(_) {
3191
3191
  var g;
@@ -3194,24 +3194,24 @@ function Rt(e, t, n, r) {
3194
3194
  const p = (g = n == null ? void 0 : n.validate) === null || g === void 0 ? void 0 : g.evaluated;
3195
3195
  if (a.props !== !0)
3196
3196
  if (p && !p.dynamicProps)
3197
- p.props !== void 0 && (a.props = Ot.mergeEvaluated.props(s, p.props, a.props));
3197
+ p.props !== void 0 && (a.props = jt.mergeEvaluated.props(s, p.props, a.props));
3198
3198
  else {
3199
- const m = s.var("props", (0, ce._)`${_}.evaluated.props`);
3200
- a.props = Ot.mergeEvaluated.props(s, m, a.props, ce.Name);
3199
+ const m = s.var("props", (0, ue._)`${_}.evaluated.props`);
3200
+ a.props = jt.mergeEvaluated.props(s, m, a.props, ue.Name);
3201
3201
  }
3202
3202
  if (a.items !== !0)
3203
3203
  if (p && !p.dynamicItems)
3204
- p.items !== void 0 && (a.items = Ot.mergeEvaluated.items(s, p.items, a.items));
3204
+ p.items !== void 0 && (a.items = jt.mergeEvaluated.items(s, p.items, a.items));
3205
3205
  else {
3206
- const m = s.var("items", (0, ce._)`${_}.evaluated.items`);
3207
- a.items = Ot.mergeEvaluated.items(s, m, a.items, ce.Name);
3206
+ const m = s.var("items", (0, ue._)`${_}.evaluated.items`);
3207
+ a.items = jt.mergeEvaluated.items(s, m, a.items, ue.Name);
3208
3208
  }
3209
3209
  }
3210
3210
  }
3211
- Ke.callRef = Rt;
3212
- Ke.default = sl;
3211
+ Be.callRef = At;
3212
+ Be.default = sl;
3213
3213
  Object.defineProperty(Ur, "__esModule", { value: !0 });
3214
- const al = Lr, ol = Ke, il = [
3214
+ const al = Lr, ol = Be, il = [
3215
3215
  "$schema",
3216
3216
  "$id",
3217
3217
  "$defs",
@@ -3224,31 +3224,31 @@ const al = Lr, ol = Ke, il = [
3224
3224
  Ur.default = il;
3225
3225
  var Hr = {}, Kr = {};
3226
3226
  Object.defineProperty(Kr, "__esModule", { value: !0 });
3227
- const Vt = K, Re = Vt.operators, zt = {
3228
- maximum: { okStr: "<=", ok: Re.LTE, fail: Re.GT },
3229
- minimum: { okStr: ">=", ok: Re.GTE, fail: Re.LT },
3230
- exclusiveMaximum: { okStr: "<", ok: Re.LT, fail: Re.GTE },
3231
- exclusiveMinimum: { okStr: ">", ok: Re.GT, fail: Re.LTE }
3227
+ const zt = B, Ae = zt.operators, Ut = {
3228
+ maximum: { okStr: "<=", ok: Ae.LTE, fail: Ae.GT },
3229
+ minimum: { okStr: ">=", ok: Ae.GTE, fail: Ae.LT },
3230
+ exclusiveMaximum: { okStr: "<", ok: Ae.LT, fail: Ae.GTE },
3231
+ exclusiveMinimum: { okStr: ">", ok: Ae.GT, fail: Ae.LTE }
3232
3232
  }, ll = {
3233
- message: ({ keyword: e, schemaCode: t }) => (0, Vt.str)`must be ${zt[e].okStr} ${t}`,
3234
- params: ({ keyword: e, schemaCode: t }) => (0, Vt._)`{comparison: ${zt[e].okStr}, limit: ${t}}`
3233
+ message: ({ keyword: e, schemaCode: t }) => (0, zt.str)`must be ${Ut[e].okStr} ${t}`,
3234
+ params: ({ keyword: e, schemaCode: t }) => (0, zt._)`{comparison: ${Ut[e].okStr}, limit: ${t}}`
3235
3235
  }, dl = {
3236
- keyword: Object.keys(zt),
3236
+ keyword: Object.keys(Ut),
3237
3237
  type: "number",
3238
3238
  schemaType: "number",
3239
3239
  $data: !0,
3240
3240
  error: ll,
3241
3241
  code(e) {
3242
3242
  const { keyword: t, data: n, schemaCode: r } = e;
3243
- e.fail$data((0, Vt._)`${n} ${zt[t].fail} ${r} || isNaN(${n})`);
3243
+ e.fail$data((0, zt._)`${n} ${Ut[t].fail} ${r} || isNaN(${n})`);
3244
3244
  }
3245
3245
  };
3246
3246
  Kr.default = dl;
3247
3247
  var Br = {};
3248
3248
  Object.defineProperty(Br, "__esModule", { value: !0 });
3249
- const ft = K, cl = {
3250
- message: ({ schemaCode: e }) => (0, ft.str)`must be multiple of ${e}`,
3251
- params: ({ schemaCode: e }) => (0, ft._)`{multipleOf: ${e}}`
3249
+ const mt = B, cl = {
3250
+ message: ({ schemaCode: e }) => (0, mt.str)`must be multiple of ${e}`,
3251
+ params: ({ schemaCode: e }) => (0, mt._)`{multipleOf: ${e}}`
3252
3252
  }, ul = {
3253
3253
  keyword: "multipleOf",
3254
3254
  type: "number",
@@ -3256,8 +3256,8 @@ const ft = K, cl = {
3256
3256
  $data: !0,
3257
3257
  error: cl,
3258
3258
  code(e) {
3259
- const { gen: t, data: n, schemaCode: r, it: s } = e, a = s.opts.multipleOfPrecision, o = t.let("res"), i = a ? (0, ft._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${a}` : (0, ft._)`${o} !== parseInt(${o})`;
3260
- e.fail$data((0, ft._)`(${r} === 0 || (${o} = ${n}/${r}, ${i}))`);
3259
+ const { gen: t, data: n, schemaCode: r, it: s } = e, a = s.opts.multipleOfPrecision, o = t.let("res"), i = a ? (0, mt._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${a}` : (0, mt._)`${o} !== parseInt(${o})`;
3260
+ e.fail$data((0, mt._)`(${r} === 0 || (${o} = ${n}/${r}, ${i}))`);
3261
3261
  }
3262
3262
  };
3263
3263
  Br.default = ul;
@@ -3273,12 +3273,12 @@ function Hs(e) {
3273
3273
  Jr.default = Hs;
3274
3274
  Hs.code = 'require("ajv/dist/runtime/ucs2length").default';
3275
3275
  Object.defineProperty(Gr, "__esModule", { value: !0 });
3276
- const ze = K, fl = N, ml = Jr, hl = {
3276
+ const Ue = B, fl = N, ml = Jr, hl = {
3277
3277
  message({ keyword: e, schemaCode: t }) {
3278
3278
  const n = e === "maxLength" ? "more" : "fewer";
3279
- return (0, ze.str)`must NOT have ${n} than ${t} characters`;
3279
+ return (0, Ue.str)`must NOT have ${n} than ${t} characters`;
3280
3280
  },
3281
- params: ({ schemaCode: e }) => (0, ze._)`{limit: ${e}}`
3281
+ params: ({ schemaCode: e }) => (0, Ue._)`{limit: ${e}}`
3282
3282
  }, pl = {
3283
3283
  keyword: ["maxLength", "minLength"],
3284
3284
  type: "string",
@@ -3286,16 +3286,16 @@ const ze = K, fl = N, ml = Jr, hl = {
3286
3286
  $data: !0,
3287
3287
  error: hl,
3288
3288
  code(e) {
3289
- const { keyword: t, data: n, schemaCode: r, it: s } = e, a = t === "maxLength" ? ze.operators.GT : ze.operators.LT, o = s.opts.unicode === !1 ? (0, ze._)`${n}.length` : (0, ze._)`${(0, fl.useFunc)(e.gen, ml.default)}(${n})`;
3290
- e.fail$data((0, ze._)`${o} ${a} ${r}`);
3289
+ const { keyword: t, data: n, schemaCode: r, it: s } = e, a = t === "maxLength" ? Ue.operators.GT : Ue.operators.LT, o = s.opts.unicode === !1 ? (0, Ue._)`${n}.length` : (0, Ue._)`${(0, fl.useFunc)(e.gen, ml.default)}(${n})`;
3290
+ e.fail$data((0, Ue._)`${o} ${a} ${r}`);
3291
3291
  }
3292
3292
  };
3293
3293
  Gr.default = pl;
3294
3294
  var xr = {};
3295
3295
  Object.defineProperty(xr, "__esModule", { value: !0 });
3296
- const yl = J, Ut = K, vl = {
3297
- message: ({ schemaCode: e }) => (0, Ut.str)`must match pattern "${e}"`,
3298
- params: ({ schemaCode: e }) => (0, Ut._)`{pattern: ${e}}`
3296
+ const yl = J, Lt = B, vl = {
3297
+ message: ({ schemaCode: e }) => (0, Lt.str)`must match pattern "${e}"`,
3298
+ params: ({ schemaCode: e }) => (0, Lt._)`{pattern: ${e}}`
3299
3299
  }, _l = {
3300
3300
  keyword: "pattern",
3301
3301
  type: "string",
@@ -3303,19 +3303,19 @@ const yl = J, Ut = K, vl = {
3303
3303
  $data: !0,
3304
3304
  error: vl,
3305
3305
  code(e) {
3306
- const { data: t, $data: n, schema: r, schemaCode: s, it: a } = e, o = a.opts.unicodeRegExp ? "u" : "", i = n ? (0, Ut._)`(new RegExp(${s}, ${o}))` : (0, yl.usePattern)(e, r);
3307
- e.fail$data((0, Ut._)`!${i}.test(${t})`);
3306
+ const { data: t, $data: n, schema: r, schemaCode: s, it: a } = e, o = a.opts.unicodeRegExp ? "u" : "", i = n ? (0, Lt._)`(new RegExp(${s}, ${o}))` : (0, yl.usePattern)(e, r);
3307
+ e.fail$data((0, Lt._)`!${i}.test(${t})`);
3308
3308
  }
3309
3309
  };
3310
3310
  xr.default = _l;
3311
3311
  var Wr = {};
3312
3312
  Object.defineProperty(Wr, "__esModule", { value: !0 });
3313
- const mt = K, gl = {
3313
+ const ht = B, gl = {
3314
3314
  message({ keyword: e, schemaCode: t }) {
3315
3315
  const n = e === "maxProperties" ? "more" : "fewer";
3316
- return (0, mt.str)`must NOT have ${n} than ${t} properties`;
3316
+ return (0, ht.str)`must NOT have ${n} than ${t} properties`;
3317
3317
  },
3318
- params: ({ schemaCode: e }) => (0, mt._)`{limit: ${e}}`
3318
+ params: ({ schemaCode: e }) => (0, ht._)`{limit: ${e}}`
3319
3319
  }, bl = {
3320
3320
  keyword: ["maxProperties", "minProperties"],
3321
3321
  type: "object",
@@ -3323,16 +3323,16 @@ const mt = K, gl = {
3323
3323
  $data: !0,
3324
3324
  error: gl,
3325
3325
  code(e) {
3326
- const { keyword: t, data: n, schemaCode: r } = e, s = t === "maxProperties" ? mt.operators.GT : mt.operators.LT;
3327
- e.fail$data((0, mt._)`Object.keys(${n}).length ${s} ${r}`);
3326
+ const { keyword: t, data: n, schemaCode: r } = e, s = t === "maxProperties" ? ht.operators.GT : ht.operators.LT;
3327
+ e.fail$data((0, ht._)`Object.keys(${n}).length ${s} ${r}`);
3328
3328
  }
3329
3329
  };
3330
3330
  Wr.default = bl;
3331
3331
  var Zr = {};
3332
3332
  Object.defineProperty(Zr, "__esModule", { value: !0 });
3333
- const lt = J, ht = K, $l = N, wl = {
3334
- message: ({ params: { missingProperty: e } }) => (0, ht.str)`must have required property '${e}'`,
3335
- params: ({ params: { missingProperty: e } }) => (0, ht._)`{missingProperty: ${e}}`
3333
+ const dt = J, pt = B, $l = N, wl = {
3334
+ message: ({ params: { missingProperty: e } }) => (0, pt.str)`must have required property '${e}'`,
3335
+ params: ({ params: { missingProperty: e } }) => (0, pt._)`{missingProperty: ${e}}`
3336
3336
  }, kl = {
3337
3337
  keyword: "required",
3338
3338
  type: "object",
@@ -3354,10 +3354,10 @@ const lt = J, ht = K, $l = N, wl = {
3354
3354
  }
3355
3355
  function c() {
3356
3356
  if (d || a)
3357
- e.block$data(ht.nil, f);
3357
+ e.block$data(pt.nil, f);
3358
3358
  else
3359
3359
  for (const $ of n)
3360
- (0, lt.checkReportMissingProp)(e, $);
3360
+ (0, dt.checkReportMissingProp)(e, $);
3361
3361
  }
3362
3362
  function u() {
3363
3363
  const $ = t.let("missing");
@@ -3365,31 +3365,31 @@ const lt = J, ht = K, $l = N, wl = {
3365
3365
  const _ = t.let("valid", !0);
3366
3366
  e.block$data(_, () => b($, _)), e.ok(_);
3367
3367
  } else
3368
- t.if((0, lt.checkMissingProp)(e, n, $)), (0, lt.reportMissingProp)(e, $), t.else();
3368
+ t.if((0, dt.checkMissingProp)(e, n, $)), (0, dt.reportMissingProp)(e, $), t.else();
3369
3369
  }
3370
3370
  function f() {
3371
3371
  t.forOf("prop", r, ($) => {
3372
- e.setParams({ missingProperty: $ }), t.if((0, lt.noPropertyInData)(t, s, $, i.ownProperties), () => e.error());
3372
+ e.setParams({ missingProperty: $ }), t.if((0, dt.noPropertyInData)(t, s, $, i.ownProperties), () => e.error());
3373
3373
  });
3374
3374
  }
3375
3375
  function b($, _) {
3376
3376
  e.setParams({ missingProperty: $ }), t.forOf($, r, () => {
3377
- t.assign(_, (0, lt.propertyInData)(t, s, $, i.ownProperties)), t.if((0, ht.not)(_), () => {
3377
+ t.assign(_, (0, dt.propertyInData)(t, s, $, i.ownProperties)), t.if((0, pt.not)(_), () => {
3378
3378
  e.error(), t.break();
3379
3379
  });
3380
- }, ht.nil);
3380
+ }, pt.nil);
3381
3381
  }
3382
3382
  }
3383
3383
  };
3384
3384
  Zr.default = kl;
3385
3385
  var Yr = {};
3386
3386
  Object.defineProperty(Yr, "__esModule", { value: !0 });
3387
- const pt = K, Sl = {
3387
+ const yt = B, Sl = {
3388
3388
  message({ keyword: e, schemaCode: t }) {
3389
3389
  const n = e === "maxItems" ? "more" : "fewer";
3390
- return (0, pt.str)`must NOT have ${n} than ${t} items`;
3390
+ return (0, yt.str)`must NOT have ${n} than ${t} items`;
3391
3391
  },
3392
- params: ({ schemaCode: e }) => (0, pt._)`{limit: ${e}}`
3392
+ params: ({ schemaCode: e }) => (0, yt._)`{limit: ${e}}`
3393
3393
  }, El = {
3394
3394
  keyword: ["maxItems", "minItems"],
3395
3395
  type: "array",
@@ -3397,20 +3397,20 @@ const pt = K, Sl = {
3397
3397
  $data: !0,
3398
3398
  error: Sl,
3399
3399
  code(e) {
3400
- const { keyword: t, data: n, schemaCode: r } = e, s = t === "maxItems" ? pt.operators.GT : pt.operators.LT;
3401
- e.fail$data((0, pt._)`${n}.length ${s} ${r}`);
3400
+ const { keyword: t, data: n, schemaCode: r } = e, s = t === "maxItems" ? yt.operators.GT : yt.operators.LT;
3401
+ e.fail$data((0, yt._)`${n}.length ${s} ${r}`);
3402
3402
  }
3403
3403
  };
3404
3404
  Yr.default = El;
3405
- var Qr = {}, $t = {};
3406
- Object.defineProperty($t, "__esModule", { value: !0 });
3405
+ var Qr = {}, wt = {};
3406
+ Object.defineProperty(wt, "__esModule", { value: !0 });
3407
3407
  const Ks = hs;
3408
3408
  Ks.code = 'require("ajv/dist/runtime/equal").default';
3409
- $t.default = Ks;
3409
+ wt.default = Ks;
3410
3410
  Object.defineProperty(Qr, "__esModule", { value: !0 });
3411
- const hr = ne, oe = K, Pl = N, Ol = $t, jl = {
3412
- message: ({ params: { i: e, j: t } }) => (0, oe.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
3413
- params: ({ params: { i: e, j: t } }) => (0, oe._)`{i: ${e}, j: ${t}}`
3411
+ const hr = se, ie = B, Pl = N, Ol = wt, jl = {
3412
+ message: ({ params: { i: e, j: t } }) => (0, ie.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
3413
+ params: ({ params: { i: e, j: t } }) => (0, ie._)`{i: ${e}, j: ${t}}`
3414
3414
  }, ql = {
3415
3415
  keyword: "uniqueItems",
3416
3416
  type: "array",
@@ -3422,25 +3422,25 @@ const hr = ne, oe = K, Pl = N, Ol = $t, jl = {
3422
3422
  if (!r && !s)
3423
3423
  return;
3424
3424
  const d = t.let("valid"), c = a.items ? (0, hr.getSchemaTypes)(a.items) : [];
3425
- e.block$data(d, u, (0, oe._)`${o} === false`), e.ok(d);
3425
+ e.block$data(d, u, (0, ie._)`${o} === false`), e.ok(d);
3426
3426
  function u() {
3427
- const _ = t.let("i", (0, oe._)`${n}.length`), g = t.let("j");
3428
- e.setParams({ i: _, j: g }), t.assign(d, !0), t.if((0, oe._)`${_} > 1`, () => (f() ? b : $)(_, g));
3427
+ const _ = t.let("i", (0, ie._)`${n}.length`), g = t.let("j");
3428
+ e.setParams({ i: _, j: g }), t.assign(d, !0), t.if((0, ie._)`${_} > 1`, () => (f() ? b : $)(_, g));
3429
3429
  }
3430
3430
  function f() {
3431
3431
  return c.length > 0 && !c.some((_) => _ === "object" || _ === "array");
3432
3432
  }
3433
3433
  function b(_, g) {
3434
- const p = t.name("item"), m = (0, hr.checkDataTypes)(c, p, i.opts.strictNumbers, hr.DataType.Wrong), y = t.const("indices", (0, oe._)`{}`);
3435
- t.for((0, oe._)`;${_}--;`, () => {
3436
- t.let(p, (0, oe._)`${n}[${_}]`), t.if(m, (0, oe._)`continue`), c.length > 1 && t.if((0, oe._)`typeof ${p} == "string"`, (0, oe._)`${p} += "_"`), t.if((0, oe._)`typeof ${y}[${p}] == "number"`, () => {
3437
- t.assign(g, (0, oe._)`${y}[${p}]`), e.error(), t.assign(d, !1).break();
3438
- }).code((0, oe._)`${y}[${p}] = ${_}`);
3434
+ const p = t.name("item"), m = (0, hr.checkDataTypes)(c, p, i.opts.strictNumbers, hr.DataType.Wrong), y = t.const("indices", (0, ie._)`{}`);
3435
+ t.for((0, ie._)`;${_}--;`, () => {
3436
+ t.let(p, (0, ie._)`${n}[${_}]`), t.if(m, (0, ie._)`continue`), c.length > 1 && t.if((0, ie._)`typeof ${p} == "string"`, (0, ie._)`${p} += "_"`), t.if((0, ie._)`typeof ${y}[${p}] == "number"`, () => {
3437
+ t.assign(g, (0, ie._)`${y}[${p}]`), e.error(), t.assign(d, !1).break();
3438
+ }).code((0, ie._)`${y}[${p}] = ${_}`);
3439
3439
  });
3440
3440
  }
3441
3441
  function $(_, g) {
3442
3442
  const p = (0, Pl.useFunc)(t, Ol.default), m = t.name("outer");
3443
- t.label(m).for((0, oe._)`;${_}--;`, () => t.for((0, oe._)`${g} = ${_}; ${g}--;`, () => t.if((0, oe._)`${p}(${n}[${_}], ${n}[${g}])`, () => {
3443
+ t.label(m).for((0, ie._)`;${_}--;`, () => t.for((0, ie._)`${g} = ${_}; ${g}--;`, () => t.if((0, ie._)`${p}(${n}[${_}], ${n}[${g}])`, () => {
3444
3444
  e.error(), t.assign(d, !1).break(m);
3445
3445
  })));
3446
3446
  }
@@ -3449,7 +3449,7 @@ const hr = ne, oe = K, Pl = N, Ol = $t, jl = {
3449
3449
  Qr.default = ql;
3450
3450
  var Xr = {};
3451
3451
  Object.defineProperty(Xr, "__esModule", { value: !0 });
3452
- const $r = K, Il = N, Nl = $t, Ml = {
3452
+ const $r = B, Il = N, Nl = wt, Ml = {
3453
3453
  message: "must be equal to constant",
3454
3454
  params: ({ schemaCode: e }) => (0, $r._)`{allowedValue: ${e}}`
3455
3455
  }, Tl = {
@@ -3464,10 +3464,10 @@ const $r = K, Il = N, Nl = $t, Ml = {
3464
3464
  Xr.default = Tl;
3465
3465
  var en = {};
3466
3466
  Object.defineProperty(en, "__esModule", { value: !0 });
3467
- const ct = K, Rl = N, Al = $t, Fl = {
3467
+ const ut = B, Rl = N, Al = wt, Fl = {
3468
3468
  message: "must be equal to one of the allowed values",
3469
- params: ({ schemaCode: e }) => (0, ct._)`{allowedValues: ${e}}`
3470
- }, Dl = {
3469
+ params: ({ schemaCode: e }) => (0, ut._)`{allowedValues: ${e}}`
3470
+ }, Cl = {
3471
3471
  keyword: "enum",
3472
3472
  schemaType: "array",
3473
3473
  $data: !0,
@@ -3486,23 +3486,23 @@ const ct = K, Rl = N, Al = $t, Fl = {
3486
3486
  if (!Array.isArray(s))
3487
3487
  throw new Error("ajv implementation error");
3488
3488
  const $ = t.const("vSchema", a);
3489
- u = (0, ct.or)(...s.map((_, g) => b($, g)));
3489
+ u = (0, ut.or)(...s.map((_, g) => b($, g)));
3490
3490
  }
3491
3491
  e.pass(u);
3492
3492
  function f() {
3493
- t.assign(u, !1), t.forOf("v", a, ($) => t.if((0, ct._)`${c()}(${n}, ${$})`, () => t.assign(u, !0).break()));
3493
+ t.assign(u, !1), t.forOf("v", a, ($) => t.if((0, ut._)`${c()}(${n}, ${$})`, () => t.assign(u, !0).break()));
3494
3494
  }
3495
3495
  function b($, _) {
3496
3496
  const g = s[_];
3497
- return typeof g == "object" && g !== null ? (0, ct._)`${c()}(${n}, ${$}[${_}])` : (0, ct._)`${n} === ${g}`;
3497
+ return typeof g == "object" && g !== null ? (0, ut._)`${c()}(${n}, ${$}[${_}])` : (0, ut._)`${n} === ${g}`;
3498
3498
  }
3499
3499
  }
3500
3500
  };
3501
- en.default = Dl;
3501
+ en.default = Cl;
3502
3502
  Object.defineProperty(Hr, "__esModule", { value: !0 });
3503
- const Cl = Kr, Vl = Br, zl = Gr, Ul = xr, Ll = Wr, Hl = Zr, Kl = Yr, Bl = Qr, Gl = Xr, Jl = en, xl = [
3503
+ const Dl = Kr, Vl = Br, zl = Gr, Ul = xr, Ll = Wr, Hl = Zr, Kl = Yr, Bl = Qr, Gl = Xr, Jl = en, xl = [
3504
3504
  // number
3505
- Cl.default,
3505
+ Dl.default,
3506
3506
  Vl.default,
3507
3507
  // string
3508
3508
  zl.default,
@@ -3520,12 +3520,12 @@ const Cl = Kr, Vl = Br, zl = Gr, Ul = xr, Ll = Wr, Hl = Zr, Kl = Yr, Bl = Qr, Gl
3520
3520
  Jl.default
3521
3521
  ];
3522
3522
  Hr.default = xl;
3523
- var tn = {}, rt = {};
3524
- Object.defineProperty(rt, "__esModule", { value: !0 });
3525
- rt.validateAdditionalItems = void 0;
3526
- const Ue = K, wr = N, Wl = {
3527
- message: ({ params: { len: e } }) => (0, Ue.str)`must NOT have more than ${e} items`,
3528
- params: ({ params: { len: e } }) => (0, Ue._)`{limit: ${e}}`
3523
+ var tn = {}, st = {};
3524
+ Object.defineProperty(st, "__esModule", { value: !0 });
3525
+ st.validateAdditionalItems = void 0;
3526
+ const Le = B, wr = N, Wl = {
3527
+ message: ({ params: { len: e } }) => (0, Le.str)`must NOT have more than ${e} items`,
3528
+ params: ({ params: { len: e } }) => (0, Le._)`{limit: ${e}}`
3529
3529
  }, Zl = {
3530
3530
  keyword: "additionalItems",
3531
3531
  type: "array",
@@ -3544,25 +3544,25 @@ const Ue = K, wr = N, Wl = {
3544
3544
  function Bs(e, t) {
3545
3545
  const { gen: n, schema: r, data: s, keyword: a, it: o } = e;
3546
3546
  o.items = !0;
3547
- const i = n.const("len", (0, Ue._)`${s}.length`);
3547
+ const i = n.const("len", (0, Le._)`${s}.length`);
3548
3548
  if (r === !1)
3549
- e.setParams({ len: t.length }), e.pass((0, Ue._)`${i} <= ${t.length}`);
3549
+ e.setParams({ len: t.length }), e.pass((0, Le._)`${i} <= ${t.length}`);
3550
3550
  else if (typeof r == "object" && !(0, wr.alwaysValidSchema)(o, r)) {
3551
- const c = n.var("valid", (0, Ue._)`${i} <= ${t.length}`);
3552
- n.if((0, Ue.not)(c), () => d(c)), e.ok(c);
3551
+ const c = n.var("valid", (0, Le._)`${i} <= ${t.length}`);
3552
+ n.if((0, Le.not)(c), () => d(c)), e.ok(c);
3553
3553
  }
3554
3554
  function d(c) {
3555
3555
  n.forRange("i", t.length, i, (u) => {
3556
- e.subschema({ keyword: a, dataProp: u, dataPropType: wr.Type.Num }, c), o.allErrors || n.if((0, Ue.not)(c), () => n.break());
3556
+ e.subschema({ keyword: a, dataProp: u, dataPropType: wr.Type.Num }, c), o.allErrors || n.if((0, Le.not)(c), () => n.break());
3557
3557
  });
3558
3558
  }
3559
3559
  }
3560
- rt.validateAdditionalItems = Bs;
3561
- rt.default = Zl;
3562
- var rn = {}, nt = {};
3563
- Object.defineProperty(nt, "__esModule", { value: !0 });
3564
- nt.validateTuple = void 0;
3565
- const Rn = K, At = N, Yl = J, Ql = {
3560
+ st.validateAdditionalItems = Bs;
3561
+ st.default = Zl;
3562
+ var rn = {}, at = {};
3563
+ Object.defineProperty(at, "__esModule", { value: !0 });
3564
+ at.validateTuple = void 0;
3565
+ const Rn = B, Ft = N, Yl = J, Ql = {
3566
3566
  keyword: "items",
3567
3567
  type: "array",
3568
3568
  schemaType: ["object", "array", "boolean"],
@@ -3571,15 +3571,15 @@ const Rn = K, At = N, Yl = J, Ql = {
3571
3571
  const { schema: t, it: n } = e;
3572
3572
  if (Array.isArray(t))
3573
3573
  return Gs(e, "additionalItems", t);
3574
- n.items = !0, !(0, At.alwaysValidSchema)(n, t) && e.ok((0, Yl.validateArray)(e));
3574
+ n.items = !0, !(0, Ft.alwaysValidSchema)(n, t) && e.ok((0, Yl.validateArray)(e));
3575
3575
  }
3576
3576
  };
3577
3577
  function Gs(e, t, n = e.schema) {
3578
3578
  const { gen: r, parentSchema: s, data: a, keyword: o, it: i } = e;
3579
- u(s), i.opts.unevaluated && n.length && i.items !== !0 && (i.items = At.mergeEvaluated.items(r, n.length, i.items));
3579
+ u(s), i.opts.unevaluated && n.length && i.items !== !0 && (i.items = Ft.mergeEvaluated.items(r, n.length, i.items));
3580
3580
  const d = r.name("valid"), c = r.const("len", (0, Rn._)`${a}.length`);
3581
3581
  n.forEach((f, b) => {
3582
- (0, At.alwaysValidSchema)(i, f) || (r.if((0, Rn._)`${c} > ${b}`, () => e.subschema({
3582
+ (0, Ft.alwaysValidSchema)(i, f) || (r.if((0, Rn._)`${c} > ${b}`, () => e.subschema({
3583
3583
  keyword: o,
3584
3584
  schemaProp: b,
3585
3585
  dataProp: b
@@ -3589,14 +3589,14 @@ function Gs(e, t, n = e.schema) {
3589
3589
  const { opts: b, errSchemaPath: $ } = i, _ = n.length, g = _ === f.minItems && (_ === f.maxItems || f[t] === !1);
3590
3590
  if (b.strictTuples && !g) {
3591
3591
  const p = `"${o}" is ${_}-tuple, but minItems or maxItems/${t} are not specified or different at path "${$}"`;
3592
- (0, At.checkStrictMode)(i, p, b.strictTuples);
3592
+ (0, Ft.checkStrictMode)(i, p, b.strictTuples);
3593
3593
  }
3594
3594
  }
3595
3595
  }
3596
- nt.validateTuple = Gs;
3597
- nt.default = Ql;
3596
+ at.validateTuple = Gs;
3597
+ at.default = Ql;
3598
3598
  Object.defineProperty(rn, "__esModule", { value: !0 });
3599
- const Xl = nt, ed = {
3599
+ const Xl = at, ed = {
3600
3600
  keyword: "prefixItems",
3601
3601
  type: "array",
3602
3602
  schemaType: ["array"],
@@ -3606,7 +3606,7 @@ const Xl = nt, ed = {
3606
3606
  rn.default = ed;
3607
3607
  var nn = {};
3608
3608
  Object.defineProperty(nn, "__esModule", { value: !0 });
3609
- const An = K, td = N, rd = J, nd = rt, sd = {
3609
+ const An = B, td = N, rd = J, nd = st, sd = {
3610
3610
  message: ({ params: { len: e } }) => (0, An.str)`must NOT have more than ${e} items`,
3611
3611
  params: ({ params: { len: e } }) => (0, An._)`{limit: ${e}}`
3612
3612
  }, ad = {
@@ -3623,9 +3623,9 @@ const An = K, td = N, rd = J, nd = rt, sd = {
3623
3623
  nn.default = ad;
3624
3624
  var sn = {};
3625
3625
  Object.defineProperty(sn, "__esModule", { value: !0 });
3626
- const ye = K, jt = N, od = {
3627
- message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, ye.str)`must contain at least ${e} valid item(s)` : (0, ye.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
3628
- params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, ye._)`{minContains: ${e}}` : (0, ye._)`{minContains: ${e}, maxContains: ${t}}`
3626
+ const ve = B, qt = N, od = {
3627
+ message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, ve.str)`must contain at least ${e} valid item(s)` : (0, ve.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
3628
+ params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, ve._)`{minContains: ${e}}` : (0, ve._)`{minContains: ${e}, maxContains: ${t}}`
3629
3629
  }, id = {
3630
3630
  keyword: "contains",
3631
3631
  type: "array",
@@ -3638,23 +3638,23 @@ const ye = K, jt = N, od = {
3638
3638
  let o, i;
3639
3639
  const { minContains: d, maxContains: c } = r;
3640
3640
  a.opts.next ? (o = d === void 0 ? 1 : d, i = c) : o = 1;
3641
- const u = t.const("len", (0, ye._)`${s}.length`);
3641
+ const u = t.const("len", (0, ve._)`${s}.length`);
3642
3642
  if (e.setParams({ min: o, max: i }), i === void 0 && o === 0) {
3643
- (0, jt.checkStrictMode)(a, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
3643
+ (0, qt.checkStrictMode)(a, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
3644
3644
  return;
3645
3645
  }
3646
3646
  if (i !== void 0 && o > i) {
3647
- (0, jt.checkStrictMode)(a, '"minContains" > "maxContains" is always invalid'), e.fail();
3647
+ (0, qt.checkStrictMode)(a, '"minContains" > "maxContains" is always invalid'), e.fail();
3648
3648
  return;
3649
3649
  }
3650
- if ((0, jt.alwaysValidSchema)(a, n)) {
3651
- let g = (0, ye._)`${u} >= ${o}`;
3652
- i !== void 0 && (g = (0, ye._)`${g} && ${u} <= ${i}`), e.pass(g);
3650
+ if ((0, qt.alwaysValidSchema)(a, n)) {
3651
+ let g = (0, ve._)`${u} >= ${o}`;
3652
+ i !== void 0 && (g = (0, ve._)`${g} && ${u} <= ${i}`), e.pass(g);
3653
3653
  return;
3654
3654
  }
3655
3655
  a.items = !0;
3656
3656
  const f = t.name("valid");
3657
- i === void 0 && o === 1 ? $(f, () => t.if(f, () => t.break())) : o === 0 ? (t.let(f, !0), i !== void 0 && t.if((0, ye._)`${s}.length > 0`, b)) : (t.let(f, !1), b()), e.result(f, () => e.reset());
3657
+ i === void 0 && o === 1 ? $(f, () => t.if(f, () => t.break())) : o === 0 ? (t.let(f, !0), i !== void 0 && t.if((0, ve._)`${s}.length > 0`, b)) : (t.let(f, !1), b()), e.result(f, () => e.reset());
3658
3658
  function b() {
3659
3659
  const g = t.name("_valid"), p = t.let("count", 0);
3660
3660
  $(g, () => t.if(g, () => _(p)));
@@ -3664,13 +3664,13 @@ const ye = K, jt = N, od = {
3664
3664
  e.subschema({
3665
3665
  keyword: "contains",
3666
3666
  dataProp: m,
3667
- dataPropType: jt.Type.Num,
3667
+ dataPropType: qt.Type.Num,
3668
3668
  compositeRule: !0
3669
3669
  }, g), p();
3670
3670
  });
3671
3671
  }
3672
3672
  function _(g) {
3673
- t.code((0, ye._)`${g}++`), i === void 0 ? t.if((0, ye._)`${g} >= ${o}`, () => t.assign(f, !0).break()) : (t.if((0, ye._)`${g} > ${i}`, () => t.assign(f, !1).break()), o === 1 ? t.assign(f, !0) : t.if((0, ye._)`${g} >= ${o}`, () => t.assign(f, !0)));
3673
+ t.code((0, ve._)`${g}++`), i === void 0 ? t.if((0, ve._)`${g} >= ${o}`, () => t.assign(f, !0).break()) : (t.if((0, ve._)`${g} > ${i}`, () => t.assign(f, !1).break()), o === 1 ? t.assign(f, !0) : t.if((0, ve._)`${g} >= ${o}`, () => t.assign(f, !0)));
3674
3674
  }
3675
3675
  }
3676
3676
  };
@@ -3678,7 +3678,7 @@ sn.default = id;
3678
3678
  var Js = {};
3679
3679
  (function(e) {
3680
3680
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
3681
- const t = K, n = N, r = J;
3681
+ const t = B, n = N, r = J;
3682
3682
  e.error = {
3683
3683
  message: ({ params: { property: d, depsCount: c, deps: u } }) => {
3684
3684
  const f = c === 1 ? "property" : "properties";
@@ -3748,7 +3748,7 @@ var Js = {};
3748
3748
  })(Js);
3749
3749
  var an = {};
3750
3750
  Object.defineProperty(an, "__esModule", { value: !0 });
3751
- const xs = K, ld = N, dd = {
3751
+ const xs = B, ld = N, dd = {
3752
3752
  message: "property name must be valid",
3753
3753
  params: ({ params: e }) => (0, xs._)`{propertyName: ${e.propertyName}}`
3754
3754
  }, cd = {
@@ -3775,11 +3775,11 @@ const xs = K, ld = N, dd = {
3775
3775
  }
3776
3776
  };
3777
3777
  an.default = cd;
3778
- var Jt = {};
3779
- Object.defineProperty(Jt, "__esModule", { value: !0 });
3780
- const qt = J, ge = K, ud = qe, It = N, fd = {
3778
+ var xt = {};
3779
+ Object.defineProperty(xt, "__esModule", { value: !0 });
3780
+ const It = J, be = B, ud = Ie, Nt = N, fd = {
3781
3781
  message: "must NOT have additional properties",
3782
- params: ({ params: e }) => (0, ge._)`{additionalProperty: ${e.additionalProperty}}`
3782
+ params: ({ params: e }) => (0, be._)`{additionalProperty: ${e.additionalProperty}}`
3783
3783
  }, md = {
3784
3784
  keyword: "additionalProperties",
3785
3785
  type: ["object"],
@@ -3792,10 +3792,10 @@ const qt = J, ge = K, ud = qe, It = N, fd = {
3792
3792
  if (!a)
3793
3793
  throw new Error("ajv implementation error");
3794
3794
  const { allErrors: i, opts: d } = o;
3795
- if (o.props = !0, d.removeAdditional !== "all" && (0, It.alwaysValidSchema)(o, n))
3795
+ if (o.props = !0, d.removeAdditional !== "all" && (0, Nt.alwaysValidSchema)(o, n))
3796
3796
  return;
3797
- const c = (0, qt.allSchemaProperties)(r.properties), u = (0, qt.allSchemaProperties)(r.patternProperties);
3798
- f(), e.ok((0, ge._)`${a} === ${ud.default.errors}`);
3797
+ const c = (0, It.allSchemaProperties)(r.properties), u = (0, It.allSchemaProperties)(r.patternProperties);
3798
+ f(), e.ok((0, be._)`${a} === ${ud.default.errors}`);
3799
3799
  function f() {
3800
3800
  t.forIn("key", s, (p) => {
3801
3801
  !c.length && !u.length ? _(p) : t.if(b(p), () => _(p));
@@ -3804,13 +3804,13 @@ const qt = J, ge = K, ud = qe, It = N, fd = {
3804
3804
  function b(p) {
3805
3805
  let m;
3806
3806
  if (c.length > 8) {
3807
- const y = (0, It.schemaRefOrVal)(o, r.properties, "properties");
3808
- m = (0, qt.isOwnProperty)(t, y, p);
3809
- } else c.length ? m = (0, ge.or)(...c.map((y) => (0, ge._)`${p} === ${y}`)) : m = ge.nil;
3810
- return u.length && (m = (0, ge.or)(m, ...u.map((y) => (0, ge._)`${(0, qt.usePattern)(e, y)}.test(${p})`))), (0, ge.not)(m);
3807
+ const y = (0, Nt.schemaRefOrVal)(o, r.properties, "properties");
3808
+ m = (0, It.isOwnProperty)(t, y, p);
3809
+ } else c.length ? m = (0, be.or)(...c.map((y) => (0, be._)`${p} === ${y}`)) : m = be.nil;
3810
+ return u.length && (m = (0, be.or)(m, ...u.map((y) => (0, be._)`${(0, It.usePattern)(e, y)}.test(${p})`))), (0, be.not)(m);
3811
3811
  }
3812
3812
  function $(p) {
3813
- t.code((0, ge._)`delete ${s}[${p}]`);
3813
+ t.code((0, be._)`delete ${s}[${p}]`);
3814
3814
  }
3815
3815
  function _(p) {
3816
3816
  if (d.removeAdditional === "all" || d.removeAdditional && n === !1) {
@@ -3821,18 +3821,18 @@ const qt = J, ge = K, ud = qe, It = N, fd = {
3821
3821
  e.setParams({ additionalProperty: p }), e.error(), i || t.break();
3822
3822
  return;
3823
3823
  }
3824
- if (typeof n == "object" && !(0, It.alwaysValidSchema)(o, n)) {
3824
+ if (typeof n == "object" && !(0, Nt.alwaysValidSchema)(o, n)) {
3825
3825
  const m = t.name("valid");
3826
- d.removeAdditional === "failing" ? (g(p, m, !1), t.if((0, ge.not)(m), () => {
3826
+ d.removeAdditional === "failing" ? (g(p, m, !1), t.if((0, be.not)(m), () => {
3827
3827
  e.reset(), $(p);
3828
- })) : (g(p, m), i || t.if((0, ge.not)(m), () => t.break()));
3828
+ })) : (g(p, m), i || t.if((0, be.not)(m), () => t.break()));
3829
3829
  }
3830
3830
  }
3831
3831
  function g(p, m, y) {
3832
3832
  const k = {
3833
3833
  keyword: "additionalProperties",
3834
3834
  dataProp: p,
3835
- dataPropType: It.Type.Str
3835
+ dataPropType: Nt.Type.Str
3836
3836
  };
3837
3837
  y === !1 && Object.assign(k, {
3838
3838
  compositeRule: !0,
@@ -3842,16 +3842,16 @@ const qt = J, ge = K, ud = qe, It = N, fd = {
3842
3842
  }
3843
3843
  }
3844
3844
  };
3845
- Jt.default = md;
3845
+ xt.default = md;
3846
3846
  var on = {};
3847
3847
  Object.defineProperty(on, "__esModule", { value: !0 });
3848
- const hd = $e, Fn = J, pr = N, Dn = Jt, pd = {
3848
+ const hd = we, Fn = J, pr = N, Cn = xt, pd = {
3849
3849
  keyword: "properties",
3850
3850
  type: "object",
3851
3851
  schemaType: "object",
3852
3852
  code(e) {
3853
3853
  const { gen: t, schema: n, parentSchema: r, data: s, it: a } = e;
3854
- a.opts.removeAdditional === "all" && r.additionalProperties === void 0 && Dn.default.code(new hd.KeywordCxt(a, Dn.default, "additionalProperties"));
3854
+ a.opts.removeAdditional === "all" && r.additionalProperties === void 0 && Cn.default.code(new hd.KeywordCxt(a, Cn.default, "additionalProperties"));
3855
3855
  const o = (0, Fn.allSchemaProperties)(n);
3856
3856
  for (const f of o)
3857
3857
  a.definedProperties.add(f);
@@ -3877,16 +3877,16 @@ const hd = $e, Fn = J, pr = N, Dn = Jt, pd = {
3877
3877
  on.default = pd;
3878
3878
  var ln = {};
3879
3879
  Object.defineProperty(ln, "__esModule", { value: !0 });
3880
- const Cn = J, Nt = K, Vn = N, zn = N, yd = {
3880
+ const Dn = J, Mt = B, Vn = N, zn = N, yd = {
3881
3881
  keyword: "patternProperties",
3882
3882
  type: "object",
3883
3883
  schemaType: "object",
3884
3884
  code(e) {
3885
- const { gen: t, schema: n, data: r, parentSchema: s, it: a } = e, { opts: o } = a, i = (0, Cn.allSchemaProperties)(n), d = i.filter((g) => (0, Vn.alwaysValidSchema)(a, n[g]));
3885
+ const { gen: t, schema: n, data: r, parentSchema: s, it: a } = e, { opts: o } = a, i = (0, Dn.allSchemaProperties)(n), d = i.filter((g) => (0, Vn.alwaysValidSchema)(a, n[g]));
3886
3886
  if (i.length === 0 || d.length === i.length && (!a.opts.unevaluated || a.props === !0))
3887
3887
  return;
3888
3888
  const c = o.strictSchema && !o.allowMatchingProperties && s.properties, u = t.name("valid");
3889
- a.props !== !0 && !(a.props instanceof Nt.Name) && (a.props = (0, zn.evaluatedPropsToName)(t, a.props));
3889
+ a.props !== !0 && !(a.props instanceof Mt.Name) && (a.props = (0, zn.evaluatedPropsToName)(t, a.props));
3890
3890
  const { props: f } = a;
3891
3891
  b();
3892
3892
  function b() {
@@ -3899,14 +3899,14 @@ const Cn = J, Nt = K, Vn = N, zn = N, yd = {
3899
3899
  }
3900
3900
  function _(g) {
3901
3901
  t.forIn("key", r, (p) => {
3902
- t.if((0, Nt._)`${(0, Cn.usePattern)(e, g)}.test(${p})`, () => {
3902
+ t.if((0, Mt._)`${(0, Dn.usePattern)(e, g)}.test(${p})`, () => {
3903
3903
  const m = d.includes(g);
3904
3904
  m || e.subschema({
3905
3905
  keyword: "patternProperties",
3906
3906
  schemaProp: g,
3907
3907
  dataProp: p,
3908
3908
  dataPropType: zn.Type.Str
3909
- }, u), a.opts.unevaluated && f !== !0 ? t.assign((0, Nt._)`${f}[${p}]`, !0) : !m && !a.allErrors && t.if((0, Nt.not)(u), () => t.break());
3909
+ }, u), a.opts.unevaluated && f !== !0 ? t.assign((0, Mt._)`${f}[${p}]`, !0) : !m && !a.allErrors && t.if((0, Mt.not)(u), () => t.break());
3910
3910
  });
3911
3911
  });
3912
3912
  }
@@ -3948,9 +3948,9 @@ const gd = J, bd = {
3948
3948
  cn.default = bd;
3949
3949
  var un = {};
3950
3950
  Object.defineProperty(un, "__esModule", { value: !0 });
3951
- const Ft = K, $d = N, wd = {
3951
+ const Ct = B, $d = N, wd = {
3952
3952
  message: "must match exactly one schema in oneOf",
3953
- params: ({ params: e }) => (0, Ft._)`{passingSchemas: ${e.passing}}`
3953
+ params: ({ params: e }) => (0, Ct._)`{passingSchemas: ${e.passing}}`
3954
3954
  }, kd = {
3955
3955
  keyword: "oneOf",
3956
3956
  schemaType: "array",
@@ -3971,8 +3971,8 @@ const Ft = K, $d = N, wd = {
3971
3971
  keyword: "oneOf",
3972
3972
  schemaProp: f,
3973
3973
  compositeRule: !0
3974
- }, d), f > 0 && t.if((0, Ft._)`${d} && ${o}`).assign(o, !1).assign(i, (0, Ft._)`[${i}, ${f}]`).else(), t.if(d, () => {
3975
- t.assign(o, !0), t.assign(i, f), b && e.mergeEvaluated(b, Ft.Name);
3974
+ }, d), f > 0 && t.if((0, Ct._)`${d} && ${o}`).assign(o, !1).assign(i, (0, Ct._)`[${i}, ${f}]`).else(), t.if(d, () => {
3975
+ t.assign(o, !0), t.assign(i, f), b && e.mergeEvaluated(b, Ct.Name);
3976
3976
  });
3977
3977
  });
3978
3978
  }
@@ -4000,9 +4000,9 @@ const Sd = N, Ed = {
4000
4000
  fn.default = Ed;
4001
4001
  var mn = {};
4002
4002
  Object.defineProperty(mn, "__esModule", { value: !0 });
4003
- const Lt = K, Ws = N, Pd = {
4004
- message: ({ params: e }) => (0, Lt.str)`must match "${e.ifClause}" schema`,
4005
- params: ({ params: e }) => (0, Lt._)`{failingKeyword: ${e.ifClause}}`
4003
+ const Ht = B, Ws = N, Pd = {
4004
+ message: ({ params: e }) => (0, Ht.str)`must match "${e.ifClause}" schema`,
4005
+ params: ({ params: e }) => (0, Ht._)`{failingKeyword: ${e.ifClause}}`
4006
4006
  }, Od = {
4007
4007
  keyword: "if",
4008
4008
  schemaType: ["object", "boolean"],
@@ -4018,7 +4018,7 @@ const Lt = K, Ws = N, Pd = {
4018
4018
  if (d(), e.reset(), s && a) {
4019
4019
  const u = t.let("ifClause");
4020
4020
  e.setParams({ ifClause: u }), t.if(i, c("then", u), c("else", u));
4021
- } else s ? t.if(i, c("then")) : t.if((0, Lt.not)(i), c("else"));
4021
+ } else s ? t.if(i, c("then")) : t.if((0, Ht.not)(i), c("else"));
4022
4022
  e.pass(o, () => e.error(!0));
4023
4023
  function d() {
4024
4024
  const u = e.subschema({
@@ -4032,7 +4032,7 @@ const Lt = K, Ws = N, Pd = {
4032
4032
  function c(u, f) {
4033
4033
  return () => {
4034
4034
  const b = e.subschema({ keyword: u }, i);
4035
- t.assign(o, i), e.mergeValidEvaluated(b, o), f ? t.assign(f, (0, Lt._)`${u}`) : e.setParams({ ifClause: u });
4035
+ t.assign(o, i), e.mergeValidEvaluated(b, o), f ? t.assign(f, (0, Ht._)`${u}`) : e.setParams({ ifClause: u });
4036
4036
  };
4037
4037
  }
4038
4038
  }
@@ -4053,7 +4053,7 @@ const jd = N, qd = {
4053
4053
  };
4054
4054
  hn.default = qd;
4055
4055
  Object.defineProperty(tn, "__esModule", { value: !0 });
4056
- const Id = rt, Nd = rn, Md = nt, Td = nn, Rd = sn, Ad = Js, Fd = an, Dd = Jt, Cd = on, Vd = ln, zd = dn, Ud = cn, Ld = un, Hd = fn, Kd = mn, Bd = hn;
4056
+ const Id = st, Nd = rn, Md = at, Td = nn, Rd = sn, Ad = Js, Fd = an, Cd = xt, Dd = on, Vd = ln, zd = dn, Ud = cn, Ld = un, Hd = fn, Kd = mn, Bd = hn;
4057
4057
  function Gd(e = !1) {
4058
4058
  const t = [
4059
4059
  // any
@@ -4065,9 +4065,9 @@ function Gd(e = !1) {
4065
4065
  Bd.default,
4066
4066
  // object
4067
4067
  Fd.default,
4068
- Dd.default,
4069
- Ad.default,
4070
4068
  Cd.default,
4069
+ Ad.default,
4070
+ Dd.default,
4071
4071
  Vd.default
4072
4072
  ];
4073
4073
  return e ? t.push(Nd.default, Td.default) : t.push(Id.default, Md.default), t.push(Rd.default), t;
@@ -4075,9 +4075,9 @@ function Gd(e = !1) {
4075
4075
  tn.default = Gd;
4076
4076
  var pn = {}, yn = {};
4077
4077
  Object.defineProperty(yn, "__esModule", { value: !0 });
4078
- const re = K, Jd = {
4079
- message: ({ schemaCode: e }) => (0, re.str)`must match format "${e}"`,
4080
- params: ({ schemaCode: e }) => (0, re._)`{format: ${e}}`
4078
+ const te = B, Jd = {
4079
+ message: ({ schemaCode: e }) => (0, te.str)`must match format "${e}"`,
4080
+ params: ({ schemaCode: e }) => (0, te._)`{format: ${e}}`
4081
4081
  }, xd = {
4082
4082
  keyword: "format",
4083
4083
  type: ["number", "string"],
@@ -4093,14 +4093,14 @@ const re = K, Jd = {
4093
4093
  const _ = n.scopeValue("formats", {
4094
4094
  ref: f.formats,
4095
4095
  code: d.code.formats
4096
- }), g = n.const("fDef", (0, re._)`${_}[${o}]`), p = n.let("fType"), m = n.let("format");
4097
- n.if((0, re._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`, () => n.assign(p, (0, re._)`${g}.type || "string"`).assign(m, (0, re._)`${g}.validate`), () => n.assign(p, (0, re._)`"string"`).assign(m, g)), e.fail$data((0, re.or)(y(), k()));
4096
+ }), g = n.const("fDef", (0, te._)`${_}[${o}]`), p = n.let("fType"), m = n.let("format");
4097
+ n.if((0, te._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`, () => n.assign(p, (0, te._)`${g}.type || "string"`).assign(m, (0, te._)`${g}.validate`), () => n.assign(p, (0, te._)`"string"`).assign(m, g)), e.fail$data((0, te.or)(y(), k()));
4098
4098
  function y() {
4099
- return d.strictSchema === !1 ? re.nil : (0, re._)`${o} && !${m}`;
4099
+ return d.strictSchema === !1 ? te.nil : (0, te._)`${o} && !${m}`;
4100
4100
  }
4101
4101
  function k() {
4102
- const S = u.$async ? (0, re._)`(${g}.async ? await ${m}(${r}) : ${m}(${r}))` : (0, re._)`${m}(${r})`, O = (0, re._)`(typeof ${m} == "function" ? ${S} : ${m}.test(${r}))`;
4103
- return (0, re._)`${m} && ${m} !== true && ${p} === ${t} && !${O}`;
4102
+ const S = u.$async ? (0, te._)`(${g}.async ? await ${m}(${r}) : ${m}(${r}))` : (0, te._)`${m}(${r})`, O = (0, te._)`(typeof ${m} == "function" ? ${S} : ${m}.test(${r}))`;
4103
+ return (0, te._)`${m} && ${m} !== true && ${p} === ${t} && !${O}`;
4104
4104
  }
4105
4105
  }
4106
4106
  function $() {
@@ -4124,16 +4124,16 @@ const re = K, Jd = {
4124
4124
  }
4125
4125
  }
4126
4126
  function k(O) {
4127
- const V = O instanceof RegExp ? (0, re.regexpCode)(O) : d.code.formats ? (0, re._)`${d.code.formats}${(0, re.getProperty)(a)}` : void 0, x = n.scopeValue("formats", { key: a, ref: O, code: V });
4128
- return typeof O == "object" && !(O instanceof RegExp) ? [O.type || "string", O.validate, (0, re._)`${x}.validate`] : ["string", O, x];
4127
+ const C = O instanceof RegExp ? (0, te.regexpCode)(O) : d.code.formats ? (0, te._)`${d.code.formats}${(0, te.getProperty)(a)}` : void 0, H = n.scopeValue("formats", { key: a, ref: O, code: C });
4128
+ return typeof O == "object" && !(O instanceof RegExp) ? [O.type || "string", O.validate, (0, te._)`${H}.validate`] : ["string", O, H];
4129
4129
  }
4130
4130
  function S() {
4131
4131
  if (typeof _ == "object" && !(_ instanceof RegExp) && _.async) {
4132
4132
  if (!u.$async)
4133
4133
  throw new Error("async format in sync schema");
4134
- return (0, re._)`await ${m}(${r})`;
4134
+ return (0, te._)`await ${m}(${r})`;
4135
4135
  }
4136
- return typeof p == "function" ? (0, re._)`${m}(${r})` : (0, re._)`${m}.test(${r})`;
4136
+ return typeof p == "function" ? (0, te._)`${m}(${r})` : (0, te._)`${m}.test(${r})`;
4137
4137
  }
4138
4138
  }
4139
4139
  }
@@ -4142,10 +4142,10 @@ yn.default = xd;
4142
4142
  Object.defineProperty(pn, "__esModule", { value: !0 });
4143
4143
  const Wd = yn, Zd = [Wd.default];
4144
4144
  pn.default = Zd;
4145
- var Xe = {};
4146
- Object.defineProperty(Xe, "__esModule", { value: !0 });
4147
- Xe.contentVocabulary = Xe.metadataVocabulary = void 0;
4148
- Xe.metadataVocabulary = [
4145
+ var tt = {};
4146
+ Object.defineProperty(tt, "__esModule", { value: !0 });
4147
+ tt.contentVocabulary = tt.metadataVocabulary = void 0;
4148
+ tt.metadataVocabulary = [
4149
4149
  "title",
4150
4150
  "description",
4151
4151
  "default",
@@ -4154,13 +4154,13 @@ Xe.metadataVocabulary = [
4154
4154
  "writeOnly",
4155
4155
  "examples"
4156
4156
  ];
4157
- Xe.contentVocabulary = [
4157
+ tt.contentVocabulary = [
4158
4158
  "contentMediaType",
4159
4159
  "contentEncoding",
4160
4160
  "contentSchema"
4161
4161
  ];
4162
4162
  Object.defineProperty(zr, "__esModule", { value: !0 });
4163
- const Yd = Ur, Qd = Hr, Xd = tn, ec = pn, Ln = Xe, tc = [
4163
+ const Yd = Ur, Qd = Hr, Xd = tn, ec = pn, Ln = tt, tc = [
4164
4164
  Yd.default,
4165
4165
  Qd.default,
4166
4166
  (0, Xd.default)(),
@@ -4169,17 +4169,17 @@ const Yd = Ur, Qd = Hr, Xd = tn, ec = pn, Ln = Xe, tc = [
4169
4169
  Ln.contentVocabulary
4170
4170
  ];
4171
4171
  zr.default = tc;
4172
- var vn = {}, xt = {};
4173
- Object.defineProperty(xt, "__esModule", { value: !0 });
4174
- xt.DiscrError = void 0;
4172
+ var vn = {}, Wt = {};
4173
+ Object.defineProperty(Wt, "__esModule", { value: !0 });
4174
+ Wt.DiscrError = void 0;
4175
4175
  var Hn;
4176
4176
  (function(e) {
4177
4177
  e.Tag = "tag", e.Mapping = "mapping";
4178
- })(Hn || (xt.DiscrError = Hn = {}));
4178
+ })(Hn || (Wt.DiscrError = Hn = {}));
4179
4179
  Object.defineProperty(vn, "__esModule", { value: !0 });
4180
- const We = K, kr = xt, Kn = ue, rc = tt, nc = N, sc = {
4180
+ const Ye = B, kr = Wt, Kn = fe, rc = nt, nc = N, sc = {
4181
4181
  message: ({ params: { discrError: e, tagName: t } }) => e === kr.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`,
4182
- params: ({ params: { discrError: e, tag: t, tagName: n } }) => (0, We._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`
4182
+ params: ({ params: { discrError: e, tag: t, tagName: n } }) => (0, Ye._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`
4183
4183
  }, ac = {
4184
4184
  keyword: "discriminator",
4185
4185
  type: "object",
@@ -4196,18 +4196,18 @@ const We = K, kr = xt, Kn = ue, rc = tt, nc = N, sc = {
4196
4196
  throw new Error("discriminator: mapping is not supported");
4197
4197
  if (!o)
4198
4198
  throw new Error("discriminator: requires oneOf keyword");
4199
- const d = t.let("valid", !1), c = t.const("tag", (0, We._)`${n}${(0, We.getProperty)(i)}`);
4200
- t.if((0, We._)`typeof ${c} == "string"`, () => u(), () => e.error(!1, { discrError: kr.DiscrError.Tag, tag: c, tagName: i })), e.ok(d);
4199
+ const d = t.let("valid", !1), c = t.const("tag", (0, Ye._)`${n}${(0, Ye.getProperty)(i)}`);
4200
+ t.if((0, Ye._)`typeof ${c} == "string"`, () => u(), () => e.error(!1, { discrError: kr.DiscrError.Tag, tag: c, tagName: i })), e.ok(d);
4201
4201
  function u() {
4202
4202
  const $ = b();
4203
4203
  t.if(!1);
4204
4204
  for (const _ in $)
4205
- t.elseIf((0, We._)`${c} === ${_}`), t.assign(d, f($[_]));
4205
+ t.elseIf((0, Ye._)`${c} === ${_}`), t.assign(d, f($[_]));
4206
4206
  t.else(), e.error(!1, { discrError: kr.DiscrError.Mapping, tag: c, tagName: i }), t.endIf();
4207
4207
  }
4208
4208
  function f($) {
4209
4209
  const _ = t.name("valid"), g = e.subschema({ keyword: "oneOf", schemaProp: $ }, _);
4210
- return e.mergeEvaluated(g, We.Name), _;
4210
+ return e.mergeEvaluated(g, Ye.Name), _;
4211
4211
  }
4212
4212
  function b() {
4213
4213
  var $;
@@ -4216,14 +4216,14 @@ const We = K, kr = xt, Kn = ue, rc = tt, nc = N, sc = {
4216
4216
  for (let S = 0; S < o.length; S++) {
4217
4217
  let O = o[S];
4218
4218
  if (O != null && O.$ref && !(0, nc.schemaHasRulesButRef)(O, a.self.RULES)) {
4219
- const x = O.$ref;
4220
- if (O = Kn.resolveRef.call(a.self, a.schemaEnv.root, a.baseId, x), O instanceof Kn.SchemaEnv && (O = O.schema), O === void 0)
4221
- throw new rc.default(a.opts.uriResolver, a.baseId, x);
4219
+ const H = O.$ref;
4220
+ if (O = Kn.resolveRef.call(a.self, a.schemaEnv.root, a.baseId, H), O instanceof Kn.SchemaEnv && (O = O.schema), O === void 0)
4221
+ throw new rc.default(a.opts.uriResolver, a.baseId, H);
4222
4222
  }
4223
- const V = ($ = O == null ? void 0 : O.properties) === null || $ === void 0 ? void 0 : $[i];
4224
- if (typeof V != "object")
4223
+ const C = ($ = O == null ? void 0 : O.properties) === null || $ === void 0 ? void 0 : $[i];
4224
+ if (typeof C != "object")
4225
4225
  throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${i}"`);
4226
- p = p && (g || m(O)), y(V, S);
4226
+ p = p && (g || m(O)), y(C, S);
4227
4227
  }
4228
4228
  if (!p)
4229
4229
  throw new Error(`discriminator: "${i}" must be required`);
@@ -4235,8 +4235,8 @@ const We = K, kr = xt, Kn = ue, rc = tt, nc = N, sc = {
4235
4235
  if (S.const)
4236
4236
  k(S.const, O);
4237
4237
  else if (S.enum)
4238
- for (const V of S.enum)
4239
- k(V, O);
4238
+ for (const C of S.enum)
4239
+ k(C, O);
4240
4240
  else
4241
4241
  throw new Error(`discriminator: "properties/${i}" must have "const" or "enum"`);
4242
4242
  }
@@ -4508,11 +4508,11 @@ const oc = "http://json-schema.org/draft-07/schema#", ic = "http://json-schema.o
4508
4508
  }
4509
4509
  }
4510
4510
  t.Ajv = d, e.exports = t = d, e.exports.Ajv = d, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = d;
4511
- var c = $e;
4511
+ var c = we;
4512
4512
  Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
4513
4513
  return c.KeywordCxt;
4514
4514
  } });
4515
- var u = K;
4515
+ var u = B;
4516
4516
  Object.defineProperty(t, "_", { enumerable: !0, get: function() {
4517
4517
  return u._;
4518
4518
  } }), Object.defineProperty(t, "str", { enumerable: !0, get: function() {
@@ -4526,11 +4526,11 @@ const oc = "http://json-schema.org/draft-07/schema#", ic = "http://json-schema.o
4526
4526
  } }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
4527
4527
  return u.CodeGen;
4528
4528
  } });
4529
- var f = bt;
4529
+ var f = $t;
4530
4530
  Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
4531
4531
  return f.default;
4532
4532
  } });
4533
- var b = tt;
4533
+ var b = nt;
4534
4534
  Object.defineProperty(t, "MissingRefError", { enumerable: !0, get: function() {
4535
4535
  return b.default;
4536
4536
  } });
@@ -4580,9 +4580,9 @@ var Sr = { exports: {} }, Ys = {};
4580
4580
  // signed 64 bit integer
4581
4581
  int64: { type: "number", validate: O },
4582
4582
  // C-type float
4583
- float: { type: "number", validate: V },
4583
+ float: { type: "number", validate: C },
4584
4584
  // C-type double
4585
- double: { type: "number", validate: V },
4585
+ double: { type: "number", validate: C },
4586
4586
  // hint to the UI to hide input strings
4587
4587
  password: !0,
4588
4588
  // unchecked string payload
@@ -4608,8 +4608,8 @@ var Sr = { exports: {} }, Ys = {};
4608
4608
  const z = r.exec(T);
4609
4609
  if (!z)
4610
4610
  return !1;
4611
- const W = +z[1], U = +z[2], B = +z[3];
4612
- return U >= 1 && U <= 12 && B >= 1 && B <= (U === 2 && n(W) ? 29 : s[U]);
4611
+ const W = +z[1], U = +z[2], ne = +z[3];
4612
+ return U >= 1 && U <= 12 && ne >= 1 && ne <= (U === 2 && n(W) ? 29 : s[U]);
4613
4613
  }
4614
4614
  function o(T, z) {
4615
4615
  if (T && z)
@@ -4620,8 +4620,8 @@ var Sr = { exports: {} }, Ys = {};
4620
4620
  const W = i.exec(T);
4621
4621
  if (!W)
4622
4622
  return !1;
4623
- const U = +W[1], B = +W[2], ee = +W[3], he = W[5];
4624
- return (U <= 23 && B <= 59 && ee <= 59 || U === 23 && B === 59 && ee === 60) && (!z || he !== "");
4623
+ const U = +W[1], ne = +W[2], re = +W[3], x = W[5];
4624
+ return (U <= 23 && ne <= 59 && re <= 59 || U === 23 && ne === 59 && re === 60) && (!z || x !== "");
4625
4625
  }
4626
4626
  function c(T, z) {
4627
4627
  if (!(T && z))
@@ -4638,9 +4638,9 @@ var Sr = { exports: {} }, Ys = {};
4638
4638
  function b(T, z) {
4639
4639
  if (!(T && z))
4640
4640
  return;
4641
- const [W, U] = T.split(u), [B, ee] = z.split(u), he = o(W, B);
4642
- if (he !== void 0)
4643
- return he || c(U, ee);
4641
+ const [W, U] = T.split(u), [ne, re] = z.split(u), x = o(W, ne);
4642
+ if (x !== void 0)
4643
+ return x || c(U, re);
4644
4644
  }
4645
4645
  const $ = /\/|:/, _ = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
4646
4646
  function g(T) {
@@ -4657,12 +4657,12 @@ var Sr = { exports: {} }, Ys = {};
4657
4657
  function O(T) {
4658
4658
  return Number.isInteger(T);
4659
4659
  }
4660
- function V() {
4660
+ function C() {
4661
4661
  return !0;
4662
4662
  }
4663
- const x = /[^\\]\\Z/;
4663
+ const H = /[^\\]\\Z/;
4664
4664
  function M(T) {
4665
- if (x.test(T))
4665
+ if (H.test(T))
4666
4666
  return !1;
4667
4667
  try {
4668
4668
  return new RegExp(T), !0;
@@ -4674,7 +4674,7 @@ var Sr = { exports: {} }, Ys = {};
4674
4674
  var Qs = {};
4675
4675
  (function(e) {
4676
4676
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
4677
- const t = Zs, n = K, r = n.operators, s = {
4677
+ const t = Zs, n = B, r = n.operators, s = {
4678
4678
  formatMaximum: { okStr: "<=", ok: r.LTE, fail: r.GT },
4679
4679
  formatMinimum: { okStr: ">=", ok: r.GTE, fail: r.LT },
4680
4680
  formatExclusiveMaximum: { okStr: "<", ok: r.LT, fail: r.GTE },
@@ -4726,7 +4726,7 @@ var Qs = {};
4726
4726
  })(Qs);
4727
4727
  (function(e, t) {
4728
4728
  Object.defineProperty(t, "__esModule", { value: !0 });
4729
- const n = Ys, r = Qs, s = K, a = new s.Name("fullFormats"), o = new s.Name("fastFormats"), i = (c, u = { keywords: !0 }) => {
4729
+ const n = Ys, r = Qs, s = B, a = new s.Name("fullFormats"), o = new s.Name("fastFormats"), i = (c, u = { keywords: !0 }) => {
4730
4730
  if (Array.isArray(u))
4731
4731
  return d(c, u, n.fullFormats, a), c;
4732
4732
  const [f, b] = u.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a], $ = u.formats || n.formatNames;
@@ -4748,7 +4748,7 @@ var Qs = {};
4748
4748
  })(Sr, Sr.exports);
4749
4749
  var hc = Sr.exports;
4750
4750
  const pc = /* @__PURE__ */ Yn(hc);
4751
- class wt {
4751
+ class kt {
4752
4752
  constructor() {
4753
4753
  this.validators = /* @__PURE__ */ new Map(), this.ajv = new mc({
4754
4754
  allErrors: !0,
@@ -4902,10 +4902,10 @@ const Xs = Symbol("quickforms-context");
4902
4902
  function yc(e) {
4903
4903
  ta(Xs, e);
4904
4904
  }
4905
- function st() {
4905
+ function ot() {
4906
4906
  return ra(Xs, void 0);
4907
4907
  }
4908
- function Se(e) {
4908
+ function Ee(e) {
4909
4909
  return `field-${e.replace(/\./g, "-")}`;
4910
4910
  }
4911
4911
  function $m(e, t) {
@@ -4921,7 +4921,7 @@ function wm(e) {
4921
4921
  function km(...e) {
4922
4922
  return e.filter(Boolean).join(".");
4923
4923
  }
4924
- const Bn = new wt();
4924
+ const Bn = new kt();
4925
4925
  function _c(e) {
4926
4926
  return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
4927
4927
  }
@@ -4944,8 +4944,8 @@ function bc(e, t) {
4944
4944
  function Gn(e) {
4945
4945
  return typeof e == "boolean" || typeof e == "string" ? e : e && typeof e == "object" && e.valid === !1 ? e.message || "Validation failed" : !0;
4946
4946
  }
4947
- function ve(e, t, n = {}) {
4948
- const r = st(), s = (r == null ? void 0 : r.validationMode) || "ValidateAndShow", a = r == null ? void 0 : r.errorMessages, o = r == null ? void 0 : r.validators, i = r == null ? void 0 : r.validatorDebounce, d = (M, T) => {
4947
+ function _e(e, t, n = {}) {
4948
+ const r = ot(), s = (r == null ? void 0 : r.validationMode) || "ValidateAndShow", a = r == null ? void 0 : r.errorMessages, o = r == null ? void 0 : r.validators, i = r == null ? void 0 : r.validatorDebounce, d = (M, T) => {
4949
4949
  var W;
4950
4950
  const z = t["x-error-messages"];
4951
4951
  return z != null && z[M] ? z[M] : (W = a == null ? void 0 : a[e]) != null && W[M] ? a[e][M] : T;
@@ -5038,8 +5038,8 @@ function ve(e, t, n = {}) {
5038
5038
  const z = o == null ? void 0 : o[e];
5039
5039
  if (z)
5040
5040
  try {
5041
- const U = ((W = r == null ? void 0 : r.formValues) == null ? void 0 : W.call(r)) || {}, B = (r == null ? void 0 : r.context) || {}, ee = z(M, U, B);
5042
- return ee instanceof Promise ? ee.then(Gn) : Gn(ee);
5041
+ const U = ((W = r == null ? void 0 : r.formValues) == null ? void 0 : W.call(r)) || {}, ne = (r == null ? void 0 : r.context) || {}, re = z(M, U, ne);
5042
+ return re instanceof Promise ? re.then(Gn) : Gn(re);
5043
5043
  } catch (U) {
5044
5044
  return console.error("Custom validator error for", e, ":", U), "Validation error";
5045
5045
  }
@@ -5065,13 +5065,13 @@ function ve(e, t, n = {}) {
5065
5065
  var T, z;
5066
5066
  const M = t["x-hint-mode"];
5067
5067
  return M || ((z = (T = r == null ? void 0 : r.componentDefaults) == null ? void 0 : T.hints) == null ? void 0 : z.showMode) || "always";
5068
- }), V = G(() => {
5068
+ }), C = G(() => {
5069
5069
  const M = r == null ? void 0 : r.schema;
5070
5070
  return M ? Bn.isRequired(M, e) : !1;
5071
- }), x = G(() => s === "ValidateAndHide" || s === "NoValidation" ? null : _.value);
5071
+ }), H = G(() => s === "ValidateAndHide" || s === "NoValidation" ? null : _.value);
5072
5072
  return {
5073
5073
  value: $,
5074
- errorMessage: x,
5074
+ errorMessage: H,
5075
5075
  errors: g,
5076
5076
  setValue: p,
5077
5077
  setTouched: m,
@@ -5079,10 +5079,10 @@ function ve(e, t, n = {}) {
5079
5079
  label: k,
5080
5080
  hint: S,
5081
5081
  hintMode: O,
5082
- required: V
5082
+ required: C
5083
5083
  };
5084
5084
  }
5085
- const $c = /* @__PURE__ */ fe({
5085
+ const $c = /* @__PURE__ */ me({
5086
5086
  __name: "StringField",
5087
5087
  props: {
5088
5088
  schema: { type: Object, required: !0 },
@@ -5095,16 +5095,16 @@ const $c = /* @__PURE__ */ fe({
5095
5095
  },
5096
5096
  setup(e, { expose: t }) {
5097
5097
  t();
5098
- const n = e, r = st(), s = (r == null ? void 0 : r.validationMode) || "ValidateAndShow", { value: a, errorMessage: o, label: i, hint: d, hintMode: c } = ve(
5098
+ const n = e, r = ot(), s = (r == null ? void 0 : r.validationMode) || "ValidateAndShow", { value: a, errorMessage: o, label: i, hint: d, hintMode: c } = _e(
5099
5099
  n.path,
5100
5100
  n.schema,
5101
5101
  { label: n.label }
5102
- ), u = Se(n.path), f = ae(!1), b = ae(!1), $ = ae(!1), _ = G(() => n.schema.format === "password"), g = G(() => n.schema.format === "email" ? "email" : n.schema.format === "url" || n.schema.format === "uri" ? "url" : n.schema.format === "password" ? f.value ? "text" : "password" : "text"), p = G(() => n.schema.format === "textarea" || n.schema.maxLength && n.schema.maxLength > 200), m = () => {
5102
+ ), u = Ee(n.path), f = ae(!1), b = ae(!1), $ = ae(!1), _ = G(() => n.schema.format === "password"), g = G(() => n.schema.format === "email" ? "email" : n.schema.format === "url" || n.schema.format === "uri" ? "url" : n.schema.format === "password" ? f.value ? "text" : "password" : "text"), p = G(() => n.schema.format === "textarea" || n.schema.maxLength && n.schema.maxLength > 200), m = () => {
5103
5103
  f.value = !f.value;
5104
5104
  }, y = G(() => !d.value || o.value ? !1 : c.value === "always" ? !0 : c.value === "focus" ? b.value : c.value === "hover" ? $.value : !0), k = { props: n, formContext: r, validationMode: s, value: a, errorMessage: o, label: i, hint: d, hintMode: c, fieldId: u, showPassword: f, isFocused: b, isHovered: $, isPassword: _, inputType: g, isTextarea: p, togglePasswordVisibility: m, showHint: y };
5105
5105
  return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
5106
5106
  }
5107
- }), me = (e, t) => {
5107
+ }), he = (e, t) => {
5108
5108
  const n = e.__vccOpts || e;
5109
5109
  for (const [r, s] of t)
5110
5110
  n[r] = s;
@@ -5148,14 +5148,14 @@ function Rc(e, t, n, r, s, a) {
5148
5148
  for: r.fieldId,
5149
5149
  class: "quickform-label"
5150
5150
  }, [
5151
- je(
5151
+ qe(
5152
5152
  X(r.label) + " ",
5153
5153
  1
5154
5154
  /* TEXT */
5155
5155
  ),
5156
- r.props.schema.required ? (j(), I("span", Sc, "*")) : C("v-if", !0)
5156
+ r.props.schema.required ? (j(), I("span", Sc, "*")) : V("v-if", !0)
5157
5157
  ], 8, kc),
5158
- r.isTextarea ? we((j(), I("textarea", {
5158
+ r.isTextarea ? ke((j(), I("textarea", {
5159
5159
  key: 0,
5160
5160
  id: r.fieldId,
5161
5161
  "onUpdate:modelValue": t[0] || (t[0] = (d) => r.value = d),
@@ -5172,9 +5172,9 @@ function Rc(e, t, n, r, s, a) {
5172
5172
  onMouseenter: t[3] || (t[3] = (d) => r.isHovered = !0),
5173
5173
  onMouseleave: t[4] || (t[4] = (d) => r.isHovered = !1)
5174
5174
  }, null, 40, Ec)), [
5175
- [yt, r.value]
5175
+ [vt, r.value]
5176
5176
  ]) : (j(), I("div", Pc, [
5177
- we(F("input", {
5177
+ ke(F("input", {
5178
5178
  id: r.fieldId,
5179
5179
  "onUpdate:modelValue": t[5] || (t[5] = (d) => r.value = d),
5180
5180
  type: r.inputType,
@@ -5241,7 +5241,7 @@ function Rc(e, t, n, r, s, a) {
5241
5241
  /* CACHED */
5242
5242
  )
5243
5243
  ])]))
5244
- ], 8, jc)) : C("v-if", !0)
5244
+ ], 8, jc)) : V("v-if", !0)
5245
5245
  ])),
5246
5246
  r.showHint ? (j(), I("div", {
5247
5247
  key: 2,
@@ -5249,17 +5249,17 @@ function Rc(e, t, n, r, s, a) {
5249
5249
  class: "quickform-hint"
5250
5250
  }, [
5251
5251
  F("span", { innerHTML: r.hint }, null, 8, Mc)
5252
- ], 8, Nc)) : C("v-if", !0),
5252
+ ], 8, Nc)) : V("v-if", !0),
5253
5253
  r.errorMessage ? (j(), I(
5254
5254
  "div",
5255
5255
  Tc,
5256
5256
  X(r.errorMessage),
5257
5257
  1
5258
5258
  /* TEXT */
5259
- )) : C("v-if", !0)
5259
+ )) : V("v-if", !0)
5260
5260
  ]);
5261
5261
  }
5262
- const Ac = /* @__PURE__ */ me($c, [["render", Rc], ["__scopeId", "data-v-ad9ab1f4"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/StringField.vue"]]), Fc = /* @__PURE__ */ fe({
5262
+ const Ac = /* @__PURE__ */ he($c, [["render", Rc], ["__scopeId", "data-v-ad9ab1f4"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/StringField.vue"]]), Fc = /* @__PURE__ */ me({
5263
5263
  __name: "NumberField",
5264
5264
  props: {
5265
5265
  schema: { type: Object, required: !0 },
@@ -5272,10 +5272,10 @@ const Ac = /* @__PURE__ */ me($c, [["render", Rc], ["__scopeId", "data-v-ad9ab1f
5272
5272
  },
5273
5273
  setup(e, { expose: t }) {
5274
5274
  t();
5275
- const n = e, r = st(), s = (r == null ? void 0 : r.validationMode) || "ValidateAndShow", { value: a, errorMessage: o, label: i, hint: d, hintMode: c } = ve(n.path, n.schema, { label: n.label }), u = Se(n.path), f = ae(!1), b = ae(!1), $ = G(() => (n.schema.type === "integer", "number")), _ = G(() => n.schema.multipleOf ? n.schema.multipleOf : n.schema.type === "integer" ? 1 : "any"), g = G(() => !d.value || o.value ? !1 : c.value === "always" ? !0 : c.value === "focus" ? f.value : c.value === "hover" ? b.value : !0), p = { props: n, formContext: r, validationMode: s, value: a, errorMessage: o, label: i, hint: d, hintMode: c, fieldId: u, isFocused: f, isHovered: b, inputType: $, step: _, showHint: g };
5275
+ const n = e, r = ot(), s = (r == null ? void 0 : r.validationMode) || "ValidateAndShow", { value: a, errorMessage: o, label: i, hint: d, hintMode: c } = _e(n.path, n.schema, { label: n.label }), u = Ee(n.path), f = ae(!1), b = ae(!1), $ = G(() => (n.schema.type === "integer", "number")), _ = G(() => n.schema.multipleOf ? n.schema.multipleOf : n.schema.type === "integer" ? 1 : "any"), g = G(() => !d.value || o.value ? !1 : c.value === "always" ? !0 : c.value === "focus" ? f.value : c.value === "hover" ? b.value : !0), p = { props: n, formContext: r, validationMode: s, value: a, errorMessage: o, label: i, hint: d, hintMode: c, fieldId: u, isFocused: f, isHovered: b, inputType: $, step: _, showHint: g };
5276
5276
  return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
5277
5277
  }
5278
- }), Dc = { class: "quickform-field quickform-number-field" }, Cc = ["for"], Vc = {
5278
+ }), Cc = { class: "quickform-field quickform-number-field" }, Dc = ["for"], Vc = {
5279
5279
  key: 0,
5280
5280
  class: "quickform-required"
5281
5281
  }, zc = ["id", "type", "disabled", "readonly", "placeholder", "min", "max", "step", "aria-describedby", "aria-invalid"], Uc = ["id"], Lc = ["innerHTML"], Hc = {
@@ -5283,19 +5283,19 @@ const Ac = /* @__PURE__ */ me($c, [["render", Rc], ["__scopeId", "data-v-ad9ab1f
5283
5283
  class: "quickform-error"
5284
5284
  };
5285
5285
  function Kc(e, t, n, r, s, a) {
5286
- return j(), I("div", Dc, [
5286
+ return j(), I("div", Cc, [
5287
5287
  F("label", {
5288
5288
  for: r.fieldId,
5289
5289
  class: "quickform-label"
5290
5290
  }, [
5291
- je(
5291
+ qe(
5292
5292
  X(r.label) + " ",
5293
5293
  1
5294
5294
  /* TEXT */
5295
5295
  ),
5296
- r.props.schema.required ? (j(), I("span", Vc, "*")) : C("v-if", !0)
5297
- ], 8, Cc),
5298
- we(F("input", {
5296
+ r.props.schema.required ? (j(), I("span", Vc, "*")) : V("v-if", !0)
5297
+ ], 8, Dc),
5298
+ ke(F("input", {
5299
5299
  id: r.fieldId,
5300
5300
  "onUpdate:modelValue": t[0] || (t[0] = (o) => r.value = o),
5301
5301
  type: r.inputType,
@@ -5326,17 +5326,17 @@ function Kc(e, t, n, r, s, a) {
5326
5326
  class: "quickform-hint"
5327
5327
  }, [
5328
5328
  F("span", { innerHTML: r.hint }, null, 8, Lc)
5329
- ], 8, Uc)) : C("v-if", !0),
5329
+ ], 8, Uc)) : V("v-if", !0),
5330
5330
  r.errorMessage ? (j(), I(
5331
5331
  "div",
5332
5332
  Hc,
5333
5333
  X(r.errorMessage),
5334
5334
  1
5335
5335
  /* TEXT */
5336
- )) : C("v-if", !0)
5336
+ )) : V("v-if", !0)
5337
5337
  ]);
5338
5338
  }
5339
- const Bc = /* @__PURE__ */ me(Fc, [["render", Kc], ["__scopeId", "data-v-7def4a8b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/NumberField.vue"]]), Gc = /* @__PURE__ */ fe({
5339
+ const Bc = /* @__PURE__ */ he(Fc, [["render", Kc], ["__scopeId", "data-v-7def4a8b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/NumberField.vue"]]), Gc = /* @__PURE__ */ me({
5340
5340
  __name: "BooleanField",
5341
5341
  props: {
5342
5342
  schema: { type: Object, required: !0 },
@@ -5349,7 +5349,7 @@ const Bc = /* @__PURE__ */ me(Fc, [["render", Kc], ["__scopeId", "data-v-7def4a8
5349
5349
  },
5350
5350
  setup(e, { expose: t }) {
5351
5351
  t();
5352
- const n = e, { value: r, errorMessage: s, label: a, hint: o, hintMode: i } = ve(n.path, n.schema, { label: n.label }), d = Se(n.path), c = ae(!1), u = ae(!1), f = G(() => !o.value || s.value ? !1 : i.value === "always" ? !0 : i.value === "focus" ? c.value : i.value === "hover" ? u.value : !0), b = { props: n, value: r, errorMessage: s, label: a, hint: o, hintMode: i, fieldId: d, isFocused: c, isHovered: u, showHint: f };
5352
+ const n = e, { value: r, errorMessage: s, label: a, hint: o, hintMode: i } = _e(n.path, n.schema, { label: n.label }), d = Ee(n.path), c = ae(!1), u = ae(!1), f = G(() => !o.value || s.value ? !1 : i.value === "always" ? !0 : i.value === "focus" ? c.value : i.value === "hover" ? u.value : !0), b = { props: n, value: r, errorMessage: s, label: a, hint: o, hintMode: i, fieldId: d, isFocused: c, isHovered: u, showHint: f };
5353
5353
  return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
5354
5354
  }
5355
5355
  }), Jc = { class: "quickform-field quickform-boolean-field" }, xc = ["for"], Wc = ["id", "disabled", "readonly", "aria-describedby", "aria-invalid"], Zc = { class: "quickform-checkbox-text" }, Yc = {
@@ -5367,7 +5367,7 @@ function tu(e, t, n, r, s, a) {
5367
5367
  onMouseenter: t[3] || (t[3] = (o) => r.isHovered = !0),
5368
5368
  onMouseleave: t[4] || (t[4] = (o) => r.isHovered = !1)
5369
5369
  }, [
5370
- we(F("input", {
5370
+ ke(F("input", {
5371
5371
  id: r.fieldId,
5372
5372
  "onUpdate:modelValue": t[0] || (t[0] = (o) => r.value = o),
5373
5373
  type: "checkbox",
@@ -5382,12 +5382,12 @@ function tu(e, t, n, r, s, a) {
5382
5382
  [na, r.value]
5383
5383
  ]),
5384
5384
  F("span", Zc, [
5385
- je(
5385
+ qe(
5386
5386
  X(r.label) + " ",
5387
5387
  1
5388
5388
  /* TEXT */
5389
5389
  ),
5390
- r.props.schema.required ? (j(), I("span", Yc, "*")) : C("v-if", !0)
5390
+ r.props.schema.required ? (j(), I("span", Yc, "*")) : V("v-if", !0)
5391
5391
  ])
5392
5392
  ], 40, xc),
5393
5393
  r.showHint ? (j(), I("div", {
@@ -5396,17 +5396,17 @@ function tu(e, t, n, r, s, a) {
5396
5396
  class: "quickform-hint"
5397
5397
  }, [
5398
5398
  F("span", { innerHTML: r.hint }, null, 8, Xc)
5399
- ], 8, Qc)) : C("v-if", !0),
5399
+ ], 8, Qc)) : V("v-if", !0),
5400
5400
  r.errorMessage ? (j(), I(
5401
5401
  "div",
5402
5402
  eu,
5403
5403
  X(r.errorMessage),
5404
5404
  1
5405
5405
  /* TEXT */
5406
- )) : C("v-if", !0)
5406
+ )) : V("v-if", !0)
5407
5407
  ]);
5408
5408
  }
5409
- const ru = /* @__PURE__ */ me(Gc, [["render", tu], ["__scopeId", "data-v-1ff012c7"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/BooleanField.vue"]]), nu = /* @__PURE__ */ fe({
5409
+ const ru = /* @__PURE__ */ he(Gc, [["render", tu], ["__scopeId", "data-v-1ff012c7"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/BooleanField.vue"]]), nu = /* @__PURE__ */ me({
5410
5410
  __name: "EnumField",
5411
5411
  props: {
5412
5412
  schema: { type: Object, required: !0 },
@@ -5419,11 +5419,11 @@ const ru = /* @__PURE__ */ me(Gc, [["render", tu], ["__scopeId", "data-v-1ff012c
5419
5419
  },
5420
5420
  setup(e, { expose: t }) {
5421
5421
  t();
5422
- const n = e, { value: r, errorMessage: s, label: a, hint: o, hintMode: i } = ve(
5422
+ const n = e, { value: r, errorMessage: s, label: a, hint: o, hintMode: i } = _e(
5423
5423
  n.path,
5424
5424
  n.schema,
5425
5425
  { label: n.label }
5426
- ), d = st(), c = Se(n.path), u = `${c}-datalist`, f = ae(!1), b = ae(!1), $ = G(() => {
5426
+ ), d = ot(), c = Ee(n.path), u = `${c}-datalist`, f = ae(!1), b = ae(!1), $ = G(() => {
5427
5427
  if (!n.schema.enum) return [];
5428
5428
  const y = n.schema["x-enum-labels"];
5429
5429
  return n.schema.enum.map((k) => {
@@ -5434,11 +5434,11 @@ const ru = /* @__PURE__ */ me(Gc, [["render", tu], ["__scopeId", "data-v-1ff012c
5434
5434
  };
5435
5435
  });
5436
5436
  }), _ = G(() => {
5437
- var O, V, x, M;
5437
+ var O, C, H, M;
5438
5438
  const y = n.schema["x-component-props"];
5439
5439
  if ((y == null ? void 0 : y.autocomplete) !== void 0)
5440
5440
  return y.autocomplete;
5441
- const k = ((V = (O = d == null ? void 0 : d.componentDefaults) == null ? void 0 : O.select) == null ? void 0 : V.autocomplete) || !1, S = ((M = (x = d == null ? void 0 : d.componentDefaults) == null ? void 0 : x.select) == null ? void 0 : M.autocompleteThreshold) || 5;
5441
+ const k = ((C = (O = d == null ? void 0 : d.componentDefaults) == null ? void 0 : O.select) == null ? void 0 : C.autocomplete) || !1, S = ((M = (H = d == null ? void 0 : d.componentDefaults) == null ? void 0 : H.select) == null ? void 0 : M.autocompleteThreshold) || 5;
5442
5442
  return k || $.value.length >= S;
5443
5443
  }), g = G(() => {
5444
5444
  var y;
@@ -5459,15 +5459,15 @@ function pu(e, t, n, r, s, a) {
5459
5459
  for: r.fieldId,
5460
5460
  class: "quickform-label"
5461
5461
  }, [
5462
- je(
5462
+ qe(
5463
5463
  X(r.label) + " ",
5464
5464
  1
5465
5465
  /* TEXT */
5466
5466
  ),
5467
- r.props.schema.required ? (j(), I("span", ou, "*")) : C("v-if", !0)
5467
+ r.props.schema.required ? (j(), I("span", ou, "*")) : V("v-if", !0)
5468
5468
  ], 8, au),
5469
- C(" Use datalist for autocomplete when enabled "),
5470
- r.useAutocomplete ? we((j(), I("input", {
5469
+ V(" Use datalist for autocomplete when enabled "),
5470
+ r.useAutocomplete ? ke((j(), I("input", {
5471
5471
  key: 0,
5472
5472
  id: r.fieldId,
5473
5473
  "onUpdate:modelValue": t[0] || (t[0] = (o) => r.value = o),
@@ -5482,13 +5482,13 @@ function pu(e, t, n, r, s, a) {
5482
5482
  onMouseenter: t[3] || (t[3] = (o) => r.isHovered = !0),
5483
5483
  onMouseleave: t[4] || (t[4] = (o) => r.isHovered = !1)
5484
5484
  }, null, 40, iu)), [
5485
- [yt, r.value]
5486
- ]) : C("v-if", !0),
5485
+ [vt, r.value]
5486
+ ]) : V("v-if", !0),
5487
5487
  F("datalist", { id: r.datalistId }, [
5488
5488
  (j(!0), I(
5489
- ke,
5489
+ Se,
5490
5490
  null,
5491
- Le(r.options, (o) => (j(), I("option", {
5491
+ He(r.options, (o) => (j(), I("option", {
5492
5492
  key: String(o.value),
5493
5493
  value: o.value
5494
5494
  }, X(o.label), 9, lu))),
@@ -5496,8 +5496,8 @@ function pu(e, t, n, r, s, a) {
5496
5496
  /* KEYED_FRAGMENT */
5497
5497
  ))
5498
5498
  ]),
5499
- C(" Use regular select when autocomplete disabled "),
5500
- r.useAutocomplete ? C("v-if", !0) : we((j(), I("select", {
5499
+ V(" Use regular select when autocomplete disabled "),
5500
+ r.useAutocomplete ? V("v-if", !0) : ke((j(), I("select", {
5501
5501
  key: 1,
5502
5502
  id: r.fieldId,
5503
5503
  "onUpdate:modelValue": t[5] || (t[5] = (o) => r.value = o),
@@ -5518,9 +5518,9 @@ function pu(e, t, n, r, s, a) {
5518
5518
  /* TEXT */
5519
5519
  ),
5520
5520
  (j(!0), I(
5521
- ke,
5521
+ Se,
5522
5522
  null,
5523
- Le(r.options, (o) => (j(), I("option", {
5523
+ He(r.options, (o) => (j(), I("option", {
5524
5524
  key: String(o.value),
5525
5525
  value: o.value
5526
5526
  }, X(o.label), 9, uu))),
@@ -5536,17 +5536,17 @@ function pu(e, t, n, r, s, a) {
5536
5536
  class: "quickform-hint"
5537
5537
  }, [
5538
5538
  F("span", { innerHTML: r.hint }, null, 8, mu)
5539
- ], 8, fu)) : C("v-if", !0),
5539
+ ], 8, fu)) : V("v-if", !0),
5540
5540
  r.errorMessage ? (j(), I(
5541
5541
  "div",
5542
5542
  hu,
5543
5543
  X(r.errorMessage),
5544
5544
  1
5545
5545
  /* TEXT */
5546
- )) : C("v-if", !0)
5546
+ )) : V("v-if", !0)
5547
5547
  ]);
5548
5548
  }
5549
- const yu = /* @__PURE__ */ me(nu, [["render", pu], ["__scopeId", "data-v-666cc49b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/EnumField.vue"]]), vu = /* @__PURE__ */ fe({
5549
+ const yu = /* @__PURE__ */ he(nu, [["render", pu], ["__scopeId", "data-v-666cc49b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/EnumField.vue"]]), vu = /* @__PURE__ */ me({
5550
5550
  __name: "DateField",
5551
5551
  props: {
5552
5552
  schema: { type: Object, required: !0 },
@@ -5559,7 +5559,7 @@ const yu = /* @__PURE__ */ me(nu, [["render", pu], ["__scopeId", "data-v-666cc49
5559
5559
  },
5560
5560
  setup(e, { expose: t }) {
5561
5561
  t();
5562
- const n = e, { value: r, errorMessage: s, label: a, hint: o, hintMode: i } = ve(n.path, n.schema, { label: n.label }), d = Se(n.path), c = ae(!1), u = ae(!1), f = G(() => n.schema.format === "time" ? "time" : n.schema.format === "date-time" ? "datetime-local" : "date"), b = G(() => !o.value || s.value ? !1 : i.value === "always" ? !0 : i.value === "focus" ? c.value : i.value === "hover" ? u.value : !0), $ = { props: n, value: r, errorMessage: s, label: a, hint: o, hintMode: i, fieldId: d, isFocused: c, isHovered: u, inputType: f, showHint: b };
5562
+ const n = e, { value: r, errorMessage: s, label: a, hint: o, hintMode: i } = _e(n.path, n.schema, { label: n.label }), d = Ee(n.path), c = ae(!1), u = ae(!1), f = G(() => n.schema.format === "time" ? "time" : n.schema.format === "date-time" ? "datetime-local" : "date"), b = G(() => !o.value || s.value ? !1 : i.value === "always" ? !0 : i.value === "focus" ? c.value : i.value === "hover" ? u.value : !0), $ = { props: n, value: r, errorMessage: s, label: a, hint: o, hintMode: i, fieldId: d, isFocused: c, isHovered: u, inputType: f, showHint: b };
5563
5563
  return Object.defineProperty($, "__isScriptSetup", { enumerable: !1, value: !0 }), $;
5564
5564
  }
5565
5565
  }), _u = { class: "quickform-field quickform-date-field" }, gu = ["for"], bu = {
@@ -5575,14 +5575,14 @@ function Eu(e, t, n, r, s, a) {
5575
5575
  for: r.fieldId,
5576
5576
  class: "quickform-label"
5577
5577
  }, [
5578
- je(
5578
+ qe(
5579
5579
  X(r.label) + " ",
5580
5580
  1
5581
5581
  /* TEXT */
5582
5582
  ),
5583
- r.props.schema.required ? (j(), I("span", bu, "*")) : C("v-if", !0)
5583
+ r.props.schema.required ? (j(), I("span", bu, "*")) : V("v-if", !0)
5584
5584
  ], 8, gu),
5585
- we(F("input", {
5585
+ ke(F("input", {
5586
5586
  id: r.fieldId,
5587
5587
  "onUpdate:modelValue": t[0] || (t[0] = (o) => r.value = o),
5588
5588
  type: r.inputType,
@@ -5604,17 +5604,17 @@ function Eu(e, t, n, r, s, a) {
5604
5604
  class: "quickform-hint"
5605
5605
  }, [
5606
5606
  F("span", { innerHTML: r.hint }, null, 8, ku)
5607
- ], 8, wu)) : C("v-if", !0),
5607
+ ], 8, wu)) : V("v-if", !0),
5608
5608
  r.errorMessage ? (j(), I(
5609
5609
  "div",
5610
5610
  Su,
5611
5611
  X(r.errorMessage),
5612
5612
  1
5613
5613
  /* TEXT */
5614
- )) : C("v-if", !0)
5614
+ )) : V("v-if", !0)
5615
5615
  ]);
5616
5616
  }
5617
- const Pu = /* @__PURE__ */ me(vu, [["render", Eu], ["__scopeId", "data-v-e0ddab64"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/DateField.vue"]]), Ou = /* @__PURE__ */ fe({
5617
+ const Pu = /* @__PURE__ */ he(vu, [["render", Eu], ["__scopeId", "data-v-e0ddab64"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/DateField.vue"]]), Ou = /* @__PURE__ */ me({
5618
5618
  __name: "FieldRenderer",
5619
5619
  props: {
5620
5620
  schema: { type: Object, required: !0 },
@@ -5626,7 +5626,7 @@ const Pu = /* @__PURE__ */ me(vu, [["render", Eu], ["__scopeId", "data-v-e0ddab6
5626
5626
  },
5627
5627
  setup(e, { expose: t }) {
5628
5628
  t();
5629
- const n = e, r = st();
5629
+ const n = e, r = ot();
5630
5630
  if (!r)
5631
5631
  throw new Error("FieldRenderer must be used within a DynamicForm");
5632
5632
  const s = G(() => {
@@ -5663,15 +5663,15 @@ const Pu = /* @__PURE__ */ me(vu, [["render", Eu], ["__scopeId", "data-v-e0ddab6
5663
5663
  };
5664
5664
  function qu(e, t, n, r, s, a) {
5665
5665
  return j(), I(
5666
- ke,
5666
+ Se,
5667
5667
  null,
5668
5668
  [
5669
- C(" Only render if visible "),
5669
+ V(" Only render if visible "),
5670
5670
  r.isVisible ? (j(), I(
5671
- ke,
5671
+ Se,
5672
5672
  { key: 0 },
5673
5673
  [
5674
- r.component ? (j(), vt(aa(r.component), {
5674
+ r.component ? (j(), _t(aa(r.component), {
5675
5675
  key: 0,
5676
5676
  schema: n.schema,
5677
5677
  uischema: n.uischema,
@@ -5698,13 +5698,13 @@ function qu(e, t, n, r, s, a) {
5698
5698
  ],
5699
5699
  64
5700
5700
  /* STABLE_FRAGMENT */
5701
- )) : C("v-if", !0)
5701
+ )) : V("v-if", !0)
5702
5702
  ],
5703
5703
  2112
5704
5704
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
5705
5705
  );
5706
5706
  }
5707
- const kt = /* @__PURE__ */ me(Ou, [["render", qu], ["__scopeId", "data-v-abf28e2e"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/FieldRenderer.vue"]]), Iu = /* @__PURE__ */ fe({
5707
+ const St = /* @__PURE__ */ he(Ou, [["render", qu], ["__scopeId", "data-v-abf28e2e"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/FieldRenderer.vue"]]), Iu = /* @__PURE__ */ me({
5708
5708
  __name: "ObjectField",
5709
5709
  props: {
5710
5710
  schema: { type: Object, required: !0 },
@@ -5717,11 +5717,11 @@ const kt = /* @__PURE__ */ me(Ou, [["render", qu], ["__scopeId", "data-v-abf28e2
5717
5717
  },
5718
5718
  setup(e, { expose: t }) {
5719
5719
  t();
5720
- const n = e, { label: r, hint: s, errorMessage: a } = ve(n.path, n.schema, { label: n.label }), o = Se(n.path), i = G(() => n.schema.properties ? Object.entries(n.schema.properties).map(([c, u]) => ({
5720
+ const n = e, { label: r, hint: s, errorMessage: a } = _e(n.path, n.schema, { label: n.label }), o = Ee(n.path), i = G(() => n.schema.properties ? Object.entries(n.schema.properties).map(([c, u]) => ({
5721
5721
  key: c,
5722
5722
  schema: u,
5723
5723
  path: n.path ? `${n.path}.${c}` : c
5724
- })) : []), d = { props: n, label: r, hint: s, errorMessage: a, fieldId: o, properties: i, FieldRenderer: kt };
5724
+ })) : []), d = { props: n, label: r, hint: s, errorMessage: a, fieldId: o, properties: i, FieldRenderer: St };
5725
5725
  return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
5726
5726
  }
5727
5727
  }), Nu = { class: "quickform-field quickform-object-field" }, Mu = ["id", "aria-describedby"], Tu = {
@@ -5730,7 +5730,7 @@ const kt = /* @__PURE__ */ me(Ou, [["render", qu], ["__scopeId", "data-v-abf28e2
5730
5730
  }, Ru = {
5731
5731
  key: 0,
5732
5732
  class: "quickform-required"
5733
- }, Au = ["id"], Fu = ["innerHTML"], Du = { class: "quickform-object-content" }, Cu = {
5733
+ }, Au = ["id"], Fu = ["innerHTML"], Cu = { class: "quickform-object-content" }, Du = {
5734
5734
  key: 2,
5735
5735
  class: "quickform-error"
5736
5736
  };
@@ -5742,25 +5742,25 @@ function Vu(e, t, n, r, s, a) {
5742
5742
  "aria-describedby": r.hint ? `${r.fieldId}-hint` : void 0
5743
5743
  }, [
5744
5744
  r.label ? (j(), I("legend", Tu, [
5745
- je(
5745
+ qe(
5746
5746
  X(r.label) + " ",
5747
5747
  1
5748
5748
  /* TEXT */
5749
5749
  ),
5750
- r.props.schema.required ? (j(), I("span", Ru, "*")) : C("v-if", !0)
5751
- ])) : C("v-if", !0),
5750
+ r.props.schema.required ? (j(), I("span", Ru, "*")) : V("v-if", !0)
5751
+ ])) : V("v-if", !0),
5752
5752
  r.hint ? (j(), I("div", {
5753
5753
  key: 1,
5754
5754
  id: `${r.fieldId}-hint`,
5755
5755
  class: "quickform-hint quickform-object-hint"
5756
5756
  }, [
5757
5757
  F("span", { innerHTML: r.hint }, null, 8, Fu)
5758
- ], 8, Au)) : C("v-if", !0),
5759
- F("div", Du, [
5758
+ ], 8, Au)) : V("v-if", !0),
5759
+ F("div", Cu, [
5760
5760
  (j(!0), I(
5761
- ke,
5761
+ Se,
5762
5762
  null,
5763
- Le(r.properties, (o) => (j(), vt(r.FieldRenderer, {
5763
+ He(r.properties, (o) => (j(), _t(r.FieldRenderer, {
5764
5764
  key: o.key,
5765
5765
  schema: o.schema,
5766
5766
  path: o.path,
@@ -5773,15 +5773,15 @@ function Vu(e, t, n, r, s, a) {
5773
5773
  ]),
5774
5774
  r.errorMessage ? (j(), I(
5775
5775
  "div",
5776
- Cu,
5776
+ Du,
5777
5777
  X(r.errorMessage),
5778
5778
  1
5779
5779
  /* TEXT */
5780
- )) : C("v-if", !0)
5780
+ )) : V("v-if", !0)
5781
5781
  ], 8, Mu)
5782
5782
  ]);
5783
5783
  }
5784
- const zu = /* @__PURE__ */ me(Iu, [["render", Vu], ["__scopeId", "data-v-8012fc15"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/ObjectField.vue"]]), Uu = /* @__PURE__ */ fe({
5784
+ const zu = /* @__PURE__ */ he(Iu, [["render", Vu], ["__scopeId", "data-v-8012fc15"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/ObjectField.vue"]]), Uu = /* @__PURE__ */ me({
5785
5785
  __name: "ArrayField",
5786
5786
  props: {
5787
5787
  schema: { type: Object, required: !0 },
@@ -5794,11 +5794,11 @@ const zu = /* @__PURE__ */ me(Iu, [["render", Vu], ["__scopeId", "data-v-8012fc1
5794
5794
  },
5795
5795
  setup(e, { expose: t }) {
5796
5796
  t();
5797
- const n = e, { value: r, errorMessage: s, label: a, hint: o } = ve(
5797
+ const n = e, { value: r, errorMessage: s, label: a, hint: o } = _e(
5798
5798
  n.path,
5799
5799
  n.schema,
5800
5800
  { label: n.label }
5801
- ), i = st(), d = Se(n.path), c = new wt(), u = G({
5801
+ ), i = ot(), d = Ee(n.path), c = new kt(), u = G({
5802
5802
  get: () => Array.isArray(r.value) ? r.value : [],
5803
5803
  set: (k) => r.value = k
5804
5804
  }), f = G(() => Array.isArray(n.schema.items) ? n.schema.items[0] : n.schema.items), b = () => {
@@ -5810,26 +5810,26 @@ const zu = /* @__PURE__ */ me(Iu, [["render", Vu], ["__scopeId", "data-v-8012fc1
5810
5810
  S.splice(k, 1), r.value = S;
5811
5811
  }, _ = (k, S) => {
5812
5812
  if (S === "up" && k === 0 || S === "down" && k === u.value.length - 1) return;
5813
- const O = [...u.value], V = S === "up" ? k - 1 : k + 1, x = O[k];
5814
- O[k] = O[V], O[V] = x, r.value = O;
5813
+ const O = [...u.value], C = S === "up" ? k - 1 : k + 1, H = O[k];
5814
+ O[k] = O[C], O[C] = H, r.value = O;
5815
5815
  }, g = G(() => !(n.disabled || n.readonly || n.schema.maxItems && u.value.length >= n.schema.maxItems)), p = G(() => !(n.disabled || n.readonly || n.schema.minItems && u.value.length <= n.schema.minItems)), y = { props: n, value: r, errorMessage: s, label: a, hint: o, formContext: i, fieldId: d, schemaUtils: c, arrayValue: u, itemsSchema: f, addItem: b, removeItem: $, moveItem: _, canAdd: g, canRemove: p, getItemLabel: (k) => {
5816
- var V;
5816
+ var C;
5817
5817
  const S = n.schema["x-item-label"];
5818
5818
  if (S === "none" || S === !1)
5819
5819
  return "";
5820
5820
  if (typeof S == "string" && S.includes("{{")) {
5821
- const x = u.value[k];
5822
- if (typeof x == "object" && x !== null) {
5821
+ const H = u.value[k];
5822
+ if (typeof H == "object" && H !== null) {
5823
5823
  let M = S, T = !1;
5824
5824
  if (M = M.replace(/\{\{([^}]+)\}\}/g, (z, W) => {
5825
- const U = x[W.trim()];
5825
+ const U = H[W.trim()];
5826
5826
  return U != null && U !== "" ? (T = !0, String(U)) : "";
5827
5827
  }), M = M.replace(/^\s*-\s*/, "").replace(/\s*-\s*$/, ""), T && M.trim())
5828
5828
  return M.trim();
5829
5829
  }
5830
5830
  }
5831
- return `${((V = f.value) == null ? void 0 : V.title) || "Item"} #${k + 1}`;
5832
- }, FieldRenderer: kt };
5831
+ return `${((C = f.value) == null ? void 0 : C.title) || "Item"} #${k + 1}`;
5832
+ }, FieldRenderer: St };
5833
5833
  return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
5834
5834
  }
5835
5835
  }), Lu = { class: "quickform-field quickform-array-field" }, Hu = ["id", "aria-describedby"], Ku = {
@@ -5853,25 +5853,25 @@ function sf(e, t, n, r, s, a) {
5853
5853
  "aria-describedby": r.hint ? `${r.fieldId}-hint` : void 0
5854
5854
  }, [
5855
5855
  r.label ? (j(), I("legend", Ku, [
5856
- je(
5856
+ qe(
5857
5857
  X(r.label) + " ",
5858
5858
  1
5859
5859
  /* TEXT */
5860
5860
  ),
5861
- r.props.schema.required ? (j(), I("span", Bu, "*")) : C("v-if", !0)
5862
- ])) : C("v-if", !0),
5861
+ r.props.schema.required ? (j(), I("span", Bu, "*")) : V("v-if", !0)
5862
+ ])) : V("v-if", !0),
5863
5863
  r.hint ? (j(), I("div", {
5864
5864
  key: 1,
5865
5865
  id: `${r.fieldId}-hint`,
5866
5866
  class: "quickform-hint quickform-array-hint"
5867
5867
  }, [
5868
5868
  F("span", { innerHTML: r.hint }, null, 8, Ju)
5869
- ], 8, Gu)) : C("v-if", !0),
5869
+ ], 8, Gu)) : V("v-if", !0),
5870
5870
  F("div", xu, [
5871
5871
  (j(!0), I(
5872
- ke,
5872
+ Se,
5873
5873
  null,
5874
- Le(r.arrayValue, (o, i) => (j(), I("div", {
5874
+ He(r.arrayValue, (o, i) => (j(), I("div", {
5875
5875
  key: i,
5876
5876
  class: "quickform-array-item"
5877
5877
  }, [
@@ -5911,7 +5911,7 @@ function sf(e, t, n, r, s, a) {
5911
5911
  128
5912
5912
  /* KEYED_FRAGMENT */
5913
5913
  )),
5914
- r.arrayValue.length === 0 ? (j(), I("div", ef, " No items ")) : C("v-if", !0)
5914
+ r.arrayValue.length === 0 ? (j(), I("div", ef, " No items ")) : V("v-if", !0)
5915
5915
  ]),
5916
5916
  F("div", tf, [
5917
5917
  F("button", {
@@ -5927,11 +5927,11 @@ function sf(e, t, n, r, s, a) {
5927
5927
  X(r.errorMessage),
5928
5928
  1
5929
5929
  /* TEXT */
5930
- )) : C("v-if", !0)
5930
+ )) : V("v-if", !0)
5931
5931
  ], 8, Hu)
5932
5932
  ]);
5933
5933
  }
5934
- const af = /* @__PURE__ */ me(Uu, [["render", sf], ["__scopeId", "data-v-a0783890"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/ArrayField.vue"]]), of = /* @__PURE__ */ fe({
5934
+ const af = /* @__PURE__ */ he(Uu, [["render", sf], ["__scopeId", "data-v-a0783890"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/ArrayField.vue"]]), of = /* @__PURE__ */ me({
5935
5935
  __name: "KeyValueField",
5936
5936
  props: {
5937
5937
  schema: { type: Object, required: !0 },
@@ -5944,14 +5944,14 @@ const af = /* @__PURE__ */ me(Uu, [["render", sf], ["__scopeId", "data-v-a078389
5944
5944
  },
5945
5945
  setup(e, { expose: t }) {
5946
5946
  t();
5947
- const n = e, { value: r, setValue: s, label: a, hint: o, errorMessage: i, required: d } = ve(
5947
+ const n = e, { value: r, setValue: s, label: a, hint: o, errorMessage: i, required: d } = _e(
5948
5948
  n.path,
5949
5949
  n.schema,
5950
5950
  { label: n.label }
5951
- ), c = Se(n.path);
5951
+ ), c = Ee(n.path);
5952
5952
  let u = 0;
5953
5953
  const f = ae([]), b = ae(!1);
5954
- Ae(
5954
+ Fe(
5955
5955
  () => r.value,
5956
5956
  (p) => {
5957
5957
  if (b.value) {
@@ -5965,7 +5965,7 @@ const af = /* @__PURE__ */ me(Uu, [["render", sf], ["__scopeId", "data-v-a078389
5965
5965
  })) : f.value.length || (f.value = []);
5966
5966
  },
5967
5967
  { immediate: !0 }
5968
- ), Ae(
5968
+ ), Fe(
5969
5969
  f,
5970
5970
  (p) => {
5971
5971
  const m = {};
@@ -6005,20 +6005,20 @@ function bf(e, t, n, r, s, a) {
6005
6005
  for: r.fieldId,
6006
6006
  class: "quickform-label"
6007
6007
  }, [
6008
- je(
6008
+ qe(
6009
6009
  X(r.label) + " ",
6010
6010
  1
6011
6011
  /* TEXT */
6012
6012
  ),
6013
- r.required ? (j(), I("span", cf, "*")) : C("v-if", !0)
6014
- ], 8, df)) : C("v-if", !0),
6013
+ r.required ? (j(), I("span", cf, "*")) : V("v-if", !0)
6014
+ ], 8, df)) : V("v-if", !0),
6015
6015
  r.hint ? (j(), I("div", {
6016
6016
  key: 1,
6017
6017
  id: `${r.fieldId}-hint`,
6018
6018
  class: "quickform-hint"
6019
6019
  }, [
6020
6020
  F("span", { innerHTML: r.hint }, null, 8, ff)
6021
- ], 8, uf)) : C("v-if", !0),
6021
+ ], 8, uf)) : V("v-if", !0),
6022
6022
  F("div", mf, [
6023
6023
  r.pairs.length ? (j(), I("div", hf, [...t[0] || (t[0] = [
6024
6024
  F(
@@ -6042,15 +6042,15 @@ function bf(e, t, n, r, s, a) {
6042
6042
  -1
6043
6043
  /* CACHED */
6044
6044
  )
6045
- ])])) : C("v-if", !0),
6045
+ ])])) : V("v-if", !0),
6046
6046
  (j(!0), I(
6047
- ke,
6047
+ Se,
6048
6048
  null,
6049
- Le(r.pairs, (o) => (j(), I("div", {
6049
+ He(r.pairs, (o) => (j(), I("div", {
6050
6050
  key: o.id,
6051
6051
  class: "quickform-keyvalue-row"
6052
6052
  }, [
6053
- we(F("input", {
6053
+ ke(F("input", {
6054
6054
  "onUpdate:modelValue": (i) => o.key = i,
6055
6055
  type: "text",
6056
6056
  placeholder: "key",
@@ -6058,9 +6058,9 @@ function bf(e, t, n, r, s, a) {
6058
6058
  disabled: n.disabled,
6059
6059
  readonly: n.readonly
6060
6060
  }, null, 8, pf), [
6061
- [yt, o.key]
6061
+ [vt, o.key]
6062
6062
  ]),
6063
- we(F("input", {
6063
+ ke(F("input", {
6064
6064
  "onUpdate:modelValue": (i) => o.value = i,
6065
6065
  type: "text",
6066
6066
  placeholder: "value",
@@ -6068,7 +6068,7 @@ function bf(e, t, n, r, s, a) {
6068
6068
  disabled: n.disabled,
6069
6069
  readonly: n.readonly
6070
6070
  }, null, 8, yf), [
6071
- [yt, o.value]
6071
+ [vt, o.value]
6072
6072
  ]),
6073
6073
  F("button", {
6074
6074
  type: "button",
@@ -6093,10 +6093,10 @@ function bf(e, t, n, r, s, a) {
6093
6093
  X(r.errorMessage),
6094
6094
  1
6095
6095
  /* TEXT */
6096
- )) : C("v-if", !0)
6096
+ )) : V("v-if", !0)
6097
6097
  ]);
6098
6098
  }
6099
- const $f = /* @__PURE__ */ me(of, [["render", bf], ["__scopeId", "data-v-8e716b7d"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/KeyValueField.vue"]]), wf = /* @__PURE__ */ fe({
6099
+ const $f = /* @__PURE__ */ he(of, [["render", bf], ["__scopeId", "data-v-8e716b7d"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/KeyValueField.vue"]]), wf = /* @__PURE__ */ me({
6100
6100
  __name: "JsonField",
6101
6101
  props: {
6102
6102
  schema: { type: Object, required: !0 },
@@ -6109,12 +6109,12 @@ const $f = /* @__PURE__ */ me(of, [["render", bf], ["__scopeId", "data-v-8e716b7
6109
6109
  },
6110
6110
  setup(e, { expose: t }) {
6111
6111
  t();
6112
- const n = e, { value: r, setValue: s, label: a, hint: o, errorMessage: i, required: d } = ve(
6112
+ const n = e, { value: r, setValue: s, label: a, hint: o, errorMessage: i, required: d } = _e(
6113
6113
  n.path,
6114
6114
  n.schema,
6115
6115
  { label: n.label }
6116
- ), c = Se(n.path), u = G(() => n.schema["x-show-format-hint"] !== !1), f = ae(""), b = ae(null), $ = ae(!1);
6117
- Ae(
6116
+ ), c = Ee(n.path), u = G(() => n.schema["x-show-format-hint"] !== !1), f = ae(""), b = ae(null), $ = ae(!1);
6117
+ Fe(
6118
6118
  () => r.value,
6119
6119
  (S) => {
6120
6120
  if (!$.value) {
@@ -6132,10 +6132,10 @@ const $f = /* @__PURE__ */ me(of, [["render", bf], ["__scopeId", "data-v-8e716b7
6132
6132
  const O = S.target;
6133
6133
  f.value = O.value;
6134
6134
  try {
6135
- const V = JSON.parse(f.value);
6136
- s(V), b.value = null;
6137
- } catch (V) {
6138
- b.value = V.message;
6135
+ const C = JSON.parse(f.value);
6136
+ s(C), b.value = null;
6137
+ } catch (C) {
6138
+ b.value = C.message;
6139
6139
  }
6140
6140
  }
6141
6141
  function g() {
@@ -6153,9 +6153,9 @@ const $f = /* @__PURE__ */ me(of, [["render", bf], ["__scopeId", "data-v-8e716b7
6153
6153
  }
6154
6154
  if (S.key === "Tab") {
6155
6155
  S.preventDefault(), S.stopPropagation();
6156
- const V = O.selectionStart, x = O.selectionEnd, M = " ";
6157
- f.value = f.value.substring(0, V) + M + f.value.substring(x), setTimeout(() => {
6158
- O.selectionStart = O.selectionEnd = V + M.length;
6156
+ const C = O.selectionStart, H = O.selectionEnd, M = " ";
6157
+ f.value = f.value.substring(0, C) + M + f.value.substring(H), setTimeout(() => {
6158
+ O.selectionStart = O.selectionEnd = C + M.length;
6159
6159
  }, 0);
6160
6160
  return;
6161
6161
  }
@@ -6188,23 +6188,23 @@ function Mf(e, t, n, r, s, a) {
6188
6188
  for: r.fieldId,
6189
6189
  class: "quickform-label"
6190
6190
  }, [
6191
- je(
6191
+ qe(
6192
6192
  X(r.label) + " ",
6193
6193
  1
6194
6194
  /* TEXT */
6195
6195
  ),
6196
- r.required ? (j(), I("span", Pf, "*")) : C("v-if", !0)
6196
+ r.required ? (j(), I("span", Pf, "*")) : V("v-if", !0)
6197
6197
  ], 8, Ef),
6198
- r.showFormatHint ? (j(), I("span", Of, "ⓘ")) : C("v-if", !0)
6199
- ])) : C("v-if", !0),
6198
+ r.showFormatHint ? (j(), I("span", Of, "ⓘ")) : V("v-if", !0)
6199
+ ])) : V("v-if", !0),
6200
6200
  r.hint ? (j(), I("div", {
6201
6201
  key: 1,
6202
6202
  id: `${r.fieldId}-hint`,
6203
6203
  class: "quickform-hint"
6204
6204
  }, [
6205
6205
  F("span", { innerHTML: r.hint }, null, 8, qf)
6206
- ], 8, jf)) : C("v-if", !0),
6207
- we(F("textarea", {
6206
+ ], 8, jf)) : V("v-if", !0),
6207
+ ke(F("textarea", {
6208
6208
  id: r.fieldId,
6209
6209
  "onUpdate:modelValue": t[0] || (t[0] = (o) => r.jsonText = o),
6210
6210
  class: xn(["quickform-textarea quickform-json-editor", { "quickform-error-border": r.displayError }]),
@@ -6218,7 +6218,7 @@ function Mf(e, t, n, r, s, a) {
6218
6218
  onInput: r.handleInput,
6219
6219
  onKeydown: r.handleKeyDown
6220
6220
  }, null, 42, If), [
6221
- [yt, r.jsonText]
6221
+ [vt, r.jsonText]
6222
6222
  ]),
6223
6223
  r.displayError ? (j(), I(
6224
6224
  "div",
@@ -6226,10 +6226,10 @@ function Mf(e, t, n, r, s, a) {
6226
6226
  X(r.displayError),
6227
6227
  1
6228
6228
  /* TEXT */
6229
- )) : C("v-if", !0)
6229
+ )) : V("v-if", !0)
6230
6230
  ]);
6231
6231
  }
6232
- const Tf = /* @__PURE__ */ me(wf, [["render", Mf], ["__scopeId", "data-v-8122fb79"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/JsonField.vue"]]), Rf = /* @__PURE__ */ fe({
6232
+ const Tf = /* @__PURE__ */ he(wf, [["render", Mf], ["__scopeId", "data-v-8122fb79"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/JsonField.vue"]]), Rf = /* @__PURE__ */ me({
6233
6233
  __name: "OneOfField",
6234
6234
  props: {
6235
6235
  schema: { type: Object, required: !0 },
@@ -6242,7 +6242,7 @@ const Tf = /* @__PURE__ */ me(wf, [["render", Mf], ["__scopeId", "data-v-8122fb7
6242
6242
  },
6243
6243
  setup(e, { expose: t }) {
6244
6244
  t();
6245
- const n = e, { value: r, label: s, hint: a, errorMessage: o } = ve(n.path, n.schema, { label: n.label }), i = Se(n.path), d = new wt(), c = G(() => n.schema.oneOf || n.schema.anyOf || []), u = ae(0);
6245
+ const n = e, { value: r, label: s, hint: a, errorMessage: o } = _e(n.path, n.schema, { label: n.label }), i = Ee(n.path), d = new kt(), c = G(() => n.schema.oneOf || n.schema.anyOf || []), u = ae(0);
6246
6246
  Pr(() => {
6247
6247
  if (r.value) {
6248
6248
  const g = c.value.findIndex((p) => d.validate(p, r.value).valid);
@@ -6252,13 +6252,13 @@ const Tf = /* @__PURE__ */ me(wf, [["render", Mf], ["__scopeId", "data-v-8122fb7
6252
6252
  const f = G(() => c.value[u.value]), b = G(() => c.value.map((g, p) => g.title || `Option ${p + 1}`)), _ = { props: n, value: r, label: s, hint: a, errorMessage: o, fieldId: i, schemaUtils: d, options: c, selectedIndex: u, activeSchema: f, optionLabels: b, handleOptionChange: (g) => {
6253
6253
  const p = Number(g.target.value);
6254
6254
  u.value = p;
6255
- }, FieldRenderer: kt };
6255
+ }, FieldRenderer: St };
6256
6256
  return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
6257
6257
  }
6258
- }), Af = { class: "quickform-field quickform-oneof-field" }, Ff = ["id", "aria-describedby"], Df = {
6258
+ }), Af = { class: "quickform-field quickform-oneof-field" }, Ff = ["id", "aria-describedby"], Cf = {
6259
6259
  key: 0,
6260
6260
  class: "quickform-legend"
6261
- }, Cf = {
6261
+ }, Df = {
6262
6262
  key: 0,
6263
6263
  class: "quickform-required"
6264
6264
  }, Vf = ["id"], zf = ["innerHTML"], Uf = { class: "quickform-oneof-selector" }, Lf = ["value", "disabled"], Hf = ["value"], Kf = { class: "quickform-oneof-content" }, Bf = {
@@ -6272,21 +6272,21 @@ function Gf(e, t, n, r, s, a) {
6272
6272
  class: "quickform-fieldset",
6273
6273
  "aria-describedby": r.hint ? `${r.fieldId}-hint` : void 0
6274
6274
  }, [
6275
- r.label ? (j(), I("legend", Df, [
6276
- je(
6275
+ r.label ? (j(), I("legend", Cf, [
6276
+ qe(
6277
6277
  X(r.label) + " ",
6278
6278
  1
6279
6279
  /* TEXT */
6280
6280
  ),
6281
- r.props.schema.required ? (j(), I("span", Cf, "*")) : C("v-if", !0)
6282
- ])) : C("v-if", !0),
6281
+ r.props.schema.required ? (j(), I("span", Df, "*")) : V("v-if", !0)
6282
+ ])) : V("v-if", !0),
6283
6283
  r.hint ? (j(), I("div", {
6284
6284
  key: 1,
6285
6285
  id: `${r.fieldId}-hint`,
6286
6286
  class: "quickform-hint quickform-oneof-hint"
6287
6287
  }, [
6288
6288
  F("span", { innerHTML: r.hint }, null, 8, zf)
6289
- ], 8, Vf)) : C("v-if", !0),
6289
+ ], 8, Vf)) : V("v-if", !0),
6290
6290
  F("div", Uf, [
6291
6291
  F("select", {
6292
6292
  value: r.selectedIndex,
@@ -6295,9 +6295,9 @@ function Gf(e, t, n, r, s, a) {
6295
6295
  disabled: n.disabled || n.readonly
6296
6296
  }, [
6297
6297
  (j(!0), I(
6298
- ke,
6298
+ Se,
6299
6299
  null,
6300
- Le(r.optionLabels, (o, i) => (j(), I("option", {
6300
+ He(r.optionLabels, (o, i) => (j(), I("option", {
6301
6301
  key: i,
6302
6302
  value: i
6303
6303
  }, X(o), 9, Hf))),
@@ -6307,13 +6307,13 @@ function Gf(e, t, n, r, s, a) {
6307
6307
  ], 40, Lf)
6308
6308
  ]),
6309
6309
  F("div", Kf, [
6310
- r.activeSchema ? (j(), vt(r.FieldRenderer, {
6310
+ r.activeSchema ? (j(), _t(r.FieldRenderer, {
6311
6311
  key: 0,
6312
6312
  schema: r.activeSchema,
6313
6313
  path: n.path,
6314
6314
  disabled: n.disabled,
6315
6315
  readonly: n.readonly
6316
- }, null, 8, ["schema", "path", "disabled", "readonly"])) : C("v-if", !0)
6316
+ }, null, 8, ["schema", "path", "disabled", "readonly"])) : V("v-if", !0)
6317
6317
  ]),
6318
6318
  r.errorMessage ? (j(), I(
6319
6319
  "div",
@@ -6321,11 +6321,11 @@ function Gf(e, t, n, r, s, a) {
6321
6321
  X(r.errorMessage),
6322
6322
  1
6323
6323
  /* TEXT */
6324
- )) : C("v-if", !0)
6324
+ )) : V("v-if", !0)
6325
6325
  ], 8, Ff)
6326
6326
  ]);
6327
6327
  }
6328
- const Jn = /* @__PURE__ */ me(Rf, [["render", Gf], ["__scopeId", "data-v-dab625e6"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/OneOfField.vue"]]), Jf = /* @__PURE__ */ fe({
6328
+ const Jn = /* @__PURE__ */ he(Rf, [["render", Gf], ["__scopeId", "data-v-dab625e6"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/OneOfField.vue"]]), Jf = /* @__PURE__ */ me({
6329
6329
  __name: "AllOfField",
6330
6330
  props: {
6331
6331
  schema: { type: Object, required: !0 },
@@ -6338,17 +6338,17 @@ const Jn = /* @__PURE__ */ me(Rf, [["render", Gf], ["__scopeId", "data-v-dab625e
6338
6338
  },
6339
6339
  setup(e, { expose: t }) {
6340
6340
  t();
6341
- const n = e, { label: r, hint: s, errorMessage: a } = ve(n.path, n.schema, { label: n.label }), o = Se(n.path), i = new wt(), d = G(() => {
6341
+ const n = e, { label: r, hint: s, errorMessage: a } = _e(n.path, n.schema, { label: n.label }), o = Ee(n.path), i = new kt(), d = G(() => {
6342
6342
  if (!n.schema.allOf) return n.schema;
6343
6343
  const u = { ...n.schema };
6344
6344
  return delete u.allOf, i.mergeSchemas(u, ...n.schema.allOf);
6345
- }), c = { props: n, label: r, hint: s, errorMessage: a, fieldId: o, schemaUtils: i, mergedSchema: d, FieldRenderer: kt };
6345
+ }), c = { props: n, label: r, hint: s, errorMessage: a, fieldId: o, schemaUtils: i, mergedSchema: d, FieldRenderer: St };
6346
6346
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
6347
6347
  }
6348
6348
  }), xf = { class: "quickform-field quickform-allof-field" };
6349
6349
  function Wf(e, t, n, r, s, a) {
6350
6350
  return j(), I("div", xf, [
6351
- C(" If the merged result is an object, ObjectField might be better, but FieldRenderer will dispatch correctly "),
6351
+ V(" If the merged result is an object, ObjectField might be better, but FieldRenderer will dispatch correctly "),
6352
6352
  Wn(r.FieldRenderer, {
6353
6353
  schema: r.mergedSchema,
6354
6354
  path: n.path,
@@ -6358,7 +6358,7 @@ function Wf(e, t, n, r, s, a) {
6358
6358
  }, null, 8, ["schema", "path", "disabled", "readonly", "label"])
6359
6359
  ]);
6360
6360
  }
6361
- const Zf = /* @__PURE__ */ me(Jf, [["render", Wf], ["__scopeId", "data-v-094fd67d"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/AllOfField.vue"]]), Yf = /* @__PURE__ */ fe({
6361
+ const Zf = /* @__PURE__ */ he(Jf, [["render", Wf], ["__scopeId", "data-v-094fd67d"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/AllOfField.vue"]]), Yf = /* @__PURE__ */ me({
6362
6362
  __name: "HiddenField",
6363
6363
  props: {
6364
6364
  schema: { type: Object, required: !0 },
@@ -6371,7 +6371,7 @@ const Zf = /* @__PURE__ */ me(Jf, [["render", Wf], ["__scopeId", "data-v-094fd67
6371
6371
  },
6372
6372
  setup(e, { expose: t }) {
6373
6373
  t();
6374
- const n = e, { value: r } = ve(n.path, n.schema, { label: n.label });
6374
+ const n = e, { value: r } = _e(n.path, n.schema, { label: n.label });
6375
6375
  Pr(() => {
6376
6376
  n.schema.const !== void 0 && r.value === void 0 && (r.value = n.schema.const);
6377
6377
  });
@@ -6381,10 +6381,10 @@ const Zf = /* @__PURE__ */ me(Jf, [["render", Wf], ["__scopeId", "data-v-094fd67
6381
6381
  }), Qf = ["value"];
6382
6382
  function Xf(e, t, n, r, s, a) {
6383
6383
  return j(), I(
6384
- ke,
6384
+ Se,
6385
6385
  null,
6386
6386
  [
6387
- C(" Hidden field - renders nothing visible to the user "),
6387
+ V(" Hidden field - renders nothing visible to the user "),
6388
6388
  F("input", {
6389
6389
  type: "hidden",
6390
6390
  value: r.value
@@ -6394,64 +6394,64 @@ function Xf(e, t, n, r, s, a) {
6394
6394
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
6395
6395
  );
6396
6396
  }
6397
- const em = /* @__PURE__ */ me(Yf, [["render", Xf], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/HiddenField.vue"]]);
6397
+ const em = /* @__PURE__ */ he(Yf, [["render", Xf], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/HiddenField.vue"]]);
6398
6398
  function tm() {
6399
6399
  const e = new ma();
6400
6400
  return e.register(
6401
6401
  "hidden",
6402
6402
  em,
6403
- (t) => pe(100, ba(t))
6403
+ (t) => ye(100, ba(t))
6404
6404
  ), e.register(
6405
6405
  "string",
6406
6406
  Ac,
6407
- (t) => pe(1, et(t))
6407
+ (t) => ye(1, rt(t))
6408
6408
  ), e.register(
6409
6409
  "number",
6410
6410
  Bc,
6411
- (t) => pe(1, ha(t))
6411
+ (t) => ye(1, ha(t))
6412
6412
  ), e.register(
6413
6413
  "boolean",
6414
6414
  ru,
6415
- (t) => pe(1, pa(t))
6415
+ (t) => ye(1, pa(t))
6416
6416
  ), e.register(
6417
6417
  "enum",
6418
6418
  yu,
6419
- (t) => pe(2, $a(t))
6419
+ (t) => ye(2, $a(t))
6420
6420
  ), e.register(
6421
6421
  "date",
6422
6422
  Pu,
6423
- (t) => pe(2, wa(t))
6423
+ (t) => ye(2, wa(t))
6424
6424
  ), e.register(
6425
6425
  "keyvalue",
6426
6426
  $f,
6427
- (t) => pe(6, _a(t))
6427
+ (t) => ye(6, _a(t))
6428
6428
  ), e.register(
6429
6429
  "json",
6430
6430
  Tf,
6431
- (t) => pe(5, ga(t))
6431
+ (t) => ye(5, ga(t))
6432
6432
  ), e.register(
6433
6433
  "object",
6434
6434
  zu,
6435
- (t) => pe(1, ya(t))
6435
+ (t) => ye(1, ya(t))
6436
6436
  ), e.register(
6437
6437
  "array",
6438
6438
  af,
6439
- (t) => pe(1, va(t))
6439
+ (t) => ye(1, va(t))
6440
6440
  ), e.register(
6441
6441
  "oneOf",
6442
6442
  Jn,
6443
- (t) => pe(10, Zn(t))
6443
+ (t) => ye(10, Zn(t))
6444
6444
  ), e.register(
6445
6445
  "anyOf",
6446
6446
  Jn,
6447
- (t) => pe(10, ka(t))
6447
+ (t) => ye(10, ka(t))
6448
6448
  ), e.register(
6449
6449
  "allOf",
6450
6450
  Zf,
6451
- (t) => pe(10, Sa(t))
6451
+ (t) => ye(10, Sa(t))
6452
6452
  ), e;
6453
6453
  }
6454
- const xe = "__root__", rm = /* @__PURE__ */ fe({
6454
+ const Ze = "__root__", rm = /* @__PURE__ */ me({
6455
6455
  __name: "DynamicForm",
6456
6456
  props: /* @__PURE__ */ bn({
6457
6457
  schema: { type: Object, required: !0 },
@@ -6462,10 +6462,10 @@ const xe = "__root__", rm = /* @__PURE__ */ fe({
6462
6462
  }),
6463
6463
  emits: /* @__PURE__ */ bn(["submit", "validation", "ready"], ["update:modelValue"]),
6464
6464
  setup(e, { expose: t, emit: n }) {
6465
- var T, z, W, U;
6465
+ var W, U, ne, re;
6466
6466
  t();
6467
- const r = e, s = oa(e, "modelValue"), a = n, o = new wt(), i = r.options.registry || tm(), d = G(() => r.schema.type === "object" && !r.schema.properties), c = d.value ? {
6468
- [xe]: s.value && typeof s.value == "object" && Object.keys(s.value).length > 0 ? s.value : r.options.useDefaults !== !1 ? o.getDefaultValue(r.schema) : {}
6467
+ const r = e, s = oa(e, "modelValue"), a = n, o = new kt(), i = r.options.registry || tm(), d = G(() => r.schema.type === "object" && !r.schema.properties), c = d.value ? {
6468
+ [Ze]: s.value && typeof s.value == "object" && Object.keys(s.value).length > 0 ? s.value : r.options.useDefaults !== !1 ? o.getDefaultValue(r.schema) : {}
6469
6469
  } : r.options.useDefaults !== !1 ? { ...o.getDefaultValue(r.schema), ...s.value } : { ...s.value }, { handleSubmit: u, values: f, setValues: b, setFieldValue: $, errors: _, meta: g } = fa({
6470
6470
  initialValues: c,
6471
6471
  validateOnMount: r.options.validateOnMount ?? !1
@@ -6503,7 +6503,7 @@ const xe = "__root__", rm = /* @__PURE__ */ fe({
6503
6503
  errorMessages: r.options.errorMessages,
6504
6504
  validators: r.options.validators,
6505
6505
  validatorDebounce: r.options.validatorDebounce,
6506
- formValues: () => d.value ? $n(f[xe]) : $n(f),
6506
+ formValues: () => d.value ? $n(f[Ze]) : $n(f),
6507
6507
  labels: { ...p, ...r.options.labels },
6508
6508
  componentDefaults: {
6509
6509
  // Start with all custom component defaults from options
@@ -6511,101 +6511,109 @@ const xe = "__root__", rm = /* @__PURE__ */ fe({
6511
6511
  // Then merge in the built-in defaults
6512
6512
  select: {
6513
6513
  ...m.select,
6514
- ...(T = r.options.componentDefaults) == null ? void 0 : T.select
6514
+ ...(W = r.options.componentDefaults) == null ? void 0 : W.select
6515
6515
  },
6516
6516
  array: {
6517
6517
  ...m.array,
6518
- ...(z = r.options.componentDefaults) == null ? void 0 : z.array
6518
+ ...(U = r.options.componentDefaults) == null ? void 0 : U.array
6519
6519
  },
6520
6520
  number: {
6521
6521
  ...m.number,
6522
- ...(W = r.options.componentDefaults) == null ? void 0 : W.number
6522
+ ...(ne = r.options.componentDefaults) == null ? void 0 : ne.number
6523
6523
  },
6524
6524
  hints: {
6525
6525
  ...m.hints,
6526
- ...(U = r.options.componentDefaults) == null ? void 0 : U.hints
6526
+ ...(re = r.options.componentDefaults) == null ? void 0 : re.hints
6527
6527
  }
6528
6528
  },
6529
6529
  quickformsDefaults: r.options.quickformsDefaults || {},
6530
6530
  hintRenderer: r.options.hintRenderer
6531
6531
  });
6532
6532
  yc(y);
6533
- const k = ae(!1);
6534
- Pr(() => {
6535
- ot(() => {
6536
- k.value = !0, a("ready");
6533
+ const k = ae(!1), S = ae(null);
6534
+ function O() {
6535
+ requestAnimationFrame(() => {
6536
+ requestAnimationFrame(() => {
6537
+ S.value && S.value.children.length > 0 ? (k.value = !0, a("ready")) : setTimeout(O, 10);
6538
+ });
6537
6539
  });
6538
- }), Ae(
6540
+ }
6541
+ Pr(() => {
6542
+ O();
6543
+ }), Fe(
6539
6544
  () => r.schema,
6540
6545
  () => {
6541
- k.value = !1, ot(() => {
6542
- k.value = !0, a("ready");
6546
+ k.value = !1, Pt(() => {
6547
+ O();
6543
6548
  });
6544
6549
  }
6545
6550
  );
6546
- let S = !1, O = !1;
6547
- Ae(
6551
+ let C = !1, H = !1;
6552
+ Fe(
6548
6553
  s,
6549
- (B) => {
6550
- if (!O) {
6551
- if (S = !0, d.value) {
6552
- const ee = B && typeof B == "object" && Object.keys(B).length > 0 ? B : r.options.useDefaults !== !1 ? o.getDefaultValue(r.schema) : {};
6553
- $(xe, ee);
6554
+ (x) => {
6555
+ if (!H) {
6556
+ if (C = !0, d.value) {
6557
+ const pe = x && typeof x == "object" && Object.keys(x).length > 0 ? x : r.options.useDefaults !== !1 ? o.getDefaultValue(r.schema) : {};
6558
+ $(Ze, pe);
6554
6559
  } else
6555
- B && b(B);
6556
- ot(() => {
6557
- S = !1;
6560
+ x && b(x);
6561
+ Pt(() => {
6562
+ C = !1;
6558
6563
  });
6559
6564
  }
6560
6565
  }
6561
- ), d.value ? Ae(
6562
- () => f[xe],
6563
- (B) => {
6564
- S || (O = !0, s.value = B, ot(() => {
6565
- O = !1;
6566
+ ), d.value ? Fe(
6567
+ () => f[Ze],
6568
+ (x) => {
6569
+ C || (H = !0, s.value = x, Pt(() => {
6570
+ H = !1;
6566
6571
  }));
6567
6572
  },
6568
6573
  { deep: !0 }
6569
- ) : Ae(
6574
+ ) : Fe(
6570
6575
  f,
6571
- (B) => {
6572
- S || (O = !0, s.value = B, ot(() => {
6573
- O = !1;
6576
+ (x) => {
6577
+ C || (H = !0, s.value = x, Pt(() => {
6578
+ H = !1;
6574
6579
  }));
6575
6580
  },
6576
6581
  { deep: !0 }
6577
- ), Ae(
6582
+ ), Fe(
6578
6583
  [_, g],
6579
- ([B, ee]) => {
6584
+ ([x, pe]) => {
6580
6585
  a("validation", {
6581
- valid: ee.valid,
6582
- errors: B
6586
+ valid: pe.valid,
6587
+ errors: x
6583
6588
  });
6584
6589
  },
6585
6590
  { immediate: !0 }
6586
6591
  );
6587
- const V = u((B) => {
6588
- const ee = d.value ? B[xe] : B, he = o.validate(r.schema, ee);
6589
- he.valid ? a("submit", ee) : console.error("Form validation failed:", he.errors);
6590
- }), x = G(() => r.schema.type !== "object" || !r.schema.properties ? [] : Object.entries(r.schema.properties).map(([B, ee]) => ({
6591
- key: B,
6592
- schema: ee,
6593
- path: B
6594
- }))), M = { props: r, model: s, emit: a, schemaUtils: o, registry: i, SINGLE_FIELD_PATH: xe, isSingleField: d, initialValues: c, handleSubmit: u, values: f, setValues: b, setFieldValue: $, errors: _, meta: g, defaultLabels: p, defaultComponentDefaults: m, formContext: y, isReady: k, get isUpdatingFromModel() {
6595
- return S;
6596
- }, set isUpdatingFromModel(B) {
6597
- S = B;
6592
+ const M = u((x) => {
6593
+ const pe = d.value ? x[Ze] : x, Ge = o.validate(r.schema, pe);
6594
+ Ge.valid ? a("submit", pe) : console.error("Form validation failed:", Ge.errors);
6595
+ }), T = G(() => r.schema.type !== "object" || !r.schema.properties ? [] : Object.entries(r.schema.properties).map(([x, pe]) => ({
6596
+ key: x,
6597
+ schema: pe,
6598
+ path: x
6599
+ }))), z = { props: r, model: s, emit: a, schemaUtils: o, registry: i, SINGLE_FIELD_PATH: Ze, isSingleField: d, initialValues: c, handleSubmit: u, values: f, setValues: b, setFieldValue: $, errors: _, meta: g, defaultLabels: p, defaultComponentDefaults: m, formContext: y, isReady: k, formContentRef: S, checkIfReady: O, get isUpdatingFromModel() {
6600
+ return C;
6601
+ }, set isUpdatingFromModel(x) {
6602
+ C = x;
6598
6603
  }, get isUpdatingModel() {
6599
- return O;
6600
- }, set isUpdatingModel(B) {
6601
- O = B;
6602
- }, onSubmit: V, properties: x, FieldRenderer: kt };
6603
- return Object.defineProperty(M, "__isScriptSetup", { enumerable: !1, value: !0 }), M;
6604
+ return H;
6605
+ }, set isUpdatingModel(x) {
6606
+ H = x;
6607
+ }, onSubmit: M, properties: T, FieldRenderer: St };
6608
+ return Object.defineProperty(z, "__isScriptSetup", { enumerable: !1, value: !0 }), z;
6604
6609
  }
6605
6610
  }), nm = {
6606
6611
  key: 0,
6607
6612
  class: "quickform-loading"
6608
- }, sm = { class: "quickform-content" };
6613
+ }, sm = {
6614
+ ref: "formContentRef",
6615
+ class: "quickform-content"
6616
+ };
6609
6617
  function am(e, t, n, r, s, a) {
6610
6618
  return j(), I(
6611
6619
  "form",
@@ -6614,8 +6622,8 @@ function am(e, t, n, r, s, a) {
6614
6622
  onSubmit: t[0] || (t[0] = (...o) => r.onSubmit && r.onSubmit(...o))
6615
6623
  },
6616
6624
  [
6617
- C(" Loading state (shown until form is ready) "),
6618
- r.isReady ? C("v-if", !0) : (j(), I("div", nm, [
6625
+ V(" Loading state (shown until form is ready) "),
6626
+ r.isReady ? V("v-if", !0) : (j(), I("div", nm, [
6619
6627
  da(e.$slots, "loading", {}, () => [
6620
6628
  t[1] || (t[1] = F(
6621
6629
  "div",
@@ -6628,27 +6636,27 @@ function am(e, t, n, r, s, a) {
6628
6636
  ))
6629
6637
  ], !0)
6630
6638
  ])),
6631
- C(" Form content (shown when ready) "),
6632
- we(F(
6639
+ V(" Form content (shown when ready) "),
6640
+ ke(F(
6633
6641
  "div",
6634
6642
  sm,
6635
6643
  [
6636
- C(" Single field schema (e.g., JSON editor, single object field) "),
6637
- r.isSingleField ? (j(), vt(r.FieldRenderer, {
6644
+ V(" Single field schema (e.g., JSON editor, single object field) "),
6645
+ r.isSingleField ? (j(), _t(r.FieldRenderer, {
6638
6646
  key: 0,
6639
6647
  schema: n.schema,
6640
6648
  path: r.SINGLE_FIELD_PATH,
6641
6649
  disabled: n.options.disabled,
6642
6650
  readonly: n.options.readonly
6643
6651
  }, null, 8, ["schema", "disabled", "readonly"])) : (j(), I(
6644
- ke,
6652
+ Se,
6645
6653
  { key: 1 },
6646
6654
  [
6647
- C(" Multiple fields (normal form) "),
6655
+ V(" Multiple fields (normal form) "),
6648
6656
  (j(!0), I(
6649
- ke,
6657
+ Se,
6650
6658
  null,
6651
- Le(r.properties, (o) => (j(), vt(r.FieldRenderer, {
6659
+ He(r.properties, (o) => (j(), _t(r.FieldRenderer, {
6652
6660
  key: o.key,
6653
6661
  schema: o.schema,
6654
6662
  path: o.path,
@@ -6673,7 +6681,7 @@ function am(e, t, n, r, s, a) {
6673
6681
  /* NEED_HYDRATION */
6674
6682
  );
6675
6683
  }
6676
- const Sm = /* @__PURE__ */ me(rm, [["render", am], ["__scopeId", "data-v-cb85e2c1"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/DynamicForm.vue"]]);
6684
+ const Sm = /* @__PURE__ */ he(rm, [["render", am], ["__scopeId", "data-v-cb85e2c1"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/DynamicForm.vue"]]);
6677
6685
  export {
6678
6686
  Zf as AllOfField,
6679
6687
  af as ArrayField,
@@ -6682,18 +6690,18 @@ export {
6682
6690
  Pu as DateField,
6683
6691
  Sm as DynamicForm,
6684
6692
  yu as EnumField,
6685
- kt as FieldRenderer,
6693
+ St as FieldRenderer,
6686
6694
  em as HiddenField,
6687
6695
  Tf as JsonField,
6688
6696
  $f as KeyValueField,
6689
6697
  Bc as NumberField,
6690
6698
  zu as ObjectField,
6691
6699
  Jn as OneOfField,
6692
- wt as SchemaUtils,
6700
+ kt as SchemaUtils,
6693
6701
  Ac as StringField,
6694
6702
  _m as and,
6695
6703
  tm as createDefaultRegistry,
6696
- Se as generateFieldId,
6704
+ Ee as generateFieldId,
6697
6705
  vc as getHint,
6698
6706
  $m as getLabel,
6699
6707
  Sa as hasAllOf,
@@ -6717,14 +6725,14 @@ export {
6717
6725
  ha as isNumberType,
6718
6726
  ya as isObjectType,
6719
6727
  _a as isRecordType,
6720
- et as isStringType,
6728
+ rt as isStringType,
6721
6729
  fm as isTimeFormat,
6722
6730
  hm as isUrlFormat,
6723
6731
  km as joinPath,
6724
6732
  bm as not,
6725
6733
  gm as or,
6726
6734
  yc as provideFormContext,
6727
- pe as rankWith,
6728
- st as useFormContext,
6729
- ve as useFormField
6735
+ ye as rankWith,
6736
+ ot as useFormContext,
6737
+ _e as useFormField
6730
6738
  };