@danxbot/ui 6.4.3 → 6.4.5
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/dist/index.js +14 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35164,18 +35164,19 @@ function X$(e, t, n) {
|
|
|
35164
35164
|
return { start: e[t].start, end: Pt(e[n]) };
|
|
35165
35165
|
}
|
|
35166
35166
|
function vg(e, t, n, r) {
|
|
35167
|
-
|
|
35168
|
-
|
|
35169
|
-
|
|
35170
|
-
|
|
35171
|
-
|
|
35172
|
-
|
|
35173
|
-
|
|
35174
|
-
|
|
35175
|
-
|
|
35176
|
-
|
|
35177
|
-
|
|
35178
|
-
|
|
35167
|
+
const o = t.length > 0 && t[t.length - 1].start + t[t.length - 1].text.length === t[0].start;
|
|
35168
|
+
if (!e.sink || !t.length || o) return Ny(n, e.refs, e.sink, r);
|
|
35169
|
+
const s = [];
|
|
35170
|
+
for (let l = 0; l < t.length; l++) {
|
|
35171
|
+
const c = t[l], u = c.start + c.text.length;
|
|
35172
|
+
if (s.push({ start: c.start, end: u }), l === t.length - 1) break;
|
|
35173
|
+
let m = u;
|
|
35174
|
+
e.source[m] === "\r" && m++, e.source[m] === `
|
|
35175
|
+
` && m++, m > u && s.push({ start: u, end: m });
|
|
35176
|
+
}
|
|
35177
|
+
zt(e, { kind: "inline" }, t[0].start, s);
|
|
35178
|
+
const i = Ny(n, e.refs, e.sink, r), a = t[t.length - 1];
|
|
35179
|
+
return Nr(e, a.start + a.text.length), i;
|
|
35179
35180
|
}
|
|
35180
35181
|
function Pt(e) {
|
|
35181
35182
|
return e.start + e.text.length;
|
|
@@ -37985,7 +37986,7 @@ function Ky(e) {
|
|
|
37985
37986
|
}
|
|
37986
37987
|
else
|
|
37987
37988
|
x.fill(0), g.push(0);
|
|
37988
|
-
return { source: t, stops: g, graphemes: o, representative: x };
|
|
37989
|
+
return x[t.length] !== t.length && (g.push(t.length), x[t.length] = t.length), { source: t, stops: g, graphemes: o, representative: x };
|
|
37989
37990
|
}
|
|
37990
37991
|
function Ao(e, t) {
|
|
37991
37992
|
const n = Math.max(0, Math.min(t, e.source.length));
|