PageSourceSearch

https://riffusion.org/_next/static/chunks/5506.33d0092c9570da16.js

js riffusion.org collected 2026-10-04 03:33:46 UTC 2,557 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3125,5506],{53125:(e,o,d)=>{d.d(o,{downloadImage:()=>a,downloadVideo:()=>l});var t=d(96429);async function a(e,o,d){let{onSuccess:a,onError:l,showToast:n=!0}=d||{};try{let d=await fetch(e,{mode:"cors",cache:"no-cache",credentials:"omit"});if(!d.ok)throw Error("Direct download failed");let l=await d.blob(),c=URL.createObjectURL(l),r=document.createElement("a");r.href=c,r.download=o,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>URL.revokeObjectURL(c),1e3),n&&t.o.success("Image downloaded successfully"),a?.();return}catch(e){console.log("Direct download failed, using proxy...",e)}try{let d=await fetch("/api/proxy-download",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageUrl:e})});if(!d.ok)throw Error("Proxy download failed");let l=await d.blob(),c=URL.createObjectURL(l),r=document.createElement("a");r.href=c,r.download=o,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>URL.revokeObjectURL(c),1e3),n&&t.o.success("Image downloaded successfully"),a?.();return}catch(e){console.error("Proxy download failed:",e)}n&&t.o.error("Failed to download image"),window.open(e,"_blank"),l?.(Error("Download failed, opened in new tab"))}async function l(e,o,d){let{onSuccess:a,onError:l,showToast:n=!0}=d||{};try{let d=await fetch(e,{mode:"cors",cache:"no-cache",credentials:"omit"});if(!d.ok)throw Error("Direct download failed");let l=await d.blob(),c=URL.createObjectURL(l),r=document.createElement("a");r.href=c,r.download=o,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>URL.revokeObjectURL(c),1e3),n&&t.o.success("Video downloaded successfully"),a?.();return}catch(e){console.log("Direct download failed, using proxy...",e)}try{let d=await fetch("/api/proxy-download",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageUrl:e})});if(!d.ok)throw Error("Proxy download failed");let l=await d.blob(),c=URL.createObjectURL(l),r=document.createElement("a");r.href=c,r.download=o,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>URL.revokeObjectURL(c),1e3),n&&t.o.success("Video downloaded successfully"),a?.();return}catch(e){console.error("Proxy download failed:",e)}n&&t.o.error("Failed to download video"),window.open(e,"_blank"),l?.(Error("Download failed, opened in new tab"))}}}]);

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.