lecodes-web-host 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1457 @@
1
+ async function createCreatorWeb(moduleArg = {}) {
2
+ var Module = moduleArg;
3
+ var thisProgram = "./this.program";
4
+ var _scriptName = import.meta.url;
5
+ var scriptDirectory = "";
6
+ function locateFile(path) {
7
+ if (Module["locateFile"]) {
8
+ return Module["locateFile"](path, scriptDirectory);
9
+ }
10
+ return scriptDirectory + path;
11
+ }
12
+ var readAsync;
13
+ {
14
+ try {
15
+ scriptDirectory = new URL(".", _scriptName).href;
16
+ } catch {
17
+ }
18
+ {
19
+ readAsync = async (url) => {
20
+ var response = await fetch(url, { credentials: "same-origin" });
21
+ if (response.ok) {
22
+ return response.arrayBuffer();
23
+ }
24
+ throw new Error(response.status + " : " + response.url);
25
+ };
26
+ }
27
+ }
28
+ var out = console.log.bind(console);
29
+ var err = console.error.bind(console);
30
+ var wasmBinary;
31
+ var ABORT = false;
32
+ class EmscriptenEH {
33
+ }
34
+ function updateMemoryViews() {
35
+ var b = wasmMemory.buffer;
36
+ HEAP8 = new Int8Array(b);
37
+ Module["HEAPU8"] = HEAPU8 = new Uint8Array(b);
38
+ Module["HEAPU16"] = new Uint16Array(b);
39
+ Module["HEAP32"] = HEAP32 = new Int32Array(b);
40
+ Module["HEAPU32"] = HEAPU32 = new Uint32Array(b);
41
+ Module["HEAPF32"] = HEAPF32 = new Float32Array(b);
42
+ Module["HEAPF64"] = new Float64Array(b);
43
+ new BigInt64Array(b);
44
+ new BigUint64Array(b);
45
+ }
46
+ function preRun() {
47
+ if (Module["preRun"]) {
48
+ if (typeof Module["preRun"] == "function") Module["preRun"] = [Module["preRun"]];
49
+ while (Module["preRun"].length) {
50
+ addOnPreRun(Module["preRun"].shift());
51
+ }
52
+ }
53
+ callRuntimeCallbacks(onPreRuns);
54
+ }
55
+ function initRuntime() {
56
+ wasmExports["yc"]();
57
+ }
58
+ function postRun() {
59
+ if (Module["postRun"]) {
60
+ if (typeof Module["postRun"] == "function") Module["postRun"] = [Module["postRun"]];
61
+ while (Module["postRun"].length) {
62
+ addOnPostRun(Module["postRun"].shift());
63
+ }
64
+ }
65
+ callRuntimeCallbacks(onPostRuns);
66
+ }
67
+ function abort(what) {
68
+ Module["onAbort"]?.(what);
69
+ what = `Aborted(${what})`;
70
+ err(what);
71
+ ABORT = true;
72
+ what += ". Build with -sASSERTIONS for more info.";
73
+ var e = new WebAssembly.RuntimeError(what);
74
+ throw e;
75
+ }
76
+ var wasmBinaryFile;
77
+ function findWasmBinary() {
78
+ if (Module["locateFile"]) {
79
+ return locateFile("creator-ui.wasm");
80
+ }
81
+ return new URL("" + new URL("../assets/creator-ui-DIc92ion.wasm", import.meta.url).href, import.meta.url).href;
82
+ }
83
+ function getBinarySync(file) {
84
+ if (file == wasmBinaryFile && wasmBinary) {
85
+ return new Uint8Array(wasmBinary);
86
+ }
87
+ throw "both async and sync fetching of the wasm failed";
88
+ }
89
+ async function getWasmBinary(binaryFile) {
90
+ if (!wasmBinary) {
91
+ try {
92
+ var response = await readAsync(binaryFile);
93
+ return new Uint8Array(response);
94
+ } catch {
95
+ }
96
+ }
97
+ return getBinarySync(binaryFile);
98
+ }
99
+ async function instantiateArrayBuffer(binaryFile, imports) {
100
+ try {
101
+ var binary = await getWasmBinary(binaryFile);
102
+ var instance = await WebAssembly.instantiate(binary, imports);
103
+ return instance;
104
+ } catch (reason) {
105
+ err(`failed to asynchronously prepare wasm: ${reason}`);
106
+ abort(reason);
107
+ }
108
+ }
109
+ async function instantiateAsync(binary, binaryFile, imports) {
110
+ if (!binary) {
111
+ try {
112
+ var response = fetch(binaryFile, { credentials: "same-origin" });
113
+ var instantiationResult = await WebAssembly.instantiateStreaming(response, imports);
114
+ return instantiationResult;
115
+ } catch (reason) {
116
+ err(`wasm streaming compile failed: ${reason}`);
117
+ err("falling back to ArrayBuffer instantiation");
118
+ }
119
+ }
120
+ return instantiateArrayBuffer(binaryFile, imports);
121
+ }
122
+ function getWasmImports() {
123
+ var imports = { a: wasmImports };
124
+ return imports;
125
+ }
126
+ async function createWasm() {
127
+ function receiveInstance(instance, module) {
128
+ wasmExports = instance.exports;
129
+ assignWasmExports(wasmExports);
130
+ updateMemoryViews();
131
+ return wasmExports;
132
+ }
133
+ function receiveInstantiationResult(result2) {
134
+ return receiveInstance(result2["instance"]);
135
+ }
136
+ var info = getWasmImports();
137
+ if (Module["instantiateWasm"]) {
138
+ return new Promise((resolve, reject) => {
139
+ Module["instantiateWasm"](info, (inst, mod) => {
140
+ resolve(receiveInstance(inst));
141
+ });
142
+ });
143
+ }
144
+ wasmBinaryFile ??= findWasmBinary();
145
+ var result = await instantiateAsync(wasmBinary, wasmBinaryFile, info);
146
+ var exports = receiveInstantiationResult(result);
147
+ return exports;
148
+ }
149
+ var HEAP32;
150
+ var HEAP8;
151
+ var HEAPF32;
152
+ var HEAPU32;
153
+ var HEAPU8;
154
+ var callRuntimeCallbacks = (callbacks) => {
155
+ while (callbacks.length > 0) {
156
+ callbacks.shift()(Module);
157
+ }
158
+ };
159
+ var onPostRuns = [];
160
+ var addOnPostRun = (cb) => onPostRuns.push(cb);
161
+ var onPreRuns = [];
162
+ var addOnPreRun = (cb) => onPreRuns.push(cb);
163
+ var stackRestore = (val) => __emscripten_stack_restore(val);
164
+ var stackSave = () => _emscripten_stack_get_current();
165
+ var exceptionCaught = [];
166
+ var ___cxa_begin_catch = (ptr) => {
167
+ var info = new ExceptionInfo(ptr);
168
+ if (!info.get_caught()) {
169
+ info.set_caught(true);
170
+ }
171
+ info.set_rethrown(false);
172
+ exceptionCaught.push(info);
173
+ return ___cxa_get_exception_ptr(ptr);
174
+ };
175
+ var ___cxa_end_catch = () => {
176
+ _setThrew(0, 0);
177
+ var info = exceptionCaught.pop();
178
+ ___cxa_decrement_exception_refcount(info.excPtr);
179
+ };
180
+ var findMatchingCatch = (args) => {
181
+ setTempRet0(0);
182
+ return 0;
183
+ };
184
+ var ___cxa_find_matching_catch_2 = () => findMatchingCatch();
185
+ var ___cxa_find_matching_catch_3 = (arg0) => findMatchingCatch();
186
+ var ___cxa_rethrow = () => {
187
+ if (!exceptionCaught.length) {
188
+ abort("no exception to throw");
189
+ }
190
+ var info = exceptionCaught.at(-1);
191
+ info.excPtr;
192
+ info.set_rethrown(true);
193
+ info.set_caught(false);
194
+ abort();
195
+ };
196
+ class ExceptionInfo {
197
+ constructor(excPtr) {
198
+ this.excPtr = excPtr;
199
+ this.ptr = excPtr - 24;
200
+ }
201
+ set_type(type) {
202
+ HEAPU32[this.ptr + 4 >> 2] = type;
203
+ }
204
+ get_type() {
205
+ return HEAPU32[this.ptr + 4 >> 2];
206
+ }
207
+ set_destructor(destructor) {
208
+ HEAPU32[this.ptr + 8 >> 2] = destructor;
209
+ }
210
+ get_destructor() {
211
+ return HEAPU32[this.ptr + 8 >> 2];
212
+ }
213
+ set_caught(caught) {
214
+ caught = caught ? 1 : 0;
215
+ HEAP8[this.ptr + 12] = caught;
216
+ }
217
+ get_caught() {
218
+ return HEAP8[this.ptr + 12] != 0;
219
+ }
220
+ set_rethrown(rethrown) {
221
+ rethrown = rethrown ? 1 : 0;
222
+ HEAP8[this.ptr + 13] = rethrown;
223
+ }
224
+ get_rethrown() {
225
+ return HEAP8[this.ptr + 13] != 0;
226
+ }
227
+ init(type, destructor) {
228
+ this.set_adjusted_ptr(0);
229
+ this.set_type(type);
230
+ this.set_destructor(destructor);
231
+ }
232
+ set_adjusted_ptr(adjustedPtr) {
233
+ HEAPU32[this.ptr + 16 >> 2] = adjustedPtr;
234
+ }
235
+ get_adjusted_ptr() {
236
+ return HEAPU32[this.ptr + 16 >> 2];
237
+ }
238
+ }
239
+ var ___cxa_throw = (ptr, type, destructor) => {
240
+ var info = new ExceptionInfo(ptr);
241
+ info.init(type, destructor);
242
+ abort();
243
+ };
244
+ var ___resumeException = (ptr) => {
245
+ abort();
246
+ };
247
+ var __abort_js = () => abort("");
248
+ var getHeapMax = () => 2147483648;
249
+ var alignMemory = (size, alignment) => Math.ceil(size / alignment) * alignment;
250
+ var growMemory = (size) => {
251
+ var oldHeapSize = wasmMemory.buffer.byteLength;
252
+ var pages = (size - oldHeapSize + 65535) / 65536 | 0;
253
+ try {
254
+ wasmMemory.grow(pages);
255
+ updateMemoryViews();
256
+ return 1;
257
+ } catch (e) {
258
+ }
259
+ };
260
+ var _emscripten_resize_heap = (requestedSize) => {
261
+ var oldSize = HEAPU8.length;
262
+ requestedSize >>>= 0;
263
+ var maxHeapSize = getHeapMax();
264
+ if (requestedSize > maxHeapSize) {
265
+ return false;
266
+ }
267
+ for (var cutDown = 1; cutDown <= 4; cutDown *= 2) {
268
+ var overGrownHeapSize = oldSize * (1 + 0.2 / cutDown);
269
+ overGrownHeapSize = Math.min(overGrownHeapSize, requestedSize + 100663296);
270
+ var newSize = Math.min(maxHeapSize, alignMemory(Math.max(requestedSize, overGrownHeapSize), 65536));
271
+ var replacement = growMemory(newSize);
272
+ if (replacement) {
273
+ return true;
274
+ }
275
+ }
276
+ return false;
277
+ };
278
+ var ENV = {};
279
+ var getExecutableName = () => thisProgram;
280
+ var getEnvStrings = () => {
281
+ if (!getEnvStrings.strings) {
282
+ var lang = (globalThis.navigator?.language ?? "C").replace("-", "_") + ".UTF-8";
283
+ var env = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: lang, _: getExecutableName() };
284
+ for (var x in ENV) {
285
+ if (ENV[x] === void 0) delete env[x];
286
+ else env[x] = ENV[x];
287
+ }
288
+ var strings = [];
289
+ for (var x in env) {
290
+ strings.push(`${x}=${env[x]}`);
291
+ }
292
+ getEnvStrings.strings = strings;
293
+ }
294
+ return getEnvStrings.strings;
295
+ };
296
+ var stringToUTF8Array = (str, heap, outIdx, maxBytesToWrite) => {
297
+ if (!(maxBytesToWrite > 0)) return 0;
298
+ var startIdx = outIdx;
299
+ var endIdx = outIdx + maxBytesToWrite - 1;
300
+ for (var i = 0; i < str.length; ++i) {
301
+ var u = str.codePointAt(i);
302
+ if (u <= 127) {
303
+ if (outIdx >= endIdx) break;
304
+ heap[outIdx++] = u;
305
+ } else if (u <= 2047) {
306
+ if (outIdx + 1 >= endIdx) break;
307
+ heap[outIdx++] = 192 | u >> 6;
308
+ heap[outIdx++] = 128 | u & 63;
309
+ } else if (u <= 65535) {
310
+ if (outIdx + 2 >= endIdx) break;
311
+ heap[outIdx++] = 224 | u >> 12;
312
+ heap[outIdx++] = 128 | u >> 6 & 63;
313
+ heap[outIdx++] = 128 | u & 63;
314
+ } else {
315
+ if (outIdx + 3 >= endIdx) break;
316
+ heap[outIdx++] = 240 | u >> 18;
317
+ heap[outIdx++] = 128 | u >> 12 & 63;
318
+ heap[outIdx++] = 128 | u >> 6 & 63;
319
+ heap[outIdx++] = 128 | u & 63;
320
+ i++;
321
+ }
322
+ }
323
+ heap[outIdx] = 0;
324
+ return outIdx - startIdx;
325
+ };
326
+ var stringToUTF8 = (str, outPtr, maxBytesToWrite) => stringToUTF8Array(str, HEAPU8, outPtr, maxBytesToWrite);
327
+ var _environ_get = (__environ, environ_buf) => {
328
+ var bufSize = 0;
329
+ var envp = 0;
330
+ for (var string of getEnvStrings()) {
331
+ var ptr = environ_buf + bufSize;
332
+ HEAPU32[__environ + envp >> 2] = ptr;
333
+ bufSize += stringToUTF8(string, ptr, Infinity) + 1;
334
+ envp += 4;
335
+ }
336
+ return 0;
337
+ };
338
+ var lengthBytesUTF8 = (str) => {
339
+ var len = 0;
340
+ for (var i = 0; i < str.length; ++i) {
341
+ var c = str.charCodeAt(i);
342
+ if (c <= 127) {
343
+ len++;
344
+ } else if (c <= 2047) {
345
+ len += 2;
346
+ } else if (c >= 55296 && c <= 57343) {
347
+ len += 4;
348
+ ++i;
349
+ } else {
350
+ len += 3;
351
+ }
352
+ }
353
+ return len;
354
+ };
355
+ var _environ_sizes_get = (penviron_count, penviron_buf_size) => {
356
+ var strings = getEnvStrings();
357
+ HEAPU32[penviron_count >> 2] = strings.length;
358
+ var bufSize = 0;
359
+ for (var string of strings) {
360
+ bufSize += lengthBytesUTF8(string) + 1;
361
+ }
362
+ HEAPU32[penviron_buf_size >> 2] = bufSize;
363
+ return 0;
364
+ };
365
+ var _fd_close = (fd) => 52;
366
+ function _fd_seek(fd, offset, whence, newOffset) {
367
+ return 70;
368
+ }
369
+ var printCharBuffers = [null, [], []];
370
+ var UTF8Decoder = globalThis.TextDecoder && new TextDecoder();
371
+ var findStringEnd = (heapOrArray, idx, maxBytesToRead, ignoreNul) => {
372
+ var maxIdx = idx + maxBytesToRead;
373
+ if (ignoreNul) return maxIdx;
374
+ while (heapOrArray[idx] && !(idx >= maxIdx)) ++idx;
375
+ return idx;
376
+ };
377
+ var UTF8ArrayToString = (heapOrArray, idx = 0, maxBytesToRead, ignoreNul) => {
378
+ var endPtr = findStringEnd(heapOrArray, idx, maxBytesToRead, ignoreNul);
379
+ if (endPtr - idx > 16 && heapOrArray.buffer && UTF8Decoder) {
380
+ return UTF8Decoder.decode(heapOrArray.subarray(idx, endPtr));
381
+ }
382
+ var str = "";
383
+ while (idx < endPtr) {
384
+ var u0 = heapOrArray[idx++];
385
+ if (!(u0 & 128)) {
386
+ str += String.fromCharCode(u0);
387
+ continue;
388
+ }
389
+ var u1 = heapOrArray[idx++] & 63;
390
+ if ((u0 & 224) == 192) {
391
+ str += String.fromCharCode((u0 & 31) << 6 | u1);
392
+ continue;
393
+ }
394
+ var u2 = heapOrArray[idx++] & 63;
395
+ if ((u0 & 240) == 224) {
396
+ u0 = (u0 & 15) << 12 | u1 << 6 | u2;
397
+ } else {
398
+ u0 = (u0 & 7) << 18 | u1 << 12 | u2 << 6 | heapOrArray[idx++] & 63;
399
+ }
400
+ if (u0 < 65536) {
401
+ str += String.fromCharCode(u0);
402
+ } else {
403
+ var ch = u0 - 65536;
404
+ str += String.fromCharCode(55296 | ch >> 10, 56320 | ch & 1023);
405
+ }
406
+ }
407
+ return str;
408
+ };
409
+ var printChar = (stream, curr) => {
410
+ var buffer = printCharBuffers[stream];
411
+ if (curr === 0 || curr === 10) {
412
+ (stream === 1 ? out : err)(UTF8ArrayToString(buffer));
413
+ buffer.length = 0;
414
+ } else {
415
+ buffer.push(curr);
416
+ }
417
+ };
418
+ var UTF8ToString = (ptr, maxBytesToRead, ignoreNul) => ptr ? UTF8ArrayToString(HEAPU8, ptr, maxBytesToRead, ignoreNul) : "";
419
+ var _fd_write = (fd, iov, iovcnt, pnum) => {
420
+ var num = 0;
421
+ for (var i = 0; i < iovcnt; i++) {
422
+ var ptr = HEAPU32[iov >> 2];
423
+ var len = HEAPU32[iov + 4 >> 2];
424
+ iov += 8;
425
+ for (var j = 0; j < len; j++) {
426
+ printChar(fd, HEAPU8[ptr + j]);
427
+ }
428
+ num += len;
429
+ }
430
+ HEAPU32[pnum >> 2] = num;
431
+ return 0;
432
+ };
433
+ var getWasmTableEntry = (funcPtr) => wasmTable.get(funcPtr);
434
+ var stringToNewUTF8 = (str) => {
435
+ var size = lengthBytesUTF8(str) + 1;
436
+ var ret = _malloc(size);
437
+ if (ret) stringToUTF8(str, ret, size);
438
+ return ret;
439
+ };
440
+ var updateTableMap = (offset, count) => {
441
+ if (functionsInTableMap) {
442
+ for (var i = offset; i < offset + count; i++) {
443
+ var item = getWasmTableEntry(i);
444
+ if (item) {
445
+ functionsInTableMap.set(item, i);
446
+ }
447
+ }
448
+ }
449
+ };
450
+ var functionsInTableMap;
451
+ var getFunctionAddress = (func) => {
452
+ if (!functionsInTableMap) {
453
+ functionsInTableMap = /* @__PURE__ */ new WeakMap();
454
+ updateTableMap(0, wasmTable.length);
455
+ }
456
+ return functionsInTableMap.get(func) || 0;
457
+ };
458
+ var freeTableIndexes = [];
459
+ var getEmptyTableSlot = () => {
460
+ if (freeTableIndexes.length) {
461
+ return freeTableIndexes.pop();
462
+ }
463
+ return wasmTable["grow"](1);
464
+ };
465
+ var setWasmTableEntry = (idx, func) => wasmTable.set(idx, func);
466
+ var uleb128EncodeWithLen = (arr) => {
467
+ const n = arr.length;
468
+ return [n % 128 | 128, n >> 7, ...arr];
469
+ };
470
+ var wasmTypeCodes = { i: 127, p: 127, j: 126, f: 125, d: 124, e: 111 };
471
+ var generateTypePack = (types) => uleb128EncodeWithLen(Array.from(types, (type) => {
472
+ var code = wasmTypeCodes[type];
473
+ return code;
474
+ }));
475
+ var convertJsFunctionToWasm = (func, sig) => {
476
+ var bytes = Uint8Array.of(0, 97, 115, 109, 1, 0, 0, 0, 1, ...uleb128EncodeWithLen([1, 96, ...generateTypePack(sig.slice(1)), ...generateTypePack(sig[0] === "v" ? "" : sig[0])]), 2, 7, 1, 1, 101, 1, 102, 0, 0, 7, 5, 1, 1, 102, 0, 0);
477
+ var module = new WebAssembly.Module(bytes);
478
+ var instance = new WebAssembly.Instance(module, { e: { f: func } });
479
+ var wrappedFunc = instance.exports["f"];
480
+ return wrappedFunc;
481
+ };
482
+ var addFunction = (func, sig) => {
483
+ var rtn = getFunctionAddress(func);
484
+ if (rtn) {
485
+ return rtn;
486
+ }
487
+ var ret = getEmptyTableSlot();
488
+ try {
489
+ setWasmTableEntry(ret, func);
490
+ } catch (err2) {
491
+ if (!(err2 instanceof TypeError)) {
492
+ throw err2;
493
+ }
494
+ var wrapped = convertJsFunctionToWasm(func, sig);
495
+ setWasmTableEntry(ret, wrapped);
496
+ }
497
+ functionsInTableMap.set(func, ret);
498
+ return ret;
499
+ };
500
+ var removeFunction = (index) => {
501
+ functionsInTableMap.delete(getWasmTableEntry(index));
502
+ setWasmTableEntry(index, null);
503
+ freeTableIndexes.push(index);
504
+ };
505
+ {
506
+ if (Module["noExitRuntime"]) Module["noExitRuntime"];
507
+ if (Module["print"]) out = Module["print"];
508
+ if (Module["printErr"]) err = Module["printErr"];
509
+ if (Module["wasmBinary"]) wasmBinary = Module["wasmBinary"];
510
+ if (Module["arguments"]) Module["arguments"];
511
+ if (Module["thisProgram"]) thisProgram = Module["thisProgram"];
512
+ if (Module["preInit"]) {
513
+ if (typeof Module["preInit"] == "function") Module["preInit"] = [Module["preInit"]];
514
+ while (Module["preInit"].length > 0) {
515
+ Module["preInit"].shift()();
516
+ }
517
+ }
518
+ }
519
+ Module["ENV"] = ENV;
520
+ Module["addFunction"] = addFunction;
521
+ Module["removeFunction"] = removeFunction;
522
+ Module["UTF8ToString"] = UTF8ToString;
523
+ Module["stringToUTF8"] = stringToUTF8;
524
+ Module["lengthBytesUTF8"] = lengthBytesUTF8;
525
+ Module["stringToNewUTF8"] = stringToNewUTF8;
526
+ function jsb_init(out2) {
527
+ Module.jsb._init(out2);
528
+ }
529
+ function jsb_dup(idx) {
530
+ Module.jsb.dup(idx);
531
+ }
532
+ function jsb_release(idx) {
533
+ Module.jsb.release(idx);
534
+ }
535
+ function jsb_global(ctx) {
536
+ Module.jsb.global(ctx);
537
+ }
538
+ function jsb_get(lo, hi, key) {
539
+ Module.jsb.get(lo, hi, UTF8ToString(key));
540
+ }
541
+ function jsb_getIndex(lo, hi, i) {
542
+ Module.jsb.getIndex(lo, hi, i);
543
+ }
544
+ function jsb_has(lo, hi, key) {
545
+ return Module.jsb.has(lo, hi, UTF8ToString(key)) ? 1 : 0;
546
+ }
547
+ function jsb_set(obj, key, lo, hi) {
548
+ Module.jsb.set(obj, UTF8ToString(key), lo, hi);
549
+ }
550
+ function jsb_setIndex(obj, i, lo, hi) {
551
+ Module.jsb.setIndex(obj, i, lo, hi);
552
+ }
553
+ function jsb_keys(lo, hi, countOut) {
554
+ return Module.jsb.keys(lo, hi, countOut);
555
+ }
556
+ function jsb_newObject(classId, opaque) {
557
+ Module.jsb.newObject(classId, opaque);
558
+ }
559
+ function jsb_newArray() {
560
+ Module.jsb.newArray();
561
+ }
562
+ function jsb_newString(s, len) {
563
+ Module.jsb.newString(UTF8ToString(s, len));
564
+ }
565
+ function jsb_str(lo, hi, lenOut) {
566
+ return Module.jsb.str(lo, hi, lenOut);
567
+ }
568
+ function jsb_logString(lo, hi) {
569
+ return Module.jsb.logString(lo, hi);
570
+ }
571
+ function jsb_toNumber(idx) {
572
+ return Module.jsb.toNumber(idx);
573
+ }
574
+ function jsb_truthy(idx) {
575
+ return Module.jsb.truthy(idx) ? 1 : 0;
576
+ }
577
+ function jsb_newError(msg) {
578
+ Module.jsb.newError(UTF8ToString(msg));
579
+ }
580
+ function jsb_throw(kind, msg) {
581
+ Module.jsb.throwNew(kind, UTF8ToString(msg));
582
+ }
583
+ function jsb_takeException() {
584
+ Module.jsb.takeException();
585
+ }
586
+ function jsb_call(ctx, fn, thisLo, thisHi, argc, argv) {
587
+ Module.jsb.call(ctx, fn, thisLo, thisHi, argc, argv);
588
+ }
589
+ function jsb_eval(ctx, code, len, filename) {
590
+ Module.jsb.eval(ctx, UTF8ToString(code, len), UTF8ToString(filename));
591
+ }
592
+ function jsb_newContext() {
593
+ return Module.jsb.newContext();
594
+ }
595
+ function jsb_freeContext(ctx) {
596
+ Module.jsb.freeContext(ctx);
597
+ }
598
+ function jsb_parseJson(text, len) {
599
+ Module.jsb.parseJson(UTF8ToString(text, len));
600
+ }
601
+ function jsb_typedArray(kind, data, bytes) {
602
+ Module.jsb.typedArray(kind, data, bytes);
603
+ }
604
+ function jsb_arrayIn(idx, elem, mode, sizeOut) {
605
+ return Module.jsb.arrayIn(idx, elem, mode, sizeOut);
606
+ }
607
+ function jsb_arrayOut(idx, data, bytes) {
608
+ Module.jsb.arrayOut(idx, data, bytes);
609
+ }
610
+ function jsb_makeFunction(ctx, k, name, length) {
611
+ Module.jsb.makeFunction(ctx, k, name ? UTF8ToString(name) : "", length);
612
+ }
613
+ function jsb_defineMethod(ctx, obj, name, fnIndex, length, getter) {
614
+ Module.jsb.defineMethod(ctx, obj, UTF8ToString(name), fnIndex, length, getter);
615
+ }
616
+ function jsb_gc() {
617
+ Module.jsb.gc();
618
+ }
619
+ function jshost_table(table) {
620
+ return Module.jsb.host[UTF8ToString(table)] ? 1 : 0;
621
+ }
622
+ function jshost_has(table, slot) {
623
+ const t = Module.jsb.host[UTF8ToString(table)];
624
+ return t && typeof t[UTF8ToString(slot)] === "function" ? 1 : 0;
625
+ }
626
+ function jshost_fieldString(table, field) {
627
+ const t = Module.jsb.host[UTF8ToString(table)];
628
+ const v = t ? t[UTF8ToString(field)] : void 0;
629
+ return v == null ? 0 : stringToNewUTF8(String(v));
630
+ }
631
+ function jshost_fieldNumber(table, field) {
632
+ const t = Module.jsb.host[UTF8ToString(table)];
633
+ const v = t ? Number(t[UTF8ToString(field)]) : 0;
634
+ return v === v ? v : 0;
635
+ }
636
+ function jshost_gl_getGLContext() {
637
+ return Module.jsb.host.gl.getGLContext() | 0;
638
+ }
639
+ function jshost_gl_engineCreated() {
640
+ Module.jsb.host.gl.engineCreated();
641
+ }
642
+ function jshost_gl_createGLView() {
643
+ Module.jsb.host.gl.createGLView();
644
+ }
645
+ function jshost_gl_closeScene() {
646
+ Module.jsb.host.gl.closeScene();
647
+ }
648
+ function jshost_gl_createTexture(systemId, flags, onComplete, onReject) {
649
+ const $g = Module.jsb.group(onComplete, onReject);
650
+ Module.jsb.host.gl.createTexture(systemId, flags, Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g));
651
+ }
652
+ function jshost_gl_createMediaPlayerTexture(playerId) {
653
+ return Module.jsb.host.gl.createMediaPlayerTexture(playerId) || 0;
654
+ }
655
+ function jshost_gl_launchAR(sceneId, onComplete, onReject) {
656
+ const $g = Module.jsb.group(onComplete, onReject);
657
+ Module.jsb.host.gl.launchAR(sceneId, Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g));
658
+ }
659
+ function jshost_gl_stopAR() {
660
+ Module.jsb.host.gl.stopAR();
661
+ }
662
+ function jshost_gl_launchVR(sceneId, onComplete, onReject) {
663
+ const $g = Module.jsb.group(onComplete, onReject);
664
+ Module.jsb.host.gl.launchVR(sceneId, Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g));
665
+ }
666
+ function jshost_gl_stopVR() {
667
+ Module.jsb.host.gl.stopVR();
668
+ }
669
+ function jshost_gl_createARController(sceneId, cameraId, mode) {
670
+ Module.jsb.host.gl.createARController(sceneId, cameraId, mode ? UTF8ToString(mode) : null);
671
+ }
672
+ function jshost_gl_createRootAnchor(sceneId, entityId) {
673
+ Module.jsb.host.gl.createRootAnchor(sceneId, entityId);
674
+ }
675
+ function jshost_gl_createAnchor(sceneId, entityId, physicalWidth, systemId) {
676
+ Module.jsb.host.gl.createAnchor(sceneId, entityId, physicalWidth, systemId);
677
+ }
678
+ function jshost_scene2d_open2DScene(sceneId) {
679
+ Module.jsb.host.scene2d.open2DScene(sceneId);
680
+ }
681
+ function jshost_scene2d_close2DScene() {
682
+ Module.jsb.host.scene2d.close2DScene();
683
+ }
684
+ function jshost_scene2d_init2D() {
685
+ Module.jsb.host.scene2d.init2D();
686
+ }
687
+ function jshost_ui_nodeFactory(id, type, parent, index) {
688
+ Module.jsb.host.ui.nodeFactory(id, type ? UTF8ToString(type) : null, parent, index);
689
+ }
690
+ function jshost_ui_setPropertyString(id, prop, value) {
691
+ Module.jsb.host.ui.setPropertyString(id, prop ? UTF8ToString(prop) : null, value ? UTF8ToString(value) : null);
692
+ }
693
+ function jshost_ui_setPropertyInt(id, prop, value) {
694
+ Module.jsb.host.ui.setPropertyInt(id, prop ? UTF8ToString(prop) : null, value);
695
+ }
696
+ function jshost_ui_setFlags(id, mask) {
697
+ Module.jsb.host.ui.setFlags(id, mask);
698
+ }
699
+ function jshost_ui_insertNode(parent, child, index) {
700
+ Module.jsb.host.ui.insertNode(parent, child, index);
701
+ }
702
+ function jshost_ui_removeNode(parent, child) {
703
+ Module.jsb.host.ui.removeNode(parent, child);
704
+ }
705
+ function jshost_ui_releaseNode(id) {
706
+ Module.jsb.host.ui.releaseNode(id);
707
+ }
708
+ function jshost_ui_openView(kind, node, id, viewName, paramsJson, above) {
709
+ Module.jsb.host.ui.openView(kind, node, id, viewName ? UTF8ToString(viewName) : null, paramsJson ? UTF8ToString(paramsJson) : null, !!above);
710
+ }
711
+ function jshost_ui_dropView(kind, node, id) {
712
+ Module.jsb.host.ui.dropView(kind, node, id);
713
+ }
714
+ function jshost_ui_closeView() {
715
+ Module.jsb.host.ui.closeView();
716
+ }
717
+ function jshost_ui_isViewSupported(name) {
718
+ return Module.jsb.host.ui.isViewSupported(name ? UTF8ToString(name) : null) ? 1 : 0;
719
+ }
720
+ function jshost_ui_viewVersion(name) {
721
+ return Module.jsb.host.ui.viewVersion(name ? UTF8ToString(name) : null) || 0;
722
+ }
723
+ function jshost_ui_viewCall_js(viewId, method, args, onComplete, onReject) {
724
+ const $g = Module.jsb.group(onComplete, onReject);
725
+ Module.jsb.host.ui.viewCall(viewId, method ? UTF8ToString(method) : null, Module.jsb.valueAt(args), Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g));
726
+ }
727
+ function jshost_ui_widgetOpen(node, ownerKind, ownerId, ownerNode) {
728
+ Module.jsb.host.ui.widgetOpen(node, ownerKind, ownerId, ownerNode);
729
+ }
730
+ function jshost_ui_widgetClose(node) {
731
+ Module.jsb.host.ui.widgetClose(node);
732
+ }
733
+ function jshost_ui_registerFont(url, fontFamily, weight, style, onComplete, onReject) {
734
+ const $g = Module.jsb.group(onComplete, onReject);
735
+ Module.jsb.host.ui.registerFont(url ? UTF8ToString(url) : null, fontFamily ? UTF8ToString(fontFamily) : null, weight, style, Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g));
736
+ }
737
+ function jshost_ui_showToast(message, duration) {
738
+ Module.jsb.host.ui.showToast(message ? UTF8ToString(message) : null, duration);
739
+ }
740
+ function jshost_ui_getButtonPressed(node) {
741
+ return Module.jsb.host.ui.getButtonPressed(node) ? 1 : 0;
742
+ }
743
+ function jshost_ui_getTextValue(node) {
744
+ const $r = Module.jsb.host.ui.getTextValue(node);
745
+ return $r == null ? 0 : stringToNewUTF8(String($r));
746
+ }
747
+ function jshost_ui_getBoundingRect(node, out2) {
748
+ const $r = Module.jsb.host.ui.getBoundingRect(node);
749
+ if (!$r) return 0;
750
+ for (let $i = 0; $i < 4; $i++) HEAPF32[(out2 >> 2) + $i] = $r[$i] || 0;
751
+ return 1;
752
+ }
753
+ function jshost_ui_touchHandler(pointerId, hasMove, claim, node) {
754
+ Module.jsb.host.ui.touchHandler(pointerId, !!hasMove, claim, node);
755
+ }
756
+ function jshost_ui_longPressHandler(pointerId, node) {
757
+ Module.jsb.host.ui.longPressHandler(pointerId, node);
758
+ }
759
+ function jshost_ui_vlistScroll(node, scrollY, animated) {
760
+ Module.jsb.host.ui.vlistScroll(node, scrollY, !!animated);
761
+ }
762
+ function jshost_ui_pagerCommand(node, cmd, animated) {
763
+ Module.jsb.host.ui.pagerCommand(node, cmd ? UTF8ToString(cmd) : null, !!animated);
764
+ }
765
+ function jshost_ui_pagerShowPage(node, page, above) {
766
+ Module.jsb.host.ui.pagerShowPage(node, page, !!above);
767
+ }
768
+ function jshost_ui_pagerDropPage(node, page) {
769
+ Module.jsb.host.ui.pagerDropPage(node, page);
770
+ }
771
+ function jshost_ui_pagerPageMounted(page, mounted) {
772
+ Module.jsb.host.ui.pagerPageMounted(page, !!mounted);
773
+ }
774
+ function jshost_ui_tweenClaim(node, prop, lanes, samples, samplesCount, durationMs, delayMs, iterations, pingPong, rate) {
775
+ return Module.jsb.host.ui.tweenClaim(node, prop ? UTF8ToString(prop) : null, lanes, HEAPF32.subarray(samples >> 2, (samples >> 2) + samplesCount), durationMs, delayMs, iterations, !!pingPong, rate) ? 1 : 0;
776
+ }
777
+ function jshost_ui_tweenRelease(node, prop, reason) {
778
+ Module.jsb.host.ui.tweenRelease(node, prop ? UTF8ToString(prop) : null, reason);
779
+ }
780
+ function jshost_canvas_paint(surfaceId, pw, ph, scale, words, wordsCount, strings, stringsCount) {
781
+ Module.jsb.host.canvas.paint(surfaceId, pw, ph, scale, HEAPF32.subarray(words >> 2, (words >> 2) + wordsCount), Module.jsb.strings(strings, stringsCount));
782
+ }
783
+ function jshost_canvas_measureText(text, family, size, weight, italic, out2) {
784
+ Module.jsb.host.canvas.measureText(text ? UTF8ToString(text) : null, family ? UTF8ToString(family) : null, size, weight, !!italic, HEAPF32.subarray(out2 >> 2, (out2 >> 2) + 16));
785
+ }
786
+ function jshost_canvas_decodeImage(bufferId, surfaceId, size) {
787
+ return Module.jsb.host.canvas.decodeImage(bufferId, surfaceId, HEAP32.subarray(size >> 2, (size >> 2) + 16)) ? 1 : 0;
788
+ }
789
+ function jshost_canvas_readPixels(surfaceId, size) {
790
+ const $r = Module.jsb.host.canvas.readPixels(surfaceId, HEAP32.subarray(size >> 2, (size >> 2) + 16));
791
+ return Module.jsb.bytesOut($r, 0);
792
+ }
793
+ function jshost_canvas_releaseSurface(surfaceId) {
794
+ Module.jsb.host.canvas.releaseSurface(surfaceId);
795
+ }
796
+ function jshost_app_state() {
797
+ const $r = Module.jsb.host.app.state();
798
+ return $r == null ? 0 : stringToNewUTF8(String($r));
799
+ }
800
+ function jshost_app_isOnline() {
801
+ return Module.jsb.host.app.isOnline() ? 1 : 0;
802
+ }
803
+ function jshost_app_openUrl(url) {
804
+ Module.jsb.host.app.openUrl(url ? UTF8ToString(url) : null);
805
+ }
806
+ function jshost_app_setOrientation(mode) {
807
+ Module.jsb.host.app.setOrientation(mode ? UTF8ToString(mode) : null);
808
+ }
809
+ function jshost_app_worldChange(projectUuid, trusted) {
810
+ Module.jsb.host.app.worldChange(projectUuid ? UTF8ToString(projectUuid) : null, !!trusted);
811
+ }
812
+ function jshost_app_exit() {
813
+ Module.jsb.host.app.exit();
814
+ }
815
+ function jshost_device_setPreciseTouch(enabled) {
816
+ Module.jsb.host.device.setPreciseTouch(!!enabled);
817
+ }
818
+ function jshost_device_vibrate(style) {
819
+ Module.jsb.host.device.vibrate(style ? UTF8ToString(style) : null);
820
+ }
821
+ function jshost_device_motionAvailable() {
822
+ return Module.jsb.host.device.motionAvailable() ? 1 : 0;
823
+ }
824
+ function jshost_device_motionStart(interval) {
825
+ return Module.jsb.host.device.motionStart(interval) ? 1 : 0;
826
+ }
827
+ function jshost_device_motionStop() {
828
+ Module.jsb.host.device.motionStop();
829
+ }
830
+ function jshost_device_motionSample(out2) {
831
+ const $r = Module.jsb.host.device.motionSample();
832
+ if (!$r) return 0;
833
+ for (let $i = 0; $i < 8; $i++) HEAPF32[(out2 >> 2) + $i] = $r[$i] || 0;
834
+ return 1;
835
+ }
836
+ function jshost_device_clipboardWrite(text) {
837
+ Module.jsb.host.device.clipboardWrite(text ? UTF8ToString(text) : null);
838
+ }
839
+ function jshost_device_clipboardRead(onComplete, onReject) {
840
+ const $g = Module.jsb.group(onComplete, onReject);
841
+ Module.jsb.host.device.clipboardRead(Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g));
842
+ }
843
+ function jshost_device_share(systemId, text) {
844
+ Module.jsb.host.device.share(systemId, text ? UTF8ToString(text) : null);
845
+ }
846
+ function jshost_device_openFilePicker(onComplete, onReject, multiple, accept) {
847
+ const $g = Module.jsb.group(onComplete, onReject);
848
+ Module.jsb.host.device.openFilePicker(Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g), !!multiple, accept ? UTF8ToString(accept) : null);
849
+ }
850
+ function jshost_device_requestCamera(onComplete, onReject) {
851
+ const $g = Module.jsb.group(onComplete, onReject);
852
+ Module.jsb.host.device.requestCamera(Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g));
853
+ }
854
+ function jshost_fetch_local(path) {
855
+ return Module.jsb.host.fetch.local(path ? UTF8ToString(path) : null) || 0;
856
+ }
857
+ function jshost_fetch_dispose(systemId) {
858
+ Module.jsb.host.fetch.dispose(systemId);
859
+ }
860
+ function jshost_fetch_request(url, method, headers, headersCount, body, form, formCount, onComplete, onReject, onProgress) {
861
+ const $g = Module.jsb.group(onComplete, onReject, onProgress);
862
+ Module.jsb.host.fetch.request(url ? UTF8ToString(url) : null, method ? UTF8ToString(method) : null, Module.jsb.strings(headers, headersCount), body ? UTF8ToString(body) : null, Array.from({ length: formCount }, (_, $i) => ({ key: HEAPU32[form + $i * 16 + 0 >> 2] ? UTF8ToString(HEAPU32[form + $i * 16 + 0 >> 2]) : null, value: HEAPU32[form + $i * 16 + 4 >> 2] ? UTF8ToString(HEAPU32[form + $i * 16 + 4 >> 2]) : null, bufferId: HEAP32[form + $i * 16 + 8 >> 2], filename: HEAPU32[form + $i * 16 + 12 >> 2] ? UTF8ToString(HEAPU32[form + $i * 16 + 12 >> 2]) : null })), Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g), Module.jsb.callback(onProgress, $g));
863
+ }
864
+ function jshost_fetch_buffer(id, addByte, outSize) {
865
+ const $r = Module.jsb.host.fetch.buffer(id, !!addByte);
866
+ return Module.jsb.bytesOut($r, outSize);
867
+ }
868
+ function jshost_fetch_bufferSlice(id, start, end, addByte, outSize) {
869
+ const $r = Module.jsb.host.fetch.bufferSlice(id, start, end, !!addByte);
870
+ return Module.jsb.bytesOut($r, outSize);
871
+ }
872
+ function jshost_fetch_systemBuffer(id, outSize) {
873
+ const $r = Module.jsb.host.fetch.systemBuffer(id);
874
+ return Module.jsb.bytesOut($r, outSize);
875
+ }
876
+ function jshost_fetch_putBuffer(bytes, bytesSize) {
877
+ return Module.jsb.host.fetch.putBuffer(HEAPU8.subarray(bytes, bytes + bytesSize)) || 0;
878
+ }
879
+ function jshost_files_readBytes(path, onComplete, onReject) {
880
+ const $g = Module.jsb.group(onComplete, onReject);
881
+ Module.jsb.host.files.readBytes(path ? UTF8ToString(path) : null, Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g));
882
+ }
883
+ function jshost_files_readText(path, onComplete, onReject) {
884
+ const $g = Module.jsb.group(onComplete, onReject);
885
+ Module.jsb.host.files.readText(path ? UTF8ToString(path) : null, Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g));
886
+ }
887
+ function jshost_files_remove(path, recursive, onComplete, onReject) {
888
+ const $g = Module.jsb.group(onComplete, onReject);
889
+ Module.jsb.host.files.remove(path ? UTF8ToString(path) : null, !!recursive, Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g));
890
+ }
891
+ function jshost_files_mkdir(path, onComplete, onReject) {
892
+ const $g = Module.jsb.group(onComplete, onReject);
893
+ Module.jsb.host.files.mkdir(path ? UTF8ToString(path) : null, Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g));
894
+ }
895
+ function jshost_files_list(path, recursive, onComplete, onReject) {
896
+ const $g = Module.jsb.group(onComplete, onReject);
897
+ Module.jsb.host.files.list(path ? UTF8ToString(path) : null, !!recursive, Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g));
898
+ }
899
+ function jshost_files_stat(path, onComplete, onReject) {
900
+ const $g = Module.jsb.group(onComplete, onReject);
901
+ Module.jsb.host.files.stat(path ? UTF8ToString(path) : null, Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g));
902
+ }
903
+ function jshost_files_write(path, data, dataSize, append, onComplete, onReject) {
904
+ const $g = Module.jsb.group(onComplete, onReject);
905
+ Module.jsb.host.files.write(path ? UTF8ToString(path) : null, HEAPU8.subarray(data, data + dataSize), !!append, Module.jsb.callback(onComplete, $g), Module.jsb.callback(onReject, $g));
906
+ }
907
+ function jshost_storage_load(name) {
908
+ const $r = Module.jsb.host.storage.load(name ? UTF8ToString(name) : null);
909
+ return $r == null ? 0 : stringToNewUTF8(String($r));
910
+ }
911
+ function jshost_storage_save(name, json) {
912
+ Module.jsb.host.storage.save(name ? UTF8ToString(name) : null, json ? UTF8ToString(json) : null);
913
+ }
914
+ function jshost_socket_send(id, message) {
915
+ Module.jsb.host.socket.send(id, message ? UTF8ToString(message) : null);
916
+ }
917
+ function jshost_socket_open(url, onMessage) {
918
+ const $g = null;
919
+ return Module.jsb.host.socket.open(url ? UTF8ToString(url) : null, Module.jsb.callback(onMessage, $g)) || 0;
920
+ }
921
+ function jshost_socket_close(id) {
922
+ Module.jsb.host.socket.close(id);
923
+ }
924
+ function jshost_service_supported(name) {
925
+ return Module.jsb.host.service.supported(name ? UTF8ToString(name) : null) ? 1 : 0;
926
+ }
927
+ function jshost_service_open(name, params, onEvent) {
928
+ const $g = null;
929
+ return Module.jsb.host.service.open(name ? UTF8ToString(name) : null, params ? UTF8ToString(params) : null, Module.jsb.callback(onEvent, $g)) || 0;
930
+ }
931
+ function jshost_service_close(serviceId) {
932
+ Module.jsb.host.service.close(serviceId);
933
+ }
934
+ function jshost_service_version(name) {
935
+ return Module.jsb.host.service.version(name ? UTF8ToString(name) : null) || 0;
936
+ }
937
+ function jshost_service_call_js(serviceId, method, args, onComplete, onError) {
938
+ const $g = Module.jsb.group(onComplete, onError);
939
+ Module.jsb.host.service.call(serviceId, method ? UTF8ToString(method) : null, Module.jsb.valueAt(args), Module.jsb.callback(onComplete, $g), Module.jsb.callback(onError, $g));
940
+ }
941
+ function jshost_input_key(code, gamepad) {
942
+ return Module.jsb.host.input.key(code ? UTF8ToString(code) : null, gamepad) ? 1 : 0;
943
+ }
944
+ function jshost_input_read(channel) {
945
+ return Module.jsb.host.input.read(channel) || 0;
946
+ }
947
+ function jshost_input_setPointerLock(on) {
948
+ return Module.jsb.host.input.setPointerLock(!!on) ? 1 : 0;
949
+ }
950
+ function jshost_input_rumble(gamepad, strong, weak, durationMs) {
951
+ return Module.jsb.host.input.rumble(gamepad, strong, weak, durationMs) ? 1 : 0;
952
+ }
953
+ function jshost_input_keyboardHeight() {
954
+ return Module.jsb.host.input.keyboardHeight() || 0;
955
+ }
956
+ function jshost_media_setVolume(id, volume) {
957
+ Module.jsb.host.media.setVolume(id, volume);
958
+ }
959
+ function jshost_media_time(id) {
960
+ return Module.jsb.host.media.time(id) || 0;
961
+ }
962
+ function jshost_media_setTime(id, time) {
963
+ Module.jsb.host.media.setTime(id, time);
964
+ }
965
+ function jshost_media_duration(id) {
966
+ return Module.jsb.host.media.duration(id) || 0;
967
+ }
968
+ function jshost_media_createAudio(src, onFinished) {
969
+ const $g = null;
970
+ return Module.jsb.host.media.createAudio(src ? UTF8ToString(src) : null, Module.jsb.callback(onFinished, $g)) || 0;
971
+ }
972
+ function jshost_media_createVideo(src, onFinished) {
973
+ const $g = null;
974
+ return Module.jsb.host.media.createVideo(src ? UTF8ToString(src) : null, Module.jsb.callback(onFinished, $g)) || 0;
975
+ }
976
+ function jshost_media_setLoop(id, loop) {
977
+ Module.jsb.host.media.setLoop(id, !!loop);
978
+ }
979
+ function jshost_media_setPlaying(id, playing) {
980
+ Module.jsb.host.media.setPlaying(id, !!playing);
981
+ }
982
+ function jshost_media_remove(id) {
983
+ Module.jsb.host.media.remove(id);
984
+ }
985
+ function cuiConsoleError(msg) {
986
+ console.error(UTF8ToString(msg));
987
+ }
988
+ function jshost_refreshDone(node) {
989
+ const ui = Module.jsb.host.ui;
990
+ if (ui.refreshDone) ui.refreshDone(node);
991
+ }
992
+ var _malloc, _setThrew, __emscripten_stack_restore, _emscripten_stack_get_current, ___cxa_decrement_exception_refcount, ___cxa_get_exception_ptr, wasmMemory, wasmTable;
993
+ function assignWasmExports(wasmExports2) {
994
+ Module["_free"] = wasmExports2["Ac"];
995
+ Module["_setNodeClass"] = wasmExports2["Bc"];
996
+ Module["_setThemeValue"] = wasmExports2["Cc"];
997
+ Module["_applyTheme"] = wasmExports2["Dc"];
998
+ Module["_getScreenId"] = wasmExports2["Ec"];
999
+ Module["_getParentNode"] = wasmExports2["Fc"];
1000
+ _malloc = Module["_malloc"] = wasmExports2["Gc"];
1001
+ Module["_jsbInvoke"] = wasmExports2["Hc"];
1002
+ Module["_jsbInvokeGetter"] = wasmExports2["Ic"];
1003
+ Module["_jsbInvokeData"] = wasmExports2["Jc"];
1004
+ Module["_jsbFunctionGone"] = wasmExports2["Kc"];
1005
+ Module["_jsbFinalize"] = wasmExports2["Lc"];
1006
+ Module["_jsbHostCall"] = wasmExports2["Mc"];
1007
+ Module["_jsbRejection"] = wasmExports2["Nc"];
1008
+ Module["_calculate"] = wasmExports2["Oc"];
1009
+ Module["_widgetDetach"] = wasmExports2["Pc"];
1010
+ Module["_recalculate"] = wasmExports2["Qc"];
1011
+ Module["_calculateRoot"] = wasmExports2["Rc"];
1012
+ Module["_calculateWidget"] = wasmExports2["Sc"];
1013
+ Module["_collectBegin"] = wasmExports2["Tc"];
1014
+ Module["_collectRoot"] = wasmExports2["Uc"];
1015
+ Module["_collectCount"] = wasmExports2["Vc"];
1016
+ Module["_jsbViewEvent"] = wasmExports2["Wc"];
1017
+ Module["_getNodeOwner"] = wasmExports2["Xc"];
1018
+ Module["_createNodeRoot"] = wasmExports2["Yc"];
1019
+ Module["_setNodeMeasure"] = wasmExports2["Zc"];
1020
+ Module["_setNodeOwner"] = wasmExports2["_c"];
1021
+ Module["_forEachNode"] = wasmExports2["$c"];
1022
+ Module["_freeNode"] = wasmExports2["ad"];
1023
+ Module["_vlistExists"] = wasmExports2["bd"];
1024
+ Module["_adoptNode"] = wasmExports2["cd"];
1025
+ Module["_detachNode"] = wasmExports2["dd"];
1026
+ Module["_cuiChildCount"] = wasmExports2["ed"];
1027
+ Module["_cuiChildAt"] = wasmExports2["fd"];
1028
+ Module["_setStringExt"] = wasmExports2["gd"];
1029
+ Module["_resetPropExt"] = wasmExports2["hd"];
1030
+ Module["_nodeHasMeasure"] = wasmExports2["id"];
1031
+ Module["_nodeHasFixedSize"] = wasmExports2["jd"];
1032
+ Module["_markNodeDirty"] = wasmExports2["kd"];
1033
+ Module["_setNodeInteractive"] = wasmExports2["ld"];
1034
+ Module["_setFloatExt"] = wasmExports2["md"];
1035
+ Module["_getLayer"] = wasmExports2["nd"];
1036
+ Module["_setNodeHovered"] = wasmExports2["od"];
1037
+ Module["_cuiPaintJson"] = wasmExports2["pd"];
1038
+ Module["_setVListHandlers"] = wasmExports2["qd"];
1039
+ Module["_vlistInit"] = wasmExports2["rd"];
1040
+ Module["_vlistFree"] = wasmExports2["sd"];
1041
+ Module["_vlistSetKeys"] = wasmExports2["td"];
1042
+ Module["_vlistInsertKeys"] = wasmExports2["ud"];
1043
+ Module["_vlistRemoveKeys"] = wasmExports2["vd"];
1044
+ Module["_vlistInvalidate"] = wasmExports2["wd"];
1045
+ Module["_vlistCreateItemRoot"] = wasmExports2["xd"];
1046
+ Module["_vlistItemMounted"] = wasmExports2["yd"];
1047
+ Module["_vlistItemUnmounted"] = wasmExports2["zd"];
1048
+ Module["_vlistToPhysical"] = wasmExports2["Ad"];
1049
+ Module["_getContentHeight"] = wasmExports2["Bd"];
1050
+ Module["_vlistOffsetOf"] = wasmExports2["Cd"];
1051
+ Module["_setMeasureFunc"] = wasmExports2["Dd"];
1052
+ Module["_createNode"] = wasmExports2["Ed"];
1053
+ Module["_cuiStringOf"] = wasmExports2["Fd"];
1054
+ Module["_removeNode"] = wasmExports2["Gd"];
1055
+ Module["_paintCollect"] = wasmExports2["Hd"];
1056
+ Module["_paintNodes"] = wasmExports2["Id"];
1057
+ Module["_paintRecords"] = wasmExports2["Jd"];
1058
+ Module["_cuiPaintOf"] = wasmExports2["Kd"];
1059
+ Module["_cuiGradientOf"] = wasmExports2["Ld"];
1060
+ Module["_getColor"] = wasmExports2["Md"];
1061
+ Module["_setFloat"] = wasmExports2["Nd"];
1062
+ Module["_setString"] = wasmExports2["Od"];
1063
+ Module["_getThemeValue"] = wasmExports2["Pd"];
1064
+ Module["_resetProp"] = wasmExports2["Qd"];
1065
+ Module["_enableNodeLayer"] = wasmExports2["Rd"];
1066
+ Module["_disableNodeLayer"] = wasmExports2["Sd"];
1067
+ Module["_resetNodeLayer"] = wasmExports2["Td"];
1068
+ Module["_mergeNodeLayer"] = wasmExports2["Ud"];
1069
+ Module["_setNodePressed"] = wasmExports2["Vd"];
1070
+ Module["_setNodeFocused"] = wasmExports2["Wd"];
1071
+ Module["_setConditionValue"] = wasmExports2["Xd"];
1072
+ Module["_freeWidget"] = wasmExports2["Yd"];
1073
+ Module["_setSafePaddings"] = wasmExports2["Zd"];
1074
+ Module["_overrideRootSafeBottom"] = wasmExports2["_d"];
1075
+ Module["_setSafeAreaBars"] = wasmExports2["$d"];
1076
+ Module["_consumeNeedsLayout"] = wasmExports2["ae"];
1077
+ Module["_getCachedRoot"] = wasmExports2["be"];
1078
+ Module["_collectNodes"] = wasmExports2["ce"];
1079
+ Module["_collectRects"] = wasmExports2["de"];
1080
+ Module["_getOffset"] = wasmExports2["ee"];
1081
+ Module["_getContentWidth"] = wasmExports2["fe"];
1082
+ Module["_getLayoutPointer"] = wasmExports2["ge"];
1083
+ Module["_getLayoutDOMPointer"] = wasmExports2["he"];
1084
+ Module["_getPaddingPointer"] = wasmExports2["ie"];
1085
+ Module["_vlistOnScroll"] = wasmExports2["je"];
1086
+ Module["_vlistUpdateLayout"] = wasmExports2["ke"];
1087
+ Module["_vlistItemOffsetOf"] = wasmExports2["le"];
1088
+ Module["_creatorWebVersion"] = wasmExports2["me"];
1089
+ Module["_creatorWebInit"] = wasmExports2["ne"];
1090
+ Module["_creatorWebRun"] = wasmExports2["oe"];
1091
+ Module["_creatorWebTick"] = wasmExports2["pe"];
1092
+ Module["_creatorWebTickCore"] = wasmExports2["qe"];
1093
+ Module["_creatorWebResize"] = wasmExports2["re"];
1094
+ Module["_creatorWebLayoutFrame"] = wasmExports2["se"];
1095
+ Module["_creatorWebDebugDump"] = wasmExports2["te"];
1096
+ Module["_creatorWebBackPressed"] = wasmExports2["ue"];
1097
+ Module["_creatorWebSetStepEveryTick"] = wasmExports2["ve"];
1098
+ Module["_creatorWebSceneOpen"] = wasmExports2["we"];
1099
+ Module["_creatorWebFrameRendered"] = wasmExports2["xe"];
1100
+ Module["_creatorWebSetViewport"] = wasmExports2["ye"];
1101
+ Module["_creatorWebSceneRenderScale"] = wasmExports2["ze"];
1102
+ Module["_creatorWebAppEvent"] = wasmExports2["Ae"];
1103
+ Module["_creatorWebInputEvent"] = wasmExports2["Be"];
1104
+ Module["_creatorWebKeyboardEvent"] = wasmExports2["Ce"];
1105
+ Module["_creatorWebSetLaunchUrl"] = wasmExports2["De"];
1106
+ Module["_creatorWebSetBootProjectUuid"] = wasmExports2["Ee"];
1107
+ Module["_creatorWebQuitToLauncher"] = wasmExports2["Fe"];
1108
+ Module["_creatorWebViewEvent"] = wasmExports2["Ge"];
1109
+ Module["_creatorWebNodeEvent"] = wasmExports2["He"];
1110
+ Module["_creatorWebNodeEventNum"] = wasmExports2["Ie"];
1111
+ Module["_creatorWebNodeEventStr"] = wasmExports2["Je"];
1112
+ Module["_creatorWebNodeLayout"] = wasmExports2["Ke"];
1113
+ Module["_creatorWebNodeScroll"] = wasmExports2["Le"];
1114
+ Module["_creatorWebNodeTouchStart"] = wasmExports2["Me"];
1115
+ Module["_creatorWebNodeLongPress"] = wasmExports2["Ne"];
1116
+ Module["_creatorWebNodeClick"] = wasmExports2["Oe"];
1117
+ Module["_creatorWebTouchMove"] = wasmExports2["Pe"];
1118
+ Module["_creatorWebTouchEnd"] = wasmExports2["Qe"];
1119
+ Module["_creatorWebTouchCancel"] = wasmExports2["Re"];
1120
+ Module["_creatorWebRefresh"] = wasmExports2["Se"];
1121
+ Module["_creatorWebHover"] = wasmExports2["Te"];
1122
+ Module["_creatorWebSceneTouchStart"] = wasmExports2["Ue"];
1123
+ Module["_creatorWebSceneTouchClick"] = wasmExports2["Ve"];
1124
+ Module["_creatorWebSetShrunkRoot"] = wasmExports2["We"];
1125
+ Module["_creatorWebSetWidgetBox"] = wasmExports2["Xe"];
1126
+ Module["_creatorWebRootLayoutHeight"] = wasmExports2["Ye"];
1127
+ Module["_creatorWebPagerLayoutPages"] = wasmExports2["Ze"];
1128
+ Module["_creatorWebPagerDidSelect"] = wasmExports2["_e"];
1129
+ Module["_creatorWebPagerTabCount"] = wasmExports2["$e"];
1130
+ Module["_creatorWebPagerSelectedIndex"] = wasmExports2["af"];
1131
+ Module["_creatorWebPagerStackLen"] = wasmExports2["bf"];
1132
+ Module["_creatorWebPagerPageNode"] = wasmExports2["cf"];
1133
+ Module["_creatorWeb2dEnsureInited"] = wasmExports2["df"];
1134
+ Module["_creatorWeb2dSceneOpen"] = wasmExports2["ef"];
1135
+ Module["_creatorWeb2dRenderFrame"] = wasmExports2["ff"];
1136
+ Module["_creatorWeb2dEmitPointer"] = wasmExports2["gf"];
1137
+ _setThrew = wasmExports2["hf"];
1138
+ __emscripten_stack_restore = wasmExports2["jf"];
1139
+ _emscripten_stack_get_current = wasmExports2["kf"];
1140
+ ___cxa_decrement_exception_refcount = wasmExports2["lf"];
1141
+ ___cxa_get_exception_ptr = wasmExports2["mf"];
1142
+ wasmMemory = wasmExports2["xc"];
1143
+ wasmTable = wasmExports2["zc"];
1144
+ }
1145
+ var wasmImports = { D: ___cxa_begin_catch, yb: ___cxa_end_catch, a: ___cxa_find_matching_catch_2, n: ___cxa_find_matching_catch_3, zb: ___cxa_rethrow, w: ___cxa_throw, c: ___resumeException, qb: __abort_js, xb: cuiConsoleError, kb: _emscripten_resize_heap, mb: _environ_get, nb: _environ_sizes_get, ob: _fd_close, lb: _fd_seek, H: _fd_write, p: invoke_fi, m: invoke_fiif, j: invoke_fiiif, i: invoke_fiiiff, I: invoke_fiiifff, d: invoke_ii, z: invoke_iiffiiiffiiiii, g: invoke_iii, x: invoke_iiii, t: invoke_iiiii, ub: invoke_iiiiii, J: invoke_iiiiiiiiffff, vb: invoke_iiiiiiiiii, f: invoke_v, k: invoke_vi, s: invoke_vif, tb: invoke_viffi, o: invoke_vifi, e: invoke_vii, v: invoke_viif, Cb: invoke_viiff, l: invoke_viii, Ab: invoke_viiiffffii, Db: invoke_viiiffiiiii, h: invoke_viiii, sb: invoke_viiiif, A: invoke_viiiii, u: invoke_viiiiii, y: invoke_viiiiiiii, Gb: jsb_arrayIn, Eb: jsb_arrayOut, gb: jsb_call, eb: jsb_defineMethod, B: jsb_dup, _a: jsb_eval, $a: jsb_freeContext, ab: jsb_gc, Bb: jsb_get, wb: jsb_getIndex, ib: jsb_global, pb: jsb_has, cb: jsb_init, jb: jsb_keys, fb: jsb_logString, db: jsb_makeFunction, wc: jsb_newArray, bb: jsb_newContext, ca: jsb_newError, E: jsb_newObject, na: jsb_newString, hb: jsb_parseJson, q: jsb_release, lc: jsb_set, ac: jsb_setIndex, ya: jsb_str, G: jsb_takeException, C: jsb_throw, Ua: jsb_toNumber, Ja: jsb_truthy, Rb: jsb_typedArray, T: jshost_app_exit, X: jshost_app_isOnline, W: jshost_app_openUrl, V: jshost_app_setOrientation, Y: jshost_app_state, U: jshost_app_worldChange, $: jshost_canvas_decodeImage, aa: jshost_canvas_measureText, ba: jshost_canvas_paint, _: jshost_canvas_readPixels, Z: jshost_canvas_releaseSurface, L: jshost_device_clipboardRead, M: jshost_device_clipboardWrite, Q: jshost_device_motionAvailable, N: jshost_device_motionSample, P: jshost_device_motionStart, O: jshost_device_motionStop, vc: jshost_device_openFilePicker, uc: jshost_device_requestCamera, S: jshost_device_setPreciseTouch, K: jshost_device_share, R: jshost_device_vibrate, qc: jshost_fetch_buffer, pc: jshost_fetch_bufferSlice, sc: jshost_fetch_dispose, tc: jshost_fetch_local, nc: jshost_fetch_putBuffer, rc: jshost_fetch_request, oc: jshost_fetch_systemBuffer, Za: jshost_fieldNumber, F: jshost_fieldString, hc: jshost_files_list, ic: jshost_files_mkdir, mc: jshost_files_readBytes, kc: jshost_files_readText, jc: jshost_files_remove, gc: jshost_files_stat, fc: jshost_files_write, Va: jshost_gl_closeScene, Na: jshost_gl_createARController, La: jshost_gl_createAnchor, Wa: jshost_gl_createGLView, Sa: jshost_gl_createMediaPlayerTexture, Ma: jshost_gl_createRootAnchor, Ta: jshost_gl_createTexture, Xa: jshost_gl_engineCreated, Ya: jshost_gl_getGLContext, Ra: jshost_gl_launchAR, Pa: jshost_gl_launchVR, Qa: jshost_gl_stopAR, Oa: jshost_gl_stopVR, b: jshost_has, Wb: jshost_input_key, Sb: jshost_input_keyboardHeight, Vb: jshost_input_read, Tb: jshost_input_rumble, Ub: jshost_input_setPointerLock, Mb: jshost_media_createAudio, Lb: jshost_media_createVideo, Nb: jshost_media_duration, Ib: jshost_media_remove, Kb: jshost_media_setLoop, Jb: jshost_media_setPlaying, Ob: jshost_media_setTime, Qb: jshost_media_setVolume, Pb: jshost_media_time, rb: jshost_refreshDone, Ia: jshost_scene2d_close2DScene, Ha: jshost_scene2d_init2D, Ka: jshost_scene2d_open2DScene, Fb: jshost_service_call_js, Yb: jshost_service_close, Zb: jshost_service_open, _b: jshost_service_supported, Xb: jshost_service_version, $b: jshost_socket_close, bc: jshost_socket_open, cc: jshost_socket_send, ec: jshost_storage_load, dc: jshost_storage_save, r: jshost_table, wa: jshost_ui_closeView, xa: jshost_ui_dropView, ma: jshost_ui_getBoundingRect, pa: jshost_ui_getButtonPressed, oa: jshost_ui_getTextValue, Ca: jshost_ui_insertNode, va: jshost_ui_isViewSupported, ka: jshost_ui_longPressHandler, Ga: jshost_ui_nodeFactory, za: jshost_ui_openView, ia: jshost_ui_pagerCommand, ga: jshost_ui_pagerDropPage, fa: jshost_ui_pagerPageMounted, ha: jshost_ui_pagerShowPage, ra: jshost_ui_registerFont, Aa: jshost_ui_releaseNode, Ba: jshost_ui_removeNode, Da: jshost_ui_setFlags, Ea: jshost_ui_setPropertyInt, Fa: jshost_ui_setPropertyString, qa: jshost_ui_showToast, la: jshost_ui_touchHandler, ea: jshost_ui_tweenClaim, da: jshost_ui_tweenRelease, Hb: jshost_ui_viewCall_js, ua: jshost_ui_viewVersion, ja: jshost_ui_vlistScroll, sa: jshost_ui_widgetClose, ta: jshost_ui_widgetOpen };
1146
+ function invoke_iii(index, a1, a2) {
1147
+ var sp = stackSave();
1148
+ try {
1149
+ return getWasmTableEntry(index)(a1, a2);
1150
+ } catch (e) {
1151
+ stackRestore(sp);
1152
+ if (!(e instanceof EmscriptenEH)) throw e;
1153
+ _setThrew(1, 0);
1154
+ }
1155
+ }
1156
+ function invoke_v(index) {
1157
+ var sp = stackSave();
1158
+ try {
1159
+ getWasmTableEntry(index)();
1160
+ } catch (e) {
1161
+ stackRestore(sp);
1162
+ if (!(e instanceof EmscriptenEH)) throw e;
1163
+ _setThrew(1, 0);
1164
+ }
1165
+ }
1166
+ function invoke_ii(index, a1) {
1167
+ var sp = stackSave();
1168
+ try {
1169
+ return getWasmTableEntry(index)(a1);
1170
+ } catch (e) {
1171
+ stackRestore(sp);
1172
+ if (!(e instanceof EmscriptenEH)) throw e;
1173
+ _setThrew(1, 0);
1174
+ }
1175
+ }
1176
+ function invoke_viiii(index, a1, a2, a3, a4) {
1177
+ var sp = stackSave();
1178
+ try {
1179
+ getWasmTableEntry(index)(a1, a2, a3, a4);
1180
+ } catch (e) {
1181
+ stackRestore(sp);
1182
+ if (!(e instanceof EmscriptenEH)) throw e;
1183
+ _setThrew(1, 0);
1184
+ }
1185
+ }
1186
+ function invoke_vi(index, a1) {
1187
+ var sp = stackSave();
1188
+ try {
1189
+ getWasmTableEntry(index)(a1);
1190
+ } catch (e) {
1191
+ stackRestore(sp);
1192
+ if (!(e instanceof EmscriptenEH)) throw e;
1193
+ _setThrew(1, 0);
1194
+ }
1195
+ }
1196
+ function invoke_viiiii(index, a1, a2, a3, a4, a5) {
1197
+ var sp = stackSave();
1198
+ try {
1199
+ getWasmTableEntry(index)(a1, a2, a3, a4, a5);
1200
+ } catch (e) {
1201
+ stackRestore(sp);
1202
+ if (!(e instanceof EmscriptenEH)) throw e;
1203
+ _setThrew(1, 0);
1204
+ }
1205
+ }
1206
+ function invoke_iiiiiiiiffff(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) {
1207
+ var sp = stackSave();
1208
+ try {
1209
+ return getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
1210
+ } catch (e) {
1211
+ stackRestore(sp);
1212
+ if (!(e instanceof EmscriptenEH)) throw e;
1213
+ _setThrew(1, 0);
1214
+ }
1215
+ }
1216
+ function invoke_viiiffiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
1217
+ var sp = stackSave();
1218
+ try {
1219
+ getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
1220
+ } catch (e) {
1221
+ stackRestore(sp);
1222
+ if (!(e instanceof EmscriptenEH)) throw e;
1223
+ _setThrew(1, 0);
1224
+ }
1225
+ }
1226
+ function invoke_vifi(index, a1, a2, a3) {
1227
+ var sp = stackSave();
1228
+ try {
1229
+ getWasmTableEntry(index)(a1, a2, a3);
1230
+ } catch (e) {
1231
+ stackRestore(sp);
1232
+ if (!(e instanceof EmscriptenEH)) throw e;
1233
+ _setThrew(1, 0);
1234
+ }
1235
+ }
1236
+ function invoke_fi(index, a1) {
1237
+ var sp = stackSave();
1238
+ try {
1239
+ return getWasmTableEntry(index)(a1);
1240
+ } catch (e) {
1241
+ stackRestore(sp);
1242
+ if (!(e instanceof EmscriptenEH)) throw e;
1243
+ _setThrew(1, 0);
1244
+ }
1245
+ }
1246
+ function invoke_vii(index, a1, a2) {
1247
+ var sp = stackSave();
1248
+ try {
1249
+ getWasmTableEntry(index)(a1, a2);
1250
+ } catch (e) {
1251
+ stackRestore(sp);
1252
+ if (!(e instanceof EmscriptenEH)) throw e;
1253
+ _setThrew(1, 0);
1254
+ }
1255
+ }
1256
+ function invoke_viiff(index, a1, a2, a3, a4) {
1257
+ var sp = stackSave();
1258
+ try {
1259
+ getWasmTableEntry(index)(a1, a2, a3, a4);
1260
+ } catch (e) {
1261
+ stackRestore(sp);
1262
+ if (!(e instanceof EmscriptenEH)) throw e;
1263
+ _setThrew(1, 0);
1264
+ }
1265
+ }
1266
+ function invoke_vif(index, a1, a2) {
1267
+ var sp = stackSave();
1268
+ try {
1269
+ getWasmTableEntry(index)(a1, a2);
1270
+ } catch (e) {
1271
+ stackRestore(sp);
1272
+ if (!(e instanceof EmscriptenEH)) throw e;
1273
+ _setThrew(1, 0);
1274
+ }
1275
+ }
1276
+ function invoke_fiiiff(index, a1, a2, a3, a4, a5) {
1277
+ var sp = stackSave();
1278
+ try {
1279
+ return getWasmTableEntry(index)(a1, a2, a3, a4, a5);
1280
+ } catch (e) {
1281
+ stackRestore(sp);
1282
+ if (!(e instanceof EmscriptenEH)) throw e;
1283
+ _setThrew(1, 0);
1284
+ }
1285
+ }
1286
+ function invoke_fiiif(index, a1, a2, a3, a4) {
1287
+ var sp = stackSave();
1288
+ try {
1289
+ return getWasmTableEntry(index)(a1, a2, a3, a4);
1290
+ } catch (e) {
1291
+ stackRestore(sp);
1292
+ if (!(e instanceof EmscriptenEH)) throw e;
1293
+ _setThrew(1, 0);
1294
+ }
1295
+ }
1296
+ function invoke_fiif(index, a1, a2, a3) {
1297
+ var sp = stackSave();
1298
+ try {
1299
+ return getWasmTableEntry(index)(a1, a2, a3);
1300
+ } catch (e) {
1301
+ stackRestore(sp);
1302
+ if (!(e instanceof EmscriptenEH)) throw e;
1303
+ _setThrew(1, 0);
1304
+ }
1305
+ }
1306
+ function invoke_iiffiiiffiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) {
1307
+ var sp = stackSave();
1308
+ try {
1309
+ return getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13);
1310
+ } catch (e) {
1311
+ stackRestore(sp);
1312
+ if (!(e instanceof EmscriptenEH)) throw e;
1313
+ _setThrew(1, 0);
1314
+ }
1315
+ }
1316
+ function invoke_viiiffffii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
1317
+ var sp = stackSave();
1318
+ try {
1319
+ getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9);
1320
+ } catch (e) {
1321
+ stackRestore(sp);
1322
+ if (!(e instanceof EmscriptenEH)) throw e;
1323
+ _setThrew(1, 0);
1324
+ }
1325
+ }
1326
+ function invoke_iiiii(index, a1, a2, a3, a4) {
1327
+ var sp = stackSave();
1328
+ try {
1329
+ return getWasmTableEntry(index)(a1, a2, a3, a4);
1330
+ } catch (e) {
1331
+ stackRestore(sp);
1332
+ if (!(e instanceof EmscriptenEH)) throw e;
1333
+ _setThrew(1, 0);
1334
+ }
1335
+ }
1336
+ function invoke_viii(index, a1, a2, a3) {
1337
+ var sp = stackSave();
1338
+ try {
1339
+ getWasmTableEntry(index)(a1, a2, a3);
1340
+ } catch (e) {
1341
+ stackRestore(sp);
1342
+ if (!(e instanceof EmscriptenEH)) throw e;
1343
+ _setThrew(1, 0);
1344
+ }
1345
+ }
1346
+ function invoke_fiiifff(index, a1, a2, a3, a4, a5, a6) {
1347
+ var sp = stackSave();
1348
+ try {
1349
+ return getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6);
1350
+ } catch (e) {
1351
+ stackRestore(sp);
1352
+ if (!(e instanceof EmscriptenEH)) throw e;
1353
+ _setThrew(1, 0);
1354
+ }
1355
+ }
1356
+ function invoke_viiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8) {
1357
+ var sp = stackSave();
1358
+ try {
1359
+ getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8);
1360
+ } catch (e) {
1361
+ stackRestore(sp);
1362
+ if (!(e instanceof EmscriptenEH)) throw e;
1363
+ _setThrew(1, 0);
1364
+ }
1365
+ }
1366
+ function invoke_iiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
1367
+ var sp = stackSave();
1368
+ try {
1369
+ return getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9);
1370
+ } catch (e) {
1371
+ stackRestore(sp);
1372
+ if (!(e instanceof EmscriptenEH)) throw e;
1373
+ _setThrew(1, 0);
1374
+ }
1375
+ }
1376
+ function invoke_iiii(index, a1, a2, a3) {
1377
+ var sp = stackSave();
1378
+ try {
1379
+ return getWasmTableEntry(index)(a1, a2, a3);
1380
+ } catch (e) {
1381
+ stackRestore(sp);
1382
+ if (!(e instanceof EmscriptenEH)) throw e;
1383
+ _setThrew(1, 0);
1384
+ }
1385
+ }
1386
+ function invoke_viif(index, a1, a2, a3) {
1387
+ var sp = stackSave();
1388
+ try {
1389
+ getWasmTableEntry(index)(a1, a2, a3);
1390
+ } catch (e) {
1391
+ stackRestore(sp);
1392
+ if (!(e instanceof EmscriptenEH)) throw e;
1393
+ _setThrew(1, 0);
1394
+ }
1395
+ }
1396
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
1397
+ var sp = stackSave();
1398
+ try {
1399
+ getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6);
1400
+ } catch (e) {
1401
+ stackRestore(sp);
1402
+ if (!(e instanceof EmscriptenEH)) throw e;
1403
+ _setThrew(1, 0);
1404
+ }
1405
+ }
1406
+ function invoke_iiiiii(index, a1, a2, a3, a4, a5) {
1407
+ var sp = stackSave();
1408
+ try {
1409
+ return getWasmTableEntry(index)(a1, a2, a3, a4, a5);
1410
+ } catch (e) {
1411
+ stackRestore(sp);
1412
+ if (!(e instanceof EmscriptenEH)) throw e;
1413
+ _setThrew(1, 0);
1414
+ }
1415
+ }
1416
+ function invoke_viffi(index, a1, a2, a3, a4) {
1417
+ var sp = stackSave();
1418
+ try {
1419
+ getWasmTableEntry(index)(a1, a2, a3, a4);
1420
+ } catch (e) {
1421
+ stackRestore(sp);
1422
+ if (!(e instanceof EmscriptenEH)) throw e;
1423
+ _setThrew(1, 0);
1424
+ }
1425
+ }
1426
+ function invoke_viiiif(index, a1, a2, a3, a4, a5) {
1427
+ var sp = stackSave();
1428
+ try {
1429
+ getWasmTableEntry(index)(a1, a2, a3, a4, a5);
1430
+ } catch (e) {
1431
+ stackRestore(sp);
1432
+ if (!(e instanceof EmscriptenEH)) throw e;
1433
+ _setThrew(1, 0);
1434
+ }
1435
+ }
1436
+ async function run() {
1437
+ preRun();
1438
+ var setStatus = Module["setStatus"];
1439
+ if (setStatus) {
1440
+ setStatus("Running...");
1441
+ await new Promise((resolve) => setTimeout(resolve, 1));
1442
+ setTimeout(setStatus, 1, "");
1443
+ }
1444
+ if (ABORT) return;
1445
+ initRuntime();
1446
+ Module["onRuntimeInitialized"]?.();
1447
+ postRun();
1448
+ }
1449
+ var wasmExports;
1450
+ wasmExports = await createWasm();
1451
+ await run();
1452
+ return Module;
1453
+ }
1454
+ export {
1455
+ createCreatorWeb as default
1456
+ };
1457
+ //# sourceMappingURL=creator-ui-Cvoc0NZK.js.map