xvai-loi 0.1.83 → 0.1.84
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/co.txt +1 -1
- package/package.json +1 -1
- package/xvai-loi.js +18 -5
package/co.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
xvaiLoi120106
|
package/package.json
CHANGED
package/xvai-loi.js
CHANGED
|
@@ -9684,7 +9684,7 @@ function moNhanh(g, W4, H2, ve, r, them = "") {
|
|
|
9684
9684
|
// flow-src/engine/khuon.ts
|
|
9685
9685
|
var KHUON_TOPN = {
|
|
9686
9686
|
ten: "Top N chi\u1EC1u s\xE2u (Captions)",
|
|
9687
|
-
tram: { phut: 18.3, tyLe: 0.7, phan: [0.83, 0.81, 0.46], daiTV: 2.1, video: 0.33, nhanVat: ["Vietnamese people in a real everyday setting.", "Close-up of an object, hands or a place that shows the idea, no faces."], cheToiDa: 0.
|
|
9687
|
+
tram: { phut: 18.3, tyLe: 0.7, phan: [0.83, 0.81, 0.46], daiTV: 2.1, video: 0.33, nhanVat: ["Vietnamese people in a real everyday setting.", "Close-up of an object, hands or a place that shows the idea, no faces."], cheToiDa: 0.45, tranToiDa: 0.8, tranToiThieu: 0.5 },
|
|
9688
9688
|
// cheToiDa: phần phim người nói bị CHE (ảnh / thẻ kính toàn khung) tối đa — máy đo B9 'không thấy mặt' ≈ 0,5–0,87 × che (ảnh có người vẫn tính thấy mặt) → 0,55 giữ B9 ≤ ~40 (D03-1041: che 60 %, B9 53 %); tranToiThieu: không cắt khi trám còn < 50 % (B2 ≥ 45) · tranToiDa: trám cả chia / thẻ tối đa (B2 45–80 %) · cảnh trám / phút, % thời lượng, 3 phần đầu/giữa/cuối, độ dài trung vị (s), tỉ lệ clip động; nhanVat: xen kẽ ảnh có người / cận vật-tay-nơi (đối thủ trộn web, stock, 3D — B06-1027: toàn ảnh người → 'không thấy mặt' 12 % < 15)
|
|
9689
9689
|
chu: { phut: [8, 18], caoMin: 0.042 },
|
|
9690
9690
|
// caoMin: nét chữ nhấn (kể cả dấu) / H — đối thủ trung vị 0,042 (đo tay 23 dòng); chữ bị ép ngang thấp hơn → 2 dòng
|
|
@@ -13008,11 +13008,13 @@ function lapCuongMe(o) {
|
|
|
13008
13008
|
const mn = +(globalThis.__manhNguoi ?? KHUON_TOPN.cat.manhNguoi), ds2 = () => sp.filter((x) => x.bo !== "phong").sort((p, q) => p.f - q.f);
|
|
13009
13009
|
for (const [loai2, tran] of [[/^(anh|kinh)$/, KHUON_TOPN.tram.cheToiDa], [/^(anh|kinh|chia|card)$/, KHUON_TOPN.tram.tranToiDa]]) {
|
|
13010
13010
|
let du = sp.filter((x) => loai2.test(String(x.bo))).reduce((s2, x) => s2 + x.d, 0) - tran * tong, vong2 = 0;
|
|
13011
|
-
while (du > 0.05 && vong2++ < 60
|
|
13011
|
+
while (du > 0.05 && vong2++ < 60) {
|
|
13012
|
+
const duE = Math.min(du, sp.filter((x) => /^(anh|kinh|chia|card)$/.test(String(x.bo))).reduce((s2, x) => s2 + x.d, 0) - KHUON_TOPN.tram.tranToiThieu * tong);
|
|
13013
|
+
if (duE <= 0.25) break;
|
|
13012
13014
|
const L = ds2(), cat2 = L.filter((x) => loai2.test(String(x.bo)) && /^(anh|chia)$/.test(String(x.bo)) && !x.khoa && !x.dong && !x.doc && !x.ui && !x.hang && x.f >= 1).sort((p, q) => q.d - p.d);
|
|
13013
13015
|
let lam = false;
|
|
13014
13016
|
for (const x of cat2) {
|
|
13015
|
-
const nx = L[L.indexOf(x) + 1], het = nx ? nx.f : tong, giu2 = Math.max(1.6, x.d -
|
|
13017
|
+
const nx = L[L.indexOf(x) + 1], het = nx ? nx.f : tong, giu2 = Math.max(1.6, x.d - duE - (nx && het - (x.f + x.d) < mn ? mn - (het - (x.f + x.d)) : 0));
|
|
13016
13018
|
const d2 = nx && het - (x.f + giu2) < mn ? het - mn - x.f : giu2;
|
|
13017
13019
|
if (d2 >= 1.6 && x.d - d2 > 0.25) {
|
|
13018
13020
|
ghiL("rut", x, "khuon tram tran: " + x.d.toFixed(2) + " -> " + d2.toFixed(2) + " s");
|
|
@@ -13023,7 +13025,18 @@ function lapCuongMe(o) {
|
|
|
13023
13025
|
}
|
|
13024
13026
|
}
|
|
13025
13027
|
if (!lam) {
|
|
13026
|
-
const
|
|
13028
|
+
const demCat = (bo22) => {
|
|
13029
|
+
let c = 0, e = -1;
|
|
13030
|
+
for (const x of ds2()) {
|
|
13031
|
+
if (x === bo22) continue;
|
|
13032
|
+
if (x.f - e > 0.05) c += e < 0 ? 1 : 2;
|
|
13033
|
+
else c += 1;
|
|
13034
|
+
e = Math.max(e, x.f + x.d);
|
|
13035
|
+
}
|
|
13036
|
+
if (tong - e > 0.05) c++;
|
|
13037
|
+
return c / tong * 10;
|
|
13038
|
+
};
|
|
13039
|
+
const bo4 = cat2.filter((x) => !String(x.chu || x.giant || "").trim() && x.d <= duE + 0.3 && demCat(x) >= KHUON_TOPN.cat.moi10s[0] + 0.2).sort((p, q) => q.d - p.d)[0];
|
|
13027
13040
|
if (!bo4) break;
|
|
13028
13041
|
ghiL("bo", bo4, "khuon tram tran: bo anh khong chu");
|
|
13029
13042
|
du -= bo4.d;
|
|
@@ -20977,7 +20990,7 @@ function datCauLenh(a) {
|
|
|
20977
20990
|
on2 = true;
|
|
20978
20991
|
window.addEventListener("message", async (ev) => {
|
|
20979
20992
|
const d = ev.data;
|
|
20980
|
-
if (!d || d.
|
|
20993
|
+
if (!d || d.xvaiLoi120106 !== true) return;
|
|
20981
20994
|
const o = String(ev.origin || "");
|
|
20982
20995
|
if (!(o.indexOf("https://flow.google.com") === 0 || o.indexOf("https://labs.google") === 0)) return;
|
|
20983
20996
|
const tra = (kq) => {
|