xvai-loi 0.1.68 → 0.1.70
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 +8 -7
package/co.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
xvaiLoi111714
|
package/package.json
CHANGED
package/xvai-loi.js
CHANGED
|
@@ -14009,7 +14009,7 @@ function hoiNgoai(lenh, k, v) {
|
|
|
14009
14009
|
window.removeEventListener("message", h);
|
|
14010
14010
|
if (ngoaiCo !== true && ++loNgoai >= 3) ngoaiCo = false;
|
|
14011
14011
|
ok(null);
|
|
14012
|
-
}, ngoaiCo ? 8e3 : 3e3);
|
|
14012
|
+
}, ngoaiCo ? k === "khoVideo" && lenh === "lay" ? 3e4 : 8e3 : 3e3);
|
|
14013
14013
|
} catch (e) {
|
|
14014
14014
|
ok(null);
|
|
14015
14015
|
}
|
|
@@ -18138,7 +18138,7 @@ async function themKho(files) {
|
|
|
18138
18138
|
try {
|
|
18139
18139
|
const ds2 = await layKho();
|
|
18140
18140
|
const L = ds2.map((m) => ({ id: m.id, ten: m.ten, blob: m.blob, loai: m.loai, dai: m.dai || 0 }));
|
|
18141
|
-
globalThis.
|
|
18141
|
+
globalThis.__khoNgoaiDs = L;
|
|
18142
18142
|
hoiNgoai("luu", "khoVideo", L);
|
|
18143
18143
|
} catch (e) {
|
|
18144
18144
|
}
|
|
@@ -18176,11 +18176,11 @@ async function layKho() {
|
|
|
18176
18176
|
});
|
|
18177
18177
|
{
|
|
18178
18178
|
const G3 = globalThis, rong = !ds2.length;
|
|
18179
|
-
if (!G3.
|
|
18179
|
+
if (!Array.isArray(G3.__khoNgoaiDs) || !G3.__khoNgoaiDs.length) {
|
|
18180
18180
|
const ng0 = await hoiNgoai("lay", "khoVideo");
|
|
18181
|
-
G3.
|
|
18181
|
+
G3.__khoNgoaiDs = Array.isArray(ng0) ? ng0 : [];
|
|
18182
18182
|
}
|
|
18183
|
-
const ng = G3.
|
|
18183
|
+
const ng = G3.__khoNgoaiDs, coS = new Set(ds2.map((x) => x.id));
|
|
18184
18184
|
if (Array.isArray(ng)) for (const m of ng) {
|
|
18185
18185
|
if (!m || !m.blob || coS.has(String(m.id))) continue;
|
|
18186
18186
|
if (d && rong) {
|
|
@@ -18356,7 +18356,8 @@ async function ghepKho(canh, kho6) {
|
|
|
18356
18356
|
}
|
|
18357
18357
|
async function chuanBiKho(kb, words, bao) {
|
|
18358
18358
|
if (!kb) return 0;
|
|
18359
|
-
const
|
|
18359
|
+
const kho0 = await layKho(), kho6 = kho0.filter((m) => cuaDuAn(m.ten));
|
|
18360
|
+
globalThis.__khoDo = { ma: maDuAn(), tong: kho0.length, vid: kho0.filter((m) => m.loai === "video").length, cuaDuAn: kho6.length, vidDuAn: kho6.filter((m) => m.loai === "video").map((m) => m.ten).slice(0, 12) };
|
|
18360
18361
|
if (!kho6.length) return 0;
|
|
18361
18362
|
const loi2 = (words || []).map((w) => String(w && w.text || "")).join(" "), thap = loi2.toLocaleLowerCase("vi");
|
|
18362
18363
|
const cau = (tu) => {
|
|
@@ -20706,7 +20707,7 @@ function datCauLenh(a) {
|
|
|
20706
20707
|
on2 = true;
|
|
20707
20708
|
window.addEventListener("message", async (ev) => {
|
|
20708
20709
|
const d = ev.data;
|
|
20709
|
-
if (!d || d.
|
|
20710
|
+
if (!d || d.xvaiLoi111714 !== true) return;
|
|
20710
20711
|
const o = String(ev.origin || "");
|
|
20711
20712
|
if (!(o.indexOf("https://flow.google.com") === 0 || o.indexOf("https://labs.google") === 0)) return;
|
|
20712
20713
|
const tra = (kq) => {
|