@oomol-lab/open-flow 0.1.0-beta.27 → 0.1.0-beta.29

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.
Files changed (56) hide show
  1. package/dist/browser/{createResourceDialog-BwI2JmPE.js → createResourceDialog-C_8I3Fua.js} +1 -1
  2. package/dist/browser/dist-CoszrK7m.js +4 -0
  3. package/dist/browser/{switch-CyZ96-UF.js → editorComponent-Dq4IKp5R.js} +5787 -651
  4. package/dist/browser/flow-authoring-node.d.ts +6 -2
  5. package/dist/browser/flow-authoring.js +1489 -1638
  6. package/dist/browser/flow-change-schema.d.ts +4 -0
  7. package/dist/browser/flow-change.d.ts +20 -14
  8. package/dist/browser/flow-change.js +1057 -1179
  9. package/dist/browser/flow-notifications.d.ts +6 -2
  10. package/dist/browser/{flowChanges-DhEjA0n5.js → flowChanges-BBtkyUGd.js} +2192 -1975
  11. package/dist/browser/{flowRunInputEditorStore-BBqQIOCR.js → flowRunInputEditorStore-CTORQcA2.js} +378 -429
  12. package/dist/browser/{flowWorkspace-zcweMsLS.js → flowWorkspace-DNmBb3ZW.js} +62886 -66618
  13. package/dist/browser/host-conformance.js +7 -1
  14. package/dist/browser/{inputValues-C5ExCCf0.js → inputValues-BbSVOWQP.js} +2 -2
  15. package/dist/browser/{markdownContent-SIlWuHve.js → markdownContent-D2oHGWc6.js} +24 -24
  16. package/dist/browser/ui.css +1 -1
  17. package/dist/browser/value-DPg_9yXB.js +93 -0
  18. package/dist/browser/workbench.css +1 -1
  19. package/dist/browser/workbench.js +769 -605
  20. package/dist/browser/{workbenchSelect-BUu7CjUA.js → workbenchSelect-CQOvpteT.js} +1507 -1642
  21. package/dist/common/authoringExamples.d.ts +28 -0
  22. package/dist/common/control-api-conformance.js +1449 -1556
  23. package/dist/common/control-api-errors.d.ts +8 -0
  24. package/dist/common/control-api.d.ts +12 -4
  25. package/dist/common/control-api.js +1480 -1560
  26. package/dist/common/control-requests.d.ts +13 -6
  27. package/dist/common/control-requests.js +1886 -1445
  28. package/dist/common/cron-trigger.d.ts +2 -1
  29. package/dist/common/cron-trigger.js +27 -24
  30. package/dist/common/draftOperations.d.ts +14 -0
  31. package/dist/common/engine-contract.d.ts +2 -2
  32. package/dist/common/flow-encoding.d.ts +3 -0
  33. package/dist/common/flow-encoding.js +1488 -1524
  34. package/dist/common/flow-graph.d.ts +18 -2
  35. package/dist/common/flow-notifications.d.ts +6 -2
  36. package/dist/common/flow-schema.d.ts +1 -2
  37. package/dist/common/flow-semantics.d.ts +2 -1
  38. package/dist/common/flow-semantics.js +7809 -7820
  39. package/dist/common/flowInspection.d.ts +16 -0
  40. package/dist/common/integration-trigger.d.ts +2 -2
  41. package/dist/common/integration-trigger.js +8 -8
  42. package/dist/common/mcp.d.ts +2 -1
  43. package/dist/common/mcp.js +985 -1060
  44. package/dist/common/poll-trigger.d.ts +3 -0
  45. package/dist/common/poll-trigger.js +26 -22
  46. package/dist/common/provider-triggers.js +3096 -3126
  47. package/dist/common/run-events.js +1 -0
  48. package/dist/common/runtime-contract.js +3 -3
  49. package/dist/common/scheduler.d.ts +6 -5
  50. package/dist/common/scheduler.js +2318 -2383
  51. package/dist/common/trigger-contract.d.ts +5 -0
  52. package/dist/common/webhook-trigger.d.ts +3 -3
  53. package/dist/common/webhook-trigger.js +64 -18
  54. package/package.json +1 -1
  55. package/dist/browser/dist-B_T-OpQp.js +0 -4
  56. package/dist/browser/languages-C0zQ4GSo.js +0 -42
@@ -1,8 +1,8 @@
1
1
  import { a as e, n as t, o as n, r, t as i } from "./rolldown-runtime-CEFd7nDs.js";
2
2
  import { i as a, l as o } from "./dist-Dz6Nglsd.js";
3
- import { n as s } from "./languages-C0zQ4GSo.js";
3
+ import { a as s, c, n as l, r as u } from "./value-DPg_9yXB.js";
4
4
  //#region ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
