@rive-app/webgl2 2.38.4 → 2.38.5

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/rive.js CHANGED
@@ -357,50 +357,50 @@ var Rive = (() => {
357
357
  function(moduleArg = {}) {
358
358
  var moduleRtn;
359
359
 
360
- var l = moduleArg, aa, ba, ca = new Promise((a, b) => {
360
+ var k = moduleArg, aa, ba, ca = new Promise((a, b) => {
361
361
  aa = a;
362
362
  ba = b;
363
363
  }), da = "object" == typeof window, ea = "function" == typeof importScripts;
364
364
  function fa() {
365
365
  function a(g) {
366
- const k = d;
366
+ const h = d;
367
367
  c = b = 0;
368
368
  d = new Map();
369
- k.forEach(n => {
369
+ h.forEach(m => {
370
370
  try {
371
- n(g);
372
- } catch (m) {
373
- console.error(m);
371
+ m(g);
372
+ } catch (l) {
373
+ console.error(l);
374
374
  }
375
375
  });
376
- this.nb();
377
- e && e.Ob();
376
+ this.fb();
377
+ e && e.Eb();
378
378
  }
379
379
  let b = 0, c = 0, d = new Map(), e = null, f = null;
380
380
  this.requestAnimationFrame = function(g) {
381
381
  b ||= requestAnimationFrame(a.bind(this));
382
- const k = ++c;
383
- d.set(k, g);
384
- return k;
382
+ const h = ++c;
383
+ d.set(h, g);
384
+ return h;
385
385
  };
386
386
  this.cancelAnimationFrame = function(g) {
387
387
  d.delete(g);
388
388
  b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
389
389
  };
390
- this.Mb = function(g) {
390
+ this.Cb = function(g) {
391
391
  f && (document.body.remove(f), f = null);
392
- 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(k) {
393
- f.innerHTML = "RIVE FPS " + k.toFixed(1);
392
+ 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(h) {
393
+ f.innerHTML = "RIVE FPS " + h.toFixed(1);
394
394
  }, document.body.appendChild(f));
395
395
  e = new function() {
396
- let k = 0, n = 0;
397
- this.Ob = function() {
398
- var m = performance.now();
399
- n ? (++k, m -= n, 1000 < m && (g(1000 * k / m), k = n = 0)) : (n = m, k = 0);
396
+ let h = 0, m = 0;
397
+ this.Eb = function() {
398
+ var l = performance.now();
399
+ m ? (++h, l -= m, 1000 < l && (g(1000 * h / l), h = m = 0)) : (m = l, h = 0);
400
400
  };
401
401
  }();
402
402
  };
403
- this.nb = function() {
403
+ this.fb = function() {
404
404
  };
405
405
  }
406
406
  function ha() {
@@ -418,277 +418,277 @@ function ha() {
418
418
  return b << 8;
419
419
  };
420
420
  }
421
- const ia = l.onRuntimeInitialized;
422
- l.onRuntimeInitialized = function() {
421
+ const ia = k.onRuntimeInitialized;
422
+ k.onRuntimeInitialized = function() {
423
423
  ia && ia();
424
- let a = l.decodeAudio;
425
- l.decodeAudio = function(f, g) {
424
+ let a = k.decodeAudio;
425
+ k.decodeAudio = function(f, g) {
426
426
  f = a(f);
427
427
  g(f);
428
428
  };
429
- let b = l.decodeFont;
430
- l.decodeFont = function(f, g) {
429
+ let b = k.decodeFont;
430
+ k.decodeFont = function(f, g) {
431
431
  f = b(f);
432
432
  g(f);
433
433
  };
434
- let c = l.setFallbackFontCb;
435
- l.setFallbackFontCallback = "function" === typeof c ? function(f) {
434
+ let c = k.setFallbackFontCb;
435
+ k.setFallbackFontCallback = "function" === typeof c ? function(f) {
436
436
  c(f);
437
437
  } : function() {
438
438
  console.warn("Module.setFallbackFontCallback called, but text support is not enabled in this build.");
439
439
  };
440
- const d = l.FileAssetLoader;
441
- l.ptrToAsset = f => {
442
- let g = l.ptrToFileAsset(f);
443
- return g.isImage ? l.ptrToImageAsset(f) : g.isFont ? l.ptrToFontAsset(f) : g.isAudio ? l.ptrToAudioAsset(f) : g;
440
+ const d = k.FileAssetLoader;
441
+ k.ptrToAsset = f => {
442
+ let g = k.ptrToFileAsset(f);
443
+ return g.isImage ? k.ptrToImageAsset(f) : g.isFont ? k.ptrToFontAsset(f) : g.isAudio ? k.ptrToAudioAsset(f) : g;
444
444
  };
445
- l.CustomFileAssetLoader = d.extend("CustomFileAssetLoader", {__construct:function({loadContents:f}) {
445
+ k.CustomFileAssetLoader = d.extend("CustomFileAssetLoader", {__construct:function({loadContents:f}) {
446
446
  this.__parent.__construct.call(this);
447
- this.Cb = f;
447
+ this.sb = f;
448
448
  }, loadContents:function(f, g) {
449
- f = l.ptrToAsset(f);
450
- return this.Cb(f, g);
449
+ f = k.ptrToAsset(f);
450
+ return this.sb(f, g);
451
451
  },});
452
- l.CDNFileAssetLoader = d.extend("CDNFileAssetLoader", {__construct:function() {
452
+ k.CDNFileAssetLoader = d.extend("CDNFileAssetLoader", {__construct:function() {
453
453
  this.__parent.__construct.call(this);
454
454
  }, loadContents:function(f) {
455
- let g = l.ptrToAsset(f);
455
+ let g = k.ptrToAsset(f);
456
456
  f = g.cdnUuid;
457
457
  if ("" === f) {
458
458
  return !1;
459
459
  }
460
- (function(k, n) {
461
- var m = new XMLHttpRequest();
462
- m.responseType = "arraybuffer";
463
- m.onreadystatechange = function() {
464
- 4 == m.readyState && 200 == m.status && n(m);
460
+ (function(h, m) {
461
+ var l = new XMLHttpRequest();
462
+ l.responseType = "arraybuffer";
463
+ l.onreadystatechange = function() {
464
+ 4 == l.readyState && 200 == l.status && m(l);
465
465
  };
466
- m.open("GET", k, !0);
467
- m.send(null);
468
- })(g.cdnBaseUrl + "/" + f, k => {
469
- g.decode(new Uint8Array(k.response));
466
+ l.open("GET", h, !0);
467
+ l.send(null);
468
+ })(g.cdnBaseUrl + "/" + f, h => {
469
+ g.decode(new Uint8Array(h.response));
470
470
  });
471
471
  return !0;
472
472
  },});
473
- l.FallbackFileAssetLoader = d.extend("FallbackFileAssetLoader", {__construct:function() {
473
+ k.FallbackFileAssetLoader = d.extend("FallbackFileAssetLoader", {__construct:function() {
474
474
  this.__parent.__construct.call(this);
475
- this.jb = [];
475
+ this.ab = [];
476
476
  }, addLoader:function(f) {
477
- this.jb.push(f);
477
+ this.ab.push(f);
478
478
  }, loadContents:function(f, g) {
479
- for (let k of this.jb) {
480
- if (k.loadContents(f, g)) {
479
+ for (let h of this.ab) {
480
+ if (h.loadContents(f, g)) {
481
481
  return !0;
482
482
  }
483
483
  }
484
484
  return !1;
485
485
  },});
486
- let e = l.computeAlignment;
487
- l.computeAlignment = function(f, g, k, n, m = 1.0) {
488
- return e.call(this, f, g, k, n, m);
486
+ let e = k.computeAlignment;
487
+ k.computeAlignment = function(f, g, h, m, l = 1.0) {
488
+ return e.call(this, f, g, h, m, l);
489
489
  };
490
490
  };
491
- const ja = l.onRuntimeInitialized;
492
- l.onRuntimeInitialized = function() {
493
- function a(r) {
494
- this.G = r;
495
- this.Bb = r.getContext("2d");
496
- this.$a = d;
497
- this.S = [];
498
- this.ka = 0;
491
+ const ja = k.onRuntimeInitialized;
492
+ k.onRuntimeInitialized = function() {
493
+ function a(q) {
494
+ this.D = q;
495
+ this.rb = q.getContext("2d");
496
+ this.Sa = d;
497
+ this.O = [];
498
+ this.ga = 0;
499
499
  this.clear = function() {
500
- console.assert(0 == this.ka);
501
- this.S = [];
500
+ console.assert(0 == this.ga);
501
+ this.O = [];
502
502
  e.delete(this);
503
503
  };
504
504
  this.save = function() {
505
- ++this.ka;
506
- this.S.push(d.save.bind(d));
505
+ ++this.ga;
506
+ this.O.push(d.save.bind(d));
507
507
  };
508
508
  this.restore = function() {
509
- 0 < this.ka && (this.S.push(d.restore.bind(d)), --this.ka);
509
+ 0 < this.ga && (this.O.push(d.restore.bind(d)), --this.ga);
510
510
  };
511
- this.transform = function(u) {
512
- this.S.push(d.transform.bind(d, u));
511
+ this.transform = function(t) {
512
+ this.O.push(d.transform.bind(d, t));
513
513
  };
514
- this.align = function(u, z, A, C, H = 1.0) {
515
- this.S.push(d.align.bind(d, u, z, A, C, H));
514
+ this.align = function(t, y, z, B, G = 1.0) {
515
+ this.O.push(d.align.bind(d, t, y, z, B, G));
516
516
  };
517
517
  this.flush = function() {
518
- console.assert(0 == this.ka);
518
+ console.assert(0 == this.ga);
519
519
  e.add(this);
520
- d.Za || c();
520
+ d.Ra || c();
521
521
  };
522
522
  this.bindContext = function() {
523
- const u = this.$a;
524
- u && u.Z && ka(u.Z);
523
+ const t = this.Sa;
524
+ t && t.W && ka(t.W);
525
525
  };
526
526
  this["delete"] = function() {
527
527
  };
528
528
  }
529
- function b(r, u = !1) {
530
- var z = {alpha:!0, depth:u, stencil:u, antialias:u, premultipliedAlpha:!0, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:!1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,};
531
- u = r.getContext("webgl2", z);
532
- if (!u) {
529
+ function b(q, t = !1) {
530
+ var y = {alpha:!0, depth:t, stencil:t, antialias:t, premultipliedAlpha:!0, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:!1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,};
531
+ t = q.getContext("webgl2", y);
532
+ if (!t) {
533
533
  return null;
534
534
  }
535
- z = la(u, z);
536
- ka(z);
537
- const A = f(r.width, r.height);
538
- A.Z = z;
539
- A.G = r;
540
- A.Oa = r.width;
541
- A.Na = r.height;
542
- A.T = u;
543
- A.Gb = function() {
544
- this.Z && ka(this.Z);
545
- };
546
- var C = A.delete;
547
- A.delete = function() {
548
- this.Gb();
549
- C.call(this);
550
- var H = this.Z;
551
- q === w[H] && (q = null);
552
- "object" == typeof JSEvents && JSEvents.Rc(w[H].F.canvas);
553
- w[H] && w[H].F.canvas && (w[H].F.canvas.Ab = void 0);
554
- this.Z = this.G = this.Oa = this.Na = this.T = w[H] = null;
555
- };
556
- return A;
535
+ y = la(t, y);
536
+ ka(y);
537
+ const z = f(q.width, q.height);
538
+ z.W = y;
539
+ z.D = q;
540
+ z.Ia = q.width;
541
+ z.Ha = q.height;
542
+ z.P = t;
543
+ z.wb = function() {
544
+ this.W && ka(this.W);
545
+ };
546
+ var B = z.delete;
547
+ z.delete = function() {
548
+ this.wb();
549
+ B.call(this);
550
+ var G = this.W;
551
+ p === v[G] && (p = null);
552
+ "object" == typeof JSEvents && JSEvents.Gc(v[G].C.canvas);
553
+ v[G] && v[G].C.canvas && (v[G].C.canvas.qb = void 0);
554
+ this.W = this.D = this.Ia = this.Ha = this.P = v[G] = null;
555
+ };
556
+ return z;
557
557
  }
558
558
  function c() {
559
559
  if (d) {
560
- var r = d.Eb, u = 0, z = 0, A = 0, C = Array(e.size), H = 0;
561
- for (var J of e) {
562
- J.fa = Math.min(J.G.width, r), J.ea = Math.min(J.G.height, r), J.La = J.ea * J.fa, u = Math.max(u, J.fa), z = Math.max(z, J.ea), A += J.La, C[H++] = J;
560
+ var q = d.ub, t = 0, y = 0, z = 0, B = Array(e.size), G = 0;
561
+ for (var I of e) {
562
+ I.ca = Math.min(I.D.width, q), I.ba = Math.min(I.D.height, q), I.Fa = I.ba * I.ca, t = Math.max(t, I.ca), y = Math.max(y, I.ba), z += I.Fa, B[G++] = I;
563
563
  }
564
564
  e.clear();
565
- if (!(0 >= A)) {
566
- u = 1 << (0 >= u ? 0 : 32 - Math.clz32(u - 1));
567
- for (z = 1 << (0 >= z ? 0 : 32 - Math.clz32(z - 1)); z * u < A;) {
568
- u <= z ? u *= 2 : z *= 2;
569
- }
570
- u = Math.min(u, r);
571
- u = Math.min(z, r);
572
- C.sort((Z, ob) => ob.La - Z.La);
573
- A = new l.DynamicRectanizer(r);
574
- for (J = 0; J < C.length;) {
575
- A.reset(u, z);
576
- for (H = J; H < C.length; ++H) {
577
- var K = C[H], I = A.addRect(K.fa, K.ea);
578
- if (0 > I) {
579
- console.assert(H > J);
565
+ if (!(0 >= z)) {
566
+ t = 1 << (0 >= t ? 0 : 32 - Math.clz32(t - 1));
567
+ for (y = 1 << (0 >= y ? 0 : 32 - Math.clz32(y - 1)); y * t < z;) {
568
+ t <= y ? t *= 2 : y *= 2;
569
+ }
570
+ t = Math.min(t, q);
571
+ t = Math.min(y, q);
572
+ B.sort((Y, nb) => nb.Fa - Y.Fa);
573
+ z = new k.DynamicRectanizer(q);
574
+ for (I = 0; I < B.length;) {
575
+ z.reset(t, y);
576
+ for (G = I; G < B.length; ++G) {
577
+ var J = B[G], H = z.addRect(J.ca, J.ba);
578
+ if (0 > H) {
579
+ console.assert(G > I);
580
580
  break;
581
581
  }
582
- K.qa = I & 65535;
583
- K.ra = I >> 16;
582
+ J.ma = H & 65535;
583
+ J.na = H >> 16;
584
584
  }
585
- K = n.push(A.drawWidth());
586
- I = m.push(A.drawHeight());
587
- console.assert(K >= A.drawWidth());
588
- console.assert(I >= A.drawHeight());
589
- console.assert(K <= r);
590
- console.assert(I <= r);
591
- d.G.width != K && (d.G.width = K);
592
- d.G.height != I && (d.G.height = I);
585
+ J = m.push(z.drawWidth());
586
+ H = l.push(z.drawHeight());
587
+ console.assert(J >= z.drawWidth());
588
+ console.assert(H >= z.drawHeight());
589
+ console.assert(J <= q);
590
+ console.assert(H <= q);
591
+ d.D.width != J && (d.D.width = J);
592
+ d.D.height != H && (d.D.height = H);
593
593
  d.clear();
594
- for (K = J; K < H; ++K) {
595
- I = C[K];
596
- d.saveClipRect(I.qa, I.ra, I.qa + I.fa, I.ra + I.ea);
597
- let Z = new l.Mat2D();
598
- Z.xx = I.fa / I.G.width;
599
- Z.yy = I.ea / I.G.height;
600
- Z.xy = Z.yx = 0;
601
- Z.tx = I.qa;
602
- Z.ty = I.ra;
603
- d.transform(Z);
604
- for (const ob of I.S) {
605
- ob();
594
+ for (J = I; J < G; ++J) {
595
+ H = B[J];
596
+ d.saveClipRect(H.ma, H.na, H.ma + H.ca, H.na + H.ba);
597
+ let Y = new k.Mat2D();
598
+ Y.xx = H.ca / H.D.width;
599
+ Y.yy = H.ba / H.D.height;
600
+ Y.xy = Y.yx = 0;
601
+ Y.tx = H.ma;
602
+ Y.ty = H.na;
603
+ d.transform(Y);
604
+ for (const nb of H.O) {
605
+ nb();
606
606
  }
607
607
  d.restoreClipRect();
608
- I.S = [];
608
+ H.O = [];
609
609
  }
610
- for (d.flush(); J < H; ++J) {
611
- K = C[J], I = K.Bb, I.globalCompositeOperation = "copy", I.drawImage(d.G, K.qa, K.ra, K.fa, K.ea, 0, 0, K.G.width, K.G.height);
610
+ for (d.flush(); I < G; ++I) {
611
+ J = B[I], H = J.rb, H.globalCompositeOperation = "copy", H.drawImage(d.D, J.ma, J.na, J.ca, J.ba, 0, 0, J.D.width, J.D.height);
612
612
  }
613
- J = H;
613
+ I = G;
614
614
  }
615
615
  }
616
616
  }
617
617
  }
618
618
  ja && ja();
619
619
  let d = null;
620
- const e = new Set(), f = l.makeRenderer;
621
- l.makeRenderer = function(r, u) {
620
+ const e = new Set(), f = k.makeRenderer;
621
+ k.makeRenderer = function(q, t) {
622
622
  if (!d) {
623
- function z(A) {
624
- var C = document.createElement("canvas");
625
- C.width = 1;
626
- C.height = 1;
627
- d = b(C, A);
623
+ function y(z) {
624
+ var B = document.createElement("canvas");
625
+ B.width = 1;
626
+ B.height = 1;
627
+ d = b(B, z);
628
628
  if (!d) {
629
629
  return null;
630
630
  }
631
- d.Za = !!d.T.getExtension("WEBGL_shader_pixel_local_storage");
632
- d.Eb = Math.min(d.T.getParameter(d.T.MAX_RENDERBUFFER_SIZE), d.T.getParameter(d.T.MAX_TEXTURE_SIZE));
633
- d.Ma = !d.Za;
634
- if (A = d.T.getExtension("WEBGL_debug_renderer_info")) {
635
- C = d.T.getParameter(A.UNMASKED_RENDERER_WEBGL), d.T.getParameter(A.UNMASKED_VENDOR_WEBGL).includes("Google") && C.includes("ANGLE Metal Renderer") && (d.Ma = !1);
631
+ d.Ra = !!d.P.getExtension("WEBGL_shader_pixel_local_storage");
632
+ d.ub = Math.min(d.P.getParameter(d.P.MAX_RENDERBUFFER_SIZE), d.P.getParameter(d.P.MAX_TEXTURE_SIZE));
633
+ d.Ga = !d.Ra;
634
+ if (z = d.P.getExtension("WEBGL_debug_renderer_info")) {
635
+ B = d.P.getParameter(z.UNMASKED_RENDERER_WEBGL), d.P.getParameter(z.UNMASKED_VENDOR_WEBGL).includes("Google") && B.includes("ANGLE Metal Renderer") && (d.Ga = !1);
636
636
  }
637
637
  return d;
638
638
  }
639
- d = z(!0);
639
+ d = y(!0);
640
640
  if (!d) {
641
641
  throw "Unable to create WebGL context, your environment may not support WebGL. Try out @rive-app/canvas as an alternative.";
642
642
  }
643
- d.Ma || (d = z(!1));
643
+ d.Ga || (d = y(!1));
644
644
  }
645
- return u ? new a(r) : b(r, d.Ma);
645
+ return t ? new a(q) : b(q, d.Ga);
646
646
  };
647
- const g = l.Artboard.prototype["delete"];
648
- l.Artboard.prototype["delete"] = function() {
649
- this.Fb = !0;
647
+ const g = k.Artboard.prototype["delete"];
648
+ k.Artboard.prototype["delete"] = function() {
649
+ this.vb = !0;
650
650
  g.call(this);
651
651
  };
652
- const k = l.Artboard.prototype.draw;
653
- l.Artboard.prototype.draw = function(r) {
654
- r.S ? r.S.push(() => {
655
- this.Fb || k.call(this, r.$a);
656
- }) : k.call(this, r);
652
+ const h = k.Artboard.prototype.draw;
653
+ k.Artboard.prototype.draw = function(q) {
654
+ q.O ? q.O.push(() => {
655
+ this.vb || h.call(this, q.Sa);
656
+ }) : h.call(this, q);
657
657
  };
658
- const n = new ha(), m = new ha(), t = new fa();
659
- l.requestAnimationFrame = t.requestAnimationFrame.bind(t);
660
- l.cancelAnimationFrame = t.cancelAnimationFrame.bind(t);
661
- l.enableFPSCounter = t.Mb.bind(t);
662
- t.nb = c;
663
- l.resolveAnimationFrame = c;
664
- let v = l.load;
665
- l.load = function(r, u, z = !0) {
666
- const A = new l.FallbackFileAssetLoader();
667
- void 0 !== u && A.addLoader(u);
668
- z && (u = new l.CDNFileAssetLoader(), A.addLoader(u));
669
- return Promise.resolve(v(r, A));
658
+ const m = new ha(), l = new ha(), r = new fa();
659
+ k.requestAnimationFrame = r.requestAnimationFrame.bind(r);
660
+ k.cancelAnimationFrame = r.cancelAnimationFrame.bind(r);
661
+ k.enableFPSCounter = r.Cb.bind(r);
662
+ r.fb = c;
663
+ k.resolveAnimationFrame = c;
664
+ let u = k.load;
665
+ k.load = function(q, t, y = !0) {
666
+ const z = new k.FallbackFileAssetLoader();
667
+ void 0 !== t && z.addLoader(t);
668
+ y && (t = new k.CDNFileAssetLoader(), z.addLoader(t));
669
+ return Promise.resolve(u(q, z));
670
670
  };
671
- const x = l.WebGL2Renderer.prototype.clear;
672
- l.WebGL2Renderer.prototype.clear = function() {
673
- ka(this.Z);
674
- const r = this.G;
675
- if (this.Oa != r.width || this.Na != r.height) {
676
- this.resize(r.width, r.height), this.Oa = r.width, this.Na = r.height;
677
- }
678
- x.call(this);
671
+ const w = k.WebGL2Renderer.prototype.clear;
672
+ k.WebGL2Renderer.prototype.clear = function() {
673
+ ka(this.W);
674
+ const q = this.D;
675
+ if (this.Ia != q.width || this.Ha != q.height) {
676
+ this.resize(q.width, q.height), this.Ia = q.width, this.Ha = q.height;
677
+ }
678
+ w.call(this);
679
679
  };
680
- l.decodeImage = function(r, u) {
681
- r = l.decodeWebGL2Image(r);
682
- u(r);
680
+ k.decodeImage = function(q, t) {
681
+ q = k.decodeWebGL2Image(q);
682
+ t(q);
683
683
  };
684
- let p = l.Renderer.prototype.align;
685
- l.Renderer.prototype.align = function(r, u, z, A, C = 1.0) {
686
- p.call(this, r, u, z, A, C);
684
+ let n = k.Renderer.prototype.align;
685
+ k.Renderer.prototype.align = function(q, t, y, z, B = 1.0) {
686
+ n.call(this, q, t, y, z, B);
687
687
  };
688
688
  };
689
- var ma = Object.assign({}, l), na = "./this.program", y = "", oa, pa;
689
+ var ma = Object.assign({}, k), na = "./this.program", x = "", oa, pa;
690
690
  if (da || ea) {
691
- ea ? y = self.location.href : "undefined" != typeof document && document.currentScript && (y = document.currentScript.src), _scriptName && (y = _scriptName), y.startsWith("blob:") ? y = "" : y = y.substr(0, y.replace(/[?#].*/, "").lastIndexOf("/") + 1), ea && (pa = a => {
691
+ ea ? x = self.location.href : "undefined" != typeof document && document.currentScript && (x = document.currentScript.src), _scriptName && (x = _scriptName), x.startsWith("blob:") ? x = "" : x = x.substr(0, x.replace(/[?#].*/, "").lastIndexOf("/") + 1), ea && (pa = a => {
692
692
  var b = new XMLHttpRequest();
693
693
  b.open("GET", a, !1);
694
694
  b.responseType = "arraybuffer";
@@ -709,142 +709,142 @@ if (da || ea) {
709
709
  }
710
710
  };
711
711
  }
712
- var ra = l.print || console.log.bind(console), sa = l.printErr || console.error.bind(console);
713
- Object.assign(l, ma);
712
+ var ra = k.print || console.log.bind(console), A = k.printErr || console.error.bind(console);
713
+ Object.assign(k, ma);
714
714
  ma = null;
715
- l.thisProgram && (na = l.thisProgram);
716
- var ta;
717
- l.wasmBinary && (ta = l.wasmBinary);
718
- var ua, va = !1, B, D, E, wa, F, G, xa, ya;
719
- function za() {
720
- var a = ua.buffer;
721
- l.HEAP8 = B = new Int8Array(a);
722
- l.HEAP16 = E = new Int16Array(a);
723
- l.HEAPU8 = D = new Uint8Array(a);
724
- l.HEAPU16 = wa = new Uint16Array(a);
725
- l.HEAP32 = F = new Int32Array(a);
726
- l.HEAPU32 = G = new Uint32Array(a);
727
- l.HEAPF32 = xa = new Float32Array(a);
728
- l.HEAPF64 = ya = new Float64Array(a);
715
+ k.thisProgram && (na = k.thisProgram);
716
+ var sa;
717
+ k.wasmBinary && (sa = k.wasmBinary);
718
+ var ta, ua = !1, C, D, E, va, F, K, wa, xa;
719
+ function ya() {
720
+ var a = ta.buffer;
721
+ k.HEAP8 = C = new Int8Array(a);
722
+ k.HEAP16 = E = new Int16Array(a);
723
+ k.HEAPU8 = D = new Uint8Array(a);
724
+ k.HEAPU16 = va = new Uint16Array(a);
725
+ k.HEAP32 = F = new Int32Array(a);
726
+ k.HEAPU32 = K = new Uint32Array(a);
727
+ k.HEAPF32 = wa = new Float32Array(a);
728
+ k.HEAPF64 = xa = new Float64Array(a);
729
729
  }
730
- var Aa = [], Ba = [], Ca = [];
731
- function Da() {
732
- var a = l.preRun.shift();
733
- Aa.unshift(a);
730
+ var za = [], Aa = [], Ba = [];
731
+ function Ca() {
732
+ var a = k.preRun.shift();
733
+ za.unshift(a);
734
734
  }
735
- var Ea = 0, Fa = null, Ga = null;
736
- function Ha(a) {
737
- l.onAbort?.(a);
735
+ var Da = 0, Ea = null, Fa = null;
736
+ function Ga(a) {
737
+ k.onAbort?.(a);
738
738
  a = "Aborted(" + a + ")";
739
- sa(a);
740
- va = !0;
739
+ A(a);
740
+ ua = !0;
741
741
  a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
742
742
  ba(a);
743
743
  throw a;
744
744
  }
745
- var Ia = a => a.startsWith("data:application/octet-stream;base64,"), qa = a => a.startsWith("file://"), Ja;
746
- function Ka(a) {
747
- if (a == Ja && ta) {
748
- return new Uint8Array(ta);
745
+ var Ha = a => a.startsWith("data:application/octet-stream;base64,"), qa = a => a.startsWith("file://"), Ia;
746
+ function Ja(a) {
747
+ if (a == Ia && sa) {
748
+ return new Uint8Array(sa);
749
749
  }
750
750
  if (pa) {
751
751
  return pa(a);
752
752
  }
753
753
  throw "both async and sync fetching of the wasm failed";
754
754
  }
755
- function La(a) {
756
- return ta ? Promise.resolve().then(() => Ka(a)) : new Promise((b, c) => {
755
+ function Ka(a) {
756
+ return sa ? Promise.resolve().then(() => Ja(a)) : new Promise((b, c) => {
757
757
  oa(a, d => b(new Uint8Array(d)), () => {
758
758
  try {
759
- b(Ka(a));
759
+ b(Ja(a));
760
760
  } catch (d) {
761
761
  c(d);
762
762
  }
763
763
  });
764
764
  });
765
765
  }
766
- function Ma(a, b, c) {
767
- return La(a).then(d => WebAssembly.instantiate(d, b)).then(c, d => {
768
- sa(`failed to asynchronously prepare wasm: ${d}`);
769
- Ha(d);
766
+ function La(a, b, c) {
767
+ return Ka(a).then(d => WebAssembly.instantiate(d, b)).then(c, d => {
768
+ A(`failed to asynchronously prepare wasm: ${d}`);
769
+ Ga(d);
770
770
  });
771
771
  }
772
- function Na(a, b) {
773
- var c = Ja;
774
- return ta || "function" != typeof WebAssembly.instantiateStreaming || Ia(c) || qa(c) || "function" != typeof fetch ? Ma(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
775
- sa(`wasm streaming compile failed: ${e}`);
776
- sa("falling back to ArrayBuffer instantiation");
777
- return Ma(c, a, b);
772
+ function Ma(a, b) {
773
+ var c = Ia;
774
+ return sa || "function" != typeof WebAssembly.instantiateStreaming || Ha(c) || qa(c) || "function" != typeof fetch ? La(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
775
+ A(`wasm streaming compile failed: ${e}`);
776
+ A("falling back to ArrayBuffer instantiation");
777
+ return La(c, a, b);
778
778
  }));
779
779
  }
780
- var Oa, Pa, Ta = {571647:(a, b, c, d, e) => {
780
+ var Na, Oa, Sa = {571903:(a, b, c, d, e) => {
781
781
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
782
782
  return 0;
783
783
  }
784
- if ("undefined" === typeof window.h) {
785
- window.h = {Ga:0};
786
- window.h.I = {};
787
- window.h.I.Da = a;
788
- window.h.I.capture = b;
789
- window.h.I.Qa = c;
790
- window.h.ia = {};
791
- window.h.ia.stopped = d;
792
- window.h.ia.vb = e;
793
- let f = window.h;
794
- f.C = [];
795
- f.nc = function(g) {
796
- for (var k = 0; k < f.C.length; ++k) {
797
- if (null == f.C[k]) {
798
- return f.C[k] = g, k;
784
+ if ("undefined" === typeof window.miniaudio) {
785
+ window.miniaudio = {referenceCount:0};
786
+ window.miniaudio.device_type = {};
787
+ window.miniaudio.device_type.playback = a;
788
+ window.miniaudio.device_type.capture = b;
789
+ window.miniaudio.device_type.duplex = c;
790
+ window.miniaudio.device_state = {};
791
+ window.miniaudio.device_state.stopped = d;
792
+ window.miniaudio.device_state.started = e;
793
+ let f = window.miniaudio;
794
+ f.devices = [];
795
+ f.track_device = function(g) {
796
+ for (var h = 0; h < f.devices.length; ++h) {
797
+ if (null == f.devices[h]) {
798
+ return f.devices[h] = g, h;
799
799
  }
800
800
  }
801
- f.C.push(g);
802
- return f.C.length - 1;
801
+ f.devices.push(g);
802
+ return f.devices.length - 1;
803
803
  };
804
- f.zb = function(g) {
805
- for (f.C[g] = null; 0 < f.C.length;) {
806
- if (null == f.C[f.C.length - 1]) {
807
- f.C.pop();
804
+ f.untrack_device_by_index = function(g) {
805
+ for (f.devices[g] = null; 0 < f.devices.length;) {
806
+ if (null == f.devices[f.devices.length - 1]) {
807
+ f.devices.pop();
808
808
  } else {
809
809
  break;
810
810
  }
811
811
  }
812
812
  };
813
- f.Uc = function(g) {
814
- for (var k = 0; k < f.C.length; ++k) {
815
- if (f.C[k] == g) {
816
- return f.zb(k);
813
+ f.untrack_device = function(g) {
814
+ for (var h = 0; h < f.devices.length; ++h) {
815
+ if (f.devices[h] == g) {
816
+ return f.untrack_device_by_index(h);
817
817
  }
818
818
  }
819
819
  };
820
- f.ua = function(g) {
821
- return f.C[g];
820
+ f.get_device_by_index = function(g) {
821
+ return f.devices[g];
822
822
  };
823
- f.Ya = ["touchend", "click"];
823
+ f.unlock_event_types = ["touchend", "click"];
824
824
  f.unlock = function() {
825
- for (var g = 0; g < f.C.length; ++g) {
826
- var k = f.C[g];
827
- null != k && null != k.K && k.state === f.ia.vb && k.K.resume().then(() => {
828
- Qa(k.ob);
829
- }, n => {
830
- console.error("Failed to resume audiocontext", n);
825
+ for (var g = 0; g < f.devices.length; ++g) {
826
+ var h = f.devices[g];
827
+ null != h && null != h.H && h.state === f.device_state.started && h.H.resume().then(() => {
828
+ Pa(h.gb);
829
+ }, m => {
830
+ console.error("Failed to resume audiocontext", m);
831
831
  });
832
832
  }
833
- f.Ya.map(function(n) {
834
- document.removeEventListener(n, f.unlock, !0);
833
+ f.unlock_event_types.map(function(m) {
834
+ document.removeEventListener(m, f.unlock, !0);
835
835
  });
836
836
  };
837
- f.Ya.map(function(g) {
837
+ f.unlock_event_types.map(function(g) {
838
838
  document.addEventListener(g, f.unlock, !0);
839
839
  });
840
840
  }
841
- window.h.Ga += 1;
841
+ window.miniaudio.referenceCount += 1;
842
842
  return 1;
843
- }, 573825:() => {
844
- "undefined" !== typeof window.h && (window.h.Ya.map(function(a) {
845
- document.removeEventListener(a, window.h.unlock, !0);
846
- }), --window.h.Ga, 0 === window.h.Ga && delete window.h);
847
- }, 574129:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 574233:() => {
843
+ }, 574081:() => {
844
+ "undefined" !== typeof window.miniaudio && (window.miniaudio.unlock_event_types.map(function(a) {
845
+ document.removeEventListener(a, window.miniaudio.unlock, !0);
846
+ }), --window.miniaudio.referenceCount, 0 === window.miniaudio.referenceCount && delete window.miniaudio);
847
+ }, 574385:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 574489:() => {
848
848
  try {
849
849
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
850
850
  a.close();
@@ -852,81 +852,81 @@ var Oa, Pa, Ta = {571647:(a, b, c, d, e) => {
852
852
  } catch (c) {
853
853
  return 0;
854
854
  }
855
- }, 574404:(a, b, c, d, e, f) => {
856
- if ("undefined" === typeof window.h) {
855
+ }, 574660:(a, b, c, d, e, f) => {
856
+ if ("undefined" === typeof window.miniaudio) {
857
857
  return -1;
858
858
  }
859
- var g = {}, k = {};
860
- a == window.h.I.Da && 0 != c && (k.sampleRate = c);
861
- g.K = new (window.AudioContext || window.webkitAudioContext)(k);
862
- g.K.suspend();
863
- g.state = window.h.ia.stopped;
859
+ var g = {}, h = {};
860
+ a == window.miniaudio.device_type.playback && 0 != c && (h.sampleRate = c);
861
+ g.H = new (window.AudioContext || window.webkitAudioContext)(h);
862
+ g.H.suspend();
863
+ g.state = window.miniaudio.device_state.stopped;
864
864
  c = 0;
865
- a != window.h.I.Da && (c = b);
866
- g.Y = g.K.createScriptProcessor(d, c, b);
867
- g.Y.onaudioprocess = function(n) {
868
- if (null == g.va || 0 == g.va.length) {
869
- g.va = new Float32Array(xa.buffer, e, d * b);
865
+ a != window.miniaudio.device_type.playback && (c = b);
866
+ g.V = g.H.createScriptProcessor(d, c, b);
867
+ g.V.onaudioprocess = function(m) {
868
+ if (null == g.ra || 0 == g.ra.length) {
869
+ g.ra = new Float32Array(wa.buffer, e, d * b);
870
870
  }
871
- if (a == window.h.I.capture || a == window.h.I.Qa) {
872
- for (var m = 0; m < b; m += 1) {
873
- for (var t = n.inputBuffer.getChannelData(m), v = g.va, x = 0; x < d; x += 1) {
874
- v[x * b + m] = t[x];
871
+ if (a == window.miniaudio.device_type.capture || a == window.miniaudio.device_type.duplex) {
872
+ for (var l = 0; l < b; l += 1) {
873
+ for (var r = m.inputBuffer.getChannelData(l), u = g.ra, w = 0; w < d; w += 1) {
874
+ u[w * b + l] = r[w];
875
875
  }
876
876
  }
877
- Ra(f, d, e);
877
+ Qa(f, d, e);
878
878
  }
879
- if (a == window.h.I.Da || a == window.h.I.Qa) {
880
- for (Sa(f, d, e), m = 0; m < n.outputBuffer.numberOfChannels; ++m) {
881
- for (t = n.outputBuffer.getChannelData(m), v = g.va, x = 0; x < d; x += 1) {
882
- t[x] = v[x * b + m];
879
+ if (a == window.miniaudio.device_type.playback || a == window.miniaudio.device_type.duplex) {
880
+ for (Ra(f, d, e), l = 0; l < m.outputBuffer.numberOfChannels; ++l) {
881
+ for (r = m.outputBuffer.getChannelData(l), u = g.ra, w = 0; w < d; w += 1) {
882
+ r[w] = u[w * b + l];
883
883
  }
884
884
  }
885
885
  } else {
886
- for (m = 0; m < n.outputBuffer.numberOfChannels; ++m) {
887
- n.outputBuffer.getChannelData(m).fill(0.0);
886
+ for (l = 0; l < m.outputBuffer.numberOfChannels; ++l) {
887
+ m.outputBuffer.getChannelData(l).fill(0.0);
888
888
  }
889
889
  }
890
890
  };
891
- a != window.h.I.capture && a != window.h.I.Qa || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(n) {
892
- g.Ha = g.K.createMediaStreamSource(n);
893
- g.Ha.connect(g.Y);
894
- g.Y.connect(g.K.destination);
895
- }).catch(function(n) {
896
- console.log("Failed to get user media: " + n);
891
+ a != window.miniaudio.device_type.capture && a != window.miniaudio.device_type.duplex || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(m) {
892
+ g.Ba = g.H.createMediaStreamSource(m);
893
+ g.Ba.connect(g.V);
894
+ g.V.connect(g.H.destination);
895
+ }).catch(function(m) {
896
+ console.log("Failed to get user media: " + m);
897
897
  });
898
- a == window.h.I.Da && g.Y.connect(g.K.destination);
899
- g.ob = f;
900
- return window.h.nc(g);
901
- }, 577281:a => window.h.ua(a).K.sampleRate, 577354:a => {
902
- a = window.h.ua(a);
903
- void 0 !== a.Y && (a.Y.onaudioprocess = function() {
904
- }, a.Y.disconnect(), a.Y = void 0);
905
- void 0 !== a.Ha && (a.Ha.disconnect(), a.Ha = void 0);
906
- a.K.close();
907
- a.K = void 0;
908
- a.ob = void 0;
909
- }, 577754:a => {
910
- window.h.zb(a);
911
- }, 577804:a => {
912
- a = window.h.ua(a);
913
- a.K.resume();
914
- a.state = window.h.ia.vb;
915
- }, 577943:a => {
916
- a = window.h.ua(a);
917
- a.K.suspend();
918
- a.state = window.h.ia.stopped;
919
- }}, Ua = a => {
898
+ a == window.miniaudio.device_type.playback && g.V.connect(g.H.destination);
899
+ g.gb = f;
900
+ return window.miniaudio.track_device(g);
901
+ }, 577537:a => window.miniaudio.get_device_by_index(a).H.sampleRate, 577610:a => {
902
+ a = window.miniaudio.get_device_by_index(a);
903
+ void 0 !== a.V && (a.V.onaudioprocess = function() {
904
+ }, a.V.disconnect(), a.V = void 0);
905
+ void 0 !== a.Ba && (a.Ba.disconnect(), a.Ba = void 0);
906
+ a.H.close();
907
+ a.H = void 0;
908
+ a.gb = void 0;
909
+ }, 578010:a => {
910
+ window.miniaudio.untrack_device_by_index(a);
911
+ }, 578060:a => {
912
+ a = window.miniaudio.get_device_by_index(a);
913
+ a.H.resume();
914
+ a.state = window.miniaudio.device_state.started;
915
+ }, 578199:a => {
916
+ a = window.miniaudio.get_device_by_index(a);
917
+ a.H.suspend();
918
+ a.state = window.miniaudio.device_state.stopped;
919
+ }}, Ta = a => {
920
920
  for (; 0 < a.length;) {
921
- a.shift()(l);
921
+ a.shift()(k);
922
922
  }
923
923
  };
924
- function Va() {
925
- var a = F[+Wa >> 2];
926
- Wa += 4;
924
+ function Ua() {
925
+ var a = F[+Va >> 2];
926
+ Va += 4;
927
927
  return a;
928
928
  }
929
- var Xa = (a, b) => {
929
+ var Wa = (a, b) => {
930
930
  for (var c = 0, d = a.length - 1; 0 <= d; d--) {
931
931
  var e = a[d];
932
932
  "." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
@@ -937,12 +937,12 @@ var Xa = (a, b) => {
937
937
  }
938
938
  }
939
939
  return a;
940
- }, Ya = a => {
940
+ }, Xa = a => {
941
941
  var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
942
- (a = Xa(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
942
+ (a = Wa(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
943
943
  a && c && (a += "/");
944
944
  return (b ? "/" : "") + a;
945
- }, Za = a => {
945
+ }, Ya = a => {
946
946
  var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
947
947
  a = b[0];
948
948
  b = b[1];
@@ -951,20 +951,20 @@ var Xa = (a, b) => {
951
951
  }
952
952
  b &&= b.substr(0, b.length - 1);
953
953
  return a + b;
954
- }, $a = a => {
954
+ }, Za = a => {
955
955
  if ("/" === a) {
956
956
  return "/";
957
957
  }
958
- a = Ya(a);
958
+ a = Xa(a);
959
959
  a = a.replace(/\/$/, "");
960
960
  var b = a.lastIndexOf("/");
961
961
  return -1 === b ? a : a.substr(b + 1);
962
- }, ab = () => {
962
+ }, $a = () => {
963
963
  if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
964
964
  return a => crypto.getRandomValues(a);
965
965
  }
966
- Ha("initRandomDevice");
967
- }, bb = a => (bb = ab())(a), cb = (...a) => {
966
+ Ga("initRandomDevice");
967
+ }, ab = a => (ab = $a())(a), bb = (...a) => {
968
968
  for (var b = "", c = !1, d = a.length - 1; -1 <= d && !c; d--) {
969
969
  c = 0 <= d ? a[d] : "/";
970
970
  if ("string" != typeof c) {
@@ -976,15 +976,15 @@ var Xa = (a, b) => {
976
976
  b = c + "/" + b;
977
977
  c = "/" === c.charAt(0);
978
978
  }
979
- b = Xa(b.split("/").filter(e => !!e), !c).join("/");
979
+ b = Wa(b.split("/").filter(e => !!e), !c).join("/");
980
980
  return (c ? "/" : "") + b || ".";
981
- }, db = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L = (a, b, c) => {
981
+ }, cb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L = (a, b, c) => {
982
982
  var d = b + c;
983
983
  for (c = b; a[c] && !(c >= d);) {
984
984
  ++c;
985
985
  }
986
- if (16 < c - b && a.buffer && db) {
987
- return db.decode(a.subarray(b, c));
986
+ if (16 < c - b && a.buffer && cb) {
987
+ return cb.decode(a.subarray(b, c));
988
988
  }
989
989
  for (d = ""; b < c;) {
990
990
  var e = a[b++];
@@ -1002,13 +1002,13 @@ var Xa = (a, b) => {
1002
1002
  }
1003
1003
  }
1004
1004
  return d;
1005
- }, eb = [], fb = a => {
1005
+ }, db = [], eb = a => {
1006
1006
  for (var b = 0, c = 0; c < a.length; ++c) {
1007
1007
  var d = a.charCodeAt(c);
1008
1008
  127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
1009
1009
  }
1010
1010
  return b;
1011
- }, gb = (a, b, c, d) => {
1011
+ }, fb = (a, b, c, d) => {
1012
1012
  if (!(0 < d)) {
1013
1013
  return 0;
1014
1014
  }
@@ -1017,8 +1017,8 @@ var Xa = (a, b) => {
1017
1017
  for (var f = 0; f < a.length; ++f) {
1018
1018
  var g = a.charCodeAt(f);
1019
1019
  if (55296 <= g && 57343 >= g) {
1020
- var k = a.charCodeAt(++f);
1021
- g = 65536 + ((g & 1023) << 10) | k & 1023;
1020
+ var h = a.charCodeAt(++f);
1021
+ g = 65536 + ((g & 1023) << 10) | h & 1023;
1022
1022
  }
1023
1023
  if (127 >= g) {
1024
1024
  if (c >= d) {
@@ -1052,36 +1052,36 @@ var Xa = (a, b) => {
1052
1052
  b[c] = 0;
1053
1053
  return c - e;
1054
1054
  };
1055
- function hb(a, b) {
1056
- var c = Array(fb(a) + 1);
1057
- a = gb(a, c, 0, c.length);
1055
+ function gb(a, b) {
1056
+ var c = Array(eb(a) + 1);
1057
+ a = fb(a, c, 0, c.length);
1058
1058
  b && (c.length = a);
1059
1059
  return c;
1060
1060
  }
1061
- var ib = [];
1062
- function jb(a, b) {
1063
- ib[a] = {input:[], H:[], V:b};
1064
- kb(a, lb);
1061
+ var hb = [];
1062
+ function ib(a, b) {
1063
+ hb[a] = {input:[], F:[], S:b};
1064
+ jb(a, kb);
1065
1065
  }
1066
- var lb = {open(a) {
1067
- var b = ib[a.node.Fa];
1066
+ var kb = {open(a) {
1067
+ var b = hb[a.node.Aa];
1068
1068
  if (!b) {
1069
1069
  throw new M(43);
1070
1070
  }
1071
- a.s = b;
1071
+ a.o = b;
1072
1072
  a.seekable = !1;
1073
1073
  }, close(a) {
1074
- a.s.V.ta(a.s);
1075
- }, ta(a) {
1076
- a.s.V.ta(a.s);
1074
+ a.o.S.pa(a.o);
1075
+ }, pa(a) {
1076
+ a.o.S.pa(a.o);
1077
1077
  }, read(a, b, c, d) {
1078
- if (!a.s || !a.s.V.ib) {
1078
+ if (!a.o || !a.o.S.$a) {
1079
1079
  throw new M(60);
1080
1080
  }
1081
1081
  for (var e = 0, f = 0; f < d; f++) {
1082
1082
  try {
1083
- var g = a.s.V.ib(a.s);
1084
- } catch (k) {
1083
+ var g = a.o.S.$a(a.o);
1084
+ } catch (h) {
1085
1085
  throw new M(29);
1086
1086
  }
1087
1087
  if (void 0 === g && 0 === e) {
@@ -1096,146 +1096,146 @@ var lb = {open(a) {
1096
1096
  e && (a.node.timestamp = Date.now());
1097
1097
  return e;
1098
1098
  }, write(a, b, c, d) {
1099
- if (!a.s || !a.s.V.Ta) {
1099
+ if (!a.o || !a.o.S.Ma) {
1100
1100
  throw new M(60);
1101
1101
  }
1102
1102
  try {
1103
1103
  for (var e = 0; e < d; e++) {
1104
- a.s.V.Ta(a.s, b[c + e]);
1104
+ a.o.S.Ma(a.o, b[c + e]);
1105
1105
  }
1106
1106
  } catch (f) {
1107
1107
  throw new M(29);
1108
1108
  }
1109
1109
  d && (a.node.timestamp = Date.now());
1110
1110
  return e;
1111
- },}, mb = {ib() {
1111
+ },}, lb = {$a() {
1112
1112
  a: {
1113
- if (!eb.length) {
1113
+ if (!db.length) {
1114
1114
  var a = null;
1115
1115
  "undefined" != typeof window && "function" == typeof window.prompt && (a = window.prompt("Input: "), null !== a && (a += "\n"));
1116
1116
  if (!a) {
1117
1117
  a = null;
1118
1118
  break a;
1119
1119
  }
1120
- eb = hb(a, !0);
1120
+ db = gb(a, !0);
1121
1121
  }
1122
- a = eb.shift();
1122
+ a = db.shift();
1123
1123
  }
1124
1124
  return a;
1125
- }, Ta(a, b) {
1126
- null === b || 10 === b ? (ra(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
1127
- }, ta(a) {
1128
- a.H && 0 < a.H.length && (ra(L(a.H, 0)), a.H = []);
1129
- }, Xb() {
1130
- return {yc:25856, Ac:5, xc:191, zc:35387, wc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
1131
- }, Yb() {
1125
+ }, Ma(a, b) {
1126
+ null === b || 10 === b ? (ra(L(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
1127
+ }, pa(a) {
1128
+ a.F && 0 < a.F.length && (ra(L(a.F, 0)), a.F = []);
1129
+ }, Nb() {
1130
+ return {nc:25856, pc:5, mc:191, oc:35387, lc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
1131
+ }, Ob() {
1132
1132
  return 0;
1133
- }, Zb() {
1133
+ }, Pb() {
1134
1134
  return [24, 80];
1135
- },}, nb = {Ta(a, b) {
1136
- null === b || 10 === b ? (sa(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
1137
- }, ta(a) {
1138
- a.H && 0 < a.H.length && (sa(L(a.H, 0)), a.H = []);
1135
+ },}, mb = {Ma(a, b) {
1136
+ null === b || 10 === b ? (A(L(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
1137
+ }, pa(a) {
1138
+ a.F && 0 < a.F.length && (A(L(a.F, 0)), a.F = []);
1139
1139
  },};
1140
- function pb(a, b) {
1141
- var c = a.l ? a.l.length : 0;
1142
- c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.l, a.l = new Uint8Array(b), 0 < a.v && a.l.set(c.subarray(0, a.v), 0));
1140
+ function ob(a, b) {
1141
+ var c = a.j ? a.j.length : 0;
1142
+ c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.j, a.j = new Uint8Array(b), 0 < a.u && a.j.set(c.subarray(0, a.u), 0));
1143
1143
  }
1144
- var N = {N:null, U() {
1144
+ var N = {K:null, R() {
1145
1145
  return N.createNode(null, "/", 16895, 0);
1146
1146
  }, createNode(a, b, c, d) {
1147
1147
  if (24576 === (c & 61440) || 4096 === (c & 61440)) {
1148
1148
  throw new M(63);
1149
1149
  }
1150
- N.N || (N.N = {dir:{node:{X:N.j.X, P:N.j.P, la:N.j.la, Ba:N.j.Ba, tb:N.j.tb, yb:N.j.yb, ub:N.j.ub, sb:N.j.sb, Ia:N.j.Ia}, stream:{ba:N.m.ba}}, file:{node:{X:N.j.X, P:N.j.P}, stream:{ba:N.m.ba, read:N.m.read, write:N.m.write, ab:N.m.ab, kb:N.m.kb, mb:N.m.mb}}, link:{node:{X:N.j.X, P:N.j.P, ma:N.j.ma}, stream:{}}, bb:{node:{X:N.j.X, P:N.j.P}, stream:qb}});
1151
- c = rb(a, b, c, d);
1152
- 16384 === (c.mode & 61440) ? (c.j = N.N.dir.node, c.m = N.N.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = N.N.file.node, c.m = N.N.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = N.N.link.node, c.m = N.N.link.stream) : 8192 === (c.mode & 61440) && (c.j = N.N.bb.node, c.m = N.N.bb.stream);
1150
+ N.K || (N.K = {dir:{node:{U:N.i.U, M:N.i.M, ha:N.i.ha, xa:N.i.xa, lb:N.i.lb, pb:N.i.pb, mb:N.i.mb, kb:N.i.kb, Ca:N.i.Ca}, stream:{Z:N.l.Z}}, file:{node:{U:N.i.U, M:N.i.M}, stream:{Z:N.l.Z, read:N.l.read, write:N.l.write, Ta:N.l.Ta, bb:N.l.bb, eb:N.l.eb}}, link:{node:{U:N.i.U, M:N.i.M, ia:N.i.ia}, stream:{}}, Ua:{node:{U:N.i.U, M:N.i.M}, stream:pb}});
1151
+ c = qb(a, b, c, d);
1152
+ 16384 === (c.mode & 61440) ? (c.i = N.K.dir.node, c.l = N.K.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.i = N.K.file.node, c.l = N.K.file.stream, c.u = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.i = N.K.link.node, c.l = N.K.link.stream) : 8192 === (c.mode & 61440) && (c.i = N.K.Ua.node, c.l = N.K.Ua.stream);
1153
1153
  c.timestamp = Date.now();
1154
- a && (a.l[b] = c, a.timestamp = c.timestamp);
1154
+ a && (a.j[b] = c, a.timestamp = c.timestamp);
1155
1155
  return c;
1156
- }, Gc(a) {
1157
- return a.l ? a.l.subarray ? a.l.subarray(0, a.v) : new Uint8Array(a.l) : new Uint8Array(0);
1158
- }, j:{X(a) {
1156
+ }, vc(a) {
1157
+ return a.j ? a.j.subarray ? a.j.subarray(0, a.u) : new Uint8Array(a.j) : new Uint8Array(0);
1158
+ }, i:{U(a) {
1159
1159
  var b = {};
1160
- b.Dc = 8192 === (a.mode & 61440) ? a.id : 1;
1161
- b.Ic = a.id;
1160
+ b.sc = 8192 === (a.mode & 61440) ? a.id : 1;
1161
+ b.xc = a.id;
1162
1162
  b.mode = a.mode;
1163
- b.Oc = 1;
1163
+ b.Dc = 1;
1164
1164
  b.uid = 0;
1165
- b.Hc = 0;
1166
- b.Fa = a.Fa;
1167
- 16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.v : 40960 === (a.mode & 61440) ? b.size = a.link.length : b.size = 0;
1168
- b.uc = new Date(a.timestamp);
1169
- b.Nc = new Date(a.timestamp);
1170
- b.Bc = new Date(a.timestamp);
1171
- b.Hb = 4096;
1172
- b.vc = Math.ceil(b.size / b.Hb);
1165
+ b.wc = 0;
1166
+ b.Aa = a.Aa;
1167
+ 16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.u : 40960 === (a.mode & 61440) ? b.size = a.link.length : b.size = 0;
1168
+ b.jc = new Date(a.timestamp);
1169
+ b.Cc = new Date(a.timestamp);
1170
+ b.qc = new Date(a.timestamp);
1171
+ b.xb = 4096;
1172
+ b.kc = Math.ceil(b.size / b.xb);
1173
1173
  return b;
1174
- }, P(a, b) {
1174
+ }, M(a, b) {
1175
1175
  void 0 !== b.mode && (a.mode = b.mode);
1176
1176
  void 0 !== b.timestamp && (a.timestamp = b.timestamp);
1177
- if (void 0 !== b.size && (b = b.size, a.v != b)) {
1177
+ if (void 0 !== b.size && (b = b.size, a.u != b)) {
1178
1178
  if (0 == b) {
1179
- a.l = null, a.v = 0;
1179
+ a.j = null, a.u = 0;
1180
1180
  } else {
1181
- var c = a.l;
1182
- a.l = new Uint8Array(b);
1183
- c && a.l.set(c.subarray(0, Math.min(b, a.v)));
1184
- a.v = b;
1181
+ var c = a.j;
1182
+ a.j = new Uint8Array(b);
1183
+ c && a.j.set(c.subarray(0, Math.min(b, a.u)));
1184
+ a.u = b;
1185
1185
  }
1186
1186
  }
1187
- }, la() {
1188
- throw sb[44];
1189
- }, Ba(a, b, c, d) {
1187
+ }, ha() {
1188
+ throw rb[44];
1189
+ }, xa(a, b, c, d) {
1190
1190
  return N.createNode(a, b, c, d);
1191
- }, tb(a, b, c) {
1191
+ }, lb(a, b, c) {
1192
1192
  if (16384 === (a.mode & 61440)) {
1193
1193
  try {
1194
- var d = tb(b, c);
1194
+ var d = sb(b, c);
1195
1195
  } catch (f) {
1196
1196
  }
1197
1197
  if (d) {
1198
- for (var e in d.l) {
1198
+ for (var e in d.j) {
1199
1199
  throw new M(55);
1200
1200
  }
1201
1201
  }
1202
1202
  }
1203
- delete a.parent.l[a.name];
1203
+ delete a.parent.j[a.name];
1204
1204
  a.parent.timestamp = Date.now();
1205
1205
  a.name = c;
1206
- b.l[c] = a;
1206
+ b.j[c] = a;
1207
1207
  b.timestamp = a.parent.timestamp;
1208
- }, yb(a, b) {
1209
- delete a.l[b];
1208
+ }, pb(a, b) {
1209
+ delete a.j[b];
1210
1210
  a.timestamp = Date.now();
1211
- }, ub(a, b) {
1212
- var c = tb(a, b), d;
1213
- for (d in c.l) {
1211
+ }, mb(a, b) {
1212
+ var c = sb(a, b), d;
1213
+ for (d in c.j) {
1214
1214
  throw new M(55);
1215
1215
  }
1216
- delete a.l[b];
1216
+ delete a.j[b];
1217
1217
  a.timestamp = Date.now();
1218
- }, sb(a) {
1218
+ }, kb(a) {
1219
1219
  var b = [".", ".."], c;
1220
- for (c of Object.keys(a.l)) {
1220
+ for (c of Object.keys(a.j)) {
1221
1221
  b.push(c);
1222
1222
  }
1223
1223
  return b;
1224
- }, Ia(a, b, c) {
1224
+ }, Ca(a, b, c) {
1225
1225
  a = N.createNode(a, b, 41471, 0);
1226
1226
  a.link = c;
1227
1227
  return a;
1228
- }, ma(a) {
1228
+ }, ia(a) {
1229
1229
  if (40960 !== (a.mode & 61440)) {
1230
1230
  throw new M(28);
1231
1231
  }
1232
1232
  return a.link;
1233
- },}, m:{read(a, b, c, d, e) {
1234
- var f = a.node.l;
1235
- if (e >= a.node.v) {
1233
+ },}, l:{read(a, b, c, d, e) {
1234
+ var f = a.node.j;
1235
+ if (e >= a.node.u) {
1236
1236
  return 0;
1237
1237
  }
1238
- a = Math.min(a.node.v - e, d);
1238
+ a = Math.min(a.node.u - e, d);
1239
1239
  if (8 < a && f.subarray) {
1240
1240
  b.set(f.subarray(e, e + a), c);
1241
1241
  } else {
@@ -1245,104 +1245,104 @@ var N = {N:null, U() {
1245
1245
  }
1246
1246
  return a;
1247
1247
  }, write(a, b, c, d, e, f) {
1248
- b.buffer === B.buffer && (f = !1);
1248
+ b.buffer === C.buffer && (f = !1);
1249
1249
  if (!d) {
1250
1250
  return 0;
1251
1251
  }
1252
1252
  a = a.node;
1253
1253
  a.timestamp = Date.now();
1254
- if (b.subarray && (!a.l || a.l.subarray)) {
1254
+ if (b.subarray && (!a.j || a.j.subarray)) {
1255
1255
  if (f) {
1256
- return a.l = b.subarray(c, c + d), a.v = d;
1256
+ return a.j = b.subarray(c, c + d), a.u = d;
1257
1257
  }
1258
- if (0 === a.v && 0 === e) {
1259
- return a.l = b.slice(c, c + d), a.v = d;
1258
+ if (0 === a.u && 0 === e) {
1259
+ return a.j = b.slice(c, c + d), a.u = d;
1260
1260
  }
1261
- if (e + d <= a.v) {
1262
- return a.l.set(b.subarray(c, c + d), e), d;
1261
+ if (e + d <= a.u) {
1262
+ return a.j.set(b.subarray(c, c + d), e), d;
1263
1263
  }
1264
1264
  }
1265
- pb(a, e + d);
1266
- if (a.l.subarray && b.subarray) {
1267
- a.l.set(b.subarray(c, c + d), e);
1265
+ ob(a, e + d);
1266
+ if (a.j.subarray && b.subarray) {
1267
+ a.j.set(b.subarray(c, c + d), e);
1268
1268
  } else {
1269
1269
  for (f = 0; f < d; f++) {
1270
- a.l[e + f] = b[c + f];
1270
+ a.j[e + f] = b[c + f];
1271
1271
  }
1272
1272
  }
1273
- a.v = Math.max(a.v, e + d);
1273
+ a.u = Math.max(a.u, e + d);
1274
1274
  return d;
1275
- }, ba(a, b, c) {
1276
- 1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
1275
+ }, Z(a, b, c) {
1276
+ 1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.u);
1277
1277
  if (0 > b) {
1278
1278
  throw new M(28);
1279
1279
  }
1280
1280
  return b;
1281
- }, ab(a, b, c) {
1282
- pb(a.node, b + c);
1283
- a.node.v = Math.max(a.node.v, b + c);
1284
- }, kb(a, b, c, d, e) {
1281
+ }, Ta(a, b, c) {
1282
+ ob(a.node, b + c);
1283
+ a.node.u = Math.max(a.node.u, b + c);
1284
+ }, bb(a, b, c, d, e) {
1285
1285
  if (32768 !== (a.node.mode & 61440)) {
1286
1286
  throw new M(43);
1287
1287
  }
1288
- a = a.node.l;
1289
- if (e & 2 || a.buffer !== B.buffer) {
1288
+ a = a.node.j;
1289
+ if (e & 2 || a.buffer !== C.buffer) {
1290
1290
  if (0 < c || c + b < a.length) {
1291
1291
  a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
1292
1292
  }
1293
1293
  c = !0;
1294
- Ha();
1294
+ Ga();
1295
1295
  b = void 0;
1296
1296
  if (!b) {
1297
1297
  throw new M(48);
1298
1298
  }
1299
- B.set(a, b);
1299
+ C.set(a, b);
1300
1300
  } else {
1301
1301
  c = !1, b = a.byteOffset;
1302
1302
  }
1303
- return {o:b, tc:c};
1304
- }, mb(a, b, c, d) {
1305
- N.m.write(a, b, 0, d, c, !1);
1303
+ return {m:b, ic:c};
1304
+ }, eb(a, b, c, d) {
1305
+ N.l.write(a, b, 0, d, c, !1);
1306
1306
  return 0;
1307
- },},}, ub = (a, b) => {
1307
+ },},}, tb = (a, b) => {
1308
1308
  var c = 0;
1309
1309
  a && (c |= 365);
1310
1310
  b && (c |= 146);
1311
1311
  return c;
1312
- }, vb = null, wb = {}, xb = [], yb = 1, zb = null, Ab = !0, M = class {
1312
+ }, ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, M = class {
1313
1313
  constructor(a) {
1314
1314
  this.name = "ErrnoError";
1315
- this.aa = a;
1315
+ this.Y = a;
1316
1316
  }
1317
- }, sb = {}, Bb = class {
1317
+ }, rb = {}, Ab = class {
1318
1318
  constructor() {
1319
- this.h = {};
1319
+ this.qa = {};
1320
1320
  this.node = null;
1321
1321
  }
1322
1322
  get flags() {
1323
- return this.h.flags;
1323
+ return this.qa.flags;
1324
1324
  }
1325
1325
  set flags(a) {
1326
- this.h.flags = a;
1326
+ this.qa.flags = a;
1327
1327
  }
1328
1328
  get position() {
1329
- return this.h.position;
1329
+ return this.qa.position;
1330
1330
  }
1331
1331
  set position(a) {
1332
- this.h.position = a;
1332
+ this.qa.position = a;
1333
1333
  }
1334
- }, Cb = class {
1334
+ }, Bb = class {
1335
1335
  constructor(a, b, c, d) {
1336
1336
  a ||= this;
1337
1337
  this.parent = a;
1338
- this.U = a.U;
1339
- this.Ca = null;
1340
- this.id = yb++;
1338
+ this.R = a.R;
1339
+ this.ya = null;
1340
+ this.id = xb++;
1341
1341
  this.name = b;
1342
1342
  this.mode = c;
1343
- this.j = {};
1344
- this.m = {};
1345
- this.Fa = d;
1343
+ this.i = {};
1344
+ this.l = {};
1345
+ this.Aa = d;
1346
1346
  }
1347
1347
  get read() {
1348
1348
  return 365 === (this.mode & 365);
@@ -1357,27 +1357,27 @@ var N = {N:null, U() {
1357
1357
  a ? this.mode |= 146 : this.mode &= -147;
1358
1358
  }
1359
1359
  };
1360
- function Db(a, b = {}) {
1361
- a = cb(a);
1360
+ function Cb(a, b = {}) {
1361
+ a = bb(a);
1362
1362
  if (!a) {
1363
1363
  return {path:"", node:null};
1364
1364
  }
1365
- b = Object.assign({hb:!0, Va:0}, b);
1366
- if (8 < b.Va) {
1365
+ b = Object.assign({Za:!0, Oa:0}, b);
1366
+ if (8 < b.Oa) {
1367
1367
  throw new M(32);
1368
1368
  }
1369
1369
  a = a.split("/").filter(g => !!g);
1370
- for (var c = vb, d = "/", e = 0; e < a.length; e++) {
1370
+ for (var c = ub, d = "/", e = 0; e < a.length; e++) {
1371
1371
  var f = e === a.length - 1;
1372
1372
  if (f && b.parent) {
1373
1373
  break;
1374
1374
  }
1375
- c = tb(c, a[e]);
1376
- d = Ya(d + "/" + a[e]);
1377
- c.Ca && (!f || f && b.hb) && (c = c.Ca.root);
1378
- if (!f || b.gb) {
1375
+ c = sb(c, a[e]);
1376
+ d = Xa(d + "/" + a[e]);
1377
+ c.ya && (!f || f && b.Za) && (c = c.ya.root);
1378
+ if (!f || b.Ya) {
1379
1379
  for (f = 0; 40960 === (c.mode & 61440);) {
1380
- if (c = Eb(d), d = cb(Za(d), c), c = Db(d, {Va:b.Va + 1}).node, 40 < f++) {
1380
+ if (c = Db(d), d = bb(Ya(d), c), c = Cb(d, {Oa:b.Oa + 1}).node, 40 < f++) {
1381
1381
  throw new M(32);
1382
1382
  }
1383
1383
  }
@@ -1385,47 +1385,47 @@ function Db(a, b = {}) {
1385
1385
  }
1386
1386
  return {path:d, node:c};
1387
1387
  }
1388
- function Fb(a) {
1388
+ function Eb(a) {
1389
1389
  for (var b;;) {
1390
1390
  if (a === a.parent) {
1391
- return a = a.U.lb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
1391
+ return a = a.R.cb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
1392
1392
  }
1393
1393
  b = b ? `${a.name}/${b}` : a.name;
1394
1394
  a = a.parent;
1395
1395
  }
1396
1396
  }
1397
- function Gb(a, b) {
1397
+ function Fb(a, b) {
1398
1398
  for (var c = 0, d = 0; d < b.length; d++) {
1399
1399
  c = (c << 5) - c + b.charCodeAt(d) | 0;
1400
1400
  }
1401
- return (a + c >>> 0) % zb.length;
1401
+ return (a + c >>> 0) % yb.length;
1402
1402
  }
1403
- function tb(a, b) {
1404
- var c = 16384 === (a.mode & 61440) ? (c = Hb(a, "x")) ? c : a.j.la ? 0 : 2 : 54;
1403
+ function sb(a, b) {
1404
+ var c = 16384 === (a.mode & 61440) ? (c = Gb(a, "x")) ? c : a.i.ha ? 0 : 2 : 54;
1405
1405
  if (c) {
1406
1406
  throw new M(c);
1407
1407
  }
1408
- for (c = zb[Gb(a.id, b)]; c; c = c.bc) {
1408
+ for (c = yb[Fb(a.id, b)]; c; c = c.Sb) {
1409
1409
  var d = c.name;
1410
1410
  if (c.parent.id === a.id && d === b) {
1411
1411
  return c;
1412
1412
  }
1413
1413
  }
1414
- return a.j.la(a, b);
1414
+ return a.i.ha(a, b);
1415
1415
  }
1416
- function rb(a, b, c, d) {
1417
- a = new Cb(a, b, c, d);
1418
- b = Gb(a.parent.id, a.name);
1419
- a.bc = zb[b];
1420
- return zb[b] = a;
1416
+ function qb(a, b, c, d) {
1417
+ a = new Bb(a, b, c, d);
1418
+ b = Fb(a.parent.id, a.name);
1419
+ a.Sb = yb[b];
1420
+ return yb[b] = a;
1421
1421
  }
1422
- function Ib(a) {
1422
+ function Hb(a) {
1423
1423
  var b = ["r", "w", "rw"][a & 3];
1424
1424
  a & 512 && (b += "w");
1425
1425
  return b;
1426
1426
  }
1427
- function Hb(a, b) {
1428
- if (Ab) {
1427
+ function Gb(a, b) {
1428
+ if (zb) {
1429
1429
  return 0;
1430
1430
  }
1431
1431
  if (!b.includes("r") || a.mode & 292) {
@@ -1437,122 +1437,122 @@ function Hb(a, b) {
1437
1437
  }
1438
1438
  return 0;
1439
1439
  }
1440
- function Jb(a, b) {
1440
+ function Ib(a, b) {
1441
1441
  try {
1442
- return tb(a, b), 20;
1442
+ return sb(a, b), 20;
1443
1443
  } catch (c) {
1444
1444
  }
1445
- return Hb(a, "wx");
1445
+ return Gb(a, "wx");
1446
1446
  }
1447
- function Kb(a) {
1448
- a = xb[a];
1447
+ function Jb(a) {
1448
+ a = wb[a];
1449
1449
  if (!a) {
1450
1450
  throw new M(8);
1451
1451
  }
1452
1452
  return a;
1453
1453
  }
1454
- function Lb(a, b = -1) {
1455
- a = Object.assign(new Bb(), a);
1454
+ function Kb(a, b = -1) {
1455
+ a = Object.assign(new Ab(), a);
1456
1456
  if (-1 == b) {
1457
1457
  a: {
1458
1458
  for (b = 0; 4096 >= b; b++) {
1459
- if (!xb[b]) {
1459
+ if (!wb[b]) {
1460
1460
  break a;
1461
1461
  }
1462
1462
  }
1463
1463
  throw new M(33);
1464
1464
  }
1465
1465
  }
1466
- a.W = b;
1467
- return xb[b] = a;
1466
+ a.T = b;
1467
+ return wb[b] = a;
1468
1468
  }
1469
- function Mb(a, b = -1) {
1470
- a = Lb(a, b);
1471
- a.m?.Fc?.(a);
1469
+ function Lb(a, b = -1) {
1470
+ a = Kb(a, b);
1471
+ a.l?.uc?.(a);
1472
1472
  return a;
1473
1473
  }
1474
- var qb = {open(a) {
1475
- a.m = wb[a.node.Fa].m;
1476
- a.m.open?.(a);
1477
- }, ba() {
1474
+ var pb = {open(a) {
1475
+ a.l = vb[a.node.Aa].l;
1476
+ a.l.open?.(a);
1477
+ }, Z() {
1478
1478
  throw new M(70);
1479
1479
  },};
1480
- function kb(a, b) {
1481
- wb[a] = {m:b};
1480
+ function jb(a, b) {
1481
+ vb[a] = {l:b};
1482
1482
  }
1483
- function Nb(a, b) {
1483
+ function Mb(a, b) {
1484
1484
  var c = "/" === b;
1485
- if (c && vb) {
1485
+ if (c && ub) {
1486
1486
  throw new M(10);
1487
1487
  }
1488
1488
  if (!c && b) {
1489
- var d = Db(b, {hb:!1});
1489
+ var d = Cb(b, {Za:!1});
1490
1490
  b = d.path;
1491
1491
  d = d.node;
1492
- if (d.Ca) {
1492
+ if (d.ya) {
1493
1493
  throw new M(10);
1494
1494
  }
1495
1495
  if (16384 !== (d.mode & 61440)) {
1496
1496
  throw new M(54);
1497
1497
  }
1498
1498
  }
1499
- b = {type:a, Qc:{}, lb:b, $b:[]};
1500
- a = a.U(b);
1501
- a.U = b;
1499
+ b = {type:a, Fc:{}, cb:b, Qb:[]};
1500
+ a = a.R(b);
1501
+ a.R = b;
1502
1502
  b.root = a;
1503
- c ? vb = a : d && (d.Ca = b, d.U && d.U.$b.push(b));
1503
+ c ? ub = a : d && (d.ya = b, d.R && d.R.Qb.push(b));
1504
1504
  }
1505
- function Ob(a, b, c) {
1506
- var d = Db(a, {parent:!0}).node;
1507
- a = $a(a);
1505
+ function Nb(a, b, c) {
1506
+ var d = Cb(a, {parent:!0}).node;
1507
+ a = Za(a);
1508
1508
  if (!a || "." === a || ".." === a) {
1509
1509
  throw new M(28);
1510
1510
  }
1511
- var e = Jb(d, a);
1511
+ var e = Ib(d, a);
1512
1512
  if (e) {
1513
1513
  throw new M(e);
1514
1514
  }
1515
- if (!d.j.Ba) {
1515
+ if (!d.i.xa) {
1516
1516
  throw new M(63);
1517
1517
  }
1518
- return d.j.Ba(d, a, b, c);
1518
+ return d.i.xa(d, a, b, c);
1519
1519
  }
1520
- function Pb(a) {
1521
- return Ob(a, 16895, 0);
1520
+ function Ob(a) {
1521
+ return Nb(a, 16895, 0);
1522
1522
  }
1523
- function Qb(a, b, c) {
1523
+ function Pb(a, b, c) {
1524
1524
  "undefined" == typeof c && (c = b, b = 438);
1525
- Ob(a, b | 8192, c);
1525
+ Nb(a, b | 8192, c);
1526
1526
  }
1527
- function Rb(a, b) {
1528
- if (!cb(a)) {
1527
+ function Qb(a, b) {
1528
+ if (!bb(a)) {
1529
1529
  throw new M(44);
1530
1530
  }
1531
- var c = Db(b, {parent:!0}).node;
1531
+ var c = Cb(b, {parent:!0}).node;
1532
1532
  if (!c) {
1533
1533
  throw new M(44);
1534
1534
  }
1535
- b = $a(b);
1536
- var d = Jb(c, b);
1535
+ b = Za(b);
1536
+ var d = Ib(c, b);
1537
1537
  if (d) {
1538
1538
  throw new M(d);
1539
1539
  }
1540
- if (!c.j.Ia) {
1540
+ if (!c.i.Ca) {
1541
1541
  throw new M(63);
1542
1542
  }
1543
- c.j.Ia(c, b, a);
1543
+ c.i.Ca(c, b, a);
1544
1544
  }
1545
- function Eb(a) {
1546
- a = Db(a).node;
1545
+ function Db(a) {
1546
+ a = Cb(a).node;
1547
1547
  if (!a) {
1548
1548
  throw new M(44);
1549
1549
  }
1550
- if (!a.j.ma) {
1550
+ if (!a.i.ia) {
1551
1551
  throw new M(28);
1552
1552
  }
1553
- return cb(Fb(a.parent), a.j.ma(a));
1553
+ return bb(Eb(a.parent), a.i.ia(a));
1554
1554
  }
1555
- function Sb(a, b, c) {
1555
+ function Rb(a, b, c) {
1556
1556
  if ("" === a) {
1557
1557
  throw new M(44);
1558
1558
  }
@@ -1567,9 +1567,9 @@ function Sb(a, b, c) {
1567
1567
  if ("object" == typeof a) {
1568
1568
  var e = a;
1569
1569
  } else {
1570
- a = Ya(a);
1570
+ a = Xa(a);
1571
1571
  try {
1572
- e = Db(a, {gb:!(b & 131072)}).node;
1572
+ e = Cb(a, {Ya:!(b & 131072)}).node;
1573
1573
  } catch (f) {
1574
1574
  }
1575
1575
  }
@@ -1580,7 +1580,7 @@ function Sb(a, b, c) {
1580
1580
  throw new M(20);
1581
1581
  }
1582
1582
  } else {
1583
- e = Ob(a, c, 0), d = !0;
1583
+ e = Nb(a, c, 0), d = !0;
1584
1584
  }
1585
1585
  }
1586
1586
  if (!e) {
@@ -1590,13 +1590,13 @@ function Sb(a, b, c) {
1590
1590
  if (b & 65536 && 16384 !== (e.mode & 61440)) {
1591
1591
  throw new M(54);
1592
1592
  }
1593
- if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Ib(b) || b & 512) ? 31 : Hb(e, Ib(b)) : 44)) {
1593
+ if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Hb(b) || b & 512) ? 31 : Gb(e, Hb(b)) : 44)) {
1594
1594
  throw new M(c);
1595
1595
  }
1596
1596
  if (b & 512 && !d) {
1597
1597
  c = e;
1598
- c = "string" == typeof c ? Db(c, {gb:!0}).node : c;
1599
- if (!c.j.P) {
1598
+ c = "string" == typeof c ? Cb(c, {Ya:!0}).node : c;
1599
+ if (!c.i.M) {
1600
1600
  throw new M(63);
1601
1601
  }
1602
1602
  if (16384 === (c.mode & 61440)) {
@@ -1605,77 +1605,77 @@ function Sb(a, b, c) {
1605
1605
  if (32768 !== (c.mode & 61440)) {
1606
1606
  throw new M(28);
1607
1607
  }
1608
- if (d = Hb(c, "w")) {
1608
+ if (d = Gb(c, "w")) {
1609
1609
  throw new M(d);
1610
1610
  }
1611
- c.j.P(c, {size:0, timestamp:Date.now()});
1611
+ c.i.M(c, {size:0, timestamp:Date.now()});
1612
1612
  }
1613
1613
  b &= -131713;
1614
- e = Lb({node:e, path:Fb(e), flags:b, seekable:!0, position:0, m:e.m, oc:[], error:!1});
1615
- e.m.open && e.m.open(e);
1616
- !l.logReadFiles || b & 1 || (Tb ||= {}, a in Tb || (Tb[a] = 1));
1614
+ e = Kb({node:e, path:Eb(e), flags:b, seekable:!0, position:0, l:e.l, cc:[], error:!1});
1615
+ e.l.open && e.l.open(e);
1616
+ !k.logReadFiles || b & 1 || (Sb ||= {}, a in Sb || (Sb[a] = 1));
1617
1617
  return e;
1618
1618
  }
1619
- function Ub(a, b, c) {
1620
- if (null === a.W) {
1619
+ function Tb(a, b, c) {
1620
+ if (null === a.T) {
1621
1621
  throw new M(8);
1622
1622
  }
1623
- if (!a.seekable || !a.m.ba) {
1623
+ if (!a.seekable || !a.l.Z) {
1624
1624
  throw new M(70);
1625
1625
  }
1626
1626
  if (0 != c && 1 != c && 2 != c) {
1627
1627
  throw new M(28);
1628
1628
  }
1629
- a.position = a.m.ba(a, b, c);
1630
- a.oc = [];
1629
+ a.position = a.l.Z(a, b, c);
1630
+ a.cc = [];
1631
1631
  }
1632
- var Vb;
1633
- function Wb(a, b, c) {
1634
- a = Ya("/dev/" + a);
1635
- var d = ub(!!b, !!c);
1636
- Xb ||= 64;
1637
- var e = Xb++ << 8 | 0;
1638
- kb(e, {open(f) {
1632
+ var Ub;
1633
+ function Vb(a, b, c) {
1634
+ a = Xa("/dev/" + a);
1635
+ var d = tb(!!b, !!c);
1636
+ Wb ||= 64;
1637
+ var e = Wb++ << 8 | 0;
1638
+ jb(e, {open(f) {
1639
1639
  f.seekable = !1;
1640
1640
  }, close() {
1641
1641
  c?.buffer?.length && c(10);
1642
- }, read(f, g, k, n) {
1643
- for (var m = 0, t = 0; t < n; t++) {
1642
+ }, read(f, g, h, m) {
1643
+ for (var l = 0, r = 0; r < m; r++) {
1644
1644
  try {
1645
- var v = b();
1646
- } catch (x) {
1645
+ var u = b();
1646
+ } catch (w) {
1647
1647
  throw new M(29);
1648
1648
  }
1649
- if (void 0 === v && 0 === m) {
1649
+ if (void 0 === u && 0 === l) {
1650
1650
  throw new M(6);
1651
1651
  }
1652
- if (null === v || void 0 === v) {
1652
+ if (null === u || void 0 === u) {
1653
1653
  break;
1654
1654
  }
1655
- m++;
1656
- g[k + t] = v;
1655
+ l++;
1656
+ g[h + r] = u;
1657
1657
  }
1658
- m && (f.node.timestamp = Date.now());
1659
- return m;
1660
- }, write(f, g, k, n) {
1661
- for (var m = 0; m < n; m++) {
1658
+ l && (f.node.timestamp = Date.now());
1659
+ return l;
1660
+ }, write(f, g, h, m) {
1661
+ for (var l = 0; l < m; l++) {
1662
1662
  try {
1663
- c(g[k + m]);
1664
- } catch (t) {
1663
+ c(g[h + l]);
1664
+ } catch (r) {
1665
1665
  throw new M(29);
1666
1666
  }
1667
1667
  }
1668
- n && (f.node.timestamp = Date.now());
1669
- return m;
1668
+ m && (f.node.timestamp = Date.now());
1669
+ return l;
1670
1670
  }});
1671
- Qb(a, d, e);
1671
+ Pb(a, d, e);
1672
1672
  }
1673
- var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name", {value:a}), $b = [], O = [], P, Q = a => {
1673
+ var Wb, Xb = {}, Sb, Va = void 0, Yb = (a, b) => Object.defineProperty(b, "name", {value:a}), Zb = [], O = [], P, Q = a => {
1674
1674
  if (!a) {
1675
1675
  throw new P("Cannot use deleted val. handle = " + a);
1676
1676
  }
1677
1677
  return O[a];
1678
- }, ac = a => {
1678
+ }, $b = a => {
1679
1679
  switch(a) {
1680
1680
  case void 0:
1681
1681
  return 2;
@@ -1686,13 +1686,13 @@ var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name"
1686
1686
  case !1:
1687
1687
  return 8;
1688
1688
  default:
1689
- const b = $b.pop() || O.length;
1689
+ const b = Zb.pop() || O.length;
1690
1690
  O[b] = a;
1691
1691
  O[b + 1] = 1;
1692
1692
  return b;
1693
1693
  }
1694
- }, bc = a => {
1695
- var b = Error, c = Zb(a, function(d) {
1694
+ }, ac = a => {
1695
+ var b = Error, c = Yb(a, function(d) {
1696
1696
  this.name = a;
1697
1697
  this.message = d;
1698
1698
  d = Error(d).stack;
@@ -1704,160 +1704,160 @@ var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name"
1704
1704
  return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;
1705
1705
  };
1706
1706
  return c;
1707
- }, cc, dc, R = a => {
1707
+ }, bc, cc, R = a => {
1708
1708
  for (var b = ""; D[a];) {
1709
- b += dc[D[a++]];
1709
+ b += cc[D[a++]];
1710
1710
  }
1711
1711
  return b;
1712
- }, ec = [], fc = () => {
1713
- for (; ec.length;) {
1714
- var a = ec.pop();
1715
- a.g.ha = !1;
1712
+ }, dc = [], ec = () => {
1713
+ for (; dc.length;) {
1714
+ var a = dc.pop();
1715
+ a.g.ea = !1;
1716
1716
  a["delete"]();
1717
1717
  }
1718
- }, gc, hc = {}, ic = (a, b) => {
1718
+ }, fc, gc = {}, hc = (a, b) => {
1719
1719
  if (void 0 === b) {
1720
1720
  throw new P("ptr should not be undefined");
1721
1721
  }
1722
- for (; a.B;) {
1723
- b = a.oa(b), a = a.B;
1722
+ for (; a.A;) {
1723
+ b = a.ka(b), a = a.A;
1724
1724
  }
1725
1725
  return b;
1726
- }, jc = {}, mc = a => {
1727
- a = kc(a);
1726
+ }, ic = {}, lc = a => {
1727
+ a = jc(a);
1728
1728
  var b = R(a);
1729
- lc(a);
1729
+ kc(a);
1730
1730
  return b;
1731
- }, nc = (a, b) => {
1732
- var c = jc[a];
1731
+ }, mc = (a, b) => {
1732
+ var c = ic[a];
1733
1733
  if (void 0 === c) {
1734
- throw a = `${b} has unknown type ${mc(a)}`, new P(a);
1734
+ throw a = `${b} has unknown type ${lc(a)}`, new P(a);
1735
1735
  }
1736
1736
  return c;
1737
- }, oc = () => {
1738
- }, pc = !1, qc = (a, b, c) => {
1737
+ }, nc = () => {
1738
+ }, oc = !1, pc = (a, b, c) => {
1739
1739
  if (b === c) {
1740
1740
  return a;
1741
1741
  }
1742
- if (void 0 === c.B) {
1742
+ if (void 0 === c.A) {
1743
1743
  return null;
1744
1744
  }
1745
- a = qc(a, b, c.B);
1746
- return null === a ? null : c.Kb(a);
1747
- }, rc = {}, sc = (a, b) => {
1748
- b = ic(a, b);
1749
- return hc[b];
1750
- }, tc, vc = (a, b) => {
1751
- if (!b.u || !b.o) {
1752
- throw new tc("makeClassHandle requires ptr and ptrType");
1745
+ a = pc(a, b, c.A);
1746
+ return null === a ? null : c.Ab(a);
1747
+ }, qc = {}, rc = (a, b) => {
1748
+ b = hc(a, b);
1749
+ return gc[b];
1750
+ }, sc, uc = (a, b) => {
1751
+ if (!b.s || !b.m) {
1752
+ throw new sc("makeClassHandle requires ptr and ptrType");
1753
1753
  }
1754
- if (!!b.J !== !!b.D) {
1755
- throw new tc("Both smartPtrType and smartPtr must be specified");
1754
+ if (!!b.G !== !!b.B) {
1755
+ throw new sc("Both smartPtrType and smartPtr must be specified");
1756
1756
  }
1757
1757
  b.count = {value:1};
1758
- return uc(Object.create(a, {g:{value:b, writable:!0,},}));
1759
- }, uc = a => {
1758
+ return tc(Object.create(a, {g:{value:b, writable:!0,},}));
1759
+ }, tc = a => {
1760
1760
  if ("undefined" === typeof FinalizationRegistry) {
1761
- return uc = b => b, a;
1761
+ return tc = b => b, a;
1762
1762
  }
1763
- pc = new FinalizationRegistry(b => {
1763
+ oc = new FinalizationRegistry(b => {
1764
1764
  b = b.g;
1765
1765
  --b.count.value;
1766
- 0 === b.count.value && (b.D ? b.J.O(b.D) : b.u.i.O(b.o));
1766
+ 0 === b.count.value && (b.B ? b.G.L(b.B) : b.s.h.L(b.m));
1767
1767
  });
1768
- uc = b => {
1768
+ tc = b => {
1769
1769
  var c = b.g;
1770
- c.D && pc.register(b, {g:c}, b);
1770
+ c.B && oc.register(b, {g:c}, b);
1771
1771
  return b;
1772
1772
  };
1773
- oc = b => {
1774
- pc.unregister(b);
1773
+ nc = b => {
1774
+ oc.unregister(b);
1775
1775
  };
1776
- return uc(a);
1777
- }, wc = {}, xc = a => {
1776
+ return tc(a);
1777
+ }, vc = {}, wc = a => {
1778
1778
  for (; a.length;) {
1779
1779
  var b = a.pop();
1780
1780
  a.pop()(b);
1781
1781
  }
1782
1782
  };
1783
- function yc(a) {
1784
- return this.fromWireType(G[a >> 2]);
1783
+ function xc(a) {
1784
+ return this.fromWireType(K[a >> 2]);
1785
1785
  }
1786
- var zc = {}, Ac = {}, T = (a, b, c) => {
1787
- function d(k) {
1788
- k = c(k);
1789
- if (k.length !== a.length) {
1790
- throw new tc("Mismatched type converter count");
1786
+ var yc = {}, zc = {}, T = (a, b, c) => {
1787
+ function d(h) {
1788
+ h = c(h);
1789
+ if (h.length !== a.length) {
1790
+ throw new sc("Mismatched type converter count");
1791
1791
  }
1792
- for (var n = 0; n < a.length; ++n) {
1793
- S(a[n], k[n]);
1792
+ for (var m = 0; m < a.length; ++m) {
1793
+ S(a[m], h[m]);
1794
1794
  }
1795
1795
  }
1796
- a.forEach(function(k) {
1797
- Ac[k] = b;
1796
+ a.forEach(function(h) {
1797
+ zc[h] = b;
1798
1798
  });
1799
1799
  var e = Array(b.length), f = [], g = 0;
1800
- b.forEach((k, n) => {
1801
- jc.hasOwnProperty(k) ? e[n] = jc[k] : (f.push(k), zc.hasOwnProperty(k) || (zc[k] = []), zc[k].push(() => {
1802
- e[n] = jc[k];
1800
+ b.forEach((h, m) => {
1801
+ ic.hasOwnProperty(h) ? e[m] = ic[h] : (f.push(h), yc.hasOwnProperty(h) || (yc[h] = []), yc[h].push(() => {
1802
+ e[m] = ic[h];
1803
1803
  ++g;
1804
1804
  g === f.length && d(e);
1805
1805
  }));
1806
1806
  });
1807
1807
  0 === f.length && d(e);
1808
1808
  };
1809
- function Bc(a, b, c = {}) {
1809
+ function Ac(a, b, c = {}) {
1810
1810
  var d = b.name;
1811
1811
  if (!a) {
1812
1812
  throw new P(`type "${d}" must have a positive integer typeid pointer`);
1813
1813
  }
1814
- if (jc.hasOwnProperty(a)) {
1815
- if (c.Ub) {
1814
+ if (ic.hasOwnProperty(a)) {
1815
+ if (c.Kb) {
1816
1816
  return;
1817
1817
  }
1818
1818
  throw new P(`Cannot register type '${d}' twice`);
1819
1819
  }
1820
- jc[a] = b;
1821
- delete Ac[a];
1822
- zc.hasOwnProperty(a) && (b = zc[a], delete zc[a], b.forEach(e => e()));
1820
+ ic[a] = b;
1821
+ delete zc[a];
1822
+ yc.hasOwnProperty(a) && (b = yc[a], delete yc[a], b.forEach(e => e()));
1823
1823
  }
1824
1824
  function S(a, b, c = {}) {
1825
1825
  if (!("argPackAdvance" in b)) {
1826
1826
  throw new TypeError("registerType registeredInstance requires argPackAdvance");
1827
1827
  }
1828
- return Bc(a, b, c);
1828
+ return Ac(a, b, c);
1829
1829
  }
1830
- var Cc = a => {
1831
- throw new P(a.g.u.i.name + " instance already deleted");
1830
+ var Bc = a => {
1831
+ throw new P(a.g.s.h.name + " instance already deleted");
1832
1832
  };
1833
- function Dc() {
1833
+ function Cc() {
1834
1834
  }
1835
- var Ec = (a, b, c) => {
1836
- if (void 0 === a[b].A) {
1835
+ var Dc = (a, b, c) => {
1836
+ if (void 0 === a[b].v) {
1837
1837
  var d = a[b];
1838
1838
  a[b] = function(...e) {
1839
- if (!a[b].A.hasOwnProperty(e.length)) {
1840
- throw new P(`Function '${c}' called with an invalid number of arguments (${e.length}) - expects one of (${a[b].A})!`);
1839
+ if (!a[b].v.hasOwnProperty(e.length)) {
1840
+ throw new P(`Function '${c}' called with an invalid number of arguments (${e.length}) - expects one of (${a[b].v})!`);
1841
1841
  }
1842
- return a[b].A[e.length].apply(this, e);
1842
+ return a[b].v[e.length].apply(this, e);
1843
1843
  };
1844
- a[b].A = [];
1845
- a[b].A[d.ga] = d;
1844
+ a[b].v = [];
1845
+ a[b].v[d.da] = d;
1846
1846
  }
1847
- }, Fc = (a, b, c) => {
1848
- if (l.hasOwnProperty(a)) {
1849
- if (void 0 === c || void 0 !== l[a].A && void 0 !== l[a].A[c]) {
1847
+ }, Ec = (a, b, c) => {
1848
+ if (k.hasOwnProperty(a)) {
1849
+ if (void 0 === c || void 0 !== k[a].v && void 0 !== k[a].v[c]) {
1850
1850
  throw new P(`Cannot register public name '${a}' twice`);
1851
1851
  }
1852
- Ec(l, a, a);
1853
- if (l.hasOwnProperty(c)) {
1852
+ Dc(k, a, a);
1853
+ if (k.hasOwnProperty(c)) {
1854
1854
  throw new P(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`);
1855
1855
  }
1856
- l[a].A[c] = b;
1856
+ k[a].v[c] = b;
1857
1857
  } else {
1858
- l[a] = b, void 0 !== c && (l[a].Pc = c);
1858
+ k[a] = b, void 0 !== c && (k[a].Ec = c);
1859
1859
  }
1860
- }, Gc = a => {
1860
+ }, Fc = a => {
1861
1861
  if (void 0 === a) {
1862
1862
  return "_unknown";
1863
1863
  }
@@ -1865,86 +1865,86 @@ var Ec = (a, b, c) => {
1865
1865
  var b = a.charCodeAt(0);
1866
1866
  return 48 <= b && 57 >= b ? `_${a}` : a;
1867
1867
  };
1868
- function Hc(a, b, c, d, e, f, g, k) {
1868
+ function Gc(a, b, c, d, e, f, g, h) {
1869
1869
  this.name = a;
1870
1870
  this.constructor = b;
1871
- this.M = c;
1872
- this.O = d;
1873
- this.B = e;
1874
- this.Pb = f;
1875
- this.oa = g;
1876
- this.Kb = k;
1877
- this.pb = [];
1871
+ this.J = c;
1872
+ this.L = d;
1873
+ this.A = e;
1874
+ this.Fb = f;
1875
+ this.ka = g;
1876
+ this.Ab = h;
1877
+ this.hb = [];
1878
1878
  }
1879
- var Ic = (a, b, c) => {
1879
+ var Hc = (a, b, c) => {
1880
1880
  for (; b !== c;) {
1881
- if (!b.oa) {
1881
+ if (!b.ka) {
1882
1882
  throw new P(`Expected null or instance of ${c.name}, got an instance of ${b.name}`);
1883
1883
  }
1884
- a = b.oa(a);
1885
- b = b.B;
1884
+ a = b.ka(a);
1885
+ b = b.A;
1886
1886
  }
1887
1887
  return a;
1888
1888
  };
1889
- function Jc(a, b) {
1889
+ function Ic(a, b) {
1890
1890
  if (null === b) {
1891
- if (this.Sa) {
1891
+ if (this.La) {
1892
1892
  throw new P(`null is not a valid ${this.name}`);
1893
1893
  }
1894
1894
  return 0;
1895
1895
  }
1896
1896
  if (!b.g) {
1897
- throw new P(`Cannot pass "${Kc(b)}" as a ${this.name}`);
1897
+ throw new P(`Cannot pass "${Jc(b)}" as a ${this.name}`);
1898
1898
  }
1899
- if (!b.g.o) {
1899
+ if (!b.g.m) {
1900
1900
  throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
1901
1901
  }
1902
- return Ic(b.g.o, b.g.u.i, this.i);
1902
+ return Hc(b.g.m, b.g.s.h, this.h);
1903
1903
  }
1904
- function Lc(a, b) {
1904
+ function Kc(a, b) {
1905
1905
  if (null === b) {
1906
- if (this.Sa) {
1906
+ if (this.La) {
1907
1907
  throw new P(`null is not a valid ${this.name}`);
1908
1908
  }
1909
- if (this.xa) {
1910
- var c = this.Ua();
1911
- null !== a && a.push(this.O, c);
1909
+ if (this.ta) {
1910
+ var c = this.Na();
1911
+ null !== a && a.push(this.L, c);
1912
1912
  return c;
1913
1913
  }
1914
1914
  return 0;
1915
1915
  }
1916
1916
  if (!b || !b.g) {
1917
- throw new P(`Cannot pass "${Kc(b)}" as a ${this.name}`);
1917
+ throw new P(`Cannot pass "${Jc(b)}" as a ${this.name}`);
1918
1918
  }
1919
- if (!b.g.o) {
1919
+ if (!b.g.m) {
1920
1920
  throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
1921
1921
  }
1922
- if (!this.wa && b.g.u.wa) {
1923
- throw new P(`Cannot convert argument of type ${b.g.J ? b.g.J.name : b.g.u.name} to parameter type ${this.name}`);
1922
+ if (!this.sa && b.g.s.sa) {
1923
+ throw new P(`Cannot convert argument of type ${b.g.G ? b.g.G.name : b.g.s.name} to parameter type ${this.name}`);
1924
1924
  }
1925
- c = Ic(b.g.o, b.g.u.i, this.i);
1926
- if (this.xa) {
1927
- if (void 0 === b.g.D) {
1925
+ c = Hc(b.g.m, b.g.s.h, this.h);
1926
+ if (this.ta) {
1927
+ if (void 0 === b.g.B) {
1928
1928
  throw new P("Passing raw pointer to smart pointer is illegal");
1929
1929
  }
1930
- switch(this.ic) {
1930
+ switch(this.Yb) {
1931
1931
  case 0:
1932
- if (b.g.J === this) {
1933
- c = b.g.D;
1932
+ if (b.g.G === this) {
1933
+ c = b.g.B;
1934
1934
  } else {
1935
- throw new P(`Cannot convert argument of type ${b.g.J ? b.g.J.name : b.g.u.name} to parameter type ${this.name}`);
1935
+ throw new P(`Cannot convert argument of type ${b.g.G ? b.g.G.name : b.g.s.name} to parameter type ${this.name}`);
1936
1936
  }
1937
1937
  break;
1938
1938
  case 1:
1939
- c = b.g.D;
1939
+ c = b.g.B;
1940
1940
  break;
1941
1941
  case 2:
1942
- if (b.g.J === this) {
1943
- c = b.g.D;
1942
+ if (b.g.G === this) {
1943
+ c = b.g.B;
1944
1944
  } else {
1945
1945
  var d = b.clone();
1946
- c = this.dc(c, ac(() => d["delete"]()));
1947
- null !== a && a.push(this.O, c);
1946
+ c = this.Ub(c, $b(() => d["delete"]()));
1947
+ null !== a && a.push(this.L, c);
1948
1948
  }
1949
1949
  break;
1950
1950
  default:
@@ -1953,137 +1953,137 @@ function Lc(a, b) {
1953
1953
  }
1954
1954
  return c;
1955
1955
  }
1956
- function Mc(a, b) {
1956
+ function Lc(a, b) {
1957
1957
  if (null === b) {
1958
- if (this.Sa) {
1958
+ if (this.La) {
1959
1959
  throw new P(`null is not a valid ${this.name}`);
1960
1960
  }
1961
1961
  return 0;
1962
1962
  }
1963
1963
  if (!b.g) {
1964
- throw new P(`Cannot pass "${Kc(b)}" as a ${this.name}`);
1964
+ throw new P(`Cannot pass "${Jc(b)}" as a ${this.name}`);
1965
1965
  }
1966
- if (!b.g.o) {
1966
+ if (!b.g.m) {
1967
1967
  throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
1968
1968
  }
1969
- if (b.g.u.wa) {
1970
- throw new P(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
1969
+ if (b.g.s.sa) {
1970
+ throw new P(`Cannot convert argument of type ${b.g.s.name} to parameter type ${this.name}`);
1971
1971
  }
1972
- return Ic(b.g.o, b.g.u.i, this.i);
1972
+ return Hc(b.g.m, b.g.s.h, this.h);
1973
1973
  }
1974
- function Nc(a, b, c, d, e, f, g, k, n, m, t) {
1974
+ function Mc(a, b, c, d, e, f, g, h, m, l, r) {
1975
1975
  this.name = a;
1976
- this.i = b;
1977
- this.Sa = c;
1978
- this.wa = d;
1979
- this.xa = e;
1980
- this.cc = f;
1981
- this.ic = g;
1982
- this.rb = k;
1983
- this.Ua = n;
1984
- this.dc = m;
1985
- this.O = t;
1986
- e || void 0 !== b.B ? this.toWireType = Lc : (this.toWireType = d ? Jc : Mc, this.L = null);
1976
+ this.h = b;
1977
+ this.La = c;
1978
+ this.sa = d;
1979
+ this.ta = e;
1980
+ this.Tb = f;
1981
+ this.Yb = g;
1982
+ this.jb = h;
1983
+ this.Na = m;
1984
+ this.Ub = l;
1985
+ this.L = r;
1986
+ e || void 0 !== b.A ? this.toWireType = Kc : (this.toWireType = d ? Ic : Lc, this.I = null);
1987
1987
  }
1988
- var Oc = (a, b, c) => {
1989
- if (!l.hasOwnProperty(a)) {
1990
- throw new tc("Replacing nonexistent public symbol");
1991
- }
1992
- void 0 !== l[a].A && void 0 !== c ? l[a].A[c] = b : (l[a] = b, l[a].ga = c);
1993
- }, Pc = [], Qc, Rc = a => {
1994
- var b = Pc[a];
1995
- b || (a >= Pc.length && (Pc.length = a + 1), Pc[a] = b = Qc.get(a));
1988
+ var Nc = (a, b, c) => {
1989
+ if (!k.hasOwnProperty(a)) {
1990
+ throw new sc("Replacing nonexistent public symbol");
1991
+ }
1992
+ void 0 !== k[a].v && void 0 !== c ? k[a].v[c] = b : (k[a] = b, k[a].da = c);
1993
+ }, Oc = [], Pc, Qc = a => {
1994
+ var b = Oc[a];
1995
+ b || (a >= Oc.length && (Oc.length = a + 1), Oc[a] = b = Pc.get(a));
1996
1996
  return b;
1997
- }, Sc = (a, b, c = []) => {
1998
- a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,l["dynCall_" + a])(b, ...c)) : b = Rc(b)(...c);
1997
+ }, Rc = (a, b, c = []) => {
1998
+ a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,k["dynCall_" + a])(b, ...c)) : b = Qc(b)(...c);
1999
1999
  return b;
2000
- }, Tc = (a, b) => (...c) => Sc(a, b, c), U = (a, b) => {
2000
+ }, Sc = (a, b) => (...c) => Rc(a, b, c), U = (a, b) => {
2001
2001
  a = R(a);
2002
- var c = a.includes("j") ? Tc(a, b) : Rc(b);
2002
+ var c = a.includes("j") ? Sc(a, b) : Qc(b);
2003
2003
  if ("function" != typeof c) {
2004
2004
  throw new P(`unknown function pointer with signature ${a}: ${b}`);
2005
2005
  }
2006
2006
  return c;
2007
- }, Uc, Vc = (a, b) => {
2007
+ }, Tc, Uc = (a, b) => {
2008
2008
  function c(f) {
2009
- e[f] || jc[f] || (Ac[f] ? Ac[f].forEach(c) : (d.push(f), e[f] = !0));
2009
+ e[f] || ic[f] || (zc[f] ? zc[f].forEach(c) : (d.push(f), e[f] = !0));
2010
2010
  }
2011
2011
  var d = [], e = {};
2012
2012
  b.forEach(c);
2013
- throw new Uc(`${a}: ` + d.map(mc).join([", "]));
2013
+ throw new Tc(`${a}: ` + d.map(lc).join([", "]));
2014
2014
  };
2015
- function Wc(a) {
2015
+ function Vc(a) {
2016
2016
  for (var b = 1; b < a.length; ++b) {
2017
- if (null !== a[b] && void 0 === a[b].L) {
2017
+ if (null !== a[b] && void 0 === a[b].I) {
2018
2018
  return !0;
2019
2019
  }
2020
2020
  }
2021
2021
  return !1;
2022
2022
  }
2023
- function Xc(a, b, c, d, e) {
2023
+ function Wc(a, b, c, d, e) {
2024
2024
  var f = b.length;
2025
2025
  if (2 > f) {
2026
2026
  throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
2027
2027
  }
2028
- var g = null !== b[1] && null !== c, k = Wc(b), n = "void" !== b[0].name, m = f - 2, t = Array(m), v = [], x = [];
2029
- return Zb(a, function(...p) {
2030
- if (p.length !== m) {
2031
- throw new P(`function ${a} called with ${p.length} arguments, expected ${m}`);
2028
+ var g = null !== b[1] && null !== c, h = Vc(b), m = "void" !== b[0].name, l = f - 2, r = Array(l), u = [], w = [];
2029
+ return Yb(a, function(...n) {
2030
+ if (n.length !== l) {
2031
+ throw new P(`function ${a} called with ${n.length} arguments, expected ${l}`);
2032
2032
  }
2033
- x.length = 0;
2034
- v.length = g ? 2 : 1;
2035
- v[0] = e;
2033
+ w.length = 0;
2034
+ u.length = g ? 2 : 1;
2035
+ u[0] = e;
2036
2036
  if (g) {
2037
- var r = b[1].toWireType(x, this);
2038
- v[1] = r;
2037
+ var q = b[1].toWireType(w, this);
2038
+ u[1] = q;
2039
2039
  }
2040
- for (var u = 0; u < m; ++u) {
2041
- t[u] = b[u + 2].toWireType(x, p[u]), v.push(t[u]);
2040
+ for (var t = 0; t < l; ++t) {
2041
+ r[t] = b[t + 2].toWireType(w, n[t]), u.push(r[t]);
2042
2042
  }
2043
- p = d(...v);
2044
- if (k) {
2045
- xc(x);
2043
+ n = d(...u);
2044
+ if (h) {
2045
+ wc(w);
2046
2046
  } else {
2047
- for (u = g ? 1 : 2; u < b.length; u++) {
2048
- var z = 1 === u ? r : t[u - 2];
2049
- null !== b[u].L && b[u].L(z);
2047
+ for (t = g ? 1 : 2; t < b.length; t++) {
2048
+ var y = 1 === t ? q : r[t - 2];
2049
+ null !== b[t].I && b[t].I(y);
2050
2050
  }
2051
2051
  }
2052
- r = n ? b[0].fromWireType(p) : void 0;
2053
- return r;
2052
+ q = m ? b[0].fromWireType(n) : void 0;
2053
+ return q;
2054
2054
  });
2055
2055
  }
2056
- var Yc = (a, b) => {
2056
+ var Xc = (a, b) => {
2057
2057
  for (var c = [], d = 0; d < a; d++) {
2058
- c.push(G[b + 4 * d >> 2]);
2058
+ c.push(K[b + 4 * d >> 2]);
2059
2059
  }
2060
2060
  return c;
2061
- }, Zc = a => {
2061
+ }, Yc = a => {
2062
2062
  a = a.trim();
2063
2063
  const b = a.indexOf("(");
2064
2064
  return -1 !== b ? a.substr(0, b) : a;
2065
- }, $c = (a, b, c) => {
2065
+ }, Zc = (a, b, c) => {
2066
2066
  if (!(a instanceof Object)) {
2067
2067
  throw new P(`${c} with invalid "this": ${a}`);
2068
2068
  }
2069
- if (!(a instanceof b.i.constructor)) {
2069
+ if (!(a instanceof b.h.constructor)) {
2070
2070
  throw new P(`${c} incompatible with "this" of type ${a.constructor.name}`);
2071
2071
  }
2072
- if (!a.g.o) {
2072
+ if (!a.g.m) {
2073
2073
  throw new P(`cannot call emscripten binding method ${c} on deleted object`);
2074
2074
  }
2075
- return Ic(a.g.o, a.g.u.i, b.i);
2076
- }, ad = a => {
2077
- 9 < a && 0 === --O[a + 1] && (O[a] = void 0, $b.push(a));
2078
- }, bd = {name:"emscripten::val", fromWireType:a => {
2075
+ return Hc(a.g.m, a.g.s.h, b.h);
2076
+ }, $c = a => {
2077
+ 9 < a && 0 === --O[a + 1] && (O[a] = void 0, Zb.push(a));
2078
+ }, ad = {name:"emscripten::val", fromWireType:a => {
2079
2079
  var b = Q(a);
2080
- ad(a);
2080
+ $c(a);
2081
2081
  return b;
2082
- }, toWireType:(a, b) => ac(b), argPackAdvance:8, readValueFromPointer:yc, L:null,}, cd = (a, b, c) => {
2082
+ }, toWireType:(a, b) => $b(b), argPackAdvance:8, readValueFromPointer:xc, I:null,}, bd = (a, b, c) => {
2083
2083
  switch(b) {
2084
2084
  case 1:
2085
2085
  return c ? function(d) {
2086
- return this.fromWireType(B[d]);
2086
+ return this.fromWireType(C[d]);
2087
2087
  } : function(d) {
2088
2088
  return this.fromWireType(D[d]);
2089
2089
  };
@@ -2091,55 +2091,55 @@ var Yc = (a, b) => {
2091
2091
  return c ? function(d) {
2092
2092
  return this.fromWireType(E[d >> 1]);
2093
2093
  } : function(d) {
2094
- return this.fromWireType(wa[d >> 1]);
2094
+ return this.fromWireType(va[d >> 1]);
2095
2095
  };
2096
2096
  case 4:
2097
2097
  return c ? function(d) {
2098
2098
  return this.fromWireType(F[d >> 2]);
2099
2099
  } : function(d) {
2100
- return this.fromWireType(G[d >> 2]);
2100
+ return this.fromWireType(K[d >> 2]);
2101
2101
  };
2102
2102
  default:
2103
2103
  throw new TypeError(`invalid integer width (${b}): ${a}`);
2104
2104
  }
2105
- }, Kc = a => {
2105
+ }, Jc = a => {
2106
2106
  if (null === a) {
2107
2107
  return "null";
2108
2108
  }
2109
2109
  var b = typeof a;
2110
2110
  return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
2111
- }, dd = (a, b) => {
2111
+ }, cd = (a, b) => {
2112
2112
  switch(b) {
2113
2113
  case 4:
2114
2114
  return function(c) {
2115
- return this.fromWireType(xa[c >> 2]);
2115
+ return this.fromWireType(wa[c >> 2]);
2116
2116
  };
2117
2117
  case 8:
2118
2118
  return function(c) {
2119
- return this.fromWireType(ya[c >> 3]);
2119
+ return this.fromWireType(xa[c >> 3]);
2120
2120
  };
2121
2121
  default:
2122
2122
  throw new TypeError(`invalid float width (${b}): ${a}`);
2123
2123
  }
2124
- }, ed = (a, b, c) => {
2124
+ }, dd = (a, b, c) => {
2125
2125
  switch(b) {
2126
2126
  case 1:
2127
- return c ? d => B[d] : d => D[d];
2127
+ return c ? d => C[d] : d => D[d];
2128
2128
  case 2:
2129
- return c ? d => E[d >> 1] : d => wa[d >> 1];
2129
+ return c ? d => E[d >> 1] : d => va[d >> 1];
2130
2130
  case 4:
2131
- return c ? d => F[d >> 2] : d => G[d >> 2];
2131
+ return c ? d => F[d >> 2] : d => K[d >> 2];
2132
2132
  default:
2133
2133
  throw new TypeError(`invalid integer width (${b}): ${a}`);
2134
2134
  }
2135
- }, fd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, gd = (a, b) => {
2135
+ }, ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, fd = (a, b) => {
2136
2136
  var c = a >> 1;
2137
- for (var d = c + b / 2; !(c >= d) && wa[c];) {
2137
+ for (var d = c + b / 2; !(c >= d) && va[c];) {
2138
2138
  ++c;
2139
2139
  }
2140
2140
  c <<= 1;
2141
- if (32 < c - a && fd) {
2142
- return fd.decode(D.subarray(a, c));
2141
+ if (32 < c - a && ed) {
2142
+ return ed.decode(D.subarray(a, c));
2143
2143
  }
2144
2144
  c = "";
2145
2145
  for (d = 0; !(d >= b / 2); ++d) {
@@ -2150,7 +2150,7 @@ var Yc = (a, b) => {
2150
2150
  c += String.fromCharCode(e);
2151
2151
  }
2152
2152
  return c;
2153
- }, hd = (a, b, c) => {
2153
+ }, gd = (a, b, c) => {
2154
2154
  c ??= 2147483647;
2155
2155
  if (2 > c) {
2156
2156
  return 0;
@@ -2163,7 +2163,7 @@ var Yc = (a, b) => {
2163
2163
  }
2164
2164
  E[b >> 1] = 0;
2165
2165
  return b - d;
2166
- }, jd = a => 2 * a.length, kd = (a, b) => {
2166
+ }, hd = a => 2 * a.length, jd = (a, b) => {
2167
2167
  for (var c = 0, d = ""; !(c >= b / 4);) {
2168
2168
  var e = F[a + 4 * c >> 2];
2169
2169
  if (0 == e) {
@@ -2173,7 +2173,7 @@ var Yc = (a, b) => {
2173
2173
  65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
2174
2174
  }
2175
2175
  return d;
2176
- }, ld = (a, b, c) => {
2176
+ }, kd = (a, b, c) => {
2177
2177
  c ??= 2147483647;
2178
2178
  if (4 > c) {
2179
2179
  return 0;
@@ -2194,93 +2194,93 @@ var Yc = (a, b) => {
2194
2194
  }
2195
2195
  F[b >> 2] = 0;
2196
2196
  return b - d;
2197
- }, md = a => {
2197
+ }, ld = a => {
2198
2198
  for (var b = 0, c = 0; c < a.length; ++c) {
2199
2199
  var d = a.charCodeAt(c);
2200
2200
  55296 <= d && 57343 >= d && ++c;
2201
2201
  b += 4;
2202
2202
  }
2203
2203
  return b;
2204
- }, nd = (a, b, c) => {
2204
+ }, md = (a, b, c) => {
2205
2205
  var d = [];
2206
2206
  a = a.toWireType(d, c);
2207
- d.length && (G[b >> 2] = ac(d));
2207
+ d.length && (K[b >> 2] = $b(d));
2208
2208
  return a;
2209
- }, od = [], pd = {}, qd = a => {
2210
- var b = pd[a];
2209
+ }, nd = [], od = {}, pd = a => {
2210
+ var b = od[a];
2211
2211
  return void 0 === b ? R(a) : b;
2212
- }, rd = a => {
2213
- var b = od.length;
2214
- od.push(a);
2212
+ }, qd = a => {
2213
+ var b = nd.length;
2214
+ nd.push(a);
2215
2215
  return b;
2216
- }, sd = (a, b) => {
2216
+ }, rd = (a, b) => {
2217
2217
  for (var c = Array(a), d = 0; d < a; ++d) {
2218
- c[d] = nc(G[b + 4 * d >> 2], "parameter " + d);
2218
+ c[d] = mc(K[b + 4 * d >> 2], "parameter " + d);
2219
2219
  }
2220
2220
  return c;
2221
- }, td = Reflect.construct, ud = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), vd = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], wd = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], xd = [], yd = a => {
2222
- a.Ec = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
2221
+ }, sd = Reflect.construct, td = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), ud = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], vd = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], wd = [], xd = a => {
2222
+ a.tc = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
2223
+ }, yd = a => {
2224
+ a.Bc = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
2223
2225
  }, zd = a => {
2224
- a.Mc = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
2225
- }, Ad = a => {
2226
2226
  var b = "EXT_color_buffer_float EXT_conservative_depth EXT_disjoint_timer_query_webgl2 EXT_texture_norm16 NV_shader_noperspective_interpolation WEBGL_clip_cull_distance EXT_color_buffer_half_float EXT_depth_clamp EXT_float_blend EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic KHR_parallel_shader_compile OES_texture_float_linear WEBGL_blend_func_extended WEBGL_compressed_texture_astc WEBGL_compressed_texture_etc WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw".split(" ");
2227
2227
  return (a.getSupportedExtensions() || []).filter(c => b.includes(c));
2228
- }, Bd = 1, Cd = [], V = [], Dd = [], Ed = [], Fd = [], Gd = [], Hd = [], w = [], Id = {}, Jd = 4, Kd = 0, Ld = a => {
2229
- for (var b = Bd++, c = a.length; c < b; c++) {
2228
+ }, Ad = 1, Bd = [], V = [], Cd = [], Dd = [], Ed = [], Fd = [], Gd = [], v = [], Hd = {}, Id = 4, Jd = 0, Kd = a => {
2229
+ for (var b = Ad++, c = a.length; c < b; c++) {
2230
2230
  a[c] = null;
2231
2231
  }
2232
2232
  return b;
2233
- }, Md = (a, b, c, d) => {
2233
+ }, Ld = (a, b, c, d) => {
2234
2234
  for (var e = 0; e < a; e++) {
2235
- var f = W[c](), g = f && Ld(d);
2235
+ var f = W[c](), g = f && Kd(d);
2236
2236
  f ? (f.name = g, d[g] = f) : X ||= 1282;
2237
2237
  F[b + 4 * e >> 2] = g;
2238
2238
  }
2239
2239
  }, la = (a, b) => {
2240
- var c = Ld(w), d = {handle:c, attributes:b, version:b.Lc, F:a};
2241
- a.canvas && (a.canvas.Ab = d);
2242
- w[c] = d;
2243
- ("undefined" == typeof b.Lb || b.Lb) && Nd(d);
2240
+ var c = Kd(v), d = {handle:c, attributes:b, version:b.Ac, C:a};
2241
+ a.canvas && (a.canvas.qb = d);
2242
+ v[c] = d;
2243
+ ("undefined" == typeof b.Bb || b.Bb) && Md(d);
2244
2244
  return c;
2245
2245
  }, ka = a => {
2246
- q = w[a];
2247
- l.Cc = W = q?.F;
2246
+ p = v[a];
2247
+ k.rc = W = p?.C;
2248
2248
  return !(a && !W);
2249
- }, Nd = a => {
2250
- a ||= q;
2251
- if (!a.Vb) {
2252
- a.Vb = !0;
2253
- var b = a.F;
2249
+ }, Md = a => {
2250
+ a ||= p;
2251
+ if (!a.Lb) {
2252
+ a.Lb = !0;
2253
+ var b = a.C;
2254
+ xd(b);
2254
2255
  yd(b);
2255
- zd(b);
2256
- 2 <= a.version && (b.eb = b.getExtension("EXT_disjoint_timer_query_webgl2"));
2257
- if (2 > a.version || !b.eb) {
2258
- b.eb = b.getExtension("EXT_disjoint_timer_query");
2256
+ 2 <= a.version && (b.Wa = b.getExtension("EXT_disjoint_timer_query_webgl2"));
2257
+ if (2 > a.version || !b.Wa) {
2258
+ b.Wa = b.getExtension("EXT_disjoint_timer_query");
2259
2259
  }
2260
- b.ac = b.getExtension("WEBGL_multi_draw");
2261
- Ad(b).forEach(c => {
2260
+ b.Rb = b.getExtension("WEBGL_multi_draw");
2261
+ zd(b).forEach(c => {
2262
2262
  c.includes("lose_context") || c.includes("debug") || b.getExtension(c);
2263
2263
  });
2264
2264
  }
2265
- }, X, q, Od = {}, Qd = () => {
2266
- if (!Pd) {
2265
+ }, X, p, Nd = {}, Pd = () => {
2266
+ if (!Od) {
2267
2267
  var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:na || "./this.program"}, b;
2268
- for (b in Od) {
2269
- void 0 === Od[b] ? delete a[b] : a[b] = Od[b];
2268
+ for (b in Nd) {
2269
+ void 0 === Nd[b] ? delete a[b] : a[b] = Nd[b];
2270
2270
  }
2271
2271
  var c = [];
2272
2272
  for (b in a) {
2273
2273
  c.push(`${b}=${a[b]}`);
2274
2274
  }
2275
- Pd = c;
2275
+ Od = c;
2276
2276
  }
2277
- return Pd;
2278
- }, Pd, Rd = [];
2279
- function Sd() {
2280
- var a = Ad(W);
2277
+ return Od;
2278
+ }, Od, Qd = [];
2279
+ function Rd() {
2280
+ var a = zd(W);
2281
2281
  return a = a.concat(a.map(b => "GL_" + b));
2282
2282
  }
2283
- var Td = (a, b) => {
2283
+ var Sd = (a, b) => {
2284
2284
  if (b) {
2285
2285
  var c = void 0;
2286
2286
  switch(a) {
@@ -2298,15 +2298,15 @@ var Td = (a, b) => {
2298
2298
  c = d ? d.length : 0;
2299
2299
  break;
2300
2300
  case 33309:
2301
- if (2 > q.version) {
2301
+ if (2 > p.version) {
2302
2302
  X ||= 1282;
2303
2303
  return;
2304
2304
  }
2305
- c = Sd().length;
2305
+ c = Rd().length;
2306
2306
  break;
2307
2307
  case 33307:
2308
2308
  case 33308:
2309
- if (2 > q.version) {
2309
+ if (2 > p.version) {
2310
2310
  X ||= 1280;
2311
2311
  return;
2312
2312
  }
@@ -2362,14 +2362,14 @@ var Td = (a, b) => {
2362
2362
  c = d.name | 0;
2363
2363
  } catch (e) {
2364
2364
  X ||= 1280;
2365
- sa(`GL_INVALID_ENUM in glGet${0}v: Unknown object returned from WebGL getParameter(${a})! (error: ${e})`);
2365
+ A(`GL_INVALID_ENUM in glGet${0}v: Unknown object returned from WebGL getParameter(${a})! (error: ${e})`);
2366
2366
  return;
2367
2367
  }
2368
2368
  }
2369
2369
  break;
2370
2370
  default:
2371
2371
  X ||= 1280;
2372
- sa(`GL_INVALID_ENUM in glGet${0}v: Native code calling glGet${0}v(${a}) and it returns ${d} of type ${typeof d}!`);
2372
+ A(`GL_INVALID_ENUM in glGet${0}v: Native code calling glGet${0}v(${a}) and it returns ${d} of type ${typeof d}!`);
2373
2373
  return;
2374
2374
  }
2375
2375
  }
@@ -2377,475 +2377,475 @@ var Td = (a, b) => {
2377
2377
  } else {
2378
2378
  X ||= 1281;
2379
2379
  }
2380
- }, Vd = a => {
2381
- var b = fb(a) + 1, c = Ud(b);
2382
- c && gb(a, D, c, b);
2380
+ }, Ud = a => {
2381
+ var b = eb(a) + 1, c = Td(b);
2382
+ c && fb(a, D, c, b);
2383
2383
  return c;
2384
- }, Wd = a => "]" == a.slice(-1) && a.lastIndexOf("["), Xd = a => {
2384
+ }, Vd = a => "]" == a.slice(-1) && a.lastIndexOf("["), Wd = a => {
2385
2385
  a -= 5120;
2386
- return 0 == a ? B : 1 == a ? D : 2 == a ? E : 4 == a ? F : 6 == a ? xa : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? G : wa;
2387
- }, Yd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Zd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], $d = (a, b, c, d) => {
2388
- function e(p, r, u) {
2389
- for (p = "number" == typeof p ? p.toString() : p || ""; p.length < r;) {
2390
- p = u[0] + p;
2386
+ return 0 == a ? C : 1 == a ? D : 2 == a ? E : 4 == a ? F : 6 == a ? wa : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? K : va;
2387
+ }, Xd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Yd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Zd = (a, b, c, d) => {
2388
+ function e(n, q, t) {
2389
+ for (n = "number" == typeof n ? n.toString() : n || ""; n.length < q;) {
2390
+ n = t[0] + n;
2391
2391
  }
2392
- return p;
2392
+ return n;
2393
2393
  }
2394
- function f(p, r) {
2395
- return e(p, r, "0");
2394
+ function f(n, q) {
2395
+ return e(n, q, "0");
2396
2396
  }
2397
- function g(p, r) {
2398
- function u(A) {
2399
- return 0 > A ? -1 : 0 < A ? 1 : 0;
2397
+ function g(n, q) {
2398
+ function t(z) {
2399
+ return 0 > z ? -1 : 0 < z ? 1 : 0;
2400
2400
  }
2401
- var z;
2402
- 0 === (z = u(p.getFullYear() - r.getFullYear())) && 0 === (z = u(p.getMonth() - r.getMonth())) && (z = u(p.getDate() - r.getDate()));
2403
- return z;
2401
+ var y;
2402
+ 0 === (y = t(n.getFullYear() - q.getFullYear())) && 0 === (y = t(n.getMonth() - q.getMonth())) && (y = t(n.getDate() - q.getDate()));
2403
+ return y;
2404
2404
  }
2405
- function k(p) {
2406
- switch(p.getDay()) {
2405
+ function h(n) {
2406
+ switch(n.getDay()) {
2407
2407
  case 0:
2408
- return new Date(p.getFullYear() - 1, 11, 29);
2408
+ return new Date(n.getFullYear() - 1, 11, 29);
2409
2409
  case 1:
2410
- return p;
2410
+ return n;
2411
2411
  case 2:
2412
- return new Date(p.getFullYear(), 0, 3);
2412
+ return new Date(n.getFullYear(), 0, 3);
2413
2413
  case 3:
2414
- return new Date(p.getFullYear(), 0, 2);
2414
+ return new Date(n.getFullYear(), 0, 2);
2415
2415
  case 4:
2416
- return new Date(p.getFullYear(), 0, 1);
2416
+ return new Date(n.getFullYear(), 0, 1);
2417
2417
  case 5:
2418
- return new Date(p.getFullYear() - 1, 11, 31);
2418
+ return new Date(n.getFullYear() - 1, 11, 31);
2419
2419
  case 6:
2420
- return new Date(p.getFullYear() - 1, 11, 30);
2420
+ return new Date(n.getFullYear() - 1, 11, 30);
2421
2421
  }
2422
2422
  }
2423
- function n(p) {
2424
- var r = p.ca;
2425
- for (p = new Date((new Date(p.da + 1900, 0, 1)).getTime()); 0 < r;) {
2426
- var u = p.getMonth(), z = (ud(p.getFullYear()) ? Yd : Zd)[u];
2427
- if (r > z - p.getDate()) {
2428
- r -= z - p.getDate() + 1, p.setDate(1), 11 > u ? p.setMonth(u + 1) : (p.setMonth(0), p.setFullYear(p.getFullYear() + 1));
2423
+ function m(n) {
2424
+ var q = n.$;
2425
+ for (n = new Date((new Date(n.aa + 1900, 0, 1)).getTime()); 0 < q;) {
2426
+ var t = n.getMonth(), y = (td(n.getFullYear()) ? Xd : Yd)[t];
2427
+ if (q > y - n.getDate()) {
2428
+ q -= y - n.getDate() + 1, n.setDate(1), 11 > t ? n.setMonth(t + 1) : (n.setMonth(0), n.setFullYear(n.getFullYear() + 1));
2429
2429
  } else {
2430
- p.setDate(p.getDate() + r);
2430
+ n.setDate(n.getDate() + q);
2431
2431
  break;
2432
2432
  }
2433
2433
  }
2434
- u = new Date(p.getFullYear() + 1, 0, 4);
2435
- r = k(new Date(p.getFullYear(), 0, 4));
2436
- u = k(u);
2437
- return 0 >= g(r, p) ? 0 >= g(u, p) ? p.getFullYear() + 1 : p.getFullYear() : p.getFullYear() - 1;
2434
+ t = new Date(n.getFullYear() + 1, 0, 4);
2435
+ q = h(new Date(n.getFullYear(), 0, 4));
2436
+ t = h(t);
2437
+ return 0 >= g(q, n) ? 0 >= g(t, n) ? n.getFullYear() + 1 : n.getFullYear() : n.getFullYear() - 1;
2438
2438
  }
2439
- var m = G[d + 40 >> 2];
2440
- d = {lc:F[d >> 2], kc:F[d + 4 >> 2], Ja:F[d + 8 >> 2], Wa:F[d + 12 >> 2], Ka:F[d + 16 >> 2], da:F[d + 20 >> 2], R:F[d + 24 >> 2], ca:F[d + 28 >> 2], Tc:F[d + 32 >> 2], jc:F[d + 36 >> 2], mc:m ? m ? L(D, m) : "" : ""};
2439
+ var l = K[d + 40 >> 2];
2440
+ d = {ac:F[d >> 2], $b:F[d + 4 >> 2], Da:F[d + 8 >> 2], Pa:F[d + 12 >> 2], Ea:F[d + 16 >> 2], aa:F[d + 20 >> 2], N:F[d + 24 >> 2], $:F[d + 28 >> 2], Ic:F[d + 32 >> 2], Zb:F[d + 36 >> 2], bc:l ? l ? L(D, l) : "" : ""};
2441
2441
  c = c ? L(D, c) : "";
2442
- m = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
2443
- for (var t in m) {
2444
- c = c.replace(new RegExp(t, "g"), m[t]);
2445
- }
2446
- var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
2447
- m = {"%a":p => v[p.R].substring(0, 3), "%A":p => v[p.R], "%b":p => x[p.Ka].substring(0, 3), "%B":p => x[p.Ka], "%C":p => f((p.da + 1900) / 100 | 0, 2), "%d":p => f(p.Wa, 2), "%e":p => e(p.Wa, 2, " "), "%g":p => n(p).toString().substring(2), "%G":n, "%H":p => f(p.Ja, 2), "%I":p => {
2448
- p = p.Ja;
2449
- 0 == p ? p = 12 : 12 < p && (p -= 12);
2450
- return f(p, 2);
2451
- }, "%j":p => {
2452
- for (var r = 0, u = 0; u <= p.Ka - 1; r += (ud(p.da + 1900) ? Yd : Zd)[u++]) {
2453
- }
2454
- return f(p.Wa + r, 3);
2455
- }, "%m":p => f(p.Ka + 1, 2), "%M":p => f(p.kc, 2), "%n":() => "\n", "%p":p => 0 <= p.Ja && 12 > p.Ja ? "AM" : "PM", "%S":p => f(p.lc, 2), "%t":() => "\t", "%u":p => p.R || 7, "%U":p => f(Math.floor((p.ca + 7 - p.R) / 7), 2), "%V":p => {
2456
- var r = Math.floor((p.ca + 7 - (p.R + 6) % 7) / 7);
2457
- 2 >= (p.R + 371 - p.ca - 2) % 7 && r++;
2458
- if (r) {
2459
- 53 == r && (u = (p.R + 371 - p.ca) % 7, 4 == u || 3 == u && ud(p.da) || (r = 1));
2442
+ l = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
2443
+ for (var r in l) {
2444
+ c = c.replace(new RegExp(r, "g"), l[r]);
2445
+ }
2446
+ var u = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), w = "January February March April May June July August September October November December".split(" ");
2447
+ l = {"%a":n => u[n.N].substring(0, 3), "%A":n => u[n.N], "%b":n => w[n.Ea].substring(0, 3), "%B":n => w[n.Ea], "%C":n => f((n.aa + 1900) / 100 | 0, 2), "%d":n => f(n.Pa, 2), "%e":n => e(n.Pa, 2, " "), "%g":n => m(n).toString().substring(2), "%G":m, "%H":n => f(n.Da, 2), "%I":n => {
2448
+ n = n.Da;
2449
+ 0 == n ? n = 12 : 12 < n && (n -= 12);
2450
+ return f(n, 2);
2451
+ }, "%j":n => {
2452
+ for (var q = 0, t = 0; t <= n.Ea - 1; q += (td(n.aa + 1900) ? Xd : Yd)[t++]) {
2453
+ }
2454
+ return f(n.Pa + q, 3);
2455
+ }, "%m":n => f(n.Ea + 1, 2), "%M":n => f(n.$b, 2), "%n":() => "\n", "%p":n => 0 <= n.Da && 12 > n.Da ? "AM" : "PM", "%S":n => f(n.ac, 2), "%t":() => "\t", "%u":n => n.N || 7, "%U":n => f(Math.floor((n.$ + 7 - n.N) / 7), 2), "%V":n => {
2456
+ var q = Math.floor((n.$ + 7 - (n.N + 6) % 7) / 7);
2457
+ 2 >= (n.N + 371 - n.$ - 2) % 7 && q++;
2458
+ if (q) {
2459
+ 53 == q && (t = (n.N + 371 - n.$) % 7, 4 == t || 3 == t && td(n.aa) || (q = 1));
2460
2460
  } else {
2461
- r = 52;
2462
- var u = (p.R + 7 - p.ca - 1) % 7;
2463
- (4 == u || 5 == u && ud(p.da % 400 - 1)) && r++;
2464
- }
2465
- return f(r, 2);
2466
- }, "%w":p => p.R, "%W":p => f(Math.floor((p.ca + 7 - (p.R + 6) % 7) / 7), 2), "%y":p => (p.da + 1900).toString().substring(2), "%Y":p => p.da + 1900, "%z":p => {
2467
- p = p.jc;
2468
- var r = 0 <= p;
2469
- p = Math.abs(p) / 60;
2470
- return (r ? "+" : "-") + String("0000" + (p / 60 * 100 + p % 60)).slice(-4);
2471
- }, "%Z":p => p.mc, "%%":() => "%"};
2461
+ q = 52;
2462
+ var t = (n.N + 7 - n.$ - 1) % 7;
2463
+ (4 == t || 5 == t && td(n.aa % 400 - 1)) && q++;
2464
+ }
2465
+ return f(q, 2);
2466
+ }, "%w":n => n.N, "%W":n => f(Math.floor((n.$ + 7 - (n.N + 6) % 7) / 7), 2), "%y":n => (n.aa + 1900).toString().substring(2), "%Y":n => n.aa + 1900, "%z":n => {
2467
+ n = n.Zb;
2468
+ var q = 0 <= n;
2469
+ n = Math.abs(n) / 60;
2470
+ return (q ? "+" : "-") + String("0000" + (n / 60 * 100 + n % 60)).slice(-4);
2471
+ }, "%Z":n => n.bc, "%%":() => "%"};
2472
2472
  c = c.replace(/%%/g, "\x00\x00");
2473
- for (t in m) {
2474
- c.includes(t) && (c = c.replace(new RegExp(t, "g"), m[t](d)));
2473
+ for (r in l) {
2474
+ c.includes(r) && (c = c.replace(new RegExp(r, "g"), l[r](d)));
2475
2475
  }
2476
2476
  c = c.replace(/\0\0/g, "%");
2477
- t = hb(c, !1);
2478
- if (t.length > b) {
2477
+ r = gb(c, !1);
2478
+ if (r.length > b) {
2479
2479
  return 0;
2480
2480
  }
2481
- B.set(t, a);
2482
- return t.length - 1;
2481
+ C.set(r, a);
2482
+ return r.length - 1;
2483
2483
  };
2484
2484
  [44].forEach(a => {
2485
- sb[a] = new M(a);
2486
- sb[a].stack = "<generic error, no stack>";
2485
+ rb[a] = new M(a);
2486
+ rb[a].stack = "<generic error, no stack>";
2487
2487
  });
2488
- zb = Array(4096);
2489
- Nb(N, "/");
2490
- Pb("/tmp");
2491
- Pb("/home");
2492
- Pb("/home/web_user");
2488
+ yb = Array(4096);
2489
+ Mb(N, "/");
2490
+ Ob("/tmp");
2491
+ Ob("/home");
2492
+ Ob("/home/web_user");
2493
2493
  (function() {
2494
- Pb("/dev");
2495
- kb(259, {read:() => 0, write:(d, e, f, g) => g,});
2496
- Qb("/dev/null", 259);
2497
- jb(1280, mb);
2498
- jb(1536, nb);
2499
- Qb("/dev/tty", 1280);
2500
- Qb("/dev/tty1", 1536);
2494
+ Ob("/dev");
2495
+ jb(259, {read:() => 0, write:(d, e, f, g) => g,});
2496
+ Pb("/dev/null", 259);
2497
+ ib(1280, lb);
2498
+ ib(1536, mb);
2499
+ Pb("/dev/tty", 1280);
2500
+ Pb("/dev/tty1", 1536);
2501
2501
  var a = new Uint8Array(1024), b = 0, c = () => {
2502
- 0 === b && (b = bb(a).byteLength);
2502
+ 0 === b && (b = ab(a).byteLength);
2503
2503
  return a[--b];
2504
2504
  };
2505
- Wb("random", c);
2506
- Wb("urandom", c);
2507
- Pb("/dev/shm");
2508
- Pb("/dev/shm/tmp");
2505
+ Vb("random", c);
2506
+ Vb("urandom", c);
2507
+ Ob("/dev/shm");
2508
+ Ob("/dev/shm/tmp");
2509
2509
  })();
2510
2510
  (function() {
2511
- Pb("/proc");
2512
- var a = Pb("/proc/self");
2513
- Pb("/proc/self/fd");
2514
- Nb({U() {
2515
- var b = rb(a, "fd", 16895, 73);
2516
- b.j = {la(c, d) {
2517
- var e = Kb(+d);
2518
- c = {parent:null, U:{lb:"fake"}, j:{ma:() => e.path},};
2511
+ Ob("/proc");
2512
+ var a = Ob("/proc/self");
2513
+ Ob("/proc/self/fd");
2514
+ Mb({R() {
2515
+ var b = qb(a, "fd", 16895, 73);
2516
+ b.i = {ha(c, d) {
2517
+ var e = Jb(+d);
2518
+ c = {parent:null, R:{cb:"fake"}, i:{ia:() => e.path},};
2519
2519
  return c.parent = c;
2520
2520
  }};
2521
2521
  return b;
2522
2522
  }}, "/proc/self/fd");
2523
2523
  })();
2524
- P = l.BindingError = class extends Error {
2524
+ P = k.BindingError = class extends Error {
2525
2525
  constructor(a) {
2526
2526
  super(a);
2527
2527
  this.name = "BindingError";
2528
2528
  }
2529
2529
  };
2530
2530
  O.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
2531
- l.count_emval_handles = () => O.length / 2 - 5 - $b.length;
2532
- cc = l.PureVirtualError = bc("PureVirtualError");
2533
- for (var ae = Array(256), be = 0; 256 > be; ++be) {
2534
- ae[be] = String.fromCharCode(be);
2531
+ k.count_emval_handles = () => O.length / 2 - 5 - Zb.length;
2532
+ bc = k.PureVirtualError = ac("PureVirtualError");
2533
+ for (var $d = Array(256), ae = 0; 256 > ae; ++ae) {
2534
+ $d[ae] = String.fromCharCode(ae);
2535
2535
  }
2536
- dc = ae;
2537
- l.getInheritedInstanceCount = () => Object.keys(hc).length;
2538
- l.getLiveInheritedInstances = () => {
2536
+ cc = $d;
2537
+ k.getInheritedInstanceCount = () => Object.keys(gc).length;
2538
+ k.getLiveInheritedInstances = () => {
2539
2539
  var a = [], b;
2540
- for (b in hc) {
2541
- hc.hasOwnProperty(b) && a.push(hc[b]);
2540
+ for (b in gc) {
2541
+ gc.hasOwnProperty(b) && a.push(gc[b]);
2542
2542
  }
2543
2543
  return a;
2544
2544
  };
2545
- l.flushPendingDeletes = fc;
2546
- l.setDelayFunction = a => {
2547
- gc = a;
2548
- ec.length && gc && gc(fc);
2545
+ k.flushPendingDeletes = ec;
2546
+ k.setDelayFunction = a => {
2547
+ fc = a;
2548
+ dc.length && fc && fc(ec);
2549
2549
  };
2550
- tc = l.InternalError = class extends Error {
2550
+ sc = k.InternalError = class extends Error {
2551
2551
  constructor(a) {
2552
2552
  super(a);
2553
2553
  this.name = "InternalError";
2554
2554
  }
2555
2555
  };
2556
- Object.assign(Dc.prototype, {isAliasOf:function(a) {
2557
- if (!(this instanceof Dc && a instanceof Dc)) {
2556
+ Object.assign(Cc.prototype, {isAliasOf:function(a) {
2557
+ if (!(this instanceof Cc && a instanceof Cc)) {
2558
2558
  return !1;
2559
2559
  }
2560
- var b = this.g.u.i, c = this.g.o;
2560
+ var b = this.g.s.h, c = this.g.m;
2561
2561
  a.g = a.g;
2562
- var d = a.g.u.i;
2563
- for (a = a.g.o; b.B;) {
2564
- c = b.oa(c), b = b.B;
2562
+ var d = a.g.s.h;
2563
+ for (a = a.g.m; b.A;) {
2564
+ c = b.ka(c), b = b.A;
2565
2565
  }
2566
- for (; d.B;) {
2567
- a = d.oa(a), d = d.B;
2566
+ for (; d.A;) {
2567
+ a = d.ka(a), d = d.A;
2568
2568
  }
2569
2569
  return b === d && c === a;
2570
2570
  }, clone:function() {
2571
- this.g.o || Cc(this);
2572
- if (this.g.ja) {
2571
+ this.g.m || Bc(this);
2572
+ if (this.g.fa) {
2573
2573
  return this.g.count.value += 1, this;
2574
2574
  }
2575
- var a = uc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
2576
- a = a(c.call(b, d, {g:{value:{count:e.count, ha:e.ha, ja:e.ja, o:e.o, u:e.u, D:e.D, J:e.J,},}}));
2575
+ var a = tc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
2576
+ a = a(c.call(b, d, {g:{value:{count:e.count, ea:e.ea, fa:e.fa, m:e.m, s:e.s, B:e.B, G:e.G,},}}));
2577
2577
  a.g.count.value += 1;
2578
- a.g.ha = !1;
2578
+ a.g.ea = !1;
2579
2579
  return a;
2580
2580
  }, ["delete"]() {
2581
- this.g.o || Cc(this);
2582
- if (this.g.ha && !this.g.ja) {
2581
+ this.g.m || Bc(this);
2582
+ if (this.g.ea && !this.g.fa) {
2583
2583
  throw new P("Object already scheduled for deletion");
2584
2584
  }
2585
- oc(this);
2585
+ nc(this);
2586
2586
  var a = this.g;
2587
2587
  --a.count.value;
2588
- 0 === a.count.value && (a.D ? a.J.O(a.D) : a.u.i.O(a.o));
2589
- this.g.ja || (this.g.D = void 0, this.g.o = void 0);
2588
+ 0 === a.count.value && (a.B ? a.G.L(a.B) : a.s.h.L(a.m));
2589
+ this.g.fa || (this.g.B = void 0, this.g.m = void 0);
2590
2590
  }, isDeleted:function() {
2591
- return !this.g.o;
2591
+ return !this.g.m;
2592
2592
  }, deleteLater:function() {
2593
- this.g.o || Cc(this);
2594
- if (this.g.ha && !this.g.ja) {
2593
+ this.g.m || Bc(this);
2594
+ if (this.g.ea && !this.g.fa) {
2595
2595
  throw new P("Object already scheduled for deletion");
2596
2596
  }
2597
- ec.push(this);
2598
- 1 === ec.length && gc && gc(fc);
2599
- this.g.ha = !0;
2597
+ dc.push(this);
2598
+ 1 === dc.length && fc && fc(ec);
2599
+ this.g.ea = !0;
2600
2600
  return this;
2601
2601
  },});
2602
- Object.assign(Nc.prototype, {Qb(a) {
2603
- this.rb && (a = this.rb(a));
2602
+ Object.assign(Mc.prototype, {Gb(a) {
2603
+ this.jb && (a = this.jb(a));
2604
2604
  return a;
2605
- }, cb(a) {
2606
- this.O?.(a);
2607
- }, argPackAdvance:8, readValueFromPointer:yc, fromWireType:function(a) {
2605
+ }, Va(a) {
2606
+ this.L?.(a);
2607
+ }, argPackAdvance:8, readValueFromPointer:xc, fromWireType:function(a) {
2608
2608
  function b() {
2609
- return this.xa ? vc(this.i.M, {u:this.cc, o:c, J:this, D:a,}) : vc(this.i.M, {u:this, o:a,});
2609
+ return this.ta ? uc(this.h.J, {s:this.Tb, m:c, G:this, B:a,}) : uc(this.h.J, {s:this, m:a,});
2610
2610
  }
2611
- var c = this.Qb(a);
2611
+ var c = this.Gb(a);
2612
2612
  if (!c) {
2613
- return this.cb(a), null;
2613
+ return this.Va(a), null;
2614
2614
  }
2615
- var d = sc(this.i, c);
2615
+ var d = rc(this.h, c);
2616
2616
  if (void 0 !== d) {
2617
2617
  if (0 === d.g.count.value) {
2618
- return d.g.o = c, d.g.D = a, d.clone();
2618
+ return d.g.m = c, d.g.B = a, d.clone();
2619
2619
  }
2620
2620
  d = d.clone();
2621
- this.cb(a);
2621
+ this.Va(a);
2622
2622
  return d;
2623
2623
  }
2624
- d = this.i.Pb(c);
2625
- d = rc[d];
2624
+ d = this.h.Fb(c);
2625
+ d = qc[d];
2626
2626
  if (!d) {
2627
2627
  return b.call(this);
2628
2628
  }
2629
- d = this.wa ? d.Ib : d.pointerType;
2630
- var e = qc(c, this.i, d.i);
2631
- return null === e ? b.call(this) : this.xa ? vc(d.i.M, {u:d, o:e, J:this, D:a,}) : vc(d.i.M, {u:d, o:e,});
2629
+ d = this.sa ? d.yb : d.pointerType;
2630
+ var e = pc(c, this.h, d.h);
2631
+ return null === e ? b.call(this) : this.ta ? uc(d.h.J, {s:d, m:e, G:this, B:a,}) : uc(d.h.J, {s:d, m:e,});
2632
2632
  },});
2633
- Uc = l.UnboundTypeError = bc("UnboundTypeError");
2634
- for (var W, ce = 0; 32 > ce; ++ce) {
2635
- Rd.push(Array(ce));
2633
+ Tc = k.UnboundTypeError = ac("UnboundTypeError");
2634
+ for (var W, be = 0; 32 > be; ++be) {
2635
+ Qd.push(Array(be));
2636
2636
  }
2637
- var ee = {__syscall_fcntl64:function(a, b, c) {
2638
- Wa = c;
2637
+ var de = {__syscall_fcntl64:function(a, b, c) {
2638
+ Va = c;
2639
2639
  try {
2640
- var d = Kb(a);
2640
+ var d = Jb(a);
2641
2641
  switch(b) {
2642
2642
  case 0:
2643
- var e = Va();
2643
+ var e = Ua();
2644
2644
  if (0 > e) {
2645
2645
  break;
2646
2646
  }
2647
- for (; xb[e];) {
2647
+ for (; wb[e];) {
2648
2648
  e++;
2649
2649
  }
2650
- return Mb(d, e).W;
2650
+ return Lb(d, e).T;
2651
2651
  case 1:
2652
2652
  case 2:
2653
2653
  return 0;
2654
2654
  case 3:
2655
2655
  return d.flags;
2656
2656
  case 4:
2657
- return e = Va(), d.flags |= e, 0;
2657
+ return e = Ua(), d.flags |= e, 0;
2658
2658
  case 12:
2659
- return e = Va(), E[e + 0 >> 1] = 2, 0;
2659
+ return e = Ua(), E[e + 0 >> 1] = 2, 0;
2660
2660
  case 13:
2661
2661
  case 14:
2662
2662
  return 0;
2663
2663
  }
2664
2664
  return -28;
2665
2665
  } catch (f) {
2666
- if ("undefined" == typeof Yb || "ErrnoError" !== f.name) {
2666
+ if ("undefined" == typeof Xb || "ErrnoError" !== f.name) {
2667
2667
  throw f;
2668
2668
  }
2669
- return -f.aa;
2669
+ return -f.Y;
2670
2670
  }
2671
2671
  }, __syscall_ioctl:function(a, b, c) {
2672
- Wa = c;
2672
+ Va = c;
2673
2673
  try {
2674
- var d = Kb(a);
2674
+ var d = Jb(a);
2675
2675
  switch(b) {
2676
2676
  case 21509:
2677
- return d.s ? 0 : -59;
2677
+ return d.o ? 0 : -59;
2678
2678
  case 21505:
2679
- if (!d.s) {
2679
+ if (!d.o) {
2680
2680
  return -59;
2681
2681
  }
2682
- if (d.s.V.Xb) {
2682
+ if (d.o.S.Nb) {
2683
2683
  a = [3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,];
2684
- var e = Va();
2684
+ var e = Ua();
2685
2685
  F[e >> 2] = 25856;
2686
2686
  F[e + 4 >> 2] = 5;
2687
2687
  F[e + 8 >> 2] = 191;
2688
2688
  F[e + 12 >> 2] = 35387;
2689
2689
  for (var f = 0; 32 > f; f++) {
2690
- B[e + f + 17] = a[f] || 0;
2690
+ C[e + f + 17] = a[f] || 0;
2691
2691
  }
2692
2692
  }
2693
2693
  return 0;
2694
2694
  case 21510:
2695
2695
  case 21511:
2696
2696
  case 21512:
2697
- return d.s ? 0 : -59;
2697
+ return d.o ? 0 : -59;
2698
2698
  case 21506:
2699
2699
  case 21507:
2700
2700
  case 21508:
2701
- if (!d.s) {
2701
+ if (!d.o) {
2702
2702
  return -59;
2703
2703
  }
2704
- if (d.s.V.Yb) {
2705
- for (e = Va(), a = [], f = 0; 32 > f; f++) {
2706
- a.push(B[e + f + 17]);
2704
+ if (d.o.S.Ob) {
2705
+ for (e = Ua(), a = [], f = 0; 32 > f; f++) {
2706
+ a.push(C[e + f + 17]);
2707
2707
  }
2708
2708
  }
2709
2709
  return 0;
2710
2710
  case 21519:
2711
- if (!d.s) {
2711
+ if (!d.o) {
2712
2712
  return -59;
2713
2713
  }
2714
- e = Va();
2714
+ e = Ua();
2715
2715
  return F[e >> 2] = 0;
2716
2716
  case 21520:
2717
- return d.s ? -28 : -59;
2717
+ return d.o ? -28 : -59;
2718
2718
  case 21531:
2719
- e = Va();
2720
- if (!d.m.Wb) {
2719
+ e = Ua();
2720
+ if (!d.l.Mb) {
2721
2721
  throw new M(59);
2722
2722
  }
2723
- return d.m.Wb(d, b, e);
2723
+ return d.l.Mb(d, b, e);
2724
2724
  case 21523:
2725
- if (!d.s) {
2725
+ if (!d.o) {
2726
2726
  return -59;
2727
2727
  }
2728
- d.s.V.Zb && (f = [24, 80], e = Va(), E[e >> 1] = f[0], E[e + 2 >> 1] = f[1]);
2728
+ d.o.S.Pb && (f = [24, 80], e = Ua(), E[e >> 1] = f[0], E[e + 2 >> 1] = f[1]);
2729
2729
  return 0;
2730
2730
  case 21524:
2731
- return d.s ? 0 : -59;
2731
+ return d.o ? 0 : -59;
2732
2732
  case 21515:
2733
- return d.s ? 0 : -59;
2733
+ return d.o ? 0 : -59;
2734
2734
  default:
2735
2735
  return -28;
2736
2736
  }
2737
2737
  } catch (g) {
2738
- if ("undefined" == typeof Yb || "ErrnoError" !== g.name) {
2738
+ if ("undefined" == typeof Xb || "ErrnoError" !== g.name) {
2739
2739
  throw g;
2740
2740
  }
2741
- return -g.aa;
2741
+ return -g.Y;
2742
2742
  }
2743
2743
  }, __syscall_openat:function(a, b, c, d) {
2744
- Wa = d;
2744
+ Va = d;
2745
2745
  try {
2746
2746
  b = b ? L(D, b) : "";
2747
2747
  var e = b;
2748
2748
  if ("/" === e.charAt(0)) {
2749
2749
  b = e;
2750
2750
  } else {
2751
- var f = -100 === a ? "/" : Kb(a).path;
2751
+ var f = -100 === a ? "/" : Jb(a).path;
2752
2752
  if (0 == e.length) {
2753
2753
  throw new M(44);
2754
2754
  }
2755
- b = Ya(f + "/" + e);
2755
+ b = Xa(f + "/" + e);
2756
2756
  }
2757
- var g = d ? Va() : 0;
2758
- return Sb(b, c, g).W;
2759
- } catch (k) {
2760
- if ("undefined" == typeof Yb || "ErrnoError" !== k.name) {
2761
- throw k;
2757
+ var g = d ? Ua() : 0;
2758
+ return Rb(b, c, g).T;
2759
+ } catch (h) {
2760
+ if ("undefined" == typeof Xb || "ErrnoError" !== h.name) {
2761
+ throw h;
2762
2762
  }
2763
- return -k.aa;
2763
+ return -h.Y;
2764
2764
  }
2765
2765
  }, _abort_js:() => {
2766
- Ha("");
2766
+ Ga("");
2767
2767
  }, _embind_create_inheriting_constructor:(a, b, c) => {
2768
2768
  a = R(a);
2769
- b = nc(b, "wrapper");
2769
+ b = mc(b, "wrapper");
2770
2770
  c = Q(c);
2771
- var d = b.i, e = d.M, f = d.B.M, g = d.B.constructor;
2772
- a = Zb(a, function(...k) {
2773
- d.B.pb.forEach(function(n) {
2774
- if (this[n] === f[n]) {
2775
- throw new cc(`Pure virtual function ${n} must be implemented in JavaScript`);
2771
+ var d = b.h, e = d.J, f = d.A.J, g = d.A.constructor;
2772
+ a = Yb(a, function(...h) {
2773
+ d.A.hb.forEach(function(m) {
2774
+ if (this[m] === f[m]) {
2775
+ throw new bc(`Pure virtual function ${m} must be implemented in JavaScript`);
2776
2776
  }
2777
2777
  }.bind(this));
2778
2778
  Object.defineProperty(this, "__parent", {value:e});
2779
- this.__construct(...k);
2779
+ this.__construct(...h);
2780
2780
  });
2781
- e.__construct = function(...k) {
2781
+ e.__construct = function(...h) {
2782
2782
  if (this === e) {
2783
2783
  throw new P("Pass correct 'this' to __construct");
2784
2784
  }
2785
- k = g.implement(this, ...k);
2786
- oc(k);
2787
- var n = k.g;
2788
- k.notifyOnDestruction();
2789
- n.ja = !0;
2790
- Object.defineProperties(this, {g:{value:n}});
2791
- uc(this);
2792
- k = n.o;
2793
- k = ic(d, k);
2794
- if (hc.hasOwnProperty(k)) {
2795
- throw new P(`Tried to register registered instance: ${k}`);
2796
- }
2797
- hc[k] = this;
2785
+ h = g.implement(this, ...h);
2786
+ nc(h);
2787
+ var m = h.g;
2788
+ h.notifyOnDestruction();
2789
+ m.fa = !0;
2790
+ Object.defineProperties(this, {g:{value:m}});
2791
+ tc(this);
2792
+ h = m.m;
2793
+ h = hc(d, h);
2794
+ if (gc.hasOwnProperty(h)) {
2795
+ throw new P(`Tried to register registered instance: ${h}`);
2796
+ }
2797
+ gc[h] = this;
2798
2798
  };
2799
2799
  e.__destruct = function() {
2800
2800
  if (this === e) {
2801
2801
  throw new P("Pass correct 'this' to __destruct");
2802
2802
  }
2803
- oc(this);
2804
- var k = this.g.o;
2805
- k = ic(d, k);
2806
- if (hc.hasOwnProperty(k)) {
2807
- delete hc[k];
2803
+ nc(this);
2804
+ var h = this.g.m;
2805
+ h = hc(d, h);
2806
+ if (gc.hasOwnProperty(h)) {
2807
+ delete gc[h];
2808
2808
  } else {
2809
- throw new P(`Tried to unregister unregistered instance: ${k}`);
2809
+ throw new P(`Tried to unregister unregistered instance: ${h}`);
2810
2810
  }
2811
2811
  };
2812
2812
  a.prototype = Object.create(e);
2813
2813
  Object.assign(a.prototype, c);
2814
- return ac(a);
2814
+ return $b(a);
2815
2815
  }, _embind_finalize_value_object:a => {
2816
- var b = wc[a];
2817
- delete wc[a];
2818
- var c = b.Ua, d = b.O, e = b.fb, f = e.map(g => g.Tb).concat(e.map(g => g.fc));
2816
+ var b = vc[a];
2817
+ delete vc[a];
2818
+ var c = b.Na, d = b.L, e = b.Xa, f = e.map(g => g.Jb).concat(e.map(g => g.Wb));
2819
2819
  T([a], f, g => {
2820
- var k = {};
2821
- e.forEach((n, m) => {
2822
- var t = g[m], v = n.Rb, x = n.Sb, p = g[m + e.length], r = n.ec, u = n.hc;
2823
- k[n.Nb] = {read:z => t.fromWireType(v(x, z)), write:(z, A) => {
2824
- var C = [];
2825
- r(u, z, p.toWireType(C, A));
2826
- xc(C);
2820
+ var h = {};
2821
+ e.forEach((m, l) => {
2822
+ var r = g[l], u = m.Hb, w = m.Ib, n = g[l + e.length], q = m.Vb, t = m.Xb;
2823
+ h[m.Db] = {read:y => r.fromWireType(u(w, y)), write:(y, z) => {
2824
+ var B = [];
2825
+ q(t, y, n.toWireType(B, z));
2826
+ wc(B);
2827
2827
  }};
2828
2828
  });
2829
- return [{name:b.name, fromWireType:n => {
2830
- var m = {}, t;
2831
- for (t in k) {
2832
- m[t] = k[t].read(n);
2829
+ return [{name:b.name, fromWireType:m => {
2830
+ var l = {}, r;
2831
+ for (r in h) {
2832
+ l[r] = h[r].read(m);
2833
2833
  }
2834
- d(n);
2835
- return m;
2836
- }, toWireType:(n, m) => {
2837
- for (var t in k) {
2838
- if (!(t in m)) {
2839
- throw new TypeError(`Missing field: "${t}"`);
2834
+ d(m);
2835
+ return l;
2836
+ }, toWireType:(m, l) => {
2837
+ for (var r in h) {
2838
+ if (!(r in l)) {
2839
+ throw new TypeError(`Missing field: "${r}"`);
2840
2840
  }
2841
2841
  }
2842
- var v = c();
2843
- for (t in k) {
2844
- k[t].write(v, m[t]);
2842
+ var u = c();
2843
+ for (r in h) {
2844
+ h[r].write(u, l[r]);
2845
2845
  }
2846
- null !== n && n.push(d, v);
2847
- return v;
2848
- }, argPackAdvance:8, readValueFromPointer:yc, L:d,}];
2846
+ null !== m && m.push(d, u);
2847
+ return u;
2848
+ }, argPackAdvance:8, readValueFromPointer:xc, I:d,}];
2849
2849
  });
2850
2850
  }, _embind_register_bigint:() => {
2851
2851
  }, _embind_register_bool:(a, b, c, d) => {
@@ -2856,378 +2856,378 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
2856
2856
  return f ? c : d;
2857
2857
  }, argPackAdvance:8, readValueFromPointer:function(e) {
2858
2858
  return this.fromWireType(D[e]);
2859
- }, L:null,});
2860
- }, _embind_register_class:(a, b, c, d, e, f, g, k, n, m, t, v, x) => {
2861
- t = R(t);
2859
+ }, I:null,});
2860
+ }, _embind_register_class:(a, b, c, d, e, f, g, h, m, l, r, u, w) => {
2861
+ r = R(r);
2862
2862
  f = U(e, f);
2863
- k &&= U(g, k);
2864
- m &&= U(n, m);
2865
- x = U(v, x);
2866
- var p = Gc(t);
2867
- Fc(p, function() {
2868
- Vc(`Cannot construct ${t} due to unbound types`, [d]);
2863
+ h &&= U(g, h);
2864
+ l &&= U(m, l);
2865
+ w = U(u, w);
2866
+ var n = Fc(r);
2867
+ Ec(n, function() {
2868
+ Uc(`Cannot construct ${r} due to unbound types`, [d]);
2869
2869
  });
2870
- T([a, b, c], d ? [d] : [], r => {
2871
- r = r[0];
2870
+ T([a, b, c], d ? [d] : [], q => {
2871
+ q = q[0];
2872
2872
  if (d) {
2873
- var u = r.i;
2874
- var z = u.M;
2873
+ var t = q.h;
2874
+ var y = t.J;
2875
2875
  } else {
2876
- z = Dc.prototype;
2876
+ y = Cc.prototype;
2877
2877
  }
2878
- r = Zb(t, function(...J) {
2879
- if (Object.getPrototypeOf(this) !== A) {
2880
- throw new P("Use 'new' to construct " + t);
2878
+ q = Yb(r, function(...I) {
2879
+ if (Object.getPrototypeOf(this) !== z) {
2880
+ throw new P("Use 'new' to construct " + r);
2881
2881
  }
2882
- if (void 0 === C.$) {
2883
- throw new P(t + " has no accessible constructor");
2882
+ if (void 0 === B.X) {
2883
+ throw new P(r + " has no accessible constructor");
2884
2884
  }
2885
- var K = C.$[J.length];
2886
- if (void 0 === K) {
2887
- throw new P(`Tried to invoke ctor of ${t} with invalid number of parameters (${J.length}) - expected (${Object.keys(C.$).toString()}) parameters instead!`);
2885
+ var J = B.X[I.length];
2886
+ if (void 0 === J) {
2887
+ throw new P(`Tried to invoke ctor of ${r} with invalid number of parameters (${I.length}) - expected (${Object.keys(B.X).toString()}) parameters instead!`);
2888
2888
  }
2889
- return K.apply(this, J);
2889
+ return J.apply(this, I);
2890
2890
  });
2891
- var A = Object.create(z, {constructor:{value:r},});
2892
- r.prototype = A;
2893
- var C = new Hc(t, r, A, x, u, f, k, m);
2894
- if (C.B) {
2895
- var H;
2896
- (H = C.B).pa ?? (H.pa = []);
2897
- C.B.pa.push(C);
2898
- }
2899
- u = new Nc(t, C, !0, !1, !1);
2900
- H = new Nc(t + "*", C, !1, !1, !1);
2901
- z = new Nc(t + " const*", C, !1, !0, !1);
2902
- rc[a] = {pointerType:H, Ib:z};
2903
- Oc(p, r);
2904
- return [u, H, z];
2891
+ var z = Object.create(y, {constructor:{value:q},});
2892
+ q.prototype = z;
2893
+ var B = new Gc(r, q, z, w, t, f, h, l);
2894
+ if (B.A) {
2895
+ var G;
2896
+ (G = B.A).la ?? (G.la = []);
2897
+ B.A.la.push(B);
2898
+ }
2899
+ t = new Mc(r, B, !0, !1, !1);
2900
+ G = new Mc(r + "*", B, !1, !1, !1);
2901
+ y = new Mc(r + " const*", B, !1, !0, !1);
2902
+ qc[a] = {pointerType:G, yb:y};
2903
+ Nc(n, q);
2904
+ return [t, G, y];
2905
2905
  });
2906
2906
  }, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
2907
- var k = Yc(c, d);
2907
+ var h = Xc(c, d);
2908
2908
  b = R(b);
2909
- b = Zc(b);
2909
+ b = Yc(b);
2910
2910
  f = U(e, f);
2911
- T([], [a], n => {
2912
- function m() {
2913
- Vc(`Cannot call ${t} due to unbound types`, k);
2911
+ T([], [a], m => {
2912
+ function l() {
2913
+ Uc(`Cannot call ${r} due to unbound types`, h);
2914
2914
  }
2915
- n = n[0];
2916
- var t = `${n.name}.${b}`;
2915
+ m = m[0];
2916
+ var r = `${m.name}.${b}`;
2917
2917
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2918
- var v = n.i.constructor;
2919
- void 0 === v[b] ? (m.ga = c - 1, v[b] = m) : (Ec(v, b, t), v[b].A[c - 1] = m);
2920
- T([], k, x => {
2921
- x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
2922
- void 0 === v[b].A ? (x.ga = c - 1, v[b] = x) : v[b].A[c - 1] = x;
2923
- if (n.i.pa) {
2924
- for (const p of n.i.pa) {
2925
- p.constructor.hasOwnProperty(b) || (p.constructor[b] = x);
2918
+ var u = m.h.constructor;
2919
+ void 0 === u[b] ? (l.da = c - 1, u[b] = l) : (Dc(u, b, r), u[b].v[c - 1] = l);
2920
+ T([], h, w => {
2921
+ w = Wc(r, [w[0], null].concat(w.slice(1)), null, f, g);
2922
+ void 0 === u[b].v ? (w.da = c - 1, u[b] = w) : u[b].v[c - 1] = w;
2923
+ if (m.h.la) {
2924
+ for (const n of m.h.la) {
2925
+ n.constructor.hasOwnProperty(b) || (n.constructor[b] = w);
2926
2926
  }
2927
2927
  }
2928
2928
  return [];
2929
2929
  });
2930
2930
  return [];
2931
2931
  });
2932
- }, _embind_register_class_class_property:(a, b, c, d, e, f, g, k) => {
2932
+ }, _embind_register_class_class_property:(a, b, c, d, e, f, g, h) => {
2933
2933
  b = R(b);
2934
2934
  f = U(e, f);
2935
- T([], [a], n => {
2936
- n = n[0];
2937
- var m = `${n.name}.${b}`, t = {get() {
2938
- Vc(`Cannot access ${m} due to unbound types`, [c]);
2935
+ T([], [a], m => {
2936
+ m = m[0];
2937
+ var l = `${m.name}.${b}`, r = {get() {
2938
+ Uc(`Cannot access ${l} due to unbound types`, [c]);
2939
2939
  }, enumerable:!0, configurable:!0};
2940
- t.set = k ? () => {
2941
- Vc(`Cannot access ${m} due to unbound types`, [c]);
2940
+ r.set = h ? () => {
2941
+ Uc(`Cannot access ${l} due to unbound types`, [c]);
2942
2942
  } : () => {
2943
- throw new P(`${m} is a read-only property`);
2943
+ throw new P(`${l} is a read-only property`);
2944
2944
  };
2945
- Object.defineProperty(n.i.constructor, b, t);
2946
- T([], [c], v => {
2947
- v = v[0];
2948
- var x = {get() {
2949
- return v.fromWireType(f(d));
2945
+ Object.defineProperty(m.h.constructor, b, r);
2946
+ T([], [c], u => {
2947
+ u = u[0];
2948
+ var w = {get() {
2949
+ return u.fromWireType(f(d));
2950
2950
  }, enumerable:!0};
2951
- k && (k = U(g, k), x.set = p => {
2952
- var r = [];
2953
- k(d, v.toWireType(r, p));
2954
- xc(r);
2951
+ h && (h = U(g, h), w.set = n => {
2952
+ var q = [];
2953
+ h(d, u.toWireType(q, n));
2954
+ wc(q);
2955
2955
  });
2956
- Object.defineProperty(n.i.constructor, b, x);
2956
+ Object.defineProperty(m.h.constructor, b, w);
2957
2957
  return [];
2958
2958
  });
2959
2959
  return [];
2960
2960
  });
2961
2961
  }, _embind_register_class_constructor:(a, b, c, d, e, f) => {
2962
- var g = Yc(b, c);
2962
+ var g = Xc(b, c);
2963
2963
  e = U(d, e);
2964
- T([], [a], k => {
2965
- k = k[0];
2966
- var n = `constructor ${k.name}`;
2967
- void 0 === k.i.$ && (k.i.$ = []);
2968
- if (void 0 !== k.i.$[b - 1]) {
2969
- throw new P(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2970
- }
2971
- k.i.$[b - 1] = () => {
2972
- Vc(`Cannot construct ${k.name} due to unbound types`, g);
2973
- };
2974
- T([], g, m => {
2975
- m.splice(1, 0, null);
2976
- k.i.$[b - 1] = Xc(n, m, null, e, f);
2964
+ T([], [a], h => {
2965
+ h = h[0];
2966
+ var m = `constructor ${h.name}`;
2967
+ void 0 === h.h.X && (h.h.X = []);
2968
+ if (void 0 !== h.h.X[b - 1]) {
2969
+ throw new P(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${h.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2970
+ }
2971
+ h.h.X[b - 1] = () => {
2972
+ Uc(`Cannot construct ${h.name} due to unbound types`, g);
2973
+ };
2974
+ T([], g, l => {
2975
+ l.splice(1, 0, null);
2976
+ h.h.X[b - 1] = Wc(m, l, null, e, f);
2977
2977
  return [];
2978
2978
  });
2979
2979
  return [];
2980
2980
  });
2981
- }, _embind_register_class_function:(a, b, c, d, e, f, g, k) => {
2982
- var n = Yc(c, d);
2981
+ }, _embind_register_class_function:(a, b, c, d, e, f, g, h) => {
2982
+ var m = Xc(c, d);
2983
2983
  b = R(b);
2984
- b = Zc(b);
2984
+ b = Yc(b);
2985
2985
  f = U(e, f);
2986
- T([], [a], m => {
2987
- function t() {
2988
- Vc(`Cannot call ${v} due to unbound types`, n);
2986
+ T([], [a], l => {
2987
+ function r() {
2988
+ Uc(`Cannot call ${u} due to unbound types`, m);
2989
2989
  }
2990
- m = m[0];
2991
- var v = `${m.name}.${b}`;
2990
+ l = l[0];
2991
+ var u = `${l.name}.${b}`;
2992
2992
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2993
- k && m.i.pb.push(b);
2994
- var x = m.i.M, p = x[b];
2995
- void 0 === p || void 0 === p.A && p.className !== m.name && p.ga === c - 2 ? (t.ga = c - 2, t.className = m.name, x[b] = t) : (Ec(x, b, v), x[b].A[c - 2] = t);
2996
- T([], n, r => {
2997
- r = Xc(v, r, m, f, g);
2998
- void 0 === x[b].A ? (r.ga = c - 2, x[b] = r) : x[b].A[c - 2] = r;
2993
+ h && l.h.hb.push(b);
2994
+ var w = l.h.J, n = w[b];
2995
+ void 0 === n || void 0 === n.v && n.className !== l.name && n.da === c - 2 ? (r.da = c - 2, r.className = l.name, w[b] = r) : (Dc(w, b, u), w[b].v[c - 2] = r);
2996
+ T([], m, q => {
2997
+ q = Wc(u, q, l, f, g);
2998
+ void 0 === w[b].v ? (q.da = c - 2, w[b] = q) : w[b].v[c - 2] = q;
2999
2999
  return [];
3000
3000
  });
3001
3001
  return [];
3002
3002
  });
3003
- }, _embind_register_class_property:(a, b, c, d, e, f, g, k, n, m) => {
3003
+ }, _embind_register_class_property:(a, b, c, d, e, f, g, h, m, l) => {
3004
3004
  b = R(b);
3005
3005
  e = U(d, e);
3006
- T([], [a], t => {
3007
- t = t[0];
3008
- var v = `${t.name}.${b}`, x = {get() {
3009
- Vc(`Cannot access ${v} due to unbound types`, [c, g]);
3006
+ T([], [a], r => {
3007
+ r = r[0];
3008
+ var u = `${r.name}.${b}`, w = {get() {
3009
+ Uc(`Cannot access ${u} due to unbound types`, [c, g]);
3010
3010
  }, enumerable:!0, configurable:!0};
3011
- x.set = n ? () => Vc(`Cannot access ${v} due to unbound types`, [c, g]) : () => {
3012
- throw new P(v + " is a read-only property");
3013
- };
3014
- Object.defineProperty(t.i.M, b, x);
3015
- T([], n ? [c, g] : [c], p => {
3016
- var r = p[0], u = {get() {
3017
- var A = $c(this, t, v + " getter");
3018
- return r.fromWireType(e(f, A));
3011
+ w.set = m ? () => Uc(`Cannot access ${u} due to unbound types`, [c, g]) : () => {
3012
+ throw new P(u + " is a read-only property");
3013
+ };
3014
+ Object.defineProperty(r.h.J, b, w);
3015
+ T([], m ? [c, g] : [c], n => {
3016
+ var q = n[0], t = {get() {
3017
+ var z = Zc(this, r, u + " getter");
3018
+ return q.fromWireType(e(f, z));
3019
3019
  }, enumerable:!0};
3020
- if (n) {
3021
- n = U(k, n);
3022
- var z = p[1];
3023
- u.set = function(A) {
3024
- var C = $c(this, t, v + " setter"), H = [];
3025
- n(m, C, z.toWireType(H, A));
3026
- xc(H);
3020
+ if (m) {
3021
+ m = U(h, m);
3022
+ var y = n[1];
3023
+ t.set = function(z) {
3024
+ var B = Zc(this, r, u + " setter"), G = [];
3025
+ m(l, B, y.toWireType(G, z));
3026
+ wc(G);
3027
3027
  };
3028
3028
  }
3029
- Object.defineProperty(t.i.M, b, u);
3029
+ Object.defineProperty(r.h.J, b, t);
3030
3030
  return [];
3031
3031
  });
3032
3032
  return [];
3033
3033
  });
3034
- }, _embind_register_emval:a => S(a, bd), _embind_register_enum:(a, b, c, d) => {
3034
+ }, _embind_register_emval:a => S(a, ad), _embind_register_enum:(a, b, c, d) => {
3035
3035
  function e() {
3036
3036
  }
3037
3037
  b = R(b);
3038
3038
  e.values = {};
3039
3039
  S(a, {name:b, constructor:e, fromWireType:function(f) {
3040
3040
  return this.constructor.values[f];
3041
- }, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:cd(b, c, d), L:null,});
3042
- Fc(b, e);
3041
+ }, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:bd(b, c, d), I:null,});
3042
+ Ec(b, e);
3043
3043
  }, _embind_register_enum_value:(a, b, c) => {
3044
- var d = nc(a, "enum");
3044
+ var d = mc(a, "enum");
3045
3045
  b = R(b);
3046
3046
  a = d.constructor;
3047
- d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Zb(`${d.name}_${b}`, function() {
3047
+ d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Yb(`${d.name}_${b}`, function() {
3048
3048
  })},});
3049
3049
  a.values[c] = d;
3050
3050
  a[b] = d;
3051
3051
  }, _embind_register_float:(a, b, c) => {
3052
3052
  b = R(b);
3053
- S(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:dd(b, c), L:null,});
3053
+ S(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:cd(b, c), I:null,});
3054
3054
  }, _embind_register_function:(a, b, c, d, e, f) => {
3055
- var g = Yc(b, c);
3055
+ var g = Xc(b, c);
3056
3056
  a = R(a);
3057
- a = Zc(a);
3057
+ a = Yc(a);
3058
3058
  e = U(d, e);
3059
- Fc(a, function() {
3060
- Vc(`Cannot call ${a} due to unbound types`, g);
3059
+ Ec(a, function() {
3060
+ Uc(`Cannot call ${a} due to unbound types`, g);
3061
3061
  }, b - 1);
3062
- T([], g, k => {
3063
- Oc(a, Xc(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
3062
+ T([], g, h => {
3063
+ Nc(a, Wc(a, [h[0], null].concat(h.slice(1)), null, e, f), b - 1);
3064
3064
  return [];
3065
3065
  });
3066
3066
  }, _embind_register_integer:(a, b, c, d, e) => {
3067
3067
  b = R(b);
3068
3068
  -1 === e && (e = 4294967295);
3069
- e = k => k;
3069
+ e = h => h;
3070
3070
  if (0 === d) {
3071
3071
  var f = 32 - 8 * c;
3072
- e = k => k << f >>> f;
3072
+ e = h => h << f >>> f;
3073
3073
  }
3074
- var g = b.includes("unsigned") ? function(k, n) {
3075
- return n >>> 0;
3076
- } : function(k, n) {
3077
- return n;
3074
+ var g = b.includes("unsigned") ? function(h, m) {
3075
+ return m >>> 0;
3076
+ } : function(h, m) {
3077
+ return m;
3078
3078
  };
3079
- S(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:ed(b, c, 0 !== d), L:null,});
3079
+ S(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:dd(b, c, 0 !== d), I:null,});
3080
3080
  }, _embind_register_memory_view:(a, b, c) => {
3081
3081
  function d(f) {
3082
- return new e(B.buffer, G[f + 4 >> 2], G[f >> 2]);
3082
+ return new e(C.buffer, K[f + 4 >> 2], K[f >> 2]);
3083
3083
  }
3084
3084
  var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
3085
3085
  c = R(c);
3086
- S(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Ub:!0,});
3086
+ S(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Kb:!0,});
3087
3087
  }, _embind_register_std_string:(a, b) => {
3088
3088
  b = R(b);
3089
3089
  var c = "std::string" === b;
3090
3090
  S(a, {name:b, fromWireType:function(d) {
3091
- var e = G[d >> 2], f = d + 4;
3091
+ var e = K[d >> 2], f = d + 4;
3092
3092
  if (c) {
3093
- for (var g = f, k = 0; k <= e; ++k) {
3094
- var n = f + k;
3095
- if (k == e || 0 == D[n]) {
3096
- g = g ? L(D, g, n - g) : "";
3097
- if (void 0 === m) {
3098
- var m = g;
3093
+ for (var g = f, h = 0; h <= e; ++h) {
3094
+ var m = f + h;
3095
+ if (h == e || 0 == D[m]) {
3096
+ g = g ? L(D, g, m - g) : "";
3097
+ if (void 0 === l) {
3098
+ var l = g;
3099
3099
  } else {
3100
- m += String.fromCharCode(0), m += g;
3100
+ l += String.fromCharCode(0), l += g;
3101
3101
  }
3102
- g = n + 1;
3102
+ g = m + 1;
3103
3103
  }
3104
3104
  }
3105
3105
  } else {
3106
- m = Array(e);
3107
- for (k = 0; k < e; ++k) {
3108
- m[k] = String.fromCharCode(D[f + k]);
3106
+ l = Array(e);
3107
+ for (h = 0; h < e; ++h) {
3108
+ l[h] = String.fromCharCode(D[f + h]);
3109
3109
  }
3110
- m = m.join("");
3110
+ l = l.join("");
3111
3111
  }
3112
- lc(d);
3113
- return m;
3112
+ kc(d);
3113
+ return l;
3114
3114
  }, toWireType:function(d, e) {
3115
3115
  e instanceof ArrayBuffer && (e = new Uint8Array(e));
3116
3116
  var f = "string" == typeof e;
3117
3117
  if (!(f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array)) {
3118
3118
  throw new P("Cannot pass non-string to std::string");
3119
3119
  }
3120
- var g = c && f ? fb(e) : e.length;
3121
- var k = Ud(4 + g + 1), n = k + 4;
3122
- G[k >> 2] = g;
3120
+ var g = c && f ? eb(e) : e.length;
3121
+ var h = Td(4 + g + 1), m = h + 4;
3122
+ K[h >> 2] = g;
3123
3123
  if (c && f) {
3124
- gb(e, D, n, g + 1);
3124
+ fb(e, D, m, g + 1);
3125
3125
  } else {
3126
3126
  if (f) {
3127
3127
  for (f = 0; f < g; ++f) {
3128
- var m = e.charCodeAt(f);
3129
- if (255 < m) {
3130
- throw lc(n), new P("String has UTF-16 code units that do not fit in 8 bits");
3128
+ var l = e.charCodeAt(f);
3129
+ if (255 < l) {
3130
+ throw kc(m), new P("String has UTF-16 code units that do not fit in 8 bits");
3131
3131
  }
3132
- D[n + f] = m;
3132
+ D[m + f] = l;
3133
3133
  }
3134
3134
  } else {
3135
3135
  for (f = 0; f < g; ++f) {
3136
- D[n + f] = e[f];
3136
+ D[m + f] = e[f];
3137
3137
  }
3138
3138
  }
3139
3139
  }
3140
- null !== d && d.push(lc, k);
3141
- return k;
3142
- }, argPackAdvance:8, readValueFromPointer:yc, L(d) {
3143
- lc(d);
3140
+ null !== d && d.push(kc, h);
3141
+ return h;
3142
+ }, argPackAdvance:8, readValueFromPointer:xc, I(d) {
3143
+ kc(d);
3144
3144
  },});
3145
3145
  }, _embind_register_std_wstring:(a, b, c) => {
3146
3146
  c = R(c);
3147
3147
  if (2 === b) {
3148
- var d = gd;
3149
- var e = hd;
3150
- var f = jd;
3151
- var g = k => wa[k >> 1];
3148
+ var d = fd;
3149
+ var e = gd;
3150
+ var f = hd;
3151
+ var g = h => va[h >> 1];
3152
3152
  } else {
3153
- 4 === b && (d = kd, e = ld, f = md, g = k => G[k >> 2]);
3153
+ 4 === b && (d = jd, e = kd, f = ld, g = h => K[h >> 2]);
3154
3154
  }
3155
- S(a, {name:c, fromWireType:k => {
3156
- for (var n = G[k >> 2], m, t = k + 4, v = 0; v <= n; ++v) {
3157
- var x = k + 4 + v * b;
3158
- if (v == n || 0 == g(x)) {
3159
- t = d(t, x - t), void 0 === m ? m = t : (m += String.fromCharCode(0), m += t), t = x + b;
3155
+ S(a, {name:c, fromWireType:h => {
3156
+ for (var m = K[h >> 2], l, r = h + 4, u = 0; u <= m; ++u) {
3157
+ var w = h + 4 + u * b;
3158
+ if (u == m || 0 == g(w)) {
3159
+ r = d(r, w - r), void 0 === l ? l = r : (l += String.fromCharCode(0), l += r), r = w + b;
3160
3160
  }
3161
3161
  }
3162
- lc(k);
3163
- return m;
3164
- }, toWireType:(k, n) => {
3165
- if ("string" != typeof n) {
3162
+ kc(h);
3163
+ return l;
3164
+ }, toWireType:(h, m) => {
3165
+ if ("string" != typeof m) {
3166
3166
  throw new P(`Cannot pass non-string to C++ string type ${c}`);
3167
3167
  }
3168
- var m = f(n), t = Ud(4 + m + b);
3169
- G[t >> 2] = m / b;
3170
- e(n, t + 4, m + b);
3171
- null !== k && k.push(lc, t);
3172
- return t;
3173
- }, argPackAdvance:8, readValueFromPointer:yc, L(k) {
3174
- lc(k);
3168
+ var l = f(m), r = Td(4 + l + b);
3169
+ K[r >> 2] = l / b;
3170
+ e(m, r + 4, l + b);
3171
+ null !== h && h.push(kc, r);
3172
+ return r;
3173
+ }, argPackAdvance:8, readValueFromPointer:xc, I(h) {
3174
+ kc(h);
3175
3175
  }});
3176
3176
  }, _embind_register_value_object:(a, b, c, d, e, f) => {
3177
- wc[a] = {name:R(b), Ua:U(c, d), O:U(e, f), fb:[],};
3178
- }, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, n, m) => {
3179
- wc[a].fb.push({Nb:R(b), Tb:c, Rb:U(d, e), Sb:f, fc:g, ec:U(k, n), hc:m,});
3177
+ vc[a] = {name:R(b), Na:U(c, d), L:U(e, f), Xa:[],};
3178
+ }, _embind_register_value_object_field:(a, b, c, d, e, f, g, h, m, l) => {
3179
+ vc[a].Xa.push({Db:R(b), Jb:c, Hb:U(d, e), Ib:f, Wb:g, Vb:U(h, m), Xb:l,});
3180
3180
  }, _embind_register_void:(a, b) => {
3181
3181
  b = R(b);
3182
- S(a, {Jc:!0, name:b, argPackAdvance:0, fromWireType:() => {
3182
+ S(a, {yc:!0, name:b, argPackAdvance:0, fromWireType:() => {
3183
3183
  }, toWireType:() => {
3184
3184
  },});
3185
3185
  }, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => D.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
3186
3186
  throw Infinity;
3187
3187
  }, _emval_as:(a, b, c) => {
3188
3188
  a = Q(a);
3189
- b = nc(b, "emval::as");
3190
- return nd(b, c, a);
3189
+ b = mc(b, "emval::as");
3190
+ return md(b, c, a);
3191
3191
  }, _emval_call:(a, b, c, d) => {
3192
- a = od[a];
3192
+ a = nd[a];
3193
3193
  b = Q(b);
3194
3194
  return a(null, b, c, d);
3195
3195
  }, _emval_call_method:(a, b, c, d, e) => {
3196
- a = od[a];
3196
+ a = nd[a];
3197
3197
  b = Q(b);
3198
- c = qd(c);
3198
+ c = pd(c);
3199
3199
  return a(b, b[c], d, e);
3200
- }, _emval_decref:ad, _emval_get_method_caller:(a, b, c) => {
3201
- var d = sd(a, b), e = d.shift();
3200
+ }, _emval_decref:$c, _emval_get_method_caller:(a, b, c) => {
3201
+ var d = rd(a, b), e = d.shift();
3202
3202
  a--;
3203
3203
  var f = Array(a);
3204
3204
  b = `methodCaller<(${d.map(g => g.name).join(", ")}) => ${e.name}>`;
3205
- return rd(Zb(b, (g, k, n, m) => {
3206
- for (var t = 0, v = 0; v < a; ++v) {
3207
- f[v] = d[v].readValueFromPointer(m + t), t += d[v].argPackAdvance;
3205
+ return qd(Yb(b, (g, h, m, l) => {
3206
+ for (var r = 0, u = 0; u < a; ++u) {
3207
+ f[u] = d[u].readValueFromPointer(l + r), r += d[u].argPackAdvance;
3208
3208
  }
3209
- g = 1 === c ? td(k, f) : k.apply(g, f);
3210
- return nd(e, n, g);
3209
+ g = 1 === c ? sd(h, f) : h.apply(g, f);
3210
+ return md(e, m, g);
3211
3211
  }));
3212
3212
  }, _emval_get_property:(a, b) => {
3213
3213
  a = Q(a);
3214
3214
  b = Q(b);
3215
- return ac(a[b]);
3215
+ return $b(a[b]);
3216
3216
  }, _emval_incref:a => {
3217
3217
  9 < a && (O[a + 1] += 1);
3218
- }, _emval_new_array:() => ac([]), _emval_new_cstring:a => ac(qd(a)), _emval_new_object:() => ac({}), _emval_run_destructors:a => {
3218
+ }, _emval_new_array:() => $b([]), _emval_new_cstring:a => $b(pd(a)), _emval_new_object:() => $b({}), _emval_run_destructors:a => {
3219
3219
  var b = Q(a);
3220
- xc(b);
3221
- ad(a);
3220
+ wc(b);
3221
+ $c(a);
3222
3222
  }, _emval_set_property:(a, b, c) => {
3223
3223
  a = Q(a);
3224
3224
  b = Q(b);
3225
3225
  c = Q(c);
3226
3226
  a[b] = c;
3227
3227
  }, _emval_take_value:(a, b) => {
3228
- a = nc(a, "_emval_take_value");
3228
+ a = mc(a, "_emval_take_value");
3229
3229
  a = a.readValueFromPointer(b);
3230
- return ac(a);
3230
+ return $b(a);
3231
3231
  }, _gmtime_js:function(a, b, c) {
3232
3232
  a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
3233
3233
  F[c >> 2] = a.getUTCSeconds();
@@ -3247,7 +3247,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3247
3247
  F[c + 16 >> 2] = a.getMonth();
3248
3248
  F[c + 20 >> 2] = a.getFullYear() - 1900;
3249
3249
  F[c + 24 >> 2] = a.getDay();
3250
- F[c + 28 >> 2] = (ud(a.getFullYear()) ? vd : wd)[a.getMonth()] + a.getDate() - 1 | 0;
3250
+ F[c + 28 >> 2] = (td(a.getFullYear()) ? ud : vd)[a.getMonth()] + a.getDate() - 1 | 0;
3251
3251
  F[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
3252
3252
  b = (new Date(a.getFullYear(), 6, 1)).getTimezoneOffset();
3253
3253
  var d = (new Date(a.getFullYear(), 0, 1)).getTimezoneOffset();
@@ -3255,40 +3255,40 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3255
3255
  }, _tzset_js:(a, b, c, d) => {
3256
3256
  var e = (new Date()).getFullYear(), f = new Date(e, 0, 1), g = new Date(e, 6, 1);
3257
3257
  e = f.getTimezoneOffset();
3258
- var k = g.getTimezoneOffset();
3259
- G[a >> 2] = 60 * Math.max(e, k);
3260
- F[b >> 2] = Number(e != k);
3261
- a = n => n.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
3258
+ var h = g.getTimezoneOffset();
3259
+ K[a >> 2] = 60 * Math.max(e, h);
3260
+ F[b >> 2] = Number(e != h);
3261
+ a = m => m.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
3262
3262
  f = a(f);
3263
3263
  g = a(g);
3264
- k < e ? (gb(f, D, c, 17), gb(g, D, d, 17)) : (gb(f, D, d, 17), gb(g, D, c, 17));
3264
+ h < e ? (fb(f, D, c, 17), fb(g, D, d, 17)) : (fb(f, D, d, 17), fb(g, D, c, 17));
3265
3265
  }, beginPixelLocalStorageWEBGL:function(a, b, c) {
3266
- (a = w[a].F.Ea) && a.beginPixelLocalStorageWEBGL(l.HEAPU32.subarray(c, c + b));
3266
+ (a = v[a].C.za) && a.beginPixelLocalStorageWEBGL(k.HEAPU32.subarray(c, c + b));
3267
3267
  }, decode_image:function(a, b, c) {
3268
- var d = l.images;
3269
- d || (d = new Map(), l.images = d);
3268
+ var d = k.images;
3269
+ d || (d = new Map(), k.images = d);
3270
3270
  var e = new Image();
3271
3271
  d.set(a, e);
3272
- b = l.HEAP8.subarray(b, b + c);
3272
+ b = k.HEAP8.subarray(b, b + c);
3273
3273
  c = new Uint8Array(c);
3274
3274
  c.set(b);
3275
3275
  e.src = URL.createObjectURL(new Blob([c], {type:"image/png"}));
3276
3276
  e.onload = function() {
3277
- l._setWebImage(a, e.width, e.height);
3277
+ k._setWebImage(a, e.width, e.height);
3278
3278
  };
3279
3279
  }, delete_image:function(a) {
3280
- var b = l.images;
3280
+ var b = k.images;
3281
3281
  b && b.get(a) && b.delete(a);
3282
3282
  }, emscripten_asm_const_int:(a, b, c) => {
3283
- xd.length = 0;
3283
+ wd.length = 0;
3284
3284
  for (var d; d = D[b++];) {
3285
3285
  var e = 105 != d;
3286
3286
  e &= 112 != d;
3287
3287
  c += e && c % 8 ? 4 : 0;
3288
- xd.push(112 == d ? G[c >> 2] : 105 == d ? F[c >> 2] : ya[c >> 3]);
3288
+ wd.push(112 == d ? K[c >> 2] : 105 == d ? F[c >> 2] : xa[c >> 3]);
3289
3289
  c += e ? 8 : 4;
3290
3290
  }
3291
- return Ta[a](...xd);
3291
+ return Sa[a](...wd);
3292
3292
  }, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_resize_heap:a => {
3293
3293
  var b = D.length;
3294
3294
  a >>>= 0;
@@ -3301,10 +3301,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3301
3301
  var e = Math;
3302
3302
  d = Math.max(a, d);
3303
3303
  a: {
3304
- e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - ua.buffer.byteLength + 65535) / 65536;
3304
+ e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - ta.buffer.byteLength + 65535) / 65536;
3305
3305
  try {
3306
- ua.grow(e);
3307
- za();
3306
+ ta.grow(e);
3307
+ ya();
3308
3308
  var f = 1;
3309
3309
  break a;
3310
3310
  } catch (g) {
@@ -3317,122 +3317,122 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3317
3317
  }
3318
3318
  return !1;
3319
3319
  }, emscripten_webgl_enable_extension:(a, b) => {
3320
- a = w[a];
3320
+ a = v[a];
3321
3321
  b = b ? L(D, b) : "";
3322
3322
  b.startsWith("GL_") && (b = b.substr(3));
3323
- "WEBGL_draw_instanced_base_vertex_base_instance" == b && yd(W);
3324
- "WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && zd(W);
3325
- "WEBGL_multi_draw" == b && (W.ac = W.getExtension("WEBGL_multi_draw"));
3326
- return !!a.F.getExtension(b);
3327
- }, emscripten_webgl_get_current_context:() => q ? q.handle : 0, emscripten_webgl_make_context_current:a => ka(a) ? 0 : -5, enable_WEBGL_provoking_vertex:function(a) {
3328
- a = w[a].F;
3329
- a.qb = a.getExtension("WEBGL_provoking_vertex");
3330
- return !!a.qb;
3323
+ "WEBGL_draw_instanced_base_vertex_base_instance" == b && xd(W);
3324
+ "WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && yd(W);
3325
+ "WEBGL_multi_draw" == b && (W.Rb = W.getExtension("WEBGL_multi_draw"));
3326
+ return !!a.C.getExtension(b);
3327
+ }, emscripten_webgl_get_current_context:() => p ? p.handle : 0, emscripten_webgl_make_context_current:a => ka(a) ? 0 : -5, enable_WEBGL_provoking_vertex:function(a) {
3328
+ a = v[a].C;
3329
+ a.ib = a.getExtension("WEBGL_provoking_vertex");
3330
+ return !!a.ib;
3331
3331
  }, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
3332
- a = w[a].F;
3332
+ a = v[a].C;
3333
3333
  const b = a.getExtension("WEBGL_shader_pixel_local_storage");
3334
3334
  if (b && b.isCoherent()) {
3335
3335
  if (5 == b.framebufferTexturePixelLocalStorageWEBGL.length) {
3336
- return a.Ea = b, !0;
3336
+ return a.za = b, !0;
3337
3337
  }
3338
3338
  console.warn("WEBGL_shader_pixel_local_storage is advertised, but a deprecated version has been detected. Disabling.");
3339
3339
  }
3340
3340
  return !1;
3341
3341
  }, endPixelLocalStorageWEBGL:function(a, b, c) {
3342
- (a = w[a].F.Ea) && a.endPixelLocalStorageWEBGL(l.HEAPU32.subarray(c, c + b));
3342
+ (a = v[a].C.za) && a.endPixelLocalStorageWEBGL(k.HEAPU32.subarray(c, c + b));
3343
3343
  }, environ_get:(a, b) => {
3344
3344
  var c = 0;
3345
- Qd().forEach((d, e) => {
3345
+ Pd().forEach((d, e) => {
3346
3346
  var f = b + c;
3347
- e = G[a + 4 * e >> 2] = f;
3347
+ e = K[a + 4 * e >> 2] = f;
3348
3348
  for (f = 0; f < d.length; ++f) {
3349
- B[e++] = d.charCodeAt(f);
3349
+ C[e++] = d.charCodeAt(f);
3350
3350
  }
3351
- B[e] = 0;
3351
+ C[e] = 0;
3352
3352
  c += d.length + 1;
3353
3353
  });
3354
3354
  return 0;
3355
3355
  }, environ_sizes_get:(a, b) => {
3356
- var c = Qd();
3357
- G[a >> 2] = c.length;
3356
+ var c = Pd();
3357
+ K[a >> 2] = c.length;
3358
3358
  var d = 0;
3359
3359
  c.forEach(e => d += e.length + 1);
3360
- G[b >> 2] = d;
3360
+ K[b >> 2] = d;
3361
3361
  return 0;
3362
3362
  }, fd_close:function(a) {
3363
3363
  try {
3364
- var b = Kb(a);
3365
- if (null === b.W) {
3364
+ var b = Jb(a);
3365
+ if (null === b.T) {
3366
3366
  throw new M(8);
3367
3367
  }
3368
- b.Ra && (b.Ra = null);
3368
+ b.Ka && (b.Ka = null);
3369
3369
  try {
3370
- b.m.close && b.m.close(b);
3370
+ b.l.close && b.l.close(b);
3371
3371
  } catch (c) {
3372
3372
  throw c;
3373
3373
  } finally {
3374
- xb[b.W] = null;
3374
+ wb[b.T] = null;
3375
3375
  }
3376
- b.W = null;
3376
+ b.T = null;
3377
3377
  return 0;
3378
3378
  } catch (c) {
3379
- if ("undefined" == typeof Yb || "ErrnoError" !== c.name) {
3379
+ if ("undefined" == typeof Xb || "ErrnoError" !== c.name) {
3380
3380
  throw c;
3381
3381
  }
3382
- return c.aa;
3382
+ return c.Y;
3383
3383
  }
3384
3384
  }, fd_read:function(a, b, c, d) {
3385
3385
  try {
3386
3386
  a: {
3387
- var e = Kb(a);
3387
+ var e = Jb(a);
3388
3388
  a = b;
3389
3389
  for (var f, g = b = 0; g < c; g++) {
3390
- var k = G[a >> 2], n = G[a + 4 >> 2];
3390
+ var h = K[a >> 2], m = K[a + 4 >> 2];
3391
3391
  a += 8;
3392
- var m = e, t = f, v = B;
3393
- if (0 > n || 0 > t) {
3392
+ var l = e, r = f, u = C;
3393
+ if (0 > m || 0 > r) {
3394
3394
  throw new M(28);
3395
3395
  }
3396
- if (null === m.W) {
3396
+ if (null === l.T) {
3397
3397
  throw new M(8);
3398
3398
  }
3399
- if (1 === (m.flags & 2097155)) {
3399
+ if (1 === (l.flags & 2097155)) {
3400
3400
  throw new M(8);
3401
3401
  }
3402
- if (16384 === (m.node.mode & 61440)) {
3402
+ if (16384 === (l.node.mode & 61440)) {
3403
3403
  throw new M(31);
3404
3404
  }
3405
- if (!m.m.read) {
3405
+ if (!l.l.read) {
3406
3406
  throw new M(28);
3407
3407
  }
3408
- var x = "undefined" != typeof t;
3409
- if (!x) {
3410
- t = m.position;
3411
- } else if (!m.seekable) {
3408
+ var w = "undefined" != typeof r;
3409
+ if (!w) {
3410
+ r = l.position;
3411
+ } else if (!l.seekable) {
3412
3412
  throw new M(70);
3413
3413
  }
3414
- var p = m.m.read(m, v, k, n, t);
3415
- x || (m.position += p);
3416
- var r = p;
3417
- if (0 > r) {
3418
- var u = -1;
3414
+ var n = l.l.read(l, u, h, m, r);
3415
+ w || (l.position += n);
3416
+ var q = n;
3417
+ if (0 > q) {
3418
+ var t = -1;
3419
3419
  break a;
3420
3420
  }
3421
- b += r;
3422
- if (r < n) {
3421
+ b += q;
3422
+ if (q < m) {
3423
3423
  break;
3424
3424
  }
3425
- "undefined" != typeof f && (f += r);
3425
+ "undefined" != typeof f && (f += q);
3426
3426
  }
3427
- u = b;
3427
+ t = b;
3428
3428
  }
3429
- G[d >> 2] = u;
3429
+ K[d >> 2] = t;
3430
3430
  return 0;
3431
- } catch (z) {
3432
- if ("undefined" == typeof Yb || "ErrnoError" !== z.name) {
3433
- throw z;
3431
+ } catch (y) {
3432
+ if ("undefined" == typeof Xb || "ErrnoError" !== y.name) {
3433
+ throw y;
3434
3434
  }
3435
- return z.aa;
3435
+ return y.Y;
3436
3436
  }
3437
3437
  }, fd_seek:function(a, b, c, d, e) {
3438
3438
  b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
@@ -3440,123 +3440,123 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3440
3440
  if (isNaN(b)) {
3441
3441
  return 61;
3442
3442
  }
3443
- var f = Kb(a);
3444
- Ub(f, b, d);
3445
- Pa = [f.position >>> 0, (Oa = f.position, 1.0 <= +Math.abs(Oa) ? 0.0 < Oa ? +Math.floor(Oa / 4294967296.0) >>> 0 : ~~+Math.ceil((Oa - +(~~Oa >>> 0)) / 4294967296.0) >>> 0 : 0)];
3446
- F[e >> 2] = Pa[0];
3447
- F[e + 4 >> 2] = Pa[1];
3448
- f.Ra && 0 === b && 0 === d && (f.Ra = null);
3443
+ var f = Jb(a);
3444
+ Tb(f, b, d);
3445
+ Oa = [f.position >>> 0, (Na = f.position, 1.0 <= +Math.abs(Na) ? 0.0 < Na ? +Math.floor(Na / 4294967296.0) >>> 0 : ~~+Math.ceil((Na - +(~~Na >>> 0)) / 4294967296.0) >>> 0 : 0)];
3446
+ F[e >> 2] = Oa[0];
3447
+ F[e + 4 >> 2] = Oa[1];
3448
+ f.Ka && 0 === b && 0 === d && (f.Ka = null);
3449
3449
  return 0;
3450
3450
  } catch (g) {
3451
- if ("undefined" == typeof Yb || "ErrnoError" !== g.name) {
3451
+ if ("undefined" == typeof Xb || "ErrnoError" !== g.name) {
3452
3452
  throw g;
3453
3453
  }
3454
- return g.aa;
3454
+ return g.Y;
3455
3455
  }
3456
3456
  }, fd_write:function(a, b, c, d) {
3457
3457
  try {
3458
3458
  a: {
3459
- var e = Kb(a);
3459
+ var e = Jb(a);
3460
3460
  a = b;
3461
3461
  for (var f, g = b = 0; g < c; g++) {
3462
- var k = G[a >> 2], n = G[a + 4 >> 2];
3462
+ var h = K[a >> 2], m = K[a + 4 >> 2];
3463
3463
  a += 8;
3464
- var m = e, t = k, v = n, x = f, p = B;
3465
- if (0 > v || 0 > x) {
3464
+ var l = e, r = h, u = m, w = f, n = C;
3465
+ if (0 > u || 0 > w) {
3466
3466
  throw new M(28);
3467
3467
  }
3468
- if (null === m.W) {
3468
+ if (null === l.T) {
3469
3469
  throw new M(8);
3470
3470
  }
3471
- if (0 === (m.flags & 2097155)) {
3471
+ if (0 === (l.flags & 2097155)) {
3472
3472
  throw new M(8);
3473
3473
  }
3474
- if (16384 === (m.node.mode & 61440)) {
3474
+ if (16384 === (l.node.mode & 61440)) {
3475
3475
  throw new M(31);
3476
3476
  }
3477
- if (!m.m.write) {
3477
+ if (!l.l.write) {
3478
3478
  throw new M(28);
3479
3479
  }
3480
- m.seekable && m.flags & 1024 && Ub(m, 0, 2);
3481
- var r = "undefined" != typeof x;
3482
- if (!r) {
3483
- x = m.position;
3484
- } else if (!m.seekable) {
3480
+ l.seekable && l.flags & 1024 && Tb(l, 0, 2);
3481
+ var q = "undefined" != typeof w;
3482
+ if (!q) {
3483
+ w = l.position;
3484
+ } else if (!l.seekable) {
3485
3485
  throw new M(70);
3486
3486
  }
3487
- var u = m.m.write(m, p, t, v, x, void 0);
3488
- r || (m.position += u);
3489
- var z = u;
3490
- if (0 > z) {
3491
- var A = -1;
3487
+ var t = l.l.write(l, n, r, u, w, void 0);
3488
+ q || (l.position += t);
3489
+ var y = t;
3490
+ if (0 > y) {
3491
+ var z = -1;
3492
3492
  break a;
3493
3493
  }
3494
- b += z;
3495
- "undefined" != typeof f && (f += z);
3494
+ b += y;
3495
+ "undefined" != typeof f && (f += y);
3496
3496
  }
3497
- A = b;
3497
+ z = b;
3498
3498
  }
3499
- G[d >> 2] = A;
3499
+ K[d >> 2] = z;
3500
3500
  return 0;
3501
- } catch (C) {
3502
- if ("undefined" == typeof Yb || "ErrnoError" !== C.name) {
3503
- throw C;
3501
+ } catch (B) {
3502
+ if ("undefined" == typeof Xb || "ErrnoError" !== B.name) {
3503
+ throw B;
3504
3504
  }
3505
- return C.aa;
3505
+ return B.Y;
3506
3506
  }
3507
3507
  }, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
3508
- (a = w[a].F.Ea) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
3508
+ (a = v[a].C.za) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
3509
3509
  }, framebufferTexturePixelLocalStorageWEBGL:function(a, b, c, d, e, f) {
3510
- (a = w[a].F.Ea) && a.framebufferTexturePixelLocalStorageWEBGL(b, Fd[c], d, e, f);
3510
+ (a = v[a].C.za) && a.framebufferTexturePixelLocalStorageWEBGL(b, Ed[c], d, e, f);
3511
3511
  }, glActiveTexture:a => W.activeTexture(a), glAttachShader:(a, b) => {
3512
- W.attachShader(V[a], Gd[b]);
3512
+ W.attachShader(V[a], Fd[b]);
3513
3513
  }, glBindBuffer:(a, b) => {
3514
- 35051 == a ? W.Pa = b : 35052 == a && (W.sa = b);
3515
- W.bindBuffer(a, Cd[b]);
3514
+ 35051 == a ? W.Ja = b : 35052 == a && (W.oa = b);
3515
+ W.bindBuffer(a, Bd[b]);
3516
3516
  }, glBindBufferRange:(a, b, c, d, e) => {
3517
- W.bindBufferRange(a, b, Cd[c], d, e);
3517
+ W.bindBufferRange(a, b, Bd[c], d, e);
3518
3518
  }, glBindFramebuffer:(a, b) => {
3519
- W.bindFramebuffer(a, Dd[b]);
3519
+ W.bindFramebuffer(a, Cd[b]);
3520
3520
  }, glBindRenderbuffer:(a, b) => {
3521
- W.bindRenderbuffer(a, Ed[b]);
3521
+ W.bindRenderbuffer(a, Dd[b]);
3522
3522
  }, glBindTexture:(a, b) => {
3523
- W.bindTexture(a, Fd[b]);
3523
+ W.bindTexture(a, Ed[b]);
3524
3524
  }, glBindVertexArray:a => {
3525
- W.bindVertexArray(Hd[a]);
3526
- }, glBlendEquation:a => W.blendEquation(a), glBlendFunc:(a, b) => W.blendFunc(a, b), glBlitFramebuffer:(a, b, c, d, e, f, g, k, n, m) => W.blitFramebuffer(a, b, c, d, e, f, g, k, n, m), glBufferData:(a, b, c, d) => {
3525
+ W.bindVertexArray(Gd[a]);
3526
+ }, glBlendEquation:a => W.blendEquation(a), glBlendFunc:(a, b) => W.blendFunc(a, b), glBlitFramebuffer:(a, b, c, d, e, f, g, h, m, l) => W.blitFramebuffer(a, b, c, d, e, f, g, h, m, l), glBufferData:(a, b, c, d) => {
3527
3527
  c && b ? W.bufferData(a, D, d, c, b) : W.bufferData(a, b, d);
3528
3528
  }, glBufferSubData:(a, b, c, d) => {
3529
3529
  c && W.bufferSubData(a, b, D, d, c);
3530
3530
  }, glClear:a => W.clear(a), glClearBufferfv:(a, b, c) => {
3531
- W.clearBufferfv(a, b, xa, c >> 2);
3531
+ W.clearBufferfv(a, b, wa, c >> 2);
3532
3532
  }, glClearBufferuiv:(a, b, c) => {
3533
- W.clearBufferuiv(a, b, G, c >> 2);
3533
+ W.clearBufferuiv(a, b, K, c >> 2);
3534
3534
  }, glClearColor:(a, b, c, d) => W.clearColor(a, b, c, d), glClearDepthf:a => W.clearDepth(a), glClearStencil:a => W.clearStencil(a), glColorMask:(a, b, c, d) => {
3535
3535
  W.colorMask(!!a, !!b, !!c, !!d);
3536
3536
  }, glCompileShader:a => {
3537
- W.compileShader(Gd[a]);
3538
- }, glCompressedTexSubImage2D:(a, b, c, d, e, f, g, k, n) => {
3539
- W.sa || !k ? W.compressedTexSubImage2D(a, b, c, d, e, f, g, k, n) : W.compressedTexSubImage2D(a, b, c, d, e, f, g, D, n, k);
3537
+ W.compileShader(Fd[a]);
3538
+ }, glCompressedTexSubImage2D:(a, b, c, d, e, f, g, h, m) => {
3539
+ W.oa || !h ? W.compressedTexSubImage2D(a, b, c, d, e, f, g, h, m) : W.compressedTexSubImage2D(a, b, c, d, e, f, g, D, m, h);
3540
3540
  }, glCreateProgram:() => {
3541
- var a = Ld(V), b = W.createProgram();
3541
+ var a = Kd(V), b = W.createProgram();
3542
3542
  b.name = a;
3543
- b.Aa = b.ya = b.za = 0;
3544
- b.Xa = 1;
3543
+ b.wa = b.ua = b.va = 0;
3544
+ b.Qa = 1;
3545
3545
  V[a] = b;
3546
3546
  return a;
3547
3547
  }, glCreateShader:a => {
3548
- var b = Ld(Gd);
3549
- Gd[b] = W.createShader(a);
3548
+ var b = Kd(Fd);
3549
+ Fd[b] = W.createShader(a);
3550
3550
  return b;
3551
3551
  }, glCullFace:a => W.cullFace(a), glDeleteBuffers:(a, b) => {
3552
3552
  for (var c = 0; c < a; c++) {
3553
- var d = F[b + 4 * c >> 2], e = Cd[d];
3554
- e && (W.deleteBuffer(e), e.name = 0, Cd[d] = null, d == W.Pa && (W.Pa = 0), d == W.sa && (W.sa = 0));
3553
+ var d = F[b + 4 * c >> 2], e = Bd[d];
3554
+ e && (W.deleteBuffer(e), e.name = 0, Bd[d] = null, d == W.Ja && (W.Ja = 0), d == W.oa && (W.oa = 0));
3555
3555
  }
3556
3556
  }, glDeleteFramebuffers:(a, b) => {
3557
3557
  for (var c = 0; c < a; ++c) {
3558
- var d = F[b + 4 * c >> 2], e = Dd[d];
3559
- e && (W.deleteFramebuffer(e), e.name = 0, Dd[d] = null);
3558
+ var d = F[b + 4 * c >> 2], e = Cd[d];
3559
+ e && (W.deleteFramebuffer(e), e.name = 0, Cd[d] = null);
3560
3560
  }
3561
3561
  }, glDeleteProgram:a => {
3562
3562
  if (a) {
@@ -3565,24 +3565,24 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3565
3565
  }
3566
3566
  }, glDeleteRenderbuffers:(a, b) => {
3567
3567
  for (var c = 0; c < a; c++) {
3568
- var d = F[b + 4 * c >> 2], e = Ed[d];
3569
- e && (W.deleteRenderbuffer(e), e.name = 0, Ed[d] = null);
3568
+ var d = F[b + 4 * c >> 2], e = Dd[d];
3569
+ e && (W.deleteRenderbuffer(e), e.name = 0, Dd[d] = null);
3570
3570
  }
3571
3571
  }, glDeleteShader:a => {
3572
3572
  if (a) {
3573
- var b = Gd[a];
3574
- b ? (W.deleteShader(b), Gd[a] = null) : X ||= 1281;
3573
+ var b = Fd[a];
3574
+ b ? (W.deleteShader(b), Fd[a] = null) : X ||= 1281;
3575
3575
  }
3576
3576
  }, glDeleteTextures:(a, b) => {
3577
3577
  for (var c = 0; c < a; c++) {
3578
- var d = F[b + 4 * c >> 2], e = Fd[d];
3579
- e && (W.deleteTexture(e), e.name = 0, Fd[d] = null);
3578
+ var d = F[b + 4 * c >> 2], e = Ed[d];
3579
+ e && (W.deleteTexture(e), e.name = 0, Ed[d] = null);
3580
3580
  }
3581
3581
  }, glDeleteVertexArrays:(a, b) => {
3582
3582
  for (var c = 0; c < a; c++) {
3583
3583
  var d = F[b + 4 * c >> 2];
3584
- W.deleteVertexArray(Hd[d]);
3585
- Hd[d] = null;
3584
+ W.deleteVertexArray(Gd[d]);
3585
+ Gd[d] = null;
3586
3586
  }
3587
3587
  }, glDepthFunc:a => W.depthFunc(a), glDepthMask:a => {
3588
3588
  W.depthMask(!!a);
@@ -3591,7 +3591,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3591
3591
  }, glDrawArraysInstanced:(a, b, c, d) => {
3592
3592
  W.drawArraysInstanced(a, b, c, d);
3593
3593
  }, glDrawBuffers:(a, b) => {
3594
- for (var c = Rd[a], d = 0; d < a; d++) {
3594
+ for (var c = Qd[a], d = 0; d < a; d++) {
3595
3595
  c[d] = F[b + 4 * d >> 2];
3596
3596
  }
3597
3597
  W.drawBuffers(c);
@@ -3602,47 +3602,47 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3602
3602
  }, glEnable:a => W.enable(a), glEnableVertexAttribArray:a => {
3603
3603
  W.enableVertexAttribArray(a);
3604
3604
  }, glFlush:() => W.flush(), glFramebufferRenderbuffer:(a, b, c, d) => {
3605
- W.framebufferRenderbuffer(a, b, c, Ed[d]);
3605
+ W.framebufferRenderbuffer(a, b, c, Dd[d]);
3606
3606
  }, glFramebufferTexture2D:(a, b, c, d, e) => {
3607
- W.framebufferTexture2D(a, b, c, Fd[d], e);
3607
+ W.framebufferTexture2D(a, b, c, Ed[d], e);
3608
3608
  }, glFrontFace:a => W.frontFace(a), glGenBuffers:(a, b) => {
3609
- Md(a, b, "createBuffer", Cd);
3609
+ Ld(a, b, "createBuffer", Bd);
3610
3610
  }, glGenFramebuffers:(a, b) => {
3611
- Md(a, b, "createFramebuffer", Dd);
3611
+ Ld(a, b, "createFramebuffer", Cd);
3612
3612
  }, glGenRenderbuffers:(a, b) => {
3613
- Md(a, b, "createRenderbuffer", Ed);
3613
+ Ld(a, b, "createRenderbuffer", Dd);
3614
3614
  }, glGenTextures:(a, b) => {
3615
- Md(a, b, "createTexture", Fd);
3615
+ Ld(a, b, "createTexture", Ed);
3616
3616
  }, glGenVertexArrays:(a, b) => {
3617
- Md(a, b, "createVertexArray", Hd);
3618
- }, glGenerateMipmap:a => W.generateMipmap(a), glGetIntegerv:(a, b) => Td(a, b), glGetProgramiv:(a, b, c) => {
3617
+ Ld(a, b, "createVertexArray", Gd);
3618
+ }, glGenerateMipmap:a => W.generateMipmap(a), glGetIntegerv:(a, b) => Sd(a, b), glGetProgramiv:(a, b, c) => {
3619
3619
  if (c) {
3620
- if (a >= Bd) {
3620
+ if (a >= Ad) {
3621
3621
  X ||= 1281;
3622
3622
  } else {
3623
3623
  if (a = V[a], 35716 == b) {
3624
3624
  a = W.getProgramInfoLog(a), null === a && (a = "(unknown error)"), F[c >> 2] = a.length + 1;
3625
3625
  } else if (35719 == b) {
3626
- if (!a.Aa) {
3626
+ if (!a.wa) {
3627
3627
  for (b = 0; b < W.getProgramParameter(a, 35718); ++b) {
3628
- a.Aa = Math.max(a.Aa, W.getActiveUniform(a, b).name.length + 1);
3628
+ a.wa = Math.max(a.wa, W.getActiveUniform(a, b).name.length + 1);
3629
3629
  }
3630
3630
  }
3631
- F[c >> 2] = a.Aa;
3631
+ F[c >> 2] = a.wa;
3632
3632
  } else if (35722 == b) {
3633
- if (!a.ya) {
3633
+ if (!a.ua) {
3634
3634
  for (b = 0; b < W.getProgramParameter(a, 35721); ++b) {
3635
- a.ya = Math.max(a.ya, W.getActiveAttrib(a, b).name.length + 1);
3635
+ a.ua = Math.max(a.ua, W.getActiveAttrib(a, b).name.length + 1);
3636
3636
  }
3637
3637
  }
3638
- F[c >> 2] = a.ya;
3638
+ F[c >> 2] = a.ua;
3639
3639
  } else if (35381 == b) {
3640
- if (!a.za) {
3640
+ if (!a.va) {
3641
3641
  for (b = 0; b < W.getProgramParameter(a, 35382); ++b) {
3642
- a.za = Math.max(a.za, W.getActiveUniformBlockName(a, b).length + 1);
3642
+ a.va = Math.max(a.va, W.getActiveUniformBlockName(a, b).length + 1);
3643
3643
  }
3644
3644
  }
3645
- F[c >> 2] = a.za;
3645
+ F[c >> 2] = a.va;
3646
3646
  } else {
3647
3647
  F[c >> 2] = W.getProgramParameter(a, b);
3648
3648
  }
@@ -3651,59 +3651,59 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3651
3651
  X ||= 1281;
3652
3652
  }
3653
3653
  }, glGetString:a => {
3654
- var b = Id[a];
3654
+ var b = Hd[a];
3655
3655
  if (!b) {
3656
3656
  switch(a) {
3657
3657
  case 7939:
3658
- b = Vd(Sd().join(" "));
3658
+ b = Ud(Rd().join(" "));
3659
3659
  break;
3660
3660
  case 7936:
3661
3661
  case 7937:
3662
3662
  case 37445:
3663
3663
  case 37446:
3664
3664
  (b = W.getParameter(a)) || (X ||= 1280);
3665
- b = b ? Vd(b) : 0;
3665
+ b = b ? Ud(b) : 0;
3666
3666
  break;
3667
3667
  case 7938:
3668
- b = Vd(`OpenGL ES 3.0 (${W.getParameter(7938)})`);
3668
+ b = Ud(`OpenGL ES 3.0 (${W.getParameter(7938)})`);
3669
3669
  break;
3670
3670
  case 35724:
3671
3671
  b = W.getParameter(35724);
3672
3672
  var c = b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);
3673
3673
  null !== c && (3 == c[1].length && (c[1] += "0"), b = `OpenGL ES GLSL ES ${c[1]} (${b})`);
3674
- b = Vd(b);
3674
+ b = Ud(b);
3675
3675
  break;
3676
3676
  default:
3677
3677
  X ||= 1280;
3678
3678
  }
3679
- Id[a] = b;
3679
+ Hd[a] = b;
3680
3680
  }
3681
3681
  return b;
3682
3682
  }, glGetUniformBlockIndex:(a, b) => W.getUniformBlockIndex(V[a], b ? L(D, b) : ""), glGetUniformLocation:(a, b) => {
3683
3683
  b = b ? L(D, b) : "";
3684
3684
  if (a = V[a]) {
3685
- var c = a, d = c.na, e = c.xb, f;
3685
+ var c = a, d = c.ja, e = c.ob, f;
3686
3686
  if (!d) {
3687
- for (c.na = d = {}, c.wb = {}, f = 0; f < W.getProgramParameter(c, 35718); ++f) {
3687
+ for (c.ja = d = {}, c.nb = {}, f = 0; f < W.getProgramParameter(c, 35718); ++f) {
3688
3688
  var g = W.getActiveUniform(c, f);
3689
- var k = g.name;
3689
+ var h = g.name;
3690
3690
  g = g.size;
3691
- var n = Wd(k);
3692
- n = 0 < n ? k.slice(0, n) : k;
3693
- var m = c.Xa;
3694
- c.Xa += g;
3695
- e[n] = [g, m];
3696
- for (k = 0; k < g; ++k) {
3697
- d[m] = k, c.wb[m++] = n;
3691
+ var m = Vd(h);
3692
+ m = 0 < m ? h.slice(0, m) : h;
3693
+ var l = c.Qa;
3694
+ c.Qa += g;
3695
+ e[m] = [g, l];
3696
+ for (h = 0; h < g; ++h) {
3697
+ d[l] = h, c.nb[l++] = m;
3698
3698
  }
3699
3699
  }
3700
3700
  }
3701
- c = a.na;
3701
+ c = a.ja;
3702
3702
  d = 0;
3703
3703
  e = b;
3704
- f = Wd(b);
3704
+ f = Vd(b);
3705
3705
  0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
3706
- if ((e = a.xb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || W.getUniformLocation(a, b))) {
3706
+ if ((e = a.ob[e]) && d < e[0] && (d += e[1], c[d] = c[d] || W.getUniformLocation(a, b))) {
3707
3707
  return d;
3708
3708
  }
3709
3709
  } else {
@@ -3711,57 +3711,57 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
3711
3711
  }
3712
3712
  return -1;
3713
3713
  }, glInvalidateFramebuffer:(a, b, c) => {
3714
- for (var d = Rd[b], e = 0; e < b; e++) {
3714
+ for (var d = Qd[b], e = 0; e < b; e++) {
3715
3715
  d[e] = F[c + 4 * e >> 2];
3716
3716
  }
3717
3717
  W.invalidateFramebuffer(a, d);
3718
3718
  }, glLinkProgram:a => {
3719
3719
  a = V[a];
3720
3720
  W.linkProgram(a);
3721
- a.na = 0;
3722
- a.xb = {};
3721
+ a.ja = 0;
3722
+ a.ob = {};
3723
3723
  }, glPixelStorei:(a, b) => {
3724
- 3317 == a ? Jd = b : 3314 == a && (Kd = b);
3724
+ 3317 == a ? Id = b : 3314 == a && (Jd = b);
3725
3725
  W.pixelStorei(a, b);
3726
3726
  }, glReadPixels:(a, b, c, d, e, f, g) => {
3727
- if (W.Pa) {
3727
+ if (W.Ja) {
3728
3728
  W.readPixels(a, b, c, d, e, f, g);
3729
3729
  } else {
3730
- var k = Xd(f);
3731
- g >>>= 31 - Math.clz32(k.BYTES_PER_ELEMENT);
3732
- W.readPixels(a, b, c, d, e, f, k, g);
3730
+ var h = Wd(f);
3731
+ g >>>= 31 - Math.clz32(h.BYTES_PER_ELEMENT);
3732
+ W.readPixels(a, b, c, d, e, f, h, g);
3733
3733
  }
3734
3734
  }, glRenderbufferStorageMultisample:(a, b, c, d, e) => W.renderbufferStorageMultisample(a, b, c, d, e), glScissor:(a, b, c, d) => W.scissor(a, b, c, d), glShaderSource:(a, b, c, d) => {
3735
3735
  for (var e = "", f = 0; f < b; ++f) {
3736
- var g = (g = G[c + 4 * f >> 2]) ? L(D, g, d ? G[d + 4 * f >> 2] : void 0) : "";
3736
+ var g = (g = K[c + 4 * f >> 2]) ? L(D, g, d ? K[d + 4 * f >> 2] : void 0) : "";
3737
3737
  e += g;
3738
3738
  }
3739
- W.shaderSource(Gd[a], e);
3739
+ W.shaderSource(Fd[a], e);
3740
3740
  }, glStencilFunc:(a, b, c) => W.stencilFunc(a, b, c), glStencilFuncSeparate:(a, b, c, d) => W.stencilFuncSeparate(a, b, c, d), glStencilMask:a => W.stencilMask(a), glStencilOp:(a, b, c) => W.stencilOp(a, b, c), glStencilOpSeparate:(a, b, c, d) => W.stencilOpSeparate(a, b, c, d), glTexParameteri:(a, b, c) => W.texParameteri(a, b, c), glTexStorage2D:(a, b, c, d, e) => W.texStorage2D(a, b, c, d, e), glTexStorage3D:(a, b, c, d, e, f) => W.texStorage3D(a, b, c, d, e, f), glTexSubImage2D:(a, b, c, d, e,
3741
- f, g, k, n) => {
3742
- if (W.sa) {
3743
- W.texSubImage2D(a, b, c, d, e, f, g, k, n);
3741
+ f, g, h, m) => {
3742
+ if (W.oa) {
3743
+ W.texSubImage2D(a, b, c, d, e, f, g, h, m);
3744
3744
  } else {
3745
- if (n) {
3746
- var m = Xd(k);
3747
- W.texSubImage2D(a, b, c, d, e, f, g, k, m, n >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT));
3745
+ if (m) {
3746
+ var l = Wd(h);
3747
+ W.texSubImage2D(a, b, c, d, e, f, g, h, l, m >>> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
3748
3748
  } else {
3749
- if (n) {
3750
- m = Xd(k);
3751
- var t = f * ((Kd || e) * ({5:3, 6:4, 8:2, 29502:3, 29504:4, 26917:2, 26918:2, 29846:3, 29847:4}[g - 6402] || 1) * m.BYTES_PER_ELEMENT + Jd - 1 & -Jd);
3752
- n = m.subarray(n >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT), n + t >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT));
3749
+ if (m) {
3750
+ l = Wd(h);
3751
+ var r = f * ((Jd || e) * ({5:3, 6:4, 8:2, 29502:3, 29504:4, 26917:2, 26918:2, 29846:3, 29847:4}[g - 6402] || 1) * l.BYTES_PER_ELEMENT + Id - 1 & -Id);
3752
+ m = l.subarray(m >>> 31 - Math.clz32(l.BYTES_PER_ELEMENT), m + r >>> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
3753
3753
  } else {
3754
- n = null;
3754
+ m = null;
3755
3755
  }
3756
- W.texSubImage2D(a, b, c, d, e, f, g, k, n);
3756
+ W.texSubImage2D(a, b, c, d, e, f, g, h, m);
3757
3757
  }
3758
3758
  }
3759
3759
  }, glUniform1i:(a, b) => {
3760
3760
  var c = W, d = c.uniform1i;
3761
- var e = W.Jb;
3761
+ var e = W.zb;
3762
3762
  if (e) {
3763
- var f = e.na[a];
3764
- "number" == typeof f && (e.na[a] = f = W.getUniformLocation(e, e.wb[a] + (0 < f ? `[${f}]` : "")));
3763
+ var f = e.ja[a];
3764
+ "number" == typeof f && (e.ja[a] = f = W.getUniformLocation(e, e.nb[a] + (0 < f ? `[${f}]` : "")));
3765
3765
  a = f;
3766
3766
  } else {
3767
3767
  X ||= 1282, a = void 0;
@@ -3773,141 +3773,141 @@ f, g, k, n) => {
3773
3773
  }, glUseProgram:a => {
3774
3774
  a = V[a];
3775
3775
  W.useProgram(a);
3776
- W.Jb = a;
3776
+ W.zb = a;
3777
3777
  }, glVertexAttribDivisor:(a, b) => {
3778
3778
  W.vertexAttribDivisor(a, b);
3779
3779
  }, glVertexAttribIPointer:(a, b, c, d, e) => {
3780
3780
  W.vertexAttribIPointer(a, b, c, d, e);
3781
3781
  }, glVertexAttribPointer:(a, b, c, d, e, f) => {
3782
3782
  W.vertexAttribPointer(a, b, c, !!d, e, f);
3783
- }, glViewport:(a, b, c, d) => W.viewport(a, b, c, d), invoke_vii:de, isWindowsBrowser:function() {
3783
+ }, glViewport:(a, b, c, d) => W.viewport(a, b, c, d), invoke_vii:ce, isWindowsBrowser:function() {
3784
3784
  return -1 < navigator.platform.indexOf("Win");
3785
3785
  }, provokingVertexWEBGL:function(a, b) {
3786
- (a = w[a].F.qb) && a.provokingVertexWEBGL(b);
3787
- }, strftime:$d, strftime_l:(a, b, c, d) => $d(a, b, c, d), upload_image:function(a, b) {
3788
- var c = l.images;
3789
- c && (b = c.get(b)) && (a = w[a].F, a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b), a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1));
3786
+ (a = v[a].C.ib) && a.provokingVertexWEBGL(b);
3787
+ }, strftime:Zd, strftime_l:(a, b, c, d) => Zd(a, b, c, d), upload_image:function(a, b) {
3788
+ var c = k.images;
3789
+ c && (b = c.get(b)) && (a = v[a].C, a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b), a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1));
3790
3790
  }, wasm_start_image_decode:function(a, b, c) {
3791
- b = l.HEAP8.subarray(b, b + c);
3791
+ b = k.HEAP8.subarray(b, b + c);
3792
3792
  c = new Uint8Array(c);
3793
3793
  c.set(b);
3794
3794
  createImageBitmap(new Blob([c])).then(function(d) {
3795
3795
  var e = (new OffscreenCanvas(d.width, d.height)).getContext("2d");
3796
3796
  e.drawImage(d, 0, 0);
3797
3797
  e = e.getImageData(0, 0, d.width, d.height);
3798
- var f = e.data.length, g = l.Db(f);
3799
- l.pc.set(e.data, g);
3800
- l.rc(a, d.width, d.height, g, f);
3798
+ var f = e.data.length, g = k.tb(f);
3799
+ k.dc.set(e.data, g);
3800
+ k.fc(a, d.width, d.height, g, f);
3801
3801
  }).catch(function(d) {
3802
3802
  d = d.message || "decode failed";
3803
- var e = l.Kc(d) + 1, f = l.Db(e);
3804
- l.Sc(d, f, e);
3805
- l.sc(a, f);
3806
- l.qc(f);
3803
+ var e = k.zc(d) + 1, f = k.tb(e);
3804
+ k.Hc(d, f, e);
3805
+ k.hc(a, f);
3806
+ k.ec(f);
3807
3807
  });
3808
- }}, Y = function() {
3808
+ }}, Z = function() {
3809
3809
  function a(c) {
3810
- Y = c.exports;
3811
- ua = Y.memory;
3812
- za();
3813
- Qc = Y.__indirect_function_table;
3814
- Ba.unshift(Y.__wasm_call_ctors);
3815
- Ea--;
3816
- l.monitorRunDependencies?.(Ea);
3817
- 0 == Ea && (null !== Fa && (clearInterval(Fa), Fa = null), Ga && (c = Ga, Ga = null, c()));
3818
- return Y;
3819
- }
3820
- var b = {env:ee, wasi_snapshot_preview1:ee,};
3821
- Ea++;
3822
- l.monitorRunDependencies?.(Ea);
3823
- if (l.instantiateWasm) {
3810
+ Z = c.exports;
3811
+ ta = Z.memory;
3812
+ ya();
3813
+ Pc = Z.__indirect_function_table;
3814
+ Aa.unshift(Z.__wasm_call_ctors);
3815
+ Da--;
3816
+ k.monitorRunDependencies?.(Da);
3817
+ 0 == Da && (null !== Ea && (clearInterval(Ea), Ea = null), Fa && (c = Fa, Fa = null, c()));
3818
+ return Z;
3819
+ }
3820
+ var b = {env:de, wasi_snapshot_preview1:de,};
3821
+ Da++;
3822
+ k.monitorRunDependencies?.(Da);
3823
+ if (k.instantiateWasm) {
3824
3824
  try {
3825
- return l.instantiateWasm(b, a);
3825
+ return k.instantiateWasm(b, a);
3826
3826
  } catch (c) {
3827
- sa(`Module.instantiateWasm callback failed with error: ${c}`), ba(c);
3827
+ A(`Module.instantiateWasm callback failed with error: ${c}`), ba(c);
3828
3828
  }
3829
3829
  }
3830
- Ja ||= Ia("webgl2_advanced.wasm") ? "webgl2_advanced.wasm" : l.locateFile ? l.locateFile("webgl2_advanced.wasm", y) : y + "webgl2_advanced.wasm";
3831
- Na(b, function(c) {
3830
+ Ia ||= Ha("webgl2_advanced.wasm") ? "webgl2_advanced.wasm" : k.locateFile ? k.locateFile("webgl2_advanced.wasm", x) : x + "webgl2_advanced.wasm";
3831
+ Ma(b, function(c) {
3832
3832
  a(c.instance);
3833
3833
  }).catch(ba);
3834
3834
  return {};
3835
- }(), lc = a => (lc = Y.free)(a), Ud = a => (Ud = Y.malloc)(a);
3836
- l._setWebImage = (a, b, c) => (l._setWebImage = Y.setWebImage)(a, b, c);
3837
- var kc = a => (kc = Y.__getTypeName)(a);
3838
- l._wasm_image_decode_complete = (a, b, c, d, e) => (l._wasm_image_decode_complete = Y.wasm_image_decode_complete)(a, b, c, d, e);
3839
- l._wasm_image_decode_error = (a, b) => (l._wasm_image_decode_error = Y.wasm_image_decode_error)(a, b);
3840
- var Qa = l._ma_device__on_notification_unlocked = a => (Qa = l._ma_device__on_notification_unlocked = Y.ma_device__on_notification_unlocked)(a);
3841
- l._ma_malloc_emscripten = (a, b) => (l._ma_malloc_emscripten = Y.ma_malloc_emscripten)(a, b);
3842
- l._ma_free_emscripten = (a, b) => (l._ma_free_emscripten = Y.ma_free_emscripten)(a, b);
3843
- var Ra = l._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ra = l._ma_device_process_pcm_frames_capture__webaudio = Y.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Sa = l._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Sa = l._ma_device_process_pcm_frames_playback__webaudio = Y.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), fe = (a, b) => (fe = Y.setThrew)(a, b), ge = a => (ge = Y._emscripten_stack_restore)(a), he = () => (he = Y.emscripten_stack_get_current)();
3844
- l.dynCall_iiiji = (a, b, c, d, e, f) => (l.dynCall_iiiji = Y.dynCall_iiiji)(a, b, c, d, e, f);
3845
- l.dynCall_iij = (a, b, c, d) => (l.dynCall_iij = Y.dynCall_iij)(a, b, c, d);
3846
- l.dynCall_iiji = (a, b, c, d, e) => (l.dynCall_iiji = Y.dynCall_iiji)(a, b, c, d, e);
3847
- l.dynCall_jii = (a, b, c) => (l.dynCall_jii = Y.dynCall_jii)(a, b, c);
3848
- l.dynCall_vijj = (a, b, c, d, e, f) => (l.dynCall_vijj = Y.dynCall_vijj)(a, b, c, d, e, f);
3849
- l.dynCall_jiji = (a, b, c, d, e) => (l.dynCall_jiji = Y.dynCall_jiji)(a, b, c, d, e);
3850
- l.dynCall_viijii = (a, b, c, d, e, f, g) => (l.dynCall_viijii = Y.dynCall_viijii)(a, b, c, d, e, f, g);
3851
- l.dynCall_iiiiij = (a, b, c, d, e, f, g) => (l.dynCall_iiiiij = Y.dynCall_iiiiij)(a, b, c, d, e, f, g);
3852
- l.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, n) => (l.dynCall_iiiiijj = Y.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, n);
3853
- l.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, n, m) => (l.dynCall_iiiiiijj = Y.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, n, m);
3854
- function de(a, b, c) {
3855
- var d = he();
3835
+ }(), kc = a => (kc = Z.free)(a), Td = a => (Td = Z.malloc)(a);
3836
+ k._setWebImage = (a, b, c) => (k._setWebImage = Z.setWebImage)(a, b, c);
3837
+ var jc = a => (jc = Z.__getTypeName)(a);
3838
+ k._wasm_image_decode_complete = (a, b, c, d, e) => (k._wasm_image_decode_complete = Z.wasm_image_decode_complete)(a, b, c, d, e);
3839
+ k._wasm_image_decode_error = (a, b) => (k._wasm_image_decode_error = Z.wasm_image_decode_error)(a, b);
3840
+ var Pa = k._ma_device__on_notification_unlocked = a => (Pa = k._ma_device__on_notification_unlocked = Z.ma_device__on_notification_unlocked)(a);
3841
+ k._ma_malloc_emscripten = (a, b) => (k._ma_malloc_emscripten = Z.ma_malloc_emscripten)(a, b);
3842
+ k._ma_free_emscripten = (a, b) => (k._ma_free_emscripten = Z.ma_free_emscripten)(a, b);
3843
+ var Qa = k._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Qa = k._ma_device_process_pcm_frames_capture__webaudio = Z.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Ra = k._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Ra = k._ma_device_process_pcm_frames_playback__webaudio = Z.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), ee = (a, b) => (ee = Z.setThrew)(a, b), fe = a => (fe = Z._emscripten_stack_restore)(a), ge = () => (ge = Z.emscripten_stack_get_current)();
3844
+ k.dynCall_iiiji = (a, b, c, d, e, f) => (k.dynCall_iiiji = Z.dynCall_iiiji)(a, b, c, d, e, f);
3845
+ k.dynCall_iij = (a, b, c, d) => (k.dynCall_iij = Z.dynCall_iij)(a, b, c, d);
3846
+ k.dynCall_iiji = (a, b, c, d, e) => (k.dynCall_iiji = Z.dynCall_iiji)(a, b, c, d, e);
3847
+ k.dynCall_jii = (a, b, c) => (k.dynCall_jii = Z.dynCall_jii)(a, b, c);
3848
+ k.dynCall_vijj = (a, b, c, d, e, f) => (k.dynCall_vijj = Z.dynCall_vijj)(a, b, c, d, e, f);
3849
+ k.dynCall_jiji = (a, b, c, d, e) => (k.dynCall_jiji = Z.dynCall_jiji)(a, b, c, d, e);
3850
+ k.dynCall_viijii = (a, b, c, d, e, f, g) => (k.dynCall_viijii = Z.dynCall_viijii)(a, b, c, d, e, f, g);
3851
+ k.dynCall_iiiiij = (a, b, c, d, e, f, g) => (k.dynCall_iiiiij = Z.dynCall_iiiiij)(a, b, c, d, e, f, g);
3852
+ k.dynCall_iiiiijj = (a, b, c, d, e, f, g, h, m) => (k.dynCall_iiiiijj = Z.dynCall_iiiiijj)(a, b, c, d, e, f, g, h, m);
3853
+ k.dynCall_iiiiiijj = (a, b, c, d, e, f, g, h, m, l) => (k.dynCall_iiiiiijj = Z.dynCall_iiiiiijj)(a, b, c, d, e, f, g, h, m, l);
3854
+ function ce(a, b, c) {
3855
+ var d = ge();
3856
3856
  try {
3857
- Rc(a)(b, c);
3857
+ Qc(a)(b, c);
3858
3858
  } catch (e) {
3859
- ge(d);
3859
+ fe(d);
3860
3860
  if (e !== e + 0) {
3861
3861
  throw e;
3862
3862
  }
3863
- fe(1, 0);
3863
+ ee(1, 0);
3864
3864
  }
3865
3865
  }
3866
- var ie;
3867
- Ga = function je() {
3868
- ie || ke();
3869
- ie || (Ga = je);
3866
+ var he;
3867
+ Fa = function ie() {
3868
+ he || je();
3869
+ he || (Fa = ie);
3870
3870
  };
3871
- function ke() {
3871
+ function je() {
3872
3872
  function a() {
3873
- if (!ie && (ie = !0, l.calledRun = !0, !va)) {
3874
- l.noFSInit || Vb || (Vb = !0, l.stdin = l.stdin, l.stdout = l.stdout, l.stderr = l.stderr, l.stdin ? Wb("stdin", l.stdin) : Rb("/dev/tty", "/dev/stdin"), l.stdout ? Wb("stdout", null, l.stdout) : Rb("/dev/tty", "/dev/stdout"), l.stderr ? Wb("stderr", null, l.stderr) : Rb("/dev/tty1", "/dev/stderr"), Sb("/dev/stdin", 0), Sb("/dev/stdout", 1), Sb("/dev/stderr", 1));
3875
- Ab = !1;
3876
- Ua(Ba);
3877
- aa(l);
3878
- if (l.onRuntimeInitialized) {
3879
- l.onRuntimeInitialized();
3873
+ if (!he && (he = !0, k.calledRun = !0, !ua)) {
3874
+ k.noFSInit || Ub || (Ub = !0, k.stdin = k.stdin, k.stdout = k.stdout, k.stderr = k.stderr, k.stdin ? Vb("stdin", k.stdin) : Qb("/dev/tty", "/dev/stdin"), k.stdout ? Vb("stdout", null, k.stdout) : Qb("/dev/tty", "/dev/stdout"), k.stderr ? Vb("stderr", null, k.stderr) : Qb("/dev/tty1", "/dev/stderr"), Rb("/dev/stdin", 0), Rb("/dev/stdout", 1), Rb("/dev/stderr", 1));
3875
+ zb = !1;
3876
+ Ta(Aa);
3877
+ aa(k);
3878
+ if (k.onRuntimeInitialized) {
3879
+ k.onRuntimeInitialized();
3880
3880
  }
3881
- if (l.postRun) {
3882
- for ("function" == typeof l.postRun && (l.postRun = [l.postRun]); l.postRun.length;) {
3883
- var b = l.postRun.shift();
3884
- Ca.unshift(b);
3881
+ if (k.postRun) {
3882
+ for ("function" == typeof k.postRun && (k.postRun = [k.postRun]); k.postRun.length;) {
3883
+ var b = k.postRun.shift();
3884
+ Ba.unshift(b);
3885
3885
  }
3886
3886
  }
3887
- Ua(Ca);
3887
+ Ta(Ba);
3888
3888
  }
3889
3889
  }
3890
- if (!(0 < Ea)) {
3891
- if (l.preRun) {
3892
- for ("function" == typeof l.preRun && (l.preRun = [l.preRun]); l.preRun.length;) {
3893
- Da();
3890
+ if (!(0 < Da)) {
3891
+ if (k.preRun) {
3892
+ for ("function" == typeof k.preRun && (k.preRun = [k.preRun]); k.preRun.length;) {
3893
+ Ca();
3894
3894
  }
3895
3895
  }
3896
- Ua(Aa);
3897
- 0 < Ea || (l.setStatus ? (l.setStatus("Running..."), setTimeout(function() {
3896
+ Ta(za);
3897
+ 0 < Da || (k.setStatus ? (k.setStatus("Running..."), setTimeout(function() {
3898
3898
  setTimeout(function() {
3899
- l.setStatus("");
3899
+ k.setStatus("");
3900
3900
  }, 1);
3901
3901
  a();
3902
3902
  }, 1)) : a());
3903
3903
  }
3904
3904
  }
3905
- if (l.preInit) {
3906
- for ("function" == typeof l.preInit && (l.preInit = [l.preInit]); 0 < l.preInit.length;) {
3907
- l.preInit.pop()();
3905
+ if (k.preInit) {
3906
+ for ("function" == typeof k.preInit && (k.preInit = [k.preInit]); 0 < k.preInit.length;) {
3907
+ k.preInit.pop()();
3908
3908
  }
3909
3909
  }
3910
- ke();
3910
+ je();
3911
3911
  moduleRtn = ca;
3912
3912
 
3913
3913
 
@@ -3923,7 +3923,7 @@ moduleRtn = ca;
3923
3923
  /* 5 */
3924
3924
  /***/ ((module) => {
3925
3925
 
3926
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.38.4","description":"Rive\'s webgl2 based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive_fallback.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts","runtimeLoader.d.ts","utils"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3926
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.38.5","description":"Rive\'s webgl2 based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive_fallback.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts","runtimeLoader.d.ts","utils"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3927
3927
 
3928
3928
  /***/ }),
3929
3929
  /* 6 */