draco_wasm_wrapper.js 83 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922
  1. var $jscomp = $jscomp || {}
  2. $jscomp.scope = {}
  3. $jscomp.arrayIteratorImpl = function (f) {
  4. var m = 0
  5. return function () {
  6. return m < f.length ? { done: !1, value: f[m++] } : { done: !0 }
  7. }
  8. }
  9. $jscomp.arrayIterator = function (f) {
  10. return { next: $jscomp.arrayIteratorImpl(f) }
  11. }
  12. $jscomp.makeIterator = function (f) {
  13. var m = 'undefined' != typeof Symbol && Symbol.iterator && f[Symbol.iterator]
  14. return m ? m.call(f) : $jscomp.arrayIterator(f)
  15. }
  16. $jscomp.getGlobal = function (f) {
  17. return 'undefined' != typeof window && window === f ? f : 'undefined' != typeof global && null != global ? global : f
  18. }
  19. $jscomp.global = $jscomp.getGlobal(this)
  20. $jscomp.ASSUME_ES5 = !1
  21. $jscomp.ASSUME_NO_NATIVE_MAP = !1
  22. $jscomp.ASSUME_NO_NATIVE_SET = !1
  23. $jscomp.SIMPLE_FROUND_POLYFILL = !1
  24. $jscomp.defineProperty =
  25. $jscomp.ASSUME_ES5 || 'function' == typeof Object.defineProperties
  26. ? Object.defineProperty
  27. : function (f, m, v) {
  28. f != Array.prototype && f != Object.prototype && (f[m] = v.value)
  29. }
  30. $jscomp.polyfill = function (f, m, v, t) {
  31. if (m) {
  32. v = $jscomp.global
  33. f = f.split('.')
  34. for (t = 0; t < f.length - 1; t++) {
  35. var h = f[t]
  36. h in v || (v[h] = {})
  37. v = v[h]
  38. }
  39. f = f[f.length - 1]
  40. t = v[f]
  41. m = m(t)
  42. m != t && null != m && $jscomp.defineProperty(v, f, { configurable: !0, writable: !0, value: m })
  43. }
  44. }
  45. $jscomp.FORCE_POLYFILL_PROMISE = !1
  46. $jscomp.polyfill(
  47. 'Promise',
  48. function (f) {
  49. function m() {
  50. this.batch_ = null
  51. }
  52. function v(e) {
  53. return e instanceof h
  54. ? e
  55. : new h(function (l, f) {
  56. l(e)
  57. })
  58. }
  59. if (f && !$jscomp.FORCE_POLYFILL_PROMISE) return f
  60. m.prototype.asyncExecute = function (e) {
  61. if (null == this.batch_) {
  62. this.batch_ = []
  63. var l = this
  64. this.asyncExecuteFunction(function () {
  65. l.executeBatch_()
  66. })
  67. }
  68. this.batch_.push(e)
  69. }
  70. var t = $jscomp.global.setTimeout
  71. m.prototype.asyncExecuteFunction = function (e) {
  72. t(e, 0)
  73. }
  74. m.prototype.executeBatch_ = function () {
  75. for (; this.batch_ && this.batch_.length; ) {
  76. var e = this.batch_
  77. this.batch_ = []
  78. for (var l = 0; l < e.length; ++l) {
  79. var f = e[l]
  80. e[l] = null
  81. try {
  82. f()
  83. } catch (z) {
  84. this.asyncThrow_(z)
  85. }
  86. }
  87. }
  88. this.batch_ = null
  89. }
  90. m.prototype.asyncThrow_ = function (e) {
  91. this.asyncExecuteFunction(function () {
  92. throw e
  93. })
  94. }
  95. var h = function (e) {
  96. this.state_ = 0
  97. this.result_ = void 0
  98. this.onSettledCallbacks_ = []
  99. var l = this.createResolveAndReject_()
  100. try {
  101. e(l.resolve, l.reject)
  102. } catch (S) {
  103. l.reject(S)
  104. }
  105. }
  106. h.prototype.createResolveAndReject_ = function () {
  107. function e(e) {
  108. return function (h) {
  109. f || ((f = !0), e.call(l, h))
  110. }
  111. }
  112. var l = this,
  113. f = !1
  114. return { resolve: e(this.resolveTo_), reject: e(this.reject_) }
  115. }
  116. h.prototype.resolveTo_ = function (e) {
  117. if (e === this) this.reject_(new TypeError('A Promise cannot resolve to itself'))
  118. else if (e instanceof h) this.settleSameAsPromise_(e)
  119. else {
  120. a: switch (typeof e) {
  121. case 'object':
  122. var l = null != e
  123. break a
  124. case 'function':
  125. l = !0
  126. break a
  127. default:
  128. l = !1
  129. }
  130. l ? this.resolveToNonPromiseObj_(e) : this.fulfill_(e)
  131. }
  132. }
  133. h.prototype.resolveToNonPromiseObj_ = function (e) {
  134. var l = void 0
  135. try {
  136. l = e.then
  137. } catch (S) {
  138. this.reject_(S)
  139. return
  140. }
  141. 'function' == typeof l ? this.settleSameAsThenable_(l, e) : this.fulfill_(e)
  142. }
  143. h.prototype.reject_ = function (e) {
  144. this.settle_(2, e)
  145. }
  146. h.prototype.fulfill_ = function (e) {
  147. this.settle_(1, e)
  148. }
  149. h.prototype.settle_ = function (e, l) {
  150. if (0 != this.state_) throw Error('Cannot settle(' + e + ', ' + l + '): Promise already settled in state' + this.state_)
  151. this.state_ = e
  152. this.result_ = l
  153. this.executeOnSettledCallbacks_()
  154. }
  155. h.prototype.executeOnSettledCallbacks_ = function () {
  156. if (null != this.onSettledCallbacks_) {
  157. for (var e = 0; e < this.onSettledCallbacks_.length; ++e) X.asyncExecute(this.onSettledCallbacks_[e])
  158. this.onSettledCallbacks_ = null
  159. }
  160. }
  161. var X = new m()
  162. h.prototype.settleSameAsPromise_ = function (e) {
  163. var l = this.createResolveAndReject_()
  164. e.callWhenSettled_(l.resolve, l.reject)
  165. }
  166. h.prototype.settleSameAsThenable_ = function (e, l) {
  167. var f = this.createResolveAndReject_()
  168. try {
  169. e.call(l, f.resolve, f.reject)
  170. } catch (z) {
  171. f.reject(z)
  172. }
  173. }
  174. h.prototype.then = function (e, f) {
  175. function l(e, f) {
  176. return 'function' == typeof e
  177. ? function (f) {
  178. try {
  179. m(e(f))
  180. } catch (p) {
  181. v(p)
  182. }
  183. }
  184. : f
  185. }
  186. var m,
  187. v,
  188. t = new h(function (e, f) {
  189. m = e
  190. v = f
  191. })
  192. this.callWhenSettled_(l(e, m), l(f, v))
  193. return t
  194. }
  195. h.prototype.catch = function (e) {
  196. return this.then(void 0, e)
  197. }
  198. h.prototype.callWhenSettled_ = function (e, f) {
  199. function l() {
  200. switch (h.state_) {
  201. case 1:
  202. e(h.result_)
  203. break
  204. case 2:
  205. f(h.result_)
  206. break
  207. default:
  208. throw Error('Unexpected state: ' + h.state_)
  209. }
  210. }
  211. var h = this
  212. null == this.onSettledCallbacks_ ? X.asyncExecute(l) : this.onSettledCallbacks_.push(l)
  213. }
  214. h.resolve = v
  215. h.reject = function (e) {
  216. return new h(function (f, h) {
  217. h(e)
  218. })
  219. }
  220. h.race = function (e) {
  221. return new h(function (f, h) {
  222. for (var l = $jscomp.makeIterator(e), m = l.next(); !m.done; m = l.next()) v(m.value).callWhenSettled_(f, h)
  223. })
  224. }
  225. h.all = function (e) {
  226. var f = $jscomp.makeIterator(e),
  227. m = f.next()
  228. return m.done
  229. ? v([])
  230. : new h(function (e, h) {
  231. function l(f) {
  232. return function (h) {
  233. t[f] = h
  234. z--
  235. 0 == z && e(t)
  236. }
  237. }
  238. var t = [],
  239. z = 0
  240. do t.push(void 0), z++, v(m.value).callWhenSettled_(l(t.length - 1), h), (m = f.next())
  241. while (!m.done)
  242. })
  243. }
  244. return h
  245. },
  246. 'es6',
  247. 'es3'
  248. )
  249. var DracoDecoderModule = (function () {
  250. var f = 'undefined' !== typeof document && document.currentScript ? document.currentScript.src : void 0
  251. 'undefined' !== typeof __filename && (f = f || __filename)
  252. return function (m) {
  253. function v(k) {
  254. return a.locateFile ? a.locateFile(k, M) : M + k
  255. }
  256. function t(a, c) {
  257. a || z('Assertion failed: ' + c)
  258. }
  259. function h(a, c, b) {
  260. var d = c + b
  261. for (b = c; a[b] && !(b >= d); ) ++b
  262. if (16 < b - c && a.subarray && xa) return xa.decode(a.subarray(c, b))
  263. for (d = ''; c < b; ) {
  264. var k = a[c++]
  265. if (k & 128) {
  266. var e = a[c++] & 63
  267. if (192 == (k & 224)) d += String.fromCharCode(((k & 31) << 6) | e)
  268. else {
  269. var f = a[c++] & 63
  270. k = 224 == (k & 240) ? ((k & 15) << 12) | (e << 6) | f : ((k & 7) << 18) | (e << 12) | (f << 6) | (a[c++] & 63)
  271. 65536 > k ? (d += String.fromCharCode(k)) : ((k -= 65536), (d += String.fromCharCode(55296 | (k >> 10), 56320 | (k & 1023))))
  272. }
  273. } else d += String.fromCharCode(k)
  274. }
  275. return d
  276. }
  277. function X(a, c) {
  278. return a ? h(ca, a, c) : ''
  279. }
  280. function e(a, c) {
  281. 0 < a % c && (a += c - (a % c))
  282. return a
  283. }
  284. function l(k) {
  285. ka = k
  286. a.HEAP8 = T = new Int8Array(k)
  287. a.HEAP16 = new Int16Array(k)
  288. a.HEAP32 = P = new Int32Array(k)
  289. a.HEAPU8 = ca = new Uint8Array(k)
  290. a.HEAPU16 = new Uint16Array(k)
  291. a.HEAPU32 = new Uint32Array(k)
  292. a.HEAPF32 = new Float32Array(k)
  293. a.HEAPF64 = new Float64Array(k)
  294. }
  295. function S(k) {
  296. for (; 0 < k.length; ) {
  297. var c = k.shift()
  298. if ('function' == typeof c) c()
  299. else {
  300. var b = c.func
  301. 'number' === typeof b ? (void 0 === c.arg ? a.dynCall_v(b) : a.dynCall_vi(b, c.arg)) : b(void 0 === c.arg ? null : c.arg)
  302. }
  303. }
  304. }
  305. function z(k) {
  306. if (a.onAbort) a.onAbort(k)
  307. k += ''
  308. ya(k)
  309. Y(k)
  310. za = !0
  311. throw new WebAssembly.RuntimeError('abort(' + k + '). Build with -s ASSERTIONS=1 for more info.')
  312. }
  313. function va(a) {
  314. return String.prototype.startsWith ? a.startsWith('data:application/octet-stream;base64,') : 0 === a.indexOf('data:application/octet-stream;base64,')
  315. }
  316. function wa() {
  317. try {
  318. if (da) return new Uint8Array(da)
  319. if (la) return la(U)
  320. throw 'both async and sync fetching of the wasm failed'
  321. } catch (k) {
  322. z(k)
  323. }
  324. }
  325. function Ma() {
  326. return da || (!ea && !Z) || 'function' !== typeof fetch
  327. ? new Promise(function (a, c) {
  328. a(wa())
  329. })
  330. : fetch(U, { credentials: 'same-origin' })
  331. .then(function (a) {
  332. if (!a.ok) throw "failed to load wasm binary file at '" + U + "'"
  333. return a.arrayBuffer()
  334. })
  335. .catch(function () {
  336. return wa()
  337. })
  338. }
  339. function ba() {
  340. if (!ba.strings) {
  341. var a = {
  342. USER: 'web_user',
  343. LOGNAME: 'web_user',
  344. PATH: '/',
  345. PWD: '/',
  346. HOME: '/home/web_user',
  347. LANG: (('object' === typeof navigator && navigator.languages && navigator.languages[0]) || 'C').replace('-', '_') + '.UTF-8',
  348. _: na,
  349. },
  350. c
  351. for (c in Aa) a[c] = Aa[c]
  352. var b = []
  353. for (c in a) b.push(c + '=' + a[c])
  354. ba.strings = b
  355. }
  356. return ba.strings
  357. }
  358. function ma(k) {
  359. function c() {
  360. if (!fa && ((fa = !0), !za)) {
  361. Ba = !0
  362. S(Ca)
  363. S(Da)
  364. if (a.onRuntimeInitialized) a.onRuntimeInitialized()
  365. if (a.postRun) for ('function' == typeof a.postRun && (a.postRun = [a.postRun]); a.postRun.length; ) Ea.unshift(a.postRun.shift())
  366. S(Ea)
  367. }
  368. }
  369. if (!(0 < aa)) {
  370. if (a.preRun) for ('function' == typeof a.preRun && (a.preRun = [a.preRun]); a.preRun.length; ) Fa.unshift(a.preRun.shift())
  371. S(Fa)
  372. 0 < aa ||
  373. (a.setStatus
  374. ? (a.setStatus('Running...'),
  375. setTimeout(function () {
  376. setTimeout(function () {
  377. a.setStatus('')
  378. }, 1)
  379. c()
  380. }, 1))
  381. : c())
  382. }
  383. }
  384. function p() {}
  385. function u(a) {
  386. return (a || p).__cache__
  387. }
  388. function N(a, c) {
  389. var b = u(c),
  390. d = b[a]
  391. if (d) return d
  392. d = Object.create((c || p).prototype)
  393. d.ptr = a
  394. return (b[a] = d)
  395. }
  396. function V(a) {
  397. if ('string' === typeof a) {
  398. for (var c = 0, b = 0; b < a.length; ++b) {
  399. var d = a.charCodeAt(b)
  400. 55296 <= d && 57343 >= d && (d = (65536 + ((d & 1023) << 10)) | (a.charCodeAt(++b) & 1023))
  401. 127 >= d ? ++c : (c = 2047 >= d ? c + 2 : 65535 >= d ? c + 3 : c + 4)
  402. }
  403. c = Array(c + 1)
  404. b = 0
  405. d = c.length
  406. if (0 < d) {
  407. d = b + d - 1
  408. for (var k = 0; k < a.length; ++k) {
  409. var e = a.charCodeAt(k)
  410. if (55296 <= e && 57343 >= e) {
  411. var f = a.charCodeAt(++k)
  412. e = (65536 + ((e & 1023) << 10)) | (f & 1023)
  413. }
  414. if (127 >= e) {
  415. if (b >= d) break
  416. c[b++] = e
  417. } else {
  418. if (2047 >= e) {
  419. if (b + 1 >= d) break
  420. c[b++] = 192 | (e >> 6)
  421. } else {
  422. if (65535 >= e) {
  423. if (b + 2 >= d) break
  424. c[b++] = 224 | (e >> 12)
  425. } else {
  426. if (b + 3 >= d) break
  427. c[b++] = 240 | (e >> 18)
  428. c[b++] = 128 | ((e >> 12) & 63)
  429. }
  430. c[b++] = 128 | ((e >> 6) & 63)
  431. }
  432. c[b++] = 128 | (e & 63)
  433. }
  434. }
  435. c[b] = 0
  436. }
  437. a = n.alloc(c, T)
  438. n.copy(c, T, a)
  439. }
  440. return a
  441. }
  442. function x() {
  443. throw 'cannot construct a Status, no constructor in IDL'
  444. }
  445. function A() {
  446. this.ptr = Oa()
  447. u(A)[this.ptr] = this
  448. }
  449. function B() {
  450. this.ptr = Pa()
  451. u(B)[this.ptr] = this
  452. }
  453. function C() {
  454. this.ptr = Qa()
  455. u(C)[this.ptr] = this
  456. }
  457. function D() {
  458. this.ptr = Ra()
  459. u(D)[this.ptr] = this
  460. }
  461. function E() {
  462. this.ptr = Sa()
  463. u(E)[this.ptr] = this
  464. }
  465. function q() {
  466. this.ptr = Ta()
  467. u(q)[this.ptr] = this
  468. }
  469. function J() {
  470. this.ptr = Ua()
  471. u(J)[this.ptr] = this
  472. }
  473. function w() {
  474. this.ptr = Va()
  475. u(w)[this.ptr] = this
  476. }
  477. function F() {
  478. this.ptr = Wa()
  479. u(F)[this.ptr] = this
  480. }
  481. function r() {
  482. this.ptr = Xa()
  483. u(r)[this.ptr] = this
  484. }
  485. function G() {
  486. this.ptr = Ya()
  487. u(G)[this.ptr] = this
  488. }
  489. function H() {
  490. this.ptr = Za()
  491. u(H)[this.ptr] = this
  492. }
  493. function O() {
  494. this.ptr = $a()
  495. u(O)[this.ptr] = this
  496. }
  497. function K() {
  498. this.ptr = ab()
  499. u(K)[this.ptr] = this
  500. }
  501. function g() {
  502. this.ptr = bb()
  503. u(g)[this.ptr] = this
  504. }
  505. function y() {
  506. this.ptr = cb()
  507. u(y)[this.ptr] = this
  508. }
  509. function Q() {
  510. throw 'cannot construct a VoidPtr, no constructor in IDL'
  511. }
  512. function I() {
  513. this.ptr = db()
  514. u(I)[this.ptr] = this
  515. }
  516. function L() {
  517. this.ptr = eb()
  518. u(L)[this.ptr] = this
  519. }
  520. m = m || {}
  521. var a = 'undefined' !== typeof m ? m : {},
  522. Ga = !1,
  523. Ha = !1
  524. a.onRuntimeInitialized = function () {
  525. Ga = !0
  526. if (Ha && 'function' === typeof a.onModuleLoaded) a.onModuleLoaded(a)
  527. }
  528. a.onModuleParsed = function () {
  529. Ha = !0
  530. if (Ga && 'function' === typeof a.onModuleLoaded) a.onModuleLoaded(a)
  531. }
  532. a.isVersionSupported = function (a) {
  533. if ('string' !== typeof a) return !1
  534. a = a.split('.')
  535. return 2 > a.length || 3 < a.length ? !1 : 1 == a[0] && 0 <= a[1] && 3 >= a[1] ? !0 : 0 != a[0] || 10 < a[1] ? !1 : !0
  536. }
  537. var ha = {},
  538. W
  539. for (W in a) a.hasOwnProperty(W) && (ha[W] = a[W])
  540. var na = './this.program',
  541. ea = !1,
  542. Z = !1,
  543. oa = !1,
  544. fb = !1,
  545. Ia = !1
  546. ea = 'object' === typeof window
  547. Z = 'function' === typeof importScripts
  548. oa = (fb = 'object' === typeof process && 'object' === typeof process.versions && 'string' === typeof process.versions.node) && !ea && !Z
  549. Ia = !ea && !oa && !Z
  550. var M = '',
  551. pa,
  552. qa
  553. if (oa) {
  554. M = __dirname + '/'
  555. var ra = function (a, c) {
  556. pa || (pa = require('fs'))
  557. qa || (qa = require('path'))
  558. a = qa.normalize(a)
  559. return pa.readFileSync(a, c ? null : 'utf8')
  560. }
  561. var la = function (a) {
  562. a = ra(a, !0)
  563. a.buffer || (a = new Uint8Array(a))
  564. t(a.buffer)
  565. return a
  566. }
  567. 1 < process.argv.length && (na = process.argv[1].replace(/\\/g, '/'))
  568. process.argv.slice(2)
  569. process.on('uncaughtException', function (a) {
  570. throw a
  571. })
  572. process.on('unhandledRejection', z)
  573. a.inspect = function () {
  574. return '[Emscripten Module object]'
  575. }
  576. } else if (Ia)
  577. 'undefined' != typeof read &&
  578. (ra = function (a) {
  579. return read(a)
  580. }),
  581. (la = function (a) {
  582. if ('function' === typeof readbuffer) return new Uint8Array(readbuffer(a))
  583. a = read(a, 'binary')
  584. t('object' === typeof a)
  585. return a
  586. }),
  587. 'undefined' !== typeof print &&
  588. ('undefined' === typeof console && (console = {}), (console.log = print), (console.warn = console.error = 'undefined' !== typeof printErr ? printErr : print))
  589. else if (ea || Z)
  590. Z ? (M = self.location.href) : document.currentScript && (M = document.currentScript.src),
  591. f && (M = f),
  592. (M = 0 !== M.indexOf('blob:') ? M.substr(0, M.lastIndexOf('/') + 1) : ''),
  593. (ra = function (a) {
  594. var c = new XMLHttpRequest()
  595. c.open('GET', a, !1)
  596. c.send(null)
  597. return c.responseText
  598. }),
  599. Z &&
  600. (la = function (a) {
  601. var c = new XMLHttpRequest()
  602. c.open('GET', a, !1)
  603. c.responseType = 'arraybuffer'
  604. c.send(null)
  605. return new Uint8Array(c.response)
  606. })
  607. var ya = a.print || console.log.bind(console),
  608. Y = a.printErr || console.warn.bind(console)
  609. for (W in ha) ha.hasOwnProperty(W) && (a[W] = ha[W])
  610. ha = null
  611. a.thisProgram && (na = a.thisProgram)
  612. var da
  613. a.wasmBinary && (da = a.wasmBinary)
  614. 'object' !== typeof WebAssembly && Y('no native wasm support detected')
  615. var ia,
  616. gb = new WebAssembly.Table({ initial: 381, maximum: 381, element: 'anyfunc' }),
  617. za = !1,
  618. xa = 'undefined' !== typeof TextDecoder ? new TextDecoder('utf8') : void 0
  619. 'undefined' !== typeof TextDecoder && new TextDecoder('utf-16le')
  620. var T,
  621. ca,
  622. P,
  623. Ja = a.TOTAL_MEMORY || 16777216
  624. if ((ia = a.wasmMemory ? a.wasmMemory : new WebAssembly.Memory({ initial: Ja / 65536 }))) var ka = ia.buffer
  625. Ja = ka.byteLength
  626. l(ka)
  627. P[4604] = 5261456
  628. var Fa = [],
  629. Ca = [],
  630. Da = [],
  631. Ea = [],
  632. Ba = !1,
  633. aa = 0,
  634. sa = null,
  635. ja = null
  636. a.preloadedImages = {}
  637. a.preloadedAudios = {}
  638. var U = 'draco_decoder.wasm'
  639. va(U) || (U = v(U))
  640. Ca.push({
  641. func: function () {
  642. hb()
  643. },
  644. })
  645. var Aa = {},
  646. R = {
  647. buffers: [null, [], []],
  648. printChar: function (a, c) {
  649. var b = R.buffers[a]
  650. 0 === c || 10 === c ? ((1 === a ? ya : Y)(h(b, 0)), (b.length = 0)) : b.push(c)
  651. },
  652. varargs: 0,
  653. get: function (a) {
  654. R.varargs += 4
  655. return P[(R.varargs - 4) >> 2]
  656. },
  657. getStr: function () {
  658. return X(R.get())
  659. },
  660. get64: function () {
  661. var a = R.get()
  662. R.get()
  663. return a
  664. },
  665. getZero: function () {
  666. R.get()
  667. },
  668. },
  669. Ka = {
  670. __cxa_allocate_exception: function (a) {
  671. return ib(a)
  672. },
  673. __cxa_throw: function (a, c, b) {
  674. 'uncaught_exception' in ta ? ta.uncaught_exceptions++ : (ta.uncaught_exceptions = 1)
  675. throw a
  676. },
  677. abort: function () {
  678. z()
  679. },
  680. emscripten_get_sbrk_ptr: function () {
  681. return 18416
  682. },
  683. emscripten_memcpy_big: function (a, c, b) {
  684. ca.set(ca.subarray(c, c + b), a)
  685. },
  686. emscripten_resize_heap: function (a) {
  687. if (2147418112 < a) return !1
  688. for (var c = Math.max(T.length, 16777216); c < a; ) c = 536870912 >= c ? e(2 * c, 65536) : Math.min(e((3 * c + 2147483648) / 4, 65536), 2147418112)
  689. a: {
  690. try {
  691. ia.grow((c - ka.byteLength + 65535) >> 16)
  692. l(ia.buffer)
  693. var b = 1
  694. break a
  695. } catch (d) {}
  696. b = void 0
  697. }
  698. return b ? !0 : !1
  699. },
  700. environ_get: function (a, c) {
  701. var b = 0
  702. ba().forEach(function (d, e) {
  703. var f = c + b
  704. e = P[(a + 4 * e) >> 2] = f
  705. for (f = 0; f < d.length; ++f) T[e++ >> 0] = d.charCodeAt(f)
  706. T[e >> 0] = 0
  707. b += d.length + 1
  708. })
  709. return 0
  710. },
  711. environ_sizes_get: function (a, c) {
  712. var b = ba()
  713. P[a >> 2] = b.length
  714. var d = 0
  715. b.forEach(function (a) {
  716. d += a.length + 1
  717. })
  718. P[c >> 2] = d
  719. return 0
  720. },
  721. fd_close: function (a) {
  722. return 0
  723. },
  724. fd_seek: function (a, c, b, d, e) {
  725. return 0
  726. },
  727. fd_write: function (a, c, b, d) {
  728. try {
  729. for (var e = 0, f = 0; f < b; f++) {
  730. for (var g = P[(c + 8 * f) >> 2], k = P[(c + (8 * f + 4)) >> 2], h = 0; h < k; h++) R.printChar(a, ca[g + h])
  731. e += k
  732. }
  733. P[d >> 2] = e
  734. return 0
  735. } catch (ua) {
  736. return ('undefined' !== typeof FS && ua instanceof FS.ErrnoError) || z(ua), ua.errno
  737. }
  738. },
  739. memory: ia,
  740. setTempRet0: function (a) {},
  741. table: gb,
  742. },
  743. La = (function () {
  744. function e(c, b) {
  745. a.asm = c.exports
  746. aa--
  747. a.monitorRunDependencies && a.monitorRunDependencies(aa)
  748. 0 == aa && (null !== sa && (clearInterval(sa), (sa = null)), ja && ((c = ja), (ja = null), c()))
  749. }
  750. function c(a) {
  751. e(a.instance)
  752. }
  753. function b(a) {
  754. return Ma()
  755. .then(function (a) {
  756. return WebAssembly.instantiate(a, d)
  757. })
  758. .then(a, function (a) {
  759. Y('failed to asynchronously prepare wasm: ' + a)
  760. z(a)
  761. })
  762. }
  763. var d = { env: Ka, wasi_unstable: Ka }
  764. aa++
  765. a.monitorRunDependencies && a.monitorRunDependencies(aa)
  766. if (a.instantiateWasm)
  767. try {
  768. return a.instantiateWasm(d, e)
  769. } catch (Na) {
  770. return Y('Module.instantiateWasm callback failed with error: ' + Na), !1
  771. }
  772. ;(function () {
  773. if (da || 'function' !== typeof WebAssembly.instantiateStreaming || va(U) || 'function' !== typeof fetch) return b(c)
  774. fetch(U, { credentials: 'same-origin' }).then(function (a) {
  775. return WebAssembly.instantiateStreaming(a, d).then(c, function (a) {
  776. Y('wasm streaming compile failed: ' + a)
  777. Y('falling back to ArrayBuffer instantiation')
  778. b(c)
  779. })
  780. })
  781. })()
  782. return {}
  783. })()
  784. a.asm = La
  785. var hb = (a.___wasm_call_ctors = function () {
  786. return a.asm.__wasm_call_ctors.apply(null, arguments)
  787. }),
  788. jb = (a._emscripten_bind_Status_code_0 = function () {
  789. return a.asm.emscripten_bind_Status_code_0.apply(null, arguments)
  790. }),
  791. kb = (a._emscripten_bind_Status_ok_0 = function () {
  792. return a.asm.emscripten_bind_Status_ok_0.apply(null, arguments)
  793. }),
  794. lb = (a._emscripten_bind_Status_error_msg_0 = function () {
  795. return a.asm.emscripten_bind_Status_error_msg_0.apply(null, arguments)
  796. }),
  797. mb = (a._emscripten_bind_Status___destroy___0 = function () {
  798. return a.asm.emscripten_bind_Status___destroy___0.apply(null, arguments)
  799. }),
  800. Oa = (a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0 = function () {
  801. return a.asm.emscripten_bind_DracoUInt16Array_DracoUInt16Array_0.apply(null, arguments)
  802. }),
  803. nb = (a._emscripten_bind_DracoUInt16Array_GetValue_1 = function () {
  804. return a.asm.emscripten_bind_DracoUInt16Array_GetValue_1.apply(null, arguments)
  805. }),
  806. ob = (a._emscripten_bind_DracoUInt16Array_size_0 = function () {
  807. return a.asm.emscripten_bind_DracoUInt16Array_size_0.apply(null, arguments)
  808. }),
  809. pb = (a._emscripten_bind_DracoUInt16Array___destroy___0 = function () {
  810. return a.asm.emscripten_bind_DracoUInt16Array___destroy___0.apply(null, arguments)
  811. }),
  812. Pa = (a._emscripten_bind_PointCloud_PointCloud_0 = function () {
  813. return a.asm.emscripten_bind_PointCloud_PointCloud_0.apply(null, arguments)
  814. }),
  815. qb = (a._emscripten_bind_PointCloud_num_attributes_0 = function () {
  816. return a.asm.emscripten_bind_PointCloud_num_attributes_0.apply(null, arguments)
  817. }),
  818. rb = (a._emscripten_bind_PointCloud_num_points_0 = function () {
  819. return a.asm.emscripten_bind_PointCloud_num_points_0.apply(null, arguments)
  820. }),
  821. sb = (a._emscripten_bind_PointCloud___destroy___0 = function () {
  822. return a.asm.emscripten_bind_PointCloud___destroy___0.apply(null, arguments)
  823. }),
  824. Qa = (a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0 = function () {
  825. return a.asm.emscripten_bind_DracoUInt8Array_DracoUInt8Array_0.apply(null, arguments)
  826. }),
  827. tb = (a._emscripten_bind_DracoUInt8Array_GetValue_1 = function () {
  828. return a.asm.emscripten_bind_DracoUInt8Array_GetValue_1.apply(null, arguments)
  829. }),
  830. ub = (a._emscripten_bind_DracoUInt8Array_size_0 = function () {
  831. return a.asm.emscripten_bind_DracoUInt8Array_size_0.apply(null, arguments)
  832. }),
  833. vb = (a._emscripten_bind_DracoUInt8Array___destroy___0 = function () {
  834. return a.asm.emscripten_bind_DracoUInt8Array___destroy___0.apply(null, arguments)
  835. }),
  836. Ra = (a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0 = function () {
  837. return a.asm.emscripten_bind_DracoUInt32Array_DracoUInt32Array_0.apply(null, arguments)
  838. }),
  839. wb = (a._emscripten_bind_DracoUInt32Array_GetValue_1 = function () {
  840. return a.asm.emscripten_bind_DracoUInt32Array_GetValue_1.apply(null, arguments)
  841. }),
  842. xb = (a._emscripten_bind_DracoUInt32Array_size_0 = function () {
  843. return a.asm.emscripten_bind_DracoUInt32Array_size_0.apply(null, arguments)
  844. }),
  845. yb = (a._emscripten_bind_DracoUInt32Array___destroy___0 = function () {
  846. return a.asm.emscripten_bind_DracoUInt32Array___destroy___0.apply(null, arguments)
  847. }),
  848. Sa = (a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0 = function () {
  849. return a.asm.emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0.apply(null, arguments)
  850. }),
  851. zb = (a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1 = function () {
  852. return a.asm.emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1.apply(null, arguments)
  853. }),
  854. Ab = (a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0 = function () {
  855. return a.asm.emscripten_bind_AttributeOctahedronTransform_quantization_bits_0.apply(null, arguments)
  856. }),
  857. Bb = (a._emscripten_bind_AttributeOctahedronTransform___destroy___0 = function () {
  858. return a.asm.emscripten_bind_AttributeOctahedronTransform___destroy___0.apply(null, arguments)
  859. }),
  860. Ta = (a._emscripten_bind_PointAttribute_PointAttribute_0 = function () {
  861. return a.asm.emscripten_bind_PointAttribute_PointAttribute_0.apply(null, arguments)
  862. }),
  863. Cb = (a._emscripten_bind_PointAttribute_size_0 = function () {
  864. return a.asm.emscripten_bind_PointAttribute_size_0.apply(null, arguments)
  865. }),
  866. Db = (a._emscripten_bind_PointAttribute_GetAttributeTransformData_0 = function () {
  867. return a.asm.emscripten_bind_PointAttribute_GetAttributeTransformData_0.apply(null, arguments)
  868. }),
  869. Eb = (a._emscripten_bind_PointAttribute_attribute_type_0 = function () {
  870. return a.asm.emscripten_bind_PointAttribute_attribute_type_0.apply(null, arguments)
  871. }),
  872. Fb = (a._emscripten_bind_PointAttribute_data_type_0 = function () {
  873. return a.asm.emscripten_bind_PointAttribute_data_type_0.apply(null, arguments)
  874. }),
  875. Gb = (a._emscripten_bind_PointAttribute_num_components_0 = function () {
  876. return a.asm.emscripten_bind_PointAttribute_num_components_0.apply(null, arguments)
  877. }),
  878. Hb = (a._emscripten_bind_PointAttribute_normalized_0 = function () {
  879. return a.asm.emscripten_bind_PointAttribute_normalized_0.apply(null, arguments)
  880. }),
  881. Ib = (a._emscripten_bind_PointAttribute_byte_stride_0 = function () {
  882. return a.asm.emscripten_bind_PointAttribute_byte_stride_0.apply(null, arguments)
  883. }),
  884. Jb = (a._emscripten_bind_PointAttribute_byte_offset_0 = function () {
  885. return a.asm.emscripten_bind_PointAttribute_byte_offset_0.apply(null, arguments)
  886. }),
  887. Kb = (a._emscripten_bind_PointAttribute_unique_id_0 = function () {
  888. return a.asm.emscripten_bind_PointAttribute_unique_id_0.apply(null, arguments)
  889. }),
  890. Lb = (a._emscripten_bind_PointAttribute___destroy___0 = function () {
  891. return a.asm.emscripten_bind_PointAttribute___destroy___0.apply(null, arguments)
  892. }),
  893. Ua = (a._emscripten_bind_AttributeTransformData_AttributeTransformData_0 = function () {
  894. return a.asm.emscripten_bind_AttributeTransformData_AttributeTransformData_0.apply(null, arguments)
  895. }),
  896. Mb = (a._emscripten_bind_AttributeTransformData_transform_type_0 = function () {
  897. return a.asm.emscripten_bind_AttributeTransformData_transform_type_0.apply(null, arguments)
  898. }),
  899. Nb = (a._emscripten_bind_AttributeTransformData___destroy___0 = function () {
  900. return a.asm.emscripten_bind_AttributeTransformData___destroy___0.apply(null, arguments)
  901. }),
  902. Va = (a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0 = function () {
  903. return a.asm.emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0.apply(null, arguments)
  904. }),
  905. Ob = (a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1 = function () {
  906. return a.asm.emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1.apply(null, arguments)
  907. }),
  908. Pb = (a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0 = function () {
  909. return a.asm.emscripten_bind_AttributeQuantizationTransform_quantization_bits_0.apply(null, arguments)
  910. }),
  911. Qb = (a._emscripten_bind_AttributeQuantizationTransform_min_value_1 = function () {
  912. return a.asm.emscripten_bind_AttributeQuantizationTransform_min_value_1.apply(null, arguments)
  913. }),
  914. Rb = (a._emscripten_bind_AttributeQuantizationTransform_range_0 = function () {
  915. return a.asm.emscripten_bind_AttributeQuantizationTransform_range_0.apply(null, arguments)
  916. }),
  917. Sb = (a._emscripten_bind_AttributeQuantizationTransform___destroy___0 = function () {
  918. return a.asm.emscripten_bind_AttributeQuantizationTransform___destroy___0.apply(null, arguments)
  919. }),
  920. Wa = (a._emscripten_bind_DracoInt8Array_DracoInt8Array_0 = function () {
  921. return a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0.apply(null, arguments)
  922. }),
  923. Tb = (a._emscripten_bind_DracoInt8Array_GetValue_1 = function () {
  924. return a.asm.emscripten_bind_DracoInt8Array_GetValue_1.apply(null, arguments)
  925. }),
  926. Ub = (a._emscripten_bind_DracoInt8Array_size_0 = function () {
  927. return a.asm.emscripten_bind_DracoInt8Array_size_0.apply(null, arguments)
  928. }),
  929. Vb = (a._emscripten_bind_DracoInt8Array___destroy___0 = function () {
  930. return a.asm.emscripten_bind_DracoInt8Array___destroy___0.apply(null, arguments)
  931. }),
  932. Xa = (a._emscripten_bind_MetadataQuerier_MetadataQuerier_0 = function () {
  933. return a.asm.emscripten_bind_MetadataQuerier_MetadataQuerier_0.apply(null, arguments)
  934. }),
  935. Wb = (a._emscripten_bind_MetadataQuerier_HasEntry_2 = function () {
  936. return a.asm.emscripten_bind_MetadataQuerier_HasEntry_2.apply(null, arguments)
  937. }),
  938. Xb = (a._emscripten_bind_MetadataQuerier_GetIntEntry_2 = function () {
  939. return a.asm.emscripten_bind_MetadataQuerier_GetIntEntry_2.apply(null, arguments)
  940. }),
  941. Yb = (a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3 = function () {
  942. return a.asm.emscripten_bind_MetadataQuerier_GetIntEntryArray_3.apply(null, arguments)
  943. }),
  944. Zb = (a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2 = function () {
  945. return a.asm.emscripten_bind_MetadataQuerier_GetDoubleEntry_2.apply(null, arguments)
  946. }),
  947. $b = (a._emscripten_bind_MetadataQuerier_GetStringEntry_2 = function () {
  948. return a.asm.emscripten_bind_MetadataQuerier_GetStringEntry_2.apply(null, arguments)
  949. }),
  950. ac = (a._emscripten_bind_MetadataQuerier_NumEntries_1 = function () {
  951. return a.asm.emscripten_bind_MetadataQuerier_NumEntries_1.apply(null, arguments)
  952. }),
  953. bc = (a._emscripten_bind_MetadataQuerier_GetEntryName_2 = function () {
  954. return a.asm.emscripten_bind_MetadataQuerier_GetEntryName_2.apply(null, arguments)
  955. }),
  956. cc = (a._emscripten_bind_MetadataQuerier___destroy___0 = function () {
  957. return a.asm.emscripten_bind_MetadataQuerier___destroy___0.apply(null, arguments)
  958. }),
  959. Ya = (a._emscripten_bind_DracoInt16Array_DracoInt16Array_0 = function () {
  960. return a.asm.emscripten_bind_DracoInt16Array_DracoInt16Array_0.apply(null, arguments)
  961. }),
  962. dc = (a._emscripten_bind_DracoInt16Array_GetValue_1 = function () {
  963. return a.asm.emscripten_bind_DracoInt16Array_GetValue_1.apply(null, arguments)
  964. }),
  965. ec = (a._emscripten_bind_DracoInt16Array_size_0 = function () {
  966. return a.asm.emscripten_bind_DracoInt16Array_size_0.apply(null, arguments)
  967. }),
  968. fc = (a._emscripten_bind_DracoInt16Array___destroy___0 = function () {
  969. return a.asm.emscripten_bind_DracoInt16Array___destroy___0.apply(null, arguments)
  970. }),
  971. Za = (a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0 = function () {
  972. return a.asm.emscripten_bind_DracoFloat32Array_DracoFloat32Array_0.apply(null, arguments)
  973. }),
  974. gc = (a._emscripten_bind_DracoFloat32Array_GetValue_1 = function () {
  975. return a.asm.emscripten_bind_DracoFloat32Array_GetValue_1.apply(null, arguments)
  976. }),
  977. hc = (a._emscripten_bind_DracoFloat32Array_size_0 = function () {
  978. return a.asm.emscripten_bind_DracoFloat32Array_size_0.apply(null, arguments)
  979. }),
  980. ic = (a._emscripten_bind_DracoFloat32Array___destroy___0 = function () {
  981. return a.asm.emscripten_bind_DracoFloat32Array___destroy___0.apply(null, arguments)
  982. }),
  983. $a = (a._emscripten_bind_GeometryAttribute_GeometryAttribute_0 = function () {
  984. return a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0.apply(null, arguments)
  985. }),
  986. jc = (a._emscripten_bind_GeometryAttribute___destroy___0 = function () {
  987. return a.asm.emscripten_bind_GeometryAttribute___destroy___0.apply(null, arguments)
  988. }),
  989. ab = (a._emscripten_bind_DecoderBuffer_DecoderBuffer_0 = function () {
  990. return a.asm.emscripten_bind_DecoderBuffer_DecoderBuffer_0.apply(null, arguments)
  991. }),
  992. kc = (a._emscripten_bind_DecoderBuffer_Init_2 = function () {
  993. return a.asm.emscripten_bind_DecoderBuffer_Init_2.apply(null, arguments)
  994. }),
  995. lc = (a._emscripten_bind_DecoderBuffer___destroy___0 = function () {
  996. return a.asm.emscripten_bind_DecoderBuffer___destroy___0.apply(null, arguments)
  997. }),
  998. bb = (a._emscripten_bind_Decoder_Decoder_0 = function () {
  999. return a.asm.emscripten_bind_Decoder_Decoder_0.apply(null, arguments)
  1000. }),
  1001. mc = (a._emscripten_bind_Decoder_GetEncodedGeometryType_1 = function () {
  1002. return a.asm.emscripten_bind_Decoder_GetEncodedGeometryType_1.apply(null, arguments)
  1003. }),
  1004. nc = (a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2 = function () {
  1005. return a.asm.emscripten_bind_Decoder_DecodeBufferToPointCloud_2.apply(null, arguments)
  1006. }),
  1007. oc = (a._emscripten_bind_Decoder_DecodeBufferToMesh_2 = function () {
  1008. return a.asm.emscripten_bind_Decoder_DecodeBufferToMesh_2.apply(null, arguments)
  1009. }),
  1010. pc = (a._emscripten_bind_Decoder_GetAttributeId_2 = function () {
  1011. return a.asm.emscripten_bind_Decoder_GetAttributeId_2.apply(null, arguments)
  1012. }),
  1013. qc = (a._emscripten_bind_Decoder_GetAttributeIdByName_2 = function () {
  1014. return a.asm.emscripten_bind_Decoder_GetAttributeIdByName_2.apply(null, arguments)
  1015. }),
  1016. rc = (a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3 = function () {
  1017. return a.asm.emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3.apply(null, arguments)
  1018. }),
  1019. sc = (a._emscripten_bind_Decoder_GetAttribute_2 = function () {
  1020. return a.asm.emscripten_bind_Decoder_GetAttribute_2.apply(null, arguments)
  1021. }),
  1022. tc = (a._emscripten_bind_Decoder_GetAttributeByUniqueId_2 = function () {
  1023. return a.asm.emscripten_bind_Decoder_GetAttributeByUniqueId_2.apply(null, arguments)
  1024. }),
  1025. uc = (a._emscripten_bind_Decoder_GetMetadata_1 = function () {
  1026. return a.asm.emscripten_bind_Decoder_GetMetadata_1.apply(null, arguments)
  1027. }),
  1028. vc = (a._emscripten_bind_Decoder_GetAttributeMetadata_2 = function () {
  1029. return a.asm.emscripten_bind_Decoder_GetAttributeMetadata_2.apply(null, arguments)
  1030. }),
  1031. wc = (a._emscripten_bind_Decoder_GetFaceFromMesh_3 = function () {
  1032. return a.asm.emscripten_bind_Decoder_GetFaceFromMesh_3.apply(null, arguments)
  1033. }),
  1034. xc = (a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2 = function () {
  1035. return a.asm.emscripten_bind_Decoder_GetTriangleStripsFromMesh_2.apply(null, arguments)
  1036. }),
  1037. yc = (a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3 = function () {
  1038. return a.asm.emscripten_bind_Decoder_GetTrianglesUInt16Array_3.apply(null, arguments)
  1039. }),
  1040. zc = (a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3 = function () {
  1041. return a.asm.emscripten_bind_Decoder_GetTrianglesUInt32Array_3.apply(null, arguments)
  1042. }),
  1043. Ac = (a._emscripten_bind_Decoder_GetAttributeFloat_3 = function () {
  1044. return a.asm.emscripten_bind_Decoder_GetAttributeFloat_3.apply(null, arguments)
  1045. }),
  1046. Bc = (a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3 = function () {
  1047. return a.asm.emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3.apply(null, arguments)
  1048. }),
  1049. Cc = (a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3 = function () {
  1050. return a.asm.emscripten_bind_Decoder_GetAttributeIntForAllPoints_3.apply(null, arguments)
  1051. }),
  1052. Dc = (a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3 = function () {
  1053. return a.asm.emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3.apply(null, arguments)
  1054. }),
  1055. Ec = (a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3 = function () {
  1056. return a.asm.emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3.apply(null, arguments)
  1057. }),
  1058. Fc = (a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3 = function () {
  1059. return a.asm.emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3.apply(null, arguments)
  1060. }),
  1061. Gc = (a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3 = function () {
  1062. return a.asm.emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3.apply(null, arguments)
  1063. }),
  1064. Hc = (a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3 = function () {
  1065. return a.asm.emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3.apply(null, arguments)
  1066. }),
  1067. Ic = (a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3 = function () {
  1068. return a.asm.emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3.apply(null, arguments)
  1069. }),
  1070. Jc = (a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5 = function () {
  1071. return a.asm.emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5.apply(null, arguments)
  1072. }),
  1073. Kc = (a._emscripten_bind_Decoder_SkipAttributeTransform_1 = function () {
  1074. return a.asm.emscripten_bind_Decoder_SkipAttributeTransform_1.apply(null, arguments)
  1075. }),
  1076. Lc = (a._emscripten_bind_Decoder___destroy___0 = function () {
  1077. return a.asm.emscripten_bind_Decoder___destroy___0.apply(null, arguments)
  1078. }),
  1079. cb = (a._emscripten_bind_Mesh_Mesh_0 = function () {
  1080. return a.asm.emscripten_bind_Mesh_Mesh_0.apply(null, arguments)
  1081. }),
  1082. Mc = (a._emscripten_bind_Mesh_num_faces_0 = function () {
  1083. return a.asm.emscripten_bind_Mesh_num_faces_0.apply(null, arguments)
  1084. }),
  1085. Nc = (a._emscripten_bind_Mesh_num_attributes_0 = function () {
  1086. return a.asm.emscripten_bind_Mesh_num_attributes_0.apply(null, arguments)
  1087. }),
  1088. Oc = (a._emscripten_bind_Mesh_num_points_0 = function () {
  1089. return a.asm.emscripten_bind_Mesh_num_points_0.apply(null, arguments)
  1090. }),
  1091. Pc = (a._emscripten_bind_Mesh___destroy___0 = function () {
  1092. return a.asm.emscripten_bind_Mesh___destroy___0.apply(null, arguments)
  1093. }),
  1094. Qc = (a._emscripten_bind_VoidPtr___destroy___0 = function () {
  1095. return a.asm.emscripten_bind_VoidPtr___destroy___0.apply(null, arguments)
  1096. }),
  1097. db = (a._emscripten_bind_DracoInt32Array_DracoInt32Array_0 = function () {
  1098. return a.asm.emscripten_bind_DracoInt32Array_DracoInt32Array_0.apply(null, arguments)
  1099. }),
  1100. Rc = (a._emscripten_bind_DracoInt32Array_GetValue_1 = function () {
  1101. return a.asm.emscripten_bind_DracoInt32Array_GetValue_1.apply(null, arguments)
  1102. }),
  1103. Sc = (a._emscripten_bind_DracoInt32Array_size_0 = function () {
  1104. return a.asm.emscripten_bind_DracoInt32Array_size_0.apply(null, arguments)
  1105. }),
  1106. Tc = (a._emscripten_bind_DracoInt32Array___destroy___0 = function () {
  1107. return a.asm.emscripten_bind_DracoInt32Array___destroy___0.apply(null, arguments)
  1108. }),
  1109. eb = (a._emscripten_bind_Metadata_Metadata_0 = function () {
  1110. return a.asm.emscripten_bind_Metadata_Metadata_0.apply(null, arguments)
  1111. }),
  1112. Uc = (a._emscripten_bind_Metadata___destroy___0 = function () {
  1113. return a.asm.emscripten_bind_Metadata___destroy___0.apply(null, arguments)
  1114. }),
  1115. Vc = (a._emscripten_enum_draco_StatusCode_OK = function () {
  1116. return a.asm.emscripten_enum_draco_StatusCode_OK.apply(null, arguments)
  1117. }),
  1118. Wc = (a._emscripten_enum_draco_StatusCode_DRACO_ERROR = function () {
  1119. return a.asm.emscripten_enum_draco_StatusCode_DRACO_ERROR.apply(null, arguments)
  1120. }),
  1121. Xc = (a._emscripten_enum_draco_StatusCode_IO_ERROR = function () {
  1122. return a.asm.emscripten_enum_draco_StatusCode_IO_ERROR.apply(null, arguments)
  1123. }),
  1124. Yc = (a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER = function () {
  1125. return a.asm.emscripten_enum_draco_StatusCode_INVALID_PARAMETER.apply(null, arguments)
  1126. }),
  1127. Zc = (a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION = function () {
  1128. return a.asm.emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION.apply(null, arguments)
  1129. }),
  1130. $c = (a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION = function () {
  1131. return a.asm.emscripten_enum_draco_StatusCode_UNKNOWN_VERSION.apply(null, arguments)
  1132. }),
  1133. ad = (a._emscripten_enum_draco_DataType_DT_INVALID = function () {
  1134. return a.asm.emscripten_enum_draco_DataType_DT_INVALID.apply(null, arguments)
  1135. }),
  1136. bd = (a._emscripten_enum_draco_DataType_DT_INT8 = function () {
  1137. return a.asm.emscripten_enum_draco_DataType_DT_INT8.apply(null, arguments)
  1138. }),
  1139. cd = (a._emscripten_enum_draco_DataType_DT_UINT8 = function () {
  1140. return a.asm.emscripten_enum_draco_DataType_DT_UINT8.apply(null, arguments)
  1141. }),
  1142. dd = (a._emscripten_enum_draco_DataType_DT_INT16 = function () {
  1143. return a.asm.emscripten_enum_draco_DataType_DT_INT16.apply(null, arguments)
  1144. }),
  1145. ed = (a._emscripten_enum_draco_DataType_DT_UINT16 = function () {
  1146. return a.asm.emscripten_enum_draco_DataType_DT_UINT16.apply(null, arguments)
  1147. }),
  1148. fd = (a._emscripten_enum_draco_DataType_DT_INT32 = function () {
  1149. return a.asm.emscripten_enum_draco_DataType_DT_INT32.apply(null, arguments)
  1150. }),
  1151. gd = (a._emscripten_enum_draco_DataType_DT_UINT32 = function () {
  1152. return a.asm.emscripten_enum_draco_DataType_DT_UINT32.apply(null, arguments)
  1153. }),
  1154. hd = (a._emscripten_enum_draco_DataType_DT_INT64 = function () {
  1155. return a.asm.emscripten_enum_draco_DataType_DT_INT64.apply(null, arguments)
  1156. }),
  1157. id = (a._emscripten_enum_draco_DataType_DT_UINT64 = function () {
  1158. return a.asm.emscripten_enum_draco_DataType_DT_UINT64.apply(null, arguments)
  1159. }),
  1160. jd = (a._emscripten_enum_draco_DataType_DT_FLOAT32 = function () {
  1161. return a.asm.emscripten_enum_draco_DataType_DT_FLOAT32.apply(null, arguments)
  1162. }),
  1163. kd = (a._emscripten_enum_draco_DataType_DT_FLOAT64 = function () {
  1164. return a.asm.emscripten_enum_draco_DataType_DT_FLOAT64.apply(null, arguments)
  1165. }),
  1166. ld = (a._emscripten_enum_draco_DataType_DT_BOOL = function () {
  1167. return a.asm.emscripten_enum_draco_DataType_DT_BOOL.apply(null, arguments)
  1168. }),
  1169. md = (a._emscripten_enum_draco_DataType_DT_TYPES_COUNT = function () {
  1170. return a.asm.emscripten_enum_draco_DataType_DT_TYPES_COUNT.apply(null, arguments)
  1171. }),
  1172. nd = (a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE = function () {
  1173. return a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE.apply(null, arguments)
  1174. }),
  1175. od = (a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD = function () {
  1176. return a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD.apply(null, arguments)
  1177. }),
  1178. pd = (a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH = function () {
  1179. return a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH.apply(null, arguments)
  1180. }),
  1181. qd = (a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM = function () {
  1182. return a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM.apply(null, arguments)
  1183. }),
  1184. rd = (a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM = function () {
  1185. return a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM.apply(null, arguments)
  1186. }),
  1187. sd = (a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM = function () {
  1188. return a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM.apply(null, arguments)
  1189. }),
  1190. td = (a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM = function () {
  1191. return a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM.apply(null, arguments)
  1192. }),
  1193. ud = (a._emscripten_enum_draco_GeometryAttribute_Type_INVALID = function () {
  1194. return a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID.apply(null, arguments)
  1195. }),
  1196. vd = (a._emscripten_enum_draco_GeometryAttribute_Type_POSITION = function () {
  1197. return a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION.apply(null, arguments)
  1198. }),
  1199. wd = (a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL = function () {
  1200. return a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL.apply(null, arguments)
  1201. }),
  1202. xd = (a._emscripten_enum_draco_GeometryAttribute_Type_COLOR = function () {
  1203. return a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR.apply(null, arguments)
  1204. }),
  1205. yd = (a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD = function () {
  1206. return a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD.apply(null, arguments)
  1207. }),
  1208. zd = (a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC = function () {
  1209. return a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC.apply(null, arguments)
  1210. })
  1211. a._setThrew = function () {
  1212. return a.asm.setThrew.apply(null, arguments)
  1213. }
  1214. var ta = (a.__ZSt18uncaught_exceptionv = function () {
  1215. return a.asm._ZSt18uncaught_exceptionv.apply(null, arguments)
  1216. })
  1217. a._free = function () {
  1218. return a.asm.free.apply(null, arguments)
  1219. }
  1220. var ib = (a._malloc = function () {
  1221. return a.asm.malloc.apply(null, arguments)
  1222. })
  1223. a.stackSave = function () {
  1224. return a.asm.stackSave.apply(null, arguments)
  1225. }
  1226. a.stackAlloc = function () {
  1227. return a.asm.stackAlloc.apply(null, arguments)
  1228. }
  1229. a.stackRestore = function () {
  1230. return a.asm.stackRestore.apply(null, arguments)
  1231. }
  1232. a.__growWasmMemory = function () {
  1233. return a.asm.__growWasmMemory.apply(null, arguments)
  1234. }
  1235. a.dynCall_ii = function () {
  1236. return a.asm.dynCall_ii.apply(null, arguments)
  1237. }
  1238. a.dynCall_vi = function () {
  1239. return a.asm.dynCall_vi.apply(null, arguments)
  1240. }
  1241. a.dynCall_iii = function () {
  1242. return a.asm.dynCall_iii.apply(null, arguments)
  1243. }
  1244. a.dynCall_vii = function () {
  1245. return a.asm.dynCall_vii.apply(null, arguments)
  1246. }
  1247. a.dynCall_iiii = function () {
  1248. return a.asm.dynCall_iiii.apply(null, arguments)
  1249. }
  1250. a.dynCall_v = function () {
  1251. return a.asm.dynCall_v.apply(null, arguments)
  1252. }
  1253. a.dynCall_viii = function () {
  1254. return a.asm.dynCall_viii.apply(null, arguments)
  1255. }
  1256. a.dynCall_viiii = function () {
  1257. return a.asm.dynCall_viiii.apply(null, arguments)
  1258. }
  1259. a.dynCall_iiiiiii = function () {
  1260. return a.asm.dynCall_iiiiiii.apply(null, arguments)
  1261. }
  1262. a.dynCall_iidiiii = function () {
  1263. return a.asm.dynCall_iidiiii.apply(null, arguments)
  1264. }
  1265. a.dynCall_jiji = function () {
  1266. return a.asm.dynCall_jiji.apply(null, arguments)
  1267. }
  1268. a.dynCall_viiiiii = function () {
  1269. return a.asm.dynCall_viiiiii.apply(null, arguments)
  1270. }
  1271. a.dynCall_viiiii = function () {
  1272. return a.asm.dynCall_viiiii.apply(null, arguments)
  1273. }
  1274. a.asm = La
  1275. var fa
  1276. a.then = function (e) {
  1277. if (fa) e(a)
  1278. else {
  1279. var c = a.onRuntimeInitialized
  1280. a.onRuntimeInitialized = function () {
  1281. c && c()
  1282. e(a)
  1283. }
  1284. }
  1285. return a
  1286. }
  1287. ja = function c() {
  1288. fa || ma()
  1289. fa || (ja = c)
  1290. }
  1291. a.run = ma
  1292. if (a.preInit) for ('function' == typeof a.preInit && (a.preInit = [a.preInit]); 0 < a.preInit.length; ) a.preInit.pop()()
  1293. ma()
  1294. p.prototype = Object.create(p.prototype)
  1295. p.prototype.constructor = p
  1296. p.prototype.__class__ = p
  1297. p.__cache__ = {}
  1298. a.WrapperObject = p
  1299. a.getCache = u
  1300. a.wrapPointer = N
  1301. a.castObject = function (a, b) {
  1302. return N(a.ptr, b)
  1303. }
  1304. a.NULL = N(0)
  1305. a.destroy = function (a) {
  1306. if (!a.__destroy__) throw 'Error: Cannot destroy object. (Did you create it yourself?)'
  1307. a.__destroy__()
  1308. delete u(a.__class__)[a.ptr]
  1309. }
  1310. a.compare = function (a, b) {
  1311. return a.ptr === b.ptr
  1312. }
  1313. a.getPointer = function (a) {
  1314. return a.ptr
  1315. }
  1316. a.getClass = function (a) {
  1317. return a.__class__
  1318. }
  1319. var n = {
  1320. buffer: 0,
  1321. size: 0,
  1322. pos: 0,
  1323. temps: [],
  1324. needed: 0,
  1325. prepare: function () {
  1326. if (n.needed) {
  1327. for (var c = 0; c < n.temps.length; c++) a._free(n.temps[c])
  1328. n.temps.length = 0
  1329. a._free(n.buffer)
  1330. n.buffer = 0
  1331. n.size += n.needed
  1332. n.needed = 0
  1333. }
  1334. n.buffer || ((n.size += 128), (n.buffer = a._malloc(n.size)), t(n.buffer))
  1335. n.pos = 0
  1336. },
  1337. alloc: function (c, b) {
  1338. t(n.buffer)
  1339. c = c.length * b.BYTES_PER_ELEMENT
  1340. c = (c + 7) & -8
  1341. n.pos + c >= n.size ? (t(0 < c), (n.needed += c), (b = a._malloc(c)), n.temps.push(b)) : ((b = n.buffer + n.pos), (n.pos += c))
  1342. return b
  1343. },
  1344. copy: function (a, b, d) {
  1345. switch (b.BYTES_PER_ELEMENT) {
  1346. case 2:
  1347. d >>= 1
  1348. break
  1349. case 4:
  1350. d >>= 2
  1351. break
  1352. case 8:
  1353. d >>= 3
  1354. }
  1355. for (var c = 0; c < a.length; c++) b[d + c] = a[c]
  1356. },
  1357. }
  1358. x.prototype = Object.create(p.prototype)
  1359. x.prototype.constructor = x
  1360. x.prototype.__class__ = x
  1361. x.__cache__ = {}
  1362. a.Status = x
  1363. x.prototype.code = x.prototype.code = function () {
  1364. return jb(this.ptr)
  1365. }
  1366. x.prototype.ok = x.prototype.ok = function () {
  1367. return !!kb(this.ptr)
  1368. }
  1369. x.prototype.error_msg = x.prototype.error_msg = function () {
  1370. return X(lb(this.ptr))
  1371. }
  1372. x.prototype.__destroy__ = x.prototype.__destroy__ = function () {
  1373. mb(this.ptr)
  1374. }
  1375. A.prototype = Object.create(p.prototype)
  1376. A.prototype.constructor = A
  1377. A.prototype.__class__ = A
  1378. A.__cache__ = {}
  1379. a.DracoUInt16Array = A
  1380. A.prototype.GetValue = A.prototype.GetValue = function (a) {
  1381. var c = this.ptr
  1382. a && 'object' === typeof a && (a = a.ptr)
  1383. return nb(c, a)
  1384. }
  1385. A.prototype.size = A.prototype.size = function () {
  1386. return ob(this.ptr)
  1387. }
  1388. A.prototype.__destroy__ = A.prototype.__destroy__ = function () {
  1389. pb(this.ptr)
  1390. }
  1391. B.prototype = Object.create(p.prototype)
  1392. B.prototype.constructor = B
  1393. B.prototype.__class__ = B
  1394. B.__cache__ = {}
  1395. a.PointCloud = B
  1396. B.prototype.num_attributes = B.prototype.num_attributes = function () {
  1397. return qb(this.ptr)
  1398. }
  1399. B.prototype.num_points = B.prototype.num_points = function () {
  1400. return rb(this.ptr)
  1401. }
  1402. B.prototype.__destroy__ = B.prototype.__destroy__ = function () {
  1403. sb(this.ptr)
  1404. }
  1405. C.prototype = Object.create(p.prototype)
  1406. C.prototype.constructor = C
  1407. C.prototype.__class__ = C
  1408. C.__cache__ = {}
  1409. a.DracoUInt8Array = C
  1410. C.prototype.GetValue = C.prototype.GetValue = function (a) {
  1411. var c = this.ptr
  1412. a && 'object' === typeof a && (a = a.ptr)
  1413. return tb(c, a)
  1414. }
  1415. C.prototype.size = C.prototype.size = function () {
  1416. return ub(this.ptr)
  1417. }
  1418. C.prototype.__destroy__ = C.prototype.__destroy__ = function () {
  1419. vb(this.ptr)
  1420. }
  1421. D.prototype = Object.create(p.prototype)
  1422. D.prototype.constructor = D
  1423. D.prototype.__class__ = D
  1424. D.__cache__ = {}
  1425. a.DracoUInt32Array = D
  1426. D.prototype.GetValue = D.prototype.GetValue = function (a) {
  1427. var c = this.ptr
  1428. a && 'object' === typeof a && (a = a.ptr)
  1429. return wb(c, a)
  1430. }
  1431. D.prototype.size = D.prototype.size = function () {
  1432. return xb(this.ptr)
  1433. }
  1434. D.prototype.__destroy__ = D.prototype.__destroy__ = function () {
  1435. yb(this.ptr)
  1436. }
  1437. E.prototype = Object.create(p.prototype)
  1438. E.prototype.constructor = E
  1439. E.prototype.__class__ = E
  1440. E.__cache__ = {}
  1441. a.AttributeOctahedronTransform = E
  1442. E.prototype.InitFromAttribute = E.prototype.InitFromAttribute = function (a) {
  1443. var c = this.ptr
  1444. a && 'object' === typeof a && (a = a.ptr)
  1445. return !!zb(c, a)
  1446. }
  1447. E.prototype.quantization_bits = E.prototype.quantization_bits = function () {
  1448. return Ab(this.ptr)
  1449. }
  1450. E.prototype.__destroy__ = E.prototype.__destroy__ = function () {
  1451. Bb(this.ptr)
  1452. }
  1453. q.prototype = Object.create(p.prototype)
  1454. q.prototype.constructor = q
  1455. q.prototype.__class__ = q
  1456. q.__cache__ = {}
  1457. a.PointAttribute = q
  1458. q.prototype.size = q.prototype.size = function () {
  1459. return Cb(this.ptr)
  1460. }
  1461. q.prototype.GetAttributeTransformData = q.prototype.GetAttributeTransformData = function () {
  1462. return N(Db(this.ptr), J)
  1463. }
  1464. q.prototype.attribute_type = q.prototype.attribute_type = function () {
  1465. return Eb(this.ptr)
  1466. }
  1467. q.prototype.data_type = q.prototype.data_type = function () {
  1468. return Fb(this.ptr)
  1469. }
  1470. q.prototype.num_components = q.prototype.num_components = function () {
  1471. return Gb(this.ptr)
  1472. }
  1473. q.prototype.normalized = q.prototype.normalized = function () {
  1474. return !!Hb(this.ptr)
  1475. }
  1476. q.prototype.byte_stride = q.prototype.byte_stride = function () {
  1477. return Ib(this.ptr)
  1478. }
  1479. q.prototype.byte_offset = q.prototype.byte_offset = function () {
  1480. return Jb(this.ptr)
  1481. }
  1482. q.prototype.unique_id = q.prototype.unique_id = function () {
  1483. return Kb(this.ptr)
  1484. }
  1485. q.prototype.__destroy__ = q.prototype.__destroy__ = function () {
  1486. Lb(this.ptr)
  1487. }
  1488. J.prototype = Object.create(p.prototype)
  1489. J.prototype.constructor = J
  1490. J.prototype.__class__ = J
  1491. J.__cache__ = {}
  1492. a.AttributeTransformData = J
  1493. J.prototype.transform_type = J.prototype.transform_type = function () {
  1494. return Mb(this.ptr)
  1495. }
  1496. J.prototype.__destroy__ = J.prototype.__destroy__ = function () {
  1497. Nb(this.ptr)
  1498. }
  1499. w.prototype = Object.create(p.prototype)
  1500. w.prototype.constructor = w
  1501. w.prototype.__class__ = w
  1502. w.__cache__ = {}
  1503. a.AttributeQuantizationTransform = w
  1504. w.prototype.InitFromAttribute = w.prototype.InitFromAttribute = function (a) {
  1505. var c = this.ptr
  1506. a && 'object' === typeof a && (a = a.ptr)
  1507. return !!Ob(c, a)
  1508. }
  1509. w.prototype.quantization_bits = w.prototype.quantization_bits = function () {
  1510. return Pb(this.ptr)
  1511. }
  1512. w.prototype.min_value = w.prototype.min_value = function (a) {
  1513. var c = this.ptr
  1514. a && 'object' === typeof a && (a = a.ptr)
  1515. return Qb(c, a)
  1516. }
  1517. w.prototype.range = w.prototype.range = function () {
  1518. return Rb(this.ptr)
  1519. }
  1520. w.prototype.__destroy__ = w.prototype.__destroy__ = function () {
  1521. Sb(this.ptr)
  1522. }
  1523. F.prototype = Object.create(p.prototype)
  1524. F.prototype.constructor = F
  1525. F.prototype.__class__ = F
  1526. F.__cache__ = {}
  1527. a.DracoInt8Array = F
  1528. F.prototype.GetValue = F.prototype.GetValue = function (a) {
  1529. var c = this.ptr
  1530. a && 'object' === typeof a && (a = a.ptr)
  1531. return Tb(c, a)
  1532. }
  1533. F.prototype.size = F.prototype.size = function () {
  1534. return Ub(this.ptr)
  1535. }
  1536. F.prototype.__destroy__ = F.prototype.__destroy__ = function () {
  1537. Vb(this.ptr)
  1538. }
  1539. r.prototype = Object.create(p.prototype)
  1540. r.prototype.constructor = r
  1541. r.prototype.__class__ = r
  1542. r.__cache__ = {}
  1543. a.MetadataQuerier = r
  1544. r.prototype.HasEntry = r.prototype.HasEntry = function (a, b) {
  1545. var c = this.ptr
  1546. n.prepare()
  1547. a && 'object' === typeof a && (a = a.ptr)
  1548. b = b && 'object' === typeof b ? b.ptr : V(b)
  1549. return !!Wb(c, a, b)
  1550. }
  1551. r.prototype.GetIntEntry = r.prototype.GetIntEntry = function (a, b) {
  1552. var c = this.ptr
  1553. n.prepare()
  1554. a && 'object' === typeof a && (a = a.ptr)
  1555. b = b && 'object' === typeof b ? b.ptr : V(b)
  1556. return Xb(c, a, b)
  1557. }
  1558. r.prototype.GetIntEntryArray = r.prototype.GetIntEntryArray = function (a, b, d) {
  1559. var c = this.ptr
  1560. n.prepare()
  1561. a && 'object' === typeof a && (a = a.ptr)
  1562. b = b && 'object' === typeof b ? b.ptr : V(b)
  1563. d && 'object' === typeof d && (d = d.ptr)
  1564. Yb(c, a, b, d)
  1565. }
  1566. r.prototype.GetDoubleEntry = r.prototype.GetDoubleEntry = function (a, b) {
  1567. var c = this.ptr
  1568. n.prepare()
  1569. a && 'object' === typeof a && (a = a.ptr)
  1570. b = b && 'object' === typeof b ? b.ptr : V(b)
  1571. return Zb(c, a, b)
  1572. }
  1573. r.prototype.GetStringEntry = r.prototype.GetStringEntry = function (a, b) {
  1574. var c = this.ptr
  1575. n.prepare()
  1576. a && 'object' === typeof a && (a = a.ptr)
  1577. b = b && 'object' === typeof b ? b.ptr : V(b)
  1578. return X($b(c, a, b))
  1579. }
  1580. r.prototype.NumEntries = r.prototype.NumEntries = function (a) {
  1581. var c = this.ptr
  1582. a && 'object' === typeof a && (a = a.ptr)
  1583. return ac(c, a)
  1584. }
  1585. r.prototype.GetEntryName = r.prototype.GetEntryName = function (a, b) {
  1586. var c = this.ptr
  1587. a && 'object' === typeof a && (a = a.ptr)
  1588. b && 'object' === typeof b && (b = b.ptr)
  1589. return X(bc(c, a, b))
  1590. }
  1591. r.prototype.__destroy__ = r.prototype.__destroy__ = function () {
  1592. cc(this.ptr)
  1593. }
  1594. G.prototype = Object.create(p.prototype)
  1595. G.prototype.constructor = G
  1596. G.prototype.__class__ = G
  1597. G.__cache__ = {}
  1598. a.DracoInt16Array = G
  1599. G.prototype.GetValue = G.prototype.GetValue = function (a) {
  1600. var c = this.ptr
  1601. a && 'object' === typeof a && (a = a.ptr)
  1602. return dc(c, a)
  1603. }
  1604. G.prototype.size = G.prototype.size = function () {
  1605. return ec(this.ptr)
  1606. }
  1607. G.prototype.__destroy__ = G.prototype.__destroy__ = function () {
  1608. fc(this.ptr)
  1609. }
  1610. H.prototype = Object.create(p.prototype)
  1611. H.prototype.constructor = H
  1612. H.prototype.__class__ = H
  1613. H.__cache__ = {}
  1614. a.DracoFloat32Array = H
  1615. H.prototype.GetValue = H.prototype.GetValue = function (a) {
  1616. var c = this.ptr
  1617. a && 'object' === typeof a && (a = a.ptr)
  1618. return gc(c, a)
  1619. }
  1620. H.prototype.size = H.prototype.size = function () {
  1621. return hc(this.ptr)
  1622. }
  1623. H.prototype.__destroy__ = H.prototype.__destroy__ = function () {
  1624. ic(this.ptr)
  1625. }
  1626. O.prototype = Object.create(p.prototype)
  1627. O.prototype.constructor = O
  1628. O.prototype.__class__ = O
  1629. O.__cache__ = {}
  1630. a.GeometryAttribute = O
  1631. O.prototype.__destroy__ = O.prototype.__destroy__ = function () {
  1632. jc(this.ptr)
  1633. }
  1634. K.prototype = Object.create(p.prototype)
  1635. K.prototype.constructor = K
  1636. K.prototype.__class__ = K
  1637. K.__cache__ = {}
  1638. a.DecoderBuffer = K
  1639. K.prototype.Init = K.prototype.Init = function (a, b) {
  1640. var c = this.ptr
  1641. n.prepare()
  1642. if ('object' == typeof a && 'object' === typeof a) {
  1643. var e = n.alloc(a, T)
  1644. n.copy(a, T, e)
  1645. a = e
  1646. }
  1647. b && 'object' === typeof b && (b = b.ptr)
  1648. kc(c, a, b)
  1649. }
  1650. K.prototype.__destroy__ = K.prototype.__destroy__ = function () {
  1651. lc(this.ptr)
  1652. }
  1653. g.prototype = Object.create(p.prototype)
  1654. g.prototype.constructor = g
  1655. g.prototype.__class__ = g
  1656. g.__cache__ = {}
  1657. a.Decoder = g
  1658. g.prototype.GetEncodedGeometryType = g.prototype.GetEncodedGeometryType = function (a) {
  1659. var c = this.ptr
  1660. a && 'object' === typeof a && (a = a.ptr)
  1661. return mc(c, a)
  1662. }
  1663. g.prototype.DecodeBufferToPointCloud = g.prototype.DecodeBufferToPointCloud = function (a, b) {
  1664. var c = this.ptr
  1665. a && 'object' === typeof a && (a = a.ptr)
  1666. b && 'object' === typeof b && (b = b.ptr)
  1667. return N(nc(c, a, b), x)
  1668. }
  1669. g.prototype.DecodeBufferToMesh = g.prototype.DecodeBufferToMesh = function (a, b) {
  1670. var c = this.ptr
  1671. a && 'object' === typeof a && (a = a.ptr)
  1672. b && 'object' === typeof b && (b = b.ptr)
  1673. return N(oc(c, a, b), x)
  1674. }
  1675. g.prototype.GetAttributeId = g.prototype.GetAttributeId = function (a, b) {
  1676. var c = this.ptr
  1677. a && 'object' === typeof a && (a = a.ptr)
  1678. b && 'object' === typeof b && (b = b.ptr)
  1679. return pc(c, a, b)
  1680. }
  1681. g.prototype.GetAttributeIdByName = g.prototype.GetAttributeIdByName = function (a, b) {
  1682. var c = this.ptr
  1683. n.prepare()
  1684. a && 'object' === typeof a && (a = a.ptr)
  1685. b = b && 'object' === typeof b ? b.ptr : V(b)
  1686. return qc(c, a, b)
  1687. }
  1688. g.prototype.GetAttributeIdByMetadataEntry = g.prototype.GetAttributeIdByMetadataEntry = function (a, b, d) {
  1689. var c = this.ptr
  1690. n.prepare()
  1691. a && 'object' === typeof a && (a = a.ptr)
  1692. b = b && 'object' === typeof b ? b.ptr : V(b)
  1693. d = d && 'object' === typeof d ? d.ptr : V(d)
  1694. return rc(c, a, b, d)
  1695. }
  1696. g.prototype.GetAttribute = g.prototype.GetAttribute = function (a, b) {
  1697. var c = this.ptr
  1698. a && 'object' === typeof a && (a = a.ptr)
  1699. b && 'object' === typeof b && (b = b.ptr)
  1700. return N(sc(c, a, b), q)
  1701. }
  1702. g.prototype.GetAttributeByUniqueId = g.prototype.GetAttributeByUniqueId = function (a, b) {
  1703. var c = this.ptr
  1704. a && 'object' === typeof a && (a = a.ptr)
  1705. b && 'object' === typeof b && (b = b.ptr)
  1706. return N(tc(c, a, b), q)
  1707. }
  1708. g.prototype.GetMetadata = g.prototype.GetMetadata = function (a) {
  1709. var c = this.ptr
  1710. a && 'object' === typeof a && (a = a.ptr)
  1711. return N(uc(c, a), L)
  1712. }
  1713. g.prototype.GetAttributeMetadata = g.prototype.GetAttributeMetadata = function (a, b) {
  1714. var c = this.ptr
  1715. a && 'object' === typeof a && (a = a.ptr)
  1716. b && 'object' === typeof b && (b = b.ptr)
  1717. return N(vc(c, a, b), L)
  1718. }
  1719. g.prototype.GetFaceFromMesh = g.prototype.GetFaceFromMesh = function (a, b, d) {
  1720. var c = this.ptr
  1721. a && 'object' === typeof a && (a = a.ptr)
  1722. b && 'object' === typeof b && (b = b.ptr)
  1723. d && 'object' === typeof d && (d = d.ptr)
  1724. return !!wc(c, a, b, d)
  1725. }
  1726. g.prototype.GetTriangleStripsFromMesh = g.prototype.GetTriangleStripsFromMesh = function (a, b) {
  1727. var c = this.ptr
  1728. a && 'object' === typeof a && (a = a.ptr)
  1729. b && 'object' === typeof b && (b = b.ptr)
  1730. return xc(c, a, b)
  1731. }
  1732. g.prototype.GetTrianglesUInt16Array = g.prototype.GetTrianglesUInt16Array = function (a, b, d) {
  1733. var c = this.ptr
  1734. a && 'object' === typeof a && (a = a.ptr)
  1735. b && 'object' === typeof b && (b = b.ptr)
  1736. d && 'object' === typeof d && (d = d.ptr)
  1737. return !!yc(c, a, b, d)
  1738. }
  1739. g.prototype.GetTrianglesUInt32Array = g.prototype.GetTrianglesUInt32Array = function (a, b, d) {
  1740. var c = this.ptr
  1741. a && 'object' === typeof a && (a = a.ptr)
  1742. b && 'object' === typeof b && (b = b.ptr)
  1743. d && 'object' === typeof d && (d = d.ptr)
  1744. return !!zc(c, a, b, d)
  1745. }
  1746. g.prototype.GetAttributeFloat = g.prototype.GetAttributeFloat = function (a, b, d) {
  1747. var c = this.ptr
  1748. a && 'object' === typeof a && (a = a.ptr)
  1749. b && 'object' === typeof b && (b = b.ptr)
  1750. d && 'object' === typeof d && (d = d.ptr)
  1751. return !!Ac(c, a, b, d)
  1752. }
  1753. g.prototype.GetAttributeFloatForAllPoints = g.prototype.GetAttributeFloatForAllPoints = function (a, b, d) {
  1754. var c = this.ptr
  1755. a && 'object' === typeof a && (a = a.ptr)
  1756. b && 'object' === typeof b && (b = b.ptr)
  1757. d && 'object' === typeof d && (d = d.ptr)
  1758. return !!Bc(c, a, b, d)
  1759. }
  1760. g.prototype.GetAttributeIntForAllPoints = g.prototype.GetAttributeIntForAllPoints = function (a, b, d) {
  1761. var c = this.ptr
  1762. a && 'object' === typeof a && (a = a.ptr)
  1763. b && 'object' === typeof b && (b = b.ptr)
  1764. d && 'object' === typeof d && (d = d.ptr)
  1765. return !!Cc(c, a, b, d)
  1766. }
  1767. g.prototype.GetAttributeInt8ForAllPoints = g.prototype.GetAttributeInt8ForAllPoints = function (a, b, d) {
  1768. var c = this.ptr
  1769. a && 'object' === typeof a && (a = a.ptr)
  1770. b && 'object' === typeof b && (b = b.ptr)
  1771. d && 'object' === typeof d && (d = d.ptr)
  1772. return !!Dc(c, a, b, d)
  1773. }
  1774. g.prototype.GetAttributeUInt8ForAllPoints = g.prototype.GetAttributeUInt8ForAllPoints = function (a, b, d) {
  1775. var c = this.ptr
  1776. a && 'object' === typeof a && (a = a.ptr)
  1777. b && 'object' === typeof b && (b = b.ptr)
  1778. d && 'object' === typeof d && (d = d.ptr)
  1779. return !!Ec(c, a, b, d)
  1780. }
  1781. g.prototype.GetAttributeInt16ForAllPoints = g.prototype.GetAttributeInt16ForAllPoints = function (a, b, d) {
  1782. var c = this.ptr
  1783. a && 'object' === typeof a && (a = a.ptr)
  1784. b && 'object' === typeof b && (b = b.ptr)
  1785. d && 'object' === typeof d && (d = d.ptr)
  1786. return !!Fc(c, a, b, d)
  1787. }
  1788. g.prototype.GetAttributeUInt16ForAllPoints = g.prototype.GetAttributeUInt16ForAllPoints = function (a, b, d) {
  1789. var c = this.ptr
  1790. a && 'object' === typeof a && (a = a.ptr)
  1791. b && 'object' === typeof b && (b = b.ptr)
  1792. d && 'object' === typeof d && (d = d.ptr)
  1793. return !!Gc(c, a, b, d)
  1794. }
  1795. g.prototype.GetAttributeInt32ForAllPoints = g.prototype.GetAttributeInt32ForAllPoints = function (a, b, d) {
  1796. var c = this.ptr
  1797. a && 'object' === typeof a && (a = a.ptr)
  1798. b && 'object' === typeof b && (b = b.ptr)
  1799. d && 'object' === typeof d && (d = d.ptr)
  1800. return !!Hc(c, a, b, d)
  1801. }
  1802. g.prototype.GetAttributeUInt32ForAllPoints = g.prototype.GetAttributeUInt32ForAllPoints = function (a, b, d) {
  1803. var c = this.ptr
  1804. a && 'object' === typeof a && (a = a.ptr)
  1805. b && 'object' === typeof b && (b = b.ptr)
  1806. d && 'object' === typeof d && (d = d.ptr)
  1807. return !!Ic(c, a, b, d)
  1808. }
  1809. g.prototype.GetAttributeDataArrayForAllPoints = g.prototype.GetAttributeDataArrayForAllPoints = function (a, b, d, e, f) {
  1810. var c = this.ptr
  1811. a && 'object' === typeof a && (a = a.ptr)
  1812. b && 'object' === typeof b && (b = b.ptr)
  1813. d && 'object' === typeof d && (d = d.ptr)
  1814. e && 'object' === typeof e && (e = e.ptr)
  1815. f && 'object' === typeof f && (f = f.ptr)
  1816. return !!Jc(c, a, b, d, e, f)
  1817. }
  1818. g.prototype.SkipAttributeTransform = g.prototype.SkipAttributeTransform = function (a) {
  1819. var b = this.ptr
  1820. a && 'object' === typeof a && (a = a.ptr)
  1821. Kc(b, a)
  1822. }
  1823. g.prototype.__destroy__ = g.prototype.__destroy__ = function () {
  1824. Lc(this.ptr)
  1825. }
  1826. y.prototype = Object.create(p.prototype)
  1827. y.prototype.constructor = y
  1828. y.prototype.__class__ = y
  1829. y.__cache__ = {}
  1830. a.Mesh = y
  1831. y.prototype.num_faces = y.prototype.num_faces = function () {
  1832. return Mc(this.ptr)
  1833. }
  1834. y.prototype.num_attributes = y.prototype.num_attributes = function () {
  1835. return Nc(this.ptr)
  1836. }
  1837. y.prototype.num_points = y.prototype.num_points = function () {
  1838. return Oc(this.ptr)
  1839. }
  1840. y.prototype.__destroy__ = y.prototype.__destroy__ = function () {
  1841. Pc(this.ptr)
  1842. }
  1843. Q.prototype = Object.create(p.prototype)
  1844. Q.prototype.constructor = Q
  1845. Q.prototype.__class__ = Q
  1846. Q.__cache__ = {}
  1847. a.VoidPtr = Q
  1848. Q.prototype.__destroy__ = Q.prototype.__destroy__ = function () {
  1849. Qc(this.ptr)
  1850. }
  1851. I.prototype = Object.create(p.prototype)
  1852. I.prototype.constructor = I
  1853. I.prototype.__class__ = I
  1854. I.__cache__ = {}
  1855. a.DracoInt32Array = I
  1856. I.prototype.GetValue = I.prototype.GetValue = function (a) {
  1857. var b = this.ptr
  1858. a && 'object' === typeof a && (a = a.ptr)
  1859. return Rc(b, a)
  1860. }
  1861. I.prototype.size = I.prototype.size = function () {
  1862. return Sc(this.ptr)
  1863. }
  1864. I.prototype.__destroy__ = I.prototype.__destroy__ = function () {
  1865. Tc(this.ptr)
  1866. }
  1867. L.prototype = Object.create(p.prototype)
  1868. L.prototype.constructor = L
  1869. L.prototype.__class__ = L
  1870. L.__cache__ = {}
  1871. a.Metadata = L
  1872. L.prototype.__destroy__ = L.prototype.__destroy__ = function () {
  1873. Uc(this.ptr)
  1874. }
  1875. ;(function () {
  1876. function c() {
  1877. a.OK = Vc()
  1878. a.DRACO_ERROR = Wc()
  1879. a.IO_ERROR = Xc()
  1880. a.INVALID_PARAMETER = Yc()
  1881. a.UNSUPPORTED_VERSION = Zc()
  1882. a.UNKNOWN_VERSION = $c()
  1883. a.DT_INVALID = ad()
  1884. a.DT_INT8 = bd()
  1885. a.DT_UINT8 = cd()
  1886. a.DT_INT16 = dd()
  1887. a.DT_UINT16 = ed()
  1888. a.DT_INT32 = fd()
  1889. a.DT_UINT32 = gd()
  1890. a.DT_INT64 = hd()
  1891. a.DT_UINT64 = id()
  1892. a.DT_FLOAT32 = jd()
  1893. a.DT_FLOAT64 = kd()
  1894. a.DT_BOOL = ld()
  1895. a.DT_TYPES_COUNT = md()
  1896. a.INVALID_GEOMETRY_TYPE = nd()
  1897. a.POINT_CLOUD = od()
  1898. a.TRIANGULAR_MESH = pd()
  1899. a.ATTRIBUTE_INVALID_TRANSFORM = qd()
  1900. a.ATTRIBUTE_NO_TRANSFORM = rd()
  1901. a.ATTRIBUTE_QUANTIZATION_TRANSFORM = sd()
  1902. a.ATTRIBUTE_OCTAHEDRON_TRANSFORM = td()
  1903. a.INVALID = ud()
  1904. a.POSITION = vd()
  1905. a.NORMAL = wd()
  1906. a.COLOR = xd()
  1907. a.TEX_COORD = yd()
  1908. a.GENERIC = zd()
  1909. }
  1910. Ba ? c() : Da.unshift(c)
  1911. })()
  1912. if ('function' === typeof a.onModuleParsed) a.onModuleParsed()
  1913. return m
  1914. }
  1915. })()
  1916. 'object' === typeof exports && 'object' === typeof module
  1917. ? (module.exports = DracoDecoderModule)
  1918. : 'function' === typeof define && define.amd
  1919. ? define([], function () {
  1920. return DracoDecoderModule
  1921. })
  1922. : 'object' === typeof exports && (exports.DracoDecoderModule = DracoDecoderModule)