@rive-app/canvas 2.14.4 → 2.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/rive.js CHANGED
@@ -26,17 +26,17 @@ var Rive = (() => {
26
26
  return (
27
27
  function(moduleArg = {}) {
28
28
 
29
- var m = moduleArg, aa, ba;
30
- m.ready = new Promise((a, b) => {
29
+ var n = moduleArg, aa, ba;
30
+ n.ready = new Promise((a, b) => {
31
31
  aa = a;
32
32
  ba = b;
33
33
  });
34
34
  function ca() {
35
35
  function a(g) {
36
- const n = d;
36
+ const m = d;
37
37
  c = b = 0;
38
38
  d = new Map();
39
- n.forEach(p => {
39
+ m.forEach(p => {
40
40
  try {
41
41
  p(g);
42
42
  } catch (l) {
@@ -49,9 +49,9 @@ function ca() {
49
49
  let b = 0, c = 0, d = new Map(), e = null, f = null;
50
50
  this.requestAnimationFrame = function(g) {
51
51
  b || (b = requestAnimationFrame(a.bind(this)));
52
- const n = ++c;
53
- d.set(n, g);
54
- return n;
52
+ const m = ++c;
53
+ d.set(m, g);
54
+ return m;
55
55
  };
56
56
  this.cancelAnimationFrame = function(g) {
57
57
  d.delete(g);
@@ -59,14 +59,14 @@ function ca() {
59
59
  };
60
60
  this.Wb = function(g) {
61
61
  f && (document.body.remove(f), f = null);
62
- g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(n) {
63
- f.innerHTML = "RIVE FPS " + n.toFixed(1);
62
+ g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(m) {
63
+ f.innerHTML = "RIVE FPS " + m.toFixed(1);
64
64
  }, document.body.appendChild(f));
65
65
  e = new function() {
66
- let n = 0, p = 0;
66
+ let m = 0, p = 0;
67
67
  this.Yb = function() {
68
68
  var l = performance.now();
69
- p ? (++n, l -= p, 1000 < l && (g(1000 * n / l), n = p = 0)) : (p = l, n = 0);
69
+ p ? (++m, l -= p, 1000 < l && (g(1000 * m / l), m = p = 0)) : (p = l, m = 0);
70
70
  };
71
71
  }();
72
72
  };
@@ -92,55 +92,60 @@ function ha(a) {
92
92
  return c << a;
93
93
  };
94
94
  }
95
- const ia = m.onRuntimeInitialized;
96
- m.onRuntimeInitialized = function() {
95
+ const ia = n.onRuntimeInitialized;
96
+ n.onRuntimeInitialized = function() {
97
97
  ia && ia();
98
- let a = m.decodeFont;
99
- m.decodeFont = function(c, d) {
100
- c = a(c);
101
- d(c);
98
+ let a = n.decodeAudio;
99
+ n.decodeAudio = function(d, e) {
100
+ d = a(d);
101
+ e(d);
102
102
  };
103
- const b = m.FileAssetLoader;
104
- m.ptrToAsset = c => {
105
- let d = m.ptrToFileAsset(c);
106
- return d.isImage ? m.ptrToImageAsset(c) : d.isFont ? m.ptrToFontAsset(c) : d;
103
+ let b = n.decodeFont;
104
+ n.decodeFont = function(d, e) {
105
+ d = b(d);
106
+ e(d);
107
107
  };
108
- m.CustomFileAssetLoader = b.extend("CustomFileAssetLoader", {__construct:function({loadContents:c}) {
108
+ const c = n.FileAssetLoader;
109
+ n.ptrToAsset = d => {
110
+ let e = n.ptrToFileAsset(d);
111
+ return e.isImage ? n.ptrToImageAsset(d) : e.isFont ? n.ptrToFontAsset(d) : e.isAudio ? n.ptrToAudioAsset(d) : e;
112
+ };
113
+ n.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:d}) {
109
114
  this.__parent.__construct.call(this);
110
- this.Hb = c;
111
- }, loadContents:function(c, d) {
112
- c = m.ptrToAsset(c);
113
- return this.Hb(c, d);
115
+ this.Hb = d;
116
+ }, loadContents:function(d, e) {
117
+ d = n.ptrToAsset(d);
118
+ return this.Hb(d, e);
114
119
  },});
115
- m.CDNFileAssetLoader = b.extend("CDNFileAssetLoader", {__construct:function() {
120
+ n.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
116
121
  this.__parent.__construct.call(this);
117
- }, loadContents:function(c) {
118
- let d = m.ptrToAsset(c);
119
- c = d.cdnUuid;
120
- if ("" === c) {
122
+ }, loadContents:function(d) {
123
+ let e = n.ptrToAsset(d);
124
+ d = e.cdnUuid;
125
+ if ("" === d) {
121
126
  return !1;
122
127
  }
123
- (function(e, f) {
124
- var g = new XMLHttpRequest();
125
- g.responseType = "arraybuffer";
126
- g.onreadystatechange = function() {
127
- 4 == g.readyState && 200 == g.status && f(g);
128
+ (function(f, g) {
129
+ var m = new XMLHttpRequest();
130
+ m.responseType = "arraybuffer";
131
+ m.onreadystatechange = function() {
132
+ 4 == m.readyState && 200 == m.status && g(m);
128
133
  };
129
- g.open("GET", e, !0);
130
- g.send(null);
131
- })(d.cdnBaseUrl + "/" + c, e => {
132
- d.decode(new Uint8Array(e.response));
134
+ m.open("GET", f, !0);
135
+ m.send(null);
136
+ })(e.cdnBaseUrl + "/" + d, f => {
137
+ e.decode(new Uint8Array(f.response));
133
138
  });
134
139
  return !0;
135
140
  },});
136
- m.FallbackFileAssetLoader = b.extend("FallbackFileAssetLoader", {__construct:function() {
141
+ n.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
137
142
  this.__parent.__construct.call(this);
138
143
  this.lb = [];
139
- }, addLoader:function(c) {
140
- this.lb.push(c);
141
- }, loadContents:function(c, d) {
142
- for (let e of this.lb) {
143
- if (e.loadContents(c, d)) {
144
+ }, addLoader:function(d) {
145
+ this.lb.push(d);
146
+ }, loadContents:function(d, e) {
147
+ for (let f of this.lb) {
148
+ if (f.loadContents(d, e)) {
144
149
  return !0;
145
150
  }
146
151
  }
@@ -219,7 +224,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
219
224
  }
220
225
  return !0;
221
226
  }
222
- let b = null, c = 0, d = 0, e = null, f = null, g = 0, n = 0, p = !1;
227
+ let b = null, c = 0, d = 0, e = null, f = null, g = 0, m = 0, p = !1;
223
228
  a();
224
229
  this.nc = function() {
225
230
  a();
@@ -270,7 +275,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
270
275
  }
271
276
  console.assert(w == 8 * B);
272
277
  w = y.push(E);
273
- n != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), n = w);
278
+ m != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), m = w);
274
279
  V = 0;
275
280
  for (var va of r) {
276
281
  b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, V, va.indices), V += 2 * va.indices.length;
@@ -300,8 +305,8 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
300
305
  this.canvas = function() {
301
306
  return a() && b.canvas;
302
307
  };
303
- }(), la = m.onRuntimeInitialized;
304
- m.onRuntimeInitialized = function() {
308
+ }(), la = n.onRuntimeInitialized;
309
+ n.onRuntimeInitialized = function() {
305
310
  function a(q) {
306
311
  switch(q) {
307
312
  case l.srcOver:
@@ -352,10 +357,10 @@ m.onRuntimeInitialized = function() {
352
357
  E.clear();
353
358
  }
354
359
  la && la();
355
- var d = m.RenderPaintStyle;
356
- const e = m.RenderPath, f = m.RenderPaint, g = m.Renderer, n = m.StrokeCap, p = m.StrokeJoin, l = m.BlendMode, u = d.fill, v = d.stroke, y = m.FillRule.evenOdd;
360
+ var d = n.RenderPaintStyle;
361
+ const e = n.RenderPath, f = n.RenderPaint, g = n.Renderer, m = n.StrokeCap, p = n.StrokeJoin, l = n.BlendMode, u = d.fill, v = d.stroke, y = n.FillRule.evenOdd;
357
362
  let k = 1;
358
- var t = m.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, ya:z} = {}) {
363
+ var t = n.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, ya:z} = {}) {
359
364
  this.__parent.__construct.call(this);
360
365
  this.Ka = k;
361
366
  k = k + 1 & 2147483647 || 1;
@@ -419,13 +424,13 @@ m.onRuntimeInitialized = function() {
419
424
  }
420
425
  }, cap:function(q) {
421
426
  switch(q) {
422
- case n.butt:
427
+ case m.butt:
423
428
  this.Ha = "butt";
424
429
  break;
425
- case n.round:
430
+ case m.round:
426
431
  this.Ha = "round";
427
432
  break;
428
- case n.square:
433
+ case m.square:
429
434
  this.Ha = "square";
430
435
  }
431
436
  }, style:function(q) {
@@ -472,7 +477,7 @@ m.onRuntimeInitialized = function() {
472
477
  },});
473
478
  const E = new Set();
474
479
  let w = null, O = [], V = 0, ea = 0;
475
- var va = m.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
480
+ var va = n.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
476
481
  this.__parent.__construct.call(this);
477
482
  this.T = [1, 0, 0, 1, 0, 0];
478
483
  this.C = q.getContext("2d");
@@ -531,7 +536,7 @@ m.onRuntimeInitialized = function() {
531
536
  S = ka.nc();
532
537
  wa > S && (R *= S / wa, wa = S);
533
538
  xa > S && (fa *= S / xa, xa = S);
534
- w || (w = new m.DynamicRectanizer(S), w.reset(512, 512));
539
+ w || (w = new n.DynamicRectanizer(S), w.reset(512, 512));
535
540
  S = w.addRect(wa, xa);
536
541
  0 > S && (c(), E.add(this), S = w.addRect(wa, xa), console.assert(0 <= S));
537
542
  var ac = S & 65535, bc = S >> 16;
@@ -558,7 +563,7 @@ m.onRuntimeInitialized = function() {
558
563
  }, translate:function(q, z) {
559
564
  this.transform(1, 0, 0, 1, q, z);
560
565
  },});
561
- m.makeRenderer = function(q) {
566
+ n.makeRenderer = function(q) {
562
567
  const z = new va(q), I = z.C;
563
568
  return new Proxy(z, {get(J, D) {
564
569
  if ("function" === typeof J[D]) {
@@ -581,10 +586,10 @@ m.onRuntimeInitialized = function() {
581
586
  }
582
587
  },});
583
588
  };
584
- m.decodeImage = function(q, z) {
589
+ n.decodeImage = function(q, z) {
585
590
  (new t({la:z})).decode(q);
586
591
  };
587
- m.renderFactory = {makeRenderPaint:function() {
592
+ n.renderFactory = {makeRenderPaint:function() {
588
593
  return new B();
589
594
  }, makeRenderPath:function() {
590
595
  return new r();
@@ -600,11 +605,11 @@ m.onRuntimeInitialized = function() {
600
605
  }
601
606
  },});
602
607
  },};
603
- let H = m.load, da = null;
604
- m.load = function(q, z, I = !0) {
605
- const J = new m.FallbackFileAssetLoader();
608
+ let H = n.load, da = null;
609
+ n.load = function(q, z, I = !0) {
610
+ const J = new n.FallbackFileAssetLoader();
606
611
  void 0 !== z && J.addLoader(z);
607
- I && (z = new m.CDNFileAssetLoader(), J.addLoader(z));
612
+ I && (z = new n.CDNFileAssetLoader(), J.addLoader(z));
608
613
  return new Promise(function(D) {
609
614
  let K = null;
610
615
  da = {total:0, loaded:0, ready:function() {
@@ -615,17 +620,17 @@ m.onRuntimeInitialized = function() {
615
620
  });
616
621
  };
617
622
  d = new ca();
618
- m.requestAnimationFrame = d.requestAnimationFrame.bind(d);
619
- m.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
620
- m.enableFPSCounter = d.Wb.bind(d);
621
- m.disableFPSCounter = d.Tb;
623
+ n.requestAnimationFrame = d.requestAnimationFrame.bind(d);
624
+ n.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
625
+ n.enableFPSCounter = d.Wb.bind(d);
626
+ n.disableFPSCounter = d.Tb;
622
627
  d.pb = c;
623
- m.resolveAnimationFrame = c;
624
- m.cleanup = function() {
628
+ n.resolveAnimationFrame = c;
629
+ n.cleanup = function() {
625
630
  w && w.delete();
626
631
  };
627
632
  };
628
- var ma = Object.assign({}, m), na = "./this.program", oa = "object" == typeof window, pa = "function" == typeof importScripts, qa = "", ra, sa;
633
+ var ma = Object.assign({}, n), na = "./this.program", oa = "object" == typeof window, pa = "function" == typeof importScripts, qa = "", ra, sa;
629
634
  if (oa || pa) {
630
635
  pa ? qa = self.location.href : "undefined" != typeof document && document.currentScript && (qa = document.currentScript.src), _scriptDir && (qa = _scriptDir), 0 !== qa.indexOf("blob:") ? qa = qa.substr(0, qa.replace(/[?#].*/, "").lastIndexOf("/") + 1) : qa = "", pa && (sa = a => {
631
636
  var b = new XMLHttpRequest();
@@ -644,35 +649,35 @@ if (oa || pa) {
644
649
  d.send(null);
645
650
  };
646
651
  }
647
- var ta = m.print || console.log.bind(console), ua = m.printErr || console.error.bind(console);
648
- Object.assign(m, ma);
652
+ var ta = n.print || console.log.bind(console), ua = n.printErr || console.error.bind(console);
653
+ Object.assign(n, ma);
649
654
  ma = null;
650
- m.thisProgram && (na = m.thisProgram);
655
+ n.thisProgram && (na = n.thisProgram);
651
656
  var ya;
652
- m.wasmBinary && (ya = m.wasmBinary);
653
- var noExitRuntime = m.noExitRuntime || !0;
657
+ n.wasmBinary && (ya = n.wasmBinary);
658
+ var noExitRuntime = n.noExitRuntime || !0;
654
659
  "object" != typeof WebAssembly && za("no native wasm support detected");
655
660
  var Aa, x, Ba = !1, A, C, Da, Ea, F, G, Fa, Ga;
656
661
  function Ha() {
657
662
  var a = Aa.buffer;
658
- m.HEAP8 = A = new Int8Array(a);
659
- m.HEAP16 = Da = new Int16Array(a);
660
- m.HEAP32 = F = new Int32Array(a);
661
- m.HEAPU8 = C = new Uint8Array(a);
662
- m.HEAPU16 = Ea = new Uint16Array(a);
663
- m.HEAPU32 = G = new Uint32Array(a);
664
- m.HEAPF32 = Fa = new Float32Array(a);
665
- m.HEAPF64 = Ga = new Float64Array(a);
663
+ n.HEAP8 = A = new Int8Array(a);
664
+ n.HEAP16 = Da = new Int16Array(a);
665
+ n.HEAP32 = F = new Int32Array(a);
666
+ n.HEAPU8 = C = new Uint8Array(a);
667
+ n.HEAPU16 = Ea = new Uint16Array(a);
668
+ n.HEAPU32 = G = new Uint32Array(a);
669
+ n.HEAPF32 = Fa = new Float32Array(a);
670
+ n.HEAPF64 = Ga = new Float64Array(a);
666
671
  }
667
672
  var Ka, La = [], Ma = [], Na = [];
668
673
  function Oa() {
669
- var a = m.preRun.shift();
674
+ var a = n.preRun.shift();
670
675
  La.unshift(a);
671
676
  }
672
677
  var Pa = 0, Qa = null, Ra = null;
673
678
  function za(a) {
674
- if (m.onAbort) {
675
- m.onAbort(a);
679
+ if (n.onAbort) {
680
+ n.onAbort(a);
676
681
  }
677
682
  a = "Aborted(" + a + ")";
678
683
  ua(a);
@@ -688,7 +693,7 @@ var Ta;
688
693
  Ta = "canvas_advanced.wasm";
689
694
  if (!Sa(Ta)) {
690
695
  var Ua = Ta;
691
- Ta = m.locateFile ? m.locateFile(Ua, qa) : qa + Ua;
696
+ Ta = n.locateFile ? n.locateFile(Ua, qa) : qa + Ua;
692
697
  }
693
698
  function Va(a) {
694
699
  if (a == Ta && ya) {
@@ -731,7 +736,7 @@ function Ya(a, b) {
731
736
  return Xa(c, a, b);
732
737
  }));
733
738
  }
734
- var N, P, bb = {433388:(a, b, c, d, e) => {
739
+ var N, P, bb = {433788:(a, b, c, d, e) => {
735
740
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
736
741
  return 0;
737
742
  }
@@ -747,9 +752,9 @@ var N, P, bb = {433388:(a, b, c, d, e) => {
747
752
  let f = window.h;
748
753
  f.D = [];
749
754
  f.Gc = function(g) {
750
- for (var n = 0; n < f.D.length; ++n) {
751
- if (null == f.D[n]) {
752
- return f.D[n] = g, n;
755
+ for (var m = 0; m < f.D.length; ++m) {
756
+ if (null == f.D[m]) {
757
+ return f.D[m] = g, m;
753
758
  }
754
759
  }
755
760
  f.D.push(g);
@@ -765,9 +770,9 @@ var N, P, bb = {433388:(a, b, c, d, e) => {
765
770
  }
766
771
  };
767
772
  f.Sc = function(g) {
768
- for (var n = 0; n < f.D.length; ++n) {
769
- if (f.D[n] == g) {
770
- return f.Db(n);
773
+ for (var m = 0; m < f.D.length; ++m) {
774
+ if (f.D[m] == g) {
775
+ return f.Db(m);
771
776
  }
772
777
  }
773
778
  };
@@ -777,9 +782,9 @@ var N, P, bb = {433388:(a, b, c, d, e) => {
777
782
  f.Cb = ["touchend", "click"];
778
783
  f.unlock = function() {
779
784
  for (var g = 0; g < f.D.length; ++g) {
780
- var n = f.D[g];
781
- null != n && null != n.I && n.state === f.ga.yb && n.I.resume().then(() => {
782
- Za(n.qb);
785
+ var m = f.D[g];
786
+ null != m && null != m.I && m.state === f.ga.yb && m.I.resume().then(() => {
787
+ Za(m.qb);
783
788
  }, p => {
784
789
  console.error("Failed to resume audiocontext", p);
785
790
  });
@@ -794,9 +799,9 @@ var N, P, bb = {433388:(a, b, c, d, e) => {
794
799
  }
795
800
  window.h.Aa += 1;
796
801
  return 1;
797
- }, 435566:() => {
802
+ }, 435966:() => {
798
803
  "undefined" !== typeof window.h && (--window.h.Aa, 0 === window.h.Aa && delete window.h);
799
- }, 435730:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 435834:() => {
804
+ }, 436130:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 436234:() => {
800
805
  try {
801
806
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
802
807
  a.close();
@@ -804,13 +809,13 @@ var N, P, bb = {433388:(a, b, c, d, e) => {
804
809
  } catch (c) {
805
810
  return 0;
806
811
  }
807
- }, 436005:(a, b, c, d, e, f) => {
812
+ }, 436405:(a, b, c, d, e, f) => {
808
813
  if ("undefined" === typeof window.h) {
809
814
  return -1;
810
815
  }
811
- var g = {}, n = {};
812
- a == window.h.H.za && 0 != c && (n.sampleRate = c);
813
- g.I = new (window.AudioContext || window.webkitAudioContext)(n);
816
+ var g = {}, m = {};
817
+ a == window.h.H.za && 0 != c && (m.sampleRate = c);
818
+ g.I = new (window.AudioContext || window.webkitAudioContext)(m);
814
819
  g.I.suspend();
815
820
  g.state = window.h.ga.stopped;
816
821
  c = 0;
@@ -850,7 +855,7 @@ var N, P, bb = {433388:(a, b, c, d, e) => {
850
855
  a == window.h.H.za && g.$.connect(g.I.destination);
851
856
  g.qb = f;
852
857
  return window.h.Gc(g);
853
- }, 438882:a => window.h.sa(a).I.sampleRate, 438955:a => {
858
+ }, 439282:a => window.h.sa(a).I.sampleRate, 439355:a => {
854
859
  a = window.h.sa(a);
855
860
  void 0 !== a.$ && (a.$.onaudioprocess = function() {
856
861
  }, a.$.disconnect(), a.$ = void 0);
@@ -858,19 +863,19 @@ var N, P, bb = {433388:(a, b, c, d, e) => {
858
863
  a.I.close();
859
864
  a.I = void 0;
860
865
  a.qb = void 0;
861
- }, 439355:a => {
866
+ }, 439755:a => {
862
867
  window.h.Db(a);
863
- }, 439405:a => {
868
+ }, 439805:a => {
864
869
  a = window.h.sa(a);
865
870
  a.I.resume();
866
871
  a.state = window.h.ga.yb;
867
- }, 439544:a => {
872
+ }, 439944:a => {
868
873
  a = window.h.sa(a);
869
874
  a.I.suspend();
870
875
  a.state = window.h.ga.stopped;
871
876
  }}, cb = a => {
872
877
  for (; 0 < a.length;) {
873
- a.shift()(m);
878
+ a.shift()(n);
874
879
  }
875
880
  }, db = (a, b) => {
876
881
  for (var c = 0, d = a.length - 1; 0 <= d; d--) {
@@ -965,8 +970,8 @@ var kb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, l
965
970
  for (var f = 0; f < a.length; ++f) {
966
971
  var g = a.charCodeAt(f);
967
972
  if (55296 <= g && 57343 >= g) {
968
- var n = a.charCodeAt(++f);
969
- g = 65536 + ((g & 1023) << 10) | n & 1023;
973
+ var m = a.charCodeAt(++f);
974
+ g = 65536 + ((g & 1023) << 10) | m & 1023;
970
975
  }
971
976
  if (127 >= g) {
972
977
  if (c >= d) {
@@ -1029,7 +1034,7 @@ var tb = {open:function(a) {
1029
1034
  for (var e = 0, f = 0; f < d; f++) {
1030
1035
  try {
1031
1036
  var g = a.s.W.ib(a.s);
1032
- } catch (n) {
1037
+ } catch (m) {
1033
1038
  throw new Q(29);
1034
1039
  }
1035
1040
  if (void 0 === g && 0 === e) {
@@ -1504,7 +1509,7 @@ var Cb = null, Db = {}, Eb = [], Fb = 1, Gb = null, Hb = !0, Q = null, zb = {},
1504
1509
  b &= -131713;
1505
1510
  e = Tb({node:e, path:Kb(e), flags:b, seekable:!0, position:0, m:e.m, Hc:[], error:!1});
1506
1511
  e.m.open && e.m.open(e);
1507
- !m.logReadFiles || b & 1 || (Yb || (Yb = {}), a in Yb || (Yb[a] = 1));
1512
+ !n.logReadFiles || b & 1 || (Yb || (Yb = {}), a in Yb || (Yb[a] = 1));
1508
1513
  return e;
1509
1514
  }, ec = (a, b, c) => {
1510
1515
  if (null === a.Z) {
@@ -1540,7 +1545,7 @@ var Cb = null, Db = {}, Eb = [], Fb = 1, Gb = null, Hb = !0, Q = null, zb = {},
1540
1545
  f.seekable = !1;
1541
1546
  }, close:() => {
1542
1547
  c && c.buffer && c.buffer.length && c(10);
1543
- }, read:(f, g, n, p) => {
1548
+ }, read:(f, g, m, p) => {
1544
1549
  for (var l = 0, u = 0; u < p; u++) {
1545
1550
  try {
1546
1551
  var v = b();
@@ -1554,14 +1559,14 @@ var Cb = null, Db = {}, Eb = [], Fb = 1, Gb = null, Hb = !0, Q = null, zb = {},
1554
1559
  break;
1555
1560
  }
1556
1561
  l++;
1557
- g[n + u] = v;
1562
+ g[m + u] = v;
1558
1563
  }
1559
1564
  l && (f.node.timestamp = Date.now());
1560
1565
  return l;
1561
- }, write:(f, g, n, p) => {
1566
+ }, write:(f, g, m, p) => {
1562
1567
  for (var l = 0; l < p; l++) {
1563
1568
  try {
1564
- c(g[n + l]);
1569
+ c(g[m + l]);
1565
1570
  } catch (u) {
1566
1571
  throw new Q(29);
1567
1572
  }
@@ -1723,20 +1728,20 @@ function Sc(a) {
1723
1728
  }
1724
1729
  var Tc = {}, Uc = {};
1725
1730
  function X(a, b, c) {
1726
- function d(n) {
1727
- n = c(n);
1728
- n.length !== a.length && Nc("Mismatched type converter count");
1731
+ function d(m) {
1732
+ m = c(m);
1733
+ m.length !== a.length && Nc("Mismatched type converter count");
1729
1734
  for (var p = 0; p < a.length; ++p) {
1730
- Vc(a[p], n[p]);
1735
+ Vc(a[p], m[p]);
1731
1736
  }
1732
1737
  }
1733
- a.forEach(function(n) {
1734
- Uc[n] = b;
1738
+ a.forEach(function(m) {
1739
+ Uc[m] = b;
1735
1740
  });
1736
1741
  var e = Array(b.length), f = [], g = 0;
1737
- b.forEach((n, p) => {
1738
- Bc.hasOwnProperty(n) ? e[p] = Bc[n] : (f.push(n), Tc.hasOwnProperty(n) || (Tc[n] = []), Tc[n].push(() => {
1739
- e[p] = Bc[n];
1742
+ b.forEach((m, p) => {
1743
+ Bc.hasOwnProperty(m) ? e[p] = Bc[m] : (f.push(m), Tc.hasOwnProperty(m) || (Tc[m] = []), Tc[m].push(() => {
1744
+ e[p] = Bc[m];
1740
1745
  ++g;
1741
1746
  g === f.length && d(e);
1742
1747
  }));
@@ -1793,9 +1798,9 @@ function $c(a, b, c) {
1793
1798
  }
1794
1799
  }
1795
1800
  function ad(a, b, c) {
1796
- m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && U(`Cannot register public name '${a}' twice`), $c(m, a, a), m.hasOwnProperty(c) && U(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), m[a].B[c] = b) : (m[a] = b, void 0 !== c && (m[a].Pc = c));
1801
+ n.hasOwnProperty(a) ? ((void 0 === c || void 0 !== n[a].B && void 0 !== n[a].B[c]) && U(`Cannot register public name '${a}' twice`), $c(n, a, a), n.hasOwnProperty(c) && U(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), n[a].B[c] = b) : (n[a] = b, void 0 !== c && (n[a].Pc = c));
1797
1802
  }
1798
- function bd(a, b, c, d, e, f, g, n) {
1803
+ function bd(a, b, c, d, e, f, g, m) {
1799
1804
  this.name = a;
1800
1805
  this.constructor = b;
1801
1806
  this.O = c;
@@ -1803,7 +1808,7 @@ function bd(a, b, c, d, e, f, g, n) {
1803
1808
  this.A = e;
1804
1809
  this.Zb = f;
1805
1810
  this.oa = g;
1806
- this.Ub = n;
1811
+ this.Ub = m;
1807
1812
  this.rb = [];
1808
1813
  }
1809
1814
  function cd(a, b, c) {
@@ -1878,8 +1883,8 @@ function hd(a, b, c, d) {
1878
1883
  void 0 !== b.A ? this.toWireType = fd : (this.toWireType = d ? dd : gd, this.K = null);
1879
1884
  }
1880
1885
  function jd(a, b, c) {
1881
- m.hasOwnProperty(a) || Nc("Replacing nonexistant public symbol");
1882
- void 0 !== m[a].B && void 0 !== c ? m[a].B[c] = b : (m[a] = b, m[a].ea = c);
1886
+ n.hasOwnProperty(a) || Nc("Replacing nonexistant public symbol");
1887
+ void 0 !== n[a].B && void 0 !== c ? n[a].B[c] = b : (n[a] = b, n[a].ea = c);
1883
1888
  }
1884
1889
  var kd = [], ld = a => {
1885
1890
  var b = kd[a];
@@ -1891,7 +1896,7 @@ var kd = [], ld = a => {
1891
1896
  c.length = 0;
1892
1897
  Object.assign(c, arguments);
1893
1898
  if (a.includes("j")) {
1894
- var d = m["dynCall_" + a];
1899
+ var d = n["dynCall_" + a];
1895
1900
  d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
1896
1901
  } else {
1897
1902
  d = ld(b).apply(null, c);
@@ -1917,10 +1922,10 @@ function od(a, b) {
1917
1922
  function pd(a, b, c, d, e) {
1918
1923
  var f = b.length;
1919
1924
  2 > f && U("argTypes array size mismatch! Must at least get return value and 'this' types!");
1920
- var g = null !== b[1] && null !== c, n = !1;
1925
+ var g = null !== b[1] && null !== c, m = !1;
1921
1926
  for (c = 1; c < b.length; ++c) {
1922
1927
  if (null !== b[c] && void 0 === b[c].K) {
1923
- n = !0;
1928
+ m = !0;
1924
1929
  break;
1925
1930
  }
1926
1931
  }
@@ -1938,7 +1943,7 @@ function pd(a, b, c, d, e) {
1938
1943
  u[t] = b[t + 2].toWireType(y, arguments[t]), v.push(u[t]);
1939
1944
  }
1940
1945
  t = d.apply(null, v);
1941
- if (n) {
1946
+ if (m) {
1942
1947
  Rc(y);
1943
1948
  } else {
1944
1949
  for (var r = g ? 1 : 2; r < b.length; r++) {
@@ -2145,7 +2150,7 @@ var Jd = [], Kd = [], Ld = {}, Nd = () => {
2145
2150
  0 === (B = r(k.getFullYear() - t.getFullYear())) && 0 === (B = r(k.getMonth() - t.getMonth())) && (B = r(k.getDate() - t.getDate()));
2146
2151
  return B;
2147
2152
  }
2148
- function n(k) {
2153
+ function m(k) {
2149
2154
  switch(k.getDay()) {
2150
2155
  case 0:
2151
2156
  return new Date(k.getFullYear() - 1, 11, 29);
@@ -2175,8 +2180,8 @@ var Jd = [], Kd = [], Ld = {}, Nd = () => {
2175
2180
  }
2176
2181
  }
2177
2182
  r = new Date(k.getFullYear() + 1, 0, 4);
2178
- t = n(new Date(k.getFullYear(), 0, 4));
2179
- r = n(r);
2183
+ t = m(new Date(k.getFullYear(), 0, 4));
2184
+ r = m(r);
2180
2185
  return 0 >= g(t, k) ? 0 >= g(r, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
2181
2186
  }
2182
2187
  var l = F[d + 40 >> 2];
@@ -2294,7 +2299,7 @@ Object.assign(oc.prototype, {get(a) {
2294
2299
  this.M[a] = void 0;
2295
2300
  this.hb.push(a);
2296
2301
  }});
2297
- qc = m.BindingError = class extends Error {
2302
+ qc = n.BindingError = class extends Error {
2298
2303
  constructor(a) {
2299
2304
  super(a);
2300
2305
  this.name = "BindingError";
@@ -2302,33 +2307,33 @@ qc = m.BindingError = class extends Error {
2302
2307
  };
2303
2308
  pc.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
2304
2309
  pc.h = pc.M.length;
2305
- m.count_emval_handles = function() {
2310
+ n.count_emval_handles = function() {
2306
2311
  for (var a = 0, b = pc.h; b < pc.M.length; ++b) {
2307
2312
  void 0 !== pc.M[b] && ++a;
2308
2313
  }
2309
2314
  return a;
2310
2315
  };
2311
- uc = m.PureVirtualError = tc("PureVirtualError");
2316
+ uc = n.PureVirtualError = tc("PureVirtualError");
2312
2317
  for (var Sd = Array(256), Td = 0; 256 > Td; ++Td) {
2313
2318
  Sd[Td] = String.fromCharCode(Td);
2314
2319
  }
2315
2320
  vc = Sd;
2316
- m.getInheritedInstanceCount = function() {
2321
+ n.getInheritedInstanceCount = function() {
2317
2322
  return Object.keys(zc).length;
2318
2323
  };
2319
- m.getLiveInheritedInstances = function() {
2324
+ n.getLiveInheritedInstances = function() {
2320
2325
  var a = [], b;
2321
2326
  for (b in zc) {
2322
2327
  zc.hasOwnProperty(b) && a.push(zc[b]);
2323
2328
  }
2324
2329
  return a;
2325
2330
  };
2326
- m.flushPendingDeletes = xc;
2327
- m.setDelayFunction = function(a) {
2331
+ n.flushPendingDeletes = xc;
2332
+ n.setDelayFunction = function(a) {
2328
2333
  yc = a;
2329
2334
  wc.length && yc && yc(xc);
2330
2335
  };
2331
- Mc = m.InternalError = class extends Error {
2336
+ Mc = n.InternalError = class extends Error {
2332
2337
  constructor(a) {
2333
2338
  super(a);
2334
2339
  this.name = "InternalError";
@@ -2416,7 +2421,7 @@ hd.prototype.fromWireType = function(a) {
2416
2421
  var e = Jc(c, this.i, d.i);
2417
2422
  return null === e ? b.call(this) : this.va ? Oc(d.i.O, {u:d, o:e, L:this, G:a,}) : Oc(d.i.O, {u:d, o:e,});
2418
2423
  };
2419
- nd = m.UnboundTypeError = tc("UnboundTypeError");
2424
+ nd = n.UnboundTypeError = tc("UnboundTypeError");
2420
2425
  var Wd = {__syscall_fcntl64:function(a, b, c) {
2421
2426
  kc = c;
2422
2427
  try {
@@ -2482,15 +2487,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2482
2487
  F[b + 28 >> 2] = P[1];
2483
2488
  F[b + 32 >> 2] = 4096;
2484
2489
  F[b + 36 >> 2] = e.Mb;
2485
- var g = e.Kb.getTime(), n = e.rc.getTime(), p = e.Pb.getTime();
2490
+ var g = e.Kb.getTime(), m = e.rc.getTime(), p = e.Pb.getTime();
2486
2491
  P = [Math.floor(g / 1000) >>> 0, (N = Math.floor(g / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
2487
2492
  F[b + 40 >> 2] = P[0];
2488
2493
  F[b + 44 >> 2] = P[1];
2489
2494
  G[b + 48 >> 2] = g % 1000 * 1000;
2490
- P = [Math.floor(n / 1000) >>> 0, (N = Math.floor(n / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
2495
+ P = [Math.floor(m / 1000) >>> 0, (N = Math.floor(m / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
2491
2496
  F[b + 56 >> 2] = P[0];
2492
2497
  F[b + 60 >> 2] = P[1];
2493
- G[b + 64 >> 2] = n % 1000 * 1000;
2498
+ G[b + 64 >> 2] = m % 1000 * 1000;
2494
2499
  P = [Math.floor(p / 1000) >>> 0, (N = Math.floor(p / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
2495
2500
  F[b + 72 >> 2] = P[0];
2496
2501
  F[b + 76 >> 2] = P[1];
@@ -2595,17 +2600,17 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2595
2600
  }
2596
2601
  var g = d ? lc() : 0;
2597
2602
  return dc(b, c, g).Z;
2598
- } catch (n) {
2599
- if ("undefined" == typeof jc || "ErrnoError" !== n.name) {
2600
- throw n;
2603
+ } catch (m) {
2604
+ if ("undefined" == typeof jc || "ErrnoError" !== m.name) {
2605
+ throw m;
2601
2606
  }
2602
- return -n.Y;
2607
+ return -m.Y;
2603
2608
  }
2604
2609
  }, _embind_create_inheriting_constructor:function(a, b, c) {
2605
2610
  a = W(a);
2606
2611
  b = Fc(b, "wrapper");
2607
2612
  c = rc(c);
2608
- var d = [].slice, e = b.i, f = e.O, g = e.A.O, n = e.A.constructor;
2613
+ var d = [].slice, e = b.i, f = e.O, g = e.A.O, m = e.A.constructor;
2609
2614
  a = nc(a, function() {
2610
2615
  e.A.rb.forEach(function(l) {
2611
2616
  if (this[l] === g[l]) {
@@ -2617,7 +2622,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2617
2622
  });
2618
2623
  f.__construct = function() {
2619
2624
  this === f && U("Pass correct 'this' to __construct");
2620
- var l = n.implement.apply(void 0, [this].concat(d.call(arguments)));
2625
+ var l = m.implement.apply(void 0, [this].concat(d.call(arguments)));
2621
2626
  Gc(l);
2622
2627
  var u = l.g;
2623
2628
  l.notifyOnDestruction();
@@ -2645,10 +2650,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2645
2650
  delete Qc[a];
2646
2651
  var c = b.Qa, d = b.X, e = b.fb, f = e.map(g => g.cc).concat(e.map(g => g.zc));
2647
2652
  X([a], f, g => {
2648
- var n = {};
2653
+ var m = {};
2649
2654
  e.forEach((p, l) => {
2650
2655
  var u = g[l], v = p.ac, y = p.bc, k = g[l + e.length], t = p.yc, r = p.Ac;
2651
- n[p.Xb] = {read:B => u.fromWireType(v(y, B)), write:(B, E) => {
2656
+ m[p.Xb] = {read:B => u.fromWireType(v(y, B)), write:(B, E) => {
2652
2657
  var w = [];
2653
2658
  t(r, B, k.toWireType(w, E));
2654
2659
  Rc(w);
@@ -2656,20 +2661,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2656
2661
  });
2657
2662
  return [{name:b.name, fromWireType:function(p) {
2658
2663
  var l = {}, u;
2659
- for (u in n) {
2660
- l[u] = n[u].read(p);
2664
+ for (u in m) {
2665
+ l[u] = m[u].read(p);
2661
2666
  }
2662
2667
  d(p);
2663
2668
  return l;
2664
2669
  }, toWireType:function(p, l) {
2665
- for (var u in n) {
2670
+ for (var u in m) {
2666
2671
  if (!(u in l)) {
2667
2672
  throw new TypeError(`Missing field: "${u}"`);
2668
2673
  }
2669
2674
  }
2670
2675
  var v = c();
2671
- for (u in n) {
2672
- n[u].write(v, l[u]);
2676
+ for (u in m) {
2677
+ m[u].write(v, l[u]);
2673
2678
  }
2674
2679
  null !== p && p.push(d, v);
2675
2680
  return v;
@@ -2681,24 +2686,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2681
2686
  b = W(b);
2682
2687
  Vc(a, {name:b, fromWireType:function(g) {
2683
2688
  return !!g;
2684
- }, toWireType:function(g, n) {
2685
- return n ? d : e;
2689
+ }, toWireType:function(g, m) {
2690
+ return m ? d : e;
2686
2691
  }, argPackAdvance:8, readValueFromPointer:function(g) {
2687
2692
  if (1 === c) {
2688
- var n = A;
2693
+ var m = A;
2689
2694
  } else if (2 === c) {
2690
- n = Da;
2695
+ m = Da;
2691
2696
  } else if (4 === c) {
2692
- n = F;
2697
+ m = F;
2693
2698
  } else {
2694
2699
  throw new TypeError("Unknown boolean type size: " + b);
2695
2700
  }
2696
- return this.fromWireType(n[g >> f]);
2701
+ return this.fromWireType(m[g >> f]);
2697
2702
  }, K:null,});
2698
- }, _embind_register_class:function(a, b, c, d, e, f, g, n, p, l, u, v, y) {
2703
+ }, _embind_register_class:function(a, b, c, d, e, f, g, m, p, l, u, v, y) {
2699
2704
  u = W(u);
2700
2705
  f = Y(e, f);
2701
- n && (n = Y(g, n));
2706
+ m && (m = Y(g, m));
2702
2707
  l && (l = Y(p, l));
2703
2708
  y = Y(v, y);
2704
2709
  var k = mc(u);
@@ -2728,7 +2733,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2728
2733
  });
2729
2734
  var E = Object.create(B, {constructor:{value:t},});
2730
2735
  t.prototype = E;
2731
- var w = new bd(u, t, E, y, r, f, n, l);
2736
+ var w = new bd(u, t, E, y, r, f, m, l);
2732
2737
  w.A && (void 0 === w.A.pa && (w.A.pa = []), w.A.pa.push(w));
2733
2738
  r = new hd(u, w, !0, !1);
2734
2739
  B = new hd(u + "*", w, !1, !1);
@@ -2738,19 +2743,19 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2738
2743
  return [r, B, O];
2739
2744
  });
2740
2745
  }, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
2741
- var n = rd(c, d);
2746
+ var m = rd(c, d);
2742
2747
  b = W(b);
2743
2748
  f = Y(e, f);
2744
2749
  X([], [a], function(p) {
2745
2750
  function l() {
2746
- od(`Cannot call ${u} due to unbound types`, n);
2751
+ od(`Cannot call ${u} due to unbound types`, m);
2747
2752
  }
2748
2753
  p = p[0];
2749
2754
  var u = `${p.name}.${b}`;
2750
2755
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2751
2756
  var v = p.i.constructor;
2752
2757
  void 0 === v[b] ? (l.ea = c - 1, v[b] = l) : ($c(v, b, u), v[b].B[c - 1] = l);
2753
- X([], n, function(y) {
2758
+ X([], m, function(y) {
2754
2759
  y = pd(u, [y[0], null].concat(y.slice(1)), null, f, g);
2755
2760
  void 0 === v[b].B ? (y.ea = c - 1, v[b] = y) : v[b].B[c - 1] = y;
2756
2761
  if (p.i.pa) {
@@ -2762,7 +2767,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2762
2767
  });
2763
2768
  return [];
2764
2769
  });
2765
- }, _embind_register_class_class_property:function(a, b, c, d, e, f, g, n) {
2770
+ }, _embind_register_class_class_property:function(a, b, c, d, e, f, g, m) {
2766
2771
  b = W(b);
2767
2772
  f = Y(e, f);
2768
2773
  X([], [a], function(p) {
@@ -2770,7 +2775,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2770
2775
  var l = `${p.name}.${b}`, u = {get() {
2771
2776
  od(`Cannot access ${l} due to unbound types`, [c]);
2772
2777
  }, enumerable:!0, configurable:!0};
2773
- u.set = n ? () => {
2778
+ u.set = m ? () => {
2774
2779
  od(`Cannot access ${l} due to unbound types`, [c]);
2775
2780
  } : () => {
2776
2781
  U(`${l} is a read-only property`);
@@ -2781,9 +2786,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2781
2786
  var y = {get() {
2782
2787
  return v.fromWireType(f(d));
2783
2788
  }, enumerable:!0};
2784
- n && (n = Y(g, n), y.set = k => {
2789
+ m && (m = Y(g, m), y.set = k => {
2785
2790
  var t = [];
2786
- n(d, v.toWireType(t, k));
2791
+ m(d, v.toWireType(t, k));
2787
2792
  Rc(t);
2788
2793
  });
2789
2794
  Object.defineProperty(p.i.constructor, b, y);
@@ -2794,24 +2799,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2794
2799
  }, _embind_register_class_constructor:function(a, b, c, d, e, f) {
2795
2800
  var g = rd(b, c);
2796
2801
  e = Y(d, e);
2797
- X([], [a], function(n) {
2798
- n = n[0];
2799
- var p = `constructor ${n.name}`;
2800
- void 0 === n.i.aa && (n.i.aa = []);
2801
- if (void 0 !== n.i.aa[b - 1]) {
2802
- throw new qc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${n.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2803
- }
2804
- n.i.aa[b - 1] = () => {
2805
- od(`Cannot construct ${n.name} due to unbound types`, g);
2802
+ X([], [a], function(m) {
2803
+ m = m[0];
2804
+ var p = `constructor ${m.name}`;
2805
+ void 0 === m.i.aa && (m.i.aa = []);
2806
+ if (void 0 !== m.i.aa[b - 1]) {
2807
+ throw new qc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${m.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2808
+ }
2809
+ m.i.aa[b - 1] = () => {
2810
+ od(`Cannot construct ${m.name} due to unbound types`, g);
2806
2811
  };
2807
2812
  X([], g, function(l) {
2808
2813
  l.splice(1, 0, null);
2809
- n.i.aa[b - 1] = pd(p, l, null, e, f);
2814
+ m.i.aa[b - 1] = pd(p, l, null, e, f);
2810
2815
  return [];
2811
2816
  });
2812
2817
  return [];
2813
2818
  });
2814
- }, _embind_register_class_function:function(a, b, c, d, e, f, g, n) {
2819
+ }, _embind_register_class_function:function(a, b, c, d, e, f, g, m) {
2815
2820
  var p = rd(c, d);
2816
2821
  b = W(b);
2817
2822
  f = Y(e, f);
@@ -2822,7 +2827,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2822
2827
  l = l[0];
2823
2828
  var v = `${l.name}.${b}`;
2824
2829
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2825
- n && l.i.rb.push(b);
2830
+ m && l.i.rb.push(b);
2826
2831
  var y = l.i.O, k = y[b];
2827
2832
  void 0 === k || void 0 === k.B && k.className !== l.name && k.ea === c - 2 ? (u.ea = c - 2, u.className = l.name, y[b] = u) : ($c(y, b, v), y[b].B[c - 2] = u);
2828
2833
  X([], p, function(t) {
@@ -2832,7 +2837,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2832
2837
  });
2833
2838
  return [];
2834
2839
  });
2835
- }, _embind_register_class_property:function(a, b, c, d, e, f, g, n, p, l) {
2840
+ }, _embind_register_class_property:function(a, b, c, d, e, f, g, m, p, l) {
2836
2841
  b = W(b);
2837
2842
  e = Y(d, e);
2838
2843
  X([], [a], function(u) {
@@ -2852,7 +2857,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2852
2857
  return t.fromWireType(e(f, E));
2853
2858
  }, enumerable:!0};
2854
2859
  if (p) {
2855
- p = Y(n, p);
2860
+ p = Y(m, p);
2856
2861
  var B = k[1];
2857
2862
  r.set = function(E) {
2858
2863
  var w = sd(this, u, v + " setter"), O = [];
@@ -2909,22 +2914,22 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2909
2914
  ad(a, function() {
2910
2915
  od(`Cannot call ${a} due to unbound types`, g);
2911
2916
  }, b - 1);
2912
- X([], g, function(n) {
2913
- jd(a, pd(a, [n[0], null].concat(n.slice(1)), null, e, f), b - 1);
2917
+ X([], g, function(m) {
2918
+ jd(a, pd(a, [m[0], null].concat(m.slice(1)), null, e, f), b - 1);
2914
2919
  return [];
2915
2920
  });
2916
2921
  }, _embind_register_integer:function(a, b, c, d, e) {
2917
2922
  b = W(b);
2918
2923
  -1 === e && (e = 4294967295);
2919
2924
  e = Wc(c);
2920
- var f = n => n;
2925
+ var f = m => m;
2921
2926
  if (0 === d) {
2922
2927
  var g = 32 - 8 * c;
2923
- f = n => n << g >>> g;
2928
+ f = m => m << g >>> g;
2924
2929
  }
2925
- c = b.includes("unsigned") ? function(n, p) {
2930
+ c = b.includes("unsigned") ? function(m, p) {
2926
2931
  return p >>> 0;
2927
- } : function(n, p) {
2932
+ } : function(m, p) {
2928
2933
  return p;
2929
2934
  };
2930
2935
  Vc(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:wd(b, e, 0 !== d), K:null,});
@@ -2943,9 +2948,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2943
2948
  Vc(a, {name:b, fromWireType:function(d) {
2944
2949
  var e = G[d >> 2], f = d + 4;
2945
2950
  if (c) {
2946
- for (var g = f, n = 0; n <= e; ++n) {
2947
- var p = f + n;
2948
- if (n == e || 0 == C[p]) {
2951
+ for (var g = f, m = 0; m <= e; ++m) {
2952
+ var p = f + m;
2953
+ if (m == e || 0 == C[p]) {
2949
2954
  g = g ? lb(C, g, p - g) : "";
2950
2955
  if (void 0 === l) {
2951
2956
  var l = g;
@@ -2957,8 +2962,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2957
2962
  }
2958
2963
  } else {
2959
2964
  l = Array(e);
2960
- for (n = 0; n < e; ++n) {
2961
- l[n] = String.fromCharCode(C[f + n]);
2965
+ for (m = 0; m < e; ++m) {
2966
+ l[m] = String.fromCharCode(C[f + m]);
2962
2967
  }
2963
2968
  l = l.join("");
2964
2969
  }
@@ -2969,8 +2974,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2969
2974
  var f = "string" == typeof e;
2970
2975
  f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || U("Cannot pass non-string to std::string");
2971
2976
  var g = c && f ? nb(e) : e.length;
2972
- var n = Vd(4 + g + 1), p = n + 4;
2973
- G[n >> 2] = g;
2977
+ var m = Vd(4 + g + 1), p = m + 4;
2978
+ G[m >> 2] = g;
2974
2979
  if (c && f) {
2975
2980
  ob(e, C, p, g + 1);
2976
2981
  } else {
@@ -2986,8 +2991,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2986
2991
  }
2987
2992
  }
2988
2993
  }
2989
- null !== d && d.push(Ec, n);
2990
- return n;
2994
+ null !== d && d.push(Ec, m);
2995
+ return m;
2991
2996
  }, argPackAdvance:8, readValueFromPointer:Sc, K:function(d) {
2992
2997
  Ec(d);
2993
2998
  },});
@@ -2998,14 +3003,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2998
3003
  var e = zd;
2999
3004
  var f = Ad;
3000
3005
  var g = () => Ea;
3001
- var n = 1;
3006
+ var m = 1;
3002
3007
  } else {
3003
- 4 === b && (d = Bd, e = Cd, f = Dd, g = () => G, n = 2);
3008
+ 4 === b && (d = Bd, e = Cd, f = Dd, g = () => G, m = 2);
3004
3009
  }
3005
3010
  Vc(a, {name:c, fromWireType:function(p) {
3006
3011
  for (var l = G[p >> 2], u = g(), v, y = p + 4, k = 0; k <= l; ++k) {
3007
3012
  var t = p + 4 + k * b;
3008
- if (k == l || 0 == u[t >> n]) {
3013
+ if (k == l || 0 == u[t >> m]) {
3009
3014
  y = d(y, t - y), void 0 === v ? v = y : (v += String.fromCharCode(0), v += y), y = t + b;
3010
3015
  }
3011
3016
  }
@@ -3014,7 +3019,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3014
3019
  }, toWireType:function(p, l) {
3015
3020
  "string" != typeof l && U(`Cannot pass non-string to C++ string type ${c}`);
3016
3021
  var u = f(l), v = Vd(4 + u + b);
3017
- G[v >> 2] = u >> n;
3022
+ G[v >> 2] = u >> m;
3018
3023
  e(l, v + 4, u + b);
3019
3024
  null !== p && p.push(Ec, v);
3020
3025
  return v;
@@ -3023,8 +3028,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3023
3028
  },});
3024
3029
  }, _embind_register_value_object:function(a, b, c, d, e, f) {
3025
3030
  Qc[a] = {name:W(b), Qa:Y(c, d), X:Y(e, f), fb:[],};
3026
- }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, n, p, l) {
3027
- Qc[a].fb.push({Xb:W(b), cc:c, ac:Y(d, e), bc:f, zc:g, yc:Y(n, p), Ac:l,});
3031
+ }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, m, p, l) {
3032
+ Qc[a].fb.push({Xb:W(b), cc:c, ac:Y(d, e), bc:f, zc:g, yc:Y(m, p), Ac:l,});
3028
3033
  }, _embind_register_void:function(a, b) {
3029
3034
  b = W(b);
3030
3035
  Vc(a, {mc:!0, name:b, argPackAdvance:0, fromWireType:function() {
@@ -3058,11 +3063,11 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3058
3063
  return e;
3059
3064
  }
3060
3065
  var f = Array(a - 1);
3061
- e = Hd((g, n, p, l) => {
3066
+ e = Hd((g, m, p, l) => {
3062
3067
  for (var u = 0, v = 0; v < a - 1; ++v) {
3063
3068
  f[v] = c[v + 1].readValueFromPointer(l + u), u += c[v + 1].argPackAdvance;
3064
3069
  }
3065
- g = g[n].apply(g, f);
3070
+ g = g[m].apply(g, f);
3066
3071
  for (v = 0; v < a - 1; ++v) {
3067
3072
  c[v + 1].Rb && c[v + 1].Rb(f[v]);
3068
3073
  }
@@ -3073,7 +3078,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3073
3078
  return Jd[b] = e;
3074
3079
  }, _emval_get_module_property:function(a) {
3075
3080
  a = Fd(a);
3076
- return sc(m[a]);
3081
+ return sc(n[a]);
3077
3082
  }, _emval_get_property:function(a, b) {
3078
3083
  a = rc(a);
3079
3084
  b = rc(b);
@@ -3182,9 +3187,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3182
3187
  var e = Rb(a);
3183
3188
  a = b;
3184
3189
  for (var f, g = b = 0; g < c; g++) {
3185
- var n = G[a >> 2], p = G[a + 4 >> 2];
3190
+ var m = G[a >> 2], p = G[a + 4 >> 2];
3186
3191
  a += 8;
3187
- var l = e, u = n, v = p, y = f, k = A;
3192
+ var l = e, u = m, v = p, y = f, k = A;
3188
3193
  if (0 > v || 0 > y) {
3189
3194
  throw new Q(28);
3190
3195
  }
@@ -3254,9 +3259,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3254
3259
  var e = Rb(a);
3255
3260
  a = b;
3256
3261
  for (var f, g = b = 0; g < c; g++) {
3257
- var n = G[a >> 2], p = G[a + 4 >> 2];
3262
+ var m = G[a >> 2], p = G[a + 4 >> 2];
3258
3263
  a += 8;
3259
- var l = e, u = n, v = p, y = f, k = A;
3264
+ var l = e, u = m, v = p, y = f, k = A;
3260
3265
  if (0 > v || 0 > y) {
3261
3266
  throw new Q(28);
3262
3267
  }
@@ -3308,7 +3313,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3308
3313
  Ka = x.__indirect_function_table;
3309
3314
  Ma.unshift(x.__wasm_call_ctors);
3310
3315
  Pa--;
3311
- m.monitorRunDependencies && m.monitorRunDependencies(Pa);
3316
+ n.monitorRunDependencies && n.monitorRunDependencies(Pa);
3312
3317
  if (0 == Pa && (null !== Qa && (clearInterval(Qa), Qa = null), Ra)) {
3313
3318
  var d = Ra;
3314
3319
  Ra = null;
@@ -3318,10 +3323,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3318
3323
  }
3319
3324
  var b = {env:Wd, wasi_snapshot_preview1:Wd,};
3320
3325
  Pa++;
3321
- m.monitorRunDependencies && m.monitorRunDependencies(Pa);
3322
- if (m.instantiateWasm) {
3326
+ n.monitorRunDependencies && n.monitorRunDependencies(Pa);
3327
+ if (n.instantiateWasm) {
3323
3328
  try {
3324
- return m.instantiateWasm(b, a);
3329
+ return n.instantiateWasm(b, a);
3325
3330
  } catch (c) {
3326
3331
  ua("Module.instantiateWasm callback failed with error: " + c), ba(c);
3327
3332
  }
@@ -3331,20 +3336,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3331
3336
  }).catch(ba);
3332
3337
  return {};
3333
3338
  })();
3334
- var Ec = a => (Ec = x.free)(a), Vd = a => (Vd = x.malloc)(a), Za = m._ma_device__on_notification_unlocked = a => (Za = m._ma_device__on_notification_unlocked = x.ma_device__on_notification_unlocked)(a);
3335
- m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = x.ma_malloc_emscripten)(a, b);
3336
- m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = x.ma_free_emscripten)(a, b);
3337
- var $a = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => ($a = m._ma_device_process_pcm_frames_capture__webaudio = x.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), ab = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (ab = m._ma_device_process_pcm_frames_playback__webaudio = x.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Ud = () => (Ud = x.__errno_location)(), Dc = a => (Dc = x.__getTypeName)(a);
3338
- m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = x._embind_initialize_bindings)();
3339
- m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = x.dynCall_iiiji)(a, b, c, d, e, f);
3340
- m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = x.dynCall_iiji)(a, b, c, d, e);
3341
- m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = x.dynCall_jiji)(a, b, c, d, e);
3342
- m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = x.dynCall_iij)(a, b, c, d);
3343
- m.dynCall_jii = (a, b, c) => (m.dynCall_jii = x.dynCall_jii)(a, b, c);
3344
- m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = x.dynCall_viijii)(a, b, c, d, e, f, g);
3345
- m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = x.dynCall_iiiiij)(a, b, c, d, e, f, g);
3346
- m.dynCall_iiiiijj = (a, b, c, d, e, f, g, n, p) => (m.dynCall_iiiiijj = x.dynCall_iiiiijj)(a, b, c, d, e, f, g, n, p);
3347
- m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, n, p, l) => (m.dynCall_iiiiiijj = x.dynCall_iiiiiijj)(a, b, c, d, e, f, g, n, p, l);
3339
+ var Ec = a => (Ec = x.free)(a), Vd = a => (Vd = x.malloc)(a), Za = n._ma_device__on_notification_unlocked = a => (Za = n._ma_device__on_notification_unlocked = x.ma_device__on_notification_unlocked)(a);
3340
+ n._ma_malloc_emscripten = (a, b) => (n._ma_malloc_emscripten = x.ma_malloc_emscripten)(a, b);
3341
+ n._ma_free_emscripten = (a, b) => (n._ma_free_emscripten = x.ma_free_emscripten)(a, b);
3342
+ var $a = n._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => ($a = n._ma_device_process_pcm_frames_capture__webaudio = x.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), ab = n._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (ab = n._ma_device_process_pcm_frames_playback__webaudio = x.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Ud = () => (Ud = x.__errno_location)(), Dc = a => (Dc = x.__getTypeName)(a);
3343
+ n.__embind_initialize_bindings = () => (n.__embind_initialize_bindings = x._embind_initialize_bindings)();
3344
+ n.dynCall_iiiji = (a, b, c, d, e, f) => (n.dynCall_iiiji = x.dynCall_iiiji)(a, b, c, d, e, f);
3345
+ n.dynCall_iiji = (a, b, c, d, e) => (n.dynCall_iiji = x.dynCall_iiji)(a, b, c, d, e);
3346
+ n.dynCall_jiji = (a, b, c, d, e) => (n.dynCall_jiji = x.dynCall_jiji)(a, b, c, d, e);
3347
+ n.dynCall_iij = (a, b, c, d) => (n.dynCall_iij = x.dynCall_iij)(a, b, c, d);
3348
+ n.dynCall_jii = (a, b, c) => (n.dynCall_jii = x.dynCall_jii)(a, b, c);
3349
+ n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii = x.dynCall_viijii)(a, b, c, d, e, f, g);
3350
+ n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij = x.dynCall_iiiiij)(a, b, c, d, e, f, g);
3351
+ n.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, p) => (n.dynCall_iiiiijj = x.dynCall_iiiiijj)(a, b, c, d, e, f, g, m, p);
3352
+ n.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, p, l) => (n.dynCall_iiiiiijj = x.dynCall_iiiiiijj)(a, b, c, d, e, f, g, m, p, l);
3348
3353
  var Xd;
3349
3354
  Ra = function Yd() {
3350
3355
  Xd || Zd();
@@ -3352,17 +3357,17 @@ Ra = function Yd() {
3352
3357
  };
3353
3358
  function Zd() {
3354
3359
  function a() {
3355
- if (!Xd && (Xd = !0, m.calledRun = !0, !Ba)) {
3356
- m.noFSInit || gc || (gc = !0, fc(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? ic("stdin", m.stdin) : Xb("/dev/tty", "/dev/stdin"), m.stdout ? ic("stdout", null, m.stdout) : Xb("/dev/tty", "/dev/stdout"), m.stderr ? ic("stderr", null, m.stderr) : Xb("/dev/tty1", "/dev/stderr"), dc("/dev/stdin", 0), dc("/dev/stdout", 1), dc("/dev/stderr", 1));
3360
+ if (!Xd && (Xd = !0, n.calledRun = !0, !Ba)) {
3361
+ n.noFSInit || gc || (gc = !0, fc(), n.stdin = n.stdin, n.stdout = n.stdout, n.stderr = n.stderr, n.stdin ? ic("stdin", n.stdin) : Xb("/dev/tty", "/dev/stdin"), n.stdout ? ic("stdout", null, n.stdout) : Xb("/dev/tty", "/dev/stdout"), n.stderr ? ic("stderr", null, n.stderr) : Xb("/dev/tty1", "/dev/stderr"), dc("/dev/stdin", 0), dc("/dev/stdout", 1), dc("/dev/stderr", 1));
3357
3362
  Hb = !1;
3358
3363
  cb(Ma);
3359
- aa(m);
3360
- if (m.onRuntimeInitialized) {
3361
- m.onRuntimeInitialized();
3364
+ aa(n);
3365
+ if (n.onRuntimeInitialized) {
3366
+ n.onRuntimeInitialized();
3362
3367
  }
3363
- if (m.postRun) {
3364
- for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
3365
- var b = m.postRun.shift();
3368
+ if (n.postRun) {
3369
+ for ("function" == typeof n.postRun && (n.postRun = [n.postRun]); n.postRun.length;) {
3370
+ var b = n.postRun.shift();
3366
3371
  Na.unshift(b);
3367
3372
  }
3368
3373
  }
@@ -3370,23 +3375,23 @@ function Zd() {
3370
3375
  }
3371
3376
  }
3372
3377
  if (!(0 < Pa)) {
3373
- if (m.preRun) {
3374
- for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
3378
+ if (n.preRun) {
3379
+ for ("function" == typeof n.preRun && (n.preRun = [n.preRun]); n.preRun.length;) {
3375
3380
  Oa();
3376
3381
  }
3377
3382
  }
3378
3383
  cb(La);
3379
- 0 < Pa || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
3384
+ 0 < Pa || (n.setStatus ? (n.setStatus("Running..."), setTimeout(function() {
3380
3385
  setTimeout(function() {
3381
- m.setStatus("");
3386
+ n.setStatus("");
3382
3387
  }, 1);
3383
3388
  a();
3384
3389
  }, 1)) : a());
3385
3390
  }
3386
3391
  }
3387
- if (m.preInit) {
3388
- for ("function" == typeof m.preInit && (m.preInit = [m.preInit]); 0 < m.preInit.length;) {
3389
- m.preInit.pop()();
3392
+ if (n.preInit) {
3393
+ for ("function" == typeof n.preInit && (n.preInit = [n.preInit]); 0 < n.preInit.length;) {
3394
+ n.preInit.pop()();
3390
3395
  }
3391
3396
  }
3392
3397
  Zd();
@@ -3404,7 +3409,7 @@ Zd();
3404
3409
  /* 2 */
3405
3410
  /***/ ((module) => {
3406
3411
 
3407
- module.exports = JSON.parse('{"name":"@rive-app/canvas","version":"2.14.4","description":"Rive\'s canvas 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)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3412
+ module.exports = JSON.parse('{"name":"@rive-app/canvas","version":"2.15.0","description":"Rive\'s canvas 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)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3408
3413
 
3409
3414
  /***/ }),
3410
3415
  /* 3 */
@@ -3702,6 +3707,7 @@ __webpack_require__.r(__webpack_exports__);
3702
3707
  /* harmony export */ StateMachineInput: () => (/* binding */ StateMachineInput),
3703
3708
  /* harmony export */ StateMachineInputType: () => (/* binding */ StateMachineInputType),
3704
3709
  /* harmony export */ Testing: () => (/* binding */ Testing),
3710
+ /* harmony export */ decodeAudio: () => (/* binding */ decodeAudio),
3705
3711
  /* harmony export */ decodeFont: () => (/* binding */ decodeFont),
3706
3712
  /* harmony export */ decodeImage: () => (/* binding */ decodeImage)
3707
3713
  /* harmony export */ });
@@ -5876,10 +5882,23 @@ var Testing = {
5876
5882
  };
5877
5883
  // #endregion
5878
5884
  // #region asset loaders
5885
+ /**
5886
+ * Decodes bytes into an audio asset.
5887
+ *
5888
+ * Be sure to call `.unref()` on the audio once it is no longer needed. This
5889
+ * allows the engine to clean it up when it is not used by any more animations.
5890
+ */
5891
+ var decodeAudio = function (bytes) {
5892
+ return new Promise(function (resolve) {
5893
+ return RuntimeLoader.getInstance(function (rive) {
5894
+ rive.decodeAudio(bytes, resolve);
5895
+ });
5896
+ });
5897
+ };
5879
5898
  /**
5880
5899
  * Decodes bytes into an image.
5881
5900
  *
5882
- * Be sure to call `.dispose()` on the image once it is no longer needed. This
5901
+ * Be sure to call `.unref()` on the image once it is no longer needed. This
5883
5902
  * allows the engine to clean it up when it is not used by any more animations.
5884
5903
  */
5885
5904
  var decodeImage = function (bytes) {
@@ -5892,7 +5911,7 @@ var decodeImage = function (bytes) {
5892
5911
  /**
5893
5912
  * Decodes bytes into a font.
5894
5913
  *
5895
- * Be sure to call `.dispose()` on the font once it is no longer needed. This
5914
+ * Be sure to call `.unref()` on the font once it is no longer needed. This
5896
5915
  * allows the engine to clean it up when it is not used by any more animations.
5897
5916
  */
5898
5917
  var decodeFont = function (bytes) {