chunk-LWLIECJJ.js 9.2 KB

1
  1. import{a as on}from"./chunk-SFC4FDPW.js";if(typeof WebAssembly<"u"){let En=function(n){return t.locateFile?t.locateFile(n,u):u+n},nn=function(n,r){n||Q("Assertion failed: "+r)},tn=function(n,r,e){for(var i=r+e,f=r;n[f]&&!(f>=i);)++f;if(f-r>16&&n.subarray&&S)return S.decode(n.subarray(r,f));for(var s="";r<f;){var a=n[r++];if(!(a&128)){s+=String.fromCharCode(a);continue}var o=n[r++]&63;if((a&224)==192){s+=String.fromCharCode((a&31)<<6|o);continue}var c=n[r++]&63;if((a&240)==224?a=(a&15)<<12|o<<6|c:a=(a&7)<<18|o<<12|c<<6|n[r++]&63,a<65536)s+=String.fromCharCode(a);else{var j=a-65536;s+=String.fromCharCode(55296|j>>10,56320|j&1023)}}return s},Gn=function(n,r){return n?tn(X,n,r):""},rn=function(n,r){return n%r>0&&(n+=r-n%r),n},en=function(n){C=n,t.HEAP8=O=new Int8Array(n),t.HEAP16=hn=new Int16Array(n),t.HEAP32=w=new Int32Array(n),t.HEAPU8=X=new Uint8Array(n),t.HEAPU16=ln=new Uint16Array(n),t.HEAPU32=mn=new Uint32Array(n),t.HEAPF32=yn=new Float32Array(n),t.HEAPF64=bn=new Float64Array(n)},U=function(n){for(;n.length>0;){var r=n.shift();if(typeof r=="function"){r();continue}var e=r.func;typeof e=="number"?r.arg===void 0?t.dynCall_v(e):t.dynCall_vi(e,r.arg):e(r.arg===void 0?null:r.arg)}},Cn=function(){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)Qn(t.preRun.shift());U(d)},Xn=function(){zn=!0,U(T)},$n=function(){U(xn)},Jn=function(){if(t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)Zn(t.postRun.shift());U(E)},Qn=function(n){d.unshift(n)},Zn=function(n){E.unshift(n)},Kn=function(n){y++,t.monitorRunDependencies&&t.monitorRunDependencies(y)},Un=function(n){if(y--,t.monitorRunDependencies&&t.monitorRunDependencies(y),y==0&&(B!==null&&(clearInterval(B),B=null),$)){var r=$;$=null,r()}},Q=function(n){throw t.onAbort&&t.onAbort(n),n+="",R(n),h(n),A=!0,vn=1,n="abort("+n+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(n)},fn=function(n){return String.prototype.startsWith?n.startsWith(N):n.indexOf(N)===0},an=function(){try{if(l)return new Uint8Array(l);if(G)return G(b);throw"both async and sync fetching of the wasm failed"}catch(n){Q(n)}},Wn=function(){return!l&&(q||g)&&typeof fetch=="function"?fetch(b,{credentials:"same-origin"}).then(function(n){if(!n.ok)throw"failed to load wasm binary file at '"+b+"'";return n.arrayBuffer()}).catch(function(){return an()}):new Promise(function(n,r){n(an())})},sn=function(){if(!l)return{};var n={env:_,wasi_unstable:_};function r(a,o){var c=a.exports;t.asm=c,Un("wasm-instantiate")}Kn("wasm-instantiate");function e(a){r(a.instance)}function i(a){return Wn().then(function(o){return WebAssembly.instantiate(o,n)}).then(a,function(o){h("failed to asynchronously prepare wasm: "+o),Q(o)})}function f(){if(!l&&typeof WebAssembly.instantiateStreaming=="function"&&!fn(b)&&typeof fetch=="function")fetch(b,{credentials:"same-origin"}).then(function(a){var o=WebAssembly.instantiateStreaming(a,n);return o.then(e,function(c){h("wasm streaming compile failed: "+c),h("falling back to ArrayBuffer instantiation"),i(e)})});else return i(e)}if(t.instantiateWasm)try{var s=t.instantiateWasm(n,r);return s}catch(a){return h("Module.instantiateWasm callback failed with error: "+a),!1}return f(),{}},kn=function(){return O.length},Fn=function(n,r,e){X.set(X.subarray(r,r+e),n)},Yn=function(n){try{return m.grow(n-C.byteLength+65535>>16),en(m.buffer),1}catch{}},Bn=function(n){var r=kn(),e=65536,i=2147483648-e;if(n>i)return!1;for(var f=16777216,s=Math.max(r,f);s<n;)s<=536870912?s=rn(2*s,e):s=Math.min(rn((3*s+2147483648)/4,e),i);var a=Yn(s);return!!a},Ln=function(n,r,e,i){try{for(var f=0,s=0;s<e;s++){for(var a=w[r+s*8>>2],o=w[r+(s*8+4)>>2],c=0;c<o;c++)v.printChar(n,X[a+c]);f+=o}return w[i>>2]=f,0}catch(j){return(typeof FS>"u"||!(j instanceof FS.ErrnoError))&&Q(j),j.errno}},Vn=function(n){this.name="ExitStatus",this.message="Program terminated with exit("+n+")",this.status=n},L=function(n){if(n=n||z,y>0||(Cn(),y>0))return;function r(){K||(K=!0,!A&&(Xn(),$n(),t.onRuntimeInitialized&&t.onRuntimeInitialized(),Jn()))}t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),r()},1)):r()};t=typeof t<"u"?t:{},x={};for(p in t)t.hasOwnProperty(p)&&(x[p]=t[p]);z=[],V="./this.program",W=function(n,r){throw r},q=!1,g=!1,k=!1,D=!1,H=!1,q=typeof window=="object",g=typeof importScripts=="function",D=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",k=D&&!q&&!g,H=!q&&!k&&!g,u="",k?(u=__dirname+"/",Z=function(r,e){return F||(F=on("fs")),Y||(Y=on("path")),r=Y.normalize(r),F.readFileSync(r,e?null:"utf8")},G=function(r){var e=Z(r,!0);return e.buffer||(e=new Uint8Array(e)),nn(e.buffer),e},process.argv.length>1&&(V=process.argv[1].replace(/\\/g,"/")),z=process.argv.slice(2),typeof module<"u"&&(module.exports=t),process.on("uncaughtException",function(n){if(!(n instanceof Vn))throw n}),process.on("unhandledRejection",Q),W=function(n){process.exit(n)},t.inspect=function(){return"[Emscripten Module object]"}):H?(typeof read<"u"&&(Z=function(r){return read(r)}),G=function(r){var e;return typeof readbuffer=="function"?new Uint8Array(readbuffer(r)):(e=read(r,"binary"),nn(typeof e=="object"),e)},typeof scriptArgs<"u"?z=scriptArgs:typeof arguments<"u"&&(z=arguments),typeof quit=="function"&&(W=function(n){quit(n)}),typeof print<"u"&&(typeof console>"u"&&(console={}),console.log=print,console.warn=console.error=typeof printErr<"u"?printErr:print)):(q||g)&&(g?u=self.location.href:document.currentScript&&(u=document.currentScript.src),u.indexOf("blob:")!==0?u=u.substr(0,u.lastIndexOf("/")+1):u="",Z=function(r){var e=new XMLHttpRequest;return e.open("GET",r,!1),e.send(null),e.responseText},g&&(G=function(r){var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),un=function(r,e,i){var f=new XMLHttpRequest;f.open("GET",r,!0),f.responseType="arraybuffer",f.onload=function(){if(f.status==200||f.status==0&&f.response){e(f.response);return}i()},f.onerror=i,f.send(null)},cn=function(n){document.title=n}),R=t.print||console.log.bind(console),h=t.printErr||console.warn.bind(console);for(p in x)x.hasOwnProperty(p)&&(t[p]=x[p]);if(x=null,t.arguments&&(z=t.arguments),t.thisProgram&&(V=t.thisProgram),t.quit&&(W=t.quit),t.wasmBinary&&(l=t.wasmBinary),t.noExitRuntime&&(P=t.noExitRuntime),typeof WebAssembly!="object"&&h("no native wasm support detected"),pn=new WebAssembly.Table({initial:6,maximum:6+0,element:"anyfunc"}),A=!1,vn=0,S=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Dn=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,gn=65536,wn=5247584,jn=4544,I=t.TOTAL_MEMORY||16777216,t.wasmMemory?m=t.wasmMemory:m=new WebAssembly.Memory({initial:I/gn}),m&&(C=m.buffer),I=C.byteLength,en(C),w[jn>>2]=wn,d=[],T=[],xn=[],E=[],zn=!1,y=0,B=null,$=null,t.preloadedImages={},t.preloadedAudios={},N="data:application/octet-stream;base64,",b="crunch.wasm",fn(b)||(b=self.CESIUM_BASE_URL+"ThirdParty/crunch.wasm"),T.push({func:function(){qn()}}),J={splitPath:function(n){var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return r.exec(n).slice(1)},normalizeArray:function(n,r){for(var e=0,i=n.length-1;i>=0;i--){var f=n[i];f==="."?n.splice(i,1):f===".."?(n.splice(i,1),e++):e&&(n.splice(i,1),e--)}if(r)for(;e;e--)n.unshift("..");return n},normalize:function(n){var r=n.charAt(0)==="/",e=n.substr(-1)==="/";return n=J.normalizeArray(n.split("/").filter(function(i){return!!i}),!r).join("/"),!n&&!r&&(n="."),n&&e&&(n+="/"),(r?"/":"")+n},dirname:function(n){var r=J.splitPath(n),e=r[0],i=r[1];return!e&&!i?".":(i&&(i=i.substr(0,i.length-1)),e+i)},basename:function(n){if(n==="/")return"/";var r=n.lastIndexOf("/");return r===-1?n:n.substr(r+1)},extname:function(n){return J.splitPath(n)[3]},join:function(){var n=Array.prototype.slice.call(arguments,0);return J.normalize(n.join("/"))},join2:function(n,r){return J.normalize(n+"/"+r)}},v={buffers:[null,[],[]],printChar:function(n,r){var e=v.buffers[n];r===0||r===10?((n===1?R:h)(tn(e,0)),e.length=0):e.push(r)},varargs:0,get:function(n){v.varargs+=4;var r=w[v.varargs-4>>2];return r},getStr:function(){var n=Gn(v.get());return n},get64:function(){var n=v.get(),r=v.get();return n},getZero:function(){v.get()}},_={a:Fn,b:Bn,c:Ln,memory:m,table:pn},M=sn(),t.asm=M,qn=t.___wasm_call_ctors=function(){return t.asm.d.apply(null,arguments)},Hn=t._malloc=function(){return t.asm.e.apply(null,arguments)},Rn=t._free=function(){return t.asm.f.apply(null,arguments)},Pn=t._crn_get_width=function(){return t.asm.g.apply(null,arguments)},An=t._crn_get_height=function(){return t.asm.h.apply(null,arguments)},Sn=t._crn_get_levels=function(){return t.asm.i.apply(null,arguments)},On=t._crn_get_dxt_format=function(){return t.asm.j.apply(null,arguments)},In=t._crn_get_bytes_per_block=function(){return t.asm.k.apply(null,arguments)},dn=t._crn_get_uncompressed_size=function(){return t.asm.l.apply(null,arguments)},Tn=t._crn_decompress=function(){return t.asm.m.apply(null,arguments)},t.asm=M,$=function n(){K||L(),K||($=n)},t.run=L,t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();P=!0,t.init=function(n){l=n,t.asm=sn(),L()}}var t,x,p,z,V,W,q,g,k,D,H,u,Z,un,G,cn,F,Y,R,h,l,P,m,pn,A,vn,S,Dn,gn,C,O,X,hn,ln,w,mn,yn,bn,wn,jn,I,d,T,xn,E,zn,y,B,$,N,b,J,v,_,M,qn,Hn,Rn,Pn,An,Sn,On,In,dn,Tn,K,Nn=t;export{Nn as a};