mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-04-22 22:00:15 +08:00
124 lines
62 KiB
JavaScript
124 lines
62 KiB
JavaScript
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,m,f){e!=Array.prototype&&e!=Object.prototype&&(e[m]=f.value)};$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e};$jscomp.global=$jscomp.getGlobal(this);
|
|
$jscomp.polyfill=function(e,m,f,A){if(m){f=$jscomp.global;e=e.split(".");for(A=0;A<e.length-1;A++){var k=e[A];k in f||(f[k]={});f=f[k]}e=e[e.length-1];A=f[e];m=m(A);m!=A&&null!=m&&$jscomp.defineProperty(f,e,{configurable:!0,writable:!0,value:m})}};$jscomp.polyfill("Math.imul",function(e){return e?e:function(e,f){e=Number(e);f=Number(f);var m=e&65535,k=f&65535;return m*k+((e>>>16&65535)*k+m*(f>>>16&65535)<<16>>>0)|0}},"es6","es3");
|
|
$jscomp.polyfill("Math.clz32",function(e){return e?e:function(e){e=Number(e)>>>0;if(0===e)return 32;var f=0;0===(e&4294901760)&&(e<<=16,f+=16);0===(e&4278190080)&&(e<<=8,f+=8);0===(e&4026531840)&&(e<<=4,f+=4);0===(e&3221225472)&&(e<<=2,f+=2);0===(e&2147483648)&&f++;return f}},"es6","es3");$jscomp.polyfill("Math.trunc",function(e){return e?e:function(e){e=Number(e);if(isNaN(e)||Infinity===e||-Infinity===e||0===e)return e;var f=Math.floor(Math.abs(e));return 0>e?-f:f}},"es6","es3");
|
|
$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(e){return $jscomp.SYMBOL_PREFIX+(e||"")+$jscomp.symbolCounter_++};
|
|
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var e=$jscomp.global.Symbol.iterator;e||(e=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[e]&&$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(e){var m=0;return $jscomp.iteratorPrototype(function(){return m<e.length?{done:!1,value:e[m++]}:{done:!0}})};
|
|
$jscomp.iteratorPrototype=function(e){$jscomp.initSymbolIterator();e={next:e};e[$jscomp.global.Symbol.iterator]=function(){return this};return e};$jscomp.makeIterator=function(e){$jscomp.initSymbolIterator();var m=e[Symbol.iterator];return m?m.call(e):$jscomp.arrayIterator(e)};$jscomp.FORCE_POLYFILL_PROMISE=!1;
|
|
$jscomp.polyfill("Promise",function(e){function m(){this.batch_=null}function f(e){return e instanceof k?e:new k(function(t,f){t(e)})}if(e&&!$jscomp.FORCE_POLYFILL_PROMISE)return e;m.prototype.asyncExecute=function(e){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(e);return this};m.prototype.asyncExecuteBatch_=function(){var e=this;this.asyncExecuteFunction(function(){e.executeBatch_()})};var A=$jscomp.global.setTimeout;m.prototype.asyncExecuteFunction=function(e){A(e,
|
|
0)};m.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var e=this.batch_;this.batch_=[];for(var f=0;f<e.length;++f){var k=e[f];delete e[f];try{k()}catch(qa){this.asyncThrow_(qa)}}}this.batch_=null};m.prototype.asyncThrow_=function(e){this.asyncExecuteFunction(function(){throw e;})};var k=function(e){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var f=this.createResolveAndReject_();try{e(f.resolve,f.reject)}catch(ia){f.reject(ia)}};k.prototype.createResolveAndReject_=
|
|
function(){function e(e){return function(t){k||(k=!0,e.call(f,t))}}var f=this,k=!1;return{resolve:e(this.resolveTo_),reject:e(this.reject_)}};k.prototype.resolveTo_=function(e){if(e===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof k)this.settleSameAsPromise_(e);else{a:switch(typeof e){case "object":var f=null!=e;break a;case "function":f=!0;break a;default:f=!1}f?this.resolveToNonPromiseObj_(e):this.fulfill_(e)}};k.prototype.resolveToNonPromiseObj_=function(e){var f=
|
|
void 0;try{f=e.then}catch(ia){this.reject_(ia);return}"function"==typeof f?this.settleSameAsThenable_(f,e):this.fulfill_(e)};k.prototype.reject_=function(e){this.settle_(2,e)};k.prototype.fulfill_=function(e){this.settle_(1,e)};k.prototype.settle_=function(e,f){if(0!=this.state_)throw Error("Cannot settle("+e+", "+f|"): Promise already settled in state"+this.state_);this.state_=e;this.result_=f;this.executeOnSettledCallbacks_()};k.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var e=
|
|
this.onSettledCallbacks_,f=0;f<e.length;++f)e[f].call(),e[f]=null;this.onSettledCallbacks_=null}};var R=new m;k.prototype.settleSameAsPromise_=function(e){var f=this.createResolveAndReject_();e.callWhenSettled_(f.resolve,f.reject)};k.prototype.settleSameAsThenable_=function(e,f){var k=this.createResolveAndReject_();try{e.call(f,k.resolve,k.reject)}catch(qa){k.reject(qa)}};k.prototype.then=function(e,f){function m(e,f){return"function"==typeof e?function(f){try{t(e(f))}catch(ra){ja(ra)}}:f}var t,ja,
|
|
A=new k(function(e,f){t=e;ja=f});this.callWhenSettled_(m(e,t),m(f,ja));return A};k.prototype.catch=function(e){return this.then(void 0,e)};k.prototype.callWhenSettled_=function(e,f){function k(){switch(m.state_){case 1:e(m.result_);break;case 2:f(m.result_);break;default:throw Error("Unexpected state: "+m.state_);}}var m=this;null==this.onSettledCallbacks_?R.asyncExecute(k):this.onSettledCallbacks_.push(function(){R.asyncExecute(k)})};k.resolve=f;k.reject=function(e){return new k(function(f,k){k(e)})};
|
|
k.race=function(e){return new k(function(k,m){for(var t=$jscomp.makeIterator(e),A=t.next();!A.done;A=t.next())f(A.value).callWhenSettled_(k,m)})};k.all=function(e){var m=$jscomp.makeIterator(e),t=m.next();return t.done?f([]):new k(function(e,k){function A(f){return function(k){ba[f]=k;R--;0==R&&e(ba)}}var ba=[],R=0;do ba.push(void 0),R++,f(t.value).callWhenSettled_(A(ba.length-1),k),t=m.next();while(!t.done)})};return k},"es6","es3");
|
|
var DracoDecoderModule=function(e){function m(a){eval.call(null,a)}function f(a,b){a||M("Assertion failed: "+b)}function A(c){var b=a["_"+c];if(!b)try{b=eval("_"+c)}catch(d){}f(b,"Cannot call unknown function "+c+" (perhaps LLVM optimizations or closure removed it?)");return b}function k(a,b,d){b=b||"i8";"*"===b.charAt(b.length-1)&&(b="i32");switch(b){case "i1":return N[a>>0];case "i8":return N[a>>0];case "i16":return sa[a>>1];case "i32":return u[a>>2];case "i64":return u[a>>2];case "float":return ya[a>>
|
|
2];case "double":return za[a>>3];default:M("invalid type for setValue: "+b)}return null}function R(a,b,d,g){if("number"===typeof a){var c=!0;var e=a}else c=!1,e=a.length;var S="string"===typeof b?b:null;d=4==d?g:["function"===typeof la?la:n.staticAlloc,n.stackAlloc,n.staticAlloc,n.dynamicAlloc][void 0===d?2:d](Math.max(e,S?1:b.length));if(c){g=d;f(0==(d&3));for(a=d+(e&-4);g<a;g+=4)u[g>>2]=0;for(a=d+e;g<a;)N[g++>>0]=0;return d}if("i8"===S)return a.subarray||a.slice?G.set(a,d):G.set(new Uint8Array(a),
|
|
d),d;g=0;for(var k,m;g<e;){var h=a[g];"function"===typeof h&&(h=n.getFunctionIndex(h));c=S||b[g];if(0===c)g++;else{"i64"==c&&(c="i32");var l=d+g,ea=c;ea=ea||"i8";"*"===ea.charAt(ea.length-1)&&(ea="i32");switch(ea){case "i1":N[l>>0]=h;break;case "i8":N[l>>0]=h;break;case "i16":sa[l>>1]=h;break;case "i32":u[l>>2]=h;break;case "i64":tempI64=[h>>>0,(tempDouble=h,1<=+qb(tempDouble)?0<tempDouble?(rb(+sb(tempDouble/4294967296),4294967295)|0)>>>0:~~+tb((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)];
|
|
u[l>>2]=tempI64[0];u[l+4>>2]=tempI64[1];break;case "float":ya[l>>2]=h;break;case "double":za[l>>3]=h;break;default:M("invalid type for setValue: "+ea)}m!==c&&(k=n.getNativeTypeSize(c),m=c);g+=k}}return d}function t(c,b){if(0===b||!c)return"";for(var d=0,g,e=0;;){g=G[c+e>>0];d|=g;if(0==g&&!b)break;e++;if(b&&e==b)break}b||(b=e);g="";if(128>d){for(;0<b;)d=String.fromCharCode.apply(String,G.subarray(c,c+Math.min(b,1024))),g=g?g+d:d,c+=1024,b-=1024;return g}return a.UTF8ToString(c)}function Ea(a,b,d,g){if(!(0<
|
|
g))return 0;var c=d;g=d+g-1;for(var e=0;e<a.length;++e){var f=a.charCodeAt(e);55296<=f&&57343>=f&&(f=65536+((f&1023)<<10)|a.charCodeAt(++e)&1023);if(127>=f){if(d>=g)break;b[d++]=f}else{if(2047>=f){if(d+1>=g)break;b[d++]=192|f>>6}else{if(65535>=f){if(d+2>=g)break;b[d++]=224|f>>12}else{if(2097151>=f){if(d+3>=g)break;b[d++]=240|f>>18}else{if(67108863>=f){if(d+4>=g)break;b[d++]=248|f>>24}else{if(d+5>=g)break;b[d++]=252|f>>30;b[d++]=128|f>>24&63}b[d++]=128|f>>18&63}b[d++]=128|f>>12&63}b[d++]=128|f>>6&
|
|
63}b[d++]=128|f&63}}b[d]=0;return d-c}function ia(a){for(var b=0,c=0;c<a.length;++c){var g=a.charCodeAt(c);55296<=g&&57343>=g&&(g=65536+((g&1023)<<10)|a.charCodeAt(++c)&1023);127>=g?++b:b=2047>=g?b+2:65535>=g?b+3:2097151>=g?b+4:67108863>=g?b+5:b+6}return b}function qa(c){return c.replace(/__Z[\w\d_]+/g,function(b){a:{var c=a.___cxa_demangle||a.__cxa_demangle;if(c)try{var g=b.substr(1),e=ia(g)+1;var f=la(e);Ea(g,G,f,e);var h=la(4);var l=c(f,0,0,h);if(0===k(h,"i32")&&l){var m=t(l);break a}}catch(wd){}finally{f&&
|
|
Ia(f),h&&Ia(h),l&&Ia(l)}else n.warnOnce("warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling");m=b}return b===m?b:b+" ["+m+"]"})}function ja(){a:{var c=Error();if(!c.stack){try{throw Error(0);}catch(b){c=b}if(!c.stack){c="(no stack trace available)";break a}}c=c.stack.toString()}a.extraStackTrace&&(c+="\n"+a.extraStackTrace());return qa(c)}function Fa(a,b){0<a%b&&(a+=b-a%b);return a}function ba(){a.HEAP8=N=new Int8Array(H);a.HEAP16=sa=new Int16Array(H);a.HEAP32=u=new Int32Array(H);
|
|
a.HEAPU8=G=new Uint8Array(H);a.HEAPU16=Wa=new Uint16Array(H);a.HEAPU32=Xa=new Uint32Array(H);a.HEAPF32=ya=new Float32Array(H);a.HEAPF64=za=new Float64Array(H)}function Va(){var c=a.usingWasm?Ja:Ya,b=2147483648-c;if(u[X>>2]>b)return!1;var d=y;for(y=Math.max(y,ub);y<u[X>>2];)y=536870912>=y?Fa(2*y,c):Math.min(Fa((3*y+2147483648)/4,c),b);c=a.reallocBuffer(y);if(!c||c.byteLength!=y)return y=d,!1;a.buffer=H=c;ba();return!0}function ka(c){for(;0<c.length;){var b=c.shift();if("function"==typeof b)b();else{var d=
|
|
b.func;"number"===typeof d?void 0===b.arg?a.dynCall_v(d):a.dynCall_vi(d,b.arg):d(void 0===b.arg?null:b.arg)}}}function ra(a,b,d){d=0<d?d:ia(a)+1;d=Array(d);a=Ea(a,d,0,d.length);b&&(d.length=a);return d}function Za(c){fa++;a.monitorRunDependencies&&a.monitorRunDependencies(fa)}function $a(c){fa--;a.monitorRunDependencies&&a.monitorRunDependencies(fa);0==fa&&(null!==Ka&&(clearInterval(Ka),Ka=null),ta&&(c=ta,ta=null,c()))}function ma(){return!!ma.uncaught_exception}function ua(){var c=C.last;if(!c)return(n.setTempRet0(0),
|
|
0)|0;var b=C.infos[c],d=b.type;if(!d)return(n.setTempRet0(0),c)|0;var g=Array.prototype.slice.call(arguments);a.___cxa_is_pointer_type(d);ua.buffer||(ua.buffer=la(4));u[ua.buffer>>2]=c;c=ua.buffer;for(var e=0;e<g.length;e++)if(g[e]&&a.___cxa_can_catch(g[e],d,c))return c=u[c>>2],b.adjusted=c,(n.setTempRet0(g[e]),c)|0;c=u[c>>2];return(n.setTempRet0(d),c)|0}function va(c,b){va.seen||(va.seen={});c in va.seen||(a.dynCall_v(b),va.seen[c]=1)}function ca(c,b){r.varargs=b;try{var d=r.get(),e=r.get(),h=r.get();
|
|
c=0;ca.buffer||(ca.buffers=[null,[],[]],ca.printChar=function(b,c){var d=ca.buffers[b];f(d);if(0===c||10===c){b=1===b?a.print:a.printErr;a:{for(var e=c=0;d[e];)++e;if(16<e-c&&d.subarray&&ab)c=ab.decode(d.subarray(c,e));else for(e="";;){var g=d[c++];if(!g){c=e;break a}if(g&128){var h=d[c++]&63;if(192==(g&224))e+=String.fromCharCode((g&31)<<6|h);else{var k=d[c++]&63;if(224==(g&240))g=(g&15)<<12|h<<6|k;else{var l=d[c++]&63;if(240==(g&248))g=(g&7)<<18|h<<12|k<<6|l;else{var m=d[c++]&63;if(248==(g&252))g=
|
|
(g&3)<<24|h<<18|k<<12|l<<6|m;else{var x=d[c++]&63;g=(g&1)<<30|h<<24|k<<18|l<<12|m<<6|x}}}65536>g?e+=String.fromCharCode(g):(g-=65536,e+=String.fromCharCode(55296|g>>10,56320|g&1023))}}else e+=String.fromCharCode(g)}}b(c);d.length=0}else d.push(c)});for(b=0;b<h;b++){for(var k=u[e+8*b>>2],l=u[e+(8*b+4)>>2],m=0;m<l;m++)ca.printChar(d,G[k+m]);c+=l}return c}catch(Ha){return"undefined"!==typeof FS&&Ha instanceof FS.ErrnoError||M(Ha),-Ha.errno}}function na(a){this.name="ExitStatus";this.message="Program terminated with exit("+
|
|
a+")";this.status=a}function La(c){function b(){if(!a.calledRun&&(a.calledRun=!0,!oa)){Aa||(Aa=!0,ka(Ma));ka(bb);if(a.onRuntimeInitialized)a.onRuntimeInitialized();a._main&&cb&&a.callMain(c);if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)db.unshift(a.postRun.shift());ka(db)}}c=c||a.arguments;null===eb&&(eb=Date.now());if(!(0<fa)){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)fb.unshift(a.preRun.shift());ka(fb);0<fa||a.calledRun||
|
|
(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1);b()},1)):b())}}function gb(c,b){if(!b||!a.noExitRuntime){if(!a.noExitRuntime&&(oa=!0,T=vb,ka(hb),a.onExit))a.onExit(c);pa&&process.exit(c);a.quit(c,new na(c))}}function M(c){if(a.onAbort)a.onAbort(c);void 0!==c?(a.print(c),a.printErr(c),c=JSON.stringify(c)):c="";oa=!0;var b="abort("+c+") at "+ja()+"\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";ib&&
|
|
ib.forEach(function(a){b=a(b,c)});throw b;}function v(){}function E(a){return(a||v).__cache__}function Y(a,b){var c=E(b),g=c[a];if(g)return g;g=Object.create((b||v).prototype);g.ptr=a;return c[a]=g}function Z(a){if("string"===typeof a){a=ra(a);var b=h.alloc(a,N);h.copy(a,N,b);return b}return a}function D(){throw"cannot construct a Status, no constructor in IDL";}function I(){this.ptr=wb();E(I)[this.ptr]=this}function J(){this.ptr=xb();E(J)[this.ptr]=this}function p(){this.ptr=yb();E(p)[this.ptr]=
|
|
this}function O(){this.ptr=zb();E(O)[this.ptr]=this}function B(){this.ptr=Ab();E(B)[this.ptr]=this}function q(){this.ptr=Bb();E(q)[this.ptr]=this}function K(){this.ptr=Cb();E(K)[this.ptr]=this}function V(){this.ptr=Db();E(V)[this.ptr]=this}function P(){this.ptr=Eb();E(P)[this.ptr]=this}function l(){this.ptr=Fb();E(l)[this.ptr]=this}function F(){this.ptr=Gb();E(F)[this.ptr]=this}function aa(){throw"cannot construct a VoidPtr, no constructor in IDL";}function L(){this.ptr=Hb();E(L)[this.ptr]=this}function Q(){this.ptr=
|
|
Ib();E(Q)[this.ptr]=this}var a=e=e||{},jb=!1,kb=!1;a.onRuntimeInitialized=function(){jb=!0;if(kb&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){kb=!0;if(jb&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(a){if("string"!==typeof a)return!1;a=a.split(".");return 2>a.length||3<a.length?!1:1==a[0]&&0==a[1]?!0:0!=a[0]||10<a[1]?!1:!0};a||(a=("undefined"!==typeof e?e:null)||{});var wa={},da;for(da in a)a.hasOwnProperty(da)&&
|
|
(wa[da]=a[da]);var xa=!1,ha=!1,pa=!1,Ba=!1;if(a.ENVIRONMENT)if("WEB"===a.ENVIRONMENT)xa=!0;else if("WORKER"===a.ENVIRONMENT)ha=!0;else if("NODE"===a.ENVIRONMENT)pa=!0;else if("SHELL"===a.ENVIRONMENT)Ba=!0;else throw Error("The provided Module['ENVIRONMENT'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.");else xa="object"===typeof window,ha="function"===typeof importScripts,pa="object"===typeof process&&"function"===typeof require&&!xa&&!ha,Ba=!xa&&!pa&&!ha;if(pa){a.print||(a.print=
|
|
console.log);a.printErr||(a.printErr=console.warn);var Na,Oa;a.read=function(a,b){Na||(Na=require("fs"));Oa||(Oa=require("path"));a=Oa.normalize(a);a=Na.readFileSync(a);return b?a:a.toString()};a.readBinary=function(c){c=a.read(c,!0);c.buffer||(c=new Uint8Array(c));f(c.buffer);return c};a.load=function(a){m(read(a))};a.thisProgram||(a.thisProgram=1<process.argv.length?process.argv[1].replace(/\\/g,"/"):"unknown-program");a.arguments=process.argv.slice(2);"undefined"!==typeof module&&(module.exports=
|
|
a);process.on("uncaughtException",function(a){if(!(a instanceof na))throw a;});a.inspect=function(){return"[Emscripten Module object]"}}else if(Ba)a.print||(a.print=print),"undefined"!=typeof printErr&&(a.printErr=printErr),a.read="undefined"!=typeof read?read:function(){throw"no read() available";},a.readBinary=function(a){if("function"===typeof readbuffer)return new Uint8Array(readbuffer(a));a=read(a,"binary");f("object"===typeof a);return a},"undefined"!=typeof scriptArgs?a.arguments=scriptArgs:
|
|
"undefined"!=typeof arguments&&(a.arguments=arguments),"function"===typeof quit&&(a.quit=function(a,b){quit(a)});else if(xa||ha)a.read=function(a){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);return b.responseText},ha&&(a.readBinary=function(a){var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}),a.readAsync=function(a,b,d){var c=new XMLHttpRequest;c.open("GET",a,!0);c.responseType="arraybuffer";c.onload=function(){200==
|
|
c.status||0==c.status&&c.response?b(c.response):d()};c.onerror=d;c.send(null)},"undefined"!=typeof arguments&&(a.arguments=arguments),"undefined"!==typeof console?(a.print||(a.print=function(a){console.log(a)}),a.printErr||(a.printErr=function(a){console.warn(a)})):a.print||(a.print=function(a){}),ha&&(a.load=importScripts),"undefined"===typeof a.setWindowTitle&&(a.setWindowTitle=function(a){document.title=a});else throw"Unknown runtime environment. Where are we?";!a.load&&a.read&&(a.load=function(c){m(a.read(c))});
|
|
a.print||(a.print=function(){});a.printErr||(a.printErr=a.print);a.arguments||(a.arguments=[]);a.thisProgram||(a.thisProgram="./this.program");a.quit||(a.quit=function(a,b){throw b;});a.print=a.print;a.printErr=a.printErr;a.preRun=[];a.postRun=[];for(da in wa)wa.hasOwnProperty(da)&&(a[da]=wa[da]);wa=void 0;var n={setTempRet0:function(a){return tempRet0=a},getTempRet0:function(){return tempRet0},stackSave:function(){return T},stackRestore:function(a){T=a},getNativeTypeSize:function(a){switch(a){case "i1":case "i8":return 1;
|
|
case "i16":return 2;case "i32":return 4;case "i64":return 8;case "float":return 4;case "double":return 8;default:return"*"===a[a.length-1]?n.QUANTUM_SIZE:"i"===a[0]?(a=parseInt(a.substr(1)),f(0===a%8),a/8):0}},getNativeFieldSize:function(a){return Math.max(n.getNativeTypeSize(a),n.QUANTUM_SIZE)},STACK_ALIGN:16,prepVararg:function(a,b){"double"===b||"i64"===b?a&7&&(f(4===(a&7)),a+=4):f(0===(a&3));return a},getAlignSize:function(a,b,d){return d||"i64"!=a&&"double"!=a?a?Math.min(b||(a?n.getNativeFieldSize(a):
|
|
0),n.QUANTUM_SIZE):Math.min(b,8):8},dynCall:function(c,b,d){return d&&d.length?a["dynCall_"+c].apply(null,[b].concat(d)):a["dynCall_"+c].call(null,b)},functionPointers:[],addFunction:function(a){for(var b=0;b<n.functionPointers.length;b++)if(!n.functionPointers[b])return n.functionPointers[b]=a,2*(1+b);throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS.";},removeFunction:function(a){n.functionPointers[(a-2)/2]=null},warnOnce:function(c){n.warnOnce.shown||
|
|
(n.warnOnce.shown={});n.warnOnce.shown[c]||(n.warnOnce.shown[c]=1,a.printErr(c))},funcWrappers:{},getFuncWrapper:function(a,b){f(b);n.funcWrappers[b]||(n.funcWrappers[b]={});var c=n.funcWrappers[b];c[a]||(c[a]=1===b.length?function(){return n.dynCall(b,a)}:2===b.length?function(c){return n.dynCall(b,a,[c])}:function(){return n.dynCall(b,a,Array.prototype.slice.call(arguments))});return c[a]},getCompilerSetting:function(a){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work";
|
|
},stackAlloc:function(a){var b=T;T=T+a|0;T=T+15&-16;return b},staticAlloc:function(a){var b=W;W=W+a|0;W=W+15&-16;return b},dynamicAlloc:function(a){var b=u[X>>2];a=(b+a+15|0)&-16;u[X>>2]=a;return a>=y&&!Va()?(u[X>>2]=b,0):b},alignMemory:function(a,b){return Math.ceil(a/(b?b:16))*(b?b:16)},makeBigInt:function(a,b,d){return d?+(a>>>0)+4294967296*+(b>>>0):+(a>>>0)+4294967296*+(b|0)},GLOBAL_BASE:1024,QUANTUM_SIZE:4,__dummy__:0},oa=0;(function(){function a(a){a=a.toString().match(e).slice(1);return{arguments:a[0],
|
|
body:a[1],returnValue:a[2]}}function b(){if(!f){f={};for(var b in d)d.hasOwnProperty(b)&&(f[b]=a(d[b]))}}var d={stackSave:function(){n.stackSave()},stackRestore:function(){n.stackRestore()},arrayToC:function(a){var b=n.stackAlloc(a.length);N.set(a,b);return b},stringToC:function(a){var b=0;if(null!==a&&void 0!==a&&0!==a){var c=(a.length<<2)+1;b=n.stackAlloc(c);Ea(a,G,b,c)}return b}},e=/^function\s*[a-zA-Z$_0-9]*\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/,f=null;cwrap=function(c,
|
|
d,e){e=e||[];var g=A(c);c=e.every(function(a){return"number"===a});var h="string"!==d;if(h&&c)return g;var k=e.map(function(a,b){return"$"+b});d="(function("+k.join(",")+") {";var l=e.length;if(!c){b();d+="var stack = "+f.stackSave.body+";";for(var m=0;m<l;m++){var n=k[m],x=e[m];"number"!==x&&(x=f[x+"ToC"],d+="var "+x.arguments+" = "+n+";",d+=x.body+";",d+=n+"=("+x.returnValue+");")}}e=a(function(){return g}).returnValue;d+="var ret = "+e+"("+k.join(",")+");";h||(e=a(function(){return t}).returnValue,
|
|
d+="ret = "+e+"(ret);");c||(b(),d+=f.stackRestore.body.replace("()","(stack)")+";");return eval(d+"return ret})")}})();var ab="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0;"undefined"!==typeof TextDecoder&&new TextDecoder("utf-16le");var Ja=65536,Ya=16777216,ub=16777216,N,G,sa,Wa,u,Xa,ya,za,W,Pa,T,Ca,Qa,X;var Ra=W=Pa=T=Ca=Qa=X=0;a.reallocBuffer||(a.reallocBuffer=function(a){try{if(ArrayBuffer.transfer)var b=ArrayBuffer.transfer(H,a);else{var c=N;b=new ArrayBuffer(a);(new Int8Array(b)).set(c)}}catch(g){return!1}return Jb(b)?
|
|
b:!1});try{var Sa=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get);Sa(new ArrayBuffer(4))}catch(c){Sa=function(a){return a.byteLength}}var Ta=a.TOTAL_STACK||5242880,y=a.TOTAL_MEMORY||16777216;y<Ta&&a.printErr("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+y+"! (TOTAL_STACK="+Ta+")");if(a.buffer)var H=a.buffer;else"object"===typeof WebAssembly&&"function"===typeof WebAssembly.Memory?(a.wasmMemory=new WebAssembly.Memory({initial:y/Ja}),H=
|
|
a.wasmMemory.buffer):H=new ArrayBuffer(y);ba();u[0]=1668509029;sa[1]=25459;if(115!==G[2]||99!==G[3])throw"Runtime error: expected the system to be little-endian!";a.HEAP=void 0;a.buffer=H;a.HEAP8=N;a.HEAP16=sa;a.HEAP32=u;a.HEAPU8=G;a.HEAPU16=Wa;a.HEAPU32=Xa;a.HEAPF32=ya;a.HEAPF64=za;var fb=[],Ma=[],bb=[],hb=[],db=[],Aa=!1;Math.imul&&-5===Math.imul(4294967295,5)||(Math.imul=function(a,b){var c=a&65535,e=b&65535;return c*e+((a>>>16)*e+c*(b>>>16)<<16)|0});Math.imul=Math.imul;if(!Math.fround){var lb=
|
|
new Float32Array(1);Math.fround=function(a){lb[0]=a;return lb[0]}}Math.fround=Math.fround;Math.clz32||(Math.clz32=function(a){a>>>=0;for(var b=0;32>b;b++)if(a&1<<31-b)return b;return 32});Math.clz32=Math.clz32;Math.trunc||(Math.trunc=function(a){return 0>a?Math.ceil(a):Math.floor(a)});Math.trunc=Math.trunc;var qb=Math.abs,tb=Math.ceil,sb=Math.floor,rb=Math.min,fa=0,Ka=null,ta=null;a.preloadedImages={};a.preloadedAudios={};var U=null;(function(c){function b(a,b){var c=t;if(0>a.indexOf("."))c=(c||{})[a];
|
|
else{var d=a.split(".");c=(c||{})[d[0]];c=(c||{})[d[1]]}b&&(c=(c||{})[b]);void 0===c&&M("bad lookupImport to ("+a+")."+b);return c}function d(b){var d=c.buffer;b.byteLength<d.byteLength&&c.printErr("the new buffer in mergeMemory is smaller than the previous one. in native wasm, we should grow memory here");d=new Int8Array(d);var e=new Int8Array(b);U||d.set(e.subarray(c.STATIC_BASE,c.STATIC_BASE+c.STATIC_BUMP),c.STATIC_BASE);e.set(d);a.buffer=H=b;ba()}function e(){try{if(c.wasmBinary){var a=c.wasmBinary;
|
|
a=new Uint8Array(a)}else if(c.readBinary)a=c.readBinary(p);else throw"on the web, we need the wasm binary to be preloaded and set on Module['wasmBinary']. emcc.py will do that for you when generating HTML (but not JS)";return a}catch(Kb){M(Kb)}}function h(){return c.wasmBinary||"function"!==typeof fetch?new Promise(function(a,b){a(e())}):fetch(p,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+p+"'";return a.arrayBuffer()})}function k(a,b,d){if("function"!==
|
|
typeof c.asm||c.asm===y)c.asmPreload?c.asm=c.asmPreload:eval(c.read(v));return"function"!==typeof c.asm?(c.printErr("asm evalling did not set the module properly"),!1):c.asm(a,b,d)}function l(a,b,e){function g(a){u=a.exports;u.memory&&d(u.memory);c.asm=u;c.usingWasm=!0;$a("wasm-instantiate")}if("object"!==typeof WebAssembly)return c.printErr("no native wasm support detected"),!1;if(!(c.wasmMemory instanceof WebAssembly.Memory))return c.printErr("no native wasm Memory in use"),!1;b.memory=c.wasmMemory;
|
|
t.global={NaN:NaN,Infinity:Infinity};t["global.Math"]=a.Math;t.env=b;Za("wasm-instantiate");if(c.instantiateWasm)try{return c.instantiateWasm(t,g)}catch(Lb){return c.printErr("Module.instantiateWasm callback failed with error: "+Lb),!1}h().then(function(a){return WebAssembly.instantiate(a,t)}).then(function(a){g(a.instance)}).catch(function(a){c.printErr("failed to asynchronously prepare wasm: "+a);M(a)});return{}}var m=c.wasmJSMethod||"native-wasm";c.wasmJSMethod=m;var n=c.wasmTextFile||"draco_decoder.wast",
|
|
p=c.wasmBinaryFile||"draco_decoder.wasm",v=c.asmjsCodeFile||"draco_decoder.temp.asm.js";"function"===typeof c.locateFile&&(n=c.locateFile(n),p=c.locateFile(p),v=c.locateFile(v));var t={global:null,env:null,asm2wasm:{"f64-rem":function(a,b){return a%b},"f64-to-int":function(a){return a|0},"i32s-div":function(a,b){return(a|0)/(b|0)|0},"i32u-div":function(a,b){return(a>>>0)/(b>>>0)>>>0},"i32s-rem":function(a,b){return(a|0)%(b|0)|0},"i32u-rem":function(a,b){return(a>>>0)%(b>>>0)>>>0},"debugger":function(){debugger}},
|
|
parent:c},u=null;c.asmPreload=c.asm;var q=c.reallocBuffer,r=function(a){a=Fa(a,c.usingWasm?Ja:Ya);var b=c.buffer,d=b.byteLength;if(c.usingWasm)try{return-1!==c.wasmMemory.grow((a-d)/65536)?c.buffer=c.wasmMemory.buffer:null}catch(xd){return null}else return u.__growWasmMemory((a-d)/65536),c.buffer!==b?c.buffer:null};c.reallocBuffer=function(a){return"asmjs"===A?q(a):r(a)};var A="";c.asm=function(a,g,h){if(!g.table){var x=c.wasmTableSize;void 0===x&&(x=1024);var p=c.wasmMaxTableSize;g.table="object"===
|
|
typeof WebAssembly&&"function"===typeof WebAssembly.Table?void 0!==p?new WebAssembly.Table({initial:x,maximum:p,element:"anyfunc"}):new WebAssembly.Table({initial:x,element:"anyfunc"}):Array(x);c.wasmTable=g.table}g.memoryBase||(g.memoryBase=c.STATIC_BASE);g.tableBase||(g.tableBase=0);var q;x=m.split(",");for(p=0;p<x.length;p++){var w=x[p];A=w;if("native-wasm"===w){if(q=l(a,g,h))break}else if("asmjs"===w){if(q=k(a,g,h))break}else if("interpret-asm2wasm"===w||"interpret-s-expr"===w||"interpret-binary"===
|
|
w){q=a;var r=g;var y=h,z=w;if("function"!==typeof WasmJS)c.printErr("WasmJS not detected - polyfill not bundled?"),w=!1;else{w=WasmJS({});w.outside=c;w.info=t;w.lookupImport=b;f(y===c.buffer);t.global=q;t.env=r;f(y===c.buffer);r.memory=y;f(r.memory instanceof ArrayBuffer);w.providedTotalMemory=c.buffer.byteLength;q="interpret-binary"===z?e():c.read("interpret-asm2wasm"==z?v:n);if("interpret-asm2wasm"==z)r=w._malloc(q.length+1),w.writeAsciiToMemory(q,r),w._load_asm2wasm(r);else if("interpret-s-expr"===
|
|
z)r=w._malloc(q.length+1),w.writeAsciiToMemory(q,r),w._load_s_expr2wasm(r);else if("interpret-binary"===z)r=w._malloc(q.length),w.HEAPU8.set(q,r),w._load_binary2wasm(r,q.length);else throw"what? "+z;w._free(r);w._instantiate(r);c.newBuffer&&(d(c.newBuffer),c.newBuffer=null);w=u=w.asmExports}if(q=w)break}else M("bad method: "+w)}if(!q)throw"no binaryen method succeeded. consider enabling more options, like interpreting, if you want that: https://github.com/kripken/emscripten/wiki/WebAssembly#binaryen-methods";
|
|
return q};var y=c.asm})(a);Ra=n.GLOBAL_BASE;W=Ra+25296;Ma.push();U=0<=a.wasmJSMethod.indexOf("asmjs")||0<=a.wasmJSMethod.indexOf("interpret-asm2wasm")?"draco_decoder.js.mem":null;a.STATIC_BASE=Ra;a.STATIC_BUMP=25296;var Mb=W;W+=16;var C={last:0,caught:[],infos:{},deAdjust:function(a){if(!a||C.infos[a])return a;for(var b in C.infos)if(C.infos[b].adjusted===a)return b;return a},addRef:function(a){a&&C.infos[a].refcount++},decRef:function(c){if(c){var b=C.infos[c];f(0<b.refcount);b.refcount--;0!==b.refcount||
|
|
b.rethrown||(b.destructor&&a.dynCall_vi(b.destructor,c),delete C.infos[c],___cxa_free_exception(c))}},clearRef:function(a){a&&(C.infos[a].refcount=0)}};a._memset=Nb;a._memcpy=Ob;var r={varargs:0,get:function(a){r.varargs+=4;return u[r.varargs-4>>2]},getStr:function(){return t(r.get())},get64:function(){var a=r.get(),b=r.get();0<=a?f(0===b):f(-1===b);return a},getZero:function(){f(0===r.get())}},Da={};a._sbrk=Pb;a._memmove=Qb;var Ua=1;a._llvm_bswap_i32=Rb;hb.push(function(){var c=a._fflush;c&&c(0);
|
|
if(c=ca.printChar){var b=ca.buffers;b[1].length&&c(1,10);b[2].length&&c(2,10)}});X=R(1,"i32",2);Pa=T=n.alignMemory(W);Ca=Pa+Ta;Qa=n.alignMemory(Ca);u[X>>2]=Qa;a.wasmTableSize=644;a.wasmMaxTableSize=644;a.asmGlobalArg={Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array,NaN:NaN,Infinity:Infinity,byteLength:Sa};a.asmLibraryArg={abort:M,assert:f,enlargeMemory:Va,
|
|
getTotalMemory:function(){return y},abortOnCannotGrowMemory:function(){M("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+y+", (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ")},invoke_iiii:function(c,b,d,e){try{return a.dynCall_iiii(c,b,d,e)}catch(x){if("number"!==typeof x&&"longjmp"!==x)throw x;
|
|
a.setThrew(1,0)}},invoke_viiiii:function(c,b,d,e,f,h){try{a.dynCall_viiiii(c,b,d,e,f,h)}catch(S){if("number"!==typeof S&&"longjmp"!==S)throw S;a.setThrew(1,0)}},invoke_vi:function(c,b){try{a.dynCall_vi(c,b)}catch(d){if("number"!==typeof d&&"longjmp"!==d)throw d;a.setThrew(1,0)}},invoke_vii:function(c,b,d){try{a.dynCall_vii(c,b,d)}catch(g){if("number"!==typeof g&&"longjmp"!==g)throw g;a.setThrew(1,0)}},invoke_iiiiiii:function(c,b,d,e,f,h,k){try{return a.dynCall_iiiiiii(c,b,d,e,f,h,k)}catch(z){if("number"!==
|
|
typeof z&&"longjmp"!==z)throw z;a.setThrew(1,0)}},invoke_ii:function(c,b){try{return a.dynCall_ii(c,b)}catch(d){if("number"!==typeof d&&"longjmp"!==d)throw d;a.setThrew(1,0)}},invoke_viii:function(c,b,d,e){try{a.dynCall_viii(c,b,d,e)}catch(x){if("number"!==typeof x&&"longjmp"!==x)throw x;a.setThrew(1,0)}},invoke_v:function(c){try{a.dynCall_v(c)}catch(b){if("number"!==typeof b&&"longjmp"!==b)throw b;a.setThrew(1,0)}},invoke_viiiiii:function(c,b,d,e,f,h,k){try{a.dynCall_viiiiii(c,b,d,e,f,h,k)}catch(z){if("number"!==
|
|
typeof z&&"longjmp"!==z)throw z;a.setThrew(1,0)}},invoke_iii:function(c,b,d){try{return a.dynCall_iii(c,b,d)}catch(g){if("number"!==typeof g&&"longjmp"!==g)throw g;a.setThrew(1,0)}},invoke_viiii:function(c,b,d,e,f){try{a.dynCall_viiii(c,b,d,e,f)}catch(Ga){if("number"!==typeof Ga&&"longjmp"!==Ga)throw Ga;a.setThrew(1,0)}},_pthread_getspecific:function(a){return Da[a]||0},___syscall54:function(a,b){r.varargs=b;return 0},_pthread_setspecific:function(a,b){if(!(a in Da))return 22;Da[a]=b;return 0},___cxa_throw:function(a,
|
|
b,d){C.infos[a]={ptr:a,adjusted:a,type:b,destructor:d,refcount:0,caught:!1,rethrown:!1};C.last=a;"uncaught_exception"in ma?ma.uncaught_exception++:ma.uncaught_exception=1;throw a+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.";},___gxx_personality_v0:function(){},_abort:function(){a.abort()},___setErrNo:function(c){a.___errno_location&&(u[a.___errno_location()>>2]=c);return c},___syscall6:function(a,
|
|
b){r.varargs=b;try{var c=r.getStreamFromFD();FS.close(c);return 0}catch(g){return"undefined"!==typeof FS&&g instanceof FS.ErrnoError||M(g),-g.errno}},___cxa_begin_catch:function(a){var b=C.infos[a];b&&!b.caught&&(b.caught=!0,ma.uncaught_exception--);b&&(b.rethrown=!1);C.caught.push(a);C.addRef(C.deAdjust(a));return a},___syscall146:ca,_pthread_once:va,_emscripten_memcpy_big:function(a,b,d){G.set(G.subarray(b,b+d),a);return a},_pthread_key_create:function(a,b){if(0==a)return 22;u[a>>2]=Ua;Da[Ua]=0;
|
|
Ua++;return 0},___syscall140:function(a,b){r.varargs=b;try{var d=r.getStreamFromFD();r.get();var c=r.get(),e=r.get(),f=r.get();FS.llseek(d,c,f);u[e>>2]=d.position;d.getdents&&0===c&&0===f&&(d.getdents=null);return 0}catch(S){return"undefined"!==typeof FS&&S instanceof FS.ErrnoError||M(S),-S.errno}},___resumeException:function(a){C.last||(C.last=a);throw a+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.";
|
|
},___cxa_find_matching_catch:ua,___assert_fail:function(a,b,d,e){oa=!0;throw"Assertion failed: "+t(a)+", at: "+[b?t(b):"unknown filename",d,e?t(e):"unknown function"]+" at "+ja();},___cxa_pure_virtual:function(){oa=!0;throw"Pure virtual function called!";},___cxa_allocate_exception:function(a){return la(a)},__ZSt18uncaught_exceptionv:ma,DYNAMICTOP_PTR:X,tempDoublePtr:Mb,ABORT:oa,STACKTOP:T,STACK_MAX:Ca};var mb=a.asm(a.asmGlobalArg,a.asmLibraryArg,H);a.asm=mb;var Sb=a._emscripten_bind_Decoder_GetAttributeFloat_3=
|
|
function(){return a.asm._emscripten_bind_Decoder_GetAttributeFloat_3.apply(null,arguments)},Tb=a._emscripten_bind_PointAttribute_normalized_0=function(){return a.asm._emscripten_bind_PointAttribute_normalized_0.apply(null,arguments)},Ub=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return a.asm._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3.apply(null,arguments)},Vb=a._emscripten_bind_DecoderBuffer_Init_2=function(){return a.asm._emscripten_bind_DecoderBuffer_Init_2.apply(null,
|
|
arguments)},Wb=a._emscripten_bind_PointAttribute_size_0=function(){return a.asm._emscripten_bind_PointAttribute_size_0.apply(null,arguments)},Xb=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return a.asm._emscripten_enum_draco_GeometryAttribute_Type_POSITION.apply(null,arguments)},Pb=a._sbrk=function(){return a.asm._sbrk.apply(null,arguments)},Ob=a._memcpy=function(){return a.asm._memcpy.apply(null,arguments)};a.stackSave=function(){return a.asm.stackSave.apply(null,arguments)};
|
|
var Yb=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return a.asm._emscripten_enum_draco_GeometryAttribute_Type_INVALID.apply(null,arguments)},Zb=a._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return a.asm._emscripten_bind_Decoder_GetAttributeIdByName_2.apply(null,arguments)},$b=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return a.asm._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD.apply(null,arguments)},ac=a._emscripten_bind_Status_ok_0=
|
|
function(){return a.asm._emscripten_bind_Status_ok_0.apply(null,arguments)},bc=a._emscripten_bind_Mesh_num_faces_0=function(){return a.asm._emscripten_bind_Mesh_num_faces_0.apply(null,arguments)};a._emscripten_get_global_libc=function(){return a.asm._emscripten_get_global_libc.apply(null,arguments)};var cc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return a.asm._emscripten_bind_Decoder_DecodeBufferToPointCloud_2.apply(null,arguments)},dc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=
|
|
function(){return a.asm._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM.apply(null,arguments)};a.runPostSets=function(){return a.asm.runPostSets.apply(null,arguments)};var ec=a._emscripten_bind_Decoder_GetEncodedGeometryType_1=function(){return a.asm._emscripten_bind_Decoder_GetEncodedGeometryType_1.apply(null,arguments)};a.___cxa_can_catch=function(){return a.asm.___cxa_can_catch.apply(null,arguments)};var Ia=a._free=function(){return a.asm._free.apply(null,arguments)},fc=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=
|
|
function(){return a.asm._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE.apply(null,arguments)},gc=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return a.asm._emscripten_bind_GeometryAttribute___destroy___0.apply(null,arguments)},hc=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return a.asm._emscripten_bind_PointAttribute_byte_stride_0.apply(null,arguments)},Ib=a._emscripten_bind_Metadata_Metadata_0=function(){return a.asm._emscripten_bind_Metadata_Metadata_0.apply(null,
|
|
arguments)},ic=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return a.asm._emscripten_bind_AttributeQuantizationTransform_min_value_1.apply(null,arguments)},Fb=a._emscripten_bind_Decoder_Decoder_0=function(){return a.asm._emscripten_bind_Decoder_Decoder_0.apply(null,arguments)},jc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return a.asm._emscripten_bind_MetadataQuerier_GetStringEntry_2.apply(null,arguments)},kc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=
|
|
function(){return a.asm._emscripten_bind_MetadataQuerier_GetIntEntry_2.apply(null,arguments)},lc=a._emscripten_bind_Decoder___destroy___0=function(){return a.asm._emscripten_bind_Decoder___destroy___0.apply(null,arguments)},mc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=function(){return a.asm._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM.apply(null,arguments)};a.getTempRet0=function(){return a.asm.getTempRet0.apply(null,arguments)};
|
|
a.setThrew=function(){return a.asm.setThrew.apply(null,arguments)};var nc=a._emscripten_bind_MetadataQuerier_HasStringEntry_2=function(){return a.asm._emscripten_bind_MetadataQuerier_HasStringEntry_2.apply(null,arguments)},oc=a._emscripten_bind_AttributeTransformData___destroy___0=function(){return a.asm._emscripten_bind_AttributeTransformData___destroy___0.apply(null,arguments)},pc=a._emscripten_bind_PointAttribute_num_components_0=function(){return a.asm._emscripten_bind_PointAttribute_num_components_0.apply(null,
|
|
arguments)};a.___cxa_is_pointer_type=function(){return a.asm.___cxa_is_pointer_type.apply(null,arguments)};var zb=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=function(){return a.asm._emscripten_bind_AttributeTransformData_AttributeTransformData_0.apply(null,arguments)},qc=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return a.asm._emscripten_bind_AttributeQuantizationTransform___destroy___0.apply(null,arguments)};a.stackAlloc=function(){return a.asm.stackAlloc.apply(null,
|
|
arguments)};var rc=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return a.asm._emscripten_bind_DracoInt32Array___destroy___0.apply(null,arguments)},sc=a._emscripten_bind_Mesh_num_points_0=function(){return a.asm._emscripten_bind_Mesh_num_points_0.apply(null,arguments)},tc=a._emscripten_bind_PointCloud_num_attributes_0=function(){return a.asm._emscripten_bind_PointCloud_num_attributes_0.apply(null,arguments)},Gb=a._emscripten_bind_Mesh_Mesh_0=function(){return a.asm._emscripten_bind_Mesh_Mesh_0.apply(null,
|
|
arguments)},Bb=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return a.asm._emscripten_bind_MetadataQuerier_MetadataQuerier_0.apply(null,arguments)},uc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return a.asm._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3.apply(null,arguments)},vc=a._emscripten_bind_MetadataQuerier_HasDoubleEntry_2=function(){return a.asm._emscripten_bind_MetadataQuerier_HasDoubleEntry_2.apply(null,arguments)},wc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=
|
|
function(){return a.asm._emscripten_bind_MetadataQuerier_GetDoubleEntry_2.apply(null,arguments)},xc=a._emscripten_bind_Mesh_num_attributes_0=function(){return a.asm._emscripten_bind_Mesh_num_attributes_0.apply(null,arguments)},yc=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return a.asm._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0.apply(null,arguments)},zc=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return a.asm._emscripten_bind_AttributeOctahedronTransform___destroy___0.apply(null,
|
|
arguments)},Rb=a._llvm_bswap_i32=function(){return a.asm._llvm_bswap_i32.apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return a.asm._emscripten_bind_Decoder_GetAttributeMetadata_2.apply(null,arguments)},Bc=a._emscripten_bind_PointAttribute_unique_id_0=function(){return a.asm._emscripten_bind_PointAttribute_unique_id_0.apply(null,arguments)};a.establishStackSpace=function(){return a.asm.establishStackSpace.apply(null,arguments)};var Cc=a._emscripten_enum_draco_StatusCode_IO_ERROR=
|
|
function(){return a.asm._emscripten_enum_draco_StatusCode_IO_ERROR.apply(null,arguments)},Dc=a._emscripten_bind_MetadataQuerier_HasIntEntry_2=function(){return a.asm._emscripten_bind_MetadataQuerier_HasIntEntry_2.apply(null,arguments)},Ec=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=function(){return a.asm._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2.apply(null,arguments)},Fc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return a.asm._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD.apply(null,
|
|
arguments)},Eb=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return a.asm._emscripten_bind_DecoderBuffer_DecoderBuffer_0.apply(null,arguments)},Gc=a._emscripten_bind_DracoInt32Array_size_0=function(){return a.asm._emscripten_bind_DracoInt32Array_size_0.apply(null,arguments)},Hc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return a.asm._emscripten_bind_Decoder_SkipAttributeTransform_1.apply(null,arguments)},Ic=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=
|
|
function(){return a.asm._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM.apply(null,arguments)},Jc=a._emscripten_enum_draco_StatusCode_ERROR=function(){return a.asm._emscripten_enum_draco_StatusCode_ERROR.apply(null,arguments)},Kc=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return a.asm._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0.apply(null,arguments)},Lc=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=
|
|
function(){return a.asm._emscripten_enum_draco_StatusCode_INVALID_PARAMETER.apply(null,arguments)},Mc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return a.asm._emscripten_enum_draco_GeometryAttribute_Type_COLOR.apply(null,arguments)},Nc=a._emscripten_bind_VoidPtr___destroy___0=function(){return a.asm._emscripten_bind_VoidPtr___destroy___0.apply(null,arguments)},Nb=a._memset=function(){return a.asm._memset.apply(null,arguments)},Oc=a._emscripten_bind_PointAttribute_attribute_type_0=
|
|
function(){return a.asm._emscripten_bind_PointAttribute_attribute_type_0.apply(null,arguments)},Pc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return a.asm._emscripten_bind_MetadataQuerier___destroy___0.apply(null,arguments)},Qc=a._emscripten_bind_DracoInt32Array_GetValue_1=function(){return a.asm._emscripten_bind_DracoInt32Array_GetValue_1.apply(null,arguments)},Rc=a._emscripten_bind_DecoderBuffer___destroy___0=function(){return a.asm._emscripten_bind_DecoderBuffer___destroy___0.apply(null,
|
|
arguments)},Sc=a._emscripten_bind_Decoder_GetAttribute_2=function(){return a.asm._emscripten_bind_Decoder_GetAttribute_2.apply(null,arguments)},Tc=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return a.asm._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH.apply(null,arguments)};a.setTempRet0=function(){return a.asm.setTempRet0.apply(null,arguments)};var Hb=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return a.asm._emscripten_bind_DracoInt32Array_DracoInt32Array_0.apply(null,
|
|
arguments)},Uc=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return a.asm._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION.apply(null,arguments)},Vc=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return a.asm._emscripten_bind_DracoFloat32Array___destroy___0.apply(null,arguments)},Wc=a._emscripten_bind_PointCloud_num_points_0=function(){return a.asm._emscripten_bind_PointCloud_num_points_0.apply(null,arguments)},Xc=a._emscripten_bind_PointCloud___destroy___0=function(){return a.asm._emscripten_bind_PointCloud___destroy___0.apply(null,
|
|
arguments)},Db=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return a.asm._emscripten_bind_GeometryAttribute_GeometryAttribute_0.apply(null,arguments)},Yc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return a.asm._emscripten_bind_Decoder_GetFaceFromMesh_3.apply(null,arguments)},Zc=a._emscripten_bind_PointAttribute_data_type_0=function(){return a.asm._emscripten_bind_PointAttribute_data_type_0.apply(null,arguments)},$c=a._emscripten_bind_DracoFloat32Array_size_0=function(){return a.asm._emscripten_bind_DracoFloat32Array_size_0.apply(null,
|
|
arguments)},ad=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return a.asm._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1.apply(null,arguments)},la=a._malloc=function(){return a.asm._malloc.apply(null,arguments)},bd=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return a.asm._emscripten_bind_PointAttribute_GetAttributeTransformData_0.apply(null,arguments)},cd=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return a.asm._emscripten_bind_PointAttribute_byte_offset_0.apply(null,
|
|
arguments)},Jb=a._emscripten_replace_memory=function(){return a.asm._emscripten_replace_memory.apply(null,arguments)},Qb=a._memmove=function(){return a.asm._memmove.apply(null,arguments)},wb=a._emscripten_bind_PointCloud_PointCloud_0=function(){return a.asm._emscripten_bind_PointCloud_PointCloud_0.apply(null,arguments)},dd=a._emscripten_bind_Status_error_msg_0=function(){return a.asm._emscripten_bind_Status_error_msg_0.apply(null,arguments)},ed=a._emscripten_bind_Mesh___destroy___0=function(){return a.asm._emscripten_bind_Mesh___destroy___0.apply(null,
|
|
arguments)},fd=a._emscripten_bind_Metadata___destroy___0=function(){return a.asm._emscripten_bind_Metadata___destroy___0.apply(null,arguments)},gd=a._emscripten_bind_Status___destroy___0=function(){return a.asm._emscripten_bind_Status___destroy___0.apply(null,arguments)},hd=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return a.asm._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM.apply(null,arguments)},Ab=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=
|
|
function(){return a.asm._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0.apply(null,arguments)},id=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return a.asm._emscripten_bind_AttributeQuantizationTransform_range_0.apply(null,arguments)},jd=a._emscripten_bind_Decoder_GetAttributeId_2=function(){return a.asm._emscripten_bind_Decoder_GetAttributeId_2.apply(null,arguments)},kd=a._emscripten_enum_draco_StatusCode_OK=function(){return a.asm._emscripten_enum_draco_StatusCode_OK.apply(null,
|
|
arguments)},ld=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return a.asm._emscripten_bind_AttributeTransformData_transform_type_0.apply(null,arguments)},md=a._emscripten_bind_Status_code_0=function(){return a.asm._emscripten_bind_Status_code_0.apply(null,arguments)},xb=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return a.asm._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0.apply(null,arguments)},Cb=
|
|
a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return a.asm._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0.apply(null,arguments)},nd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return a.asm._emscripten_enum_draco_GeometryAttribute_Type_GENERIC.apply(null,arguments)},od=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return a.asm._emscripten_bind_Decoder_DecodeBufferToMesh_2.apply(null,arguments)},pd=a._emscripten_bind_DracoFloat32Array_GetValue_1=
|
|
function(){return a.asm._emscripten_bind_DracoFloat32Array_GetValue_1.apply(null,arguments)},yb=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return a.asm._emscripten_bind_PointAttribute_PointAttribute_0.apply(null,arguments)},qd=a._emscripten_bind_Decoder_GetMetadata_1=function(){return a.asm._emscripten_bind_Decoder_GetMetadata_1.apply(null,arguments)},rd=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return a.asm._emscripten_enum_draco_GeometryAttribute_Type_NORMAL.apply(null,
|
|
arguments)};a.stackRestore=function(){return a.asm.stackRestore.apply(null,arguments)};var sd=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return a.asm._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1.apply(null,arguments)},td=a._emscripten_bind_PointAttribute___destroy___0=function(){return a.asm._emscripten_bind_PointAttribute___destroy___0.apply(null,arguments)},ud=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return a.asm._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION.apply(null,
|
|
arguments)};a.dynCall_iiii=function(){return a.asm.dynCall_iiii.apply(null,arguments)};a.dynCall_viiiii=function(){return a.asm.dynCall_viiiii.apply(null,arguments)};a.dynCall_vi=function(){return a.asm.dynCall_vi.apply(null,arguments)};a.dynCall_vii=function(){return a.asm.dynCall_vii.apply(null,arguments)};a.dynCall_iiiiiii=function(){return a.asm.dynCall_iiiiiii.apply(null,arguments)};a.dynCall_ii=function(){return a.asm.dynCall_ii.apply(null,arguments)};a.dynCall_viii=function(){return a.asm.dynCall_viii.apply(null,
|
|
arguments)};a.dynCall_v=function(){return a.asm.dynCall_v.apply(null,arguments)};a.dynCall_viiiiii=function(){return a.asm.dynCall_viiiiii.apply(null,arguments)};a.dynCall_iii=function(){return a.asm.dynCall_iii.apply(null,arguments)};a.dynCall_viiii=function(){return a.asm.dynCall_viiii.apply(null,arguments)};n.stackAlloc=a.stackAlloc;n.stackSave=a.stackSave;n.stackRestore=a.stackRestore;n.establishStackSpace=a.establishStackSpace;n.setTempRet0=a.setTempRet0;n.getTempRet0=a.getTempRet0;a.asm=mb;
|
|
if(U)if("function"===typeof a.locateFile?U=a.locateFile(U):a.memoryInitializerPrefixURL&&(U=a.memoryInitializerPrefixURL+U),pa||Ba){var vd=a.readBinary(U);G.set(vd,n.GLOBAL_BASE)}else{var ob=function(){a.readAsync(U,nb,function(){throw"could not load memory initializer "+U;})};Za("memory initializer");var nb=function(c){c.byteLength&&(c=new Uint8Array(c));G.set(c,n.GLOBAL_BASE);a.memoryInitializerRequest&&delete a.memoryInitializerRequest.response;$a("memory initializer")};if(a.memoryInitializerRequest){var pb=
|
|
function(){var c=a.memoryInitializerRequest;200!==c.status&&0!==c.status?(console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+c.status+", retrying "+U),ob()):nb(c.response)};a.memoryInitializerRequest.response?setTimeout(pb,0):a.memoryInitializerRequest.addEventListener("load",pb)}else ob()}a.then=function(c){if(a.calledRun)c(a);else{var b=a.onRuntimeInitialized;a.onRuntimeInitialized=function(){b&&b();c(a)}}return a};na.prototype=Error();na.prototype.constructor=
|
|
na;var vb,eb=null;ta=function b(){a.calledRun||La();a.calledRun||(ta=b)};a.callMain=a.callMain=function(b){function d(){for(var a=0;3>a;a++)f.push(0)}b=b||[];Aa||(Aa=!0,ka(Ma));var e=b.length+1,f=[R(ra(a.thisProgram),"i8",0)];d();for(var h=0;h<e-1;h+=1)f.push(R(ra(b[h]),"i8",0)),d();f.push(0);f=R(f,"i32",0);try{var k=a._main(e,f,0);gb(k,!0)}catch(z){z instanceof na||("SimulateInfiniteLoop"==z?a.noExitRuntime=!0:((b=z)&&"object"===typeof z&&z.stack&&(b=[z,z.stack]),a.printErr("exception thrown: "+
|
|
b),a.quit(1,z)))}finally{}};a.run=a.run=La;a.exit=a.exit=gb;var ib=[];a.abort=a.abort=M;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0<a.preInit.length;)a.preInit.pop()();var cb=!0;a.noInitialRun&&(cb=!1);La();v.prototype=Object.create(v.prototype);v.prototype.constructor=v;v.prototype.__class__=v;v.__cache__={};a.WrapperObject=v;a.getCache=E;a.wrapPointer=Y;a.castObject=function(a,d){return Y(a.ptr,d)};a.NULL=Y(0);a.destroy=function(a){if(!a.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";
|
|
a.__destroy__();delete E(a.__class__)[a.ptr]};a.compare=function(a,d){return a.ptr===d.ptr};a.getPointer=function(a){return a.ptr};a.getClass=function(a){return a.__class__};var h={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(h.needed){for(var b=0;b<h.temps.length;b++)a._free(h.temps[b]);h.temps.length=0;a._free(h.buffer);h.buffer=0;h.size+=h.needed;h.needed=0}h.buffer||(h.size+=128,h.buffer=a._malloc(h.size),f(h.buffer));h.pos=0},alloc:function(b,d){f(h.buffer);b=b.length*d.BYTES_PER_ELEMENT;
|
|
b=b+7&-8;h.pos+b>=h.size?(f(0<b),h.needed+=b,d=a._malloc(b),h.temps.push(d)):(d=h.buffer+h.pos,h.pos+=b);return d},copy:function(a,d,e){switch(d.BYTES_PER_ELEMENT){case 2:e>>=1;break;case 4:e>>=2;break;case 8:e>>=3}for(var b=0;b<a.length;b++)d[e+b]=a[b]}};D.prototype=Object.create(v.prototype);D.prototype.constructor=D;D.prototype.__class__=D;D.__cache__={};a.Status=D;D.prototype.code=D.prototype.code=function(){return md(this.ptr)};D.prototype.ok=D.prototype.ok=function(){return!!ac(this.ptr)};D.prototype.error_msg=
|
|
D.prototype.error_msg=function(){return t(dd(this.ptr))};D.prototype.__destroy__=D.prototype.__destroy__=function(){gd(this.ptr)};I.prototype=Object.create(v.prototype);I.prototype.constructor=I;I.prototype.__class__=I;I.__cache__={};a.PointCloud=I;I.prototype.num_attributes=I.prototype.num_attributes=function(){return tc(this.ptr)};I.prototype.num_points=I.prototype.num_points=function(){return Wc(this.ptr)};I.prototype.__destroy__=I.prototype.__destroy__=function(){Xc(this.ptr)};J.prototype=Object.create(v.prototype);
|
|
J.prototype.constructor=J;J.prototype.__class__=J;J.__cache__={};a.AttributeOctahedronTransform=J;J.prototype.InitFromAttribute=J.prototype.InitFromAttribute=function(a){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);return!!ad(b,a)};J.prototype.quantization_bits=J.prototype.quantization_bits=function(){return yc(this.ptr)};J.prototype.__destroy__=J.prototype.__destroy__=function(){zc(this.ptr)};p.prototype=Object.create(v.prototype);p.prototype.constructor=p;p.prototype.__class__=p;p.__cache__=
|
|
{};a.PointAttribute=p;p.prototype.size=p.prototype.size=function(){return Wb(this.ptr)};p.prototype.GetAttributeTransformData=p.prototype.GetAttributeTransformData=function(){return Y(bd(this.ptr),O)};p.prototype.attribute_type=p.prototype.attribute_type=function(){return Oc(this.ptr)};p.prototype.data_type=p.prototype.data_type=function(){return Zc(this.ptr)};p.prototype.num_components=p.prototype.num_components=function(){return pc(this.ptr)};p.prototype.normalized=p.prototype.normalized=function(){return!!Tb(this.ptr)};
|
|
p.prototype.byte_stride=p.prototype.byte_stride=function(){return hc(this.ptr)};p.prototype.byte_offset=p.prototype.byte_offset=function(){return cd(this.ptr)};p.prototype.unique_id=p.prototype.unique_id=function(){return Bc(this.ptr)};p.prototype.__destroy__=p.prototype.__destroy__=function(){td(this.ptr)};O.prototype=Object.create(v.prototype);O.prototype.constructor=O;O.prototype.__class__=O;O.__cache__={};a.AttributeTransformData=O;O.prototype.transform_type=O.prototype.transform_type=function(){return ld(this.ptr)};
|
|
O.prototype.__destroy__=O.prototype.__destroy__=function(){oc(this.ptr)};B.prototype=Object.create(v.prototype);B.prototype.constructor=B;B.prototype.__class__=B;B.__cache__={};a.AttributeQuantizationTransform=B;B.prototype.InitFromAttribute=B.prototype.InitFromAttribute=function(a){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);return!!sd(b,a)};B.prototype.quantization_bits=B.prototype.quantization_bits=function(){return Kc(this.ptr)};B.prototype.min_value=B.prototype.min_value=function(a){var b=
|
|
this.ptr;a&&"object"===typeof a&&(a=a.ptr);return ic(b,a)};B.prototype.range=B.prototype.range=function(){return id(this.ptr)};B.prototype.__destroy__=B.prototype.__destroy__=function(){qc(this.ptr)};q.prototype=Object.create(v.prototype);q.prototype.constructor=q;q.prototype.__class__=q;q.__cache__={};a.MetadataQuerier=q;q.prototype.HasIntEntry=q.prototype.HasIntEntry=function(a,d){var b=this.ptr;h.prepare();a&&"object"===typeof a&&(a=a.ptr);d=d&&"object"===typeof d?d.ptr:Z(d);return!!Dc(b,a,d)};
|
|
q.prototype.GetIntEntry=q.prototype.GetIntEntry=function(a,d){var b=this.ptr;h.prepare();a&&"object"===typeof a&&(a=a.ptr);d=d&&"object"===typeof d?d.ptr:Z(d);return kc(b,a,d)};q.prototype.HasDoubleEntry=q.prototype.HasDoubleEntry=function(a,d){var b=this.ptr;h.prepare();a&&"object"===typeof a&&(a=a.ptr);d=d&&"object"===typeof d?d.ptr:Z(d);return!!vc(b,a,d)};q.prototype.GetDoubleEntry=q.prototype.GetDoubleEntry=function(a,d){var b=this.ptr;h.prepare();a&&"object"===typeof a&&(a=a.ptr);d=d&&"object"===
|
|
typeof d?d.ptr:Z(d);return wc(b,a,d)};q.prototype.HasStringEntry=q.prototype.HasStringEntry=function(a,d){var b=this.ptr;h.prepare();a&&"object"===typeof a&&(a=a.ptr);d=d&&"object"===typeof d?d.ptr:Z(d);return!!nc(b,a,d)};q.prototype.GetStringEntry=q.prototype.GetStringEntry=function(a,d){var b=this.ptr;h.prepare();a&&"object"===typeof a&&(a=a.ptr);d=d&&"object"===typeof d?d.ptr:Z(d);return t(jc(b,a,d))};q.prototype.__destroy__=q.prototype.__destroy__=function(){Pc(this.ptr)};K.prototype=Object.create(v.prototype);
|
|
K.prototype.constructor=K;K.prototype.__class__=K;K.__cache__={};a.DracoFloat32Array=K;K.prototype.GetValue=K.prototype.GetValue=function(a){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);return pd(b,a)};K.prototype.size=K.prototype.size=function(){return $c(this.ptr)};K.prototype.__destroy__=K.prototype.__destroy__=function(){Vc(this.ptr)};V.prototype=Object.create(v.prototype);V.prototype.constructor=V;V.prototype.__class__=V;V.__cache__={};a.GeometryAttribute=V;V.prototype.__destroy__=V.prototype.__destroy__=
|
|
function(){gc(this.ptr)};P.prototype=Object.create(v.prototype);P.prototype.constructor=P;P.prototype.__class__=P;P.__cache__={};a.DecoderBuffer=P;P.prototype.Init=P.prototype.Init=function(a,d){var b=this.ptr;h.prepare();if("object"==typeof a&&"object"===typeof a){var e=h.alloc(a,N);h.copy(a,N,e);a=e}d&&"object"===typeof d&&(d=d.ptr);Vb(b,a,d)};P.prototype.__destroy__=P.prototype.__destroy__=function(){Rc(this.ptr)};l.prototype=Object.create(v.prototype);l.prototype.constructor=l;l.prototype.__class__=
|
|
l;l.__cache__={};a.Decoder=l;l.prototype.GetEncodedGeometryType=l.prototype.GetEncodedGeometryType=function(a){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);return ec(b,a)};l.prototype.DecodeBufferToPointCloud=l.prototype.DecodeBufferToPointCloud=function(a,d){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);d&&"object"===typeof d&&(d=d.ptr);return Y(cc(b,a,d),D)};l.prototype.DecodeBufferToMesh=l.prototype.DecodeBufferToMesh=function(a,d){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);d&&"object"===
|
|
typeof d&&(d=d.ptr);return Y(od(b,a,d),D)};l.prototype.GetAttributeId=l.prototype.GetAttributeId=function(a,d){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);d&&"object"===typeof d&&(d=d.ptr);return jd(b,a,d)};l.prototype.GetAttributeIdByName=l.prototype.GetAttributeIdByName=function(a,d){var b=this.ptr;h.prepare();a&&"object"===typeof a&&(a=a.ptr);d=d&&"object"===typeof d?d.ptr:Z(d);return Zb(b,a,d)};l.prototype.GetAttributeIdByMetadataEntry=l.prototype.GetAttributeIdByMetadataEntry=function(a,
|
|
d,e){var b=this.ptr;h.prepare();a&&"object"===typeof a&&(a=a.ptr);d=d&&"object"===typeof d?d.ptr:Z(d);e=e&&"object"===typeof e?e.ptr:Z(e);return uc(b,a,d,e)};l.prototype.GetAttribute=l.prototype.GetAttribute=function(a,d){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);d&&"object"===typeof d&&(d=d.ptr);return Y(Sc(b,a,d),p)};l.prototype.GetMetadata=l.prototype.GetMetadata=function(a){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);return Y(qd(b,a),Q)};l.prototype.GetAttributeMetadata=l.prototype.GetAttributeMetadata=
|
|
function(a,d){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);d&&"object"===typeof d&&(d=d.ptr);return Y(Ac(b,a,d),Q)};l.prototype.GetFaceFromMesh=l.prototype.GetFaceFromMesh=function(a,d,e){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);d&&"object"===typeof d&&(d=d.ptr);e&&"object"===typeof e&&(e=e.ptr);return!!Yc(b,a,d,e)};l.prototype.GetTriangleStripsFromMesh=l.prototype.GetTriangleStripsFromMesh=function(a,d){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);d&&"object"===typeof d&&(d=d.ptr);
|
|
return Ec(b,a,d)};l.prototype.GetAttributeFloat=l.prototype.GetAttributeFloat=function(a,d,e){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);d&&"object"===typeof d&&(d=d.ptr);e&&"object"===typeof e&&(e=e.ptr);return!!Sb(b,a,d,e)};l.prototype.GetAttributeFloatForAllPoints=l.prototype.GetAttributeFloatForAllPoints=function(a,d,e){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);d&&"object"===typeof d&&(d=d.ptr);e&&"object"===typeof e&&(e=e.ptr);return!!Ub(b,a,d,e)};l.prototype.SkipAttributeTransform=
|
|
l.prototype.SkipAttributeTransform=function(a){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);Hc(b,a)};l.prototype.__destroy__=l.prototype.__destroy__=function(){lc(this.ptr)};F.prototype=Object.create(v.prototype);F.prototype.constructor=F;F.prototype.__class__=F;F.__cache__={};a.Mesh=F;F.prototype.num_faces=F.prototype.num_faces=function(){return bc(this.ptr)};F.prototype.num_attributes=F.prototype.num_attributes=function(){return xc(this.ptr)};F.prototype.num_points=F.prototype.num_points=function(){return sc(this.ptr)};
|
|
F.prototype.__destroy__=F.prototype.__destroy__=function(){ed(this.ptr)};aa.prototype=Object.create(v.prototype);aa.prototype.constructor=aa;aa.prototype.__class__=aa;aa.__cache__={};a.VoidPtr=aa;aa.prototype.__destroy__=aa.prototype.__destroy__=function(){Nc(this.ptr)};L.prototype=Object.create(v.prototype);L.prototype.constructor=L;L.prototype.__class__=L;L.__cache__={};a.DracoInt32Array=L;L.prototype.GetValue=L.prototype.GetValue=function(a){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);return Qc(b,
|
|
a)};L.prototype.size=L.prototype.size=function(){return Gc(this.ptr)};L.prototype.__destroy__=L.prototype.__destroy__=function(){rc(this.ptr)};Q.prototype=Object.create(v.prototype);Q.prototype.constructor=Q;Q.prototype.__class__=Q;Q.__cache__={};a.Metadata=Q;Q.prototype.__destroy__=Q.prototype.__destroy__=function(){fd(this.ptr)};(function(){function b(){a.OK=kd();a.ERROR=Jc();a.IO_ERROR=Cc();a.INVALID_PARAMETER=Lc();a.UNSUPPORTED_VERSION=ud();a.UNKNOWN_VERSION=Uc();a.INVALID_GEOMETRY_TYPE=fc();
|
|
a.POINT_CLOUD=$b();a.TRIANGULAR_MESH=Tc();a.ATTRIBUTE_INVALID_TRANSFORM=hd();a.ATTRIBUTE_NO_TRANSFORM=dc();a.ATTRIBUTE_QUANTIZATION_TRANSFORM=Ic();a.ATTRIBUTE_OCTAHEDRON_TRANSFORM=mc();a.INVALID=Yb();a.POSITION=Xb();a.NORMAL=rd();a.COLOR=Mc();a.TEX_COORD=Fc();a.GENERIC=nd()}a.calledRun?b():bb.unshift(b)})();if("function"===typeof a.onModuleParsed)a.onModuleParsed();return e};"object"===typeof module&&module.exports&&(module.exports=DracoDecoderModule);
|