Agriculture-front-end/public/Cesium/Workers/UnZipTerrainData.js

2 lines
37 KiB
JavaScript
Raw Normal View History

2023-04-16 22:33:44 +08:00
define(["./createTaskProcessorWorker","./pako_inflate-f73548c4","./when-b60132fc"],(function(e,t,n){"use strict";if("undefined"!=typeof WebAssembly&&"object"!=typeof window){var r,i=void 0!==i?i:{},o={};for(r in i)i.hasOwnProperty(r)&&(o[r]=i[r]);i.arguments=[],i.thisProgram="./this.program",i.quit=function(e,t){throw t},i.preRun=[],i.postRun=[];var a=!1,s=!1,u=!1,l=!1;if(a="object"==typeof window,s="function"==typeof importScripts,u="object"==typeof process&&"function"==typeof require&&!a&&!s,l=!a&&!u&&!s,i.ENVIRONMENT)throw new Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -s ENVIRONMENT=web or -s ENVIRONMENT=node)");var d,c,f="";if(u)f=__dirname+"/",i.read=function(e,t){var n;return d||(d=require("fs")),c||(c=require("path")),e=c.normalize(e),n=d.readFileSync(e),t?n:n.toString()},i.readBinary=function(e){var t=i.read(e,!0);return t.buffer||(t=new Uint8Array(t)),Se(t.buffer),t},process.argv.length>1&&(i.thisProgram=process.argv[1].replace(/\\/g,"/")),i.arguments=process.argv.slice(2),"undefined"!=typeof module&&(module.exports=i),process.on("uncaughtException",(function(e){if(!(e instanceof ct))throw e})),process.on("unhandledRejection",Et),i.quit=function(e){process.exit(e)},i.inspect=function(){return"[Emscripten Module object]"};else if(l)"undefined"!=typeof read&&(i.read=function(e){return read(e)}),i.readBinary=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(Se("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?i.arguments=scriptArgs:void 0!==arguments&&(i.arguments=arguments),"function"==typeof quit&&(i.quit=function(e){quit(e)});else{if(!a&&!s)throw new Error("environment detection error");s?f=self.location.href:document.currentScript&&(f=document.currentScript.src),f=0!==f.indexOf("blob:")?f.substr(0,f.indexOf("/Workers")+1):"",i.read=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},s&&(i.readBinary=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),i.readAsync=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)},i.setWindowTitle=function(e){document.title=e}}var E=i.print||("undefined"!=typeof console?console.log.bind(console):"undefined"!=typeof print?print:null),T=i.printErr||("undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&console.warn.bind(console)||E);for(r in o)o.hasOwnProperty(r)&&(i[r]=o[r]);function Me(e){Me.shown||(Me.shown={}),Me.shown[e]||(Me.shown[e]=1)}o=void 0,Se(void 0===i.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),Se(void 0===i.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),Se(void 0===i.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),Se(void 0===i.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),_e=Te=Ee=function(){Et("cannot use the stack before compiled code is ready to run, and has provided stack access")};var _={"f64-rem":function(e,t){return e%t},debugger:function(){}};new Array(0);var p,h=0,m=function(e){h=e},y=function(){return h};function be(e,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return g[e>>0];case"i16":return M[e>>1];case"i32":case"i64":return b[e>>2];case"float":return F[e>>2];case"double":return v[e>>3];default:Et("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&Et("No WebAssembly support found. Build with -s WASM=0 to target JavaScript instead.");var R=!1;function Se(e,t){e||Et("Assertion failed: "+t)}function Fe(e){var t=i["_"+e];return Se(t,"Cannot call unknown function "+e+", make sure it is exported"),t}function ve(e,t,n,r,i){var o={string:function(e){var t