@antdv-next/x 1.2.0 → 1.2.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.
Files changed (130) hide show
  1. package/dist/actions/ActionsFeedback.js +1 -1
  2. package/dist/actions/ActionsItem.js +1 -1
  3. package/dist/attachments/index.js +1 -2
  4. package/dist/bubble/hooks/useCompatibleScroll.js +1 -1
  5. package/dist/code-highlighter/CodeHighlighter.js +2 -1
  6. package/dist/code-highlighter/shiki.js +1 -1
  7. package/dist/code-highlighter/style/index.d.ts +76 -4
  8. package/dist/code-highlighter/style/index.js +54 -29
  9. package/dist/folder/Folder.js +2 -1
  10. package/dist/index.umd.js +82 -49
  11. package/dist/mermaid/Mermaid.js +1 -1
  12. package/dist/package.js +1 -1
  13. package/dist/sender/components/SlotTextArea.js +3 -2
  14. package/dist/sender/components/SpeechButton/RecordingIcon.js +1 -1
  15. package/dist/theme/themes/seed.js +3 -0
  16. package/dist/thought-chain/ThoughtChain.js +2 -2
  17. package/es/Serializer-Sc9uEpQk.js +262 -0
  18. package/es/{_basePickBy-DFHEGO2M.js → _basePickBy-BL4DHvHb.js} +2 -2
  19. package/es/{_baseUniq-BlS7rXTs.js → _baseUniq-CyFYmJd-.js} +3 -3
  20. package/es/antdv-next-x.esm.js +2708 -2688
  21. package/es/{arc-BuXEd18J.js → arc-NI3ROx5X.js} +2 -2
  22. package/es/architecture-PBZL5I3N-M9p1teRv.js +3 -0
  23. package/es/{architectureDiagram-2XIMDMQ5-CmfsCwJk.js → architectureDiagram-2XIMDMQ5-zW5aGalx.js} +52 -52
  24. package/es/{blockDiagram-WCTKOSBZ-lJAan65A.js → blockDiagram-WCTKOSBZ-0QujSG-h.js} +20 -18
  25. package/es/{c4Diagram-IC4MRINW-B1c2x_1Q.js → c4Diagram-IC4MRINW-B7y07WFn.js} +6 -6
  26. package/es/{channel-DFgF_2F7.js → channel-CxLj88Pg.js} +1 -1
  27. package/es/{chunk-4BX2VUAB-J2N81Fpp.js → chunk-4BX2VUAB-CprgMM4u.js} +1 -1
  28. package/es/{chunk-55IACEB6-DGtfGRgi.js → chunk-55IACEB6-BpkEkHy8.js} +1 -1
  29. package/es/{chunk-7R4GIKGN-QT6IorJ_.js → chunk-7R4GIKGN-mKY502R8.js} +8 -6
  30. package/es/{chunk-FMBD7UC4-DCcRjunY.js → chunk-FMBD7UC4-B88neS61.js} +1 -1
  31. package/es/{chunk-GEFDOKGD-BWpC-zoH.js → chunk-GEFDOKGD-oBEpn5hN.js} +7 -7
  32. package/es/{chunk-GLR3WWYH-DiXcKb5Y.js → chunk-GLR3WWYH-B2D9kjtF.js} +9 -9
  33. package/es/{chunk-HHEYEP7N-Cxc7E4dX.js → chunk-HHEYEP7N-DcZkCke2.js} +2 -2
  34. package/es/{chunk-JSJVCQXG-D8_heHOp.js → chunk-JSJVCQXG-BbVOaXjl.js} +3 -3
  35. package/es/{chunk-KX2RTZJC-D5cc4rj6.js → chunk-KX2RTZJC-Dw3D7Wrw.js} +2 -2
  36. package/es/{chunk-KYZI473N-BHJ3T5Zv.js → chunk-KYZI473N-33-uii7Y.js} +7 -7
  37. package/es/{chunk-MX3YWQON-BxE-Aq9c.js → chunk-MX3YWQON-D4cz36rq.js} +1 -1
  38. package/es/{chunk-NQ4KR5QH-EYQBXkqP.js → chunk-NQ4KR5QH-CprADZhD.js} +7 -7
  39. package/es/{chunk-O4XLMI2P-qjOoGpnx.js → chunk-O4XLMI2P-DBAvycZ-.js} +10 -10
  40. package/es/{chunk-PQ6SQG4A-D3jtNCWN.js → chunk-PQ6SQG4A-BITIwHAS.js} +2 -2
  41. package/es/{chunk-PU5JKC2W-DdP8BS-S.js → chunk-PU5JKC2W-DIl8TkGX.js} +5 -5
  42. package/es/{chunk-QZHKN3VN-CW3cFN-h.js → chunk-QZHKN3VN-Cg0ROtzE.js} +1 -1
  43. package/es/{chunk-WL4C6EOR-BDbxJyGk.js → chunk-WL4C6EOR-Bhp_3T_o.js} +12 -10
  44. package/es/{chunk-XPW4576I-B0KVSHwE.js → chunk-XPW4576I-255j2Rgd.js} +2 -2
  45. package/es/{chunk-XZSTWKYB-CucN1XvM.js → chunk-XZSTWKYB-kjAdbx6i.js} +1589 -1541
  46. package/es/{chunk-YBOYWFTD-CvaddD9G.js → chunk-YBOYWFTD-C2IdGsg8.js} +3 -3
  47. package/es/classDiagram-VBA2DB6C-BQonl2jX.js +29 -0
  48. package/es/classDiagram-v2-RAHNMMFH-C9U3lqTc.js +29 -0
  49. package/es/{clone-r3YukIBB.js → clone-DIGEZsKS.js} +1 -1
  50. package/es/{cose-bilkent-S5V4N54A-B5OQuIhl.js → cose-bilkent-S5V4N54A-Cyxewg9z.js} +20 -20
  51. package/es/css-CRY9BUqw.js +2 -0
  52. package/es/{cytoscape.esm-i2CZcWd-.js → cytoscape.esm-DBPri10E.js} +121 -124
  53. package/es/{dagre-5aGJFKmT.js → dagre-BHOjJWBG.js} +6 -6
  54. package/es/{dagre-KLK3FWXG-BI5QQMXo.js → dagre-KLK3FWXG-CnJPDj7X.js} +18 -15
  55. package/es/{diagram-E7M64L7V-Dz62Vz_a.js → diagram-E7M64L7V-CBOCgbMd.js} +63 -63
  56. package/es/{diagram-IFDJBPK2-9fjvFkSc.js → diagram-IFDJBPK2-BtubJp0H.js} +20 -20
  57. package/es/{diagram-P4PSJMXO-BlX6jFjZ.js → diagram-P4PSJMXO-CI30BBYG.js} +17 -17
  58. package/es/{dist-BX_roQzC.js → dist-BpM0Gz7z.js} +1 -1
  59. package/es/{erDiagram-INFDFZHY-BcRXu8Cp.js → erDiagram-INFDFZHY-C8hYuPxm.js} +14 -14
  60. package/es/{flowDiagram-PKNHOUZH-UeyfgU8z.js → flowDiagram-PKNHOUZH-D5vrDkks.js} +18 -18
  61. package/es/{ganttDiagram-A5KZAMGK-txCzqgQ5.js → ganttDiagram-A5KZAMGK-BmIEQBGq.js} +25 -26
  62. package/es/gitGraph-HDMCJU4V-x8fnR2OX.js +3 -0
  63. package/es/{gitGraphDiagram-K3NZZRJ6-DghWYaFU.js → gitGraphDiagram-K3NZZRJ6-PO0pMJD3.js} +20 -20
  64. package/es/{graphlib-dRkI1OCL.js → graphlib-DqWOhV4K.js} +4 -4
  65. package/es/{html-CWvNBSxv.js → html-C4rrmxbP.js} +2 -2
  66. package/es/info-3K5VOQVL-CRBCVSej.js +3 -0
  67. package/es/{infoDiagram-LFFYTUFH-CA-vlAvP.js → infoDiagram-LFFYTUFH-DOcKfbXf.js} +9 -9
  68. package/es/{isArrayLikeObject-jl2bjkAJ.js → isArrayLikeObject-Dqk_yOP-.js} +5 -4
  69. package/es/{isEmpty-CmA-HYrg.js → isEmpty-BJdINx-6.js} +1 -1
  70. package/es/{ishikawaDiagram-PHBUUO56-DjdpS9Lb.js → ishikawaDiagram-PHBUUO56-DM1elxPS.js} +6 -6
  71. package/es/javascript--0qAxhnA.js +2 -0
  72. package/es/{journeyDiagram-4ABVD52K-CIJfC1fp.js → journeyDiagram-4ABVD52K-BnYWOH1P.js} +9 -9
  73. package/es/{kanban-definition-K7BYSVSG-CC2vwGck.js → kanban-definition-K7BYSVSG-Ys7nAs7y.js} +11 -11
  74. package/es/{katex-DCMiIo1z.js → katex-olkKUfKs.js} +16 -16
  75. package/es/{line-Cu9NTacD.js → line-Cm2n2y9Z.js} +3 -3
  76. package/es/{linear-C0rAYYmp.js → linear-D-yDc6KG.js} +3 -3
  77. package/es/mermaid-parser.core-DFgQn74w.js +259 -0
  78. package/es/{mermaid.core-Bvy_Q6Hu.js → mermaid.core-BzgA0NbC.js} +45 -45
  79. package/es/{mindmap-definition-YRQLILUH-BzTYDYmK.js → mindmap-definition-YRQLILUH-Ca8psfLi.js} +14 -14
  80. package/es/{ordinal-F3U6aXtP.js → ordinal-95c16pGC.js} +1 -1
  81. package/es/packet-RMMSAZCW-CyE-elPF.js +3 -0
  82. package/es/{path-Dm3C8WEs.js → path-CqWAdh69.js} +4 -7
  83. package/es/pie-UPGHQEXC-EfdQ-_OF.js +3 -0
  84. package/es/{pieDiagram-SKSYHLDU-COvqE_C6.js → pieDiagram-SKSYHLDU-DhQSMJCw.js} +48 -48
  85. package/es/{quadrantDiagram-337W2JSQ-Dgv8ccjt.js → quadrantDiagram-337W2JSQ-jOtIC8r0.js} +4 -4
  86. package/es/radar-KQ55EAFF-B68vkNB4.js +3 -0
  87. package/es/{requirementDiagram-Z7DCOOCP-B2NyhxO-.js → requirementDiagram-Z7DCOOCP-CNngzPE4.js} +13 -13
  88. package/es/{chunk-WQLz0Won.js → rolldown-runtime-Dv1pqm0U.js} +8 -1
  89. package/es/{rough.esm-BhGP2Udb.js → rough.esm-D1ibUQD-.js} +1 -1
  90. package/es/{sankeyDiagram-WA2Y5GQK-BfnH_gpl.js → sankeyDiagram-WA2Y5GQK-BgsyVNdD.js} +4 -4
  91. package/es/{sequenceDiagram-2WXFIKYE-DXssVQOF.js → sequenceDiagram-2WXFIKYE-BAc5PP9P.js} +98 -98
  92. package/es/{shiki-runtime-D0MO6er5.js → shiki-runtime-BlKUZiZP.js} +944 -952
  93. package/es/{src-CUQ6oOYk.js → src-3T61hYex.js} +26 -26
  94. package/es/{stateDiagram-RAJIS63D-DvDLfupV.js → stateDiagram-RAJIS63D-153LjStx.js} +16 -16
  95. package/es/stateDiagram-v2-FVOUBMTO-BXEvy1YD.js +27 -0
  96. package/es/{timeline-definition-YZTLITO2-ErcRjbZf.js → timeline-definition-YZTLITO2-BLhlkb_X.js} +4 -4
  97. package/es/treemap-KZPCXAKY-Dg_ShzRB.js +3 -0
  98. package/es/{vennDiagram-LZ73GAT5-CDTZUtc8.js → vennDiagram-LZ73GAT5-BTYWphmf.js} +8 -8
  99. package/es/{xychartDiagram-JWTSCODW-Y21jBOTg.js → xychartDiagram-JWTSCODW-B9Nlu6S_.js} +10 -10
  100. package/package.json +1 -1
  101. package/es/Serializer-D1JYN1kI.js +0 -262
  102. package/es/architecture-PBZL5I3N-D7tS55xM.js +0 -3
  103. package/es/chunk-7E7YKBS2-CL2d4WAf.js +0 -23
  104. package/es/chunk-C72U2L5F-OHTVpS-m.js +0 -23
  105. package/es/chunk-EGIJ26TM-DyMPGYrB.js +0 -23
  106. package/es/chunk-L3YUKLVL-7oGaUOdc.js +0 -23
  107. package/es/chunk-OZEHJAEY-D82nx27s.js +0 -64
  108. package/es/chunk-R5LLSJPH-CreI2kO9.js +0 -35
  109. package/es/chunk-XIRO2GV7-S5KkbVnN.js +0 -30
  110. package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +0 -29
  111. package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +0 -29
  112. package/es/css-Bi5OTYo2.js +0 -2
  113. package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +0 -3
  114. package/es/info-3K5VOQVL-COqdvM99.js +0 -3
  115. package/es/javascript-CjdDmufJ.js +0 -2
  116. package/es/mermaid-parser.core-7Wn2L29P.js +0 -59
  117. package/es/packet-RMMSAZCW-2PTjWKLd.js +0 -3
  118. package/es/pie-UPGHQEXC-Du8-k-EA.js +0 -3
  119. package/es/radar-KQ55EAFF-jJOhyjxC.js +0 -3
  120. package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +0 -27
  121. package/es/treemap-KZPCXAKY-CvZAIYVa.js +0 -3
  122. /package/es/{array-CWNufkl9.js → array-CApNbSU9.js} +0 -0
  123. /package/es/{css-v5r4VtJ6.js → css-DVAQAvTD.js} +0 -0
  124. /package/es/{defaultLocale-bckJcYh1.js → defaultLocale-aSMWOJHq.js} +0 -0
  125. /package/es/{init-B75p2clj.js → init-Co4dhKfe.js} +0 -0
  126. /package/es/{javascript-o_jd8Ivw.js → javascript-Bk0bJ4nQ.js} +0 -0
  127. /package/es/{json-DqMXJlo0.js → json-CAwkMa5O.js} +0 -0
  128. /package/es/{math-CoDOuve-.js → math-BZ_bUCIA.js} +0 -0
  129. /package/es/{python-CQPNJfOt.js → python-D0AaDoWC.js} +0 -0
  130. /package/es/{typescript-Ck7Pr_E3.js → typescript-DWy2KXvB.js} +0 -0
