@antdv-next/x 1.0.2-beta.2 → 1.0.2-beta.4
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/actions/Actions.js +1 -1
- package/dist/attachments/index.js +1 -1
- package/dist/conversations/index.js +1 -1
- package/dist/file-card/FileCard.js +1 -1
- package/dist/file-card/List.js +1 -1
- package/dist/index.umd.js +25 -25
- package/dist/locale/useLocale.js +1 -1
- package/dist/mermaid/Mermaid.js +1 -1
- package/dist/package.js +1 -1
- package/dist/prompts/Prompts.js +1 -1
- package/dist/sender/Sender.js +1 -1
- package/dist/sender/SenderHeader.js +1 -1
- package/dist/sender/SenderSwitch.js +1 -1
- package/dist/sources/Sources.js +1 -1
- package/dist/suggestion/Suggestion.js +1 -1
- package/dist/theme/genStyleUtils.js +1 -1
- package/dist/think/Think.js +1 -1
- package/dist/thought-chain/Item.js +1 -1
- package/dist/thought-chain/Node.js +1 -1
- package/dist/thought-chain/ThoughtChain.js +1 -1
- package/dist/welcome/index.js +1 -1
- package/dist/x-provider/hooks/use-x-provider-context.js +1 -1
- package/es/{Serializer-y_SfSPKv.js → Serializer-D1JYN1kI.js} +4 -4
- package/es/{_basePickBy-DPqob0cQ.js → _basePickBy-DFHEGO2M.js} +23 -23
- package/es/{_baseUniq-AMhRdOMz.js → _baseUniq-BlS7rXTs.js} +83 -83
- package/es/antdv-next-x.esm.js +44833 -7290
- package/es/{arc-caEkbRYF.js → arc-BuXEd18J.js} +3 -3
- package/es/architecture-PBZL5I3N-D7tS55xM.js +3 -0
- package/es/{architectureDiagram-2XIMDMQ5-ZOgJV9Kg.js → architectureDiagram-2XIMDMQ5-CmfsCwJk.js} +85 -85
- package/es/{blockDiagram-WCTKOSBZ-8iZwAKBK.js → blockDiagram-WCTKOSBZ-lJAan65A.js} +530 -530
- package/es/{c4Diagram-IC4MRINW-DrH9eRMR.js → c4Diagram-IC4MRINW-B1c2x_1Q.js} +170 -170
- package/es/channel-DFgF_2F7.js +5 -0
- package/es/{chunk-4BX2VUAB-DUVpjbJi.js → chunk-4BX2VUAB-J2N81Fpp.js} +2 -2
- package/es/{chunk-55IACEB6-RlJ-J3tE.js → chunk-55IACEB6-DGtfGRgi.js} +2 -2
- package/es/{chunk-7E7YKBS2-ChLFamzc.js → chunk-7E7YKBS2-CL2d4WAf.js} +2 -2
- package/es/{chunk-7R4GIKGN-B9vamSzt.js → chunk-7R4GIKGN-QT6IorJ_.js} +3 -3
- package/es/{chunk-C72U2L5F-BV-rXau1.js → chunk-C72U2L5F-OHTVpS-m.js} +2 -2
- package/es/{chunk-EGIJ26TM-GvsuORRL.js → chunk-EGIJ26TM-DyMPGYrB.js} +2 -2
- package/es/{chunk-FMBD7UC4-D6ZlqqMC.js → chunk-FMBD7UC4-DCcRjunY.js} +2 -2
- package/es/{chunk-GEFDOKGD-DM6dsEsk.js → chunk-GEFDOKGD-BWpC-zoH.js} +278 -278
- package/es/chunk-GLR3WWYH-DiXcKb5Y.js +41 -0
- package/es/{chunk-HHEYEP7N-FVfYw94p.js → chunk-HHEYEP7N-Cxc7E4dX.js} +3 -3
- package/es/{chunk-JSJVCQXG-Wr9uPcCh.js → chunk-JSJVCQXG-D8_heHOp.js} +4 -4
- package/es/{chunk-KX2RTZJC-BGffjoxB.js → chunk-KX2RTZJC-D5cc4rj6.js} +3 -3
- package/es/{chunk-KYZI473N-Bit5smNE.js → chunk-KYZI473N-BHJ3T5Zv.js} +573 -573
- package/es/{chunk-L3YUKLVL-DBuHDpQ2.js → chunk-L3YUKLVL-7oGaUOdc.js} +2 -2
- package/es/{chunk-MX3YWQON-Cbj2WwUZ.js → chunk-MX3YWQON-BxE-Aq9c.js} +2 -2
- package/es/{chunk-NQ4KR5QH-FPQ-IHJN.js → chunk-NQ4KR5QH-EYQBXkqP.js} +120 -120
- package/es/{chunk-O4XLMI2P-BCDk0ZIW.js → chunk-O4XLMI2P-qjOoGpnx.js} +238 -238
- package/es/{chunk-OZEHJAEY-BZ24IOgQ.js → chunk-OZEHJAEY-D82nx27s.js} +2 -2
- package/es/{chunk-PQ6SQG4A-DpwBx6Hx.js → chunk-PQ6SQG4A-D3jtNCWN.js} +3 -3
- package/es/{chunk-PU5JKC2W-BNpJuXxn.js → chunk-PU5JKC2W-DdP8BS-S.js} +76 -76
- package/es/{chunk-QZHKN3VN-NEMwPryC.js → chunk-QZHKN3VN-CW3cFN-h.js} +2 -2
- package/es/{chunk-R5LLSJPH-g44vgerl.js → chunk-R5LLSJPH-CreI2kO9.js} +2 -2
- package/es/{chunk-WL4C6EOR-B6l-Yy2t.js → chunk-WL4C6EOR-BDbxJyGk.js} +120 -120
- package/es/{chunk-XIRO2GV7-CaFInIOW.js → chunk-XIRO2GV7-S5KkbVnN.js} +2 -2
- package/es/{chunk-XPW4576I-Cp1j6iTN.js → chunk-XPW4576I-B0KVSHwE.js} +2 -2
- package/es/{chunk-XZSTWKYB-CGk7ipHd.js → chunk-XZSTWKYB-CucN1XvM.js} +93 -93
- package/es/{chunk-YBOYWFTD-dOTBpTYs.js → chunk-YBOYWFTD-CvaddD9G.js} +8 -8
- package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +29 -0
- package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +29 -0
- package/es/clone-r3YukIBB.js +8 -0
- package/es/{cose-bilkent-S5V4N54A-DlmXyn6m.js → cose-bilkent-S5V4N54A-B5OQuIhl.js} +3 -3
- package/es/{cytoscape.esm-BY3wHcbp.js → cytoscape.esm-i2CZcWd-.js} +1 -1
- package/es/{dagre-B1qTL793.js → dagre-5aGJFKmT.js} +57 -57
- package/es/dagre-KLK3FWXG-BI5QQMXo.js +294 -0
- package/es/{defaultLocale-BaPFSbai.js → defaultLocale-bckJcYh1.js} +12 -12
- package/es/{diagram-E7M64L7V-Dnd8N74o.js → diagram-E7M64L7V-Dz62Vz_a.js} +83 -83
- package/es/{diagram-IFDJBPK2-Dan7RsGr.js → diagram-IFDJBPK2-9fjvFkSc.js} +31 -31
- package/es/{diagram-P4PSJMXO-DwKJpttH.js → diagram-P4PSJMXO-BlX6jFjZ.js} +32 -32
- package/es/{dist-DltyvPj3.js → dist-BX_roQzC.js} +1 -1
- package/es/{erDiagram-INFDFZHY-CGO6k23w.js → erDiagram-INFDFZHY-BcRXu8Cp.js} +128 -128
- package/es/{flowDiagram-PKNHOUZH-DFN1GsRx.js → flowDiagram-PKNHOUZH-UeyfgU8z.js} +156 -156
- package/es/{ganttDiagram-A5KZAMGK-Cf5NxH1w.js → ganttDiagram-A5KZAMGK-txCzqgQ5.js} +625 -622
- package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +3 -0
- package/es/{gitGraphDiagram-K3NZZRJ6-BgE6aSZO.js → gitGraphDiagram-K3NZZRJ6-DghWYaFU.js} +176 -176
- package/es/{graphlib-DFxSohCv.js → graphlib-dRkI1OCL.js} +4 -4
- package/es/{html-C2-_98S6.js → html-B6UxjOv0.js} +1 -1
- package/es/html-Hb1oe8XT.js +2 -0
- package/es/info-3K5VOQVL-COqdvM99.js +3 -0
- package/es/{infoDiagram-LFFYTUFH-WcApcdl5.js → infoDiagram-LFFYTUFH-CA-vlAvP.js} +5 -5
- package/es/{init-PAs0hR-b.js → init-B75p2clj.js} +1 -1
- package/es/{isArrayLikeObject-BEG9p74d.js → isArrayLikeObject-jl2bjkAJ.js} +80 -80
- package/es/{isEmpty-B1YrVV8B.js → isEmpty-CmA-HYrg.js} +3 -3
- package/es/{ishikawaDiagram-PHBUUO56-DwK7J31a.js → ishikawaDiagram-PHBUUO56-DjdpS9Lb.js} +67 -67
- package/es/{journeyDiagram-4ABVD52K-CWuA57by.js → journeyDiagram-4ABVD52K-CIJfC1fp.js} +6 -6
- package/es/{kanban-definition-K7BYSVSG-DBt3gYRQ.js → kanban-definition-K7BYSVSG-CC2vwGck.js} +11 -11
- package/es/{katex-OR8z_f6I.js → katex-DCMiIo1z.js} +1 -1
- package/es/{line-zOBKZCP5.js → line-Cu9NTacD.js} +4 -4
- package/es/{linear-DttXWw4q.js → linear-C0rAYYmp.js} +23 -23
- package/es/{math-DPzKeDKn.js → math-CoDOuve-.js} +1 -1
- package/es/{mermaid-parser.core-CWNEdmZ_.js → mermaid-parser.core-7Wn2L29P.js} +16 -16
- package/es/{mermaid.core-DPBXXViR.js → mermaid.core-Bvy_Q6Hu.js} +208 -208
- package/es/{mindmap-definition-YRQLILUH-Bq2xqboX.js → mindmap-definition-YRQLILUH-BzTYDYmK.js} +16 -16
- package/es/{ordinal-D8PKtxfM.js → ordinal-F3U6aXtP.js} +3 -3
- package/es/packet-RMMSAZCW-2PTjWKLd.js +3 -0
- package/es/{path-DZ-6AyWK.js → path-Dm3C8WEs.js} +3 -3
- package/es/pie-UPGHQEXC-Du8-k-EA.js +3 -0
- package/es/{pieDiagram-SKSYHLDU-D4iMzwzH.js → pieDiagram-SKSYHLDU-COvqE_C6.js} +32 -32
- package/es/{quadrantDiagram-337W2JSQ-DSbXC0z6.js → quadrantDiagram-337W2JSQ-Dgv8ccjt.js} +4 -4
- package/es/radar-KQ55EAFF-jJOhyjxC.js +3 -0
- package/es/{requirementDiagram-Z7DCOOCP-D7eLn3fs.js → requirementDiagram-Z7DCOOCP-B2NyhxO-.js} +59 -59
- package/es/{rough.esm-C_hJ3ICT.js → rough.esm-BhGP2Udb.js} +1 -1
- package/es/{sankeyDiagram-WA2Y5GQK-DN5ZPgWU.js → sankeyDiagram-WA2Y5GQK-BfnH_gpl.js} +18 -18
- package/es/{sequenceDiagram-2WXFIKYE-CRFEBP8-.js → sequenceDiagram-2WXFIKYE-DXssVQOF.js} +390 -390
- package/es/{src-BH16DVv0.js → src-CUQ6oOYk.js} +86 -86
- package/es/{stateDiagram-RAJIS63D-CfO23QJX.js → stateDiagram-RAJIS63D-DvDLfupV.js} +68 -68
- package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +27 -0
- package/es/{timeline-definition-YZTLITO2-DmpPrD-3.js → timeline-definition-YZTLITO2-ErcRjbZf.js} +4 -4
- package/es/treemap-KZPCXAKY-CvZAIYVa.js +3 -0
- package/es/{vennDiagram-LZ73GAT5-B80Xr4jV.js → vennDiagram-LZ73GAT5-CDTZUtc8.js} +107 -107
- package/es/{vue-DTiWrQBM.js → vue-2aJw7p5p.js} +2 -2
- package/es/{vue-html-BG3Xflut.js → vue-html-DEjI8X9t.js} +1 -1
- package/es/{xychartDiagram-JWTSCODW-DvQyPDr4.js → xychartDiagram-JWTSCODW-Y21jBOTg.js} +103 -103
- package/package.json +1 -1
- package/es/architecture-PBZL5I3N-CBmkTWjb.js +0 -3
- package/es/channel-DIQFjdG3.js +0 -5
- package/es/chunk-GLR3WWYH-CqFdLic9.js +0 -41
- package/es/classDiagram-VBA2DB6C-B3yBiQy3.js +0 -29
- package/es/classDiagram-v2-RAHNMMFH-jbFYm_Xj.js +0 -29
- package/es/clone-DXVS0uSx.js +0 -8
- package/es/dagre-KLK3FWXG-CEhXRLVR.js +0 -294
- package/es/gitGraph-HDMCJU4V-CrEEHSZS.js +0 -3
- package/es/html-JbFqcNgP.js +0 -2
- package/es/info-3K5VOQVL-Dg3DCp4F.js +0 -3
- package/es/packet-RMMSAZCW-Dk7mKMJ4.js +0 -3
- package/es/pie-UPGHQEXC-CnM5YLNO.js +0 -3
- package/es/radar-KQ55EAFF-BwfADDx8.js +0 -3
- package/es/stateDiagram-v2-FVOUBMTO-BGWbXepL.js +0 -27
- package/es/treemap-KZPCXAKY-BWfn7JxQ.js +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as e, f as t, g as n, h as r, m as i, n as a, p as o, s, t as c } from "./chunk-XZSTWKYB-
|
|
2
|
-
//#region ../../node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OZEHJAEY.mjs
|
|
1
|
+
import { d as e, f as t, g as n, h as r, m as i, n as a, p as o, s, t as c } from "./chunk-XZSTWKYB-CucN1XvM.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OZEHJAEY.mjs
|
|
3
3
|
var l = class extends c {
|
|
4
4
|
static {
|
|
5
5
|
t(this, "TreemapTokenBuilder");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as e } from "./src-
|
|
2
|
-
import { b as t } from "./chunk-7R4GIKGN-
|
|
3
|
-
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-PQ6SQG4A.mjs
|
|
1
|
+
import { h as e } from "./src-CUQ6oOYk.js";
|
|
2
|
+
import { b as t } from "./chunk-7R4GIKGN-QT6IorJ_.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-PQ6SQG4A.mjs
|
|
4
4
|
var n = /* @__PURE__ */ e((e) => {
|
|
5
5
|
let { handDrawnSeed: n } = t();
|
|
6
6
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { L as i, P as a, k as o, s, y as c } from "./chunk-7R4GIKGN-
|
|
4
|
-
//#region ../../node_modules/@iconify/utils/lib/icon/defaults.js
|
|
1
|
+
import { g as e, h as t, p as n } from "./src-CUQ6oOYk.js";
|
|
2
|
+
import { i as r } from "./chunk-GEFDOKGD-BWpC-zoH.js";
|
|
3
|
+
import { L as i, P as a, k as o, s, y as c } from "./chunk-7R4GIKGN-QT6IorJ_.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/icon/defaults.js
|
|
5
5
|
var l = Object.freeze({
|
|
6
6
|
left: 0,
|
|
7
7
|
top: 0,
|
|
@@ -59,7 +59,7 @@ var l = Object.freeze({
|
|
|
59
59
|
return null;
|
|
60
60
|
}, g = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
|
|
61
61
|
//#endregion
|
|
62
|
-
//#region ../../node_modules/@iconify/utils/lib/icon/transformations.js
|
|
62
|
+
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/icon/transformations.js
|
|
63
63
|
function ee(e, t) {
|
|
64
64
|
let n = {};
|
|
65
65
|
!e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
|
|
@@ -67,14 +67,14 @@ function ee(e, t) {
|
|
|
67
67
|
return r && (n.rotate = r), n;
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
|
-
//#region ../../node_modules/@iconify/utils/lib/icon/merge.js
|
|
70
|
+
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/icon/merge.js
|
|
71
71
|
function te(e, t) {
|
|
72
72
|
let n = ee(e, t);
|
|
73
73
|
for (let r in f) r in u ? r in e && !(r in n) && (n[r] = u[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
|
|
74
74
|
return n;
|
|
75
75
|
}
|
|
76
76
|
//#endregion
|
|
77
|
-
//#region ../../node_modules/@iconify/utils/lib/icon-set/tree.js
|
|
77
|
+
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/icon-set/tree.js
|
|
78
78
|
function ne(e, t) {
|
|
79
79
|
let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
|
|
80
80
|
function a(e) {
|
|
@@ -89,7 +89,7 @@ function ne(e, t) {
|
|
|
89
89
|
return (t || Object.keys(n).concat(Object.keys(r))).forEach(a), i;
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
|
-
//#region ../../node_modules/@iconify/utils/lib/icon-set/get-icon.js
|
|
92
|
+
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/icon-set/get-icon.js
|
|
93
93
|
function re(e, t, n) {
|
|
94
94
|
let r = e.icons, i = e.aliases || Object.create(null), a = {};
|
|
95
95
|
function o(e) {
|
|
@@ -103,7 +103,7 @@ function ie(e, t) {
|
|
|
103
103
|
return n ? re(e, t, n) : null;
|
|
104
104
|
}
|
|
105
105
|
//#endregion
|
|
106
|
-
//#region ../../node_modules/@iconify/utils/lib/svg/size.js
|
|
106
|
+
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/svg/size.js
|
|
107
107
|
var ae = /(-?[0-9.]*[0-9]+[0-9.]*)/g, oe = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
108
108
|
function se(e, t, n) {
|
|
109
109
|
if (t === 1) return e;
|
|
@@ -122,7 +122,7 @@ function se(e, t, n) {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
//#endregion
|
|
125
|
-
//#region ../../node_modules/@iconify/utils/lib/svg/defs.js
|
|
125
|
+
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/svg/defs.js
|
|
126
126
|
function ce(e, t = "defs") {
|
|
127
127
|
let n = "", r = e.indexOf("<" + t);
|
|
128
128
|
for (; r >= 0;) {
|
|
@@ -145,7 +145,7 @@ function ue(e, t, n) {
|
|
|
145
145
|
return le(r.defs, t + r.content + n);
|
|
146
146
|
}
|
|
147
147
|
//#endregion
|
|
148
|
-
//#region ../../node_modules/@iconify/utils/lib/svg/build.js
|
|
148
|
+
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/svg/build.js
|
|
149
149
|
var de = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
150
150
|
function fe(e, t) {
|
|
151
151
|
let n = {
|
|
@@ -196,7 +196,7 @@ function fe(e, t) {
|
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
198
|
//#endregion
|
|
199
|
-
//#region ../../node_modules/@iconify/utils/lib/svg/id.js
|
|
199
|
+
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/svg/id.js
|
|
200
200
|
var pe = /\sid="(\S+)"/g, me = /* @__PURE__ */ new Map();
|
|
201
201
|
function he(e) {
|
|
202
202
|
e = e.replace(/[0-9]+$/, "") || "a";
|
|
@@ -214,14 +214,14 @@ function ge(e) {
|
|
|
214
214
|
}), e = e.replace(new RegExp(r, "g"), ""), e;
|
|
215
215
|
}
|
|
216
216
|
//#endregion
|
|
217
|
-
//#region ../../node_modules/@iconify/utils/lib/svg/html.js
|
|
217
|
+
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/svg/html.js
|
|
218
218
|
function _e(e, t) {
|
|
219
219
|
let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
|
|
220
220
|
for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
|
|
221
221
|
return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
|
|
222
222
|
}
|
|
223
223
|
//#endregion
|
|
224
|
-
//#region ../../node_modules/marked/lib/marked.esm.js
|
|
224
|
+
//#region ../../node_modules/.pnpm/marked@16.4.2/node_modules/marked/lib/marked.esm.js
|
|
225
225
|
function _() {
|
|
226
226
|
return {
|
|
227
227
|
async: !1,
|
|
@@ -1606,7 +1606,7 @@ G.options = G.setOptions = function(e) {
|
|
|
1606
1606
|
return W.walkTokens(e, t);
|
|
1607
1607
|
}, G.parseInline = W.parseInline, G.Parser = H, G.parser = H.parse, G.Renderer = B, G.TextRenderer = V, G.Lexer = z, G.lexer = z.lex, G.Tokenizer = R, G.Hooks = U, G.parse = G, G.options, G.setOptions, G.use, G.walkTokens, G.parseInline, H.parse, z.lex;
|
|
1608
1608
|
//#endregion
|
|
1609
|
-
//#region ../../node_modules/ts-dedent/esm/index.js
|
|
1609
|
+
//#region ../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js
|
|
1610
1610
|
function gt(e) {
|
|
1611
1611
|
var t = [...arguments].slice(1), n = Array.from(typeof e == "string" ? [e] : e);
|
|
1612
1612
|
n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
@@ -1632,51 +1632,51 @@ function gt(e) {
|
|
|
1632
1632
|
}), a;
|
|
1633
1633
|
}
|
|
1634
1634
|
//#endregion
|
|
1635
|
-
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-PU5JKC2W.mjs
|
|
1635
|
+
//#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-PU5JKC2W.mjs
|
|
1636
1636
|
var _t = {
|
|
1637
1637
|
body: "<g><rect width=\"80\" height=\"80\" style=\"fill: #087ebf; stroke-width: 0px;\"/><text transform=\"translate(21.16 64.67)\" style=\"fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;\"><tspan x=\"0\" y=\"0\">?</tspan></text></g>",
|
|
1638
1638
|
height: 80,
|
|
1639
1639
|
width: 80
|
|
1640
|
-
}, K = /* @__PURE__ */ new Map(), vt = /* @__PURE__ */ new Map(), yt = /* @__PURE__ */
|
|
1641
|
-
for (let n of
|
|
1640
|
+
}, K = /* @__PURE__ */ new Map(), vt = /* @__PURE__ */ new Map(), yt = /* @__PURE__ */ t((t) => {
|
|
1641
|
+
for (let n of t) {
|
|
1642
1642
|
if (!n.name) throw Error("Invalid icon loader. Must have a \"name\" property with non-empty string value.");
|
|
1643
|
-
if (
|
|
1643
|
+
if (e.debug("Registering icon pack:", n.name), "loader" in n) vt.set(n.name, n.loader);
|
|
1644
1644
|
else if ("icons" in n) K.set(n.name, n.icons);
|
|
1645
|
-
else throw
|
|
1645
|
+
else throw e.error("Invalid icon loader:", n), Error("Invalid icon loader. Must have either \"icons\" or \"loader\" property.");
|
|
1646
1646
|
}
|
|
1647
|
-
}, "registerIconPacks"), bt = /* @__PURE__ */
|
|
1648
|
-
let r = h(
|
|
1649
|
-
if (!r) throw Error(`Invalid icon name: ${
|
|
1647
|
+
}, "registerIconPacks"), bt = /* @__PURE__ */ t(async (t, n) => {
|
|
1648
|
+
let r = h(t, !0, n !== void 0);
|
|
1649
|
+
if (!r) throw Error(`Invalid icon name: ${t}`);
|
|
1650
1650
|
let i = r.prefix || n;
|
|
1651
|
-
if (!i) throw Error(`Icon name must contain a prefix: ${
|
|
1651
|
+
if (!i) throw Error(`Icon name must contain a prefix: ${t}`);
|
|
1652
1652
|
let a = K.get(i);
|
|
1653
1653
|
if (!a) {
|
|
1654
|
-
let
|
|
1655
|
-
if (!
|
|
1654
|
+
let t = vt.get(i);
|
|
1655
|
+
if (!t) throw Error(`Icon set not found: ${r.prefix}`);
|
|
1656
1656
|
try {
|
|
1657
1657
|
a = {
|
|
1658
|
-
...await
|
|
1658
|
+
...await t(),
|
|
1659
1659
|
prefix: i
|
|
1660
1660
|
}, K.set(i, a);
|
|
1661
|
-
} catch (
|
|
1662
|
-
throw
|
|
1661
|
+
} catch (t) {
|
|
1662
|
+
throw e.error(t), Error(`Failed to load icon set: ${r.prefix}`);
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
1665
|
let o = ie(a, r.name);
|
|
1666
|
-
if (!o) throw Error(`Icon not found: ${
|
|
1666
|
+
if (!o) throw Error(`Icon not found: ${t}`);
|
|
1667
1667
|
return o;
|
|
1668
|
-
}, "getRegisteredIconData"), xt = /* @__PURE__ */
|
|
1668
|
+
}, "getRegisteredIconData"), xt = /* @__PURE__ */ t(async (e) => {
|
|
1669
1669
|
try {
|
|
1670
1670
|
return await bt(e), !0;
|
|
1671
1671
|
} catch {
|
|
1672
1672
|
return !1;
|
|
1673
1673
|
}
|
|
1674
|
-
}, "isIconAvailable"), St = /* @__PURE__ */
|
|
1674
|
+
}, "isIconAvailable"), St = /* @__PURE__ */ t(async (t, n, r) => {
|
|
1675
1675
|
let a;
|
|
1676
1676
|
try {
|
|
1677
|
-
a = await bt(
|
|
1678
|
-
} catch (
|
|
1679
|
-
|
|
1677
|
+
a = await bt(t, n?.fallbackPrefix);
|
|
1678
|
+
} catch (t) {
|
|
1679
|
+
e.error(t), a = _t;
|
|
1680
1680
|
}
|
|
1681
1681
|
let o = fe(a, n);
|
|
1682
1682
|
return i(_e(ge(o.body), {
|
|
@@ -1687,16 +1687,16 @@ var _t = {
|
|
|
1687
1687
|
function Ct(e, { markdownAutoWrap: t }) {
|
|
1688
1688
|
return gt(e.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
|
|
1689
1689
|
}
|
|
1690
|
-
|
|
1690
|
+
t(Ct, "preprocessMarkdown");
|
|
1691
1691
|
function wt(e) {
|
|
1692
1692
|
return e.split(/\\n|\n|<br\s*\/?>/gi).map((e) => e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((e) => ({
|
|
1693
1693
|
content: e,
|
|
1694
1694
|
type: "normal"
|
|
1695
1695
|
})) ?? []);
|
|
1696
1696
|
}
|
|
1697
|
-
|
|
1698
|
-
function Tt(e,
|
|
1699
|
-
let r = Ct(e,
|
|
1697
|
+
t(wt, "nonMarkdownToLines");
|
|
1698
|
+
function Tt(e, n = {}) {
|
|
1699
|
+
let r = Ct(e, n), i = G.lexer(r), a = [[]], o = 0;
|
|
1700
1700
|
function s(e, t = "normal") {
|
|
1701
1701
|
e.type === "text" ? e.text.split("\n").forEach((e, n) => {
|
|
1702
1702
|
n !== 0 && (o++, a.push([])), e.split(" ").forEach((e) => {
|
|
@@ -1712,7 +1712,7 @@ function Tt(e, t = {}) {
|
|
|
1712
1712
|
type: "normal"
|
|
1713
1713
|
});
|
|
1714
1714
|
}
|
|
1715
|
-
return
|
|
1715
|
+
return t(s, "processNode"), i.forEach((e) => {
|
|
1716
1716
|
e.type === "paragraph" ? e.tokens?.forEach((e) => {
|
|
1717
1717
|
s(e);
|
|
1718
1718
|
}) : e.type === "html" ? a[o].push({
|
|
@@ -1724,27 +1724,27 @@ function Tt(e, t = {}) {
|
|
|
1724
1724
|
});
|
|
1725
1725
|
}), a;
|
|
1726
1726
|
}
|
|
1727
|
-
|
|
1727
|
+
t(Tt, "markdownToLines");
|
|
1728
1728
|
function Et(e) {
|
|
1729
1729
|
return e ? `<p>${e.replace(/\\n|\n/g, "<br />")}</p>` : "";
|
|
1730
1730
|
}
|
|
1731
|
-
|
|
1732
|
-
function Dt(
|
|
1733
|
-
let i = G.lexer(
|
|
1734
|
-
function a(
|
|
1735
|
-
return
|
|
1731
|
+
t(Et, "nonMarkdownToHTML");
|
|
1732
|
+
function Dt(n, { markdownAutoWrap: r } = {}) {
|
|
1733
|
+
let i = G.lexer(n);
|
|
1734
|
+
function a(t) {
|
|
1735
|
+
return t.type === "text" ? r === !1 ? t.text.replace(/\n */g, "<br/>").replace(/ /g, " ") : t.text.replace(/\n */g, "<br/>") : t.type === "strong" ? `<strong>${t.tokens?.map(a).join("")}</strong>` : t.type === "em" ? `<em>${t.tokens?.map(a).join("")}</em>` : t.type === "paragraph" ? `<p>${t.tokens?.map(a).join("")}</p>` : t.type === "space" ? "" : t.type === "html" ? `${t.text}` : t.type === "escape" ? t.text : (e.warn(`Unsupported markdown: ${t.type}`), t.raw);
|
|
1736
1736
|
}
|
|
1737
|
-
return
|
|
1737
|
+
return t(a, "output"), i.map(a).join("");
|
|
1738
1738
|
}
|
|
1739
|
-
|
|
1739
|
+
t(Dt, "markdownToHTML");
|
|
1740
1740
|
function Ot(e) {
|
|
1741
1741
|
return Intl.Segmenter ? [...new Intl.Segmenter().segment(e)].map((e) => e.segment) : [...e];
|
|
1742
1742
|
}
|
|
1743
|
-
|
|
1743
|
+
t(Ot, "splitTextToChars");
|
|
1744
1744
|
function kt(e, t) {
|
|
1745
1745
|
return q(e, [], Ot(t.content), t.type);
|
|
1746
1746
|
}
|
|
1747
|
-
|
|
1747
|
+
t(kt, "splitWordToFitWidth");
|
|
1748
1748
|
function q(e, t, n, r) {
|
|
1749
1749
|
if (n.length === 0) return [{
|
|
1750
1750
|
content: t.join(""),
|
|
@@ -1765,12 +1765,12 @@ function q(e, t, n, r) {
|
|
|
1765
1765
|
type: r
|
|
1766
1766
|
}]);
|
|
1767
1767
|
}
|
|
1768
|
-
|
|
1768
|
+
t(q, "splitWordToFitWidthRecursion");
|
|
1769
1769
|
function At(e, t) {
|
|
1770
1770
|
if (e.some(({ content: e }) => e.includes("\n"))) throw Error("splitLineToFitWidth does not support newlines in the line");
|
|
1771
1771
|
return J(e, t);
|
|
1772
1772
|
}
|
|
1773
|
-
|
|
1773
|
+
t(At, "splitLineToFitWidth");
|
|
1774
1774
|
function J(e, t, n = [], r = []) {
|
|
1775
1775
|
if (e.length === 0) return r.length > 0 && n.push(r), n.length > 0 ? n : [];
|
|
1776
1776
|
let i = "";
|
|
@@ -1790,11 +1790,11 @@ function J(e, t, n = [], r = []) {
|
|
|
1790
1790
|
}
|
|
1791
1791
|
return J(e, t, n);
|
|
1792
1792
|
}
|
|
1793
|
-
|
|
1793
|
+
t(J, "splitLineToFitWidthRecursion");
|
|
1794
1794
|
function Y(e, t) {
|
|
1795
1795
|
t && e.attr("style", t);
|
|
1796
1796
|
}
|
|
1797
|
-
|
|
1797
|
+
t(Y, "applyStyle");
|
|
1798
1798
|
var jt = 16384;
|
|
1799
1799
|
async function Mt(e, t, n, r, l = !1, u = c()) {
|
|
1800
1800
|
let d = e.append("foreignObject");
|
|
@@ -1804,19 +1804,19 @@ async function Mt(e, t, n, r, l = !1, u = c()) {
|
|
|
1804
1804
|
let g = f.node().getBoundingClientRect();
|
|
1805
1805
|
return g.width === n && (f.style("display", "table"), f.style("white-space", "break-spaces"), f.style("width", n + "px"), g = f.node().getBoundingClientRect()), d.node();
|
|
1806
1806
|
}
|
|
1807
|
-
|
|
1807
|
+
t(Mt, "addHtmlSpan");
|
|
1808
1808
|
function X(e, t, n, r = !1) {
|
|
1809
1809
|
let i = e.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", t * n - .1 + "em").attr("dy", n + "em");
|
|
1810
1810
|
return r && i.attr("text-anchor", "middle"), i;
|
|
1811
1811
|
}
|
|
1812
|
-
|
|
1812
|
+
t(X, "createTspan");
|
|
1813
1813
|
function Nt(e, t, n) {
|
|
1814
1814
|
let r = e.append("text"), i = X(r, 1, t);
|
|
1815
1815
|
Q(i, n);
|
|
1816
1816
|
let a = i.node().getComputedTextLength();
|
|
1817
1817
|
return r.remove(), a;
|
|
1818
1818
|
}
|
|
1819
|
-
|
|
1819
|
+
t(Nt, "computeWidthOfText");
|
|
1820
1820
|
function Pt(e, t, n) {
|
|
1821
1821
|
let r = e.append("text"), i = X(r, 1, t);
|
|
1822
1822
|
Q(i, [{
|
|
@@ -1826,13 +1826,13 @@ function Pt(e, t, n) {
|
|
|
1826
1826
|
let a = i.node()?.getBoundingClientRect();
|
|
1827
1827
|
return a && r.remove(), a;
|
|
1828
1828
|
}
|
|
1829
|
-
|
|
1830
|
-
function Z(e,
|
|
1831
|
-
let o = 1.1, s =
|
|
1829
|
+
t(Pt, "computeDimensionOfText");
|
|
1830
|
+
function Z(e, n, r, i = !1, a = !1) {
|
|
1831
|
+
let o = 1.1, s = n.append("g"), c = s.insert("rect").attr("class", "background").attr("style", "stroke: none"), l = s.append("text").attr("y", "-10.1");
|
|
1832
1832
|
a && l.attr("text-anchor", "middle");
|
|
1833
1833
|
let u = 0;
|
|
1834
|
-
for (let
|
|
1835
|
-
let r = /* @__PURE__ */
|
|
1834
|
+
for (let n of r) {
|
|
1835
|
+
let r = /* @__PURE__ */ t((t) => Nt(s, o, t) <= e, "checkWidth"), i = r(n) ? [n] : At(n, r);
|
|
1836
1836
|
for (let e of i) Q(X(l, u, o, a), e), u++;
|
|
1837
1837
|
}
|
|
1838
1838
|
if (i) {
|
|
@@ -1840,14 +1840,14 @@ function Z(e, t, r, i = !1, a = !1) {
|
|
|
1840
1840
|
return c.attr("x", e.x - 2).attr("y", e.y - 2).attr("width", e.width + 4).attr("height", e.height + 4), s.node();
|
|
1841
1841
|
} else return l.node();
|
|
1842
1842
|
}
|
|
1843
|
-
|
|
1843
|
+
t(Z, "createFormattedText");
|
|
1844
1844
|
function Q(e, t) {
|
|
1845
1845
|
e.text(""), t.forEach((t, n) => {
|
|
1846
1846
|
let r = e.append("tspan").attr("font-style", t.type === "em" ? "italic" : "normal").attr("class", "text-inner-tspan").attr("font-weight", t.type === "strong" ? "bold" : "normal");
|
|
1847
1847
|
n === 0 ? r.text(t.content) : r.text(" " + t.content);
|
|
1848
1848
|
});
|
|
1849
1849
|
}
|
|
1850
|
-
|
|
1850
|
+
t(Q, "updateTextContentAndStyles");
|
|
1851
1851
|
async function $(e, t = {}) {
|
|
1852
1852
|
let n = [];
|
|
1853
1853
|
e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, (e, r, a) => (n.push((async () => {
|
|
@@ -1857,28 +1857,28 @@ async function $(e, t = {}) {
|
|
|
1857
1857
|
let r = await Promise.all(n);
|
|
1858
1858
|
return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, () => r.shift() ?? "");
|
|
1859
1859
|
}
|
|
1860
|
-
|
|
1861
|
-
var Ft = /* @__PURE__ */
|
|
1862
|
-
if (
|
|
1863
|
-
let
|
|
1864
|
-
return await Mt(
|
|
1860
|
+
t($, "replaceIconSubstring");
|
|
1861
|
+
var Ft = /* @__PURE__ */ t(async (t, i = "", { style: a = "", isTitle: s = !1, classes: c = "", useHtmlLabels: l = !0, markdown: u = !0, isNode: d = !0, width: f = 200, addSvgBackground: p = !1 } = {}, m) => {
|
|
1862
|
+
if (e.debug("XYZ createText", i, a, s, c, l, d, "addSvgBackground: ", p), l) {
|
|
1863
|
+
let e = await $(r(u ? Dt(i, m) : Et(i)), m), n = i.replace(/\\\\/g, "\\");
|
|
1864
|
+
return await Mt(t, {
|
|
1865
1865
|
isNode: d,
|
|
1866
|
-
label: o(i) ?
|
|
1866
|
+
label: o(i) ? n : e,
|
|
1867
1867
|
labelStyle: a.replace("fill:", "color:")
|
|
1868
1868
|
}, f, c, p, m);
|
|
1869
1869
|
} else {
|
|
1870
|
-
let e = i.replace(/<br\s*\/?>/g, "<br/>"),
|
|
1870
|
+
let e = i.replace(/<br\s*\/?>/g, "<br/>"), r = Z(f, t, u ? Tt(e.replace("<br>", "<br/>"), m) : wt(e), i ? p : !1, !d);
|
|
1871
1871
|
if (d) {
|
|
1872
1872
|
/stroke:/.exec(a) && (a = a.replace("stroke:", "lineColor:"));
|
|
1873
1873
|
let e = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
|
|
1874
|
-
r
|
|
1874
|
+
n(r).attr("style", e);
|
|
1875
1875
|
} else {
|
|
1876
1876
|
let e = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/background:/g, "fill:");
|
|
1877
|
-
r
|
|
1878
|
-
let
|
|
1879
|
-
r
|
|
1877
|
+
n(r).select("rect").attr("style", e.replace(/background:/g, "fill:"));
|
|
1878
|
+
let t = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
|
|
1879
|
+
n(r).select("text").attr("style", t);
|
|
1880
1880
|
}
|
|
1881
|
-
return s ? r
|
|
1881
|
+
return s ? n(r).selectAll("tspan.text-outer-tspan").classed("title-row", !0) : n(r).selectAll("tspan.text-outer-tspan").classed("row", !0), r;
|
|
1882
1882
|
}
|
|
1883
1883
|
}, "createText");
|
|
1884
1884
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as e } from "./src-
|
|
2
|
-
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.mjs
|
|
1
|
+
import { h as e } from "./src-CUQ6oOYk.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.mjs
|
|
3
3
|
var t = class {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
this.init = e, this.records = this.init();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as e, g as t, h as n, m as r, n as i, p as a, r as o, s, t as c } from "./chunk-XZSTWKYB-
|
|
2
|
-
//#region ../../node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-R5LLSJPH.mjs
|
|
1
|
+
import { f as e, g as t, h as n, m as r, n as i, p as a, r as o, s, t as c } from "./chunk-XZSTWKYB-CucN1XvM.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
3
|
var l = class extends c {
|
|
4
4
|
static {
|
|
5
5
|
e(this, "ArchitectureTokenBuilder");
|