@likec4/core 1.47.0 → 1.48.0

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 (181) hide show
  1. package/LICENSE +1 -1
  2. package/dist/_chunks/Builder.view-element.mjs +3284 -0
  3. package/dist/_chunks/LikeC4Model.d.mts +1287 -0
  4. package/dist/_chunks/LikeC4Styles.mjs +691 -0
  5. package/dist/_chunks/RichText.d.mts +84 -0
  6. package/dist/_chunks/RichText.mjs +148 -0
  7. package/dist/_chunks/_aux.d.mts +289 -0
  8. package/dist/_chunks/_aux.mjs +18 -0
  9. package/dist/_chunks/_types.d.mts +781 -0
  10. package/dist/_chunks/_types2.d.mts +38 -0
  11. package/dist/_chunks/assignTagColors.mjs +24 -0
  12. package/dist/_chunks/calcDriftsFromSnapshot.mjs +379 -0
  13. package/dist/_chunks/connection.mjs +0 -0
  14. package/dist/_chunks/const.d.mts +43 -0
  15. package/dist/_chunks/const.mjs +33 -0
  16. package/dist/_chunks/expression-model.d.mts +192 -0
  17. package/dist/_chunks/expression-model.mjs +103 -0
  18. package/dist/_chunks/expression.d.mts +347 -0
  19. package/dist/_chunks/expression.mjs +107 -0
  20. package/dist/_chunks/find.d.mts +82 -0
  21. package/dist/_chunks/find.mjs +646 -0
  22. package/dist/_chunks/find2.d.mts +78 -0
  23. package/dist/_chunks/find2.mjs +287 -0
  24. package/dist/_chunks/fqnRef.d.mts +58 -0
  25. package/dist/_chunks/fqnRef.mjs +41 -0
  26. package/dist/_chunks/geometry.mjs +335 -0
  27. package/dist/_chunks/index.d.mts +169 -0
  28. package/dist/_chunks/index2.d.mts +937 -0
  29. package/dist/_chunks/index3.d.mts +146 -0
  30. package/dist/_chunks/index4.d.mts +62 -0
  31. package/dist/_chunks/index5.d.mts +42 -0
  32. package/dist/_chunks/index6.d.mts +43 -0
  33. package/dist/{shared/core.OtRNdMxy.d.mts → _chunks/index7.d.mts} +113 -197
  34. package/dist/_chunks/index8.d.mts +144 -0
  35. package/dist/_chunks/invariant.mjs +18 -0
  36. package/dist/_chunks/iterable.mjs +146 -0
  37. package/dist/_chunks/libs/@mantine/colors-generator.mjs +3416 -0
  38. package/dist/_chunks/libs/@ungap/structured-clone.mjs +213 -0
  39. package/dist/_chunks/libs/bail.mjs +14 -0
  40. package/dist/_chunks/libs/ccount.mjs +25 -0
  41. package/dist/_chunks/libs/character-entities-html4.mjs +263 -0
  42. package/dist/_chunks/libs/character-entities-legacy.mjs +117 -0
  43. package/dist/_chunks/libs/character-entities.mjs +2136 -0
  44. package/dist/_chunks/libs/comma-separated-tokens.mjs +18 -0
  45. package/dist/_chunks/libs/decode-named-character-reference.mjs +21 -0
  46. package/dist/_chunks/libs/defu.mjs +42 -0
  47. package/dist/_chunks/libs/devlop.mjs +5 -0
  48. package/dist/_chunks/libs/escape-string-regexp.mjs +8 -0
  49. package/dist/_chunks/libs/extend.mjs +77 -0
  50. package/dist/_chunks/libs/graphology-dag.mjs +703 -0
  51. package/dist/_chunks/libs/graphology-types.d.mts +601 -0
  52. package/dist/_chunks/libs/graphology.d.mts +6 -0
  53. package/dist/_chunks/libs/graphology.mjs +4565 -0
  54. package/dist/_chunks/libs/hast-util-sanitize.mjs +863 -0
  55. package/dist/_chunks/libs/hast-util-to-html.mjs +2696 -0
  56. package/dist/_chunks/libs/is-plain-obj.mjs +9 -0
  57. package/dist/_chunks/libs/longest-streak.mjs +30 -0
  58. package/dist/_chunks/libs/markdown-table.mjs +290 -0
  59. package/dist/_chunks/libs/mdast-util-find-and-replace.mjs +653 -0
  60. package/dist/_chunks/libs/mdast-util-from-markdown.mjs +8522 -0
  61. package/dist/_chunks/libs/mdast-util-gfm.mjs +2393 -0
  62. package/dist/_chunks/libs/mdast-util-to-hast.mjs +1803 -0
  63. package/dist/_chunks/libs/micromark-extension-gfm.mjs +2243 -0
  64. package/dist/_chunks/libs/mnemonist.d.mts +254 -0
  65. package/dist/_chunks/libs/mnemonist.mjs +1978 -0
  66. package/dist/_chunks/libs/natural-compare-lite.mjs +42 -0
  67. package/dist/_chunks/libs/rehype-sanitize.mjs +29 -0
  68. package/dist/_chunks/libs/rehype-stringify.mjs +34 -0
  69. package/dist/_chunks/libs/remark-gfm.mjs +36 -0
  70. package/dist/_chunks/libs/remark-github-blockquote-alert.mjs +100 -0
  71. package/dist/_chunks/libs/remark-parse.mjs +39 -0
  72. package/dist/_chunks/libs/remark-rehype.mjs +171 -0
  73. package/dist/_chunks/libs/remeda.mjs +702 -0
  74. package/dist/_chunks/libs/trough.mjs +158 -0
  75. package/dist/_chunks/libs/unified.mjs +2212 -0
  76. package/dist/_chunks/mnemonist.d.mts +1 -0
  77. package/dist/_chunks/mnemonist.mjs +0 -0
  78. package/dist/_chunks/model.mjs +1898 -0
  79. package/dist/_chunks/model2.mjs +0 -0
  80. package/dist/_chunks/relationships-view.mjs +132 -0
  81. package/dist/_chunks/rolldown-runtime.mjs +42 -0
  82. package/dist/{shared/core.C_3y3eqV.d.mts → _chunks/scalar.d.mts} +13 -43
  83. package/dist/_chunks/scalar.mjs +84 -0
  84. package/dist/_chunks/utils.mjs +483 -0
  85. package/dist/builder/index.d.mts +11 -775
  86. package/dist/builder/index.mjs +631 -1022
  87. package/dist/compute-view/index.d.mts +85 -56
  88. package/dist/compute-view/index.mjs +247 -214
  89. package/dist/compute-view/relationships-view/index.d.mts +16 -51
  90. package/dist/compute-view/relationships-view/index.mjs +6 -184
  91. package/dist/geometry/index.d.mts +2 -109
  92. package/dist/geometry/index.mjs +2 -327
  93. package/dist/index.d.mts +18 -20
  94. package/dist/index.mjs +27 -18
  95. package/dist/model/connection/deployment/index.d.mts +12 -15
  96. package/dist/model/connection/deployment/index.mjs +9 -2
  97. package/dist/model/connection/index.d.mts +14 -75
  98. package/dist/model/connection/index.mjs +10 -3
  99. package/dist/model/connection/model/index.d.mts +12 -15
  100. package/dist/model/connection/model/index.mjs +8 -2
  101. package/dist/model/index.d.mts +15 -57
  102. package/dist/model/index.mjs +11 -4
  103. package/dist/styles/index.d.mts +9 -117
  104. package/dist/styles/index.mjs +26 -59
  105. package/dist/types/RichText.d.mts +3 -0
  106. package/dist/types/RichText.mjs +7 -0
  107. package/dist/types/_aux.d.mts +3 -4
  108. package/dist/types/_aux.mjs +2 -7
  109. package/dist/types/expression-model.d.mts +6 -190
  110. package/dist/types/expression-model.mjs +6 -108
  111. package/dist/types/expression.d.mts +5 -6
  112. package/dist/types/expression.mjs +6 -112
  113. package/dist/types/fqnRef.d.mts +4 -60
  114. package/dist/types/fqnRef.mjs +6 -44
  115. package/dist/types/index.d.mts +9 -47
  116. package/dist/types/index.mjs +14 -16
  117. package/dist/types/scalar.d.mts +2 -2
  118. package/dist/types/scalar.mjs +7 -4
  119. package/dist/utils/graphology/index.d.mts +2 -1864
  120. package/dist/utils/graphology/index.mjs +3 -1
  121. package/dist/utils/index.d.mts +11 -124
  122. package/dist/utils/index.mjs +16 -43
  123. package/dist/utils/iterable/index.d.mts +9 -132
  124. package/dist/utils/iterable/index.mjs +2 -61
  125. package/dist/utils/mnemonist.d.mts +2 -0
  126. package/dist/utils/mnemonist.mjs +12 -0
  127. package/package.json +17 -22
  128. package/compute-view/relationships/package.json +0 -4
  129. package/dist/shared/core.3ZhnKAlZ.mjs +0 -106
  130. package/dist/shared/core.78IWAHAE.mjs +0 -332
  131. package/dist/shared/core.B85MJLTf.mjs +0 -5
  132. package/dist/shared/core.BFd1lU9R.mjs +0 -29
  133. package/dist/shared/core.BKlholso.mjs +0 -3
  134. package/dist/shared/core.BNN-3vPH.mjs +0 -1255
  135. package/dist/shared/core.BPGOjone.d.mts +0 -46
  136. package/dist/shared/core.BP_QHEXs.mjs +0 -785
  137. package/dist/shared/core.BbE4y-yl.mjs +0 -177
  138. package/dist/shared/core.Bdy3hhTc.mjs +0 -28382
  139. package/dist/shared/core.BfCKSW-g.d.mts +0 -1266
  140. package/dist/shared/core.BhNcrwzK.mjs +0 -7
  141. package/dist/shared/core.BkVA6gjl.mjs +0 -5
  142. package/dist/shared/core.BoYfZOBm.mjs +0 -3
  143. package/dist/shared/core.BsSXS-_R.mjs +0 -7
  144. package/dist/shared/core.C3JowhaZ.mjs +0 -32
  145. package/dist/shared/core.C4x8aaWa.mjs +0 -27
  146. package/dist/shared/core.CAgYpDtM.d.mts +0 -98
  147. package/dist/shared/core.CHf8VEa3.mjs +0 -1206
  148. package/dist/shared/core.CLSZtnFh.mjs +0 -69
  149. package/dist/shared/core.CbT8JVYL.mjs +0 -5
  150. package/dist/shared/core.CdNCAwq7.mjs +0 -176
  151. package/dist/shared/core.CmGY9blO.mjs +0 -6717
  152. package/dist/shared/core.CmPXpJ8l.mjs +0 -21
  153. package/dist/shared/core.Coi_LOUZ.mjs +0 -7
  154. package/dist/shared/core.CqAJJpK_.mjs +0 -3
  155. package/dist/shared/core.CywrQs86.d.mts +0 -31
  156. package/dist/shared/core.D00YbOhQ.d.mts +0 -300
  157. package/dist/shared/core.D0WZutNd.mjs +0 -94
  158. package/dist/shared/core.D4npX2q8.mjs +0 -18
  159. package/dist/shared/core.DB0Ue5Wx.d.mts +0 -70
  160. package/dist/shared/core.DC5IAaDT.d.mts +0 -334
  161. package/dist/shared/core.DE9qzhn8.d.mts +0 -83
  162. package/dist/shared/core.DGcIbsj4.mjs +0 -3946
  163. package/dist/shared/core.DH7TXqXf.mjs +0 -136
  164. package/dist/shared/core.DKhRkHRN.d.mts +0 -41
  165. package/dist/shared/core.DRJma0Ol.mjs +0 -22
  166. package/dist/shared/core.DU5SRqNF.mjs +0 -2209
  167. package/dist/shared/core.DXhDWKFZ.d.mts +0 -3
  168. package/dist/shared/core.DbfO90vF.mjs +0 -434
  169. package/dist/shared/core.DcS-0zys.mjs +0 -10
  170. package/dist/shared/core.Dh119QSP.mjs +0 -4995
  171. package/dist/shared/core.DjcWextK.mjs +0 -1371
  172. package/dist/shared/core.Dojz4bvg.d.mts +0 -504
  173. package/dist/shared/core.FZ305VYd.mjs +0 -21
  174. package/dist/shared/core.RfnaEmgA.mjs +0 -7
  175. package/dist/shared/core.btEq3i3f.mjs +0 -300
  176. package/dist/shared/core.oSV6SRfk.mjs +0 -13
  177. package/dist/shared/core.om36dXXW.mjs +0 -41
  178. package/dist/shared/core.osFs8tU7.d.mts +0 -466
  179. package/dist/shared/core.q10OP9oJ.mjs +0 -5
  180. package/dist/shared/core.tpvDGvdC.d.mts +0 -87
  181. package/dist/shared/core.uFk_o9X6.mjs +0 -13
