@ucap-llm/ai-ui 1.1.6 → 1.1.7

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 (55) hide show
  1. package/_basePickBy-7d00d05e.mjs +153 -0
  2. package/_baseUniq-1876be04.mjs +440 -0
  3. package/ai-ui.es.js +11 -78207
  4. package/ai-ui.umd.js +2701 -143
  5. package/arc-bb1e7b28.mjs +85 -0
  6. package/architecture-4AB2E3PP-26f07d27.mjs +10 -0
  7. package/architectureDiagram-IEHRJDOE-535e4958.mjs +4640 -0
  8. package/blockDiagram-JOT3LUYC-e5536854.mjs +2251 -0
  9. package/c4Diagram-VJAJSXHY-311741c3.mjs +1583 -0
  10. package/channel-5d097975.mjs +5 -0
  11. package/chunk-4BMEZGHF-55420838.mjs +9 -0
  12. package/chunk-A2AXSNBT-5f9de039.mjs +1373 -0
  13. package/chunk-AEK57VVT-bd6e836f.mjs +1416 -0
  14. package/chunk-D6G4REZN-69cf348a.mjs +64 -0
  15. package/chunk-RZ5BOZE2-ebe3985e.mjs +24 -0
  16. package/chunk-XZIHB7SX-ed9a9d65.mjs +15 -0
  17. package/classDiagram-GIVACNV2-4d61f06d.mjs +18 -0
  18. package/classDiagram-v2-COTLJTTW-4d61f06d.mjs +18 -0
  19. package/clone-44064c55.mjs +8 -0
  20. package/cytoscape.esm-bb479f88.mjs +18232 -0
  21. package/dagre-OKDRZEBW-0574359b.mjs +448 -0
  22. package/diagram-SSKATNLV-f4dd04b2.mjs +225 -0
  23. package/diagram-VNBRO52H-f77f925a.mjs +130 -0
  24. package/erDiagram-Q7BY3M3F-8213684f.mjs +843 -0
  25. package/flowDiagram-4HSFHLVR-1decdff6.mjs +1624 -0
  26. package/ganttDiagram-APWFNJXF-461381a5.mjs +2521 -0
  27. package/gitGraph-O2Q2CXLX-d961db16.mjs +10 -0
  28. package/gitGraphDiagram-7IBYFJ6S-be6c39c3.mjs +716 -0
  29. package/graph-7ba79f74.mjs +249 -0
  30. package/index-f5aac161.mjs +93487 -0
  31. package/info-4N47QTOZ-615527c9.mjs +10 -0
  32. package/infoDiagram-PH2N3AL5-064df479.mjs +26 -0
  33. package/init-f9637058.mjs +16 -0
  34. package/journeyDiagram-U35MCT3I-94c54b39.mjs +811 -0
  35. package/kanban-definition-NDS4AKOZ-58a05db1.mjs +720 -0
  36. package/katex-2e45926a.mjs +11700 -0
  37. package/layout-c953b0e7.mjs +1344 -0
  38. package/linear-3c81794f.mjs +447 -0
  39. package/mermaid-parser.core-7afd2b2f.mjs +12845 -0
  40. package/mindmap-definition-ALO5MXBD-60e68e28.mjs +3222 -0
  41. package/ordinal-980380c7.mjs +65 -0
  42. package/package.json +1 -1
  43. package/packet-KVYON367-4b5a305e.mjs +10 -0
  44. package/pie-R6RNRRYF-0f27d16d.mjs +10 -0
  45. package/pieDiagram-IB7DONF6-66cebf11.mjs +167 -0
  46. package/quadrantDiagram-7GDLP6J5-f2cbfc79.mjs +1027 -0
  47. package/radar-MK3ICKWK-9e1913d7.mjs +10 -0
  48. package/requirementDiagram-KVF5MWMF-36d316c2.mjs +853 -0
  49. package/sankeyDiagram-QLVOVGJD-76245efb.mjs +826 -0
  50. package/sequenceDiagram-X6HHIX6F-a0ec0021.mjs +2283 -0
  51. package/stateDiagram-DGXRK772-e6387816.mjs +274 -0
  52. package/stateDiagram-v2-YXO3MK2T-f011ada4.mjs +18 -0
  53. package/style.css +1 -1
  54. package/timeline-definition-BDJGKUSR-a62514a7.mjs +806 -0
  55. package/xychartDiagram-VJFVF3MP-1b807048.mjs +1306 -0