@@ -16,7 +16,7 @@ var e = class e extends Error {
16
16
  "<": "&lt;",
17
17
  "\"": "&quot;",
18
18
  "'": "&#x27;"
19
- }, i = /[&><"']/g, a = (e) => String(e).replace(i, (e) => r[e]), o = (e) => e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? o(e.body[0]) : e : e.type === "font" ? o(e.body) : e, s = new Set([
19
+ }, i = /[&><"']/g, a = (e) => String(e).replace(i, (e) => r[e]), o = (e) => e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? o(e.body[0]) : e : e.type === "font" ? o(e.body) : e, s = /* @__PURE__ */ new Set([
20
20
  "mathord",
21
21
  "textord",
22
22
  "atom"
@@ -15774,7 +15774,7 @@ function G(e) {
15774
15774
  argTypes: r.argTypes,
15775
15775
  allowedInArgument: !!r.allowedInArgument,
15776
15776
  allowedInText: !!r.allowedInText,
15777
- allowedInMath: r.allowedInMath === void 0 ? !0 : r.allowedInMath,
15777
+ allowedInMath: r.allowedInMath === void 0 || r.allowedInMath,
15778
15778
  numOptionalArgs: r.numOptionalArgs || 0,
15779
15779
  infix: !!r.infix,
15780
15780
  primitive: !!r.primitive,
@@ -15799,14 +15799,14 @@ var Kt = function(e) {
15799
15799
  return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e;
15800
15800
  }, K = function(e) {
15801
15801
  return e.type === "ordgroup" ? e.body : [e];
15802
- }, qt = new Set([
15802
+ }, qt = /* @__PURE__ */ new Set([
15803
15803
  "leftmost",
15804
15804
  "mbin",
15805
15805
  "mopen",
15806
15806
  "mrel",
15807
15807
  "mop",
15808
15808
  "mpunct"
15809
- ]), Jt = new Set([
15809
+ ]), Jt = /* @__PURE__ */ new Set([
15810
15810
  "rightmost",
15811
15811
  "mrel",
15812
15812
  "mclose",
@@ -15979,7 +15979,7 @@ var Y = class {
15979
15979
  toText() {
15980
15980
  return this.character ? this.character : " ";
15981
15981
  }
15982
- }, sn = new Set(["\\imath", "\\jmath"]), cn = new Set(["mrow", "mtable"]), ln = function(e, t, n) {
15982
+ }, sn = /* @__PURE__ */ new Set(["\\imath", "\\jmath"]), cn = /* @__PURE__ */ new Set(["mrow", "mtable"]), ln = function(e, t, n) {
15983
15983
  return O[t][e] && O[t][e].replace && e.charCodeAt(0) !== 55349 && !(et.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = O[t][e].replace), new X(e);
15984
15984
  }, un = function(e) {
15985
15985
  return e.length === 1 ? e[0] : new Y("mrow", e);
@@ -16552,7 +16552,7 @@ var bn = function(e) {
16552
16552
  1.75,
16553
16553
  716
16554
16554
  ]
16555
- }, Dn = new Set([
16555
+ }, Dn = /* @__PURE__ */ new Set([
16556
16556
  "widehat",
16557
16557
  "widecheck",
16558
16558
  "widetilde",
@@ -17506,12 +17506,12 @@ var Qn = function(e, t, n) {
17506
17506
  }, or = .008, sr = {
17507
17507
  type: "kern",
17508
17508
  size: -1 * or
17509
- }, cr = new Set([
17509
+ }, cr = /* @__PURE__ */ new Set([
17510
17510
  "|",
17511
17511
  "\\lvert",
17512
17512
  "\\rvert",
17513
17513
  "\\vert"
17514
- ]), lr = new Set([
17514
+ ]), lr = /* @__PURE__ */ new Set([
17515
17515
  "\\|",
17516
17516
  "\\lVert",
17517
17517
  "\\rVert",
@@ -17569,7 +17569,7 @@ var Qn = function(e, t, n) {
17569
17569
  advanceWidth: u,
17570
17570
  ruleWidth: (t.fontMetrics().sqrtRuleThickness + a) * i
17571
17571
  };
17572
- }, hr = new Set([
17572
+ }, hr = /* @__PURE__ */ new Set([
17573
17573
  "(",
17574
17574
  "\\lparen",
17575
17575
  ")",
@@ -17591,7 +17591,7 @@ var Qn = function(e, t, n) {
17591
17591
  "⌈",
17592
17592
  "⌉",
17593
17593
  "\\surd"
17594
- ]), gr = new Set([
17594
+ ]), gr = /* @__PURE__ */ new Set([
17595
17595
  "\\uparrow",
17596
17596
  "\\downarrow",
17597
17597
  "\\updownarrow",
@@ -17614,7 +17614,7 @@ var Qn = function(e, t, n) {
17614
17614
  "\\rmoustache",
17615
17615
  "⎰",
17616
17616
  "⎱"
17617
- ]), _r = new Set([
17617
+ ]), _r = /* @__PURE__ */ new Set([
17618
17618
  "<",
17619
17619
  ">",
17620
17620
  "\\langle",
@@ -17796,7 +17796,7 @@ var Qn = function(e, t, n) {
17796
17796
  mclass: "mord",
17797
17797
  size: 4
17798
17798
  }
17799
- }, Or = new Set(/* @__PURE__ */ "(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.".split(","));
17799
+ }, Or = /* @__PURE__ */ new Set(/* @__PURE__ */ "(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.".split(","));
17800
17800
  function kr(t, n) {
17801
17801
  var r = jn(t);
17802
17802
  if (r && Or.has(r.text)) return r;
@@ -18201,7 +18201,7 @@ function Rr(e) {
18201
18201
  }
18202
18202
  var zr = (t) => {
18203
18203
  if (!t.parser.settings.displayMode) throw new e("{" + t.envName + "} can be used only in display mode.");
18204
- }, Br = new Set(["gather", "gather*"]);
18204
+ }, Br = /* @__PURE__ */ new Set(["gather", "gather*"]);
18205
18205
  function Vr(e) {
18206
18206
  if (!e.includes("ed")) return !e.includes("*");
18207
18207
  }
@@ -19670,7 +19670,7 @@ var oi = (e, t, n, r, i, a, o) => {
19670
19670
  h.style.marginRight = D(a), m.unshift(h);
19671
19671
  }
19672
19672
  return H(["mop", "op-limits"], m, r);
19673
- }, si = new Set(["\\smallint"]), ci = (e, t) => {
19673
+ }, si = /* @__PURE__ */ new Set(["\\smallint"]), ci = (e, t) => {
19674
19674
  var n, r, i = !1, a;
19675
19675
  e.type === "supsub" ? (n = e.sup, r = e.sub, a = Q(e.base, "op"), i = !0) : a = Q(e, "op");
19676
19676
  var o = t.style, s = !1;
@@ -20809,7 +20809,7 @@ var Bi = {
20809
20809
  "\\iiiint": "\\dotsi",
20810
20810
  "\\idotsint": "\\dotsi",
20811
20811
  "\\DOTSX": "\\dotsx"
20812
- }, Vi = new Set(["bin", "rel"]);
20812
+ }, Vi = /* @__PURE__ */ new Set(["bin", "rel"]);
20813
20813
  $("\\dots", function(e) {
20814
20814
  var t = "\\dotso", n = e.expandAfterFuture().text;
20815
20815
  return n in Bi ? t = Bi[n] : (n.slice(0, 4) === "\\not" || n in O.math && Vi.has(O.math[n].group)) && (t = "\\dotsb"), t;
@@ -21922,7 +21922,7 @@ var Gi = {
21922
21922
  return o;
21923
21923
  }
21924
21924
  };
21925
- Zi.endOfExpression = new Set([
21925
+ Zi.endOfExpression = /* @__PURE__ */ new Set([
21926
21926
  "}",
21927
21927
  "\\endgroup",
21928
21928
  "\\end",
@@ -1,6 +1,6 @@
1
- import { O as e } from "./chunk-GEFDOKGD-BWpC-zoH.js";
2
- import { n as t, t as n } from "./path-Dm3C8WEs.js";
3
- import { t as r } from "./array-CWNufkl9.js";
1
+ import { O as e } from "./chunk-GEFDOKGD-oBEpn5hN.js";
2
+ import { n as t, t as n } from "./path-CqWAdh69.js";
3
+ import { t as r } from "./array-CApNbSU9.js";
4
4
  //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.js
5
5
  function i(e) {
6
6
  return e[0];
@@ -1,6 +1,6 @@
1
- import { l as e, n as t, o as n, r, t as i } from "./src-CUQ6oOYk.js";
2
- import { i as a, n as o, r as s, t as c } from "./defaultLocale-bckJcYh1.js";
3
- import { t as l } from "./init-B75p2clj.js";
1
+ import { l as e, n as t, o as n, r, t as i } from "./src-3T61hYex.js";
2
+ import { i as a, n as o, r as s, t as c } from "./defaultLocale-aSMWOJHq.js";
3
+ import { t as l } from "./init-Co4dhKfe.js";
4
4
  //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js
5
5
  function u(e, t) {
6
6
  return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
@@ -0,0 +1,259 @@
1
+ import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./chunk-XZSTWKYB-kjAdbx6i.js";
2
+ //#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-R5LLSJPH.mjs
3
+ var g = class extends m {
4
+ static {
5
+ r(this, "ArchitectureTokenBuilder");
6
+ }
7
+ constructor() {
8
+ super(["architecture"]);
9
+ }
10
+ }, _ = class extends l {
11
+ static {
12
+ r(this, "ArchitectureValueConverter");
13
+ }
14
+ runCustomConverter(e, t, n) {
15
+ if (e.name === "ARCH_ICON") return t.replace(/[()]/g, "").trim();
16
+ if (e.name === "ARCH_TEXT_ICON") return t.replace(/["()]/g, "");
17
+ if (e.name === "ARCH_TITLE") {
18
+ let e = t.replace(/^\[|]$/g, "").trim();
19
+ return (e.startsWith("\"") && e.endsWith("\"") || e.startsWith("'") && e.endsWith("'")) && (e = e.slice(1, -1), e = e.replace(/\\"/g, "\"").replace(/\\'/g, "'")), e.trim();
20
+ }
21
+ }
22
+ }, v = { parser: {
23
+ TokenBuilder: /* @__PURE__ */ r(() => new g(), "TokenBuilder"),
24
+ ValueConverter: /* @__PURE__ */ r(() => new _(), "ValueConverter")
25
+ } };
26
+ function y(e = d) {
27
+ let t = c(i(e), p), n = c(a({ shared: t }), f, v);
28
+ return t.ServiceRegistry.register(n), {
29
+ shared: t,
30
+ Architecture: n
31
+ };
32
+ }
33
+ r(y, "createArchitectureServices");
34
+ //#endregion
35
+ //#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7E7YKBS2.mjs
36
+ var b = class extends m {
37
+ static {
38
+ r(this, "GitGraphTokenBuilder");
39
+ }
40
+ constructor() {
41
+ super(["gitGraph"]);
42
+ }
43
+ }, x = { parser: {
44
+ TokenBuilder: /* @__PURE__ */ r(() => new b(), "TokenBuilder"),
45
+ ValueConverter: /* @__PURE__ */ r(() => new o(), "ValueConverter")
46
+ } };
47
+ function S(t = d) {
48
+ let n = c(i(t), p), r = c(a({ shared: n }), e, x);
49
+ return n.ServiceRegistry.register(r), {
50
+ shared: n,
51
+ GitGraph: r
52
+ };
53
+ }
54
+ r(S, "createGitGraphServices");
55
+ //#endregion
56
+ //#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-EGIJ26TM.mjs
57
+ var C = class extends m {
58
+ static {
59
+ r(this, "InfoTokenBuilder");
60
+ }
61
+ constructor() {
62
+ super(["info", "showInfo"]);
63
+ }
64
+ }, w = { parser: {
65
+ TokenBuilder: /* @__PURE__ */ r(() => new C(), "TokenBuilder"),
66
+ ValueConverter: /* @__PURE__ */ r(() => new o(), "ValueConverter")
67
+ } };
68
+ function T(e = d) {
69
+ let t = c(i(e), p), n = c(a({ shared: t }), u, w);
70
+ return t.ServiceRegistry.register(n), {
71
+ shared: t,
72
+ Info: n
73
+ };
74
+ }
75
+ r(T, "createInfoServices");
76
+ //#endregion
77
+ //#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-C72U2L5F.mjs
78
+ var E = class extends m {
79
+ static {
80
+ r(this, "PacketTokenBuilder");
81
+ }
82
+ constructor() {
83
+ super(["packet"]);
84
+ }
85
+ }, D = { parser: {
86
+ TokenBuilder: /* @__PURE__ */ r(() => new E(), "TokenBuilder"),
87
+ ValueConverter: /* @__PURE__ */ r(() => new o(), "ValueConverter")
88
+ } };
89
+ function O(e = d) {
90
+ let n = c(i(e), p), r = c(a({ shared: n }), t, D);
91
+ return n.ServiceRegistry.register(r), {
92
+ shared: n,
93
+ Packet: r
94
+ };
95
+ }
96
+ r(O, "createPacketServices");
97
+ //#endregion
98
+ //#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-XIRO2GV7.mjs
99
+ var k = class extends m {
100
+ static {
101
+ r(this, "PieTokenBuilder");
102
+ }
103
+ constructor() {
104
+ super(["pie", "showData"]);
105
+ }
106
+ }, A = class extends l {
107
+ static {
108
+ r(this, "PieValueConverter");
109
+ }
110
+ runCustomConverter(e, t, n) {
111
+ if (e.name === "PIE_SECTION_LABEL") return t.replace(/"/g, "").trim();
112
+ }
113
+ }, j = { parser: {
114
+ TokenBuilder: /* @__PURE__ */ r(() => new k(), "TokenBuilder"),
115
+ ValueConverter: /* @__PURE__ */ r(() => new A(), "ValueConverter")
116
+ } };
117
+ function M(e = d) {
118
+ let t = c(i(e), p), n = c(a({ shared: t }), s, j);
119
+ return t.ServiceRegistry.register(n), {
120
+ shared: t,
121
+ Pie: n
122
+ };
123
+ }
124
+ r(M, "createPieServices");
125
+ //#endregion
126
+ //#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-L3YUKLVL.mjs
127
+ var N = class extends m {
128
+ static {
129
+ r(this, "RadarTokenBuilder");
130
+ }
131
+ constructor() {
132
+ super(["radar-beta"]);
133
+ }
134
+ }, P = { parser: {
135
+ TokenBuilder: /* @__PURE__ */ r(() => new N(), "TokenBuilder"),
136
+ ValueConverter: /* @__PURE__ */ r(() => new o(), "ValueConverter")
137
+ } };
138
+ function F(e = d) {
139
+ let t = c(i(e), p), n = c(a({ shared: t }), h, P);
140
+ return t.ServiceRegistry.register(n), {
141
+ shared: t,
142
+ Radar: n
143
+ };
144
+ }
145
+ r(F, "createRadarServices");
146
+ //#endregion
147
+ //#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OZEHJAEY.mjs
148
+ var I = class extends m {
149
+ static {
150
+ r(this, "TreemapTokenBuilder");
151
+ }
152
+ constructor() {
153
+ super(["treemap"]);
154
+ }
155
+ }, L = /classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/, R = class extends l {
156
+ static {
157
+ r(this, "TreemapValueConverter");
158
+ }
159
+ runCustomConverter(e, t, n) {
160
+ if (e.name === "NUMBER2") return parseFloat(t.replace(/,/g, ""));
161
+ if (e.name === "SEPARATOR" || e.name === "STRING2") return t.substring(1, t.length - 1);
162
+ if (e.name === "INDENTATION") return t.length;
163
+ if (e.name === "ClassDef") {
164
+ if (typeof t != "string") return t;
165
+ let e = L.exec(t);
166
+ if (e) return {
167
+ $type: "ClassDefStatement",
168
+ className: e[1],
169
+ styleText: e[2] || void 0
170
+ };
171
+ }
172
+ }
173
+ };
174
+ function z(e) {
175
+ let t = e.validation.TreemapValidator, n = e.validation.ValidationRegistry;
176
+ if (n) {
177
+ let e = { Treemap: t.checkSingleRoot.bind(t) };
178
+ n.register(e, t);
179
+ }
180
+ }
181
+ r(z, "registerValidationChecks");
182
+ var B = class {
183
+ static {
184
+ r(this, "TreemapValidator");
185
+ }
186
+ checkSingleRoot(e, t) {
187
+ let n;
188
+ for (let r of e.TreemapRows) r.item && (n === void 0 && r.indent === void 0 ? n = 0 : (r.indent === void 0 || n !== void 0 && n >= parseInt(r.indent, 10)) && t("error", "Multiple root nodes are not allowed in a treemap.", {
189
+ node: r,
190
+ property: "item"
191
+ }));
192
+ }
193
+ }, V = {
194
+ parser: {
195
+ TokenBuilder: /* @__PURE__ */ r(() => new I(), "TokenBuilder"),
196
+ ValueConverter: /* @__PURE__ */ r(() => new R(), "ValueConverter")
197
+ },
198
+ validation: { TreemapValidator: /* @__PURE__ */ r(() => new B(), "TreemapValidator") }
199
+ };
200
+ function H(e = d) {
201
+ let t = c(i(e), p), r = c(a({ shared: t }), n, V);
202
+ return t.ServiceRegistry.register(r), z(r), {
203
+ shared: t,
204
+ Treemap: r
205
+ };
206
+ }
207
+ r(H, "createTreemapServices");
208
+ //#endregion
209
+ //#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.mjs
210
+ var U = {}, W = {
211
+ info: /* @__PURE__ */ r(async () => {
212
+ let { createInfoServices: e } = await import("./info-3K5VOQVL-CRBCVSej.js");
213
+ U.info = e().Info.parser.LangiumParser;
214
+ }, "info"),
215
+ packet: /* @__PURE__ */ r(async () => {
216
+ let { createPacketServices: e } = await import("./packet-RMMSAZCW-CyE-elPF.js");
217
+ U.packet = e().Packet.parser.LangiumParser;
218
+ }, "packet"),
219
+ pie: /* @__PURE__ */ r(async () => {
220
+ let { createPieServices: e } = await import("./pie-UPGHQEXC-EfdQ-_OF.js");
221
+ U.pie = e().Pie.parser.LangiumParser;
222
+ }, "pie"),
223
+ architecture: /* @__PURE__ */ r(async () => {
224
+ let { createArchitectureServices: e } = await import("./architecture-PBZL5I3N-M9p1teRv.js");
225
+ U.architecture = e().Architecture.parser.LangiumParser;
226
+ }, "architecture"),
227
+ gitGraph: /* @__PURE__ */ r(async () => {
228
+ let { createGitGraphServices: e } = await import("./gitGraph-HDMCJU4V-x8fnR2OX.js");
229
+ U.gitGraph = e().GitGraph.parser.LangiumParser;
230
+ }, "gitGraph"),
231
+ radar: /* @__PURE__ */ r(async () => {
232
+ let { createRadarServices: e } = await import("./radar-KQ55EAFF-B68vkNB4.js");
233
+ U.radar = e().Radar.parser.LangiumParser;
234
+ }, "radar"),
235
+ treemap: /* @__PURE__ */ r(async () => {
236
+ let { createTreemapServices: e } = await import("./treemap-KZPCXAKY-Dg_ShzRB.js");
237
+ U.treemap = e().Treemap.parser.LangiumParser;
238
+ }, "treemap")
239
+ };
240
+ async function G(e, t) {
241
+ let n = W[e];
242
+ if (!n) throw Error(`Unknown diagram type: ${e}`);
243
+ U[e] || await n();
244
+ let r = U[e].parse(t);
245
+ if (r.lexerErrors.length > 0 || r.parserErrors.length > 0) throw new K(r);
246
+ return r.value;
247
+ }
248
+ r(G, "parse");
249
+ var K = class extends Error {
250
+ constructor(e) {
251
+ let t = e.lexerErrors.map((e) => `Lexer error on line ${e.line !== void 0 && !isNaN(e.line) ? e.line : "?"}, column ${e.column !== void 0 && !isNaN(e.column) ? e.column : "?"}: ${e.message}`).join("\n"), n = e.parserErrors.map((e) => `Parse error on line ${e.token.startLine !== void 0 && !isNaN(e.token.startLine) ? e.token.startLine : "?"}, column ${e.token.startColumn !== void 0 && !isNaN(e.token.startColumn) ? e.token.startColumn : "?"}: ${e.message}`).join("\n");
252
+ super(`Parsing failed: ${t} ${n}`), this.result = e;
253
+ }
254
+ static {
255
+ r(this, "MermaidParseError");
256
+ }
257
+ };
258
+ //#endregion
259
+ export { F as a, D as c, T as d, x as f, y as h, P as i, O as l, v as m, V as n, j as o, S as p, H as r, M as s, G as t, w as u };