@@ -0,0 +1,9 @@
1
+ //#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
2
+ function isPlainObject(value) {
3
+ if (typeof value !== "object" || value === null) return false;
4
+ const prototype = Object.getPrototypeOf(value);
5
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
6
+ }
7
+
8
+ //#endregion
9
+ export { isPlainObject as t };
@@ -0,0 +1,30 @@
1
+ //#region ../../node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.js
2
+ /**
3
+ * Get the count of the longest repeating streak of `substring` in `value`.
4
+ *
5
+ * @param {string} value
6
+ * Content to search in.
7
+ * @param {string} substring
8
+ * Substring to look for, typically one character.
9
+ * @returns {number}
10
+ * Count of most frequent adjacent `substring`s in `value`.
11
+ */
12
+ function longestStreak(value, substring) {
13
+ const source = String(value);
14
+ let index = source.indexOf(substring);
15
+ let expected = index;
16
+ let count = 0;
17
+ let max = 0;
18
+ if (typeof substring !== "string") throw new TypeError("Expected substring");
19
+ while (index !== -1) {
20
+ if (index === expected) {
21
+ if (++count > max) max = count;
22
+ } else count = 1;
23
+ expected = index + substring.length;
24
+ index = source.indexOf(substring, expected);
25
+ }
26
+ return max;
27
+ }
28
+
29
+ //#endregion
30
+ export { longestStreak as t };
@@ -0,0 +1,290 @@
1
+ //#region ../../node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.js
2
+ /**
3
+ * @typedef {Options} MarkdownTableOptions
4
+ * Configuration.
5
+ */
6
+ /**
7
+ * @typedef Options
8
+ * Configuration.
9
+ * @property {boolean | null | undefined} [alignDelimiters=true]
10
+ * Whether to align the delimiters (default: `true`);
11
+ * they are aligned by default:
12
+ *
13
+ * ```markdown
14
+ * | Alpha | B |
15
+ * | ----- | ----- |
16
+ * | C | Delta |
17
+ * ```
18
+ *
19
+ * Pass `false` to make them staggered:
20
+ *
21
+ * ```markdown
22
+ * | Alpha | B |
23
+ * | - | - |
24
+ * | C | Delta |
25
+ * ```
26
+ * @property {ReadonlyArray<string | null | undefined> | string | null | undefined} [align]
27
+ * How to align columns (default: `''`);
28
+ * one style for all columns or styles for their respective columns;
29
+ * each style is either `'l'` (left), `'r'` (right), or `'c'` (center);
30
+ * other values are treated as `''`, which doesn’t place the colon in the
31
+ * alignment row but does align left;
32
+ * *only the lowercased first character is used, so `Right` is fine.*
33
+ * @property {boolean | null | undefined} [delimiterEnd=true]
34
+ * Whether to end each row with the delimiter (default: `true`).
35
+ *
36
+ * > 👉 **Note**: please don’t use this: it could create fragile structures
37
+ * > that aren’t understandable to some markdown parsers.
38
+ *
39
+ * When `true`, there are ending delimiters:
40
+ *
41
+ * ```markdown
42
+ * | Alpha | B |
43
+ * | ----- | ----- |
44
+ * | C | Delta |
45
+ * ```
46
+ *
47
+ * When `false`, there are no ending delimiters:
48
+ *
49
+ * ```markdown
50
+ * | Alpha | B
51
+ * | ----- | -----
52
+ * | C | Delta
53
+ * ```
54
+ * @property {boolean | null | undefined} [delimiterStart=true]
55
+ * Whether to begin each row with the delimiter (default: `true`).
56
+ *
57
+ * > 👉 **Note**: please don’t use this: it could create fragile structures
58
+ * > that aren’t understandable to some markdown parsers.
59
+ *
60
+ * When `true`, there are starting delimiters:
61
+ *
62
+ * ```markdown
63
+ * | Alpha | B |
64
+ * | ----- | ----- |
65
+ * | C | Delta |
66
+ * ```
67
+ *
68
+ * When `false`, there are no starting delimiters:
69
+ *
70
+ * ```markdown
71
+ * Alpha | B |
72
+ * ----- | ----- |
73
+ * C | Delta |
74
+ * ```
75
+ * @property {boolean | null | undefined} [padding=true]
76
+ * Whether to add a space of padding between delimiters and cells
77
+ * (default: `true`).
78
+ *
79
+ * When `true`, there is padding:
80
+ *
81
+ * ```markdown
82
+ * | Alpha | B |
83
+ * | ----- | ----- |
84
+ * | C | Delta |
85
+ * ```
86
+ *
87
+ * When `false`, there is no padding:
88
+ *
89
+ * ```markdown
90
+ * |Alpha|B |
91
+ * |-----|-----|
92
+ * |C |Delta|
93
+ * ```
94
+ * @property {((value: string) => number) | null | undefined} [stringLength]
95
+ * Function to detect the length of table cell content (optional);
96
+ * this is used when aligning the delimiters (`|`) between table cells;
97
+ * full-width characters and emoji mess up delimiter alignment when viewing
98
+ * the markdown source;
99
+ * to fix this, you can pass this function,
100
+ * which receives the cell content and returns its “visible” size;
101
+ * note that what is and isn’t visible depends on where the text is displayed.
102
+ *
103
+ * Without such a function, the following:
104
+ *
105
+ * ```js
106
+ * markdownTable([
107
+ * ['Alpha', 'Bravo'],
108
+ * ['中文', 'Charlie'],
109
+ * ['👩‍❤️‍👩', 'Delta']
110
+ * ])
111
+ * ```
112
+ *
113
+ * Yields:
114
+ *
115
+ * ```markdown
116
+ * | Alpha | Bravo |
117
+ * | - | - |
118
+ * | 中文 | Charlie |
119
+ * | 👩‍❤️‍👩 | Delta |
120
+ * ```
121
+ *
122
+ * With [`string-width`](https://github.com/sindresorhus/string-width):
123
+ *
124
+ * ```js
125
+ * import stringWidth from 'string-width'
126
+ *
127
+ * markdownTable(
128
+ * [
129
+ * ['Alpha', 'Bravo'],
130
+ * ['中文', 'Charlie'],
131
+ * ['👩‍❤️‍👩', 'Delta']
132
+ * ],
133
+ * {stringLength: stringWidth}
134
+ * )
135
+ * ```
136
+ *
137
+ * Yields:
138
+ *
139
+ * ```markdown
140
+ * | Alpha | Bravo |
141
+ * | ----- | ------- |
142
+ * | 中文 | Charlie |
143
+ * | 👩‍❤️‍👩 | Delta |
144
+ * ```
145
+ */
146
+ /**
147
+ * @param {string} value
148
+ * Cell value.
149
+ * @returns {number}
150
+ * Cell size.
151
+ */
152
+ function defaultStringLength(value) {
153
+ return value.length;
154
+ }
155
+ /**
156
+ * Generate a markdown
157
+ * ([GFM](https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables))
158
+ * table.
159
+ *
160
+ * @param {ReadonlyArray<ReadonlyArray<string | null | undefined>>} table
161
+ * Table data (matrix of strings).
162
+ * @param {Readonly<Options> | null | undefined} [options]
163
+ * Configuration (optional).
164
+ * @returns {string}
165
+ * Result.
166
+ */
167
+ function markdownTable(table, options) {
168
+ const settings = options || {};
169
+ const align = (settings.align || []).concat();
170
+ const stringLength = settings.stringLength || defaultStringLength;
171
+ /** @type {Array<number>} Character codes as symbols for alignment per column. */
172
+ const alignments = [];
173
+ /** @type {Array<Array<string>>} Cells per row. */
174
+ const cellMatrix = [];
175
+ /** @type {Array<Array<number>>} Sizes of each cell per row. */
176
+ const sizeMatrix = [];
177
+ /** @type {Array<number>} */
178
+ const longestCellByColumn = [];
179
+ let mostCellsPerRow = 0;
180
+ let rowIndex = -1;
181
+ while (++rowIndex < table.length) {
182
+ /** @type {Array<string>} */
183
+ const row = [];
184
+ /** @type {Array<number>} */
185
+ const sizes = [];
186
+ let columnIndex = -1;
187
+ if (table[rowIndex].length > mostCellsPerRow) mostCellsPerRow = table[rowIndex].length;
188
+ while (++columnIndex < table[rowIndex].length) {
189
+ const cell = serialize(table[rowIndex][columnIndex]);
190
+ if (settings.alignDelimiters !== false) {
191
+ const size = stringLength(cell);
192
+ sizes[columnIndex] = size;
193
+ if (longestCellByColumn[columnIndex] === void 0 || size > longestCellByColumn[columnIndex]) longestCellByColumn[columnIndex] = size;
194
+ }
195
+ row.push(cell);
196
+ }
197
+ cellMatrix[rowIndex] = row;
198
+ sizeMatrix[rowIndex] = sizes;
199
+ }
200
+ let columnIndex = -1;
201
+ if (typeof align === "object" && "length" in align) while (++columnIndex < mostCellsPerRow) alignments[columnIndex] = toAlignment(align[columnIndex]);
202
+ else {
203
+ const code = toAlignment(align);
204
+ while (++columnIndex < mostCellsPerRow) alignments[columnIndex] = code;
205
+ }
206
+ columnIndex = -1;
207
+ /** @type {Array<string>} */
208
+ const row = [];
209
+ /** @type {Array<number>} */
210
+ const sizes = [];
211
+ while (++columnIndex < mostCellsPerRow) {
212
+ const code = alignments[columnIndex];
213
+ let before = "";
214
+ let after = "";
215
+ if (code === 99) {
216
+ before = ":";
217
+ after = ":";
218
+ } else if (code === 108) before = ":";
219
+ else if (code === 114) after = ":";
220
+ let size = settings.alignDelimiters === false ? 1 : Math.max(1, longestCellByColumn[columnIndex] - before.length - after.length);
221
+ const cell = before + "-".repeat(size) + after;
222
+ if (settings.alignDelimiters !== false) {
223
+ size = before.length + size + after.length;
224
+ if (size > longestCellByColumn[columnIndex]) longestCellByColumn[columnIndex] = size;
225
+ sizes[columnIndex] = size;
226
+ }
227
+ row[columnIndex] = cell;
228
+ }
229
+ cellMatrix.splice(1, 0, row);
230
+ sizeMatrix.splice(1, 0, sizes);
231
+ rowIndex = -1;
232
+ /** @type {Array<string>} */
233
+ const lines = [];
234
+ while (++rowIndex < cellMatrix.length) {
235
+ const row = cellMatrix[rowIndex];
236
+ const sizes = sizeMatrix[rowIndex];
237
+ columnIndex = -1;
238
+ /** @type {Array<string>} */
239
+ const line = [];
240
+ while (++columnIndex < mostCellsPerRow) {
241
+ const cell = row[columnIndex] || "";
242
+ let before = "";
243
+ let after = "";
244
+ if (settings.alignDelimiters !== false) {
245
+ const size = longestCellByColumn[columnIndex] - (sizes[columnIndex] || 0);
246
+ const code = alignments[columnIndex];
247
+ if (code === 114) before = " ".repeat(size);
248
+ else if (code === 99) if (size % 2) {
249
+ before = " ".repeat(size / 2 + .5);
250
+ after = " ".repeat(size / 2 - .5);
251
+ } else {
252
+ before = " ".repeat(size / 2);
253
+ after = before;
254
+ }
255
+ else after = " ".repeat(size);
256
+ }
257
+ if (settings.delimiterStart !== false && !columnIndex) line.push("|");
258
+ if (settings.padding !== false && !(settings.alignDelimiters === false && cell === "") && (settings.delimiterStart !== false || columnIndex)) line.push(" ");
259
+ if (settings.alignDelimiters !== false) line.push(before);
260
+ line.push(cell);
261
+ if (settings.alignDelimiters !== false) line.push(after);
262
+ if (settings.padding !== false) line.push(" ");
263
+ if (settings.delimiterEnd !== false || columnIndex !== mostCellsPerRow - 1) line.push("|");
264
+ }
265
+ lines.push(settings.delimiterEnd === false ? line.join("").replace(/ +$/, "") : line.join(""));
266
+ }
267
+ return lines.join("\n");
268
+ }
269
+ /**
270
+ * @param {string | null | undefined} [value]
271
+ * Value to serialize.
272
+ * @returns {string}
273
+ * Result.
274
+ */
275
+ function serialize(value) {
276
+ return value === null || value === void 0 ? "" : String(value);
277
+ }
278
+ /**
279
+ * @param {string | null | undefined} value
280
+ * Value.
281
+ * @returns {number}
282
+ * Alignment.
283
+ */
284
+ function toAlignment(value) {
285
+ const code = typeof value === "string" ? value.codePointAt(0) : 0;
286
+ return code === 67 || code === 99 ? 99 : code === 76 || code === 108 ? 108 : code === 82 || code === 114 ? 114 : 0;
287
+ }
288
+
289
+ //#endregion
290
+ export { markdownTable as t };