@rive-app/webgl-advanced 2.36.0 → 2.37.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/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +4 -0
- package/rive_fallback.wasm +0 -0
- package/webgl_advanced.mjs +394 -384
package/webgl_advanced.mjs
CHANGED
|
@@ -71,64 +71,70 @@ const ja = l.onRuntimeInitialized;
|
|
|
71
71
|
l.onRuntimeInitialized = function() {
|
|
72
72
|
ja && ja();
|
|
73
73
|
let a = l.decodeAudio;
|
|
74
|
-
l.decodeAudio = function(
|
|
75
|
-
|
|
76
|
-
f
|
|
74
|
+
l.decodeAudio = function(f, g) {
|
|
75
|
+
f = a(f);
|
|
76
|
+
g(f);
|
|
77
77
|
};
|
|
78
78
|
let b = l.decodeFont;
|
|
79
|
-
l.decodeFont = function(
|
|
80
|
-
|
|
81
|
-
f
|
|
79
|
+
l.decodeFont = function(f, g) {
|
|
80
|
+
f = b(f);
|
|
81
|
+
g(f);
|
|
82
82
|
};
|
|
83
|
-
|
|
84
|
-
l.
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
let c = l.setFallbackFontCb;
|
|
84
|
+
l.setFallbackFontCallback = "function" === typeof c ? function(f) {
|
|
85
|
+
c(f);
|
|
86
|
+
} : function() {
|
|
87
|
+
console.warn("Module.setFallbackFontCallback called, but text support is not enabled in this build.");
|
|
87
88
|
};
|
|
88
|
-
|
|
89
|
+
const d = l.FileAssetLoader;
|
|
90
|
+
l.ptrToAsset = f => {
|
|
91
|
+
let g = l.ptrToFileAsset(f);
|
|
92
|
+
return g.isImage ? l.ptrToImageAsset(f) : g.isFont ? l.ptrToFontAsset(f) : g.isAudio ? l.ptrToAudioAsset(f) : g;
|
|
93
|
+
};
|
|
94
|
+
l.CustomFileAssetLoader = d.extend("CustomFileAssetLoader", {__construct:function({loadContents:f}) {
|
|
89
95
|
this.__parent.__construct.call(this);
|
|
90
|
-
this.yb =
|
|
91
|
-
}, loadContents:function(
|
|
92
|
-
|
|
93
|
-
return this.yb(
|
|
96
|
+
this.yb = f;
|
|
97
|
+
}, loadContents:function(f, g) {
|
|
98
|
+
f = l.ptrToAsset(f);
|
|
99
|
+
return this.yb(f, g);
|
|
94
100
|
},});
|
|
95
|
-
l.CDNFileAssetLoader =
|
|
101
|
+
l.CDNFileAssetLoader = d.extend("CDNFileAssetLoader", {__construct:function() {
|
|
96
102
|
this.__parent.__construct.call(this);
|
|
97
|
-
}, loadContents:function(
|
|
98
|
-
let
|
|
99
|
-
|
|
100
|
-
if ("" ===
|
|
103
|
+
}, loadContents:function(f) {
|
|
104
|
+
let g = l.ptrToAsset(f);
|
|
105
|
+
f = g.cdnUuid;
|
|
106
|
+
if ("" === f) {
|
|
101
107
|
return !1;
|
|
102
108
|
}
|
|
103
|
-
(function(
|
|
104
|
-
var
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
4 ==
|
|
109
|
+
(function(k, m) {
|
|
110
|
+
var p = new XMLHttpRequest();
|
|
111
|
+
p.responseType = "arraybuffer";
|
|
112
|
+
p.onreadystatechange = function() {
|
|
113
|
+
4 == p.readyState && 200 == p.status && m(p);
|
|
108
114
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
})(
|
|
112
|
-
|
|
115
|
+
p.open("GET", k, !0);
|
|
116
|
+
p.send(null);
|
|
117
|
+
})(g.cdnBaseUrl + "/" + f, k => {
|
|
118
|
+
g.decode(new Uint8Array(k.response));
|
|
113
119
|
});
|
|
114
120
|
return !0;
|
|
115
121
|
},});
|
|
116
|
-
l.FallbackFileAssetLoader =
|
|
122
|
+
l.FallbackFileAssetLoader = d.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
117
123
|
this.__parent.__construct.call(this);
|
|
118
124
|
this.eb = [];
|
|
119
|
-
}, addLoader:function(
|
|
120
|
-
this.eb.push(
|
|
121
|
-
}, loadContents:function(
|
|
122
|
-
for (let
|
|
123
|
-
if (
|
|
125
|
+
}, addLoader:function(f) {
|
|
126
|
+
this.eb.push(f);
|
|
127
|
+
}, loadContents:function(f, g) {
|
|
128
|
+
for (let k of this.eb) {
|
|
129
|
+
if (k.loadContents(f, g)) {
|
|
124
130
|
return !0;
|
|
125
131
|
}
|
|
126
132
|
}
|
|
127
133
|
return !1;
|
|
128
134
|
},});
|
|
129
|
-
let
|
|
130
|
-
l.computeAlignment = function(
|
|
131
|
-
return
|
|
135
|
+
let e = l.computeAlignment;
|
|
136
|
+
l.computeAlignment = function(f, g, k, m, p = 1.0) {
|
|
137
|
+
return e.call(this, f, g, k, m, p);
|
|
132
138
|
};
|
|
133
139
|
};
|
|
134
140
|
const ka = l.onRuntimeInitialized;
|
|
@@ -193,7 +199,7 @@ l.onRuntimeInitialized = function() {
|
|
|
193
199
|
}
|
|
194
200
|
v = Math.min(v, t);
|
|
195
201
|
v = Math.min(z, t);
|
|
196
|
-
F.sort((ha,
|
|
202
|
+
F.sort((ha, zb) => zb.Ha - ha.Ha);
|
|
197
203
|
D = new l.DynamicRectanizer(t);
|
|
198
204
|
for (N = 0; N < F.length;) {
|
|
199
205
|
D.reset(v, z);
|
|
@@ -225,8 +231,8 @@ l.onRuntimeInitialized = function() {
|
|
|
225
231
|
ha.tx = L.oa;
|
|
226
232
|
ha.ty = L.pa;
|
|
227
233
|
e.transform(ha);
|
|
228
|
-
for (const
|
|
229
|
-
|
|
234
|
+
for (const zb of L.R) {
|
|
235
|
+
zb();
|
|
230
236
|
}
|
|
231
237
|
e.restoreClipRect();
|
|
232
238
|
L.R = [];
|
|
@@ -372,7 +378,7 @@ function Ra(a, b) {
|
|
|
372
378
|
return Qa(c, a, b);
|
|
373
379
|
}));
|
|
374
380
|
}
|
|
375
|
-
var Sa, Ta, Xa = {
|
|
381
|
+
var Sa, Ta, Xa = {729298:(a, b, c, d, e) => {
|
|
376
382
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
377
383
|
return 0;
|
|
378
384
|
}
|
|
@@ -435,11 +441,11 @@ var Sa, Ta, Xa = {728434:(a, b, c, d, e) => {
|
|
|
435
441
|
}
|
|
436
442
|
window.h.Ca += 1;
|
|
437
443
|
return 1;
|
|
438
|
-
},
|
|
444
|
+
}, 731476:() => {
|
|
439
445
|
"undefined" !== typeof window.h && (window.h.Ra.map(function(a) {
|
|
440
446
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
441
447
|
}), --window.h.Ca, 0 === window.h.Ca && delete window.h);
|
|
442
|
-
},
|
|
448
|
+
}, 731780:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 731884:() => {
|
|
443
449
|
try {
|
|
444
450
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
445
451
|
a.close();
|
|
@@ -447,7 +453,7 @@ var Sa, Ta, Xa = {728434:(a, b, c, d, e) => {
|
|
|
447
453
|
} catch (c) {
|
|
448
454
|
return 0;
|
|
449
455
|
}
|
|
450
|
-
},
|
|
456
|
+
}, 732055:(a, b, c, d, e, f) => {
|
|
451
457
|
if ("undefined" === typeof window.h) {
|
|
452
458
|
return -1;
|
|
453
459
|
}
|
|
@@ -493,7 +499,7 @@ var Sa, Ta, Xa = {728434:(a, b, c, d, e) => {
|
|
|
493
499
|
a == window.h.H.Aa && g.W.connect(g.J.destination);
|
|
494
500
|
g.kb = f;
|
|
495
501
|
return window.h.fc(g);
|
|
496
|
-
},
|
|
502
|
+
}, 734932:a => window.h.ra(a).J.sampleRate, 735005:a => {
|
|
497
503
|
a = window.h.ra(a);
|
|
498
504
|
void 0 !== a.W && (a.W.onaudioprocess = function() {
|
|
499
505
|
}, a.W.disconnect(), a.W = void 0);
|
|
@@ -501,13 +507,13 @@ var Sa, Ta, Xa = {728434:(a, b, c, d, e) => {
|
|
|
501
507
|
a.J.close();
|
|
502
508
|
a.J = void 0;
|
|
503
509
|
a.kb = void 0;
|
|
504
|
-
},
|
|
510
|
+
}, 735405:a => {
|
|
505
511
|
window.h.ub(a);
|
|
506
|
-
},
|
|
512
|
+
}, 735455:a => {
|
|
507
513
|
a = window.h.ra(a);
|
|
508
514
|
a.J.resume();
|
|
509
515
|
a.state = window.h.ga.qb;
|
|
510
|
-
},
|
|
516
|
+
}, 735594:a => {
|
|
511
517
|
a = window.h.ra(a);
|
|
512
518
|
a.J.suspend();
|
|
513
519
|
a.state = window.h.ga.stopped;
|
|
@@ -899,7 +905,7 @@ var G = {M:null, S() {
|
|
|
899
905
|
}, ib(a, b, c, d) {
|
|
900
906
|
G.m.write(a, b, 0, d, c, !1);
|
|
901
907
|
return 0;
|
|
902
|
-
},},},
|
|
908
|
+
},},}, yb = (a, b) => {
|
|
903
909
|
var c = 0;
|
|
904
910
|
a && (c |= 365);
|
|
905
911
|
b && (c |= 146);
|
|
@@ -1227,7 +1233,7 @@ function Zb(a, b, c) {
|
|
|
1227
1233
|
var $b;
|
|
1228
1234
|
function ac(a, b, c) {
|
|
1229
1235
|
a = bb("/dev/" + a);
|
|
1230
|
-
var d =
|
|
1236
|
+
var d = yb(!!b, !!c);
|
|
1231
1237
|
bc ||= 64;
|
|
1232
1238
|
var e = bc++ << 8 | 0;
|
|
1233
1239
|
ob(e, {open(f) {
|
|
@@ -1265,12 +1271,12 @@ function ac(a, b, c) {
|
|
|
1265
1271
|
}});
|
|
1266
1272
|
Vb(a, d, e);
|
|
1267
1273
|
}
|
|
1268
|
-
var bc, cc = {}, Yb, $a = void 0, dc = (a, b) => Object.defineProperty(b, "name", {value:a}), ec = [], fc = [], H,
|
|
1274
|
+
var bc, cc = {}, Yb, $a = void 0, dc = (a, b) => Object.defineProperty(b, "name", {value:a}), ec = [], fc = [], H, I = a => {
|
|
1269
1275
|
if (!a) {
|
|
1270
1276
|
throw new H("Cannot use deleted val. handle = " + a);
|
|
1271
1277
|
}
|
|
1272
1278
|
return fc[a];
|
|
1273
|
-
},
|
|
1279
|
+
}, gc = a => {
|
|
1274
1280
|
switch(a) {
|
|
1275
1281
|
case void 0:
|
|
1276
1282
|
return 2;
|
|
@@ -1286,7 +1292,7 @@ var bc, cc = {}, Yb, $a = void 0, dc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1286
1292
|
fc[b + 1] = 1;
|
|
1287
1293
|
return b;
|
|
1288
1294
|
}
|
|
1289
|
-
},
|
|
1295
|
+
}, hc = a => {
|
|
1290
1296
|
var b = Error, c = dc(a, function(d) {
|
|
1291
1297
|
this.name = a;
|
|
1292
1298
|
this.message = d;
|
|
@@ -1299,18 +1305,18 @@ var bc, cc = {}, Yb, $a = void 0, dc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1299
1305
|
return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;
|
|
1300
1306
|
};
|
|
1301
1307
|
return c;
|
|
1302
|
-
},
|
|
1308
|
+
}, ic, jc, J = a => {
|
|
1303
1309
|
for (var b = ""; u[a];) {
|
|
1304
|
-
b +=
|
|
1310
|
+
b += jc[u[a++]];
|
|
1305
1311
|
}
|
|
1306
1312
|
return b;
|
|
1307
|
-
},
|
|
1308
|
-
for (;
|
|
1309
|
-
var a =
|
|
1313
|
+
}, kc = [], lc = () => {
|
|
1314
|
+
for (; kc.length;) {
|
|
1315
|
+
var a = kc.pop();
|
|
1310
1316
|
a.g.fa = !1;
|
|
1311
1317
|
a["delete"]();
|
|
1312
1318
|
}
|
|
1313
|
-
},
|
|
1319
|
+
}, mc, nc = {}, oc = (a, b) => {
|
|
1314
1320
|
if (void 0 === b) {
|
|
1315
1321
|
throw new H("ptr should not be undefined");
|
|
1316
1322
|
}
|
|
@@ -1318,116 +1324,116 @@ var bc, cc = {}, Yb, $a = void 0, dc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1318
1324
|
b = a.ma(b), a = a.B;
|
|
1319
1325
|
}
|
|
1320
1326
|
return b;
|
|
1321
|
-
},
|
|
1322
|
-
a =
|
|
1323
|
-
var b =
|
|
1324
|
-
|
|
1327
|
+
}, pc = {}, sc = a => {
|
|
1328
|
+
a = qc(a);
|
|
1329
|
+
var b = J(a);
|
|
1330
|
+
rc(a);
|
|
1325
1331
|
return b;
|
|
1326
|
-
},
|
|
1327
|
-
var c =
|
|
1332
|
+
}, tc = (a, b) => {
|
|
1333
|
+
var c = pc[a];
|
|
1328
1334
|
if (void 0 === c) {
|
|
1329
|
-
throw a = `${b} has unknown type ${
|
|
1335
|
+
throw a = `${b} has unknown type ${sc(a)}`, new H(a);
|
|
1330
1336
|
}
|
|
1331
1337
|
return c;
|
|
1332
|
-
},
|
|
1333
|
-
},
|
|
1338
|
+
}, uc = () => {
|
|
1339
|
+
}, vc = !1, wc = (a, b, c) => {
|
|
1334
1340
|
if (b === c) {
|
|
1335
1341
|
return a;
|
|
1336
1342
|
}
|
|
1337
1343
|
if (void 0 === c.B) {
|
|
1338
1344
|
return null;
|
|
1339
1345
|
}
|
|
1340
|
-
a =
|
|
1346
|
+
a = wc(a, b, c.B);
|
|
1341
1347
|
return null === a ? null : c.Eb(a);
|
|
1342
|
-
},
|
|
1343
|
-
b =
|
|
1344
|
-
return
|
|
1345
|
-
},
|
|
1348
|
+
}, xc = {}, yc = (a, b) => {
|
|
1349
|
+
b = oc(a, b);
|
|
1350
|
+
return nc[b];
|
|
1351
|
+
}, zc, Bc = (a, b) => {
|
|
1346
1352
|
if (!b.u || !b.o) {
|
|
1347
|
-
throw new
|
|
1353
|
+
throw new zc("makeClassHandle requires ptr and ptrType");
|
|
1348
1354
|
}
|
|
1349
1355
|
if (!!b.I !== !!b.D) {
|
|
1350
|
-
throw new
|
|
1356
|
+
throw new zc("Both smartPtrType and smartPtr must be specified");
|
|
1351
1357
|
}
|
|
1352
1358
|
b.count = {value:1};
|
|
1353
|
-
return
|
|
1354
|
-
},
|
|
1359
|
+
return Ac(Object.create(a, {g:{value:b, writable:!0,},}));
|
|
1360
|
+
}, Ac = a => {
|
|
1355
1361
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
1356
|
-
return
|
|
1362
|
+
return Ac = b => b, a;
|
|
1357
1363
|
}
|
|
1358
|
-
|
|
1364
|
+
vc = new FinalizationRegistry(b => {
|
|
1359
1365
|
b = b.g;
|
|
1360
1366
|
--b.count.value;
|
|
1361
1367
|
0 === b.count.value && (b.D ? b.I.N(b.D) : b.u.i.N(b.o));
|
|
1362
1368
|
});
|
|
1363
|
-
|
|
1369
|
+
Ac = b => {
|
|
1364
1370
|
var c = b.g;
|
|
1365
|
-
c.D &&
|
|
1371
|
+
c.D && vc.register(b, {g:c}, b);
|
|
1366
1372
|
return b;
|
|
1367
1373
|
};
|
|
1368
|
-
|
|
1369
|
-
|
|
1374
|
+
uc = b => {
|
|
1375
|
+
vc.unregister(b);
|
|
1370
1376
|
};
|
|
1371
|
-
return
|
|
1372
|
-
},
|
|
1377
|
+
return Ac(a);
|
|
1378
|
+
}, Cc = {}, Dc = a => {
|
|
1373
1379
|
for (; a.length;) {
|
|
1374
1380
|
var b = a.pop();
|
|
1375
1381
|
a.pop()(b);
|
|
1376
1382
|
}
|
|
1377
1383
|
};
|
|
1378
|
-
function
|
|
1384
|
+
function Ec(a) {
|
|
1379
1385
|
return this.fromWireType(A[a >> 2]);
|
|
1380
1386
|
}
|
|
1381
|
-
var
|
|
1387
|
+
var Fc = {}, Gc = {}, K = (a, b, c) => {
|
|
1382
1388
|
function d(k) {
|
|
1383
1389
|
k = c(k);
|
|
1384
1390
|
if (k.length !== a.length) {
|
|
1385
|
-
throw new
|
|
1391
|
+
throw new zc("Mismatched type converter count");
|
|
1386
1392
|
}
|
|
1387
1393
|
for (var m = 0; m < a.length; ++m) {
|
|
1388
|
-
|
|
1394
|
+
Hc(a[m], k[m]);
|
|
1389
1395
|
}
|
|
1390
1396
|
}
|
|
1391
1397
|
a.forEach(function(k) {
|
|
1392
|
-
|
|
1398
|
+
Gc[k] = b;
|
|
1393
1399
|
});
|
|
1394
1400
|
var e = Array(b.length), f = [], g = 0;
|
|
1395
1401
|
b.forEach((k, m) => {
|
|
1396
|
-
|
|
1397
|
-
e[m] =
|
|
1402
|
+
pc.hasOwnProperty(k) ? e[m] = pc[k] : (f.push(k), Fc.hasOwnProperty(k) || (Fc[k] = []), Fc[k].push(() => {
|
|
1403
|
+
e[m] = pc[k];
|
|
1398
1404
|
++g;
|
|
1399
1405
|
g === f.length && d(e);
|
|
1400
1406
|
}));
|
|
1401
1407
|
});
|
|
1402
1408
|
0 === f.length && d(e);
|
|
1403
1409
|
};
|
|
1404
|
-
function
|
|
1410
|
+
function Ic(a, b, c = {}) {
|
|
1405
1411
|
var d = b.name;
|
|
1406
1412
|
if (!a) {
|
|
1407
1413
|
throw new H(`type "${d}" must have a positive integer typeid pointer`);
|
|
1408
1414
|
}
|
|
1409
|
-
if (
|
|
1415
|
+
if (pc.hasOwnProperty(a)) {
|
|
1410
1416
|
if (c.Ob) {
|
|
1411
1417
|
return;
|
|
1412
1418
|
}
|
|
1413
1419
|
throw new H(`Cannot register type '${d}' twice`);
|
|
1414
1420
|
}
|
|
1415
|
-
|
|
1416
|
-
delete
|
|
1417
|
-
|
|
1421
|
+
pc[a] = b;
|
|
1422
|
+
delete Gc[a];
|
|
1423
|
+
Fc.hasOwnProperty(a) && (b = Fc[a], delete Fc[a], b.forEach(e => e()));
|
|
1418
1424
|
}
|
|
1419
|
-
function
|
|
1425
|
+
function Hc(a, b, c = {}) {
|
|
1420
1426
|
if (!("argPackAdvance" in b)) {
|
|
1421
1427
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1422
1428
|
}
|
|
1423
|
-
return
|
|
1429
|
+
return Ic(a, b, c);
|
|
1424
1430
|
}
|
|
1425
|
-
var
|
|
1431
|
+
var Jc = a => {
|
|
1426
1432
|
throw new H(a.g.u.i.name + " instance already deleted");
|
|
1427
1433
|
};
|
|
1428
|
-
function
|
|
1434
|
+
function Kc() {
|
|
1429
1435
|
}
|
|
1430
|
-
var
|
|
1436
|
+
var Lc = (a, b, c) => {
|
|
1431
1437
|
if (void 0 === a[b].A) {
|
|
1432
1438
|
var d = a[b];
|
|
1433
1439
|
a[b] = function(...e) {
|
|
@@ -1439,12 +1445,12 @@ var Mc = (a, b, c) => {
|
|
|
1439
1445
|
a[b].A = [];
|
|
1440
1446
|
a[b].A[d.da] = d;
|
|
1441
1447
|
}
|
|
1442
|
-
},
|
|
1448
|
+
}, Mc = (a, b, c) => {
|
|
1443
1449
|
if (l.hasOwnProperty(a)) {
|
|
1444
1450
|
if (void 0 === c || void 0 !== l[a].A && void 0 !== l[a].A[c]) {
|
|
1445
1451
|
throw new H(`Cannot register public name '${a}' twice`);
|
|
1446
1452
|
}
|
|
1447
|
-
|
|
1453
|
+
Lc(l, a, a);
|
|
1448
1454
|
if (l.hasOwnProperty(c)) {
|
|
1449
1455
|
throw new H(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`);
|
|
1450
1456
|
}
|
|
@@ -1452,7 +1458,7 @@ var Mc = (a, b, c) => {
|
|
|
1452
1458
|
} else {
|
|
1453
1459
|
l[a] = b, void 0 !== c && (l[a].Dc = c);
|
|
1454
1460
|
}
|
|
1455
|
-
},
|
|
1461
|
+
}, Nc = a => {
|
|
1456
1462
|
if (void 0 === a) {
|
|
1457
1463
|
return "_unknown";
|
|
1458
1464
|
}
|
|
@@ -1460,7 +1466,7 @@ var Mc = (a, b, c) => {
|
|
|
1460
1466
|
var b = a.charCodeAt(0);
|
|
1461
1467
|
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1462
1468
|
};
|
|
1463
|
-
function
|
|
1469
|
+
function Oc(a, b, c, d, e, f, g, k) {
|
|
1464
1470
|
this.name = a;
|
|
1465
1471
|
this.constructor = b;
|
|
1466
1472
|
this.L = c;
|
|
@@ -1471,7 +1477,7 @@ function Pc(a, b, c, d, e, f, g, k) {
|
|
|
1471
1477
|
this.Eb = k;
|
|
1472
1478
|
this.lb = [];
|
|
1473
1479
|
}
|
|
1474
|
-
var
|
|
1480
|
+
var Pc = (a, b, c) => {
|
|
1475
1481
|
for (; b !== c;) {
|
|
1476
1482
|
if (!b.ma) {
|
|
1477
1483
|
throw new H(`Expected null or instance of ${c.name}, got an instance of ${b.name}`);
|
|
@@ -1481,7 +1487,7 @@ var Qc = (a, b, c) => {
|
|
|
1481
1487
|
}
|
|
1482
1488
|
return a;
|
|
1483
1489
|
};
|
|
1484
|
-
function
|
|
1490
|
+
function Qc(a, b) {
|
|
1485
1491
|
if (null === b) {
|
|
1486
1492
|
if (this.La) {
|
|
1487
1493
|
throw new H(`null is not a valid ${this.name}`);
|
|
@@ -1489,14 +1495,14 @@ function Rc(a, b) {
|
|
|
1489
1495
|
return 0;
|
|
1490
1496
|
}
|
|
1491
1497
|
if (!b.g) {
|
|
1492
|
-
throw new H(`Cannot pass "${
|
|
1498
|
+
throw new H(`Cannot pass "${Rc(b)}" as a ${this.name}`);
|
|
1493
1499
|
}
|
|
1494
1500
|
if (!b.g.o) {
|
|
1495
1501
|
throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1496
1502
|
}
|
|
1497
|
-
return
|
|
1503
|
+
return Pc(b.g.o, b.g.u.i, this.i);
|
|
1498
1504
|
}
|
|
1499
|
-
function
|
|
1505
|
+
function Sc(a, b) {
|
|
1500
1506
|
if (null === b) {
|
|
1501
1507
|
if (this.La) {
|
|
1502
1508
|
throw new H(`null is not a valid ${this.name}`);
|
|
@@ -1509,7 +1515,7 @@ function Tc(a, b) {
|
|
|
1509
1515
|
return 0;
|
|
1510
1516
|
}
|
|
1511
1517
|
if (!b || !b.g) {
|
|
1512
|
-
throw new H(`Cannot pass "${
|
|
1518
|
+
throw new H(`Cannot pass "${Rc(b)}" as a ${this.name}`);
|
|
1513
1519
|
}
|
|
1514
1520
|
if (!b.g.o) {
|
|
1515
1521
|
throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
@@ -1517,7 +1523,7 @@ function Tc(a, b) {
|
|
|
1517
1523
|
if (!this.ta && b.g.u.ta) {
|
|
1518
1524
|
throw new H(`Cannot convert argument of type ${b.g.I ? b.g.I.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1519
1525
|
}
|
|
1520
|
-
c =
|
|
1526
|
+
c = Pc(b.g.o, b.g.u.i, this.i);
|
|
1521
1527
|
if (this.ua) {
|
|
1522
1528
|
if (void 0 === b.g.D) {
|
|
1523
1529
|
throw new H("Passing raw pointer to smart pointer is illegal");
|
|
@@ -1538,7 +1544,7 @@ function Tc(a, b) {
|
|
|
1538
1544
|
c = b.g.D;
|
|
1539
1545
|
} else {
|
|
1540
1546
|
var d = b.clone();
|
|
1541
|
-
c = this.Xb(c,
|
|
1547
|
+
c = this.Xb(c, gc(() => d["delete"]()));
|
|
1542
1548
|
null !== a && a.push(this.N, c);
|
|
1543
1549
|
}
|
|
1544
1550
|
break;
|
|
@@ -1548,7 +1554,7 @@ function Tc(a, b) {
|
|
|
1548
1554
|
}
|
|
1549
1555
|
return c;
|
|
1550
1556
|
}
|
|
1551
|
-
function
|
|
1557
|
+
function Tc(a, b) {
|
|
1552
1558
|
if (null === b) {
|
|
1553
1559
|
if (this.La) {
|
|
1554
1560
|
throw new H(`null is not a valid ${this.name}`);
|
|
@@ -1556,7 +1562,7 @@ function Uc(a, b) {
|
|
|
1556
1562
|
return 0;
|
|
1557
1563
|
}
|
|
1558
1564
|
if (!b.g) {
|
|
1559
|
-
throw new H(`Cannot pass "${
|
|
1565
|
+
throw new H(`Cannot pass "${Rc(b)}" as a ${this.name}`);
|
|
1560
1566
|
}
|
|
1561
1567
|
if (!b.g.o) {
|
|
1562
1568
|
throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
@@ -1564,9 +1570,9 @@ function Uc(a, b) {
|
|
|
1564
1570
|
if (b.g.u.ta) {
|
|
1565
1571
|
throw new H(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1566
1572
|
}
|
|
1567
|
-
return
|
|
1573
|
+
return Pc(b.g.o, b.g.u.i, this.i);
|
|
1568
1574
|
}
|
|
1569
|
-
function
|
|
1575
|
+
function Uc(a, b, c, d, e, f, g, k, m, p, r) {
|
|
1570
1576
|
this.name = a;
|
|
1571
1577
|
this.i = b;
|
|
1572
1578
|
this.La = c;
|
|
@@ -1578,36 +1584,36 @@ function Vc(a, b, c, d, e, f, g, k, m, p, r) {
|
|
|
1578
1584
|
this.Na = m;
|
|
1579
1585
|
this.Xb = p;
|
|
1580
1586
|
this.N = r;
|
|
1581
|
-
e || void 0 !== b.B ? this.toWireType =
|
|
1587
|
+
e || void 0 !== b.B ? this.toWireType = Sc : (this.toWireType = d ? Qc : Tc, this.K = null);
|
|
1582
1588
|
}
|
|
1583
|
-
var
|
|
1589
|
+
var Vc = (a, b, c) => {
|
|
1584
1590
|
if (!l.hasOwnProperty(a)) {
|
|
1585
|
-
throw new
|
|
1591
|
+
throw new zc("Replacing nonexistent public symbol");
|
|
1586
1592
|
}
|
|
1587
1593
|
void 0 !== l[a].A && void 0 !== c ? l[a].A[c] = b : (l[a] = b, l[a].da = c);
|
|
1588
|
-
},
|
|
1589
|
-
var b =
|
|
1590
|
-
b || (a >=
|
|
1594
|
+
}, Wc = [], Xc, P = a => {
|
|
1595
|
+
var b = Wc[a];
|
|
1596
|
+
b || (a >= Wc.length && (Wc.length = a + 1), Wc[a] = b = Xc.get(a));
|
|
1591
1597
|
return b;
|
|
1592
|
-
},
|
|
1593
|
-
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,l["dynCall_" + a])(b, ...c)) : b =
|
|
1598
|
+
}, Yc = (a, b, c = []) => {
|
|
1599
|
+
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,l["dynCall_" + a])(b, ...c)) : b = P(b)(...c);
|
|
1594
1600
|
return b;
|
|
1595
|
-
},
|
|
1596
|
-
a =
|
|
1597
|
-
var c = a.includes("j") ?
|
|
1601
|
+
}, Zc = (a, b) => (...c) => Yc(a, b, c), Q = (a, b) => {
|
|
1602
|
+
a = J(a);
|
|
1603
|
+
var c = a.includes("j") ? Zc(a, b) : P(b);
|
|
1598
1604
|
if ("function" != typeof c) {
|
|
1599
1605
|
throw new H(`unknown function pointer with signature ${a}: ${b}`);
|
|
1600
1606
|
}
|
|
1601
1607
|
return c;
|
|
1602
|
-
},
|
|
1608
|
+
}, $c, ad = (a, b) => {
|
|
1603
1609
|
function c(f) {
|
|
1604
|
-
e[f] ||
|
|
1610
|
+
e[f] || pc[f] || (Gc[f] ? Gc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1605
1611
|
}
|
|
1606
1612
|
var d = [], e = {};
|
|
1607
1613
|
b.forEach(c);
|
|
1608
|
-
throw new
|
|
1614
|
+
throw new $c(`${a}: ` + d.map(sc).join([", "]));
|
|
1609
1615
|
};
|
|
1610
|
-
function
|
|
1616
|
+
function bd(a) {
|
|
1611
1617
|
for (var b = 1; b < a.length; ++b) {
|
|
1612
1618
|
if (null !== a[b] && void 0 === a[b].K) {
|
|
1613
1619
|
return !0;
|
|
@@ -1615,12 +1621,12 @@ function cd(a) {
|
|
|
1615
1621
|
}
|
|
1616
1622
|
return !1;
|
|
1617
1623
|
}
|
|
1618
|
-
function
|
|
1624
|
+
function cd(a, b, c, d, e) {
|
|
1619
1625
|
var f = b.length;
|
|
1620
1626
|
if (2 > f) {
|
|
1621
1627
|
throw new H("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1622
1628
|
}
|
|
1623
|
-
var g = null !== b[1] && null !== c, k =
|
|
1629
|
+
var g = null !== b[1] && null !== c, k = bd(b), m = "void" !== b[0].name, p = f - 2, r = Array(p), w = [], y = [];
|
|
1624
1630
|
return dc(a, function(...q) {
|
|
1625
1631
|
if (q.length !== p) {
|
|
1626
1632
|
throw new H(`function ${a} called with ${q.length} arguments, expected ${p}`);
|
|
@@ -1637,7 +1643,7 @@ function dd(a, b, c, d, e) {
|
|
|
1637
1643
|
}
|
|
1638
1644
|
q = d(...w);
|
|
1639
1645
|
if (k) {
|
|
1640
|
-
|
|
1646
|
+
Dc(y);
|
|
1641
1647
|
} else {
|
|
1642
1648
|
for (v = g ? 1 : 2; v < b.length; v++) {
|
|
1643
1649
|
var z = 1 === v ? t : r[v - 2];
|
|
@@ -1648,16 +1654,16 @@ function dd(a, b, c, d, e) {
|
|
|
1648
1654
|
return t;
|
|
1649
1655
|
});
|
|
1650
1656
|
}
|
|
1651
|
-
var
|
|
1657
|
+
var dd = (a, b) => {
|
|
1652
1658
|
for (var c = [], d = 0; d < a; d++) {
|
|
1653
1659
|
c.push(A[b + 4 * d >> 2]);
|
|
1654
1660
|
}
|
|
1655
1661
|
return c;
|
|
1656
|
-
},
|
|
1662
|
+
}, ed = a => {
|
|
1657
1663
|
a = a.trim();
|
|
1658
1664
|
const b = a.indexOf("(");
|
|
1659
1665
|
return -1 !== b ? a.substr(0, b) : a;
|
|
1660
|
-
},
|
|
1666
|
+
}, fd = (a, b, c) => {
|
|
1661
1667
|
if (!(a instanceof Object)) {
|
|
1662
1668
|
throw new H(`${c} with invalid "this": ${a}`);
|
|
1663
1669
|
}
|
|
@@ -1667,14 +1673,14 @@ var ed = (a, b) => {
|
|
|
1667
1673
|
if (!a.g.o) {
|
|
1668
1674
|
throw new H(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1669
1675
|
}
|
|
1670
|
-
return
|
|
1671
|
-
},
|
|
1676
|
+
return Pc(a.g.o, a.g.u.i, b.i);
|
|
1677
|
+
}, gd = a => {
|
|
1672
1678
|
9 < a && 0 === --fc[a + 1] && (fc[a] = void 0, ec.push(a));
|
|
1673
|
-
},
|
|
1674
|
-
var b =
|
|
1675
|
-
|
|
1679
|
+
}, hd = {name:"emscripten::val", fromWireType:a => {
|
|
1680
|
+
var b = I(a);
|
|
1681
|
+
gd(a);
|
|
1676
1682
|
return b;
|
|
1677
|
-
}, toWireType:(a, b) =>
|
|
1683
|
+
}, toWireType:(a, b) => gc(b), argPackAdvance:8, readValueFromPointer:Ec, K:null,}, jd = (a, b, c) => {
|
|
1678
1684
|
switch(b) {
|
|
1679
1685
|
case 1:
|
|
1680
1686
|
return c ? function(d) {
|
|
@@ -1697,13 +1703,13 @@ var ed = (a, b) => {
|
|
|
1697
1703
|
default:
|
|
1698
1704
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
1699
1705
|
}
|
|
1700
|
-
},
|
|
1706
|
+
}, Rc = a => {
|
|
1701
1707
|
if (null === a) {
|
|
1702
1708
|
return "null";
|
|
1703
1709
|
}
|
|
1704
1710
|
var b = typeof a;
|
|
1705
1711
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1706
|
-
},
|
|
1712
|
+
}, kd = (a, b) => {
|
|
1707
1713
|
switch(b) {
|
|
1708
1714
|
case 4:
|
|
1709
1715
|
return function(c) {
|
|
@@ -1716,7 +1722,7 @@ var ed = (a, b) => {
|
|
|
1716
1722
|
default:
|
|
1717
1723
|
throw new TypeError(`invalid float width (${b}): ${a}`);
|
|
1718
1724
|
}
|
|
1719
|
-
},
|
|
1725
|
+
}, ld = (a, b, c) => {
|
|
1720
1726
|
switch(b) {
|
|
1721
1727
|
case 1:
|
|
1722
1728
|
return c ? d => n[d] : d => u[d];
|
|
@@ -1727,14 +1733,14 @@ var ed = (a, b) => {
|
|
|
1727
1733
|
default:
|
|
1728
1734
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
1729
1735
|
}
|
|
1730
|
-
},
|
|
1736
|
+
}, md = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, nd = (a, b) => {
|
|
1731
1737
|
var c = a >> 1;
|
|
1732
1738
|
for (var d = c + b / 2; !(c >= d) && Ba[c];) {
|
|
1733
1739
|
++c;
|
|
1734
1740
|
}
|
|
1735
1741
|
c <<= 1;
|
|
1736
|
-
if (32 < c - a &&
|
|
1737
|
-
return
|
|
1742
|
+
if (32 < c - a && md) {
|
|
1743
|
+
return md.decode(u.subarray(a, c));
|
|
1738
1744
|
}
|
|
1739
1745
|
c = "";
|
|
1740
1746
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
@@ -1745,7 +1751,7 @@ var ed = (a, b) => {
|
|
|
1745
1751
|
c += String.fromCharCode(e);
|
|
1746
1752
|
}
|
|
1747
1753
|
return c;
|
|
1748
|
-
},
|
|
1754
|
+
}, od = (a, b, c) => {
|
|
1749
1755
|
c ??= 2147483647;
|
|
1750
1756
|
if (2 > c) {
|
|
1751
1757
|
return 0;
|
|
@@ -1758,7 +1764,7 @@ var ed = (a, b) => {
|
|
|
1758
1764
|
}
|
|
1759
1765
|
Aa[b >> 1] = 0;
|
|
1760
1766
|
return b - d;
|
|
1761
|
-
},
|
|
1767
|
+
}, pd = a => 2 * a.length, qd = (a, b) => {
|
|
1762
1768
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
1763
1769
|
var e = x[a + 4 * c >> 2];
|
|
1764
1770
|
if (0 == e) {
|
|
@@ -1768,7 +1774,7 @@ var ed = (a, b) => {
|
|
|
1768
1774
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1769
1775
|
}
|
|
1770
1776
|
return d;
|
|
1771
|
-
},
|
|
1777
|
+
}, rd = (a, b, c) => {
|
|
1772
1778
|
c ??= 2147483647;
|
|
1773
1779
|
if (4 > c) {
|
|
1774
1780
|
return 0;
|
|
@@ -1789,44 +1795,44 @@ var ed = (a, b) => {
|
|
|
1789
1795
|
}
|
|
1790
1796
|
x[b >> 2] = 0;
|
|
1791
1797
|
return b - d;
|
|
1792
|
-
},
|
|
1798
|
+
}, sd = a => {
|
|
1793
1799
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
1794
1800
|
var d = a.charCodeAt(c);
|
|
1795
1801
|
55296 <= d && 57343 >= d && ++c;
|
|
1796
1802
|
b += 4;
|
|
1797
1803
|
}
|
|
1798
1804
|
return b;
|
|
1799
|
-
},
|
|
1805
|
+
}, td = (a, b, c) => {
|
|
1800
1806
|
var d = [];
|
|
1801
1807
|
a = a.toWireType(d, c);
|
|
1802
|
-
d.length && (A[b >> 2] =
|
|
1808
|
+
d.length && (A[b >> 2] = gc(d));
|
|
1803
1809
|
return a;
|
|
1804
|
-
}, vd = {}, wd = a => {
|
|
1810
|
+
}, ud = [], vd = {}, wd = a => {
|
|
1805
1811
|
var b = vd[a];
|
|
1806
|
-
return void 0 === b ?
|
|
1807
|
-
}, xd =
|
|
1808
|
-
var b =
|
|
1809
|
-
|
|
1812
|
+
return void 0 === b ? J(a) : b;
|
|
1813
|
+
}, xd = a => {
|
|
1814
|
+
var b = ud.length;
|
|
1815
|
+
ud.push(a);
|
|
1810
1816
|
return b;
|
|
1811
|
-
},
|
|
1817
|
+
}, yd = (a, b) => {
|
|
1812
1818
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
1813
|
-
c[d] =
|
|
1819
|
+
c[d] = tc(A[b + 4 * d >> 2], "parameter " + d);
|
|
1814
1820
|
}
|
|
1815
1821
|
return c;
|
|
1816
|
-
},
|
|
1822
|
+
}, zd = Reflect.construct, Ad = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Bd = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], Cd = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], Dd = [], Ed = a => {
|
|
1817
1823
|
var b = a.getExtension("ANGLE_instanced_arrays");
|
|
1818
1824
|
b && (a.vertexAttribDivisor = (c, d) => b.vertexAttribDivisorANGLE(c, d), a.drawArraysInstanced = (c, d, e, f) => b.drawArraysInstancedANGLE(c, d, e, f), a.drawElementsInstanced = (c, d, e, f, g) => b.drawElementsInstancedANGLE(c, d, e, f, g));
|
|
1819
|
-
},
|
|
1825
|
+
}, Fd = a => {
|
|
1820
1826
|
var b = a.getExtension("OES_vertex_array_object");
|
|
1821
1827
|
b && (a.createVertexArray = () => b.createVertexArrayOES(), a.deleteVertexArray = c => b.deleteVertexArrayOES(c), a.bindVertexArray = c => b.bindVertexArrayOES(c), a.isVertexArray = c => b.isVertexArrayOES(c));
|
|
1822
|
-
},
|
|
1828
|
+
}, Gd = a => {
|
|
1823
1829
|
var b = a.getExtension("WEBGL_draw_buffers");
|
|
1824
1830
|
b && (a.drawBuffers = (c, d) => b.drawBuffersWEBGL(c, d));
|
|
1825
|
-
},
|
|
1831
|
+
}, Hd = a => {
|
|
1826
1832
|
var b = "ANGLE_instanced_arrays EXT_blend_minmax EXT_disjoint_timer_query EXT_frag_depth EXT_shader_texture_lod EXT_sRGB OES_element_index_uint OES_fbo_render_mipmap OES_standard_derivatives OES_texture_float OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_depth_texture WEBGL_draw_buffers EXT_color_buffer_float EXT_conservative_depth EXT_disjoint_timer_query_webgl2 EXT_texture_norm16 NV_shader_noperspective_interpolation WEBGL_clip_cull_distance EXT_color_buffer_half_float EXT_depth_clamp EXT_float_blend EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic KHR_parallel_shader_compile OES_texture_float_linear WEBGL_blend_func_extended WEBGL_compressed_texture_astc WEBGL_compressed_texture_etc WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw".split(" ");
|
|
1827
1833
|
return (a.getSupportedExtensions() || []).filter(c => b.includes(c));
|
|
1828
|
-
},
|
|
1829
|
-
for (var b =
|
|
1834
|
+
}, Id = 1, Jd = [], Kd = [], Ld = [], Md = [], Nd = [], Od = [], Pd = [], ma = [], Qd = [], Rd = [], Sd = {}, Td = {}, Ud = 4, Vd = 0, la = a => {
|
|
1835
|
+
for (var b = Id++, c = a.length; c < b; c++) {
|
|
1830
1836
|
a[c] = null;
|
|
1831
1837
|
}
|
|
1832
1838
|
return b;
|
|
@@ -1845,9 +1851,9 @@ var ed = (a, b) => {
|
|
|
1845
1851
|
if (!a.Pb) {
|
|
1846
1852
|
a.Pb = !0;
|
|
1847
1853
|
var b = a.Sa;
|
|
1854
|
+
Ed(b);
|
|
1848
1855
|
Fd(b);
|
|
1849
1856
|
Gd(b);
|
|
1850
|
-
Hd(b);
|
|
1851
1857
|
b.Ya = b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1852
1858
|
b.fb = b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1853
1859
|
2 <= a.version && (b.Za = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
@@ -1855,7 +1861,7 @@ var ed = (a, b) => {
|
|
|
1855
1861
|
b.Za = b.getExtension("EXT_disjoint_timer_query");
|
|
1856
1862
|
}
|
|
1857
1863
|
b.Bc = b.getExtension("WEBGL_multi_draw");
|
|
1858
|
-
|
|
1864
|
+
Hd(b).forEach(c => {
|
|
1859
1865
|
c.includes("lose_context") || c.includes("debug") || b.getExtension(c);
|
|
1860
1866
|
});
|
|
1861
1867
|
}
|
|
@@ -1873,7 +1879,7 @@ var ed = (a, b) => {
|
|
|
1873
1879
|
Wd(a, b, "createVertexArray", Pd);
|
|
1874
1880
|
};
|
|
1875
1881
|
function be() {
|
|
1876
|
-
var a =
|
|
1882
|
+
var a = Hd(R);
|
|
1877
1883
|
return a = a.concat(a.map(b => "GL_" + b));
|
|
1878
1884
|
}
|
|
1879
1885
|
var ce = (a, b) => {
|
|
@@ -2044,7 +2050,7 @@ var ce = (a, b) => {
|
|
|
2044
2050
|
function m(q) {
|
|
2045
2051
|
var t = q.$;
|
|
2046
2052
|
for (q = new Date((new Date(q.aa + 1900, 0, 1)).getTime()); 0 < t;) {
|
|
2047
|
-
var v = q.getMonth(), z = (
|
|
2053
|
+
var v = q.getMonth(), z = (Ad(q.getFullYear()) ? oe : pe)[v];
|
|
2048
2054
|
if (t > z - q.getDate()) {
|
|
2049
2055
|
t -= z - q.getDate() + 1, q.setDate(1), 11 > v ? q.setMonth(v + 1) : (q.setMonth(0), q.setFullYear(q.getFullYear() + 1));
|
|
2050
2056
|
} else {
|
|
@@ -2070,18 +2076,18 @@ var ce = (a, b) => {
|
|
|
2070
2076
|
0 == q ? q = 12 : 12 < q && (q -= 12);
|
|
2071
2077
|
return f(q, 2);
|
|
2072
2078
|
}, "%j":q => {
|
|
2073
|
-
for (var t = 0, v = 0; v <= q.Ga - 1; t += (
|
|
2079
|
+
for (var t = 0, v = 0; v <= q.Ga - 1; t += (Ad(q.aa + 1900) ? oe : pe)[v++]) {
|
|
2074
2080
|
}
|
|
2075
2081
|
return f(q.Pa + t, 3);
|
|
2076
2082
|
}, "%m":q => f(q.Ga + 1, 2), "%M":q => f(q.cc, 2), "%n":() => "\n", "%p":q => 0 <= q.Fa && 12 > q.Fa ? "AM" : "PM", "%S":q => f(q.dc, 2), "%t":() => "\t", "%u":q => q.P || 7, "%U":q => f(Math.floor((q.$ + 7 - q.P) / 7), 2), "%V":q => {
|
|
2077
2083
|
var t = Math.floor((q.$ + 7 - (q.P + 6) % 7) / 7);
|
|
2078
2084
|
2 >= (q.P + 371 - q.$ - 2) % 7 && t++;
|
|
2079
2085
|
if (t) {
|
|
2080
|
-
53 == t && (v = (q.P + 371 - q.$) % 7, 4 == v || 3 == v &&
|
|
2086
|
+
53 == t && (v = (q.P + 371 - q.$) % 7, 4 == v || 3 == v && Ad(q.aa) || (t = 1));
|
|
2081
2087
|
} else {
|
|
2082
2088
|
t = 52;
|
|
2083
2089
|
var v = (q.P + 7 - q.$ - 1) % 7;
|
|
2084
|
-
(4 == v || 5 == v &&
|
|
2090
|
+
(4 == v || 5 == v && Ad(q.aa % 400 - 1)) && t++;
|
|
2085
2091
|
}
|
|
2086
2092
|
return f(t, 2);
|
|
2087
2093
|
}, "%w":q => q.P, "%W":q => f(Math.floor((q.$ + 7 - (q.P + 6) % 7) / 7), 2), "%y":q => (q.aa + 1900).toString().substring(2), "%Y":q => q.aa + 1900, "%z":q => {
|
|
@@ -2150,32 +2156,32 @@ H = l.BindingError = class extends Error {
|
|
|
2150
2156
|
};
|
|
2151
2157
|
fc.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
|
|
2152
2158
|
l.count_emval_handles = () => fc.length / 2 - 5 - ec.length;
|
|
2153
|
-
|
|
2159
|
+
ic = l.PureVirtualError = hc("PureVirtualError");
|
|
2154
2160
|
for (var re = Array(256), se = 0; 256 > se; ++se) {
|
|
2155
2161
|
re[se] = String.fromCharCode(se);
|
|
2156
2162
|
}
|
|
2157
|
-
|
|
2158
|
-
l.getInheritedInstanceCount = () => Object.keys(
|
|
2163
|
+
jc = re;
|
|
2164
|
+
l.getInheritedInstanceCount = () => Object.keys(nc).length;
|
|
2159
2165
|
l.getLiveInheritedInstances = () => {
|
|
2160
2166
|
var a = [], b;
|
|
2161
|
-
for (b in
|
|
2162
|
-
|
|
2167
|
+
for (b in nc) {
|
|
2168
|
+
nc.hasOwnProperty(b) && a.push(nc[b]);
|
|
2163
2169
|
}
|
|
2164
2170
|
return a;
|
|
2165
2171
|
};
|
|
2166
|
-
l.flushPendingDeletes =
|
|
2172
|
+
l.flushPendingDeletes = lc;
|
|
2167
2173
|
l.setDelayFunction = a => {
|
|
2168
|
-
|
|
2169
|
-
|
|
2174
|
+
mc = a;
|
|
2175
|
+
kc.length && mc && mc(lc);
|
|
2170
2176
|
};
|
|
2171
|
-
|
|
2177
|
+
zc = l.InternalError = class extends Error {
|
|
2172
2178
|
constructor(a) {
|
|
2173
2179
|
super(a);
|
|
2174
2180
|
this.name = "InternalError";
|
|
2175
2181
|
}
|
|
2176
2182
|
};
|
|
2177
|
-
Object.assign(
|
|
2178
|
-
if (!(this instanceof
|
|
2183
|
+
Object.assign(Kc.prototype, {isAliasOf:function(a) {
|
|
2184
|
+
if (!(this instanceof Kc && a instanceof Kc)) {
|
|
2179
2185
|
return !1;
|
|
2180
2186
|
}
|
|
2181
2187
|
var b = this.g.u.i, c = this.g.o;
|
|
@@ -2189,21 +2195,21 @@ Object.assign(Lc.prototype, {isAliasOf:function(a) {
|
|
|
2189
2195
|
}
|
|
2190
2196
|
return b === d && c === a;
|
|
2191
2197
|
}, clone:function() {
|
|
2192
|
-
this.g.o ||
|
|
2198
|
+
this.g.o || Jc(this);
|
|
2193
2199
|
if (this.g.ha) {
|
|
2194
2200
|
return this.g.count.value += 1, this;
|
|
2195
2201
|
}
|
|
2196
|
-
var a =
|
|
2202
|
+
var a = Ac, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2197
2203
|
a = a(c.call(b, d, {g:{value:{count:e.count, fa:e.fa, ha:e.ha, o:e.o, u:e.u, D:e.D, I:e.I,},}}));
|
|
2198
2204
|
a.g.count.value += 1;
|
|
2199
2205
|
a.g.fa = !1;
|
|
2200
2206
|
return a;
|
|
2201
2207
|
}, ["delete"]() {
|
|
2202
|
-
this.g.o ||
|
|
2208
|
+
this.g.o || Jc(this);
|
|
2203
2209
|
if (this.g.fa && !this.g.ha) {
|
|
2204
2210
|
throw new H("Object already scheduled for deletion");
|
|
2205
2211
|
}
|
|
2206
|
-
|
|
2212
|
+
uc(this);
|
|
2207
2213
|
var a = this.g;
|
|
2208
2214
|
--a.count.value;
|
|
2209
2215
|
0 === a.count.value && (a.D ? a.I.N(a.D) : a.u.i.N(a.o));
|
|
@@ -2211,29 +2217,29 @@ Object.assign(Lc.prototype, {isAliasOf:function(a) {
|
|
|
2211
2217
|
}, isDeleted:function() {
|
|
2212
2218
|
return !this.g.o;
|
|
2213
2219
|
}, deleteLater:function() {
|
|
2214
|
-
this.g.o ||
|
|
2220
|
+
this.g.o || Jc(this);
|
|
2215
2221
|
if (this.g.fa && !this.g.ha) {
|
|
2216
2222
|
throw new H("Object already scheduled for deletion");
|
|
2217
2223
|
}
|
|
2218
|
-
|
|
2219
|
-
1 ===
|
|
2224
|
+
kc.push(this);
|
|
2225
|
+
1 === kc.length && mc && mc(lc);
|
|
2220
2226
|
this.g.fa = !0;
|
|
2221
2227
|
return this;
|
|
2222
2228
|
},});
|
|
2223
|
-
Object.assign(
|
|
2229
|
+
Object.assign(Uc.prototype, {Kb(a) {
|
|
2224
2230
|
this.mb && (a = this.mb(a));
|
|
2225
2231
|
return a;
|
|
2226
2232
|
}, Xa(a) {
|
|
2227
2233
|
this.N?.(a);
|
|
2228
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2234
|
+
}, argPackAdvance:8, readValueFromPointer:Ec, fromWireType:function(a) {
|
|
2229
2235
|
function b() {
|
|
2230
|
-
return this.ua ?
|
|
2236
|
+
return this.ua ? Bc(this.i.L, {u:this.Wb, o:c, I:this, D:a,}) : Bc(this.i.L, {u:this, o:a,});
|
|
2231
2237
|
}
|
|
2232
2238
|
var c = this.Kb(a);
|
|
2233
2239
|
if (!c) {
|
|
2234
2240
|
return this.Xa(a), null;
|
|
2235
2241
|
}
|
|
2236
|
-
var d =
|
|
2242
|
+
var d = yc(this.i, c);
|
|
2237
2243
|
if (void 0 !== d) {
|
|
2238
2244
|
if (0 === d.g.count.value) {
|
|
2239
2245
|
return d.g.o = c, d.g.D = a, d.clone();
|
|
@@ -2243,15 +2249,15 @@ Object.assign(Vc.prototype, {Kb(a) {
|
|
|
2243
2249
|
return d;
|
|
2244
2250
|
}
|
|
2245
2251
|
d = this.i.Jb(c);
|
|
2246
|
-
d =
|
|
2252
|
+
d = xc[d];
|
|
2247
2253
|
if (!d) {
|
|
2248
2254
|
return b.call(this);
|
|
2249
2255
|
}
|
|
2250
2256
|
d = this.ta ? d.Cb : d.pointerType;
|
|
2251
|
-
var e =
|
|
2252
|
-
return null === e ? b.call(this) : this.ua ?
|
|
2257
|
+
var e = wc(c, this.i, d.i);
|
|
2258
|
+
return null === e ? b.call(this) : this.ua ? Bc(d.i.L, {u:d, o:e, I:this, D:a,}) : Bc(d.i.L, {u:d, o:e,});
|
|
2253
2259
|
},});
|
|
2254
|
-
|
|
2260
|
+
$c = l.UnboundTypeError = hc("UnboundTypeError");
|
|
2255
2261
|
for (var R, V = 0; 32 > V; ++V) {
|
|
2256
2262
|
$d.push(Array(V));
|
|
2257
2263
|
}
|
|
@@ -2394,14 +2400,14 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2394
2400
|
}, _abort_js:() => {
|
|
2395
2401
|
La("");
|
|
2396
2402
|
}, _embind_create_inheriting_constructor:(a, b, c) => {
|
|
2397
|
-
a =
|
|
2398
|
-
b =
|
|
2399
|
-
c =
|
|
2403
|
+
a = J(a);
|
|
2404
|
+
b = tc(b, "wrapper");
|
|
2405
|
+
c = I(c);
|
|
2400
2406
|
var d = b.i, e = d.L, f = d.B.L, g = d.B.constructor;
|
|
2401
2407
|
a = dc(a, function(...k) {
|
|
2402
2408
|
d.B.lb.forEach(function(m) {
|
|
2403
2409
|
if (this[m] === f[m]) {
|
|
2404
|
-
throw new
|
|
2410
|
+
throw new ic(`Pure virtual function ${m} must be implemented in JavaScript`);
|
|
2405
2411
|
}
|
|
2406
2412
|
}.bind(this));
|
|
2407
2413
|
Object.defineProperty(this, "__parent", {value:e});
|
|
@@ -2412,47 +2418,47 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2412
2418
|
throw new H("Pass correct 'this' to __construct");
|
|
2413
2419
|
}
|
|
2414
2420
|
k = g.implement(this, ...k);
|
|
2415
|
-
|
|
2421
|
+
uc(k);
|
|
2416
2422
|
var m = k.g;
|
|
2417
2423
|
k.notifyOnDestruction();
|
|
2418
2424
|
m.ha = !0;
|
|
2419
2425
|
Object.defineProperties(this, {g:{value:m}});
|
|
2420
|
-
|
|
2426
|
+
Ac(this);
|
|
2421
2427
|
k = m.o;
|
|
2422
|
-
k =
|
|
2423
|
-
if (
|
|
2428
|
+
k = oc(d, k);
|
|
2429
|
+
if (nc.hasOwnProperty(k)) {
|
|
2424
2430
|
throw new H(`Tried to register registered instance: ${k}`);
|
|
2425
2431
|
}
|
|
2426
|
-
|
|
2432
|
+
nc[k] = this;
|
|
2427
2433
|
};
|
|
2428
2434
|
e.__destruct = function() {
|
|
2429
2435
|
if (this === e) {
|
|
2430
2436
|
throw new H("Pass correct 'this' to __destruct");
|
|
2431
2437
|
}
|
|
2432
|
-
|
|
2438
|
+
uc(this);
|
|
2433
2439
|
var k = this.g.o;
|
|
2434
|
-
k =
|
|
2435
|
-
if (
|
|
2436
|
-
delete
|
|
2440
|
+
k = oc(d, k);
|
|
2441
|
+
if (nc.hasOwnProperty(k)) {
|
|
2442
|
+
delete nc[k];
|
|
2437
2443
|
} else {
|
|
2438
2444
|
throw new H(`Tried to unregister unregistered instance: ${k}`);
|
|
2439
2445
|
}
|
|
2440
2446
|
};
|
|
2441
2447
|
a.prototype = Object.create(e);
|
|
2442
2448
|
Object.assign(a.prototype, c);
|
|
2443
|
-
return
|
|
2449
|
+
return gc(a);
|
|
2444
2450
|
}, _embind_finalize_value_object:a => {
|
|
2445
|
-
var b =
|
|
2446
|
-
delete
|
|
2451
|
+
var b = Cc[a];
|
|
2452
|
+
delete Cc[a];
|
|
2447
2453
|
var c = b.Na, d = b.N, e = b.$a, f = e.map(g => g.Nb).concat(e.map(g => g.Zb));
|
|
2448
|
-
|
|
2454
|
+
K([a], f, g => {
|
|
2449
2455
|
var k = {};
|
|
2450
2456
|
e.forEach((m, p) => {
|
|
2451
2457
|
var r = g[p], w = m.Lb, y = m.Mb, q = g[p + e.length], t = m.Yb, v = m.$b;
|
|
2452
2458
|
k[m.Hb] = {read:z => r.fromWireType(w(y, z)), write:(z, D) => {
|
|
2453
2459
|
var F = [];
|
|
2454
2460
|
t(v, z, q.toWireType(F, D));
|
|
2455
|
-
|
|
2461
|
+
Dc(F);
|
|
2456
2462
|
}};
|
|
2457
2463
|
});
|
|
2458
2464
|
return [{name:b.name, fromWireType:m => {
|
|
@@ -2474,12 +2480,12 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2474
2480
|
}
|
|
2475
2481
|
null !== m && m.push(d, w);
|
|
2476
2482
|
return w;
|
|
2477
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2483
|
+
}, argPackAdvance:8, readValueFromPointer:Ec, K:d,}];
|
|
2478
2484
|
});
|
|
2479
2485
|
}, _embind_register_bigint:() => {
|
|
2480
2486
|
}, _embind_register_bool:(a, b, c, d) => {
|
|
2481
|
-
b =
|
|
2482
|
-
|
|
2487
|
+
b = J(b);
|
|
2488
|
+
Hc(a, {name:b, fromWireType:function(e) {
|
|
2483
2489
|
return !!e;
|
|
2484
2490
|
}, toWireType:function(e, f) {
|
|
2485
2491
|
return f ? c : d;
|
|
@@ -2487,22 +2493,22 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2487
2493
|
return this.fromWireType(u[e]);
|
|
2488
2494
|
}, K:null,});
|
|
2489
2495
|
}, _embind_register_class:(a, b, c, d, e, f, g, k, m, p, r, w, y) => {
|
|
2490
|
-
r =
|
|
2491
|
-
f =
|
|
2492
|
-
k &&=
|
|
2493
|
-
p &&=
|
|
2494
|
-
y =
|
|
2495
|
-
var q =
|
|
2496
|
-
|
|
2497
|
-
|
|
2496
|
+
r = J(r);
|
|
2497
|
+
f = Q(e, f);
|
|
2498
|
+
k &&= Q(g, k);
|
|
2499
|
+
p &&= Q(m, p);
|
|
2500
|
+
y = Q(w, y);
|
|
2501
|
+
var q = Nc(r);
|
|
2502
|
+
Mc(q, function() {
|
|
2503
|
+
ad(`Cannot construct ${r} due to unbound types`, [d]);
|
|
2498
2504
|
});
|
|
2499
|
-
|
|
2505
|
+
K([a, b, c], d ? [d] : [], t => {
|
|
2500
2506
|
t = t[0];
|
|
2501
2507
|
if (d) {
|
|
2502
2508
|
var v = t.i;
|
|
2503
2509
|
var z = v.L;
|
|
2504
2510
|
} else {
|
|
2505
|
-
z =
|
|
2511
|
+
z = Kc.prototype;
|
|
2506
2512
|
}
|
|
2507
2513
|
t = dc(r, function(...N) {
|
|
2508
2514
|
if (Object.getPrototypeOf(this) !== D) {
|
|
@@ -2519,35 +2525,35 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2519
2525
|
});
|
|
2520
2526
|
var D = Object.create(z, {constructor:{value:t},});
|
|
2521
2527
|
t.prototype = D;
|
|
2522
|
-
var F = new
|
|
2528
|
+
var F = new Oc(r, t, D, y, v, f, k, p);
|
|
2523
2529
|
if (F.B) {
|
|
2524
2530
|
var M;
|
|
2525
2531
|
(M = F.B).na ?? (M.na = []);
|
|
2526
2532
|
F.B.na.push(F);
|
|
2527
2533
|
}
|
|
2528
|
-
v = new
|
|
2529
|
-
M = new
|
|
2530
|
-
z = new
|
|
2531
|
-
|
|
2532
|
-
|
|
2534
|
+
v = new Uc(r, F, !0, !1, !1);
|
|
2535
|
+
M = new Uc(r + "*", F, !1, !1, !1);
|
|
2536
|
+
z = new Uc(r + " const*", F, !1, !0, !1);
|
|
2537
|
+
xc[a] = {pointerType:M, Cb:z};
|
|
2538
|
+
Vc(q, t);
|
|
2533
2539
|
return [v, M, z];
|
|
2534
2540
|
});
|
|
2535
2541
|
}, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
|
|
2536
|
-
var k =
|
|
2537
|
-
b =
|
|
2538
|
-
b =
|
|
2539
|
-
f =
|
|
2540
|
-
|
|
2542
|
+
var k = dd(c, d);
|
|
2543
|
+
b = J(b);
|
|
2544
|
+
b = ed(b);
|
|
2545
|
+
f = Q(e, f);
|
|
2546
|
+
K([], [a], m => {
|
|
2541
2547
|
function p() {
|
|
2542
|
-
|
|
2548
|
+
ad(`Cannot call ${r} due to unbound types`, k);
|
|
2543
2549
|
}
|
|
2544
2550
|
m = m[0];
|
|
2545
2551
|
var r = `${m.name}.${b}`;
|
|
2546
2552
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2547
2553
|
var w = m.i.constructor;
|
|
2548
|
-
void 0 === w[b] ? (p.da = c - 1, w[b] = p) : (
|
|
2549
|
-
|
|
2550
|
-
y =
|
|
2554
|
+
void 0 === w[b] ? (p.da = c - 1, w[b] = p) : (Lc(w, b, r), w[b].A[c - 1] = p);
|
|
2555
|
+
K([], k, y => {
|
|
2556
|
+
y = cd(r, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2551
2557
|
void 0 === w[b].A ? (y.da = c - 1, w[b] = y) : w[b].A[c - 1] = y;
|
|
2552
2558
|
if (m.i.na) {
|
|
2553
2559
|
for (const q of m.i.na) {
|
|
@@ -2559,28 +2565,28 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2559
2565
|
return [];
|
|
2560
2566
|
});
|
|
2561
2567
|
}, _embind_register_class_class_property:(a, b, c, d, e, f, g, k) => {
|
|
2562
|
-
b =
|
|
2563
|
-
f =
|
|
2564
|
-
|
|
2568
|
+
b = J(b);
|
|
2569
|
+
f = Q(e, f);
|
|
2570
|
+
K([], [a], m => {
|
|
2565
2571
|
m = m[0];
|
|
2566
2572
|
var p = `${m.name}.${b}`, r = {get() {
|
|
2567
|
-
|
|
2573
|
+
ad(`Cannot access ${p} due to unbound types`, [c]);
|
|
2568
2574
|
}, enumerable:!0, configurable:!0};
|
|
2569
2575
|
r.set = k ? () => {
|
|
2570
|
-
|
|
2576
|
+
ad(`Cannot access ${p} due to unbound types`, [c]);
|
|
2571
2577
|
} : () => {
|
|
2572
2578
|
throw new H(`${p} is a read-only property`);
|
|
2573
2579
|
};
|
|
2574
2580
|
Object.defineProperty(m.i.constructor, b, r);
|
|
2575
|
-
|
|
2581
|
+
K([], [c], w => {
|
|
2576
2582
|
w = w[0];
|
|
2577
2583
|
var y = {get() {
|
|
2578
2584
|
return w.fromWireType(f(d));
|
|
2579
2585
|
}, enumerable:!0};
|
|
2580
|
-
k && (k =
|
|
2586
|
+
k && (k = Q(g, k), y.set = q => {
|
|
2581
2587
|
var t = [];
|
|
2582
2588
|
k(d, w.toWireType(t, q));
|
|
2583
|
-
|
|
2589
|
+
Dc(t);
|
|
2584
2590
|
});
|
|
2585
2591
|
Object.defineProperty(m.i.constructor, b, y);
|
|
2586
2592
|
return [];
|
|
@@ -2588,9 +2594,9 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2588
2594
|
return [];
|
|
2589
2595
|
});
|
|
2590
2596
|
}, _embind_register_class_constructor:(a, b, c, d, e, f) => {
|
|
2591
|
-
var g =
|
|
2592
|
-
e =
|
|
2593
|
-
|
|
2597
|
+
var g = dd(b, c);
|
|
2598
|
+
e = Q(d, e);
|
|
2599
|
+
K([], [a], k => {
|
|
2594
2600
|
k = k[0];
|
|
2595
2601
|
var m = `constructor ${k.name}`;
|
|
2596
2602
|
void 0 === k.i.X && (k.i.X = []);
|
|
@@ -2598,61 +2604,61 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2598
2604
|
throw new H(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2599
2605
|
}
|
|
2600
2606
|
k.i.X[b - 1] = () => {
|
|
2601
|
-
|
|
2607
|
+
ad(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2602
2608
|
};
|
|
2603
|
-
|
|
2609
|
+
K([], g, p => {
|
|
2604
2610
|
p.splice(1, 0, null);
|
|
2605
|
-
k.i.X[b - 1] =
|
|
2611
|
+
k.i.X[b - 1] = cd(m, p, null, e, f);
|
|
2606
2612
|
return [];
|
|
2607
2613
|
});
|
|
2608
2614
|
return [];
|
|
2609
2615
|
});
|
|
2610
2616
|
}, _embind_register_class_function:(a, b, c, d, e, f, g, k) => {
|
|
2611
|
-
var m =
|
|
2612
|
-
b =
|
|
2613
|
-
b =
|
|
2614
|
-
f =
|
|
2615
|
-
|
|
2617
|
+
var m = dd(c, d);
|
|
2618
|
+
b = J(b);
|
|
2619
|
+
b = ed(b);
|
|
2620
|
+
f = Q(e, f);
|
|
2621
|
+
K([], [a], p => {
|
|
2616
2622
|
function r() {
|
|
2617
|
-
|
|
2623
|
+
ad(`Cannot call ${w} due to unbound types`, m);
|
|
2618
2624
|
}
|
|
2619
2625
|
p = p[0];
|
|
2620
2626
|
var w = `${p.name}.${b}`;
|
|
2621
2627
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2622
2628
|
k && p.i.lb.push(b);
|
|
2623
2629
|
var y = p.i.L, q = y[b];
|
|
2624
|
-
void 0 === q || void 0 === q.A && q.className !== p.name && q.da === c - 2 ? (r.da = c - 2, r.className = p.name, y[b] = r) : (
|
|
2625
|
-
|
|
2626
|
-
t =
|
|
2630
|
+
void 0 === q || void 0 === q.A && q.className !== p.name && q.da === c - 2 ? (r.da = c - 2, r.className = p.name, y[b] = r) : (Lc(y, b, w), y[b].A[c - 2] = r);
|
|
2631
|
+
K([], m, t => {
|
|
2632
|
+
t = cd(w, t, p, f, g);
|
|
2627
2633
|
void 0 === y[b].A ? (t.da = c - 2, y[b] = t) : y[b].A[c - 2] = t;
|
|
2628
2634
|
return [];
|
|
2629
2635
|
});
|
|
2630
2636
|
return [];
|
|
2631
2637
|
});
|
|
2632
2638
|
}, _embind_register_class_property:(a, b, c, d, e, f, g, k, m, p) => {
|
|
2633
|
-
b =
|
|
2634
|
-
e =
|
|
2635
|
-
|
|
2639
|
+
b = J(b);
|
|
2640
|
+
e = Q(d, e);
|
|
2641
|
+
K([], [a], r => {
|
|
2636
2642
|
r = r[0];
|
|
2637
2643
|
var w = `${r.name}.${b}`, y = {get() {
|
|
2638
|
-
|
|
2644
|
+
ad(`Cannot access ${w} due to unbound types`, [c, g]);
|
|
2639
2645
|
}, enumerable:!0, configurable:!0};
|
|
2640
|
-
y.set = m ? () =>
|
|
2646
|
+
y.set = m ? () => ad(`Cannot access ${w} due to unbound types`, [c, g]) : () => {
|
|
2641
2647
|
throw new H(w + " is a read-only property");
|
|
2642
2648
|
};
|
|
2643
2649
|
Object.defineProperty(r.i.L, b, y);
|
|
2644
|
-
|
|
2650
|
+
K([], m ? [c, g] : [c], q => {
|
|
2645
2651
|
var t = q[0], v = {get() {
|
|
2646
|
-
var D =
|
|
2652
|
+
var D = fd(this, r, w + " getter");
|
|
2647
2653
|
return t.fromWireType(e(f, D));
|
|
2648
2654
|
}, enumerable:!0};
|
|
2649
2655
|
if (m) {
|
|
2650
|
-
m =
|
|
2656
|
+
m = Q(k, m);
|
|
2651
2657
|
var z = q[1];
|
|
2652
2658
|
v.set = function(D) {
|
|
2653
|
-
var F =
|
|
2659
|
+
var F = fd(this, r, w + " setter"), M = [];
|
|
2654
2660
|
m(p, F, z.toWireType(M, D));
|
|
2655
|
-
|
|
2661
|
+
Dc(M);
|
|
2656
2662
|
};
|
|
2657
2663
|
}
|
|
2658
2664
|
Object.defineProperty(r.i.L, b, v);
|
|
@@ -2660,40 +2666,40 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2660
2666
|
});
|
|
2661
2667
|
return [];
|
|
2662
2668
|
});
|
|
2663
|
-
}, _embind_register_emval:a =>
|
|
2669
|
+
}, _embind_register_emval:a => Hc(a, hd), _embind_register_enum:(a, b, c, d) => {
|
|
2664
2670
|
function e() {
|
|
2665
2671
|
}
|
|
2666
|
-
b =
|
|
2672
|
+
b = J(b);
|
|
2667
2673
|
e.values = {};
|
|
2668
|
-
|
|
2674
|
+
Hc(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2669
2675
|
return this.constructor.values[f];
|
|
2670
|
-
}, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:
|
|
2671
|
-
|
|
2676
|
+
}, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:jd(b, c, d), K:null,});
|
|
2677
|
+
Mc(b, e);
|
|
2672
2678
|
}, _embind_register_enum_value:(a, b, c) => {
|
|
2673
|
-
var d =
|
|
2674
|
-
b =
|
|
2679
|
+
var d = tc(a, "enum");
|
|
2680
|
+
b = J(b);
|
|
2675
2681
|
a = d.constructor;
|
|
2676
2682
|
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:dc(`${d.name}_${b}`, function() {
|
|
2677
2683
|
})},});
|
|
2678
2684
|
a.values[c] = d;
|
|
2679
2685
|
a[b] = d;
|
|
2680
2686
|
}, _embind_register_float:(a, b, c) => {
|
|
2681
|
-
b =
|
|
2682
|
-
|
|
2687
|
+
b = J(b);
|
|
2688
|
+
Hc(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:kd(b, c), K:null,});
|
|
2683
2689
|
}, _embind_register_function:(a, b, c, d, e, f) => {
|
|
2684
|
-
var g =
|
|
2685
|
-
a =
|
|
2686
|
-
a =
|
|
2687
|
-
e =
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
+
var g = dd(b, c);
|
|
2691
|
+
a = J(a);
|
|
2692
|
+
a = ed(a);
|
|
2693
|
+
e = Q(d, e);
|
|
2694
|
+
Mc(a, function() {
|
|
2695
|
+
ad(`Cannot call ${a} due to unbound types`, g);
|
|
2690
2696
|
}, b - 1);
|
|
2691
|
-
|
|
2692
|
-
|
|
2697
|
+
K([], g, k => {
|
|
2698
|
+
Vc(a, cd(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
|
|
2693
2699
|
return [];
|
|
2694
2700
|
});
|
|
2695
2701
|
}, _embind_register_integer:(a, b, c, d, e) => {
|
|
2696
|
-
b =
|
|
2702
|
+
b = J(b);
|
|
2697
2703
|
-1 === e && (e = 4294967295);
|
|
2698
2704
|
e = k => k;
|
|
2699
2705
|
if (0 === d) {
|
|
@@ -2705,18 +2711,18 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2705
2711
|
} : function(k, m) {
|
|
2706
2712
|
return m;
|
|
2707
2713
|
};
|
|
2708
|
-
|
|
2714
|
+
Hc(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:ld(b, c, 0 !== d), K:null,});
|
|
2709
2715
|
}, _embind_register_memory_view:(a, b, c) => {
|
|
2710
2716
|
function d(f) {
|
|
2711
2717
|
return new e(n.buffer, A[f + 4 >> 2], A[f >> 2]);
|
|
2712
2718
|
}
|
|
2713
2719
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2714
|
-
c =
|
|
2715
|
-
|
|
2720
|
+
c = J(c);
|
|
2721
|
+
Hc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Ob:!0,});
|
|
2716
2722
|
}, _embind_register_std_string:(a, b) => {
|
|
2717
|
-
b =
|
|
2723
|
+
b = J(b);
|
|
2718
2724
|
var c = "std::string" === b;
|
|
2719
|
-
|
|
2725
|
+
Hc(a, {name:b, fromWireType:function(d) {
|
|
2720
2726
|
var e = A[d >> 2], f = d + 4;
|
|
2721
2727
|
if (c) {
|
|
2722
2728
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
@@ -2738,7 +2744,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2738
2744
|
}
|
|
2739
2745
|
p = p.join("");
|
|
2740
2746
|
}
|
|
2741
|
-
|
|
2747
|
+
rc(d);
|
|
2742
2748
|
return p;
|
|
2743
2749
|
}, toWireType:function(d, e) {
|
|
2744
2750
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
@@ -2756,7 +2762,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2756
2762
|
for (f = 0; f < g; ++f) {
|
|
2757
2763
|
var p = e.charCodeAt(f);
|
|
2758
2764
|
if (255 < p) {
|
|
2759
|
-
throw
|
|
2765
|
+
throw rc(m), new H("String has UTF-16 code units that do not fit in 8 bits");
|
|
2760
2766
|
}
|
|
2761
2767
|
u[m + f] = p;
|
|
2762
2768
|
}
|
|
@@ -2766,29 +2772,29 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2766
2772
|
}
|
|
2767
2773
|
}
|
|
2768
2774
|
}
|
|
2769
|
-
null !== d && d.push(
|
|
2775
|
+
null !== d && d.push(rc, k);
|
|
2770
2776
|
return k;
|
|
2771
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2772
|
-
|
|
2777
|
+
}, argPackAdvance:8, readValueFromPointer:Ec, K(d) {
|
|
2778
|
+
rc(d);
|
|
2773
2779
|
},});
|
|
2774
2780
|
}, _embind_register_std_wstring:(a, b, c) => {
|
|
2775
|
-
c =
|
|
2781
|
+
c = J(c);
|
|
2776
2782
|
if (2 === b) {
|
|
2777
|
-
var d =
|
|
2778
|
-
var e =
|
|
2779
|
-
var f =
|
|
2783
|
+
var d = nd;
|
|
2784
|
+
var e = od;
|
|
2785
|
+
var f = pd;
|
|
2780
2786
|
var g = k => Ba[k >> 1];
|
|
2781
2787
|
} else {
|
|
2782
|
-
4 === b && (d =
|
|
2788
|
+
4 === b && (d = qd, e = rd, f = sd, g = k => A[k >> 2]);
|
|
2783
2789
|
}
|
|
2784
|
-
|
|
2790
|
+
Hc(a, {name:c, fromWireType:k => {
|
|
2785
2791
|
for (var m = A[k >> 2], p, r = k + 4, w = 0; w <= m; ++w) {
|
|
2786
2792
|
var y = k + 4 + w * b;
|
|
2787
2793
|
if (w == m || 0 == g(y)) {
|
|
2788
2794
|
r = d(r, y - r), void 0 === p ? p = r : (p += String.fromCharCode(0), p += r), r = y + b;
|
|
2789
2795
|
}
|
|
2790
2796
|
}
|
|
2791
|
-
|
|
2797
|
+
rc(k);
|
|
2792
2798
|
return p;
|
|
2793
2799
|
}, toWireType:(k, m) => {
|
|
2794
2800
|
if ("string" != typeof m) {
|
|
@@ -2797,62 +2803,66 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2797
2803
|
var p = f(m), r = ee(4 + p + b);
|
|
2798
2804
|
A[r >> 2] = p / b;
|
|
2799
2805
|
e(m, r + 4, p + b);
|
|
2800
|
-
null !== k && k.push(
|
|
2806
|
+
null !== k && k.push(rc, r);
|
|
2801
2807
|
return r;
|
|
2802
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2803
|
-
|
|
2808
|
+
}, argPackAdvance:8, readValueFromPointer:Ec, K(k) {
|
|
2809
|
+
rc(k);
|
|
2804
2810
|
}});
|
|
2805
2811
|
}, _embind_register_value_object:(a, b, c, d, e, f) => {
|
|
2806
|
-
|
|
2812
|
+
Cc[a] = {name:J(b), Na:Q(c, d), N:Q(e, f), $a:[],};
|
|
2807
2813
|
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, m, p) => {
|
|
2808
|
-
|
|
2814
|
+
Cc[a].$a.push({Hb:J(b), Nb:c, Lb:Q(d, e), Mb:f, Zb:g, Yb:Q(k, m), $b:p,});
|
|
2809
2815
|
}, _embind_register_void:(a, b) => {
|
|
2810
|
-
b =
|
|
2811
|
-
|
|
2816
|
+
b = J(b);
|
|
2817
|
+
Hc(a, {yc:!0, name:b, argPackAdvance:0, fromWireType:() => {
|
|
2812
2818
|
}, toWireType:() => {
|
|
2813
2819
|
},});
|
|
2814
2820
|
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => u.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
|
|
2815
2821
|
throw Infinity;
|
|
2816
2822
|
}, _emval_as:(a, b, c) => {
|
|
2817
|
-
a =
|
|
2818
|
-
b =
|
|
2819
|
-
return
|
|
2823
|
+
a = I(a);
|
|
2824
|
+
b = tc(b, "emval::as");
|
|
2825
|
+
return td(b, c, a);
|
|
2826
|
+
}, _emval_call:(a, b, c, d) => {
|
|
2827
|
+
a = ud[a];
|
|
2828
|
+
b = I(b);
|
|
2829
|
+
return a(null, b, c, d);
|
|
2820
2830
|
}, _emval_call_method:(a, b, c, d, e) => {
|
|
2821
|
-
a =
|
|
2822
|
-
b =
|
|
2831
|
+
a = ud[a];
|
|
2832
|
+
b = I(b);
|
|
2823
2833
|
c = wd(c);
|
|
2824
2834
|
return a(b, b[c], d, e);
|
|
2825
|
-
}, _emval_decref:
|
|
2826
|
-
var d =
|
|
2835
|
+
}, _emval_decref:gd, _emval_get_method_caller:(a, b, c) => {
|
|
2836
|
+
var d = yd(a, b), e = d.shift();
|
|
2827
2837
|
a--;
|
|
2828
2838
|
var f = Array(a);
|
|
2829
2839
|
b = `methodCaller<(${d.map(g => g.name).join(", ")}) => ${e.name}>`;
|
|
2830
|
-
return
|
|
2840
|
+
return xd(dc(b, (g, k, m, p) => {
|
|
2831
2841
|
for (var r = 0, w = 0; w < a; ++w) {
|
|
2832
2842
|
f[w] = d[w].readValueFromPointer(p + r), r += d[w].argPackAdvance;
|
|
2833
2843
|
}
|
|
2834
|
-
g = 1 === c ?
|
|
2835
|
-
return
|
|
2844
|
+
g = 1 === c ? zd(k, f) : k.apply(g, f);
|
|
2845
|
+
return td(e, m, g);
|
|
2836
2846
|
}));
|
|
2837
2847
|
}, _emval_get_property:(a, b) => {
|
|
2838
|
-
a =
|
|
2839
|
-
b =
|
|
2840
|
-
return
|
|
2848
|
+
a = I(a);
|
|
2849
|
+
b = I(b);
|
|
2850
|
+
return gc(a[b]);
|
|
2841
2851
|
}, _emval_incref:a => {
|
|
2842
2852
|
9 < a && (fc[a + 1] += 1);
|
|
2843
|
-
}, _emval_new_array:() =>
|
|
2844
|
-
var b =
|
|
2845
|
-
|
|
2846
|
-
|
|
2853
|
+
}, _emval_new_array:() => gc([]), _emval_new_cstring:a => gc(wd(a)), _emval_new_object:() => gc({}), _emval_run_destructors:a => {
|
|
2854
|
+
var b = I(a);
|
|
2855
|
+
Dc(b);
|
|
2856
|
+
gd(a);
|
|
2847
2857
|
}, _emval_set_property:(a, b, c) => {
|
|
2848
|
-
a =
|
|
2849
|
-
b =
|
|
2850
|
-
c =
|
|
2858
|
+
a = I(a);
|
|
2859
|
+
b = I(b);
|
|
2860
|
+
c = I(c);
|
|
2851
2861
|
a[b] = c;
|
|
2852
2862
|
}, _emval_take_value:(a, b) => {
|
|
2853
|
-
a =
|
|
2863
|
+
a = tc(a, "_emval_take_value");
|
|
2854
2864
|
a = a.readValueFromPointer(b);
|
|
2855
|
-
return
|
|
2865
|
+
return gc(a);
|
|
2856
2866
|
}, _gmtime_js:function(a, b, c) {
|
|
2857
2867
|
a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
|
|
2858
2868
|
x[c >> 2] = a.getUTCSeconds();
|
|
@@ -2872,7 +2882,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2872
2882
|
x[c + 16 >> 2] = a.getMonth();
|
|
2873
2883
|
x[c + 20 >> 2] = a.getFullYear() - 1900;
|
|
2874
2884
|
x[c + 24 >> 2] = a.getDay();
|
|
2875
|
-
x[c + 28 >> 2] = (
|
|
2885
|
+
x[c + 28 >> 2] = (Ad(a.getFullYear()) ? Bd : Cd)[a.getMonth()] + a.getDate() - 1 | 0;
|
|
2876
2886
|
x[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
|
|
2877
2887
|
b = (new Date(a.getFullYear(), 6, 1)).getTimezoneOffset();
|
|
2878
2888
|
var d = (new Date(a.getFullYear(), 0, 1)).getTimezoneOffset();
|
|
@@ -2888,22 +2898,22 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2888
2898
|
g = a(g);
|
|
2889
2899
|
k < e ? (kb(f, u, c, 17), kb(g, u, d, 17)) : (kb(f, u, d, 17), kb(g, u, c, 17));
|
|
2890
2900
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2891
|
-
|
|
2901
|
+
Dd.length = 0;
|
|
2892
2902
|
for (var d; d = u[b++];) {
|
|
2893
2903
|
var e = 105 != d;
|
|
2894
2904
|
e &= 112 != d;
|
|
2895
2905
|
c += e && c % 8 ? 4 : 0;
|
|
2896
|
-
|
|
2906
|
+
Dd.push(112 == d ? A[c >> 2] : 105 == d ? x[c >> 2] : Ca[c >> 3]);
|
|
2897
2907
|
c += e ? 8 : 4;
|
|
2898
2908
|
}
|
|
2899
|
-
return Xa[a](...
|
|
2909
|
+
return Xa[a](...Dd);
|
|
2900
2910
|
}, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_glActiveTexture:a => R.activeTexture(a), emscripten_glAttachShader:(a, b) => {
|
|
2901
|
-
R.attachShader(
|
|
2911
|
+
R.attachShader(Kd[a], Od[b]);
|
|
2902
2912
|
}, emscripten_glBindAttribLocation:(a, b, c) => {
|
|
2903
|
-
R.bindAttribLocation(
|
|
2913
|
+
R.bindAttribLocation(Kd[a], b, c ? C(u, c) : "");
|
|
2904
2914
|
}, emscripten_glBindBuffer:(a, b) => {
|
|
2905
2915
|
35051 == a ? R.Ia = b : 35052 == a && (R.ea = b);
|
|
2906
|
-
R.bindBuffer(a,
|
|
2916
|
+
R.bindBuffer(a, Jd[b]);
|
|
2907
2917
|
}, emscripten_glBindFramebuffer:Xd, emscripten_glBindRenderbuffer:(a, b) => {
|
|
2908
2918
|
R.bindRenderbuffer(a, Md[b]);
|
|
2909
2919
|
}, emscripten_glBindSampler:(a, b) => {
|
|
@@ -2923,11 +2933,11 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2923
2933
|
}, emscripten_glCompressedTexSubImage2D:(a, b, c, d, e, f, g, k, m) => {
|
|
2924
2934
|
2 <= T.version ? R.ea || !k ? R.compressedTexSubImage2D(a, b, c, d, e, f, g, k, m) : R.compressedTexSubImage2D(a, b, c, d, e, f, g, u, m, k) : R.compressedTexSubImage2D(a, b, c, d, e, f, g, m ? u.subarray(m, m + k) : null);
|
|
2925
2935
|
}, emscripten_glCopyTexSubImage2D:(a, b, c, d, e, f, g, k) => R.copyTexSubImage2D(a, b, c, d, e, f, g, k), emscripten_glCreateProgram:() => {
|
|
2926
|
-
var a = la(
|
|
2936
|
+
var a = la(Kd), b = R.createProgram();
|
|
2927
2937
|
b.name = a;
|
|
2928
2938
|
b.xa = b.va = b.wa = 0;
|
|
2929
2939
|
b.Qa = 1;
|
|
2930
|
-
|
|
2940
|
+
Kd[a] = b;
|
|
2931
2941
|
return a;
|
|
2932
2942
|
}, emscripten_glCreateShader:a => {
|
|
2933
2943
|
var b = la(Od);
|
|
@@ -2935,8 +2945,8 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2935
2945
|
return b;
|
|
2936
2946
|
}, emscripten_glCullFace:a => R.cullFace(a), emscripten_glDeleteBuffers:(a, b) => {
|
|
2937
2947
|
for (var c = 0; c < a; c++) {
|
|
2938
|
-
var d = x[b + 4 * c >> 2], e =
|
|
2939
|
-
e && (R.deleteBuffer(e), e.name = 0,
|
|
2948
|
+
var d = x[b + 4 * c >> 2], e = Jd[d];
|
|
2949
|
+
e && (R.deleteBuffer(e), e.name = 0, Jd[d] = null, d == R.Ia && (R.Ia = 0), d == R.ea && (R.ea = 0));
|
|
2940
2950
|
}
|
|
2941
2951
|
}, emscripten_glDeleteFramebuffers:(a, b) => {
|
|
2942
2952
|
for (var c = 0; c < a; ++c) {
|
|
@@ -2945,8 +2955,8 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2945
2955
|
}
|
|
2946
2956
|
}, emscripten_glDeleteProgram:a => {
|
|
2947
2957
|
if (a) {
|
|
2948
|
-
var b =
|
|
2949
|
-
b ? (R.deleteProgram(b), b.name = 0,
|
|
2958
|
+
var b = Kd[a];
|
|
2959
|
+
b ? (R.deleteProgram(b), b.name = 0, Kd[a] = null) : S ||= 1281;
|
|
2950
2960
|
}
|
|
2951
2961
|
}, emscripten_glDeleteRenderbuffers:(a, b) => {
|
|
2952
2962
|
for (var c = 0; c < a; c++) {
|
|
@@ -3003,7 +3013,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3003
3013
|
}, emscripten_glFramebufferTexture2D:(a, b, c, d, e) => {
|
|
3004
3014
|
R.framebufferTexture2D(a, b, c, Nd[d], e);
|
|
3005
3015
|
}, emscripten_glFrontFace:a => R.frontFace(a), emscripten_glGenBuffers:(a, b) => {
|
|
3006
|
-
Wd(a, b, "createBuffer",
|
|
3016
|
+
Wd(a, b, "createBuffer", Jd);
|
|
3007
3017
|
}, emscripten_glGenFramebuffers:(a, b) => {
|
|
3008
3018
|
Wd(a, b, "createFramebuffer", Ld);
|
|
3009
3019
|
}, emscripten_glGenRenderbuffers:(a, b) => {
|
|
@@ -3025,16 +3035,16 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3025
3035
|
}
|
|
3026
3036
|
x[d >> 2] = a;
|
|
3027
3037
|
}, emscripten_glGetIntegerv:de, emscripten_glGetProgramInfoLog:(a, b, c, d) => {
|
|
3028
|
-
a = R.getProgramInfoLog(
|
|
3038
|
+
a = R.getProgramInfoLog(Kd[a]);
|
|
3029
3039
|
null === a && (a = "(unknown error)");
|
|
3030
3040
|
b = 0 < b && d ? kb(a, u, d, b) : 0;
|
|
3031
3041
|
c && (x[c >> 2] = b);
|
|
3032
3042
|
}, emscripten_glGetProgramiv:(a, b, c) => {
|
|
3033
3043
|
if (c) {
|
|
3034
|
-
if (a >=
|
|
3044
|
+
if (a >= Id) {
|
|
3035
3045
|
S ||= 1281;
|
|
3036
3046
|
} else {
|
|
3037
|
-
if (a =
|
|
3047
|
+
if (a = Kd[a], 35716 == b) {
|
|
3038
3048
|
a = R.getProgramInfoLog(a), null === a && (a = "(unknown error)"), x[c >> 2] = a.length + 1;
|
|
3039
3049
|
} else if (35719 == b) {
|
|
3040
3050
|
if (!a.xa) {
|
|
@@ -3125,7 +3135,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3125
3135
|
}
|
|
3126
3136
|
}, emscripten_glGetUniformLocation:(a, b) => {
|
|
3127
3137
|
b = b ? C(u, b) : "";
|
|
3128
|
-
if (a =
|
|
3138
|
+
if (a = Kd[a]) {
|
|
3129
3139
|
var c = a, d = c.la, e = c.sb, f;
|
|
3130
3140
|
if (!d) {
|
|
3131
3141
|
for (c.la = d = {}, c.rb = {}, f = 0; f < R.getProgramParameter(c, 35718); ++f) {
|
|
@@ -3165,7 +3175,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3165
3175
|
}
|
|
3166
3176
|
R.invalidateSubFramebuffer(a, k, d, e, f, g);
|
|
3167
3177
|
}, emscripten_glIsSync:a => R.isSync(Rd[a]), emscripten_glIsTexture:a => (a = Nd[a]) ? R.isTexture(a) : 0, emscripten_glLineWidth:a => R.lineWidth(a), emscripten_glLinkProgram:a => {
|
|
3168
|
-
a =
|
|
3178
|
+
a = Kd[a];
|
|
3169
3179
|
R.linkProgram(a);
|
|
3170
3180
|
a.la = 0;
|
|
3171
3181
|
a.sb = {};
|
|
@@ -3415,7 +3425,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3415
3425
|
R.uniformMatrix4fv(U(a), !!c, e);
|
|
3416
3426
|
}
|
|
3417
3427
|
}, emscripten_glUseProgram:a => {
|
|
3418
|
-
a =
|
|
3428
|
+
a = Kd[a];
|
|
3419
3429
|
R.useProgram(a);
|
|
3420
3430
|
R.Db = a;
|
|
3421
3431
|
}, emscripten_glVertexAttrib1f:(a, b) => R.vertexAttrib1f(a, b), emscripten_glVertexAttrib2fv:(a, b) => {
|
|
@@ -3630,7 +3640,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3630
3640
|
W = c.exports;
|
|
3631
3641
|
ya = W.memory;
|
|
3632
3642
|
Da();
|
|
3633
|
-
|
|
3643
|
+
Xc = W.__indirect_function_table;
|
|
3634
3644
|
Fa.unshift(W.__wasm_call_ctors);
|
|
3635
3645
|
Ia--;
|
|
3636
3646
|
l.monitorRunDependencies?.(Ia);
|
|
@@ -3652,7 +3662,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3652
3662
|
a(c.instance);
|
|
3653
3663
|
}).catch(ba);
|
|
3654
3664
|
return {};
|
|
3655
|
-
}(),
|
|
3665
|
+
}(), rc = a => (rc = W.free)(a), ee = a => (ee = W.malloc)(a), qc = a => (qc = W.__getTypeName)(a), Ua = l._ma_device__on_notification_unlocked = a => (Ua = l._ma_device__on_notification_unlocked = W.ma_device__on_notification_unlocked)(a);
|
|
3656
3666
|
l._ma_malloc_emscripten = (a, b) => (l._ma_malloc_emscripten = W.ma_malloc_emscripten)(a, b);
|
|
3657
3667
|
l._ma_free_emscripten = (a, b) => (l._ma_free_emscripten = W.ma_free_emscripten)(a, b);
|
|
3658
3668
|
var Va = l._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Va = l._ma_device_process_pcm_frames_capture__webaudio = W.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Wa = l._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Wa = l._ma_device_process_pcm_frames_playback__webaudio = W.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), xb = (a, b) => (xb = W.emscripten_builtin_memalign)(a, b), X = (a, b) => (X = W.setThrew)(a, b), Y = a => (Y = W._emscripten_stack_restore)(a),
|
|
@@ -3677,7 +3687,7 @@ l.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, m, p) => (l.dynCall_iiiiiijj = W.d
|
|
|
3677
3687
|
function Ee(a, b, c) {
|
|
3678
3688
|
var d = Z();
|
|
3679
3689
|
try {
|
|
3680
|
-
|
|
3690
|
+
P(a)(b, c);
|
|
3681
3691
|
} catch (e) {
|
|
3682
3692
|
Y(d);
|
|
3683
3693
|
if (e !== e + 0) {
|
|
@@ -3689,7 +3699,7 @@ function Ee(a, b, c) {
|
|
|
3689
3699
|
function ve(a, b) {
|
|
3690
3700
|
var c = Z();
|
|
3691
3701
|
try {
|
|
3692
|
-
return
|
|
3702
|
+
return P(a)(b);
|
|
3693
3703
|
} catch (d) {
|
|
3694
3704
|
Y(c);
|
|
3695
3705
|
if (d !== d + 0) {
|
|
@@ -3701,7 +3711,7 @@ function ve(a, b) {
|
|
|
3701
3711
|
function De(a, b) {
|
|
3702
3712
|
var c = Z();
|
|
3703
3713
|
try {
|
|
3704
|
-
|
|
3714
|
+
P(a)(b);
|
|
3705
3715
|
} catch (d) {
|
|
3706
3716
|
Y(c);
|
|
3707
3717
|
if (d !== d + 0) {
|
|
@@ -3713,7 +3723,7 @@ function De(a, b) {
|
|
|
3713
3723
|
function xe(a, b, c, d) {
|
|
3714
3724
|
var e = Z();
|
|
3715
3725
|
try {
|
|
3716
|
-
return
|
|
3726
|
+
return P(a)(b, c, d);
|
|
3717
3727
|
} catch (f) {
|
|
3718
3728
|
Y(e);
|
|
3719
3729
|
if (f !== f + 0) {
|
|
@@ -3725,7 +3735,7 @@ function xe(a, b, c, d) {
|
|
|
3725
3735
|
function Fe(a, b, c, d) {
|
|
3726
3736
|
var e = Z();
|
|
3727
3737
|
try {
|
|
3728
|
-
|
|
3738
|
+
P(a)(b, c, d);
|
|
3729
3739
|
} catch (f) {
|
|
3730
3740
|
Y(e);
|
|
3731
3741
|
if (f !== f + 0) {
|
|
@@ -3737,7 +3747,7 @@ function Fe(a, b, c, d) {
|
|
|
3737
3747
|
function Ge(a, b, c, d, e) {
|
|
3738
3748
|
var f = Z();
|
|
3739
3749
|
try {
|
|
3740
|
-
|
|
3750
|
+
P(a)(b, c, d, e);
|
|
3741
3751
|
} catch (g) {
|
|
3742
3752
|
Y(f);
|
|
3743
3753
|
if (g !== g + 0) {
|
|
@@ -3749,7 +3759,7 @@ function Ge(a, b, c, d, e) {
|
|
|
3749
3759
|
function Ce(a) {
|
|
3750
3760
|
var b = Z();
|
|
3751
3761
|
try {
|
|
3752
|
-
|
|
3762
|
+
P(a)();
|
|
3753
3763
|
} catch (c) {
|
|
3754
3764
|
Y(b);
|
|
3755
3765
|
if (c !== c + 0) {
|
|
@@ -3761,7 +3771,7 @@ function Ce(a) {
|
|
|
3761
3771
|
function Ae(a, b, c, d, e, f, g) {
|
|
3762
3772
|
var k = Z();
|
|
3763
3773
|
try {
|
|
3764
|
-
return
|
|
3774
|
+
return P(a)(b, c, d, e, f, g);
|
|
3765
3775
|
} catch (m) {
|
|
3766
3776
|
Y(k);
|
|
3767
3777
|
if (m !== m + 0) {
|
|
@@ -3773,7 +3783,7 @@ function Ae(a, b, c, d, e, f, g) {
|
|
|
3773
3783
|
function we(a, b, c) {
|
|
3774
3784
|
var d = Z();
|
|
3775
3785
|
try {
|
|
3776
|
-
return
|
|
3786
|
+
return P(a)(b, c);
|
|
3777
3787
|
} catch (e) {
|
|
3778
3788
|
Y(d);
|
|
3779
3789
|
if (e !== e + 0) {
|
|
@@ -3785,7 +3795,7 @@ function we(a, b, c) {
|
|
|
3785
3795
|
function Ie(a, b, c, d, e, f, g, k) {
|
|
3786
3796
|
var m = Z();
|
|
3787
3797
|
try {
|
|
3788
|
-
|
|
3798
|
+
P(a)(b, c, d, e, f, g, k);
|
|
3789
3799
|
} catch (p) {
|
|
3790
3800
|
Y(m);
|
|
3791
3801
|
if (p !== p + 0) {
|
|
@@ -3797,7 +3807,7 @@ function Ie(a, b, c, d, e, f, g, k) {
|
|
|
3797
3807
|
function Be(a, b, c, d, e, f, g, k, m, p) {
|
|
3798
3808
|
var r = Z();
|
|
3799
3809
|
try {
|
|
3800
|
-
return
|
|
3810
|
+
return P(a)(b, c, d, e, f, g, k, m, p);
|
|
3801
3811
|
} catch (w) {
|
|
3802
3812
|
Y(r);
|
|
3803
3813
|
if (w !== w + 0) {
|
|
@@ -3809,7 +3819,7 @@ function Be(a, b, c, d, e, f, g, k, m, p) {
|
|
|
3809
3819
|
function ye(a, b, c, d, e) {
|
|
3810
3820
|
var f = Z();
|
|
3811
3821
|
try {
|
|
3812
|
-
return
|
|
3822
|
+
return P(a)(b, c, d, e);
|
|
3813
3823
|
} catch (g) {
|
|
3814
3824
|
Y(f);
|
|
3815
3825
|
if (g !== g + 0) {
|
|
@@ -3821,7 +3831,7 @@ function ye(a, b, c, d, e) {
|
|
|
3821
3831
|
function Je(a, b, c, d, e, f, g, k, m) {
|
|
3822
3832
|
var p = Z();
|
|
3823
3833
|
try {
|
|
3824
|
-
|
|
3834
|
+
P(a)(b, c, d, e, f, g, k, m);
|
|
3825
3835
|
} catch (r) {
|
|
3826
3836
|
Y(p);
|
|
3827
3837
|
if (r !== r + 0) {
|
|
@@ -3833,7 +3843,7 @@ function Je(a, b, c, d, e, f, g, k, m) {
|
|
|
3833
3843
|
function ze(a, b, c, d, e, f) {
|
|
3834
3844
|
var g = Z();
|
|
3835
3845
|
try {
|
|
3836
|
-
return
|
|
3846
|
+
return P(a)(b, c, d, e, f);
|
|
3837
3847
|
} catch (k) {
|
|
3838
3848
|
Y(g);
|
|
3839
3849
|
if (k !== k + 0) {
|
|
@@ -3845,7 +3855,7 @@ function ze(a, b, c, d, e, f) {
|
|
|
3845
3855
|
function He(a, b, c, d, e, f, g) {
|
|
3846
3856
|
var k = Z();
|
|
3847
3857
|
try {
|
|
3848
|
-
|
|
3858
|
+
P(a)(b, c, d, e, f, g);
|
|
3849
3859
|
} catch (m) {
|
|
3850
3860
|
Y(k);
|
|
3851
3861
|
if (m !== m + 0) {
|