@tempots/beatui 0.40.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +11 -11
  2. package/dist/{2019-nWH_nAwT.cjs → 2019-BFDr925O.cjs} +1 -1
  3. package/dist/{2019-sCKLAY8c.js → 2019-DnG5Y5sm.js} +2 -2
  4. package/dist/{2020-B4xCW_nu.js → 2020-D0-tZTo7.js} +2 -2
  5. package/dist/{2020-D7RWX09D.cjs → 2020-gUs7l1CJ.cjs} +1 -1
  6. package/dist/{ar-D_4BfIJO.cjs → ar-BLgxAefV.cjs} +1 -1
  7. package/dist/{ar-i2uHmy8P.js → ar-DpQo8C31.js} +1 -1
  8. package/dist/auth/index.cjs.js +1 -1
  9. package/dist/auth/index.es.js +4 -4
  10. package/dist/beatui.css +35 -22
  11. package/dist/beatui.tailwind.css +35 -22
  12. package/dist/{de-C0PZz9sE.cjs → de-Bv-qs--J.cjs} +1 -1
  13. package/dist/{de-CeLwmVZz.js → de-D1MQ4wen.js} +1 -1
  14. package/dist/{es-C8qT1ins.cjs → es-3r8Ko5Dn.cjs} +1 -1
  15. package/dist/{es-DxOgARww.js → es-DwPjonS7.js} +1 -1
  16. package/dist/{fa-BFV9MxMX.cjs → fa-Qw6uVZeX.cjs} +1 -1
  17. package/dist/{fa-B9pEff8A.js → fa-fxf_lWjh.js} +1 -1
  18. package/dist/{fr-Caeevx56.js → fr-BDDsMHRZ.js} +1 -1
  19. package/dist/{fr-BBx5IJ7G.cjs → fr-pVhG9qik.cjs} +1 -1
  20. package/dist/{he-DeN-WW3u.js → he-B4deK_wE.js} +1 -1
  21. package/dist/{he-CMOvd4Dr.cjs → he-D-fvzfe1.cjs} +1 -1
  22. package/dist/{hi-Dey2HxiD.js → hi-CxQT8nRD.js} +1 -1
  23. package/dist/{hi-IOU_PzvH.cjs → hi-DKgxHzmH.cjs} +1 -1
  24. package/dist/{index-HqWBd-jW.js → index-Acyxme63.js} +3 -3
  25. package/dist/{index-B0ff5lT-.cjs → index-BZ2AX5sk.cjs} +2 -2
  26. package/dist/{index-DJqo6Guq.js → index-BwEJlbG2.js} +1 -1
  27. package/dist/{index-BTZqW3-b.js → index-CWq36UAJ.js} +710 -710
  28. package/dist/{index-IQ3lRaL0.js → index-Clw0AwwJ.js} +1 -1
  29. package/dist/{index-C2VAPX2b.cjs → index-DRDJFYRb.cjs} +1 -1
  30. package/dist/{index-D8fg48Fv.cjs → index-Lj0QS2po.cjs} +1 -1
  31. package/dist/{index-Dtka01mK.cjs → index-nVVPqgLq.cjs} +1 -1
  32. package/dist/index.cjs.js +4 -4
  33. package/dist/index.es.js +1862 -1865
  34. package/dist/{it-DghnQdZa.js → it-6QS5PWzQ.js} +1 -1
  35. package/dist/{it-uQF0jkDT.cjs → it-Ck0r9TO3.cjs} +1 -1
  36. package/dist/{ja-Kb7rxmFg.js → ja-D2VvVGEN.js} +1 -1
  37. package/dist/{ja-BJD6uPbl.cjs → ja-D6b9suYB.cjs} +1 -1
  38. package/dist/json-schema/index.cjs.js +1 -1
  39. package/dist/json-schema/index.es.js +1 -1
  40. package/dist/{ko-53o5WJ-v.js → ko-CP_WopWz.js} +1 -1
  41. package/dist/{ko-B7bLdRnp.cjs → ko-CzvM2Bjv.cjs} +1 -1
  42. package/dist/{modal-BRUgTJG9.cjs → modal-BmSRMdY9.cjs} +1 -1
  43. package/dist/{modal-_2B8vIo0.js → modal-DMc-R2VT.js} +2 -2
  44. package/dist/{nl-DvUVT7xd.js → nl-DZ4dFolZ.js} +1 -1
  45. package/dist/{nl-CJE0fC8g.cjs → nl-_9vJc8JD.cjs} +1 -1
  46. package/dist/{notice-C4n5jXi6.js → notice-B5Yn_3Ay.js} +89 -89
  47. package/dist/{notice-CncwkUTy.cjs → notice-D3P0lewM.cjs} +2 -2
  48. package/dist/{pl-C3oYeTwf.js → pl-BE81iFSF.js} +1 -1
  49. package/dist/{pl-DUaY5slY.cjs → pl-DKcVCojx.cjs} +1 -1
  50. package/dist/prosemirror/index.cjs.js +1 -1
  51. package/dist/prosemirror/index.es.js +1 -1
  52. package/dist/{pt-BJGeScun.js → pt-BcCdXUA2.js} +1 -1
  53. package/dist/{pt-BAqNKCuy.cjs → pt-DNVS1_MF.cjs} +1 -1
  54. package/dist/{ru-2irv1YXp.js → ru-Bo_jc3s1.js} +1 -1
  55. package/dist/{ru-CAlgJm3K.cjs → ru-DTn9Rssv.cjs} +1 -1
  56. package/dist/{toolbar-CVDXVnje.js → toolbar-DhD5GmMa.js} +1 -1
  57. package/dist/{toolbar-B7HrL0vD.cjs → toolbar-jPGzdJGi.cjs} +1 -1
  58. package/dist/{tr-DMiXAhok.cjs → tr-BhTJYHQ3.cjs} +1 -1
  59. package/dist/{tr-CkHLE5u7.js → tr-CBw3FlOg.js} +1 -1
  60. package/dist/{translations-Q5C5LyIi.js → translations-B0HuWYIz.js} +1 -1
  61. package/dist/{translations-DRNj0YIi.cjs → translations-B7_3phoA.cjs} +1 -1
  62. package/dist/translations-C21osktO.cjs +1 -0
  63. package/dist/{translations-DEEflRUY.js → translations-D-fMB_IO.js} +195 -167
  64. package/dist/types/components/form/controller/color-controller.d.ts +1 -1
  65. package/dist/types/components/form/input/color-input.d.ts +2 -5
  66. package/dist/types/components/form/input/color-swatch-input.d.ts +9 -0
  67. package/dist/types/components/form/input/index.d.ts +1 -0
  68. package/dist/types/components/form/input/input-container.d.ts +7 -0
  69. package/dist/types/utils/{color-validation.d.ts → color.d.ts} +13 -0
  70. package/dist/types/utils/index.d.ts +1 -1
  71. package/dist/{ur-BjiNs3SL.cjs → ur-BjuXyU8Z.cjs} +1 -1
  72. package/dist/{ur-bxBR_9Z-.js → ur-BsXnPgxd.js} +1 -1
  73. package/dist/utils-BOEQMy82.js +2512 -0
  74. package/dist/utils-DH-SYrQg.cjs +1 -0
  75. package/dist/{vi-CByOZvV2.cjs → vi-CvsTHMkK.cjs} +1 -1
  76. package/dist/{vi-CKknZqol.js → vi-D1rLo6MX.js} +1 -1
  77. package/dist/{zh-CmUgcP9o.js → zh-BoLsjdfz.js} +1 -1
  78. package/dist/{zh-C0QOebEA.cjs → zh-zh1FJ4Ud.cjs} +1 -1
  79. package/package.json +2 -2
  80. package/dist/translations-Dw1oO6Dh.cjs +0 -1
  81. package/dist/utils-BCbc19N0.js +0 -2427
  82. package/dist/utils-BJZipnfW.cjs +0 -1
@@ -1,7 +1,7 @@
1
- import { a as Pe, S as de, I as Ye, c as Z, M as Zt, P as Ys, E as Zs, b as qr, N as ps, L as Fe, x as Qs, C as hs, i as ea, A as ta, l as ra } from "./notice-C4n5jXi6.js";
2
- import { _ as wr, X as na, S as sa, N as aa, a as ms, g as ia, t as le, u as De, s as Qt, z as oa, C as ua, W as ca, I as la, K as fa, r as da, p as pa, o as ha, q as ma, c as Ke, T as ya, y as ga, w as mr, v as va, M as Ze, H as _a, D as ba, A as $a, R as wa, x as Sa, m as Pa, G as Ea, j as ys, O as Oa, L as ja, b as ka } from "./utils-BCbc19N0.js";
3
- import { attr as F, Value as ne, Fragment as we, WithElement as gs, Empty as vs, html as H, When as Ge, OnDispose as Ee, computedOf as ie, prop as Re, Use as Sr, style as _s, Ensure as bs, aria as Ra, on as xe, MapSignal as Kt, Async as Na } from "@tempots/dom";
4
- import { T as Ia, a as Pr, I as $s, B as Aa } from "./translations-DEEflRUY.js";
1
+ import { a as Pe, S as de, I as Ye, c as Z, M as Zt, P as Ys, E as Zs, b as qr, N as hs, L as Fe, x as Qs, C as ps, i as ea, A as ta, l as ra } from "./notice-B5Yn_3Ay.js";
2
+ import { ah as wr, ai as na, S as sa, N as aa, a as ms, j as ia, t as le, x as De, w as Qt, H as oa, C as ua, W as ca, O as la, Q as fa, v as da, s as ha, r as pa, u as ma, g as Ke, T as ya, D as ga, z as mr, y as va, M as Ze, K as _a, J as ba, I as $a, R as wa, A as Sa, q as Pa, G as Ea, m as ys, V as Oa, L as ja, f as ka } from "./utils-BOEQMy82.js";
3
+ import { attr as F, Value as ne, Fragment as we, WithElement as gs, Empty as vs, html as J, When as Ge, OnDispose as Ee, computedOf as ie, prop as Re, Use as Sr, style as _s, Ensure as bs, aria as Ra, on as xe, MapSignal as Kt, Async as Na } from "@tempots/dom";
4
+ import { T as Ia, a as Pr, I as $s, B as Aa } from "./translations-D-fMB_IO.js";
5
5
  import { f as Ca } from "./colors-WfmhQ5e1.js";
