@socotra/ec-react-components 2.0.1-alpha.2 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as ce from "react";
2
- import j, { useMemo as Re, Component as Ab, useContext as bo, useRef as et, useState as Ne, useEffect as Ue, useReducer as bd, useCallback as ot, createContext as $s, createElement as le, forwardRef as Fe, Children as Za, isValidElement as ws, cloneElement as wh, Fragment as Xs, useLayoutEffect as Eh } from "react";
2
+ import j, { useMemo as Re, Component as Ab, useContext as bo, useRef as et, useState as Ne, useEffect as ze, useReducer as bd, useCallback as ot, createContext as $s, createElement as le, forwardRef as Fe, Children as Za, isValidElement as ws, cloneElement as wh, Fragment as Xs, useLayoutEffect as Eh } from "react";
3
3
  import * as Pb from "react-dom";
4
4
  import Ob, { flushSync as Rb, createPortal as Ch } from "react-dom";
5
5
  var Ba = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -47,46 +47,46 @@ var Da = {};
47
47
  var $d;
48
48
  function Ib() {
49
49
  return $d || ($d = 1, process.env.NODE_ENV !== "production" && function() {
50
- var e = j, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), y = Symbol.iterator, m = "@@iterator";
50
+ var e = j, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), b = Symbol.iterator, m = "@@iterator";
51
51
  function g(_) {
52
52
  if (_ === null || typeof _ != "object")
53
53
  return null;
54
- var k = y && _[y] || _[m];
54
+ var k = b && _[b] || _[m];
55
55
  return typeof k == "function" ? k : null;
56
56
  }
57
57
  var f = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
58
58
  function p(_) {
59
59
  {
60
- for (var k = arguments.length, V = new Array(k > 1 ? k - 1 : 0), Y = 1; Y < k; Y++)
61
- V[Y - 1] = arguments[Y];
62
- E("error", _, V);
60
+ for (var k = arguments.length, z = new Array(k > 1 ? k - 1 : 0), Y = 1; Y < k; Y++)
61
+ z[Y - 1] = arguments[Y];
62
+ E("error", _, z);
63
63
  }
64
64
  }
65
- function E(_, k, V) {
65
+ function E(_, k, z) {
66
66
  {
67
67
  var Y = f.ReactDebugCurrentFrame, pe = Y.getStackAddendum();
68
- pe !== "" && (k += "%s", V = V.concat([pe]));
69
- var me = V.map(function(te) {
68
+ pe !== "" && (k += "%s", z = z.concat([pe]));
69
+ var me = z.map(function(te) {
70
70
  return String(te);
71
71
  });
72
72
  me.unshift("Warning: " + k), Function.prototype.apply.call(console[_], console, me);
73
73
  }
74
74
  }
75
- var S = !1, O = !1, M = !1, z = !1, F = !1, U;
75
+ var S = !1, O = !1, M = !1, V = !1, F = !1, U;
76
76
  U = Symbol.for("react.module.reference");
77
77
  function K(_) {
78
- return !!(typeof _ == "string" || typeof _ == "function" || _ === n || _ === o || F || _ === a || _ === l || _ === u || z || _ === v || S || O || M || typeof _ == "object" && _ !== null && (_.$$typeof === h || _.$$typeof === d || _.$$typeof === s || _.$$typeof === i || _.$$typeof === c || // This needs to include all possible module reference object
78
+ return !!(typeof _ == "string" || typeof _ == "function" || _ === n || _ === o || F || _ === a || _ === l || _ === u || V || _ === v || S || O || M || typeof _ == "object" && _ !== null && (_.$$typeof === h || _.$$typeof === d || _.$$typeof === s || _.$$typeof === i || _.$$typeof === c || // This needs to include all possible module reference object
79
79
  // types supported by any Flight configuration anywhere since
80
80
  // we don't know which Flight build this will end up being used
81
81
  // with.
82
82
  _.$$typeof === U || _.getModuleId !== void 0));
83
83
  }
84
- function J(_, k, V) {
84
+ function J(_, k, z) {
85
85
  var Y = _.displayName;
86
86
  if (Y)
87
87
  return Y;
88
88
  var pe = k.displayName || k.name || "";
89
- return pe !== "" ? V + "(" + pe + ")" : V;
89
+ return pe !== "" ? z + "(" + pe + ")" : z;
90
90
  }
91
91
  function B(_) {
92
92
  return _.displayName || "Context";
@@ -118,8 +118,8 @@ function Ib() {
118
118
  var k = _;
119
119
  return B(k) + ".Consumer";
120
120
  case s:
121
- var V = _;
122
- return B(V._context) + ".Provider";
121
+ var z = _;
122
+ return B(z._context) + ".Provider";
123
123
  case c:
124
124
  return J(_, _.render, "ForwardRef");
125
125
  case d:
@@ -140,7 +140,7 @@ function Ib() {
140
140
  function x() {
141
141
  }
142
142
  x.__reactDisabledLog = !0;
143
- function b() {
143
+ function y() {
144
144
  {
145
145
  if (re === 0) {
146
146
  he = console.log, de = console.info, Oe = console.warn, be = console.error, H = console.group, R = console.groupCollapsed, I = console.groupEnd;
@@ -199,7 +199,7 @@ function Ib() {
199
199
  }
200
200
  }
201
201
  var C = f.ReactCurrentDispatcher, A;
202
- function N(_, k, V) {
202
+ function N(_, k, z) {
203
203
  {
204
204
  if (A === void 0)
205
205
  try {
@@ -221,16 +221,16 @@ function Ib() {
221
221
  if (!_ || W)
222
222
  return "";
223
223
  {
224
- var V = q.get(_);
225
- if (V !== void 0)
226
- return V;
224
+ var z = q.get(_);
225
+ if (z !== void 0)
226
+ return z;
227
227
  }
228
228
  var Y;
229
229
  W = !0;
230
230
  var pe = Error.prepareStackTrace;
231
231
  Error.prepareStackTrace = void 0;
232
232
  var me;
233
- me = C.current, C.current = null, b();
233
+ me = C.current, C.current = null, y();
234
234
  try {
235
235
  if (k) {
236
236
  var te = function() {
@@ -288,14 +288,14 @@ function Ib() {
288
288
  var je = _ ? _.displayName || _.name : "", ft = je ? N(je) : "";
289
289
  return typeof _ == "function" && q.set(_, ft), ft;
290
290
  }
291
- function Ae(_, k, V) {
291
+ function Ae(_, k, z) {
292
292
  return ne(_, !1);
293
293
  }
294
294
  function Ze(_) {
295
295
  var k = _.prototype;
296
296
  return !!(k && k.isReactComponent);
297
297
  }
298
- function Xe(_, k, V) {
298
+ function Xe(_, k, z) {
299
299
  if (_ == null)
300
300
  return "";
301
301
  if (typeof _ == "function")
@@ -313,41 +313,41 @@ function Ib() {
313
313
  case c:
314
314
  return Ae(_.render);
315
315
  case d:
316
- return Xe(_.type, k, V);
316
+ return Xe(_.type, k, z);
317
317
  case h: {
318
318
  var Y = _, pe = Y._payload, me = Y._init;
319
319
  try {
320
- return Xe(me(pe), k, V);
320
+ return Xe(me(pe), k, z);
321
321
  } catch {
322
322
  }
323
323
  }
324
324
  }
325
325
  return "";
326
326
  }
327
- var ze = Object.prototype.hasOwnProperty, wt = {}, Vt = f.ReactDebugCurrentFrame;
327
+ var We = Object.prototype.hasOwnProperty, wt = {}, Vt = f.ReactDebugCurrentFrame;
328
328
  function Tt(_) {
329
329
  if (_) {
330
- var k = _._owner, V = Xe(_.type, _._source, k ? k.type : null);
331
- Vt.setExtraStackFrame(V);
330
+ var k = _._owner, z = Xe(_.type, _._source, k ? k.type : null);
331
+ Vt.setExtraStackFrame(z);
332
332
  } else
333
333
  Vt.setExtraStackFrame(null);
334
334
  }
335
- function Xt(_, k, V, Y, pe) {
335
+ function Xt(_, k, z, Y, pe) {
336
336
  {
337
- var me = Function.call.bind(ze);
337
+ var me = Function.call.bind(We);
338
338
  for (var te in _)
339
339
  if (me(_, te)) {
340
340
  var ie = void 0;
341
341
  try {
342
342
  if (typeof _[te] != "function") {
343
- var Pe = Error((Y || "React class") + ": " + V + " type `" + te + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof _[te] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
343
+ var Pe = Error((Y || "React class") + ": " + z + " type `" + te + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof _[te] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
344
344
  throw Pe.name = "Invariant Violation", Pe;
345
345
  }
346
- ie = _[te](k, te, Y, V, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
346
+ ie = _[te](k, te, Y, z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
347
347
  } catch (se) {
348
348
  ie = se;
349
349
  }
350
- ie && !(ie instanceof Error) && (Tt(pe), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Y || "React class", V, te, typeof ie), Tt(null)), ie instanceof Error && !(ie.message in wt) && (wt[ie.message] = !0, Tt(pe), p("Failed %s type: %s", V, ie.message), Tt(null));
350
+ ie && !(ie instanceof Error) && (Tt(pe), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Y || "React class", z, te, typeof ie), Tt(null)), ie instanceof Error && !(ie.message in wt) && (wt[ie.message] = !0, Tt(pe), p("Failed %s type: %s", z, ie.message), Tt(null));
351
351
  }
352
352
  }
353
353
  }
@@ -357,8 +357,8 @@ function Ib() {
357
357
  }
358
358
  function dt(_) {
359
359
  {
360
- var k = typeof Symbol == "function" && Symbol.toStringTag, V = k && _[Symbol.toStringTag] || _.constructor.name || "Object";
361
- return V;
360
+ var k = typeof Symbol == "function" && Symbol.toStringTag, z = k && _[Symbol.toStringTag] || _.constructor.name || "Object";
361
+ return z;
362
362
  }
363
363
  }
364
364
  function Lr(_) {
@@ -383,7 +383,7 @@ function Ib() {
383
383
  }, yt, er, Nn;
384
384
  Nn = {};
385
385
  function Fo(_) {
386
- if (ze.call(_, "ref")) {
386
+ if (We.call(_, "ref")) {
387
387
  var k = Object.getOwnPropertyDescriptor(_, "ref").get;
388
388
  if (k && k.isReactWarning)
389
389
  return !1;
@@ -391,7 +391,7 @@ function Ib() {
391
391
  return _.ref !== void 0;
392
392
  }
393
393
  function an(_) {
394
- if (ze.call(_, "key")) {
394
+ if (We.call(_, "key")) {
395
395
  var k = Object.getOwnPropertyDescriptor(_, "key").get;
396
396
  if (k && k.isReactWarning)
397
397
  return !1;
@@ -400,40 +400,40 @@ function Ib() {
400
400
  }
401
401
  function Vo(_, k) {
402
402
  if (typeof _.ref == "string" && zt.current && k && zt.current.stateNode !== k) {
403
- var V = X(zt.current.type);
404
- Nn[V] || (p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', X(zt.current.type), _.ref), Nn[V] = !0);
403
+ var z = X(zt.current.type);
404
+ Nn[z] || (p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', X(zt.current.type), _.ref), Nn[z] = !0);
405
405
  }
406
406
  }
407
407
  function Ri(_, k) {
408
408
  {
409
- var V = function() {
409
+ var z = function() {
410
410
  yt || (yt = !0, p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", k));
411
411
  };
412
- V.isReactWarning = !0, Object.defineProperty(_, "key", {
413
- get: V,
412
+ z.isReactWarning = !0, Object.defineProperty(_, "key", {
413
+ get: z,
414
414
  configurable: !0
415
415
  });
416
416
  }
417
417
  }
418
418
  function zo(_, k) {
419
419
  {
420
- var V = function() {
420
+ var z = function() {
421
421
  er || (er = !0, p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", k));
422
422
  };
423
- V.isReactWarning = !0, Object.defineProperty(_, "ref", {
424
- get: V,
423
+ z.isReactWarning = !0, Object.defineProperty(_, "ref", {
424
+ get: z,
425
425
  configurable: !0
426
426
  });
427
427
  }
428
428
  }
429
- var kt = function(_, k, V, Y, pe, me, te) {
429
+ var kt = function(_, k, z, Y, pe, me, te) {
430
430
  var ie = {
431
431
  // This tag allows us to uniquely identify this as a React Element
432
432
  $$typeof: t,
433
433
  // Built-in properties that belong on the element
434
434
  type: _,
435
435
  key: k,
436
- ref: V,
436
+ ref: z,
437
437
  props: te,
438
438
  // Record the component responsible for creating this element.
439
439
  _owner: me
@@ -455,12 +455,12 @@ function Ib() {
455
455
  value: pe
456
456
  }), Object.freeze && (Object.freeze(ie.props), Object.freeze(ie)), ie;
457
457
  };
458
- function Ni(_, k, V, Y, pe) {
458
+ function Ni(_, k, z, Y, pe) {
459
459
  {
460
460
  var me, te = {}, ie = null, Pe = null;
461
- V !== void 0 && (Qt(V), ie = "" + V), an(k) && (Qt(k.key), ie = "" + k.key), Fo(k) && (Pe = k.ref, Vo(k, pe));
461
+ z !== void 0 && (Qt(z), ie = "" + z), an(k) && (Qt(k.key), ie = "" + k.key), Fo(k) && (Pe = k.ref, Vo(k, pe));
462
462
  for (me in k)
463
- ze.call(k, me) && !Rn.hasOwnProperty(me) && (te[me] = k[me]);
463
+ We.call(k, me) && !Rn.hasOwnProperty(me) && (te[me] = k[me]);
464
464
  if (_ && _.defaultProps) {
465
465
  var se = _.defaultProps;
466
466
  for (me in se)
@@ -476,8 +476,8 @@ function Ib() {
476
476
  var xa = f.ReactCurrentOwner, Wo = f.ReactDebugCurrentFrame;
477
477
  function Vr(_) {
478
478
  if (_) {
479
- var k = _._owner, V = Xe(_.type, _._source, k ? k.type : null);
480
- Wo.setExtraStackFrame(V);
479
+ var k = _._owner, z = Xe(_.type, _._source, k ? k.type : null);
480
+ Wo.setExtraStackFrame(z);
481
481
  } else
482
482
  Wo.setExtraStackFrame(null);
483
483
  }
@@ -506,10 +506,10 @@ Check the render method of \`` + _ + "`.";
506
506
  {
507
507
  var k = gr();
508
508
  if (!k) {
509
- var V = typeof _ == "string" ? _ : _.displayName || _.name;
510
- V && (k = `
509
+ var z = typeof _ == "string" ? _ : _.displayName || _.name;
510
+ z && (k = `
511
511
 
512
- Check the top-level render call using <` + V + ">.");
512
+ Check the top-level render call using <` + z + ">.");
513
513
  }
514
514
  return k;
515
515
  }
@@ -519,12 +519,12 @@ Check the top-level render call using <` + V + ">.");
519
519
  if (!_._store || _._store.validated || _.key != null)
520
520
  return;
521
521
  _._store.validated = !0;
522
- var V = ki(k);
523
- if (Pa[V])
522
+ var z = ki(k);
523
+ if (Pa[z])
524
524
  return;
525
- Pa[V] = !0;
525
+ Pa[z] = !0;
526
526
  var Y = "";
527
- _ && _._owner && _._owner !== xa.current && (Y = " It was passed a child from " + X(_._owner.type) + "."), Vr(_), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, Y), Vr(null);
527
+ _ && _._owner && _._owner !== xa.current && (Y = " It was passed a child from " + X(_._owner.type) + "."), Vr(_), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', z, Y), Vr(null);
528
528
  }
529
529
  }
530
530
  function Oa(_, k) {
@@ -532,8 +532,8 @@ Check the top-level render call using <` + V + ">.");
532
532
  if (typeof _ != "object")
533
533
  return;
534
534
  if (Et(_))
535
- for (var V = 0; V < _.length; V++) {
536
- var Y = _[V];
535
+ for (var z = 0; z < _.length; z++) {
536
+ var Y = _[z];
537
537
  Aa(Y) && In(Y, k);
538
538
  }
539
539
  else if (Aa(_))
@@ -551,18 +551,18 @@ Check the top-level render call using <` + V + ">.");
551
551
  var k = _.type;
552
552
  if (k == null || typeof k == "string")
553
553
  return;
554
- var V;
554
+ var z;
555
555
  if (typeof k == "function")
556
- V = k.propTypes;
556
+ z = k.propTypes;
557
557
  else if (typeof k == "object" && (k.$$typeof === c || // Note: Memo only checks outer props here.
558
558
  // Inner props are checked in the reconciler.
559
559
  k.$$typeof === d))
560
- V = k.propTypes;
560
+ z = k.propTypes;
561
561
  else
562
562
  return;
563
- if (V) {
563
+ if (z) {
564
564
  var Y = X(k);
565
- Xt(V, _.props, "prop", Y, _);
565
+ Xt(z, _.props, "prop", Y, _);
566
566
  } else if (k.PropTypes !== void 0 && !Ta) {
567
567
  Ta = !0;
568
568
  var pe = X(k);
@@ -573,8 +573,8 @@ Check the top-level render call using <` + V + ">.");
573
573
  }
574
574
  function Uo(_) {
575
575
  {
576
- for (var k = Object.keys(_.props), V = 0; V < k.length; V++) {
577
- var Y = k[V];
576
+ for (var k = Object.keys(_.props), z = 0; z < k.length; z++) {
577
+ var Y = k[z];
578
578
  if (Y !== "children" && Y !== "key") {
579
579
  Vr(_), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Y), Vr(null);
580
580
  break;
@@ -584,7 +584,7 @@ Check the top-level render call using <` + V + ">.");
584
584
  }
585
585
  }
586
586
  var Bo = {};
587
- function Ra(_, k, V, Y, pe, me) {
587
+ function Ra(_, k, z, Y, pe, me) {
588
588
  {
589
589
  var te = K(_);
590
590
  if (!te) {
@@ -595,7 +595,7 @@ Check the top-level render call using <` + V + ">.");
595
595
  var se;
596
596
  _ === null ? se = "null" : Et(_) ? se = "array" : _ !== void 0 && _.$$typeof === t ? (se = "<" + (X(_.type) || "Unknown") + " />", ie = " Did you accidentally export a JSX literal instead of a component?") : se = typeof _, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", se, ie);
597
597
  }
598
- var _e = Ni(_, k, V, pe, me);
598
+ var _e = Ni(_, k, z, pe, me);
599
599
  if (_e == null)
600
600
  return _e;
601
601
  if (te) {
@@ -611,7 +611,7 @@ Check the top-level render call using <` + V + ">.");
611
611
  else
612
612
  Oa(ke, _);
613
613
  }
614
- if (ze.call(k, "key")) {
614
+ if (We.call(k, "key")) {
615
615
  var ft = X(_), Be = Object.keys(k).filter(function(yr) {
616
616
  return yr !== "key";
617
617
  }), Ct = Be.length > 0 ? "{key: someKey, " + Be.join(": ..., ") + ": ...}" : "{key: someKey}";
@@ -628,11 +628,11 @@ React keys must be passed directly to JSX without using spread:
628
628
  return _ === n ? Uo(_e) : Di(_e), _e;
629
629
  }
630
630
  }
631
- function T(_, k, V) {
632
- return Ra(_, k, V, !0);
631
+ function T(_, k, z) {
632
+ return Ra(_, k, z, !0);
633
633
  }
634
- function w(_, k, V) {
635
- return Ra(_, k, V, !1);
634
+ function w(_, k, z) {
635
+ return Ra(_, k, z, !1);
636
636
  }
637
637
  var P = w, L = T;
638
638
  Da.Fragment = n, Da.jsx = P, Da.jsxs = L;
@@ -947,9 +947,9 @@ function ew(e, t, r, n, a, o) {
947
947
  return l == t && u == e;
948
948
  var d = -1, h = !0, v = r & Q0 ? new Z0() : void 0;
949
949
  for (o.set(e, t), o.set(t, e); ++d < i; ) {
950
- var y = e[d], m = t[d];
950
+ var b = e[d], m = t[d];
951
951
  if (n)
952
- var g = s ? n(m, y, d, t, e, o) : n(y, m, d, e, t, o);
952
+ var g = s ? n(m, b, d, t, e, o) : n(b, m, d, e, t, o);
953
953
  if (g !== void 0) {
954
954
  if (g)
955
955
  continue;
@@ -958,13 +958,13 @@ function ew(e, t, r, n, a, o) {
958
958
  }
959
959
  if (v) {
960
960
  if (!Y0(t, function(f, p) {
961
- if (!J0(v, p) && (y === f || a(y, f, r, n, o)))
961
+ if (!J0(v, p) && (b === f || a(b, f, r, n, o)))
962
962
  return v.push(p);
963
963
  })) {
964
964
  h = !1;
965
965
  break;
966
966
  }
967
- } else if (!(y === m || a(y, m, r, n, o))) {
967
+ } else if (!(b === m || a(b, m, r, n, o))) {
968
968
  h = !1;
969
969
  break;
970
970
  }
@@ -1162,9 +1162,9 @@ function mE(e, t, r, n, a, o) {
1162
1162
  if (!(s ? h in t : hE.call(t, h)))
1163
1163
  return !1;
1164
1164
  }
1165
- var v = o.get(e), y = o.get(t);
1166
- if (v && y)
1167
- return v == t && y == e;
1165
+ var v = o.get(e), b = o.get(t);
1166
+ if (v && b)
1167
+ return v == t && b == e;
1168
1168
  var m = !0;
1169
1169
  o.set(e, t), o.set(t, e);
1170
1170
  for (var g = s; ++d < c; ) {
@@ -1215,9 +1215,9 @@ function BE(e, t, r, n, a, o) {
1215
1215
  if (h && !u)
1216
1216
  return o || (o = new Li()), s || zE(e) ? LE(e, t, r, n, a, o) : FE(e, t, c, r, n, a, o);
1217
1217
  if (!(r & WE)) {
1218
- var v = u && qd.call(e, "__wrapped__"), y = d && qd.call(t, "__wrapped__");
1219
- if (v || y) {
1220
- var m = v ? e.value() : e, g = y ? t.value() : t;
1218
+ var v = u && qd.call(e, "__wrapped__"), b = d && qd.call(t, "__wrapped__");
1219
+ if (v || b) {
1220
+ var m = v ? e.value() : e, g = b ? t.value() : t;
1221
1221
  return o || (o = new Li()), a(m, g, r, n, o);
1222
1222
  }
1223
1223
  }
@@ -1854,8 +1854,8 @@ function vP(e, t, r, n, a, o, s) {
1854
1854
  }
1855
1855
  var u = o ? o(i, c, r + "", e, t, s) : void 0, d = u === void 0;
1856
1856
  if (d) {
1857
- var h = sf(c), v = !h && uP(c), y = !h && !v && hP(c);
1858
- u = c, h || v || y ? sf(i) ? u = i : lP(i) ? u = iP(i) : v ? (d = !1, u = oP(c, !0)) : y ? (d = !1, u = sP(c, !0)) : u = [] : pP(c) || of(c) ? (u = i, of(i) ? u = mP(i) : (!fP(i) || dP(i)) && (u = cP(c))) : d = !1;
1857
+ var h = sf(c), v = !h && uP(c), b = !h && !v && hP(c);
1858
+ u = c, h || v || b ? sf(i) ? u = i : lP(i) ? u = iP(i) : v ? (d = !1, u = oP(c, !0)) : b ? (d = !1, u = sP(c, !0)) : u = [] : pP(c) || of(c) ? (u = i, of(i) ? u = mP(i) : (!fP(i) || dP(i)) && (u = cP(c))) : d = !1;
1859
1859
  }
1860
1860
  d && (s.set(c, u), a(u, c, n, o, s), s.delete(c)), af(e, r, u);
1861
1861
  }
@@ -2037,9 +2037,9 @@ var $R = _R, wR = $R, ER = yl, hf = bl, mf = hf && hf.isMap, CR = mf ? ER(mf) :
2037
2037
  function PR(e) {
2038
2038
  return TR(e) && xR(e) == AR;
2039
2039
  }
2040
- var OR = PR, RR = OR, NR = yl, vf = bl, gf = vf && vf.isSet, IR = gf ? NR(gf) : RR, kR = IR, DR = ni, jR = Rl, MR = Al, LR = Im, FR = pO, VR = Em, zR = xo, WR = gO, UR = TO, BR = Lh, HR = NO, qR = Cn, GR = jO, KR = vR, ZR = Sm, YR = tt, JR = Eo, XR = SR, QR = Nt, eN = kR, tN = pr, rN = Ao, nN = 1, aN = 2, oN = 4, Dm = "[object Arguments]", sN = "[object Array]", iN = "[object Boolean]", cN = "[object Date]", lN = "[object Error]", jm = "[object Function]", uN = "[object GeneratorFunction]", dN = "[object Map]", fN = "[object Number]", Mm = "[object Object]", pN = "[object RegExp]", hN = "[object Set]", mN = "[object String]", vN = "[object Symbol]", gN = "[object WeakMap]", yN = "[object ArrayBuffer]", bN = "[object DataView]", _N = "[object Float32Array]", $N = "[object Float64Array]", wN = "[object Int8Array]", EN = "[object Int16Array]", CN = "[object Int32Array]", SN = "[object Uint8Array]", xN = "[object Uint8ClampedArray]", TN = "[object Uint16Array]", AN = "[object Uint32Array]", We = {};
2041
- We[Dm] = We[sN] = We[yN] = We[bN] = We[iN] = We[cN] = We[_N] = We[$N] = We[wN] = We[EN] = We[CN] = We[dN] = We[fN] = We[Mm] = We[pN] = We[hN] = We[mN] = We[vN] = We[SN] = We[xN] = We[TN] = We[AN] = !0;
2042
- We[lN] = We[jm] = We[gN] = !1;
2040
+ var OR = PR, RR = OR, NR = yl, vf = bl, gf = vf && vf.isSet, IR = gf ? NR(gf) : RR, kR = IR, DR = ni, jR = Rl, MR = Al, LR = Im, FR = pO, VR = Em, zR = xo, WR = gO, UR = TO, BR = Lh, HR = NO, qR = Cn, GR = jO, KR = vR, ZR = Sm, YR = tt, JR = Eo, XR = SR, QR = Nt, eN = kR, tN = pr, rN = Ao, nN = 1, aN = 2, oN = 4, Dm = "[object Arguments]", sN = "[object Array]", iN = "[object Boolean]", cN = "[object Date]", lN = "[object Error]", jm = "[object Function]", uN = "[object GeneratorFunction]", dN = "[object Map]", fN = "[object Number]", Mm = "[object Object]", pN = "[object RegExp]", hN = "[object Set]", mN = "[object String]", vN = "[object Symbol]", gN = "[object WeakMap]", yN = "[object ArrayBuffer]", bN = "[object DataView]", _N = "[object Float32Array]", $N = "[object Float64Array]", wN = "[object Int8Array]", EN = "[object Int16Array]", CN = "[object Int32Array]", SN = "[object Uint8Array]", xN = "[object Uint8ClampedArray]", TN = "[object Uint16Array]", AN = "[object Uint32Array]", Ue = {};
2041
+ Ue[Dm] = Ue[sN] = Ue[yN] = Ue[bN] = Ue[iN] = Ue[cN] = Ue[_N] = Ue[$N] = Ue[wN] = Ue[EN] = Ue[CN] = Ue[dN] = Ue[fN] = Ue[Mm] = Ue[pN] = Ue[hN] = Ue[mN] = Ue[vN] = Ue[SN] = Ue[xN] = Ue[TN] = Ue[AN] = !0;
2042
+ Ue[lN] = Ue[jm] = Ue[gN] = !1;
2043
2043
  function cs(e, t, r, n, a, o) {
2044
2044
  var s, i = t & nN, c = t & aN, l = t & oN;
2045
2045
  if (r && (s = a ? r(e, n, a, o) : r(e)), s !== void 0)
@@ -2058,7 +2058,7 @@ function cs(e, t, r, n, a, o) {
2058
2058
  if (s = c || h ? {} : ZR(e), !i)
2059
2059
  return c ? UR(e, FR(s, e)) : WR(e, LR(s, e));
2060
2060
  } else {
2061
- if (!We[d])
2061
+ if (!Ue[d])
2062
2062
  return a ? e : {};
2063
2063
  s = KR(e, d, i);
2064
2064
  }
@@ -2072,7 +2072,7 @@ function cs(e, t, r, n, a, o) {
2072
2072
  }) : XR(e) && e.forEach(function(g, f) {
2073
2073
  s.set(f, cs(g, t, r, f, e, o));
2074
2074
  });
2075
- var y = l ? c ? HR : BR : c ? rN : tN, m = u ? void 0 : y(e);
2075
+ var b = l ? c ? HR : BR : c ? rN : tN, m = u ? void 0 : b(e);
2076
2076
  return jR(m || e, function(g, f) {
2077
2077
  m && (f = g, g = e[f]), MR(s, f, cs(g, t, r, f, e, o));
2078
2078
  }), s;
@@ -2661,7 +2661,7 @@ function Lc(e, t, r, n) {
2661
2661
  rearg: e.rearg,
2662
2662
  toInteger: e.toInteger,
2663
2663
  toPath: e.toPath
2664
- }, v = h.ary, y = h.assign, m = h.clone, g = h.curry, f = h.forEach, p = h.isArray, E = h.isError, S = h.isFunction, O = h.isWeakMap, M = h.keys, z = h.rearg, F = h.toInteger, U = h.toPath, K = M(nt.aryMethod), J = {
2664
+ }, v = h.ary, b = h.assign, m = h.clone, g = h.curry, f = h.forEach, p = h.isArray, E = h.isError, S = h.isFunction, O = h.isWeakMap, M = h.keys, V = h.rearg, F = h.toInteger, U = h.toPath, K = M(nt.aryMethod), J = {
2665
2665
  castArray: function($) {
2666
2666
  return function() {
2667
2667
  var C = arguments[0];
@@ -2728,7 +2728,7 @@ function Lc(e, t, r, n) {
2728
2728
  return C;
2729
2729
  }
2730
2730
  function re($, C, A) {
2731
- return s.rearg && A > 1 && (u || !nt.skipRearg[$]) ? z(C, nt.methodRearg[$] || nt.aryRearg[A]) : C;
2731
+ return s.rearg && A > 1 && (u || !nt.skipRearg[$]) ? V(C, nt.methodRearg[$] || nt.aryRearg[A]) : C;
2732
2732
  }
2733
2733
  function he($, C) {
2734
2734
  C = U(C);
@@ -2744,7 +2744,7 @@ function Lc(e, t, r, n) {
2744
2744
  function Oe($, C) {
2745
2745
  var A = nt.aliasToReal[$] || $, N = nt.remap[A] || A, W = n;
2746
2746
  return function(q) {
2747
- var Q = a ? d : h, ne = a ? d[N] : C, Ae = y(y({}, W), q);
2747
+ var Q = a ? d : h, ne = a ? d[N] : C, Ae = b(b({}, W), q);
2748
2748
  return Lc(Q, A, ne, Ae);
2749
2749
  };
2750
2750
  }
@@ -2756,7 +2756,7 @@ function Lc(e, t, r, n) {
2756
2756
  function H($, C) {
2757
2757
  return R($, function(A) {
2758
2758
  var N = C.length;
2759
- return DN(z(Vi(A, N), C), N);
2759
+ return DN(V(Vi(A, N), C), N);
2760
2760
  });
2761
2761
  }
2762
2762
  function R($, C) {
@@ -2785,21 +2785,21 @@ function Lc(e, t, r, n) {
2785
2785
  }
2786
2786
  if (!o)
2787
2787
  return I(t, r, i);
2788
- var x = r, b = [];
2788
+ var x = r, y = [];
2789
2789
  return f(K, function($) {
2790
2790
  f(nt.aryMethod[$], function(C) {
2791
2791
  var A = x[nt.remap[C] || C];
2792
- A && b.push([C, I(C, A, x)]);
2792
+ A && y.push([C, I(C, A, x)]);
2793
2793
  });
2794
2794
  }), f(M(x), function($) {
2795
2795
  var C = x[$];
2796
2796
  if (typeof C == "function") {
2797
- for (var A = b.length; A--; )
2798
- if (b[A][0] == $)
2797
+ for (var A = y.length; A--; )
2798
+ if (y[A][0] == $)
2799
2799
  return;
2800
- C.convert = Oe($, C), b.push([$, C]);
2800
+ C.convert = Oe($, C), y.push([$, C]);
2801
2801
  }
2802
- }), f(b, function($) {
2802
+ }), f(y, function($) {
2803
2803
  x[$[0]] = $[1];
2804
2804
  }), x.convert = de, x.placeholder = x, f(M(x), function($) {
2805
2805
  f(nt.realToAlias[$] || [], function(C) {
@@ -3066,7 +3066,7 @@ function HI(e, t, r) {
3066
3066
  }
3067
3067
  var Km = HI, qI = Bm(), GI = Hm, KI = Km, ZI = 1, YI = 2, JI = 4, XI = 8, If = 32, kf = 64;
3068
3068
  function QI(e, t, r, n, a, o, s, i, c, l) {
3069
- var u = t & XI, d = u ? s : void 0, h = u ? void 0 : s, v = u ? o : void 0, y = u ? void 0 : o;
3069
+ var u = t & XI, d = u ? s : void 0, h = u ? void 0 : s, v = u ? o : void 0, b = u ? void 0 : o;
3070
3070
  t |= u ? If : kf, t &= ~(u ? kf : If), t & JI || (t &= ~(ZI | YI));
3071
3071
  var m = [
3072
3072
  e,
@@ -3074,7 +3074,7 @@ function QI(e, t, r, n, a, o, s, i, c, l) {
3074
3074
  a,
3075
3075
  v,
3076
3076
  d,
3077
- y,
3077
+ b,
3078
3078
  h,
3079
3079
  i,
3080
3080
  c,
@@ -3105,7 +3105,7 @@ function sk(e, t) {
3105
3105
  }
3106
3106
  var Ml = sk, ik = zm, ck = Wm, lk = eI, jf = ui, uk = Zm, dk = Ym, fk = ok, pk = Ml, hk = $t, mk = 1, vk = 2, gk = 8, yk = 16, bk = 128, _k = 512;
3107
3107
  function Jm(e, t, r, n, a, o, s, i, c, l) {
3108
- var u = t & bk, d = t & mk, h = t & vk, v = t & (gk | yk), y = t & _k, m = h ? void 0 : jf(e);
3108
+ var u = t & bk, d = t & mk, h = t & vk, v = t & (gk | yk), b = t & _k, m = h ? void 0 : jf(e);
3109
3109
  function g() {
3110
3110
  for (var f = arguments.length, p = Array(f), E = f; E--; )
3111
3111
  p[E] = arguments[E];
@@ -3126,8 +3126,8 @@ function Jm(e, t, r, n, a, o, s, i, c, l) {
3126
3126
  l - f
3127
3127
  );
3128
3128
  }
3129
- var z = d ? r : this, F = h ? z[e] : e;
3130
- return f = p.length, i ? p = fk(p, i) : y && f > 1 && p.reverse(), u && c < f && (p.length = c), this && this !== hk && this instanceof g && (F = m || jf(F)), F.apply(z, p);
3129
+ var V = d ? r : this, F = h ? V[e] : e;
3130
+ return f = p.length, i ? p = fk(p, i) : b && f > 1 && p.reverse(), u && c < f && (p.length = c), this && this !== hk && this instanceof g && (F = m || jf(F)), F.apply(V, p);
3131
3131
  }
3132
3132
  return g;
3133
3133
  }
@@ -3245,11 +3245,11 @@ function bD(e, t, r, n, a, o, s, i) {
3245
3245
  i
3246
3246
  ];
3247
3247
  if (h && hD(v, h), e = v[0], t = v[1], r = v[2], n = v[3], a = v[4], i = v[9] = v[9] === void 0 ? c ? 0 : e.length : Gf(v[9] - l, 0), !i && t & (ec | tc) && (t &= ~(ec | tc)), !t || t == Hf)
3248
- var y = lD(e, t, r);
3248
+ var b = lD(e, t, r);
3249
3249
  else
3250
- t == ec || t == tc ? y = uD(e, t, i) : (t == rc || t == (Hf | rc)) && !a.length ? y = fD(e, t, r, n) : y = dD.apply(void 0, v);
3250
+ t == ec || t == tc ? b = uD(e, t, i) : (t == rc || t == (Hf | rc)) && !a.length ? b = fD(e, t, r, n) : b = dD.apply(void 0, v);
3251
3251
  var m = h ? cD : mD;
3252
- return vD(m(y, v), e, t);
3252
+ return vD(m(b, v), e, t);
3253
3253
  }
3254
3254
  var Ll = bD, _D = Ll, $D = 128;
3255
3255
  function wD(e, t, r) {
@@ -3339,14 +3339,14 @@ function xj() {
3339
3339
  return s;
3340
3340
  i = t(i, s);
3341
3341
  for (var u = -1, d = i.length, h = d - 1, v = s; v != null && ++u < d; ) {
3342
- var y = a(i[u]), m = c;
3343
- if (y === "__proto__" || y === "constructor" || y === "prototype")
3342
+ var b = a(i[u]), m = c;
3343
+ if (b === "__proto__" || b === "constructor" || b === "prototype")
3344
3344
  return s;
3345
3345
  if (u != h) {
3346
- var g = v[y];
3347
- m = l ? l(g, y, v) : void 0, m === void 0 && (m = n(g) ? g : r(i[u + 1]) ? [] : {});
3346
+ var g = v[b];
3347
+ m = l ? l(g, b, v) : void 0, m === void 0 && (m = n(g) ? g : r(i[u + 1]) ? [] : {});
3348
3348
  }
3349
- e(v, y, m), v = v[y];
3349
+ e(v, b, m), v = v[b];
3350
3350
  }
3351
3351
  return s;
3352
3352
  }
@@ -3660,10 +3660,10 @@ var Vc = { exports: {} }, uv = {}, Mt = {}, Xn = {}, va = {}, Se = {}, Qn = {};
3660
3660
  return JSON.stringify(f).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
3661
3661
  }
3662
3662
  e.safeStringify = v;
3663
- function y(f) {
3663
+ function b(f) {
3664
3664
  return typeof f == "string" && e.IDENTIFIER.test(f) ? new n(`.${f}`) : a`[${f}]`;
3665
3665
  }
3666
- e.getProperty = y;
3666
+ e.getProperty = b;
3667
3667
  function m(f) {
3668
3668
  if (typeof f == "string" && e.IDENTIFIER.test(f))
3669
3669
  return new n(`${f}`);
@@ -3738,15 +3738,15 @@ var zc = {};
3738
3738
  var d;
3739
3739
  if (u.ref === void 0)
3740
3740
  throw new Error("CodeGen: ref must be passed in value");
3741
- const h = this.toName(l), { prefix: v } = h, y = (d = u.key) !== null && d !== void 0 ? d : u.ref;
3741
+ const h = this.toName(l), { prefix: v } = h, b = (d = u.key) !== null && d !== void 0 ? d : u.ref;
3742
3742
  let m = this._values[v];
3743
3743
  if (m) {
3744
- const p = m.get(y);
3744
+ const p = m.get(b);
3745
3745
  if (p)
3746
3746
  return p;
3747
3747
  } else
3748
3748
  m = this._values[v] = /* @__PURE__ */ new Map();
3749
- m.set(y, h);
3749
+ m.set(b, h);
3750
3750
  const g = this._scope[v] || (this._scope[v] = []), f = g.length;
3751
3751
  return g[f] = u.ref, h.setValue(u, { property: v, itemIndex: f }), h;
3752
3752
  }
@@ -3771,11 +3771,11 @@ var zc = {};
3771
3771
  }
3772
3772
  _reduceValues(l, u, d = {}, h) {
3773
3773
  let v = t.nil;
3774
- for (const y in l) {
3775
- const m = l[y];
3774
+ for (const b in l) {
3775
+ const m = l[b];
3776
3776
  if (!m)
3777
3777
  continue;
3778
- const g = d[y] = d[y] || /* @__PURE__ */ new Map();
3778
+ const g = d[b] = d[b] || /* @__PURE__ */ new Map();
3779
3779
  m.forEach((f) => {
3780
3780
  if (g.has(f))
3781
3781
  return;
@@ -3842,145 +3842,145 @@ var zc = {};
3842
3842
  optimizeNodes() {
3843
3843
  return this;
3844
3844
  }
3845
- optimizeNames(b, $) {
3845
+ optimizeNames(y, $) {
3846
3846
  return this;
3847
3847
  }
3848
3848
  }
3849
3849
  class s extends o {
3850
- constructor(b, $, C) {
3851
- super(), this.varKind = b, this.name = $, this.rhs = C;
3850
+ constructor(y, $, C) {
3851
+ super(), this.varKind = y, this.name = $, this.rhs = C;
3852
3852
  }
3853
- render({ es5: b, _n: $ }) {
3854
- const C = b ? r.varKinds.var : this.varKind, A = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
3853
+ render({ es5: y, _n: $ }) {
3854
+ const C = y ? r.varKinds.var : this.varKind, A = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
3855
3855
  return `${C} ${this.name}${A};` + $;
3856
3856
  }
3857
- optimizeNames(b, $) {
3858
- if (b[this.name.str])
3859
- return this.rhs && (this.rhs = Z(this.rhs, b, $)), this;
3857
+ optimizeNames(y, $) {
3858
+ if (y[this.name.str])
3859
+ return this.rhs && (this.rhs = Z(this.rhs, y, $)), this;
3860
3860
  }
3861
3861
  get names() {
3862
3862
  return this.rhs instanceof t._CodeOrName ? this.rhs.names : {};
3863
3863
  }
3864
3864
  }
3865
3865
  class i extends o {
3866
- constructor(b, $, C) {
3867
- super(), this.lhs = b, this.rhs = $, this.sideEffects = C;
3866
+ constructor(y, $, C) {
3867
+ super(), this.lhs = y, this.rhs = $, this.sideEffects = C;
3868
3868
  }
3869
- render({ _n: b }) {
3870
- return `${this.lhs} = ${this.rhs};` + b;
3869
+ render({ _n: y }) {
3870
+ return `${this.lhs} = ${this.rhs};` + y;
3871
3871
  }
3872
- optimizeNames(b, $) {
3873
- if (!(this.lhs instanceof t.Name && !b[this.lhs.str] && !this.sideEffects))
3874
- return this.rhs = Z(this.rhs, b, $), this;
3872
+ optimizeNames(y, $) {
3873
+ if (!(this.lhs instanceof t.Name && !y[this.lhs.str] && !this.sideEffects))
3874
+ return this.rhs = Z(this.rhs, y, $), this;
3875
3875
  }
3876
3876
  get names() {
3877
- const b = this.lhs instanceof t.Name ? {} : { ...this.lhs.names };
3878
- return X(b, this.rhs);
3877
+ const y = this.lhs instanceof t.Name ? {} : { ...this.lhs.names };
3878
+ return X(y, this.rhs);
3879
3879
  }
3880
3880
  }
3881
3881
  class c extends i {
3882
- constructor(b, $, C, A) {
3883
- super(b, C, A), this.op = $;
3882
+ constructor(y, $, C, A) {
3883
+ super(y, C, A), this.op = $;
3884
3884
  }
3885
- render({ _n: b }) {
3886
- return `${this.lhs} ${this.op}= ${this.rhs};` + b;
3885
+ render({ _n: y }) {
3886
+ return `${this.lhs} ${this.op}= ${this.rhs};` + y;
3887
3887
  }
3888
3888
  }
3889
3889
  class l extends o {
3890
- constructor(b) {
3891
- super(), this.label = b, this.names = {};
3890
+ constructor(y) {
3891
+ super(), this.label = y, this.names = {};
3892
3892
  }
3893
- render({ _n: b }) {
3894
- return `${this.label}:` + b;
3893
+ render({ _n: y }) {
3894
+ return `${this.label}:` + y;
3895
3895
  }
3896
3896
  }
3897
3897
  class u extends o {
3898
- constructor(b) {
3899
- super(), this.label = b, this.names = {};
3898
+ constructor(y) {
3899
+ super(), this.label = y, this.names = {};
3900
3900
  }
3901
- render({ _n: b }) {
3902
- return `break${this.label ? ` ${this.label}` : ""};` + b;
3901
+ render({ _n: y }) {
3902
+ return `break${this.label ? ` ${this.label}` : ""};` + y;
3903
3903
  }
3904
3904
  }
3905
3905
  class d extends o {
3906
- constructor(b) {
3907
- super(), this.error = b;
3906
+ constructor(y) {
3907
+ super(), this.error = y;
3908
3908
  }
3909
- render({ _n: b }) {
3910
- return `throw ${this.error};` + b;
3909
+ render({ _n: y }) {
3910
+ return `throw ${this.error};` + y;
3911
3911
  }
3912
3912
  get names() {
3913
3913
  return this.error.names;
3914
3914
  }
3915
3915
  }
3916
3916
  class h extends o {
3917
- constructor(b) {
3918
- super(), this.code = b;
3917
+ constructor(y) {
3918
+ super(), this.code = y;
3919
3919
  }
3920
- render({ _n: b }) {
3921
- return `${this.code};` + b;
3920
+ render({ _n: y }) {
3921
+ return `${this.code};` + y;
3922
3922
  }
3923
3923
  optimizeNodes() {
3924
3924
  return `${this.code}` ? this : void 0;
3925
3925
  }
3926
- optimizeNames(b, $) {
3927
- return this.code = Z(this.code, b, $), this;
3926
+ optimizeNames(y, $) {
3927
+ return this.code = Z(this.code, y, $), this;
3928
3928
  }
3929
3929
  get names() {
3930
3930
  return this.code instanceof t._CodeOrName ? this.code.names : {};
3931
3931
  }
3932
3932
  }
3933
3933
  class v extends o {
3934
- constructor(b = []) {
3935
- super(), this.nodes = b;
3934
+ constructor(y = []) {
3935
+ super(), this.nodes = y;
3936
3936
  }
3937
- render(b) {
3938
- return this.nodes.reduce(($, C) => $ + C.render(b), "");
3937
+ render(y) {
3938
+ return this.nodes.reduce(($, C) => $ + C.render(y), "");
3939
3939
  }
3940
3940
  optimizeNodes() {
3941
- const { nodes: b } = this;
3942
- let $ = b.length;
3941
+ const { nodes: y } = this;
3942
+ let $ = y.length;
3943
3943
  for (; $--; ) {
3944
- const C = b[$].optimizeNodes();
3945
- Array.isArray(C) ? b.splice($, 1, ...C) : C ? b[$] = C : b.splice($, 1);
3944
+ const C = y[$].optimizeNodes();
3945
+ Array.isArray(C) ? y.splice($, 1, ...C) : C ? y[$] = C : y.splice($, 1);
3946
3946
  }
3947
- return b.length > 0 ? this : void 0;
3947
+ return y.length > 0 ? this : void 0;
3948
3948
  }
3949
- optimizeNames(b, $) {
3949
+ optimizeNames(y, $) {
3950
3950
  const { nodes: C } = this;
3951
3951
  let A = C.length;
3952
3952
  for (; A--; ) {
3953
3953
  const N = C[A];
3954
- N.optimizeNames(b, $) || (re(b, N.names), C.splice(A, 1));
3954
+ N.optimizeNames(y, $) || (re(y, N.names), C.splice(A, 1));
3955
3955
  }
3956
3956
  return C.length > 0 ? this : void 0;
3957
3957
  }
3958
3958
  get names() {
3959
- return this.nodes.reduce((b, $) => B(b, $.names), {});
3959
+ return this.nodes.reduce((y, $) => B(y, $.names), {});
3960
3960
  }
3961
3961
  }
3962
- class y extends v {
3963
- render(b) {
3964
- return "{" + b._n + super.render(b) + "}" + b._n;
3962
+ class b extends v {
3963
+ render(y) {
3964
+ return "{" + y._n + super.render(y) + "}" + y._n;
3965
3965
  }
3966
3966
  }
3967
3967
  class m extends v {
3968
3968
  }
3969
- class g extends y {
3969
+ class g extends b {
3970
3970
  }
3971
3971
  g.kind = "else";
3972
- class f extends y {
3973
- constructor(b, $) {
3974
- super($), this.condition = b;
3972
+ class f extends b {
3973
+ constructor(y, $) {
3974
+ super($), this.condition = y;
3975
3975
  }
3976
- render(b) {
3977
- let $ = `if(${this.condition})` + super.render(b);
3978
- return this.else && ($ += "else " + this.else.render(b)), $;
3976
+ render(y) {
3977
+ let $ = `if(${this.condition})` + super.render(y);
3978
+ return this.else && ($ += "else " + this.else.render(y)), $;
3979
3979
  }
3980
3980
  optimizeNodes() {
3981
3981
  super.optimizeNodes();
3982
- const b = this.condition;
3983
- if (b === !0)
3982
+ const y = this.condition;
3983
+ if (y === !0)
3984
3984
  return this.nodes;
3985
3985
  let $ = this.else;
3986
3986
  if ($) {
@@ -3988,185 +3988,185 @@ var zc = {};
3988
3988
  $ = this.else = Array.isArray(C) ? new g(C) : C;
3989
3989
  }
3990
3990
  if ($)
3991
- return b === !1 ? $ instanceof f ? $ : $.nodes : this.nodes.length ? this : new f(he(b), $ instanceof f ? [$] : $.nodes);
3992
- if (!(b === !1 || !this.nodes.length))
3991
+ return y === !1 ? $ instanceof f ? $ : $.nodes : this.nodes.length ? this : new f(he(y), $ instanceof f ? [$] : $.nodes);
3992
+ if (!(y === !1 || !this.nodes.length))
3993
3993
  return this;
3994
3994
  }
3995
- optimizeNames(b, $) {
3995
+ optimizeNames(y, $) {
3996
3996
  var C;
3997
- if (this.else = (C = this.else) === null || C === void 0 ? void 0 : C.optimizeNames(b, $), !!(super.optimizeNames(b, $) || this.else))
3998
- return this.condition = Z(this.condition, b, $), this;
3997
+ if (this.else = (C = this.else) === null || C === void 0 ? void 0 : C.optimizeNames(y, $), !!(super.optimizeNames(y, $) || this.else))
3998
+ return this.condition = Z(this.condition, y, $), this;
3999
3999
  }
4000
4000
  get names() {
4001
- const b = super.names;
4002
- return X(b, this.condition), this.else && B(b, this.else.names), b;
4001
+ const y = super.names;
4002
+ return X(y, this.condition), this.else && B(y, this.else.names), y;
4003
4003
  }
4004
4004
  }
4005
4005
  f.kind = "if";
4006
- class p extends y {
4006
+ class p extends b {
4007
4007
  }
4008
4008
  p.kind = "for";
4009
4009
  class E extends p {
4010
- constructor(b) {
4011
- super(), this.iteration = b;
4010
+ constructor(y) {
4011
+ super(), this.iteration = y;
4012
4012
  }
4013
- render(b) {
4014
- return `for(${this.iteration})` + super.render(b);
4013
+ render(y) {
4014
+ return `for(${this.iteration})` + super.render(y);
4015
4015
  }
4016
- optimizeNames(b, $) {
4017
- if (super.optimizeNames(b, $))
4018
- return this.iteration = Z(this.iteration, b, $), this;
4016
+ optimizeNames(y, $) {
4017
+ if (super.optimizeNames(y, $))
4018
+ return this.iteration = Z(this.iteration, y, $), this;
4019
4019
  }
4020
4020
  get names() {
4021
4021
  return B(super.names, this.iteration.names);
4022
4022
  }
4023
4023
  }
4024
4024
  class S extends p {
4025
- constructor(b, $, C, A) {
4026
- super(), this.varKind = b, this.name = $, this.from = C, this.to = A;
4025
+ constructor(y, $, C, A) {
4026
+ super(), this.varKind = y, this.name = $, this.from = C, this.to = A;
4027
4027
  }
4028
- render(b) {
4029
- const $ = b.es5 ? r.varKinds.var : this.varKind, { name: C, from: A, to: N } = this;
4030
- return `for(${$} ${C}=${A}; ${C}<${N}; ${C}++)` + super.render(b);
4028
+ render(y) {
4029
+ const $ = y.es5 ? r.varKinds.var : this.varKind, { name: C, from: A, to: N } = this;
4030
+ return `for(${$} ${C}=${A}; ${C}<${N}; ${C}++)` + super.render(y);
4031
4031
  }
4032
4032
  get names() {
4033
- const b = X(super.names, this.from);
4034
- return X(b, this.to);
4033
+ const y = X(super.names, this.from);
4034
+ return X(y, this.to);
4035
4035
  }
4036
4036
  }
4037
4037
  class O extends p {
4038
- constructor(b, $, C, A) {
4039
- super(), this.loop = b, this.varKind = $, this.name = C, this.iterable = A;
4038
+ constructor(y, $, C, A) {
4039
+ super(), this.loop = y, this.varKind = $, this.name = C, this.iterable = A;
4040
4040
  }
4041
- render(b) {
4042
- return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(b);
4041
+ render(y) {
4042
+ return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(y);
4043
4043
  }
4044
- optimizeNames(b, $) {
4045
- if (super.optimizeNames(b, $))
4046
- return this.iterable = Z(this.iterable, b, $), this;
4044
+ optimizeNames(y, $) {
4045
+ if (super.optimizeNames(y, $))
4046
+ return this.iterable = Z(this.iterable, y, $), this;
4047
4047
  }
4048
4048
  get names() {
4049
4049
  return B(super.names, this.iterable.names);
4050
4050
  }
4051
4051
  }
4052
- class M extends y {
4053
- constructor(b, $, C) {
4054
- super(), this.name = b, this.args = $, this.async = C;
4052
+ class M extends b {
4053
+ constructor(y, $, C) {
4054
+ super(), this.name = y, this.args = $, this.async = C;
4055
4055
  }
4056
- render(b) {
4057
- return `${this.async ? "async " : ""}function ${this.name}(${this.args})` + super.render(b);
4056
+ render(y) {
4057
+ return `${this.async ? "async " : ""}function ${this.name}(${this.args})` + super.render(y);
4058
4058
  }
4059
4059
  }
4060
4060
  M.kind = "func";
4061
- class z extends v {
4062
- render(b) {
4063
- return "return " + super.render(b);
4061
+ class V extends v {
4062
+ render(y) {
4063
+ return "return " + super.render(y);
4064
4064
  }
4065
4065
  }
4066
- z.kind = "return";
4067
- class F extends y {
4068
- render(b) {
4069
- let $ = "try" + super.render(b);
4070
- return this.catch && ($ += this.catch.render(b)), this.finally && ($ += this.finally.render(b)), $;
4066
+ V.kind = "return";
4067
+ class F extends b {
4068
+ render(y) {
4069
+ let $ = "try" + super.render(y);
4070
+ return this.catch && ($ += this.catch.render(y)), this.finally && ($ += this.finally.render(y)), $;
4071
4071
  }
4072
4072
  optimizeNodes() {
4073
- var b, $;
4074
- return super.optimizeNodes(), (b = this.catch) === null || b === void 0 || b.optimizeNodes(), ($ = this.finally) === null || $ === void 0 || $.optimizeNodes(), this;
4073
+ var y, $;
4074
+ return super.optimizeNodes(), (y = this.catch) === null || y === void 0 || y.optimizeNodes(), ($ = this.finally) === null || $ === void 0 || $.optimizeNodes(), this;
4075
4075
  }
4076
- optimizeNames(b, $) {
4076
+ optimizeNames(y, $) {
4077
4077
  var C, A;
4078
- return super.optimizeNames(b, $), (C = this.catch) === null || C === void 0 || C.optimizeNames(b, $), (A = this.finally) === null || A === void 0 || A.optimizeNames(b, $), this;
4078
+ return super.optimizeNames(y, $), (C = this.catch) === null || C === void 0 || C.optimizeNames(y, $), (A = this.finally) === null || A === void 0 || A.optimizeNames(y, $), this;
4079
4079
  }
4080
4080
  get names() {
4081
- const b = super.names;
4082
- return this.catch && B(b, this.catch.names), this.finally && B(b, this.finally.names), b;
4081
+ const y = super.names;
4082
+ return this.catch && B(y, this.catch.names), this.finally && B(y, this.finally.names), y;
4083
4083
  }
4084
4084
  }
4085
- class U extends y {
4086
- constructor(b) {
4087
- super(), this.error = b;
4085
+ class U extends b {
4086
+ constructor(y) {
4087
+ super(), this.error = y;
4088
4088
  }
4089
- render(b) {
4090
- return `catch(${this.error})` + super.render(b);
4089
+ render(y) {
4090
+ return `catch(${this.error})` + super.render(y);
4091
4091
  }
4092
4092
  }
4093
4093
  U.kind = "catch";
4094
- class K extends y {
4095
- render(b) {
4096
- return "finally" + super.render(b);
4094
+ class K extends b {
4095
+ render(y) {
4096
+ return "finally" + super.render(y);
4097
4097
  }
4098
4098
  }
4099
4099
  K.kind = "finally";
4100
4100
  class J {
4101
- constructor(b, $ = {}) {
4101
+ constructor(y, $ = {}) {
4102
4102
  this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...$, _n: $.lines ? `
4103
- ` : "" }, this._extScope = b, this._scope = new r.Scope({ parent: b }), this._nodes = [new m()];
4103
+ ` : "" }, this._extScope = y, this._scope = new r.Scope({ parent: y }), this._nodes = [new m()];
4104
4104
  }
4105
4105
  toString() {
4106
4106
  return this._root.render(this.opts);
4107
4107
  }
4108
4108
  // returns unique name in the internal scope
4109
- name(b) {
4110
- return this._scope.name(b);
4109
+ name(y) {
4110
+ return this._scope.name(y);
4111
4111
  }
4112
4112
  // reserves unique name in the external scope
4113
- scopeName(b) {
4114
- return this._extScope.name(b);
4113
+ scopeName(y) {
4114
+ return this._extScope.name(y);
4115
4115
  }
4116
4116
  // reserves unique name in the external scope and assigns value to it
4117
- scopeValue(b, $) {
4118
- const C = this._extScope.value(b, $);
4117
+ scopeValue(y, $) {
4118
+ const C = this._extScope.value(y, $);
4119
4119
  return (this._values[C.prefix] || (this._values[C.prefix] = /* @__PURE__ */ new Set())).add(C), C;
4120
4120
  }
4121
- getScopeValue(b, $) {
4122
- return this._extScope.getValue(b, $);
4121
+ getScopeValue(y, $) {
4122
+ return this._extScope.getValue(y, $);
4123
4123
  }
4124
4124
  // return code that assigns values in the external scope to the names that are used internally
4125
4125
  // (same names that were returned by gen.scopeName or gen.scopeValue)
4126
- scopeRefs(b) {
4127
- return this._extScope.scopeRefs(b, this._values);
4126
+ scopeRefs(y) {
4127
+ return this._extScope.scopeRefs(y, this._values);
4128
4128
  }
4129
4129
  scopeCode() {
4130
4130
  return this._extScope.scopeCode(this._values);
4131
4131
  }
4132
- _def(b, $, C, A) {
4132
+ _def(y, $, C, A) {
4133
4133
  const N = this._scope.toName($);
4134
- return C !== void 0 && A && (this._constants[N.str] = C), this._leafNode(new s(b, N, C)), N;
4134
+ return C !== void 0 && A && (this._constants[N.str] = C), this._leafNode(new s(y, N, C)), N;
4135
4135
  }
4136
4136
  // `const` declaration (`var` in es5 mode)
4137
- const(b, $, C) {
4138
- return this._def(r.varKinds.const, b, $, C);
4137
+ const(y, $, C) {
4138
+ return this._def(r.varKinds.const, y, $, C);
4139
4139
  }
4140
4140
  // `let` declaration with optional assignment (`var` in es5 mode)
4141
- let(b, $, C) {
4142
- return this._def(r.varKinds.let, b, $, C);
4141
+ let(y, $, C) {
4142
+ return this._def(r.varKinds.let, y, $, C);
4143
4143
  }
4144
4144
  // `var` declaration with optional assignment
4145
- var(b, $, C) {
4146
- return this._def(r.varKinds.var, b, $, C);
4145
+ var(y, $, C) {
4146
+ return this._def(r.varKinds.var, y, $, C);
4147
4147
  }
4148
4148
  // assignment code
4149
- assign(b, $, C) {
4150
- return this._leafNode(new i(b, $, C));
4149
+ assign(y, $, C) {
4150
+ return this._leafNode(new i(y, $, C));
4151
4151
  }
4152
4152
  // `+=` code
4153
- add(b, $) {
4154
- return this._leafNode(new c(b, e.operators.ADD, $));
4153
+ add(y, $) {
4154
+ return this._leafNode(new c(y, e.operators.ADD, $));
4155
4155
  }
4156
4156
  // appends passed SafeExpr to code or executes Block
4157
- code(b) {
4158
- return typeof b == "function" ? b() : b !== t.nil && this._leafNode(new h(b)), this;
4157
+ code(y) {
4158
+ return typeof y == "function" ? y() : y !== t.nil && this._leafNode(new h(y)), this;
4159
4159
  }
4160
4160
  // returns code for object literal for the passed argument list of key-value pairs
4161
- object(...b) {
4161
+ object(...y) {
4162
4162
  const $ = ["{"];
4163
- for (const [C, A] of b)
4163
+ for (const [C, A] of y)
4164
4164
  $.length > 1 && $.push(","), $.push(C), (C !== A || this.opts.es5) && ($.push(":"), (0, t.addCodeArg)($, A));
4165
4165
  return $.push("}"), new t._Code($);
4166
4166
  }
4167
4167
  // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)
4168
- if(b, $, C) {
4169
- if (this._blockNode(new f(b)), $ && C)
4168
+ if(y, $, C) {
4169
+ if (this._blockNode(new f(y)), $ && C)
4170
4170
  this.code($).else().code(C).endIf();
4171
4171
  else if ($)
4172
4172
  this.code($).endIf();
@@ -4175,8 +4175,8 @@ var zc = {};
4175
4175
  return this;
4176
4176
  }
4177
4177
  // `else if` clause - invalid without `if` or after `else` clauses
4178
- elseIf(b) {
4179
- return this._elseNode(new f(b));
4178
+ elseIf(y) {
4179
+ return this._elseNode(new f(y));
4180
4180
  }
4181
4181
  // `else` clause - only valid after `if` or `else if` clauses
4182
4182
  else() {
@@ -4186,21 +4186,21 @@ var zc = {};
4186
4186
  endIf() {
4187
4187
  return this._endBlockNode(f, g);
4188
4188
  }
4189
- _for(b, $) {
4190
- return this._blockNode(b), $ && this.code($).endFor(), this;
4189
+ _for(y, $) {
4190
+ return this._blockNode(y), $ && this.code($).endFor(), this;
4191
4191
  }
4192
4192
  // a generic `for` clause (or statement if `forBody` is passed)
4193
- for(b, $) {
4194
- return this._for(new E(b), $);
4193
+ for(y, $) {
4194
+ return this._for(new E(y), $);
4195
4195
  }
4196
4196
  // `for` statement for a range of values
4197
- forRange(b, $, C, A, N = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
4198
- const W = this._scope.toName(b);
4197
+ forRange(y, $, C, A, N = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
4198
+ const W = this._scope.toName(y);
4199
4199
  return this._for(new S(N, W, $, C), () => A(W));
4200
4200
  }
4201
4201
  // `for-of` statement (in es5 mode replace with a normal for loop)
4202
- forOf(b, $, C, A = r.varKinds.const) {
4203
- const N = this._scope.toName(b);
4202
+ forOf(y, $, C, A = r.varKinds.const) {
4203
+ const N = this._scope.toName(y);
4204
4204
  if (this.opts.es5) {
4205
4205
  const W = $ instanceof t.Name ? $ : this.var("_arr", $);
4206
4206
  return this.forRange("_i", 0, (0, t._)`${W}.length`, (q) => {
@@ -4211,10 +4211,10 @@ var zc = {};
4211
4211
  }
4212
4212
  // `for-in` statement.
4213
4213
  // With option `ownProperties` replaced with a `for-of` loop for object keys
4214
- forIn(b, $, C, A = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
4214
+ forIn(y, $, C, A = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
4215
4215
  if (this.opts.ownProperties)
4216
- return this.forOf(b, (0, t._)`Object.keys(${$})`, C);
4217
- const N = this._scope.toName(b);
4216
+ return this.forOf(y, (0, t._)`Object.keys(${$})`, C);
4217
+ const N = this._scope.toName(y);
4218
4218
  return this._for(new O("in", A, N, $), () => C(N));
4219
4219
  }
4220
4220
  // end `for` loop
@@ -4222,101 +4222,101 @@ var zc = {};
4222
4222
  return this._endBlockNode(p);
4223
4223
  }
4224
4224
  // `label` statement
4225
- label(b) {
4226
- return this._leafNode(new l(b));
4225
+ label(y) {
4226
+ return this._leafNode(new l(y));
4227
4227
  }
4228
4228
  // `break` statement
4229
- break(b) {
4230
- return this._leafNode(new u(b));
4229
+ break(y) {
4230
+ return this._leafNode(new u(y));
4231
4231
  }
4232
4232
  // `return` statement
4233
- return(b) {
4234
- const $ = new z();
4235
- if (this._blockNode($), this.code(b), $.nodes.length !== 1)
4233
+ return(y) {
4234
+ const $ = new V();
4235
+ if (this._blockNode($), this.code(y), $.nodes.length !== 1)
4236
4236
  throw new Error('CodeGen: "return" should have one node');
4237
- return this._endBlockNode(z);
4237
+ return this._endBlockNode(V);
4238
4238
  }
4239
4239
  // `try` statement
4240
- try(b, $, C) {
4240
+ try(y, $, C) {
4241
4241
  if (!$ && !C)
4242
4242
  throw new Error('CodeGen: "try" without "catch" and "finally"');
4243
4243
  const A = new F();
4244
- if (this._blockNode(A), this.code(b), $) {
4244
+ if (this._blockNode(A), this.code(y), $) {
4245
4245
  const N = this.name("e");
4246
4246
  this._currNode = A.catch = new U(N), $(N);
4247
4247
  }
4248
4248
  return C && (this._currNode = A.finally = new K(), this.code(C)), this._endBlockNode(U, K);
4249
4249
  }
4250
4250
  // `throw` statement
4251
- throw(b) {
4252
- return this._leafNode(new d(b));
4251
+ throw(y) {
4252
+ return this._leafNode(new d(y));
4253
4253
  }
4254
4254
  // start self-balancing block
4255
- block(b, $) {
4256
- return this._blockStarts.push(this._nodes.length), b && this.code(b).endBlock($), this;
4255
+ block(y, $) {
4256
+ return this._blockStarts.push(this._nodes.length), y && this.code(y).endBlock($), this;
4257
4257
  }
4258
4258
  // end the current self-balancing block
4259
- endBlock(b) {
4259
+ endBlock(y) {
4260
4260
  const $ = this._blockStarts.pop();
4261
4261
  if ($ === void 0)
4262
4262
  throw new Error("CodeGen: not in self-balancing block");
4263
4263
  const C = this._nodes.length - $;
4264
- if (C < 0 || b !== void 0 && C !== b)
4265
- throw new Error(`CodeGen: wrong number of nodes: ${C} vs ${b} expected`);
4264
+ if (C < 0 || y !== void 0 && C !== y)
4265
+ throw new Error(`CodeGen: wrong number of nodes: ${C} vs ${y} expected`);
4266
4266
  return this._nodes.length = $, this;
4267
4267
  }
4268
4268
  // `function` heading (or definition if funcBody is passed)
4269
- func(b, $ = t.nil, C, A) {
4270
- return this._blockNode(new M(b, $, C)), A && this.code(A).endFunc(), this;
4269
+ func(y, $ = t.nil, C, A) {
4270
+ return this._blockNode(new M(y, $, C)), A && this.code(A).endFunc(), this;
4271
4271
  }
4272
4272
  // end function definition
4273
4273
  endFunc() {
4274
4274
  return this._endBlockNode(M);
4275
4275
  }
4276
- optimize(b = 1) {
4277
- for (; b-- > 0; )
4276
+ optimize(y = 1) {
4277
+ for (; y-- > 0; )
4278
4278
  this._root.optimizeNodes(), this._root.optimizeNames(this._root.names, this._constants);
4279
4279
  }
4280
- _leafNode(b) {
4281
- return this._currNode.nodes.push(b), this;
4280
+ _leafNode(y) {
4281
+ return this._currNode.nodes.push(y), this;
4282
4282
  }
4283
- _blockNode(b) {
4284
- this._currNode.nodes.push(b), this._nodes.push(b);
4283
+ _blockNode(y) {
4284
+ this._currNode.nodes.push(y), this._nodes.push(y);
4285
4285
  }
4286
- _endBlockNode(b, $) {
4286
+ _endBlockNode(y, $) {
4287
4287
  const C = this._currNode;
4288
- if (C instanceof b || $ && C instanceof $)
4288
+ if (C instanceof y || $ && C instanceof $)
4289
4289
  return this._nodes.pop(), this;
4290
- throw new Error(`CodeGen: not in block "${$ ? `${b.kind}/${$.kind}` : b.kind}"`);
4290
+ throw new Error(`CodeGen: not in block "${$ ? `${y.kind}/${$.kind}` : y.kind}"`);
4291
4291
  }
4292
- _elseNode(b) {
4292
+ _elseNode(y) {
4293
4293
  const $ = this._currNode;
4294
4294
  if (!($ instanceof f))
4295
4295
  throw new Error('CodeGen: "else" without "if"');
4296
- return this._currNode = $.else = b, this;
4296
+ return this._currNode = $.else = y, this;
4297
4297
  }
4298
4298
  get _root() {
4299
4299
  return this._nodes[0];
4300
4300
  }
4301
4301
  get _currNode() {
4302
- const b = this._nodes;
4303
- return b[b.length - 1];
4302
+ const y = this._nodes;
4303
+ return y[y.length - 1];
4304
4304
  }
4305
- set _currNode(b) {
4305
+ set _currNode(y) {
4306
4306
  const $ = this._nodes;
4307
- $[$.length - 1] = b;
4307
+ $[$.length - 1] = y;
4308
4308
  }
4309
4309
  }
4310
4310
  e.CodeGen = J;
4311
- function B(x, b) {
4312
- for (const $ in b)
4313
- x[$] = (x[$] || 0) + (b[$] || 0);
4311
+ function B(x, y) {
4312
+ for (const $ in y)
4313
+ x[$] = (x[$] || 0) + (y[$] || 0);
4314
4314
  return x;
4315
4315
  }
4316
- function X(x, b) {
4317
- return b instanceof t._CodeOrName ? B(x, b.names) : x;
4316
+ function X(x, y) {
4317
+ return y instanceof t._CodeOrName ? B(x, y.names) : x;
4318
4318
  }
4319
- function Z(x, b, $) {
4319
+ function Z(x, y, $) {
4320
4320
  if (x instanceof t.Name)
4321
4321
  return C(x);
4322
4322
  if (!A(x))
@@ -4324,15 +4324,15 @@ var zc = {};
4324
4324
  return new t._Code(x._items.reduce((N, W) => (W instanceof t.Name && (W = C(W)), W instanceof t._Code ? N.push(...W._items) : N.push(W), N), []));
4325
4325
  function C(N) {
4326
4326
  const W = $[N.str];
4327
- return W === void 0 || b[N.str] !== 1 ? N : (delete b[N.str], W);
4327
+ return W === void 0 || y[N.str] !== 1 ? N : (delete y[N.str], W);
4328
4328
  }
4329
4329
  function A(N) {
4330
- return N instanceof t._Code && N._items.some((W) => W instanceof t.Name && b[W.str] === 1 && $[W.str] !== void 0);
4330
+ return N instanceof t._Code && N._items.some((W) => W instanceof t.Name && y[W.str] === 1 && $[W.str] !== void 0);
4331
4331
  }
4332
4332
  }
4333
- function re(x, b) {
4334
- for (const $ in b)
4335
- x[$] = (x[$] || 0) - (b[$] || 0);
4333
+ function re(x, y) {
4334
+ for (const $ in y)
4335
+ x[$] = (x[$] || 0) - (y[$] || 0);
4336
4336
  }
4337
4337
  function he(x) {
4338
4338
  return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, t._)`!${I(x)}`;
@@ -4349,7 +4349,7 @@ var zc = {};
4349
4349
  }
4350
4350
  e.or = H;
4351
4351
  function R(x) {
4352
- return (b, $) => b === t.nil ? $ : $ === t.nil ? b : (0, t._)`${I(b)} ${x} ${I($)}`;
4352
+ return (y, $) => y === t.nil ? $ : $ === t.nil ? y : (0, t._)`${I(y)} ${x} ${I($)}`;
4353
4353
  }
4354
4354
  function I(x) {
4355
4355
  return x instanceof t.Name ? x : (0, t._)`(${x})`;
@@ -4535,13 +4535,13 @@ Yt.default = fL;
4535
4535
  message: ({ keyword: g, schemaType: f }) => f ? (0, t.str)`"${g}" keyword must be ${f} ($data)` : (0, t.str)`"${g}" keyword is invalid ($data)`
4536
4536
  };
4537
4537
  function a(g, f = e.keywordError, p, E) {
4538
- const { it: S } = g, { gen: O, compositeRule: M, allErrors: z } = S, F = d(g, f, p);
4539
- E ?? (M || z) ? c(O, F) : l(S, (0, t._)`[${F}]`);
4538
+ const { it: S } = g, { gen: O, compositeRule: M, allErrors: V } = S, F = d(g, f, p);
4539
+ E ?? (M || V) ? c(O, F) : l(S, (0, t._)`[${F}]`);
4540
4540
  }
4541
4541
  e.reportError = a;
4542
4542
  function o(g, f = e.keywordError, p) {
4543
- const { it: E } = g, { gen: S, compositeRule: O, allErrors: M } = E, z = d(g, f, p);
4544
- c(S, z), O || M || l(E, n.default.vErrors);
4543
+ const { it: E } = g, { gen: S, compositeRule: O, allErrors: M } = E, V = d(g, f, p);
4544
+ c(S, V), O || M || l(E, n.default.vErrors);
4545
4545
  }
4546
4546
  e.reportExtraError = o;
4547
4547
  function s(g, f) {
@@ -4552,8 +4552,8 @@ Yt.default = fL;
4552
4552
  if (S === void 0)
4553
4553
  throw new Error("ajv implementation error");
4554
4554
  const M = g.name("err");
4555
- g.forRange("i", S, n.default.errors, (z) => {
4556
- g.const(M, (0, t._)`${n.default.vErrors}[${z}]`), g.if((0, t._)`${M}.instancePath === undefined`, () => g.assign((0, t._)`${M}.instancePath`, (0, t.strConcat)(n.default.instancePath, O.errorPath))), g.assign((0, t._)`${M}.schemaPath`, (0, t.str)`${O.errSchemaPath}/${f}`), O.opts.verbose && (g.assign((0, t._)`${M}.schema`, p), g.assign((0, t._)`${M}.data`, E));
4555
+ g.forRange("i", S, n.default.errors, (V) => {
4556
+ g.const(M, (0, t._)`${n.default.vErrors}[${V}]`), g.if((0, t._)`${M}.instancePath === undefined`, () => g.assign((0, t._)`${M}.instancePath`, (0, t.strConcat)(n.default.instancePath, O.errorPath))), g.assign((0, t._)`${M}.schemaPath`, (0, t.str)`${O.errSchemaPath}/${f}`), O.opts.verbose && (g.assign((0, t._)`${M}.schema`, p), g.assign((0, t._)`${M}.data`, E));
4557
4557
  });
4558
4558
  }
4559
4559
  e.extendErrors = i;
@@ -4582,7 +4582,7 @@ Yt.default = fL;
4582
4582
  function h(g, f, p = {}) {
4583
4583
  const { gen: E, it: S } = g, O = [
4584
4584
  v(S, p),
4585
- y(g, p)
4585
+ b(g, p)
4586
4586
  ];
4587
4587
  return m(g, f, O), E.object(...O);
4588
4588
  }
@@ -4590,12 +4590,12 @@ Yt.default = fL;
4590
4590
  const p = f ? (0, t.str)`${g}${(0, r.getErrorPath)(f, r.Type.Str)}` : g;
4591
4591
  return [n.default.instancePath, (0, t.strConcat)(n.default.instancePath, p)];
4592
4592
  }
4593
- function y({ keyword: g, it: { errSchemaPath: f } }, { schemaPath: p, parentSchema: E }) {
4593
+ function b({ keyword: g, it: { errSchemaPath: f } }, { schemaPath: p, parentSchema: E }) {
4594
4594
  let S = E ? f : (0, t.str)`${f}/${g}`;
4595
4595
  return p && (S = (0, t.str)`${S}${(0, r.getErrorPath)(p, r.Type.Str)}`), [u.schemaPath, S];
4596
4596
  }
4597
4597
  function m(g, { params: f, message: p }, E) {
4598
- const { keyword: S, data: O, schemaValue: M, it: z } = g, { opts: F, propertyName: U, topSchemaRef: K, schemaPath: J } = z;
4598
+ const { keyword: S, data: O, schemaValue: M, it: V } = g, { opts: F, propertyName: U, topSchemaRef: K, schemaPath: J } = V;
4599
4599
  E.push([u.keyword, S], [u.params, typeof f == "function" ? f(g) : f || (0, t._)`{}`]), F.messages && E.push([u.message, typeof p == "function" ? p(g) : p]), F.verbose && E.push([u.schema, M], [u.parentSchema, (0, t._)`${K}${J}`], [n.default.data, O]), U && E.push([u.propertyName, U]);
4600
4600
  }
4601
4601
  })(va);
@@ -4970,7 +4970,7 @@ function YL(e, t) {
4970
4970
  if (t.errors === !1)
4971
4971
  m(), t.modifying && rp(e), g(() => e.error());
4972
4972
  else {
4973
- const f = t.async ? v() : y();
4973
+ const f = t.async ? v() : b();
4974
4974
  t.modifying && rp(e), g(() => JL(e, f));
4975
4975
  }
4976
4976
  }
@@ -4978,7 +4978,7 @@ function YL(e, t) {
4978
4978
  const f = n.let("ruleErrs", null);
4979
4979
  return n.try(() => m((0, bt._)`await `), (p) => n.assign(d, !1).if((0, bt._)`${p} instanceof ${c.ValidationError}`, () => n.assign(f, (0, bt._)`${p}.errors`), () => n.throw(p))), f;
4980
4980
  }
4981
- function y() {
4981
+ function b() {
4982
4982
  const f = (0, bt._)`${u}.errors`;
4983
4983
  return n.assign(f, null), m(bt.nil), f;
4984
4984
  }
@@ -5267,11 +5267,11 @@ function mF(e, t) {
5267
5267
  if (typeof e == "boolean")
5268
5268
  return {};
5269
5269
  const { schemaId: r, uriResolver: n } = this.opts, a = Kn(e[r] || t), o = { "": a }, s = Pv(n, a, !1), i = {}, c = /* @__PURE__ */ new Set();
5270
- return cF(e, { allKeys: !0 }, (d, h, v, y) => {
5271
- if (y === void 0)
5270
+ return cF(e, { allKeys: !0 }, (d, h, v, b) => {
5271
+ if (b === void 0)
5272
5272
  return;
5273
5273
  const m = s + h;
5274
- let g = o[y];
5274
+ let g = o[b];
5275
5275
  typeof d[r] == "string" && (g = f.call(this, d[r])), p.call(this, d.$anchor), p.call(this, d.$dynamicAnchor), o[h] = g;
5276
5276
  function f(E) {
5277
5277
  const S = this.opts.uriResolver.resolve;
@@ -5682,11 +5682,11 @@ function Yl(e) {
5682
5682
  u = `${s.scopeRefs(sn.default.scope)}return ${d}`, this.opts.code.process && (u = this.opts.code.process(u, e));
5683
5683
  const v = new Function(`${sn.default.self}`, `${sn.default.scope}`, u)(this, this.scope.get());
5684
5684
  if (this.scope.value(c, { ref: v }), v.errors = null, v.schema = e.schema, v.schemaEnv = e, e.$async && (v.$async = !0), this.opts.code.source === !0 && (v.source = { validateName: c, validateCode: d, scopeValues: s._values }), this.opts.unevaluated) {
5685
- const { props: y, items: m } = l;
5685
+ const { props: b, items: m } = l;
5686
5686
  v.evaluated = {
5687
- props: y instanceof Wt.Name ? void 0 : y,
5687
+ props: b instanceof Wt.Name ? void 0 : b,
5688
5688
  items: m instanceof Wt.Name ? void 0 : m,
5689
- dynamicProps: y instanceof Wt.Name,
5689
+ dynamicProps: b instanceof Wt.Name,
5690
5690
  dynamicItems: m instanceof Wt.Name
5691
5691
  }, v.source && (v.source.evaluated = (0, Wt.stringify)(v.evaluated));
5692
5692
  }
@@ -5839,20 +5839,20 @@ var Jl = {}, Hc = { exports: {} };
5839
5839
  return P;
5840
5840
  }
5841
5841
  function l(T) {
5842
- var w = "[A-Za-z]", P = "[0-9]", L = n(P, "[A-Fa-f]"), _ = a(a("%[EFef]" + L + "%" + L + L + "%" + L + L) + "|" + a("%[89A-Fa-f]" + L + "%" + L + L) + "|" + a("%" + L + L)), k = "[\\:\\/\\?\\#\\[\\]\\@]", V = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", Y = n(k, V), pe = T ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", me = T ? "[\\uE000-\\uF8FF]" : "[]", te = n(w, P, "[\\-\\.\\_\\~]", pe);
5843
- a(w + n(w, P, "[\\+\\-\\.]") + "*"), a(a(_ + "|" + n(te, V, "[\\:]")) + "*");
5842
+ var w = "[A-Za-z]", P = "[0-9]", L = n(P, "[A-Fa-f]"), _ = a(a("%[EFef]" + L + "%" + L + L + "%" + L + L) + "|" + a("%[89A-Fa-f]" + L + "%" + L + L) + "|" + a("%" + L + L)), k = "[\\:\\/\\?\\#\\[\\]\\@]", z = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", Y = n(k, z), pe = T ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", me = T ? "[\\uE000-\\uF8FF]" : "[]", te = n(w, P, "[\\-\\.\\_\\~]", pe);
5843
+ a(w + n(w, P, "[\\+\\-\\.]") + "*"), a(a(_ + "|" + n(te, z, "[\\:]")) + "*");
5844
5844
  var ie = a(a("25[0-5]") + "|" + a("2[0-4]" + P) + "|" + a("1" + P + P) + "|" + a("0?[1-9]" + P) + "|0?0?" + P), Pe = a(ie + "\\." + ie + "\\." + ie + "\\." + ie), se = a(L + "{1,4}"), _e = a(a(se + "\\:" + se) + "|" + Pe), ke = a(a(se + "\\:") + "{6}" + _e), je = a("\\:\\:" + a(se + "\\:") + "{5}" + _e), ft = a(a(se) + "?\\:\\:" + a(se + "\\:") + "{4}" + _e), Be = a(a(a(se + "\\:") + "{0,1}" + se) + "?\\:\\:" + a(se + "\\:") + "{3}" + _e), Ct = a(a(a(se + "\\:") + "{0,2}" + se) + "?\\:\\:" + a(se + "\\:") + "{2}" + _e), zr = a(a(a(se + "\\:") + "{0,3}" + se) + "?\\:\\:" + se + "\\:" + _e), yr = a(a(a(se + "\\:") + "{0,4}" + se) + "?\\:\\:" + _e), Dt = a(a(a(se + "\\:") + "{0,5}" + se) + "?\\:\\:" + se), tr = a(a(a(se + "\\:") + "{0,6}" + se) + "?\\:\\:"), on = a([ke, je, ft, Be, Ct, zr, yr, Dt, tr].join("|")), br = a(a(te + "|" + _) + "+");
5845
- a("[vV]" + L + "+\\." + n(te, V, "[\\:]") + "+"), a(a(_ + "|" + n(te, V)) + "*");
5846
- var Na = a(_ + "|" + n(te, V, "[\\:\\@]"));
5847
- return a(a(_ + "|" + n(te, V, "[\\@]")) + "+"), a(a(Na + "|" + n("[\\/\\?]", me)) + "*"), {
5845
+ a("[vV]" + L + "+\\." + n(te, z, "[\\:]") + "+"), a(a(_ + "|" + n(te, z)) + "*");
5846
+ var Na = a(_ + "|" + n(te, z, "[\\:\\@]"));
5847
+ return a(a(_ + "|" + n(te, z, "[\\@]")) + "+"), a(a(Na + "|" + n("[\\/\\?]", me)) + "*"), {
5848
5848
  NOT_SCHEME: new RegExp(n("[^]", w, P, "[\\+\\-\\.]"), "g"),
5849
- NOT_USERINFO: new RegExp(n("[^\\%\\:]", te, V), "g"),
5850
- NOT_HOST: new RegExp(n("[^\\%\\[\\]\\:]", te, V), "g"),
5851
- NOT_PATH: new RegExp(n("[^\\%\\/\\:\\@]", te, V), "g"),
5852
- NOT_PATH_NOSCHEME: new RegExp(n("[^\\%\\/\\@]", te, V), "g"),
5853
- NOT_QUERY: new RegExp(n("[^\\%]", te, V, "[\\:\\@\\/\\?]", me), "g"),
5854
- NOT_FRAGMENT: new RegExp(n("[^\\%]", te, V, "[\\:\\@\\/\\?]"), "g"),
5855
- ESCAPE: new RegExp(n("[^]", te, V), "g"),
5849
+ NOT_USERINFO: new RegExp(n("[^\\%\\:]", te, z), "g"),
5850
+ NOT_HOST: new RegExp(n("[^\\%\\[\\]\\:]", te, z), "g"),
5851
+ NOT_PATH: new RegExp(n("[^\\%\\/\\:\\@]", te, z), "g"),
5852
+ NOT_PATH_NOSCHEME: new RegExp(n("[^\\%\\/\\@]", te, z), "g"),
5853
+ NOT_QUERY: new RegExp(n("[^\\%]", te, z, "[\\:\\@\\/\\?]", me), "g"),
5854
+ NOT_FRAGMENT: new RegExp(n("[^\\%]", te, z, "[\\:\\@\\/\\?]"), "g"),
5855
+ ESCAPE: new RegExp(n("[^]", te, z), "g"),
5856
5856
  UNRESERVED: new RegExp(te, "g"),
5857
5857
  OTHER_CHARS: new RegExp(n("[^\\%]", te, Y), "g"),
5858
5858
  PCT_ENCODED: new RegExp(_, "g"),
@@ -5863,18 +5863,18 @@ var Jl = {}, Hc = { exports: {} };
5863
5863
  }
5864
5864
  var u = l(!1), d = l(!0), h = /* @__PURE__ */ function() {
5865
5865
  function T(w, P) {
5866
- var L = [], _ = !0, k = !1, V = void 0;
5866
+ var L = [], _ = !0, k = !1, z = void 0;
5867
5867
  try {
5868
5868
  for (var Y = w[Symbol.iterator](), pe; !(_ = (pe = Y.next()).done) && (L.push(pe.value), !(P && L.length === P)); _ = !0)
5869
5869
  ;
5870
5870
  } catch (me) {
5871
- k = !0, V = me;
5871
+ k = !0, z = me;
5872
5872
  } finally {
5873
5873
  try {
5874
5874
  !_ && Y.return && Y.return();
5875
5875
  } finally {
5876
5876
  if (k)
5877
- throw V;
5877
+ throw z;
5878
5878
  }
5879
5879
  }
5880
5880
  return L;
@@ -5893,7 +5893,7 @@ var Jl = {}, Hc = { exports: {} };
5893
5893
  return P;
5894
5894
  } else
5895
5895
  return Array.from(T);
5896
- }, y = 2147483647, m = 36, g = 1, f = 26, p = 38, E = 700, S = 72, O = 128, M = "-", z = /^xn--/, F = /[^\0-\x7E]/, U = /[\x2E\u3002\uFF0E\uFF61]/g, K = {
5896
+ }, b = 2147483647, m = 36, g = 1, f = 26, p = 38, E = 700, S = 72, O = 128, M = "-", V = /^xn--/, F = /[^\0-\x7E]/, U = /[\x2E\u3002\uFF0E\uFF61]/g, K = {
5897
5897
  overflow: "Overflow: input needs wider integers to process",
5898
5898
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
5899
5899
  "invalid-input": "Invalid input"
@@ -5940,7 +5940,7 @@ var Jl = {}, Hc = { exports: {} };
5940
5940
  w = B(w / J);
5941
5941
  return B(_ + (J + 1) * w / (w + p));
5942
5942
  }, I = function(w) {
5943
- var P = [], L = w.length, _ = 0, k = O, V = S, Y = w.lastIndexOf(M);
5943
+ var P = [], L = w.length, _ = 0, k = O, z = S, Y = w.lastIndexOf(M);
5944
5944
  Y < 0 && (Y = 0);
5945
5945
  for (var pe = 0; pe < Y; ++pe)
5946
5946
  w.charCodeAt(pe) >= 128 && Z("not-basic"), P.push(w.charCodeAt(pe));
@@ -5953,21 +5953,21 @@ var Jl = {}, Hc = { exports: {} };
5953
5953
  ) {
5954
5954
  me >= L && Z("invalid-input");
5955
5955
  var se = be(w.charCodeAt(me++));
5956
- (se >= m || se > B((y - _) / ie)) && Z("overflow"), _ += se * ie;
5957
- var _e = Pe <= V ? g : Pe >= V + f ? f : Pe - V;
5956
+ (se >= m || se > B((b - _) / ie)) && Z("overflow"), _ += se * ie;
5957
+ var _e = Pe <= z ? g : Pe >= z + f ? f : Pe - z;
5958
5958
  if (se < _e)
5959
5959
  break;
5960
5960
  var ke = m - _e;
5961
- ie > B(y / ke) && Z("overflow"), ie *= ke;
5961
+ ie > B(b / ke) && Z("overflow"), ie *= ke;
5962
5962
  }
5963
5963
  var je = P.length + 1;
5964
- V = R(_ - te, je, te == 0), B(_ / je) > y - k && Z("overflow"), k += B(_ / je), _ %= je, P.splice(_++, 0, k);
5964
+ z = R(_ - te, je, te == 0), B(_ / je) > b - k && Z("overflow"), k += B(_ / je), _ %= je, P.splice(_++, 0, k);
5965
5965
  }
5966
5966
  return String.fromCodePoint.apply(String, P);
5967
5967
  }, x = function(w) {
5968
5968
  var P = [];
5969
5969
  w = de(w);
5970
- var L = w.length, _ = O, k = 0, V = S, Y = !0, pe = !1, me = void 0;
5970
+ var L = w.length, _ = O, k = 0, z = S, Y = !0, pe = !1, me = void 0;
5971
5971
  try {
5972
5972
  for (var te = w[Symbol.iterator](), ie; !(Y = (ie = te.next()).done); Y = !0) {
5973
5973
  var Pe = ie.value;
@@ -5985,7 +5985,7 @@ var Jl = {}, Hc = { exports: {} };
5985
5985
  }
5986
5986
  var se = P.length, _e = se;
5987
5987
  for (se && P.push(M); _e < L; ) {
5988
- var ke = y, je = !0, ft = !1, Be = void 0;
5988
+ var ke = b, je = !0, ft = !1, Be = void 0;
5989
5989
  try {
5990
5990
  for (var Ct = w[Symbol.iterator](), zr; !(je = (zr = Ct.next()).done); je = !0) {
5991
5991
  var yr = zr.value;
@@ -6002,25 +6002,25 @@ var Jl = {}, Hc = { exports: {} };
6002
6002
  }
6003
6003
  }
6004
6004
  var Dt = _e + 1;
6005
- ke - _ > B((y - k) / Dt) && Z("overflow"), k += (ke - _) * Dt, _ = ke;
6005
+ ke - _ > B((b - k) / Dt) && Z("overflow"), k += (ke - _) * Dt, _ = ke;
6006
6006
  var tr = !0, on = !1, br = void 0;
6007
6007
  try {
6008
6008
  for (var Na = w[Symbol.iterator](), md; !(tr = (md = Na.next()).done); tr = !0) {
6009
6009
  var vd = md.value;
6010
- if (vd < _ && ++k > y && Z("overflow"), vd == _) {
6010
+ if (vd < _ && ++k > b && Z("overflow"), vd == _) {
6011
6011
  for (
6012
6012
  var Ho = k, qo = m;
6013
6013
  ;
6014
6014
  /* no condition */
6015
6015
  qo += m
6016
6016
  ) {
6017
- var Go = qo <= V ? g : qo >= V + f ? f : qo - V;
6017
+ var Go = qo <= z ? g : qo >= z + f ? f : qo - z;
6018
6018
  if (Ho < Go)
6019
6019
  break;
6020
6020
  var gd = Ho - Go, yd = m - Go;
6021
6021
  P.push(X(H(Go + gd % yd, 0))), Ho = B(gd / yd);
6022
6022
  }
6023
- P.push(X(H(Ho, 0))), V = R(k, Dt, _e == se), k = 0, ++_e;
6023
+ P.push(X(H(Ho, 0))), z = R(k, Dt, _e == se), k = 0, ++_e;
6024
6024
  }
6025
6025
  }
6026
6026
  } catch (Ia) {
@@ -6036,9 +6036,9 @@ var Jl = {}, Hc = { exports: {} };
6036
6036
  ++k, ++_;
6037
6037
  }
6038
6038
  return P.join("");
6039
- }, b = function(w) {
6039
+ }, y = function(w) {
6040
6040
  return he(w, function(P) {
6041
- return z.test(P) ? I(P.slice(4).toLowerCase()) : P;
6041
+ return V.test(P) ? I(P.slice(4).toLowerCase()) : P;
6042
6042
  });
6043
6043
  }, $ = function(w) {
6044
6044
  return he(w, function(P) {
@@ -6065,7 +6065,7 @@ var Jl = {}, Hc = { exports: {} };
6065
6065
  decode: I,
6066
6066
  encode: x,
6067
6067
  toASCII: $,
6068
- toUnicode: b
6068
+ toUnicode: y
6069
6069
  }, A = {};
6070
6070
  function N(T) {
6071
6071
  var w = T.charCodeAt(0), P = void 0;
@@ -6085,8 +6085,8 @@ var Jl = {}, Hc = { exports: {} };
6085
6085
  P += 6;
6086
6086
  } else if (_ >= 224) {
6087
6087
  if (L - P >= 9) {
6088
- var V = parseInt(T.substr(P + 4, 2), 16), Y = parseInt(T.substr(P + 7, 2), 16);
6089
- w += String.fromCharCode((_ & 15) << 12 | (V & 63) << 6 | Y & 63);
6088
+ var z = parseInt(T.substr(P + 4, 2), 16), Y = parseInt(T.substr(P + 7, 2), 16);
6089
+ w += String.fromCharCode((_ & 15) << 12 | (z & 63) << 6 | Y & 63);
6090
6090
  } else
6091
6091
  w += T.substr(P, 9);
6092
6092
  P += 9;
@@ -6112,7 +6112,7 @@ var Jl = {}, Hc = { exports: {} };
6112
6112
  function Ae(T, w) {
6113
6113
  var P = T.match(w.IPV6ADDRESS) || [], L = h(P, 3), _ = L[1], k = L[2];
6114
6114
  if (_) {
6115
- for (var V = _.toLowerCase().split("::").reverse(), Y = h(V, 2), pe = Y[0], me = Y[1], te = me ? me.split(":").map(Q) : [], ie = pe.split(":").map(Q), Pe = w.IPV4ADDRESS.test(ie[ie.length - 1]), se = Pe ? 7 : 8, _e = ie.length - se, ke = Array(se), je = 0; je < se; ++je)
6115
+ for (var z = _.toLowerCase().split("::").reverse(), Y = h(z, 2), pe = Y[0], me = Y[1], te = me ? me.split(":").map(Q) : [], ie = pe.split(":").map(Q), Pe = w.IPV4ADDRESS.test(ie[ie.length - 1]), se = Pe ? 7 : 8, _e = ie.length - se, ke = Array(se), je = 0; je < se; ++je)
6116
6116
  ke[je] = te[je] || ie[_e + je] || "";
6117
6117
  Pe && (ke[se - 1] = ne(ke[se - 1], w));
6118
6118
  var ft = ke.reduce(function(Dt, tr, on) {
@@ -6134,7 +6134,7 @@ var Jl = {}, Hc = { exports: {} };
6134
6134
  return T;
6135
6135
  }
6136
6136
  var Ze = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, Xe = "".match(/(){0}/)[1] === void 0;
6137
- function ze(T) {
6137
+ function We(T) {
6138
6138
  var w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, P = {}, L = w.iri !== !1 ? d : u;
6139
6139
  w.reference === "suffix" && (T = (w.scheme ? w.scheme + ":" : "") + "//" + T);
6140
6140
  var _ = T.match(Ze);
@@ -6145,8 +6145,8 @@ var Jl = {}, Hc = { exports: {} };
6145
6145
  if (P.host && (w.domainHost || k && k.domainHost))
6146
6146
  try {
6147
6147
  P.host = C.toASCII(P.host.replace(L.PCT_ENCODED, W).toLowerCase());
6148
- } catch (V) {
6149
- P.error = P.error || "Host's domain name can not be converted to ASCII via punycode: " + V;
6148
+ } catch (z) {
6149
+ P.error = P.error || "Host's domain name can not be converted to ASCII via punycode: " + z;
6150
6150
  }
6151
6151
  q(P, u);
6152
6152
  } else
@@ -6158,8 +6158,8 @@ var Jl = {}, Hc = { exports: {} };
6158
6158
  }
6159
6159
  function wt(T, w) {
6160
6160
  var P = w.iri !== !1 ? d : u, L = [];
6161
- return T.userinfo !== void 0 && (L.push(T.userinfo), L.push("@")), T.host !== void 0 && L.push(Ae(ne(String(T.host), P), P).replace(P.IPV6ADDRESS, function(_, k, V) {
6162
- return "[" + k + (V ? "%25" + V : "") + "]";
6161
+ return T.userinfo !== void 0 && (L.push(T.userinfo), L.push("@")), T.host !== void 0 && L.push(Ae(ne(String(T.host), P), P).replace(P.IPV6ADDRESS, function(_, k, z) {
6162
+ return "[" + k + (z ? "%25" + z : "") + "]";
6163
6163
  })), (typeof T.port == "number" || typeof T.port == "string") && (L.push(":"), L.push(String(T.port))), L.length ? L.join("") : void 0;
6164
6164
  }
6165
6165
  var Vt = /^\.\.?\//, Tt = /^\/\.(\/|$)/, Xt = /^\/\.\.(\/|$)/, It = /^\/?(?:.|\n)*?(?=\/|$)/;
@@ -6196,24 +6196,24 @@ var Jl = {}, Hc = { exports: {} };
6196
6196
  q(T, P), w.reference !== "suffix" && T.scheme && (L.push(T.scheme), L.push(":"));
6197
6197
  var k = wt(T, w);
6198
6198
  if (k !== void 0 && (w.reference !== "suffix" && L.push("//"), L.push(k), T.path && T.path.charAt(0) !== "/" && L.push("/")), T.path !== void 0) {
6199
- var V = T.path;
6200
- !w.absolutePath && (!_ || !_.absolutePath) && (V = Et(V)), k === void 0 && (V = V.replace(/^\/\//, "/%2F")), L.push(V);
6199
+ var z = T.path;
6200
+ !w.absolutePath && (!_ || !_.absolutePath) && (z = Et(z)), k === void 0 && (z = z.replace(/^\/\//, "/%2F")), L.push(z);
6201
6201
  }
6202
6202
  return T.query !== void 0 && (L.push("?"), L.push(T.query)), T.fragment !== void 0 && (L.push("#"), L.push(T.fragment)), L.join("");
6203
6203
  }
6204
6204
  function Lr(T, w) {
6205
6205
  var P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, L = arguments[3], _ = {};
6206
- return L || (T = ze(dt(T, P), P), w = ze(dt(w, P), P)), P = P || {}, !P.tolerant && w.scheme ? (_.scheme = w.scheme, _.userinfo = w.userinfo, _.host = w.host, _.port = w.port, _.path = Et(w.path || ""), _.query = w.query) : (w.userinfo !== void 0 || w.host !== void 0 || w.port !== void 0 ? (_.userinfo = w.userinfo, _.host = w.host, _.port = w.port, _.path = Et(w.path || ""), _.query = w.query) : (w.path ? (w.path.charAt(0) === "/" ? _.path = Et(w.path) : ((T.userinfo !== void 0 || T.host !== void 0 || T.port !== void 0) && !T.path ? _.path = "/" + w.path : T.path ? _.path = T.path.slice(0, T.path.lastIndexOf("/") + 1) + w.path : _.path = w.path, _.path = Et(_.path)), _.query = w.query) : (_.path = T.path, w.query !== void 0 ? _.query = w.query : _.query = T.query), _.userinfo = T.userinfo, _.host = T.host, _.port = T.port), _.scheme = T.scheme), _.fragment = w.fragment, _;
6206
+ return L || (T = We(dt(T, P), P), w = We(dt(w, P), P)), P = P || {}, !P.tolerant && w.scheme ? (_.scheme = w.scheme, _.userinfo = w.userinfo, _.host = w.host, _.port = w.port, _.path = Et(w.path || ""), _.query = w.query) : (w.userinfo !== void 0 || w.host !== void 0 || w.port !== void 0 ? (_.userinfo = w.userinfo, _.host = w.host, _.port = w.port, _.path = Et(w.path || ""), _.query = w.query) : (w.path ? (w.path.charAt(0) === "/" ? _.path = Et(w.path) : ((T.userinfo !== void 0 || T.host !== void 0 || T.port !== void 0) && !T.path ? _.path = "/" + w.path : T.path ? _.path = T.path.slice(0, T.path.lastIndexOf("/") + 1) + w.path : _.path = w.path, _.path = Et(_.path)), _.query = w.query) : (_.path = T.path, w.query !== void 0 ? _.query = w.query : _.query = T.query), _.userinfo = T.userinfo, _.host = T.host, _.port = T.port), _.scheme = T.scheme), _.fragment = w.fragment, _;
6207
6207
  }
6208
6208
  function Fr(T, w, P) {
6209
6209
  var L = c({ scheme: "null" }, P);
6210
- return dt(Lr(ze(T, L), ze(w, L), L, !0), L);
6210
+ return dt(Lr(We(T, L), We(w, L), L, !0), L);
6211
6211
  }
6212
6212
  function Qt(T, w) {
6213
- return typeof T == "string" ? T = dt(ze(T, w), w) : o(T) === "object" && (T = ze(dt(T, w), w)), T;
6213
+ return typeof T == "string" ? T = dt(We(T, w), w) : o(T) === "object" && (T = We(dt(T, w), w)), T;
6214
6214
  }
6215
6215
  function zt(T, w, P) {
6216
- return typeof T == "string" ? T = dt(ze(T, P), P) : o(T) === "object" && (T = dt(T, P)), typeof w == "string" ? w = dt(ze(w, P), P) : o(w) === "object" && (w = dt(w, P)), T === w;
6216
+ return typeof T == "string" ? T = dt(We(T, P), P) : o(T) === "object" && (T = dt(T, P)), typeof w == "string" ? w = dt(We(w, P), P) : o(w) === "object" && (w = dt(w, P)), T === w;
6217
6217
  }
6218
6218
  function Rn(T, w) {
6219
6219
  return T && T.toString().replace(!w || !w.iri ? u.ESCAPE : d.ESCAPE, N);
@@ -6249,8 +6249,8 @@ var Jl = {}, Hc = { exports: {} };
6249
6249
  },
6250
6250
  serialize: function(w, P) {
6251
6251
  if ((w.port === (Fo(w) ? 443 : 80) || w.port === "") && (w.port = void 0), typeof w.secure == "boolean" && (w.scheme = w.secure ? "wss" : "ws", w.secure = void 0), w.resourceName) {
6252
- var L = w.resourceName.split("?"), _ = h(L, 2), k = _[0], V = _[1];
6253
- w.path = k && k !== "/" ? k : void 0, w.query = V, w.resourceName = void 0;
6252
+ var L = w.resourceName.split("?"), _ = h(L, 2), k = _[0], z = _[1];
6253
+ w.path = k && k !== "/" ? k : void 0, w.query = z, w.resourceName = void 0;
6254
6254
  }
6255
6255
  return w.fragment = void 0, w;
6256
6256
  }
@@ -6269,7 +6269,7 @@ var Jl = {}, Hc = { exports: {} };
6269
6269
  parse: function(w, P) {
6270
6270
  var L = w, _ = L.to = L.path ? L.path.split(",") : [];
6271
6271
  if (L.path = void 0, L.query) {
6272
- for (var k = !1, V = {}, Y = L.query.split("&"), pe = 0, me = Y.length; pe < me; ++pe) {
6272
+ for (var k = !1, z = {}, Y = L.query.split("&"), pe = 0, me = Y.length; pe < me; ++pe) {
6273
6273
  var te = Y[pe].split("=");
6274
6274
  switch (te[0]) {
6275
6275
  case "to":
@@ -6283,11 +6283,11 @@ var Jl = {}, Hc = { exports: {} };
6283
6283
  L.body = yt(te[1], P);
6284
6284
  break;
6285
6285
  default:
6286
- k = !0, V[yt(te[0], P)] = yt(te[1], P);
6286
+ k = !0, z[yt(te[0], P)] = yt(te[1], P);
6287
6287
  break;
6288
6288
  }
6289
6289
  }
6290
- k && (L.headers = V);
6290
+ k && (L.headers = z);
6291
6291
  }
6292
6292
  L.query = void 0;
6293
6293
  for (var _e = 0, ke = _.length; _e < ke; ++_e) {
@@ -6307,7 +6307,7 @@ var Jl = {}, Hc = { exports: {} };
6307
6307
  serialize: function(w, P) {
6308
6308
  var L = w, _ = i(w.to);
6309
6309
  if (_) {
6310
- for (var k = 0, V = _.length; k < V; ++k) {
6310
+ for (var k = 0, z = _.length; k < z; ++k) {
6311
6311
  var Y = String(_[k]), pe = Y.lastIndexOf("@"), me = Y.slice(0, pe).replace(gr, In).replace(gr, s).replace(Ii, N), te = Y.slice(pe + 1);
6312
6312
  try {
6313
6313
  te = P.iri ? C.toUnicode(te) : C.toASCII(yt(te, P).toLowerCase());
@@ -6330,15 +6330,15 @@ var Jl = {}, Hc = { exports: {} };
6330
6330
  parse: function(w, P) {
6331
6331
  var L = w.path && w.path.match(Di), _ = w;
6332
6332
  if (L) {
6333
- var k = P.scheme || _.scheme || "urn", V = L[1].toLowerCase(), Y = L[2], pe = k + ":" + (P.nid || V), me = A[pe];
6334
- _.nid = V, _.nss = Y, _.path = void 0, me && (_ = me.parse(_, P));
6333
+ var k = P.scheme || _.scheme || "urn", z = L[1].toLowerCase(), Y = L[2], pe = k + ":" + (P.nid || z), me = A[pe];
6334
+ _.nid = z, _.nss = Y, _.path = void 0, me && (_ = me.parse(_, P));
6335
6335
  } else
6336
6336
  _.error = _.error || "URN can not be parsed.";
6337
6337
  return _;
6338
6338
  },
6339
6339
  serialize: function(w, P) {
6340
- var L = P.scheme || w.scheme || "urn", _ = w.nid, k = L + ":" + (P.nid || _), V = A[k];
6341
- V && (w = V.serialize(w, P));
6340
+ var L = P.scheme || w.scheme || "urn", _ = w.nid, k = L + ":" + (P.nid || _), z = A[k];
6341
+ z && (w = z.serialize(w, P));
6342
6342
  var Y = w, pe = w.nss;
6343
6343
  return Y.path = (_ || P.nid) + ":" + pe, Y;
6344
6344
  }
@@ -6353,7 +6353,7 @@ var Jl = {}, Hc = { exports: {} };
6353
6353
  return L.nss = (w.uuid || "").toLowerCase(), L;
6354
6354
  }
6355
6355
  };
6356
- A[er.scheme] = er, A[Nn.scheme] = Nn, A[an.scheme] = an, A[Vo.scheme] = Vo, A[Oa.scheme] = Oa, A[Uo.scheme] = Uo, A[Ra.scheme] = Ra, r.SCHEMES = A, r.pctEncChar = N, r.pctDecChars = W, r.parse = ze, r.removeDotSegments = Et, r.serialize = dt, r.resolveComponents = Lr, r.resolve = Fr, r.normalize = Qt, r.equal = zt, r.escapeComponent = Rn, r.unescapeComponent = yt, Object.defineProperty(r, "__esModule", { value: !0 });
6356
+ A[er.scheme] = er, A[Nn.scheme] = Nn, A[an.scheme] = an, A[Vo.scheme] = Vo, A[Oa.scheme] = Oa, A[Uo.scheme] = Uo, A[Ra.scheme] = Ra, r.SCHEMES = A, r.pctEncChar = N, r.pctDecChars = W, r.parse = We, r.removeDotSegments = Et, r.serialize = dt, r.resolveComponents = Lr, r.resolve = Fr, r.normalize = Qt, r.equal = zt, r.escapeComponent = Rn, r.unescapeComponent = yt, Object.defineProperty(r, "__esModule", { value: !0 });
6357
6357
  });
6358
6358
  })(Hc, Hc.exports);
6359
6359
  var t9 = Hc.exports;
@@ -6383,7 +6383,7 @@ Jl.default = Uv;
6383
6383
  } });
6384
6384
  const n = Ro, a = ga, o = vn, s = xt, i = Se, c = ct, l = at, u = ae, d = e9, h = Jl, v = (H, R) => new RegExp(H, R);
6385
6385
  v.code = "new RegExp";
6386
- const y = ["removeAdditional", "useDefaults", "coerceTypes"], m = /* @__PURE__ */ new Set([
6386
+ const b = ["removeAdditional", "useDefaults", "coerceTypes"], m = /* @__PURE__ */ new Set([
6387
6387
  "validate",
6388
6388
  "serialize",
6389
6389
  "parse",
@@ -6419,8 +6419,8 @@ Jl.default = Uv;
6419
6419
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
6420
6420
  }, p = 200;
6421
6421
  function E(H) {
6422
- var R, I, x, b, $, C, A, N, W, q, Q, ne, Ae, Ze, Xe, ze, wt, Vt, Tt, Xt, It, Et, dt, Lr, Fr;
6423
- const Qt = H.strict, zt = (R = H.code) === null || R === void 0 ? void 0 : R.optimize, Rn = zt === !0 || zt === void 0 ? 1 : zt || 0, yt = (x = (I = H.code) === null || I === void 0 ? void 0 : I.regExp) !== null && x !== void 0 ? x : v, er = (b = H.uriResolver) !== null && b !== void 0 ? b : h.default;
6422
+ var R, I, x, y, $, C, A, N, W, q, Q, ne, Ae, Ze, Xe, We, wt, Vt, Tt, Xt, It, Et, dt, Lr, Fr;
6423
+ const Qt = H.strict, zt = (R = H.code) === null || R === void 0 ? void 0 : R.optimize, Rn = zt === !0 || zt === void 0 ? 1 : zt || 0, yt = (x = (I = H.code) === null || I === void 0 ? void 0 : I.regExp) !== null && x !== void 0 ? x : v, er = (y = H.uriResolver) !== null && y !== void 0 ? y : h.default;
6424
6424
  return {
6425
6425
  strictSchema: (C = ($ = H.strictSchema) !== null && $ !== void 0 ? $ : Qt) !== null && C !== void 0 ? C : !0,
6426
6426
  strictNumbers: (N = (A = H.strictNumbers) !== null && A !== void 0 ? A : Qt) !== null && N !== void 0 ? N : !0,
@@ -6429,7 +6429,7 @@ Jl.default = Uv;
6429
6429
  strictRequired: (Ze = (Ae = H.strictRequired) !== null && Ae !== void 0 ? Ae : Qt) !== null && Ze !== void 0 ? Ze : !1,
6430
6430
  code: H.code ? { ...H.code, optimize: Rn, regExp: yt } : { optimize: Rn, regExp: yt },
6431
6431
  loopRequired: (Xe = H.loopRequired) !== null && Xe !== void 0 ? Xe : p,
6432
- loopEnum: (ze = H.loopEnum) !== null && ze !== void 0 ? ze : p,
6432
+ loopEnum: (We = H.loopEnum) !== null && We !== void 0 ? We : p,
6433
6433
  meta: (wt = H.meta) !== null && wt !== void 0 ? wt : !0,
6434
6434
  messages: (Vt = H.messages) !== null && Vt !== void 0 ? Vt : !0,
6435
6435
  inlineRefs: (Tt = H.inlineRefs) !== null && Tt !== void 0 ? Tt : !0,
@@ -6447,16 +6447,16 @@ Jl.default = Uv;
6447
6447
  this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), R = this.opts = { ...R, ...E(R) };
6448
6448
  const { es5: I, lines: x } = this.opts.code;
6449
6449
  this.scope = new i.ValueScope({ scope: {}, prefixes: m, es5: I, lines: x }), this.logger = B(R.logger);
6450
- const b = R.validateFormats;
6451
- R.validateFormats = !1, this.RULES = (0, o.getRules)(), O.call(this, g, R, "NOT SUPPORTED"), O.call(this, f, R, "DEPRECATED", "warn"), this._metaOpts = K.call(this), R.formats && F.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), R.keywords && U.call(this, R.keywords), typeof R.meta == "object" && this.addMetaSchema(R.meta), z.call(this), R.validateFormats = b;
6450
+ const y = R.validateFormats;
6451
+ R.validateFormats = !1, this.RULES = (0, o.getRules)(), O.call(this, g, R, "NOT SUPPORTED"), O.call(this, f, R, "DEPRECATED", "warn"), this._metaOpts = K.call(this), R.formats && F.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), R.keywords && U.call(this, R.keywords), typeof R.meta == "object" && this.addMetaSchema(R.meta), V.call(this), R.validateFormats = y;
6452
6452
  }
6453
6453
  _addVocabularies() {
6454
6454
  this.addKeyword("$async");
6455
6455
  }
6456
6456
  _addDefaultMetaSchema() {
6457
6457
  const { $data: R, meta: I, schemaId: x } = this.opts;
6458
- let b = d;
6459
- x === "id" && (b = { ...d }, b.id = b.$id, delete b.$id), I && R && this.addMetaSchema(b, b[x], !1);
6458
+ let y = d;
6459
+ x === "id" && (y = { ...d }, y.id = y.$id, delete y.$id), I && R && this.addMetaSchema(y, y[x], !1);
6460
6460
  }
6461
6461
  defaultMeta() {
6462
6462
  const { meta: R, schemaId: I } = this.opts;
@@ -6469,8 +6469,8 @@ Jl.default = Uv;
6469
6469
  throw new Error(`no schema with key or ref "${R}"`);
6470
6470
  } else
6471
6471
  x = this.compile(R);
6472
- const b = x(I);
6473
- return "$async" in x || (this.errors = x.errors), b;
6472
+ const y = x(I);
6473
+ return "$async" in x || (this.errors = x.errors), y;
6474
6474
  }
6475
6475
  compile(R, I) {
6476
6476
  const x = this._addSchema(R, I);
@@ -6480,14 +6480,14 @@ Jl.default = Uv;
6480
6480
  if (typeof this.opts.loadSchema != "function")
6481
6481
  throw new Error("options.loadSchema should be a function");
6482
6482
  const { loadSchema: x } = this.opts;
6483
- return b.call(this, R, I);
6484
- async function b(q, Q) {
6483
+ return y.call(this, R, I);
6484
+ async function y(q, Q) {
6485
6485
  await $.call(this, q.$schema);
6486
6486
  const ne = this._addSchema(q, Q);
6487
6487
  return ne.validate || C.call(this, ne);
6488
6488
  }
6489
6489
  async function $(q) {
6490
- q && !this.getSchema(q) && await b.call(this, { $ref: q }, !0);
6490
+ q && !this.getSchema(q) && await y.call(this, { $ref: q }, !0);
6491
6491
  }
6492
6492
  async function C(q) {
6493
6493
  try {
@@ -6518,10 +6518,10 @@ Jl.default = Uv;
6518
6518
  }
6519
6519
  }
6520
6520
  // Adds schema to the instance
6521
- addSchema(R, I, x, b = this.opts.validateSchema) {
6521
+ addSchema(R, I, x, y = this.opts.validateSchema) {
6522
6522
  if (Array.isArray(R)) {
6523
6523
  for (const C of R)
6524
- this.addSchema(C, void 0, x, b);
6524
+ this.addSchema(C, void 0, x, y);
6525
6525
  return this;
6526
6526
  }
6527
6527
  let $;
@@ -6530,7 +6530,7 @@ Jl.default = Uv;
6530
6530
  if ($ = R[C], $ !== void 0 && typeof $ != "string")
6531
6531
  throw new Error(`schema ${C} must be string`);
6532
6532
  }
6533
- return I = (0, c.normalizeId)(I || $), this._checkUnique(I), this.schemas[I] = this._addSchema(R, x, I, b, !0), this;
6533
+ return I = (0, c.normalizeId)(I || $), this._checkUnique(I), this.schemas[I] = this._addSchema(R, x, I, y, !0), this;
6534
6534
  }
6535
6535
  // Add schema that will be used to validate other schemas
6536
6536
  // options in META_IGNORE_OPTIONS are alway set to false
@@ -6546,15 +6546,15 @@ Jl.default = Uv;
6546
6546
  throw new Error("$schema must be a string");
6547
6547
  if (x = x || this.opts.defaultMeta || this.defaultMeta(), !x)
6548
6548
  return this.logger.warn("meta-schema not available"), this.errors = null, !0;
6549
- const b = this.validate(x, R);
6550
- if (!b && I) {
6549
+ const y = this.validate(x, R);
6550
+ if (!y && I) {
6551
6551
  const $ = "schema is invalid: " + this.errorsText();
6552
6552
  if (this.opts.validateSchema === "log")
6553
6553
  this.logger.error($);
6554
6554
  else
6555
6555
  throw new Error($);
6556
6556
  }
6557
- return b;
6557
+ return y;
6558
6558
  }
6559
6559
  // Get compiled schema by `key` or `ref`.
6560
6560
  // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)
@@ -6563,8 +6563,8 @@ Jl.default = Uv;
6563
6563
  for (; typeof (I = M.call(this, R)) == "string"; )
6564
6564
  R = I;
6565
6565
  if (I === void 0) {
6566
- const { schemaId: x } = this.opts, b = new s.SchemaEnv({ schema: {}, schemaId: x });
6567
- if (I = s.resolveSchema.call(this, b, R), !I)
6566
+ const { schemaId: x } = this.opts, y = new s.SchemaEnv({ schema: {}, schemaId: x });
6567
+ if (I = s.resolveSchema.call(this, y, R), !I)
6568
6568
  return;
6569
6569
  this.refs[R] = I;
6570
6570
  }
@@ -6612,12 +6612,12 @@ Jl.default = Uv;
6612
6612
  if (Z.call(this, x, I), !I)
6613
6613
  return (0, u.eachItem)(x, ($) => re.call(this, $)), this;
6614
6614
  de.call(this, I);
6615
- const b = {
6615
+ const y = {
6616
6616
  ...I,
6617
6617
  type: (0, l.getJSONTypes)(I.type),
6618
6618
  schemaType: (0, l.getJSONTypes)(I.schemaType)
6619
6619
  };
6620
- return (0, u.eachItem)(x, b.type.length === 0 ? ($) => re.call(this, $, b) : ($) => b.type.forEach((C) => re.call(this, $, b, C))), this;
6620
+ return (0, u.eachItem)(x, y.type.length === 0 ? ($) => re.call(this, $, y) : ($) => y.type.forEach((C) => re.call(this, $, y, C))), this;
6621
6621
  }
6622
6622
  getKeyword(R) {
6623
6623
  const I = this.RULES.all[R];
@@ -6628,8 +6628,8 @@ Jl.default = Uv;
6628
6628
  const { RULES: I } = this;
6629
6629
  delete I.keywords[R], delete I.all[R];
6630
6630
  for (const x of I.rules) {
6631
- const b = x.rules.findIndex(($) => $.keyword === R);
6632
- b >= 0 && x.rules.splice(b, 1);
6631
+ const y = x.rules.findIndex(($) => $.keyword === R);
6632
+ y >= 0 && x.rules.splice(y, 1);
6633
6633
  }
6634
6634
  return this;
6635
6635
  }
@@ -6638,13 +6638,13 @@ Jl.default = Uv;
6638
6638
  return typeof I == "string" && (I = new RegExp(I)), this.formats[R] = I, this;
6639
6639
  }
6640
6640
  errorsText(R = this.errors, { separator: I = ", ", dataVar: x = "data" } = {}) {
6641
- return !R || R.length === 0 ? "No errors" : R.map((b) => `${x}${b.instancePath} ${b.message}`).reduce((b, $) => b + I + $);
6641
+ return !R || R.length === 0 ? "No errors" : R.map((y) => `${x}${y.instancePath} ${y.message}`).reduce((y, $) => y + I + $);
6642
6642
  }
6643
6643
  $dataMetaSchema(R, I) {
6644
6644
  const x = this.RULES.all;
6645
6645
  R = JSON.parse(JSON.stringify(R));
6646
- for (const b of I) {
6647
- const $ = b.split("/").slice(1);
6646
+ for (const y of I) {
6647
+ const $ = y.split("/").slice(1);
6648
6648
  let C = R;
6649
6649
  for (const A of $)
6650
6650
  C = C[A];
@@ -6660,11 +6660,11 @@ Jl.default = Uv;
6660
6660
  }
6661
6661
  _removeAllSchemas(R, I) {
6662
6662
  for (const x in R) {
6663
- const b = R[x];
6664
- (!I || I.test(x)) && (typeof b == "string" ? delete R[x] : b && !b.meta && (this._cache.delete(b.schema), delete R[x]));
6663
+ const y = R[x];
6664
+ (!I || I.test(x)) && (typeof y == "string" ? delete R[x] : y && !y.meta && (this._cache.delete(y.schema), delete R[x]));
6665
6665
  }
6666
6666
  }
6667
- _addSchema(R, I, x, b = this.opts.validateSchema, $ = this.opts.addUsedSchema) {
6667
+ _addSchema(R, I, x, y = this.opts.validateSchema, $ = this.opts.addUsedSchema) {
6668
6668
  let C;
6669
6669
  const { schemaId: A } = this.opts;
6670
6670
  if (typeof R == "object")
@@ -6680,7 +6680,7 @@ Jl.default = Uv;
6680
6680
  return N;
6681
6681
  x = (0, c.normalizeId)(C || x);
6682
6682
  const W = c.getSchemaRefs.call(this, R, x);
6683
- return N = new s.SchemaEnv({ schema: R, schemaId: A, meta: I, baseId: x, localRefs: W }), this._cache.set(N.schema, N), $ && !x.startsWith("#") && (x && this._checkUnique(x), this.refs[x] = N), b && this.validateSchema(R, !0), N;
6683
+ return N = new s.SchemaEnv({ schema: R, schemaId: A, meta: I, baseId: x, localRefs: W }), this._cache.set(N.schema, N), $ && !x.startsWith("#") && (x && this._checkUnique(x), this.refs[x] = N), y && this.validateSchema(R, !0), N;
6684
6684
  }
6685
6685
  _checkUnique(R) {
6686
6686
  if (this.schemas[R] || this.refs[R])
@@ -6703,15 +6703,15 @@ Jl.default = Uv;
6703
6703
  }
6704
6704
  S.ValidationError = n.default, S.MissingRefError = a.default, e.default = S;
6705
6705
  function O(H, R, I, x = "error") {
6706
- for (const b in H) {
6707
- const $ = b;
6708
- $ in R && this.logger[x](`${I}: option ${b}. ${H[$]}`);
6706
+ for (const y in H) {
6707
+ const $ = y;
6708
+ $ in R && this.logger[x](`${I}: option ${y}. ${H[$]}`);
6709
6709
  }
6710
6710
  }
6711
6711
  function M(H) {
6712
6712
  return H = (0, c.normalizeId)(H), this.schemas[H] || this.refs[H];
6713
6713
  }
6714
- function z() {
6714
+ function V() {
6715
6715
  const H = this.opts.schemas;
6716
6716
  if (H)
6717
6717
  if (Array.isArray(H))
@@ -6739,7 +6739,7 @@ Jl.default = Uv;
6739
6739
  }
6740
6740
  function K() {
6741
6741
  const H = { ...this.opts };
6742
- for (const R of y)
6742
+ for (const R of b)
6743
6743
  delete H[R];
6744
6744
  return H;
6745
6745
  }
@@ -6769,11 +6769,11 @@ Jl.default = Uv;
6769
6769
  }
6770
6770
  function re(H, R, I) {
6771
6771
  var x;
6772
- const b = R == null ? void 0 : R.post;
6773
- if (I && b)
6772
+ const y = R == null ? void 0 : R.post;
6773
+ if (I && y)
6774
6774
  throw new Error('keyword with "post" flag cannot have "type"');
6775
6775
  const { RULES: $ } = this;
6776
- let C = b ? $.post : $.rules.find(({ type: N }) => N === I);
6776
+ let C = y ? $.post : $.rules.find(({ type: N }) => N === I);
6777
6777
  if (C || (C = { type: I, rules: [] }, $.rules.push(C)), $.keywords[H] = !0, !R)
6778
6778
  return;
6779
6779
  const A = {
@@ -6787,7 +6787,7 @@ Jl.default = Uv;
6787
6787
  R.before ? he.call(this, C, A, R.before) : C.rules.push(A), $.all[H] = A, (x = R.implements) === null || x === void 0 || x.forEach((N) => this.addKeyword(N));
6788
6788
  }
6789
6789
  function he(H, R, I) {
6790
- const x = H.rules.findIndex((b) => b.keyword === I);
6790
+ const x = H.rules.findIndex((y) => y.keyword === I);
6791
6791
  x >= 0 ? H.rules.splice(x, 0, R) : (H.rules.push(R), this.logger.warn(`rule ${I} is not defined`));
6792
6792
  }
6793
6793
  function de(H) {
@@ -6829,16 +6829,16 @@ const n9 = ga, cp = Te, St = Se, Dn = Yt, lp = xt, Zo = ae, a9 = {
6829
6829
  function d() {
6830
6830
  if (o === l)
6831
6831
  return us(e, s, o, o.$async);
6832
- const y = t.scopeValue("root", { ref: l });
6833
- return us(e, (0, St._)`${y}.validate`, l, l.$async);
6832
+ const b = t.scopeValue("root", { ref: l });
6833
+ return us(e, (0, St._)`${b}.validate`, l, l.$async);
6834
6834
  }
6835
- function h(y) {
6836
- const m = Bv(e, y);
6837
- us(e, m, y, y.$async);
6835
+ function h(b) {
6836
+ const m = Bv(e, b);
6837
+ us(e, m, b, b.$async);
6838
6838
  }
6839
- function v(y) {
6840
- const m = t.scopeValue("schema", i.code.source === !0 ? { ref: y, code: (0, St.stringify)(y) } : { ref: y }), g = t.name("valid"), f = e.subschema({
6841
- schema: y,
6839
+ function v(b) {
6840
+ const m = t.scopeValue("schema", i.code.source === !0 ? { ref: b, code: (0, St.stringify)(b) } : { ref: b }), g = t.name("valid"), f = e.subschema({
6841
+ schema: b,
6842
6842
  dataTypes: [],
6843
6843
  schemaPath: St.nil,
6844
6844
  topSchemaRef: m,
@@ -6859,21 +6859,21 @@ function us(e, t, r, n) {
6859
6859
  function u() {
6860
6860
  if (!i.$async)
6861
6861
  throw new Error("async schema referenced by sync schema");
6862
- const y = a.let("valid");
6862
+ const b = a.let("valid");
6863
6863
  a.try(() => {
6864
- a.code((0, St._)`await ${(0, cp.callValidateCode)(e, t, l)}`), v(t), s || a.assign(y, !0);
6864
+ a.code((0, St._)`await ${(0, cp.callValidateCode)(e, t, l)}`), v(t), s || a.assign(b, !0);
6865
6865
  }, (m) => {
6866
- a.if((0, St._)`!(${m} instanceof ${o.ValidationError})`, () => a.throw(m)), h(m), s || a.assign(y, !1);
6867
- }), e.ok(y);
6866
+ a.if((0, St._)`!(${m} instanceof ${o.ValidationError})`, () => a.throw(m)), h(m), s || a.assign(b, !1);
6867
+ }), e.ok(b);
6868
6868
  }
6869
6869
  function d() {
6870
6870
  e.result((0, cp.callValidateCode)(e, t, l), () => v(t), () => h(t));
6871
6871
  }
6872
- function h(y) {
6873
- const m = (0, St._)`${y}.errors`;
6872
+ function h(b) {
6873
+ const m = (0, St._)`${b}.errors`;
6874
6874
  a.assign(Dn.default.vErrors, (0, St._)`${Dn.default.vErrors} === null ? ${m} : ${Dn.default.vErrors}.concat(${m})`), a.assign(Dn.default.errors, (0, St._)`${Dn.default.vErrors}.length`);
6875
6875
  }
6876
- function v(y) {
6876
+ function v(b) {
6877
6877
  var m;
6878
6878
  if (!o.opts.unevaluated)
6879
6879
  return;
@@ -6882,14 +6882,14 @@ function us(e, t, r, n) {
6882
6882
  if (g && !g.dynamicProps)
6883
6883
  g.props !== void 0 && (o.props = Zo.mergeEvaluated.props(a, g.props, o.props));
6884
6884
  else {
6885
- const f = a.var("props", (0, St._)`${y}.evaluated.props`);
6885
+ const f = a.var("props", (0, St._)`${b}.evaluated.props`);
6886
6886
  o.props = Zo.mergeEvaluated.props(a, f, o.props, St.Name);
6887
6887
  }
6888
6888
  if (o.items !== !0)
6889
6889
  if (g && !g.dynamicItems)
6890
6890
  g.items !== void 0 && (o.items = Zo.mergeEvaluated.items(a, g.items, o.items));
6891
6891
  else {
6892
- const f = a.var("items", (0, St._)`${y}.evaluated.items`);
6892
+ const f = a.var("items", (0, St._)`${b}.evaluated.items`);
6893
6893
  o.items = Zo.mergeEvaluated.items(a, f, o.items, St.Name);
6894
6894
  }
6895
6895
  }
@@ -7031,9 +7031,9 @@ const Fa = Te, Qa = Se, $9 = ae, w9 = {
7031
7031
  return;
7032
7032
  const c = r.length >= i.loopRequired;
7033
7033
  if (s.allErrors ? l() : u(), i.strictRequired) {
7034
- const v = e.parentSchema.properties, { definedProperties: y } = e.it;
7034
+ const v = e.parentSchema.properties, { definedProperties: b } = e.it;
7035
7035
  for (const m of r)
7036
- if ((v == null ? void 0 : v[m]) === void 0 && !y.has(m)) {
7036
+ if ((v == null ? void 0 : v[m]) === void 0 && !b.has(m)) {
7037
7037
  const g = s.schemaEnv.baseId + s.errSchemaPath, f = `required property "${m}" is not defined at "${g}" (strictRequired)`;
7038
7038
  (0, $9.checkStrictMode)(s, f, s.opts.strictRequired);
7039
7039
  }
@@ -7048,8 +7048,8 @@ const Fa = Te, Qa = Se, $9 = ae, w9 = {
7048
7048
  function u() {
7049
7049
  const v = t.let("missing");
7050
7050
  if (c || o) {
7051
- const y = t.let("valid", !0);
7052
- e.block$data(y, () => h(v, y)), e.ok(y);
7051
+ const b = t.let("valid", !0);
7052
+ e.block$data(b, () => h(v, b)), e.ok(b);
7053
7053
  } else
7054
7054
  t.if((0, Fa.checkMissingProp)(e, r, v)), (0, Fa.reportMissingProp)(e, v), t.else();
7055
7055
  }
@@ -7058,9 +7058,9 @@ const Fa = Te, Qa = Se, $9 = ae, w9 = {
7058
7058
  e.setParams({ missingProperty: v }), t.if((0, Fa.noPropertyInData)(t, a, v, i.ownProperties), () => e.error());
7059
7059
  });
7060
7060
  }
7061
- function h(v, y) {
7061
+ function h(v, b) {
7062
7062
  e.setParams({ missingProperty: v }), t.forOf(v, n, () => {
7063
- t.assign(y, (0, Fa.propertyInData)(t, a, v, i.ownProperties)), t.if((0, Qa.not)(y), () => {
7063
+ t.assign(b, (0, Fa.propertyInData)(t, a, v, i.ownProperties)), t.if((0, Qa.not)(b), () => {
7064
7064
  e.error(), t.break();
7065
7065
  });
7066
7066
  }, Qa.nil);
@@ -7110,23 +7110,23 @@ const uc = at, it = Se, x9 = ae, T9 = No, A9 = {
7110
7110
  const c = t.let("valid"), l = o.items ? (0, uc.getSchemaTypes)(o.items) : [];
7111
7111
  e.block$data(c, u, (0, it._)`${s} === false`), e.ok(c);
7112
7112
  function u() {
7113
- const y = t.let("i", (0, it._)`${r}.length`), m = t.let("j");
7114
- e.setParams({ i: y, j: m }), t.assign(c, !0), t.if((0, it._)`${y} > 1`, () => (d() ? h : v)(y, m));
7113
+ const b = t.let("i", (0, it._)`${r}.length`), m = t.let("j");
7114
+ e.setParams({ i: b, j: m }), t.assign(c, !0), t.if((0, it._)`${b} > 1`, () => (d() ? h : v)(b, m));
7115
7115
  }
7116
7116
  function d() {
7117
- return l.length > 0 && !l.some((y) => y === "object" || y === "array");
7117
+ return l.length > 0 && !l.some((b) => b === "object" || b === "array");
7118
7118
  }
7119
- function h(y, m) {
7119
+ function h(b, m) {
7120
7120
  const g = t.name("item"), f = (0, uc.checkDataTypes)(l, g, i.opts.strictNumbers, uc.DataType.Wrong), p = t.const("indices", (0, it._)`{}`);
7121
- t.for((0, it._)`;${y}--;`, () => {
7122
- t.let(g, (0, it._)`${r}[${y}]`), t.if(f, (0, it._)`continue`), l.length > 1 && t.if((0, it._)`typeof ${g} == "string"`, (0, it._)`${g} += "_"`), t.if((0, it._)`typeof ${p}[${g}] == "number"`, () => {
7121
+ t.for((0, it._)`;${b}--;`, () => {
7122
+ t.let(g, (0, it._)`${r}[${b}]`), t.if(f, (0, it._)`continue`), l.length > 1 && t.if((0, it._)`typeof ${g} == "string"`, (0, it._)`${g} += "_"`), t.if((0, it._)`typeof ${p}[${g}] == "number"`, () => {
7123
7123
  t.assign(m, (0, it._)`${p}[${g}]`), e.error(), t.assign(c, !1).break();
7124
- }).code((0, it._)`${p}[${g}] = ${y}`);
7124
+ }).code((0, it._)`${p}[${g}] = ${b}`);
7125
7125
  });
7126
7126
  }
7127
- function v(y, m) {
7127
+ function v(b, m) {
7128
7128
  const g = (0, x9.useFunc)(t, T9.default), f = t.name("outer");
7129
- t.label(f).for((0, it._)`;${y}--;`, () => t.for((0, it._)`${m} = ${y}; ${m}--;`, () => t.if((0, it._)`${g}(${r}[${y}], ${r}[${m}])`, () => {
7129
+ t.label(f).for((0, it._)`;${b}--;`, () => t.for((0, it._)`${m} = ${b}; ${m}--;`, () => t.if((0, it._)`${g}(${r}[${b}], ${r}[${m}])`, () => {
7130
7130
  e.error(), t.assign(c, !1).break(f);
7131
7131
  })));
7132
7132
  }
@@ -7172,15 +7172,15 @@ const Ha = Se, k9 = ae, D9 = No, j9 = {
7172
7172
  if (!Array.isArray(a))
7173
7173
  throw new Error("ajv implementation error");
7174
7174
  const v = t.const("vSchema", o);
7175
- u = (0, Ha.or)(...a.map((y, m) => h(v, m)));
7175
+ u = (0, Ha.or)(...a.map((b, m) => h(v, m)));
7176
7176
  }
7177
7177
  e.pass(u);
7178
7178
  function d() {
7179
7179
  t.assign(u, !1), t.forOf("v", o, (v) => t.if((0, Ha._)`${l()}(${r}, ${v})`, () => t.assign(u, !0).break()));
7180
7180
  }
7181
- function h(v, y) {
7182
- const m = a[y];
7183
- return typeof m == "object" && m !== null ? (0, Ha._)`${l()}(${r}, ${v}[${y}])` : (0, Ha._)`${r} === ${m}`;
7181
+ function h(v, b) {
7182
+ const m = a[b];
7183
+ return typeof m == "object" && m !== null ? (0, Ha._)`${l()}(${r}, ${v}[${b}])` : (0, Ha._)`${r} === ${m}`;
7184
7184
  }
7185
7185
  }
7186
7186
  };
@@ -7272,9 +7272,9 @@ function Kv(e, t, r = e.schema) {
7272
7272
  }, c)), e.ok(c));
7273
7273
  });
7274
7274
  function u(d) {
7275
- const { opts: h, errSchemaPath: v } = i, y = r.length, m = y === d.minItems && (y === d.maxItems || d[t] === !1);
7275
+ const { opts: h, errSchemaPath: v } = i, b = r.length, m = b === d.minItems && (b === d.maxItems || d[t] === !1);
7276
7276
  if (h.strictTuples && !m) {
7277
- const g = `"${s}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${v}"`;
7277
+ const g = `"${s}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${v}"`;
7278
7278
  (0, ds.checkStrictMode)(i, g, h.strictTuples);
7279
7279
  }
7280
7280
  }
@@ -7343,7 +7343,7 @@ const jt = Se, Yo = ae, s3 = {
7343
7343
  i === void 0 && s === 1 ? v(d, () => t.if(d, () => t.break())) : s === 0 ? (t.let(d, !0), i !== void 0 && t.if((0, jt._)`${a}.length > 0`, h)) : (t.let(d, !1), h()), e.result(d, () => e.reset());
7344
7344
  function h() {
7345
7345
  const m = t.name("_valid"), g = t.let("count", 0);
7346
- v(m, () => t.if(m, () => y(g)));
7346
+ v(m, () => t.if(m, () => b(g)));
7347
7347
  }
7348
7348
  function v(m, g) {
7349
7349
  t.forRange("i", 0, u, (f) => {
@@ -7355,7 +7355,7 @@ const jt = Se, Yo = ae, s3 = {
7355
7355
  }, m), g();
7356
7356
  });
7357
7357
  }
7358
- function y(m) {
7358
+ function b(m) {
7359
7359
  t.code((0, jt._)`${m}++`), i === void 0 ? t.if((0, jt._)`${m} >= ${s}`, () => t.assign(d, !0).break()) : (t.if((0, jt._)`${m} > ${i}`, () => t.assign(d, !1).break()), s === 1 ? t.assign(d, !0) : t.if((0, jt._)`${m} >= ${s}`, () => t.assign(d, !0)));
7360
7360
  }
7361
7361
  }
@@ -7401,13 +7401,13 @@ var Zv = {};
7401
7401
  if (Object.keys(l).length === 0)
7402
7402
  return;
7403
7403
  const v = u.let("missing");
7404
- for (const y in l) {
7405
- const m = l[y];
7404
+ for (const b in l) {
7405
+ const m = l[b];
7406
7406
  if (m.length === 0)
7407
7407
  continue;
7408
- const g = (0, n.propertyInData)(u, d, y, h.opts.ownProperties);
7408
+ const g = (0, n.propertyInData)(u, d, b, h.opts.ownProperties);
7409
7409
  c.setParams({
7410
- property: y,
7410
+ property: b,
7411
7411
  depsCount: m.length,
7412
7412
  deps: m.join(", ")
7413
7413
  }), h.allErrors ? u.if(g, () => {
@@ -7418,17 +7418,17 @@ var Zv = {};
7418
7418
  }
7419
7419
  e.validatePropertyDeps = s;
7420
7420
  function i(c, l = c.schema) {
7421
- const { gen: u, data: d, keyword: h, it: v } = c, y = u.name("valid");
7421
+ const { gen: u, data: d, keyword: h, it: v } = c, b = u.name("valid");
7422
7422
  for (const m in l)
7423
7423
  (0, r.alwaysValidSchema)(v, l[m]) || (u.if(
7424
7424
  (0, n.propertyInData)(u, d, m, v.opts.ownProperties),
7425
7425
  () => {
7426
- const g = c.subschema({ keyword: h, schemaProp: m }, y);
7427
- c.mergeValidEvaluated(g, y);
7426
+ const g = c.subschema({ keyword: h, schemaProp: m }, b);
7427
+ c.mergeValidEvaluated(g, b);
7428
7428
  },
7429
- () => u.var(y, !0)
7429
+ () => u.var(b, !0)
7430
7430
  // TODO var
7431
- ), c.ok(y));
7431
+ ), c.ok(b));
7432
7432
  }
7433
7433
  e.validateSchemaDeps = i, e.default = a;
7434
7434
  })(Zv);
@@ -7484,7 +7484,7 @@ const Jo = Te, Ut = Se, d3 = Yt, Xo = ae, f3 = {
7484
7484
  d(), e.ok((0, Ut._)`${o} === ${d3.default.errors}`);
7485
7485
  function d() {
7486
7486
  t.forIn("key", a, (g) => {
7487
- !l.length && !u.length ? y(g) : t.if(h(g), () => y(g));
7487
+ !l.length && !u.length ? b(g) : t.if(h(g), () => b(g));
7488
7488
  });
7489
7489
  }
7490
7490
  function h(g) {
@@ -7499,7 +7499,7 @@ const Jo = Te, Ut = Se, d3 = Yt, Xo = ae, f3 = {
7499
7499
  function v(g) {
7500
7500
  t.code((0, Ut._)`delete ${a}[${g}]`);
7501
7501
  }
7502
- function y(g) {
7502
+ function b(g) {
7503
7503
  if (c.removeAdditional === "all" || c.removeAdditional && r === !1) {
7504
7504
  v(g);
7505
7505
  return;
@@ -7578,13 +7578,13 @@ const hp = Te, Qo = Se, mp = ae, vp = ae, v3 = {
7578
7578
  h();
7579
7579
  function h() {
7580
7580
  for (const m of i)
7581
- l && v(m), o.allErrors ? y(m) : (t.var(u, !0), y(m), t.if(u));
7581
+ l && v(m), o.allErrors ? b(m) : (t.var(u, !0), b(m), t.if(u));
7582
7582
  }
7583
7583
  function v(m) {
7584
7584
  for (const g in l)
7585
7585
  new RegExp(m).test(g) && (0, mp.checkStrictMode)(o, `property ${g} matches pattern ${m} (use allowMatchingProperties)`);
7586
7586
  }
7587
- function y(m) {
7587
+ function b(m) {
7588
7588
  t.forIn("key", n, (g) => {
7589
7589
  t.if((0, Qo._)`${(0, hp.usePattern)(e, m)}.test(${g})`, () => {
7590
7590
  const f = c.includes(m);
@@ -7778,10 +7778,10 @@ const Qe = Se, G3 = {
7778
7778
  return;
7779
7779
  a ? h() : v();
7780
7780
  function h() {
7781
- const y = r.scopeValue("formats", {
7781
+ const b = r.scopeValue("formats", {
7782
7782
  ref: d.formats,
7783
7783
  code: c.code.formats
7784
- }), m = r.const("fDef", (0, Qe._)`${y}[${s}]`), g = r.let("fType"), f = r.let("format");
7784
+ }), m = r.const("fDef", (0, Qe._)`${b}[${s}]`), g = r.let("fType"), f = r.let("format");
7785
7785
  r.if((0, Qe._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`, () => r.assign(g, (0, Qe._)`${m}.type || "string"`).assign(f, (0, Qe._)`${m}.validate`), () => r.assign(g, (0, Qe._)`"string"`).assign(f, m)), e.fail$data((0, Qe.or)(p(), E()));
7786
7786
  function p() {
7787
7787
  return c.strictSchema === !1 ? Qe.nil : (0, Qe._)`${s} && !${f}`;
@@ -7792,14 +7792,14 @@ const Qe = Se, G3 = {
7792
7792
  }
7793
7793
  }
7794
7794
  function v() {
7795
- const y = d.formats[o];
7796
- if (!y) {
7795
+ const b = d.formats[o];
7796
+ if (!b) {
7797
7797
  p();
7798
7798
  return;
7799
7799
  }
7800
- if (y === !0)
7800
+ if (b === !0)
7801
7801
  return;
7802
- const [m, g, f] = E(y);
7802
+ const [m, g, f] = E(b);
7803
7803
  m === t && e.pass(S());
7804
7804
  function p() {
7805
7805
  if (c.strictSchema === !1) {
@@ -7812,11 +7812,11 @@ const Qe = Se, G3 = {
7812
7812
  }
7813
7813
  }
7814
7814
  function E(O) {
7815
- const M = O instanceof RegExp ? (0, Qe.regexpCode)(O) : c.code.formats ? (0, Qe._)`${c.code.formats}${(0, Qe.getProperty)(o)}` : void 0, z = r.scopeValue("formats", { key: o, ref: O, code: M });
7816
- return typeof O == "object" && !(O instanceof RegExp) ? [O.type || "string", O.validate, (0, Qe._)`${z}.validate`] : ["string", O, z];
7815
+ const M = O instanceof RegExp ? (0, Qe.regexpCode)(O) : c.code.formats ? (0, Qe._)`${c.code.formats}${(0, Qe.getProperty)(o)}` : void 0, V = r.scopeValue("formats", { key: o, ref: O, code: M });
7816
+ return typeof O == "object" && !(O instanceof RegExp) ? [O.type || "string", O.validate, (0, Qe._)`${V}.validate`] : ["string", O, V];
7817
7817
  }
7818
7818
  function S() {
7819
- if (typeof y == "object" && !(y instanceof RegExp) && y.async) {
7819
+ if (typeof b == "object" && !(b instanceof RegExp) && b.async) {
7820
7820
  if (!u.$async)
7821
7821
  throw new Error("async format in sync schema");
7822
7822
  return (0, Qe._)`await ${f}(${n})`;
@@ -7889,24 +7889,24 @@ const zn = Se, Kc = mi, _p = xt, r4 = ga, n4 = ae, a4 = {
7889
7889
  function u() {
7890
7890
  const v = h();
7891
7891
  t.if(!1);
7892
- for (const y in v)
7893
- t.elseIf((0, zn._)`${l} === ${y}`), t.assign(c, d(v[y]));
7892
+ for (const b in v)
7893
+ t.elseIf((0, zn._)`${l} === ${b}`), t.assign(c, d(v[b]));
7894
7894
  t.else(), e.error(!1, { discrError: Kc.DiscrError.Mapping, tag: l, tagName: i }), t.endIf();
7895
7895
  }
7896
7896
  function d(v) {
7897
- const y = t.name("valid"), m = e.subschema({ keyword: "oneOf", schemaProp: v }, y);
7898
- return e.mergeEvaluated(m, zn.Name), y;
7897
+ const b = t.name("valid"), m = e.subschema({ keyword: "oneOf", schemaProp: v }, b);
7898
+ return e.mergeEvaluated(m, zn.Name), b;
7899
7899
  }
7900
7900
  function h() {
7901
7901
  var v;
7902
- const y = {}, m = f(a);
7902
+ const b = {}, m = f(a);
7903
7903
  let g = !0;
7904
7904
  for (let S = 0; S < s.length; S++) {
7905
7905
  let O = s[S];
7906
7906
  if (O != null && O.$ref && !(0, n4.schemaHasRulesButRef)(O, o.self.RULES)) {
7907
- const z = O.$ref;
7908
- if (O = _p.resolveRef.call(o.self, o.schemaEnv.root, o.baseId, z), O instanceof _p.SchemaEnv && (O = O.schema), O === void 0)
7909
- throw new r4.default(o.opts.uriResolver, o.baseId, z);
7907
+ const V = O.$ref;
7908
+ if (O = _p.resolveRef.call(o.self, o.schemaEnv.root, o.baseId, V), O instanceof _p.SchemaEnv && (O = O.schema), O === void 0)
7909
+ throw new r4.default(o.opts.uriResolver, o.baseId, V);
7910
7910
  }
7911
7911
  const M = (v = O == null ? void 0 : O.properties) === null || v === void 0 ? void 0 : v[i];
7912
7912
  if (typeof M != "object")
@@ -7915,7 +7915,7 @@ const zn = Se, Kc = mi, _p = xt, r4 = ga, n4 = ae, a4 = {
7915
7915
  }
7916
7916
  if (!g)
7917
7917
  throw new Error(`discriminator: "${i}" must be required`);
7918
- return y;
7918
+ return b;
7919
7919
  function f({ required: S }) {
7920
7920
  return Array.isArray(S) && S.includes(i);
7921
7921
  }
@@ -7929,9 +7929,9 @@ const zn = Se, Kc = mi, _p = xt, r4 = ga, n4 = ae, a4 = {
7929
7929
  throw new Error(`discriminator: "properties/${i}" must have "const" or "enum"`);
7930
7930
  }
7931
7931
  function E(S, O) {
7932
- if (typeof S != "string" || S in y)
7932
+ if (typeof S != "string" || S in b)
7933
7933
  throw new Error(`discriminator: "${i}" values must be unique strings`);
7934
- y[S] = O;
7934
+ b[S] = O;
7935
7935
  }
7936
7936
  }
7937
7937
  }
@@ -8183,13 +8183,13 @@ const s4 = "http://json-schema.org/draft-07/schema#", i4 = "http://json-schema.o
8183
8183
  const r = uv, n = Xl, a = Au, o = f4, s = ["/properties"], i = "http://json-schema.org/draft-07/schema";
8184
8184
  class c extends r.default {
8185
8185
  _addVocabularies() {
8186
- super._addVocabularies(), n.default.forEach((y) => this.addVocabulary(y)), this.opts.discriminator && this.addKeyword(a.default);
8186
+ super._addVocabularies(), n.default.forEach((b) => this.addVocabulary(b)), this.opts.discriminator && this.addKeyword(a.default);
8187
8187
  }
8188
8188
  _addDefaultMetaSchema() {
8189
8189
  if (super._addDefaultMetaSchema(), !this.opts.meta)
8190
8190
  return;
8191
- const y = this.opts.$data ? this.$dataMetaSchema(o, s) : o;
8192
- this.addMetaSchema(y, i, !1), this.refs["http://json-schema.org/schema"] = i;
8191
+ const b = this.opts.$data ? this.$dataMetaSchema(o, s) : o;
8192
+ this.addMetaSchema(b, i, !1), this.refs["http://json-schema.org/schema"] = i;
8193
8193
  }
8194
8194
  defaultMeta() {
8195
8195
  return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(i) ? i : void 0);
@@ -8330,9 +8330,9 @@ var Zc = { exports: {} }, Qv = {};
8330
8330
  if (re !== void 0)
8331
8331
  return re || l(B, Z);
8332
8332
  }
8333
- const v = /\/|:/, y = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
8333
+ const v = /\/|:/, b = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
8334
8334
  function m(U) {
8335
- return v.test(U) && y.test(U);
8335
+ return v.test(U) && b.test(U);
8336
8336
  }
8337
8337
  const g = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
8338
8338
  function f(U) {
@@ -8348,9 +8348,9 @@ var Zc = { exports: {} }, Qv = {};
8348
8348
  function M() {
8349
8349
  return !0;
8350
8350
  }
8351
- const z = /[^\\]\\Z/;
8351
+ const V = /[^\\]\\Z/;
8352
8352
  function F(U) {
8353
- if (z.test(U))
8353
+ if (V.test(U))
8354
8354
  return !1;
8355
8355
  try {
8356
8356
  return new RegExp(U), !0;
@@ -8378,20 +8378,20 @@ var eg = {};
8378
8378
  $data: !0,
8379
8379
  error: o,
8380
8380
  code(i) {
8381
- const { gen: c, data: l, schemaCode: u, keyword: d, it: h } = i, { opts: v, self: y } = h;
8381
+ const { gen: c, data: l, schemaCode: u, keyword: d, it: h } = i, { opts: v, self: b } = h;
8382
8382
  if (!v.validateFormats)
8383
8383
  return;
8384
- const m = new t.KeywordCxt(h, y.RULES.all.format.definition, "format");
8384
+ const m = new t.KeywordCxt(h, b.RULES.all.format.definition, "format");
8385
8385
  m.$data ? g() : f();
8386
8386
  function g() {
8387
8387
  const E = c.scopeValue("formats", {
8388
- ref: y.formats,
8388
+ ref: b.formats,
8389
8389
  code: v.code.formats
8390
8390
  }), S = c.const("fmt", r._`${E}[${m.schemaCode}]`);
8391
8391
  i.fail$data(r.or(r._`typeof ${S} != "object"`, r._`${S} instanceof RegExp`, r._`typeof ${S}.compare != "function"`, p(S)));
8392
8392
  }
8393
8393
  function f() {
8394
- const E = m.schema, S = y.formats[E];
8394
+ const E = m.schema, S = b.formats[E];
8395
8395
  if (!S || S === !0)
8396
8396
  return;
8397
8397
  if (typeof S != "object" || S instanceof RegExp || typeof S.compare != "function")
@@ -8427,8 +8427,8 @@ var eg = {};
8427
8427
  return h;
8428
8428
  };
8429
8429
  function c(l, u, d, h) {
8430
- var v, y;
8431
- (v = (y = l.opts.code).formats) !== null && v !== void 0 || (y.formats = a._`require("ajv-formats/dist/formats").${h}`);
8430
+ var v, b;
8431
+ (v = (b = l.opts.code).formats) !== null && v !== void 0 || (b.formats = a._`require("ajv-formats/dist/formats").${h}`);
8432
8432
  for (const m of u)
8433
8433
  l.addFormat(m, d[m]);
8434
8434
  }
@@ -9071,15 +9071,15 @@ const a5 = (e) => (t, r, n) => {
9071
9071
  value: e.const
9072
9072
  };
9073
9073
  }, _i = (e, t) => {
9074
- const { uischema: r } = t, n = yi(e), a = xg(r, t.path), o = t.visible === void 0 || Lu(r) ? ko(r, n, t.path, _a(e)) : t.visible, s = r, i = t.id, c = js(e), l = s.scope !== void 0 && $5(t.schema, s.scope, c), u = Ar.schema(t.schema || c, s.scope, c), d = Eg(a, u)(e), h = u !== void 0 ? u.description : "", v = Ar.data(n, a), y = Pg(r, u), m = y.show ? y.text : "", g = bn(e), f = Fu(e, t, r, u || c, n, g), p = u ?? c, E = cr()(e), S = Cg()(e), O = yn(p, r, a), M = E(Ds(p, r, a, "label"), m, {
9074
+ const { uischema: r } = t, n = yi(e), a = xg(r, t.path), o = t.visible === void 0 || Lu(r) ? ko(r, n, t.path, _a(e)) : t.visible, s = r, i = t.id, c = js(e), l = s.scope !== void 0 && $5(t.schema, s.scope, c), u = Ar.schema(t.schema || c, s.scope, c), d = Eg(a, u)(e), h = u !== void 0 ? u.description : "", v = Ar.data(n, a), b = Pg(r, u), m = b.show ? b.text : "", g = bn(e), f = Fu(e, t, r, u || c, n, g), p = u ?? c, E = cr()(e), S = Cg()(e), O = yn(p, r, a), M = E(Ds(p, r, a, "label"), m, {
9075
9075
  schema: p,
9076
9076
  uischema: r,
9077
9077
  path: a,
9078
9078
  errors: d
9079
- }), z = E(Ds(p, r, a, "description"), h, { schema: p, uischema: r, path: a, errors: d }), F = sg(d, S, E, p, r, a);
9079
+ }), V = E(Ds(p, r, a, "description"), h, { schema: p, uischema: r, path: a, errors: d }), F = sg(d, S, E, p, r, a);
9080
9080
  return {
9081
9081
  data: v,
9082
- description: z,
9082
+ description: V,
9083
9083
  errors: F,
9084
9084
  label: M,
9085
9085
  visible: o,
@@ -9202,7 +9202,7 @@ const a5 = (e) => (t, r, n) => {
9202
9202
  const { id: r, schema: n, path: a, uischema: o, renderers: s, cells: i } = t, c = yi(e), l = t.visible !== void 0 ? t.visible : ko(o, c, void 0, _a(e)), u = js(e), d = bn(e);
9203
9203
  let h;
9204
9204
  e.jsonforms.readonly === !0 ? h = !1 : typeof t.enabled == "boolean" ? h = t.enabled : h = Fu(e, t, o, n || u, c, d);
9205
- const v = cr()(e), y = Cg()(e), m = sg(Eg(a, n)(e), y, v, n, o, a), g = $e(m);
9205
+ const v = cr()(e), b = Cg()(e), m = sg(Eg(a, n)(e), b, v, n, o, a), g = $e(m);
9206
9206
  return {
9207
9207
  data: Ar.data(c, a),
9208
9208
  visible: l,
@@ -9471,19 +9471,19 @@ function hV(e, t, r) {
9471
9471
  throw new TypeError(dV);
9472
9472
  t = Np(t) || 0, uV(r) && (u = !!r.leading, d = "maxWait" in r, o = d ? fV(Np(r.maxWait) || 0, t) : o, h = "trailing" in r ? !!r.trailing : h);
9473
9473
  function v(M) {
9474
- var z = n, F = a;
9475
- return n = a = void 0, l = M, s = e.apply(F, z), s;
9474
+ var V = n, F = a;
9475
+ return n = a = void 0, l = M, s = e.apply(F, V), s;
9476
9476
  }
9477
- function y(M) {
9477
+ function b(M) {
9478
9478
  return l = M, i = setTimeout(f, t), u ? v(M) : s;
9479
9479
  }
9480
9480
  function m(M) {
9481
- var z = M - c, F = M - l, U = t - z;
9481
+ var V = M - c, F = M - l, U = t - V;
9482
9482
  return d ? pV(U, o - F) : U;
9483
9483
  }
9484
9484
  function g(M) {
9485
- var z = M - c, F = M - l;
9486
- return c === void 0 || z >= t || z < 0 || d && F >= o;
9485
+ var V = M - c, F = M - l;
9486
+ return c === void 0 || V >= t || V < 0 || d && F >= o;
9487
9487
  }
9488
9488
  function f() {
9489
9489
  var M = mc();
@@ -9501,10 +9501,10 @@ function hV(e, t, r) {
9501
9501
  return i === void 0 ? s : p(mc());
9502
9502
  }
9503
9503
  function O() {
9504
- var M = mc(), z = g(M);
9505
- if (n = arguments, a = this, c = M, z) {
9504
+ var M = mc(), V = g(M);
9505
+ if (n = arguments, a = this, c = M, V) {
9506
9506
  if (i === void 0)
9507
- return y(c);
9507
+ return b(c);
9508
9508
  if (d)
9509
9509
  return clearTimeout(i), i = setTimeout(f, t), v(c);
9510
9510
  }
@@ -9559,7 +9559,7 @@ const bV = {
9559
9559
  renderers: []
9560
9560
  }), _V = (e, t) => {
9561
9561
  const r = et(!0);
9562
- Ue(() => {
9562
+ ze(() => {
9563
9563
  if (r.current) {
9564
9564
  r.current = !1;
9565
9565
  return;
@@ -9567,7 +9567,7 @@ const bV = {
9567
9567
  e();
9568
9568
  }, t);
9569
9569
  }, $V = ({ children: e, initState: t, onChange: r, middleware: n }) => {
9570
- var O, M, z;
9570
+ var O, M, V;
9571
9571
  const { data: a, schema: o, uischema: s, ajv: i, validationMode: c, additionalErrors: l } = t.core, u = et(n ?? Tp);
9572
9572
  u.current = n ?? Tp;
9573
9573
  const [d, h] = Ne(() => u.current(t.core, jn.init(a, o, s, {
@@ -9575,26 +9575,26 @@ const bV = {
9575
9575
  validationMode: c,
9576
9576
  additionalErrors: l
9577
9577
  }), fc));
9578
- Ue(() => h((F) => u.current(F, jn.updateCore(a, o, s, {
9578
+ ze(() => h((F) => u.current(F, jn.updateCore(a, o, s, {
9579
9579
  ajv: i,
9580
9580
  validationMode: c,
9581
9581
  additionalErrors: l
9582
9582
  }), fc)), [a, o, s, i, c, l]);
9583
- const [v, y] = bd(wp, void 0, () => wp(void 0, jn.setConfig(t.config)));
9583
+ const [v, b] = bd(wp, void 0, () => wp(void 0, jn.setConfig(t.config)));
9584
9584
  _V(() => {
9585
- y(jn.setConfig(t.config));
9585
+ b(jn.setConfig(t.config));
9586
9586
  }, [t.config]);
9587
9587
  const [m, g] = bd(xp, void 0, () => {
9588
9588
  var F, U, K;
9589
9589
  return xp(t.i18n, jn.updateI18n((F = t.i18n) == null ? void 0 : F.locale, (U = t.i18n) == null ? void 0 : U.translate, (K = t.i18n) == null ? void 0 : K.translateError));
9590
9590
  });
9591
- Ue(() => {
9591
+ ze(() => {
9592
9592
  var F, U, K;
9593
9593
  g(jn.updateI18n((F = t.i18n) == null ? void 0 : F.locale, (U = t.i18n) == null ? void 0 : U.translate, (K = t.i18n) == null ? void 0 : K.translateError));
9594
9594
  }, [
9595
9595
  (O = t.i18n) == null ? void 0 : O.locale,
9596
9596
  (M = t.i18n) == null ? void 0 : M.translate,
9597
- (z = t.i18n) == null ? void 0 : z.translateError
9597
+ (V = t.i18n) == null ? void 0 : V.translateError
9598
9598
  ]);
9599
9599
  const f = ot((F) => {
9600
9600
  h((U) => u.current(U, F, fc));
@@ -9616,14 +9616,14 @@ const bV = {
9616
9616
  t.readonly,
9617
9617
  m
9618
9618
  ]), E = et(r);
9619
- Ue(() => {
9619
+ ze(() => {
9620
9620
  E.current = r;
9621
9621
  }, [r]);
9622
9622
  const S = ot(vV((...F) => {
9623
9623
  var U;
9624
9624
  return (U = E.current) == null ? void 0 : U.call(E, ...F);
9625
9625
  }, 10), []);
9626
- return Ue(() => {
9626
+ return ze(() => {
9627
9627
  S({ data: d.data, errors: d.errors });
9628
9628
  }, [d.data, d.errors]), j.createElement(qg.Provider, { value: p }, e);
9629
9629
  }, Do = () => bo(qg), wV = (e, t) => T5({ jsonforms: { ...e } }, t), EV = (e, t) => O5({ jsonforms: { ...e } }, t), CV = (e, t) => _i({ jsonforms: { ...e } }, t), SV = (e, t) => {
@@ -9718,7 +9718,7 @@ class ZV extends Yg {
9718
9718
  const Ci = Gg(Yg);
9719
9719
  Gg(ZV);
9720
9720
  const YV = (e) => {
9721
- const { ajv: t, data: r, schema: n, uischema: a, renderers: o, cells: s, onChange: i, config: c, uischemas: l, readonly: u, validationMode: d, i18n: h, additionalErrors: v, middleware: y } = e, m = Re(() => n !== void 0 ? n : Fs.jsonSchema(r), [n, r]), g = Re(() => typeof a == "object" ? a : Fs.uiSchema(m, void 0, void 0, m), [a, m]);
9721
+ const { ajv: t, data: r, schema: n, uischema: a, renderers: o, cells: s, onChange: i, config: c, uischemas: l, readonly: u, validationMode: d, i18n: h, additionalErrors: v, middleware: b } = e, m = Re(() => n !== void 0 ? n : Fs.jsonSchema(r), [n, r]), g = Re(() => typeof a == "object" ? a : Fs.uiSchema(m, void 0, void 0, m), [a, m]);
9722
9722
  return j.createElement(
9723
9723
  $V,
9724
9724
  { initState: {
@@ -9736,7 +9736,7 @@ const YV = (e) => {
9736
9736
  cells: s,
9737
9737
  readonly: u,
9738
9738
  i18n: h
9739
- }, onChange: i, middleware: y },
9739
+ }, onChange: i, middleware: b },
9740
9740
  j.createElement(Ci, null)
9741
9741
  );
9742
9742
  }, JV = ({ uischema: e, schema: t, rootSchema: r, path: n, cells: a, id: o, enabled: s, renderers: i, config: c }) => {
@@ -9799,7 +9799,7 @@ function cz() {
9799
9799
  var e = jl(), t = rv, r = Dl(), n = Um(), a = tt, o = Bm(), s = "Expected a function", i = 8, c = 32, l = 128, u = 256;
9800
9800
  function d(h) {
9801
9801
  return t(function(v) {
9802
- var y = v.length, m = y, g = e.prototype.thru;
9802
+ var b = v.length, m = b, g = e.prototype.thru;
9803
9803
  for (h && v.reverse(); m--; ) {
9804
9804
  var f = v[m];
9805
9805
  if (typeof f != "function")
@@ -9807,7 +9807,7 @@ function cz() {
9807
9807
  if (g && !p && n(f) == "wrapper")
9808
9808
  var p = new e([], !0);
9809
9809
  }
9810
- for (m = p ? m : y; ++m < y; ) {
9810
+ for (m = p ? m : b; ++m < b; ) {
9811
9811
  f = v[m];
9812
9812
  var E = n(f), S = E == "wrapper" ? r(f) : void 0;
9813
9813
  S && o(S[0]) && S[1] == (l | i | c | u) && !S[4].length && S[9] == 1 ? p = p[n(S[0])].apply(p, S[3]) : p = f.length == 1 && o(f) ? p[E]() : p.thru(f);
@@ -9816,8 +9816,8 @@ function cz() {
9816
9816
  var O = arguments, M = O[0];
9817
9817
  if (p && O.length == 1 && a(M))
9818
9818
  return p.plant(M).value();
9819
- for (var z = 0, F = y ? v[z].apply(this, O) : M; ++z < y; )
9820
- F = v[z].call(this, F);
9819
+ for (var V = 0, F = b ? v[V].apply(this, O) : M; ++V < b; )
9820
+ F = v[V].call(this, F);
9821
9821
  return F;
9822
9822
  };
9823
9823
  });
@@ -10004,20 +10004,20 @@ const vz = /* @__PURE__ */ De(mz), ay = {
10004
10004
  const n = Do(), a = Qu(), o = r.uischema, s = n.config, i = s && s.trim, c = Re(() => to(a)("control"), [a]);
10005
10005
  let l = $e(o.scope) ? [""] : c.concat([`${Ag(o.scope)}`]);
10006
10006
  i && (l = l.concat(to(a)("control.trim")));
10007
- const u = $e(r.errors), d = Re(() => Ht(a)("control.label"), [a]), h = Re(() => Ht(a)("input.description"), [a]), v = Re(() => Ht(a)("control.validation"), [a]), y = Re(() => Ht(a)("control.validation.error"), [a]), m = ["validate"].concat(u ? "valid" : "invalid"), g = Re(() => Ht(a), [a]), f = Re(() => to(a), [a]), p = l.join(" "), E = m.join(" "), S = Re(() => ({
10007
+ const u = $e(r.errors), d = Re(() => Ht(a)("control.label"), [a]), h = Re(() => Ht(a)("input.description"), [a]), v = Re(() => Ht(a)("control.validation"), [a]), b = Re(() => Ht(a)("control.validation.error"), [a]), m = ["validate"].concat(u ? "valid" : "invalid"), g = Re(() => Ht(a), [a]), f = Re(() => to(a), [a]), p = l.join(" "), E = m.join(" "), S = Re(() => ({
10008
10008
  wrapper: p,
10009
10009
  input: E,
10010
10010
  label: d,
10011
10011
  description: h,
10012
10012
  validation: v,
10013
- validationError: y
10013
+ validationError: b
10014
10014
  }), [
10015
10015
  p,
10016
10016
  E,
10017
10017
  d,
10018
10018
  h,
10019
10019
  v,
10020
- y
10020
+ b
10021
10021
  ]);
10022
10022
  return j.createElement(e, { ...r, getStyleAsClassName: g, getStyle: f, classNames: S });
10023
10023
  }, ed = (e) => (t) => function(n) {
@@ -10029,9 +10029,9 @@ const vz = /* @__PURE__ */ De(mz), ay = {
10029
10029
  }, jr = ed("control.input"), iy = ed("control.select"), _z = ed("control.checkbox");
10030
10030
  class $z extends yV {
10031
10031
  render() {
10032
- const { classNames: t, description: r, id: n, errors: a, label: o, uischema: s, schema: i, rootSchema: c, visible: l, enabled: u, required: d, path: h, cells: v, config: y } = this.props, m = a.length === 0, g = [t.validation].concat(m ? t.description : t.validationError).join(" "), f = Po({}, y, s.options), p = !Ng(l, r, this.state.isFocused, f.showUnfocusedDescription), E = {
10032
+ const { classNames: t, description: r, id: n, errors: a, label: o, uischema: s, schema: i, rootSchema: c, visible: l, enabled: u, required: d, path: h, cells: v, config: b } = this.props, m = a.length === 0, g = [t.validation].concat(m ? t.description : t.validationError).join(" "), f = Po({}, b, s.options), p = !Ng(l, r, this.state.isFocused, f.showUnfocusedDescription), E = {
10033
10033
  rootSchema: c,
10034
- config: y
10034
+ config: b
10035
10035
  }, S = ci(v, (O) => O.tester(s, i, E));
10036
10036
  return S === void 0 || S.tester(s, i, E) === ta ? (console.warn("No applicable cell found.", s, i), null) : j.createElement(
10037
10037
  "div",
@@ -10045,15 +10045,15 @@ class $z extends yV {
10045
10045
  const wz = rt(1, xr);
10046
10046
  var Ez = vr(UV($z));
10047
10047
  const cy = ({ classNames: e, id: t, label: r, options: n, required: a, description: o, errors: s, data: i, uischema: c, visible: l, config: u, enabled: d, path: h, handleChange: v }) => {
10048
- const y = Qu(), [m, g] = Ne(!1), f = Re(() => Ht(y)("control.radio"), [y]), p = Re(() => Ht(y)("control.radio.option"), [y]), E = Re(() => Ht(y)("control.radio.input"), [y]), S = Re(() => Ht(y)("control.radio.label"), [y]), O = s.length === 0, M = [e.validation].concat(O ? e.description : e.validationError).join(" "), z = Po({}, u, c.options), F = !Ng(l, o, m, z.showUnfocusedDescription), U = !f || f === "radio";
10048
+ const b = Qu(), [m, g] = Ne(!1), f = Re(() => Ht(b)("control.radio"), [b]), p = Re(() => Ht(b)("control.radio.option"), [b]), E = Re(() => Ht(b)("control.radio.input"), [b]), S = Re(() => Ht(b)("control.radio.label"), [b]), O = s.length === 0, M = [e.validation].concat(O ? e.description : e.validationError).join(" "), V = Po({}, u, c.options), F = !Ng(l, o, m, V.showUnfocusedDescription), U = !f || f === "radio";
10049
10049
  let K = {};
10050
10050
  return U && (K = {
10051
10051
  display: "flex",
10052
- flexDirection: z.orientation === "vertical" ? "column" : "row"
10052
+ flexDirection: V.orientation === "vertical" ? "column" : "row"
10053
10053
  }), j.createElement(
10054
10054
  "div",
10055
10055
  { className: e.wrapper, hidden: !l, onFocus: () => g(!0), onBlur: () => g(!1) },
10056
- j.createElement("label", { htmlFor: t, className: e.label }, Og(r, a, z.hideRequiredAsterisk)),
10056
+ j.createElement("label", { htmlFor: t, className: e.label }, Og(r, a, V.hideRequiredAsterisk)),
10057
10057
  j.createElement("div", { className: f, style: K }, n.map((J) => j.createElement(
10058
10058
  "div",
10059
10059
  { key: J.label, className: p },
@@ -10066,8 +10066,8 @@ const cy = ({ classNames: e, id: t, label: r, options: n, required: a, descripti
10066
10066
  var xz = vr(HV(Cz));
10067
10067
  const Tz = (e) => j.createElement(cy, { ...e }), Az = rt(3, Je(lg, Dr("format", "radio")));
10068
10068
  var Pz = vr(qV(Tz));
10069
- const { convertToValidClassName: Oz } = Vs, Rz = ({ classNames: e, data: t, label: r, path: n, schema: a, errors: o, addItem: s, removeItems: i, moveUp: c, moveDown: l, uischema: u, uischemas: d, getStyleAsClassName: h, renderers: v, rootSchema: y, translations: m }) => {
10070
- const g = u, f = Re(() => o5(d, a, u.scope, n, void 0, u, y), [d, a, u.scope, n, u, y]), p = o.length === 0, S = [h("array.control.validation")].concat(p ? "" : h("array.control.validation.error")).join(" "), O = h("array.control.add"), M = h("array.control.label"), z = h("array.child.controls"), F = h("array.child.controls.up"), U = h("array.child.controls.down"), K = h("array.child.controls.delete"), J = [
10069
+ const { convertToValidClassName: Oz } = Vs, Rz = ({ classNames: e, data: t, label: r, path: n, schema: a, errors: o, addItem: s, removeItems: i, moveUp: c, moveDown: l, uischema: u, uischemas: d, getStyleAsClassName: h, renderers: v, rootSchema: b, translations: m }) => {
10070
+ const g = u, f = Re(() => o5(d, a, u.scope, n, void 0, u, b), [d, a, u.scope, n, u, b]), p = o.length === 0, S = [h("array.control.validation")].concat(p ? "" : h("array.control.validation.error")).join(" "), O = h("array.control.add"), M = h("array.control.label"), V = h("array.child.controls"), F = h("array.child.controls.up"), U = h("array.child.controls.down"), K = h("array.child.controls.delete"), J = [
10071
10071
  h("array.control"),
10072
10072
  Oz(g.scope)
10073
10073
  ].join(" ");
@@ -10080,7 +10080,7 @@ const { convertToValidClassName: Oz } = Vs, Rz = ({ classNames: e, data: t, labe
10080
10080
  j.createElement("label", { className: M }, r),
10081
10081
  j.createElement(
10082
10082
  "button",
10083
- { type: "button", className: O, onClick: s(n, Rg(a, y)) },
10083
+ { type: "button", className: O, onClick: s(n, Rg(a, b)) },
10084
10084
  "Add to ",
10085
10085
  r
10086
10086
  )
@@ -10094,7 +10094,7 @@ const { convertToValidClassName: Oz } = Vs, Rz = ({ classNames: e, data: t, labe
10094
10094
  j.createElement(Ci, { schema: a, uischema: f || u, path: X, key: X, renderers: v }),
10095
10095
  j.createElement(
10096
10096
  "div",
10097
- { className: z },
10097
+ { className: V },
10098
10098
  j.createElement("button", { type: "button", className: F, "aria-label": m.upAriaLabel, onClick: () => {
10099
10099
  c(n, B)();
10100
10100
  } }, m.up),
@@ -10108,14 +10108,14 @@ const { convertToValidClassName: Oz } = Vs, Rz = ({ classNames: e, data: t, labe
10108
10108
  );
10109
10109
  }) : j.createElement("p", null, m.noDataMessage))
10110
10110
  );
10111
- }, Nz = ({ schema: e, uischema: t, data: r, path: n, rootSchema: a, uischemas: o, addItem: s, getStyle: i, getStyleAsClassName: c, removeItems: l, moveUp: u, moveDown: d, id: h, visible: v, enabled: y, errors: m, translations: g }) => {
10112
- const f = t, p = Vs.createLabelDescriptionFrom(f, e), E = p.show ? p.text : "", S = `control ${Vs.convertToValidClassName(f.scope)}`, O = c("array.layout"), M = c("array.button"), z = c("array.children"), F = {
10111
+ }, Nz = ({ schema: e, uischema: t, data: r, path: n, rootSchema: a, uischemas: o, addItem: s, getStyle: i, getStyleAsClassName: c, removeItems: l, moveUp: u, moveDown: d, id: h, visible: v, enabled: b, errors: m, translations: g }) => {
10112
+ const f = t, p = Vs.createLabelDescriptionFrom(f, e), E = p.show ? p.text : "", S = `control ${Vs.convertToValidClassName(f.scope)}`, O = c("array.layout"), M = c("array.button"), V = c("array.children"), F = {
10113
10113
  wrapper: S,
10114
10114
  fieldSet: O,
10115
10115
  button: M,
10116
- children: z
10116
+ children: V
10117
10117
  };
10118
- return j.createElement(Rz, { classNames: F, data: r, label: E, path: n, schema: e, errors: m, addItem: s, removeItems: l, moveUp: u, moveDown: d, uischema: t, uischemas: o, getStyleAsClassName: c, rootSchema: a, id: h, visible: v, enabled: y, getStyle: i, translations: g });
10118
+ return j.createElement(Rz, { classNames: F, data: r, label: E, path: n, schema: e, errors: m, addItem: s, removeItems: l, moveUp: u, moveDown: d, uischema: t, uischemas: o, getStyleAsClassName: c, rootSchema: a, id: h, visible: v, enabled: b, getStyle: i, translations: g });
10119
10119
  };
10120
10120
  var Iz = vr(Kg(Nz));
10121
10121
  const kz = rt(4, bg), ly = (e) => e.type === "Categorization", Dz = rt(1, Je(Ke("Categorization"), (e) => {
@@ -10134,9 +10134,9 @@ const kz = rt(4, bg), ly = (e) => e.type === "Categorization", Dz = rt(1, Je(Ke(
10134
10134
  j.createElement("span", null, u[h])
10135
10135
  )));
10136
10136
  }, Mz = ({ category: e, schema: t, path: r }) => j.createElement("div", { id: "categorization.detail" }, (e.elements || []).map((n, a) => j.createElement(Ci, { key: `${r}-${a}`, uischema: n, schema: t, path: r }))), Lz = ({ data: e, uischema: t, schema: r, path: n, selected: a, t: o, visible: s, getStyleAsClassName: i, onChange: c, ajv: l }) => {
10137
- const u = t, d = u.elements, h = i("categorization"), v = i("categorization.master"), y = i("categorization.detail"), m = i("category.subcategories"), g = i("category.group"), [f, p] = Ne(t), [E, S] = Ne(a ?? 0), O = E >= u.elements.length ? 0 : E;
10137
+ const u = t, d = u.elements, h = i("categorization"), v = i("categorization.master"), b = i("categorization.detail"), m = i("category.subcategories"), g = i("category.group"), [f, p] = Ne(t), [E, S] = Ne(a ?? 0), O = E >= u.elements.length ? 0 : E;
10138
10138
  u !== f && (S(0), p(u));
10139
- const M = (z) => () => c ? c(z, O) : S(z);
10139
+ const M = (V) => () => c ? c(V, O) : S(V);
10140
10140
  return j.createElement(
10141
10141
  "div",
10142
10142
  { className: h, hidden: s == null ? !1 : !s },
@@ -10147,7 +10147,7 @@ const kz = rt(4, bg), ly = (e) => e.type === "Categorization", Dz = rt(1, Je(Ke(
10147
10147
  ),
10148
10148
  j.createElement(
10149
10149
  "div",
10150
- { className: y },
10150
+ { className: b },
10151
10151
  j.createElement(Mz, { category: d[O], schema: r, path: n, key: O })
10152
10152
  )
10153
10153
  );
@@ -10167,7 +10167,7 @@ class Zz extends j.Component {
10167
10167
  };
10168
10168
  }
10169
10169
  render() {
10170
- const { addItem: t, uischema: r, schema: n, rootSchema: a, path: o, data: s, visible: i, errors: c, label: l, getStyleAsClassName: u, childErrors: d, translations: h } = this.props, v = r, y = u("array.table.table"), m = u("array.table.label"), g = u("array.table.button"), f = u("array.table.validation"), p = [
10170
+ const { addItem: t, uischema: r, schema: n, rootSchema: a, path: o, data: s, visible: i, errors: c, label: l, getStyleAsClassName: u, childErrors: d, translations: h } = this.props, v = r, b = u("array.table.table"), m = u("array.table.label"), g = u("array.table.button"), f = u("array.table.validation"), p = [
10171
10171
  u("array.table"),
10172
10172
  Uz(v.scope)
10173
10173
  ].join(" "), E = (M) => ({
@@ -10187,7 +10187,7 @@ class Zz extends j.Component {
10187
10187
  j.createElement("div", { className: O }, S ? "" : c),
10188
10188
  j.createElement(
10189
10189
  "table",
10190
- { className: y },
10190
+ { className: b },
10191
10191
  j.createElement(
10192
10192
  "thead",
10193
10193
  null,
@@ -10203,8 +10203,8 @@ class Zz extends j.Component {
10203
10203
  "tr",
10204
10204
  null,
10205
10205
  j.createElement("td", null, h.noDataMessage)
10206
- ) : s.map((M, z) => {
10207
- const F = pc.compose(o, `${z}`), U = As(d, (X) => ks(X).startsWith(F)), K = u("array.validation"), J = u("array.validation.error"), B = U ? [K].concat(J).join(" ") : K;
10206
+ ) : s.map((M, V) => {
10207
+ const F = pc.compose(o, `${V}`), U = As(d, (X) => ks(X).startsWith(F)), K = u("array.validation"), J = u("array.validation.error"), B = U ? [K].concat(J).join(" ") : K;
10208
10208
  return j.createElement(
10209
10209
  "tr",
10210
10210
  { key: F },
@@ -10217,7 +10217,7 @@ class Zz extends j.Component {
10217
10217
  );
10218
10218
  }))(n.properties) : j.createElement(
10219
10219
  "td",
10220
- { key: pc.compose(F, z.toString()) },
10220
+ { key: pc.compose(F, V.toString()) },
10221
10221
  j.createElement(el, { schema: n, uischema: E(), path: F })
10222
10222
  ),
10223
10223
  j.createElement("td", null, U ? j.createElement("span", { className: B }, Jg(U.map((X) => X.message), " and ")) : j.createElement("span", { className: B }, "OK")),
@@ -10225,7 +10225,7 @@ class Zz extends j.Component {
10225
10225
  "td",
10226
10226
  null,
10227
10227
  j.createElement("button", { type: "button", "aria-label": h.removeAriaLabel, onClick: () => {
10228
- window.confirm(h.deleteDialogMessage) && this.confirmDelete(F, z);
10228
+ window.confirm(h.deleteDialogMessage) && this.confirmDelete(F, V);
10229
10229
  } }, h.removeTooltip)
10230
10230
  )
10231
10231
  );
@@ -10395,18 +10395,18 @@ function rd(e, t = []) {
10395
10395
  s
10396
10396
  ];
10397
10397
  function l(d) {
10398
- const { scope: h, children: v, ...y } = d, m = (h == null ? void 0 : h[e][c]) || i, g = Re(
10399
- () => y,
10400
- Object.values(y)
10398
+ const { scope: h, children: v, ...b } = d, m = (h == null ? void 0 : h[e][c]) || i, g = Re(
10399
+ () => b,
10400
+ Object.values(b)
10401
10401
  );
10402
10402
  return /* @__PURE__ */ le(m.Provider, {
10403
10403
  value: g
10404
10404
  }, v);
10405
10405
  }
10406
10406
  function u(d, h) {
10407
- const v = (h == null ? void 0 : h[e][c]) || i, y = bo(v);
10408
- if (y)
10409
- return y;
10407
+ const v = (h == null ? void 0 : h[e][c]) || i, b = bo(v);
10408
+ if (b)
10409
+ return b;
10410
10410
  if (s !== void 0)
10411
10411
  return s;
10412
10412
  throw new Error(`\`${d}\` must be used within \`${o}\``);
@@ -10534,19 +10534,19 @@ function YW(e) {
10534
10534
  },
10535
10535
  itemMap: /* @__PURE__ */ new Map()
10536
10536
  }), s = (v) => {
10537
- const { scope: y, children: m } = v, g = j.useRef(null), f = j.useRef(/* @__PURE__ */ new Map()).current;
10537
+ const { scope: b, children: m } = v, g = j.useRef(null), f = j.useRef(/* @__PURE__ */ new Map()).current;
10538
10538
  return /* @__PURE__ */ j.createElement(a, {
10539
- scope: y,
10539
+ scope: b,
10540
10540
  itemMap: f,
10541
10541
  collectionRef: g
10542
10542
  }, m);
10543
- }, i = e + "CollectionSlot", c = /* @__PURE__ */ j.forwardRef((v, y) => {
10544
- const { scope: m, children: g } = v, f = o(i, m), p = vt(y, f.collectionRef);
10543
+ }, i = e + "CollectionSlot", c = /* @__PURE__ */ j.forwardRef((v, b) => {
10544
+ const { scope: m, children: g } = v, f = o(i, m), p = vt(b, f.collectionRef);
10545
10545
  return /* @__PURE__ */ j.createElement(ra, {
10546
10546
  ref: p
10547
10547
  }, g);
10548
- }), l = e + "CollectionItemSlot", u = "data-radix-collection-item", d = /* @__PURE__ */ j.forwardRef((v, y) => {
10549
- const { scope: m, children: g, ...f } = v, p = j.useRef(null), E = vt(y, p), S = o(l, m);
10548
+ }), l = e + "CollectionItemSlot", u = "data-radix-collection-item", d = /* @__PURE__ */ j.forwardRef((v, b) => {
10549
+ const { scope: m, children: g, ...f } = v, p = j.useRef(null), E = vt(b, p), S = o(l, m);
10550
10550
  return j.useEffect(() => (S.itemMap.set(p, {
10551
10551
  ref: p,
10552
10552
  ...f
@@ -10556,18 +10556,18 @@ function YW(e) {
10556
10556
  }, g);
10557
10557
  });
10558
10558
  function h(v) {
10559
- const y = o(e + "CollectionConsumer", v);
10559
+ const b = o(e + "CollectionConsumer", v);
10560
10560
  return j.useCallback(() => {
10561
- const g = y.collectionRef.current;
10561
+ const g = b.collectionRef.current;
10562
10562
  if (!g)
10563
10563
  return [];
10564
10564
  const f = Array.from(g.querySelectorAll(`[${u}]`));
10565
- return Array.from(y.itemMap.values()).sort(
10565
+ return Array.from(b.itemMap.values()).sort(
10566
10566
  (S, O) => f.indexOf(S.ref.current) - f.indexOf(O.ref.current)
10567
10567
  );
10568
10568
  }, [
10569
- y.collectionRef,
10570
- y.itemMap
10569
+ b.collectionRef,
10570
+ b.itemMap
10571
10571
  ]);
10572
10572
  }
10573
10573
  return [
@@ -10605,7 +10605,7 @@ const QW = [
10605
10605
  ], ut = QW.reduce((e, t) => {
10606
10606
  const r = /* @__PURE__ */ Fe((n, a) => {
10607
10607
  const { asChild: o, ...s } = n, i = o ? ra : t;
10608
- return Ue(() => {
10608
+ return ze(() => {
10609
10609
  window[Symbol.for("radix-ui")] = !0;
10610
10610
  }, []), /* @__PURE__ */ le(i, Le({}, s, {
10611
10611
  ref: a
@@ -10623,7 +10623,7 @@ function eU(e, t) {
10623
10623
  }
10624
10624
  function Pr(e) {
10625
10625
  const t = et(e);
10626
- return Ue(() => {
10626
+ return ze(() => {
10627
10627
  t.current = e;
10628
10628
  }), Re(
10629
10629
  () => (...r) => {
@@ -10635,7 +10635,7 @@ function Pr(e) {
10635
10635
  }
10636
10636
  function tU(e, t = globalThis == null ? void 0 : globalThis.document) {
10637
10637
  const r = Pr(e);
10638
- Ue(() => {
10638
+ ze(() => {
10639
10639
  const n = (a) => {
10640
10640
  a.key === "Escape" && r(a);
10641
10641
  };
@@ -10653,7 +10653,7 @@ const aU = /* @__PURE__ */ $s({
10653
10653
  branches: /* @__PURE__ */ new Set()
10654
10654
  }), oU = /* @__PURE__ */ Fe((e, t) => {
10655
10655
  var r;
10656
- const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: a, onPointerDownOutside: o, onFocusOutside: s, onInteractOutside: i, onDismiss: c, ...l } = e, u = bo(aU), [d, h] = Ne(null), v = (r = d == null ? void 0 : d.ownerDocument) !== null && r !== void 0 ? r : globalThis == null ? void 0 : globalThis.document, [, y] = Ne({}), m = vt(
10656
+ const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: a, onPointerDownOutside: o, onFocusOutside: s, onInteractOutside: i, onDismiss: c, ...l } = e, u = bo(aU), [d, h] = Ne(null), v = (r = d == null ? void 0 : d.ownerDocument) !== null && r !== void 0 ? r : globalThis == null ? void 0 : globalThis.document, [, b] = Ne({}), m = vt(
10657
10657
  t,
10658
10658
  (F) => h(F)
10659
10659
  ), g = Array.from(u.layers), [f] = [
@@ -10665,7 +10665,7 @@ const aU = /* @__PURE__ */ $s({
10665
10665
  (J) => J.contains(U)
10666
10666
  );
10667
10667
  !O || K || (o == null || o(F), i == null || i(F), F.defaultPrevented || c == null || c());
10668
- }, v), z = iU((F) => {
10668
+ }, v), V = iU((F) => {
10669
10669
  const U = F.target;
10670
10670
  [
10671
10671
  ...u.branches
@@ -10675,7 +10675,7 @@ const aU = /* @__PURE__ */ $s({
10675
10675
  }, v);
10676
10676
  return tU((F) => {
10677
10677
  E === u.layers.size - 1 && (a == null || a(F), !F.defaultPrevented && c && (F.preventDefault(), c()));
10678
- }, v), Ue(() => {
10678
+ }, v), ze(() => {
10679
10679
  if (d)
10680
10680
  return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Up = v.body.style.pointerEvents, v.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), Bp(), () => {
10681
10681
  n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (v.body.style.pointerEvents = Up);
@@ -10685,13 +10685,13 @@ const aU = /* @__PURE__ */ $s({
10685
10685
  v,
10686
10686
  n,
10687
10687
  u
10688
- ]), Ue(() => () => {
10688
+ ]), ze(() => () => {
10689
10689
  d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), Bp());
10690
10690
  }, [
10691
10691
  d,
10692
10692
  u
10693
- ]), Ue(() => {
10694
- const F = () => y({});
10693
+ ]), ze(() => {
10694
+ const F = () => b({});
10695
10695
  return document.addEventListener(rl, F), () => document.removeEventListener(rl, F);
10696
10696
  }, []), /* @__PURE__ */ le(ut.div, Le({}, l, {
10697
10697
  ref: m,
@@ -10699,15 +10699,15 @@ const aU = /* @__PURE__ */ $s({
10699
10699
  pointerEvents: S ? O ? "auto" : "none" : void 0,
10700
10700
  ...e.style
10701
10701
  },
10702
- onFocusCapture: st(e.onFocusCapture, z.onFocusCapture),
10703
- onBlurCapture: st(e.onBlurCapture, z.onBlurCapture),
10702
+ onFocusCapture: st(e.onFocusCapture, V.onFocusCapture),
10703
+ onBlurCapture: st(e.onBlurCapture, V.onBlurCapture),
10704
10704
  onPointerDownCapture: st(e.onPointerDownCapture, M.onPointerDownCapture)
10705
10705
  }));
10706
10706
  });
10707
10707
  function sU(e, t = globalThis == null ? void 0 : globalThis.document) {
10708
10708
  const r = Pr(e), n = et(!1), a = et(() => {
10709
10709
  });
10710
- return Ue(() => {
10710
+ return ze(() => {
10711
10711
  const o = (i) => {
10712
10712
  if (i.target && !n.current) {
10713
10713
  let l = function() {
@@ -10740,7 +10740,7 @@ function sU(e, t = globalThis == null ? void 0 : globalThis.document) {
10740
10740
  }
10741
10741
  function iU(e, t = globalThis == null ? void 0 : globalThis.document) {
10742
10742
  const r = Pr(e), n = et(!1);
10743
- return Ue(() => {
10743
+ return ze(() => {
10744
10744
  const a = (o) => {
10745
10745
  o.target && !n.current && py(nU, r, {
10746
10746
  originalEvent: o
@@ -10773,7 +10773,7 @@ function py(e, t, r, { discrete: n }) {
10773
10773
  }
10774
10774
  let $c = 0;
10775
10775
  function cU() {
10776
- Ue(() => {
10776
+ ze(() => {
10777
10777
  var e, t;
10778
10778
  const r = document.querySelectorAll("[data-radix-focus-guard]");
10779
10779
  return document.body.insertAdjacentElement("afterbegin", (e = r[0]) !== null && e !== void 0 ? e : Hp()), document.body.insertAdjacentElement("beforeend", (t = r[1]) !== null && t !== void 0 ? t : Hp()), $c++, () => {
@@ -10803,7 +10803,7 @@ const wc = "focusScope.autoFocusOnMount", Ec = "focusScope.autoFocusOnUnmount",
10803
10803
  this.paused = !1;
10804
10804
  }
10805
10805
  }).current;
10806
- Ue(() => {
10806
+ ze(() => {
10807
10807
  if (n) {
10808
10808
  let m = function(E) {
10809
10809
  if (v.paused || !i)
@@ -10837,7 +10837,7 @@ const wc = "focusScope.autoFocusOnMount", Ec = "focusScope.autoFocusOnUnmount",
10837
10837
  n,
10838
10838
  i,
10839
10839
  v.paused
10840
- ]), Ue(() => {
10840
+ ]), ze(() => {
10841
10841
  if (i) {
10842
10842
  Kp.add(v);
10843
10843
  const m = document.activeElement;
@@ -10862,7 +10862,7 @@ const wc = "focusScope.autoFocusOnMount", Ec = "focusScope.autoFocusOnUnmount",
10862
10862
  u,
10863
10863
  v
10864
10864
  ]);
10865
- const y = ot((m) => {
10865
+ const b = ot((m) => {
10866
10866
  if (!r && !n || v.paused)
10867
10867
  return;
10868
10868
  const g = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, f = document.activeElement;
@@ -10883,7 +10883,7 @@ const wc = "focusScope.autoFocusOnMount", Ec = "focusScope.autoFocusOnUnmount",
10883
10883
  tabIndex: -1
10884
10884
  }, s, {
10885
10885
  ref: h,
10886
- onKeyDown: y
10886
+ onKeyDown: b
10887
10887
  }));
10888
10888
  });
10889
10889
  function uU(e, { select: t = !1 } = {}) {
@@ -11148,7 +11148,7 @@ const xU = async (e, t, r) => {
11148
11148
  }), {
11149
11149
  x: u,
11150
11150
  y: d
11151
- } = Yp(l, n, c), h = n, v = {}, y = 0;
11151
+ } = Yp(l, n, c), h = n, v = {}, b = 0;
11152
11152
  for (let m = 0; m < i.length; m++) {
11153
11153
  const {
11154
11154
  name: g,
@@ -11178,7 +11178,7 @@ const xU = async (e, t, r) => {
11178
11178
  ...v[g],
11179
11179
  ...S
11180
11180
  }
11181
- }, O && y <= 50 && (y++, typeof O == "object" && (O.placement && (h = O.placement), O.rects && (l = O.rects === !0 ? await s.getElementRects({
11181
+ }, O && b <= 50 && (b++, typeof O == "object" && (O.placement && (h = O.placement), O.rects && (l = O.rects === !0 ? await s.getElementRects({
11182
11182
  reference: e,
11183
11183
  floating: t,
11184
11184
  strategy: a
@@ -11211,7 +11211,7 @@ async function ro(e, t) {
11211
11211
  elementContext: d = "floating",
11212
11212
  altBoundary: h = !1,
11213
11213
  padding: v = 0
11214
- } = Or(t, e), y = vy(v), g = i[h ? d === "floating" ? "reference" : "floating" : d], f = Us(await o.getClippingRect({
11214
+ } = Or(t, e), b = vy(v), g = i[h ? d === "floating" ? "reference" : "floating" : d], f = Us(await o.getClippingRect({
11215
11215
  element: (r = await (o.isElement == null ? void 0 : o.isElement(g))) == null || r ? g : g.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(i.floating)),
11216
11216
  boundary: l,
11217
11217
  rootBoundary: u,
@@ -11234,10 +11234,10 @@ async function ro(e, t) {
11234
11234
  strategy: c
11235
11235
  }) : p);
11236
11236
  return {
11237
- top: (f.top - O.top + y.top) / S.y,
11238
- bottom: (O.bottom - f.bottom + y.bottom) / S.y,
11239
- left: (f.left - O.left + y.left) / S.x,
11240
- right: (O.right - f.right + y.right) / S.x
11237
+ top: (f.top - O.top + b.top) / S.y,
11238
+ bottom: (O.bottom - f.bottom + b.bottom) / S.y,
11239
+ left: (f.left - O.left + b.left) / S.x,
11240
+ right: (O.right - f.right + b.right) / S.x
11241
11241
  };
11242
11242
  }
11243
11243
  const TU = (e) => ({
@@ -11261,10 +11261,10 @@ const TU = (e) => ({
11261
11261
  const d = vy(u), h = {
11262
11262
  x: r,
11263
11263
  y: n
11264
- }, v = od(a), y = ad(v), m = await s.getDimensions(l), g = v === "y", f = g ? "top" : "left", p = g ? "bottom" : "right", E = g ? "clientHeight" : "clientWidth", S = o.reference[y] + o.reference[v] - h[v] - o.floating[y], O = h[v] - o.reference[v], M = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
11265
- let z = M ? M[E] : 0;
11266
- (!z || !await (s.isElement == null ? void 0 : s.isElement(M))) && (z = i.floating[E] || o.floating[y]);
11267
- const F = S / 2 - O / 2, U = z / 2 - m[y] / 2 - 1, K = or(d[f], U), J = or(d[p], U), B = K, X = z - m[y] - J, Z = z / 2 - m[y] / 2 + F, re = nl(B, Z, X), he = !c.arrow && $a(a) != null && Z !== re && o.reference[y] / 2 - (Z < B ? K : J) - m[y] / 2 < 0, de = he ? Z < B ? Z - B : Z - X : 0;
11264
+ }, v = od(a), b = ad(v), m = await s.getDimensions(l), g = v === "y", f = g ? "top" : "left", p = g ? "bottom" : "right", E = g ? "clientHeight" : "clientWidth", S = o.reference[b] + o.reference[v] - h[v] - o.floating[b], O = h[v] - o.reference[v], M = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
11265
+ let V = M ? M[E] : 0;
11266
+ (!V || !await (s.isElement == null ? void 0 : s.isElement(M))) && (V = i.floating[E] || o.floating[b]);
11267
+ const F = S / 2 - O / 2, U = V / 2 - m[b] / 2 - 1, K = or(d[f], U), J = or(d[p], U), B = K, X = V - m[b] - J, Z = V / 2 - m[b] / 2 + F, re = nl(B, Z, X), he = !c.arrow && $a(a) != null && Z !== re && o.reference[b] / 2 - (Z < B ? K : J) - m[b] / 2 < 0, de = he ? Z < B ? Z - B : Z - X : 0;
11268
11268
  return {
11269
11269
  [v]: h[v] + de,
11270
11270
  data: {
@@ -11295,24 +11295,24 @@ const TU = (e) => ({
11295
11295
  crossAxis: d = !0,
11296
11296
  fallbackPlacements: h,
11297
11297
  fallbackStrategy: v = "bestFit",
11298
- fallbackAxisSideDirection: y = "none",
11298
+ fallbackAxisSideDirection: b = "none",
11299
11299
  flipAlignment: m = !0,
11300
11300
  ...g
11301
11301
  } = Or(e, t);
11302
11302
  if ((r = o.arrow) != null && r.alignmentOffset)
11303
11303
  return {};
11304
11304
  const f = Rr(a), p = Rr(i) === i, E = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), S = h || (p || !m ? [Ws(i)] : wU(i));
11305
- !h && y !== "none" && S.push(...CU(i, m, y, E));
11306
- const O = [i, ...S], M = await ro(t, g), z = [];
11305
+ !h && b !== "none" && S.push(...CU(i, m, b, E));
11306
+ const O = [i, ...S], M = await ro(t, g), V = [];
11307
11307
  let F = ((n = o.flip) == null ? void 0 : n.overflows) || [];
11308
- if (u && z.push(M[f]), d) {
11308
+ if (u && V.push(M[f]), d) {
11309
11309
  const B = $U(a, s, E);
11310
- z.push(M[B[0]], M[B[1]]);
11310
+ V.push(M[B[0]], M[B[1]]);
11311
11311
  }
11312
11312
  if (F = [...F, {
11313
11313
  placement: a,
11314
- overflows: z
11315
- }], !z.every((B) => B <= 0)) {
11314
+ overflows: V
11315
+ }], !V.every((B) => B <= 0)) {
11316
11316
  var U, K;
11317
11317
  const B = (((U = o.flip) == null ? void 0 : U.index) || 0) + 1, X = O[B];
11318
11318
  if (X)
@@ -11411,7 +11411,7 @@ async function OU(e, t) {
11411
11411
  let {
11412
11412
  mainAxis: h,
11413
11413
  crossAxis: v,
11414
- alignmentAxis: y
11414
+ alignmentAxis: b
11415
11415
  } = typeof d == "number" ? {
11416
11416
  mainAxis: d,
11417
11417
  crossAxis: 0,
@@ -11422,7 +11422,7 @@ async function OU(e, t) {
11422
11422
  alignmentAxis: null,
11423
11423
  ...d
11424
11424
  };
11425
- return i && typeof y == "number" && (v = i === "end" ? y * -1 : y), c ? {
11425
+ return i && typeof b == "number" && (v = i === "end" ? b * -1 : b), c ? {
11426
11426
  x: v * u,
11427
11427
  y: h * l
11428
11428
  } : {
@@ -11481,19 +11481,19 @@ const RU = function(e) {
11481
11481
  x: r,
11482
11482
  y: n
11483
11483
  }, u = await ro(t, c), d = wa(Rr(a)), h = nd(d);
11484
- let v = l[h], y = l[d];
11484
+ let v = l[h], b = l[d];
11485
11485
  if (o) {
11486
11486
  const g = h === "y" ? "top" : "left", f = h === "y" ? "bottom" : "right", p = v + u[g], E = v - u[f];
11487
11487
  v = nl(p, v, E);
11488
11488
  }
11489
11489
  if (s) {
11490
- const g = d === "y" ? "top" : "left", f = d === "y" ? "bottom" : "right", p = y + u[g], E = y - u[f];
11491
- y = nl(p, y, E);
11490
+ const g = d === "y" ? "top" : "left", f = d === "y" ? "bottom" : "right", p = b + u[g], E = b - u[f];
11491
+ b = nl(p, b, E);
11492
11492
  }
11493
11493
  const m = i.fn({
11494
11494
  ...t,
11495
11495
  [h]: v,
11496
- [d]: y
11496
+ [d]: b
11497
11497
  });
11498
11498
  return {
11499
11499
  ...m,
@@ -11522,7 +11522,7 @@ const RU = function(e) {
11522
11522
  x: r,
11523
11523
  y: n
11524
11524
  }, d = wa(a), h = nd(d);
11525
- let v = u[h], y = u[d];
11525
+ let v = u[h], b = u[d];
11526
11526
  const m = Or(i, t), g = typeof m == "number" ? {
11527
11527
  mainAxis: m,
11528
11528
  crossAxis: 0
@@ -11538,11 +11538,11 @@ const RU = function(e) {
11538
11538
  if (l) {
11539
11539
  var f, p;
11540
11540
  const E = h === "y" ? "width" : "height", S = ["top", "left"].includes(Rr(a)), O = o.reference[d] - o.floating[E] + (S && ((f = s.offset) == null ? void 0 : f[d]) || 0) + (S ? 0 : g.crossAxis), M = o.reference[d] + o.reference[E] + (S ? 0 : ((p = s.offset) == null ? void 0 : p[d]) || 0) - (S ? g.crossAxis : 0);
11541
- y < O ? y = O : y > M && (y = M);
11541
+ b < O ? b = O : b > M && (b = M);
11542
11542
  }
11543
11543
  return {
11544
11544
  [h]: v,
11545
- [d]: y
11545
+ [d]: b
11546
11546
  };
11547
11547
  }
11548
11548
  };
@@ -11564,9 +11564,9 @@ const RU = function(e) {
11564
11564
  width: h,
11565
11565
  height: v
11566
11566
  } = n.floating;
11567
- let y, m;
11568
- l === "top" || l === "bottom" ? (y = l, m = u === (await (a.isRTL == null ? void 0 : a.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (m = l, y = u === "end" ? "top" : "bottom");
11569
- const g = v - c.top - c.bottom, f = h - c.left - c.right, p = or(v - c[y], g), E = or(h - c[m], f), S = !t.middlewareData.shift;
11567
+ let b, m;
11568
+ l === "top" || l === "bottom" ? (b = l, m = u === (await (a.isRTL == null ? void 0 : a.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (m = l, b = u === "end" ? "top" : "bottom");
11569
+ const g = v - c.top - c.bottom, f = h - c.left - c.right, p = or(v - c[b], g), E = or(h - c[m], f), S = !t.middlewareData.shift;
11570
11570
  let O = p, M = E;
11571
11571
  if (d ? M = u || S ? or(E, f) : f : O = u || S ? or(p, g) : g, S && !u) {
11572
11572
  const F = At(c.left, 0), U = At(c.right, 0), K = At(c.top, 0), J = At(c.bottom, 0);
@@ -11577,8 +11577,8 @@ const RU = function(e) {
11577
11577
  availableWidth: M,
11578
11578
  availableHeight: O
11579
11579
  });
11580
- const z = await a.getDimensions(o.floating);
11581
- return h !== z.width || v !== z.height ? {
11580
+ const V = await a.getDimensions(o.floating);
11581
+ return h !== V.width || v !== V.height ? {
11582
11582
  reset: {
11583
11583
  rects: !0
11584
11584
  }
@@ -11722,10 +11722,10 @@ function _n(e, t, r, n) {
11722
11722
  let c = (a.left + i.x) / s.x, l = (a.top + i.y) / s.y, u = a.width / s.x, d = a.height / s.y;
11723
11723
  if (o) {
11724
11724
  const h = Pt(o), v = n && lr(n) ? Pt(n) : n;
11725
- let y = h, m = y.frameElement;
11726
- for (; m && n && v !== y; ) {
11725
+ let b = h, m = b.frameElement;
11726
+ for (; m && n && v !== b; ) {
11727
11727
  const g = Zn(m), f = m.getBoundingClientRect(), p = Kt(m), E = f.left + (m.clientLeft + parseFloat(p.paddingLeft)) * g.x, S = f.top + (m.clientTop + parseFloat(p.paddingTop)) * g.y;
11728
- c *= g.x, l *= g.y, u *= g.x, d *= g.y, c += E, l += S, y = Pt(m), m = y.frameElement;
11728
+ c *= g.x, l *= g.y, u *= g.x, d *= g.y, c += E, l += S, b = Pt(m), m = b.frameElement;
11729
11729
  }
11730
11730
  }
11731
11731
  return Us({
@@ -11964,8 +11964,8 @@ function XU(e, t) {
11964
11964
  } = e.getBoundingClientRect();
11965
11965
  if (i || t(), !d || !h)
11966
11966
  return;
11967
- const v = ts(u), y = ts(a.clientWidth - (l + d)), m = ts(a.clientHeight - (u + h)), g = ts(l), p = {
11968
- rootMargin: -v + "px " + -y + "px " + -m + "px " + -g + "px",
11967
+ const v = ts(u), b = ts(a.clientWidth - (l + d)), m = ts(a.clientHeight - (u + h)), g = ts(l), p = {
11968
+ rootMargin: -v + "px " + -b + "px " + -m + "px " + -g + "px",
11969
11969
  threshold: At(0, or(1, c)) || 1
11970
11970
  };
11971
11971
  let E = !0;
@@ -12016,17 +12016,17 @@ function QU(e, t, r, n) {
12016
12016
  (E = v) == null || E.observe(t);
12017
12017
  })), r();
12018
12018
  }), l && !c && v.observe(l), v.observe(t));
12019
- let y, m = c ? _n(e) : null;
12019
+ let b, m = c ? _n(e) : null;
12020
12020
  c && g();
12021
12021
  function g() {
12022
12022
  const f = _n(e);
12023
- m && (f.x !== m.x || f.y !== m.y || f.width !== m.width || f.height !== m.height) && r(), m = f, y = requestAnimationFrame(g);
12023
+ m && (f.x !== m.x || f.y !== m.y || f.width !== m.width || f.height !== m.height) && r(), m = f, b = requestAnimationFrame(g);
12024
12024
  }
12025
12025
  return r(), () => {
12026
12026
  var f;
12027
12027
  u.forEach((p) => {
12028
12028
  a && p.removeEventListener("scroll", r), o && p.removeEventListener("resize", r);
12029
- }), d == null || d(), (f = v) == null || f.disconnect(), v = null, c && cancelAnimationFrame(y);
12029
+ }), d == null || d(), (f = v) == null || f.disconnect(), v = null, c && cancelAnimationFrame(b);
12030
12030
  };
12031
12031
  }
12032
12032
  const e6 = RU, t6 = NU, r6 = AU, n6 = kU, a6 = PU, rh = TU, o6 = IU, s6 = (e, t, r) => {
@@ -12042,7 +12042,7 @@ const e6 = RU, t6 = NU, r6 = AU, n6 = kU, a6 = PU, rh = TU, o6 = IU, s6 = (e, t,
12042
12042
  platform: o
12043
12043
  });
12044
12044
  };
12045
- var gs = typeof document < "u" ? Eh : Ue;
12045
+ var gs = typeof document < "u" ? Eh : ze;
12046
12046
  function Bs(e, t) {
12047
12047
  if (e === t)
12048
12048
  return !0;
@@ -12110,19 +12110,19 @@ function i6(e) {
12110
12110
  isPositioned: !1
12111
12111
  }), [h, v] = ce.useState(n);
12112
12112
  Bs(h, n) || v(n);
12113
- const [y, m] = ce.useState(null), [g, f] = ce.useState(null), p = ce.useCallback((de) => {
12113
+ const [b, m] = ce.useState(null), [g, f] = ce.useState(null), p = ce.useCallback((de) => {
12114
12114
  de !== M.current && (M.current = de, m(de));
12115
12115
  }, []), E = ce.useCallback((de) => {
12116
- de !== z.current && (z.current = de, f(de));
12117
- }, []), S = o || y, O = s || g, M = ce.useRef(null), z = ce.useRef(null), F = ce.useRef(u), U = c != null, K = ah(c), J = ah(a), B = ce.useCallback(() => {
12118
- if (!M.current || !z.current)
12116
+ de !== V.current && (V.current = de, f(de));
12117
+ }, []), S = o || b, O = s || g, M = ce.useRef(null), V = ce.useRef(null), F = ce.useRef(u), U = c != null, K = ah(c), J = ah(a), B = ce.useCallback(() => {
12118
+ if (!M.current || !V.current)
12119
12119
  return;
12120
12120
  const de = {
12121
12121
  placement: t,
12122
12122
  strategy: r,
12123
12123
  middleware: h
12124
12124
  };
12125
- J.current && (de.platform = J.current), s6(M.current, z.current, de).then((Oe) => {
12125
+ J.current && (de.platform = J.current), s6(M.current, V.current, de).then((Oe) => {
12126
12126
  const be = {
12127
12127
  ...Oe,
12128
12128
  isPositioned: !0
@@ -12142,7 +12142,7 @@ function i6(e) {
12142
12142
  gs(() => (X.current = !0, () => {
12143
12143
  X.current = !1;
12144
12144
  }), []), gs(() => {
12145
- if (S && (M.current = S), O && (z.current = O), S && O) {
12145
+ if (S && (M.current = S), O && (V.current = O), S && O) {
12146
12146
  if (K.current)
12147
12147
  return K.current(S, O, B);
12148
12148
  B();
@@ -12150,7 +12150,7 @@ function i6(e) {
12150
12150
  }, [S, O, B, K, U]);
12151
12151
  const Z = ce.useMemo(() => ({
12152
12152
  reference: M,
12153
- floating: z,
12153
+ floating: V,
12154
12154
  setReference: p,
12155
12155
  setFloating: E
12156
12156
  }), [p, E]), re = ce.useMemo(() => ({
@@ -12269,14 +12269,14 @@ const Sy = "Popper", [xy, Ty] = rd(Sy), [g6, Ay] = xy(Sy), y6 = (e) => {
12269
12269
  }, r);
12270
12270
  }, b6 = "PopperAnchor", _6 = /* @__PURE__ */ Fe((e, t) => {
12271
12271
  const { __scopePopper: r, virtualRef: n, ...a } = e, o = Ay(b6, r), s = et(null), i = vt(t, s);
12272
- return Ue(() => {
12272
+ return ze(() => {
12273
12273
  o.onAnchorChange((n == null ? void 0 : n.current) || s.current);
12274
12274
  }), n ? null : /* @__PURE__ */ le(ut.div, Le({}, a, {
12275
12275
  ref: i
12276
12276
  }));
12277
12277
  }), Py = "PopperContent", [$6, bH] = xy(Py), w6 = /* @__PURE__ */ Fe((e, t) => {
12278
12278
  var r, n, a, o, s, i, c, l;
12279
- const { __scopePopper: u, side: d = "bottom", sideOffset: h = 0, align: v = "center", alignOffset: y = 0, arrowPadding: m = 0, avoidCollisions: g = !0, collisionBoundary: f = [], collisionPadding: p = 0, sticky: E = "partial", hideWhenDetached: S = !1, updatePositionStrategy: O = "optimized", onPlaced: M, ...z } = e, F = Ay(Py, u), [U, K] = Ne(null), J = vt(
12279
+ const { __scopePopper: u, side: d = "bottom", sideOffset: h = 0, align: v = "center", alignOffset: b = 0, arrowPadding: m = 0, avoidCollisions: g = !0, collisionBoundary: f = [], collisionPadding: p = 0, sticky: E = "partial", hideWhenDetached: S = !1, updatePositionStrategy: O = "optimized", onPlaced: M, ...V } = e, F = Ay(Py, u), [U, K] = Ne(null), J = vt(
12280
12280
  t,
12281
12281
  (Xe) => K(Xe)
12282
12282
  ), [B, X] = Ne(null), Z = v6(B), re = (r = Z == null ? void 0 : Z.width) !== null && r !== void 0 ? r : 0, he = (n = Z == null ? void 0 : Z.height) !== null && n !== void 0 ? n : 0, de = d + (v !== "center" ? "-" + v : ""), Oe = typeof p == "number" ? p : {
@@ -12292,7 +12292,7 @@ const Sy = "Popper", [xy, Ty] = rd(Sy), [g6, Ay] = xy(Sy), y6 = (e) => {
12292
12292
  boundary: be.filter(E6),
12293
12293
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
12294
12294
  altBoundary: H
12295
- }, { refs: I, floatingStyles: x, placement: b, isPositioned: $, middlewareData: C } = i6({
12295
+ }, { refs: I, floatingStyles: x, placement: y, isPositioned: $, middlewareData: C } = i6({
12296
12296
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
12297
12297
  strategy: "fixed",
12298
12298
  placement: de,
@@ -12305,7 +12305,7 @@ const Sy = "Popper", [xy, Ty] = rd(Sy), [g6, Ay] = xy(Sy), y6 = (e) => {
12305
12305
  middleware: [
12306
12306
  l6({
12307
12307
  mainAxis: h + he,
12308
- alignmentAxis: y
12308
+ alignmentAxis: b
12309
12309
  }),
12310
12310
  g && u6({
12311
12311
  mainAxis: !0,
@@ -12318,8 +12318,8 @@ const Sy = "Popper", [xy, Ty] = rd(Sy), [g6, Ay] = xy(Sy), y6 = (e) => {
12318
12318
  }),
12319
12319
  p6({
12320
12320
  ...R,
12321
- apply: ({ elements: Xe, rects: ze, availableWidth: wt, availableHeight: Vt }) => {
12322
- const { width: Tt, height: Xt } = ze.reference, It = Xe.floating.style;
12321
+ apply: ({ elements: Xe, rects: We, availableWidth: wt, availableHeight: Vt }) => {
12322
+ const { width: Tt, height: Xt } = We.reference, It = Xe.floating.style;
12323
12323
  It.setProperty("--radix-popper-available-width", `${wt}px`), It.setProperty("--radix-popper-available-height", `${Vt}px`), It.setProperty("--radix-popper-anchor-width", `${Tt}px`), It.setProperty("--radix-popper-anchor-height", `${Xt}px`);
12324
12324
  }
12325
12325
  }),
@@ -12336,7 +12336,7 @@ const Sy = "Popper", [xy, Ty] = rd(Sy), [g6, Ay] = xy(Sy), y6 = (e) => {
12336
12336
  ...R
12337
12337
  })
12338
12338
  ]
12339
- }), [A, N] = Oy(b), W = Pr(M);
12339
+ }), [A, N] = Oy(y), W = Pr(M);
12340
12340
  Ft(() => {
12341
12341
  $ && (W == null || W());
12342
12342
  }, [
@@ -12373,10 +12373,10 @@ const Sy = "Popper", [xy, Ty] = rd(Sy), [g6, Ay] = xy(Sy), y6 = (e) => {
12373
12373
  }, /* @__PURE__ */ le(ut.div, Le({
12374
12374
  "data-side": A,
12375
12375
  "data-align": N
12376
- }, z, {
12376
+ }, V, {
12377
12377
  ref: J,
12378
12378
  style: {
12379
- ...z.style,
12379
+ ...V.style,
12380
12380
  // if the PopperContent hasn't been placed yet (not all measurements done)
12381
12381
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
12382
12382
  animation: $ ? void 0 : "none",
@@ -12393,13 +12393,13 @@ const C6 = (e) => ({
12393
12393
  options: e,
12394
12394
  fn(t) {
12395
12395
  var r, n, a, o, s;
12396
- const { placement: i, rects: c, middlewareData: l } = t, d = ((r = l.arrow) === null || r === void 0 ? void 0 : r.centerOffset) !== 0, h = d ? 0 : e.arrowWidth, v = d ? 0 : e.arrowHeight, [y, m] = Oy(i), g = {
12396
+ const { placement: i, rects: c, middlewareData: l } = t, d = ((r = l.arrow) === null || r === void 0 ? void 0 : r.centerOffset) !== 0, h = d ? 0 : e.arrowWidth, v = d ? 0 : e.arrowHeight, [b, m] = Oy(i), g = {
12397
12397
  start: "0%",
12398
12398
  center: "50%",
12399
12399
  end: "100%"
12400
12400
  }[m], f = ((n = (a = l.arrow) === null || a === void 0 ? void 0 : a.x) !== null && n !== void 0 ? n : 0) + h / 2, p = ((o = (s = l.arrow) === null || s === void 0 ? void 0 : s.y) !== null && o !== void 0 ? o : 0) + v / 2;
12401
12401
  let E = "", S = "";
12402
- return y === "bottom" ? (E = d ? g : `${f}px`, S = `${-v}px`) : y === "top" ? (E = d ? g : `${f}px`, S = `${c.floating.height + v}px`) : y === "right" ? (E = `${-v}px`, S = d ? g : `${p}px`) : y === "left" && (E = `${c.floating.width + v}px`, S = d ? g : `${p}px`), {
12402
+ return b === "bottom" ? (E = d ? g : `${f}px`, S = `${-v}px`) : b === "top" ? (E = d ? g : `${f}px`, S = `${c.floating.height + v}px`) : b === "right" ? (E = `${-v}px`, S = d ? g : `${p}px`) : b === "left" && (E = `${c.floating.width + v}px`, S = d ? g : `${p}px`), {
12403
12403
  data: {
12404
12404
  x: E,
12405
12405
  y: S
@@ -12445,7 +12445,7 @@ function oh({ prop: e, defaultProp: t, onChange: r = () => {
12445
12445
  }
12446
12446
  function P6({ defaultProp: e, onChange: t }) {
12447
12447
  const r = Ne(e), [n] = r, a = et(n), o = Pr(t);
12448
- return Ue(() => {
12448
+ return ze(() => {
12449
12449
  a.current !== n && (o(n), a.current = n);
12450
12450
  }, [
12451
12451
  n,
@@ -12508,8 +12508,8 @@ var N6 = function(e) {
12508
12508
  u(h);
12509
12509
  else
12510
12510
  try {
12511
- var v = h.getAttribute(n), y = v !== null && v !== "false", m = (Mn.get(h) || 0) + 1, g = (o.get(h) || 0) + 1;
12512
- Mn.set(h, m), o.set(h, g), s.push(h), m === 1 && y && rs.set(h, !0), g === 1 && h.setAttribute(r, "true"), y || h.setAttribute(n, "true");
12511
+ var v = h.getAttribute(n), b = v !== null && v !== "false", m = (Mn.get(h) || 0) + 1, g = (o.get(h) || 0) + 1;
12512
+ Mn.set(h, m), o.set(h, g), s.push(h), m === 1 && b && rs.set(h, !0), g === 1 && h.setAttribute(r, "true"), b || h.setAttribute(n, "true");
12513
12513
  } catch (f) {
12514
12514
  console.error("aria-hidden: cannot operate on ", h, f);
12515
12515
  }
@@ -12679,11 +12679,11 @@ var ky = B6(), Tc = function() {
12679
12679
  onScrollCapture: Tc,
12680
12680
  onWheelCapture: Tc,
12681
12681
  onTouchMoveCapture: Tc
12682
- }), a = n[0], o = n[1], s = e.forwardProps, i = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, h = e.sideCar, v = e.noIsolation, y = e.inert, m = e.allowPinchZoom, g = e.as, f = g === void 0 ? "div" : g, p = Ny(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), E = h, S = z6([r, t]), O = nr(nr({}, p), a);
12682
+ }), a = n[0], o = n[1], s = e.forwardProps, i = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, h = e.sideCar, v = e.noIsolation, b = e.inert, m = e.allowPinchZoom, g = e.as, f = g === void 0 ? "div" : g, p = Ny(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), E = h, S = z6([r, t]), O = nr(nr({}, p), a);
12683
12683
  return ce.createElement(
12684
12684
  ce.Fragment,
12685
12685
  null,
12686
- u && ce.createElement(E, { sideCar: ky, removeScrollBar: l, shards: d, noIsolation: v, inert: y, setCallbacks: o, allowPinchZoom: !!m, lockRef: r }),
12686
+ u && ce.createElement(E, { sideCar: ky, removeScrollBar: l, shards: d, noIsolation: v, inert: b, setCallbacks: o, allowPinchZoom: !!m, lockRef: r }),
12687
12687
  s ? ce.cloneElement(ce.Children.only(i), nr(nr({}, O), { ref: S })) : ce.createElement(f, nr({}, O, { className: c, ref: S }), i)
12688
12688
  );
12689
12689
  });
@@ -12882,8 +12882,8 @@ var Ln = ol ? { passive: !1 } : !1, o7 = function(e) {
12882
12882
  }, d7 = function(e, t, r, n, a) {
12883
12883
  var o = u7(e, window.getComputedStyle(t).direction), s = o * n, i = r.target, c = t.contains(i), l = !1, u = s > 0, d = 0, h = 0;
12884
12884
  do {
12885
- var v = Ly(e, i), y = v[0], m = v[1], g = v[2], f = m - g - o * y;
12886
- (y || f) && My(e, i) && (d += f, h += y), i = i.parentNode;
12885
+ var v = Ly(e, i), b = v[0], m = v[1], g = v[2], f = m - g - o * b;
12886
+ (b || f) && My(e, i) && (d += f, h += b), i = i.parentNode;
12887
12887
  } while (
12888
12888
  // portaled content
12889
12889
  !c && i !== document.body || // self content
@@ -12926,13 +12926,13 @@ function m7(e) {
12926
12926
  var i = ce.useCallback(function(m, g) {
12927
12927
  if ("touches" in m && m.touches.length === 2)
12928
12928
  return !s.current.allowPinchZoom;
12929
- var f = os(m), p = r.current, E = "deltaX" in m ? m.deltaX : p[0] - f[0], S = "deltaY" in m ? m.deltaY : p[1] - f[1], O, M = m.target, z = Math.abs(E) > Math.abs(S) ? "h" : "v";
12930
- if ("touches" in m && z === "h" && M.type === "range")
12929
+ var f = os(m), p = r.current, E = "deltaX" in m ? m.deltaX : p[0] - f[0], S = "deltaY" in m ? m.deltaY : p[1] - f[1], O, M = m.target, V = Math.abs(E) > Math.abs(S) ? "h" : "v";
12930
+ if ("touches" in m && V === "h" && M.type === "range")
12931
12931
  return !1;
12932
- var F = ch(z, M);
12932
+ var F = ch(V, M);
12933
12933
  if (!F)
12934
12934
  return !0;
12935
- if (F ? O = z : (O = z === "v" ? "h" : "v", F = ch(z, M)), !F)
12935
+ if (F ? O = V : (O = V === "v" ? "h" : "v", F = ch(V, M)), !F)
12936
12936
  return !1;
12937
12937
  if (!n.current && "changedTouches" in m && (E || S) && (n.current = O), !O)
12938
12938
  return !0;
@@ -12980,11 +12980,11 @@ function m7(e) {
12980
12980
  }), document.removeEventListener("wheel", c, Ln), document.removeEventListener("touchmove", c, Ln), document.removeEventListener("touchstart", u, Ln);
12981
12981
  };
12982
12982
  }, []);
12983
- var v = e.removeScrollBar, y = e.inert;
12983
+ var v = e.removeScrollBar, b = e.inert;
12984
12984
  return ce.createElement(
12985
12985
  ce.Fragment,
12986
12986
  null,
12987
- y ? ce.createElement(o, { styles: p7(a) }) : null,
12987
+ b ? ce.createElement(o, { styles: p7(a) }) : null,
12988
12988
  v ? ce.createElement(a7, { gapMode: "margin" }) : null
12989
12989
  );
12990
12990
  }
@@ -13005,7 +13005,7 @@ const g7 = [
13005
13005
  b7,
13006
13006
  Ty
13007
13007
  ]), ud = Ty(), [_7, Pn] = Ca(Ti), [$7, w7] = Ca(Ti), E7 = (e) => {
13008
- const { __scopeSelect: t, children: r, open: n, defaultOpen: a, onOpenChange: o, value: s, defaultValue: i, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: h, required: v } = e, y = ud(t), [m, g] = Ne(null), [f, p] = Ne(null), [E, S] = Ne(!1), O = XW(l), [M = !1, z] = oh({
13008
+ const { __scopeSelect: t, children: r, open: n, defaultOpen: a, onOpenChange: o, value: s, defaultValue: i, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: h, required: v } = e, b = ud(t), [m, g] = Ne(null), [f, p] = Ne(null), [E, S] = Ne(!1), O = XW(l), [M = !1, V] = oh({
13009
13009
  prop: n,
13010
13010
  defaultProp: a,
13011
13011
  onChange: o
@@ -13016,7 +13016,7 @@ const g7 = [
13016
13016
  }), K = et(null), J = m ? !!m.closest("form") : !0, [B, X] = Ne(/* @__PURE__ */ new Set()), Z = Array.from(B).map(
13017
13017
  (re) => re.props.value
13018
13018
  ).join(";");
13019
- return /* @__PURE__ */ le(S6, y, /* @__PURE__ */ le(_7, {
13019
+ return /* @__PURE__ */ le(S6, b, /* @__PURE__ */ le(_7, {
13020
13020
  required: v,
13021
13021
  scope: t,
13022
13022
  trigger: m,
@@ -13029,7 +13029,7 @@ const g7 = [
13029
13029
  value: F,
13030
13030
  onValueChange: U,
13031
13031
  open: M,
13032
- onOpenChange: z,
13032
+ onOpenChange: V,
13033
13033
  dir: O,
13034
13034
  triggerPointerDownPosRef: K,
13035
13035
  disabled: h
@@ -13062,12 +13062,12 @@ const g7 = [
13062
13062
  value: ""
13063
13063
  }) : null, Array.from(B)) : null));
13064
13064
  }, C7 = "SelectTrigger", S7 = /* @__PURE__ */ Fe((e, t) => {
13065
- const { __scopeSelect: r, disabled: n = !1, ...a } = e, o = ud(r), s = Pn(C7, r), i = s.disabled || n, c = vt(t, s.onTriggerChange), l = Pi(r), [u, d, h] = Hy((y) => {
13065
+ const { __scopeSelect: r, disabled: n = !1, ...a } = e, o = ud(r), s = Pn(C7, r), i = s.disabled || n, c = vt(t, s.onTriggerChange), l = Pi(r), [u, d, h] = Hy((b) => {
13066
13066
  const m = l().filter(
13067
13067
  (p) => !p.disabled
13068
13068
  ), g = m.find(
13069
13069
  (p) => p.value === s.value
13070
- ), f = qy(m, y, g);
13070
+ ), f = qy(m, b, g);
13071
13071
  f !== void 0 && s.onValueChange(f.value);
13072
13072
  }), v = () => {
13073
13073
  i || (s.onOpenChange(!0), h());
@@ -13088,19 +13088,19 @@ const g7 = [
13088
13088
  "data-placeholder": Uy(s.value) ? "" : void 0
13089
13089
  }, a, {
13090
13090
  ref: c,
13091
- onClick: st(a.onClick, (y) => {
13092
- y.currentTarget.focus();
13091
+ onClick: st(a.onClick, (b) => {
13092
+ b.currentTarget.focus();
13093
13093
  }),
13094
- onPointerDown: st(a.onPointerDown, (y) => {
13095
- const m = y.target;
13096
- m.hasPointerCapture(y.pointerId) && m.releasePointerCapture(y.pointerId), y.button === 0 && y.ctrlKey === !1 && (v(), s.triggerPointerDownPosRef.current = {
13097
- x: Math.round(y.pageX),
13098
- y: Math.round(y.pageY)
13099
- }, y.preventDefault());
13094
+ onPointerDown: st(a.onPointerDown, (b) => {
13095
+ const m = b.target;
13096
+ m.hasPointerCapture(b.pointerId) && m.releasePointerCapture(b.pointerId), b.button === 0 && b.ctrlKey === !1 && (v(), s.triggerPointerDownPosRef.current = {
13097
+ x: Math.round(b.pageX),
13098
+ y: Math.round(b.pageY)
13099
+ }, b.preventDefault());
13100
13100
  }),
13101
- onKeyDown: st(a.onKeyDown, (y) => {
13101
+ onKeyDown: st(a.onKeyDown, (b) => {
13102
13102
  const m = u.current !== "";
13103
- !(y.ctrlKey || y.altKey || y.metaKey) && y.key.length === 1 && d(y.key), !(m && y.key === " ") && g7.includes(y.key) && (v(), y.preventDefault());
13103
+ !(b.ctrlKey || b.altKey || b.metaKey) && b.key.length === 1 && d(b.key), !(m && b.key === " ") && g7.includes(b.key) && (v(), b.preventDefault());
13104
13104
  })
13105
13105
  })));
13106
13106
  }), x7 = "SelectValue", T7 = /* @__PURE__ */ Fe((e, t) => {
@@ -13154,16 +13154,16 @@ const g7 = [
13154
13154
  arrowPadding: d,
13155
13155
  collisionBoundary: h,
13156
13156
  collisionPadding: v,
13157
- sticky: y,
13157
+ sticky: b,
13158
13158
  hideWhenDetached: m,
13159
13159
  avoidCollisions: g,
13160
13160
  //
13161
13161
  ...f
13162
- } = e, p = Pn(aa, r), [E, S] = Ne(null), [O, M] = Ne(null), z = vt(
13162
+ } = e, p = Pn(aa, r), [E, S] = Ne(null), [O, M] = Ne(null), V = vt(
13163
13163
  t,
13164
13164
  (A) => S(A)
13165
13165
  ), [F, U] = Ne(null), [K, J] = Ne(null), B = Pi(r), [X, Z] = Ne(!1), re = et(!1);
13166
- Ue(() => {
13166
+ ze(() => {
13167
13167
  if (E)
13168
13168
  return D6(E);
13169
13169
  }, [
@@ -13192,14 +13192,14 @@ const g7 = [
13192
13192
  E
13193
13193
  ]
13194
13194
  );
13195
- Ue(() => {
13195
+ ze(() => {
13196
13196
  X && de();
13197
13197
  }, [
13198
13198
  X,
13199
13199
  de
13200
13200
  ]);
13201
13201
  const { onOpenChange: Oe, triggerPointerDownPosRef: be } = p;
13202
- Ue(() => {
13202
+ ze(() => {
13203
13203
  if (E) {
13204
13204
  let A = {
13205
13205
  x: 0,
@@ -13227,7 +13227,7 @@ const g7 = [
13227
13227
  E,
13228
13228
  Oe,
13229
13229
  be
13230
- ]), Ue(() => {
13230
+ ]), ze(() => {
13231
13231
  const A = () => Oe(!1);
13232
13232
  return window.addEventListener("blur", A), window.addEventListener("resize", A), () => {
13233
13233
  window.removeEventListener("blur", A), window.removeEventListener("resize", A);
@@ -13254,7 +13254,7 @@ const g7 = [
13254
13254
  [
13255
13255
  E
13256
13256
  ]
13257
- ), b = ot((A, N, W) => {
13257
+ ), y = ot((A, N, W) => {
13258
13258
  const q = !re.current && !W;
13259
13259
  (p.value !== void 0 && p.value === N || q) && J(A);
13260
13260
  }, [
@@ -13267,7 +13267,7 @@ const g7 = [
13267
13267
  arrowPadding: d,
13268
13268
  collisionBoundary: h,
13269
13269
  collisionPadding: v,
13270
- sticky: y,
13270
+ sticky: b,
13271
13271
  hideWhenDetached: m,
13272
13272
  avoidCollisions: g
13273
13273
  } : {};
@@ -13279,7 +13279,7 @@ const g7 = [
13279
13279
  itemRefCallback: I,
13280
13280
  selectedItem: F,
13281
13281
  onItemLeave: x,
13282
- itemTextRefCallback: b,
13282
+ itemTextRefCallback: y,
13283
13283
  focusSelectedItem: de,
13284
13284
  selectedItemText: K,
13285
13285
  position: n,
@@ -13315,7 +13315,7 @@ const g7 = [
13315
13315
  onContextMenu: (A) => A.preventDefault()
13316
13316
  }, f, C, {
13317
13317
  onPlaced: () => Z(!0),
13318
- ref: z,
13318
+ ref: V,
13319
13319
  style: {
13320
13320
  // flex layout so we can place the scroll buttons properly
13321
13321
  display: "flex",
@@ -13356,25 +13356,25 @@ const g7 = [
13356
13356
  }), N7 = /* @__PURE__ */ Fe((e, t) => {
13357
13357
  const { __scopeSelect: r, onPlaced: n, ...a } = e, o = Pn(aa, r), s = On(aa, r), [i, c] = Ne(null), [l, u] = Ne(null), d = vt(
13358
13358
  t,
13359
- (z) => u(z)
13360
- ), h = Pi(r), v = et(!1), y = et(!0), { viewport: m, selectedItem: g, selectedItemText: f, focusSelectedItem: p } = s, E = ot(() => {
13359
+ (V) => u(V)
13360
+ ), h = Pi(r), v = et(!1), b = et(!0), { viewport: m, selectedItem: g, selectedItemText: f, focusSelectedItem: p } = s, E = ot(() => {
13361
13361
  if (o.trigger && o.valueNode && i && l && m && g && f) {
13362
- const z = o.trigger.getBoundingClientRect(), F = l.getBoundingClientRect(), U = o.valueNode.getBoundingClientRect(), K = f.getBoundingClientRect();
13362
+ const V = o.trigger.getBoundingClientRect(), F = l.getBoundingClientRect(), U = o.valueNode.getBoundingClientRect(), K = f.getBoundingClientRect();
13363
13363
  if (o.dir !== "rtl") {
13364
- const Q = K.left - F.left, ne = U.left - Q, Ae = z.left - ne, Ze = z.width + Ae, Xe = Math.max(Ze, F.width), ze = window.innerWidth - Er, wt = Wp(ne, [
13364
+ const Q = K.left - F.left, ne = U.left - Q, Ae = V.left - ne, Ze = V.width + Ae, Xe = Math.max(Ze, F.width), We = window.innerWidth - Er, wt = Wp(ne, [
13365
13365
  Er,
13366
- ze - Xe
13366
+ We - Xe
13367
13367
  ]);
13368
13368
  i.style.minWidth = Ze + "px", i.style.left = wt + "px";
13369
13369
  } else {
13370
- const Q = F.right - K.right, ne = window.innerWidth - U.right - Q, Ae = window.innerWidth - z.right - ne, Ze = z.width + Ae, Xe = Math.max(Ze, F.width), ze = window.innerWidth - Er, wt = Wp(ne, [
13370
+ const Q = F.right - K.right, ne = window.innerWidth - U.right - Q, Ae = window.innerWidth - V.right - ne, Ze = V.width + Ae, Xe = Math.max(Ze, F.width), We = window.innerWidth - Er, wt = Wp(ne, [
13371
13371
  Er,
13372
- ze - Xe
13372
+ We - Xe
13373
13373
  ]);
13374
13374
  i.style.minWidth = Ze + "px", i.style.right = wt + "px";
13375
13375
  }
13376
- const J = h(), B = window.innerHeight - Er * 2, X = m.scrollHeight, Z = window.getComputedStyle(l), re = parseInt(Z.borderTopWidth, 10), he = parseInt(Z.paddingTop, 10), de = parseInt(Z.borderBottomWidth, 10), Oe = parseInt(Z.paddingBottom, 10), be = re + he + X + Oe + de, H = Math.min(g.offsetHeight * 5, be), R = window.getComputedStyle(m), I = parseInt(R.paddingTop, 10), x = parseInt(R.paddingBottom, 10), b = z.top + z.height / 2 - Er, $ = B - b, C = g.offsetHeight / 2, A = g.offsetTop + C, N = re + he + A, W = be - N;
13377
- if (N <= b) {
13376
+ const J = h(), B = window.innerHeight - Er * 2, X = m.scrollHeight, Z = window.getComputedStyle(l), re = parseInt(Z.borderTopWidth, 10), he = parseInt(Z.paddingTop, 10), de = parseInt(Z.borderBottomWidth, 10), Oe = parseInt(Z.paddingBottom, 10), be = re + he + X + Oe + de, H = Math.min(g.offsetHeight * 5, be), R = window.getComputedStyle(m), I = parseInt(R.paddingTop, 10), x = parseInt(R.paddingBottom, 10), y = V.top + V.height / 2 - Er, $ = B - y, C = g.offsetHeight / 2, A = g.offsetTop + C, N = re + he + A, W = be - N;
13377
+ if (N <= y) {
13378
13378
  const Q = g === J[J.length - 1].ref.current;
13379
13379
  i.style.bottom = "0px";
13380
13380
  const ne = l.clientHeight - m.offsetTop - m.offsetHeight, Ae = Math.max($, C + (Q ? x : 0) + ne + de), Ze = N + Ae;
@@ -13382,8 +13382,8 @@ const g7 = [
13382
13382
  } else {
13383
13383
  const Q = g === J[0].ref.current;
13384
13384
  i.style.top = "0px";
13385
- const Ae = Math.max(b, re + m.offsetTop + (Q ? I : 0) + C) + W;
13386
- i.style.height = Ae + "px", m.scrollTop = N - b + m.offsetTop;
13385
+ const Ae = Math.max(y, re + m.offsetTop + (Q ? I : 0) + C) + W;
13386
+ i.style.height = Ae + "px", m.scrollTop = N - y + m.offsetTop;
13387
13387
  }
13388
13388
  i.style.margin = `${Er}px 0`, i.style.minHeight = H + "px", i.style.maxHeight = B + "px", n == null || n(), requestAnimationFrame(
13389
13389
  () => v.current = !0
@@ -13413,8 +13413,8 @@ const g7 = [
13413
13413
  }, [
13414
13414
  l
13415
13415
  ]);
13416
- const M = ot((z) => {
13417
- z && y.current === !0 && (E(), p == null || p(), y.current = !1);
13416
+ const M = ot((V) => {
13417
+ V && b.current === !0 && (E(), p == null || p(), b.current = !1);
13418
13418
  }, [
13419
13419
  E,
13420
13420
  p
@@ -13487,7 +13487,7 @@ const g7 = [
13487
13487
  if (d != null && d.current && u) {
13488
13488
  const h = Math.abs(i.current - l.scrollTop);
13489
13489
  if (h > 0) {
13490
- const v = window.innerHeight - Er * 2, y = parseFloat(u.style.minHeight), m = parseFloat(u.style.height), g = Math.max(y, m);
13490
+ const v = window.innerHeight - Er * 2, b = parseFloat(u.style.minHeight), m = parseFloat(u.style.height), g = Math.max(b, m);
13491
13491
  if (g < v) {
13492
13492
  const f = g + h, p = Math.min(v, f), E = f - p;
13493
13493
  u.style.height = p + "px", u.style.bottom === "0px" && (l.scrollTop = E > 0 ? E : 0, u.style.justifyContent = "flex-end");
@@ -13505,7 +13505,7 @@ const g7 = [
13505
13505
  ref: t
13506
13506
  }));
13507
13507
  }), sl = "SelectItem", [F7, zy] = Ca(sl), V7 = /* @__PURE__ */ Fe((e, t) => {
13508
- const { __scopeSelect: r, value: n, disabled: a = !1, textValue: o, ...s } = e, i = Pn(sl, r), c = On(sl, r), l = i.value === n, [u, d] = Ne(o ?? ""), [h, v] = Ne(!1), y = vt(t, (f) => {
13508
+ const { __scopeSelect: r, value: n, disabled: a = !1, textValue: o, ...s } = e, i = Pn(sl, r), c = On(sl, r), l = i.value === n, [u, d] = Ne(o ?? ""), [h, v] = Ne(!1), b = vt(t, (f) => {
13509
13509
  var p;
13510
13510
  return (p = c.itemRefCallback) === null || p === void 0 ? void 0 : p.call(c, f, n, a);
13511
13511
  }), m = my(), g = () => {
@@ -13540,7 +13540,7 @@ const g7 = [
13540
13540
  "data-disabled": a ? "" : void 0,
13541
13541
  tabIndex: a ? void 0 : -1
13542
13542
  }, s, {
13543
- ref: y,
13543
+ ref: b,
13544
13544
  onFocus: st(
13545
13545
  s.onFocus,
13546
13546
  () => v(!0)
@@ -13579,7 +13579,7 @@ const g7 = [
13579
13579
  var p;
13580
13580
  return (p = i.itemTextRefCallback) === null || p === void 0 ? void 0 : p.call(i, f, c.value, c.disabled);
13581
13581
  }
13582
- ), v = u == null ? void 0 : u.textContent, y = Re(
13582
+ ), v = u == null ? void 0 : u.textContent, b = Re(
13583
13583
  () => /* @__PURE__ */ le("option", {
13584
13584
  key: c.value,
13585
13585
  value: c.value,
@@ -13591,10 +13591,10 @@ const g7 = [
13591
13591
  v
13592
13592
  ]
13593
13593
  ), { onNativeOptionAdd: m, onNativeOptionRemove: g } = l;
13594
- return Ft(() => (m(y), () => g(y)), [
13594
+ return Ft(() => (m(b), () => g(b)), [
13595
13595
  m,
13596
13596
  g,
13597
- y
13597
+ b
13598
13598
  ]), /* @__PURE__ */ le(Xs, null, /* @__PURE__ */ le(ut.span, Le({
13599
13599
  id: c.textId
13600
13600
  }, o, {
@@ -13653,7 +13653,7 @@ const g7 = [
13653
13653
  const { __scopeSelect: r, onAutoScroll: n, ...a } = e, o = On("SelectScrollButton", r), s = et(null), i = Pi(r), c = ot(() => {
13654
13654
  s.current !== null && (window.clearInterval(s.current), s.current = null);
13655
13655
  }, []);
13656
- return Ue(() => () => c(), [
13656
+ return ze(() => () => c(), [
13657
13657
  c
13658
13658
  ]), Ft(() => {
13659
13659
  var l;
@@ -13697,7 +13697,7 @@ function Uy(e) {
13697
13697
  }
13698
13698
  const By = /* @__PURE__ */ Fe((e, t) => {
13699
13699
  const { value: r, ...n } = e, a = et(null), o = vt(t, a), s = O6(r);
13700
- return Ue(() => {
13700
+ return ze(() => {
13701
13701
  const i = a.current, c = window.HTMLSelectElement.prototype, u = Object.getOwnPropertyDescriptor(c, "value").set;
13702
13702
  if (s !== r && u) {
13703
13703
  const d = new Event("change", {
@@ -13730,7 +13730,7 @@ function Hy(e) {
13730
13730
  ]), o = ot(() => {
13731
13731
  r.current = "", window.clearTimeout(n.current);
13732
13732
  }, []);
13733
- return Ue(() => () => window.clearTimeout(n.current), []), [
13733
+ return ze(() => () => window.clearTimeout(n.current), []), [
13734
13734
  r,
13735
13735
  a,
13736
13736
  o
@@ -14011,12 +14011,12 @@ function p8(e) {
14011
14011
  }
14012
14012
  g === "[" ? c++ : g === "]" && c--;
14013
14013
  }
14014
- const d = i.length === 0 ? s : s.substring(l), h = d.startsWith(ab), v = h ? d.substring(1) : d, y = u && u > l ? u - l : void 0;
14014
+ const d = i.length === 0 ? s : s.substring(l), h = d.startsWith(ab), v = h ? d.substring(1) : d, b = u && u > l ? u - l : void 0;
14015
14015
  return {
14016
14016
  modifiers: i,
14017
14017
  hasImportantModifier: h,
14018
14018
  baseClassName: v,
14019
- maybePostfixModifierPosition: y
14019
+ maybePostfixModifierPosition: b
14020
14020
  };
14021
14021
  };
14022
14022
  }
@@ -14177,7 +14177,7 @@ function j8(e) {
14177
14177
  return x8.test(e);
14178
14178
  }
14179
14179
  function M8() {
14180
- const e = He("colors"), t = He("spacing"), r = He("blur"), n = He("brightness"), a = He("borderColor"), o = He("borderRadius"), s = He("borderSpacing"), i = He("borderWidth"), c = He("contrast"), l = He("grayscale"), u = He("hueRotate"), d = He("invert"), h = He("gap"), v = He("gradientColorStops"), y = He("gradientColorStopPositions"), m = He("inset"), g = He("margin"), f = He("opacity"), p = He("padding"), E = He("saturate"), S = He("scale"), O = He("sepia"), M = He("skew"), z = He("space"), F = He("translate"), U = () => ["auto", "contain", "none"], K = () => ["auto", "hidden", "clip", "visible", "scroll"], J = () => ["auto", Ee, t], B = () => [Ee, t], X = () => ["", $r, Br], Z = () => ["auto", pn, Ee], re = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], he = () => ["solid", "dashed", "dotted", "double", "none"], de = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Oe = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], be = () => ["", "0", Ee], H = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], R = () => [pn, is], I = () => [pn, Ee];
14180
+ const e = He("colors"), t = He("spacing"), r = He("blur"), n = He("brightness"), a = He("borderColor"), o = He("borderRadius"), s = He("borderSpacing"), i = He("borderWidth"), c = He("contrast"), l = He("grayscale"), u = He("hueRotate"), d = He("invert"), h = He("gap"), v = He("gradientColorStops"), b = He("gradientColorStopPositions"), m = He("inset"), g = He("margin"), f = He("opacity"), p = He("padding"), E = He("saturate"), S = He("scale"), O = He("sepia"), M = He("skew"), V = He("space"), F = He("translate"), U = () => ["auto", "contain", "none"], K = () => ["auto", "hidden", "clip", "visible", "scroll"], J = () => ["auto", Ee, t], B = () => [Ee, t], X = () => ["", $r, Br], Z = () => ["auto", pn, Ee], re = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], he = () => ["solid", "dashed", "dotted", "double", "none"], de = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Oe = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], be = () => ["", "0", Ee], H = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], R = () => [pn, is], I = () => [pn, Ee];
14181
14181
  return {
14182
14182
  cacheSize: 500,
14183
14183
  separator: ":",
@@ -14771,7 +14771,7 @@ function M8() {
14771
14771
  * @see https://tailwindcss.com/docs/space
14772
14772
  */
14773
14773
  "space-x": [{
14774
- "space-x": [z]
14774
+ "space-x": [V]
14775
14775
  }],
14776
14776
  /**
14777
14777
  * Space Between X Reverse
@@ -14783,7 +14783,7 @@ function M8() {
14783
14783
  * @see https://tailwindcss.com/docs/space
14784
14784
  */
14785
14785
  "space-y": [{
14786
- "space-y": [z]
14786
+ "space-y": [V]
14787
14787
  }],
14788
14788
  /**
14789
14789
  * Space Between Y Reverse
@@ -15148,21 +15148,21 @@ function M8() {
15148
15148
  * @see https://tailwindcss.com/docs/gradient-color-stops
15149
15149
  */
15150
15150
  "gradient-from-pos": [{
15151
- from: [y]
15151
+ from: [b]
15152
15152
  }],
15153
15153
  /**
15154
15154
  * Gradient Color Stops Via Position
15155
15155
  * @see https://tailwindcss.com/docs/gradient-color-stops
15156
15156
  */
15157
15157
  "gradient-via-pos": [{
15158
- via: [y]
15158
+ via: [b]
15159
15159
  }],
15160
15160
  /**
15161
15161
  * Gradient Color Stops To Position
15162
15162
  * @see https://tailwindcss.com/docs/gradient-color-stops
15163
15163
  */
15164
15164
  "gradient-to-pos": [{
15165
- to: [y]
15165
+ to: [b]
15166
15166
  }],
15167
15167
  /**
15168
15168
  * Gradient Color Stops From
@@ -19415,54 +19415,54 @@ const uH = D.object({
19415
19415
  const u = Object.fromEntries(
19416
19416
  Object.entries(t ?? {}).filter(([, d]) => {
19417
19417
  var h;
19418
- const v = (h = d.scope) == null ? void 0 : h.split(",").map((y) => y.trim());
19418
+ const v = (h = d.scope) == null ? void 0 : h.split(",").map((b) => b.trim());
19419
19419
  return !!(!v || r === "P" && v != null && v.includes("P") || v != null && v.includes("Q") || r === "Q" && v != null && v.includes("Q"));
19420
19420
  }).map(([d, h]) => {
19421
- var v, y, m, g, f, p, E, S, O, M, z, F, U, K, J, B, X;
19421
+ var v, b, m, g, f, p, E, S, O, M, V, F, U, K, J, B, X;
19422
19422
  let Z = !1, re = !1, he = !1;
19423
19423
  const de = h.displayName ?? d, Oe = (v = h.type) == null ? void 0 : v.slice(-1), be = h.maxLength, H = h.minLength, R = h.max, I = h.min, x = h.regex;
19424
- let b = h.type ?? "", $;
19424
+ let y = h.type ?? "", $;
19425
19425
  switch (Oe) {
19426
19426
  case "*":
19427
- re = !0, Z = !0, b = b == null ? void 0 : b.split("*")[0];
19427
+ re = !0, Z = !0, y = y == null ? void 0 : y.split("*")[0];
19428
19428
  break;
19429
19429
  case "?":
19430
- b = b == null ? void 0 : b.split("?")[0], Z = !0;
19430
+ y = y == null ? void 0 : y.split("?")[0], Z = !0;
19431
19431
  break;
19432
19432
  case "+":
19433
- re = !0, b = b == null ? void 0 : b.split("+")[0];
19433
+ re = !0, y = y == null ? void 0 : y.split("+")[0];
19434
19434
  break;
19435
19435
  case "!":
19436
- b = b == null ? void 0 : b.split("!")[0];
19436
+ y = y == null ? void 0 : y.split("!")[0];
19437
19437
  break;
19438
19438
  }
19439
- switch (b) {
19439
+ switch (y) {
19440
19440
  case "string":
19441
- b = "string";
19441
+ y = "string";
19442
19442
  break;
19443
19443
  case "int":
19444
19444
  case "long":
19445
- b = "integer";
19445
+ y = "integer";
19446
19446
  break;
19447
19447
  case "decimal":
19448
- b = "number";
19448
+ y = "number";
19449
19449
  break;
19450
19450
  case "dateTime":
19451
- b = "string", $ = "date-time";
19451
+ y = "string", $ = "date-time";
19452
19452
  break;
19453
19453
  case "date":
19454
- b = "string", $ = "date";
19454
+ y = "string", $ = "date";
19455
19455
  break;
19456
19456
  case "boolean":
19457
19457
  case "bool":
19458
- b = "boolean";
19458
+ y = "boolean";
19459
19459
  break;
19460
19460
  default:
19461
19461
  he = !0;
19462
19462
  break;
19463
19463
  }
19464
19464
  if (!Z && !he && !re && c.push(d), he) {
19465
- const A = n == null ? void 0 : n[b];
19465
+ const A = n == null ? void 0 : n[y];
19466
19466
  if (A) {
19467
19467
  let N = re ? [] : {};
19468
19468
  const W = Cb({
@@ -19471,9 +19471,9 @@ const uH = D.object({
19471
19471
  dataTypes: n,
19472
19472
  rootDisplayName: d
19473
19473
  });
19474
- return s && (m = (y = s.element) == null ? void 0 : y.data) != null && m[d] && (N = (f = (g = s.element) == null ? void 0 : g.data) == null ? void 0 : f[d]), i && (p = i == null ? void 0 : i.data) != null && p[d] && (N = (E = i == null ? void 0 : i.data) == null ? void 0 : E[d]), o && (S = o == null ? void 0 : o.data) != null && S[d] && (N = (O = o == null ? void 0 : o.data) == null ? void 0 : O[d]), l = {
19474
+ return s && (m = (b = s.element) == null ? void 0 : b.data) != null && m[d] && (N = (f = (g = s.element) == null ? void 0 : g.data) == null ? void 0 : f[d]), i && (p = i == null ? void 0 : i.data) != null && p[d] && (N = (E = i == null ? void 0 : i.data) == null ? void 0 : E[d]), o && (S = o == null ? void 0 : o.data) != null && S[d] && (N = (O = o == null ? void 0 : o.data) == null ? void 0 : O[d]), l = {
19475
19475
  ...l,
19476
- [`${b}`]: W
19476
+ [`${y}`]: W
19477
19477
  }, re ? [
19478
19478
  d,
19479
19479
  {
@@ -19483,7 +19483,7 @@ const uH = D.object({
19483
19483
  type: "array",
19484
19484
  default: N,
19485
19485
  items: {
19486
- $ref: `#/definitions/${b}`
19486
+ $ref: `#/definitions/${y}`
19487
19487
  },
19488
19488
  ...!Z && { minItems: 1 }
19489
19489
  }
@@ -19494,7 +19494,7 @@ const uH = D.object({
19494
19494
  return q.toUpperCase();
19495
19495
  }),
19496
19496
  default: N,
19497
- $ref: `#/definitions/${b}`
19497
+ $ref: `#/definitions/${y}`
19498
19498
  }
19499
19499
  ];
19500
19500
  }
@@ -19502,16 +19502,16 @@ const uH = D.object({
19502
19502
  let C = "";
19503
19503
  if (o) {
19504
19504
  const A = (o == null ? void 0 : o.state) === "validated" ? d.charAt(0).toLowerCase() + d.slice(1) : d;
19505
- C = (M = o == null ? void 0 : o.data) != null && M[A] ? (z = o == null ? void 0 : o.data) == null ? void 0 : z[A] : b === "boolean" ? !!h.defaultValue : h.defaultValue;
19505
+ C = (M = o == null ? void 0 : o.data) != null && M[A] ? (V = o == null ? void 0 : o.data) == null ? void 0 : V[A] : y === "boolean" ? !!h.defaultValue : h.defaultValue;
19506
19506
  }
19507
- return s && (C = (U = (F = s.element) == null ? void 0 : F.data) != null && U[d] ? (J = (K = s.element) == null ? void 0 : K.data) == null ? void 0 : J[d] : b === "boolean" ? !!h.defaultValue : h.defaultValue), i && (C = (B = i == null ? void 0 : i.data) != null && B[d] ? (X = i == null ? void 0 : i.data) == null ? void 0 : X[d] : b === "boolean" ? !!h.defaultValue : h.defaultValue), re ? [
19507
+ return s && (C = (U = (F = s.element) == null ? void 0 : F.data) != null && U[d] ? (J = (K = s.element) == null ? void 0 : K.data) == null ? void 0 : J[d] : y === "boolean" ? !!h.defaultValue : h.defaultValue), i && (C = (B = i == null ? void 0 : i.data) != null && B[d] ? (X = i == null ? void 0 : i.data) == null ? void 0 : X[d] : y === "boolean" ? !!h.defaultValue : h.defaultValue), re ? [
19508
19508
  d,
19509
19509
  {
19510
19510
  title: de,
19511
19511
  type: "array",
19512
19512
  default: C,
19513
19513
  items: {
19514
- type: b,
19514
+ type: y,
19515
19515
  ...be && { maxLength: be },
19516
19516
  ...H && { minLength: H },
19517
19517
  ...I && { min: I },
@@ -19525,7 +19525,7 @@ const uH = D.object({
19525
19525
  d,
19526
19526
  {
19527
19527
  title: de,
19528
- type: b,
19528
+ type: y,
19529
19529
  ...C && { default: C },
19530
19530
  ...H && { minLength: H },
19531
19531
  ...be && { maxLength: be },
@@ -19557,7 +19557,7 @@ var fl = { exports: {} };
19557
19557
  dependencies: "property",
19558
19558
  dependentRequired: "property"
19559
19559
  }, d = /\$\{[^}]+\}/, h = /\$\{([^}]+)\}/g, v = /^""\s*\+\s*|\s*\+\s*""$/g;
19560
- function y(g) {
19560
+ function b(g) {
19561
19561
  return {
19562
19562
  keyword: c,
19563
19563
  schemaType: ["string", "object"],
@@ -19566,31 +19566,31 @@ var fl = { exports: {} };
19566
19566
  const { gen: p, data: E, schema: S, schemaValue: O, it: M } = f;
19567
19567
  if (M.createErrors === !1)
19568
19568
  return;
19569
- const z = S, F = n.strConcat(i.default.instancePath, M.errorPath);
19569
+ const V = S, F = n.strConcat(i.default.instancePath, M.errorPath);
19570
19570
  p.if(r._`${i.default.errors} > 0`, () => {
19571
- if (typeof z == "object") {
19572
- const [x, b] = K(z);
19573
- b && J(b), x && B(x), X(U(z));
19571
+ if (typeof V == "object") {
19572
+ const [x, y] = K(V);
19573
+ y && J(y), x && B(x), X(U(V));
19574
19574
  }
19575
- const I = typeof z == "string" ? z : z._;
19575
+ const I = typeof V == "string" ? V : V._;
19576
19576
  I && Z(I), g.keepErrors || re();
19577
19577
  });
19578
19578
  function U({ properties: I, items: x }) {
19579
- const b = {};
19579
+ const y = {};
19580
19580
  if (I) {
19581
- b.props = {};
19581
+ y.props = {};
19582
19582
  for (const $ in I)
19583
- b.props[$] = [];
19583
+ y.props[$] = [];
19584
19584
  }
19585
19585
  if (x) {
19586
- b.items = {};
19586
+ y.items = {};
19587
19587
  for (let $ = 0; $ < x.length; $++)
19588
- b.items[$] = [];
19588
+ y.items[$] = [];
19589
19589
  }
19590
- return b;
19590
+ return y;
19591
19591
  }
19592
19592
  function K(I) {
19593
- let x, b;
19593
+ let x, y;
19594
19594
  for (const $ in I) {
19595
19595
  if ($ === "properties" || $ === "items")
19596
19596
  continue;
@@ -19601,12 +19601,12 @@ var fl = { exports: {} };
19601
19601
  for (const N in C)
19602
19602
  A[N] = [];
19603
19603
  } else
19604
- b || (b = {}), b[$] = [];
19604
+ y || (y = {}), y[$] = [];
19605
19605
  }
19606
- return [x, b];
19606
+ return [x, y];
19607
19607
  }
19608
19608
  function J(I) {
19609
- const x = p.const("emErrors", r.stringify(I)), b = p.const("templates", be(I, S));
19609
+ const x = p.const("emErrors", r.stringify(I)), y = p.const("templates", be(I, S));
19610
19610
  p.forOf("err", i.default.vErrors, (N) => p.if(he(N, x), () => p.code(r._`${x}[${N}.keyword].push(${N})`).assign(r._`${N}.${l}`, !0)));
19611
19611
  const { singleError: $ } = g;
19612
19612
  if ($) {
@@ -19623,17 +19623,17 @@ var fl = { exports: {} };
19623
19623
  p.forIn("key", x, (W) => p.if(r._`${x}[${W}].length`, () => N(W)));
19624
19624
  }
19625
19625
  function A(N) {
19626
- return r._`${N} in ${b} ? ${b}[${N}]() : ${O}[${N}]`;
19626
+ return r._`${N} in ${y} ? ${y}[${N}]() : ${O}[${N}]`;
19627
19627
  }
19628
19628
  }
19629
19629
  function B(I) {
19630
- const x = p.const("emErrors", r.stringify(I)), b = [];
19630
+ const x = p.const("emErrors", r.stringify(I)), y = [];
19631
19631
  for (const W in I)
19632
- b.push([
19632
+ y.push([
19633
19633
  W,
19634
19634
  be(I[W], S[W])
19635
19635
  ]);
19636
- const $ = p.const("templates", p.object(...b)), C = p.scopeValue("obj", {
19636
+ const $ = p.const("templates", p.object(...y)), C = p.scopeValue("obj", {
19637
19637
  ref: u,
19638
19638
  code: r.stringify(u)
19639
19639
  }), A = p.let("emPropParams"), N = p.let("emParamsErrors");
@@ -19650,17 +19650,17 @@ var fl = { exports: {} };
19650
19650
  }));
19651
19651
  }
19652
19652
  function X(I) {
19653
- const { props: x, items: b } = I;
19654
- if (!x && !b)
19653
+ const { props: x, items: y } = I;
19654
+ if (!x && !y)
19655
19655
  return;
19656
19656
  const $ = r._`typeof ${E} == "object"`, C = r._`Array.isArray(${E})`, A = p.let("emErrors");
19657
19657
  let N, W;
19658
19658
  const q = p.let("templates");
19659
- x && b ? (N = p.let("emChildKwd"), p.if($), p.if(C, () => {
19660
- Q(b, S.items), p.assign(N, r.str`items`);
19659
+ x && y ? (N = p.let("emChildKwd"), p.if($), p.if(C, () => {
19660
+ Q(y, S.items), p.assign(N, r.str`items`);
19661
19661
  }, () => {
19662
19662
  Q(x, S.properties), p.assign(N, r.str`properties`);
19663
- }), W = r._`[${N}]`) : b ? (p.if(C), Q(b, S.items), W = r._`.items`) : x && (p.if(n.and($, n.not(C))), Q(x, S.properties), W = r._`.properties`), p.forOf("err", i.default.vErrors, (ne) => de(ne, A, (Ae) => p.code(r._`${A}[${Ae}].push(${ne})`).assign(r._`${ne}.${l}`, !0))), p.forIn("key", A, (ne) => p.if(r._`${A}[${ne}].length`, () => {
19663
+ }), W = r._`[${N}]`) : y ? (p.if(C), Q(y, S.items), W = r._`.items`) : x && (p.if(n.and($, n.not(C))), Q(x, S.properties), W = r._`.properties`), p.forOf("err", i.default.vErrors, (ne) => de(ne, A, (Ae) => p.code(r._`${A}[${Ae}].push(${ne})`).assign(r._`${ne}.${l}`, !0))), p.forIn("key", A, (ne) => p.if(r._`${A}[${ne}].length`, () => {
19664
19664
  s.reportError(f, {
19665
19665
  message: r._`${ne} in ${q} ? ${q}[${ne}]() : ${O}${W}[${ne}]`,
19666
19666
  params: r._`{errors: ${A}[${ne}]}`
@@ -19672,7 +19672,7 @@ var fl = { exports: {} };
19672
19672
  }
19673
19673
  function Z(I) {
19674
19674
  const x = p.const("emErrs", r._`[]`);
19675
- p.forOf("err", i.default.vErrors, (b) => p.if(Oe(b), () => p.code(r._`${x}.push(${b})`).assign(r._`${b}.${l}`, !0))), p.if(r._`${x}.length`, () => s.reportError(f, {
19675
+ p.forOf("err", i.default.vErrors, (y) => p.if(Oe(y), () => p.code(r._`${x}.push(${y})`).assign(r._`${y}.${l}`, !0))), p.if(r._`${x}.length`, () => s.reportError(f, {
19676
19676
  message: H(I),
19677
19677
  params: r._`{errors: ${x}}`
19678
19678
  }));
@@ -19692,28 +19692,28 @@ var fl = { exports: {} };
19692
19692
  r._`/^\\/[^\\/]*$/.test(${I}.schemaPath.slice(${M.errSchemaPath.length}))`
19693
19693
  );
19694
19694
  }
19695
- function de(I, x, b) {
19695
+ function de(I, x, y) {
19696
19696
  p.if(n.and(r._`${I}.keyword !== ${c}`, r._`!${I}.${l}`, r._`${I}.instancePath.indexOf(${F}) === 0`), () => {
19697
19697
  const $ = p.scopeValue("pattern", {
19698
19698
  ref: /^\/([^/]*)(?:\/|$)/,
19699
19699
  code: r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`
19700
19700
  }), C = p.const("emMatches", r._`${$}.exec(${I}.instancePath.slice(${F}.length))`), A = p.const("emChild", r._`${C} && ${C}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);
19701
- p.if(r._`${A} !== undefined && ${A} in ${x}`, () => b(A));
19701
+ p.if(r._`${A} !== undefined && ${A} in ${x}`, () => y(A));
19702
19702
  });
19703
19703
  }
19704
19704
  function Oe(I) {
19705
19705
  return n.and(r._`${I}.keyword !== ${c}`, r._`!${I}.${l}`, n.or(r._`${I}.instancePath === ${F}`, n.and(r._`${I}.instancePath.indexOf(${F}) === 0`, r._`${I}.instancePath[${F}.length] === "/"`)), r._`${I}.schemaPath.indexOf(${M.errSchemaPath}) === 0`, r._`${I}.schemaPath[${M.errSchemaPath}.length] === "/"`);
19706
19706
  }
19707
19707
  function be(I, x) {
19708
- const b = [];
19708
+ const y = [];
19709
19709
  for (const $ in I) {
19710
19710
  const C = x[$];
19711
- d.test(C) && b.push([$, R(C)]);
19711
+ d.test(C) && y.push([$, R(C)]);
19712
19712
  }
19713
- return p.object(...b);
19713
+ return p.object(...y);
19714
19714
  }
19715
19715
  function H(I) {
19716
- return d.test(I) ? new a._Code(a.safeStringify(I).replace(h, (x, b) => `" + JSON.stringify(${o.getData(b, M)}) + "`).replace(v, "")) : r.stringify(I);
19716
+ return d.test(I) ? new a._Code(a.safeStringify(I).replace(h, (x, y) => `" + JSON.stringify(${o.getData(y, M)}) + "`).replace(v, "")) : r.stringify(I);
19717
19717
  }
19718
19718
  function R(I) {
19719
19719
  return r._`function(){return ${H(I)}}`;
@@ -19751,7 +19751,7 @@ var fl = { exports: {} };
19751
19751
  throw new Error("ajv-errors: Ajv option allErrors must be true");
19752
19752
  if (g.opts.jsPropertySyntax)
19753
19753
  throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");
19754
- return g.addKeyword(y(f));
19754
+ return g.addKeyword(b(f));
19755
19755
  };
19756
19756
  t.default = m, e.exports = m, e.exports.default = m;
19757
19757
  })(fl, fl.exports);
@@ -19790,8 +19790,8 @@ const _h = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, $h =
19790
19790
  return h === void 0 || (l[d] = h), l;
19791
19791
  }, {}), c = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((l, u) => {
19792
19792
  let { class: d, className: h, ...v } = u;
19793
- return Object.entries(v).every((y) => {
19794
- let [m, g] = y;
19793
+ return Object.entries(v).every((b) => {
19794
+ let [m, g] = b;
19795
19795
  return Array.isArray(g) ? g.includes({
19796
19796
  ...o,
19797
19797
  ...i
@@ -19922,60 +19922,67 @@ const vH = ({
19922
19922
  accountsModel: e,
19923
19923
  accountType: t,
19924
19924
  dataTypes: r,
19925
- handleSubmit: n,
19926
- hideSubmitButton: a,
19927
- account: o,
19928
- submitButtonText: s,
19929
- id: i
19925
+ disabled: n,
19926
+ handleSubmit: a,
19927
+ isSubmitting: o,
19928
+ preventFormResetOnDisabled: s,
19929
+ hideSubmitButton: i,
19930
+ account: c,
19931
+ submitButtonText: l,
19932
+ id: u
19930
19933
  }) => {
19931
- const [c, l] = Ne(o ? o.data : {}), [u, d] = Ne(!1), [h, v] = Ne(), y = Cb({
19934
+ const [d, h] = Ne(c ? c.data : {}), [v, b] = Ne(!1), [m, g] = Ne();
19935
+ ze(() => {
19936
+ n && !s && (g([]), h(c ? c.data : {}));
19937
+ }, [n, c, s]);
19938
+ const f = Cb({
19932
19939
  data: e[t].data ?? {},
19933
19940
  dataTypes: r,
19934
19941
  scope: "Q",
19935
19942
  rootDisplayName: t,
19936
- account: o
19937
- }), m = (f) => {
19938
- if (f.preventDefault(), fn.validate(y, c ?? {}))
19939
- v([]);
19943
+ account: c
19944
+ }), p = (S) => {
19945
+ if (S.preventDefault(), fn.validate(f, d ?? {}))
19946
+ g([]);
19940
19947
  else {
19941
- const O = bh(fn.errors);
19942
- v(O), d(!0);
19948
+ const F = bh(fn.errors);
19949
+ g(F), b(!0);
19943
19950
  return;
19944
19951
  }
19945
- const E = {
19946
- data: c,
19952
+ const M = {
19953
+ data: d,
19947
19954
  type: t
19948
- }, S = uH.parse(E);
19949
- n(S);
19950
- }, g = ot(
19951
- (f, p, E) => {
19952
- const S = E(f, p);
19953
- switch (p.type) {
19955
+ }, V = uH.parse(M);
19956
+ a(V);
19957
+ }, E = ot(
19958
+ (S, O, M) => {
19959
+ const V = M(S, O);
19960
+ switch (O.type) {
19954
19961
  case $i:
19955
19962
  case wi: {
19956
- l(S.data);
19957
- const O = fn.validate(y, S.data ?? {});
19958
- if (!u)
19959
- return f;
19960
- if (O)
19961
- v([]);
19963
+ h(V.data);
19964
+ const F = fn.validate(f, V.data ?? {});
19965
+ if (!v)
19966
+ return S;
19967
+ if (F)
19968
+ g([]);
19962
19969
  else {
19963
- const M = bh(fn.errors);
19964
- v(M);
19970
+ const U = bh(fn.errors);
19971
+ g(U);
19965
19972
  }
19966
- return f;
19973
+ return S;
19967
19974
  }
19968
19975
  default:
19969
- return S;
19976
+ return V;
19970
19977
  }
19971
19978
  },
19972
- [u, y]
19979
+ [v, f]
19973
19980
  );
19974
19981
  return /* @__PURE__ */ Me.jsx(sy.Provider, { value: mH, children: /* @__PURE__ */ Me.jsxs(
19975
19982
  "form",
19976
19983
  {
19977
- onSubmit: m,
19978
- id: i,
19984
+ onSubmit: p,
19985
+ id: u,
19979
19986
  className: "flex flex-col gap-2 w-full @container",
19980
19987
  children: [
19981
19988
  /* @__PURE__ */ Me.jsx(
@@ -19984,17 +19991,27 @@ const vH = ({
19984
19991
  ajv: fn,
19985
19992
  cells: G8,
19986
19993
  renderers: q8,
19987
- data: c,
19988
- additionalErrors: h,
19989
- onChange: ({ data: f }) => {
19990
- l(f);
19994
+ data: d,
19995
+ readonly: n || o,
19996
+ additionalErrors: m,
19997
+ onChange: ({ data: S }) => {
19998
+ h(S);
19991
19999
  },
19992
- middleware: g,
19993
- schema: y,
20000
+ middleware: E,
20001
+ schema: f,
19994
20002
  validationMode: "NoValidation"
19995
20003
  }
19996
20004
  ),
19997
- !a && /* @__PURE__ */ Me.jsx(Tb, { type: "submit", variant: "default", className: "self-end mt-4", children: s ?? "Submit" })
20005
+ !i && /* @__PURE__ */ Me.jsx(
20006
+ Tb,
20007
+ {
20008
+ type: "submit",
20009
+ variant: "default",
20010
+ className: "self-end mt-4",
20011
+ disabled: n || o,
20012
+ children: l ?? "Submit"
20013
+ }
20014
+ )
19998
20015
  ]
19999
20016
  }
20000
20017
  ) });