@@ -0,0 +1,249 @@
1
+ import { az as N, aA as j, aB as f, aC as b, aD as _, aE as E } from "./index-f5aac161.mjs";
2
+ import { a as v, c as P, f as g, d, i as l, v as p, r as D } from "./_baseUniq-1876be04.mjs";
3
+ var w = N(function(o) {
4
+ return v(P(o, 1, j, !0));
5
+ });
6
+ const F = w;
7
+ var M = "\0", a = "\0", O = "";
8
+ class L {
9
+ constructor(e = {}) {
10
+ this._isDirected = Object.prototype.hasOwnProperty.call(e, "directed") ? e.directed : !0, this._isMultigraph = Object.prototype.hasOwnProperty.call(e, "multigraph") ? e.multigraph : !1, this._isCompound = Object.prototype.hasOwnProperty.call(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = f(void 0), this._defaultEdgeLabelFn = f(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[a] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {};
11
+ }
12
+ /* === Graph functions ========= */
13
+ isDirected() {
14
+ return this._isDirected;
15
+ }
16
+ isMultigraph() {
17
+ return this._isMultigraph;
18
+ }
19
+ isCompound() {
20
+ return this._isCompound;
21
+ }
22
+ setGraph(e) {
23
+ return this._label = e, this;
24
+ }
25
+ graph() {
26
+ return this._label;
27
+ }
28
+ /* === Node functions ========== */
29
+ setDefaultNodeLabel(e) {
30
+ return b(e) || (e = f(e)), this._defaultNodeLabelFn = e, this;
31
+ }
32
+ nodeCount() {
33
+ return this._nodeCount;
34
+ }
35
+ nodes() {
36
+ return _(this._nodes);
37
+ }
38
+ sources() {
39
+ var e = this;
40
+ return g(this.nodes(), function(t) {
41
+ return E(e._in[t]);
42
+ });
43
+ }
44
+ sinks() {
45
+ var e = this;
46
+ return g(this.nodes(), function(t) {
47
+ return E(e._out[t]);
48
+ });
49
+ }
50
+ setNodes(e, t) {
51
+ var s = arguments, i = this;
52
+ return d(e, function(r) {
53
+ s.length > 1 ? i.setNode(r, t) : i.setNode(r);
54
+ }), this;
55
+ }
56
+ setNode(e, t) {
57
+ return Object.prototype.hasOwnProperty.call(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = t), this) : (this._nodes[e] = arguments.length > 1 ? t : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = a, this._children[e] = {}, this._children[a][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
58
+ }
59
+ node(e) {
60
+ return this._nodes[e];
61
+ }
62
+ hasNode(e) {
63
+ return Object.prototype.hasOwnProperty.call(this._nodes, e);
64
+ }
65
+ removeNode(e) {
66
+ if (Object.prototype.hasOwnProperty.call(this._nodes, e)) {
67
+ var t = (s) => this.removeEdge(this._edgeObjs[s]);
68
+ delete this._nodes[e], this._isCompound && (this._removeFromParentsChildList(e), delete this._parent[e], d(this.children(e), (s) => {
69
+ this.setParent(s);
70
+ }), delete this._children[e]), d(_(this._in[e]), t), delete this._in[e], delete this._preds[e], d(_(this._out[e]), t), delete this._out[e], delete this._sucs[e], --this._nodeCount;
71
+ }
72
+ return this;
73
+ }
74
+ setParent(e, t) {
75
+ if (!this._isCompound)
76
+ throw new Error("Cannot set parent in a non-compound graph");
77
+ if (l(t))
78
+ t = a;
79
+ else {
80
+ t += "";
81
+ for (var s = t; !l(s); s = this.parent(s))
82
+ if (s === e)
83
+ throw new Error("Setting " + t + " as parent of " + e + " would create a cycle");
84
+ this.setNode(t);
85
+ }
86
+ return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] = t, this._children[t][e] = !0, this;
87
+ }
88
+ _removeFromParentsChildList(e) {
89
+ delete this._children[this._parent[e]][e];
90
+ }
91
+ parent(e) {
92
+ if (this._isCompound) {
93
+ var t = this._parent[e];
94
+ if (t !== a)
95
+ return t;
96
+ }
97
+ }
98
+ children(e) {
99
+ if (l(e) && (e = a), this._isCompound) {
100
+ var t = this._children[e];
101
+ if (t)
102
+ return _(t);
103
+ } else {
104
+ if (e === a)
105
+ return this.nodes();
106
+ if (this.hasNode(e))
107
+ return [];
108
+ }
109
+ }
110
+ predecessors(e) {
111
+ var t = this._preds[e];
112
+ if (t)
113
+ return _(t);
114
+ }
115
+ successors(e) {
116
+ var t = this._sucs[e];
117
+ if (t)
118
+ return _(t);
119
+ }
120
+ neighbors(e) {
121
+ var t = this.predecessors(e);
122
+ if (t)
123
+ return F(t, this.successors(e));
124
+ }
125
+ isLeaf(e) {
126
+ var t;
127
+ return this.isDirected() ? t = this.successors(e) : t = this.neighbors(e), t.length === 0;
128
+ }
129
+ filterNodes(e) {
130
+ var t = new this.constructor({
131
+ directed: this._isDirected,
132
+ multigraph: this._isMultigraph,
133
+ compound: this._isCompound
134
+ });
135
+ t.setGraph(this.graph());
136
+ var s = this;
137
+ d(this._nodes, function(n, h) {
138
+ e(h) && t.setNode(h, n);
139
+ }), d(this._edgeObjs, function(n) {
140
+ t.hasNode(n.v) && t.hasNode(n.w) && t.setEdge(n, s.edge(n));
141
+ });
142
+ var i = {};
143
+ function r(n) {
144
+ var h = s.parent(n);
145
+ return h === void 0 || t.hasNode(h) ? (i[n] = h, h) : h in i ? i[h] : r(h);
146
+ }
147
+ return this._isCompound && d(t.nodes(), function(n) {
148
+ t.setParent(n, r(n));
149
+ }), t;
150
+ }
151
+ /* === Edge functions ========== */
152
+ setDefaultEdgeLabel(e) {
153
+ return b(e) || (e = f(e)), this._defaultEdgeLabelFn = e, this;
154
+ }
155
+ edgeCount() {
156
+ return this._edgeCount;
157
+ }
158
+ edges() {
159
+ return p(this._edgeObjs);
160
+ }
161
+ setPath(e, t) {
162
+ var s = this, i = arguments;
163
+ return D(e, function(r, n) {
164
+ return i.length > 1 ? s.setEdge(r, n, t) : s.setEdge(r, n), n;
165
+ }), this;
166
+ }
167
+ /*
168
+ * setEdge(v, w, [value, [name]])
169
+ * setEdge({ v, w, [name] }, [value])
170
+ */
171
+ setEdge() {
172
+ var e, t, s, i, r = !1, n = arguments[0];
173
+ typeof n == "object" && n !== null && "v" in n ? (e = n.v, t = n.w, s = n.name, arguments.length === 2 && (i = arguments[1], r = !0)) : (e = n, t = arguments[1], s = arguments[3], arguments.length > 2 && (i = arguments[2], r = !0)), e = "" + e, t = "" + t, l(s) || (s = "" + s);
174
+ var h = c(this._isDirected, e, t, s);
175
+ if (Object.prototype.hasOwnProperty.call(this._edgeLabels, h))
176
+ return r && (this._edgeLabels[h] = i), this;
177
+ if (!l(s) && !this._isMultigraph)
178
+ throw new Error("Cannot set a named edge when isMultigraph = false");
179
+ this.setNode(e), this.setNode(t), this._edgeLabels[h] = r ? i : this._defaultEdgeLabelFn(e, t, s);
180
+ var u = A(this._isDirected, e, t, s);
181
+ return e = u.v, t = u.w, Object.freeze(u), this._edgeObjs[h] = u, C(this._preds[t], e), C(this._sucs[e], t), this._in[t][h] = u, this._out[e][h] = u, this._edgeCount++, this;
182
+ }
183
+ edge(e, t, s) {
184
+ var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s);
185
+ return this._edgeLabels[i];
186
+ }
187
+ hasEdge(e, t, s) {
188
+ var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s);
189
+ return Object.prototype.hasOwnProperty.call(this._edgeLabels, i);
190
+ }
191
+ removeEdge(e, t, s) {
192
+ var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s), r = this._edgeObjs[i];
193
+ return r && (e = r.v, t = r.w, delete this._edgeLabels[i], delete this._edgeObjs[i], y(this._preds[t], e), y(this._sucs[e], t), delete this._in[t][i], delete this._out[e][i], this._edgeCount--), this;
194
+ }
195
+ inEdges(e, t) {
196
+ var s = this._in[e];
197
+ if (s) {
198
+ var i = p(s);
199
+ return t ? g(i, function(r) {
200
+ return r.v === t;
201
+ }) : i;
202
+ }
203
+ }
204
+ outEdges(e, t) {
205
+ var s = this._out[e];
206
+ if (s) {
207
+ var i = p(s);
208
+ return t ? g(i, function(r) {
209
+ return r.w === t;
210
+ }) : i;
211
+ }
212
+ }
213
+ nodeEdges(e, t) {
214
+ var s = this.inEdges(e, t);
215
+ if (s)
216
+ return s.concat(this.outEdges(e, t));
217
+ }
218
+ }
219
+ L.prototype._nodeCount = 0;
220
+ L.prototype._edgeCount = 0;
221
+ function C(o, e) {
222
+ o[e] ? o[e]++ : o[e] = 1;
223
+ }
224
+ function y(o, e) {
225
+ --o[e] || delete o[e];
226
+ }
227
+ function c(o, e, t, s) {
228
+ var i = "" + e, r = "" + t;
229
+ if (!o && i > r) {
230
+ var n = i;
231
+ i = r, r = n;
232
+ }
233
+ return i + O + r + O + (l(s) ? M : s);
234
+ }
235
+ function A(o, e, t, s) {
236
+ var i = "" + e, r = "" + t;
237
+ if (!o && i > r) {
238
+ var n = i;
239
+ i = r, r = n;
240
+ }
241
+ var h = { v: i, w: r };
242
+ return s && (h.name = s), h;
243
+ }
244
+ function m(o, e) {
245
+ return c(o, e.v, e.w, e.name);
246
+ }
247
+ export {
248
+ L as G
249
+ };