
var ZD = (function() {
  var _scriptDir = import.meta.url;
  
  return (
function(ZD) {
  ZD = ZD || {};


var a;a||(a=typeof ZD !== 'undefined' ? ZD : {});var q,r;a.ready=new Promise(function(b,c){q=b;r=c});var t={},w;for(w in a)a.hasOwnProperty(w)&&(t[w]=a[w]);var x="";"undefined"!==typeof document&&document.currentScript&&(x=document.currentScript.src);_scriptDir&&(x=_scriptDir);0!==x.indexOf("blob:")?x=x.substr(0,x.replace(/[?#].*/,"").lastIndexOf("/")+1):x="";var y=a.printErr||console.warn.bind(console);for(w in t)t.hasOwnProperty(w)&&(a[w]=t[w]);t=null;var z;
a.wasmBinary&&(z=a.wasmBinary);var noExitRuntime=a.noExitRuntime||!0;"object"!==typeof WebAssembly&&A("no native wasm support detected");var B,C=!1;function E(b){var c=a["_"+b];c||A("Assertion failed: Cannot call unknown function "+(b+", make sure it is exported"));return c}
function aa(b,c,h,p){var e={string:function(d){var m=0;if(null!==d&&void 0!==d&&0!==d){var l=(d.length<<2)+1;m=F(l);var g=m,f=G;if(0<l){l=g+l-1;for(var u=0;u<d.length;++u){var k=d.charCodeAt(u);if(55296<=k&&57343>=k){var da=d.charCodeAt(++u);k=65536+((k&1023)<<10)|da&1023}if(127>=k){if(g>=l)break;f[g++]=k}else{if(2047>=k){if(g+1>=l)break;f[g++]=192|k>>6}else{if(65535>=k){if(g+2>=l)break;f[g++]=224|k>>12}else{if(g+3>=l)break;f[g++]=240|k>>18;f[g++]=128|k>>12&63}f[g++]=128|k>>6&63}f[g++]=128|k&63}}f[g]=
0}}return m},array:function(d){var m=F(d.length);H.set(d,m);return m}};b=E(b);var n=[],D=0;if(p)for(var v=0;v<p.length;v++){var Q=e[h[v]];Q?(0===D&&(D=I()),n[v]=Q(p[v])):n[v]=p[v]}h=b.apply(null,n);return h=function(d){0!==D&&J(D);if("string"===c)if(d){for(var m=G,l=d+NaN,g=d;m[g]&&!(g>=l);)++g;if(16<g-d&&m.subarray&&K)d=K.decode(m.subarray(d,g));else{for(l="";d<g;){var f=m[d++];if(f&128){var u=m[d++]&63;if(192==(f&224))l+=String.fromCharCode((f&31)<<6|u);else{var k=m[d++]&63;f=224==(f&240)?(f&15)<<
12|u<<6|k:(f&7)<<18|u<<12|k<<6|m[d++]&63;65536>f?l+=String.fromCharCode(f):(f-=65536,l+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else l+=String.fromCharCode(f)}d=l}}else d="";else d="boolean"===c?!!d:d;return d}(h)}var K="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0,H,G,L,M=[],N=[],O=[];function ba(){var b=a.preRun.shift();M.unshift(b)}var P=0,R=null,S=null;a.preloadedImages={};a.preloadedAudios={};
function A(b){if(a.onAbort)a.onAbort(b);b="Aborted("+b+")";y(b);C=!0;b=new WebAssembly.RuntimeError(b+". Build with -s ASSERTIONS=1 for more info.");r(b);throw b;}function T(){return U.startsWith("data:application/octet-stream;base64,")}var U;if(a.locateFile){if(U="zstddec-wasm.wasm",!T()){var V=U;U=a.locateFile?a.locateFile(V,x):x+V}}else U=(new URL("zstddec-wasm.wasm",import.meta.url)).toString();
function ca(){var b=U;try{if(b==U&&z)return new Uint8Array(z);throw"both async and sync fetching of the wasm failed";}catch(c){A(c)}}function ea(){return z||"function"!==typeof fetch?Promise.resolve().then(function(){return ca()}):fetch(U,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+U+"'";return b.arrayBuffer()}).catch(function(){return ca()})}
function W(b){for(;0<b.length;){var c=b.shift();if("function"==typeof c)c(a);else{var h=c.u;"number"===typeof h?void 0===c.s?fa(h)():fa(h)(c.s):h(void 0===c.s?null:c.s)}}}var X=[];function fa(b){var c=X[b];c||(b>=X.length&&(X.length=b+1),X[b]=c=L.get(b));return c}var ha={a:function(b,c,h){G.copyWithin(b,c,c+h)},b:function(){A("OOM")}};
(function(){function b(e){a.asm=e.exports;B=a.asm.c;e=B.buffer;a.HEAP8=H=new Int8Array(e);a.HEAP16=new Int16Array(e);a.HEAP32=new Int32Array(e);a.HEAPU8=G=new Uint8Array(e);a.HEAPU16=new Uint16Array(e);a.HEAPU32=new Uint32Array(e);a.HEAPF32=new Float32Array(e);a.HEAPF64=new Float64Array(e);L=a.asm.o;N.unshift(a.asm.d);P--;a.monitorRunDependencies&&a.monitorRunDependencies(P);0==P&&(null!==R&&(clearInterval(R),R=null),S&&(e=S,S=null,e()))}function c(e){b(e.instance)}function h(e){return ea().then(function(n){return WebAssembly.instantiate(n,
p)}).then(function(n){return n}).then(e,function(n){y("failed to asynchronously prepare wasm: "+n);A(n)})}var p={a:ha};P++;a.monitorRunDependencies&&a.monitorRunDependencies(P);if(a.instantiateWasm)try{return a.instantiateWasm(p,b)}catch(e){return y("Module.instantiateWasm callback failed with error: "+e),!1}(function(){return z||"function"!==typeof WebAssembly.instantiateStreaming||T()||"function"!==typeof fetch?h(c):fetch(U,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,
p).then(c,function(n){y("wasm streaming compile failed: "+n);y("falling back to ArrayBuffer instantiation");return h(c)})})})().catch(r);return{}})();a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.d).apply(null,arguments)};a._malloc=function(){return(a._malloc=a.asm.e).apply(null,arguments)};a._free=function(){return(a._free=a.asm.f).apply(null,arguments)};a._ZSTD_isError=function(){return(a._ZSTD_isError=a.asm.g).apply(null,arguments)};
a._ZSTD_getErrorName=function(){return(a._ZSTD_getErrorName=a.asm.h).apply(null,arguments)};a._ZSTD_createDStream=function(){return(a._ZSTD_createDStream=a.asm.i).apply(null,arguments)};a._ZSTD_freeDStream=function(){return(a._ZSTD_freeDStream=a.asm.j).apply(null,arguments)};a._ZSTD_DStreamInSize=function(){return(a._ZSTD_DStreamInSize=a.asm.k).apply(null,arguments)};a._ZSTD_DStreamOutSize=function(){return(a._ZSTD_DStreamOutSize=a.asm.l).apply(null,arguments)};
a._ZSTD_initDStream=function(){return(a._ZSTD_initDStream=a.asm.m).apply(null,arguments)};a._ZSTD_decompressStream=function(){return(a._ZSTD_decompressStream=a.asm.n).apply(null,arguments)};var I=a.stackSave=function(){return(I=a.stackSave=a.asm.p).apply(null,arguments)},J=a.stackRestore=function(){return(J=a.stackRestore=a.asm.q).apply(null,arguments)},F=a.stackAlloc=function(){return(F=a.stackAlloc=a.asm.r).apply(null,arguments)};
a.cwrap=function(b,c,h,p){h=h||[];var e=h.every(function(n){return"number"===n});return"string"!==c&&e&&!p?E(b):function(){return aa(b,c,h,arguments)}};var Y;S=function ia(){Y||Z();Y||(S=ia)};
function Z(){function b(){if(!Y&&(Y=!0,a.calledRun=!0,!C)){W(N);q(a);if(a.onRuntimeInitialized)a.onRuntimeInitialized();if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;){var c=a.postRun.shift();O.unshift(c)}W(O)}}if(!(0<P)){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)ba();W(M);0<P||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1);b()},1)):b())}}a.run=Z;
if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0<a.preInit.length;)a.preInit.pop()();Z();


  return ZD.ready
}
);
})();
export default ZD;