@quickflo/quickforms-vue 1.4.4 → 1.5.0

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,6 +1,6 @@
1
- import { provide as Xs, inject as ea, computed as B, defineComponent as fe, ref as oe, createElementBlock as I, openBlock as q, createElementVNode as C, withDirectives as Oe, createCommentVNode as z, createTextVNode as je, toDisplayString as Q, vModelText as pt, normalizeClass as Bn, vModelDynamic as Sr, vModelCheckbox as ta, Fragment as $e, renderList as He, vModelSelect as ra, createBlock as yt, resolveDynamicComponent as na, createVNode as Jn, watch as Le, onMounted as Gn, reactive as sa, markRaw as aa, toRaw as _n } from "vue";
2
- import { useField as oa, useForm as ia } from "vee-validate";
3
- class la {
1
+ import { provide as ta, inject as ra, computed as B, defineComponent as fe, ref as oe, createElementBlock as I, openBlock as q, createElementVNode as C, withDirectives as Oe, createCommentVNode as z, createTextVNode as je, toDisplayString as Q, vModelText as pt, normalizeClass as Gn, vModelDynamic as Sr, vModelCheckbox as na, Fragment as $e, renderList as He, vModelSelect as sa, createBlock as yt, resolveDynamicComponent as aa, createVNode as xn, watch as Le, onMounted as Wn, reactive as oa, markRaw as ia, toRaw as gn } from "vue";
2
+ import { useField as la, useForm as da } from "vee-validate";
3
+ class ca {
4
4
  constructor() {
5
5
  this.components = /* @__PURE__ */ new Map();
6
6
  }
@@ -57,13 +57,13 @@ class la {
57
57
  this.components.clear();
58
58
  }
59
59
  }
60
- const he = (e, t) => t ? e : -1, et = (e) => e.type === "string" || e.const !== void 0 && typeof e.const == "string", da = (e) => e.type === "number" || e.type === "integer" || e.const !== void 0 && typeof e.const == "number", tm = (e) => e.type === "integer", ca = (e) => e.type === "boolean" || e.const !== void 0 && typeof e.const == "boolean", ua = (e) => e.type === "object" || e.type === void 0 && e.properties !== void 0, fa = (e) => e.type === "array", ma = (e) => e.type === "object" && e.additionalProperties !== void 0 && typeof e.additionalProperties == "object" && Object.keys(e.additionalProperties).length > 0 && // Has typed additionalProperties
61
- (!e.properties || Object.keys(e.properties).length === 0), ha = (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), rm = (e) => e.type === "null", pa = (e) => e.const !== void 0, ya = (e) => Array.isArray(e.enum) && e.enum.length > 0, nm = (e) => (t) => t.format === e, sm = (e) => et(e) && e.format === "email", va = (e) => et(e) && e.format === "date", am = (e) => et(e) && e.format === "time", om = (e) => et(e) && e.format === "date-time", im = (e) => et(e) && (e.format === "url" || e.format === "uri"), xn = (e) => Array.isArray(e.oneOf) && e.oneOf.length > 0, _a = (e) => Array.isArray(e.anyOf) && e.anyOf.length > 0, ga = (e) => Array.isArray(e.allOf) && e.allOf.length > 0, lm = (e) => xn(e) && e.discriminator !== void 0, dm = (e) => e.if !== void 0, cm = (e) => (t) => t[e] !== void 0, um = (...e) => (t) => e.every((n) => n(t)), fm = (...e) => (t) => e.some((n) => n(t)), mm = (e) => (t) => !e(t);
63
- function Wn(e) {
60
+ const he = (e, t) => t ? e : -1, et = (e) => e.type === "string" || e.const !== void 0 && typeof e.const == "string", ua = (e) => e.type === "number" || e.type === "integer" || e.const !== void 0 && typeof e.const == "number", rm = (e) => e.type === "integer", fa = (e) => e.type === "boolean" || e.const !== void 0 && typeof e.const == "boolean", ma = (e) => e.type === "object" || e.type === void 0 && e.properties !== void 0, ha = (e) => e.type === "array", pa = (e) => e.type === "object" && e.additionalProperties !== void 0 && typeof e.additionalProperties == "object" && Object.keys(e.additionalProperties).length > 0 && // Has typed additionalProperties
61
+ (!e.properties || Object.keys(e.properties).length === 0), ya = (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), nm = (e) => e.type === "null", va = (e) => e.const !== void 0, _a = (e) => Array.isArray(e.enum) && e.enum.length > 0, sm = (e) => (t) => t.format === e, am = (e) => et(e) && e.format === "email", ga = (e) => et(e) && e.format === "date", om = (e) => et(e) && e.format === "time", im = (e) => et(e) && e.format === "date-time", lm = (e) => et(e) && (e.format === "url" || e.format === "uri"), Zn = (e) => Array.isArray(e.oneOf) && e.oneOf.length > 0, ba = (e) => Array.isArray(e.anyOf) && e.anyOf.length > 0, $a = (e) => Array.isArray(e.allOf) && e.allOf.length > 0, dm = (e) => Zn(e) && e.discriminator !== void 0, cm = (e) => e.if !== void 0, um = (e) => (t) => t[e] !== void 0, fm = (...e) => (t) => e.every((n) => n(t)), mm = (...e) => (t) => e.some((n) => n(t)), hm = (e) => (t) => !e(t);
63
+ function Yn(e) {
64
64
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
65
65
  }
66
- var pr = { exports: {} }, Zn = {}, be = {}, Qe = {}, _t = {}, K = {}, vt = {};
66
+ var pr = { exports: {} }, Qn = {}, be = {}, Qe = {}, _t = {}, K = {}, vt = {};
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 {
@@ -497,7 +497,7 @@ var yr = {};
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(kt(l), h instanceof m ? [h] : h.nodes);
500
+ return l === !1 ? h instanceof m ? h : h.nodes : this.nodes.length ? this : new m(wt(l), h instanceof m ? [h] : h.nodes);
501
501
  if (!(l === !1 || !this.nodes.length))
502
502
  return this;
503
503
  }
@@ -843,18 +843,18 @@ var yr = {};
843
843
  for (const h in l)
844
844
  w[h] = (w[h] || 0) - (l[h] || 0);
845
845
  }
846
- function kt(w) {
846
+ function wt(w) {
847
847
  return typeof w == "boolean" || typeof w == "number" || w === null ? !w : (0, t._)`!${P(w)}`;
848
848
  }
849
- e.not = kt;
849
+ e.not = wt;
850
850
  const xt = v(e.operators.AND);
851
851
  function Wt(...w) {
852
852
  return w.reduce(xt);
853
853
  }
854
854
  e.and = Wt;
855
- const St = v(e.operators.OR);
855
+ const kt = v(e.operators.OR);
856
856
  function N(...w) {
857
- return w.reduce(St);
857
+ return w.reduce(kt);
858
858
  }
859
859
  e.or = N;
860
860
  function v(w) {
@@ -867,28 +867,28 @@ var yr = {};
867
867
  var M = {};
868
868
  Object.defineProperty(M, "__esModule", { value: !0 });
869
869
  M.checkStrictMode = M.getErrorPath = M.Type = M.useFunc = M.setEvaluated = M.evaluatedPropsToName = M.mergeEvaluated = M.eachItem = M.unescapeJsonPointer = M.escapeJsonPointer = M.escapeFragment = M.unescapeFragment = M.schemaRefOrVal = M.schemaHasRulesButRef = M.schemaHasRules = M.checkUnknownRules = M.alwaysValidSchema = M.toHash = void 0;
870
- const Y = K, ba = vt;
871
- function $a(e) {
870
+ const Y = K, wa = vt;
871
+ function ka(e) {
872
872
  const t = {};
873
873
  for (const n of e)
874
874
  t[n] = !0;
875
875
  return t;
876
876
  }
877
- M.toHash = $a;
878
- function wa(e, t) {
879
- return typeof t == "boolean" ? t : Object.keys(t).length === 0 ? !0 : (Yn(e, t), !Qn(t, e.self.RULES.all));
877
+ M.toHash = ka;
878
+ function Sa(e, t) {
879
+ return typeof t == "boolean" ? t : Object.keys(t).length === 0 ? !0 : (Xn(e, t), !es(t, e.self.RULES.all));
880
880
  }
881
- M.alwaysValidSchema = wa;
882
- function Yn(e, t = e.schema) {
881
+ M.alwaysValidSchema = Sa;
882
+ function Xn(e, t = e.schema) {
883
883
  const { opts: n, self: r } = e;
884
884
  if (!n.strictSchema || typeof t == "boolean")
885
885
  return;
886
886
  const s = r.RULES.keywords;
887
887
  for (const a in t)
888
- s[a] || ts(e, `unknown keyword: "${a}"`);
888
+ s[a] || ns(e, `unknown keyword: "${a}"`);
889
889
  }
890
- M.checkUnknownRules = Yn;
891
- function Qn(e, t) {
890
+ M.checkUnknownRules = Xn;
891
+ function es(e, t) {
892
892
  if (typeof e == "boolean")
893
893
  return !e;
894
894
  for (const n in e)
@@ -896,8 +896,8 @@ function Qn(e, t) {
896
896
  return !0;
897
897
  return !1;
898
898
  }
899
- M.schemaHasRules = Qn;
900
- function ka(e, t) {
899
+ M.schemaHasRules = es;
900
+ function Ea(e, t) {
901
901
  if (typeof e == "boolean")
902
902
  return !e;
903
903
  for (const n in e)
@@ -905,8 +905,8 @@ function ka(e, t) {
905
905
  return !0;
906
906
  return !1;
907
907
  }
908
- M.schemaHasRulesButRef = ka;
909
- function Sa({ topSchemaRef: e, schemaPath: t }, n, r, s) {
908
+ M.schemaHasRulesButRef = Ea;
909
+ function Pa({ topSchemaRef: e, schemaPath: t }, n, r, s) {
910
910
  if (!s) {
911
911
  if (typeof n == "number" || typeof n == "boolean")
912
912
  return n;
@@ -915,39 +915,39 @@ function Sa({ topSchemaRef: e, schemaPath: t }, n, r, s) {
915
915
  }
916
916
  return (0, Y._)`${e}${t}${(0, Y.getProperty)(r)}`;
917
917
  }
918
- M.schemaRefOrVal = Sa;
919
- function Ea(e) {
920
- return Xn(decodeURIComponent(e));
918
+ M.schemaRefOrVal = Pa;
919
+ function Oa(e) {
920
+ return ts(decodeURIComponent(e));
921
921
  }
922
- M.unescapeFragment = Ea;
923
- function Pa(e) {
922
+ M.unescapeFragment = Oa;
923
+ function ja(e) {
924
924
  return encodeURIComponent(Er(e));
925
925
  }
926
- M.escapeFragment = Pa;
926
+ M.escapeFragment = ja;
927
927
  function Er(e) {
928
928
  return typeof e == "number" ? `${e}` : e.replace(/~/g, "~0").replace(/\//g, "~1");
929
929
  }
930
930
  M.escapeJsonPointer = Er;
931
- function Xn(e) {
931
+ function ts(e) {
932
932
  return e.replace(/~1/g, "/").replace(/~0/g, "~");
933
933
  }
934
- M.unescapeJsonPointer = Xn;
935
- function Oa(e, t) {
934
+ M.unescapeJsonPointer = ts;
935
+ function qa(e, t) {
936
936
  if (Array.isArray(e))
937
937
  for (const n of e)
938
938
  t(n);
939
939
  else
940
940
  t(e);
941
941
  }
942
- M.eachItem = Oa;
943
- function gn({ mergeNames: e, mergeToName: t, mergeValues: n, resultToName: r }) {
942
+ M.eachItem = qa;
943
+ function bn({ mergeNames: e, mergeToName: t, mergeValues: n, resultToName: r }) {
944
944
  return (s, a, o, i) => {
945
945
  const d = o === void 0 ? a : o instanceof Y.Name ? (a instanceof Y.Name ? e(s, a, o) : t(s, a, o), o) : a instanceof Y.Name ? (t(s, o, a), a) : n(a, o);
946
946
  return i === Y.Name && !(d instanceof Y.Name) ? r(s, d) : d;
947
947
  };
948
948
  }
949
949
  M.mergeEvaluated = {
950
- props: gn({
950
+ props: bn({
951
951
  mergeNames: (e, t, n) => e.if((0, Y._)`${n} !== true && ${t} !== undefined`, () => {
952
952
  e.if((0, Y._)`${t} === true`, () => e.assign(n, !0), () => e.assign(n, (0, Y._)`${n} || {}`).code((0, Y._)`Object.assign(${n}, ${t})`));
953
953
  }),
@@ -955,57 +955,57 @@ M.mergeEvaluated = {
955
955
  t === !0 ? e.assign(n, !0) : (e.assign(n, (0, Y._)`${n} || {}`), Pr(e, n, t));
956
956
  }),
957
957
  mergeValues: (e, t) => e === !0 ? !0 : { ...e, ...t },
958
- resultToName: es
958
+ resultToName: rs
959
959
  }),
960
- items: gn({
960
+ items: bn({
961
961
  mergeNames: (e, t, n) => e.if((0, Y._)`${n} !== true && ${t} !== undefined`, () => e.assign(n, (0, Y._)`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),
962
962
  mergeToName: (e, t, n) => e.if((0, Y._)`${n} !== true`, () => e.assign(n, t === !0 ? !0 : (0, Y._)`${n} > ${t} ? ${n} : ${t}`)),
963
963
  mergeValues: (e, t) => e === !0 ? !0 : Math.max(e, t),
964
964
  resultToName: (e, t) => e.var("items", t)
965
965
  })
966
966
  };
967
- function es(e, t) {
967
+ function rs(e, t) {
968
968
  if (t === !0)
969
969
  return e.var("props", !0);
970
970
  const n = e.var("props", (0, Y._)`{}`);
971
971
  return t !== void 0 && Pr(e, n, t), n;
972
972
  }
973
- M.evaluatedPropsToName = es;
973
+ M.evaluatedPropsToName = rs;
974
974
  function Pr(e, t, n) {
975
975
  Object.keys(n).forEach((r) => e.assign((0, Y._)`${t}${(0, Y.getProperty)(r)}`, !0));
976
976
  }
977
977
  M.setEvaluated = Pr;
978
- const bn = {};
979
- function ja(e, t) {
978
+ const $n = {};
979
+ function Na(e, t) {
980
980
  return e.scopeValue("func", {
981
981
  ref: t,
982
- code: bn[t.code] || (bn[t.code] = new ba._Code(t.code))
982
+ code: $n[t.code] || ($n[t.code] = new wa._Code(t.code))
983
983
  });
984
984
  }
985
- M.useFunc = ja;
985
+ M.useFunc = Na;
986
986
  var vr;
987
987
  (function(e) {
988
988
  e[e.Num = 0] = "Num", e[e.Str = 1] = "Str";
989
989
  })(vr || (M.Type = vr = {}));
990
- function qa(e, t, n) {
990
+ function Ia(e, t, n) {
991
991
  if (e instanceof Y.Name) {
992
992
  const r = t === vr.Num;
993
993
  return n ? r ? (0, Y._)`"[" + ${e} + "]"` : (0, Y._)`"['" + ${e} + "']"` : r ? (0, Y._)`"/" + ${e}` : (0, Y._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
994
994
  }
995
995
  return n ? (0, Y.getProperty)(e).toString() : "/" + Er(e);
996
996
  }
997
- M.getErrorPath = qa;
998
- function ts(e, t, n = e.opts.strictSchema) {
997
+ M.getErrorPath = Ia;
998
+ function ns(e, t, n = e.opts.strictSchema) {
999
999
  if (n) {
1000
1000
  if (t = `strict mode: ${t}`, n === !0)
1001
1001
  throw new Error(t);
1002
1002
  e.self.logger.warn(t);
1003
1003
  }
1004
1004
  }
1005
- M.checkStrictMode = ts;
1005
+ M.checkStrictMode = ns;
1006
1006
  var qe = {};
1007
1007
  Object.defineProperty(qe, "__esModule", { value: !0 });
1008
- const le = K, Na = {
1008
+ const le = K, Ma = {
1009
1009
  // validation function arguments
1010
1010
  data: new le.Name("data"),
1011
1011
  // data passed to validation function
@@ -1034,7 +1034,7 @@ const le = K, Na = {
1034
1034
  jsonLen: new le.Name("jsonLen"),
1035
1035
  jsonPart: new le.Name("jsonPart")
1036
1036
  };
1037
- qe.default = Na;
1037
+ qe.default = Ma;
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
1040
  const t = K, n = M, r = qe;
@@ -1110,20 +1110,20 @@ qe.default = Na;
1110
1110
  })(_t);
1111
1111
  Object.defineProperty(Qe, "__esModule", { value: !0 });
1112
1112
  Qe.boolOrEmptySchema = Qe.topBoolOrEmptySchema = void 0;
1113
- const Ia = _t, Ma = K, Ta = qe, Ra = {
1113
+ const Ta = _t, Ra = K, Aa = qe, Va = {
1114
1114
  message: "boolean schema is false"
1115
1115
  };
1116
- function Aa(e) {
1116
+ function Da(e) {
1117
1117
  const { gen: t, schema: n, validateName: r } = e;
1118
- n === !1 ? rs(e, !1) : typeof n == "object" && n.$async === !0 ? t.return(Ta.default.data) : (t.assign((0, Ma._)`${r}.errors`, null), t.return(!0));
1118
+ n === !1 ? ss(e, !1) : typeof n == "object" && n.$async === !0 ? t.return(Aa.default.data) : (t.assign((0, Ra._)`${r}.errors`, null), t.return(!0));
1119
1119
  }
1120
- Qe.topBoolOrEmptySchema = Aa;
1121
- function Va(e, t) {
1120
+ Qe.topBoolOrEmptySchema = Da;
1121
+ function Ca(e, t) {
1122
1122
  const { gen: n, schema: r } = e;
1123
- r === !1 ? (n.var(t, !1), rs(e)) : n.var(t, !0);
1123
+ r === !1 ? (n.var(t, !1), ss(e)) : n.var(t, !0);
1124
1124
  }
1125
- Qe.boolOrEmptySchema = Va;
1126
- function rs(e, t) {
1125
+ Qe.boolOrEmptySchema = Ca;
1126
+ function ss(e, t) {
1127
1127
  const { gen: n, data: r } = e, s = {
1128
1128
  gen: n,
1129
1129
  keyword: "false schema",
@@ -1134,17 +1134,17 @@ function rs(e, t) {
1134
1134
  params: {},
1135
1135
  it: e
1136
1136
  };
1137
- (0, Ia.reportError)(s, Ra, void 0, t);
1137
+ (0, Ta.reportError)(s, Va, void 0, t);
1138
1138
  }
1139
1139
  var te = {}, Ke = {};
1140
1140
  Object.defineProperty(Ke, "__esModule", { value: !0 });
1141
1141
  Ke.getRules = Ke.isJSONType = void 0;
1142
- const Da = ["string", "number", "integer", "boolean", "null", "object", "array"], Ca = new Set(Da);
1143
- function Fa(e) {
1144
- return typeof e == "string" && Ca.has(e);
1142
+ const Fa = ["string", "number", "integer", "boolean", "null", "object", "array"], za = new Set(Fa);
1143
+ function Ua(e) {
1144
+ return typeof e == "string" && za.has(e);
1145
1145
  }
1146
- Ke.isJSONType = Fa;
1147
- function za() {
1146
+ Ke.isJSONType = Ua;
1147
+ function La() {
1148
1148
  const e = {
1149
1149
  number: { type: "number", rules: [] },
1150
1150
  string: { type: "string", rules: [] },
@@ -1159,33 +1159,33 @@ function za() {
1159
1159
  keywords: {}
1160
1160
  };
1161
1161
  }
1162
- Ke.getRules = za;
1162
+ Ke.getRules = La;
1163
1163
  var Ne = {};
1164
1164
  Object.defineProperty(Ne, "__esModule", { value: !0 });
1165
1165
  Ne.shouldUseRule = Ne.shouldUseGroup = Ne.schemaHasRulesForType = void 0;
1166
- function Ua({ schema: e, self: t }, n) {
1166
+ function Ha({ schema: e, self: t }, n) {
1167
1167
  const r = t.RULES.types[n];
1168
- return r && r !== !0 && ns(e, r);
1168
+ return r && r !== !0 && as(e, r);
1169
1169
  }
1170
- Ne.schemaHasRulesForType = Ua;
1171
- function ns(e, t) {
1172
- return t.rules.some((n) => ss(e, n));
1170
+ Ne.schemaHasRulesForType = Ha;
1171
+ function as(e, t) {
1172
+ return t.rules.some((n) => os(e, n));
1173
1173
  }
1174
- Ne.shouldUseGroup = ns;
1175
- function ss(e, t) {
1174
+ Ne.shouldUseGroup = as;
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
- Ne.shouldUseRule = ss;
1179
+ Ne.shouldUseRule = os;
1180
1180
  Object.defineProperty(te, "__esModule", { value: !0 });
1181
1181
  te.reportTypeError = te.checkDataTypes = te.checkDataType = te.coerceAndCheckDataType = te.getJSONTypes = te.getSchemaTypes = te.DataType = void 0;
1182
- const La = Ke, Ha = Ne, Ka = _t, H = K, as = M;
1182
+ const Ka = Ke, Ba = Ne, Ja = _t, H = K, is = M;
1183
1183
  var Ze;
1184
1184
  (function(e) {
1185
1185
  e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
1186
1186
  })(Ze || (te.DataType = Ze = {}));
1187
- function Ba(e) {
1188
- const t = os(e.type);
1187
+ function Ga(e) {
1188
+ const t = ls(e.type);
1189
1189
  if (t.includes("null")) {
1190
1190
  if (e.nullable === !1)
1191
1191
  throw new Error("type: null contradicts nullable: false");
@@ -1196,36 +1196,36 @@ function Ba(e) {
1196
1196
  }
1197
1197
  return t;
1198
1198
  }
1199
- te.getSchemaTypes = Ba;
1200
- function os(e) {
1199
+ te.getSchemaTypes = Ga;
1200
+ function ls(e) {
1201
1201
  const t = Array.isArray(e) ? e : e ? [e] : [];
1202
- if (t.every(La.isJSONType))
1202
+ if (t.every(Ka.isJSONType))
1203
1203
  return t;
1204
1204
  throw new Error("type must be JSONType or JSONType[]: " + t.join(","));
1205
1205
  }
1206
- te.getJSONTypes = os;
1207
- function Ja(e, t) {
1208
- const { gen: n, data: r, opts: s } = e, a = Ga(t, s.coerceTypes), o = t.length > 0 && !(a.length === 0 && t.length === 1 && (0, Ha.schemaHasRulesForType)(e, t[0]));
1206
+ te.getJSONTypes = ls;
1207
+ function xa(e, t) {
1208
+ const { gen: n, data: r, opts: s } = e, a = Wa(t, s.coerceTypes), o = t.length > 0 && !(a.length === 0 && t.length === 1 && (0, Ba.schemaHasRulesForType)(e, t[0]));
1209
1209
  if (o) {
1210
1210
  const i = Or(t, r, s.strictNumbers, Ze.Wrong);
1211
1211
  n.if(i, () => {
1212
- a.length ? xa(e, t, a) : jr(e);
1212
+ a.length ? Za(e, t, a) : jr(e);
1213
1213
  });
1214
1214
  }
1215
1215
  return o;
1216
1216
  }
1217
- te.coerceAndCheckDataType = Ja;
1218
- const is = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
1219
- function Ga(e, t) {
1220
- return t ? e.filter((n) => is.has(n) || t === "array" && n === "array") : [];
1217
+ te.coerceAndCheckDataType = xa;
1218
+ const ds = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
1219
+ function Wa(e, t) {
1220
+ return t ? e.filter((n) => ds.has(n) || t === "array" && n === "array") : [];
1221
1221
  }
1222
- function xa(e, t, n) {
1222
+ function Za(e, t, n) {
1223
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
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(Or(t, s, a.strictNumbers), () => r.assign(i, s))), r.if((0, H._)`${i} !== undefined`);
1225
1225
  for (const c of n)
1226
- (is.has(c) || c === "array" && a.coerceTypes === "array") && d(c);
1226
+ (ds.has(c) || c === "array" && a.coerceTypes === "array") && d(c);
1227
1227
  r.else(), jr(e), r.endIf(), r.if((0, H._)`${i} !== undefined`, () => {
1228
- r.assign(s, i), Wa(e, i);
1228
+ r.assign(s, i), Ya(e, i);
1229
1229
  });
1230
1230
  function d(c) {
1231
1231
  switch (c) {
@@ -1252,7 +1252,7 @@ function xa(e, t, n) {
1252
1252
  }
1253
1253
  }
1254
1254
  }
1255
- function Wa({ gen: e, parentData: t, parentDataProperty: n }, r) {
1255
+ function Ya({ gen: e, parentData: t, parentDataProperty: n }, r) {
1256
1256
  e.if((0, H._)`${t} !== undefined`, () => e.assign((0, H._)`${t}[${n}]`, r));
1257
1257
  }
1258
1258
  function _r(e, t, n, r = Ze.Correct) {
@@ -1286,7 +1286,7 @@ function Or(e, t, n, r) {
1286
1286
  if (e.length === 1)
1287
1287
  return _r(e[0], t, n, r);
1288
1288
  let s;
1289
- const a = (0, as.toHash)(e);
1289
+ const a = (0, is.toHash)(e);
1290
1290
  if (a.array && a.object) {
1291
1291
  const o = (0, H._)`typeof ${t} != "object"`;
1292
1292
  s = a.null ? o : (0, H._)`!${t} || ${o}`, delete a.null, delete a.array, delete a.object;
@@ -1298,17 +1298,17 @@ function Or(e, t, n, r) {
1298
1298
  return s;
1299
1299
  }
1300
1300
  te.checkDataTypes = Or;
1301
- const Za = {
1301
+ const Qa = {
1302
1302
  message: ({ schema: e }) => `must be ${e}`,
1303
1303
  params: ({ schema: e, schemaValue: t }) => typeof e == "string" ? (0, H._)`{type: ${e}}` : (0, H._)`{type: ${t}}`
1304
1304
  };
1305
1305
  function jr(e) {
1306
- const t = Ya(e);
1307
- (0, Ka.reportError)(t, Za);
1306
+ const t = Xa(e);
1307
+ (0, Ja.reportError)(t, Qa);
1308
1308
  }
1309
1309
  te.reportTypeError = jr;
1310
- function Ya(e) {
1311
- const { gen: t, data: n, schema: r } = e, s = (0, as.schemaRefOrVal)(e, r, "type");
1310
+ function Xa(e) {
1311
+ const { gen: t, data: n, schema: r } = e, s = (0, is.schemaRefOrVal)(e, r, "type");
1312
1312
  return {
1313
1313
  gen: t,
1314
1314
  keyword: "type",
@@ -1324,22 +1324,22 @@ function Ya(e) {
1324
1324
  var Lt = {};
1325
1325
  Object.defineProperty(Lt, "__esModule", { value: !0 });
1326
1326
  Lt.assignDefaults = void 0;
1327
- const Ge = K, Qa = M;
1328
- function Xa(e, t) {
1327
+ const Ge = K, eo = M;
1328
+ function to(e, t) {
1329
1329
  const { properties: n, items: r } = e.schema;
1330
1330
  if (t === "object" && n)
1331
1331
  for (const s in n)
1332
- $n(e, s, n[s].default);
1333
- else t === "array" && Array.isArray(r) && r.forEach((s, a) => $n(e, a, s.default));
1332
+ wn(e, s, n[s].default);
1333
+ else t === "array" && Array.isArray(r) && r.forEach((s, a) => wn(e, a, s.default));
1334
1334
  }
1335
- Lt.assignDefaults = Xa;
1336
- function $n(e, t, n) {
1335
+ Lt.assignDefaults = to;
1336
+ function wn(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
1340
  const i = (0, Ge._)`${a}${(0, Ge.getProperty)(t)}`;
1341
1341
  if (s) {
1342
- (0, Qa.checkStrictMode)(e, `default is ignored for: ${i}`);
1342
+ (0, eo.checkStrictMode)(e, `default is ignored for: ${i}`);
1343
1343
  return;
1344
1344
  }
1345
1345
  let d = (0, Ge._)`${i} === undefined`;
@@ -1348,53 +1348,53 @@ function $n(e, t, n) {
1348
1348
  var Ee = {}, 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 X = K, qr = M, Te = qe, eo = M;
1352
- function to(e, t) {
1351
+ const X = K, qr = M, Te = qe, ro = M;
1352
+ function no(e, t) {
1353
1353
  const { gen: n, data: r, it: s } = e;
1354
1354
  n.if(Ir(n, r, t, s.opts.ownProperties), () => {
1355
1355
  e.setParams({ missingProperty: (0, X._)`${t}` }, !0), e.error();
1356
1356
  });
1357
1357
  }
1358
- J.checkReportMissingProp = to;
1359
- function ro({ gen: e, data: t, it: { opts: n } }, r, s) {
1358
+ J.checkReportMissingProp = no;
1359
+ function so({ gen: e, data: t, it: { opts: n } }, r, s) {
1360
1360
  return (0, X.or)(...r.map((a) => (0, X.and)(Ir(e, t, a, n.ownProperties), (0, X._)`${s} = ${a}`)));
1361
1361
  }
1362
- J.checkMissingProp = ro;
1363
- function no(e, t) {
1362
+ J.checkMissingProp = so;
1363
+ function ao(e, t) {
1364
1364
  e.setParams({ missingProperty: t }, !0), e.error();
1365
1365
  }
1366
- J.reportMissingProp = no;
1367
- function ls(e) {
1366
+ J.reportMissingProp = ao;
1367
+ 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
1371
  code: (0, X._)`Object.prototype.hasOwnProperty`
1372
1372
  });
1373
1373
  }
1374
- J.hasPropFunc = ls;
1374
+ J.hasPropFunc = cs;
1375
1375
  function Nr(e, t, n) {
1376
- return (0, X._)`${ls(e)}.call(${t}, ${n})`;
1376
+ return (0, X._)`${cs(e)}.call(${t}, ${n})`;
1377
1377
  }
1378
1378
  J.isOwnProperty = Nr;
1379
- function so(e, t, n, r) {
1379
+ function oo(e, t, n, r) {
1380
1380
  const s = (0, X._)`${t}${(0, X.getProperty)(n)} !== undefined`;
1381
1381
  return r ? (0, X._)`${s} && ${Nr(e, t, n)}` : s;
1382
1382
  }
1383
- J.propertyInData = so;
1383
+ J.propertyInData = oo;
1384
1384
  function Ir(e, t, n, r) {
1385
1385
  const s = (0, X._)`${t}${(0, X.getProperty)(n)} === undefined`;
1386
1386
  return r ? (0, X.or)(s, (0, X.not)(Nr(e, t, n))) : s;
1387
1387
  }
1388
1388
  J.noPropertyInData = Ir;
1389
- function ds(e) {
1389
+ function us(e) {
1390
1390
  return e ? Object.keys(e).filter((t) => t !== "__proto__") : [];
1391
1391
  }
1392
- J.allSchemaProperties = ds;
1393
- function ao(e, t) {
1394
- return ds(t).filter((n) => !(0, qr.alwaysValidSchema)(e, t[n]));
1392
+ J.allSchemaProperties = us;
1393
+ function io(e, t) {
1394
+ return us(t).filter((n) => !(0, qr.alwaysValidSchema)(e, t[n]));
1395
1395
  }
1396
- J.schemaProperties = ao;
1397
- function oo({ schemaCode: e, data: t, it: { gen: n, topSchemaRef: r, schemaPath: s, errorPath: a }, it: o }, i, d, c) {
1396
+ J.schemaProperties = io;
1397
+ function lo({ schemaCode: e, data: t, it: { gen: n, topSchemaRef: r, schemaPath: s, errorPath: a }, it: o }, i, d, c) {
1398
1398
  const u = c ? (0, X._)`${e}, ${t}, ${r}${s}` : t, f = [
1399
1399
  [Te.default.instancePath, (0, X.strConcat)(Te.default.instancePath, a)],
1400
1400
  [Te.default.parentData, o.parentData],
@@ -1405,18 +1405,18 @@ function oo({ schemaCode: e, data: t, it: { gen: n, topSchemaRef: r, schemaPath:
1405
1405
  const b = (0, X._)`${u}, ${n.object(...f)}`;
1406
1406
  return d !== X.nil ? (0, X._)`${i}.call(${d}, ${b})` : (0, X._)`${i}(${b})`;
1407
1407
  }
1408
- J.callValidateCode = oo;
1409
- const io = (0, X._)`new RegExp`;
1410
- function lo({ gen: e, it: { opts: t } }, n) {
1408
+ J.callValidateCode = lo;
1409
+ const co = (0, X._)`new RegExp`;
1410
+ function uo({ 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, X._)`${s.code === "new RegExp" ? io : (0, eo.useFunc)(e, s)}(${n}, ${r})`
1415
+ code: (0, X._)`${s.code === "new RegExp" ? co : (0, ro.useFunc)(e, s)}(${n}, ${r})`
1416
1416
  });
1417
1417
  }
1418
- J.usePattern = lo;
1419
- function co(e) {
1418
+ J.usePattern = uo;
1419
+ function fo(e) {
1420
1420
  const { gen: t, data: n, keyword: r, it: s } = e, a = t.name("valid");
1421
1421
  if (s.allErrors) {
1422
1422
  const i = t.let("valid", !0);
@@ -1434,8 +1434,8 @@ function co(e) {
1434
1434
  });
1435
1435
  }
1436
1436
  }
1437
- J.validateArray = co;
1438
- function uo(e) {
1437
+ J.validateArray = fo;
1438
+ function mo(e) {
1439
1439
  const { gen: t, schema: n, keyword: r, it: s } = e;
1440
1440
  if (!Array.isArray(n))
1441
1441
  throw new Error("ajv implementation error");
@@ -1451,12 +1451,12 @@ function uo(e) {
1451
1451
  t.assign(o, (0, X._)`${o} || ${i}`), e.mergeValidEvaluated(u, i) || t.if((0, X.not)(o));
1452
1452
  })), e.result(o, () => e.reset(), () => e.error(!0));
1453
1453
  }
1454
- J.validateUnion = uo;
1454
+ J.validateUnion = mo;
1455
1455
  Object.defineProperty(Ee, "__esModule", { value: !0 });
1456
1456
  Ee.validateKeywordUsage = Ee.validSchemaType = Ee.funcKeywordCode = Ee.macroKeywordCode = void 0;
1457
- const de = K, Fe = qe, fo = J, mo = _t;
1458
- function ho(e, t) {
1459
- const { gen: n, keyword: r, schema: s, parentSchema: a, it: o } = e, i = t.macro.call(o.self, s, a, o), d = cs(n, r, i);
1457
+ const de = K, Fe = qe, ho = J, po = _t;
1458
+ function yo(e, t) {
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({
@@ -1467,19 +1467,19 @@ function ho(e, t) {
1467
1467
  compositeRule: !0
1468
1468
  }, c), e.pass(c, () => e.error(!0));
1469
1469
  }
1470
- Ee.macroKeywordCode = ho;
1471
- function po(e, t) {
1470
+ Ee.macroKeywordCode = yo;
1471
+ function vo(e, t) {
1472
1472
  var n;
1473
1473
  const { gen: r, keyword: s, schema: a, parentSchema: o, $data: i, it: d } = e;
1474
- vo(d, t);
1475
- const c = !i && t.compile ? t.compile.call(d.self, a, o, d) : t.validate, u = cs(r, s, c), f = r.let("valid");
1474
+ go(d, t);
1475
+ const c = !i && t.compile ? t.compile.call(d.self, a, o, d) : t.validate, u = fs(r, s, c), f = r.let("valid");
1476
1476
  e.block$data(f, b), e.ok((n = t.valid) !== null && n !== void 0 ? n : f);
1477
1477
  function b() {
1478
1478
  if (t.errors === !1)
1479
- g(), t.modifying && wn(e), p(() => e.error());
1479
+ g(), t.modifying && kn(e), p(() => e.error());
1480
1480
  else {
1481
1481
  const m = t.async ? $() : _();
1482
- t.modifying && wn(e), p(() => yo(e, m));
1482
+ t.modifying && kn(e), p(() => _o(e, m));
1483
1483
  }
1484
1484
  }
1485
1485
  function $() {
@@ -1492,38 +1492,38 @@ function po(e, t) {
1492
1492
  }
1493
1493
  function g(m = t.async ? (0, de._)`await ` : de.nil) {
1494
1494
  const y = d.opts.passContext ? Fe.default.this : Fe.default.self, k = !("compile" in t && !i || t.schema === !1);
1495
- r.assign(f, (0, de._)`${m}${(0, fo.callValidateCode)(e, u, y, k)}`, t.modifying);
1495
+ r.assign(f, (0, de._)`${m}${(0, ho.callValidateCode)(e, u, y, k)}`, t.modifying);
1496
1496
  }
1497
1497
  function p(m) {
1498
1498
  var y;
1499
1499
  r.if((0, de.not)((y = t.valid) !== null && y !== void 0 ? y : f), m);
1500
1500
  }
1501
1501
  }
1502
- Ee.funcKeywordCode = po;
1503
- function wn(e) {
1502
+ Ee.funcKeywordCode = vo;
1503
+ function kn(e) {
1504
1504
  const { gen: t, data: n, it: r } = e;
1505
1505
  t.if(r.parentData, () => t.assign(n, (0, de._)`${r.parentData}[${r.parentDataProperty}]`));
1506
1506
  }
1507
- function yo(e, t) {
1507
+ function _o(e, t) {
1508
1508
  const { gen: n } = e;
1509
1509
  n.if((0, de._)`Array.isArray(${t})`, () => {
1510
- n.assign(Fe.default.vErrors, (0, de._)`${Fe.default.vErrors} === null ? ${t} : ${Fe.default.vErrors}.concat(${t})`).assign(Fe.default.errors, (0, de._)`${Fe.default.vErrors}.length`), (0, mo.extendErrors)(e);
1510
+ n.assign(Fe.default.vErrors, (0, de._)`${Fe.default.vErrors} === null ? ${t} : ${Fe.default.vErrors}.concat(${t})`).assign(Fe.default.errors, (0, de._)`${Fe.default.vErrors}.length`), (0, po.extendErrors)(e);
1511
1511
  }, () => e.error());
1512
1512
  }
1513
- function vo({ schemaEnv: e }, t) {
1513
+ function go({ schemaEnv: e }, t) {
1514
1514
  if (t.async && !e.$async)
1515
1515
  throw new Error("async keyword in sync schema");
1516
1516
  }
1517
- function cs(e, t, n) {
1517
+ function fs(e, t, n) {
1518
1518
  if (n === void 0)
1519
1519
  throw new Error(`keyword "${t}" failed to compile`);
1520
1520
  return e.scopeValue("keyword", typeof n == "function" ? { ref: n } : { ref: n, code: (0, de.stringify)(n) });
1521
1521
  }
1522
- function _o(e, t, n = !1) {
1522
+ function bo(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
- Ee.validSchemaType = _o;
1526
- function go({ schema: e, opts: t, self: n, errSchemaPath: r }, s, a) {
1525
+ Ee.validSchemaType = bo;
1526
+ function $o({ 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");
1529
1529
  const o = s.dependencies;
@@ -1537,12 +1537,12 @@ function go({ schema: e, opts: t, self: n, errSchemaPath: r }, s, a) {
1537
1537
  throw new Error(d);
1538
1538
  }
1539
1539
  }
1540
- Ee.validateKeywordUsage = go;
1540
+ Ee.validateKeywordUsage = $o;
1541
1541
  var Ve = {};
1542
1542
  Object.defineProperty(Ve, "__esModule", { value: !0 });
1543
1543
  Ve.extendSubschemaMode = Ve.extendSubschemaData = Ve.getSubschema = void 0;
1544
- const Se = K, us = M;
1545
- function bo(e, { keyword: t, schemaProp: n, schema: r, schemaPath: s, errSchemaPath: a, topSchemaRef: o }) {
1544
+ const Se = K, ms = M;
1545
+ function wo(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');
1548
1548
  if (t !== void 0) {
@@ -1554,7 +1554,7 @@ function bo(e, { keyword: t, schemaProp: n, schema: r, schemaPath: s, errSchemaP
1554
1554
  } : {
1555
1555
  schema: i[n],
1556
1556
  schemaPath: (0, Se._)`${e.schemaPath}${(0, Se.getProperty)(t)}${(0, Se.getProperty)(n)}`,
1557
- errSchemaPath: `${e.errSchemaPath}/${t}/${(0, us.escapeFragment)(n)}`
1557
+ errSchemaPath: `${e.errSchemaPath}/${t}/${(0, ms.escapeFragment)(n)}`
1558
1558
  };
1559
1559
  }
1560
1560
  if (r !== void 0) {
@@ -1569,14 +1569,14 @@ function bo(e, { keyword: t, schemaProp: n, schema: r, schemaPath: s, errSchemaP
1569
1569
  }
1570
1570
  throw new Error('either "keyword" or "schema" must be passed');
1571
1571
  }
1572
- Ve.getSubschema = bo;
1573
- function $o(e, t, { dataProp: n, dataPropType: r, data: s, dataTypes: a, propertyName: o }) {
1572
+ Ve.getSubschema = wo;
1573
+ function ko(e, t, { dataProp: n, dataPropType: r, data: s, dataTypes: a, propertyName: o }) {
1574
1574
  if (s !== void 0 && n !== void 0)
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
1578
  const { errorPath: c, dataPathArr: u, opts: f } = t, b = i.let("data", (0, Se._)`${t.data}${(0, Se.getProperty)(n)}`, !0);
1579
- d(b), e.errorPath = (0, Se.str)`${c}${(0, us.getErrorPath)(n, r, f.jsPropertySyntax)}`, e.parentDataProperty = (0, Se._)`${n}`, e.dataPathArr = [...u, e.parentDataProperty];
1579
+ d(b), e.errorPath = (0, Se.str)`${c}${(0, ms.getErrorPath)(n, r, f.jsPropertySyntax)}`, e.parentDataProperty = (0, Se._)`${n}`, e.dataPathArr = [...u, e.parentDataProperty];
1580
1580
  }
1581
1581
  if (s !== void 0) {
1582
1582
  const c = s instanceof Se.Name ? s : i.let("data", s, !0);
@@ -1587,12 +1587,12 @@ function $o(e, t, { dataProp: n, dataPropType: r, data: s, dataTypes: a, propert
1587
1587
  e.data = c, e.dataLevel = t.dataLevel + 1, e.dataTypes = [], t.definedProperties = /* @__PURE__ */ new Set(), e.parentData = t.data, e.dataNames = [...t.dataNames, c];
1588
1588
  }
1589
1589
  }
1590
- Ve.extendSubschemaData = $o;
1591
- function wo(e, { jtdDiscriminator: t, jtdMetadata: n, compositeRule: r, createErrors: s, allErrors: a }) {
1590
+ Ve.extendSubschemaData = ko;
1591
+ function So(e, { jtdDiscriminator: t, jtdMetadata: n, compositeRule: r, createErrors: s, allErrors: a }) {
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
- Ve.extendSubschemaMode = wo;
1595
- var ae = {}, fs = function e(t, n) {
1594
+ Ve.extendSubschemaMode = So;
1595
+ var ae = {}, 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,7 +1616,7 @@ var ae = {}, fs = function e(t, n) {
1616
1616
  return !0;
1617
1617
  }
1618
1618
  return t !== t && n !== n;
1619
- }, ms = { exports: {} }, Ae = ms.exports = function(e, t, n) {
1619
+ }, ps = { exports: {} }, Ae = 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() {
@@ -1679,19 +1679,19 @@ function It(e, t, n, r, s, a, o, i, d, c) {
1679
1679
  } else if (u in Ae.propsKeywords) {
1680
1680
  if (f && typeof f == "object")
1681
1681
  for (var $ in f)
1682
- It(e, t, n, f[$], s + "/" + u + "/" + ko($), a, s, u, r, $);
1682
+ It(e, t, n, f[$], s + "/" + u + "/" + Eo($), a, s, u, r, $);
1683
1683
  } else (u in Ae.keywords || e.allKeys && !(u in Ae.skipKeywords)) && It(e, t, n, f, s + "/" + u, a, s, u, r);
1684
1684
  }
1685
1685
  n(r, s, a, o, i, d, c);
1686
1686
  }
1687
1687
  }
1688
- function ko(e) {
1688
+ function Eo(e) {
1689
1689
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
1690
1690
  }
1691
- var So = ms.exports;
1691
+ var Po = ps.exports;
1692
1692
  Object.defineProperty(ae, "__esModule", { value: !0 });
1693
1693
  ae.getSchemaRefs = ae.resolveUrl = ae.normalizeId = ae._getFullPath = ae.getFullPath = ae.inlineRef = void 0;
1694
- const Eo = M, Po = fs, Oo = So, jo = /* @__PURE__ */ new Set([
1694
+ const Oo = M, jo = hs, qo = Po, No = /* @__PURE__ */ new Set([
1695
1695
  "type",
1696
1696
  "format",
1697
1697
  "pattern",
@@ -1709,11 +1709,11 @@ const Eo = M, Po = fs, Oo = So, jo = /* @__PURE__ */ new Set([
1709
1709
  "enum",
1710
1710
  "const"
1711
1711
  ]);
1712
- function qo(e, t = !0) {
1713
- return typeof e == "boolean" ? !0 : t === !0 ? !gr(e) : t ? hs(e) <= t : !1;
1712
+ function Io(e, t = !0) {
1713
+ return typeof e == "boolean" ? !0 : t === !0 ? !gr(e) : t ? ys(e) <= t : !1;
1714
1714
  }
1715
- ae.inlineRef = qo;
1716
- const No = /* @__PURE__ */ new Set([
1715
+ ae.inlineRef = Io;
1716
+ const Mo = /* @__PURE__ */ new Set([
1717
1717
  "$ref",
1718
1718
  "$recursiveRef",
1719
1719
  "$recursiveAnchor",
@@ -1722,7 +1722,7 @@ const No = /* @__PURE__ */ new Set([
1722
1722
  ]);
1723
1723
  function gr(e) {
1724
1724
  for (const t in e) {
1725
- if (No.has(t))
1725
+ if (Mo.has(t))
1726
1726
  return !0;
1727
1727
  const n = e[t];
1728
1728
  if (Array.isArray(n) && n.some(gr) || typeof n == "object" && gr(n))
@@ -1730,41 +1730,41 @@ function gr(e) {
1730
1730
  }
1731
1731
  return !1;
1732
1732
  }
1733
- function hs(e) {
1733
+ function ys(e) {
1734
1734
  let t = 0;
1735
1735
  for (const n in e) {
1736
1736
  if (n === "$ref")
1737
1737
  return 1 / 0;
1738
- if (t++, !jo.has(n) && (typeof e[n] == "object" && (0, Eo.eachItem)(e[n], (r) => t += hs(r)), t === 1 / 0))
1738
+ if (t++, !No.has(n) && (typeof e[n] == "object" && (0, Oo.eachItem)(e[n], (r) => t += ys(r)), t === 1 / 0))
1739
1739
  return 1 / 0;
1740
1740
  }
1741
1741
  return t;
1742
1742
  }
1743
- function ps(e, t = "", n) {
1743
+ function vs(e, t = "", n) {
1744
1744
  n !== !1 && (t = Ye(t));
1745
1745
  const r = e.parse(t);
1746
- return ys(e, r);
1746
+ return _s(e, r);
1747
1747
  }
1748
- ae.getFullPath = ps;
1749
- function ys(e, t) {
1748
+ ae.getFullPath = vs;
1749
+ function _s(e, t) {
1750
1750
  return e.serialize(t).split("#")[0] + "#";
1751
1751
  }
1752
- ae._getFullPath = ys;
1753
- const Io = /#\/?$/;
1752
+ ae._getFullPath = _s;
1753
+ const To = /#\/?$/;
1754
1754
  function Ye(e) {
1755
- return e ? e.replace(Io, "") : "";
1755
+ return e ? e.replace(To, "") : "";
1756
1756
  }
1757
1757
  ae.normalizeId = Ye;
1758
- function Mo(e, t, n) {
1758
+ function Ro(e, t, n) {
1759
1759
  return n = Ye(n), e.resolve(t, n);
1760
1760
  }
1761
- ae.resolveUrl = Mo;
1762
- const To = /^[a-z_][-a-z0-9._]*$/i;
1763
- function Ro(e, t) {
1761
+ ae.resolveUrl = Ro;
1762
+ const Ao = /^[a-z_][-a-z0-9._]*$/i;
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 = ps(r, s, !1), i = {}, d = /* @__PURE__ */ new Set();
1767
- return Oo(e, { allKeys: !0 }, (f, b, $, _) => {
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();
1767
+ return qo(e, { allKeys: !0 }, (f, b, $, _) => {
1768
1768
  if (_ === void 0)
1769
1769
  return;
1770
1770
  const g = o + b;
@@ -1780,69 +1780,69 @@ function Ro(e, t) {
1780
1780
  }
1781
1781
  function y(k) {
1782
1782
  if (typeof k == "string") {
1783
- if (!To.test(k))
1783
+ if (!Ao.test(k))
1784
1784
  throw new Error(`invalid anchor "${k}"`);
1785
1785
  m.call(this, `#${k}`);
1786
1786
  }
1787
1787
  }
1788
1788
  }), i;
1789
1789
  function c(f, b, $) {
1790
- if (b !== void 0 && !Po(f, b))
1790
+ if (b !== void 0 && !jo(f, b))
1791
1791
  throw u($);
1792
1792
  }
1793
1793
  function u(f) {
1794
1794
  return new Error(`reference "${f}" resolves to more than one schema`);
1795
1795
  }
1796
1796
  }
1797
- ae.getSchemaRefs = Ro;
1797
+ ae.getSchemaRefs = Vo;
1798
1798
  Object.defineProperty(be, "__esModule", { value: !0 });
1799
1799
  be.getData = be.KeywordCxt = be.validateFunctionCode = void 0;
1800
- const vs = Qe, kn = te, Mr = Ne, Vt = te, Ao = Lt, ct = Ee, cr = Ve, R = K, U = qe, Vo = ae, Ie = M, ot = _t;
1801
- function Do(e) {
1802
- if (bs(e) && ($s(e), gs(e))) {
1803
- zo(e);
1800
+ const gs = Qe, Sn = te, Mr = Ne, Vt = te, Do = Lt, ct = Ee, cr = Ve, R = K, U = qe, Co = ae, Ie = M, ot = _t;
1801
+ function Fo(e) {
1802
+ if (ws(e) && (ks(e), $s(e))) {
1803
+ Lo(e);
1804
1804
  return;
1805
1805
  }
1806
- _s(e, () => (0, vs.topBoolOrEmptySchema)(e));
1806
+ bs(e, () => (0, gs.topBoolOrEmptySchema)(e));
1807
1807
  }
1808
- be.validateFunctionCode = Do;
1809
- function _s({ gen: e, validateName: t, schema: n, schemaEnv: r, opts: s }, a) {
1808
+ be.validateFunctionCode = Fo;
1809
+ function bs({ gen: e, validateName: t, schema: n, schemaEnv: r, opts: s }, a) {
1810
1810
  s.code.es5 ? e.func(t, (0, R._)`${U.default.data}, ${U.default.valCxt}`, r.$async, () => {
1811
- e.code((0, R._)`"use strict"; ${Sn(n, s)}`), Fo(e, s), e.code(a);
1812
- }) : e.func(t, (0, R._)`${U.default.data}, ${Co(s)}`, r.$async, () => e.code(Sn(n, s)).code(a));
1811
+ e.code((0, R._)`"use strict"; ${En(n, s)}`), Uo(e, s), e.code(a);
1812
+ }) : e.func(t, (0, R._)`${U.default.data}, ${zo(s)}`, r.$async, () => e.code(En(n, s)).code(a));
1813
1813
  }
1814
- function Co(e) {
1814
+ function zo(e) {
1815
1815
  return (0, R._)`{${U.default.instancePath}="", ${U.default.parentData}, ${U.default.parentDataProperty}, ${U.default.rootData}=${U.default.data}${e.dynamicRef ? (0, R._)`, ${U.default.dynamicAnchors}={}` : R.nil}}={}`;
1816
1816
  }
1817
- function Fo(e, t) {
1817
+ function Uo(e, t) {
1818
1818
  e.if(U.default.valCxt, () => {
1819
1819
  e.var(U.default.instancePath, (0, R._)`${U.default.valCxt}.${U.default.instancePath}`), e.var(U.default.parentData, (0, R._)`${U.default.valCxt}.${U.default.parentData}`), e.var(U.default.parentDataProperty, (0, R._)`${U.default.valCxt}.${U.default.parentDataProperty}`), e.var(U.default.rootData, (0, R._)`${U.default.valCxt}.${U.default.rootData}`), t.dynamicRef && e.var(U.default.dynamicAnchors, (0, R._)`${U.default.valCxt}.${U.default.dynamicAnchors}`);
1820
1820
  }, () => {
1821
1821
  e.var(U.default.instancePath, (0, R._)`""`), e.var(U.default.parentData, (0, R._)`undefined`), e.var(U.default.parentDataProperty, (0, R._)`undefined`), e.var(U.default.rootData, U.default.data), t.dynamicRef && e.var(U.default.dynamicAnchors, (0, R._)`{}`);
1822
1822
  });
1823
1823
  }
1824
- function zo(e) {
1824
+ function Lo(e) {
1825
1825
  const { schema: t, opts: n, gen: r } = e;
1826
- _s(e, () => {
1827
- n.$comment && t.$comment && ks(e), Bo(e), r.let(U.default.vErrors, null), r.let(U.default.errors, 0), n.unevaluated && Uo(e), ws(e), xo(e);
1826
+ bs(e, () => {
1827
+ n.$comment && t.$comment && Es(e), Go(e), r.let(U.default.vErrors, null), r.let(U.default.errors, 0), n.unevaluated && Ho(e), Ss(e), Zo(e);
1828
1828
  });
1829
1829
  }
1830
- function Uo(e) {
1830
+ function Ho(e) {
1831
1831
  const { gen: t, validateName: n } = e;
1832
1832
  e.evaluated = t.const("evaluated", (0, R._)`${n}.evaluated`), t.if((0, R._)`${e.evaluated}.dynamicProps`, () => t.assign((0, R._)`${e.evaluated}.props`, (0, R._)`undefined`)), t.if((0, R._)`${e.evaluated}.dynamicItems`, () => t.assign((0, R._)`${e.evaluated}.items`, (0, R._)`undefined`));
1833
1833
  }
1834
- function Sn(e, t) {
1834
+ function En(e, t) {
1835
1835
  const n = typeof e == "object" && e[t.schemaId];
1836
1836
  return n && (t.code.source || t.code.process) ? (0, R._)`/*# sourceURL=${n} */` : R.nil;
1837
1837
  }
1838
- function Lo(e, t) {
1839
- if (bs(e) && ($s(e), gs(e))) {
1840
- Ho(e, t);
1838
+ function Ko(e, t) {
1839
+ if (ws(e) && (ks(e), $s(e))) {
1840
+ Bo(e, t);
1841
1841
  return;
1842
1842
  }
1843
- (0, vs.boolOrEmptySchema)(e, t);
1843
+ (0, gs.boolOrEmptySchema)(e, t);
1844
1844
  }
1845
- function gs({ schema: e, self: t }) {
1845
+ function $s({ schema: e, self: t }) {
1846
1846
  if (typeof e == "boolean")
1847
1847
  return !e;
1848
1848
  for (const n in e)
@@ -1850,41 +1850,41 @@ function gs({ schema: e, self: t }) {
1850
1850
  return !0;
1851
1851
  return !1;
1852
1852
  }
1853
- function bs(e) {
1853
+ function ws(e) {
1854
1854
  return typeof e.schema != "boolean";
1855
1855
  }
1856
- function Ho(e, t) {
1856
+ function Bo(e, t) {
1857
1857
  const { schema: n, gen: r, opts: s } = e;
1858
- s.$comment && n.$comment && ks(e), Jo(e), Go(e);
1858
+ s.$comment && n.$comment && Es(e), xo(e), Wo(e);
1859
1859
  const a = r.const("_errs", U.default.errors);
1860
- ws(e, a), r.var(t, (0, R._)`${a} === ${U.default.errors}`);
1860
+ Ss(e, a), r.var(t, (0, R._)`${a} === ${U.default.errors}`);
1861
1861
  }
1862
- function $s(e) {
1863
- (0, Ie.checkUnknownRules)(e), Ko(e);
1862
+ function ks(e) {
1863
+ (0, Ie.checkUnknownRules)(e), Jo(e);
1864
1864
  }
1865
- function ws(e, t) {
1865
+ function Ss(e, t) {
1866
1866
  if (e.opts.jtd)
1867
- return En(e, [], !1, t);
1868
- const n = (0, kn.getSchemaTypes)(e.schema), r = (0, kn.coerceAndCheckDataType)(e, n);
1869
- En(e, n, !r, t);
1867
+ return Pn(e, [], !1, t);
1868
+ const n = (0, Sn.getSchemaTypes)(e.schema), r = (0, Sn.coerceAndCheckDataType)(e, n);
1869
+ Pn(e, n, !r, t);
1870
1870
  }
1871
- function Ko(e) {
1871
+ function Jo(e) {
1872
1872
  const { schema: t, errSchemaPath: n, opts: r, self: s } = e;
1873
1873
  t.$ref && r.ignoreKeywordsWithRef && (0, Ie.schemaHasRulesButRef)(t, s.RULES) && s.logger.warn(`$ref: keywords ignored in schema at path "${n}"`);
1874
1874
  }
1875
- function Bo(e) {
1875
+ function Go(e) {
1876
1876
  const { schema: t, opts: n } = e;
1877
1877
  t.default !== void 0 && n.useDefaults && n.strictSchema && (0, Ie.checkStrictMode)(e, "default is ignored in the schema root");
1878
1878
  }
1879
- function Jo(e) {
1879
+ function xo(e) {
1880
1880
  const t = e.schema[e.opts.schemaId];
1881
- t && (e.baseId = (0, Vo.resolveUrl)(e.opts.uriResolver, e.baseId, t));
1881
+ t && (e.baseId = (0, Co.resolveUrl)(e.opts.uriResolver, e.baseId, t));
1882
1882
  }
1883
- function Go(e) {
1883
+ function Wo(e) {
1884
1884
  if (e.schema.$async && !e.schemaEnv.$async)
1885
1885
  throw new Error("async schema in sync schema");
1886
1886
  }
1887
- function ks({ gen: e, schemaEnv: t, schema: n, errSchemaPath: r, opts: s }) {
1887
+ function Es({ gen: e, schemaEnv: t, schema: n, errSchemaPath: r, opts: s }) {
1888
1888
  const a = n.$comment;
1889
1889
  if (s.$comment === !0)
1890
1890
  e.code((0, R._)`${U.default.self}.logger.log(${a})`);
@@ -1893,82 +1893,82 @@ function ks({ gen: e, schemaEnv: t, schema: n, errSchemaPath: r, opts: s }) {
1893
1893
  e.code((0, R._)`${U.default.self}.opts.$comment(${a}, ${o}, ${i}.schema)`);
1894
1894
  }
1895
1895
  }
1896
- function xo(e) {
1896
+ function Zo(e) {
1897
1897
  const { gen: t, schemaEnv: n, validateName: r, ValidationError: s, opts: a } = e;
1898
- n.$async ? t.if((0, R._)`${U.default.errors} === 0`, () => t.return(U.default.data), () => t.throw((0, R._)`new ${s}(${U.default.vErrors})`)) : (t.assign((0, R._)`${r}.errors`, U.default.vErrors), a.unevaluated && Wo(e), t.return((0, R._)`${U.default.errors} === 0`));
1898
+ n.$async ? t.if((0, R._)`${U.default.errors} === 0`, () => t.return(U.default.data), () => t.throw((0, R._)`new ${s}(${U.default.vErrors})`)) : (t.assign((0, R._)`${r}.errors`, U.default.vErrors), a.unevaluated && Yo(e), t.return((0, R._)`${U.default.errors} === 0`));
1899
1899
  }
1900
- function Wo({ gen: e, evaluated: t, props: n, items: r }) {
1900
+ function Yo({ gen: e, evaluated: t, props: n, items: r }) {
1901
1901
  n instanceof R.Name && e.assign((0, R._)`${t}.props`, n), r instanceof R.Name && e.assign((0, R._)`${t}.items`, r);
1902
1902
  }
1903
- function En(e, t, n, r) {
1903
+ function Pn(e, t, n, r) {
1904
1904
  const { gen: s, schema: a, data: o, allErrors: i, opts: d, self: c } = e, { RULES: u } = c;
1905
1905
  if (a.$ref && (d.ignoreKeywordsWithRef || !(0, Ie.schemaHasRulesButRef)(a, u))) {
1906
- s.block(() => Ps(e, "$ref", u.all.$ref.definition));
1906
+ s.block(() => js(e, "$ref", u.all.$ref.definition));
1907
1907
  return;
1908
1908
  }
1909
- d.jtd || Zo(e, t), s.block(() => {
1909
+ d.jtd || Qo(e, t), s.block(() => {
1910
1910
  for (const b of u.rules)
1911
1911
  f(b);
1912
1912
  f(u.post);
1913
1913
  });
1914
1914
  function f(b) {
1915
- (0, Mr.shouldUseGroup)(a, b) && (b.type ? (s.if((0, Vt.checkDataType)(b.type, o, d.strictNumbers)), Pn(e, b), t.length === 1 && t[0] === b.type && n && (s.else(), (0, Vt.reportTypeError)(e)), s.endIf()) : Pn(e, b), i || s.if((0, R._)`${U.default.errors} === ${r || 0}`));
1915
+ (0, Mr.shouldUseGroup)(a, b) && (b.type ? (s.if((0, Vt.checkDataType)(b.type, o, d.strictNumbers)), On(e, b), t.length === 1 && t[0] === b.type && n && (s.else(), (0, Vt.reportTypeError)(e)), s.endIf()) : On(e, b), i || s.if((0, R._)`${U.default.errors} === ${r || 0}`));
1916
1916
  }
1917
1917
  }
1918
- function Pn(e, t) {
1918
+ function On(e, t) {
1919
1919
  const { gen: n, schema: r, opts: { useDefaults: s } } = e;
1920
- s && (0, Ao.assignDefaults)(e, t.type), n.block(() => {
1920
+ s && (0, Do.assignDefaults)(e, t.type), n.block(() => {
1921
1921
  for (const a of t.rules)
1922
- (0, Mr.shouldUseRule)(r, a) && Ps(e, a.keyword, a.definition, t.type);
1922
+ (0, Mr.shouldUseRule)(r, a) && js(e, a.keyword, a.definition, t.type);
1923
1923
  });
1924
1924
  }
1925
- function Zo(e, t) {
1926
- e.schemaEnv.meta || !e.opts.strictTypes || (Yo(e, t), e.opts.allowUnionTypes || Qo(e, t), Xo(e, e.dataTypes));
1925
+ function Qo(e, t) {
1926
+ e.schemaEnv.meta || !e.opts.strictTypes || (Xo(e, t), e.opts.allowUnionTypes || ei(e, t), ti(e, e.dataTypes));
1927
1927
  }
1928
- function Yo(e, t) {
1928
+ function Xo(e, t) {
1929
1929
  if (t.length) {
1930
1930
  if (!e.dataTypes.length) {
1931
1931
  e.dataTypes = t;
1932
1932
  return;
1933
1933
  }
1934
1934
  t.forEach((n) => {
1935
- Ss(e.dataTypes, n) || Tr(e, `type "${n}" not allowed by context "${e.dataTypes.join(",")}"`);
1936
- }), ti(e, t);
1935
+ Ps(e.dataTypes, n) || Tr(e, `type "${n}" not allowed by context "${e.dataTypes.join(",")}"`);
1936
+ }), ni(e, t);
1937
1937
  }
1938
1938
  }
1939
- function Qo(e, t) {
1939
+ function ei(e, t) {
1940
1940
  t.length > 1 && !(t.length === 2 && t.includes("null")) && Tr(e, "use allowUnionTypes to allow union type keyword");
1941
1941
  }
1942
- function Xo(e, t) {
1942
+ function ti(e, t) {
1943
1943
  const n = e.self.RULES.all;
1944
1944
  for (const r in n) {
1945
1945
  const s = n[r];
1946
1946
  if (typeof s == "object" && (0, Mr.shouldUseRule)(e.schema, s)) {
1947
1947
  const { type: a } = s.definition;
1948
- a.length && !a.some((o) => ei(t, o)) && Tr(e, `missing type "${a.join(",")}" for keyword "${r}"`);
1948
+ a.length && !a.some((o) => ri(t, o)) && Tr(e, `missing type "${a.join(",")}" for keyword "${r}"`);
1949
1949
  }
1950
1950
  }
1951
1951
  }
1952
- function ei(e, t) {
1952
+ function ri(e, t) {
1953
1953
  return e.includes(t) || t === "number" && e.includes("integer");
1954
1954
  }
1955
- function Ss(e, t) {
1955
+ function Ps(e, t) {
1956
1956
  return e.includes(t) || t === "integer" && e.includes("number");
1957
1957
  }
1958
- function ti(e, t) {
1958
+ function ni(e, t) {
1959
1959
  const n = [];
1960
1960
  for (const r of e.dataTypes)
1961
- Ss(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
1961
+ Ps(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
1962
1962
  e.dataTypes = n;
1963
1963
  }
1964
1964
  function Tr(e, t) {
1965
1965
  const n = e.schemaEnv.baseId + e.errSchemaPath;
1966
1966
  t += ` at "${n}" (strictTypes)`, (0, Ie.checkStrictMode)(e, t, e.opts.strictTypes);
1967
1967
  }
1968
- class Es {
1968
+ class Os {
1969
1969
  constructor(t, n, r) {
1970
1970
  if ((0, ct.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, Ie.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
- this.schemaCode = t.gen.const("vSchema", Os(this.$data, t));
1971
+ this.schemaCode = t.gen.const("vSchema", qs(this.$data, t));
1972
1972
  else if (this.schemaCode = this.schemaValue, !(0, ct.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", U.default.errors));
@@ -2054,7 +2054,7 @@ class Es {
2054
2054
  const r = (0, cr.getSubschema)(this.it, t);
2055
2055
  (0, cr.extendSubschemaData)(r, this.it, t), (0, cr.extendSubschemaMode)(r, t);
2056
2056
  const s = { ...this.it, ...r, items: void 0, props: void 0 };
2057
- return Lo(s, n), s;
2057
+ return Ko(s, n), s;
2058
2058
  }
2059
2059
  mergeEvaluated(t, n) {
2060
2060
  const { it: r, gen: s } = this;
@@ -2066,22 +2066,22 @@ class Es {
2066
2066
  return s.if(n, () => this.mergeEvaluated(t, R.Name)), !0;
2067
2067
  }
2068
2068
  }
2069
- be.KeywordCxt = Es;
2070
- function Ps(e, t, n, r) {
2071
- const s = new Es(e, n, t);
2069
+ be.KeywordCxt = Os;
2070
+ function js(e, t, n, r) {
2071
+ const s = new Os(e, n, t);
2072
2072
  "code" in n ? n.code(s, r) : s.$data && n.validate ? (0, ct.funcKeywordCode)(s, n) : "macro" in n ? (0, ct.macroKeywordCode)(s, n) : (n.compile || n.validate) && (0, ct.funcKeywordCode)(s, n);
2073
2073
  }
2074
- const ri = /^\/(?:[^~]|~0|~1)*$/, ni = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
2075
- function Os(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
2074
+ const si = /^\/(?:[^~]|~0|~1)*$/, ai = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
2075
+ function qs(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
2076
2076
  let s, a;
2077
2077
  if (e === "")
2078
2078
  return U.default.rootData;
2079
2079
  if (e[0] === "/") {
2080
- if (!ri.test(e))
2080
+ if (!si.test(e))
2081
2081
  throw new Error(`Invalid JSON-pointer: ${e}`);
2082
2082
  s = e, a = U.default.rootData;
2083
2083
  } else {
2084
- const c = ni.exec(e);
2084
+ const c = ai.exec(e);
2085
2085
  if (!c)
2086
2086
  throw new Error(`Invalid JSON-pointer: ${e}`);
2087
2087
  const u = +c[1];
@@ -2104,28 +2104,31 @@ function Os(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
2104
2104
  return `Cannot access ${c} ${u} levels up, current level is ${t}`;
2105
2105
  }
2106
2106
  }
2107
- be.getData = Os;
2108
- var gt = {};
2109
- Object.defineProperty(gt, "__esModule", { value: !0 });
2110
- class si extends Error {
2111
- constructor(t) {
2112
- super("validation failed"), this.errors = t, this.ajv = this.validation = !0;
2107
+ be.getData = qs;
2108
+ var St = {}, jn;
2109
+ function Rr() {
2110
+ if (jn) return St;
2111
+ jn = 1, Object.defineProperty(St, "__esModule", { value: !0 });
2112
+ class e extends Error {
2113
+ constructor(n) {
2114
+ super("validation failed"), this.errors = n, this.ajv = this.validation = !0;
2115
+ }
2113
2116
  }
2117
+ return St.default = e, St;
2114
2118
  }
2115
- gt.default = si;
2116
2119
  var tt = {};
2117
2120
  Object.defineProperty(tt, "__esModule", { value: !0 });
2118
2121
  const ur = ae;
2119
- class ai extends Error {
2122
+ class oi extends Error {
2120
2123
  constructor(t, n, r, s) {
2121
2124
  super(s || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, ur.resolveUrl)(t, n, r), this.missingSchema = (0, ur.normalizeId)((0, ur.getFullPath)(t, this.missingRef));
2122
2125
  }
2123
2126
  }
2124
- tt.default = ai;
2127
+ tt.default = oi;
2125
2128
  var ue = {};
2126
2129
  Object.defineProperty(ue, "__esModule", { value: !0 });
2127
2130
  ue.resolveSchema = ue.getCompilingSchema = ue.resolveRef = ue.compileSchema = ue.SchemaEnv = void 0;
2128
- const ve = K, oi = gt, De = qe, ge = ae, On = M, ii = be;
2131
+ const ve = K, ii = Rr(), De = qe, ge = ae, qn = M, li = be;
2129
2132
  class Ht {
2130
2133
  constructor(t) {
2131
2134
  var n;
@@ -2135,14 +2138,14 @@ class Ht {
2135
2138
  }
2136
2139
  }
2137
2140
  ue.SchemaEnv = Ht;
2138
- function Rr(e) {
2139
- const t = js.call(this, e);
2141
+ function Ar(e) {
2142
+ const t = Ns.call(this, e);
2140
2143
  if (t)
2141
2144
  return t;
2142
2145
  const n = (0, ge.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: r, lines: s } = this.opts.code, { ownProperties: a } = this.opts, o = new ve.CodeGen(this.scope, { es5: r, lines: s, ownProperties: a });
2143
2146
  let i;
2144
2147
  e.$async && (i = o.scopeValue("Error", {
2145
- ref: oi.default,
2148
+ ref: ii.default,
2146
2149
  code: (0, ve._)`require("ajv/dist/runtime/validation_error").default`
2147
2150
  }));
2148
2151
  const d = o.scopeName("validate");
@@ -2174,7 +2177,7 @@ function Rr(e) {
2174
2177
  };
2175
2178
  let u;
2176
2179
  try {
2177
- this._compilations.add(e), (0, ii.validateFunctionCode)(c), o.optimize(this.opts.code.optimize);
2180
+ this._compilations.add(e), (0, li.validateFunctionCode)(c), o.optimize(this.opts.code.optimize);
2178
2181
  const f = o.toString();
2179
2182
  u = `${o.scopeRefs(De.default.scope)}return ${f}`, this.opts.code.process && (u = this.opts.code.process(u, e));
2180
2183
  const $ = new Function(`${De.default.self}`, `${De.default.scope}`, u)(this, this.scope.get());
@@ -2194,35 +2197,35 @@ function Rr(e) {
2194
2197
  this._compilations.delete(e);
2195
2198
  }
2196
2199
  }
2197
- ue.compileSchema = Rr;
2198
- function li(e, t, n) {
2200
+ ue.compileSchema = Ar;
2201
+ function di(e, t, n) {
2199
2202
  var r;
2200
2203
  n = (0, ge.resolveUrl)(this.opts.uriResolver, t, n);
2201
2204
  const s = e.refs[n];
2202
2205
  if (s)
2203
2206
  return s;
2204
- let a = ui.call(this, e, n);
2207
+ let a = fi.call(this, e, n);
2205
2208
  if (a === void 0) {
2206
2209
  const o = (r = e.localRefs) === null || r === void 0 ? void 0 : r[n], { schemaId: i } = this.opts;
2207
2210
  o && (a = new Ht({ schema: o, schemaId: i, root: e, baseId: t }));
2208
2211
  }
2209
2212
  if (a !== void 0)
2210
- return e.refs[n] = di.call(this, a);
2213
+ return e.refs[n] = ci.call(this, a);
2211
2214
  }
2212
- ue.resolveRef = li;
2213
- function di(e) {
2214
- return (0, ge.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : Rr.call(this, e);
2215
+ ue.resolveRef = di;
2216
+ function ci(e) {
2217
+ return (0, ge.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : Ar.call(this, e);
2215
2218
  }
2216
- function js(e) {
2219
+ function Ns(e) {
2217
2220
  for (const t of this._compilations)
2218
- if (ci(t, e))
2221
+ if (ui(t, e))
2219
2222
  return t;
2220
2223
  }
2221
- ue.getCompilingSchema = js;
2222
- function ci(e, t) {
2224
+ ue.getCompilingSchema = Ns;
2225
+ function ui(e, t) {
2223
2226
  return e.schema === t.schema && e.root === t.root && e.baseId === t.baseId;
2224
2227
  }
2225
- function ui(e, t) {
2228
+ function fi(e, t) {
2226
2229
  let n;
2227
2230
  for (; typeof (n = this.refs[t]) == "string"; )
2228
2231
  t = n;
@@ -2239,7 +2242,7 @@ function Kt(e, t) {
2239
2242
  return typeof (i == null ? void 0 : i.schema) != "object" ? void 0 : fr.call(this, n, i);
2240
2243
  }
2241
2244
  if (typeof (o == null ? void 0 : o.schema) == "object") {
2242
- if (o.validate || Rr.call(this, o), a === (0, ge.normalizeId)(t)) {
2245
+ if (o.validate || Ar.call(this, o), a === (0, ge.normalizeId)(t)) {
2243
2246
  const { schema: i } = o, { schemaId: d } = this.opts, c = i[d];
2244
2247
  return c && (s = (0, ge.resolveUrl)(this.opts.uriResolver, s, c)), new Ht({ schema: i, schemaId: d, root: e, baseId: s });
2245
2248
  }
@@ -2247,7 +2250,7 @@ function Kt(e, t) {
2247
2250
  }
2248
2251
  }
2249
2252
  ue.resolveSchema = Kt;
2250
- const fi = /* @__PURE__ */ new Set([
2253
+ const mi = /* @__PURE__ */ new Set([
2251
2254
  "properties",
2252
2255
  "patternProperties",
2253
2256
  "enum",
@@ -2261,15 +2264,15 @@ function fr(e, { baseId: t, schema: n, root: r }) {
2261
2264
  for (const i of e.fragment.slice(1).split("/")) {
2262
2265
  if (typeof n == "boolean")
2263
2266
  return;
2264
- const d = n[(0, On.unescapeFragment)(i)];
2267
+ const d = n[(0, qn.unescapeFragment)(i)];
2265
2268
  if (d === void 0)
2266
2269
  return;
2267
2270
  n = d;
2268
2271
  const c = typeof n == "object" && n[this.opts.schemaId];
2269
- !fi.has(i) && c && (t = (0, ge.resolveUrl)(this.opts.uriResolver, t, c));
2272
+ !mi.has(i) && c && (t = (0, ge.resolveUrl)(this.opts.uriResolver, t, c));
2270
2273
  }
2271
2274
  let a;
2272
- if (typeof n != "boolean" && n.$ref && !(0, On.schemaHasRulesButRef)(n, this.RULES)) {
2275
+ if (typeof n != "boolean" && n.$ref && !(0, qn.schemaHasRulesButRef)(n, this.RULES)) {
2273
2276
  const i = (0, ge.resolveUrl)(this.opts.uriResolver, t, n.$ref);
2274
2277
  a = Kt.call(this, r, i);
2275
2278
  }
@@ -2277,9 +2280,9 @@ function fr(e, { baseId: t, schema: n, root: r }) {
2277
2280
  if (a = a || new Ht({ schema: n, schemaId: o, root: r, baseId: t }), a.schema !== a.root.schema)
2278
2281
  return a;
2279
2282
  }
2280
- const mi = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", hi = "Meta-schema for $data reference (JSON AnySchema extension proposal)", pi = "object", yi = [
2283
+ const hi = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", pi = "Meta-schema for $data reference (JSON AnySchema extension proposal)", yi = "object", vi = [
2281
2284
  "$data"
2282
- ], vi = {
2285
+ ], _i = {
2283
2286
  $data: {
2284
2287
  type: "string",
2285
2288
  anyOf: [
@@ -2291,17 +2294,17 @@ const mi = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/
2291
2294
  }
2292
2295
  ]
2293
2296
  }
2294
- }, _i = !1, gi = {
2295
- $id: mi,
2296
- description: hi,
2297
- type: pi,
2298
- required: yi,
2299
- properties: vi,
2300
- additionalProperties: _i
2297
+ }, gi = !1, bi = {
2298
+ $id: hi,
2299
+ description: pi,
2300
+ type: yi,
2301
+ required: vi,
2302
+ properties: _i,
2303
+ additionalProperties: gi
2301
2304
  };
2302
- var Ar = {}, Bt = { exports: {} };
2303
- const bi = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), qs = 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
- function Ns(e) {
2305
+ var Vr = {}, Bt = { exports: {} };
2306
+ const $i = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), Is = 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);
2307
+ function Ms(e) {
2305
2308
  let t = "", n = 0, r = 0;
2306
2309
  for (r = 0; r < e.length; r++)
2307
2310
  if (n = e[r].charCodeAt(0), n !== 48) {
@@ -2317,13 +2320,13 @@ function Ns(e) {
2317
2320
  }
2318
2321
  return t;
2319
2322
  }
2320
- const $i = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
2321
- function jn(e) {
2323
+ const wi = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
2324
+ function Nn(e) {
2322
2325
  return e.length = 0, !0;
2323
2326
  }
2324
- function wi(e, t, n) {
2327
+ function ki(e, t, n) {
2325
2328
  if (e.length) {
2326
- const r = Ns(e);
2329
+ const r = Ms(e);
2327
2330
  if (r !== "")
2328
2331
  t.push(r);
2329
2332
  else
@@ -2332,10 +2335,10 @@ function wi(e, t, n) {
2332
2335
  }
2333
2336
  return !0;
2334
2337
  }
2335
- function ki(e) {
2338
+ function Si(e) {
2336
2339
  let t = 0;
2337
2340
  const n = { error: !1, address: "", zone: "" }, r = [], s = [];
2338
- let a = !1, o = !1, i = wi;
2341
+ let a = !1, o = !1, i = ki;
2339
2342
  for (let d = 0; d < e.length; d++) {
2340
2343
  const c = e[d];
2341
2344
  if (!(c === "[" || c === "]"))
@@ -2351,18 +2354,18 @@ function ki(e) {
2351
2354
  } else if (c === "%") {
2352
2355
  if (!i(s, r, n))
2353
2356
  break;
2354
- i = jn;
2357
+ i = Nn;
2355
2358
  } else {
2356
2359
  s.push(c);
2357
2360
  continue;
2358
2361
  }
2359
2362
  }
2360
- return s.length && (i === jn ? n.zone = s.join("") : o ? r.push(s.join("")) : r.push(Ns(s))), n.address = r.join(""), n;
2363
+ return s.length && (i === Nn ? n.zone = s.join("") : o ? r.push(s.join("")) : r.push(Ms(s))), n.address = r.join(""), n;
2361
2364
  }
2362
- function Is(e) {
2363
- if (Si(e, ":") < 2)
2365
+ function Ts(e) {
2366
+ if (Ei(e, ":") < 2)
2364
2367
  return { host: e, isIPV6: !1 };
2365
- const t = ki(e);
2368
+ const t = Si(e);
2366
2369
  if (t.error)
2367
2370
  return { host: e, isIPV6: !1 };
2368
2371
  {
@@ -2370,13 +2373,13 @@ function Is(e) {
2370
2373
  return t.zone && (n += "%" + t.zone, r += "%25" + t.zone), { host: n, isIPV6: !0, escapedHost: r };
2371
2374
  }
2372
2375
  }
2373
- function Si(e, t) {
2376
+ function Ei(e, t) {
2374
2377
  let n = 0;
2375
2378
  for (let r = 0; r < e.length; r++)
2376
2379
  e[r] === t && n++;
2377
2380
  return n;
2378
2381
  }
2379
- function Ei(e) {
2382
+ function Pi(e) {
2380
2383
  let t = e;
2381
2384
  const n = [];
2382
2385
  let r = -1, s = 0;
@@ -2434,106 +2437,106 @@ function Ei(e) {
2434
2437
  }
2435
2438
  return n.join("");
2436
2439
  }
2437
- function Pi(e, t) {
2440
+ function Oi(e, t) {
2438
2441
  const n = t !== !0 ? escape : unescape;
2439
2442
  return e.scheme !== void 0 && (e.scheme = n(e.scheme)), e.userinfo !== void 0 && (e.userinfo = n(e.userinfo)), e.host !== void 0 && (e.host = n(e.host)), e.path !== void 0 && (e.path = n(e.path)), e.query !== void 0 && (e.query = n(e.query)), e.fragment !== void 0 && (e.fragment = n(e.fragment)), e;
2440
2443
  }
2441
- function Oi(e) {
2444
+ function ji(e) {
2442
2445
  const t = [];
2443
2446
  if (e.userinfo !== void 0 && (t.push(e.userinfo), t.push("@")), e.host !== void 0) {
2444
2447
  let n = unescape(e.host);
2445
- if (!qs(n)) {
2446
- const r = Is(n);
2448
+ if (!Is(n)) {
2449
+ const r = Ts(n);
2447
2450
  r.isIPV6 === !0 ? n = `[${r.escapedHost}]` : n = e.host;
2448
2451
  }
2449
2452
  t.push(n);
2450
2453
  }
2451
2454
  return (typeof e.port == "number" || typeof e.port == "string") && (t.push(":"), t.push(String(e.port))), t.length ? t.join("") : void 0;
2452
2455
  }
2453
- var Ms = {
2454
- nonSimpleDomain: $i,
2455
- recomposeAuthority: Oi,
2456
- normalizeComponentEncoding: Pi,
2457
- removeDotSegments: Ei,
2458
- isIPv4: qs,
2459
- isUUID: bi,
2460
- normalizeIPv6: Is
2456
+ var Rs = {
2457
+ nonSimpleDomain: wi,
2458
+ recomposeAuthority: ji,
2459
+ normalizeComponentEncoding: Oi,
2460
+ removeDotSegments: Pi,
2461
+ isIPv4: Is,
2462
+ isUUID: $i,
2463
+ normalizeIPv6: Ts
2461
2464
  };
2462
- const { isUUID: ji } = Ms, qi = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
2463
- function Ts(e) {
2465
+ const { isUUID: qi } = Rs, Ni = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
2466
+ function As(e) {
2464
2467
  return e.secure === !0 ? !0 : e.secure === !1 ? !1 : e.scheme ? e.scheme.length === 3 && (e.scheme[0] === "w" || e.scheme[0] === "W") && (e.scheme[1] === "s" || e.scheme[1] === "S") && (e.scheme[2] === "s" || e.scheme[2] === "S") : !1;
2465
2468
  }
2466
- function Rs(e) {
2469
+ function Vs(e) {
2467
2470
  return e.host || (e.error = e.error || "HTTP URIs must have a host."), e;
2468
2471
  }
2469
- function As(e) {
2472
+ function Ds(e) {
2470
2473
  const t = String(e.scheme).toLowerCase() === "https";
2471
2474
  return (e.port === (t ? 443 : 80) || e.port === "") && (e.port = void 0), e.path || (e.path = "/"), e;
2472
2475
  }
2473
- function Ni(e) {
2474
- return e.secure = Ts(e), e.resourceName = (e.path || "/") + (e.query ? "?" + e.query : ""), e.path = void 0, e.query = void 0, e;
2475
- }
2476
2476
  function Ii(e) {
2477
- if ((e.port === (Ts(e) ? 443 : 80) || e.port === "") && (e.port = void 0), typeof e.secure == "boolean" && (e.scheme = e.secure ? "wss" : "ws", e.secure = void 0), e.resourceName) {
2477
+ return e.secure = As(e), e.resourceName = (e.path || "/") + (e.query ? "?" + e.query : ""), e.path = void 0, e.query = void 0, e;
2478
+ }
2479
+ function Mi(e) {
2480
+ if ((e.port === (As(e) ? 443 : 80) || e.port === "") && (e.port = void 0), typeof e.secure == "boolean" && (e.scheme = e.secure ? "wss" : "ws", e.secure = void 0), e.resourceName) {
2478
2481
  const [t, n] = e.resourceName.split("?");
2479
2482
  e.path = t && t !== "/" ? t : void 0, e.query = n, e.resourceName = void 0;
2480
2483
  }
2481
2484
  return e.fragment = void 0, e;
2482
2485
  }
2483
- function Mi(e, t) {
2486
+ function Ti(e, t) {
2484
2487
  if (!e.path)
2485
2488
  return e.error = "URN can not be parsed", e;
2486
- const n = e.path.match(qi);
2489
+ const n = e.path.match(Ni);
2487
2490
  if (n) {
2488
2491
  const r = t.scheme || e.scheme || "urn";
2489
2492
  e.nid = n[1].toLowerCase(), e.nss = n[2];
2490
- const s = `${r}:${t.nid || e.nid}`, a = Vr(s);
2493
+ const s = `${r}:${t.nid || e.nid}`, a = Dr(s);
2491
2494
  e.path = void 0, a && (e = a.parse(e, t));
2492
2495
  } else
2493
2496
  e.error = e.error || "URN can not be parsed.";
2494
2497
  return e;
2495
2498
  }
2496
- function Ti(e, t) {
2499
+ function Ri(e, t) {
2497
2500
  if (e.nid === void 0)
2498
2501
  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 = Vr(s);
2502
+ const n = t.scheme || e.scheme || "urn", r = e.nid.toLowerCase(), s = `${n}:${t.nid || r}`, a = Dr(s);
2500
2503
  a && (e = a.serialize(e, t));
2501
2504
  const o = e, i = e.nss;
2502
2505
  return o.path = `${r || t.nid}:${i}`, t.skipEscape = !0, o;
2503
2506
  }
2504
- function Ri(e, t) {
2507
+ function Ai(e, t) {
2505
2508
  const n = e;
2506
- return n.uuid = n.nss, n.nss = void 0, !t.tolerant && (!n.uuid || !ji(n.uuid)) && (n.error = n.error || "UUID is not valid."), n;
2509
+ return n.uuid = n.nss, n.nss = void 0, !t.tolerant && (!n.uuid || !qi(n.uuid)) && (n.error = n.error || "UUID is not valid."), n;
2507
2510
  }
2508
- function Ai(e) {
2511
+ function Vi(e) {
2509
2512
  const t = e;
2510
2513
  return t.nss = (e.uuid || "").toLowerCase(), t;
2511
2514
  }
2512
- const Vs = (
2515
+ const Cs = (
2513
2516
  /** @type {SchemeHandler} */
2514
2517
  {
2515
2518
  scheme: "http",
2516
2519
  domainHost: !0,
2517
- parse: Rs,
2518
- serialize: As
2520
+ parse: Vs,
2521
+ serialize: Ds
2519
2522
  }
2520
- ), Vi = (
2523
+ ), Di = (
2521
2524
  /** @type {SchemeHandler} */
2522
2525
  {
2523
2526
  scheme: "https",
2524
- domainHost: Vs.domainHost,
2525
- parse: Rs,
2526
- serialize: As
2527
+ domainHost: Cs.domainHost,
2528
+ parse: Vs,
2529
+ serialize: Ds
2527
2530
  }
2528
2531
  ), Mt = (
2529
2532
  /** @type {SchemeHandler} */
2530
2533
  {
2531
2534
  scheme: "ws",
2532
2535
  domainHost: !0,
2533
- parse: Ni,
2534
- serialize: Ii
2536
+ parse: Ii,
2537
+ serialize: Mi
2535
2538
  }
2536
- ), Di = (
2539
+ ), Ci = (
2537
2540
  /** @type {SchemeHandler} */
2538
2541
  {
2539
2542
  scheme: "wss",
@@ -2541,35 +2544,35 @@ const Vs = (
2541
2544
  parse: Mt.parse,
2542
2545
  serialize: Mt.serialize
2543
2546
  }
2544
- ), Ci = (
2547
+ ), Fi = (
2545
2548
  /** @type {SchemeHandler} */
2546
2549
  {
2547
2550
  scheme: "urn",
2548
- parse: Mi,
2549
- serialize: Ti,
2551
+ parse: Ti,
2552
+ serialize: Ri,
2550
2553
  skipNormalize: !0
2551
2554
  }
2552
- ), Fi = (
2555
+ ), zi = (
2553
2556
  /** @type {SchemeHandler} */
2554
2557
  {
2555
2558
  scheme: "urn:uuid",
2556
- parse: Ri,
2557
- serialize: Ai,
2559
+ parse: Ai,
2560
+ serialize: Vi,
2558
2561
  skipNormalize: !0
2559
2562
  }
2560
2563
  ), Dt = (
2561
2564
  /** @type {Record<SchemeName, SchemeHandler>} */
2562
2565
  {
2563
- http: Vs,
2564
- https: Vi,
2566
+ http: Cs,
2567
+ https: Di,
2565
2568
  ws: Mt,
2566
- wss: Di,
2567
- urn: Ci,
2568
- "urn:uuid": Fi
2569
+ wss: Ci,
2570
+ urn: Fi,
2571
+ "urn:uuid": zi
2569
2572
  }
2570
2573
  );
2571
2574
  Object.setPrototypeOf(Dt, null);
2572
- function Vr(e) {
2575
+ function Dr(e) {
2573
2576
  return e && (Dt[
2574
2577
  /** @type {SchemeName} */
2575
2578
  e
@@ -2578,25 +2581,25 @@ function Vr(e) {
2578
2581
  e.toLowerCase()
2579
2582
  ]) || void 0;
2580
2583
  }
2581
- var zi = {
2584
+ var Ui = {
2582
2585
  SCHEMES: Dt,
2583
- getSchemeHandler: Vr
2586
+ getSchemeHandler: Dr
2584
2587
  };
2585
- const { normalizeIPv6: Ui, removeDotSegments: lt, recomposeAuthority: Li, normalizeComponentEncoding: Et, isIPv4: Hi, nonSimpleDomain: Ki } = Ms, { SCHEMES: Bi, getSchemeHandler: Ds } = zi;
2586
- function Ji(e, t) {
2588
+ const { normalizeIPv6: Li, removeDotSegments: lt, recomposeAuthority: Hi, normalizeComponentEncoding: Et, isIPv4: Ki, nonSimpleDomain: Bi } = Rs, { SCHEMES: Ji, getSchemeHandler: Fs } = Ui;
2589
+ function Gi(e, t) {
2587
2590
  return typeof e == "string" ? e = /** @type {T} */
2588
2591
  Pe(Me(e, t), t) : typeof e == "object" && (e = /** @type {T} */
2589
2592
  Me(Pe(e, t), t)), e;
2590
2593
  }
2591
- function Gi(e, t, n) {
2592
- const r = n ? Object.assign({ scheme: "null" }, n) : { scheme: "null" }, s = Cs(Me(e, r), Me(t, r), r, !0);
2594
+ function xi(e, t, n) {
2595
+ const r = n ? Object.assign({ scheme: "null" }, n) : { scheme: "null" }, s = zs(Me(e, r), Me(t, r), r, !0);
2593
2596
  return r.skipEscape = !0, Pe(s, r);
2594
2597
  }
2595
- function Cs(e, t, n, r) {
2598
+ function zs(e, t, n, r) {
2596
2599
  const s = {};
2597
2600
  return r || (e = Me(Pe(e, n), n), t = Me(Pe(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 = lt(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 = lt(t.path || ""), s.query = t.query) : (t.path ? (t.path[0] === "/" ? s.path = lt(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 = lt(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
2601
  }
2599
- function xi(e, t, n) {
2602
+ function Wi(e, t, n) {
2600
2603
  return typeof e == "string" ? (e = unescape(e), e = Pe(Et(Me(e, n), !0), { ...n, skipEscape: !0 })) : typeof e == "object" && (e = Pe(Et(e, !0), { ...n, skipEscape: !0 })), typeof t == "string" ? (t = unescape(t), t = Pe(Et(Me(t, n), !0), { ...n, skipEscape: !0 })) : typeof t == "object" && (t = Pe(Et(t, !0), { ...n, skipEscape: !0 })), e.toLowerCase() === t.toLowerCase();
2601
2604
  }
2602
2605
  function Pe(e, t) {
@@ -2615,16 +2618,16 @@ function Pe(e, t) {
2615
2618
  resourceName: e.resourceName,
2616
2619
  secure: e.secure,
2617
2620
  error: ""
2618
- }, r = Object.assign({}, t), s = [], a = Ds(r.scheme || n.scheme);
2621
+ }, r = Object.assign({}, t), s = [], a = Fs(r.scheme || n.scheme);
2619
2622
  a && a.serialize && a.serialize(n, r), n.path !== void 0 && (r.skipEscape ? n.path = unescape(n.path) : (n.path = escape(n.path), n.scheme !== void 0 && (n.path = n.path.split("%3A").join(":")))), r.reference !== "suffix" && n.scheme && s.push(n.scheme, ":");
2620
- const o = Li(n);
2623
+ const o = Hi(n);
2621
2624
  if (o !== void 0 && (r.reference !== "suffix" && s.push("//"), s.push(o), n.path && n.path[0] !== "/" && s.push("/")), n.path !== void 0) {
2622
2625
  let i = n.path;
2623
2626
  !r.absolutePath && (!a || !a.absolutePath) && (i = lt(i)), o === void 0 && i[0] === "/" && i[1] === "/" && (i = "/%2F" + i.slice(2)), s.push(i);
2624
2627
  }
2625
2628
  return n.query !== void 0 && s.push("?", n.query), n.fragment !== void 0 && s.push("#", n.fragment), s.join("");
2626
2629
  }
2627
- const Wi = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
2630
+ const Zi = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
2628
2631
  function Me(e, t) {
2629
2632
  const n = Object.assign({}, t), r = {
2630
2633
  scheme: void 0,
@@ -2637,17 +2640,17 @@ function Me(e, t) {
2637
2640
  };
2638
2641
  let s = !1;
2639
2642
  n.reference === "suffix" && (n.scheme ? e = n.scheme + ":" + e : e = "//" + e);
2640
- const a = e.match(Wi);
2643
+ const a = e.match(Zi);
2641
2644
  if (a) {
2642
2645
  if (r.scheme = a[1], r.userinfo = a[3], r.host = a[4], r.port = parseInt(a[5], 10), r.path = a[6] || "", r.query = a[7], r.fragment = a[8], isNaN(r.port) && (r.port = a[5]), r.host)
2643
- if (Hi(r.host) === !1) {
2644
- const d = Ui(r.host);
2646
+ if (Ki(r.host) === !1) {
2647
+ const d = Li(r.host);
2645
2648
  r.host = d.host.toLowerCase(), s = d.isIPV6;
2646
2649
  } else
2647
2650
  s = !0;
2648
2651
  r.scheme === void 0 && r.userinfo === void 0 && r.host === void 0 && r.port === void 0 && r.query === void 0 && !r.path ? r.reference = "same-document" : r.scheme === void 0 ? r.reference = "relative" : r.fragment === void 0 ? r.reference = "absolute" : r.reference = "uri", n.reference && n.reference !== "suffix" && n.reference !== r.reference && (r.error = r.error || "URI is not a " + n.reference + " reference.");
2649
- const o = Ds(n.scheme || r.scheme);
2650
- if (!n.unicodeSupport && (!o || !o.unicodeSupport) && r.host && (n.domainHost || o && o.domainHost) && s === !1 && Ki(r.host))
2652
+ const o = Fs(n.scheme || r.scheme);
2653
+ if (!n.unicodeSupport && (!o || !o.unicodeSupport) && r.host && (n.domainHost || o && o.domainHost) && s === !1 && Bi(r.host))
2651
2654
  try {
2652
2655
  r.host = URL.domainToASCII(r.host.toLowerCase());
2653
2656
  } catch (i) {
@@ -2658,23 +2661,23 @@ function Me(e, t) {
2658
2661
  r.error = r.error || "URI can not be parsed.";
2659
2662
  return r;
2660
2663
  }
2661
- const Dr = {
2662
- SCHEMES: Bi,
2663
- normalize: Ji,
2664
- resolve: Gi,
2665
- resolveComponent: Cs,
2666
- equal: xi,
2664
+ const Cr = {
2665
+ SCHEMES: Ji,
2666
+ normalize: Gi,
2667
+ resolve: xi,
2668
+ resolveComponent: zs,
2669
+ equal: Wi,
2667
2670
  serialize: Pe,
2668
2671
  parse: Me
2669
2672
  };
2670
- Bt.exports = Dr;
2671
- Bt.exports.default = Dr;
2672
- Bt.exports.fastUri = Dr;
2673
- var Zi = Bt.exports;
2674
- Object.defineProperty(Ar, "__esModule", { value: !0 });
2675
- const Fs = Zi;
2676
- Fs.code = 'require("ajv/dist/runtime/uri").default';
2677
- Ar.default = Fs;
2673
+ Bt.exports = Cr;
2674
+ Bt.exports.default = Cr;
2675
+ Bt.exports.fastUri = Cr;
2676
+ var Yi = Bt.exports;
2677
+ Object.defineProperty(Vr, "__esModule", { value: !0 });
2678
+ const Us = Yi;
2679
+ Us.code = 'require("ajv/dist/runtime/uri").default';
2680
+ Vr.default = Us;
2678
2681
  (function(e) {
2679
2682
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
2680
2683
  var t = be;
@@ -2695,7 +2698,7 @@ Ar.default = Fs;
2695
2698
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
2696
2699
  return n.CodeGen;
2697
2700
  } });
2698
- const r = gt, s = tt, a = Ke, o = ue, i = K, d = ae, c = te, u = M, f = gi, b = Ar, $ = (N, v) => new RegExp(N, v);
2701
+ const r = Rr(), s = tt, a = Ke, o = ue, i = K, d = ae, c = te, u = M, f = bi, b = Vr, $ = (N, v) => new RegExp(N, v);
2699
2702
  $.code = "new RegExp";
2700
2703
  const _ = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
2701
2704
  "validate",
@@ -2734,14 +2737,14 @@ Ar.default = Fs;
2734
2737
  }, y = 200;
2735
2738
  function k(N) {
2736
2739
  var v, P, w, l, h, E, A, D, Z, W, re, Je, Zt, Yt, Qt, Xt, er, tr, rr, nr, sr, ar, or, ir, lr;
2737
- const at = N.strict, dr = (v = N.code) === null || v === void 0 ? void 0 : v.optimize, yn = dr === !0 || dr === void 0 ? 1 : dr || 0, vn = (w = (P = N.code) === null || P === void 0 ? void 0 : P.regExp) !== null && w !== void 0 ? w : $, Qs = (l = N.uriResolver) !== null && l !== void 0 ? l : b.default;
2740
+ const at = N.strict, dr = (v = N.code) === null || v === void 0 ? void 0 : v.optimize, vn = dr === !0 || dr === void 0 ? 1 : dr || 0, _n = (w = (P = N.code) === null || P === void 0 ? void 0 : P.regExp) !== null && w !== void 0 ? w : $, ea = (l = N.uriResolver) !== null && l !== void 0 ? l : b.default;
2738
2741
  return {
2739
2742
  strictSchema: (E = (h = N.strictSchema) !== null && h !== void 0 ? h : at) !== null && E !== void 0 ? E : !0,
2740
2743
  strictNumbers: (D = (A = N.strictNumbers) !== null && A !== void 0 ? A : at) !== null && D !== void 0 ? D : !0,
2741
2744
  strictTypes: (W = (Z = N.strictTypes) !== null && Z !== void 0 ? Z : at) !== null && W !== void 0 ? W : "log",
2742
2745
  strictTuples: (Je = (re = N.strictTuples) !== null && re !== void 0 ? re : at) !== null && Je !== void 0 ? Je : "log",
2743
2746
  strictRequired: (Yt = (Zt = N.strictRequired) !== null && Zt !== void 0 ? Zt : at) !== null && Yt !== void 0 ? Yt : !1,
2744
- code: N.code ? { ...N.code, optimize: yn, regExp: vn } : { optimize: yn, regExp: vn },
2747
+ code: N.code ? { ...N.code, optimize: vn, regExp: _n } : { optimize: vn, regExp: _n },
2745
2748
  loopRequired: (Qt = N.loopRequired) !== null && Qt !== void 0 ? Qt : y,
2746
2749
  loopEnum: (Xt = N.loopEnum) !== null && Xt !== void 0 ? Xt : y,
2747
2750
  meta: (er = N.meta) !== null && er !== void 0 ? er : !0,
@@ -2753,7 +2756,7 @@ Ar.default = Fs;
2753
2756
  validateFormats: (or = N.validateFormats) !== null && or !== void 0 ? or : !0,
2754
2757
  unicodeRegExp: (ir = N.unicodeRegExp) !== null && ir !== void 0 ? ir : !0,
2755
2758
  int32range: (lr = N.int32range) !== null && lr !== void 0 ? lr : !0,
2756
- uriResolver: Qs
2759
+ uriResolver: ea
2757
2760
  };
2758
2761
  }
2759
2762
  class S {
@@ -2967,7 +2970,7 @@ Ar.default = Fs;
2967
2970
  if (typeof D != "object")
2968
2971
  continue;
2969
2972
  const { $data: Z } = D.definition, W = E[A];
2970
- Z && W && (E[A] = St(W));
2973
+ Z && W && (E[A] = kt(W));
2971
2974
  }
2972
2975
  }
2973
2976
  return v;
@@ -3098,46 +3101,46 @@ Ar.default = Fs;
3098
3101
  schemaType: (0, c.getJSONTypes)(v.schemaType)
3099
3102
  }
3100
3103
  };
3101
- v.before ? kt.call(this, E, A, v.before) : E.rules.push(A), h.all[N] = A, (w = v.implements) === null || w === void 0 || w.forEach((D) => this.addKeyword(D));
3104
+ v.before ? wt.call(this, E, A, v.before) : E.rules.push(A), h.all[N] = A, (w = v.implements) === null || w === void 0 || w.forEach((D) => this.addKeyword(D));
3102
3105
  }
3103
- function kt(N, v, P) {
3106
+ function wt(N, v, P) {
3104
3107
  const w = N.rules.findIndex((l) => l.keyword === P);
3105
3108
  w >= 0 ? N.rules.splice(w, 0, v) : (N.rules.push(v), this.logger.warn(`rule ${P} is not defined`));
3106
3109
  }
3107
3110
  function xt(N) {
3108
3111
  let { metaSchema: v } = N;
3109
- v !== void 0 && (N.$data && this.opts.$data && (v = St(v)), N.validateSchema = this.compile(v, !0));
3112
+ v !== void 0 && (N.$data && this.opts.$data && (v = kt(v)), N.validateSchema = this.compile(v, !0));
3110
3113
  }
3111
3114
  const Wt = {
3112
3115
  $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"
3113
3116
  };
3114
- function St(N) {
3117
+ function kt(N) {
3115
3118
  return { anyOf: [N, Wt] };
3116
3119
  }
3117
- })(Zn);
3118
- var Cr = {}, Fr = {}, zr = {};
3119
- Object.defineProperty(zr, "__esModule", { value: !0 });
3120
- const Yi = {
3120
+ })(Qn);
3121
+ var Fr = {}, zr = {}, Ur = {};
3122
+ Object.defineProperty(Ur, "__esModule", { value: !0 });
3123
+ const Qi = {
3121
3124
  keyword: "id",
3122
3125
  code() {
3123
3126
  throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
3124
3127
  }
3125
3128
  };
3126
- zr.default = Yi;
3129
+ Ur.default = Qi;
3127
3130
  var Be = {};
3128
3131
  Object.defineProperty(Be, "__esModule", { value: !0 });
3129
3132
  Be.callRef = Be.getValidate = void 0;
3130
- const Qi = tt, qn = J, ce = K, xe = qe, Nn = ue, Pt = M, Xi = {
3133
+ const Xi = tt, In = J, ce = K, xe = qe, Mn = ue, Pt = M, el = {
3131
3134
  keyword: "$ref",
3132
3135
  schemaType: "string",
3133
3136
  code(e) {
3134
3137
  const { gen: t, schema: n, it: r } = e, { baseId: s, schemaEnv: a, validateName: o, opts: i, self: d } = r, { root: c } = a;
3135
3138
  if ((n === "#" || n === "#/") && s === c.baseId)
3136
3139
  return f();
3137
- const u = Nn.resolveRef.call(d, c, s, n);
3140
+ const u = Mn.resolveRef.call(d, c, s, n);
3138
3141
  if (u === void 0)
3139
- throw new Qi.default(r.opts.uriResolver, s, n);
3140
- if (u instanceof Nn.SchemaEnv)
3142
+ throw new Xi.default(r.opts.uriResolver, s, n);
3143
+ if (u instanceof Mn.SchemaEnv)
3141
3144
  return b(u);
3142
3145
  return $(u);
3143
3146
  function f() {
@@ -3147,7 +3150,7 @@ const Qi = tt, qn = J, ce = K, xe = qe, Nn = ue, Pt = M, Xi = {
3147
3150
  return Tt(e, (0, ce._)`${_}.validate`, c, c.$async);
3148
3151
  }
3149
3152
  function b(_) {
3150
- const g = zs(e, _);
3153
+ const g = Ls(e, _);
3151
3154
  Tt(e, g, _, _.$async);
3152
3155
  }
3153
3156
  function $(_) {
@@ -3162,11 +3165,11 @@ const Qi = tt, qn = J, ce = K, xe = qe, Nn = ue, Pt = M, Xi = {
3162
3165
  }
3163
3166
  }
3164
3167
  };
3165
- function zs(e, t) {
3168
+ function Ls(e, t) {
3166
3169
  const { gen: n } = e;
3167
3170
  return t.validate ? n.scopeValue("validate", { ref: t.validate }) : (0, ce._)`${n.scopeValue("wrapper", { ref: t })}.validate`;
3168
3171
  }
3169
- Be.getValidate = zs;
3172
+ Be.getValidate = Ls;
3170
3173
  function Tt(e, t, n, r) {
3171
3174
  const { gen: s, it: a } = e, { allErrors: o, schemaEnv: i, opts: d } = a, c = d.passContext ? xe.default.this : ce.nil;
3172
3175
  r ? u() : f();
@@ -3175,13 +3178,13 @@ function Tt(e, t, n, r) {
3175
3178
  throw new Error("async schema referenced by sync schema");
3176
3179
  const _ = s.let("valid");
3177
3180
  s.try(() => {
3178
- s.code((0, ce._)`await ${(0, qn.callValidateCode)(e, t, c)}`), $(t), o || s.assign(_, !0);
3181
+ s.code((0, ce._)`await ${(0, In.callValidateCode)(e, t, c)}`), $(t), o || s.assign(_, !0);
3179
3182
  }, (g) => {
3180
3183
  s.if((0, ce._)`!(${g} instanceof ${a.ValidationError})`, () => s.throw(g)), b(g), o || s.assign(_, !1);
3181
3184
  }), e.ok(_);
3182
3185
  }
3183
3186
  function f() {
3184
- e.result((0, qn.callValidateCode)(e, t, c), () => $(t), () => b(t));
3187
+ e.result((0, In.callValidateCode)(e, t, c), () => $(t), () => b(t));
3185
3188
  }
3186
3189
  function b(_) {
3187
3190
  const g = (0, ce._)`${_}.errors`;
@@ -3209,136 +3212,136 @@ function Tt(e, t, n, r) {
3209
3212
  }
3210
3213
  }
3211
3214
  Be.callRef = Tt;
3212
- Be.default = Xi;
3213
- Object.defineProperty(Fr, "__esModule", { value: !0 });
3214
- const el = zr, tl = Be, rl = [
3215
+ Be.default = el;
3216
+ Object.defineProperty(zr, "__esModule", { value: !0 });
3217
+ const tl = Ur, rl = Be, nl = [
3215
3218
  "$schema",
3216
3219
  "$id",
3217
3220
  "$defs",
3218
3221
  "$vocabulary",
3219
3222
  { keyword: "$comment" },
3220
3223
  "definitions",
3221
- el.default,
3222
- tl.default
3224
+ tl.default,
3225
+ rl.default
3223
3226
  ];
3224
- Fr.default = rl;
3225
- var Ur = {}, Lr = {};
3226
- Object.defineProperty(Lr, "__esModule", { value: !0 });
3227
+ zr.default = nl;
3228
+ var Lr = {}, Hr = {};
3229
+ Object.defineProperty(Hr, "__esModule", { value: !0 });
3227
3230
  const Ct = K, Re = Ct.operators, Ft = {
3228
3231
  maximum: { okStr: "<=", ok: Re.LTE, fail: Re.GT },
3229
3232
  minimum: { okStr: ">=", ok: Re.GTE, fail: Re.LT },
3230
3233
  exclusiveMaximum: { okStr: "<", ok: Re.LT, fail: Re.GTE },
3231
3234
  exclusiveMinimum: { okStr: ">", ok: Re.GT, fail: Re.LTE }
3232
- }, nl = {
3235
+ }, sl = {
3233
3236
  message: ({ keyword: e, schemaCode: t }) => (0, Ct.str)`must be ${Ft[e].okStr} ${t}`,
3234
3237
  params: ({ keyword: e, schemaCode: t }) => (0, Ct._)`{comparison: ${Ft[e].okStr}, limit: ${t}}`
3235
- }, sl = {
3238
+ }, al = {
3236
3239
  keyword: Object.keys(Ft),
3237
3240
  type: "number",
3238
3241
  schemaType: "number",
3239
3242
  $data: !0,
3240
- error: nl,
3243
+ error: sl,
3241
3244
  code(e) {
3242
3245
  const { keyword: t, data: n, schemaCode: r } = e;
3243
3246
  e.fail$data((0, Ct._)`${n} ${Ft[t].fail} ${r} || isNaN(${n})`);
3244
3247
  }
3245
3248
  };
3246
- Lr.default = sl;
3247
- var Hr = {};
3248
- Object.defineProperty(Hr, "__esModule", { value: !0 });
3249
- const ut = K, al = {
3249
+ Hr.default = al;
3250
+ var Kr = {};
3251
+ Object.defineProperty(Kr, "__esModule", { value: !0 });
3252
+ const ut = K, ol = {
3250
3253
  message: ({ schemaCode: e }) => (0, ut.str)`must be multiple of ${e}`,
3251
3254
  params: ({ schemaCode: e }) => (0, ut._)`{multipleOf: ${e}}`
3252
- }, ol = {
3255
+ }, il = {
3253
3256
  keyword: "multipleOf",
3254
3257
  type: "number",
3255
3258
  schemaType: "number",
3256
3259
  $data: !0,
3257
- error: al,
3260
+ error: ol,
3258
3261
  code(e) {
3259
3262
  const { gen: t, data: n, schemaCode: r, it: s } = e, a = s.opts.multipleOfPrecision, o = t.let("res"), i = a ? (0, ut._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${a}` : (0, ut._)`${o} !== parseInt(${o})`;
3260
3263
  e.fail$data((0, ut._)`(${r} === 0 || (${o} = ${n}/${r}, ${i}))`);
3261
3264
  }
3262
3265
  };
3263
- Hr.default = ol;
3264
- var Kr = {}, Br = {};
3265
- Object.defineProperty(Br, "__esModule", { value: !0 });
3266
- function Us(e) {
3266
+ Kr.default = il;
3267
+ var Br = {}, Jr = {};
3268
+ Object.defineProperty(Jr, "__esModule", { value: !0 });
3269
+ function Hs(e) {
3267
3270
  const t = e.length;
3268
3271
  let n = 0, r = 0, s;
3269
3272
  for (; r < t; )
3270
3273
  n++, s = e.charCodeAt(r++), s >= 55296 && s <= 56319 && r < t && (s = e.charCodeAt(r), (s & 64512) === 56320 && r++);
3271
3274
  return n;
3272
3275
  }
3273
- Br.default = Us;
3274
- Us.code = 'require("ajv/dist/runtime/ucs2length").default';
3275
- Object.defineProperty(Kr, "__esModule", { value: !0 });
3276
- const ze = K, il = M, ll = Br, dl = {
3276
+ Jr.default = Hs;
3277
+ Hs.code = 'require("ajv/dist/runtime/ucs2length").default';
3278
+ Object.defineProperty(Br, "__esModule", { value: !0 });
3279
+ const ze = K, ll = M, dl = Jr, cl = {
3277
3280
  message({ keyword: e, schemaCode: t }) {
3278
3281
  const n = e === "maxLength" ? "more" : "fewer";
3279
3282
  return (0, ze.str)`must NOT have ${n} than ${t} characters`;
3280
3283
  },
3281
3284
  params: ({ schemaCode: e }) => (0, ze._)`{limit: ${e}}`
3282
- }, cl = {
3285
+ }, ul = {
3283
3286
  keyword: ["maxLength", "minLength"],
3284
3287
  type: "string",
3285
3288
  schemaType: "number",
3286
3289
  $data: !0,
3287
- error: dl,
3290
+ error: cl,
3288
3291
  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, il.useFunc)(e.gen, ll.default)}(${n})`;
3292
+ 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, ll.useFunc)(e.gen, dl.default)}(${n})`;
3290
3293
  e.fail$data((0, ze._)`${o} ${a} ${r}`);
3291
3294
  }
3292
3295
  };
3293
- Kr.default = cl;
3294
- var Jr = {};
3295
- Object.defineProperty(Jr, "__esModule", { value: !0 });
3296
- const ul = J, zt = K, fl = {
3296
+ Br.default = ul;
3297
+ var Gr = {};
3298
+ Object.defineProperty(Gr, "__esModule", { value: !0 });
3299
+ const fl = J, zt = K, ml = {
3297
3300
  message: ({ schemaCode: e }) => (0, zt.str)`must match pattern "${e}"`,
3298
3301
  params: ({ schemaCode: e }) => (0, zt._)`{pattern: ${e}}`
3299
- }, ml = {
3302
+ }, hl = {
3300
3303
  keyword: "pattern",
3301
3304
  type: "string",
3302
3305
  schemaType: "string",
3303
3306
  $data: !0,
3304
- error: fl,
3307
+ error: ml,
3305
3308
  code(e) {
3306
- const { data: t, $data: n, schema: r, schemaCode: s, it: a } = e, o = a.opts.unicodeRegExp ? "u" : "", i = n ? (0, zt._)`(new RegExp(${s}, ${o}))` : (0, ul.usePattern)(e, r);
3309
+ const { data: t, $data: n, schema: r, schemaCode: s, it: a } = e, o = a.opts.unicodeRegExp ? "u" : "", i = n ? (0, zt._)`(new RegExp(${s}, ${o}))` : (0, fl.usePattern)(e, r);
3307
3310
  e.fail$data((0, zt._)`!${i}.test(${t})`);
3308
3311
  }
3309
3312
  };
3310
- Jr.default = ml;
3311
- var Gr = {};
3312
- Object.defineProperty(Gr, "__esModule", { value: !0 });
3313
- const ft = K, hl = {
3313
+ Gr.default = hl;
3314
+ var xr = {};
3315
+ Object.defineProperty(xr, "__esModule", { value: !0 });
3316
+ const ft = K, pl = {
3314
3317
  message({ keyword: e, schemaCode: t }) {
3315
3318
  const n = e === "maxProperties" ? "more" : "fewer";
3316
3319
  return (0, ft.str)`must NOT have ${n} than ${t} properties`;
3317
3320
  },
3318
3321
  params: ({ schemaCode: e }) => (0, ft._)`{limit: ${e}}`
3319
- }, pl = {
3322
+ }, yl = {
3320
3323
  keyword: ["maxProperties", "minProperties"],
3321
3324
  type: "object",
3322
3325
  schemaType: "number",
3323
3326
  $data: !0,
3324
- error: hl,
3327
+ error: pl,
3325
3328
  code(e) {
3326
3329
  const { keyword: t, data: n, schemaCode: r } = e, s = t === "maxProperties" ? ft.operators.GT : ft.operators.LT;
3327
3330
  e.fail$data((0, ft._)`Object.keys(${n}).length ${s} ${r}`);
3328
3331
  }
3329
3332
  };
3330
- Gr.default = pl;
3331
- var xr = {};
3332
- Object.defineProperty(xr, "__esModule", { value: !0 });
3333
- const it = J, mt = K, yl = M, vl = {
3333
+ xr.default = yl;
3334
+ var Wr = {};
3335
+ Object.defineProperty(Wr, "__esModule", { value: !0 });
3336
+ const it = J, mt = K, vl = M, _l = {
3334
3337
  message: ({ params: { missingProperty: e } }) => (0, mt.str)`must have required property '${e}'`,
3335
3338
  params: ({ params: { missingProperty: e } }) => (0, mt._)`{missingProperty: ${e}}`
3336
- }, _l = {
3339
+ }, gl = {
3337
3340
  keyword: "required",
3338
3341
  type: "object",
3339
3342
  schemaType: "array",
3340
3343
  $data: !0,
3341
- error: vl,
3344
+ error: _l,
3342
3345
  code(e) {
3343
3346
  const { gen: t, schema: n, schemaCode: r, data: s, $data: a, it: o } = e, { opts: i } = o;
3344
3347
  if (!a && n.length === 0)
@@ -3349,7 +3352,7 @@ const it = J, mt = K, yl = M, vl = {
3349
3352
  for (const g of n)
3350
3353
  if (($ == null ? void 0 : $[g]) === void 0 && !_.has(g)) {
3351
3354
  const p = o.schemaEnv.baseId + o.errSchemaPath, m = `required property "${g}" is not defined at "${p}" (strictRequired)`;
3352
- (0, yl.checkStrictMode)(o, m, o.opts.strictRequired);
3355
+ (0, vl.checkStrictMode)(o, m, o.opts.strictRequired);
3353
3356
  }
3354
3357
  }
3355
3358
  function c() {
@@ -3381,42 +3384,42 @@ const it = J, mt = K, yl = M, vl = {
3381
3384
  }
3382
3385
  }
3383
3386
  };
3384
- xr.default = _l;
3385
- var Wr = {};
3386
- Object.defineProperty(Wr, "__esModule", { value: !0 });
3387
- const ht = K, gl = {
3387
+ Wr.default = gl;
3388
+ var Zr = {};
3389
+ Object.defineProperty(Zr, "__esModule", { value: !0 });
3390
+ const ht = K, bl = {
3388
3391
  message({ keyword: e, schemaCode: t }) {
3389
3392
  const n = e === "maxItems" ? "more" : "fewer";
3390
3393
  return (0, ht.str)`must NOT have ${n} than ${t} items`;
3391
3394
  },
3392
3395
  params: ({ schemaCode: e }) => (0, ht._)`{limit: ${e}}`
3393
- }, bl = {
3396
+ }, $l = {
3394
3397
  keyword: ["maxItems", "minItems"],
3395
3398
  type: "array",
3396
3399
  schemaType: "number",
3397
3400
  $data: !0,
3398
- error: gl,
3401
+ error: bl,
3399
3402
  code(e) {
3400
3403
  const { keyword: t, data: n, schemaCode: r } = e, s = t === "maxItems" ? ht.operators.GT : ht.operators.LT;
3401
3404
  e.fail$data((0, ht._)`${n}.length ${s} ${r}`);
3402
3405
  }
3403
3406
  };
3404
- Wr.default = bl;
3405
- var Zr = {}, bt = {};
3406
- Object.defineProperty(bt, "__esModule", { value: !0 });
3407
- const Ls = fs;
3408
- Ls.code = 'require("ajv/dist/runtime/equal").default';
3409
- bt.default = Ls;
3410
- Object.defineProperty(Zr, "__esModule", { value: !0 });
3411
- const mr = te, se = K, $l = M, wl = bt, kl = {
3407
+ Zr.default = $l;
3408
+ var Yr = {}, gt = {};
3409
+ Object.defineProperty(gt, "__esModule", { value: !0 });
3410
+ const Ks = hs;
3411
+ Ks.code = 'require("ajv/dist/runtime/equal").default';
3412
+ gt.default = Ks;
3413
+ Object.defineProperty(Yr, "__esModule", { value: !0 });
3414
+ const mr = te, se = K, wl = M, kl = gt, Sl = {
3412
3415
  message: ({ params: { i: e, j: t } }) => (0, se.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
3413
3416
  params: ({ params: { i: e, j: t } }) => (0, se._)`{i: ${e}, j: ${t}}`
3414
- }, Sl = {
3417
+ }, El = {
3415
3418
  keyword: "uniqueItems",
3416
3419
  type: "array",
3417
3420
  schemaType: "boolean",
3418
3421
  $data: !0,
3419
- error: kl,
3422
+ error: Sl,
3420
3423
  code(e) {
3421
3424
  const { gen: t, data: n, $data: r, schema: s, parentSchema: a, schemaCode: o, it: i } = e;
3422
3425
  if (!r && !s)
@@ -3439,46 +3442,46 @@ const mr = te, se = K, $l = M, wl = bt, kl = {
3439
3442
  });
3440
3443
  }
3441
3444
  function $(_, g) {
3442
- const p = (0, $l.useFunc)(t, wl.default), m = t.name("outer");
3445
+ const p = (0, wl.useFunc)(t, kl.default), m = t.name("outer");
3443
3446
  t.label(m).for((0, se._)`;${_}--;`, () => t.for((0, se._)`${g} = ${_}; ${g}--;`, () => t.if((0, se._)`${p}(${n}[${_}], ${n}[${g}])`, () => {
3444
3447
  e.error(), t.assign(d, !1).break(m);
3445
3448
  })));
3446
3449
  }
3447
3450
  }
3448
3451
  };
3449
- Zr.default = Sl;
3450
- var Yr = {};
3451
- Object.defineProperty(Yr, "__esModule", { value: !0 });
3452
- const br = K, El = M, Pl = bt, Ol = {
3452
+ Yr.default = El;
3453
+ var Qr = {};
3454
+ Object.defineProperty(Qr, "__esModule", { value: !0 });
3455
+ const br = K, Pl = M, Ol = gt, jl = {
3453
3456
  message: "must be equal to constant",
3454
3457
  params: ({ schemaCode: e }) => (0, br._)`{allowedValue: ${e}}`
3455
- }, jl = {
3458
+ }, ql = {
3456
3459
  keyword: "const",
3457
3460
  $data: !0,
3458
- error: Ol,
3461
+ error: jl,
3459
3462
  code(e) {
3460
3463
  const { gen: t, data: n, $data: r, schemaCode: s, schema: a } = e;
3461
- r || a && typeof a == "object" ? e.fail$data((0, br._)`!${(0, El.useFunc)(t, Pl.default)}(${n}, ${s})`) : e.fail((0, br._)`${a} !== ${n}`);
3464
+ r || a && typeof a == "object" ? e.fail$data((0, br._)`!${(0, Pl.useFunc)(t, Ol.default)}(${n}, ${s})`) : e.fail((0, br._)`${a} !== ${n}`);
3462
3465
  }
3463
3466
  };
3464
- Yr.default = jl;
3465
- var Qr = {};
3466
- Object.defineProperty(Qr, "__esModule", { value: !0 });
3467
- const dt = K, ql = M, Nl = bt, Il = {
3467
+ Qr.default = ql;
3468
+ var Xr = {};
3469
+ Object.defineProperty(Xr, "__esModule", { value: !0 });
3470
+ const dt = K, Nl = M, Il = gt, Ml = {
3468
3471
  message: "must be equal to one of the allowed values",
3469
3472
  params: ({ schemaCode: e }) => (0, dt._)`{allowedValues: ${e}}`
3470
- }, Ml = {
3473
+ }, Tl = {
3471
3474
  keyword: "enum",
3472
3475
  schemaType: "array",
3473
3476
  $data: !0,
3474
- error: Il,
3477
+ error: Ml,
3475
3478
  code(e) {
3476
3479
  const { gen: t, data: n, $data: r, schema: s, schemaCode: a, it: o } = e;
3477
3480
  if (!r && s.length === 0)
3478
3481
  throw new Error("enum must have non-empty array");
3479
3482
  const i = s.length >= o.opts.loopEnum;
3480
3483
  let d;
3481
- const c = () => d ?? (d = (0, ql.useFunc)(t, Nl.default));
3484
+ const c = () => d ?? (d = (0, Nl.useFunc)(t, Il.default));
3482
3485
  let u;
3483
3486
  if (i || r)
3484
3487
  u = t.let("valid"), e.block$data(u, f);
@@ -3498,50 +3501,50 @@ const dt = K, ql = M, Nl = bt, Il = {
3498
3501
  }
3499
3502
  }
3500
3503
  };
3501
- Qr.default = Ml;
3502
- Object.defineProperty(Ur, "__esModule", { value: !0 });
3503
- const Tl = Lr, Rl = Hr, Al = Kr, Vl = Jr, Dl = Gr, Cl = xr, Fl = Wr, zl = Zr, Ul = Yr, Ll = Qr, Hl = [
3504
+ Xr.default = Tl;
3505
+ Object.defineProperty(Lr, "__esModule", { value: !0 });
3506
+ const Rl = Hr, Al = Kr, Vl = Br, Dl = Gr, Cl = xr, Fl = Wr, zl = Zr, Ul = Yr, Ll = Qr, Hl = Xr, Kl = [
3504
3507
  // number
3505
- Tl.default,
3506
3508
  Rl.default,
3507
- // string
3508
3509
  Al.default,
3510
+ // string
3509
3511
  Vl.default,
3510
- // object
3511
3512
  Dl.default,
3513
+ // object
3512
3514
  Cl.default,
3513
- // array
3514
3515
  Fl.default,
3516
+ // array
3515
3517
  zl.default,
3518
+ Ul.default,
3516
3519
  // any
3517
3520
  { keyword: "type", schemaType: ["string", "array"] },
3518
3521
  { keyword: "nullable", schemaType: "boolean" },
3519
- Ul.default,
3520
- Ll.default
3522
+ Ll.default,
3523
+ Hl.default
3521
3524
  ];
3522
- Ur.default = Hl;
3523
- var Xr = {}, rt = {};
3525
+ Lr.default = Kl;
3526
+ var en = {}, rt = {};
3524
3527
  Object.defineProperty(rt, "__esModule", { value: !0 });
3525
3528
  rt.validateAdditionalItems = void 0;
3526
- const Ue = K, $r = M, Kl = {
3529
+ const Ue = K, $r = M, Bl = {
3527
3530
  message: ({ params: { len: e } }) => (0, Ue.str)`must NOT have more than ${e} items`,
3528
3531
  params: ({ params: { len: e } }) => (0, Ue._)`{limit: ${e}}`
3529
- }, Bl = {
3532
+ }, Jl = {
3530
3533
  keyword: "additionalItems",
3531
3534
  type: "array",
3532
3535
  schemaType: ["boolean", "object"],
3533
3536
  before: "uniqueItems",
3534
- error: Kl,
3537
+ error: Bl,
3535
3538
  code(e) {
3536
3539
  const { parentSchema: t, it: n } = e, { items: r } = t;
3537
3540
  if (!Array.isArray(r)) {
3538
3541
  (0, $r.checkStrictMode)(n, '"additionalItems" is ignored when "items" is not an array of schemas');
3539
3542
  return;
3540
3543
  }
3541
- Hs(e, r);
3544
+ Bs(e, r);
3542
3545
  }
3543
3546
  };
3544
- function Hs(e, t) {
3547
+ function Bs(e, t) {
3545
3548
  const { gen: n, schema: r, data: s, keyword: a, it: o } = e;
3546
3549
  o.items = !0;
3547
3550
  const i = n.const("len", (0, Ue._)`${s}.length`);
@@ -3557,12 +3560,12 @@ function Hs(e, t) {
3557
3560
  });
3558
3561
  }
3559
3562
  }
3560
- rt.validateAdditionalItems = Hs;
3561
- rt.default = Bl;
3562
- var en = {}, nt = {};
3563
+ rt.validateAdditionalItems = Bs;
3564
+ rt.default = Jl;
3565
+ var tn = {}, nt = {};
3563
3566
  Object.defineProperty(nt, "__esModule", { value: !0 });
3564
3567
  nt.validateTuple = void 0;
3565
- const In = K, Rt = M, Jl = J, Gl = {
3568
+ const Tn = K, Rt = M, Gl = J, xl = {
3566
3569
  keyword: "items",
3567
3570
  type: "array",
3568
3571
  schemaType: ["object", "array", "boolean"],
@@ -3570,16 +3573,16 @@ const In = K, Rt = M, Jl = J, Gl = {
3570
3573
  code(e) {
3571
3574
  const { schema: t, it: n } = e;
3572
3575
  if (Array.isArray(t))
3573
- return Ks(e, "additionalItems", t);
3574
- n.items = !0, !(0, Rt.alwaysValidSchema)(n, t) && e.ok((0, Jl.validateArray)(e));
3576
+ return Js(e, "additionalItems", t);
3577
+ n.items = !0, !(0, Rt.alwaysValidSchema)(n, t) && e.ok((0, Gl.validateArray)(e));
3575
3578
  }
3576
3579
  };
3577
- function Ks(e, t, n = e.schema) {
3580
+ function Js(e, t, n = e.schema) {
3578
3581
  const { gen: r, parentSchema: s, data: a, keyword: o, it: i } = e;
3579
3582
  u(s), i.opts.unevaluated && n.length && i.items !== !0 && (i.items = Rt.mergeEvaluated.items(r, n.length, i.items));
3580
- const d = r.name("valid"), c = r.const("len", (0, In._)`${a}.length`);
3583
+ const d = r.name("valid"), c = r.const("len", (0, Tn._)`${a}.length`);
3581
3584
  n.forEach((f, b) => {
3582
- (0, Rt.alwaysValidSchema)(i, f) || (r.if((0, In._)`${c} > ${b}`, () => e.subschema({
3585
+ (0, Rt.alwaysValidSchema)(i, f) || (r.if((0, Tn._)`${c} > ${b}`, () => e.subschema({
3583
3586
  keyword: o,
3584
3587
  schemaProp: b,
3585
3588
  dataProp: b
@@ -3593,46 +3596,46 @@ function Ks(e, t, n = e.schema) {
3593
3596
  }
3594
3597
  }
3595
3598
  }
3596
- nt.validateTuple = Ks;
3597
- nt.default = Gl;
3598
- Object.defineProperty(en, "__esModule", { value: !0 });
3599
- const xl = nt, Wl = {
3599
+ nt.validateTuple = Js;
3600
+ nt.default = xl;
3601
+ Object.defineProperty(tn, "__esModule", { value: !0 });
3602
+ const Wl = nt, Zl = {
3600
3603
  keyword: "prefixItems",
3601
3604
  type: "array",
3602
3605
  schemaType: ["array"],
3603
3606
  before: "uniqueItems",
3604
- code: (e) => (0, xl.validateTuple)(e, "items")
3607
+ code: (e) => (0, Wl.validateTuple)(e, "items")
3605
3608
  };
3606
- en.default = Wl;
3607
- var tn = {};
3608
- Object.defineProperty(tn, "__esModule", { value: !0 });
3609
- const Mn = K, Zl = M, Yl = J, Ql = rt, Xl = {
3610
- message: ({ params: { len: e } }) => (0, Mn.str)`must NOT have more than ${e} items`,
3611
- params: ({ params: { len: e } }) => (0, Mn._)`{limit: ${e}}`
3612
- }, ed = {
3609
+ tn.default = Zl;
3610
+ var rn = {};
3611
+ Object.defineProperty(rn, "__esModule", { value: !0 });
3612
+ const Rn = K, Yl = M, Ql = J, Xl = rt, ed = {
3613
+ message: ({ params: { len: e } }) => (0, Rn.str)`must NOT have more than ${e} items`,
3614
+ params: ({ params: { len: e } }) => (0, Rn._)`{limit: ${e}}`
3615
+ }, td = {
3613
3616
  keyword: "items",
3614
3617
  type: "array",
3615
3618
  schemaType: ["object", "boolean"],
3616
3619
  before: "uniqueItems",
3617
- error: Xl,
3620
+ error: ed,
3618
3621
  code(e) {
3619
3622
  const { schema: t, parentSchema: n, it: r } = e, { prefixItems: s } = n;
3620
- r.items = !0, !(0, Zl.alwaysValidSchema)(r, t) && (s ? (0, Ql.validateAdditionalItems)(e, s) : e.ok((0, Yl.validateArray)(e)));
3623
+ r.items = !0, !(0, Yl.alwaysValidSchema)(r, t) && (s ? (0, Xl.validateAdditionalItems)(e, s) : e.ok((0, Ql.validateArray)(e)));
3621
3624
  }
3622
3625
  };
3623
- tn.default = ed;
3624
- var rn = {};
3625
- Object.defineProperty(rn, "__esModule", { value: !0 });
3626
- const pe = K, Ot = M, td = {
3626
+ rn.default = td;
3627
+ var nn = {};
3628
+ Object.defineProperty(nn, "__esModule", { value: !0 });
3629
+ const pe = K, Ot = M, rd = {
3627
3630
  message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, pe.str)`must contain at least ${e} valid item(s)` : (0, pe.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
3628
3631
  params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, pe._)`{minContains: ${e}}` : (0, pe._)`{minContains: ${e}, maxContains: ${t}}`
3629
- }, rd = {
3632
+ }, nd = {
3630
3633
  keyword: "contains",
3631
3634
  type: "array",
3632
3635
  schemaType: ["object", "boolean"],
3633
3636
  before: "uniqueItems",
3634
3637
  trackErrors: !0,
3635
- error: td,
3638
+ error: rd,
3636
3639
  code(e) {
3637
3640
  const { gen: t, schema: n, parentSchema: r, data: s, it: a } = e;
3638
3641
  let o, i;
@@ -3674,8 +3677,8 @@ const pe = K, Ot = M, td = {
3674
3677
  }
3675
3678
  }
3676
3679
  };
3677
- rn.default = rd;
3678
- var Bs = {};
3680
+ nn.default = nd;
3681
+ var Gs = {};
3679
3682
  (function(e) {
3680
3683
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
3681
3684
  const t = K, n = M, r = J;
@@ -3745,20 +3748,20 @@ var Bs = {};
3745
3748
  ), d.ok(_));
3746
3749
  }
3747
3750
  e.validateSchemaDeps = i, e.default = s;
3748
- })(Bs);
3749
- var nn = {};
3750
- Object.defineProperty(nn, "__esModule", { value: !0 });
3751
- const Js = K, nd = M, sd = {
3751
+ })(Gs);
3752
+ var sn = {};
3753
+ Object.defineProperty(sn, "__esModule", { value: !0 });
3754
+ const xs = K, sd = M, ad = {
3752
3755
  message: "property name must be valid",
3753
- params: ({ params: e }) => (0, Js._)`{propertyName: ${e.propertyName}}`
3754
- }, ad = {
3756
+ params: ({ params: e }) => (0, xs._)`{propertyName: ${e.propertyName}}`
3757
+ }, od = {
3755
3758
  keyword: "propertyNames",
3756
3759
  type: "object",
3757
3760
  schemaType: ["object", "boolean"],
3758
- error: sd,
3761
+ error: ad,
3759
3762
  code(e) {
3760
3763
  const { gen: t, schema: n, data: r, it: s } = e;
3761
- if ((0, nd.alwaysValidSchema)(s, n))
3764
+ if ((0, sd.alwaysValidSchema)(s, n))
3762
3765
  return;
3763
3766
  const a = t.name("valid");
3764
3767
  t.forIn("key", r, (o) => {
@@ -3768,25 +3771,25 @@ const Js = K, nd = M, sd = {
3768
3771
  dataTypes: ["string"],
3769
3772
  propertyName: o,
3770
3773
  compositeRule: !0
3771
- }, a), t.if((0, Js.not)(a), () => {
3774
+ }, a), t.if((0, xs.not)(a), () => {
3772
3775
  e.error(!0), s.allErrors || t.break();
3773
3776
  });
3774
3777
  }), e.ok(a);
3775
3778
  }
3776
3779
  };
3777
- nn.default = ad;
3780
+ sn.default = od;
3778
3781
  var Jt = {};
3779
3782
  Object.defineProperty(Jt, "__esModule", { value: !0 });
3780
- const jt = J, _e = K, od = qe, qt = M, id = {
3783
+ const jt = J, _e = K, id = qe, qt = M, ld = {
3781
3784
  message: "must NOT have additional properties",
3782
3785
  params: ({ params: e }) => (0, _e._)`{additionalProperty: ${e.additionalProperty}}`
3783
- }, ld = {
3786
+ }, dd = {
3784
3787
  keyword: "additionalProperties",
3785
3788
  type: ["object"],
3786
3789
  schemaType: ["boolean", "object"],
3787
3790
  allowUndefined: !0,
3788
3791
  trackErrors: !0,
3789
- error: id,
3792
+ error: ld,
3790
3793
  code(e) {
3791
3794
  const { gen: t, schema: n, parentSchema: r, data: s, errsCount: a, it: o } = e;
3792
3795
  if (!a)
@@ -3795,7 +3798,7 @@ const jt = J, _e = K, od = qe, qt = M, id = {
3795
3798
  if (o.props = !0, d.removeAdditional !== "all" && (0, qt.alwaysValidSchema)(o, n))
3796
3799
  return;
3797
3800
  const c = (0, jt.allSchemaProperties)(r.properties), u = (0, jt.allSchemaProperties)(r.patternProperties);
3798
- f(), e.ok((0, _e._)`${a} === ${od.default.errors}`);
3801
+ f(), e.ok((0, _e._)`${a} === ${id.default.errors}`);
3799
3802
  function f() {
3800
3803
  t.forIn("key", s, (p) => {
3801
3804
  !c.length && !u.length ? _(p) : t.if(b(p), () => _(p));
@@ -3842,17 +3845,17 @@ const jt = J, _e = K, od = qe, qt = M, id = {
3842
3845
  }
3843
3846
  }
3844
3847
  };
3845
- Jt.default = ld;
3846
- var sn = {};
3847
- Object.defineProperty(sn, "__esModule", { value: !0 });
3848
- const dd = be, Tn = J, hr = M, Rn = Jt, cd = {
3848
+ Jt.default = dd;
3849
+ var an = {};
3850
+ Object.defineProperty(an, "__esModule", { value: !0 });
3851
+ const cd = be, An = J, hr = M, Vn = Jt, ud = {
3849
3852
  keyword: "properties",
3850
3853
  type: "object",
3851
3854
  schemaType: "object",
3852
3855
  code(e) {
3853
3856
  const { gen: t, schema: n, parentSchema: r, data: s, it: a } = e;
3854
- a.opts.removeAdditional === "all" && r.additionalProperties === void 0 && Rn.default.code(new dd.KeywordCxt(a, Rn.default, "additionalProperties"));
3855
- const o = (0, Tn.allSchemaProperties)(n);
3857
+ a.opts.removeAdditional === "all" && r.additionalProperties === void 0 && Vn.default.code(new cd.KeywordCxt(a, Vn.default, "additionalProperties"));
3858
+ const o = (0, An.allSchemaProperties)(n);
3856
3859
  for (const f of o)
3857
3860
  a.definedProperties.add(f);
3858
3861
  a.opts.unevaluated && o.length && a.props !== !0 && (a.props = hr.mergeEvaluated.props(t, (0, hr.toHash)(o), a.props));
@@ -3861,7 +3864,7 @@ const dd = be, Tn = J, hr = M, Rn = Jt, cd = {
3861
3864
  return;
3862
3865
  const d = t.name("valid");
3863
3866
  for (const f of i)
3864
- c(f) ? u(f) : (t.if((0, Tn.propertyInData)(t, s, f, a.opts.ownProperties)), u(f), a.allErrors || t.else().var(d, !0), t.endIf()), e.it.definedProperties.add(f), e.ok(d);
3867
+ c(f) ? u(f) : (t.if((0, An.propertyInData)(t, s, f, a.opts.ownProperties)), u(f), a.allErrors || t.else().var(d, !0), t.endIf()), e.it.definedProperties.add(f), e.ok(d);
3865
3868
  function c(f) {
3866
3869
  return a.opts.useDefaults && !a.compositeRule && n[f].default !== void 0;
3867
3870
  }
@@ -3874,19 +3877,19 @@ const dd = be, Tn = J, hr = M, Rn = Jt, cd = {
3874
3877
  }
3875
3878
  }
3876
3879
  };
3877
- sn.default = cd;
3878
- var an = {};
3879
- Object.defineProperty(an, "__esModule", { value: !0 });
3880
- const An = J, Nt = K, Vn = M, Dn = M, ud = {
3880
+ an.default = ud;
3881
+ var on = {};
3882
+ Object.defineProperty(on, "__esModule", { value: !0 });
3883
+ const Dn = J, Nt = K, Cn = M, Fn = M, fd = {
3881
3884
  keyword: "patternProperties",
3882
3885
  type: "object",
3883
3886
  schemaType: "object",
3884
3887
  code(e) {
3885
- const { gen: t, schema: n, data: r, parentSchema: s, it: a } = e, { opts: o } = a, i = (0, An.allSchemaProperties)(n), d = i.filter((g) => (0, Vn.alwaysValidSchema)(a, n[g]));
3888
+ 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, Cn.alwaysValidSchema)(a, n[g]));
3886
3889
  if (i.length === 0 || d.length === i.length && (!a.opts.unevaluated || a.props === !0))
3887
3890
  return;
3888
3891
  const c = o.strictSchema && !o.allowMatchingProperties && s.properties, u = t.name("valid");
3889
- a.props !== !0 && !(a.props instanceof Nt.Name) && (a.props = (0, Dn.evaluatedPropsToName)(t, a.props));
3892
+ a.props !== !0 && !(a.props instanceof Nt.Name) && (a.props = (0, Fn.evaluatedPropsToName)(t, a.props));
3890
3893
  const { props: f } = a;
3891
3894
  b();
3892
3895
  function b() {
@@ -3895,33 +3898,33 @@ const An = J, Nt = K, Vn = M, Dn = M, ud = {
3895
3898
  }
3896
3899
  function $(g) {
3897
3900
  for (const p in c)
3898
- new RegExp(g).test(p) && (0, Vn.checkStrictMode)(a, `property ${p} matches pattern ${g} (use allowMatchingProperties)`);
3901
+ new RegExp(g).test(p) && (0, Cn.checkStrictMode)(a, `property ${p} matches pattern ${g} (use allowMatchingProperties)`);
3899
3902
  }
3900
3903
  function _(g) {
3901
3904
  t.forIn("key", r, (p) => {
3902
- t.if((0, Nt._)`${(0, An.usePattern)(e, g)}.test(${p})`, () => {
3905
+ t.if((0, Nt._)`${(0, Dn.usePattern)(e, g)}.test(${p})`, () => {
3903
3906
  const m = d.includes(g);
3904
3907
  m || e.subschema({
3905
3908
  keyword: "patternProperties",
3906
3909
  schemaProp: g,
3907
3910
  dataProp: p,
3908
- dataPropType: Dn.Type.Str
3911
+ dataPropType: Fn.Type.Str
3909
3912
  }, u), a.opts.unevaluated && f !== !0 ? t.assign((0, Nt._)`${f}[${p}]`, !0) : !m && !a.allErrors && t.if((0, Nt.not)(u), () => t.break());
3910
3913
  });
3911
3914
  });
3912
3915
  }
3913
3916
  }
3914
3917
  };
3915
- an.default = ud;
3916
- var on = {};
3917
- Object.defineProperty(on, "__esModule", { value: !0 });
3918
- const fd = M, md = {
3918
+ on.default = fd;
3919
+ var ln = {};
3920
+ Object.defineProperty(ln, "__esModule", { value: !0 });
3921
+ const md = M, hd = {
3919
3922
  keyword: "not",
3920
3923
  schemaType: ["object", "boolean"],
3921
3924
  trackErrors: !0,
3922
3925
  code(e) {
3923
3926
  const { gen: t, schema: n, it: r } = e;
3924
- if ((0, fd.alwaysValidSchema)(r, n)) {
3927
+ if ((0, md.alwaysValidSchema)(r, n)) {
3925
3928
  e.fail();
3926
3929
  return;
3927
3930
  }
@@ -3935,27 +3938,27 @@ const fd = M, md = {
3935
3938
  },
3936
3939
  error: { message: "must NOT be valid" }
3937
3940
  };
3938
- on.default = md;
3939
- var ln = {};
3940
- Object.defineProperty(ln, "__esModule", { value: !0 });
3941
- const hd = J, pd = {
3941
+ ln.default = hd;
3942
+ var dn = {};
3943
+ Object.defineProperty(dn, "__esModule", { value: !0 });
3944
+ const pd = J, yd = {
3942
3945
  keyword: "anyOf",
3943
3946
  schemaType: "array",
3944
3947
  trackErrors: !0,
3945
- code: hd.validateUnion,
3948
+ code: pd.validateUnion,
3946
3949
  error: { message: "must match a schema in anyOf" }
3947
3950
  };
3948
- ln.default = pd;
3949
- var dn = {};
3950
- Object.defineProperty(dn, "__esModule", { value: !0 });
3951
- const At = K, yd = M, vd = {
3951
+ dn.default = yd;
3952
+ var cn = {};
3953
+ Object.defineProperty(cn, "__esModule", { value: !0 });
3954
+ const At = K, vd = M, _d = {
3952
3955
  message: "must match exactly one schema in oneOf",
3953
3956
  params: ({ params: e }) => (0, At._)`{passingSchemas: ${e.passing}}`
3954
- }, _d = {
3957
+ }, gd = {
3955
3958
  keyword: "oneOf",
3956
3959
  schemaType: "array",
3957
3960
  trackErrors: !0,
3958
- error: vd,
3961
+ error: _d,
3959
3962
  code(e) {
3960
3963
  const { gen: t, schema: n, parentSchema: r, it: s } = e;
3961
3964
  if (!Array.isArray(n))
@@ -3967,7 +3970,7 @@ const At = K, yd = M, vd = {
3967
3970
  function c() {
3968
3971
  a.forEach((u, f) => {
3969
3972
  let b;
3970
- (0, yd.alwaysValidSchema)(s, u) ? t.var(d, !0) : b = e.subschema({
3973
+ (0, vd.alwaysValidSchema)(s, u) ? t.var(d, !0) : b = e.subschema({
3971
3974
  keyword: "oneOf",
3972
3975
  schemaProp: f,
3973
3976
  compositeRule: !0
@@ -3978,10 +3981,10 @@ const At = K, yd = M, vd = {
3978
3981
  }
3979
3982
  }
3980
3983
  };
3981
- dn.default = _d;
3982
- var cn = {};
3983
- Object.defineProperty(cn, "__esModule", { value: !0 });
3984
- const gd = M, bd = {
3984
+ cn.default = gd;
3985
+ var un = {};
3986
+ Object.defineProperty(un, "__esModule", { value: !0 });
3987
+ const bd = M, $d = {
3985
3988
  keyword: "allOf",
3986
3989
  schemaType: "array",
3987
3990
  code(e) {
@@ -3990,28 +3993,28 @@ const gd = M, bd = {
3990
3993
  throw new Error("ajv implementation error");
3991
3994
  const s = t.name("valid");
3992
3995
  n.forEach((a, o) => {
3993
- if ((0, gd.alwaysValidSchema)(r, a))
3996
+ if ((0, bd.alwaysValidSchema)(r, a))
3994
3997
  return;
3995
3998
  const i = e.subschema({ keyword: "allOf", schemaProp: o }, s);
3996
3999
  e.ok(s), e.mergeEvaluated(i);
3997
4000
  });
3998
4001
  }
3999
4002
  };
4000
- cn.default = bd;
4001
- var un = {};
4002
- Object.defineProperty(un, "__esModule", { value: !0 });
4003
- const Ut = K, Gs = M, $d = {
4003
+ un.default = $d;
4004
+ var fn = {};
4005
+ Object.defineProperty(fn, "__esModule", { value: !0 });
4006
+ const Ut = K, Ws = M, wd = {
4004
4007
  message: ({ params: e }) => (0, Ut.str)`must match "${e.ifClause}" schema`,
4005
4008
  params: ({ params: e }) => (0, Ut._)`{failingKeyword: ${e.ifClause}}`
4006
- }, wd = {
4009
+ }, kd = {
4007
4010
  keyword: "if",
4008
4011
  schemaType: ["object", "boolean"],
4009
4012
  trackErrors: !0,
4010
- error: $d,
4013
+ error: wd,
4011
4014
  code(e) {
4012
4015
  const { gen: t, parentSchema: n, it: r } = e;
4013
- n.then === void 0 && n.else === void 0 && (0, Gs.checkStrictMode)(r, '"if" without "then" and "else" is ignored');
4014
- const s = Cn(r, "then"), a = Cn(r, "else");
4016
+ n.then === void 0 && n.else === void 0 && (0, Ws.checkStrictMode)(r, '"if" without "then" and "else" is ignored');
4017
+ const s = zn(r, "then"), a = zn(r, "else");
4015
4018
  if (!s && !a)
4016
4019
  return;
4017
4020
  const o = t.let("valid", !0), i = t.name("_valid");
@@ -4037,53 +4040,53 @@ const Ut = K, Gs = M, $d = {
4037
4040
  }
4038
4041
  }
4039
4042
  };
4040
- function Cn(e, t) {
4043
+ function zn(e, t) {
4041
4044
  const n = e.schema[t];
4042
- return n !== void 0 && !(0, Gs.alwaysValidSchema)(e, n);
4045
+ return n !== void 0 && !(0, Ws.alwaysValidSchema)(e, n);
4043
4046
  }
4044
- un.default = wd;
4045
- var fn = {};
4046
- Object.defineProperty(fn, "__esModule", { value: !0 });
4047
- const kd = M, Sd = {
4047
+ fn.default = kd;
4048
+ var mn = {};
4049
+ Object.defineProperty(mn, "__esModule", { value: !0 });
4050
+ const Sd = M, Ed = {
4048
4051
  keyword: ["then", "else"],
4049
4052
  schemaType: ["object", "boolean"],
4050
4053
  code({ keyword: e, parentSchema: t, it: n }) {
4051
- t.if === void 0 && (0, kd.checkStrictMode)(n, `"${e}" without "if" is ignored`);
4054
+ t.if === void 0 && (0, Sd.checkStrictMode)(n, `"${e}" without "if" is ignored`);
4052
4055
  }
4053
4056
  };
4054
- fn.default = Sd;
4055
- Object.defineProperty(Xr, "__esModule", { value: !0 });
4056
- const Ed = rt, Pd = en, Od = nt, jd = tn, qd = rn, Nd = Bs, Id = nn, Md = Jt, Td = sn, Rd = an, Ad = on, Vd = ln, Dd = dn, Cd = cn, Fd = un, zd = fn;
4057
- function Ud(e = !1) {
4057
+ mn.default = Ed;
4058
+ Object.defineProperty(en, "__esModule", { value: !0 });
4059
+ const Pd = rt, Od = tn, jd = nt, qd = rn, Nd = nn, Id = Gs, Md = sn, Td = Jt, Rd = an, Ad = on, Vd = ln, Dd = dn, Cd = cn, Fd = un, zd = fn, Ud = mn;
4060
+ function Ld(e = !1) {
4058
4061
  const t = [
4059
4062
  // any
4060
- Ad.default,
4061
4063
  Vd.default,
4062
4064
  Dd.default,
4063
4065
  Cd.default,
4064
4066
  Fd.default,
4065
4067
  zd.default,
4068
+ Ud.default,
4066
4069
  // object
4067
- Id.default,
4068
4070
  Md.default,
4069
- Nd.default,
4070
4071
  Td.default,
4071
- Rd.default
4072
+ Id.default,
4073
+ Rd.default,
4074
+ Ad.default
4072
4075
  ];
4073
- return e ? t.push(Pd.default, jd.default) : t.push(Ed.default, Od.default), t.push(qd.default), t;
4076
+ return e ? t.push(Od.default, qd.default) : t.push(Pd.default, jd.default), t.push(Nd.default), t;
4074
4077
  }
4075
- Xr.default = Ud;
4076
- var mn = {}, hn = {};
4077
- Object.defineProperty(hn, "__esModule", { value: !0 });
4078
- const ee = K, Ld = {
4078
+ en.default = Ld;
4079
+ var hn = {}, pn = {};
4080
+ Object.defineProperty(pn, "__esModule", { value: !0 });
4081
+ const ee = K, Hd = {
4079
4082
  message: ({ schemaCode: e }) => (0, ee.str)`must match format "${e}"`,
4080
4083
  params: ({ schemaCode: e }) => (0, ee._)`{format: ${e}}`
4081
- }, Hd = {
4084
+ }, Kd = {
4082
4085
  keyword: "format",
4083
4086
  type: ["number", "string"],
4084
4087
  schemaType: "string",
4085
4088
  $data: !0,
4086
- error: Ld,
4089
+ error: Hd,
4087
4090
  code(e, t) {
4088
4091
  const { gen: n, data: r, $data: s, schema: a, schemaCode: o, it: i } = e, { opts: d, errSchemaPath: c, schemaEnv: u, self: f } = i;
4089
4092
  if (!d.validateFormats)
@@ -4138,10 +4141,10 @@ const ee = K, Ld = {
4138
4141
  }
4139
4142
  }
4140
4143
  };
4141
- hn.default = Hd;
4142
- Object.defineProperty(mn, "__esModule", { value: !0 });
4143
- const Kd = hn, Bd = [Kd.default];
4144
- mn.default = Bd;
4144
+ pn.default = Kd;
4145
+ Object.defineProperty(hn, "__esModule", { value: !0 });
4146
+ const Bd = pn, Jd = [Bd.default];
4147
+ hn.default = Jd;
4145
4148
  var Xe = {};
4146
4149
  Object.defineProperty(Xe, "__esModule", { value: !0 });
4147
4150
  Xe.contentVocabulary = Xe.metadataVocabulary = void 0;
@@ -4159,32 +4162,32 @@ Xe.contentVocabulary = [
4159
4162
  "contentEncoding",
4160
4163
  "contentSchema"
4161
4164
  ];
4162
- Object.defineProperty(Cr, "__esModule", { value: !0 });
4163
- const Jd = Fr, Gd = Ur, xd = Xr, Wd = mn, Fn = Xe, Zd = [
4164
- Jd.default,
4165
+ Object.defineProperty(Fr, "__esModule", { value: !0 });
4166
+ const Gd = zr, xd = Lr, Wd = en, Zd = hn, Un = Xe, Yd = [
4165
4167
  Gd.default,
4166
- (0, xd.default)(),
4167
- Wd.default,
4168
- Fn.metadataVocabulary,
4169
- Fn.contentVocabulary
4168
+ xd.default,
4169
+ (0, Wd.default)(),
4170
+ Zd.default,
4171
+ Un.metadataVocabulary,
4172
+ Un.contentVocabulary
4170
4173
  ];
4171
- Cr.default = Zd;
4172
- var pn = {}, Gt = {};
4174
+ Fr.default = Yd;
4175
+ var yn = {}, Gt = {};
4173
4176
  Object.defineProperty(Gt, "__esModule", { value: !0 });
4174
4177
  Gt.DiscrError = void 0;
4175
- var zn;
4178
+ var Ln;
4176
4179
  (function(e) {
4177
4180
  e.Tag = "tag", e.Mapping = "mapping";
4178
- })(zn || (Gt.DiscrError = zn = {}));
4179
- Object.defineProperty(pn, "__esModule", { value: !0 });
4180
- const We = K, wr = Gt, Un = ue, Yd = tt, Qd = M, Xd = {
4181
+ })(Ln || (Gt.DiscrError = Ln = {}));
4182
+ Object.defineProperty(yn, "__esModule", { value: !0 });
4183
+ const We = K, wr = Gt, Hn = ue, Qd = tt, Xd = M, ec = {
4181
4184
  message: ({ params: { discrError: e, tagName: t } }) => e === wr.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`,
4182
4185
  params: ({ params: { discrError: e, tag: t, tagName: n } }) => (0, We._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`
4183
- }, ec = {
4186
+ }, tc = {
4184
4187
  keyword: "discriminator",
4185
4188
  type: "object",
4186
4189
  schemaType: "object",
4187
- error: Xd,
4190
+ error: ec,
4188
4191
  code(e) {
4189
4192
  const { gen: t, data: n, schema: r, parentSchema: s, it: a } = e, { oneOf: o } = s;
4190
4193
  if (!a.opts.discriminator)
@@ -4215,10 +4218,10 @@ const We = K, wr = Gt, Un = ue, Yd = tt, Qd = M, Xd = {
4215
4218
  let p = !0;
4216
4219
  for (let S = 0; S < o.length; S++) {
4217
4220
  let O = o[S];
4218
- if (O != null && O.$ref && !(0, Qd.schemaHasRulesButRef)(O, a.self.RULES)) {
4221
+ if (O != null && O.$ref && !(0, Xd.schemaHasRulesButRef)(O, a.self.RULES)) {
4219
4222
  const G = O.$ref;
4220
- if (O = Un.resolveRef.call(a.self, a.schemaEnv.root, a.baseId, G), O instanceof Un.SchemaEnv && (O = O.schema), O === void 0)
4221
- throw new Yd.default(a.opts.uriResolver, a.baseId, G);
4223
+ if (O = Hn.resolveRef.call(a.self, a.schemaEnv.root, a.baseId, G), O instanceof Hn.SchemaEnv && (O = O.schema), O === void 0)
4224
+ throw new Qd.default(a.opts.uriResolver, a.baseId, G);
4222
4225
  }
4223
4226
  const F = ($ = O == null ? void 0 : O.properties) === null || $ === void 0 ? void 0 : $[i];
4224
4227
  if (typeof F != "object")
@@ -4248,8 +4251,8 @@ const We = K, wr = Gt, Un = ue, Yd = tt, Qd = M, Xd = {
4248
4251
  }
4249
4252
  }
4250
4253
  };
4251
- pn.default = ec;
4252
- const tc = "http://json-schema.org/draft-07/schema#", rc = "http://json-schema.org/draft-07/schema#", nc = "Core schema meta-schema", sc = {
4254
+ yn.default = tc;
4255
+ const rc = "http://json-schema.org/draft-07/schema#", nc = "http://json-schema.org/draft-07/schema#", sc = "Core schema meta-schema", ac = {
4253
4256
  schemaArray: {
4254
4257
  type: "array",
4255
4258
  minItems: 1,
@@ -4290,10 +4293,10 @@ const tc = "http://json-schema.org/draft-07/schema#", rc = "http://json-schema.o
4290
4293
  uniqueItems: !0,
4291
4294
  default: []
4292
4295
  }
4293
- }, ac = [
4296
+ }, oc = [
4294
4297
  "object",
4295
4298
  "boolean"
4296
- ], oc = {
4299
+ ], ic = {
4297
4300
  $id: {
4298
4301
  type: "string",
4299
4302
  format: "uri-reference"
@@ -4481,18 +4484,18 @@ const tc = "http://json-schema.org/draft-07/schema#", rc = "http://json-schema.o
4481
4484
  not: {
4482
4485
  $ref: "#"
4483
4486
  }
4484
- }, ic = {
4485
- $schema: tc,
4486
- $id: rc,
4487
- title: nc,
4488
- definitions: sc,
4489
- type: ac,
4490
- properties: oc,
4487
+ }, lc = {
4488
+ $schema: rc,
4489
+ $id: nc,
4490
+ title: sc,
4491
+ definitions: ac,
4492
+ type: oc,
4493
+ properties: ic,
4491
4494
  default: !0
4492
4495
  };
4493
4496
  (function(e, t) {
4494
4497
  Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv = void 0;
4495
- const n = Zn, r = Cr, s = pn, a = ic, o = ["/properties"], i = "http://json-schema.org/draft-07/schema";
4498
+ const n = Qn, r = Fr, s = yn, a = lc, o = ["/properties"], i = "http://json-schema.org/draft-07/schema";
4496
4499
  class d extends n.default {
4497
4500
  _addVocabularies() {
4498
4501
  super._addVocabularies(), r.default.forEach((_) => this.addVocabulary(_)), this.opts.discriminator && this.addKeyword(s.default);
@@ -4526,7 +4529,7 @@ const tc = "http://json-schema.org/draft-07/schema#", rc = "http://json-schema.o
4526
4529
  } }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
4527
4530
  return u.CodeGen;
4528
4531
  } });
4529
- var f = gt;
4532
+ var f = Rr();
4530
4533
  Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
4531
4534
  return f.default;
4532
4535
  } });
@@ -4535,9 +4538,9 @@ const tc = "http://json-schema.org/draft-07/schema#", rc = "http://json-schema.o
4535
4538
  return b.default;
4536
4539
  } });
4537
4540
  })(pr, pr.exports);
4538
- var xs = pr.exports;
4539
- const lc = /* @__PURE__ */ Wn(xs);
4540
- var kr = { exports: {} }, Ws = {};
4541
+ var Zs = pr.exports;
4542
+ const dc = /* @__PURE__ */ Yn(Zs);
4543
+ var kr = { exports: {} }, Ys = {};
4541
4544
  (function(e) {
4542
4545
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
4543
4546
  function t(j, V) {
@@ -4670,11 +4673,11 @@ var kr = { exports: {} }, Ws = {};
4670
4673
  return !1;
4671
4674
  }
4672
4675
  }
4673
- })(Ws);
4674
- var Zs = {};
4676
+ })(Ys);
4677
+ var Qs = {};
4675
4678
  (function(e) {
4676
4679
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
4677
- const t = xs, n = K, r = n.operators, s = {
4680
+ const t = Zs, n = K, r = n.operators, s = {
4678
4681
  formatMaximum: { okStr: "<=", ok: r.LTE, fail: r.GT },
4679
4682
  formatMinimum: { okStr: ">=", ok: r.GTE, fail: r.LT },
4680
4683
  formatExclusiveMaximum: { okStr: "<", ok: r.LT, fail: r.GTE },
@@ -4723,10 +4726,10 @@ var Zs = {};
4723
4726
  };
4724
4727
  const o = (i) => (i.addKeyword(e.formatLimitDefinition), i);
4725
4728
  e.default = o;
4726
- })(Zs);
4729
+ })(Qs);
4727
4730
  (function(e, t) {
4728
4731
  Object.defineProperty(t, "__esModule", { value: !0 });
4729
- const n = Ws, r = Zs, s = K, a = new s.Name("fullFormats"), o = new s.Name("fastFormats"), i = (c, u = { keywords: !0 }) => {
4732
+ const n = Ys, r = Qs, s = K, a = new s.Name("fullFormats"), o = new s.Name("fastFormats"), i = (c, u = { keywords: !0 }) => {
4730
4733
  if (Array.isArray(u))
4731
4734
  return d(c, u, n.fullFormats, a), c;
4732
4735
  const [f, b] = u.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a], $ = u.formats || n.formatNames;
@@ -4746,15 +4749,15 @@ var Zs = {};
4746
4749
  }
4747
4750
  e.exports = t = i, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = i;
4748
4751
  })(kr, kr.exports);
4749
- var dc = kr.exports;
4750
- const cc = /* @__PURE__ */ Wn(dc);
4751
- class $t {
4752
+ var cc = kr.exports;
4753
+ const uc = /* @__PURE__ */ Yn(cc);
4754
+ class bt {
4752
4755
  constructor() {
4753
- this.validators = /* @__PURE__ */ new Map(), this.ajv = new lc({
4756
+ this.validators = /* @__PURE__ */ new Map(), this.ajv = new dc({
4754
4757
  allErrors: !0,
4755
4758
  strict: !1,
4756
4759
  validateFormats: !0
4757
- }), cc(this.ajv), this.ajv.addFormat("textarea", () => !0), this.ajv.addFormat("password", () => !0);
4760
+ }), uc(this.ajv), this.ajv.addFormat("textarea", () => !0), this.ajv.addFormat("password", () => !0);
4758
4761
  }
4759
4762
  /**
4760
4763
  * Validate data against a JSON Schema
@@ -4898,41 +4901,41 @@ class $t {
4898
4901
  this.validators.clear();
4899
4902
  }
4900
4903
  }
4901
- const Ys = Symbol("quickforms-context");
4902
- function uc(e) {
4903
- Xs(Ys, e);
4904
+ const Xs = Symbol("quickforms-context");
4905
+ function fc(e) {
4906
+ ta(Xs, e);
4904
4907
  }
4905
4908
  function st() {
4906
- return ea(Ys, void 0);
4909
+ return ra(Xs, void 0);
4907
4910
  }
4908
4911
  function we(e) {
4909
4912
  return `field-${e.replace(/\./g, "-")}`;
4910
4913
  }
4911
- function hm(e, t) {
4914
+ function pm(e, t) {
4912
4915
  return e.title || t.split(".").pop() || t;
4913
4916
  }
4914
- function fc(e) {
4917
+ function mc(e) {
4915
4918
  const t = e["x-hint"];
4916
4919
  return t || e.description;
4917
4920
  }
4918
- function pm(e) {
4921
+ function ym(e) {
4919
4922
  return e == null ? !0 : typeof e == "string" ? e.trim() === "" : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1;
4920
4923
  }
4921
- function ym(...e) {
4924
+ function vm(...e) {
4922
4925
  return e.filter(Boolean).join(".");
4923
4926
  }
4924
- const Ln = new $t();
4925
- function mc(e) {
4927
+ const Kn = new bt();
4928
+ function hc(e) {
4926
4929
  return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
4927
4930
  }
4928
- function hc(e) {
4931
+ function pc(e) {
4929
4932
  try {
4930
4933
  return new URL(e), !0;
4931
4934
  } catch {
4932
4935
  return !1;
4933
4936
  }
4934
4937
  }
4935
- function pc(e, t) {
4938
+ function yc(e, t) {
4936
4939
  let n = null;
4937
4940
  return (...r) => new Promise((s) => {
4938
4941
  n && clearTimeout(n), n = setTimeout(async () => {
@@ -4941,7 +4944,7 @@ function pc(e, t) {
4941
4944
  }, t);
4942
4945
  });
4943
4946
  }
4944
- function Hn(e) {
4947
+ function Bn(e) {
4945
4948
  return typeof e == "boolean" || typeof e == "string" ? e : e && typeof e == "object" && e.valid === !1 ? e.message || "Validation failed" : !0;
4946
4949
  }
4947
4950
  function ye(e, t, n = {}) {
@@ -4959,7 +4962,7 @@ function ye(e, t, n = {}) {
4959
4962
  if (s === "NoValidation")
4960
4963
  return !0;
4961
4964
  const j = r == null ? void 0 : r.schema;
4962
- if (j && Ln.isRequired(j, e) && (T == null || T === ""))
4965
+ if (j && Kn.isRequired(j, e) && (T == null || T === ""))
4963
4966
  return d(
4964
4967
  "required",
4965
4968
  `${t.title || e} is required`
@@ -4985,9 +4988,9 @@ function ye(e, t, n = {}) {
4985
4988
  } catch {
4986
4989
  console.warn("Invalid regex pattern:", t.pattern);
4987
4990
  }
4988
- if (t.format === "email" && !mc(T))
4991
+ if (t.format === "email" && !hc(T))
4989
4992
  return d("format", "Invalid email address");
4990
- if ((t.format === "url" || t.format === "uri") && !hc(T))
4993
+ if ((t.format === "url" || t.format === "uri") && !pc(T))
4991
4994
  return d("format", "Invalid URL");
4992
4995
  }
4993
4996
  }
@@ -5039,12 +5042,12 @@ function ye(e, t, n = {}) {
5039
5042
  if (V)
5040
5043
  try {
5041
5044
  const L = ((x = r == null ? void 0 : r.formValues) == null ? void 0 : x.call(r)) || {}, ie = (r == null ? void 0 : r.context) || {}, ne = V(T, L, ie);
5042
- return ne instanceof Promise ? ne.then(Hn) : Hn(ne);
5045
+ return ne instanceof Promise ? ne.then(Bn) : Bn(ne);
5043
5046
  } catch (L) {
5044
5047
  return console.error("Custom validator error for", e, ":", L), "Validation error";
5045
5048
  }
5046
5049
  return !0;
5047
- }, f = c(), b = f && (o != null && o[e]) ? pc(u, f) : u, { value: $, errorMessage: _, errors: g, setValue: p, setTouched: m, meta: y } = oa(
5050
+ }, f = c(), b = f && (o != null && o[e]) ? yc(u, f) : u, { value: $, errorMessage: _, errors: g, setValue: p, setTouched: m, meta: y } = la(
5048
5051
  e,
5049
5052
  s === "NoValidation" ? void 0 : b,
5050
5053
  {
@@ -5053,8 +5056,8 @@ function ye(e, t, n = {}) {
5053
5056
  validateOnMount: !1
5054
5057
  // Note: VeeValidate will still validate, we just control when errors are displayed
5055
5058
  }
5056
- ), k = B(() => n.label !== void 0 ? n.label : t.title || e), S = B(() => {
5057
- const T = fc(t);
5059
+ ), k = B(() => n.label !== void 0 ? n.label : e === "__root__" ? t.title || "" : t.title || e), S = B(() => {
5060
+ const T = mc(t);
5058
5061
  if (T)
5059
5062
  return r != null && r.hintRenderer ? r.hintRenderer(T, {
5060
5063
  schema: t,
@@ -5067,7 +5070,7 @@ function ye(e, t, n = {}) {
5067
5070
  return T || ((V = (j = r == null ? void 0 : r.componentDefaults) == null ? void 0 : j.hints) == null ? void 0 : V.showMode) || "always";
5068
5071
  }), F = B(() => {
5069
5072
  const T = r == null ? void 0 : r.schema;
5070
- return T ? Ln.isRequired(T, e) : !1;
5073
+ return T ? Kn.isRequired(T, e) : !1;
5071
5074
  }), G = B(() => s === "ValidateAndHide" || s === "NoValidation" ? null : _.value);
5072
5075
  return {
5073
5076
  value: $,
@@ -5082,7 +5085,7 @@ function ye(e, t, n = {}) {
5082
5085
  required: F
5083
5086
  };
5084
5087
  }
5085
- const yc = /* @__PURE__ */ fe({
5088
+ const vc = /* @__PURE__ */ fe({
5086
5089
  __name: "StringField",
5087
5090
  props: {
5088
5091
  schema: { type: Object, required: !0 },
@@ -5109,13 +5112,13 @@ const yc = /* @__PURE__ */ fe({
5109
5112
  for (const [r, s] of t)
5110
5113
  n[r] = s;
5111
5114
  return n;
5112
- }, vc = { class: "quickform-field quickform-string-field" }, _c = ["for"], gc = {
5115
+ }, _c = { class: "quickform-field quickform-string-field" }, gc = ["for"], bc = {
5113
5116
  key: 0,
5114
5117
  class: "quickform-required"
5115
- }, bc = ["id", "disabled", "readonly", "placeholder", "minlength", "maxlength", "aria-describedby", "aria-invalid"], $c = {
5118
+ }, $c = ["id", "disabled", "readonly", "placeholder", "minlength", "maxlength", "aria-describedby", "aria-invalid"], wc = {
5116
5119
  key: 1,
5117
5120
  class: "quickform-input-wrapper"
5118
- }, wc = ["id", "type", "disabled", "readonly", "placeholder", "minlength", "maxlength", "pattern", "aria-describedby", "aria-invalid"], kc = ["aria-label"], Sc = {
5121
+ }, kc = ["id", "type", "disabled", "readonly", "placeholder", "minlength", "maxlength", "pattern", "aria-describedby", "aria-invalid"], Sc = ["aria-label"], Ec = {
5119
5122
  key: 0,
5120
5123
  xmlns: "http://www.w3.org/2000/svg",
5121
5124
  width: "20",
@@ -5126,7 +5129,7 @@ const yc = /* @__PURE__ */ fe({
5126
5129
  "stroke-width": "2",
5127
5130
  "stroke-linecap": "round",
5128
5131
  "stroke-linejoin": "round"
5129
- }, Ec = {
5132
+ }, Pc = {
5130
5133
  key: 1,
5131
5134
  xmlns: "http://www.w3.org/2000/svg",
5132
5135
  width: "20",
@@ -5137,13 +5140,13 @@ const yc = /* @__PURE__ */ fe({
5137
5140
  "stroke-width": "2",
5138
5141
  "stroke-linecap": "round",
5139
5142
  "stroke-linejoin": "round"
5140
- }, Pc = ["id"], Oc = ["innerHTML"], jc = {
5143
+ }, Oc = ["id"], jc = ["innerHTML"], qc = {
5141
5144
  key: 3,
5142
5145
  class: "quickform-error"
5143
5146
  };
5144
- function qc(e, t, n, r, s, a) {
5147
+ function Nc(e, t, n, r, s, a) {
5145
5148
  var o, i;
5146
- return q(), I("div", vc, [
5149
+ return q(), I("div", _c, [
5147
5150
  C("label", {
5148
5151
  for: r.fieldId,
5149
5152
  class: "quickform-label"
@@ -5153,8 +5156,8 @@ function qc(e, t, n, r, s, a) {
5153
5156
  1
5154
5157
  /* TEXT */
5155
5158
  ),
5156
- r.props.schema.required ? (q(), I("span", gc, "*")) : z("v-if", !0)
5157
- ], 8, _c),
5159
+ r.props.schema.required ? (q(), I("span", bc, "*")) : z("v-if", !0)
5160
+ ], 8, gc),
5158
5161
  r.isTextarea ? Oe((q(), I("textarea", {
5159
5162
  key: 0,
5160
5163
  id: r.fieldId,
@@ -5171,14 +5174,14 @@ function qc(e, t, n, r, s, a) {
5171
5174
  onBlur: t[2] || (t[2] = (d) => r.isFocused = !1),
5172
5175
  onMouseenter: t[3] || (t[3] = (d) => r.isHovered = !0),
5173
5176
  onMouseleave: t[4] || (t[4] = (d) => r.isHovered = !1)
5174
- }, null, 40, bc)), [
5177
+ }, null, 40, $c)), [
5175
5178
  [pt, r.value]
5176
- ]) : (q(), I("div", $c, [
5179
+ ]) : (q(), I("div", wc, [
5177
5180
  Oe(C("input", {
5178
5181
  id: r.fieldId,
5179
5182
  "onUpdate:modelValue": t[5] || (t[5] = (d) => r.value = d),
5180
5183
  type: r.inputType,
5181
- class: Bn(["quickform-input", { "quickform-input-with-icon": r.isPassword }]),
5184
+ class: Gn(["quickform-input", { "quickform-input-with-icon": r.isPassword }]),
5182
5185
  disabled: n.disabled,
5183
5186
  readonly: n.readonly,
5184
5187
  placeholder: r.hint,
@@ -5191,7 +5194,7 @@ function qc(e, t, n, r, s, a) {
5191
5194
  onBlur: t[7] || (t[7] = (d) => r.isFocused = !1),
5192
5195
  onMouseenter: t[8] || (t[8] = (d) => r.isHovered = !0),
5193
5196
  onMouseleave: t[9] || (t[9] = (d) => r.isHovered = !1)
5194
- }, null, 42, wc), [
5197
+ }, null, 42, kc), [
5195
5198
  [Sr, r.value]
5196
5199
  ]),
5197
5200
  r.isPassword ? (q(), I("button", {
@@ -5201,7 +5204,7 @@ function qc(e, t, n, r, s, a) {
5201
5204
  "aria-label": r.showPassword ? (o = r.formContext) == null ? void 0 : o.labels.hidePassword : (i = r.formContext) == null ? void 0 : i.labels.showPassword,
5202
5205
  onClick: r.togglePasswordVisibility
5203
5206
  }, [
5204
- r.showPassword ? (q(), I("svg", Sc, [...t[10] || (t[10] = [
5207
+ r.showPassword ? (q(), I("svg", Ec, [...t[10] || (t[10] = [
5205
5208
  C(
5206
5209
  "path",
5207
5210
  { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" },
@@ -5221,7 +5224,7 @@ function qc(e, t, n, r, s, a) {
5221
5224
  -1
5222
5225
  /* CACHED */
5223
5226
  )
5224
- ])])) : (q(), I("svg", Ec, [...t[11] || (t[11] = [
5227
+ ])])) : (q(), I("svg", Pc, [...t[11] || (t[11] = [
5225
5228
  C(
5226
5229
  "path",
5227
5230
  { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" },
@@ -5241,25 +5244,25 @@ function qc(e, t, n, r, s, a) {
5241
5244
  /* CACHED */
5242
5245
  )
5243
5246
  ])]))
5244
- ], 8, kc)) : z("v-if", !0)
5247
+ ], 8, Sc)) : z("v-if", !0)
5245
5248
  ])),
5246
5249
  r.showHint ? (q(), I("div", {
5247
5250
  key: 2,
5248
5251
  id: `${r.fieldId}-hint`,
5249
5252
  class: "quickform-hint"
5250
5253
  }, [
5251
- C("span", { innerHTML: r.hint }, null, 8, Oc)
5252
- ], 8, Pc)) : z("v-if", !0),
5254
+ C("span", { innerHTML: r.hint }, null, 8, jc)
5255
+ ], 8, Oc)) : z("v-if", !0),
5253
5256
  r.errorMessage ? (q(), I(
5254
5257
  "div",
5255
- jc,
5258
+ qc,
5256
5259
  Q(r.errorMessage),
5257
5260
  1
5258
5261
  /* TEXT */
5259
5262
  )) : z("v-if", !0)
5260
5263
  ]);
5261
5264
  }
5262
- const Nc = /* @__PURE__ */ me(yc, [["render", qc], ["__scopeId", "data-v-ad9ab1f4"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/StringField.vue"]]), Ic = /* @__PURE__ */ fe({
5265
+ const Ic = /* @__PURE__ */ me(vc, [["render", Nc], ["__scopeId", "data-v-ad9ab1f4"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/StringField.vue"]]), Mc = /* @__PURE__ */ fe({
5263
5266
  __name: "NumberField",
5264
5267
  props: {
5265
5268
  schema: { type: Object, required: !0 },
@@ -5275,15 +5278,15 @@ const Nc = /* @__PURE__ */ me(yc, [["render", qc], ["__scopeId", "data-v-ad9ab1f
5275
5278
  const n = e, r = st(), s = (r == null ? void 0 : r.validationMode) || "ValidateAndShow", { value: a, errorMessage: o, label: i, hint: d, hintMode: c } = ye(n.path, n.schema, { label: n.label }), u = we(n.path), f = oe(!1), b = oe(!1), $ = B(() => (n.schema.type === "integer", "number")), _ = B(() => n.schema.multipleOf ? n.schema.multipleOf : n.schema.type === "integer" ? 1 : "any"), g = B(() => !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
5279
  return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
5277
5280
  }
5278
- }), Mc = { class: "quickform-field quickform-number-field" }, Tc = ["for"], Rc = {
5281
+ }), Tc = { class: "quickform-field quickform-number-field" }, Rc = ["for"], Ac = {
5279
5282
  key: 0,
5280
5283
  class: "quickform-required"
5281
- }, Ac = ["id", "type", "disabled", "readonly", "placeholder", "min", "max", "step", "aria-describedby", "aria-invalid"], Vc = ["id"], Dc = ["innerHTML"], Cc = {
5284
+ }, Vc = ["id", "type", "disabled", "readonly", "placeholder", "min", "max", "step", "aria-describedby", "aria-invalid"], Dc = ["id"], Cc = ["innerHTML"], Fc = {
5282
5285
  key: 1,
5283
5286
  class: "quickform-error"
5284
5287
  };
5285
- function Fc(e, t, n, r, s, a) {
5286
- return q(), I("div", Mc, [
5288
+ function zc(e, t, n, r, s, a) {
5289
+ return q(), I("div", Tc, [
5287
5290
  C("label", {
5288
5291
  for: r.fieldId,
5289
5292
  class: "quickform-label"
@@ -5293,8 +5296,8 @@ function Fc(e, t, n, r, s, a) {
5293
5296
  1
5294
5297
  /* TEXT */
5295
5298
  ),
5296
- r.props.schema.required ? (q(), I("span", Rc, "*")) : z("v-if", !0)
5297
- ], 8, Tc),
5299
+ r.props.schema.required ? (q(), I("span", Ac, "*")) : z("v-if", !0)
5300
+ ], 8, Rc),
5298
5301
  Oe(C("input", {
5299
5302
  id: r.fieldId,
5300
5303
  "onUpdate:modelValue": t[0] || (t[0] = (o) => r.value = o),
@@ -5312,7 +5315,7 @@ function Fc(e, t, n, r, s, a) {
5312
5315
  onBlur: t[2] || (t[2] = (o) => r.isFocused = !1),
5313
5316
  onMouseenter: t[3] || (t[3] = (o) => r.isHovered = !0),
5314
5317
  onMouseleave: t[4] || (t[4] = (o) => r.isHovered = !1)
5315
- }, null, 40, Ac), [
5318
+ }, null, 40, Vc), [
5316
5319
  [
5317
5320
  Sr,
5318
5321
  r.value,
@@ -5325,18 +5328,18 @@ function Fc(e, t, n, r, s, a) {
5325
5328
  id: `${r.fieldId}-hint`,
5326
5329
  class: "quickform-hint"
5327
5330
  }, [
5328
- C("span", { innerHTML: r.hint }, null, 8, Dc)
5329
- ], 8, Vc)) : z("v-if", !0),
5331
+ C("span", { innerHTML: r.hint }, null, 8, Cc)
5332
+ ], 8, Dc)) : z("v-if", !0),
5330
5333
  r.errorMessage ? (q(), I(
5331
5334
  "div",
5332
- Cc,
5335
+ Fc,
5333
5336
  Q(r.errorMessage),
5334
5337
  1
5335
5338
  /* TEXT */
5336
5339
  )) : z("v-if", !0)
5337
5340
  ]);
5338
5341
  }
5339
- const zc = /* @__PURE__ */ me(Ic, [["render", Fc], ["__scopeId", "data-v-7def4a8b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/NumberField.vue"]]), Uc = /* @__PURE__ */ fe({
5342
+ const Uc = /* @__PURE__ */ me(Mc, [["render", zc], ["__scopeId", "data-v-7def4a8b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/NumberField.vue"]]), Lc = /* @__PURE__ */ fe({
5340
5343
  __name: "BooleanField",
5341
5344
  props: {
5342
5345
  schema: { type: Object, required: !0 },
@@ -5352,15 +5355,15 @@ const zc = /* @__PURE__ */ me(Ic, [["render", Fc], ["__scopeId", "data-v-7def4a8
5352
5355
  const n = e, { value: r, errorMessage: s, label: a, hint: o, hintMode: i } = ye(n.path, n.schema, { label: n.label }), d = we(n.path), c = oe(!1), u = oe(!1), f = B(() => !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
5356
  return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
5354
5357
  }
5355
- }), Lc = { class: "quickform-field quickform-boolean-field" }, Hc = ["for"], Kc = ["id", "disabled", "readonly", "aria-describedby", "aria-invalid"], Bc = { class: "quickform-checkbox-text" }, Jc = {
5358
+ }), Hc = { class: "quickform-field quickform-boolean-field" }, Kc = ["for"], Bc = ["id", "disabled", "readonly", "aria-describedby", "aria-invalid"], Jc = { class: "quickform-checkbox-text" }, Gc = {
5356
5359
  key: 0,
5357
5360
  class: "quickform-required"
5358
- }, Gc = ["id"], xc = ["innerHTML"], Wc = {
5361
+ }, xc = ["id"], Wc = ["innerHTML"], Zc = {
5359
5362
  key: 1,
5360
5363
  class: "quickform-error"
5361
5364
  };
5362
- function Zc(e, t, n, r, s, a) {
5363
- return q(), I("div", Lc, [
5365
+ function Yc(e, t, n, r, s, a) {
5366
+ return q(), I("div", Hc, [
5364
5367
  C("label", {
5365
5368
  for: r.fieldId,
5366
5369
  class: "quickform-checkbox-label",
@@ -5378,35 +5381,35 @@ function Zc(e, t, n, r, s, a) {
5378
5381
  "aria-invalid": !!r.errorMessage,
5379
5382
  onFocus: t[1] || (t[1] = (o) => r.isFocused = !0),
5380
5383
  onBlur: t[2] || (t[2] = (o) => r.isFocused = !1)
5381
- }, null, 40, Kc), [
5382
- [ta, r.value]
5384
+ }, null, 40, Bc), [
5385
+ [na, r.value]
5383
5386
  ]),
5384
- C("span", Bc, [
5387
+ C("span", Jc, [
5385
5388
  je(
5386
5389
  Q(r.label) + " ",
5387
5390
  1
5388
5391
  /* TEXT */
5389
5392
  ),
5390
- r.props.schema.required ? (q(), I("span", Jc, "*")) : z("v-if", !0)
5393
+ r.props.schema.required ? (q(), I("span", Gc, "*")) : z("v-if", !0)
5391
5394
  ])
5392
- ], 40, Hc),
5395
+ ], 40, Kc),
5393
5396
  r.showHint ? (q(), I("div", {
5394
5397
  key: 0,
5395
5398
  id: `${r.fieldId}-hint`,
5396
5399
  class: "quickform-hint"
5397
5400
  }, [
5398
- C("span", { innerHTML: r.hint }, null, 8, xc)
5399
- ], 8, Gc)) : z("v-if", !0),
5401
+ C("span", { innerHTML: r.hint }, null, 8, Wc)
5402
+ ], 8, xc)) : z("v-if", !0),
5400
5403
  r.errorMessage ? (q(), I(
5401
5404
  "div",
5402
- Wc,
5405
+ Zc,
5403
5406
  Q(r.errorMessage),
5404
5407
  1
5405
5408
  /* TEXT */
5406
5409
  )) : z("v-if", !0)
5407
5410
  ]);
5408
5411
  }
5409
- const Yc = /* @__PURE__ */ me(Uc, [["render", Zc], ["__scopeId", "data-v-1ff012c7"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/BooleanField.vue"]]), Qc = /* @__PURE__ */ fe({
5412
+ const Qc = /* @__PURE__ */ me(Lc, [["render", Yc], ["__scopeId", "data-v-1ff012c7"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/BooleanField.vue"]]), Xc = /* @__PURE__ */ fe({
5410
5413
  __name: "EnumField",
5411
5414
  props: {
5412
5415
  schema: { type: Object, required: !0 },
@@ -5446,15 +5449,15 @@ const Yc = /* @__PURE__ */ me(Uc, [["render", Zc], ["__scopeId", "data-v-1ff012c
5446
5449
  }), p = B(() => !o.value || s.value ? !1 : i.value === "always" ? !0 : i.value === "focus" ? f.value : i.value === "hover" ? b.value : !0), m = { props: n, value: r, errorMessage: s, label: a, hint: o, hintMode: i, formContext: d, fieldId: c, datalistId: u, isFocused: f, isHovered: b, options: $, useAutocomplete: _, placeholder: g, showHint: p };
5447
5450
  return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
5448
5451
  }
5449
- }), Xc = { class: "quickform-field quickform-enum-field" }, eu = ["for"], tu = {
5452
+ }), eu = { class: "quickform-field quickform-enum-field" }, tu = ["for"], ru = {
5450
5453
  key: 0,
5451
5454
  class: "quickform-required"
5452
- }, ru = ["id", "disabled", "placeholder", "aria-describedby", "aria-invalid"], nu = ["value"], su = ["id", "disabled", "aria-describedby", "aria-invalid"], au = { value: "" }, ou = ["value"], iu = ["id"], lu = ["innerHTML"], du = {
5455
+ }, nu = ["id", "disabled", "placeholder", "aria-describedby", "aria-invalid"], su = ["value"], au = ["id", "disabled", "aria-describedby", "aria-invalid"], ou = { value: "" }, iu = ["value"], lu = ["id"], du = ["innerHTML"], cu = {
5453
5456
  key: 3,
5454
5457
  class: "quickform-error"
5455
5458
  };
5456
- function cu(e, t, n, r, s, a) {
5457
- return q(), I("div", Xc, [
5459
+ function uu(e, t, n, r, s, a) {
5460
+ return q(), I("div", eu, [
5458
5461
  C("label", {
5459
5462
  for: r.fieldId,
5460
5463
  class: "quickform-label"
@@ -5464,8 +5467,8 @@ function cu(e, t, n, r, s, a) {
5464
5467
  1
5465
5468
  /* TEXT */
5466
5469
  ),
5467
- r.props.schema.required ? (q(), I("span", tu, "*")) : z("v-if", !0)
5468
- ], 8, eu),
5470
+ r.props.schema.required ? (q(), I("span", ru, "*")) : z("v-if", !0)
5471
+ ], 8, tu),
5469
5472
  z(" Use datalist for autocomplete when enabled "),
5470
5473
  r.useAutocomplete ? Oe((q(), I("input", {
5471
5474
  key: 0,
@@ -5481,7 +5484,7 @@ function cu(e, t, n, r, s, a) {
5481
5484
  onBlur: t[2] || (t[2] = (o) => r.isFocused = !1),
5482
5485
  onMouseenter: t[3] || (t[3] = (o) => r.isHovered = !0),
5483
5486
  onMouseleave: t[4] || (t[4] = (o) => r.isHovered = !1)
5484
- }, null, 40, ru)), [
5487
+ }, null, 40, nu)), [
5485
5488
  [pt, r.value]
5486
5489
  ]) : z("v-if", !0),
5487
5490
  C("datalist", { id: r.datalistId }, [
@@ -5491,7 +5494,7 @@ function cu(e, t, n, r, s, a) {
5491
5494
  He(r.options, (o) => (q(), I("option", {
5492
5495
  key: String(o.value),
5493
5496
  value: o.value
5494
- }, Q(o.label), 9, nu))),
5497
+ }, Q(o.label), 9, su))),
5495
5498
  128
5496
5499
  /* KEYED_FRAGMENT */
5497
5500
  ))
@@ -5512,7 +5515,7 @@ function cu(e, t, n, r, s, a) {
5512
5515
  }, [
5513
5516
  C(
5514
5517
  "option",
5515
- au,
5518
+ ou,
5516
5519
  Q(r.placeholder),
5517
5520
  1
5518
5521
  /* TEXT */
@@ -5523,30 +5526,30 @@ function cu(e, t, n, r, s, a) {
5523
5526
  He(r.options, (o) => (q(), I("option", {
5524
5527
  key: String(o.value),
5525
5528
  value: o.value
5526
- }, Q(o.label), 9, ou))),
5529
+ }, Q(o.label), 9, iu))),
5527
5530
  128
5528
5531
  /* KEYED_FRAGMENT */
5529
5532
  ))
5530
- ], 40, su)), [
5531
- [ra, r.value]
5533
+ ], 40, au)), [
5534
+ [sa, r.value]
5532
5535
  ]),
5533
5536
  r.showHint ? (q(), I("div", {
5534
5537
  key: 2,
5535
5538
  id: `${r.fieldId}-hint`,
5536
5539
  class: "quickform-hint"
5537
5540
  }, [
5538
- C("span", { innerHTML: r.hint }, null, 8, lu)
5539
- ], 8, iu)) : z("v-if", !0),
5541
+ C("span", { innerHTML: r.hint }, null, 8, du)
5542
+ ], 8, lu)) : z("v-if", !0),
5540
5543
  r.errorMessage ? (q(), I(
5541
5544
  "div",
5542
- du,
5545
+ cu,
5543
5546
  Q(r.errorMessage),
5544
5547
  1
5545
5548
  /* TEXT */
5546
5549
  )) : z("v-if", !0)
5547
5550
  ]);
5548
5551
  }
5549
- const uu = /* @__PURE__ */ me(Qc, [["render", cu], ["__scopeId", "data-v-666cc49b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/EnumField.vue"]]), fu = /* @__PURE__ */ fe({
5552
+ const fu = /* @__PURE__ */ me(Xc, [["render", uu], ["__scopeId", "data-v-666cc49b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/EnumField.vue"]]), mu = /* @__PURE__ */ fe({
5550
5553
  __name: "DateField",
5551
5554
  props: {
5552
5555
  schema: { type: Object, required: !0 },
@@ -5562,15 +5565,15 @@ const uu = /* @__PURE__ */ me(Qc, [["render", cu], ["__scopeId", "data-v-666cc49
5562
5565
  const n = e, { value: r, errorMessage: s, label: a, hint: o, hintMode: i } = ye(n.path, n.schema, { label: n.label }), d = we(n.path), c = oe(!1), u = oe(!1), f = B(() => n.schema.format === "time" ? "time" : n.schema.format === "date-time" ? "datetime-local" : "date"), b = B(() => !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
5566
  return Object.defineProperty($, "__isScriptSetup", { enumerable: !1, value: !0 }), $;
5564
5567
  }
5565
- }), mu = { class: "quickform-field quickform-date-field" }, hu = ["for"], pu = {
5568
+ }), hu = { class: "quickform-field quickform-date-field" }, pu = ["for"], yu = {
5566
5569
  key: 0,
5567
5570
  class: "quickform-required"
5568
- }, yu = ["id", "type", "disabled", "readonly", "aria-describedby", "aria-invalid"], vu = ["id"], _u = ["innerHTML"], gu = {
5571
+ }, vu = ["id", "type", "disabled", "readonly", "aria-describedby", "aria-invalid"], _u = ["id"], gu = ["innerHTML"], bu = {
5569
5572
  key: 1,
5570
5573
  class: "quickform-error"
5571
5574
  };
5572
- function bu(e, t, n, r, s, a) {
5573
- return q(), I("div", mu, [
5575
+ function $u(e, t, n, r, s, a) {
5576
+ return q(), I("div", hu, [
5574
5577
  C("label", {
5575
5578
  for: r.fieldId,
5576
5579
  class: "quickform-label"
@@ -5580,8 +5583,8 @@ function bu(e, t, n, r, s, a) {
5580
5583
  1
5581
5584
  /* TEXT */
5582
5585
  ),
5583
- r.props.schema.required ? (q(), I("span", pu, "*")) : z("v-if", !0)
5584
- ], 8, hu),
5586
+ r.props.schema.required ? (q(), I("span", yu, "*")) : z("v-if", !0)
5587
+ ], 8, pu),
5585
5588
  Oe(C("input", {
5586
5589
  id: r.fieldId,
5587
5590
  "onUpdate:modelValue": t[0] || (t[0] = (o) => r.value = o),
@@ -5595,7 +5598,7 @@ function bu(e, t, n, r, s, a) {
5595
5598
  onBlur: t[2] || (t[2] = (o) => r.isFocused = !1),
5596
5599
  onMouseenter: t[3] || (t[3] = (o) => r.isHovered = !0),
5597
5600
  onMouseleave: t[4] || (t[4] = (o) => r.isHovered = !1)
5598
- }, null, 40, yu), [
5601
+ }, null, 40, vu), [
5599
5602
  [Sr, r.value]
5600
5603
  ]),
5601
5604
  r.showHint ? (q(), I("div", {
@@ -5603,18 +5606,18 @@ function bu(e, t, n, r, s, a) {
5603
5606
  id: `${r.fieldId}-hint`,
5604
5607
  class: "quickform-hint"
5605
5608
  }, [
5606
- C("span", { innerHTML: r.hint }, null, 8, _u)
5607
- ], 8, vu)) : z("v-if", !0),
5609
+ C("span", { innerHTML: r.hint }, null, 8, gu)
5610
+ ], 8, _u)) : z("v-if", !0),
5608
5611
  r.errorMessage ? (q(), I(
5609
5612
  "div",
5610
- gu,
5613
+ bu,
5611
5614
  Q(r.errorMessage),
5612
5615
  1
5613
5616
  /* TEXT */
5614
5617
  )) : z("v-if", !0)
5615
5618
  ]);
5616
5619
  }
5617
- const $u = /* @__PURE__ */ me(fu, [["render", bu], ["__scopeId", "data-v-e0ddab64"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/DateField.vue"]]), wu = /* @__PURE__ */ fe({
5620
+ const wu = /* @__PURE__ */ me(mu, [["render", $u], ["__scopeId", "data-v-e0ddab64"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/DateField.vue"]]), ku = /* @__PURE__ */ fe({
5618
5621
  __name: "FieldRenderer",
5619
5622
  props: {
5620
5623
  schema: { type: Object, required: !0 },
@@ -5657,11 +5660,11 @@ const $u = /* @__PURE__ */ me(fu, [["render", bu], ["__scopeId", "data-v-e0ddab6
5657
5660
  }), i = { props: n, context: r, isVisible: s, isFieldReadonly: a, component: o };
5658
5661
  return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
5659
5662
  }
5660
- }), ku = {
5663
+ }), Su = {
5661
5664
  key: 1,
5662
5665
  class: "quickform-no-renderer"
5663
5666
  };
5664
- function Su(e, t, n, r, s, a) {
5667
+ function Eu(e, t, n, r, s, a) {
5665
5668
  return q(), I(
5666
5669
  $e,
5667
5670
  null,
@@ -5671,7 +5674,7 @@ function Su(e, t, n, r, s, a) {
5671
5674
  $e,
5672
5675
  { key: 0 },
5673
5676
  [
5674
- r.component ? (q(), yt(na(r.component), {
5677
+ r.component ? (q(), yt(aa(r.component), {
5675
5678
  key: 0,
5676
5679
  schema: n.schema,
5677
5680
  uischema: n.uischema,
@@ -5679,7 +5682,7 @@ function Su(e, t, n, r, s, a) {
5679
5682
  label: n.label,
5680
5683
  disabled: n.disabled || r.context.disabled,
5681
5684
  readonly: r.isFieldReadonly
5682
- }, null, 8, ["schema", "uischema", "path", "label", "disabled", "readonly"])) : (q(), I("div", ku, [
5685
+ }, null, 8, ["schema", "uischema", "path", "label", "disabled", "readonly"])) : (q(), I("div", Su, [
5683
5686
  C(
5684
5687
  "p",
5685
5688
  null,
@@ -5704,7 +5707,7 @@ function Su(e, t, n, r, s, a) {
5704
5707
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
5705
5708
  );
5706
5709
  }
5707
- const wt = /* @__PURE__ */ me(wu, [["render", Su], ["__scopeId", "data-v-abf28e2e"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/FieldRenderer.vue"]]), Eu = /* @__PURE__ */ fe({
5710
+ const $t = /* @__PURE__ */ me(ku, [["render", Eu], ["__scopeId", "data-v-abf28e2e"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/FieldRenderer.vue"]]), Pu = /* @__PURE__ */ fe({
5708
5711
  __name: "ObjectField",
5709
5712
  props: {
5710
5713
  schema: { type: Object, required: !0 },
@@ -5721,42 +5724,42 @@ const wt = /* @__PURE__ */ me(wu, [["render", Su], ["__scopeId", "data-v-abf28e2
5721
5724
  key: c,
5722
5725
  schema: u,
5723
5726
  path: n.path ? `${n.path}.${c}` : c
5724
- })) : []), d = { props: n, label: r, hint: s, errorMessage: a, fieldId: o, properties: i, FieldRenderer: wt };
5727
+ })) : []), d = { props: n, label: r, hint: s, errorMessage: a, fieldId: o, properties: i, FieldRenderer: $t };
5725
5728
  return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
5726
5729
  }
5727
- }), Pu = { class: "quickform-field quickform-object-field" }, Ou = ["id", "aria-describedby"], ju = {
5730
+ }), Ou = { class: "quickform-field quickform-object-field" }, ju = ["id", "aria-describedby"], qu = {
5728
5731
  key: 0,
5729
5732
  class: "quickform-legend"
5730
- }, qu = {
5733
+ }, Nu = {
5731
5734
  key: 0,
5732
5735
  class: "quickform-required"
5733
- }, Nu = ["id"], Iu = ["innerHTML"], Mu = { class: "quickform-object-content" }, Tu = {
5736
+ }, Iu = ["id"], Mu = ["innerHTML"], Tu = { class: "quickform-object-content" }, Ru = {
5734
5737
  key: 2,
5735
5738
  class: "quickform-error"
5736
5739
  };
5737
- function Ru(e, t, n, r, s, a) {
5738
- return q(), I("div", Pu, [
5740
+ function Au(e, t, n, r, s, a) {
5741
+ return q(), I("div", Ou, [
5739
5742
  C("fieldset", {
5740
5743
  id: r.fieldId,
5741
5744
  class: "quickform-fieldset",
5742
5745
  "aria-describedby": r.hint ? `${r.fieldId}-hint` : void 0
5743
5746
  }, [
5744
- r.label ? (q(), I("legend", ju, [
5747
+ r.label ? (q(), I("legend", qu, [
5745
5748
  je(
5746
5749
  Q(r.label) + " ",
5747
5750
  1
5748
5751
  /* TEXT */
5749
5752
  ),
5750
- r.props.schema.required ? (q(), I("span", qu, "*")) : z("v-if", !0)
5753
+ r.props.schema.required ? (q(), I("span", Nu, "*")) : z("v-if", !0)
5751
5754
  ])) : z("v-if", !0),
5752
5755
  r.hint ? (q(), I("div", {
5753
5756
  key: 1,
5754
5757
  id: `${r.fieldId}-hint`,
5755
5758
  class: "quickform-hint quickform-object-hint"
5756
5759
  }, [
5757
- C("span", { innerHTML: r.hint }, null, 8, Iu)
5758
- ], 8, Nu)) : z("v-if", !0),
5759
- C("div", Mu, [
5760
+ C("span", { innerHTML: r.hint }, null, 8, Mu)
5761
+ ], 8, Iu)) : z("v-if", !0),
5762
+ C("div", Tu, [
5760
5763
  (q(!0), I(
5761
5764
  $e,
5762
5765
  null,
@@ -5773,15 +5776,15 @@ function Ru(e, t, n, r, s, a) {
5773
5776
  ]),
5774
5777
  r.errorMessage ? (q(), I(
5775
5778
  "div",
5776
- Tu,
5779
+ Ru,
5777
5780
  Q(r.errorMessage),
5778
5781
  1
5779
5782
  /* TEXT */
5780
5783
  )) : z("v-if", !0)
5781
- ], 8, Ou)
5784
+ ], 8, ju)
5782
5785
  ]);
5783
5786
  }
5784
- const Au = /* @__PURE__ */ me(Eu, [["render", Ru], ["__scopeId", "data-v-8012fc15"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/ObjectField.vue"]]), Vu = /* @__PURE__ */ fe({
5787
+ const Vu = /* @__PURE__ */ me(Pu, [["render", Au], ["__scopeId", "data-v-8012fc15"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/ObjectField.vue"]]), Du = /* @__PURE__ */ fe({
5785
5788
  __name: "ArrayField",
5786
5789
  props: {
5787
5790
  schema: { type: Object, required: !0 },
@@ -5798,7 +5801,7 @@ const Au = /* @__PURE__ */ me(Eu, [["render", Ru], ["__scopeId", "data-v-8012fc1
5798
5801
  n.path,
5799
5802
  n.schema,
5800
5803
  { label: n.label }
5801
- ), i = st(), d = we(n.path), c = new $t(), u = B({
5804
+ ), i = st(), d = we(n.path), c = new bt(), u = B({
5802
5805
  get: () => Array.isArray(r.value) ? r.value : [],
5803
5806
  set: (k) => r.value = k
5804
5807
  }), f = B(() => Array.isArray(n.schema.items) ? n.schema.items[0] : n.schema.items), b = () => {
@@ -5829,45 +5832,45 @@ const Au = /* @__PURE__ */ me(Eu, [["render", Ru], ["__scopeId", "data-v-8012fc1
5829
5832
  }
5830
5833
  }
5831
5834
  return `${((F = f.value) == null ? void 0 : F.title) || "Item"} #${k + 1}`;
5832
- }, FieldRenderer: wt };
5835
+ }, FieldRenderer: $t };
5833
5836
  return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
5834
5837
  }
5835
- }), Du = { class: "quickform-field quickform-array-field" }, Cu = ["id", "aria-describedby"], Fu = {
5838
+ }), Cu = { class: "quickform-field quickform-array-field" }, Fu = ["id", "aria-describedby"], zu = {
5836
5839
  key: 0,
5837
5840
  class: "quickform-legend"
5838
- }, zu = {
5841
+ }, Uu = {
5839
5842
  key: 0,
5840
5843
  class: "quickform-required"
5841
- }, Uu = ["id"], Lu = ["innerHTML"], Hu = { class: "quickform-array-items" }, Ku = { class: "quickform-array-item-content" }, Bu = { class: "quickform-array-item-actions" }, Ju = ["disabled", "onClick"], Gu = ["disabled", "onClick"], xu = ["disabled", "onClick", "title"], Wu = {
5844
+ }, Lu = ["id"], Hu = ["innerHTML"], Ku = { class: "quickform-array-items" }, Bu = { class: "quickform-array-item-content" }, Ju = { class: "quickform-array-item-actions" }, Gu = ["disabled", "onClick"], xu = ["disabled", "onClick"], Wu = ["disabled", "onClick", "title"], Zu = {
5842
5845
  key: 0,
5843
5846
  class: "quickform-array-empty"
5844
- }, Zu = { class: "quickform-array-footer" }, Yu = ["disabled"], Qu = {
5847
+ }, Yu = { class: "quickform-array-footer" }, Qu = ["disabled"], Xu = {
5845
5848
  key: 2,
5846
5849
  class: "quickform-error"
5847
5850
  };
5848
- function Xu(e, t, n, r, s, a) {
5849
- return q(), I("div", Du, [
5851
+ function ef(e, t, n, r, s, a) {
5852
+ return q(), I("div", Cu, [
5850
5853
  C("fieldset", {
5851
5854
  id: r.fieldId,
5852
5855
  class: "quickform-fieldset",
5853
5856
  "aria-describedby": r.hint ? `${r.fieldId}-hint` : void 0
5854
5857
  }, [
5855
- r.label ? (q(), I("legend", Fu, [
5858
+ r.label ? (q(), I("legend", zu, [
5856
5859
  je(
5857
5860
  Q(r.label) + " ",
5858
5861
  1
5859
5862
  /* TEXT */
5860
5863
  ),
5861
- r.props.schema.required ? (q(), I("span", zu, "*")) : z("v-if", !0)
5864
+ r.props.schema.required ? (q(), I("span", Uu, "*")) : z("v-if", !0)
5862
5865
  ])) : z("v-if", !0),
5863
5866
  r.hint ? (q(), I("div", {
5864
5867
  key: 1,
5865
5868
  id: `${r.fieldId}-hint`,
5866
5869
  class: "quickform-hint quickform-array-hint"
5867
5870
  }, [
5868
- C("span", { innerHTML: r.hint }, null, 8, Lu)
5869
- ], 8, Uu)) : z("v-if", !0),
5870
- C("div", Hu, [
5871
+ C("span", { innerHTML: r.hint }, null, 8, Hu)
5872
+ ], 8, Lu)) : z("v-if", !0),
5873
+ C("div", Ku, [
5871
5874
  (q(!0), I(
5872
5875
  $e,
5873
5876
  null,
@@ -5875,8 +5878,8 @@ function Xu(e, t, n, r, s, a) {
5875
5878
  key: i,
5876
5879
  class: "quickform-array-item"
5877
5880
  }, [
5878
- C("div", Ku, [
5879
- Jn(r.FieldRenderer, {
5881
+ C("div", Bu, [
5882
+ xn(r.FieldRenderer, {
5880
5883
  schema: r.itemsSchema,
5881
5884
  path: `${n.path}[${i}]`,
5882
5885
  label: r.getItemLabel(i),
@@ -5884,54 +5887,54 @@ function Xu(e, t, n, r, s, a) {
5884
5887
  readonly: n.readonly
5885
5888
  }, null, 8, ["schema", "path", "label", "disabled", "readonly"])
5886
5889
  ]),
5887
- C("div", Bu, [
5890
+ C("div", Ju, [
5888
5891
  C("button", {
5889
5892
  type: "button",
5890
5893
  class: "quickform-btn-icon",
5891
5894
  disabled: i === 0 || n.disabled || n.readonly,
5892
5895
  onClick: (d) => r.moveItem(i, "up"),
5893
5896
  title: "Move Up"
5894
- }, " ↑ ", 8, Ju),
5897
+ }, " ↑ ", 8, Gu),
5895
5898
  C("button", {
5896
5899
  type: "button",
5897
5900
  class: "quickform-btn-icon",
5898
5901
  disabled: i === r.arrayValue.length - 1 || n.disabled || n.readonly,
5899
5902
  onClick: (d) => r.moveItem(i, "down"),
5900
5903
  title: "Move Down"
5901
- }, " ↓ ", 8, Gu),
5904
+ }, " ↓ ", 8, xu),
5902
5905
  C("button", {
5903
5906
  type: "button",
5904
5907
  class: "quickform-btn-icon quickform-btn-danger",
5905
5908
  disabled: !r.canRemove,
5906
5909
  onClick: (d) => r.removeItem(i),
5907
5910
  title: r.formContext.labels.removeItem
5908
- }, " × ", 8, xu)
5911
+ }, " × ", 8, Wu)
5909
5912
  ])
5910
5913
  ]))),
5911
5914
  128
5912
5915
  /* KEYED_FRAGMENT */
5913
5916
  )),
5914
- r.arrayValue.length === 0 ? (q(), I("div", Wu, " No items ")) : z("v-if", !0)
5917
+ r.arrayValue.length === 0 ? (q(), I("div", Zu, " No items ")) : z("v-if", !0)
5915
5918
  ]),
5916
- C("div", Zu, [
5919
+ C("div", Yu, [
5917
5920
  C("button", {
5918
5921
  type: "button",
5919
5922
  class: "quickform-btn quickform-btn-secondary",
5920
5923
  disabled: !r.canAdd,
5921
5924
  onClick: r.addItem
5922
- }, " + " + Q(r.formContext.labels.addItem), 9, Yu)
5925
+ }, " + " + Q(r.formContext.labels.addItem), 9, Qu)
5923
5926
  ]),
5924
5927
  r.errorMessage ? (q(), I(
5925
5928
  "div",
5926
- Qu,
5929
+ Xu,
5927
5930
  Q(r.errorMessage),
5928
5931
  1
5929
5932
  /* TEXT */
5930
5933
  )) : z("v-if", !0)
5931
- ], 8, Cu)
5934
+ ], 8, Fu)
5932
5935
  ]);
5933
5936
  }
5934
- const ef = /* @__PURE__ */ me(Vu, [["render", Xu], ["__scopeId", "data-v-a0783890"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/ArrayField.vue"]]), tf = /* @__PURE__ */ fe({
5937
+ const tf = /* @__PURE__ */ me(Du, [["render", ef], ["__scopeId", "data-v-a0783890"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/ArrayField.vue"]]), rf = /* @__PURE__ */ fe({
5935
5938
  __name: "KeyValueField",
5936
5939
  props: {
5937
5940
  schema: { type: Object, required: !0 },
@@ -5988,18 +5991,18 @@ const ef = /* @__PURE__ */ me(Vu, [["render", Xu], ["__scopeId", "data-v-a078389
5988
5991
  }, pairs: f, isInternalUpdate: b, addPair: $, removePair: _ };
5989
5992
  return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
5990
5993
  }
5991
- }), rf = { class: "quickform-field quickform-keyvalue-field" }, nf = ["for"], sf = {
5994
+ }), nf = { class: "quickform-field quickform-keyvalue-field" }, sf = ["for"], af = {
5992
5995
  key: 0,
5993
5996
  class: "quickform-required"
5994
- }, af = ["id"], of = ["innerHTML"], lf = { class: "quickform-keyvalue-container" }, df = {
5997
+ }, of = ["id"], lf = ["innerHTML"], df = { class: "quickform-keyvalue-container" }, cf = {
5995
5998
  key: 0,
5996
5999
  class: "quickform-keyvalue-header"
5997
- }, cf = ["onUpdate:modelValue", "disabled", "readonly"], uf = ["onUpdate:modelValue", "disabled", "readonly"], ff = ["disabled", "onClick"], mf = ["disabled"], hf = {
6000
+ }, uf = ["onUpdate:modelValue", "disabled", "readonly"], ff = ["onUpdate:modelValue", "disabled", "readonly"], mf = ["disabled", "onClick"], hf = ["disabled"], pf = {
5998
6001
  key: 2,
5999
6002
  class: "quickform-error"
6000
6003
  };
6001
- function pf(e, t, n, r, s, a) {
6002
- return q(), I("div", rf, [
6004
+ function yf(e, t, n, r, s, a) {
6005
+ return q(), I("div", nf, [
6003
6006
  r.label ? (q(), I("label", {
6004
6007
  key: 0,
6005
6008
  for: r.fieldId,
@@ -6010,17 +6013,17 @@ function pf(e, t, n, r, s, a) {
6010
6013
  1
6011
6014
  /* TEXT */
6012
6015
  ),
6013
- r.required ? (q(), I("span", sf, "*")) : z("v-if", !0)
6014
- ], 8, nf)) : z("v-if", !0),
6016
+ r.required ? (q(), I("span", af, "*")) : z("v-if", !0)
6017
+ ], 8, sf)) : z("v-if", !0),
6015
6018
  r.hint ? (q(), I("div", {
6016
6019
  key: 1,
6017
6020
  id: `${r.fieldId}-hint`,
6018
6021
  class: "quickform-hint"
6019
6022
  }, [
6020
- C("span", { innerHTML: r.hint }, null, 8, of)
6021
- ], 8, af)) : z("v-if", !0),
6022
- C("div", lf, [
6023
- r.pairs.length ? (q(), I("div", df, [...t[0] || (t[0] = [
6023
+ C("span", { innerHTML: r.hint }, null, 8, lf)
6024
+ ], 8, of)) : z("v-if", !0),
6025
+ C("div", df, [
6026
+ r.pairs.length ? (q(), I("div", cf, [...t[0] || (t[0] = [
6024
6027
  C(
6025
6028
  "span",
6026
6029
  { class: "quickform-keyvalue-header-cell" },
@@ -6057,7 +6060,7 @@ function pf(e, t, n, r, s, a) {
6057
6060
  class: "quickform-input quickform-keyvalue-key",
6058
6061
  disabled: n.disabled,
6059
6062
  readonly: n.readonly
6060
- }, null, 8, cf), [
6063
+ }, null, 8, uf), [
6061
6064
  [pt, o.key]
6062
6065
  ]),
6063
6066
  Oe(C("input", {
@@ -6067,7 +6070,7 @@ function pf(e, t, n, r, s, a) {
6067
6070
  class: "quickform-input quickform-keyvalue-value",
6068
6071
  disabled: n.disabled,
6069
6072
  readonly: n.readonly
6070
- }, null, 8, uf), [
6073
+ }, null, 8, ff), [
6071
6074
  [pt, o.value]
6072
6075
  ]),
6073
6076
  C("button", {
@@ -6075,7 +6078,7 @@ function pf(e, t, n, r, s, a) {
6075
6078
  class: "quickform-button quickform-keyvalue-remove",
6076
6079
  disabled: n.disabled || n.readonly,
6077
6080
  onClick: (i) => r.removePair(o.id)
6078
- }, " × ", 8, ff)
6081
+ }, " × ", 8, mf)
6079
6082
  ]))),
6080
6083
  128
6081
6084
  /* KEYED_FRAGMENT */
@@ -6085,18 +6088,18 @@ function pf(e, t, n, r, s, a) {
6085
6088
  class: "quickform-button quickform-keyvalue-add",
6086
6089
  disabled: n.disabled || n.readonly,
6087
6090
  onClick: r.addPair
6088
- }, " + Add Parameter ", 8, mf)
6091
+ }, " + Add Parameter ", 8, hf)
6089
6092
  ]),
6090
6093
  r.errorMessage ? (q(), I(
6091
6094
  "div",
6092
- hf,
6095
+ pf,
6093
6096
  Q(r.errorMessage),
6094
6097
  1
6095
6098
  /* TEXT */
6096
6099
  )) : z("v-if", !0)
6097
6100
  ]);
6098
6101
  }
6099
- const yf = /* @__PURE__ */ me(tf, [["render", pf], ["__scopeId", "data-v-8e716b7d"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/KeyValueField.vue"]]), vf = /* @__PURE__ */ fe({
6102
+ const vf = /* @__PURE__ */ me(rf, [["render", yf], ["__scopeId", "data-v-8e716b7d"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/KeyValueField.vue"]]), _f = /* @__PURE__ */ fe({
6100
6103
  __name: "JsonField",
6101
6104
  props: {
6102
6105
  schema: { type: Object, required: !0 },
@@ -6167,23 +6170,23 @@ const yf = /* @__PURE__ */ me(tf, [["render", pf], ["__scopeId", "data-v-8e716b7
6167
6170
  }), k = { props: n, value: r, setValue: s, label: a, hint: o, errorMessage: i, required: d, fieldId: c, showFormatHint: u, jsonText: f, parseError: b, isInitialized: $, handleInput: _, formatJson: g, handleKeyDown: p, displayError: m, rows: y };
6168
6171
  return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
6169
6172
  }
6170
- }), _f = { class: "quickform-field quickform-json-field" }, gf = {
6173
+ }), gf = { class: "quickform-field quickform-json-field" }, bf = {
6171
6174
  key: 0,
6172
6175
  class: "quickform-label-wrapper"
6173
- }, bf = ["for"], $f = {
6176
+ }, $f = ["for"], wf = {
6174
6177
  key: 0,
6175
6178
  class: "quickform-required"
6176
- }, wf = {
6179
+ }, kf = {
6177
6180
  key: 0,
6178
6181
  class: "quickform-info-icon",
6179
6182
  title: "Press Ctrl+Space to format JSON"
6180
- }, kf = ["id"], Sf = ["innerHTML"], Ef = ["id", "disabled", "readonly", "rows", "aria-describedby", "aria-invalid"], Pf = {
6183
+ }, Sf = ["id"], Ef = ["innerHTML"], Pf = ["id", "disabled", "readonly", "rows", "aria-describedby", "aria-invalid"], Of = {
6181
6184
  key: 2,
6182
6185
  class: "quickform-error"
6183
6186
  };
6184
- function Of(e, t, n, r, s, a) {
6185
- return q(), I("div", _f, [
6186
- r.label ? (q(), I("div", gf, [
6187
+ function jf(e, t, n, r, s, a) {
6188
+ return q(), I("div", gf, [
6189
+ r.label ? (q(), I("div", bf, [
6187
6190
  C("label", {
6188
6191
  for: r.fieldId,
6189
6192
  class: "quickform-label"
@@ -6193,21 +6196,21 @@ function Of(e, t, n, r, s, a) {
6193
6196
  1
6194
6197
  /* TEXT */
6195
6198
  ),
6196
- r.required ? (q(), I("span", $f, "*")) : z("v-if", !0)
6197
- ], 8, bf),
6198
- r.showFormatHint ? (q(), I("span", wf, "ⓘ")) : z("v-if", !0)
6199
+ r.required ? (q(), I("span", wf, "*")) : z("v-if", !0)
6200
+ ], 8, $f),
6201
+ r.showFormatHint ? (q(), I("span", kf, "ⓘ")) : z("v-if", !0)
6199
6202
  ])) : z("v-if", !0),
6200
6203
  r.hint ? (q(), I("div", {
6201
6204
  key: 1,
6202
6205
  id: `${r.fieldId}-hint`,
6203
6206
  class: "quickform-hint"
6204
6207
  }, [
6205
- C("span", { innerHTML: r.hint }, null, 8, Sf)
6206
- ], 8, kf)) : z("v-if", !0),
6208
+ C("span", { innerHTML: r.hint }, null, 8, Ef)
6209
+ ], 8, Sf)) : z("v-if", !0),
6207
6210
  Oe(C("textarea", {
6208
6211
  id: r.fieldId,
6209
6212
  "onUpdate:modelValue": t[0] || (t[0] = (o) => r.jsonText = o),
6210
- class: Bn(["quickform-textarea quickform-json-editor", { "quickform-error-border": r.displayError }]),
6213
+ class: Gn(["quickform-textarea quickform-json-editor", { "quickform-error-border": r.displayError }]),
6211
6214
  disabled: n.disabled,
6212
6215
  readonly: n.readonly,
6213
6216
  rows: r.rows,
@@ -6217,19 +6220,19 @@ function Of(e, t, n, r, s, a) {
6217
6220
  spellcheck: "false",
6218
6221
  onInput: r.handleInput,
6219
6222
  onKeydown: r.handleKeyDown
6220
- }, null, 42, Ef), [
6223
+ }, null, 42, Pf), [
6221
6224
  [pt, r.jsonText]
6222
6225
  ]),
6223
6226
  r.displayError ? (q(), I(
6224
6227
  "div",
6225
- Pf,
6228
+ Of,
6226
6229
  Q(r.displayError),
6227
6230
  1
6228
6231
  /* TEXT */
6229
6232
  )) : z("v-if", !0)
6230
6233
  ]);
6231
6234
  }
6232
- const jf = /* @__PURE__ */ me(vf, [["render", Of], ["__scopeId", "data-v-8122fb79"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/JsonField.vue"]]), qf = /* @__PURE__ */ fe({
6235
+ const qf = /* @__PURE__ */ me(_f, [["render", jf], ["__scopeId", "data-v-8122fb79"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/JsonField.vue"]]), Nf = /* @__PURE__ */ fe({
6233
6236
  __name: "OneOfField",
6234
6237
  props: {
6235
6238
  schema: { type: Object, required: !0 },
@@ -6242,8 +6245,8 @@ const jf = /* @__PURE__ */ me(vf, [["render", Of], ["__scopeId", "data-v-8122fb7
6242
6245
  },
6243
6246
  setup(e, { expose: t }) {
6244
6247
  t();
6245
- const n = e, { value: r, label: s, hint: a, errorMessage: o } = ye(n.path, n.schema, { label: n.label }), i = we(n.path), d = new $t(), c = B(() => n.schema.oneOf || n.schema.anyOf || []), u = oe(0);
6246
- Gn(() => {
6248
+ const n = e, { value: r, label: s, hint: a, errorMessage: o } = ye(n.path, n.schema, { label: n.label }), i = we(n.path), d = new bt(), c = B(() => n.schema.oneOf || n.schema.anyOf || []), u = oe(0);
6249
+ Wn(() => {
6247
6250
  if (r.value) {
6248
6251
  const g = c.value.findIndex((p) => d.validate(p, r.value).valid);
6249
6252
  g !== -1 && (u.value = g);
@@ -6252,42 +6255,42 @@ const jf = /* @__PURE__ */ me(vf, [["render", Of], ["__scopeId", "data-v-8122fb7
6252
6255
  const f = B(() => c.value[u.value]), b = B(() => 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
6256
  const p = Number(g.target.value);
6254
6257
  u.value = p;
6255
- }, FieldRenderer: wt };
6258
+ }, FieldRenderer: $t };
6256
6259
  return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
6257
6260
  }
6258
- }), Nf = { class: "quickform-field quickform-oneof-field" }, If = ["id", "aria-describedby"], Mf = {
6261
+ }), If = { class: "quickform-field quickform-oneof-field" }, Mf = ["id", "aria-describedby"], Tf = {
6259
6262
  key: 0,
6260
6263
  class: "quickform-legend"
6261
- }, Tf = {
6264
+ }, Rf = {
6262
6265
  key: 0,
6263
6266
  class: "quickform-required"
6264
- }, Rf = ["id"], Af = ["innerHTML"], Vf = { class: "quickform-oneof-selector" }, Df = ["value", "disabled"], Cf = ["value"], Ff = { class: "quickform-oneof-content" }, zf = {
6267
+ }, Af = ["id"], Vf = ["innerHTML"], Df = { class: "quickform-oneof-selector" }, Cf = ["value", "disabled"], Ff = ["value"], zf = { class: "quickform-oneof-content" }, Uf = {
6265
6268
  key: 2,
6266
6269
  class: "quickform-error"
6267
6270
  };
6268
- function Uf(e, t, n, r, s, a) {
6269
- return q(), I("div", Nf, [
6271
+ function Lf(e, t, n, r, s, a) {
6272
+ return q(), I("div", If, [
6270
6273
  C("fieldset", {
6271
6274
  id: r.fieldId,
6272
6275
  class: "quickform-fieldset",
6273
6276
  "aria-describedby": r.hint ? `${r.fieldId}-hint` : void 0
6274
6277
  }, [
6275
- r.label ? (q(), I("legend", Mf, [
6278
+ r.label ? (q(), I("legend", Tf, [
6276
6279
  je(
6277
6280
  Q(r.label) + " ",
6278
6281
  1
6279
6282
  /* TEXT */
6280
6283
  ),
6281
- r.props.schema.required ? (q(), I("span", Tf, "*")) : z("v-if", !0)
6284
+ r.props.schema.required ? (q(), I("span", Rf, "*")) : z("v-if", !0)
6282
6285
  ])) : z("v-if", !0),
6283
6286
  r.hint ? (q(), I("div", {
6284
6287
  key: 1,
6285
6288
  id: `${r.fieldId}-hint`,
6286
6289
  class: "quickform-hint quickform-oneof-hint"
6287
6290
  }, [
6288
- C("span", { innerHTML: r.hint }, null, 8, Af)
6289
- ], 8, Rf)) : z("v-if", !0),
6290
- C("div", Vf, [
6291
+ C("span", { innerHTML: r.hint }, null, 8, Vf)
6292
+ ], 8, Af)) : z("v-if", !0),
6293
+ C("div", Df, [
6291
6294
  C("select", {
6292
6295
  value: r.selectedIndex,
6293
6296
  onChange: r.handleOptionChange,
@@ -6300,13 +6303,13 @@ function Uf(e, t, n, r, s, a) {
6300
6303
  He(r.optionLabels, (o, i) => (q(), I("option", {
6301
6304
  key: i,
6302
6305
  value: i
6303
- }, Q(o), 9, Cf))),
6306
+ }, Q(o), 9, Ff))),
6304
6307
  128
6305
6308
  /* KEYED_FRAGMENT */
6306
6309
  ))
6307
- ], 40, Df)
6310
+ ], 40, Cf)
6308
6311
  ]),
6309
- C("div", Ff, [
6312
+ C("div", zf, [
6310
6313
  r.activeSchema ? (q(), yt(r.FieldRenderer, {
6311
6314
  key: 0,
6312
6315
  schema: r.activeSchema,
@@ -6317,15 +6320,15 @@ function Uf(e, t, n, r, s, a) {
6317
6320
  ]),
6318
6321
  r.errorMessage ? (q(), I(
6319
6322
  "div",
6320
- zf,
6323
+ Uf,
6321
6324
  Q(r.errorMessage),
6322
6325
  1
6323
6326
  /* TEXT */
6324
6327
  )) : z("v-if", !0)
6325
- ], 8, If)
6328
+ ], 8, Mf)
6326
6329
  ]);
6327
6330
  }
6328
- const Kn = /* @__PURE__ */ me(qf, [["render", Uf], ["__scopeId", "data-v-dab625e6"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/OneOfField.vue"]]), Lf = /* @__PURE__ */ fe({
6331
+ const Jn = /* @__PURE__ */ me(Nf, [["render", Lf], ["__scopeId", "data-v-dab625e6"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/OneOfField.vue"]]), Hf = /* @__PURE__ */ fe({
6329
6332
  __name: "AllOfField",
6330
6333
  props: {
6331
6334
  schema: { type: Object, required: !0 },
@@ -6338,18 +6341,18 @@ const Kn = /* @__PURE__ */ me(qf, [["render", Uf], ["__scopeId", "data-v-dab625e
6338
6341
  },
6339
6342
  setup(e, { expose: t }) {
6340
6343
  t();
6341
- const n = e, { label: r, hint: s, errorMessage: a } = ye(n.path, n.schema, { label: n.label }), o = we(n.path), i = new $t(), d = B(() => {
6344
+ const n = e, { label: r, hint: s, errorMessage: a } = ye(n.path, n.schema, { label: n.label }), o = we(n.path), i = new bt(), d = B(() => {
6342
6345
  if (!n.schema.allOf) return n.schema;
6343
6346
  const u = { ...n.schema };
6344
6347
  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: wt };
6348
+ }), c = { props: n, label: r, hint: s, errorMessage: a, fieldId: o, schemaUtils: i, mergedSchema: d, FieldRenderer: $t };
6346
6349
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
6347
6350
  }
6348
- }), Hf = { class: "quickform-field quickform-allof-field" };
6349
- function Kf(e, t, n, r, s, a) {
6350
- return q(), I("div", Hf, [
6351
+ }), Kf = { class: "quickform-field quickform-allof-field" };
6352
+ function Bf(e, t, n, r, s, a) {
6353
+ return q(), I("div", Kf, [
6351
6354
  z(" If the merged result is an object, ObjectField might be better, but FieldRenderer will dispatch correctly "),
6352
- Jn(r.FieldRenderer, {
6355
+ xn(r.FieldRenderer, {
6353
6356
  schema: r.mergedSchema,
6354
6357
  path: n.path,
6355
6358
  disabled: n.disabled,
@@ -6358,7 +6361,7 @@ function Kf(e, t, n, r, s, a) {
6358
6361
  }, null, 8, ["schema", "path", "disabled", "readonly", "label"])
6359
6362
  ]);
6360
6363
  }
6361
- const Bf = /* @__PURE__ */ me(Lf, [["render", Kf], ["__scopeId", "data-v-094fd67d"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/AllOfField.vue"]]), Jf = /* @__PURE__ */ fe({
6364
+ const Jf = /* @__PURE__ */ me(Hf, [["render", Bf], ["__scopeId", "data-v-094fd67d"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/AllOfField.vue"]]), Gf = /* @__PURE__ */ fe({
6362
6365
  __name: "HiddenField",
6363
6366
  props: {
6364
6367
  schema: { type: Object, required: !0 },
@@ -6372,14 +6375,14 @@ const Bf = /* @__PURE__ */ me(Lf, [["render", Kf], ["__scopeId", "data-v-094fd67
6372
6375
  setup(e, { expose: t }) {
6373
6376
  t();
6374
6377
  const n = e, { value: r } = ye(n.path, n.schema, { label: n.label });
6375
- Gn(() => {
6378
+ Wn(() => {
6376
6379
  n.schema.const !== void 0 && r.value === void 0 && (r.value = n.schema.const);
6377
6380
  });
6378
6381
  const s = { props: n, value: r };
6379
6382
  return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
6380
6383
  }
6381
- }), Gf = ["value"];
6382
- function xf(e, t, n, r, s, a) {
6384
+ }), xf = ["value"];
6385
+ function Wf(e, t, n, r, s, a) {
6383
6386
  return q(), I(
6384
6387
  $e,
6385
6388
  null,
@@ -6388,70 +6391,70 @@ function xf(e, t, n, r, s, a) {
6388
6391
  C("input", {
6389
6392
  type: "hidden",
6390
6393
  value: r.value
6391
- }, null, 8, Gf)
6394
+ }, null, 8, xf)
6392
6395
  ],
6393
6396
  2112
6394
6397
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
6395
6398
  );
6396
6399
  }
6397
- const Wf = /* @__PURE__ */ me(Jf, [["render", xf], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/HiddenField.vue"]]);
6398
- function Zf() {
6399
- const e = new la();
6400
+ const Zf = /* @__PURE__ */ me(Gf, [["render", Wf], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/HiddenField.vue"]]);
6401
+ function Yf() {
6402
+ const e = new ca();
6400
6403
  return e.register(
6401
6404
  "hidden",
6402
- Wf,
6403
- (t) => he(100, pa(t))
6405
+ Zf,
6406
+ (t) => he(100, va(t))
6404
6407
  ), e.register(
6405
6408
  "string",
6406
- Nc,
6409
+ Ic,
6407
6410
  (t) => he(1, et(t))
6408
6411
  ), e.register(
6409
6412
  "number",
6410
- zc,
6411
- (t) => he(1, da(t))
6413
+ Uc,
6414
+ (t) => he(1, ua(t))
6412
6415
  ), e.register(
6413
6416
  "boolean",
6414
- Yc,
6415
- (t) => he(1, ca(t))
6417
+ Qc,
6418
+ (t) => he(1, fa(t))
6416
6419
  ), e.register(
6417
6420
  "enum",
6418
- uu,
6419
- (t) => he(2, ya(t))
6421
+ fu,
6422
+ (t) => he(2, _a(t))
6420
6423
  ), e.register(
6421
6424
  "date",
6422
- $u,
6423
- (t) => he(2, va(t))
6425
+ wu,
6426
+ (t) => he(2, ga(t))
6424
6427
  ), e.register(
6425
6428
  "keyvalue",
6426
- yf,
6427
- (t) => he(6, ma(t))
6429
+ vf,
6430
+ (t) => he(6, pa(t))
6428
6431
  ), e.register(
6429
6432
  "json",
6430
- jf,
6431
- (t) => he(5, ha(t))
6433
+ qf,
6434
+ (t) => he(5, ya(t))
6432
6435
  ), e.register(
6433
6436
  "object",
6434
- Au,
6435
- (t) => he(1, ua(t))
6437
+ Vu,
6438
+ (t) => he(1, ma(t))
6436
6439
  ), e.register(
6437
6440
  "array",
6438
- ef,
6439
- (t) => he(1, fa(t))
6441
+ tf,
6442
+ (t) => he(1, ha(t))
6440
6443
  ), e.register(
6441
6444
  "oneOf",
6442
- Kn,
6443
- (t) => he(10, xn(t))
6445
+ Jn,
6446
+ (t) => he(10, Zn(t))
6444
6447
  ), e.register(
6445
6448
  "anyOf",
6446
- Kn,
6447
- (t) => he(10, _a(t))
6449
+ Jn,
6450
+ (t) => he(10, ba(t))
6448
6451
  ), e.register(
6449
6452
  "allOf",
6450
- Bf,
6451
- (t) => he(10, ga(t))
6453
+ Jf,
6454
+ (t) => he(10, $a(t))
6452
6455
  ), e;
6453
6456
  }
6454
- const Ce = "__root__", Yf = /* @__PURE__ */ fe({
6457
+ const Ce = "__root__", Qf = /* @__PURE__ */ fe({
6455
6458
  __name: "DynamicForm",
6456
6459
  props: {
6457
6460
  schema: { type: Object, required: !0 },
@@ -6462,9 +6465,9 @@ const Ce = "__root__", Yf = /* @__PURE__ */ fe({
6462
6465
  setup(e, { expose: t, emit: n }) {
6463
6466
  var O, F, G, T;
6464
6467
  t();
6465
- const r = e, s = n, a = new $t(), o = r.options.registry || Zf(), i = B(() => r.schema.type === "object" && !r.schema.properties), d = i.value ? {
6468
+ const r = e, s = n, a = new bt(), o = r.options.registry || Yf(), i = B(() => r.schema.type === "object" && !r.schema.properties), d = i.value ? {
6466
6469
  [Ce]: r.modelValue && typeof r.modelValue == "object" && Object.keys(r.modelValue).length > 0 ? r.modelValue : r.options.useDefaults !== !1 ? a.getDefaultValue(r.schema) : {}
6467
- } : r.options.useDefaults !== !1 ? { ...a.getDefaultValue(r.schema), ...r.modelValue } : { ...r.modelValue }, { handleSubmit: c, values: u, setValues: f, setFieldValue: b, errors: $, meta: _ } = ia({
6470
+ } : r.options.useDefaults !== !1 ? { ...a.getDefaultValue(r.schema), ...r.modelValue } : { ...r.modelValue }, { handleSubmit: c, values: u, setValues: f, setFieldValue: b, errors: $, meta: _ } = da({
6468
6471
  initialValues: d,
6469
6472
  validateOnMount: r.options.validateOnMount ?? !1
6470
6473
  }), g = {
@@ -6488,20 +6491,20 @@ const Ce = "__root__", Yf = /* @__PURE__ */ fe({
6488
6491
  hints: {
6489
6492
  showMode: "always"
6490
6493
  }
6491
- }, m = sa({
6494
+ }, m = oa({
6492
6495
  readonly: B(() => r.options.readonly || !1),
6493
6496
  disabled: B(() => r.options.disabled || !1),
6494
6497
  schema: r.schema,
6495
6498
  // Schema usually doesn't change, but if it does, we might need computed
6496
6499
  rootPath: "",
6497
- registry: aa(o),
6500
+ registry: ia(o),
6498
6501
  // markRaw prevents Vue from making components reactive
6499
6502
  context: B(() => r.options.context || {}),
6500
6503
  validationMode: r.options.validationMode || "ValidateAndShow",
6501
6504
  errorMessages: r.options.errorMessages,
6502
6505
  validators: r.options.validators,
6503
6506
  validatorDebounce: r.options.validatorDebounce,
6504
- formValues: () => i.value ? _n(u[Ce]) : _n(u),
6507
+ formValues: () => i.value ? gn(u[Ce]) : gn(u),
6505
6508
  labels: { ...g, ...r.options.labels },
6506
6509
  componentDefaults: {
6507
6510
  // Start with all custom component defaults from options
@@ -6527,7 +6530,7 @@ const Ce = "__root__", Yf = /* @__PURE__ */ fe({
6527
6530
  quickformsDefaults: r.options.quickformsDefaults || {},
6528
6531
  hintRenderer: r.options.hintRenderer
6529
6532
  });
6530
- uc(m), Le(
6533
+ fc(m), Le(
6531
6534
  () => r.modelValue,
6532
6535
  (j) => {
6533
6536
  if (i.value) {
@@ -6566,11 +6569,11 @@ const Ce = "__root__", Yf = /* @__PURE__ */ fe({
6566
6569
  key: j,
6567
6570
  schema: V,
6568
6571
  path: j
6569
- }))), S = { props: r, emit: s, schemaUtils: a, registry: o, SINGLE_FIELD_PATH: Ce, isSingleField: i, initialValues: d, handleSubmit: c, values: u, setValues: f, setFieldValue: b, errors: $, meta: _, defaultLabels: g, defaultComponentDefaults: p, formContext: m, onSubmit: y, properties: k, FieldRenderer: wt };
6572
+ }))), S = { props: r, emit: s, schemaUtils: a, registry: o, SINGLE_FIELD_PATH: Ce, isSingleField: i, initialValues: d, handleSubmit: c, values: u, setValues: f, setFieldValue: b, errors: $, meta: _, defaultLabels: g, defaultComponentDefaults: p, formContext: m, onSubmit: y, properties: k, FieldRenderer: $t };
6570
6573
  return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
6571
6574
  }
6572
6575
  });
6573
- function Qf(e, t, n, r, s, a) {
6576
+ function Xf(e, t, n, r, s, a) {
6574
6577
  return q(), I(
6575
6578
  "form",
6576
6579
  {
@@ -6612,57 +6615,57 @@ function Qf(e, t, n, r, s, a) {
6612
6615
  /* NEED_HYDRATION */
6613
6616
  );
6614
6617
  }
6615
- const vm = /* @__PURE__ */ me(Yf, [["render", Qf], ["__scopeId", "data-v-cb85e2c1"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/DynamicForm.vue"]]);
6618
+ const _m = /* @__PURE__ */ me(Qf, [["render", Xf], ["__scopeId", "data-v-cb85e2c1"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/DynamicForm.vue"]]);
6616
6619
  export {
6617
- Bf as AllOfField,
6618
- ef as ArrayField,
6619
- Yc as BooleanField,
6620
- la as ComponentRegistry,
6621
- $u as DateField,
6622
- vm as DynamicForm,
6623
- uu as EnumField,
6624
- wt as FieldRenderer,
6625
- Wf as HiddenField,
6626
- jf as JsonField,
6627
- yf as KeyValueField,
6628
- zc as NumberField,
6629
- Au as ObjectField,
6630
- Kn as OneOfField,
6631
- $t as SchemaUtils,
6632
- Nc as StringField,
6633
- um as and,
6634
- Zf as createDefaultRegistry,
6620
+ Jf as AllOfField,
6621
+ tf as ArrayField,
6622
+ Qc as BooleanField,
6623
+ ca as ComponentRegistry,
6624
+ wu as DateField,
6625
+ _m as DynamicForm,
6626
+ fu as EnumField,
6627
+ $t as FieldRenderer,
6628
+ Zf as HiddenField,
6629
+ qf as JsonField,
6630
+ vf as KeyValueField,
6631
+ Uc as NumberField,
6632
+ Vu as ObjectField,
6633
+ Jn as OneOfField,
6634
+ bt as SchemaUtils,
6635
+ Ic as StringField,
6636
+ fm as and,
6637
+ Yf as createDefaultRegistry,
6635
6638
  we as generateFieldId,
6636
- fc as getHint,
6637
- hm as getLabel,
6638
- ga as hasAllOf,
6639
- _a as hasAnyOf,
6640
- dm as hasConditional,
6641
- pa as hasConst,
6642
- cm as hasExtension,
6643
- nm as hasFormat,
6644
- xn as hasOneOf,
6645
- fa as isArrayType,
6646
- ca as isBooleanType,
6647
- va as isDateFormat,
6648
- om as isDateTimeFormat,
6649
- lm as isDiscriminatedUnion,
6650
- sm as isEmailFormat,
6651
- pm as isEmpty,
6652
- ya as isEnumType,
6653
- tm as isIntegerType,
6654
- ha as isJsonType,
6655
- rm as isNullType,
6656
- da as isNumberType,
6657
- ua as isObjectType,
6658
- ma as isRecordType,
6639
+ mc as getHint,
6640
+ pm as getLabel,
6641
+ $a as hasAllOf,
6642
+ ba as hasAnyOf,
6643
+ cm as hasConditional,
6644
+ va as hasConst,
6645
+ um as hasExtension,
6646
+ sm as hasFormat,
6647
+ Zn as hasOneOf,
6648
+ ha as isArrayType,
6649
+ fa as isBooleanType,
6650
+ ga as isDateFormat,
6651
+ im as isDateTimeFormat,
6652
+ dm as isDiscriminatedUnion,
6653
+ am as isEmailFormat,
6654
+ ym as isEmpty,
6655
+ _a as isEnumType,
6656
+ rm as isIntegerType,
6657
+ ya as isJsonType,
6658
+ nm as isNullType,
6659
+ ua as isNumberType,
6660
+ ma as isObjectType,
6661
+ pa as isRecordType,
6659
6662
  et as isStringType,
6660
- am as isTimeFormat,
6661
- im as isUrlFormat,
6662
- ym as joinPath,
6663
- mm as not,
6664
- fm as or,
6665
- uc as provideFormContext,
6663
+ om as isTimeFormat,
6664
+ lm as isUrlFormat,
6665
+ vm as joinPath,
6666
+ hm as not,
6667
+ mm as or,
6668
+ fc as provideFormContext,
6666
6669
  he as rankWith,
6667
6670
  st as useFormContext,
6668
6671
  ye as useFormField