@cccsaurora/clue-ui 1.2.6-patch.316 → 1.2.7-patch.318

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 (34) hide show
  1. package/{ActionForm-CJDgCzc7.js → ActionForm-1iQtvort.js} +816 -816
  2. package/{AnnotationDetails-C6xVWHas.js → AnnotationDetails-CcXHDi0B.js} +1 -1
  3. package/{AnnotationPreview-bOafxZ4A.js → AnnotationPreview-BLEnPDVF.js} +1 -1
  4. package/components/AnnotationDetailPopover.js +1 -1
  5. package/components/AnnotationDetails.js +2 -2
  6. package/components/AnnotationPreview.js +1 -1
  7. package/components/EnrichedCard.js +1 -1
  8. package/components/EnrichedChip.js +2 -2
  9. package/components/EnrichedTypography.js +2 -2
  10. package/components/RetryFailedEnrichments.js +1 -1
  11. package/components/SourcePicker.js +1 -1
  12. package/components/actions/ActionForm.js +1 -1
  13. package/components/actions/ExecutePopover.js +1 -1
  14. package/components/actions/ResultModal.js +1 -1
  15. package/components/enrichment/EnrichPopover.js +1 -1
  16. package/components/fetchers/Fetcher.js +1 -1
  17. package/components/group/GroupControl.js +1 -1
  18. package/components/stats/QueryStatus.js +1 -1
  19. package/hooks/ClueActionContext.js +1 -1
  20. package/hooks/ClueGroupContext.js +1 -1
  21. package/hooks/CluePopupContext.js +2 -2
  22. package/hooks/ClueProvider.js +2 -2
  23. package/hooks/selectors.js +1 -1
  24. package/hooks/useActionResult.js +1 -1
  25. package/hooks/useAnnotations.js +1 -1
  26. package/hooks/useClueActions.js +1 -1
  27. package/hooks/useErrors.js +1 -1
  28. package/hooks/useFetcherResult.js +1 -1
  29. package/icons/Action.js +2 -2
  30. package/icons/Assessment.js +1 -1
  31. package/icons/Context.js +1 -1
  32. package/icons/Opinion.js +1 -1
  33. package/main.js +3 -3
  34. package/package.json +1 -1
@@ -1,60 +1,60 @@
1
1
  import { jsx as M, jsxs as W } from "react/jsx-runtime";
2
- import { materialRenderers as En, materialCells as Sn } from "@jsonforms/material-renderers";
3
- import { JsonForms as Pn } from "@jsonforms/react";
4
- import { Modal as bs, Paper as Es, Stack as se, Typography as ke, Divider as Dt, LinearProgress as kn, Button as nt, IconButton as Nn, Box as et, CircularProgress as Cn, Collapse as jn } from "@mui/material";
2
+ import { materialRenderers as Eo, materialCells as So } from "@jsonforms/material-renderers";
3
+ import { JsonForms as Po } from "@jsonforms/react";
4
+ import { Modal as bs, Paper as Es, Stack as se, Typography as ke, Divider as Dt, LinearProgress as ko, Button as ot, IconButton as No, Box as et, CircularProgress as Co, Collapse as jo } from "@mui/material";
5
5
  import Ss from "./components/display/icons/Iconified.js";
6
- import { J as Rn } from "./index-BK-zfYhR.js";
6
+ import { J as Ro } from "./index-BK-zfYhR.js";
7
7
  import { ClueComponentContext as ft } from "./hooks/ClueComponentContext.js";
8
- import { g as On } from "./_commonjsHelpers-DaMA6jEr.js";
9
- import { x as Tn, y as Ps, z as In } from "./index-BHAe_V9n.js";
8
+ import { g as Oo } from "./_commonjsHelpers-DaMA6jEr.js";
9
+ import { x as To, y as Ps, z as Io } from "./index-BHAe_V9n.js";
10
10
  import { a as Ht } from "./useClueTypeConfig-Ct9Ygter.js";
11
11
  import { d as ks } from "./_baseGet-DSZygzyq.js";
12
- import { b as Mn } from "./_baseSlice-M5RKzt1A.js";
13
- import { i as Vn } from "./utils-DmwSUrum.js";
14
- import { useState as de, useRef as Fn, useMemo as Ne, useEffect as Wt, memo as Ns, useCallback as Oe } from "react";
15
- import { u as je, c as An, a as Kn } from "./index-Dj5C04IX.js";
12
+ import { b as Mo } from "./_baseSlice-M5RKzt1A.js";
13
+ import { i as Vo } from "./utils-DmwSUrum.js";
14
+ import { useState as de, useRef as Fo, useMemo as Ne, useEffect as Wt, memo as Ns, useCallback as Oe } from "react";
15
+ import { u as je, c as Ko, a as qo } from "./index-Dj5C04IX.js";
16
16
  import dt from "./components/ErrorBoundary.js";
17
- import { adaptSchema as qn } from "./components/actions/form/schemaAdapter.js";
18
- import { I as zn } from "./iconify-BBckr5AQ.js";
19
- import { C as Un } from "./ClueEnrichContext-B8X0Nw9n.js";
20
- import { ClueFetcherContext as Ln } from "./hooks/ClueFetcherContext.js";
21
- import Gn from "./components/ClassificationChip.js";
22
- import Jn from "./components/actions/formats/index.js";
17
+ import { adaptSchema as Uo } from "./components/actions/form/schemaAdapter.js";
18
+ import { I as zo } from "./iconify-BBckr5AQ.js";
19
+ import { C as Ao } from "./ClueEnrichContext-B8X0Nw9n.js";
20
+ import { ClueFetcherContext as Lo } from "./hooks/ClueFetcherContext.js";
21
+ import Go from "./components/ClassificationChip.js";
22
+ import Jo from "./components/actions/formats/index.js";
23
23
  import { SNACKBAR_EVENT_ID as yt } from "./data/event.js";
24
- import { dayjs as Hn } from "./utils/time.js";
24
+ import { dayjs as Ho } from "./utils/time.js";
25
25
  import { safeDispatchEvent as _t } from "./utils/window.js";
