xvai-loi 0.1.59 → 0.1.60
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 +13 -5
package/co.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
xvaiLoi111139
|
package/package.json
CHANGED
package/xvai-loi.js
CHANGED
|
@@ -11162,9 +11162,9 @@ dangKy("cmSticker", (g, d, tuoi, W4, H2, _n, _s, dai2) => {
|
|
|
11162
11162
|
}
|
|
11163
11163
|
const B = G3.__dauMH || (G3.__dauCanh && _n ? G3.__dauCanh(d, _n, W4, H2) : null);
|
|
11164
11164
|
const HV = Array.isArray(G3.__hopVe) ? G3.__hopVe : [], tk = typeof G3.__tKhung === "number" ? +G3.__tKhung.toFixed(3) : -1, chuK = [];
|
|
11165
|
-
for (let i = HV.length - 1; i >= 0 && i >= HV.length -
|
|
11165
|
+
for (let i = HV.length - 1; i >= 0 && i >= HV.length - 120; i--) {
|
|
11166
11166
|
const h = HV[i];
|
|
11167
|
-
if (h.t
|
|
11167
|
+
if (h.t < tk - 0.05) break;
|
|
11168
11168
|
if (/^chu|^the|^nguoi|^anh:the/.test(String(h.lop))) chuK.push([h.x0, h.y0, h.x1, h.y1]);
|
|
11169
11169
|
}
|
|
11170
11170
|
const AL = G3.__anhLuoi && G3.__anhLuoi.k === G3.__khungSo ? G3.__anhLuoi.L : null, coNguoiAnh = (cx, cy) => {
|
|
@@ -13291,13 +13291,21 @@ function veTrangTu(g, c, T, W4, H2, nen2, mo4) {
|
|
|
13291
13291
|
if (S && (coPip || D && D[3] > D[1])) {
|
|
13292
13292
|
const e = 0.015 * H2, vat = [];
|
|
13293
13293
|
if (coPip) vat.push([O2.b[0] - e, O2.b[1] - e, O2.b[2] + e, O2.b[3] + e, 3]);
|
|
13294
|
+
{
|
|
13295
|
+
const HV = Array.isArray(G3.__hopVe) ? G3.__hopVe : [], tk = typeof G3.__tKhung === "number" ? +G3.__tKhung.toFixed(3) : -1;
|
|
13296
|
+
for (let q = HV.length - 1; q >= 0 && q >= HV.length - 80; q--) {
|
|
13297
|
+
const h = HV[q];
|
|
13298
|
+
if (h.t < tk - 0.05) break;
|
|
13299
|
+
if (/^icon|^logo/.test(String(h.lop))) vat.push([h.x0 * W4 - e, h.y0 * H2 - e, h.x1 * W4 + e, h.y1 * H2 + e, 2]);
|
|
13300
|
+
}
|
|
13301
|
+
}
|
|
13294
13302
|
if (D && D[3] > D[1]) {
|
|
13295
13303
|
const hh = D[3] - D[1];
|
|
13296
13304
|
vat.push([D[0] * W4, (D[1] + 0.3 * hh) * H2, D[2] * W4, (D[1] + 0.8 * hh) * H2, 3], [D[0] * W4, (D[1] - 0.35 * hh) * H2, D[2] * W4, (D[1] + 0.3 * hh) * H2, 2], [D[0] * W4, (D[1] + 0.8 * hh) * H2, D[2] * W4, (D[3] + 0.025) * H2, 1.2]);
|
|
13297
13305
|
}
|
|
13298
13306
|
const phat = (y0) => vat.reduce((t, b) => t + b[4] * Math.max(0, Math.min(S[2], b[2]) - Math.max(S[0], b[0])) * Math.max(0, Math.min(S[3] + y0, b[3]) - Math.max(S[1] + y0, b[1])), 0);
|
|
13299
13307
|
if (phat(0) > 0) {
|
|
13300
|
-
if (!P3.ne || P3.neK !== (coPip ? 1 : 0)) {
|
|
13308
|
+
if (!P3.ne || P3.neK !== (coPip ? 1 : 0) || phat(P3.ne[1]) > 0) {
|
|
13301
13309
|
let tot = 0, best = phat(0) + 1e-9 * 0;
|
|
13302
13310
|
for (let y = 0.12 * H2; y + (S[3] - S[1]) <= 0.84 * H2; y += 0.01 * H2) {
|
|
13303
13311
|
const d0 = y - S[1], v = phat(d0) + Math.abs(d0) * (S[2] - S[0]) * 0.02;
|
|
@@ -20480,7 +20488,7 @@ async function napLoi(d) {
|
|
|
20480
20488
|
return "LOI: " + String(e && e.message || e).slice(0, 300);
|
|
20481
20489
|
}
|
|
20482
20490
|
}
|
|
20483
|
-
var LOI_URL = "https://cdn.jsdelivr.net/npm/xvai-loi@0.1.
|
|
20491
|
+
var LOI_URL = "https://cdn.jsdelivr.net/npm/xvai-loi@0.1.59/nap.js";
|
|
20484
20492
|
var TRONG_LOI = !!globalThis.__xvaiReact;
|
|
20485
20493
|
try {
|
|
20486
20494
|
if (!TRONG_LOI) setTimeout(() => {
|
|
@@ -20510,7 +20518,7 @@ function datCauLenh(a) {
|
|
|
20510
20518
|
on2 = true;
|
|
20511
20519
|
window.addEventListener("message", async (ev) => {
|
|
20512
20520
|
const d = ev.data;
|
|
20513
|
-
if (!d || d.
|
|
20521
|
+
if (!d || d.xvaiLoi111139 !== true) return;
|
|
20514
20522
|
const o = String(ev.origin || "");
|
|
20515
20523
|
if (!(o.indexOf("https://flow.google.com") === 0 || o.indexOf("https://labs.google") === 0)) return;
|
|
20516
20524
|
const tra = (kq) => {
|