@infinilabs/ai-chat 0.0.1 → 0.0.3
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-C6eXDRdi.js} +1 -1
- package/dist/_baseUniq-VBKGmFNZ.cjs +151 -0
- package/dist/arc-C_pZjUl4.cjs +130 -0
- package/dist/{arc-2jwvQ2TN.js → arc-D1VL3r-o.js} +1 -1
- package/dist/architecture-U656AL7Q-BF5SEVYt.cjs +5 -0
- package/dist/{architecture-U656AL7Q-WuSilpZW.js → architecture-U656AL7Q-BU8DDug4.js} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-D6SKNy5z.js → architectureDiagram-VXUJARFQ-BD3g0-L9.js} +3 -3
- package/dist/architectureDiagram-VXUJARFQ-DjBxfJaD.cjs +8681 -0
- package/dist/blockDiagram-VD42YOAC-B2f1rMqq.cjs +3606 -0
- package/dist/{blockDiagram-VD42YOAC-Ct2DD8jj.js → blockDiagram-VD42YOAC-Dco6f43O.js} +5 -5
- package/dist/c4Diagram-YG6GDRKO-DNqNYnPR.cjs +2481 -0
- package/dist/{c4Diagram-YG6GDRKO-B7wBU4mz.js → c4Diagram-YG6GDRKO-DaatwWsP.js} +2 -2
- package/dist/channel-CqaWpJup.cjs +6 -0
- package/dist/{channel-BRREX19f.js → channel-DHoS2D4-.js} +1 -1
- package/dist/{chunk-4BX2VUAB-BnghU1_v.js → chunk-4BX2VUAB-CJqHiK4X.js} +1 -1
- package/dist/chunk-4BX2VUAB-DN2yOkoW.cjs +15 -0
- package/dist/chunk-55IACEB6-BdkCWkvA.cjs +12 -0
- package/dist/{chunk-55IACEB6-Dduk-DEL.js → chunk-55IACEB6-C6ly5iWy.js} +1 -1
- package/dist/{chunk-B4BG7PRW-DeHw-z-x.js → chunk-B4BG7PRW--1XVDmjR.js} +4 -4
- package/dist/chunk-B4BG7PRW-CyVGILSL.cjs +1825 -0
- package/dist/{chunk-DI55MBZ5-GTHMAr0M.js → chunk-DI55MBZ5-CdspH0FP.js} +3 -3
- package/dist/chunk-DI55MBZ5-zfT0HzuJ.cjs +1914 -0
- package/dist/chunk-FMBD7UC4-B1XNgXxo.cjs +18 -0
- package/dist/{chunk-FMBD7UC4-Bchh4_3W.js → chunk-FMBD7UC4-DwJ0I9NE.js} +1 -1
- package/dist/chunk-QN33PNHL-BkRCfP3-.cjs +23 -0
- package/dist/{chunk-QN33PNHL-H6S-NYp0.js → chunk-QN33PNHL-ToZ1oMAx.js} +1 -1
- package/dist/chunk-QZHKN3VN-Bl6qG9aO.cjs +16 -0
- package/dist/{chunk-QZHKN3VN-DdcyNnvM.js → chunk-QZHKN3VN-D6NMZefL.js} +1 -1
- package/dist/{chunk-TZMSLE5B-C7te_j4V.js → chunk-TZMSLE5B-CX7F9bum.js} +1 -1
- package/dist/chunk-TZMSLE5B-CfLnJLL2.cjs +107 -0
- package/dist/{classDiagram-2ON5EDUG-CNkHY_Y7.js → classDiagram-2ON5EDUG-do_fcMxL.js} +2 -2
- package/dist/classDiagram-2ON5EDUG-l6iTeY9n.cjs +19 -0
- package/dist/{classDiagram-v2-WZHVMYZB-CNkHY_Y7.js → classDiagram-v2-WZHVMYZB-do_fcMxL.js} +2 -2
- package/dist/classDiagram-v2-WZHVMYZB-l6iTeY9n.cjs +19 -0
- package/dist/{clone-DnOD7gQ4.js → clone-B0NbP06l.js} +1 -1
- package/dist/clone-O_UR2EnI.cjs +7 -0
- package/dist/cose-bilkent-S5V4N54A-Bj9q8jdP.cjs +4942 -0
- package/dist/{cose-bilkent-S5V4N54A-2EKtTYth.js → cose-bilkent-S5V4N54A-Dm15CejI.js} +1 -1
- package/dist/cytoscape.esm-D8IBYQeQ.cjs +30238 -0
- package/dist/dagre-6UL2VRFP-DlrZJc7j.cjs +693 -0
- package/dist/{dagre-6UL2VRFP-oJLNDO4O.js → dagre-6UL2VRFP-DpFJxcQI.js} +5 -5
- package/dist/defaultLocale-DwYGIg9G.cjs +203 -0
- package/dist/{diagram-PSM6KHXK-DhMgmu9h.js → diagram-PSM6KHXK-BiuW3-I6.js} +4 -4
- package/dist/diagram-PSM6KHXK-J1K0HhB0.cjs +845 -0
- package/dist/{diagram-QEK2KX5R-pB1vUeno.js → diagram-QEK2KX5R-CKI4v8U1.js} +3 -3
- package/dist/diagram-QEK2KX5R-CfZyy8K3.cjs +300 -0
- package/dist/{diagram-S2PKOQOG-HTooIr24.js → diagram-S2PKOQOG-BFBmhCiH.js} +3 -3
- package/dist/diagram-S2PKOQOG-D99Ax7Ju.cjs +210 -0
- package/dist/erDiagram-Q2GNP2WA-CVkYr-Vj.cjs +1158 -0
- package/dist/{erDiagram-Q2GNP2WA-CCaN2EHf.js → erDiagram-Q2GNP2WA-qVxQAwwu.js} +4 -4
- package/dist/{flowDiagram-NV44I4VS-CG0erQtl.js → flowDiagram-NV44I4VS-5brdnMxu.js} +5 -5
- package/dist/flowDiagram-NV44I4VS-7p-zbTbS.cjs +2331 -0
- package/dist/{ganttDiagram-JELNMOA3-D3rSLJec.js → ganttDiagram-JELNMOA3-B_6E5yap.js} +2 -2
- package/dist/ganttDiagram-JELNMOA3-BqIucWob.cjs +3679 -0
- package/dist/{gitGraph-F6HP7TQM-BDWdXs6A.js → gitGraph-F6HP7TQM-5ygKEXa4.js} +1 -1
- package/dist/gitGraph-F6HP7TQM-Dqtx4v2X.cjs +5 -0
- package/dist/{gitGraphDiagram-NY62KEGX-Ip-PiLDb.js → gitGraphDiagram-NY62KEGX-8yiOWwFX.js} +4 -4
- package/dist/gitGraphDiagram-NY62KEGX-DLpTvKWJ.cjs +1203 -0
- package/dist/graph-BQ7jHivU.cjs +595 -0
- package/dist/{graph-wCViE1vL.js → graph-f7dsdfxH.js} +2 -2
- package/dist/index-BZzFD4NG.cjs +120453 -0
- package/dist/{index-BQvQI7yA.js → index-TgFTummf.js} +103814 -100678
- package/dist/index.cjs +19 -0
- package/dist/index.js +13 -1
- package/dist/info-NVLQJR56-CBEfMVO2.cjs +5 -0
- package/dist/info-NVLQJR56-CXysh6Cg.js +5 -0
- package/dist/infoDiagram-WHAUD3N6-D8UJMXYO.cjs +31 -0
- package/dist/{infoDiagram-WHAUD3N6-BbVs4x8y.js → infoDiagram-WHAUD3N6-DAhQzmYU.js} +2 -2
- package/dist/init-DevvdK2U.cjs +15 -0
- package/dist/journeyDiagram-XKPGCS4Q-BTWSe50v.cjs +1254 -0
- package/dist/{journeyDiagram-XKPGCS4Q-Cz9ox9GA.js → journeyDiagram-XKPGCS4Q-DF63luuF.js} +4 -4
- package/dist/kanban-definition-3W4ZIXB7-Bv1kpXjl.cjs +1047 -0
- package/dist/{kanban-definition-3W4ZIXB7-ChdUHO5f.js → kanban-definition-3W4ZIXB7-Byg1KrDf.js} +2 -2
- package/dist/katex-BhpYeT3b.cjs +14523 -0
- package/dist/{layout-BaZPdTGN.js → layout-Bph_0QZr.js} +4 -4
- package/dist/layout-Cbov0jB2.cjs +2182 -0
- package/dist/{linear-D_RX7hM-.js → linear-BSz-RTmc.js} +1 -1
- package/dist/linear-D36lF41G.cjs +339 -0
- package/dist/mermaid-parser.core-BjisUoZL.cjs +18703 -0
- package/dist/{mermaid-parser.core-_sn6A3wB.js → mermaid-parser.core-D51-lxGS.js} +10 -10
- package/dist/min-D_N_XAer.cjs +40 -0
- package/dist/{min-BxeM4Drj.js → min-Sni_KseC.js} +2 -2
- package/dist/mindmap-definition-VGOIOE7T-B7_dDBbb.cjs +1126 -0
- package/dist/{mindmap-definition-VGOIOE7T-BkjJibdi.js → mindmap-definition-VGOIOE7T-fbR1KpVG.js} +3 -3
- package/dist/ordinal-D7sQNqXZ.cjs +75 -0
- package/dist/{packet-BFZMPI3H-D3RtU0mc.js → packet-BFZMPI3H-B9lSQ4ue.js} +1 -1
- package/dist/packet-BFZMPI3H-DFuV40UT.cjs +5 -0
- package/dist/pie-7BOR55EZ-CfhfuSiQ.cjs +5 -0
- package/dist/pie-7BOR55EZ-DlYTWEJg.js +5 -0
- package/dist/{pieDiagram-ADFJNKIX-2Yr1gkth.js → pieDiagram-ADFJNKIX-BZ-6MLDa.js} +4 -4
- package/dist/pieDiagram-ADFJNKIX-ZykBg0LM.cjs +237 -0
- package/dist/quadrantDiagram-AYHSOK5B-BuiB_Qh3.cjs +1335 -0
- package/dist/{quadrantDiagram-AYHSOK5B-CjicpXRv.js → quadrantDiagram-AYHSOK5B-ClRDM-6s.js} +2 -2
- package/dist/{radar-NHE76QYJ-CL0tHnUP.js → radar-NHE76QYJ-Crabb2QS.js} +1 -1
- package/dist/radar-NHE76QYJ-D3rgOiIb.cjs +5 -0
- package/dist/{requirementDiagram-UZGBJVZJ-DBnhlfjR.js → requirementDiagram-UZGBJVZJ-kA_oq2PA.js} +3 -3
- package/dist/requirementDiagram-UZGBJVZJ-mm41geqc.cjs +1161 -0
- package/dist/sankeyDiagram-TZEHDZUN-C6izw8f1.cjs +1193 -0
- package/dist/{sankeyDiagram-TZEHDZUN-B2FErKCa.js → sankeyDiagram-TZEHDZUN-D-ZqnMWy.js} +1 -1
- package/dist/sequenceDiagram-WL72ISMW-CjC76RTk.cjs +3874 -0
- package/dist/{sequenceDiagram-WL72ISMW-BkNTlRlB.js → sequenceDiagram-WL72ISMW-DUEVJaIy.js} +3 -3
- package/dist/{stateDiagram-FKZM4ZOC-CAAFQtS9.js → stateDiagram-FKZM4ZOC-2IfcY2Ye.js} +4 -4
- package/dist/stateDiagram-FKZM4ZOC-DK5kcW23.cjs +447 -0
- package/dist/{stateDiagram-v2-4FDKWEC3-lF6kUebI.js → stateDiagram-v2-4FDKWEC3-DXQKznzB.js} +2 -2
- package/dist/stateDiagram-v2-4FDKWEC3-hWKPBy9I.cjs +19 -0
- package/dist/timeline-definition-IT6M3QCI-DwMBhyGj.cjs +1222 -0
- package/dist/{timeline-definition-IT6M3QCI-CQgMFEPA.js → timeline-definition-IT6M3QCI-ohrBFack.js} +2 -2
- package/dist/treemap-KMMF4GRG-Bdodyj4b.cjs +5 -0
- package/dist/{treemap-KMMF4GRG-B0Mc-u8X.js → treemap-KMMF4GRG-C4kqSdak.js} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-Cee7LdLr.js → xychartDiagram-PRI3JC2R-BBSKFQ3Z.js} +2 -2
- package/dist/xychartDiagram-PRI3JC2R-wKIvgX35.cjs +1886 -0
- package/package.json +19 -6
- 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-TgFTummf.js";
|
|
3
|
+
import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-ToZ1oMAx.js";
|
|
4
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-CJqHiK4X.js";
|
|
5
|
+
import { p as parse } from "./mermaid-parser.core-D51-lxGS.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) {
|