@rive-app/webgl 2.15.1 → 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.js +805 -852
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
package/rive.js
CHANGED
|
@@ -43,8 +43,8 @@ function ca() {
|
|
|
43
43
|
console.error(n);
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
-
this.
|
|
47
|
-
e && e.
|
|
46
|
+
this.kb();
|
|
47
|
+
e && e.Mb();
|
|
48
48
|
}
|
|
49
49
|
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
50
50
|
this.requestAnimationFrame = function(g) {
|
|
@@ -57,20 +57,20 @@ function ca() {
|
|
|
57
57
|
d.delete(g);
|
|
58
58
|
b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
|
|
59
59
|
};
|
|
60
|
-
this.
|
|
60
|
+
this.Kb = function(g) {
|
|
61
61
|
f && (document.body.remove(f), f = null);
|
|
62
62
|
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(k) {
|
|
63
63
|
f.innerHTML = "RIVE FPS " + k.toFixed(1);
|
|
64
64
|
}, document.body.appendChild(f));
|
|
65
65
|
e = new function() {
|
|
66
66
|
let k = 0, q = 0;
|
|
67
|
-
this.
|
|
67
|
+
this.Mb = function() {
|
|
68
68
|
var n = performance.now();
|
|
69
69
|
q ? (++k, n -= q, 1000 < n && (g(1000 * k / n), k = q = 0)) : (q = n, k = 0);
|
|
70
70
|
};
|
|
71
71
|
}();
|
|
72
72
|
};
|
|
73
|
-
this.
|
|
73
|
+
this.kb = function() {
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
function da() {
|
|
@@ -108,10 +108,10 @@ m.onRuntimeInitialized = function() {
|
|
|
108
108
|
};
|
|
109
109
|
m.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:d}) {
|
|
110
110
|
this.__parent.__construct.call(this);
|
|
111
|
-
this.
|
|
111
|
+
this.Bb = d;
|
|
112
112
|
}, loadContents:function(d, e) {
|
|
113
113
|
d = m.ptrToAsset(d);
|
|
114
|
-
return this.
|
|
114
|
+
return this.Bb(d, e);
|
|
115
115
|
},});
|
|
116
116
|
m.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
117
117
|
this.__parent.__construct.call(this);
|
|
@@ -136,11 +136,11 @@ m.onRuntimeInitialized = function() {
|
|
|
136
136
|
},});
|
|
137
137
|
m.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
138
138
|
this.__parent.__construct.call(this);
|
|
139
|
-
this.
|
|
139
|
+
this.fb = [];
|
|
140
140
|
}, addLoader:function(d) {
|
|
141
|
-
this.
|
|
141
|
+
this.fb.push(d);
|
|
142
142
|
}, loadContents:function(d, e) {
|
|
143
|
-
for (let f of this.
|
|
143
|
+
for (let f of this.fb) {
|
|
144
144
|
if (f.loadContents(d, e)) {
|
|
145
145
|
return !0;
|
|
146
146
|
}
|
|
@@ -152,27 +152,27 @@ const fa = m.onRuntimeInitialized;
|
|
|
152
152
|
m.onRuntimeInitialized = function() {
|
|
153
153
|
function a(l) {
|
|
154
154
|
this.F = l;
|
|
155
|
-
this.
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
155
|
+
this.yb = l.getContext("2d");
|
|
156
|
+
this.Db = e;
|
|
157
|
+
this.R = [];
|
|
158
158
|
this.ja = 0;
|
|
159
159
|
this.clear = function() {
|
|
160
160
|
console.assert(0 == this.ja);
|
|
161
|
-
this.
|
|
161
|
+
this.R = [];
|
|
162
162
|
f.delete(this);
|
|
163
163
|
};
|
|
164
164
|
this.save = function() {
|
|
165
165
|
++this.ja;
|
|
166
|
-
this.
|
|
166
|
+
this.R.push(e.save.bind(e));
|
|
167
167
|
};
|
|
168
168
|
this.restore = function() {
|
|
169
|
-
0 < this.ja && (this.
|
|
169
|
+
0 < this.ja && (this.R.push(e.restore.bind(e)), --this.ja);
|
|
170
170
|
};
|
|
171
171
|
this.transform = function(r) {
|
|
172
|
-
this.
|
|
172
|
+
this.R.push(e.transform.bind(e, r));
|
|
173
173
|
};
|
|
174
|
-
this.align = function(r, x, z,
|
|
175
|
-
this.
|
|
174
|
+
this.align = function(r, x, z, G) {
|
|
175
|
+
this.R.push(e.align.bind(e, r, x, z, G));
|
|
176
176
|
};
|
|
177
177
|
this.flush = function() {
|
|
178
178
|
console.assert(0 == this.ja);
|
|
@@ -183,24 +183,24 @@ m.onRuntimeInitialized = function() {
|
|
|
183
183
|
function b(l) {
|
|
184
184
|
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);
|
|
185
185
|
x || (x = l.getContext("webgl", r));
|
|
186
|
-
var z = x,
|
|
187
|
-
z.canvas && (z.canvas.
|
|
188
|
-
|
|
189
|
-
("undefined" == typeof r.
|
|
190
|
-
la(
|
|
186
|
+
var z = x, G = ia(ja), C = {handle:G, attributes:r, version:r.Dc, Ta:z};
|
|
187
|
+
z.canvas && (z.canvas.pc = C);
|
|
188
|
+
ja[G] = C;
|
|
189
|
+
("undefined" == typeof r.Jb || r.Jb) && ka(C);
|
|
190
|
+
la(G);
|
|
191
191
|
r = g(l.width, l.height);
|
|
192
|
-
r.
|
|
192
|
+
r.Ab = G;
|
|
193
193
|
r.F = l;
|
|
194
|
-
r.
|
|
195
|
-
r.
|
|
196
|
-
r.
|
|
194
|
+
r.Va = l.width;
|
|
195
|
+
r.Ua = l.height;
|
|
196
|
+
r.zb = x;
|
|
197
197
|
return r;
|
|
198
198
|
}
|
|
199
199
|
function c() {
|
|
200
200
|
if (e) {
|
|
201
|
-
var l = e.
|
|
202
|
-
for (var
|
|
203
|
-
|
|
201
|
+
var l = e.Cb, r = 0, x = 0, z = 0, G = Array(f.size), C = 0;
|
|
202
|
+
for (var J of f) {
|
|
203
|
+
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;
|
|
204
204
|
}
|
|
205
205
|
f.clear();
|
|
206
206
|
if (!(0 >= z)) {
|
|
@@ -210,48 +210,48 @@ m.onRuntimeInitialized = function() {
|
|
|
210
210
|
}
|
|
211
211
|
r = Math.min(r, l);
|
|
212
212
|
r = Math.min(x, l);
|
|
213
|
-
|
|
213
|
+
G.sort((ha, Fb) => Fb.Ja - ha.Ja);
|
|
214
214
|
z = new m.DynamicRectanizer(l);
|
|
215
|
-
for (
|
|
215
|
+
for (J = 0; J < G.length;) {
|
|
216
216
|
z.reset(r, x);
|
|
217
|
-
for (C =
|
|
218
|
-
var
|
|
219
|
-
if (0 >
|
|
220
|
-
console.assert(C >
|
|
217
|
+
for (C = J; C < G.length; ++C) {
|
|
218
|
+
var N = G[C], K = z.addRect(N.da, N.ca);
|
|
219
|
+
if (0 > K) {
|
|
220
|
+
console.assert(C > J);
|
|
221
221
|
break;
|
|
222
222
|
}
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
N.pa = K & 65535;
|
|
224
|
+
N.qa = K >> 16;
|
|
225
225
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
console.assert(
|
|
229
|
-
console.assert(
|
|
230
|
-
console.assert(
|
|
231
|
-
console.assert(
|
|
232
|
-
e.F.width !=
|
|
233
|
-
e.F.height !=
|
|
226
|
+
N = q.push(z.drawWidth());
|
|
227
|
+
K = n.push(z.drawHeight());
|
|
228
|
+
console.assert(N >= z.drawWidth());
|
|
229
|
+
console.assert(K >= z.drawHeight());
|
|
230
|
+
console.assert(N <= l);
|
|
231
|
+
console.assert(K <= l);
|
|
232
|
+
e.F.width != N && (e.F.width = N);
|
|
233
|
+
e.F.height != K && (e.F.height = K);
|
|
234
234
|
e.clear();
|
|
235
|
-
for (
|
|
236
|
-
|
|
237
|
-
e.saveClipRect(
|
|
238
|
-
let
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
e.transform(
|
|
245
|
-
for (const
|
|
246
|
-
|
|
235
|
+
for (N = J; N < C; ++N) {
|
|
236
|
+
K = G[N];
|
|
237
|
+
e.saveClipRect(K.pa, K.qa, K.pa + K.da, K.qa + K.ca);
|
|
238
|
+
let ha = new m.Mat2D();
|
|
239
|
+
ha.xx = K.da / K.F.width;
|
|
240
|
+
ha.yy = K.ca / K.F.height;
|
|
241
|
+
ha.xy = ha.yx = 0;
|
|
242
|
+
ha.tx = K.pa;
|
|
243
|
+
ha.ty = K.qa;
|
|
244
|
+
e.transform(ha);
|
|
245
|
+
for (const Fb of K.R) {
|
|
246
|
+
Fb();
|
|
247
247
|
}
|
|
248
248
|
e.restoreClipRect();
|
|
249
|
-
|
|
249
|
+
K.R = [];
|
|
250
250
|
}
|
|
251
|
-
for (e.flush();
|
|
252
|
-
|
|
251
|
+
for (e.flush(); J < C; ++J) {
|
|
252
|
+
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);
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
J = C;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
}
|
|
@@ -261,17 +261,17 @@ m.onRuntimeInitialized = function() {
|
|
|
261
261
|
let e = null;
|
|
262
262
|
const f = new Set(), g = m.makeRenderer;
|
|
263
263
|
m.makeRenderer = function(l, r) {
|
|
264
|
-
return r ? (e || (e = b(document.createElement("canvas")), r = e.
|
|
264
|
+
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);
|
|
265
265
|
};
|
|
266
266
|
const k = m.Artboard.prototype.draw;
|
|
267
267
|
m.Artboard.prototype.draw = function(l) {
|
|
268
|
-
l.
|
|
268
|
+
l.R ? l.R.push(k.bind(this, l.Db)) : k.call(this, l);
|
|
269
269
|
};
|
|
270
|
-
const q = new da(), n = new da(),
|
|
271
|
-
m.requestAnimationFrame =
|
|
272
|
-
m.cancelAnimationFrame =
|
|
273
|
-
m.enableFPSCounter =
|
|
274
|
-
|
|
270
|
+
const q = new da(), n = new da(), t = new ca();
|
|
271
|
+
m.requestAnimationFrame = t.requestAnimationFrame.bind(t);
|
|
272
|
+
m.cancelAnimationFrame = t.cancelAnimationFrame.bind(t);
|
|
273
|
+
m.enableFPSCounter = t.Kb.bind(t);
|
|
274
|
+
t.kb = c;
|
|
275
275
|
m.resolveAnimationFrame = c;
|
|
276
276
|
let v = m.load;
|
|
277
277
|
m.load = function(l, r, x = !0) {
|
|
@@ -282,10 +282,10 @@ m.onRuntimeInitialized = function() {
|
|
|
282
282
|
};
|
|
283
283
|
const y = m.WebGLRenderer.prototype.clear;
|
|
284
284
|
m.WebGLRenderer.prototype.clear = function() {
|
|
285
|
-
la(this.
|
|
285
|
+
la(this.Ab);
|
|
286
286
|
const l = this.F;
|
|
287
|
-
if (this.
|
|
288
|
-
this.resize(l.width, l.height), this.
|
|
287
|
+
if (this.Va != l.width || this.Ua != l.height) {
|
|
288
|
+
this.resize(l.width, l.height), this.Va = l.width, this.Ua = l.height;
|
|
289
289
|
}
|
|
290
290
|
y.call(this);
|
|
291
291
|
};
|
|
@@ -321,24 +321,24 @@ var va;
|
|
|
321
321
|
m.wasmBinary && (va = m.wasmBinary);
|
|
322
322
|
var noExitRuntime = m.noExitRuntime || !0;
|
|
323
323
|
"object" != typeof WebAssembly && wa("no native wasm support detected");
|
|
324
|
-
var xa, p, ya = !1,
|
|
325
|
-
function
|
|
324
|
+
var xa, p, ya = !1, u, w, A, za, B, D, E, Aa;
|
|
325
|
+
function Ba() {
|
|
326
326
|
var a = xa.buffer;
|
|
327
|
-
m.HEAP8 =
|
|
328
|
-
m.HEAP16 =
|
|
329
|
-
m.HEAP32 =
|
|
327
|
+
m.HEAP8 = u = new Int8Array(a);
|
|
328
|
+
m.HEAP16 = A = new Int16Array(a);
|
|
329
|
+
m.HEAP32 = B = new Int32Array(a);
|
|
330
330
|
m.HEAPU8 = w = new Uint8Array(a);
|
|
331
|
-
m.HEAPU16 =
|
|
332
|
-
m.HEAPU32 =
|
|
333
|
-
m.HEAPF32 =
|
|
334
|
-
m.HEAPF64 =
|
|
331
|
+
m.HEAPU16 = za = new Uint16Array(a);
|
|
332
|
+
m.HEAPU32 = D = new Uint32Array(a);
|
|
333
|
+
m.HEAPF32 = E = new Float32Array(a);
|
|
334
|
+
m.HEAPF64 = Aa = new Float64Array(a);
|
|
335
335
|
}
|
|
336
|
-
var
|
|
337
|
-
function
|
|
336
|
+
var Ca, Da = [], Ea = [], Fa = [];
|
|
337
|
+
function Ga() {
|
|
338
338
|
var a = m.preRun.shift();
|
|
339
|
-
|
|
339
|
+
Da.unshift(a);
|
|
340
340
|
}
|
|
341
|
-
var
|
|
341
|
+
var Ha = 0, Ia = null, Ja = null;
|
|
342
342
|
function wa(a) {
|
|
343
343
|
if (m.onAbort) {
|
|
344
344
|
m.onAbort(a);
|
|
@@ -350,17 +350,17 @@ function wa(a) {
|
|
|
350
350
|
ba(a);
|
|
351
351
|
throw a;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Ka(a) {
|
|
354
354
|
return a.startsWith("data:application/octet-stream;base64,");
|
|
355
355
|
}
|
|
356
|
-
var
|
|
357
|
-
|
|
358
|
-
if (!La
|
|
359
|
-
var
|
|
360
|
-
|
|
356
|
+
var La;
|
|
357
|
+
La = "webgl_advanced.wasm";
|
|
358
|
+
if (!Ka(La)) {
|
|
359
|
+
var Ma = La;
|
|
360
|
+
La = m.locateFile ? m.locateFile(Ma, qa) : qa + Ma;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
363
|
-
if (a ==
|
|
362
|
+
function Na(a) {
|
|
363
|
+
if (a == La && va) {
|
|
364
364
|
return new Uint8Array(va);
|
|
365
365
|
}
|
|
366
366
|
if (sa) {
|
|
@@ -368,7 +368,7 @@ function Oa(a) {
|
|
|
368
368
|
}
|
|
369
369
|
throw "both async and sync fetching of the wasm failed";
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Oa(a) {
|
|
372
372
|
if (!va && (oa || pa)) {
|
|
373
373
|
if ("function" == typeof fetch && !a.startsWith("file://")) {
|
|
374
374
|
return fetch(a, {credentials:"same-origin"}).then(b => {
|
|
@@ -376,7 +376,7 @@ function Pa(a) {
|
|
|
376
376
|
throw "failed to load wasm binary file at '" + a + "'";
|
|
377
377
|
}
|
|
378
378
|
return b.arrayBuffer();
|
|
379
|
-
}).catch(() =>
|
|
379
|
+
}).catch(() => Na(a));
|
|
380
380
|
}
|
|
381
381
|
if (ra) {
|
|
382
382
|
return new Promise((b, c) => {
|
|
@@ -384,38 +384,38 @@ function Pa(a) {
|
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
|
-
return Promise.resolve().then(() =>
|
|
387
|
+
return Promise.resolve().then(() => Na(a));
|
|
388
388
|
}
|
|
389
|
-
function
|
|
390
|
-
return
|
|
389
|
+
function Pa(a, b, c) {
|
|
390
|
+
return Oa(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
|
|
391
391
|
ua("failed to asynchronously prepare wasm: " + d);
|
|
392
392
|
wa(d);
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
var c =
|
|
397
|
-
return va || "function" != typeof WebAssembly.instantiateStreaming ||
|
|
395
|
+
function Qa(a, b) {
|
|
396
|
+
var c = La;
|
|
397
|
+
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) {
|
|
398
398
|
ua("wasm streaming compile failed: " + e);
|
|
399
399
|
ua("falling back to ArrayBuffer instantiation");
|
|
400
|
-
return
|
|
400
|
+
return Pa(c, a, b);
|
|
401
401
|
}));
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var Ra, Sa, Wa = {684556:(a, b, c, d, e) => {
|
|
404
404
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
405
405
|
return 0;
|
|
406
406
|
}
|
|
407
407
|
if ("undefined" === typeof window.h) {
|
|
408
408
|
window.h = {Ea:0};
|
|
409
409
|
window.h.H = {};
|
|
410
|
-
window.h.H.
|
|
410
|
+
window.h.H.Ca = a;
|
|
411
411
|
window.h.H.capture = b;
|
|
412
412
|
window.h.H.La = c;
|
|
413
413
|
window.h.ha = {};
|
|
414
414
|
window.h.ha.stopped = d;
|
|
415
|
-
window.h.ha.
|
|
415
|
+
window.h.ha.sb = e;
|
|
416
416
|
let f = window.h;
|
|
417
417
|
f.C = [];
|
|
418
|
-
f.
|
|
418
|
+
f.nc = function(g) {
|
|
419
419
|
for (var k = 0; k < f.C.length; ++k) {
|
|
420
420
|
if (null == f.C[k]) {
|
|
421
421
|
return f.C[k] = g, k;
|
|
@@ -424,7 +424,7 @@ var E, F, Va = {688828:(a, b, c, d, e) => {
|
|
|
424
424
|
f.C.push(g);
|
|
425
425
|
return f.C.length - 1;
|
|
426
426
|
};
|
|
427
|
-
f.
|
|
427
|
+
f.xb = function(g) {
|
|
428
428
|
for (f.C[g] = null; 0 < f.C.length;) {
|
|
429
429
|
if (null == f.C[f.C.length - 1]) {
|
|
430
430
|
f.C.pop();
|
|
@@ -436,36 +436,36 @@ var E, F, Va = {688828:(a, b, c, d, e) => {
|
|
|
436
436
|
f.Kc = function(g) {
|
|
437
437
|
for (var k = 0; k < f.C.length; ++k) {
|
|
438
438
|
if (f.C[k] == g) {
|
|
439
|
-
return f.
|
|
439
|
+
return f.xb(k);
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
};
|
|
443
|
-
f.
|
|
443
|
+
f.ta = function(g) {
|
|
444
444
|
return f.C[g];
|
|
445
445
|
};
|
|
446
|
-
f.
|
|
446
|
+
f.wb = ["touchend", "click"];
|
|
447
447
|
f.unlock = function() {
|
|
448
448
|
for (var g = 0; g < f.C.length; ++g) {
|
|
449
449
|
var k = f.C[g];
|
|
450
|
-
null != k && null != k.I && k.state === f.ha.
|
|
451
|
-
|
|
450
|
+
null != k && null != k.I && k.state === f.ha.sb && k.I.resume().then(() => {
|
|
451
|
+
Ta(k.lb);
|
|
452
452
|
}, q => {
|
|
453
453
|
console.error("Failed to resume audiocontext", q);
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
|
-
f.
|
|
456
|
+
f.wb.map(function(q) {
|
|
457
457
|
document.removeEventListener(q, f.unlock, !0);
|
|
458
458
|
});
|
|
459
459
|
};
|
|
460
|
-
f.
|
|
460
|
+
f.wb.map(function(g) {
|
|
461
461
|
document.addEventListener(g, f.unlock, !0);
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
window.h.Ea += 1;
|
|
465
465
|
return 1;
|
|
466
|
-
},
|
|
466
|
+
}, 686734:() => {
|
|
467
467
|
"undefined" !== typeof window.h && (--window.h.Ea, 0 === window.h.Ea && delete window.h);
|
|
468
|
-
},
|
|
468
|
+
}, 686898:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 687002:() => {
|
|
469
469
|
try {
|
|
470
470
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
471
471
|
a.close();
|
|
@@ -473,34 +473,34 @@ var E, F, Va = {688828:(a, b, c, d, e) => {
|
|
|
473
473
|
} catch (c) {
|
|
474
474
|
return 0;
|
|
475
475
|
}
|
|
476
|
-
},
|
|
476
|
+
}, 687173:(a, b, c, d, e, f) => {
|
|
477
477
|
if ("undefined" === typeof window.h) {
|
|
478
478
|
return -1;
|
|
479
479
|
}
|
|
480
480
|
var g = {}, k = {};
|
|
481
|
-
a == window.h.H.
|
|
481
|
+
a == window.h.H.Ca && 0 != c && (k.sampleRate = c);
|
|
482
482
|
g.I = new (window.AudioContext || window.webkitAudioContext)(k);
|
|
483
483
|
g.I.suspend();
|
|
484
484
|
g.state = window.h.ha.stopped;
|
|
485
485
|
c = 0;
|
|
486
|
-
a != window.h.H.
|
|
487
|
-
g.
|
|
488
|
-
g.
|
|
489
|
-
if (null == g.
|
|
490
|
-
g.
|
|
486
|
+
a != window.h.H.Ca && (c = b);
|
|
487
|
+
g.X = g.I.createScriptProcessor(d, c, b);
|
|
488
|
+
g.X.onaudioprocess = function(q) {
|
|
489
|
+
if (null == g.ua || 0 == g.ua.length) {
|
|
490
|
+
g.ua = new Float32Array(E.buffer, e, d * b);
|
|
491
491
|
}
|
|
492
492
|
if (a == window.h.H.capture || a == window.h.H.La) {
|
|
493
493
|
for (var n = 0; n < b; n += 1) {
|
|
494
|
-
for (var
|
|
495
|
-
v[y * b + n] =
|
|
494
|
+
for (var t = q.inputBuffer.getChannelData(n), v = g.ua, y = 0; y < d; y += 1) {
|
|
495
|
+
v[y * b + n] = t[y];
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
|
|
498
|
+
Ua(f, d, e);
|
|
499
499
|
}
|
|
500
|
-
if (a == window.h.H.
|
|
501
|
-
for (
|
|
502
|
-
for (
|
|
503
|
-
|
|
500
|
+
if (a == window.h.H.Ca || a == window.h.H.La) {
|
|
501
|
+
for (Va(f, d, e), n = 0; n < q.outputBuffer.numberOfChannels; ++n) {
|
|
502
|
+
for (t = q.outputBuffer.getChannelData(n), v = g.ua, y = 0; y < d; y += 1) {
|
|
503
|
+
t[y] = v[y * b + n];
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
} else {
|
|
@@ -511,37 +511,37 @@ var E, F, Va = {688828:(a, b, c, d, e) => {
|
|
|
511
511
|
};
|
|
512
512
|
a != window.h.H.capture && a != window.h.H.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(q) {
|
|
513
513
|
g.Fa = g.I.createMediaStreamSource(q);
|
|
514
|
-
g.Fa.connect(g.
|
|
515
|
-
g.
|
|
514
|
+
g.Fa.connect(g.X);
|
|
515
|
+
g.X.connect(g.I.destination);
|
|
516
516
|
}).catch(function(q) {
|
|
517
517
|
console.log("Failed to get user media: " + q);
|
|
518
518
|
});
|
|
519
|
-
a == window.h.H.
|
|
520
|
-
g.
|
|
521
|
-
return window.h.
|
|
522
|
-
},
|
|
523
|
-
a = window.h.
|
|
524
|
-
void 0 !== a.
|
|
525
|
-
}, a.
|
|
519
|
+
a == window.h.H.Ca && g.X.connect(g.I.destination);
|
|
520
|
+
g.lb = f;
|
|
521
|
+
return window.h.nc(g);
|
|
522
|
+
}, 690050:a => window.h.ta(a).I.sampleRate, 690123:a => {
|
|
523
|
+
a = window.h.ta(a);
|
|
524
|
+
void 0 !== a.X && (a.X.onaudioprocess = function() {
|
|
525
|
+
}, a.X.disconnect(), a.X = void 0);
|
|
526
526
|
void 0 !== a.Fa && (a.Fa.disconnect(), a.Fa = void 0);
|
|
527
527
|
a.I.close();
|
|
528
528
|
a.I = void 0;
|
|
529
|
-
a.
|
|
530
|
-
},
|
|
531
|
-
window.h.
|
|
532
|
-
},
|
|
533
|
-
a = window.h.
|
|
529
|
+
a.lb = void 0;
|
|
530
|
+
}, 690523:a => {
|
|
531
|
+
window.h.xb(a);
|
|
532
|
+
}, 690573:a => {
|
|
533
|
+
a = window.h.ta(a);
|
|
534
534
|
a.I.resume();
|
|
535
|
-
a.state = window.h.ha.
|
|
536
|
-
},
|
|
537
|
-
a = window.h.
|
|
535
|
+
a.state = window.h.ha.sb;
|
|
536
|
+
}, 690712:a => {
|
|
537
|
+
a = window.h.ta(a);
|
|
538
538
|
a.I.suspend();
|
|
539
539
|
a.state = window.h.ha.stopped;
|
|
540
|
-
}},
|
|
540
|
+
}}, Xa = a => {
|
|
541
541
|
for (; 0 < a.length;) {
|
|
542
542
|
a.shift()(m);
|
|
543
543
|
}
|
|
544
|
-
},
|
|
544
|
+
}, Ya = (a, b) => {
|
|
545
545
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
546
546
|
var e = a[d];
|
|
547
547
|
"." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
|
|
@@ -552,12 +552,12 @@ var E, F, Va = {688828:(a, b, c, d, e) => {
|
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
return a;
|
|
555
|
-
},
|
|
555
|
+
}, Za = a => {
|
|
556
556
|
var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
|
|
557
|
-
(a =
|
|
557
|
+
(a = Ya(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
|
|
558
558
|
a && c && (a += "/");
|
|
559
559
|
return (b ? "/" : "") + a;
|
|
560
|
-
},
|
|
560
|
+
}, $a = a => {
|
|
561
561
|
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
|
|
562
562
|
a = b[0];
|
|
563
563
|
b = b[1];
|
|
@@ -566,21 +566,21 @@ var E, F, Va = {688828:(a, b, c, d, e) => {
|
|
|
566
566
|
}
|
|
567
567
|
b && (b = b.substr(0, b.length - 1));
|
|
568
568
|
return a + b;
|
|
569
|
-
},
|
|
569
|
+
}, ab = a => {
|
|
570
570
|
if ("/" === a) {
|
|
571
571
|
return "/";
|
|
572
572
|
}
|
|
573
|
-
a =
|
|
573
|
+
a = Za(a);
|
|
574
574
|
a = a.replace(/\/$/, "");
|
|
575
575
|
var b = a.lastIndexOf("/");
|
|
576
576
|
return -1 === b ? a : a.substr(b + 1);
|
|
577
|
-
},
|
|
577
|
+
}, bb = () => {
|
|
578
578
|
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
579
579
|
return a => crypto.getRandomValues(a);
|
|
580
580
|
}
|
|
581
581
|
wa("initRandomDevice");
|
|
582
|
-
},
|
|
583
|
-
function
|
|
582
|
+
}, cb = a => (cb = bb())(a);
|
|
583
|
+
function db() {
|
|
584
584
|
for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
|
|
585
585
|
b = 0 <= c ? arguments[c] : "/";
|
|
586
586
|
if ("string" != typeof b) {
|
|
@@ -592,16 +592,16 @@ function cb() {
|
|
|
592
592
|
a = b + "/" + a;
|
|
593
593
|
b = "/" === b.charAt(0);
|
|
594
594
|
}
|
|
595
|
-
a =
|
|
595
|
+
a = Ya(a.split("/").filter(d => !!d), !b).join("/");
|
|
596
596
|
return (b ? "/" : "") + a || ".";
|
|
597
597
|
}
|
|
598
|
-
var
|
|
598
|
+
var eb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, F = (a, b, c) => {
|
|
599
599
|
var d = b + c;
|
|
600
600
|
for (c = b; a[c] && !(c >= d);) {
|
|
601
601
|
++c;
|
|
602
602
|
}
|
|
603
|
-
if (16 < c - b && a.buffer &&
|
|
604
|
-
return
|
|
603
|
+
if (16 < c - b && a.buffer && eb) {
|
|
604
|
+
return eb.decode(a.subarray(b, c));
|
|
605
605
|
}
|
|
606
606
|
for (d = ""; b < c;) {
|
|
607
607
|
var e = a[b++];
|
|
@@ -677,32 +677,32 @@ function ib(a, b) {
|
|
|
677
677
|
}
|
|
678
678
|
var jb = [];
|
|
679
679
|
function kb(a, b) {
|
|
680
|
-
jb[a] = {input:[], D:[],
|
|
680
|
+
jb[a] = {input:[], D:[], T:b};
|
|
681
681
|
lb(a, mb);
|
|
682
682
|
}
|
|
683
683
|
var mb = {open:function(a) {
|
|
684
|
-
var b = jb[a.node.
|
|
684
|
+
var b = jb[a.node.Da];
|
|
685
685
|
if (!b) {
|
|
686
|
-
throw new
|
|
686
|
+
throw new H(43);
|
|
687
687
|
}
|
|
688
688
|
a.s = b;
|
|
689
689
|
a.seekable = !1;
|
|
690
690
|
}, close:function(a) {
|
|
691
|
-
a.s.
|
|
692
|
-
},
|
|
693
|
-
a.s.
|
|
691
|
+
a.s.T.sa(a.s);
|
|
692
|
+
}, sa:function(a) {
|
|
693
|
+
a.s.T.sa(a.s);
|
|
694
694
|
}, read:function(a, b, c, d) {
|
|
695
|
-
if (!a.s || !a.s.
|
|
696
|
-
throw new
|
|
695
|
+
if (!a.s || !a.s.T.eb) {
|
|
696
|
+
throw new H(60);
|
|
697
697
|
}
|
|
698
698
|
for (var e = 0, f = 0; f < d; f++) {
|
|
699
699
|
try {
|
|
700
|
-
var g = a.s.
|
|
700
|
+
var g = a.s.T.eb(a.s);
|
|
701
701
|
} catch (k) {
|
|
702
|
-
throw new
|
|
702
|
+
throw new H(29);
|
|
703
703
|
}
|
|
704
704
|
if (void 0 === g && 0 === e) {
|
|
705
|
-
throw new
|
|
705
|
+
throw new H(6);
|
|
706
706
|
}
|
|
707
707
|
if (null === g || void 0 === g) {
|
|
708
708
|
break;
|
|
@@ -713,15 +713,15 @@ var mb = {open:function(a) {
|
|
|
713
713
|
e && (a.node.timestamp = Date.now());
|
|
714
714
|
return e;
|
|
715
715
|
}, write:function(a, b, c, d) {
|
|
716
|
-
if (!a.s || !a.s.
|
|
717
|
-
throw new
|
|
716
|
+
if (!a.s || !a.s.T.Oa) {
|
|
717
|
+
throw new H(60);
|
|
718
718
|
}
|
|
719
719
|
try {
|
|
720
720
|
for (var e = 0; e < d; e++) {
|
|
721
|
-
a.s.
|
|
721
|
+
a.s.T.Oa(a.s, b[c + e]);
|
|
722
722
|
}
|
|
723
723
|
} catch (f) {
|
|
724
|
-
throw new
|
|
724
|
+
throw new H(29);
|
|
725
725
|
}
|
|
726
726
|
d && (a.node.timestamp = Date.now());
|
|
727
727
|
return e;
|
|
@@ -739,117 +739,117 @@ var mb = {open:function(a) {
|
|
|
739
739
|
a = fb.shift();
|
|
740
740
|
}
|
|
741
741
|
return a;
|
|
742
|
-
},
|
|
743
|
-
null === b || 10 === b ? (ta(
|
|
744
|
-
},
|
|
745
|
-
a.D && 0 < a.D.length && (ta(
|
|
746
|
-
},
|
|
747
|
-
return {
|
|
748
|
-
},
|
|
742
|
+
}, Oa:function(a, b) {
|
|
743
|
+
null === b || 10 === b ? (ta(F(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
744
|
+
}, sa:function(a) {
|
|
745
|
+
a.D && 0 < a.D.length && (ta(F(a.D, 0)), a.D = []);
|
|
746
|
+
}, Wb:function() {
|
|
747
|
+
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,]};
|
|
748
|
+
}, Xb:function() {
|
|
749
749
|
return 0;
|
|
750
|
-
},
|
|
750
|
+
}, Yb:function() {
|
|
751
751
|
return [24, 80];
|
|
752
|
-
},}, ob = {
|
|
753
|
-
null === b || 10 === b ? (ua(
|
|
754
|
-
},
|
|
755
|
-
a.D && 0 < a.D.length && (ua(
|
|
752
|
+
},}, ob = {Oa:function(a, b) {
|
|
753
|
+
null === b || 10 === b ? (ua(F(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
754
|
+
}, sa:function(a) {
|
|
755
|
+
a.D && 0 < a.D.length && (ua(F(a.D, 0)), a.D = []);
|
|
756
756
|
},};
|
|
757
757
|
function pb(a, b) {
|
|
758
|
-
var c = a.
|
|
759
|
-
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.
|
|
758
|
+
var c = a.j ? a.j.length : 0;
|
|
759
|
+
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));
|
|
760
760
|
}
|
|
761
|
-
var I = {
|
|
761
|
+
var I = {N:null, S() {
|
|
762
762
|
return I.createNode(null, "/", 16895, 0);
|
|
763
763
|
}, createNode(a, b, c, d) {
|
|
764
764
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
765
|
-
throw new
|
|
765
|
+
throw new H(63);
|
|
766
766
|
}
|
|
767
|
-
I.
|
|
767
|
+
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}});
|
|
768
768
|
c = rb(a, b, c, d);
|
|
769
|
-
16384 === (c.mode & 61440) ? (c.
|
|
769
|
+
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);
|
|
770
770
|
c.timestamp = Date.now();
|
|
771
|
-
a && (a.
|
|
771
|
+
a && (a.j[b] = c, a.timestamp = c.timestamp);
|
|
772
772
|
return c;
|
|
773
|
-
},
|
|
774
|
-
return a.
|
|
775
|
-
},
|
|
773
|
+
}, Ac(a) {
|
|
774
|
+
return a.j ? a.j.subarray ? a.j.subarray(0, a.v) : new Uint8Array(a.j) : new Uint8Array(0);
|
|
775
|
+
}, l:{W(a) {
|
|
776
776
|
var b = {};
|
|
777
|
-
b.
|
|
778
|
-
b.
|
|
777
|
+
b.zc = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
778
|
+
b.Cc = a.id;
|
|
779
779
|
b.mode = a.mode;
|
|
780
|
-
b.
|
|
780
|
+
b.Gc = 1;
|
|
781
781
|
b.uid = 0;
|
|
782
|
-
b.
|
|
783
|
-
b.
|
|
782
|
+
b.Bc = 0;
|
|
783
|
+
b.Da = a.Da;
|
|
784
784
|
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;
|
|
785
|
-
b.
|
|
786
|
-
b.
|
|
787
|
-
b.
|
|
788
|
-
b.
|
|
789
|
-
b.
|
|
785
|
+
b.qc = new Date(a.timestamp);
|
|
786
|
+
b.Ec = new Date(a.timestamp);
|
|
787
|
+
b.xc = new Date(a.timestamp);
|
|
788
|
+
b.Eb = 4096;
|
|
789
|
+
b.rc = Math.ceil(b.size / b.Eb);
|
|
790
790
|
return b;
|
|
791
|
-
},
|
|
791
|
+
}, O(a, b) {
|
|
792
792
|
void 0 !== b.mode && (a.mode = b.mode);
|
|
793
793
|
void 0 !== b.timestamp && (a.timestamp = b.timestamp);
|
|
794
794
|
if (void 0 !== b.size && (b = b.size, a.v != b)) {
|
|
795
795
|
if (0 == b) {
|
|
796
|
-
a.
|
|
796
|
+
a.j = null, a.v = 0;
|
|
797
797
|
} else {
|
|
798
|
-
var c = a.
|
|
799
|
-
a.
|
|
800
|
-
c && a.
|
|
798
|
+
var c = a.j;
|
|
799
|
+
a.j = new Uint8Array(b);
|
|
800
|
+
c && a.j.set(c.subarray(0, Math.min(b, a.v)));
|
|
801
801
|
a.v = b;
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
}, ka() {
|
|
805
805
|
throw sb[44];
|
|
806
|
-
},
|
|
806
|
+
}, Aa(a, b, c, d) {
|
|
807
807
|
return I.createNode(a, b, c, d);
|
|
808
|
-
},
|
|
808
|
+
}, qb(a, b, c) {
|
|
809
809
|
if (16384 === (a.mode & 61440)) {
|
|
810
810
|
try {
|
|
811
811
|
var d = tb(b, c);
|
|
812
812
|
} catch (f) {
|
|
813
813
|
}
|
|
814
814
|
if (d) {
|
|
815
|
-
for (var e in d.
|
|
816
|
-
throw new
|
|
815
|
+
for (var e in d.j) {
|
|
816
|
+
throw new H(55);
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
|
-
delete a.parent.
|
|
820
|
+
delete a.parent.j[a.name];
|
|
821
821
|
a.parent.timestamp = Date.now();
|
|
822
822
|
a.name = c;
|
|
823
|
-
b.
|
|
823
|
+
b.j[c] = a;
|
|
824
824
|
b.timestamp = a.parent.timestamp;
|
|
825
825
|
a.parent = b;
|
|
826
|
-
},
|
|
827
|
-
delete a.
|
|
826
|
+
}, vb(a, b) {
|
|
827
|
+
delete a.j[b];
|
|
828
828
|
a.timestamp = Date.now();
|
|
829
|
-
},
|
|
829
|
+
}, rb(a, b) {
|
|
830
830
|
var c = tb(a, b), d;
|
|
831
|
-
for (d in c.
|
|
832
|
-
throw new
|
|
831
|
+
for (d in c.j) {
|
|
832
|
+
throw new H(55);
|
|
833
833
|
}
|
|
834
|
-
delete a.
|
|
834
|
+
delete a.j[b];
|
|
835
835
|
a.timestamp = Date.now();
|
|
836
|
-
},
|
|
836
|
+
}, ob(a) {
|
|
837
837
|
var b = [".", ".."], c;
|
|
838
|
-
for (c in a.
|
|
839
|
-
a.
|
|
838
|
+
for (c in a.j) {
|
|
839
|
+
a.j.hasOwnProperty(c) && b.push(c);
|
|
840
840
|
}
|
|
841
841
|
return b;
|
|
842
842
|
}, Ga(a, b, c) {
|
|
843
843
|
a = I.createNode(a, b, 41471, 0);
|
|
844
844
|
a.link = c;
|
|
845
845
|
return a;
|
|
846
|
-
},
|
|
846
|
+
}, la(a) {
|
|
847
847
|
if (40960 !== (a.mode & 61440)) {
|
|
848
|
-
throw new
|
|
848
|
+
throw new H(28);
|
|
849
849
|
}
|
|
850
850
|
return a.link;
|
|
851
851
|
},}, m:{read(a, b, c, d, e) {
|
|
852
|
-
var f = a.node.
|
|
852
|
+
var f = a.node.j;
|
|
853
853
|
if (e >= a.node.v) {
|
|
854
854
|
return 0;
|
|
855
855
|
}
|
|
@@ -863,29 +863,29 @@ var I = {O:null, T() {
|
|
|
863
863
|
}
|
|
864
864
|
return a;
|
|
865
865
|
}, write(a, b, c, d, e, f) {
|
|
866
|
-
b.buffer ===
|
|
866
|
+
b.buffer === u.buffer && (f = !1);
|
|
867
867
|
if (!d) {
|
|
868
868
|
return 0;
|
|
869
869
|
}
|
|
870
870
|
a = a.node;
|
|
871
871
|
a.timestamp = Date.now();
|
|
872
|
-
if (b.subarray && (!a.
|
|
872
|
+
if (b.subarray && (!a.j || a.j.subarray)) {
|
|
873
873
|
if (f) {
|
|
874
|
-
return a.
|
|
874
|
+
return a.j = b.subarray(c, c + d), a.v = d;
|
|
875
875
|
}
|
|
876
876
|
if (0 === a.v && 0 === e) {
|
|
877
|
-
return a.
|
|
877
|
+
return a.j = b.slice(c, c + d), a.v = d;
|
|
878
878
|
}
|
|
879
879
|
if (e + d <= a.v) {
|
|
880
|
-
return a.
|
|
880
|
+
return a.j.set(b.subarray(c, c + d), e), d;
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
pb(a, e + d);
|
|
884
|
-
if (a.
|
|
885
|
-
a.
|
|
884
|
+
if (a.j.subarray && b.subarray) {
|
|
885
|
+
a.j.set(b.subarray(c, c + d), e);
|
|
886
886
|
} else {
|
|
887
887
|
for (f = 0; f < d; f++) {
|
|
888
|
-
a.
|
|
888
|
+
a.j[e + f] = b[c + f];
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
891
|
a.v = Math.max(a.v, e + d);
|
|
@@ -893,18 +893,18 @@ var I = {O:null, T() {
|
|
|
893
893
|
}, $(a, b, c) {
|
|
894
894
|
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
|
|
895
895
|
if (0 > b) {
|
|
896
|
-
throw new
|
|
896
|
+
throw new H(28);
|
|
897
897
|
}
|
|
898
898
|
return b;
|
|
899
|
-
},
|
|
899
|
+
}, ra(a, b, c) {
|
|
900
900
|
pb(a.node, b + c);
|
|
901
901
|
a.node.v = Math.max(a.node.v, b + c);
|
|
902
|
-
},
|
|
902
|
+
}, hb(a, b, c, d, e) {
|
|
903
903
|
if (32768 !== (a.node.mode & 61440)) {
|
|
904
|
-
throw new
|
|
904
|
+
throw new H(43);
|
|
905
905
|
}
|
|
906
|
-
a = a.node.
|
|
907
|
-
if (e & 2 || a.buffer !==
|
|
906
|
+
a = a.node.j;
|
|
907
|
+
if (e & 2 || a.buffer !== u.buffer) {
|
|
908
908
|
if (0 < c || c + b < a.length) {
|
|
909
909
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
910
910
|
}
|
|
@@ -912,14 +912,14 @@ var I = {O:null, T() {
|
|
|
912
912
|
b = 65536 * Math.ceil(b / 65536);
|
|
913
913
|
(e = ub(65536, b)) ? (w.fill(0, e, e + b), b = e) : b = 0;
|
|
914
914
|
if (!b) {
|
|
915
|
-
throw new
|
|
915
|
+
throw new H(48);
|
|
916
916
|
}
|
|
917
|
-
|
|
917
|
+
u.set(a, b);
|
|
918
918
|
} else {
|
|
919
919
|
c = !1, b = a.byteOffset;
|
|
920
920
|
}
|
|
921
921
|
return {o:b, L:c};
|
|
922
|
-
},
|
|
922
|
+
}, jb(a, b, c, d) {
|
|
923
923
|
I.m.write(a, b, 0, d, c, !1);
|
|
924
924
|
return 0;
|
|
925
925
|
},},};
|
|
@@ -929,14 +929,14 @@ function vb(a, b) {
|
|
|
929
929
|
b && (c |= 146);
|
|
930
930
|
return c;
|
|
931
931
|
}
|
|
932
|
-
var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0,
|
|
933
|
-
a =
|
|
932
|
+
var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, H = null, sb = {}, Db = (a, b = {}) => {
|
|
933
|
+
a = db(a);
|
|
934
934
|
if (!a) {
|
|
935
935
|
return {path:"", node:null};
|
|
936
936
|
}
|
|
937
|
-
b = Object.assign({bb:!0,
|
|
938
|
-
if (8 < b.
|
|
939
|
-
throw new
|
|
937
|
+
b = Object.assign({bb:!0, Qa:0}, b);
|
|
938
|
+
if (8 < b.Qa) {
|
|
939
|
+
throw new H(32);
|
|
940
940
|
}
|
|
941
941
|
a = a.split("/").filter(g => !!g);
|
|
942
942
|
for (var c = wb, d = "/", e = 0; e < a.length; e++) {
|
|
@@ -945,12 +945,12 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
945
945
|
break;
|
|
946
946
|
}
|
|
947
947
|
c = tb(c, a[e]);
|
|
948
|
-
d =
|
|
949
|
-
c.
|
|
950
|
-
if (!f || b.
|
|
948
|
+
d = Za(d + "/" + a[e]);
|
|
949
|
+
c.Ba && (!f || f && b.bb) && (c = c.Ba.root);
|
|
950
|
+
if (!f || b.ab) {
|
|
951
951
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
952
|
-
if (c = Cb(d), d =
|
|
953
|
-
throw new
|
|
952
|
+
if (c = Cb(d), d = db($a(d), c), c = Db(d, {Qa:b.Qa + 1}).node, 40 < f++) {
|
|
953
|
+
throw new H(32);
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
956
|
}
|
|
@@ -959,32 +959,32 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
959
959
|
}, Eb = a => {
|
|
960
960
|
for (var b;;) {
|
|
961
961
|
if (a === a.parent) {
|
|
962
|
-
return a = a.
|
|
962
|
+
return a = a.S.ib, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
963
963
|
}
|
|
964
964
|
b = b ? `${a.name}/${b}` : a.name;
|
|
965
965
|
a = a.parent;
|
|
966
966
|
}
|
|
967
|
-
},
|
|
967
|
+
}, Gb = (a, b) => {
|
|
968
968
|
for (var c = 0, d = 0; d < b.length; d++) {
|
|
969
969
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
970
970
|
}
|
|
971
971
|
return (a + c >>> 0) % Ab.length;
|
|
972
972
|
}, tb = (a, b) => {
|
|
973
973
|
var c;
|
|
974
|
-
if (c = (c = Hb(a, "x")) ? c : a.
|
|
975
|
-
throw new
|
|
974
|
+
if (c = (c = Hb(a, "x")) ? c : a.l.ka ? 0 : 2) {
|
|
975
|
+
throw new H(c, a);
|
|
976
976
|
}
|
|
977
|
-
for (c = Ab[
|
|
977
|
+
for (c = Ab[Gb(a.id, b)]; c; c = c.ac) {
|
|
978
978
|
var d = c.name;
|
|
979
979
|
if (c.parent.id === a.id && d === b) {
|
|
980
980
|
return c;
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
|
-
return a.
|
|
983
|
+
return a.l.ka(a, b);
|
|
984
984
|
}, rb = (a, b, c, d) => {
|
|
985
985
|
a = new Ib(a, b, c, d);
|
|
986
|
-
b =
|
|
987
|
-
a.
|
|
986
|
+
b = Gb(a.parent.id, a.name);
|
|
987
|
+
a.ac = Ab[b];
|
|
988
988
|
return Ab[b] = a;
|
|
989
989
|
}, Jb = a => {
|
|
990
990
|
var b = ["r", "w", "rw"][a & 3];
|
|
@@ -1014,11 +1014,11 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
1014
1014
|
return a;
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
|
-
throw new
|
|
1017
|
+
throw new H(33);
|
|
1018
1018
|
}, Mb = a => {
|
|
1019
1019
|
a = yb[a];
|
|
1020
1020
|
if (!a) {
|
|
1021
|
-
throw new
|
|
1021
|
+
throw new H(8);
|
|
1022
1022
|
}
|
|
1023
1023
|
return a;
|
|
1024
1024
|
}, Ob = (a, b = -1) => {
|
|
@@ -1039,82 +1039,82 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
1039
1039
|
},},}));
|
|
1040
1040
|
a = Object.assign(new Nb(), a);
|
|
1041
1041
|
-1 == b && (b = Lb());
|
|
1042
|
-
a.
|
|
1042
|
+
a.V = b;
|
|
1043
1043
|
return yb[b] = a;
|
|
1044
1044
|
}, qb = {open:a => {
|
|
1045
|
-
a.m = xb[a.node.
|
|
1045
|
+
a.m = xb[a.node.Da].m;
|
|
1046
1046
|
a.m.open && a.m.open(a);
|
|
1047
1047
|
}, $:() => {
|
|
1048
|
-
throw new
|
|
1048
|
+
throw new H(70);
|
|
1049
1049
|
},}, lb = (a, b) => {
|
|
1050
1050
|
xb[a] = {m:b};
|
|
1051
1051
|
}, Pb = (a, b) => {
|
|
1052
1052
|
var c = "/" === b, d = !b;
|
|
1053
1053
|
if (c && wb) {
|
|
1054
|
-
throw new
|
|
1054
|
+
throw new H(10);
|
|
1055
1055
|
}
|
|
1056
1056
|
if (!c && !d) {
|
|
1057
1057
|
var e = Db(b, {bb:!1});
|
|
1058
1058
|
b = e.path;
|
|
1059
1059
|
e = e.node;
|
|
1060
|
-
if (e.
|
|
1061
|
-
throw new
|
|
1060
|
+
if (e.Ba) {
|
|
1061
|
+
throw new H(10);
|
|
1062
1062
|
}
|
|
1063
1063
|
if (16384 !== (e.mode & 61440)) {
|
|
1064
|
-
throw new
|
|
1064
|
+
throw new H(54);
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
|
-
b = {type:a, Ic:{},
|
|
1068
|
-
a = a.
|
|
1069
|
-
a.
|
|
1067
|
+
b = {type:a, Ic:{}, ib:b, $b:[]};
|
|
1068
|
+
a = a.S(b);
|
|
1069
|
+
a.S = b;
|
|
1070
1070
|
b.root = a;
|
|
1071
|
-
c ? wb = a : e && (e.
|
|
1071
|
+
c ? wb = a : e && (e.Ba = b, e.S && e.S.$b.push(b));
|
|
1072
1072
|
}, Qb = (a, b, c) => {
|
|
1073
1073
|
var d = Db(a, {parent:!0}).node;
|
|
1074
|
-
a =
|
|
1074
|
+
a = ab(a);
|
|
1075
1075
|
if (!a || "." === a || ".." === a) {
|
|
1076
|
-
throw new
|
|
1076
|
+
throw new H(28);
|
|
1077
1077
|
}
|
|
1078
1078
|
var e = Kb(d, a);
|
|
1079
1079
|
if (e) {
|
|
1080
|
-
throw new
|
|
1080
|
+
throw new H(e);
|
|
1081
1081
|
}
|
|
1082
|
-
if (!d.
|
|
1083
|
-
throw new
|
|
1082
|
+
if (!d.l.Aa) {
|
|
1083
|
+
throw new H(63);
|
|
1084
1084
|
}
|
|
1085
|
-
return d.
|
|
1085
|
+
return d.l.Aa(d, a, b, c);
|
|
1086
1086
|
}, Rb = (a, b, c) => {
|
|
1087
1087
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1088
1088
|
Qb(a, b | 8192, c);
|
|
1089
1089
|
}, Sb = (a, b) => {
|
|
1090
|
-
if (!
|
|
1091
|
-
throw new
|
|
1090
|
+
if (!db(a)) {
|
|
1091
|
+
throw new H(44);
|
|
1092
1092
|
}
|
|
1093
1093
|
var c = Db(b, {parent:!0}).node;
|
|
1094
1094
|
if (!c) {
|
|
1095
|
-
throw new
|
|
1095
|
+
throw new H(44);
|
|
1096
1096
|
}
|
|
1097
|
-
b =
|
|
1097
|
+
b = ab(b);
|
|
1098
1098
|
var d = Kb(c, b);
|
|
1099
1099
|
if (d) {
|
|
1100
|
-
throw new
|
|
1100
|
+
throw new H(d);
|
|
1101
1101
|
}
|
|
1102
|
-
if (!c.
|
|
1103
|
-
throw new
|
|
1102
|
+
if (!c.l.Ga) {
|
|
1103
|
+
throw new H(63);
|
|
1104
1104
|
}
|
|
1105
|
-
c.
|
|
1105
|
+
c.l.Ga(c, b, a);
|
|
1106
1106
|
}, Cb = a => {
|
|
1107
1107
|
a = Db(a).node;
|
|
1108
1108
|
if (!a) {
|
|
1109
|
-
throw new
|
|
1109
|
+
throw new H(44);
|
|
1110
1110
|
}
|
|
1111
|
-
if (!a.
|
|
1112
|
-
throw new
|
|
1111
|
+
if (!a.l.la) {
|
|
1112
|
+
throw new H(28);
|
|
1113
1113
|
}
|
|
1114
|
-
return
|
|
1114
|
+
return db(Eb(a.parent), a.l.la(a));
|
|
1115
1115
|
}, Ub = (a, b, c) => {
|
|
1116
1116
|
if ("" === a) {
|
|
1117
|
-
throw new
|
|
1117
|
+
throw new H(44);
|
|
1118
1118
|
}
|
|
1119
1119
|
if ("string" == typeof b) {
|
|
1120
1120
|
var d = {r:0, "r+":2, w:577, "w+":578, a:1089, "a+":1090,}[b];
|
|
@@ -1127,9 +1127,9 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
1127
1127
|
if ("object" == typeof a) {
|
|
1128
1128
|
var e = a;
|
|
1129
1129
|
} else {
|
|
1130
|
-
a =
|
|
1130
|
+
a = Za(a);
|
|
1131
1131
|
try {
|
|
1132
|
-
e = Db(a, {
|
|
1132
|
+
e = Db(a, {ab:!(b & 131072)}).node;
|
|
1133
1133
|
} catch (f) {
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
@@ -1137,71 +1137,71 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
1137
1137
|
if (b & 64) {
|
|
1138
1138
|
if (e) {
|
|
1139
1139
|
if (b & 128) {
|
|
1140
|
-
throw new
|
|
1140
|
+
throw new H(20);
|
|
1141
1141
|
}
|
|
1142
1142
|
} else {
|
|
1143
1143
|
e = Qb(a, c, 0), d = !0;
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
1146
|
if (!e) {
|
|
1147
|
-
throw new
|
|
1147
|
+
throw new H(44);
|
|
1148
1148
|
}
|
|
1149
1149
|
8192 === (e.mode & 61440) && (b &= -513);
|
|
1150
1150
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1151
|
-
throw new
|
|
1151
|
+
throw new H(54);
|
|
1152
1152
|
}
|
|
1153
1153
|
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Jb(b) || b & 512) ? 31 : Hb(e, Jb(b)) : 44)) {
|
|
1154
|
-
throw new
|
|
1154
|
+
throw new H(c);
|
|
1155
1155
|
}
|
|
1156
1156
|
if (b & 512 && !d) {
|
|
1157
1157
|
c = e;
|
|
1158
|
-
c = "string" == typeof c ? Db(c, {
|
|
1159
|
-
if (!c.
|
|
1160
|
-
throw new
|
|
1158
|
+
c = "string" == typeof c ? Db(c, {ab:!0}).node : c;
|
|
1159
|
+
if (!c.l.O) {
|
|
1160
|
+
throw new H(63);
|
|
1161
1161
|
}
|
|
1162
1162
|
if (16384 === (c.mode & 61440)) {
|
|
1163
|
-
throw new
|
|
1163
|
+
throw new H(31);
|
|
1164
1164
|
}
|
|
1165
1165
|
if (32768 !== (c.mode & 61440)) {
|
|
1166
|
-
throw new
|
|
1166
|
+
throw new H(28);
|
|
1167
1167
|
}
|
|
1168
1168
|
if (d = Hb(c, "w")) {
|
|
1169
|
-
throw new
|
|
1169
|
+
throw new H(d);
|
|
1170
1170
|
}
|
|
1171
|
-
c.
|
|
1171
|
+
c.l.O(c, {size:0, timestamp:Date.now()});
|
|
1172
1172
|
}
|
|
1173
1173
|
b &= -131713;
|
|
1174
|
-
e = Ob({node:e, path:Eb(e), flags:b, seekable:!0, position:0, m:e.m,
|
|
1174
|
+
e = Ob({node:e, path:Eb(e), flags:b, seekable:!0, position:0, m:e.m, oc:[], error:!1});
|
|
1175
1175
|
e.m.open && e.m.open(e);
|
|
1176
1176
|
!m.logReadFiles || b & 1 || (Tb || (Tb = {}), a in Tb || (Tb[a] = 1));
|
|
1177
1177
|
return e;
|
|
1178
1178
|
}, Vb = (a, b, c) => {
|
|
1179
|
-
if (null === a.
|
|
1180
|
-
throw new
|
|
1179
|
+
if (null === a.V) {
|
|
1180
|
+
throw new H(8);
|
|
1181
1181
|
}
|
|
1182
1182
|
if (!a.seekable || !a.m.$) {
|
|
1183
|
-
throw new
|
|
1183
|
+
throw new H(70);
|
|
1184
1184
|
}
|
|
1185
1185
|
if (0 != c && 1 != c && 2 != c) {
|
|
1186
|
-
throw new
|
|
1186
|
+
throw new H(28);
|
|
1187
1187
|
}
|
|
1188
1188
|
a.position = a.m.$(a, b, c);
|
|
1189
|
-
a.
|
|
1189
|
+
a.oc = [];
|
|
1190
1190
|
}, Wb = () => {
|
|
1191
|
-
|
|
1191
|
+
H || (H = function(a, b) {
|
|
1192
1192
|
this.name = "ErrnoError";
|
|
1193
1193
|
this.node = b;
|
|
1194
|
-
this.
|
|
1195
|
-
this.
|
|
1194
|
+
this.dc = function(c) {
|
|
1195
|
+
this.Z = c;
|
|
1196
1196
|
};
|
|
1197
|
-
this.
|
|
1197
|
+
this.dc(a);
|
|
1198
1198
|
this.message = "FS error";
|
|
1199
|
-
},
|
|
1200
|
-
sb[a] = new
|
|
1199
|
+
}, H.prototype = Error(), H.prototype.constructor = H, [44].forEach(a => {
|
|
1200
|
+
sb[a] = new H(a);
|
|
1201
1201
|
sb[a].stack = "<generic error, no stack>";
|
|
1202
1202
|
}));
|
|
1203
1203
|
}, Xb, Zb = (a, b, c) => {
|
|
1204
|
-
a =
|
|
1204
|
+
a = Za("/dev/" + a);
|
|
1205
1205
|
var d = vb(!!b, !!c);
|
|
1206
1206
|
Yb || (Yb = 64);
|
|
1207
1207
|
var e = Yb++ << 8 | 0;
|
|
@@ -1210,20 +1210,20 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
1210
1210
|
}, close:() => {
|
|
1211
1211
|
c && c.buffer && c.buffer.length && c(10);
|
|
1212
1212
|
}, read:(f, g, k, q) => {
|
|
1213
|
-
for (var n = 0,
|
|
1213
|
+
for (var n = 0, t = 0; t < q; t++) {
|
|
1214
1214
|
try {
|
|
1215
1215
|
var v = b();
|
|
1216
1216
|
} catch (y) {
|
|
1217
|
-
throw new
|
|
1217
|
+
throw new H(29);
|
|
1218
1218
|
}
|
|
1219
1219
|
if (void 0 === v && 0 === n) {
|
|
1220
|
-
throw new
|
|
1220
|
+
throw new H(6);
|
|
1221
1221
|
}
|
|
1222
1222
|
if (null === v || void 0 === v) {
|
|
1223
1223
|
break;
|
|
1224
1224
|
}
|
|
1225
1225
|
n++;
|
|
1226
|
-
g[k +
|
|
1226
|
+
g[k + t] = v;
|
|
1227
1227
|
}
|
|
1228
1228
|
n && (f.node.timestamp = Date.now());
|
|
1229
1229
|
return n;
|
|
@@ -1231,8 +1231,8 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
1231
1231
|
for (var n = 0; n < q; n++) {
|
|
1232
1232
|
try {
|
|
1233
1233
|
c(g[k + n]);
|
|
1234
|
-
} catch (
|
|
1235
|
-
throw new
|
|
1234
|
+
} catch (t) {
|
|
1235
|
+
throw new H(29);
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
1238
|
q && (f.node.timestamp = Date.now());
|
|
@@ -1242,7 +1242,7 @@ var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {},
|
|
|
1242
1242
|
}, Yb, $b = {}, Nb, Tb, ac = void 0;
|
|
1243
1243
|
function bc() {
|
|
1244
1244
|
ac += 4;
|
|
1245
|
-
return
|
|
1245
|
+
return B[ac - 4 >> 2];
|
|
1246
1246
|
}
|
|
1247
1247
|
function cc(a) {
|
|
1248
1248
|
if (void 0 === a) {
|
|
@@ -1262,13 +1262,13 @@ function ec() {
|
|
|
1262
1262
|
this.L = [void 0];
|
|
1263
1263
|
this.cb = [];
|
|
1264
1264
|
}
|
|
1265
|
-
var
|
|
1266
|
-
function
|
|
1265
|
+
var L = new ec(), fc = void 0;
|
|
1266
|
+
function M(a) {
|
|
1267
1267
|
throw new fc(a);
|
|
1268
1268
|
}
|
|
1269
1269
|
var gc = a => {
|
|
1270
|
-
a ||
|
|
1271
|
-
return
|
|
1270
|
+
a || M("Cannot use deleted val. handle = " + a);
|
|
1271
|
+
return L.get(a).value;
|
|
1272
1272
|
}, hc = a => {
|
|
1273
1273
|
switch(a) {
|
|
1274
1274
|
case void 0:
|
|
@@ -1280,7 +1280,7 @@ var gc = a => {
|
|
|
1280
1280
|
case !1:
|
|
1281
1281
|
return 4;
|
|
1282
1282
|
default:
|
|
1283
|
-
return
|
|
1283
|
+
return L.ra({pb:1, value:a});
|
|
1284
1284
|
}
|
|
1285
1285
|
};
|
|
1286
1286
|
function ic(a) {
|
|
@@ -1298,7 +1298,7 @@ function ic(a) {
|
|
|
1298
1298
|
return c;
|
|
1299
1299
|
}
|
|
1300
1300
|
var jc = void 0, kc = void 0;
|
|
1301
|
-
function
|
|
1301
|
+
function O(a) {
|
|
1302
1302
|
for (var b = ""; w[a];) {
|
|
1303
1303
|
b += kc[w[a++]];
|
|
1304
1304
|
}
|
|
@@ -1314,21 +1314,21 @@ function mc() {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
var nc = void 0, oc = {};
|
|
1316
1316
|
function pc(a, b) {
|
|
1317
|
-
for (void 0 === b &&
|
|
1318
|
-
b = a.
|
|
1317
|
+
for (void 0 === b && M("ptr should not be undefined"); a.A;) {
|
|
1318
|
+
b = a.na(b), a = a.A;
|
|
1319
1319
|
}
|
|
1320
1320
|
return b;
|
|
1321
1321
|
}
|
|
1322
1322
|
var qc = {};
|
|
1323
1323
|
function rc(a) {
|
|
1324
1324
|
a = sc(a);
|
|
1325
|
-
var b =
|
|
1325
|
+
var b = O(a);
|
|
1326
1326
|
tc(a);
|
|
1327
1327
|
return b;
|
|
1328
1328
|
}
|
|
1329
1329
|
function uc(a, b) {
|
|
1330
1330
|
var c = qc[a];
|
|
1331
|
-
void 0 === c &&
|
|
1331
|
+
void 0 === c && M(b + " has unknown type " + rc(a));
|
|
1332
1332
|
return c;
|
|
1333
1333
|
}
|
|
1334
1334
|
function vc() {
|
|
@@ -1336,7 +1336,7 @@ function vc() {
|
|
|
1336
1336
|
var wc = !1;
|
|
1337
1337
|
function xc(a) {
|
|
1338
1338
|
--a.count.value;
|
|
1339
|
-
0 === a.count.value && (a.G ? a.K.
|
|
1339
|
+
0 === a.count.value && (a.G ? a.K.U(a.G) : a.u.i.U(a.o));
|
|
1340
1340
|
}
|
|
1341
1341
|
function yc(a, b, c) {
|
|
1342
1342
|
if (b === c) {
|
|
@@ -1346,7 +1346,7 @@ function yc(a, b, c) {
|
|
|
1346
1346
|
return null;
|
|
1347
1347
|
}
|
|
1348
1348
|
a = yc(a, b, c.A);
|
|
1349
|
-
return null === a ? null : c.
|
|
1349
|
+
return null === a ? null : c.Ib(a);
|
|
1350
1350
|
}
|
|
1351
1351
|
var zc = {};
|
|
1352
1352
|
function Ac(a, b) {
|
|
@@ -1388,7 +1388,7 @@ function Gc(a) {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
1390
|
function Hc(a) {
|
|
1391
|
-
return this.fromWireType(
|
|
1391
|
+
return this.fromWireType(B[a >> 2]);
|
|
1392
1392
|
}
|
|
1393
1393
|
var Ic = {}, Jc = {};
|
|
1394
1394
|
function P(a, b, c) {
|
|
@@ -1428,12 +1428,12 @@ function Lc(a) {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
function Mc(a, b, c = {}) {
|
|
1430
1430
|
var d = b.name;
|
|
1431
|
-
a ||
|
|
1431
|
+
a || M(`type "${d}" must have a positive integer typeid pointer`);
|
|
1432
1432
|
if (qc.hasOwnProperty(a)) {
|
|
1433
|
-
if (c.
|
|
1433
|
+
if (c.Tb) {
|
|
1434
1434
|
return;
|
|
1435
1435
|
}
|
|
1436
|
-
|
|
1436
|
+
M(`Cannot register type '${d}' twice`);
|
|
1437
1437
|
}
|
|
1438
1438
|
qc[a] = b;
|
|
1439
1439
|
delete Jc[a];
|
|
@@ -1446,7 +1446,7 @@ function Kc(a, b, c = {}) {
|
|
|
1446
1446
|
Mc(a, b, c);
|
|
1447
1447
|
}
|
|
1448
1448
|
function Nc(a) {
|
|
1449
|
-
|
|
1449
|
+
M(a.g.u.i.name + " instance already deleted");
|
|
1450
1450
|
}
|
|
1451
1451
|
function Oc() {
|
|
1452
1452
|
}
|
|
@@ -1454,7 +1454,7 @@ function Pc(a, b, c) {
|
|
|
1454
1454
|
if (void 0 === a[b].B) {
|
|
1455
1455
|
var d = a[b];
|
|
1456
1456
|
a[b] = function() {
|
|
1457
|
-
a[b].B.hasOwnProperty(arguments.length) ||
|
|
1457
|
+
a[b].B.hasOwnProperty(arguments.length) || M(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].B})!`);
|
|
1458
1458
|
return a[b].B[arguments.length].apply(this, arguments);
|
|
1459
1459
|
};
|
|
1460
1460
|
a[b].B = [];
|
|
@@ -1462,51 +1462,51 @@ function Pc(a, b, c) {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
}
|
|
1464
1464
|
function Qc(a, b, c) {
|
|
1465
|
-
m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) &&
|
|
1465
|
+
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));
|
|
1466
1466
|
}
|
|
1467
1467
|
function Rc(a, b, c, d, e, f, g, k) {
|
|
1468
1468
|
this.name = a;
|
|
1469
1469
|
this.constructor = b;
|
|
1470
|
-
this.
|
|
1471
|
-
this.
|
|
1470
|
+
this.M = c;
|
|
1471
|
+
this.U = d;
|
|
1472
1472
|
this.A = e;
|
|
1473
|
-
this.
|
|
1474
|
-
this.
|
|
1475
|
-
this.
|
|
1476
|
-
this.
|
|
1473
|
+
this.Nb = f;
|
|
1474
|
+
this.na = g;
|
|
1475
|
+
this.Ib = k;
|
|
1476
|
+
this.mb = [];
|
|
1477
1477
|
}
|
|
1478
1478
|
function Sc(a, b, c) {
|
|
1479
1479
|
for (; b !== c;) {
|
|
1480
|
-
b.
|
|
1480
|
+
b.na || M(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.na(a), b = b.A;
|
|
1481
1481
|
}
|
|
1482
1482
|
return a;
|
|
1483
1483
|
}
|
|
1484
1484
|
function Tc(a, b) {
|
|
1485
1485
|
if (null === b) {
|
|
1486
|
-
return this.
|
|
1486
|
+
return this.Na && M(`null is not a valid ${this.name}`), 0;
|
|
1487
1487
|
}
|
|
1488
|
-
b.g ||
|
|
1489
|
-
b.g.o ||
|
|
1488
|
+
b.g || M(`Cannot pass "${Uc(b)}" as a ${this.name}`);
|
|
1489
|
+
b.g.o || M(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1490
1490
|
return Sc(b.g.o, b.g.u.i, this.i);
|
|
1491
1491
|
}
|
|
1492
1492
|
function Vc(a, b) {
|
|
1493
1493
|
if (null === b) {
|
|
1494
|
-
this.
|
|
1495
|
-
if (this.
|
|
1496
|
-
var c = this.
|
|
1497
|
-
null !== a && a.push(this.
|
|
1494
|
+
this.Na && M(`null is not a valid ${this.name}`);
|
|
1495
|
+
if (this.wa) {
|
|
1496
|
+
var c = this.Pa();
|
|
1497
|
+
null !== a && a.push(this.U, c);
|
|
1498
1498
|
return c;
|
|
1499
1499
|
}
|
|
1500
1500
|
return 0;
|
|
1501
1501
|
}
|
|
1502
|
-
b.g ||
|
|
1503
|
-
b.g.o ||
|
|
1504
|
-
!this.
|
|
1502
|
+
b.g || M(`Cannot pass "${Uc(b)}" as a ${this.name}`);
|
|
1503
|
+
b.g.o || M(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1504
|
+
!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}`);
|
|
1505
1505
|
c = Sc(b.g.o, b.g.u.i, this.i);
|
|
1506
|
-
if (this.
|
|
1507
|
-
switch(void 0 === b.g.G &&
|
|
1506
|
+
if (this.wa) {
|
|
1507
|
+
switch(void 0 === b.g.G && M("Passing raw pointer to smart pointer is illegal"), this.ic) {
|
|
1508
1508
|
case 0:
|
|
1509
|
-
b.g.K === this ? c = b.g.G :
|
|
1509
|
+
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}`);
|
|
1510
1510
|
break;
|
|
1511
1511
|
case 1:
|
|
1512
1512
|
c = b.g.G;
|
|
@@ -1516,34 +1516,34 @@ function Vc(a, b) {
|
|
|
1516
1516
|
c = b.g.G;
|
|
1517
1517
|
} else {
|
|
1518
1518
|
var d = b.clone();
|
|
1519
|
-
c = this.
|
|
1519
|
+
c = this.cc(c, hc(function() {
|
|
1520
1520
|
d["delete"]();
|
|
1521
1521
|
}));
|
|
1522
|
-
null !== a && a.push(this.
|
|
1522
|
+
null !== a && a.push(this.U, c);
|
|
1523
1523
|
}
|
|
1524
1524
|
break;
|
|
1525
1525
|
default:
|
|
1526
|
-
|
|
1526
|
+
M("Unsupporting sharing policy");
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
1529
1529
|
return c;
|
|
1530
1530
|
}
|
|
1531
1531
|
function Wc(a, b) {
|
|
1532
1532
|
if (null === b) {
|
|
1533
|
-
return this.
|
|
1533
|
+
return this.Na && M(`null is not a valid ${this.name}`), 0;
|
|
1534
1534
|
}
|
|
1535
|
-
b.g ||
|
|
1536
|
-
b.g.o ||
|
|
1537
|
-
b.g.u.
|
|
1535
|
+
b.g || M(`Cannot pass "${Uc(b)}" as a ${this.name}`);
|
|
1536
|
+
b.g.o || M(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1537
|
+
b.g.u.va && M(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1538
1538
|
return Sc(b.g.o, b.g.u.i, this.i);
|
|
1539
1539
|
}
|
|
1540
1540
|
function Xc(a, b, c, d) {
|
|
1541
1541
|
this.name = a;
|
|
1542
1542
|
this.i = b;
|
|
1543
|
-
this.
|
|
1544
|
-
this.
|
|
1545
|
-
this.
|
|
1546
|
-
this.
|
|
1543
|
+
this.Na = c;
|
|
1544
|
+
this.va = d;
|
|
1545
|
+
this.wa = !1;
|
|
1546
|
+
this.U = this.cc = this.Pa = this.nb = this.ic = this.bc = void 0;
|
|
1547
1547
|
void 0 !== b.A ? this.toWireType = Vc : (this.toWireType = d ? Tc : Wc, this.J = null);
|
|
1548
1548
|
}
|
|
1549
1549
|
function Yc(a, b, c) {
|
|
@@ -1552,7 +1552,7 @@ function Yc(a, b, c) {
|
|
|
1552
1552
|
}
|
|
1553
1553
|
var Zc = [], Q = a => {
|
|
1554
1554
|
var b = Zc[a];
|
|
1555
|
-
b || (a >= Zc.length && (Zc.length = a + 1), Zc[a] = b =
|
|
1555
|
+
b || (a >= Zc.length && (Zc.length = a + 1), Zc[a] = b = Ca.get(a));
|
|
1556
1556
|
return b;
|
|
1557
1557
|
}, $c = (a, b) => {
|
|
1558
1558
|
var c = [];
|
|
@@ -1569,9 +1569,9 @@ var Zc = [], Q = a => {
|
|
|
1569
1569
|
};
|
|
1570
1570
|
};
|
|
1571
1571
|
function R(a, b) {
|
|
1572
|
-
a =
|
|
1572
|
+
a = O(a);
|
|
1573
1573
|
var c = a.includes("j") ? $c(a, b) : Q(b);
|
|
1574
|
-
"function" != typeof c &&
|
|
1574
|
+
"function" != typeof c && M(`unknown function pointer with signature ${a}: ${b}`);
|
|
1575
1575
|
return c;
|
|
1576
1576
|
}
|
|
1577
1577
|
var ad = void 0;
|
|
@@ -1585,7 +1585,7 @@ function bd(a, b) {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
function cd(a, b, c, d, e) {
|
|
1587
1587
|
var f = b.length;
|
|
1588
|
-
2 > f &&
|
|
1588
|
+
2 > f && M("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1589
1589
|
var g = null !== b[1] && null !== c, k = !1;
|
|
1590
1590
|
for (c = 1; c < b.length; ++c) {
|
|
1591
1591
|
if (null !== b[c] && void 0 === b[c].J) {
|
|
@@ -1593,9 +1593,9 @@ function cd(a, b, c, d, e) {
|
|
|
1593
1593
|
break;
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
1596
|
-
var q = "void" !== b[0].name, n = f - 2,
|
|
1596
|
+
var q = "void" !== b[0].name, n = f - 2, t = Array(n), v = [], y = [];
|
|
1597
1597
|
return function() {
|
|
1598
|
-
arguments.length !== n &&
|
|
1598
|
+
arguments.length !== n && M(`function ${a} called with ${arguments.length} arguments, expected ${n} args!`);
|
|
1599
1599
|
y.length = 0;
|
|
1600
1600
|
v.length = g ? 2 : 1;
|
|
1601
1601
|
v[0] = e;
|
|
@@ -1604,14 +1604,14 @@ function cd(a, b, c, d, e) {
|
|
|
1604
1604
|
v[1] = l;
|
|
1605
1605
|
}
|
|
1606
1606
|
for (var r = 0; r < n; ++r) {
|
|
1607
|
-
|
|
1607
|
+
t[r] = b[r + 2].toWireType(y, arguments[r]), v.push(t[r]);
|
|
1608
1608
|
}
|
|
1609
1609
|
r = d.apply(null, v);
|
|
1610
1610
|
if (k) {
|
|
1611
1611
|
Gc(y);
|
|
1612
1612
|
} else {
|
|
1613
1613
|
for (var x = g ? 1 : 2; x < b.length; x++) {
|
|
1614
|
-
var z = 1 === x ? l :
|
|
1614
|
+
var z = 1 === x ? l : t[x - 2];
|
|
1615
1615
|
null !== b[x].J && b[x].J(z);
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
@@ -1621,32 +1621,32 @@ function cd(a, b, c, d, e) {
|
|
|
1621
1621
|
}
|
|
1622
1622
|
function dd(a, b) {
|
|
1623
1623
|
for (var c = [], d = 0; d < a; d++) {
|
|
1624
|
-
c.push(
|
|
1624
|
+
c.push(D[b + 4 * d >> 2]);
|
|
1625
1625
|
}
|
|
1626
1626
|
return c;
|
|
1627
1627
|
}
|
|
1628
1628
|
function ed(a, b, c) {
|
|
1629
|
-
a instanceof Object ||
|
|
1630
|
-
a instanceof b.i.constructor ||
|
|
1631
|
-
a.g.o ||
|
|
1629
|
+
a instanceof Object || M(`${c} with invalid "this": ${a}`);
|
|
1630
|
+
a instanceof b.i.constructor || M(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1631
|
+
a.g.o || M(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1632
1632
|
return Sc(a.g.o, a.g.u.i, b.i);
|
|
1633
1633
|
}
|
|
1634
1634
|
function fd(a) {
|
|
1635
|
-
a >=
|
|
1635
|
+
a >= L.h && 0 === --L.get(a).pb && L.Sb(a);
|
|
1636
1636
|
}
|
|
1637
1637
|
function gd(a, b, c) {
|
|
1638
1638
|
switch(b) {
|
|
1639
1639
|
case 0:
|
|
1640
1640
|
return function(d) {
|
|
1641
|
-
return this.fromWireType((c ?
|
|
1641
|
+
return this.fromWireType((c ? u : w)[d]);
|
|
1642
1642
|
};
|
|
1643
1643
|
case 1:
|
|
1644
1644
|
return function(d) {
|
|
1645
|
-
return this.fromWireType((c ?
|
|
1645
|
+
return this.fromWireType((c ? A : za)[d >> 1]);
|
|
1646
1646
|
};
|
|
1647
1647
|
case 2:
|
|
1648
1648
|
return function(d) {
|
|
1649
|
-
return this.fromWireType((c ?
|
|
1649
|
+
return this.fromWireType((c ? B : D)[d >> 2]);
|
|
1650
1650
|
};
|
|
1651
1651
|
default:
|
|
1652
1652
|
throw new TypeError("Unknown integer type: " + a);
|
|
@@ -1663,11 +1663,11 @@ function hd(a, b) {
|
|
|
1663
1663
|
switch(b) {
|
|
1664
1664
|
case 2:
|
|
1665
1665
|
return function(c) {
|
|
1666
|
-
return this.fromWireType(
|
|
1666
|
+
return this.fromWireType(E[c >> 2]);
|
|
1667
1667
|
};
|
|
1668
1668
|
case 3:
|
|
1669
1669
|
return function(c) {
|
|
1670
|
-
return this.fromWireType(
|
|
1670
|
+
return this.fromWireType(Aa[c >> 3]);
|
|
1671
1671
|
};
|
|
1672
1672
|
default:
|
|
1673
1673
|
throw new TypeError("Unknown float type: " + a);
|
|
@@ -1677,21 +1677,21 @@ function jd(a, b, c) {
|
|
|
1677
1677
|
switch(b) {
|
|
1678
1678
|
case 0:
|
|
1679
1679
|
return c ? function(d) {
|
|
1680
|
-
return
|
|
1680
|
+
return u[d];
|
|
1681
1681
|
} : function(d) {
|
|
1682
1682
|
return w[d];
|
|
1683
1683
|
};
|
|
1684
1684
|
case 1:
|
|
1685
1685
|
return c ? function(d) {
|
|
1686
|
-
return
|
|
1686
|
+
return A[d >> 1];
|
|
1687
1687
|
} : function(d) {
|
|
1688
|
-
return
|
|
1688
|
+
return za[d >> 1];
|
|
1689
1689
|
};
|
|
1690
1690
|
case 2:
|
|
1691
1691
|
return c ? function(d) {
|
|
1692
|
-
return A[d >> 2];
|
|
1693
|
-
} : function(d) {
|
|
1694
1692
|
return B[d >> 2];
|
|
1693
|
+
} : function(d) {
|
|
1694
|
+
return D[d >> 2];
|
|
1695
1695
|
};
|
|
1696
1696
|
default:
|
|
1697
1697
|
throw new TypeError("Unknown integer type: " + a);
|
|
@@ -1699,7 +1699,7 @@ function jd(a, b, c) {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, ld = (a, b) => {
|
|
1701
1701
|
var c = a >> 1;
|
|
1702
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
1702
|
+
for (var d = c + b / 2; !(c >= d) && za[c];) {
|
|
1703
1703
|
++c;
|
|
1704
1704
|
}
|
|
1705
1705
|
c <<= 1;
|
|
@@ -1708,7 +1708,7 @@ var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1708
1708
|
}
|
|
1709
1709
|
c = "";
|
|
1710
1710
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
1711
|
-
var e =
|
|
1711
|
+
var e = A[a + 2 * d >> 1];
|
|
1712
1712
|
if (0 == e) {
|
|
1713
1713
|
break;
|
|
1714
1714
|
}
|
|
@@ -1724,13 +1724,13 @@ var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1724
1724
|
var d = b;
|
|
1725
1725
|
c = c < 2 * a.length ? c / 2 : a.length;
|
|
1726
1726
|
for (var e = 0; e < c; ++e) {
|
|
1727
|
-
|
|
1727
|
+
A[b >> 1] = a.charCodeAt(e), b += 2;
|
|
1728
1728
|
}
|
|
1729
|
-
|
|
1729
|
+
A[b >> 1] = 0;
|
|
1730
1730
|
return b - d;
|
|
1731
1731
|
}, nd = a => 2 * a.length, od = (a, b) => {
|
|
1732
1732
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
1733
|
-
var e =
|
|
1733
|
+
var e = B[a + 4 * c >> 2];
|
|
1734
1734
|
if (0 == e) {
|
|
1735
1735
|
break;
|
|
1736
1736
|
}
|
|
@@ -1751,13 +1751,13 @@ var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1751
1751
|
var g = a.charCodeAt(++e);
|
|
1752
1752
|
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
1753
1753
|
}
|
|
1754
|
-
|
|
1754
|
+
B[b >> 2] = f;
|
|
1755
1755
|
b += 4;
|
|
1756
1756
|
if (b + 4 > c) {
|
|
1757
1757
|
break;
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
|
-
|
|
1760
|
+
B[b >> 2] = 0;
|
|
1761
1761
|
return b - d;
|
|
1762
1762
|
}, qd = a => {
|
|
1763
1763
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
@@ -1769,7 +1769,7 @@ var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1769
1769
|
}, rd = {};
|
|
1770
1770
|
function sd(a) {
|
|
1771
1771
|
var b = rd[a];
|
|
1772
|
-
return void 0 === b ?
|
|
1772
|
+
return void 0 === b ? O(a) : b;
|
|
1773
1773
|
}
|
|
1774
1774
|
var td = [];
|
|
1775
1775
|
function ud(a) {
|
|
@@ -1779,7 +1779,7 @@ function ud(a) {
|
|
|
1779
1779
|
}
|
|
1780
1780
|
function vd(a, b) {
|
|
1781
1781
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
1782
|
-
c[d] = uc(
|
|
1782
|
+
c[d] = uc(D[b + 4 * d >> 2], "parameter " + d);
|
|
1783
1783
|
}
|
|
1784
1784
|
return c;
|
|
1785
1785
|
}
|
|
@@ -1812,36 +1812,36 @@ function Ad(a) {
|
|
|
1812
1812
|
b.drawBuffersWEBGL(c, d);
|
|
1813
1813
|
});
|
|
1814
1814
|
}
|
|
1815
|
-
var Bd = 1, Cd = [], Dd = [], Ed = [], Fd = [], Gd = [], Hd = [], Id = [],
|
|
1815
|
+
var Bd = 1, Cd = [], Dd = [], Ed = [], Fd = [], Gd = [], Hd = [], Id = [], ja = [], Jd = [], Kd = [], Ld = {}, Md = {}, Nd = 4;
|
|
1816
1816
|
function S(a) {
|
|
1817
1817
|
Od || (Od = a);
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function ia(a) {
|
|
1820
1820
|
for (var b = Bd++, c = a.length; c < b; c++) {
|
|
1821
1821
|
a[c] = null;
|
|
1822
1822
|
}
|
|
1823
1823
|
return b;
|
|
1824
1824
|
}
|
|
1825
1825
|
function la(a) {
|
|
1826
|
-
T =
|
|
1827
|
-
m.
|
|
1826
|
+
T = ja[a];
|
|
1827
|
+
m.yc = U = T && T.Ta;
|
|
1828
1828
|
return !(a && !U);
|
|
1829
1829
|
}
|
|
1830
1830
|
function ka(a) {
|
|
1831
1831
|
a || (a = T);
|
|
1832
|
-
if (!a
|
|
1833
|
-
a
|
|
1834
|
-
var b = a.
|
|
1832
|
+
if (!a.Ub) {
|
|
1833
|
+
a.Ub = !0;
|
|
1834
|
+
var b = a.Ta;
|
|
1835
1835
|
yd(b);
|
|
1836
1836
|
zd(b);
|
|
1837
1837
|
Ad(b);
|
|
1838
|
-
b.
|
|
1839
|
-
b.
|
|
1840
|
-
2 <= a.version && (b
|
|
1841
|
-
if (2 > a.version || !b
|
|
1842
|
-
b
|
|
1838
|
+
b.Ya = b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1839
|
+
b.gb = b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1840
|
+
2 <= a.version && (b.Za = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
1841
|
+
if (2 > a.version || !b.Za) {
|
|
1842
|
+
b.Za = b.getExtension("EXT_disjoint_timer_query");
|
|
1843
1843
|
}
|
|
1844
|
-
b.
|
|
1844
|
+
b.Fc = b.getExtension("WEBGL_multi_draw");
|
|
1845
1845
|
(b.getSupportedExtensions() || []).forEach(function(c) {
|
|
1846
1846
|
c.includes("lose_context") || c.includes("debug") || b.getExtension(c);
|
|
1847
1847
|
});
|
|
@@ -1856,7 +1856,7 @@ function Qd(a) {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
function Rd(a, b) {
|
|
1858
1858
|
for (var c = 0; c < a; c++) {
|
|
1859
|
-
var d =
|
|
1859
|
+
var d = B[b + 4 * c >> 2];
|
|
1860
1860
|
U.deleteVertexArray(Id[d]);
|
|
1861
1861
|
Id[d] = null;
|
|
1862
1862
|
}
|
|
@@ -1867,9 +1867,9 @@ function Td(a, b, c, d) {
|
|
|
1867
1867
|
}
|
|
1868
1868
|
function Ud(a, b, c, d) {
|
|
1869
1869
|
for (var e = 0; e < a; e++) {
|
|
1870
|
-
var f = U[c](), g = f &&
|
|
1870
|
+
var f = U[c](), g = f && ia(d);
|
|
1871
1871
|
f ? (f.name = g, d[g] = f) : S(1282);
|
|
1872
|
-
|
|
1872
|
+
B[b + 4 * e >> 2] = g;
|
|
1873
1873
|
}
|
|
1874
1874
|
}
|
|
1875
1875
|
function Vd(a, b) {
|
|
@@ -1949,7 +1949,7 @@ function Wd(a, b) {
|
|
|
1949
1949
|
} else {
|
|
1950
1950
|
if (d instanceof Float32Array || d instanceof Uint32Array || d instanceof Int32Array || d instanceof Array) {
|
|
1951
1951
|
for (a = 0; a < d.length; ++a) {
|
|
1952
|
-
|
|
1952
|
+
B[b + 4 * a >> 2] = d[a];
|
|
1953
1953
|
}
|
|
1954
1954
|
return;
|
|
1955
1955
|
}
|
|
@@ -1968,7 +1968,7 @@ function Wd(a, b) {
|
|
|
1968
1968
|
return;
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
|
-
|
|
1971
|
+
B[b >> 2] = c;
|
|
1972
1972
|
} else {
|
|
1973
1973
|
S(1281);
|
|
1974
1974
|
}
|
|
@@ -1986,7 +1986,7 @@ function $d(a) {
|
|
|
1986
1986
|
}
|
|
1987
1987
|
function ae(a) {
|
|
1988
1988
|
a -= 5120;
|
|
1989
|
-
return 0 == a ?
|
|
1989
|
+
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;
|
|
1990
1990
|
}
|
|
1991
1991
|
function be(a, b, c, d, e) {
|
|
1992
1992
|
a = ae(a);
|
|
@@ -1994,10 +1994,10 @@ function be(a, b, c, d, e) {
|
|
|
1994
1994
|
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);
|
|
1995
1995
|
}
|
|
1996
1996
|
function V(a) {
|
|
1997
|
-
var b = U.
|
|
1997
|
+
var b = U.Gb;
|
|
1998
1998
|
if (b) {
|
|
1999
|
-
var c = b.
|
|
2000
|
-
"number" == typeof c && (b.
|
|
1999
|
+
var c = b.ma[a];
|
|
2000
|
+
"number" == typeof c && (b.ma[a] = c = U.getUniformLocation(b, b.tb[a] + (0 < c ? "[" + c + "]" : "")));
|
|
2001
2001
|
return c;
|
|
2002
2002
|
}
|
|
2003
2003
|
S(1282);
|
|
@@ -2026,8 +2026,8 @@ var ce = [], de = [], ee = {}, ge = () => {
|
|
|
2026
2026
|
return e(l, r, "0");
|
|
2027
2027
|
}
|
|
2028
2028
|
function g(l, r) {
|
|
2029
|
-
function x(
|
|
2030
|
-
return 0 >
|
|
2029
|
+
function x(G) {
|
|
2030
|
+
return 0 > G ? -1 : 0 < G ? 1 : 0;
|
|
2031
2031
|
}
|
|
2032
2032
|
var z;
|
|
2033
2033
|
0 === (z = x(l.getFullYear() - r.getFullYear())) && 0 === (z = x(l.getMonth() - r.getMonth())) && (z = x(l.getDate() - r.getDate()));
|
|
@@ -2067,62 +2067,62 @@ var ce = [], de = [], ee = {}, ge = () => {
|
|
|
2067
2067
|
x = k(x);
|
|
2068
2068
|
return 0 >= g(r, l) ? 0 >= g(x, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
|
|
2069
2069
|
}
|
|
2070
|
-
var n =
|
|
2071
|
-
d = {
|
|
2072
|
-
c = c ?
|
|
2070
|
+
var n = B[d + 40 >> 2];
|
|
2071
|
+
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) : "" : ""};
|
|
2072
|
+
c = c ? F(w, c) : "";
|
|
2073
2073
|
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",};
|
|
2074
|
-
for (var
|
|
2075
|
-
c = c.replace(new RegExp(
|
|
2074
|
+
for (var t in n) {
|
|
2075
|
+
c = c.replace(new RegExp(t, "g"), n[t]);
|
|
2076
2076
|
}
|
|
2077
2077
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), y = "January February March April May June July August September October November December".split(" ");
|
|
2078
|
-
n = {"%a":l => v[l.
|
|
2078
|
+
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 => {
|
|
2079
2079
|
l = l.Ha;
|
|
2080
2080
|
0 == l ? l = 12 : 12 < l && (l -= 12);
|
|
2081
2081
|
return f(l, 2);
|
|
2082
2082
|
}, "%j":l => {
|
|
2083
2083
|
for (var r = 0, x = 0; x <= l.Ia - 1; r += (he(l.ba + 1900) ? ie : je)[x++]) {
|
|
2084
2084
|
}
|
|
2085
|
-
return f(l.
|
|
2086
|
-
}, "%m":l => f(l.Ia + 1, 2), "%M":l => f(l.
|
|
2087
|
-
var r = Math.floor((l.aa + 7 - (l.
|
|
2088
|
-
2 >= (l.
|
|
2085
|
+
return f(l.Ra + r, 3);
|
|
2086
|
+
}, "%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 => {
|
|
2087
|
+
var r = Math.floor((l.aa + 7 - (l.P + 6) % 7) / 7);
|
|
2088
|
+
2 >= (l.P + 371 - l.aa - 2) % 7 && r++;
|
|
2089
2089
|
if (r) {
|
|
2090
|
-
53 == r && (x = (l.
|
|
2090
|
+
53 == r && (x = (l.P + 371 - l.aa) % 7, 4 == x || 3 == x && he(l.ba) || (r = 1));
|
|
2091
2091
|
} else {
|
|
2092
2092
|
r = 52;
|
|
2093
|
-
var x = (l.
|
|
2093
|
+
var x = (l.P + 7 - l.aa - 1) % 7;
|
|
2094
2094
|
(4 == x || 5 == x && he(l.ba % 400 - 1)) && r++;
|
|
2095
2095
|
}
|
|
2096
2096
|
return f(r, 2);
|
|
2097
|
-
}, "%w":l => l.
|
|
2098
|
-
l = l.
|
|
2097
|
+
}, "%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 => {
|
|
2098
|
+
l = l.jc;
|
|
2099
2099
|
var r = 0 <= l;
|
|
2100
2100
|
l = Math.abs(l) / 60;
|
|
2101
2101
|
return (r ? "+" : "-") + String("0000" + (l / 60 * 100 + l % 60)).slice(-4);
|
|
2102
|
-
}, "%Z":l => l.
|
|
2102
|
+
}, "%Z":l => l.mc, "%%":() => "%"};
|
|
2103
2103
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2104
|
-
for (
|
|
2105
|
-
c.includes(
|
|
2104
|
+
for (t in n) {
|
|
2105
|
+
c.includes(t) && (c = c.replace(new RegExp(t, "g"), n[t](d)));
|
|
2106
2106
|
}
|
|
2107
2107
|
c = c.replace(/\0\0/g, "%");
|
|
2108
|
-
|
|
2109
|
-
if (
|
|
2108
|
+
t = ib(c, !1);
|
|
2109
|
+
if (t.length > b) {
|
|
2110
2110
|
return 0;
|
|
2111
2111
|
}
|
|
2112
|
-
|
|
2113
|
-
return
|
|
2112
|
+
u.set(t, a);
|
|
2113
|
+
return t.length - 1;
|
|
2114
2114
|
};
|
|
2115
2115
|
function Ib(a, b, c, d) {
|
|
2116
2116
|
a || (a = this);
|
|
2117
2117
|
this.parent = a;
|
|
2118
|
-
this.
|
|
2119
|
-
this.
|
|
2118
|
+
this.S = a.S;
|
|
2119
|
+
this.Ba = null;
|
|
2120
2120
|
this.id = zb++;
|
|
2121
2121
|
this.name = b;
|
|
2122
2122
|
this.mode = c;
|
|
2123
|
-
this.
|
|
2123
|
+
this.l = {};
|
|
2124
2124
|
this.m = {};
|
|
2125
|
-
this.
|
|
2125
|
+
this.Da = d;
|
|
2126
2126
|
}
|
|
2127
2127
|
Object.defineProperties(Ib.prototype, {read:{get:function() {
|
|
2128
2128
|
return 365 === (this.mode & 365);
|
|
@@ -2148,7 +2148,7 @@ Qb("/home/web_user", 16895, 0);
|
|
|
2148
2148
|
Rb("/dev/tty", 1280);
|
|
2149
2149
|
Rb("/dev/tty1", 1536);
|
|
2150
2150
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2151
|
-
0 === b && (b =
|
|
2151
|
+
0 === b && (b = cb(a).byteLength);
|
|
2152
2152
|
return a[--b];
|
|
2153
2153
|
};
|
|
2154
2154
|
Zb("random", c);
|
|
@@ -2160,11 +2160,11 @@ Qb("/home/web_user", 16895, 0);
|
|
|
2160
2160
|
Qb("/proc", 16895, 0);
|
|
2161
2161
|
var a = Qb("/proc/self", 16895, 0);
|
|
2162
2162
|
Qb("/proc/self/fd", 16895, 0);
|
|
2163
|
-
Pb({
|
|
2163
|
+
Pb({S:() => {
|
|
2164
2164
|
var b = rb(a, "fd", 16895, 73);
|
|
2165
|
-
b.
|
|
2165
|
+
b.l = {ka:(c, d) => {
|
|
2166
2166
|
var e = Mb(+d);
|
|
2167
|
-
c = {parent:null,
|
|
2167
|
+
c = {parent:null, S:{ib:"fake"}, l:{la:() => e.path},};
|
|
2168
2168
|
return c.parent = c;
|
|
2169
2169
|
}};
|
|
2170
2170
|
return b;
|
|
@@ -2174,11 +2174,11 @@ Object.assign(ec.prototype, {get(a) {
|
|
|
2174
2174
|
return this.L[a];
|
|
2175
2175
|
}, has(a) {
|
|
2176
2176
|
return void 0 !== this.L[a];
|
|
2177
|
-
},
|
|
2177
|
+
}, ra(a) {
|
|
2178
2178
|
var b = this.cb.pop() || this.L.length;
|
|
2179
2179
|
this.L[b] = a;
|
|
2180
2180
|
return b;
|
|
2181
|
-
},
|
|
2181
|
+
}, Sb(a) {
|
|
2182
2182
|
this.L[a] = void 0;
|
|
2183
2183
|
this.cb.push(a);
|
|
2184
2184
|
}});
|
|
@@ -2188,11 +2188,11 @@ fc = m.BindingError = class extends Error {
|
|
|
2188
2188
|
this.name = "BindingError";
|
|
2189
2189
|
}
|
|
2190
2190
|
};
|
|
2191
|
-
|
|
2192
|
-
|
|
2191
|
+
L.L.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2192
|
+
L.h = L.L.length;
|
|
2193
2193
|
m.count_emval_handles = function() {
|
|
2194
|
-
for (var a = 0, b =
|
|
2195
|
-
void 0 !==
|
|
2194
|
+
for (var a = 0, b = L.h; b < L.L.length; ++b) {
|
|
2195
|
+
void 0 !== L.L[b] && ++a;
|
|
2196
2196
|
}
|
|
2197
2197
|
return a;
|
|
2198
2198
|
};
|
|
@@ -2228,10 +2228,10 @@ Oc.prototype.isAliasOf = function(a) {
|
|
|
2228
2228
|
}
|
|
2229
2229
|
var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
|
|
2230
2230
|
for (a = a.g.o; b.A;) {
|
|
2231
|
-
c = b.
|
|
2231
|
+
c = b.na(c), b = b.A;
|
|
2232
2232
|
}
|
|
2233
2233
|
for (; d.A;) {
|
|
2234
|
-
a = d.
|
|
2234
|
+
a = d.na(a), d = d.A;
|
|
2235
2235
|
}
|
|
2236
2236
|
return b === d && c === a;
|
|
2237
2237
|
};
|
|
@@ -2248,7 +2248,7 @@ Oc.prototype.clone = function() {
|
|
|
2248
2248
|
};
|
|
2249
2249
|
Oc.prototype["delete"] = function() {
|
|
2250
2250
|
this.g.o || Nc(this);
|
|
2251
|
-
this.g.ga && !this.g.ia &&
|
|
2251
|
+
this.g.ga && !this.g.ia && M("Object already scheduled for deletion");
|
|
2252
2252
|
vc(this);
|
|
2253
2253
|
xc(this.g);
|
|
2254
2254
|
this.g.ia || (this.g.G = void 0, this.g.o = void 0);
|
|
@@ -2258,18 +2258,18 @@ Oc.prototype.isDeleted = function() {
|
|
|
2258
2258
|
};
|
|
2259
2259
|
Oc.prototype.deleteLater = function() {
|
|
2260
2260
|
this.g.o || Nc(this);
|
|
2261
|
-
this.g.ga && !this.g.ia &&
|
|
2261
|
+
this.g.ga && !this.g.ia && M("Object already scheduled for deletion");
|
|
2262
2262
|
lc.push(this);
|
|
2263
2263
|
1 === lc.length && nc && nc(mc);
|
|
2264
2264
|
this.g.ga = !0;
|
|
2265
2265
|
return this;
|
|
2266
2266
|
};
|
|
2267
|
-
Xc.prototype.
|
|
2268
|
-
this.
|
|
2267
|
+
Xc.prototype.Ob = function(a) {
|
|
2268
|
+
this.nb && (a = this.nb(a));
|
|
2269
2269
|
return a;
|
|
2270
2270
|
};
|
|
2271
|
-
Xc.prototype.
|
|
2272
|
-
this.
|
|
2271
|
+
Xc.prototype.Xa = function(a) {
|
|
2272
|
+
this.U && this.U(a);
|
|
2273
2273
|
};
|
|
2274
2274
|
Xc.prototype.argPackAdvance = 8;
|
|
2275
2275
|
Xc.prototype.readValueFromPointer = Hc;
|
|
@@ -2280,11 +2280,11 @@ Xc.prototype.deleteObject = function(a) {
|
|
|
2280
2280
|
};
|
|
2281
2281
|
Xc.prototype.fromWireType = function(a) {
|
|
2282
2282
|
function b() {
|
|
2283
|
-
return this.
|
|
2283
|
+
return this.wa ? Dc(this.i.M, {u:this.bc, o:c, K:this, G:a,}) : Dc(this.i.M, {u:this, o:a,});
|
|
2284
2284
|
}
|
|
2285
|
-
var c = this.
|
|
2285
|
+
var c = this.Ob(a);
|
|
2286
2286
|
if (!c) {
|
|
2287
|
-
return this.
|
|
2287
|
+
return this.Xa(a), null;
|
|
2288
2288
|
}
|
|
2289
2289
|
var d = Ac(this.i, c);
|
|
2290
2290
|
if (void 0 !== d) {
|
|
@@ -2292,17 +2292,17 @@ Xc.prototype.fromWireType = function(a) {
|
|
|
2292
2292
|
return d.g.o = c, d.g.G = a, d.clone();
|
|
2293
2293
|
}
|
|
2294
2294
|
d = d.clone();
|
|
2295
|
-
this.
|
|
2295
|
+
this.Xa(a);
|
|
2296
2296
|
return d;
|
|
2297
2297
|
}
|
|
2298
|
-
d = this.i.
|
|
2298
|
+
d = this.i.Nb(c);
|
|
2299
2299
|
d = zc[d];
|
|
2300
2300
|
if (!d) {
|
|
2301
2301
|
return b.call(this);
|
|
2302
2302
|
}
|
|
2303
|
-
d = this.
|
|
2303
|
+
d = this.va ? d.Fb : d.pointerType;
|
|
2304
2304
|
var e = yc(c, this.i, d.i);
|
|
2305
|
-
return null === e ? b.call(this) : this.
|
|
2305
|
+
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,});
|
|
2306
2306
|
};
|
|
2307
2307
|
ad = m.UnboundTypeError = ic("UnboundTypeError");
|
|
2308
2308
|
for (var U, W = 0; 32 > W; ++W) {
|
|
@@ -2323,7 +2323,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2323
2323
|
switch(b) {
|
|
2324
2324
|
case 0:
|
|
2325
2325
|
var e = bc();
|
|
2326
|
-
return 0 > e ? -28 : Ob(d, e).
|
|
2326
|
+
return 0 > e ? -28 : Ob(d, e).V;
|
|
2327
2327
|
case 1:
|
|
2328
2328
|
case 2:
|
|
2329
2329
|
return 0;
|
|
@@ -2332,7 +2332,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2332
2332
|
case 4:
|
|
2333
2333
|
return e = bc(), d.flags |= e, 0;
|
|
2334
2334
|
case 5:
|
|
2335
|
-
return e = bc(),
|
|
2335
|
+
return e = bc(), A[e + 0 >> 1] = 2, 0;
|
|
2336
2336
|
case 6:
|
|
2337
2337
|
case 7:
|
|
2338
2338
|
return 0;
|
|
@@ -2340,7 +2340,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2340
2340
|
case 8:
|
|
2341
2341
|
return -28;
|
|
2342
2342
|
case 9:
|
|
2343
|
-
return
|
|
2343
|
+
return B[pe() >> 2] = 28, -1;
|
|
2344
2344
|
default:
|
|
2345
2345
|
return -28;
|
|
2346
2346
|
}
|
|
@@ -2348,63 +2348,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2348
2348
|
if ("undefined" == typeof $b || "ErrnoError" !== f.name) {
|
|
2349
2349
|
throw f;
|
|
2350
2350
|
}
|
|
2351
|
-
return -f.
|
|
2352
|
-
}
|
|
2353
|
-
}, __syscall_fstat64:function(a, b) {
|
|
2354
|
-
try {
|
|
2355
|
-
a: {
|
|
2356
|
-
var c = Mb(a).path;
|
|
2357
|
-
try {
|
|
2358
|
-
var d = Db(c, {Ma:!0}).node;
|
|
2359
|
-
if (!d) {
|
|
2360
|
-
throw new G(44);
|
|
2361
|
-
}
|
|
2362
|
-
if (!d.j.M) {
|
|
2363
|
-
throw new G(63);
|
|
2364
|
-
}
|
|
2365
|
-
var e = d.j.M(d);
|
|
2366
|
-
} catch (n) {
|
|
2367
|
-
if (n && n.node && Ya(c) !== Ya(Eb(n.node))) {
|
|
2368
|
-
var f = -54;
|
|
2369
|
-
break a;
|
|
2370
|
-
}
|
|
2371
|
-
throw n;
|
|
2372
|
-
}
|
|
2373
|
-
A[b >> 2] = e.Mb;
|
|
2374
|
-
A[b + 4 >> 2] = e.mode;
|
|
2375
|
-
B[b + 8 >> 2] = e.jc;
|
|
2376
|
-
A[b + 12 >> 2] = e.uid;
|
|
2377
|
-
A[b + 16 >> 2] = e.Xb;
|
|
2378
|
-
A[b + 20 >> 2] = e.la;
|
|
2379
|
-
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)];
|
|
2380
|
-
A[b + 24 >> 2] = F[0];
|
|
2381
|
-
A[b + 28 >> 2] = F[1];
|
|
2382
|
-
A[b + 32 >> 2] = 4096;
|
|
2383
|
-
A[b + 36 >> 2] = e.Hb;
|
|
2384
|
-
var g = e.Fb.getTime(), k = e.hc.getTime(), q = e.Jb.getTime();
|
|
2385
|
-
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)];
|
|
2386
|
-
A[b + 40 >> 2] = F[0];
|
|
2387
|
-
A[b + 44 >> 2] = F[1];
|
|
2388
|
-
B[b + 48 >> 2] = g % 1000 * 1000;
|
|
2389
|
-
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)];
|
|
2390
|
-
A[b + 56 >> 2] = F[0];
|
|
2391
|
-
A[b + 60 >> 2] = F[1];
|
|
2392
|
-
B[b + 64 >> 2] = k % 1000 * 1000;
|
|
2393
|
-
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)];
|
|
2394
|
-
A[b + 72 >> 2] = F[0];
|
|
2395
|
-
A[b + 76 >> 2] = F[1];
|
|
2396
|
-
B[b + 80 >> 2] = q % 1000 * 1000;
|
|
2397
|
-
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)];
|
|
2398
|
-
A[b + 88 >> 2] = F[0];
|
|
2399
|
-
A[b + 92 >> 2] = F[1];
|
|
2400
|
-
f = 0;
|
|
2401
|
-
}
|
|
2402
|
-
return f;
|
|
2403
|
-
} catch (n) {
|
|
2404
|
-
if ("undefined" == typeof $b || "ErrnoError" !== n.name) {
|
|
2405
|
-
throw n;
|
|
2406
|
-
}
|
|
2407
|
-
return -n.W;
|
|
2351
|
+
return -f.Z;
|
|
2408
2352
|
}
|
|
2409
2353
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2410
2354
|
ac = c;
|
|
@@ -2417,15 +2361,15 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2417
2361
|
if (!d.s) {
|
|
2418
2362
|
return -59;
|
|
2419
2363
|
}
|
|
2420
|
-
if (d.s.
|
|
2364
|
+
if (d.s.T.Wb) {
|
|
2421
2365
|
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,];
|
|
2422
2366
|
var e = bc();
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2367
|
+
B[e >> 2] = 25856;
|
|
2368
|
+
B[e + 4 >> 2] = 5;
|
|
2369
|
+
B[e + 8 >> 2] = 191;
|
|
2370
|
+
B[e + 12 >> 2] = 35387;
|
|
2427
2371
|
for (var f = 0; 32 > f; f++) {
|
|
2428
|
-
|
|
2372
|
+
u[e + f + 17 >> 0] = b[f] || 0;
|
|
2429
2373
|
}
|
|
2430
2374
|
}
|
|
2431
2375
|
return 0;
|
|
@@ -2439,9 +2383,9 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2439
2383
|
if (!d.s) {
|
|
2440
2384
|
return -59;
|
|
2441
2385
|
}
|
|
2442
|
-
if (d.s.
|
|
2386
|
+
if (d.s.T.Xb) {
|
|
2443
2387
|
for (e = bc(), b = [], f = 0; 32 > f; f++) {
|
|
2444
|
-
b.push(
|
|
2388
|
+
b.push(u[e + f + 17 >> 0]);
|
|
2445
2389
|
}
|
|
2446
2390
|
}
|
|
2447
2391
|
return 0;
|
|
@@ -2450,20 +2394,20 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2450
2394
|
return -59;
|
|
2451
2395
|
}
|
|
2452
2396
|
e = bc();
|
|
2453
|
-
return
|
|
2397
|
+
return B[e >> 2] = 0;
|
|
2454
2398
|
case 21520:
|
|
2455
2399
|
return d.s ? -28 : -59;
|
|
2456
2400
|
case 21531:
|
|
2457
2401
|
e = bc();
|
|
2458
|
-
if (!d.m.
|
|
2459
|
-
throw new
|
|
2402
|
+
if (!d.m.Vb) {
|
|
2403
|
+
throw new H(59);
|
|
2460
2404
|
}
|
|
2461
|
-
return d.m.
|
|
2405
|
+
return d.m.Vb(d, b, e);
|
|
2462
2406
|
case 21523:
|
|
2463
2407
|
if (!d.s) {
|
|
2464
2408
|
return -59;
|
|
2465
2409
|
}
|
|
2466
|
-
d.s.
|
|
2410
|
+
d.s.T.Yb && (f = [24, 80], e = bc(), A[e >> 1] = f[0], A[e + 2 >> 1] = f[1]);
|
|
2467
2411
|
return 0;
|
|
2468
2412
|
case 21524:
|
|
2469
2413
|
return d.s ? 0 : -59;
|
|
@@ -2476,37 +2420,37 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2476
2420
|
if ("undefined" == typeof $b || "ErrnoError" !== g.name) {
|
|
2477
2421
|
throw g;
|
|
2478
2422
|
}
|
|
2479
|
-
return -g.
|
|
2423
|
+
return -g.Z;
|
|
2480
2424
|
}
|
|
2481
2425
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2482
2426
|
ac = d;
|
|
2483
2427
|
try {
|
|
2484
|
-
b = b ?
|
|
2428
|
+
b = b ? F(w, b) : "";
|
|
2485
2429
|
var e = b;
|
|
2486
2430
|
if ("/" === e.charAt(0)) {
|
|
2487
2431
|
b = e;
|
|
2488
2432
|
} else {
|
|
2489
2433
|
var f = -100 === a ? "/" : Mb(a).path;
|
|
2490
2434
|
if (0 == e.length) {
|
|
2491
|
-
throw new
|
|
2435
|
+
throw new H(44);
|
|
2492
2436
|
}
|
|
2493
|
-
b =
|
|
2437
|
+
b = Za(f + "/" + e);
|
|
2494
2438
|
}
|
|
2495
2439
|
var g = d ? bc() : 0;
|
|
2496
|
-
return Ub(b, c, g).
|
|
2440
|
+
return Ub(b, c, g).V;
|
|
2497
2441
|
} catch (k) {
|
|
2498
2442
|
if ("undefined" == typeof $b || "ErrnoError" !== k.name) {
|
|
2499
2443
|
throw k;
|
|
2500
2444
|
}
|
|
2501
|
-
return -k.
|
|
2445
|
+
return -k.Z;
|
|
2502
2446
|
}
|
|
2503
2447
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2504
|
-
a =
|
|
2448
|
+
a = O(a);
|
|
2505
2449
|
b = uc(b, "wrapper");
|
|
2506
2450
|
c = gc(c);
|
|
2507
|
-
var d = [].slice, e = b.i, f = e.
|
|
2451
|
+
var d = [].slice, e = b.i, f = e.M, g = e.A.M, k = e.A.constructor;
|
|
2508
2452
|
a = dc(a, function() {
|
|
2509
|
-
e.A.
|
|
2453
|
+
e.A.mb.forEach(function(n) {
|
|
2510
2454
|
if (this[n] === g[n]) {
|
|
2511
2455
|
throw new jc(`Pure virtual function ${n} must be implemented in JavaScript`);
|
|
2512
2456
|
}
|
|
@@ -2515,24 +2459,24 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2515
2459
|
this.__construct.apply(this, d.call(arguments));
|
|
2516
2460
|
});
|
|
2517
2461
|
f.__construct = function() {
|
|
2518
|
-
this === f &&
|
|
2462
|
+
this === f && M("Pass correct 'this' to __construct");
|
|
2519
2463
|
var n = k.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2520
2464
|
vc(n);
|
|
2521
|
-
var
|
|
2465
|
+
var t = n.g;
|
|
2522
2466
|
n.notifyOnDestruction();
|
|
2523
|
-
|
|
2524
|
-
Object.defineProperties(this, {g:{value:
|
|
2467
|
+
t.ia = !0;
|
|
2468
|
+
Object.defineProperties(this, {g:{value:t}});
|
|
2525
2469
|
Ec(this);
|
|
2526
|
-
n =
|
|
2470
|
+
n = t.o;
|
|
2527
2471
|
n = pc(e, n);
|
|
2528
|
-
oc.hasOwnProperty(n) ?
|
|
2472
|
+
oc.hasOwnProperty(n) ? M(`Tried to register registered instance: ${n}`) : oc[n] = this;
|
|
2529
2473
|
};
|
|
2530
2474
|
f.__destruct = function() {
|
|
2531
|
-
this === f &&
|
|
2475
|
+
this === f && M("Pass correct 'this' to __destruct");
|
|
2532
2476
|
vc(this);
|
|
2533
2477
|
var n = this.g.o;
|
|
2534
2478
|
n = pc(e, n);
|
|
2535
|
-
oc.hasOwnProperty(n) ? delete oc[n] :
|
|
2479
|
+
oc.hasOwnProperty(n) ? delete oc[n] : M(`Tried to unregister unregistered instance: ${n}`);
|
|
2536
2480
|
};
|
|
2537
2481
|
a.prototype = Object.create(f);
|
|
2538
2482
|
for (var q in c) {
|
|
@@ -2542,33 +2486,33 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2542
2486
|
}, _embind_finalize_value_object:function(a) {
|
|
2543
2487
|
var b = Fc[a];
|
|
2544
2488
|
delete Fc[a];
|
|
2545
|
-
var c = b.
|
|
2489
|
+
var c = b.Pa, d = b.U, e = b.$a, f = e.map(g => g.Rb).concat(e.map(g => g.fc));
|
|
2546
2490
|
P([a], f, g => {
|
|
2547
2491
|
var k = {};
|
|
2548
2492
|
e.forEach((q, n) => {
|
|
2549
|
-
var
|
|
2550
|
-
k[q.
|
|
2493
|
+
var t = g[n], v = q.Pb, y = q.Qb, l = g[n + e.length], r = q.ec, x = q.hc;
|
|
2494
|
+
k[q.Lb] = {read:z => t.fromWireType(v(y, z)), write:(z, G) => {
|
|
2551
2495
|
var C = [];
|
|
2552
|
-
r(x, z, l.toWireType(C,
|
|
2496
|
+
r(x, z, l.toWireType(C, G));
|
|
2553
2497
|
Gc(C);
|
|
2554
2498
|
}};
|
|
2555
2499
|
});
|
|
2556
2500
|
return [{name:b.name, fromWireType:function(q) {
|
|
2557
|
-
var n = {},
|
|
2558
|
-
for (
|
|
2559
|
-
n[
|
|
2501
|
+
var n = {}, t;
|
|
2502
|
+
for (t in k) {
|
|
2503
|
+
n[t] = k[t].read(q);
|
|
2560
2504
|
}
|
|
2561
2505
|
d(q);
|
|
2562
2506
|
return n;
|
|
2563
2507
|
}, toWireType:function(q, n) {
|
|
2564
|
-
for (var
|
|
2565
|
-
if (!(
|
|
2566
|
-
throw new TypeError(`Missing field: "${
|
|
2508
|
+
for (var t in k) {
|
|
2509
|
+
if (!(t in n)) {
|
|
2510
|
+
throw new TypeError(`Missing field: "${t}"`);
|
|
2567
2511
|
}
|
|
2568
2512
|
}
|
|
2569
2513
|
var v = c();
|
|
2570
|
-
for (
|
|
2571
|
-
k[
|
|
2514
|
+
for (t in k) {
|
|
2515
|
+
k[t].write(v, n[t]);
|
|
2572
2516
|
}
|
|
2573
2517
|
null !== q && q.push(d, v);
|
|
2574
2518
|
return v;
|
|
@@ -2577,83 +2521,83 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2577
2521
|
}, _embind_register_bigint:function() {
|
|
2578
2522
|
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2579
2523
|
var f = Lc(c);
|
|
2580
|
-
b =
|
|
2524
|
+
b = O(b);
|
|
2581
2525
|
Kc(a, {name:b, fromWireType:function(g) {
|
|
2582
2526
|
return !!g;
|
|
2583
2527
|
}, toWireType:function(g, k) {
|
|
2584
2528
|
return k ? d : e;
|
|
2585
2529
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2586
2530
|
if (1 === c) {
|
|
2587
|
-
var k =
|
|
2531
|
+
var k = u;
|
|
2588
2532
|
} else if (2 === c) {
|
|
2589
|
-
k = za;
|
|
2590
|
-
} else if (4 === c) {
|
|
2591
2533
|
k = A;
|
|
2534
|
+
} else if (4 === c) {
|
|
2535
|
+
k = B;
|
|
2592
2536
|
} else {
|
|
2593
2537
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2594
2538
|
}
|
|
2595
2539
|
return this.fromWireType(k[g >> f]);
|
|
2596
2540
|
}, J:null,});
|
|
2597
|
-
}, _embind_register_class:function(a, b, c, d, e, f, g, k, q, n,
|
|
2598
|
-
|
|
2541
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, k, q, n, t, v, y) {
|
|
2542
|
+
t = O(t);
|
|
2599
2543
|
f = R(e, f);
|
|
2600
2544
|
k && (k = R(g, k));
|
|
2601
2545
|
n && (n = R(q, n));
|
|
2602
2546
|
y = R(v, y);
|
|
2603
|
-
var l = cc(
|
|
2547
|
+
var l = cc(t);
|
|
2604
2548
|
Qc(l, function() {
|
|
2605
|
-
bd(`Cannot construct ${
|
|
2549
|
+
bd(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2606
2550
|
});
|
|
2607
2551
|
P([a, b, c], d ? [d] : [], function(r) {
|
|
2608
2552
|
r = r[0];
|
|
2609
2553
|
if (d) {
|
|
2610
2554
|
var x = r.i;
|
|
2611
|
-
var z = x.
|
|
2555
|
+
var z = x.M;
|
|
2612
2556
|
} else {
|
|
2613
2557
|
z = Oc.prototype;
|
|
2614
2558
|
}
|
|
2615
2559
|
r = dc(l, function() {
|
|
2616
|
-
if (Object.getPrototypeOf(this) !==
|
|
2617
|
-
throw new fc("Use 'new' to construct " +
|
|
2560
|
+
if (Object.getPrototypeOf(this) !== G) {
|
|
2561
|
+
throw new fc("Use 'new' to construct " + t);
|
|
2618
2562
|
}
|
|
2619
|
-
if (void 0 === C.
|
|
2620
|
-
throw new fc(
|
|
2563
|
+
if (void 0 === C.Y) {
|
|
2564
|
+
throw new fc(t + " has no accessible constructor");
|
|
2621
2565
|
}
|
|
2622
|
-
var
|
|
2623
|
-
if (void 0 ===
|
|
2624
|
-
throw new fc(`Tried to invoke ctor of ${
|
|
2566
|
+
var N = C.Y[arguments.length];
|
|
2567
|
+
if (void 0 === N) {
|
|
2568
|
+
throw new fc(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(C.Y).toString()}) parameters instead!`);
|
|
2625
2569
|
}
|
|
2626
|
-
return
|
|
2570
|
+
return N.apply(this, arguments);
|
|
2627
2571
|
});
|
|
2628
|
-
var
|
|
2629
|
-
r.prototype =
|
|
2630
|
-
var C = new Rc(
|
|
2631
|
-
C.A && (void 0 === C.A.
|
|
2632
|
-
x = new Xc(
|
|
2633
|
-
z = new Xc(
|
|
2634
|
-
var
|
|
2635
|
-
zc[a] = {pointerType:z,
|
|
2572
|
+
var G = Object.create(z, {constructor:{value:r},});
|
|
2573
|
+
r.prototype = G;
|
|
2574
|
+
var C = new Rc(t, r, G, y, x, f, k, n);
|
|
2575
|
+
C.A && (void 0 === C.A.oa && (C.A.oa = []), C.A.oa.push(C));
|
|
2576
|
+
x = new Xc(t, C, !0, !1);
|
|
2577
|
+
z = new Xc(t + "*", C, !1, !1);
|
|
2578
|
+
var J = new Xc(t + " const*", C, !1, !0);
|
|
2579
|
+
zc[a] = {pointerType:z, Fb:J};
|
|
2636
2580
|
Yc(l, r);
|
|
2637
|
-
return [x, z,
|
|
2581
|
+
return [x, z, J];
|
|
2638
2582
|
});
|
|
2639
2583
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2640
2584
|
var k = dd(c, d);
|
|
2641
|
-
b =
|
|
2585
|
+
b = O(b);
|
|
2642
2586
|
f = R(e, f);
|
|
2643
2587
|
P([], [a], function(q) {
|
|
2644
2588
|
function n() {
|
|
2645
|
-
bd(`Cannot call ${
|
|
2589
|
+
bd(`Cannot call ${t} due to unbound types`, k);
|
|
2646
2590
|
}
|
|
2647
2591
|
q = q[0];
|
|
2648
|
-
var
|
|
2592
|
+
var t = `${q.name}.${b}`;
|
|
2649
2593
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2650
2594
|
var v = q.i.constructor;
|
|
2651
|
-
void 0 === v[b] ? (n.ea = c - 1, v[b] = n) : (Pc(v, b,
|
|
2595
|
+
void 0 === v[b] ? (n.ea = c - 1, v[b] = n) : (Pc(v, b, t), v[b].B[c - 1] = n);
|
|
2652
2596
|
P([], k, function(y) {
|
|
2653
|
-
y = cd(
|
|
2597
|
+
y = cd(t, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2654
2598
|
void 0 === v[b].B ? (y.ea = c - 1, v[b] = y) : v[b].B[c - 1] = y;
|
|
2655
|
-
if (q.i.
|
|
2656
|
-
for (const l of q.i.
|
|
2599
|
+
if (q.i.oa) {
|
|
2600
|
+
for (const l of q.i.oa) {
|
|
2657
2601
|
l.constructor.hasOwnProperty(b) || (l.constructor[b] = y);
|
|
2658
2602
|
}
|
|
2659
2603
|
}
|
|
@@ -2662,19 +2606,19 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2662
2606
|
return [];
|
|
2663
2607
|
});
|
|
2664
2608
|
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, k) {
|
|
2665
|
-
b =
|
|
2609
|
+
b = O(b);
|
|
2666
2610
|
f = R(e, f);
|
|
2667
2611
|
P([], [a], function(q) {
|
|
2668
2612
|
q = q[0];
|
|
2669
|
-
var n = `${q.name}.${b}`,
|
|
2613
|
+
var n = `${q.name}.${b}`, t = {get() {
|
|
2670
2614
|
bd(`Cannot access ${n} due to unbound types`, [c]);
|
|
2671
2615
|
}, enumerable:!0, configurable:!0};
|
|
2672
|
-
|
|
2616
|
+
t.set = k ? () => {
|
|
2673
2617
|
bd(`Cannot access ${n} due to unbound types`, [c]);
|
|
2674
2618
|
} : () => {
|
|
2675
|
-
|
|
2619
|
+
M(`${n} is a read-only property`);
|
|
2676
2620
|
};
|
|
2677
|
-
Object.defineProperty(q.i.constructor, b,
|
|
2621
|
+
Object.defineProperty(q.i.constructor, b, t);
|
|
2678
2622
|
P([], [c], function(v) {
|
|
2679
2623
|
v = v[0];
|
|
2680
2624
|
var y = {get() {
|
|
@@ -2696,34 +2640,34 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2696
2640
|
P([], [a], function(k) {
|
|
2697
2641
|
k = k[0];
|
|
2698
2642
|
var q = `constructor ${k.name}`;
|
|
2699
|
-
void 0 === k.i.
|
|
2700
|
-
if (void 0 !== k.i.
|
|
2643
|
+
void 0 === k.i.Y && (k.i.Y = []);
|
|
2644
|
+
if (void 0 !== k.i.Y[b - 1]) {
|
|
2701
2645
|
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!`);
|
|
2702
2646
|
}
|
|
2703
|
-
k.i.
|
|
2647
|
+
k.i.Y[b - 1] = () => {
|
|
2704
2648
|
bd(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2705
2649
|
};
|
|
2706
2650
|
P([], g, function(n) {
|
|
2707
2651
|
n.splice(1, 0, null);
|
|
2708
|
-
k.i.
|
|
2652
|
+
k.i.Y[b - 1] = cd(q, n, null, e, f);
|
|
2709
2653
|
return [];
|
|
2710
2654
|
});
|
|
2711
2655
|
return [];
|
|
2712
2656
|
});
|
|
2713
2657
|
}, _embind_register_class_function:function(a, b, c, d, e, f, g, k) {
|
|
2714
2658
|
var q = dd(c, d);
|
|
2715
|
-
b =
|
|
2659
|
+
b = O(b);
|
|
2716
2660
|
f = R(e, f);
|
|
2717
2661
|
P([], [a], function(n) {
|
|
2718
|
-
function
|
|
2662
|
+
function t() {
|
|
2719
2663
|
bd(`Cannot call ${v} due to unbound types`, q);
|
|
2720
2664
|
}
|
|
2721
2665
|
n = n[0];
|
|
2722
2666
|
var v = `${n.name}.${b}`;
|
|
2723
2667
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2724
|
-
k && n.i.
|
|
2725
|
-
var y = n.i.
|
|
2726
|
-
void 0 === l || void 0 === l.B && l.className !== n.name && l.ea === c - 2 ? (
|
|
2668
|
+
k && n.i.mb.push(b);
|
|
2669
|
+
var y = n.i.M, l = y[b];
|
|
2670
|
+
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);
|
|
2727
2671
|
P([], q, function(r) {
|
|
2728
2672
|
r = cd(v, r, n, f, g);
|
|
2729
2673
|
void 0 === y[b].B ? (r.ea = c - 2, y[b] = r) : y[b].B[c - 2] = r;
|
|
@@ -2732,40 +2676,40 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2732
2676
|
return [];
|
|
2733
2677
|
});
|
|
2734
2678
|
}, _embind_register_class_property:function(a, b, c, d, e, f, g, k, q, n) {
|
|
2735
|
-
b =
|
|
2679
|
+
b = O(b);
|
|
2736
2680
|
e = R(d, e);
|
|
2737
|
-
P([], [a], function(
|
|
2738
|
-
|
|
2739
|
-
var v = `${
|
|
2681
|
+
P([], [a], function(t) {
|
|
2682
|
+
t = t[0];
|
|
2683
|
+
var v = `${t.name}.${b}`, y = {get() {
|
|
2740
2684
|
bd(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2741
2685
|
}, enumerable:!0, configurable:!0};
|
|
2742
2686
|
y.set = q ? () => {
|
|
2743
2687
|
bd(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2744
2688
|
} : () => {
|
|
2745
|
-
|
|
2689
|
+
M(v + " is a read-only property");
|
|
2746
2690
|
};
|
|
2747
|
-
Object.defineProperty(
|
|
2691
|
+
Object.defineProperty(t.i.M, b, y);
|
|
2748
2692
|
P([], q ? [c, g] : [c], function(l) {
|
|
2749
2693
|
var r = l[0], x = {get() {
|
|
2750
|
-
var
|
|
2751
|
-
return r.fromWireType(e(f,
|
|
2694
|
+
var G = ed(this, t, v + " getter");
|
|
2695
|
+
return r.fromWireType(e(f, G));
|
|
2752
2696
|
}, enumerable:!0};
|
|
2753
2697
|
if (q) {
|
|
2754
2698
|
q = R(k, q);
|
|
2755
2699
|
var z = l[1];
|
|
2756
|
-
x.set = function(
|
|
2757
|
-
var C = ed(this,
|
|
2758
|
-
q(n, C, z.toWireType(
|
|
2759
|
-
Gc(
|
|
2700
|
+
x.set = function(G) {
|
|
2701
|
+
var C = ed(this, t, v + " setter"), J = [];
|
|
2702
|
+
q(n, C, z.toWireType(J, G));
|
|
2703
|
+
Gc(J);
|
|
2760
2704
|
};
|
|
2761
2705
|
}
|
|
2762
|
-
Object.defineProperty(
|
|
2706
|
+
Object.defineProperty(t.i.M, b, x);
|
|
2763
2707
|
return [];
|
|
2764
2708
|
});
|
|
2765
2709
|
return [];
|
|
2766
2710
|
});
|
|
2767
2711
|
}, _embind_register_emval:function(a, b) {
|
|
2768
|
-
b =
|
|
2712
|
+
b = O(b);
|
|
2769
2713
|
Kc(a, {name:b, fromWireType:function(c) {
|
|
2770
2714
|
var d = gc(c);
|
|
2771
2715
|
fd(c);
|
|
@@ -2777,7 +2721,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2777
2721
|
function e() {
|
|
2778
2722
|
}
|
|
2779
2723
|
c = Lc(c);
|
|
2780
|
-
b =
|
|
2724
|
+
b = O(b);
|
|
2781
2725
|
e.values = {};
|
|
2782
2726
|
Kc(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2783
2727
|
return this.constructor.values[f];
|
|
@@ -2787,7 +2731,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2787
2731
|
Qc(b, e);
|
|
2788
2732
|
}, _embind_register_enum_value:function(a, b, c) {
|
|
2789
2733
|
var d = uc(a, "enum");
|
|
2790
|
-
b =
|
|
2734
|
+
b = O(b);
|
|
2791
2735
|
a = d.constructor;
|
|
2792
2736
|
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:dc(`${d.name}_${b}`, function() {
|
|
2793
2737
|
})},});
|
|
@@ -2795,7 +2739,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2795
2739
|
a[b] = d;
|
|
2796
2740
|
}, _embind_register_float:function(a, b, c) {
|
|
2797
2741
|
c = Lc(c);
|
|
2798
|
-
b =
|
|
2742
|
+
b = O(b);
|
|
2799
2743
|
Kc(a, {name:b, fromWireType:function(d) {
|
|
2800
2744
|
return d;
|
|
2801
2745
|
}, toWireType:function(d, e) {
|
|
@@ -2803,7 +2747,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2803
2747
|
}, argPackAdvance:8, readValueFromPointer:hd(b, c), J:null,});
|
|
2804
2748
|
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2805
2749
|
var g = dd(b, c);
|
|
2806
|
-
a =
|
|
2750
|
+
a = O(a);
|
|
2807
2751
|
e = R(d, e);
|
|
2808
2752
|
Qc(a, function() {
|
|
2809
2753
|
bd(`Cannot call ${a} due to unbound types`, g);
|
|
@@ -2813,7 +2757,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2813
2757
|
return [];
|
|
2814
2758
|
});
|
|
2815
2759
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2816
|
-
b =
|
|
2760
|
+
b = O(b);
|
|
2817
2761
|
-1 === e && (e = 4294967295);
|
|
2818
2762
|
e = Lc(c);
|
|
2819
2763
|
var f = k => k;
|
|
@@ -2830,22 +2774,22 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2830
2774
|
}, _embind_register_memory_view:function(a, b, c) {
|
|
2831
2775
|
function d(f) {
|
|
2832
2776
|
f >>= 2;
|
|
2833
|
-
var g =
|
|
2777
|
+
var g = D;
|
|
2834
2778
|
return new e(g.buffer, g[f + 1], g[f]);
|
|
2835
2779
|
}
|
|
2836
2780
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2837
|
-
c =
|
|
2838
|
-
Kc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {
|
|
2781
|
+
c = O(c);
|
|
2782
|
+
Kc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Tb:!0,});
|
|
2839
2783
|
}, _embind_register_std_string:function(a, b) {
|
|
2840
|
-
b =
|
|
2784
|
+
b = O(b);
|
|
2841
2785
|
var c = "std::string" === b;
|
|
2842
2786
|
Kc(a, {name:b, fromWireType:function(d) {
|
|
2843
|
-
var e =
|
|
2787
|
+
var e = D[d >> 2], f = d + 4;
|
|
2844
2788
|
if (c) {
|
|
2845
2789
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
2846
2790
|
var q = f + k;
|
|
2847
2791
|
if (k == e || 0 == w[q]) {
|
|
2848
|
-
g = g ?
|
|
2792
|
+
g = g ? F(w, g, q - g) : "";
|
|
2849
2793
|
if (void 0 === n) {
|
|
2850
2794
|
var n = g;
|
|
2851
2795
|
} else {
|
|
@@ -2866,17 +2810,17 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2866
2810
|
}, toWireType:function(d, e) {
|
|
2867
2811
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
2868
2812
|
var f = "string" == typeof e;
|
|
2869
|
-
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array ||
|
|
2813
|
+
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || M("Cannot pass non-string to std::string");
|
|
2870
2814
|
var g = c && f ? gb(e) : e.length;
|
|
2871
2815
|
var k = Yd(4 + g + 1), q = k + 4;
|
|
2872
|
-
|
|
2816
|
+
D[k >> 2] = g;
|
|
2873
2817
|
if (c && f) {
|
|
2874
2818
|
hb(e, w, q, g + 1);
|
|
2875
2819
|
} else {
|
|
2876
2820
|
if (f) {
|
|
2877
2821
|
for (f = 0; f < g; ++f) {
|
|
2878
2822
|
var n = e.charCodeAt(f);
|
|
2879
|
-
255 < n && (tc(q),
|
|
2823
|
+
255 < n && (tc(q), M("String has UTF-16 code units that do not fit in 8 bits"));
|
|
2880
2824
|
w[q + f] = n;
|
|
2881
2825
|
}
|
|
2882
2826
|
} else {
|
|
@@ -2891,42 +2835,42 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2891
2835
|
tc(d);
|
|
2892
2836
|
},});
|
|
2893
2837
|
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2894
|
-
c =
|
|
2838
|
+
c = O(c);
|
|
2895
2839
|
if (2 === b) {
|
|
2896
2840
|
var d = ld;
|
|
2897
2841
|
var e = md;
|
|
2898
2842
|
var f = nd;
|
|
2899
|
-
var g = () =>
|
|
2843
|
+
var g = () => za;
|
|
2900
2844
|
var k = 1;
|
|
2901
2845
|
} else {
|
|
2902
|
-
4 === b && (d = od, e = pd, f = qd, g = () =>
|
|
2846
|
+
4 === b && (d = od, e = pd, f = qd, g = () => D, k = 2);
|
|
2903
2847
|
}
|
|
2904
2848
|
Kc(a, {name:c, fromWireType:function(q) {
|
|
2905
|
-
for (var n =
|
|
2849
|
+
for (var n = D[q >> 2], t = g(), v, y = q + 4, l = 0; l <= n; ++l) {
|
|
2906
2850
|
var r = q + 4 + l * b;
|
|
2907
|
-
if (l == n || 0 ==
|
|
2851
|
+
if (l == n || 0 == t[r >> k]) {
|
|
2908
2852
|
y = d(y, r - y), void 0 === v ? v = y : (v += String.fromCharCode(0), v += y), y = r + b;
|
|
2909
2853
|
}
|
|
2910
2854
|
}
|
|
2911
2855
|
tc(q);
|
|
2912
2856
|
return v;
|
|
2913
2857
|
}, toWireType:function(q, n) {
|
|
2914
|
-
"string" != typeof n &&
|
|
2915
|
-
var
|
|
2916
|
-
|
|
2917
|
-
e(n, v + 4,
|
|
2858
|
+
"string" != typeof n && M(`Cannot pass non-string to C++ string type ${c}`);
|
|
2859
|
+
var t = f(n), v = Yd(4 + t + b);
|
|
2860
|
+
D[v >> 2] = t >> k;
|
|
2861
|
+
e(n, v + 4, t + b);
|
|
2918
2862
|
null !== q && q.push(tc, v);
|
|
2919
2863
|
return v;
|
|
2920
2864
|
}, argPackAdvance:8, readValueFromPointer:Hc, J:function(q) {
|
|
2921
2865
|
tc(q);
|
|
2922
2866
|
},});
|
|
2923
2867
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2924
|
-
Fc[a] = {name:
|
|
2868
|
+
Fc[a] = {name:O(b), Pa:R(c, d), U:R(e, f), $a:[],};
|
|
2925
2869
|
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, k, q, n) {
|
|
2926
|
-
Fc[a].
|
|
2870
|
+
Fc[a].$a.push({Lb:O(b), Rb:c, Pb:R(d, e), Qb:f, fc:g, ec:R(k, q), hc:n,});
|
|
2927
2871
|
}, _embind_register_void:function(a, b) {
|
|
2928
|
-
b =
|
|
2929
|
-
Kc(a, {
|
|
2872
|
+
b = O(b);
|
|
2873
|
+
Kc(a, {Zb:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2930
2874
|
}, toWireType:function() {
|
|
2931
2875
|
},});
|
|
2932
2876
|
}, _emscripten_get_now_is_monotonic:() => !0, _emscripten_throw_longjmp:() => {
|
|
@@ -2935,14 +2879,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2935
2879
|
a = gc(a);
|
|
2936
2880
|
b = uc(b, "emval::as");
|
|
2937
2881
|
var d = [], e = hc(d);
|
|
2938
|
-
|
|
2882
|
+
D[c >> 2] = e;
|
|
2939
2883
|
return b.toWireType(d, a);
|
|
2940
2884
|
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2941
2885
|
a = td[a];
|
|
2942
2886
|
b = gc(b);
|
|
2943
2887
|
c = sd(c);
|
|
2944
2888
|
var f = [];
|
|
2945
|
-
|
|
2889
|
+
D[d >> 2] = hc(f);
|
|
2946
2890
|
return a(b, c, f, e);
|
|
2947
2891
|
}, _emval_call_void_method:function(a, b, c, d) {
|
|
2948
2892
|
a = td[a];
|
|
@@ -2960,14 +2904,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2960
2904
|
}
|
|
2961
2905
|
var f = Array(a - 1);
|
|
2962
2906
|
e = ud((g, k, q, n) => {
|
|
2963
|
-
for (var
|
|
2964
|
-
f[v] = c[v + 1].readValueFromPointer(n +
|
|
2907
|
+
for (var t = 0, v = 0; v < a - 1; ++v) {
|
|
2908
|
+
f[v] = c[v + 1].readValueFromPointer(n + t), t += c[v + 1].argPackAdvance;
|
|
2965
2909
|
}
|
|
2966
2910
|
g = g[k].apply(g, f);
|
|
2967
2911
|
for (v = 0; v < a - 1; ++v) {
|
|
2968
|
-
c[v + 1].
|
|
2912
|
+
c[v + 1].Hb && c[v + 1].Hb(f[v]);
|
|
2969
2913
|
}
|
|
2970
|
-
if (!d.
|
|
2914
|
+
if (!d.Zb) {
|
|
2971
2915
|
return d.toWireType(q, g);
|
|
2972
2916
|
}
|
|
2973
2917
|
});
|
|
@@ -2977,7 +2921,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2977
2921
|
b = gc(b);
|
|
2978
2922
|
return hc(a[b]);
|
|
2979
2923
|
}, _emval_incref:function(a) {
|
|
2980
|
-
4 < a && (
|
|
2924
|
+
4 < a && (L.get(a).pb += 1);
|
|
2981
2925
|
}, _emval_new_cstring:function(a) {
|
|
2982
2926
|
return hc(sd(a));
|
|
2983
2927
|
}, _emval_new_object:function() {
|
|
@@ -3001,9 +2945,9 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3001
2945
|
xd.length = 0;
|
|
3002
2946
|
var d;
|
|
3003
2947
|
for (c >>= 2; d = w[b++];) {
|
|
3004
|
-
c += 105 != d & c, xd.push(105 == d ?
|
|
2948
|
+
c += 105 != d & c, xd.push(105 == d ? B[c] : Aa[c++ >> 1]), ++c;
|
|
3005
2949
|
}
|
|
3006
|
-
return
|
|
2950
|
+
return Wa[a].apply(null, xd);
|
|
3007
2951
|
}, emscripten_date_now:function() {
|
|
3008
2952
|
return Date.now();
|
|
3009
2953
|
}, emscripten_get_now:() => performance.now(), emscripten_glActiveTexture:function(a) {
|
|
@@ -3011,7 +2955,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3011
2955
|
}, emscripten_glAttachShader:function(a, b) {
|
|
3012
2956
|
U.attachShader(Dd[a], Hd[b]);
|
|
3013
2957
|
}, emscripten_glBindAttribLocation:function(a, b, c) {
|
|
3014
|
-
U.bindAttribLocation(Dd[a], b, c ?
|
|
2958
|
+
U.bindAttribLocation(Dd[a], b, c ? F(w, c) : "");
|
|
3015
2959
|
}, emscripten_glBindBuffer:function(a, b) {
|
|
3016
2960
|
35051 == a ? U.Ka = b : 35052 == a && (U.fa = b);
|
|
3017
2961
|
U.bindBuffer(a, Cd[b]);
|
|
@@ -3054,26 +2998,26 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3054
2998
|
}, emscripten_glCopyTexSubImage2D:function(a, b, c, d, e, f, g, k) {
|
|
3055
2999
|
U.copyTexSubImage2D(a, b, c, d, e, f, g, k);
|
|
3056
3000
|
}, emscripten_glCreateProgram:function() {
|
|
3057
|
-
var a =
|
|
3001
|
+
var a = ia(Dd), b = U.createProgram();
|
|
3058
3002
|
b.name = a;
|
|
3059
|
-
b.
|
|
3060
|
-
b.
|
|
3003
|
+
b.za = b.xa = b.ya = 0;
|
|
3004
|
+
b.Sa = 1;
|
|
3061
3005
|
Dd[a] = b;
|
|
3062
3006
|
return a;
|
|
3063
3007
|
}, emscripten_glCreateShader:function(a) {
|
|
3064
|
-
var b =
|
|
3008
|
+
var b = ia(Hd);
|
|
3065
3009
|
Hd[b] = U.createShader(a);
|
|
3066
3010
|
return b;
|
|
3067
3011
|
}, emscripten_glCullFace:function(a) {
|
|
3068
3012
|
U.cullFace(a);
|
|
3069
3013
|
}, emscripten_glDeleteBuffers:function(a, b) {
|
|
3070
3014
|
for (var c = 0; c < a; c++) {
|
|
3071
|
-
var d =
|
|
3015
|
+
var d = B[b + 4 * c >> 2], e = Cd[d];
|
|
3072
3016
|
e && (U.deleteBuffer(e), e.name = 0, Cd[d] = null, d == U.Ka && (U.Ka = 0), d == U.fa && (U.fa = 0));
|
|
3073
3017
|
}
|
|
3074
3018
|
}, emscripten_glDeleteFramebuffers:function(a, b) {
|
|
3075
3019
|
for (var c = 0; c < a; ++c) {
|
|
3076
|
-
var d =
|
|
3020
|
+
var d = B[b + 4 * c >> 2], e = Ed[d];
|
|
3077
3021
|
e && (U.deleteFramebuffer(e), e.name = 0, Ed[d] = null);
|
|
3078
3022
|
}
|
|
3079
3023
|
}, emscripten_glDeleteProgram:function(a) {
|
|
@@ -3083,12 +3027,12 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3083
3027
|
}
|
|
3084
3028
|
}, emscripten_glDeleteRenderbuffers:function(a, b) {
|
|
3085
3029
|
for (var c = 0; c < a; c++) {
|
|
3086
|
-
var d =
|
|
3030
|
+
var d = B[b + 4 * c >> 2], e = Fd[d];
|
|
3087
3031
|
e && (U.deleteRenderbuffer(e), e.name = 0, Fd[d] = null);
|
|
3088
3032
|
}
|
|
3089
3033
|
}, emscripten_glDeleteSamplers:function(a, b) {
|
|
3090
3034
|
for (var c = 0; c < a; c++) {
|
|
3091
|
-
var d =
|
|
3035
|
+
var d = B[b + 4 * c >> 2], e = Jd[d];
|
|
3092
3036
|
e && (U.deleteSampler(e), e.name = 0, Jd[d] = null);
|
|
3093
3037
|
}
|
|
3094
3038
|
}, emscripten_glDeleteShader:function(a) {
|
|
@@ -3103,7 +3047,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3103
3047
|
}
|
|
3104
3048
|
}, emscripten_glDeleteTextures:function(a, b) {
|
|
3105
3049
|
for (var c = 0; c < a; c++) {
|
|
3106
|
-
var d =
|
|
3050
|
+
var d = B[b + 4 * c >> 2], e = Gd[d];
|
|
3107
3051
|
e && (U.deleteTexture(e), e.name = 0, Gd[d] = null);
|
|
3108
3052
|
}
|
|
3109
3053
|
}, emscripten_glDeleteVertexArrays:Rd, emscripten_glDeleteVertexArraysOES:Rd, emscripten_glDepthMask:function(a) {
|
|
@@ -3117,16 +3061,16 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3117
3061
|
}, emscripten_glDrawArraysInstanced:function(a, b, c, d) {
|
|
3118
3062
|
U.drawArraysInstanced(a, b, c, d);
|
|
3119
3063
|
}, emscripten_glDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e) {
|
|
3120
|
-
U.
|
|
3064
|
+
U.Ya.drawArraysInstancedBaseInstanceWEBGL(a, b, c, d, e);
|
|
3121
3065
|
}, emscripten_glDrawBuffers:function(a, b) {
|
|
3122
3066
|
for (var c = Sd[a], d = 0; d < a; d++) {
|
|
3123
|
-
c[d] =
|
|
3067
|
+
c[d] = B[b + 4 * d >> 2];
|
|
3124
3068
|
}
|
|
3125
3069
|
U.drawBuffers(c);
|
|
3126
3070
|
}, emscripten_glDrawElements:Td, emscripten_glDrawElementsInstanced:function(a, b, c, d, e) {
|
|
3127
3071
|
U.drawElementsInstanced(a, b, c, d, e);
|
|
3128
3072
|
}, emscripten_glDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g) {
|
|
3129
|
-
U.
|
|
3073
|
+
U.Ya.drawElementsInstancedBaseVertexBaseInstanceWEBGL(a, b, c, d, e, f, g);
|
|
3130
3074
|
}, emscripten_glDrawRangeElements:function(a, b, c, d, e, f) {
|
|
3131
3075
|
Td(a, d, e, f);
|
|
3132
3076
|
}, emscripten_glEnable:function(a) {
|
|
@@ -3134,7 +3078,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3134
3078
|
}, emscripten_glEnableVertexAttribArray:function(a) {
|
|
3135
3079
|
U.enableVertexAttribArray(a);
|
|
3136
3080
|
}, emscripten_glFenceSync:function(a, b) {
|
|
3137
|
-
return (a = U.fenceSync(a, b)) ? (b =
|
|
3081
|
+
return (a = U.fenceSync(a, b)) ? (b = ia(Kd), a.name = b, Kd[b] = a, b) : 0;
|
|
3138
3082
|
}, emscripten_glFinish:function() {
|
|
3139
3083
|
U.finish();
|
|
3140
3084
|
}, emscripten_glFlush:function() {
|
|
@@ -3158,7 +3102,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3158
3102
|
}, emscripten_glGenVertexArrays:Vd, emscripten_glGenVertexArraysOES:Vd, emscripten_glGenerateMipmap:function(a) {
|
|
3159
3103
|
U.generateMipmap(a);
|
|
3160
3104
|
}, emscripten_glGetBufferParameteriv:function(a, b, c) {
|
|
3161
|
-
c ?
|
|
3105
|
+
c ? B[c >> 2] = U.getBufferParameter(a, b) : S(1281);
|
|
3162
3106
|
}, emscripten_glGetError:function() {
|
|
3163
3107
|
var a = U.getError() || Od;
|
|
3164
3108
|
Od = 0;
|
|
@@ -3168,61 +3112,61 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3168
3112
|
if (a instanceof WebGLRenderbuffer || a instanceof WebGLTexture) {
|
|
3169
3113
|
a = a.name | 0;
|
|
3170
3114
|
}
|
|
3171
|
-
|
|
3115
|
+
B[d >> 2] = a;
|
|
3172
3116
|
}, emscripten_glGetIntegerv:Xd, emscripten_glGetProgramInfoLog:function(a, b, c, d) {
|
|
3173
3117
|
a = U.getProgramInfoLog(Dd[a]);
|
|
3174
3118
|
null === a && (a = "(unknown error)");
|
|
3175
3119
|
b = 0 < b && d ? hb(a, w, d, b) : 0;
|
|
3176
|
-
c && (
|
|
3120
|
+
c && (B[c >> 2] = b);
|
|
3177
3121
|
}, emscripten_glGetProgramiv:function(a, b, c) {
|
|
3178
3122
|
if (c) {
|
|
3179
3123
|
if (a >= Bd) {
|
|
3180
3124
|
S(1281);
|
|
3181
3125
|
} else {
|
|
3182
3126
|
if (a = Dd[a], 35716 == b) {
|
|
3183
|
-
a = U.getProgramInfoLog(a), null === a && (a = "(unknown error)"),
|
|
3127
|
+
a = U.getProgramInfoLog(a), null === a && (a = "(unknown error)"), B[c >> 2] = a.length + 1;
|
|
3184
3128
|
} else if (35719 == b) {
|
|
3185
|
-
if (!a.
|
|
3129
|
+
if (!a.za) {
|
|
3186
3130
|
for (b = 0; b < U.getProgramParameter(a, 35718); ++b) {
|
|
3187
|
-
a.
|
|
3131
|
+
a.za = Math.max(a.za, U.getActiveUniform(a, b).name.length + 1);
|
|
3188
3132
|
}
|
|
3189
3133
|
}
|
|
3190
|
-
|
|
3134
|
+
B[c >> 2] = a.za;
|
|
3191
3135
|
} else if (35722 == b) {
|
|
3192
|
-
if (!a.
|
|
3136
|
+
if (!a.xa) {
|
|
3193
3137
|
for (b = 0; b < U.getProgramParameter(a, 35721); ++b) {
|
|
3194
|
-
a.
|
|
3138
|
+
a.xa = Math.max(a.xa, U.getActiveAttrib(a, b).name.length + 1);
|
|
3195
3139
|
}
|
|
3196
3140
|
}
|
|
3197
|
-
|
|
3141
|
+
B[c >> 2] = a.xa;
|
|
3198
3142
|
} else if (35381 == b) {
|
|
3199
|
-
if (!a.
|
|
3143
|
+
if (!a.ya) {
|
|
3200
3144
|
for (b = 0; b < U.getProgramParameter(a, 35382); ++b) {
|
|
3201
|
-
a.
|
|
3145
|
+
a.ya = Math.max(a.ya, U.getActiveUniformBlockName(a, b).length + 1);
|
|
3202
3146
|
}
|
|
3203
3147
|
}
|
|
3204
|
-
|
|
3148
|
+
B[c >> 2] = a.ya;
|
|
3205
3149
|
} else {
|
|
3206
|
-
|
|
3150
|
+
B[c >> 2] = U.getProgramParameter(a, b);
|
|
3207
3151
|
}
|
|
3208
3152
|
}
|
|
3209
3153
|
} else {
|
|
3210
3154
|
S(1281);
|
|
3211
3155
|
}
|
|
3212
3156
|
}, emscripten_glGetRenderbufferParameteriv:function(a, b, c) {
|
|
3213
|
-
c ?
|
|
3157
|
+
c ? B[c >> 2] = U.getRenderbufferParameter(a, b) : S(1281);
|
|
3214
3158
|
}, emscripten_glGetShaderInfoLog:function(a, b, c, d) {
|
|
3215
3159
|
a = U.getShaderInfoLog(Hd[a]);
|
|
3216
3160
|
null === a && (a = "(unknown error)");
|
|
3217
3161
|
b = 0 < b && d ? hb(a, w, d, b) : 0;
|
|
3218
|
-
c && (
|
|
3162
|
+
c && (B[c >> 2] = b);
|
|
3219
3163
|
}, emscripten_glGetShaderPrecisionFormat:function(a, b, c, d) {
|
|
3220
3164
|
a = U.getShaderPrecisionFormat(a, b);
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3165
|
+
B[c >> 2] = a.rangeMin;
|
|
3166
|
+
B[c + 4 >> 2] = a.rangeMax;
|
|
3167
|
+
B[d >> 2] = a.precision;
|
|
3224
3168
|
}, emscripten_glGetShaderiv:function(a, b, c) {
|
|
3225
|
-
c ? 35716 == b ? (a = U.getShaderInfoLog(Hd[a]), null === a && (a = "(unknown error)"),
|
|
3169
|
+
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);
|
|
3226
3170
|
}, emscripten_glGetString:function(a) {
|
|
3227
3171
|
var b = Ld[a];
|
|
3228
3172
|
if (!b) {
|
|
@@ -3277,30 +3221,30 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3277
3221
|
return S(1280), 0;
|
|
3278
3222
|
}
|
|
3279
3223
|
}, emscripten_glGetUniformLocation:function(a, b) {
|
|
3280
|
-
b = b ?
|
|
3224
|
+
b = b ? F(w, b) : "";
|
|
3281
3225
|
if (a = Dd[a]) {
|
|
3282
|
-
var c = a, d = c.
|
|
3226
|
+
var c = a, d = c.ma, e = c.ub, f;
|
|
3283
3227
|
if (!d) {
|
|
3284
|
-
for (c.
|
|
3228
|
+
for (c.ma = d = {}, c.tb = {}, f = 0; f < U.getProgramParameter(c, 35718); ++f) {
|
|
3285
3229
|
var g = U.getActiveUniform(c, f);
|
|
3286
3230
|
var k = g.name;
|
|
3287
3231
|
g = g.size;
|
|
3288
3232
|
var q = $d(k);
|
|
3289
3233
|
q = 0 < q ? k.slice(0, q) : k;
|
|
3290
|
-
var n = c.
|
|
3291
|
-
c.
|
|
3234
|
+
var n = c.Sa;
|
|
3235
|
+
c.Sa += g;
|
|
3292
3236
|
e[q] = [g, n];
|
|
3293
3237
|
for (k = 0; k < g; ++k) {
|
|
3294
|
-
d[n] = k, c.
|
|
3238
|
+
d[n] = k, c.tb[n++] = q;
|
|
3295
3239
|
}
|
|
3296
3240
|
}
|
|
3297
3241
|
}
|
|
3298
|
-
c = a.
|
|
3242
|
+
c = a.ma;
|
|
3299
3243
|
d = 0;
|
|
3300
3244
|
e = b;
|
|
3301
3245
|
f = $d(b);
|
|
3302
3246
|
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3303
|
-
if ((e = a.
|
|
3247
|
+
if ((e = a.ub[e]) && d < e[0] && (d += e[1], c[d] = c[d] || U.getUniformLocation(a, b))) {
|
|
3304
3248
|
return d;
|
|
3305
3249
|
}
|
|
3306
3250
|
} else {
|
|
@@ -3309,12 +3253,12 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3309
3253
|
return -1;
|
|
3310
3254
|
}, emscripten_glInvalidateFramebuffer:function(a, b, c) {
|
|
3311
3255
|
for (var d = Sd[b], e = 0; e < b; e++) {
|
|
3312
|
-
d[e] =
|
|
3256
|
+
d[e] = B[c + 4 * e >> 2];
|
|
3313
3257
|
}
|
|
3314
3258
|
U.invalidateFramebuffer(a, d);
|
|
3315
3259
|
}, emscripten_glInvalidateSubFramebuffer:function(a, b, c, d, e, f, g) {
|
|
3316
3260
|
for (var k = Sd[b], q = 0; q < b; q++) {
|
|
3317
|
-
k[q] =
|
|
3261
|
+
k[q] = B[c + 4 * q >> 2];
|
|
3318
3262
|
}
|
|
3319
3263
|
U.invalidateSubFramebuffer(a, k, d, e, f, g);
|
|
3320
3264
|
}, emscripten_glIsSync:function(a) {
|
|
@@ -3326,12 +3270,12 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3326
3270
|
}, emscripten_glLinkProgram:function(a) {
|
|
3327
3271
|
a = Dd[a];
|
|
3328
3272
|
U.linkProgram(a);
|
|
3329
|
-
a.
|
|
3330
|
-
a.
|
|
3273
|
+
a.ma = 0;
|
|
3274
|
+
a.ub = {};
|
|
3331
3275
|
}, emscripten_glMultiDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e, f) {
|
|
3332
|
-
U.
|
|
3276
|
+
U.gb.multiDrawArraysInstancedBaseInstanceWEBGL(a, B, b >> 2, B, c >> 2, B, d >> 2, D, e >> 2, f);
|
|
3333
3277
|
}, emscripten_glMultiDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g, k) {
|
|
3334
|
-
U.
|
|
3278
|
+
U.gb.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(a, B, b >> 2, c, B, d >> 2, B, e >> 2, B, f >> 2, D, g >> 2, k);
|
|
3335
3279
|
}, emscripten_glPixelStorei:function(a, b) {
|
|
3336
3280
|
3317 == a && (Nd = b);
|
|
3337
3281
|
U.pixelStorei(a, b);
|
|
@@ -3355,13 +3299,13 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3355
3299
|
}, emscripten_glSamplerParameteri:function(a, b, c) {
|
|
3356
3300
|
U.samplerParameteri(Jd[a], b, c);
|
|
3357
3301
|
}, emscripten_glSamplerParameteriv:function(a, b, c) {
|
|
3358
|
-
U.samplerParameteri(Jd[a], b,
|
|
3302
|
+
U.samplerParameteri(Jd[a], b, B[c >> 2]);
|
|
3359
3303
|
}, emscripten_glScissor:function(a, b, c, d) {
|
|
3360
3304
|
U.scissor(a, b, c, d);
|
|
3361
3305
|
}, emscripten_glShaderSource:function(a, b, c, d) {
|
|
3362
3306
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3363
|
-
var g = d ?
|
|
3364
|
-
g = k ?
|
|
3307
|
+
var g = d ? B[d + 4 * f >> 2] : -1, k = B[c + 4 * f >> 2];
|
|
3308
|
+
g = k ? F(w, k, 0 > g ? void 0 : g) : "";
|
|
3365
3309
|
e += g;
|
|
3366
3310
|
}
|
|
3367
3311
|
U.shaderSource(Hd[a], e);
|
|
@@ -3393,11 +3337,11 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3393
3337
|
}, emscripten_glTexParameterf:function(a, b, c) {
|
|
3394
3338
|
U.texParameterf(a, b, c);
|
|
3395
3339
|
}, emscripten_glTexParameterfv:function(a, b, c) {
|
|
3396
|
-
U.texParameterf(a, b,
|
|
3340
|
+
U.texParameterf(a, b, E[c >> 2]);
|
|
3397
3341
|
}, emscripten_glTexParameteri:function(a, b, c) {
|
|
3398
3342
|
U.texParameteri(a, b, c);
|
|
3399
3343
|
}, emscripten_glTexParameteriv:function(a, b, c) {
|
|
3400
|
-
U.texParameteri(a, b,
|
|
3344
|
+
U.texParameteri(a, b, B[c >> 2]);
|
|
3401
3345
|
}, emscripten_glTexStorage2D:function(a, b, c, d, e) {
|
|
3402
3346
|
U.texStorage2D(a, b, c, d, e);
|
|
3403
3347
|
}, emscripten_glTexSubImage2D:function(a, b, c, d, e, f, g, k, q) {
|
|
@@ -3417,14 +3361,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3417
3361
|
U.uniform1f(V(a), b);
|
|
3418
3362
|
}, emscripten_glUniform1fv:function(a, b, c) {
|
|
3419
3363
|
if (2 <= T.version) {
|
|
3420
|
-
b && U.uniform1fv(V(a),
|
|
3364
|
+
b && U.uniform1fv(V(a), E, c >> 2, b);
|
|
3421
3365
|
} else {
|
|
3422
3366
|
if (288 >= b) {
|
|
3423
3367
|
for (var d = ce[b - 1], e = 0; e < b; ++e) {
|
|
3424
|
-
d[e] =
|
|
3368
|
+
d[e] = E[c + 4 * e >> 2];
|
|
3425
3369
|
}
|
|
3426
3370
|
} else {
|
|
3427
|
-
d =
|
|
3371
|
+
d = E.subarray(c >> 2, c + 4 * b >> 2);
|
|
3428
3372
|
}
|
|
3429
3373
|
U.uniform1fv(V(a), d);
|
|
3430
3374
|
}
|
|
@@ -3432,14 +3376,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3432
3376
|
U.uniform1i(V(a), b);
|
|
3433
3377
|
}, emscripten_glUniform1iv:function(a, b, c) {
|
|
3434
3378
|
if (2 <= T.version) {
|
|
3435
|
-
b && U.uniform1iv(V(a),
|
|
3379
|
+
b && U.uniform1iv(V(a), B, c >> 2, b);
|
|
3436
3380
|
} else {
|
|
3437
3381
|
if (288 >= b) {
|
|
3438
3382
|
for (var d = de[b - 1], e = 0; e < b; ++e) {
|
|
3439
|
-
d[e] =
|
|
3383
|
+
d[e] = B[c + 4 * e >> 2];
|
|
3440
3384
|
}
|
|
3441
3385
|
} else {
|
|
3442
|
-
d =
|
|
3386
|
+
d = B.subarray(c >> 2, c + 4 * b >> 2);
|
|
3443
3387
|
}
|
|
3444
3388
|
U.uniform1iv(V(a), d);
|
|
3445
3389
|
}
|
|
@@ -3447,14 +3391,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3447
3391
|
U.uniform2f(V(a), b, c);
|
|
3448
3392
|
}, emscripten_glUniform2fv:function(a, b, c) {
|
|
3449
3393
|
if (2 <= T.version) {
|
|
3450
|
-
b && U.uniform2fv(V(a),
|
|
3394
|
+
b && U.uniform2fv(V(a), E, c >> 2, 2 * b);
|
|
3451
3395
|
} else {
|
|
3452
3396
|
if (144 >= b) {
|
|
3453
3397
|
for (var d = ce[2 * b - 1], e = 0; e < 2 * b; e += 2) {
|
|
3454
|
-
d[e] =
|
|
3398
|
+
d[e] = E[c + 4 * e >> 2], d[e + 1] = E[c + (4 * e + 4) >> 2];
|
|
3455
3399
|
}
|
|
3456
3400
|
} else {
|
|
3457
|
-
d =
|
|
3401
|
+
d = E.subarray(c >> 2, c + 8 * b >> 2);
|
|
3458
3402
|
}
|
|
3459
3403
|
U.uniform2fv(V(a), d);
|
|
3460
3404
|
}
|
|
@@ -3462,14 +3406,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3462
3406
|
U.uniform2i(V(a), b, c);
|
|
3463
3407
|
}, emscripten_glUniform2iv:function(a, b, c) {
|
|
3464
3408
|
if (2 <= T.version) {
|
|
3465
|
-
b && U.uniform2iv(V(a),
|
|
3409
|
+
b && U.uniform2iv(V(a), B, c >> 2, 2 * b);
|
|
3466
3410
|
} else {
|
|
3467
3411
|
if (144 >= b) {
|
|
3468
3412
|
for (var d = de[2 * b - 1], e = 0; e < 2 * b; e += 2) {
|
|
3469
|
-
d[e] =
|
|
3413
|
+
d[e] = B[c + 4 * e >> 2], d[e + 1] = B[c + (4 * e + 4) >> 2];
|
|
3470
3414
|
}
|
|
3471
3415
|
} else {
|
|
3472
|
-
d =
|
|
3416
|
+
d = B.subarray(c >> 2, c + 8 * b >> 2);
|
|
3473
3417
|
}
|
|
3474
3418
|
U.uniform2iv(V(a), d);
|
|
3475
3419
|
}
|
|
@@ -3477,14 +3421,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3477
3421
|
U.uniform3f(V(a), b, c, d);
|
|
3478
3422
|
}, emscripten_glUniform3fv:function(a, b, c) {
|
|
3479
3423
|
if (2 <= T.version) {
|
|
3480
|
-
b && U.uniform3fv(V(a),
|
|
3424
|
+
b && U.uniform3fv(V(a), E, c >> 2, 3 * b);
|
|
3481
3425
|
} else {
|
|
3482
3426
|
if (96 >= b) {
|
|
3483
3427
|
for (var d = ce[3 * b - 1], e = 0; e < 3 * b; e += 3) {
|
|
3484
|
-
d[e] =
|
|
3428
|
+
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];
|
|
3485
3429
|
}
|
|
3486
3430
|
} else {
|
|
3487
|
-
d =
|
|
3431
|
+
d = E.subarray(c >> 2, c + 12 * b >> 2);
|
|
3488
3432
|
}
|
|
3489
3433
|
U.uniform3fv(V(a), d);
|
|
3490
3434
|
}
|
|
@@ -3492,14 +3436,14 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3492
3436
|
U.uniform3i(V(a), b, c, d);
|
|
3493
3437
|
}, emscripten_glUniform3iv:function(a, b, c) {
|
|
3494
3438
|
if (2 <= T.version) {
|
|
3495
|
-
b && U.uniform3iv(V(a),
|
|
3439
|
+
b && U.uniform3iv(V(a), B, c >> 2, 3 * b);
|
|
3496
3440
|
} else {
|
|
3497
3441
|
if (96 >= b) {
|
|
3498
3442
|
for (var d = de[3 * b - 1], e = 0; e < 3 * b; e += 3) {
|
|
3499
|
-
d[e] =
|
|
3443
|
+
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];
|
|
3500
3444
|
}
|
|
3501
3445
|
} else {
|
|
3502
|
-
d =
|
|
3446
|
+
d = B.subarray(c >> 2, c + 12 * b >> 2);
|
|
3503
3447
|
}
|
|
3504
3448
|
U.uniform3iv(V(a), d);
|
|
3505
3449
|
}
|
|
@@ -3507,10 +3451,10 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3507
3451
|
U.uniform4f(V(a), b, c, d, e);
|
|
3508
3452
|
}, emscripten_glUniform4fv:function(a, b, c) {
|
|
3509
3453
|
if (2 <= T.version) {
|
|
3510
|
-
b && U.uniform4fv(V(a),
|
|
3454
|
+
b && U.uniform4fv(V(a), E, c >> 2, 4 * b);
|
|
3511
3455
|
} else {
|
|
3512
3456
|
if (72 >= b) {
|
|
3513
|
-
var d = ce[4 * b - 1], e =
|
|
3457
|
+
var d = ce[4 * b - 1], e = E;
|
|
3514
3458
|
c >>= 2;
|
|
3515
3459
|
for (var f = 0; f < 4 * b; f += 4) {
|
|
3516
3460
|
var g = c + f;
|
|
@@ -3520,7 +3464,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3520
3464
|
d[f + 3] = e[g + 3];
|
|
3521
3465
|
}
|
|
3522
3466
|
} else {
|
|
3523
|
-
d =
|
|
3467
|
+
d = E.subarray(c >> 2, c + 16 * b >> 2);
|
|
3524
3468
|
}
|
|
3525
3469
|
U.uniform4fv(V(a), d);
|
|
3526
3470
|
}
|
|
@@ -3528,49 +3472,49 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3528
3472
|
U.uniform4i(V(a), b, c, d, e);
|
|
3529
3473
|
}, emscripten_glUniform4iv:function(a, b, c) {
|
|
3530
3474
|
if (2 <= T.version) {
|
|
3531
|
-
b && U.uniform4iv(V(a),
|
|
3475
|
+
b && U.uniform4iv(V(a), B, c >> 2, 4 * b);
|
|
3532
3476
|
} else {
|
|
3533
3477
|
if (72 >= b) {
|
|
3534
3478
|
for (var d = de[4 * b - 1], e = 0; e < 4 * b; e += 4) {
|
|
3535
|
-
d[e] =
|
|
3479
|
+
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];
|
|
3536
3480
|
}
|
|
3537
3481
|
} else {
|
|
3538
|
-
d =
|
|
3482
|
+
d = B.subarray(c >> 2, c + 16 * b >> 2);
|
|
3539
3483
|
}
|
|
3540
3484
|
U.uniform4iv(V(a), d);
|
|
3541
3485
|
}
|
|
3542
3486
|
}, emscripten_glUniformMatrix2fv:function(a, b, c, d) {
|
|
3543
3487
|
if (2 <= T.version) {
|
|
3544
|
-
b && U.uniformMatrix2fv(V(a), !!c,
|
|
3488
|
+
b && U.uniformMatrix2fv(V(a), !!c, E, d >> 2, 4 * b);
|
|
3545
3489
|
} else {
|
|
3546
3490
|
if (72 >= b) {
|
|
3547
3491
|
for (var e = ce[4 * b - 1], f = 0; f < 4 * b; f += 4) {
|
|
3548
|
-
e[f] =
|
|
3492
|
+
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];
|
|
3549
3493
|
}
|
|
3550
3494
|
} else {
|
|
3551
|
-
e =
|
|
3495
|
+
e = E.subarray(d >> 2, d + 16 * b >> 2);
|
|
3552
3496
|
}
|
|
3553
3497
|
U.uniformMatrix2fv(V(a), !!c, e);
|
|
3554
3498
|
}
|
|
3555
3499
|
}, emscripten_glUniformMatrix3fv:function(a, b, c, d) {
|
|
3556
3500
|
if (2 <= T.version) {
|
|
3557
|
-
b && U.uniformMatrix3fv(V(a), !!c,
|
|
3501
|
+
b && U.uniformMatrix3fv(V(a), !!c, E, d >> 2, 9 * b);
|
|
3558
3502
|
} else {
|
|
3559
3503
|
if (32 >= b) {
|
|
3560
3504
|
for (var e = ce[9 * b - 1], f = 0; f < 9 * b; f += 9) {
|
|
3561
|
-
e[f] =
|
|
3505
|
+
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];
|
|
3562
3506
|
}
|
|
3563
3507
|
} else {
|
|
3564
|
-
e =
|
|
3508
|
+
e = E.subarray(d >> 2, d + 36 * b >> 2);
|
|
3565
3509
|
}
|
|
3566
3510
|
U.uniformMatrix3fv(V(a), !!c, e);
|
|
3567
3511
|
}
|
|
3568
3512
|
}, emscripten_glUniformMatrix4fv:function(a, b, c, d) {
|
|
3569
3513
|
if (2 <= T.version) {
|
|
3570
|
-
b && U.uniformMatrix4fv(V(a), !!c,
|
|
3514
|
+
b && U.uniformMatrix4fv(V(a), !!c, E, d >> 2, 16 * b);
|
|
3571
3515
|
} else {
|
|
3572
3516
|
if (18 >= b) {
|
|
3573
|
-
var e = ce[16 * b - 1], f =
|
|
3517
|
+
var e = ce[16 * b - 1], f = E;
|
|
3574
3518
|
d >>= 2;
|
|
3575
3519
|
for (var g = 0; g < 16 * b; g += 16) {
|
|
3576
3520
|
var k = d + g;
|
|
@@ -3592,22 +3536,22 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3592
3536
|
e[g + 15] = f[k + 15];
|
|
3593
3537
|
}
|
|
3594
3538
|
} else {
|
|
3595
|
-
e =
|
|
3539
|
+
e = E.subarray(d >> 2, d + 64 * b >> 2);
|
|
3596
3540
|
}
|
|
3597
3541
|
U.uniformMatrix4fv(V(a), !!c, e);
|
|
3598
3542
|
}
|
|
3599
3543
|
}, emscripten_glUseProgram:function(a) {
|
|
3600
3544
|
a = Dd[a];
|
|
3601
3545
|
U.useProgram(a);
|
|
3602
|
-
U.
|
|
3546
|
+
U.Gb = a;
|
|
3603
3547
|
}, emscripten_glVertexAttrib1f:function(a, b) {
|
|
3604
3548
|
U.vertexAttrib1f(a, b);
|
|
3605
3549
|
}, emscripten_glVertexAttrib2fv:function(a, b) {
|
|
3606
|
-
U.vertexAttrib2f(a,
|
|
3550
|
+
U.vertexAttrib2f(a, E[b >> 2], E[b + 4 >> 2]);
|
|
3607
3551
|
}, emscripten_glVertexAttrib3fv:function(a, b) {
|
|
3608
|
-
U.vertexAttrib3f(a,
|
|
3552
|
+
U.vertexAttrib3f(a, E[b >> 2], E[b + 4 >> 2], E[b + 8 >> 2]);
|
|
3609
3553
|
}, emscripten_glVertexAttrib4fv:function(a, b) {
|
|
3610
|
-
U.vertexAttrib4f(a,
|
|
3554
|
+
U.vertexAttrib4f(a, E[b >> 2], E[b + 4 >> 2], E[b + 8 >> 2], E[b + 12 >> 2]);
|
|
3611
3555
|
}, emscripten_glVertexAttribDivisor:function(a, b) {
|
|
3612
3556
|
U.vertexAttribDivisor(a, b);
|
|
3613
3557
|
}, emscripten_glVertexAttribIPointer:function(a, b, c, d, e) {
|
|
@@ -3633,7 +3577,7 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3633
3577
|
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - xa.buffer.byteLength + 65535 >>> 16;
|
|
3634
3578
|
try {
|
|
3635
3579
|
xa.grow(e);
|
|
3636
|
-
|
|
3580
|
+
Ba();
|
|
3637
3581
|
var f = 1;
|
|
3638
3582
|
break a;
|
|
3639
3583
|
} catch (g) {
|
|
@@ -3653,44 +3597,44 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3653
3597
|
var c = 0;
|
|
3654
3598
|
ge().forEach(function(d, e) {
|
|
3655
3599
|
var f = b + c;
|
|
3656
|
-
e =
|
|
3600
|
+
e = D[a + 4 * e >> 2] = f;
|
|
3657
3601
|
for (f = 0; f < d.length; ++f) {
|
|
3658
|
-
|
|
3602
|
+
u[e++ >> 0] = d.charCodeAt(f);
|
|
3659
3603
|
}
|
|
3660
|
-
|
|
3604
|
+
u[e >> 0] = 0;
|
|
3661
3605
|
c += d.length + 1;
|
|
3662
3606
|
});
|
|
3663
3607
|
return 0;
|
|
3664
3608
|
}, environ_sizes_get:(a, b) => {
|
|
3665
3609
|
var c = ge();
|
|
3666
|
-
|
|
3610
|
+
D[a >> 2] = c.length;
|
|
3667
3611
|
var d = 0;
|
|
3668
3612
|
c.forEach(function(e) {
|
|
3669
3613
|
d += e.length + 1;
|
|
3670
3614
|
});
|
|
3671
|
-
|
|
3615
|
+
D[b >> 2] = d;
|
|
3672
3616
|
return 0;
|
|
3673
3617
|
}, fd_close:function(a) {
|
|
3674
3618
|
try {
|
|
3675
3619
|
var b = Mb(a);
|
|
3676
|
-
if (null === b.
|
|
3677
|
-
throw new
|
|
3620
|
+
if (null === b.V) {
|
|
3621
|
+
throw new H(8);
|
|
3678
3622
|
}
|
|
3679
|
-
b.
|
|
3623
|
+
b.Ma && (b.Ma = null);
|
|
3680
3624
|
try {
|
|
3681
3625
|
b.m.close && b.m.close(b);
|
|
3682
3626
|
} catch (c) {
|
|
3683
3627
|
throw c;
|
|
3684
3628
|
} finally {
|
|
3685
|
-
yb[b.
|
|
3629
|
+
yb[b.V] = null;
|
|
3686
3630
|
}
|
|
3687
|
-
b.
|
|
3631
|
+
b.V = null;
|
|
3688
3632
|
return 0;
|
|
3689
3633
|
} catch (c) {
|
|
3690
3634
|
if ("undefined" == typeof $b || "ErrnoError" !== c.name) {
|
|
3691
3635
|
throw c;
|
|
3692
3636
|
}
|
|
3693
|
-
return c.
|
|
3637
|
+
return c.Z;
|
|
3694
3638
|
}
|
|
3695
3639
|
}, fd_read:function(a, b, c, d) {
|
|
3696
3640
|
try {
|
|
@@ -3698,35 +3642,35 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3698
3642
|
var e = Mb(a);
|
|
3699
3643
|
a = b;
|
|
3700
3644
|
for (var f, g = b = 0; g < c; g++) {
|
|
3701
|
-
var k =
|
|
3645
|
+
var k = D[a >> 2], q = D[a + 4 >> 2];
|
|
3702
3646
|
a += 8;
|
|
3703
|
-
var n = e,
|
|
3647
|
+
var n = e, t = k, v = q, y = f, l = u;
|
|
3704
3648
|
if (0 > v || 0 > y) {
|
|
3705
|
-
throw new
|
|
3649
|
+
throw new H(28);
|
|
3706
3650
|
}
|
|
3707
|
-
if (null === n.
|
|
3708
|
-
throw new
|
|
3651
|
+
if (null === n.V) {
|
|
3652
|
+
throw new H(8);
|
|
3709
3653
|
}
|
|
3710
3654
|
if (1 === (n.flags & 2097155)) {
|
|
3711
|
-
throw new
|
|
3655
|
+
throw new H(8);
|
|
3712
3656
|
}
|
|
3713
3657
|
if (16384 === (n.node.mode & 61440)) {
|
|
3714
|
-
throw new
|
|
3658
|
+
throw new H(31);
|
|
3715
3659
|
}
|
|
3716
3660
|
if (!n.m.read) {
|
|
3717
|
-
throw new
|
|
3661
|
+
throw new H(28);
|
|
3718
3662
|
}
|
|
3719
3663
|
var r = "undefined" != typeof y;
|
|
3720
3664
|
if (!r) {
|
|
3721
3665
|
y = n.position;
|
|
3722
3666
|
} else if (!n.seekable) {
|
|
3723
|
-
throw new
|
|
3667
|
+
throw new H(70);
|
|
3724
3668
|
}
|
|
3725
|
-
var x = n.m.read(n, l,
|
|
3669
|
+
var x = n.m.read(n, l, t, v, y);
|
|
3726
3670
|
r || (n.position += x);
|
|
3727
3671
|
var z = x;
|
|
3728
3672
|
if (0 > z) {
|
|
3729
|
-
var
|
|
3673
|
+
var G = -1;
|
|
3730
3674
|
break a;
|
|
3731
3675
|
}
|
|
3732
3676
|
b += z;
|
|
@@ -3735,15 +3679,15 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3735
3679
|
}
|
|
3736
3680
|
"undefined" !== typeof f && (f += z);
|
|
3737
3681
|
}
|
|
3738
|
-
|
|
3682
|
+
G = b;
|
|
3739
3683
|
}
|
|
3740
|
-
|
|
3684
|
+
D[d >> 2] = G;
|
|
3741
3685
|
return 0;
|
|
3742
3686
|
} catch (C) {
|
|
3743
3687
|
if ("undefined" == typeof $b || "ErrnoError" !== C.name) {
|
|
3744
3688
|
throw C;
|
|
3745
3689
|
}
|
|
3746
|
-
return C.
|
|
3690
|
+
return C.Z;
|
|
3747
3691
|
}
|
|
3748
3692
|
}, fd_seek:function(a, b, c, d, e) {
|
|
3749
3693
|
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
@@ -3753,16 +3697,16 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3753
3697
|
}
|
|
3754
3698
|
var f = Mb(a);
|
|
3755
3699
|
Vb(f, b, d);
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
f.
|
|
3700
|
+
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)];
|
|
3701
|
+
B[e >> 2] = Sa[0];
|
|
3702
|
+
B[e + 4 >> 2] = Sa[1];
|
|
3703
|
+
f.Ma && 0 === b && 0 === d && (f.Ma = null);
|
|
3760
3704
|
return 0;
|
|
3761
3705
|
} catch (g) {
|
|
3762
3706
|
if ("undefined" == typeof $b || "ErrnoError" !== g.name) {
|
|
3763
3707
|
throw g;
|
|
3764
3708
|
}
|
|
3765
|
-
return g.
|
|
3709
|
+
return g.Z;
|
|
3766
3710
|
}
|
|
3767
3711
|
}, fd_write:function(a, b, c, d) {
|
|
3768
3712
|
try {
|
|
@@ -3770,71 +3714,71 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3770
3714
|
var e = Mb(a);
|
|
3771
3715
|
a = b;
|
|
3772
3716
|
for (var f, g = b = 0; g < c; g++) {
|
|
3773
|
-
var k =
|
|
3717
|
+
var k = D[a >> 2], q = D[a + 4 >> 2];
|
|
3774
3718
|
a += 8;
|
|
3775
|
-
var n = e,
|
|
3719
|
+
var n = e, t = k, v = q, y = f, l = u;
|
|
3776
3720
|
if (0 > v || 0 > y) {
|
|
3777
|
-
throw new
|
|
3721
|
+
throw new H(28);
|
|
3778
3722
|
}
|
|
3779
|
-
if (null === n.
|
|
3780
|
-
throw new
|
|
3723
|
+
if (null === n.V) {
|
|
3724
|
+
throw new H(8);
|
|
3781
3725
|
}
|
|
3782
3726
|
if (0 === (n.flags & 2097155)) {
|
|
3783
|
-
throw new
|
|
3727
|
+
throw new H(8);
|
|
3784
3728
|
}
|
|
3785
3729
|
if (16384 === (n.node.mode & 61440)) {
|
|
3786
|
-
throw new
|
|
3730
|
+
throw new H(31);
|
|
3787
3731
|
}
|
|
3788
3732
|
if (!n.m.write) {
|
|
3789
|
-
throw new
|
|
3733
|
+
throw new H(28);
|
|
3790
3734
|
}
|
|
3791
3735
|
n.seekable && n.flags & 1024 && Vb(n, 0, 2);
|
|
3792
3736
|
var r = "undefined" != typeof y;
|
|
3793
3737
|
if (!r) {
|
|
3794
3738
|
y = n.position;
|
|
3795
3739
|
} else if (!n.seekable) {
|
|
3796
|
-
throw new
|
|
3740
|
+
throw new H(70);
|
|
3797
3741
|
}
|
|
3798
|
-
var x = n.m.write(n, l,
|
|
3742
|
+
var x = n.m.write(n, l, t, v, y, void 0);
|
|
3799
3743
|
r || (n.position += x);
|
|
3800
3744
|
var z = x;
|
|
3801
3745
|
if (0 > z) {
|
|
3802
|
-
var
|
|
3746
|
+
var G = -1;
|
|
3803
3747
|
break a;
|
|
3804
3748
|
}
|
|
3805
3749
|
b += z;
|
|
3806
3750
|
"undefined" !== typeof f && (f += z);
|
|
3807
3751
|
}
|
|
3808
|
-
|
|
3752
|
+
G = b;
|
|
3809
3753
|
}
|
|
3810
|
-
|
|
3754
|
+
D[d >> 2] = G;
|
|
3811
3755
|
return 0;
|
|
3812
3756
|
} catch (C) {
|
|
3813
3757
|
if ("undefined" == typeof $b || "ErrnoError" !== C.name) {
|
|
3814
3758
|
throw C;
|
|
3815
3759
|
}
|
|
3816
|
-
return C.
|
|
3760
|
+
return C.Z;
|
|
3817
3761
|
}
|
|
3818
3762
|
}, 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)};
|
|
3819
3763
|
(function() {
|
|
3820
3764
|
function a(c) {
|
|
3821
3765
|
p = c = c.exports;
|
|
3822
3766
|
xa = p.memory;
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
m.monitorRunDependencies && m.monitorRunDependencies(
|
|
3828
|
-
if (0 ==
|
|
3829
|
-
var d =
|
|
3830
|
-
|
|
3767
|
+
Ba();
|
|
3768
|
+
Ca = p.__indirect_function_table;
|
|
3769
|
+
Ea.unshift(p.__wasm_call_ctors);
|
|
3770
|
+
Ha--;
|
|
3771
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Ha);
|
|
3772
|
+
if (0 == Ha && (null !== Ia && (clearInterval(Ia), Ia = null), Ja)) {
|
|
3773
|
+
var d = Ja;
|
|
3774
|
+
Ja = null;
|
|
3831
3775
|
d();
|
|
3832
3776
|
}
|
|
3833
3777
|
return c;
|
|
3834
3778
|
}
|
|
3835
3779
|
var b = {env:Fe, wasi_snapshot_preview1:Fe,};
|
|
3836
|
-
|
|
3837
|
-
m.monitorRunDependencies && m.monitorRunDependencies(
|
|
3780
|
+
Ha++;
|
|
3781
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Ha);
|
|
3838
3782
|
if (m.instantiateWasm) {
|
|
3839
3783
|
try {
|
|
3840
3784
|
return m.instantiateWasm(b, a);
|
|
@@ -3842,24 +3786,24 @@ var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3842
3786
|
ua("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3843
3787
|
}
|
|
3844
3788
|
}
|
|
3845
|
-
|
|
3789
|
+
Qa(b, function(c) {
|
|
3846
3790
|
a(c.instance);
|
|
3847
3791
|
}).catch(ba);
|
|
3848
3792
|
return {};
|
|
3849
3793
|
})();
|
|
3850
|
-
var tc = a => (tc = p.free)(a), Yd = a => (Yd = p.malloc)(a),
|
|
3794
|
+
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);
|
|
3851
3795
|
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = p.ma_malloc_emscripten)(a, b);
|
|
3852
3796
|
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = p.ma_free_emscripten)(a, b);
|
|
3853
|
-
var
|
|
3797
|
+
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);
|
|
3854
3798
|
m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = p._embind_initialize_bindings)();
|
|
3855
3799
|
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);
|
|
3856
3800
|
m.dynCall_iiiij = (a, b, c, d, e, f) => (m.dynCall_iiiij = p.dynCall_iiiij)(a, b, c, d, e, f);
|
|
3857
3801
|
m.dynCall_viiij = (a, b, c, d, e, f) => (m.dynCall_viiij = p.dynCall_viiij)(a, b, c, d, e, f);
|
|
3858
3802
|
m.dynCall_iiij = (a, b, c, d, e) => (m.dynCall_iiij = p.dynCall_iiij)(a, b, c, d, e);
|
|
3859
3803
|
m.dynCall_viij = (a, b, c, d, e) => (m.dynCall_viij = p.dynCall_viij)(a, b, c, d, e);
|
|
3860
|
-
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = p.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3861
3804
|
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = p.dynCall_iiji)(a, b, c, d, e);
|
|
3862
3805
|
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = p.dynCall_jiji)(a, b, c, d, e);
|
|
3806
|
+
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = p.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3863
3807
|
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = p.dynCall_iij)(a, b, c, d);
|
|
3864
3808
|
m.dynCall_jii = (a, b, c) => (m.dynCall_jii = p.dynCall_jii)(a, b, c);
|
|
3865
3809
|
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);
|
|
@@ -3991,11 +3935,11 @@ function De(a, b, c, d, e, f, g, k) {
|
|
|
3991
3935
|
}
|
|
3992
3936
|
}
|
|
3993
3937
|
function we(a, b, c, d, e, f, g, k, q, n) {
|
|
3994
|
-
var
|
|
3938
|
+
var t = Y();
|
|
3995
3939
|
try {
|
|
3996
3940
|
return Q(a)(b, c, d, e, f, g, k, q, n);
|
|
3997
3941
|
} catch (v) {
|
|
3998
|
-
Z(
|
|
3942
|
+
Z(t);
|
|
3999
3943
|
if (v !== v + 0) {
|
|
4000
3944
|
throw v;
|
|
4001
3945
|
}
|
|
@@ -4018,10 +3962,10 @@ function Ee(a, b, c, d, e, f, g, k, q) {
|
|
|
4018
3962
|
var n = Y();
|
|
4019
3963
|
try {
|
|
4020
3964
|
Q(a)(b, c, d, e, f, g, k, q);
|
|
4021
|
-
} catch (
|
|
3965
|
+
} catch (t) {
|
|
4022
3966
|
Z(n);
|
|
4023
|
-
if (
|
|
4024
|
-
throw
|
|
3967
|
+
if (t !== t + 0) {
|
|
3968
|
+
throw t;
|
|
4025
3969
|
}
|
|
4026
3970
|
X(1, 0);
|
|
4027
3971
|
}
|
|
@@ -4051,16 +3995,16 @@ function Ce(a, b, c, d, e, f, g) {
|
|
|
4051
3995
|
}
|
|
4052
3996
|
}
|
|
4053
3997
|
var Ge;
|
|
4054
|
-
|
|
3998
|
+
Ja = function He() {
|
|
4055
3999
|
Ge || Ie();
|
|
4056
|
-
Ge || (
|
|
4000
|
+
Ge || (Ja = He);
|
|
4057
4001
|
};
|
|
4058
4002
|
function Ie() {
|
|
4059
4003
|
function a() {
|
|
4060
4004
|
if (!Ge && (Ge = !0, m.calledRun = !0, !ya)) {
|
|
4061
4005
|
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));
|
|
4062
4006
|
Bb = !1;
|
|
4063
|
-
|
|
4007
|
+
Xa(Ea);
|
|
4064
4008
|
aa(m);
|
|
4065
4009
|
if (m.onRuntimeInitialized) {
|
|
4066
4010
|
m.onRuntimeInitialized();
|
|
@@ -4068,20 +4012,20 @@ function Ie() {
|
|
|
4068
4012
|
if (m.postRun) {
|
|
4069
4013
|
for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
|
|
4070
4014
|
var b = m.postRun.shift();
|
|
4071
|
-
|
|
4015
|
+
Fa.unshift(b);
|
|
4072
4016
|
}
|
|
4073
4017
|
}
|
|
4074
|
-
|
|
4018
|
+
Xa(Fa);
|
|
4075
4019
|
}
|
|
4076
4020
|
}
|
|
4077
|
-
if (!(0 <
|
|
4021
|
+
if (!(0 < Ha)) {
|
|
4078
4022
|
if (m.preRun) {
|
|
4079
4023
|
for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
|
|
4080
|
-
|
|
4024
|
+
Ga();
|
|
4081
4025
|
}
|
|
4082
4026
|
}
|
|
4083
|
-
|
|
4084
|
-
0 <
|
|
4027
|
+
Xa(Da);
|
|
4028
|
+
0 < Ha || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
|
|
4085
4029
|
setTimeout(function() {
|
|
4086
4030
|
m.setStatus("");
|
|
4087
4031
|
}, 1);
|
|
@@ -4109,7 +4053,7 @@ Ie();
|
|
|
4109
4053
|
/* 2 */
|
|
4110
4054
|
/***/ ((module) => {
|
|
4111
4055
|
|
|
4112
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"2.15.
|
|
4056
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"2.15.3","description":"Rive\'s webgl based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
4113
4057
|
|
|
4114
4058
|
/***/ }),
|
|
4115
4059
|
/* 3 */
|
|
@@ -5532,6 +5476,15 @@ var AudioManager = /** @class */ (function (_super) {
|
|
|
5532
5476
|
return AudioManager;
|
|
5533
5477
|
}(EventManager));
|
|
5534
5478
|
var audioManager = new AudioManager();
|
|
5479
|
+
var FakeResizeObserver = /** @class */ (function () {
|
|
5480
|
+
function FakeResizeObserver() {
|
|
5481
|
+
}
|
|
5482
|
+
FakeResizeObserver.prototype.observe = function () { };
|
|
5483
|
+
FakeResizeObserver.prototype.unobserve = function () { };
|
|
5484
|
+
FakeResizeObserver.prototype.disconnect = function () { };
|
|
5485
|
+
return FakeResizeObserver;
|
|
5486
|
+
}());
|
|
5487
|
+
var MyResizeObserver = globalThis.ResizeObserver || FakeResizeObserver;
|
|
5535
5488
|
/**
|
|
5536
5489
|
* This class takes care of any observers that will be attached to an animation.
|
|
5537
5490
|
* It should be treated as a singleton because observers are much more performant
|
|
@@ -5557,7 +5510,7 @@ var ObjectObservers = /** @class */ (function () {
|
|
|
5557
5510
|
this._onObserved = function (entries) {
|
|
5558
5511
|
entries.forEach(_this._onObservedEntry);
|
|
5559
5512
|
};
|
|
5560
|
-
this._resizeObserver = new
|
|
5513
|
+
this._resizeObserver = new MyResizeObserver(this._onObserved);
|
|
5561
5514
|
}
|
|
5562
5515
|
// Adds an observable element
|
|
5563
5516
|
ObjectObservers.prototype.add = function (element, onResize) {
|