lowcoder-comps 0.0.27 → 0.0.29

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 (56) hide show
  1. package/{83f8a9bc.js → 2085da13.js} +1 -1
  2. package/250691b5.js +5 -0
  3. package/274f545c.js +881 -0
  4. package/{991b6314.js → 289305a1.js} +45 -43
  5. package/{6e6c38ae.js → 2eae45c2.js} +1 -1
  6. package/2ff7471d.js +9 -0
  7. package/{d16a79d9.js → 335b22a2.js} +12 -10
  8. package/{e30d5d4a.js → 38c826fe.js} +158 -147
  9. package/{ca35eaa7.js → 44011c1d.js} +286 -293
  10. package/4fc06812.js +64 -0
  11. package/{e7309c57.js → 56a787cf.js} +2 -2
  12. package/590941ff.js +86 -0
  13. package/{a607b479.js → 6341867f.js} +27 -27
  14. package/657fd065.js +8 -0
  15. package/{daee88f9.js → 78a5e50d.js} +133 -132
  16. package/820c3641.js +25 -0
  17. package/{70705fc3.js → 88b4e75a.js} +2 -1
  18. package/8d999722.js +1102 -0
  19. package/{65ab329e.js → 989caea2.js} +148 -145
  20. package/99b984d1.js +237 -0
  21. package/9e5f02d6.js +19104 -0
  22. package/a40faea7.js +11624 -0
  23. package/abac9104.js +1536 -0
  24. package/af2f19b3.js +819 -0
  25. package/{3544d11b.js → af5ee3de.js} +13 -12
  26. package/b24707c2.js +48428 -0
  27. package/b68f8b69.js +1276 -0
  28. package/ba68ba65.js +391 -0
  29. package/{796a2b34.js → bafb8599.js} +1 -1
  30. package/{0d26e631.js → bba60c35.js} +548 -548
  31. package/bd7c2a8e.js +1089 -0
  32. package/c71dadea.js +455 -0
  33. package/{8d8803ff.js → d05c1762.js} +25 -24
  34. package/{5edf1d55.js → d073ab24.js} +32557 -34230
  35. package/{11bb676b.js → d838cd10.js} +6 -5
  36. package/{cea82f05.js → dc36a6eb.js} +11 -11
  37. package/{e1a5f037.js → ed143450.js} +18 -18
  38. package/ee8ec8f2.js +2284 -0
  39. package/f6755210.js +1269 -0
  40. package/{560f788e.js → fba4c8e4.js} +18 -18
  41. package/index.js +2 -2
  42. package/package.json +11 -9
  43. package/31a2d08c.js +0 -365
  44. package/49315e81.js +0 -64
  45. package/55e01450.js +0 -46724
  46. package/63aaeeb8.js +0 -1055
  47. package/685b5f6c.js +0 -1235
  48. package/77072d20.js +0 -22
  49. package/919ae09a.js +0 -1000
  50. package/a0a687f6.js +0 -235
  51. package/a664ee52.js +0 -2192
  52. package/b8dbed32.js +0 -448
  53. package/d9708225.js +0 -86
  54. package/eca15e1d.js +0 -2396
  55. package/f3f6fcfc.js +0 -18798
  56. package/f45254b8.js +0 -786
