react-docs-ui 0.6.17 → 0.6.18

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 (150) hide show
  1. package/dist/{AIChatDialog-W60DtiEW.js → AIChatDialog-BnAX3dRn.js} +2 -2
  2. package/dist/{AISelectionTrigger-MaBGhxTE.js → AISelectionTrigger-SLyb8Vep.js} +2 -2
  3. package/dist/{AISettingsPanel-aiMnncnQ.js → AISettingsPanel-Bsd_wLP4.js} +3 -3
  4. package/dist/{DocsApp-BN6Bo0YD.js → DocsApp-CNVM_Zcf.js} +3505 -3208
  5. package/dist/{GlobalContextMenu-DG6x5Y5w.js → GlobalContextMenu-BtVjQk0v.js} +1 -1
  6. package/dist/{MdxContent-CMB8ZbXo.js → MdxContent-D2l4Au7Z.js} +310 -306
  7. package/dist/{MdxContent.lazy-C4rcCv4v.js → MdxContent.lazy-BirC7wrH.js} +1 -1
  8. package/dist/{SearchDialog-tUSKKsxW.js → SearchDialog-DWVre6R9.js} +66 -56
  9. package/dist/{SearchRuntime-5fXpxDsi.js → SearchRuntime-D0rSMKV3.js} +6 -5
  10. package/dist/_basePickBy-3HEi44E5.js +166 -0
  11. package/dist/_baseUniq-CyOGXr0t.js +682 -0
  12. package/dist/arc-DULIiw5L.js +80 -0
  13. package/dist/architecture-PBZL5I3N-DT4oHaWT.js +3 -0
  14. package/dist/architectureDiagram-2XIMDMQ5-CqinFxzU.js +4045 -0
  15. package/dist/array-DHiPsILf.js +6 -0
  16. package/dist/blockDiagram-WCTKOSBZ-4JAhKeqm.js +3025 -0
  17. package/dist/c4Diagram-IC4MRINW-DtmtzsQQ.js +2964 -0
  18. package/dist/channel-BPONoOHQ.js +5 -0
  19. package/dist/chunk-4BX2VUAB-Bv5NGtUU.js +8 -0
  20. package/dist/chunk-55IACEB6-BXL-F-QI.js +8 -0
  21. package/dist/chunk-7E7YKBS2-CuTUVGrY.js +23 -0
  22. package/dist/chunk-7R4GIKGN-Qkaxl46X.js +2596 -0
  23. package/dist/chunk-C72U2L5F-42ScKBi2.js +23 -0
  24. package/dist/chunk-EGIJ26TM-D9jfybGA.js +23 -0
  25. package/dist/chunk-FMBD7UC4-DZXaweDk.js +5 -0
  26. package/dist/chunk-GEFDOKGD-OXBFFBXI.js +1121 -0
  27. package/dist/chunk-GLR3WWYH-BNwKwdNm.js +41 -0
  28. package/dist/chunk-HHEYEP7N-BQ3EJT5G.js +9 -0
  29. package/dist/chunk-JSJVCQXG-DNkHiMyV.js +60 -0
  30. package/dist/chunk-KX2RTZJC-DuTfSwwu.js +25 -0
  31. package/dist/chunk-KYZI473N-COpLSX52.js +3434 -0
  32. package/dist/chunk-L3YUKLVL-BdSnx12A.js +23 -0
  33. package/dist/chunk-MX3YWQON-CrwNXQjz.js +80 -0
  34. package/dist/chunk-NBPlniwU.js +23 -0
  35. package/dist/chunk-NQ4KR5QH-Y07nfCMJ.js +2002 -0
  36. package/dist/chunk-O4XLMI2P-CuexQiBs.js +511 -0
  37. package/dist/chunk-OZEHJAEY-D6vfkGpv.js +64 -0
  38. package/dist/chunk-PQ6SQG4A-6cI0SCcc.js +67 -0
  39. package/dist/chunk-PU5JKC2W-an2DzREj.js +1885 -0
  40. package/dist/chunk-QZHKN3VN-BKMQ36H3.js +15 -0
  41. package/dist/chunk-R5LLSJPH-DOyud7qN.js +35 -0
  42. package/dist/chunk-WL4C6EOR-y1gU9zpd.js +3194 -0
  43. package/dist/chunk-XIRO2GV7-BD1Cp5pB.js +30 -0
  44. package/dist/chunk-XPW4576I-DOBR2ORN.js +1146 -0
  45. package/dist/chunk-XZSTWKYB-BQ9uqNJe.js +15797 -0
  46. package/dist/chunk-YBOYWFTD-BT3l76Xm.js +32 -0
  47. package/dist/classDiagram-VBA2DB6C-AUxID939.js +29 -0
  48. package/dist/classDiagram-v2-RAHNMMFH-tupy2OPi.js +29 -0
  49. package/dist/clone-CRTZj7kp.js +8 -0
  50. package/dist/cose-bilkent-S5V4N54A-Bbd2d2j7.js +2250 -0
  51. package/dist/cytoscape.esm-CQKQOqRt.js +18100 -0
  52. package/dist/dagre-Cyr5_x2X.js +1483 -0
  53. package/dist/dagre-KLK3FWXG-Bjsq-TtB.js +294 -0
  54. package/dist/defaultLocale-P2nWjZJu.js +201 -0
  55. package/dist/diagram-E7M64L7V-CCTuI46e.js +527 -0
  56. package/dist/diagram-IFDJBPK2-DI_KTvRx.js +213 -0
  57. package/dist/diagram-P4PSJMXO-D3SeWDdU.js +133 -0
  58. package/dist/dist-CSS39H68.js +50 -0
  59. package/dist/docs-app.es.js +1 -1
  60. package/dist/erDiagram-INFDFZHY-Db_DAoTf.js +1666 -0
  61. package/dist/flowDiagram-PKNHOUZH-TqyNp9Dn.js +4161 -0
  62. package/dist/ganttDiagram-A5KZAMGK-DqNVbtHo.js +3072 -0
  63. package/dist/gitGraph-HDMCJU4V-DQudxfzL.js +3 -0
  64. package/dist/gitGraphDiagram-K3NZZRJ6-Cga9Wfgb.js +625 -0
  65. package/dist/graphlib-CexrUFs9.js +225 -0
  66. package/dist/info-3K5VOQVL-DiuN3kw6.js +3 -0
  67. package/dist/infoDiagram-LFFYTUFH-bvABxJph.js +19 -0
  68. package/dist/init-GWRygwCo.js +15 -0
  69. package/dist/isArrayLikeObject-CG2kGrxR.js +578 -0
  70. package/dist/isEmpty-C8iIdTg-.js +35 -0
  71. package/dist/ishikawaDiagram-PHBUUO56-DKGPu-hu.js +717 -0
  72. package/dist/journeyDiagram-4ABVD52K-DefcNau0.js +883 -0
  73. package/dist/kanban-definition-K7BYSVSG-BXvFQzdZ.js +971 -0
  74. package/dist/line-ChPoSgrf.js +34 -0
  75. package/dist/linear-BeQrMQNe.js +289 -0
  76. package/dist/math-CgS6d5p2.js +10 -0
  77. package/dist/{shiki-highlighter-BmQSSJpS.js → mdx-components-Bz45lgrV.js} +1387 -1288
  78. package/dist/mermaid-parser.core-CDTyVXPe.js +59 -0
  79. package/dist/mermaid.core-CHJrGTZ9.js +919 -0
  80. package/dist/mindmap-definition-YRQLILUH-CqsMcFhX.js +964 -0
  81. package/dist/ordinal-DUEC8Lr4.js +65 -0
  82. package/dist/packet-RMMSAZCW-ZLaHU0Ov.js +3 -0
  83. package/dist/path-CzRXOvk1.js +85 -0
  84. package/dist/pie-UPGHQEXC-COgIbE0j.js +3 -0
  85. package/dist/pieDiagram-SKSYHLDU-C8Y5Bc8d.js +165 -0
  86. package/dist/quadrantDiagram-337W2JSQ-DRWBX5cn.js +1974 -0
  87. package/dist/radar-KQ55EAFF-ABFVVcns.js +3 -0
  88. package/dist/react-docs-ui.css +1 -1
  89. package/dist/react-docs-ui.es.js +19 -19
  90. package/dist/requirementDiagram-Z7DCOOCP-EkyUnFq8.js +2201 -0
  91. package/dist/rough.esm-qTNNhHn7.js +1352 -0
  92. package/dist/sankeyDiagram-WA2Y5GQK-Cmas7IuZ.js +920 -0
  93. package/dist/sequenceDiagram-2WXFIKYE-B7TrFw3o.js +4109 -0
  94. package/dist/src-B8kKzJ6p.js +2146 -0
  95. package/dist/stateDiagram-RAJIS63D-DyqZyFdt.js +217 -0
  96. package/dist/stateDiagram-v2-FVOUBMTO-5UjWXgt6.js +27 -0
  97. package/dist/timeline-definition-YZTLITO2-qhoXPOhL.js +830 -0
  98. package/dist/treemap-KZPCXAKY-CRdRsoRo.js +3 -0
  99. package/dist/types/components/AnnouncementBar.d.ts +12 -0
  100. package/dist/types/components/AnnouncementBar.d.ts.map +1 -0
  101. package/dist/types/components/DocsLayout.d.ts +8 -2
  102. package/dist/types/components/DocsLayout.d.ts.map +1 -1
  103. package/dist/types/components/HeaderNav.d.ts +17 -1
  104. package/dist/types/components/HeaderNav.d.ts.map +1 -1
  105. package/dist/types/components/MdxContent.d.ts.map +1 -1
  106. package/dist/types/components/MobileSidebar.d.ts +2 -1
  107. package/dist/types/components/MobileSidebar.d.ts.map +1 -1
  108. package/dist/types/components/PageFeedback.d.ts +11 -0
  109. package/dist/types/components/PageFeedback.d.ts.map +1 -0
  110. package/dist/types/components/PageMetaActions.d.ts +15 -0
  111. package/dist/types/components/PageMetaActions.d.ts.map +1 -0
  112. package/dist/types/components/PageNavigation.d.ts +2 -1
  113. package/dist/types/components/PageNavigation.d.ts.map +1 -1
  114. package/dist/types/components/SearchLauncher.d.ts +2 -1
  115. package/dist/types/components/SearchLauncher.d.ts.map +1 -1
  116. package/dist/types/components/SidebarNav.d.ts +2 -1
  117. package/dist/types/components/SidebarNav.d.ts.map +1 -1
  118. package/dist/types/components/mdx-components/Mermaid.d.ts +6 -0
  119. package/dist/types/components/mdx-components/Mermaid.d.ts.map +1 -0
  120. package/dist/types/components/mdx-components/Tabs.d.ts +13 -0
  121. package/dist/types/components/mdx-components/Tabs.d.ts.map +1 -0
  122. package/dist/types/components/mdx-components/index.d.ts +2 -0
  123. package/dist/types/components/mdx-components/index.d.ts.map +1 -1
  124. package/dist/types/components/search/SearchProvider.d.ts +2 -1
  125. package/dist/types/components/search/SearchProvider.d.ts.map +1 -1
  126. package/dist/types/components/search/SearchRuntime.d.ts +2 -1
  127. package/dist/types/components/search/SearchRuntime.d.ts.map +1 -1
  128. package/dist/types/lib/component-scanner.d.ts.map +1 -1
  129. package/dist/types/lib/config.d.ts +42 -0
  130. package/dist/types/lib/config.d.ts.map +1 -1
  131. package/dist/types/lib/navigation.d.ts +1 -1
  132. package/dist/types/lib/navigation.d.ts.map +1 -1
  133. package/dist/types/lib/page-meta.d.ts +16 -0
  134. package/dist/types/lib/page-meta.d.ts.map +1 -0
  135. package/dist/types/lib/search/build/index-generator.d.ts.map +1 -1
  136. package/dist/types/lib/search/build/types.d.ts +1 -0
  137. package/dist/types/lib/search/build/types.d.ts.map +1 -1
  138. package/dist/types/lib/search/runtime/search-engine.d.ts.map +1 -1
  139. package/dist/types/lib/search/runtime/types.d.ts +1 -0
  140. package/dist/types/lib/search/runtime/types.d.ts.map +1 -1
  141. package/dist/types/lib/versioning.d.ts +6 -0
  142. package/dist/types/lib/versioning.d.ts.map +1 -0
  143. package/dist/vennDiagram-LZ73GAT5-DlUUn7LI.js +1858 -0
  144. package/dist/xychartDiagram-JWTSCODW-oT2IR7c0.js +2041 -0
  145. package/package.json +4 -1
  146. /package/dist/{AIProvider-C1_b1iKH.js → AIProvider-niZNPSGi.js} +0 -0
  147. /package/dist/{context-menu-CB7erSoV.js → context-menu-BIQsQup7.js} +0 -0
  148. /package/dist/{dialog-DQ6nkP0y.js → dialog-D8otbqQL.js} +0 -0
  149. /package/dist/{mdx-components-Dxpipc50.js → mdx-components-TEc3uhbY.js} +0 -0
  150. /package/dist/{use-toast-d9VPBjMn.js → use-toast-DK69oadB.js} +0 -0
