@rive-app/webgl-advanced 2.15.2 → 2.15.3
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/webgl_advanced.mjs +794 -850
package/webgl_advanced.mjs
CHANGED
|
@@ -22,8 +22,8 @@ function ca() {
|
|
|
22
22
|
console.error(n);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
this.
|
|
26
|
-
e && e.
|
|
25
|
+
this.kb();
|
|
26
|
+
e && e.Mb();
|
|
27
27
|
}
|
|
28
28
|
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
29
29
|
this.requestAnimationFrame = function(g) {
|
|
@@ -36,20 +36,20 @@ function ca() {
|
|
|
36
36
|
d.delete(g);
|
|
37
37
|
b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
|
|
38
38
|
};
|
|
39
|
-
this.
|
|
39
|
+
this.Kb = function(g) {
|
|
40
40
|
f && (document.body.remove(f), f = null);
|
|
41
41
|
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(k) {
|
|
42
42
|
f.innerHTML = "RIVE FPS " + k.toFixed(1);
|
|
43
43
|
}, document.body.appendChild(f));
|
|
44
44
|
e = new function() {
|
|
45
45
|
let k = 0, q = 0;
|
|
46
|
-
this.
|
|
46
|
+
this.Mb = function() {
|
|
47
47
|
var n = performance.now();
|
|
48
48
|
q ? (++k, n -= q, 1000 < n && (g(1000 * k / n), k = q = 0)) : (q = n, k = 0);
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
52
|
-
this.
|
|
52
|
+
this.kb = function() {
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function da() {
|
|
@@ -87,10 +87,10 @@ m.onRuntimeInitialized = function() {
|
|
|
87
87
|
};
|
|
88
88
|
m.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:d}) {
|
|
89
89
|
this.__parent.__construct.call(this);
|
|
90
|
-
this.
|
|
90
|
+
this.Bb = d;
|
|
91
91
|
}, loadContents:function(d, e) {
|
|
92
92
|
d = m.ptrToAsset(d);
|
|
93
|
-
return this.
|
|
93
|
+
return this.Bb(d, e);
|
|
94
94
|
},});
|
|
95
95
|
m.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
96
96
|
this.__parent.__construct.call(this);
|
|
@@ -115,11 +115,11 @@ m.onRuntimeInitialized = function() {
|
|
|
115
115
|
},});
|
|
116
116
|
m.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
117
117
|
this.__parent.__construct.call(this);
|
|
118
|
-
this.
|
|
118
|
+
this.fb = [];
|
|
119
119
|
}, addLoader:function(d) {
|
|
120
|
-
this.
|
|
120
|
+
this.fb.push(d);
|
|
121
121
|
}, loadContents:function(d, e) {
|
|
122
|
-
for (let f of this.
|
|
122
|
+
for (let f of this.fb) {
|
|
123
123
|
if (f.loadContents(d, e)) {
|
|
124
124
|
return !0;
|
|
125
125
|
}
|
|
@@ -131,27 +131,27 @@ const fa = m.onRuntimeInitialized;
|
|
|
131
131
|
m.onRuntimeInitialized = function() {
|
|
132
132
|
function a(l) {
|
|
133
133
|
this.F = l;
|
|
134
|
-
this.
|
|
135
|
-
this.
|
|
136
|
-
this.
|
|
134
|
+
this.yb = l.getContext("2d");
|
|
135
|
+
this.Db = e;
|
|
136
|
+
this.R = [];
|
|
137
137
|
this.ja = 0;
|
|
138
138
|
this.clear = function() {
|
|
139
139
|
console.assert(0 == this.ja);
|
|
140
|
-
this.
|
|
140
|
+
this.R = [];
|
|
141
141
|
f.delete(this);
|
|
142
142
|
};
|
|
143
143
|
this.save = function() {
|
|
144
144
|
++this.ja;
|
|
145
|
-
this.
|
|
145
|
+
this.R.push(e.save.bind(e));
|
|
146
146
|
};
|
|
147
147
|
this.restore = function() {
|
|
148
|
-
0 < this.ja && (this.
|
|
148
|
+
0 < this.ja && (this.R.push(e.restore.bind(e)), --this.ja);
|
|
149
149
|
};
|
|
150
150
|
this.transform = function(r) {
|
|
151
|
-
this.
|
|
151
|
+
this.R.push(e.transform.bind(e, r));
|
|
152
152
|
};
|
|
153
|
-
this.align = function(r, x, z,
|
|
154
|
-
this.
|
|
153
|
+
this.align = function(r, x, z, G) {
|
|
154
|
+
this.R.push(e.align.bind(e, r, x, z, G));
|
|
155
155
|
};
|
|
156
156
|
this.flush = function() {
|
|
157
157
|
console.assert(0 == this.ja);
|
|
@@ -162,24 +162,24 @@ m.onRuntimeInitialized = function() {
|
|
|
162
162
|
function b(l) {
|
|
163
163
|
var r = {alpha:1, depth:0, stencil:8, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, preferLowPowerToHighPerformance:0, failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,}, x = l.getContext("webgl2", r);
|
|
164
164
|
x || (x = l.getContext("webgl", r));
|
|
165
|
-
var z = x,
|
|
166
|
-
z.canvas && (z.canvas.
|
|
167
|
-
|
|
168
|
-
("undefined" == typeof r.
|
|
169
|
-
la(
|
|
165
|
+
var z = x, G = ia(ja), C = {handle:G, attributes:r, version:r.Dc, Ta:z};
|
|
166
|
+
z.canvas && (z.canvas.pc = C);
|
|
167
|
+
ja[G] = C;
|
|
168
|
+
("undefined" == typeof r.Jb || r.Jb) && ka(C);
|
|
169
|
+
la(G);
|
|
170
170
|
r = g(l.width, l.height);
|
|
171
|
-
r.
|
|
171
|
+
r.Ab = G;
|
|
172
172
|
r.F = l;
|
|
173
|
-
r.
|
|
174
|
-
r.
|
|
175
|
-
r.
|
|
173
|
+
r.Va = l.width;
|
|
174
|
+
r.Ua = l.height;
|
|
175
|
+
r.zb = x;
|
|
176
176
|
return r;
|
|
177
177
|
}
|
|
178
178
|
function c() {
|
|
179
179
|
if (e) {
|
|
180
|
-
var l = e.
|
|
181
|
-
for (var
|
|
182
|
-
|
|
180
|
+
var l = e.Cb, r = 0, x = 0, z = 0, G = Array(f.size), C = 0;
|
|
181
|
+
for (var J of f) {
|
|
182
|
+
J.da = Math.min(J.F.width, l), J.ca = Math.min(J.F.height, l), J.Ja = J.ca * J.da, r = Math.max(r, J.da), x = Math.max(x, J.ca), z += J.Ja, G[C++] = J;
|
|
183
183
|
}
|
|
184
184
|
f.clear();
|
|
185
185
|
if (!(0 >= z)) {
|
|
@@ -189,48 +189,48 @@ m.onRuntimeInitialized = function() {
|
|
|
189
189
|
}
|
|
190
190
|
r = Math.min(r, l);
|
|
191
191
|
r = Math.min(x, l);
|
|
192
|
-
|
|
192
|
+
G.sort((ha, Fb) => Fb.Ja - ha.Ja);
|
|
193
193
|
z = new m.DynamicRectanizer(l);
|
|
194
|
-
for (
|
|
194
|
+
for (J = 0; J < G.length;) {
|
|
195
195
|
z.reset(r, x);
|
|
196
|
-
for (C =
|
|
197
|
-
var
|
|
198
|
-
if (0 >
|
|
199
|
-
console.assert(C >
|
|
196
|
+
for (C = J; C < G.length; ++C) {
|
|
197
|
+
var N = G[C], K = z.addRect(N.da, N.ca);
|
|
198
|
+
if (0 > K) {
|
|
199
|
+
console.assert(C > J);
|
|
200
200
|
break;
|
|
201
201
|
}
|
|
202
|
-
|
|
203
|
-
|
|
202
|
+
N.pa = K & 65535;
|
|
203
|
+
N.qa = K >> 16;
|
|
204
204
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
console.assert(
|
|
208
|
-
console.assert(
|
|
209
|
-
console.assert(
|
|
210
|
-
console.assert(
|
|
211
|
-
e.F.width !=
|
|
212
|
-
e.F.height !=
|
|
205
|
+
N = q.push(z.drawWidth());
|
|
206
|
+
K = n.push(z.drawHeight());
|
|
207
|
+
console.assert(N >= z.drawWidth());
|
|
208
|
+
console.assert(K >= z.drawHeight());
|
|
209
|
+
console.assert(N <= l);
|
|
210
|
+
console.assert(K <= l);
|
|
211
|
+
e.F.width != N && (e.F.width = N);
|
|
212
|
+
e.F.height != K && (e.F.height = K);
|
|
213
213
|
e.clear();
|
|
214
|
-
for (
|
|
215
|
-
|
|
216
|
-
e.saveClipRect(
|
|
217
|
-
let
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
e.transform(
|
|
224
|
-
for (const
|
|
225
|
-
|
|
214
|
+
for (N = J; N < C; ++N) {
|
|
215
|
+
K = G[N];
|
|
216
|
+
e.saveClipRect(K.pa, K.qa, K.pa + K.da, K.qa + K.ca);
|
|
217
|
+
let ha = new m.Mat2D();
|
|
218
|
+
ha.xx = K.da / K.F.width;
|
|
219
|
+
ha.yy = K.ca / K.F.height;
|
|
220
|
+
ha.xy = ha.yx = 0;
|
|
221
|
+
ha.tx = K.pa;
|
|
222
|
+
ha.ty = K.qa;
|
|
223
|
+
e.transform(ha);
|
|
224
|
+
for (const Fb of K.R) {
|
|
225
|
+
Fb();
|
|
226
226
|
}
|
|
227
227
|
e.restoreClipRect();
|
|
228
|
-
|
|
228
|
+
K.R = [];
|
|
229
229
|
}
|
|
230
|
-
for (e.flush();
|
|
231
|
-
|
|
230
|
+
for (e.flush(); J < C; ++J) {
|
|
231
|
+
N = G[J], K = N.yb, K.globalCompositeOperation = "copy", K.drawImage(e.F, N.pa, N.qa, N.da, N.ca, 0, 0, N.F.width, N.F.height);
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
J = C;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
}
|
|
@@ -240,17 +240,17 @@ m.onRuntimeInitialized = function() {
|
|
|
240
240
|
let e = null;
|
|
241
241
|
const f = new Set(), g = m.makeRenderer;
|
|
242
242
|
m.makeRenderer = function(l, r) {
|
|
243
|
-
return r ? (e || (e = b(document.createElement("canvas")), r = e.
|
|
243
|
+
return r ? (e || (e = b(document.createElement("canvas")), r = e.zb, e.Cb = Math.min(r.getParameter(r.MAX_RENDERBUFFER_SIZE), r.getParameter(r.MAX_TEXTURE_SIZE))), new a(l)) : b(l);
|
|
244
244
|
};
|
|
245
245
|
const k = m.Artboard.prototype.draw;
|
|
246
246
|
m.Artboard.prototype.draw = function(l) {
|
|
247
|
-
l.
|
|
247
|
+
l.R ? l.R.push(k.bind(this, l.Db)) : k.call(this, l);
|
|
248
248
|
};
|
|
249
|
-
const q = new da(), n = new da(),
|
|
250
|
-
m.requestAnimationFrame =
|
|
251
|
-
m.cancelAnimationFrame =
|
|
252
|
-
m.enableFPSCounter =
|
|
253
|
-
|
|
249
|
+
const q = new da(), n = new da(), t = new ca();
|
|
250
|
+
m.requestAnimationFrame = t.requestAnimationFrame.bind(t);
|
|
251
|
+
m.cancelAnimationFrame = t.cancelAnimationFrame.bind(t);
|
|
252
|
+
m.enableFPSCounter = t.Kb.bind(t);
|
|
253
|
+
t.kb = c;
|
|
254
254
|
m.resolveAnimationFrame = c;
|
|
255
255
|
let v = m.load;
|
|
256
256
|
m.load = function(l, r, x = !0) {
|
|
@@ -261,10 +261,10 @@ m.onRuntimeInitialized = function() {
|
|
|
261
261
|
};
|
|
262
262
|
const y = m.WebGLRenderer.prototype.clear;
|
|
263
263
|
m.WebGLRenderer.prototype.clear = function() {
|
|
264
|
-
la(this.
|
|
264
|
+
la(this.Ab);
|
|
265
265
|
const l = this.F;
|
|
266
|
-
if (this.
|
|
267
|
-
this.resize(l.width, l.height), this.
|
|
266
|
+
if (this.Va != l.width || this.Ua != l.height) {
|
|
267
|
+
this.resize(l.width, l.height), this.Va = l.width, this.Ua = l.height;
|
|
268
268
|
}
|
|
269
269
|
y.call(this);
|
|
270
270
|
};
|
|
@@ -300,24 +300,24 @@ var va;
|
|
|
300
300
|
m.wasmBinary && (va = m.wasmBinary);
|
|
301
301
|
var noExitRuntime = m.noExitRuntime || !0;
|
|
302
302
|
"object" != typeof WebAssembly && wa("no native wasm support detected");
|
|
303
|
-
var xa, p, ya = !1,
|
|
304
|
-
function
|
|
303
|
+
var xa, p, ya = !1, u, w, A, za, B, D, E, Aa;
|
|
304
|
+
function Ba() {
|
|
305
305
|
var a = xa.buffer;
|
|
306
|
-
m.HEAP8 =
|
|
307
|
-
m.HEAP16 =
|
|
308
|
-
m.HEAP32 =
|
|
306
|
+
m.HEAP8 = u = new Int8Array(a);
|
|
307
|
+
m.HEAP16 = A = new Int16Array(a);
|
|
308
|
+
m.HEAP32 = B = new Int32Array(a);
|
|
309
309
|
m.HEAPU8 = w = new Uint8Array(a);
|
|
310
|
-
m.HEAPU16 =
|
|
311
|
-
m.HEAPU32 =
|
|
312
|
-
m.HEAPF32 =
|
|
313
|
-
m.HEAPF64 =
|
|
310
|
+
m.HEAPU16 = za = new Uint16Array(a);
|
|
311
|
+
m.HEAPU32 = D = new Uint32Array(a);
|
|
312
|
+
m.HEAPF32 = E = new Float32Array(a);
|
|
313
|
+
m.HEAPF64 = Aa = new Float64Array(a);
|
|
314
314
|
}
|
|
315
|
-
var
|
|
316
|
-
function
|
|
315
|
+
var Ca, Da = [], Ea = [], Fa = [];
|
|
316
|
+
function Ga() {
|
|
317
317
|
var a = m.preRun.shift();
|
|
318
|
-
|
|
318
|
+
Da.unshift(a);
|
|
319
319
|
}
|
|
320
|
-
var
|
|
320
|
+
var Ha = 0, Ia = null, Ja = null;
|
|
321
321
|
function wa(a) {
|
|
322
322
|
if (m.onAbort) {
|
|
323
323
|
m.onAbort(a);
|
|
@@ -329,17 +329,17 @@ function wa(a) {
|
|
|
329
329
|
ba(a);
|
|
330
330
|
throw a;
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Ka(a) {
|
|
333
333
|
return a.startsWith("data:application/octet-stream;base64,");
|
|
334
334
|
}
|
|
335
|
-
var
|
|
336
|
-
|
|
337
|
-
if (!La
|
|
338
|
-
var
|
|
339
|
-
|
|
335
|
+
var La;
|
|
336
|
+
La = "webgl_advanced.wasm";
|
|
337
|
+
if (!Ka(La)) {
|
|
338
|
+
var Ma = La;
|
|
339
|
+
La = m.locateFile ? m.locateFile(Ma, qa) : qa + Ma;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
if (a ==
|
|
341
|
+
function Na(a) {
|
|
342
|
+
if (a == La && va) {
|
|
343
343
|
return new Uint8Array(va);
|
|
344
344
|
}
|
|
345
345
|
if (sa) {
|
|
@@ -347,7 +347,7 @@ function Oa(a) {
|
|
|
347
347
|
}
|
|
348
348
|
throw "both async and sync fetching of the wasm failed";
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function Oa(a) {
|
|
351
351
|
if (!va && (oa || pa)) {
|
|
352
352
|
if ("function" == typeof fetch && !a.startsWith("file://")) {
|
|
353
353
|
return fetch(a, {credentials:"same-origin"}).then(b => {
|
|
@@ -355,7 +355,7 @@ function Pa(a) {
|
|
|
355
355
|
throw "failed to load wasm binary file at '" + a + "'";
|
|
356
356
|
}
|
|
357
357
|
return b.arrayBuffer();
|
|
358
|
-
}).catch(() =>
|
|
358
|
+
}).catch(() => Na(a));
|
|
359
359
|
}
|
|
360
360
|
if (ra) {
|
|
361
361
|
return new Promise((b, c) => {
|
|
@@ -363,38 +363,38 @@ function Pa(a) {
|
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
return Promise.resolve().then(() =>
|
|
366
|
+
return Promise.resolve().then(() => Na(a));
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
return
|
|
368
|
+
function Pa(a, b, c) {
|
|
369
|
+
return Oa(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
|
|
370
370
|
ua("failed to asynchronously prepare wasm: " + d);
|
|
371
371
|
wa(d);
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
var c =
|
|
376
|
-
return va || "function" != typeof WebAssembly.instantiateStreaming ||
|
|
374
|
+
function Qa(a, b) {
|
|
375
|
+
var c = La;
|
|
376
|
+
return va || "function" != typeof WebAssembly.instantiateStreaming || Ka(c) || c.startsWith("file://") || "function" != typeof fetch ? Pa(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
|
|
377
377
|
ua("wasm streaming compile failed: " + e);
|
|
378
378
|
ua("falling back to ArrayBuffer instantiation");
|
|
379
|
-
return
|
|
379
|
+
return Pa(c, a, b);
|
|
380
380
|
}));
|
|
381
381
|
}
|
|
382
|
-
var
|
|
382
|
+
var Ra, Sa, Wa = {684556:(a, b, c, d, e) => {
|
|
383
383
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
384
384
|
return 0;
|
|
385
385
|
}
|
|
386
386
|
if ("undefined" === typeof window.h) {
|
|
387
387
|
window.h = {Ea:0};
|
|
388
388
|
window.h.H = {};
|
|
389
|
-
window.h.H.
|
|
389
|
+
window.h.H.Ca = a;
|
|
390
390
|
window.h.H.capture = b;
|
|
391
391
|
window.h.H.La = c;
|
|
392
392
|
window.h.ha = {};
|
|
393
393
|
window.h.ha.stopped = d;
|
|
394
|
-
window.h.ha.
|
|
394
|
+
window.h.ha.sb = e;
|
|
395
395
|
let f = window.h;
|
|
396
396
|
f.C = [];
|
|
397
|
-
f.
|
|
397
|
+
f.nc = function(g) {
|
|
398
398
|
for (var k = 0; k < f.C.length; ++k) {
|
|
399
399
|
if (null == f.C[k]) {
|
|
400
400
|
return f.C[k] = g, k;
|
|
@@ -403,7 +403,7 @@ var E, F, Va = {688828:(a, b, c, d, e) => {
|
|
|
403
403
|
f.C.push(g);
|
|
404
404
|
return f.C.length - 1;
|
|
405
405
|
};
|
|
406
|
-
f.
|
|
406
|
+
f.xb = function(g) {
|
|
407
407
|
for (f.C[g] = null; 0 < f.C.length;) {
|
|
408
408
|
if (null == f.C[f.C.length - 1]) {
|
|
409
409
|
f.C.pop();
|
|
@@ -415,36 +415,36 @@ var E, F, Va = {688828:(a, b, c, d, e) => {
|
|
|
415
415
|
f.Kc = function(g) {
|
|
416
416
|
for (var k = 0; k < f.C.length; ++k) {
|
|
417
417
|
if (f.C[k] == g) {
|
|
418
|
-
return f.
|
|
418
|
+
return f.xb(k);
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
};
|
|
422
|
-
f.
|
|
422
|
+
f.ta = function(g) {
|
|
423
423
|
return f.C[g];
|
|
424
424
|
};
|
|
425
|
-
f.
|
|
425
|
+
f.wb = ["touchend", "click"];
|
|
426
426
|
f.unlock = function() {
|
|
427
427
|
for (var g = 0; g < f.C.length; ++g) {
|
|
428
428
|
var k = f.C[g];
|
|
429
|
-
null != k && null != k.I && k.state === f.ha.
|
|
430
|
-
|
|
429
|
+
null != k && null != k.I && k.state === f.ha.sb && k.I.resume().then(() => {
|
|
430
|
+
Ta(k.lb);
|
|
431
431
|
}, q => {
|
|
432
432
|
console.error("Failed to resume audiocontext", q);
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
|
-
f.
|
|
435
|
+
f.wb.map(function(q) {
|
|
436
436
|
document.removeEventListener(q, f.unlock, !0);
|
|
437
437
|
});
|
|
438
438
|
};
|
|
439
|
-
f.
|
|
439
|
+
f.wb.map(function(g) {
|
|
440
440
|
document.addEventListener(g, f.unlock, !0);
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
443
|
window.h.Ea += 1;
|
|
444
444
|
return 1;
|
|
445
|
-
},
|
|
445
|
+
}, 686734:() => {
|
|
446
446
|
"undefined" !== typeof window.h && (--window.h.Ea, 0 === window.h.Ea && delete window.h);
|
|
447
|
-
},
|
|
447
|
+
}, 686898:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 687002:() => {
|
|
448
448
|
try {
|
|
449
449
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
450
450
|
a.close();
|
|
@@ -452,34 +452,34 @@ var E, F, Va = {688828:(a, b, c, d, e) => {
|
|
|
452
452
|
} catch (c) {
|
|
453
453
|
return 0;
|
|
454
454
|
}
|
|
455
|
-
},
|
|
455
|
+
}, 687173:(a, b, c, d, e, f) => {
|
|
456
456
|
if ("undefined" === typeof window.h) {
|
|
457
457
|
return -1;
|
|
458
458
|
}
|
|
459
459
|
var g = {}, k = {};
|
|
460
|
-
a == window.h.H.
|
|
460
|
+
a == window.h.H.Ca && 0 != c && (k.sampleRate = c);
|
|
461
461
|
g.I = new (window.AudioContext || window.webkitAudioContext)(k);
|
|
462
462
|
g.I.suspend();
|
|
463
463
|
g.state = window.h.ha.stopped;
|
|
464
464
|
c = 0;
|
|
465
|
-
a != window.h.H.
|
|
466
|
-
g.
|
|
467
|
-
g.
|
|
468
|
-
if (null == g.
|
|
469
|
-
g.
|
|
465
|
+
a != window.h.H.Ca && (c = b);
|
|
466
|
+
g.X = g.I.createScriptProcessor(d, c, b);
|
|
467
|
+
g.X.onaudioprocess = function(q) {
|
|
468
|
+
if (null == g.ua || 0 == g.ua.length) {
|
|
469
|
+
g.ua = new Float32Array(E.buffer, e, d * b);
|
|
470
470
|
}
|
|
471
471
|
if (a == window.h.H.capture || a == window.h.H.La) {
|
|
472
472
|
for (var n = 0; n < b; n += 1) {
|
|
473
|
-
for (var
|
|
474
|
-
v[y * b + n] =
|
|
473
|
+
for (var t = q.inputBuffer.getChannelData(n), v = g.ua, y = 0; y < d; y += 1) {
|
|
474
|
+
v[y * b + n] = t[y];
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
|
|
477
|
+
Ua(f, d, e);
|
|
478
478
|
}
|
|
479
|
-
if (a == window.h.H.
|
|
480
|
-
for (
|
|
481
|
-
for (
|
|
482
|
-
|
|
479
|
+
if (a == window.h.H.Ca || a == window.h.H.La) {
|
|
480
|
+
for (Va(f, d, e), n = 0; n < q.outputBuffer.numberOfChannels; ++n) {
|
|
481
|
+
for (t = q.outputBuffer.getChannelData(n), v = g.ua, y = 0; y < d; y += 1) {
|
|
482
|
+
t[y] = v[y * b + n];
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
} else {
|
|
@@ -490,37 +490,37 @@ var E, F, Va = {688828:(a, b, c, d, e) => {
|
|
|
490
490
|
};
|
|
491
491
|
a != window.h.H.capture && a != window.h.H.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(q) {
|
|
492
492
|
g.Fa = g.I.createMediaStreamSource(q);
|
|
493
|
-
g.Fa.connect(g.
|
|
494
|
-
g.
|
|
493
|
+
g.Fa.connect(g.X);
|
|
494
|
+
g.X.connect(g.I.destination);
|
|
495
495
|
}).catch(function(q) {
|
|
496
496
|
console.log("Failed to get user media: " + q);
|
|
497
497
|
});
|
|
498
|
-
a == window.h.H.
|
|
499
|
-
g.
|
|
500
|
-
return window.h.
|
|
501
|
-
},
|
|
502
|
-
a = window.h.
|
|
503
|
-
void 0 !== a.
|
|
504
|
-
}, a.
|
|
498
|
+
a == window.h.H.Ca && g.X.connect(g.I.destination);
|
|
499
|
+
g.lb = f;
|
|
500
|
+
return window.h.nc(g);
|
|
501
|
+
}, 690050:a => window.h.ta(a).I.sampleRate, 690123:a => {
|
|
502
|
+
a = window.h.ta(a);
|
|
503
|
+
void 0 !== a.X && (a.X.onaudioprocess = function() {
|
|
504
|
+
}, a.X.disconnect(), a.X = void 0);
|
|
505
505
|
void 0 !== a.Fa && (a.Fa.disconnect(), a.Fa = void 0);
|
|
506
506
|
a.I.close();
|
|
507
507
|
a.I = void 0;
|
|
508
|
-
a.
|
|
509
|
-
},
|
|
510
|
-
window.h.
|
|
511
|
-
},
|
|
512
|
-
a = window.h.
|
|
508
|
+
a.lb = void 0;
|
|
509
|
+
}, 690523:a => {
|
|
510
|
+
window.h.xb(a);
|
|
511
|
+
}, 690573:a => {
|
|
512
|
+
a = window.h.ta(a);
|
|
513
513
|
a.I.resume();
|
|
514
|
-
a.state = window.h.ha.
|
|
515
|
-
},
|
|
516
|
-
a = window.h.
|
|
514
|
+
a.state = window.h.ha.sb;
|
|
515
|
+
}, 690712:a => {
|
|
516
|
+
a = window.h.ta(a);
|
|
517
517
|
a.I.suspend();
|
|
518
518
|
a.state = window.h.ha.stopped;
|
|
519
|
-
}},
|
|
519
|
+
}}, Xa = a => {
|
|
520
520
|
for (; 0 < a.length;) {
|
|
521
521
|
a.shift()(m);
|
|
522
522
|
}
|
|
523
|
-
},
|
|
523
|
+
}, Ya = (a, b) => {
|
|
524
524
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
525
525
|
var e = a[d];
|
|
526
526
|
"." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
|
|
@@ -531,12 +531,12 @@ var E, F, Va = {688828:(a, b, c, d, e) => {
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
return a;
|
|
534
|
-
},
|
|
534
|
+
}, Za = a => {
|
|
535
535
|
var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
|
|
536
|
-
(a =
|
|
536
|
+
(a = Ya(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
|
|
537
537
|
a && c && (a += "/");
|
|
538
538
|
return (b ? "/" : "") + a;
|
|
539
|
-
},
|
|
539
|
+
}, $a = a => {
|
|
540
540
|
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
|
|
541
541
|
a = b[0];
|
|
542
542
|
b = b[1];
|
|
@@ -545,21 +545,21 @@ var E, F, Va = {688828:(a, b, c, d, e) => {
|
|
|
545
545
|
}
|
|
546
546
|
b && (b = b.substr(0, b.length - 1));
|
|
547
547
|
return a + b;
|
|
548
|
-
},
|
|
548
|
+
}, ab = a => {
|
|
549
549
|
if ("/" === a) {
|
|
550
550
|
return "/";
|
|
551
551
|
}
|
|
552
|
-
a =
|
|
552
|
+
a = Za(a);
|
|
553
553
|
a = a.replace(/\/$/, "");
|
|
554
554
|
var b = a.lastIndexOf("/");
|
|
555
555
|
return -1 === b ? a : a.substr(b + 1);
|
|
556
|
-
},
|
|
556
|
+
}, bb = () => {
|
|
557
557
|
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
558
558
|
return a => crypto.getRandomValues(a);
|
|
559
559
|
}
|
|
560
560
|
wa("initRandomDevice");
|
|
561
|
-
},
|
|
562
|
-
function
|
|
561
|
+
}, cb = a => (cb = bb())(a);
|
|
562
|
+
function db() {
|
|
563
563
|
for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
|
|
564
564
|
b = 0 <= c ? arguments[c] : "/";
|
|
565
565
|
if ("string" != typeof b) {
|
|
@@ -571,16 +571,16 @@ function cb() {
|
|
|
571
571
|
a = b + "/" + a;
|
|
572
572
|
b = "/" === b.charAt(0);
|
|
573
573
|
}
|
|
574
|
-
a =
|
|
574
|
+
a = Ya(a.split("/").filter(d => !!d), !b).join("/");
|
|
575
575
|
return (b ? "/" : "") + a || ".";
|
|
576
576
|
}
|
|
577
|
-
var
|
|
577
|
+
var eb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, F = (a, b, c) => {
|
|
578
578
|
var d = b + c;
|
|
579
579
|
for (c = b; a[c] && !(c >= d);) {
|
|
580
580
|
++c;
|
|
581
581
|
}
|
|
582
|
-
if (16 < c - b && a.buffer &&
|
|
583
|
-
return
|
|
582
|
+
if (16 < c - b && a.buffer && eb) {
|
|
583
|
+
return eb.decode(a.subarray(b, c));
|
|
584
584
|
}
|
|
585
585
|
for (d = ""; b < c;) {
|
|
586
586
|
var e = a[b++];
|
|
@@ -656,32 +656,32 @@ function ib(a, b) {
|
|
|
656
656
|
}
|
|
657
657
|
var jb = [];
|
|
658
658
|
function kb(a, b) {
|
|
659
|
-
jb[a] = {input:[], D:[],
|
|
659
|
+
jb[a] = {input:[], D:[], T:b};
|
|
660
660
|
lb(a, mb);
|
|
661
661
|
}
|
|
662
662
|
var mb = {open:function(a) {
|
|
663
|
-
var b = jb[a.node.
|
|
663
|
+
var b = jb[a.node.Da];
|
|
664
664
|
if (!b) {
|
|
665
|
-
throw new
|
|
665
|
+
throw new H(43);
|
|
666
666
|
}
|
|
667
667
|
a.s = b;
|
|
668
668
|
a.seekable = !1;
|
|
669
669
|
}, close:function(a) {
|
|
670
|
-
a.s.
|
|
671
|
-
},
|
|
672
|
-
a.s.
|
|
670
|
+
a.s.T.sa(a.s);
|
|
671
|
+
}, sa:function(a) {
|
|
672
|
+
a.s.T.sa(a.s);
|
|
673
673
|
}, read:function(a, b, c, d) {
|
|
674
|
-
if (!a.s || !a.s.
|
|
675
|
-
throw new
|
|
674
|
+
if (!a.s || !a.s.T.eb) {
|
|
675
|
+
throw new H(60);
|
|
676
676
|
}
|
|
677
677
|
for (var e = 0, f = 0; f < d; f++) {
|
|
678
678
|
try {
|
|
679
|
-
var g = a.s.
|
|
679
|
+
var g = a.s.T.eb(a.s);
|
|
680
680
|
} catch (k) {
|
|
681
|
-
throw new
|
|
681
|
+
throw new H(29);
|
|
682
682
|
}
|
|
683
683
|
if (void 0 === g && 0 === e) {
|
|
684
|
-
throw new
|
|
684
|
+
throw new H(6);
|
|
685
685
|
}
|
|
686
686
|
if (null === g || void 0 === g) {
|
|
687
687
|
break;
|
|
@@ -692,15 +692,15 @@ var mb = {open:function(a) {
|
|
|
692
692
|
e && (a.node.timestamp = Date.now());
|
|
693
693
|
return e;
|
|
694
694
|
}, write:function(a, b, c, d) {
|
|
695
|
-
if (!a.s || !a.s.
|
|
696
|
-
throw new
|
|
695
|
+
if (!a.s || !a.s.T.Oa) {
|
|
696
|
+
throw new H(60);
|
|
697
697
|
}
|
|
698
698
|
try {
|
|
699
699
|
for (var e = 0; e < d; e++) {
|
|
700
|
-
a.s.
|
|
700
|
+
a.s.T.Oa(a.s, b[c + e]);
|
|
701
701
|
}
|
|
702
702
|
} catch (f) {
|
|
703
|
-
throw new
|
|
703
|
+
throw new H(29);
|
|
704
704
|
}
|
|
705
705
|
d && (a.node.timestamp = Date.now());
|
|
706
706
|
return e;
|
|
@@ -718,117 +718,117 @@ var mb = {open:function(a) {
|
|
|
718
718
|
a = fb.shift();
|
|
719
719
|
}
|
|
720
720
|
return a;
|
|
721
|
-
},
|
|
722
|
-
null === b || 10 === b ? (ta(
|
|
723
|
-
},
|
|
724
|
-
a.D && 0 < a.D.length && (ta(
|
|
725
|
-
},
|
|
726
|
-
return {
|
|
727
|
-
},
|
|
721
|
+
}, Oa:function(a, b) {
|
|
722
|
+
null === b || 10 === b ? (ta(F(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
723
|
+
}, sa:function(a) {
|
|
724
|
+
a.D && 0 < a.D.length && (ta(F(a.D, 0)), a.D = []);
|
|
725
|
+
}, Wb:function() {
|
|
726
|
+
return {uc:25856, wc:5, tc:191, vc:35387, sc:[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,]};
|
|
727
|
+
}, Xb:function() {
|
|
728
728
|
return 0;
|
|
729
|
-
},
|
|
729
|
+
}, Yb:function() {
|
|
730
730
|
return [24, 80];
|
|
731
|
-
},}, ob = {
|
|
732
|
-
null === b || 10 === b ? (ua(
|
|
733
|
-
},
|
|
734
|
-
a.D && 0 < a.D.length && (ua(
|
|
731
|
+
},}, ob = {Oa:function(a, b) {
|
|
732
|
+
null === b || 10 === b ? (ua(F(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
733
|
+
}, sa:function(a) {
|
|
734
|
+
a.D && 0 < a.D.length && (ua(F(a.D, 0)), a.D = []);
|
|
735
735
|
},};
|
|
736
736
|
function pb(a, b) {
|
|
737
|
-
var c = a.
|
|
738
|
-
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.
|
|
737
|
+
var c = a.j ? a.j.length : 0;
|
|
738
|
+
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.j, a.j = new Uint8Array(b), 0 < a.v && a.j.set(c.subarray(0, a.v), 0));
|
|
739
739
|
}
|
|
740
|
-
var I = {
|
|
740
|
+
var I = {N:null, S() {
|
|
741
741
|
return I.createNode(null, "/", 16895, 0);
|
|
742
742
|
}, createNode(a, b, c, d) {
|
|
743
743
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
744
|
-
throw new
|
|
744
|
+
throw new H(63);
|
|
745
745
|
}
|
|
746
|
-
I.
|
|
746
|
+
I.N || (I.N = {dir:{node:{W:I.l.W, O:I.l.O, ka:I.l.ka, Aa:I.l.Aa, qb:I.l.qb, vb:I.l.vb, rb:I.l.rb, ob:I.l.ob, Ga:I.l.Ga}, stream:{$:I.m.$}}, file:{node:{W:I.l.W, O:I.l.O}, stream:{$:I.m.$, read:I.m.read, write:I.m.write, ra:I.m.ra, hb:I.m.hb, jb:I.m.jb}}, link:{node:{W:I.l.W, O:I.l.O, la:I.l.la}, stream:{}}, Wa:{node:{W:I.l.W, O:I.l.O}, stream:qb}});
|
|
747
747
|
c = rb(a, b, c, d);
|
|
748
|
-
16384 === (c.mode & 61440) ? (c.
|
|
748
|
+
16384 === (c.mode & 61440) ? (c.l = I.N.dir.node, c.m = I.N.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = I.N.file.node, c.m = I.N.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = I.N.link.node, c.m = I.N.link.stream) : 8192 === (c.mode & 61440) && (c.l = I.N.Wa.node, c.m = I.N.Wa.stream);
|
|
749
749
|
c.timestamp = Date.now();
|
|
750
|
-
a && (a.
|
|
750
|
+
a && (a.j[b] = c, a.timestamp = c.timestamp);
|
|
751
751
|
return c;
|
|
752
|
-
},
|
|
753
|
-
return a.
|
|
754
|
-
},
|
|
752
|
+
}, Ac(a) {
|
|
753
|
+
return a.j ? a.j.subarray ? a.j.subarray(0, a.v) : new Uint8Array(a.j) : new Uint8Array(0);
|
|
754
|
+
}, l:{W(a) {
|
|
755
755
|
var b = {};
|
|
756
|
-
b.
|
|
757
|
-
b.
|
|
756
|
+
b.zc = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
757
|
+
b.Cc = a.id;
|
|
758
758
|
b.mode = a.mode;
|
|
759
|
-
b.
|
|
759
|
+
b.Gc = 1;
|
|
760
760
|
b.uid = 0;
|
|
761
|
-
b.
|
|
762
|
-
b.
|
|
761
|
+
b.Bc = 0;
|
|
762
|
+
b.Da = a.Da;
|
|
763
763
|
16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.v : 40960 === (a.mode & 61440) ? b.size = a.link.length : b.size = 0;
|
|
764
|
-
b.
|
|
765
|
-
b.
|
|
766
|
-
b.
|
|
767
|
-
b.
|
|
768
|
-
b.
|
|
764
|
+
b.qc = new Date(a.timestamp);
|
|
765
|
+
b.Ec = new Date(a.timestamp);
|
|
766
|
+
b.xc = new Date(a.timestamp);
|
|
767
|
+
b.Eb = 4096;
|
|
768
|
+
b.rc = Math.ceil(b.size / b.Eb);
|
|
769
769
|
return b;
|
|
770
|
-
},
|
|
770
|
+
}, O(a, b) {
|
|
771
771
|
void 0 !== b.mode && (a.mode = b.mode);
|
|
772
772
|
void 0 !== b.timestamp && (a.timestamp = b.timestamp);
|
|
773
773
|
if (void 0 !== b.size && (b = b.size, a.v != b)) {
|
|
774
774
|
if (0 == b) {
|
|
775
|
-
a.
|
|
775
|
+
a.j = null, a.v = 0;
|
|
776
776
|
} else {
|
|
777
|
-
var c = a.
|
|
778
|
-
a.
|
|
779
|
-
c && a.
|
|
777
|
+
var c = a.j;
|
|
778
|
+
a.j = new Uint8Array(b);
|
|
779
|
+
c && a.j.set(c.subarray(0, Math.min(b, a.v)));
|
|
780
780
|
a.v = b;
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
783
|
}, ka() {
|
|
784
784
|
throw sb[44];
|
|
785
|
-
},
|
|
785
|
+
}, Aa(a, b, c, d) {
|
|
786
786
|
return I.createNode(a, b, c, d);
|
|
787
|
-
},
|
|
787
|
+
}, qb(a, b, c) {
|
|
788
788
|
if (16384 === (a.mode & 61440)) {
|
|
789
789
|
try {
|
|
790
790
|
var d = tb(b, c);
|
|
791
791
|
} catch (f) {
|
|
792
792
|
}
|
|
793
793
|
if (d) {
|
|
794
|
-
for (var e in d.
|
|
795
|
-
throw new
|
|
794
|
+
for (var e in d.j) {
|
|
795
|
+
throw new H(55);
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
|
-
delete a.parent.
|
|
799
|
+
delete a.parent.j[a.name];
|
|
800
800
|
a.parent.timestamp = Date.now();
|
|
801
801
|
a.name = c;
|
|
802
|
-
b.
|
|
802
|
+
b.j[c] = a;
|
|
803
803
|
b.timestamp = a.parent.timestamp;
|
|
804
804
|
a.parent = b;
|
|
805
|
-
},
|
|
806
|
-
delete a.
|
|
805
|
+
}, vb(a, b) {
|
|
806
|
+
delete a.j[b];
|
|
807
807
|
a.timestamp = Date.now();
|
|
808
|
-
},
|
|
808
|
+
}, rb(a, b) {
|
|
809
809
|
var c = tb(a, b), d;
|
|
810
|
-
for (d in c.
|
|
811
|
-
throw new
|
|
810
|
+
for (d in c.j) {
|
|
811
|
+
throw new H(55);
|
|
812
812
|
}
|
|
813
|
-
delete a.
|
|
813
|
+
delete a.j[b];
|
|
814
814
|
a.timestamp = Date.now();
|
|
815
|
-
},
|
|
815
|
+
}, ob(a) {
|
|
816
816
|
var b = [".", ".."], c;
|
|
817
|
-
for (c in a.
|
|
818
|
-
a.
|
|
817
|
+
for (c in a.j) {
|
|
818
|
+
a.j.hasOwnProperty(c) && b.push(c);
|
|
819
819
|
}
|
|
820
820
|
return b;
|
|
821
821
|
}, Ga(a, b, c) {
|
|
822
822
|
a = I.createNode(a, b, 41471, 0);
|
|
823
823
|
a.link = c;
|
|
824
824
|
return a;
|
|
825
|
-
},
|
|
825
|
+
}, la(a) {
|
|
826
826
|
if (40960 !== (a.mode & 61440)) {
|
|
827
|
-
throw new
|
|
827
|
+
throw new H(28);
|
|
828
828
|
}
|
|
829
829
|
return a.link;
|
|
830
830
|
},}, m:{read(a, b, c, d, e) {
|
|
831
|
-
var f = a.node.
|
|
831
|
+
var f = a.node.j;
|
|
832
832
|
if (e >= a.node.v) {
|
|
833
833
|
return 0;
|
|
834
834
|
}
|
|
@@ -842,29 +842,29 @@ var I = {O:null, T() {
|
|
|
842
842
|
}
|
|
843
843
|
return a;
|
|
844
844
|
}, write(a, b, c, d, e, f) {
|
|
845
|
-
b.buffer ===
|
|
845
|
+
b.buffer === u.buffer && (f = !1);
|
|
846
846
|
if (!d) {
|
|
847
847
|
return 0;
|
|
848
848
|
}
|
|
849
849
|
a = a.node;
|
|
850
850
|
a.timestamp = Date.now();
|
|
851
|
-
if (b.subarray && (!a.
|
|
851
|
+
if (b.subarray && (!a.j || a.j.subarray)) {
|
|
852
852
|
if (f) {
|
|
853
|
-
return a.
|
|
853
|
+
return a.j = b.subarray(c, c + d), a.v = d;
|
|
854
854
|
}
|
|
855
855
|
if (0 === a.v && 0 === e) {
|
|
856
|
-
return a.
|
|
856
|
+
return a.j = b.slice(c, c + d), a.v = d;
|
|
857
857
|
}
|
|
858
858
|
if (e + d <= a.v) {
|
|
859
|
-
return a.
|
|
859
|
+
return a.j.set(b.subarray(c, c + d), e), d;
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
862
|
pb(a, e + d);
|
|
863
|
-
if (a.
|
|
864
|
-
a.
|
|
863
|
+
if (a.j.subarray && b.subarray) {
|
|
864
|
+
a.j.set(b.subarray(c, c + d), e);
|
|
865
865
|
} else {
|
|
866
866
|
for (f = 0; f < d; f++) {
|
|
867
|
-
a.
|
|
867
|
+
a.j[e + f] = b[c + f];
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
a.v = Math.max(a.v, e + d);
|
|
@@ -872,18 +872,18 @@ var I = {O:null, T() {
|
|
|
872
872
|
}, $(a, b, c) {
|
|
873
873
|
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
|
|
874
874
|
if (0 > b) {
|
|
875
|
-
throw new
|
|
875
|
+
throw new H(28);
|
|
876
876
|
}
|
|
877
877
|
return b;
|
|
878
|
-
},
|
|
878
|
+
}, ra(a, b, c) {
|
|
879
879
|
pb(a.node, b + c);
|
|
880
880
|
a.node.v = Math.max(a.node.v, b + c);
|
|
881
|
-
},
|
|
881
|
+
}, hb(a, b, c, d, e) {
|
|
882
882
|
if (32768 !== (a.node.mode & 61440)) {
|
|
883
|
-
throw new
|
|
883
|
+
throw new H(43);
|
|
884
884
|
}
|
|
885
|
-
a = a.node.
|
|
886
|
-
if (e & 2 || a.buffer !==
|
|
885
|
+
a = a.node.j;
|
|
886
|
+
if (e & 2 || a.buffer !== u.buffer) {
|
|
887
887
|
if (0 < c || c + b < a.length) {
|
|
888
888
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
889
889
|
}
|
|
@@ -891,14 +891,14 @@ var I = {O:null, T() {
|
|
|
891
891
|
b = 65536 * Math.ceil(b / 65536);
|
|
892
892
|
(e = ub(65536, b)) ? (w.fill(0, e, e + b), b = e) : b = 0;
|
|
893
893
|
if (!b) {
|
|
894
|
-
throw new
|
|
894
|
+
throw new H(48);
|
|
895
895
|
}
|
|
896
|
-
|
|
896
|
+
u.set(a, b);
|
|
897
897
|
} else {
|
|
898
898
|
c = !1, b = a.byteOffset;
|
|
899
899
|
}
|
|
900
900
|
return {o:b, L:c};
|
|
901
|
-
},
|
|
901
|
+
}, jb(a, b, c, d) {
|
|
902
902
|
I.m.write(a, b, 0, d, c, !1);
|
|
903
903
|
return 0;
|
|
904
904
|
},},};
|
|
@@ -908,14 +908,14 @@ function vb(a, b) {
|
|
|
908
908
|
b && (c |= 146);
|
|
909
909
|
return c;
|
|
910
910
|
}
|
|
911
|
-
var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0,
|
|
912
|
-
a =
|
|
911
|
+
var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, H = null, sb = {}, Db = (a, b = {}) => {
|
|
912
|
+
a = db(a);
|
|
913
913
|
if (!a) {
|
|
914
914
|
return {path:"", node:null};
|
|
915
915
|
}
|
|
916
|
-
b = Object.assign({bb:!0,
|
|
917
|
-
if (8 < b.
|
|
918
|
-
throw new
|
|
916
|
+
b = Object.assign({bb:!0, Qa:0}, b);
|
|
917
|
+
if (8 < b.Qa) {
|
|
918
|
+
throw new H(32);
|
|
919
919
|
}
|
|
920
920
|
a = a.split("/").filter(g => !!g);
|
|
921
921
|
for (var c = wb, d = "/", e = 0; e < a.length; e++) {
|
|
@@ -924,12 +924,12 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
924
924
|
break;
|
|
925
925
|
}
|
|
926
926
|
c = tb(c, a[e]);
|
|
927
|
-
d =
|
|
928
|
-
c.
|
|
929
|
-
if (!f || b.
|
|
927
|
+
d = Za(d + "/" + a[e]);
|
|
928
|
+
c.Ba && (!f || f && b.bb) && (c = c.Ba.root);
|
|
929
|
+
if (!f || b.ab) {
|
|
930
930
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
931
|
-
if (c = Cb(d), d =
|
|
932
|
-
throw new
|
|
931
|
+
if (c = Cb(d), d = db($a(d), c), c = Db(d, {Qa:b.Qa + 1}).node, 40 < f++) {
|
|
932
|
+
throw new H(32);
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
935
|
}
|
|
@@ -938,32 +938,32 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
938
938
|
}, Eb = a => {
|
|
939
939
|
for (var b;;) {
|
|
940
940
|
if (a === a.parent) {
|
|
941
|
-
return a = a.
|
|
941
|
+
return a = a.S.ib, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
942
942
|
}
|
|
943
943
|
b = b ? `${a.name}/${b}` : a.name;
|
|
944
944
|
a = a.parent;
|
|
945
945
|
}
|
|
946
|
-
},
|
|
946
|
+
}, Gb = (a, b) => {
|
|
947
947
|
for (var c = 0, d = 0; d < b.length; d++) {
|
|
948
948
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
949
949
|
}
|
|
950
950
|
return (a + c >>> 0) % Ab.length;
|
|
951
951
|
}, tb = (a, b) => {
|
|
952
952
|
var c;
|
|
953
|
-
if (c = (c = Hb(a, "x")) ? c : a.
|
|
954
|
-
throw new
|
|
953
|
+
if (c = (c = Hb(a, "x")) ? c : a.l.ka ? 0 : 2) {
|
|
954
|
+
throw new H(c, a);
|
|
955
955
|
}
|
|
956
|
-
for (c = Ab[
|
|
956
|
+
for (c = Ab[Gb(a.id, b)]; c; c = c.ac) {
|
|
957
957
|
var d = c.name;
|
|
958
958
|
if (c.parent.id === a.id && d === b) {
|
|
959
959
|
return c;
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
|
-
return a.
|
|
962
|
+
return a.l.ka(a, b);
|
|
963
963
|
}, rb = (a, b, c, d) => {
|
|
964
964
|
a = new Ib(a, b, c, d);
|
|
965
|
-
b =
|
|
966
|
-
a.
|
|
965
|
+
b = Gb(a.parent.id, a.name);
|
|
966
|
+
a.ac = Ab[b];
|
|
967
967
|
return Ab[b] = a;
|
|
968
968
|
}, Jb = a => {
|
|
969
969
|
var b = ["r", "w", "rw"][a & 3];
|
|
@@ -993,11 +993,11 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
993
993
|
return a;
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
|
-
throw new
|
|
996
|
+
throw new H(33);
|
|
997
997
|
}, Mb = a => {
|
|
998
998
|
a = yb[a];
|
|
999
999
|
if (!a) {
|
|
1000
|
-
throw new
|
|
1000
|
+
throw new H(8);
|
|
1001
1001
|
}
|
|
1002
1002
|
return a;
|
|
1003
1003
|
}, Ob = (a, b = -1) => {
|
|
@@ -1018,82 +1018,82 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
1018
1018
|
},},}));
|
|
1019
1019
|
a = Object.assign(new Nb(), a);
|
|
1020
1020
|
-1 == b && (b = Lb());
|
|
1021
|
-
a.
|
|
1021
|
+
a.V = b;
|
|
1022
1022
|
return yb[b] = a;
|
|
1023
1023
|
}, qb = {open:a => {
|
|
1024
|
-
a.m = xb[a.node.
|
|
1024
|
+
a.m = xb[a.node.Da].m;
|
|
1025
1025
|
a.m.open && a.m.open(a);
|
|
1026
1026
|
}, $:() => {
|
|
1027
|
-
throw new
|
|
1027
|
+
throw new H(70);
|
|
1028
1028
|
},}, lb = (a, b) => {
|
|
1029
1029
|
xb[a] = {m:b};
|
|
1030
1030
|
}, Pb = (a, b) => {
|
|
1031
1031
|
var c = "/" === b, d = !b;
|
|
1032
1032
|
if (c && wb) {
|
|
1033
|
-
throw new
|
|
1033
|
+
throw new H(10);
|
|
1034
1034
|
}
|
|
1035
1035
|
if (!c && !d) {
|
|
1036
1036
|
var e = Db(b, {bb:!1});
|
|
1037
1037
|
b = e.path;
|
|
1038
1038
|
e = e.node;
|
|
1039
|
-
if (e.
|
|
1040
|
-
throw new
|
|
1039
|
+
if (e.Ba) {
|
|
1040
|
+
throw new H(10);
|
|
1041
1041
|
}
|
|
1042
1042
|
if (16384 !== (e.mode & 61440)) {
|
|
1043
|
-
throw new
|
|
1043
|
+
throw new H(54);
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
|
-
b = {type:a, Ic:{},
|
|
1047
|
-
a = a.
|
|
1048
|
-
a.
|
|
1046
|
+
b = {type:a, Ic:{}, ib:b, $b:[]};
|
|
1047
|
+
a = a.S(b);
|
|
1048
|
+
a.S = b;
|
|
1049
1049
|
b.root = a;
|
|
1050
|
-
c ? wb = a : e && (e.
|
|
1050
|
+
c ? wb = a : e && (e.Ba = b, e.S && e.S.$b.push(b));
|
|
1051
1051
|
}, Qb = (a, b, c) => {
|
|
1052
1052
|
var d = Db(a, {parent:!0}).node;
|
|
1053
|
-
a =
|
|
1053
|
+
a = ab(a);
|
|
1054
1054
|
if (!a || "." === a || ".." === a) {
|
|
1055
|
-
throw new
|
|
1055
|
+
throw new H(28);
|
|
1056
1056
|
}
|
|
1057
1057
|
var e = Kb(d, a);
|
|
1058
1058
|
if (e) {
|
|
1059
|
-
throw new
|
|
1059
|
+
throw new H(e);
|
|
1060
1060
|
}
|
|
1061
|
-
if (!d.
|
|
1062
|
-
throw new
|
|
1061
|
+
if (!d.l.Aa) {
|
|
1062
|
+
throw new H(63);
|
|
1063
1063
|
}
|
|
1064
|
-
return d.
|
|
1064
|
+
return d.l.Aa(d, a, b, c);
|
|
1065
1065
|
}, Rb = (a, b, c) => {
|
|
1066
1066
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1067
1067
|
Qb(a, b | 8192, c);
|
|
1068
1068
|
}, Sb = (a, b) => {
|
|
1069
|
-
if (!
|
|
1070
|
-
throw new
|
|
1069
|
+
if (!db(a)) {
|
|
1070
|
+
throw new H(44);
|
|
1071
1071
|
}
|
|
1072
1072
|
var c = Db(b, {parent:!0}).node;
|
|
1073
1073
|
if (!c) {
|
|
1074
|
-
throw new
|
|
1074
|
+
throw new H(44);
|
|
1075
1075
|
}
|
|
1076
|
-
b =
|
|
1076
|
+
b = ab(b);
|
|
1077
1077
|
var d = Kb(c, b);
|
|
1078
1078
|
if (d) {
|
|
1079
|
-
throw new
|
|
1079
|
+
throw new H(d);
|
|
1080
1080
|
}
|
|
1081
|
-
if (!c.
|
|
1082
|
-
throw new
|
|
1081
|
+
if (!c.l.Ga) {
|
|
1082
|
+
throw new H(63);
|
|
1083
1083
|
}
|
|
1084
|
-
c.
|
|
1084
|
+
c.l.Ga(c, b, a);
|
|
1085
1085
|
}, Cb = a => {
|
|
1086
1086
|
a = Db(a).node;
|
|
1087
1087
|
if (!a) {
|
|
1088
|
-
throw new
|
|
1088
|
+
throw new H(44);
|
|
1089
1089
|
}
|
|
1090
|
-
if (!a.
|
|
1091
|
-
throw new
|
|
1090
|
+
if (!a.l.la) {
|
|
1091
|
+
throw new H(28);
|
|
1092
1092
|
}
|
|
1093
|
-
return
|
|
1093
|
+
return db(Eb(a.parent), a.l.la(a));
|
|
1094
1094
|
}, Ub = (a, b, c) => {
|
|
1095
1095
|
if ("" === a) {
|
|
1096
|
-
throw new
|
|
1096
|
+
throw new H(44);
|
|
1097
1097
|
}
|
|
1098
1098
|
if ("string" == typeof b) {
|
|
1099
1099
|
var d = {r:0, "r+":2, w:577, "w+":578, a:1089, "a+":1090,}[b];
|
|
@@ -1106,9 +1106,9 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
1106
1106
|
if ("object" == typeof a) {
|
|
1107
1107
|
var e = a;
|
|
1108
1108
|
} else {
|
|
1109
|
-
a =
|
|
1109
|
+
a = Za(a);
|
|
1110
1110
|
try {
|
|
1111
|
-
e = Db(a, {
|
|
1111
|
+
e = Db(a, {ab:!(b & 131072)}).node;
|
|
1112
1112
|
} catch (f) {
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
@@ -1116,71 +1116,71 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
1116
1116
|
if (b & 64) {
|
|
1117
1117
|
if (e) {
|
|
1118
1118
|
if (b & 128) {
|
|
1119
|
-
throw new
|
|
1119
|
+
throw new H(20);
|
|
1120
1120
|
}
|
|
1121
1121
|
} else {
|
|
1122
1122
|
e = Qb(a, c, 0), d = !0;
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
1125
|
if (!e) {
|
|
1126
|
-
throw new
|
|
1126
|
+
throw new H(44);
|
|
1127
1127
|
}
|
|
1128
1128
|
8192 === (e.mode & 61440) && (b &= -513);
|
|
1129
1129
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1130
|
-
throw new
|
|
1130
|
+
throw new H(54);
|
|
1131
1131
|
}
|
|
1132
1132
|
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Jb(b) || b & 512) ? 31 : Hb(e, Jb(b)) : 44)) {
|
|
1133
|
-
throw new
|
|
1133
|
+
throw new H(c);
|
|
1134
1134
|
}
|
|
1135
1135
|
if (b & 512 && !d) {
|
|
1136
1136
|
c = e;
|
|
1137
|
-
c = "string" == typeof c ? Db(c, {
|
|
1138
|
-
if (!c.
|
|
1139
|
-
throw new
|
|
1137
|
+
c = "string" == typeof c ? Db(c, {ab:!0}).node : c;
|
|
1138
|
+
if (!c.l.O) {
|
|
1139
|
+
throw new H(63);
|
|
1140
1140
|
}
|
|
1141
1141
|
if (16384 === (c.mode & 61440)) {
|
|
1142
|
-
throw new
|
|
1142
|
+
throw new H(31);
|
|
1143
1143
|
}
|
|
1144
1144
|
if (32768 !== (c.mode & 61440)) {
|
|
1145
|
-
throw new
|
|
1145
|
+
throw new H(28);
|
|
1146
1146
|
}
|
|
1147
1147
|
if (d = Hb(c, "w")) {
|
|
1148
|
-
throw new
|
|
1148
|
+
throw new H(d);
|
|
1149
1149
|
}
|
|
1150
|
-
c.
|
|
1150
|
+
c.l.O(c, {size:0, timestamp:Date.now()});
|
|
1151
1151
|
}
|
|
1152
1152
|
b &= -131713;
|
|
1153
|
-
e = Ob({node:e, path:Eb(e), flags:b, seekable:!0, position:0, m:e.m,
|
|
1153
|
+
e = Ob({node:e, path:Eb(e), flags:b, seekable:!0, position:0, m:e.m, oc:[], error:!1});
|
|
1154
1154
|
e.m.open && e.m.open(e);
|
|
1155
1155
|
!m.logReadFiles || b & 1 || (Tb || (Tb = {}), a in Tb || (Tb[a] = 1));
|
|
1156
1156
|
return e;
|
|
1157
1157
|
}, Vb = (a, b, c) => {
|
|
1158
|
-
if (null === a.
|
|
1159
|
-
throw new
|
|
1158
|
+
if (null === a.V) {
|
|
1159
|
+
throw new H(8);
|
|
1160
1160
|
}
|
|
1161
1161
|
if (!a.seekable || !a.m.$) {
|
|
1162
|
-
throw new
|
|
1162
|
+
throw new H(70);
|
|
1163
1163
|
}
|
|
1164
1164
|
if (0 != c && 1 != c && 2 != c) {
|
|
1165
|
-
throw new
|
|
1165
|
+
throw new H(28);
|
|
1166
1166
|
}
|
|
1167
1167
|
a.position = a.m.$(a, b, c);
|
|
1168
|
-
a.
|
|
1168
|
+
a.oc = [];
|
|
1169
1169
|
}, Wb = () => {
|
|
1170
|
-
|
|
1170
|
+
H || (H = function(a, b) {
|
|
1171
1171
|
this.name = "ErrnoError";
|
|
1172
1172
|
this.node = b;
|
|
1173
|
-
this.
|
|
1174
|
-
this.
|
|
1173
|
+
this.dc = function(c) {
|
|
1174
|
+
this.Z = c;
|
|
1175
1175
|
};
|
|
1176
|
-
this.
|
|
1176
|
+
this.dc(a);
|
|
1177
1177
|
this.message = "FS error";
|
|
1178
|
-
},
|
|
1179
|
-
sb[a] = new
|
|
1178
|
+
}, H.prototype = Error(), H.prototype.constructor = H, [44].forEach(a => {
|
|
1179
|
+
sb[a] = new H(a);
|
|
1180
1180
|
sb[a].stack = "<generic error, no stack>";
|
|
1181
1181
|
}));
|
|
1182
1182
|
}, Xb, Zb = (a, b, c) => {
|
|
1183
|
-
a =
|
|
1183
|
+
a = Za("/dev/" + a);
|
|
1184
1184
|
var d = vb(!!b, !!c);
|
|
1185
1185
|
Yb || (Yb = 64);
|
|
1186
1186
|
var e = Yb++ << 8 | 0;
|
|
@@ -1189,20 +1189,20 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
1189
1189
|
}, close:() => {
|
|
1190
1190
|
c && c.buffer && c.buffer.length && c(10);
|
|
1191
1191
|
}, read:(f, g, k, q) => {
|
|
1192
|
-
for (var n = 0,
|
|
1192
|
+
for (var n = 0, t = 0; t < q; t++) {
|
|
1193
1193
|
try {
|
|
1194
1194
|
var v = b();
|
|
1195
1195
|
} catch (y) {
|
|
1196
|
-
throw new
|
|
1196
|
+
throw new H(29);
|
|
1197
1197
|
}
|
|
1198
1198
|
if (void 0 === v && 0 === n) {
|
|
1199
|
-
throw new
|
|
1199
|
+
throw new H(6);
|
|
1200
1200
|
}
|
|
1201
1201
|
if (null === v || void 0 === v) {
|
|
1202
1202
|
break;
|
|
1203
1203
|
}
|
|
1204
1204
|
n++;
|
|
1205
|
-
g[k +
|
|
1205
|
+
g[k + t] = v;
|
|
1206
1206
|
}
|
|
1207
1207
|
n && (f.node.timestamp = Date.now());
|
|
1208
1208
|
return n;
|
|
@@ -1210,8 +1210,8 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
1210
1210
|
for (var n = 0; n < q; n++) {
|
|
1211
1211
|
try {
|
|
1212
1212
|
c(g[k + n]);
|
|
1213
|
-
} catch (
|
|
1214
|
-
throw new
|
|
1213
|
+
} catch (t) {
|
|
1214
|
+
throw new H(29);
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
1217
|
q && (f.node.timestamp = Date.now());
|
|
@@ -1221,7 +1221,7 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
1221
1221
|
}, Yb, $b = {}, Nb, Tb, ac = void 0;
|
|
1222
1222
|
function bc() {
|
|
1223
1223
|
ac += 4;
|
|
1224
|
-
return
|
|
1224
|
+
return B[ac - 4 >> 2];
|
|
1225
1225
|
}
|
|
1226
1226
|
function cc(a) {
|
|
1227
1227
|
if (void 0 === a) {
|
|
@@ -1241,13 +1241,13 @@ function ec() {
|
|
|
1241
1241
|
this.L = [void 0];
|
|
1242
1242
|
this.cb = [];
|
|
1243
1243
|
}
|
|
1244
|
-
var
|
|
1245
|
-
function
|
|
1244
|
+
var L = new ec(), fc = void 0;
|
|
1245
|
+
function M(a) {
|
|
1246
1246
|
throw new fc(a);
|
|
1247
1247
|
}
|
|
1248
1248
|
var gc = a => {
|
|
1249
|
-
a ||
|
|
1250
|
-
return
|
|
1249
|
+
a || M("Cannot use deleted val. handle = " + a);
|
|
1250
|
+
return L.get(a).value;
|
|
1251
1251
|
}, hc = a => {
|
|
1252
1252
|
switch(a) {
|
|
1253
1253
|
case void 0:
|
|
@@ -1259,7 +1259,7 @@ var gc = a => {
|
|
|
1259
1259
|
case !1:
|
|
1260
1260
|
return 4;
|
|
1261
1261
|
default:
|
|
1262
|
-
return
|
|
1262
|
+
return L.ra({pb:1, value:a});
|
|
1263
1263
|
}
|
|
1264
1264
|
};
|
|
1265
1265
|
function ic(a) {
|
|
@@ -1277,7 +1277,7 @@ function ic(a) {
|
|
|
1277
1277
|
return c;
|
|
1278
1278
|
}
|
|
1279
1279
|
var jc = void 0, kc = void 0;
|
|
1280
|
-
function
|
|
1280
|
+
function O(a) {
|
|
1281
1281
|
for (var b = ""; w[a];) {
|
|
1282
1282
|
b += kc[w[a++]];
|
|
1283
1283
|
}
|
|
@@ -1293,21 +1293,21 @@ function mc() {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
var nc = void 0, oc = {};
|
|
1295
1295
|
function pc(a, b) {
|
|
1296
|
-
for (void 0 === b &&
|
|
1297
|
-
b = a.
|
|
1296
|
+
for (void 0 === b && M("ptr should not be undefined"); a.A;) {
|
|
1297
|
+
b = a.na(b), a = a.A;
|
|
1298
1298
|
}
|
|
1299
1299
|
return b;
|
|
1300
1300
|
}
|
|
1301
1301
|
var qc = {};
|
|
1302
1302
|
function rc(a) {
|
|
1303
1303
|
a = sc(a);
|
|
1304
|
-
var b =
|
|
1304
|
+
var b = O(a);
|
|
1305
1305
|
tc(a);
|
|
1306
1306
|
return b;
|
|
1307
1307
|
}
|
|
1308
1308
|
function uc(a, b) {
|
|
1309
1309
|
var c = qc[a];
|
|
1310
|
-
void 0 === c &&
|
|
1310
|
+
void 0 === c && M(b + " has unknown type " + rc(a));
|
|
1311
1311
|
return c;
|
|
1312
1312
|
}
|
|
1313
1313
|
function vc() {
|
|
@@ -1315,7 +1315,7 @@ function vc() {
|
|
|
1315
1315
|
var wc = !1;
|
|
1316
1316
|
function xc(a) {
|
|
1317
1317
|
--a.count.value;
|
|
1318
|
-
0 === a.count.value && (a.G ? a.K.
|
|
1318
|
+
0 === a.count.value && (a.G ? a.K.U(a.G) : a.u.i.U(a.o));
|
|
1319
1319
|
}
|
|
1320
1320
|
function yc(a, b, c) {
|
|
1321
1321
|
if (b === c) {
|
|
@@ -1325,7 +1325,7 @@ function yc(a, b, c) {
|
|
|
1325
1325
|
return null;
|
|
1326
1326
|
}
|
|
1327
1327
|
a = yc(a, b, c.A);
|
|
1328
|
-
return null === a ? null : c.
|
|
1328
|
+
return null === a ? null : c.Ib(a);
|
|
1329
1329
|
}
|
|
1330
1330
|
var zc = {};
|
|
1331
1331
|
function Ac(a, b) {
|
|
@@ -1367,7 +1367,7 @@ function Gc(a) {
|
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
1369
|
function Hc(a) {
|
|
1370
|
-
return this.fromWireType(
|
|
1370
|
+
return this.fromWireType(B[a >> 2]);
|
|
1371
1371
|
}
|
|
1372
1372
|
var Ic = {}, Jc = {};
|
|
1373
1373
|
function P(a, b, c) {
|
|
@@ -1407,12 +1407,12 @@ function Lc(a) {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
function Mc(a, b, c = {}) {
|
|
1409
1409
|
var d = b.name;
|
|
1410
|
-
a ||
|
|
1410
|
+
a || M(`type "${d}" must have a positive integer typeid pointer`);
|
|
1411
1411
|
if (qc.hasOwnProperty(a)) {
|
|
1412
|
-
if (c.
|
|
1412
|
+
if (c.Tb) {
|
|
1413
1413
|
return;
|
|
1414
1414
|
}
|
|
1415
|
-
|
|
1415
|
+
M(`Cannot register type '${d}' twice`);
|
|
1416
1416
|
}
|
|
1417
1417
|
qc[a] = b;
|
|
1418
1418
|
delete Jc[a];
|
|
@@ -1425,7 +1425,7 @@ function Kc(a, b, c = {}) {
|
|
|
1425
1425
|
Mc(a, b, c);
|
|
1426
1426
|
}
|
|
1427
1427
|
function Nc(a) {
|
|
1428
|
-
|
|
1428
|
+
M(a.g.u.i.name + " instance already deleted");
|
|
1429
1429
|
}
|
|
1430
1430
|
function Oc() {
|
|
1431
1431
|
}
|
|
@@ -1433,7 +1433,7 @@ function Pc(a, b, c) {
|
|
|
1433
1433
|
if (void 0 === a[b].B) {
|
|
1434
1434
|
var d = a[b];
|
|
1435
1435
|
a[b] = function() {
|
|
1436
|
-
a[b].B.hasOwnProperty(arguments.length) ||
|
|
1436
|
+
a[b].B.hasOwnProperty(arguments.length) || M(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].B})!`);
|
|
1437
1437
|
return a[b].B[arguments.length].apply(this, arguments);
|
|
1438
1438
|
};
|
|
1439
1439
|
a[b].B = [];
|
|
@@ -1441,51 +1441,51 @@ function Pc(a, b, c) {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
}
|
|
1443
1443
|
function Qc(a, b, c) {
|
|
1444
|
-
m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) &&
|
|
1444
|
+
m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && M(`Cannot register public name '${a}' twice`), Pc(m, a, a), m.hasOwnProperty(c) && M(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), m[a].B[c] = b) : (m[a] = b, void 0 !== c && (m[a].Hc = c));
|
|
1445
1445
|
}
|
|
1446
1446
|
function Rc(a, b, c, d, e, f, g, k) {
|
|
1447
1447
|
this.name = a;
|
|
1448
1448
|
this.constructor = b;
|
|
1449
|
-
this.
|
|
1450
|
-
this.
|
|
1449
|
+
this.M = c;
|
|
1450
|
+
this.U = d;
|
|
1451
1451
|
this.A = e;
|
|
1452
|
-
this.
|
|
1453
|
-
this.
|
|
1454
|
-
this.
|
|
1455
|
-
this.
|
|
1452
|
+
this.Nb = f;
|
|
1453
|
+
this.na = g;
|
|
1454
|
+
this.Ib = k;
|
|
1455
|
+
this.mb = [];
|
|
1456
1456
|
}
|
|
1457
1457
|
function Sc(a, b, c) {
|
|
1458
1458
|
for (; b !== c;) {
|
|
1459
|
-
b.
|
|
1459
|
+
b.na || M(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.na(a), b = b.A;
|
|
1460
1460
|
}
|
|
1461
1461
|
return a;
|
|
1462
1462
|
}
|
|
1463
1463
|
function Tc(a, b) {
|
|
1464
1464
|
if (null === b) {
|
|
1465
|
-
return this.
|
|
1465
|
+
return this.Na && M(`null is not a valid ${this.name}`), 0;
|
|
1466
1466
|
}
|
|
1467
|
-
b.g ||
|
|
1468
|
-
b.g.o ||
|
|
1467
|
+
b.g || M(`Cannot pass "${Uc(b)}" as a ${this.name}`);
|
|
1468
|
+
b.g.o || M(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1469
1469
|
return Sc(b.g.o, b.g.u.i, this.i);
|
|
1470
1470
|
}
|
|
1471
1471
|
function Vc(a, b) {
|
|
1472
1472
|
if (null === b) {
|
|
1473
|
-
this.
|
|
1474
|
-
if (this.
|
|
1475
|
-
var c = this.
|
|
1476
|
-
null !== a && a.push(this.
|
|
1473
|
+
this.Na && M(`null is not a valid ${this.name}`);
|
|
1474
|
+
if (this.wa) {
|
|
1475
|
+
var c = this.Pa();
|
|
1476
|
+
null !== a && a.push(this.U, c);
|
|
1477
1477
|
return c;
|
|
1478
1478
|
}
|
|
1479
1479
|
return 0;
|
|
1480
1480
|
}
|
|
1481
|
-
b.g ||
|
|
1482
|
-
b.g.o ||
|
|
1483
|
-
!this.
|
|
1481
|
+
b.g || M(`Cannot pass "${Uc(b)}" as a ${this.name}`);
|
|
1482
|
+
b.g.o || M(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1483
|
+
!this.va && b.g.u.va && M(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1484
1484
|
c = Sc(b.g.o, b.g.u.i, this.i);
|
|
1485
|
-
if (this.
|
|
1486
|
-
switch(void 0 === b.g.G &&
|
|
1485
|
+
if (this.wa) {
|
|
1486
|
+
switch(void 0 === b.g.G && M("Passing raw pointer to smart pointer is illegal"), this.ic) {
|
|
1487
1487
|
case 0:
|
|
1488
|
-
b.g.K === this ? c = b.g.G :
|
|
1488
|
+
b.g.K === this ? c = b.g.G : M(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1489
1489
|
break;
|
|
1490
1490
|
case 1:
|
|
1491
1491
|
c = b.g.G;
|
|
@@ -1495,34 +1495,34 @@ function Vc(a, b) {
|
|
|
1495
1495
|
c = b.g.G;
|
|
1496
1496
|
} else {
|
|
1497
1497
|
var d = b.clone();
|
|
1498
|
-
c = this.
|
|
1498
|
+
c = this.cc(c, hc(function() {
|
|
1499
1499
|
d["delete"]();
|
|
1500
1500
|
}));
|
|
1501
|
-
null !== a && a.push(this.
|
|
1501
|
+
null !== a && a.push(this.U, c);
|
|
1502
1502
|
}
|
|
1503
1503
|
break;
|
|
1504
1504
|
default:
|
|
1505
|
-
|
|
1505
|
+
M("Unsupporting sharing policy");
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
1508
|
return c;
|
|
1509
1509
|
}
|
|
1510
1510
|
function Wc(a, b) {
|
|
1511
1511
|
if (null === b) {
|
|
1512
|
-
return this.
|
|
1512
|
+
return this.Na && M(`null is not a valid ${this.name}`), 0;
|
|
1513
1513
|
}
|
|
1514
|
-
b.g ||
|
|
1515
|
-
b.g.o ||
|
|
1516
|
-
b.g.u.
|
|
1514
|
+
b.g || M(`Cannot pass "${Uc(b)}" as a ${this.name}`);
|
|
1515
|
+
b.g.o || M(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1516
|
+
b.g.u.va && M(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1517
1517
|
return Sc(b.g.o, b.g.u.i, this.i);
|
|
1518
1518
|
}
|
|
1519
1519
|
function Xc(a, b, c, d) {
|
|
1520
1520
|
this.name = a;
|
|
1521
1521
|
this.i = b;
|
|
1522
|
-
this.
|
|
1523
|
-
this.
|
|
1524
|
-
this.
|
|
1525
|
-
this.
|
|
1522
|
+
this.Na = c;
|
|
1523
|
+
this.va = d;
|
|
1524
|
+
this.wa = !1;
|
|
1525
|
+
this.U = this.cc = this.Pa = this.nb = this.ic = this.bc = void 0;
|
|
1526
1526
|
void 0 !== b.A ? this.toWireType = Vc : (this.toWireType = d ? Tc : Wc, this.J = null);
|
|
1527
1527
|
}
|
|
1528
1528
|
function Yc(a, b, c) {
|
|
@@ -1531,7 +1531,7 @@ function Yc(a, b, c) {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
var Zc = [], Q = a => {
|
|
1533
1533
|
var b = Zc[a];
|
|
1534
|
-
b || (a >= Zc.length && (Zc.length = a + 1), Zc[a] = b =
|
|
1534
|
+
b || (a >= Zc.length && (Zc.length = a + 1), Zc[a] = b = Ca.get(a));
|
|
1535
1535
|
return b;
|
|
1536
1536
|
}, $c = (a, b) => {
|
|
1537
1537
|
var c = [];
|
|
@@ -1548,9 +1548,9 @@ var Zc = [], Q = a => {
|
|
|
1548
1548
|
};
|
|
1549
1549
|
};
|
|
1550
1550
|
function R(a, b) {
|
|
1551
|
-
a =
|
|
1551
|
+
a = O(a);
|
|
1552
1552
|
var c = a.includes("j") ? $c(a, b) : Q(b);
|
|
1553
|
-
"function" != typeof c &&
|
|
1553
|
+
"function" != typeof c && M(`unknown function pointer with signature ${a}: ${b}`);
|
|
1554
1554
|
return c;
|
|
1555
1555
|
}
|
|
1556
1556
|
var ad = void 0;
|
|
@@ -1564,7 +1564,7 @@ function bd(a, b) {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
function cd(a, b, c, d, e) {
|
|
1566
1566
|
var f = b.length;
|
|
1567
|
-
2 > f &&
|
|
1567
|
+
2 > f && M("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1568
1568
|
var g = null !== b[1] && null !== c, k = !1;
|
|
1569
1569
|
for (c = 1; c < b.length; ++c) {
|
|
1570
1570
|
if (null !== b[c] && void 0 === b[c].J) {
|
|
@@ -1572,9 +1572,9 @@ function cd(a, b, c, d, e) {
|
|
|
1572
1572
|
break;
|
|
1573
1573
|
}
|
|
1574
1574
|
}
|
|
1575
|
-
var q = "void" !== b[0].name, n = f - 2,
|
|
1575
|
+
var q = "void" !== b[0].name, n = f - 2, t = Array(n), v = [], y = [];
|
|
1576
1576
|
return function() {
|
|
1577
|
-
arguments.length !== n &&
|
|
1577
|
+
arguments.length !== n && M(`function ${a} called with ${arguments.length} arguments, expected ${n} args!`);
|
|
1578
1578
|
y.length = 0;
|
|
1579
1579
|
v.length = g ? 2 : 1;
|
|
1580
1580
|
v[0] = e;
|
|
@@ -1583,14 +1583,14 @@ function cd(a, b, c, d, e) {
|
|
|
1583
1583
|
v[1] = l;
|
|
1584
1584
|
}
|
|
1585
1585
|
for (var r = 0; r < n; ++r) {
|
|
1586
|
-
|
|
1586
|
+
t[r] = b[r + 2].toWireType(y, arguments[r]), v.push(t[r]);
|
|
1587
1587
|
}
|
|
1588
1588
|
r = d.apply(null, v);
|
|
1589
1589
|
if (k) {
|
|
1590
1590
|
Gc(y);
|
|
1591
1591
|
} else {
|
|
1592
1592
|
for (var x = g ? 1 : 2; x < b.length; x++) {
|
|
1593
|
-
var z = 1 === x ? l :
|
|
1593
|
+
var z = 1 === x ? l : t[x - 2];
|
|
1594
1594
|
null !== b[x].J && b[x].J(z);
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
@@ -1600,32 +1600,32 @@ function cd(a, b, c, d, e) {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
function dd(a, b) {
|
|
1602
1602
|
for (var c = [], d = 0; d < a; d++) {
|
|
1603
|
-
c.push(
|
|
1603
|
+
c.push(D[b + 4 * d >> 2]);
|
|
1604
1604
|
}
|
|
1605
1605
|
return c;
|
|
1606
1606
|
}
|
|
1607
1607
|
function ed(a, b, c) {
|
|
1608
|
-
a instanceof Object ||
|
|
1609
|
-
a instanceof b.i.constructor ||
|
|
1610
|
-
a.g.o ||
|
|
1608
|
+
a instanceof Object || M(`${c} with invalid "this": ${a}`);
|
|
1609
|
+
a instanceof b.i.constructor || M(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1610
|
+
a.g.o || M(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1611
1611
|
return Sc(a.g.o, a.g.u.i, b.i);
|
|
1612
1612
|
}
|
|
1613
1613
|
function fd(a) {
|
|
1614
|
-
a >=
|
|
1614
|
+
a >= L.h && 0 === --L.get(a).pb && L.Sb(a);
|
|
1615
1615
|
}
|
|
1616
1616
|
function gd(a, b, c) {
|
|
1617
1617
|
switch(b) {
|
|
1618
1618
|
case 0:
|
|
1619
1619
|
return function(d) {
|
|
1620
|
-
return this.fromWireType((c ?
|
|
1620
|
+
return this.fromWireType((c ? u : w)[d]);
|
|
1621
1621
|
};
|
|
1622
1622
|
case 1:
|
|
1623
1623
|
return function(d) {
|
|
1624
|
-
return this.fromWireType((c ?
|
|
1624
|
+
return this.fromWireType((c ? A : za)[d >> 1]);
|
|
1625
1625
|
};
|
|
1626
1626
|
case 2:
|
|
1627
1627
|
return function(d) {
|
|
1628
|
-
return this.fromWireType((c ?
|
|
1628
|
+
return this.fromWireType((c ? B : D)[d >> 2]);
|
|
1629
1629
|
};
|
|
1630
1630
|
default:
|
|
1631
1631
|
throw new TypeError("Unknown integer type: " + a);
|
|
@@ -1642,11 +1642,11 @@ function hd(a, b) {
|
|
|
1642
1642
|
switch(b) {
|
|
1643
1643
|
case 2:
|
|
1644
1644
|
return function(c) {
|
|
1645
|
-
return this.fromWireType(
|
|
1645
|
+
return this.fromWireType(E[c >> 2]);
|
|
1646
1646
|
};
|
|
1647
1647
|
case 3:
|
|
1648
1648
|
return function(c) {
|
|
1649
|
-
return this.fromWireType(
|
|
1649
|
+
return this.fromWireType(Aa[c >> 3]);
|
|
1650
1650
|
};
|
|
1651
1651
|
default:
|
|
1652
1652
|
throw new TypeError("Unknown float type: " + a);
|
|
@@ -1656,21 +1656,21 @@ function jd(a, b, c) {
|
|
|
1656
1656
|
switch(b) {
|
|
1657
1657
|
case 0:
|
|
1658
1658
|
return c ? function(d) {
|
|
1659
|
-
return
|
|
1659
|
+
return u[d];
|
|
1660
1660
|
} : function(d) {
|
|
1661
1661
|
return w[d];
|
|
1662
1662
|
};
|
|
1663
1663
|
case 1:
|
|
1664
1664
|
return c ? function(d) {
|
|
1665
|
-
return
|
|
1665
|
+
return A[d >> 1];
|
|
1666
1666
|
} : function(d) {
|
|
1667
|
-
return
|
|
1667
|
+
return za[d >> 1];
|
|
1668
1668
|
};
|
|
1669
1669
|
case 2:
|
|
1670
1670
|
return c ? function(d) {
|
|
1671
|
-
return A[d >> 2];
|
|
1672
|
-
} : function(d) {
|
|
1673
1671
|
return B[d >> 2];
|
|
1672
|
+
} : function(d) {
|
|
1673
|
+
return D[d >> 2];
|
|
1674
1674
|
};
|
|
1675
1675
|
default:
|
|
1676
1676
|
throw new TypeError("Unknown integer type: " + a);
|
|
@@ -1678,7 +1678,7 @@ function jd(a, b, c) {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, ld = (a, b) => {
|
|
1680
1680
|
var c = a >> 1;
|
|
1681
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
1681
|
+
for (var d = c + b / 2; !(c >= d) && za[c];) {
|
|
1682
1682
|
++c;
|
|
1683
1683
|
}
|
|
1684
1684
|
c <<= 1;
|
|
@@ -1687,7 +1687,7 @@ var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1687
1687
|
}
|
|
1688
1688
|
c = "";
|
|
1689
1689
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
1690
|
-
var e =
|
|
1690
|
+
var e = A[a + 2 * d >> 1];
|
|
1691
1691
|
if (0 == e) {
|
|
1692
1692
|
break;
|
|
1693
1693
|
}
|
|
@@ -1703,13 +1703,13 @@ var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1703
1703
|
var d = b;
|
|
1704
1704
|
c = c < 2 * a.length ? c / 2 : a.length;
|
|
1705
1705
|
for (var e = 0; e < c; ++e) {
|
|
1706
|
-
|
|
1706
|
+
A[b >> 1] = a.charCodeAt(e), b += 2;
|
|
1707
1707
|
}
|
|
1708
|
-
|
|
1708
|
+
A[b >> 1] = 0;
|
|
1709
1709
|
return b - d;
|
|
1710
1710
|
}, nd = a => 2 * a.length, od = (a, b) => {
|
|
1711
1711
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
1712
|
-
var e =
|
|
1712
|
+
var e = B[a + 4 * c >> 2];
|
|
1713
1713
|
if (0 == e) {
|
|
1714
1714
|
break;
|
|
1715
1715
|
}
|
|
@@ -1730,13 +1730,13 @@ var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1730
1730
|
var g = a.charCodeAt(++e);
|
|
1731
1731
|
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
1732
1732
|
}
|
|
1733
|
-
|
|
1733
|
+
B[b >> 2] = f;
|
|
1734
1734
|
b += 4;
|
|
1735
1735
|
if (b + 4 > c) {
|
|
1736
1736
|
break;
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
|
-
|
|
1739
|
+
B[b >> 2] = 0;
|
|
1740
1740
|
return b - d;
|
|
1741
1741
|
}, qd = a => {
|
|
1742
1742
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
@@ -1748,7 +1748,7 @@ var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1748
1748
|
}, rd = {};
|
|
1749
1749
|
function sd(a) {
|
|
1750
1750
|
var b = rd[a];
|
|
1751
|
-
return void 0 === b ?
|
|
1751
|
+
return void 0 === b ? O(a) : b;
|
|
1752
1752
|
}
|
|
1753
1753
|
var td = [];
|
|
1754
1754
|
function ud(a) {
|
|
@@ -1758,7 +1758,7 @@ function ud(a) {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
function vd(a, b) {
|
|
1760
1760
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
1761
|
-
c[d] = uc(
|
|
1761
|
+
c[d] = uc(D[b + 4 * d >> 2], "parameter " + d);
|
|
1762
1762
|
}
|
|
1763
1763
|
return c;
|
|
1764
1764
|
}
|
|
@@ -1791,36 +1791,36 @@ function Ad(a) {
|
|
|
1791
1791
|
b.drawBuffersWEBGL(c, d);
|
|
1792
1792
|
});
|
|
1793
1793
|
}
|
|
1794
|
-
var Bd = 1, Cd = [], Dd = [], Ed = [], Fd = [], Gd = [], Hd = [], Id = [],
|
|
1794
|
+
var Bd = 1, Cd = [], Dd = [], Ed = [], Fd = [], Gd = [], Hd = [], Id = [], ja = [], Jd = [], Kd = [], Ld = {}, Md = {}, Nd = 4;
|
|
1795
1795
|
function S(a) {
|
|
1796
1796
|
Od || (Od = a);
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function ia(a) {
|
|
1799
1799
|
for (var b = Bd++, c = a.length; c < b; c++) {
|
|
1800
1800
|
a[c] = null;
|
|
1801
1801
|
}
|
|
1802
1802
|
return b;
|
|
1803
1803
|
}
|
|
1804
1804
|
function la(a) {
|
|
1805
|
-
T =
|
|
1806
|
-
m.
|
|
1805
|
+
T = ja[a];
|
|
1806
|
+
m.yc = U = T && T.Ta;
|
|
1807
1807
|
return !(a && !U);
|
|
1808
1808
|
}
|
|
1809
1809
|
function ka(a) {
|
|
1810
1810
|
a || (a = T);
|
|
1811
|
-
if (!a
|
|
1812
|
-
a
|
|
1813
|
-
var b = a.
|
|
1811
|
+
if (!a.Ub) {
|
|
1812
|
+
a.Ub = !0;
|
|
1813
|
+
var b = a.Ta;
|
|
1814
1814
|
yd(b);
|
|
1815
1815
|
zd(b);
|
|
1816
1816
|
Ad(b);
|
|
1817
|
-
b.
|
|
1818
|
-
b.
|
|
1819
|
-
2 <= a.version && (b
|
|
1820
|
-
if (2 > a.version || !b
|
|
1821
|
-
b
|
|
1817
|
+
b.Ya = b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1818
|
+
b.gb = b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1819
|
+
2 <= a.version && (b.Za = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
1820
|
+
if (2 > a.version || !b.Za) {
|
|
1821
|
+
b.Za = b.getExtension("EXT_disjoint_timer_query");
|
|
1822
1822
|
}
|
|
1823
|
-
b.
|
|
1823
|
+
b.Fc = b.getExtension("WEBGL_multi_draw");
|
|
1824
1824
|
(b.getSupportedExtensions() || []).forEach(function(c) {
|
|
1825
1825
|
c.includes("lose_context") || c.includes("debug") || b.getExtension(c);
|
|
1826
1826
|
});
|
|
@@ -1835,7 +1835,7 @@ function Qd(a) {
|
|
|
1835
1835
|
}
|
|
1836
1836
|
function Rd(a, b) {
|
|
1837
1837
|
for (var c = 0; c < a; c++) {
|
|
1838
|
-
var d =
|
|
1838
|
+
var d = B[b + 4 * c >> 2];
|
|
1839
1839
|
U.deleteVertexArray(Id[d]);
|
|
1840
1840
|
Id[d] = null;
|
|
1841
1841
|
}
|
|
@@ -1846,9 +1846,9 @@ function Td(a, b, c, d) {
|
|
|
1846
1846
|
}
|
|
1847
1847
|
function Ud(a, b, c, d) {
|
|
1848
1848
|
for (var e = 0; e < a; e++) {
|
|
1849
|
-
var f = U[c](), g = f &&
|
|
1849
|
+
var f = U[c](), g = f && ia(d);
|
|
1850
1850
|
f ? (f.name = g, d[g] = f) : S(1282);
|
|
1851
|
-
|
|
1851
|
+
B[b + 4 * e >> 2] = g;
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
1854
|
function Vd(a, b) {
|
|
@@ -1928,7 +1928,7 @@ function Wd(a, b) {
|
|
|
1928
1928
|
} else {
|
|
1929
1929
|
if (d instanceof Float32Array || d instanceof Uint32Array || d instanceof Int32Array || d instanceof Array) {
|
|
1930
1930
|
for (a = 0; a < d.length; ++a) {
|
|
1931
|
-
|
|
1931
|
+
B[b + 4 * a >> 2] = d[a];
|
|
1932
1932
|
}
|
|
1933
1933
|
return;
|
|
1934
1934
|
}
|
|
@@ -1947,7 +1947,7 @@ function Wd(a, b) {
|
|
|
1947
1947
|
return;
|
|
1948
1948
|
}
|
|
1949
1949
|
}
|
|
1950
|
-
|
|
1950
|
+
B[b >> 2] = c;
|
|
1951
1951
|
} else {
|
|
1952
1952
|
S(1281);
|
|
1953
1953
|
}
|
|
@@ -1965,7 +1965,7 @@ function $d(a) {
|
|
|
1965
1965
|
}
|
|
1966
1966
|
function ae(a) {
|
|
1967
1967
|
a -= 5120;
|
|
1968
|
-
return 0 == a ?
|
|
1968
|
+
return 0 == a ? u : 1 == a ? w : 2 == a ? A : 4 == a ? B : 6 == a ? E : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? D : za;
|
|
1969
1969
|
}
|
|
1970
1970
|
function be(a, b, c, d, e) {
|
|
1971
1971
|
a = ae(a);
|
|
@@ -1973,10 +1973,10 @@ function be(a, b, c, d, e) {
|
|
|
1973
1973
|
return a.subarray(e >> f, e + d * (c * ({5:3, 6:4, 8:2, 29502:3, 29504:4, 26917:2, 26918:2, 29846:3, 29847:4}[b - 6402] || 1) * (1 << f) + g - 1 & -g) >> f);
|
|
1974
1974
|
}
|
|
1975
1975
|
function V(a) {
|
|
1976
|
-
var b = U.
|
|
1976
|
+
var b = U.Gb;
|
|
1977
1977
|
if (b) {
|
|
1978
|
-
var c = b.
|
|
1979
|
-
"number" == typeof c && (b.
|
|
1978
|
+
var c = b.ma[a];
|
|
1979
|
+
"number" == typeof c && (b.ma[a] = c = U.getUniformLocation(b, b.tb[a] + (0 < c ? "[" + c + "]" : "")));
|
|
1980
1980
|
return c;
|
|
1981
1981
|
}
|
|
1982
1982
|
S(1282);
|
|
@@ -2005,8 +2005,8 @@ var ce = [], de = [], ee = {}, ge = () => {
|
|
|
2005
2005
|
return e(l, r, "0");
|
|
2006
2006
|
}
|
|
2007
2007
|
function g(l, r) {
|
|
2008
|
-
function x(
|
|
2009
|
-
return 0 >
|
|
2008
|
+
function x(G) {
|
|
2009
|
+
return 0 > G ? -1 : 0 < G ? 1 : 0;
|
|
2010
2010
|
}
|
|
2011
2011
|
var z;
|
|
2012
2012
|
0 === (z = x(l.getFullYear() - r.getFullYear())) && 0 === (z = x(l.getMonth() - r.getMonth())) && (z = x(l.getDate() - r.getDate()));
|
|
@@ -2046,62 +2046,62 @@ var ce = [], de = [], ee = {}, ge = () => {
|
|
|
2046
2046
|
x = k(x);
|
|
2047
2047
|
return 0 >= g(r, l) ? 0 >= g(x, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
|
|
2048
2048
|
}
|
|
2049
|
-
var n =
|
|
2050
|
-
d = {
|
|
2051
|
-
c = c ?
|
|
2049
|
+
var n = B[d + 40 >> 2];
|
|
2050
|
+
d = {lc:B[d >> 2], kc:B[d + 4 >> 2], Ha:B[d + 8 >> 2], Ra:B[d + 12 >> 2], Ia:B[d + 16 >> 2], ba:B[d + 20 >> 2], P:B[d + 24 >> 2], aa:B[d + 28 >> 2], Jc:B[d + 32 >> 2], jc:B[d + 36 >> 2], mc:n ? n ? F(w, n) : "" : ""};
|
|
2051
|
+
c = c ? F(w, c) : "";
|
|
2052
2052
|
n = {"%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",};
|
|
2053
|
-
for (var
|
|
2054
|
-
c = c.replace(new RegExp(
|
|
2053
|
+
for (var t in n) {
|
|
2054
|
+
c = c.replace(new RegExp(t, "g"), n[t]);
|
|
2055
2055
|
}
|
|
2056
2056
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), y = "January February March April May June July August September October November December".split(" ");
|
|
2057
|
-
n = {"%a":l => v[l.
|
|
2057
|
+
n = {"%a":l => v[l.P].substring(0, 3), "%A":l => v[l.P], "%b":l => y[l.Ia].substring(0, 3), "%B":l => y[l.Ia], "%C":l => f((l.ba + 1900) / 100 | 0, 2), "%d":l => f(l.Ra, 2), "%e":l => e(l.Ra, 2, " "), "%g":l => q(l).toString().substring(2), "%G":l => q(l), "%H":l => f(l.Ha, 2), "%I":l => {
|
|
2058
2058
|
l = l.Ha;
|
|
2059
2059
|
0 == l ? l = 12 : 12 < l && (l -= 12);
|
|
2060
2060
|
return f(l, 2);
|
|
2061
2061
|
}, "%j":l => {
|
|
2062
2062
|
for (var r = 0, x = 0; x <= l.Ia - 1; r += (he(l.ba + 1900) ? ie : je)[x++]) {
|
|
2063
2063
|
}
|
|
2064
|
-
return f(l.
|
|
2065
|
-
}, "%m":l => f(l.Ia + 1, 2), "%M":l => f(l.
|
|
2066
|
-
var r = Math.floor((l.aa + 7 - (l.
|
|
2067
|
-
2 >= (l.
|
|
2064
|
+
return f(l.Ra + r, 3);
|
|
2065
|
+
}, "%m":l => f(l.Ia + 1, 2), "%M":l => f(l.kc, 2), "%n":() => "\n", "%p":l => 0 <= l.Ha && 12 > l.Ha ? "AM" : "PM", "%S":l => f(l.lc, 2), "%t":() => "\t", "%u":l => l.P || 7, "%U":l => f(Math.floor((l.aa + 7 - l.P) / 7), 2), "%V":l => {
|
|
2066
|
+
var r = Math.floor((l.aa + 7 - (l.P + 6) % 7) / 7);
|
|
2067
|
+
2 >= (l.P + 371 - l.aa - 2) % 7 && r++;
|
|
2068
2068
|
if (r) {
|
|
2069
|
-
53 == r && (x = (l.
|
|
2069
|
+
53 == r && (x = (l.P + 371 - l.aa) % 7, 4 == x || 3 == x && he(l.ba) || (r = 1));
|
|
2070
2070
|
} else {
|
|
2071
2071
|
r = 52;
|
|
2072
|
-
var x = (l.
|
|
2072
|
+
var x = (l.P + 7 - l.aa - 1) % 7;
|
|
2073
2073
|
(4 == x || 5 == x && he(l.ba % 400 - 1)) && r++;
|
|
2074
2074
|
}
|
|
2075
2075
|
return f(r, 2);
|
|
2076
|
-
}, "%w":l => l.
|
|
2077
|
-
l = l.
|
|
2076
|
+
}, "%w":l => l.P, "%W":l => f(Math.floor((l.aa + 7 - (l.P + 6) % 7) / 7), 2), "%y":l => (l.ba + 1900).toString().substring(2), "%Y":l => l.ba + 1900, "%z":l => {
|
|
2077
|
+
l = l.jc;
|
|
2078
2078
|
var r = 0 <= l;
|
|
2079
2079
|
l = Math.abs(l) / 60;
|
|
2080
2080
|
return (r ? "+" : "-") + String("0000" + (l / 60 * 100 + l % 60)).slice(-4);
|
|
2081
|
-
}, "%Z":l => l.
|
|
2081
|
+
}, "%Z":l => l.mc, "%%":() => "%"};
|
|
2082
2082
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2083
|
-
for (
|
|
2084
|
-
c.includes(
|
|
2083
|
+
for (t in n) {
|
|
2084
|
+
c.includes(t) && (c = c.replace(new RegExp(t, "g"), n[t](d)));
|
|
2085
2085
|
}
|
|
2086
2086
|
c = c.replace(/\0\0/g, "%");
|
|
2087
|
-
|
|
2088
|
-
if (
|
|
2087
|
+
t = ib(c, !1);
|
|
2088
|
+
if (t.length > b) {
|
|
2089
2089
|
return 0;
|
|
2090
2090
|
}
|
|
2091
|
-
|
|
2092
|
-
return
|
|
2091
|
+
u.set(t, a);
|
|
2092
|
+
return t.length - 1;
|
|
2093
2093
|
};
|
|
2094
2094
|
function Ib(a, b, c, d) {
|
|
2095
2095
|
a || (a = this);
|
|
2096
2096
|
this.parent = a;
|
|
2097
|
-
this.
|
|
2098
|
-
this.
|
|
2097
|
+
this.S = a.S;
|
|
2098
|
+
this.Ba = null;
|
|
2099
2099
|
this.id = zb++;
|
|
2100
2100
|
this.name = b;
|
|
2101
2101
|
this.mode = c;
|
|
2102
|
-
this.
|
|
2102
|
+
this.l = {};
|
|
2103
2103
|
this.m = {};
|
|
2104
|
-
this.
|
|
2104
|
+
this.Da = d;
|
|
2105
2105
|
}
|
|
2106
2106
|
Object.defineProperties(Ib.prototype, {read:{get:function() {
|
|
2107
2107
|
return 365 === (this.mode & 365);
|
|
@@ -2127,7 +2127,7 @@ Qb("/home/web_user", 16895, 0);
|
|
|
2127
2127
|
Rb("/dev/tty", 1280);
|
|
2128
2128
|
Rb("/dev/tty1", 1536);
|
|
2129
2129
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2130
|
-
0 === b && (b =
|
|
2130
|
+
0 === b && (b = cb(a).byteLength);
|
|
2131
2131
|
return a[--b];
|
|
2132
2132
|
};
|
|
2133
2133
|
Zb("random", c);
|
|
@@ -2139,11 +2139,11 @@ Qb("/home/web_user", 16895, 0);
|
|
|
2139
2139
|
Qb("/proc", 16895, 0);
|
|
2140
2140
|
var a = Qb("/proc/self", 16895, 0);
|
|
2141
2141
|
Qb("/proc/self/fd", 16895, 0);
|
|
2142
|
-
Pb({
|
|
2142
|
+
Pb({S:() => {
|
|
2143
2143
|
var b = rb(a, "fd", 16895, 73);
|
|
2144
|
-
b.
|
|
2144
|
+
b.l = {ka:(c, d) => {
|
|
2145
2145
|
var e = Mb(+d);
|
|
2146
|
-
c = {parent:null,
|
|
2146
|
+
c = {parent:null, S:{ib:"fake"}, l:{la:() => e.path},};
|
|
2147
2147
|
return c.parent = c;
|
|
2148
2148
|
}};
|
|
2149
2149
|
return b;
|
|
@@ -2153,11 +2153,11 @@ Object.assign(ec.prototype, {get(a) {
|
|
|
2153
2153
|
return this.L[a];
|
|
2154
2154
|
}, has(a) {
|
|
2155
2155
|
return void 0 !== this.L[a];
|
|
2156
|
-
},
|
|
2156
|
+
}, ra(a) {
|
|
2157
2157
|
var b = this.cb.pop() || this.L.length;
|
|
2158
2158
|
this.L[b] = a;
|
|
2159
2159
|
return b;
|
|
2160
|
-
},
|
|
2160
|
+
}, Sb(a) {
|
|
2161
2161
|
this.L[a] = void 0;
|
|
2162
2162
|
this.cb.push(a);
|
|
2163
2163
|
}});
|
|
@@ -2167,11 +2167,11 @@ fc = m.BindingError = class extends Error {
|
|
|
2167
2167
|
this.name = "BindingError";
|
|
2168
2168
|
}
|
|
2169
2169
|
};
|
|
2170
|
-
|
|
2171
|
-
|
|
2170
|
+
L.L.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2171
|
+
L.h = L.L.length;
|
|
2172
2172
|
m.count_emval_handles = function() {
|
|
2173
|
-
for (var a = 0, b =
|
|
2174
|
-
void 0 !==
|
|
2173
|
+
for (var a = 0, b = L.h; b < L.L.length; ++b) {
|
|
2174
|
+
void 0 !== L.L[b] && ++a;
|
|
2175
2175
|
}
|
|
2176
2176
|
return a;
|
|
2177
2177
|
};
|
|
@@ -2207,10 +2207,10 @@ Oc.prototype.isAliasOf = function(a) {
|
|
|
2207
2207
|
}
|
|
2208
2208
|
var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
|
|
2209
2209
|
for (a = a.g.o; b.A;) {
|
|
2210
|
-
c = b.
|
|
2210
|
+
c = b.na(c), b = b.A;
|
|
2211
2211
|
}
|
|
2212
2212
|
for (; d.A;) {
|
|
2213
|
-
a = d.
|
|
2213
|
+
a = d.na(a), d = d.A;
|
|
2214
2214
|
}
|
|
2215
2215
|
return b === d && c === a;
|
|
2216
2216
|
};
|
|
@@ -2227,7 +2227,7 @@ Oc.prototype.clone = function() {
|
|
|
2227
2227
|
};
|
|
2228
2228
|
Oc.prototype["delete"] = function() {
|
|
2229
2229
|
this.g.o || Nc(this);
|
|
2230
|
-
this.g.ga && !this.g.ia &&
|
|
2230
|
+
this.g.ga && !this.g.ia && M("Object already scheduled for deletion");
|
|
2231
2231
|
vc(this);
|
|
2232
2232
|
xc(this.g);
|
|
2233
2233
|
this.g.ia || (this.g.G = void 0, this.g.o = void 0);
|
|
@@ -2237,18 +2237,18 @@ Oc.prototype.isDeleted = function() {
|
|
|
2237
2237
|
};
|
|
2238
2238
|
Oc.prototype.deleteLater = function() {
|
|
2239
2239
|
this.g.o || Nc(this);
|
|
2240
|
-
this.g.ga && !this.g.ia &&
|
|
2240
|
+
this.g.ga && !this.g.ia && M("Object already scheduled for deletion");
|
|
2241
2241
|
lc.push(this);
|
|
2242
2242
|
1 === lc.length && nc && nc(mc);
|
|
2243
2243
|
this.g.ga = !0;
|
|
2244
2244
|
return this;
|
|
2245
2245
|
};
|
|
2246
|
-
Xc.prototype.
|
|
2247
|
-
this.
|
|
2246
|
+
Xc.prototype.Ob = function(a) {
|
|
2247
|
+
this.nb && (a = this.nb(a));
|
|
2248
2248
|
return a;
|
|
2249
2249
|
};
|
|
2250
|
-
Xc.prototype.
|
|
2251
|
-
this.
|
|
2250
|
+
Xc.prototype.Xa = function(a) {
|
|
2251
|
+
this.U && this.U(a);
|
|
2252
2252
|
};
|
|
2253
2253
|
Xc.prototype.argPackAdvance = 8;
|
|
2254
2254
|
Xc.prototype.readValueFromPointer = Hc;
|
|
@@ -2259,11 +2259,11 @@ Xc.prototype.deleteObject = function(a) {
|
|
|
2259
2259
|
};
|
|
2260
2260
|
Xc.prototype.fromWireType = function(a) {
|
|
2261
2261
|
function b() {
|
|
2262
|
-
return this.
|
|
2262
|
+
return this.wa ? Dc(this.i.M, {u:this.bc, o:c, K:this, G:a,}) : Dc(this.i.M, {u:this, o:a,});
|
|
2263
2263
|
}
|
|
2264
|
-
var c = this.
|
|
2264
|
+
var c = this.Ob(a);
|
|
2265
2265
|
if (!c) {
|
|
2266
|
-
return this.
|
|
2266
|
+
return this.Xa(a), null;
|
|
2267
2267
|
}
|
|
2268
2268
|
var d = Ac(this.i, c);
|
|
2269
2269
|
if (void 0 !== d) {
|
|
@@ -2271,17 +2271,17 @@ Xc.prototype.fromWireType = function(a) {
|
|
|
2271
2271
|
return d.g.o = c, d.g.G = a, d.clone();
|
|
2272
2272
|
}
|
|
2273
2273
|
d = d.clone();
|
|
2274
|
-
this.
|
|
2274
|
+
this.Xa(a);
|
|
2275
2275
|
return d;
|
|
2276
2276
|
}
|
|
2277
|
-
d = this.i.
|
|
2277
|
+
d = this.i.Nb(c);
|
|
2278
2278
|
d = zc[d];
|
|
2279
2279
|
if (!d) {
|
|
2280
2280
|
return b.call(this);
|
|
2281
2281
|
}
|
|
2282
|
-
d = this.
|
|
2282
|
+
d = this.va ? d.Fb : d.pointerType;
|
|
2283
2283
|
var e = yc(c, this.i, d.i);
|
|
2284
|
-
return null === e ? b.call(this) : this.
|
|
2284
|
+
return null === e ? b.call(this) : this.wa ? Dc(d.i.M, {u:d, o:e, K:this, G:a,}) : Dc(d.i.M, {u:d, o:e,});
|
|
2285
2285
|
};
|
|
2286
2286
|
ad = m.UnboundTypeError = ic("UnboundTypeError");
|
|
2287
2287
|
for (var U, W = 0; 32 > W; ++W) {
|
|
@@ -2302,7 +2302,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2302
2302
|
switch(b) {
|
|
2303
2303
|
case 0:
|
|
2304
2304
|
var e = bc();
|
|
2305
|
-
return 0 > e ? -28 : Ob(d, e).
|
|
2305
|
+
return 0 > e ? -28 : Ob(d, e).V;
|
|
2306
2306
|
case 1:
|
|
2307
2307
|
case 2:
|
|
2308
2308
|
return 0;
|
|
@@ -2311,7 +2311,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2311
2311
|
case 4:
|
|
2312
2312
|
return e = bc(), d.flags |= e, 0;
|
|
2313
2313
|
case 5:
|
|
2314
|
-
return e = bc(),
|
|
2314
|
+
return e = bc(), A[e + 0 >> 1] = 2, 0;
|
|
2315
2315
|
case 6:
|
|
2316
2316
|
case 7:
|
|
2317
2317
|
return 0;
|
|
@@ -2319,7 +2319,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2319
2319
|
case 8:
|
|
2320
2320
|
return -28;
|
|
2321
2321
|
case 9:
|
|
2322
|
-
return
|
|
2322
|
+
return B[pe() >> 2] = 28, -1;
|
|
2323
2323
|
default:
|
|
2324
2324
|
return -28;
|
|
2325
2325
|
}
|
|
@@ -2327,63 +2327,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2327
2327
|
if ("undefined" == typeof $b || "ErrnoError" !== f.name) {
|
|
2328
2328
|
throw f;
|
|
2329
2329
|
}
|
|
2330
|
-
return -f.
|
|
2331
|
-
}
|
|
2332
|
-
}, __syscall_fstat64:function(a, b) {
|
|
2333
|
-
try {
|
|
2334
|
-
a: {
|
|
2335
|
-
var c = Mb(a).path;
|
|
2336
|
-
try {
|
|
2337
|
-
var d = Db(c, {Ma:!0}).node;
|
|
2338
|
-
if (!d) {
|
|
2339
|
-
throw new G(44);
|
|
2340
|
-
}
|
|
2341
|
-
if (!d.j.M) {
|
|
2342
|
-
throw new G(63);
|
|
2343
|
-
}
|
|
2344
|
-
var e = d.j.M(d);
|
|
2345
|
-
} catch (n) {
|
|
2346
|
-
if (n && n.node && Ya(c) !== Ya(Eb(n.node))) {
|
|
2347
|
-
var f = -54;
|
|
2348
|
-
break a;
|
|
2349
|
-
}
|
|
2350
|
-
throw n;
|
|
2351
|
-
}
|
|
2352
|
-
A[b >> 2] = e.Mb;
|
|
2353
|
-
A[b + 4 >> 2] = e.mode;
|
|
2354
|
-
B[b + 8 >> 2] = e.jc;
|
|
2355
|
-
A[b + 12 >> 2] = e.uid;
|
|
2356
|
-
A[b + 16 >> 2] = e.Xb;
|
|
2357
|
-
A[b + 20 >> 2] = e.la;
|
|
2358
|
-
F = [e.size >>> 0, (E = e.size, 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2359
|
-
A[b + 24 >> 2] = F[0];
|
|
2360
|
-
A[b + 28 >> 2] = F[1];
|
|
2361
|
-
A[b + 32 >> 2] = 4096;
|
|
2362
|
-
A[b + 36 >> 2] = e.Hb;
|
|
2363
|
-
var g = e.Fb.getTime(), k = e.hc.getTime(), q = e.Jb.getTime();
|
|
2364
|
-
F = [Math.floor(g / 1000) >>> 0, (E = Math.floor(g / 1000), 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2365
|
-
A[b + 40 >> 2] = F[0];
|
|
2366
|
-
A[b + 44 >> 2] = F[1];
|
|
2367
|
-
B[b + 48 >> 2] = g % 1000 * 1000;
|
|
2368
|
-
F = [Math.floor(k / 1000) >>> 0, (E = Math.floor(k / 1000), 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2369
|
-
A[b + 56 >> 2] = F[0];
|
|
2370
|
-
A[b + 60 >> 2] = F[1];
|
|
2371
|
-
B[b + 64 >> 2] = k % 1000 * 1000;
|
|
2372
|
-
F = [Math.floor(q / 1000) >>> 0, (E = Math.floor(q / 1000), 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2373
|
-
A[b + 72 >> 2] = F[0];
|
|
2374
|
-
A[b + 76 >> 2] = F[1];
|
|
2375
|
-
B[b + 80 >> 2] = q % 1000 * 1000;
|
|
2376
|
-
F = [e.fb >>> 0, (E = e.fb, 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2377
|
-
A[b + 88 >> 2] = F[0];
|
|
2378
|
-
A[b + 92 >> 2] = F[1];
|
|
2379
|
-
f = 0;
|
|
2380
|
-
}
|
|
2381
|
-
return f;
|
|
2382
|
-
} catch (n) {
|
|
2383
|
-
if ("undefined" == typeof $b || "ErrnoError" !== n.name) {
|
|
2384
|
-
throw n;
|
|
2385
|
-
}
|
|
2386
|
-
return -n.W;
|
|
2330
|
+
return -f.Z;
|
|
2387
2331
|
}
|
|
2388
2332
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2389
2333
|
ac = c;
|
|
@@ -2396,15 +2340,15 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2396
2340
|
if (!d.s) {
|
|
2397
2341
|
return -59;
|
|
2398
2342
|
}
|
|
2399
|
-
if (d.s.
|
|
2343
|
+
if (d.s.T.Wb) {
|
|
2400
2344
|
b = [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,];
|
|
2401
2345
|
var e = bc();
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2346
|
+
B[e >> 2] = 25856;
|
|
2347
|
+
B[e + 4 >> 2] = 5;
|
|
2348
|
+
B[e + 8 >> 2] = 191;
|
|
2349
|
+
B[e + 12 >> 2] = 35387;
|
|
2406
2350
|
for (var f = 0; 32 > f; f++) {
|
|
2407
|
-
|
|
2351
|
+
u[e + f + 17 >> 0] = b[f] || 0;
|
|
2408
2352
|
}
|
|
2409
2353
|
}
|
|
2410
2354
|
return 0;
|
|
@@ -2418,9 +2362,9 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2418
2362
|
if (!d.s) {
|
|
2419
2363
|
return -59;
|
|
2420
2364
|
}
|
|
2421
|
-
if (d.s.
|
|
2365
|
+
if (d.s.T.Xb) {
|
|
2422
2366
|
for (e = bc(), b = [], f = 0; 32 > f; f++) {
|
|
2423
|
-
b.push(
|
|
2367
|
+
b.push(u[e + f + 17 >> 0]);
|
|
2424
2368
|
}
|
|
2425
2369
|
}
|
|
2426
2370
|
return 0;
|
|
@@ -2429,20 +2373,20 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2429
2373
|
return -59;
|
|
2430
2374
|
}
|
|
2431
2375
|
e = bc();
|
|
2432
|
-
return
|
|
2376
|
+
return B[e >> 2] = 0;
|
|
2433
2377
|
case 21520:
|
|
2434
2378
|
return d.s ? -28 : -59;
|
|
2435
2379
|
case 21531:
|
|
2436
2380
|
e = bc();
|
|
2437
|
-
if (!d.m.
|
|
2438
|
-
throw new
|
|
2381
|
+
if (!d.m.Vb) {
|
|
2382
|
+
throw new H(59);
|
|
2439
2383
|
}
|
|
2440
|
-
return d.m.
|
|
2384
|
+
return d.m.Vb(d, b, e);
|
|
2441
2385
|
case 21523:
|
|
2442
2386
|
if (!d.s) {
|
|
2443
2387
|
return -59;
|
|
2444
2388
|
}
|
|
2445
|
-
d.s.
|
|
2389
|
+
d.s.T.Yb && (f = [24, 80], e = bc(), A[e >> 1] = f[0], A[e + 2 >> 1] = f[1]);
|
|
2446
2390
|
return 0;
|
|
2447
2391
|
case 21524:
|
|
2448
2392
|
return d.s ? 0 : -59;
|
|
@@ -2455,37 +2399,37 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2455
2399
|
if ("undefined" == typeof $b || "ErrnoError" !== g.name) {
|
|
2456
2400
|
throw g;
|
|
2457
2401
|
}
|
|
2458
|
-
return -g.
|
|
2402
|
+
return -g.Z;
|
|
2459
2403
|
}
|
|
2460
2404
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2461
2405
|
ac = d;
|
|
2462
2406
|
try {
|
|
2463
|
-
b = b ?
|
|
2407
|
+
b = b ? F(w, b) : "";
|
|
2464
2408
|
var e = b;
|
|
2465
2409
|
if ("/" === e.charAt(0)) {
|
|
2466
2410
|
b = e;
|
|
2467
2411
|
} else {
|
|
2468
2412
|
var f = -100 === a ? "/" : Mb(a).path;
|
|
2469
2413
|
if (0 == e.length) {
|
|
2470
|
-
throw new
|
|
2414
|
+
throw new H(44);
|
|
2471
2415
|
}
|
|
2472
|
-
b =
|
|
2416
|
+
b = Za(f + "/" + e);
|
|
2473
2417
|
}
|
|
2474
2418
|
var g = d ? bc() : 0;
|
|
2475
|
-
return Ub(b, c, g).
|
|
2419
|
+
return Ub(b, c, g).V;
|
|
2476
2420
|
} catch (k) {
|
|
2477
2421
|
if ("undefined" == typeof $b || "ErrnoError" !== k.name) {
|
|
2478
2422
|
throw k;
|
|
2479
2423
|
}
|
|
2480
|
-
return -k.
|
|
2424
|
+
return -k.Z;
|
|
2481
2425
|
}
|
|
2482
2426
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2483
|
-
a =
|
|
2427
|
+
a = O(a);
|
|
2484
2428
|
b = uc(b, "wrapper");
|
|
2485
2429
|
c = gc(c);
|
|
2486
|
-
var d = [].slice, e = b.i, f = e.
|
|
2430
|
+
var d = [].slice, e = b.i, f = e.M, g = e.A.M, k = e.A.constructor;
|
|
2487
2431
|
a = dc(a, function() {
|
|
2488
|
-
e.A.
|
|
2432
|
+
e.A.mb.forEach(function(n) {
|
|
2489
2433
|
if (this[n] === g[n]) {
|
|
2490
2434
|
throw new jc(`Pure virtual function ${n} must be implemented in JavaScript`);
|
|
2491
2435
|
}
|
|
@@ -2494,24 +2438,24 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2494
2438
|
this.__construct.apply(this, d.call(arguments));
|
|
2495
2439
|
});
|
|
2496
2440
|
f.__construct = function() {
|
|
2497
|
-
this === f &&
|
|
2441
|
+
this === f && M("Pass correct 'this' to __construct");
|
|
2498
2442
|
var n = k.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2499
2443
|
vc(n);
|
|
2500
|
-
var
|
|
2444
|
+
var t = n.g;
|
|
2501
2445
|
n.notifyOnDestruction();
|
|
2502
|
-
|
|
2503
|
-
Object.defineProperties(this, {g:{value:
|
|
2446
|
+
t.ia = !0;
|
|
2447
|
+
Object.defineProperties(this, {g:{value:t}});
|
|
2504
2448
|
Ec(this);
|
|
2505
|
-
n =
|
|
2449
|
+
n = t.o;
|
|
2506
2450
|
n = pc(e, n);
|
|
2507
|
-
oc.hasOwnProperty(n) ?
|
|
2451
|
+
oc.hasOwnProperty(n) ? M(`Tried to register registered instance: ${n}`) : oc[n] = this;
|
|
2508
2452
|
};
|
|
2509
2453
|
f.__destruct = function() {
|
|
2510
|
-
this === f &&
|
|
2454
|
+
this === f && M("Pass correct 'this' to __destruct");
|
|
2511
2455
|
vc(this);
|
|
2512
2456
|
var n = this.g.o;
|
|
2513
2457
|
n = pc(e, n);
|
|
2514
|
-
oc.hasOwnProperty(n) ? delete oc[n] :
|
|
2458
|
+
oc.hasOwnProperty(n) ? delete oc[n] : M(`Tried to unregister unregistered instance: ${n}`);
|
|
2515
2459
|
};
|
|
2516
2460
|
a.prototype = Object.create(f);
|
|
2517
2461
|
for (var q in c) {
|
|
@@ -2521,33 +2465,33 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2521
2465
|
}, _embind_finalize_value_object:function(a) {
|
|
2522
2466
|
var b = Fc[a];
|
|
2523
2467
|
delete Fc[a];
|
|
2524
|
-
var c = b.
|
|
2468
|
+
var c = b.Pa, d = b.U, e = b.$a, f = e.map(g => g.Rb).concat(e.map(g => g.fc));
|
|
2525
2469
|
P([a], f, g => {
|
|
2526
2470
|
var k = {};
|
|
2527
2471
|
e.forEach((q, n) => {
|
|
2528
|
-
var
|
|
2529
|
-
k[q.
|
|
2472
|
+
var t = g[n], v = q.Pb, y = q.Qb, l = g[n + e.length], r = q.ec, x = q.hc;
|
|
2473
|
+
k[q.Lb] = {read:z => t.fromWireType(v(y, z)), write:(z, G) => {
|
|
2530
2474
|
var C = [];
|
|
2531
|
-
r(x, z, l.toWireType(C,
|
|
2475
|
+
r(x, z, l.toWireType(C, G));
|
|
2532
2476
|
Gc(C);
|
|
2533
2477
|
}};
|
|
2534
2478
|
});
|
|
2535
2479
|
return [{name:b.name, fromWireType:function(q) {
|
|
2536
|
-
var n = {},
|
|
2537
|
-
for (
|
|
2538
|
-
n[
|
|
2480
|
+
var n = {}, t;
|
|
2481
|
+
for (t in k) {
|
|
2482
|
+
n[t] = k[t].read(q);
|
|
2539
2483
|
}
|
|
2540
2484
|
d(q);
|
|
2541
2485
|
return n;
|
|
2542
2486
|
}, toWireType:function(q, n) {
|
|
2543
|
-
for (var
|
|
2544
|
-
if (!(
|
|
2545
|
-
throw new TypeError(`Missing field: "${
|
|
2487
|
+
for (var t in k) {
|
|
2488
|
+
if (!(t in n)) {
|
|
2489
|
+
throw new TypeError(`Missing field: "${t}"`);
|
|
2546
2490
|
}
|
|
2547
2491
|
}
|
|
2548
2492
|
var v = c();
|
|
2549
|
-
for (
|
|
2550
|
-
k[
|
|
2493
|
+
for (t in k) {
|
|
2494
|
+
k[t].write(v, n[t]);
|
|
2551
2495
|
}
|
|
2552
2496
|
null !== q && q.push(d, v);
|
|
2553
2497
|
return v;
|
|
@@ -2556,83 +2500,83 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2556
2500
|
}, _embind_register_bigint:function() {
|
|
2557
2501
|
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2558
2502
|
var f = Lc(c);
|
|
2559
|
-
b =
|
|
2503
|
+
b = O(b);
|
|
2560
2504
|
Kc(a, {name:b, fromWireType:function(g) {
|
|
2561
2505
|
return !!g;
|
|
2562
2506
|
}, toWireType:function(g, k) {
|
|
2563
2507
|
return k ? d : e;
|
|
2564
2508
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2565
2509
|
if (1 === c) {
|
|
2566
|
-
var k =
|
|
2510
|
+
var k = u;
|
|
2567
2511
|
} else if (2 === c) {
|
|
2568
|
-
k = za;
|
|
2569
|
-
} else if (4 === c) {
|
|
2570
2512
|
k = A;
|
|
2513
|
+
} else if (4 === c) {
|
|
2514
|
+
k = B;
|
|
2571
2515
|
} else {
|
|
2572
2516
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2573
2517
|
}
|
|
2574
2518
|
return this.fromWireType(k[g >> f]);
|
|
2575
2519
|
}, J:null,});
|
|
2576
|
-
}, _embind_register_class:function(a, b, c, d, e, f, g, k, q, n,
|
|
2577
|
-
|
|
2520
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, k, q, n, t, v, y) {
|
|
2521
|
+
t = O(t);
|
|
2578
2522
|
f = R(e, f);
|
|
2579
2523
|
k && (k = R(g, k));
|
|
2580
2524
|
n && (n = R(q, n));
|
|
2581
2525
|
y = R(v, y);
|
|
2582
|
-
var l = cc(
|
|
2526
|
+
var l = cc(t);
|
|
2583
2527
|
Qc(l, function() {
|
|
2584
|
-
bd(`Cannot construct ${
|
|
2528
|
+
bd(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2585
2529
|
});
|
|
2586
2530
|
P([a, b, c], d ? [d] : [], function(r) {
|
|
2587
2531
|
r = r[0];
|
|
2588
2532
|
if (d) {
|
|
2589
2533
|
var x = r.i;
|
|
2590
|
-
var z = x.
|
|
2534
|
+
var z = x.M;
|
|
2591
2535
|
} else {
|
|
2592
2536
|
z = Oc.prototype;
|
|
2593
2537
|
}
|
|
2594
2538
|
r = dc(l, function() {
|
|
2595
|
-
if (Object.getPrototypeOf(this) !==
|
|
2596
|
-
throw new fc("Use 'new' to construct " +
|
|
2539
|
+
if (Object.getPrototypeOf(this) !== G) {
|
|
2540
|
+
throw new fc("Use 'new' to construct " + t);
|
|
2597
2541
|
}
|
|
2598
|
-
if (void 0 === C.
|
|
2599
|
-
throw new fc(
|
|
2542
|
+
if (void 0 === C.Y) {
|
|
2543
|
+
throw new fc(t + " has no accessible constructor");
|
|
2600
2544
|
}
|
|
2601
|
-
var
|
|
2602
|
-
if (void 0 ===
|
|
2603
|
-
throw new fc(`Tried to invoke ctor of ${
|
|
2545
|
+
var N = C.Y[arguments.length];
|
|
2546
|
+
if (void 0 === N) {
|
|
2547
|
+
throw new fc(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(C.Y).toString()}) parameters instead!`);
|
|
2604
2548
|
}
|
|
2605
|
-
return
|
|
2549
|
+
return N.apply(this, arguments);
|
|
2606
2550
|
});
|
|
2607
|
-
var
|
|
2608
|
-
r.prototype =
|
|
2609
|
-
var C = new Rc(
|
|
2610
|
-
C.A && (void 0 === C.A.
|
|
2611
|
-
x = new Xc(
|
|
2612
|
-
z = new Xc(
|
|
2613
|
-
var
|
|
2614
|
-
zc[a] = {pointerType:z,
|
|
2551
|
+
var G = Object.create(z, {constructor:{value:r},});
|
|
2552
|
+
r.prototype = G;
|
|
2553
|
+
var C = new Rc(t, r, G, y, x, f, k, n);
|
|
2554
|
+
C.A && (void 0 === C.A.oa && (C.A.oa = []), C.A.oa.push(C));
|
|
2555
|
+
x = new Xc(t, C, !0, !1);
|
|
2556
|
+
z = new Xc(t + "*", C, !1, !1);
|
|
2557
|
+
var J = new Xc(t + " const*", C, !1, !0);
|
|
2558
|
+
zc[a] = {pointerType:z, Fb:J};
|
|
2615
2559
|
Yc(l, r);
|
|
2616
|
-
return [x, z,
|
|
2560
|
+
return [x, z, J];
|
|
2617
2561
|
});
|
|
2618
2562
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2619
2563
|
var k = dd(c, d);
|
|
2620
|
-
b =
|
|
2564
|
+
b = O(b);
|
|
2621
2565
|
f = R(e, f);
|
|
2622
2566
|
P([], [a], function(q) {
|
|
2623
2567
|
function n() {
|
|
2624
|
-
bd(`Cannot call ${
|
|
2568
|
+
bd(`Cannot call ${t} due to unbound types`, k);
|
|
2625
2569
|
}
|
|
2626
2570
|
q = q[0];
|
|
2627
|
-
var
|
|
2571
|
+
var t = `${q.name}.${b}`;
|
|
2628
2572
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2629
2573
|
var v = q.i.constructor;
|
|
2630
|
-
void 0 === v[b] ? (n.ea = c - 1, v[b] = n) : (Pc(v, b,
|
|
2574
|
+
void 0 === v[b] ? (n.ea = c - 1, v[b] = n) : (Pc(v, b, t), v[b].B[c - 1] = n);
|
|
2631
2575
|
P([], k, function(y) {
|
|
2632
|
-
y = cd(
|
|
2576
|
+
y = cd(t, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2633
2577
|
void 0 === v[b].B ? (y.ea = c - 1, v[b] = y) : v[b].B[c - 1] = y;
|
|
2634
|
-
if (q.i.
|
|
2635
|
-
for (const l of q.i.
|
|
2578
|
+
if (q.i.oa) {
|
|
2579
|
+
for (const l of q.i.oa) {
|
|
2636
2580
|
l.constructor.hasOwnProperty(b) || (l.constructor[b] = y);
|
|
2637
2581
|
}
|
|
2638
2582
|
}
|
|
@@ -2641,19 +2585,19 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2641
2585
|
return [];
|
|
2642
2586
|
});
|
|
2643
2587
|
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, k) {
|
|
2644
|
-
b =
|
|
2588
|
+
b = O(b);
|
|
2645
2589
|
f = R(e, f);
|
|
2646
2590
|
P([], [a], function(q) {
|
|
2647
2591
|
q = q[0];
|
|
2648
|
-
var n = `${q.name}.${b}`,
|
|
2592
|
+
var n = `${q.name}.${b}`, t = {get() {
|
|
2649
2593
|
bd(`Cannot access ${n} due to unbound types`, [c]);
|
|
2650
2594
|
}, enumerable:!0, configurable:!0};
|
|
2651
|
-
|
|
2595
|
+
t.set = k ? () => {
|
|
2652
2596
|
bd(`Cannot access ${n} due to unbound types`, [c]);
|
|
2653
2597
|
} : () => {
|
|
2654
|
-
|
|
2598
|
+
M(`${n} is a read-only property`);
|
|
2655
2599
|
};
|
|
2656
|
-
Object.defineProperty(q.i.constructor, b,
|
|
2600
|
+
Object.defineProperty(q.i.constructor, b, t);
|
|
2657
2601
|
P([], [c], function(v) {
|
|
2658
2602
|
v = v[0];
|
|
2659
2603
|
var y = {get() {
|
|
@@ -2675,34 +2619,34 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2675
2619
|
P([], [a], function(k) {
|
|
2676
2620
|
k = k[0];
|
|
2677
2621
|
var q = `constructor ${k.name}`;
|
|
2678
|
-
void 0 === k.i.
|
|
2679
|
-
if (void 0 !== k.i.
|
|
2622
|
+
void 0 === k.i.Y && (k.i.Y = []);
|
|
2623
|
+
if (void 0 !== k.i.Y[b - 1]) {
|
|
2680
2624
|
throw new fc(`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!`);
|
|
2681
2625
|
}
|
|
2682
|
-
k.i.
|
|
2626
|
+
k.i.Y[b - 1] = () => {
|
|
2683
2627
|
bd(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2684
2628
|
};
|
|
2685
2629
|
P([], g, function(n) {
|
|
2686
2630
|
n.splice(1, 0, null);
|
|
2687
|
-
k.i.
|
|
2631
|
+
k.i.Y[b - 1] = cd(q, n, null, e, f);
|
|
2688
2632
|
return [];
|
|
2689
2633
|
});
|
|
2690
2634
|
return [];
|
|
2691
2635
|
});
|
|
2692
2636
|
}, _embind_register_class_function:function(a, b, c, d, e, f, g, k) {
|
|
2693
2637
|
var q = dd(c, d);
|
|
2694
|
-
b =
|
|
2638
|
+
b = O(b);
|
|
2695
2639
|
f = R(e, f);
|
|
2696
2640
|
P([], [a], function(n) {
|
|
2697
|
-
function
|
|
2641
|
+
function t() {
|
|
2698
2642
|
bd(`Cannot call ${v} due to unbound types`, q);
|
|
2699
2643
|
}
|
|
2700
2644
|
n = n[0];
|
|
2701
2645
|
var v = `${n.name}.${b}`;
|
|
2702
2646
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2703
|
-
k && n.i.
|
|
2704
|
-
var y = n.i.
|
|
2705
|
-
void 0 === l || void 0 === l.B && l.className !== n.name && l.ea === c - 2 ? (
|
|
2647
|
+
k && n.i.mb.push(b);
|
|
2648
|
+
var y = n.i.M, l = y[b];
|
|
2649
|
+
void 0 === l || void 0 === l.B && l.className !== n.name && l.ea === c - 2 ? (t.ea = c - 2, t.className = n.name, y[b] = t) : (Pc(y, b, v), y[b].B[c - 2] = t);
|
|
2706
2650
|
P([], q, function(r) {
|
|
2707
2651
|
r = cd(v, r, n, f, g);
|
|
2708
2652
|
void 0 === y[b].B ? (r.ea = c - 2, y[b] = r) : y[b].B[c - 2] = r;
|
|
@@ -2711,40 +2655,40 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2711
2655
|
return [];
|
|
2712
2656
|
});
|
|
2713
2657
|
}, _embind_register_class_property:function(a, b, c, d, e, f, g, k, q, n) {
|
|
2714
|
-
b =
|
|
2658
|
+
b = O(b);
|
|
2715
2659
|
e = R(d, e);
|
|
2716
|
-
P([], [a], function(
|
|
2717
|
-
|
|
2718
|
-
var v = `${
|
|
2660
|
+
P([], [a], function(t) {
|
|
2661
|
+
t = t[0];
|
|
2662
|
+
var v = `${t.name}.${b}`, y = {get() {
|
|
2719
2663
|
bd(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2720
2664
|
}, enumerable:!0, configurable:!0};
|
|
2721
2665
|
y.set = q ? () => {
|
|
2722
2666
|
bd(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2723
2667
|
} : () => {
|
|
2724
|
-
|
|
2668
|
+
M(v + " is a read-only property");
|
|
2725
2669
|
};
|
|
2726
|
-
Object.defineProperty(
|
|
2670
|
+
Object.defineProperty(t.i.M, b, y);
|
|
2727
2671
|
P([], q ? [c, g] : [c], function(l) {
|
|
2728
2672
|
var r = l[0], x = {get() {
|
|
2729
|
-
var
|
|
2730
|
-
return r.fromWireType(e(f,
|
|
2673
|
+
var G = ed(this, t, v + " getter");
|
|
2674
|
+
return r.fromWireType(e(f, G));
|
|
2731
2675
|
}, enumerable:!0};
|
|
2732
2676
|
if (q) {
|
|
2733
2677
|
q = R(k, q);
|
|
2734
2678
|
var z = l[1];
|
|
2735
|
-
x.set = function(
|
|
2736
|
-
var C = ed(this,
|
|
2737
|
-
q(n, C, z.toWireType(
|
|
2738
|
-
Gc(
|
|
2679
|
+
x.set = function(G) {
|
|
2680
|
+
var C = ed(this, t, v + " setter"), J = [];
|
|
2681
|
+
q(n, C, z.toWireType(J, G));
|
|
2682
|
+
Gc(J);
|
|
2739
2683
|
};
|
|
2740
2684
|
}
|
|
2741
|
-
Object.defineProperty(
|
|
2685
|
+
Object.defineProperty(t.i.M, b, x);
|
|
2742
2686
|
return [];
|
|
2743
2687
|
});
|
|
2744
2688
|
return [];
|
|
2745
2689
|
});
|
|
2746
2690
|
}, _embind_register_emval:function(a, b) {
|
|
2747
|
-
b =
|
|
2691
|
+
b = O(b);
|
|
2748
2692
|
Kc(a, {name:b, fromWireType:function(c) {
|
|
2749
2693
|
var d = gc(c);
|
|
2750
2694
|
fd(c);
|
|
@@ -2756,7 +2700,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2756
2700
|
function e() {
|
|
2757
2701
|
}
|
|
2758
2702
|
c = Lc(c);
|
|
2759
|
-
b =
|
|
2703
|
+
b = O(b);
|
|
2760
2704
|
e.values = {};
|
|
2761
2705
|
Kc(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2762
2706
|
return this.constructor.values[f];
|
|
@@ -2766,7 +2710,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2766
2710
|
Qc(b, e);
|
|
2767
2711
|
}, _embind_register_enum_value:function(a, b, c) {
|
|
2768
2712
|
var d = uc(a, "enum");
|
|
2769
|
-
b =
|
|
2713
|
+
b = O(b);
|
|
2770
2714
|
a = d.constructor;
|
|
2771
2715
|
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:dc(`${d.name}_${b}`, function() {
|
|
2772
2716
|
})},});
|
|
@@ -2774,7 +2718,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2774
2718
|
a[b] = d;
|
|
2775
2719
|
}, _embind_register_float:function(a, b, c) {
|
|
2776
2720
|
c = Lc(c);
|
|
2777
|
-
b =
|
|
2721
|
+
b = O(b);
|
|
2778
2722
|
Kc(a, {name:b, fromWireType:function(d) {
|
|
2779
2723
|
return d;
|
|
2780
2724
|
}, toWireType:function(d, e) {
|
|
@@ -2782,7 +2726,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2782
2726
|
}, argPackAdvance:8, readValueFromPointer:hd(b, c), J:null,});
|
|
2783
2727
|
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2784
2728
|
var g = dd(b, c);
|
|
2785
|
-
a =
|
|
2729
|
+
a = O(a);
|
|
2786
2730
|
e = R(d, e);
|
|
2787
2731
|
Qc(a, function() {
|
|
2788
2732
|
bd(`Cannot call ${a} due to unbound types`, g);
|
|
@@ -2792,7 +2736,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2792
2736
|
return [];
|
|
2793
2737
|
});
|
|
2794
2738
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2795
|
-
b =
|
|
2739
|
+
b = O(b);
|
|
2796
2740
|
-1 === e && (e = 4294967295);
|
|
2797
2741
|
e = Lc(c);
|
|
2798
2742
|
var f = k => k;
|
|
@@ -2809,22 +2753,22 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2809
2753
|
}, _embind_register_memory_view:function(a, b, c) {
|
|
2810
2754
|
function d(f) {
|
|
2811
2755
|
f >>= 2;
|
|
2812
|
-
var g =
|
|
2756
|
+
var g = D;
|
|
2813
2757
|
return new e(g.buffer, g[f + 1], g[f]);
|
|
2814
2758
|
}
|
|
2815
2759
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2816
|
-
c =
|
|
2817
|
-
Kc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {
|
|
2760
|
+
c = O(c);
|
|
2761
|
+
Kc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Tb:!0,});
|
|
2818
2762
|
}, _embind_register_std_string:function(a, b) {
|
|
2819
|
-
b =
|
|
2763
|
+
b = O(b);
|
|
2820
2764
|
var c = "std::string" === b;
|
|
2821
2765
|
Kc(a, {name:b, fromWireType:function(d) {
|
|
2822
|
-
var e =
|
|
2766
|
+
var e = D[d >> 2], f = d + 4;
|
|
2823
2767
|
if (c) {
|
|
2824
2768
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
2825
2769
|
var q = f + k;
|
|
2826
2770
|
if (k == e || 0 == w[q]) {
|
|
2827
|
-
g = g ?
|
|
2771
|
+
g = g ? F(w, g, q - g) : "";
|
|
2828
2772
|
if (void 0 === n) {
|
|
2829
2773
|
var n = g;
|
|
2830
2774
|
} else {
|
|
@@ -2845,17 +2789,17 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2845
2789
|
}, toWireType:function(d, e) {
|
|
2846
2790
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
2847
2791
|
var f = "string" == typeof e;
|
|
2848
|
-
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array ||
|
|
2792
|
+
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || M("Cannot pass non-string to std::string");
|
|
2849
2793
|
var g = c && f ? gb(e) : e.length;
|
|
2850
2794
|
var k = Yd(4 + g + 1), q = k + 4;
|
|
2851
|
-
|
|
2795
|
+
D[k >> 2] = g;
|
|
2852
2796
|
if (c && f) {
|
|
2853
2797
|
hb(e, w, q, g + 1);
|
|
2854
2798
|
} else {
|
|
2855
2799
|
if (f) {
|
|
2856
2800
|
for (f = 0; f < g; ++f) {
|
|
2857
2801
|
var n = e.charCodeAt(f);
|
|
2858
|
-
255 < n && (tc(q),
|
|
2802
|
+
255 < n && (tc(q), M("String has UTF-16 code units that do not fit in 8 bits"));
|
|
2859
2803
|
w[q + f] = n;
|
|
2860
2804
|
}
|
|
2861
2805
|
} else {
|
|
@@ -2870,42 +2814,42 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2870
2814
|
tc(d);
|
|
2871
2815
|
},});
|
|
2872
2816
|
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2873
|
-
c =
|
|
2817
|
+
c = O(c);
|
|
2874
2818
|
if (2 === b) {
|
|
2875
2819
|
var d = ld;
|
|
2876
2820
|
var e = md;
|
|
2877
2821
|
var f = nd;
|
|
2878
|
-
var g = () =>
|
|
2822
|
+
var g = () => za;
|
|
2879
2823
|
var k = 1;
|
|
2880
2824
|
} else {
|
|
2881
|
-
4 === b && (d = od, e = pd, f = qd, g = () =>
|
|
2825
|
+
4 === b && (d = od, e = pd, f = qd, g = () => D, k = 2);
|
|
2882
2826
|
}
|
|
2883
2827
|
Kc(a, {name:c, fromWireType:function(q) {
|
|
2884
|
-
for (var n =
|
|
2828
|
+
for (var n = D[q >> 2], t = g(), v, y = q + 4, l = 0; l <= n; ++l) {
|
|
2885
2829
|
var r = q + 4 + l * b;
|
|
2886
|
-
if (l == n || 0 ==
|
|
2830
|
+
if (l == n || 0 == t[r >> k]) {
|
|
2887
2831
|
y = d(y, r - y), void 0 === v ? v = y : (v += String.fromCharCode(0), v += y), y = r + b;
|
|
2888
2832
|
}
|
|
2889
2833
|
}
|
|
2890
2834
|
tc(q);
|
|
2891
2835
|
return v;
|
|
2892
2836
|
}, toWireType:function(q, n) {
|
|
2893
|
-
"string" != typeof n &&
|
|
2894
|
-
var
|
|
2895
|
-
|
|
2896
|
-
e(n, v + 4,
|
|
2837
|
+
"string" != typeof n && M(`Cannot pass non-string to C++ string type ${c}`);
|
|
2838
|
+
var t = f(n), v = Yd(4 + t + b);
|
|
2839
|
+
D[v >> 2] = t >> k;
|
|
2840
|
+
e(n, v + 4, t + b);
|
|
2897
2841
|
null !== q && q.push(tc, v);
|
|
2898
2842
|
return v;
|
|
2899
2843
|
}, argPackAdvance:8, readValueFromPointer:Hc, J:function(q) {
|
|
2900
2844
|
tc(q);
|
|
2901
2845
|
},});
|
|
2902
2846
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2903
|
-
Fc[a] = {name:
|
|
2847
|
+
Fc[a] = {name:O(b), Pa:R(c, d), U:R(e, f), $a:[],};
|
|
2904
2848
|
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, k, q, n) {
|
|
2905
|
-
Fc[a].
|
|
2849
|
+
Fc[a].$a.push({Lb:O(b), Rb:c, Pb:R(d, e), Qb:f, fc:g, ec:R(k, q), hc:n,});
|
|
2906
2850
|
}, _embind_register_void:function(a, b) {
|
|
2907
|
-
b =
|
|
2908
|
-
Kc(a, {
|
|
2851
|
+
b = O(b);
|
|
2852
|
+
Kc(a, {Zb:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2909
2853
|
}, toWireType:function() {
|
|
2910
2854
|
},});
|
|
2911
2855
|
}, _emscripten_get_now_is_monotonic:() => !0, _emscripten_throw_longjmp:() => {
|
|
@@ -2914,14 +2858,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2914
2858
|
a = gc(a);
|
|
2915
2859
|
b = uc(b, "emval::as");
|
|
2916
2860
|
var d = [], e = hc(d);
|
|
2917
|
-
|
|
2861
|
+
D[c >> 2] = e;
|
|
2918
2862
|
return b.toWireType(d, a);
|
|
2919
2863
|
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2920
2864
|
a = td[a];
|
|
2921
2865
|
b = gc(b);
|
|
2922
2866
|
c = sd(c);
|
|
2923
2867
|
var f = [];
|
|
2924
|
-
|
|
2868
|
+
D[d >> 2] = hc(f);
|
|
2925
2869
|
return a(b, c, f, e);
|
|
2926
2870
|
}, _emval_call_void_method:function(a, b, c, d) {
|
|
2927
2871
|
a = td[a];
|
|
@@ -2939,14 +2883,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2939
2883
|
}
|
|
2940
2884
|
var f = Array(a - 1);
|
|
2941
2885
|
e = ud((g, k, q, n) => {
|
|
2942
|
-
for (var
|
|
2943
|
-
f[v] = c[v + 1].readValueFromPointer(n +
|
|
2886
|
+
for (var t = 0, v = 0; v < a - 1; ++v) {
|
|
2887
|
+
f[v] = c[v + 1].readValueFromPointer(n + t), t += c[v + 1].argPackAdvance;
|
|
2944
2888
|
}
|
|
2945
2889
|
g = g[k].apply(g, f);
|
|
2946
2890
|
for (v = 0; v < a - 1; ++v) {
|
|
2947
|
-
c[v + 1].
|
|
2891
|
+
c[v + 1].Hb && c[v + 1].Hb(f[v]);
|
|
2948
2892
|
}
|
|
2949
|
-
if (!d.
|
|
2893
|
+
if (!d.Zb) {
|
|
2950
2894
|
return d.toWireType(q, g);
|
|
2951
2895
|
}
|
|
2952
2896
|
});
|
|
@@ -2956,7 +2900,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2956
2900
|
b = gc(b);
|
|
2957
2901
|
return hc(a[b]);
|
|
2958
2902
|
}, _emval_incref:function(a) {
|
|
2959
|
-
4 < a && (
|
|
2903
|
+
4 < a && (L.get(a).pb += 1);
|
|
2960
2904
|
}, _emval_new_cstring:function(a) {
|
|
2961
2905
|
return hc(sd(a));
|
|
2962
2906
|
}, _emval_new_object:function() {
|
|
@@ -2980,9 +2924,9 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2980
2924
|
xd.length = 0;
|
|
2981
2925
|
var d;
|
|
2982
2926
|
for (c >>= 2; d = w[b++];) {
|
|
2983
|
-
c += 105 != d & c, xd.push(105 == d ?
|
|
2927
|
+
c += 105 != d & c, xd.push(105 == d ? B[c] : Aa[c++ >> 1]), ++c;
|
|
2984
2928
|
}
|
|
2985
|
-
return
|
|
2929
|
+
return Wa[a].apply(null, xd);
|
|
2986
2930
|
}, emscripten_date_now:function() {
|
|
2987
2931
|
return Date.now();
|
|
2988
2932
|
}, emscripten_get_now:() => performance.now(), emscripten_glActiveTexture:function(a) {
|
|
@@ -2990,7 +2934,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2990
2934
|
}, emscripten_glAttachShader:function(a, b) {
|
|
2991
2935
|
U.attachShader(Dd[a], Hd[b]);
|
|
2992
2936
|
}, emscripten_glBindAttribLocation:function(a, b, c) {
|
|
2993
|
-
U.bindAttribLocation(Dd[a], b, c ?
|
|
2937
|
+
U.bindAttribLocation(Dd[a], b, c ? F(w, c) : "");
|
|
2994
2938
|
}, emscripten_glBindBuffer:function(a, b) {
|
|
2995
2939
|
35051 == a ? U.Ka = b : 35052 == a && (U.fa = b);
|
|
2996
2940
|
U.bindBuffer(a, Cd[b]);
|
|
@@ -3033,26 +2977,26 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3033
2977
|
}, emscripten_glCopyTexSubImage2D:function(a, b, c, d, e, f, g, k) {
|
|
3034
2978
|
U.copyTexSubImage2D(a, b, c, d, e, f, g, k);
|
|
3035
2979
|
}, emscripten_glCreateProgram:function() {
|
|
3036
|
-
var a =
|
|
2980
|
+
var a = ia(Dd), b = U.createProgram();
|
|
3037
2981
|
b.name = a;
|
|
3038
|
-
b.
|
|
3039
|
-
b.
|
|
2982
|
+
b.za = b.xa = b.ya = 0;
|
|
2983
|
+
b.Sa = 1;
|
|
3040
2984
|
Dd[a] = b;
|
|
3041
2985
|
return a;
|
|
3042
2986
|
}, emscripten_glCreateShader:function(a) {
|
|
3043
|
-
var b =
|
|
2987
|
+
var b = ia(Hd);
|
|
3044
2988
|
Hd[b] = U.createShader(a);
|
|
3045
2989
|
return b;
|
|
3046
2990
|
}, emscripten_glCullFace:function(a) {
|
|
3047
2991
|
U.cullFace(a);
|
|
3048
2992
|
}, emscripten_glDeleteBuffers:function(a, b) {
|
|
3049
2993
|
for (var c = 0; c < a; c++) {
|
|
3050
|
-
var d =
|
|
2994
|
+
var d = B[b + 4 * c >> 2], e = Cd[d];
|
|
3051
2995
|
e && (U.deleteBuffer(e), e.name = 0, Cd[d] = null, d == U.Ka && (U.Ka = 0), d == U.fa && (U.fa = 0));
|
|
3052
2996
|
}
|
|
3053
2997
|
}, emscripten_glDeleteFramebuffers:function(a, b) {
|
|
3054
2998
|
for (var c = 0; c < a; ++c) {
|
|
3055
|
-
var d =
|
|
2999
|
+
var d = B[b + 4 * c >> 2], e = Ed[d];
|
|
3056
3000
|
e && (U.deleteFramebuffer(e), e.name = 0, Ed[d] = null);
|
|
3057
3001
|
}
|
|
3058
3002
|
}, emscripten_glDeleteProgram:function(a) {
|
|
@@ -3062,12 +3006,12 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3062
3006
|
}
|
|
3063
3007
|
}, emscripten_glDeleteRenderbuffers:function(a, b) {
|
|
3064
3008
|
for (var c = 0; c < a; c++) {
|
|
3065
|
-
var d =
|
|
3009
|
+
var d = B[b + 4 * c >> 2], e = Fd[d];
|
|
3066
3010
|
e && (U.deleteRenderbuffer(e), e.name = 0, Fd[d] = null);
|
|
3067
3011
|
}
|
|
3068
3012
|
}, emscripten_glDeleteSamplers:function(a, b) {
|
|
3069
3013
|
for (var c = 0; c < a; c++) {
|
|
3070
|
-
var d =
|
|
3014
|
+
var d = B[b + 4 * c >> 2], e = Jd[d];
|
|
3071
3015
|
e && (U.deleteSampler(e), e.name = 0, Jd[d] = null);
|
|
3072
3016
|
}
|
|
3073
3017
|
}, emscripten_glDeleteShader:function(a) {
|
|
@@ -3082,7 +3026,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3082
3026
|
}
|
|
3083
3027
|
}, emscripten_glDeleteTextures:function(a, b) {
|
|
3084
3028
|
for (var c = 0; c < a; c++) {
|
|
3085
|
-
var d =
|
|
3029
|
+
var d = B[b + 4 * c >> 2], e = Gd[d];
|
|
3086
3030
|
e && (U.deleteTexture(e), e.name = 0, Gd[d] = null);
|
|
3087
3031
|
}
|
|
3088
3032
|
}, emscripten_glDeleteVertexArrays:Rd, emscripten_glDeleteVertexArraysOES:Rd, emscripten_glDepthMask:function(a) {
|
|
@@ -3096,16 +3040,16 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3096
3040
|
}, emscripten_glDrawArraysInstanced:function(a, b, c, d) {
|
|
3097
3041
|
U.drawArraysInstanced(a, b, c, d);
|
|
3098
3042
|
}, emscripten_glDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e) {
|
|
3099
|
-
U.
|
|
3043
|
+
U.Ya.drawArraysInstancedBaseInstanceWEBGL(a, b, c, d, e);
|
|
3100
3044
|
}, emscripten_glDrawBuffers:function(a, b) {
|
|
3101
3045
|
for (var c = Sd[a], d = 0; d < a; d++) {
|
|
3102
|
-
c[d] =
|
|
3046
|
+
c[d] = B[b + 4 * d >> 2];
|
|
3103
3047
|
}
|
|
3104
3048
|
U.drawBuffers(c);
|
|
3105
3049
|
}, emscripten_glDrawElements:Td, emscripten_glDrawElementsInstanced:function(a, b, c, d, e) {
|
|
3106
3050
|
U.drawElementsInstanced(a, b, c, d, e);
|
|
3107
3051
|
}, emscripten_glDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g) {
|
|
3108
|
-
U.
|
|
3052
|
+
U.Ya.drawElementsInstancedBaseVertexBaseInstanceWEBGL(a, b, c, d, e, f, g);
|
|
3109
3053
|
}, emscripten_glDrawRangeElements:function(a, b, c, d, e, f) {
|
|
3110
3054
|
Td(a, d, e, f);
|
|
3111
3055
|
}, emscripten_glEnable:function(a) {
|
|
@@ -3113,7 +3057,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3113
3057
|
}, emscripten_glEnableVertexAttribArray:function(a) {
|
|
3114
3058
|
U.enableVertexAttribArray(a);
|
|
3115
3059
|
}, emscripten_glFenceSync:function(a, b) {
|
|
3116
|
-
return (a = U.fenceSync(a, b)) ? (b =
|
|
3060
|
+
return (a = U.fenceSync(a, b)) ? (b = ia(Kd), a.name = b, Kd[b] = a, b) : 0;
|
|
3117
3061
|
}, emscripten_glFinish:function() {
|
|
3118
3062
|
U.finish();
|
|
3119
3063
|
}, emscripten_glFlush:function() {
|
|
@@ -3137,7 +3081,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3137
3081
|
}, emscripten_glGenVertexArrays:Vd, emscripten_glGenVertexArraysOES:Vd, emscripten_glGenerateMipmap:function(a) {
|
|
3138
3082
|
U.generateMipmap(a);
|
|
3139
3083
|
}, emscripten_glGetBufferParameteriv:function(a, b, c) {
|
|
3140
|
-
c ?
|
|
3084
|
+
c ? B[c >> 2] = U.getBufferParameter(a, b) : S(1281);
|
|
3141
3085
|
}, emscripten_glGetError:function() {
|
|
3142
3086
|
var a = U.getError() || Od;
|
|
3143
3087
|
Od = 0;
|
|
@@ -3147,61 +3091,61 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3147
3091
|
if (a instanceof WebGLRenderbuffer || a instanceof WebGLTexture) {
|
|
3148
3092
|
a = a.name | 0;
|
|
3149
3093
|
}
|
|
3150
|
-
|
|
3094
|
+
B[d >> 2] = a;
|
|
3151
3095
|
}, emscripten_glGetIntegerv:Xd, emscripten_glGetProgramInfoLog:function(a, b, c, d) {
|
|
3152
3096
|
a = U.getProgramInfoLog(Dd[a]);
|
|
3153
3097
|
null === a && (a = "(unknown error)");
|
|
3154
3098
|
b = 0 < b && d ? hb(a, w, d, b) : 0;
|
|
3155
|
-
c && (
|
|
3099
|
+
c && (B[c >> 2] = b);
|
|
3156
3100
|
}, emscripten_glGetProgramiv:function(a, b, c) {
|
|
3157
3101
|
if (c) {
|
|
3158
3102
|
if (a >= Bd) {
|
|
3159
3103
|
S(1281);
|
|
3160
3104
|
} else {
|
|
3161
3105
|
if (a = Dd[a], 35716 == b) {
|
|
3162
|
-
a = U.getProgramInfoLog(a), null === a && (a = "(unknown error)"),
|
|
3106
|
+
a = U.getProgramInfoLog(a), null === a && (a = "(unknown error)"), B[c >> 2] = a.length + 1;
|
|
3163
3107
|
} else if (35719 == b) {
|
|
3164
|
-
if (!a.
|
|
3108
|
+
if (!a.za) {
|
|
3165
3109
|
for (b = 0; b < U.getProgramParameter(a, 35718); ++b) {
|
|
3166
|
-
a.
|
|
3110
|
+
a.za = Math.max(a.za, U.getActiveUniform(a, b).name.length + 1);
|
|
3167
3111
|
}
|
|
3168
3112
|
}
|
|
3169
|
-
|
|
3113
|
+
B[c >> 2] = a.za;
|
|
3170
3114
|
} else if (35722 == b) {
|
|
3171
|
-
if (!a.
|
|
3115
|
+
if (!a.xa) {
|
|
3172
3116
|
for (b = 0; b < U.getProgramParameter(a, 35721); ++b) {
|
|
3173
|
-
a.
|
|
3117
|
+
a.xa = Math.max(a.xa, U.getActiveAttrib(a, b).name.length + 1);
|
|
3174
3118
|
}
|
|
3175
3119
|
}
|
|
3176
|
-
|
|
3120
|
+
B[c >> 2] = a.xa;
|
|
3177
3121
|
} else if (35381 == b) {
|
|
3178
|
-
if (!a.
|
|
3122
|
+
if (!a.ya) {
|
|
3179
3123
|
for (b = 0; b < U.getProgramParameter(a, 35382); ++b) {
|
|
3180
|
-
a.
|
|
3124
|
+
a.ya = Math.max(a.ya, U.getActiveUniformBlockName(a, b).length + 1);
|
|
3181
3125
|
}
|
|
3182
3126
|
}
|
|
3183
|
-
|
|
3127
|
+
B[c >> 2] = a.ya;
|
|
3184
3128
|
} else {
|
|
3185
|
-
|
|
3129
|
+
B[c >> 2] = U.getProgramParameter(a, b);
|
|
3186
3130
|
}
|
|
3187
3131
|
}
|
|
3188
3132
|
} else {
|
|
3189
3133
|
S(1281);
|
|
3190
3134
|
}
|
|
3191
3135
|
}, emscripten_glGetRenderbufferParameteriv:function(a, b, c) {
|
|
3192
|
-
c ?
|
|
3136
|
+
c ? B[c >> 2] = U.getRenderbufferParameter(a, b) : S(1281);
|
|
3193
3137
|
}, emscripten_glGetShaderInfoLog:function(a, b, c, d) {
|
|
3194
3138
|
a = U.getShaderInfoLog(Hd[a]);
|
|
3195
3139
|
null === a && (a = "(unknown error)");
|
|
3196
3140
|
b = 0 < b && d ? hb(a, w, d, b) : 0;
|
|
3197
|
-
c && (
|
|
3141
|
+
c && (B[c >> 2] = b);
|
|
3198
3142
|
}, emscripten_glGetShaderPrecisionFormat:function(a, b, c, d) {
|
|
3199
3143
|
a = U.getShaderPrecisionFormat(a, b);
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3144
|
+
B[c >> 2] = a.rangeMin;
|
|
3145
|
+
B[c + 4 >> 2] = a.rangeMax;
|
|
3146
|
+
B[d >> 2] = a.precision;
|
|
3203
3147
|
}, emscripten_glGetShaderiv:function(a, b, c) {
|
|
3204
|
-
c ? 35716 == b ? (a = U.getShaderInfoLog(Hd[a]), null === a && (a = "(unknown error)"),
|
|
3148
|
+
c ? 35716 == b ? (a = U.getShaderInfoLog(Hd[a]), null === a && (a = "(unknown error)"), B[c >> 2] = a ? a.length + 1 : 0) : 35720 == b ? (a = U.getShaderSource(Hd[a]), B[c >> 2] = a ? a.length + 1 : 0) : B[c >> 2] = U.getShaderParameter(Hd[a], b) : S(1281);
|
|
3205
3149
|
}, emscripten_glGetString:function(a) {
|
|
3206
3150
|
var b = Ld[a];
|
|
3207
3151
|
if (!b) {
|
|
@@ -3256,30 +3200,30 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3256
3200
|
return S(1280), 0;
|
|
3257
3201
|
}
|
|
3258
3202
|
}, emscripten_glGetUniformLocation:function(a, b) {
|
|
3259
|
-
b = b ?
|
|
3203
|
+
b = b ? F(w, b) : "";
|
|
3260
3204
|
if (a = Dd[a]) {
|
|
3261
|
-
var c = a, d = c.
|
|
3205
|
+
var c = a, d = c.ma, e = c.ub, f;
|
|
3262
3206
|
if (!d) {
|
|
3263
|
-
for (c.
|
|
3207
|
+
for (c.ma = d = {}, c.tb = {}, f = 0; f < U.getProgramParameter(c, 35718); ++f) {
|
|
3264
3208
|
var g = U.getActiveUniform(c, f);
|
|
3265
3209
|
var k = g.name;
|
|
3266
3210
|
g = g.size;
|
|
3267
3211
|
var q = $d(k);
|
|
3268
3212
|
q = 0 < q ? k.slice(0, q) : k;
|
|
3269
|
-
var n = c.
|
|
3270
|
-
c.
|
|
3213
|
+
var n = c.Sa;
|
|
3214
|
+
c.Sa += g;
|
|
3271
3215
|
e[q] = [g, n];
|
|
3272
3216
|
for (k = 0; k < g; ++k) {
|
|
3273
|
-
d[n] = k, c.
|
|
3217
|
+
d[n] = k, c.tb[n++] = q;
|
|
3274
3218
|
}
|
|
3275
3219
|
}
|
|
3276
3220
|
}
|
|
3277
|
-
c = a.
|
|
3221
|
+
c = a.ma;
|
|
3278
3222
|
d = 0;
|
|
3279
3223
|
e = b;
|
|
3280
3224
|
f = $d(b);
|
|
3281
3225
|
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3282
|
-
if ((e = a.
|
|
3226
|
+
if ((e = a.ub[e]) && d < e[0] && (d += e[1], c[d] = c[d] || U.getUniformLocation(a, b))) {
|
|
3283
3227
|
return d;
|
|
3284
3228
|
}
|
|
3285
3229
|
} else {
|
|
@@ -3288,12 +3232,12 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3288
3232
|
return -1;
|
|
3289
3233
|
}, emscripten_glInvalidateFramebuffer:function(a, b, c) {
|
|
3290
3234
|
for (var d = Sd[b], e = 0; e < b; e++) {
|
|
3291
|
-
d[e] =
|
|
3235
|
+
d[e] = B[c + 4 * e >> 2];
|
|
3292
3236
|
}
|
|
3293
3237
|
U.invalidateFramebuffer(a, d);
|
|
3294
3238
|
}, emscripten_glInvalidateSubFramebuffer:function(a, b, c, d, e, f, g) {
|
|
3295
3239
|
for (var k = Sd[b], q = 0; q < b; q++) {
|
|
3296
|
-
k[q] =
|
|
3240
|
+
k[q] = B[c + 4 * q >> 2];
|
|
3297
3241
|
}
|
|
3298
3242
|
U.invalidateSubFramebuffer(a, k, d, e, f, g);
|
|
3299
3243
|
}, emscripten_glIsSync:function(a) {
|
|
@@ -3305,12 +3249,12 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3305
3249
|
}, emscripten_glLinkProgram:function(a) {
|
|
3306
3250
|
a = Dd[a];
|
|
3307
3251
|
U.linkProgram(a);
|
|
3308
|
-
a.
|
|
3309
|
-
a.
|
|
3252
|
+
a.ma = 0;
|
|
3253
|
+
a.ub = {};
|
|
3310
3254
|
}, emscripten_glMultiDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e, f) {
|
|
3311
|
-
U.
|
|
3255
|
+
U.gb.multiDrawArraysInstancedBaseInstanceWEBGL(a, B, b >> 2, B, c >> 2, B, d >> 2, D, e >> 2, f);
|
|
3312
3256
|
}, emscripten_glMultiDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g, k) {
|
|
3313
|
-
U.
|
|
3257
|
+
U.gb.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(a, B, b >> 2, c, B, d >> 2, B, e >> 2, B, f >> 2, D, g >> 2, k);
|
|
3314
3258
|
}, emscripten_glPixelStorei:function(a, b) {
|
|
3315
3259
|
3317 == a && (Nd = b);
|
|
3316
3260
|
U.pixelStorei(a, b);
|
|
@@ -3334,13 +3278,13 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3334
3278
|
}, emscripten_glSamplerParameteri:function(a, b, c) {
|
|
3335
3279
|
U.samplerParameteri(Jd[a], b, c);
|
|
3336
3280
|
}, emscripten_glSamplerParameteriv:function(a, b, c) {
|
|
3337
|
-
U.samplerParameteri(Jd[a], b,
|
|
3281
|
+
U.samplerParameteri(Jd[a], b, B[c >> 2]);
|
|
3338
3282
|
}, emscripten_glScissor:function(a, b, c, d) {
|
|
3339
3283
|
U.scissor(a, b, c, d);
|
|
3340
3284
|
}, emscripten_glShaderSource:function(a, b, c, d) {
|
|
3341
3285
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3342
|
-
var g = d ?
|
|
3343
|
-
g = k ?
|
|
3286
|
+
var g = d ? B[d + 4 * f >> 2] : -1, k = B[c + 4 * f >> 2];
|
|
3287
|
+
g = k ? F(w, k, 0 > g ? void 0 : g) : "";
|
|
3344
3288
|
e += g;
|
|
3345
3289
|
}
|
|
3346
3290
|
U.shaderSource(Hd[a], e);
|
|
@@ -3372,11 +3316,11 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3372
3316
|
}, emscripten_glTexParameterf:function(a, b, c) {
|
|
3373
3317
|
U.texParameterf(a, b, c);
|
|
3374
3318
|
}, emscripten_glTexParameterfv:function(a, b, c) {
|
|
3375
|
-
U.texParameterf(a, b,
|
|
3319
|
+
U.texParameterf(a, b, E[c >> 2]);
|
|
3376
3320
|
}, emscripten_glTexParameteri:function(a, b, c) {
|
|
3377
3321
|
U.texParameteri(a, b, c);
|
|
3378
3322
|
}, emscripten_glTexParameteriv:function(a, b, c) {
|
|
3379
|
-
U.texParameteri(a, b,
|
|
3323
|
+
U.texParameteri(a, b, B[c >> 2]);
|
|
3380
3324
|
}, emscripten_glTexStorage2D:function(a, b, c, d, e) {
|
|
3381
3325
|
U.texStorage2D(a, b, c, d, e);
|
|
3382
3326
|
}, emscripten_glTexSubImage2D:function(a, b, c, d, e, f, g, k, q) {
|
|
@@ -3396,14 +3340,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3396
3340
|
U.uniform1f(V(a), b);
|
|
3397
3341
|
}, emscripten_glUniform1fv:function(a, b, c) {
|
|
3398
3342
|
if (2 <= T.version) {
|
|
3399
|
-
b && U.uniform1fv(V(a),
|
|
3343
|
+
b && U.uniform1fv(V(a), E, c >> 2, b);
|
|
3400
3344
|
} else {
|
|
3401
3345
|
if (288 >= b) {
|
|
3402
3346
|
for (var d = ce[b - 1], e = 0; e < b; ++e) {
|
|
3403
|
-
d[e] =
|
|
3347
|
+
d[e] = E[c + 4 * e >> 2];
|
|
3404
3348
|
}
|
|
3405
3349
|
} else {
|
|
3406
|
-
d =
|
|
3350
|
+
d = E.subarray(c >> 2, c + 4 * b >> 2);
|
|
3407
3351
|
}
|
|
3408
3352
|
U.uniform1fv(V(a), d);
|
|
3409
3353
|
}
|
|
@@ -3411,14 +3355,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3411
3355
|
U.uniform1i(V(a), b);
|
|
3412
3356
|
}, emscripten_glUniform1iv:function(a, b, c) {
|
|
3413
3357
|
if (2 <= T.version) {
|
|
3414
|
-
b && U.uniform1iv(V(a),
|
|
3358
|
+
b && U.uniform1iv(V(a), B, c >> 2, b);
|
|
3415
3359
|
} else {
|
|
3416
3360
|
if (288 >= b) {
|
|
3417
3361
|
for (var d = de[b - 1], e = 0; e < b; ++e) {
|
|
3418
|
-
d[e] =
|
|
3362
|
+
d[e] = B[c + 4 * e >> 2];
|
|
3419
3363
|
}
|
|
3420
3364
|
} else {
|
|
3421
|
-
d =
|
|
3365
|
+
d = B.subarray(c >> 2, c + 4 * b >> 2);
|
|
3422
3366
|
}
|
|
3423
3367
|
U.uniform1iv(V(a), d);
|
|
3424
3368
|
}
|
|
@@ -3426,14 +3370,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3426
3370
|
U.uniform2f(V(a), b, c);
|
|
3427
3371
|
}, emscripten_glUniform2fv:function(a, b, c) {
|
|
3428
3372
|
if (2 <= T.version) {
|
|
3429
|
-
b && U.uniform2fv(V(a),
|
|
3373
|
+
b && U.uniform2fv(V(a), E, c >> 2, 2 * b);
|
|
3430
3374
|
} else {
|
|
3431
3375
|
if (144 >= b) {
|
|
3432
3376
|
for (var d = ce[2 * b - 1], e = 0; e < 2 * b; e += 2) {
|
|
3433
|
-
d[e] =
|
|
3377
|
+
d[e] = E[c + 4 * e >> 2], d[e + 1] = E[c + (4 * e + 4) >> 2];
|
|
3434
3378
|
}
|
|
3435
3379
|
} else {
|
|
3436
|
-
d =
|
|
3380
|
+
d = E.subarray(c >> 2, c + 8 * b >> 2);
|
|
3437
3381
|
}
|
|
3438
3382
|
U.uniform2fv(V(a), d);
|
|
3439
3383
|
}
|
|
@@ -3441,14 +3385,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3441
3385
|
U.uniform2i(V(a), b, c);
|
|
3442
3386
|
}, emscripten_glUniform2iv:function(a, b, c) {
|
|
3443
3387
|
if (2 <= T.version) {
|
|
3444
|
-
b && U.uniform2iv(V(a),
|
|
3388
|
+
b && U.uniform2iv(V(a), B, c >> 2, 2 * b);
|
|
3445
3389
|
} else {
|
|
3446
3390
|
if (144 >= b) {
|
|
3447
3391
|
for (var d = de[2 * b - 1], e = 0; e < 2 * b; e += 2) {
|
|
3448
|
-
d[e] =
|
|
3392
|
+
d[e] = B[c + 4 * e >> 2], d[e + 1] = B[c + (4 * e + 4) >> 2];
|
|
3449
3393
|
}
|
|
3450
3394
|
} else {
|
|
3451
|
-
d =
|
|
3395
|
+
d = B.subarray(c >> 2, c + 8 * b >> 2);
|
|
3452
3396
|
}
|
|
3453
3397
|
U.uniform2iv(V(a), d);
|
|
3454
3398
|
}
|
|
@@ -3456,14 +3400,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3456
3400
|
U.uniform3f(V(a), b, c, d);
|
|
3457
3401
|
}, emscripten_glUniform3fv:function(a, b, c) {
|
|
3458
3402
|
if (2 <= T.version) {
|
|
3459
|
-
b && U.uniform3fv(V(a),
|
|
3403
|
+
b && U.uniform3fv(V(a), E, c >> 2, 3 * b);
|
|
3460
3404
|
} else {
|
|
3461
3405
|
if (96 >= b) {
|
|
3462
3406
|
for (var d = ce[3 * b - 1], e = 0; e < 3 * b; e += 3) {
|
|
3463
|
-
d[e] =
|
|
3407
|
+
d[e] = E[c + 4 * e >> 2], d[e + 1] = E[c + (4 * e + 4) >> 2], d[e + 2] = E[c + (4 * e + 8) >> 2];
|
|
3464
3408
|
}
|
|
3465
3409
|
} else {
|
|
3466
|
-
d =
|
|
3410
|
+
d = E.subarray(c >> 2, c + 12 * b >> 2);
|
|
3467
3411
|
}
|
|
3468
3412
|
U.uniform3fv(V(a), d);
|
|
3469
3413
|
}
|
|
@@ -3471,14 +3415,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3471
3415
|
U.uniform3i(V(a), b, c, d);
|
|
3472
3416
|
}, emscripten_glUniform3iv:function(a, b, c) {
|
|
3473
3417
|
if (2 <= T.version) {
|
|
3474
|
-
b && U.uniform3iv(V(a),
|
|
3418
|
+
b && U.uniform3iv(V(a), B, c >> 2, 3 * b);
|
|
3475
3419
|
} else {
|
|
3476
3420
|
if (96 >= b) {
|
|
3477
3421
|
for (var d = de[3 * b - 1], e = 0; e < 3 * b; e += 3) {
|
|
3478
|
-
d[e] =
|
|
3422
|
+
d[e] = B[c + 4 * e >> 2], d[e + 1] = B[c + (4 * e + 4) >> 2], d[e + 2] = B[c + (4 * e + 8) >> 2];
|
|
3479
3423
|
}
|
|
3480
3424
|
} else {
|
|
3481
|
-
d =
|
|
3425
|
+
d = B.subarray(c >> 2, c + 12 * b >> 2);
|
|
3482
3426
|
}
|
|
3483
3427
|
U.uniform3iv(V(a), d);
|
|
3484
3428
|
}
|
|
@@ -3486,10 +3430,10 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3486
3430
|
U.uniform4f(V(a), b, c, d, e);
|
|
3487
3431
|
}, emscripten_glUniform4fv:function(a, b, c) {
|
|
3488
3432
|
if (2 <= T.version) {
|
|
3489
|
-
b && U.uniform4fv(V(a),
|
|
3433
|
+
b && U.uniform4fv(V(a), E, c >> 2, 4 * b);
|
|
3490
3434
|
} else {
|
|
3491
3435
|
if (72 >= b) {
|
|
3492
|
-
var d = ce[4 * b - 1], e =
|
|
3436
|
+
var d = ce[4 * b - 1], e = E;
|
|
3493
3437
|
c >>= 2;
|
|
3494
3438
|
for (var f = 0; f < 4 * b; f += 4) {
|
|
3495
3439
|
var g = c + f;
|
|
@@ -3499,7 +3443,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3499
3443
|
d[f + 3] = e[g + 3];
|
|
3500
3444
|
}
|
|
3501
3445
|
} else {
|
|
3502
|
-
d =
|
|
3446
|
+
d = E.subarray(c >> 2, c + 16 * b >> 2);
|
|
3503
3447
|
}
|
|
3504
3448
|
U.uniform4fv(V(a), d);
|
|
3505
3449
|
}
|
|
@@ -3507,49 +3451,49 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3507
3451
|
U.uniform4i(V(a), b, c, d, e);
|
|
3508
3452
|
}, emscripten_glUniform4iv:function(a, b, c) {
|
|
3509
3453
|
if (2 <= T.version) {
|
|
3510
|
-
b && U.uniform4iv(V(a),
|
|
3454
|
+
b && U.uniform4iv(V(a), B, c >> 2, 4 * b);
|
|
3511
3455
|
} else {
|
|
3512
3456
|
if (72 >= b) {
|
|
3513
3457
|
for (var d = de[4 * b - 1], e = 0; e < 4 * b; e += 4) {
|
|
3514
|
-
d[e] =
|
|
3458
|
+
d[e] = B[c + 4 * e >> 2], d[e + 1] = B[c + (4 * e + 4) >> 2], d[e + 2] = B[c + (4 * e + 8) >> 2], d[e + 3] = B[c + (4 * e + 12) >> 2];
|
|
3515
3459
|
}
|
|
3516
3460
|
} else {
|
|
3517
|
-
d =
|
|
3461
|
+
d = B.subarray(c >> 2, c + 16 * b >> 2);
|
|
3518
3462
|
}
|
|
3519
3463
|
U.uniform4iv(V(a), d);
|
|
3520
3464
|
}
|
|
3521
3465
|
}, emscripten_glUniformMatrix2fv:function(a, b, c, d) {
|
|
3522
3466
|
if (2 <= T.version) {
|
|
3523
|
-
b && U.uniformMatrix2fv(V(a), !!c,
|
|
3467
|
+
b && U.uniformMatrix2fv(V(a), !!c, E, d >> 2, 4 * b);
|
|
3524
3468
|
} else {
|
|
3525
3469
|
if (72 >= b) {
|
|
3526
3470
|
for (var e = ce[4 * b - 1], f = 0; f < 4 * b; f += 4) {
|
|
3527
|
-
e[f] =
|
|
3471
|
+
e[f] = E[d + 4 * f >> 2], e[f + 1] = E[d + (4 * f + 4) >> 2], e[f + 2] = E[d + (4 * f + 8) >> 2], e[f + 3] = E[d + (4 * f + 12) >> 2];
|
|
3528
3472
|
}
|
|
3529
3473
|
} else {
|
|
3530
|
-
e =
|
|
3474
|
+
e = E.subarray(d >> 2, d + 16 * b >> 2);
|
|
3531
3475
|
}
|
|
3532
3476
|
U.uniformMatrix2fv(V(a), !!c, e);
|
|
3533
3477
|
}
|
|
3534
3478
|
}, emscripten_glUniformMatrix3fv:function(a, b, c, d) {
|
|
3535
3479
|
if (2 <= T.version) {
|
|
3536
|
-
b && U.uniformMatrix3fv(V(a), !!c,
|
|
3480
|
+
b && U.uniformMatrix3fv(V(a), !!c, E, d >> 2, 9 * b);
|
|
3537
3481
|
} else {
|
|
3538
3482
|
if (32 >= b) {
|
|
3539
3483
|
for (var e = ce[9 * b - 1], f = 0; f < 9 * b; f += 9) {
|
|
3540
|
-
e[f] =
|
|
3484
|
+
e[f] = E[d + 4 * f >> 2], e[f + 1] = E[d + (4 * f + 4) >> 2], e[f + 2] = E[d + (4 * f + 8) >> 2], e[f + 3] = E[d + (4 * f + 12) >> 2], e[f + 4] = E[d + (4 * f + 16) >> 2], e[f + 5] = E[d + (4 * f + 20) >> 2], e[f + 6] = E[d + (4 * f + 24) >> 2], e[f + 7] = E[d + (4 * f + 28) >> 2], e[f + 8] = E[d + (4 * f + 32) >> 2];
|
|
3541
3485
|
}
|
|
3542
3486
|
} else {
|
|
3543
|
-
e =
|
|
3487
|
+
e = E.subarray(d >> 2, d + 36 * b >> 2);
|
|
3544
3488
|
}
|
|
3545
3489
|
U.uniformMatrix3fv(V(a), !!c, e);
|
|
3546
3490
|
}
|
|
3547
3491
|
}, emscripten_glUniformMatrix4fv:function(a, b, c, d) {
|
|
3548
3492
|
if (2 <= T.version) {
|
|
3549
|
-
b && U.uniformMatrix4fv(V(a), !!c,
|
|
3493
|
+
b && U.uniformMatrix4fv(V(a), !!c, E, d >> 2, 16 * b);
|
|
3550
3494
|
} else {
|
|
3551
3495
|
if (18 >= b) {
|
|
3552
|
-
var e = ce[16 * b - 1], f =
|
|
3496
|
+
var e = ce[16 * b - 1], f = E;
|
|
3553
3497
|
d >>= 2;
|
|
3554
3498
|
for (var g = 0; g < 16 * b; g += 16) {
|
|
3555
3499
|
var k = d + g;
|
|
@@ -3571,22 +3515,22 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3571
3515
|
e[g + 15] = f[k + 15];
|
|
3572
3516
|
}
|
|
3573
3517
|
} else {
|
|
3574
|
-
e =
|
|
3518
|
+
e = E.subarray(d >> 2, d + 64 * b >> 2);
|
|
3575
3519
|
}
|
|
3576
3520
|
U.uniformMatrix4fv(V(a), !!c, e);
|
|
3577
3521
|
}
|
|
3578
3522
|
}, emscripten_glUseProgram:function(a) {
|
|
3579
3523
|
a = Dd[a];
|
|
3580
3524
|
U.useProgram(a);
|
|
3581
|
-
U.
|
|
3525
|
+
U.Gb = a;
|
|
3582
3526
|
}, emscripten_glVertexAttrib1f:function(a, b) {
|
|
3583
3527
|
U.vertexAttrib1f(a, b);
|
|
3584
3528
|
}, emscripten_glVertexAttrib2fv:function(a, b) {
|
|
3585
|
-
U.vertexAttrib2f(a,
|
|
3529
|
+
U.vertexAttrib2f(a, E[b >> 2], E[b + 4 >> 2]);
|
|
3586
3530
|
}, emscripten_glVertexAttrib3fv:function(a, b) {
|
|
3587
|
-
U.vertexAttrib3f(a,
|
|
3531
|
+
U.vertexAttrib3f(a, E[b >> 2], E[b + 4 >> 2], E[b + 8 >> 2]);
|
|
3588
3532
|
}, emscripten_glVertexAttrib4fv:function(a, b) {
|
|
3589
|
-
U.vertexAttrib4f(a,
|
|
3533
|
+
U.vertexAttrib4f(a, E[b >> 2], E[b + 4 >> 2], E[b + 8 >> 2], E[b + 12 >> 2]);
|
|
3590
3534
|
}, emscripten_glVertexAttribDivisor:function(a, b) {
|
|
3591
3535
|
U.vertexAttribDivisor(a, b);
|
|
3592
3536
|
}, emscripten_glVertexAttribIPointer:function(a, b, c, d, e) {
|
|
@@ -3612,7 +3556,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3612
3556
|
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - xa.buffer.byteLength + 65535 >>> 16;
|
|
3613
3557
|
try {
|
|
3614
3558
|
xa.grow(e);
|
|
3615
|
-
|
|
3559
|
+
Ba();
|
|
3616
3560
|
var f = 1;
|
|
3617
3561
|
break a;
|
|
3618
3562
|
} catch (g) {
|
|
@@ -3632,44 +3576,44 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3632
3576
|
var c = 0;
|
|
3633
3577
|
ge().forEach(function(d, e) {
|
|
3634
3578
|
var f = b + c;
|
|
3635
|
-
e =
|
|
3579
|
+
e = D[a + 4 * e >> 2] = f;
|
|
3636
3580
|
for (f = 0; f < d.length; ++f) {
|
|
3637
|
-
|
|
3581
|
+
u[e++ >> 0] = d.charCodeAt(f);
|
|
3638
3582
|
}
|
|
3639
|
-
|
|
3583
|
+
u[e >> 0] = 0;
|
|
3640
3584
|
c += d.length + 1;
|
|
3641
3585
|
});
|
|
3642
3586
|
return 0;
|
|
3643
3587
|
}, environ_sizes_get:(a, b) => {
|
|
3644
3588
|
var c = ge();
|
|
3645
|
-
|
|
3589
|
+
D[a >> 2] = c.length;
|
|
3646
3590
|
var d = 0;
|
|
3647
3591
|
c.forEach(function(e) {
|
|
3648
3592
|
d += e.length + 1;
|
|
3649
3593
|
});
|
|
3650
|
-
|
|
3594
|
+
D[b >> 2] = d;
|
|
3651
3595
|
return 0;
|
|
3652
3596
|
}, fd_close:function(a) {
|
|
3653
3597
|
try {
|
|
3654
3598
|
var b = Mb(a);
|
|
3655
|
-
if (null === b.
|
|
3656
|
-
throw new
|
|
3599
|
+
if (null === b.V) {
|
|
3600
|
+
throw new H(8);
|
|
3657
3601
|
}
|
|
3658
|
-
b.
|
|
3602
|
+
b.Ma && (b.Ma = null);
|
|
3659
3603
|
try {
|
|
3660
3604
|
b.m.close && b.m.close(b);
|
|
3661
3605
|
} catch (c) {
|
|
3662
3606
|
throw c;
|
|
3663
3607
|
} finally {
|
|
3664
|
-
yb[b.
|
|
3608
|
+
yb[b.V] = null;
|
|
3665
3609
|
}
|
|
3666
|
-
b.
|
|
3610
|
+
b.V = null;
|
|
3667
3611
|
return 0;
|
|
3668
3612
|
} catch (c) {
|
|
3669
3613
|
if ("undefined" == typeof $b || "ErrnoError" !== c.name) {
|
|
3670
3614
|
throw c;
|
|
3671
3615
|
}
|
|
3672
|
-
return c.
|
|
3616
|
+
return c.Z;
|
|
3673
3617
|
}
|
|
3674
3618
|
}, fd_read:function(a, b, c, d) {
|
|
3675
3619
|
try {
|
|
@@ -3677,35 +3621,35 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3677
3621
|
var e = Mb(a);
|
|
3678
3622
|
a = b;
|
|
3679
3623
|
for (var f, g = b = 0; g < c; g++) {
|
|
3680
|
-
var k =
|
|
3624
|
+
var k = D[a >> 2], q = D[a + 4 >> 2];
|
|
3681
3625
|
a += 8;
|
|
3682
|
-
var n = e,
|
|
3626
|
+
var n = e, t = k, v = q, y = f, l = u;
|
|
3683
3627
|
if (0 > v || 0 > y) {
|
|
3684
|
-
throw new
|
|
3628
|
+
throw new H(28);
|
|
3685
3629
|
}
|
|
3686
|
-
if (null === n.
|
|
3687
|
-
throw new
|
|
3630
|
+
if (null === n.V) {
|
|
3631
|
+
throw new H(8);
|
|
3688
3632
|
}
|
|
3689
3633
|
if (1 === (n.flags & 2097155)) {
|
|
3690
|
-
throw new
|
|
3634
|
+
throw new H(8);
|
|
3691
3635
|
}
|
|
3692
3636
|
if (16384 === (n.node.mode & 61440)) {
|
|
3693
|
-
throw new
|
|
3637
|
+
throw new H(31);
|
|
3694
3638
|
}
|
|
3695
3639
|
if (!n.m.read) {
|
|
3696
|
-
throw new
|
|
3640
|
+
throw new H(28);
|
|
3697
3641
|
}
|
|
3698
3642
|
var r = "undefined" != typeof y;
|
|
3699
3643
|
if (!r) {
|
|
3700
3644
|
y = n.position;
|
|
3701
3645
|
} else if (!n.seekable) {
|
|
3702
|
-
throw new
|
|
3646
|
+
throw new H(70);
|
|
3703
3647
|
}
|
|
3704
|
-
var x = n.m.read(n, l,
|
|
3648
|
+
var x = n.m.read(n, l, t, v, y);
|
|
3705
3649
|
r || (n.position += x);
|
|
3706
3650
|
var z = x;
|
|
3707
3651
|
if (0 > z) {
|
|
3708
|
-
var
|
|
3652
|
+
var G = -1;
|
|
3709
3653
|
break a;
|
|
3710
3654
|
}
|
|
3711
3655
|
b += z;
|
|
@@ -3714,15 +3658,15 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3714
3658
|
}
|
|
3715
3659
|
"undefined" !== typeof f && (f += z);
|
|
3716
3660
|
}
|
|
3717
|
-
|
|
3661
|
+
G = b;
|
|
3718
3662
|
}
|
|
3719
|
-
|
|
3663
|
+
D[d >> 2] = G;
|
|
3720
3664
|
return 0;
|
|
3721
3665
|
} catch (C) {
|
|
3722
3666
|
if ("undefined" == typeof $b || "ErrnoError" !== C.name) {
|
|
3723
3667
|
throw C;
|
|
3724
3668
|
}
|
|
3725
|
-
return C.
|
|
3669
|
+
return C.Z;
|
|
3726
3670
|
}
|
|
3727
3671
|
}, fd_seek:function(a, b, c, d, e) {
|
|
3728
3672
|
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
@@ -3732,16 +3676,16 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3732
3676
|
}
|
|
3733
3677
|
var f = Mb(a);
|
|
3734
3678
|
Vb(f, b, d);
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
f.
|
|
3679
|
+
Sa = [f.position >>> 0, (Ra = f.position, 1.0 <= +Math.abs(Ra) ? 0.0 < Ra ? +Math.floor(Ra / 4294967296.0) >>> 0 : ~~+Math.ceil((Ra - +(~~Ra >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3680
|
+
B[e >> 2] = Sa[0];
|
|
3681
|
+
B[e + 4 >> 2] = Sa[1];
|
|
3682
|
+
f.Ma && 0 === b && 0 === d && (f.Ma = null);
|
|
3739
3683
|
return 0;
|
|
3740
3684
|
} catch (g) {
|
|
3741
3685
|
if ("undefined" == typeof $b || "ErrnoError" !== g.name) {
|
|
3742
3686
|
throw g;
|
|
3743
3687
|
}
|
|
3744
|
-
return g.
|
|
3688
|
+
return g.Z;
|
|
3745
3689
|
}
|
|
3746
3690
|
}, fd_write:function(a, b, c, d) {
|
|
3747
3691
|
try {
|
|
@@ -3749,71 +3693,71 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3749
3693
|
var e = Mb(a);
|
|
3750
3694
|
a = b;
|
|
3751
3695
|
for (var f, g = b = 0; g < c; g++) {
|
|
3752
|
-
var k =
|
|
3696
|
+
var k = D[a >> 2], q = D[a + 4 >> 2];
|
|
3753
3697
|
a += 8;
|
|
3754
|
-
var n = e,
|
|
3698
|
+
var n = e, t = k, v = q, y = f, l = u;
|
|
3755
3699
|
if (0 > v || 0 > y) {
|
|
3756
|
-
throw new
|
|
3700
|
+
throw new H(28);
|
|
3757
3701
|
}
|
|
3758
|
-
if (null === n.
|
|
3759
|
-
throw new
|
|
3702
|
+
if (null === n.V) {
|
|
3703
|
+
throw new H(8);
|
|
3760
3704
|
}
|
|
3761
3705
|
if (0 === (n.flags & 2097155)) {
|
|
3762
|
-
throw new
|
|
3706
|
+
throw new H(8);
|
|
3763
3707
|
}
|
|
3764
3708
|
if (16384 === (n.node.mode & 61440)) {
|
|
3765
|
-
throw new
|
|
3709
|
+
throw new H(31);
|
|
3766
3710
|
}
|
|
3767
3711
|
if (!n.m.write) {
|
|
3768
|
-
throw new
|
|
3712
|
+
throw new H(28);
|
|
3769
3713
|
}
|
|
3770
3714
|
n.seekable && n.flags & 1024 && Vb(n, 0, 2);
|
|
3771
3715
|
var r = "undefined" != typeof y;
|
|
3772
3716
|
if (!r) {
|
|
3773
3717
|
y = n.position;
|
|
3774
3718
|
} else if (!n.seekable) {
|
|
3775
|
-
throw new
|
|
3719
|
+
throw new H(70);
|
|
3776
3720
|
}
|
|
3777
|
-
var x = n.m.write(n, l,
|
|
3721
|
+
var x = n.m.write(n, l, t, v, y, void 0);
|
|
3778
3722
|
r || (n.position += x);
|
|
3779
3723
|
var z = x;
|
|
3780
3724
|
if (0 > z) {
|
|
3781
|
-
var
|
|
3725
|
+
var G = -1;
|
|
3782
3726
|
break a;
|
|
3783
3727
|
}
|
|
3784
3728
|
b += z;
|
|
3785
3729
|
"undefined" !== typeof f && (f += z);
|
|
3786
3730
|
}
|
|
3787
|
-
|
|
3731
|
+
G = b;
|
|
3788
3732
|
}
|
|
3789
|
-
|
|
3733
|
+
D[d >> 2] = G;
|
|
3790
3734
|
return 0;
|
|
3791
3735
|
} catch (C) {
|
|
3792
3736
|
if ("undefined" == typeof $b || "ErrnoError" !== C.name) {
|
|
3793
3737
|
throw C;
|
|
3794
3738
|
}
|
|
3795
|
-
return C.
|
|
3739
|
+
return C.Z;
|
|
3796
3740
|
}
|
|
3797
3741
|
}, glBindFramebuffer:Pd, glGetIntegerv:Xd, invoke_ii:qe, invoke_iii:re, invoke_iiii:se, invoke_iiiii:te, invoke_iiiiii:ue, invoke_iiiiiii:ve, invoke_iiiiiiiiii:we, invoke_v:xe, invoke_vi:ye, invoke_vii:ze, invoke_viii:Ae, invoke_viiii:Be, invoke_viiiiii:Ce, invoke_viiiiiii:De, invoke_viiiiiiii:Ee, strftime_l:(a, b, c, d) => ke(a, b, c, d)};
|
|
3798
3742
|
(function() {
|
|
3799
3743
|
function a(c) {
|
|
3800
3744
|
p = c = c.exports;
|
|
3801
3745
|
xa = p.memory;
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
m.monitorRunDependencies && m.monitorRunDependencies(
|
|
3807
|
-
if (0 ==
|
|
3808
|
-
var d =
|
|
3809
|
-
|
|
3746
|
+
Ba();
|
|
3747
|
+
Ca = p.__indirect_function_table;
|
|
3748
|
+
Ea.unshift(p.__wasm_call_ctors);
|
|
3749
|
+
Ha--;
|
|
3750
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Ha);
|
|
3751
|
+
if (0 == Ha && (null !== Ia && (clearInterval(Ia), Ia = null), Ja)) {
|
|
3752
|
+
var d = Ja;
|
|
3753
|
+
Ja = null;
|
|
3810
3754
|
d();
|
|
3811
3755
|
}
|
|
3812
3756
|
return c;
|
|
3813
3757
|
}
|
|
3814
3758
|
var b = {env:Fe, wasi_snapshot_preview1:Fe,};
|
|
3815
|
-
|
|
3816
|
-
m.monitorRunDependencies && m.monitorRunDependencies(
|
|
3759
|
+
Ha++;
|
|
3760
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Ha);
|
|
3817
3761
|
if (m.instantiateWasm) {
|
|
3818
3762
|
try {
|
|
3819
3763
|
return m.instantiateWasm(b, a);
|
|
@@ -3821,24 +3765,24 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3821
3765
|
ua("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3822
3766
|
}
|
|
3823
3767
|
}
|
|
3824
|
-
|
|
3768
|
+
Qa(b, function(c) {
|
|
3825
3769
|
a(c.instance);
|
|
3826
3770
|
}).catch(ba);
|
|
3827
3771
|
return {};
|
|
3828
3772
|
})();
|
|
3829
|
-
var tc = a => (tc = p.free)(a), Yd = a => (Yd = p.malloc)(a),
|
|
3773
|
+
var tc = a => (tc = p.free)(a), Yd = a => (Yd = p.malloc)(a), Ta = m._ma_device__on_notification_unlocked = a => (Ta = m._ma_device__on_notification_unlocked = p.ma_device__on_notification_unlocked)(a);
|
|
3830
3774
|
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = p.ma_malloc_emscripten)(a, b);
|
|
3831
3775
|
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = p.ma_free_emscripten)(a, b);
|
|
3832
|
-
var
|
|
3776
|
+
var Ua = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ua = m._ma_device_process_pcm_frames_capture__webaudio = p.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Va = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Va = m._ma_device_process_pcm_frames_playback__webaudio = p.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), pe = () => (pe = p.__errno_location)(), sc = a => (sc = p.__getTypeName)(a);
|
|
3833
3777
|
m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = p._embind_initialize_bindings)();
|
|
3834
3778
|
var ub = (a, b) => (ub = p.emscripten_builtin_memalign)(a, b), X = (a, b) => (X = p.setThrew)(a, b), Y = () => (Y = p.stackSave)(), Z = a => (Z = p.stackRestore)(a);
|
|
3835
3779
|
m.dynCall_iiiij = (a, b, c, d, e, f) => (m.dynCall_iiiij = p.dynCall_iiiij)(a, b, c, d, e, f);
|
|
3836
3780
|
m.dynCall_viiij = (a, b, c, d, e, f) => (m.dynCall_viiij = p.dynCall_viiij)(a, b, c, d, e, f);
|
|
3837
3781
|
m.dynCall_iiij = (a, b, c, d, e) => (m.dynCall_iiij = p.dynCall_iiij)(a, b, c, d, e);
|
|
3838
3782
|
m.dynCall_viij = (a, b, c, d, e) => (m.dynCall_viij = p.dynCall_viij)(a, b, c, d, e);
|
|
3839
|
-
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = p.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3840
3783
|
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = p.dynCall_iiji)(a, b, c, d, e);
|
|
3841
3784
|
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = p.dynCall_jiji)(a, b, c, d, e);
|
|
3785
|
+
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = p.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3842
3786
|
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = p.dynCall_iij)(a, b, c, d);
|
|
3843
3787
|
m.dynCall_jii = (a, b, c) => (m.dynCall_jii = p.dynCall_jii)(a, b, c);
|
|
3844
3788
|
m.dynCall_viiiiij = (a, b, c, d, e, f, g, k) => (m.dynCall_viiiiij = p.dynCall_viiiiij)(a, b, c, d, e, f, g, k);
|
|
@@ -3970,11 +3914,11 @@ function De(a, b, c, d, e, f, g, k) {
|
|
|
3970
3914
|
}
|
|
3971
3915
|
}
|
|
3972
3916
|
function we(a, b, c, d, e, f, g, k, q, n) {
|
|
3973
|
-
var
|
|
3917
|
+
var t = Y();
|
|
3974
3918
|
try {
|
|
3975
3919
|
return Q(a)(b, c, d, e, f, g, k, q, n);
|
|
3976
3920
|
} catch (v) {
|
|
3977
|
-
Z(
|
|
3921
|
+
Z(t);
|
|
3978
3922
|
if (v !== v + 0) {
|
|
3979
3923
|
throw v;
|
|
3980
3924
|
}
|
|
@@ -3997,10 +3941,10 @@ function Ee(a, b, c, d, e, f, g, k, q) {
|
|
|
3997
3941
|
var n = Y();
|
|
3998
3942
|
try {
|
|
3999
3943
|
Q(a)(b, c, d, e, f, g, k, q);
|
|
4000
|
-
} catch (
|
|
3944
|
+
} catch (t) {
|
|
4001
3945
|
Z(n);
|
|
4002
|
-
if (
|
|
4003
|
-
throw
|
|
3946
|
+
if (t !== t + 0) {
|
|
3947
|
+
throw t;
|
|
4004
3948
|
}
|
|
4005
3949
|
X(1, 0);
|
|
4006
3950
|
}
|
|
@@ -4030,16 +3974,16 @@ function Ce(a, b, c, d, e, f, g) {
|
|
|
4030
3974
|
}
|
|
4031
3975
|
}
|
|
4032
3976
|
var Ge;
|
|
4033
|
-
|
|
3977
|
+
Ja = function He() {
|
|
4034
3978
|
Ge || Ie();
|
|
4035
|
-
Ge || (
|
|
3979
|
+
Ge || (Ja = He);
|
|
4036
3980
|
};
|
|
4037
3981
|
function Ie() {
|
|
4038
3982
|
function a() {
|
|
4039
3983
|
if (!Ge && (Ge = !0, m.calledRun = !0, !ya)) {
|
|
4040
3984
|
m.noFSInit || Xb || (Xb = !0, Wb(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? Zb("stdin", m.stdin) : Sb("/dev/tty", "/dev/stdin"), m.stdout ? Zb("stdout", null, m.stdout) : Sb("/dev/tty", "/dev/stdout"), m.stderr ? Zb("stderr", null, m.stderr) : Sb("/dev/tty1", "/dev/stderr"), Ub("/dev/stdin", 0), Ub("/dev/stdout", 1), Ub("/dev/stderr", 1));
|
|
4041
3985
|
Bb = !1;
|
|
4042
|
-
|
|
3986
|
+
Xa(Ea);
|
|
4043
3987
|
aa(m);
|
|
4044
3988
|
if (m.onRuntimeInitialized) {
|
|
4045
3989
|
m.onRuntimeInitialized();
|
|
@@ -4047,20 +3991,20 @@ function Ie() {
|
|
|
4047
3991
|
if (m.postRun) {
|
|
4048
3992
|
for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
|
|
4049
3993
|
var b = m.postRun.shift();
|
|
4050
|
-
|
|
3994
|
+
Fa.unshift(b);
|
|
4051
3995
|
}
|
|
4052
3996
|
}
|
|
4053
|
-
|
|
3997
|
+
Xa(Fa);
|
|
4054
3998
|
}
|
|
4055
3999
|
}
|
|
4056
|
-
if (!(0 <
|
|
4000
|
+
if (!(0 < Ha)) {
|
|
4057
4001
|
if (m.preRun) {
|
|
4058
4002
|
for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
|
|
4059
|
-
|
|
4003
|
+
Ga();
|
|
4060
4004
|
}
|
|
4061
4005
|
}
|
|
4062
|
-
|
|
4063
|
-
0 <
|
|
4006
|
+
Xa(Da);
|
|
4007
|
+
0 < Ha || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
|
|
4064
4008
|
setTimeout(function() {
|
|
4065
4009
|
m.setStatus("");
|
|
4066
4010
|
}, 1);
|