6
6
  function Ta(e, t) {
7
7
  for (var r = 0; r < t.length; r++) {
@@ -33,9 +33,9 @@ function qa() {
33
33
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
34
34
  date: t(s, o),
35
35
  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
36
- time: t(p(!0), y),
36
+ time: t(h(!0), y),
37
37
  "date-time": t($(!0), S),
38
- "iso-time": t(p(), d),
38
+ "iso-time": t(h(), d),
39
39
  "iso-date-time": t($(), w),
40
40
  // duration: https://tools.ietf.org/html/rfc3339#appendix-A
41
41
  duration: /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,
@@ -106,7 +106,7 @@ function qa() {
106
106
  return A > V ? 1 : A < V ? -1 : 0;
107
107
  }
108
108
  const u = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
109
- function p(A) {
109
+ function h(A) {
110
110
  return function(L) {
111
111
  const B = u.exec(L);
112
112
  if (!B)
@@ -136,7 +136,7 @@ function qa() {
136
136
  }
137
137
  const v = /t|\s/i;
138
138
  function $(A) {
139
- const V = p(A);
139
+ const V = h(A);
140
140
  return function(B) {
141
141
  const Q = B.split(v);
142
142
  return Q.length === 2 && s(Q[0]) && V(Q[1]);
@@ -247,14 +247,14 @@ function Dt() {
247
247
  let m = 0;
248
248
  for (; m < i.length; )
249
249
  c.push(s), u(c, i[m]), c.push(s, S(l[++m]));
250
- return p(c), new n(c);
250
+ return h(c), new n(c);
251
251
  }
252
252
  e.str = o;
253
253
  function u(l, i) {
254
254
  i instanceof n ? l.push(...i._items) : i instanceof r ? l.push(i) : l.push(v(i));
255
255
  }
256
256
  e.addCodeArg = u;
257
- function p(l) {
257
+ function h(l) {
258
258
  let i = 1;
259
259
  for (; i < l.length - 1; ) {
260
260
  if (l[i] === s) {
@@ -320,8 +320,8 @@ function zr() {
320
320
  }
321
321
  }
322
322
  var n;
323
- (function(p) {
324
- p[p.Started = 0] = "Started", p[p.Completed = 1] = "Completed";
323
+ (function(h) {
324
+ h[h.Started = 0] = "Started", h[h.Completed = 1] = "Completed";
325
325
  })(n || (e.UsedValueState = n = {})), e.varKinds = {
326
326
  const: new t.Name("const"),
327
327
  let: new t.Name("let"),
@@ -480,126 +480,126 @@ function G() {
480
480
  optimizeNodes() {
481
481
  return this;
482
482
  }
483
- optimizeNames(h, P) {
483
+ optimizeNames(p, P) {
484
484
  return this;
485
485
  }
486
486
  }
487
487
  class o extends s {
488
- constructor(h, P, R) {
489
- super(), this.varKind = h, this.name = P, this.rhs = R;
488
+ constructor(p, P, R) {
489
+ super(), this.varKind = p, this.name = P, this.rhs = R;
490
490
  }
491
- render({ es5: h, _n: P }) {
492
- const R = h ? r.varKinds.var : this.varKind, U = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
491
+ render({ es5: p, _n: P }) {
492
+ const R = p ? r.varKinds.var : this.varKind, U = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
493
493
  return `${R} ${this.name}${U};` + P;
494
494
  }
495
- optimizeNames(h, P) {
496
- if (h[this.name.str])
497
- return this.rhs && (this.rhs = B(this.rhs, h, P)), this;
495
+ optimizeNames(p, P) {
496
+ if (p[this.name.str])
497
+ return this.rhs && (this.rhs = B(this.rhs, p, P)), this;
498
498
  }
499
499
  get names() {
500
500
  return this.rhs instanceof t._CodeOrName ? this.rhs.names : {};
501
501
  }
502
502
  }
503
503
  class u extends s {
504
- constructor(h, P, R) {
505
- super(), this.lhs = h, this.rhs = P, this.sideEffects = R;
504
+ constructor(p, P, R) {
505
+ super(), this.lhs = p, this.rhs = P, this.sideEffects = R;
506
506
  }
507
- render({ _n: h }) {
508
- return `${this.lhs} = ${this.rhs};` + h;
507
+ render({ _n: p }) {
508
+ return `${this.lhs} = ${this.rhs};` + p;
509
509
  }
510
- optimizeNames(h, P) {
511
- if (!(this.lhs instanceof t.Name && !h[this.lhs.str] && !this.sideEffects))
512
- return this.rhs = B(this.rhs, h, P), this;
510
+ optimizeNames(p, P) {
511
+ if (!(this.lhs instanceof t.Name && !p[this.lhs.str] && !this.sideEffects))
512
+ return this.rhs = B(this.rhs, p, P), this;
513
513
  }
514
514
  get names() {
515
- const h = this.lhs instanceof t.Name ? {} : { ...this.lhs.names };
516
- return L(h, this.rhs);
515
+ const p = this.lhs instanceof t.Name ? {} : { ...this.lhs.names };
516
+ return L(p, this.rhs);
517
517
  }
518
518
  }
519
- class p extends u {
520
- constructor(h, P, R, U) {
521
- super(h, R, U), this.op = P;
519
+ class h extends u {
520
+ constructor(p, P, R, U) {
521
+ super(p, R, U), this.op = P;
522
522
  }
523
- render({ _n: h }) {
524
- return `${this.lhs} ${this.op}= ${this.rhs};` + h;
523
+ render({ _n: p }) {
524
+ return `${this.lhs} ${this.op}= ${this.rhs};` + p;
525
525
  }
526
526
  }
527
527
  class y extends s {
528
- constructor(h) {
529
- super(), this.label = h, this.names = {};
528
+ constructor(p) {
529
+ super(), this.label = p, this.names = {};
530
530
  }
531
- render({ _n: h }) {
532
- return `${this.label}:` + h;
531
+ render({ _n: p }) {
532
+ return `${this.label}:` + p;
533
533
  }
534
534
  }
535
535
  class d extends s {
536
- constructor(h) {
537
- super(), this.label = h, this.names = {};
536
+ constructor(p) {
537
+ super(), this.label = p, this.names = {};
538
538
  }
539
- render({ _n: h }) {
540
- return `break${this.label ? ` ${this.label}` : ""};` + h;
539
+ render({ _n: p }) {
540
+ return `break${this.label ? ` ${this.label}` : ""};` + p;
541
541
  }
542
542
  }
543
543
  class v extends s {
544
- constructor(h) {
545
- super(), this.error = h;
544
+ constructor(p) {
545
+ super(), this.error = p;
546
546
  }
547
- render({ _n: h }) {
548
- return `throw ${this.error};` + h;
547
+ render({ _n: p }) {
548
+ return `throw ${this.error};` + p;
549
549
  }
550
550
  get names() {
551
551
  return this.error.names;
552
552
  }
553
553
  }
554
554
  class $ extends s {
555
- constructor(h) {
556
- super(), this.code = h;
555
+ constructor(p) {
556
+ super(), this.code = p;
557
557
  }
558
- render({ _n: h }) {
559
- return `${this.code};` + h;
558
+ render({ _n: p }) {
559
+ return `${this.code};` + p;
560
560
  }
561
561
  optimizeNodes() {
562
562
  return `${this.code}` ? this : void 0;
563
563
  }
564
- optimizeNames(h, P) {
565
- return this.code = B(this.code, h, P), this;
564
+ optimizeNames(p, P) {
565
+ return this.code = B(this.code, p, P), this;
566
566
  }
567
567
  get names() {
568
568
  return this.code instanceof t._CodeOrName ? this.code.names : {};
569
569
  }
570
570
  }
571
571
  class S extends s {
572
- constructor(h = []) {
573
- super(), this.nodes = h;
572
+ constructor(p = []) {
573
+ super(), this.nodes = p;
574
574
  }
575
- render(h) {
576
- return this.nodes.reduce((P, R) => P + R.render(h), "");
575
+ render(p) {
576
+ return this.nodes.reduce((P, R) => P + R.render(p), "");
577
577
  }
578
578
  optimizeNodes() {
579
- const { nodes: h } = this;
580
- let P = h.length;
579
+ const { nodes: p } = this;
580
+ let P = p.length;
581
581
  for (; P--; ) {
582
- const R = h[P].optimizeNodes();
583
- Array.isArray(R) ? h.splice(P, 1, ...R) : R ? h[P] = R : h.splice(P, 1);
582
+ const R = p[P].optimizeNodes();
583
+ Array.isArray(R) ? p.splice(P, 1, ...R) : R ? p[P] = R : p.splice(P, 1);
584
584
  }
585
- return h.length > 0 ? this : void 0;
585
+ return p.length > 0 ? this : void 0;
586
586
  }
587
- optimizeNames(h, P) {
587
+ optimizeNames(p, P) {
588
588
  const { nodes: R } = this;
589
589
  let U = R.length;
590
590
  for (; U--; ) {
591
591
  const K = R[U];
592
- K.optimizeNames(h, P) || (Q(h, K.names), R.splice(U, 1));
592
+ K.optimizeNames(p, P) || (Q(p, K.names), R.splice(U, 1));
593
593
  }
594
594
  return R.length > 0 ? this : void 0;
595
595
  }
596
596
  get names() {
597
- return this.nodes.reduce((h, P) => V(h, P.names), {});
597
+ return this.nodes.reduce((p, P) => V(p, P.names), {});
598
598
  }
599
599
  }
600
600
  class w extends S {
601
- render(h) {
602
- return "{" + h._n + super.render(h) + "}" + h._n;
601
+ render(p) {
602
+ return "{" + p._n + super.render(p) + "}" + p._n;
603
603
  }
604
604
  }
605
605
  class g extends S {
@@ -608,17 +608,17 @@ function G() {
608
608
  }
609
609
  f.kind = "else";
610
610
  class l extends w {
611
- constructor(h, P) {
612
- super(P), this.condition = h;
611
+ constructor(p, P) {
612
+ super(P), this.condition = p;
613
613
  }
614
- render(h) {
615
- let P = `if(${this.condition})` + super.render(h);
616
- return this.else && (P += "else " + this.else.render(h)), P;
614
+ render(p) {
615
+ let P = `if(${this.condition})` + super.render(p);
616
+ return this.else && (P += "else " + this.else.render(p)), P;
617
617
  }
618
618
  optimizeNodes() {
619
619
  super.optimizeNodes();
620
- const h = this.condition;
621
- if (h === !0)
620
+ const p = this.condition;
621
+ if (p === !0)
622
622
  return this.nodes;
623
623
  let P = this.else;
624
624
  if (P) {
@@ -626,18 +626,18 @@ function G() {
626
626
  P = this.else = Array.isArray(R) ? new f(R) : R;
627
627
  }
628
628
  if (P)
629
- return h === !1 ? P instanceof l ? P : P.nodes : this.nodes.length ? this : new l(oe(h), P instanceof l ? [P] : P.nodes);
630
- if (!(h === !1 || !this.nodes.length))
629
+ return p === !1 ? P instanceof l ? P : P.nodes : this.nodes.length ? this : new l(oe(p), P instanceof l ? [P] : P.nodes);
630
+ if (!(p === !1 || !this.nodes.length))
631
631
  return this;
632
632
  }
633
- optimizeNames(h, P) {
633
+ optimizeNames(p, P) {
634
634
  var R;
635
- if (this.else = (R = this.else) === null || R === void 0 ? void 0 : R.optimizeNames(h, P), !!(super.optimizeNames(h, P) || this.else))
636
- return this.condition = B(this.condition, h, P), this;
635
+ if (this.else = (R = this.else) === null || R === void 0 ? void 0 : R.optimizeNames(p, P), !!(super.optimizeNames(p, P) || this.else))
636
+ return this.condition = B(this.condition, p, P), this;
637
637
  }
638
638
  get names() {
639
- const h = super.names;
640
- return L(h, this.condition), this.else && V(h, this.else.names), h;
639
+ const p = super.names;
640
+ return L(p, this.condition), this.else && V(p, this.else.names), p;
641
641
  }
642
642
  }
643
643
  l.kind = "if";
@@ -645,166 +645,166 @@ function G() {
645
645
  }
646
646
  i.kind = "for";
647
647
  class c extends i {
648
- constructor(h) {
649
- super(), this.iteration = h;
648
+ constructor(p) {
649
+ super(), this.iteration = p;
650
650
  }
651
- render(h) {
652
- return `for(${this.iteration})` + super.render(h);
651
+ render(p) {
652
+ return `for(${this.iteration})` + super.render(p);
653
653
  }
654
- optimizeNames(h, P) {
655
- if (super.optimizeNames(h, P))
656
- return this.iteration = B(this.iteration, h, P), this;
654
+ optimizeNames(p, P) {
655
+ if (super.optimizeNames(p, P))
656
+ return this.iteration = B(this.iteration, p, P), this;
657
657
  }
658
658
  get names() {
659
659
  return V(super.names, this.iteration.names);
660
660
  }
661
661
  }
662
662
  class m extends i {
663
- constructor(h, P, R, U) {
664
- super(), this.varKind = h, this.name = P, this.from = R, this.to = U;
663
+ constructor(p, P, R, U) {
664
+ super(), this.varKind = p, this.name = P, this.from = R, this.to = U;
665
665
  }
666
- render(h) {
667
- const P = h.es5 ? r.varKinds.var : this.varKind, { name: R, from: U, to: K } = this;
668
- return `for(${P} ${R}=${U}; ${R}<${K}; ${R}++)` + super.render(h);
666
+ render(p) {
667
+ const P = p.es5 ? r.varKinds.var : this.varKind, { name: R, from: U, to: K } = this;
668
+ return `for(${P} ${R}=${U}; ${R}<${K}; ${R}++)` + super.render(p);
669
669
  }
670
670
  get names() {
671
- const h = L(super.names, this.from);
672
- return L(h, this.to);
671
+ const p = L(super.names, this.from);
672
+ return L(p, this.to);
673
673
  }
674
674
  }
675
675
  class _ extends i {
676
- constructor(h, P, R, U) {
677
- super(), this.loop = h, this.varKind = P, this.name = R, this.iterable = U;
676
+ constructor(p, P, R, U) {
677
+ super(), this.loop = p, this.varKind = P, this.name = R, this.iterable = U;
678
678
  }
679
- render(h) {
680
- return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(h);
679
+ render(p) {
680
+ return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(p);
681
681
  }
682
- optimizeNames(h, P) {
683
- if (super.optimizeNames(h, P))
684
- return this.iterable = B(this.iterable, h, P), this;
682
+ optimizeNames(p, P) {
683
+ if (super.optimizeNames(p, P))
684
+ return this.iterable = B(this.iterable, p, P), this;
685
685
  }
686
686
  get names() {
687
687
  return V(super.names, this.iterable.names);
688
688
  }
689
689
  }
690
690
  class b extends w {
691
- constructor(h, P, R) {
692
- super(), this.name = h, this.args = P, this.async = R;
691
+ constructor(p, P, R) {
692
+ super(), this.name = p, this.args = P, this.async = R;
693
693
  }
694
- render(h) {
695
- return `${this.async ? "async " : ""}function ${this.name}(${this.args})` + super.render(h);
694
+ render(p) {
695
+ return `${this.async ? "async " : ""}function ${this.name}(${this.args})` + super.render(p);
696
696
  }
697
697
  }
698
698
  b.kind = "func";
699
699
  class E extends S {
700
- render(h) {
701
- return "return " + super.render(h);
700
+ render(p) {
701
+ return "return " + super.render(p);
702
702
  }
703
703
  }
704
704
  E.kind = "return";
705
705
  class I extends w {
706
- render(h) {
707
- let P = "try" + super.render(h);
708
- return this.catch && (P += this.catch.render(h)), this.finally && (P += this.finally.render(h)), P;
706
+ render(p) {
707
+ let P = "try" + super.render(p);
708
+ return this.catch && (P += this.catch.render(p)), this.finally && (P += this.finally.render(p)), P;
709
709
  }
710
710
  optimizeNodes() {
711
- var h, P;
712
- return super.optimizeNodes(), (h = this.catch) === null || h === void 0 || h.optimizeNodes(), (P = this.finally) === null || P === void 0 || P.optimizeNodes(), this;
711
+ var p, P;
712
+ return super.optimizeNodes(), (p = this.catch) === null || p === void 0 || p.optimizeNodes(), (P = this.finally) === null || P === void 0 || P.optimizeNodes(), this;
713
713
  }
714
- optimizeNames(h, P) {
714
+ optimizeNames(p, P) {
715
715
  var R, U;
716
- return super.optimizeNames(h, P), (R = this.catch) === null || R === void 0 || R.optimizeNames(h, P), (U = this.finally) === null || U === void 0 || U.optimizeNames(h, P), this;
716
+ return super.optimizeNames(p, P), (R = this.catch) === null || R === void 0 || R.optimizeNames(p, P), (U = this.finally) === null || U === void 0 || U.optimizeNames(p, P), this;
717
717
  }
718
718
  get names() {
719
- const h = super.names;
720
- return this.catch && V(h, this.catch.names), this.finally && V(h, this.finally.names), h;
719
+ const p = super.names;
720
+ return this.catch && V(p, this.catch.names), this.finally && V(p, this.finally.names), p;
721
721
  }
722
722
  }
723
723
  class q extends w {
724
- constructor(h) {
725
- super(), this.error = h;
724
+ constructor(p) {
725
+ super(), this.error = p;
726
726
  }
727
- render(h) {
728
- return `catch(${this.error})` + super.render(h);
727
+ render(p) {
728
+ return `catch(${this.error})` + super.render(p);
729
729
  }
730
730
  }
731
731
  q.kind = "catch";
732
732
  class D extends w {
733
- render(h) {
734
- return "finally" + super.render(h);
733
+ render(p) {
734
+ return "finally" + super.render(p);
735
735
  }
736
736
  }
737
737
  D.kind = "finally";
738
738
  class A {
739
- constructor(h, P = {}) {
739
+ constructor(p, P = {}) {
740
740
  this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...P, _n: P.lines ? `
741
- ` : "" }, this._extScope = h, this._scope = new r.Scope({ parent: h }), this._nodes = [new g()];
741
+ ` : "" }, this._extScope = p, this._scope = new r.Scope({ parent: p }), this._nodes = [new g()];
742
742
  }
743
743
  toString() {
744
744
  return this._root.render(this.opts);
745
745
  }
746
746
  // returns unique name in the internal scope
747
- name(h) {
748
- return this._scope.name(h);
747
+ name(p) {
748
+ return this._scope.name(p);
749
749
  }
750
750
  // reserves unique name in the external scope
751
- scopeName(h) {
752
- return this._extScope.name(h);
751
+ scopeName(p) {
752
+ return this._extScope.name(p);
753
753
  }
754
754
  // reserves unique name in the external scope and assigns value to it
755
- scopeValue(h, P) {
756
- const R = this._extScope.value(h, P);
755
+ scopeValue(p, P) {
756
+ const R = this._extScope.value(p, P);
757
757
  return (this._values[R.prefix] || (this._values[R.prefix] = /* @__PURE__ */ new Set())).add(R), R;
758
758
  }
759
- getScopeValue(h, P) {
760
- return this._extScope.getValue(h, P);
759
+ getScopeValue(p, P) {
760
+ return this._extScope.getValue(p, P);
761
761
  }
762
762
  // return code that assigns values in the external scope to the names that are used internally
763
763
  // (same names that were returned by gen.scopeName or gen.scopeValue)
764
- scopeRefs(h) {
765
- return this._extScope.scopeRefs(h, this._values);
764
+ scopeRefs(p) {
765
+ return this._extScope.scopeRefs(p, this._values);
766
766
  }
767
767
  scopeCode() {
768
768
  return this._extScope.scopeCode(this._values);
769
769
  }
770
- _def(h, P, R, U) {
770
+ _def(p, P, R, U) {
771
771
  const K = this._scope.toName(P);
772
- return R !== void 0 && U && (this._constants[K.str] = R), this._leafNode(new o(h, K, R)), K;
772
+ return R !== void 0 && U && (this._constants[K.str] = R), this._leafNode(new o(p, K, R)), K;
773
773
  }
774
774
  // `const` declaration (`var` in es5 mode)
775
- const(h, P, R) {
776
- return this._def(r.varKinds.const, h, P, R);
775
+ const(p, P, R) {
776
+ return this._def(r.varKinds.const, p, P, R);
777
777
  }
778
778
  // `let` declaration with optional assignment (`var` in es5 mode)
779
- let(h, P, R) {
780
- return this._def(r.varKinds.let, h, P, R);
779
+ let(p, P, R) {
780
+ return this._def(r.varKinds.let, p, P, R);
781
781
  }
782
782
  // `var` declaration with optional assignment
783
- var(h, P, R) {
784
- return this._def(r.varKinds.var, h, P, R);
783
+ var(p, P, R) {
784
+ return this._def(r.varKinds.var, p, P, R);
785
785
  }
786
786
  // assignment code
787
- assign(h, P, R) {
788
- return this._leafNode(new u(h, P, R));
787
+ assign(p, P, R) {
788
+ return this._leafNode(new u(p, P, R));
789
789
  }
790
790
  // `+=` code
791
- add(h, P) {
792
- return this._leafNode(new p(h, e.operators.ADD, P));
791
+ add(p, P) {
792
+ return this._leafNode(new h(p, e.operators.ADD, P));
793
793
  }
794
794
  // appends passed SafeExpr to code or executes Block
795
- code(h) {
796
- return typeof h == "function" ? h() : h !== t.nil && this._leafNode(new $(h)), this;
795
+ code(p) {
796
+ return typeof p == "function" ? p() : p !== t.nil && this._leafNode(new $(p)), this;
797
797
  }
798
798
  // returns code for object literal for the passed argument list of key-value pairs
799
- object(...h) {
799
+ object(...p) {
800
800
  const P = ["{"];
801
- for (const [R, U] of h)
801
+ for (const [R, U] of p)
802
802
  P.length > 1 && P.push(","), P.push(R), (R !== U || this.opts.es5) && (P.push(":"), (0, t.addCodeArg)(P, U));
803
803
  return P.push("}"), new t._Code(P);
804
804
  }
805
805
  // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)
806
- if(h, P, R) {
807
- if (this._blockNode(new l(h)), P && R)
806
+ if(p, P, R) {
807
+ if (this._blockNode(new l(p)), P && R)
808
808
  this.code(P).else().code(R).endIf();
809
809
  else if (P)
810
810
  this.code(P).endIf();
@@ -813,8 +813,8 @@ function G() {
813
813
  return this;
814
814
  }
815
815
  // `else if` clause - invalid without `if` or after `else` clauses
816
- elseIf(h) {
817
- return this._elseNode(new l(h));
816
+ elseIf(p) {
817
+ return this._elseNode(new l(p));
818
818
  }
819
819
  // `else` clause - only valid after `if` or `else if` clauses
820
820
  else() {
@@ -824,21 +824,21 @@ function G() {
824
824
  endIf() {
825
825
  return this._endBlockNode(l, f);
826
826
  }
827
- _for(h, P) {
828
- return this._blockNode(h), P && this.code(P).endFor(), this;
827
+ _for(p, P) {
828
+ return this._blockNode(p), P && this.code(P).endFor(), this;
829
829
  }
830
830
  // a generic `for` clause (or statement if `forBody` is passed)
831
- for(h, P) {
832
- return this._for(new c(h), P);
831
+ for(p, P) {
832
+ return this._for(new c(p), P);
833
833
  }
834
834
  // `for` statement for a range of values
835
- forRange(h, P, R, U, K = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
836
- const Y = this._scope.toName(h);
835
+ forRange(p, P, R, U, K = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
836
+ const Y = this._scope.toName(p);
837
837
  return this._for(new m(K, Y, P, R), () => U(Y));
838
838
  }
839
839
  // `for-of` statement (in es5 mode replace with a normal for loop)
840
- forOf(h, P, R, U = r.varKinds.const) {
841
- const K = this._scope.toName(h);
840
+ forOf(p, P, R, U = r.varKinds.const) {
841
+ const K = this._scope.toName(p);
842
842
  if (this.opts.es5) {
843
843
  const Y = P instanceof t.Name ? P : this.var("_arr", P);
844
844
  return this.forRange("_i", 0, (0, t._)`${Y}.length`, (X) => {
@@ -849,10 +849,10 @@ function G() {
849
849
  }
850
850
  // `for-in` statement.
851
851
  // With option `ownProperties` replaced with a `for-of` loop for object keys
852
- forIn(h, P, R, U = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
852
+ forIn(p, P, R, U = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
853
853
  if (this.opts.ownProperties)
854
- return this.forOf(h, (0, t._)`Object.keys(${P})`, R);
855
- const K = this._scope.toName(h);
854
+ return this.forOf(p, (0, t._)`Object.keys(${P})`, R);
855
+ const K = this._scope.toName(p);
856
856
  return this._for(new _("in", U, K, P), () => R(K));
857
857
  }
858
858
  // end `for` loop
@@ -860,101 +860,101 @@ function G() {
860
860
  return this._endBlockNode(i);
861
861
  }
862
862
  // `label` statement
863
- label(h) {
864
- return this._leafNode(new y(h));
863
+ label(p) {
864
+ return this._leafNode(new y(p));
865
865
  }
866
866
  // `break` statement
867
- break(h) {
868
- return this._leafNode(new d(h));
867
+ break(p) {
868
+ return this._leafNode(new d(p));
869
869
  }
870
870
  // `return` statement
871
- return(h) {
871
+ return(p) {
872
872
  const P = new E();
873
- if (this._blockNode(P), this.code(h), P.nodes.length !== 1)
873
+ if (this._blockNode(P), this.code(p), P.nodes.length !== 1)
874
874
  throw new Error('CodeGen: "return" should have one node');
875
875
  return this._endBlockNode(E);
876
876
  }
877
877
  // `try` statement
878
- try(h, P, R) {
878
+ try(p, P, R) {
879
879
  if (!P && !R)
880
880
  throw new Error('CodeGen: "try" without "catch" and "finally"');
881
881
  const U = new I();
882
- if (this._blockNode(U), this.code(h), P) {
882
+ if (this._blockNode(U), this.code(p), P) {
883
883
  const K = this.name("e");
884
884
  this._currNode = U.catch = new q(K), P(K);
885
885
  }
886
886
  return R && (this._currNode = U.finally = new D(), this.code(R)), this._endBlockNode(q, D);
887
887
  }
888
888
  // `throw` statement
889
- throw(h) {
890
- return this._leafNode(new v(h));
889
+ throw(p) {
890
+ return this._leafNode(new v(p));
891
891
  }
892
892
  // start self-balancing block
893
- block(h, P) {
894
- return this._blockStarts.push(this._nodes.length), h && this.code(h).endBlock(P), this;
893
+ block(p, P) {
894
+ return this._blockStarts.push(this._nodes.length), p && this.code(p).endBlock(P), this;
895
895
  }
896
896
  // end the current self-balancing block
897
- endBlock(h) {
897
+ endBlock(p) {
898
898
  const P = this._blockStarts.pop();
899
899
  if (P === void 0)
900
900
  throw new Error("CodeGen: not in self-balancing block");
901
901
  const R = this._nodes.length - P;
902
- if (R < 0 || h !== void 0 && R !== h)
903
- throw new Error(`CodeGen: wrong number of nodes: ${R} vs ${h} expected`);
902
+ if (R < 0 || p !== void 0 && R !== p)
903
+ throw new Error(`CodeGen: wrong number of nodes: ${R} vs ${p} expected`);
904
904
  return this._nodes.length = P, this;
905
905
  }
906
906
  // `function` heading (or definition if funcBody is passed)
907
- func(h, P = t.nil, R, U) {
908
- return this._blockNode(new b(h, P, R)), U && this.code(U).endFunc(), this;
907
+ func(p, P = t.nil, R, U) {
908
+ return this._blockNode(new b(p, P, R)), U && this.code(U).endFunc(), this;
909
909
  }
910
910
  // end function definition
911
911
  endFunc() {
912
912
  return this._endBlockNode(b);
913
913
  }
914
- optimize(h = 1) {
915
- for (; h-- > 0; )
914
+ optimize(p = 1) {
915
+ for (; p-- > 0; )
916
916
  this._root.optimizeNodes(), this._root.optimizeNames(this._root.names, this._constants);
917
917
  }
918
- _leafNode(h) {
919
- return this._currNode.nodes.push(h), this;
918
+ _leafNode(p) {
919
+ return this._currNode.nodes.push(p), this;
920
920
  }
921
- _blockNode(h) {
922
- this._currNode.nodes.push(h), this._nodes.push(h);
921
+ _blockNode(p) {
922
+ this._currNode.nodes.push(p), this._nodes.push(p);
923
923
  }
924
- _endBlockNode(h, P) {
924
+ _endBlockNode(p, P) {
925
925
  const R = this._currNode;
926
- if (R instanceof h || P && R instanceof P)
926
+ if (R instanceof p || P && R instanceof P)
927
927
  return this._nodes.pop(), this;
928
- throw new Error(`CodeGen: not in block "${P ? `${h.kind}/${P.kind}` : h.kind}"`);
928
+ throw new Error(`CodeGen: not in block "${P ? `${p.kind}/${P.kind}` : p.kind}"`);
929
929
  }
930
- _elseNode(h) {
930
+ _elseNode(p) {
931
931
  const P = this._currNode;
932
932
  if (!(P instanceof l))
933
933
  throw new Error('CodeGen: "else" without "if"');
934
- return this._currNode = P.else = h, this;
934
+ return this._currNode = P.else = p, this;
935
935
  }
936
936
  get _root() {
937
937
  return this._nodes[0];
938
938
  }
939
939
  get _currNode() {
940
- const h = this._nodes;
941
- return h[h.length - 1];
940
+ const p = this._nodes;
941
+ return p[p.length - 1];
942
942
  }
943
- set _currNode(h) {
943
+ set _currNode(p) {
944
944
  const P = this._nodes;
945
- P[P.length - 1] = h;
945
+ P[P.length - 1] = p;
946
946
  }
947
947
  }
948
948
  e.CodeGen = A;
949
- function V(N, h) {
950
- for (const P in h)
951
- N[P] = (N[P] || 0) + (h[P] || 0);
949
+ function V(N, p) {
950
+ for (const P in p)
951
+ N[P] = (N[P] || 0) + (p[P] || 0);
952
952
  return N;
953
953
  }
954
- function L(N, h) {
955
- return h instanceof t._CodeOrName ? V(N, h.names) : N;
954
+ function L(N, p) {
955
+ return p instanceof t._CodeOrName ? V(N, p.names) : N;
956
956
  }
957
- function B(N, h, P) {
957
+ function B(N, p, P) {
958
958
  if (N instanceof t.Name)
959
959
  return R(N);
960
960
  if (!U(N))
@@ -962,15 +962,15 @@ function G() {
962
962
  return new t._Code(N._items.reduce((K, Y) => (Y instanceof t.Name && (Y = R(Y)), Y instanceof t._Code ? K.push(...Y._items) : K.push(Y), K), []));
963
963
  function R(K) {
964
964
  const Y = P[K.str];
965
- return Y === void 0 || h[K.str] !== 1 ? K : (delete h[K.str], Y);
965
+ return Y === void 0 || p[K.str] !== 1 ? K : (delete p[K.str], Y);
966
966
  }
967
967
  function U(K) {
968
- return K instanceof t._Code && K._items.some((Y) => Y instanceof t.Name && h[Y.str] === 1 && P[Y.str] !== void 0);
968
+ return K instanceof t._Code && K._items.some((Y) => Y instanceof t.Name && p[Y.str] === 1 && P[Y.str] !== void 0);
969
969
  }
970
970
  }
971
- function Q(N, h) {
972
- for (const P in h)
973
- N[P] = (N[P] || 0) - (h[P] || 0);
971
+ function Q(N, p) {
972
+ for (const P in p)
973
+ N[P] = (N[P] || 0) - (p[P] || 0);
974
974
  }
975
975
  function oe(N) {
976
976
  return typeof N == "boolean" || typeof N == "number" || N === null ? !N : (0, t._)`!${C(N)}`;
@@ -987,17 +987,17 @@ function G() {
987
987
  }
988
988
  e.or = M;
989
989
  function j(N) {
990
- return (h, P) => h === t.nil ? P : P === t.nil ? h : (0, t._)`${C(h)} ${N} ${C(P)}`;
990
+ return (p, P) => p === t.nil ? P : P === t.nil ? p : (0, t._)`${C(p)} ${N} ${C(P)}`;
991
991
  }
992
992
  function C(N) {
993
993
  return N instanceof t.Name ? N : (0, t._)`(${N})`;
994
994
  }
995
995
  }(sr)), sr;
996
996
  }
997
- var J = {}, Fr;
997
+ var H = {}, Fr;
998
998
  function ee() {
999
- if (Fr) return J;
1000
- Fr = 1, Object.defineProperty(J, "__esModule", { value: !0 }), J.checkStrictMode = J.getErrorPath = J.Type = J.useFunc = J.setEvaluated = J.evaluatedPropsToName = J.mergeEvaluated = J.eachItem = J.unescapeJsonPointer = J.escapeJsonPointer = J.escapeFragment = J.unescapeFragment = J.schemaRefOrVal = J.schemaHasRulesButRef = J.schemaHasRules = J.checkUnknownRules = J.alwaysValidSchema = J.toHash = void 0;
999
+ if (Fr) return H;
1000
+ Fr = 1, Object.defineProperty(H, "__esModule", { value: !0 }), H.checkStrictMode = H.getErrorPath = H.Type = H.useFunc = H.setEvaluated = H.evaluatedPropsToName = H.mergeEvaluated = H.eachItem = H.unescapeJsonPointer = H.escapeJsonPointer = H.escapeFragment = H.unescapeFragment = H.schemaRefOrVal = H.schemaHasRulesButRef = H.schemaHasRules = H.checkUnknownRules = H.alwaysValidSchema = H.toHash = void 0;
1001
1001
  const e = G(), t = Dt();
1002
1002
  function r(_) {
1003
1003
  const b = {};
@@ -1005,11 +1005,11 @@ function ee() {
1005
1005
  b[E] = !0;
1006
1006
  return b;
1007
1007
  }
1008
- J.toHash = r;
1008
+ H.toHash = r;
1009
1009
  function n(_, b) {
1010
1010
  return typeof b == "boolean" ? b : Object.keys(b).length === 0 ? !0 : (a(_, b), !s(b, _.self.RULES.all));
1011
1011
  }
1012
- J.alwaysValidSchema = n;
1012
+ H.alwaysValidSchema = n;
1013
1013
  function a(_, b = _.schema) {
1014
1014
  const { opts: E, self: I } = _;
1015
1015
  if (!E.strictSchema || typeof b == "boolean")
@@ -1018,7 +1018,7 @@ function ee() {
1018
1018
  for (const D in b)
1019
1019
  q[D] || m(_, `unknown keyword: "${D}"`);
1020
1020
  }
1021
- J.checkUnknownRules = a;
1021
+ H.checkUnknownRules = a;
1022
1022
  function s(_, b) {
1023
1023
  if (typeof _ == "boolean")
1024
1024
  return !_;
@@ -1027,7 +1027,7 @@ function ee() {
1027
1027
  return !0;
1028
1028
  return !1;
1029
1029
  }
1030
- J.schemaHasRules = s;
1030
+ H.schemaHasRules = s;
1031
1031
  function o(_, b) {
1032
1032
  if (typeof _ == "boolean")
1033
1033
  return !_;
@@ -1036,7 +1036,7 @@ function ee() {
1036
1036
  return !0;
1037
1037
  return !1;
1038
1038
  }
1039
- J.schemaHasRulesButRef = o;
1039
+ H.schemaHasRulesButRef = o;
1040
1040
  function u({ topSchemaRef: _, schemaPath: b }, E, I, q) {
1041
1041
  if (!q) {
1042
1042
  if (typeof E == "number" || typeof E == "boolean")
@@ -1046,23 +1046,23 @@ function ee() {
1046
1046
  }
1047
1047
  return (0, e._)`${_}${b}${(0, e.getProperty)(I)}`;
1048
1048
  }
1049
- J.schemaRefOrVal = u;
1050
- function p(_) {
1049
+ H.schemaRefOrVal = u;
1050
+ function h(_) {
1051
1051
  return v(decodeURIComponent(_));
1052
1052
  }
1053
- J.unescapeFragment = p;
1053
+ H.unescapeFragment = h;
1054
1054
  function y(_) {
1055
1055
  return encodeURIComponent(d(_));
1056
1056
  }
1057
- J.escapeFragment = y;
1057
+ H.escapeFragment = y;
1058
1058
  function d(_) {
1059
1059
  return typeof _ == "number" ? `${_}` : _.replace(/~/g, "~0").replace(/\//g, "~1");
1060
1060
  }
1061
- J.escapeJsonPointer = d;
1061
+ H.escapeJsonPointer = d;
1062
1062
  function v(_) {
1063
1063
  return _.replace(/~1/g, "/").replace(/~0/g, "~");
1064
1064
  }
1065
- J.unescapeJsonPointer = v;
1065
+ H.unescapeJsonPointer = v;
1066
1066
  function $(_, b) {
1067
1067
  if (Array.isArray(_))
1068
1068
  for (const E of _)
@@ -1070,14 +1070,14 @@ function ee() {
1070
1070
  else
1071
1071
  b(_);
1072
1072
  }
1073
- J.eachItem = $;
1073
+ H.eachItem = $;
1074
1074
  function S({ mergeNames: _, mergeToName: b, mergeValues: E, resultToName: I }) {
1075
1075
  return (q, D, A, V) => {
1076
1076
  const L = A === void 0 ? D : A instanceof e.Name ? (D instanceof e.Name ? _(q, D, A) : b(q, D, A), A) : D instanceof e.Name ? (b(q, A, D), D) : E(D, A);
1077
1077
  return V === e.Name && !(L instanceof e.Name) ? I(q, L) : L;
1078
1078
  };
1079
1079
  }
1080
- J.mergeEvaluated = {
1080
+ H.mergeEvaluated = {
1081
1081
  props: S({
1082
1082
  mergeNames: (_, b, E) => _.if((0, e._)`${E} !== true && ${b} !== undefined`, () => {
1083
1083
  _.if((0, e._)`${b} === true`, () => _.assign(E, !0), () => _.assign(E, (0, e._)`${E} || {}`).code((0, e._)`Object.assign(${E}, ${b})`));
@@ -1101,11 +1101,11 @@ function ee() {
1101
1101
  const E = _.var("props", (0, e._)`{}`);
1102
1102
  return b !== void 0 && g(_, E, b), E;
1103
1103
  }
1104
- J.evaluatedPropsToName = w;
1104
+ H.evaluatedPropsToName = w;
1105
1105
  function g(_, b, E) {
1106
1106
  Object.keys(E).forEach((I) => _.assign((0, e._)`${b}${(0, e.getProperty)(I)}`, !0));
1107
1107
  }
1108
- J.setEvaluated = g;
1108
+ H.setEvaluated = g;
1109
1109
  const f = {};
1110
1110
  function l(_, b) {
1111
1111
  return _.scopeValue("func", {
@@ -1113,11 +1113,11 @@ function ee() {
1113
1113
  code: f[b.code] || (f[b.code] = new t._Code(b.code))
1114
1114
  });
1115
1115
  }
1116
- J.useFunc = l;
1116
+ H.useFunc = l;
1117
1117
  var i;
1118
1118
  (function(_) {
1119
1119
  _[_.Num = 0] = "Num", _[_.Str = 1] = "Str";
1120
- })(i || (J.Type = i = {}));
1120
+ })(i || (H.Type = i = {}));
1121
1121
  function c(_, b, E) {
1122
1122
  if (_ instanceof e.Name) {
1123
1123
  const I = b === i.Num;
@@ -1125,7 +1125,7 @@ function ee() {
1125
1125
  }
1126
1126
  return E ? (0, e.getProperty)(_).toString() : "/" + d(_);
1127
1127
  }
1128
- J.getErrorPath = c;
1128
+ H.getErrorPath = c;
1129
1129
  function m(_, b, E = _.opts.strictSchema) {
1130
1130
  if (E) {
1131
1131
  if (b = `strict mode: ${b}`, E === !0)
@@ -1133,7 +1133,7 @@ function ee() {
1133
1133
  _.self.logger.warn(b);
1134
1134
  }
1135
1135
  }
1136
- return J.checkStrictMode = m, J;
1136
+ return H.checkStrictMode = m, H;
1137
1137
  }
1138
1138
  var tt = {}, Ur;
1139
1139
  function Ae() {
@@ -1182,12 +1182,12 @@ function Bt() {
1182
1182
  };
1183
1183
  function a(f, l = e.keywordError, i, c) {
1184
1184
  const { it: m } = f, { gen: _, compositeRule: b, allErrors: E } = m, I = v(f, l, i);
1185
- c ?? (b || E) ? p(_, I) : y(m, (0, t._)`[${I}]`);
1185
+ c ?? (b || E) ? h(_, I) : y(m, (0, t._)`[${I}]`);
1186
1186
  }
1187
1187
  e.reportError = a;
1188
1188
  function s(f, l = e.keywordError, i) {
1189
1189
  const { it: c } = f, { gen: m, compositeRule: _, allErrors: b } = c, E = v(f, l, i);
1190
- p(m, E), _ || b || y(c, n.default.vErrors);
1190
+ h(m, E), _ || b || y(c, n.default.vErrors);
1191
1191
  }
1192
1192
  e.reportExtraError = s;
1193
1193
  function o(f, l) {
@@ -1203,7 +1203,7 @@ function Bt() {
1203
1203
  });
1204
1204
  }
1205
1205
  e.extendErrors = u;
1206
- function p(f, l) {
1206
+ function h(f, l) {
1207
1207
  const i = f.const("err", l);
1208
1208
  f.if((0, t._)`${n.default.vErrors} === null`, () => f.assign(n.default.vErrors, (0, t._)`[${i}]`), (0, t._)`${n.default.vErrors}.push(${i})`), f.code((0, t._)`${n.default.errors}++`);
1209
1209
  }
@@ -1254,16 +1254,16 @@ function Ma() {
1254
1254
  message: "boolean schema is false"
1255
1255
  };
1256
1256
  function a(u) {
1257
- const { gen: p, schema: y, validateName: d } = u;
1258
- y === !1 ? o(u, !1) : typeof y == "object" && y.$async === !0 ? p.return(r.default.data) : (p.assign((0, t._)`${d}.errors`, null), p.return(!0));
1257
+ const { gen: h, schema: y, validateName: d } = u;
1258
+ y === !1 ? o(u, !1) : typeof y == "object" && y.$async === !0 ? h.return(r.default.data) : (h.assign((0, t._)`${d}.errors`, null), h.return(!0));
1259
1259
  }
1260
1260
  Ce.topBoolOrEmptySchema = a;
1261
- function s(u, p) {
1261
+ function s(u, h) {
1262
1262
  const { gen: y, schema: d } = u;
1263
- d === !1 ? (y.var(p, !1), o(u)) : y.var(p, !0);
1263
+ d === !1 ? (y.var(h, !1), o(u)) : y.var(h, !0);
1264
1264
  }
1265
1265
  Ce.boolOrEmptySchema = s;
1266
- function o(u, p) {
1266
+ function o(u, h) {
1267
1267
  const { gen: y, data: d } = u, v = {
1268
1268
  gen: y,
1269
1269
  keyword: "false schema",
@@ -1274,7 +1274,7 @@ function Ma() {
1274
1274
  params: {},
1275
1275
  it: u
1276
1276
  };
1277
- (0, e.reportError)(v, n, void 0, p);
1277
+ (0, e.reportError)(v, n, void 0, h);
1278
1278
  }
1279
1279
  return Ce;
1280
1280
  }
@@ -1304,10 +1304,10 @@ function Ss() {
1304
1304
  }
1305
1305
  return Te.getRules = n, Te;
1306
1306
  }
1307
- var je = {}, Hr;
1307
+ var je = {}, Jr;
1308
1308
  function Ps() {
1309
- if (Hr) return je;
1310
- Hr = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.shouldUseRule = je.shouldUseGroup = je.schemaHasRulesForType = void 0;
1309
+ if (Jr) return je;
1310
+ Jr = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.shouldUseRule = je.shouldUseGroup = je.schemaHasRulesForType = void 0;
1311
1311
  function e({ schema: n, self: a }, s) {
1312
1312
  const o = a.RULES.types[s];
1313
1313
  return o && o !== !0 && t(n, o);
@@ -1323,10 +1323,10 @@ function Ps() {
1323
1323
  }
1324
1324
  return je.shouldUseRule = r, je;
1325
1325
  }
1326
- var Jr;
1326
+ var Hr;
1327
1327
  function zt() {
1328
- if (Jr) return fe;
1329
- Jr = 1, Object.defineProperty(fe, "__esModule", { value: !0 }), fe.reportTypeError = fe.checkDataTypes = fe.checkDataType = fe.coerceAndCheckDataType = fe.getJSONTypes = fe.getSchemaTypes = fe.DataType = void 0;
1328
+ if (Hr) return fe;
1329
+ Hr = 1, Object.defineProperty(fe, "__esModule", { value: !0 }), fe.reportTypeError = fe.checkDataTypes = fe.checkDataType = fe.coerceAndCheckDataType = fe.getJSONTypes = fe.getSchemaTypes = fe.DataType = void 0;
1330
1330
  const e = Ss(), t = Ps(), r = Bt(), n = G(), a = ee();
1331
1331
  var s;
1332
1332
  (function(i) {
@@ -1352,7 +1352,7 @@ function zt() {
1352
1352
  throw new Error("type must be JSONType or JSONType[]: " + c.join(","));
1353
1353
  }
1354
1354
  fe.getJSONTypes = u;
1355
- function p(i, c) {
1355
+ function h(i, c) {
1356
1356
  const { gen: m, data: _, opts: b } = i, E = d(c, b.coerceTypes), I = c.length > 0 && !(E.length === 0 && c.length === 1 && (0, t.schemaHasRulesForType)(i, c[0]));
1357
1357
  if (I) {
1358
1358
  const q = w(c, _, b.strictNumbers, s.Wrong);
@@ -1362,7 +1362,7 @@ function zt() {
1362
1362
  }
1363
1363
  return I;
1364
1364
  }
1365
- fe.coerceAndCheckDataType = p;
1365
+ fe.coerceAndCheckDataType = h;
1366
1366
  const y = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
1367
1367
  function d(i, c) {
1368
1368
  return c ? i.filter((m) => y.has(m) || c === "array" && m === "array") : [];
@@ -1479,17 +1479,17 @@ function Va() {
1479
1479
  function r(a, s) {
1480
1480
  const { properties: o, items: u } = a.schema;
1481
1481
  if (s === "object" && o)
1482
- for (const p in o)
1483
- n(a, p, o[p].default);
1484
- else s === "array" && Array.isArray(u) && u.forEach((p, y) => n(a, y, p.default));
1482
+ for (const h in o)
1483
+ n(a, h, o[h].default);
1484
+ else s === "array" && Array.isArray(u) && u.forEach((h, y) => n(a, y, h.default));
1485
1485
  }
1486
1486
  Be.assignDefaults = r;
1487
1487
  function n(a, s, o) {
1488
- const { gen: u, compositeRule: p, data: y, opts: d } = a;
1488
+ const { gen: u, compositeRule: h, data: y, opts: d } = a;
1489
1489
  if (o === void 0)
1490
1490
  return;
1491
1491
  const v = (0, e._)`${y}${(0, e.getProperty)(s)}`;
1492
- if (p) {
1492
+ if (h) {
1493
1493
  (0, t.checkStrictMode)(a, `default is ignored for: ${v}`);
1494
1494
  return;
1495
1495
  }
@@ -1526,18 +1526,18 @@ function Se() {
1526
1526
  });
1527
1527
  }
1528
1528
  re.hasPropFunc = u;
1529
- function p(i, c, m) {
1529
+ function h(i, c, m) {
1530
1530
  return (0, e._)`${u(i)}.call(${c}, ${m})`;
1531
1531
  }
1532
- re.isOwnProperty = p;
1532
+ re.isOwnProperty = h;
1533
1533
  function y(i, c, m, _) {
1534
1534
  const b = (0, e._)`${c}${(0, e.getProperty)(m)} !== undefined`;
1535
- return _ ? (0, e._)`${b} && ${p(i, c, m)}` : b;
1535
+ return _ ? (0, e._)`${b} && ${h(i, c, m)}` : b;
1536
1536
  }
1537
1537
  re.propertyInData = y;
1538
1538
  function d(i, c, m, _) {
1539
1539
  const b = (0, e._)`${c}${(0, e.getProperty)(m)} === undefined`;
1540
- return _ ? (0, e.or)(b, (0, e.not)(p(i, c, m))) : b;
1540
+ return _ ? (0, e.or)(b, (0, e.not)(h(i, c, m))) : b;
1541
1541
  }
1542
1542
  re.noPropertyInData = d;
1543
1543
  function v(i) {
@@ -1628,7 +1628,7 @@ function Da() {
1628
1628
  function s($, S) {
1629
1629
  var w;
1630
1630
  const { gen: g, keyword: f, schema: l, parentSchema: i, $data: c, it: m } = $;
1631
- p(m, S);
1631
+ h(m, S);
1632
1632
  const _ = !c && S.compile ? S.compile.call(m.self, l, i, m) : S.validate, b = y(g, f, _), E = g.let("valid");
1633
1633
  $.block$data(E, I), $.ok((w = S.valid) !== null && w !== void 0 ? w : E);
1634
1634
  function I() {
@@ -1667,7 +1667,7 @@ function Da() {
1667
1667
  w.assign(t.default.vErrors, (0, e._)`${t.default.vErrors} === null ? ${S} : ${t.default.vErrors}.concat(${S})`).assign(t.default.errors, (0, e._)`${t.default.vErrors}.length`), (0, n.extendErrors)($);
1668
1668
  }, () => $.error());
1669
1669
  }
1670
- function p({ schemaEnv: $ }, S) {
1670
+ function h({ schemaEnv: $ }, S) {
1671
1671
  if (S.async && !$.$async)
1672
1672
  throw new Error("async keyword in sync schema");
1673
1673
  }
@@ -1701,8 +1701,8 @@ function za() {
1701
1701
  if (Yr) return ke;
1702
1702
  Yr = 1, Object.defineProperty(ke, "__esModule", { value: !0 }), ke.extendSubschemaMode = ke.extendSubschemaData = ke.getSubschema = void 0;
1703
1703
  const e = G(), t = ee();
1704
- function r(s, { keyword: o, schemaProp: u, schema: p, schemaPath: y, errSchemaPath: d, topSchemaRef: v }) {
1705
- if (o !== void 0 && p !== void 0)
1704
+ function r(s, { keyword: o, schemaProp: u, schema: h, schemaPath: y, errSchemaPath: d, topSchemaRef: v }) {
1705
+ if (o !== void 0 && h !== void 0)
1706
1706
  throw new Error('both "keyword" and "schema" passed, only one allowed');
1707
1707
  if (o !== void 0) {
1708
1708
  const $ = s.schema[o];
@@ -1716,11 +1716,11 @@ function za() {
1716
1716
  errSchemaPath: `${s.errSchemaPath}/${o}/${(0, t.escapeFragment)(u)}`
1717
1717
  };
1718
1718
  }
1719
- if (p !== void 0) {
1719
+ if (h !== void 0) {
1720
1720
  if (y === void 0 || d === void 0 || v === void 0)
1721
1721
  throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');
1722
1722
  return {
1723
- schema: p,
1723
+ schema: h,
1724
1724
  schemaPath: y,
1725
1725
  topSchemaRef: v,
1726
1726
  errSchemaPath: d
@@ -1729,13 +1729,13 @@ function za() {
1729
1729
  throw new Error('either "keyword" or "schema" must be passed');
1730
1730
  }
1731
1731
  ke.getSubschema = r;
1732
- function n(s, o, { dataProp: u, dataPropType: p, data: y, dataTypes: d, propertyName: v }) {
1732
+ function n(s, o, { dataProp: u, dataPropType: h, data: y, dataTypes: d, propertyName: v }) {
1733
1733
  if (y !== void 0 && u !== void 0)
1734
1734
  throw new Error('both "data" and "dataProp" passed, only one allowed');
1735
1735
  const { gen: $ } = o;
1736
1736
  if (u !== void 0) {
1737
1737
  const { errorPath: w, dataPathArr: g, opts: f } = o, l = $.let("data", (0, e._)`${o.data}${(0, e.getProperty)(u)}`, !0);
1738
- S(l), s.errorPath = (0, e.str)`${w}${(0, t.getErrorPath)(u, p, f.jsPropertySyntax)}`, s.parentDataProperty = (0, e._)`${u}`, s.dataPathArr = [...g, s.parentDataProperty];
1738
+ S(l), s.errorPath = (0, e.str)`${w}${(0, t.getErrorPath)(u, h, f.jsPropertySyntax)}`, s.parentDataProperty = (0, e._)`${u}`, s.dataPathArr = [...g, s.parentDataProperty];
1739
1739
  }
1740
1740
  if (y !== void 0) {
1741
1741
  const w = y instanceof e.Name ? y : $.let("data", y, !0);
@@ -1747,12 +1747,12 @@ function za() {
1747
1747
  }
1748
1748
  }
1749
1749
  ke.extendSubschemaData = n;
1750
- function a(s, { jtdDiscriminator: o, jtdMetadata: u, compositeRule: p, createErrors: y, allErrors: d }) {
1751
- p !== void 0 && (s.compositeRule = p), y !== void 0 && (s.createErrors = y), d !== void 0 && (s.allErrors = d), s.jtdDiscriminator = o, s.jtdMetadata = u;
1750
+ function a(s, { jtdDiscriminator: o, jtdMetadata: u, compositeRule: h, createErrors: y, allErrors: d }) {
1751
+ h !== void 0 && (s.compositeRule = h), y !== void 0 && (s.createErrors = y), d !== void 0 && (s.allErrors = d), s.jtdDiscriminator = o, s.jtdMetadata = u;
1752
1752
  }
1753
1753
  return ke.extendSubschemaMode = a, ke;
1754
1754
  }
1755
- var pe = {}, or, Zr;
1755
+ var he = {}, or, Zr;
1756
1756
  function Es() {
1757
1757
  return Zr || (Zr = 1, or = function e(t, r) {
1758
1758
  if (t === r) return !0;
@@ -1832,22 +1832,22 @@ function La() {
1832
1832
  maxProperties: !0,
1833
1833
  minProperties: !0
1834
1834
  };
1835
- function t(n, a, s, o, u, p, y, d, v, $) {
1835
+ function t(n, a, s, o, u, h, y, d, v, $) {
1836
1836
  if (o && typeof o == "object" && !Array.isArray(o)) {
1837
- a(o, u, p, y, d, v, $);
1837
+ a(o, u, h, y, d, v, $);
1838
1838
  for (var S in o) {
1839
1839
  var w = o[S];
1840
1840
  if (Array.isArray(w)) {
1841
1841
  if (S in e.arrayKeywords)
1842
1842
  for (var g = 0; g < w.length; g++)
1843
- t(n, a, s, w[g], u + "/" + S + "/" + g, p, u, S, o, g);
1843
+ t(n, a, s, w[g], u + "/" + S + "/" + g, h, u, S, o, g);
1844
1844
  } else if (S in e.propsKeywords) {
1845
1845
  if (w && typeof w == "object")
1846
1846
  for (var f in w)
1847
- t(n, a, s, w[f], u + "/" + S + "/" + r(f), p, u, S, o, f);
1848
- } else (S in e.keywords || n.allKeys && !(S in e.skipKeywords)) && t(n, a, s, w, u + "/" + S, p, u, S, o);
1847
+ t(n, a, s, w[f], u + "/" + S + "/" + r(f), h, u, S, o, f);
1848
+ } else (S in e.keywords || n.allKeys && !(S in e.skipKeywords)) && t(n, a, s, w, u + "/" + S, h, u, S, o);
1849
1849
  }
1850
- s(o, u, p, y, d, v, $);
1850
+ s(o, u, h, y, d, v, $);
1851
1851
  }
1852
1852
  }
1853
1853
  function r(n) {
@@ -1857,8 +1857,8 @@ function La() {
1857
1857
  }
1858
1858
  var en;
1859
1859
  function Wt() {
1860
- if (en) return pe;
1861
- en = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.getSchemaRefs = pe.resolveUrl = pe.normalizeId = pe._getFullPath = pe.getFullPath = pe.inlineRef = void 0;
1860
+ if (en) return he;
1861
+ en = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.getSchemaRefs = he.resolveUrl = he.normalizeId = he._getFullPath = he.getFullPath = he.inlineRef = void 0;
1862
1862
  const e = ee(), t = Es(), r = La(), n = /* @__PURE__ */ new Set([
1863
1863
  "type",
1864
1864
  "format",
@@ -1880,7 +1880,7 @@ function Wt() {
1880
1880
  function a(g, f = !0) {
1881
1881
  return typeof g == "boolean" ? !0 : f === !0 ? !o(g) : f ? u(g) <= f : !1;
1882
1882
  }
1883
- pe.inlineRef = a;
1883
+ he.inlineRef = a;
1884
1884
  const s = /* @__PURE__ */ new Set([
1885
1885
  "$ref",
1886
1886
  "$recursiveRef",
@@ -1908,30 +1908,30 @@ function Wt() {
1908
1908
  }
1909
1909
  return f;
1910
1910
  }
1911
- function p(g, f = "", l) {
1911
+ function h(g, f = "", l) {
1912
1912
  l !== !1 && (f = v(f));
1913
1913
  const i = g.parse(f);
1914
1914
  return y(g, i);
1915
1915
  }
1916
- pe.getFullPath = p;
1916
+ he.getFullPath = h;
1917
1917
  function y(g, f) {
1918
1918
  return g.serialize(f).split("#")[0] + "#";
1919
1919
  }
1920
- pe._getFullPath = y;
1920
+ he._getFullPath = y;
1921
1921
  const d = /#\/?$/;
1922
1922
  function v(g) {
1923
1923
  return g ? g.replace(d, "") : "";
1924
1924
  }
1925
- pe.normalizeId = v;
1925
+ he.normalizeId = v;
1926
1926
  function $(g, f, l) {
1927
1927
  return l = v(l), g.resolve(f, l);
1928
1928
  }
1929
- pe.resolveUrl = $;
1929
+ he.resolveUrl = $;
1930
1930
  const S = /^[a-z_][-a-z0-9._]*$/i;
1931
1931
  function w(g, f) {
1932
1932
  if (typeof g == "boolean")
1933
1933
  return {};
1934
- const { schemaId: l, uriResolver: i } = this.opts, c = v(g[l] || f), m = { "": c }, _ = p(i, c, !1), b = {}, E = /* @__PURE__ */ new Set();
1934
+ const { schemaId: l, uriResolver: i } = this.opts, c = v(g[l] || f), m = { "": c }, _ = h(i, c, !1), b = {}, E = /* @__PURE__ */ new Set();
1935
1935
  return r(g, { allKeys: !0 }, (D, A, V, L) => {
1936
1936
  if (L === void 0)
1937
1937
  return;
@@ -1962,13 +1962,13 @@ function Wt() {
1962
1962
  return new Error(`reference "${D}" resolves to more than one schema`);
1963
1963
  }
1964
1964
  }
1965
- return pe.getSchemaRefs = w, pe;
1965
+ return he.getSchemaRefs = w, he;
1966
1966
  }
1967
1967
  var tn;
1968
- function Ht() {
1968
+ function Jt() {
1969
1969
  if (tn) return Oe;
1970
1970
  tn = 1, Object.defineProperty(Oe, "__esModule", { value: !0 }), Oe.getData = Oe.KeywordCxt = Oe.validateFunctionCode = void 0;
1971
- const e = Ma(), t = zt(), r = Ps(), n = zt(), a = Va(), s = Da(), o = za(), u = G(), p = Ae(), y = Wt(), d = ee(), v = Bt();
1971
+ const e = Ma(), t = zt(), r = Ps(), n = zt(), a = Va(), s = Da(), o = za(), u = G(), h = Ae(), y = Wt(), d = ee(), v = Bt();
1972
1972
  function $(O) {
1973
1973
  if (_(O) && (E(O), m(O))) {
1974
1974
  f(O);
@@ -1978,24 +1978,24 @@ function Ht() {
1978
1978
  }
1979
1979
  Oe.validateFunctionCode = $;
1980
1980
  function S({ gen: O, validateName: k, schema: T, schemaEnv: z, opts: W }, x) {
1981
- W.code.es5 ? O.func(k, (0, u._)`${p.default.data}, ${p.default.valCxt}`, z.$async, () => {
1981
+ W.code.es5 ? O.func(k, (0, u._)`${h.default.data}, ${h.default.valCxt}`, z.$async, () => {
1982
1982
  O.code((0, u._)`"use strict"; ${i(T, W)}`), g(O, W), O.code(x);
1983
- }) : O.func(k, (0, u._)`${p.default.data}, ${w(W)}`, z.$async, () => O.code(i(T, W)).code(x));
1983
+ }) : O.func(k, (0, u._)`${h.default.data}, ${w(W)}`, z.$async, () => O.code(i(T, W)).code(x));
1984
1984
  }
1985
1985
  function w(O) {
1986
- return (0, u._)`{${p.default.instancePath}="", ${p.default.parentData}, ${p.default.parentDataProperty}, ${p.default.rootData}=${p.default.data}${O.dynamicRef ? (0, u._)`, ${p.default.dynamicAnchors}={}` : u.nil}}={}`;
1986
+ return (0, u._)`{${h.default.instancePath}="", ${h.default.parentData}, ${h.default.parentDataProperty}, ${h.default.rootData}=${h.default.data}${O.dynamicRef ? (0, u._)`, ${h.default.dynamicAnchors}={}` : u.nil}}={}`;
1987
1987
  }
1988
1988
  function g(O, k) {
1989
- O.if(p.default.valCxt, () => {
1990
- O.var(p.default.instancePath, (0, u._)`${p.default.valCxt}.${p.default.instancePath}`), O.var(p.default.parentData, (0, u._)`${p.default.valCxt}.${p.default.parentData}`), O.var(p.default.parentDataProperty, (0, u._)`${p.default.valCxt}.${p.default.parentDataProperty}`), O.var(p.default.rootData, (0, u._)`${p.default.valCxt}.${p.default.rootData}`), k.dynamicRef && O.var(p.default.dynamicAnchors, (0, u._)`${p.default.valCxt}.${p.default.dynamicAnchors}`);
1989
+ O.if(h.default.valCxt, () => {
1990
+ O.var(h.default.instancePath, (0, u._)`${h.default.valCxt}.${h.default.instancePath}`), O.var(h.default.parentData, (0, u._)`${h.default.valCxt}.${h.default.parentData}`), O.var(h.default.parentDataProperty, (0, u._)`${h.default.valCxt}.${h.default.parentDataProperty}`), O.var(h.default.rootData, (0, u._)`${h.default.valCxt}.${h.default.rootData}`), k.dynamicRef && O.var(h.default.dynamicAnchors, (0, u._)`${h.default.valCxt}.${h.default.dynamicAnchors}`);
1991
1991
  }, () => {
1992
- O.var(p.default.instancePath, (0, u._)`""`), O.var(p.default.parentData, (0, u._)`undefined`), O.var(p.default.parentDataProperty, (0, u._)`undefined`), O.var(p.default.rootData, p.default.data), k.dynamicRef && O.var(p.default.dynamicAnchors, (0, u._)`{}`);
1992
+ O.var(h.default.instancePath, (0, u._)`""`), O.var(h.default.parentData, (0, u._)`undefined`), O.var(h.default.parentDataProperty, (0, u._)`undefined`), O.var(h.default.rootData, h.default.data), k.dynamicRef && O.var(h.default.dynamicAnchors, (0, u._)`{}`);
1993
1993
  });
1994
1994
  }
1995
1995
  function f(O) {
1996
1996
  const { schema: k, opts: T, gen: z } = O;
1997
1997
  S(O, () => {
1998
- T.$comment && k.$comment && L(O), D(O), z.let(p.default.vErrors, null), z.let(p.default.errors, 0), T.unevaluated && l(O), I(O), B(O);
1998
+ T.$comment && k.$comment && L(O), D(O), z.let(h.default.vErrors, null), z.let(h.default.errors, 0), T.unevaluated && l(O), I(O), B(O);
1999
1999
  });
2000
2000
  }
2001
2001
  function l(O) {
@@ -2027,8 +2027,8 @@ function Ht() {
2027
2027
  function b(O, k) {
2028
2028
  const { schema: T, gen: z, opts: W } = O;
2029
2029
  W.$comment && T.$comment && L(O), A(O), V(O);
2030
- const x = z.const("_errs", p.default.errors);
2031
- I(O, x), z.var(k, (0, u._)`${x} === ${p.default.errors}`);
2030
+ const x = z.const("_errs", h.default.errors);
2031
+ I(O, x), z.var(k, (0, u._)`${x} === ${h.default.errors}`);
2032
2032
  }
2033
2033
  function E(O) {
2034
2034
  (0, d.checkUnknownRules)(O), q(O);
@@ -2058,15 +2058,15 @@ function Ht() {
2058
2058
  function L({ gen: O, schemaEnv: k, schema: T, errSchemaPath: z, opts: W }) {
2059
2059
  const x = T.$comment;
2060
2060
  if (W.$comment === !0)
2061
- O.code((0, u._)`${p.default.self}.logger.log(${x})`);
2061
+ O.code((0, u._)`${h.default.self}.logger.log(${x})`);
2062
2062
  else if (typeof W.$comment == "function") {
2063
2063
  const ue = (0, u.str)`${z}/$comment`, be = O.scopeValue("root", { ref: k.root });
2064
- O.code((0, u._)`${p.default.self}.opts.$comment(${x}, ${ue}, ${be}.schema)`);
2064
+ O.code((0, u._)`${h.default.self}.opts.$comment(${x}, ${ue}, ${be}.schema)`);
2065
2065
  }
2066
2066
  }
2067
2067
  function B(O) {
2068
2068
  const { gen: k, schemaEnv: T, validateName: z, ValidationError: W, opts: x } = O;
2069
- T.$async ? k.if((0, u._)`${p.default.errors} === 0`, () => k.return(p.default.data), () => k.throw((0, u._)`new ${W}(${p.default.vErrors})`)) : (k.assign((0, u._)`${z}.errors`, p.default.vErrors), x.unevaluated && Q(O), k.return((0, u._)`${p.default.errors} === 0`));
2069
+ T.$async ? k.if((0, u._)`${h.default.errors} === 0`, () => k.return(h.default.data), () => k.throw((0, u._)`new ${W}(${h.default.vErrors})`)) : (k.assign((0, u._)`${z}.errors`, h.default.vErrors), x.unevaluated && Q(O), k.return((0, u._)`${h.default.errors} === 0`));
2070
2070
  }
2071
2071
  function Q({ gen: O, evaluated: k, props: T, items: z }) {
2072
2072
  T instanceof u.Name && O.assign((0, u._)`${k}.props`, T), z instanceof u.Name && O.assign((0, u._)`${k}.items`, z);
@@ -2083,7 +2083,7 @@ function Ht() {
2083
2083
  Ve(ce.post);
2084
2084
  });
2085
2085
  function Ve(_e) {
2086
- (0, r.shouldUseGroup)(x, _e) && (_e.type ? (W.if((0, n.checkDataType)(_e.type, ue, me.strictNumbers)), ae(O, _e), k.length === 1 && k[0] === _e.type && T && (W.else(), (0, n.reportTypeError)(O)), W.endIf()) : ae(O, _e), be || W.if((0, u._)`${p.default.errors} === ${z || 0}`));
2086
+ (0, r.shouldUseGroup)(x, _e) && (_e.type ? (W.if((0, n.checkDataType)(_e.type, ue, me.strictNumbers)), ae(O, _e), k.length === 1 && k[0] === _e.type && T && (W.else(), (0, n.reportTypeError)(O)), W.endIf()) : ae(O, _e), be || W.if((0, u._)`${h.default.errors} === ${z || 0}`));
2087
2087
  }
2088
2088
  }
2089
2089
  function ae(O, k) {
@@ -2104,7 +2104,7 @@ function Ht() {
2104
2104
  }
2105
2105
  k.forEach((T) => {
2106
2106
  N(O.dataTypes, T) || P(O, `type "${T}" not allowed by context "${O.dataTypes.join(",")}"`);
2107
- }), h(O, k);
2107
+ }), p(O, k);
2108
2108
  }
2109
2109
  }
2110
2110
  function M(O, k) {
@@ -2126,7 +2126,7 @@ function Ht() {
2126
2126
  function N(O, k) {
2127
2127
  return O.includes(k) || k === "integer" && O.includes("number");
2128
2128
  }
2129
- function h(O, k) {
2129
+ function p(O, k) {
2130
2130
  const T = [];
2131
2131
  for (const z of O.dataTypes)
2132
2132
  N(k, z) ? T.push(z) : k.includes("integer") && z === "number" && T.push("integer");
@@ -2142,7 +2142,7 @@ function Ht() {
2142
2142
  this.schemaCode = k.gen.const("vSchema", X(this.$data, k));
2143
2143
  else if (this.schemaCode = this.schemaValue, !(0, s.validSchemaType)(this.schema, T.schemaType, T.allowUndefined))
2144
2144
  throw new Error(`${z} value must be ${JSON.stringify(T.schemaType)}`);
2145
- ("code" in T ? T.trackErrors : T.errors !== !1) && (this.errsCount = k.gen.const("_errs", p.default.errors));
2145
+ ("code" in T ? T.trackErrors : T.errors !== !1) && (this.errsCount = k.gen.const("_errs", h.default.errors));
2146
2146
  }
2147
2147
  result(k, T, z) {
2148
2148
  this.failResult((0, u.not)(k), T, z);
@@ -2246,11 +2246,11 @@ function Ht() {
2246
2246
  function X(O, { dataLevel: k, dataNames: T, dataPathArr: z }) {
2247
2247
  let W, x;
2248
2248
  if (O === "")
2249
- return p.default.rootData;
2249
+ return h.default.rootData;
2250
2250
  if (O[0] === "/") {
2251
2251
  if (!K.test(O))
2252
2252
  throw new Error(`Invalid JSON-pointer: ${O}`);
2253
- W = O, x = p.default.rootData;
2253
+ W = O, x = h.default.rootData;
2254
2254
  } else {
2255
2255
  const ye = Y.exec(O);
2256
2256
  if (!ye)
@@ -2289,7 +2289,7 @@ function Er() {
2289
2289
  return rt.default = e, rt;
2290
2290
  }
2291
2291
  var nt = {}, nn;
2292
- function Jt() {
2292
+ function Ht() {
2293
2293
  if (nn) return nt;
2294
2294
  nn = 1, Object.defineProperty(nt, "__esModule", { value: !0 });
2295
2295
  const e = Wt();
@@ -2304,7 +2304,7 @@ var ge = {}, sn;
2304
2304
  function Or() {
2305
2305
  if (sn) return ge;
2306
2306
  sn = 1, Object.defineProperty(ge, "__esModule", { value: !0 }), ge.resolveSchema = ge.getCompilingSchema = ge.resolveRef = ge.compileSchema = ge.SchemaEnv = void 0;
2307
- const e = G(), t = Er(), r = Ae(), n = Wt(), a = ee(), s = Ht();
2307
+ const e = G(), t = Er(), r = Ae(), n = Wt(), a = ee(), s = Jt();
2308
2308
  class o {
2309
2309
  constructor(l) {
2310
2310
  var i;
@@ -2374,7 +2374,7 @@ function Or() {
2374
2374
  }
2375
2375
  }
2376
2376
  ge.compileSchema = u;
2377
- function p(f, l, i) {
2377
+ function h(f, l, i) {
2378
2378
  var c;
2379
2379
  i = (0, n.resolveUrl)(this.opts.uriResolver, l, i);
2380
2380
  const m = f.refs[i];
@@ -2388,7 +2388,7 @@ function Or() {
2388
2388
  if (_ !== void 0)
2389
2389
  return f.refs[i] = y.call(this, _);
2390
2390
  }
2391
- ge.resolveRef = p;
2391
+ ge.resolveRef = h;
2392
2392
  function y(f) {
2393
2393
  return (0, n.inlineRef)(f.schema, this.opts.inlineRefs) ? f.schema : f.validate ? f : u.call(this, f);
2394
2394
  }
@@ -2458,13 +2458,13 @@ function Or() {
2458
2458
  }
2459
2459
  return ge;
2460
2460
  }
2461
- const Fa = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Ua = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Ka = "object", Ba = ["$data"], Wa = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Ha = !1, Ja = {
2461
+ const Fa = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Ua = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Ka = "object", Ba = ["$data"], Wa = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Ja = !1, Ha = {
2462
2462
  $id: Fa,
2463
2463
  description: Ua,
2464
2464
  type: Ka,
2465
2465
  required: Ba,
2466
2466
  properties: Wa,
2467
- additionalProperties: Ha
2467
+ additionalProperties: Ja
2468
2468
  };
2469
2469
  var st = {}, We = { exports: {} }, cr, an;
2470
2470
  function Ga() {
@@ -2580,12 +2580,12 @@ function xa() {
2580
2580
  g[i] === f && l++;
2581
2581
  return l;
2582
2582
  }
2583
- const p = /^\.\.?\//u, y = /^\/\.(?:\/|$)/u, d = /^\/\.\.(?:\/|$)/u, v = /^\/?(?:.|\n)*?(?=\/|$)/u;
2583
+ const h = /^\.\.?\//u, y = /^\/\.(?:\/|$)/u, d = /^\/\.\.(?:\/|$)/u, v = /^\/?(?:.|\n)*?(?=\/|$)/u;
2584
2584
  function $(g) {
2585
2585
  const f = [];
2586
2586
  for (; g.length; )
2587
- if (g.match(p))
2588
- g = g.replace(p, "");
2587
+ if (g.match(h))
2588
+ g = g.replace(h, "");
2589
2589
  else if (g.match(y))
2590
2590
  g = g.replace(y, "/");
2591
2591
  else if (g.match(d))
@@ -2668,7 +2668,7 @@ function Xa() {
2668
2668
  i.error = i.error || "URN can not be parsed.";
2669
2669
  return i;
2670
2670
  }
2671
- function p(i, c) {
2671
+ function h(i, c) {
2672
2672
  const m = c.scheme || i.scheme || "urn", _ = i.nid.toLowerCase(), b = `${m}:${c.nid || _}`, E = l[b];
2673
2673
  E && (i = E.serialize(i, c));
2674
2674
  const I = i, q = i.nss;
@@ -2710,7 +2710,7 @@ function Xa() {
2710
2710
  urn: {
2711
2711
  scheme: "urn",
2712
2712
  parse: u,
2713
- serialize: p,
2713
+ serialize: h,
2714
2714
  skipNormalize: !0
2715
2715
  },
2716
2716
  "urn:uuid": {
@@ -2731,10 +2731,10 @@ function Ya() {
2731
2731
  return typeof f == "string" ? f = d(w(f, l), l) : typeof f == "object" && (f = w(d(f, l), l)), f;
2732
2732
  }
2733
2733
  function u(f, l, i) {
2734
- const c = Object.assign({ scheme: "null" }, i), m = p(w(f, c), w(l, c), c, !0);
2734
+ const c = Object.assign({ scheme: "null" }, i), m = h(w(f, c), w(l, c), c, !0);
2735
2735
  return d(m, { ...c, skipEscape: !0 });
2736
2736
  }
2737
- function p(f, l, i, c) {
2737
+ function h(f, l, i, c) {
2738
2738
  const m = {};
2739
2739
  return c || (f = w(d(f, i), i), l = w(d(l, i), i)), i = i || {}, !i.tolerant && l.scheme ? (m.scheme = l.scheme, m.userinfo = l.userinfo, m.host = l.host, m.port = l.port, m.path = r(l.path || ""), m.query = l.query) : (l.userinfo !== void 0 || l.host !== void 0 || l.port !== void 0 ? (m.userinfo = l.userinfo, m.host = l.host, m.port = l.port, m.path = r(l.path || ""), m.query = l.query) : (l.path ? (l.path.charAt(0) === "/" ? m.path = r(l.path) : ((f.userinfo !== void 0 || f.host !== void 0 || f.port !== void 0) && !f.path ? m.path = "/" + l.path : f.path ? m.path = f.path.slice(0, f.path.lastIndexOf("/") + 1) + l.path : m.path = l.path, m.path = r(m.path)), m.query = l.query) : (m.path = f.path, l.query !== void 0 ? m.query = l.query : m.query = f.query), m.userinfo = f.userinfo, m.host = f.host, m.port = f.port), m.scheme = f.scheme), m.fragment = l.fragment, m;
2740
2740
  }
@@ -2814,7 +2814,7 @@ function Ya() {
2814
2814
  SCHEMES: s,
2815
2815
  normalize: o,
2816
2816
  resolve: u,
2817
- resolveComponents: p,
2817
+ resolveComponents: h,
2818
2818
  equal: y,
2819
2819
  serialize: d,
2820
2820
  parse: w
@@ -2832,7 +2832,7 @@ var fn;
2832
2832
  function Qa() {
2833
2833
  return fn || (fn = 1, function(e) {
2834
2834
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
2835
- var t = Ht();
2835
+ var t = Jt();
2836
2836
  Object.defineProperty(e, "KeywordCxt", { enumerable: !0, get: function() {
2837
2837
  return t.KeywordCxt;
2838
2838
  } });
@@ -2850,7 +2850,7 @@ function Qa() {
2850
2850
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
2851
2851
  return r.CodeGen;
2852
2852
  } });
2853
- const n = Er(), a = Jt(), s = Ss(), o = Or(), u = G(), p = Wt(), y = zt(), d = ee(), v = Ja, $ = Za(), S = (M, j) => new RegExp(M, j);
2853
+ const n = Er(), a = Ht(), s = Ss(), o = Or(), u = G(), h = Wt(), y = zt(), d = ee(), v = Ha, $ = Za(), S = (M, j) => new RegExp(M, j);
2854
2854
  S.code = "new RegExp";
2855
2855
  const w = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
2856
2856
  "validate",
@@ -2888,8 +2888,8 @@ function Qa() {
2888
2888
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
2889
2889
  }, i = 200;
2890
2890
  function c(M) {
2891
- var j, C, N, h, P, R, U, K, Y, X, O, k, T, z, W, x, ue, be, me, ye, ce, Ve, _e, xt, Xt;
2892
- const Ue = M.strict, Yt = (j = M.code) === null || j === void 0 ? void 0 : j.optimize, Cr = Yt === !0 || Yt === void 0 ? 1 : Yt || 0, Tr = (N = (C = M.code) === null || C === void 0 ? void 0 : C.regExp) !== null && N !== void 0 ? N : S, Xs = (h = M.uriResolver) !== null && h !== void 0 ? h : $.default;
2891
+ var j, C, N, p, P, R, U, K, Y, X, O, k, T, z, W, x, ue, be, me, ye, ce, Ve, _e, xt, Xt;
2892
+ const Ue = M.strict, Yt = (j = M.code) === null || j === void 0 ? void 0 : j.optimize, Cr = Yt === !0 || Yt === void 0 ? 1 : Yt || 0, Tr = (N = (C = M.code) === null || C === void 0 ? void 0 : C.regExp) !== null && N !== void 0 ? N : S, Xs = (p = M.uriResolver) !== null && p !== void 0 ? p : $.default;
2893
2893
  return {
2894
2894
  strictSchema: (R = (P = M.strictSchema) !== null && P !== void 0 ? P : Ue) !== null && R !== void 0 ? R : !0,
2895
2895
  strictNumbers: (K = (U = M.strictNumbers) !== null && U !== void 0 ? U : Ue) !== null && K !== void 0 ? K : !0,
@@ -2916,16 +2916,16 @@ function Qa() {
2916
2916
  this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), j = this.opts = { ...j, ...c(j) };
2917
2917
  const { es5: C, lines: N } = this.opts.code;
2918
2918
  this.scope = new u.ValueScope({ scope: {}, prefixes: g, es5: C, lines: N }), this.logger = V(j.logger);
2919
- const h = j.validateFormats;
2920
- j.validateFormats = !1, this.RULES = (0, s.getRules)(), _.call(this, f, j, "NOT SUPPORTED"), _.call(this, l, j, "DEPRECATED", "warn"), this._metaOpts = D.call(this), j.formats && I.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), j.keywords && q.call(this, j.keywords), typeof j.meta == "object" && this.addMetaSchema(j.meta), E.call(this), j.validateFormats = h;
2919
+ const p = j.validateFormats;
2920
+ j.validateFormats = !1, this.RULES = (0, s.getRules)(), _.call(this, f, j, "NOT SUPPORTED"), _.call(this, l, j, "DEPRECATED", "warn"), this._metaOpts = D.call(this), j.formats && I.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), j.keywords && q.call(this, j.keywords), typeof j.meta == "object" && this.addMetaSchema(j.meta), E.call(this), j.validateFormats = p;
2921
2921
  }
2922
2922
  _addVocabularies() {
2923
2923
  this.addKeyword("$async");
2924
2924
  }
2925
2925
  _addDefaultMetaSchema() {
2926
2926
  const { $data: j, meta: C, schemaId: N } = this.opts;
2927
- let h = v;
2928
- N === "id" && (h = { ...v }, h.id = h.$id, delete h.$id), C && j && this.addMetaSchema(h, h[N], !1);
2927
+ let p = v;
2928
+ N === "id" && (p = { ...v }, p.id = p.$id, delete p.$id), C && j && this.addMetaSchema(p, p[N], !1);
2929
2929
  }
2930
2930
  defaultMeta() {
2931
2931
  const { meta: j, schemaId: C } = this.opts;
@@ -2938,8 +2938,8 @@ function Qa() {
2938
2938
  throw new Error(`no schema with key or ref "${j}"`);
2939
2939
  } else
2940
2940
  N = this.compile(j);
2941
- const h = N(C);
2942
- return "$async" in N || (this.errors = N.errors), h;
2941
+ const p = N(C);
2942
+ return "$async" in N || (this.errors = N.errors), p;
2943
2943
  }
2944
2944
  compile(j, C) {
2945
2945
  const N = this._addSchema(j, C);
@@ -2949,14 +2949,14 @@ function Qa() {
2949
2949
  if (typeof this.opts.loadSchema != "function")
2950
2950
  throw new Error("options.loadSchema should be a function");
2951
2951
  const { loadSchema: N } = this.opts;
2952
- return h.call(this, j, C);
2953
- async function h(X, O) {
2952
+ return p.call(this, j, C);
2953
+ async function p(X, O) {
2954
2954
  await P.call(this, X.$schema);
2955
2955
  const k = this._addSchema(X, O);
2956
2956
  return k.validate || R.call(this, k);
2957
2957
  }
2958
2958
  async function P(X) {
2959
- X && !this.getSchema(X) && await h.call(this, { $ref: X }, !0);
2959
+ X && !this.getSchema(X) && await p.call(this, { $ref: X }, !0);
2960
2960
  }
2961
2961
  async function R(X) {
2962
2962
  try {
@@ -2987,10 +2987,10 @@ function Qa() {
2987
2987
  }
2988
2988
  }
2989
2989
  // Adds schema to the instance
2990
- addSchema(j, C, N, h = this.opts.validateSchema) {
2990
+ addSchema(j, C, N, p = this.opts.validateSchema) {
2991
2991
  if (Array.isArray(j)) {
2992
2992
  for (const R of j)
2993
- this.addSchema(R, void 0, N, h);
2993
+ this.addSchema(R, void 0, N, p);
2994
2994
  return this;
2995
2995
  }
2996
2996
  let P;
@@ -2999,7 +2999,7 @@ function Qa() {
2999
2999
  if (P = j[R], P !== void 0 && typeof P != "string")
3000
3000
  throw new Error(`schema ${R} must be string`);
3001
3001
  }
3002
- return C = (0, p.normalizeId)(C || P), this._checkUnique(C), this.schemas[C] = this._addSchema(j, N, C, h, !0), this;
3002
+ return C = (0, h.normalizeId)(C || P), this._checkUnique(C), this.schemas[C] = this._addSchema(j, N, C, p, !0), this;
3003
3003
  }
3004
3004
  // Add schema that will be used to validate other schemas
3005
3005
  // options in META_IGNORE_OPTIONS are alway set to false
@@ -3015,15 +3015,15 @@ function Qa() {
3015
3015
  throw new Error("$schema must be a string");
3016
3016
  if (N = N || this.opts.defaultMeta || this.defaultMeta(), !N)
3017
3017
  return this.logger.warn("meta-schema not available"), this.errors = null, !0;
3018
- const h = this.validate(N, j);
3019
- if (!h && C) {
3018
+ const p = this.validate(N, j);
3019
+ if (!p && C) {
3020
3020
  const P = "schema is invalid: " + this.errorsText();
3021
3021
  if (this.opts.validateSchema === "log")
3022
3022
  this.logger.error(P);
3023
3023
  else
3024
3024
  throw new Error(P);
3025
3025
  }
3026
- return h;
3026
+ return p;
3027
3027
  }
3028
3028
  // Get compiled schema by `key` or `ref`.
3029
3029
  // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)
@@ -3032,8 +3032,8 @@ function Qa() {
3032
3032
  for (; typeof (C = b.call(this, j)) == "string"; )
3033
3033
  j = C;
3034
3034
  if (C === void 0) {
3035
- const { schemaId: N } = this.opts, h = new o.SchemaEnv({ schema: {}, schemaId: N });
3036
- if (C = o.resolveSchema.call(this, h, j), !C)
3035
+ const { schemaId: N } = this.opts, p = new o.SchemaEnv({ schema: {}, schemaId: N });
3036
+ if (C = o.resolveSchema.call(this, p, j), !C)
3037
3037
  return;
3038
3038
  this.refs[j] = C;
3039
3039
  }
@@ -3057,7 +3057,7 @@ function Qa() {
3057
3057
  const C = j;
3058
3058
  this._cache.delete(C);
3059
3059
  let N = j[this.opts.schemaId];
3060
- return N && (N = (0, p.normalizeId)(N), delete this.schemas[N], delete this.refs[N]), this;
3060
+ return N && (N = (0, h.normalizeId)(N), delete this.schemas[N], delete this.refs[N]), this;
3061
3061
  }
3062
3062
  default:
3063
3063
  throw new Error("ajv.removeSchema: invalid parameter");
@@ -3081,12 +3081,12 @@ function Qa() {
3081
3081
  if (B.call(this, N, C), !C)
3082
3082
  return (0, d.eachItem)(N, (P) => Q.call(this, P)), this;
3083
3083
  ae.call(this, C);
3084
- const h = {
3084
+ const p = {
3085
3085
  ...C,
3086
3086
  type: (0, y.getJSONTypes)(C.type),
3087
3087
  schemaType: (0, y.getJSONTypes)(C.schemaType)
3088
3088
  };
3089
- return (0, d.eachItem)(N, h.type.length === 0 ? (P) => Q.call(this, P, h) : (P) => h.type.forEach((R) => Q.call(this, P, h, R))), this;
3089
+ return (0, d.eachItem)(N, p.type.length === 0 ? (P) => Q.call(this, P, p) : (P) => p.type.forEach((R) => Q.call(this, P, p, R))), this;
3090
3090
  }
3091
3091
  getKeyword(j) {
3092
3092
  const C = this.RULES.all[j];
@@ -3097,8 +3097,8 @@ function Qa() {
3097
3097
  const { RULES: C } = this;
3098
3098
  delete C.keywords[j], delete C.all[j];
3099
3099
  for (const N of C.rules) {
3100
- const h = N.rules.findIndex((P) => P.keyword === j);
3101
- h >= 0 && N.rules.splice(h, 1);
3100
+ const p = N.rules.findIndex((P) => P.keyword === j);
3101
+ p >= 0 && N.rules.splice(p, 1);
3102
3102
  }
3103
3103
  return this;
3104
3104
  }
@@ -3107,13 +3107,13 @@ function Qa() {
3107
3107
  return typeof C == "string" && (C = new RegExp(C)), this.formats[j] = C, this;
3108
3108
  }
3109
3109
  errorsText(j = this.errors, { separator: C = ", ", dataVar: N = "data" } = {}) {
3110
- return !j || j.length === 0 ? "No errors" : j.map((h) => `${N}${h.instancePath} ${h.message}`).reduce((h, P) => h + C + P);
3110
+ return !j || j.length === 0 ? "No errors" : j.map((p) => `${N}${p.instancePath} ${p.message}`).reduce((p, P) => p + C + P);
3111
3111
  }
3112
3112
  $dataMetaSchema(j, C) {
3113
3113
  const N = this.RULES.all;
3114
3114
  j = JSON.parse(JSON.stringify(j));
3115
- for (const h of C) {
3116
- const P = h.split("/").slice(1);
3115
+ for (const p of C) {
3116
+ const P = p.split("/").slice(1);
3117
3117
  let R = j;
3118
3118
  for (const U of P)
3119
3119
  R = R[U];
@@ -3129,11 +3129,11 @@ function Qa() {
3129
3129
  }
3130
3130
  _removeAllSchemas(j, C) {
3131
3131
  for (const N in j) {
3132
- const h = j[N];
3133
- (!C || C.test(N)) && (typeof h == "string" ? delete j[N] : h && !h.meta && (this._cache.delete(h.schema), delete j[N]));
3132
+ const p = j[N];
3133
+ (!C || C.test(N)) && (typeof p == "string" ? delete j[N] : p && !p.meta && (this._cache.delete(p.schema), delete j[N]));
3134
3134
  }
3135
3135
  }
3136
- _addSchema(j, C, N, h = this.opts.validateSchema, P = this.opts.addUsedSchema) {
3136
+ _addSchema(j, C, N, p = this.opts.validateSchema, P = this.opts.addUsedSchema) {
3137
3137
  let R;
3138
3138
  const { schemaId: U } = this.opts;
3139
3139
  if (typeof j == "object")
@@ -3147,9 +3147,9 @@ function Qa() {
3147
3147
  let K = this._cache.get(j);
3148
3148
  if (K !== void 0)
3149
3149
  return K;
3150
- N = (0, p.normalizeId)(R || N);
3151
- const Y = p.getSchemaRefs.call(this, j, N);
3152
- return K = new o.SchemaEnv({ schema: j, schemaId: U, meta: C, baseId: N, localRefs: Y }), this._cache.set(K.schema, K), P && !N.startsWith("#") && (N && this._checkUnique(N), this.refs[N] = K), h && this.validateSchema(j, !0), K;
3150
+ N = (0, h.normalizeId)(R || N);
3151
+ const Y = h.getSchemaRefs.call(this, j, N);
3152
+ return K = new o.SchemaEnv({ schema: j, schemaId: U, meta: C, baseId: N, localRefs: Y }), this._cache.set(K.schema, K), P && !N.startsWith("#") && (N && this._checkUnique(N), this.refs[N] = K), p && this.validateSchema(j, !0), K;
3153
3153
  }
3154
3154
  _checkUnique(j) {
3155
3155
  if (this.schemas[j] || this.refs[j])
@@ -3172,13 +3172,13 @@ function Qa() {
3172
3172
  }
3173
3173
  m.ValidationError = n.default, m.MissingRefError = a.default, e.default = m;
3174
3174
  function _(M, j, C, N = "error") {
3175
- for (const h in M) {
3176
- const P = h;
3177
- P in j && this.logger[N](`${C}: option ${h}. ${M[P]}`);
3175
+ for (const p in M) {
3176
+ const P = p;
3177
+ P in j && this.logger[N](`${C}: option ${p}. ${M[P]}`);
3178
3178
  }
3179
3179
  }
3180
3180
  function b(M) {
3181
- return M = (0, p.normalizeId)(M), this.schemas[M] || this.refs[M];
3181
+ return M = (0, h.normalizeId)(M), this.schemas[M] || this.refs[M];
3182
3182
  }
3183
3183
  function E() {
3184
3184
  const M = this.opts.schemas;
@@ -3238,11 +3238,11 @@ function Qa() {
3238
3238
  }
3239
3239
  function Q(M, j, C) {
3240
3240
  var N;
3241
- const h = j?.post;
3242
- if (C && h)
3241
+ const p = j?.post;
3242
+ if (C && p)
3243
3243
  throw new Error('keyword with "post" flag cannot have "type"');
3244
3244
  const { RULES: P } = this;
3245
- let R = h ? P.post : P.rules.find(({ type: K }) => K === C);
3245
+ let R = p ? P.post : P.rules.find(({ type: K }) => K === C);
3246
3246
  if (R || (R = { type: C, rules: [] }, P.rules.push(R)), P.keywords[M] = !0, !j)
3247
3247
  return;
3248
3248
  const U = {
@@ -3256,7 +3256,7 @@ function Qa() {
3256
3256
  j.before ? oe.call(this, R, U, j.before) : R.rules.push(U), P.all[M] = U, (N = j.implements) === null || N === void 0 || N.forEach((K) => this.addKeyword(K));
3257
3257
  }
3258
3258
  function oe(M, j, C) {
3259
- const N = M.rules.findIndex((h) => h.keyword === C);
3259
+ const N = M.rules.findIndex((p) => p.keyword === C);
3260
3260
  N >= 0 ? M.rules.splice(N, 0, j) : (M.rules.push(j), this.logger.warn(`rule ${C} is not defined`));
3261
3261
  }
3262
3262
  function ae(M) {
@@ -3283,11 +3283,11 @@ function ei() {
3283
3283
  };
3284
3284
  return ot.default = e, ot;
3285
3285
  }
3286
- var Ie = {}, pn;
3286
+ var Ie = {}, hn;
3287
3287
  function ti() {
3288
- if (pn) return Ie;
3289
- pn = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.callRef = Ie.getValidate = void 0;
3290
- const e = Jt(), t = Se(), r = G(), n = Ae(), a = Or(), s = ee(), o = {
3288
+ if (hn) return Ie;
3289
+ hn = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.callRef = Ie.getValidate = void 0;
3290
+ const e = Ht(), t = Se(), r = G(), n = Ae(), a = Or(), s = ee(), o = {
3291
3291
  keyword: "$ref",
3292
3292
  schemaType: "string",
3293
3293
  code(y) {
@@ -3302,13 +3302,13 @@ function ti() {
3302
3302
  return b(c);
3303
3303
  function m() {
3304
3304
  if (w === i)
3305
- return p(y, g, w, w.$async);
3305
+ return h(y, g, w, w.$async);
3306
3306
  const E = d.scopeValue("root", { ref: i });
3307
- return p(y, (0, r._)`${E}.validate`, i, i.$async);
3307
+ return h(y, (0, r._)`${E}.validate`, i, i.$async);
3308
3308
  }
3309
3309
  function _(E) {
3310
3310
  const I = u(y, E);
3311
- p(y, I, E, E.$async);
3311
+ h(y, I, E, E.$async);
3312
3312
  }
3313
3313
  function b(E) {
3314
3314
  const I = d.scopeValue("schema", f.code.source === !0 ? { ref: E, code: (0, r.stringify)(E) } : { ref: E }), q = d.name("valid"), D = y.subschema({
@@ -3327,7 +3327,7 @@ function ti() {
3327
3327
  return d.validate ? v.scopeValue("validate", { ref: d.validate }) : (0, r._)`${v.scopeValue("wrapper", { ref: d })}.validate`;
3328
3328
  }
3329
3329
  Ie.getValidate = u;
3330
- function p(y, d, v, $) {
3330
+ function h(y, d, v, $) {
3331
3331
  const { gen: S, it: w } = y, { allErrors: g, schemaEnv: f, opts: l } = w, i = l.passContext ? n.default.this : r.nil;
3332
3332
  $ ? c() : m();
3333
3333
  function c() {
@@ -3368,12 +3368,12 @@ function ti() {
3368
3368
  }
3369
3369
  }
3370
3370
  }
3371
- return Ie.callRef = p, Ie.default = o, Ie;
3371
+ return Ie.callRef = h, Ie.default = o, Ie;
3372
3372
  }
3373
- var hn;
3373
+ var pn;
3374
3374
  function ri() {
3375
- if (hn) return it;
3376
- hn = 1, Object.defineProperty(it, "__esModule", { value: !0 });
3375
+ if (pn) return it;
3376
+ pn = 1, Object.defineProperty(it, "__esModule", { value: !0 });
3377
3377
  const e = ei(), t = ti(), r = [
3378
3378
  "$schema",
3379
3379
  "$id",
@@ -3405,8 +3405,8 @@ function ni() {
3405
3405
  $data: !0,
3406
3406
  error: n,
3407
3407
  code(s) {
3408
- const { keyword: o, data: u, schemaCode: p } = s;
3409
- s.fail$data((0, e._)`${u} ${r[o].fail} ${p} || isNaN(${u})`);
3408
+ const { keyword: o, data: u, schemaCode: h } = s;
3409
+ s.fail$data((0, e._)`${u} ${r[o].fail} ${h} || isNaN(${u})`);
3410
3410
  }
3411
3411
  };
3412
3412
  return ct.default = a, ct;
@@ -3425,7 +3425,7 @@ function si() {
3425
3425
  params: ({ schemaCode: n }) => (0, e._)`{multipleOf: ${n}}`
3426
3426
  },
3427
3427
  code(n) {
3428
- const { gen: a, data: s, schemaCode: o, it: u } = n, p = u.opts.multipleOfPrecision, y = a.let("res"), d = p ? (0, e._)`Math.abs(Math.round(${y}) - ${y}) > 1e-${p}` : (0, e._)`${y} !== parseInt(${y})`;
3428
+ const { gen: a, data: s, schemaCode: o, it: u } = n, h = u.opts.multipleOfPrecision, y = a.let("res"), d = h ? (0, e._)`Math.abs(Math.round(${y}) - ${y}) > 1e-${h}` : (0, e._)`${y} !== parseInt(${y})`;
3429
3429
  n.fail$data((0, e._)`(${o} === 0 || (${y} = ${s}/${o}, ${d}))`);
3430
3430
  }
3431
3431
  };
@@ -3461,16 +3461,16 @@ function ii() {
3461
3461
  params: ({ schemaCode: s }) => (0, e._)`{limit: ${s}}`
3462
3462
  },
3463
3463
  code(s) {
3464
- const { keyword: o, data: u, schemaCode: p, it: y } = s, d = o === "maxLength" ? e.operators.GT : e.operators.LT, v = y.opts.unicode === !1 ? (0, e._)`${u}.length` : (0, e._)`${(0, t.useFunc)(s.gen, r.default)}(${u})`;
3465
- s.fail$data((0, e._)`${v} ${d} ${p}`);
3464
+ const { keyword: o, data: u, schemaCode: h, it: y } = s, d = o === "maxLength" ? e.operators.GT : e.operators.LT, v = y.opts.unicode === !1 ? (0, e._)`${u}.length` : (0, e._)`${(0, t.useFunc)(s.gen, r.default)}(${u})`;
3465
+ s.fail$data((0, e._)`${v} ${d} ${h}`);
3466
3466
  }
3467
3467
  };
3468
3468
  return ft.default = a, ft;
3469
3469
  }
3470
- var pt = {}, _n;
3470
+ var ht = {}, _n;
3471
3471
  function oi() {
3472
- if (_n) return pt;
3473
- _n = 1, Object.defineProperty(pt, "__esModule", { value: !0 });
3472
+ if (_n) return ht;
3473
+ _n = 1, Object.defineProperty(ht, "__esModule", { value: !0 });
3474
3474
  const e = Se(), t = G(), n = {
3475
3475
  keyword: "pattern",
3476
3476
  type: "string",
@@ -3481,16 +3481,16 @@ function oi() {
3481
3481
  params: ({ schemaCode: a }) => (0, t._)`{pattern: ${a}}`
3482
3482
  },
3483
3483
  code(a) {
3484
- const { data: s, $data: o, schema: u, schemaCode: p, it: y } = a, d = y.opts.unicodeRegExp ? "u" : "", v = o ? (0, t._)`(new RegExp(${p}, ${d}))` : (0, e.usePattern)(a, u);
3484
+ const { data: s, $data: o, schema: u, schemaCode: h, it: y } = a, d = y.opts.unicodeRegExp ? "u" : "", v = o ? (0, t._)`(new RegExp(${h}, ${d}))` : (0, e.usePattern)(a, u);
3485
3485
  a.fail$data((0, t._)`!${v}.test(${s})`);
3486
3486
  }
3487
3487
  };
3488
- return pt.default = n, pt;
3488
+ return ht.default = n, ht;
3489
3489
  }
3490
- var ht = {}, bn;
3490
+ var pt = {}, bn;
3491
3491
  function ui() {
3492
- if (bn) return ht;
3493
- bn = 1, Object.defineProperty(ht, "__esModule", { value: !0 });
3492
+ if (bn) return pt;
3493
+ bn = 1, Object.defineProperty(pt, "__esModule", { value: !0 });
3494
3494
  const e = G(), r = {
3495
3495
  keyword: ["maxProperties", "minProperties"],
3496
3496
  type: "object",
@@ -3508,7 +3508,7 @@ function ui() {
3508
3508
  n.fail$data((0, e._)`Object.keys(${s}).length ${u} ${o}`);
3509
3509
  }
3510
3510
  };
3511
- return ht.default = r, ht;
3511
+ return pt.default = r, pt;
3512
3512
  }
3513
3513
  var mt = {}, $n;
3514
3514
  function ci() {
@@ -3524,7 +3524,7 @@ function ci() {
3524
3524
  params: ({ params: { missingProperty: s } }) => (0, t._)`{missingProperty: ${s}}`
3525
3525
  },
3526
3526
  code(s) {
3527
- const { gen: o, schema: u, schemaCode: p, data: y, $data: d, it: v } = s, { opts: $ } = v;
3527
+ const { gen: o, schema: u, schemaCode: h, data: y, $data: d, it: v } = s, { opts: $ } = v;
3528
3528
  if (!d && u.length === 0)
3529
3529
  return;
3530
3530
  const S = u.length >= $.loopRequired;
@@ -3552,12 +3552,12 @@ function ci() {
3552
3552
  o.if((0, e.checkMissingProp)(s, u, i)), (0, e.reportMissingProp)(s, i), o.else();
3553
3553
  }
3554
3554
  function f() {
3555
- o.forOf("prop", p, (i) => {
3555
+ o.forOf("prop", h, (i) => {
3556
3556
  s.setParams({ missingProperty: i }), o.if((0, e.noPropertyInData)(o, y, i, $.ownProperties), () => s.error());
3557
3557
  });
3558
3558
  }
3559
3559
  function l(i, c) {
3560
- s.setParams({ missingProperty: i }), o.forOf(i, p, () => {
3560
+ s.setParams({ missingProperty: i }), o.forOf(i, h, () => {
3561
3561
  o.assign(c, (0, e.propertyInData)(o, y, i, $.ownProperties)), o.if((0, t.not)(c), () => {
3562
3562
  s.error(), o.break();
3563
3563
  });
@@ -3611,13 +3611,13 @@ function fi() {
3611
3611
  params: ({ params: { i: o, j: u } }) => (0, t._)`{i: ${o}, j: ${u}}`
3612
3612
  },
3613
3613
  code(o) {
3614
- const { gen: u, data: p, $data: y, schema: d, parentSchema: v, schemaCode: $, it: S } = o;
3614
+ const { gen: u, data: h, $data: y, schema: d, parentSchema: v, schemaCode: $, it: S } = o;
3615
3615
  if (!y && !d)
3616
3616
  return;
3617
3617
  const w = u.let("valid"), g = v.items ? (0, e.getSchemaTypes)(v.items) : [];
3618
3618
  o.block$data(w, f, (0, t._)`${$} === false`), o.ok(w);
3619
3619
  function f() {
3620
- const m = u.let("i", (0, t._)`${p}.length`), _ = u.let("j");
3620
+ const m = u.let("i", (0, t._)`${h}.length`), _ = u.let("j");
3621
3621
  o.setParams({ i: m, j: _ }), u.assign(w, !0), u.if((0, t._)`${m} > 1`, () => (l() ? i : c)(m, _));
3622
3622
  }
3623
3623
  function l() {
@@ -3626,14 +3626,14 @@ function fi() {
3626
3626
  function i(m, _) {
3627
3627
  const b = u.name("item"), E = (0, e.checkDataTypes)(g, b, S.opts.strictNumbers, e.DataType.Wrong), I = u.const("indices", (0, t._)`{}`);
3628
3628
  u.for((0, t._)`;${m}--;`, () => {
3629
- u.let(b, (0, t._)`${p}[${m}]`), u.if(E, (0, t._)`continue`), g.length > 1 && u.if((0, t._)`typeof ${b} == "string"`, (0, t._)`${b} += "_"`), u.if((0, t._)`typeof ${I}[${b}] == "number"`, () => {
3629
+ u.let(b, (0, t._)`${h}[${m}]`), u.if(E, (0, t._)`continue`), g.length > 1 && u.if((0, t._)`typeof ${b} == "string"`, (0, t._)`${b} += "_"`), u.if((0, t._)`typeof ${I}[${b}] == "number"`, () => {
3630
3630
  u.assign(_, (0, t._)`${I}[${b}]`), o.error(), u.assign(w, !1).break();
3631
3631
  }).code((0, t._)`${I}[${b}] = ${m}`);
3632
3632
  });
3633
3633
  }
3634
3634
  function c(m, _) {
3635
3635
  const b = (0, r.useFunc)(u, n.default), E = u.name("outer");
3636
- u.label(E).for((0, t._)`;${m}--;`, () => u.for((0, t._)`${_} = ${m}; ${_}--;`, () => u.if((0, t._)`${b}(${p}[${m}], ${p}[${_}])`, () => {
3636
+ u.label(E).for((0, t._)`;${m}--;`, () => u.for((0, t._)`${_} = ${m}; ${_}--;`, () => u.if((0, t._)`${b}(${h}[${m}], ${h}[${_}])`, () => {
3637
3637
  o.error(), u.assign(w, !1).break(E);
3638
3638
  })));
3639
3639
  }
@@ -3653,14 +3653,14 @@ function di() {
3653
3653
  params: ({ schemaCode: s }) => (0, e._)`{allowedValue: ${s}}`
3654
3654
  },
3655
3655
  code(s) {
3656
- const { gen: o, data: u, $data: p, schemaCode: y, schema: d } = s;
3657
- p || d && typeof d == "object" ? s.fail$data((0, e._)`!${(0, t.useFunc)(o, r.default)}(${u}, ${y})`) : s.fail((0, e._)`${d} !== ${u}`);
3656
+ const { gen: o, data: u, $data: h, schemaCode: y, schema: d } = s;
3657
+ h || d && typeof d == "object" ? s.fail$data((0, e._)`!${(0, t.useFunc)(o, r.default)}(${u}, ${y})`) : s.fail((0, e._)`${d} !== ${u}`);
3658
3658
  }
3659
3659
  };
3660
3660
  return _t.default = a, _t;
3661
3661
  }
3662
3662
  var bt = {}, On;
3663
- function pi() {
3663
+ function hi() {
3664
3664
  if (On) return bt;
3665
3665
  On = 1, Object.defineProperty(bt, "__esModule", { value: !0 });
3666
3666
  const e = G(), t = ee(), r = jr(), a = {
@@ -3672,14 +3672,14 @@ function pi() {
3672
3672
  params: ({ schemaCode: s }) => (0, e._)`{allowedValues: ${s}}`
3673
3673
  },
3674
3674
  code(s) {
3675
- const { gen: o, data: u, $data: p, schema: y, schemaCode: d, it: v } = s;
3676
- if (!p && y.length === 0)
3675
+ const { gen: o, data: u, $data: h, schema: y, schemaCode: d, it: v } = s;
3676
+ if (!h && y.length === 0)
3677
3677
  throw new Error("enum must have non-empty array");
3678
3678
  const $ = y.length >= v.opts.loopEnum;
3679
3679
  let S;
3680
3680
  const w = () => S ?? (S = (0, t.useFunc)(o, r.default));
3681
3681
  let g;
3682
- if ($ || p)
3682
+ if ($ || h)
3683
3683
  g = o.let("valid"), s.block$data(g, f);
3684
3684
  else {
3685
3685
  if (!Array.isArray(y))
@@ -3700,10 +3700,10 @@ function pi() {
3700
3700
  return bt.default = a, bt;
3701
3701
  }
3702
3702
  var jn;
3703
- function hi() {
3703
+ function pi() {
3704
3704
  if (jn) return ut;
3705
3705
  jn = 1, Object.defineProperty(ut, "__esModule", { value: !0 });
3706
- const e = ni(), t = si(), r = ii(), n = oi(), a = ui(), s = ci(), o = li(), u = fi(), p = di(), y = pi(), d = [
3706
+ const e = ni(), t = si(), r = ii(), n = oi(), a = ui(), s = ci(), o = li(), u = fi(), h = di(), y = hi(), d = [
3707
3707
  // number
3708
3708
  e.default,
3709
3709
  t.default,
@@ -3719,7 +3719,7 @@ function hi() {
3719
3719
  // any
3720
3720
  { keyword: "type", schemaType: ["string", "array"] },
3721
3721
  { keyword: "nullable", schemaType: "boolean" },
3722
- p.default,
3722
+ h.default,
3723
3723
  y.default
3724
3724
  ];
3725
3725
  return ut.default = d, ut;
@@ -3738,21 +3738,21 @@ function Os() {
3738
3738
  params: ({ params: { len: s } }) => (0, e._)`{limit: ${s}}`
3739
3739
  },
3740
3740
  code(s) {
3741
- const { parentSchema: o, it: u } = s, { items: p } = o;
3742
- if (!Array.isArray(p)) {
3741
+ const { parentSchema: o, it: u } = s, { items: h } = o;
3742
+ if (!Array.isArray(h)) {
3743
3743
  (0, t.checkStrictMode)(u, '"additionalItems" is ignored when "items" is not an array of schemas');
3744
3744
  return;
3745
3745
  }
3746
- a(s, p);
3746
+ a(s, h);
3747
3747
  }
3748
3748
  };
3749
3749
  function a(s, o) {
3750
- const { gen: u, schema: p, data: y, keyword: d, it: v } = s;
3750
+ const { gen: u, schema: h, data: y, keyword: d, it: v } = s;
3751
3751
  v.items = !0;
3752
3752
  const $ = u.const("len", (0, e._)`${y}.length`);
3753
- if (p === !1)
3753
+ if (h === !1)
3754
3754
  s.setParams({ len: o.length }), s.pass((0, e._)`${$} <= ${o.length}`);
3755
- else if (typeof p == "object" && !(0, t.alwaysValidSchema)(v, p)) {
3755
+ else if (typeof h == "object" && !(0, t.alwaysValidSchema)(v, h)) {
3756
3756
  const w = u.var("valid", (0, e._)`${$} <= ${o.length}`);
3757
3757
  u.if((0, e.not)(w), () => S(w)), s.ok(w);
3758
3758
  }
@@ -3781,11 +3781,11 @@ function js() {
3781
3781
  }
3782
3782
  };
3783
3783
  function a(s, o, u = s.schema) {
3784
- const { gen: p, parentSchema: y, data: d, keyword: v, it: $ } = s;
3785
- g(y), $.opts.unevaluated && u.length && $.items !== !0 && ($.items = t.mergeEvaluated.items(p, u.length, $.items));
3786
- const S = p.name("valid"), w = p.const("len", (0, e._)`${d}.length`);
3784
+ const { gen: h, parentSchema: y, data: d, keyword: v, it: $ } = s;
3785
+ g(y), $.opts.unevaluated && u.length && $.items !== !0 && ($.items = t.mergeEvaluated.items(h, u.length, $.items));
3786
+ const S = h.name("valid"), w = h.const("len", (0, e._)`${d}.length`);
3787
3787
  u.forEach((f, l) => {
3788
- (0, t.alwaysValidSchema)($, f) || (p.if((0, e._)`${w} > ${l}`, () => s.subschema({
3788
+ (0, t.alwaysValidSchema)($, f) || (h.if((0, e._)`${w} > ${l}`, () => s.subschema({
3789
3789
  keyword: v,
3790
3790
  schemaProp: l,
3791
3791
  dataProp: l
@@ -3828,7 +3828,7 @@ function yi() {
3828
3828
  params: ({ params: { len: o } }) => (0, e._)`{limit: ${o}}`
3829
3829
  },
3830
3830
  code(o) {
3831
- const { schema: u, parentSchema: p, it: y } = o, { prefixItems: d } = p;
3831
+ const { schema: u, parentSchema: h, it: y } = o, { prefixItems: d } = h;
3832
3832
  y.items = !0, !(0, t.alwaysValidSchema)(y, u) && (d ? (0, n.validateAdditionalItems)(o, d) : o.ok((0, r.validateArray)(o)));
3833
3833
  }
3834
3834
  };
@@ -3849,11 +3849,11 @@ function gi() {
3849
3849
  params: ({ params: { min: a, max: s } }) => s === void 0 ? (0, e._)`{minContains: ${a}}` : (0, e._)`{minContains: ${a}, maxContains: ${s}}`
3850
3850
  },
3851
3851
  code(a) {
3852
- const { gen: s, schema: o, parentSchema: u, data: p, it: y } = a;
3852
+ const { gen: s, schema: o, parentSchema: u, data: h, it: y } = a;
3853
3853
  let d, v;
3854
3854
  const { minContains: $, maxContains: S } = u;
3855
3855
  y.opts.next ? (d = $ === void 0 ? 1 : $, v = S) : d = 1;
3856
- const w = s.const("len", (0, e._)`${p}.length`);
3856
+ const w = s.const("len", (0, e._)`${h}.length`);
3857
3857
  if (a.setParams({ min: d, max: v }), v === void 0 && d === 0) {
3858
3858
  (0, t.checkStrictMode)(y, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
3859
3859
  return;
@@ -3869,7 +3869,7 @@ function gi() {
3869
3869
  }
3870
3870
  y.items = !0;
3871
3871
  const g = s.name("valid");
3872
- v === void 0 && d === 1 ? l(g, () => s.if(g, () => s.break())) : d === 0 ? (s.let(g, !0), v !== void 0 && s.if((0, e._)`${p}.length > 0`, f)) : (s.let(g, !1), f()), a.result(g, () => a.reset());
3872
+ v === void 0 && d === 1 ? l(g, () => s.if(g, () => s.break())) : d === 0 ? (s.let(g, !0), v !== void 0 && s.if((0, e._)`${h}.length > 0`, f)) : (s.let(g, !1), f()), a.result(g, () => a.reset());
3873
3873
  function f() {
3874
3874
  const c = s.name("_valid"), m = s.let("count", 0);
3875
3875
  l(c, () => s.if(c, () => i(m)));
@@ -3897,11 +3897,11 @@ function vi() {
3897
3897
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
3898
3898
  const t = G(), r = ee(), n = Se();
3899
3899
  e.error = {
3900
- message: ({ params: { property: p, depsCount: y, deps: d } }) => {
3900
+ message: ({ params: { property: h, depsCount: y, deps: d } }) => {
3901
3901
  const v = y === 1 ? "property" : "properties";
3902
- return (0, t.str)`must have ${v} ${d} when property ${p} is present`;
3902
+ return (0, t.str)`must have ${v} ${d} when property ${h} is present`;
3903
3903
  },
3904
- params: ({ params: { property: p, depsCount: y, deps: d, missingProperty: v } }) => (0, t._)`{property: ${p},
3904
+ params: ({ params: { property: h, depsCount: y, deps: d, missingProperty: v } }) => (0, t._)`{property: ${h},
3905
3905
  missingProperty: ${v},
3906
3906
  depsCount: ${y},
3907
3907
  deps: ${d}}`
@@ -3912,23 +3912,23 @@ function vi() {
3912
3912
  type: "object",
3913
3913
  schemaType: "object",
3914
3914
  error: e.error,
3915
- code(p) {
3916
- const [y, d] = s(p);
3917
- o(p, y), u(p, d);
3915
+ code(h) {
3916
+ const [y, d] = s(h);
3917
+ o(h, y), u(h, d);
3918
3918
  }
3919
3919
  };
3920
- function s({ schema: p }) {
3920
+ function s({ schema: h }) {
3921
3921
  const y = {}, d = {};
3922
- for (const v in p) {
3922
+ for (const v in h) {
3923
3923
  if (v === "__proto__")
3924
3924
  continue;
3925
- const $ = Array.isArray(p[v]) ? y : d;
3926
- $[v] = p[v];
3925
+ const $ = Array.isArray(h[v]) ? y : d;
3926
+ $[v] = h[v];
3927
3927
  }
3928
3928
  return [y, d];
3929
3929
  }
3930
- function o(p, y = p.schema) {
3931
- const { gen: d, data: v, it: $ } = p;
3930
+ function o(h, y = h.schema) {
3931
+ const { gen: d, data: v, it: $ } = h;
3932
3932
  if (Object.keys(y).length === 0)
3933
3933
  return;
3934
3934
  const S = d.let("missing");
@@ -3937,29 +3937,29 @@ function vi() {
3937
3937
  if (g.length === 0)
3938
3938
  continue;
3939
3939
  const f = (0, n.propertyInData)(d, v, w, $.opts.ownProperties);
3940
- p.setParams({
3940
+ h.setParams({
3941
3941
  property: w,
3942
3942
  depsCount: g.length,
3943
3943
  deps: g.join(", ")
3944
3944
  }), $.allErrors ? d.if(f, () => {
3945
3945
  for (const l of g)
3946
- (0, n.checkReportMissingProp)(p, l);
3947
- }) : (d.if((0, t._)`${f} && (${(0, n.checkMissingProp)(p, g, S)})`), (0, n.reportMissingProp)(p, S), d.else());
3946
+ (0, n.checkReportMissingProp)(h, l);
3947
+ }) : (d.if((0, t._)`${f} && (${(0, n.checkMissingProp)(h, g, S)})`), (0, n.reportMissingProp)(h, S), d.else());
3948
3948
  }
3949
3949
  }
3950
3950
  e.validatePropertyDeps = o;
3951
- function u(p, y = p.schema) {
3952
- const { gen: d, data: v, keyword: $, it: S } = p, w = d.name("valid");
3951
+ function u(h, y = h.schema) {
3952
+ const { gen: d, data: v, keyword: $, it: S } = h, w = d.name("valid");
3953
3953
  for (const g in y)
3954
3954
  (0, r.alwaysValidSchema)(S, y[g]) || (d.if(
3955
3955
  (0, n.propertyInData)(d, v, g, S.opts.ownProperties),
3956
3956
  () => {
3957
- const f = p.subschema({ keyword: $, schemaProp: g }, w);
3958
- p.mergeValidEvaluated(f, w);
3957
+ const f = h.subschema({ keyword: $, schemaProp: g }, w);
3958
+ h.mergeValidEvaluated(f, w);
3959
3959
  },
3960
3960
  () => d.var(w, !0)
3961
3961
  // TODO var
3962
- ), p.ok(w));
3962
+ ), h.ok(w));
3963
3963
  }
3964
3964
  e.validateSchemaDeps = u, e.default = a;
3965
3965
  }(dr)), dr;
@@ -3977,8 +3977,8 @@ function _i() {
3977
3977
  params: ({ params: a }) => (0, e._)`{propertyName: ${a.propertyName}}`
3978
3978
  },
3979
3979
  code(a) {
3980
- const { gen: s, schema: o, data: u, it: p } = a;
3981
- if ((0, t.alwaysValidSchema)(p, o))
3980
+ const { gen: s, schema: o, data: u, it: h } = a;
3981
+ if ((0, t.alwaysValidSchema)(h, o))
3982
3982
  return;
3983
3983
  const y = s.name("valid");
3984
3984
  s.forIn("key", u, (d) => {
@@ -3989,7 +3989,7 @@ function _i() {
3989
3989
  propertyName: d,
3990
3990
  compositeRule: !0
3991
3991
  }, y), s.if((0, e.not)(y), () => {
3992
- a.error(!0), p.allErrors || s.break();
3992
+ a.error(!0), h.allErrors || s.break();
3993
3993
  });
3994
3994
  }), a.ok(y);
3995
3995
  }
@@ -4011,11 +4011,11 @@ function ks() {
4011
4011
  params: ({ params: o }) => (0, t._)`{additionalProperty: ${o.additionalProperty}}`
4012
4012
  },
4013
4013
  code(o) {
4014
- const { gen: u, schema: p, parentSchema: y, data: d, errsCount: v, it: $ } = o;
4014
+ const { gen: u, schema: h, parentSchema: y, data: d, errsCount: v, it: $ } = o;
4015
4015
  if (!v)
4016
4016
  throw new Error("ajv implementation error");
4017
4017
  const { allErrors: S, opts: w } = $;
4018
- if ($.props = !0, w.removeAdditional !== "all" && (0, n.alwaysValidSchema)($, p))
4018
+ if ($.props = !0, w.removeAdditional !== "all" && (0, n.alwaysValidSchema)($, h))
4019
4019
  return;
4020
4020
  const g = (0, e.allSchemaProperties)(y.properties), f = (0, e.allSchemaProperties)(y.patternProperties);
4021
4021
  l(), o.ok((0, t._)`${v} === ${r.default.errors}`);
@@ -4036,15 +4036,15 @@ function ks() {
4036
4036
  u.code((0, t._)`delete ${d}[${b}]`);
4037
4037
  }
4038
4038
  function m(b) {
4039
- if (w.removeAdditional === "all" || w.removeAdditional && p === !1) {
4039
+ if (w.removeAdditional === "all" || w.removeAdditional && h === !1) {
4040
4040
  c(b);
4041
4041
  return;
4042
4042
  }
4043
- if (p === !1) {
4043
+ if (h === !1) {
4044
4044
  o.setParams({ additionalProperty: b }), o.error(), S || u.break();
4045
4045
  return;
4046
4046
  }
4047
- if (typeof p == "object" && !(0, n.alwaysValidSchema)($, p)) {
4047
+ if (typeof h == "object" && !(0, n.alwaysValidSchema)($, h)) {
4048
4048
  const E = u.name("valid");
4049
4049
  w.removeAdditional === "failing" ? (_(b, E, !1), u.if((0, t.not)(E), () => {
4050
4050
  o.reset(), c(b);
@@ -4071,13 +4071,13 @@ var jt = {}, Mn;
4071
4071
  function bi() {
4072
4072
  if (Mn) return jt;
4073
4073
  Mn = 1, Object.defineProperty(jt, "__esModule", { value: !0 });
4074
- const e = Ht(), t = Se(), r = ee(), n = ks(), a = {
4074
+ const e = Jt(), t = Se(), r = ee(), n = ks(), a = {
4075
4075
  keyword: "properties",
4076
4076
  type: "object",
4077
4077
  schemaType: "object",
4078
4078
  code(s) {
4079
- const { gen: o, schema: u, parentSchema: p, data: y, it: d } = s;
4080
- d.opts.removeAdditional === "all" && p.additionalProperties === void 0 && n.default.code(new e.KeywordCxt(d, n.default, "additionalProperties"));
4079
+ const { gen: o, schema: u, parentSchema: h, data: y, it: d } = s;
4080
+ d.opts.removeAdditional === "all" && h.additionalProperties === void 0 && n.default.code(new e.KeywordCxt(d, n.default, "additionalProperties"));
4081
4081
  const v = (0, t.allSchemaProperties)(u);
4082
4082
  for (const f of v)
4083
4083
  d.definedProperties.add(f);
@@ -4111,7 +4111,7 @@ function $i() {
4111
4111
  type: "object",
4112
4112
  schemaType: "object",
4113
4113
  code(s) {
4114
- const { gen: o, schema: u, data: p, parentSchema: y, it: d } = s, { opts: v } = d, $ = (0, e.allSchemaProperties)(u), S = $.filter((m) => (0, r.alwaysValidSchema)(d, u[m]));
4114
+ const { gen: o, schema: u, data: h, parentSchema: y, it: d } = s, { opts: v } = d, $ = (0, e.allSchemaProperties)(u), S = $.filter((m) => (0, r.alwaysValidSchema)(d, u[m]));
4115
4115
  if ($.length === 0 || S.length === $.length && (!d.opts.unevaluated || d.props === !0))
4116
4116
  return;
4117
4117
  const w = v.strictSchema && !v.allowMatchingProperties && y.properties, g = o.name("valid");
@@ -4127,7 +4127,7 @@ function $i() {
4127
4127
  new RegExp(m).test(_) && (0, r.checkStrictMode)(d, `property ${_} matches pattern ${m} (use allowMatchingProperties)`);
4128
4128
  }
4129
4129
  function c(m) {
4130
- o.forIn("key", p, (_) => {
4130
+ o.forIn("key", h, (_) => {
4131
4131
  o.if((0, t._)`${(0, e.usePattern)(s, m)}.test(${_})`, () => {
4132
4132
  const b = S.includes(m);
4133
4133
  b || s.subschema({
@@ -4195,17 +4195,17 @@ function Pi() {
4195
4195
  params: ({ params: a }) => (0, e._)`{passingSchemas: ${a.passing}}`
4196
4196
  },
4197
4197
  code(a) {
4198
- const { gen: s, schema: o, parentSchema: u, it: p } = a;
4198
+ const { gen: s, schema: o, parentSchema: u, it: h } = a;
4199
4199
  if (!Array.isArray(o))
4200
4200
  throw new Error("ajv implementation error");
4201
- if (p.opts.discriminator && u.discriminator)
4201
+ if (h.opts.discriminator && u.discriminator)
4202
4202
  return;
4203
4203
  const y = o, d = s.let("valid", !1), v = s.let("passing", null), $ = s.name("_valid");
4204
4204
  a.setParams({ passing: v }), s.block(S), a.result(d, () => a.reset(), () => a.error(!0));
4205
4205
  function S() {
4206
4206
  y.forEach((w, g) => {
4207
4207
  let f;
4208
- (0, t.alwaysValidSchema)(p, w) ? s.var($, !0) : f = a.subschema({
4208
+ (0, t.alwaysValidSchema)(h, w) ? s.var($, !0) : f = a.subschema({
4209
4209
  keyword: "oneOf",
4210
4210
  schemaProp: g,
4211
4211
  compositeRule: !0
@@ -4230,10 +4230,10 @@ function Ei() {
4230
4230
  if (!Array.isArray(a))
4231
4231
  throw new Error("ajv implementation error");
4232
4232
  const o = n.name("valid");
4233
- a.forEach((u, p) => {
4233
+ a.forEach((u, h) => {
4234
4234
  if ((0, e.alwaysValidSchema)(s, u))
4235
4235
  return;
4236
- const y = r.subschema({ keyword: "allOf", schemaProp: p }, o);
4236
+ const y = r.subschema({ keyword: "allOf", schemaProp: h }, o);
4237
4237
  r.ok(o), r.mergeEvaluated(y);
4238
4238
  });
4239
4239
  }
@@ -4253,9 +4253,9 @@ function Oi() {
4253
4253
  params: ({ params: s }) => (0, e._)`{failingKeyword: ${s.ifClause}}`
4254
4254
  },
4255
4255
  code(s) {
4256
- const { gen: o, parentSchema: u, it: p } = s;
4257
- u.then === void 0 && u.else === void 0 && (0, t.checkStrictMode)(p, '"if" without "then" and "else" is ignored');
4258
- const y = a(p, "then"), d = a(p, "else");
4256
+ const { gen: o, parentSchema: u, it: h } = s;
4257
+ u.then === void 0 && u.else === void 0 && (0, t.checkStrictMode)(h, '"if" without "then" and "else" is ignored');
4258
+ const y = a(h, "then"), d = a(h, "else");
4259
4259
  if (!y && !d)
4260
4260
  return;
4261
4261
  const v = o.let("valid", !0), $ = o.name("_valid");
@@ -4304,7 +4304,7 @@ var Bn;
4304
4304
  function ki() {
4305
4305
  if (Bn) return $t;
4306
4306
  Bn = 1, Object.defineProperty($t, "__esModule", { value: !0 });
4307
- const e = Os(), t = mi(), r = js(), n = yi(), a = gi(), s = vi(), o = _i(), u = ks(), p = bi(), y = $i(), d = wi(), v = Si(), $ = Pi(), S = Ei(), w = Oi(), g = ji();
4307
+ const e = Os(), t = mi(), r = js(), n = yi(), a = gi(), s = vi(), o = _i(), u = ks(), h = bi(), y = $i(), d = wi(), v = Si(), $ = Pi(), S = Ei(), w = Oi(), g = ji();
4308
4308
  function f(l = !1) {
4309
4309
  const i = [
4310
4310
  // any
@@ -4318,7 +4318,7 @@ function ki() {
4318
4318
  o.default,
4319
4319
  u.default,
4320
4320
  s.default,
4321
- p.default,
4321
+ h.default,
4322
4322
  y.default
4323
4323
  ];
4324
4324
  return l ? i.push(t.default, n.default) : i.push(e.default, r.default), i.push(a.default), i;
@@ -4339,7 +4339,7 @@ function Ri() {
4339
4339
  params: ({ schemaCode: n }) => (0, e._)`{format: ${n}}`
4340
4340
  },
4341
4341
  code(n, a) {
4342
- const { gen: s, data: o, $data: u, schema: p, schemaCode: y, it: d } = n, { opts: v, errSchemaPath: $, schemaEnv: S, self: w } = d;
4342
+ const { gen: s, data: o, $data: u, schema: h, schemaCode: y, it: d } = n, { opts: v, errSchemaPath: $, schemaEnv: S, self: w } = d;
4343
4343
  if (!v.validateFormats)
4344
4344
  return;
4345
4345
  u ? g() : f();
@@ -4358,7 +4358,7 @@ function Ri() {
4358
4358
  }
4359
4359
  }
4360
4360
  function f() {
4361
- const l = w.formats[p];
4361
+ const l = w.formats[h];
4362
4362
  if (!l) {
4363
4363
  _();
4364
4364
  return;
@@ -4374,11 +4374,11 @@ function Ri() {
4374
4374
  }
4375
4375
  throw new Error(I());
4376
4376
  function I() {
4377
- return `unknown format "${p}" ignored in schema at path "${$}"`;
4377
+ return `unknown format "${h}" ignored in schema at path "${$}"`;
4378
4378
  }
4379
4379
  }
4380
4380
  function b(I) {
4381
- const q = I instanceof RegExp ? (0, e.regexpCode)(I) : v.code.formats ? (0, e._)`${v.code.formats}${(0, e.getProperty)(p)}` : void 0, D = s.scopeValue("formats", { key: p, ref: I, code: q });
4381
+ const q = I instanceof RegExp ? (0, e.regexpCode)(I) : v.code.formats ? (0, e._)`${v.code.formats}${(0, e.getProperty)(h)}` : void 0, D = s.scopeValue("formats", { key: h, ref: I, code: q });
4382
4382
  return typeof I == "object" && !(I instanceof RegExp) ? [I.type || "string", I.validate, (0, e._)`${D}.validate`] : ["string", I, D];
4383
4383
  }
4384
4384
  function E() {
@@ -4394,16 +4394,16 @@ function Ri() {
4394
4394
  };
4395
4395
  return Mt.default = r, Mt;
4396
4396
  }
4397
- var Hn;
4397
+ var Jn;
4398
4398
  function Ni() {
4399
- if (Hn) return qt;
4400
- Hn = 1, Object.defineProperty(qt, "__esModule", { value: !0 });
4399
+ if (Jn) return qt;
4400
+ Jn = 1, Object.defineProperty(qt, "__esModule", { value: !0 });
4401
4401
  const t = [Ri().default];
4402
4402
  return qt.default = t, qt;
4403
4403
  }
4404
- var qe = {}, Jn;
4404
+ var qe = {}, Hn;
4405
4405
  function Ii() {
4406
- return Jn || (Jn = 1, Object.defineProperty(qe, "__esModule", { value: !0 }), qe.contentVocabulary = qe.metadataVocabulary = void 0, qe.metadataVocabulary = [
4406
+ return Hn || (Hn = 1, Object.defineProperty(qe, "__esModule", { value: !0 }), qe.contentVocabulary = qe.metadataVocabulary = void 0, qe.metadataVocabulary = [
4407
4407
  "title",
4408
4408
  "description",
4409
4409
  "default",
@@ -4421,7 +4421,7 @@ var Gn;
4421
4421
  function Ai() {
4422
4422
  if (Gn) return at;
4423
4423
  Gn = 1, Object.defineProperty(at, "__esModule", { value: !0 });
4424
- const e = ri(), t = hi(), r = ki(), n = Ni(), a = Ii(), s = [
4424
+ const e = ri(), t = pi(), r = ki(), n = Ni(), a = Ii(), s = [
4425
4425
  e.default,
4426
4426
  t.default,
4427
4427
  (0, r.default)(),
@@ -4431,29 +4431,29 @@ function Ai() {
4431
4431
  ];
4432
4432
  return at.default = s, at;
4433
4433
  }
4434
- var Vt = {}, He = {}, xn;
4434
+ var Vt = {}, Je = {}, xn;
4435
4435
  function Ci() {
4436
- if (xn) return He;
4437
- xn = 1, Object.defineProperty(He, "__esModule", { value: !0 }), He.DiscrError = void 0;
4436
+ if (xn) return Je;
4437
+ xn = 1, Object.defineProperty(Je, "__esModule", { value: !0 }), Je.DiscrError = void 0;
4438
4438
  var e;
4439
4439
  return function(t) {
4440
4440
  t.Tag = "tag", t.Mapping = "mapping";
4441
- }(e || (He.DiscrError = e = {})), He;
4441
+ }(e || (Je.DiscrError = e = {})), Je;
4442
4442
  }
4443
4443
  var Xn;
4444
4444
  function Ti() {
4445
4445
  if (Xn) return Vt;
4446
4446
  Xn = 1, Object.defineProperty(Vt, "__esModule", { value: !0 });
4447
- const e = G(), t = Ci(), r = Or(), n = Jt(), a = ee(), o = {
4447
+ const e = G(), t = Ci(), r = Or(), n = Ht(), a = ee(), o = {
4448
4448
  keyword: "discriminator",
4449
4449
  type: "object",
4450
4450
  schemaType: "object",
4451
4451
  error: {
4452
- message: ({ params: { discrError: u, tagName: p } }) => u === t.DiscrError.Tag ? `tag "${p}" must be string` : `value of tag "${p}" must be in oneOf`,
4453
- params: ({ params: { discrError: u, tag: p, tagName: y } }) => (0, e._)`{error: ${u}, tag: ${y}, tagValue: ${p}}`
4452
+ message: ({ params: { discrError: u, tagName: h } }) => u === t.DiscrError.Tag ? `tag "${h}" must be string` : `value of tag "${h}" must be in oneOf`,
4453
+ params: ({ params: { discrError: u, tag: h, tagName: y } }) => (0, e._)`{error: ${u}, tag: ${y}, tagValue: ${h}}`
4454
4454
  },
4455
4455
  code(u) {
4456
- const { gen: p, data: y, schema: d, parentSchema: v, it: $ } = u, { oneOf: S } = v;
4456
+ const { gen: h, data: y, schema: d, parentSchema: v, it: $ } = u, { oneOf: S } = v;
4457
4457
  if (!$.opts.discriminator)
4458
4458
  throw new Error("discriminator: requires discriminator option");
4459
4459
  const w = d.propertyName;
@@ -4463,17 +4463,17 @@ function Ti() {
4463
4463
  throw new Error("discriminator: mapping is not supported");
4464
4464
  if (!S)
4465
4465
  throw new Error("discriminator: requires oneOf keyword");
4466
- const g = p.let("valid", !1), f = p.const("tag", (0, e._)`${y}${(0, e.getProperty)(w)}`);
4467
- p.if((0, e._)`typeof ${f} == "string"`, () => l(), () => u.error(!1, { discrError: t.DiscrError.Tag, tag: f, tagName: w })), u.ok(g);
4466
+ const g = h.let("valid", !1), f = h.const("tag", (0, e._)`${y}${(0, e.getProperty)(w)}`);
4467
+ h.if((0, e._)`typeof ${f} == "string"`, () => l(), () => u.error(!1, { discrError: t.DiscrError.Tag, tag: f, tagName: w })), u.ok(g);
4468
4468
  function l() {
4469
4469
  const m = c();
4470
- p.if(!1);
4470
+ h.if(!1);
4471
4471
  for (const _ in m)
4472
- p.elseIf((0, e._)`${f} === ${_}`), p.assign(g, i(m[_]));
4473
- p.else(), u.error(!1, { discrError: t.DiscrError.Mapping, tag: f, tagName: w }), p.endIf();
4472
+ h.elseIf((0, e._)`${f} === ${_}`), h.assign(g, i(m[_]));
4473
+ h.else(), u.error(!1, { discrError: t.DiscrError.Mapping, tag: f, tagName: w }), h.endIf();
4474
4474
  }
4475
4475
  function i(m) {
4476
- const _ = p.name("valid"), b = u.subschema({ keyword: "oneOf", schemaProp: m }, _);
4476
+ const _ = h.name("valid"), b = u.subschema({ keyword: "oneOf", schemaProp: m }, _);
4477
4477
  return u.mergeEvaluated(b, e.Name), _;
4478
4478
  }
4479
4479
  function c() {
@@ -4531,7 +4531,7 @@ function Rs() {
4531
4531
  return Yn || (Yn = 1, function(e, t) {
4532
4532
  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;
4533
4533
  const r = Qa(), n = Ai(), a = Ti(), s = Fi, o = ["/properties"], u = "http://json-schema.org/draft-07/schema";
4534
- class p extends r.default {
4534
+ class h extends r.default {
4535
4535
  _addVocabularies() {
4536
4536
  super._addVocabularies(), n.default.forEach((w) => this.addVocabulary(w)), this.opts.discriminator && this.addKeyword(a.default);
4537
4537
  }
@@ -4545,8 +4545,8 @@ function Rs() {
4545
4545
  return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(u) ? u : void 0);
4546
4546
  }
4547
4547
  }
4548
- t.Ajv = p, e.exports = t = p, e.exports.Ajv = p, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = p;
4549
- var y = Ht();
4548
+ t.Ajv = h, e.exports = t = h, e.exports.Ajv = h, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = h;
4549
+ var y = Jt();
4550
4550
  Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
4551
4551
  return y.KeywordCxt;
4552
4552
  } });
@@ -4568,7 +4568,7 @@ function Rs() {
4568
4568
  Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
4569
4569
  return v.default;
4570
4570
  } });
4571
- var $ = Jt();
4571
+ var $ = Ht();
4572
4572
  Object.defineProperty(t, "MissingRefError", { enumerable: !0, get: function() {
4573
4573
  return $.default;
4574
4574
  } });
@@ -4584,8 +4584,8 @@ function Ui() {
4584
4584
  formatExclusiveMaximum: { okStr: "<", ok: n.LT, fail: n.GTE },
4585
4585
  formatExclusiveMinimum: { okStr: ">", ok: n.GT, fail: n.LTE }
4586
4586
  }, s = {
4587
- message: ({ keyword: u, schemaCode: p }) => (0, r.str)`should be ${a[u].okStr} ${p}`,
4588
- params: ({ keyword: u, schemaCode: p }) => (0, r._)`{comparison: ${a[u].okStr}, limit: ${p}}`
4587
+ message: ({ keyword: u, schemaCode: h }) => (0, r.str)`should be ${a[u].okStr} ${h}`,
4588
+ params: ({ keyword: u, schemaCode: h }) => (0, r._)`{comparison: ${a[u].okStr}, limit: ${h}}`
4589
4589
  };
4590
4590
  e.formatLimitDefinition = {
4591
4591
  keyword: Object.keys(a),
@@ -4594,16 +4594,16 @@ function Ui() {
4594
4594
  $data: !0,
4595
4595
  error: s,
4596
4596
  code(u) {
4597
- const { gen: p, data: y, schemaCode: d, keyword: v, it: $ } = u, { opts: S, self: w } = $;
4597
+ const { gen: h, data: y, schemaCode: d, keyword: v, it: $ } = u, { opts: S, self: w } = $;
4598
4598
  if (!S.validateFormats)
4599
4599
  return;
4600
4600
  const g = new t.KeywordCxt($, w.RULES.all.format.definition, "format");
4601
4601
  g.$data ? f() : l();
4602
4602
  function f() {
4603
- const c = p.scopeValue("formats", {
4603
+ const c = h.scopeValue("formats", {
4604
4604
  ref: w.formats,
4605
4605
  code: S.code.formats
4606
- }), m = p.const("fmt", (0, r._)`${c}[${g.schemaCode}]`);
4606
+ }), m = h.const("fmt", (0, r._)`${c}[${g.schemaCode}]`);
4607
4607
  u.fail$data((0, r.or)((0, r._)`typeof ${m} != "object"`, (0, r._)`${m} instanceof RegExp`, (0, r._)`typeof ${m}.compare != "function"`, i(m)));
4608
4608
  }
4609
4609
  function l() {
@@ -4612,7 +4612,7 @@ function Ui() {
4612
4612
  return;
4613
4613
  if (typeof m != "object" || m instanceof RegExp || typeof m.compare != "function")
4614
4614
  throw new Error(`"${v}": format "${c}" does not define "compare" function`);
4615
- const _ = p.scopeValue("formats", {
4615
+ const _ = h.scopeValue("formats", {
4616
4616
  key: c,
4617
4617
  ref: m,
4618
4618
  code: S.code.formats ? (0, r._)`${S.code.formats}${(0, r.getProperty)(c)}` : void 0
@@ -4635,9 +4635,9 @@ function Ki() {
4635
4635
  Object.defineProperty(t, "__esModule", { value: !0 });
4636
4636
  const r = qa(), n = Ui(), a = G(), s = new a.Name("fullFormats"), o = new a.Name("fastFormats"), u = (y, d = { keywords: !0 }) => {
4637
4637
  if (Array.isArray(d))
4638
- return p(y, d, r.fullFormats, s), y;
4638
+ return h(y, d, r.fullFormats, s), y;
4639
4639
  const [v, $] = d.mode === "fast" ? [r.fastFormats, o] : [r.fullFormats, s], S = d.formats || r.formatNames;
4640
- return p(y, S, v, $), d.keywords && (0, n.default)(y), y;
4640
+ return h(y, S, v, $), d.keywords && (0, n.default)(y), y;
4641
4641
  };
4642
4642
  u.get = (y, d = "full") => {
4643
4643
  const $ = (d === "fast" ? r.fastFormats : r.fullFormats)[y];
@@ -4645,7 +4645,7 @@ function Ki() {
4645
4645
  throw new Error(`Unknown format "${y}"`);
4646
4646
  return $;
4647
4647
  };
4648
- function p(y, d, v, $) {
4648
+ function h(y, d, v, $) {
4649
4649
  var S, w;
4650
4650
  (S = (w = y.opts.code).formats) !== null && S !== void 0 || (w.formats = (0, a._)`require("ajv-formats/dist/formats").${$}`);
4651
4651
  for (const g of d)
@@ -4659,7 +4659,7 @@ const Wi = /* @__PURE__ */ ws(Bi);
4659
4659
  function Ns(e) {
4660
4660
  return e.split("/").slice(1).map((t) => t.replace(/~1/g, "/").replace(/~0/g, "~"));
4661
4661
  }
4662
- function Hi(e) {
4662
+ function Ji(e) {
4663
4663
  const t = Ns(e.instancePath || "");
4664
4664
  if (e.keyword === "required") {
4665
4665
  const r = e.params.missingProperty;
@@ -4675,19 +4675,19 @@ function Hi(e) {
4675
4675
  }
4676
4676
  return t.length > 0 ? t : void 0;
4677
4677
  }
4678
- function Ji(e) {
4678
+ function Hi(e) {
4679
4679
  return e.message ?? `${e.keyword} validation failed`;
4680
4680
  }
4681
4681
  function Gi(e) {
4682
4682
  return e.reduce((t, r) => {
4683
- const n = Hi(r);
4683
+ const n = Ji(r);
4684
4684
  if (n == null) return t;
4685
4685
  let a = t;
4686
4686
  for (const s of n) {
4687
4687
  const o = s;
4688
4688
  a.dependencies == null && (a.dependencies = {}), a.dependencies[o] == null && (a.dependencies[o] = {}), a = a.dependencies[o];
4689
4689
  }
4690
- return a.message = Ji(r), t;
4690
+ return a.message = Hi(r), t;
4691
4691
  }, {});
4692
4692
  }
4693
4693
  function kr(e) {
@@ -4730,9 +4730,9 @@ async function es(e, t, r) {
4730
4730
  const n = (await (() => {
4731
4731
  switch (e) {
4732
4732
  case "2020-12":
4733
- return import("./2020-B4xCW_nu.js").then((s) => s._);
4733
+ return import("./2020-D0-tZTo7.js").then((s) => s._);
4734
4734
  case "2019-09":
4735
- return import("./2019-sCKLAY8c.js").then((s) => s._);
4735
+ return import("./2019-DnG5Y5sm.js").then((s) => s._);
4736
4736
  case "draft-07":
4737
4737
  return Promise.resolve().then(() => iu);
4738
4738
  }
@@ -4805,14 +4805,14 @@ async function Zi(e, t, r, n) {
4805
4805
  const a = /* @__PURE__ */ new Set();
4806
4806
  if (n && n.length > 0)
4807
4807
  for (const u of n) {
4808
- const p = u.$id;
4809
- typeof p == "string" && p.length > 0 && a.add(p);
4808
+ const h = u.$id;
4809
+ typeof h == "string" && h.length > 0 && a.add(h);
4810
4810
  }
4811
4811
  const s = [], o = 5;
4812
4812
  for (let u = 0; u < o; u++) {
4813
- const p = ts(t), y = s.flatMap(
4813
+ const h = ts(t), y = s.flatMap(
4814
4814
  ($) => ts($)
4815
- ), d = /* @__PURE__ */ new Set([...p, ...y]), v = [];
4815
+ ), d = /* @__PURE__ */ new Set([...h, ...y]), v = [];
4816
4816
  for (const $ of d)
4817
4817
  if (!a.has($)) {
4818
4818
  if (e.getSchema($)) {
@@ -4855,10 +4855,10 @@ async function Qi(e, t) {
4855
4855
  const $ = d.getSchema(s ?? o) ?? d.compile(v);
4856
4856
  return { ok: !0, value: { ajv: d, validate: $ } };
4857
4857
  }
4858
- const p = await es(r, n, !0);
4859
- if (t?.externalSchemas && t.externalSchemas.length > 0 && Is(p, t.externalSchemas), t?.refResolver) {
4858
+ const h = await es(r, n, !0);
4859
+ if (t?.externalSchemas && t.externalSchemas.length > 0 && Is(h, t.externalSchemas), t?.refResolver) {
4860
4860
  const d = await Zi(
4861
- p,
4861
+ h,
4862
4862
  e,
4863
4863
  t.refResolver,
4864
4864
  t.externalSchemas
@@ -4866,8 +4866,8 @@ async function Qi(e, t) {
4866
4866
  if (d != null)
4867
4867
  return { ok: !1, error: d };
4868
4868
  }
4869
- const y = p.compile(e);
4870
- return { ok: !0, value: { ajv: p, validate: y } };
4869
+ const y = h.compile(e);
4870
+ return { ok: !0, value: { ajv: h, validate: y } };
4871
4871
  } catch (r) {
4872
4872
  return { ok: !1, error: r instanceof Error ? r.message : String(r) };
4873
4873
  }
@@ -4890,11 +4890,11 @@ class Nr {
4890
4890
  path: s,
4891
4891
  ajv: o,
4892
4892
  isPropertyRequired: u,
4893
- suppressLabel: p,
4893
+ suppressLabel: h,
4894
4894
  schemaConflicts: y,
4895
4895
  notViolations: d
4896
4896
  } = t;
4897
- this.schema = r, this.definition = n, this.horizontal = a, this.path = s, this.ajv = o, this.isPropertyRequired = u ?? !1, this.suppressLabel = p ?? !1, this.schemaConflicts = y ?? [], this.notViolations = d ?? [];
4897
+ this.schema = r, this.definition = n, this.horizontal = a, this.path = s, this.ajv = o, this.isPropertyRequired = u ?? !1, this.suppressLabel = h ?? !1, this.schemaConflicts = y ?? [], this.notViolations = d ?? [];
4898
4898
  }
4899
4899
  with = (t) => new Nr({
4900
4900
  schema: t.schema ?? this.schema,
@@ -5110,7 +5110,7 @@ function Ir(e, t = []) {
5110
5110
  ) : o[l] = i;
5111
5111
  }
5112
5112
  const {
5113
- type: p,
5113
+ type: h,
5114
5114
  required: y,
5115
5115
  properties: d,
5116
5116
  allOf: v,
@@ -5145,15 +5145,15 @@ function Ir(e, t = []) {
5145
5145
  y.has(v) && d.add(v);
5146
5146
  u = d;
5147
5147
  }
5148
- const p = Array.from(u ?? []);
5149
- if (p.length === 0) {
5148
+ const h = Array.from(u ?? []);
5149
+ if (h.length === 0) {
5150
5150
  const y = a.map((d) => Array.from(d));
5151
5151
  r.push({
5152
5152
  path: [...t, "type"],
5153
5153
  message: "Incompatible types in allOf (no common types)",
5154
5154
  conflictingValues: y
5155
5155
  });
5156
- } else p.length === 1 ? n.type = p[0] : n.type = p;
5156
+ } else h.length === 1 ? n.type = h[0] : n.type = h;
5157
5157
  }
5158
5158
  return s.length > 0 && (n.required = [...new Set(s)]), Object.keys(o).length > 0 && (n.properties = o), {
5159
5159
  mergedSchema: n,
@@ -5201,8 +5201,8 @@ function so(e, t, r, n = []) {
5201
5201
  for (const [g, f] of Object.entries(w))
5202
5202
  Object.prototype.hasOwnProperty.call(v, g) && a.push(f);
5203
5203
  }
5204
- const p = [e, ...a], { mergedSchema: y, conflicts: d } = Ir(
5205
- p,
5204
+ const h = [e, ...a], { mergedSchema: y, conflicts: d } = Ir(
5205
+ h,
5206
5206
  n
5207
5207
  );
5208
5208
  if (u.length > 0) {
@@ -5227,7 +5227,7 @@ function As(e, t, r) {
5227
5227
  }
5228
5228
  return null;
5229
5229
  }
5230
- function Je(e, t, r) {
5230
+ function He(e, t, r) {
5231
5231
  const n = /* @__PURE__ */ new Set();
5232
5232
  if (!t || typeof t != "object")
5233
5233
  return n;
@@ -5245,9 +5245,9 @@ function Je(e, t, r) {
5245
5245
  e.properties && Object.keys(e.properties).forEach((u) => {
5246
5246
  u in t && o.add(u);
5247
5247
  }), e.patternProperties && Object.keys(t).forEach((u) => {
5248
- Object.keys(e.patternProperties).forEach((p) => {
5248
+ Object.keys(e.patternProperties).forEach((h) => {
5249
5249
  try {
5250
- new RegExp(p).test(u) && o.add(u);
5250
+ new RegExp(h).test(u) && o.add(u);
5251
5251
  } catch {
5252
5252
  }
5253
5253
  });
@@ -5256,15 +5256,15 @@ function Je(e, t, r) {
5256
5256
  });
5257
5257
  }
5258
5258
  e.allOf && e.allOf.forEach((o) => {
5259
- typeof o == "object" && Je(o, t, r).forEach((p) => n.add(p));
5259
+ typeof o == "object" && He(o, t, r).forEach((h) => n.add(h));
5260
5260
  });
5261
5261
  const a = As(e, t, r);
5262
- a && Je(a, t, r).forEach((u) => n.add(u));
5262
+ a && He(a, t, r).forEach((u) => n.add(u));
5263
5263
  const s = e.dependentSchemas;
5264
5264
  return s && Object.keys(s).forEach((o) => {
5265
5265
  if (o in t) {
5266
5266
  const u = s[o];
5267
- typeof u == "object" && Je(
5267
+ typeof u == "object" && He(
5268
5268
  u,
5269
5269
  t,
5270
5270
  r
@@ -5273,7 +5273,7 @@ function Je(e, t, r) {
5273
5273
  }), e.dependencies && Object.keys(e.dependencies).forEach((o) => {
5274
5274
  if (o in t) {
5275
5275
  const u = e.dependencies[o];
5276
- typeof u == "object" && !Array.isArray(u) && Je(u, t, r).forEach((y) => n.add(y));
5276
+ typeof u == "object" && !Array.isArray(u) && He(u, t, r).forEach((y) => n.add(y));
5277
5277
  }
5278
5278
  }), n;
5279
5279
  }
@@ -5315,8 +5315,8 @@ function Ts(e) {
5315
5315
  size: s = "sm",
5316
5316
  keyFor: o = (d) => String(d),
5317
5317
  parseKey: u = (d) => d
5318
- } = e, p = t.length;
5319
- if ((a === "auto" ? p <= 3 ? "segmented" : "select" : a) === "segmented") {
5318
+ } = e, h = t.length;
5319
+ if ((a === "auto" ? h <= 3 ? "segmented" : "select" : a) === "segmented") {
5320
5320
  const d = Object.fromEntries(
5321
5321
  t.map((v) => [o(v.value), v.label])
5322
5322
  );
@@ -5426,11 +5426,11 @@ function uo(e) {
5426
5426
  }
5427
5427
  return {};
5428
5428
  }
5429
- const pr = ["description", "comment", "notes", "text"];
5429
+ const hr = ["description", "comment", "notes", "text"];
5430
5430
  function co(e) {
5431
- if (typeof e == "boolean") return pr;
5431
+ if (typeof e == "boolean") return hr;
5432
5432
  const t = e["x:ui"];
5433
- return t && Array.isArray(t.textAreaTriggers) ? [...pr, ...t.textAreaTriggers] : pr;
5433
+ return t && Array.isArray(t.textAreaTriggers) ? [...hr, ...t.textAreaTriggers] : hr;
5434
5434
  }
5435
5435
  function Ms(e) {
5436
5436
  if (typeof e == "boolean") return;
@@ -5576,14 +5576,14 @@ function lo(e) {
5576
5576
  }
5577
5577
  }
5578
5578
  const fo = (e) => {
5579
- const { value: t, onBlur: r, onChange: n, onInput: a, after: s, disabled: o, ...u } = e, p = ms(t, o, n);
5579
+ const { value: t, onBlur: r, onChange: n, onInput: a, after: s, disabled: o, ...u } = e, h = ms(t, o, n);
5580
5580
  return ia({
5581
5581
  ...u,
5582
5582
  value: ne.map(t, (y) => y ?? void 0),
5583
5583
  onChange: n != null ? (y) => n(y ?? null) : void 0,
5584
5584
  onInput: a != null ? (y) => a(y ?? null) : void 0,
5585
5585
  onBlur: r,
5586
- after: s != null ? we(p, s) : p
5586
+ after: s != null ? we(h, s) : h
5587
5587
  });
5588
5588
  };
5589
5589
  function rs({
@@ -5599,14 +5599,14 @@ function rs({
5599
5599
  controller: le(r)
5600
5600
  });
5601
5601
  case "date":
5602
- return Zt(ha, {
5602
+ return Zt(pa, {
5603
5603
  ...t,
5604
5604
  controller: le(r),
5605
5605
  toInput: (a) => a == null ? null : new Date(a),
5606
5606
  fromInput: (a) => a?.toISOString().split("T")[0] ?? null
5607
5607
  });
5608
5608
  case "date-time":
5609
- return Zt(pa, {
5609
+ return Zt(ha, {
5610
5610
  ...t,
5611
5611
  controller: le(r),
5612
5612
  toInput: (a) => a == null ? null : new Date(a),
@@ -5767,7 +5767,7 @@ function gr({
5767
5767
  });
5768
5768
  }
5769
5769
  }
5770
- function po(e) {
5770
+ function ho(e) {
5771
5771
  const t = Ar(e.definition, e.name);
5772
5772
  if (t?.widget === "slider")
5773
5773
  return { widget: "slider", options: t.options };
@@ -5787,7 +5787,7 @@ function Ft({
5787
5787
  }) {
5788
5788
  if (e.isWriteOnly && !e.shouldShowWriteOnly)
5789
5789
  return we();
5790
- const r = e.definition, n = po(e), a = {
5790
+ const r = e.definition, n = ho(e), a = {
5791
5791
  ...Ne({ ctx: e }),
5792
5792
  placeholder: Xe(e.definition, String),
5793
5793
  min: r.minimum,
@@ -5848,12 +5848,12 @@ function Ft({
5848
5848
  }
5849
5849
  }
5850
5850
  function ns(e) {
5851
- return `${ho(e)} 000,000.00`;
5851
+ return `${po(e)} 000,000.00`;
5852
5852
  }
5853
5853
  function ss() {
5854
5854
  return "000.00%";
5855
5855
  }
5856
- function ho(e) {
5856
+ function po(e) {
5857
5857
  return {
5858
5858
  USD: "$",
5859
5859
  EUR: "€",
@@ -5910,11 +5910,11 @@ function Vs({
5910
5910
  e.change(null);
5911
5911
  });
5912
5912
  }
5913
- let hr = /* @__PURE__ */ new WeakMap(), as = /* @__PURE__ */ new WeakMap();
5913
+ let pr = /* @__PURE__ */ new WeakMap(), as = /* @__PURE__ */ new WeakMap();
5914
5914
  function Ds(e, t) {
5915
5915
  const r = typeof t == "object" && t != null ? t : null;
5916
5916
  if (r != null) {
5917
- const o = hr.get(r)?.get(e);
5917
+ const o = pr.get(r)?.get(e);
5918
5918
  if (o != null) return o;
5919
5919
  }
5920
5920
  let n = e;
@@ -5937,12 +5937,12 @@ function Ds(e, t) {
5937
5937
  console.warn(`resolveRef: could not resolve JSON Pointer ${s}`);
5938
5938
  break;
5939
5939
  }
5940
- const { $ref: u, ...p } = n;
5941
- n = { ...o, ...p };
5940
+ const { $ref: u, ...h } = n;
5941
+ n = { ...o, ...h };
5942
5942
  }
5943
5943
  if (r != null) {
5944
- let s = hr.get(r);
5945
- s == null && (s = /* @__PURE__ */ new WeakMap(), hr.set(r, s)), s.set(e, n);
5944
+ let s = pr.get(r);
5945
+ s == null && (s = /* @__PURE__ */ new WeakMap(), pr.set(r, s)), s.set(e, n);
5946
5946
  }
5947
5947
  return n;
5948
5948
  }
@@ -5975,7 +5975,7 @@ function Ls(e, t) {
5975
5975
  function Fs(e, t, r) {
5976
5976
  let n = e;
5977
5977
  const a = /* @__PURE__ */ new Set(), s = (o, u) => {
5978
- const { $ref: p, ...y } = u;
5978
+ const { $ref: h, ...y } = u;
5979
5979
  return { ...o, ...y };
5980
5980
  };
5981
5981
  for (; zs(n); ) {
@@ -6001,8 +6001,8 @@ function Fs(e, t, r) {
6001
6001
  );
6002
6002
  break;
6003
6003
  }
6004
- const u = o.indexOf("#"), p = u >= 0 ? o.slice(0, u) : o;
6005
- let y = r.getSchema(o) || r.getSchema(p);
6004
+ const u = o.indexOf("#"), h = u >= 0 ? o.slice(0, u) : o;
6005
+ let y = r.getSchema(o) || r.getSchema(h);
6006
6006
  if (!y)
6007
6007
  try {
6008
6008
  y = r.compile({ $ref: o });
@@ -6020,20 +6020,20 @@ function Fs(e, t, r) {
6020
6020
  function mo({
6021
6021
  conflicts: e
6022
6022
  }) {
6023
- return e.length === 0 ? vs : ps(
6023
+ return e.length === 0 ? vs : hs(
6024
6024
  {
6025
6025
  variant: "warning",
6026
6026
  tone: "prominent",
6027
6027
  title: "Schema Conflicts Detected",
6028
6028
  class: "bc-schema-conflicts-banner"
6029
6029
  },
6030
- H.ul(
6030
+ J.ul(
6031
6031
  F.style("margin: 0; padding-left: 1.25rem; list-style-type: disc;"),
6032
6032
  ...e.map(
6033
- (t) => H.li(
6033
+ (t) => J.li(
6034
6034
  F.style("margin-bottom: 0.25rem;"),
6035
6035
  t.message,
6036
- t.path.length > 0 ? H.code(
6036
+ t.path.length > 0 ? J.code(
6037
6037
  F.style(
6038
6038
  "margin-left: 0.5rem; font-size: 0.75rem; opacity: 0.7;"
6039
6039
  ),
@@ -6047,20 +6047,20 @@ function mo({
6047
6047
  function yo({
6048
6048
  violations: e
6049
6049
  }) {
6050
- return e.length === 0 ? vs : ps(
6050
+ return e.length === 0 ? vs : hs(
6051
6051
  {
6052
6052
  variant: "danger",
6053
6053
  tone: "prominent",
6054
6054
  title: "Schema Violations Detected",
6055
6055
  class: "bc-not-violations-banner"
6056
6056
  },
6057
- H.ul(
6057
+ J.ul(
6058
6058
  F.style("margin: 0; padding-left: 1.25rem; list-style-type: disc;"),
6059
6059
  ...e.map(
6060
- (t) => H.li(
6060
+ (t) => J.li(
6061
6061
  F.style("margin-bottom: 0.25rem;"),
6062
6062
  t.message,
6063
- t.path.length > 0 ? H.code(
6063
+ t.path.length > 0 ? J.code(
6064
6064
  F.style(
6065
6065
  "margin-left: 0.5rem; font-size: 0.75rem; opacity: 0.7;"
6066
6066
  ),
@@ -6082,15 +6082,15 @@ function go({
6082
6082
  if (u !== void 0)
6083
6083
  t.change(u);
6084
6084
  else {
6085
- const p = e.definition;
6086
- p.type === "string" ? t.change("") : p.type === "number" || p.type === "integer" ? t.change(0) : p.type === "boolean" ? t.change(!1) : p.type === "array" ? t.change([]) : p.type === "object" ? t.change({}) : t.change(null);
6085
+ const h = e.definition;
6086
+ h.type === "string" ? t.change("") : h.type === "number" || h.type === "integer" ? t.change(0) : h.type === "boolean" ? t.change(!1) : h.type === "array" ? t.change([]) : h.type === "object" ? t.change({}) : t.change(null);
6087
6087
  }
6088
6088
  } else
6089
6089
  t.change(void 0);
6090
6090
  };
6091
6091
  return de(
6092
6092
  Ee(() => ne.dispose(n)),
6093
- H.div(
6093
+ J.div(
6094
6094
  F.class("bc-presence-toggle"),
6095
6095
  Ye({
6096
6096
  layout: "horizontal",
@@ -6252,8 +6252,8 @@ function wo({
6252
6252
  if (!a)
6253
6253
  return r;
6254
6254
  const s = { ...os, ...n }, o = So(t), u = $o(a, o);
6255
- switch (s.clearOnHide && u.on((p) => {
6256
- !p && t.signal.value !== void 0 && t.change(void 0);
6255
+ switch (s.clearOnHide && u.on((h) => {
6256
+ !h && t.signal.value !== void 0 && t.change(void 0);
6257
6257
  }), s.behavior) {
6258
6258
  case "unmount":
6259
6259
  return Ge(
@@ -6313,7 +6313,7 @@ function Oo(e, t, r) {
6313
6313
  patternProps: s,
6314
6314
  apSchema: o,
6315
6315
  canRemove: u,
6316
- lockKeyAfterSet: p,
6316
+ lockKeyAfterSet: h,
6317
6317
  validatePropertyName: y
6318
6318
  } = r, d = n.field(e), v = Re(e), $ = Re(null);
6319
6319
  let S = o;
@@ -6347,7 +6347,7 @@ function Oo(e, t, r) {
6347
6347
  delete m[e], m[i] = _, n.change(m);
6348
6348
  }, g = Sr(
6349
6349
  Pr,
6350
- (l) => hs({
6350
+ (l) => ps({
6351
6351
  size: "xs",
6352
6352
  label: l.$.removeItem,
6353
6353
  disabled: !u(
@@ -6362,9 +6362,9 @@ function Oo(e, t, r) {
6362
6362
  })
6363
6363
  ), f = ne.map(
6364
6364
  d.signal,
6365
- (l) => p && l != null
6365
+ (l) => h && l != null
6366
6366
  );
6367
- return H.div(
6367
+ return J.div(
6368
6368
  Ee(v, $, () => ne.dispose(f)),
6369
6369
  F.class("bc-object-helpers__row"),
6370
6370
  _s.gridTemplateColumns("2fr 3fr min-content"),
@@ -6379,21 +6379,21 @@ function Oo(e, t, r) {
6379
6379
  }),
6380
6380
  error: bs(
6381
6381
  $,
6382
- (l) => H.div(F.class("bc-object-helpers__error"), l)
6382
+ (l) => J.div(F.class("bc-object-helpers__error"), l)
6383
6383
  ),
6384
- description: Object.keys(s).length > 0 ? H.div(
6384
+ description: Object.keys(s).length > 0 ? J.div(
6385
6385
  F.class("bc-object-helpers__description"),
6386
6386
  "Allowed patterns: ",
6387
6387
  Object.keys(s).join(", ")
6388
6388
  ) : null
6389
6389
  }),
6390
- H.div(
6390
+ J.div(
6391
6391
  Me({
6392
6392
  ctx: a.with({ definition: S, suppressLabel: !0 }).append(e),
6393
6393
  controller: d
6394
6394
  })
6395
6395
  ),
6396
- H.div(F.class("bc-object-helpers__remove"), g)
6396
+ J.div(F.class("bc-object-helpers__remove"), g)
6397
6397
  );
6398
6398
  }
6399
6399
  function jo(e, t, r) {
@@ -6403,7 +6403,7 @@ function jo(e, t, r) {
6403
6403
  patternProps: s,
6404
6404
  apSchema: o,
6405
6405
  unevaluatedProps: u,
6406
- canRemove: p,
6406
+ canRemove: h,
6407
6407
  lockKeyAfterSet: y,
6408
6408
  validatePropertyName: d
6409
6409
  } = r, v = n.field(e), $ = Re(e), S = Re(null);
@@ -6442,15 +6442,15 @@ function jo(e, t, r) {
6442
6442
  delete _[e], _[c] = b, n.change(_);
6443
6443
  }, f = Sr(
6444
6444
  Pr,
6445
- (i) => hs({
6445
+ (i) => ps({
6446
6446
  size: "xs",
6447
6447
  label: i.$.removeItem,
6448
- disabled: !p(
6448
+ disabled: !h(
6449
6449
  Object.keys(ne.get(n.signal) ?? {}).length
6450
6450
  ),
6451
6451
  onClick: () => {
6452
6452
  const c = Object.keys(ne.get(n.signal) ?? {}).length;
6453
- if (!p(c)) return;
6453
+ if (!h(c)) return;
6454
6454
  const m = { ...ne.get(n.signal) ?? {} };
6455
6455
  delete m[e], n.change(m);
6456
6456
  }
@@ -6459,7 +6459,7 @@ function jo(e, t, r) {
6459
6459
  v.signal,
6460
6460
  (i) => y && i != null
6461
6461
  );
6462
- return H.div(
6462
+ return J.div(
6463
6463
  Ee($, S, () => ne.dispose(l)),
6464
6464
  F.class("bc-object-helpers__row"),
6465
6465
  _s.gridTemplateColumns("2fr 3fr min-content"),
@@ -6474,24 +6474,24 @@ function jo(e, t, r) {
6474
6474
  }),
6475
6475
  error: bs(
6476
6476
  S,
6477
- (i) => H.div(F.class("bc-object-helpers__error"), i)
6477
+ (i) => J.div(F.class("bc-object-helpers__error"), i)
6478
6478
  ),
6479
- description: H.div(
6479
+ description: J.div(
6480
6480
  F.class("bc-object-helpers__description"),
6481
6481
  u === !1 ? "Unevaluated property (not allowed by schema)" : "Unevaluated property",
6482
- Object.keys(s).length > 0 ? H.span(
6482
+ Object.keys(s).length > 0 ? J.span(
6483
6483
  " • Allowed patterns: ",
6484
6484
  Object.keys(s).join(", ")
6485
6485
  ) : null
6486
6486
  )
6487
6487
  }),
6488
- H.div(
6488
+ J.div(
6489
6489
  Me({
6490
6490
  ctx: a.with({ definition: w, suppressLabel: !0 }).append(e),
6491
6491
  controller: v
6492
6492
  })
6493
6493
  ),
6494
- H.div(F.class("bc-object-helpers__remove"), f)
6494
+ J.div(F.class("bc-object-helpers__remove"), f)
6495
6495
  );
6496
6496
  }
6497
6497
  function ko(e) {
@@ -6507,10 +6507,10 @@ function Ro({
6507
6507
  title: e,
6508
6508
  children: t
6509
6509
  }) {
6510
- return H.fieldset(
6510
+ return J.fieldset(
6511
6511
  F.class("bc-fieldset"),
6512
- e ? H.legend(F.class("bc-fieldset__legend"), e) : null,
6513
- H.div(
6512
+ e ? J.legend(F.class("bc-fieldset__legend"), e) : null,
6513
+ J.div(
6514
6514
  F.class("bc-fieldset__content"),
6515
6515
  de(F.class("bc-stack--gap-1"), ...t)
6516
6516
  )
@@ -6542,7 +6542,7 @@ function Io({
6542
6542
  }
6543
6543
  return "bc-schema-grid bc-schema-grid--cols-1";
6544
6544
  });
6545
- return H.div(
6545
+ return J.div(
6546
6546
  F.class(r),
6547
6547
  F.class("bc-schema-grid--gap-4"),
6548
6548
  ...t
@@ -6555,15 +6555,15 @@ function Ao({
6555
6555
  if (!e || Object.keys(e).length === 0)
6556
6556
  return Co({ title: "Properties", children: t });
6557
6557
  const r = Re(Object.keys(e)[0]), n = Object.entries(e);
6558
- return H.div(
6558
+ return J.div(
6559
6559
  Ee(r),
6560
6560
  F.class("bc-tabs"),
6561
6561
  // Tab headers
6562
- H.div(
6562
+ J.div(
6563
6563
  F.class("bc-tabs__header"),
6564
6564
  F.role("tablist"),
6565
6565
  ...n.map(
6566
- ([a], s) => H.button(
6566
+ ([a], s) => J.button(
6567
6567
  F.type("button"),
6568
6568
  F.class("bc-tabs__tab"),
6569
6569
  F.class(
@@ -6585,8 +6585,8 @@ function Ao({
6585
6585
  break;
6586
6586
  case "ArrowRight":
6587
6587
  o.preventDefault();
6588
- const p = s < n.length - 1 ? s + 1 : 0;
6589
- r.set(n[p][0]);
6588
+ const h = s < n.length - 1 ? s + 1 : 0;
6589
+ r.set(n[h][0]);
6590
6590
  break;
6591
6591
  case "Home":
6592
6592
  o.preventDefault(), r.set(n[0][0]);
@@ -6601,10 +6601,10 @@ function Ao({
6601
6601
  )
6602
6602
  ),
6603
6603
  // Tab content
6604
- H.div(
6604
+ J.div(
6605
6605
  F.class("bc-tabs__content"),
6606
6606
  ...n.map(
6607
- ([a, s]) => H.div(
6607
+ ([a, s]) => J.div(
6608
6608
  F.class("bc-tabs__panel"),
6609
6609
  F.class(
6610
6610
  ie(r)(
@@ -6625,15 +6625,15 @@ function Co({
6625
6625
  title: e,
6626
6626
  children: t
6627
6627
  }) {
6628
- return H.div(
6628
+ return J.div(
6629
6629
  F.class("bc-tabs"),
6630
- H.div(
6630
+ J.div(
6631
6631
  F.class("bc-tabs__header"),
6632
- H.div(F.class("bc-tabs__tab bc-tabs__tab--active"), e)
6632
+ J.div(F.class("bc-tabs__tab bc-tabs__tab--active"), e)
6633
6633
  ),
6634
- H.div(
6634
+ J.div(
6635
6635
  F.class("bc-tabs__content"),
6636
- H.div(
6636
+ J.div(
6637
6637
  F.class("bc-tabs__panel bc-tabs__panel--active"),
6638
6638
  de(F.class("bc-stack--gap-1"), ...t)
6639
6639
  )
@@ -6647,32 +6647,32 @@ function To({
6647
6647
  if (!e || Object.keys(e).length === 0)
6648
6648
  return qo({ title: "Properties", children: t });
6649
6649
  const r = Object.entries(e), n = Re(new Set([r[0]?.[0]].filter(Boolean)));
6650
- return H.div(
6650
+ return J.div(
6651
6651
  Ee(n),
6652
6652
  F.class("bc-accordion"),
6653
6653
  ...r.map(([a, s]) => {
6654
6654
  const o = ie(n)(
6655
6655
  (u) => u.has(a)
6656
6656
  );
6657
- return H.div(
6657
+ return J.div(
6658
6658
  Ee(o),
6659
6659
  F.class("bc-accordion__item"),
6660
- H.button(
6660
+ J.button(
6661
6661
  F.type("button"),
6662
6662
  F.class("bc-accordion__header"),
6663
6663
  Ra.expanded(o),
6664
6664
  xe.click(() => {
6665
- const u = n.value, p = new Set(u);
6666
- p.has(a) ? p.delete(a) : p.add(a), n.set(p);
6665
+ const u = n.value, h = new Set(u);
6666
+ h.has(a) ? h.delete(a) : h.add(a), n.set(h);
6667
6667
  }),
6668
6668
  xe.keydown((u) => {
6669
6669
  if (u.key === "Enter" || u.key === " ") {
6670
6670
  u.preventDefault();
6671
- const p = n.value, y = new Set(p);
6671
+ const h = n.value, y = new Set(h);
6672
6672
  y.has(a) ? y.delete(a) : y.add(a), n.set(y);
6673
6673
  }
6674
6674
  }),
6675
- H.span(a),
6675
+ J.span(a),
6676
6676
  $s({
6677
6677
  icon: ie(o)(
6678
6678
  (u) => u ? "chevron-up" : "chevron-down"
@@ -6680,7 +6680,7 @@ function To({
6680
6680
  size: "sm"
6681
6681
  })
6682
6682
  ),
6683
- H.div(
6683
+ J.div(
6684
6684
  F.class("bc-accordion__content"),
6685
6685
  F.class(
6686
6686
  ie(o)(
@@ -6689,7 +6689,7 @@ function To({
6689
6689
  ),
6690
6690
  de(
6691
6691
  F.class("bc-stack--gap-1"),
6692
- ...t.filter((u, p) => s.length === 0 || p < s.length)
6692
+ ...t.filter((u, h) => s.length === 0 || h < s.length)
6693
6693
  )
6694
6694
  )
6695
6695
  );
@@ -6701,16 +6701,16 @@ function qo({
6701
6701
  children: t
6702
6702
  }) {
6703
6703
  const r = Re(!0);
6704
- return H.div(
6704
+ return J.div(
6705
6705
  Ee(r),
6706
6706
  F.class("bc-accordion"),
6707
- H.div(
6707
+ J.div(
6708
6708
  F.class("bc-accordion__item"),
6709
- H.button(
6709
+ J.button(
6710
6710
  F.type("button"),
6711
6711
  F.class("bc-accordion__header"),
6712
6712
  xe.click(() => r.set(!r.value)),
6713
- H.span(e),
6713
+ J.span(e),
6714
6714
  $s({
6715
6715
  icon: ie(r)(
6716
6716
  (n) => n ? "chevron-up" : "chevron-down"
@@ -6718,7 +6718,7 @@ function qo({
6718
6718
  size: "sm"
6719
6719
  })
6720
6720
  ),
6721
- H.div(
6721
+ J.div(
6722
6722
  F.class("bc-accordion__content"),
6723
6723
  F.class(
6724
6724
  ie(r)(
@@ -6738,25 +6738,25 @@ function us(e, t, r) {
6738
6738
  let a = e;
6739
6739
  if (t.order && t.order.length > 0) {
6740
6740
  const o = /* @__PURE__ */ new Map(), u = [];
6741
- t.order.forEach((p) => {
6742
- const y = n.get(p);
6743
- y && o.set(p, y);
6744
- }), r.forEach((p, y) => {
6745
- !t.order.includes(p) && e[y] && u.push(e[y]);
6741
+ t.order.forEach((h) => {
6742
+ const y = n.get(h);
6743
+ y && o.set(h, y);
6744
+ }), r.forEach((h, y) => {
6745
+ !t.order.includes(h) && e[y] && u.push(e[y]);
6746
6746
  }), a = [...Array.from(o.values()), ...u];
6747
6747
  }
6748
6748
  let s;
6749
6749
  if (t.groups && Object.keys(t.groups).length > 0) {
6750
6750
  s = {};
6751
6751
  const o = /* @__PURE__ */ new Set();
6752
- Object.entries(t.groups).forEach(([p, y]) => {
6753
- s[p] = [], y.forEach((d) => {
6752
+ Object.entries(t.groups).forEach(([h, y]) => {
6753
+ s[h] = [], y.forEach((d) => {
6754
6754
  const v = n.get(d);
6755
- v && (s[p].push(v), o.add(v));
6755
+ v && (s[h].push(v), o.add(v));
6756
6756
  });
6757
6757
  });
6758
6758
  const u = a.filter(
6759
- (p) => !o.has(p)
6759
+ (h) => !o.has(h)
6760
6760
  );
6761
6761
  u.length > 0 && (s.Other = u);
6762
6762
  }
@@ -6813,23 +6813,23 @@ function Bs({
6813
6813
  ), o = e.with({
6814
6814
  definition: a,
6815
6815
  schemaConflicts: [...e.schemaConflicts, ...s]
6816
- }), u = a.properties ?? {}, p = new Set(Object.keys(u)), y = Object.keys(r ?? {}), d = y.filter((h) => !p.has(h)), v = a.unevaluatedProperties, $ = Je(
6816
+ }), u = a.properties ?? {}, h = new Set(Object.keys(u)), y = Object.keys(r ?? {}), d = y.filter((p) => !h.has(p)), v = a.unevaluatedProperties, $ = He(
6817
6817
  a,
6818
6818
  r ?? {},
6819
6819
  e.ajv
6820
- ), S = d.filter((h) => !$.has(h)), w = d.filter(
6821
- (h) => $.has(h)
6820
+ ), S = d.filter((p) => !$.has(p)), w = d.filter(
6821
+ (p) => $.has(p)
6822
6822
  ), g = a.additionalProperties ?? !0, f = g !== !1, l = g === !0 || g === void 0 ? {} : g, i = a.minProperties ?? 0, c = a.maxProperties ?? 1 / 0;
6823
6823
  let m = !0, _ = null;
6824
6824
  v === !1 ? (m = !1, _ = "No unevaluated properties are allowed by schema") : v && typeof v == "object" && (m = !0);
6825
- const b = f && m && y.length < c, E = (h) => h > i, I = a.patternProperties ?? {}, q = Object.keys(I).filter(Boolean).map((h) => {
6825
+ const b = f && m && y.length < c, E = (p) => p > i, I = a.patternProperties ?? {}, q = Object.keys(I).filter(Boolean).map((p) => {
6826
6826
  try {
6827
- return new RegExp(h);
6827
+ return new RegExp(p);
6828
6828
  } catch {
6829
6829
  return null;
6830
6830
  }
6831
- }).filter((h) => h != null), D = a.propertyNames, A = (h) => {
6832
- const P = (h ?? "").trim();
6831
+ }).filter((p) => p != null), D = a.propertyNames, A = (p) => {
6832
+ const P = (p ?? "").trim();
6833
6833
  if (P === "") return { ok: !1, message: "Key cannot be empty" };
6834
6834
  if (D === !1)
6835
6835
  return { ok: !1, message: "No property names are allowed by schema" };
@@ -6840,7 +6840,7 @@ function Bs({
6840
6840
  return { ok: !1, message: R.errors?.[0]?.message ?? "Invalid property name" };
6841
6841
  } catch {
6842
6842
  }
6843
- if (!f && !p.has(P)) {
6843
+ if (!f && !h.has(P)) {
6844
6844
  if (q.length === 0)
6845
6845
  return { ok: !1, message: "Only declared properties are allowed" };
6846
6846
  if (!q.some((U) => U.test(P)))
@@ -6850,24 +6850,24 @@ function Bs({
6850
6850
  };
6851
6851
  }
6852
6852
  return { ok: !0 };
6853
- }, V = a["x:ui"], L = !!(V && typeof V == "object" && V.lockKeyAfterSet), B = (h) => {
6854
- const P = Xe(h, (U) => U);
6853
+ }, V = a["x:ui"], L = !!(V && typeof V == "object" && V.lockKeyAfterSet), B = (p) => {
6854
+ const P = Xe(p, (U) => U);
6855
6855
  if (P !== void 0) return P;
6856
- const R = h.type;
6856
+ const R = p.type;
6857
6857
  if (R === "string") return "";
6858
6858
  if (R === "number" || R === "integer") return 0;
6859
6859
  if (R === "boolean") return !1;
6860
6860
  if (R === "array") return [];
6861
6861
  if (R === "object") return {};
6862
- }, Q = (h, P) => {
6863
- const R = h, U = (Y) => P.has(Y) ? !1 : A(Y).ok;
6862
+ }, Q = (p, P) => {
6863
+ const R = p, U = (Y) => P.has(Y) ? !1 : A(Y).ok;
6864
6864
  if (U(R)) return R;
6865
6865
  let K = 1;
6866
6866
  for (; P.has(R + K) || !U(R + K); ) K++;
6867
6867
  return R + K;
6868
6868
  }, oe = Sr(
6869
6869
  Pr,
6870
- (h) => Aa(
6870
+ (p) => Aa(
6871
6871
  {
6872
6872
  variant: "outline",
6873
6873
  disabled: !b,
@@ -6887,18 +6887,18 @@ function Bs({
6887
6887
  }
6888
6888
  },
6889
6889
  F.title(_),
6890
- h.$.addLabel
6890
+ p.$.addLabel
6891
6891
  )
6892
6892
  ), ae = ko(o), te = Ca(u).filter(
6893
- ([, h]) => h !== !1
6893
+ ([, p]) => p !== !1
6894
6894
  ), M = [
6895
- ...te.map(([h]) => h),
6895
+ ...te.map(([p]) => p),
6896
6896
  ...w,
6897
6897
  ...S
6898
6898
  ], j = [
6899
6899
  // Known properties
6900
- ...te.map(([h, P]) => {
6901
- const R = h, U = t.field(R);
6900
+ ...te.map(([p, P]) => {
6901
+ const R = p, U = t.field(R);
6902
6902
  return Me({
6903
6903
  ctx: o.with({
6904
6904
  definition: P,
@@ -6911,9 +6911,9 @@ function Bs({
6911
6911
  });
6912
6912
  }),
6913
6913
  // Evaluated additional keys (pattern-matched and truly additional)
6914
- ...w.map((h) => {
6915
- const P = q.some((R) => R.test(h));
6916
- return Oo(h, P, {
6914
+ ...w.map((p) => {
6915
+ const P = q.some((R) => R.test(p));
6916
+ return Oo(p, P, {
6917
6917
  controller: t,
6918
6918
  effCtx: o,
6919
6919
  patternProps: I,
@@ -6924,9 +6924,9 @@ function Bs({
6924
6924
  });
6925
6925
  }),
6926
6926
  // Unevaluated keys (use unevaluatedProperties schema if available)
6927
- ...S.map((h) => {
6928
- const P = q.some((R) => R.test(h));
6929
- return jo(h, P, {
6927
+ ...S.map((p) => {
6928
+ const P = q.some((R) => R.test(p));
6929
+ return jo(p, P, {
6930
6930
  controller: t,
6931
6931
  effCtx: o,
6932
6932
  patternProps: I,
@@ -6983,12 +6983,12 @@ function Vo(e, t, r) {
6983
6983
  else
6984
6984
  cs(v, t) && o.push(d);
6985
6985
  }
6986
- const u = o.length > 1, p = o.length === 0;
6986
+ const u = o.length > 1, h = o.length === 0;
6987
6987
  return {
6988
6988
  matchingBranch: o.length === 1 ? o[0] : -1,
6989
6989
  validBranches: o,
6990
6990
  isAmbiguous: u,
6991
- hasNoMatch: p
6991
+ hasNoMatch: h
6992
6992
  };
6993
6993
  }
6994
6994
  function cs(e, t) {
@@ -7161,24 +7161,24 @@ function Ws({
7161
7161
  return ls(e, g, f);
7162
7162
  }
7163
7163
  return ls(e, g, f);
7164
- }), u = ne.get(o), p = Re(u >= 0 ? u : 0);
7165
- t.onDispose(p.dispose);
7164
+ }), u = ne.get(o), h = Re(u >= 0 ? u : 0);
7165
+ t.onDispose(h.dispose);
7166
7166
  let y = !1;
7167
7167
  const d = o.on((g) => {
7168
- !y && g >= 0 && p.set(g);
7168
+ !y && g >= 0 && h.set(g);
7169
7169
  });
7170
7170
  t.onDispose(d);
7171
7171
  const v = n.length, $ = (g) => {
7172
- y = !0, p.set(g);
7172
+ y = !0, h.set(g);
7173
7173
  }, S = v > 1 ? Ts({
7174
7174
  options: n.map((g, f) => ({
7175
7175
  value: f,
7176
7176
  label: a[f]
7177
7177
  })),
7178
- selected: p,
7178
+ selected: h,
7179
7179
  onChange: $
7180
7180
  // auto mode chooses segmented for <=3
7181
- }) : "", w = Kt(p, (g) => Me({
7181
+ }) : "", w = Kt(h, (g) => Me({
7182
7182
  ctx: e.with({
7183
7183
  definition: n[ne.get(g)],
7184
7184
  // Suppress inner labels only when combinator is nested (non-root)
@@ -7187,7 +7187,7 @@ function Ws({
7187
7187
  controller: t
7188
7188
  }));
7189
7189
  return we(
7190
- Ee(o, p),
7190
+ Ee(o, h),
7191
7191
  qs({
7192
7192
  ctx: e,
7193
7193
  showSelector: v > 1,
@@ -7209,8 +7209,8 @@ function Me({
7209
7209
  if (o.length > 0) {
7210
7210
  const u = o.map(
7211
7211
  ($) => Fs($, e.schema, e.ajv)
7212
- ), { mergedSchema: p, conflicts: y } = Ir(u, e.path), { allOf: d, ...v } = n;
7213
- n = { ...v, ...p }, a = e.with({
7212
+ ), { mergedSchema: h, conflicts: y } = Ir(u, e.path), { allOf: d, ...v } = n;
7213
+ n = { ...v, ...h }, a = e.with({
7214
7214
  definition: n,
7215
7215
  schemaConflicts: [...e.schemaConflicts, ...y]
7216
7216
  });
@@ -7227,7 +7227,7 @@ function Me({
7227
7227
  u && (s = [...s, u], a = a.with({ notViolations: s }));
7228
7228
  }
7229
7229
  if (n == null)
7230
- return he(
7230
+ return pe(
7231
7231
  a,
7232
7232
  t,
7233
7233
  se(
@@ -7240,7 +7240,7 @@ function Me({
7240
7240
  )
7241
7241
  );
7242
7242
  if (n.enum != null)
7243
- return he(
7243
+ return pe(
7244
7244
  a,
7245
7245
  t,
7246
7246
  se(
@@ -7253,7 +7253,7 @@ function Me({
7253
7253
  )
7254
7254
  );
7255
7255
  if (n.const != null)
7256
- return he(
7256
+ return pe(
7257
7257
  a,
7258
7258
  t,
7259
7259
  se(
@@ -7266,7 +7266,7 @@ function Me({
7266
7266
  )
7267
7267
  );
7268
7268
  if (n.anyOf != null)
7269
- return he(
7269
+ return pe(
7270
7270
  a,
7271
7271
  t,
7272
7272
  se(
@@ -7279,7 +7279,7 @@ function Me({
7279
7279
  )
7280
7280
  );
7281
7281
  if (n.oneOf != null)
7282
- return he(
7282
+ return pe(
7283
7283
  a,
7284
7284
  t,
7285
7285
  se(
@@ -7301,7 +7301,7 @@ function Me({
7301
7301
  t
7302
7302
  );
7303
7303
  if (Array.isArray(n.type)) {
7304
- const u = n.type.filter((p) => p !== "null");
7304
+ const u = n.type.filter((h) => h !== "null");
7305
7305
  if (u.length === 1 && ["string", "number", "integer", "boolean"].includes(u[0]))
7306
7306
  switch (u[0]) {
7307
7307
  case "number":
@@ -7341,12 +7341,12 @@ function Me({
7341
7341
  t
7342
7342
  );
7343
7343
  }
7344
- return he(
7344
+ return pe(
7345
7345
  a,
7346
7346
  t,
7347
7347
  se(
7348
7348
  a,
7349
- Js({
7349
+ Hs({
7350
7350
  ctx: a,
7351
7351
  controller: t
7352
7352
  }),
@@ -7356,7 +7356,7 @@ function Me({
7356
7356
  }
7357
7357
  switch (n.type) {
7358
7358
  case "number":
7359
- return he(
7359
+ return pe(
7360
7360
  a,
7361
7361
  t,
7362
7362
  se(
@@ -7369,7 +7369,7 @@ function Me({
7369
7369
  )
7370
7370
  );
7371
7371
  case "integer":
7372
- return he(
7372
+ return pe(
7373
7373
  a,
7374
7374
  t,
7375
7375
  se(
@@ -7382,7 +7382,7 @@ function Me({
7382
7382
  )
7383
7383
  );
7384
7384
  case "string":
7385
- return he(
7385
+ return pe(
7386
7386
  a,
7387
7387
  t,
7388
7388
  se(
@@ -7395,7 +7395,7 @@ function Me({
7395
7395
  )
7396
7396
  );
7397
7397
  case "boolean":
7398
- return he(
7398
+ return pe(
7399
7399
  a,
7400
7400
  t,
7401
7401
  se(
@@ -7408,12 +7408,12 @@ function Me({
7408
7408
  )
7409
7409
  );
7410
7410
  case "array":
7411
- return he(
7411
+ return pe(
7412
7412
  a,
7413
7413
  t,
7414
7414
  se(
7415
7415
  a,
7416
- Hs({
7416
+ Js({
7417
7417
  ctx: a,
7418
7418
  controller: t instanceof ta ? t : t.array()
7419
7419
  }),
@@ -7425,22 +7425,22 @@ function Me({
7425
7425
  ctx: a,
7426
7426
  controller: t instanceof ea ? t : t.object()
7427
7427
  });
7428
- return a.isRoot ? he(
7428
+ return a.isRoot ? pe(
7429
7429
  a,
7430
7430
  t,
7431
7431
  se(a, o, t)
7432
- ) : he(
7432
+ ) : pe(
7433
7433
  a,
7434
7434
  t,
7435
7435
  se(
7436
7436
  a,
7437
- H.div(F.class("bc-json-schema-object"), o),
7437
+ J.div(F.class("bc-json-schema-object"), o),
7438
7438
  t
7439
7439
  )
7440
7440
  );
7441
7441
  }
7442
7442
  case "null":
7443
- return he(
7443
+ return pe(
7444
7444
  a,
7445
7445
  t,
7446
7446
  se(
@@ -7452,12 +7452,12 @@ function Me({
7452
7452
  )
7453
7453
  );
7454
7454
  default:
7455
- return console.warn("Unknown type", n.type), he(
7455
+ return console.warn("Unknown type", n.type), pe(
7456
7456
  a,
7457
7457
  t,
7458
7458
  se(
7459
7459
  a,
7460
- H.div(F.class("bc-json-schema-unknown"), "Unknown"),
7460
+ J.div(F.class("bc-json-schema-unknown"), "Unknown"),
7461
7461
  t
7462
7462
  )
7463
7463
  );
@@ -7478,7 +7478,7 @@ function Wo({
7478
7478
  });
7479
7479
  return e === !0 ? Ut({ ctx: n, controller: t }) : e === !1 ? we() : Me({ ctx: n, controller: t });
7480
7480
  }
7481
- function he(e, t, r) {
7481
+ function pe(e, t, r) {
7482
7482
  return Us(e.definition) ? wo({
7483
7483
  ctx: e,
7484
7484
  controller: t,
@@ -7491,7 +7491,7 @@ function he(e, t, r) {
7491
7491
  }
7492
7492
  }) : r;
7493
7493
  }
7494
- function Ho(e) {
7494
+ function Jo(e) {
7495
7495
  return e.prefixItems != null ? {
7496
7496
  isTuple: !0,
7497
7497
  prefixItems: e.prefixItems,
@@ -7513,11 +7513,11 @@ function ds(e) {
7513
7513
  const t = e["x:ui"];
7514
7514
  return Array.isArray(t?.tupleLabels) ? t.tupleLabels : void 0;
7515
7515
  }
7516
- function Hs({
7516
+ function Js({
7517
7517
  ctx: e,
7518
7518
  controller: t
7519
7519
  }) {
7520
- const r = e.definition, n = Ho(r), a = ie(t.signal)((d) => {
7520
+ const r = e.definition, n = Jo(r), a = ie(t.signal)((d) => {
7521
7521
  const v = d?.length ?? 0;
7522
7522
  return !(r.maxItems != null && v >= r.maxItems || n.isTuple && v >= n.prefixItems.length && n.additionalItemsSchema === !1);
7523
7523
  }), s = ie(t.signal)((d) => {
@@ -7567,7 +7567,7 @@ function Hs({
7567
7567
  }
7568
7568
  const S = r.minContains ?? (r.contains ? 1 : 0), w = r.maxContains, g = $ >= S && (w == null || $ <= w);
7569
7569
  return { matchingIndices: v, count: $, isValid: g, minContains: S, maxContains: w };
7570
- }), p = r.contains ? u.map((d) => {
7570
+ }), h = r.contains ? u.map((d) => {
7571
7571
  const v = typeof r.contains == "object" && r.contains.title ? r.contains.title : "required pattern";
7572
7572
  if (!d.isValid) {
7573
7573
  if (d.count < (d.minContains ?? 0))
@@ -7637,13 +7637,13 @@ function Hs({
7637
7637
  ), c.length > 0 ? de(F.class("bc-stack--gap-1"), i, ...c) : i;
7638
7638
  }
7639
7639
  });
7640
- return r.contains && p ? de(
7640
+ return r.contains && h ? de(
7641
7641
  F.class("bc-stack--gap-2"),
7642
7642
  y,
7643
7643
  Kt(
7644
7644
  ie(
7645
7645
  u,
7646
- p
7646
+ h
7647
7647
  )((d, v) => ({
7648
7648
  info: d,
7649
7649
  summary: v
@@ -7660,7 +7660,7 @@ function Hs({
7660
7660
  y
7661
7661
  );
7662
7662
  }
7663
- function Jo(e) {
7663
+ function Ho(e) {
7664
7664
  return e.map((t) => ({
7665
7665
  key: t,
7666
7666
  label: wr(t),
@@ -7669,7 +7669,7 @@ function Jo(e) {
7669
7669
  defaultValue: () => oo(t)
7670
7670
  }));
7671
7671
  }
7672
- function Js({
7672
+ function Hs({
7673
7673
  ctx: e,
7674
7674
  controller: t
7675
7675
  }) {
@@ -7679,13 +7679,13 @@ function Js({
7679
7679
  (S) => S !== "null" && (S === "string" || S === "number" || S === "integer" || S === "boolean")
7680
7680
  ), u = s && o.length === n.length - 1;
7681
7681
  u && (n = o);
7682
- const p = Jo(n), y = new ka(
7682
+ const h = Ho(n), y = new ka(
7683
7683
  t.path,
7684
7684
  t.change,
7685
7685
  t.signal,
7686
7686
  t.status,
7687
7687
  { disabled: t.disabled },
7688
- p
7688
+ h
7689
7689
  );
7690
7690
  t.onDispose(() => y.dispose());
7691
7691
  const d = (S) => Ts({
@@ -7742,7 +7742,7 @@ function Js({
7742
7742
  });
7743
7743
  case "array": {
7744
7744
  const l = g.array();
7745
- return Hs({
7745
+ return Js({
7746
7746
  ctx: f,
7747
7747
  controller: l
7748
7748
  });
@@ -7779,7 +7779,7 @@ function Ut({
7779
7779
  }
7780
7780
  }),
7781
7781
  controller: t
7782
- }) : Js({
7782
+ }) : Hs({
7783
7783
  ctx: e.with({
7784
7784
  definition: {
7785
7785
  ...e.definition,
@@ -7804,11 +7804,11 @@ function xo(e, t, r = !1) {
7804
7804
  if (!(s.onSubmitOnly && !r))
7805
7805
  try {
7806
7806
  const o = {};
7807
- for (const p of s.fields)
7808
- o[p] = Xo(e, p);
7807
+ for (const h of s.fields)
7808
+ o[h] = Xo(e, h);
7809
7809
  const u = s.validate(o, e);
7810
7810
  if (!u.valid) {
7811
- const p = s.targets || s.fields;
7811
+ const h = s.targets || s.fields;
7812
7812
  if (u.fieldErrors)
7813
7813
  for (const [y, d] of Object.entries(u.fieldErrors))
7814
7814
  n.push({
@@ -7824,7 +7824,7 @@ function xo(e, t, r = !1) {
7824
7824
  });
7825
7825
  else {
7826
7826
  const y = u.message || s.message || "Cross-field validation failed";
7827
- for (const d of p)
7827
+ for (const d of h)
7828
7828
  n.push({
7829
7829
  instancePath: `/${d}`,
7830
7830
  schemaPath: `#/x:ui/crossField/${s.id}`,
@@ -7943,13 +7943,13 @@ function Qo(e, t, r, n) {
7943
7943
  for (const s of r.crossField)
7944
7944
  try {
7945
7945
  const o = {};
7946
- for (const p of s.fields)
7947
- o[p] = $r(`$.${p}`, t);
7946
+ for (const h of s.fields)
7947
+ o[h] = $r(`$.${h}`, t);
7948
7948
  const u = s.validate(o, t);
7949
7949
  if (u) {
7950
- const p = s.target || s.fields[0];
7950
+ const h = s.target || s.fields[0];
7951
7951
  a.push({
7952
- instancePath: `/${p}`,
7952
+ instancePath: `/${h}`,
7953
7953
  schemaPath: "#/x:ui/crossField",
7954
7954
  keyword: "crossField",
7955
7955
  params: { fields: s.fields },
@@ -8033,8 +8033,8 @@ class nu {
8033
8033
  async validateField(t, r, n, a = !1) {
8034
8034
  const s = `${t.field}_${t.id}`, o = this.getValidationState(s), u = this.timeouts.get(s);
8035
8035
  u !== void 0 && clearTimeout(u);
8036
- const p = this.abortControllers.get(s);
8037
- if (p && p.abort(), !a && o.value.lastValidatedValue === r)
8036
+ const h = this.abortControllers.get(s);
8037
+ if (h && h.abort(), !a && o.value.lastValidatedValue === r)
8038
8038
  return;
8039
8039
  if (t.minLength && typeof r == "string" && r.length < t.minLength) {
8040
8040
  o.set({
@@ -8151,9 +8151,9 @@ function $u({
8151
8151
  refResolver: n,
8152
8152
  sanitizeAdditional: a
8153
8153
  }),
8154
- (p) => {
8155
- if (p.ok) {
8156
- const { ajv: y, validate: d } = p.value, v = Yo(e), $ = ru(e), S = $.length > 0 ? new nu() : null, w = s ?? "touchedOrSubmit", g = (D) => {
8154
+ (h) => {
8155
+ if (h.ok) {
8156
+ const { ajv: y, validate: d } = h.value, v = Yo(e), $ = ru(e), S = $.length > 0 ? new nu() : null, w = s ?? "touchedOrSubmit", g = (D) => {
8157
8157
  const A = d(D);
8158
8158
  let V;
8159
8159
  return A ? V = Pe.valid : V = kr(
@@ -8195,7 +8195,7 @@ function $u({
8195
8195
  );
8196
8196
  return u({ Form: q, controller: f, setStatus: l });
8197
8197
  }
8198
- return H.div(F.class("bc-json-schema-form__error"), p.error);
8198
+ return J.div(F.class("bc-json-schema-form__error"), h.error);
8199
8199
  }
8200
8200
  );
8201
8201
  }
@@ -8253,7 +8253,7 @@ export {
8253
8253
  no as D,
8254
8254
  so as E,
8255
8255
  As as F,
8256
- Je as G,
8256
+ He as G,
8257
8257
  Po as H,
8258
8258
  Eo as I,
8259
8259
  Ut as J,
@@ -8262,9 +8262,9 @@ export {
8262
8262
  gr as M,
8263
8263
  _r as N,
8264
8264
  Vs as O,
8265
- Hs as P,
8265
+ Js as P,
8266
8266
  Bs as Q,
8267
- Js as R,
8267
+ Hs as R,
8268
8268
  Nr as S,
8269
8269
  Ko as T,
8270
8270
  Bo as U,
@@ -8275,13 +8275,13 @@ export {
8275
8275
  wu as Z,
8276
8276
  Ai as a,
8277
8277
  Ti as b,
8278
- Ht as c,
8278
+ Jt as c,
8279
8279
  G as d,
8280
8280
  Er as e,
8281
- Jt as f,
8281
+ Ht as f,
8282
8282
  ws as g,
8283
8283
  ri as h,
8284
- hi as i,
8284
+ pi as i,
8285
8285
  ki as j,
8286
8286
  Ni as k,
8287
8287
  Ii as l,
@@ -8292,8 +8292,8 @@ export {
8292
8292
  vi as q,
8293
8293
  Qa as r,
8294
8294
  Ns as s,
8295
- Hi as t,
8296
- Ji as u,
8295
+ Ji as t,
8296
+ Hi as u,
8297
8297
  Gi as v,
8298
8298
  kr as w,
8299
8299
  gu as x,