26
- import Bn from "./hooks/useClue.js";
27
- import { i as Qn } from "./isNil-CjWwlQS3.js";
28
- function Xn(e, t, r) {
26
+ import Bo from "./hooks/useClue.js";
27
+ import { i as Qo } from "./isNil-CjWwlQS3.js";
28
+ function Xo(e, t, r) {
29
29
  var s = e.length;
30
- return r = r === void 0 ? s : r, !t && r >= s ? e : Mn(e, t, r);
30
+ return r = r === void 0 ? s : r, !t && r >= s ? e : Mo(e, t, r);
31
31
  }
32
- var Yn = "\\ud800-\\udfff", Zn = "\\u0300-\\u036f", Dn = "\\ufe20-\\ufe2f", Wn = "\\u20d0-\\u20ff", xn = Zn + Dn + Wn, eo = "\\ufe0e\\ufe0f", to = "\\u200d", ro = RegExp("[" + to + Yn + xn + eo + "]");
32
+ var Yo = "\\ud800-\\udfff", Zo = "\\u0300-\\u036f", Do = "\\ufe20-\\ufe2f", Wo = "\\u20d0-\\u20ff", xo = Zo + Do + Wo, en = "\\ufe0e\\ufe0f", tn = "\\u200d", rn = RegExp("[" + tn + Yo + xo + en + "]");
33
33
  function Cs(e) {
34
- return ro.test(e);
34
+ return rn.test(e);
35
35
  }
36
- function so(e) {
36
+ function sn(e) {
37
37
  return e.split("");
38
38
  }
39
- var js = "\\ud800-\\udfff", no = "\\u0300-\\u036f", oo = "\\ufe20-\\ufe2f", ao = "\\u20d0-\\u20ff", io = no + oo + ao, co = "\\ufe0e\\ufe0f", lo = "[" + js + "]", xt = "[" + io + "]", er = "\\ud83c[\\udffb-\\udfff]", uo = "(?:" + xt + "|" + er + ")", Rs = "[^" + js + "]", Os = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ts = "[\\ud800-\\udbff][\\udc00-\\udfff]", fo = "\\u200d", Is = uo + "?", Ms = "[" + co + "]?", mo = "(?:" + fo + "(?:" + [Rs, Os, Ts].join("|") + ")" + Ms + Is + ")*", ho = Ms + Is + mo, po = "(?:" + [Rs + xt + "?", xt, Os, Ts, lo].join("|") + ")", yo = RegExp(er + "(?=" + er + ")|" + po + ho, "g");
40
- function _o(e) {
41
- return e.match(yo) || [];
39
+ var js = "\\ud800-\\udfff", on = "\\u0300-\\u036f", nn = "\\ufe20-\\ufe2f", an = "\\u20d0-\\u20ff", cn = on + nn + an, ln = "\\ufe0e\\ufe0f", dn = "[" + js + "]", xt = "[" + cn + "]", er = "\\ud83c[\\udffb-\\udfff]", un = "(?:" + xt + "|" + er + ")", Rs = "[^" + js + "]", Os = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ts = "[\\ud800-\\udbff][\\udc00-\\udfff]", fn = "\\u200d", Is = un + "?", Ms = "[" + ln + "]?", mn = "(?:" + fn + "(?:" + [Rs, Os, Ts].join("|") + ")" + Ms + Is + ")*", hn = Ms + Is + mn, pn = "(?:" + [Rs + xt + "?", xt, Os, Ts, dn].join("|") + ")", yn = RegExp(er + "(?=" + er + ")|" + pn + hn, "g");
40
+ function _n(e) {
41
+ return e.match(yn) || [];
42
42
  }
43
- function vo(e) {
44
- return Cs(e) ? _o(e) : so(e);
43
+ function vn(e) {
44
+ return Cs(e) ? _n(e) : sn(e);
45
45
  }
46
- function $o(e) {
46
+ function $n(e) {
47
47
  return function(t) {
48
48
  t = ks(t);
49
- var r = Cs(t) ? vo(t) : void 0, s = r ? r[0] : t.charAt(0), n = r ? Xn(r, 1).join("") : t.slice(1);
50
- return s[e]() + n;
49
+ var r = Cs(t) ? vn(t) : void 0, s = r ? r[0] : t.charAt(0), o = r ? Xo(r, 1).join("") : t.slice(1);
50
+ return s[e]() + o;
51
51
  };
52
52
  }
53
- var go = $o("toUpperCase");
54
- function wo(e) {
55
- return go(ks(e).toLowerCase());
53
+ var gn = $n("toUpperCase");
54
+ function wn(e) {
55
+ return gn(ks(e).toLowerCase());
56
56
  }
57
- var tr = { exports: {} }, Vs = {}, fe = {}, Qe = {}, mt = {}, K = {}, ut = {};
57
+ var tr = { exports: {} }, Vs = {}, fe = {}, Qe = {}, mt = {}, q = {}, ut = {};
58
58
  (function(e) {
59
59
  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;
60
60
  class t {
@@ -100,14 +100,14 @@ var tr = { exports: {} }, Vs = {}, fe = {}, Qe = {}, mt = {}, K = {}, ut = {};
100
100
  }
101
101
  }
102
102
  e._Code = s, e.nil = new s("");
103
- function n(f, ...$) {
103
+ function o(f, ...$) {
104
104
  const P = [f[0]];
105
105
  let R = 0;
106
106
  for (; R < $.length; )
107
107
  d(P, $[R]), P.push(f[++R]);
108
108
  return new s(P);
109
109
  }
110
- e._ = n;
110
+ e._ = o;
111
111
  const a = new s("+");
112
112
  function i(f, ...$) {
113
113
  const P = [E(f[0])];
@@ -161,7 +161,7 @@ var tr = { exports: {} }, Vs = {}, fe = {}, Qe = {}, mt = {}, K = {}, ut = {};
161
161
  }
162
162
  e.safeStringify = E;
163
163
  function g(f) {
164
- return typeof f == "string" && e.IDENTIFIER.test(f) ? new s(`.${f}`) : n`[${f}]`;
164
+ return typeof f == "string" && e.IDENTIFIER.test(f) ? new s(`.${f}`) : o`[${f}]`;
165
165
  }
166
166
  e.getProperty = g;
167
167
  function v(f) {
@@ -192,7 +192,7 @@ var rr = {};
192
192
  let: new t.Name("let"),
193
193
  var: new t.Name("var")
194
194
  };
195
- class n {
195
+ class o {
196
196
  constructor({ prefixes: l, parent: m } = {}) {
197
197
  this._names = {}, this._prefixes = l, this._parent = m;
198
198
  }
@@ -213,7 +213,7 @@ var rr = {};
213
213
  return this._names[l] = { prefix: l, index: 0 };
214
214
  }
215
215
  }
216
- e.Scope = n;
216
+ e.Scope = o;
217
217
  class a extends t.Name {
218
218
  constructor(l, m) {
219
219
  super(m), this.prefix = l;
@@ -224,7 +224,7 @@ var rr = {};
224
224
  }
225
225
  e.ValueScopeName = a;
226
226
  const i = (0, t._)`\n`;
227
- class d extends n {
227
+ class d extends o {
228
228
  constructor(l) {
229
229
  super(l), this._values = {}, this._scope = l.scope, this.opts = { ...l, _n: l.lines ? i : t.nil };
230
230
  }
@@ -317,15 +317,15 @@ var rr = {};
317
317
  } }), Object.defineProperty(e, "Name", { enumerable: !0, get: function() {
318
318
  return s.Name;
319
319
  } });
320
- var n = rr;
320
+ var o = rr;
321
321
  Object.defineProperty(e, "Scope", { enumerable: !0, get: function() {
322
- return n.Scope;
322
+ return o.Scope;
323
323
  } }), Object.defineProperty(e, "ValueScope", { enumerable: !0, get: function() {
324
- return n.ValueScope;
324
+ return o.ValueScope;
325
325
  } }), Object.defineProperty(e, "ValueScopeName", { enumerable: !0, get: function() {
326
- return n.ValueScopeName;
326
+ return o.ValueScopeName;
327
327
  } }), Object.defineProperty(e, "varKinds", { enumerable: !0, get: function() {
328
- return n.varKinds;
328
+ return o.varKinds;
329
329
  } }), e.operators = {
330
330
  GT: new t._Code(">"),
331
331
  GTE: new t._Code(">="),
@@ -342,126 +342,126 @@ var rr = {};
342
342
  optimizeNodes() {
343
343
  return this;
344
344
  }
345
- optimizeNames(o, c) {
345
+ optimizeNames(n, c) {
346
346
  return this;
347
347
  }
348
348
  }
349
349
  class i extends a {
350
- constructor(o, c, w) {
351
- super(), this.varKind = o, this.name = c, this.rhs = w;
350
+ constructor(n, c, w) {
351
+ super(), this.varKind = n, this.name = c, this.rhs = w;
352
352
  }
353
- render({ es5: o, _n: c }) {
354
- const w = o ? r.varKinds.var : this.varKind, j = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
353
+ render({ es5: n, _n: c }) {
354
+ const w = n ? r.varKinds.var : this.varKind, j = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
355
355
  return `${w} ${this.name}${j};` + c;
356
356
  }
357
- optimizeNames(o, c) {
358
- if (o[this.name.str])
359
- return this.rhs && (this.rhs = B(this.rhs, o, c)), this;
357
+ optimizeNames(n, c) {
358
+ if (n[this.name.str])
359
+ return this.rhs && (this.rhs = B(this.rhs, n, c)), this;
360
360
  }
361
361
  get names() {
362
362
  return this.rhs instanceof t._CodeOrName ? this.rhs.names : {};
363
363
  }
364
364
  }
365
365
  class d extends a {
366
- constructor(o, c, w) {
367
- super(), this.lhs = o, this.rhs = c, this.sideEffects = w;
366
+ constructor(n, c, w) {
367
+ super(), this.lhs = n, this.rhs = c, this.sideEffects = w;
368
368
  }
369
- render({ _n: o }) {
370
- return `${this.lhs} = ${this.rhs};` + o;
369
+ render({ _n: n }) {
370
+ return `${this.lhs} = ${this.rhs};` + n;
371
371
  }
372
- optimizeNames(o, c) {
373
- if (!(this.lhs instanceof t.Name && !o[this.lhs.str] && !this.sideEffects))
374
- return this.rhs = B(this.rhs, o, c), this;
372
+ optimizeNames(n, c) {
373
+ if (!(this.lhs instanceof t.Name && !n[this.lhs.str] && !this.sideEffects))
374
+ return this.rhs = B(this.rhs, n, c), this;
375
375
  }
376
376
  get names() {
377
- const o = this.lhs instanceof t.Name ? {} : { ...this.lhs.names };
378
- return z(o, this.rhs);
377
+ const n = this.lhs instanceof t.Name ? {} : { ...this.lhs.names };
378
+ return z(n, this.rhs);
379
379
  }
380
380
  }
381
381
  class u extends d {
382
- constructor(o, c, w, j) {
383
- super(o, w, j), this.op = c;
382
+ constructor(n, c, w, j) {
383
+ super(n, w, j), this.op = c;
384
384
  }
385
- render({ _n: o }) {
386
- return `${this.lhs} ${this.op}= ${this.rhs};` + o;
385
+ render({ _n: n }) {
386
+ return `${this.lhs} ${this.op}= ${this.rhs};` + n;
387
387
  }
388
388
  }
389
389
  class l extends a {
390
- constructor(o) {
391
- super(), this.label = o, this.names = {};
390
+ constructor(n) {
391
+ super(), this.label = n, this.names = {};
392
392
  }
393
- render({ _n: o }) {
394
- return `${this.label}:` + o;
393
+ render({ _n: n }) {
394
+ return `${this.label}:` + n;
395
395
  }
396
396
  }
397
397
  class m extends a {
398
- constructor(o) {
399
- super(), this.label = o, this.names = {};
398
+ constructor(n) {
399
+ super(), this.label = n, this.names = {};
400
400
  }
401
- render({ _n: o }) {
402
- return `break${this.label ? ` ${this.label}` : ""};` + o;
401
+ render({ _n: n }) {
402
+ return `break${this.label ? ` ${this.label}` : ""};` + n;
403
403
  }
404
404
  }
405
405
  class y extends a {
406
- constructor(o) {
407
- super(), this.error = o;
406
+ constructor(n) {
407
+ super(), this.error = n;
408
408
  }
409
- render({ _n: o }) {
410
- return `throw ${this.error};` + o;
409
+ render({ _n: n }) {
410
+ return `throw ${this.error};` + n;
411
411
  }
412
412
  get names() {
413
413
  return this.error.names;
414
414
  }
415
415
  }
416
416
  class b extends a {
417
- constructor(o) {
418
- super(), this.code = o;
417
+ constructor(n) {
418
+ super(), this.code = n;
419
419
  }
420
- render({ _n: o }) {
421
- return `${this.code};` + o;
420
+ render({ _n: n }) {
421
+ return `${this.code};` + n;
422
422
  }
423
423
  optimizeNodes() {
424
424
  return `${this.code}` ? this : void 0;
425
425
  }
426
- optimizeNames(o, c) {
427
- return this.code = B(this.code, o, c), this;
426
+ optimizeNames(n, c) {
427
+ return this.code = B(this.code, n, c), this;
428
428
  }
429
429
  get names() {
430
430
  return this.code instanceof t._CodeOrName ? this.code.names : {};
431
431
  }
432
432
  }
433
433
  class E extends a {
434
- constructor(o = []) {
435
- super(), this.nodes = o;
434
+ constructor(n = []) {
435
+ super(), this.nodes = n;
436
436
  }
437
- render(o) {
438
- return this.nodes.reduce((c, w) => c + w.render(o), "");
437
+ render(n) {
438
+ return this.nodes.reduce((c, w) => c + w.render(n), "");
439
439
  }
440
440
  optimizeNodes() {
441
- const { nodes: o } = this;
442
- let c = o.length;
441
+ const { nodes: n } = this;
442
+ let c = n.length;
443
443
  for (; c--; ) {
444
- const w = o[c].optimizeNodes();
445
- Array.isArray(w) ? o.splice(c, 1, ...w) : w ? o[c] = w : o.splice(c, 1);
444
+ const w = n[c].optimizeNodes();
445
+ Array.isArray(w) ? n.splice(c, 1, ...w) : w ? n[c] = w : n.splice(c, 1);
446
446
  }
447
- return o.length > 0 ? this : void 0;
447
+ return n.length > 0 ? this : void 0;
448
448
  }
449
- optimizeNames(o, c) {
449
+ optimizeNames(n, c) {
450
450
  const { nodes: w } = this;
451
451
  let j = w.length;
452
452
  for (; j--; ) {
453
453
  const O = w[j];
454
- O.optimizeNames(o, c) || (ee(o, O.names), w.splice(j, 1));
454
+ O.optimizeNames(n, c) || (ee(n, O.names), w.splice(j, 1));
455
455
  }
456
456
  return w.length > 0 ? this : void 0;
457
457
  }
458
458
  get names() {
459
- return this.nodes.reduce((o, c) => ie(o, c.names), {});
459
+ return this.nodes.reduce((n, c) => ie(n, c.names), {});
460
460
  }
461
461
  }
462
462
  class g extends E {
463
- render(o) {
464
- return "{" + o._n + super.render(o) + "}" + o._n;
463
+ render(n) {
464
+ return "{" + n._n + super.render(n) + "}" + n._n;
465
465
  }
466
466
  }
467
467
  class v extends E {
@@ -470,17 +470,17 @@ var rr = {};
470
470
  }
471
471
  h.kind = "else";
472
472
  class f extends g {
473
- constructor(o, c) {
474
- super(c), this.condition = o;
473
+ constructor(n, c) {
474
+ super(c), this.condition = n;
475
475
  }
476
- render(o) {
477
- let c = `if(${this.condition})` + super.render(o);
478
- return this.else && (c += "else " + this.else.render(o)), c;
476
+ render(n) {
477
+ let c = `if(${this.condition})` + super.render(n);
478
+ return this.else && (c += "else " + this.else.render(n)), c;
479
479
  }
480
480
  optimizeNodes() {
481
481
  super.optimizeNodes();
482
- const o = this.condition;
483
- if (o === !0)
482
+ const n = this.condition;
483
+ if (n === !0)
484
484
  return this.nodes;
485
485
  let c = this.else;
486
486
  if (c) {
@@ -488,18 +488,18 @@ var rr = {};
488
488
  c = this.else = Array.isArray(w) ? new h(w) : w;
489
489
  }
490
490
  if (c)
491
- return o === !1 ? c instanceof f ? c : c.nodes : this.nodes.length ? this : new f(Ae(o), c instanceof f ? [c] : c.nodes);
492
- if (!(o === !1 || !this.nodes.length))
491
+ return n === !1 ? c instanceof f ? c : c.nodes : this.nodes.length ? this : new f(Ke(n), c instanceof f ? [c] : c.nodes);
492
+ if (!(n === !1 || !this.nodes.length))
493
493
  return this;
494
494
  }
495
- optimizeNames(o, c) {
495
+ optimizeNames(n, c) {
496
496
  var w;
497
- if (this.else = (w = this.else) === null || w === void 0 ? void 0 : w.optimizeNames(o, c), !!(super.optimizeNames(o, c) || this.else))
498
- return this.condition = B(this.condition, o, c), this;
497
+ if (this.else = (w = this.else) === null || w === void 0 ? void 0 : w.optimizeNames(n, c), !!(super.optimizeNames(n, c) || this.else))
498
+ return this.condition = B(this.condition, n, c), this;
499
499
  }
500
500
  get names() {
501
- const o = super.names;
502
- return z(o, this.condition), this.else && ie(o, this.else.names), o;
501
+ const n = super.names;
502
+ return z(n, this.condition), this.else && ie(n, this.else.names), n;
503
503
  }
504
504
  }
505
505
  f.kind = "if";
@@ -507,166 +507,166 @@ var rr = {};
507
507
  }
508
508
  $.kind = "for";
509
509
  class P extends $ {
510
- constructor(o) {
511
- super(), this.iteration = o;
510
+ constructor(n) {
511
+ super(), this.iteration = n;
512
512
  }
513
- render(o) {
514
- return `for(${this.iteration})` + super.render(o);
513
+ render(n) {
514
+ return `for(${this.iteration})` + super.render(n);
515
515
  }
516
- optimizeNames(o, c) {
517
- if (super.optimizeNames(o, c))
518
- return this.iteration = B(this.iteration, o, c), this;
516
+ optimizeNames(n, c) {
517
+ if (super.optimizeNames(n, c))
518
+ return this.iteration = B(this.iteration, n, c), this;
519
519
  }
520
520
  get names() {
521
521
  return ie(super.names, this.iteration.names);
522
522
  }
523
523
  }
524
524
  class R extends $ {
525
- constructor(o, c, w, j) {
526
- super(), this.varKind = o, this.name = c, this.from = w, this.to = j;
525
+ constructor(n, c, w, j) {
526
+ super(), this.varKind = n, this.name = c, this.from = w, this.to = j;
527
527
  }
528
- render(o) {
529
- const c = o.es5 ? r.varKinds.var : this.varKind, { name: w, from: j, to: O } = this;
530
- return `for(${c} ${w}=${j}; ${w}<${O}; ${w}++)` + super.render(o);
528
+ render(n) {
529
+ const c = n.es5 ? r.varKinds.var : this.varKind, { name: w, from: j, to: O } = this;
530
+ return `for(${c} ${w}=${j}; ${w}<${O}; ${w}++)` + super.render(n);
531
531
  }
532
532
  get names() {
533
- const o = z(super.names, this.from);
534
- return z(o, this.to);
533
+ const n = z(super.names, this.from);
534
+ return z(n, this.to);
535
535
  }
536
536
  }
537
537
  class C extends $ {
538
- constructor(o, c, w, j) {
539
- super(), this.loop = o, this.varKind = c, this.name = w, this.iterable = j;
538
+ constructor(n, c, w, j) {
539
+ super(), this.loop = n, this.varKind = c, this.name = w, this.iterable = j;
540
540
  }
541
- render(o) {
542
- return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(o);
541
+ render(n) {
542
+ return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(n);
543
543
  }
544
- optimizeNames(o, c) {
545
- if (super.optimizeNames(o, c))
546
- return this.iterable = B(this.iterable, o, c), this;
544
+ optimizeNames(n, c) {
545
+ if (super.optimizeNames(n, c))
546
+ return this.iterable = B(this.iterable, n, c), this;
547
547
  }
548
548
  get names() {
549
549
  return ie(super.names, this.iterable.names);
550
550
  }
551
551
  }
552
552
  class L extends g {
553
- constructor(o, c, w) {
554
- super(), this.name = o, this.args = c, this.async = w;
553
+ constructor(n, c, w) {
554
+ super(), this.name = n, this.args = c, this.async = w;
555
555
  }
556
- render(o) {
557
- return `${this.async ? "async " : ""}function ${this.name}(${this.args})` + super.render(o);
556
+ render(n) {
557
+ return `${this.async ? "async " : ""}function ${this.name}(${this.args})` + super.render(n);
558
558
  }
559
559
  }
560
560
  L.kind = "func";
561
561
  class H extends E {
562
- render(o) {
563
- return "return " + super.render(o);
562
+ render(n) {
563
+ return "return " + super.render(n);
564
564
  }
565
565
  }
566
566
  H.kind = "return";
567
- class ne extends g {
568
- render(o) {
569
- let c = "try" + super.render(o);
570
- return this.catch && (c += this.catch.render(o)), this.finally && (c += this.finally.render(o)), c;
567
+ class oe extends g {
568
+ render(n) {
569
+ let c = "try" + super.render(n);
570
+ return this.catch && (c += this.catch.render(n)), this.finally && (c += this.finally.render(n)), c;
571
571
  }
572
572
  optimizeNodes() {
573
- var o, c;
574
- return super.optimizeNodes(), (o = this.catch) === null || o === void 0 || o.optimizeNodes(), (c = this.finally) === null || c === void 0 || c.optimizeNodes(), this;
573
+ var n, c;
574
+ return super.optimizeNodes(), (n = this.catch) === null || n === void 0 || n.optimizeNodes(), (c = this.finally) === null || c === void 0 || c.optimizeNodes(), this;
575
575
  }
576
- optimizeNames(o, c) {
576
+ optimizeNames(n, c) {
577
577
  var w, j;
578
- return super.optimizeNames(o, c), (w = this.catch) === null || w === void 0 || w.optimizeNames(o, c), (j = this.finally) === null || j === void 0 || j.optimizeNames(o, c), this;
578
+ return super.optimizeNames(n, c), (w = this.catch) === null || w === void 0 || w.optimizeNames(n, c), (j = this.finally) === null || j === void 0 || j.optimizeNames(n, c), this;
579
579
  }
580
580
  get names() {
581
- const o = super.names;
582
- return this.catch && ie(o, this.catch.names), this.finally && ie(o, this.finally.names), o;
581
+ const n = super.names;
582
+ return this.catch && ie(n, this.catch.names), this.finally && ie(n, this.finally.names), n;
583
583
  }
584
584
  }
585
585
  class ae extends g {
586
- constructor(o) {
587
- super(), this.error = o;
586
+ constructor(n) {
587
+ super(), this.error = n;
588
588
  }
589
- render(o) {
590
- return `catch(${this.error})` + super.render(o);
589
+ render(n) {
590
+ return `catch(${this.error})` + super.render(n);
591
591
  }
592
592
  }
593
593
  ae.kind = "catch";
594
594
  class me extends g {
595
- render(o) {
596
- return "finally" + super.render(o);
595
+ render(n) {
596
+ return "finally" + super.render(n);
597
597
  }
598
598
  }
599
599
  me.kind = "finally";
600
600
  class Ee {
601
- constructor(o, c = {}) {
601
+ constructor(n, c = {}) {
602
602
  this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...c, _n: c.lines ? `
603
- ` : "" }, this._extScope = o, this._scope = new r.Scope({ parent: o }), this._nodes = [new v()];
603
+ ` : "" }, this._extScope = n, this._scope = new r.Scope({ parent: n }), this._nodes = [new v()];
604
604
  }
605
605
  toString() {
606
606
  return this._root.render(this.opts);
607
607
  }
608
608
  // returns unique name in the internal scope
609
- name(o) {
610
- return this._scope.name(o);
609
+ name(n) {
610
+ return this._scope.name(n);
611
611
  }
612
612
  // reserves unique name in the external scope
613
- scopeName(o) {
614
- return this._extScope.name(o);
613
+ scopeName(n) {
614
+ return this._extScope.name(n);
615
615
  }
616
616
  // reserves unique name in the external scope and assigns value to it
617
- scopeValue(o, c) {
618
- const w = this._extScope.value(o, c);
617
+ scopeValue(n, c) {
618
+ const w = this._extScope.value(n, c);
619
619
  return (this._values[w.prefix] || (this._values[w.prefix] = /* @__PURE__ */ new Set())).add(w), w;
620
620
  }
621
- getScopeValue(o, c) {
622
- return this._extScope.getValue(o, c);
621
+ getScopeValue(n, c) {
622
+ return this._extScope.getValue(n, c);
623
623
  }
624
624
  // return code that assigns values in the external scope to the names that are used internally
625
625
  // (same names that were returned by gen.scopeName or gen.scopeValue)
626
- scopeRefs(o) {
627
- return this._extScope.scopeRefs(o, this._values);
626
+ scopeRefs(n) {
627
+ return this._extScope.scopeRefs(n, this._values);
628
628
  }
629
629
  scopeCode() {
630
630
  return this._extScope.scopeCode(this._values);
631
631
  }
632
- _def(o, c, w, j) {
632
+ _def(n, c, w, j) {
633
633
  const O = this._scope.toName(c);
634
- return w !== void 0 && j && (this._constants[O.str] = w), this._leafNode(new i(o, O, w)), O;
634
+ return w !== void 0 && j && (this._constants[O.str] = w), this._leafNode(new i(n, O, w)), O;
635
635
  }
636
636
  // `const` declaration (`var` in es5 mode)
637
- const(o, c, w) {
638
- return this._def(r.varKinds.const, o, c, w);
637
+ const(n, c, w) {
638
+ return this._def(r.varKinds.const, n, c, w);
639
639
  }
640
640
  // `let` declaration with optional assignment (`var` in es5 mode)
641
- let(o, c, w) {
642
- return this._def(r.varKinds.let, o, c, w);
641
+ let(n, c, w) {
642
+ return this._def(r.varKinds.let, n, c, w);
643
643
  }
644
644
  // `var` declaration with optional assignment
645
- var(o, c, w) {
646
- return this._def(r.varKinds.var, o, c, w);
645
+ var(n, c, w) {
646
+ return this._def(r.varKinds.var, n, c, w);
647
647
  }
648
648
  // assignment code
649
- assign(o, c, w) {
650
- return this._leafNode(new d(o, c, w));
649
+ assign(n, c, w) {
650
+ return this._leafNode(new d(n, c, w));
651
651
  }
652
652
  // `+=` code
653
- add(o, c) {
654
- return this._leafNode(new u(o, e.operators.ADD, c));
653
+ add(n, c) {
654
+ return this._leafNode(new u(n, e.operators.ADD, c));
655
655
  }
656
656
  // appends passed SafeExpr to code or executes Block
657
- code(o) {
658
- return typeof o == "function" ? o() : o !== t.nil && this._leafNode(new b(o)), this;
657
+ code(n) {
658
+ return typeof n == "function" ? n() : n !== t.nil && this._leafNode(new b(n)), this;
659
659
  }
660
660
  // returns code for object literal for the passed argument list of key-value pairs
661
- object(...o) {
661
+ object(...n) {
662
662
  const c = ["{"];
663
- for (const [w, j] of o)
663
+ for (const [w, j] of n)
664
664
  c.length > 1 && c.push(","), c.push(w), (w !== j || this.opts.es5) && (c.push(":"), (0, t.addCodeArg)(c, j));
665
665
  return c.push("}"), new t._Code(c);
666
666
  }
667
667
  // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)
668
- if(o, c, w) {
669
- if (this._blockNode(new f(o)), c && w)
668
+ if(n, c, w) {
669
+ if (this._blockNode(new f(n)), c && w)
670
670
  this.code(c).else().code(w).endIf();
671
671
  else if (c)
672
672
  this.code(c).endIf();
@@ -675,8 +675,8 @@ var rr = {};
675
675
  return this;
676
676
  }
677
677
  // `else if` clause - invalid without `if` or after `else` clauses
678
- elseIf(o) {
679
- return this._elseNode(new f(o));
678
+ elseIf(n) {
679
+ return this._elseNode(new f(n));
680
680
  }
681
681
  // `else` clause - only valid after `if` or `else if` clauses
682
682
  else() {
@@ -686,35 +686,35 @@ var rr = {};
686
686
  endIf() {
687
687
  return this._endBlockNode(f, h);
688
688
  }
689
- _for(o, c) {
690
- return this._blockNode(o), c && this.code(c).endFor(), this;
689
+ _for(n, c) {
690
+ return this._blockNode(n), c && this.code(c).endFor(), this;
691
691
  }
692
692
  // a generic `for` clause (or statement if `forBody` is passed)
693
- for(o, c) {
694
- return this._for(new P(o), c);
693
+ for(n, c) {
694
+ return this._for(new P(n), c);
695
695
  }
696
696
  // `for` statement for a range of values
697
- forRange(o, c, w, j, O = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
698
- const U = this._scope.toName(o);
699
- return this._for(new R(O, U, c, w), () => j(U));
697
+ forRange(n, c, w, j, O = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
698
+ const A = this._scope.toName(n);
699
+ return this._for(new R(O, A, c, w), () => j(A));
700
700
  }
701
701
  // `for-of` statement (in es5 mode replace with a normal for loop)
702
- forOf(o, c, w, j = r.varKinds.const) {
703
- const O = this._scope.toName(o);
702
+ forOf(n, c, w, j = r.varKinds.const) {
703
+ const O = this._scope.toName(n);
704
704
  if (this.opts.es5) {
705
- const U = c instanceof t.Name ? c : this.var("_arr", c);
706
- return this.forRange("_i", 0, (0, t._)`${U}.length`, (q) => {
707
- this.var(O, (0, t._)`${U}[${q}]`), w(O);
705
+ const A = c instanceof t.Name ? c : this.var("_arr", c);
706
+ return this.forRange("_i", 0, (0, t._)`${A}.length`, (U) => {
707
+ this.var(O, (0, t._)`${A}[${U}]`), w(O);
708
708
  });
709
709
  }
710
710
  return this._for(new C("of", j, O, c), () => w(O));
711
711
  }
712
712
  // `for-in` statement.
713
713
  // With option `ownProperties` replaced with a `for-of` loop for object keys
714
- forIn(o, c, w, j = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
714
+ forIn(n, c, w, j = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
715
715
  if (this.opts.ownProperties)
716
- return this.forOf(o, (0, t._)`Object.keys(${c})`, w);
717
- const O = this._scope.toName(o);
716
+ return this.forOf(n, (0, t._)`Object.keys(${c})`, w);
717
+ const O = this._scope.toName(n);
718
718
  return this._for(new C("in", j, O, c), () => w(O));
719
719
  }
720
720
  // end `for` loop
@@ -722,125 +722,125 @@ var rr = {};
722
722
  return this._endBlockNode($);
723
723
  }
724
724
  // `label` statement
725
- label(o) {
726
- return this._leafNode(new l(o));
725
+ label(n) {
726
+ return this._leafNode(new l(n));
727
727
  }
728
728
  // `break` statement
729
- break(o) {
730
- return this._leafNode(new m(o));
729
+ break(n) {
730
+ return this._leafNode(new m(n));
731
731
  }
732
732
  // `return` statement
733
- return(o) {
733
+ return(n) {
734
734
  const c = new H();
735
- if (this._blockNode(c), this.code(o), c.nodes.length !== 1)
735
+ if (this._blockNode(c), this.code(n), c.nodes.length !== 1)
736
736
  throw new Error('CodeGen: "return" should have one node');
737
737
  return this._endBlockNode(H);
738
738
  }
739
739
  // `try` statement
740
- try(o, c, w) {
740
+ try(n, c, w) {
741
741
  if (!c && !w)
742
742
  throw new Error('CodeGen: "try" without "catch" and "finally"');
743
- const j = new ne();
744
- if (this._blockNode(j), this.code(o), c) {
743
+ const j = new oe();
744
+ if (this._blockNode(j), this.code(n), c) {
745
745
  const O = this.name("e");
746
746
  this._currNode = j.catch = new ae(O), c(O);
747
747
  }
748
748
  return w && (this._currNode = j.finally = new me(), this.code(w)), this._endBlockNode(ae, me);
749
749
  }
750
750
  // `throw` statement
751
- throw(o) {
752
- return this._leafNode(new y(o));
751
+ throw(n) {
752
+ return this._leafNode(new y(n));
753
753
  }
754
754
  // start self-balancing block
755
- block(o, c) {
756
- return this._blockStarts.push(this._nodes.length), o && this.code(o).endBlock(c), this;
755
+ block(n, c) {
756
+ return this._blockStarts.push(this._nodes.length), n && this.code(n).endBlock(c), this;
757
757
  }
758
758
  // end the current self-balancing block
759
- endBlock(o) {
759
+ endBlock(n) {
760
760
  const c = this._blockStarts.pop();
761
761
  if (c === void 0)
762
762
  throw new Error("CodeGen: not in self-balancing block");
763
763
  const w = this._nodes.length - c;
764
- if (w < 0 || o !== void 0 && w !== o)
765
- throw new Error(`CodeGen: wrong number of nodes: ${w} vs ${o} expected`);
764
+ if (w < 0 || n !== void 0 && w !== n)
765
+ throw new Error(`CodeGen: wrong number of nodes: ${w} vs ${n} expected`);
766
766
  return this._nodes.length = c, this;
767
767
  }
768
768
  // `function` heading (or definition if funcBody is passed)
769
- func(o, c = t.nil, w, j) {
770
- return this._blockNode(new L(o, c, w)), j && this.code(j).endFunc(), this;
769
+ func(n, c = t.nil, w, j) {
770
+ return this._blockNode(new L(n, c, w)), j && this.code(j).endFunc(), this;
771
771
  }
772
772
  // end function definition
773
773
  endFunc() {
774
774
  return this._endBlockNode(L);
775
775
  }
776
- optimize(o = 1) {
777
- for (; o-- > 0; )
776
+ optimize(n = 1) {
777
+ for (; n-- > 0; )
778
778
  this._root.optimizeNodes(), this._root.optimizeNames(this._root.names, this._constants);
779
779
  }
780
- _leafNode(o) {
781
- return this._currNode.nodes.push(o), this;
780
+ _leafNode(n) {
781
+ return this._currNode.nodes.push(n), this;
782
782
  }
783
- _blockNode(o) {
784
- this._currNode.nodes.push(o), this._nodes.push(o);
783
+ _blockNode(n) {
784
+ this._currNode.nodes.push(n), this._nodes.push(n);
785
785
  }
786
- _endBlockNode(o, c) {
786
+ _endBlockNode(n, c) {
787
787
  const w = this._currNode;
788
- if (w instanceof o || c && w instanceof c)
788
+ if (w instanceof n || c && w instanceof c)
789
789
  return this._nodes.pop(), this;
790
- throw new Error(`CodeGen: not in block "${c ? `${o.kind}/${c.kind}` : o.kind}"`);
790
+ throw new Error(`CodeGen: not in block "${c ? `${n.kind}/${c.kind}` : n.kind}"`);
791
791
  }
792
- _elseNode(o) {
792
+ _elseNode(n) {
793
793
  const c = this._currNode;
794
794
  if (!(c instanceof f))
795
795
  throw new Error('CodeGen: "else" without "if"');
796
- return this._currNode = c.else = o, this;
796
+ return this._currNode = c.else = n, this;
797
797
  }
798
798
  get _root() {
799
799
  return this._nodes[0];
800
800
  }
801
801
  get _currNode() {
802
- const o = this._nodes;
803
- return o[o.length - 1];
802
+ const n = this._nodes;
803
+ return n[n.length - 1];
804
804
  }
805
- set _currNode(o) {
805
+ set _currNode(n) {
806
806
  const c = this._nodes;
807
- c[c.length - 1] = o;
807
+ c[c.length - 1] = n;
808
808
  }
809
809
  }
810
810
  e.CodeGen = Ee;
811
- function ie(_, o) {
812
- for (const c in o)
813
- _[c] = (_[c] || 0) + (o[c] || 0);
811
+ function ie(_, n) {
812
+ for (const c in n)
813
+ _[c] = (_[c] || 0) + (n[c] || 0);
814
814
  return _;
815
815
  }
816
- function z(_, o) {
817
- return o instanceof t._CodeOrName ? ie(_, o.names) : _;
816
+ function z(_, n) {
817
+ return n instanceof t._CodeOrName ? ie(_, n.names) : _;
818
818
  }
819
- function B(_, o, c) {
819
+ function B(_, n, c) {
820
820
  if (_ instanceof t.Name)
821
821
  return w(_);
822
822
  if (!j(_))
823
823
  return _;
824
- return new t._Code(_._items.reduce((O, U) => (U instanceof t.Name && (U = w(U)), U instanceof t._Code ? O.push(...U._items) : O.push(U), O), []));
824
+ return new t._Code(_._items.reduce((O, A) => (A instanceof t.Name && (A = w(A)), A instanceof t._Code ? O.push(...A._items) : O.push(A), O), []));
825
825
  function w(O) {
826
- const U = c[O.str];
827
- return U === void 0 || o[O.str] !== 1 ? O : (delete o[O.str], U);
826
+ const A = c[O.str];
827
+ return A === void 0 || n[O.str] !== 1 ? O : (delete n[O.str], A);
828
828
  }
829
829
  function j(O) {
830
- return O instanceof t._Code && O._items.some((U) => U instanceof t.Name && o[U.str] === 1 && c[U.str] !== void 0);
830
+ return O instanceof t._Code && O._items.some((A) => A instanceof t.Name && n[A.str] === 1 && c[A.str] !== void 0);
831
831
  }
832
832
  }
833
- function ee(_, o) {
834
- for (const c in o)
835
- _[c] = (_[c] || 0) - (o[c] || 0);
833
+ function ee(_, n) {
834
+ for (const c in n)
835
+ _[c] = (_[c] || 0) - (n[c] || 0);
836
836
  }
837
- function Ae(_) {
837
+ function Ke(_) {
838
838
  return typeof _ == "boolean" || typeof _ == "number" || _ === null ? !_ : (0, t._)`!${S(_)}`;
839
839
  }
840
- e.not = Ae;
841
- const Ke = p(e.operators.AND);
840
+ e.not = Ke;
841
+ const qe = p(e.operators.AND);
842
842
  function $e(..._) {
843
- return _.reduce(Ke);
843
+ return _.reduce(qe);
844
844
  }
845
845
  e.and = $e;
846
846
  const he = p(e.operators.OR);
@@ -849,37 +849,37 @@ var rr = {};
849
849
  }
850
850
  e.or = k;
851
851
  function p(_) {
852
- return (o, c) => o === t.nil ? c : c === t.nil ? o : (0, t._)`${S(o)} ${_} ${S(c)}`;
852
+ return (n, c) => n === t.nil ? c : c === t.nil ? n : (0, t._)`${S(n)} ${_} ${S(c)}`;
853
853
  }
854
854
  function S(_) {
855
855
  return _ instanceof t.Name ? _ : (0, t._)`(${_})`;
856
856
  }
857
- })(K);
857
+ })(q);
858
858
  var N = {};
859
859
  Object.defineProperty(N, "__esModule", { value: !0 });
860
860
  N.checkStrictMode = N.getErrorPath = N.Type = N.useFunc = N.setEvaluated = N.evaluatedPropsToName = N.mergeEvaluated = N.eachItem = N.unescapeJsonPointer = N.escapeJsonPointer = N.escapeFragment = N.unescapeFragment = N.schemaRefOrVal = N.schemaHasRulesButRef = N.schemaHasRules = N.checkUnknownRules = N.alwaysValidSchema = N.toHash = void 0;
861
- const G = K, bo = ut;
862
- function Eo(e) {
861
+ const G = q, bn = ut;
862
+ function En(e) {
863
863
  const t = {};
864
864
  for (const r of e)
865
865
  t[r] = !0;
866
866
  return t;
867
867
  }
868
- N.toHash = Eo;
869
- function So(e, t) {
870
- return typeof t == "boolean" ? t : Object.keys(t).length === 0 ? !0 : (Fs(e, t), !As(t, e.self.RULES.all));
868
+ N.toHash = En;
869
+ function Sn(e, t) {
870
+ return typeof t == "boolean" ? t : Object.keys(t).length === 0 ? !0 : (Fs(e, t), !Ks(t, e.self.RULES.all));
871
871
  }
872
- N.alwaysValidSchema = So;
872
+ N.alwaysValidSchema = Sn;
873
873
  function Fs(e, t = e.schema) {
874
874
  const { opts: r, self: s } = e;
875
875
  if (!r.strictSchema || typeof t == "boolean")
876
876
  return;
877
- const n = s.RULES.keywords;
877
+ const o = s.RULES.keywords;
878
878
  for (const a in t)
879
- n[a] || zs(e, `unknown keyword: "${a}"`);
879
+ o[a] || zs(e, `unknown keyword: "${a}"`);
880
880
  }
881
881
  N.checkUnknownRules = Fs;
882
- function As(e, t) {
882
+ function Ks(e, t) {
883
883
  if (typeof e == "boolean")
884
884
  return !e;
885
885
  for (const r in e)
@@ -887,8 +887,8 @@ function As(e, t) {
887
887
  return !0;
888
888
  return !1;
889
889
  }
890
- N.schemaHasRules = As;
891
- function Po(e, t) {
890
+ N.schemaHasRules = Ks;
891
+ function Pn(e, t) {
892
892
  if (typeof e == "boolean")
893
893
  return !e;
894
894
  for (const r in e)
@@ -896,9 +896,9 @@ function Po(e, t) {
896
896
  return !0;
897
897
  return !1;
898
898
  }
899
- N.schemaHasRulesButRef = Po;
900
- function ko({ topSchemaRef: e, schemaPath: t }, r, s, n) {
901
- if (!n) {
899
+ N.schemaHasRulesButRef = Pn;
900
+ function kn({ topSchemaRef: e, schemaPath: t }, r, s, o) {
901
+ if (!o) {
902
902
  if (typeof r == "number" || typeof r == "boolean")
903
903
  return r;
904
904
  if (typeof r == "string")
@@ -906,35 +906,35 @@ function ko({ topSchemaRef: e, schemaPath: t }, r, s, n) {
906
906
  }
907
907
  return (0, G._)`${e}${t}${(0, G.getProperty)(s)}`;
908
908
  }
909
- N.schemaRefOrVal = ko;
910
- function No(e) {
911
- return Ks(decodeURIComponent(e));
909
+ N.schemaRefOrVal = kn;
910
+ function Nn(e) {
911
+ return qs(decodeURIComponent(e));
912
912
  }
913
- N.unescapeFragment = No;
914
- function Co(e) {
913
+ N.unescapeFragment = Nn;
914
+ function Cn(e) {
915
915
  return encodeURIComponent(lr(e));
916
916
  }
917
- N.escapeFragment = Co;
917
+ N.escapeFragment = Cn;
918
918
  function lr(e) {
919
919
  return typeof e == "number" ? `${e}` : e.replace(/~/g, "~0").replace(/\//g, "~1");
920
920
  }
921
921
  N.escapeJsonPointer = lr;
922
- function Ks(e) {
922
+ function qs(e) {
923
923
  return e.replace(/~1/g, "/").replace(/~0/g, "~");
924
924
  }
925
- N.unescapeJsonPointer = Ks;
926
- function jo(e, t) {
925
+ N.unescapeJsonPointer = qs;
926
+ function jn(e, t) {
927
927
  if (Array.isArray(e))
928
928
  for (const r of e)
929
929
  t(r);
930
930
  else
931
931
  t(e);
932
932
  }
933
- N.eachItem = jo;
933
+ N.eachItem = jn;
934
934
  function es({ mergeNames: e, mergeToName: t, mergeValues: r, resultToName: s }) {
935
- return (n, a, i, d) => {
936
- const u = i === void 0 ? a : i instanceof G.Name ? (a instanceof G.Name ? e(n, a, i) : t(n, a, i), i) : a instanceof G.Name ? (t(n, i, a), a) : r(a, i);
937
- return d === G.Name && !(u instanceof G.Name) ? s(n, u) : u;
935
+ return (o, a, i, d) => {
936
+ const u = i === void 0 ? a : i instanceof G.Name ? (a instanceof G.Name ? e(o, a, i) : t(o, a, i), i) : a instanceof G.Name ? (t(o, i, a), a) : r(a, i);
937
+ return d === G.Name && !(u instanceof G.Name) ? s(o, u) : u;
938
938
  };
939
939
  }
940
940
  N.mergeEvaluated = {
@@ -946,7 +946,7 @@ N.mergeEvaluated = {
946
946
  t === !0 ? e.assign(r, !0) : (e.assign(r, (0, G._)`${r} || {}`), dr(e, r, t));
947
947
  }),
948
948
  mergeValues: (e, t) => e === !0 ? !0 : { ...e, ...t },
949
- resultToName: qs
949
+ resultToName: Us
950
950
  }),
951
951
  items: es({
952
952
  mergeNames: (e, t, r) => e.if((0, G._)`${r} !== true && ${t} !== undefined`, () => e.assign(r, (0, G._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),
@@ -955,37 +955,37 @@ N.mergeEvaluated = {
955
955
  resultToName: (e, t) => e.var("items", t)
956
956
  })
957
957
  };
958
- function qs(e, t) {
958
+ function Us(e, t) {
959
959
  if (t === !0)
960
960
  return e.var("props", !0);
961
961
  const r = e.var("props", (0, G._)`{}`);
962
962
  return t !== void 0 && dr(e, r, t), r;
963
963
  }
964
- N.evaluatedPropsToName = qs;
964
+ N.evaluatedPropsToName = Us;
965
965
  function dr(e, t, r) {
966
966
  Object.keys(r).forEach((s) => e.assign((0, G._)`${t}${(0, G.getProperty)(s)}`, !0));
967
967
  }
968
968
  N.setEvaluated = dr;
969
969
  const ts = {};
970
- function Ro(e, t) {
970
+ function Rn(e, t) {
971
971
  return e.scopeValue("func", {
972
972
  ref: t,
973
- code: ts[t.code] || (ts[t.code] = new bo._Code(t.code))
973
+ code: ts[t.code] || (ts[t.code] = new bn._Code(t.code))
974
974
  });
975
975
  }
976
- N.useFunc = Ro;
976
+ N.useFunc = Rn;
977
977
  var sr;
978
978
  (function(e) {
979
979
  e[e.Num = 0] = "Num", e[e.Str = 1] = "Str";
980
980
  })(sr || (N.Type = sr = {}));
981
- function Oo(e, t, r) {
981
+ function On(e, t, r) {
982
982
  if (e instanceof G.Name) {
983
983
  const s = t === sr.Num;
984
984
  return r ? s ? (0, G._)`"[" + ${e} + "]"` : (0, G._)`"['" + ${e} + "']"` : s ? (0, G._)`"/" + ${e}` : (0, G._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
985
985
  }
986
986
  return r ? (0, G.getProperty)(e).toString() : "/" + lr(e);
987
987
  }
988
- N.getErrorPath = Oo;
988
+ N.getErrorPath = On;
989
989
  function zs(e, t, r = e.opts.strictSchema) {
990
990
  if (r) {
991
991
  if (t = `strict mode: ${t}`, r === !0)
@@ -996,7 +996,7 @@ function zs(e, t, r = e.opts.strictSchema) {
996
996
  N.checkStrictMode = zs;
997
997
  var ve = {};
998
998
  Object.defineProperty(ve, "__esModule", { value: !0 });
999
- const D = K, To = {
999
+ const D = q, Tn = {
1000
1000
  // validation function arguments
1001
1001
  data: new D.Name("data"),
1002
1002
  // data passed to validation function
@@ -1025,20 +1025,20 @@ const D = K, To = {
1025
1025
  jsonLen: new D.Name("jsonLen"),
1026
1026
  jsonPart: new D.Name("jsonPart")
1027
1027
  };
1028
- ve.default = To;
1028
+ ve.default = Tn;
1029
1029
  (function(e) {
1030
1030
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
1031
- const t = K, r = N, s = ve;
1031
+ const t = q, r = N, s = ve;
1032
1032
  e.keywordError = {
1033
1033
  message: ({ keyword: h }) => (0, t.str)`must pass "${h}" keyword validation`
1034
1034
  }, e.keyword$DataError = {
1035
1035
  message: ({ keyword: h, schemaType: f }) => f ? (0, t.str)`"${h}" keyword must be ${f} ($data)` : (0, t.str)`"${h}" keyword is invalid ($data)`
1036
1036
  };
1037
- function n(h, f = e.keywordError, $, P) {
1038
- const { it: R } = h, { gen: C, compositeRule: L, allErrors: H } = R, ne = y(h, f, $);
1039
- P ?? (L || H) ? u(C, ne) : l(R, (0, t._)`[${ne}]`);
1037
+ function o(h, f = e.keywordError, $, P) {
1038
+ const { it: R } = h, { gen: C, compositeRule: L, allErrors: H } = R, oe = y(h, f, $);
1039
+ P ?? (L || H) ? u(C, oe) : l(R, (0, t._)`[${oe}]`);
1040
1040
  }
1041
- e.reportError = n;
1041
+ e.reportError = o;
1042
1042
  function a(h, f = e.keywordError, $) {
1043
1043
  const { it: P } = h, { gen: R, compositeRule: C, allErrors: L } = P, H = y(h, f, $);
1044
1044
  u(R, H), C || L || l(P, s.default.vErrors);
@@ -1095,27 +1095,27 @@ ve.default = To;
1095
1095
  return $ && (R = (0, t.str)`${R}${(0, r.getErrorPath)($, r.Type.Str)}`), [m.schemaPath, R];
1096
1096
  }
1097
1097
  function v(h, { params: f, message: $ }, P) {
1098
- const { keyword: R, data: C, schemaValue: L, it: H } = h, { opts: ne, propertyName: ae, topSchemaRef: me, schemaPath: Ee } = H;
1099
- P.push([m.keyword, R], [m.params, typeof f == "function" ? f(h) : f || (0, t._)`{}`]), ne.messages && P.push([m.message, typeof $ == "function" ? $(h) : $]), ne.verbose && P.push([m.schema, L], [m.parentSchema, (0, t._)`${me}${Ee}`], [s.default.data, C]), ae && P.push([m.propertyName, ae]);
1098
+ const { keyword: R, data: C, schemaValue: L, it: H } = h, { opts: oe, propertyName: ae, topSchemaRef: me, schemaPath: Ee } = H;
1099
+ P.push([m.keyword, R], [m.params, typeof f == "function" ? f(h) : f || (0, t._)`{}`]), oe.messages && P.push([m.message, typeof $ == "function" ? $(h) : $]), oe.verbose && P.push([m.schema, L], [m.parentSchema, (0, t._)`${me}${Ee}`], [s.default.data, C]), ae && P.push([m.propertyName, ae]);
1100
1100
  }
1101
1101
  })(mt);
1102
1102
  Object.defineProperty(Qe, "__esModule", { value: !0 });
1103
1103
  Qe.boolOrEmptySchema = Qe.topBoolOrEmptySchema = void 0;
1104
- const Io = mt, Mo = K, Vo = ve, Fo = {
1104
+ const In = mt, Mn = q, Vn = ve, Fn = {
1105
1105
  message: "boolean schema is false"
1106
1106
  };
1107
- function Ao(e) {
1107
+ function Kn(e) {
1108
1108
  const { gen: t, schema: r, validateName: s } = e;
1109
- r === !1 ? Us(e, !1) : typeof r == "object" && r.$async === !0 ? t.return(Vo.default.data) : (t.assign((0, Mo._)`${s}.errors`, null), t.return(!0));
1109
+ r === !1 ? As(e, !1) : typeof r == "object" && r.$async === !0 ? t.return(Vn.default.data) : (t.assign((0, Mn._)`${s}.errors`, null), t.return(!0));
1110
1110
  }
1111
- Qe.topBoolOrEmptySchema = Ao;
1112
- function Ko(e, t) {
1111
+ Qe.topBoolOrEmptySchema = Kn;
1112
+ function qn(e, t) {
1113
1113
  const { gen: r, schema: s } = e;
1114
- s === !1 ? (r.var(t, !1), Us(e)) : r.var(t, !0);
1114
+ s === !1 ? (r.var(t, !1), As(e)) : r.var(t, !0);
1115
1115
  }
1116
- Qe.boolOrEmptySchema = Ko;
1117
- function Us(e, t) {
1118
- const { gen: r, data: s } = e, n = {
1116
+ Qe.boolOrEmptySchema = qn;
1117
+ function As(e, t) {
1118
+ const { gen: r, data: s } = e, o = {
1119
1119
  gen: r,
1120
1120
  keyword: "false schema",
1121
1121
  data: s,
@@ -1125,17 +1125,17 @@ function Us(e, t) {
1125
1125
  params: {},
1126
1126
  it: e
1127
1127
  };
1128
- (0, Io.reportError)(n, Fo, void 0, t);
1128
+ (0, In.reportError)(o, Fn, void 0, t);
1129
1129
  }
1130
1130
  var X = {}, Ve = {};
1131
1131
  Object.defineProperty(Ve, "__esModule", { value: !0 });
1132
1132
  Ve.getRules = Ve.isJSONType = void 0;
1133
- const qo = ["string", "number", "integer", "boolean", "null", "object", "array"], zo = new Set(qo);
1134
- function Uo(e) {
1135
- return typeof e == "string" && zo.has(e);
1133
+ const Un = ["string", "number", "integer", "boolean", "null", "object", "array"], zn = new Set(Un);
1134
+ function An(e) {
1135
+ return typeof e == "string" && zn.has(e);
1136
1136
  }
1137
- Ve.isJSONType = Uo;
1138
- function Lo() {
1137
+ Ve.isJSONType = An;
1138
+ function Ln() {
1139
1139
  const e = {
1140
1140
  number: { type: "number", rules: [] },
1141
1141
  string: { type: "string", rules: [] },
@@ -1150,15 +1150,15 @@ function Lo() {
1150
1150
  keywords: {}
1151
1151
  };
1152
1152
  }
1153
- Ve.getRules = Lo;
1153
+ Ve.getRules = Ln;
1154
1154
  var we = {};
1155
1155
  Object.defineProperty(we, "__esModule", { value: !0 });
1156
1156
  we.shouldUseRule = we.shouldUseGroup = we.schemaHasRulesForType = void 0;
1157
- function Go({ schema: e, self: t }, r) {
1157
+ function Gn({ schema: e, self: t }, r) {
1158
1158
  const s = t.RULES.types[r];
1159
1159
  return s && s !== !0 && Ls(e, s);
1160
1160
  }
1161
- we.schemaHasRulesForType = Go;
1161
+ we.schemaHasRulesForType = Gn;
1162
1162
  function Ls(e, t) {
1163
1163
  return t.rules.some((r) => Gs(e, r));
1164
1164
  }
@@ -1170,12 +1170,12 @@ function Gs(e, t) {
1170
1170
  we.shouldUseRule = Gs;
1171
1171
  Object.defineProperty(X, "__esModule", { value: !0 });
1172
1172
  X.reportTypeError = X.checkDataTypes = X.checkDataType = X.coerceAndCheckDataType = X.getJSONTypes = X.getSchemaTypes = X.DataType = void 0;
1173
- const Jo = Ve, Ho = we, Bo = mt, F = K, Js = N;
1173
+ const Jn = Ve, Hn = we, Bn = mt, F = q, Js = N;
1174
1174
  var He;
1175
1175
  (function(e) {
1176
1176
  e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
1177
1177
  })(He || (X.DataType = He = {}));
1178
- function Qo(e) {
1178
+ function Qn(e) {
1179
1179
  const t = Hs(e.type);
1180
1180
  if (t.includes("null")) {
1181
1181
  if (e.nullable === !1)
@@ -1187,71 +1187,71 @@ function Qo(e) {
1187
1187
  }
1188
1188
  return t;
1189
1189
  }
1190
- X.getSchemaTypes = Qo;
1190
+ X.getSchemaTypes = Qn;
1191
1191
  function Hs(e) {
1192
1192
  const t = Array.isArray(e) ? e : e ? [e] : [];
1193
- if (t.every(Jo.isJSONType))
1193
+ if (t.every(Jn.isJSONType))
1194
1194
  return t;
1195
1195
  throw new Error("type must be JSONType or JSONType[]: " + t.join(","));
1196
1196
  }
1197
1197
  X.getJSONTypes = Hs;
1198
- function Xo(e, t) {
1199
- const { gen: r, data: s, opts: n } = e, a = Yo(t, n.coerceTypes), i = t.length > 0 && !(a.length === 0 && t.length === 1 && (0, Ho.schemaHasRulesForType)(e, t[0]));
1198
+ function Xn(e, t) {
1199
+ const { gen: r, data: s, opts: o } = e, a = Yn(t, o.coerceTypes), i = t.length > 0 && !(a.length === 0 && t.length === 1 && (0, Hn.schemaHasRulesForType)(e, t[0]));
1200
1200
  if (i) {
1201
- const d = ur(t, s, n.strictNumbers, He.Wrong);
1201
+ const d = ur(t, s, o.strictNumbers, He.Wrong);
1202
1202
  r.if(d, () => {
1203
- a.length ? Zo(e, t, a) : fr(e);
1203
+ a.length ? Zn(e, t, a) : fr(e);
1204
1204
  });
1205
1205
  }
1206
1206
  return i;
1207
1207
  }
1208
- X.coerceAndCheckDataType = Xo;
1208
+ X.coerceAndCheckDataType = Xn;
1209
1209
  const Bs = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
1210
- function Yo(e, t) {
1210
+ function Yn(e, t) {
1211
1211
  return t ? e.filter((r) => Bs.has(r) || t === "array" && r === "array") : [];
1212
1212
  }
1213
- function Zo(e, t, r) {
1214
- const { gen: s, data: n, opts: a } = e, i = s.let("dataType", (0, F._)`typeof ${n}`), d = s.let("coerced", (0, F._)`undefined`);
1215
- a.coerceTypes === "array" && s.if((0, F._)`${i} == 'object' && Array.isArray(${n}) && ${n}.length == 1`, () => s.assign(n, (0, F._)`${n}[0]`).assign(i, (0, F._)`typeof ${n}`).if(ur(t, n, a.strictNumbers), () => s.assign(d, n))), s.if((0, F._)`${d} !== undefined`);
1213
+ function Zn(e, t, r) {
1214
+ const { gen: s, data: o, opts: a } = e, i = s.let("dataType", (0, F._)`typeof ${o}`), d = s.let("coerced", (0, F._)`undefined`);
1215
+ a.coerceTypes === "array" && s.if((0, F._)`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`, () => s.assign(o, (0, F._)`${o}[0]`).assign(i, (0, F._)`typeof ${o}`).if(ur(t, o, a.strictNumbers), () => s.assign(d, o))), s.if((0, F._)`${d} !== undefined`);
1216
1216
  for (const l of r)
1217
1217
  (Bs.has(l) || l === "array" && a.coerceTypes === "array") && u(l);
1218
1218
  s.else(), fr(e), s.endIf(), s.if((0, F._)`${d} !== undefined`, () => {
1219
- s.assign(n, d), Do(e, d);
1219
+ s.assign(o, d), Dn(e, d);
1220
1220
  });
1221
1221
  function u(l) {
1222
1222
  switch (l) {
1223
1223
  case "string":
1224
- s.elseIf((0, F._)`${i} == "number" || ${i} == "boolean"`).assign(d, (0, F._)`"" + ${n}`).elseIf((0, F._)`${n} === null`).assign(d, (0, F._)`""`);
1224
+ s.elseIf((0, F._)`${i} == "number" || ${i} == "boolean"`).assign(d, (0, F._)`"" + ${o}`).elseIf((0, F._)`${o} === null`).assign(d, (0, F._)`""`);
1225
1225
  return;
1226
1226
  case "number":
1227
- s.elseIf((0, F._)`${i} == "boolean" || ${n} === null
1228
- || (${i} == "string" && ${n} && ${n} == +${n})`).assign(d, (0, F._)`+${n}`);
1227
+ s.elseIf((0, F._)`${i} == "boolean" || ${o} === null
1228
+ || (${i} == "string" && ${o} && ${o} == +${o})`).assign(d, (0, F._)`+${o}`);
1229
1229
  return;
1230
1230
  case "integer":
1231
- s.elseIf((0, F._)`${i} === "boolean" || ${n} === null
1232
- || (${i} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(d, (0, F._)`+${n}`);
1231
+ s.elseIf((0, F._)`${i} === "boolean" || ${o} === null
1232
+ || (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(d, (0, F._)`+${o}`);
1233
1233
  return;
1234
1234
  case "boolean":
1235
- s.elseIf((0, F._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(d, !1).elseIf((0, F._)`${n} === "true" || ${n} === 1`).assign(d, !0);
1235
+ s.elseIf((0, F._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(d, !1).elseIf((0, F._)`${o} === "true" || ${o} === 1`).assign(d, !0);
1236
1236
  return;
1237
1237
  case "null":
1238
- s.elseIf((0, F._)`${n} === "" || ${n} === 0 || ${n} === false`), s.assign(d, null);
1238
+ s.elseIf((0, F._)`${o} === "" || ${o} === 0 || ${o} === false`), s.assign(d, null);
1239
1239
  return;
1240
1240
  case "array":
1241
1241
  s.elseIf((0, F._)`${i} === "string" || ${i} === "number"
1242
- || ${i} === "boolean" || ${n} === null`).assign(d, (0, F._)`[${n}]`);
1242
+ || ${i} === "boolean" || ${o} === null`).assign(d, (0, F._)`[${o}]`);
1243
1243
  }
1244
1244
  }
1245
1245
  }
1246
- function Do({ gen: e, parentData: t, parentDataProperty: r }, s) {
1246
+ function Dn({ gen: e, parentData: t, parentDataProperty: r }, s) {
1247
1247
  e.if((0, F._)`${t} !== undefined`, () => e.assign((0, F._)`${t}[${r}]`, s));
1248
1248
  }
1249
- function nr(e, t, r, s = He.Correct) {
1250
- const n = s === He.Correct ? F.operators.EQ : F.operators.NEQ;
1249
+ function or(e, t, r, s = He.Correct) {
1250
+ const o = s === He.Correct ? F.operators.EQ : F.operators.NEQ;
1251
1251
  let a;
1252
1252
  switch (e) {
1253
1253
  case "null":
1254
- return (0, F._)`${t} ${n} null`;
1254
+ return (0, F._)`${t} ${o} null`;
1255
1255
  case "array":
1256
1256
  a = (0, F._)`Array.isArray(${t})`;
1257
1257
  break;
@@ -1265,48 +1265,48 @@ function nr(e, t, r, s = He.Correct) {
1265
1265
  a = i();
1266
1266
  break;
1267
1267
  default:
1268
- return (0, F._)`typeof ${t} ${n} ${e}`;
1268
+ return (0, F._)`typeof ${t} ${o} ${e}`;
1269
1269
  }
1270
1270
  return s === He.Correct ? a : (0, F.not)(a);
1271
1271
  function i(d = F.nil) {
1272
1272
  return (0, F.and)((0, F._)`typeof ${t} == "number"`, d, r ? (0, F._)`isFinite(${t})` : F.nil);
1273
1273
  }
1274
1274
  }
1275
- X.checkDataType = nr;
1275
+ X.checkDataType = or;
1276
1276
  function ur(e, t, r, s) {
1277
1277
  if (e.length === 1)
1278
- return nr(e[0], t, r, s);
1279
- let n;
1278
+ return or(e[0], t, r, s);
1279
+ let o;
1280
1280
  const a = (0, Js.toHash)(e);
1281
1281
  if (a.array && a.object) {
1282
1282
  const i = (0, F._)`typeof ${t} != "object"`;
1283
- n = a.null ? i : (0, F._)`!${t} || ${i}`, delete a.null, delete a.array, delete a.object;
1283
+ o = a.null ? i : (0, F._)`!${t} || ${i}`, delete a.null, delete a.array, delete a.object;
1284
1284
  } else
1285
- n = F.nil;
1285
+ o = F.nil;
1286
1286
  a.number && delete a.integer;
1287
1287
  for (const i in a)
1288
- n = (0, F.and)(n, nr(i, t, r, s));
1289
- return n;
1288
+ o = (0, F.and)(o, or(i, t, r, s));
1289
+ return o;
1290
1290
  }
1291
1291
  X.checkDataTypes = ur;
1292
- const Wo = {
1292
+ const Wn = {
1293
1293
  message: ({ schema: e }) => `must be ${e}`,
1294
1294
  params: ({ schema: e, schemaValue: t }) => typeof e == "string" ? (0, F._)`{type: ${e}}` : (0, F._)`{type: ${t}}`
1295
1295
  };
1296
1296
  function fr(e) {
1297
- const t = xo(e);
1298
- (0, Bo.reportError)(t, Wo);
1297
+ const t = xn(e);
1298
+ (0, Bn.reportError)(t, Wn);
1299
1299
  }
1300
1300
  X.reportTypeError = fr;
1301
- function xo(e) {
1302
- const { gen: t, data: r, schema: s } = e, n = (0, Js.schemaRefOrVal)(e, s, "type");
1301
+ function xn(e) {
1302
+ const { gen: t, data: r, schema: s } = e, o = (0, Js.schemaRefOrVal)(e, s, "type");
1303
1303
  return {
1304
1304
  gen: t,
1305
1305
  keyword: "type",
1306
1306
  data: r,
1307
1307
  schema: s.type,
1308
- schemaCode: n,
1309
- schemaValue: n,
1308
+ schemaCode: o,
1309
+ schemaValue: o,
1310
1310
  parentSchema: s,
1311
1311
  params: {},
1312
1312
  it: e
@@ -1315,46 +1315,46 @@ function xo(e) {
1315
1315
  var Rt = {};
1316
1316
  Object.defineProperty(Rt, "__esModule", { value: !0 });
1317
1317
  Rt.assignDefaults = void 0;
1318
- const Ue = K, ea = N;
1318
+ const Ae = q, ea = N;
1319
1319
  function ta(e, t) {
1320
1320
  const { properties: r, items: s } = e.schema;
1321
1321
  if (t === "object" && r)
1322
- for (const n in r)
1323
- rs(e, n, r[n].default);
1324
- else t === "array" && Array.isArray(s) && s.forEach((n, a) => rs(e, a, n.default));
1322
+ for (const o in r)
1323
+ rs(e, o, r[o].default);
1324
+ else t === "array" && Array.isArray(s) && s.forEach((o, a) => rs(e, a, o.default));
1325
1325
  }
1326
1326
  Rt.assignDefaults = ta;
1327
1327
  function rs(e, t, r) {
1328
- const { gen: s, compositeRule: n, data: a, opts: i } = e;
1328
+ const { gen: s, compositeRule: o, data: a, opts: i } = e;
1329
1329
  if (r === void 0)
1330
1330
  return;
1331
- const d = (0, Ue._)`${a}${(0, Ue.getProperty)(t)}`;
1332
- if (n) {
1331
+ const d = (0, Ae._)`${a}${(0, Ae.getProperty)(t)}`;
1332
+ if (o) {
1333
1333
  (0, ea.checkStrictMode)(e, `default is ignored for: ${d}`);
1334
1334
  return;
1335
1335
  }
1336
- let u = (0, Ue._)`${d} === undefined`;
1337
- i.useDefaults === "empty" && (u = (0, Ue._)`${u} || ${d} === null || ${d} === ""`), s.if(u, (0, Ue._)`${d} = ${(0, Ue.stringify)(r)}`);
1336
+ let u = (0, Ae._)`${d} === undefined`;
1337
+ i.useDefaults === "empty" && (u = (0, Ae._)`${u} || ${d} === null || ${d} === ""`), s.if(u, (0, Ae._)`${d} = ${(0, Ae.stringify)(r)}`);
1338
1338
  }
1339
- var _e = {}, A = {};
1340
- Object.defineProperty(A, "__esModule", { value: !0 });
1341
- A.validateUnion = A.validateArray = A.usePattern = A.callValidateCode = A.schemaProperties = A.allSchemaProperties = A.noPropertyInData = A.propertyInData = A.isOwnProperty = A.hasPropFunc = A.reportMissingProp = A.checkMissingProp = A.checkReportMissingProp = void 0;
1342
- const J = K, mr = N, Se = ve, ra = N;
1339
+ var _e = {}, K = {};
1340
+ Object.defineProperty(K, "__esModule", { value: !0 });
1341
+ K.validateUnion = K.validateArray = K.usePattern = K.callValidateCode = K.schemaProperties = K.allSchemaProperties = K.noPropertyInData = K.propertyInData = K.isOwnProperty = K.hasPropFunc = K.reportMissingProp = K.checkMissingProp = K.checkReportMissingProp = void 0;
1342
+ const J = q, mr = N, Se = ve, ra = N;
1343
1343
  function sa(e, t) {
1344
- const { gen: r, data: s, it: n } = e;
1345
- r.if(pr(r, s, t, n.opts.ownProperties), () => {
1344
+ const { gen: r, data: s, it: o } = e;
1345
+ r.if(pr(r, s, t, o.opts.ownProperties), () => {
1346
1346
  e.setParams({ missingProperty: (0, J._)`${t}` }, !0), e.error();
1347
1347
  });
1348
1348
  }
1349
- A.checkReportMissingProp = sa;
1350
- function na({ gen: e, data: t, it: { opts: r } }, s, n) {
1351
- return (0, J.or)(...s.map((a) => (0, J.and)(pr(e, t, a, r.ownProperties), (0, J._)`${n} = ${a}`)));
1349
+ K.checkReportMissingProp = sa;
1350
+ function oa({ gen: e, data: t, it: { opts: r } }, s, o) {
1351
+ return (0, J.or)(...s.map((a) => (0, J.and)(pr(e, t, a, r.ownProperties), (0, J._)`${o} = ${a}`)));
1352
1352
  }
1353
- A.checkMissingProp = na;
1354
- function oa(e, t) {
1353
+ K.checkMissingProp = oa;
1354
+ function na(e, t) {
1355
1355
  e.setParams({ missingProperty: t }, !0), e.error();
1356
1356
  }
1357
- A.reportMissingProp = oa;
1357
+ K.reportMissingProp = na;
1358
1358
  function Qs(e) {
1359
1359
  return e.scopeValue("func", {
1360
1360
  // eslint-disable-next-line @typescript-eslint/unbound-method
@@ -1362,31 +1362,31 @@ function Qs(e) {
1362
1362
  code: (0, J._)`Object.prototype.hasOwnProperty`
1363
1363
  });
1364
1364
  }
1365
- A.hasPropFunc = Qs;
1365
+ K.hasPropFunc = Qs;
1366
1366
  function hr(e, t, r) {
1367
1367
  return (0, J._)`${Qs(e)}.call(${t}, ${r})`;
1368
1368
  }
1369
- A.isOwnProperty = hr;
1369
+ K.isOwnProperty = hr;
1370
1370
  function aa(e, t, r, s) {
1371
- const n = (0, J._)`${t}${(0, J.getProperty)(r)} !== undefined`;
1372
- return s ? (0, J._)`${n} && ${hr(e, t, r)}` : n;
1371
+ const o = (0, J._)`${t}${(0, J.getProperty)(r)} !== undefined`;
1372
+ return s ? (0, J._)`${o} && ${hr(e, t, r)}` : o;
1373
1373
  }
1374
- A.propertyInData = aa;
1374
+ K.propertyInData = aa;
1375
1375
  function pr(e, t, r, s) {
1376
- const n = (0, J._)`${t}${(0, J.getProperty)(r)} === undefined`;
1377
- return s ? (0, J.or)(n, (0, J.not)(hr(e, t, r))) : n;
1376
+ const o = (0, J._)`${t}${(0, J.getProperty)(r)} === undefined`;
1377
+ return s ? (0, J.or)(o, (0, J.not)(hr(e, t, r))) : o;
1378
1378
  }
1379
- A.noPropertyInData = pr;
1379
+ K.noPropertyInData = pr;
1380
1380
  function Xs(e) {
1381
1381
  return e ? Object.keys(e).filter((t) => t !== "__proto__") : [];
1382
1382
  }
1383
- A.allSchemaProperties = Xs;
1383
+ K.allSchemaProperties = Xs;
1384
1384
  function ia(e, t) {
1385
1385
  return Xs(t).filter((r) => !(0, mr.alwaysValidSchema)(e, t[r]));
1386
1386
  }
1387
- A.schemaProperties = ia;
1388
- function ca({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: s, schemaPath: n, errorPath: a }, it: i }, d, u, l) {
1389
- const m = l ? (0, J._)`${e}, ${t}, ${s}${n}` : t, y = [
1387
+ K.schemaProperties = ia;
1388
+ function ca({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: s, schemaPath: o, errorPath: a }, it: i }, d, u, l) {
1389
+ const m = l ? (0, J._)`${e}, ${t}, ${s}${o}` : t, y = [
1390
1390
  [Se.default.instancePath, (0, J.strConcat)(Se.default.instancePath, a)],
1391
1391
  [Se.default.parentData, i.parentData],
1392
1392
  [Se.default.parentDataProperty, i.parentDataProperty],
@@ -1396,20 +1396,20 @@ function ca({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: s, schemaPath:
1396
1396
  const b = (0, J._)`${m}, ${r.object(...y)}`;
1397
1397
  return u !== J.nil ? (0, J._)`${d}.call(${u}, ${b})` : (0, J._)`${d}(${b})`;
1398
1398
  }
1399
- A.callValidateCode = ca;
1399
+ K.callValidateCode = ca;
1400
1400
  const la = (0, J._)`new RegExp`;
1401
1401
  function da({ gen: e, it: { opts: t } }, r) {
1402
- const s = t.unicodeRegExp ? "u" : "", { regExp: n } = t.code, a = n(r, s);
1402
+ const s = t.unicodeRegExp ? "u" : "", { regExp: o } = t.code, a = o(r, s);
1403
1403
  return e.scopeValue("pattern", {
1404
1404
  key: a.toString(),
1405
1405
  ref: a,
1406
- code: (0, J._)`${n.code === "new RegExp" ? la : (0, ra.useFunc)(e, n)}(${r}, ${s})`
1406
+ code: (0, J._)`${o.code === "new RegExp" ? la : (0, ra.useFunc)(e, o)}(${r}, ${s})`
1407
1407
  });
1408
1408
  }
1409
- A.usePattern = da;
1409
+ K.usePattern = da;
1410
1410
  function ua(e) {
1411
- const { gen: t, data: r, keyword: s, it: n } = e, a = t.name("valid");
1412
- if (n.allErrors) {
1411
+ const { gen: t, data: r, keyword: s, it: o } = e, a = t.name("valid");
1412
+ if (o.allErrors) {
1413
1413
  const d = t.let("valid", !0);
1414
1414
  return i(() => t.assign(d, !1)), d;
1415
1415
  }
@@ -1425,12 +1425,12 @@ function ua(e) {
1425
1425
  });
1426
1426
  }
1427
1427
  }
1428
- A.validateArray = ua;
1428
+ K.validateArray = ua;
1429
1429
  function fa(e) {
1430
- const { gen: t, schema: r, keyword: s, it: n } = e;
1430
+ const { gen: t, schema: r, keyword: s, it: o } = e;
1431
1431
  if (!Array.isArray(r))
1432
1432
  throw new Error("ajv implementation error");
1433
- if (r.some((u) => (0, mr.alwaysValidSchema)(n, u)) && !n.opts.unevaluated)
1433
+ if (r.some((u) => (0, mr.alwaysValidSchema)(o, u)) && !o.opts.unevaluated)
1434
1434
  return;
1435
1435
  const i = t.let("valid", !1), d = t.name("_valid");
1436
1436
  t.block(() => r.forEach((u, l) => {
@@ -1442,12 +1442,12 @@ function fa(e) {
1442
1442
  t.assign(i, (0, J._)`${i} || ${d}`), e.mergeValidEvaluated(m, d) || t.if((0, J.not)(i));
1443
1443
  })), e.result(i, () => e.reset(), () => e.error(!0));
1444
1444
  }
1445
- A.validateUnion = fa;
1445
+ K.validateUnion = fa;
1446
1446
  Object.defineProperty(_e, "__esModule", { value: !0 });
1447
1447
  _e.validateKeywordUsage = _e.validSchemaType = _e.funcKeywordCode = _e.macroKeywordCode = void 0;
1448
- const x = K, Te = ve, ma = A, ha = mt;
1448
+ const x = q, Te = ve, ma = K, ha = mt;
1449
1449
  function pa(e, t) {
1450
- const { gen: r, keyword: s, schema: n, parentSchema: a, it: i } = e, d = t.macro.call(i.self, n, a, i), u = Ys(r, s, d);
1450
+ const { gen: r, keyword: s, schema: o, parentSchema: a, it: i } = e, d = t.macro.call(i.self, o, a, i), u = Ys(r, s, d);
1451
1451
  i.opts.validateSchema !== !1 && i.self.validateSchema(d, !0);
1452
1452
  const l = r.name("valid");
1453
1453
  e.subschema({
@@ -1461,9 +1461,9 @@ function pa(e, t) {
1461
1461
  _e.macroKeywordCode = pa;
1462
1462
  function ya(e, t) {
1463
1463
  var r;
1464
- const { gen: s, keyword: n, schema: a, parentSchema: i, $data: d, it: u } = e;
1464
+ const { gen: s, keyword: o, schema: a, parentSchema: i, $data: d, it: u } = e;
1465
1465
  va(u, t);
1466
- const l = !d && t.compile ? t.compile.call(u.self, a, i, u) : t.validate, m = Ys(s, n, l), y = s.let("valid");
1466
+ const l = !d && t.compile ? t.compile.call(u.self, a, i, u) : t.validate, m = Ys(s, o, l), y = s.let("valid");
1467
1467
  e.block$data(y, b), e.ok((r = t.valid) !== null && r !== void 0 ? r : y);
1468
1468
  function b() {
1469
1469
  if (t.errors === !1)
@@ -1514,14 +1514,14 @@ function $a(e, t, r = !1) {
1514
1514
  return !t.length || t.some((s) => s === "array" ? Array.isArray(e) : s === "object" ? e && typeof e == "object" && !Array.isArray(e) : typeof e == s || r && typeof e > "u");
1515
1515
  }
1516
1516
  _e.validSchemaType = $a;
1517
- function ga({ schema: e, opts: t, self: r, errSchemaPath: s }, n, a) {
1518
- if (Array.isArray(n.keyword) ? !n.keyword.includes(a) : n.keyword !== a)
1517
+ function ga({ schema: e, opts: t, self: r, errSchemaPath: s }, o, a) {
1518
+ if (Array.isArray(o.keyword) ? !o.keyword.includes(a) : o.keyword !== a)
1519
1519
  throw new Error("ajv implementation error");
1520
- const i = n.dependencies;
1520
+ const i = o.dependencies;
1521
1521
  if (i != null && i.some((d) => !Object.prototype.hasOwnProperty.call(e, d)))
1522
1522
  throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);
1523
- if (n.validateSchema && !n.validateSchema(e[a])) {
1524
- const u = `keyword "${a}" value is invalid at path "${s}": ` + r.errorsText(n.validateSchema.errors);
1523
+ if (o.validateSchema && !o.validateSchema(e[a])) {
1524
+ const u = `keyword "${a}" value is invalid at path "${s}": ` + r.errorsText(o.validateSchema.errors);
1525
1525
  if (t.validateSchema === "log")
1526
1526
  r.logger.error(u);
1527
1527
  else
@@ -1532,8 +1532,8 @@ _e.validateKeywordUsage = ga;
1532
1532
  var Ce = {};
1533
1533
  Object.defineProperty(Ce, "__esModule", { value: !0 });
1534
1534
  Ce.extendSubschemaMode = Ce.extendSubschemaData = Ce.getSubschema = void 0;
1535
- const ye = K, Zs = N;
1536
- function wa(e, { keyword: t, schemaProp: r, schema: s, schemaPath: n, errSchemaPath: a, topSchemaRef: i }) {
1535
+ const ye = q, Zs = N;
1536
+ function wa(e, { keyword: t, schemaProp: r, schema: s, schemaPath: o, errSchemaPath: a, topSchemaRef: i }) {
1537
1537
  if (t !== void 0 && s !== void 0)
1538
1538
  throw new Error('both "keyword" and "schema" passed, only one allowed');
1539
1539
  if (t !== void 0) {
@@ -1549,11 +1549,11 @@ function wa(e, { keyword: t, schemaProp: r, schema: s, schemaPath: n, errSchemaP
1549
1549
  };
1550
1550
  }
1551
1551
  if (s !== void 0) {
1552
- if (n === void 0 || a === void 0 || i === void 0)
1552
+ if (o === void 0 || a === void 0 || i === void 0)
1553
1553
  throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');
1554
1554
  return {
1555
1555
  schema: s,
1556
- schemaPath: n,
1556
+ schemaPath: o,
1557
1557
  topSchemaRef: i,
1558
1558
  errSchemaPath: a
1559
1559
  };
@@ -1561,16 +1561,16 @@ function wa(e, { keyword: t, schemaProp: r, schema: s, schemaPath: n, errSchemaP
1561
1561
  throw new Error('either "keyword" or "schema" must be passed');
1562
1562
  }
1563
1563
  Ce.getSubschema = wa;
1564
- function ba(e, t, { dataProp: r, dataPropType: s, data: n, dataTypes: a, propertyName: i }) {
1565
- if (n !== void 0 && r !== void 0)
1564
+ function ba(e, t, { dataProp: r, dataPropType: s, data: o, dataTypes: a, propertyName: i }) {
1565
+ if (o !== void 0 && r !== void 0)
1566
1566
  throw new Error('both "data" and "dataProp" passed, only one allowed');
1567
1567
  const { gen: d } = t;
1568
1568
  if (r !== void 0) {
1569
1569
  const { errorPath: l, dataPathArr: m, opts: y } = t, b = d.let("data", (0, ye._)`${t.data}${(0, ye.getProperty)(r)}`, !0);
1570
1570
  u(b), e.errorPath = (0, ye.str)`${l}${(0, Zs.getErrorPath)(r, s, y.jsPropertySyntax)}`, e.parentDataProperty = (0, ye._)`${r}`, e.dataPathArr = [...m, e.parentDataProperty];
1571
1571
  }
1572
- if (n !== void 0) {
1573
- const l = n instanceof ye.Name ? n : d.let("data", n, !0);
1572
+ if (o !== void 0) {
1573
+ const l = o instanceof ye.Name ? o : d.let("data", o, !0);
1574
1574
  u(l), i !== void 0 && (e.propertyName = i);
1575
1575
  }
1576
1576
  a && (e.dataTypes = a);
@@ -1579,14 +1579,14 @@ function ba(e, t, { dataProp: r, dataPropType: s, data: n, dataTypes: a, propert
1579
1579
  }
1580
1580
  }
1581
1581
  Ce.extendSubschemaData = ba;
1582
- function Ea(e, { jtdDiscriminator: t, jtdMetadata: r, compositeRule: s, createErrors: n, allErrors: a }) {
1583
- s !== void 0 && (e.compositeRule = s), n !== void 0 && (e.createErrors = n), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = r;
1582
+ function Ea(e, { jtdDiscriminator: t, jtdMetadata: r, compositeRule: s, createErrors: o, allErrors: a }) {
1583
+ s !== void 0 && (e.compositeRule = s), o !== void 0 && (e.createErrors = o), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = r;
1584
1584
  }
1585
1585
  Ce.extendSubschemaMode = Ea;
1586
1586
  var Z = {};
1587
1587
  Object.defineProperty(Z, "__esModule", { value: !0 });
1588
1588
  Z.getSchemaRefs = Z.resolveUrl = Z.normalizeId = Z._getFullPath = Z.getFullPath = Z.inlineRef = void 0;
1589
- const Sa = N, Pa = Ps, ka = Tn, Na = /* @__PURE__ */ new Set([
1589
+ const Sa = N, Pa = Ps, ka = To, Na = /* @__PURE__ */ new Set([
1590
1590
  "type",
1591
1591
  "format",
1592
1592
  "pattern",
@@ -1605,7 +1605,7 @@ const Sa = N, Pa = Ps, ka = Tn, Na = /* @__PURE__ */ new Set([
1605
1605
  "const"
1606
1606
  ]);
1607
1607
  function Ca(e, t = !0) {
1608
- return typeof e == "boolean" ? !0 : t === !0 ? !or(e) : t ? Ds(e) <= t : !1;
1608
+ return typeof e == "boolean" ? !0 : t === !0 ? !nr(e) : t ? Ds(e) <= t : !1;
1609
1609
  }
1610
1610
  Z.inlineRef = Ca;
1611
1611
  const ja = /* @__PURE__ */ new Set([
@@ -1615,12 +1615,12 @@ const ja = /* @__PURE__ */ new Set([
1615
1615
  "$dynamicRef",
1616
1616
  "$dynamicAnchor"
1617
1617
  ]);
1618
- function or(e) {
1618
+ function nr(e) {
1619
1619
  for (const t in e) {
1620
1620
  if (ja.has(t))
1621
1621
  return !0;
1622
1622
  const r = e[t];
1623
- if (Array.isArray(r) && r.some(or) || typeof r == "object" && or(r))
1623
+ if (Array.isArray(r) && r.some(nr) || typeof r == "object" && nr(r))
1624
1624
  return !0;
1625
1625
  }
1626
1626
  return !1;
@@ -1658,7 +1658,7 @@ const Ta = /^[a-z_][-a-z0-9._]*$/i;
1658
1658
  function Ia(e, t) {
1659
1659
  if (typeof e == "boolean")
1660
1660
  return {};
1661
- const { schemaId: r, uriResolver: s } = this.opts, n = Be(e[r] || t), a = { "": n }, i = Ws(s, n, !1), d = {}, u = /* @__PURE__ */ new Set();
1661
+ const { schemaId: r, uriResolver: s } = this.opts, o = Be(e[r] || t), a = { "": o }, i = Ws(s, o, !1), d = {}, u = /* @__PURE__ */ new Set();
1662
1662
  return ka(e, { allKeys: !0 }, (y, b, E, g) => {
1663
1663
  if (g === void 0)
1664
1664
  return;
@@ -1692,52 +1692,52 @@ function Ia(e, t) {
1692
1692
  Z.getSchemaRefs = Ia;
1693
1693
  Object.defineProperty(fe, "__esModule", { value: !0 });
1694
1694
  fe.getData = fe.KeywordCxt = fe.validateFunctionCode = void 0;
1695
- const en = Qe, ns = X, yr = we, kt = X, Ma = Rt, ot = _e, Bt = Ce, T = K, I = ve, Va = Z, be = N, tt = mt;
1695
+ const eo = Qe, os = X, yr = we, kt = X, Ma = Rt, nt = _e, Bt = Ce, T = q, I = ve, Va = Z, be = N, tt = mt;
1696
1696
  function Fa(e) {
1697
- if (sn(e) && (nn(e), rn(e))) {
1698
- qa(e);
1697
+ if (so(e) && (oo(e), ro(e))) {
1698
+ Ua(e);
1699
1699
  return;
1700
1700
  }
1701
- tn(e, () => (0, en.topBoolOrEmptySchema)(e));
1701
+ to(e, () => (0, eo.topBoolOrEmptySchema)(e));
1702
1702
  }
1703
1703
  fe.validateFunctionCode = Fa;
1704
- function tn({ gen: e, validateName: t, schema: r, schemaEnv: s, opts: n }, a) {
1705
- n.code.es5 ? e.func(t, (0, T._)`${I.default.data}, ${I.default.valCxt}`, s.$async, () => {
1706
- e.code((0, T._)`"use strict"; ${os(r, n)}`), Ka(e, n), e.code(a);
1707
- }) : e.func(t, (0, T._)`${I.default.data}, ${Aa(n)}`, s.$async, () => e.code(os(r, n)).code(a));
1704
+ function to({ gen: e, validateName: t, schema: r, schemaEnv: s, opts: o }, a) {
1705
+ o.code.es5 ? e.func(t, (0, T._)`${I.default.data}, ${I.default.valCxt}`, s.$async, () => {
1706
+ e.code((0, T._)`"use strict"; ${ns(r, o)}`), qa(e, o), e.code(a);
1707
+ }) : e.func(t, (0, T._)`${I.default.data}, ${Ka(o)}`, s.$async, () => e.code(ns(r, o)).code(a));
1708
1708
  }
1709
- function Aa(e) {
1709
+ function Ka(e) {
1710
1710
  return (0, T._)`{${I.default.instancePath}="", ${I.default.parentData}, ${I.default.parentDataProperty}, ${I.default.rootData}=${I.default.data}${e.dynamicRef ? (0, T._)`, ${I.default.dynamicAnchors}={}` : T.nil}}={}`;
1711
1711
  }
1712
- function Ka(e, t) {
1712
+ function qa(e, t) {
1713
1713
  e.if(I.default.valCxt, () => {
1714
1714
  e.var(I.default.instancePath, (0, T._)`${I.default.valCxt}.${I.default.instancePath}`), e.var(I.default.parentData, (0, T._)`${I.default.valCxt}.${I.default.parentData}`), e.var(I.default.parentDataProperty, (0, T._)`${I.default.valCxt}.${I.default.parentDataProperty}`), e.var(I.default.rootData, (0, T._)`${I.default.valCxt}.${I.default.rootData}`), t.dynamicRef && e.var(I.default.dynamicAnchors, (0, T._)`${I.default.valCxt}.${I.default.dynamicAnchors}`);
1715
1715
  }, () => {
1716
1716
  e.var(I.default.instancePath, (0, T._)`""`), e.var(I.default.parentData, (0, T._)`undefined`), e.var(I.default.parentDataProperty, (0, T._)`undefined`), e.var(I.default.rootData, I.default.data), t.dynamicRef && e.var(I.default.dynamicAnchors, (0, T._)`{}`);
1717
1717
  });
1718
1718
  }
1719
- function qa(e) {
1719
+ function Ua(e) {
1720
1720
  const { schema: t, opts: r, gen: s } = e;
1721
- tn(e, () => {
1722
- r.$comment && t.$comment && an(e), Ja(e), s.let(I.default.vErrors, null), s.let(I.default.errors, 0), r.unevaluated && za(e), on(e), Qa(e);
1721
+ to(e, () => {
1722
+ r.$comment && t.$comment && ao(e), Ja(e), s.let(I.default.vErrors, null), s.let(I.default.errors, 0), r.unevaluated && za(e), no(e), Qa(e);
1723
1723
  });
1724
1724
  }
1725
1725
  function za(e) {
1726
1726
  const { gen: t, validateName: r } = e;
1727
1727
  e.evaluated = t.const("evaluated", (0, T._)`${r}.evaluated`), t.if((0, T._)`${e.evaluated}.dynamicProps`, () => t.assign((0, T._)`${e.evaluated}.props`, (0, T._)`undefined`)), t.if((0, T._)`${e.evaluated}.dynamicItems`, () => t.assign((0, T._)`${e.evaluated}.items`, (0, T._)`undefined`));
1728
1728
  }
1729
- function os(e, t) {
1729
+ function ns(e, t) {
1730
1730
  const r = typeof e == "object" && e[t.schemaId];
1731
1731
  return r && (t.code.source || t.code.process) ? (0, T._)`/*# sourceURL=${r} */` : T.nil;
1732
1732
  }
1733
- function Ua(e, t) {
1734
- if (sn(e) && (nn(e), rn(e))) {
1733
+ function Aa(e, t) {
1734
+ if (so(e) && (oo(e), ro(e))) {
1735
1735
  La(e, t);
1736
1736
  return;
1737
1737
  }
1738
- (0, en.boolOrEmptySchema)(e, t);
1738
+ (0, eo.boolOrEmptySchema)(e, t);
1739
1739
  }
1740
- function rn({ schema: e, self: t }) {
1740
+ function ro({ schema: e, self: t }) {
1741
1741
  if (typeof e == "boolean")
1742
1742
  return !e;
1743
1743
  for (const r in e)
@@ -1745,27 +1745,27 @@ function rn({ schema: e, self: t }) {
1745
1745
  return !0;
1746
1746
  return !1;
1747
1747
  }
1748
- function sn(e) {
1748
+ function so(e) {
1749
1749
  return typeof e.schema != "boolean";
1750
1750
  }
1751
1751
  function La(e, t) {
1752
- const { schema: r, gen: s, opts: n } = e;
1753
- n.$comment && r.$comment && an(e), Ha(e), Ba(e);
1752
+ const { schema: r, gen: s, opts: o } = e;
1753
+ o.$comment && r.$comment && ao(e), Ha(e), Ba(e);
1754
1754
  const a = s.const("_errs", I.default.errors);
1755
- on(e, a), s.var(t, (0, T._)`${a} === ${I.default.errors}`);
1755
+ no(e, a), s.var(t, (0, T._)`${a} === ${I.default.errors}`);
1756
1756
  }
1757
- function nn(e) {
1757
+ function oo(e) {
1758
1758
  (0, be.checkUnknownRules)(e), Ga(e);
1759
1759
  }
1760
- function on(e, t) {
1760
+ function no(e, t) {
1761
1761
  if (e.opts.jtd)
1762
1762
  return as(e, [], !1, t);
1763
- const r = (0, ns.getSchemaTypes)(e.schema), s = (0, ns.coerceAndCheckDataType)(e, r);
1763
+ const r = (0, os.getSchemaTypes)(e.schema), s = (0, os.coerceAndCheckDataType)(e, r);
1764
1764
  as(e, r, !s, t);
1765
1765
  }
1766
1766
  function Ga(e) {
1767
- const { schema: t, errSchemaPath: r, opts: s, self: n } = e;
1768
- t.$ref && s.ignoreKeywordsWithRef && (0, be.schemaHasRulesButRef)(t, n.RULES) && n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`);
1767
+ const { schema: t, errSchemaPath: r, opts: s, self: o } = e;
1768
+ t.$ref && s.ignoreKeywordsWithRef && (0, be.schemaHasRulesButRef)(t, o.RULES) && o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`);
1769
1769
  }
1770
1770
  function Ja(e) {
1771
1771
  const { schema: t, opts: r } = e;
@@ -1779,42 +1779,42 @@ function Ba(e) {
1779
1779
  if (e.schema.$async && !e.schemaEnv.$async)
1780
1780
  throw new Error("async schema in sync schema");
1781
1781
  }
1782
- function an({ gen: e, schemaEnv: t, schema: r, errSchemaPath: s, opts: n }) {
1782
+ function ao({ gen: e, schemaEnv: t, schema: r, errSchemaPath: s, opts: o }) {
1783
1783
  const a = r.$comment;
1784
- if (n.$comment === !0)
1784
+ if (o.$comment === !0)
1785
1785
  e.code((0, T._)`${I.default.self}.logger.log(${a})`);
1786
- else if (typeof n.$comment == "function") {
1786
+ else if (typeof o.$comment == "function") {
1787
1787
  const i = (0, T.str)`${s}/$comment`, d = e.scopeValue("root", { ref: t.root });
1788
1788
  e.code((0, T._)`${I.default.self}.opts.$comment(${a}, ${i}, ${d}.schema)`);
1789
1789
  }
1790
1790
  }
1791
1791
  function Qa(e) {
1792
- const { gen: t, schemaEnv: r, validateName: s, ValidationError: n, opts: a } = e;
1793
- r.$async ? t.if((0, T._)`${I.default.errors} === 0`, () => t.return(I.default.data), () => t.throw((0, T._)`new ${n}(${I.default.vErrors})`)) : (t.assign((0, T._)`${s}.errors`, I.default.vErrors), a.unevaluated && Xa(e), t.return((0, T._)`${I.default.errors} === 0`));
1792
+ const { gen: t, schemaEnv: r, validateName: s, ValidationError: o, opts: a } = e;
1793
+ r.$async ? t.if((0, T._)`${I.default.errors} === 0`, () => t.return(I.default.data), () => t.throw((0, T._)`new ${o}(${I.default.vErrors})`)) : (t.assign((0, T._)`${s}.errors`, I.default.vErrors), a.unevaluated && Xa(e), t.return((0, T._)`${I.default.errors} === 0`));
1794
1794
  }
1795
1795
  function Xa({ gen: e, evaluated: t, props: r, items: s }) {
1796
1796
  r instanceof T.Name && e.assign((0, T._)`${t}.props`, r), s instanceof T.Name && e.assign((0, T._)`${t}.items`, s);
1797
1797
  }
1798
1798
  function as(e, t, r, s) {
1799
- const { gen: n, schema: a, data: i, allErrors: d, opts: u, self: l } = e, { RULES: m } = l;
1799
+ const { gen: o, schema: a, data: i, allErrors: d, opts: u, self: l } = e, { RULES: m } = l;
1800
1800
  if (a.$ref && (u.ignoreKeywordsWithRef || !(0, be.schemaHasRulesButRef)(a, m))) {
1801
- n.block(() => dn(e, "$ref", m.all.$ref.definition));
1801
+ o.block(() => lo(e, "$ref", m.all.$ref.definition));
1802
1802
  return;
1803
1803
  }
1804
- u.jtd || Ya(e, t), n.block(() => {
1804
+ u.jtd || Ya(e, t), o.block(() => {
1805
1805
  for (const b of m.rules)
1806
1806
  y(b);
1807
1807
  y(m.post);
1808
1808
  });
1809
1809
  function y(b) {
1810
- (0, yr.shouldUseGroup)(a, b) && (b.type ? (n.if((0, kt.checkDataType)(b.type, i, u.strictNumbers)), is(e, b), t.length === 1 && t[0] === b.type && r && (n.else(), (0, kt.reportTypeError)(e)), n.endIf()) : is(e, b), d || n.if((0, T._)`${I.default.errors} === ${s || 0}`));
1810
+ (0, yr.shouldUseGroup)(a, b) && (b.type ? (o.if((0, kt.checkDataType)(b.type, i, u.strictNumbers)), is(e, b), t.length === 1 && t[0] === b.type && r && (o.else(), (0, kt.reportTypeError)(e)), o.endIf()) : is(e, b), d || o.if((0, T._)`${I.default.errors} === ${s || 0}`));
1811
1811
  }
1812
1812
  }
1813
1813
  function is(e, t) {
1814
- const { gen: r, schema: s, opts: { useDefaults: n } } = e;
1815
- n && (0, Ma.assignDefaults)(e, t.type), r.block(() => {
1814
+ const { gen: r, schema: s, opts: { useDefaults: o } } = e;
1815
+ o && (0, Ma.assignDefaults)(e, t.type), r.block(() => {
1816
1816
  for (const a of t.rules)
1817
- (0, yr.shouldUseRule)(s, a) && dn(e, a.keyword, a.definition, t.type);
1817
+ (0, yr.shouldUseRule)(s, a) && lo(e, a.keyword, a.definition, t.type);
1818
1818
  });
1819
1819
  }
1820
1820
  function Ya(e, t) {
@@ -1827,7 +1827,7 @@ function Za(e, t) {
1827
1827
  return;
1828
1828
  }
1829
1829
  t.forEach((r) => {
1830
- cn(e.dataTypes, r) || _r(e, `type "${r}" not allowed by context "${e.dataTypes.join(",")}"`);
1830
+ io(e.dataTypes, r) || _r(e, `type "${r}" not allowed by context "${e.dataTypes.join(",")}"`);
1831
1831
  }), ei(e, t);
1832
1832
  }
1833
1833
  }
@@ -1837,9 +1837,9 @@ function Da(e, t) {
1837
1837
  function Wa(e, t) {
1838
1838
  const r = e.self.RULES.all;
1839
1839
  for (const s in r) {
1840
- const n = r[s];
1841
- if (typeof n == "object" && (0, yr.shouldUseRule)(e.schema, n)) {
1842
- const { type: a } = n.definition;
1840
+ const o = r[s];
1841
+ if (typeof o == "object" && (0, yr.shouldUseRule)(e.schema, o)) {
1842
+ const { type: a } = o.definition;
1843
1843
  a.length && !a.some((i) => xa(t, i)) && _r(e, `missing type "${a.join(",")}" for keyword "${s}"`);
1844
1844
  }
1845
1845
  }
@@ -1847,24 +1847,24 @@ function Wa(e, t) {
1847
1847
  function xa(e, t) {
1848
1848
  return e.includes(t) || t === "number" && e.includes("integer");
1849
1849
  }
1850
- function cn(e, t) {
1850
+ function io(e, t) {
1851
1851
  return e.includes(t) || t === "integer" && e.includes("number");
1852
1852
  }
1853
1853
  function ei(e, t) {
1854
1854
  const r = [];
1855
1855
  for (const s of e.dataTypes)
1856
- cn(t, s) ? r.push(s) : t.includes("integer") && s === "number" && r.push("integer");
1856
+ io(t, s) ? r.push(s) : t.includes("integer") && s === "number" && r.push("integer");
1857
1857
  e.dataTypes = r;
1858
1858
  }
1859
1859
  function _r(e, t) {
1860
1860
  const r = e.schemaEnv.baseId + e.errSchemaPath;
1861
1861
  t += ` at "${r}" (strictTypes)`, (0, be.checkStrictMode)(e, t, e.opts.strictTypes);
1862
1862
  }
1863
- class ln {
1863
+ class co {
1864
1864
  constructor(t, r, s) {
1865
- if ((0, ot.validateKeywordUsage)(t, r, s), this.gen = t.gen, this.allErrors = t.allErrors, this.keyword = s, this.data = t.data, this.schema = t.schema[s], this.$data = r.$data && t.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, be.schemaRefOrVal)(t, this.schema, s, this.$data), this.schemaType = r.schemaType, this.parentSchema = t.schema, this.params = {}, this.it = t, this.def = r, this.$data)
1866
- this.schemaCode = t.gen.const("vSchema", un(this.$data, t));
1867
- else if (this.schemaCode = this.schemaValue, !(0, ot.validSchemaType)(this.schema, r.schemaType, r.allowUndefined))
1865
+ if ((0, nt.validateKeywordUsage)(t, r, s), this.gen = t.gen, this.allErrors = t.allErrors, this.keyword = s, this.data = t.data, this.schema = t.schema[s], this.$data = r.$data && t.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, be.schemaRefOrVal)(t, this.schema, s, this.$data), this.schemaType = r.schemaType, this.parentSchema = t.schema, this.params = {}, this.it = t, this.def = r, this.$data)
1866
+ this.schemaCode = t.gen.const("vSchema", uo(this.$data, t));
1867
+ else if (this.schemaCode = this.schemaValue, !(0, nt.validSchemaType)(this.schema, r.schemaType, r.allowUndefined))
1868
1868
  throw new Error(`${s} value must be ${JSON.stringify(r.schemaType)}`);
1869
1869
  ("code" in r ? r.trackErrors : r.errors !== !1) && (this.errsCount = t.gen.const("_errs", I.default.errors));
1870
1870
  }
@@ -1922,11 +1922,11 @@ class ln {
1922
1922
  check$data(t = T.nil, r = T.nil) {
1923
1923
  if (!this.$data)
1924
1924
  return;
1925
- const { gen: s, schemaCode: n, schemaType: a, def: i } = this;
1926
- s.if((0, T.or)((0, T._)`${n} === undefined`, r)), t !== T.nil && s.assign(t, !0), (a.length || i.validateSchema) && (s.elseIf(this.invalid$data()), this.$dataError(), t !== T.nil && s.assign(t, !1)), s.else();
1925
+ const { gen: s, schemaCode: o, schemaType: a, def: i } = this;
1926
+ s.if((0, T.or)((0, T._)`${o} === undefined`, r)), t !== T.nil && s.assign(t, !0), (a.length || i.validateSchema) && (s.elseIf(this.invalid$data()), this.$dataError(), t !== T.nil && s.assign(t, !1)), s.else();
1927
1927
  }
1928
1928
  invalid$data() {
1929
- const { gen: t, schemaCode: r, schemaType: s, def: n, it: a } = this;
1929
+ const { gen: t, schemaCode: r, schemaType: s, def: o, it: a } = this;
1930
1930
  return (0, T.or)(i(), d());
1931
1931
  function i() {
1932
1932
  if (s.length) {
@@ -1938,8 +1938,8 @@ class ln {
1938
1938
  return T.nil;
1939
1939
  }
1940
1940
  function d() {
1941
- if (n.validateSchema) {
1942
- const u = t.scopeValue("validate$data", { ref: n.validateSchema });
1941
+ if (o.validateSchema) {
1942
+ const u = t.scopeValue("validate$data", { ref: o.validateSchema });
1943
1943
  return (0, T._)`!${u}(${r})`;
1944
1944
  }
1945
1945
  return T.nil;
@@ -1948,50 +1948,50 @@ class ln {
1948
1948
  subschema(t, r) {
1949
1949
  const s = (0, Bt.getSubschema)(this.it, t);
1950
1950
  (0, Bt.extendSubschemaData)(s, this.it, t), (0, Bt.extendSubschemaMode)(s, t);
1951
- const n = { ...this.it, ...s, items: void 0, props: void 0 };
1952
- return Ua(n, r), n;
1951
+ const o = { ...this.it, ...s, items: void 0, props: void 0 };
1952
+ return Aa(o, r), o;
1953
1953
  }
1954
1954
  mergeEvaluated(t, r) {
1955
- const { it: s, gen: n } = this;
1956
- s.opts.unevaluated && (s.props !== !0 && t.props !== void 0 && (s.props = be.mergeEvaluated.props(n, t.props, s.props, r)), s.items !== !0 && t.items !== void 0 && (s.items = be.mergeEvaluated.items(n, t.items, s.items, r)));
1955
+ const { it: s, gen: o } = this;
1956
+ s.opts.unevaluated && (s.props !== !0 && t.props !== void 0 && (s.props = be.mergeEvaluated.props(o, t.props, s.props, r)), s.items !== !0 && t.items !== void 0 && (s.items = be.mergeEvaluated.items(o, t.items, s.items, r)));
1957
1957
  }
1958
1958
  mergeValidEvaluated(t, r) {
1959
- const { it: s, gen: n } = this;
1959
+ const { it: s, gen: o } = this;
1960
1960
  if (s.opts.unevaluated && (s.props !== !0 || s.items !== !0))
1961
- return n.if(r, () => this.mergeEvaluated(t, T.Name)), !0;
1961
+ return o.if(r, () => this.mergeEvaluated(t, T.Name)), !0;
1962
1962
  }
1963
1963
  }
1964
- fe.KeywordCxt = ln;
1965
- function dn(e, t, r, s) {
1966
- const n = new ln(e, r, t);
1967
- "code" in r ? r.code(n, s) : n.$data && r.validate ? (0, ot.funcKeywordCode)(n, r) : "macro" in r ? (0, ot.macroKeywordCode)(n, r) : (r.compile || r.validate) && (0, ot.funcKeywordCode)(n, r);
1964
+ fe.KeywordCxt = co;
1965
+ function lo(e, t, r, s) {
1966
+ const o = new co(e, r, t);
1967
+ "code" in r ? r.code(o, s) : o.$data && r.validate ? (0, nt.funcKeywordCode)(o, r) : "macro" in r ? (0, nt.macroKeywordCode)(o, r) : (r.compile || r.validate) && (0, nt.funcKeywordCode)(o, r);
1968
1968
  }
1969
1969
  const ti = /^\/(?:[^~]|~0|~1)*$/, ri = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
1970
- function un(e, { dataLevel: t, dataNames: r, dataPathArr: s }) {
1971
- let n, a;
1970
+ function uo(e, { dataLevel: t, dataNames: r, dataPathArr: s }) {
1971
+ let o, a;
1972
1972
  if (e === "")
1973
1973
  return I.default.rootData;
1974
1974
  if (e[0] === "/") {
1975
1975
  if (!ti.test(e))
1976
1976
  throw new Error(`Invalid JSON-pointer: ${e}`);
1977
- n = e, a = I.default.rootData;
1977
+ o = e, a = I.default.rootData;
1978
1978
  } else {
1979
1979
  const l = ri.exec(e);
1980
1980
  if (!l)
1981
1981
  throw new Error(`Invalid JSON-pointer: ${e}`);
1982
1982
  const m = +l[1];
1983
- if (n = l[2], n === "#") {
1983
+ if (o = l[2], o === "#") {
1984
1984
  if (m >= t)
1985
1985
  throw new Error(u("property/index", m));
1986
1986
  return s[t - m];
1987
1987
  }
1988
1988
  if (m > t)
1989
1989
  throw new Error(u("data", m));
1990
- if (a = r[t - m], !n)
1990
+ if (a = r[t - m], !o)
1991
1991
  return a;
1992
1992
  }
1993
1993
  let i = a;
1994
- const d = n.split("/");
1994
+ const d = o.split("/");
1995
1995
  for (const l of d)
1996
1996
  l && (a = (0, T._)`${a}${(0, T.getProperty)((0, be.unescapeJsonPointer)(l))}`, i = (0, T._)`${i} && ${a}`);
1997
1997
  return i;
@@ -1999,7 +1999,7 @@ function un(e, { dataLevel: t, dataNames: r, dataPathArr: s }) {
1999
1999
  return `Cannot access ${l} ${m} levels up, current level is ${t}`;
2000
2000
  }
2001
2001
  }
2002
- fe.getData = un;
2002
+ fe.getData = uo;
2003
2003
  var ht = {};
2004
2004
  Object.defineProperty(ht, "__esModule", { value: !0 });
2005
2005
  class si extends Error {
@@ -2011,16 +2011,16 @@ ht.default = si;
2011
2011
  var Ye = {};
2012
2012
  Object.defineProperty(Ye, "__esModule", { value: !0 });
2013
2013
  const Qt = Z;
2014
- class ni extends Error {
2015
- constructor(t, r, s, n) {
2016
- super(n || `can't resolve reference ${s} from id ${r}`), this.missingRef = (0, Qt.resolveUrl)(t, r, s), this.missingSchema = (0, Qt.normalizeId)((0, Qt.getFullPath)(t, this.missingRef));
2014
+ class oi extends Error {
2015
+ constructor(t, r, s, o) {
2016
+ super(o || `can't resolve reference ${s} from id ${r}`), this.missingRef = (0, Qt.resolveUrl)(t, r, s), this.missingSchema = (0, Qt.normalizeId)((0, Qt.getFullPath)(t, this.missingRef));
2017
2017
  }
2018
2018
  }
2019
- Ye.default = ni;
2019
+ Ye.default = oi;
2020
2020
  var re = {};
2021
2021
  Object.defineProperty(re, "__esModule", { value: !0 });
2022
2022
  re.resolveSchema = re.getCompilingSchema = re.resolveRef = re.compileSchema = re.SchemaEnv = void 0;
2023
- const ce = K, oi = ht, Re = ve, ue = Z, cs = N, ai = fe;
2023
+ const ce = q, ni = ht, Re = ve, ue = Z, cs = N, ai = fe;
2024
2024
  class Ot {
2025
2025
  constructor(t) {
2026
2026
  var r;
@@ -2031,13 +2031,13 @@ class Ot {
2031
2031
  }
2032
2032
  re.SchemaEnv = Ot;
2033
2033
  function vr(e) {
2034
- const t = fn.call(this, e);
2034
+ const t = fo.call(this, e);
2035
2035
  if (t)
2036
2036
  return t;
2037
- const r = (0, ue.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: s, lines: n } = this.opts.code, { ownProperties: a } = this.opts, i = new ce.CodeGen(this.scope, { es5: s, lines: n, ownProperties: a });
2037
+ const r = (0, ue.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: s, lines: o } = this.opts.code, { ownProperties: a } = this.opts, i = new ce.CodeGen(this.scope, { es5: s, lines: o, ownProperties: a });
2038
2038
  let d;
2039
2039
  e.$async && (d = i.scopeValue("Error", {
2040
- ref: oi.default,
2040
+ ref: ni.default,
2041
2041
  code: (0, ce._)`require("ajv/dist/runtime/validation_error").default`
2042
2042
  }));
2043
2043
  const u = i.scopeName("validate");
@@ -2093,9 +2093,9 @@ re.compileSchema = vr;
2093
2093
  function ii(e, t, r) {
2094
2094
  var s;
2095
2095
  r = (0, ue.resolveUrl)(this.opts.uriResolver, t, r);
2096
- const n = e.refs[r];
2097
- if (n)
2098
- return n;
2096
+ const o = e.refs[r];
2097
+ if (o)
2098
+ return o;
2099
2099
  let a = di.call(this, e, r);
2100
2100
  if (a === void 0) {
2101
2101
  const i = (s = e.localRefs) === null || s === void 0 ? void 0 : s[r], { schemaId: d } = this.opts;
@@ -2108,12 +2108,12 @@ re.resolveRef = ii;
2108
2108
  function ci(e) {
2109
2109
  return (0, ue.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : vr.call(this, e);
2110
2110
  }
2111
- function fn(e) {
2111
+ function fo(e) {
2112
2112
  for (const t of this._compilations)
2113
2113
  if (li(t, e))
2114
2114
  return t;
2115
2115
  }
2116
- re.getCompilingSchema = fn;
2116
+ re.getCompilingSchema = fo;
2117
2117
  function li(e, t) {
2118
2118
  return e.schema === t.schema && e.root === t.root && e.baseId === t.baseId;
2119
2119
  }
@@ -2125,8 +2125,8 @@ function di(e, t) {
2125
2125
  }
2126
2126
  function Tt(e, t) {
2127
2127
  const r = this.opts.uriResolver.parse(t), s = (0, ue._getFullPath)(this.opts.uriResolver, r);
2128
- let n = (0, ue.getFullPath)(this.opts.uriResolver, e.baseId, void 0);
2129
- if (Object.keys(e.schema).length > 0 && s === n)
2128
+ let o = (0, ue.getFullPath)(this.opts.uriResolver, e.baseId, void 0);
2129
+ if (Object.keys(e.schema).length > 0 && s === o)
2130
2130
  return Xt.call(this, r, e);
2131
2131
  const a = (0, ue.normalizeId)(s), i = this.refs[a] || this.schemas[a];
2132
2132
  if (typeof i == "string") {
@@ -2136,7 +2136,7 @@ function Tt(e, t) {
2136
2136
  if (typeof (i == null ? void 0 : i.schema) == "object") {
2137
2137
  if (i.validate || vr.call(this, i), a === (0, ue.normalizeId)(t)) {
2138
2138
  const { schema: d } = i, { schemaId: u } = this.opts, l = d[u];
2139
- return l && (n = (0, ue.resolveUrl)(this.opts.uriResolver, n, l)), new Ot({ schema: d, schemaId: u, root: e, baseId: n });
2139
+ return l && (o = (0, ue.resolveUrl)(this.opts.uriResolver, o, l)), new Ot({ schema: d, schemaId: u, root: e, baseId: o });
2140
2140
  }
2141
2141
  return Xt.call(this, r, i);
2142
2142
  }
@@ -2150,8 +2150,8 @@ const ui = /* @__PURE__ */ new Set([
2150
2150
  "definitions"
2151
2151
  ]);
2152
2152
  function Xt(e, { baseId: t, schema: r, root: s }) {
2153
- var n;
2154
- if (((n = e.fragment) === null || n === void 0 ? void 0 : n[0]) !== "/")
2153
+ var o;
2154
+ if (((o = e.fragment) === null || o === void 0 ? void 0 : o[0]) !== "/")
2155
2155
  return;
2156
2156
  for (const d of e.fragment.slice(1).split("/")) {
2157
2157
  if (typeof r == "boolean")
@@ -2196,16 +2196,16 @@ const fi = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/
2196
2196
  };
2197
2197
  var $r = {};
2198
2198
  Object.defineProperty($r, "__esModule", { value: !0 });
2199
- const mn = In;
2200
- mn.code = 'require("ajv/dist/runtime/uri").default';
2201
- $r.default = mn;
2199
+ const mo = Io;
2200
+ mo.code = 'require("ajv/dist/runtime/uri").default';
2201
+ $r.default = mo;
2202
2202
  (function(e) {
2203
2203
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
2204
2204
  var t = fe;
2205
2205
  Object.defineProperty(e, "KeywordCxt", { enumerable: !0, get: function() {
2206
2206
  return t.KeywordCxt;
2207
2207
  } });
2208
- var r = K;
2208
+ var r = q;
2209
2209
  Object.defineProperty(e, "_", { enumerable: !0, get: function() {
2210
2210
  return r._;
2211
2211
  } }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
@@ -2219,7 +2219,7 @@ $r.default = mn;
2219
2219
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
2220
2220
  return r.CodeGen;
2221
2221
  } });
2222
- const s = ht, n = Ye, a = Ve, i = re, d = K, u = Z, l = X, m = N, y = vi, b = $r, E = (k, p) => new RegExp(k, p);
2222
+ const s = ht, o = Ye, a = Ve, i = re, d = q, u = Z, l = X, m = N, y = vi, b = $r, E = (k, p) => new RegExp(k, p);
2223
2223
  E.code = "new RegExp";
2224
2224
  const g = ["removeAdditional", "useDefaults", "coerceTypes"], v = /* @__PURE__ */ new Set([
2225
2225
  "validate",
@@ -2257,27 +2257,27 @@ $r.default = mn;
2257
2257
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
2258
2258
  }, $ = 200;
2259
2259
  function P(k) {
2260
- var p, S, _, o, c, w, j, O, U, q, V, pe, qe, We, ge, ze, Vt, Ft, At, Kt, qt, zt, Ut, Lt, Gt;
2261
- const xe = k.strict, Jt = (p = k.code) === null || p === void 0 ? void 0 : p.optimize, Wr = Jt === !0 || Jt === void 0 ? 1 : Jt || 0, xr = (_ = (S = k.code) === null || S === void 0 ? void 0 : S.regExp) !== null && _ !== void 0 ? _ : E, bn = (o = k.uriResolver) !== null && o !== void 0 ? o : b.default;
2260
+ var p, S, _, n, c, w, j, O, A, U, V, pe, Ue, We, ge, ze, Vt, Ft, Kt, qt, Ut, zt, At, Lt, Gt;
2261
+ const xe = k.strict, Jt = (p = k.code) === null || p === void 0 ? void 0 : p.optimize, Wr = Jt === !0 || Jt === void 0 ? 1 : Jt || 0, xr = (_ = (S = k.code) === null || S === void 0 ? void 0 : S.regExp) !== null && _ !== void 0 ? _ : E, bo = (n = k.uriResolver) !== null && n !== void 0 ? n : b.default;
2262
2262
  return {
2263
2263
  strictSchema: (w = (c = k.strictSchema) !== null && c !== void 0 ? c : xe) !== null && w !== void 0 ? w : !0,
2264
2264
  strictNumbers: (O = (j = k.strictNumbers) !== null && j !== void 0 ? j : xe) !== null && O !== void 0 ? O : !0,
2265
- strictTypes: (q = (U = k.strictTypes) !== null && U !== void 0 ? U : xe) !== null && q !== void 0 ? q : "log",
2265
+ strictTypes: (U = (A = k.strictTypes) !== null && A !== void 0 ? A : xe) !== null && U !== void 0 ? U : "log",
2266
2266
  strictTuples: (pe = (V = k.strictTuples) !== null && V !== void 0 ? V : xe) !== null && pe !== void 0 ? pe : "log",
2267
- strictRequired: (We = (qe = k.strictRequired) !== null && qe !== void 0 ? qe : xe) !== null && We !== void 0 ? We : !1,
2267
+ strictRequired: (We = (Ue = k.strictRequired) !== null && Ue !== void 0 ? Ue : xe) !== null && We !== void 0 ? We : !1,
2268
2268
  code: k.code ? { ...k.code, optimize: Wr, regExp: xr } : { optimize: Wr, regExp: xr },
2269
2269
  loopRequired: (ge = k.loopRequired) !== null && ge !== void 0 ? ge : $,
2270
2270
  loopEnum: (ze = k.loopEnum) !== null && ze !== void 0 ? ze : $,
2271
2271
  meta: (Vt = k.meta) !== null && Vt !== void 0 ? Vt : !0,
2272
2272
  messages: (Ft = k.messages) !== null && Ft !== void 0 ? Ft : !0,
2273
- inlineRefs: (At = k.inlineRefs) !== null && At !== void 0 ? At : !0,
2274
- schemaId: (Kt = k.schemaId) !== null && Kt !== void 0 ? Kt : "$id",
2275
- addUsedSchema: (qt = k.addUsedSchema) !== null && qt !== void 0 ? qt : !0,
2273
+ inlineRefs: (Kt = k.inlineRefs) !== null && Kt !== void 0 ? Kt : !0,
2274
+ schemaId: (qt = k.schemaId) !== null && qt !== void 0 ? qt : "$id",
2275
+ addUsedSchema: (Ut = k.addUsedSchema) !== null && Ut !== void 0 ? Ut : !0,
2276
2276
  validateSchema: (zt = k.validateSchema) !== null && zt !== void 0 ? zt : !0,
2277
- validateFormats: (Ut = k.validateFormats) !== null && Ut !== void 0 ? Ut : !0,
2277
+ validateFormats: (At = k.validateFormats) !== null && At !== void 0 ? At : !0,
2278
2278
  unicodeRegExp: (Lt = k.unicodeRegExp) !== null && Lt !== void 0 ? Lt : !0,
2279
2279
  int32range: (Gt = k.int32range) !== null && Gt !== void 0 ? Gt : !0,
2280
- uriResolver: bn
2280
+ uriResolver: bo
2281
2281
  };
2282
2282
  }
2283
2283
  class R {
@@ -2285,16 +2285,16 @@ $r.default = mn;
2285
2285
  this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), p = this.opts = { ...p, ...P(p) };
2286
2286
  const { es5: S, lines: _ } = this.opts.code;
2287
2287
  this.scope = new d.ValueScope({ scope: {}, prefixes: v, es5: S, lines: _ }), this.logger = ie(p.logger);
2288
- const o = p.validateFormats;
2289
- p.validateFormats = !1, this.RULES = (0, a.getRules)(), C.call(this, h, p, "NOT SUPPORTED"), C.call(this, f, p, "DEPRECATED", "warn"), this._metaOpts = me.call(this), p.formats && ne.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), p.keywords && ae.call(this, p.keywords), typeof p.meta == "object" && this.addMetaSchema(p.meta), H.call(this), p.validateFormats = o;
2288
+ const n = p.validateFormats;
2289
+ p.validateFormats = !1, this.RULES = (0, a.getRules)(), C.call(this, h, p, "NOT SUPPORTED"), C.call(this, f, p, "DEPRECATED", "warn"), this._metaOpts = me.call(this), p.formats && oe.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), p.keywords && ae.call(this, p.keywords), typeof p.meta == "object" && this.addMetaSchema(p.meta), H.call(this), p.validateFormats = n;
2290
2290
  }
2291
2291
  _addVocabularies() {
2292
2292
  this.addKeyword("$async");
2293
2293
  }
2294
2294
  _addDefaultMetaSchema() {
2295
2295
  const { $data: p, meta: S, schemaId: _ } = this.opts;
2296
- let o = y;
2297
- _ === "id" && (o = { ...y }, o.id = o.$id, delete o.$id), S && p && this.addMetaSchema(o, o[_], !1);
2296
+ let n = y;
2297
+ _ === "id" && (n = { ...y }, n.id = n.$id, delete n.$id), S && p && this.addMetaSchema(n, n[_], !1);
2298
2298
  }
2299
2299
  defaultMeta() {
2300
2300
  const { meta: p, schemaId: S } = this.opts;
@@ -2307,8 +2307,8 @@ $r.default = mn;
2307
2307
  throw new Error(`no schema with key or ref "${p}"`);
2308
2308
  } else
2309
2309
  _ = this.compile(p);
2310
- const o = _(S);
2311
- return "$async" in _ || (this.errors = _.errors), o;
2310
+ const n = _(S);
2311
+ return "$async" in _ || (this.errors = _.errors), n;
2312
2312
  }
2313
2313
  compile(p, S) {
2314
2314
  const _ = this._addSchema(p, S);
@@ -2318,48 +2318,48 @@ $r.default = mn;
2318
2318
  if (typeof this.opts.loadSchema != "function")
2319
2319
  throw new Error("options.loadSchema should be a function");
2320
2320
  const { loadSchema: _ } = this.opts;
2321
- return o.call(this, p, S);
2322
- async function o(q, V) {
2323
- await c.call(this, q.$schema);
2324
- const pe = this._addSchema(q, V);
2321
+ return n.call(this, p, S);
2322
+ async function n(U, V) {
2323
+ await c.call(this, U.$schema);
2324
+ const pe = this._addSchema(U, V);
2325
2325
  return pe.validate || w.call(this, pe);
2326
2326
  }
2327
- async function c(q) {
2328
- q && !this.getSchema(q) && await o.call(this, { $ref: q }, !0);
2327
+ async function c(U) {
2328
+ U && !this.getSchema(U) && await n.call(this, { $ref: U }, !0);
2329
2329
  }
2330
- async function w(q) {
2330
+ async function w(U) {
2331
2331
  try {
2332
- return this._compileSchemaEnv(q);
2332
+ return this._compileSchemaEnv(U);
2333
2333
  } catch (V) {
2334
- if (!(V instanceof n.default))
2334
+ if (!(V instanceof o.default))
2335
2335
  throw V;
2336
- return j.call(this, V), await O.call(this, V.missingSchema), w.call(this, q);
2336
+ return j.call(this, V), await O.call(this, V.missingSchema), w.call(this, U);
2337
2337
  }
2338
2338
  }
2339
- function j({ missingSchema: q, missingRef: V }) {
2340
- if (this.refs[q])
2341
- throw new Error(`AnySchema ${q} is loaded but ${V} cannot be resolved`);
2339
+ function j({ missingSchema: U, missingRef: V }) {
2340
+ if (this.refs[U])
2341
+ throw new Error(`AnySchema ${U} is loaded but ${V} cannot be resolved`);
2342
2342
  }
2343
- async function O(q) {
2344
- const V = await U.call(this, q);
2345
- this.refs[q] || await c.call(this, V.$schema), this.refs[q] || this.addSchema(V, q, S);
2343
+ async function O(U) {
2344
+ const V = await A.call(this, U);
2345
+ this.refs[U] || await c.call(this, V.$schema), this.refs[U] || this.addSchema(V, U, S);
2346
2346
  }
2347
- async function U(q) {
2348
- const V = this._loading[q];
2347
+ async function A(U) {
2348
+ const V = this._loading[U];
2349
2349
  if (V)
2350
2350
  return V;
2351
2351
  try {
2352
- return await (this._loading[q] = _(q));
2352
+ return await (this._loading[U] = _(U));
2353
2353
  } finally {
2354
- delete this._loading[q];
2354
+ delete this._loading[U];
2355
2355
  }
2356
2356
  }
2357
2357
  }
2358
2358
  // Adds schema to the instance
2359
- addSchema(p, S, _, o = this.opts.validateSchema) {
2359
+ addSchema(p, S, _, n = this.opts.validateSchema) {
2360
2360
  if (Array.isArray(p)) {
2361
2361
  for (const w of p)
2362
- this.addSchema(w, void 0, _, o);
2362
+ this.addSchema(w, void 0, _, n);
2363
2363
  return this;
2364
2364
  }
2365
2365
  let c;
@@ -2368,7 +2368,7 @@ $r.default = mn;
2368
2368
  if (c = p[w], c !== void 0 && typeof c != "string")
2369
2369
  throw new Error(`schema ${w} must be string`);
2370
2370
  }
2371
- return S = (0, u.normalizeId)(S || c), this._checkUnique(S), this.schemas[S] = this._addSchema(p, _, S, o, !0), this;
2371
+ return S = (0, u.normalizeId)(S || c), this._checkUnique(S), this.schemas[S] = this._addSchema(p, _, S, n, !0), this;
2372
2372
  }
2373
2373
  // Add schema that will be used to validate other schemas
2374
2374
  // options in META_IGNORE_OPTIONS are alway set to false
@@ -2384,15 +2384,15 @@ $r.default = mn;
2384
2384
  throw new Error("$schema must be a string");
2385
2385
  if (_ = _ || this.opts.defaultMeta || this.defaultMeta(), !_)
2386
2386
  return this.logger.warn("meta-schema not available"), this.errors = null, !0;
2387
- const o = this.validate(_, p);
2388
- if (!o && S) {
2387
+ const n = this.validate(_, p);
2388
+ if (!n && S) {
2389
2389
  const c = "schema is invalid: " + this.errorsText();
2390
2390
  if (this.opts.validateSchema === "log")
2391
2391
  this.logger.error(c);
2392
2392
  else
2393
2393
  throw new Error(c);
2394
2394
  }
2395
- return o;
2395
+ return n;
2396
2396
  }
2397
2397
  // Get compiled schema by `key` or `ref`.
2398
2398
  // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)
@@ -2401,8 +2401,8 @@ $r.default = mn;
2401
2401
  for (; typeof (S = L.call(this, p)) == "string"; )
2402
2402
  p = S;
2403
2403
  if (S === void 0) {
2404
- const { schemaId: _ } = this.opts, o = new i.SchemaEnv({ schema: {}, schemaId: _ });
2405
- if (S = i.resolveSchema.call(this, o, p), !S)
2404
+ const { schemaId: _ } = this.opts, n = new i.SchemaEnv({ schema: {}, schemaId: _ });
2405
+ if (S = i.resolveSchema.call(this, n, p), !S)
2406
2406
  return;
2407
2407
  this.refs[p] = S;
2408
2408
  }
@@ -2449,13 +2449,13 @@ $r.default = mn;
2449
2449
  throw new Error("invalid addKeywords parameters");
2450
2450
  if (B.call(this, _, S), !S)
2451
2451
  return (0, m.eachItem)(_, (c) => ee.call(this, c)), this;
2452
- Ke.call(this, S);
2453
- const o = {
2452
+ qe.call(this, S);
2453
+ const n = {
2454
2454
  ...S,
2455
2455
  type: (0, l.getJSONTypes)(S.type),
2456
2456
  schemaType: (0, l.getJSONTypes)(S.schemaType)
2457
2457
  };
2458
- return (0, m.eachItem)(_, o.type.length === 0 ? (c) => ee.call(this, c, o) : (c) => o.type.forEach((w) => ee.call(this, c, o, w))), this;
2458
+ return (0, m.eachItem)(_, n.type.length === 0 ? (c) => ee.call(this, c, n) : (c) => n.type.forEach((w) => ee.call(this, c, n, w))), this;
2459
2459
  }
2460
2460
  getKeyword(p) {
2461
2461
  const S = this.RULES.all[p];
@@ -2466,8 +2466,8 @@ $r.default = mn;
2466
2466
  const { RULES: S } = this;
2467
2467
  delete S.keywords[p], delete S.all[p];
2468
2468
  for (const _ of S.rules) {
2469
- const o = _.rules.findIndex((c) => c.keyword === p);
2470
- o >= 0 && _.rules.splice(o, 1);
2469
+ const n = _.rules.findIndex((c) => c.keyword === p);
2470
+ n >= 0 && _.rules.splice(n, 1);
2471
2471
  }
2472
2472
  return this;
2473
2473
  }
@@ -2476,13 +2476,13 @@ $r.default = mn;
2476
2476
  return typeof S == "string" && (S = new RegExp(S)), this.formats[p] = S, this;
2477
2477
  }
2478
2478
  errorsText(p = this.errors, { separator: S = ", ", dataVar: _ = "data" } = {}) {
2479
- return !p || p.length === 0 ? "No errors" : p.map((o) => `${_}${o.instancePath} ${o.message}`).reduce((o, c) => o + S + c);
2479
+ return !p || p.length === 0 ? "No errors" : p.map((n) => `${_}${n.instancePath} ${n.message}`).reduce((n, c) => n + S + c);
2480
2480
  }
2481
2481
  $dataMetaSchema(p, S) {
2482
2482
  const _ = this.RULES.all;
2483
2483
  p = JSON.parse(JSON.stringify(p));
2484
- for (const o of S) {
2485
- const c = o.split("/").slice(1);
2484
+ for (const n of S) {
2485
+ const c = n.split("/").slice(1);
2486
2486
  let w = p;
2487
2487
  for (const j of c)
2488
2488
  w = w[j];
@@ -2490,19 +2490,19 @@ $r.default = mn;
2490
2490
  const O = _[j];
2491
2491
  if (typeof O != "object")
2492
2492
  continue;
2493
- const { $data: U } = O.definition, q = w[j];
2494
- U && q && (w[j] = he(q));
2493
+ const { $data: A } = O.definition, U = w[j];
2494
+ A && U && (w[j] = he(U));
2495
2495
  }
2496
2496
  }
2497
2497
  return p;
2498
2498
  }
2499
2499
  _removeAllSchemas(p, S) {
2500
2500
  for (const _ in p) {
2501
- const o = p[_];
2502
- (!S || S.test(_)) && (typeof o == "string" ? delete p[_] : o && !o.meta && (this._cache.delete(o.schema), delete p[_]));
2501
+ const n = p[_];
2502
+ (!S || S.test(_)) && (typeof n == "string" ? delete p[_] : n && !n.meta && (this._cache.delete(n.schema), delete p[_]));
2503
2503
  }
2504
2504
  }
2505
- _addSchema(p, S, _, o = this.opts.validateSchema, c = this.opts.addUsedSchema) {
2505
+ _addSchema(p, S, _, n = this.opts.validateSchema, c = this.opts.addUsedSchema) {
2506
2506
  let w;
2507
2507
  const { schemaId: j } = this.opts;
2508
2508
  if (typeof p == "object")
@@ -2517,8 +2517,8 @@ $r.default = mn;
2517
2517
  if (O !== void 0)
2518
2518
  return O;
2519
2519
  _ = (0, u.normalizeId)(w || _);
2520
- const U = u.getSchemaRefs.call(this, p, _);
2521
- return O = new i.SchemaEnv({ schema: p, schemaId: j, meta: S, baseId: _, localRefs: U }), this._cache.set(O.schema, O), c && !_.startsWith("#") && (_ && this._checkUnique(_), this.refs[_] = O), o && this.validateSchema(p, !0), O;
2520
+ const A = u.getSchemaRefs.call(this, p, _);
2521
+ return O = new i.SchemaEnv({ schema: p, schemaId: j, meta: S, baseId: _, localRefs: A }), this._cache.set(O.schema, O), c && !_.startsWith("#") && (_ && this._checkUnique(_), this.refs[_] = O), n && this.validateSchema(p, !0), O;
2522
2522
  }
2523
2523
  _checkUnique(p) {
2524
2524
  if (this.schemas[p] || this.refs[p])
@@ -2539,11 +2539,11 @@ $r.default = mn;
2539
2539
  }
2540
2540
  }
2541
2541
  }
2542
- R.ValidationError = s.default, R.MissingRefError = n.default, e.default = R;
2542
+ R.ValidationError = s.default, R.MissingRefError = o.default, e.default = R;
2543
2543
  function C(k, p, S, _ = "error") {
2544
- for (const o in k) {
2545
- const c = o;
2546
- c in p && this.logger[_](`${S}: option ${o}. ${k[c]}`);
2544
+ for (const n in k) {
2545
+ const c = n;
2546
+ c in p && this.logger[_](`${S}: option ${n}. ${k[c]}`);
2547
2547
  }
2548
2548
  }
2549
2549
  function L(k) {
@@ -2558,7 +2558,7 @@ $r.default = mn;
2558
2558
  for (const p in k)
2559
2559
  this.addSchema(k[p], p);
2560
2560
  }
2561
- function ne() {
2561
+ function oe() {
2562
2562
  for (const k in this.opts.formats) {
2563
2563
  const p = this.opts.formats[k];
2564
2564
  p && this.addFormat(k, p);
@@ -2607,11 +2607,11 @@ $r.default = mn;
2607
2607
  }
2608
2608
  function ee(k, p, S) {
2609
2609
  var _;
2610
- const o = p == null ? void 0 : p.post;
2611
- if (S && o)
2610
+ const n = p == null ? void 0 : p.post;
2611
+ if (S && n)
2612
2612
  throw new Error('keyword with "post" flag cannot have "type"');
2613
2613
  const { RULES: c } = this;
2614
- let w = o ? c.post : c.rules.find(({ type: O }) => O === S);
2614
+ let w = n ? c.post : c.rules.find(({ type: O }) => O === S);
2615
2615
  if (w || (w = { type: S, rules: [] }, c.rules.push(w)), c.keywords[k] = !0, !p)
2616
2616
  return;
2617
2617
  const j = {
@@ -2622,13 +2622,13 @@ $r.default = mn;
2622
2622
  schemaType: (0, l.getJSONTypes)(p.schemaType)
2623
2623
  }
2624
2624
  };
2625
- p.before ? Ae.call(this, w, j, p.before) : w.rules.push(j), c.all[k] = j, (_ = p.implements) === null || _ === void 0 || _.forEach((O) => this.addKeyword(O));
2625
+ p.before ? Ke.call(this, w, j, p.before) : w.rules.push(j), c.all[k] = j, (_ = p.implements) === null || _ === void 0 || _.forEach((O) => this.addKeyword(O));
2626
2626
  }
2627
- function Ae(k, p, S) {
2628
- const _ = k.rules.findIndex((o) => o.keyword === S);
2627
+ function Ke(k, p, S) {
2628
+ const _ = k.rules.findIndex((n) => n.keyword === S);
2629
2629
  _ >= 0 ? k.rules.splice(_, 0, p) : (k.rules.push(p), this.logger.warn(`rule ${S} is not defined`));
2630
2630
  }
2631
- function Ke(k) {
2631
+ function qe(k) {
2632
2632
  let { metaSchema: p } = k;
2633
2633
  p !== void 0 && (k.$data && this.opts.$data && (p = he(p)), k.validateSchema = this.compile(p, !0));
2634
2634
  }
@@ -2651,16 +2651,16 @@ br.default = $i;
2651
2651
  var Fe = {};
2652
2652
  Object.defineProperty(Fe, "__esModule", { value: !0 });
2653
2653
  Fe.callRef = Fe.getValidate = void 0;
2654
- const gi = Ye, ls = A, te = K, Le = ve, ds = re, vt = N, wi = {
2654
+ const gi = Ye, ls = K, te = q, Le = ve, ds = re, vt = N, wi = {
2655
2655
  keyword: "$ref",
2656
2656
  schemaType: "string",
2657
2657
  code(e) {
2658
- const { gen: t, schema: r, it: s } = e, { baseId: n, schemaEnv: a, validateName: i, opts: d, self: u } = s, { root: l } = a;
2659
- if ((r === "#" || r === "#/") && n === l.baseId)
2658
+ const { gen: t, schema: r, it: s } = e, { baseId: o, schemaEnv: a, validateName: i, opts: d, self: u } = s, { root: l } = a;
2659
+ if ((r === "#" || r === "#/") && o === l.baseId)
2660
2660
  return y();
2661
- const m = ds.resolveRef.call(u, l, n, r);
2661
+ const m = ds.resolveRef.call(u, l, o, r);
2662
2662
  if (m === void 0)
2663
- throw new gi.default(s.opts.uriResolver, n, r);
2663
+ throw new gi.default(s.opts.uriResolver, o, r);
2664
2664
  if (m instanceof ds.SchemaEnv)
2665
2665
  return b(m);
2666
2666
  return E(m);
@@ -2671,7 +2671,7 @@ const gi = Ye, ls = A, te = K, Le = ve, ds = re, vt = N, wi = {
2671
2671
  return Et(e, (0, te._)`${g}.validate`, l, l.$async);
2672
2672
  }
2673
2673
  function b(g) {
2674
- const v = hn(e, g);
2674
+ const v = ho(e, g);
2675
2675
  Et(e, v, g, g.$async);
2676
2676
  }
2677
2677
  function E(g) {
@@ -2686,22 +2686,22 @@ const gi = Ye, ls = A, te = K, Le = ve, ds = re, vt = N, wi = {
2686
2686
  }
2687
2687
  }
2688
2688
  };
2689
- function hn(e, t) {
2689
+ function ho(e, t) {
2690
2690
  const { gen: r } = e;
2691
2691
  return t.validate ? r.scopeValue("validate", { ref: t.validate }) : (0, te._)`${r.scopeValue("wrapper", { ref: t })}.validate`;
2692
2692
  }
2693
- Fe.getValidate = hn;
2693
+ Fe.getValidate = ho;
2694
2694
  function Et(e, t, r, s) {
2695
- const { gen: n, it: a } = e, { allErrors: i, schemaEnv: d, opts: u } = a, l = u.passContext ? Le.default.this : te.nil;
2695
+ const { gen: o, it: a } = e, { allErrors: i, schemaEnv: d, opts: u } = a, l = u.passContext ? Le.default.this : te.nil;
2696
2696
  s ? m() : y();
2697
2697
  function m() {
2698
2698
  if (!d.$async)
2699
2699
  throw new Error("async schema referenced by sync schema");
2700
- const g = n.let("valid");
2701
- n.try(() => {
2702
- n.code((0, te._)`await ${(0, ls.callValidateCode)(e, t, l)}`), E(t), i || n.assign(g, !0);
2700
+ const g = o.let("valid");
2701
+ o.try(() => {
2702
+ o.code((0, te._)`await ${(0, ls.callValidateCode)(e, t, l)}`), E(t), i || o.assign(g, !0);
2703
2703
  }, (v) => {
2704
- n.if((0, te._)`!(${v} instanceof ${a.ValidationError})`, () => n.throw(v)), b(v), i || n.assign(g, !1);
2704
+ o.if((0, te._)`!(${v} instanceof ${a.ValidationError})`, () => o.throw(v)), b(v), i || o.assign(g, !1);
2705
2705
  }), e.ok(g);
2706
2706
  }
2707
2707
  function y() {
@@ -2709,7 +2709,7 @@ function Et(e, t, r, s) {
2709
2709
  }
2710
2710
  function b(g) {
2711
2711
  const v = (0, te._)`${g}.errors`;
2712
- n.assign(Le.default.vErrors, (0, te._)`${Le.default.vErrors} === null ? ${v} : ${Le.default.vErrors}.concat(${v})`), n.assign(Le.default.errors, (0, te._)`${Le.default.vErrors}.length`);
2712
+ o.assign(Le.default.vErrors, (0, te._)`${Le.default.vErrors} === null ? ${v} : ${Le.default.vErrors}.concat(${v})`), o.assign(Le.default.errors, (0, te._)`${Le.default.vErrors}.length`);
2713
2713
  }
2714
2714
  function E(g) {
2715
2715
  var v;
@@ -2718,17 +2718,17 @@ function Et(e, t, r, s) {
2718
2718
  const h = (v = r == null ? void 0 : r.validate) === null || v === void 0 ? void 0 : v.evaluated;
2719
2719
  if (a.props !== !0)
2720
2720
  if (h && !h.dynamicProps)
2721
- h.props !== void 0 && (a.props = vt.mergeEvaluated.props(n, h.props, a.props));
2721
+ h.props !== void 0 && (a.props = vt.mergeEvaluated.props(o, h.props, a.props));
2722
2722
  else {
2723
- const f = n.var("props", (0, te._)`${g}.evaluated.props`);
2724
- a.props = vt.mergeEvaluated.props(n, f, a.props, te.Name);
2723
+ const f = o.var("props", (0, te._)`${g}.evaluated.props`);
2724
+ a.props = vt.mergeEvaluated.props(o, f, a.props, te.Name);
2725
2725
  }
2726
2726
  if (a.items !== !0)
2727
2727
  if (h && !h.dynamicItems)
2728
- h.items !== void 0 && (a.items = vt.mergeEvaluated.items(n, h.items, a.items));
2728
+ h.items !== void 0 && (a.items = vt.mergeEvaluated.items(o, h.items, a.items));
2729
2729
  else {
2730
- const f = n.var("items", (0, te._)`${g}.evaluated.items`);
2731
- a.items = vt.mergeEvaluated.items(n, f, a.items, te.Name);
2730
+ const f = o.var("items", (0, te._)`${g}.evaluated.items`);
2731
+ a.items = vt.mergeEvaluated.items(o, f, a.items, te.Name);
2732
2732
  }
2733
2733
  }
2734
2734
  }
@@ -2748,7 +2748,7 @@ const bi = br, Ei = Fe, Si = [
2748
2748
  wr.default = Si;
2749
2749
  var Er = {}, Sr = {};
2750
2750
  Object.defineProperty(Sr, "__esModule", { value: !0 });
2751
- const Nt = K, Pe = Nt.operators, Ct = {
2751
+ const Nt = q, Pe = Nt.operators, Ct = {
2752
2752
  maximum: { okStr: "<=", ok: Pe.LTE, fail: Pe.GT },
2753
2753
  minimum: { okStr: ">=", ok: Pe.GTE, fail: Pe.LT },
2754
2754
  exclusiveMaximum: { okStr: "<", ok: Pe.LT, fail: Pe.GTE },
@@ -2770,7 +2770,7 @@ const Nt = K, Pe = Nt.operators, Ct = {
2770
2770
  Sr.default = ki;
2771
2771
  var Pr = {};
2772
2772
  Object.defineProperty(Pr, "__esModule", { value: !0 });
2773
- const at = K, Ni = {
2773
+ const at = q, Ni = {
2774
2774
  message: ({ schemaCode: e }) => (0, at.str)`must be multiple of ${e}`,
2775
2775
  params: ({ schemaCode: e }) => (0, at._)`{multipleOf: ${e}}`
2776
2776
  }, Ci = {
@@ -2780,24 +2780,24 @@ const at = K, Ni = {
2780
2780
  $data: !0,
2781
2781
  error: Ni,
2782
2782
  code(e) {
2783
- const { gen: t, data: r, schemaCode: s, it: n } = e, a = n.opts.multipleOfPrecision, i = t.let("res"), d = a ? (0, at._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}` : (0, at._)`${i} !== parseInt(${i})`;
2783
+ const { gen: t, data: r, schemaCode: s, it: o } = e, a = o.opts.multipleOfPrecision, i = t.let("res"), d = a ? (0, at._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}` : (0, at._)`${i} !== parseInt(${i})`;
2784
2784
  e.fail$data((0, at._)`(${s} === 0 || (${i} = ${r}/${s}, ${d}))`);
2785
2785
  }
2786
2786
  };
2787
2787
  Pr.default = Ci;
2788
2788
  var kr = {}, Nr = {};
2789
2789
  Object.defineProperty(Nr, "__esModule", { value: !0 });
2790
- function pn(e) {
2790
+ function po(e) {
2791
2791
  const t = e.length;
2792
- let r = 0, s = 0, n;
2792
+ let r = 0, s = 0, o;
2793
2793
  for (; s < t; )
2794
- r++, n = e.charCodeAt(s++), n >= 55296 && n <= 56319 && s < t && (n = e.charCodeAt(s), (n & 64512) === 56320 && s++);
2794
+ r++, o = e.charCodeAt(s++), o >= 55296 && o <= 56319 && s < t && (o = e.charCodeAt(s), (o & 64512) === 56320 && s++);
2795
2795
  return r;
2796
2796
  }
2797
- Nr.default = pn;
2798
- pn.code = 'require("ajv/dist/runtime/ucs2length").default';
2797
+ Nr.default = po;
2798
+ po.code = 'require("ajv/dist/runtime/ucs2length").default';
2799
2799
  Object.defineProperty(kr, "__esModule", { value: !0 });
2800
- const Ie = K, ji = N, Ri = Nr, Oi = {
2800
+ const Ie = q, ji = N, Ri = Nr, Oi = {
2801
2801
  message({ keyword: e, schemaCode: t }) {
2802
2802
  const r = e === "maxLength" ? "more" : "fewer";
2803
2803
  return (0, Ie.str)`must NOT have ${r} than ${t} characters`;
@@ -2810,14 +2810,14 @@ const Ie = K, ji = N, Ri = Nr, Oi = {
2810
2810
  $data: !0,
2811
2811
  error: Oi,
2812
2812
  code(e) {
2813
- const { keyword: t, data: r, schemaCode: s, it: n } = e, a = t === "maxLength" ? Ie.operators.GT : Ie.operators.LT, i = n.opts.unicode === !1 ? (0, Ie._)`${r}.length` : (0, Ie._)`${(0, ji.useFunc)(e.gen, Ri.default)}(${r})`;
2813
+ const { keyword: t, data: r, schemaCode: s, it: o } = e, a = t === "maxLength" ? Ie.operators.GT : Ie.operators.LT, i = o.opts.unicode === !1 ? (0, Ie._)`${r}.length` : (0, Ie._)`${(0, ji.useFunc)(e.gen, Ri.default)}(${r})`;
2814
2814
  e.fail$data((0, Ie._)`${i} ${a} ${s}`);
2815
2815
  }
2816
2816
  };
2817
2817
  kr.default = Ti;
2818
2818
  var Cr = {};
2819
2819
  Object.defineProperty(Cr, "__esModule", { value: !0 });
2820
- const Ii = A, Mi = N, Je = K, Vi = {
2820
+ const Ii = K, Mi = N, Je = q, Vi = {
2821
2821
  message: ({ schemaCode: e }) => (0, Je.str)`must match pattern "${e}"`,
2822
2822
  params: ({ schemaCode: e }) => (0, Je._)`{pattern: ${e}}`
2823
2823
  }, Fi = {
@@ -2827,12 +2827,12 @@ const Ii = A, Mi = N, Je = K, Vi = {
2827
2827
  $data: !0,
2828
2828
  error: Vi,
2829
2829
  code(e) {
2830
- const { gen: t, data: r, $data: s, schema: n, schemaCode: a, it: i } = e, d = i.opts.unicodeRegExp ? "u" : "";
2830
+ const { gen: t, data: r, $data: s, schema: o, schemaCode: a, it: i } = e, d = i.opts.unicodeRegExp ? "u" : "";
2831
2831
  if (s) {
2832
2832
  const { regExp: u } = i.opts.code, l = u.code === "new RegExp" ? (0, Je._)`new RegExp` : (0, Mi.useFunc)(t, u), m = t.let("valid");
2833
2833
  t.try(() => t.assign(m, (0, Je._)`${l}(${a}, ${d}).test(${r})`), () => t.assign(m, !1)), e.fail$data((0, Je._)`!${m}`);
2834
2834
  } else {
2835
- const u = (0, Ii.usePattern)(e, n);
2835
+ const u = (0, Ii.usePattern)(e, o);
2836
2836
  e.fail$data((0, Je._)`!${u}.test(${r})`);
2837
2837
  }
2838
2838
  }
@@ -2840,37 +2840,37 @@ const Ii = A, Mi = N, Je = K, Vi = {
2840
2840
  Cr.default = Fi;
2841
2841
  var jr = {};
2842
2842
  Object.defineProperty(jr, "__esModule", { value: !0 });
2843
- const it = K, Ai = {
2843
+ const it = q, Ki = {
2844
2844
  message({ keyword: e, schemaCode: t }) {
2845
2845
  const r = e === "maxProperties" ? "more" : "fewer";
2846
2846
  return (0, it.str)`must NOT have ${r} than ${t} properties`;
2847
2847
  },
2848
2848
  params: ({ schemaCode: e }) => (0, it._)`{limit: ${e}}`
2849
- }, Ki = {
2849
+ }, qi = {
2850
2850
  keyword: ["maxProperties", "minProperties"],
2851
2851
  type: "object",
2852
2852
  schemaType: "number",
2853
2853
  $data: !0,
2854
- error: Ai,
2854
+ error: Ki,
2855
2855
  code(e) {
2856
- const { keyword: t, data: r, schemaCode: s } = e, n = t === "maxProperties" ? it.operators.GT : it.operators.LT;
2857
- e.fail$data((0, it._)`Object.keys(${r}).length ${n} ${s}`);
2856
+ const { keyword: t, data: r, schemaCode: s } = e, o = t === "maxProperties" ? it.operators.GT : it.operators.LT;
2857
+ e.fail$data((0, it._)`Object.keys(${r}).length ${o} ${s}`);
2858
2858
  }
2859
2859
  };
2860
- jr.default = Ki;
2860
+ jr.default = qi;
2861
2861
  var Rr = {};
2862
2862
  Object.defineProperty(Rr, "__esModule", { value: !0 });
2863
- const rt = A, ct = K, qi = N, zi = {
2863
+ const rt = K, ct = q, Ui = N, zi = {
2864
2864
  message: ({ params: { missingProperty: e } }) => (0, ct.str)`must have required property '${e}'`,
2865
2865
  params: ({ params: { missingProperty: e } }) => (0, ct._)`{missingProperty: ${e}}`
2866
- }, Ui = {
2866
+ }, Ai = {
2867
2867
  keyword: "required",
2868
2868
  type: "object",
2869
2869
  schemaType: "array",
2870
2870
  $data: !0,
2871
2871
  error: zi,
2872
2872
  code(e) {
2873
- const { gen: t, schema: r, schemaCode: s, data: n, $data: a, it: i } = e, { opts: d } = i;
2873
+ const { gen: t, schema: r, schemaCode: s, data: o, $data: a, it: i } = e, { opts: d } = i;
2874
2874
  if (!a && r.length === 0)
2875
2875
  return;
2876
2876
  const u = r.length >= d.loopRequired;
@@ -2879,7 +2879,7 @@ const rt = A, ct = K, qi = N, zi = {
2879
2879
  for (const v of r)
2880
2880
  if ((E == null ? void 0 : E[v]) === void 0 && !g.has(v)) {
2881
2881
  const h = i.schemaEnv.baseId + i.errSchemaPath, f = `required property "${v}" is not defined at "${h}" (strictRequired)`;
2882
- (0, qi.checkStrictMode)(i, f, i.opts.strictRequired);
2882
+ (0, Ui.checkStrictMode)(i, f, i.opts.strictRequired);
2883
2883
  }
2884
2884
  }
2885
2885
  function l() {
@@ -2899,22 +2899,22 @@ const rt = A, ct = K, qi = N, zi = {
2899
2899
  }
2900
2900
  function y() {
2901
2901
  t.forOf("prop", s, (E) => {
2902
- e.setParams({ missingProperty: E }), t.if((0, rt.noPropertyInData)(t, n, E, d.ownProperties), () => e.error());
2902
+ e.setParams({ missingProperty: E }), t.if((0, rt.noPropertyInData)(t, o, E, d.ownProperties), () => e.error());
2903
2903
  });
2904
2904
  }
2905
2905
  function b(E, g) {
2906
2906
  e.setParams({ missingProperty: E }), t.forOf(E, s, () => {
2907
- t.assign(g, (0, rt.propertyInData)(t, n, E, d.ownProperties)), t.if((0, ct.not)(g), () => {
2907
+ t.assign(g, (0, rt.propertyInData)(t, o, E, d.ownProperties)), t.if((0, ct.not)(g), () => {
2908
2908
  e.error(), t.break();
2909
2909
  });
2910
2910
  }, ct.nil);
2911
2911
  }
2912
2912
  }
2913
2913
  };
2914
- Rr.default = Ui;
2914
+ Rr.default = Ai;
2915
2915
  var Or = {};
2916
2916
  Object.defineProperty(Or, "__esModule", { value: !0 });
2917
- const lt = K, Li = {
2917
+ const lt = q, Li = {
2918
2918
  message({ keyword: e, schemaCode: t }) {
2919
2919
  const r = e === "maxItems" ? "more" : "fewer";
2920
2920
  return (0, lt.str)`must NOT have ${r} than ${t} items`;
@@ -2927,18 +2927,18 @@ const lt = K, Li = {
2927
2927
  $data: !0,
2928
2928
  error: Li,
2929
2929
  code(e) {
2930
- const { keyword: t, data: r, schemaCode: s } = e, n = t === "maxItems" ? lt.operators.GT : lt.operators.LT;
2931
- e.fail$data((0, lt._)`${r}.length ${n} ${s}`);
2930
+ const { keyword: t, data: r, schemaCode: s } = e, o = t === "maxItems" ? lt.operators.GT : lt.operators.LT;
2931
+ e.fail$data((0, lt._)`${r}.length ${o} ${s}`);
2932
2932
  }
2933
2933
  };
2934
2934
  Or.default = Gi;
2935
2935
  var Tr = {}, pt = {};
2936
2936
  Object.defineProperty(pt, "__esModule", { value: !0 });
2937
- const yn = Ps;
2938
- yn.code = 'require("ajv/dist/runtime/equal").default';
2939
- pt.default = yn;
2937
+ const yo = Ps;
2938
+ yo.code = 'require("ajv/dist/runtime/equal").default';
2939
+ pt.default = yo;
2940
2940
  Object.defineProperty(Tr, "__esModule", { value: !0 });
2941
- const Yt = X, Y = K, Ji = N, Hi = pt, Bi = {
2941
+ const Yt = X, Y = q, Ji = N, Hi = pt, Bi = {
2942
2942
  message: ({ params: { i: e, j: t } }) => (0, Y.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
2943
2943
  params: ({ params: { i: e, j: t } }) => (0, Y._)`{i: ${e}, j: ${t}}`
2944
2944
  }, Qi = {
@@ -2948,8 +2948,8 @@ const Yt = X, Y = K, Ji = N, Hi = pt, Bi = {
2948
2948
  $data: !0,
2949
2949
  error: Bi,
2950
2950
  code(e) {
2951
- const { gen: t, data: r, $data: s, schema: n, parentSchema: a, schemaCode: i, it: d } = e;
2952
- if (!s && !n)
2951
+ const { gen: t, data: r, $data: s, schema: o, parentSchema: a, schemaCode: i, it: d } = e;
2952
+ if (!s && !o)
2953
2953
  return;
2954
2954
  const u = t.let("valid"), l = a.items ? (0, Yt.getSchemaTypes)(a.items) : [];
2955
2955
  e.block$data(u, m, (0, Y._)`${i} === false`), e.ok(u);
@@ -2979,7 +2979,7 @@ const Yt = X, Y = K, Ji = N, Hi = pt, Bi = {
2979
2979
  Tr.default = Qi;
2980
2980
  var Ir = {};
2981
2981
  Object.defineProperty(Ir, "__esModule", { value: !0 });
2982
- const ar = K, Xi = N, Yi = pt, Zi = {
2982
+ const ar = q, Xi = N, Yi = pt, Zi = {
2983
2983
  message: "must be equal to constant",
2984
2984
  params: ({ schemaCode: e }) => (0, ar._)`{allowedValue: ${e}}`
2985
2985
  }, Di = {
@@ -2987,14 +2987,14 @@ const ar = K, Xi = N, Yi = pt, Zi = {
2987
2987
  $data: !0,
2988
2988
  error: Zi,
2989
2989
  code(e) {
2990
- const { gen: t, data: r, $data: s, schemaCode: n, schema: a } = e;
2991
- s || a && typeof a == "object" ? e.fail$data((0, ar._)`!${(0, Xi.useFunc)(t, Yi.default)}(${r}, ${n})`) : e.fail((0, ar._)`${a} !== ${r}`);
2990
+ const { gen: t, data: r, $data: s, schemaCode: o, schema: a } = e;
2991
+ s || a && typeof a == "object" ? e.fail$data((0, ar._)`!${(0, Xi.useFunc)(t, Yi.default)}(${r}, ${o})`) : e.fail((0, ar._)`${a} !== ${r}`);
2992
2992
  }
2993
2993
  };
2994
2994
  Ir.default = Di;
2995
2995
  var Mr = {};
2996
2996
  Object.defineProperty(Mr, "__esModule", { value: !0 });
2997
- const st = K, Wi = N, xi = pt, ec = {
2997
+ const st = q, Wi = N, xi = pt, ec = {
2998
2998
  message: "must be equal to one of the allowed values",
2999
2999
  params: ({ schemaCode: e }) => (0, st._)`{allowedValues: ${e}}`
3000
3000
  }, tc = {
@@ -3003,40 +3003,40 @@ const st = K, Wi = N, xi = pt, ec = {
3003
3003
  $data: !0,
3004
3004
  error: ec,
3005
3005
  code(e) {
3006
- const { gen: t, data: r, $data: s, schema: n, schemaCode: a, it: i } = e;
3007
- if (!s && n.length === 0)
3006
+ const { gen: t, data: r, $data: s, schema: o, schemaCode: a, it: i } = e;
3007
+ if (!s && o.length === 0)
3008
3008
  throw new Error("enum must have non-empty array");
3009
- const d = n.length >= i.opts.loopEnum;
3009
+ const d = o.length >= i.opts.loopEnum;
3010
3010
  let u;
3011
3011
  const l = () => u ?? (u = (0, Wi.useFunc)(t, xi.default));
3012
3012
  let m;
3013
3013
  if (d || s)
3014
3014
  m = t.let("valid"), e.block$data(m, y);
3015
3015
  else {
3016
- if (!Array.isArray(n))
3016
+ if (!Array.isArray(o))
3017
3017
  throw new Error("ajv implementation error");
3018
3018
  const E = t.const("vSchema", a);
3019
- m = (0, st.or)(...n.map((g, v) => b(E, v)));
3019
+ m = (0, st.or)(...o.map((g, v) => b(E, v)));
3020
3020
  }
3021
3021
  e.pass(m);
3022
3022
  function y() {
3023
3023
  t.assign(m, !1), t.forOf("v", a, (E) => t.if((0, st._)`${l()}(${r}, ${E})`, () => t.assign(m, !0).break()));
3024
3024
  }
3025
3025
  function b(E, g) {
3026
- const v = n[g];
3026
+ const v = o[g];
3027
3027
  return typeof v == "object" && v !== null ? (0, st._)`${l()}(${r}, ${E}[${g}])` : (0, st._)`${r} === ${v}`;
3028
3028
  }
3029
3029
  }
3030
3030
  };
3031
3031
  Mr.default = tc;
3032
3032
  Object.defineProperty(Er, "__esModule", { value: !0 });
3033
- const rc = Sr, sc = Pr, nc = kr, oc = Cr, ac = jr, ic = Rr, cc = Or, lc = Tr, dc = Ir, uc = Mr, fc = [
3033
+ const rc = Sr, sc = Pr, oc = kr, nc = Cr, ac = jr, ic = Rr, cc = Or, lc = Tr, dc = Ir, uc = Mr, fc = [
3034
3034
  // number
3035
3035
  rc.default,
3036
3036
  sc.default,
3037
3037
  // string
3038
- nc.default,
3039
3038
  oc.default,
3039
+ nc.default,
3040
3040
  // object
3041
3041
  ac.default,
3042
3042
  ic.default,
@@ -3053,7 +3053,7 @@ Er.default = fc;
3053
3053
  var Vr = {}, Ze = {};
3054
3054
  Object.defineProperty(Ze, "__esModule", { value: !0 });
3055
3055
  Ze.validateAdditionalItems = void 0;
3056
- const Me = K, ir = N, mc = {
3056
+ const Me = q, ir = N, mc = {
3057
3057
  message: ({ params: { len: e } }) => (0, Me.str)`must NOT have more than ${e} items`,
3058
3058
  params: ({ params: { len: e } }) => (0, Me._)`{limit: ${e}}`
3059
3059
  }, hc = {
@@ -3068,13 +3068,13 @@ const Me = K, ir = N, mc = {
3068
3068
  (0, ir.checkStrictMode)(r, '"additionalItems" is ignored when "items" is not an array of schemas');
3069
3069
  return;
3070
3070
  }
3071
- _n(e, s);
3071
+ _o(e, s);
3072
3072
  }
3073
3073
  };
3074
- function _n(e, t) {
3075
- const { gen: r, schema: s, data: n, keyword: a, it: i } = e;
3074
+ function _o(e, t) {
3075
+ const { gen: r, schema: s, data: o, keyword: a, it: i } = e;
3076
3076
  i.items = !0;
3077
- const d = r.const("len", (0, Me._)`${n}.length`);
3077
+ const d = r.const("len", (0, Me._)`${o}.length`);
3078
3078
  if (s === !1)
3079
3079
  e.setParams({ len: t.length }), e.pass((0, Me._)`${d} <= ${t.length}`);
3080
3080
  else if (typeof s == "object" && !(0, ir.alwaysValidSchema)(i, s)) {
@@ -3087,12 +3087,12 @@ function _n(e, t) {
3087
3087
  });
3088
3088
  }
3089
3089
  }
3090
- Ze.validateAdditionalItems = _n;
3090
+ Ze.validateAdditionalItems = _o;
3091
3091
  Ze.default = hc;
3092
3092
  var Fr = {}, De = {};
3093
3093
  Object.defineProperty(De, "__esModule", { value: !0 });
3094
3094
  De.validateTuple = void 0;
3095
- const us = K, St = N, pc = A, yc = {
3095
+ const us = q, St = N, pc = K, yc = {
3096
3096
  keyword: "items",
3097
3097
  type: "array",
3098
3098
  schemaType: ["object", "array", "boolean"],
@@ -3100,13 +3100,13 @@ const us = K, St = N, pc = A, yc = {
3100
3100
  code(e) {
3101
3101
  const { schema: t, it: r } = e;
3102
3102
  if (Array.isArray(t))
3103
- return vn(e, "additionalItems", t);
3103
+ return vo(e, "additionalItems", t);
3104
3104
  r.items = !0, !(0, St.alwaysValidSchema)(r, t) && e.ok((0, pc.validateArray)(e));
3105
3105
  }
3106
3106
  };
3107
- function vn(e, t, r = e.schema) {
3108
- const { gen: s, parentSchema: n, data: a, keyword: i, it: d } = e;
3109
- m(n), d.opts.unevaluated && r.length && d.items !== !0 && (d.items = St.mergeEvaluated.items(s, r.length, d.items));
3107
+ function vo(e, t, r = e.schema) {
3108
+ const { gen: s, parentSchema: o, data: a, keyword: i, it: d } = e;
3109
+ m(o), d.opts.unevaluated && r.length && d.items !== !0 && (d.items = St.mergeEvaluated.items(s, r.length, d.items));
3110
3110
  const u = s.name("valid"), l = s.const("len", (0, us._)`${a}.length`);
3111
3111
  r.forEach((y, b) => {
3112
3112
  (0, St.alwaysValidSchema)(d, y) || (s.if((0, us._)`${l} > ${b}`, () => e.subschema({
@@ -3123,7 +3123,7 @@ function vn(e, t, r = e.schema) {
3123
3123
  }
3124
3124
  }
3125
3125
  }
3126
- De.validateTuple = vn;
3126
+ De.validateTuple = vo;
3127
3127
  De.default = yc;
3128
3128
  Object.defineProperty(Fr, "__esModule", { value: !0 });
3129
3129
  const _c = De, vc = {
@@ -3134,9 +3134,9 @@ const _c = De, vc = {
3134
3134
  code: (e) => (0, _c.validateTuple)(e, "items")
3135
3135
  };
3136
3136
  Fr.default = vc;
3137
- var Ar = {};
3138
- Object.defineProperty(Ar, "__esModule", { value: !0 });
3139
- const fs = K, $c = N, gc = A, wc = Ze, bc = {
3137
+ var Kr = {};
3138
+ Object.defineProperty(Kr, "__esModule", { value: !0 });
3139
+ const fs = q, $c = N, gc = K, wc = Ze, bc = {
3140
3140
  message: ({ params: { len: e } }) => (0, fs.str)`must NOT have more than ${e} items`,
3141
3141
  params: ({ params: { len: e } }) => (0, fs._)`{limit: ${e}}`
3142
3142
  }, Ec = {
@@ -3146,16 +3146,16 @@ const fs = K, $c = N, gc = A, wc = Ze, bc = {
3146
3146
  before: "uniqueItems",
3147
3147
  error: bc,
3148
3148
  code(e) {
3149
- const { schema: t, parentSchema: r, it: s } = e, { prefixItems: n } = r;
3150
- s.items = !0, !(0, $c.alwaysValidSchema)(s, t) && (n ? (0, wc.validateAdditionalItems)(e, n) : e.ok((0, gc.validateArray)(e)));
3149
+ const { schema: t, parentSchema: r, it: s } = e, { prefixItems: o } = r;
3150
+ s.items = !0, !(0, $c.alwaysValidSchema)(s, t) && (o ? (0, wc.validateAdditionalItems)(e, o) : e.ok((0, gc.validateArray)(e)));
3151
3151
  }
3152
3152
  };
3153
- Ar.default = Ec;
3154
- var Kr = {};
3155
- Object.defineProperty(Kr, "__esModule", { value: !0 });
3156
- const oe = K, $t = N, Sc = {
3157
- message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, oe.str)`must contain at least ${e} valid item(s)` : (0, oe.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
3158
- params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, oe._)`{minContains: ${e}}` : (0, oe._)`{minContains: ${e}, maxContains: ${t}}`
3153
+ Kr.default = Ec;
3154
+ var qr = {};
3155
+ Object.defineProperty(qr, "__esModule", { value: !0 });
3156
+ const ne = q, $t = N, Sc = {
3157
+ message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, ne.str)`must contain at least ${e} valid item(s)` : (0, ne.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
3158
+ params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, ne._)`{minContains: ${e}}` : (0, ne._)`{minContains: ${e}, maxContains: ${t}}`
3159
3159
  }, Pc = {
3160
3160
  keyword: "contains",
3161
3161
  type: "array",
@@ -3164,11 +3164,11 @@ const oe = K, $t = N, Sc = {
3164
3164
  trackErrors: !0,
3165
3165
  error: Sc,
3166
3166
  code(e) {
3167
- const { gen: t, schema: r, parentSchema: s, data: n, it: a } = e;
3167
+ const { gen: t, schema: r, parentSchema: s, data: o, it: a } = e;
3168
3168
  let i, d;
3169
3169
  const { minContains: u, maxContains: l } = s;
3170
3170
  a.opts.next ? (i = u === void 0 ? 1 : u, d = l) : i = 1;
3171
- const m = t.const("len", (0, oe._)`${n}.length`);
3171
+ const m = t.const("len", (0, ne._)`${o}.length`);
3172
3172
  if (e.setParams({ min: i, max: d }), d === void 0 && i === 0) {
3173
3173
  (0, $t.checkStrictMode)(a, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
3174
3174
  return;
@@ -3178,13 +3178,13 @@ const oe = K, $t = N, Sc = {
3178
3178
  return;
3179
3179
  }
3180
3180
  if ((0, $t.alwaysValidSchema)(a, r)) {
3181
- let v = (0, oe._)`${m} >= ${i}`;
3182
- d !== void 0 && (v = (0, oe._)`${v} && ${m} <= ${d}`), e.pass(v);
3181
+ let v = (0, ne._)`${m} >= ${i}`;
3182
+ d !== void 0 && (v = (0, ne._)`${v} && ${m} <= ${d}`), e.pass(v);
3183
3183
  return;
3184
3184
  }
3185
3185
  a.items = !0;
3186
3186
  const y = t.name("valid");
3187
- d === void 0 && i === 1 ? E(y, () => t.if(y, () => t.break())) : i === 0 ? (t.let(y, !0), d !== void 0 && t.if((0, oe._)`${n}.length > 0`, b)) : (t.let(y, !1), b()), e.result(y, () => e.reset());
3187
+ d === void 0 && i === 1 ? E(y, () => t.if(y, () => t.break())) : i === 0 ? (t.let(y, !0), d !== void 0 && t.if((0, ne._)`${o}.length > 0`, b)) : (t.let(y, !1), b()), e.result(y, () => e.reset());
3188
3188
  function b() {
3189
3189
  const v = t.name("_valid"), h = t.let("count", 0);
3190
3190
  E(v, () => t.if(v, () => g(h)));
@@ -3200,15 +3200,15 @@ const oe = K, $t = N, Sc = {
3200
3200
  });
3201
3201
  }
3202
3202
  function g(v) {
3203
- t.code((0, oe._)`${v}++`), d === void 0 ? t.if((0, oe._)`${v} >= ${i}`, () => t.assign(y, !0).break()) : (t.if((0, oe._)`${v} > ${d}`, () => t.assign(y, !1).break()), i === 1 ? t.assign(y, !0) : t.if((0, oe._)`${v} >= ${i}`, () => t.assign(y, !0)));
3203
+ t.code((0, ne._)`${v}++`), d === void 0 ? t.if((0, ne._)`${v} >= ${i}`, () => t.assign(y, !0).break()) : (t.if((0, ne._)`${v} > ${d}`, () => t.assign(y, !1).break()), i === 1 ? t.assign(y, !0) : t.if((0, ne._)`${v} >= ${i}`, () => t.assign(y, !0)));
3204
3204
  }
3205
3205
  }
3206
3206
  };
3207
- Kr.default = Pc;
3208
- var $n = {};
3207
+ qr.default = Pc;
3208
+ var $o = {};
3209
3209
  (function(e) {
3210
3210
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
3211
- const t = K, r = N, s = A;
3211
+ const t = q, r = N, s = K;
3212
3212
  e.error = {
3213
3213
  message: ({ params: { property: u, depsCount: l, deps: m } }) => {
3214
3214
  const y = l === 1 ? "property" : "properties";
@@ -3220,7 +3220,7 @@ var $n = {};
3220
3220
  deps: ${m}}`
3221
3221
  // TODO change to reference
3222
3222
  };
3223
- const n = {
3223
+ const o = {
3224
3224
  keyword: "dependencies",
3225
3225
  type: "object",
3226
3226
  schemaType: "object",
@@ -3274,21 +3274,21 @@ var $n = {};
3274
3274
  // TODO var
3275
3275
  ), u.ok(g));
3276
3276
  }
3277
- e.validateSchemaDeps = d, e.default = n;
3278
- })($n);
3279
- var qr = {};
3280
- Object.defineProperty(qr, "__esModule", { value: !0 });
3281
- const gn = K, kc = N, Nc = {
3277
+ e.validateSchemaDeps = d, e.default = o;
3278
+ })($o);
3279
+ var Ur = {};
3280
+ Object.defineProperty(Ur, "__esModule", { value: !0 });
3281
+ const go = q, kc = N, Nc = {
3282
3282
  message: "property name must be valid",
3283
- params: ({ params: e }) => (0, gn._)`{propertyName: ${e.propertyName}}`
3283
+ params: ({ params: e }) => (0, go._)`{propertyName: ${e.propertyName}}`
3284
3284
  }, Cc = {
3285
3285
  keyword: "propertyNames",
3286
3286
  type: "object",
3287
3287
  schemaType: ["object", "boolean"],
3288
3288
  error: Nc,
3289
3289
  code(e) {
3290
- const { gen: t, schema: r, data: s, it: n } = e;
3291
- if ((0, kc.alwaysValidSchema)(n, r))
3290
+ const { gen: t, schema: r, data: s, it: o } = e;
3291
+ if ((0, kc.alwaysValidSchema)(o, r))
3292
3292
  return;
3293
3293
  const a = t.name("valid");
3294
3294
  t.forIn("key", s, (i) => {
@@ -3298,16 +3298,16 @@ const gn = K, kc = N, Nc = {
3298
3298
  dataTypes: ["string"],
3299
3299
  propertyName: i,
3300
3300
  compositeRule: !0
3301
- }, a), t.if((0, gn.not)(a), () => {
3302
- e.error(!0), n.allErrors || t.break();
3301
+ }, a), t.if((0, go.not)(a), () => {
3302
+ e.error(!0), o.allErrors || t.break();
3303
3303
  });
3304
3304
  }), e.ok(a);
3305
3305
  }
3306
3306
  };
3307
- qr.default = Cc;
3307
+ Ur.default = Cc;
3308
3308
  var It = {};
3309
3309
  Object.defineProperty(It, "__esModule", { value: !0 });
3310
- const gt = A, le = K, jc = ve, wt = N, Rc = {
3310
+ const gt = K, le = q, jc = ve, wt = N, Rc = {
3311
3311
  message: "must NOT have additional properties",
3312
3312
  params: ({ params: e }) => (0, le._)`{additionalProperty: ${e.additionalProperty}}`
3313
3313
  }, Oc = {
@@ -3318,7 +3318,7 @@ const gt = A, le = K, jc = ve, wt = N, Rc = {
3318
3318
  trackErrors: !0,
3319
3319
  error: Rc,
3320
3320
  code(e) {
3321
- const { gen: t, schema: r, parentSchema: s, data: n, errsCount: a, it: i } = e;
3321
+ const { gen: t, schema: r, parentSchema: s, data: o, errsCount: a, it: i } = e;
3322
3322
  if (!a)
3323
3323
  throw new Error("ajv implementation error");
3324
3324
  const { allErrors: d, opts: u } = i;
@@ -3327,7 +3327,7 @@ const gt = A, le = K, jc = ve, wt = N, Rc = {
3327
3327
  const l = (0, gt.allSchemaProperties)(s.properties), m = (0, gt.allSchemaProperties)(s.patternProperties);
3328
3328
  y(), e.ok((0, le._)`${a} === ${jc.default.errors}`);
3329
3329
  function y() {
3330
- t.forIn("key", n, (h) => {
3330
+ t.forIn("key", o, (h) => {
3331
3331
  !l.length && !m.length ? g(h) : t.if(b(h), () => g(h));
3332
3332
  });
3333
3333
  }
@@ -3340,7 +3340,7 @@ const gt = A, le = K, jc = ve, wt = N, Rc = {
3340
3340
  return m.length && (f = (0, le.or)(f, ...m.map(($) => (0, le._)`${(0, gt.usePattern)(e, $)}.test(${h})`))), (0, le.not)(f);
3341
3341
  }
3342
3342
  function E(h) {
3343
- t.code((0, le._)`delete ${n}[${h}]`);
3343
+ t.code((0, le._)`delete ${o}[${h}]`);
3344
3344
  }
3345
3345
  function g(h) {
3346
3346
  if (u.removeAdditional === "all" || u.removeAdditional && r === !1) {
@@ -3375,12 +3375,12 @@ const gt = A, le = K, jc = ve, wt = N, Rc = {
3375
3375
  It.default = Oc;
3376
3376
  var zr = {};
3377
3377
  Object.defineProperty(zr, "__esModule", { value: !0 });
3378
- const Tc = fe, ms = A, Zt = N, hs = It, Ic = {
3378
+ const Tc = fe, ms = K, Zt = N, hs = It, Ic = {
3379
3379
  keyword: "properties",
3380
3380
  type: "object",
3381
3381
  schemaType: "object",
3382
3382
  code(e) {
3383
- const { gen: t, schema: r, parentSchema: s, data: n, it: a } = e;
3383
+ const { gen: t, schema: r, parentSchema: s, data: o, it: a } = e;
3384
3384
  a.opts.removeAdditional === "all" && s.additionalProperties === void 0 && hs.default.code(new Tc.KeywordCxt(a, hs.default, "additionalProperties"));
3385
3385
  const i = (0, ms.allSchemaProperties)(r);
3386
3386
  for (const y of i)
@@ -3391,7 +3391,7 @@ const Tc = fe, ms = A, Zt = N, hs = It, Ic = {
3391
3391
  return;
3392
3392
  const u = t.name("valid");
3393
3393
  for (const y of d)
3394
- l(y) ? m(y) : (t.if((0, ms.propertyInData)(t, n, y, a.opts.ownProperties)), m(y), a.allErrors || t.else().var(u, !0), t.endIf()), e.it.definedProperties.add(y), e.ok(u);
3394
+ l(y) ? m(y) : (t.if((0, ms.propertyInData)(t, o, y, a.opts.ownProperties)), m(y), a.allErrors || t.else().var(u, !0), t.endIf()), e.it.definedProperties.add(y), e.ok(u);
3395
3395
  function l(y) {
3396
3396
  return a.opts.useDefaults && !a.compositeRule && r[y].default !== void 0;
3397
3397
  }
@@ -3405,17 +3405,17 @@ const Tc = fe, ms = A, Zt = N, hs = It, Ic = {
3405
3405
  }
3406
3406
  };
3407
3407
  zr.default = Ic;
3408
- var Ur = {};
3409
- Object.defineProperty(Ur, "__esModule", { value: !0 });
3410
- const ps = A, bt = K, ys = N, _s = N, Mc = {
3408
+ var Ar = {};
3409
+ Object.defineProperty(Ar, "__esModule", { value: !0 });
3410
+ const ps = K, bt = q, ys = N, _s = N, Mc = {
3411
3411
  keyword: "patternProperties",
3412
3412
  type: "object",
3413
3413
  schemaType: "object",
3414
3414
  code(e) {
3415
- const { gen: t, schema: r, data: s, parentSchema: n, it: a } = e, { opts: i } = a, d = (0, ps.allSchemaProperties)(r), u = d.filter((v) => (0, ys.alwaysValidSchema)(a, r[v]));
3415
+ const { gen: t, schema: r, data: s, parentSchema: o, it: a } = e, { opts: i } = a, d = (0, ps.allSchemaProperties)(r), u = d.filter((v) => (0, ys.alwaysValidSchema)(a, r[v]));
3416
3416
  if (d.length === 0 || u.length === d.length && (!a.opts.unevaluated || a.props === !0))
3417
3417
  return;
3418
- const l = i.strictSchema && !i.allowMatchingProperties && n.properties, m = t.name("valid");
3418
+ const l = i.strictSchema && !i.allowMatchingProperties && o.properties, m = t.name("valid");
3419
3419
  a.props !== !0 && !(a.props instanceof bt.Name) && (a.props = (0, _s.evaluatedPropsToName)(t, a.props));
3420
3420
  const { props: y } = a;
3421
3421
  b();
@@ -3442,7 +3442,7 @@ const ps = A, bt = K, ys = N, _s = N, Mc = {
3442
3442
  }
3443
3443
  }
3444
3444
  };
3445
- Ur.default = Mc;
3445
+ Ar.default = Mc;
3446
3446
  var Lr = {};
3447
3447
  Object.defineProperty(Lr, "__esModule", { value: !0 });
3448
3448
  const Vc = N, Fc = {
@@ -3455,49 +3455,49 @@ const Vc = N, Fc = {
3455
3455
  e.fail();
3456
3456
  return;
3457
3457
  }
3458
- const n = t.name("valid");
3458
+ const o = t.name("valid");
3459
3459
  e.subschema({
3460
3460
  keyword: "not",
3461
3461
  compositeRule: !0,
3462
3462
  createErrors: !1,
3463
3463
  allErrors: !1
3464
- }, n), e.failResult(n, () => e.reset(), () => e.error());
3464
+ }, o), e.failResult(o, () => e.reset(), () => e.error());
3465
3465
  },
3466
3466
  error: { message: "must NOT be valid" }
3467
3467
  };
3468
3468
  Lr.default = Fc;
3469
3469
  var Gr = {};
3470
3470
  Object.defineProperty(Gr, "__esModule", { value: !0 });
3471
- const Ac = A, Kc = {
3471
+ const Kc = K, qc = {
3472
3472
  keyword: "anyOf",
3473
3473
  schemaType: "array",
3474
3474
  trackErrors: !0,
3475
- code: Ac.validateUnion,
3475
+ code: Kc.validateUnion,
3476
3476
  error: { message: "must match a schema in anyOf" }
3477
3477
  };
3478
- Gr.default = Kc;
3478
+ Gr.default = qc;
3479
3479
  var Jr = {};
3480
3480
  Object.defineProperty(Jr, "__esModule", { value: !0 });
3481
- const Pt = K, qc = N, zc = {
3481
+ const Pt = q, Uc = N, zc = {
3482
3482
  message: "must match exactly one schema in oneOf",
3483
3483
  params: ({ params: e }) => (0, Pt._)`{passingSchemas: ${e.passing}}`
3484
- }, Uc = {
3484
+ }, Ac = {
3485
3485
  keyword: "oneOf",
3486
3486
  schemaType: "array",
3487
3487
  trackErrors: !0,
3488
3488
  error: zc,
3489
3489
  code(e) {
3490
- const { gen: t, schema: r, parentSchema: s, it: n } = e;
3490
+ const { gen: t, schema: r, parentSchema: s, it: o } = e;
3491
3491
  if (!Array.isArray(r))
3492
3492
  throw new Error("ajv implementation error");
3493
- if (n.opts.discriminator && s.discriminator)
3493
+ if (o.opts.discriminator && s.discriminator)
3494
3494
  return;
3495
3495
  const a = r, i = t.let("valid", !1), d = t.let("passing", null), u = t.name("_valid");
3496
3496
  e.setParams({ passing: d }), t.block(l), e.result(i, () => e.reset(), () => e.error(!0));
3497
3497
  function l() {
3498
3498
  a.forEach((m, y) => {
3499
3499
  let b;
3500
- (0, qc.alwaysValidSchema)(n, m) ? t.var(u, !0) : b = e.subschema({
3500
+ (0, Uc.alwaysValidSchema)(o, m) ? t.var(u, !0) : b = e.subschema({
3501
3501
  keyword: "oneOf",
3502
3502
  schemaProp: y,
3503
3503
  compositeRule: !0
@@ -3508,7 +3508,7 @@ const Pt = K, qc = N, zc = {
3508
3508
  }
3509
3509
  }
3510
3510
  };
3511
- Jr.default = Uc;
3511
+ Jr.default = Ac;
3512
3512
  var Hr = {};
3513
3513
  Object.defineProperty(Hr, "__esModule", { value: !0 });
3514
3514
  const Lc = N, Gc = {
@@ -3518,19 +3518,19 @@ const Lc = N, Gc = {
3518
3518
  const { gen: t, schema: r, it: s } = e;
3519
3519
  if (!Array.isArray(r))
3520
3520
  throw new Error("ajv implementation error");
3521
- const n = t.name("valid");
3521
+ const o = t.name("valid");
3522
3522
  r.forEach((a, i) => {
3523
3523
  if ((0, Lc.alwaysValidSchema)(s, a))
3524
3524
  return;
3525
- const d = e.subschema({ keyword: "allOf", schemaProp: i }, n);
3526
- e.ok(n), e.mergeEvaluated(d);
3525
+ const d = e.subschema({ keyword: "allOf", schemaProp: i }, o);
3526
+ e.ok(o), e.mergeEvaluated(d);
3527
3527
  });
3528
3528
  }
3529
3529
  };
3530
3530
  Hr.default = Gc;
3531
3531
  var Br = {};
3532
3532
  Object.defineProperty(Br, "__esModule", { value: !0 });
3533
- const jt = K, wn = N, Jc = {
3533
+ const jt = q, wo = N, Jc = {
3534
3534
  message: ({ params: e }) => (0, jt.str)`must match "${e.ifClause}" schema`,
3535
3535
  params: ({ params: e }) => (0, jt._)`{failingKeyword: ${e.ifClause}}`
3536
3536
  }, Hc = {
@@ -3540,15 +3540,15 @@ const jt = K, wn = N, Jc = {
3540
3540
  error: Jc,
3541
3541
  code(e) {
3542
3542
  const { gen: t, parentSchema: r, it: s } = e;
3543
- r.then === void 0 && r.else === void 0 && (0, wn.checkStrictMode)(s, '"if" without "then" and "else" is ignored');
3544
- const n = vs(s, "then"), a = vs(s, "else");
3545
- if (!n && !a)
3543
+ r.then === void 0 && r.else === void 0 && (0, wo.checkStrictMode)(s, '"if" without "then" and "else" is ignored');
3544
+ const o = vs(s, "then"), a = vs(s, "else");
3545
+ if (!o && !a)
3546
3546
  return;
3547
3547
  const i = t.let("valid", !0), d = t.name("_valid");
3548
- if (u(), e.reset(), n && a) {
3548
+ if (u(), e.reset(), o && a) {
3549
3549
  const m = t.let("ifClause");
3550
3550
  e.setParams({ ifClause: m }), t.if(d, l("then", m), l("else", m));
3551
- } else n ? t.if(d, l("then")) : t.if((0, jt.not)(d), l("else"));
3551
+ } else o ? t.if(d, l("then")) : t.if((0, jt.not)(d), l("else"));
3552
3552
  e.pass(i, () => e.error(!0));
3553
3553
  function u() {
3554
3554
  const m = e.subschema({
@@ -3569,7 +3569,7 @@ const jt = K, wn = N, Jc = {
3569
3569
  };
3570
3570
  function vs(e, t) {
3571
3571
  const r = e.schema[t];
3572
- return r !== void 0 && !(0, wn.alwaysValidSchema)(e, r);
3572
+ return r !== void 0 && !(0, wo.alwaysValidSchema)(e, r);
3573
3573
  }
3574
3574
  Br.default = Hc;
3575
3575
  var Qr = {};
@@ -3583,12 +3583,12 @@ const Bc = N, Qc = {
3583
3583
  };
3584
3584
  Qr.default = Qc;
3585
3585
  Object.defineProperty(Vr, "__esModule", { value: !0 });
3586
- const Xc = Ze, Yc = Fr, Zc = De, Dc = Ar, Wc = Kr, xc = $n, el = qr, tl = It, rl = zr, sl = Ur, nl = Lr, ol = Gr, al = Jr, il = Hr, cl = Br, ll = Qr;
3586
+ const Xc = Ze, Yc = Fr, Zc = De, Dc = Kr, Wc = qr, xc = $o, el = Ur, tl = It, rl = zr, sl = Ar, ol = Lr, nl = Gr, al = Jr, il = Hr, cl = Br, ll = Qr;
3587
3587
  function dl(e = !1) {
3588
3588
  const t = [
3589
3589
  // any
3590
- nl.default,
3591
3590
  ol.default,
3591
+ nl.default,
3592
3592
  al.default,
3593
3593
  il.default,
3594
3594
  cl.default,
@@ -3605,7 +3605,7 @@ function dl(e = !1) {
3605
3605
  Vr.default = dl;
3606
3606
  var Xr = {}, Yr = {};
3607
3607
  Object.defineProperty(Yr, "__esModule", { value: !0 });
3608
- const Q = K, ul = {
3608
+ const Q = q, ul = {
3609
3609
  message: ({ schemaCode: e }) => (0, Q.str)`must match format "${e}"`,
3610
3610
  params: ({ schemaCode: e }) => (0, Q._)`{format: ${e}}`
3611
3611
  }, fl = {
@@ -3615,10 +3615,10 @@ const Q = K, ul = {
3615
3615
  $data: !0,
3616
3616
  error: ul,
3617
3617
  code(e, t) {
3618
- const { gen: r, data: s, $data: n, schema: a, schemaCode: i, it: d } = e, { opts: u, errSchemaPath: l, schemaEnv: m, self: y } = d;
3618
+ const { gen: r, data: s, $data: o, schema: a, schemaCode: i, it: d } = e, { opts: u, errSchemaPath: l, schemaEnv: m, self: y } = d;
3619
3619
  if (!u.validateFormats)
3620
3620
  return;
3621
- n ? b() : E();
3621
+ o ? b() : E();
3622
3622
  function b() {
3623
3623
  const g = r.scopeValue("formats", {
3624
3624
  ref: y.formats,
@@ -3707,7 +3707,7 @@ var gs;
3707
3707
  e.Tag = "tag", e.Mapping = "mapping";
3708
3708
  })(gs || (Mt.DiscrError = gs = {}));
3709
3709
  Object.defineProperty(Zr, "__esModule", { value: !0 });
3710
- const Ge = K, cr = Mt, ws = re, gl = Ye, wl = N, bl = {
3710
+ const Ge = q, cr = Mt, ws = re, gl = Ye, wl = N, bl = {
3711
3711
  message: ({ params: { discrError: e, tagName: t } }) => e === cr.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`,
3712
3712
  params: ({ params: { discrError: e, tag: t, tagName: r } }) => (0, Ge._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`
3713
3713
  }, El = {
@@ -3716,7 +3716,7 @@ const Ge = K, cr = Mt, ws = re, gl = Ye, wl = N, bl = {
3716
3716
  schemaType: "object",
3717
3717
  error: bl,
3718
3718
  code(e) {
3719
- const { gen: t, data: r, schema: s, parentSchema: n, it: a } = e, { oneOf: i } = n;
3719
+ const { gen: t, data: r, schema: s, parentSchema: o, it: a } = e, { oneOf: i } = o;
3720
3720
  if (!a.opts.discriminator)
3721
3721
  throw new Error("discriminator: requires discriminator option");
3722
3722
  const d = s.propertyName;
@@ -3741,7 +3741,7 @@ const Ge = K, cr = Mt, ws = re, gl = Ye, wl = N, bl = {
3741
3741
  }
3742
3742
  function b() {
3743
3743
  var E;
3744
- const g = {}, v = f(n);
3744
+ const g = {}, v = f(o);
3745
3745
  let h = !0;
3746
3746
  for (let R = 0; R < i.length; R++) {
3747
3747
  let C = i[R];
@@ -4022,10 +4022,10 @@ const Sl = "http://json-schema.org/draft-07/schema#", Pl = "http://json-schema.o
4022
4022
  };
4023
4023
  (function(e, t) {
4024
4024
  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;
4025
- const r = Vs, s = gr, n = Zr, a = Rl, i = ["/properties"], d = "http://json-schema.org/draft-07/schema";
4025
+ const r = Vs, s = gr, o = Zr, a = Rl, i = ["/properties"], d = "http://json-schema.org/draft-07/schema";
4026
4026
  class u extends r.default {
4027
4027
  _addVocabularies() {
4028
- super._addVocabularies(), s.default.forEach((g) => this.addVocabulary(g)), this.opts.discriminator && this.addKeyword(n.default);
4028
+ super._addVocabularies(), s.default.forEach((g) => this.addVocabulary(g)), this.opts.discriminator && this.addKeyword(o.default);
4029
4029
  }
4030
4030
  _addDefaultMetaSchema() {
4031
4031
  if (super._addDefaultMetaSchema(), !this.opts.meta)
@@ -4042,7 +4042,7 @@ const Sl = "http://json-schema.org/draft-07/schema#", Pl = "http://json-schema.o
4042
4042
  Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
4043
4043
  return l.KeywordCxt;
4044
4044
  } });
4045
- var m = K;
4045
+ var m = q;
4046
4046
  Object.defineProperty(t, "_", { enumerable: !0, get: function() {
4047
4047
  return m._;
4048
4048
  } }), Object.defineProperty(t, "str", { enumerable: !0, get: function() {
@@ -4066,8 +4066,8 @@ const Sl = "http://json-schema.org/draft-07/schema#", Pl = "http://json-schema.o
4066
4066
  } });
4067
4067
  })(tr, tr.exports);
4068
4068
  var Ol = tr.exports;
4069
- const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e), yd = (e) => je(Un, e), _d = (e) => je(ft, e), Ml = (e, t = 2e3) => {
4070
- const [r, s] = de(e), n = Fn(null), { t: a } = je(ft, (l) => l.i18next), i = Il((l) => l.getActionStatus), d = Ne(() => e == null ? void 0 : e.task_id, [e == null ? void 0 : e.task_id]), u = Ne(() => e == null ? void 0 : e.actionId, [e == null ? void 0 : e.actionId]);
4069
+ const Tl = /* @__PURE__ */ Oo(Ol), pd = (e) => je(Lo, e), Il = (e) => je(Dr, e), yd = (e) => je(Ao, e), _d = (e) => je(ft, e), Ml = (e, t = 2e3) => {
4070
+ const [r, s] = de(e), o = Fo(null), { t: a } = je(ft, (l) => l.i18next), i = Il((l) => l.getActionStatus), d = Ne(() => e == null ? void 0 : e.task_id, [e == null ? void 0 : e.task_id]), u = Ne(() => e == null ? void 0 : e.actionId, [e == null ? void 0 : e.actionId]);
4071
4071
  return Wt(() => {
4072
4072
  if ((e == null ? void 0 : e.outcome) !== "pending" || !d)
4073
4073
  return;
@@ -4078,10 +4078,10 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e),
4078
4078
  if (l)
4079
4079
  return;
4080
4080
  let b;
4081
- y ? y.outcome === "success" || y.outcome === "failure" ? b = { ...y, done: !0 } : b = y : b = { outcome: "failure", summary: a("error.unexpected"), done: !0 }, s(b), (E = e == null ? void 0 : e.onUpdate) == null || E.call(e, { ...e, ...b }), b.done ? (g = e == null ? void 0 : e.onComplete) == null || g.call(e, { ...e, ...b }) : n.current = setTimeout(m, t);
4081
+ y ? y.outcome === "success" || y.outcome === "failure" ? b = { ...y, done: !0 } : b = y : b = { outcome: "failure", summary: a("error.unexpected"), done: !0 }, s(b), (E = e == null ? void 0 : e.onUpdate) == null || E.call(e, { ...e, ...b }), b.done ? (g = e == null ? void 0 : e.onComplete) == null || g.call(e, { ...e, ...b }) : o.current = setTimeout(m, t);
4082
4082
  };
4083
4083
  return m(), () => {
4084
- l = !0, n.current && clearTimeout(n.current);
4084
+ l = !0, o.current && clearTimeout(o.current);
4085
4085
  };
4086
4086
  }, [u, i, t, e, e == null ? void 0 : e.outcome, a, d]), Wt(() => {
4087
4087
  s(e);
@@ -4091,27 +4091,27 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e),
4091
4091
  );
4092
4092
  }, Vl = ({ result: e, onClose: t, show: r = !1 }) => {
4093
4093
  var i, d;
4094
- const { t: s } = je(ft, (u) => u.i18next), n = Ml(e), a = Ne(
4095
- () => (n == null ? void 0 : n.outcome) === "success" || (n == null ? void 0 : n.outcome) === "failure" || (n == null ? void 0 : n.done),
4096
- [n == null ? void 0 : n.done, n == null ? void 0 : n.outcome]
4094
+ const { t: s } = je(ft, (u) => u.i18next), o = Ml(e), a = Ne(
4095
+ () => (o == null ? void 0 : o.outcome) === "success" || (o == null ? void 0 : o.outcome) === "failure" || (o == null ? void 0 : o.done),
4096
+ [o == null ? void 0 : o.done, o == null ? void 0 : o.outcome]
4097
4097
  );
4098
- return n ? /* @__PURE__ */ M(bs, { open: r, sx: { display: "flex", alignItems: "center", justifyContent: "center" }, onClose: t, children: /* @__PURE__ */ M(Es, { sx: { maxHeight: "80%", maxWidth: "80%", height: "100%", p: 2, minWidth: "750px" }, children: /* @__PURE__ */ M(dt, { children: /* @__PURE__ */ W(se, { spacing: 1, height: "100%", children: [
4098
+ return o ? /* @__PURE__ */ M(bs, { open: r, sx: { display: "flex", alignItems: "center", justifyContent: "center" }, onClose: t, children: /* @__PURE__ */ M(Es, { sx: { maxHeight: "80%", maxWidth: "80%", height: "100%", p: 2, minWidth: "750px" }, children: /* @__PURE__ */ M(dt, { children: /* @__PURE__ */ W(se, { spacing: 1, height: "100%", children: [
4099
4099
  /* @__PURE__ */ W(se, { direction: "row", spacing: 1, alignItems: "center", children: [
4100
- n.action.action_icon && /* @__PURE__ */ M(zn, { height: "1.5rem", icon: n.action.action_icon }),
4101
- /* @__PURE__ */ M(ke, { variant: "h5", children: n.action.name }),
4102
- n.action.supported_types && /* @__PURE__ */ M(ke, { variant: "caption", color: "text.secondary", children: n.action.supported_types.map((u) => u.toUpperCase()).join(", ") }),
4100
+ o.action.action_icon && /* @__PURE__ */ M(zo, { height: "1.5rem", icon: o.action.action_icon }),
4101
+ /* @__PURE__ */ M(ke, { variant: "h5", children: o.action.name }),
4102
+ o.action.supported_types && /* @__PURE__ */ M(ke, { variant: "caption", color: "text.secondary", children: o.action.supported_types.map((u) => u.toUpperCase()).join(", ") }),
4103
4103
  /* @__PURE__ */ M("div", { style: { flex: 1 } }),
4104
- /* @__PURE__ */ M(Gn, { size: "small", classification: n.action.classification })
4104
+ /* @__PURE__ */ M(Go, { size: "small", classification: o.action.classification })
4105
4105
  ] }),
4106
- /* @__PURE__ */ M(ke, { variant: "body1", children: n.action.summary }),
4106
+ /* @__PURE__ */ M(ke, { variant: "body1", children: o.action.summary }),
4107
4107
  /* @__PURE__ */ M(Dt, { flexItem: !0 }),
4108
- a ? /* @__PURE__ */ M(dt, { children: /* @__PURE__ */ M(Jn, { result: n }) }) : /* @__PURE__ */ W(se, { flex: 1, sx: { pt: 2, alignItems: "center" }, spacing: 1, children: [
4109
- n.summary && /* @__PURE__ */ M(ke, { variant: "caption", children: n.summary }),
4108
+ a ? /* @__PURE__ */ M(dt, { children: /* @__PURE__ */ M(Jo, { result: o }) }) : /* @__PURE__ */ W(se, { flex: 1, sx: { pt: 2, alignItems: "center" }, spacing: 1, children: [
4109
+ o.summary && /* @__PURE__ */ M(ke, { variant: "caption", children: o.summary }),
4110
4110
  /* @__PURE__ */ M(
4111
- kn,
4111
+ ko,
4112
4112
  {
4113
- variant: (i = n.output) != null && i.progress ? "determinate" : "indeterminate",
4114
- value: ((d = n.output) == null ? void 0 : d.progress) * 100,
4113
+ variant: (i = o.output) != null && i.progress ? "determinate" : "indeterminate",
4114
+ value: ((d = o.output) == null ? void 0 : d.progress) * 100,
4115
4115
  sx: { maxWidth: 500, width: "100%", borderRadius: (u) => u.shape.borderRadius }
4116
4116
  }
4117
4117
  )
@@ -4119,22 +4119,22 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e),
4119
4119
  /* @__PURE__ */ M("div", { style: { flex: 1 } }),
4120
4120
  /* @__PURE__ */ W(se, { direction: "row", spacing: 1, children: [
4121
4121
  /* @__PURE__ */ M("div", { style: { flex: 1 } }),
4122
- n.link && /* @__PURE__ */ M(nt, { variant: "outlined", component: "a", target: "_blank", href: n.link, children: s("details.open") }),
4123
- /* @__PURE__ */ M(nt, { variant: "outlined", color: "error", onClick: t, children: s("close") })
4122
+ o.link && /* @__PURE__ */ M(ot, { variant: "outlined", component: "a", target: "_blank", href: o.link, children: s("details.open") }),
4123
+ /* @__PURE__ */ M(ot, { variant: "outlined", color: "error", onClick: t, children: s("close") })
4124
4124
  ] })
4125
4125
  ] }) }) }) }) : null;
4126
- }, Fl = Ns(Vl), Al = new Tl({ removeAdditional: !0, coerceTypes: !0, strict: !1 }), Dr = An(null), vd = ({
4126
+ }, Fl = Ns(Vl), Kl = new Tl({ removeAdditional: !0, coerceTypes: !0, strict: !1 }), Dr = Ko(null), vd = ({
4127
4127
  baseURL: e,
4128
4128
  children: t,
4129
4129
  classification: r,
4130
4130
  includeContext: s,
4131
- getToken: n,
4131
+ getToken: o,
4132
4132
  onNetworkCall: a
4133
4133
  }) => {
4134
- const { t: i, i18n: d } = je(ft, (z) => z.i18next), { ready: u } = Bn(), [l, m] = de(null), [y, b] = de({}), [E, g] = de(!1), [v, h] = de(null), [f, $] = de(!1), [P, R] = de({}), C = Ne(() => {
4135
- const z = {}, B = n == null ? void 0 : n();
4134
+ const { t: i, i18n: d } = je(ft, (z) => z.i18next), { ready: u } = Bo(), [l, m] = de(null), [y, b] = de({}), [E, g] = de(!1), [v, h] = de(null), [f, $] = de(!1), [P, R] = de({}), C = Ne(() => {
4135
+ const z = {}, B = o == null ? void 0 : o();
4136
4136
  return B && (z.Authorization = `Bearer ${B}`), a ? a({ baseURL: e, headers: z }) : { baseURL: e, headers: z };
4137
- }, [e, n, a]), L = Oe(async () => {
4137
+ }, [e, o, a]), L = Oe(async () => {
4138
4138
  if (!u)
4139
4139
  return;
4140
4140
  const z = await Ht.actions.get(C);
@@ -4146,17 +4146,17 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e),
4146
4146
  const H = Oe(
4147
4147
  (z, B, ee) => JSON.stringify({ type: z, value: B, classification: ee ?? r }),
4148
4148
  [r]
4149
- ), ne = Oe(
4150
- async (z, B, ee, Ae) => {
4149
+ ), oe = Oe(
4150
+ async (z, B, ee, Ke) => {
4151
4151
  const {
4152
- forceMenu: Ke,
4152
+ forceMenu: qe,
4153
4153
  onComplete: $e,
4154
4154
  onUpdate: he,
4155
4155
  onCancel: k,
4156
4156
  skipMenu: p,
4157
4157
  skipResultModal: S,
4158
4158
  timeout: _,
4159
- includeContext: o,
4159
+ includeContext: n,
4160
4160
  extraContext: c
4161
4161
  } = {
4162
4162
  forceMenu: !1,
@@ -4168,23 +4168,23 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e),
4168
4168
  timeout: null,
4169
4169
  includeContext: s ?? !1,
4170
4170
  extraContext: null,
4171
- ...Ae
4171
+ ...Ke
4172
4172
  };
4173
4173
  if (!Object.keys(P).includes(z))
4174
4174
  throw new Error("Invalid action id");
4175
4175
  const w = B.map(
4176
4176
  (V) => V.type === "telemetry" ? { ...V, value: JSON.stringify(V.value) } : V
4177
- ), j = P[z], O = Al.compile(j.params), U = { selectors: w, ...ee };
4178
- let q = null;
4179
- if (o && (q = {
4180
- timestamp: Hn().toISOString(),
4177
+ ), j = P[z], O = Kl.compile(j.params), A = { selectors: w, ...ee };
4178
+ let U = null;
4179
+ if (n && (U = {
4180
+ timestamp: Ho().toISOString(),
4181
4181
  url: window.location,
4182
4182
  language: (d == null ? void 0 : d.language) ?? "en"
4183
- }), Qn(c) || (q = {
4184
- ...q ?? {},
4183
+ }), Qo(c) || (U = {
4184
+ ...U ?? {},
4185
4185
  ...c
4186
- }), $(!0), !O(U) || Ke) {
4187
- if (p && !Ke)
4186
+ }), $(!0), !O(A) || qe) {
4187
+ if (p && !qe)
4188
4188
  throw console.error(`Form is not valid (${O.errors.length} errors)`), new Error("Form is not completed");
4189
4189
  (l == null ? void 0 : l.id) === z && (console.error(`Form is not valid (${O.errors.length} errors)`), _t(
4190
4190
  new CustomEvent(yt, {
@@ -4197,9 +4197,9 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e),
4197
4197
  id: z,
4198
4198
  action: j,
4199
4199
  selectors: B,
4200
- params: U ?? {},
4200
+ params: A ?? {},
4201
4201
  skipResultModal: S,
4202
- context: q,
4202
+ context: U,
4203
4203
  onComplete: $e,
4204
4204
  onUpdate: he,
4205
4205
  onCancel: k,
@@ -4211,19 +4211,19 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e),
4211
4211
  const V = await Ht.actions.post(
4212
4212
  z,
4213
4213
  w,
4214
- U ?? {},
4215
- q,
4214
+ A ?? {},
4215
+ U,
4216
4216
  { timeout: _ },
4217
4217
  C
4218
- ), pe = { ...V, actionId: z, action: j, params: U };
4219
- he == null || he(pe), V.outcome !== "pending" && ($e == null || $e(pe)), b((qe) => {
4218
+ ), pe = { ...V, actionId: z, action: j, params: A };
4219
+ he == null || he(pe), V.outcome !== "pending" && ($e == null || $e(pe)), b((Ue) => {
4220
4220
  const We = B.map((ge) => H(ge.type, ge.value, ge.classification));
4221
4221
  return {
4222
- ...qe,
4222
+ ...Ue,
4223
4223
  ...We.reduce(
4224
4224
  (ge, ze) => ({
4225
4225
  ...ge,
4226
- [ze]: [...qe[ze] ?? [], pe]
4226
+ [ze]: [...Ue[ze] ?? [], pe]
4227
4227
  }),
4228
4228
  {}
4229
4229
  )
@@ -4233,7 +4233,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e),
4233
4233
  detail: {
4234
4234
  message: /* @__PURE__ */ W(se, { direction: "row", alignItems: "center", spacing: 0.5, width: "100%", children: [
4235
4235
  /* @__PURE__ */ M(ke, { children: V.summary }),
4236
- V.link && /* @__PURE__ */ M(Nn, { component: "a", href: V.link, size: "small", target: "_blank", children: /* @__PURE__ */ M(Ss, { icon: "ic:baseline-open-in-new", fontSize: "small" }) })
4236
+ V.link && /* @__PURE__ */ M(No, { component: "a", href: V.link, size: "small", target: "_blank", children: /* @__PURE__ */ M(Ss, { icon: "ic:baseline-open-in-new", fontSize: "small" }) })
4237
4237
  ] }),
4238
4238
  timeout: V.link ? null : 5e3,
4239
4239
  level: V.outcome === "success" ? "success" : V.outcome === "pending" ? "info" : "error",
@@ -4289,19 +4289,19 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e),
4289
4289
  ), ie = Ne(
4290
4290
  () => ({
4291
4291
  availableActions: P,
4292
- executeAction: ne,
4292
+ executeAction: oe,
4293
4293
  cancelAction: me,
4294
4294
  getActionStatus: ae,
4295
4295
  getActionResults: Ee,
4296
4296
  loading: f,
4297
4297
  refreshActions: L
4298
4298
  }),
4299
- [P, me, ne, Ee, ae, f, L]
4299
+ [P, me, oe, Ee, ae, f, L]
4300
4300
  );
4301
4301
  return /* @__PURE__ */ W(Dr.Provider, { value: ie, children: [
4302
4302
  t,
4303
4303
  /* @__PURE__ */ W(dt, { children: [
4304
- l && /* @__PURE__ */ M(Ul, { runningActionData: l }),
4304
+ l && /* @__PURE__ */ M(Al, { runningActionData: l }),
4305
4305
  /* @__PURE__ */ M(
4306
4306
  Fl,
4307
4307
  {
@@ -4312,12 +4312,12 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e),
4312
4312
  )
4313
4313
  ] })
4314
4314
  ] });
4315
- }, Kl = () => Kn(Dr), ql = En.map((e) => ({
4315
+ }, ql = () => qo(Dr), Ul = Eo.map((e) => ({
4316
4316
  ...e,
4317
4317
  renderer: ({ ...t }) => /* @__PURE__ */ M(dt, { children: /* @__PURE__ */ M(e.renderer, { ...t }) })
4318
4318
  })), zl = ({ runningActionData: e }) => {
4319
- const { executeAction: t, cancelAction: r } = Kl(), { t: s } = je(ft, (v) => v.i18next), [n, a] = de(!1), [i, d] = de(null), [u, l] = de(e == null ? void 0 : e.params), [m, y] = de(!1), b = Ne(
4320
- () => e != null && e.action ? { ...qn(e.action.params), ...e.action.extra_schema ?? {} } : null,
4319
+ const { executeAction: t, cancelAction: r } = ql(), { t: s } = je(ft, (v) => v.i18next), [o, a] = de(!1), [i, d] = de(null), [u, l] = de(e == null ? void 0 : e.params), [m, y] = de(!1), b = Ne(
4320
+ () => e != null && e.action ? { ...Uo(e.action.params), ...e.action.extra_schema ?? {} } : null,
4321
4321
  [e == null ? void 0 : e.action]
4322
4322
  ), E = Ne(
4323
4323
  () => ({
@@ -4341,7 +4341,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e),
4341
4341
  try {
4342
4342
  a(!0);
4343
4343
  const v = {};
4344
- e != null && e.onComplete && (v.onComplete = e == null ? void 0 : e.onComplete), e != null && e.timeout && (v.timeout = e == null ? void 0 : e.timeout), e != null && e.skipResultModal && (v.skipResultModal = e == null ? void 0 : e.skipResultModal), await t(e == null ? void 0 : e.id, e == null ? void 0 : e.selectors, u, v);
4344
+ e != null && e.onComplete && (v.onComplete = e == null ? void 0 : e.onComplete), e != null && e.onUpdate && (v.onUpdate = e == null ? void 0 : e.onUpdate), e != null && e.timeout && (v.timeout = e == null ? void 0 : e.timeout), e != null && e.skipResultModal && (v.skipResultModal = e == null ? void 0 : e.skipResultModal), await t(e == null ? void 0 : e.id, e == null ? void 0 : e.selectors, u, v);
4345
4345
  } catch (v) {
4346
4346
  console.error(v);
4347
4347
  } finally {
@@ -4379,13 +4379,13 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e),
4379
4379
  /* @__PURE__ */ W(ke, { variant: "h5", children: [
4380
4380
  s("actions.executing"),
4381
4381
  " ",
4382
- e == null ? void 0 : e.action.id.replace(/_/g, " ").split(" ").map(wo).join(" ")
4382
+ e == null ? void 0 : e.action.id.replace(/_/g, " ").split(" ").map(wn).join(" ")
4383
4383
  ] }),
4384
4384
  (e == null ? void 0 : e.action.summary) && /* @__PURE__ */ M(ke, { variant: "body1", color: "text.secondary", sx: { pb: 1.5 }, children: e == null ? void 0 : e.action.summary })
4385
4385
  ] }),
4386
4386
  /* @__PURE__ */ M(et, { flex: 1 }),
4387
4387
  /* @__PURE__ */ M(et, { alignContent: "end", children: /* @__PURE__ */ M(
4388
- nt,
4388
+ ot,
4389
4389
  {
4390
4390
  variant: "outlined",
4391
4391
  onClick: () => y((v) => !v),
@@ -4409,40 +4409,40 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e),
4409
4409
  /* @__PURE__ */ W(se, { flexGrow: 1, direction: "row", spacing: 1, children: [
4410
4410
  /* @__PURE__ */ W(se, { direction: "column", flexGrow: 1, children: [
4411
4411
  /* @__PURE__ */ M(dt, { children: /* @__PURE__ */ M(
4412
- Pn,
4412
+ Po,
4413
4413
  {
4414
4414
  schema: b,
4415
4415
  uischema: E,
4416
- renderers: ql,
4417
- cells: Sn,
4416
+ renderers: Ul,
4417
+ cells: So,
4418
4418
  data: u,
4419
4419
  onChange: ({ data: v, errors: h }) => {
4420
- Vn(v, u) || l(v), d(h);
4420
+ Vo(v, u) || l(v), d(h);
4421
4421
  },
4422
4422
  config: {}
4423
4423
  }
4424
4424
  ) }),
4425
4425
  /* @__PURE__ */ W(se, { direction: "row", spacing: 1, pb: 1, children: [
4426
4426
  /* @__PURE__ */ M("div", { style: { flex: 1 } }),
4427
- /* @__PURE__ */ M(nt, { color: "error", variant: "outlined", onClick: r, children: s("cancel") }),
4427
+ /* @__PURE__ */ M(ot, { color: "error", variant: "outlined", onClick: r, children: s("cancel") }),
4428
4428
  /* @__PURE__ */ M(
4429
- nt,
4429
+ ot,
4430
4430
  {
4431
4431
  color: "success",
4432
4432
  variant: "outlined",
4433
- disabled: n || (i == null ? void 0 : i.length) > 0,
4433
+ disabled: o || (i == null ? void 0 : i.length) > 0,
4434
4434
  onClick: g,
4435
- endIcon: n && /* @__PURE__ */ M(Cn, { color: "inherit", size: 18 }),
4435
+ endIcon: o && /* @__PURE__ */ M(Co, { color: "inherit", size: 18 }),
4436
4436
  children: s("actions.execute")
4437
4437
  }
4438
4438
  )
4439
4439
  ] })
4440
4440
  ] }),
4441
- /* @__PURE__ */ M(jn, { orientation: "horizontal", in: m, unmountOnExit: !0, mountOnEnter: !0, children: /* @__PURE__ */ W(se, { direction: "row", height: "100%", spacing: 1, children: [
4441
+ /* @__PURE__ */ M(jo, { orientation: "horizontal", in: m, unmountOnExit: !0, mountOnEnter: !0, children: /* @__PURE__ */ W(se, { direction: "row", height: "100%", spacing: 1, children: [
4442
4442
  /* @__PURE__ */ M(Dt, { orientation: "vertical" }),
4443
4443
  /* @__PURE__ */ W(se, { children: [
4444
4444
  /* @__PURE__ */ M(ke, { variant: "h5", children: s("action.data") }),
4445
- /* @__PURE__ */ M(et, { width: 600, height: "100%", children: /* @__PURE__ */ M(Rn, { data: u, slotProps: { stack: { height: "100%" }, json: { name: !1 } } }) })
4445
+ /* @__PURE__ */ M(et, { width: 600, height: "100%", children: /* @__PURE__ */ M(Ro, { data: u, slotProps: { stack: { height: "100%" }, json: { name: !1 } } }) })
4446
4446
  ] })
4447
4447
  ] }) })
4448
4448
  ] })
@@ -4454,17 +4454,17 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => je(Ln, e), Il = (e) => je(Dr, e),
4454
4454
  } catch (v) {
4455
4455
  return console.warn(v), null;
4456
4456
  }
4457
- }, Ul = Ns(zl);
4457
+ }, Al = Ns(zl);
4458
4458
  export {
4459
- Ul as A,
4459
+ Al as A,
4460
4460
  vd as C,
4461
4461
  Fl as R,
4462
4462
  Il as a,
4463
4463
  yd as b,
4464
4464
  pd as c,
4465
4465
  _d as d,
4466
- wo as e,
4466
+ wn as e,
4467
4467
  Ml as f,
4468
4468
  Dr as g,
4469
- Kl as u
4469
+ ql as u
4470
4470
  };