@rive-app/canvas-advanced-lite 2.26.3 → 2.26.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/canvas_advanced.mjs +276 -274
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +129 -0
- package/rive_fallback.wasm +0 -0
package/canvas_advanced.mjs
CHANGED
|
@@ -245,7 +245,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
245
245
|
a.clearColor(0, 0, 0, 0);
|
|
246
246
|
a.clear(a.COLOR_BUFFER_BIT);
|
|
247
247
|
a.enable(a.SCISSOR_TEST);
|
|
248
|
-
q.sort((C,
|
|
248
|
+
q.sort((C, X) => X.Ba - C.Ba);
|
|
249
249
|
v = w.push(G);
|
|
250
250
|
m != v && (a.bufferData(a.ARRAY_BUFFER, 8 * v, a.DYNAMIC_DRAW), m = v);
|
|
251
251
|
v = 0;
|
|
@@ -253,8 +253,8 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
253
253
|
a.bufferSubData(a.ARRAY_BUFFER, v, O.ia), v += 4 * O.ia.length;
|
|
254
254
|
}
|
|
255
255
|
console.assert(v == 4 * G);
|
|
256
|
-
for (var
|
|
257
|
-
a.bufferSubData(a.ARRAY_BUFFER, v,
|
|
256
|
+
for (var Y of q) {
|
|
257
|
+
a.bufferSubData(a.ARRAY_BUFFER, v, Y.Ea), v += 4 * Y.Ea.length;
|
|
258
258
|
}
|
|
259
259
|
console.assert(v == 8 * G);
|
|
260
260
|
v = x.push(D);
|
|
@@ -265,15 +265,15 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
265
265
|
}
|
|
266
266
|
console.assert(O == 2 * D);
|
|
267
267
|
ia = 0;
|
|
268
|
-
|
|
268
|
+
Y = !0;
|
|
269
269
|
v = O = 0;
|
|
270
270
|
for (const C of q) {
|
|
271
271
|
C.image.da != ia && (a.bindTexture(a.TEXTURE_2D, C.image.ca || null), ia = C.image.da);
|
|
272
|
-
C.hb ? (a.scissor(C.na, I - C.oa - C.va, C.sb, C.va),
|
|
272
|
+
C.hb ? (a.scissor(C.na, I - C.oa - C.va, C.sb, C.va), Y = !0) : Y && (a.scissor(0, I - r, g, r), Y = !1);
|
|
273
273
|
q = 2 / g;
|
|
274
|
-
const
|
|
275
|
-
a.uniform4f(e, C.N[0] * q * C.X, C.N[1] *
|
|
276
|
-
a.uniform2f(f, C.N[4] * q * C.X + q * (C.na - C.fb * C.X) - 1, C.N[5] *
|
|
274
|
+
const X = -2 / r;
|
|
275
|
+
a.uniform4f(e, C.N[0] * q * C.X, C.N[1] * X * C.Y, C.N[2] * q * C.X, C.N[3] * X * C.Y);
|
|
276
|
+
a.uniform2f(f, C.N[4] * q * C.X + q * (C.na - C.fb * C.X) - 1, C.N[5] * X * C.Y + X * (C.oa - C.gb * C.Y) + 1);
|
|
277
277
|
a.vertexAttribPointer(0, 2, a.FLOAT, !1, 0, v);
|
|
278
278
|
a.vertexAttribPointer(1, 2, a.FLOAT, !1, 0, v + 4 * G);
|
|
279
279
|
a.drawElements(a.TRIANGLES, C.indices.length, a.UNSIGNED_SHORT, O);
|
|
@@ -330,7 +330,7 @@ h.onRuntimeInitialized = function() {
|
|
|
330
330
|
return "rgba(" + ((16711680 & p) >>> 16) + "," + ((65280 & p) >>> 8) + "," + ((255 & p) >>> 0) + "," + ((4278190080 & p) >>> 24) / 255 + ")";
|
|
331
331
|
}
|
|
332
332
|
function c() {
|
|
333
|
-
0 < I.length && (ha.Qa(v.drawWidth(), v.drawHeight(), I, O,
|
|
333
|
+
0 < I.length && (ha.Qa(v.drawWidth(), v.drawHeight(), I, O, Y), I = [], Y = O = 0, v.reset(512, 512));
|
|
334
334
|
for (const p of D) {
|
|
335
335
|
for (const u of p.u) {
|
|
336
336
|
u();
|
|
@@ -440,8 +440,8 @@ h.onRuntimeInitialized = function() {
|
|
|
440
440
|
var H = E.ra;
|
|
441
441
|
const K = E.ga;
|
|
442
442
|
E.bb ? (E = T - y, H -= F, y = p.createRadialGradient(y, F, 0, y, F, Math.sqrt(E * E + H * H))) : y = p.createLinearGradient(y, F, T, H);
|
|
443
|
-
for (let
|
|
444
|
-
F = K[
|
|
443
|
+
for (let Z = 0, N = K.length; Z < N; Z++) {
|
|
444
|
+
F = K[Z], y.addColorStop(F.stop, a(F.color));
|
|
445
445
|
}
|
|
446
446
|
this.ma = y;
|
|
447
447
|
this.P = null;
|
|
@@ -459,7 +459,7 @@ h.onRuntimeInitialized = function() {
|
|
|
459
459
|
}
|
|
460
460
|
},});
|
|
461
461
|
const D = new Set();
|
|
462
|
-
let v = null, I = [], O = 0,
|
|
462
|
+
let v = null, I = [], O = 0, Y = 0;
|
|
463
463
|
var ia = h.CanvasRenderer = m.extend("Renderer", {__construct:function(p) {
|
|
464
464
|
this.__parent.__construct.call(this);
|
|
465
465
|
this.D = [1, 0, 0, 1, 0, 0];
|
|
@@ -503,29 +503,29 @@ h.onRuntimeInitialized = function() {
|
|
|
503
503
|
p[B] = u[A + B];
|
|
504
504
|
}
|
|
505
505
|
}, _drawImageMesh:function(p, u, A, B, y, E, F, H, T, K) {
|
|
506
|
-
var
|
|
506
|
+
var Z = this.o.canvas.width, N = this.o.canvas.height;
|
|
507
507
|
const tb = T - F, ub = K - H;
|
|
508
508
|
F = Math.max(F, 0);
|
|
509
509
|
H = Math.max(H, 0);
|
|
510
|
-
T = Math.min(T,
|
|
510
|
+
T = Math.min(T, Z);
|
|
511
511
|
K = Math.min(K, N);
|
|
512
512
|
const wa = T - F, xa = K - H;
|
|
513
|
-
console.assert(wa <= Math.min(tb,
|
|
513
|
+
console.assert(wa <= Math.min(tb, Z));
|
|
514
514
|
console.assert(xa <= Math.min(ub, N));
|
|
515
515
|
if (!(0 >= wa || 0 >= xa)) {
|
|
516
516
|
T = wa < tb || xa < ub;
|
|
517
|
-
|
|
518
|
-
var ja = Math.ceil(wa * K), ka = Math.ceil(xa *
|
|
517
|
+
Z = K = 1;
|
|
518
|
+
var ja = Math.ceil(wa * K), ka = Math.ceil(xa * Z);
|
|
519
519
|
N = ha.eb();
|
|
520
520
|
ja > N && (K *= N / ja, ja = N);
|
|
521
|
-
ka > N && (
|
|
521
|
+
ka > N && (Z *= N / ka, ka = N);
|
|
522
522
|
v || (v = new h.DynamicRectanizer(N), v.reset(512, 512));
|
|
523
523
|
N = v.addRect(ja, ka);
|
|
524
524
|
0 > N && (c(), D.add(this), N = v.addRect(ja, ka), console.assert(0 <= N));
|
|
525
525
|
var vb = N & 65535, wb = N >> 16;
|
|
526
|
-
I.push({N:this.D.slice(this.D.length - 6), image:p, na:vb, oa:wb, fb:F, gb:H, sb:ja, va:ka, X:K, Y, ia:new Float32Array(B), Ea:new Float32Array(y), indices:new Uint16Array(E), hb:T, Ba:p.da << 1 | (T ? 1 : 0),});
|
|
526
|
+
I.push({N:this.D.slice(this.D.length - 6), image:p, na:vb, oa:wb, fb:F, gb:H, sb:ja, va:ka, X:K, Y:Z, ia:new Float32Array(B), Ea:new Float32Array(y), indices:new Uint16Array(E), hb:T, Ba:p.da << 1 | (T ? 1 : 0),});
|
|
527
527
|
O += B.length;
|
|
528
|
-
|
|
528
|
+
Y += E.length;
|
|
529
529
|
var pa = this.o, oc = b(u);
|
|
530
530
|
this.u.push(function() {
|
|
531
531
|
pa.save();
|
|
@@ -579,7 +579,7 @@ h.onRuntimeInitialized = function() {
|
|
|
579
579
|
}, makeRenderPath:function() {
|
|
580
580
|
return new q();
|
|
581
581
|
}, makeRenderImage:function() {
|
|
582
|
-
let p =
|
|
582
|
+
let p = X;
|
|
583
583
|
return new r({W:() => {
|
|
584
584
|
p.total++;
|
|
585
585
|
}, R:() => {
|
|
@@ -590,18 +590,18 @@ h.onRuntimeInitialized = function() {
|
|
|
590
590
|
}
|
|
591
591
|
},});
|
|
592
592
|
},};
|
|
593
|
-
let C = h.load,
|
|
593
|
+
let C = h.load, X = null;
|
|
594
594
|
h.load = function(p, u, A = !0) {
|
|
595
595
|
const B = new h.FallbackFileAssetLoader();
|
|
596
596
|
void 0 !== u && B.addLoader(u);
|
|
597
597
|
A && (u = new h.CDNFileAssetLoader(), B.addLoader(u));
|
|
598
598
|
return new Promise(function(y) {
|
|
599
599
|
let E = null;
|
|
600
|
-
|
|
600
|
+
X = {total:0, loaded:0, ready:function() {
|
|
601
601
|
y(E);
|
|
602
602
|
},};
|
|
603
603
|
E = C(p, B);
|
|
604
|
-
0 ==
|
|
604
|
+
0 == X.total && y(E);
|
|
605
605
|
});
|
|
606
606
|
};
|
|
607
607
|
let pc = h.RendererWrapper.prototype.align;
|
|
@@ -619,15 +619,15 @@ h.onRuntimeInitialized = function() {
|
|
|
619
619
|
v && v.delete();
|
|
620
620
|
};
|
|
621
621
|
};
|
|
622
|
-
var ma = Object.assign({}, h), na = "./this.program", oa = "object" == typeof window, qa = "function" == typeof importScripts,
|
|
622
|
+
var ma = Object.assign({}, h), na = "./this.program", oa = "object" == typeof window, qa = "function" == typeof importScripts, ra = "", sa, ta;
|
|
623
623
|
if (oa || qa) {
|
|
624
|
-
qa ?
|
|
624
|
+
qa ? ra = self.location.href : "undefined" != typeof document && document.currentScript && (ra = document.currentScript.src), _scriptDir && (ra = _scriptDir), 0 !== ra.indexOf("blob:") ? ra = ra.substr(0, ra.replace(/[?#].*/, "").lastIndexOf("/") + 1) : ra = "", qa && (ta = b => {
|
|
625
625
|
var a = new XMLHttpRequest();
|
|
626
626
|
a.open("GET", b, !1);
|
|
627
627
|
a.responseType = "arraybuffer";
|
|
628
628
|
a.send(null);
|
|
629
629
|
return new Uint8Array(a.response);
|
|
630
|
-
}),
|
|
630
|
+
}), sa = (b, a, c) => {
|
|
631
631
|
var d = new XMLHttpRequest();
|
|
632
632
|
d.open("GET", b, !0);
|
|
633
633
|
d.responseType = "arraybuffer";
|
|
@@ -638,99 +638,99 @@ if (oa || qa) {
|
|
|
638
638
|
d.send(null);
|
|
639
639
|
};
|
|
640
640
|
}
|
|
641
|
-
var
|
|
641
|
+
var ua = h.print || console.log.bind(console), va = h.printErr || console.error.bind(console);
|
|
642
642
|
Object.assign(h, ma);
|
|
643
643
|
ma = null;
|
|
644
644
|
h.thisProgram && (na = h.thisProgram);
|
|
645
|
-
var
|
|
646
|
-
h.wasmBinary && (
|
|
645
|
+
var ya;
|
|
646
|
+
h.wasmBinary && (ya = h.wasmBinary);
|
|
647
647
|
var noExitRuntime = h.noExitRuntime || !0;
|
|
648
|
-
"object" != typeof WebAssembly &&
|
|
649
|
-
var
|
|
650
|
-
function
|
|
651
|
-
var b =
|
|
652
|
-
h.HEAP8 =
|
|
653
|
-
h.HEAP16 =
|
|
654
|
-
h.HEAP32 =
|
|
655
|
-
h.HEAPU8 =
|
|
656
|
-
h.HEAPU16 =
|
|
657
|
-
h.HEAPU32 =
|
|
658
|
-
h.HEAPF32 =
|
|
659
|
-
h.HEAPF64 =
|
|
660
|
-
}
|
|
661
|
-
var
|
|
662
|
-
function
|
|
648
|
+
"object" != typeof WebAssembly && za("no native wasm support detected");
|
|
649
|
+
var Aa, z, Ba = !1, Ca, J, Da, Ea, L, M, Fa, Ga;
|
|
650
|
+
function Ha() {
|
|
651
|
+
var b = Aa.buffer;
|
|
652
|
+
h.HEAP8 = Ca = new Int8Array(b);
|
|
653
|
+
h.HEAP16 = Da = new Int16Array(b);
|
|
654
|
+
h.HEAP32 = L = new Int32Array(b);
|
|
655
|
+
h.HEAPU8 = J = new Uint8Array(b);
|
|
656
|
+
h.HEAPU16 = Ea = new Uint16Array(b);
|
|
657
|
+
h.HEAPU32 = M = new Uint32Array(b);
|
|
658
|
+
h.HEAPF32 = Fa = new Float32Array(b);
|
|
659
|
+
h.HEAPF64 = Ga = new Float64Array(b);
|
|
660
|
+
}
|
|
661
|
+
var Ia, Ja = [], Ka = [], La = [];
|
|
662
|
+
function Ma() {
|
|
663
663
|
var b = h.preRun.shift();
|
|
664
|
-
|
|
664
|
+
Ja.unshift(b);
|
|
665
665
|
}
|
|
666
|
-
var
|
|
667
|
-
function
|
|
666
|
+
var Na = 0, Oa = null, Pa = null;
|
|
667
|
+
function za(b) {
|
|
668
668
|
if (h.onAbort) {
|
|
669
669
|
h.onAbort(b);
|
|
670
670
|
}
|
|
671
671
|
b = "Aborted(" + b + ")";
|
|
672
|
-
|
|
673
|
-
|
|
672
|
+
va(b);
|
|
673
|
+
Ba = !0;
|
|
674
674
|
b = new WebAssembly.RuntimeError(b + ". Build with -sASSERTIONS for more info.");
|
|
675
675
|
ba(b);
|
|
676
676
|
throw b;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function Qa(b) {
|
|
679
679
|
return b.startsWith("data:application/octet-stream;base64,");
|
|
680
680
|
}
|
|
681
|
-
var
|
|
682
|
-
|
|
683
|
-
if (!
|
|
684
|
-
var
|
|
685
|
-
|
|
681
|
+
var Ra;
|
|
682
|
+
Ra = "canvas_advanced.wasm";
|
|
683
|
+
if (!Qa(Ra)) {
|
|
684
|
+
var Sa = Ra;
|
|
685
|
+
Ra = h.locateFile ? h.locateFile(Sa, ra) : ra + Sa;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
688
|
-
if (b ==
|
|
689
|
-
return new Uint8Array(
|
|
687
|
+
function Ta(b) {
|
|
688
|
+
if (b == Ra && ya) {
|
|
689
|
+
return new Uint8Array(ya);
|
|
690
690
|
}
|
|
691
|
-
if (
|
|
692
|
-
return
|
|
691
|
+
if (ta) {
|
|
692
|
+
return ta(b);
|
|
693
693
|
}
|
|
694
694
|
throw "both async and sync fetching of the wasm failed";
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
if (!
|
|
696
|
+
function Ua(b) {
|
|
697
|
+
if (!ya && (oa || qa)) {
|
|
698
698
|
if ("function" == typeof fetch && !b.startsWith("file://")) {
|
|
699
699
|
return fetch(b, {credentials:"same-origin"}).then(a => {
|
|
700
700
|
if (!a.ok) {
|
|
701
701
|
throw "failed to load wasm binary file at '" + b + "'";
|
|
702
702
|
}
|
|
703
703
|
return a.arrayBuffer();
|
|
704
|
-
}).catch(() =>
|
|
704
|
+
}).catch(() => Ta(b));
|
|
705
705
|
}
|
|
706
|
-
if (
|
|
706
|
+
if (sa) {
|
|
707
707
|
return new Promise((a, c) => {
|
|
708
|
-
|
|
708
|
+
sa(b, d => a(new Uint8Array(d)), c);
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
|
-
return Promise.resolve().then(() =>
|
|
712
|
+
return Promise.resolve().then(() => Ta(b));
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
return
|
|
716
|
-
|
|
717
|
-
|
|
714
|
+
function Va(b, a, c) {
|
|
715
|
+
return Ua(b).then(d => WebAssembly.instantiate(d, a)).then(d => d).then(c, d => {
|
|
716
|
+
va("failed to asynchronously prepare wasm: " + d);
|
|
717
|
+
za(d);
|
|
718
718
|
});
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
var c =
|
|
722
|
-
return
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
return
|
|
720
|
+
function Wa(b, a) {
|
|
721
|
+
var c = Ra;
|
|
722
|
+
return ya || "function" != typeof WebAssembly.instantiateStreaming || Qa(c) || c.startsWith("file://") || "function" != typeof fetch ? Va(c, b, a) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, b).then(a, function(e) {
|
|
723
|
+
va("wasm streaming compile failed: " + e);
|
|
724
|
+
va("falling back to ArrayBuffer instantiation");
|
|
725
|
+
return Va(c, b, a);
|
|
726
726
|
}));
|
|
727
727
|
}
|
|
728
|
-
var
|
|
728
|
+
var Xa = b => {
|
|
729
729
|
for (; 0 < b.length;) {
|
|
730
730
|
b.shift()(h);
|
|
731
731
|
}
|
|
732
732
|
};
|
|
733
|
-
function
|
|
733
|
+
function Ya(b) {
|
|
734
734
|
if (void 0 === b) {
|
|
735
735
|
return "_unknown";
|
|
736
736
|
}
|
|
@@ -738,24 +738,24 @@ function Xa(b) {
|
|
|
738
738
|
var a = b.charCodeAt(0);
|
|
739
739
|
return 48 <= a && 57 >= a ? `_${b}` : b;
|
|
740
740
|
}
|
|
741
|
-
function
|
|
742
|
-
b =
|
|
741
|
+
function Za(b, a) {
|
|
742
|
+
b = Ya(b);
|
|
743
743
|
return {[b]:function() {
|
|
744
744
|
return a.apply(this, arguments);
|
|
745
745
|
}}[b];
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function $a() {
|
|
748
748
|
this.G = [void 0];
|
|
749
749
|
this.ta = [];
|
|
750
750
|
}
|
|
751
|
-
var
|
|
752
|
-
function
|
|
753
|
-
throw new
|
|
751
|
+
var P = new $a(), ab = void 0;
|
|
752
|
+
function Q(b) {
|
|
753
|
+
throw new ab(b);
|
|
754
754
|
}
|
|
755
|
-
var
|
|
756
|
-
b ||
|
|
757
|
-
return
|
|
758
|
-
},
|
|
755
|
+
var R = b => {
|
|
756
|
+
b || Q("Cannot use deleted val. handle = " + b);
|
|
757
|
+
return P.get(b).value;
|
|
758
|
+
}, S = b => {
|
|
759
759
|
switch(b) {
|
|
760
760
|
case void 0:
|
|
761
761
|
return 1;
|
|
@@ -766,11 +766,11 @@ var S = b => {
|
|
|
766
766
|
case !1:
|
|
767
767
|
return 4;
|
|
768
768
|
default:
|
|
769
|
-
return
|
|
769
|
+
return P.Za({Aa:1, value:b});
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
772
|
function bb(b) {
|
|
773
|
-
var a = Error, c =
|
|
773
|
+
var a = Error, c = Za(b, function(d) {
|
|
774
774
|
this.name = b;
|
|
775
775
|
this.message = d;
|
|
776
776
|
d = Error(d).stack;
|
|
@@ -785,8 +785,8 @@ function bb(b) {
|
|
|
785
785
|
}
|
|
786
786
|
var cb = void 0, db = void 0;
|
|
787
787
|
function U(b) {
|
|
788
|
-
for (var a = "";
|
|
789
|
-
a += db[
|
|
788
|
+
for (var a = ""; J[b];) {
|
|
789
|
+
a += db[J[b++]];
|
|
790
790
|
}
|
|
791
791
|
return a;
|
|
792
792
|
}
|
|
@@ -800,7 +800,7 @@ function fb() {
|
|
|
800
800
|
}
|
|
801
801
|
var gb = void 0, hb = {};
|
|
802
802
|
function ib(b, a) {
|
|
803
|
-
for (void 0 === a &&
|
|
803
|
+
for (void 0 === a && Q("ptr should not be undefined"); b.l;) {
|
|
804
804
|
a = b.S(a), b = b.l;
|
|
805
805
|
}
|
|
806
806
|
return a;
|
|
@@ -814,7 +814,7 @@ function kb(b) {
|
|
|
814
814
|
}
|
|
815
815
|
function nb(b, a) {
|
|
816
816
|
var c = jb[b];
|
|
817
|
-
void 0 === c &&
|
|
817
|
+
void 0 === c && Q(a + " has unknown type " + kb(b));
|
|
818
818
|
return c;
|
|
819
819
|
}
|
|
820
820
|
function ob() {
|
|
@@ -874,7 +874,7 @@ function Eb(b) {
|
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
876
|
function Fb(b) {
|
|
877
|
-
return this.fromWireType(
|
|
877
|
+
return this.fromWireType(L[b >> 2]);
|
|
878
878
|
}
|
|
879
879
|
var Gb = {}, Hb = {};
|
|
880
880
|
function V(b, a, c) {
|
|
@@ -914,12 +914,12 @@ function Jb(b) {
|
|
|
914
914
|
}
|
|
915
915
|
function Kb(b, a, c = {}) {
|
|
916
916
|
var d = a.name;
|
|
917
|
-
b ||
|
|
917
|
+
b || Q(`type "${d}" must have a positive integer typeid pointer`);
|
|
918
918
|
if (jb.hasOwnProperty(b)) {
|
|
919
919
|
if (c.ab) {
|
|
920
920
|
return;
|
|
921
921
|
}
|
|
922
|
-
|
|
922
|
+
Q(`Cannot register type '${d}' twice`);
|
|
923
923
|
}
|
|
924
924
|
jb[b] = a;
|
|
925
925
|
delete Hb[b];
|
|
@@ -932,7 +932,7 @@ function Ib(b, a, c = {}) {
|
|
|
932
932
|
Kb(b, a, c);
|
|
933
933
|
}
|
|
934
934
|
function Lb(b) {
|
|
935
|
-
|
|
935
|
+
Q(b.g.j.h.name + " instance already deleted");
|
|
936
936
|
}
|
|
937
937
|
function Mb() {
|
|
938
938
|
}
|
|
@@ -940,7 +940,7 @@ function Nb(b, a, c) {
|
|
|
940
940
|
if (void 0 === b[a].m) {
|
|
941
941
|
var d = b[a];
|
|
942
942
|
b[a] = function() {
|
|
943
|
-
b[a].m.hasOwnProperty(arguments.length) ||
|
|
943
|
+
b[a].m.hasOwnProperty(arguments.length) || Q(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${b[a].m})!`);
|
|
944
944
|
return b[a].m[arguments.length].apply(this, arguments);
|
|
945
945
|
};
|
|
946
946
|
b[a].m = [];
|
|
@@ -948,7 +948,7 @@ function Nb(b, a, c) {
|
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
950
|
function Ob(b, a, c) {
|
|
951
|
-
h.hasOwnProperty(b) ? ((void 0 === c || void 0 !== h[b].m && void 0 !== h[b].m[c]) &&
|
|
951
|
+
h.hasOwnProperty(b) ? ((void 0 === c || void 0 !== h[b].m && void 0 !== h[b].m[c]) && Q(`Cannot register public name '${b}' twice`), Nb(h, b, b), h.hasOwnProperty(c) && Q(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), h[b].m[c] = a) : (h[b] = a, void 0 !== c && (h[b].tb = c));
|
|
952
952
|
}
|
|
953
953
|
function Pb(b, a, c, d, e, f, m, k) {
|
|
954
954
|
this.name = b;
|
|
@@ -963,21 +963,21 @@ function Pb(b, a, c, d, e, f, m, k) {
|
|
|
963
963
|
}
|
|
964
964
|
function Qb(b, a, c) {
|
|
965
965
|
for (; a !== c;) {
|
|
966
|
-
a.S ||
|
|
966
|
+
a.S || Q(`Expected null or instance of ${c.name}, got an instance of ${a.name}`), b = a.S(b), a = a.l;
|
|
967
967
|
}
|
|
968
968
|
return b;
|
|
969
969
|
}
|
|
970
970
|
function Rb(b, a) {
|
|
971
971
|
if (null === a) {
|
|
972
|
-
return this.ea &&
|
|
972
|
+
return this.ea && Q(`null is not a valid ${this.name}`), 0;
|
|
973
973
|
}
|
|
974
|
-
a.g ||
|
|
975
|
-
a.g.i ||
|
|
974
|
+
a.g || Q(`Cannot pass "${Sb(a)}" as a ${this.name}`);
|
|
975
|
+
a.g.i || Q(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
976
976
|
return Qb(a.g.i, a.g.j.h, this.h);
|
|
977
977
|
}
|
|
978
978
|
function Tb(b, a) {
|
|
979
979
|
if (null === a) {
|
|
980
|
-
this.ea &&
|
|
980
|
+
this.ea && Q(`null is not a valid ${this.name}`);
|
|
981
981
|
if (this.V) {
|
|
982
982
|
var c = this.fa();
|
|
983
983
|
null !== b && b.push(this.H, c);
|
|
@@ -985,14 +985,14 @@ function Tb(b, a) {
|
|
|
985
985
|
}
|
|
986
986
|
return 0;
|
|
987
987
|
}
|
|
988
|
-
a.g ||
|
|
989
|
-
a.g.i ||
|
|
990
|
-
!this.U && a.g.j.U &&
|
|
988
|
+
a.g || Q(`Cannot pass "${Sb(a)}" as a ${this.name}`);
|
|
989
|
+
a.g.i || Q(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
990
|
+
!this.U && a.g.j.U && Q(`Cannot convert argument of type ${a.g.A ? a.g.A.name : a.g.j.name} to parameter type ${this.name}`);
|
|
991
991
|
c = Qb(a.g.i, a.g.j.h, this.h);
|
|
992
992
|
if (this.V) {
|
|
993
|
-
switch(void 0 === a.g.s &&
|
|
993
|
+
switch(void 0 === a.g.s && Q("Passing raw pointer to smart pointer is illegal"), this.nb) {
|
|
994
994
|
case 0:
|
|
995
|
-
a.g.A === this ? c = a.g.s :
|
|
995
|
+
a.g.A === this ? c = a.g.s : Q(`Cannot convert argument of type ${a.g.A ? a.g.A.name : a.g.j.name} to parameter type ${this.name}`);
|
|
996
996
|
break;
|
|
997
997
|
case 1:
|
|
998
998
|
c = a.g.s;
|
|
@@ -1002,25 +1002,25 @@ function Tb(b, a) {
|
|
|
1002
1002
|
c = a.g.s;
|
|
1003
1003
|
} else {
|
|
1004
1004
|
var d = a.clone();
|
|
1005
|
-
c = this.jb(c,
|
|
1005
|
+
c = this.jb(c, S(function() {
|
|
1006
1006
|
d["delete"]();
|
|
1007
1007
|
}));
|
|
1008
1008
|
null !== b && b.push(this.H, c);
|
|
1009
1009
|
}
|
|
1010
1010
|
break;
|
|
1011
1011
|
default:
|
|
1012
|
-
|
|
1012
|
+
Q("Unsupporting sharing policy");
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
1015
|
return c;
|
|
1016
1016
|
}
|
|
1017
1017
|
function Ub(b, a) {
|
|
1018
1018
|
if (null === a) {
|
|
1019
|
-
return this.ea &&
|
|
1019
|
+
return this.ea && Q(`null is not a valid ${this.name}`), 0;
|
|
1020
1020
|
}
|
|
1021
|
-
a.g ||
|
|
1022
|
-
a.g.i ||
|
|
1023
|
-
a.g.j.U &&
|
|
1021
|
+
a.g || Q(`Cannot pass "${Sb(a)}" as a ${this.name}`);
|
|
1022
|
+
a.g.i || Q(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1023
|
+
a.g.j.U && Q(`Cannot convert argument of type ${a.g.j.name} to parameter type ${this.name}`);
|
|
1024
1024
|
return Qb(a.g.i, a.g.j.h, this.h);
|
|
1025
1025
|
}
|
|
1026
1026
|
function Vb(b, a, c, d) {
|
|
@@ -1038,7 +1038,7 @@ function Wb(b, a, c) {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
var Xb = [], Yb = b => {
|
|
1040
1040
|
var a = Xb[b];
|
|
1041
|
-
a || (b >= Xb.length && (Xb.length = b + 1), Xb[b] = a =
|
|
1041
|
+
a || (b >= Xb.length && (Xb.length = b + 1), Xb[b] = a = Ia.get(b));
|
|
1042
1042
|
return a;
|
|
1043
1043
|
}, Zb = (b, a) => {
|
|
1044
1044
|
var c = [];
|
|
@@ -1054,10 +1054,10 @@ var Xb = [], Yb = b => {
|
|
|
1054
1054
|
return d;
|
|
1055
1055
|
};
|
|
1056
1056
|
};
|
|
1057
|
-
function
|
|
1057
|
+
function W(b, a) {
|
|
1058
1058
|
b = U(b);
|
|
1059
1059
|
var c = b.includes("j") ? Zb(b, a) : Yb(a);
|
|
1060
|
-
"function" != typeof c &&
|
|
1060
|
+
"function" != typeof c && Q(`unknown function pointer with signature ${b}: ${a}`);
|
|
1061
1061
|
return c;
|
|
1062
1062
|
}
|
|
1063
1063
|
var $b = void 0;
|
|
@@ -1071,7 +1071,7 @@ function ac(b, a) {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
function bc(b, a, c, d, e) {
|
|
1073
1073
|
var f = a.length;
|
|
1074
|
-
2 > f &&
|
|
1074
|
+
2 > f && Q("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1075
1075
|
var m = null !== a[1] && null !== c, k = !1;
|
|
1076
1076
|
for (c = 1; c < a.length; ++c) {
|
|
1077
1077
|
if (null !== a[c] && void 0 === a[c].v) {
|
|
@@ -1081,7 +1081,7 @@ function bc(b, a, c, d, e) {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
var n = "void" !== a[0].name, l = f - 2, t = Array(l), w = [], x = [];
|
|
1083
1083
|
return function() {
|
|
1084
|
-
arguments.length !== l &&
|
|
1084
|
+
arguments.length !== l && Q(`function ${b} called with ${arguments.length} arguments, expected ${l} args!`);
|
|
1085
1085
|
x.length = 0;
|
|
1086
1086
|
w.length = m ? 2 : 1;
|
|
1087
1087
|
w[0] = e;
|
|
@@ -1107,32 +1107,32 @@ function bc(b, a, c, d, e) {
|
|
|
1107
1107
|
}
|
|
1108
1108
|
function cc(b, a) {
|
|
1109
1109
|
for (var c = [], d = 0; d < b; d++) {
|
|
1110
|
-
c.push(
|
|
1110
|
+
c.push(M[a + 4 * d >> 2]);
|
|
1111
1111
|
}
|
|
1112
1112
|
return c;
|
|
1113
1113
|
}
|
|
1114
1114
|
function dc(b, a, c) {
|
|
1115
|
-
b instanceof Object ||
|
|
1116
|
-
b instanceof a.h.constructor ||
|
|
1117
|
-
b.g.i ||
|
|
1115
|
+
b instanceof Object || Q(`${c} with invalid "this": ${b}`);
|
|
1116
|
+
b instanceof a.h.constructor || Q(`${c} incompatible with "this" of type ${b.constructor.name}`);
|
|
1117
|
+
b.g.i || Q(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1118
1118
|
return Qb(b.g.i, b.g.j.h, a.h);
|
|
1119
1119
|
}
|
|
1120
1120
|
function ec(b) {
|
|
1121
|
-
b >=
|
|
1121
|
+
b >= P.ua && 0 === --P.get(b).Aa && P.$a(b);
|
|
1122
1122
|
}
|
|
1123
1123
|
function fc(b, a, c) {
|
|
1124
1124
|
switch(a) {
|
|
1125
1125
|
case 0:
|
|
1126
1126
|
return function(d) {
|
|
1127
|
-
return this.fromWireType((c ?
|
|
1127
|
+
return this.fromWireType((c ? Ca : J)[d]);
|
|
1128
1128
|
};
|
|
1129
1129
|
case 1:
|
|
1130
1130
|
return function(d) {
|
|
1131
|
-
return this.fromWireType((c ?
|
|
1131
|
+
return this.fromWireType((c ? Da : Ea)[d >> 1]);
|
|
1132
1132
|
};
|
|
1133
1133
|
case 2:
|
|
1134
1134
|
return function(d) {
|
|
1135
|
-
return this.fromWireType((c ?
|
|
1135
|
+
return this.fromWireType((c ? L : M)[d >> 2]);
|
|
1136
1136
|
};
|
|
1137
1137
|
default:
|
|
1138
1138
|
throw new TypeError("Unknown integer type: " + b);
|
|
@@ -1149,11 +1149,11 @@ function gc(b, a) {
|
|
|
1149
1149
|
switch(a) {
|
|
1150
1150
|
case 2:
|
|
1151
1151
|
return function(c) {
|
|
1152
|
-
return this.fromWireType(
|
|
1152
|
+
return this.fromWireType(Fa[c >> 2]);
|
|
1153
1153
|
};
|
|
1154
1154
|
case 3:
|
|
1155
1155
|
return function(c) {
|
|
1156
|
-
return this.fromWireType(
|
|
1156
|
+
return this.fromWireType(Ga[c >> 3]);
|
|
1157
1157
|
};
|
|
1158
1158
|
default:
|
|
1159
1159
|
throw new TypeError("Unknown float type: " + b);
|
|
@@ -1163,21 +1163,21 @@ function hc(b, a, c) {
|
|
|
1163
1163
|
switch(a) {
|
|
1164
1164
|
case 0:
|
|
1165
1165
|
return c ? function(d) {
|
|
1166
|
-
return
|
|
1166
|
+
return Ca[d];
|
|
1167
1167
|
} : function(d) {
|
|
1168
|
-
return
|
|
1168
|
+
return J[d];
|
|
1169
1169
|
};
|
|
1170
1170
|
case 1:
|
|
1171
1171
|
return c ? function(d) {
|
|
1172
|
-
return Ca[d >> 1];
|
|
1173
|
-
} : function(d) {
|
|
1174
1172
|
return Da[d >> 1];
|
|
1173
|
+
} : function(d) {
|
|
1174
|
+
return Ea[d >> 1];
|
|
1175
1175
|
};
|
|
1176
1176
|
case 2:
|
|
1177
1177
|
return c ? function(d) {
|
|
1178
|
-
return
|
|
1178
|
+
return L[d >> 2];
|
|
1179
1179
|
} : function(d) {
|
|
1180
|
-
return
|
|
1180
|
+
return M[d >> 2];
|
|
1181
1181
|
};
|
|
1182
1182
|
default:
|
|
1183
1183
|
throw new TypeError("Unknown integer type: " + b);
|
|
@@ -1255,16 +1255,16 @@ var ic = (b, a, c, d) => {
|
|
|
1255
1255
|
return d;
|
|
1256
1256
|
}, mc = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, nc = (b, a) => {
|
|
1257
1257
|
var c = b >> 1;
|
|
1258
|
-
for (var d = c + a / 2; !(c >= d) &&
|
|
1258
|
+
for (var d = c + a / 2; !(c >= d) && Ea[c];) {
|
|
1259
1259
|
++c;
|
|
1260
1260
|
}
|
|
1261
1261
|
c <<= 1;
|
|
1262
1262
|
if (32 < c - b && mc) {
|
|
1263
|
-
return mc.decode(
|
|
1263
|
+
return mc.decode(J.subarray(b, c));
|
|
1264
1264
|
}
|
|
1265
1265
|
c = "";
|
|
1266
1266
|
for (d = 0; !(d >= a / 2); ++d) {
|
|
1267
|
-
var e =
|
|
1267
|
+
var e = Da[b + 2 * d >> 1];
|
|
1268
1268
|
if (0 == e) {
|
|
1269
1269
|
break;
|
|
1270
1270
|
}
|
|
@@ -1280,13 +1280,13 @@ var ic = (b, a, c, d) => {
|
|
|
1280
1280
|
var d = a;
|
|
1281
1281
|
c = c < 2 * b.length ? c / 2 : b.length;
|
|
1282
1282
|
for (var e = 0; e < c; ++e) {
|
|
1283
|
-
|
|
1283
|
+
Da[a >> 1] = b.charCodeAt(e), a += 2;
|
|
1284
1284
|
}
|
|
1285
|
-
|
|
1285
|
+
Da[a >> 1] = 0;
|
|
1286
1286
|
return a - d;
|
|
1287
1287
|
}, rc = b => 2 * b.length, sc = (b, a) => {
|
|
1288
1288
|
for (var c = 0, d = ""; !(c >= a / 4);) {
|
|
1289
|
-
var e =
|
|
1289
|
+
var e = L[b + 4 * c >> 2];
|
|
1290
1290
|
if (0 == e) {
|
|
1291
1291
|
break;
|
|
1292
1292
|
}
|
|
@@ -1307,13 +1307,13 @@ var ic = (b, a, c, d) => {
|
|
|
1307
1307
|
var m = b.charCodeAt(++e);
|
|
1308
1308
|
f = 65536 + ((f & 1023) << 10) | m & 1023;
|
|
1309
1309
|
}
|
|
1310
|
-
|
|
1310
|
+
L[a >> 2] = f;
|
|
1311
1311
|
a += 4;
|
|
1312
1312
|
if (a + 4 > c) {
|
|
1313
1313
|
break;
|
|
1314
1314
|
}
|
|
1315
1315
|
}
|
|
1316
|
-
|
|
1316
|
+
L[a >> 2] = 0;
|
|
1317
1317
|
return a - d;
|
|
1318
1318
|
}, uc = b => {
|
|
1319
1319
|
for (var a = 0, c = 0; c < b.length; ++c) {
|
|
@@ -1335,7 +1335,7 @@ function yc(b) {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
function zc(b, a) {
|
|
1337
1337
|
for (var c = Array(b), d = 0; d < b; ++d) {
|
|
1338
|
-
c[d] = nb(
|
|
1338
|
+
c[d] = nb(M[a + 4 * d >> 2], "parameter " + d);
|
|
1339
1339
|
}
|
|
1340
1340
|
return c;
|
|
1341
1341
|
}
|
|
@@ -1410,9 +1410,9 @@ var Jc = (b, a, c, d) => {
|
|
|
1410
1410
|
q = k(q);
|
|
1411
1411
|
return 0 >= m(r, g) ? 0 >= m(q, g) ? g.getFullYear() + 1 : g.getFullYear() : g.getFullYear() - 1;
|
|
1412
1412
|
}
|
|
1413
|
-
var l =
|
|
1414
|
-
d = {qb:
|
|
1415
|
-
c = c ? lc(
|
|
1413
|
+
var l = L[d + 40 >> 2];
|
|
1414
|
+
d = {qb:L[d >> 2], pb:L[d + 4 >> 2], Z:L[d + 8 >> 2], ha:L[d + 12 >> 2], $:L[d + 16 >> 2], K:L[d + 20 >> 2], C:L[d + 24 >> 2], J:L[d + 28 >> 2], ub:L[d + 32 >> 2], ob:L[d + 36 >> 2], rb:l ? l ? lc(J, l) : "" : ""};
|
|
1415
|
+
c = c ? lc(J, c) : "";
|
|
1416
1416
|
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",};
|
|
1417
1417
|
for (var t in l) {
|
|
1418
1418
|
c = c.replace(new RegExp(t, "g"), l[t]);
|
|
@@ -1452,10 +1452,10 @@ var Jc = (b, a, c, d) => {
|
|
|
1452
1452
|
if (t.length > a) {
|
|
1453
1453
|
return 0;
|
|
1454
1454
|
}
|
|
1455
|
-
|
|
1455
|
+
Ca.set(t, b);
|
|
1456
1456
|
return t.length - 1;
|
|
1457
1457
|
};
|
|
1458
|
-
Object.assign(
|
|
1458
|
+
Object.assign($a.prototype, {get(b) {
|
|
1459
1459
|
return this.G[b];
|
|
1460
1460
|
}, has(b) {
|
|
1461
1461
|
return void 0 !== this.G[b];
|
|
@@ -1467,17 +1467,17 @@ Object.assign(Za.prototype, {get(b) {
|
|
|
1467
1467
|
this.G[b] = void 0;
|
|
1468
1468
|
this.ta.push(b);
|
|
1469
1469
|
}});
|
|
1470
|
-
|
|
1470
|
+
ab = h.BindingError = class extends Error {
|
|
1471
1471
|
constructor(b) {
|
|
1472
1472
|
super(b);
|
|
1473
1473
|
this.name = "BindingError";
|
|
1474
1474
|
}
|
|
1475
1475
|
};
|
|
1476
|
-
|
|
1477
|
-
|
|
1476
|
+
P.G.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
1477
|
+
P.ua = P.G.length;
|
|
1478
1478
|
h.count_emval_handles = function() {
|
|
1479
|
-
for (var b = 0, a =
|
|
1480
|
-
void 0 !==
|
|
1479
|
+
for (var b = 0, a = P.ua; a < P.G.length; ++a) {
|
|
1480
|
+
void 0 !== P.G[a] && ++b;
|
|
1481
1481
|
}
|
|
1482
1482
|
return b;
|
|
1483
1483
|
};
|
|
@@ -1533,7 +1533,7 @@ Mb.prototype.clone = function() {
|
|
|
1533
1533
|
};
|
|
1534
1534
|
Mb.prototype["delete"] = function() {
|
|
1535
1535
|
this.g.i || Lb(this);
|
|
1536
|
-
this.g.M && !this.g.O &&
|
|
1536
|
+
this.g.M && !this.g.O && Q("Object already scheduled for deletion");
|
|
1537
1537
|
ob(this);
|
|
1538
1538
|
qb(this.g);
|
|
1539
1539
|
this.g.O || (this.g.s = void 0, this.g.i = void 0);
|
|
@@ -1543,7 +1543,7 @@ Mb.prototype.isDeleted = function() {
|
|
|
1543
1543
|
};
|
|
1544
1544
|
Mb.prototype.deleteLater = function() {
|
|
1545
1545
|
this.g.i || Lb(this);
|
|
1546
|
-
this.g.M && !this.g.O &&
|
|
1546
|
+
this.g.M && !this.g.O && Q("Object already scheduled for deletion");
|
|
1547
1547
|
eb.push(this);
|
|
1548
1548
|
1 === eb.length && gb && gb(fb);
|
|
1549
1549
|
this.g.M = !0;
|
|
@@ -1593,9 +1593,9 @@ $b = h.UnboundTypeError = bb("UnboundTypeError");
|
|
|
1593
1593
|
var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
1594
1594
|
b = U(b);
|
|
1595
1595
|
a = nb(a, "wrapper");
|
|
1596
|
-
c =
|
|
1596
|
+
c = R(c);
|
|
1597
1597
|
var d = [].slice, e = a.h, f = e.B, m = e.l.B, k = e.l.constructor;
|
|
1598
|
-
b =
|
|
1598
|
+
b = Za(b, function() {
|
|
1599
1599
|
e.l.ya.forEach(function(l) {
|
|
1600
1600
|
if (this[l] === m[l]) {
|
|
1601
1601
|
throw new cb(`Pure virtual function ${l} must be implemented in JavaScript`);
|
|
@@ -1605,7 +1605,7 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1605
1605
|
this.__construct.apply(this, d.call(arguments));
|
|
1606
1606
|
});
|
|
1607
1607
|
f.__construct = function() {
|
|
1608
|
-
this === f &&
|
|
1608
|
+
this === f && Q("Pass correct 'this' to __construct");
|
|
1609
1609
|
var l = k.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
1610
1610
|
ob(l);
|
|
1611
1611
|
var t = l.g;
|
|
@@ -1615,20 +1615,20 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1615
1615
|
Cb(this);
|
|
1616
1616
|
l = t.i;
|
|
1617
1617
|
l = ib(e, l);
|
|
1618
|
-
hb.hasOwnProperty(l) ?
|
|
1618
|
+
hb.hasOwnProperty(l) ? Q(`Tried to register registered instance: ${l}`) : hb[l] = this;
|
|
1619
1619
|
};
|
|
1620
1620
|
f.__destruct = function() {
|
|
1621
|
-
this === f &&
|
|
1621
|
+
this === f && Q("Pass correct 'this' to __destruct");
|
|
1622
1622
|
ob(this);
|
|
1623
1623
|
var l = this.g.i;
|
|
1624
1624
|
l = ib(e, l);
|
|
1625
|
-
hb.hasOwnProperty(l) ? delete hb[l] :
|
|
1625
|
+
hb.hasOwnProperty(l) ? delete hb[l] : Q(`Tried to unregister unregistered instance: ${l}`);
|
|
1626
1626
|
};
|
|
1627
1627
|
b.prototype = Object.create(f);
|
|
1628
1628
|
for (var n in c) {
|
|
1629
1629
|
b.prototype[n] = c[n];
|
|
1630
1630
|
}
|
|
1631
|
-
return
|
|
1631
|
+
return S(b);
|
|
1632
1632
|
}, _embind_finalize_value_object:function(b) {
|
|
1633
1633
|
var a = Db[b];
|
|
1634
1634
|
delete Db[b];
|
|
@@ -1674,11 +1674,11 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1674
1674
|
return k ? d : e;
|
|
1675
1675
|
}, argPackAdvance:8, readValueFromPointer:function(m) {
|
|
1676
1676
|
if (1 === c) {
|
|
1677
|
-
var k =
|
|
1677
|
+
var k = Ca;
|
|
1678
1678
|
} else if (2 === c) {
|
|
1679
|
-
k =
|
|
1679
|
+
k = Da;
|
|
1680
1680
|
} else if (4 === c) {
|
|
1681
|
-
k =
|
|
1681
|
+
k = L;
|
|
1682
1682
|
} else {
|
|
1683
1683
|
throw new TypeError("Unknown boolean type size: " + a);
|
|
1684
1684
|
}
|
|
@@ -1686,11 +1686,11 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1686
1686
|
}, v:null,});
|
|
1687
1687
|
}, _embind_register_class:function(b, a, c, d, e, f, m, k, n, l, t, w, x) {
|
|
1688
1688
|
t = U(t);
|
|
1689
|
-
f =
|
|
1690
|
-
k && (k =
|
|
1691
|
-
l && (l =
|
|
1692
|
-
x =
|
|
1693
|
-
var g =
|
|
1689
|
+
f = W(e, f);
|
|
1690
|
+
k && (k = W(m, k));
|
|
1691
|
+
l && (l = W(n, l));
|
|
1692
|
+
x = W(w, x);
|
|
1693
|
+
var g = Ya(t);
|
|
1694
1694
|
Ob(g, function() {
|
|
1695
1695
|
ac(`Cannot construct ${t} due to unbound types`, [d]);
|
|
1696
1696
|
});
|
|
@@ -1702,16 +1702,16 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1702
1702
|
} else {
|
|
1703
1703
|
G = Mb.prototype;
|
|
1704
1704
|
}
|
|
1705
|
-
r =
|
|
1705
|
+
r = Za(g, function() {
|
|
1706
1706
|
if (Object.getPrototypeOf(this) !== D) {
|
|
1707
|
-
throw new
|
|
1707
|
+
throw new ab("Use 'new' to construct " + t);
|
|
1708
1708
|
}
|
|
1709
1709
|
if (void 0 === v.I) {
|
|
1710
|
-
throw new
|
|
1710
|
+
throw new ab(t + " has no accessible constructor");
|
|
1711
1711
|
}
|
|
1712
1712
|
var O = v.I[arguments.length];
|
|
1713
1713
|
if (void 0 === O) {
|
|
1714
|
-
throw new
|
|
1714
|
+
throw new ab(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(v.I).toString()}) parameters instead!`);
|
|
1715
1715
|
}
|
|
1716
1716
|
return O.apply(this, arguments);
|
|
1717
1717
|
});
|
|
@@ -1729,7 +1729,7 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1729
1729
|
}, _embind_register_class_class_function:function(b, a, c, d, e, f, m) {
|
|
1730
1730
|
var k = cc(c, d);
|
|
1731
1731
|
a = U(a);
|
|
1732
|
-
f =
|
|
1732
|
+
f = W(e, f);
|
|
1733
1733
|
V([], [b], function(n) {
|
|
1734
1734
|
function l() {
|
|
1735
1735
|
ac(`Cannot call ${t} due to unbound types`, k);
|
|
@@ -1753,7 +1753,7 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1753
1753
|
});
|
|
1754
1754
|
}, _embind_register_class_class_property:function(b, a, c, d, e, f, m, k) {
|
|
1755
1755
|
a = U(a);
|
|
1756
|
-
f =
|
|
1756
|
+
f = W(e, f);
|
|
1757
1757
|
V([], [b], function(n) {
|
|
1758
1758
|
n = n[0];
|
|
1759
1759
|
var l = `${n.name}.${a}`, t = {get() {
|
|
@@ -1762,7 +1762,7 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1762
1762
|
t.set = k ? () => {
|
|
1763
1763
|
ac(`Cannot access ${l} due to unbound types`, [c]);
|
|
1764
1764
|
} : () => {
|
|
1765
|
-
|
|
1765
|
+
Q(`${l} is a read-only property`);
|
|
1766
1766
|
};
|
|
1767
1767
|
Object.defineProperty(n.h.constructor, a, t);
|
|
1768
1768
|
V([], [c], function(w) {
|
|
@@ -1770,7 +1770,7 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1770
1770
|
var x = {get() {
|
|
1771
1771
|
return w.fromWireType(f(d));
|
|
1772
1772
|
}, enumerable:!0};
|
|
1773
|
-
k && (k =
|
|
1773
|
+
k && (k = W(m, k), x.set = g => {
|
|
1774
1774
|
var r = [];
|
|
1775
1775
|
k(d, w.toWireType(r, g));
|
|
1776
1776
|
Eb(r);
|
|
@@ -1782,13 +1782,13 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1782
1782
|
});
|
|
1783
1783
|
}, _embind_register_class_constructor:function(b, a, c, d, e, f) {
|
|
1784
1784
|
var m = cc(a, c);
|
|
1785
|
-
e =
|
|
1785
|
+
e = W(d, e);
|
|
1786
1786
|
V([], [b], function(k) {
|
|
1787
1787
|
k = k[0];
|
|
1788
1788
|
var n = `constructor ${k.name}`;
|
|
1789
1789
|
void 0 === k.h.I && (k.h.I = []);
|
|
1790
1790
|
if (void 0 !== k.h.I[a - 1]) {
|
|
1791
|
-
throw new
|
|
1791
|
+
throw new ab(`Cannot register multiple constructors with identical number of parameters (${a - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
1792
1792
|
}
|
|
1793
1793
|
k.h.I[a - 1] = () => {
|
|
1794
1794
|
ac(`Cannot construct ${k.name} due to unbound types`, m);
|
|
@@ -1803,7 +1803,7 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1803
1803
|
}, _embind_register_class_function:function(b, a, c, d, e, f, m, k) {
|
|
1804
1804
|
var n = cc(c, d);
|
|
1805
1805
|
a = U(a);
|
|
1806
|
-
f =
|
|
1806
|
+
f = W(e, f);
|
|
1807
1807
|
V([], [b], function(l) {
|
|
1808
1808
|
function t() {
|
|
1809
1809
|
ac(`Cannot call ${w} due to unbound types`, n);
|
|
@@ -1823,7 +1823,7 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1823
1823
|
});
|
|
1824
1824
|
}, _embind_register_class_property:function(b, a, c, d, e, f, m, k, n, l) {
|
|
1825
1825
|
a = U(a);
|
|
1826
|
-
e =
|
|
1826
|
+
e = W(d, e);
|
|
1827
1827
|
V([], [b], function(t) {
|
|
1828
1828
|
t = t[0];
|
|
1829
1829
|
var w = `${t.name}.${a}`, x = {get() {
|
|
@@ -1832,7 +1832,7 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1832
1832
|
x.set = n ? () => {
|
|
1833
1833
|
ac(`Cannot access ${w} due to unbound types`, [c, m]);
|
|
1834
1834
|
} : () => {
|
|
1835
|
-
|
|
1835
|
+
Q(w + " is a read-only property");
|
|
1836
1836
|
};
|
|
1837
1837
|
Object.defineProperty(t.h.B, a, x);
|
|
1838
1838
|
V([], n ? [c, m] : [c], function(g) {
|
|
@@ -1841,7 +1841,7 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1841
1841
|
return r.fromWireType(e(f, D));
|
|
1842
1842
|
}, enumerable:!0};
|
|
1843
1843
|
if (n) {
|
|
1844
|
-
n =
|
|
1844
|
+
n = W(k, n);
|
|
1845
1845
|
var G = g[1];
|
|
1846
1846
|
q.set = function(D) {
|
|
1847
1847
|
var v = dc(this, t, w + " setter"), I = [];
|
|
@@ -1857,11 +1857,11 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1857
1857
|
}, _embind_register_emval:function(b, a) {
|
|
1858
1858
|
a = U(a);
|
|
1859
1859
|
Ib(b, {name:a, fromWireType:function(c) {
|
|
1860
|
-
var d =
|
|
1860
|
+
var d = R(c);
|
|
1861
1861
|
ec(c);
|
|
1862
1862
|
return d;
|
|
1863
1863
|
}, toWireType:function(c, d) {
|
|
1864
|
-
return
|
|
1864
|
+
return S(d);
|
|
1865
1865
|
}, argPackAdvance:8, readValueFromPointer:Fb, v:null,});
|
|
1866
1866
|
}, _embind_register_enum:function(b, a, c, d) {
|
|
1867
1867
|
function e() {
|
|
@@ -1879,7 +1879,7 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1879
1879
|
var d = nb(b, "enum");
|
|
1880
1880
|
a = U(a);
|
|
1881
1881
|
b = d.constructor;
|
|
1882
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:
|
|
1882
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Za(`${d.name}_${a}`, function() {
|
|
1883
1883
|
})},});
|
|
1884
1884
|
b.values[c] = d;
|
|
1885
1885
|
b[a] = d;
|
|
@@ -1894,7 +1894,7 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1894
1894
|
}, _embind_register_function:function(b, a, c, d, e, f) {
|
|
1895
1895
|
var m = cc(a, c);
|
|
1896
1896
|
b = U(b);
|
|
1897
|
-
e =
|
|
1897
|
+
e = W(d, e);
|
|
1898
1898
|
Ob(b, function() {
|
|
1899
1899
|
ac(`Cannot call ${b} due to unbound types`, m);
|
|
1900
1900
|
}, a - 1);
|
|
@@ -1920,7 +1920,7 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1920
1920
|
}, _embind_register_memory_view:function(b, a, c) {
|
|
1921
1921
|
function d(f) {
|
|
1922
1922
|
f >>= 2;
|
|
1923
|
-
var m =
|
|
1923
|
+
var m = M;
|
|
1924
1924
|
return new e(m.buffer, m[f + 1], m[f]);
|
|
1925
1925
|
}
|
|
1926
1926
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][a];
|
|
@@ -1930,12 +1930,12 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1930
1930
|
a = U(a);
|
|
1931
1931
|
var c = "std::string" === a;
|
|
1932
1932
|
Ib(b, {name:a, fromWireType:function(d) {
|
|
1933
|
-
var e =
|
|
1933
|
+
var e = M[d >> 2], f = d + 4;
|
|
1934
1934
|
if (c) {
|
|
1935
1935
|
for (var m = f, k = 0; k <= e; ++k) {
|
|
1936
1936
|
var n = f + k;
|
|
1937
|
-
if (k == e || 0 ==
|
|
1938
|
-
m = m ? lc(
|
|
1937
|
+
if (k == e || 0 == J[n]) {
|
|
1938
|
+
m = m ? lc(J, m, n - m) : "";
|
|
1939
1939
|
if (void 0 === l) {
|
|
1940
1940
|
var l = m;
|
|
1941
1941
|
} else {
|
|
@@ -1947,7 +1947,7 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1947
1947
|
} else {
|
|
1948
1948
|
l = Array(e);
|
|
1949
1949
|
for (k = 0; k < e; ++k) {
|
|
1950
|
-
l[k] = String.fromCharCode(
|
|
1950
|
+
l[k] = String.fromCharCode(J[f + k]);
|
|
1951
1951
|
}
|
|
1952
1952
|
l = l.join("");
|
|
1953
1953
|
}
|
|
@@ -1956,22 +1956,22 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1956
1956
|
}, toWireType:function(d, e) {
|
|
1957
1957
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
1958
1958
|
var f = "string" == typeof e;
|
|
1959
|
-
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array ||
|
|
1959
|
+
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || Q("Cannot pass non-string to std::string");
|
|
1960
1960
|
var m = c && f ? jc(e) : e.length;
|
|
1961
1961
|
var k = Mc(4 + m + 1), n = k + 4;
|
|
1962
|
-
|
|
1962
|
+
M[k >> 2] = m;
|
|
1963
1963
|
if (c && f) {
|
|
1964
|
-
ic(e,
|
|
1964
|
+
ic(e, J, n, m + 1);
|
|
1965
1965
|
} else {
|
|
1966
1966
|
if (f) {
|
|
1967
1967
|
for (f = 0; f < m; ++f) {
|
|
1968
1968
|
var l = e.charCodeAt(f);
|
|
1969
|
-
255 < l && (mb(n),
|
|
1970
|
-
|
|
1969
|
+
255 < l && (mb(n), Q("String has UTF-16 code units that do not fit in 8 bits"));
|
|
1970
|
+
J[n + f] = l;
|
|
1971
1971
|
}
|
|
1972
1972
|
} else {
|
|
1973
1973
|
for (f = 0; f < m; ++f) {
|
|
1974
|
-
|
|
1974
|
+
J[n + f] = e[f];
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
@@ -1986,13 +1986,13 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1986
1986
|
var d = nc;
|
|
1987
1987
|
var e = qc;
|
|
1988
1988
|
var f = rc;
|
|
1989
|
-
var m = () =>
|
|
1989
|
+
var m = () => Ea;
|
|
1990
1990
|
var k = 1;
|
|
1991
1991
|
} else {
|
|
1992
|
-
4 === a && (d = sc, e = tc, f = uc, m = () =>
|
|
1992
|
+
4 === a && (d = sc, e = tc, f = uc, m = () => M, k = 2);
|
|
1993
1993
|
}
|
|
1994
1994
|
Ib(b, {name:c, fromWireType:function(n) {
|
|
1995
|
-
for (var l =
|
|
1995
|
+
for (var l = M[n >> 2], t = m(), w, x = n + 4, g = 0; g <= l; ++g) {
|
|
1996
1996
|
var r = n + 4 + g * a;
|
|
1997
1997
|
if (g == l || 0 == t[r >> k]) {
|
|
1998
1998
|
x = d(x, r - x), void 0 === w ? w = x : (w += String.fromCharCode(0), w += x), x = r + a;
|
|
@@ -2001,9 +2001,9 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2001
2001
|
mb(n);
|
|
2002
2002
|
return w;
|
|
2003
2003
|
}, toWireType:function(n, l) {
|
|
2004
|
-
"string" != typeof l &&
|
|
2004
|
+
"string" != typeof l && Q(`Cannot pass non-string to C++ string type ${c}`);
|
|
2005
2005
|
var t = f(l), w = Mc(4 + t + a);
|
|
2006
|
-
|
|
2006
|
+
M[w >> 2] = t >> k;
|
|
2007
2007
|
e(l, w + 4, t + a);
|
|
2008
2008
|
null !== n && n.push(mb, w);
|
|
2009
2009
|
return w;
|
|
@@ -2011,30 +2011,30 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2011
2011
|
mb(n);
|
|
2012
2012
|
},});
|
|
2013
2013
|
}, _embind_register_value_object:function(b, a, c, d, e, f) {
|
|
2014
|
-
Db[b] = {name:U(a), fa:
|
|
2014
|
+
Db[b] = {name:U(a), fa:W(c, d), H:W(e, f), sa:[],};
|
|
2015
2015
|
}, _embind_register_value_object_field:function(b, a, c, d, e, f, m, k, n, l) {
|
|
2016
|
-
Db[b].sa.push({Sa:U(a), Ya:c, Wa:
|
|
2016
|
+
Db[b].sa.push({Sa:U(a), Ya:c, Wa:W(d, e), Xa:f, lb:m, kb:W(k, n), mb:l,});
|
|
2017
2017
|
}, _embind_register_void:function(b, a) {
|
|
2018
2018
|
a = U(a);
|
|
2019
2019
|
Ib(b, {cb:!0, name:a, argPackAdvance:0, fromWireType:function() {
|
|
2020
2020
|
}, toWireType:function() {
|
|
2021
2021
|
},});
|
|
2022
2022
|
}, _emscripten_get_now_is_monotonic:() => !0, _emval_as:function(b, a, c) {
|
|
2023
|
-
b =
|
|
2023
|
+
b = R(b);
|
|
2024
2024
|
a = nb(a, "emval::as");
|
|
2025
|
-
var d = [], e =
|
|
2026
|
-
|
|
2025
|
+
var d = [], e = S(d);
|
|
2026
|
+
M[c >> 2] = e;
|
|
2027
2027
|
return a.toWireType(d, b);
|
|
2028
2028
|
}, _emval_call_method:function(b, a, c, d, e) {
|
|
2029
2029
|
b = xc[b];
|
|
2030
|
-
a =
|
|
2030
|
+
a = R(a);
|
|
2031
2031
|
c = wc(c);
|
|
2032
2032
|
var f = [];
|
|
2033
|
-
|
|
2033
|
+
M[d >> 2] = S(f);
|
|
2034
2034
|
return b(a, c, f, e);
|
|
2035
2035
|
}, _emval_call_void_method:function(b, a, c, d) {
|
|
2036
2036
|
b = xc[b];
|
|
2037
|
-
a =
|
|
2037
|
+
a = R(a);
|
|
2038
2038
|
c = wc(c);
|
|
2039
2039
|
b(a, c, null, d);
|
|
2040
2040
|
}, _emval_decref:ec, _emval_get_method_caller:function(b, a) {
|
|
@@ -2062,36 +2062,38 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2062
2062
|
return Ac[a] = e;
|
|
2063
2063
|
}, _emval_get_module_property:function(b) {
|
|
2064
2064
|
b = wc(b);
|
|
2065
|
-
return
|
|
2065
|
+
return S(h[b]);
|
|
2066
2066
|
}, _emval_get_property:function(b, a) {
|
|
2067
|
-
b =
|
|
2068
|
-
a =
|
|
2069
|
-
return
|
|
2067
|
+
b = R(b);
|
|
2068
|
+
a = R(a);
|
|
2069
|
+
return S(b[a]);
|
|
2070
2070
|
}, _emval_incref:function(b) {
|
|
2071
|
-
4 < b && (
|
|
2071
|
+
4 < b && (P.get(b).Aa += 1);
|
|
2072
|
+
}, _emval_new_array:function() {
|
|
2073
|
+
return S([]);
|
|
2072
2074
|
}, _emval_new_cstring:function(b) {
|
|
2073
|
-
return
|
|
2075
|
+
return S(wc(b));
|
|
2074
2076
|
}, _emval_new_object:function() {
|
|
2075
|
-
return
|
|
2077
|
+
return S({});
|
|
2076
2078
|
}, _emval_run_destructors:function(b) {
|
|
2077
|
-
var a =
|
|
2079
|
+
var a = R(b);
|
|
2078
2080
|
Eb(a);
|
|
2079
2081
|
ec(b);
|
|
2080
2082
|
}, _emval_set_property:function(b, a, c) {
|
|
2081
|
-
b =
|
|
2082
|
-
a =
|
|
2083
|
-
c =
|
|
2083
|
+
b = R(b);
|
|
2084
|
+
a = R(a);
|
|
2085
|
+
c = R(c);
|
|
2084
2086
|
b[a] = c;
|
|
2085
2087
|
}, _emval_take_value:function(b, a) {
|
|
2086
2088
|
b = nb(b, "_emval_take_value");
|
|
2087
2089
|
b = b.readValueFromPointer(a);
|
|
2088
|
-
return
|
|
2090
|
+
return S(b);
|
|
2089
2091
|
}, abort:() => {
|
|
2090
|
-
|
|
2092
|
+
za("");
|
|
2091
2093
|
}, emscripten_date_now:function() {
|
|
2092
2094
|
return Date.now();
|
|
2093
|
-
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(b, a, c) =>
|
|
2094
|
-
var a =
|
|
2095
|
+
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(b, a, c) => J.copyWithin(b, a, a + c), emscripten_resize_heap:b => {
|
|
2096
|
+
var a = J.length;
|
|
2095
2097
|
b >>>= 0;
|
|
2096
2098
|
if (2147483648 < b) {
|
|
2097
2099
|
return !1;
|
|
@@ -2102,10 +2104,10 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2102
2104
|
var e = Math;
|
|
2103
2105
|
d = Math.max(b, d);
|
|
2104
2106
|
a: {
|
|
2105
|
-
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
2107
|
+
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Aa.buffer.byteLength + 65535 >>> 16;
|
|
2106
2108
|
try {
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
+
Aa.grow(e);
|
|
2110
|
+
Ha();
|
|
2109
2111
|
var f = 1;
|
|
2110
2112
|
break a;
|
|
2111
2113
|
} catch (m) {
|
|
@@ -2121,85 +2123,85 @@ var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2121
2123
|
var c = 0;
|
|
2122
2124
|
Dc().forEach(function(d, e) {
|
|
2123
2125
|
var f = a + c;
|
|
2124
|
-
e =
|
|
2126
|
+
e = M[b + 4 * e >> 2] = f;
|
|
2125
2127
|
for (f = 0; f < d.length; ++f) {
|
|
2126
|
-
|
|
2128
|
+
Ca[e++ >> 0] = d.charCodeAt(f);
|
|
2127
2129
|
}
|
|
2128
|
-
|
|
2130
|
+
Ca[e >> 0] = 0;
|
|
2129
2131
|
c += d.length + 1;
|
|
2130
2132
|
});
|
|
2131
2133
|
return 0;
|
|
2132
2134
|
}, environ_sizes_get:(b, a) => {
|
|
2133
2135
|
var c = Dc();
|
|
2134
|
-
|
|
2136
|
+
M[b >> 2] = c.length;
|
|
2135
2137
|
var d = 0;
|
|
2136
2138
|
c.forEach(function(e) {
|
|
2137
2139
|
d += e.length + 1;
|
|
2138
2140
|
});
|
|
2139
|
-
|
|
2141
|
+
M[a >> 2] = d;
|
|
2140
2142
|
return 0;
|
|
2141
2143
|
}, fd_close:() => 52, fd_seek:function() {
|
|
2142
2144
|
return 70;
|
|
2143
2145
|
}, fd_write:(b, a, c, d) => {
|
|
2144
2146
|
for (var e = 0, f = 0; f < c; f++) {
|
|
2145
|
-
var m =
|
|
2147
|
+
var m = M[a >> 2], k = M[a + 4 >> 2];
|
|
2146
2148
|
a += 8;
|
|
2147
2149
|
for (var n = 0; n < k; n++) {
|
|
2148
|
-
var l =
|
|
2149
|
-
0 === l || 10 === l ? ((1 === b ?
|
|
2150
|
+
var l = J[m + n], t = Ec[b];
|
|
2151
|
+
0 === l || 10 === l ? ((1 === b ? ua : va)(lc(t, 0)), t.length = 0) : t.push(l);
|
|
2150
2152
|
}
|
|
2151
2153
|
e += k;
|
|
2152
2154
|
}
|
|
2153
|
-
|
|
2155
|
+
M[d >> 2] = e;
|
|
2154
2156
|
return 0;
|
|
2155
2157
|
}, strftime_l:(b, a, c, d) => Jc(b, a, c, d)};
|
|
2156
2158
|
(function() {
|
|
2157
2159
|
function b(c) {
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
h.monitorRunDependencies && h.monitorRunDependencies(
|
|
2165
|
-
if (0 ==
|
|
2166
|
-
var d =
|
|
2167
|
-
|
|
2160
|
+
z = c = c.exports;
|
|
2161
|
+
Aa = z.memory;
|
|
2162
|
+
Ha();
|
|
2163
|
+
Ia = z.__indirect_function_table;
|
|
2164
|
+
Ka.unshift(z.__wasm_call_ctors);
|
|
2165
|
+
Na--;
|
|
2166
|
+
h.monitorRunDependencies && h.monitorRunDependencies(Na);
|
|
2167
|
+
if (0 == Na && (null !== Oa && (clearInterval(Oa), Oa = null), Pa)) {
|
|
2168
|
+
var d = Pa;
|
|
2169
|
+
Pa = null;
|
|
2168
2170
|
d();
|
|
2169
2171
|
}
|
|
2170
2172
|
return c;
|
|
2171
2173
|
}
|
|
2172
2174
|
var a = {env:Nc, wasi_snapshot_preview1:Nc,};
|
|
2173
|
-
|
|
2174
|
-
h.monitorRunDependencies && h.monitorRunDependencies(
|
|
2175
|
+
Na++;
|
|
2176
|
+
h.monitorRunDependencies && h.monitorRunDependencies(Na);
|
|
2175
2177
|
if (h.instantiateWasm) {
|
|
2176
2178
|
try {
|
|
2177
2179
|
return h.instantiateWasm(a, b);
|
|
2178
2180
|
} catch (c) {
|
|
2179
|
-
|
|
2181
|
+
va("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
2180
2182
|
}
|
|
2181
2183
|
}
|
|
2182
|
-
|
|
2184
|
+
Wa(a, function(c) {
|
|
2183
2185
|
b(c.instance);
|
|
2184
2186
|
}).catch(ba);
|
|
2185
2187
|
return {};
|
|
2186
2188
|
})();
|
|
2187
|
-
var mb = b => (mb =
|
|
2188
|
-
h.__embind_initialize_bindings = () => (h.__embind_initialize_bindings =
|
|
2189
|
-
h.dynCall_jiji = (b, a, c, d, e) => (h.dynCall_jiji =
|
|
2190
|
-
h.dynCall_viijii = (b, a, c, d, e, f, m) => (h.dynCall_viijii =
|
|
2191
|
-
h.dynCall_iiiiij = (b, a, c, d, e, f, m) => (h.dynCall_iiiiij =
|
|
2192
|
-
h.dynCall_iiiiijj = (b, a, c, d, e, f, m, k, n) => (h.dynCall_iiiiijj =
|
|
2193
|
-
h.dynCall_iiiiiijj = (b, a, c, d, e, f, m, k, n, l) => (h.dynCall_iiiiiijj =
|
|
2189
|
+
var mb = b => (mb = z.free)(b), Mc = b => (Mc = z.malloc)(b), lb = b => (lb = z.__getTypeName)(b);
|
|
2190
|
+
h.__embind_initialize_bindings = () => (h.__embind_initialize_bindings = z._embind_initialize_bindings)();
|
|
2191
|
+
h.dynCall_jiji = (b, a, c, d, e) => (h.dynCall_jiji = z.dynCall_jiji)(b, a, c, d, e);
|
|
2192
|
+
h.dynCall_viijii = (b, a, c, d, e, f, m) => (h.dynCall_viijii = z.dynCall_viijii)(b, a, c, d, e, f, m);
|
|
2193
|
+
h.dynCall_iiiiij = (b, a, c, d, e, f, m) => (h.dynCall_iiiiij = z.dynCall_iiiiij)(b, a, c, d, e, f, m);
|
|
2194
|
+
h.dynCall_iiiiijj = (b, a, c, d, e, f, m, k, n) => (h.dynCall_iiiiijj = z.dynCall_iiiiijj)(b, a, c, d, e, f, m, k, n);
|
|
2195
|
+
h.dynCall_iiiiiijj = (b, a, c, d, e, f, m, k, n, l) => (h.dynCall_iiiiiijj = z.dynCall_iiiiiijj)(b, a, c, d, e, f, m, k, n, l);
|
|
2194
2196
|
var Oc;
|
|
2195
|
-
|
|
2197
|
+
Pa = function Pc() {
|
|
2196
2198
|
Oc || Qc();
|
|
2197
|
-
Oc || (
|
|
2199
|
+
Oc || (Pa = Pc);
|
|
2198
2200
|
};
|
|
2199
2201
|
function Qc() {
|
|
2200
2202
|
function b() {
|
|
2201
|
-
if (!Oc && (Oc = !0, h.calledRun = !0, !
|
|
2202
|
-
|
|
2203
|
+
if (!Oc && (Oc = !0, h.calledRun = !0, !Ba)) {
|
|
2204
|
+
Xa(Ka);
|
|
2203
2205
|
aa(h);
|
|
2204
2206
|
if (h.onRuntimeInitialized) {
|
|
2205
2207
|
h.onRuntimeInitialized();
|
|
@@ -2207,20 +2209,20 @@ function Qc() {
|
|
|
2207
2209
|
if (h.postRun) {
|
|
2208
2210
|
for ("function" == typeof h.postRun && (h.postRun = [h.postRun]); h.postRun.length;) {
|
|
2209
2211
|
var a = h.postRun.shift();
|
|
2210
|
-
|
|
2212
|
+
La.unshift(a);
|
|
2211
2213
|
}
|
|
2212
2214
|
}
|
|
2213
|
-
|
|
2215
|
+
Xa(La);
|
|
2214
2216
|
}
|
|
2215
2217
|
}
|
|
2216
|
-
if (!(0 <
|
|
2218
|
+
if (!(0 < Na)) {
|
|
2217
2219
|
if (h.preRun) {
|
|
2218
2220
|
for ("function" == typeof h.preRun && (h.preRun = [h.preRun]); h.preRun.length;) {
|
|
2219
|
-
|
|
2221
|
+
Ma();
|
|
2220
2222
|
}
|
|
2221
2223
|
}
|
|
2222
|
-
|
|
2223
|
-
0 <
|
|
2224
|
+
Xa(Ja);
|
|
2225
|
+
0 < Na || (h.setStatus ? (h.setStatus("Running..."), setTimeout(function() {
|
|
2224
2226
|
setTimeout(function() {
|
|
2225
2227
|
h.setStatus("");
|
|
2226
2228
|
}, 1);
|