@@ -0,0 +1,65 @@
1
+ import { t as e } from "./init-GWRygwCo.js";
2
+ //#region node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.js
3
+ var t = class extends Map {
4
+ constructor(e, t = a) {
5
+ if (super(), Object.defineProperties(this, {
6
+ _intern: { value: /* @__PURE__ */ new Map() },
7
+ _key: { value: t }
8
+ }), e != null) for (let [t, n] of e) this.set(t, n);
9
+ }
10
+ get(e) {
11
+ return super.get(n(this, e));
12
+ }
13
+ has(e) {
14
+ return super.has(n(this, e));
15
+ }
16
+ set(e, t) {
17
+ return super.set(r(this, e), t);
18
+ }
19
+ delete(e) {
20
+ return super.delete(i(this, e));
21
+ }
22
+ };
23
+ function n({ _intern: e, _key: t }, n) {
24
+ let r = t(n);
25
+ return e.has(r) ? e.get(r) : n;
26
+ }
27
+ function r({ _intern: e, _key: t }, n) {
28
+ let r = t(n);
29
+ return e.has(r) ? e.get(r) : (e.set(r, n), n);
30
+ }
31
+ function i({ _intern: e, _key: t }, n) {
32
+ let r = t(n);
33
+ return e.has(r) && (n = e.get(r), e.delete(r)), n;
34
+ }
35
+ function a(e) {
36
+ return typeof e == "object" && e ? e.valueOf() : e;
37
+ }
38
+ //#endregion
39
+ //#region node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/ordinal.js
40
+ var o = Symbol("implicit");
41
+ function s() {
42
+ var n = new t(), r = [], i = [], a = o;
43
+ function c(e) {
44
+ let t = n.get(e);
45
+ if (t === void 0) {
46
+ if (a !== o) return a;
47
+ n.set(e, t = r.push(e) - 1);
48
+ }
49
+ return i[t % i.length];
50
+ }
51
+ return c.domain = function(e) {
52
+ if (!arguments.length) return r.slice();
53
+ r = [], n = new t();
54
+ for (let t of e) n.has(t) || n.set(t, r.push(t) - 1);
55
+ return c;
56
+ }, c.range = function(e) {
57
+ return arguments.length ? (i = Array.from(e), c) : i.slice();
58
+ }, c.unknown = function(e) {
59
+ return arguments.length ? (a = e, c) : a;
60
+ }, c.copy = function() {
61
+ return s(r, i).unknown(a);
62
+ }, e.apply(c, arguments), c;
63
+ }
64
+ //#endregion
65
+ export { s as t };
@@ -0,0 +1,3 @@
1
+ import "./chunk-XZSTWKYB-BQ9uqNJe.js";
2
+ import { n as e } from "./chunk-C72U2L5F-42ScKBi2.js";
3
+ export { e as createPacketServices };
@@ -0,0 +1,85 @@
1
+ //#region node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.js
2
+ var e = Math.PI, t = 2 * e, n = 1e-6, r = t - n;
3
+ function i(e) {
4
+ this._ += e[0];
5
+ for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
6
+ }
7
+ function a(e) {
8
+ let t = Math.floor(e);
9
+ if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
10
+ if (t > 15) return i;
11
+ let n = 10 ** t;
12
+ return function(e) {
13
+ this._ += e[0];
14
+ for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
15
+ };
16
+ }
17
+ var o = class {
18
+ constructor(e) {
19
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? i : a(e);
20
+ }
21
+ moveTo(e, t) {
22
+ this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
23
+ }
24
+ closePath() {
25
+ this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
26
+ }
27
+ lineTo(e, t) {
28
+ this._append`L${this._x1 = +e},${this._y1 = +t}`;
29
+ }
30
+ quadraticCurveTo(e, t, n, r) {
31
+ this._append`Q${+e},${+t},${this._x1 = +n},${this._y1 = +r}`;
32
+ }
33
+ bezierCurveTo(e, t, n, r, i, a) {
34
+ this._append`C${+e},${+t},${+n},${+r},${this._x1 = +i},${this._y1 = +a}`;
35
+ }
36
+ arcTo(t, r, i, a, o) {
37
+ if (t = +t, r = +r, i = +i, a = +a, o = +o, o < 0) throw Error(`negative radius: ${o}`);
38
+ let s = this._x1, c = this._y1, l = i - t, u = a - r, d = s - t, f = c - r, p = d * d + f * f;
39
+ if (this._x1 === null) this._append`M${this._x1 = t},${this._y1 = r}`;
40
+ else if (p > n) if (!(Math.abs(f * l - u * d) > n) || !o) this._append`L${this._x1 = t},${this._y1 = r}`;
41
+ else {
42
+ let m = i - s, h = a - c, g = l * l + u * u, _ = m * m + h * h, v = Math.sqrt(g), y = Math.sqrt(p), b = o * Math.tan((e - Math.acos((g + p - _) / (2 * v * y))) / 2), x = b / y, S = b / v;
43
+ Math.abs(x - 1) > n && this._append`L${t + x * d},${r + x * f}`, this._append`A${o},${o},0,0,${+(f * m > d * h)},${this._x1 = t + S * l},${this._y1 = r + S * u}`;
44
+ }
45
+ }
46
+ arc(i, a, o, s, c, l) {
47
+ if (i = +i, a = +a, o = +o, l = !!l, o < 0) throw Error(`negative radius: ${o}`);
48
+ let u = o * Math.cos(s), d = o * Math.sin(s), f = i + u, p = a + d, m = 1 ^ l, h = l ? s - c : c - s;
49
+ this._x1 === null ? this._append`M${f},${p}` : (Math.abs(this._x1 - f) > n || Math.abs(this._y1 - p) > n) && this._append`L${f},${p}`, o && (h < 0 && (h = h % t + t), h > r ? this._append`A${o},${o},0,1,${m},${i - u},${a - d}A${o},${o},0,1,${m},${this._x1 = f},${this._y1 = p}` : h > n && this._append`A${o},${o},0,${+(h >= e)},${m},${this._x1 = i + o * Math.cos(c)},${this._y1 = a + o * Math.sin(c)}`);
50
+ }
51
+ rect(e, t, n, r) {
52
+ this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
53
+ }
54
+ toString() {
55
+ return this._;
56
+ }
57
+ };
58
+ function s() {
59
+ return new o();
60
+ }
61
+ s.prototype = o.prototype;
62
+ //#endregion
63
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js
64
+ function c(e) {
65
+ return function() {
66
+ return e;
67
+ };
68
+ }
69
+ //#endregion
70
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js
71
+ function l(e) {
72
+ let t = 3;
73
+ return e.digits = function(n) {
74
+ if (!arguments.length) return t;
75
+ if (n == null) t = null;
76
+ else {
77
+ let e = Math.floor(n);
78
+ if (!(e >= 0)) throw RangeError(`invalid digits: ${n}`);
79
+ t = e;
80
+ }
81
+ return e;
82
+ }, () => new o(t);
83
+ }
84
+ //#endregion
85
+ export { c as n, l as t };
@@ -0,0 +1,3 @@
1
+ import "./chunk-XZSTWKYB-BQ9uqNJe.js";
2
+ import { n as e } from "./chunk-XIRO2GV7-BD1Cp5pB.js";
3
+ export { e as createPieServices };
@@ -0,0 +1,165 @@
1
+ import { f as e, r as t } from "./chunk-GEFDOKGD-OXBFFBXI.js";
2
+ import { g as n, h as r } from "./src-B8kKzJ6p.js";
3
+ import { B as i, C as a, V as o, W as s, _ as c, a as l, b as u, c as d, d as f, v as p } from "./chunk-7R4GIKGN-Qkaxl46X.js";
4
+ import { t as m } from "./ordinal-DUEC8Lr4.js";
5
+ import { n as h } from "./path-CzRXOvk1.js";
6
+ import { p as g } from "./math-CgS6d5p2.js";
7
+ import { t as _ } from "./arc-DULIiw5L.js";
8
+ import { t as v } from "./array-DHiPsILf.js";
9
+ import { t as y } from "./chunk-HHEYEP7N-BQ3EJT5G.js";
10
+ import { t as b } from "./chunk-4BX2VUAB-Bv5NGtUU.js";
11
+ import { t as x } from "./mermaid-parser.core-CDTyVXPe.js";
12
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/descending.js
13
+ function S(e, t) {
14
+ return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
15
+ }
16
+ //#endregion
17
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/identity.js
18
+ function C(e) {
19
+ return e;
20
+ }
21
+ //#endregion
22
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/pie.js
23
+ function w() {
24
+ var e = C, t = S, n = null, r = h(0), i = h(g), a = h(0);
25
+ function o(o) {
26
+ var s, c = (o = v(o)).length, l, u, d = 0, f = Array(c), p = Array(c), m = +r.apply(this, arguments), h = Math.min(g, Math.max(-g, i.apply(this, arguments) - m)), _, y = Math.min(Math.abs(h) / c, a.apply(this, arguments)), b = y * (h < 0 ? -1 : 1), x;
27
+ for (s = 0; s < c; ++s) (x = p[f[s] = s] = +e(o[s], s, o)) > 0 && (d += x);
28
+ for (t == null ? n != null && f.sort(function(e, t) {
29
+ return n(o[e], o[t]);
30
+ }) : f.sort(function(e, n) {
31
+ return t(p[e], p[n]);
32
+ }), s = 0, u = d ? (h - c * b) / d : 0; s < c; ++s, m = _) l = f[s], x = p[l], _ = m + (x > 0 ? x * u : 0) + b, p[l] = {
33
+ data: o[l],
34
+ index: s,
35
+ value: x,
36
+ startAngle: m,
37
+ endAngle: _,
38
+ padAngle: y
39
+ };
40
+ return p;
41
+ }
42
+ return o.value = function(t) {
43
+ return arguments.length ? (e = typeof t == "function" ? t : h(+t), o) : e;
44
+ }, o.sortValues = function(e) {
45
+ return arguments.length ? (t = e, n = null, o) : t;
46
+ }, o.sort = function(e) {
47
+ return arguments.length ? (n = e, t = null, o) : n;
48
+ }, o.startAngle = function(e) {
49
+ return arguments.length ? (r = typeof e == "function" ? e : h(+e), o) : r;
50
+ }, o.endAngle = function(e) {
51
+ return arguments.length ? (i = typeof e == "function" ? e : h(+e), o) : i;
52
+ }, o.padAngle = function(e) {
53
+ return arguments.length ? (a = typeof e == "function" ? e : h(+e), o) : a;
54
+ }, o;
55
+ }
56
+ //#endregion
57
+ //#region node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-SKSYHLDU.mjs
58
+ var T = f.pie, E = {
59
+ sections: /* @__PURE__ */ new Map(),
60
+ showData: !1,
61
+ config: T
62
+ }, D = E.sections, O = E.showData, k = structuredClone(T), A = {
63
+ getConfig: /* @__PURE__ */ r(() => structuredClone(k), "getConfig"),
64
+ clear: /* @__PURE__ */ r(() => {
65
+ D = /* @__PURE__ */ new Map(), O = E.showData, l();
66
+ }, "clear"),
67
+ setDiagramTitle: s,
68
+ getDiagramTitle: a,
69
+ setAccTitle: o,
70
+ getAccTitle: p,
71
+ setAccDescription: i,
72
+ getAccDescription: c,
73
+ addSection: /* @__PURE__ */ r(({ label: e, value: t }) => {
74
+ if (t < 0) throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);
75
+ D.has(e) || (D.set(e, t), n.debug(`added new section: ${e}, with value: ${t}`));
76
+ }, "addSection"),
77
+ getSections: /* @__PURE__ */ r(() => D, "getSections"),
78
+ setShowData: /* @__PURE__ */ r((e) => {
79
+ O = e;
80
+ }, "setShowData"),
81
+ getShowData: /* @__PURE__ */ r(() => O, "getShowData")
82
+ }, j = /* @__PURE__ */ r((e, t) => {
83
+ b(e, t), t.setShowData(e.showData), e.sections.map(t.addSection);
84
+ }, "populateDb"), M = { parse: /* @__PURE__ */ r(async (e) => {
85
+ let t = await x("pie", e);
86
+ n.debug(t), j(t, A);
87
+ }, "parse") }, N = /* @__PURE__ */ r((e) => `
88
+ .pieCircle{
89
+ stroke: ${e.pieStrokeColor};
90
+ stroke-width : ${e.pieStrokeWidth};
91
+ opacity : ${e.pieOpacity};
92
+ }
93
+ .pieOuterCircle{
94
+ stroke: ${e.pieOuterStrokeColor};
95
+ stroke-width: ${e.pieOuterStrokeWidth};
96
+ fill: none;
97
+ }
98
+ .pieTitleText {
99
+ text-anchor: middle;
100
+ font-size: ${e.pieTitleTextSize};
101
+ fill: ${e.pieTitleTextColor};
102
+ font-family: ${e.fontFamily};
103
+ }
104
+ .slice {
105
+ font-family: ${e.fontFamily};
106
+ fill: ${e.pieSectionTextColor};
107
+ font-size:${e.pieSectionTextSize};
108
+ // fill: white;
109
+ }
110
+ .legend text {
111
+ fill: ${e.pieLegendTextColor};
112
+ font-family: ${e.fontFamily};
113
+ font-size: ${e.pieLegendTextSize};
114
+ }
115
+ `, "getStyles"), P = /* @__PURE__ */ r((e) => {
116
+ let t = [...e.values()].reduce((e, t) => e + t, 0), n = [...e.entries()].map(([e, t]) => ({
117
+ label: e,
118
+ value: t
119
+ })).filter((e) => e.value / t * 100 >= 1).sort((e, t) => t.value - e.value);
120
+ return w().value((e) => e.value)(n);
121
+ }, "createPieArcs"), F = {
122
+ parser: M,
123
+ db: A,
124
+ renderer: { draw: /* @__PURE__ */ r((r, i, a, o) => {
125
+ n.debug("rendering pie chart\n" + r);
126
+ let s = o.db, c = u(), l = t(s.getConfig(), c.pie), f = y(i), p = f.append("g");
127
+ p.attr("transform", "translate(225,225)");
128
+ let { themeVariables: h } = c, [g] = e(h.pieOuterStrokeWidth);
129
+ g ??= 2;
130
+ let v = l.textPosition, b = _().innerRadius(0).outerRadius(185), x = _().innerRadius(185 * v).outerRadius(185 * v);
131
+ p.append("circle").attr("cx", 0).attr("cy", 0).attr("r", 185 + g / 2).attr("class", "pieOuterCircle");
132
+ let S = s.getSections(), C = P(S), w = [
133
+ h.pie1,
134
+ h.pie2,
135
+ h.pie3,
136
+ h.pie4,
137
+ h.pie5,
138
+ h.pie6,
139
+ h.pie7,
140
+ h.pie8,
141
+ h.pie9,
142
+ h.pie10,
143
+ h.pie11,
144
+ h.pie12
145
+ ], T = 0;
146
+ S.forEach((e) => {
147
+ T += e;
148
+ });
149
+ let E = C.filter((e) => (e.data.value / T * 100).toFixed(0) !== "0"), D = m(w);
150
+ p.selectAll("mySlices").data(E).enter().append("path").attr("d", b).attr("fill", (e) => D(e.data.label)).attr("class", "pieCircle"), p.selectAll("mySlices").data(E).enter().append("text").text((e) => (e.data.value / T * 100).toFixed(0) + "%").attr("transform", (e) => "translate(" + x.centroid(e) + ")").style("text-anchor", "middle").attr("class", "slice"), p.append("text").text(s.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText");
151
+ let O = [...S.entries()].map(([e, t]) => ({
152
+ label: e,
153
+ value: t
154
+ })), k = p.selectAll(".legend").data(O).enter().append("g").attr("class", "legend").attr("transform", (e, t) => {
155
+ let n = 22 * O.length / 2;
156
+ return "translate(216," + (t * 22 - n) + ")";
157
+ });
158
+ k.append("rect").attr("width", 18).attr("height", 18).style("fill", (e) => D(e.label)).style("stroke", (e) => D(e.label)), k.append("text").attr("x", 22).attr("y", 14).text((e) => s.getShowData() ? `${e.label} [${e.value}]` : e.label);
159
+ let A = 512 + Math.max(...k.selectAll("text").nodes().map((e) => e?.getBoundingClientRect().width ?? 0));
160
+ f.attr("viewBox", `0 0 ${A} 450`), d(f, 450, A, l.useMaxWidth);
161
+ }, "draw") },
162
+ styles: N
163
+ };
164
+ //#endregion
165
+ export { F as diagram };