PageSourceSearch

https://voli.ai/_next/static/chunks/1244-4bfc5a4114463bf7.js

js voli.ai collected 2026-10-05 13:15:20 UTC 16,253 bytes, 7 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1244],{28013:function(e,t,r){"use strict";r.r(t),r.d(t,{defaultOptions:function(){return i},fetchFile:function(){return p},getCreateFFmpegCore:function(){return f}});var o=r(93681);r(34155);let n=`https://unpkg.com/@ffmpeg/core@${o.devDependencies["@ffmpeg/core"].substring(1)}/dist/ffmpeg-core.js`;var i={corePath:n},a=r(70888),s=r(93451);let l=async(e,t)=>{(0,a.log)("info",`fetch ${e}`);let r=await (await fetch(e)).arrayBuffer();(0,a.log)("info",`${e} file size = ${r.byteLength} bytes`);let o=new Blob([r],{type:t}),n=URL.createObjectURL(o);return(0,a.log)("info",`${e} blob URL = ${n}`),n},f=async({corePath:e,workerPath:t,wasmPath:r})=>{if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){if("string"!=typeof e)throw Error("corePath should be a string!");let o=new URL(e,"file:///app/node_modules/@ffmpeg/ffmpeg/src/browser/getCreateFFmpegCore.js").href,n=await l(o,"application/javascript"),i=await l(void 0!==r?r:o.replace("ffmpeg-core.js","ffmpeg-core.wasm"),"application/wasm"),f=await l(void 0!==t?t:o.replace("ffmpeg-core.js","ffmpeg-core.worker.js"),"application/javascript");return"undefined"==typeof createFFmpegCore?new Promise(e=>{if(globalThis.importScripts(n),"undefined"==typeof createFFmpegCore)throw Error((0,s.CREATE_FFMPEG_CORE_IS_NOT_DEFINED)(o));(0,a.log)("info","ffmpeg-core.js script loaded"),e({createFFmpegCore,corePath:n,wasmPath:i,workerPath:f})}):((0,a.log)("info","ffmpeg-core.js script is loaded already"),Promise.resolve({createFFmpegCore,corePath:n,wasmPath:i,workerPath:f}))}if("string"!=typeof e)throw Error("corePath should be a string!");let c=new URL(e,"file:///app/node_modules/@ffmpeg/ffmpeg/src/browser/getCreateFFmpegCore.js").href,p=await l(c,"application/javascript"),u=await l(void 0!==r?r:c.replace("ffmpeg-core.js","ffmpeg-core.wasm"),"application/wasm"),h=await l(void 0!==t?t:c.replace("ffmpeg-core.js","ffmpeg-core.worker.js"),"application/javascript");return"undefined"==typeof createFFmpegCore?new Promise(e=>{let t=document.createElement("script"),r=()=>{if(t.removeEventListener("load",r),"undefined"==typeof createFFmpegCore)throw Error((0,s.CREATE_FFMPEG_CORE_IS_NOT_DEFINED)(c));(0,a.log)("info","ffmpeg-core.js script loaded"),e({createFFmpegCore,corePath:p,wasmPath:u,workerPath:h})};t.src=p,t.type="text/javascript",t.addEventListener("load",r),document.getElementsByTagName("head")[0].appendChild(t)}):((0,a.log)("info","ffmpeg-core.js script is loaded already"),Promise.resolve({createFFmpegCore,corePath:p,wasmPath:u,workerPath:h}))},c=e=>new Promise((t,r)=>{let o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=({target:{error:{code:e}}})=>{r(Error(`File could not be read! Code=${e}`))},o.readAsArrayBuffer(e)}),p=async e=>{let t=e;if(void 0===e)return new Uint8Array;
1if("string"==typeof e){if(/data:_data\/([a-zA-Z]*);base64,([^"]*)/.test(e))t=atob(e.split(",")[1]).split("").map(e=>e.charCodeAt(0));else{let r=await fetch(new URL(e,"file:///app/node_modules/@ffmpeg/ffmpeg/src/browser/fetchFile.js").href);t=await r.arrayBuffer()}}else(e instanceof File||e instanceof Blob)&&(t=await c(e));return new Uint8Array(t)}},41617:function(e){e.exports={defaultArgs:["./ffmpeg","-nostdin","-y",],baseOptions:{log:!1,logger(){},progress(){},corePath:""}}},22648:function(e,t,r){let{defaultArgs:o,baseOptions:n}=r(41617),i=r(7010),{defaultOptions:a,getCreateFFmpegCore:s}=r(28013),{version:l}=r(93681),f=Error("ffmpeg.wasm is not ready, make sure you have completed load().");e.exports=(e={})=>{let{log:t,logger:r,progress:c,...p}={...n,...a,...e},u=null,h=null,m=null,d=null,g=!1,y=()=>{},w=t,v=c,b=0,F=0,E=!1,x=0,j=e=>{"FFMPEG_END"===e&&null!==m&&(m(),m=null,d=null,g=!1)},L=(e,t)=>{y({type:e,message:t}),w&&console.log(`[${e}] ${t}`)},_=e=>{let[t,r,o]=e.split(":");return 3600*parseFloat(t)+60*parseFloat(r)+parseFloat(o)},k=(e,t)=>{if("string"==typeof e){if(e.startsWith("  Duration")){let r=e.split(", ")[0].split(": ")[1],o=_(r);t({duration:o,ratio:x}),(0===b||b>o)&&(b=o,E=!0)}else if(E&&e.startsWith("    Stream")){let n=e.match(/([\d.]+) fps/);if(n){let i=parseFloat(n[1]);F=b*i}else F=0;E=!1}else if(e.startsWith("frame")||e.startsWith("size")){let a=e.split("time=")[1].split(" ")[0],s=_(a),l=e.match(/frame=\s*(\d+)/);if(F&&l){let f=parseFloat(l[1]);x=Math.min(f/F,1)}else x=s/b;t({ratio:x,time:s})}else e.startsWith("video:")&&(t({ratio:1}),b=0)}},C=({type:e,message:t})=>{L(e,t),k(t,v),j(t)},O=async()=>{if(L("info","load ffmpeg-core"),null===u){L("info","loading ffmpeg-core");let{createFFmpegCore:e,corePath:t,workerPath:r,wasmPath:o}=await s(p);h=(u=await e({mainScriptUrlOrBlob:t,printErr:e=>C({type:"fferr",message:e}),print:e=>C({type:"ffout",message:e}),locateFile(e,t){if("undefined"!=typeof window||"undefined"!=typeof WorkerGlobalScope){if(void 0!==o&&e.endsWith("ffmpeg-core.wasm"))return o;if(void 0!==r&&e.endsWith("ffmpeg-core.worker.js"))return r}return t+e}})).cwrap(p.mainName||"proxy_main","number",["number","number"]),L("info","ffmpeg-core loaded")}else throw Error("ffmpeg.wasm was loaded, you should not load it again, use ffmpeg.isLoaded() to check next time.")},P=(...e)=>{if(L("info",`run ffmpeg command: ${e.join(" ")}`),null===u)throw f;if(!g)return g=!0,new Promise((t,r)=>{let n=[...o,...e].filter(e=>0!==e.length);m=t,d=r,h(...i(u,n))});throw Error("ffmpeg.wasm can only run one command at a time")},S=(e,...t)=>{if(L("info",`run FS.${e} ${t.map(e=>"string"==typeof e?e:`<${e.length} bytes binary file>`).join(" ")}`),null===u)throw f;{let r=null;try{r=u.FS[e](...t)}catch(o){if("readdir"===e)throw Error(`ffmpeg.FS('readdir', '${t[0]}') error. Check if the path exists, ex: ffmpeg.FS('readdir', '/')`);if("readFile"===e)throw Error(`ffmpeg.FS('readFile', '${t[0]}') error. Check if the path exists`);throw Error("Oops, something went wrong in FS operation.")}return r}},T=()=>{if(null===u)throw f;d&&d("ffmpeg has exited"),g=!1;try{u.exit(1)}catch(e){L(e.message),d&&d(e)}finally{u=null,h=null,m=null,d=null}},N=e=>{v=e},$=e=>{y=e},R=e=>{w=e};return L("info",`use ffmpeg.wasm v${l}`),{setProgress:N,setLogger:$,setLogging:R,load:O,isLoaded:()=>null!==u,run:P,exit:T,FS:S}}},15045:function(e,t,r){r(35666);let o=r(22648),{fetchFile:n}=r(28013);e.exports={createFFmpeg:o,fetchFile:n}},93451:function(e){let t=e=>`
2createFFmpegCore is not defined. ffmpeg.wasm is unable to find createFFmpegCore after loading ffmpeg-core.js from ${e}. Use another URL when calling createFFmpeg():
3
4const ffmpeg = createFFmpeg({
5  corePath: 'http://localhost:3000/ffmpeg-core.js',
6});
7`;e.exports={CREATE_FFMPEG_CORE_IS_NOT_DEFINED:t}},70888:function(e){let t=!1,r=()=>{},o=e=>{t=e},n=e=>{r=e},i=(e,o)=>{r({type:e,message:o}),t&&console.log(`[${e}] ${o}`)};e.exports={logging:t,setLogging:o,setCustomLogger:n,log:i}},7010:function(e){e.exports=(e,t)=>{let r=e._malloc(t.length*Uint32Array.BYTES_PER_ELEMENT);return t.forEach((t,o)=>{let n=e.lengthBytesUTF8(t)+1,i=e._malloc(n);e.stringToUTF8(t,i,n),e.setValue(r+Uint32Array.BYTES_PER_ELEMENT*o,i,"i32")}),[t.length,r]}},95537:function(e,t,r){"use strict";var o=r(82066),n=r(85893);t.Z=(0,o.Z)((0,n.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},72456:function(e,t,r){"use strict";var o=r(82066),n=r(85893);t.Z=(0,o.Z)((0,n.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh")},35666:function(e){var t=function(e){"use strict";var t,r=Object.prototype,o=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(c){f=function(e,t,r){return e[t]=r}}function p(e,t,r,o){var i,a,s,l,f=Object.create((t&&t.prototype instanceof y?t:y).prototype);return n(f,"_invoke",{value:(i=e,a=r,s=new O(o||[]),l=h,function(e,t){if(l===m)throw Error("Generator is already running");if(l===d){if("throw"===e)throw t;return S()}for(s.method=e,s.arg=t;;){var r=s.delegate;if(r){var o=_(r,s);if(o){if(o===g)continue;return o}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===h)throw l=d,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l=m;var n=u(i,a,s);if("normal"===n.type){if(l=s.done?d:"suspendedYield",n.arg===g)continue;return{value:n.arg,done:s.done}}"throw"===n.type&&(l=d,s.method="throw",s.arg=n.arg)}})}),f}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(o){return{type:"throw",arg:o}}}e.wrap=p;var h="suspendedStart",m="executing",d="completed",g={};function y(){}function w(){}function v(){}var b={};f(b,a,function(){return this});var F=Object.getPrototypeOf,E=F&&F(F(P([])));E&&E!==r&&o.call(E,a)&&(b=E);var x=v.prototype=y.prototype=Object.create(b);function j(e){["next","throw","return"].forEach(function(t){f(e,t,function(e){return this._invoke(t,e)})})}function L(e,t){var r;n(this,"_invoke",{value:function(n,i){function a(){return new t(function(r,a){!function r(n,i,a,s){var l=u(e[n],e,i);if("throw"===l.type)s(l.arg);else{var f=l.arg,c=f.value;return c&&"object"==typeof c&&o.call(c,"__await")?t.resolve(c.__await).then(function(e){r("next",e,a,s)},function(e){r("throw",e,a,s)}):t.resolve(c).then(function(e){f.value=e,a(f)},function(e){return r("throw",e,a,s)})}}(n,i,r,a)})}return r=r?r.then(a,a):a()}})}function _(e,r){var o=r.method,n=e.iterator[o];if(n===t)return r.delegate=null,"throw"===o&&e.iterator.return&&
vendor: 5,097 bytes, line 7
7(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),g;var i=u(n,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,g)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function P(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:S}}function S(){return{value:t,done:!0}}return w.prototype=v,n(x,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:w,configurable:!0}),w.displayName=f(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,f(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},j(L.prototype),f(L.prototype,s,function(){return this}),e.AsyncIterator=L,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var a=new L(p(t,r,o,n),i);return e.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},j(x),f(x,l,"Generator"),f(x,a,function(){return this}),f(x,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),r=[];for(var o in t)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=P,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,n){return s.type="throw",s.arg=e,r.next=o,n&&(r.method="next",r.arg=t),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),f=o.call(a,"finallyLoc");if(l&&f){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else if(f){if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else throw Error("try statement without catch or finally")}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return(a.type=e,a.arg=t,i)?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;C(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:P(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(r){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},93681:function(e){"use strict";e.exports=JSON.parse('{"name":"@ffmpeg/ffmpeg","version":"0.11.6","description":"FFmpeg WebAssembly version","main":"src/index.js","types":"src/index.d.ts","directories":{"example":"examples"},"scripts":{"start":"node scripts/server.js","start:worker":"node scripts/worker-server.js","build":"rimraf dist && webpack --config scripts/webpack.config.prod.js","build:worker":"rimraf dist && webpack --config scripts/webpack.config.worker.prod.js","prepublishOnly":"npm run build","lint":"eslint src","wait":"rimraf dist && wait-on http://localhost:3000/dist/ffmpeg.dev.js","test":"npm-run-all -p -r start test:all","test:all":"npm-run-all wait test:browser:ffmpeg test:node:
7all","test:node":"node node_modules/mocha/bin/_mocha --exit --bail --require ./scripts/test-helper.js","test:node:all":"npm run test:node -- ./tests/*.test.js","test:browser":"mocha-headless-chrome -a allow-file-access-from-files -a incognito -a no-sandbox -a disable-setuid-sandbox -a disable-logging -t 300000","test:browser:ffmpeg":"npm run test:browser -- -f ./tests/ffmpeg.test.html"},"browser":{"./src/node/index.js":"./src/browser/index.js"},"repository":{"type":"git","url":"git+https://github.com/ffmpegwasm/ffmpeg.wasm.git"},"keywords":["ffmpeg","WebAssembly","video"],"author":"Jerome Wu <[email protected]>","license":"MIT","bugs":{"url":"https://github.com/ffmpegwasm/ffmpeg.wasm/issues"},"engines":{"node":">=12.16.1"},"homepage":"https://github.com/ffmpegwasm/ffmpeg.wasm#readme","dependencies":{"is-url":"^1.2.4","node-fetch":"^2.6.1","regenerator-runtime":"^0.13.7","resolve-url":"^0.2.1"},"devDependencies":{"@babel/core":"^7.12.3","@babel/preset-env":"^7.12.1","@ffmpeg/core":"^0.11.0","@types/emscripten":"^1.39.4","babel-eslint":"^10.1.0","babel-loader":"^8.1.0","chai":"^4.2.0","cors":"^2.8.5","eslint":"^7.12.1","eslint-config-airbnb-base":"^14.1.0","eslint-plugin-import":"^2.22.1","express":"^4.17.1","mocha":"^8.2.1","mocha-headless-chrome":"^2.0.3","npm-run-all":"^4.1.5","wait-on":"^5.3.0","webpack":"^5.3.2","webpack-cli":"^4.1.0","webpack-dev-middleware":"^4.0.0"}}')}}]);

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.