@rive-app/webgl2-advanced 2.25.0 → 2.25.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/webgl2-advanced",
3
- "version": "2.25.0",
3
+ "version": "2.25.2",
4
4
  "description": "Rive's webgl2 low-level canvas based web api.",
5
5
  "main": "webgl2_advanced.mjs",
6
6
  "homepage": "https://rive.app",
package/rive.wasm CHANGED
Binary file
@@ -730,6 +730,12 @@ export declare class StateMachineInstance {
730
730
  * @param sec - Scrub the state machine instance by a number of seconds
731
731
  */
732
732
  advance(sec: number): boolean;
733
+ /**
734
+ * Advances/scrubs the StateMachineInstance by the set amount of seconds. Note that this will
735
+ * apply changes to the properties of objects in the Artboard.
736
+ * @param sec - Scrub the state machine instance by a number of seconds
737
+ */
738
+ advanceAndApply(sec: number): boolean;
733
739
  /**
734
740
  * Returns the number of states changed while the state machine played
735
741
  * @returns Number of states changed in the duration of the state machine played
@@ -5,17 +5,17 @@ var Rive = (() => {
5
5
  return (
6
6
  function(moduleArg = {}) {
7
7
 
8
- var m = moduleArg, aa, ba;
9
- m.ready = new Promise((a, b) => {
8
+ var n = moduleArg, aa, ba;
9
+ n.ready = new Promise((a, b) => {
10
10
  aa = a;
11
11
  ba = b;
12
12
  });
13
13
  function ca() {
14
14
  function a(g) {
15
- const n = d;
15
+ const m = d;
16
16
  c = b = 0;
17
17
  d = new Map();
18
- n.forEach(p => {
18
+ m.forEach(p => {
19
19
  try {
20
20
  p(g);
21
21
  } catch (l) {
@@ -28,9 +28,9 @@ function ca() {
28
28
  let b = 0, c = 0, d = new Map(), e = null, f = null;
29
29
  this.requestAnimationFrame = function(g) {
30
30
  b || (b = requestAnimationFrame(a.bind(this)));
31
- const n = ++c;
32
- d.set(n, g);
33
- return n;
31
+ const m = ++c;
32
+ d.set(m, g);
33
+ return m;
34
34
  };
35
35
  this.cancelAnimationFrame = function(g) {
36
36
  d.delete(g);
@@ -38,14 +38,14 @@ function ca() {
38
38
  };
39
39
  this.Jb = function(g) {
40
40
  f && (document.body.remove(f), f = null);
41
- g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(n) {
42
- f.innerHTML = "RIVE FPS " + n.toFixed(1);
41
+ g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(m) {
42
+ f.innerHTML = "RIVE FPS " + m.toFixed(1);
43
43
  }, document.body.appendChild(f));
44
44
  e = new function() {
45
- let n = 0, p = 0;
45
+ let m = 0, p = 0;
46
46
  this.Lb = function() {
47
47
  var l = performance.now();
48
- p ? (++n, l -= p, 1000 < l && (g(1000 * n / l), n = p = 0)) : (p = l, n = 0);
48
+ p ? (++m, l -= p, 1000 < l && (g(1000 * m / l), m = p = 0)) : (p = l, m = 0);
49
49
  };
50
50
  }();
51
51
  };
@@ -67,44 +67,44 @@ function da() {
67
67
  return b << 8;
68
68
  };
69
69
  }
70
- const ea = m.onRuntimeInitialized;
71
- m.onRuntimeInitialized = function() {
70
+ const ea = n.onRuntimeInitialized;
71
+ n.onRuntimeInitialized = function() {
72
72
  ea && ea();
73
- let a = m.decodeAudio;
74
- m.decodeAudio = function(e, f) {
73
+ let a = n.decodeAudio;
74
+ n.decodeAudio = function(e, f) {
75
75
  e = a(e);
76
76
  f(e);
77
77
  };
78
- let b = m.decodeFont;
79
- m.decodeFont = function(e, f) {
78
+ let b = n.decodeFont;
79
+ n.decodeFont = function(e, f) {
80
80
  e = b(e);
81
81
  f(e);
82
82
  };
83
- const c = m.FileAssetLoader;
84
- m.ptrToAsset = e => {
85
- let f = m.ptrToFileAsset(e);
86
- return f.isImage ? m.ptrToImageAsset(e) : f.isFont ? m.ptrToFontAsset(e) : f.isAudio ? m.ptrToAudioAsset(e) : f;
83
+ const c = n.FileAssetLoader;
84
+ n.ptrToAsset = e => {
85
+ let f = n.ptrToFileAsset(e);
86
+ return f.isImage ? n.ptrToImageAsset(e) : f.isFont ? n.ptrToFontAsset(e) : f.isAudio ? n.ptrToAudioAsset(e) : f;
87
87
  };
88
- m.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
88
+ n.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
89
89
  this.__parent.__construct.call(this);
90
90
  this.Ab = e;
91
91
  }, loadContents:function(e, f) {
92
- e = m.ptrToAsset(e);
92
+ e = n.ptrToAsset(e);
93
93
  return this.Ab(e, f);
94
94
  },});
95
- m.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
95
+ n.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
96
96
  this.__parent.__construct.call(this);
97
97
  }, loadContents:function(e) {
98
- let f = m.ptrToAsset(e);
98
+ let f = n.ptrToAsset(e);
99
99
  e = f.cdnUuid;
100
100
  if ("" === e) {
101
101
  return !1;
102
102
  }
103
- (function(g, n) {
103
+ (function(g, m) {
104
104
  var p = new XMLHttpRequest();
105
105
  p.responseType = "arraybuffer";
106
106
  p.onreadystatechange = function() {
107
- 4 == p.readyState && 200 == p.status && n(p);
107
+ 4 == p.readyState && 200 == p.status && m(p);
108
108
  };
109
109
  p.open("GET", g, !0);
110
110
  p.send(null);
@@ -113,7 +113,7 @@ m.onRuntimeInitialized = function() {
113
113
  });
114
114
  return !0;
115
115
  },});
116
- m.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
116
+ n.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
117
117
  this.__parent.__construct.call(this);
118
118
  this.fb = [];
119
119
  }, addLoader:function(e) {
@@ -126,13 +126,13 @@ m.onRuntimeInitialized = function() {
126
126
  }
127
127
  return !1;
128
128
  },});
129
- let d = m.computeAlignment;
130
- m.computeAlignment = function(e, f, g, n, p = 1.0) {
131
- return d.call(this, e, f, g, n, p);
129
+ let d = n.computeAlignment;
130
+ n.computeAlignment = function(e, f, g, m, p = 1.0) {
131
+ return d.call(this, e, f, g, m, p);
132
132
  };
133
133
  };
134
- const fa = m.onRuntimeInitialized;
135
- m.onRuntimeInitialized = function() {
134
+ const fa = n.onRuntimeInitialized;
135
+ n.onRuntimeInitialized = function() {
136
136
  function a(k) {
137
137
  this.F = k;
138
138
  this.yb = k.getContext("2d");
@@ -196,8 +196,8 @@ m.onRuntimeInitialized = function() {
196
196
  }
197
197
  q = Math.min(q, k);
198
198
  q = Math.min(v, k);
199
- B.sort((Y, rb) => rb.Ia - Y.Ia);
200
- y = new m.DynamicRectanizer(k);
199
+ B.sort((Y, sb) => sb.Ia - Y.Ia);
200
+ y = new n.DynamicRectanizer(k);
201
201
  for (E = 0; E < B.length;) {
202
202
  y.reset(q, v);
203
203
  for (D = E; D < B.length; ++D) {
@@ -209,7 +209,7 @@ m.onRuntimeInitialized = function() {
209
209
  H.ra = F & 65535;
210
210
  H.sa = F >> 16;
211
211
  }
212
- H = n.push(y.drawWidth());
212
+ H = m.push(y.drawWidth());
213
213
  F = p.push(y.drawHeight());
214
214
  console.assert(H >= y.drawWidth());
215
215
  console.assert(F >= y.drawHeight());
@@ -221,15 +221,15 @@ m.onRuntimeInitialized = function() {
221
221
  for (H = E; H < D; ++H) {
222
222
  F = B[H];
223
223
  d.saveClipRect(F.ra, F.sa, F.ra + F.fa, F.sa + F.ea);
224
- let Y = new m.Mat2D();
224
+ let Y = new n.Mat2D();
225
225
  Y.xx = F.fa / F.F.width;
226
226
  Y.yy = F.ea / F.F.height;
227
227
  Y.xy = Y.yx = 0;
228
228
  Y.tx = F.ra;
229
229
  Y.ty = F.sa;
230
230
  d.transform(Y);
231
- for (const rb of F.S) {
232
- rb();
231
+ for (const sb of F.S) {
232
+ sb();
233
233
  }
234
234
  d.restoreClipRect();
235
235
  F.S = [];
@@ -244,8 +244,8 @@ m.onRuntimeInitialized = function() {
244
244
  }
245
245
  fa && fa();
246
246
  let d = null;
247
- const e = new Set(), f = m.makeRenderer;
248
- m.makeRenderer = function(k, q) {
247
+ const e = new Set(), f = n.makeRenderer;
248
+ n.makeRenderer = function(k, q) {
249
249
  if (!d) {
250
250
  function v(y) {
251
251
  var B = document.createElement("canvas");
@@ -265,25 +265,25 @@ m.onRuntimeInitialized = function() {
265
265
  }
266
266
  return q ? new a(k) : b(k, d.Ja);
267
267
  };
268
- const g = m.Artboard.prototype.draw;
269
- m.Artboard.prototype.draw = function(k) {
268
+ const g = n.Artboard.prototype.draw;
269
+ n.Artboard.prototype.draw = function(k) {
270
270
  k.S ? k.S.push(g.bind(this, k.Cb)) : g.call(this, k);
271
271
  };
272
- const n = new da(), p = new da(), l = new ca();
273
- m.requestAnimationFrame = l.requestAnimationFrame.bind(l);
274
- m.cancelAnimationFrame = l.cancelAnimationFrame.bind(l);
275
- m.enableFPSCounter = l.Jb.bind(l);
272
+ const m = new da(), p = new da(), l = new ca();
273
+ n.requestAnimationFrame = l.requestAnimationFrame.bind(l);
274
+ n.cancelAnimationFrame = l.cancelAnimationFrame.bind(l);
275
+ n.enableFPSCounter = l.Jb.bind(l);
276
276
  l.jb = c;
277
- m.resolveAnimationFrame = c;
278
- let t = m.load;
279
- m.load = function(k, q, v = !0) {
280
- const y = new m.FallbackFileAssetLoader();
277
+ n.resolveAnimationFrame = c;
278
+ let t = n.load;
279
+ n.load = function(k, q, v = !0) {
280
+ const y = new n.FallbackFileAssetLoader();
281
281
  void 0 !== q && y.addLoader(q);
282
- v && (q = new m.CDNFileAssetLoader(), y.addLoader(q));
282
+ v && (q = new n.CDNFileAssetLoader(), y.addLoader(q));
283
283
  return Promise.resolve(t(k, y));
284
284
  };
285
- const u = m.WebGL2Renderer.prototype.clear;
286
- m.WebGL2Renderer.prototype.clear = function() {
285
+ const u = n.WebGL2Renderer.prototype.clear;
286
+ n.WebGL2Renderer.prototype.clear = function() {
287
287
  ja(this.zb);
288
288
  const k = this.F;
289
289
  if (this.Va != k.width || this.Ua != k.height) {
@@ -291,16 +291,16 @@ m.onRuntimeInitialized = function() {
291
291
  }
292
292
  u.call(this);
293
293
  };
294
- m.decodeImage = function(k, q) {
295
- k = m.decodeWebGL2Image(k);
294
+ n.decodeImage = function(k, q) {
295
+ k = n.decodeWebGL2Image(k);
296
296
  q(k);
297
297
  };
298
- let x = m.Renderer.prototype.align;
299
- m.Renderer.prototype.align = function(k, q, v, y, B = 1.0) {
298
+ let x = n.Renderer.prototype.align;
299
+ n.Renderer.prototype.align = function(k, q, v, y, B = 1.0) {
300
300
  x.call(this, k, q, v, y, B);
301
301
  };
302
302
  };
303
- var ka = Object.assign({}, m), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, w = "", oa, pa;
303
+ var ka = Object.assign({}, n), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, w = "", oa, pa;
304
304
  if (ma || na) {
305
305
  na ? w = self.location.href : "undefined" != typeof document && document.currentScript && (w = document.currentScript.src), _scriptDir && (w = _scriptDir), 0 !== w.indexOf("blob:") ? w = w.substr(0, w.replace(/[?#].*/, "").lastIndexOf("/") + 1) : w = "", na && (pa = a => {
306
306
  var b = new XMLHttpRequest();
@@ -319,35 +319,35 @@ if (ma || na) {
319
319
  d.send(null);
320
320
  };
321
321
  }
322
- var qa = m.print || console.log.bind(console), z = m.printErr || console.error.bind(console);
323
- Object.assign(m, ka);
322
+ var qa = n.print || console.log.bind(console), z = n.printErr || console.error.bind(console);
323
+ Object.assign(n, ka);
324
324
  ka = null;
325
- m.thisProgram && (la = m.thisProgram);
325
+ n.thisProgram && (la = n.thisProgram);
326
326
  var ra;
327
- m.wasmBinary && (ra = m.wasmBinary);
328
- var noExitRuntime = m.noExitRuntime || !0;
327
+ n.wasmBinary && (ra = n.wasmBinary);
328
+ var noExitRuntime = n.noExitRuntime || !0;
329
329
  "object" != typeof WebAssembly && sa("no native wasm support detected");
330
330
  var ta, A, ua = !1, C, G, I, va, J, K, wa, xa;
331
331
  function ya() {
332
332
  var a = ta.buffer;
333
- m.HEAP8 = C = new Int8Array(a);
334
- m.HEAP16 = I = new Int16Array(a);
335
- m.HEAP32 = J = new Int32Array(a);
336
- m.HEAPU8 = G = new Uint8Array(a);
337
- m.HEAPU16 = va = new Uint16Array(a);
338
- m.HEAPU32 = K = new Uint32Array(a);
339
- m.HEAPF32 = wa = new Float32Array(a);
340
- m.HEAPF64 = xa = new Float64Array(a);
333
+ n.HEAP8 = C = new Int8Array(a);
334
+ n.HEAP16 = I = new Int16Array(a);
335
+ n.HEAP32 = J = new Int32Array(a);
336
+ n.HEAPU8 = G = new Uint8Array(a);
337
+ n.HEAPU16 = va = new Uint16Array(a);
338
+ n.HEAPU32 = K = new Uint32Array(a);
339
+ n.HEAPF32 = wa = new Float32Array(a);
340
+ n.HEAPF64 = xa = new Float64Array(a);
341
341
  }
342
342
  var za, Aa = [], Ba = [], Ca = [];
343
343
  function Da() {
344
- var a = m.preRun.shift();
344
+ var a = n.preRun.shift();
345
345
  Aa.unshift(a);
346
346
  }
347
347
  var Ea = 0, Fa = null, Ga = null;
348
348
  function sa(a) {
349
- if (m.onAbort) {
350
- m.onAbort(a);
349
+ if (n.onAbort) {
350
+ n.onAbort(a);
351
351
  }
352
352
  a = "Aborted(" + a + ")";
353
353
  z(a);
@@ -363,7 +363,7 @@ var Ia;
363
363
  Ia = "webgl2_advanced.wasm";
364
364
  if (!Ha(Ia)) {
365
365
  var Ja = Ia;
366
- Ia = m.locateFile ? m.locateFile(Ja, w) : w + Ja;
366
+ Ia = n.locateFile ? n.locateFile(Ja, w) : w + Ja;
367
367
  }
368
368
  function Ka(a) {
369
369
  if (a == Ia && ra) {
@@ -406,7 +406,7 @@ function Na(a, b) {
406
406
  return Ma(c, a, b);
407
407
  }));
408
408
  }
409
- var Oa, Pa, Ta = {494190:(a, b, c, d, e) => {
409
+ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
410
410
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
411
411
  return 0;
412
412
  }
@@ -422,9 +422,9 @@ var Oa, Pa, Ta = {494190:(a, b, c, d, e) => {
422
422
  let f = window.h;
423
423
  f.C = [];
424
424
  f.mc = function(g) {
425
- for (var n = 0; n < f.C.length; ++n) {
426
- if (null == f.C[n]) {
427
- return f.C[n] = g, n;
425
+ for (var m = 0; m < f.C.length; ++m) {
426
+ if (null == f.C[m]) {
427
+ return f.C[m] = g, m;
428
428
  }
429
429
  }
430
430
  f.C.push(g);
@@ -440,9 +440,9 @@ var Oa, Pa, Ta = {494190:(a, b, c, d, e) => {
440
440
  }
441
441
  };
442
442
  f.Oc = function(g) {
443
- for (var n = 0; n < f.C.length; ++n) {
444
- if (f.C[n] == g) {
445
- return f.xb(n);
443
+ for (var m = 0; m < f.C.length; ++m) {
444
+ if (f.C[m] == g) {
445
+ return f.xb(m);
446
446
  }
447
447
  }
448
448
  };
@@ -452,9 +452,9 @@ var Oa, Pa, Ta = {494190:(a, b, c, d, e) => {
452
452
  f.wb = ["touchend", "click"];
453
453
  f.unlock = function() {
454
454
  for (var g = 0; g < f.C.length; ++g) {
455
- var n = f.C[g];
456
- null != n && null != n.I && n.state === f.ia.sb && n.I.resume().then(() => {
457
- Qa(n.kb);
455
+ var m = f.C[g];
456
+ null != m && null != m.I && m.state === f.ia.sb && m.I.resume().then(() => {
457
+ Qa(m.kb);
458
458
  }, p => {
459
459
  console.error("Failed to resume audiocontext", p);
460
460
  });
@@ -469,9 +469,9 @@ var Oa, Pa, Ta = {494190:(a, b, c, d, e) => {
469
469
  }
470
470
  window.h.Da += 1;
471
471
  return 1;
472
- }, 496368:() => {
472
+ }, 496720:() => {
473
473
  "undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
474
- }, 496532:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 496636:() => {
474
+ }, 496884:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 496988:() => {
475
475
  try {
476
476
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
477
477
  a.close();
@@ -479,13 +479,13 @@ var Oa, Pa, Ta = {494190:(a, b, c, d, e) => {
479
479
  } catch (c) {
480
480
  return 0;
481
481
  }
482
- }, 496807:(a, b, c, d, e, f) => {
482
+ }, 497159:(a, b, c, d, e, f) => {
483
483
  if ("undefined" === typeof window.h) {
484
484
  return -1;
485
485
  }
486
- var g = {}, n = {};
487
- a == window.h.H.Ba && 0 != c && (n.sampleRate = c);
488
- g.I = new (window.AudioContext || window.webkitAudioContext)(n);
486
+ var g = {}, m = {};
487
+ a == window.h.H.Ba && 0 != c && (m.sampleRate = c);
488
+ g.I = new (window.AudioContext || window.webkitAudioContext)(m);
489
489
  g.I.suspend();
490
490
  g.state = window.h.ia.stopped;
491
491
  c = 0;
@@ -525,7 +525,7 @@ var Oa, Pa, Ta = {494190:(a, b, c, d, e) => {
525
525
  a == window.h.H.Ba && g.Z.connect(g.I.destination);
526
526
  g.kb = f;
527
527
  return window.h.mc(g);
528
- }, 499684:a => window.h.va(a).I.sampleRate, 499757:a => {
528
+ }, 500036:a => window.h.va(a).I.sampleRate, 500109:a => {
529
529
  a = window.h.va(a);
530
530
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
531
531
  }, a.Z.disconnect(), a.Z = void 0);
@@ -533,19 +533,19 @@ var Oa, Pa, Ta = {494190:(a, b, c, d, e) => {
533
533
  a.I.close();
534
534
  a.I = void 0;
535
535
  a.kb = void 0;
536
- }, 500157:a => {
536
+ }, 500509:a => {
537
537
  window.h.xb(a);
538
- }, 500207:a => {
538
+ }, 500559:a => {
539
539
  a = window.h.va(a);
540
540
  a.I.resume();
541
541
  a.state = window.h.ia.sb;
542
- }, 500346:a => {
542
+ }, 500698:a => {
543
543
  a = window.h.va(a);
544
544
  a.I.suspend();
545
545
  a.state = window.h.ia.stopped;
546
546
  }}, Ua = a => {
547
547
  for (; 0 < a.length;) {
548
- a.shift()(m);
548
+ a.shift()(n);
549
549
  }
550
550
  }, Va = (a, b) => {
551
551
  for (var c = 0, d = a.length - 1; 0 <= d; d--) {
@@ -640,8 +640,8 @@ var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L
640
640
  for (var f = 0; f < a.length; ++f) {
641
641
  var g = a.charCodeAt(f);
642
642
  if (55296 <= g && 57343 >= g) {
643
- var n = a.charCodeAt(++f);
644
- g = 65536 + ((g & 1023) << 10) | n & 1023;
643
+ var m = a.charCodeAt(++f);
644
+ g = 65536 + ((g & 1023) << 10) | m & 1023;
645
645
  }
646
646
  if (127 >= g) {
647
647
  if (c >= d) {
@@ -704,7 +704,7 @@ var jb = {open:function(a) {
704
704
  for (var e = 0, f = 0; f < d; f++) {
705
705
  try {
706
706
  var g = a.s.U.eb(a.s);
707
- } catch (n) {
707
+ } catch (m) {
708
708
  throw new M(29);
709
709
  }
710
710
  if (void 0 === g && 0 === e) {
@@ -929,7 +929,7 @@ var N = {O:null, T() {
929
929
  N.m.write(a, b, 0, d, c, !1);
930
930
  return 0;
931
931
  },},};
932
- function sb(a, b) {
932
+ function rb(a, b) {
933
933
  var c = 0;
934
934
  a && (c |= 365);
935
935
  b && (c |= 146);
@@ -1179,7 +1179,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
1179
1179
  b &= -131713;
1180
1180
  e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m, nc:[], error:!1});
1181
1181
  e.m.open && e.m.open(e);
1182
- !m.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
1182
+ !n.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
1183
1183
  return e;
1184
1184
  }, Qb = (a, b, c) => {
1185
1185
  if (null === a.X) {
@@ -1208,14 +1208,14 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
1208
1208
  }));
1209
1209
  }, Sb, Ub = (a, b, c) => {
1210
1210
  a = Wa("/dev/" + a);
1211
- var d = sb(!!b, !!c);
1211
+ var d = rb(!!b, !!c);
1212
1212
  Tb || (Tb = 64);
1213
1213
  var e = Tb++ << 8 | 0;
1214
1214
  ib(e, {open:f => {
1215
1215
  f.seekable = !1;
1216
1216
  }, close:() => {
1217
1217
  c && c.buffer && c.buffer.length && c(10);
1218
- }, read:(f, g, n, p) => {
1218
+ }, read:(f, g, m, p) => {
1219
1219
  for (var l = 0, t = 0; t < p; t++) {
1220
1220
  try {
1221
1221
  var u = b();
@@ -1229,14 +1229,14 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
1229
1229
  break;
1230
1230
  }
1231
1231
  l++;
1232
- g[n + t] = u;
1232
+ g[m + t] = u;
1233
1233
  }
1234
1234
  l && (f.node.timestamp = Date.now());
1235
1235
  return l;
1236
- }, write:(f, g, n, p) => {
1236
+ }, write:(f, g, m, p) => {
1237
1237
  for (var l = 0; l < p; l++) {
1238
1238
  try {
1239
- c(g[n + l]);
1239
+ c(g[m + l]);
1240
1240
  } catch (t) {
1241
1241
  throw new M(29);
1242
1242
  }
@@ -1398,20 +1398,20 @@ function Bc(a) {
1398
1398
  }
1399
1399
  var Cc = {}, Dc = {};
1400
1400
  function T(a, b, c) {
1401
- function d(n) {
1402
- n = c(n);
1403
- n.length !== a.length && wc("Mismatched type converter count");
1401
+ function d(m) {
1402
+ m = c(m);
1403
+ m.length !== a.length && wc("Mismatched type converter count");
1404
1404
  for (var p = 0; p < a.length; ++p) {
1405
- U(a[p], n[p]);
1405
+ U(a[p], m[p]);
1406
1406
  }
1407
1407
  }
1408
- a.forEach(function(n) {
1409
- Dc[n] = b;
1408
+ a.forEach(function(m) {
1409
+ Dc[m] = b;
1410
1410
  });
1411
1411
  var e = Array(b.length), f = [], g = 0;
1412
- b.forEach((n, p) => {
1413
- kc.hasOwnProperty(n) ? e[p] = kc[n] : (f.push(n), Cc.hasOwnProperty(n) || (Cc[n] = []), Cc[n].push(() => {
1414
- e[p] = kc[n];
1412
+ b.forEach((m, p) => {
1413
+ kc.hasOwnProperty(m) ? e[p] = kc[m] : (f.push(m), Cc.hasOwnProperty(m) || (Cc[m] = []), Cc[m].push(() => {
1414
+ e[p] = kc[m];
1415
1415
  ++g;
1416
1416
  g === f.length && d(e);
1417
1417
  }));
@@ -1468,9 +1468,9 @@ function Ic(a, b, c) {
1468
1468
  }
1469
1469
  }
1470
1470
  function Jc(a, b, c) {
1471
- m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && Q(`Cannot register public name '${a}' twice`), Ic(m, a, a), m.hasOwnProperty(c) && Q(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), m[a].B[c] = b) : (m[a] = b, void 0 !== c && (m[a].Lc = c));
1471
+ n.hasOwnProperty(a) ? ((void 0 === c || void 0 !== n[a].B && void 0 !== n[a].B[c]) && Q(`Cannot register public name '${a}' twice`), Ic(n, a, a), n.hasOwnProperty(c) && Q(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), n[a].B[c] = b) : (n[a] = b, void 0 !== c && (n[a].Lc = c));
1472
1472
  }
1473
- function Kc(a, b, c, d, e, f, g, n) {
1473
+ function Kc(a, b, c, d, e, f, g, m) {
1474
1474
  this.name = a;
1475
1475
  this.constructor = b;
1476
1476
  this.N = c;
@@ -1478,7 +1478,7 @@ function Kc(a, b, c, d, e, f, g, n) {
1478
1478
  this.A = e;
1479
1479
  this.Mb = f;
1480
1480
  this.pa = g;
1481
- this.Hb = n;
1481
+ this.Hb = m;
1482
1482
  this.lb = [];
1483
1483
  }
1484
1484
  function Lc(a, b, c) {
@@ -1553,8 +1553,8 @@ function Qc(a, b, c, d) {
1553
1553
  void 0 !== b.A ? this.toWireType = Oc : (this.toWireType = d ? Mc : Pc, this.K = null);
1554
1554
  }
1555
1555
  function Rc(a, b, c) {
1556
- m.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
1557
- void 0 !== m[a].B && void 0 !== c ? m[a].B[c] = b : (m[a] = b, m[a].ga = c);
1556
+ n.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
1557
+ void 0 !== n[a].B && void 0 !== c ? n[a].B[c] = b : (n[a] = b, n[a].ga = c);
1558
1558
  }
1559
1559
  var Sc = [], Tc = a => {
1560
1560
  var b = Sc[a];
@@ -1566,7 +1566,7 @@ var Sc = [], Tc = a => {
1566
1566
  c.length = 0;
1567
1567
  Object.assign(c, arguments);
1568
1568
  if (a.includes("j")) {
1569
- var d = m["dynCall_" + a];
1569
+ var d = n["dynCall_" + a];
1570
1570
  d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
1571
1571
  } else {
1572
1572
  d = Tc(b).apply(null, c);
@@ -1592,10 +1592,10 @@ function Wc(a, b) {
1592
1592
  function Xc(a, b, c, d, e) {
1593
1593
  var f = b.length;
1594
1594
  2 > f && Q("argTypes array size mismatch! Must at least get return value and 'this' types!");
1595
- var g = null !== b[1] && null !== c, n = !1;
1595
+ var g = null !== b[1] && null !== c, m = !1;
1596
1596
  for (c = 1; c < b.length; ++c) {
1597
1597
  if (null !== b[c] && void 0 === b[c].K) {
1598
- n = !0;
1598
+ m = !0;
1599
1599
  break;
1600
1600
  }
1601
1601
  }
@@ -1613,7 +1613,7 @@ function Xc(a, b, c, d, e) {
1613
1613
  t[q] = b[q + 2].toWireType(x, arguments[q]), u.push(t[q]);
1614
1614
  }
1615
1615
  q = d.apply(null, u);
1616
- if (n) {
1616
+ if (m) {
1617
1617
  Ac(x);
1618
1618
  } else {
1619
1619
  for (var v = g ? 1 : 2; v < b.length; v++) {
@@ -1808,7 +1808,7 @@ function ha(a) {
1808
1808
  }
1809
1809
  function ja(a) {
1810
1810
  Dd = r[a];
1811
- m.xc = Z = Dd && Dd.J;
1811
+ n.xc = Z = Dd && Dd.J;
1812
1812
  return !(a && !Z);
1813
1813
  }
1814
1814
  function ia(a) {
@@ -1977,7 +1977,7 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
1977
1977
  0 === (y = v(k.getFullYear() - q.getFullYear())) && 0 === (y = v(k.getMonth() - q.getMonth())) && (y = v(k.getDate() - q.getDate()));
1978
1978
  return y;
1979
1979
  }
1980
- function n(k) {
1980
+ function m(k) {
1981
1981
  switch(k.getDay()) {
1982
1982
  case 0:
1983
1983
  return new Date(k.getFullYear() - 1, 11, 29);
@@ -2007,8 +2007,8 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
2007
2007
  }
2008
2008
  }
2009
2009
  v = new Date(k.getFullYear() + 1, 0, 4);
2010
- q = n(new Date(k.getFullYear(), 0, 4));
2011
- v = n(v);
2010
+ q = m(new Date(k.getFullYear(), 0, 4));
2011
+ v = m(v);
2012
2012
  return 0 >= g(q, k) ? 0 >= g(v, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
2013
2013
  }
2014
2014
  var l = J[d + 40 >> 2];
@@ -2126,7 +2126,7 @@ Object.assign($b.prototype, {get(a) {
2126
2126
  this.M[a] = void 0;
2127
2127
  this.cb.push(a);
2128
2128
  }});
2129
- ac = m.BindingError = class extends Error {
2129
+ ac = n.BindingError = class extends Error {
2130
2130
  constructor(a) {
2131
2131
  super(a);
2132
2132
  this.name = "BindingError";
@@ -2134,33 +2134,33 @@ ac = m.BindingError = class extends Error {
2134
2134
  };
2135
2135
  P.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
2136
2136
  P.h = P.M.length;
2137
- m.count_emval_handles = function() {
2137
+ n.count_emval_handles = function() {
2138
2138
  for (var a = 0, b = P.h; b < P.M.length; ++b) {
2139
2139
  void 0 !== P.M[b] && ++a;
2140
2140
  }
2141
2141
  return a;
2142
2142
  };
2143
- dc = m.PureVirtualError = cc("PureVirtualError");
2143
+ dc = n.PureVirtualError = cc("PureVirtualError");
2144
2144
  for (var Sd = Array(256), Td = 0; 256 > Td; ++Td) {
2145
2145
  Sd[Td] = String.fromCharCode(Td);
2146
2146
  }
2147
2147
  ec = Sd;
2148
- m.getInheritedInstanceCount = function() {
2148
+ n.getInheritedInstanceCount = function() {
2149
2149
  return Object.keys(ic).length;
2150
2150
  };
2151
- m.getLiveInheritedInstances = function() {
2151
+ n.getLiveInheritedInstances = function() {
2152
2152
  var a = [], b;
2153
2153
  for (b in ic) {
2154
2154
  ic.hasOwnProperty(b) && a.push(ic[b]);
2155
2155
  }
2156
2156
  return a;
2157
2157
  };
2158
- m.flushPendingDeletes = gc;
2159
- m.setDelayFunction = function(a) {
2158
+ n.flushPendingDeletes = gc;
2159
+ n.setDelayFunction = function(a) {
2160
2160
  hc = a;
2161
2161
  fc.length && hc && hc(gc);
2162
2162
  };
2163
- vc = m.InternalError = class extends Error {
2163
+ vc = n.InternalError = class extends Error {
2164
2164
  constructor(a) {
2165
2165
  super(a);
2166
2166
  this.name = "InternalError";
@@ -2248,7 +2248,7 @@ Qc.prototype.fromWireType = function(a) {
2248
2248
  var e = sc(c, this.i, d.i);
2249
2249
  return null === e ? b.call(this) : this.ya ? xc(d.i.N, {u:d, o:e, L:this, G:a,}) : xc(d.i.N, {u:d, o:e,});
2250
2250
  };
2251
- Vc = m.UnboundTypeError = cc("UnboundTypeError");
2251
+ Vc = n.UnboundTypeError = cc("UnboundTypeError");
2252
2252
  for (var Z, Ud = 0; 32 > Ud; ++Ud) {
2253
2253
  Id.push(Array(Ud));
2254
2254
  }
@@ -2374,17 +2374,17 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2374
2374
  }
2375
2375
  var g = d ? Xb() : 0;
2376
2376
  return Pb(b, c, g).X;
2377
- } catch (n) {
2378
- if ("undefined" == typeof Vb || "ErrnoError" !== n.name) {
2379
- throw n;
2377
+ } catch (m) {
2378
+ if ("undefined" == typeof Vb || "ErrnoError" !== m.name) {
2379
+ throw m;
2380
2380
  }
2381
- return -n.aa;
2381
+ return -m.aa;
2382
2382
  }
2383
2383
  }, _embind_create_inheriting_constructor:function(a, b, c) {
2384
2384
  a = S(a);
2385
2385
  b = oc(b, "wrapper");
2386
2386
  c = R(c);
2387
- var d = [].slice, e = b.i, f = e.N, g = e.A.N, n = e.A.constructor;
2387
+ var d = [].slice, e = b.i, f = e.N, g = e.A.N, m = e.A.constructor;
2388
2388
  a = Zb(a, function() {
2389
2389
  e.A.lb.forEach(function(l) {
2390
2390
  if (this[l] === g[l]) {
@@ -2396,7 +2396,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2396
2396
  });
2397
2397
  f.__construct = function() {
2398
2398
  this === f && Q("Pass correct 'this' to __construct");
2399
- var l = n.implement.apply(void 0, [this].concat(d.call(arguments)));
2399
+ var l = m.implement.apply(void 0, [this].concat(d.call(arguments)));
2400
2400
  pc(l);
2401
2401
  var t = l.g;
2402
2402
  l.notifyOnDestruction();
@@ -2424,10 +2424,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2424
2424
  delete zc[a];
2425
2425
  var c = b.Pa, d = b.V, e = b.$a, f = e.map(g => g.Qb).concat(e.map(g => g.ec));
2426
2426
  T([a], f, g => {
2427
- var n = {};
2427
+ var m = {};
2428
2428
  e.forEach((p, l) => {
2429
2429
  var t = g[l], u = p.Ob, x = p.Pb, k = g[l + e.length], q = p.dc, v = p.fc;
2430
- n[p.Kb] = {read:y => t.fromWireType(u(x, y)), write:(y, B) => {
2430
+ m[p.Kb] = {read:y => t.fromWireType(u(x, y)), write:(y, B) => {
2431
2431
  var D = [];
2432
2432
  q(v, y, k.toWireType(D, B));
2433
2433
  Ac(D);
@@ -2435,20 +2435,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2435
2435
  });
2436
2436
  return [{name:b.name, fromWireType:function(p) {
2437
2437
  var l = {}, t;
2438
- for (t in n) {
2439
- l[t] = n[t].read(p);
2438
+ for (t in m) {
2439
+ l[t] = m[t].read(p);
2440
2440
  }
2441
2441
  d(p);
2442
2442
  return l;
2443
2443
  }, toWireType:function(p, l) {
2444
- for (var t in n) {
2444
+ for (var t in m) {
2445
2445
  if (!(t in l)) {
2446
2446
  throw new TypeError(`Missing field: "${t}"`);
2447
2447
  }
2448
2448
  }
2449
2449
  var u = c();
2450
- for (t in n) {
2451
- n[t].write(u, l[t]);
2450
+ for (t in m) {
2451
+ m[t].write(u, l[t]);
2452
2452
  }
2453
2453
  null !== p && p.push(d, u);
2454
2454
  return u;
@@ -2460,24 +2460,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2460
2460
  b = S(b);
2461
2461
  U(a, {name:b, fromWireType:function(g) {
2462
2462
  return !!g;
2463
- }, toWireType:function(g, n) {
2464
- return n ? d : e;
2463
+ }, toWireType:function(g, m) {
2464
+ return m ? d : e;
2465
2465
  }, argPackAdvance:8, readValueFromPointer:function(g) {
2466
2466
  if (1 === c) {
2467
- var n = C;
2467
+ var m = C;
2468
2468
  } else if (2 === c) {
2469
- n = I;
2469
+ m = I;
2470
2470
  } else if (4 === c) {
2471
- n = J;
2471
+ m = J;
2472
2472
  } else {
2473
2473
  throw new TypeError("Unknown boolean type size: " + b);
2474
2474
  }
2475
- return this.fromWireType(n[g >> f]);
2475
+ return this.fromWireType(m[g >> f]);
2476
2476
  }, K:null,});
2477
- }, _embind_register_class:function(a, b, c, d, e, f, g, n, p, l, t, u, x) {
2477
+ }, _embind_register_class:function(a, b, c, d, e, f, g, m, p, l, t, u, x) {
2478
2478
  t = S(t);
2479
2479
  f = V(e, f);
2480
- n && (n = V(g, n));
2480
+ m && (m = V(g, m));
2481
2481
  l && (l = V(p, l));
2482
2482
  x = V(u, x);
2483
2483
  var k = Yb(t);
@@ -2507,7 +2507,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2507
2507
  });
2508
2508
  var B = Object.create(y, {constructor:{value:q},});
2509
2509
  q.prototype = B;
2510
- var D = new Kc(t, q, B, x, v, f, n, l);
2510
+ var D = new Kc(t, q, B, x, v, f, m, l);
2511
2511
  D.A && (void 0 === D.A.qa && (D.A.qa = []), D.A.qa.push(D));
2512
2512
  v = new Qc(t, D, !0, !1);
2513
2513
  y = new Qc(t + "*", D, !1, !1);
@@ -2517,19 +2517,19 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2517
2517
  return [v, y, E];
2518
2518
  });
2519
2519
  }, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
2520
- var n = Yc(c, d);
2520
+ var m = Yc(c, d);
2521
2521
  b = S(b);
2522
2522
  f = V(e, f);
2523
2523
  T([], [a], function(p) {
2524
2524
  function l() {
2525
- Wc(`Cannot call ${t} due to unbound types`, n);
2525
+ Wc(`Cannot call ${t} due to unbound types`, m);
2526
2526
  }
2527
2527
  p = p[0];
2528
2528
  var t = `${p.name}.${b}`;
2529
2529
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2530
2530
  var u = p.i.constructor;
2531
2531
  void 0 === u[b] ? (l.ga = c - 1, u[b] = l) : (Ic(u, b, t), u[b].B[c - 1] = l);
2532
- T([], n, function(x) {
2532
+ T([], m, function(x) {
2533
2533
  x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
2534
2534
  void 0 === u[b].B ? (x.ga = c - 1, u[b] = x) : u[b].B[c - 1] = x;
2535
2535
  if (p.i.qa) {
@@ -2541,7 +2541,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2541
2541
  });
2542
2542
  return [];
2543
2543
  });
2544
- }, _embind_register_class_class_property:function(a, b, c, d, e, f, g, n) {
2544
+ }, _embind_register_class_class_property:function(a, b, c, d, e, f, g, m) {
2545
2545
  b = S(b);
2546
2546
  f = V(e, f);
2547
2547
  T([], [a], function(p) {
@@ -2549,7 +2549,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2549
2549
  var l = `${p.name}.${b}`, t = {get() {
2550
2550
  Wc(`Cannot access ${l} due to unbound types`, [c]);
2551
2551
  }, enumerable:!0, configurable:!0};
2552
- t.set = n ? () => {
2552
+ t.set = m ? () => {
2553
2553
  Wc(`Cannot access ${l} due to unbound types`, [c]);
2554
2554
  } : () => {
2555
2555
  Q(`${l} is a read-only property`);
@@ -2560,9 +2560,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2560
2560
  var x = {get() {
2561
2561
  return u.fromWireType(f(d));
2562
2562
  }, enumerable:!0};
2563
- n && (n = V(g, n), x.set = k => {
2563
+ m && (m = V(g, m), x.set = k => {
2564
2564
  var q = [];
2565
- n(d, u.toWireType(q, k));
2565
+ m(d, u.toWireType(q, k));
2566
2566
  Ac(q);
2567
2567
  });
2568
2568
  Object.defineProperty(p.i.constructor, b, x);
@@ -2573,24 +2573,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2573
2573
  }, _embind_register_class_constructor:function(a, b, c, d, e, f) {
2574
2574
  var g = Yc(b, c);
2575
2575
  e = V(d, e);
2576
- T([], [a], function(n) {
2577
- n = n[0];
2578
- var p = `constructor ${n.name}`;
2579
- void 0 === n.i.$ && (n.i.$ = []);
2580
- if (void 0 !== n.i.$[b - 1]) {
2581
- throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${n.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2582
- }
2583
- n.i.$[b - 1] = () => {
2584
- Wc(`Cannot construct ${n.name} due to unbound types`, g);
2576
+ T([], [a], function(m) {
2577
+ m = m[0];
2578
+ var p = `constructor ${m.name}`;
2579
+ void 0 === m.i.$ && (m.i.$ = []);
2580
+ if (void 0 !== m.i.$[b - 1]) {
2581
+ throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${m.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2582
+ }
2583
+ m.i.$[b - 1] = () => {
2584
+ Wc(`Cannot construct ${m.name} due to unbound types`, g);
2585
2585
  };
2586
2586
  T([], g, function(l) {
2587
2587
  l.splice(1, 0, null);
2588
- n.i.$[b - 1] = Xc(p, l, null, e, f);
2588
+ m.i.$[b - 1] = Xc(p, l, null, e, f);
2589
2589
  return [];
2590
2590
  });
2591
2591
  return [];
2592
2592
  });
2593
- }, _embind_register_class_function:function(a, b, c, d, e, f, g, n) {
2593
+ }, _embind_register_class_function:function(a, b, c, d, e, f, g, m) {
2594
2594
  var p = Yc(c, d);
2595
2595
  b = S(b);
2596
2596
  f = V(e, f);
@@ -2601,7 +2601,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2601
2601
  l = l[0];
2602
2602
  var u = `${l.name}.${b}`;
2603
2603
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2604
- n && l.i.lb.push(b);
2604
+ m && l.i.lb.push(b);
2605
2605
  var x = l.i.N, k = x[b];
2606
2606
  void 0 === k || void 0 === k.B && k.className !== l.name && k.ga === c - 2 ? (t.ga = c - 2, t.className = l.name, x[b] = t) : (Ic(x, b, u), x[b].B[c - 2] = t);
2607
2607
  T([], p, function(q) {
@@ -2611,7 +2611,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2611
2611
  });
2612
2612
  return [];
2613
2613
  });
2614
- }, _embind_register_class_property:function(a, b, c, d, e, f, g, n, p, l) {
2614
+ }, _embind_register_class_property:function(a, b, c, d, e, f, g, m, p, l) {
2615
2615
  b = S(b);
2616
2616
  e = V(d, e);
2617
2617
  T([], [a], function(t) {
@@ -2631,7 +2631,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2631
2631
  return q.fromWireType(e(f, B));
2632
2632
  }, enumerable:!0};
2633
2633
  if (p) {
2634
- p = V(n, p);
2634
+ p = V(m, p);
2635
2635
  var y = k[1];
2636
2636
  v.set = function(B) {
2637
2637
  var D = Zc(this, t, u + " setter"), E = [];
@@ -2688,22 +2688,22 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2688
2688
  Jc(a, function() {
2689
2689
  Wc(`Cannot call ${a} due to unbound types`, g);
2690
2690
  }, b - 1);
2691
- T([], g, function(n) {
2692
- Rc(a, Xc(a, [n[0], null].concat(n.slice(1)), null, e, f), b - 1);
2691
+ T([], g, function(m) {
2692
+ Rc(a, Xc(a, [m[0], null].concat(m.slice(1)), null, e, f), b - 1);
2693
2693
  return [];
2694
2694
  });
2695
2695
  }, _embind_register_integer:function(a, b, c, d, e) {
2696
2696
  b = S(b);
2697
2697
  -1 === e && (e = 4294967295);
2698
2698
  e = Ec(c);
2699
- var f = n => n;
2699
+ var f = m => m;
2700
2700
  if (0 === d) {
2701
2701
  var g = 32 - 8 * c;
2702
- f = n => n << g >>> g;
2702
+ f = m => m << g >>> g;
2703
2703
  }
2704
- c = b.includes("unsigned") ? function(n, p) {
2704
+ c = b.includes("unsigned") ? function(m, p) {
2705
2705
  return p >>> 0;
2706
- } : function(n, p) {
2706
+ } : function(m, p) {
2707
2707
  return p;
2708
2708
  };
2709
2709
  U(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:cd(b, e, 0 !== d), K:null,});
@@ -2722,9 +2722,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2722
2722
  U(a, {name:b, fromWireType:function(d) {
2723
2723
  var e = K[d >> 2], f = d + 4;
2724
2724
  if (c) {
2725
- for (var g = f, n = 0; n <= e; ++n) {
2726
- var p = f + n;
2727
- if (n == e || 0 == G[p]) {
2725
+ for (var g = f, m = 0; m <= e; ++m) {
2726
+ var p = f + m;
2727
+ if (m == e || 0 == G[p]) {
2728
2728
  g = g ? L(G, g, p - g) : "";
2729
2729
  if (void 0 === l) {
2730
2730
  var l = g;
@@ -2736,8 +2736,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2736
2736
  }
2737
2737
  } else {
2738
2738
  l = Array(e);
2739
- for (n = 0; n < e; ++n) {
2740
- l[n] = String.fromCharCode(G[f + n]);
2739
+ for (m = 0; m < e; ++m) {
2740
+ l[m] = String.fromCharCode(G[f + m]);
2741
2741
  }
2742
2742
  l = l.join("");
2743
2743
  }
@@ -2748,8 +2748,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2748
2748
  var f = "string" == typeof e;
2749
2749
  f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || Q("Cannot pass non-string to std::string");
2750
2750
  var g = c && f ? db(e) : e.length;
2751
- var n = Ld(4 + g + 1), p = n + 4;
2752
- K[n >> 2] = g;
2751
+ var m = Ld(4 + g + 1), p = m + 4;
2752
+ K[m >> 2] = g;
2753
2753
  if (c && f) {
2754
2754
  eb(e, G, p, g + 1);
2755
2755
  } else {
@@ -2765,8 +2765,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2765
2765
  }
2766
2766
  }
2767
2767
  }
2768
- null !== d && d.push(nc, n);
2769
- return n;
2768
+ null !== d && d.push(nc, m);
2769
+ return m;
2770
2770
  }, argPackAdvance:8, readValueFromPointer:Bc, K:function(d) {
2771
2771
  nc(d);
2772
2772
  },});
@@ -2777,14 +2777,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2777
2777
  var e = fd;
2778
2778
  var f = gd;
2779
2779
  var g = () => va;
2780
- var n = 1;
2780
+ var m = 1;
2781
2781
  } else {
2782
- 4 === b && (d = hd, e = jd, f = kd, g = () => K, n = 2);
2782
+ 4 === b && (d = hd, e = jd, f = kd, g = () => K, m = 2);
2783
2783
  }
2784
2784
  U(a, {name:c, fromWireType:function(p) {
2785
2785
  for (var l = K[p >> 2], t = g(), u, x = p + 4, k = 0; k <= l; ++k) {
2786
2786
  var q = p + 4 + k * b;
2787
- if (k == l || 0 == t[q >> n]) {
2787
+ if (k == l || 0 == t[q >> m]) {
2788
2788
  x = d(x, q - x), void 0 === u ? u = x : (u += String.fromCharCode(0), u += x), x = q + b;
2789
2789
  }
2790
2790
  }
@@ -2793,7 +2793,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2793
2793
  }, toWireType:function(p, l) {
2794
2794
  "string" != typeof l && Q(`Cannot pass non-string to C++ string type ${c}`);
2795
2795
  var t = f(l), u = Ld(4 + t + b);
2796
- K[u >> 2] = t >> n;
2796
+ K[u >> 2] = t >> m;
2797
2797
  e(l, u + 4, t + b);
2798
2798
  null !== p && p.push(nc, u);
2799
2799
  return u;
@@ -2802,8 +2802,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2802
2802
  },});
2803
2803
  }, _embind_register_value_object:function(a, b, c, d, e, f) {
2804
2804
  zc[a] = {name:S(b), Pa:V(c, d), V:V(e, f), $a:[],};
2805
- }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, n, p, l) {
2806
- zc[a].$a.push({Kb:S(b), Qb:c, Ob:V(d, e), Pb:f, ec:g, dc:V(n, p), fc:l,});
2805
+ }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, m, p, l) {
2806
+ zc[a].$a.push({Kb:S(b), Qb:c, Ob:V(d, e), Pb:f, ec:g, dc:V(m, p), fc:l,});
2807
2807
  }, _embind_register_void:function(a, b) {
2808
2808
  b = S(b);
2809
2809
  U(a, {Yb:!0, name:b, argPackAdvance:0, fromWireType:function() {
@@ -2837,11 +2837,11 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2837
2837
  return e;
2838
2838
  }
2839
2839
  var f = Array(a - 1);
2840
- e = od((g, n, p, l) => {
2840
+ e = od((g, m, p, l) => {
2841
2841
  for (var t = 0, u = 0; u < a - 1; ++u) {
2842
2842
  f[u] = c[u + 1].readValueFromPointer(l + t), t += c[u + 1].argPackAdvance;
2843
2843
  }
2844
- g = g[n].apply(g, f);
2844
+ g = g[m].apply(g, f);
2845
2845
  for (u = 0; u < a - 1; ++u) {
2846
2846
  c[u + 1].Gb && c[u + 1].Gb(f[u]);
2847
2847
  }
@@ -2876,21 +2876,21 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2876
2876
  }, abort:() => {
2877
2877
  sa("");
2878
2878
  }, beginPixelLocalStorageWEBGL:function(a, b, c) {
2879
- (a = r[a].J.ja) && a.beginPixelLocalStorageWEBGL(m.HEAPU32.subarray(c, c + b));
2879
+ (a = r[a].J.ja) && a.beginPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
2880
2880
  }, decode_image:function(a, b, c) {
2881
- var d = m.images;
2882
- d || (d = new Map(), m.images = d);
2881
+ var d = n.images;
2882
+ d || (d = new Map(), n.images = d);
2883
2883
  var e = new Image();
2884
2884
  d.set(a, e);
2885
- b = m.HEAP8.subarray(b, b + c);
2885
+ b = n.HEAP8.subarray(b, b + c);
2886
2886
  c = new Uint8Array(c);
2887
2887
  c.set(b);
2888
2888
  e.src = URL.createObjectURL(new Blob([c], {type:"image/png"}));
2889
2889
  e.onload = function() {
2890
- m._setWebImage(a, e.width, e.height);
2890
+ n._setWebImage(a, e.width, e.height);
2891
2891
  };
2892
2892
  }, delete_image:function(a) {
2893
- var b = m.images;
2893
+ var b = n.images;
2894
2894
  b && b.get(a) && b.delete(a);
2895
2895
  }, emscripten_asm_const_int:(a, b, c) => {
2896
2896
  rd.length = 0;
@@ -2949,7 +2949,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2949
2949
  a.ja = a.getExtension("WEBGL_shader_pixel_local_storage");
2950
2950
  return !(!a.ja || !a.ja.isCoherent());
2951
2951
  }, endPixelLocalStorageWEBGL:function(a, b, c) {
2952
- (a = r[a].J.ja) && a.endPixelLocalStorageWEBGL(m.HEAPU32.subarray(c, c + b));
2952
+ (a = r[a].J.ja) && a.endPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
2953
2953
  }, environ_get:(a, b) => {
2954
2954
  var c = 0;
2955
2955
  Hd().forEach(function(d, e) {
@@ -2999,9 +2999,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2999
2999
  var e = Ib(a);
3000
3000
  a = b;
3001
3001
  for (var f, g = b = 0; g < c; g++) {
3002
- var n = K[a >> 2], p = K[a + 4 >> 2];
3002
+ var m = K[a >> 2], p = K[a + 4 >> 2];
3003
3003
  a += 8;
3004
- var l = e, t = n, u = p, x = f, k = C;
3004
+ var l = e, t = m, u = p, x = f, k = C;
3005
3005
  if (0 > u || 0 > x) {
3006
3006
  throw new M(28);
3007
3007
  }
@@ -3071,9 +3071,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3071
3071
  var e = Ib(a);
3072
3072
  a = b;
3073
3073
  for (var f, g = b = 0; g < c; g++) {
3074
- var n = K[a >> 2], p = K[a + 4 >> 2];
3074
+ var m = K[a >> 2], p = K[a + 4 >> 2];
3075
3075
  a += 8;
3076
- var l = e, t = n, u = p, x = f, k = C;
3076
+ var l = e, t = m, u = p, x = f, k = C;
3077
3077
  if (0 > u || 0 > x) {
3078
3078
  throw new M(28);
3079
3079
  }
@@ -3141,8 +3141,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3141
3141
  Z.blendEquation(a);
3142
3142
  }, glBlendFunc:function(a, b) {
3143
3143
  Z.blendFunc(a, b);
3144
- }, glBlitFramebuffer:function(a, b, c, d, e, f, g, n, p, l) {
3145
- Z.blitFramebuffer(a, b, c, d, e, f, g, n, p, l);
3144
+ }, glBlitFramebuffer:function(a, b, c, d, e, f, g, m, p, l) {
3145
+ Z.blitFramebuffer(a, b, c, d, e, f, g, m, p, l);
3146
3146
  }, glBufferData:function(a, b, c, d) {
3147
3147
  c && b ? Z.bufferData(a, G, d, c, b) : Z.bufferData(a, b, d);
3148
3148
  }, glBufferSubData:function(a, b, c, d) {
@@ -3295,15 +3295,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3295
3295
  if (!d) {
3296
3296
  for (c.oa = d = {}, c.tb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
3297
3297
  var g = Z.getActiveUniform(c, f);
3298
- var n = g.name;
3298
+ var m = g.name;
3299
3299
  g = g.size;
3300
- var p = Nd(n);
3301
- p = 0 < p ? n.slice(0, p) : n;
3300
+ var p = Nd(m);
3301
+ p = 0 < p ? m.slice(0, p) : m;
3302
3302
  var l = c.Sa;
3303
3303
  c.Sa += g;
3304
3304
  e[p] = [g, l];
3305
- for (n = 0; n < g; ++n) {
3306
- d[l] = n, c.tb[l++] = p;
3305
+ for (m = 0; m < g; ++m) {
3306
+ d[l] = m, c.tb[l++] = p;
3307
3307
  }
3308
3308
  }
3309
3309
  }
@@ -3324,6 +3324,11 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3324
3324
  d[e] = J[c + 4 * e >> 2];
3325
3325
  }
3326
3326
  Z.invalidateFramebuffer(a, d);
3327
+ }, glInvalidateSubFramebuffer:function(a, b, c, d, e, f, g) {
3328
+ for (var m = Id[b], p = 0; p < b; p++) {
3329
+ m[p] = J[c + 4 * p >> 2];
3330
+ }
3331
+ Z.invalidateSubFramebuffer(a, m, d, e, f, g);
3327
3332
  }, glLinkProgram:function(a) {
3328
3333
  a = W[a];
3329
3334
  Z.linkProgram(a);
@@ -3337,8 +3342,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3337
3342
  Z.scissor(a, b, c, d);
3338
3343
  }, glShaderSource:function(a, b, c, d) {
3339
3344
  for (var e = "", f = 0; f < b; ++f) {
3340
- var g = d ? J[d + 4 * f >> 2] : -1, n = J[c + 4 * f >> 2];
3341
- g = n ? L(G, n, 0 > g ? void 0 : g) : "";
3345
+ var g = d ? J[d + 4 * f >> 2] : -1, m = J[c + 4 * f >> 2];
3346
+ g = m ? L(G, m, 0 > g ? void 0 : g) : "";
3342
3347
  e += g;
3343
3348
  }
3344
3349
  Z.shaderSource(zd[a], e);
@@ -3356,15 +3361,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3356
3361
  Z.texParameteri(a, b, c);
3357
3362
  }, glTexStorage2D:function(a, b, c, d, e) {
3358
3363
  Z.texStorage2D(a, b, c, d, e);
3359
- }, glTexSubImage2D:function(a, b, c, d, e, f, g, n, p) {
3364
+ }, glTexSubImage2D:function(a, b, c, d, e, f, g, m, p) {
3360
3365
  if (Z.Ka) {
3361
- Z.texSubImage2D(a, b, c, d, e, f, g, n, p);
3366
+ Z.texSubImage2D(a, b, c, d, e, f, g, m, p);
3362
3367
  } else if (p) {
3363
- var l = n - 5120;
3368
+ var l = m - 5120;
3364
3369
  l = 0 == l ? C : 1 == l ? G : 2 == l ? I : 4 == l ? J : 6 == l ? wa : 5 == l || 28922 == l || 28520 == l || 30779 == l || 30782 == l ? K : va;
3365
- Z.texSubImage2D(a, b, c, d, e, f, g, n, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
3370
+ Z.texSubImage2D(a, b, c, d, e, f, g, m, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
3366
3371
  } else {
3367
- Z.texSubImage2D(a, b, c, d, e, f, g, n, null);
3372
+ Z.texSubImage2D(a, b, c, d, e, f, g, m, null);
3368
3373
  }
3369
3374
  }, glUniform1i:function(a, b) {
3370
3375
  var c = Z, d = c.uniform1i;
@@ -3395,7 +3400,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3395
3400
  }, provokingVertexWEBGL:function(a, b) {
3396
3401
  (a = r[a].J.mb) && a.provokingVertexWEBGL(b);
3397
3402
  }, strftime_l:(a, b, c, d) => Rd(a, b, c, d), upload_image:function(a, b) {
3398
- var c = m.images;
3403
+ var c = n.images;
3399
3404
  c && (b = c.get(b)) && (a = r[a].J, a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b));
3400
3405
  }};
3401
3406
  (function() {
@@ -3406,7 +3411,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3406
3411
  za = A.__indirect_function_table;
3407
3412
  Ba.unshift(A.__wasm_call_ctors);
3408
3413
  Ea--;
3409
- m.monitorRunDependencies && m.monitorRunDependencies(Ea);
3414
+ n.monitorRunDependencies && n.monitorRunDependencies(Ea);
3410
3415
  if (0 == Ea && (null !== Fa && (clearInterval(Fa), Fa = null), Ga)) {
3411
3416
  var d = Ga;
3412
3417
  Ga = null;
@@ -3416,10 +3421,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3416
3421
  }
3417
3422
  var b = {env:Wd, wasi_snapshot_preview1:Wd,};
3418
3423
  Ea++;
3419
- m.monitorRunDependencies && m.monitorRunDependencies(Ea);
3420
- if (m.instantiateWasm) {
3424
+ n.monitorRunDependencies && n.monitorRunDependencies(Ea);
3425
+ if (n.instantiateWasm) {
3421
3426
  try {
3422
- return m.instantiateWasm(b, a);
3427
+ return n.instantiateWasm(b, a);
3423
3428
  } catch (c) {
3424
3429
  z("Module.instantiateWasm callback failed with error: " + c), ba(c);
3425
3430
  }
@@ -3430,23 +3435,23 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3430
3435
  return {};
3431
3436
  })();
3432
3437
  var nc = a => (nc = A.free)(a), Ld = a => (Ld = A.malloc)(a);
3433
- m._setWebImage = (a, b, c) => (m._setWebImage = A.setWebImage)(a, b, c);
3434
- var Qa = m._ma_device__on_notification_unlocked = a => (Qa = m._ma_device__on_notification_unlocked = A.ma_device__on_notification_unlocked)(a);
3435
- m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = A.ma_malloc_emscripten)(a, b);
3436
- m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = A.ma_free_emscripten)(a, b);
3437
- var Ra = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ra = m._ma_device_process_pcm_frames_capture__webaudio = A.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Sa = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Sa = m._ma_device_process_pcm_frames_playback__webaudio = A.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Vd = () => (Vd = A.__errno_location)(), mc = a => (mc = A.__getTypeName)(a);
3438
- m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = A._embind_initialize_bindings)();
3439
- m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = A.dynCall_iiji)(a, b, c, d, e);
3440
- m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = A.dynCall_iiiji)(a, b, c, d, e, f);
3441
- m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = A.dynCall_iij)(a, b, c, d);
3442
- m.dynCall_jii = (a, b, c) => (m.dynCall_jii = A.dynCall_jii)(a, b, c);
3443
- m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = A.dynCall_jiji)(a, b, c, d, e);
3444
- m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = A.dynCall_viijii)(a, b, c, d, e, f, g);
3445
- m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = A.dynCall_iiiiij)(a, b, c, d, e, f, g);
3446
- m.dynCall_iiiiijj = (a, b, c, d, e, f, g, n, p) => (m.dynCall_iiiiijj = A.dynCall_iiiiijj)(a, b, c, d, e, f, g, n, p);
3447
- m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, n, p, l) => (m.dynCall_iiiiiijj = A.dynCall_iiiiiijj)(a, b, c, d, e, f, g, n, p, l);
3448
- m.___start_em_js = 491756;
3449
- m.___stop_em_js = 494190;
3438
+ n._setWebImage = (a, b, c) => (n._setWebImage = A.setWebImage)(a, b, c);
3439
+ var Qa = n._ma_device__on_notification_unlocked = a => (Qa = n._ma_device__on_notification_unlocked = A.ma_device__on_notification_unlocked)(a);
3440
+ n._ma_malloc_emscripten = (a, b) => (n._ma_malloc_emscripten = A.ma_malloc_emscripten)(a, b);
3441
+ n._ma_free_emscripten = (a, b) => (n._ma_free_emscripten = A.ma_free_emscripten)(a, b);
3442
+ var Ra = n._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ra = n._ma_device_process_pcm_frames_capture__webaudio = A.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Sa = n._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Sa = n._ma_device_process_pcm_frames_playback__webaudio = A.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Vd = () => (Vd = A.__errno_location)(), mc = a => (mc = A.__getTypeName)(a);
3443
+ n.__embind_initialize_bindings = () => (n.__embind_initialize_bindings = A._embind_initialize_bindings)();
3444
+ n.dynCall_iiji = (a, b, c, d, e) => (n.dynCall_iiji = A.dynCall_iiji)(a, b, c, d, e);
3445
+ n.dynCall_iiiji = (a, b, c, d, e, f) => (n.dynCall_iiiji = A.dynCall_iiiji)(a, b, c, d, e, f);
3446
+ n.dynCall_iij = (a, b, c, d) => (n.dynCall_iij = A.dynCall_iij)(a, b, c, d);
3447
+ n.dynCall_jii = (a, b, c) => (n.dynCall_jii = A.dynCall_jii)(a, b, c);
3448
+ n.dynCall_jiji = (a, b, c, d, e) => (n.dynCall_jiji = A.dynCall_jiji)(a, b, c, d, e);
3449
+ n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii = A.dynCall_viijii)(a, b, c, d, e, f, g);
3450
+ n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij = A.dynCall_iiiiij)(a, b, c, d, e, f, g);
3451
+ n.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, p) => (n.dynCall_iiiiijj = A.dynCall_iiiiijj)(a, b, c, d, e, f, g, m, p);
3452
+ n.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, p, l) => (n.dynCall_iiiiiijj = A.dynCall_iiiiiijj)(a, b, c, d, e, f, g, m, p, l);
3453
+ n.___start_em_js = 492108;
3454
+ n.___stop_em_js = 494542;
3450
3455
  var Xd;
3451
3456
  Ga = function Yd() {
3452
3457
  Xd || Zd();
@@ -3454,17 +3459,17 @@ Ga = function Yd() {
3454
3459
  };
3455
3460
  function Zd() {
3456
3461
  function a() {
3457
- if (!Xd && (Xd = !0, m.calledRun = !0, !ua)) {
3458
- m.noFSInit || Sb || (Sb = !0, Rb(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? Ub("stdin", m.stdin) : Nb("/dev/tty", "/dev/stdin"), m.stdout ? Ub("stdout", null, m.stdout) : Nb("/dev/tty", "/dev/stdout"), m.stderr ? Ub("stderr", null, m.stderr) : Nb("/dev/tty1", "/dev/stderr"), Pb("/dev/stdin", 0), Pb("/dev/stdout", 1), Pb("/dev/stderr", 1));
3462
+ if (!Xd && (Xd = !0, n.calledRun = !0, !ua)) {
3463
+ n.noFSInit || Sb || (Sb = !0, Rb(), n.stdin = n.stdin, n.stdout = n.stdout, n.stderr = n.stderr, n.stdin ? Ub("stdin", n.stdin) : Nb("/dev/tty", "/dev/stdin"), n.stdout ? Ub("stdout", null, n.stdout) : Nb("/dev/tty", "/dev/stdout"), n.stderr ? Ub("stderr", null, n.stderr) : Nb("/dev/tty1", "/dev/stderr"), Pb("/dev/stdin", 0), Pb("/dev/stdout", 1), Pb("/dev/stderr", 1));
3459
3464
  yb = !1;
3460
3465
  Ua(Ba);
3461
- aa(m);
3462
- if (m.onRuntimeInitialized) {
3463
- m.onRuntimeInitialized();
3466
+ aa(n);
3467
+ if (n.onRuntimeInitialized) {
3468
+ n.onRuntimeInitialized();
3464
3469
  }
3465
- if (m.postRun) {
3466
- for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
3467
- var b = m.postRun.shift();
3470
+ if (n.postRun) {
3471
+ for ("function" == typeof n.postRun && (n.postRun = [n.postRun]); n.postRun.length;) {
3472
+ var b = n.postRun.shift();
3468
3473
  Ca.unshift(b);
3469
3474
  }
3470
3475
  }
@@ -3472,23 +3477,23 @@ function Zd() {
3472
3477
  }
3473
3478
  }
3474
3479
  if (!(0 < Ea)) {
3475
- if (m.preRun) {
3476
- for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
3480
+ if (n.preRun) {
3481
+ for ("function" == typeof n.preRun && (n.preRun = [n.preRun]); n.preRun.length;) {
3477
3482
  Da();
3478
3483
  }
3479
3484
  }
3480
3485
  Ua(Aa);
3481
- 0 < Ea || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
3486
+ 0 < Ea || (n.setStatus ? (n.setStatus("Running..."), setTimeout(function() {
3482
3487
  setTimeout(function() {
3483
- m.setStatus("");
3488
+ n.setStatus("");
3484
3489
  }, 1);
3485
3490
  a();
3486
3491
  }, 1)) : a());
3487
3492
  }
3488
3493
  }
3489
- if (m.preInit) {
3490
- for ("function" == typeof m.preInit && (m.preInit = [m.preInit]); 0 < m.preInit.length;) {
3491
- m.preInit.pop()();
3494
+ if (n.preInit) {
3495
+ for ("function" == typeof n.preInit && (n.preInit = [n.preInit]); 0 < n.preInit.length;) {
3496
+ n.preInit.pop()();
3492
3497
  }
3493
3498
  }
3494
3499
  Zd();