5
- var c = /* @__PURE__ */ i(((e) => {
5
+ var d = /* @__PURE__ */ i(((e) => {
6
6
  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;
7
7
  var t = class {};
8
8
  e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
@@ -107,9 +107,9 @@ var c = /* @__PURE__ */ i(((e) => {
107
107
  return new r(e.toString());
108
108
  }
109
109
  e.regexpCode = g;
110
- })), l = /* @__PURE__ */ i(((e) => {
110
+ })), f = /* @__PURE__ */ i(((e) => {
111
111
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
112
- var t = c(), n = class extends Error {
112
+ var t = d(), n = class extends Error {
113
113
  constructor(e) {
114
114
  super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
115
115
  }
@@ -218,9 +218,9 @@ var c = /* @__PURE__ */ i(((e) => {
218
218
  return c;
219
219
  }
220
220
  };
221
- })), u = /* @__PURE__ */ i(((e) => {
221
+ })), p = /* @__PURE__ */ i(((e) => {
222
222
  Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
223
- var t = c(), n = l(), r = c();
223
+ var t = d(), n = f(), r = d();
224
224
  Object.defineProperty(e, "_", {
225
225
  enumerable: !0,
226
226
  get: function() {
@@ -262,7 +262,7 @@ var c = /* @__PURE__ */ i(((e) => {
262
262
  return r.Name;
263
263
  }
264
264
  });
265
- var i = l();
265
+ var i = f();
266
266
  Object.defineProperty(e, "Scope", {
267
267
  enumerable: !0,
268
268
  get: function() {
@@ -329,21 +329,21 @@ var c = /* @__PURE__ */ i(((e) => {
329
329
  get names() {
330
330
  return A(this.lhs instanceof t.Name ? {} : { ...this.lhs.names }, this.rhs);
331
331
  }
332
- }, u = class extends s {
332
+ }, c = class extends s {
333
333
  constructor(e, t, n, r) {
334
334
  super(e, n, r), this.op = t;
335
335
  }
336
336
  render({ _n: e }) {
337
337
  return `${this.lhs} ${this.op}= ${this.rhs};` + e;
338
338
  }
339
- }, d = class extends a {
339
+ }, l = class extends a {
340
340
  constructor(e) {
341
341
  super(), this.label = e, this.names = {};
342
342
  }
343
343
  render({ _n: e }) {
344
344
  return `${this.label}:` + e;
345
345
  }
346
- }, f = class extends a {
346
+ }, u = class extends a {
347
347
  constructor(e) {
348
348
  super(), this.label = e, this.names = {};
349
349
  }
@@ -568,7 +568,7 @@ var c = /* @__PURE__ */ i(((e) => {
568
568
  return this._leafNode(new s(e, t, n));
569
569
  }
570
570
  add(t, n) {
571
- return this._leafNode(new u(t, e.operators.ADD, n));
571
+ return this._leafNode(new c(t, e.operators.ADD, n));
572
572
  }
573
573
  code(e) {
574
574
  return typeof e == "function" ? e() : e !== t.nil && this._leafNode(new m(e)), this;
@@ -622,10 +622,10 @@ var c = /* @__PURE__ */ i(((e) => {
622
622
  return this._endBlockNode(b);
623
623
  }
624
624
  label(e) {
625
- return this._leafNode(new d(e));
625
+ return this._leafNode(new l(e));
626
626
  }
627
627
  break(e) {
628
- return this._leafNode(new f(e));
628
+ return this._leafNode(new u(e));
629
629
  }
630
630
  return(e) {
631
631
  let t = new T();
@@ -733,9 +733,9 @@ var c = /* @__PURE__ */ i(((e) => {
733
733
  function z(e) {
734
734
  return e instanceof t.Name ? e : (0, t._)`(${e})`;
735
735
  }
736
- })), d = /* @__PURE__ */ i(((e) => {
736
+ })), m = /* @__PURE__ */ i(((e) => {
737
737
  Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
738
- var t = u(), n = c();
738
+ var t = p(), n = d();
739
739
  function r(e) {
740
740
  let t = {};
741
741
  for (let n of e) t[n] = !0;
@@ -765,26 +765,26 @@ var c = /* @__PURE__ */ i(((e) => {
765
765
  return !1;
766
766
  }
767
767
  e.schemaHasRulesButRef = s;
768
- function l({ topSchemaRef: e, schemaPath: n }, r, i, a) {
768
+ function c({ topSchemaRef: e, schemaPath: n }, r, i, a) {
769
769
  if (!a) {
770
770
  if (typeof r == "number" || typeof r == "boolean") return r;
771
771
  if (typeof r == "string") return (0, t._)`${r}`;
772
772
  }
773
773
  return (0, t._)`${e}${n}${(0, t.getProperty)(i)}`;
774
774
  }
775
- e.schemaRefOrVal = l;
776
- function d(e) {
775
+ e.schemaRefOrVal = c;
776
+ function l(e) {
777
777
  return m(decodeURIComponent(e));
778
778
  }
779
- e.unescapeFragment = d;
780
- function f(e) {
781
- return encodeURIComponent(p(e));
779
+ e.unescapeFragment = l;
780
+ function u(e) {
781
+ return encodeURIComponent(f(e));
782
782
  }
783
- e.escapeFragment = f;
784
- function p(e) {
783
+ e.escapeFragment = u;
784
+ function f(e) {
785
785
  return typeof e == "number" ? `${e}` : e.replace(/~/g, "~0").replace(/\//g, "~1");
786
786
  }
787
- e.escapeJsonPointer = p;
787
+ e.escapeJsonPointer = f;
788
788
  function m(e) {
789
789
  return e.replace(/~1/g, "/").replace(/~0/g, "~");
790
790
  }
@@ -848,7 +848,7 @@ var c = /* @__PURE__ */ i(((e) => {
848
848
  let i = n === x.Num;
849
849
  return r ? i ? (0, t._)`"[" + ${e} + "]"` : (0, t._)`"['" + ${e} + "']"` : i ? (0, t._)`"/" + ${e}` : (0, t._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
850
850
  }
851
- return r ? (0, t.getProperty)(e).toString() : "/" + p(e);
851
+ return r ? (0, t.getProperty)(e).toString() : "/" + f(e);
852
852
  }
853
853
  e.getErrorPath = S;
854
854
  function C(e, t, n = e.opts.strictSchema) {
@@ -858,9 +858,9 @@ var c = /* @__PURE__ */ i(((e) => {
858
858
  }
859
859
  }
860
860
  e.checkStrictMode = C;
861
- })), f = /* @__PURE__ */ i(((e) => {
861
+ })), h = /* @__PURE__ */ i(((e) => {
862
862
  Object.defineProperty(e, "__esModule", { value: !0 });
863
- var t = u();
863
+ var t = p();
864
864
  e.default = {
865
865
  data: new t.Name("data"),
866
866
  valCxt: new t.Name("valCxt"),
@@ -879,18 +879,18 @@ var c = /* @__PURE__ */ i(((e) => {
879
879
  jsonLen: new t.Name("jsonLen"),
880
880
  jsonPart: new t.Name("jsonPart")
881
881
  };
882
- })), p = /* @__PURE__ */ i(((e) => {
882
+ })), g = /* @__PURE__ */ i(((e) => {
883
883
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
884
- var t = u(), n = d(), r = f();
884
+ var t = p(), n = m(), r = h();
885
885
  e.keywordError = { message: ({ keyword: e }) => (0, t.str)`must pass "${e}" keyword validation` }, e.keyword$DataError = { message: ({ keyword: e, schemaType: n }) => n ? (0, t.str)`"${e}" keyword must be ${n} ($data)` : (0, t.str)`"${e}" keyword is invalid ($data)` };
886
886
  function i(n, r = e.keywordError, i, a) {
887
- let { it: o } = n, { gen: s, compositeRule: u, allErrors: d } = o, f = m(n, r, i);
888
- a ?? (u || d) ? c(s, f) : l(o, (0, t._)`[${f}]`);
887
+ let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
888
+ a ?? (u || f) ? c(s, p) : l(o, (0, t._)`[${p}]`);
889
889
  }
890
890
  e.reportError = i;
891
891
  function a(t, n = e.keywordError, i) {
892
892
  let { it: a } = t, { gen: o, compositeRule: s, allErrors: u } = a;
893
- c(o, m(t, n, i)), s || u || l(a, r.default.vErrors);
893
+ c(o, d(t, n, i)), s || u || l(a, r.default.vErrors);
894
894
  }
895
895
  e.reportExtraError = a;
896
896
  function o(e, n) {
@@ -914,7 +914,7 @@ var c = /* @__PURE__ */ i(((e) => {
914
914
  let { gen: r, validateName: i, schemaEnv: a } = e;
915
915
  a.$async ? r.throw((0, t._)`new ${e.ValidationError}(${n})`) : (r.assign((0, t._)`${i}.errors`, n), r.return(!1));
916
916
  }
917
- var p = {
917
+ var u = {
918
918
  keyword: new t.Name("keyword"),
919
919
  schemaPath: new t.Name("schemaPath"),
920
920
  params: new t.Name("params"),
@@ -923,11 +923,11 @@ var c = /* @__PURE__ */ i(((e) => {
923
923
  schema: new t.Name("schema"),
924
924
  parentSchema: new t.Name("parentSchema")
925
925
  };
926
- function m(e, n, r) {
926
+ function d(e, n, r) {
927
927
  let { createErrors: i } = e.it;
928
- return i === !1 ? (0, t._)`{}` : h(e, n, r);
928
+ return i === !1 ? (0, t._)`{}` : f(e, n, r);
929
929
  }
930
- function h(e, t, n = {}) {
930
+ function f(e, t, n = {}) {
931
931
  let { gen: r, it: i } = e, a = [g(i, n), _(e, n)];
932
932
  return v(e, t, a), r.object(...a);
933
933
  }
@@ -937,15 +937,15 @@ var c = /* @__PURE__ */ i(((e) => {
937
937
  }
938
938
  function _({ keyword: e, it: { errSchemaPath: r } }, { schemaPath: i, parentSchema: a }) {
939
939
  let o = a ? r : (0, t.str)`${r}/${e}`;
940
- return i && (o = (0, t.str)`${o}${(0, n.getErrorPath)(i, n.Type.Str)}`), [p.schemaPath, o];
940
+ return i && (o = (0, t.str)`${o}${(0, n.getErrorPath)(i, n.Type.Str)}`), [u.schemaPath, o];
941
941
  }
942
942
  function v(e, { params: n, message: i }, a) {
943
- let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: u, propertyName: d, topSchemaRef: f, schemaPath: m } = l;
944
- a.push([p.keyword, o], [p.params, typeof n == "function" ? n(e) : n || (0, t._)`{}`]), u.messages && a.push([p.message, typeof i == "function" ? i(e) : i]), u.verbose && a.push([p.schema, c], [p.parentSchema, (0, t._)`${f}${m}`], [r.default.data, s]), d && a.push([p.propertyName, d]);
943
+ let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
944
+ a.push([u.keyword, o], [u.params, typeof n == "function" ? n(e) : n || (0, t._)`{}`]), d.messages && a.push([u.message, typeof i == "function" ? i(e) : i]), d.verbose && a.push([u.schema, c], [u.parentSchema, (0, t._)`${p}${m}`], [r.default.data, s]), f && a.push([u.propertyName, f]);
945
945
  }
946
- })), m = /* @__PURE__ */ i(((e) => {
946
+ })), _ = /* @__PURE__ */ i(((e) => {
947
947
  Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
948
- var t = p(), n = u(), r = f(), i = { message: "boolean schema is false" };
948
+ var t = g(), n = p(), r = h(), i = { message: "boolean schema is false" };
949
949
  function a(e) {
950
950
  let { gen: t, schema: i, validateName: a } = e;
951
951
  i === !1 ? s(e, !1) : typeof i == "object" && i.$async === !0 ? t.return(r.default.data) : (t.assign((0, n._)`${a}.errors`, null), t.return(!0));
@@ -969,7 +969,7 @@ var c = /* @__PURE__ */ i(((e) => {
969
969
  };
970
970
  (0, t.reportError)(o, i, void 0, n);
971
971
  }
972
- })), h = /* @__PURE__ */ i(((e) => {
972
+ })), v = /* @__PURE__ */ i(((e) => {
973
973
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
974
974
  var t = /* @__PURE__ */ new Set([
975
975
  "string",
@@ -1023,7 +1023,7 @@ var c = /* @__PURE__ */ i(((e) => {
1023
1023
  };
1024
1024
  }
1025
1025
  e.getRules = r;
1026
- })), g = /* @__PURE__ */ i(((e) => {
1026
+ })), y = /* @__PURE__ */ i(((e) => {
1027
1027
  Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
1028
1028
  function t({ schema: e, self: t }, r) {
1029
1029
  let i = t.RULES.types[r];
@@ -1038,9 +1038,9 @@ var c = /* @__PURE__ */ i(((e) => {
1038
1038
  return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
1039
1039
  }
1040
1040
  e.shouldUseRule = r;
1041
- })), _ = /* @__PURE__ */ i(((e) => {
1041
+ })), b = /* @__PURE__ */ i(((e) => {
1042
1042
  Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
1043
- var t = h(), n = g(), r = p(), i = u(), a = d(), o;
1043
+ var t = v(), n = y(), r = g(), i = p(), a = m(), o;
1044
1044
  (function(e) {
1045
1045
  e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
1046
1046
  })(o || (e.DataType = o = {}));
@@ -1062,32 +1062,32 @@ var c = /* @__PURE__ */ i(((e) => {
1062
1062
  }
1063
1063
  e.getJSONTypes = c;
1064
1064
  function l(e, t) {
1065
- let { gen: r, data: i, opts: a } = e, s = m(t, a.coerceTypes), c = t.length > 0 && !(s.length === 0 && t.length === 1 && (0, n.schemaHasRulesForType)(e, t[0]));
1065
+ let { gen: r, data: i, opts: a } = e, s = d(t, a.coerceTypes), c = t.length > 0 && !(s.length === 0 && t.length === 1 && (0, n.schemaHasRulesForType)(e, t[0]));
1066
1066
  if (c) {
1067
1067
  let n = b(t, i, a.strictNumbers, o.Wrong);
1068
1068
  r.if(n, () => {
1069
- s.length ? _(e, t, s) : S(e);
1069
+ s.length ? f(e, t, s) : S(e);
1070
1070
  });
1071
1071
  }
1072
1072
  return c;
1073
1073
  }
1074
1074
  e.coerceAndCheckDataType = l;
1075
- var f = /* @__PURE__ */ new Set([
1075
+ var u = /* @__PURE__ */ new Set([
1076
1076
  "string",
1077
1077
  "number",
1078
1078
  "integer",
1079
1079
  "boolean",
1080
1080
  "null"
1081
1081
  ]);
1082
- function m(e, t) {
1083
- return t ? e.filter((e) => f.has(e) || t === "array" && e === "array") : [];
1082
+ function d(e, t) {
1083
+ return t ? e.filter((e) => u.has(e) || t === "array" && e === "array") : [];
1084
1084
  }
1085
- function _(e, t, n) {
1085
+ function f(e, t, n) {
1086
1086
  let { gen: r, data: a, opts: o } = e, s = r.let("dataType", (0, i._)`typeof ${a}`), c = r.let("coerced", (0, i._)`undefined`);
1087
1087
  o.coerceTypes === "array" && r.if((0, i._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`, () => r.assign(a, (0, i._)`${a}[0]`).assign(s, (0, i._)`typeof ${a}`).if(b(t, a, o.strictNumbers), () => r.assign(c, a))), r.if((0, i._)`${c} !== undefined`);
1088
- for (let e of n) (f.has(e) || e === "array" && o.coerceTypes === "array") && l(e);
1088
+ for (let e of n) (u.has(e) || e === "array" && o.coerceTypes === "array") && l(e);
1089
1089
  r.else(), S(e), r.endIf(), r.if((0, i._)`${c} !== undefined`, () => {
1090
- r.assign(a, c), v(e, c);
1090
+ r.assign(a, c), h(e, c);
1091
1091
  });
1092
1092
  function l(e) {
1093
1093
  switch (e) {
@@ -1113,10 +1113,10 @@ var c = /* @__PURE__ */ i(((e) => {
1113
1113
  }
1114
1114
  }
1115
1115
  }
1116
- function v({ gen: e, parentData: t, parentDataProperty: n }, r) {
1116
+ function h({ gen: e, parentData: t, parentDataProperty: n }, r) {
1117
1117
  e.if((0, i._)`${t} !== undefined`, () => e.assign((0, i._)`${t}[${n}]`, r));
1118
1118
  }
1119
- function y(e, t, n, r = o.Correct) {
1119
+ function _(e, t, n, r = o.Correct) {
1120
1120
  let a = r === o.Correct ? i.operators.EQ : i.operators.NEQ, s;
1121
1121
  switch (e) {
1122
1122
  case "null": return (0, i._)`${t} ${a} null`;
@@ -1139,16 +1139,16 @@ var c = /* @__PURE__ */ i(((e) => {
1139
1139
  return (0, i.and)((0, i._)`typeof ${t} == "number"`, e, n ? (0, i._)`isFinite(${t})` : i.nil);
1140
1140
  }
1141
1141
  }
1142
- e.checkDataType = y;
1142
+ e.checkDataType = _;
1143
1143
  function b(e, t, n, r) {
1144
- if (e.length === 1) return y(e[0], t, n, r);
1144
+ if (e.length === 1) return _(e[0], t, n, r);
1145
1145
  let o, s = (0, a.toHash)(e);
1146
1146
  if (s.array && s.object) {
1147
1147
  let e = (0, i._)`typeof ${t} != "object"`;
1148
1148
  o = s.null ? e : (0, i._)`!${t} || ${e}`, delete s.null, delete s.array, delete s.object;
1149
1149
  } else o = i.nil;
1150
1150
  s.number && delete s.integer;
1151
- for (let e in s) o = (0, i.and)(o, y(e, t, n, r));
1151
+ for (let e in s) o = (0, i.and)(o, _(e, t, n, r));
1152
1152
  return o;
1153
1153
  }
1154
1154
  e.checkDataTypes = b;
@@ -1175,9 +1175,9 @@ var c = /* @__PURE__ */ i(((e) => {
1175
1175
  it: e
1176
1176
  };
1177
1177
  }
1178
- })), v = /* @__PURE__ */ i(((e) => {
1178
+ })), x = /* @__PURE__ */ i(((e) => {
1179
1179
  Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
1180
- var t = u(), n = d();
1180
+ var t = p(), n = m();
1181
1181
  function r(e, t) {
1182
1182
  let { properties: n, items: r } = e.schema;
1183
1183
  if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
@@ -1195,18 +1195,18 @@ var c = /* @__PURE__ */ i(((e) => {
1195
1195
  let u = (0, t._)`${l} === undefined`;
1196
1196
  c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
1197
1197
  }
1198
- })), y = /* @__PURE__ */ i(((e) => {
1198
+ })), S = /* @__PURE__ */ i(((e) => {
1199
1199
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateUnion = e.validateArray = e.usePattern = e.callValidateCode = e.schemaProperties = e.allSchemaProperties = e.noPropertyInData = e.propertyInData = e.isOwnProperty = e.hasPropFunc = e.reportMissingProp = e.checkMissingProp = e.checkReportMissingProp = void 0;
1200
- var t = u(), n = d(), r = f(), i = d();
1200
+ var t = p(), n = m(), r = h(), i = m();
1201
1201
  function a(e, n) {
1202
1202
  let { gen: r, data: i, it: a } = e;
1203
- r.if(m(r, i, n, a.opts.ownProperties), () => {
1203
+ r.if(d(r, i, n, a.opts.ownProperties), () => {
1204
1204
  e.setParams({ missingProperty: (0, t._)`${n}` }, !0), e.error();
1205
1205
  });
1206
1206
  }
1207
1207
  e.checkReportMissingProp = a;
1208
1208
  function o({ gen: e, data: n, it: { opts: r } }, i, a) {
1209
- return (0, t.or)(...i.map((i) => (0, t.and)(m(e, n, i, r.ownProperties), (0, t._)`${a} = ${i}`)));
1209
+ return (0, t.or)(...i.map((i) => (0, t.and)(d(e, n, i, r.ownProperties), (0, t._)`${a} = ${i}`)));
1210
1210
  }
1211
1211
  e.checkMissingProp = o;
1212
1212
  function s(e, t) {
@@ -1224,22 +1224,22 @@ var c = /* @__PURE__ */ i(((e) => {
1224
1224
  return (0, t._)`${c(e)}.call(${n}, ${r})`;
1225
1225
  }
1226
1226
  e.isOwnProperty = l;
1227
- function p(e, n, r, i) {
1227
+ function u(e, n, r, i) {
1228
1228
  let a = (0, t._)`${n}${(0, t.getProperty)(r)} !== undefined`;
1229
1229
  return i ? (0, t._)`${a} && ${l(e, n, r)}` : a;
1230
1230
  }
1231
- e.propertyInData = p;
1232
- function m(e, n, r, i) {
1231
+ e.propertyInData = u;
1232
+ function d(e, n, r, i) {
1233
1233
  let a = (0, t._)`${n}${(0, t.getProperty)(r)} === undefined`;
1234
1234
  return i ? (0, t.or)(a, (0, t.not)(l(e, n, r))) : a;
1235
1235
  }
1236
- e.noPropertyInData = m;
1237
- function h(e) {
1236
+ e.noPropertyInData = d;
1237
+ function f(e) {
1238
1238
  return e ? Object.keys(e).filter((e) => e !== "__proto__") : [];
1239
1239
  }
1240
- e.allSchemaProperties = h;
1240
+ e.allSchemaProperties = f;
1241
1241
  function g(e, t) {
1242
- return h(t).filter((r) => !(0, n.alwaysValidSchema)(e, t[r]));
1242
+ return f(t).filter((r) => !(0, n.alwaysValidSchema)(e, t[r]));
1243
1243
  }
1244
1244
  e.schemaProperties = g;
1245
1245
  function _({ schemaCode: e, data: n, it: { gen: i, topSchemaRef: a, schemaPath: o, errorPath: s }, it: c }, l, u, d) {
@@ -1299,26 +1299,26 @@ var c = /* @__PURE__ */ i(((e) => {
1299
1299
  })), e.result(s, () => e.reset(), () => e.error(!0));
1300
1300
  }
1301
1301
  e.validateUnion = x;
1302
- })), b = /* @__PURE__ */ i(((e) => {
1302
+ })), C = /* @__PURE__ */ i(((e) => {
1303
1303
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
1304
- var t = u(), n = f(), r = y(), i = p();
1304
+ var t = p(), n = h(), r = S(), i = g();
1305
1305
  function a(e, n) {
1306
- let { gen: r, keyword: i, schema: a, parentSchema: o, it: s } = e, c = n.macro.call(s.self, a, o, s), l = d(r, i, c);
1306
+ let { gen: r, keyword: i, schema: a, parentSchema: o, it: s } = e, c = n.macro.call(s.self, a, o, s), l = u(r, i, c);
1307
1307
  s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
1308
- let u = r.name("valid");
1308
+ let d = r.name("valid");
1309
1309
  e.subschema({
1310
1310
  schema: c,
1311
1311
  schemaPath: t.nil,
1312
1312
  errSchemaPath: `${s.errSchemaPath}/${i}`,
1313
1313
  topSchemaRef: l,
1314
1314
  compositeRule: !0
1315
- }, u), e.pass(u, () => e.error(!0));
1315
+ }, d), e.pass(d, () => e.error(!0));
1316
1316
  }
1317
1317
  e.macroKeywordCode = a;
1318
1318
  function o(e, i) {
1319
- let { gen: a, keyword: o, schema: u, parentSchema: f, $data: p, it: m } = e;
1319
+ let { gen: a, keyword: o, schema: d, parentSchema: f, $data: p, it: m } = e;
1320
1320
  l(m, i);
1321
- let h = d(a, o, !p && i.compile ? i.compile.call(m.self, u, f, m) : i.validate), g = a.let("valid");
1321
+ let h = u(a, o, !p && i.compile ? i.compile.call(m.self, d, f, m) : i.validate), g = a.let("valid");
1322
1322
  e.block$data(g, _), e.ok(i.valid ?? g);
1323
1323
  function _() {
1324
1324
  if (i.errors === !1) b(), i.modifying && s(e), x(() => e.error());
@@ -1357,18 +1357,18 @@ var c = /* @__PURE__ */ i(((e) => {
1357
1357
  function l({ schemaEnv: e }, t) {
1358
1358
  if (t.async && !e.$async) throw Error("async keyword in sync schema");
1359
1359
  }
1360
- function d(e, n, r) {
1360
+ function u(e, n, r) {
1361
1361
  if (r === void 0) throw Error(`keyword "${n}" failed to compile`);
1362
1362
  return e.scopeValue("keyword", typeof r == "function" ? { ref: r } : {
1363
1363
  ref: r,
1364
1364
  code: (0, t.stringify)(r)
1365
1365
  });
1366
1366
  }
1367
- function m(e, t, n = !1) {
1367
+ function d(e, t, n = !1) {
1368
1368
  return !t.length || t.some((t) => t === "array" ? Array.isArray(e) : t === "object" ? e && typeof e == "object" && !Array.isArray(e) : typeof e == t || n && e === void 0);
1369
1369
  }
1370
- e.validSchemaType = m;
1371
- function h({ schema: e, opts: t, self: n, errSchemaPath: r }, i, a) {
1370
+ e.validSchemaType = d;
1371
+ function f({ schema: e, opts: t, self: n, errSchemaPath: r }, i, a) {
1372
1372
  /* istanbul ignore if */
1373
1373
  if (Array.isArray(i.keyword) ? !i.keyword.includes(a) : i.keyword !== a) throw Error("ajv implementation error");
1374
1374
  let o = i.dependencies;
@@ -1379,10 +1379,10 @@ var c = /* @__PURE__ */ i(((e) => {
1379
1379
  else throw Error(e);
1380
1380
  }
1381
1381
  }
1382
- e.validateKeywordUsage = h;
1383
- })), x = /* @__PURE__ */ i(((e) => {
1382
+ e.validateKeywordUsage = f;
1383
+ })), w = /* @__PURE__ */ i(((e) => {
1384
1384
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
1385
- var t = u(), n = d();
1385
+ var t = p(), n = m();
1386
1386
  function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
1387
1387
  if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
1388
1388
  if (r !== void 0) {
@@ -1426,7 +1426,7 @@ var c = /* @__PURE__ */ i(((e) => {
1426
1426
  r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
1427
1427
  }
1428
1428
  e.extendSubschemaMode = a;
1429
- })), S = /* @__PURE__ */ i(((e, t) => {
1429
+ })), T = /* @__PURE__ */ i(((e, t) => {
1430
1430
  t.exports = function e(t, n) {
1431
1431
  if (t === n) return !0;
1432
1432
  if (t && n && typeof t == "object" && typeof n == "object") {
@@ -1450,7 +1450,7 @@ var c = /* @__PURE__ */ i(((e) => {
1450
1450
  }
1451
1451
  return t !== t && n !== n;
1452
1452
  };
1453
- })), C = /* @__PURE__ */ i(((e, t) => {
1453
+ })), E = /* @__PURE__ */ i(((e, t) => {
1454
1454
  var n = t.exports = function(e, t, n) {
1455
1455
  typeof t == "function" && (n = t, t = {}), n = t.cb || n;
1456
1456
  var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
@@ -1513,9 +1513,9 @@ var c = /* @__PURE__ */ i(((e) => {
1513
1513
  function i(e) {
1514
1514
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
1515
1515
  }
1516
- })), w = /* @__PURE__ */ i(((e) => {
1516
+ })), D = /* @__PURE__ */ i(((e) => {
1517
1517
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
1518
- var t = d(), n = S(), r = C(), i = /* @__PURE__ */ new Set([
1518
+ var t = m(), n = T(), r = E(), i = /* @__PURE__ */ new Set([
1519
1519
  "type",
1520
1520
  "format",
1521
1521
  "pattern",
@@ -1558,36 +1558,36 @@ var c = /* @__PURE__ */ i(((e) => {
1558
1558
  return n;
1559
1559
  }
1560
1560
  function l(e, t = "", n) {
1561
- return n !== !1 && (t = p(t)), u(e, e.parse(t));
1561
+ return n !== !1 && (t = f(t)), u(e, e.parse(t));
1562
1562
  }
1563
1563
  e.getFullPath = l;
1564
1564
  function u(e, t) {
1565
1565
  return e.serialize(t).split("#")[0] + "#";
1566
1566
  }
1567
1567
  e._getFullPath = u;
1568
- var f = /#\/?$/;
1569
- function p(e) {
1570
- return e ? e.replace(f, "") : "";
1568
+ var d = /#\/?$/;
1569
+ function f(e) {
1570
+ return e ? e.replace(d, "") : "";
1571
1571
  }
1572
- e.normalizeId = p;
1573
- function m(e, t, n) {
1574
- return n = p(n), e.resolve(t, n);
1572
+ e.normalizeId = f;
1573
+ function p(e, t, n) {
1574
+ return n = f(n), e.resolve(t, n);
1575
1575
  }
1576
- e.resolveUrl = m;
1576
+ e.resolveUrl = p;
1577
1577
  var h = /^[a-z_][-a-z0-9._]*$/i;
1578
1578
  function g(e, t) {
1579
1579
  if (typeof e == "boolean") return {};
1580
- let { schemaId: i, uriResolver: a } = this.opts, o = p(e[i] || t), s = { "": o }, c = l(a, o, !1), u = {}, d = /* @__PURE__ */ new Set();
1580
+ let { schemaId: i, uriResolver: a } = this.opts, o = f(e[i] || t), s = { "": o }, c = l(a, o, !1), u = {}, d = /* @__PURE__ */ new Set();
1581
1581
  return r(e, { allKeys: !0 }, (e, t, n, r) => {
1582
1582
  if (r === void 0) return;
1583
1583
  let a = c + t, o = s[r];
1584
1584
  typeof e[i] == "string" && (o = l.call(this, e[i])), g.call(this, e.$anchor), g.call(this, e.$dynamicAnchor), s[t] = o;
1585
1585
  function l(t) {
1586
1586
  let n = this.opts.uriResolver.resolve;
1587
- if (t = p(o ? n(o, t) : t), d.has(t)) throw m(t);
1587
+ if (t = f(o ? n(o, t) : t), d.has(t)) throw m(t);
1588
1588
  d.add(t);
1589
1589
  let r = this.refs[t];
1590
- return typeof r == "string" && (r = this.refs[r]), typeof r == "object" ? f(e, r.schema, t) : t !== p(a) && (t[0] === "#" ? (f(e, u[t], t), u[t] = e) : this.refs[t] = a), t;
1590
+ return typeof r == "string" && (r = this.refs[r]), typeof r == "object" ? p(e, r.schema, t) : t !== f(a) && (t[0] === "#" ? (p(e, u[t], t), u[t] = e) : this.refs[t] = a), t;
1591
1591
  }
1592
1592
  function g(e) {
1593
1593
  if (typeof e == "string") {
@@ -1596,7 +1596,7 @@ var c = /* @__PURE__ */ i(((e) => {
1596
1596
  }
1597
1597
  }
1598
1598
  }), u;
1599
- function f(e, t, r) {
1599
+ function p(e, t, r) {
1600
1600
  if (t !== void 0 && !n(e, t)) throw m(r);
1601
1601
  }
1602
1602
  function m(e) {
@@ -1604,26 +1604,26 @@ var c = /* @__PURE__ */ i(((e) => {
1604
1604
  }
1605
1605
  }
1606
1606
  e.getSchemaRefs = g;
1607
- })), T = /* @__PURE__ */ i(((e) => {
1607
+ })), O = /* @__PURE__ */ i(((e) => {
1608
1608
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
1609
- var t = m(), n = _(), r = g(), i = _(), a = v(), o = b(), s = x(), c = u(), l = f(), h = w(), y = d(), S = p();
1610
- function C(e) {
1609
+ var t = _(), n = b(), r = y(), i = b(), a = x(), o = C(), s = w(), c = p(), l = h(), u = D(), d = m(), f = g();
1610
+ function v(e) {
1611
1611
  if (N(e) && (F(e), M(e))) {
1612
1612
  O(e);
1613
1613
  return;
1614
1614
  }
1615
- T(e, () => (0, t.topBoolOrEmptySchema)(e));
1615
+ S(e, () => (0, t.topBoolOrEmptySchema)(e));
1616
1616
  }
1617
- e.validateFunctionCode = C;
1618
- function T({ gen: e, validateName: t, schema: n, schemaEnv: r, opts: i }, a) {
1617
+ e.validateFunctionCode = v;
1618
+ function S({ gen: e, validateName: t, schema: n, schemaEnv: r, opts: i }, a) {
1619
1619
  i.code.es5 ? e.func(t, (0, c._)`${l.default.data}, ${l.default.valCxt}`, r.$async, () => {
1620
- e.code((0, c._)`"use strict"; ${A(n, i)}`), D(e, i), e.code(a);
1621
- }) : e.func(t, (0, c._)`${l.default.data}, ${E(i)}`, r.$async, () => e.code(A(n, i)).code(a));
1620
+ e.code((0, c._)`"use strict"; ${A(n, i)}`), E(e, i), e.code(a);
1621
+ }) : e.func(t, (0, c._)`${l.default.data}, ${T(i)}`, r.$async, () => e.code(A(n, i)).code(a));
1622
1622
  }
1623
- function E(e) {
1623
+ function T(e) {
1624
1624
  return (0, c._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef ? (0, c._)`, ${l.default.dynamicAnchors}={}` : c.nil}}={}`;
1625
1625
  }
1626
- function D(e, t) {
1626
+ function E(e, t) {
1627
1627
  e.if(l.default.valCxt, () => {
1628
1628
  e.var(l.default.instancePath, (0, c._)`${l.default.valCxt}.${l.default.instancePath}`), e.var(l.default.parentData, (0, c._)`${l.default.valCxt}.${l.default.parentData}`), e.var(l.default.parentDataProperty, (0, c._)`${l.default.valCxt}.${l.default.parentDataProperty}`), e.var(l.default.rootData, (0, c._)`${l.default.valCxt}.${l.default.rootData}`), t.dynamicRef && e.var(l.default.dynamicAnchors, (0, c._)`${l.default.valCxt}.${l.default.dynamicAnchors}`);
1629
1629
  }, () => {
@@ -1632,8 +1632,8 @@ var c = /* @__PURE__ */ i(((e) => {
1632
1632
  }
1633
1633
  function O(e) {
1634
1634
  let { schema: t, opts: n, gen: r } = e;
1635
- T(e, () => {
1636
- n.$comment && t.$comment && B(e), R(e), r.let(l.default.vErrors, null), r.let(l.default.errors, 0), n.unevaluated && k(e), I(e), te(e);
1635
+ S(e, () => {
1636
+ n.$comment && t.$comment && V(e), R(e), r.let(l.default.vErrors, null), r.let(l.default.errors, 0), n.unevaluated && k(e), I(e), ee(e);
1637
1637
  });
1638
1638
  }
1639
1639
  function k(e) {
@@ -1661,12 +1661,12 @@ var c = /* @__PURE__ */ i(((e) => {
1661
1661
  }
1662
1662
  function P(e, t) {
1663
1663
  let { schema: n, gen: r, opts: i } = e;
1664
- i.$comment && n.$comment && B(e), z(e), ee(e);
1664
+ i.$comment && n.$comment && V(e), z(e), B(e);
1665
1665
  let a = r.const("_errs", l.default.errors);
1666
1666
  I(e, a), r.var(t, (0, c._)`${a} === ${l.default.errors}`);
1667
1667
  }
1668
1668
  function F(e) {
1669
- (0, y.checkUnknownRules)(e), L(e);
1669
+ (0, d.checkUnknownRules)(e), L(e);
1670
1670
  }
1671
1671
  function I(e, t) {
1672
1672
  if (e.opts.jtd) return H(e, [], !1, t);
@@ -1675,20 +1675,20 @@ var c = /* @__PURE__ */ i(((e) => {
1675
1675
  }
1676
1676
  function L(e) {
1677
1677
  let { schema: t, errSchemaPath: n, opts: r, self: i } = e;
1678
- t.$ref && r.ignoreKeywordsWithRef && (0, y.schemaHasRulesButRef)(t, i.RULES) && i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`);
1678
+ t.$ref && r.ignoreKeywordsWithRef && (0, d.schemaHasRulesButRef)(t, i.RULES) && i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`);
1679
1679
  }
1680
1680
  function R(e) {
1681
1681
  let { schema: t, opts: n } = e;
1682
- t.default !== void 0 && n.useDefaults && n.strictSchema && (0, y.checkStrictMode)(e, "default is ignored in the schema root");
1682
+ t.default !== void 0 && n.useDefaults && n.strictSchema && (0, d.checkStrictMode)(e, "default is ignored in the schema root");
1683
1683
  }
1684
1684
  function z(e) {
1685
1685
  let t = e.schema[e.opts.schemaId];
1686
- t && (e.baseId = (0, h.resolveUrl)(e.opts.uriResolver, e.baseId, t));
1686
+ t && (e.baseId = (0, u.resolveUrl)(e.opts.uriResolver, e.baseId, t));
1687
1687
  }
1688
- function ee(e) {
1688
+ function B(e) {
1689
1689
  if (e.schema.$async && !e.schemaEnv.$async) throw Error("async schema in sync schema");
1690
1690
  }
1691
- function B({ gen: e, schemaEnv: t, schema: n, errSchemaPath: r, opts: i }) {
1691
+ function V({ gen: e, schemaEnv: t, schema: n, errSchemaPath: r, opts: i }) {
1692
1692
  let a = n.$comment;
1693
1693
  if (i.$comment === !0) e.code((0, c._)`${l.default.self}.logger.log(${a})`);
1694
1694
  else if (typeof i.$comment == "function") {
@@ -1696,25 +1696,25 @@ var c = /* @__PURE__ */ i(((e) => {
1696
1696
  e.code((0, c._)`${l.default.self}.opts.$comment(${a}, ${n}, ${i}.schema)`);
1697
1697
  }
1698
1698
  }
1699
- function te(e) {
1699
+ function ee(e) {
1700
1700
  let { gen: t, schemaEnv: n, validateName: r, ValidationError: i, opts: a } = e;
1701
- n.$async ? t.if((0, c._)`${l.default.errors} === 0`, () => t.return(l.default.data), () => t.throw((0, c._)`new ${i}(${l.default.vErrors})`)) : (t.assign((0, c._)`${r}.errors`, l.default.vErrors), a.unevaluated && V(e), t.return((0, c._)`${l.default.errors} === 0`));
1701
+ n.$async ? t.if((0, c._)`${l.default.errors} === 0`, () => t.return(l.default.data), () => t.throw((0, c._)`new ${i}(${l.default.vErrors})`)) : (t.assign((0, c._)`${r}.errors`, l.default.vErrors), a.unevaluated && te(e), t.return((0, c._)`${l.default.errors} === 0`));
1702
1702
  }
1703
- function V({ gen: e, evaluated: t, props: n, items: r }) {
1703
+ function te({ gen: e, evaluated: t, props: n, items: r }) {
1704
1704
  n instanceof c.Name && e.assign((0, c._)`${t}.props`, n), r instanceof c.Name && e.assign((0, c._)`${t}.items`, r);
1705
1705
  }
1706
1706
  function H(e, t, n, a) {
1707
- let { gen: o, schema: s, data: u, allErrors: d, opts: f, self: p } = e, { RULES: m } = p;
1708
- if (s.$ref && (f.ignoreKeywordsWithRef || !(0, y.schemaHasRulesButRef)(s, m))) {
1709
- o.block(() => Y(e, "$ref", m.all.$ref.definition));
1707
+ let { gen: o, schema: s, data: u, allErrors: f, opts: p, self: m } = e, { RULES: h } = m;
1708
+ if (s.$ref && (p.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(s, h))) {
1709
+ o.block(() => Y(e, "$ref", h.all.$ref.definition));
1710
1710
  return;
1711
1711
  }
1712
- f.jtd || ne(e, t), o.block(() => {
1713
- for (let e of m.rules) h(e);
1714
- h(m.post);
1712
+ p.jtd || W(e, t), o.block(() => {
1713
+ for (let e of h.rules) g(e);
1714
+ g(h.post);
1715
1715
  });
1716
- function h(p) {
1717
- (0, r.shouldUseGroup)(s, p) && (p.type ? (o.if((0, i.checkDataType)(p.type, u, f.strictNumbers)), U(e, p), t.length === 1 && t[0] === p.type && n && (o.else(), (0, i.reportTypeError)(e)), o.endIf()) : U(e, p), d || o.if((0, c._)`${l.default.errors} === ${a || 0}`));
1716
+ function g(d) {
1717
+ (0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)), U(e, d), t.length === 1 && t[0] === d.type && n && (o.else(), (0, i.reportTypeError)(e)), o.endIf()) : U(e, d), f || o.if((0, c._)`${l.default.errors} === ${a || 0}`));
1718
1718
  }
1719
1719
  }
1720
1720
  function U(e, t) {
@@ -1723,10 +1723,10 @@ var c = /* @__PURE__ */ i(((e) => {
1723
1723
  for (let n of t.rules) (0, r.shouldUseRule)(i, n) && Y(e, n.keyword, n.definition, t.type);
1724
1724
  });
1725
1725
  }
1726
- function ne(e, t) {
1727
- e.schemaEnv.meta || !e.opts.strictTypes || (W(e, t), e.opts.allowUnionTypes || G(e, t), re(e, e.dataTypes));
1728
- }
1729
1726
  function W(e, t) {
1727
+ e.schemaEnv.meta || !e.opts.strictTypes || (ne(e, t), e.opts.allowUnionTypes || G(e, t), re(e, e.dataTypes));
1728
+ }
1729
+ function ne(e, t) {
1730
1730
  if (t.length) {
1731
1731
  if (!e.dataTypes.length) {
1732
1732
  e.dataTypes = t;
@@ -1763,11 +1763,11 @@ var c = /* @__PURE__ */ i(((e) => {
1763
1763
  }
1764
1764
  function q(e, t) {
1765
1765
  let n = e.schemaEnv.baseId + e.errSchemaPath;
1766
- t += ` at "${n}" (strictTypes)`, (0, y.checkStrictMode)(e, t, e.opts.strictTypes);
1766
+ t += ` at "${n}" (strictTypes)`, (0, d.checkStrictMode)(e, t, e.opts.strictTypes);
1767
1767
  }
1768
1768
  var J = class {
1769
1769
  constructor(e, t, n) {
1770
- if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, y.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema", X(this.$data, e));
1770
+ if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema", Z(this.$data, e));
1771
1771
  else if (this.schemaCode = this.schemaValue, !(0, o.validSchemaType)(this.schema, t.schemaType, t.allowUndefined)) throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);
1772
1772
  ("code" in t ? t.trackErrors : t.errors !== !1) && (this.errsCount = e.gen.const("_errs", l.default.errors));
1773
1773
  }
@@ -1800,14 +1800,14 @@ var c = /* @__PURE__ */ i(((e) => {
1800
1800
  this._error(e, n);
1801
1801
  }
1802
1802
  _error(e, t) {
1803
- (e ? S.reportExtraError : S.reportError)(this, this.def.error, t);
1803
+ (e ? f.reportExtraError : f.reportError)(this, this.def.error, t);
1804
1804
  }
1805
1805
  $dataError() {
1806
- (0, S.reportError)(this, this.def.$dataError || S.keyword$DataError);
1806
+ (0, f.reportError)(this, this.def.$dataError || f.keyword$DataError);
1807
1807
  }
1808
1808
  reset() {
1809
1809
  if (this.errsCount === void 0) throw Error("add \"trackErrors\" to keyword definition");
1810
- (0, S.resetErrorsCount)(this.gen, this.errsCount);
1810
+ (0, f.resetErrorsCount)(this.gen, this.errsCount);
1811
1811
  }
1812
1812
  ok(e) {
1813
1813
  this.allErrors || this.gen.if(e);
@@ -1858,7 +1858,7 @@ var c = /* @__PURE__ */ i(((e) => {
1858
1858
  }
1859
1859
  mergeEvaluated(e, t) {
1860
1860
  let { it: n, gen: r } = this;
1861
- n.opts.unevaluated && (n.props !== !0 && e.props !== void 0 && (n.props = y.mergeEvaluated.props(r, e.props, n.props, t)), n.items !== !0 && e.items !== void 0 && (n.items = y.mergeEvaluated.items(r, e.items, n.items, t)));
1861
+ n.opts.unevaluated && (n.props !== !0 && e.props !== void 0 && (n.props = d.mergeEvaluated.props(r, e.props, n.props, t)), n.items !== !0 && e.items !== void 0 && (n.items = d.mergeEvaluated.items(r, e.items, n.items, t)));
1862
1862
  }
1863
1863
  mergeValidEvaluated(e, t) {
1864
1864
  let { it: n, gen: r } = this;
@@ -1870,15 +1870,15 @@ var c = /* @__PURE__ */ i(((e) => {
1870
1870
  let i = new J(e, n, t);
1871
1871
  "code" in n ? n.code(i, r) : i.$data && n.validate ? (0, o.funcKeywordCode)(i, n) : "macro" in n ? (0, o.macroKeywordCode)(i, n) : (n.compile || n.validate) && (0, o.funcKeywordCode)(i, n);
1872
1872
  }
1873
- var oe = /^\/(?:[^~]|~0|~1)*$/, se = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
1874
- function X(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
1873
+ var X = /^\/(?:[^~]|~0|~1)*$/, oe = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
1874
+ function Z(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
1875
1875
  let i, a;
1876
1876
  if (e === "") return l.default.rootData;
1877
1877
  if (e[0] === "/") {
1878
- if (!oe.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
1878
+ if (!X.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
1879
1879
  i = e, a = l.default.rootData;
1880
1880
  } else {
1881
- let o = se.exec(e);
1881
+ let o = oe.exec(e);
1882
1882
  if (!o) throw Error(`Invalid JSON-pointer: ${e}`);
1883
1883
  let s = +o[1];
1884
1884
  if (i = o[2], i === "#") {
@@ -1889,30 +1889,30 @@ var c = /* @__PURE__ */ i(((e) => {
1889
1889
  if (a = n[t - s], !i) return a;
1890
1890
  }
1891
1891
  let o = a, s = i.split("/");
1892
- for (let e of s) e && (a = (0, c._)`${a}${(0, c.getProperty)((0, y.unescapeJsonPointer)(e))}`, o = (0, c._)`${o} && ${a}`);
1892
+ for (let e of s) e && (a = (0, c._)`${a}${(0, c.getProperty)((0, d.unescapeJsonPointer)(e))}`, o = (0, c._)`${o} && ${a}`);
1893
1893
  return o;
1894
1894
  function u(e, n) {
1895
1895
  return `Cannot access ${e} ${n} levels up, current level is ${t}`;
1896
1896
  }
1897
1897
  }
1898
- e.getData = X;
1899
- })), E = /* @__PURE__ */ i(((e) => {
1898
+ e.getData = Z;
1899
+ })), k = /* @__PURE__ */ i(((e) => {
1900
1900
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
1901
1901
  constructor(e) {
1902
1902
  super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
1903
1903
  }
1904
1904
  };
1905
- })), D = /* @__PURE__ */ i(((e) => {
1905
+ })), A = /* @__PURE__ */ i(((e) => {
1906
1906
  Object.defineProperty(e, "__esModule", { value: !0 });
1907
- var t = w();
1907
+ var t = D();
1908
1908
  e.default = class extends Error {
1909
1909
  constructor(e, n, r, i) {
1910
1910
  super(i || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, t.resolveUrl)(e, n, r), this.missingSchema = (0, t.normalizeId)((0, t.getFullPath)(e, this.missingRef));
1911
1911
  }
1912
1912
  };
1913
- })), O = /* @__PURE__ */ i(((e) => {
1913
+ })), j = /* @__PURE__ */ i(((e) => {
1914
1914
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
1915
- var t = u(), n = E(), r = f(), i = w(), a = d(), o = T(), s = class {
1915
+ var t = p(), n = k(), r = h(), i = D(), a = m(), o = O(), s = class {
1916
1916
  constructor(e) {
1917
1917
  this.refs = {}, this.dynamicAnchors = {};
1918
1918
  let t;
@@ -1921,21 +1921,21 @@ var c = /* @__PURE__ */ i(((e) => {
1921
1921
  };
1922
1922
  e.SchemaEnv = s;
1923
1923
  function c(e) {
1924
- let a = m.call(this, e);
1924
+ let a = d.call(this, e);
1925
1925
  if (a) return a;
1926
- let s = (0, i.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: c, lines: l } = this.opts.code, { ownProperties: u } = this.opts, d = new t.CodeGen(this.scope, {
1926
+ let s = (0, i.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: c, lines: l } = this.opts.code, { ownProperties: u } = this.opts, f = new t.CodeGen(this.scope, {
1927
1927
  es5: c,
1928
1928
  lines: l,
1929
1929
  ownProperties: u
1930
- }), f;
1931
- e.$async && (f = d.scopeValue("Error", {
1930
+ }), p;
1931
+ e.$async && (p = f.scopeValue("Error", {
1932
1932
  ref: n.default,
1933
1933
  code: (0, t._)`require("ajv/dist/runtime/validation_error").default`
1934
1934
  }));
1935
- let p = d.scopeName("validate");
1936
- e.validateName = p;
1935
+ let m = f.scopeName("validate");
1936
+ e.validateName = m;
1937
1937
  let h = {
1938
- gen: d,
1938
+ gen: f,
1939
1939
  allErrors: this.opts.allErrors,
1940
1940
  data: r.default.data,
1941
1941
  parentData: r.default.parentData,
@@ -1945,12 +1945,12 @@ var c = /* @__PURE__ */ i(((e) => {
1945
1945
  dataLevel: 0,
1946
1946
  dataTypes: [],
1947
1947
  definedProperties: /* @__PURE__ */ new Set(),
1948
- topSchemaRef: d.scopeValue("schema", this.opts.code.source === !0 ? {
1948
+ topSchemaRef: f.scopeValue("schema", this.opts.code.source === !0 ? {
1949
1949
  ref: e.schema,
1950
1950
  code: (0, t.stringify)(e.schema)
1951
1951
  } : { ref: e.schema }),
1952
- validateName: p,
1953
- ValidationError: f,
1952
+ validateName: m,
1953
+ ValidationError: p,
1954
1954
  schema: e.schema,
1955
1955
  schemaEnv: e,
1956
1956
  rootId: s,
@@ -1962,14 +1962,14 @@ var c = /* @__PURE__ */ i(((e) => {
1962
1962
  self: this
1963
1963
  }, g;
1964
1964
  try {
1965
- this._compilations.add(e), (0, o.validateFunctionCode)(h), d.optimize(this.opts.code.optimize);
1966
- let n = d.toString();
1967
- g = `${d.scopeRefs(r.default.scope)}return ${n}`, this.opts.code.process && (g = this.opts.code.process(g, e));
1965
+ this._compilations.add(e), (0, o.validateFunctionCode)(h), f.optimize(this.opts.code.optimize);
1966
+ let n = f.toString();
1967
+ g = `${f.scopeRefs(r.default.scope)}return ${n}`, this.opts.code.process && (g = this.opts.code.process(g, e));
1968
1968
  let i = Function(`${r.default.self}`, `${r.default.scope}`, g)(this, this.scope.get());
1969
- if (this.scope.value(p, { ref: i }), i.errors = null, i.schema = e.schema, i.schemaEnv = e, e.$async && (i.$async = !0), this.opts.code.source === !0 && (i.source = {
1970
- validateName: p,
1969
+ if (this.scope.value(m, { ref: i }), i.errors = null, i.schema = e.schema, i.schemaEnv = e, e.$async && (i.$async = !0), this.opts.code.source === !0 && (i.source = {
1970
+ validateName: m,
1971
1971
  validateCode: n,
1972
- scopeValues: d._values
1972
+ scopeValues: f._values
1973
1973
  }), this.opts.unevaluated) {
1974
1974
  let { props: e, items: n } = h;
1975
1975
  i.evaluated = {
@@ -2001,17 +2001,17 @@ var c = /* @__PURE__ */ i(((e) => {
2001
2001
  baseId: t
2002
2002
  }));
2003
2003
  }
2004
- if (a !== void 0) return e.refs[n] = p.call(this, a);
2004
+ if (a !== void 0) return e.refs[n] = u.call(this, a);
2005
2005
  }
2006
2006
  e.resolveRef = l;
2007
- function p(e) {
2007
+ function u(e) {
2008
2008
  return (0, i.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : c.call(this, e);
2009
2009
  }
2010
- function m(e) {
2011
- for (let t of this._compilations) if (h(t, e)) return t;
2010
+ function d(e) {
2011
+ for (let t of this._compilations) if (f(t, e)) return t;
2012
2012
  }
2013
- e.getCompilingSchema = m;
2014
- function h(e, t) {
2013
+ e.getCompilingSchema = d;
2014
+ function f(e, t) {
2015
2015
  return e.schema === t.schema && e.root === t.root && e.baseId === t.baseId;
2016
2016
  }
2017
2017
  function g(e, t) {
@@ -2071,27 +2071,27 @@ var c = /* @__PURE__ */ i(((e) => {
2071
2071
  baseId: t
2072
2072
  }), o.schema !== o.root.schema) return o;
2073
2073
  }
2074
- })), k = /* @__PURE__ */ r({
2075
- $id: () => A,
2074
+ })), M = /* @__PURE__ */ r({
2075
+ $id: () => N,
2076
2076
  additionalProperties: () => !1,
2077
- default: () => F,
2078
- description: () => j,
2079
- properties: () => P,
2080
- required: () => N,
2081
- type: () => M
2082
- }), A, j, M, N, P, F, I = t((() => {
2083
- A = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", j = "Meta-schema for $data reference (JSON AnySchema extension proposal)", M = "object", N = ["$data"], P = { $data: {
2077
+ default: () => R,
2078
+ description: () => P,
2079
+ properties: () => L,
2080
+ required: () => I,
2081
+ type: () => F
2082
+ }), N, P, F, I, L, R, z = t((() => {
2083
+ N = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", P = "Meta-schema for $data reference (JSON AnySchema extension proposal)", F = "object", I = ["$data"], L = { $data: {
2084
2084
  type: "string",
2085
2085
  anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
2086
- } }, F = {
2087
- $id: A,
2088
- description: j,
2089
- type: M,
2090
- required: N,
2091
- properties: P,
2086
+ } }, R = {
2087
+ $id: N,
2088
+ description: P,
2089
+ type: F,
2090
+ required: I,
2091
+ properties: L,
2092
2092
  additionalProperties: !1
2093
2093
  };
2094
- })), L = /* @__PURE__ */ i(((e, t) => {
2094
+ })), B = /* @__PURE__ */ i(((e, t) => {
2095
2095
  var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = 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), i = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u), s = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u), c = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u), l = Array(256);
2096
2096
  {
2097
2097
  let e = "0123456789ABCDEF";
@@ -2437,8 +2437,8 @@ var c = /* @__PURE__ */ i(((e) => {
2437
2437
  normalizeIPv6: y,
2438
2438
  stringArrayToHexStripped: d
2439
2439
  };
2440
- })), R = /* @__PURE__ */ i(((e, t) => {
2441
- var { isUUID: n } = L(), r = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu, i = [
2440
+ })), V = /* @__PURE__ */ i(((e, t) => {
2441
+ var { isUUID: n } = B(), r = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu, i = [
2442
2442
  "http",
2443
2443
  "https",
2444
2444
  "ws",
@@ -2543,8 +2543,8 @@ var c = /* @__PURE__ */ i(((e) => {
2543
2543
  isValidSchemeName: a,
2544
2544
  getSchemeHandler: y
2545
2545
  };
2546
- })), z = /* @__PURE__ */ i(((e, t) => {
2547
- var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } = L(), { SCHEMES: m, getSchemeHandler: h } = R(), g = /^[A-Za-z][A-Za-z0-9+.-]*$/u, _ = "URI scheme is malformed.";
2546
+ })), ee = /* @__PURE__ */ i(((e, t) => {
2547
+ var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } = B(), { SCHEMES: m, getSchemeHandler: h } = V(), g = /^[A-Za-z][A-Za-z0-9+.-]*$/u, _ = "URI scheme is malformed.";
2548
2548
  function v(e) {
2549
2549
  let t = unescape(String(e));
2550
2550
  if (!g.test(t)) throw TypeError(_);
@@ -2708,20 +2708,20 @@ var c = /* @__PURE__ */ i(((e) => {
2708
2708
  parse: M
2709
2709
  };
2710
2710
  t.exports = I, t.exports.default = I, t.exports.fastUri = I;
2711
- })), ee = /* @__PURE__ */ i(((e) => {
2711
+ })), te = /* @__PURE__ */ i(((e) => {
2712
2712
  Object.defineProperty(e, "__esModule", { value: !0 });
2713
- var t = z();
2713
+ var t = ee();
2714
2714
  t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
2715
- })), B = /* @__PURE__ */ i(((t) => {
2715
+ })), H = /* @__PURE__ */ i(((t) => {
2716
2716
  Object.defineProperty(t, "__esModule", { value: !0 }), t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = void 0;
2717
- var n = T();
2717
+ var n = O();
2718
2718
  Object.defineProperty(t, "KeywordCxt", {
2719
2719
  enumerable: !0,
2720
2720
  get: function() {
2721
2721
  return n.KeywordCxt;
2722
2722
  }
2723
2723
  });
2724
- var r = u();
2724
+ var r = p();
2725
2725
  Object.defineProperty(t, "_", {
2726
2726
  enumerable: !0,
2727
2727
  get: function() {
@@ -2753,13 +2753,13 @@ var c = /* @__PURE__ */ i(((e) => {
2753
2753
  return r.CodeGen;
2754
2754
  }
2755
2755
  });
2756
- var i = E(), a = D(), o = h(), s = O(), c = u(), l = w(), f = _(), p = d(), m = (I(), e(k).default), g = ee(), v = (e, t) => new RegExp(e, t);
2757
- v.code = "new RegExp";
2758
- var y = [
2756
+ var i = k(), a = A(), o = v(), s = j(), c = p(), l = D(), u = b(), d = m(), f = (z(), e(M).default), h = te(), g = (e, t) => new RegExp(e, t);
2757
+ g.code = "new RegExp";
2758
+ var _ = [
2759
2759
  "removeAdditional",
2760
2760
  "useDefaults",
2761
2761
  "coerceTypes"
2762
- ], b = /* @__PURE__ */ new Set([
2762
+ ], y = /* @__PURE__ */ new Set([
2763
2763
  "validate",
2764
2764
  "serialize",
2765
2765
  "parse",
@@ -2794,8 +2794,8 @@ var c = /* @__PURE__ */ i(((e) => {
2794
2794
  jsPropertySyntax: "",
2795
2795
  unicode: "\"minLength\"/\"maxLength\" account for unicode characters by default."
2796
2796
  }, C = 200;
2797
- function A(e) {
2798
- let t = e.strict, n = e.code?.optimize, r = n === !0 || n === void 0 ? 1 : n || 0, i = e.code?.regExp ?? v, a = e.uriResolver ?? g.default;
2797
+ function w(e) {
2798
+ let t = e.strict, n = e.code?.optimize, r = n === !0 || n === void 0 ? 1 : n || 0, i = e.code?.regExp ?? g, a = e.uriResolver ?? h.default;
2799
2799
  return {
2800
2800
  strictSchema: e.strictSchema ?? t ?? !0,
2801
2801
  strictNumbers: e.strictNumbers ?? t ?? !0,
@@ -2824,28 +2824,28 @@ var c = /* @__PURE__ */ i(((e) => {
2824
2824
  uriResolver: a
2825
2825
  };
2826
2826
  }
2827
- var j = class {
2827
+ var T = class {
2828
2828
  constructor(e = {}) {
2829
2829
  this.schemas = {}, this.refs = {}, this.formats = Object.create(null), this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), e = this.opts = {
2830
2830
  ...e,
2831
- ...A(e)
2831
+ ...w(e)
2832
2832
  };
2833
2833
  let { es5: t, lines: n } = this.opts.code;
2834
2834
  this.scope = new c.ValueScope({
2835
2835
  scope: {},
2836
- prefixes: b,
2836
+ prefixes: y,
2837
2837
  es5: t,
2838
2838
  lines: n
2839
2839
  }), this.logger = B(e.logger);
2840
2840
  let r = e.validateFormats;
2841
- e.validateFormats = !1, this.RULES = (0, o.getRules)(), M.call(this, x, e, "NOT SUPPORTED"), M.call(this, S, e, "DEPRECATED", "warn"), this._metaOpts = R.call(this), e.formats && F.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), e.keywords && L.call(this, e.keywords), typeof e.meta == "object" && this.addMetaSchema(e.meta), P.call(this), e.validateFormats = r;
2841
+ e.validateFormats = !1, this.RULES = (0, o.getRules)(), E.call(this, x, e, "NOT SUPPORTED"), E.call(this, S, e, "DEPRECATED", "warn"), this._metaOpts = L.call(this), e.formats && F.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), e.keywords && I.call(this, e.keywords), typeof e.meta == "object" && this.addMetaSchema(e.meta), P.call(this), e.validateFormats = r;
2842
2842
  }
2843
2843
  _addVocabularies() {
2844
2844
  this.addKeyword("$async");
2845
2845
  }
2846
2846
  _addDefaultMetaSchema() {
2847
- let { $data: e, meta: t, schemaId: n } = this.opts, r = m;
2848
- n === "id" && (r = { ...m }, r.id = r.$id, delete r.$id), t && e && this.addMetaSchema(r, r[n], !1);
2847
+ let { $data: e, meta: t, schemaId: n } = this.opts, r = f;
2848
+ n === "id" && (r = { ...f }, r.id = r.$id, delete r.$id), t && e && this.addMetaSchema(r, r[n], !1);
2849
2849
  }
2850
2850
  defaultMeta() {
2851
2851
  let { meta: e, schemaId: t } = this.opts;
@@ -2968,14 +2968,14 @@ var c = /* @__PURE__ */ i(((e) => {
2968
2968
  else if (typeof e == "object" && t === void 0) {
2969
2969
  if (t = e, n = t.keyword, Array.isArray(n) && !n.length) throw Error("addKeywords: keyword must be string or non-empty array");
2970
2970
  } else throw Error("invalid addKeywords parameters");
2971
- if (V.call(this, n, t), !t) return (0, p.eachItem)(n, (e) => H.call(this, e)), this;
2972
- ne.call(this, t);
2971
+ if (ee.call(this, n, t), !t) return (0, d.eachItem)(n, (e) => H.call(this, e)), this;
2972
+ W.call(this, t);
2973
2973
  let r = {
2974
2974
  ...t,
2975
- type: (0, f.getJSONTypes)(t.type),
2976
- schemaType: (0, f.getJSONTypes)(t.schemaType)
2975
+ type: (0, u.getJSONTypes)(t.type),
2976
+ schemaType: (0, u.getJSONTypes)(t.schemaType)
2977
2977
  };
2978
- return (0, p.eachItem)(n, r.type.length === 0 ? (e) => H.call(this, e, r) : (e) => r.type.forEach((t) => H.call(this, e, r, t))), this;
2978
+ return (0, d.eachItem)(n, r.type.length === 0 ? (e) => H.call(this, e, r) : (e) => r.type.forEach((t) => H.call(this, e, r, t))), this;
2979
2979
  }
2980
2980
  getKeyword(e) {
2981
2981
  let t = this.RULES.all[e];
@@ -3052,8 +3052,8 @@ var c = /* @__PURE__ */ i(((e) => {
3052
3052
  }
3053
3053
  }
3054
3054
  };
3055
- j.ValidationError = i.default, j.MissingRefError = a.default, t.default = j;
3056
- function M(e, t, n, r = "error") {
3055
+ T.ValidationError = i.default, T.MissingRefError = a.default, t.default = T;
3056
+ function E(e, t, n, r = "error") {
3057
3057
  for (let i in e) {
3058
3058
  let a = i;
3059
3059
  a in t && this.logger[r](`${n}: option ${i}. ${e[a]}`);
@@ -3075,7 +3075,7 @@ var c = /* @__PURE__ */ i(((e) => {
3075
3075
  t && this.addFormat(e, t);
3076
3076
  }
3077
3077
  }
3078
- function L(e) {
3078
+ function I(e) {
3079
3079
  if (Array.isArray(e)) {
3080
3080
  this.addVocabulary(e);
3081
3081
  return;
@@ -3086,28 +3086,28 @@ var c = /* @__PURE__ */ i(((e) => {
3086
3086
  n.keyword ||= t, this.addKeyword(n);
3087
3087
  }
3088
3088
  }
3089
- function R() {
3089
+ function L() {
3090
3090
  let e = { ...this.opts };
3091
- for (let t of y) delete e[t];
3091
+ for (let t of _) delete e[t];
3092
3092
  return e;
3093
3093
  }
3094
- var z = {
3094
+ var R = {
3095
3095
  log() {},
3096
3096
  warn() {},
3097
3097
  error() {}
3098
3098
  };
3099
3099
  function B(e) {
3100
- if (e === !1) return z;
3100
+ if (e === !1) return R;
3101
3101
  if (e === void 0) return console;
3102
3102
  if (e.log && e.warn && e.error) return e;
3103
3103
  throw Error("logger must implement log, warn and error methods");
3104
3104
  }
3105
- var te = /^[a-z_$][a-z0-9_$:-]*$/i;
3106
- function V(e, t) {
3105
+ var V = /^[a-z_$][a-z0-9_$:-]*$/i;
3106
+ function ee(e, t) {
3107
3107
  let { RULES: n } = this;
3108
- if ((0, p.eachItem)(e, (e) => {
3108
+ if ((0, d.eachItem)(e, (e) => {
3109
3109
  if (n.keywords[e]) throw Error(`Keyword ${e} is already defined`);
3110
- if (!te.test(e)) throw Error(`Keyword ${e} has invalid name`);
3110
+ if (!V.test(e)) throw Error(`Keyword ${e} has invalid name`);
3111
3111
  }), t && t.$data && !("code" in t || "validate" in t)) throw Error("$data keyword must have \"code\" or \"validate\" function");
3112
3112
  }
3113
3113
  function H(e, t, n) {
@@ -3123,8 +3123,8 @@ var c = /* @__PURE__ */ i(((e) => {
3123
3123
  keyword: e,
3124
3124
  definition: {
3125
3125
  ...t,
3126
- type: (0, f.getJSONTypes)(t.type),
3127
- schemaType: (0, f.getJSONTypes)(t.schemaType)
3126
+ type: (0, u.getJSONTypes)(t.type),
3127
+ schemaType: (0, u.getJSONTypes)(t.schemaType)
3128
3128
  }
3129
3129
  };
3130
3130
  t.before ? U.call(this, o, s, t.before) : o.rules.push(s), a.all[e] = s, (r = t.implements) == null || r.forEach((e) => this.addKeyword(e));
@@ -3133,24 +3133,24 @@ var c = /* @__PURE__ */ i(((e) => {
3133
3133
  let r = e.rules.findIndex((e) => e.keyword === n);
3134
3134
  r >= 0 ? e.rules.splice(r, 0, t) : (e.rules.push(t), this.logger.warn(`rule ${n} is not defined`));
3135
3135
  }
3136
- function ne(e) {
3136
+ function W(e) {
3137
3137
  let { metaSchema: t } = e;
3138
3138
  t !== void 0 && (e.$data && this.opts.$data && (t = G(t)), e.validateSchema = this.compile(t, !0));
3139
3139
  }
3140
- var W = { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" };
3140
+ var ne = { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" };
3141
3141
  function G(e) {
3142
- return { anyOf: [e, W] };
3142
+ return { anyOf: [e, ne] };
3143
3143
  }
3144
- })), te = /* @__PURE__ */ i(((e) => {
3144
+ })), U = /* @__PURE__ */ i(((e) => {
3145
3145
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
3146
3146
  keyword: "id",
3147
3147
  code() {
3148
3148
  throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
3149
3149
  }
3150
3150
  };
3151
- })), V = /* @__PURE__ */ i(((e) => {
3151
+ })), W = /* @__PURE__ */ i(((e) => {
3152
3152
  Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
3153
- var t = D(), n = y(), r = u(), i = f(), a = O(), o = d(), s = {
3153
+ var t = A(), n = S(), r = p(), i = h(), a = j(), o = m(), s = {
3154
3154
  keyword: "$ref",
3155
3155
  schemaType: "string",
3156
3156
  code(e) {
@@ -3227,9 +3227,9 @@ var c = /* @__PURE__ */ i(((e) => {
3227
3227
  }
3228
3228
  }
3229
3229
  e.callRef = l, e.default = s;
3230
- })), H = /* @__PURE__ */ i(((e) => {
3230
+ })), ne = /* @__PURE__ */ i(((e) => {
3231
3231
  Object.defineProperty(e, "__esModule", { value: !0 });
3232
- var t = te(), n = V();
3232
+ var t = U(), n = W();
3233
3233
  e.default = [
3234
3234
  "$schema",
3235
3235
  "$id",
@@ -3240,9 +3240,9 @@ var c = /* @__PURE__ */ i(((e) => {
3240
3240
  t.default,
3241
3241
  n.default
3242
3242
  ];
3243
- })), U = /* @__PURE__ */ i(((e) => {
3243
+ })), G = /* @__PURE__ */ i(((e) => {
3244
3244
  Object.defineProperty(e, "__esModule", { value: !0 });
3245
- var t = u(), n = t.operators, r = {
3245
+ var t = p(), n = t.operators, r = {
3246
3246
  maximum: {
3247
3247
  okStr: "<=",
3248
3248
  ok: n.LTE,
@@ -3278,9 +3278,9 @@ var c = /* @__PURE__ */ i(((e) => {
3278
3278
  e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
3279
3279
  }
3280
3280
  };
3281
- })), ne = /* @__PURE__ */ i(((e) => {
3281
+ })), re = /* @__PURE__ */ i(((e) => {
3282
3282
  Object.defineProperty(e, "__esModule", { value: !0 });
3283
- var t = u();
3283
+ var t = p();
3284
3284
  e.default = {
3285
3285
  keyword: "multipleOf",
3286
3286
  type: "number",
@@ -3295,7 +3295,7 @@ var c = /* @__PURE__ */ i(((e) => {
3295
3295
  e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
3296
3296
  }
3297
3297
  };
3298
- })), W = /* @__PURE__ */ i(((e) => {
3298
+ })), ie = /* @__PURE__ */ i(((e) => {
3299
3299
  Object.defineProperty(e, "__esModule", { value: !0 });
3300
3300
  function t(e) {
3301
3301
  let t = e.length, n = 0, r = 0, i;
@@ -3303,9 +3303,9 @@ var c = /* @__PURE__ */ i(((e) => {
3303
3303
  return n;
3304
3304
  }
3305
3305
  e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
3306
- })), G = /* @__PURE__ */ i(((e) => {
3306
+ })), K = /* @__PURE__ */ i(((e) => {
3307
3307
  Object.defineProperty(e, "__esModule", { value: !0 });
3308
- var t = u(), n = d(), r = W();
3308
+ var t = p(), n = m(), r = ie();
3309
3309
  e.default = {
3310
3310
  keyword: ["maxLength", "minLength"],
3311
3311
  type: "string",
@@ -3323,9 +3323,9 @@ var c = /* @__PURE__ */ i(((e) => {
3323
3323
  e.fail$data((0, t._)`${l} ${c} ${o}`);
3324
3324
  }
3325
3325
  };
3326
- })), re = /* @__PURE__ */ i(((e) => {
3326
+ })), ae = /* @__PURE__ */ i(((e) => {
3327
3327
  Object.defineProperty(e, "__esModule", { value: !0 });
3328
- var t = y(), n = d(), r = u();
3328
+ var t = S(), n = m(), r = p();
3329
3329
  e.default = {
3330
3330
  keyword: "pattern",
3331
3331
  type: "string",
@@ -3346,9 +3346,9 @@ var c = /* @__PURE__ */ i(((e) => {
3346
3346
  }
3347
3347
  }
3348
3348
  };
3349
- })), ie = /* @__PURE__ */ i(((e) => {
3349
+ })), q = /* @__PURE__ */ i(((e) => {
3350
3350
  Object.defineProperty(e, "__esModule", { value: !0 });
3351
- var t = u();
3351
+ var t = p();
3352
3352
  e.default = {
3353
3353
  keyword: ["maxProperties", "minProperties"],
3354
3354
  type: "object",
@@ -3366,9 +3366,9 @@ var c = /* @__PURE__ */ i(((e) => {
3366
3366
  e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
3367
3367
  }
3368
3368
  };
3369
- })), K = /* @__PURE__ */ i(((e) => {
3369
+ })), J = /* @__PURE__ */ i(((e) => {
3370
3370
  Object.defineProperty(e, "__esModule", { value: !0 });
3371
- var t = y(), n = u(), r = d();
3371
+ var t = S(), n = p(), r = m();
3372
3372
  e.default = {
3373
3373
  keyword: "required",
3374
3374
  type: "object",
@@ -3414,9 +3414,9 @@ var c = /* @__PURE__ */ i(((e) => {
3414
3414
  }
3415
3415
  }
3416
3416
  };
3417
- })), ae = /* @__PURE__ */ i(((e) => {
3417
+ })), Y = /* @__PURE__ */ i(((e) => {
3418
3418
  Object.defineProperty(e, "__esModule", { value: !0 });
3419
- var t = u();
3419
+ var t = p();
3420
3420
  e.default = {
3421
3421
  keyword: ["maxItems", "minItems"],
3422
3422
  type: "array",
@@ -3434,13 +3434,13 @@ var c = /* @__PURE__ */ i(((e) => {
3434
3434
  e.fail$data((0, t._)`${r}.length ${a} ${i}`);
3435
3435
  }
3436
3436
  };
3437
- })), q = /* @__PURE__ */ i(((e) => {
3437
+ })), X = /* @__PURE__ */ i(((e) => {
3438
3438
  Object.defineProperty(e, "__esModule", { value: !0 });
3439
- var t = S();
3439
+ var t = T();
3440
3440
  t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
3441
- })), J = /* @__PURE__ */ i(((e) => {
3441
+ })), oe = /* @__PURE__ */ i(((e) => {
3442
3442
  Object.defineProperty(e, "__esModule", { value: !0 });
3443
- var t = _(), n = u(), r = d(), i = q();
3443
+ var t = b(), n = p(), r = m(), i = X();
3444
3444
  e.default = {
3445
3445
  keyword: "uniqueItems",
3446
3446
  type: "array",
@@ -3481,9 +3481,9 @@ var c = /* @__PURE__ */ i(((e) => {
3481
3481
  }
3482
3482
  }
3483
3483
  };
3484
- })), Y = /* @__PURE__ */ i(((e) => {
3484
+ })), Z = /* @__PURE__ */ i(((e) => {
3485
3485
  Object.defineProperty(e, "__esModule", { value: !0 });
3486
- var t = u(), n = d(), r = q();
3486
+ var t = p(), n = m(), r = X();
3487
3487
  e.default = {
3488
3488
  keyword: "const",
3489
3489
  $data: !0,
@@ -3496,9 +3496,9 @@ var c = /* @__PURE__ */ i(((e) => {
3496
3496
  o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
3497
3497
  }
3498
3498
  };
3499
- })), oe = /* @__PURE__ */ i(((e) => {
3499
+ })), se = /* @__PURE__ */ i(((e) => {
3500
3500
  Object.defineProperty(e, "__esModule", { value: !0 });
3501
- var t = u(), n = d(), r = q();
3501
+ var t = p(), n = m(), r = X();
3502
3502
  e.default = {
3503
3503
  keyword: "enum",
3504
3504
  schemaType: "array",
@@ -3528,9 +3528,9 @@ var c = /* @__PURE__ */ i(((e) => {
3528
3528
  }
3529
3529
  }
3530
3530
  };
3531
- })), se = /* @__PURE__ */ i(((e) => {
3531
+ })), ce = /* @__PURE__ */ i(((e) => {
3532
3532
  Object.defineProperty(e, "__esModule", { value: !0 });
3533
- var t = U(), n = ne(), r = G(), i = re(), a = ie(), o = K(), s = ae(), c = J(), l = Y(), u = oe();
3533
+ var t = G(), n = re(), r = K(), i = ae(), a = q(), o = J(), s = Y(), c = oe(), l = Z(), u = se();
3534
3534
  e.default = [
3535
3535
  t.default,
3536
3536
  n.default,
@@ -3551,9 +3551,9 @@ var c = /* @__PURE__ */ i(((e) => {
3551
3551
  l.default,
3552
3552
  u.default
3553
3553
  ];
3554
- })), X = /* @__PURE__ */ i(((e) => {
3554
+ })), le = /* @__PURE__ */ i(((e) => {
3555
3555
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
3556
- var t = u(), n = d(), r = {
3556
+ var t = p(), n = m(), r = {
3557
3557
  keyword: "additionalItems",
3558
3558
  type: "array",
3559
3559
  schemaType: ["boolean", "object"],
@@ -3591,9 +3591,9 @@ var c = /* @__PURE__ */ i(((e) => {
3591
3591
  }
3592
3592
  }
3593
3593
  e.validateAdditionalItems = i, e.default = r;
3594
- })), ce = /* @__PURE__ */ i(((e) => {
3594
+ })), ue = /* @__PURE__ */ i(((e) => {
3595
3595
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
3596
- var t = u(), n = d(), r = y(), i = {
3596
+ var t = p(), n = m(), r = S(), i = {
3597
3597
  keyword: "items",
3598
3598
  type: "array",
3599
3599
  schemaType: [
@@ -3628,9 +3628,9 @@ var c = /* @__PURE__ */ i(((e) => {
3628
3628
  }
3629
3629
  }
3630
3630
  e.validateTuple = a, e.default = i;
3631
- })), le = /* @__PURE__ */ i(((e) => {
3631
+ })), de = /* @__PURE__ */ i(((e) => {
3632
3632
  Object.defineProperty(e, "__esModule", { value: !0 });
3633
- var t = ce();
3633
+ var t = ue();
3634
3634
  e.default = {
3635
3635
  keyword: "prefixItems",
3636
3636
  type: "array",
@@ -3638,9 +3638,9 @@ var c = /* @__PURE__ */ i(((e) => {
3638
3638
  before: "uniqueItems",
3639
3639
  code: (e) => (0, t.validateTuple)(e, "items")
3640
3640
  };
3641
- })), ue = /* @__PURE__ */ i(((e) => {
3641
+ })), fe = /* @__PURE__ */ i(((e) => {
3642
3642
  Object.defineProperty(e, "__esModule", { value: !0 });
3643
- var t = u(), n = d(), r = y(), i = X();
3643
+ var t = p(), n = m(), r = S(), i = le();
3644
3644
  e.default = {
3645
3645
  keyword: "items",
3646
3646
  type: "array",
@@ -3655,9 +3655,9 @@ var c = /* @__PURE__ */ i(((e) => {
3655
3655
  o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
3656
3656
  }
3657
3657
  };
3658
- })), de = /* @__PURE__ */ i(((e) => {
3658
+ })), pe = /* @__PURE__ */ i(((e) => {
3659
3659
  Object.defineProperty(e, "__esModule", { value: !0 });
3660
- var t = u(), n = d();
3660
+ var t = p(), n = m();
3661
3661
  e.default = {
3662
3662
  keyword: "contains",
3663
3663
  type: "array",
@@ -3710,9 +3710,9 @@ var c = /* @__PURE__ */ i(((e) => {
3710
3710
  }
3711
3711
  }
3712
3712
  };
3713
- })), fe = /* @__PURE__ */ i(((e) => {
3713
+ })), me = /* @__PURE__ */ i(((e) => {
3714
3714
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
3715
- var t = u(), n = d(), r = y();
3715
+ var t = p(), n = m(), r = S();
3716
3716
  e.error = {
3717
3717
  message: ({ params: { property: e, depsCount: n, deps: r } }) => {
3718
3718
  let i = n === 1 ? "property" : "properties";
@@ -3771,9 +3771,9 @@ var c = /* @__PURE__ */ i(((e) => {
3771
3771
  }, () => i.var(c, !0)), e.ok(c));
3772
3772
  }
3773
3773
  e.validateSchemaDeps = s, e.default = i;
3774
- })), pe = /* @__PURE__ */ i(((e) => {
3774
+ })), he = /* @__PURE__ */ i(((e) => {
3775
3775
  Object.defineProperty(e, "__esModule", { value: !0 });
3776
- var t = u(), n = d();
3776
+ var t = p(), n = m();
3777
3777
  e.default = {
3778
3778
  keyword: "propertyNames",
3779
3779
  type: "object",
@@ -3799,9 +3799,9 @@ var c = /* @__PURE__ */ i(((e) => {
3799
3799
  }), e.ok(s);
3800
3800
  }
3801
3801
  };
3802
- })), me = /* @__PURE__ */ i(((e) => {
3802
+ })), ge = /* @__PURE__ */ i(((e) => {
3803
3803
  Object.defineProperty(e, "__esModule", { value: !0 });
3804
- var t = y(), n = u(), r = f(), i = d();
3804
+ var t = S(), n = p(), r = h(), i = m();
3805
3805
  e.default = {
3806
3806
  keyword: "additionalProperties",
3807
3807
  type: ["object"],
@@ -3866,9 +3866,9 @@ var c = /* @__PURE__ */ i(((e) => {
3866
3866
  }
3867
3867
  }
3868
3868
  };
3869
- })), he = /* @__PURE__ */ i(((e) => {
3869
+ })), _e = /* @__PURE__ */ i(((e) => {
3870
3870
  Object.defineProperty(e, "__esModule", { value: !0 });
3871
- var t = T(), n = y(), r = d(), i = me();
3871
+ var t = O(), n = S(), r = m(), i = ge();
3872
3872
  e.default = {
3873
3873
  keyword: "properties",
3874
3874
  type: "object",
@@ -3895,9 +3895,9 @@ var c = /* @__PURE__ */ i(((e) => {
3895
3895
  }
3896
3896
  }
3897
3897
  };
3898
- })), ge = /* @__PURE__ */ i(((e) => {
3898
+ })), ve = /* @__PURE__ */ i(((e) => {
3899
3899
  Object.defineProperty(e, "__esModule", { value: !0 });
3900
- var t = y(), n = u(), r = d(), i = d();
3900
+ var t = S(), n = p(), r = m(), i = m();
3901
3901
  e.default = {
3902
3902
  keyword: "patternProperties",
3903
3903
  type: "object",
@@ -3930,9 +3930,9 @@ var c = /* @__PURE__ */ i(((e) => {
3930
3930
  }
3931
3931
  }
3932
3932
  };
3933
- })), _e = /* @__PURE__ */ i(((e) => {
3933
+ })), ye = /* @__PURE__ */ i(((e) => {
3934
3934
  Object.defineProperty(e, "__esModule", { value: !0 });
3935
- var t = d();
3935
+ var t = m();
3936
3936
  e.default = {
3937
3937
  keyword: "not",
3938
3938
  schemaType: ["object", "boolean"],
@@ -3953,17 +3953,17 @@ var c = /* @__PURE__ */ i(((e) => {
3953
3953
  },
3954
3954
  error: { message: "must NOT be valid" }
3955
3955
  };
3956
- })), ve = /* @__PURE__ */ i(((e) => {
3956
+ })), be = /* @__PURE__ */ i(((e) => {
3957
3957
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
3958
3958
  keyword: "anyOf",
3959
3959
  schemaType: "array",
3960
3960
  trackErrors: !0,
3961
- code: y().validateUnion,
3961
+ code: S().validateUnion,
3962
3962
  error: { message: "must match a schema in anyOf" }
3963
3963
  };
3964
- })), ye = /* @__PURE__ */ i(((e) => {
3964
+ })), xe = /* @__PURE__ */ i(((e) => {
3965
3965
  Object.defineProperty(e, "__esModule", { value: !0 });
3966
- var t = u(), n = d();
3966
+ var t = p(), n = m();
3967
3967
  e.default = {
3968
3968
  keyword: "oneOf",
3969
3969
  schemaType: "array",
@@ -3993,9 +3993,9 @@ var c = /* @__PURE__ */ i(((e) => {
3993
3993
  }
3994
3994
  }
3995
3995
  };
3996
- })), be = /* @__PURE__ */ i(((e) => {
3996
+ })), Se = /* @__PURE__ */ i(((e) => {
3997
3997
  Object.defineProperty(e, "__esModule", { value: !0 });
3998
- var t = d();
3998
+ var t = m();
3999
3999
  e.default = {
4000
4000
  keyword: "allOf",
4001
4001
  schemaType: "array",
@@ -4014,9 +4014,9 @@ var c = /* @__PURE__ */ i(((e) => {
4014
4014
  });
4015
4015
  }
4016
4016
  };
4017
- })), xe = /* @__PURE__ */ i(((e) => {
4017
+ })), Ce = /* @__PURE__ */ i(((e) => {
4018
4018
  Object.defineProperty(e, "__esModule", { value: !0 });
4019
- var t = u(), n = d(), r = {
4019
+ var t = p(), n = m(), r = {
4020
4020
  keyword: "if",
4021
4021
  schemaType: ["object", "boolean"],
4022
4022
  trackErrors: !0,
@@ -4057,9 +4057,9 @@ var c = /* @__PURE__ */ i(((e) => {
4057
4057
  return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
4058
4058
  }
4059
4059
  e.default = r;
4060
- })), Se = /* @__PURE__ */ i(((e) => {
4060
+ })), we = /* @__PURE__ */ i(((e) => {
4061
4061
  Object.defineProperty(e, "__esModule", { value: !0 });
4062
- var t = d();
4062
+ var t = m();
4063
4063
  e.default = {
4064
4064
  keyword: ["then", "else"],
4065
4065
  schemaType: ["object", "boolean"],
@@ -4067,9 +4067,9 @@ var c = /* @__PURE__ */ i(((e) => {
4067
4067
  n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
4068
4068
  }
4069
4069
  };
4070
- })), Ce = /* @__PURE__ */ i(((e) => {
4070
+ })), Te = /* @__PURE__ */ i(((e) => {
4071
4071
  Object.defineProperty(e, "__esModule", { value: !0 });
4072
- var t = X(), n = le(), r = ce(), i = ue(), a = de(), o = fe(), s = pe(), c = me(), l = he(), u = ge(), d = _e(), f = ve(), p = ye(), m = be(), h = xe(), g = Se();
4072
+ var t = le(), n = de(), r = ue(), i = fe(), a = pe(), o = me(), s = he(), c = ge(), l = _e(), u = ve(), d = ye(), f = be(), p = xe(), m = Se(), h = Ce(), g = we();
4073
4073
  function _(e = !1) {
4074
4074
  let _ = [
4075
4075
  d.default,
@@ -4087,9 +4087,9 @@ var c = /* @__PURE__ */ i(((e) => {
4087
4087
  return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
4088
4088
  }
4089
4089
  e.default = _;
4090
- })), we = /* @__PURE__ */ i(((e) => {
4090
+ })), Ee = /* @__PURE__ */ i(((e) => {
4091
4091
  Object.defineProperty(e, "__esModule", { value: !0 });
4092
- var t = u();
4092
+ var t = p();
4093
4093
  e.default = {
4094
4094
  keyword: "format",
4095
4095
  type: ["number", "string"],
@@ -4162,9 +4162,9 @@ var c = /* @__PURE__ */ i(((e) => {
4162
4162
  }
4163
4163
  }
4164
4164
  };
4165
- })), Te = /* @__PURE__ */ i(((e) => {
4166
- Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [we().default];
4167
- })), Ee = /* @__PURE__ */ i(((e) => {
4165
+ })), De = /* @__PURE__ */ i(((e) => {
4166
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [Ee().default];
4167
+ })), Oe = /* @__PURE__ */ i(((e) => {
4168
4168
  Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
4169
4169
  "title",
4170
4170
  "description",
@@ -4178,9 +4178,9 @@ var c = /* @__PURE__ */ i(((e) => {
4178
4178
  "contentEncoding",
4179
4179
  "contentSchema"
4180
4180
  ];
4181
- })), De = /* @__PURE__ */ i(((e) => {
4181
+ })), ke = /* @__PURE__ */ i(((e) => {
4182
4182
  Object.defineProperty(e, "__esModule", { value: !0 });
4183
- var t = H(), n = se(), r = Ce(), i = Te(), a = Ee();
4183
+ var t = ne(), n = ce(), r = Te(), i = De(), a = Oe();
4184
4184
  e.default = [
4185
4185
  t.default,
4186
4186
  n.default,
@@ -4189,15 +4189,15 @@ var c = /* @__PURE__ */ i(((e) => {
4189
4189
  a.metadataVocabulary,
4190
4190
  a.contentVocabulary
4191
4191
  ];
4192
- })), Oe = /* @__PURE__ */ i(((e) => {
4192
+ })), Ae = /* @__PURE__ */ i(((e) => {
4193
4193
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
4194
4194
  var t;
4195
4195
  (function(e) {
4196
4196
  e.Tag = "tag", e.Mapping = "mapping";
4197
4197
  })(t || (e.DiscrError = t = {}));
4198
- })), ke = /* @__PURE__ */ i(((e) => {
4198
+ })), je = /* @__PURE__ */ i(((e) => {
4199
4199
  Object.defineProperty(e, "__esModule", { value: !0 });
4200
- var t = u(), n = Oe(), r = O(), i = D(), a = d();
4200
+ var t = p(), n = Ae(), r = j(), i = A(), a = m();
4201
4201
  e.default = {
4202
4202
  keyword: "discriminator",
4203
4203
  type: "object",
@@ -4265,16 +4265,16 @@ var c = /* @__PURE__ */ i(((e) => {
4265
4265
  }
4266
4266
  }
4267
4267
  };
4268
- })), Ae = /* @__PURE__ */ r({
4269
- $id: () => je,
4270
- $schema: () => Z,
4271
- default: () => Ie,
4272
- definitions: () => Ne,
4273
- properties: () => Fe,
4274
- title: () => Me,
4275
- type: () => Pe
4276
- }), Z, je, Me, Ne, Pe, Fe, Ie, Le = t((() => {
4277
- Z = "http://json-schema.org/draft-07/schema#", je = "http://json-schema.org/draft-07/schema#", Me = "Core schema meta-schema", Ne = {
4268
+ })), Me = /* @__PURE__ */ r({
4269
+ $id: () => Ne,
4270
+ $schema: () => Q,
4271
+ default: () => Le,
4272
+ definitions: () => Fe,
4273
+ properties: () => $,
4274
+ title: () => Pe,
4275
+ type: () => Ie
4276
+ }), Q, Ne, Pe, Fe, Ie, $, Le, Re = t((() => {
4277
+ Q = "http://json-schema.org/draft-07/schema#", Ne = "http://json-schema.org/draft-07/schema#", Pe = "Core schema meta-schema", Fe = {
4278
4278
  schemaArray: {
4279
4279
  type: "array",
4280
4280
  minItems: 1,
@@ -4300,7 +4300,7 @@ var c = /* @__PURE__ */ i(((e) => {
4300
4300
  uniqueItems: !0,
4301
4301
  default: []
4302
4302
  }
4303
- }, Pe = ["object", "boolean"], Fe = {
4303
+ }, Ie = ["object", "boolean"], $ = {
4304
4304
  $id: {
4305
4305
  type: "string",
4306
4306
  format: "uri-reference"
@@ -4399,18 +4399,18 @@ var c = /* @__PURE__ */ i(((e) => {
4399
4399
  anyOf: { $ref: "#/definitions/schemaArray" },
4400
4400
  oneOf: { $ref: "#/definitions/schemaArray" },
4401
4401
  not: { $ref: "#" }
4402
- }, Ie = {
4403
- $schema: Z,
4404
- $id: je,
4405
- title: Me,
4406
- definitions: Ne,
4407
- type: Pe,
4408
- properties: Fe,
4402
+ }, Le = {
4403
+ $schema: Q,
4404
+ $id: Ne,
4405
+ title: Pe,
4406
+ definitions: Fe,
4407
+ type: Ie,
4408
+ properties: $,
4409
4409
  default: !0
4410
4410
  };
4411
- })), Re = /* @__PURE__ */ i(((t, n) => {
4411
+ })), ze = /* @__PURE__ */ i(((t, n) => {
4412
4412
  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;
4413
- var r = B(), i = De(), a = ke(), o = (Le(), e(Ae).default), s = ["/properties"], c = "http://json-schema.org/draft-07/schema", l = class extends r.default {
4413
+ var r = H(), i = ke(), a = je(), o = (Re(), e(Me).default), s = ["/properties"], c = "http://json-schema.org/draft-07/schema", l = class extends r.default {
4414
4414
  _addVocabularies() {
4415
4415
  super._addVocabularies(), i.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(a.default);
4416
4416
  }
@@ -4424,60 +4424,60 @@ var c = /* @__PURE__ */ i(((e) => {
4424
4424
  }
4425
4425
  };
4426
4426
  t.Ajv = l, n.exports = t = l, n.exports.Ajv = l, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = l;
4427
- var d = T();
4427
+ var u = O();
4428
4428
  Object.defineProperty(t, "KeywordCxt", {
4429
4429
  enumerable: !0,
4430
4430
  get: function() {
4431
- return d.KeywordCxt;
4431
+ return u.KeywordCxt;
4432
4432
  }
4433
4433
  });
4434
- var f = u();
4434
+ var d = p();
4435
4435
  Object.defineProperty(t, "_", {
4436
4436
  enumerable: !0,
4437
4437
  get: function() {
4438
- return f._;
4438
+ return d._;
4439
4439
  }
4440
4440
  }), Object.defineProperty(t, "str", {
4441
4441
  enumerable: !0,
4442
4442
  get: function() {
4443
- return f.str;
4443
+ return d.str;
4444
4444
  }
4445
4445
  }), Object.defineProperty(t, "stringify", {
4446
4446
  enumerable: !0,
4447
4447
  get: function() {
4448
- return f.stringify;
4448
+ return d.stringify;
4449
4449
  }
4450
4450
  }), Object.defineProperty(t, "nil", {
4451
4451
  enumerable: !0,
4452
4452
  get: function() {
4453
- return f.nil;
4453
+ return d.nil;
4454
4454
  }
4455
4455
  }), Object.defineProperty(t, "Name", {
4456
4456
  enumerable: !0,
4457
4457
  get: function() {
4458
- return f.Name;
4458
+ return d.Name;
4459
4459
  }
4460
4460
  }), Object.defineProperty(t, "CodeGen", {
4461
4461
  enumerable: !0,
4462
4462
  get: function() {
4463
- return f.CodeGen;
4463
+ return d.CodeGen;
4464
4464
  }
4465
4465
  });
4466
- var p = E();
4466
+ var f = k();
4467
4467
  Object.defineProperty(t, "ValidationError", {
4468
4468
  enumerable: !0,
4469
4469
  get: function() {
4470
- return p.default;
4470
+ return f.default;
4471
4471
  }
4472
4472
  });
4473
- var m = D();
4473
+ var m = A();
4474
4474
  Object.defineProperty(t, "MissingRefError", {
4475
4475
  enumerable: !0,
4476
4476
  get: function() {
4477
4477
  return m.default;
4478
4478
  }
4479
4479
  });
4480
- })), ze = /* @__PURE__ */ i(((e) => {
4480
+ })), Be = /* @__PURE__ */ i(((e) => {
4481
4481
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
4482
4482
  function t(e, t) {
4483
4483
  return {
@@ -4629,9 +4629,9 @@ var c = /* @__PURE__ */ i(((e) => {
4629
4629
  return !1;
4630
4630
  }
4631
4631
  }
4632
- })), Be = /* @__PURE__ */ i(((e) => {
4632
+ })), Ve = /* @__PURE__ */ i(((e) => {
4633
4633
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
4634
- var t = Re(), n = u(), r = n.operators, i = {
4634
+ var t = ze(), n = p(), r = n.operators, i = {
4635
4635
  formatMaximum: {
4636
4636
  okStr: "<=",
4637
4637
  ok: r.LTE,
@@ -4691,9 +4691,9 @@ var c = /* @__PURE__ */ i(((e) => {
4691
4691
  },
4692
4692
  dependencies: ["format"]
4693
4693
  }, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
4694
- })), Ve = /* @__PURE__ */ i(((e, t) => {
4694
+ })), He = /* @__PURE__ */ i(((e, t) => {
4695
4695
  Object.defineProperty(e, "__esModule", { value: !0 });
4696
- var n = ze(), r = Be(), i = u(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
4696
+ var n = Be(), r = Ve(), i = p(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
4697
4697
  if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
4698
4698
  let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
4699
4699
  return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
@@ -4709,7 +4709,7 @@ var c = /* @__PURE__ */ i(((e) => {
4709
4709
  for (let r of t) e.addFormat(r, n[r]);
4710
4710
  }
4711
4711
  t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
4712
- })), He = /* @__PURE__ */ i(((e, t) => {
4712
+ })), Ue = /* @__PURE__ */ i(((e, t) => {
4713
4713
  t.exports = function(e) {
4714
4714
  if (e && e.length) for (let r of e) {
4715
4715
  let e;
@@ -4855,7 +4855,7 @@ var c = /* @__PURE__ */ i(((e) => {
4855
4855
  r.message = e;
4856
4856
  }
4857
4857
  };
4858
- })), Ue = /* @__PURE__ */ i(((e, t) => {
4858
+ })), We = /* @__PURE__ */ i(((e, t) => {
4859
4859
  t.exports = function(e) {
4860
4860
  if (e && e.length) for (let r of e) {
4861
4861
  let e;
@@ -5001,7 +5001,7 @@ var c = /* @__PURE__ */ i(((e) => {
5001
5001
  r.message = e;
5002
5002
  }
5003
5003
  };
5004
- })), We = /* @__PURE__ */ i(((e, t) => {
5004
+ })), Ge = /* @__PURE__ */ i(((e, t) => {
5005
5005
  t.exports = function(e) {
5006
5006
  if (e && e.length) for (let r of e) {
5007
5007
  let e;
@@ -5147,7 +5147,7 @@ var c = /* @__PURE__ */ i(((e) => {
5147
5147
  r.message = e;
5148
5148
  }
5149
5149
  };
5150
- })), Ge = /* @__PURE__ */ i(((e, t) => {
5150
+ })), Ke = /* @__PURE__ */ i(((e, t) => {
5151
5151
  t.exports = function(e) {
5152
5152
  if (e && e.length) for (let r of e) {
5153
5153
  let e;
@@ -5293,7 +5293,7 @@ var c = /* @__PURE__ */ i(((e) => {
5293
5293
  r.message = e;
5294
5294
  }
5295
5295
  };
5296
- })), Ke = /* @__PURE__ */ i(((e, t) => {
5296
+ })), qe = /* @__PURE__ */ i(((e, t) => {
5297
5297
  t.exports = function(e) {
5298
5298
  if (e && e.length) for (let r of e) {
5299
5299
  let e;
@@ -5439,7 +5439,7 @@ var c = /* @__PURE__ */ i(((e) => {
5439
5439
  r.message = e;
5440
5440
  }
5441
5441
  };
5442
- })), qe = /* @__PURE__ */ i(((e, t) => {
5442
+ })), Je = /* @__PURE__ */ i(((e, t) => {
5443
5443
  t.exports = function(e) {
5444
5444
  if (e && e.length) for (let r of e) {
5445
5445
  let e;
@@ -5585,7 +5585,7 @@ var c = /* @__PURE__ */ i(((e) => {
5585
5585
  r.message = e;
5586
5586
  }
5587
5587
  };
5588
- })), Je = /* @__PURE__ */ i(((e, t) => {
5588
+ })), Ye = /* @__PURE__ */ i(((e, t) => {
5589
5589
  t.exports = function(e) {
5590
5590
  if (e && e.length) for (let r of e) {
5591
5591
  let e;
@@ -5731,99 +5731,48 @@ var c = /* @__PURE__ */ i(((e) => {
5731
5731
  r.message = e;
5732
5732
  }
5733
5733
  };
5734
- })), Ye = /* @__PURE__ */ n(Re(), 1), Xe = /* @__PURE__ */ n(Ve(), 1), Ze = /* @__PURE__ */ n(He(), 1), Qe = /* @__PURE__ */ n(Ue(), 1), $e = /* @__PURE__ */ n(We(), 1), et = /* @__PURE__ */ n(Ge(), 1), tt = /* @__PURE__ */ n(Ke(), 1), nt = /* @__PURE__ */ n(qe(), 1), rt = /* @__PURE__ */ n(Je(), 1), it = {
5735
- en: Ze.default,
5736
- "zh-CN": rt.default,
5737
- "zh-TW": nt.default,
5738
- ja: $e.default,
5739
- ko: et.default,
5740
- ru: tt.default,
5741
- fr: Qe.default
5734
+ })), Xe = /* @__PURE__ */ n(ze(), 1), Ze = /* @__PURE__ */ n(He(), 1), Qe = /* @__PURE__ */ n(Ue(), 1), $e = /* @__PURE__ */ n(We(), 1), et = /* @__PURE__ */ n(Ge(), 1), tt = /* @__PURE__ */ n(Ke(), 1), nt = /* @__PURE__ */ n(qe(), 1), rt = /* @__PURE__ */ n(Je(), 1), it = /* @__PURE__ */ n(Ye(), 1), at = {
5735
+ en: Qe.default,
5736
+ "zh-CN": it.default,
5737
+ "zh-TW": rt.default,
5738
+ ja: et.default,
5739
+ ko: tt.default,
5740
+ ru: nt.default,
5741
+ fr: $e.default
5742
5742
  };
5743
- function at(e) {
5744
- return it[s([e])];
5743
+ function ot(e) {
5744
+ return at[c([e])];
5745
5745
  }
5746
- function ot(e, t) {
5747
- at(e)(t);
5746
+ function st(e, t) {
5747
+ ot(e)(t);
5748
5748
  }
5749
5749
  //#endregion
5750
5750
  //#region src/form/common/validation/validator.ts
5751
- function st(e) {
5752
- let t = new Ye.default({
5751
+ function ct(e) {
5752
+ let t = new Xe.default({
5753
5753
  allErrors: !0,
5754
5754
  verbose: !0,
5755
5755
  strict: !1,
5756
5756
  addUsedSchema: !1,
5757
5757
  ...e
5758
5758
  });
5759
- return (0, Xe.default)(t), t;
5759
+ return (0, Ze.default)(t), t;
5760
5760
  }
5761
- var ct = /*#__PURE__*/ st();
5762
- function lt(e) {
5761
+ var lt = /*#__PURE__*/ ct();
5762
+ function ut(e) {
5763
5763
  if (e == null) return [void 0, void 0];
5764
5764
  try {
5765
- return [ct.compile(e), void 0];
5765
+ return [lt.compile(e), void 0];
5766
5766
  } catch (e) {
5767
5767
  return [void 0, e];
5768
5768
  }
5769
5769
  }
5770
- function ut(e, t, n) {
5771
- return !e || e(t) ? [] : (ot(n, e.errors), e.errors);
5772
- }
5773
- //#endregion
5774
- //#region src/form/common/value.ts
5775
- function Q(e) {
5776
- if (typeof e != "object" || !e || Array.isArray(e)) return;
5777
- let t = Object.getPrototypeOf(e);
5778
- return t === Object.prototype || t === null ? e : void 0;
5779
- }
5780
- function dt(e, t) {
5781
- let n = Q(e)?.type;
5782
- return typeof n == "string" && [
5783
- "string",
5784
- "number",
5785
- "integer",
5786
- "boolean",
5787
- "object",
5788
- "array",
5789
- "null"
5790
- ].includes(n) ? n : Array.isArray(t) ? "array" : Q(t) ? "object" : t === null ? "null" : typeof t == "boolean" ? "boolean" : typeof t == "number" ? "number" : "string";
5791
- }
5792
- function ft(e, t = dt(e, void 0)) {
5793
- let n = Q(e);
5794
- if (n && Object.hasOwn(n, "default")) return structuredClone(n.default);
5795
- if (n && Object.hasOwn(n, "const")) return structuredClone(n.const);
5796
- if (Array.isArray(n?.enum) && n.enum.length) return structuredClone(n.enum[0]);
5797
- switch (t) {
5798
- case "object": return {};
5799
- case "array": return [];
5800
- case "boolean": return !1;
5801
- case "number":
5802
- case "integer": return 0;
5803
- case "null": return null;
5804
- default: return "";
5805
- }
5806
- }
5807
- function pt(e, t, n) {
5808
- return Object.fromEntries([...Object.entries(Q(e) ?? {}).filter(([e]) => e != t), ...n === void 0 ? [] : [[t, n]]]);
5809
- }
5810
- function mt(e, t, n) {
5811
- let r = Q(e);
5812
- if (!(!r || !Object.hasOwn(r, t) || t != n && Object.hasOwn(r, n))) return Object.fromEntries(Object.entries(r).map(([e, r]) => [e == t ? n : e, r]));
5813
- }
5814
- function $(e, t = /* @__PURE__ */ new Set()) {
5815
- if (e === null || typeof e == "string" || typeof e == "boolean") return !0;
5816
- if (typeof e == "number") return Number.isFinite(e);
5817
- if (typeof e != "object" || !e || t.has(e)) return !1;
5818
- let n = Q(e);
5819
- if (!Array.isArray(e) && n == null) return !1;
5820
- t.add(e);
5821
- let r = (Array.isArray(e) ? Array.from(e) : Object.values(n)).every((e) => $(e, t));
5822
- return t.delete(e), r;
5770
+ function dt(e, t, n) {
5771
+ return !e || e(t) ? [] : (st(n, e.errors), e.errors);
5823
5772
  }
5824
5773
  //#endregion
5825
5774
  //#region src/workbench/browser/flowRunInputEditorStore.ts
5826
- var ht = /* @__PURE__ */ r({ FlowRunInputEditorStore: () => gt }), gt = class {
5775
+ var ft = /* @__PURE__ */ r({ FlowRunInputEditorStore: () => pt }), pt = class {
5827
5776
  #e;
5828
5777
  #t;
5829
5778
  #n;
@@ -5833,15 +5782,15 @@ var ht = /* @__PURE__ */ r({ FlowRunInputEditorStore: () => gt }), gt = class {
5833
5782
  let n = new Set(this.#t.value);
5834
5783
  t ? n.add(e) : n.delete(e), this.#t.set(n);
5835
5784
  };
5836
- for (let t of e) this.#n.set(t.handle, lt(t.jsonSchema));
5785
+ for (let t of e) this.#n.set(t.handle, ut(t.jsonSchema));
5837
5786
  this.issues$ = a((n) => {
5838
5787
  let r = n(this.#e), i = n(t);
5839
5788
  return Object.fromEntries(e.flatMap((e) => {
5840
5789
  let t = r[e.handle];
5841
5790
  if (!Object.hasOwn(r, e.handle) || t === void 0) return [[e.handle, { kind: "required" }]];
5842
- if (!$(t)) return [[e.handle, { kind: "json" }]];
5791
+ if (!l(t)) return [[e.handle, { kind: "json" }]];
5843
5792
  if (t === null && e.nullable) return [];
5844
- let [n, a] = this.#n.get(e.handle), o = a ? void 0 : ut(n, t, i), s = a?.message ?? o?.map((e) => `${e.instancePath || "/"} ${e.message}`).join("; ");
5793
+ let [n, a] = this.#n.get(e.handle), o = a ? void 0 : dt(n, t, i), s = a?.message ?? o?.map((e) => `${e.instancePath || "/"} ${e.message}`).join("; ");
5845
5794
  return s ? [[e.handle, {
5846
5795
  kind: "schema",
5847
5796
  message: s
@@ -5851,21 +5800,21 @@ var ht = /* @__PURE__ */ r({ FlowRunInputEditorStore: () => gt }), gt = class {
5851
5800
  }
5852
5801
  setValue(e, t) {
5853
5802
  if (!this.#n.has(e)) throw Error("Unknown input handle.");
5854
- if (t !== void 0 && !$(t)) throw Error("Input values must be JSON.");
5855
- this.#e.set(pt(this.#e.value, e, t));
5803
+ if (t !== void 0 && !l(t)) throw Error("Input values must be JSON.");
5804
+ this.#e.set(s(this.#e.value, e, t));
5856
5805
  }
5857
5806
  values() {
5858
5807
  return this.#e.value;
5859
5808
  }
5860
5809
  replaceValues(e) {
5861
- let t = Q(e);
5810
+ let t = u(e);
5862
5811
  if (t == null || Object.keys(t).some((e) => !this.#n.has(e))) return !1;
5863
5812
  let n = Object.entries(t).filter(([, e]) => e !== void 0);
5864
- return !n.some(([, e]) => !$(e)) && (this.#e.set(structuredClone(Object.fromEntries(n))), this.#t.set(/* @__PURE__ */ new Set()), !0);
5813
+ return !n.some(([, e]) => !l(e)) && (this.#e.set(structuredClone(Object.fromEntries(n))), this.#t.set(/* @__PURE__ */ new Set()), !0);
5865
5814
  }
5866
5815
  dispose() {
5867
5816
  this.valid$.dispose(), this.issues$.dispose(), this.#e.dispose(), this.#t.dispose();
5868
5817
  }
5869
5818
  };
5870
5819
  //#endregion
5871
- export { Q as a, dt as c, $ as i, lt as l, ht as n, mt as o, ft as r, pt as s, gt as t };
5820
+ export { dt as i, ft as n, ut as r, pt as t };