@altimateai/ui-components 0.0.77-beta.5 → 0.0.77-combobox-beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/CoachForm.css +1 -1
  2. package/dist/CoachForm.js +20266 -23806
  3. package/dist/Stack.js +2211 -2808
  4. package/dist/Switch.js +87 -128
  5. package/dist/ToggleGroup.js +5000 -6188
  6. package/dist/_basePickBy.js +25 -25
  7. package/dist/_baseUniq.js +122 -122
  8. package/dist/arc.js +36 -36
  9. package/dist/architectureDiagram-VXUJARFQ.js +1 -1
  10. package/dist/assets/icons/index.js +1 -1
  11. package/dist/blockDiagram-VD42YOAC.js +1 -1
  12. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  13. package/dist/channel.js +2 -2
  14. package/dist/chatbotV2/index.d.ts +10 -61
  15. package/dist/chatbotV2/index.js +56 -442
  16. package/dist/chunk-4BX2VUAB.js +1 -1
  17. package/dist/chunk-55IACEB6.js +2 -2
  18. package/dist/chunk-B4BG7PRW.js +1 -1
  19. package/dist/chunk-DI55MBZ5.js +1 -1
  20. package/dist/chunk-FMBD7UC4.js +1 -1
  21. package/dist/chunk-QN33PNHL.js +5 -5
  22. package/dist/chunk-QZHKN3VN.js +1 -1
  23. package/dist/chunk-TZMSLE5B.js +1 -1
  24. package/dist/classDiagram-2ON5EDUG.js +1 -1
  25. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  26. package/dist/cose-bilkent-S5V4N54A.js +1 -1
  27. package/dist/dagre-6UL2VRFP.js +58 -58
  28. package/dist/dayjs.min.js +1 -1
  29. package/dist/diagram-PSM6KHXK.js +48 -48
  30. package/dist/diagram-QEK2KX5R.js +26 -26
  31. package/dist/diagram-S2PKOQOG.js +9 -9
  32. package/dist/erDiagram-Q2GNP2WA.js +12 -12
  33. package/dist/flowDiagram-NV44I4VS.js +6 -6
  34. package/dist/ganttDiagram-LVOFAZNH.js +322 -322
  35. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  36. package/dist/graph.js +5 -5
  37. package/dist/index.css +1 -1
  38. package/dist/index.d.ts +1 -9
  39. package/dist/index.js +23 -24
  40. package/dist/index2.js +22 -22
  41. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  42. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  43. package/dist/kanban-definition-3W4ZIXB7.js +54 -54
  44. package/dist/layout.js +52 -52
  45. package/dist/lineage/index.js +15 -15
  46. package/dist/main.js +5 -5
  47. package/dist/mermaid-parser.core.js +1 -1
  48. package/dist/mindmap-definition-VGOIOE7T.js +16 -16
  49. package/dist/pieDiagram-ADFJNKIX.js +25 -25
  50. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  51. package/dist/redux-toolkit.modern.js +7 -7
  52. package/dist/requirementDiagram-UZGBJVZJ.js +1 -1
  53. package/dist/sankeyDiagram-TZEHDZUN.js +16 -16
  54. package/dist/sequenceDiagram-WL72ISMW.js +28 -28
  55. package/dist/shadcn/index.d.ts +8 -11
  56. package/dist/shadcn/index.js +4869 -6296
  57. package/dist/stateDiagram-FKZM4ZOC.js +34 -34
  58. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  59. package/dist/timeline-definition-IT6M3QCI.js +54 -54
  60. package/dist/xychartDiagram-PRI3JC2R.js +32 -32
  61. package/package.json +1 -1
  62. package/dist/Accordion.js +0 -402
  63. package/dist/index2.css +0 -1
@@ -1,11 +1,11 @@
1
- import '../index2.css';var Or = Object.defineProperty;
1
+ import '../index.css';var Or = Object.defineProperty;
2
2
  var Rr = (e, t, n) => t in e ? Or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var it = (e, t, n) => Rr(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { j as r, h as Cs, i as zr, k as $r, l as g2, d as Wr, C as Ur, m as gs, n as ms, H as ps, B as xs, I as Yr, o as Kr, R as Xr } from "../index2.js";
4
+ import { j as r, g as Cs, h as zr, i as $r, k as g2, c as Wr, b as Ur, l as gs, m as ms, H as ps, B as xs, I as Yr, n as Kr, R as Xr } from "../index2.js";
5
5
  import * as g from "react";
6
6
  import T, { createContext as It, memo as ce, useMemo as we, forwardRef as A2, useEffect as X, useRef as J, useContext as Ae, useState as se, useCallback as re, useReducer as Gr, useImperativeHandle as qr } from "react";
7
- import { s as De, p as ws, q as Qe, T as qt, t as Jt, k as Jr, g as ys, A as ue, l as Dt, m as Es, I as Qr, u as ea, o as ta } from "../redux-toolkit.modern.js";
8
- import { c as Be, T as t1, a0 as vs, a1 as bs, B as xe, a2 as _s, S as R, j as Se, a as Ss, I as m2, i as na, a5 as V2, a6 as Ls, a3 as yt, a9 as sa, J as oa, aa as ra, ab as aa, K as ia } from "../Stack.js";
7
+ import { s as De, o as ws, p as Qe, T as qt, q as Jt, k as Jr, g as ys, A as ue, l as Dt, I as Es, t as Qr, u as ea, m as ta } from "../redux-toolkit.modern.js";
8
+ import { c as Be, Y as t1, Z as vs, _ as bs, B as xe, $ as _s, X as R, a0 as Se, g as Ss, I as m2, T as na, a4 as V2, a5 as Ls, a1 as yt, a8 as sa, M as oa, a9 as ra, aa, N as ia } from "../Stack.js";
9
9
  import { createPortal as ot } from "react-dom";
10
10
  import { d as la, C as ca, T as da } from "../dayjs.min.js";
11
11
  import { I as ua } from "../IconEye.js";
@@ -543,17 +543,6 @@ function Ga() {
543
543
  return arguments.length ? (v = +x, u) : v;
544
544
  }, u;
545
545
  }
