@rive-app/webgl2-advanced 2.37.1 → 2.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +1 -0
- package/webgl2_advanced.mjs +167 -173
package/package.json
CHANGED
package/rive.wasm
CHANGED
|
Binary file
|
package/rive_advanced.mjs.d.ts
CHANGED
package/webgl2_advanced.mjs
CHANGED
|
@@ -144,18 +144,18 @@ l.onRuntimeInitialized = function() {
|
|
|
144
144
|
this.Ab = r.getContext("2d");
|
|
145
145
|
this.Db = d;
|
|
146
146
|
this.S = [];
|
|
147
|
-
this.
|
|
147
|
+
this.ja = 0;
|
|
148
148
|
this.clear = function() {
|
|
149
|
-
console.assert(0 == this.
|
|
149
|
+
console.assert(0 == this.ja);
|
|
150
150
|
this.S = [];
|
|
151
151
|
e.delete(this);
|
|
152
152
|
};
|
|
153
153
|
this.save = function() {
|
|
154
|
-
++this.
|
|
154
|
+
++this.ja;
|
|
155
155
|
this.S.push(d.save.bind(d));
|
|
156
156
|
};
|
|
157
157
|
this.restore = function() {
|
|
158
|
-
0 < this.
|
|
158
|
+
0 < this.ja && (this.S.push(d.restore.bind(d)), --this.ja);
|
|
159
159
|
};
|
|
160
160
|
this.transform = function(u) {
|
|
161
161
|
this.S.push(d.transform.bind(d, u));
|
|
@@ -164,7 +164,7 @@ l.onRuntimeInitialized = function() {
|
|
|
164
164
|
this.S.push(d.align.bind(d, u, z, A, C, G));
|
|
165
165
|
};
|
|
166
166
|
this.flush = function() {
|
|
167
|
-
console.assert(0 == this.
|
|
167
|
+
console.assert(0 == this.ja);
|
|
168
168
|
e.add(this);
|
|
169
169
|
d.Ya || c();
|
|
170
170
|
};
|
|
@@ -190,8 +190,8 @@ l.onRuntimeInitialized = function() {
|
|
|
190
190
|
C.call(this);
|
|
191
191
|
var G = this.La;
|
|
192
192
|
q === w[G] && (q = null);
|
|
193
|
-
"object" == typeof JSEvents && JSEvents.Kc(w[G].
|
|
194
|
-
w[G] && w[G].
|
|
193
|
+
"object" == typeof JSEvents && JSEvents.Kc(w[G].F.canvas);
|
|
194
|
+
w[G] && w[G].F.canvas && (w[G].F.canvas.zb = void 0);
|
|
195
195
|
this.La = this.G = this.Ma = this.T = w[G] = null;
|
|
196
196
|
};
|
|
197
197
|
return A;
|
|
@@ -200,7 +200,7 @@ l.onRuntimeInitialized = function() {
|
|
|
200
200
|
if (d) {
|
|
201
201
|
var r = d.Cb, u = 0, z = 0, A = 0, C = Array(e.size), G = 0;
|
|
202
202
|
for (var J of e) {
|
|
203
|
-
J.
|
|
203
|
+
J.ea = Math.min(J.G.width, r), J.da = Math.min(J.G.height, r), J.Ja = J.da * J.ea, u = Math.max(u, J.ea), z = Math.max(z, J.da), A += J.Ja, C[G++] = J;
|
|
204
204
|
}
|
|
205
205
|
e.clear();
|
|
206
206
|
if (!(0 >= A)) {
|
|
@@ -215,13 +215,13 @@ l.onRuntimeInitialized = function() {
|
|
|
215
215
|
for (J = 0; J < C.length;) {
|
|
216
216
|
A.reset(u, z);
|
|
217
217
|
for (G = J; G < C.length; ++G) {
|
|
218
|
-
var K = C[G], I = A.addRect(K.
|
|
218
|
+
var K = C[G], I = A.addRect(K.ea, K.da);
|
|
219
219
|
if (0 > I) {
|
|
220
220
|
console.assert(G > J);
|
|
221
221
|
break;
|
|
222
222
|
}
|
|
223
|
-
K.
|
|
224
|
-
K.
|
|
223
|
+
K.pa = I & 65535;
|
|
224
|
+
K.qa = I >> 16;
|
|
225
225
|
}
|
|
226
226
|
K = p.push(A.drawWidth());
|
|
227
227
|
I = m.push(A.drawHeight());
|
|
@@ -234,13 +234,13 @@ l.onRuntimeInitialized = function() {
|
|
|
234
234
|
d.clear();
|
|
235
235
|
for (K = J; K < G; ++K) {
|
|
236
236
|
I = C[K];
|
|
237
|
-
d.saveClipRect(I.
|
|
237
|
+
d.saveClipRect(I.pa, I.qa, I.pa + I.ea, I.qa + I.da);
|
|
238
238
|
let Z = new l.Mat2D();
|
|
239
|
-
Z.xx = I.
|
|
240
|
-
Z.yy = I.
|
|
239
|
+
Z.xx = I.ea / I.G.width;
|
|
240
|
+
Z.yy = I.da / I.G.height;
|
|
241
241
|
Z.xy = Z.yx = 0;
|
|
242
|
-
Z.tx = I.
|
|
243
|
-
Z.ty = I.
|
|
242
|
+
Z.tx = I.pa;
|
|
243
|
+
Z.ty = I.qa;
|
|
244
244
|
d.transform(Z);
|
|
245
245
|
for (const ob of I.S) {
|
|
246
246
|
ob();
|
|
@@ -249,7 +249,7 @@ l.onRuntimeInitialized = function() {
|
|
|
249
249
|
I.S = [];
|
|
250
250
|
}
|
|
251
251
|
for (d.flush(); J < G; ++J) {
|
|
252
|
-
K = C[J], I = K.Ab, I.globalCompositeOperation = "copy", I.drawImage(d.G, K.
|
|
252
|
+
K = C[J], I = K.Ab, I.globalCompositeOperation = "copy", I.drawImage(d.G, K.pa, K.qa, K.ea, K.da, 0, 0, K.G.width, K.G.height);
|
|
253
253
|
}
|
|
254
254
|
J = G;
|
|
255
255
|
}
|
|
@@ -412,54 +412,54 @@ function Na(a, b) {
|
|
|
412
412
|
return Ma(c, a, b);
|
|
413
413
|
}));
|
|
414
414
|
}
|
|
415
|
-
var Oa, Pa, Ta = {
|
|
415
|
+
var Oa, Pa, Ta = {564429:(a, b, c, d, e) => {
|
|
416
416
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
417
417
|
return 0;
|
|
418
418
|
}
|
|
419
419
|
if ("undefined" === typeof window.h) {
|
|
420
420
|
window.h = {Ea:0};
|
|
421
421
|
window.h.I = {};
|
|
422
|
-
window.h.I.
|
|
422
|
+
window.h.I.Ba = a;
|
|
423
423
|
window.h.I.capture = b;
|
|
424
424
|
window.h.I.Pa = c;
|
|
425
|
-
window.h.
|
|
426
|
-
window.h.
|
|
427
|
-
window.h.
|
|
425
|
+
window.h.ha = {};
|
|
426
|
+
window.h.ha.stopped = d;
|
|
427
|
+
window.h.ha.ub = e;
|
|
428
428
|
let f = window.h;
|
|
429
|
-
f.
|
|
429
|
+
f.C = [];
|
|
430
430
|
f.lc = function(g) {
|
|
431
|
-
for (var k = 0; k < f.
|
|
432
|
-
if (null == f.
|
|
433
|
-
return f.
|
|
431
|
+
for (var k = 0; k < f.C.length; ++k) {
|
|
432
|
+
if (null == f.C[k]) {
|
|
433
|
+
return f.C[k] = g, k;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
f.
|
|
437
|
-
return f.
|
|
436
|
+
f.C.push(g);
|
|
437
|
+
return f.C.length - 1;
|
|
438
438
|
};
|
|
439
439
|
f.yb = function(g) {
|
|
440
|
-
for (f.
|
|
441
|
-
if (null == f.
|
|
442
|
-
f.
|
|
440
|
+
for (f.C[g] = null; 0 < f.C.length;) {
|
|
441
|
+
if (null == f.C[f.C.length - 1]) {
|
|
442
|
+
f.C.pop();
|
|
443
443
|
} else {
|
|
444
444
|
break;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
};
|
|
448
448
|
f.Mc = function(g) {
|
|
449
|
-
for (var k = 0; k < f.
|
|
450
|
-
if (f.
|
|
449
|
+
for (var k = 0; k < f.C.length; ++k) {
|
|
450
|
+
if (f.C[k] == g) {
|
|
451
451
|
return f.yb(k);
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
454
|
};
|
|
455
|
-
f.
|
|
456
|
-
return f.
|
|
455
|
+
f.sa = function(g) {
|
|
456
|
+
return f.C[g];
|
|
457
457
|
};
|
|
458
458
|
f.Xa = ["touchend", "click"];
|
|
459
459
|
f.unlock = function() {
|
|
460
|
-
for (var g = 0; g < f.
|
|
461
|
-
var k = f.
|
|
462
|
-
null != k && null != k.K && k.state === f.
|
|
460
|
+
for (var g = 0; g < f.C.length; ++g) {
|
|
461
|
+
var k = f.C[g];
|
|
462
|
+
null != k && null != k.K && k.state === f.ha.ub && k.K.resume().then(() => {
|
|
463
463
|
Qa(k.nb);
|
|
464
464
|
}, p => {
|
|
465
465
|
console.error("Failed to resume audiocontext", p);
|
|
@@ -475,11 +475,11 @@ var Oa, Pa, Ta = {564097:(a, b, c, d, e) => {
|
|
|
475
475
|
}
|
|
476
476
|
window.h.Ea += 1;
|
|
477
477
|
return 1;
|
|
478
|
-
},
|
|
478
|
+
}, 566607:() => {
|
|
479
479
|
"undefined" !== typeof window.h && (window.h.Xa.map(function(a) {
|
|
480
480
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
481
481
|
}), --window.h.Ea, 0 === window.h.Ea && delete window.h);
|
|
482
|
-
},
|
|
482
|
+
}, 566911:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 567015:() => {
|
|
483
483
|
try {
|
|
484
484
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
485
485
|
a.close();
|
|
@@ -487,33 +487,33 @@ var Oa, Pa, Ta = {564097:(a, b, c, d, e) => {
|
|
|
487
487
|
} catch (c) {
|
|
488
488
|
return 0;
|
|
489
489
|
}
|
|
490
|
-
},
|
|
490
|
+
}, 567186:(a, b, c, d, e, f) => {
|
|
491
491
|
if ("undefined" === typeof window.h) {
|
|
492
492
|
return -1;
|
|
493
493
|
}
|
|
494
494
|
var g = {}, k = {};
|
|
495
|
-
a == window.h.I.
|
|
495
|
+
a == window.h.I.Ba && 0 != c && (k.sampleRate = c);
|
|
496
496
|
g.K = new (window.AudioContext || window.webkitAudioContext)(k);
|
|
497
497
|
g.K.suspend();
|
|
498
|
-
g.state = window.h.
|
|
498
|
+
g.state = window.h.ha.stopped;
|
|
499
499
|
c = 0;
|
|
500
|
-
a != window.h.I.
|
|
500
|
+
a != window.h.I.Ba && (c = b);
|
|
501
501
|
g.Y = g.K.createScriptProcessor(d, c, b);
|
|
502
502
|
g.Y.onaudioprocess = function(p) {
|
|
503
|
-
if (null == g.
|
|
504
|
-
g.
|
|
503
|
+
if (null == g.ta || 0 == g.ta.length) {
|
|
504
|
+
g.ta = new Float32Array(xa.buffer, e, d * b);
|
|
505
505
|
}
|
|
506
506
|
if (a == window.h.I.capture || a == window.h.I.Pa) {
|
|
507
507
|
for (var m = 0; m < b; m += 1) {
|
|
508
|
-
for (var t = p.inputBuffer.getChannelData(m), v = g.
|
|
508
|
+
for (var t = p.inputBuffer.getChannelData(m), v = g.ta, x = 0; x < d; x += 1) {
|
|
509
509
|
v[x * b + m] = t[x];
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
Ra(f, d, e);
|
|
513
513
|
}
|
|
514
|
-
if (a == window.h.I.
|
|
514
|
+
if (a == window.h.I.Ba || a == window.h.I.Pa) {
|
|
515
515
|
for (Sa(f, d, e), m = 0; m < p.outputBuffer.numberOfChannels; ++m) {
|
|
516
|
-
for (t = p.outputBuffer.getChannelData(m), v = g.
|
|
516
|
+
for (t = p.outputBuffer.getChannelData(m), v = g.ta, x = 0; x < d; x += 1) {
|
|
517
517
|
t[x] = v[x * b + m];
|
|
518
518
|
}
|
|
519
519
|
}
|
|
@@ -530,27 +530,27 @@ var Oa, Pa, Ta = {564097:(a, b, c, d, e) => {
|
|
|
530
530
|
}).catch(function(p) {
|
|
531
531
|
console.log("Failed to get user media: " + p);
|
|
532
532
|
});
|
|
533
|
-
a == window.h.I.
|
|
533
|
+
a == window.h.I.Ba && g.Y.connect(g.K.destination);
|
|
534
534
|
g.nb = f;
|
|
535
535
|
return window.h.lc(g);
|
|
536
|
-
},
|
|
537
|
-
a = window.h.
|
|
536
|
+
}, 570063:a => window.h.sa(a).K.sampleRate, 570136:a => {
|
|
537
|
+
a = window.h.sa(a);
|
|
538
538
|
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
539
539
|
}, a.Y.disconnect(), a.Y = void 0);
|
|
540
540
|
void 0 !== a.Fa && (a.Fa.disconnect(), a.Fa = void 0);
|
|
541
541
|
a.K.close();
|
|
542
542
|
a.K = void 0;
|
|
543
543
|
a.nb = void 0;
|
|
544
|
-
},
|
|
544
|
+
}, 570536:a => {
|
|
545
545
|
window.h.yb(a);
|
|
546
|
-
},
|
|
547
|
-
a = window.h.
|
|
546
|
+
}, 570586:a => {
|
|
547
|
+
a = window.h.sa(a);
|
|
548
548
|
a.K.resume();
|
|
549
|
-
a.state = window.h.
|
|
550
|
-
},
|
|
551
|
-
a = window.h.
|
|
549
|
+
a.state = window.h.ha.ub;
|
|
550
|
+
}, 570725:a => {
|
|
551
|
+
a = window.h.sa(a);
|
|
552
552
|
a.K.suspend();
|
|
553
|
-
a.state = window.h.
|
|
553
|
+
a.state = window.h.ha.stopped;
|
|
554
554
|
}}, Ua = a => {
|
|
555
555
|
for (; 0 < a.length;) {
|
|
556
556
|
a.shift()(l);
|
|
@@ -706,9 +706,9 @@ var lb = {open(a) {
|
|
|
706
706
|
a.s = b;
|
|
707
707
|
a.seekable = !1;
|
|
708
708
|
}, close(a) {
|
|
709
|
-
a.s.V.
|
|
710
|
-
},
|
|
711
|
-
a.s.V.
|
|
709
|
+
a.s.V.ra(a.s);
|
|
710
|
+
}, ra(a) {
|
|
711
|
+
a.s.V.ra(a.s);
|
|
712
712
|
}, read(a, b, c, d) {
|
|
713
713
|
if (!a.s || !a.s.V.hb) {
|
|
714
714
|
throw new M(60);
|
|
@@ -759,7 +759,7 @@ var lb = {open(a) {
|
|
|
759
759
|
return a;
|
|
760
760
|
}, Sa(a, b) {
|
|
761
761
|
null === b || 10 === b ? (ra(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
762
|
-
},
|
|
762
|
+
}, ra(a) {
|
|
763
763
|
a.H && 0 < a.H.length && (ra(L(a.H, 0)), a.H = []);
|
|
764
764
|
}, Vb() {
|
|
765
765
|
return {sc:25856, uc:5, rc:191, tc:35387, qc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
|
|
@@ -769,7 +769,7 @@ var lb = {open(a) {
|
|
|
769
769
|
return [24, 80];
|
|
770
770
|
},}, nb = {Sa(a, b) {
|
|
771
771
|
null === b || 10 === b ? (sa(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
772
|
-
},
|
|
772
|
+
}, ra(a) {
|
|
773
773
|
a.H && 0 < a.H.length && (sa(L(a.H, 0)), a.H = []);
|
|
774
774
|
},};
|
|
775
775
|
function pb(a, b) {
|
|
@@ -782,7 +782,7 @@ var N = {N:null, U() {
|
|
|
782
782
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
783
783
|
throw new M(63);
|
|
784
784
|
}
|
|
785
|
-
N.N || (N.N = {dir:{node:{X:N.j.X, P:N.j.P,
|
|
785
|
+
N.N || (N.N = {dir:{node:{X:N.j.X, P:N.j.P, ka:N.j.ka, za:N.j.za, sb:N.j.sb, xb:N.j.xb, tb:N.j.tb, rb:N.j.rb, Ga:N.j.Ga}, stream:{aa:N.m.aa}}, file:{node:{X:N.j.X, P:N.j.P}, stream:{aa:N.m.aa, read:N.m.read, write:N.m.write, $a:N.m.$a, jb:N.m.jb, lb:N.m.lb}}, link:{node:{X:N.j.X, P:N.j.P, la:N.j.la}, stream:{}}, ab:{node:{X:N.j.X, P:N.j.P}, stream:qb}});
|
|
786
786
|
c = rb(a, b, c, d);
|
|
787
787
|
16384 === (c.mode & 61440) ? (c.j = N.N.dir.node, c.m = N.N.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = N.N.file.node, c.m = N.N.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = N.N.link.node, c.m = N.N.link.stream) : 8192 === (c.mode & 61440) && (c.j = N.N.ab.node, c.m = N.N.ab.stream);
|
|
788
788
|
c.timestamp = Date.now();
|
|
@@ -819,9 +819,9 @@ var N = {N:null, U() {
|
|
|
819
819
|
a.v = b;
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
|
-
},
|
|
822
|
+
}, ka() {
|
|
823
823
|
throw sb[44];
|
|
824
|
-
},
|
|
824
|
+
}, za(a, b, c, d) {
|
|
825
825
|
return N.createNode(a, b, c, d);
|
|
826
826
|
}, sb(a, b, c) {
|
|
827
827
|
if (16384 === (a.mode & 61440)) {
|
|
@@ -860,7 +860,7 @@ var N = {N:null, U() {
|
|
|
860
860
|
a = N.createNode(a, b, 41471, 0);
|
|
861
861
|
a.link = c;
|
|
862
862
|
return a;
|
|
863
|
-
},
|
|
863
|
+
}, la(a) {
|
|
864
864
|
if (40960 !== (a.mode & 61440)) {
|
|
865
865
|
throw new M(28);
|
|
866
866
|
}
|
|
@@ -971,7 +971,7 @@ var N = {N:null, U() {
|
|
|
971
971
|
a ||= this;
|
|
972
972
|
this.parent = a;
|
|
973
973
|
this.U = a.U;
|
|
974
|
-
this.
|
|
974
|
+
this.Aa = null;
|
|
975
975
|
this.id = yb++;
|
|
976
976
|
this.name = b;
|
|
977
977
|
this.mode = c;
|
|
@@ -1009,7 +1009,7 @@ function Db(a, b = {}) {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
c = tb(c, a[e]);
|
|
1011
1011
|
d = Ya(d + "/" + a[e]);
|
|
1012
|
-
c.
|
|
1012
|
+
c.Aa && (!f || f && b.gb) && (c = c.Aa.root);
|
|
1013
1013
|
if (!f || b.fb) {
|
|
1014
1014
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
1015
1015
|
if (c = Eb(d), d = cb(Za(d), c), c = Db(d, {Ua:b.Ua + 1}).node, 40 < f++) {
|
|
@@ -1036,7 +1036,7 @@ function Gb(a, b) {
|
|
|
1036
1036
|
return (a + c >>> 0) % zb.length;
|
|
1037
1037
|
}
|
|
1038
1038
|
function tb(a, b) {
|
|
1039
|
-
var c = 16384 === (a.mode & 61440) ? (c = Hb(a, "x")) ? c : a.j.
|
|
1039
|
+
var c = 16384 === (a.mode & 61440) ? (c = Hb(a, "x")) ? c : a.j.ka ? 0 : 2 : 54;
|
|
1040
1040
|
if (c) {
|
|
1041
1041
|
throw new M(c);
|
|
1042
1042
|
}
|
|
@@ -1046,7 +1046,7 @@ function tb(a, b) {
|
|
|
1046
1046
|
return c;
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
|
-
return a.j.
|
|
1049
|
+
return a.j.ka(a, b);
|
|
1050
1050
|
}
|
|
1051
1051
|
function rb(a, b, c, d) {
|
|
1052
1052
|
a = new Cb(a, b, c, d);
|
|
@@ -1124,7 +1124,7 @@ function Nb(a, b) {
|
|
|
1124
1124
|
var d = Db(b, {gb:!1});
|
|
1125
1125
|
b = d.path;
|
|
1126
1126
|
d = d.node;
|
|
1127
|
-
if (d.
|
|
1127
|
+
if (d.Aa) {
|
|
1128
1128
|
throw new M(10);
|
|
1129
1129
|
}
|
|
1130
1130
|
if (16384 !== (d.mode & 61440)) {
|
|
@@ -1135,7 +1135,7 @@ function Nb(a, b) {
|
|
|
1135
1135
|
a = a.U(b);
|
|
1136
1136
|
a.U = b;
|
|
1137
1137
|
b.root = a;
|
|
1138
|
-
c ? vb = a : d && (d.
|
|
1138
|
+
c ? vb = a : d && (d.Aa = b, d.U && d.U.Yb.push(b));
|
|
1139
1139
|
}
|
|
1140
1140
|
function Ob(a, b, c) {
|
|
1141
1141
|
var d = Db(a, {parent:!0}).node;
|
|
@@ -1147,10 +1147,10 @@ function Ob(a, b, c) {
|
|
|
1147
1147
|
if (e) {
|
|
1148
1148
|
throw new M(e);
|
|
1149
1149
|
}
|
|
1150
|
-
if (!d.j.
|
|
1150
|
+
if (!d.j.za) {
|
|
1151
1151
|
throw new M(63);
|
|
1152
1152
|
}
|
|
1153
|
-
return d.j.
|
|
1153
|
+
return d.j.za(d, a, b, c);
|
|
1154
1154
|
}
|
|
1155
1155
|
function Pb(a) {
|
|
1156
1156
|
return Ob(a, 16895, 0);
|
|
@@ -1182,10 +1182,10 @@ function Eb(a) {
|
|
|
1182
1182
|
if (!a) {
|
|
1183
1183
|
throw new M(44);
|
|
1184
1184
|
}
|
|
1185
|
-
if (!a.j.
|
|
1185
|
+
if (!a.j.la) {
|
|
1186
1186
|
throw new M(28);
|
|
1187
1187
|
}
|
|
1188
|
-
return cb(Fb(a.parent), a.j.
|
|
1188
|
+
return cb(Fb(a.parent), a.j.la(a));
|
|
1189
1189
|
}
|
|
1190
1190
|
function Sb(a, b, c) {
|
|
1191
1191
|
if ("" === a) {
|
|
@@ -1347,7 +1347,7 @@ var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name"
|
|
|
1347
1347
|
}, ec = [], fc = () => {
|
|
1348
1348
|
for (; ec.length;) {
|
|
1349
1349
|
var a = ec.pop();
|
|
1350
|
-
a.g.
|
|
1350
|
+
a.g.ga = !1;
|
|
1351
1351
|
a["delete"]();
|
|
1352
1352
|
}
|
|
1353
1353
|
}, gc, hc = {}, ic = (a, b) => {
|
|
@@ -1355,7 +1355,7 @@ var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name"
|
|
|
1355
1355
|
throw new P("ptr should not be undefined");
|
|
1356
1356
|
}
|
|
1357
1357
|
for (; a.B;) {
|
|
1358
|
-
b = a.
|
|
1358
|
+
b = a.na(b), a = a.B;
|
|
1359
1359
|
}
|
|
1360
1360
|
return b;
|
|
1361
1361
|
}, jc = {}, mc = a => {
|
|
@@ -1386,7 +1386,7 @@ var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name"
|
|
|
1386
1386
|
if (!b.u || !b.o) {
|
|
1387
1387
|
throw new tc("makeClassHandle requires ptr and ptrType");
|
|
1388
1388
|
}
|
|
1389
|
-
if (!!b.J !== !!b.
|
|
1389
|
+
if (!!b.J !== !!b.D) {
|
|
1390
1390
|
throw new tc("Both smartPtrType and smartPtr must be specified");
|
|
1391
1391
|
}
|
|
1392
1392
|
b.count = {value:1};
|
|
@@ -1398,11 +1398,11 @@ var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name"
|
|
|
1398
1398
|
pc = new FinalizationRegistry(b => {
|
|
1399
1399
|
b = b.g;
|
|
1400
1400
|
--b.count.value;
|
|
1401
|
-
0 === b.count.value && (b.
|
|
1401
|
+
0 === b.count.value && (b.D ? b.J.O(b.D) : b.u.i.O(b.o));
|
|
1402
1402
|
});
|
|
1403
1403
|
uc = b => {
|
|
1404
1404
|
var c = b.g;
|
|
1405
|
-
c.
|
|
1405
|
+
c.D && pc.register(b, {g:c}, b);
|
|
1406
1406
|
return b;
|
|
1407
1407
|
};
|
|
1408
1408
|
oc = b => {
|
|
@@ -1477,7 +1477,7 @@ var Ec = (a, b, c) => {
|
|
|
1477
1477
|
return a[b].A[e.length].apply(this, e);
|
|
1478
1478
|
};
|
|
1479
1479
|
a[b].A = [];
|
|
1480
|
-
a[b].A[d.
|
|
1480
|
+
a[b].A[d.fa] = d;
|
|
1481
1481
|
}
|
|
1482
1482
|
}, Fc = (a, b, c) => {
|
|
1483
1483
|
if (l.hasOwnProperty(a)) {
|
|
@@ -1507,16 +1507,16 @@ function Hc(a, b, c, d, e, f, g, k) {
|
|
|
1507
1507
|
this.O = d;
|
|
1508
1508
|
this.B = e;
|
|
1509
1509
|
this.Nb = f;
|
|
1510
|
-
this.
|
|
1510
|
+
this.na = g;
|
|
1511
1511
|
this.Ib = k;
|
|
1512
1512
|
this.ob = [];
|
|
1513
1513
|
}
|
|
1514
1514
|
var Ic = (a, b, c) => {
|
|
1515
1515
|
for (; b !== c;) {
|
|
1516
|
-
if (!b.
|
|
1516
|
+
if (!b.na) {
|
|
1517
1517
|
throw new P(`Expected null or instance of ${c.name}, got an instance of ${b.name}`);
|
|
1518
1518
|
}
|
|
1519
|
-
a = b.
|
|
1519
|
+
a = b.na(a);
|
|
1520
1520
|
b = b.B;
|
|
1521
1521
|
}
|
|
1522
1522
|
return a;
|
|
@@ -1541,7 +1541,7 @@ function Lc(a, b) {
|
|
|
1541
1541
|
if (this.Ra) {
|
|
1542
1542
|
throw new P(`null is not a valid ${this.name}`);
|
|
1543
1543
|
}
|
|
1544
|
-
if (this.
|
|
1544
|
+
if (this.va) {
|
|
1545
1545
|
var c = this.Ta();
|
|
1546
1546
|
null !== a && a.push(this.O, c);
|
|
1547
1547
|
return c;
|
|
@@ -1554,28 +1554,28 @@ function Lc(a, b) {
|
|
|
1554
1554
|
if (!b.g.o) {
|
|
1555
1555
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1556
1556
|
}
|
|
1557
|
-
if (!this.
|
|
1557
|
+
if (!this.ua && b.g.u.ua) {
|
|
1558
1558
|
throw new P(`Cannot convert argument of type ${b.g.J ? b.g.J.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1559
1559
|
}
|
|
1560
1560
|
c = Ic(b.g.o, b.g.u.i, this.i);
|
|
1561
|
-
if (this.
|
|
1562
|
-
if (void 0 === b.g.
|
|
1561
|
+
if (this.va) {
|
|
1562
|
+
if (void 0 === b.g.D) {
|
|
1563
1563
|
throw new P("Passing raw pointer to smart pointer is illegal");
|
|
1564
1564
|
}
|
|
1565
1565
|
switch(this.fc) {
|
|
1566
1566
|
case 0:
|
|
1567
1567
|
if (b.g.J === this) {
|
|
1568
|
-
c = b.g.
|
|
1568
|
+
c = b.g.D;
|
|
1569
1569
|
} else {
|
|
1570
1570
|
throw new P(`Cannot convert argument of type ${b.g.J ? b.g.J.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1571
1571
|
}
|
|
1572
1572
|
break;
|
|
1573
1573
|
case 1:
|
|
1574
|
-
c = b.g.
|
|
1574
|
+
c = b.g.D;
|
|
1575
1575
|
break;
|
|
1576
1576
|
case 2:
|
|
1577
1577
|
if (b.g.J === this) {
|
|
1578
|
-
c = b.g.
|
|
1578
|
+
c = b.g.D;
|
|
1579
1579
|
} else {
|
|
1580
1580
|
var d = b.clone();
|
|
1581
1581
|
c = this.bc(c, ac(() => d["delete"]()));
|
|
@@ -1601,7 +1601,7 @@ function Mc(a, b) {
|
|
|
1601
1601
|
if (!b.g.o) {
|
|
1602
1602
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1603
1603
|
}
|
|
1604
|
-
if (b.g.u.
|
|
1604
|
+
if (b.g.u.ua) {
|
|
1605
1605
|
throw new P(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1606
1606
|
}
|
|
1607
1607
|
return Ic(b.g.o, b.g.u.i, this.i);
|
|
@@ -1610,8 +1610,8 @@ function Nc(a, b, c, d, e, f, g, k, p, m, t) {
|
|
|
1610
1610
|
this.name = a;
|
|
1611
1611
|
this.i = b;
|
|
1612
1612
|
this.Ra = c;
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1613
|
+
this.ua = d;
|
|
1614
|
+
this.va = e;
|
|
1615
1615
|
this.ac = f;
|
|
1616
1616
|
this.fc = g;
|
|
1617
1617
|
this.qb = k;
|
|
@@ -1624,7 +1624,7 @@ var Oc = (a, b, c) => {
|
|
|
1624
1624
|
if (!l.hasOwnProperty(a)) {
|
|
1625
1625
|
throw new tc("Replacing nonexistent public symbol");
|
|
1626
1626
|
}
|
|
1627
|
-
void 0 !== l[a].A && void 0 !== c ? l[a].A[c] = b : (l[a] = b, l[a].
|
|
1627
|
+
void 0 !== l[a].A && void 0 !== c ? l[a].A[c] = b : (l[a] = b, l[a].fa = c);
|
|
1628
1628
|
}, Pc = [], Qc, Rc = a => {
|
|
1629
1629
|
var b = Pc[a];
|
|
1630
1630
|
b || (a >= Pc.length && (Pc.length = a + 1), Pc[a] = b = Qc.get(a));
|
|
@@ -1872,20 +1872,20 @@ var Yc = (a, b) => {
|
|
|
1872
1872
|
F[b + 4 * e >> 2] = g;
|
|
1873
1873
|
}
|
|
1874
1874
|
}, ka = (a, b) => {
|
|
1875
|
-
var c = Ld(w), d = {handle:c, attributes:b, version:b.Ec,
|
|
1875
|
+
var c = Ld(w), d = {handle:c, attributes:b, version:b.Ec, F:a};
|
|
1876
1876
|
a.canvas && (a.canvas.zb = d);
|
|
1877
1877
|
w[c] = d;
|
|
1878
1878
|
("undefined" == typeof b.Jb || b.Jb) && Nd(d);
|
|
1879
1879
|
return c;
|
|
1880
1880
|
}, la = a => {
|
|
1881
1881
|
q = w[a];
|
|
1882
|
-
l.wc = W = q?.
|
|
1882
|
+
l.wc = W = q?.F;
|
|
1883
1883
|
return !(a && !W);
|
|
1884
1884
|
}, Nd = a => {
|
|
1885
1885
|
a ||= q;
|
|
1886
1886
|
if (!a.Tb) {
|
|
1887
1887
|
a.Tb = !0;
|
|
1888
|
-
var b = a.
|
|
1888
|
+
var b = a.F;
|
|
1889
1889
|
yd(b);
|
|
1890
1890
|
zd(b);
|
|
1891
1891
|
2 <= a.version && (b.cb = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
@@ -2056,8 +2056,8 @@ var Td = (a, b) => {
|
|
|
2056
2056
|
}
|
|
2057
2057
|
}
|
|
2058
2058
|
function p(n) {
|
|
2059
|
-
var r = n.
|
|
2060
|
-
for (n = new Date((new Date(n.
|
|
2059
|
+
var r = n.ba;
|
|
2060
|
+
for (n = new Date((new Date(n.ca + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
2061
2061
|
var u = n.getMonth(), z = (ud(n.getFullYear()) ? Yd : Zd)[u];
|
|
2062
2062
|
if (r > z - n.getDate()) {
|
|
2063
2063
|
r -= z - n.getDate() + 1, n.setDate(1), 11 > u ? n.setMonth(u + 1) : (n.setMonth(0), n.setFullYear(n.getFullYear() + 1));
|
|
@@ -2072,33 +2072,33 @@ var Td = (a, b) => {
|
|
|
2072
2072
|
return 0 >= g(r, n) ? 0 >= g(u, n) ? n.getFullYear() + 1 : n.getFullYear() : n.getFullYear() - 1;
|
|
2073
2073
|
}
|
|
2074
2074
|
var m = H[d + 40 >> 2];
|
|
2075
|
-
d = {jc:F[d >> 2], ic:F[d + 4 >> 2], Ha:F[d + 8 >> 2], Va:F[d + 12 >> 2], Ia:F[d + 16 >> 2],
|
|
2075
|
+
d = {jc:F[d >> 2], ic:F[d + 4 >> 2], Ha:F[d + 8 >> 2], Va:F[d + 12 >> 2], Ia:F[d + 16 >> 2], ca:F[d + 20 >> 2], R:F[d + 24 >> 2], ba:F[d + 28 >> 2], Lc:F[d + 32 >> 2], hc:F[d + 36 >> 2], kc:m ? m ? L(D, m) : "" : ""};
|
|
2076
2076
|
c = c ? L(D, c) : "";
|
|
2077
2077
|
m = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
2078
2078
|
for (var t in m) {
|
|
2079
2079
|
c = c.replace(new RegExp(t, "g"), m[t]);
|
|
2080
2080
|
}
|
|
2081
2081
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
|
|
2082
|
-
m = {"%a":n => v[n.R].substring(0, 3), "%A":n => v[n.R], "%b":n => x[n.Ia].substring(0, 3), "%B":n => x[n.Ia], "%C":n => f((n.
|
|
2082
|
+
m = {"%a":n => v[n.R].substring(0, 3), "%A":n => v[n.R], "%b":n => x[n.Ia].substring(0, 3), "%B":n => x[n.Ia], "%C":n => f((n.ca + 1900) / 100 | 0, 2), "%d":n => f(n.Va, 2), "%e":n => e(n.Va, 2, " "), "%g":n => p(n).toString().substring(2), "%G":p, "%H":n => f(n.Ha, 2), "%I":n => {
|
|
2083
2083
|
n = n.Ha;
|
|
2084
2084
|
0 == n ? n = 12 : 12 < n && (n -= 12);
|
|
2085
2085
|
return f(n, 2);
|
|
2086
2086
|
}, "%j":n => {
|
|
2087
|
-
for (var r = 0, u = 0; u <= n.Ia - 1; r += (ud(n.
|
|
2087
|
+
for (var r = 0, u = 0; u <= n.Ia - 1; r += (ud(n.ca + 1900) ? Yd : Zd)[u++]) {
|
|
2088
2088
|
}
|
|
2089
2089
|
return f(n.Va + r, 3);
|
|
2090
|
-
}, "%m":n => f(n.Ia + 1, 2), "%M":n => f(n.ic, 2), "%n":() => "\n", "%p":n => 0 <= n.Ha && 12 > n.Ha ? "AM" : "PM", "%S":n => f(n.jc, 2), "%t":() => "\t", "%u":n => n.R || 7, "%U":n => f(Math.floor((n.
|
|
2091
|
-
var r = Math.floor((n.
|
|
2092
|
-
2 >= (n.R + 371 - n.
|
|
2090
|
+
}, "%m":n => f(n.Ia + 1, 2), "%M":n => f(n.ic, 2), "%n":() => "\n", "%p":n => 0 <= n.Ha && 12 > n.Ha ? "AM" : "PM", "%S":n => f(n.jc, 2), "%t":() => "\t", "%u":n => n.R || 7, "%U":n => f(Math.floor((n.ba + 7 - n.R) / 7), 2), "%V":n => {
|
|
2091
|
+
var r = Math.floor((n.ba + 7 - (n.R + 6) % 7) / 7);
|
|
2092
|
+
2 >= (n.R + 371 - n.ba - 2) % 7 && r++;
|
|
2093
2093
|
if (r) {
|
|
2094
|
-
53 == r && (u = (n.R + 371 - n.
|
|
2094
|
+
53 == r && (u = (n.R + 371 - n.ba) % 7, 4 == u || 3 == u && ud(n.ca) || (r = 1));
|
|
2095
2095
|
} else {
|
|
2096
2096
|
r = 52;
|
|
2097
|
-
var u = (n.R + 7 - n.
|
|
2098
|
-
(4 == u || 5 == u && ud(n.
|
|
2097
|
+
var u = (n.R + 7 - n.ba - 1) % 7;
|
|
2098
|
+
(4 == u || 5 == u && ud(n.ca % 400 - 1)) && r++;
|
|
2099
2099
|
}
|
|
2100
2100
|
return f(r, 2);
|
|
2101
|
-
}, "%w":n => n.R, "%W":n => f(Math.floor((n.
|
|
2101
|
+
}, "%w":n => n.R, "%W":n => f(Math.floor((n.ba + 7 - (n.R + 6) % 7) / 7), 2), "%y":n => (n.ca + 1900).toString().substring(2), "%Y":n => n.ca + 1900, "%z":n => {
|
|
2102
2102
|
n = n.hc;
|
|
2103
2103
|
var r = 0 <= n;
|
|
2104
2104
|
n = Math.abs(n) / 60;
|
|
@@ -2148,9 +2148,9 @@ Pb("/home/web_user");
|
|
|
2148
2148
|
Pb("/proc/self/fd");
|
|
2149
2149
|
Nb({U() {
|
|
2150
2150
|
var b = rb(a, "fd", 16895, 73);
|
|
2151
|
-
b.j = {
|
|
2151
|
+
b.j = {ka(c, d) {
|
|
2152
2152
|
var e = Kb(+d);
|
|
2153
|
-
c = {parent:null, U:{kb:"fake"}, j:{
|
|
2153
|
+
c = {parent:null, U:{kb:"fake"}, j:{la:() => e.path},};
|
|
2154
2154
|
return c.parent = c;
|
|
2155
2155
|
}};
|
|
2156
2156
|
return b;
|
|
@@ -2196,42 +2196,42 @@ Object.assign(Dc.prototype, {isAliasOf:function(a) {
|
|
|
2196
2196
|
a.g = a.g;
|
|
2197
2197
|
var d = a.g.u.i;
|
|
2198
2198
|
for (a = a.g.o; b.B;) {
|
|
2199
|
-
c = b.
|
|
2199
|
+
c = b.na(c), b = b.B;
|
|
2200
2200
|
}
|
|
2201
2201
|
for (; d.B;) {
|
|
2202
|
-
a = d.
|
|
2202
|
+
a = d.na(a), d = d.B;
|
|
2203
2203
|
}
|
|
2204
2204
|
return b === d && c === a;
|
|
2205
2205
|
}, clone:function() {
|
|
2206
2206
|
this.g.o || Cc(this);
|
|
2207
|
-
if (this.g.
|
|
2207
|
+
if (this.g.ia) {
|
|
2208
2208
|
return this.g.count.value += 1, this;
|
|
2209
2209
|
}
|
|
2210
2210
|
var a = uc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2211
|
-
a = a(c.call(b, d, {g:{value:{count:e.count,
|
|
2211
|
+
a = a(c.call(b, d, {g:{value:{count:e.count, ga:e.ga, ia:e.ia, o:e.o, u:e.u, D:e.D, J:e.J,},}}));
|
|
2212
2212
|
a.g.count.value += 1;
|
|
2213
|
-
a.g.
|
|
2213
|
+
a.g.ga = !1;
|
|
2214
2214
|
return a;
|
|
2215
2215
|
}, ["delete"]() {
|
|
2216
2216
|
this.g.o || Cc(this);
|
|
2217
|
-
if (this.g.
|
|
2217
|
+
if (this.g.ga && !this.g.ia) {
|
|
2218
2218
|
throw new P("Object already scheduled for deletion");
|
|
2219
2219
|
}
|
|
2220
2220
|
oc(this);
|
|
2221
2221
|
var a = this.g;
|
|
2222
2222
|
--a.count.value;
|
|
2223
|
-
0 === a.count.value && (a.
|
|
2224
|
-
this.g.
|
|
2223
|
+
0 === a.count.value && (a.D ? a.J.O(a.D) : a.u.i.O(a.o));
|
|
2224
|
+
this.g.ia || (this.g.D = void 0, this.g.o = void 0);
|
|
2225
2225
|
}, isDeleted:function() {
|
|
2226
2226
|
return !this.g.o;
|
|
2227
2227
|
}, deleteLater:function() {
|
|
2228
2228
|
this.g.o || Cc(this);
|
|
2229
|
-
if (this.g.
|
|
2229
|
+
if (this.g.ga && !this.g.ia) {
|
|
2230
2230
|
throw new P("Object already scheduled for deletion");
|
|
2231
2231
|
}
|
|
2232
2232
|
ec.push(this);
|
|
2233
2233
|
1 === ec.length && gc && gc(fc);
|
|
2234
|
-
this.g.
|
|
2234
|
+
this.g.ga = !0;
|
|
2235
2235
|
return this;
|
|
2236
2236
|
},});
|
|
2237
2237
|
Object.assign(Nc.prototype, {Ob(a) {
|
|
@@ -2241,7 +2241,7 @@ Object.assign(Nc.prototype, {Ob(a) {
|
|
|
2241
2241
|
this.O?.(a);
|
|
2242
2242
|
}, argPackAdvance:8, readValueFromPointer:yc, fromWireType:function(a) {
|
|
2243
2243
|
function b() {
|
|
2244
|
-
return this.
|
|
2244
|
+
return this.va ? vc(this.i.M, {u:this.ac, o:c, J:this, D:a,}) : vc(this.i.M, {u:this, o:a,});
|
|
2245
2245
|
}
|
|
2246
2246
|
var c = this.Ob(a);
|
|
2247
2247
|
if (!c) {
|
|
@@ -2250,7 +2250,7 @@ Object.assign(Nc.prototype, {Ob(a) {
|
|
|
2250
2250
|
var d = sc(this.i, c);
|
|
2251
2251
|
if (void 0 !== d) {
|
|
2252
2252
|
if (0 === d.g.count.value) {
|
|
2253
|
-
return d.g.o = c, d.g.
|
|
2253
|
+
return d.g.o = c, d.g.D = a, d.clone();
|
|
2254
2254
|
}
|
|
2255
2255
|
d = d.clone();
|
|
2256
2256
|
this.bb(a);
|
|
@@ -2261,9 +2261,9 @@ Object.assign(Nc.prototype, {Ob(a) {
|
|
|
2261
2261
|
if (!d) {
|
|
2262
2262
|
return b.call(this);
|
|
2263
2263
|
}
|
|
2264
|
-
d = this.
|
|
2264
|
+
d = this.ua ? d.Gb : d.pointerType;
|
|
2265
2265
|
var e = qc(c, this.i, d.i);
|
|
2266
|
-
return null === e ? b.call(this) : this.
|
|
2266
|
+
return null === e ? b.call(this) : this.va ? vc(d.i.M, {u:d, o:e, J:this, D:a,}) : vc(d.i.M, {u:d, o:e,});
|
|
2267
2267
|
},});
|
|
2268
2268
|
Uc = l.UnboundTypeError = bc("UnboundTypeError");
|
|
2269
2269
|
for (var W, ce = 0; 32 > ce; ++ce) {
|
|
@@ -2421,7 +2421,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2421
2421
|
oc(k);
|
|
2422
2422
|
var p = k.g;
|
|
2423
2423
|
k.notifyOnDestruction();
|
|
2424
|
-
p.
|
|
2424
|
+
p.ia = !0;
|
|
2425
2425
|
Object.defineProperties(this, {g:{value:p}});
|
|
2426
2426
|
uc(this);
|
|
2427
2427
|
k = p.o;
|
|
@@ -2528,8 +2528,8 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2528
2528
|
var C = new Hc(t, r, A, x, u, f, k, m);
|
|
2529
2529
|
if (C.B) {
|
|
2530
2530
|
var G;
|
|
2531
|
-
(G = C.B).
|
|
2532
|
-
C.B.
|
|
2531
|
+
(G = C.B).oa ?? (G.oa = []);
|
|
2532
|
+
C.B.oa.push(C);
|
|
2533
2533
|
}
|
|
2534
2534
|
u = new Nc(t, C, !0, !1, !1);
|
|
2535
2535
|
G = new Nc(t + "*", C, !1, !1, !1);
|
|
@@ -2551,12 +2551,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2551
2551
|
var t = `${p.name}.${b}`;
|
|
2552
2552
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2553
2553
|
var v = p.i.constructor;
|
|
2554
|
-
void 0 === v[b] ? (m.
|
|
2554
|
+
void 0 === v[b] ? (m.fa = c - 1, v[b] = m) : (Ec(v, b, t), v[b].A[c - 1] = m);
|
|
2555
2555
|
T([], k, x => {
|
|
2556
2556
|
x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2557
|
-
void 0 === v[b].A ? (x.
|
|
2558
|
-
if (p.i.
|
|
2559
|
-
for (const n of p.i.
|
|
2557
|
+
void 0 === v[b].A ? (x.fa = c - 1, v[b] = x) : v[b].A[c - 1] = x;
|
|
2558
|
+
if (p.i.oa) {
|
|
2559
|
+
for (const n of p.i.oa) {
|
|
2560
2560
|
n.constructor.hasOwnProperty(b) || (n.constructor[b] = x);
|
|
2561
2561
|
}
|
|
2562
2562
|
}
|
|
@@ -2627,10 +2627,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2627
2627
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2628
2628
|
k && m.i.ob.push(b);
|
|
2629
2629
|
var x = m.i.M, n = x[b];
|
|
2630
|
-
void 0 === n || void 0 === n.A && n.className !== m.name && n.
|
|
2630
|
+
void 0 === n || void 0 === n.A && n.className !== m.name && n.fa === c - 2 ? (t.fa = c - 2, t.className = m.name, x[b] = t) : (Ec(x, b, v), x[b].A[c - 2] = t);
|
|
2631
2631
|
T([], p, r => {
|
|
2632
2632
|
r = Xc(v, r, m, f, g);
|
|
2633
|
-
void 0 === x[b].A ? (r.
|
|
2633
|
+
void 0 === x[b].A ? (r.fa = c - 2, x[b] = r) : x[b].A[c - 2] = r;
|
|
2634
2634
|
return [];
|
|
2635
2635
|
});
|
|
2636
2636
|
return [];
|
|
@@ -2898,7 +2898,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2898
2898
|
g = a(g);
|
|
2899
2899
|
k < e ? (gb(f, D, c, 17), gb(g, D, d, 17)) : (gb(f, D, d, 17), gb(g, D, c, 17));
|
|
2900
2900
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2901
|
-
(a = w[a].
|
|
2901
|
+
(a = w[a].F.Ca) && a.beginPixelLocalStorageWEBGL(l.HEAPU32.subarray(c, c + b));
|
|
2902
2902
|
}, decode_image:function(a, b, c) {
|
|
2903
2903
|
var d = l.images;
|
|
2904
2904
|
d || (d = new Map(), l.images = d);
|
|
@@ -2958,17 +2958,17 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2958
2958
|
"WEBGL_draw_instanced_base_vertex_base_instance" == b && yd(W);
|
|
2959
2959
|
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && zd(W);
|
|
2960
2960
|
"WEBGL_multi_draw" == b && (W.Zb = W.getExtension("WEBGL_multi_draw"));
|
|
2961
|
-
return !!a.
|
|
2961
|
+
return !!a.F.getExtension(b);
|
|
2962
2962
|
}, emscripten_webgl_get_current_context:() => q ? q.handle : 0, emscripten_webgl_make_context_current:a => la(a) ? 0 : -5, enable_WEBGL_provoking_vertex:function(a) {
|
|
2963
|
-
a = w[a].
|
|
2963
|
+
a = w[a].F;
|
|
2964
2964
|
a.pb = a.getExtension("WEBGL_provoking_vertex");
|
|
2965
2965
|
return !!a.pb;
|
|
2966
2966
|
}, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
|
|
2967
|
-
a = w[a].
|
|
2968
|
-
|
|
2969
|
-
return
|
|
2967
|
+
a = w[a].F;
|
|
2968
|
+
const b = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
2969
|
+
return b && b.isCoherent() && 5 == b.framebufferTexturePixelLocalStorageWEBGL.length ? (a.Ca = b, !0) : !1;
|
|
2970
2970
|
}, endPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2971
|
-
(a = w[a].
|
|
2971
|
+
(a = w[a].F.Ca) && a.endPixelLocalStorageWEBGL(l.HEAPU32.subarray(c, c + b));
|
|
2972
2972
|
}, environ_get:(a, b) => {
|
|
2973
2973
|
var c = 0;
|
|
2974
2974
|
Qd().forEach((d, e) => {
|
|
@@ -3134,11 +3134,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3134
3134
|
return C.$;
|
|
3135
3135
|
}
|
|
3136
3136
|
}, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
|
|
3137
|
-
(a = w[a].
|
|
3138
|
-
}, framebufferTexturePixelLocalStorageWEBGL:function(a, b, c, d, e) {
|
|
3139
|
-
(a = w[a].
|
|
3140
|
-
}, getFramebufferPixelLocalStorageParameterivWEBGL:function(a, b, c) {
|
|
3141
|
-
return (a = w[a].C.ba) ? a.getFramebufferPixelLocalStorageParameterWEBGL(b, c) : 0;
|
|
3137
|
+
(a = w[a].F.Ca) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
|
|
3138
|
+
}, framebufferTexturePixelLocalStorageWEBGL:function(a, b, c, d, e, f) {
|
|
3139
|
+
(a = w[a].F.Ca) && a.framebufferTexturePixelLocalStorageWEBGL(b, Fd[c], d, e, f);
|
|
3142
3140
|
}, glActiveTexture:a => W.activeTexture(a), glAttachShader:(a, b) => {
|
|
3143
3141
|
W.attachShader(V[a], Gd[b]);
|
|
3144
3142
|
}, glBindBuffer:(a, b) => {
|
|
@@ -3169,7 +3167,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3169
3167
|
}, glCreateProgram:() => {
|
|
3170
3168
|
var a = Ld(V), b = W.createProgram();
|
|
3171
3169
|
b.name = a;
|
|
3172
|
-
b.
|
|
3170
|
+
b.ya = b.wa = b.xa = 0;
|
|
3173
3171
|
b.Wa = 1;
|
|
3174
3172
|
V[a] = b;
|
|
3175
3173
|
return a;
|
|
@@ -3244,11 +3242,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3244
3242
|
Md(a, b, "createTexture", Fd);
|
|
3245
3243
|
}, glGenVertexArrays:(a, b) => {
|
|
3246
3244
|
Md(a, b, "createVertexArray", Hd);
|
|
3247
|
-
}, glGenerateMipmap:a => W.generateMipmap(a),
|
|
3248
|
-
var a = W.getError() || X;
|
|
3249
|
-
X = 0;
|
|
3250
|
-
return a;
|
|
3251
|
-
}, glGetIntegerv:(a, b) => Td(a, b), glGetProgramiv:(a, b, c) => {
|
|
3245
|
+
}, glGenerateMipmap:a => W.generateMipmap(a), glGetIntegerv:(a, b) => Td(a, b), glGetProgramiv:(a, b, c) => {
|
|
3252
3246
|
if (c) {
|
|
3253
3247
|
if (a >= Bd) {
|
|
3254
3248
|
X ||= 1281;
|
|
@@ -3256,26 +3250,26 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3256
3250
|
if (a = V[a], 35716 == b) {
|
|
3257
3251
|
a = W.getProgramInfoLog(a), null === a && (a = "(unknown error)"), F[c >> 2] = a.length + 1;
|
|
3258
3252
|
} else if (35719 == b) {
|
|
3259
|
-
if (!a.
|
|
3253
|
+
if (!a.ya) {
|
|
3260
3254
|
for (b = 0; b < W.getProgramParameter(a, 35718); ++b) {
|
|
3261
|
-
a.
|
|
3255
|
+
a.ya = Math.max(a.ya, W.getActiveUniform(a, b).name.length + 1);
|
|
3262
3256
|
}
|
|
3263
3257
|
}
|
|
3264
|
-
F[c >> 2] = a.
|
|
3258
|
+
F[c >> 2] = a.ya;
|
|
3265
3259
|
} else if (35722 == b) {
|
|
3266
|
-
if (!a.
|
|
3260
|
+
if (!a.wa) {
|
|
3267
3261
|
for (b = 0; b < W.getProgramParameter(a, 35721); ++b) {
|
|
3268
|
-
a.
|
|
3262
|
+
a.wa = Math.max(a.wa, W.getActiveAttrib(a, b).name.length + 1);
|
|
3269
3263
|
}
|
|
3270
3264
|
}
|
|
3271
|
-
F[c >> 2] = a.
|
|
3265
|
+
F[c >> 2] = a.wa;
|
|
3272
3266
|
} else if (35381 == b) {
|
|
3273
|
-
if (!a.
|
|
3267
|
+
if (!a.xa) {
|
|
3274
3268
|
for (b = 0; b < W.getProgramParameter(a, 35382); ++b) {
|
|
3275
|
-
a.
|
|
3269
|
+
a.xa = Math.max(a.xa, W.getActiveUniformBlockName(a, b).length + 1);
|
|
3276
3270
|
}
|
|
3277
3271
|
}
|
|
3278
|
-
F[c >> 2] = a.
|
|
3272
|
+
F[c >> 2] = a.xa;
|
|
3279
3273
|
} else {
|
|
3280
3274
|
F[c >> 2] = W.getProgramParameter(a, b);
|
|
3281
3275
|
}
|
|
@@ -3315,9 +3309,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3315
3309
|
}, glGetUniformBlockIndex:(a, b) => W.getUniformBlockIndex(V[a], b ? L(D, b) : ""), glGetUniformLocation:(a, b) => {
|
|
3316
3310
|
b = b ? L(D, b) : "";
|
|
3317
3311
|
if (a = V[a]) {
|
|
3318
|
-
var c = a, d = c.
|
|
3312
|
+
var c = a, d = c.ma, e = c.wb, f;
|
|
3319
3313
|
if (!d) {
|
|
3320
|
-
for (c.
|
|
3314
|
+
for (c.ma = d = {}, c.vb = {}, f = 0; f < W.getProgramParameter(c, 35718); ++f) {
|
|
3321
3315
|
var g = W.getActiveUniform(c, f);
|
|
3322
3316
|
var k = g.name;
|
|
3323
3317
|
g = g.size;
|
|
@@ -3331,7 +3325,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3331
3325
|
}
|
|
3332
3326
|
}
|
|
3333
3327
|
}
|
|
3334
|
-
c = a.
|
|
3328
|
+
c = a.ma;
|
|
3335
3329
|
d = 0;
|
|
3336
3330
|
e = b;
|
|
3337
3331
|
f = Wd(b);
|
|
@@ -3351,7 +3345,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3351
3345
|
}, glLinkProgram:a => {
|
|
3352
3346
|
a = V[a];
|
|
3353
3347
|
W.linkProgram(a);
|
|
3354
|
-
a.
|
|
3348
|
+
a.ma = 0;
|
|
3355
3349
|
a.wb = {};
|
|
3356
3350
|
}, glPixelStorei:(a, b) => {
|
|
3357
3351
|
3317 == a ? Jd = b : 3314 == a && (Kd = b);
|
|
@@ -3393,8 +3387,8 @@ f, g, k, p) => {
|
|
|
3393
3387
|
var c = W, d = c.uniform1i;
|
|
3394
3388
|
var e = W.Hb;
|
|
3395
3389
|
if (e) {
|
|
3396
|
-
var f = e.
|
|
3397
|
-
"number" == typeof f && (e.
|
|
3390
|
+
var f = e.ma[a];
|
|
3391
|
+
"number" == typeof f && (e.ma[a] = f = W.getUniformLocation(e, e.vb[a] + (0 < f ? `[${f}]` : "")));
|
|
3398
3392
|
a = f;
|
|
3399
3393
|
} else {
|
|
3400
3394
|
X ||= 1282, a = void 0;
|
|
@@ -3416,10 +3410,10 @@ f, g, k, p) => {
|
|
|
3416
3410
|
}, glViewport:(a, b, c, d) => W.viewport(a, b, c, d), invoke_vii:de, isWindowsBrowser:function() {
|
|
3417
3411
|
return -1 < navigator.platform.indexOf("Win");
|
|
3418
3412
|
}, provokingVertexWEBGL:function(a, b) {
|
|
3419
|
-
(a = w[a].
|
|
3413
|
+
(a = w[a].F.pb) && a.provokingVertexWEBGL(b);
|
|
3420
3414
|
}, strftime:$d, strftime_l:(a, b, c, d) => $d(a, b, c, d), upload_image:function(a, b) {
|
|
3421
3415
|
var c = l.images;
|
|
3422
|
-
c && (b = c.get(b)) && (a = w[a].
|
|
3416
|
+
c && (b = c.get(b)) && (a = w[a].F, a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b), a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1));
|
|
3423
3417
|
}}, Y = function() {
|
|
3424
3418
|
function a(c) {
|
|
3425
3419
|
Y = c.exports;
|