package/b8dbed32.js DELETED
@@ -1,448 +0,0 @@
1
- var D = (e, l, s) => new Promise((a, i) => {
2
- var p = (c) => {
3
- try {
4
- o(s.next(c));
5
- } catch (r) {
6
- i(r);
7
- }
8
- }, f = (c) => {
9
- try {
10
- o(s.throw(c));
11
- } catch (r) {
12
- i(r);
13
- }
14
- }, o = (c) => c.done ? a(c.value) : Promise.resolve(c.value).then(p, f);
15
- o((s = s.apply(e, l)).next());
16
- });
17
- import { G as M } from "./eca15e1d.js";
18
- import { S as z, u as R, v as F, _ as j, C as U, x as H, y as W, o as A, l as y, p as X, c as C, j as G, q as $, n as E, h as _, z as J, r as K, A as Q } from "./5edf1d55.js";
19
- import { r as Y } from "./31a2d08c.js";
20
- function Z(e) {
21
- return typeof e == "string" ? new z([document.querySelectorAll(e)], [document.documentElement]) : new z([F(e)], R);
22
- }
23
- const O = (e, l) => j.lang.round(U.parse(e)[l]), ee = O;
24
- function ue(e, l) {
25
- return !!e.children(l).length;
26
- }
27
- function we(e) {
28
- return L(e.v) + ":" + L(e.w) + ":" + L(e.name);
29
- }
30
- var te = /:/g;
31
- function L(e) {
32
- return e ? String(e).replace(te, "\\:") : "";
33
- }
34
- function re(e, l) {
35
- l && e.attr("style", l);
36
- }
37
- function he(e, l, s) {
38
- l && e.attr("class", l).attr("class", s + " " + e.attr("class"));
39
- }
40
- function ye(e, l) {
41
- var s = l.graph();
42
- if (H(s)) {
43
- var a = s.transition;
44
- if (W(a))
45
- return a(e);
46
- }
47
- return e;
48
- }
49
- function le(e, l) {
50
- var s = e.append("foreignObject").attr("width", "100000"), a = s.append("xhtml:div");
51
- a.attr("xmlns", "http://www.w3.org/1999/xhtml");
52
- var i = l.label;
53
- switch (typeof i) {
54
- case "function":
55
- a.insert(i);
56
- break;
57
- case "object":
58
- a.insert(function() {
59
- return i;
60
- });
61
- break;
62
- default:
63
- a.html(i);
64
- }
65
- re(a, l.labelStyle), a.style("display", "inline-block"), a.style("white-space", "nowrap");
66
- var p = a.node().getBoundingClientRect();
67
- return s.attr("width", p.width).attr("height", p.height), s;
68
- }
69
- const q = {}, ae = function(e) {
70
- const l = Object.keys(e);
71
- for (const s of l)
72
- q[s] = e[s];
73
- }, P = function(e, l, s, a, i, p) {
74
- const f = a.select(`[id="${s}"]`);
75
- Object.keys(e).forEach(function(c) {
76
- const r = e[c];
77
- let g = "default";
78
- r.classes.length > 0 && (g = r.classes.join(" ")), g = g + " flowchart-label";
79
- const w = A(r.styles);
80
- let t = r.text !== void 0 ? r.text : r.id, d;
81
- if (y.info("vertex", r, r.labelType), r.labelType === "markdown")
82
- y.info("vertex", r, r.labelType);
83
- else if (X(C().flowchart.htmlLabels)) {
84
- const m = {
85
- label: t.replace(
86
- /fa[blrs]?:fa-[\w-]+/g,
87
- (k) => `<i class='${k.replace(":", " ")}'></i>`
88
- )
89
- };
90
- d = le(f, m).node(), d.parentNode.removeChild(d);
91
- } else {
92
- const m = i.createElementNS("http://www.w3.org/2000/svg", "text");
93
- m.setAttribute("style", w.labelStyle.replace("color:", "fill:"));
94
- const k = t.split(G.lineBreakRegex);
95
- for (const T of k) {
96
- const v = i.createElementNS("http://www.w3.org/2000/svg", "tspan");
97
- v.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), v.setAttribute("dy", "1em"), v.setAttribute("x", "1"), v.textContent = T, m.appendChild(v);
98
- }
99
- d = m;
100
- }
101
- let b = 0, n = "";
102
- switch (r.type) {
103
- case "round":
104
- b = 5, n = "rect";
105
- break;
106
- case "square":
107
- n = "rect";
108
- break;
109
- case "diamond":
110
- n = "question";
111
- break;
112
- case "hexagon":
113
- n = "hexagon";
114
- break;
115
- case "odd":
116
- n = "rect_left_inv_arrow";
117
- break;
118
- case "lean_right":
119
- n = "lean_right";
120
- break;
121
- case "lean_left":
122
- n = "lean_left";
123
- break;
124
- case "trapezoid":
125
- n = "trapezoid";
126
- break;
127
- case "inv_trapezoid":
128
- n = "inv_trapezoid";
129
- break;
130
- case "odd_right":
131
- n = "rect_left_inv_arrow";
132
- break;
133
- case "circle":
134
- n = "circle";
135
- break;
136
- case "ellipse":
137
- n = "ellipse";
138
- break;
139
- case "stadium":
140
- n = "stadium";
141
- break;
142
- case "subroutine":
143
- n = "subroutine";
144
- break;
145
- case "cylinder":
146
- n = "cylinder";
147
- break;
148
- case "group":
149
- n = "rect";
150
- break;
151
- case "doublecircle":
152
- n = "doublecircle";
153
- break;
154
- default:
155
- n = "rect";
156
- }
157
- l.setNode(r.id, {
158
- labelStyle: w.labelStyle,
159
- shape: n,
160
- labelText: t,
161
- labelType: r.labelType,
162
- rx: b,
163
- ry: b,
164
- class: g,
165
- style: w.style,
166
- id: r.id,
167
- link: r.link,
168
- linkTarget: r.linkTarget,
169
- tooltip: p.db.getTooltip(r.id) || "",
170
- domId: p.db.lookUpDomId(r.id),
171
- haveCallback: r.haveCallback,
172
- width: r.type === "group" ? 500 : void 0,
173
- dir: r.dir,
174
- type: r.type,
175
- props: r.props,
176
- padding: C().flowchart.padding
177
- }), y.info("setNode", {
178
- labelStyle: w.labelStyle,
179
- labelType: r.labelType,
180
- shape: n,
181
- labelText: t,
182
- rx: b,
183
- ry: b,
184
- class: g,
185
- style: w.style,
186
- id: r.id,
187
- domId: p.db.lookUpDomId(r.id),
188
- width: r.type === "group" ? 500 : void 0,
189
- type: r.type,
190
- dir: r.dir,
191
- props: r.props,
192
- padding: C().flowchart.padding
193
- });
194
- });
195
- }, V = function(e, l, s) {
196
- y.info("abc78 edges = ", e);
197
- let a = 0, i = {}, p, f;
198
- if (e.defaultStyle !== void 0) {
199
- const o = A(e.defaultStyle);
200
- p = o.style, f = o.labelStyle;
201
- }
202
- e.forEach(function(o) {
203
- a++;
204
- const c = "L-" + o.start + "-" + o.end;
205
- i[c] === void 0 ? (i[c] = 0, y.info("abc78 new entry", c, i[c])) : (i[c]++, y.info("abc78 new entry", c, i[c]));
206
- let r = c + "-" + i[c];
207
- y.info("abc78 new link id to be used is", c, r, i[c]);
208
- const g = "LS-" + o.start, w = "LE-" + o.end, t = { style: "", labelStyle: "" };
209
- switch (t.minlen = o.length || 1, o.type === "arrow_open" ? t.arrowhead = "none" : t.arrowhead = "normal", t.arrowTypeStart = "arrow_open", t.arrowTypeEnd = "arrow_open", o.type) {
210
- case "double_arrow_cross":
211
- t.arrowTypeStart = "arrow_cross";
212
- case "arrow_cross":
213
- t.arrowTypeEnd = "arrow_cross";
214
- break;
215
- case "double_arrow_point":
216
- t.arrowTypeStart = "arrow_point";
217
- case "arrow_point":
218
- t.arrowTypeEnd = "arrow_point";
219
- break;
220
- case "double_arrow_circle":
221
- t.arrowTypeStart = "arrow_circle";
222
- case "arrow_circle":
223
- t.arrowTypeEnd = "arrow_circle";
224
- break;
225
- }
226
- let d = "", b = "";
227
- switch (o.stroke) {
228
- case "normal":
229
- d = "fill:none;", p !== void 0 && (d = p), f !== void 0 && (b = f), t.thickness = "normal", t.pattern = "solid";
230
- break;
231
- case "dotted":
232
- t.thickness = "normal", t.pattern = "dotted", t.style = "fill:none;stroke-width:2px;stroke-dasharray:3;";
233
- break;
234
- case "thick":
235
- t.thickness = "thick", t.pattern = "solid", t.style = "stroke-width: 3.5px;fill:none;";
236
- break;
237
- case "invisible":
238
- t.thickness = "invisible", t.pattern = "solid", t.style = "stroke-width: 0;fill:none;";
239
- break;
240
- }
241
- if (o.style !== void 0) {
242
- const n = A(o.style);
243
- d = n.style, b = n.labelStyle;
244
- }
245
- t.style = t.style += d, t.labelStyle = t.labelStyle += b, o.interpolate !== void 0 ? t.curve = $(o.interpolate, E) : e.defaultInterpolate !== void 0 ? t.curve = $(e.defaultInterpolate, E) : t.curve = $(q.curve, E), o.text === void 0 ? o.style !== void 0 && (t.arrowheadStyle = "fill: #333") : (t.arrowheadStyle = "fill: #333", t.labelpos = "c"), t.labelType = o.labelType, t.label = o.text.replace(G.lineBreakRegex, `
246
- `), o.style === void 0 && (t.style = t.style || "stroke: #333; stroke-width: 1.5px;fill:none;"), t.labelStyle = t.labelStyle.replace("color:", "fill:"), t.id = r, t.classes = "flowchart-link " + g + " " + w, l.setEdge(o.start, o.end, t, a);
247
- });
248
- }, oe = function(e, l) {
249
- return l.db.getClasses();
250
- }, ne = function(e, l, s, a) {
251
- return D(this, null, function* () {
252
- y.info("Drawing flowchart");
253
- let i = a.db.getDirection();
254
- i === void 0 && (i = "TD");
255
- const { securityLevel: p, flowchart: f } = C(), o = f.nodeSpacing || 50, c = f.rankSpacing || 50;
256
- let r;
257
- p === "sandbox" && (r = _("#i" + l));
258
- const g = p === "sandbox" ? _(r.nodes()[0].contentDocument.body) : _("body"), w = p === "sandbox" ? r.nodes()[0].contentDocument : document, t = new M({
259
- multigraph: !0,
260
- compound: !0
261
- }).setGraph({
262
- rankdir: i,
263
- nodesep: o,
264
- ranksep: c,
265
- marginx: 0,
266
- marginy: 0
267
- }).setDefaultEdgeLabel(function() {
268
- return {};
269
- });
270
- let d;
271
- const b = a.db.getSubGraphs();
272
- y.info("Subgraphs - ", b);
273
- for (let u = b.length - 1; u >= 0; u--)
274
- d = b[u], y.info("Subgraph - ", d), a.db.addVertex(
275
- d.id,
276
- { text: d.title, type: d.labelType },
277
- "group",
278
- void 0,
279
- d.classes,
280
- d.dir
281
- );
282
- const n = a.db.getVertices(), m = a.db.getEdges();
283
- y.info("Edges", m);
284
- let k = 0;
285
- for (k = b.length - 1; k >= 0; k--) {
286
- d = b[k], Z("cluster").append("text");
287
- for (let u = 0; u < d.nodes.length; u++)
288
- y.info("Setting up subgraphs", d.nodes[u], d.id), t.setParent(d.nodes[u], d.id);
289
- }
290
- P(n, t, l, g, w, a), V(m, t);
291
- const T = g.select(`[id="${l}"]`), v = g.select("#" + l + " g");
292
- if (yield Y(v, t, ["point", "circle", "cross"], "flowchart", l), J.insertTitle(T, "flowchartTitleText", f.titleTopMargin, a.db.getDiagramTitle()), K(t, T, f.diagramPadding, f.useMaxWidth), a.db.indexNodes("subGraph" + k), !f.htmlLabels) {
293
- const u = w.querySelectorAll('[id="' + l + '"] .edgeLabel .label');
294
- for (const x of u) {
295
- const S = x.getBBox(), h = w.createElementNS("http://www.w3.org/2000/svg", "rect");
296
- h.setAttribute("rx", 0), h.setAttribute("ry", 0), h.setAttribute("width", S.width), h.setAttribute("height", S.height), x.insertBefore(h, x.firstChild);
297
- }
298
- }
299
- Object.keys(n).forEach(function(u) {
300
- const x = n[u];
301
- if (x.link) {
302
- const S = _("#" + l + ' [id="' + u + '"]');
303
- if (S) {
304
- const h = w.createElementNS("http://www.w3.org/2000/svg", "a");
305
- h.setAttributeNS("http://www.w3.org/2000/svg", "class", x.classes.join(" ")), h.setAttributeNS("http://www.w3.org/2000/svg", "href", x.link), h.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener"), p === "sandbox" ? h.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top") : x.linkTarget && h.setAttributeNS("http://www.w3.org/2000/svg", "target", x.linkTarget);
306
- const N = S.insert(function() {
307
- return h;
308
- }, ":first-child"), B = S.select(".label-container");
309
- B && N.append(function() {
310
- return B.node();
311
- });
312
- const I = S.select(".label");
313
- I && N.append(function() {
314
- return I.node();
315
- });
316
- }
317
- }
318
- });
319
- });
320
- }, ge = {
321
- setConf: ae,
322
- addVertices: P,
323
- addEdges: V,
324
- getClasses: oe,
325
- draw: ne
326
- }, se = (e, l) => {
327
- const s = ee, a = s(e, "r"), i = s(e, "g"), p = s(e, "b");
328
- return Q(a, i, p, l);
329
- }, ie = (e) => `.label {
330
- font-family: ${e.fontFamily};
331
- color: ${e.nodeTextColor || e.textColor};
332
- }
333
- .cluster-label text {
334
- fill: ${e.titleColor};
335
- }
336
- .cluster-label span,p {
337
- color: ${e.titleColor};
338
- }
339
-
340
- .label text,span,p {
341
- fill: ${e.nodeTextColor || e.textColor};
342
- color: ${e.nodeTextColor || e.textColor};
343
- }
344
-
345
- .node rect,
346
- .node circle,
347
- .node ellipse,
348
- .node polygon,
349
- .node path {
350
- fill: ${e.mainBkg};
351
- stroke: ${e.nodeBorder};
352
- stroke-width: 1px;
353
- }
354
- .flowchart-label text {
355
- text-anchor: middle;
356
- }
357
- // .flowchart-label .text-outer-tspan {
358
- // text-anchor: middle;
359
- // }
360
- // .flowchart-label .text-inner-tspan {
361
- // text-anchor: start;
362
- // }
363
-
364
- .node .label {
365
- text-align: center;
366
- }
367
- .node.clickable {
368
- cursor: pointer;
369
- }
370
-
371
- .arrowheadPath {
372
- fill: ${e.arrowheadColor};
373
- }
374
-
375
- .edgePath .path {
376
- stroke: ${e.lineColor};
377
- stroke-width: 2.0px;
378
- }
379
-
380
- .flowchart-link {
381
- stroke: ${e.lineColor};
382
- fill: none;
383
- }
384
-
385
- .edgeLabel {
386
- background-color: ${e.edgeLabelBackground};
387
- rect {
388
- opacity: 0.5;
389
- background-color: ${e.edgeLabelBackground};
390
- fill: ${e.edgeLabelBackground};
391
- }
392
- text-align: center;
393
- }
394
-
395
- /* For html labels only */
396
- .labelBkg {
397
- background-color: ${se(e.edgeLabelBackground, 0.5)};
398
- // background-color:
399
- }
400
-
401
- .cluster rect {
402
- fill: ${e.clusterBkg};
403
- stroke: ${e.clusterBorder};
404
- stroke-width: 1px;
405
- }
406
-
407
- .cluster text {
408
- fill: ${e.titleColor};
409
- }
410
-
411
- .cluster span,p {
412
- color: ${e.titleColor};
413
- }
414
- /* .cluster div {
415
- color: ${e.titleColor};
416
- } */
417
-
418
- div.mermaidTooltip {
419
- position: absolute;
420
- text-align: center;
421
- max-width: 200px;
422
- padding: 2px;
423
- font-family: ${e.fontFamily};
424
- font-size: 12px;
425
- background: ${e.tertiaryColor};
426
- border: 1px solid ${e.border2};
427
- border-radius: 2px;
428
- pointer-events: none;
429
- z-index: 100;
430
- }
431
-
432
- .flowchartTitleText {
433
- text-anchor: middle;
434
- font-size: 18px;
435
- fill: ${e.textColor};
436
- }
437
- `, ke = ie;
438
- export {
439
- re as a,
440
- le as b,
441
- ye as c,
442
- he as d,
443
- we as e,
444
- ge as f,
445
- ke as g,
446
- ue as i,
447
- Z as s
448
- };
package/d9708225.js DELETED
@@ -1,86 +0,0 @@
1
- import { w as ln, c as V } from "./256b619e.js";
2
- import { aV as an, aW as Z, aX as w, aY as rn, aZ as y, U as on, a_ as z, a$ as _, b0 as un, b1 as t, b2 as sn, b3 as tn, b4 as fn } from "./5edf1d55.js";
3
- function cn(l) {
4
- return l.innerRadius;
5
- }
6
- function yn(l) {
7
- return l.outerRadius;
8
- }
9
- function gn(l) {
10
- return l.startAngle;
11
- }
12
- function mn(l) {
13
- return l.endAngle;
14
- }
15
- function pn(l) {
16
- return l && l.padAngle;
17
- }
18
- function dn(l, h, E, q, v, A, W, a) {
19
- var I = E - l, i = q - h, n = W - v, m = a - A, r = m * I - n * i;
20
- if (!(r * r < y))
21
- return r = (n * (h - A) - m * (l - v)) / r, [l + r * I, h + r * i];
22
- }
23
- function J(l, h, E, q, v, A, W) {
24
- var a = l - E, I = h - q, i = (W ? A : -A) / z(a * a + I * I), n = i * I, m = -i * a, r = l + n, s = h + m, f = E + n, c = q + m, X = (r + f) / 2, o = (s + c) / 2, p = f - r, g = c - s, R = p * p + g * g, T = v - A, P = r * c - f * s, O = (g < 0 ? -1 : 1) * z(fn(0, T * T * R - P * P)), S = (P * g - p * O) / R, U = (-P * p - g * O) / R, b = (P * g + p * O) / R, d = (-P * p + g * O) / R, x = S - X, e = U - o, u = b - X, Y = d - o;
25
- return x * x + e * e > u * u + Y * Y && (S = b, U = d), {
26
- cx: S,
27
- cy: U,
28
- x01: -n,
29
- y01: -m,
30
- x11: S * (v / T - 1),
31
- y11: U * (v / T - 1)
32
- };
33
- }
34
- function vn() {
35
- var l = cn, h = yn, E = V(0), q = null, v = gn, A = mn, W = pn, a = null, I = ln(i);
36
- function i() {
37
- var n, m, r = +l.apply(this, arguments), s = +h.apply(this, arguments), f = v.apply(this, arguments) - rn, c = A.apply(this, arguments) - rn, X = un(c - f), o = c > f;
38
- if (a || (a = n = I()), s < r && (m = s, s = r, r = m), !(s > y))
39
- a.moveTo(0, 0);
40
- else if (X > on - y)
41
- a.moveTo(s * Z(f), s * w(f)), a.arc(0, 0, s, f, c, !o), r > y && (a.moveTo(r * Z(c), r * w(c)), a.arc(0, 0, r, c, f, o));
42
- else {
43
- var p = f, g = c, R = f, T = c, P = X, O = X, S = W.apply(this, arguments) / 2, U = S > y && (q ? +q.apply(this, arguments) : z(r * r + s * s)), b = _(un(s - r) / 2, +E.apply(this, arguments)), d = b, x = b, e, u;
44
- if (U > y) {
45
- var Y = sn(U / r * w(S)), B = sn(U / s * w(S));
46
- (P -= Y * 2) > y ? (Y *= o ? 1 : -1, R += Y, T -= Y) : (P = 0, R = T = (f + c) / 2), (O -= B * 2) > y ? (B *= o ? 1 : -1, p += B, g -= B) : (O = 0, p = g = (f + c) / 2);
47
- }
48
- var $ = s * Z(p), j = s * w(p), C = r * Z(T), F = r * w(T);
49
- if (b > y) {
50
- var G = s * Z(g), H = s * w(g), K = r * Z(R), L = r * w(R), D;
51
- if (X < an)
52
- if (D = dn($, j, K, L, G, H, C, F)) {
53
- var M = $ - D[0], N = j - D[1], Q = G - D[0], k = H - D[1], nn = 1 / w(tn((M * Q + N * k) / (z(M * M + N * N) * z(Q * Q + k * k))) / 2), en = z(D[0] * D[0] + D[1] * D[1]);
54
- d = _(b, (r - en) / (nn - 1)), x = _(b, (s - en) / (nn + 1));
55
- } else
56
- d = x = 0;
57
- }
58
- O > y ? x > y ? (e = J(K, L, $, j, s, x, o), u = J(G, H, C, F, s, x, o), a.moveTo(e.cx + e.x01, e.cy + e.y01), x < b ? a.arc(e.cx, e.cy, x, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, x, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, s, t(e.cy + e.y11, e.cx + e.x11), t(u.cy + u.y11, u.cx + u.x11), !o), a.arc(u.cx, u.cy, x, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : (a.moveTo($, j), a.arc(0, 0, s, p, g, !o)) : a.moveTo($, j), !(r > y) || !(P > y) ? a.lineTo(C, F) : d > y ? (e = J(C, F, G, H, r, -d, o), u = J($, j, K, L, r, -d, o), a.lineTo(e.cx + e.x01, e.cy + e.y01), d < b ? a.arc(e.cx, e.cy, d, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, d, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, r, t(e.cy + e.y11, e.cx + e.x11), t(u.cy + u.y11, u.cx + u.x11), o), a.arc(u.cx, u.cy, d, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : a.arc(0, 0, r, T, R, o);
59
- }
60
- if (a.closePath(), n)
61
- return a = null, n + "" || null;
62
- }
63
- return i.centroid = function() {
64
- var n = (+l.apply(this, arguments) + +h.apply(this, arguments)) / 2, m = (+v.apply(this, arguments) + +A.apply(this, arguments)) / 2 - an / 2;
65
- return [Z(m) * n, w(m) * n];
66
- }, i.innerRadius = function(n) {
67
- return arguments.length ? (l = typeof n == "function" ? n : V(+n), i) : l;
68
- }, i.outerRadius = function(n) {
69
- return arguments.length ? (h = typeof n == "function" ? n : V(+n), i) : h;
70
- }, i.cornerRadius = function(n) {
71
- return arguments.length ? (E = typeof n == "function" ? n : V(+n), i) : E;
72
- }, i.padRadius = function(n) {
73
- return arguments.length ? (q = n == null ? null : typeof n == "function" ? n : V(+n), i) : q;
74
- }, i.startAngle = function(n) {
75
- return arguments.length ? (v = typeof n == "function" ? n : V(+n), i) : v;
76
- }, i.endAngle = function(n) {
77
- return arguments.length ? (A = typeof n == "function" ? n : V(+n), i) : A;
78
- }, i.padAngle = function(n) {
79
- return arguments.length ? (W = typeof n == "function" ? n : V(+n), i) : W;
80
- }, i.context = function(n) {
81
- return arguments.length ? (a = n == null ? null : n, i) : a;
82
- }, i;
83
- }
84
- export {
85
- vn as a
86
- };