@opengov/form-renderer 0.2.18 → 0.2.19-dropdown-beta.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/lib.js CHANGED
@@ -307,7 +307,7 @@ function Lf() {
307
307
  var Ut = O ? O.displayName || O.name : "", Ce = Ut ? be(Ut) : "";
308
308
  return typeof O == "function" && ve.set(O, Ce), Ce;
309
309
  }
310
- function V(O, G, ue) {
310
+ function W(O, G, ue) {
311
311
  return k(O, !1);
312
312
  }
313
313
  function me(O) {
@@ -330,7 +330,7 @@ function Lf() {
330
330
  if (typeof O == "object")
331
331
  switch (O.$$typeof) {
332
332
  case d:
333
- return V(O.render);
333
+ return W(O.render);
334
334
  case p:
335
335
  return Je(O.type, G, ue);
336
336
  case o: {
@@ -750,7 +750,7 @@ function Xr(e, r) {
750
750
  const t = pe(e, r == null ? void 0 : r.in);
751
751
  return t.setHours(0, 0, 0, 0), t;
752
752
  }
753
- function Wf(e, r, t) {
753
+ function Vf(e, r, t) {
754
754
  const [n, u] = Jn(
755
755
  t == null ? void 0 : t.in,
756
756
  e,
@@ -758,7 +758,7 @@ function Wf(e, r, t) {
758
758
  ), i = Xr(n), a = Xr(u), s = +i - zu(i), d = +a - zu(a);
759
759
  return Math.round((s - d) / $f);
760
760
  }
761
- function Vf(e, r) {
761
+ function Wf(e, r) {
762
762
  const t = _0(e, r), n = Ze(e, 0);
763
763
  return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), gn(n);
764
764
  }
@@ -789,7 +789,7 @@ function Jf(e) {
789
789
  function O0(e) {
790
790
  return !(!Jf(e) && typeof e != "number" || isNaN(+pe(e)));
791
791
  }
792
- function Ws(e, r) {
792
+ function Vs(e, r) {
793
793
  const t = pe(e, r == null ? void 0 : r.in);
794
794
  return t.setHours(23, 59, 59, 999), t;
795
795
  }
@@ -801,7 +801,7 @@ function ed(e, r) {
801
801
  const t = pe(e, r == null ? void 0 : r.in);
802
802
  return t.setDate(1), t.setHours(0, 0, 0, 0), t;
803
803
  }
804
- function Vs(e, r) {
804
+ function Ws(e, r) {
805
805
  const t = pe(e, r == null ? void 0 : r.in), n = t.getFullYear();
806
806
  return t.setFullYear(n + 1, 0, 0), t.setHours(23, 59, 59, 999), t;
807
807
  }
@@ -1247,10 +1247,10 @@ const Dd = /^(\d+)(th|st|nd|rd)?/i, Ed = /\d+/i, xd = {
1247
1247
  };
1248
1248
  function Bd(e, r) {
1249
1249
  const t = pe(e, r == null ? void 0 : r.in);
1250
- return Wf(t, N0(t)) + 1;
1250
+ return Vf(t, N0(t)) + 1;
1251
1251
  }
1252
1252
  function M0(e, r) {
1253
- const t = pe(e, r == null ? void 0 : r.in), n = +gn(t) - +Vf(t);
1253
+ const t = pe(e, r == null ? void 0 : r.in), n = +gn(t) - +Wf(t);
1254
1254
  return Math.round(n / C0) + 1;
1255
1255
  }
1256
1256
  function is(e, r) {
@@ -1967,7 +1967,7 @@ function $d(e, r, t) {
1967
1967
  const n = e[0] === "Y" ? "years" : "days of the month";
1968
1968
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${r}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1969
1969
  }
1970
- const jd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zd = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ud = /^'([^]*?)'?$/, Hd = /''/g, Wd = /[a-zA-Z]/;
1970
+ const jd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zd = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ud = /^'([^]*?)'?$/, Hd = /''/g, Vd = /[a-zA-Z]/;
1971
1971
  function ss(e, r, t) {
1972
1972
  var l, p, o, h, m, f, b, g;
1973
1973
  const n = Zr(), u = (t == null ? void 0 : t.locale) ?? n.locale ?? us, i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((p = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : p.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((h = (o = n.locale) == null ? void 0 : o.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, a = (t == null ? void 0 : t.weekStartsOn) ?? ((f = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((g = (b = n.locale) == null ? void 0 : b.options) == null ? void 0 : g.weekStartsOn) ?? 0, s = pe(e, t == null ? void 0 : t.in);
@@ -1985,10 +1985,10 @@ function ss(e, r, t) {
1985
1985
  return { isToken: !1, value: "'" };
1986
1986
  const v = w[0];
1987
1987
  if (v === "'")
1988
- return { isToken: !1, value: Vd(w) };
1988
+ return { isToken: !1, value: Wd(w) };
1989
1989
  if (Ys[v])
1990
1990
  return { isToken: !0, value: w };
1991
- if (v.match(Wd))
1991
+ if (v.match(Vd))
1992
1992
  throw new RangeError(
1993
1993
  "Format string contains an unescaped latin alphabet character `" + v + "`"
1994
1994
  );
@@ -2008,7 +2008,7 @@ function ss(e, r, t) {
2008
2008
  return D(s, v, u.localize, c);
2009
2009
  }).join("");
2010
2010
  }
2011
- function Vd(e) {
2011
+ function Wd(e) {
2012
2012
  const r = e.match(Ud);
2013
2013
  return r ? r[1].replace(Hd, "'") : e;
2014
2014
  }
@@ -3563,7 +3563,7 @@ const Hh = {
3563
3563
  x: new jh(),
3564
3564
  t: new zh(),
3565
3565
  T: new Uh()
3566
- }, Wh = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Vh = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yh = /^'([^]*?)'?$/, Gh = /''/g, Xh = /\S/, Qh = /[a-zA-Z]/;
3566
+ }, Vh = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Wh = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yh = /^'([^]*?)'?$/, Gh = /''/g, Xh = /\S/, Qh = /[a-zA-Z]/;
3567
3567
  function Zh(e, r, t, n) {
3568
3568
  var b, g, w, v, D, y, E, A;
3569
3569
  const u = () => Ze((n == null ? void 0 : n.in) || t, NaN), i = Gd(), a = (n == null ? void 0 : n.locale) ?? i.locale ?? us, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (b = n == null ? void 0 : n.locale) == null ? void 0 : b.options) == null ? void 0 : g.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((v = (w = i.locale) == null ? void 0 : w.options) == null ? void 0 : v.firstWeekContainsDate) ?? 1, d = (n == null ? void 0 : n.weekStartsOn) ?? ((y = (D = n == null ? void 0 : n.locale) == null ? void 0 : D.options) == null ? void 0 : y.weekStartsOn) ?? i.weekStartsOn ?? ((A = (E = i.locale) == null ? void 0 : E.options) == null ? void 0 : A.weekStartsOn) ?? 0;
@@ -3573,14 +3573,14 @@ function Zh(e, r, t, n) {
3573
3573
  firstWeekContainsDate: s,
3574
3574
  weekStartsOn: d,
3575
3575
  locale: a
3576
- }, l = [new sh(n == null ? void 0 : n.in, t)], p = r.match(Vh).map((C) => {
3576
+ }, l = [new sh(n == null ? void 0 : n.in, t)], p = r.match(Wh).map((C) => {
3577
3577
  const F = C[0];
3578
3578
  if (F in jn) {
3579
3579
  const x = jn[F];
3580
3580
  return x(C, a.formatLong);
3581
3581
  }
3582
3582
  return C;
3583
- }).join("").match(Wh), o = [];
3583
+ }).join("").match(Vh), o = [];
3584
3584
  for (let C of p) {
3585
3585
  !(n != null && n.useAdditionalWeekYearTokens) && I0(C) && Ia(C, r, e), !(n != null && n.useAdditionalDayOfYearTokens) && B0(C) && Ia(C, r, e);
3586
3586
  const F = C[0], x = Hh[F];
@@ -6162,9 +6162,9 @@ const O1 = {}, N1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
6162
6162
  __proto__: null,
6163
6163
  default: O1
6164
6164
  }, Symbol.toStringTag, { value: "Module" })), rr = /* @__PURE__ */ Rf(N1);
6165
- var Wi, Mo;
6165
+ var Vi, Mo;
6166
6166
  function ls() {
6167
- if (Mo) return Wi;
6167
+ if (Mo) return Vi;
6168
6168
  Mo = 1;
6169
6169
  let e = /* @__PURE__ */ _1(), r = rr;
6170
6170
  class t extends Error {
@@ -6211,11 +6211,11 @@ function ls() {
6211
6211
  `), this.name + ": " + this.message + u;
6212
6212
  }
6213
6213
  }
6214
- return Wi = t, t.default = t, Wi;
6214
+ return Vi = t, t.default = t, Vi;
6215
6215
  }
6216
- var Vi, Po;
6217
- function W0() {
6218
- if (Po) return Vi;
6216
+ var Wi, Po;
6217
+ function V0() {
6218
+ if (Po) return Wi;
6219
6219
  Po = 1;
6220
6220
  const e = {
6221
6221
  after: `
@@ -6404,13 +6404,13 @@ function W0() {
6404
6404
  this[u.type](u, i);
6405
6405
  }
6406
6406
  }
6407
- return Vi = t, t.default = t, Vi;
6407
+ return Wi = t, t.default = t, Wi;
6408
6408
  }
6409
6409
  var Yi, Bo;
6410
6410
  function ui() {
6411
6411
  if (Bo) return Yi;
6412
6412
  Bo = 1;
6413
- let e = W0();
6413
+ let e = V0();
6414
6414
  function r(t, n) {
6415
6415
  new e(n).stringify(t);
6416
6416
  }
@@ -6424,7 +6424,7 @@ var Gi, Ro;
6424
6424
  function ii() {
6425
6425
  if (Ro) return Gi;
6426
6426
  Ro = 1;
6427
- let e = ls(), r = W0(), t = ui(), { isClean: n, my: u } = fs();
6427
+ let e = ls(), r = V0(), t = ui(), { isClean: n, my: u } = fs();
6428
6428
  function i(d, c) {
6429
6429
  let l = new d.constructor();
6430
6430
  for (let p in d) {
@@ -6954,7 +6954,7 @@ function M1() {
6954
6954
  } }, ea;
6955
6955
  }
6956
6956
  var ta, Uo;
6957
- function V0() {
6957
+ function W0() {
6958
6958
  if (Uo) return ta;
6959
6959
  Uo = 1;
6960
6960
  let { existsSync: e, readFileSync: r } = rr, { dirname: t, join: n } = rr, { SourceMapConsumer: u, SourceMapGenerator: i } = rr;
@@ -7045,7 +7045,7 @@ var ra, Ho;
7045
7045
  function oi() {
7046
7046
  if (Ho) return ra;
7047
7047
  Ho = 1;
7048
- let { nanoid: e } = /* @__PURE__ */ M1(), { isAbsolute: r, resolve: t } = rr, { SourceMapConsumer: n, SourceMapGenerator: u } = rr, { fileURLToPath: i, pathToFileURL: a } = rr, s = ls(), d = V0(), c = rr, l = Symbol("fromOffsetCache"), p = !!(n && u), o = !!(t && r);
7048
+ let { nanoid: e } = /* @__PURE__ */ M1(), { isAbsolute: r, resolve: t } = rr, { SourceMapConsumer: n, SourceMapGenerator: u } = rr, { fileURLToPath: i, pathToFileURL: a } = rr, s = ls(), d = W0(), c = rr, l = Symbol("fromOffsetCache"), p = !!(n && u), o = !!(t && r);
7049
7049
  class h {
7050
7050
  get from() {
7051
7051
  return this.file || this.id;
@@ -7170,10 +7170,10 @@ function oi() {
7170
7170
  }
7171
7171
  return ra = h, h.default = h, c && c.registerInput && c.registerInput(h), ra;
7172
7172
  }
7173
- var na, Wo;
7173
+ var na, Vo;
7174
7174
  function eu() {
7175
- if (Wo) return na;
7176
- Wo = 1;
7175
+ if (Vo) return na;
7176
+ Vo = 1;
7177
7177
  let e = Jr(), r, t;
7178
7178
  class n extends e {
7179
7179
  constructor(i) {
@@ -7204,10 +7204,10 @@ function eu() {
7204
7204
  t = u;
7205
7205
  }, na = n, n.default = n, e.registerRoot(n), na;
7206
7206
  }
7207
- var ua, Vo;
7207
+ var ua, Wo;
7208
7208
  function Y0() {
7209
- if (Vo) return ua;
7210
- Vo = 1;
7209
+ if (Wo) return ua;
7210
+ Wo = 1;
7211
7211
  let e = {
7212
7212
  comma(r) {
7213
7213
  return e.split(r, [","], !0);
@@ -7249,7 +7249,7 @@ var aa, Go;
7249
7249
  function P1() {
7250
7250
  if (Go) return aa;
7251
7251
  Go = 1;
7252
- let e = ds(), r = ai(), t = si(), n = oi(), u = V0(), i = eu(), a = ps();
7252
+ let e = ds(), r = ai(), t = si(), n = oi(), u = W0(), i = eu(), a = ps();
7253
7253
  function s(d, c) {
7254
7254
  if (Array.isArray(d)) return d.map((o) => s(o));
7255
7255
  let { inputs: l, ...p } = d;
@@ -7487,8 +7487,8 @@ function B1() {
7487
7487
  case g:
7488
7488
  case f:
7489
7489
  case o: {
7490
- let V = String.fromCharCode(_);
7491
- J = [V, V, Y];
7490
+ let W = String.fromCharCode(_);
7491
+ J = [W, W, Y];
7492
7492
  break;
7493
7493
  }
7494
7494
  case p: {
@@ -8484,11 +8484,11 @@ function q1() {
8484
8484
  typeof b == "number" && (b = b.toString());
8485
8485
  let v = "", D = "";
8486
8486
  function y(q, k) {
8487
- const V = this;
8487
+ const W = this;
8488
8488
  this.tag = q, this.attribs = k || {}, this.tagPosition = v.length, this.text = "", this.mediaChildren = [], this.updateParentNodeText = function() {
8489
8489
  if (I.length) {
8490
8490
  const me = I[I.length - 1];
8491
- me.text += V.text;
8491
+ me.text += W.text;
8492
8492
  }
8493
8493
  }, this.updateParentNodeMediaChildren = function() {
8494
8494
  I.length && a.includes(this.tag) && I[I.length - 1].mediaChildren.push(this.tag);
@@ -8517,25 +8517,25 @@ and ensure you are accounting for this risk.
8517
8517
  let C, F;
8518
8518
  g.allowedAttributes && (C = {}, F = {}, d(g.allowedAttributes, function(q, k) {
8519
8519
  C[k] = [];
8520
- const V = [];
8520
+ const W = [];
8521
8521
  q.forEach(function(me) {
8522
- typeof me == "string" && me.indexOf("*") >= 0 ? V.push(r(me).replace(/\\\*/g, ".*")) : C[k].push(me);
8523
- }), V.length && (F[k] = new RegExp("^(" + V.join("|") + ")$"));
8522
+ typeof me == "string" && me.indexOf("*") >= 0 ? W.push(r(me).replace(/\\\*/g, ".*")) : C[k].push(me);
8523
+ }), W.length && (F[k] = new RegExp("^(" + W.join("|") + ")$"));
8524
8524
  }));
8525
8525
  const x = {}, S = {}, _ = {};
8526
8526
  d(g.allowedClasses, function(q, k) {
8527
8527
  if (C && (c(C, k) || (C[k] = []), C[k].push("class")), x[k] = q, Array.isArray(q)) {
8528
- const V = [];
8528
+ const W = [];
8529
8529
  x[k] = [], _[k] = [], q.forEach(function(me) {
8530
- typeof me == "string" && me.indexOf("*") >= 0 ? V.push(r(me).replace(/\\\*/g, ".*")) : me instanceof RegExp ? _[k].push(me) : x[k].push(me);
8531
- }), V.length && (S[k] = new RegExp("^(" + V.join("|") + ")$"));
8530
+ typeof me == "string" && me.indexOf("*") >= 0 ? W.push(r(me).replace(/\\\*/g, ".*")) : me instanceof RegExp ? _[k].push(me) : x[k].push(me);
8531
+ }), W.length && (S[k] = new RegExp("^(" + W.join("|") + ")$"));
8532
8532
  }
8533
8533
  });
8534
8534
  const P = {};
8535
8535
  let B;
8536
8536
  d(g.transformTags, function(q, k) {
8537
- let V;
8538
- typeof q == "function" ? V = q : typeof q == "string" && (V = m.simpleTransform(q)), k === "*" ? B = V : P[k] = V;
8537
+ let W;
8538
+ typeof q == "function" ? W = q : typeof q == "string" && (W = m.simpleTransform(q)), k === "*" ? B = W : P[k] = W;
8539
8539
  });
8540
8540
  let N, I, J, re, ie, L, Z = !1;
8541
8541
  Y();
@@ -8545,28 +8545,28 @@ and ensure you are accounting for this risk.
8545
8545
  L++;
8546
8546
  return;
8547
8547
  }
8548
- const V = new y(q, k);
8549
- I.push(V);
8548
+ const W = new y(q, k);
8549
+ I.push(W);
8550
8550
  let me = !1;
8551
- const Je = !!V.text;
8551
+ const Je = !!W.text;
8552
8552
  let Ke;
8553
- if (c(P, q) && (Ke = P[q](q, k), V.attribs = k = Ke.attribs, Ke.text !== void 0 && (V.innerText = Ke.text), q !== Ke.tagName && (V.name = q = Ke.tagName, re[N] = Ke.tagName)), B && (Ke = B(q, k), V.attribs = k = Ke.attribs, q !== Ke.tagName && (V.name = q = Ke.tagName, re[N] = Ke.tagName)), (!E(q) || g.disallowedTagsMode === "recursiveEscape" && !p(J) || g.nestingLimit != null && N >= g.nestingLimit) && (me = !0, J[N] = !0, (g.disallowedTagsMode === "discard" || g.disallowedTagsMode === "completelyDiscard") && A.indexOf(q) !== -1 && (ie = !0, L = 1), J[N] = !0), N++, me) {
8553
+ if (c(P, q) && (Ke = P[q](q, k), W.attribs = k = Ke.attribs, Ke.text !== void 0 && (W.innerText = Ke.text), q !== Ke.tagName && (W.name = q = Ke.tagName, re[N] = Ke.tagName)), B && (Ke = B(q, k), W.attribs = k = Ke.attribs, q !== Ke.tagName && (W.name = q = Ke.tagName, re[N] = Ke.tagName)), (!E(q) || g.disallowedTagsMode === "recursiveEscape" && !p(J) || g.nestingLimit != null && N >= g.nestingLimit) && (me = !0, J[N] = !0, (g.disallowedTagsMode === "discard" || g.disallowedTagsMode === "completelyDiscard") && A.indexOf(q) !== -1 && (ie = !0, L = 1), J[N] = !0), N++, me) {
8554
8554
  if (g.disallowedTagsMode === "discard" || g.disallowedTagsMode === "completelyDiscard") {
8555
- if (V.innerText && !Je) {
8556
- const Me = se(V.innerText);
8557
- g.textFilter ? v += g.textFilter(Me, q) : v += se(V.innerText), Z = !0;
8555
+ if (W.innerText && !Je) {
8556
+ const Me = se(W.innerText);
8557
+ g.textFilter ? v += g.textFilter(Me, q) : v += se(W.innerText), Z = !0;
8558
8558
  }
8559
8559
  return;
8560
8560
  }
8561
8561
  D = v, v = "";
8562
8562
  }
8563
- v += "<" + q, q === "script" && (g.allowedScriptHostnames || g.allowedScriptDomains) && (V.innerText = ""), (!C || c(C, q) || C["*"]) && d(k, function(Me, Te) {
8563
+ v += "<" + q, q === "script" && (g.allowedScriptHostnames || g.allowedScriptDomains) && (W.innerText = ""), (!C || c(C, q) || C["*"]) && d(k, function(Me, Te) {
8564
8564
  if (!h.test(Te)) {
8565
- delete V.attribs[Te];
8565
+ delete W.attribs[Te];
8566
8566
  return;
8567
8567
  }
8568
8568
  if (Me === "" && !g.allowedEmptyAttributes.includes(Te) && (g.nonBooleanAttributes.includes(Te) || g.nonBooleanAttributes.includes("*"))) {
8569
- delete V.attribs[Te];
8569
+ delete W.attribs[Te];
8570
8570
  return;
8571
8571
  }
8572
8572
  let ir = !1;
@@ -8587,7 +8587,7 @@ and ensure you are accounting for this risk.
8587
8587
  }
8588
8588
  if (ir) {
8589
8589
  if (g.allowedSchemesAppliedToAttributes.indexOf(Te) !== -1 && le(q, Me)) {
8590
- delete V.attribs[Te];
8590
+ delete W.attribs[Te];
8591
8591
  return;
8592
8592
  }
8593
8593
  if (q === "script" && Te === "src") {
@@ -8606,7 +8606,7 @@ and ensure you are accounting for this risk.
8606
8606
  Fe = !1;
8607
8607
  }
8608
8608
  if (!Fe) {
8609
- delete V.attribs[Te];
8609
+ delete W.attribs[Te];
8610
8610
  return;
8611
8611
  }
8612
8612
  }
@@ -8628,7 +8628,7 @@ and ensure you are accounting for this risk.
8628
8628
  Fe = !1;
8629
8629
  }
8630
8630
  if (!Fe) {
8631
- delete V.attribs[Te];
8631
+ delete W.attribs[Te];
8632
8632
  return;
8633
8633
  }
8634
8634
  }
@@ -8642,13 +8642,13 @@ and ensure you are accounting for this risk.
8642
8642
  }), Fe.length)
8643
8643
  Me = o(l(Fe, function(_e) {
8644
8644
  return !_e.evil;
8645
- })), V.attribs[Te] = Me;
8645
+ })), W.attribs[Te] = Me;
8646
8646
  else {
8647
- delete V.attribs[Te];
8647
+ delete W.attribs[Te];
8648
8648
  return;
8649
8649
  }
8650
8650
  } catch {
8651
- delete V.attribs[Te];
8651
+ delete W.attribs[Te];
8652
8652
  return;
8653
8653
  }
8654
8654
  if (Te === "class") {
@@ -8659,7 +8659,7 @@ and ensure you are accounting for this risk.
8659
8659
  return U;
8660
8660
  });
8661
8661
  if (Fe && _e ? Me = ve(Me, n(Fe, _e), z) : Me = ve(Me, Fe || _e, z), !Me.length) {
8662
- delete V.attribs[Te];
8662
+ delete W.attribs[Te];
8663
8663
  return;
8664
8664
  }
8665
8665
  }
@@ -8668,11 +8668,11 @@ and ensure you are accounting for this risk.
8668
8668
  try {
8669
8669
  const Fe = i(q + " {" + Me + "}", { map: !1 }), _e = oe(Fe, g.allowedStyles);
8670
8670
  if (Me = be(_e), Me.length === 0) {
8671
- delete V.attribs[Te];
8671
+ delete W.attribs[Te];
8672
8672
  return;
8673
8673
  }
8674
8674
  } catch {
8675
- typeof window < "u" && console.warn('Failed to parse "' + q + " {" + Me + `}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`), delete V.attribs[Te];
8675
+ typeof window < "u" && console.warn('Failed to parse "' + q + " {" + Me + `}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`), delete W.attribs[Te];
8676
8676
  return;
8677
8677
  }
8678
8678
  else if (g.allowedStyles)
@@ -8680,21 +8680,21 @@ and ensure you are accounting for this risk.
8680
8680
  }
8681
8681
  v += " " + Te, Me && Me.length ? v += '="' + se(Me, !0) + '"' : g.allowedEmptyAttributes.includes(Te) && (v += '=""');
8682
8682
  } else
8683
- delete V.attribs[Te];
8684
- }), g.selfClosing.indexOf(q) !== -1 ? v += " />" : (v += ">", V.innerText && !Je && !g.textFilter && (v += se(V.innerText), Z = !0)), me && (v = D + se(v), D = "");
8683
+ delete W.attribs[Te];
8684
+ }), g.selfClosing.indexOf(q) !== -1 ? v += " />" : (v += ">", W.innerText && !Je && !g.textFilter && (v += se(W.innerText), Z = !0)), me && (v = D + se(v), D = "");
8685
8685
  },
8686
8686
  ontext: function(q) {
8687
8687
  if (ie)
8688
8688
  return;
8689
8689
  const k = I[I.length - 1];
8690
- let V;
8691
- if (k && (V = k.tag, q = k.innerText !== void 0 ? k.innerText : q), g.disallowedTagsMode === "completelyDiscard" && !E(V))
8690
+ let W;
8691
+ if (k && (W = k.tag, q = k.innerText !== void 0 ? k.innerText : q), g.disallowedTagsMode === "completelyDiscard" && !E(W))
8692
8692
  q = "";
8693
- else if ((g.disallowedTagsMode === "discard" || g.disallowedTagsMode === "completelyDiscard") && (V === "script" || V === "style"))
8693
+ else if ((g.disallowedTagsMode === "discard" || g.disallowedTagsMode === "completelyDiscard") && (W === "script" || W === "style"))
8694
8694
  v += q;
8695
8695
  else {
8696
8696
  const me = se(q, !1);
8697
- g.textFilter && !Z ? v += g.textFilter(me, V) : Z || (v += me);
8697
+ g.textFilter && !Z ? v += g.textFilter(me, W) : Z || (v += me);
8698
8698
  }
8699
8699
  if (I.length) {
8700
8700
  const me = I[I.length - 1];
@@ -8707,27 +8707,27 @@ and ensure you are accounting for this risk.
8707
8707
  ie = !1;
8708
8708
  else
8709
8709
  return;
8710
- const V = I.pop();
8711
- if (!V)
8710
+ const W = I.pop();
8711
+ if (!W)
8712
8712
  return;
8713
- if (V.tag !== q) {
8714
- I.push(V);
8713
+ if (W.tag !== q) {
8714
+ I.push(W);
8715
8715
  return;
8716
8716
  }
8717
8717
  ie = g.enforceHtmlBoundary ? q === "html" : !1, N--;
8718
8718
  const me = J[N];
8719
8719
  if (me) {
8720
8720
  if (delete J[N], g.disallowedTagsMode === "discard" || g.disallowedTagsMode === "completelyDiscard") {
8721
- V.updateParentNodeText();
8721
+ W.updateParentNodeText();
8722
8722
  return;
8723
8723
  }
8724
8724
  D = v, v = "";
8725
8725
  }
8726
- if (re[N] && (q = re[N], delete re[N]), g.exclusiveFilter && g.exclusiveFilter(V)) {
8727
- v = v.substr(0, V.tagPosition);
8726
+ if (re[N] && (q = re[N], delete re[N]), g.exclusiveFilter && g.exclusiveFilter(W)) {
8727
+ v = v.substr(0, W.tagPosition);
8728
8728
  return;
8729
8729
  }
8730
- if (V.updateParentNodeMediaChildren(), V.updateParentNodeText(), // Already output />
8730
+ if (W.updateParentNodeMediaChildren(), W.updateParentNodeText(), // Already output />
8731
8731
  g.selfClosing.indexOf(q) !== -1 || // Escaped tag, closing tag is implied
8732
8732
  k && !E(q) && ["escape", "recursiveEscape"].indexOf(g.disallowedTagsMode) >= 0) {
8733
8733
  me && (v = D, D = "");
@@ -8753,10 +8753,10 @@ and ensure you are accounting for this risk.
8753
8753
  break;
8754
8754
  k = k.substring(0, Je) + k.substring(Ke + 3);
8755
8755
  }
8756
- const V = k.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);
8757
- if (!V)
8756
+ const W = k.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);
8757
+ if (!W)
8758
8758
  return k.match(/^[/\\]{2}/) ? !g.allowProtocolRelative : !1;
8759
- const me = V[1].toLowerCase();
8759
+ const me = W[1].toLowerCase();
8760
8760
  return c(g.allowedSchemesByTag, q) ? g.allowedSchemesByTag[q].indexOf(me) === -1 : !g.allowedSchemes || g.allowedSchemes.indexOf(me) === -1;
8761
8761
  }
8762
8762
  function fe(q) {
@@ -8765,39 +8765,39 @@ and ensure you are accounting for this risk.
8765
8765
  let k = "relative://relative-site";
8766
8766
  for (let Je = 0; Je < 100; Je++)
8767
8767
  k += `/${Je}`;
8768
- const V = new URL(q, k);
8768
+ const W = new URL(q, k);
8769
8769
  return {
8770
- isRelativeUrl: V && V.hostname === "relative-site" && V.protocol === "relative:",
8771
- url: V
8770
+ isRelativeUrl: W && W.hostname === "relative-site" && W.protocol === "relative:",
8771
+ url: W
8772
8772
  };
8773
8773
  }
8774
8774
  function oe(q, k) {
8775
8775
  if (!k)
8776
8776
  return q;
8777
- const V = q.nodes[0];
8777
+ const W = q.nodes[0];
8778
8778
  let me;
8779
- return k[V.selector] && k["*"] ? me = n(
8780
- k[V.selector],
8779
+ return k[W.selector] && k["*"] ? me = n(
8780
+ k[W.selector],
8781
8781
  k["*"]
8782
- ) : me = k[V.selector] || k["*"], me && (q.nodes[0].nodes = V.nodes.reduce(ye(me), [])), q;
8782
+ ) : me = k[W.selector] || k["*"], me && (q.nodes[0].nodes = W.nodes.reduce(ye(me), [])), q;
8783
8783
  }
8784
8784
  function be(q) {
8785
- return q.nodes[0].nodes.reduce(function(k, V) {
8785
+ return q.nodes[0].nodes.reduce(function(k, W) {
8786
8786
  return k.push(
8787
- `${V.prop}:${V.value}${V.important ? " !important" : ""}`
8787
+ `${W.prop}:${W.value}${W.important ? " !important" : ""}`
8788
8788
  ), k;
8789
8789
  }, []).join(";");
8790
8790
  }
8791
8791
  function ye(q) {
8792
- return function(k, V) {
8793
- return c(q, V.prop) && q[V.prop].some(function(Je) {
8794
- return Je.test(V.value);
8795
- }) && k.push(V), k;
8792
+ return function(k, W) {
8793
+ return c(q, W.prop) && q[W.prop].some(function(Je) {
8794
+ return Je.test(W.value);
8795
+ }) && k.push(W), k;
8796
8796
  };
8797
8797
  }
8798
- function ve(q, k, V) {
8798
+ function ve(q, k, W) {
8799
8799
  return k ? (q = q.split(/\s+/), q.filter(function(me) {
8800
- return k.indexOf(me) !== -1 || V.some(function(Je) {
8800
+ return k.indexOf(me) !== -1 || W.some(function(Je) {
8801
8801
  return Je.test(me);
8802
8802
  });
8803
8803
  }).join(" ")) : q;
@@ -9197,7 +9197,11 @@ function z1({
9197
9197
  name: e,
9198
9198
  rules: {
9199
9199
  ...r,
9200
- validate: (d) => Number.isNaN(d == null ? void 0 : d.getTime()) ? "Please enter a valid date." : d && n && cc(d, n) ? "Selected date is not allowed." : !0
9200
+ validate: {
9201
+ base: (d) => Number.isNaN(d == null ? void 0 : d.getTime()) ? "Please enter a valid date." : d && n && cc(d, n) ? "Selected date is not allowed." : !0,
9202
+ ...r.validate
9203
+ // allow overriding of base validation
9204
+ }
9201
9205
  }
9202
9206
  });
9203
9207
  if (i.readonly) {
@@ -9252,7 +9256,7 @@ function H1({
9252
9256
  text: c,
9253
9257
  sx: t,
9254
9258
  error: d == null ? void 0 : d.message,
9255
- startAdornment: /* @__PURE__ */ te.jsx(ks, { disabled: !0, checked: s.value })
9259
+ startAdornment: /* @__PURE__ */ te.jsx(ks, { disabled: !0, checked: s.value, sx: { "&&.Mui-disabled": { color: "text.primary" } } })
9256
9260
  }
9257
9261
  ) : /* @__PURE__ */ te.jsxs(U1, { label: r, sx: t, error: d == null ? void 0 : d.message, childId: e, children: [
9258
9262
  /* @__PURE__ */ te.jsx(
@@ -9269,13 +9273,14 @@ function H1({
9269
9273
  "aria-invalid": !!d
9270
9274
  },
9271
9275
  color: d ? "error" : "primary",
9272
- "data-testid": "form-field-checkbox"
9276
+ "data-testid": "form-field-checkbox",
9277
+ sx: { "&&.Mui-disabled": { color: "text.primary" } }
9273
9278
  }
9274
9279
  ),
9275
9280
  !n && /* @__PURE__ */ te.jsx($n, { children: c })
9276
9281
  ] });
9277
9282
  }
9278
- function W1({
9283
+ function V1({
9279
9284
  name: e,
9280
9285
  label: r,
9281
9286
  rules: t = {},
@@ -9288,10 +9293,7 @@ function W1({
9288
9293
  const {
9289
9294
  field: d,
9290
9295
  fieldState: { error: c }
9291
- } = Zn({
9292
- name: e,
9293
- rules: t
9294
- }), l = (p) => {
9296
+ } = Zn({ name: e, rules: t }), l = (p) => {
9295
9297
  let o = p.target.value;
9296
9298
  a && (o = a(o)), d.onChange(o);
9297
9299
  };
@@ -9350,17 +9352,17 @@ var J0 = {
9350
9352
  // null = randomly seed
9351
9353
  randomSeed: null
9352
9354
  };
9353
- function V1(e, r) {
9354
- if (Wu(e, r))
9355
+ function W1(e, r) {
9356
+ if (Vu(e, r))
9355
9357
  return e[r];
9356
9358
  throw typeof e[r] == "function" && G1(e, r) ? new Error('Cannot access method "' + r + '" as a property') : new Error('No access to property "' + r + '"');
9357
9359
  }
9358
9360
  function Y1(e, r, t) {
9359
- if (Wu(e, r))
9361
+ if (Vu(e, r))
9360
9362
  return e[r] = t, t;
9361
9363
  throw new Error('No access to property "' + r + '"');
9362
9364
  }
9363
- function Wu(e, r) {
9365
+ function Vu(e, r) {
9364
9366
  return !X1(e) && !Array.isArray(e) ? !1 : Un(Q1, r) ? !0 : !(r in Object.prototype || r in Function.prototype);
9365
9367
  }
9366
9368
  function G1(e, r) {
@@ -9385,13 +9387,13 @@ class J1 {
9385
9387
  return Object.keys(this.wrappedObject).filter((r) => this.has(r)).values();
9386
9388
  }
9387
9389
  get(r) {
9388
- return V1(this.wrappedObject, r);
9390
+ return W1(this.wrappedObject, r);
9389
9391
  }
9390
9392
  set(r, t) {
9391
9393
  return Y1(this.wrappedObject, r, t), this;
9392
9394
  }
9393
9395
  has(r) {
9394
- return Wu(this.wrappedObject, r) && r in this.wrappedObject;
9396
+ return Vu(this.wrappedObject, r) && r in this.wrappedObject;
9395
9397
  }
9396
9398
  entries() {
9397
9399
  return K1(this.keys(), (r) => [r, this.get(r)]);
@@ -9401,7 +9403,7 @@ class J1 {
9401
9403
  r(this.get(t), t, this);
9402
9404
  }
9403
9405
  delete(r) {
9404
- Wu(this.wrappedObject, r) && delete this.wrappedObject[r];
9406
+ Vu(this.wrappedObject, r) && delete this.wrappedObject[r];
9405
9407
  }
9406
9408
  clear() {
9407
9409
  for (var r of this.keys())
@@ -9447,7 +9449,7 @@ var mt = Array.isArray;
9447
9449
  function Gt(e) {
9448
9450
  return e && e.constructor.prototype.isMatrix === !0 || !1;
9449
9451
  }
9450
- function Vu(e) {
9452
+ function Wu(e) {
9451
9453
  return Array.isArray(e) || Gt(e);
9452
9454
  }
9453
9455
  function tp(e) {
@@ -10318,7 +10320,7 @@ function rl() {
10318
10320
  function k(T, M) {
10319
10321
  return Array.prototype.concat.apply([], T.map(M));
10320
10322
  }
10321
- function V() {
10323
+ function W() {
10322
10324
  const T = be(arguments).map((R) => b(D(R))), M = ye(arguments);
10323
10325
  if (typeof M != "function")
10324
10326
  throw new TypeError("Callback function expected as last argument");
@@ -10398,7 +10400,7 @@ function rl() {
10398
10400
  M || (z = Te(z, K)), Fe(U, Q);
10399
10401
  }
10400
10402
  return fe(z || "", U);
10401
- }, a.create = rl, a.createCount = _e.createCount, a.onMismatch = oe, a.throwMismatchError = oe, a.createError = _, a.clear = c, a.clearConversions = l, a.addTypes = d, a._findType = s, a.referTo = V, a.referToSelf = Je, a.convert = f, a.findSignature = h, a.find = m, a.isTypedFunction = o, a.warnAgainstDeprecatedThis = !0, a.addType = function(T, M) {
10403
+ }, a.create = rl, a.createCount = _e.createCount, a.onMismatch = oe, a.throwMismatchError = oe, a.createError = _, a.clear = c, a.clearConversions = l, a.addTypes = d, a._findType = s, a.referTo = W, a.referToSelf = Je, a.convert = f, a.findSignature = h, a.find = m, a.isTypedFunction = o, a.warnAgainstDeprecatedThis = !0, a.addType = function(T, M) {
10402
10404
  let R = "any";
10403
10405
  M !== !1 && n.has("Object") && (R = "Object"), a.addTypes([T], R);
10404
10406
  };
@@ -10995,7 +10997,7 @@ var al = function() {
10995
10997
  }
10996
10998
  }]), a.onMismatch = (s, d, c) => {
10997
10999
  var l = a.createError(s, d, c);
10998
- if (["wrongType", "mismatch"].includes(l.data.category) && d.length === 1 && Vu(d[0]) && // check if the function can be unary:
11000
+ if (["wrongType", "mismatch"].includes(l.data.category) && d.length === 1 && Wu(d[0]) && // check if the function can be unary:
10999
11001
  c.some((o) => !o.params.includes(","))) {
11000
11002
  var p = new TypeError("Function '".concat(s, "' doesn't apply to matrices. To call it ") + "elementwise on a matrix 'M', try 'map(M, ".concat(s, ")'."));
11001
11003
  throw p.data = l.data, p;
@@ -11003,7 +11005,7 @@ var al = function() {
11003
11005
  throw l;
11004
11006
  }, a.onMismatch = (s, d, c) => {
11005
11007
  var l = a.createError(s, d, c);
11006
- if (["wrongType", "mismatch"].includes(l.data.category) && d.length === 1 && Vu(d[0]) && // check if the function can be unary:
11008
+ if (["wrongType", "mismatch"].includes(l.data.category) && d.length === 1 && Wu(d[0]) && // check if the function can be unary:
11007
11009
  c.some((o) => !o.params.includes(","))) {
11008
11010
  var p = new TypeError("Function '".concat(s, "' doesn't apply to matrices. To call it ") + "elementwise on a matrix 'M', try 'map(M, ".concat(s, ")'."));
11009
11011
  throw p.data = l.data, p;
@@ -11088,21 +11090,21 @@ var dn = 9e15, Lr = 1e9, La = "0123456789abcdef", Gu = "2.3025850929940456840179
11088
11090
  // Whether to use cryptographically-secure random number generation, if available.
11089
11091
  crypto: !1
11090
11092
  // true/false
11091
- }, sl, Ar, De = !0, li = "[DecimalError] ", Ir = li + "Invalid argument: ", ol = li + "Precision limit exceeded", cl = li + "crypto unavailable", ll = "[object Decimal]", _t = Math.floor, gt = Math.pow, Hp = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, Wp = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, Vp = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, fl = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, nr = 1e7, ge = 7, Yp = 9007199254740991, Gp = Gu.length - 1, $a = Xu.length - 1, W = { toStringTag: ll };
11092
- W.absoluteValue = W.abs = function() {
11093
+ }, sl, Ar, De = !0, li = "[DecimalError] ", Ir = li + "Invalid argument: ", ol = li + "Precision limit exceeded", cl = li + "crypto unavailable", ll = "[object Decimal]", _t = Math.floor, gt = Math.pow, Hp = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, Vp = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, Wp = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, fl = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, nr = 1e7, ge = 7, Yp = 9007199254740991, Gp = Gu.length - 1, $a = Xu.length - 1, V = { toStringTag: ll };
11094
+ V.absoluteValue = V.abs = function() {
11093
11095
  var e = new this.constructor(this);
11094
11096
  return e.s < 0 && (e.s = 1), he(e);
11095
11097
  };
11096
- W.ceil = function() {
11098
+ V.ceil = function() {
11097
11099
  return he(new this.constructor(this), this.e + 1, 2);
11098
11100
  };
11099
- W.clampedTo = W.clamp = function(e, r) {
11101
+ V.clampedTo = V.clamp = function(e, r) {
11100
11102
  var t, n = this, u = n.constructor;
11101
11103
  if (e = new u(e), r = new u(r), !e.s || !r.s) return new u(NaN);
11102
11104
  if (e.gt(r)) throw Error(Ir + r);
11103
11105
  return t = n.cmp(e), t < 0 ? e : n.cmp(r) > 0 ? r : new u(n);
11104
11106
  };
11105
- W.comparedTo = W.cmp = function(e) {
11107
+ V.comparedTo = V.cmp = function(e) {
11106
11108
  var r, t, n, u, i = this, a = i.d, s = (e = new i.constructor(e)).d, d = i.s, c = e.s;
11107
11109
  if (!a || !s)
11108
11110
  return !d || !c ? NaN : d !== c ? d : a === s ? 0 : !a ^ d < 0 ? 1 : -1;
@@ -11113,11 +11115,11 @@ W.comparedTo = W.cmp = function(e) {
11113
11115
  if (a[r] !== s[r]) return a[r] > s[r] ^ d < 0 ? 1 : -1;
11114
11116
  return n === u ? 0 : n > u ^ d < 0 ? 1 : -1;
11115
11117
  };
11116
- W.cosine = W.cos = function() {
11118
+ V.cosine = V.cos = function() {
11117
11119
  var e, r, t = this, n = t.constructor;
11118
11120
  return t.d ? t.d[0] ? (e = n.precision, r = n.rounding, n.precision = e + Math.max(t.e, t.sd()) + ge, n.rounding = 1, t = Xp(n, gl(n, t)), n.precision = e, n.rounding = r, he(Ar == 2 || Ar == 3 ? t.neg() : t, e, r, !0)) : new n(1) : new n(NaN);
11119
11121
  };
11120
- W.cubeRoot = W.cbrt = function() {
11122
+ V.cubeRoot = V.cbrt = function() {
11121
11123
  var e, r, t, n, u, i, a, s, d, c, l = this, p = l.constructor;
11122
11124
  if (!l.isFinite() || l.isZero()) return new p(l);
11123
11125
  for (De = !1, i = l.s * gt(l.s * l, 1 / 3), !i || Math.abs(i) == 1 / 0 ? (t = Ct(l.d), e = l.e, (i = (e - t.length + 1) % 3) && (t += i == 1 || i == -2 ? "0" : "00"), i = gt(t, 1 / 3), e = _t((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2)), i == 1 / 0 ? t = "5e" + e : (t = i.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + e), n = new p(t), n.s = l.s) : n = new p(i.toString()), a = (e = p.precision) + 3; ; )
@@ -11134,7 +11136,7 @@ W.cubeRoot = W.cbrt = function() {
11134
11136
  }
11135
11137
  return De = !0, he(n, e, p.rounding, r);
11136
11138
  };
11137
- W.decimalPlaces = W.dp = function() {
11139
+ V.decimalPlaces = V.dp = function() {
11138
11140
  var e, r = this.d, t = NaN;
11139
11141
  if (r) {
11140
11142
  if (e = r.length - 1, t = (e - _t(this.e / ge)) * ge, e = r[e], e) for (; e % 10 == 0; e /= 10) t--;
@@ -11142,27 +11144,27 @@ W.decimalPlaces = W.dp = function() {
11142
11144
  }
11143
11145
  return t;
11144
11146
  };
11145
- W.dividedBy = W.div = function(e) {
11147
+ V.dividedBy = V.div = function(e) {
11146
11148
  return Xe(this, new this.constructor(e));
11147
11149
  };
11148
- W.dividedToIntegerBy = W.divToInt = function(e) {
11150
+ V.dividedToIntegerBy = V.divToInt = function(e) {
11149
11151
  var r = this, t = r.constructor;
11150
11152
  return he(Xe(r, new t(e), 0, 1, 1), t.precision, t.rounding);
11151
11153
  };
11152
- W.equals = W.eq = function(e) {
11154
+ V.equals = V.eq = function(e) {
11153
11155
  return this.cmp(e) === 0;
11154
11156
  };
11155
- W.floor = function() {
11157
+ V.floor = function() {
11156
11158
  return he(new this.constructor(this), this.e + 1, 3);
11157
11159
  };
11158
- W.greaterThan = W.gt = function(e) {
11160
+ V.greaterThan = V.gt = function(e) {
11159
11161
  return this.cmp(e) > 0;
11160
11162
  };
11161
- W.greaterThanOrEqualTo = W.gte = function(e) {
11163
+ V.greaterThanOrEqualTo = V.gte = function(e) {
11162
11164
  var r = this.cmp(e);
11163
11165
  return r == 1 || r === 0;
11164
11166
  };
11165
- W.hyperbolicCosine = W.cosh = function() {
11167
+ V.hyperbolicCosine = V.cosh = function() {
11166
11168
  var e, r, t, n, u, i = this, a = i.constructor, s = new a(1);
11167
11169
  if (!i.isFinite()) return new a(i.s ? 1 / 0 : NaN);
11168
11170
  if (i.isZero()) return s;
@@ -11171,7 +11173,7 @@ W.hyperbolicCosine = W.cosh = function() {
11171
11173
  d = i.times(i), i = s.minus(d.times(l.minus(d.times(l))));
11172
11174
  return he(i, a.precision = t, a.rounding = n, !0);
11173
11175
  };
11174
- W.hyperbolicSine = W.sinh = function() {
11176
+ V.hyperbolicSine = V.sinh = function() {
11175
11177
  var e, r, t, n, u = this, i = u.constructor;
11176
11178
  if (!u.isFinite() || u.isZero()) return new i(u);
11177
11179
  if (r = i.precision, t = i.rounding, i.precision = r + Math.max(u.e, u.sd()) + 4, i.rounding = 1, n = u.d.length, n < 3)
@@ -11183,31 +11185,31 @@ W.hyperbolicSine = W.sinh = function() {
11183
11185
  }
11184
11186
  return i.precision = r, i.rounding = t, he(u, r, t, !0);
11185
11187
  };
11186
- W.hyperbolicTangent = W.tanh = function() {
11188
+ V.hyperbolicTangent = V.tanh = function() {
11187
11189
  var e, r, t = this, n = t.constructor;
11188
11190
  return t.isFinite() ? t.isZero() ? new n(t) : (e = n.precision, r = n.rounding, n.precision = e + 7, n.rounding = 1, Xe(t.sinh(), t.cosh(), n.precision = e, n.rounding = r)) : new n(t.s);
11189
11191
  };
11190
- W.inverseCosine = W.acos = function() {
11192
+ V.inverseCosine = V.acos = function() {
11191
11193
  var e = this, r = e.constructor, t = e.abs().cmp(1), n = r.precision, u = r.rounding;
11192
11194
  return t !== -1 ? t === 0 ? e.isNeg() ? hr(r, n, u) : new r(0) : new r(NaN) : e.isZero() ? hr(r, n + 4, u).times(0.5) : (r.precision = n + 6, r.rounding = 1, e = new r(1).minus(e).div(e.plus(1)).sqrt().atan(), r.precision = n, r.rounding = u, e.times(2));
11193
11195
  };
11194
- W.inverseHyperbolicCosine = W.acosh = function() {
11196
+ V.inverseHyperbolicCosine = V.acosh = function() {
11195
11197
  var e, r, t = this, n = t.constructor;
11196
11198
  return t.lte(1) ? new n(t.eq(1) ? 0 : NaN) : t.isFinite() ? (e = n.precision, r = n.rounding, n.precision = e + Math.max(Math.abs(t.e), t.sd()) + 4, n.rounding = 1, De = !1, t = t.times(t).minus(1).sqrt().plus(t), De = !0, n.precision = e, n.rounding = r, t.ln()) : new n(t);
11197
11199
  };
11198
- W.inverseHyperbolicSine = W.asinh = function() {
11200
+ V.inverseHyperbolicSine = V.asinh = function() {
11199
11201
  var e, r, t = this, n = t.constructor;
11200
11202
  return !t.isFinite() || t.isZero() ? new n(t) : (e = n.precision, r = n.rounding, n.precision = e + 2 * Math.max(Math.abs(t.e), t.sd()) + 6, n.rounding = 1, De = !1, t = t.times(t).plus(1).sqrt().plus(t), De = !0, n.precision = e, n.rounding = r, t.ln());
11201
11203
  };
11202
- W.inverseHyperbolicTangent = W.atanh = function() {
11204
+ V.inverseHyperbolicTangent = V.atanh = function() {
11203
11205
  var e, r, t, n, u = this, i = u.constructor;
11204
11206
  return u.isFinite() ? u.e >= 0 ? new i(u.abs().eq(1) ? u.s / 0 : u.isZero() ? u : NaN) : (e = i.precision, r = i.rounding, n = u.sd(), Math.max(n, e) < 2 * -u.e - 1 ? he(new i(u), e, r, !0) : (i.precision = t = n - u.e, u = Xe(u.plus(1), new i(1).minus(u), t + e, 1), i.precision = e + 4, i.rounding = 1, u = u.ln(), i.precision = e, i.rounding = r, u.times(0.5))) : new i(NaN);
11205
11207
  };
11206
- W.inverseSine = W.asin = function() {
11208
+ V.inverseSine = V.asin = function() {
11207
11209
  var e, r, t, n, u = this, i = u.constructor;
11208
11210
  return u.isZero() ? new i(u) : (r = u.abs().cmp(1), t = i.precision, n = i.rounding, r !== -1 ? r === 0 ? (e = hr(i, t + 4, n).times(0.5), e.s = u.s, e) : new i(NaN) : (i.precision = t + 6, i.rounding = 1, u = u.div(new i(1).minus(u.times(u)).sqrt().plus(1)).atan(), i.precision = t, i.rounding = n, u.times(2)));
11209
11211
  };
11210
- W.inverseTangent = W.atan = function() {
11212
+ V.inverseTangent = V.atan = function() {
11211
11213
  var e, r, t, n, u, i, a, s, d, c = this, l = c.constructor, p = l.precision, o = l.rounding;
11212
11214
  if (c.isFinite()) {
11213
11215
  if (c.isZero())
@@ -11224,31 +11226,31 @@ W.inverseTangent = W.atan = function() {
11224
11226
  if (u = u.times(d), i = a.minus(u.div(n += 2)), u = u.times(d), a = i.plus(u.div(n += 2)), a.d[r] !== void 0) for (e = r; a.d[e] === i.d[e] && e--; ) ;
11225
11227
  return t && (a = a.times(2 << t - 1)), De = !0, he(a, l.precision = p, l.rounding = o, !0);
11226
11228
  };
11227
- W.isFinite = function() {
11229
+ V.isFinite = function() {
11228
11230
  return !!this.d;
11229
11231
  };
11230
- W.isInteger = W.isInt = function() {
11232
+ V.isInteger = V.isInt = function() {
11231
11233
  return !!this.d && _t(this.e / ge) > this.d.length - 2;
11232
11234
  };
11233
- W.isNaN = function() {
11235
+ V.isNaN = function() {
11234
11236
  return !this.s;
11235
11237
  };
11236
- W.isNegative = W.isNeg = function() {
11238
+ V.isNegative = V.isNeg = function() {
11237
11239
  return this.s < 0;
11238
11240
  };
11239
- W.isPositive = W.isPos = function() {
11241
+ V.isPositive = V.isPos = function() {
11240
11242
  return this.s > 0;
11241
11243
  };
11242
- W.isZero = function() {
11244
+ V.isZero = function() {
11243
11245
  return !!this.d && this.d[0] === 0;
11244
11246
  };
11245
- W.lessThan = W.lt = function(e) {
11247
+ V.lessThan = V.lt = function(e) {
11246
11248
  return this.cmp(e) < 0;
11247
11249
  };
11248
- W.lessThanOrEqualTo = W.lte = function(e) {
11250
+ V.lessThanOrEqualTo = V.lte = function(e) {
11249
11251
  return this.cmp(e) < 1;
11250
11252
  };
11251
- W.logarithm = W.log = function(e) {
11253
+ V.logarithm = V.log = function(e) {
11252
11254
  var r, t, n, u, i, a, s, d, c = this, l = c.constructor, p = l.precision, o = l.rounding, h = 5;
11253
11255
  if (e == null)
11254
11256
  e = new l(10), r = !0;
@@ -11274,7 +11276,7 @@ W.logarithm = W.log = function(e) {
11274
11276
  while (Hn(d.d, u += 10, o));
11275
11277
  return De = !0, he(d, p, o);
11276
11278
  };
11277
- W.minus = W.sub = function(e) {
11279
+ V.minus = V.sub = function(e) {
11278
11280
  var r, t, n, u, i, a, s, d, c, l, p, o, h = this, m = h.constructor;
11279
11281
  if (e = new m(e), !h.d || !e.d)
11280
11282
  return !h.s || !e.s ? e = new m(NaN) : h.d ? e.s = -e.s : e = new m(e.d || h.s !== e.s ? h : NaN), e;
@@ -11309,21 +11311,21 @@ W.minus = W.sub = function(e) {
11309
11311
  for (; c[0] === 0; c.shift()) --t;
11310
11312
  return c[0] ? (e.d = c, e.e = fi(c, t), De ? he(e, s, d) : e) : new m(d === 3 ? -0 : 0);
11311
11313
  };
11312
- W.modulo = W.mod = function(e) {
11314
+ V.modulo = V.mod = function(e) {
11313
11315
  var r, t = this, n = t.constructor;
11314
11316
  return e = new n(e), !t.d || !e.s || e.d && !e.d[0] ? new n(NaN) : !e.d || t.d && !t.d[0] ? he(new n(t), n.precision, n.rounding) : (De = !1, n.modulo == 9 ? (r = Xe(t, e.abs(), 0, 3, 1), r.s *= e.s) : r = Xe(t, e, 0, n.modulo, 1), r = r.times(e), De = !0, t.minus(r));
11315
11317
  };
11316
- W.naturalExponential = W.exp = function() {
11318
+ V.naturalExponential = V.exp = function() {
11317
11319
  return ja(this);
11318
11320
  };
11319
- W.naturalLogarithm = W.ln = function() {
11321
+ V.naturalLogarithm = V.ln = function() {
11320
11322
  return Nr(this);
11321
11323
  };
11322
- W.negated = W.neg = function() {
11324
+ V.negated = V.neg = function() {
11323
11325
  var e = new this.constructor(this);
11324
11326
  return e.s = -e.s, he(e);
11325
11327
  };
11326
- W.plus = W.add = function(e) {
11328
+ V.plus = V.add = function(e) {
11327
11329
  var r, t, n, u, i, a, s, d, c, l, p = this, o = p.constructor;
11328
11330
  if (e = new o(e), !p.d || !e.d)
11329
11331
  return !p.s || !e.s ? e = new o(NaN) : p.d || (e = new o(e.d || p.s === e.s ? p : NaN)), e;
@@ -11340,20 +11342,20 @@ W.plus = W.add = function(e) {
11340
11342
  for (r && (c.unshift(r), ++n), a = c.length; c[--a] == 0; ) c.pop();
11341
11343
  return e.d = c, e.e = fi(c, n), De ? he(e, s, d) : e;
11342
11344
  };
11343
- W.precision = W.sd = function(e) {
11345
+ V.precision = V.sd = function(e) {
11344
11346
  var r, t = this;
11345
11347
  if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(Ir + e);
11346
11348
  return t.d ? (r = dl(t.d), e && t.e + 1 > r && (r = t.e + 1)) : r = NaN, r;
11347
11349
  };
11348
- W.round = function() {
11350
+ V.round = function() {
11349
11351
  var e = this, r = e.constructor;
11350
11352
  return he(new r(e), e.e + 1, r.rounding);
11351
11353
  };
11352
- W.sine = W.sin = function() {
11354
+ V.sine = V.sin = function() {
11353
11355
  var e, r, t = this, n = t.constructor;
11354
11356
  return t.isFinite() ? t.isZero() ? new n(t) : (e = n.precision, r = n.rounding, n.precision = e + Math.max(t.e, t.sd()) + ge, n.rounding = 1, t = Zp(n, gl(n, t)), n.precision = e, n.rounding = r, he(Ar > 2 ? t.neg() : t, e, r, !0)) : new n(NaN);
11355
11357
  };
11356
- W.squareRoot = W.sqrt = function() {
11358
+ V.squareRoot = V.sqrt = function() {
11357
11359
  var e, r, t, n, u, i, a = this, s = a.d, d = a.e, c = a.s, l = a.constructor;
11358
11360
  if (c !== 1 || !s || !s[0])
11359
11361
  return new l(!c || c < 0 && (!s || s[0]) ? NaN : s ? a : 1 / 0);
@@ -11371,11 +11373,11 @@ W.squareRoot = W.sqrt = function() {
11371
11373
  }
11372
11374
  return De = !0, he(n, d, l.rounding, e);
11373
11375
  };
11374
- W.tangent = W.tan = function() {
11376
+ V.tangent = V.tan = function() {
11375
11377
  var e, r, t = this, n = t.constructor;
11376
11378
  return t.isFinite() ? t.isZero() ? new n(t) : (e = n.precision, r = n.rounding, n.precision = e + 10, n.rounding = 1, t = t.sin(), t.s = 1, t = Xe(t, new n(1).minus(t.times(t)).sqrt(), e + 10, 0), n.precision = e, n.rounding = r, he(Ar == 2 || Ar == 4 ? t.neg() : t, e, r, !0)) : new n(NaN);
11377
11379
  };
11378
- W.times = W.mul = function(e) {
11380
+ V.times = V.mul = function(e) {
11379
11381
  var r, t, n, u, i, a, s, d, c, l = this, p = l.constructor, o = l.d, h = (e = new p(e)).d;
11380
11382
  if (e.s *= l.s, !o || !o[0] || !h || !h[0])
11381
11383
  return new p(!e.s || o && !o[0] && !h || h && !h[0] && !o ? NaN : !o || !h ? e.s / 0 : e.s * 0);
@@ -11388,22 +11390,22 @@ W.times = W.mul = function(e) {
11388
11390
  for (; !i[--a]; ) i.pop();
11389
11391
  return r ? ++t : i.shift(), e.d = i, e.e = fi(i, t), De ? he(e, p.precision, p.rounding) : e;
11390
11392
  };
11391
- W.toBinary = function(e, r) {
11393
+ V.toBinary = function(e, r) {
11392
11394
  return vs(this, 2, e, r);
11393
11395
  };
11394
- W.toDecimalPlaces = W.toDP = function(e, r) {
11396
+ V.toDecimalPlaces = V.toDP = function(e, r) {
11395
11397
  var t = this, n = t.constructor;
11396
11398
  return t = new n(t), e === void 0 ? t : (Rt(e, 0, Lr), r === void 0 ? r = n.rounding : Rt(r, 0, 8), he(t, e + t.e + 1, r));
11397
11399
  };
11398
- W.toExponential = function(e, r) {
11400
+ V.toExponential = function(e, r) {
11399
11401
  var t, n = this, u = n.constructor;
11400
11402
  return e === void 0 ? t = mr(n, !0) : (Rt(e, 0, Lr), r === void 0 ? r = u.rounding : Rt(r, 0, 8), n = he(new u(n), e + 1, r), t = mr(n, !0, e + 1)), n.isNeg() && !n.isZero() ? "-" + t : t;
11401
11403
  };
11402
- W.toFixed = function(e, r) {
11404
+ V.toFixed = function(e, r) {
11403
11405
  var t, n, u = this, i = u.constructor;
11404
11406
  return e === void 0 ? t = mr(u) : (Rt(e, 0, Lr), r === void 0 ? r = i.rounding : Rt(r, 0, 8), n = he(new i(u), e + u.e + 1, r), t = mr(n, !1, e + n.e + 1)), u.isNeg() && !u.isZero() ? "-" + t : t;
11405
11407
  };
11406
- W.toFraction = function(e) {
11408
+ V.toFraction = function(e) {
11407
11409
  var r, t, n, u, i, a, s, d, c, l, p, o, h = this, m = h.d, f = h.constructor;
11408
11410
  if (!m) return new f(h);
11409
11411
  if (c = t = new f(1), n = d = new f(0), r = new f(n), i = r.e = dl(m) - h.e - 1, a = i % ge, r.d[0] = gt(10, a < 0 ? ge + a : a), e == null)
@@ -11416,10 +11418,10 @@ W.toFraction = function(e) {
11416
11418
  t = n, n = u, u = c, c = d.plus(p.times(u)), d = u, u = r, r = s.minus(p.times(u)), s = u;
11417
11419
  return u = Xe(e.minus(t), n, 0, 1, 1), d = d.plus(u.times(c)), t = t.plus(u.times(n)), d.s = c.s = h.s, o = Xe(c, n, i, 1).minus(h).abs().cmp(Xe(d, t, i, 1).minus(h).abs()) < 1 ? [c, n] : [d, t], f.precision = l, De = !0, o;
11418
11420
  };
11419
- W.toHexadecimal = W.toHex = function(e, r) {
11421
+ V.toHexadecimal = V.toHex = function(e, r) {
11420
11422
  return vs(this, 16, e, r);
11421
11423
  };
11422
- W.toNearest = function(e, r) {
11424
+ V.toNearest = function(e, r) {
11423
11425
  var t = this, n = t.constructor;
11424
11426
  if (t = new n(t), e == null) {
11425
11427
  if (!t.d) return t;
@@ -11431,13 +11433,13 @@ W.toNearest = function(e, r) {
11431
11433
  }
11432
11434
  return e.d[0] ? (De = !1, t = Xe(t, e, 0, r, 1).times(e), De = !0, he(t)) : (e.s = t.s, t = e), t;
11433
11435
  };
11434
- W.toNumber = function() {
11436
+ V.toNumber = function() {
11435
11437
  return +this;
11436
11438
  };
11437
- W.toOctal = function(e, r) {
11439
+ V.toOctal = function(e, r) {
11438
11440
  return vs(this, 8, e, r);
11439
11441
  };
11440
- W.toPower = W.pow = function(e) {
11442
+ V.toPower = V.pow = function(e) {
11441
11443
  var r, t, n, u, i, a, s = this, d = s.constructor, c = +(e = new d(e));
11442
11444
  if (!s.d || !e.d || !s.d[0] || !e.d[0]) return new d(gt(+s, c));
11443
11445
  if (s = new d(s), s.eq(1)) return s;
@@ -11451,22 +11453,22 @@ W.toPower = W.pow = function(e) {
11451
11453
  }
11452
11454
  return t = gt(+s, c), r = t == 0 || !isFinite(t) ? _t(c * (Math.log("0." + Ct(s.d)) / Math.LN10 + s.e + 1)) : new d(t + "").e, r > d.maxE + 1 || r < d.minE - 1 ? new d(r > 0 ? a / 0 : 0) : (De = !1, d.rounding = s.s = 1, t = Math.min(12, (r + "").length), u = ja(e.times(Nr(s, n + t)), n), u.d && (u = he(u, n + 5, 1), Hn(u.d, n, i) && (r = n + 10, u = he(ja(e.times(Nr(s, r + t)), r), r + 5, 1), +Ct(u.d).slice(n + 1, n + 15) + 1 == 1e14 && (u = he(u, n + 1, 0)))), u.s = a, De = !0, d.rounding = i, he(u, n, i));
11453
11455
  };
11454
- W.toPrecision = function(e, r) {
11456
+ V.toPrecision = function(e, r) {
11455
11457
  var t, n = this, u = n.constructor;
11456
11458
  return e === void 0 ? t = mr(n, n.e <= u.toExpNeg || n.e >= u.toExpPos) : (Rt(e, 1, Lr), r === void 0 ? r = u.rounding : Rt(r, 0, 8), n = he(new u(n), e, r), t = mr(n, e <= n.e || n.e <= u.toExpNeg, e)), n.isNeg() && !n.isZero() ? "-" + t : t;
11457
11459
  };
11458
- W.toSignificantDigits = W.toSD = function(e, r) {
11460
+ V.toSignificantDigits = V.toSD = function(e, r) {
11459
11461
  var t = this, n = t.constructor;
11460
11462
  return e === void 0 ? (e = n.precision, r = n.rounding) : (Rt(e, 1, Lr), r === void 0 ? r = n.rounding : Rt(r, 0, 8)), he(new n(t), e, r);
11461
11463
  };
11462
- W.toString = function() {
11464
+ V.toString = function() {
11463
11465
  var e = this, r = e.constructor, t = mr(e, e.e <= r.toExpNeg || e.e >= r.toExpPos);
11464
11466
  return e.isNeg() && !e.isZero() ? "-" + t : t;
11465
11467
  };
11466
- W.truncated = W.trunc = function() {
11468
+ V.truncated = V.trunc = function() {
11467
11469
  return he(new this.constructor(this), this.e + 1, 1);
11468
11470
  };
11469
- W.valueOf = W.toJSON = function() {
11471
+ V.valueOf = V.toJSON = function() {
11470
11472
  var e = this, r = e.constructor, t = mr(e, e.e <= r.toExpNeg || e.e >= r.toExpPos);
11471
11473
  return e.isNeg() ? "-" + t : t;
11472
11474
  };
@@ -11726,11 +11728,11 @@ function Qp(e, r) {
11726
11728
  if (r = r.replace(/(\d)_(?=\d)/g, "$1"), fl.test(r)) return ku(e, r);
11727
11729
  } else if (r === "Infinity" || r === "NaN")
11728
11730
  return +r || (e.s = NaN), e.e = NaN, e.d = null, e;
11729
- if (Wp.test(r))
11731
+ if (Vp.test(r))
11730
11732
  t = 16, r = r.toLowerCase();
11731
11733
  else if (Hp.test(r))
11732
11734
  t = 2;
11733
- else if (Vp.test(r))
11735
+ else if (Wp.test(r))
11734
11736
  t = 8;
11735
11737
  else
11736
11738
  throw Error(Ir + r);
@@ -11928,7 +11930,7 @@ function bl(e) {
11928
11930
  return i < 0 ? (i = -i, c.s = -1) : c.s = 1, ku(c, i.toString());
11929
11931
  throw Error(Ir + i);
11930
11932
  }
11931
- if (u.prototype = W, u.ROUND_UP = 0, u.ROUND_DOWN = 1, u.ROUND_CEIL = 2, u.ROUND_FLOOR = 3, u.ROUND_HALF_UP = 4, u.ROUND_HALF_DOWN = 5, u.ROUND_HALF_EVEN = 6, u.ROUND_HALF_CEIL = 7, u.ROUND_HALF_FLOOR = 8, u.EUCLID = 9, u.config = u.set = lm, u.clone = bl, u.isDecimal = gc, u.abs = Jp, u.acos = Kp, u.acosh = em, u.add = tm, u.asin = rm, u.asinh = nm, u.atan = um, u.atanh = im, u.atan2 = am, u.cbrt = sm, u.ceil = om, u.clamp = cm, u.cos = fm, u.cosh = dm, u.div = hm, u.exp = pm, u.floor = mm, u.hypot = gm, u.ln = bm, u.log = ym, u.log10 = wm, u.log2 = vm, u.max = Dm, u.min = Em, u.mod = xm, u.mul = Am, u.pow = Cm, u.random = Sm, u.round = Tm, u.sign = Fm, u.sin = _m, u.sinh = Om, u.sqrt = Nm, u.sub = Mm, u.sum = Pm, u.tan = Bm, u.tanh = Im, u.trunc = Rm, e === void 0 && (e = {}), e && e.defaults !== !0)
11933
+ if (u.prototype = V, u.ROUND_UP = 0, u.ROUND_DOWN = 1, u.ROUND_CEIL = 2, u.ROUND_FLOOR = 3, u.ROUND_HALF_UP = 4, u.ROUND_HALF_DOWN = 5, u.ROUND_HALF_EVEN = 6, u.ROUND_HALF_CEIL = 7, u.ROUND_HALF_FLOOR = 8, u.EUCLID = 9, u.config = u.set = lm, u.clone = bl, u.isDecimal = gc, u.abs = Jp, u.acos = Kp, u.acosh = em, u.add = tm, u.asin = rm, u.asinh = nm, u.atan = um, u.atanh = im, u.atan2 = am, u.cbrt = sm, u.ceil = om, u.clamp = cm, u.cos = fm, u.cosh = dm, u.div = hm, u.exp = pm, u.floor = mm, u.hypot = gm, u.ln = bm, u.log = ym, u.log10 = wm, u.log2 = vm, u.max = Dm, u.min = Em, u.mod = xm, u.mul = Am, u.pow = Cm, u.random = Sm, u.round = Tm, u.sign = Fm, u.sin = _m, u.sinh = Om, u.sqrt = Nm, u.sub = Mm, u.sum = Pm, u.tan = Bm, u.tanh = Im, u.trunc = Rm, e === void 0 && (e = {}), e && e.defaults !== !0)
11932
11934
  for (n = ["precision", "rounding", "toExpNeg", "toExpPos", "maxE", "minE", "modulo", "crypto"], r = 0; r < n.length; ) e.hasOwnProperty(t = n[r++]) || (e[t] = this[t]);
11933
11935
  return u.config(e), u;
11934
11936
  }
@@ -12038,9 +12040,9 @@ function Im(e) {
12038
12040
  function Rm(e) {
12039
12041
  return he(e = new this(e), e.e + 1, 1);
12040
12042
  }
12041
- W[Symbol.for("nodejs.util.inspect.custom")] = W.toString;
12042
- W[Symbol.toStringTag] = "Decimal";
12043
- var vn = W.constructor = bl(qa);
12043
+ V[Symbol.for("nodejs.util.inspect.custom")] = V.toString;
12044
+ V[Symbol.toStringTag] = "Decimal";
12045
+ var vn = V.constructor = bl(qa);
12044
12046
  Gu = new vn(Gu);
12045
12047
  Xu = new vn(Xu);
12046
12048
  var km = "BigNumber", Lm = ["?on", "config"], qm = /* @__PURE__ */ Re(km, Lm, (e) => {
@@ -12068,7 +12070,7 @@ var km = "BigNumber", Lm = ["?on", "config"], qm = /* @__PURE__ */ Re(km, Lm, (e
12068
12070
  });
12069
12071
  const Tt = Math.cosh || function(e) {
12070
12072
  return Math.abs(e) < 1e-9 ? 1 - e : (Math.exp(e) + Math.exp(-e)) * 0.5;
12071
- }, Wt = Math.sinh || function(e) {
12073
+ }, Vt = Math.sinh || function(e) {
12072
12074
  return Math.abs(e) < 1e-9 ? e : (Math.exp(e) - Math.exp(-e)) * 0.5;
12073
12075
  }, $m = function(e) {
12074
12076
  const r = Math.PI / 4;
@@ -12085,7 +12087,7 @@ function Da(e, r) {
12085
12087
  const t = Math.abs(e), n = Math.abs(r);
12086
12088
  return e === 0 ? Math.log(n) : r === 0 ? Math.log(t) : t < 3e3 && n < 3e3 ? Math.log(e * e + r * r) * 0.5 : (e = e * 0.5, r = r * 0.5, 0.5 * Math.log(e * e + r * r) + Math.LN2);
12087
12089
  }
12088
- const jm = { re: 0, im: 0 }, Wr = function(e, r) {
12090
+ const jm = { re: 0, im: 0 }, Vr = function(e, r) {
12089
12091
  const t = jm;
12090
12092
  if (e == null)
12091
12093
  t.re = t.im = 0;
@@ -12130,7 +12132,7 @@ const jm = { re: 0, im: 0 }, Wr = function(e, r) {
12130
12132
  function j(e, r) {
12131
12133
  if (!(this instanceof j))
12132
12134
  return new j(e, r);
12133
- const t = Wr(e, r);
12135
+ const t = Vr(e, r);
12134
12136
  this.re = t.re, this.im = t.im;
12135
12137
  }
12136
12138
  j.prototype = {
@@ -12154,7 +12156,7 @@ j.prototype = {
12154
12156
  * @returns {Complex}
12155
12157
  */
12156
12158
  add: function(e, r) {
12157
- const t = Wr(e, r), n = this.isInfinite(), u = !(isFinite(t.re) && isFinite(t.im));
12159
+ const t = Vr(e, r), n = this.isInfinite(), u = !(isFinite(t.re) && isFinite(t.im));
12158
12160
  return n || u ? n && u ? j.NAN : j.INFINITY : new j(
12159
12161
  this.re + t.re,
12160
12162
  this.im + t.im
@@ -12166,7 +12168,7 @@ j.prototype = {
12166
12168
  * @returns {Complex}
12167
12169
  */
12168
12170
  sub: function(e, r) {
12169
- const t = Wr(e, r), n = this.isInfinite(), u = !(isFinite(t.re) && isFinite(t.im));
12171
+ const t = Vr(e, r), n = this.isInfinite(), u = !(isFinite(t.re) && isFinite(t.im));
12170
12172
  return n || u ? n && u ? j.NAN : j.INFINITY : new j(
12171
12173
  this.re - t.re,
12172
12174
  this.im - t.im
@@ -12178,7 +12180,7 @@ j.prototype = {
12178
12180
  * @returns {Complex}
12179
12181
  */
12180
12182
  mul: function(e, r) {
12181
- const t = Wr(e, r), n = this.isInfinite(), u = !(isFinite(t.re) && isFinite(t.im)), i = this.re === 0 && this.im === 0, a = t.re === 0 && t.im === 0;
12183
+ const t = Vr(e, r), n = this.isInfinite(), u = !(isFinite(t.re) && isFinite(t.im)), i = this.re === 0 && this.im === 0, a = t.re === 0 && t.im === 0;
12182
12184
  return n && a || u && i ? j.NAN : n || u ? j.INFINITY : t.im === 0 && this.im === 0 ? new j(this.re * t.re, 0) : new j(
12183
12185
  this.re * t.re - this.im * t.im,
12184
12186
  this.re * t.im + this.im * t.re
@@ -12190,7 +12192,7 @@ j.prototype = {
12190
12192
  * @returns {Complex}
12191
12193
  */
12192
12194
  div: function(e, r) {
12193
- const t = Wr(e, r), n = this.isInfinite(), u = !(isFinite(t.re) && isFinite(t.im)), i = this.re === 0 && this.im === 0, a = t.re === 0 && t.im === 0;
12195
+ const t = Vr(e, r), n = this.isInfinite(), u = !(isFinite(t.re) && isFinite(t.im)), i = this.re === 0 && this.im === 0, a = t.re === 0 && t.im === 0;
12194
12196
  if (i && a || n && u)
12195
12197
  return j.NAN;
12196
12198
  if (a || n)
@@ -12219,7 +12221,7 @@ j.prototype = {
12219
12221
  * @returns {Complex}
12220
12222
  */
12221
12223
  pow: function(e, r) {
12222
- const t = Wr(e, r), n = this.re === 0 && this.im === 0;
12224
+ const t = Vr(e, r), n = this.re === 0 && this.im === 0;
12223
12225
  if (t.re === 0 && t.im === 0)
12224
12226
  return j.ONE;
12225
12227
  if (t.im === 0) {
@@ -12323,7 +12325,7 @@ j.prototype = {
12323
12325
  const e = this.re, r = this.im;
12324
12326
  return new j(
12325
12327
  Math.sin(e) * Tt(r),
12326
- Math.cos(e) * Wt(r)
12328
+ Math.cos(e) * Vt(r)
12327
12329
  );
12328
12330
  },
12329
12331
  /**
@@ -12335,7 +12337,7 @@ j.prototype = {
12335
12337
  const e = this.re, r = this.im;
12336
12338
  return new j(
12337
12339
  Math.cos(e) * Tt(r),
12338
- -Math.sin(e) * Wt(r)
12340
+ -Math.sin(e) * Vt(r)
12339
12341
  );
12340
12342
  },
12341
12343
  /**
@@ -12347,7 +12349,7 @@ j.prototype = {
12347
12349
  const e = 2 * this.re, r = 2 * this.im, t = Math.cos(e) + Tt(r);
12348
12350
  return new j(
12349
12351
  Math.sin(e) / t,
12350
- Wt(r) / t
12352
+ Vt(r) / t
12351
12353
  );
12352
12354
  },
12353
12355
  /**
@@ -12359,7 +12361,7 @@ j.prototype = {
12359
12361
  const e = 2 * this.re, r = 2 * this.im, t = Math.cos(e) - Tt(r);
12360
12362
  return new j(
12361
12363
  -Math.sin(e) / t,
12362
- Wt(r) / t
12364
+ Vt(r) / t
12363
12365
  );
12364
12366
  },
12365
12367
  /**
@@ -12371,7 +12373,7 @@ j.prototype = {
12371
12373
  const e = this.re, r = this.im, t = 0.5 * Tt(2 * r) + 0.5 * Math.cos(2 * e);
12372
12374
  return new j(
12373
12375
  Math.cos(e) * Tt(r) / t,
12374
- Math.sin(e) * Wt(r) / t
12376
+ Math.sin(e) * Vt(r) / t
12375
12377
  );
12376
12378
  },
12377
12379
  /**
@@ -12383,7 +12385,7 @@ j.prototype = {
12383
12385
  const e = this.re, r = this.im, t = 0.5 * Tt(2 * r) - 0.5 * Math.cos(2 * e);
12384
12386
  return new j(
12385
12387
  Math.sin(e) * Tt(r) / t,
12386
- -Math.cos(e) * Wt(r) / t
12388
+ -Math.cos(e) * Vt(r) / t
12387
12389
  );
12388
12390
  },
12389
12391
  /**
@@ -12497,7 +12499,7 @@ j.prototype = {
12497
12499
  sinh: function() {
12498
12500
  const e = this.re, r = this.im;
12499
12501
  return new j(
12500
- Wt(e) * Math.cos(r),
12502
+ Vt(e) * Math.cos(r),
12501
12503
  Tt(e) * Math.sin(r)
12502
12504
  );
12503
12505
  },
@@ -12510,7 +12512,7 @@ j.prototype = {
12510
12512
  const e = this.re, r = this.im;
12511
12513
  return new j(
12512
12514
  Tt(e) * Math.cos(r),
12513
- Wt(e) * Math.sin(r)
12515
+ Vt(e) * Math.sin(r)
12514
12516
  );
12515
12517
  },
12516
12518
  /**
@@ -12521,7 +12523,7 @@ j.prototype = {
12521
12523
  tanh: function() {
12522
12524
  const e = 2 * this.re, r = 2 * this.im, t = Tt(e) + Math.cos(r);
12523
12525
  return new j(
12524
- Wt(e) / t,
12526
+ Vt(e) / t,
12525
12527
  Math.sin(r) / t
12526
12528
  );
12527
12529
  },
@@ -12533,7 +12535,7 @@ j.prototype = {
12533
12535
  coth: function() {
12534
12536
  const e = 2 * this.re, r = 2 * this.im, t = Tt(e) - Math.cos(r);
12535
12537
  return new j(
12536
- Wt(e) / t,
12538
+ Vt(e) / t,
12537
12539
  -Math.sin(r) / t
12538
12540
  );
12539
12541
  },
@@ -12545,7 +12547,7 @@ j.prototype = {
12545
12547
  csch: function() {
12546
12548
  const e = this.re, r = this.im, t = Math.cos(2 * r) - Tt(2 * e);
12547
12549
  return new j(
12548
- -2 * Wt(e) * Math.cos(r) / t,
12550
+ -2 * Vt(e) * Math.cos(r) / t,
12549
12551
  2 * Tt(e) * Math.sin(r) / t
12550
12552
  );
12551
12553
  },
@@ -12558,7 +12560,7 @@ j.prototype = {
12558
12560
  const e = this.re, r = this.im, t = Math.cos(2 * r) + Tt(2 * e);
12559
12561
  return new j(
12560
12562
  2 * Tt(e) * Math.cos(r) / t,
12561
- -2 * Wt(e) * Math.sin(r) / t
12563
+ -2 * Vt(e) * Math.sin(r) / t
12562
12564
  );
12563
12565
  },
12564
12566
  /**
@@ -12730,7 +12732,7 @@ j.prototype = {
12730
12732
  * @returns {boolean}
12731
12733
  */
12732
12734
  equals: function(e, r) {
12733
- const t = Wr(e, r);
12735
+ const t = Vr(e, r);
12734
12736
  return Math.abs(t.re - this.re) <= j.EPSILON && Math.abs(t.im - this.im) <= j.EPSILON;
12735
12737
  },
12736
12738
  /**
@@ -12864,7 +12866,7 @@ typeof BigInt > "u" && (BigInt = function(e) {
12864
12866
  if (isNaN(e)) throw new Error("");
12865
12867
  return e;
12866
12868
  });
12867
- const de = BigInt(0), Ee = BigInt(1), Wn = BigInt(2), za = BigInt(5), It = BigInt(10), Wm = 2e3, ee = {
12869
+ const de = BigInt(0), Ee = BigInt(1), Vn = BigInt(2), za = BigInt(5), It = BigInt(10), Vm = 2e3, ee = {
12868
12870
  s: Ee,
12869
12871
  n: de,
12870
12872
  d: Ee
@@ -12883,18 +12885,18 @@ function tr(e) {
12883
12885
  function tt(e, r) {
12884
12886
  if (r === de)
12885
12887
  throw ws();
12886
- const t = Object.create(Vt.prototype);
12888
+ const t = Object.create(Wt.prototype);
12887
12889
  t.s = e < de ? -Ee : Ee, e = e < de ? -e : e;
12888
- const n = Vr(e, r);
12890
+ const n = Wr(e, r);
12889
12891
  return t.n = e / n, t.d = r / n, t;
12890
12892
  }
12891
12893
  function un(e) {
12892
12894
  const r = {};
12893
- let t = e, n = Wn, u = za - Ee;
12895
+ let t = e, n = Vn, u = za - Ee;
12894
12896
  for (; u <= t; ) {
12895
12897
  for (; t % n === de; )
12896
12898
  t /= n, r[n] = (r[n] || de) + Ee;
12897
- u += Ee + Wn * n++;
12899
+ u += Ee + Vn * n++;
12898
12900
  }
12899
12901
  return t !== e ? t > 1 && (r[t] = (r[t] || de) + Ee) : r[e] = (r[e] || de) + Ee, r;
12900
12902
  }
@@ -12964,14 +12966,14 @@ const yt = function(e, r) {
12964
12966
  throw ws();
12965
12967
  ee.s = u < de ? -Ee : Ee, ee.n = t < de ? -t : t, ee.d = n < de ? -n : n;
12966
12968
  };
12967
- function Vm(e, r, t) {
12969
+ function Wm(e, r, t) {
12968
12970
  let n = Ee;
12969
12971
  for (; r > de; e = e * e % t, r >>= Ee)
12970
12972
  r & Ee && (n = n * e % t);
12971
12973
  return n;
12972
12974
  }
12973
12975
  function Ym(e, r) {
12974
- for (; r % Wn === de; r /= Wn)
12976
+ for (; r % Vn === de; r /= Vn)
12975
12977
  ;
12976
12978
  for (; r % za === de; r /= za)
12977
12979
  ;
@@ -12979,12 +12981,12 @@ function Ym(e, r) {
12979
12981
  return de;
12980
12982
  let t = It % r, n = 1;
12981
12983
  for (; t !== Ee; n++)
12982
- if (t = t * It % r, n > Wm)
12984
+ if (t = t * It % r, n > Vm)
12983
12985
  return de;
12984
12986
  return BigInt(n);
12985
12987
  }
12986
12988
  function Gm(e, r, t) {
12987
- let n = Ee, u = Vm(It, t, r);
12989
+ let n = Ee, u = Wm(It, t, r);
12988
12990
  for (let i = 0; i < 300; i++) {
12989
12991
  if (n === u)
12990
12992
  return BigInt(i);
@@ -12992,7 +12994,7 @@ function Gm(e, r, t) {
12992
12994
  }
12993
12995
  return 0;
12994
12996
  }
12995
- function Vr(e, r) {
12997
+ function Wr(e, r) {
12996
12998
  if (!e)
12997
12999
  return r;
12998
13000
  if (!r)
@@ -13004,9 +13006,9 @@ function Vr(e, r) {
13004
13006
  return e;
13005
13007
  }
13006
13008
  }
13007
- function Vt(e, r) {
13008
- if (yt(e, r), this instanceof Vt)
13009
- e = Vr(ee.d, ee.n), this.s = ee.s, this.n = ee.n / e, this.d = ee.d / e;
13009
+ function Wt(e, r) {
13010
+ if (yt(e, r), this instanceof Wt)
13011
+ e = Wr(ee.d, ee.n), this.s = ee.s, this.n = ee.n / e, this.d = ee.d / e;
13010
13012
  else
13011
13013
  return tt(ee.s * ee.n, ee.d);
13012
13014
  }
@@ -13017,7 +13019,7 @@ var ws = function() {
13017
13019
  }, bc = function() {
13018
13020
  return new Error("Parameters must be integer");
13019
13021
  };
13020
- Vt.prototype = {
13022
+ Wt.prototype = {
13021
13023
  s: Ee,
13022
13024
  n: de,
13023
13025
  d: Ee,
@@ -13111,7 +13113,7 @@ Vt.prototype = {
13111
13113
  * Ex: new Fraction(5,8).gcd(3,7) => 1/56
13112
13114
  */
13113
13115
  gcd: function(e, r) {
13114
- return yt(e, r), tt(Vr(ee.n, this.n) * Vr(ee.d, this.d), ee.d * this.d);
13116
+ return yt(e, r), tt(Wr(ee.n, this.n) * Wr(ee.d, this.d), ee.d * this.d);
13115
13117
  },
13116
13118
  /**
13117
13119
  * Calculates the fractional lcm of two rational numbers
@@ -13119,7 +13121,7 @@ Vt.prototype = {
13119
13121
  * Ex: new Fraction(5,8).lcm(3,7) => 15
13120
13122
  */
13121
13123
  lcm: function(e, r) {
13122
- return yt(e, r), ee.n === de && this.n === de ? tt(de, Ee) : tt(ee.n * this.n, Vr(ee.n, this.n) * Vr(ee.d, this.d));
13124
+ return yt(e, r), ee.n === de && this.n === de ? tt(de, Ee) : tt(ee.n * this.n, Wr(ee.n, this.n) * Wr(ee.d, this.d));
13123
13125
  },
13124
13126
  /**
13125
13127
  * Gets the inverse of the fraction, means numerator and denominator are exchanged
@@ -13184,7 +13186,7 @@ Vt.prototype = {
13184
13186
  continue;
13185
13187
  }
13186
13188
  let o = p, h = l;
13187
- const m = Vr(o, h);
13189
+ const m = Wr(o, h);
13188
13190
  if (o /= m, h /= m, s === null && d === null)
13189
13191
  s = o, d = h;
13190
13192
  else if (o * d !== s * h)
@@ -13274,7 +13276,7 @@ Vt.prototype = {
13274
13276
  **/
13275
13277
  round: function(e) {
13276
13278
  return e = It ** BigInt(e || 0), tt(
13277
- tr(this.s * e * this.n / this.d) + this.s * ((this.s >= de ? Ee : de) + Wn * (e * this.n % this.d) > this.d ? Ee : de),
13279
+ tr(this.s * e * this.n / this.d) + this.s * ((this.s >= de ? Ee : de) + Vn * (e * this.n % this.d) > this.d ? Ee : de),
13278
13280
  e
13279
13281
  );
13280
13282
  },
@@ -13383,17 +13385,17 @@ Vt.prototype = {
13383
13385
  return this;
13384
13386
  }
13385
13387
  };
13386
- var Xm = "Fraction", Qm = [], Zm = /* @__PURE__ */ Re(Xm, Qm, () => (Object.defineProperty(Vt, "name", {
13388
+ var Xm = "Fraction", Qm = [], Zm = /* @__PURE__ */ Re(Xm, Qm, () => (Object.defineProperty(Wt, "name", {
13387
13389
  value: "Fraction"
13388
- }), Vt.prototype.constructor = Vt, Vt.prototype.type = "Fraction", Vt.prototype.isFraction = !0, Vt.prototype.toJSON = function() {
13390
+ }), Wt.prototype.constructor = Wt, Wt.prototype.type = "Fraction", Wt.prototype.isFraction = !0, Wt.prototype.toJSON = function() {
13389
13391
  return {
13390
13392
  mathjs: "Fraction",
13391
13393
  n: String(this.s * this.n),
13392
13394
  d: String(this.d)
13393
13395
  };
13394
- }, Vt.fromJSON = function(e) {
13395
- return new Vt(e);
13396
- }, Vt), {
13396
+ }, Wt.fromJSON = function(e) {
13397
+ return new Wt(e);
13398
+ }, Wt), {
13397
13399
  isClass: !0
13398
13400
  }), Jm = "Matrix", Km = [], eg = /* @__PURE__ */ Re(Jm, Km, () => {
13399
13401
  function e() {
@@ -13774,7 +13776,7 @@ function Tl(e, r) {
13774
13776
  throw new Error("shape mismatch: mismatch is found in arg with shape (".concat(e, ") not possible to broadcast dimension ").concat(n, " with size ").concat(e[u], " to size ").concat(r[i]));
13775
13777
  }
13776
13778
  }
13777
- function Wa(e, r) {
13779
+ function Va(e, r) {
13778
13780
  var t = ur(e);
13779
13781
  if (Br(t, r))
13780
13782
  return e;
@@ -13970,7 +13972,7 @@ var hg = "DenseMatrix", pg = ["Matrix"], mg = /* @__PURE__ */ Re(hg, pg, (e) =>
13970
13972
  } else {
13971
13973
  if (!Br(b, m))
13972
13974
  try {
13973
- b.length === 0 ? o = Wa([o], m) : o = Wa(o, m), b = ur(o);
13975
+ b.length === 0 ? o = Va([o], m) : o = Va(o, m), b = ur(o);
13974
13976
  } catch {
13975
13977
  }
13976
13978
  if (m.length < l._size.length)
@@ -14002,7 +14004,7 @@ var hg = "DenseMatrix", pg = ["Matrix"], mg = /* @__PURE__ */ Re(hg, pg, (e) =>
14002
14004
  });
14003
14005
  }
14004
14006
  t.prototype.resize = function(l, p, o) {
14005
- if (!Vu(l))
14007
+ if (!Wu(l))
14006
14008
  throw new TypeError("Array or Matrix expected");
14007
14009
  var h = l.valueOf().map((f) => Array.isArray(f) && f.length === 1 ? f[0] : f), m = o ? this.clone() : this;
14008
14010
  return s(m, h, p);
@@ -14199,7 +14201,7 @@ var hg = "DenseMatrix", pg = ["Matrix"], mg = /* @__PURE__ */ Re(hg, pg, (e) =>
14199
14201
  }, {
14200
14202
  isClass: !0
14201
14203
  });
14202
- function Vn(e, r, t) {
14204
+ function Wn(e, r, t) {
14203
14205
  if (!t)
14204
14206
  return Gt(e) ? e.map((u) => r(u)) : xc(e, r, !0);
14205
14207
  var n = (u) => u === 0 ? u : r(u);
@@ -14221,7 +14223,7 @@ var Cc = "isInteger", gg = ["typed"], bg = /* @__PURE__ */ Re(Cc, gg, (e) => {
14221
14223
  Fraction: function(n) {
14222
14224
  return n.d === 1n;
14223
14225
  },
14224
- "Array | Matrix": r.referToSelf((t) => (n) => Vn(n, t))
14226
+ "Array | Matrix": r.referToSelf((t) => (n) => Wn(n, t))
14225
14227
  });
14226
14228
  }), yg = "number", _l = "number, number";
14227
14229
  function Ol(e, r) {
@@ -14242,7 +14244,7 @@ function Pn(e) {
14242
14244
  throw new Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");
14243
14245
  return parseFloat(ul(e, r));
14244
14246
  }
14245
- function Va(e, r) {
14247
+ function Wa(e, r) {
14246
14248
  var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1e-9, n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
14247
14249
  if (t <= 0)
14248
14250
  throw new Error("Relative tolerance must be greater than 0");
@@ -14279,7 +14281,7 @@ var wg = /* @__PURE__ */ Re("compareUnits", ["typed"], (e) => {
14279
14281
  return bn(i, a, t.relTol, t.absTol);
14280
14282
  },
14281
14283
  "BigNumber, BigNumber": function(i, a) {
14282
- return i.eq(a) || Va(i, a, t.relTol, t.absTol);
14284
+ return i.eq(a) || Wa(i, a, t.relTol, t.absTol);
14283
14285
  },
14284
14286
  "bigint, bigint": function(i, a) {
14285
14287
  return i === a;
@@ -14486,7 +14488,7 @@ var xg = "SparseMatrix", Ag = ["typed", "equalScalar", "Matrix"], Cg = /* @__PUR
14486
14488
  y[E]++;
14487
14489
  }
14488
14490
  u.prototype.resize = function(f, b, g) {
14489
- if (!Vu(f))
14491
+ if (!Wu(f))
14490
14492
  throw new TypeError("Array or Matrix expected");
14491
14493
  var w = f.valueOf().map((D) => Array.isArray(D) && D.length === 1 ? D[0] : D);
14492
14494
  if (w.length !== 2)
@@ -14860,7 +14862,7 @@ var Og = /* @__PURE__ */ Re(Sg, Tg, (e) => {
14860
14862
  "Unit, string | Unit": function(u, i) {
14861
14863
  return u.toNumber(i);
14862
14864
  },
14863
- "Array | Matrix": r.referToSelf((n) => (u) => Vn(u, n))
14865
+ "Array | Matrix": r.referToSelf((n) => (u) => Wn(u, n))
14864
14866
  });
14865
14867
  return t.fromJSON = function(n) {
14866
14868
  return parseFloat(n.value);
@@ -14911,7 +14913,7 @@ var Og = /* @__PURE__ */ Re(Sg, Tg, (e) => {
14911
14913
  return u.value = r.find(t, u.valueType())(n.value), u;
14912
14914
  }),
14913
14915
  // deep map collection, skip zeros since unaryMinus(0) = 0
14914
- "Array | Matrix": r.referToSelf((t) => (n) => Vn(n, t, !0))
14916
+ "Array | Matrix": r.referToSelf((t) => (n) => Wn(n, t, !0))
14915
14917
  // TODO: add support for string
14916
14918
  });
14917
14919
  }), Fc = "addScalar", Ig = ["typed"], Rg = /* @__PURE__ */ Re(Fc, Ig, (e) => {
@@ -15021,7 +15023,7 @@ var Og = /* @__PURE__ */ Re(Sg, Tg, (e) => {
15021
15023
  datatype: f
15022
15024
  });
15023
15025
  };
15024
- }), Hg = "matAlgo14xDs", Wg = ["typed"], Bl = /* @__PURE__ */ Re(Hg, Wg, (e) => {
15026
+ }), Hg = "matAlgo14xDs", Vg = ["typed"], Bl = /* @__PURE__ */ Re(Hg, Vg, (e) => {
15025
15027
  var {
15026
15028
  typed: r
15027
15029
  } = e;
@@ -15045,7 +15047,7 @@ var Og = /* @__PURE__ */ Re(Sg, Tg, (e) => {
15045
15047
  l[o] = t(n, u + 1, i, i[u + 1], s[o], d, c);
15046
15048
  return l;
15047
15049
  }
15048
- }), Vg = "matAlgo03xDSf", Yg = ["typed"], Gg = /* @__PURE__ */ Re(Vg, Yg, (e) => {
15050
+ }), Wg = "matAlgo03xDSf", Yg = ["typed"], Gg = /* @__PURE__ */ Re(Wg, Yg, (e) => {
15049
15051
  var {
15050
15052
  typed: r
15051
15053
  } = e;
@@ -15154,7 +15156,7 @@ function bt(e, r) {
15154
15156
  return [e, r].map((n) => tb(n, t));
15155
15157
  }
15156
15158
  function tb(e, r) {
15157
- return Br(e.size(), r) ? e : e.create(Wa(e.valueOf(), r), e.datatype());
15159
+ return Br(e.size(), r) ? e : e.create(Va(e.valueOf(), r), e.datatype());
15158
15160
  }
15159
15161
  var rb = "matrixAlgorithmSuite", nb = ["typed", "matrix"], Il = /* @__PURE__ */ Re(rb, nb, (e) => {
15160
15162
  var {
@@ -15451,7 +15453,7 @@ var rb = "matrixAlgorithmSuite", nb = ["typed", "matrix"], Il = /* @__PURE__ */
15451
15453
  return h.round(f);
15452
15454
  },
15453
15455
  BigNumber: function(h) {
15454
- var m = new a(h).toDecimalPlaces(p(t.relTol)), f = Va(h, m, t.relTol, t.absTol) ? m : h;
15456
+ var m = new a(h).toDecimalPlaces(p(t.relTol)), f = Wa(h, m, t.relTol, t.absTol) ? m : h;
15455
15457
  return f.toDecimalPlaces(0);
15456
15458
  },
15457
15459
  "BigNumber, BigNumber": function(h, m) {
@@ -15460,7 +15462,7 @@ var rb = "matrixAlgorithmSuite", nb = ["typed", "matrix"], Il = /* @__PURE__ */
15460
15462
  var f = p(t.relTol);
15461
15463
  if (m >= f)
15462
15464
  return h.toDecimalPlaces(m.toNumber());
15463
- var b = h.toDecimalPlaces(f), g = Va(h, b, t.relTol, t.absTol) ? b : h;
15465
+ var b = h.toDecimalPlaces(f), g = Wa(h, b, t.relTol, t.absTol) ? b : h;
15464
15466
  return g.toDecimalPlaces(m.toNumber());
15465
15467
  },
15466
15468
  // bigints can't be rounded
@@ -15485,9 +15487,9 @@ var rb = "matrixAlgorithmSuite", nb = ["typed", "matrix"], Il = /* @__PURE__ */
15485
15487
  return f.multiply(o(b, m));
15486
15488
  }),
15487
15489
  "Unit, BigNumber, Unit": r.referToSelf((o) => (h, m, f) => o(h, m.toNumber(), f)),
15488
- "Array | Matrix, number | BigNumber, Unit": r.referToSelf((o) => (h, m, f) => Vn(h, (b) => o(b, m, f), !0)),
15490
+ "Array | Matrix, number | BigNumber, Unit": r.referToSelf((o) => (h, m, f) => Wn(h, (b) => o(b, m, f), !0)),
15489
15491
  "Array | Matrix | Unit, Unit": r.referToSelf((o) => (h, m) => o(h, 0, m)),
15490
- "Array | Matrix": r.referToSelf((o) => (h) => Vn(h, o, !0)),
15492
+ "Array | Matrix": r.referToSelf((o) => (h) => Wn(h, o, !0)),
15491
15493
  "SparseMatrix, number | BigNumber": r.referToSelf((o) => (h, m) => d(h, m, o, !1)),
15492
15494
  "DenseMatrix, number | BigNumber": r.referToSelf((o) => (h, m) => l(h, m, o, !1)),
15493
15495
  "Array, number | BigNumber": r.referToSelf((o) => (h, m) => l(n(h), m, o, !1).valueOf()),
@@ -15594,7 +15596,7 @@ var rb = "matrixAlgorithmSuite", nb = ["typed", "matrix"], Il = /* @__PURE__ */
15594
15596
  subtractScalar: Sb,
15595
15597
  typed: zt,
15596
15598
  unaryMinus: _b
15597
- }), Su = { exports: {} }, We = {};
15599
+ }), Su = { exports: {} }, Ve = {};
15598
15600
  /**
15599
15601
  * @license React
15600
15602
  * react-is.production.js
@@ -15606,7 +15608,7 @@ var rb = "matrixAlgorithmSuite", nb = ["typed", "matrix"], Il = /* @__PURE__ */
15606
15608
  */
15607
15609
  var Ic;
15608
15610
  function Mb() {
15609
- if (Ic) return We;
15611
+ if (Ic) return Ve;
15610
15612
  Ic = 1;
15611
15613
  var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), a = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), o = Symbol.for("react.offscreen"), h = Symbol.for("react.client.reference");
15612
15614
  function m(f) {
@@ -15639,35 +15641,35 @@ function Mb() {
15639
15641
  }
15640
15642
  }
15641
15643
  }
15642
- return We.ContextConsumer = i, We.ContextProvider = a, We.Element = e, We.ForwardRef = s, We.Fragment = t, We.Lazy = p, We.Memo = l, We.Portal = r, We.Profiler = u, We.StrictMode = n, We.Suspense = d, We.SuspenseList = c, We.isContextConsumer = function(f) {
15644
+ return Ve.ContextConsumer = i, Ve.ContextProvider = a, Ve.Element = e, Ve.ForwardRef = s, Ve.Fragment = t, Ve.Lazy = p, Ve.Memo = l, Ve.Portal = r, Ve.Profiler = u, Ve.StrictMode = n, Ve.Suspense = d, Ve.SuspenseList = c, Ve.isContextConsumer = function(f) {
15643
15645
  return m(f) === i;
15644
- }, We.isContextProvider = function(f) {
15646
+ }, Ve.isContextProvider = function(f) {
15645
15647
  return m(f) === a;
15646
- }, We.isElement = function(f) {
15648
+ }, Ve.isElement = function(f) {
15647
15649
  return typeof f == "object" && f !== null && f.$$typeof === e;
15648
- }, We.isForwardRef = function(f) {
15650
+ }, Ve.isForwardRef = function(f) {
15649
15651
  return m(f) === s;
15650
- }, We.isFragment = function(f) {
15652
+ }, Ve.isFragment = function(f) {
15651
15653
  return m(f) === t;
15652
- }, We.isLazy = function(f) {
15654
+ }, Ve.isLazy = function(f) {
15653
15655
  return m(f) === p;
15654
- }, We.isMemo = function(f) {
15656
+ }, Ve.isMemo = function(f) {
15655
15657
  return m(f) === l;
15656
- }, We.isPortal = function(f) {
15658
+ }, Ve.isPortal = function(f) {
15657
15659
  return m(f) === r;
15658
- }, We.isProfiler = function(f) {
15660
+ }, Ve.isProfiler = function(f) {
15659
15661
  return m(f) === u;
15660
- }, We.isStrictMode = function(f) {
15662
+ }, Ve.isStrictMode = function(f) {
15661
15663
  return m(f) === n;
15662
- }, We.isSuspense = function(f) {
15664
+ }, Ve.isSuspense = function(f) {
15663
15665
  return m(f) === d;
15664
- }, We.isSuspenseList = function(f) {
15666
+ }, Ve.isSuspenseList = function(f) {
15665
15667
  return m(f) === c;
15666
- }, We.isValidElementType = function(f) {
15668
+ }, Ve.isValidElementType = function(f) {
15667
15669
  return typeof f == "string" || typeof f == "function" || f === t || f === u || f === n || f === d || f === c || f === o || typeof f == "object" && f !== null && (f.$$typeof === p || f.$$typeof === l || f.$$typeof === a || f.$$typeof === i || f.$$typeof === s || f.$$typeof === h || f.getModuleId !== void 0);
15668
- }, We.typeOf = m, We;
15670
+ }, Ve.typeOf = m, Ve;
15669
15671
  }
15670
- var Ve = {};
15672
+ var We = {};
15671
15673
  /**
15672
15674
  * @license React
15673
15675
  * react-is.development.js
@@ -15711,34 +15713,34 @@ function Pb() {
15711
15713
  }
15712
15714
  }
15713
15715
  var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), s = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), o = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), m = Symbol.for("react.client.reference");
15714
- Ve.ContextConsumer = a, Ve.ContextProvider = s, Ve.Element = r, Ve.ForwardRef = d, Ve.Fragment = n, Ve.Lazy = o, Ve.Memo = p, Ve.Portal = t, Ve.Profiler = i, Ve.StrictMode = u, Ve.Suspense = c, Ve.SuspenseList = l, Ve.isContextConsumer = function(f) {
15716
+ We.ContextConsumer = a, We.ContextProvider = s, We.Element = r, We.ForwardRef = d, We.Fragment = n, We.Lazy = o, We.Memo = p, We.Portal = t, We.Profiler = i, We.StrictMode = u, We.Suspense = c, We.SuspenseList = l, We.isContextConsumer = function(f) {
15715
15717
  return e(f) === a;
15716
- }, Ve.isContextProvider = function(f) {
15718
+ }, We.isContextProvider = function(f) {
15717
15719
  return e(f) === s;
15718
- }, Ve.isElement = function(f) {
15720
+ }, We.isElement = function(f) {
15719
15721
  return typeof f == "object" && f !== null && f.$$typeof === r;
15720
- }, Ve.isForwardRef = function(f) {
15722
+ }, We.isForwardRef = function(f) {
15721
15723
  return e(f) === d;
15722
- }, Ve.isFragment = function(f) {
15724
+ }, We.isFragment = function(f) {
15723
15725
  return e(f) === n;
15724
- }, Ve.isLazy = function(f) {
15726
+ }, We.isLazy = function(f) {
15725
15727
  return e(f) === o;
15726
- }, Ve.isMemo = function(f) {
15728
+ }, We.isMemo = function(f) {
15727
15729
  return e(f) === p;
15728
- }, Ve.isPortal = function(f) {
15730
+ }, We.isPortal = function(f) {
15729
15731
  return e(f) === t;
15730
- }, Ve.isProfiler = function(f) {
15732
+ }, We.isProfiler = function(f) {
15731
15733
  return e(f) === i;
15732
- }, Ve.isStrictMode = function(f) {
15734
+ }, We.isStrictMode = function(f) {
15733
15735
  return e(f) === u;
15734
- }, Ve.isSuspense = function(f) {
15736
+ }, We.isSuspense = function(f) {
15735
15737
  return e(f) === c;
15736
- }, Ve.isSuspenseList = function(f) {
15738
+ }, We.isSuspenseList = function(f) {
15737
15739
  return e(f) === l;
15738
- }, Ve.isValidElementType = function(f) {
15740
+ }, We.isValidElementType = function(f) {
15739
15741
  return typeof f == "string" || typeof f == "function" || f === n || f === i || f === u || f === c || f === l || f === h || typeof f == "object" && f !== null && (f.$$typeof === o || f.$$typeof === p || f.$$typeof === s || f.$$typeof === a || f.$$typeof === d || f.$$typeof === m || f.getModuleId !== void 0);
15740
- }, Ve.typeOf = e;
15741
- }()), Ve;
15742
+ }, We.typeOf = e;
15743
+ }()), We;
15742
15744
  }
15743
15745
  var kc;
15744
15746
  function Bb() {
@@ -15864,8 +15866,8 @@ function Rb() {
15864
15866
  }
15865
15867
  function D(k) {
15866
15868
  if (typeof k == "object" && k !== null) {
15867
- var V = k.$$typeof;
15868
- switch (V) {
15869
+ var W = k.$$typeof;
15870
+ switch (W) {
15869
15871
  case r:
15870
15872
  var me = k.type;
15871
15873
  switch (me) {
@@ -15886,11 +15888,11 @@ function Rb() {
15886
15888
  case a:
15887
15889
  return Je;
15888
15890
  default:
15889
- return V;
15891
+ return W;
15890
15892
  }
15891
15893
  }
15892
15894
  case t:
15893
- return V;
15895
+ return W;
15894
15896
  }
15895
15897
  }
15896
15898
  }
@@ -16052,10 +16054,10 @@ function Lb() {
16052
16054
  process.env.NODE_ENV !== "production" && (t = {});
16053
16055
  }, Sa = u, Sa;
16054
16056
  }
16055
- var Ta, Wc;
16057
+ var Ta, Vc;
16056
16058
  function qb() {
16057
- if (Wc) return Ta;
16058
- Wc = 1;
16059
+ if (Vc) return Ta;
16060
+ Vc = 1;
16059
16061
  var e = jl(), r = kb(), t = /* @__PURE__ */ Cs(), n = /* @__PURE__ */ zl(), u = /* @__PURE__ */ Lb(), i = function() {
16060
16062
  };
16061
16063
  process.env.NODE_ENV !== "production" && (i = function(s) {
@@ -16115,11 +16117,11 @@ function qb() {
16115
16117
  );
16116
16118
  throw k.name = "Invariant Violation", k;
16117
16119
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
16118
- var V = be + ":" + oe;
16119
- !Z[V] && // Avoid spamming the console because they are often not actionable except for lib authors
16120
+ var W = be + ":" + oe;
16121
+ !Z[W] && // Avoid spamming the console because they are often not actionable except for lib authors
16120
16122
  ce < 3 && (i(
16121
16123
  "You are manually calling a React.PropTypes validation function for the `" + ve + "` prop on `" + be + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
16122
- ), Z[V] = !0, ce++);
16124
+ ), Z[W] = !0, ce++);
16123
16125
  }
16124
16126
  }
16125
16127
  return fe[oe] == null ? le ? fe[oe] === null ? new f("The " + ye + " `" + ve + "` is marked as required " + ("in `" + be + "`, but its value is `null`.")) : new f("The " + ye + " `" + ve + "` is marked as required in " + ("`" + be + "`, but its value is `undefined`.")) : null : L(fe, oe, be, ye, ve);
@@ -16204,8 +16206,8 @@ function qb() {
16204
16206
  if (m(oe, L[be]))
16205
16207
  return null;
16206
16208
  var ye = JSON.stringify(L, function(q, k) {
16207
- var V = J(k);
16208
- return V === "symbol" ? String(k) : k;
16209
+ var W = J(k);
16210
+ return W === "symbol" ? String(k) : k;
16209
16211
  });
16210
16212
  return new f("Invalid " + le + " `" + fe + "` of value `" + String(oe) + "` " + ("supplied to `" + se + "`, expected one of " + ye + "."));
16211
16213
  }
@@ -16245,8 +16247,8 @@ function qb() {
16245
16247
  return null;
16246
16248
  k.data && n(k.data, "expectedType") && ye.push(k.data.expectedType);
16247
16249
  }
16248
- var V = ye.length > 0 ? ", expected one of type [" + ye.join(", ") + "]" : "";
16249
- return new f("Invalid " + oe + " `" + be + "` supplied to " + ("`" + fe + "`" + V + "."));
16250
+ var W = ye.length > 0 ? ", expected one of type [" + ye.join(", ") + "]" : "";
16251
+ return new f("Invalid " + oe + " `" + be + "` supplied to " + ("`" + fe + "`" + W + "."));
16250
16252
  }
16251
16253
  return b(Y);
16252
16254
  }
@@ -16373,10 +16375,10 @@ Valid keys: ` + JSON.stringify(Object.keys(L), null, " ")
16373
16375
  return h.checkPropTypes = u, h.resetWarningCache = u.resetWarningCache, h.PropTypes = h, h;
16374
16376
  }, Ta;
16375
16377
  }
16376
- var Fa, Vc;
16378
+ var Fa, Wc;
16377
16379
  function $b() {
16378
- if (Vc) return Fa;
16379
- Vc = 1;
16380
+ if (Wc) return Fa;
16381
+ Wc = 1;
16380
16382
  var e = /* @__PURE__ */ Cs();
16381
16383
  function r() {
16382
16384
  }
@@ -16524,7 +16526,7 @@ const Xc = (e) => e, Hb = () => {
16524
16526
  e = Xc;
16525
16527
  }
16526
16528
  };
16527
- }, Wb = Hb(), Vb = {
16529
+ }, Vb = Hb(), Wb = {
16528
16530
  active: "active",
16529
16531
  checked: "checked",
16530
16532
  completed: "completed",
@@ -16539,8 +16541,8 @@ const Xc = (e) => e, Hb = () => {
16539
16541
  selected: "selected"
16540
16542
  };
16541
16543
  function Ss(e, r, t = "Mui") {
16542
- const n = Vb[r];
16543
- return n ? `${t}-${n}` : `${Wb.generate(e)}-${r}`;
16544
+ const n = Wb[r];
16545
+ return n ? `${t}-${n}` : `${Vb.generate(e)}-${r}`;
16544
16546
  }
16545
16547
  function Yb(e, r, t = "Mui") {
16546
16548
  const n = {};
@@ -16551,17 +16553,17 @@ function Yb(e, r, t = "Mui") {
16551
16553
  function Gb(e, r = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
16552
16554
  return Math.max(r, Math.min(e, t));
16553
16555
  }
16554
- function Wl(e) {
16556
+ function Vl(e) {
16555
16557
  var r, t, n = "";
16556
16558
  if (typeof e == "string" || typeof e == "number") n += e;
16557
16559
  else if (typeof e == "object") if (Array.isArray(e)) {
16558
16560
  var u = e.length;
16559
- for (r = 0; r < u; r++) e[r] && (t = Wl(e[r])) && (n && (n += " "), n += t);
16561
+ for (r = 0; r < u; r++) e[r] && (t = Vl(e[r])) && (n && (n += " "), n += t);
16560
16562
  } else for (t in e) e[t] && (n && (n += " "), n += t);
16561
16563
  return n;
16562
16564
  }
16563
16565
  function Xb() {
16564
- for (var e, r, t = 0, n = "", u = arguments.length; t < u; t++) (e = arguments[t]) && (r = Wl(e)) && (n && (n += " "), n += r);
16566
+ for (var e, r, t = 0, n = "", u = arguments.length; t < u; t++) (e = arguments[t]) && (r = Vl(e)) && (n && (n += " "), n += r);
16565
16567
  return n;
16566
16568
  }
16567
16569
  function qn(e, r) {
@@ -16768,17 +16770,17 @@ function c2(e, r, t, n) {
16768
16770
  const u = a2(t), i = o2(u, n), a = e[t];
16769
16771
  return Sr(e, a, i);
16770
16772
  }
16771
- function Vl(e, r) {
16773
+ function Wl(e, r) {
16772
16774
  const t = Ts(e.theme);
16773
16775
  return Object.keys(e).map((n) => c2(e, r, n, t)).reduce(qn, {});
16774
16776
  }
16775
16777
  function at(e) {
16776
- return Vl(e, gi);
16778
+ return Wl(e, gi);
16777
16779
  }
16778
16780
  at.propTypes = process.env.NODE_ENV !== "production" ? gi.reduce((e, r) => (e[r] = qr, e), {}) : {};
16779
16781
  at.filterProps = gi;
16780
16782
  function st(e) {
16781
- return Vl(e, bi);
16783
+ return Wl(e, bi);
16782
16784
  }
16783
16785
  st.propTypes = process.env.NODE_ENV !== "production" ? bi.reduce((e, r) => (e[r] = qr, e), {}) : {};
16784
16786
  st.filterProps = bi;
@@ -17328,11 +17330,11 @@ function H2(e) {
17328
17330
  if (document.styleSheets[r].ownerNode === e)
17329
17331
  return document.styleSheets[r];
17330
17332
  }
17331
- function W2(e) {
17333
+ function V2(e) {
17332
17334
  var r = document.createElement("style");
17333
17335
  return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
17334
17336
  }
17335
- var V2 = /* @__PURE__ */ function() {
17337
+ var W2 = /* @__PURE__ */ function() {
17336
17338
  function e(t) {
17337
17339
  var n = this;
17338
17340
  this._insertTag = function(u) {
@@ -17344,7 +17346,7 @@ var V2 = /* @__PURE__ */ function() {
17344
17346
  return r.hydrate = function(n) {
17345
17347
  n.forEach(this._insertTag);
17346
17348
  }, r.insert = function(n) {
17347
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(W2(this));
17349
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(V2(this));
17348
17350
  var u = this.tags[this.tags.length - 1];
17349
17351
  if (this.isSpeedy) {
17350
17352
  var i = H2(u);
@@ -17925,7 +17927,7 @@ var gy = function(r, t, n, u) {
17925
17927
  }
17926
17928
  var m = {
17927
17929
  key: t,
17928
- sheet: new V2({
17930
+ sheet: new W2({
17929
17931
  key: t,
17930
17932
  container: a,
17931
17933
  nonce: r.nonce,
@@ -18426,7 +18428,7 @@ const Hy = (e) => {
18426
18428
  [n.key]: n.val
18427
18429
  }), {});
18428
18430
  };
18429
- function Wy(e) {
18431
+ function Vy(e) {
18430
18432
  const {
18431
18433
  // The breakpoint **start** at this value.
18432
18434
  // For instance with the first breakpoint xs: [xs, sm).
@@ -18475,7 +18477,7 @@ function Wy(e) {
18475
18477
  ...u
18476
18478
  };
18477
18479
  }
18478
- const Vy = {
18480
+ const Wy = {
18479
18481
  borderRadius: 4
18480
18482
  };
18481
18483
  function af(e = 8, r = Ts({
@@ -18509,7 +18511,7 @@ function sf(e = {}, ...r) {
18509
18511
  spacing: u,
18510
18512
  shape: i = {},
18511
18513
  ...a
18512
- } = e, s = Wy(t), d = af(u);
18514
+ } = e, s = Vy(t), d = af(u);
18513
18515
  let c = $t({
18514
18516
  breakpoints: s,
18515
18517
  direction: "ltr",
@@ -18521,7 +18523,7 @@ function sf(e = {}, ...r) {
18521
18523
  },
18522
18524
  spacing: d,
18523
18525
  shape: {
18524
- ...Vy,
18526
+ ...Wy,
18525
18527
  ...i
18526
18528
  }
18527
18529
  }, a);
@@ -19736,7 +19738,7 @@ const sr = (e) => {
19736
19738
  return e();
19737
19739
  } catch {
19738
19740
  }
19739
- }, Wv = (e = "mui") => lv(e);
19741
+ }, Vv = (e = "mui") => lv(e);
19740
19742
  function Ma(e, r, t, n) {
19741
19743
  if (!r)
19742
19744
  return;
@@ -19772,7 +19774,7 @@ function Ma(e, r, t, n) {
19772
19774
  overlays: (r == null ? void 0 : r.overlays) || gf(u)
19773
19775
  }, a;
19774
19776
  }
19775
- function Vv(e = {}, ...r) {
19777
+ function Wv(e = {}, ...r) {
19776
19778
  const {
19777
19779
  colorSchemes: t = {
19778
19780
  light: !0
@@ -19784,7 +19786,7 @@ function Vv(e = {}, ...r) {
19784
19786
  colorSchemeSelector: s = t.light && t.dark ? "media" : void 0,
19785
19787
  rootSelector: d = ":root",
19786
19788
  ...c
19787
- } = e, l = Object.keys(t)[0], p = n || (t.light && l !== "light" ? "light" : l), o = Wv(i), {
19789
+ } = e, l = Object.keys(t)[0], p = n || (t.light && l !== "light" ? "light" : l), o = Vv(i), {
19788
19790
  [p]: h,
19789
19791
  light: m,
19790
19792
  dark: f,
@@ -19902,7 +19904,7 @@ function Yv(e = {}, ...r) {
19902
19904
  palette: p.palette
19903
19905
  }, g0(p, "light", c.light)), p;
19904
19906
  }
19905
- return !t && !("light" in c) && s === "light" && (c.light = !0), Vv({
19907
+ return !t && !("light" in c) && s === "light" && (c.light = !0), Wv({
19906
19908
  ...a,
19907
19909
  colorSchemes: c,
19908
19910
  defaultColorScheme: s,
@@ -20181,14 +20183,18 @@ function a3(e) {
20181
20183
  }
20182
20184
  const Mu = (e) => /^-?(?:\d+|\d*\.\d+|\d+\.)$/.test(e);
20183
20185
  function s3(e) {
20184
- const { disabled: r, readonly: t, decimalPlaces: n = 14, name: u, rules: i, sx: a, ...s } = e, {
20186
+ const { disabled: r, readonly: t, decimalPlaces: n = 14, name: u, rules: i = {}, sx: a, ...s } = e, {
20185
20187
  field: d,
20186
20188
  fieldState: { error: c }
20187
20189
  } = Zn({
20188
20190
  name: u,
20189
20191
  rules: {
20190
20192
  ...i,
20191
- validate: (h) => h && !Mu(h) ? "Please enter a valid number." : !0
20193
+ validate: {
20194
+ base: (h) => h && !Mu(h) ? "Please enter a valid number." : !0,
20195
+ ...i == null ? void 0 : i.validate
20196
+ // allow overriding of base validation
20197
+ }
20192
20198
  }
20193
20199
  }), l = (h) => {
20194
20200
  const m = h.target.value, f = a3(m);
@@ -20301,6 +20307,7 @@ function c3({
20301
20307
  value: Pa(c),
20302
20308
  onChange: (m, f) => s.onChange(f ? { displayValue: f.label, key: f.id } : null),
20303
20309
  options: h,
20310
+ isOptionEqualToValue: (m, f) => (m == null ? void 0 : m.id) === (f == null ? void 0 : f.id) || (m == null ? void 0 : m.label) === (f == null ? void 0 : f.label),
20304
20311
  renderInput: (m) => /* @__PURE__ */ te.jsx(
20305
20312
  rs,
20306
20313
  {
@@ -20417,10 +20424,10 @@ function f3() {
20417
20424
  le.length > 0 && (L.transform = le.join(" "), L.transformOrigin = "center", ce && (oe = n.createElement("g", { style: L }, fe, n.createElement("rect", { width: "24", height: "24", fill: "transparent" }))));
20418
20425
  var be, ye = oe, ve = re === !0 || typeof re != "number" ? 2 : re, q = !ce && (_ || B);
20419
20426
  if (ve < 0 && (q = !q), re && (ye = n.createElement("g", { style: { animation: "spin" + (q ? "-inverse" : "") + " linear " + Math.abs(ve) + "s infinite", transformOrigin: "center" } }, oe, !(_ || B || I !== 0) && n.createElement("rect", { width: "24", height: "24", fill: "transparent" }))), ce) return ye;
20420
- var k, V = "icon_labelledby_" + w, me = "icon_describedby_" + w;
20421
- if (D) be = E ? V + " " + me : V;
20427
+ var k, W = "icon_labelledby_" + w, me = "icon_describedby_" + w;
20428
+ if (D) be = E ? W + " " + me : W;
20422
20429
  else if (k = "presentation", E) throw new Error("title attribute required when description is set");
20423
- return n.createElement("svg", l({ ref: f, viewBox: "0 0 24 24", style: L, role: k, "aria-labelledby": be }, Y), D && n.createElement("title", { id: V }, D), E && n.createElement("desc", { id: me }, E), !ce && re && (q ? n.createElement("style", null, "@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }") : n.createElement("style", null, "@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }")), ye);
20430
+ return n.createElement("svg", l({ ref: f, viewBox: "0 0 24 24", style: L, role: k, "aria-labelledby": be }, Y), D && n.createElement("title", { id: W }, D), E && n.createElement("desc", { id: me }, E), !ce && re && (q ? n.createElement("style", null, "@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }") : n.createElement("style", null, "@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }")), ye);
20424
20431
  });
20425
20432
  h.displayName = "Icon", h.propTypes = { path: u.string.isRequired, size: u.oneOfType([u.number, u.string]), color: u.string, horizontal: u.bool, vertical: u.bool, rotate: u.number, spin: u.oneOfType([u.bool, u.number]), style: u.object, inStack: u.bool, className: u.string }, h.defaultProps = { size: null, color: "currentColor", horizontal: !1, vertical: !1, rotate: 0, spin: !1 }, r.default = h;
20426
20433
  }])), Ba;
@@ -20739,14 +20746,14 @@ class y3 extends b3 {
20739
20746
  locale: this.locale
20740
20747
  }), this.isValid = (n) => n == null ? !1 : O0(n), this.format = (n, u) => this.formatByString(n, this.formats[u]), this.formatByString = (n, u) => ss(n, u, {
20741
20748
  locale: this.locale
20742
- }), this.isEqual = (n, u) => n === null && u === null ? !0 : n === null || u === null ? !1 : rh(n, u), this.isSameYear = (n, u) => t1(n, u), this.isSameMonth = (n, u) => e1(n, u), this.isSameDay = (n, u) => Zf(n, u), this.isSameHour = (n, u) => Kh(n, u), this.isAfter = (n, u) => Pu(n, u), this.isAfterYear = (n, u) => Pu(n, Vs(u)), this.isAfterDay = (n, u) => Pu(n, Ws(u)), this.isBefore = (n, u) => Bu(n, u), this.isBeforeYear = (n, u) => Bu(n, this.startOfYear(u)), this.isBeforeDay = (n, u) => Bu(n, this.startOfDay(u)), this.isWithinRange = (n, [u, i]) => r1(n, {
20749
+ }), this.isEqual = (n, u) => n === null && u === null ? !0 : n === null || u === null ? !1 : rh(n, u), this.isSameYear = (n, u) => t1(n, u), this.isSameMonth = (n, u) => e1(n, u), this.isSameDay = (n, u) => Zf(n, u), this.isSameHour = (n, u) => Kh(n, u), this.isAfter = (n, u) => Pu(n, u), this.isAfterYear = (n, u) => Pu(n, Ws(u)), this.isAfterDay = (n, u) => Pu(n, Vs(u)), this.isBefore = (n, u) => Bu(n, u), this.isBeforeYear = (n, u) => Bu(n, this.startOfYear(u)), this.isBeforeDay = (n, u) => Bu(n, this.startOfDay(u)), this.isWithinRange = (n, [u, i]) => r1(n, {
20743
20750
  start: u,
20744
20751
  end: i
20745
20752
  }), this.startOfYear = (n) => N0(n), this.startOfMonth = (n) => ed(n), this.startOfWeek = (n) => Cr(n, {
20746
20753
  locale: this.locale
20747
- }), this.startOfDay = (n) => Xr(n), this.endOfYear = (n) => Vs(n), this.endOfMonth = (n) => Kf(n), this.endOfWeek = (n) => td(n, {
20754
+ }), this.startOfDay = (n) => Xr(n), this.endOfYear = (n) => Ws(n), this.endOfMonth = (n) => Kf(n), this.endOfWeek = (n) => td(n, {
20748
20755
  locale: this.locale
20749
- }), this.endOfDay = (n) => Ws(n), this.addYears = (n, u) => Qf(n, u), this.addMonths = (n, u) => ni(n, u), this.addWeeks = (n, u) => Xf(n, u), this.addDays = (n, u) => Gr(n, u), this.addHours = (n, u) => Uf(n, u), this.addMinutes = (n, u) => Yf(n, u), this.addSeconds = (n, u) => Gf(n, u), this.getYear = (n) => th(n), this.getMonth = (n) => Kd(n), this.getDate = (n) => Yd(n), this.getHours = (n) => Xd(n), this.getMinutes = (n) => Jd(n), this.getSeconds = (n) => eh(n), this.getMilliseconds = (n) => Zd(n), this.setYear = (n, u) => l1(n, u), this.setMonth = (n, u) => u1(n, u), this.setDate = (n, u) => i1(n, u), this.setHours = (n, u) => a1(n, u), this.setMinutes = (n, u) => o1(n, u), this.setSeconds = (n, u) => c1(n, u), this.setMilliseconds = (n, u) => s1(n, u), this.getDaysInMonth = (n) => R0(n), this.getWeekArray = (n) => {
20756
+ }), this.endOfDay = (n) => Vs(n), this.addYears = (n, u) => Qf(n, u), this.addMonths = (n, u) => ni(n, u), this.addWeeks = (n, u) => Xf(n, u), this.addDays = (n, u) => Gr(n, u), this.addHours = (n, u) => Uf(n, u), this.addMinutes = (n, u) => Yf(n, u), this.addSeconds = (n, u) => Gf(n, u), this.getYear = (n) => th(n), this.getMonth = (n) => Kd(n), this.getDate = (n) => Yd(n), this.getHours = (n) => Xd(n), this.getMinutes = (n) => Jd(n), this.getSeconds = (n) => eh(n), this.getMilliseconds = (n) => Zd(n), this.setYear = (n, u) => l1(n, u), this.setMonth = (n, u) => u1(n, u), this.setDate = (n, u) => i1(n, u), this.setHours = (n, u) => a1(n, u), this.setMinutes = (n, u) => o1(n, u), this.setSeconds = (n, u) => c1(n, u), this.setMilliseconds = (n, u) => s1(n, u), this.getDaysInMonth = (n) => R0(n), this.getWeekArray = (n) => {
20750
20757
  const u = this.startOfWeek(this.startOfMonth(n)), i = this.endOfWeek(this.endOfMonth(n));
20751
20758
  let a = 0, s = u;
20752
20759
  const d = [];
@@ -20794,12 +20801,12 @@ const bf = w0(void 0), v3 = ({
20794
20801
  name: "Date",
20795
20802
  groups: [],
20796
20803
  dateFormat: "MM/dd/yyyy",
20797
- renderField: (e, r, { disabled: t, readonly: n, name: u, icons: i }) => /* @__PURE__ */ te.jsx(
20804
+ renderField: (e, r, { disabled: t, readonly: n, name: u, icons: i, rules: a }) => /* @__PURE__ */ te.jsx(
20798
20805
  z1,
20799
20806
  {
20800
20807
  name: u ?? e.id,
20801
20808
  label: /* @__PURE__ */ te.jsx(Cn, { ...e, readonly: n, icons: i, children: e.label }),
20802
- rules: ou(e),
20809
+ rules: { ...ou(e), ...a },
20803
20810
  constraints: e.constraints,
20804
20811
  dateFormat: r.dateFormat,
20805
20812
  disabled: t,
@@ -20810,12 +20817,12 @@ const bf = w0(void 0), v3 = ({
20810
20817
  type: "DROPDOWN",
20811
20818
  name: "Dropdown",
20812
20819
  groups: [],
20813
- renderField: (e, r, { disabled: t, readonly: n, name: u, icons: i }) => /* @__PURE__ */ te.jsx(
20820
+ renderField: (e, r, { disabled: t, readonly: n, name: u, icons: i, rules: a }) => /* @__PURE__ */ te.jsx(
20814
20821
  c3,
20815
20822
  {
20816
20823
  name: u ?? e.id,
20817
20824
  label: /* @__PURE__ */ te.jsx(Cn, { ...e, readonly: n, icons: i, children: e.label }),
20818
- rules: ou(e),
20825
+ rules: { ...ou(e), ...a },
20819
20826
  options: e.options,
20820
20827
  disabled: t,
20821
20828
  readonly: n
@@ -20825,12 +20832,12 @@ const bf = w0(void 0), v3 = ({
20825
20832
  type: "CHECKBOX",
20826
20833
  name: "Checkbox",
20827
20834
  groups: [],
20828
- renderField: (e, r, { disabled: t, readonly: n, name: u, icons: i }) => /* @__PURE__ */ te.jsx(
20835
+ renderField: (e, r, { disabled: t, readonly: n, name: u, icons: i, rules: a }) => /* @__PURE__ */ te.jsx(
20829
20836
  H1,
20830
20837
  {
20831
20838
  name: u ?? e.id,
20832
20839
  label: /* @__PURE__ */ te.jsx(Cn, { ...e, readonly: n, icons: i, children: e.label }),
20833
- rules: ou(e),
20840
+ rules: { ...ou(e), ...a },
20834
20841
  disabled: t,
20835
20842
  readonly: n
20836
20843
  }
@@ -20841,10 +20848,10 @@ const bf = w0(void 0), v3 = ({
20841
20848
  groups: [],
20842
20849
  maxLength: 262144,
20843
20850
  filter: (e) => e.replace(/[^\u0000-\u00FF ]/g, ""),
20844
- renderField: (e, r, { disabled: t, readonly: n, name: u, icons: i }) => /* @__PURE__ */ te.jsx(
20845
- W1,
20851
+ renderField: (e, r, { disabled: t, readonly: n, name: u, icons: i, rules: a }) => /* @__PURE__ */ te.jsx(
20852
+ V1,
20846
20853
  {
20847
- rules: ou(e),
20854
+ rules: { ...ou(e), ...a },
20848
20855
  label: /* @__PURE__ */ te.jsx(Cn, { ...e, readonly: n, icons: i, children: e.label }),
20849
20856
  name: u ?? e.id,
20850
20857
  disabled: t,
@@ -20858,13 +20865,12 @@ const bf = w0(void 0), v3 = ({
20858
20865
  name: "Number",
20859
20866
  groups: [],
20860
20867
  decimalPlaces: 14,
20861
- renderField: (e, r, { disabled: t, readonly: n, name: u, icons: i }) => /* @__PURE__ */ te.jsx(
20868
+ renderField: (e, r, { disabled: t, readonly: n, name: u, icons: i, rules: a }) => /* @__PURE__ */ te.jsx(
20862
20869
  s3,
20863
20870
  {
20864
20871
  name: u ?? e.id,
20865
20872
  label: /* @__PURE__ */ te.jsx(Cn, { ...e, readonly: n, icons: i, children: e.label }),
20866
20873
  rules: {
20867
- ...ou(e),
20868
20874
  min: {
20869
20875
  value: e.min,
20870
20876
  message: `Value must be at least ${e.min}.`
@@ -20872,7 +20878,9 @@ const bf = w0(void 0), v3 = ({
20872
20878
  max: {
20873
20879
  value: e.max,
20874
20880
  message: `Value must be no more than ${e.max}.`
20875
- }
20881
+ },
20882
+ ...ou(e),
20883
+ ...a
20876
20884
  },
20877
20885
  disabled: t,
20878
20886
  readonly: n,
@@ -20887,8 +20895,7 @@ const bf = w0(void 0), v3 = ({
20887
20895
  o3,
20888
20896
  {
20889
20897
  name: n ?? e.id,
20890
- label: /* @__PURE__ */ te.jsx(Cn, { ...e, readonly: t, icons: u, children: e.label }),
20891
- rules: []
20898
+ label: /* @__PURE__ */ te.jsx(Cn, { ...e, readonly: t, icons: u, children: e.label })
20892
20899
  }
20893
20900
  )
20894
20901
  }, ou = (e) => ({
@@ -20971,15 +20978,16 @@ function O3({
20971
20978
  readonly: t,
20972
20979
  disabled: n,
20973
20980
  wrapper: u,
20974
- icons: i
20981
+ icons: i,
20982
+ rules: a
20975
20983
  }) {
20976
- const { field: a } = yf(), s = E3(e), d = D3(s.type);
20977
- if (!d || !d.renderField) return /* @__PURE__ */ te.jsxs(Mr, { children: [
20984
+ const { field: s } = yf(), d = E3(e), c = D3(d.type);
20985
+ if (!c || !c.renderField) return /* @__PURE__ */ te.jsxs(Mr, { children: [
20978
20986
  "Missing render for field type ",
20979
- s.type
20987
+ d.type
20980
20988
  ] });
20981
- const { renderField: c, ...l } = d, p = a == null ? void 0 : a(s, l), o = u || Mr;
20982
- return /* @__PURE__ */ te.jsx(o, { "data-testid": "field-container", field: s, sx: p, children: c(s, l, { readonly: t, name: r, disabled: n, icons: i }) });
20989
+ const { renderField: l, ...p } = c, o = s == null ? void 0 : s(d, p), h = u || Mr;
20990
+ return /* @__PURE__ */ te.jsx(h, { "data-testid": "field-container", field: d, sx: o, children: l(d, p, { readonly: t, name: r, disabled: n, icons: i, rules: a }) });
20983
20991
  }
20984
20992
  function j3({
20985
20993
  section: e,
@@ -21017,7 +21025,7 @@ export {
21017
21025
  xn as ReadOnlyField,
21018
21026
  L3 as RendererProvider,
21019
21027
  j3 as Section,
21020
- W1 as TextInput,
21028
+ V1 as TextInput,
21021
21029
  _3 as defaultFieldTypes,
21022
21030
  ou as defaultRules
21023
21031
  };