546
- function Ee(e) {
547
- if (typeof e == "string" || typeof e == "number") return "" + e;
548
- let t = "";
549
- if (Array.isArray(e))
550
- for (let n = 0, s; n < e.length; n++)
551
- (s = Ee(e[n])) !== "" && (t += (t && " ") + s);
552
- else
553
- for (let n in e)
554
- e[n] && (t += (t && " ") + n);
555
- return t;
556
- }
557
546
  const qa = {
558
547
  selectedTable: "",
559
548
  moreTables: {},
@@ -741,6 +730,17 @@ const qa = {
741
730
  setConfig: li,
742
731
  setClient: _c
743
732
  } = vt.actions;
733
+ function Ee(e) {
734
+ if (typeof e == "string" || typeof e == "number") return "" + e;
735
+ let t = "";
736
+ if (Array.isArray(e))
737
+ for (let n = 0, s; n < e.length; n++)
738
+ (s = Ee(e[n])) !== "" && (t += (t && " ") + s);
739
+ else
740
+ for (let n in e)
741
+ e[n] && (t += (t && " ") + n);
742
+ return t;
743
+ }
744
744
  var x2 = { exports: {} }, s2 = {}, dt = { exports: {} }, o2 = {};
745
745
  /**
746
746
  * @license React
package/dist/main.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { d as dt, C as Yn } from "./dayjs.min.js";
2
- import { aX as un, cj as Wn, ck as Xn, cl as Kn, cm as Gn, cn as Zn, co as rt, cp as Qn, cq as Jn } from "./CoachForm.js";
3
- import { g as yt, k as ln, A as ve, l as er, m as Ie, u as cn, o as tr } from "./redux-toolkit.modern.js";
4
- import { B as ye, a5 as $e, a6 as He, a7 as nr, S as oe, a8 as rr, i as or, j as ft, T as ir } from "./Stack.js";
5
- import { j as h, A as dn, f as sr, g as ar, b as ur, e as lr, D as cr, E as dr, d as fr, C as pr } from "./index2.js";
2
+ import { ce as un, cf as Wn, cg as Xn, ch as Kn, ci as Gn, cj as Zn, ck as rt, cl as Qn, cm as Jn } from "./CoachForm.js";
3
+ import { g as yt, k as ln, A as ve, l as er, I as Ie, u as cn, m as tr } from "./redux-toolkit.modern.js";
4
+ import { B as ye, a4 as $e, a5 as He, a6 as nr, X as oe, a7 as rr, T as or, a0 as ft, Y as ir } from "./Stack.js";
5
+ import { j as h, A as dn, e as sr, f as ar, a as ur, d as lr, D as cr, E as dr, c as fr, b as pr } from "./index2.js";
6
6
  import * as te from "react";
7
7
  import Z, { createContext as _e, useReducer as fn, useCallback as we, useMemo as fe, useContext as be, useLayoutEffect as gr, useEffect as le, useRef as Se, useId as pn, useInsertionEffect as hr, Children as De, isValidElement as vr, useState as re, lazy as mr } from "react";
8
8
  import Er, { createPortal as bt } from "react-dom";
9
- import { a as yr, F as Mt, b as br, A as gn, N as Lt, B as Cr } from "./ToggleGroup.js";
9
+ import { u as yr, F as Mt, a as br, A as gn, N as Lt, B as Cr } from "./ToggleGroup.js";
10
10
  import { S as Sr } from "./Switch.js";
11
11
  import './main.css';var Ct = /* @__PURE__ */ ((e) => (e.DBT_DOCS = "dbt-docs", e.DOCUMENTATION_EDITOR = "documentation-editor", e.SAAS = "saas", e))(Ct || {});
12
12
  const _r = () => {
@@ -1,7 +1,7 @@
1
1
  var Ac = Object.defineProperty;
2
2
  var Ec = (n, e, t) => e in n ? Ac(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var Ze = (n, e, t) => Ec(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { cy as $c, cz as kc, bK as Nl, c3 as xc, bO as Sc, bL as ee, az as Ic, aA as Ea, bV as Cc, bY as wl, bZ as Ll, c8 as $a, bW as Nc, aC as vt, aD as D, bM as ka, bG as wc } from "./CoachForm.js";
4
+ import { cw as $c, cx as kc, bF as Nl, b_ as xc, bJ as Sc, bG as ee, bq as Ic, br as Ea, bQ as Cc, bT as wl, bU as Ll, c3 as $a, bR as Nc, bt as vt, bu as D, bH as ka, bB as wc } from "./CoachForm.js";
5
5
  import { k as qt, j as Hs, g as nn, S as Lc, w as _c, x as bc, c as _l, v as z, y as bl, l as Oc, z as Pc, A as Mc, B as Dc, C as Fc, a as Ol, d as C, i as Ye, r as le, f as ke, D as Y } from "./_baseUniq.js";
6
6
  import { j as js, m as x, d as Gc, f as Ne, g as Yt, i as zs, h as N, l as Xt, e as Uc } from "./_basePickBy.js";
7
7
  import { c as ne } from "./clone.js";
@@ -1,6 +1,6 @@
1
1
  import { g as le } from "./chunk-55IACEB6.js";
2
2
  import { s as he } from "./chunk-QN33PNHL.js";
3
- import { _ as l, l as C, d as X, B as G, i as F, aG as de, x as ge, y as ue, W as pe, X as fe, Y as ye } from "./CoachForm.js";
3
+ import { a1 as l, ad as C, a7 as X, au as j, ac as F, bx as de, aq as ge, ar as ue, aP as pe, aQ as fe, aR as ye } from "./CoachForm.js";
4
4
  const E = [];
5
5
  for (let t = 0; t < 256; ++t)
6
6
  E.push((t + 256).toString(16).slice(1));
@@ -32,7 +32,7 @@ var q = function() {
32
32
  var t = /* @__PURE__ */ l(function(v, s, i, a) {
33
33
  for (i = i || {}, a = v.length; a--; i[v[a]] = s) ;
34
34
  return i;
35
- }, "o"), e = [1, 4], n = [1, 13], c = [1, 12], u = [1, 15], h = [1, 16], p = [1, 20], y = [1, 19], _ = [6, 7, 8], b = [1, 26], m = [1, 24], w = [1, 25], D = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], Q = [1, 34], A = [1, 6, 7, 11, 13, 15, 16, 19, 22], j = {
35
+ }, "o"), e = [1, 4], n = [1, 13], c = [1, 12], u = [1, 15], h = [1, 16], p = [1, 20], y = [1, 19], _ = [6, 7, 8], b = [1, 26], m = [1, 24], w = [1, 25], D = [6, 7, 11], Q = [1, 6, 13, 15, 16, 19, 22], J = [1, 33], K = [1, 34], A = [1, 6, 7, 11, 13, 15, 16, 19, 22], G = {
36
36
  trace: /* @__PURE__ */ l(function() {
37
37
  }, "trace"),
38
38
  yy: {},
@@ -87,7 +87,7 @@ var q = function() {
87
87
  break;
88
88
  }
89
89
  }, "anonymous"),
90
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(_, [2, 3]), { 1: [2, 2] }, t(_, [2, 4]), t(_, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: b, 7: m, 10: 23, 11: w }, t(D, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: y }), t(D, [2, 18]), t(D, [2, 19]), t(D, [2, 20]), t(D, [2, 21]), t(D, [2, 23]), t(D, [2, 24]), t(D, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: b, 7: m, 10: 32, 11: w }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(J, [2, 14], { 7: K, 11: Q }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(D, [2, 15]), t(D, [2, 16]), t(D, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(J, [2, 13], { 7: K, 11: Q }), t(A, [2, 11]), t(A, [2, 12]), { 21: [1, 37] }, t(D, [2, 25]), t(D, [2, 27])],
90
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(_, [2, 3]), { 1: [2, 2] }, t(_, [2, 4]), t(_, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: b, 7: m, 10: 23, 11: w }, t(D, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: y }), t(D, [2, 18]), t(D, [2, 19]), t(D, [2, 20]), t(D, [2, 21]), t(D, [2, 23]), t(D, [2, 24]), t(D, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: b, 7: m, 10: 32, 11: w }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(Q, [2, 14], { 7: J, 11: K }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(D, [2, 15]), t(D, [2, 16]), t(D, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(Q, [2, 13], { 7: J, 11: K }), t(A, [2, 11]), t(A, [2, 12]), { 21: [1, 37] }, t(D, [2, 25]), t(D, [2, 27])],
91
91
  defaultActions: { 2: [2, 1], 6: [2, 2] },
92
92
  parseError: /* @__PURE__ */ l(function(s, i) {
93
93
  if (i.recoverable)
@@ -115,15 +115,15 @@ var q = function() {
115
115
  return N = o.pop() || f.lex() || ee, typeof N != "number" && (N instanceof Array && (o = N, N = o.pop()), N = i.symbols_[N] || N), N;
116
116
  }
117
117
  l(te, "lex");
118
- for (var S, O, k, W, I = {}, V, L, ie, B; ; ) {
118
+ for (var S, O, k, z, I = {}, V, L, ie, B; ; ) {
119
119
  if (O = a[a.length - 1], this.defaultActions[O] ? k = this.defaultActions[O] : ((S === null || typeof S > "u") && (S = te()), k = U[O] && U[O][S]), typeof k > "u" || !k.length || !k[0]) {
120
- var z = "";
120
+ var W = "";
121
121
  B = [];
122
122
  for (V in U[O])
123
123
  this.terminals_[V] && V > re && B.push("'" + this.terminals_[V] + "'");
124
- f.showPosition ? z = "Parse error on line " + (M + 1) + `:
124
+ f.showPosition ? W = "Parse error on line " + (M + 1) + `:
125
125
  ` + f.showPosition() + `
126
- Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : z = "Parse error on line " + (M + 1) + ": Unexpected " + (S == ee ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(z, {
126
+ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "Parse error on line " + (M + 1) + ": Unexpected " + (S == ee ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(W, {
127
127
  text: f.match,
128
128
  token: this.terminals_[S] || S,
129
129
  line: f.yylineno,
@@ -146,7 +146,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : z = "
146
146
  }, oe && (I._$.range = [
147
147
  r[r.length - (L || 1)].range[0],
148
148
  r[r.length - 1].range[1]
149
- ]), W = this.performAction.apply(I, [
149
+ ]), z = this.performAction.apply(I, [
150
150
  d,
151
151
  Z,
152
152
  M,
@@ -154,8 +154,8 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : z = "
154
154
  k[1],
155
155
  g,
156
156
  r
157
- ].concat(ae)), typeof W < "u")
158
- return W;
157
+ ].concat(ae)), typeof z < "u")
158
+ return z;
159
159
  L && (a = a.slice(0, -1 * L * 2), g = g.slice(0, -1 * L), r = r.slice(0, -1 * L)), a.push(this.productions_[k[1]][0]), g.push(I.$), r.push(I._$), ie = U[a[a.length - 2]][a[a.length - 1]], a.push(ie);
160
160
  break;
161
161
  case 3:
@@ -425,11 +425,11 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : z = "
425
425
  };
426
426
  return v;
427
427
  }();
428
- j.lexer = se;
428
+ G.lexer = se;
429
429
  function P() {
430
430
  this.yy = {};
431
431
  }
432
- return l(P, "Parser"), P.prototype = j, j.Parser = P, new P();
432
+ return l(P, "Parser"), P.prototype = G, G.Parser = P, new P();
433
433
  }();
434
434
  q.parser = q;
435
435
  var De = q, x = {
@@ -463,7 +463,7 @@ var De = q, x = {
463
463
  let h = !1;
464
464
  this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
465
465
  const p = X();
466
- let y = ((m = p.mindmap) == null ? void 0 : m.padding) ?? G.mindmap.padding;
466
+ let y = ((m = p.mindmap) == null ? void 0 : m.padding) ?? j.mindmap.padding;
467
467
  switch (u) {
468
468
  case this.nodeType.ROUNDED_RECT:
469
469
  case this.nodeType.RECT:
@@ -478,7 +478,7 @@ var De = q, x = {
478
478
  descr: F(c, p),
479
479
  type: u,
480
480
  children: [],
481
- width: ((w = p.mindmap) == null ? void 0 : w.maxNodeWidth) ?? G.mindmap.maxNodeWidth,
481
+ width: ((w = p.mindmap) == null ? void 0 : w.maxNodeWidth) ?? j.mindmap.maxNodeWidth,
482
482
  padding: y,
483
483
  isRoot: h
484
484
  }, b = this.getParent(e);
@@ -697,9 +697,9 @@ var De = q, x = {
697
697
  m.shape === "rounded" ? (m.radius = 15, m.taper = 15, m.stroke = "none", m.width = 0, m.padding = 15) : m.shape === "circle" ? m.padding = 10 : m.shape === "rect" && (m.width = 0, m.padding = 10);
698
698
  }), await ue(h, p), he(
699
699
  p,
700
- ((_ = h.config.mindmap) == null ? void 0 : _.padding) ?? G.mindmap.padding,
700
+ ((_ = h.config.mindmap) == null ? void 0 : _.padding) ?? j.mindmap.padding,
701
701
  "mindmapDiagram",
702
- ((b = h.config.mindmap) == null ? void 0 : b.useMaxWidth) ?? G.mindmap.useMaxWidth
702
+ ((b = h.config.mindmap) == null ? void 0 : b.useMaxWidth) ?? j.mindmap.useMaxWidth
703
703
  ));
704
704
  }, "draw"), Le = {
705
705
  draw: ke
@@ -1,4 +1,4 @@
1
- import { aa as S, a2 as F, aF as Z, B as q, m as H, n as J, s as K, g as Q, c as X, b as Y, _ as g, l as z, r as ee, d as te, C as ae, G as re, O as ne, j as ie } from "./CoachForm.js";
1
+ import { b1 as S, aV as z, bw as Z, au as q, ag as H, ah as J, a3 as K, a4 as Q, a6 as X, a5 as Y, a1 as g, ad as F, an as ee, a7 as te, av as ae, az as re, aG as ne, ae as ie } from "./CoachForm.js";
2
2
  import { p as se } from "./chunk-4BX2VUAB.js";
3
3
  import { p as le } from "./mermaid-parser.core.js";
4
4
  import "./redux-toolkit.modern.js";
@@ -11,15 +11,15 @@ function ue(e) {
11
11
  return e;
12
12
  }
13
13
  function pe() {
14
- var e = ue, a = ce, f = null, x = S(0), s = S(F), o = S(0);
14
+ var e = ue, a = ce, f = null, x = S(0), s = S(z), o = S(0);
15
15
  function l(t) {
16
- var n, c = (t = Z(t)).length, u, y, m = 0, p = new Array(c), i = new Array(c), v = +x.apply(this, arguments), w = Math.min(F, Math.max(-F, s.apply(this, arguments) - v)), h, D = Math.min(Math.abs(w) / c, o.apply(this, arguments)), $ = D * (w < 0 ? -1 : 1), d;
16
+ var n, c = (t = Z(t)).length, u, y, m = 0, p = new Array(c), i = new Array(c), v = +x.apply(this, arguments), w = Math.min(z, Math.max(-z, s.apply(this, arguments) - v)), h, C = Math.min(Math.abs(w) / c, o.apply(this, arguments)), $ = C * (w < 0 ? -1 : 1), d;
17
17
  for (n = 0; n < c; ++n)
18
18
  (d = i[p[n] = n] = +e(t[n], n, t)) > 0 && (m += d);
19
- for (a != null ? p.sort(function(A, C) {
20
- return a(i[A], i[C]);
21
- }) : f != null && p.sort(function(A, C) {
22
- return f(t[A], t[C]);
19
+ for (a != null ? p.sort(function(A, D) {
20
+ return a(i[A], i[D]);
21
+ }) : f != null && p.sort(function(A, D) {
22
+ return f(t[A], t[D]);
23
23
  }), n = 0, y = m ? (w - c * $) / m : 0; n < c; ++n, v = h)
24
24
  u = p[n], d = i[u], h = v + (d > 0 ? d * y : 0) + $, i[u] = {
25
25
  data: t[u],
@@ -27,7 +27,7 @@ function pe() {
27
27
  value: d,
28
28
  startAngle: v,
29
29
  endAngle: h,
30
- padAngle: D
30
+ padAngle: C
31
31
  };
32
32
  return i;
33
33
  }
@@ -56,7 +56,7 @@ var L = q.pie, G = {
56
56
  throw new Error(
57
57
  `"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`
58
58
  );
59
- T.has(e) || (T.set(e, a), z.debug(`added new section: ${e}, with value: ${a}`));
59
+ T.has(e) || (T.set(e, a), F.debug(`added new section: ${e}, with value: ${a}`));
60
60
  }, "addSection"), me = /* @__PURE__ */ g(() => T, "getSections"), ve = /* @__PURE__ */ g((e) => {
61
61
  N = e;
62
62
  }, "setShowData"), Se = /* @__PURE__ */ g(() => N, "getShowData"), _ = {
@@ -77,7 +77,7 @@ var L = q.pie, G = {
77
77
  }, "populateDb"), ye = {
78
78
  parse: /* @__PURE__ */ g(async (e) => {
79
79
  const a = await le("pie", e);
80
- z.debug(a), xe(a, _);
80
+ F.debug(a), xe(a, _);
81
81
  }, "parse")
82
82
  }, we = /* @__PURE__ */ g((e) => `
83
83
  .pieCircle{
@@ -107,20 +107,20 @@ var L = q.pie, G = {
107
107
  font-family: ${e.fontFamily};
108
108
  font-size: ${e.pieLegendTextSize};
109
109
  }
110
- `, "getStyles"), Ae = we, Ce = /* @__PURE__ */ g((e) => {
110
+ `, "getStyles"), Ae = we, De = /* @__PURE__ */ g((e) => {
111
111
  const a = [...e.values()].reduce((s, o) => s + o, 0), f = [...e.entries()].map(([s, o]) => ({ label: s, value: o })).filter((s) => s.value / a * 100 >= 1).sort((s, o) => o.value - s.value);
112
112
  return pe().value((s) => s.value)(f);
113
- }, "createPieArcs"), De = /* @__PURE__ */ g((e, a, f, x) => {
114
- z.debug(`rendering pie chart
113
+ }, "createPieArcs"), Ce = /* @__PURE__ */ g((e, a, f, x) => {
114
+ F.debug(`rendering pie chart
115
115
  ` + e);
116
116
  const s = x.db, o = te(), l = ae(s.getConfig(), o.pie), t = 40, n = 18, c = 4, u = 450, y = u, m = re(a), p = m.append("g");
117
117
  p.attr("transform", "translate(" + y / 2 + "," + u / 2 + ")");
118
118
  const { themeVariables: i } = o;
119
119
  let [v] = ne(i.pieOuterStrokeWidth);
120
120
  v ?? (v = 2);
121
- const w = l.textPosition, h = Math.min(y, u) / 2 - t, D = I().innerRadius(0).outerRadius(h), $ = I().innerRadius(h * w).outerRadius(h * w);
121
+ const w = l.textPosition, h = Math.min(y, u) / 2 - t, C = I().innerRadius(0).outerRadius(h), $ = I().innerRadius(h * w).outerRadius(h * w);
122
122
  p.append("circle").attr("cx", 0).attr("cy", 0).attr("r", h + v / 2).attr("class", "pieOuterCircle");
123
- const d = s.getSections(), A = Ce(d), C = [
123
+ const d = s.getSections(), A = De(d), D = [
124
124
  i.pie1,
125
125
  i.pie2,
126
126
  i.pie3,
@@ -138,26 +138,26 @@ var L = q.pie, G = {
138
138
  d.forEach((r) => {
139
139
  b += r;
140
140
  });
141
- const O = A.filter((r) => (r.data.value / b * 100).toFixed(0) !== "0"), E = oe(C);
142
- p.selectAll("mySlices").data(O).enter().append("path").attr("d", D).attr("fill", (r) => E(r.data.label)).attr("class", "pieCircle"), p.selectAll("mySlices").data(O).enter().append("text").text((r) => (r.data.value / b * 100).toFixed(0) + "%").attr("transform", (r) => "translate(" + $.centroid(r) + ")").style("text-anchor", "middle").attr("class", "slice"), p.append("text").text(s.getDiagramTitle()).attr("x", 0).attr("y", -(u - 50) / 2).attr("class", "pieTitleText");
143
- const W = [...d.entries()].map(([r, M]) => ({
141
+ const W = A.filter((r) => (r.data.value / b * 100).toFixed(0) !== "0"), E = oe(D);
142
+ p.selectAll("mySlices").data(W).enter().append("path").attr("d", C).attr("fill", (r) => E(r.data.label)).attr("class", "pieCircle"), p.selectAll("mySlices").data(W).enter().append("text").text((r) => (r.data.value / b * 100).toFixed(0) + "%").attr("transform", (r) => "translate(" + $.centroid(r) + ")").style("text-anchor", "middle").attr("class", "slice"), p.append("text").text(s.getDiagramTitle()).attr("x", 0).attr("y", -(u - 50) / 2).attr("class", "pieTitleText");
143
+ const O = [...d.entries()].map(([r, M]) => ({
144
144
  label: r,
145
145
  value: M
146
- })), k = p.selectAll(".legend").data(W).enter().append("g").attr("class", "legend").attr("transform", (r, M) => {
147
- const R = n + c, V = R * W.length / 2, j = 12 * n, U = M * R - V;
148
- return "translate(" + j + "," + U + ")";
146
+ })), k = p.selectAll(".legend").data(O).enter().append("g").attr("class", "legend").attr("transform", (r, M) => {
147
+ const R = n + c, B = R * O.length / 2, U = 12 * n, j = M * R - B;
148
+ return "translate(" + U + "," + j + ")";
149
149
  });
150
150
  k.append("rect").attr("width", n).attr("height", n).style("fill", (r) => E(r.label)).style("stroke", (r) => E(r.label)), k.append("text").attr("x", n + c).attr("y", n - c).text((r) => s.getShowData() ? `${r.label} [${r.value}]` : r.label);
151
- const B = Math.max(
151
+ const V = Math.max(
152
152
  ...k.selectAll("text").nodes().map((r) => (r == null ? void 0 : r.getBoundingClientRect().width) ?? 0)
153
- ), P = y + t + n + c + B;
153
+ ), P = y + t + n + c + V;
154
154
  m.attr("viewBox", `0 0 ${P} ${u}`), ie(m, u, P, l.useMaxWidth);
155
- }, "draw"), $e = { draw: De }, ze = {
155
+ }, "draw"), $e = { draw: Ce }, Fe = {
156
156
  parser: ye,
157
157
  db: _,
158
158
  renderer: $e,
159
159
  styles: Ae
160
160
  };
161
161
  export {
162
- ze as diagram
162
+ Fe as diagram
163
163
  };
@@ -1,4 +1,4 @@
1
- import { _ as o, I as _e, B as D, l as At, d as wt, i as Ae, n as ie, s as ke, g as Fe, m as Pe, b as ve, c as Ce, r as Le, j as Ee } from "./CoachForm.js";
1
+ import { a1 as o, aB as _e, au as D, ad as At, a7 as wt, ac as Ae, ah as ie, a3 as ke, a4 as Fe, ag as Pe, a5 as ve, a6 as Ce, an as Le, ae as Ee } from "./CoachForm.js";
2
2
  import { s as zt } from "./redux-toolkit.modern.js";
3
3
  import { l as ee } from "./linear.js";
4
4
  var Vt = function() {
@@ -1,4 +1,4 @@
1
- import { c as bt, B as pt, a5 as mt, a8 as kt, S as yt, a6 as wt } from "./Stack.js";
1
+ import { c as bt, B as pt, a4 as mt, a7 as kt, X as yt, a5 as wt } from "./Stack.js";
2
2
  import { j as $ } from "./index2.js";
3
3
  import { Prism as vt } from "react-syntax-highlighter";
4
4
  import { useState as Q, useCallback as St, useEffect as xt } from "react";
@@ -12498,7 +12498,7 @@ function w(e) {
12498
12498
  export {
12499
12499
  ms as A,
12500
12500
  ue as C,
12501
- ss as I,
12501
+ us as I,
12502
12502
  x as R,
12503
12503
  K as T,
12504
12504
  Qo as a,
@@ -12513,13 +12513,13 @@ export {
12513
12513
  gs as j,
12514
12514
  ks as k,
12515
12515
  ds as l,
12516
- us as m,
12516
+ bs as m,
12517
12517
  Fr as n,
12518
- bs as o,
12519
- mr as p,
12520
- hs as q,
12518
+ mr as o,
12519
+ hs as p,
12520
+ Cc as q,
12521
12521
  sc as r,
12522
12522
  fs as s,
12523
- Cc as t,
12523
+ ss as t,
12524
12524
  ps as u
12525
12525
  };
@@ -1,6 +1,6 @@
1
1
  import { g as Ge } from "./chunk-55IACEB6.js";
2
2
  import { s as ze } from "./chunk-QN33PNHL.js";
3
- import { _ as m, s as Xe, g as Je, c as Ze, b as et, m as tt, n as st, d as Ne, l as qe, r as it, A as rt, x as nt, y as at, u as lt } from "./CoachForm.js";
3
+ import { a1 as m, a3 as Xe, a4 as Je, a6 as Ze, a5 as et, ag as tt, ah as st, a7 as Ne, ad as qe, an as it, at as rt, aq as nt, ar as at, am as lt } from "./CoachForm.js";
4
4
  var Ae = function() {
5
5
  var e = /* @__PURE__ */ m(function(P, i, r, l) {
6
6
  for (r = r || {}, l = P.length; l--; r[P[l]] = i) ;
@@ -1,4 +1,4 @@
1
- import { _ as p, d as lt, g as _t, s as xt, b as vt, c as bt, n as wt, m as St, r as Lt, e as Et, t as At, V as Tt } from "./CoachForm.js";
1
+ import { a1 as p, a7 as lt, a4 as _t, a3 as xt, a5 as vt, a6 as bt, ah as wt, ag as St, an as Lt, a9 as Et, ao as At, aO as Tt } from "./CoachForm.js";
2
2
  import { s as X } from "./redux-toolkit.modern.js";
3
3
  import { o as Mt } from "./ordinal.js";
4
4
  function Nt(t) {
@@ -210,13 +210,13 @@ function Bt() {
210
210
  for (let c = 1, r = n.length; c < r; ++c) {
211
211
  const k = n[c];
212
212
  for (const w of k) {
213
- let L = 0, V = 0;
213
+ let L = 0, F = 0;
214
214
  for (const { source: Y, value: et } of w.targetLinks) {
215
215
  let H = et * (w.layer - Y.layer);
216
- L += z(Y, w) * H, V += H;
216
+ L += z(Y, w) * H, F += H;
217
217
  }
218
- if (!(V > 0)) continue;
219
- let G = (L / V - w.y0) * f;
218
+ if (!(F > 0)) continue;
219
+ let G = (L / F - w.y0) * f;
220
220
  w.y0 += G, w.y1 += G, E(w);
221
221
  }
222
222
  o === void 0 && k.sort(Q), O(k, u);
@@ -226,13 +226,13 @@ function Bt() {
226
226
  for (let c = n.length, r = c - 2; r >= 0; --r) {
227
227
  const k = n[r];
228
228
  for (const w of k) {
229
- let L = 0, V = 0;
229
+ let L = 0, F = 0;
230
230
  for (const { target: Y, value: et } of w.sourceLinks) {
231
231
  let H = et * (Y.layer - w.layer);
232
- L += I(w, Y) * H, V += H;
232
+ L += I(w, Y) * H, F += H;
233
233
  }
234
- if (!(V > 0)) continue;
235
- let G = (L / V - w.y0) * f;
234
+ if (!(F > 0)) continue;
235
+ let G = (L / F - w.y0) * f;
236
236
  w.y0 += G, w.y1 += G, E(w);
237
237
  }
238
238
  o === void 0 && k.sort(Q), O(k, u);
@@ -293,7 +293,7 @@ function Bt() {
293
293
  }
294
294
  return b;
295
295
  }
296
- var st = Math.PI, rt = 2 * st, F = 1e-6, Rt = rt - F;
296
+ var st = Math.PI, rt = 2 * st, V = 1e-6, Rt = rt - V;
297
297
  function ot() {
298
298
  this._x0 = this._y0 = // start of current subpath
299
299
  this._x1 = this._y1 = null, this._ = "";
@@ -324,18 +324,18 @@ ot.prototype = kt.prototype = {
324
324
  if (h < 0) throw new Error("negative radius: " + h);
325
325
  if (this._x1 === null)
326
326
  this._ += "M" + (this._x1 = t) + "," + (this._y1 = e);
327
- else if (x > F) if (!(Math.abs(l * _ - s * o) > F) || !h)
327
+ else if (x > V) if (!(Math.abs(l * _ - s * o) > V) || !h)
328
328
  this._ += "L" + (this._x1 = t) + "," + (this._y1 = e);
329
329
  else {
330
330
  var v = i - d, y = a - m, b = _ * _ + s * s, M = v * v + y * y, T = Math.sqrt(b), N = Math.sqrt(x), C = h * Math.tan((st - Math.acos((b + x - M) / (2 * T * N))) / 2), $ = C / N, R = C / T;
331
- Math.abs($ - 1) > F && (this._ += "L" + (t + $ * o) + "," + (e + $ * l)), this._ += "A" + h + "," + h + ",0,0," + +(l * v > o * y) + "," + (this._x1 = t + R * _) + "," + (this._y1 = e + R * s);
331
+ Math.abs($ - 1) > V && (this._ += "L" + (t + $ * o) + "," + (e + $ * l)), this._ += "A" + h + "," + h + ",0,0," + +(l * v > o * y) + "," + (this._x1 = t + R * _) + "," + (this._y1 = e + R * s);
332
332
  }
333
333
  },
334
334
  arc: function(t, e, i, a, h, d) {
335
335
  t = +t, e = +e, i = +i, d = !!d;
336
336
  var m = i * Math.cos(a), _ = i * Math.sin(a), s = t + m, o = e + _, l = 1 ^ d, x = d ? a - h : h - a;
337
337
  if (i < 0) throw new Error("negative radius: " + i);
338
- this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > F || Math.abs(this._y1 - o) > F) && (this._ += "L" + s + "," + o), i && (x < 0 && (x = x % rt + rt), x > Rt ? this._ += "A" + i + "," + i + ",0,1," + l + "," + (t - m) + "," + (e - _) + "A" + i + "," + i + ",0,1," + l + "," + (this._x1 = s) + "," + (this._y1 = o) : x > F && (this._ += "A" + i + "," + i + ",0," + +(x >= st) + "," + l + "," + (this._x1 = t + i * Math.cos(h)) + "," + (this._y1 = e + i * Math.sin(h))));
338
+ this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > V || Math.abs(this._y1 - o) > V) && (this._ += "L" + s + "," + o), i && (x < 0 && (x = x % rt + rt), x > Rt ? this._ += "A" + i + "," + i + ",0,1," + l + "," + (t - m) + "," + (e - _) + "A" + i + "," + i + ",0,1," + l + "," + (this._x1 = s) + "," + (this._y1 = o) : x > V && (this._ += "A" + i + "," + i + ",0," + +(x >= st) + "," + l + "," + (this._x1 = t + i * Math.cos(h)) + "," + (this._y1 = e + i * Math.sin(h))));
339
339
  },
340
340
  rect: function(t, e, i, a) {
341
341
  this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +i + "v" + +a + "h" + -i + "Z";
@@ -349,10 +349,10 @@ function dt(t) {
349
349
  return t;
350
350
  };
351
351
  }
352
- function Vt(t) {
352
+ function Ft(t) {
353
353
  return t[0];
354
354
  }
355
- function Ft(t) {
355
+ function Vt(t) {
356
356
  return t[1];
357
357
  }
358
358
  var Wt = Array.prototype.slice;
@@ -363,7 +363,7 @@ function Gt(t) {
363
363
  return t.target;
364
364
  }
365
365
  function Yt(t) {
366
- var e = Ut, i = Gt, a = Vt, h = Ft, d = null;
366
+ var e = Ut, i = Gt, a = Ft, h = Vt, d = null;
367
367
  function m() {
368
368
  var _, s = Wt.call(arguments), o = e.apply(this, s), l = i.apply(this, s);
369
369
  if (d || (d = _ = kt()), t(d, +a.apply(this, (s[0] = o, s)), +h.apply(this, s), +a.apply(this, (s[0] = l, s)), +h.apply(this, s)), _) return d = null, _ + "" || null;