@infinilabs/ai-chat 0.0.1 → 0.0.2
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/README.md +10 -1
- package/dist/{_baseUniq-BQcAhV7E.js → _baseUniq-BFn6cCm9.js} +1 -1
- package/dist/_baseUniq-nfJyj2zU.cjs +151 -0
- package/dist/arc-BWSMkwk2.cjs +130 -0
- package/dist/{arc-2jwvQ2TN.js → arc-DODeX7B9.js} +1 -1
- package/dist/{architecture-U656AL7Q-WuSilpZW.js → architecture-U656AL7Q-B4C0nw6C.js} +1 -1
- package/dist/architecture-U656AL7Q-CVURQXwt.cjs +5 -0
- package/dist/architectureDiagram-VXUJARFQ-2UbdzpNz.cjs +8681 -0
- package/dist/{architectureDiagram-VXUJARFQ-D6SKNy5z.js → architectureDiagram-VXUJARFQ-NCVmzKuE.js} +3 -3
- package/dist/blockDiagram-VD42YOAC-B3yCPK1N.cjs +3606 -0
- package/dist/{blockDiagram-VD42YOAC-Ct2DD8jj.js → blockDiagram-VD42YOAC-C4FsmQfk.js} +5 -5
- package/dist/{c4Diagram-YG6GDRKO-B7wBU4mz.js → c4Diagram-YG6GDRKO-ATyoKzFV.js} +2 -2
- package/dist/c4Diagram-YG6GDRKO-COwVcHWj.cjs +2481 -0
- package/dist/channel-2Y73gsu9.cjs +6 -0
- package/dist/{channel-BRREX19f.js → channel-oB8MffQV.js} +1 -1
- package/dist/chunk-4BX2VUAB-C3diNHZw.cjs +15 -0
- package/dist/{chunk-4BX2VUAB-BnghU1_v.js → chunk-4BX2VUAB-sd2zFBFz.js} +1 -1
- package/dist/{chunk-55IACEB6-Dduk-DEL.js → chunk-55IACEB6-6ohTnYE3.js} +1 -1
- package/dist/chunk-55IACEB6-T-CzlJke.cjs +12 -0
- package/dist/chunk-B4BG7PRW-B1zqG62l.cjs +1825 -0
- package/dist/{chunk-B4BG7PRW-DeHw-z-x.js → chunk-B4BG7PRW-E1dti26Y.js} +4 -4
- package/dist/chunk-DI55MBZ5-Dk0kfYBV.cjs +1914 -0
- package/dist/{chunk-DI55MBZ5-GTHMAr0M.js → chunk-DI55MBZ5-DpHw-vMw.js} +3 -3
- package/dist/{chunk-FMBD7UC4-Bchh4_3W.js → chunk-FMBD7UC4-B1vXpasq.js} +1 -1
- package/dist/chunk-FMBD7UC4-CShN9-qf.cjs +18 -0
- package/dist/{chunk-QN33PNHL-H6S-NYp0.js → chunk-QN33PNHL-Cw7FG91D.js} +1 -1
- package/dist/chunk-QN33PNHL-DJi1fhak.cjs +23 -0
- package/dist/{chunk-QZHKN3VN-DdcyNnvM.js → chunk-QZHKN3VN-BweiBR9P.js} +1 -1
- package/dist/chunk-QZHKN3VN-DfUW_gDw.cjs +16 -0
- package/dist/chunk-TZMSLE5B-DY2Kbag4.cjs +107 -0
- package/dist/{chunk-TZMSLE5B-C7te_j4V.js → chunk-TZMSLE5B-ZQ2Esoix.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-CNkHY_Y7.js → classDiagram-2ON5EDUG-D2tIbkjc.js} +2 -2
- package/dist/classDiagram-2ON5EDUG-DRhRmkUb.cjs +19 -0
- package/dist/{classDiagram-v2-WZHVMYZB-CNkHY_Y7.js → classDiagram-v2-WZHVMYZB-D2tIbkjc.js} +2 -2
- package/dist/classDiagram-v2-WZHVMYZB-DRhRmkUb.cjs +19 -0
- package/dist/clone-BMkj3yun.cjs +7 -0
- package/dist/{clone-DnOD7gQ4.js → clone-ChHXIoR6.js} +1 -1
- package/dist/cose-bilkent-S5V4N54A-BXnWH5Od.cjs +4942 -0
- package/dist/{cose-bilkent-S5V4N54A-2EKtTYth.js → cose-bilkent-S5V4N54A-D15BmpCb.js} +1 -1
- package/dist/cytoscape.esm-D8IBYQeQ.cjs +30238 -0
- package/dist/dagre-6UL2VRFP-DGQ6TW_g.cjs +693 -0
- package/dist/{dagre-6UL2VRFP-oJLNDO4O.js → dagre-6UL2VRFP-WmhUYWg8.js} +5 -5
- package/dist/defaultLocale-DwYGIg9G.cjs +203 -0
- package/dist/{diagram-PSM6KHXK-DhMgmu9h.js → diagram-PSM6KHXK-DSfHBoUT.js} +4 -4
- package/dist/diagram-PSM6KHXK-J4qyGeN7.cjs +845 -0
- package/dist/diagram-QEK2KX5R-D96wT5cH.cjs +300 -0
- package/dist/{diagram-QEK2KX5R-pB1vUeno.js → diagram-QEK2KX5R-I_nyexpY.js} +3 -3
- package/dist/diagram-S2PKOQOG-BC_WyKEe.cjs +210 -0
- package/dist/{diagram-S2PKOQOG-HTooIr24.js → diagram-S2PKOQOG-aooXSMNo.js} +3 -3
- package/dist/erDiagram-Q2GNP2WA-DQ8Lquay.cjs +1158 -0
- package/dist/{erDiagram-Q2GNP2WA-CCaN2EHf.js → erDiagram-Q2GNP2WA-DWF8e6EL.js} +4 -4
- package/dist/{flowDiagram-NV44I4VS-CG0erQtl.js → flowDiagram-NV44I4VS-CM9c4F1o.js} +5 -5
- package/dist/flowDiagram-NV44I4VS-DpYNkyM2.cjs +2331 -0
- package/dist/{ganttDiagram-JELNMOA3-D3rSLJec.js → ganttDiagram-JELNMOA3-CAsoD6rZ.js} +2 -2
- package/dist/ganttDiagram-JELNMOA3-DfKahpj4.cjs +3679 -0
- package/dist/{gitGraph-F6HP7TQM-BDWdXs6A.js → gitGraph-F6HP7TQM-BX2fz4_i.js} +1 -1
- package/dist/gitGraph-F6HP7TQM-DRkGg4T1.cjs +5 -0
- package/dist/{gitGraphDiagram-NY62KEGX-Ip-PiLDb.js → gitGraphDiagram-NY62KEGX-PXpI94u6.js} +4 -4
- package/dist/gitGraphDiagram-NY62KEGX-YhnKpooH.cjs +1203 -0
- package/dist/{graph-wCViE1vL.js → graph-BvxpI7Xc.js} +2 -2
- package/dist/graph-CI_TWBSn.cjs +595 -0
- package/dist/index-BctLGjTK.cjs +120500 -0
- package/dist/{index-BQvQI7yA.js → index-CjSgoo1P.js} +103324 -100141
- package/dist/index.cjs +19 -0
- package/dist/index.js +13 -1
- package/dist/info-NVLQJR56-BGbTE7dw.cjs +5 -0
- package/dist/info-NVLQJR56-DRxIh-N8.js +5 -0
- package/dist/infoDiagram-WHAUD3N6-BB2Bnbnh.cjs +31 -0
- package/dist/{infoDiagram-WHAUD3N6-BbVs4x8y.js → infoDiagram-WHAUD3N6-D_RrgwxS.js} +2 -2
- package/dist/init-DevvdK2U.cjs +15 -0
- package/dist/{journeyDiagram-XKPGCS4Q-Cz9ox9GA.js → journeyDiagram-XKPGCS4Q-BJjXlMIj.js} +4 -4
- package/dist/journeyDiagram-XKPGCS4Q-BcBLsfI9.cjs +1254 -0
- package/dist/{kanban-definition-3W4ZIXB7-ChdUHO5f.js → kanban-definition-3W4ZIXB7-0wwNBZ93.js} +2 -2
- package/dist/kanban-definition-3W4ZIXB7-CaY0q4j9.cjs +1047 -0
- package/dist/katex-BhpYeT3b.cjs +14523 -0
- package/dist/{layout-BaZPdTGN.js → layout-CcghncRv.js} +4 -4
- package/dist/layout-CvwzED_C.cjs +2182 -0
- package/dist/linear-CYow-mAK.cjs +339 -0
- package/dist/{linear-D_RX7hM-.js → linear-D_gKQzVp.js} +1 -1
- package/dist/mermaid-parser.core-CzmkR-3i.cjs +18703 -0
- package/dist/{mermaid-parser.core-_sn6A3wB.js → mermaid-parser.core-DCMDT-Cp.js} +10 -10
- package/dist/{min-BxeM4Drj.js → min-BBp7Smma.js} +2 -2
- package/dist/min-Gu1I_bJ9.cjs +40 -0
- package/dist/mindmap-definition-VGOIOE7T-D16Pp1u5.cjs +1126 -0
- package/dist/{mindmap-definition-VGOIOE7T-BkjJibdi.js → mindmap-definition-VGOIOE7T-PjSLRtz4.js} +3 -3
- package/dist/ordinal-D7sQNqXZ.cjs +75 -0
- package/dist/{packet-BFZMPI3H-D3RtU0mc.js → packet-BFZMPI3H-BvdogPiS.js} +1 -1
- package/dist/packet-BFZMPI3H-C7pOHUWY.cjs +5 -0
- package/dist/pie-7BOR55EZ-D-DxSHbP.cjs +5 -0
- package/dist/pie-7BOR55EZ-DEWJe4Xn.js +5 -0
- package/dist/{pieDiagram-ADFJNKIX-2Yr1gkth.js → pieDiagram-ADFJNKIX-CoDddKZl.js} +4 -4
- package/dist/pieDiagram-ADFJNKIX-DjN4DU9l.cjs +237 -0
- package/dist/{quadrantDiagram-AYHSOK5B-CjicpXRv.js → quadrantDiagram-AYHSOK5B-BZOg0JMm.js} +2 -2
- package/dist/quadrantDiagram-AYHSOK5B-DXjTSOL4.cjs +1335 -0
- package/dist/radar-NHE76QYJ-BrnDXy9q.cjs +5 -0
- package/dist/{radar-NHE76QYJ-CL0tHnUP.js → radar-NHE76QYJ-C2WmPmJ4.js} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-DBnhlfjR.js → requirementDiagram-UZGBJVZJ-CCW1O1xH.js} +3 -3
- package/dist/requirementDiagram-UZGBJVZJ-e5F3-dDI.cjs +1161 -0
- package/dist/{sankeyDiagram-TZEHDZUN-B2FErKCa.js → sankeyDiagram-TZEHDZUN-BaGzCxTp.js} +1 -1
- package/dist/sankeyDiagram-TZEHDZUN-DtIvOvVI.cjs +1193 -0
- package/dist/sequenceDiagram-WL72ISMW-0vFhYnxn.cjs +3874 -0
- package/dist/{sequenceDiagram-WL72ISMW-BkNTlRlB.js → sequenceDiagram-WL72ISMW-DL3B7U56.js} +3 -3
- package/dist/stateDiagram-FKZM4ZOC-CXW608BR.cjs +447 -0
- package/dist/{stateDiagram-FKZM4ZOC-CAAFQtS9.js → stateDiagram-FKZM4ZOC-Ddw6HxPD.js} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-lF6kUebI.js → stateDiagram-v2-4FDKWEC3-DZCkQKmp.js} +2 -2
- package/dist/stateDiagram-v2-4FDKWEC3-DefWUbvq.cjs +19 -0
- package/dist/timeline-definition-IT6M3QCI-C3TfA9lE.cjs +1222 -0
- package/dist/{timeline-definition-IT6M3QCI-CQgMFEPA.js → timeline-definition-IT6M3QCI-DiS88lUo.js} +2 -2
- package/dist/treemap-KMMF4GRG-Bl-H6j2c.cjs +5 -0
- package/dist/{treemap-KMMF4GRG-B0Mc-u8X.js → treemap-KMMF4GRG-DGGr_R9A.js} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-Cee7LdLr.js → xychartDiagram-PRI3JC2R-BrOwRjfF.js} +2 -2
- package/dist/xychartDiagram-PRI3JC2R-CM06DttH.cjs +1886 -0
- package/package.json +17 -5
- package/dist/index.css +0 -3334
- package/dist/info-NVLQJR56-pJlVBPs6.js +0 -5
- package/dist/pie-7BOR55EZ-xH--CiaM.js +0 -5
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function formatDecimal(x) {
|
|
3
|
+
return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10);
|
|
4
|
+
}
|
|
5
|
+
function formatDecimalParts(x, p) {
|
|
6
|
+
if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null;
|
|
7
|
+
var i, coefficient = x.slice(0, i);
|
|
8
|
+
return [
|
|
9
|
+
coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,
|
|
10
|
+
+x.slice(i + 1)
|
|
11
|
+
];
|
|
12
|
+
}
|
|
13
|
+
function exponent(x) {
|
|
14
|
+
return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;
|
|
15
|
+
}
|
|
16
|
+
function formatGroup(grouping, thousands) {
|
|
17
|
+
return function(value, width) {
|
|
18
|
+
var i = value.length, t = [], j = 0, g = grouping[0], length = 0;
|
|
19
|
+
while (i > 0 && g > 0) {
|
|
20
|
+
if (length + g + 1 > width) g = Math.max(1, width - length);
|
|
21
|
+
t.push(value.substring(i -= g, i + g));
|
|
22
|
+
if ((length += g + 1) > width) break;
|
|
23
|
+
g = grouping[j = (j + 1) % grouping.length];
|
|
24
|
+
}
|
|
25
|
+
return t.reverse().join(thousands);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function formatNumerals(numerals) {
|
|
29
|
+
return function(value) {
|
|
30
|
+
return value.replace(/[0-9]/g, function(i) {
|
|
31
|
+
return numerals[+i];
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
36
|
+
function formatSpecifier(specifier) {
|
|
37
|
+
if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
|
|
38
|
+
var match;
|
|
39
|
+
return new FormatSpecifier({
|
|
40
|
+
fill: match[1],
|
|
41
|
+
align: match[2],
|
|
42
|
+
sign: match[3],
|
|
43
|
+
symbol: match[4],
|
|
44
|
+
zero: match[5],
|
|
45
|
+
width: match[6],
|
|
46
|
+
comma: match[7],
|
|
47
|
+
precision: match[8] && match[8].slice(1),
|
|
48
|
+
trim: match[9],
|
|
49
|
+
type: match[10]
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
formatSpecifier.prototype = FormatSpecifier.prototype;
|
|
53
|
+
function FormatSpecifier(specifier) {
|
|
54
|
+
this.fill = specifier.fill === void 0 ? " " : specifier.fill + "";
|
|
55
|
+
this.align = specifier.align === void 0 ? ">" : specifier.align + "";
|
|
56
|
+
this.sign = specifier.sign === void 0 ? "-" : specifier.sign + "";
|
|
57
|
+
this.symbol = specifier.symbol === void 0 ? "" : specifier.symbol + "";
|
|
58
|
+
this.zero = !!specifier.zero;
|
|
59
|
+
this.width = specifier.width === void 0 ? void 0 : +specifier.width;
|
|
60
|
+
this.comma = !!specifier.comma;
|
|
61
|
+
this.precision = specifier.precision === void 0 ? void 0 : +specifier.precision;
|
|
62
|
+
this.trim = !!specifier.trim;
|
|
63
|
+
this.type = specifier.type === void 0 ? "" : specifier.type + "";
|
|
64
|
+
}
|
|
65
|
+
FormatSpecifier.prototype.toString = function() {
|
|
66
|
+
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
67
|
+
};
|
|
68
|
+
function formatTrim(s) {
|
|
69
|
+
out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
|
|
70
|
+
switch (s[i]) {
|
|
71
|
+
case ".":
|
|
72
|
+
i0 = i1 = i;
|
|
73
|
+
break;
|
|
74
|
+
case "0":
|
|
75
|
+
if (i0 === 0) i0 = i;
|
|
76
|
+
i1 = i;
|
|
77
|
+
break;
|
|
78
|
+
default:
|
|
79
|
+
if (!+s[i]) break out;
|
|
80
|
+
if (i0 > 0) i0 = 0;
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
|
|
85
|
+
}
|
|
86
|
+
var prefixExponent;
|
|
87
|
+
function formatPrefixAuto(x, p) {
|
|
88
|
+
var d = formatDecimalParts(x, p);
|
|
89
|
+
if (!d) return x + "";
|
|
90
|
+
var coefficient = d[0], exponent2 = d[1], i = exponent2 - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent2 / 3))) * 3) + 1, n = coefficient.length;
|
|
91
|
+
return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0];
|
|
92
|
+
}
|
|
93
|
+
function formatRounded(x, p) {
|
|
94
|
+
var d = formatDecimalParts(x, p);
|
|
95
|
+
if (!d) return x + "";
|
|
96
|
+
var coefficient = d[0], exponent2 = d[1];
|
|
97
|
+
return exponent2 < 0 ? "0." + new Array(-exponent2).join("0") + coefficient : coefficient.length > exponent2 + 1 ? coefficient.slice(0, exponent2 + 1) + "." + coefficient.slice(exponent2 + 1) : coefficient + new Array(exponent2 - coefficient.length + 2).join("0");
|
|
98
|
+
}
|
|
99
|
+
const formatTypes = {
|
|
100
|
+
"%": (x, p) => (x * 100).toFixed(p),
|
|
101
|
+
"b": (x) => Math.round(x).toString(2),
|
|
102
|
+
"c": (x) => x + "",
|
|
103
|
+
"d": formatDecimal,
|
|
104
|
+
"e": (x, p) => x.toExponential(p),
|
|
105
|
+
"f": (x, p) => x.toFixed(p),
|
|
106
|
+
"g": (x, p) => x.toPrecision(p),
|
|
107
|
+
"o": (x) => Math.round(x).toString(8),
|
|
108
|
+
"p": (x, p) => formatRounded(x * 100, p),
|
|
109
|
+
"r": formatRounded,
|
|
110
|
+
"s": formatPrefixAuto,
|
|
111
|
+
"X": (x) => Math.round(x).toString(16).toUpperCase(),
|
|
112
|
+
"x": (x) => Math.round(x).toString(16)
|
|
113
|
+
};
|
|
114
|
+
function identity(x) {
|
|
115
|
+
return x;
|
|
116
|
+
}
|
|
117
|
+
var map = Array.prototype.map, prefixes = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
118
|
+
function formatLocale(locale2) {
|
|
119
|
+
var group = locale2.grouping === void 0 || locale2.thousands === void 0 ? identity : formatGroup(map.call(locale2.grouping, Number), locale2.thousands + ""), currencyPrefix = locale2.currency === void 0 ? "" : locale2.currency[0] + "", currencySuffix = locale2.currency === void 0 ? "" : locale2.currency[1] + "", decimal = locale2.decimal === void 0 ? "." : locale2.decimal + "", numerals = locale2.numerals === void 0 ? identity : formatNumerals(map.call(locale2.numerals, String)), percent = locale2.percent === void 0 ? "%" : locale2.percent + "", minus = locale2.minus === void 0 ? "−" : locale2.minus + "", nan = locale2.nan === void 0 ? "NaN" : locale2.nan + "";
|
|
120
|
+
function newFormat(specifier) {
|
|
121
|
+
specifier = formatSpecifier(specifier);
|
|
122
|
+
var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero = specifier.zero, width = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type = specifier.type;
|
|
123
|
+
if (type === "n") comma = true, type = "g";
|
|
124
|
+
else if (!formatTypes[type]) precision === void 0 && (precision = 12), trim = true, type = "g";
|
|
125
|
+
if (zero || fill === "0" && align === "=") zero = true, fill = "0", align = "=";
|
|
126
|
+
var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "", suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "";
|
|
127
|
+
var formatType = formatTypes[type], maybeSuffix = /[defgprs%]/.test(type);
|
|
128
|
+
precision = precision === void 0 ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision));
|
|
129
|
+
function format(value) {
|
|
130
|
+
var valuePrefix = prefix, valueSuffix = suffix, i, n, c;
|
|
131
|
+
if (type === "c") {
|
|
132
|
+
valueSuffix = formatType(value) + valueSuffix;
|
|
133
|
+
value = "";
|
|
134
|
+
} else {
|
|
135
|
+
value = +value;
|
|
136
|
+
var valueNegative = value < 0 || 1 / value < 0;
|
|
137
|
+
value = isNaN(value) ? nan : formatType(Math.abs(value), precision);
|
|
138
|
+
if (trim) value = formatTrim(value);
|
|
139
|
+
if (valueNegative && +value === 0 && sign !== "+") valueNegative = false;
|
|
140
|
+
valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
|
|
141
|
+
valueSuffix = (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
|
|
142
|
+
if (maybeSuffix) {
|
|
143
|
+
i = -1, n = value.length;
|
|
144
|
+
while (++i < n) {
|
|
145
|
+
if (c = value.charCodeAt(i), 48 > c || c > 57) {
|
|
146
|
+
valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
|
|
147
|
+
value = value.slice(0, i);
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
if (comma && !zero) value = group(value, Infinity);
|
|
154
|
+
var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width ? new Array(width - length + 1).join(fill) : "";
|
|
155
|
+
if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = "";
|
|
156
|
+
switch (align) {
|
|
157
|
+
case "<":
|
|
158
|
+
value = valuePrefix + value + valueSuffix + padding;
|
|
159
|
+
break;
|
|
160
|
+
case "=":
|
|
161
|
+
value = valuePrefix + padding + value + valueSuffix;
|
|
162
|
+
break;
|
|
163
|
+
case "^":
|
|
164
|
+
value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length);
|
|
165
|
+
break;
|
|
166
|
+
default:
|
|
167
|
+
value = padding + valuePrefix + value + valueSuffix;
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
return numerals(value);
|
|
171
|
+
}
|
|
172
|
+
format.toString = function() {
|
|
173
|
+
return specifier + "";
|
|
174
|
+
};
|
|
175
|
+
return format;
|
|
176
|
+
}
|
|
177
|
+
function formatPrefix(specifier, value) {
|
|
178
|
+
var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)), e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3, k = Math.pow(10, -e), prefix = prefixes[8 + e / 3];
|
|
179
|
+
return function(value2) {
|
|
180
|
+
return f(k * value2) + prefix;
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
return {
|
|
184
|
+
format: newFormat,
|
|
185
|
+
formatPrefix
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
var locale;
|
|
189
|
+
exports.format = void 0;
|
|
190
|
+
exports.formatPrefix = void 0;
|
|
191
|
+
defaultLocale({
|
|
192
|
+
thousands: ",",
|
|
193
|
+
grouping: [3],
|
|
194
|
+
currency: ["$", ""]
|
|
195
|
+
});
|
|
196
|
+
function defaultLocale(definition) {
|
|
197
|
+
locale = formatLocale(definition);
|
|
198
|
+
exports.format = locale.format;
|
|
199
|
+
exports.formatPrefix = locale.formatPrefix;
|
|
200
|
+
return locale;
|
|
201
|
+
}
|
|
202
|
+
exports.exponent = exponent;
|
|
203
|
+
exports.formatSpecifier = formatSpecifier;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _a;
|
|
2
|
-
import { _ as __name, D as cleanAndMerge, E as getConfig, H as selectSvgElement, e as configureSvgSize, l as log, bp as styles2String, d as select, b as setAccTitle, a as getAccTitle, p as setDiagramTitle, q as getDiagramTitle, g as getAccDescription, s as setAccDescription, F as defaultConfig_default, bq as isLabelStyle, y as clear } from "./index-
|
|
3
|
-
import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-
|
|
4
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
5
|
-
import { p as parse } from "./mermaid-parser.core-
|
|
2
|
+
import { _ as __name, D as cleanAndMerge, E as getConfig, H as selectSvgElement, e as configureSvgSize, l as log, bp as styles2String, d as select, b as setAccTitle, a as getAccTitle, p as setDiagramTitle, q as getDiagramTitle, g as getAccDescription, s as setAccDescription, F as defaultConfig_default, bq as isLabelStyle, y as clear } from "./index-CjSgoo1P.js";
|
|
3
|
+
import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-Cw7FG91D.js";
|
|
4
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-sd2zFBFz.js";
|
|
5
|
+
import { p as parse } from "./mermaid-parser.core-DCMDT-Cp.js";
|
|
6
6
|
import { b as format } from "./defaultLocale-DVr69WTU.js";
|
|
7
7
|
import { o as ordinal } from "./ordinal-CxptdPJm.js";
|
|
8
8
|
function count(node) {
|