xvai-loi 0.1.90 → 0.1.91
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/package.json +1 -1
- package/xvai-loi.js +2 -1
package/package.json
CHANGED
package/xvai-loi.js
CHANGED
|
@@ -13067,9 +13067,10 @@ function lapCuongMe(o) {
|
|
|
13067
13067
|
const duoc = (x) => !x.ui && !x.doc && !x.hang && !x.dong && !x.tieuDoc && !x.khoa && x.f >= 3 && (x.bo === "chia" && x.ten && taiSan(x.ten) || x.bo === "card" && x.anhTren);
|
|
13068
13068
|
while (D.length > tranD) {
|
|
13069
13069
|
let j = -1, m = 1e9;
|
|
13070
|
+
const coChia = D.some((x2) => x2.bo === "chia" && duoc(x2));
|
|
13070
13071
|
for (let k = 0; k < D.length; k++) {
|
|
13071
13072
|
const x2 = D[k];
|
|
13072
|
-
if (!duoc(x2)) continue;
|
|
13073
|
+
if (!duoc(x2) || coChia && x2.bo !== "chia") continue;
|
|
13073
13074
|
const g = Math.min(k > 0 ? x2.f - D[k - 1].f : 1e9, k + 1 < D.length ? D[k + 1].f - x2.f : 1e9);
|
|
13074
13075
|
if (g < m) {
|
|
13075
13076
|
m = g;
|