@balancy/wasm 1.0.14 → 1.0.15

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.
package/dist/index.cjs.js CHANGED
@@ -323,7 +323,7 @@ function _ts_generator(thisArg, body) {
323
323
  };
324
324
  }
325
325
  }
326
- var Module = function() {
326
+ var Balancy = function() {
327
327
  var _scriptName = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs.js', document.baseURI).href));
328
328
  return function() {
329
329
  var _this = this;
@@ -342,6 +342,7 @@ var Module = function() {
342
342
  "incrementExceptionRefcount",
343
343
  "decrementExceptionRefcount",
344
344
  "_memory",
345
+ "___indirect_function_table",
345
346
  "__Z14emscriptenInitRKN7Balancy11JSAppConfigE",
346
347
  "_balancyStop",
347
348
  "__Z21emscriptenUpdateTimerv",
@@ -484,7 +485,7 @@ var Module = function() {
484
485
  "_balancySoftPurchaseStoreItem",
485
486
  "_balancySoftPurchaseGameOffer",
486
487
  "_balancySoftPurchaseGameOfferGroup",
487
- "___indirect_function_table",
488
+ "_balancyWebViewRequest",
488
489
  "_main",
489
490
  "onRuntimeInitialized"
490
491
  ].forEach(function(prop) {
@@ -1202,9 +1203,16 @@ var Module = function() {
1202
1203
  ptr
1203
1204
  ].concat(_to_consumable_array(args)));
1204
1205
  };
1206
+ var wasmTableMirror = [];
1205
1207
  var wasmTable;
1206
1208
  var getWasmTableEntry = function(funcPtr) {
1207
- return wasmTable.get(funcPtr);
1209
+ var func = wasmTableMirror[funcPtr];
1210
+ if (!func) {
1211
+ if (funcPtr >= wasmTableMirror.length) wasmTableMirror.length = funcPtr + 1;
1212
+ wasmTableMirror[funcPtr] = func = wasmTable.get(funcPtr);
1213
+ }
1214
+ assert(wasmTable.get(funcPtr) == func, "JavaScript-side Wasm function table mirror is out of date!");
1215
+ return func;
1208
1216
  };
1209
1217
  var dynCall = function(sig, ptr) {
1210
1218
  var args = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
@@ -6189,10 +6197,8 @@ var Module = function() {
6189
6197
  }
6190
6198
  });
6191
6199
  };
6192
- var runtimeKeepaliveCounter = 0;
6193
- var __emscripten_runtime_keepalive_clear = function() {
6194
- noExitRuntime = false;
6195
- runtimeKeepaliveCounter = 0;
6200
+ var __emscripten_memcpy_js = function(dest, src, num) {
6201
+ return HEAPU8.copyWithin(dest, src, src + num);
6196
6202
  };
6197
6203
  var emval_returnValue = function(returnType, destructorsRef, handle) {
6198
6204
  var destructors = [];
@@ -6345,25 +6351,6 @@ var Module = function() {
6345
6351
  var yday = monthDaysCumulative[date.getMonth()] + date.getDate() - 1;
6346
6352
  return yday;
6347
6353
  };
6348
- function __localtime_js(time_low, time_high, tmPtr) {
6349
- var time = convertI32PairToI53Checked(time_low, time_high);
6350
- var date = new Date(time * 1e3);
6351
- HEAP32[tmPtr >> 2] = date.getSeconds();
6352
- HEAP32[tmPtr + 4 >> 2] = date.getMinutes();
6353
- HEAP32[tmPtr + 8 >> 2] = date.getHours();
6354
- HEAP32[tmPtr + 12 >> 2] = date.getDate();
6355
- HEAP32[tmPtr + 16 >> 2] = date.getMonth();
6356
- HEAP32[tmPtr + 20 >> 2] = date.getFullYear() - 1900;
6357
- HEAP32[tmPtr + 24 >> 2] = date.getDay();
6358
- var yday = ydayFromDate(date) | 0;
6359
- HEAP32[tmPtr + 28 >> 2] = yday;
6360
- HEAP32[tmPtr + 36 >> 2] = -(date.getTimezoneOffset() * 60);
6361
- var start = new Date(date.getFullYear(), 0, 1);
6362
- var summerOffset = new Date(date.getFullYear(), 6, 1).getTimezoneOffset();
6363
- var winterOffset = start.getTimezoneOffset();
6364
- var dst = (summerOffset != winterOffset && date.getTimezoneOffset() == Math.min(winterOffset, summerOffset)) | 0;
6365
- HEAP32[tmPtr + 32 >> 2] = dst;
6366
- }
6367
6354
  var __mktime_js = function __mktime_js(tmPtr) {
6368
6355
  var ret = function() {
6369
6356
  var date = new Date(HEAP32[tmPtr + 20 >> 2] + 1900, HEAP32[tmPtr + 16 >> 2], HEAP32[tmPtr + 12 >> 2], HEAP32[tmPtr + 8 >> 2], HEAP32[tmPtr + 4 >> 2], HEAP32[tmPtr >> 2], 0);
@@ -6397,85 +6384,6 @@ var Module = function() {
6397
6384
  }();
6398
6385
  return setTempRet0((tempDouble = ret, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)), ret >>> 0;
6399
6386
  };
6400
- var timers = {};
6401
- var handleException = function(e) {
6402
- if (_instanceof(e, ExitStatus) || e == "unwind") {
6403
- return EXITSTATUS;
6404
- }
6405
- checkStackCookie();
6406
- if (_instanceof(e, WebAssembly.RuntimeError)) {
6407
- if (_emscripten_stack_get_current() <= 0) {
6408
- _$err("Stack overflow detected. You can try increasing -sSTACK_SIZE (currently set to 16777216)");
6409
- }
6410
- }
6411
- quit_(1, e);
6412
- };
6413
- var keepRuntimeAlive = function() {
6414
- return noExitRuntime || runtimeKeepaliveCounter > 0;
6415
- };
6416
- var _proc_exit = function(code) {
6417
- EXITSTATUS = code;
6418
- if (!keepRuntimeAlive()) {
6419
- var _Module_onExit;
6420
- (_Module_onExit = Module["onExit"]) === null || _Module_onExit === void 0 ? void 0 : _Module_onExit.call(Module, code);
6421
- ABORT = true;
6422
- }
6423
- quit_(code, new ExitStatus(code));
6424
- };
6425
- var exitJS = function(status, implicit) {
6426
- EXITSTATUS = status;
6427
- checkUnflushedContent();
6428
- if (keepRuntimeAlive() && !implicit) {
6429
- var msg = "program exited (with status: ".concat(status, "), but keepRuntimeAlive() is set (counter=").concat(runtimeKeepaliveCounter, ") due to an async operation, so halting execution but not exiting the runtime or preventing further async execution (you can use emscripten_force_exit, if you want to force a true shutdown)");
6430
- readyPromiseReject(msg);
6431
- _$err(msg);
6432
- }
6433
- _proc_exit(status);
6434
- };
6435
- var _exit = exitJS;
6436
- var maybeExit = function() {
6437
- if (!keepRuntimeAlive()) {
6438
- try {
6439
- _exit(EXITSTATUS);
6440
- } catch (e) {
6441
- handleException(e);
6442
- }
6443
- }
6444
- };
6445
- var callUserCallback = function(func) {
6446
- if (ABORT) {
6447
- _$err("user callback triggered after runtime exited or application aborted. Ignoring.");
6448
- return;
6449
- }
6450
- try {
6451
- func();
6452
- maybeExit();
6453
- } catch (e) {
6454
- handleException(e);
6455
- }
6456
- };
6457
- var _emscripten_get_now = function() {
6458
- return performance.now();
6459
- };
6460
- var __setitimer_js = function(which, timeout_ms) {
6461
- if (timers[which]) {
6462
- clearTimeout(timers[which].id);
6463
- delete timers[which];
6464
- }
6465
- if (!timeout_ms) return 0;
6466
- var id = setTimeout(function() {
6467
- assert(which in timers);
6468
- delete timers[which];
6469
- callUserCallback(function() {
6470
- return __emscripten_timeout(which, _emscripten_get_now());
6471
- });
6472
- }, timeout_ms);
6473
- timers[which] = {
6474
- id: id,
6475
- timeout_ms: timeout_ms
6476
- };
6477
- return 0;
6478
- };
6479
6387
  var __tzset_js = function(timezone, daylight, std_name, dst_name) {
6480
6388
  var currentYear = (new Date).getFullYear();
6481
6389
  var winter = new Date(currentYear, 0, 1);
@@ -6506,6 +6414,9 @@ var Module = function() {
6506
6414
  stringToUTF8(summerName, std_name, 17);
6507
6415
  }
6508
6416
  };
6417
+ var _emscripten_get_now = function() {
6418
+ return performance.now();
6419
+ };
6509
6420
  var _emscripten_date_now = function() {
6510
6421
  return Date.now();
6511
6422
  };
@@ -6722,38 +6633,49 @@ var Module = function() {
6722
6633
  return e.errno;
6723
6634
  }
6724
6635
  }
6725
- var writeArrayToMemory = function(array, buffer) {
6726
- assert(array.length >= 0, "writeArrayToMemory array must have a length (should be an array or typed array)");
6727
- HEAP8.set(array, buffer);
6636
+ function _random_get(buffer, size) {
6637
+ try {
6638
+ randomFill(HEAPU8.subarray(buffer, buffer + size));
6639
+ return 0;
6640
+ } catch (e) {
6641
+ if (typeof FS == "undefined" || !(e.name === "ErrnoError")) throw e;
6642
+ return e.errno;
6643
+ }
6644
+ }
6645
+ var runtimeKeepaliveCounter = 0;
6646
+ var keepRuntimeAlive = function() {
6647
+ return noExitRuntime || runtimeKeepaliveCounter > 0;
6728
6648
  };
6729
- var _uuid_generate = function(out) {
6730
- var uuid = null;
6731
- if (typeof window.crypto != "undefined" && typeof window.crypto.getRandomValues != "undefined") {
6732
- uuid = new Uint8Array(16);
6733
- window.crypto.getRandomValues(uuid);
6649
+ var _proc_exit = function(code) {
6650
+ EXITSTATUS = code;
6651
+ if (!keepRuntimeAlive()) {
6652
+ var _Module_onExit;
6653
+ (_Module_onExit = Module["onExit"]) === null || _Module_onExit === void 0 ? void 0 : _Module_onExit.call(Module, code);
6654
+ ABORT = true;
6734
6655
  }
6735
- if (!uuid) {
6736
- uuid = new Array(16);
6737
- var d = (new Date).getTime();
6738
- for(var i = 0; i < 16; i++){
6739
- var r = (d + Math.random() * 256) % 256 | 0;
6740
- d = d / 256 | 0;
6741
- uuid[i] = r;
6742
- }
6656
+ quit_(code, new ExitStatus(code));
6657
+ };
6658
+ var exitJS = function(status, implicit) {
6659
+ EXITSTATUS = status;
6660
+ checkUnflushedContent();
6661
+ if (keepRuntimeAlive() && !implicit) {
6662
+ var msg = "program exited (with status: ".concat(status, "), but keepRuntimeAlive() is set (counter=").concat(runtimeKeepaliveCounter, ") due to an async operation, so halting execution but not exiting the runtime or preventing further async execution (you can use emscripten_force_exit, if you want to force a true shutdown)");
6663
+ readyPromiseReject(msg);
6664
+ _$err(msg);
6743
6665
  }
6744
- uuid[6] = uuid[6] & 15 | 64;
6745
- uuid[8] = uuid[8] & 63 | 128;
6746
- writeArrayToMemory(uuid, out);
6666
+ _proc_exit(status);
6747
6667
  };
6748
- var _uuid_unparse = function(uu, out, upper) {
6749
- var i = 0;
6750
- var uuid = "xxxx-xx-xx-xx-xxxxxx".replace(/[x]/g, function(c) {
6751
- var r = upper ? HEAPU8[uu + i].toString(16).toUpperCase() : HEAPU8[uu + i].toString(16);
6752
- r = r.length === 1 ? "0" + r : r;
6753
- i++;
6754
- return r;
6755
- });
6756
- stringToUTF8(uuid, out, 37);
6668
+ var handleException = function(e) {
6669
+ if (_instanceof(e, ExitStatus) || e == "unwind") {
6670
+ return EXITSTATUS;
6671
+ }
6672
+ checkStackCookie();
6673
+ if (_instanceof(e, WebAssembly.RuntimeError)) {
6674
+ if (_emscripten_stack_get_current() <= 0) {
6675
+ _$err("Stack overflow detected. You can try increasing -sSTACK_SIZE (currently set to 16777216)");
6676
+ }
6677
+ }
6678
+ quit_(1, e);
6757
6679
  };
6758
6680
  var uleb128Encode = function(n, target) {
6759
6681
  assert(n < 16384);
@@ -6875,7 +6797,8 @@ var Module = function() {
6875
6797
  return wasmTable.length - 1;
6876
6798
  };
6877
6799
  var setWasmTableEntry = function(idx, func) {
6878
- return wasmTable.set(idx, func);
6800
+ wasmTable.set(idx, func);
6801
+ wasmTableMirror[idx] = wasmTable.get(idx);
6879
6802
  };
6880
6803
  var addFunction = function(func, sig) {
6881
6804
  assert(typeof func != "undefined");
@@ -6915,6 +6838,10 @@ var Module = function() {
6915
6838
  assert(func, "Cannot call unknown function " + ident + ", make sure it is exported");
6916
6839
  return func;
6917
6840
  };
6841
+ var writeArrayToMemory = function(array, buffer) {
6842
+ assert(array.length >= 0, "writeArrayToMemory array must have a length (should be an array or typed array)");
6843
+ HEAP8.set(array, buffer);
6844
+ };
6918
6845
  var stackAlloc = function(sz) {
6919
6846
  return __emscripten_stack_alloc(sz);
6920
6847
  };
@@ -7092,7 +7019,7 @@ var Module = function() {
7092
7019
  _embind_register_std_wstring: __embind_register_std_wstring,
7093
7020
  _embind_register_value_array: __embind_register_value_array,
7094
7021
  _embind_register_void: __embind_register_void,
7095
- _emscripten_runtime_keepalive_clear: __emscripten_runtime_keepalive_clear,
7022
+ _emscripten_memcpy_js: __emscripten_memcpy_js,
7096
7023
  _emval_as: __emval_as,
7097
7024
  _emval_call: __emval_call,
7098
7025
  _emval_decref: __emval_decref,
@@ -7103,9 +7030,7 @@ var Module = function() {
7103
7030
  _emval_run_destructors: __emval_run_destructors,
7104
7031
  _emval_take_value: __emval_take_value,
7105
7032
  _gmtime_js: __gmtime_js,
7106
- _localtime_js: __localtime_js,
7107
7033
  _mktime_js: __mktime_js,
7108
- _setitimer_js: __setitimer_js,
7109
7034
  _tzset_js: __tzset_js,
7110
7035
  clock_time_get: _clock_time_get,
7111
7036
  emscripten_resize_heap: _emscripten_resize_heap,
@@ -7116,8 +7041,9 @@ var Module = function() {
7116
7041
  fd_read: _fd_read,
7117
7042
  fd_seek: _fd_seek,
7118
7043
  fd_write: _fd_write,
7119
- invoke_dii: invoke_dii,
7120
- invoke_fii: invoke_fii,
7044
+ invoke_diii: invoke_diii,
7045
+ invoke_fiii: invoke_fiii,
7046
+ invoke_i: invoke_i,
7121
7047
  invoke_ii: invoke_ii,
7122
7048
  invoke_iii: invoke_iii,
7123
7049
  invoke_iiii: invoke_iiii,
@@ -7126,13 +7052,14 @@ var Module = function() {
7126
7052
  invoke_iiiiii: invoke_iiiiii,
7127
7053
  invoke_iiiiiii: invoke_iiiiiii,
7128
7054
  invoke_iiiiiiii: invoke_iiiiiiii,
7055
+ invoke_iiiiiiiiiii: invoke_iiiiiiiiiii,
7129
7056
  invoke_iiiiiiiiiiii: invoke_iiiiiiiiiiii,
7057
+ invoke_iiiiiiiiiiiii: invoke_iiiiiiiiiiiii,
7130
7058
  invoke_iiiiij: invoke_iiiiij,
7131
- invoke_iiiij: invoke_iiiij,
7132
- invoke_iiij: invoke_iiij,
7133
- invoke_iij: invoke_iij,
7059
+ invoke_iiji: invoke_iiji,
7134
7060
  invoke_j: invoke_j,
7135
7061
  invoke_jiii: invoke_jiii,
7062
+ invoke_jiiii: invoke_jiiii,
7136
7063
  invoke_v: invoke_v,
7137
7064
  invoke_vi: invoke_vi,
7138
7065
  invoke_vii: invoke_vii,
@@ -7144,16 +7071,12 @@ var Module = function() {
7144
7071
  invoke_viiiiiiiiii: invoke_viiiiiiiiii,
7145
7072
  invoke_viiiiiiiiiiiiiii: invoke_viiiiiiiiiiiiiii,
7146
7073
  js_fetch: js_fetch,
7147
- proc_exit: _proc_exit,
7148
- uuid_generate: _uuid_generate,
7149
- uuid_unparse: _uuid_unparse
7074
+ random_get: _random_get
7150
7075
  };
7151
7076
  var wasmExports;
7152
7077
  createWasm();
7153
- var ___getTypeName = createExportWrapper("__getTypeName", 1);
7154
7078
  var _main = Module["_main"] = createExportWrapper("main", 2);
7155
7079
  Module["__Z14emscriptenInitRKN7Balancy11JSAppConfigE"] = createExportWrapper("_Z14emscriptenInitRKN7Balancy11JSAppConfigE", 1);
7156
- var _free = Module["_free"] = createExportWrapper("free", 1);
7157
7080
  Module["_balancyStop"] = createExportWrapper("balancyStop", 0);
7158
7081
  Module["__Z21emscriptenUpdateTimerv"] = createExportWrapper("_Z21emscriptenUpdateTimerv", 0);
7159
7082
  Module["__Z25jsbalancyGetModelByUnnyIdNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE"] = createExportWrapper("_Z25jsbalancyGetModelByUnnyIdNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE", 1);
@@ -7228,6 +7151,8 @@ var Module = function() {
7228
7151
  Module["_balancyGetTimeOffset"] = createExportWrapper("balancyGetTimeOffset", 0);
7229
7152
  Module["_balancySetTimeOffset"] = createExportWrapper("balancySetTimeOffset", 1);
7230
7153
  var _malloc = Module["_malloc"] = createExportWrapper("malloc", 1);
7154
+ var ___getTypeName = createExportWrapper("__getTypeName", 1);
7155
+ var _free = Module["_free"] = createExportWrapper("free", 1);
7231
7156
  Module["_balancySetLogCallback"] = createExportWrapper("balancySetLogCallback", 1);
7232
7157
  Module["_balancySetInvokeInMainThreadCallback"] = createExportWrapper("balancySetInvokeInMainThreadCallback", 1);
7233
7158
  Module["_balancyInvokeMethodInMainThread"] = createExportWrapper("balancyInvokeMethodInMainThread", 1);
@@ -7295,8 +7220,8 @@ var Module = function() {
7295
7220
  Module["_balancySoftPurchaseStoreItem"] = createExportWrapper("balancySoftPurchaseStoreItem", 1);
7296
7221
  Module["_balancySoftPurchaseGameOffer"] = createExportWrapper("balancySoftPurchaseGameOffer", 1);
7297
7222
  Module["_balancySoftPurchaseGameOfferGroup"] = createExportWrapper("balancySoftPurchaseGameOfferGroup", 2);
7223
+ Module["_balancyWebViewRequest"] = createExportWrapper("balancyWebViewRequest", 1);
7298
7224
  var _fflush = createExportWrapper("fflush", 1);
7299
- var __emscripten_timeout = createExportWrapper("_emscripten_timeout", 2);
7300
7225
  var _strerror = createExportWrapper("strerror", 1);
7301
7226
  var _setThrew = createExportWrapper("setThrew", 2);
7302
7227
  var __emscripten_tempret_set = createExportWrapper("_emscripten_tempret_set", 1);
@@ -7320,79 +7245,81 @@ var Module = function() {
7320
7245
  var ___get_exception_message = createExportWrapper("__get_exception_message", 3);
7321
7246
  var ___cxa_can_catch = createExportWrapper("__cxa_can_catch", 3);
7322
7247
  var ___cxa_get_exception_ptr = createExportWrapper("__cxa_get_exception_ptr", 1);
7323
- var dynCall_iii = Module["dynCall_iii"] = createExportWrapper("dynCall_iii", 3);
7324
- var dynCall_vii = Module["dynCall_vii"] = createExportWrapper("dynCall_vii", 3);
7325
7248
  var dynCall_vi = Module["dynCall_vi"] = createExportWrapper("dynCall_vi", 2);
7326
- var dynCall_v = Module["dynCall_v"] = createExportWrapper("dynCall_v", 1);
7327
7249
  var dynCall_ii = Module["dynCall_ii"] = createExportWrapper("dynCall_ii", 2);
7328
- var dynCall_viiii = Module["dynCall_viiii"] = createExportWrapper("dynCall_viiii", 5);
7329
- var dynCall_viiiii = Module["dynCall_viiiii"] = createExportWrapper("dynCall_viiiii", 6);
7250
+ var dynCall_vii = Module["dynCall_vii"] = createExportWrapper("dynCall_vii", 3);
7251
+ var dynCall_v = Module["dynCall_v"] = createExportWrapper("dynCall_v", 1);
7252
+ var dynCall_iii = Module["dynCall_iii"] = createExportWrapper("dynCall_iii", 3);
7330
7253
  var dynCall_iiii = Module["dynCall_iiii"] = createExportWrapper("dynCall_iiii", 4);
7331
7254
  var dynCall_jiii = Module["dynCall_jiii"] = createExportWrapper("dynCall_jiii", 4);
7332
7255
  Module["dynCall_jii"] = createExportWrapper("dynCall_jii", 3);
7333
- Module["dynCall_fiii"] = createExportWrapper("dynCall_fiii", 4);
7334
- var dynCall_fii = Module["dynCall_fii"] = createExportWrapper("dynCall_fii", 3);
7335
- Module["dynCall_diii"] = createExportWrapper("dynCall_diii", 4);
7336
- var dynCall_dii = Module["dynCall_dii"] = createExportWrapper("dynCall_dii", 3);
7256
+ var dynCall_fiii = Module["dynCall_fiii"] = createExportWrapper("dynCall_fiii", 4);
7257
+ Module["dynCall_fii"] = createExportWrapper("dynCall_fii", 3);
7258
+ var dynCall_diii = Module["dynCall_diii"] = createExportWrapper("dynCall_diii", 4);
7259
+ Module["dynCall_dii"] = createExportWrapper("dynCall_dii", 3);
7337
7260
  var dynCall_viii = Module["dynCall_viii"] = createExportWrapper("dynCall_viii", 4);
7338
7261
  var dynCall_iiiii = Module["dynCall_iiiii"] = createExportWrapper("dynCall_iiiii", 5);
7262
+ var dynCall_viiii = Module["dynCall_viiii"] = createExportWrapper("dynCall_viiii", 5);
7339
7263
  Module["dynCall_viiij"] = createExportWrapper("dynCall_viiij", 6);
7340
7264
  Module["dynCall_viij"] = createExportWrapper("dynCall_viij", 5);
7265
+ Module["dynCall_viiif"] = createExportWrapper("dynCall_viiif", 5);
7341
7266
  Module["dynCall_viif"] = createExportWrapper("dynCall_viif", 4);
7342
7267
  Module["dynCall_viidi"] = createExportWrapper("dynCall_viidi", 5);
7343
7268
  Module["dynCall_vidi"] = createExportWrapper("dynCall_vidi", 4);
7344
- Module["dynCall_i"] = createExportWrapper("dynCall_i", 1);
7345
- Module["dynCall_viiif"] = createExportWrapper("dynCall_viiif", 5);
7269
+ var dynCall_i = Module["dynCall_i"] = createExportWrapper("dynCall_i", 1);
7270
+ var dynCall_viiiii = Module["dynCall_viiiii"] = createExportWrapper("dynCall_viiiii", 6);
7271
+ Module["dynCall_viiiiii"] = createExportWrapper("dynCall_viiiiii", 7);
7346
7272
  Module["dynCall_iiiif"] = createExportWrapper("dynCall_iiiif", 5);
7347
7273
  var dynCall_viid = Module["dynCall_viid"] = createExportWrapper("dynCall_viid", 4);
7348
7274
  Module["dynCall_viiid"] = createExportWrapper("dynCall_viiid", 5);
7349
7275
  Module["dynCall_iiiid"] = createExportWrapper("dynCall_iiiid", 5);
7350
- var dynCall_iiiij = Module["dynCall_iiiij"] = createExportWrapper("dynCall_iiiij", 6);
7351
- Module["dynCall_viiiiii"] = createExportWrapper("dynCall_viiiiii", 7);
7276
+ Module["dynCall_iiiij"] = createExportWrapper("dynCall_iiiij", 6);
7352
7277
  var dynCall_iiiiii = Module["dynCall_iiiiii"] = createExportWrapper("dynCall_iiiiii", 6);
7353
- var dynCall_iiiiid = Module["dynCall_iiiiid"] = createExportWrapper("dynCall_iiiiid", 6);
7354
- var dynCall_iiiiij = Module["dynCall_iiiiij"] = createExportWrapper("dynCall_iiiiij", 7);
7278
+ Module["dynCall_iidd"] = createExportWrapper("dynCall_iidd", 4);
7279
+ Module["dynCall_didd"] = createExportWrapper("dynCall_didd", 4);
7355
7280
  var dynCall_j = Module["dynCall_j"] = createExportWrapper("dynCall_j", 1);
7356
- var dynCall_iiij = Module["dynCall_iiij"] = createExportWrapper("dynCall_iiij", 5);
7357
7281
  Module["dynCall_iidiiii"] = createExportWrapper("dynCall_iidiiii", 7);
7358
7282
  Module["dynCall_jiji"] = createExportWrapper("dynCall_jiji", 5);
7359
- var dynCall_iij = Module["dynCall_iij"] = createExportWrapper("dynCall_iij", 4);
7283
+ var dynCall_iiiiij = Module["dynCall_iiiiij"] = createExportWrapper("dynCall_iiiiij", 7);
7284
+ var dynCall_iiiiid = Module["dynCall_iiiiid"] = createExportWrapper("dynCall_iiiiid", 6);
7285
+ Module["dynCall_viijii"] = createExportWrapper("dynCall_viijii", 7);
7360
7286
  var dynCall_iiiiiiii = Module["dynCall_iiiiiiii"] = createExportWrapper("dynCall_iiiiiiii", 8);
7287
+ var dynCall_iiiiiiiiiii = Module["dynCall_iiiiiiiiiii"] = createExportWrapper("dynCall_iiiiiiiiiii", 11);
7288
+ var dynCall_jiiii = Module["dynCall_jiiii"] = createExportWrapper("dynCall_jiiii", 5);
7289
+ var dynCall_iiiiiiiiiiiii = Module["dynCall_iiiiiiiiiiiii"] = createExportWrapper("dynCall_iiiiiiiiiiiii", 13);
7361
7290
  var dynCall_viiiiiii = Module["dynCall_viiiiiii"] = createExportWrapper("dynCall_viiiiiii", 8);
7362
7291
  var dynCall_iiiiiii = Module["dynCall_iiiiiii"] = createExportWrapper("dynCall_iiiiiii", 7);
7363
7292
  var dynCall_iiiiiiiiiiii = Module["dynCall_iiiiiiiiiiii"] = createExportWrapper("dynCall_iiiiiiiiiiii", 12);
7364
7293
  var dynCall_viiiiiiiiii = Module["dynCall_viiiiiiiiii"] = createExportWrapper("dynCall_viiiiiiiiii", 11);
7365
7294
  var dynCall_viiiiiiiiiiiiiii = Module["dynCall_viiiiiiiiiiiiiii"] = createExportWrapper("dynCall_viiiiiiiiiiiiiii", 16);
7366
- Module["dynCall_iidd"] = createExportWrapper("dynCall_iidd", 4);
7367
- Module["dynCall_didd"] = createExportWrapper("dynCall_didd", 4);
7368
- Module["dynCall_viijii"] = createExportWrapper("dynCall_viijii", 7);
7369
7295
  Module["dynCall_iiiiiiiii"] = createExportWrapper("dynCall_iiiiiiiii", 9);
7370
7296
  Module["dynCall_iiiiijj"] = createExportWrapper("dynCall_iiiiijj", 9);
7371
7297
  Module["dynCall_iiiiiijj"] = createExportWrapper("dynCall_iiiiiijj", 10);
7372
- function invoke_vii(index, a1, a2) {
7298
+ var dynCall_iiji = Module["dynCall_iiji"] = createExportWrapper("dynCall_iiji", 5);
7299
+ function invoke_iii(index, a1, a2) {
7373
7300
  var sp = stackSave();
7374
7301
  try {
7375
- dynCall_vii(index, a1, a2);
7302
+ return dynCall_iii(index, a1, a2);
7376
7303
  } catch (e) {
7377
7304
  stackRestore(sp);
7378
7305
  if (!_instanceof(e, EmscriptenEH)) throw e;
7379
7306
  _setThrew(1, 0);
7380
7307
  }
7381
7308
  }
7382
- function invoke_viiii(index, a1, a2, a3, a4) {
7309
+ function invoke_ii(index, a1) {
7383
7310
  var sp = stackSave();
7384
7311
  try {
7385
- dynCall_viiii(index, a1, a2, a3, a4);
7312
+ return dynCall_ii(index, a1);
7386
7313
  } catch (e) {
7387
7314
  stackRestore(sp);
7388
7315
  if (!_instanceof(e, EmscriptenEH)) throw e;
7389
7316
  _setThrew(1, 0);
7390
7317
  }
7391
7318
  }
7392
- function invoke_viii(index, a1, a2, a3) {
7319
+ function invoke_vii(index, a1, a2) {
7393
7320
  var sp = stackSave();
7394
7321
  try {
7395
- dynCall_viii(index, a1, a2, a3);
7322
+ dynCall_vii(index, a1, a2);
7396
7323
  } catch (e) {
7397
7324
  stackRestore(sp);
7398
7325
  if (!_instanceof(e, EmscriptenEH)) throw e;
@@ -7409,20 +7336,20 @@ var Module = function() {
7409
7336
  _setThrew(1, 0);
7410
7337
  }
7411
7338
  }
7412
- function invoke_iii(index, a1, a2) {
7339
+ function invoke_viiii(index, a1, a2, a3, a4) {
7413
7340
  var sp = stackSave();
7414
7341
  try {
7415
- return dynCall_iii(index, a1, a2);
7342
+ dynCall_viiii(index, a1, a2, a3, a4);
7416
7343
  } catch (e) {
7417
7344
  stackRestore(sp);
7418
7345
  if (!_instanceof(e, EmscriptenEH)) throw e;
7419
7346
  _setThrew(1, 0);
7420
7347
  }
7421
7348
  }
7422
- function invoke_iiiii(index, a1, a2, a3, a4) {
7349
+ function invoke_viii(index, a1, a2, a3) {
7423
7350
  var sp = stackSave();
7424
7351
  try {
7425
- return dynCall_iiiii(index, a1, a2, a3, a4);
7352
+ dynCall_viii(index, a1, a2, a3);
7426
7353
  } catch (e) {
7427
7354
  stackRestore(sp);
7428
7355
  if (!_instanceof(e, EmscriptenEH)) throw e;
@@ -7439,10 +7366,10 @@ var Module = function() {
7439
7366
  _setThrew(1, 0);
7440
7367
  }
7441
7368
  }
7442
- function invoke_ii(index, a1) {
7369
+ function invoke_iiiii(index, a1, a2, a3, a4) {
7443
7370
  var sp = stackSave();
7444
7371
  try {
7445
- return dynCall_ii(index, a1);
7372
+ return dynCall_iiiii(index, a1, a2, a3, a4);
7446
7373
  } catch (e) {
7447
7374
  stackRestore(sp);
7448
7375
  if (!_instanceof(e, EmscriptenEH)) throw e;
@@ -7469,6 +7396,26 @@ var Module = function() {
7469
7396
  _setThrew(1, 0);
7470
7397
  }
7471
7398
  }
7399
+ function invoke_viiiii(index, a1, a2, a3, a4, a5) {
7400
+ var sp = stackSave();
7401
+ try {
7402
+ dynCall_viiiii(index, a1, a2, a3, a4, a5);
7403
+ } catch (e) {
7404
+ stackRestore(sp);
7405
+ if (!_instanceof(e, EmscriptenEH)) throw e;
7406
+ _setThrew(1, 0);
7407
+ }
7408
+ }
7409
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
7410
+ var sp = stackSave();
7411
+ try {
7412
+ return dynCall_iiiiiii(index, a1, a2, a3, a4, a5, a6);
7413
+ } catch (e) {
7414
+ stackRestore(sp);
7415
+ if (!_instanceof(e, EmscriptenEH)) throw e;
7416
+ _setThrew(1, 0);
7417
+ }
7418
+ }
7472
7419
  function invoke_iiiiid(index, a1, a2, a3, a4, a5) {
7473
7420
  var sp = stackSave();
7474
7421
  try {
@@ -7489,140 +7436,140 @@ var Module = function() {
7489
7436
  _setThrew(1, 0);
7490
7437
  }
7491
7438
  }
7492
- function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
7439
+ function invoke_iiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
7493
7440
  var sp = stackSave();
7494
7441
  try {
7495
- dynCall_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7);
7442
+ return dynCall_iiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
7496
7443
  } catch (e) {
7497
7444
  stackRestore(sp);
7498
7445
  if (!_instanceof(e, EmscriptenEH)) throw e;
7499
7446
  _setThrew(1, 0);
7500
7447
  }
7501
7448
  }
7502
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
7449
+ function invoke_iiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) {
7503
7450
  var sp = stackSave();
7504
7451
  try {
7505
- return dynCall_iiiiiii(index, a1, a2, a3, a4, a5, a6);
7452
+ return dynCall_iiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12);
7506
7453
  } catch (e) {
7507
7454
  stackRestore(sp);
7508
7455
  if (!_instanceof(e, EmscriptenEH)) throw e;
7509
7456
  _setThrew(1, 0);
7510
7457
  }
7511
7458
  }
7512
- function invoke_iiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) {
7459
+ function invoke_fiii(index, a1, a2, a3) {
7513
7460
  var sp = stackSave();
7514
7461
  try {
7515
- return dynCall_iiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
7462
+ return dynCall_fiii(index, a1, a2, a3);
7516
7463
  } catch (e) {
7517
7464
  stackRestore(sp);
7518
7465
  if (!_instanceof(e, EmscriptenEH)) throw e;
7519
7466
  _setThrew(1, 0);
7520
7467
  }
7521
7468
  }
7522
- function invoke_viiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
7469
+ function invoke_diii(index, a1, a2, a3) {
7523
7470
  var sp = stackSave();
7524
7471
  try {
7525
- dynCall_viiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
7472
+ return dynCall_diii(index, a1, a2, a3);
7526
7473
  } catch (e) {
7527
7474
  stackRestore(sp);
7528
7475
  if (!_instanceof(e, EmscriptenEH)) throw e;
7529
7476
  _setThrew(1, 0);
7530
7477
  }
7531
7478
  }
7532
- function invoke_viiiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) {
7479
+ function invoke_i(index) {
7533
7480
  var sp = stackSave();
7534
7481
  try {
7535
- dynCall_viiiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15);
7482
+ return dynCall_i(index);
7536
7483
  } catch (e) {
7537
7484
  stackRestore(sp);
7538
7485
  if (!_instanceof(e, EmscriptenEH)) throw e;
7539
7486
  _setThrew(1, 0);
7540
7487
  }
7541
7488
  }
7542
- function invoke_viiiii(index, a1, a2, a3, a4, a5) {
7489
+ function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
7543
7490
  var sp = stackSave();
7544
7491
  try {
7545
- dynCall_viiiii(index, a1, a2, a3, a4, a5);
7492
+ dynCall_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7);
7546
7493
  } catch (e) {
7547
7494
  stackRestore(sp);
7548
7495
  if (!_instanceof(e, EmscriptenEH)) throw e;
7549
7496
  _setThrew(1, 0);
7550
7497
  }
7551
7498
  }
7552
- function invoke_fii(index, a1, a2) {
7499
+ function invoke_iiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) {
7553
7500
  var sp = stackSave();
7554
7501
  try {
7555
- return dynCall_fii(index, a1, a2);
7502
+ return dynCall_iiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
7556
7503
  } catch (e) {
7557
7504
  stackRestore(sp);
7558
7505
  if (!_instanceof(e, EmscriptenEH)) throw e;
7559
7506
  _setThrew(1, 0);
7560
7507
  }
7561
7508
  }
7562
- function invoke_dii(index, a1, a2) {
7509
+ function invoke_viiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
7563
7510
  var sp = stackSave();
7564
7511
  try {
7565
- return dynCall_dii(index, a1, a2);
7512
+ dynCall_viiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
7566
7513
  } catch (e) {
7567
7514
  stackRestore(sp);
7568
7515
  if (!_instanceof(e, EmscriptenEH)) throw e;
7569
7516
  _setThrew(1, 0);
7570
7517
  }
7571
7518
  }
7572
- function invoke_viid(index, a1, a2, a3) {
7519
+ function invoke_viiiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) {
7573
7520
  var sp = stackSave();
7574
7521
  try {
7575
- dynCall_viid(index, a1, a2, a3);
7522
+ dynCall_viiiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15);
7576
7523
  } catch (e) {
7577
7524
  stackRestore(sp);
7578
7525
  if (!_instanceof(e, EmscriptenEH)) throw e;
7579
7526
  _setThrew(1, 0);
7580
7527
  }
7581
7528
  }
7582
- function invoke_j(index) {
7529
+ function invoke_viid(index, a1, a2, a3) {
7583
7530
  var sp = stackSave();
7584
7531
  try {
7585
- return dynCall_j(index);
7532
+ dynCall_viid(index, a1, a2, a3);
7586
7533
  } catch (e) {
7587
7534
  stackRestore(sp);
7588
7535
  if (!_instanceof(e, EmscriptenEH)) throw e;
7589
7536
  _setThrew(1, 0);
7590
7537
  }
7591
7538
  }
7592
- function invoke_iiij(index, a1, a2, a3, a4) {
7539
+ function invoke_j(index) {
7593
7540
  var sp = stackSave();
7594
7541
  try {
7595
- return dynCall_iiij(index, a1, a2, a3, a4);
7542
+ return dynCall_j(index);
7596
7543
  } catch (e) {
7597
7544
  stackRestore(sp);
7598
7545
  if (!_instanceof(e, EmscriptenEH)) throw e;
7599
7546
  _setThrew(1, 0);
7600
7547
  }
7601
7548
  }
7602
- function invoke_iiiij(index, a1, a2, a3, a4, a5) {
7549
+ function invoke_iiiiij(index, a1, a2, a3, a4, a5, a6) {
7603
7550
  var sp = stackSave();
7604
7551
  try {
7605
- return dynCall_iiiij(index, a1, a2, a3, a4, a5);
7552
+ return dynCall_iiiiij(index, a1, a2, a3, a4, a5, a6);
7606
7553
  } catch (e) {
7607
7554
  stackRestore(sp);
7608
7555
  if (!_instanceof(e, EmscriptenEH)) throw e;
7609
7556
  _setThrew(1, 0);
7610
7557
  }
7611
7558
  }
7612
- function invoke_iiiiij(index, a1, a2, a3, a4, a5, a6) {
7559
+ function invoke_jiiii(index, a1, a2, a3, a4) {
7613
7560
  var sp = stackSave();
7614
7561
  try {
7615
- return dynCall_iiiiij(index, a1, a2, a3, a4, a5, a6);
7562
+ return dynCall_jiiii(index, a1, a2, a3, a4);
7616
7563
  } catch (e) {
7617
7564
  stackRestore(sp);
7618
7565
  if (!_instanceof(e, EmscriptenEH)) throw e;
7619
7566
  _setThrew(1, 0);
7620
7567
  }
7621
7568
  }
7622
- function invoke_iij(index, a1, a2, a3) {
7569
+ function invoke_iiji(index, a1, a2, a3, a4) {
7623
7570
  var sp = stackSave();
7624
7571
  try {
7625
- return dynCall_iij(index, a1, a2, a3);
7572
+ return dynCall_iiji(index, a1, a2, a3, a4);
7626
7573
  } catch (e) {
7627
7574
  stackRestore(sp);
7628
7575
  if (!_instanceof(e, EmscriptenEH)) throw e;
@@ -7672,6 +7619,8 @@ var Module = function() {
7672
7619
  "autoResumeAudioContext",
7673
7620
  "runtimeKeepalivePush",
7674
7621
  "runtimeKeepalivePop",
7622
+ "callUserCallback",
7623
+ "maybeExit",
7675
7624
  "asmjsMangle",
7676
7625
  "HandleAllocator",
7677
7626
  "getNativeTypeSize",
@@ -7831,12 +7780,8 @@ var Module = function() {
7831
7780
  "getExecutableName",
7832
7781
  "dynCallLegacy",
7833
7782
  "getDynCaller",
7834
- "setWasmTableEntry",
7835
- "getWasmTableEntry",
7836
7783
  "handleException",
7837
7784
  "keepRuntimeAlive",
7838
- "callUserCallback",
7839
- "maybeExit",
7840
7785
  "asyncLoad",
7841
7786
  "alignMemory",
7842
7787
  "mmapAlloc",
@@ -8157,8 +8102,8 @@ var Module = function() {
8157
8102
  // @ts-ignore
8158
8103
  var initialize = function() {
8159
8104
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8160
- console.log('im browser', Module);
8161
- return Module(options);
8105
+ console.log('im browser', Balancy);
8106
+ return Balancy(options);
8162
8107
  };
8163
8108
 
8164
8109
  exports.initialize = initialize;