xvai-loi 0.1.62 → 0.1.63

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.
Files changed (3) hide show
  1. package/co.txt +1 -1
  2. package/package.json +1 -1
  3. package/xvai-loi.js +6 -3
package/co.txt CHANGED
@@ -1 +1 @@
1
- xvaiLoi111245
1
+ xvaiLoi111249
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xvai-loi",
3
- "version": "0.1.62",
3
+ "version": "0.1.63",
4
4
  "description": "Loi dung video (Edit Video Tu Dong) nap vao tool Google Flow qua o cam engine/oCam.ts",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
package/xvai-loi.js CHANGED
@@ -11694,7 +11694,10 @@ function lapCuongMe(o) {
11694
11694
  ghiL("bo", { bo: x.kieu || "chu", f: f2, d: 0 }, "trung CTA: canh AI vung CTA lap dung chu CTA may (comment / luu / tai lieu / tang): " + String(x.tu || ""));
11695
11695
  return;
11696
11696
  }
11697
- const ten2 = x.kieu + ":" + String(x.tu || "").toLocaleLowerCase("vi"), im0 = taiSan(ten2), co = !!im0 && !daAnh.has(im0) && !!daAnh.add(im0), chuK = hoa3(suaChu(sach2(x.chu || (x.kieu === "anh" || x.kieu === "vat" ? String(x.tu || "").split(/\s+/).slice(0, 3).join(" ") : "")))).split(" ").slice(0, 4).join(" "), chu22 = hoa3(suaChu(sach2(x.chu2 || ""))).split(" ").slice(0, 4).join(" ");
11697
+ const ten2 = x.kieu + ":" + String(x.tu || "").toLocaleLowerCase("vi"), im0 = taiSan(ten2), co = !!im0 && !daAnh.has(im0) && !!daAnh.add(im0), chuK = hoa3(suaChu(sach2(x.chu || (x.kieu === "anh" || x.kieu === "vat" ? (() => {
11698
+ const v = String(x.tu || "").split(/\s+/).map((w) => sach2(w)).filter((w) => w && !/^(và|với|là|thì|mà|nhưng|rồi|cái|những|các|một|này|đó|chúng|ta|tôi|mình|bạn|em|anh|chị|của|cho|để|nên|vì|cũng|đã|đang|sẽ|có|không|được|rất|ạ|nhé|nha|à|ơi|lại|ra|vào|đi|nó|họ|hãy|chỉ|cần|phải|mới|khi|nếu|vậy|thế|như|từ|trong|về|bị|hết|luôn|sau|trước)$/i.test(w)).slice(0, 3);
11699
+ return v.length >= 2 ? v.join(" ") : "";
11700
+ })() : "")))).split(" ").slice(0, 4).join(" "), chu22 = hoa3(suaChu(sach2(x.chu2 || ""))).split(" ").slice(0, 4).join(" ");
11698
11701
  const n0 = ung.length, n1 = loai.length, dV = co && im0.laVideo ? Math.min(2.8, Math.max(2, +im0.dai || 2.4)) : 0;
11699
11702
  if (x.kieu === "anh" && dV) {
11700
11703
  de(f2, dV, { uuTien: UT.so + 5, bo: "anh", ten: ten2, chu: chuK, chu2: chu22, keu: "whoosh", video: 1 }, 3, datAnh);
@@ -20525,7 +20528,7 @@ async function napLoi(d) {
20525
20528
  return "LOI: " + String(e && e.message || e).slice(0, 300);
20526
20529
  }
20527
20530
  }
20528
- var LOI_URL = "https://cdn.jsdelivr.net/npm/xvai-loi@0.1.61/nap.js";
20531
+ var LOI_URL = "https://cdn.jsdelivr.net/npm/xvai-loi@0.1.62/nap.js";
20529
20532
  var TRONG_LOI = !!globalThis.__xvaiReact;
20530
20533
  try {
20531
20534
  if (!TRONG_LOI) setTimeout(() => {
@@ -20555,7 +20558,7 @@ function datCauLenh(a) {
20555
20558
  on2 = true;
20556
20559
  window.addEventListener("message", async (ev) => {
20557
20560
  const d = ev.data;
20558
- if (!d || d.xvaiLoi111245 !== true) return;
20561
+ if (!d || d.xvaiLoi111249 !== true) return;
20559
20562
  const o = String(ev.origin || "");
20560
20563
  if (!(o.indexOf("https://flow.google.com") === 0 || o.indexOf("https://labs.google") === 0)) return;
20561
20564
  const tra = (kq) => {