PageSourceSearch

https://videofaceswap.io/_nuxt/Df7RBF8y.js

js videofaceswap.io collected 2026-09-29 13:56:22 UTC 10,783 bytes, 7 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BwTn8Tg8.js","./BlVNMI56.js","./Cq05Gqjl.js","./CsJ3pi86.js","./entry.Dp9ECWAw.css","./DlAUqK2U.js","./BUwcFHhk.js","./B0yPKXn8.js","./Bw8uRMjv.js","./index.CCRbrB4H.css"])))=>i.map(i=>d[i]);
2import{_ as I,o as c,c as f,a as e,b as _,j as x,i as v,d as D,t as m,F as U,v as T,x as A,J as L,r as k}from"./CsJ3pi86.js";import{$ as h,l as V,N,O as E}from"./Cq05Gqjl.js";import{L as P}from"./BY6lgHUa.js";import{D as S}from"./Gs3EehZ-.js";import{U as M}from"./DHPhXMi9.js";let O=`-----BEGIN PUBLIC KEY-----
3MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDa2oPxMZe71V4dw2r8rHWt59gH
4W5INRmlhepe6GUanrHykqKdlIB4kcJiu8dHC/FJeppOXVoKz82pvwZCmSUrF/1yr
5rnmUDjqUefDu8myjhcbio6CnG5TtQfwN2pz3g6yHkLgp8cFfyPSWwyOCMMMsTU9s
6snOjvdDb4wiZI8x3UwIDAQAB
7-----END PUBLIC KEY-----`;const q="NHGNy5YFz7HeFb",B="videofaceswap";async function j(){return new Promise(t=>{typeof window<"u"?I(async()=>{const{default:r}=await import("./4R-se1ey.js");return{default:r}},[],import.meta.url).then(({default:r})=>{const n=new Date,a=new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds()),i=Math.floor(a.getTime()/1e3),s=R(),y=$(16),w=new r;w.setPublicKey(O);const u=w.encrypt(y),o=B+":"+q+":"+i+":"+s+":"+u,l=Y(o,y,y);t({app_id:B,t:i,nonce:s,sign:l,secret_key:u})}):t("")})}function R(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}function $(t){let r="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length;let i=0;for(;i<t;)r+=n.charAt(Math.floor(Math.random()*a)),i+=1;return r}function Y(t,r,n){const a=h.enc.Utf8.parse(r),i=h.enc.Utf8.parse(n);var s=h.enc.Utf8.parse(t),y={iv:i,mode:h.mode.CBC,padding:h.pad.Pkcs7},w=h.AES.encrypt(s,a,y);return w.toString()}const F=N.downloadApiBase;function z(){return new Promise(t=>{if(typeof localStorage<"u"){var r=localStorage.getItem("user-uuid");if(!r){const n=h.lib.WordArray.random(16).toString(),a=new Date().getTime(),i=h.SHA256(n+a).toString();r=i,localStorage.setItem("user-uuid",i)}t({uid:r})}})}const tt=async t=>{await z();const r=await V("ai_videofaceswap"),n=await j(),a={};let i;t.platform==="youtube"?(t.oldOrNew&&(a.youtube_url=t.url,a.platform="Youtube",i=`https://vapi.extensiondock.com/api/youtube/v4/info?${new URLSearchParams(n)}`),console.log("youtube")):t.oldOrNew&&(a.url=t.url,a.platform=t.platform,a.app_id=t.app_id,i=`${F}/xxx-download/video-info-v3?${new URLSearchParams(r)}`);try{return await E(i,"POST",a)}catch(s){return s}};async function G(t,r){await z(),await V("ai_videofaceswap");const n=await j(),a={};a.url=t,a.quality=r;let i=`https://vapi.extensiondock.com/api/youtube/v4/download?${new URLSearchParams(n)}`;try{return await E(i,"POST",a)}catch(s){return s}}const H={class:"h-full flex flex-col space-y-6"},K={key:0,class:"flex items-center justify-center py-12 flex-1 h-[50vh]"},Q={class:"text-center"},J={class:"p-4"},W={class:"flex items-start gap-3"},Z={class:"flex-1"},X={class:"flex flex-col md:flex-row md:items-center md:justify-between gap-3"},ee={key:2,class:"grid grid-cols-1 lg:grid-cols-2 gap-6 flex-1 min-h-0"},te={class:"flex flex-col h-full"},oe={class:"border border-gray-200 rounded-lg flex-1"},se={class:"p-4"},le={class:"space-y-4"},ae={class:"aspect-video w-full bg-gray-100 rounded-lg overflow-hidden"},ne=["src"],ie=["title"],re={class:"flex flex-col"},de={class:"border border-gray-200 rounded-lg flex-1 flex flex-col"},ce={class:"p-4 flex-1 flex flex-col"},ue={class:"overflow-y-auto pr-2 max-h-[35vh]"},fe={class:"space-y-3"},me={class:"p-4"},ve={class:"flex items-center justify-between"},ge={class:"flex items-center gap-3 flex-1 min-w-0"},he={class:"min-w-0 flex-1"},ye={class:"font-medium md:text-sm text-xs"},we={class:"flex items-center gap-2 text-xs text-gray-500 mt-1"},xe={key:0,class:"border border-gray-300 text-xs px-1 py-0 rounded-full font-semibold color-[#09090b] focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground px-1 py-0"},pe={key:1},be={class:"flex items-center gap-2 flex-shrink-0"},_e=["onClick"],De={key:3,class:"grid grid-cols-1 lg:grid-cols-2 gap-6 flex-1 min-h-0"},ke={class:"flex flex-col h-full"},Se={class:"border border-gray-200 rounded-lg flex-1"},Ce={class:"p-4"},Ue={class:"space-y-4"},Te={class:"aspect-video w-full bg-gray-100 rounded-lg overflow-hidden"},Ae=["src"],Pe=["title"],Be={class:"flex flex-col"},Ie={class:"border border-gray-200 rounded-lg flex-1 flex flex-col"},Ve={class:"p-4 flex-1 flex flex-col"},Ee={class:"overflow-y-auto pr-2 max-h-[35vh]"},je={class:"space-y-3"},ze={class:"p-4"},Le={class:"flex items-center justify-between"},Ne={class:"flex items-center gap-3 flex-1 min-w-0"},Me={class:"min-w-0 flex-1 flex justify-between"},Oe={class:"font-medium md:text-sm text-xs"},qe={class:"font-medium md:text-sm text-xs"},Re={class:"flex items-center gap-2 text-xs text-gray-500 mt-1"},$e={key:0,class:"border border-gray-300 text-xs px-1 py-0 rounded-full font-semibold color-[#09090b] focus:outline-hidden focu
7s:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground px-1 py-0"},Ye={key:1},Fe={class:"flex items-center gap-2 flex-shrink-0"},Ge={class:"relative"},He=["onClick","disabled"],Ke={key:0,class:"absolute inset-0 bg-gray-300 rounded-md overflow-hidden"},ot={__name:"index",props:{isAnalyzing:{type:Boolean,default:!1},videoData:{type:Object,default:null},downloadStarted:{type:Boolean,default:!1}},emits:["download","useDownloadedVideo"],setup(t,{emit:r}){const n=r,a=k(null),i=k(null),s=k({}),y=u=>{setTimeout(()=>{typeof window<"u"&&a.value?.scrollIntoView({behavior:"smooth"})},1e3),n("download",u.quality,u.url)},w=async(u,o)=>{try{s.value[o]=1,setTimeout(()=>{typeof window<"u"&&a.value?.scrollIntoView({behavior:"smooth"})},1e3);const l=await G(u.url,u.quality_label);if(l.code===200&&l.data){const{MultiThreadDownloader:d}=await I(async()=>{const{MultiThreadDownloader:p}=await import("./BwTn8Tg8.js");return{MultiThreadDownloader:p}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url),b=new d;i.value=b;const C=u.video_type?u.video_type.split("/")[1]:"mp4",Qe=Number(u.file_size||0);try{await b.download(l.data,u.title||"video",10,u.video_type,C,p=>{const g=Math.max(1,p);s.value[o]=g}),i.value=null,s.value[o]=100,setTimeout(()=>{s.value[o]=0},2e3)}catch(p){if(console.error("多线程下载失败:",p),s.value[o]=0,typeof window<"u"){const g=document.createElement("a");g.href=l.data,g.download=`${videoData.title||"video"}.${C}`,g.target="_blank",document.body.appendChild(g),g.click(),document.body.removeChild(g)}}}else console.error("获取下载地址失败:",l),s.value[o]=0}catch(l){console.error("下载请求失败:",l),s.value[o]=0}};return(u,o)=>(c(),f("div",H,[t.isAnalyzing?(c(),f("div",K,[e("div",Q,[_(x(P),{class:"w-8 h-8 animate-spin mx-auto mb-3 text-blue-600"}),o[1]||(o[1]=e("p",{class:"text-sm text-gray-600"},"Analyzing video URL...",-1))])])):v("",!0),t.downloadStarted?(c(),f("div",{key:1,class:"border border-blue-200 bg-blue-50 rounded-lg flex-shrink-0",ref_key:"downloadStartRef",ref:a},[e("div",J,[e("div",W,[_(x(S),{class:"w-5 h-5 text-blue-600 mt-0.5"}),e("div",Z,[o[4]||(o[4]=e("h4",{class:"font-medium text-blue-800 mb-1"},"Download Started!",-1)),e("div",X,[o[3]||(o[3]=e("p",{class:"text-sm text-blue-700"},"Download in progress. Upload the video after completion. ",-1)),e("button",{onClick:o[0]||(o[0]=l=>u.$emit("useDownloadedVideo")),class:"bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded-md text-sm md:flex-shrink-0 flex items-center justify-center gap-2"},[_(x(M),{class:"w-4 h-4"}),o[2]||(o[2]=D(" Go to Upload Video ",-1))])])])])])],512)):v("",!0),t.videoData&&t.videoData.videos?(c(),f("div",ee,[e("div",te,[o[5]||(o[5]=e("h4",{class:"font-medium text-sm mb-4"},"Video Information",-1)),e("div",oe,[e("div",se,[e("div",le,[e("div",ae,[e("img",{src:t.videoData.img||"/placeholder.svg",alt:"Video thumbnail",class:"w-full h-full object-cover"},null,8,ne)]),e("div",null,[e("h3",{class:"font-medium text-sm leading-tight truncate",title:t.videoData.title},m(t.videoData.title),9,ie)])])])])]),e("div",re,[o[8]||(o[8]=e("h4",{class:"font-medium text-sm mb-4"},"Available Download Options",-1)),e("div",de,[e("div",ce,[e("div",ue,[e("div",fe,[(c(!0),f(U,null,T(t.videoData.videos.slice().reverse(),(l,d)=>(c(),f("div",{key:d,class:"border border-gray-200 rounded-lg"},[e("div",me,[e("div",ve,[e("div",ge,[o[6]||(o[6]=e("div",{class:"w-2 h-2 bg-blue-500 rounded-full flex-shrink-0"},null,-1)),e("div",he,[e("div",ye,m(l.quality),1),e("div",we,[l.format?(c(),f("span",xe,m(l.format),1)):v("",!0),l.size?(c(),f("span",pe,m(l.size),1)):v("",!0)])])]),e("div",be,[e("button",{onClick:b=>y(l),class:"bg-[#18181b] hover:bg-[#18181b]/90 text-white text-xs px-3 py-1 h-8 rounded-md flex items-center gap-1 w-20 justify-center"},[_(x(S),{class:"w-3 h-3"}),o[7]||(o[7]=D(" Download ",-1))],8,_e)])])])]))),128))])])])])])])):v("",!0),t.videoData&&t.videoData.quality?(c(),f("div",De,[e("div",ke,[o[9]||(o[9]=e("h4",{class:"font-medium text-sm mb-4"},"Video Information",-1)),e("div",Se,[e("div",Ce,[e("div",Ue,[e("div",Te,[e("img",{src:t.videoData.cover||"/placeholder.svg",alt:"Video thumbnail",class:"w-full h-full object-cover"},null,8,Ae)]),e("div",null,[e("h3",{class:"font-medium text-sm leading-tight truncate",title:t.videoData.title},m(t.videoData.title),9,Pe)])])])])]),e("div",Be,[o[11]||(o[11]=e("h4",{class:"font-medium text-sm mb-4"},"Available Download Options",-1)),e("div",Ie,[e("div",Ve,[e("div",Ee,[e("div",je,[(c(!0),f(U,null,T(t.videoData.quality.slice().reverse(),(l,d)=>(c(),f("div",{key:d,class:"border border-gray-200 rounded-lg"},[e("div",ze,[e("div",Le,[e("div",Ne,[o[10]||(o[10]=e("div",{class:"w-2 h-2 bg-blue-500 rounded-full flex-shrink-0"},null,-1)),e("div",Me,[e("div",Oe,m(l.quality_label),1),e("div",qe,m(l.video_type),1),e("div",Re,[l.format?(c(),f("span",$e,m(l.format),1)):v("",!0),l.size?(c(),f("span",Ye,m(l.size),1)):v("",!0)])])]),e("div",Fe,[e("div",Ge,[e("button",{onClick:b=>w(l,d),disabled:(s.value[d]||0)>=1&&(s.value[d]||0)<100,class:"bg-[#18181b] hover:bg-[#18181b]/90 disabled:bg-gray-400 text-white text-xs px-3 py-1 h-8 rounded-md flex items-center gap-1 relative z-10 w-20 justify-center"},[(s.value[d]||0)===0||(s.value[d]||0)===100?(c(),A(x(S),{key:0,class:"w-3 h-3"})):(c(),A(x(P),{key:1,class:"w-3 h-3 animate-spin"})),D(" "+m((s.value[d]||0)>=1&&(s.value[d]||0)<100?`${s.value[d]}%`:"Download"),1)],8,He),(s.value[d]||0)>=1&&(s.value[d]||0)<100?(c(),f("div",Ke,[e("div",{class:"h-full bg-blue-500 transition-all duration-300 ease-out",style:L({width:`${s.value[d]||0}%`})},null,4)])):v("",!0)])])])])]))),128))])])])])])])):v("",!0)]))}};export{tt as C,ot as _,G as r};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.