@dev-anywhere/relay 0.9.9 → 0.9.11

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.
@@ -1 +1 @@
1
- import{_ as Ke}from"./index-BaF074HJ.js";var Je=(()=>{var j=import.meta.url;return(async function(ue={}){var $,t=ue,z,h,le=new Promise((e,r)=>{z=e,h=r}),ve=typeof window=="object",S=typeof importScripts=="function",W=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";if(W){const{createRequire:e}=await Ke(()=>import("./__vite-browser-external-D7Ct-6yo.js").then(n=>n._),[]);let r=import.meta.url;r.startsWith("data:")&&(r="/");var I=e(r)}var G=Object.assign({},t),l="";function me(e){return t.locateFile?t.locateFile(e,l):l+e}var N,w;if(W){var X=I("fs"),F=I("path");import.meta.url.startsWith("data:")||(l=F.dirname(I("url").fileURLToPath(import.meta.url))+"/"),w=e=>{e=T(e)?new URL(e):F.normalize(e);var r=X.readFileSync(e);return r},N=(e,r=!0)=>(e=T(e)?new URL(e):F.normalize(e),new Promise((n,a)=>{X.readFile(e,r?void 0:"utf8",(o,f)=>{o?a(o):n(r?f.buffer:f)})})),!t.thisProgram&&process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2)}else(ve||S)&&(S?l=self.location.href:typeof document<"u"&&document.currentScript&&(l=document.currentScript.src),j&&(l=j),l.startsWith("blob:")?l="":l=l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),S&&(w=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),N=e=>T(e)?new Promise((r,n)=>{var a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="arraybuffer",a.onload=()=>{if(a.status==200||a.status==0&&a.response){r(a.response);return}n(a.status)},a.onerror=n,a.send(null)}):fetch(e,{credentials:"same-origin"}).then(r=>r.ok?r.arrayBuffer():Promise.reject(new Error(r.status+" : "+r.url))));t.print||console.log.bind(console);var y=t.printErr||console.error.bind(console);Object.assign(t,G),G=null,t.arguments&&t.arguments,t.thisProgram&&t.thisProgram;var b=t.wasmBinary,E,K=!1,g,P,H,B,C,V,D;function Y(){var e=E.buffer;t.HEAP8=g=new Int8Array(e),t.HEAP16=H=new Int16Array(e),t.HEAPU8=P=new Uint8Array(e),t.HEAPU16=new Uint16Array(e),t.HEAP32=B=new Int32Array(e),t.HEAPU32=C=new Uint32Array(e),t.HEAPF32=V=new Float32Array(e),t.HEAPF64=D=new Float64Array(e)}var J=[],Q=[],Z=[];function de(){var e=t.preRun;e&&(typeof e=="function"&&(e=[e]),e.forEach(pe)),O(J)}function _e(){O(Q)}function ge(){var e=t.postRun;e&&(typeof e=="function"&&(e=[e]),e.forEach(Re)),O(Z)}function pe(e){J.unshift(e)}function ye(e){Q.unshift(e)}function Re(e){Z.unshift(e)}var m=0,R=null;function Ae(e){var r;m++,(r=t.monitorRunDependencies)==null||r.call(t,m)}function he(e){var n;if(m--,(n=t.monitorRunDependencies)==null||n.call(t,m),m==0&&R){var r=R;R=null,r()}}function p(e){var n;(n=t.onAbort)==null||n.call(t,e),e="Aborted("+e+")",y(e),K=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw h(r),r}var we="data:application/octet-stream;base64,",q=e=>e.startsWith(we),T=e=>e.startsWith("file://");function be(){if(t.locateFile){var e="fvad.wasm";return q(e)?e:me(e)}return new URL("/assets/fvad-DYxbW2my.wasm",import.meta.url).href}var M;function x(e){if(e==M&&b)return new Uint8Array(b);if(w)return w(e);throw"both async and sync fetching of the wasm failed"}function Ee(e){return b?Promise.resolve().then(()=>x(e)):N(e).then(r=>new Uint8Array(r),()=>x(e))}function ee(e,r,n){return Ee(e).then(a=>WebAssembly.instantiate(a,r)).then(n,a=>{y(`failed to asynchronously prepare wasm: ${a}`),p(a)})}function Pe(e,r,n,a){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!q(r)&&!T(r)&&!W&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(o=>{var f=WebAssembly.instantiateStreaming(o,n);return f.then(a,function(i){return y(`wasm streaming compile failed: ${i}`),y("falling back to ArrayBuffer instantiation"),ee(r,n,a)})}):ee(r,n,a)}function Te(){return{a:Ge}}function Ue(){var e=Te();function r(a,o){return c=a.exports,E=c.c,Y(),ye(c.d),he(),c}Ae();function n(a){r(a.instance)}if(t.instantiateWasm)try{return t.instantiateWasm(e,r)}catch(a){y(`Module.instantiateWasm callback failed with error: ${a}`),h(a)}return M??(M=be()),Pe(b,M,e,n).catch(h),{}}var O=e=>{e.forEach(r=>r(t))};function ke(e,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":return g[e];case"i8":return g[e];case"i16":return H[e>>1];case"i32":return B[e>>2];case"i64":p("to do getValue(i64) use WASM_BIGINT");case"float":return V[e>>2];case"double":return D[e>>3];case"*":return C[e>>2];default:p(`invalid type for getValue: ${r}`)}}t.noExitRuntime;function Se(e,r,n="i8"){switch(n.endsWith("*")&&(n="*"),n){case"i1":g[e]=r;break;case"i8":g[e]=r;break;case"i16":H[e>>1]=r;break;case"i32":B[e>>2]=r;break;case"i64":p("to do setValue(i64) use WASM_BIGINT");case"float":V[e>>2]=r;break;case"double":D[e>>3]=r;break;case"*":C[e>>2]=r;break;default:p(`invalid type for setValue: ${n}`)}}var We=e=>ae(e),Ie=()=>se(),re=typeof TextDecoder<"u"?new TextDecoder:void 0,Ne=(e,r=0,n=NaN)=>{for(var a=r+n,o=r;e[o]&&!(o>=a);)++o;if(o-r>16&&e.buffer&&re)return re.decode(e.subarray(r,o));for(var f="";r<o;){var i=e[r++];if(!(i&128)){f+=String.fromCharCode(i);continue}var s=e[r++]&63;if((i&224)==192){f+=String.fromCharCode((i&31)<<6|s);continue}var v=e[r++]&63;if((i&240)==224?i=(i&15)<<12|s<<6|v:i=(i&7)<<18|s<<12|v<<6|e[r++]&63,i<65536)f+=String.fromCharCode(i);else{var d=i-65536;f+=String.fromCharCode(55296|d>>10,56320|d&1023)}}return f},U=(e,r)=>e?Ne(P,e,r):"",Fe=(e,r,n,a)=>{p(`Assertion failed: ${U(e)}, at: `+[r?U(r):"unknown filename",n,a?U(a):"unknown function"])},He=()=>2147483648,Be=(e,r)=>Math.ceil(e/r)*r,Ce=e=>{var r=E.buffer,n=(e-r.byteLength+65535)/65536|0;try{return E.grow(n),Y(),1}catch{}},Ve=e=>{var r=P.length;e>>>=0;var n=He();if(e>n)return!1;for(var a=1;a<=4;a*=2){var o=r*(1+.2/a);o=Math.min(o,e+100663296);var f=Math.min(n,Be(Math.max(e,o),65536)),i=Ce(f);if(i)return!0}return!1},ne=e=>{var r=t["_"+e];return r},De=(e,r)=>{g.set(e,r)},Me=e=>{for(var r=0,n=0;n<e.length;++n){var a=e.charCodeAt(n);a<=127?r++:a<=2047?r+=2:a>=55296&&a<=57343?(r+=4,++n):r+=3}return r},Oe=(e,r,n,a)=>{if(!(a>0))return 0;for(var o=n,f=n+a-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343){var v=e.charCodeAt(++i);s=65536+((s&1023)<<10)|v&1023}if(s<=127){if(n>=f)break;r[n++]=s}else if(s<=2047){if(n+1>=f)break;r[n++]=192|s>>6,r[n++]=128|s&63}else if(s<=65535){if(n+2>=f)break;r[n++]=224|s>>12,r[n++]=128|s>>6&63,r[n++]=128|s&63}else{if(n+3>=f)break;r[n++]=240|s>>18,r[n++]=128|s>>12&63,r[n++]=128|s>>6&63,r[n++]=128|s&63}}return r[n]=0,n-o},Le=(e,r,n)=>Oe(e,P,r,n),te=e=>ie(e),je=e=>{var r=Me(e)+1,n=te(r);return Le(e,n,r),n},$e=(e,r,n,a,o)=>{var f={string:u=>{var A=0;return u!=null&&u!==0&&(A=je(u)),A},array:u=>{var A=te(u.length);return De(u,A),A}};function i(u){return r==="string"?U(u):r==="boolean"?!!u:u}var s=ne(e),v=[],d=0;if(a)for(var _=0;_<a.length;_++){var ce=f[n[_]];ce?(d===0&&(d=Ie()),v[_]=ce(a[_])):v[_]=a[_]}var L=s(...v);function Xe(u){return d!==0&&We(d),i(u)}return L=Xe(L),L},ze=(e,r,n,a)=>{var o=!n||n.every(i=>i==="number"||i==="boolean"),f=r!=="string";return f&&o&&!a?ne(e):(...i)=>$e(e,r,n,i)},Ge={a:Fe,b:Ve},c=Ue();t._fvad_new=()=>(t._fvad_new=c.e)(),t._malloc=e=>(t._malloc=c.f)(e),t._fvad_reset=e=>(t._fvad_reset=c.g)(e),t._fvad_free=e=>(t._fvad_free=c.h)(e),t._free=e=>(t._free=c.i)(e),t._fvad_set_mode=(e,r)=>(t._fvad_set_mode=c.j)(e,r),t._fvad_set_sample_rate=(e,r)=>(t._fvad_set_sample_rate=c.k)(e,r),t._fvad_process=(e,r,n)=>(t._fvad_process=c.l)(e,r,n);var ae=e=>(ae=c.n)(e),ie=e=>(ie=c.o)(e),se=()=>(se=c.p)();t.cwrap=ze,t.setValue=Se,t.getValue=ke;var k,oe;R=function e(){k||fe(),k||(R=e)};function fe(){if(m>0||!oe&&(oe=1,de(),m>0))return;function e(){var r;k||(k=1,t.calledRun=1,!K&&(_e(),z(t),(r=t.onRuntimeInitialized)==null||r.call(t),ge()))}t.setStatus?(t.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>t.setStatus(""),1),e()},1)):e()}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();return fe(),$=le,$})})();export{Je as default};
1
+ import{_ as Ke}from"./index-B_-hIMS5.js";var Je=(()=>{var j=import.meta.url;return(async function(ue={}){var $,t=ue,z,h,le=new Promise((e,r)=>{z=e,h=r}),ve=typeof window=="object",S=typeof importScripts=="function",W=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";if(W){const{createRequire:e}=await Ke(()=>import("./__vite-browser-external-D7Ct-6yo.js").then(n=>n._),[]);let r=import.meta.url;r.startsWith("data:")&&(r="/");var I=e(r)}var G=Object.assign({},t),l="";function me(e){return t.locateFile?t.locateFile(e,l):l+e}var N,w;if(W){var X=I("fs"),F=I("path");import.meta.url.startsWith("data:")||(l=F.dirname(I("url").fileURLToPath(import.meta.url))+"/"),w=e=>{e=T(e)?new URL(e):F.normalize(e);var r=X.readFileSync(e);return r},N=(e,r=!0)=>(e=T(e)?new URL(e):F.normalize(e),new Promise((n,a)=>{X.readFile(e,r?void 0:"utf8",(o,f)=>{o?a(o):n(r?f.buffer:f)})})),!t.thisProgram&&process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2)}else(ve||S)&&(S?l=self.location.href:typeof document<"u"&&document.currentScript&&(l=document.currentScript.src),j&&(l=j),l.startsWith("blob:")?l="":l=l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),S&&(w=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),N=e=>T(e)?new Promise((r,n)=>{var a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="arraybuffer",a.onload=()=>{if(a.status==200||a.status==0&&a.response){r(a.response);return}n(a.status)},a.onerror=n,a.send(null)}):fetch(e,{credentials:"same-origin"}).then(r=>r.ok?r.arrayBuffer():Promise.reject(new Error(r.status+" : "+r.url))));t.print||console.log.bind(console);var y=t.printErr||console.error.bind(console);Object.assign(t,G),G=null,t.arguments&&t.arguments,t.thisProgram&&t.thisProgram;var b=t.wasmBinary,E,K=!1,g,P,H,B,C,V,D;function Y(){var e=E.buffer;t.HEAP8=g=new Int8Array(e),t.HEAP16=H=new Int16Array(e),t.HEAPU8=P=new Uint8Array(e),t.HEAPU16=new Uint16Array(e),t.HEAP32=B=new Int32Array(e),t.HEAPU32=C=new Uint32Array(e),t.HEAPF32=V=new Float32Array(e),t.HEAPF64=D=new Float64Array(e)}var J=[],Q=[],Z=[];function de(){var e=t.preRun;e&&(typeof e=="function"&&(e=[e]),e.forEach(pe)),O(J)}function _e(){O(Q)}function ge(){var e=t.postRun;e&&(typeof e=="function"&&(e=[e]),e.forEach(Re)),O(Z)}function pe(e){J.unshift(e)}function ye(e){Q.unshift(e)}function Re(e){Z.unshift(e)}var m=0,R=null;function Ae(e){var r;m++,(r=t.monitorRunDependencies)==null||r.call(t,m)}function he(e){var n;if(m--,(n=t.monitorRunDependencies)==null||n.call(t,m),m==0&&R){var r=R;R=null,r()}}function p(e){var n;(n=t.onAbort)==null||n.call(t,e),e="Aborted("+e+")",y(e),K=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw h(r),r}var we="data:application/octet-stream;base64,",q=e=>e.startsWith(we),T=e=>e.startsWith("file://");function be(){if(t.locateFile){var e="fvad.wasm";return q(e)?e:me(e)}return new URL("/assets/fvad-DYxbW2my.wasm",import.meta.url).href}var M;function x(e){if(e==M&&b)return new Uint8Array(b);if(w)return w(e);throw"both async and sync fetching of the wasm failed"}function Ee(e){return b?Promise.resolve().then(()=>x(e)):N(e).then(r=>new Uint8Array(r),()=>x(e))}function ee(e,r,n){return Ee(e).then(a=>WebAssembly.instantiate(a,r)).then(n,a=>{y(`failed to asynchronously prepare wasm: ${a}`),p(a)})}function Pe(e,r,n,a){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!q(r)&&!T(r)&&!W&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(o=>{var f=WebAssembly.instantiateStreaming(o,n);return f.then(a,function(i){return y(`wasm streaming compile failed: ${i}`),y("falling back to ArrayBuffer instantiation"),ee(r,n,a)})}):ee(r,n,a)}function Te(){return{a:Ge}}function Ue(){var e=Te();function r(a,o){return c=a.exports,E=c.c,Y(),ye(c.d),he(),c}Ae();function n(a){r(a.instance)}if(t.instantiateWasm)try{return t.instantiateWasm(e,r)}catch(a){y(`Module.instantiateWasm callback failed with error: ${a}`),h(a)}return M??(M=be()),Pe(b,M,e,n).catch(h),{}}var O=e=>{e.forEach(r=>r(t))};function ke(e,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":return g[e];case"i8":return g[e];case"i16":return H[e>>1];case"i32":return B[e>>2];case"i64":p("to do getValue(i64) use WASM_BIGINT");case"float":return V[e>>2];case"double":return D[e>>3];case"*":return C[e>>2];default:p(`invalid type for getValue: ${r}`)}}t.noExitRuntime;function Se(e,r,n="i8"){switch(n.endsWith("*")&&(n="*"),n){case"i1":g[e]=r;break;case"i8":g[e]=r;break;case"i16":H[e>>1]=r;break;case"i32":B[e>>2]=r;break;case"i64":p("to do setValue(i64) use WASM_BIGINT");case"float":V[e>>2]=r;break;case"double":D[e>>3]=r;break;case"*":C[e>>2]=r;break;default:p(`invalid type for setValue: ${n}`)}}var We=e=>ae(e),Ie=()=>se(),re=typeof TextDecoder<"u"?new TextDecoder:void 0,Ne=(e,r=0,n=NaN)=>{for(var a=r+n,o=r;e[o]&&!(o>=a);)++o;if(o-r>16&&e.buffer&&re)return re.decode(e.subarray(r,o));for(var f="";r<o;){var i=e[r++];if(!(i&128)){f+=String.fromCharCode(i);continue}var s=e[r++]&63;if((i&224)==192){f+=String.fromCharCode((i&31)<<6|s);continue}var v=e[r++]&63;if((i&240)==224?i=(i&15)<<12|s<<6|v:i=(i&7)<<18|s<<12|v<<6|e[r++]&63,i<65536)f+=String.fromCharCode(i);else{var d=i-65536;f+=String.fromCharCode(55296|d>>10,56320|d&1023)}}return f},U=(e,r)=>e?Ne(P,e,r):"",Fe=(e,r,n,a)=>{p(`Assertion failed: ${U(e)}, at: `+[r?U(r):"unknown filename",n,a?U(a):"unknown function"])},He=()=>2147483648,Be=(e,r)=>Math.ceil(e/r)*r,Ce=e=>{var r=E.buffer,n=(e-r.byteLength+65535)/65536|0;try{return E.grow(n),Y(),1}catch{}},Ve=e=>{var r=P.length;e>>>=0;var n=He();if(e>n)return!1;for(var a=1;a<=4;a*=2){var o=r*(1+.2/a);o=Math.min(o,e+100663296);var f=Math.min(n,Be(Math.max(e,o),65536)),i=Ce(f);if(i)return!0}return!1},ne=e=>{var r=t["_"+e];return r},De=(e,r)=>{g.set(e,r)},Me=e=>{for(var r=0,n=0;n<e.length;++n){var a=e.charCodeAt(n);a<=127?r++:a<=2047?r+=2:a>=55296&&a<=57343?(r+=4,++n):r+=3}return r},Oe=(e,r,n,a)=>{if(!(a>0))return 0;for(var o=n,f=n+a-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343){var v=e.charCodeAt(++i);s=65536+((s&1023)<<10)|v&1023}if(s<=127){if(n>=f)break;r[n++]=s}else if(s<=2047){if(n+1>=f)break;r[n++]=192|s>>6,r[n++]=128|s&63}else if(s<=65535){if(n+2>=f)break;r[n++]=224|s>>12,r[n++]=128|s>>6&63,r[n++]=128|s&63}else{if(n+3>=f)break;r[n++]=240|s>>18,r[n++]=128|s>>12&63,r[n++]=128|s>>6&63,r[n++]=128|s&63}}return r[n]=0,n-o},Le=(e,r,n)=>Oe(e,P,r,n),te=e=>ie(e),je=e=>{var r=Me(e)+1,n=te(r);return Le(e,n,r),n},$e=(e,r,n,a,o)=>{var f={string:u=>{var A=0;return u!=null&&u!==0&&(A=je(u)),A},array:u=>{var A=te(u.length);return De(u,A),A}};function i(u){return r==="string"?U(u):r==="boolean"?!!u:u}var s=ne(e),v=[],d=0;if(a)for(var _=0;_<a.length;_++){var ce=f[n[_]];ce?(d===0&&(d=Ie()),v[_]=ce(a[_])):v[_]=a[_]}var L=s(...v);function Xe(u){return d!==0&&We(d),i(u)}return L=Xe(L),L},ze=(e,r,n,a)=>{var o=!n||n.every(i=>i==="number"||i==="boolean"),f=r!=="string";return f&&o&&!a?ne(e):(...i)=>$e(e,r,n,i)},Ge={a:Fe,b:Ve},c=Ue();t._fvad_new=()=>(t._fvad_new=c.e)(),t._malloc=e=>(t._malloc=c.f)(e),t._fvad_reset=e=>(t._fvad_reset=c.g)(e),t._fvad_free=e=>(t._fvad_free=c.h)(e),t._free=e=>(t._free=c.i)(e),t._fvad_set_mode=(e,r)=>(t._fvad_set_mode=c.j)(e,r),t._fvad_set_sample_rate=(e,r)=>(t._fvad_set_sample_rate=c.k)(e,r),t._fvad_process=(e,r,n)=>(t._fvad_process=c.l)(e,r,n);var ae=e=>(ae=c.n)(e),ie=e=>(ie=c.o)(e),se=()=>(se=c.p)();t.cwrap=ze,t.setValue=Se,t.getValue=ke;var k,oe;R=function e(){k||fe(),k||(R=e)};function fe(){if(m>0||!oe&&(oe=1,de(),m>0))return;function e(){var r;k||(k=1,t.calledRun=1,!K&&(_e(),z(t),(r=t.onRuntimeInitialized)==null||r.call(t),ge()))}t.setStatus?(t.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>t.setStatus(""),1),e()},1)):e()}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();return fe(),$=le,$})})();export{Je as default};